From d4f12d3e08a3ac5a6ac6a79f60e1c2070bc3f5de Mon Sep 17 00:00:00 2001 From: Jair Myree Date: Mon, 18 Nov 2024 18:13:12 -0800 Subject: [PATCH 01/44] Prepare Search November 2024 Preview Release (#42999) * Prepare Search November 2024 Preview Release * Prepare Search November 2024 Preview Release * Prepare Search November 2024 Preview Release --- .../azure-search-documents/CHANGELOG.md | 22 ++++++++++++++----- sdk/search/azure-search-documents/README.md | 2 +- .../src/samples/README.md | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index b214af5e48efb..d71c745cb5223 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,15 +1,27 @@ # Release History -## 11.8.0-beta.2 (Unreleased) +## 11.8.0-beta.2 (2024-11-18) -### Features Added - -### Breaking Changes +### Features Added -### Bugs Fixed +- `FacetResults` is now a recursive data structure to support hierarchical aggregation and facet filtering. +- `QueryAnswer` now supports a `maxCharLength` option to limit the character length of the answer. +- `QueryCaption` now supports a `maxCharLength` option to limit the character length of the caption. +- `VectorizableTextQuery` now supports a `queryRewrites` option to specify the number query rewrites the service will generate. +- `SemanticSearchOptions` now supports a `queryRewrites` option to specify the number query rewrites the service will generate. +- `VectorSearchCompression` now supports configuring the `rescoringOptoins`. +- `IndexingParametersConfiguration` now supports two additional options for `MarkdownParsingSubmode` and `MarkdownHeaderDepth`. +- Added a new skill: `DocumentIntelligenceLayoutSkill` that extracts content and layout information (as markdown), via Azure AI Services, from files within the enrichment pipeline. +- Added 2 subtypes of `CognitiveServiceAccounts`: `AzureCognitiveServiceAccount` and `AzureCognitiveServiceAccountKey`. ### Other Changes +#### Dependency Updates + +- Upgraded `azure-core` from `1.52.0` to version `1.54.1`. +- Upgraded `azure-core-http-netty` from `1.15.4` to version `1.15.7`. +- Upgraded `azure-core-serializer-json-jackson` from `1.5.1` to version `1.5.4`. + ## 11.7.3 (2024-10-27) ### Other Changes diff --git a/sdk/search/azure-search-documents/README.md b/sdk/search/azure-search-documents/README.md index 5c92ba6b41f8f..a6e22f237c7ea 100644 --- a/sdk/search/azure-search-documents/README.md +++ b/sdk/search/azure-search-documents/README.md @@ -75,7 +75,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.8.0-beta.1 + 11.8.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/search/azure-search-documents/src/samples/README.md b/sdk/search/azure-search-documents/src/samples/README.md index 20c89f89d25a9..02e9dbb1d6ee6 100644 --- a/sdk/search/azure-search-documents/src/samples/README.md +++ b/sdk/search/azure-search-documents/src/samples/README.md @@ -61,7 +61,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.8.0-beta.1 + 11.8.0-beta.2 ``` [//]: # ({x-version-update-end}) From c350ae454a521f2b9800b1828bde7650706ed89f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 19 Nov 2024 06:27:12 -0800 Subject: [PATCH 02/44] Increment package versions for search releases (#43003) --- eng/versioning/version_client.txt | 2 +- sdk/search/azure-search-documents/CHANGELOG.md | 10 ++++++++++ sdk/search/azure-search-documents/pom.xml | 2 +- sdk/search/azure-search-perf/pom.xml | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 192ed32bedc39..b35061d12580a 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -172,7 +172,7 @@ com.azure:azure-monitor-query;1.5.3;1.6.0-beta.1 com.azure:azure-monitor-query-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-perf-test-parent;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-quantum-jobs;1.0.0-beta.1;1.0.0-beta.2 -com.azure:azure-search-documents;11.7.3;11.8.0-beta.2 +com.azure:azure-search-documents;11.7.3;11.8.0-beta.3 com.azure:azure-search-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-security-attestation;1.1.29;1.2.0-beta.1 com.azure:azure-security-confidentialledger;1.0.25;1.1.0-beta.1 diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index d71c745cb5223..362b0beaa1446 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 11.8.0-beta.3 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 11.8.0-beta.2 (2024-11-18) ### Features Added diff --git a/sdk/search/azure-search-documents/pom.xml b/sdk/search/azure-search-documents/pom.xml index ecec382ec1833..780ddc9f4b2b3 100644 --- a/sdk/search/azure-search-documents/pom.xml +++ b/sdk/search/azure-search-documents/pom.xml @@ -16,7 +16,7 @@ com.azure azure-search-documents - 11.8.0-beta.2 + 11.8.0-beta.3 jar diff --git a/sdk/search/azure-search-perf/pom.xml b/sdk/search/azure-search-perf/pom.xml index 7c52332610110..5fe742d3fb035 100644 --- a/sdk/search/azure-search-perf/pom.xml +++ b/sdk/search/azure-search-perf/pom.xml @@ -29,7 +29,7 @@ com.azure azure-search-documents - 11.8.0-beta.2 + 11.8.0-beta.3 From 94fce5df6d3ce59f618ddc497c3e0ae7a595555f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:21:29 -0800 Subject: [PATCH 03/44] Increment package versions for translation releases (#43014) --- eng/versioning/version_client.txt | 2 +- .../azure-ai-translation-document/CHANGELOG.md | 10 ++++++++++ sdk/translation/azure-ai-translation-document/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index b35061d12580a..3431696a23e64 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -51,7 +51,7 @@ com.azure:azure-ai-personalizer;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-ai-textanalytics;5.5.3;5.6.0-beta.1 com.azure:azure-ai-textanalytics-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-ai-translation-text;1.1.0;1.2.0-beta.1 -com.azure:azure-ai-translation-document;1.0.0-beta.2;1.0.0 +com.azure:azure-ai-translation-document;1.0.0;1.1.0-beta.1 com.azure:azure-analytics-defender-easm;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-analytics-purview-datamap;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-analytics-purview-scanning;1.0.0-beta.2;1.0.0-beta.3 diff --git a/sdk/translation/azure-ai-translation-document/CHANGELOG.md b/sdk/translation/azure-ai-translation-document/CHANGELOG.md index d4ea8e1f08c81..265e1fb38b93c 100644 --- a/sdk/translation/azure-ai-translation-document/CHANGELOG.md +++ b/sdk/translation/azure-ai-translation-document/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2024-11-20) ### Other Changes diff --git a/sdk/translation/azure-ai-translation-document/pom.xml b/sdk/translation/azure-ai-translation-document/pom.xml index 598e8154963c0..23c079597fe75 100644 --- a/sdk/translation/azure-ai-translation-document/pom.xml +++ b/sdk/translation/azure-ai-translation-document/pom.xml @@ -14,7 +14,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator. com.azure azure-ai-translation-document - 1.0.0 + 1.1.0-beta.1 Microsoft Azure SDK for DocumentTranslation This package contains Microsoft Azure DocumentTranslation client library. From 0cb77cea9e522aff5c96d7aa61a020d2c97c5ef7 Mon Sep 17 00:00:00 2001 From: Annie Liang <64233642+xinlian12@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:30:50 -0800 Subject: [PATCH 04/44] fix (#43013) Co-authored-by: annie-mac --- .../epkversion/PartitionProcessorImpl.java | 22 ++++++++++----- .../pkversion/PartitionProcessorImpl.java | 27 ++++++++++++------- 2 files changed, 33 insertions(+), 16 deletions(-) diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/epkversion/PartitionProcessorImpl.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/epkversion/PartitionProcessorImpl.java index 30132661da4fc..91c8dcb2d1466 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/epkversion/PartitionProcessorImpl.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/epkversion/PartitionProcessorImpl.java @@ -154,16 +154,24 @@ public Mono run(CancellationToken cancellationToken) { }); } else { // still need to checkpoint with the new continuation token - this.checkpointer.checkpointPartition(continuationState).block(); - } + return this.checkpointer.checkpointPartition(continuationState) + .doOnError(throwable -> { + logger.debug( + "Failed to checkpoint Lease with token {} from thread {}", + this.lease.getLeaseToken(), + Thread.currentThread().getId(), + throwable); + }) + .flatMap(lease -> { + this.options = PartitionProcessorHelper.createForProcessingFromContinuation(continuationToken, this.changeFeedMode); + if (cancellationToken.isCancellationRequested()) { + return Mono.error(new TaskCancelledException()); + } - this.options = PartitionProcessorHelper.createForProcessingFromContinuation(continuationToken, this.changeFeedMode); - if (cancellationToken.isCancellationRequested()) { - return Flux.error(new TaskCancelledException()); + return Mono.empty(); + }); } - - return Flux.empty(); }) .doOnComplete(() -> { if (this.options.getMaxItemCount() != this.settings.getMaxItemCount()) { diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/pkversion/PartitionProcessorImpl.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/pkversion/PartitionProcessorImpl.java index 7fa8589dd07f3..6cd323479ba3b 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/pkversion/PartitionProcessorImpl.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/changefeed/pkversion/PartitionProcessorImpl.java @@ -155,17 +155,26 @@ public Mono run(CancellationToken cancellationToken) { }); } else { // still need to checkpoint with the new continuation token - this.checkpointer.checkpointPartition(continuationState); - } - this.options = - CosmosChangeFeedRequestOptions - .createForProcessingFromContinuation(continuationToken); + return this.checkpointer.checkpointPartition(continuationState) + .doOnError(throwable -> { + logger.debug( + "Failed to checkpoint partition {} from thread {}", + this.lease.getLeaseToken(), + Thread.currentThread().getId(), + throwable); + }) + .flatMap(lease -> { + this.options = + CosmosChangeFeedRequestOptions + .createForProcessingFromContinuation(continuationToken); - if (cancellationToken.isCancellationRequested()) { - return Flux.error(new TaskCancelledException()); - } + if (cancellationToken.isCancellationRequested()) { + return Mono.error(new TaskCancelledException()); + } - return Flux.empty(); + return Mono.empty(); + }); + } }) .doOnComplete(() -> { if (this.options.getMaxItemCount() != this.settings.getMaxItemCount()) { From 76fb215f0552ed7a9d1da44d9ea3ea5a6f1f5ede Mon Sep 17 00:00:00 2001 From: Aayush Kataria Date: Tue, 19 Nov 2024 17:57:24 -0600 Subject: [PATCH 05/44] FTS: Hybrid search query pipeline (#42885) * Hybrid search query changes --- .../cosmos/rx/HybridSearchQueryTest.java | 293 ++++++++++ ...roperties-1536dimensions-100documents.json | 1 + sdk/cosmos/azure-cosmos/CHANGELOG.md | 1 + .../azure/cosmos/implementation/Configs.java | 17 + .../cosmos/implementation/Constants.java | 13 + .../CosmosQueryRequestOptionsImpl.java | 11 + .../ImplementationBridgeHelpers.java | 2 + .../implementation/JsonSerializable.java | 2 +- .../DocumentQueryExecutionContextFactory.java | 286 ++++++---- .../HybridSearchBadRequestException.java | 20 + .../query/HybridSearchDocumentProducer.java | 38 ++ ...idSearchDocumentQueryExecutionContext.java | 512 ++++++++++++++++++ ...llelDocumentQueryExecutionContextBase.java | 2 +- .../PartitionKeyRangesAndQueryInfos.java | 55 ++ .../query/PartitionedQueryExecutionInfo.java | 16 + ...PartitionedQueryExecutionInfoInternal.java | 13 +- ...ipelinedDocumentQueryExecutionContext.java | 65 ++- .../query/PipelinedDocumentQueryParams.java | 15 + .../query/PipelinedQueryExecutionContext.java | 6 +- .../PipelinedQueryExecutionContextBase.java | 66 ++- .../implementation/query/QueryFeature.java | 4 +- .../implementation/query/QueryInfo.java | 16 + .../query/QueryPlanRetriever.java | 3 +- .../query/aggregation/AggregateOperator.java | 1 + .../hybridsearch/FullTextQueryStatistics.java | 40 ++ .../GlobalFullTextSearchQueryStatistics.java | 41 ++ .../hybridsearch/HybridSearchQueryInfo.java | 104 ++++ .../hybridsearch/HybridSearchQueryResult.java | 78 +++ .../models/CosmosQueryRequestOptions.java | 14 + .../src/main/java/module-info.java | 1 + 30 files changed, 1620 insertions(+), 116 deletions(-) create mode 100644 sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/HybridSearchQueryTest.java create mode 100644 sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/documents/text-3properties-1536dimensions-100documents.json create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchBadRequestException.java create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentProducer.java create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentQueryExecutionContext.java create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionKeyRangesAndQueryInfos.java create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/FullTextQueryStatistics.java create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/GlobalFullTextSearchQueryStatistics.java create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryInfo.java create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryResult.java diff --git a/sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/HybridSearchQueryTest.java b/sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/HybridSearchQueryTest.java new file mode 100644 index 0000000000000..ca0cd1e35864a --- /dev/null +++ b/sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/HybridSearchQueryTest.java @@ -0,0 +1,293 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.rx; + +import com.azure.cosmos.CosmosAsyncClient; +import com.azure.cosmos.CosmosAsyncContainer; +import com.azure.cosmos.CosmosAsyncDatabase; +import com.azure.cosmos.CosmosClientBuilder; +import com.azure.cosmos.CosmosException; +import com.azure.cosmos.implementation.TestConfigurations; +import com.azure.cosmos.implementation.query.HybridSearchBadRequestException; +import com.azure.cosmos.models.CosmosContainerProperties; +import com.azure.cosmos.models.CosmosFullTextIndex; +import com.azure.cosmos.models.CosmosFullTextPath; +import com.azure.cosmos.models.CosmosFullTextPolicy; +import com.azure.cosmos.models.CosmosQueryRequestOptions; +import com.azure.cosmos.models.IncludedPath; +import com.azure.cosmos.models.IndexingMode; +import com.azure.cosmos.models.IndexingPolicy; +import com.azure.cosmos.models.PartitionKeyDefinition; +import com.azure.cosmos.models.ThroughputProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import io.netty.handler.codec.http.HttpResponseStatus; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Ignore; +import org.testng.annotations.Test; +import reactor.core.publisher.Flux; + +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.UUID; +import java.util.stream.Collectors; + +import static com.azure.cosmos.rx.TestSuiteBase.createDatabase; +import static com.azure.cosmos.rx.TestSuiteBase.safeClose; +import static com.azure.cosmos.rx.TestSuiteBase.safeDeleteDatabase; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.fail; + +@Ignore("TODO: Ignore these test cases until the public emulator is released.") +public class HybridSearchQueryTest { + protected static final int TIMEOUT = 30000; + protected static final int SETUP_TIMEOUT = 80000; + protected static final int SHUTDOWN_TIMEOUT = 20000; + + protected static Logger logger = LoggerFactory.getLogger(HybridSearchQueryTest.class); + + private final String containerId = UUID.randomUUID().toString(); + private CosmosAsyncClient client; + private CosmosAsyncDatabase database; + private CosmosAsyncContainer container; + + @BeforeClass(groups = {"query", "split"}, timeOut = SETUP_TIMEOUT* 10) + public void before_HybridSearchQueryTest() { + //set up the client + client = new CosmosClientBuilder() + .endpoint(TestConfigurations.HOST) + .key(TestConfigurations.MASTER_KEY) + .buildAsyncClient(); + + database = createDatabase(client, UUID.randomUUID().toString()); + + PartitionKeyDefinition partitionKeyDef = new PartitionKeyDefinition(); + ArrayList paths = new ArrayList(); + paths.add("/id"); + partitionKeyDef.setPaths(paths); + + CosmosContainerProperties containerProperties = new CosmosContainerProperties(containerId, partitionKeyDef); + containerProperties.setIndexingPolicy(populateIndexingPolicy()); + containerProperties.setFullTextPolicy(populateFullTextPolicy()); + database.createContainer(containerProperties, ThroughputProperties.createManualThroughput(10000)).block(); + container = database.getContainer(containerId); + + List documents = loadProductsFromJson(); + for (Document doc : documents) { + container.createItem(doc).block(); + } + + // Wait for 10 minutes to allow indexing + try { + Thread.sleep(10 * 60 * 1000); // 8 minutes in milliseconds + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new RuntimeException("Interrupted while waiting for indexing", e); + } + } + + @AfterClass(groups = {"query", "split"}, timeOut = SHUTDOWN_TIMEOUT, alwaysRun = true) + public void afterClass() { + safeDeleteDatabase(database); + safeClose(client); + } + + @Test(groups = {"query", "split"}, timeOut = TIMEOUT) + public void hybridQueryTest() { + + String query = "SELECT TOP 10 c.id, c.text, c.title FROM c WHERE FullTextContains(c.text, 'John') OR " + + "FullTextContains(c.title, 'John') ORDER BY RANK FullTextScore(c.title, ['John'])"; + List resultDocs = container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + assertThat(resultDocs).hasSize(3); + validateResults(Arrays.asList("2","57","85"), resultDocs); + + query = "SELECT c.id, c.title FROM c WHERE FullTextContains(c.title, 'John') " + + "OR FullTextContains(c.text, 'John') ORDER BY RANK FullTextScore(c.title, ['John']) OFFSET 1 LIMIT 5"; + resultDocs = container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + assertThat(resultDocs).hasSize(2); + validateResults(Arrays.asList("57","85"), resultDocs); + + query = "SELECT TOP 20 c.id, c.title FROM c WHERE FullTextContains(c.title, 'John') OR " + + "FullTextContains(c.text, 'John') OR FullTextContains(c.text, 'United States') " + + "ORDER BY RANK RRF(FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States']))"; + resultDocs = container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + assertThat(resultDocs).hasSize(15); + validateResults(Arrays.asList("61", "51", "49", "54", "75", "24", "77", "76", "80", "25", "22", "2", "66", "57", "85"), resultDocs); + + query = "SELECT c.id, c.title FROM c WHERE FullTextContains(c.title, 'John') " + + "OR FullTextContains(c.text, 'John') OR FullTextContains(c.text, 'United States') ORDER BY " + + "RANK RRF(FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States'])) OFFSET 5 LIMIT 10"; + resultDocs = container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + assertThat(resultDocs).hasSize(10); + validateResults(Arrays.asList("24", "77", "76", "80", "25", "22", "2", "66", "57", "85"), resultDocs); + + String vector = getQueryVector(); + query = String.format("SELECT TOP 10 c.id, c.text, c.title FROM c " + + "ORDER BY RANK RRF(FullTextScore(c.text, ['John']), FullTextScore(c.text, ['United States']), " + + "VectorDistance(c.vector, [%s]))",vector); + resultDocs = container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + assertThat(resultDocs).hasSize(10); + validateResults(Arrays.asList("21", "75", "37", "24", "26", "35", "49", "87", "55", "9"), resultDocs); + } + + @Test(groups = {"query", "split"}, timeOut = TIMEOUT) + public void wrongHybridQueryTest() { + String query = ""; + try { + query = "SELECT c.id, RRF(VectorDistance(c.vector, [1,2,3]), FullTextScore(c.text, “test”) FROM c"; + container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + fail("Attempting to project RRF in a query should fail."); + } catch (CosmosException ex) { + assertThat(ex.getStatusCode()).isEqualTo(HttpResponseStatus.BAD_REQUEST.code()); + assertThat(ex.getMessage()).contains("Syntax error, invalid token"); + } + + try { + query = "SELECT TOP 10 c.id FROM c WHERE FullTextContains(c.title, 'John') ORDER BY RANK FullTextScore(c.title, ['John']) DESC"; + container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + fail("Attempting to set an ordering direction in a full text score query should fail."); + } catch (CosmosException ex) { + assertThat(ex.getStatusCode()).isEqualTo(HttpResponseStatus.BAD_REQUEST.code()); + assertThat(ex.getMessage()).contains("Specifying a sort order (ASC or DESC) in the ORDER BY RANK clause is not allowed."); + } + + try { + query = "SELECT TOP 10 c.id FROM c WHERE FullTextContains(c.title, 'John') ORDER BY RANK RRF(FullTextScore(c.title, ['John']), VectorDistance(c.vector, [1,2,3])) DESC"; + container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + fail("Attempting to set an ordering direction in a hybrid search query should fail."); + } catch (CosmosException ex) { + assertThat(ex.getStatusCode()).isEqualTo(HttpResponseStatus.BAD_REQUEST.code()); + assertThat(ex.getMessage()).contains("Specifying a sort order (ASC or DESC) in the ORDER BY RANK clause is not allowed."); + } + + try { + query = "SELECT c.id FROM c WHERE FullTextContains(c.title, 'John') ORDER BY RANK RRF(FullTextScore(c.title, ['John']), VectorDistance(c.vector, [1,2,3]))"; + container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + fail("Attempting to run a hybrid search query without a top(Take) value should fail."); + } catch (HybridSearchBadRequestException ex) { + assertThat(ex.getStatusCode()).isEqualTo(HttpResponseStatus.BAD_REQUEST.code()); + assertThat(ex.getMessage()).contains("Executing a hybrid or full text query without Top or Limit can consume a large number of RUs " + + "very fast and have long runtimes."); + } + + try { + query = "SELECT c.id FROM c WHERE FullTextContains(c.title, 'John') ORDER BY RANK RRF(FullTextScore(c.title, ['John']), VectorDistance(c.vector, [1,2,3])) OFFSET 10 LIMIT 5"; + container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + fail("Attempting to run a hybrid search query with a limit(Take) value smaller than the offset(Limit) value."); + } catch (HybridSearchBadRequestException ex) { + assertThat(ex.getStatusCode()).isEqualTo(HttpResponseStatus.BAD_REQUEST.code()); + assertThat(ex.getMessage()).contains("Executing a hybrid or full-text query with an offset(Skip) greater than or equal to limit(Take)."); + } + + try { + query = "SELECT c.id FROM c WHERE FullTextContains(c.title, 'John') ORDER BY RANK RRF(FullTextScore(c.title, ['John']), VectorDistance(c.vector, [1,2,3])) OFFSET 10 LIMIT 10"; + container.queryItems(query, new CosmosQueryRequestOptions(), Document.class).byPage() + .flatMap(feedResponse -> Flux.fromIterable(feedResponse.getResults())) + .collectList().block(); + fail("Attempting to run a hybrid search query with a limit(Take) value equal to the offset(Limit) value."); + } catch (HybridSearchBadRequestException ex) { + assertThat(ex.getStatusCode()).isEqualTo(HttpResponseStatus.BAD_REQUEST.code()); + assertThat(ex.getMessage()).contains("Executing a hybrid or full-text query with an offset(Skip) greater than or equal to limit(Take)."); + } + } + + private IndexingPolicy populateIndexingPolicy() { + IndexingPolicy indexingPolicy = new IndexingPolicy(); + indexingPolicy.setIndexingMode(IndexingMode.CONSISTENT); + IncludedPath includedPath1 = new IncludedPath("/*"); + indexingPolicy.setIncludedPaths(Collections.singletonList(includedPath1)); + + CosmosFullTextIndex fullTextIndex = new CosmosFullTextIndex(); + fullTextIndex.setPath("/text"); + indexingPolicy.setCosmosFullTextIndexes(Collections.singletonList(fullTextIndex)); + return indexingPolicy; + } + + private CosmosFullTextPolicy populateFullTextPolicy() { + CosmosFullTextPolicy fullTextPolicy = new CosmosFullTextPolicy(); + CosmosFullTextPath fullTextPath = new CosmosFullTextPath(); + fullTextPath.setPath("/text"); + fullTextPath.setLanguage("en-US"); + fullTextPolicy.setDefaultLanguage("en-US"); + fullTextPolicy.setPaths(Collections.singletonList(fullTextPath)); + return fullTextPolicy; + } + + private static List loadProductsFromJson() { + ObjectMapper mapper = new ObjectMapper(); + try { + return mapper.readValue(new File("src/test/java/com/azure/cosmos/rx/documents/text-3properties-1536dimensions-100documents.json"), new TypeReference>() {}); + } catch (IOException e) { + throw new RuntimeException(e); + } + } + + private void validateResults(List actualIds, List results) { + assertThat(results).isNotNull(); + + List resultsIds = results.stream().map(Document::getId).collect(Collectors.toList()); + assertThat(resultsIds).isEqualTo(actualIds); + } + + + public static String getQueryVector() { + return "0.02, 0, -0.02, 0, -0.04, -0.01, -0.04, -0.01, 0.06, 0.08, -0.05, -0.04, -0.03, 0.05, -0.03, 0, -0.03, 0, 0.05, 0, 0.03,0.02, 0, 0.04, 0.05, 0.03, 0, 0, 0, -0.03, -0.01, 0.01, 0, -0.01, -0.03, -0.02, -0.05, 0.01, 0, 0.01, 0, 0.01, -0.03, -0.02, 0.02, 0.02, 0.04, 0.01, 0.04, 0.02, -0.01, -0.01, 0.02, 0.01, 0.02, -0.04, -0.01, 0.06, -0.01, -0.03, -0.04, -0.01, -0.01, 0, 0.03, -0.02, 0.03, 0.05, 0.01, 0.04, 0.05, -0.05, -0.01, 0.03, 0.02, -0.02, 0, -0.02, -0.02, -0.04, 0.01, -0.05, 0.01, 0.05, 0, -0.02, 0.03, -0.07, 0.05, 0.02, 0.03, 0.05, 0.05, -0.01, 0.03, -0.08, -0.01, -0.03, 0.04, -0.01, -0.02, -0.01, -0.02, -0.03, 0.03, 0.03,-0.04, 0.04, 0.02, 0, 0.03, -0.02, -0.04, 0.02, 0.01, 0.02, -0.01, 0.03, 0.02, 0.01, -0.02, 0, 0.02, 0, -0.01, 0.02, -0.05, 0.03, 0.03, 0.04, -0.02, 0.04, -0.04, 0.03, 0.03, -0.03, 0, 0.02, 0.06, 0.02, 0.02, -0.01, 0.03, 0, -0.03, -0.06, 0.02, 0, 0.02, -0.04,-0.05, 0.01, 0.02, 0.02, 0.07, 0.05, -0.01, 0.03, -0.03, -0.06, 0.04, 0.01, -0.01, 0.04, 0.02, 0.03, -0.03, 0.03, -0.01, 0.03, -0.04, -0.02, 0.02, -0.02, -0.03, -0.02, 0.02, -0.01, -0.05, -0.07, 0.02, -0.01, 0, -0.01, -0.02, -0.02, -0.03, -0.03, 0, -0.08, -0.01,0, -0.01, -0.03, 0.01, 0, -0.02, -0.03, -0.04, -0.01, 0.02, 0, 0, -0.04, 0.04, -0.01, 0.04, 0, -0.06, 0.02, 0.03, 0.01, 0.06, -0.02, 0, 0.01, 0.01, 0.01, 0, -0.02, 0.03, 0.02, 0.01, -0.01, -0.05, 0.03, -0.04, 0, 0.01, -0.02, -0.04, 0.02, 0, 0.09, -0.04, -0.01,0.02, 0.01, -0.03, 0.04, 0.02, -0.02, -0.02, -0.01, 0.01, -0.04, -0.01, 0.02, 0, 0, 0.07, 0.02, 0, 0, -0.01, 0.01, 0.03, -0.02, 0, 0.03, -0.02, -0.07, -0.04, -0.03, 0, -0.03, -0.02, 0, -0.02, -0.02, -0.05, -0.02, 0, 0.05, 0.01, -0.01, -0.04, 0.02, 0, 0, 0.03,0.02, -0.03, -0.01, -0.02, 0.06, -0.02, 0.01, 0.01, 0.04, -0.04, 0.06, -0.02, 0.01, 0.03, 0.01, 0.02, -0.02, 0.01, -0.04, 0.05, -0.03, 0.01, -0.01, 0, -0.03, -0.03, 0.04, 0.02, -0.03, -0.03, -0.02, 0.06, 0.04, -0.01, 0.01, 0.01, -0.01, -0.02, -0.02, 0.04, 0.01,-0.01, 0.01, -0.01, 0, 0.01, -0.04, 0.01, 0, -0.04, 0.05, 0.01, 0.01, 0.09, -0.04, -0.02, 0.04, 0, 0.04, -0.04, -0.04, 0, 0, -0.01, 0.05, -0.01, 0.02, 0.01, -0.03, 0, -0.06, 0.02, 0.04, 0.01, 0.03, 0.01, -0.04, 0, 0.01, 0.05, 0.02, -0.02, 0.02, 0, -0.02, -0.04,-0.07, -0.02, -0.05, 0.06, 0.01, 0.02, -0.03, 0.06, -0.01, -0.02, -0.02, -0.01, 0, -0.05, 0.06, -0.05, 0, -0.02, -0.02, 0, -0.01, 0.01, 0, -0.01, 0.05, 0.02, 0, 0.02, -0.02, 0.02, 0, 0.08, -0.02, 0.01, -0.03, 0.02, -0.03, 0, -0.01, -0.02, -0.04, 0.06, 0.01,-0.03, -0.03, 0.01, -0.01, 0.01, -0.01, 0.02, -0.03, 0.03, 0.04, 0.02, -0.02, 0.04, 0.01, 0.01, 0.02, 0.01, 0, -0.03, 0.03, -0.02, -0.03, -0.02, 0.02, 0, -0.01, -0.02, -0.02, 0, -0.01, -0.03, 0.02, -0.01, 0.01, -0.08, 0.01, -0.04, -0.05, 0.02, -0.01, -0.03,0.02, 0.01, -0.03, 0.01, 0.02, 0.03, 0.04, -0.04, 0.02, 0, 0.02, 0.02, 0.04, -0.04, -0.1, 0, 0.05, -0.01, 0.03, 0.05, 0.03, -0.02, 0.01, 0.02, -0.05, 0.01, 0, 0.05, -0.01, 0.03, -0.01, 0, 0.04, 0, 0, 0.08, 0.01, 0, -0.04, -0.03, 0, -0.02, -0.01, 0.02, 0.03,0, -0.01, 0, 0, 0, 0.06, 0, 0, 0.01, -0.01, 0.01, 0.04, 0.07, -0.01, 0.01, 0, -0.01, -0.02, 0.01, 0.01, 0, 0.02, 0.01, 0, -0.02, 0.03, 0.02, 0.06, 0.02, -0.01, 0.03, 0.02, -0.02, 0.01, -0.01, 0.03, 0.05, 0.02, 0.01, 0, 0, 0.01, 0.03, -0.03, -0.01, -0.04, 0.03,-0.02, 0.02, -0.02, -0.01, -0.02, 0.01, -0.04, 0.01, -0.04, 0.03, -0.02, -0.02, -0.01, -0.01, 0.07, 0.04, -0.01, 0.08, -0.04, -0.04, 0, 0, -0.01, -0.01, 0.03, -0.04, 0.02, -0.01, -0.04, 0.02, -0.07, -0.02, 0.02, -0.01, 0.02, 0.01, 0, 0.07, -0.01, 0.03, 0.01,-0.05, 0.02, 0.02, -0.01, 0.02, 0.02, -0.03, -0.02, 0.03, -0.01, 0.02, 0, 0, 0.02, -0.01, -0.02, 0.05, 0.02, 0.01, 0.01, -0.03, -0.05, -0.03, 0.01, 0.03, -0.02, -0.01, -0.01, -0.01, 0.03, -0.01, -0.03, 0.02, -0.02, -0.03, -0.02, -0.01, -0.01, -0.01, 0, -0.01,-0.04, -0.02, -0.02, -0.03, 0.04, 0.03, 0, -0.02, -0.01, -0.03, -0.01, -0.04, -0.04, 0.02, 0.01, -0.05, 0.04, -0.03, 0.01, -0.01, -0.03, 0.01, 0.01, 0.01, 0.02, -0.01, -0.02, -0.03, -0.01, -0.01, -0.01, -0.01, -0.03, 0, 0.01, -0.02, -0.01, -0.01, 0.01, 0, -0.04,0.01, -0.01, 0.02, 0, 0, -0.01, 0, 0, 0.03, -0.01, -0.06, -0.04, -0.01, 0, 0.02, -0.05, -0.02, 0.02, -0.01, 0.01, 0.01, -0.01, -0.02, 0, 0.02, -0.01, -0.02, 0.04, -0.01, 0, -0.02, -0.04, -0.03, -0.03, 0, 0.03, -0.01, -0.02, 0, 0.01, -0.01, -0.04, 0.01, -0.03,0.01, 0.03, 0, -0.02, 0, -0.04, -0.02, -0.02, 0.03, -0.02, 0.05, 0.02, 0.03, -0.02, -0.05, -0.01, 0.02, -0.04, 0.02, 0.01, -0.03, 0.01, 0.02, 0, 0.04, 0, -0.01, 0.02, 0.01, 0.02, 0.02, -0.02, 0.04, -0.01, 0, -0.01, 0, 0.01, -0.02, -0.04, 0.06, 0.01, 0, 0.01,-0.02, 0.02, 0.05, 0, 0.03, -0.02, 0.02, -0.03, -0.02, 0.01, 0, 0.06, -0.01, 0, -0.02, -0.02, 0.01, -0.01, 0, -0.03, 0.02, 0, -0.01, -0.02, -0.01, 0.03, -0.03, 0, 0, 0, -0.03, -0.06, 0.04, 0.02, -0.03, -0.06, -0.03, -0.01, -0.03, -0.02, -0.04, 0.01, 0, -0.01,0.02, -0.01, 0.03, 0.02, -0.02, -0.01, -0.02, -0.03, -0.01, 0.01, -0.04, 0.04, 0.03, 0.02, 0, -0.07, -0.02, -0.01, 0, 0.03, -0.01, -0.03, 0, 0.03, 0, -0.01, 0.02, 0.01, 0.02, -0.03, 0, 0.01, -0.02, 0.04, -0.04, 0, -0.05, 0, -0.02, -0.01, 0.03, 0.01, 0, -0.02,0, -0.05, 0.01, -0.01, 0, -0.08, -0.01, -0.02, 0.02, 0.01, -0.01, -0.01, -0.01, 0, 0, -0.01, -0.03, 0, 0, -0.02, 0.05, -0.03, 0.02, 0.01, -0.02, 0.01, 0.01, 0, 0.01, -0.01, 0, -0.04, -0.06, 0.03, -0.02, 0, -0.02, 0.01, 0.03, 0.03, -0.03, -0.01, 0, 0, 0.01,-0.02, -0.01, -0.01, -0.03, -0.02, 0.03, -0.02, 0.03, 0.01, 0.04, -0.04, 0.02, 0.02, 0.02, 0.03, 0, 0.06, -0.01, 0.02, -0.01, 0.01, -0.01, -0.01, -0.03, -0.01, 0.02, 0.01, 0.01, 0, -0.02, 0.03, 0.02, -0.01, -0.02, 0.01, 0.01, 0.04, -0.01, -0.05, 0, -0.01, 0,0.03, -0.01, 0.02, 0.02, -0.04, 0.01, -0.03, -0.02, 0, 0.02, 0, -0.01, 0.02, 0.01, 0.04, -0.04, 0, -0.01, -0.02, 0, -0.02, 0.01, -0.02, 0, 0, 0.03, 0.04, -0.01, 0, 0, 0.03, -0.02, 0.01, -0.02, 0, -0.03, 0.04, 0, 0.01, 0.04, 0, 0.03, -0.02, 0.01, 0.01, -0.02,0.02, -0.05, 0.03, -0.02, -0.01, 0.01, -0.01, 0.02, 0.04, 0.02, 0, -0.02, 0.02, -0.01, -0.03, -0.06, -0.01, -0.01, -0.04, 0.01, -0.01, -0.01, -0.01, -0.02, 0.03, -0.03, 0.05, 0, -0.01, -0.03, 0.03, 0.01, -0.01, -0.01, 0, 0.01, 0.01, 0.02, -0.01, 0.02, -0.02,-0.03, 0.03, -0.02, 0.01, 0, -0.03, 0.02, 0.02, -0.02, 0.01, 0.02, -0.01, 0.02, 0, 0.02, 0.01, 0, 0.05, -0.03, 0.01, 0.03, 0.04, 0.01, 0.01, -0.01, 0.02, -0.03, 0.02, 0.01, 0, -0.01, -0.03, -0.01, 0.02, 0.03, 0, 0.03, 0.02, 0, 0.01, 0.01, 0.02, 0.01, 0.02, 0.03,0.01, -0.03, 0.02, 0.01, 0.02, 0.03, -0.01, 0.01, -0.03, -0.01, -0.02, 0.01, 0, 0, -0.01, -0.02, -0.01, -0.01, 0.01, 0.06, 0.01, 0, -0.01, 0.01, 0, 0, -0.01, -0.01, 0, -0.02, -0.02, -0.01, -0.02, -0.01, -0.05, -0.02, 0.03, 0.02, 0, 0.03, -0.03, -0.03, 0.03, 0,0.02, -0.03, 0.04, -0.04, 0, -0.04, 0.04, 0.01, -0.03, 0.01, -0.02, -0.01, -0.04, 0.02, -0.01, 0.01, 0.01, 0.02, -0.02, 0.03, -0.01, 0, 0.01, 0, 0.02, 0.01, 0.01, 0.03, -0.06, 0.02, 0, -0.02, 0, 0.04, -0.03, 0, 0, -0.02, 0.06, 0.01, -0.03, -0.02, -0.01, -0.03,-0.04, 0.04, 0.03, -0.02, 0, 0.03, -0.04, -0.01, -0.02, -0.02, -0.01, 0.02, 0.02, 0.01, 0.01, 0.01, -0.02, -0.02, -0.03, -0.01, 0.01, 0, 0, 0, 0.02, -0.04, -0.01, -0.01, 0.04, -0.01, 0.01, -0.01, 0.01, -0.03, 0.01, -0.01, 0, -0.01, 0.01, 0, 0.01, -0.04, 0.01, 0,0, 0, 0, 0.02, 0.04, 0.01, 0.01, -0.01, -0.02, 0, 0, 0.01, -0.01, 0.01, -0.01, 0, 0.04, -0.01, -0.02, -0.01, -0.01, -0.01, 0, 0, 0.01, 0.01, 0.04, -0.01, -0.01, 0, -0.03, -0.01, 0.01, -0.01, -0.02, 0.01, -0.02, 0.01, -0.03, 0.02, 0, 0.03, 0.01, -0.03, -0.01,-0.01, 0.02, 0.01, 0, -0.01, 0.03, -0.04, 0.01, -0.01, -0.03, -0.02, 0.02, -0.01, 0, -0.01, 0.02, 0.02, 0.01, 0.03, 0, -0.03, 0, 0.02, -0.03, -0.01, 0.01, 0.06, -0.01, -0.02, 0.01, 0, 0.04, -0.04, 0.01, -0.02, 0, -0.04, 0, 0.02, 0.02, -0.02, 0.04, -0.01, 0.01,0, 0.03, -0.03, 0.04, -0.01, -0.02, -0.02, 0.01, -0.02, -0.01, 0, -0.03, -0.01, 0.02, -0.01, -0.05, 0.02, 0.01, 0, -0.02, -0.03, 0, 0, 0, -0.01, 0.02, 0, 0.02, 0.03, -0.02, 0.02, -0.02, 0.02, -0.01, 0.02, 0, -0.07, -0.01, 0.01, 0.01, -0.01, 0.02, 0, -0.01, 0,0.01, 0.01, -0.06, 0.04, 0, -0.04, -0.01, -0.03, -0.04, -0.01, -0.01, 0.03, -0.02, -0.01, 0.02, 0, -0.04, 0.01, 0.01, -0.01, 0.02, 0.01, 0.03, -0.01, 0, -0.02, -0.02, -0.01, 0.04, -0.02, 0.06, 0, 0, -0.02, 0, 0.01, 0, -0.02, 0.02, 0.02, -0.06, -0.02, 0, 0.02,0.01, -0.01, 0, 0, -0.01, 0.01, -0.04, -0.01, -0.01, 0.01, -0.02, -0.03, 0.01, 0.03, -0.01, -0.01, 0, -0.01, 0, -0.01, 0.05, 0.02, 0, 0, 0.02, -0.01, 0.02, -0.03, -0.01, -0.02, 0.02, 0, 0.01, -0.06, -0.01, 0.01, 0.01, 0.02, 0.02, -0.02, 0.03, 0.01, -0.01, -0.01,0, 0, 0.03, 0.05, 0.05, -0.01, 0.01, -0.03, 0, -0.01, -0.01, 0, -0.02, 0.02, 0, 0.02, -0.01, 0.01, -0.02, 0.01, 0, -0.02, 0.02, 0.01, -0.03, 0.03, -0.04, -0.02, -0.01, 0.01, -0.04, -0.03, -0.02, -0.03, 0.01, 0, 0, -0.02, -0.01, 0.02, 0.01, -0.01, 0.01, 0.03,-0.01, -0.02, -0.01, 0, 0, -0.03, 0, 0.02, 0.03, 0.01, -0.01, 0.02, 0.04, -0.04, 0.02, 0.01, -0.02, -0.01, 0.03, -0.04, -0.01, 0, 0.01, 0.01, 0, 0.03, 0.05, 0, 0, 0.05, 0.01, -0.01, 0, -0.01, 0, -0.01, -0.01, 0.03, -0.01, 0.02, 0, 0, -0.01, 0, -0.02, -0.02,0.05,-0.02, -0.01, -0.01, -0.01, 0.02, 0, -0.01, 0, 0, 0, -0.02, -0.04, 0.01, 0.01, -0.01, 0.01, 0, -0.06, -0.01, -0.04, -0.03, 0.01, 0, -0.01, 0.03, -0.04, -0.01, 0, 0.04, 0.03"; + } + + static class Document { + @JsonProperty("id") + String id; + @JsonProperty("text") + String text; + @JsonProperty("title") + String title; + @JsonProperty("vector") + double[] vector; + @JsonProperty("score") + double score; + + public Document() { + } + + public Document(String id, String text, String title, double[] vector, double score) { + this.id = id; + this.text = text; + this.title = title; + this.vector = vector; + this.score = score; + } + + public String getId() { + return id; + } + } +} diff --git a/sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/documents/text-3properties-1536dimensions-100documents.json b/sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/documents/text-3properties-1536dimensions-100documents.json new file mode 100644 index 0000000000000..ec704a8c33523 --- /dev/null +++ b/sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/documents/text-3properties-1536dimensions-100documents.json @@ -0,0 +1 @@ +[{"title": "Parabolic reflector", "text": "A parabolic (or paraboloid or paraboloidal) reflector (or dish or mirror) is a reflective surface used to collect or project energy such as light, sound, or radio waves. Its shape is part of a circular paraboloid, that is, the surface generated by a parabola revolving around its axis. The parabolic reflector transforms an incoming plane wave traveling along the axis into a spherical wave converging toward the focus.", "vector": [-0.02738949842751026, 0.03491175174713135, -0.021398993209004402, -0.018760139122605324, -0.042221687734127045, 0.019897576421499252, -0.024750644341111183, -0.015590478666126728, -0.03924918174743652, 0.0045838737860322, -0.004727949388325214, 0.005251170601695776, 0.008606611751019955, -0.040553443133831024, 0.0018720327643677592, 0.03312218561768532, 0.024614151567220688, -0.004254017025232315, 0.026919357478618622, -0.009835043922066689, -0.00032867208938114345, -0.046255797147750854, -0.08153153210878372, -0.021019848063588142, -0.019017957150936127, 0.018744973465800285, 0.032121241092681885, -0.039340175688266754, -0.05620458722114563, -0.025508934631943703, 0.06970217823982239, 0.011510869488120079, 0.010593336075544357, -0.03545772284269333, -0.040735434740781784, -0.01607578620314598, -0.03160560131072998, -0.06051168218255043, -0.03206057474017143, 0.0011326983803883195, -0.015029342845082283, 0.013573423027992249, -0.02282458171248436, 0.004489087499678135, -0.02534211054444313, 0.037732597440481186, -0.0015601853374391794, 0.029133569449186325, -0.02189946547150612, -0.038005582988262177, 0.005296668037772179, -0.07534386962652206, -0.011723190546035767, 0.05875244736671448, -0.018183836713433266, 0.02467481419444084, 0.029770534485578537, 0.0629078820347786, 0.0020265348721295595, -0.0036852979101240635, 0.04458755627274513, -0.028026463463902473, -0.04301030933856964, 0.0448908731341362, 0.004272974096238613, -0.005967756267637014, 0.0010644521098583937, 0.009569642134010792, -0.023218894377350807, -0.007052113302052021, 0.033516496419906616, -0.01188243180513382, -0.0016511803260073066, 0.026995187625288963, 0.013080532662570477, 0.04200936481356621, 0.03010418266057968, 0.037368617951869965, 0.05380838364362717, -0.03779326379299164, -0.039522167295217514, 0.011093808338046074, 0.021747808903455734, 0.02851177006959915, 0.010676748119294643, 0.03075631521642208, 0.011738356202840805, -0.041281405836343765, 0.04713541641831398, 0.011821769177913666, -0.031120294705033302, 0.0269496887922287, 0.03585203364491463, 0.06230125203728676, 0.08232015371322632, -0.006377233657985926, 0.0031241620890796185, 0.035882364958524704, -0.04813636094331741, 0.034638769924640656, -0.017061565071344376, -0.002250230871140957, -0.006180077791213989, 0.016864409670233727, -0.005505198147147894, -0.050926875323057175, -0.013816076330840588, -0.008667275309562683, 0.016712751239538193, 0.004216102417558432, 0.016667252406477928, -0.011283381842076778, 0.0552036426961422, -0.01841132342815399, -0.02684352919459343, -0.029012242332100868, 0.013436930254101753, -0.020079566165804863, -0.04067477211356163, 0.03136294707655907, -0.032606545835733414, -0.006119414698332548, -0.013262523338198662, 0.018350660800933838, -0.014847353100776672, -0.040068138390779495, 0.01916961558163166, -0.017835022881627083, 0.023052070289850235, -0.013186694122850895, -0.003920368384569883, -0.004951645154505968, -0.012519396841526031, -0.0012786694569513202, 0.009599973447620869, 0.03151460736989975, -0.014938347972929478, 0.018851133063435555, -0.006597138475626707, 0.021762974560260773, 0.008849265053868294, -0.04759038984775543, 0.07146141678094864, -0.006532683502882719, 0.005910884588956833, 0.004530793521553278, -0.022324109449982643, 0.03976482152938843, -0.016909906640648842, -0.02984636463224888, 0.004242642316967249, 0.0026976228691637516, -0.04637712612748146, -0.018183836713433266, 0.016591424122452736, -0.04804536700248718, -0.006126997526735067, 0.028572434559464455, 0.02834494598209858, -0.07382728904485703, -0.008204717189073563, 0.01777435839176178, -0.029057741165161133, 0.048106029629707336, 0.012549729086458683, 0.023598039522767067, 0.0030976219568401575, -0.02403784915804863, -0.040917422622442245, 0.0055734445340931416, 0.0067942943423986435, 0.010343099944293499, 0.023689035326242447, -0.01023693848401308, -0.07231070101261139, -0.018001846969127655, -0.007802822161465883, 0.01768336445093155, 0.0060739172622561455, -0.011556366458535194, -0.031059630215168, -0.05647757276892662, 0.036246348172426224, 0.0033573368564248085, 0.02450799010694027, 0.03788425773382187, -0.00373079557903111, 0.004481504205614328, -0.05656856670975685, -0.02470514550805092, -0.026054905727505684, 0.004856858868151903, 0.06069367378950119, -0.03336483612656593, 0.047469064593315125, -0.0872945487499237, -0.022035958245396614, -0.010790491476655006, -0.02748049423098564, -0.007143108639866114, 0.0025023629423230886, 0.025296613574028015, -0.032879531383514404, 0.0034672890324145555, -0.04304064065217972, 0.05032024160027504, 0.054384686052799225, -0.018547816202044487, 0.003628426231443882, -0.03524539992213249, 0.025463437661528587, -0.050835881382226944, -8.761824574321508e-05, 0.0007848319946788251, 0.023158229887485504, 0.004128898493945599, 0.0009094761917367578, -0.02488713525235653, 0.008735520765185356, -0.02629755809903145, 0.01953359693288803, -0.03115062601864338, 0.022020792588591576, 0.03345583379268646, -0.009440732188522816, 0.00981987826526165, -0.041584718972444534, -0.004617996979504824, -0.053838714957237244, -0.018274832516908646, -0.0674576386809349, 0.041281405836343765, 0.015355408191680908, -0.03104446455836296, -0.02403784915804863, -0.00958480779081583, 0.0037497528828680515, -0.019852079451084137, 0.0021611314732581377, 0.01842649094760418, 0.006437897216528654, -0.02001890353858471, -0.03136294707655907, -0.003821790451183915, 0.028663428500294685, -0.027374332770705223, 0.024917468428611755, -0.06909554451704025, -0.05235246568918228, -0.026585709303617477, -0.03776292875409126, 0.03133261576294899, -0.05665956065058708, 0.05399037525057793, -0.004382926505059004, 0.006305195856839418, 0.00523600447922945, 0.01982174627482891, 0.01094973273575306, 0.04237334430217743, 0.03266720846295357, -0.04492120444774628, 0.02796580083668232, -0.021641647443175316, -0.02619139850139618, 0.02112600952386856, -0.014824604615569115, -0.026798030361533165, -0.011290964670479298, 0.023719366639852524, -0.008803767152130604, 0.03560938313603401, 0.02347671240568161, -0.041008420288562775, 0.035033080726861954, 0.0023791403509676456, -0.010403763502836227, 0.014089060947299004, 0.042525000870227814, -0.019017957150936127, 0.027616987004876137, -0.056447237730026245, 0.010835989378392696, -0.013634085655212402, 0.02282458171248436, 0.013406598940491676, 0.010001868940889835, 0.014195222407579422, 0.020428379997611046, 0.00539903761819005, -0.022506099194288254, -0.031575269997119904, -0.044648218899965286, 0.07182539999485016, 0.04564916342496872, -0.022035958245396614, -0.010032200254499912, -0.028071962296962738, -0.004060652572661638, 0.044648218899965286, -0.001304261852055788, 0.023082401603460312, -0.04021979495882988, 0.03442644700407982, -0.01750137470662594, -0.028269117698073387, -0.007939314469695091, 0.03733828663825989, -0.0172890517860651, -0.034092798829078674, 0.0561135895550251, -0.015014177188277245, -0.011146889068186283, -0.016621755436062813, 0.002627481007948518, 0.0026312724221497774, -0.0009071065578609705, -0.04728707671165466, -0.010555421933531761, -0.010373431257903576, -0.032970525324344635, 0.01785018853843212, -0.0794689804315567, 0.00869002379477024, 0.039704158902168274, 0.0065933470614254475, 0.059996046125888824, -0.01795634999871254, 0.008341209031641483, 0.04674110561609268, -0.009016089141368866, -0.004140273202210665, 0.04589181765913963, -0.020549707114696503, -0.006745005492120981, 0.007855902425944805, -0.007567751687020063, 0.007215146441012621, -0.030741147696971893, -0.0025440689641982317, 0.016758248209953308, 0.02208145707845688, -0.01374024711549282, -0.017744027078151703, -0.011996176093816757, -0.06454579532146454, -0.0107980752363801, -0.01944260112941265, 0.015370573848485947, 0.000463979784399271, 0.0006545005599036813, -0.020792359486222267, -0.07588984072208405, 0.04555816948413849, 0.039886146783828735, -0.017653033137321472, 5.05034186062403e-05, -0.05526430532336235, 0.01552223227918148, 0.012178165838122368, -0.026449216529726982, -0.059723060578107834, -0.028951579704880714, -0.014104226604104042, -0.03172692656517029, -0.01374024711549282, 0.003110891906544566, -0.0062104095704853535, 0.01619711145758629, -0.012951623648405075, 0.011632195673882961, 0.008811349980533123, -0.029012242332100868, 0.01916961558163166, 0.03767193481326103, 0.03077148087322712, 0.041099414229393005, -0.031666263937950134, -0.007745950482785702, 0.002784826559945941, -0.004708991851657629, 0.01757720299065113, -0.010540255345404148, -0.004568708129227161, 0.02384069375693798, 0.037823595106601715, -0.012375322170555592, -0.04516385868191719, -0.03924918174743652, -0.026403719559311867, 0.01098764780908823, -0.009084335528314114, 0.004197144880890846, -0.01514308713376522, 0.0060928743332624435, -0.013436930254101753, 0.016667252406477928, 0.017471041530370712, -0.01309569925069809, 0.015431237407028675, 0.029421720653772354, 0.047924041748046875, -0.002581983571872115, -0.0024435953237116337, 0.005319416988641024, 0.009660637006163597, -0.03542739152908325, 0.036792315542697906, -0.016667252406477928, 0.01121513545513153, 0.04434490203857422, -0.028875751420855522, 0.03500274941325188, 0.02617623284459114, 0.016758248209953308, 0.03852122277021408, -0.010631250217556953, 0.04871266335248947, -0.0187904704362154, -0.01299712061882019, -0.028178121894598007, 0.014544036239385605, 0.02843594178557396, -0.019700421020388603, -0.019017957150936127, 0.009675802662968636, 0.04856100678443909, -0.0015355407958850265, 0.017258720472455025, -0.030437830835580826, -0.041857704520225525, 0.007962063886225224, 0.013884322717785835, -0.004458755720406771, -0.018562981858849525, 0.002204733435064554, 0.0010919400956481695, 0.024341166019439697, 0.011753522790968418, -0.0027753477916121483, -0.022005626931786537, 0.02449282445013523, 0.017319384962320328, -0.011298547498881817, -0.022187616676092148, -0.006142163183540106, 0.0036132603418082, -0.03982548415660858, 0.07218937575817108, 0.005922258831560612, 0.0105705875903368, 0.012739301659166813, -0.05617425590753555, -0.021732641384005547, -0.010964899323880672, -0.004083401057869196, -0.007700453046709299, -0.024553487077355385, -0.014885267242789268, 0.015529815107584, 0.0038691838271915913, 0.02523595094680786, 0.01464261393994093, -0.056447237730026245, 0.051199860870838165, 0.013641669414937496, -0.011988593265414238, -0.0021706102415919304, -0.0033402752596884966, -0.04379893094301224, -0.003890036838129163, -0.06105765327811241, -0.011245466768741608, 0.020155394449830055, -0.008758270181715488, -0.01853265054523945, -0.048682332038879395, -0.0014853039756417274, 0.005239796359091997, -0.03715629503130913, -0.03482075780630112, 0.031575269997119904, 0.007764907553792, -0.0029971483163535595, 0.03040749952197075, -0.0032094698399305344, -0.00921324547380209, 3.450820076977834e-05, 0.006945952773094177, -0.009895707480609417, 0.052413128316402435, -0.00015059200813993812, -0.014953513629734516, -0.017880519852042198, -0.022566763684153557, -0.019518429413437843, -0.010858737863600254, 0.03573070839047432, 0.031180957332253456, 0.07807371765375137, 0.013224608264863491, -0.004015155136585236, -0.01627294160425663, 0.03251555189490318, -0.023704200983047485, 0.06202826648950577, 0.029694706201553345, -0.02497813105583191, -0.007165857125073671, 0.016758248209953308, 0.023491879925131798, -0.01599995605647564, 0.02778381109237671, -0.02907290682196617, 0.025326944887638092, -0.008144053630530834, -0.02738949842751026, 0.006415148265659809, -0.04552783817052841, 0.009152581915259361, -0.013262523338198662, -0.014415126293897629, 0.005838846787810326, -0.022794250398874283, 0.03645866736769676, -0.01104072853922844, 0.05638657510280609, -0.0021933589596301317, 0.027844473719596863, -0.008530782535672188, 0.00023862493981141597, -0.03039233386516571, 0.043738268315792084, 0.012504231184720993, -0.013072949834167957, 0.000957817304879427, -0.010790491476655006, 0.048227354884147644, 0.025417940691113472, -0.02385585941374302, -0.0370653010904789, 0.004375343676656485, 0.006551641039550304, 0.006005670875310898, 0.01145778875797987, -0.0029061532113701105, 0.010244522243738174, -0.020443545654416084, -0.0062748645432293415, -0.016803745180368423, 0.07728509604930878, 0.006782920099794865, 0.023264391347765923, 0.07546519488096237, 0.017653033137321472, 0.008667275309562683, -0.007787656504660845, -0.008075807243585587, 0.010441677644848824, -0.0011507077142596245, -0.01145778875797987, 0.0011867266148328781, -0.02318856306374073, 0.02963404171168804, -0.024811306968331337, 0.021747808903455734, -0.0019772457890212536, 0.03721696138381958, -0.0041099414229393005, -0.0034255830105394125, -0.005907092709094286, 0.01663692109286785, -0.022293778136372566, 0.027525991201400757, 0.005744060035794973, -0.013626502826809883, -0.006312779150903225, 0.003927951212972403, -0.015969624742865562, 0.023734532296657562, 0.008068224415183067, -0.008591446094214916, -0.009789546951651573, 0.01374024711549282, 0.009948788210749626, -0.029785700142383575, 0.027616987004876137, 0.040280457586050034, 0.004159230273216963, -0.006312779150903225, -0.027905136346817017, 0.038763877004384995, 0.008712772279977798, 0.028466273099184036, 0.0196397565305233, 0.014779106713831425, 0.014187638647854328, -0.04112974554300308, 0.021853968501091003, 0.02086818963289261, 0.011806602589786053, 0.03739894926548004, -0.0008033153717406094, -0.04216102138161659, -0.014104226604104042, 0.04640745744109154, 0.015696639195084572, -0.044102247804403305, -0.0302103441208601, 0.01380091067403555, -0.04983493685722351, -0.0396738238632679, -0.010926984250545502, 0.02440182864665985, -0.014308965764939785, 0.0023260600864887238, -0.012595226056873798, -0.025645427405834198, -0.008561113849282265, -0.02030705288052559, -0.00892509426921606, -0.023886190727353096, 0.01505209133028984, -0.0491979718208313, -0.019958239048719406, -0.013831241987645626, 0.033698488026857376, -0.015082423575222492, -0.03049849532544613, 0.029421720653772354, -0.010502341203391552, -0.06527375429868698, -0.028132624924182892, -0.013891905546188354, 0.03843022882938385, 0.023446381092071533, 0.0018805635627359152, -0.01926061138510704, 0.00963030569255352, 0.005854012444615364, -0.03263687714934349, 0.012185748666524887, 0.036337342113256454, -0.05171550065279007, 0.010487175546586514, 0.021489989012479782, -0.023067235946655273, -0.025417940691113472, 0.01486251875758171, 0.021019848063588142, -0.009175330400466919, -0.016151614487171173, -0.0041099414229393005, 0.014726025983691216, 0.024902300909161568, -0.008856847882270813, -0.017986681312322617, 0.03882453963160515, 0.007753533311188221, -0.02347671240568161, -0.00163127516862005, 0.00240757642313838, -0.044011253863573074, 0.012678638100624084, -0.020352551713585854, 0.007385761942714453, -0.02000373788177967, 0.04385959729552269, 0.0029914609622210264, 0.0020208475179970264, -0.028269117698073387, 0.006782920099794865, -0.03245488926768303, -0.021671978756785393, 0.04461788758635521, -0.035670045763254166, -0.009372486732900143, 0.01739521324634552, 0.01841132342815399, -0.017804691568017006, -0.013080532662570477, 0.024750644341111183, 0.0014435979537665844, 0.01674308255314827, 0.01637910306453705, -0.005641690921038389, 0.027450162917375565, -0.055051982402801514, -0.033152516931295395, -0.019518429413437843, -0.06497044116258621, -0.01647009700536728, -0.02534211054444313, -0.00640756543725729, -0.00279240938834846, -0.03524539992213249, -0.027177177369594574, -0.014346879906952381, -0.02720750868320465, -0.04170604795217514, 0.010911818593740463, -0.009903290309011936, -0.0028739257249981165, -0.009516561403870583, -0.02385585941374302, 0.010267270728945732, -0.014604699797928333, -0.028390444815158844, -0.019518429413437843, -0.017046399414539337, 0.014066312462091446, -0.036246348172426224, 0.0009497604332864285, 0.01234498992562294, 0.026858694851398468, -0.013270106166601181, -0.001313740503974259, 0.010873904451727867, -0.04367760568857193, 0.02141415886580944, 0.020807527005672455, 0.01906345598399639, 0.0058691781014204025, 0.013725081458687782, 0.04771171882748604, 0.02675253339111805, 0.005122261121869087, -0.03545772284269333, -0.03597336262464523, 0.015742138028144836, -0.03994680941104889, 0.01029001921415329, -0.008614194579422474, -0.01127579901367426, -0.012087170965969563, 0.03394113853573799, -0.04740840196609497, 0.033061522990465164, -0.02280941605567932, 0.00252321595326066, -0.00011812763841589913, -0.01352034229785204, 0.02963404171168804, -0.0159847903996706, -0.010676748119294643, -0.014574367552995682, 0.006779128219932318, 0.02393168769776821, 0.013762995600700378, -0.007711827289313078, -0.004674868658185005, 0.011723190546035767, -0.030907971784472466, 0.011078642681241035, -0.026858694851398468, 0.02553926780819893, -0.024644482880830765, 0.009410400874912739, -0.0015819862019270658, 0.036155350506305695, -0.027541156858205795, 0.04173637926578522, 0.0035848242696374655, -0.0006293821497820318, -0.04734773933887482, -0.049622613936662674, 0.018638812005519867, 0.01533265970647335, 0.011116557754576206, -0.02132316492497921, 0.025872915983200073, 0.023052070289850235, -0.0026142108254134655, -0.017273886129260063, -0.01572697050869465, 0.015029342845082283, 0.00617628637701273, -0.05444534868001938, 0.01589379645884037, 0.008485284633934498, -0.00481515284627676, -0.019958239048719406, -0.05638657510280609, -0.034365784376859665, -0.02431083470582962, -0.025463437661528587, 0.014142141677439213, -0.00017452558677177876, 0.00981987826526165, 0.022035958245396614, 0.03767193481326103, 0.024068180471658707, -0.013194276951253414, -0.0055734445340931416, -0.004735532216727734, 0.021929798647761345, 0.00847011897712946, 0.0007753533427603543, -0.027738312259316444, -0.024144010618329048, 0.05435435473918915, -0.0019450184190645814, -0.004443589597940445, 0.001195257413201034, 0.003863496473059058, -0.04143306240439415, 0.04768138751387596, -0.03479042649269104, -0.025311779230833054, -0.003361128270626068, -0.02552410028874874, 0.036337342113256454, 0.018911797553300858, 0.02534211054444313, -0.0191847812384367, -0.015355408191680908, -0.009531727991998196, -0.034274786710739136, -0.009137416258454323, -0.005414203274995089, 0.01210991945117712, -0.049319297075271606, -0.024917468428611755, 0.03654966503381729, -0.03330417349934578, 0.012322241440415382, 0.002917527686804533, -0.004197144880890846, 0.018441656604409218, -0.010631250217556953, 0.019093787297606468, -0.03148427605628967, -0.009471064433455467, 0.010123195126652718, -0.03439611569046974, -0.004128898493945599, 0.030452998355031013, 0.02365870401263237, 0.013254940509796143, 0.01257247757166624, 0.03721696138381958, -0.02907290682196617, -0.01935160532593727, -0.025493768975138664, -0.041857704520225525, 0.027328835800290108, 0.046346794813871384, 0.009084335528314114, 0.011086225509643555, 0.0340624675154686, 0.016758248209953308, -0.013186694122850895, 0.004284348338842392, 0.032121241092681885, 0.006202826742082834, -0.017926016822457314, -0.02226344682276249, 0.011981010437011719, 0.0005374393076635897, 0.0018445447785779834, 0.015878628939390182, 0.022399939596652985, 0.0017099479446187615, -0.036792315542697906, 0.0042464337311685085, -0.004602830857038498, 0.03178759291768074, -0.010873904451727867, 0.012708970345556736, -0.0065705981105566025, -0.009706134907901287, 0.01927577704191208, 0.016151614487171173, -0.05620458722114563, 0.03676198422908783, 0.012314658612012863, -0.009986702352762222, -0.03542739152908325, 0.026782864704728127, 0.05656856670975685, 0.03621601685881615, 0.016106117516756058, -0.024280503392219543, 0.024841638281941414, 0.026858694851398468, -0.026600874960422516, -0.07552585750818253, -0.008060641586780548, 0.03284920006990433, 0.015544981695711613, -0.021641647443175316, -0.0021516529377549887, -0.0005488136666826904, -0.0039507001638412476, -0.027268171310424805, 0.038581885397434235, -0.014324131421744823, -0.020989516749978065, -0.011010396294295788, -0.006892872042953968, 0.01692507229745388, -0.0005199037841521204, -0.02086818963289261, -0.012481482699513435, 0.028587600216269493, -0.005835055373609066, 0.041099414229393005, 0.033152516931295395, -0.0004222737334202975, -0.012921291403472424, 0.01627294160425663, -0.03397146984934807, 0.04759038984775543, -0.009129832498729229, 0.05013825371861458, 0.007704244460910559, 0.019154449924826622, 0.030073851346969604, 0.007374387700110674, -0.039340175688266754, 0.0401894636452198, 0.02010989747941494, 0.04704442247748375, -0.004530793521553278, 0.01005494873970747, -0.028921248391270638, -0.012701387517154217, 0.006081500090658665, 0.026070071384310722, 0.024432161822915077, 0.024265335872769356, -0.00841703824698925, 0.0474993959069252, 0.03733828663825989, 0.02142932638525963, 0.017653033137321472, -0.030255841091275215, -0.01010802946984768, 0.014999011531472206, -0.010744994506239891, 0.01897246018052101, 0.012671055272221565, 0.017137393355369568, -0.013118447735905647, 0.02356770820915699, -0.025842582806944847, -0.057569511234760284, 0.011336461640894413, -0.010365848429501057, 0.025008462369441986, 0.016106117516756058, 0.0002462078700773418, -0.03348616510629654, -0.044466231018304825, 0.009471064433455467, -0.006066333968192339, 0.007886234670877457, -0.009046420454978943, 0.041190408170223236, 0.003129849210381508, -0.02320372872054577, 0.013831241987645626, 0.03048332966864109, -0.0003400464775040746, 0.0047469064593315125, -0.010858737863600254, 0.003562075551599264, -0.040341123938560486, 0.005907092709094286, -0.030923139303922653, 0.0015772469341754913, -0.02020089328289032, -0.018669143319129944, 0.010919401422142982, 0.05496098846197128, 0.012648306787014008, 0.06685100495815277, -0.003071081591770053, 0.019761083647608757, 0.027935469523072243, 0.03943117335438728, 0.03573070839047432, -0.005262544844299555, -0.01417247299104929, -0.008917511440813541, -0.012663472443819046, 0.0034066257067024708, 0.0006971544935368001, -0.02599424123764038, 0.001672981190495193, -0.013368683867156506, -0.02758665382862091, 0.007143108639866114, 0.01628810726106167, 0.004356386139988899, 0.009266325272619724, -0.011389542371034622, -0.013072949834167957, -0.0053497483022511005, -0.026161065325140953, -0.002953546354547143, -0.03218190371990204, -0.00897817499935627, 0.019033122807741165, -0.038581885397434235, 0.03506341204047203, -0.009152581915259361, 0.007726992946118116, -0.004163021687418222, 0.013914654031395912, 0.010934567078948021, 0.018214168027043343, -0.052140142768621445, -0.020746862515807152, 0.039704158902168274, 0.029998023062944412, 0.0021383827552199364, 0.014498538337647915, 0.06478844583034515, 0.043252963572740555, -0.016970569267868996, 0.02030705288052559, 0.0015544980997219682, 0.028572434559464455, -0.027814142405986786, 0.02385585941374302, -0.02264259196817875, -0.0036416961811482906, 0.0629078820347786, -0.011010396294295788, 0.006062542553991079, -0.027616987004876137, 0.0048303185030817986, -0.020701365545392036, 0.0004232215869706124, 0.024053014814853668, -0.02729850448668003, -0.05835813656449318, -0.0035412225406616926, -0.03086247481405735, -0.02514495514333248, 0.0017630283255130053, -0.014263467863202095, 0.005550695583224297, -0.001238859142176807, -0.019412269815802574, -0.012898542918264866, -0.00511846924200654, -0.03448710963129997, -0.007954481057822704, -0.01628810726106167, -0.05414203181862831, -0.030634988099336624, 0.029512716457247734, -0.02394685335457325, -0.029967691749334335, -0.03533639758825302, 0.013391432352364063, 0.004663494415581226, 0.021656813099980354, -0.02224828116595745, -0.009675802662968636, 0.04052311182022095, 0.009554476477205753, 0.03321317955851555, -0.0017781942151486874, 0.04610414057970047, -0.043434951454401016, 0.01757720299065113, 0.003370607038959861, -0.021368661895394325, 0.010426511988043785, 0.015271996147930622, 0.022566763684153557, 0.037368617951869965, 0.04728707671165466, 0.015453985892236233, -0.001555445953272283, -0.015302328392863274, -0.022672923281788826, -0.010418929159641266, -0.010418929159641266, -0.017425544559955597, -0.00032345883664675057, -0.009266325272619724, 0.0030369586311280727, 0.067336305975914, -0.018365826457738876, -0.010744994506239891, 0.011670110747218132, -0.006684341933578253, 0.04525485262274742, 0.020428379997611046, 0.021353496238589287, -0.0033099434804171324, -0.0053307912312448025, 0.00016990475705824792, 0.020079566165804863, -0.004894773475825787, 0.0003170607378706336, -0.006020836532115936, 0.05744818598031998, -0.02535727620124817, 0.024053014814853668, 0.022415105253458023, 0.05432402342557907, -0.002115634037181735, 0.00040521216578781605, -0.022142119705677032, -0.036337342113256454, -0.03433545306324959, -0.01028243638575077, -0.02309756726026535, -0.006540266331285238, 0.01730421744287014, -0.021914632990956306, -0.01663692109286785, -0.009880541823804379, 0.018653977662324905, -0.013907071202993393, 0.032121241092681885, -0.008667275309562683, 0.009008506312966347, 0.022308943793177605, -0.03421412408351898, 0.015939293429255486, 0.0006625574314966798, 0.007764907553792, -0.02271842211484909, 0.015226499177515507, -0.01757720299065113, 0.005922258831560612, 0.05365672707557678, 0.012708970345556736, 0.008326043374836445, 0.02047387696802616, 0.030240675434470177, -0.010835989378392696, -0.007654955610632896, 0.0018369618337601423, 0.010638833977282047, -0.021262500435113907, -0.037641603499650955, 0.022005626931786537, -0.004762072116136551, -0.004538376349955797, 0.003402834292501211, 0.02544827200472355, -0.01869947463274002, 0.03500274941325188, 0.008401872590184212, -0.023294722661376, 0.010244522243738174, 0.0024379079695791006, 0.001664450392127037, 0.008591446094214916, -0.00959239061921835, -0.020140228793025017, 0.007518462836742401, -0.01906345598399639, -0.0010056844912469387, 0.01992790773510933, 0.03852122277021408, 0.009835043922066689, 0.02224828116595745, -0.00523600447922945, -0.03154493868350983, -0.004447381477802992, -0.00446633854880929, -0.019017957150936127, 0.014005648903548717, 0.004917521961033344, -0.007040739059448242, -0.011776271276175976, -0.011670110747218132, -0.024007517844438553, -0.009918455965816975, -0.0044284239411354065, -0.015590478666126728, -0.007662538439035416, 0.024811306968331337, 0.016576258465647697, 0.008909928612411022, -0.03227289766073227, 0.01323977392166853, -0.011859683319926262, -0.00012653993326239288, 0.011708024889230728, 0.01692507229745388, -0.027616987004876137, 0.059237752109766006, 0.0224454365670681, -0.03843022882938385, 0.03906719386577606, -0.009910873137414455, -0.005880552809685469, 0.011078642681241035, 0.01258764322847128, -0.004542167764157057, 0.004034112207591534, -0.01486251875758171, 0.023628370836377144, 0.019002791494131088, -0.01080565806478262, 0.016712751239538193, 0.0159847903996706, -0.02751082554459572, -0.016515593975782394, -0.011783854104578495, 0.013110864907503128, 0.018305163830518723, 0.001071087084710598, -0.021459657698869705, -0.008674858137965202, 0.015939293429255486, -0.0034995165187865496, 0.01581796631217003, 0.014362046495079994, 0.006566806696355343, 0.0006113727577030659, -0.029118403792381287, 0.023355387151241302, 0.0030331669840961695, 0.0063696508295834064, 0.05292876437306404, -0.011905181221663952, 0.05814581364393234, -0.021444492042064667, 0.014892850071191788, 0.03788425773382187, -0.005395245738327503, -0.01692507229745388, 0.007848319597542286, 0.03095347061753273, -0.015544981695711613, 0.0278596393764019, 0.0039507001638412476, 0.011981010437011719, -0.013452095910906792, 0.010600918903946877, 0.00012535510177258402, -0.02647954784333706, 0.04862166941165924, 0.038854870945215225, -0.015438820235431194, -0.019488098099827766, -0.011245466768741608, 0.013254940509796143, 0.007848319597542286, -0.02666153945028782, -0.006346902344375849, -0.004921313375234604, 0.020079566165804863, 0.016515593975782394, 0.023127898573875427, 0.01304261852055788, 0.02095918543636799, 0.03903685882687569, -0.0146805290132761, -0.052898433059453964, -0.01589379645884037, -0.03900652751326561, -0.0072492691688239574, -0.003639800474047661, -0.029876695945858955, 0.023598039522767067, -0.02124733477830887, 0.0015611331909894943, 0.011366793885827065, 0.009463481605052948, 0.020322220399975777, 0.03630701079964638, 0.014308965764939785, 0.007825571112334728, -0.00066066172439605, -0.006688133347779512, -0.013308020308613777, -0.018259664997458458, 0.003135536564514041, -0.009569642134010792, 0.026115568354725838, -0.007901400327682495, 0.019093787297606468, -0.006062542553991079, -0.0003696672501973808, 0.020170561969280243, 0.000715163943823427, -0.012822713702917099, -0.004288139753043652, -0.0057137287221848965, 0.024068180471658707, 0.013368683867156506, 0.028648262843489647, -0.0013516551116481423, 0.0020227432250976562, 0.00605875113978982, -0.011799019761383533, 0.019215114414691925, 0.016712751239538193, -0.008113722316920757, 0.03218190371990204, -0.03239422291517258, 0.02496296539902687, -0.02001890353858471, -0.015370573848485947, -0.03958282992243767, -0.0105705875903368, -0.00940281804651022, 0.030346836894750595, 0.05062355846166611, 0.04434490203857422, -0.010980064980685711, 0.02133833058178425, 0.01804734393954277, 0.025948744267225266, -0.015393323265016079, 0.04291931539773941, -0.0056682308204472065, -0.029800865799188614, -0.01860848069190979, 0.005262544844299555, -0.016970569267868996, -0.0027071016374975443, -0.03233356028795242, -0.019381938502192497, 0.01860848069190979, 0.0034066257067024708, -0.012557311914861202, 0.007893817499279976, -0.04813636094331741, 0.03160560131072998, -0.005717520136386156, -0.025190452113747597, -0.003347858088091016, 0.00264075119048357, -0.007817988283932209, 0.00940281804651022, -0.0018625541124492884, -0.03973449021577835, -0.011890014633536339, 0.011905181221663952, -0.019321274012327194, -0.0001368479715893045, 0.0422823503613472, 0.0012786694569513202, 0.00011475087376311421, -0.0064530628733336926, -0.03946150466799736, -0.02039804868400097, 0.03882453963160515, 0.013831241987645626, -0.0005454961210489273, 0.018487153574824333, 0.018775304779410362, 0.026691870763897896, -0.0007421780610457063, 0.01333076972514391, 0.018380992114543915, 0.03309185430407524, 0.03579137101769447, 0.006263489834964275, -0.002976295305415988, -0.037368617951869965, -0.03518473729491234, -0.01619711145758629, 0.03991647809743881, 0.012928875163197517, -0.01417247299104929, 0.003010418266057968, 0.011730773374438286, -0.0037345869932323694, 0.016970569267868996, 0.028572434559464455, -1.4491963156615384e-05, 0.013376266695559025, 0.003347858088091016, 0.002030326286330819, -0.001514687784947455, -0.01103314571082592, -0.025599930435419083, -0.007347847335040569, -0.013163944706320763, 0.03776292875409126, -0.0031999913044273853, -0.0008090025512501597, -0.0013848303351551294, 0.011586698703467846, -0.018729805946350098, 0.007287183776497841, 0.019002791494131088, 0.011518452316522598, 0.009054004214704037, 0.021580982953310013, 0.021171506494283676, 0.02635822258889675, -0.035882364958524704, -0.0003594776790123433, -0.011541200801730156, -0.020595204085111618, -0.0013781952438876033, -0.00217440165579319, -0.03949183598160744, 0.009622722864151001, 0.020898520946502686, 0.023294722661376, 0.009038837626576424, -0.039795152842998505, 0.0452851839363575, -0.026813197880983353, 0.0051298439502716064, 0.009038837626576424, -0.013998066075146198, -0.004223685245960951, 0.008576279506087303, -0.014043563976883888, -0.022308943793177605, -0.029315559193491936, 0.023537376895546913, 0.017076730728149414, 0.01853265054523945, 0.02161131612956524, -0.020792359486222267, -0.00039644440403208137, -0.017152559012174606, 0.0004677712277043611, -0.041493725031614304, -0.002483405638486147, 0.015924127772450447, 0.029512716457247734, -0.014475789852440357, 0.04243400692939758, -0.006502351723611355, -0.012557311914861202, -0.016242610290646553, 0.0025535474997013807, -0.00869760662317276, -0.050168585032224655, 0.022945908829569817, 0.023734532296657562, -0.02470514550805092, -0.002204733435064554, -0.003939325921237469, -0.024720311164855957, -0.019017957150936127, -0.010623667389154434, 0.0063696508295834064, -0.014938347972929478, -0.01121513545513153, 0.023340221494436264, 0.028678594157099724, -0.04947095364332199, -0.004515627399086952, -0.0409780889749527, 0.011715607717633247, 0.01285304594784975, -0.019154449924826622, 0.017471041530370712, 0.029512716457247734, -0.015651142224669456, -0.020807527005672455, 0.003992406185716391, 0.018183836713433266, 0.006305195856839418, 0.005876761395484209, -0.001638858113437891, -0.005103303585201502, -0.014058729633688927, -0.015484318137168884, 0.007730784825980663, -0.004280556924641132, -0.003827477805316448, 0.0022881454788148403, 0.014627448283135891, 0.019230280071496964, 0.05210981145501137, 0.005292876623570919, -0.03748994693160057, 0.005842638202011585, 0.009099501185119152, -0.008545948192477226, -0.029482383280992508, 0.04701409116387367, -0.048500340431928635, 0.0375809408724308, 0.007321306969970465, -0.010608501732349396, -0.009478647261857986, 0.013778161257505417, -0.00804547592997551, 0.01721322350203991, 0.029254896566271782, -0.02907290682196617, 0.01374782994389534, -0.0038691838271915913, -0.006926995236426592, -0.019472932443022728, 0.007268226705491543, 0.015067257918417454, -0.0006763014825992286, 0.019503263756632805, 0.018092840909957886, -0.032788537442684174, 0.03657999634742737, -0.010009451769292355, 0.009895707480609417, -0.009175330400466919, -0.043252963572740555, 0.0017279573949053884, 0.005804723594337702, 0.001999994507059455, -0.007620832417160273, -0.008955425582826138, -0.027798976749181747, 0.022051123902201653, 0.015757303684949875, 0.018760139122605324, 0.007734576240181923, -0.028375277295708656, -0.02021605893969536, 0.02458381839096546, -0.010176275856792927, -0.009023671969771385, -0.028936414048075676, 0.011010396294295788, -0.018911797553300858, -0.020792359486222267, -0.06272589415311813, -0.038945864886045456, 0.025023628026247025, 0.007359221577644348, 0.010403763502836227, -0.023825528100132942, 0.0035146824084222317, -0.004894773475825787, 0.0020530750043690205, 0.005562070291489363], "id": 1}, {"title": "John Baird (Canadian politician)", "text": "John Russell Baird, PC (born May 26, 1969) served from 2011 to 2015 as Canada's Minister of Foreign Affairs in the cabinet of Prime Minister Stephen Harper. He had been a member of the federal cabinet, in various positions, since 2006. Previously he was a provincial cabinet minister in Ontario during the governments of Premiers Mike Harris and Ernie Eves. Baird resigned from cabinet on February 3, 2015, and as a Member of Parliament on March 16, 2015.", "vector": [-0.010904606431722641, -0.013850467279553413, -0.008957103826105595, 6.772535562049598e-05, 0.006471754051744938, 0.02263883501291275, 0.00030825199792161584, -0.001327922334894538, -0.08166854083538055, 0.05962028354406357, -0.013105213642120361, -0.006485815159976482, -0.03866881877183914, 0.00401452649384737, -0.026561962440609932, 0.01598779857158661, -0.0026312372647225857, 0.016395578160881996, -0.05258959159255028, -0.032706789672374725, 0.03509722277522087, -0.006485815159976482, 0.007944684475660324, 0.046093229204416275, 0.02016402967274189, 0.025929199531674385, 0.026758821681141853, 0.009273485280573368, 0.002865007845684886, -0.0007228432223200798, -0.011277233250439167, 0.02578858658671379, 0.046740055084228516, 0.010932729579508305, 0.00228321785107255, -0.004858209751546383, 0.015678448602557182, 0.00958283618092537, -0.02761656604707241, 0.019278163090348244, 0.00041283355676569045, 0.0012874958338215947, -0.011727198027074337, -0.01353408582508564, 0.01056713331490755, 0.026758821681141853, -0.06670722365379333, 0.013154428452253342, 0.03594090789556503, -0.017900146543979645, 0.016072167083621025, -0.026055751368403435, -0.013063029386103153, 0.05416446551680565, 0.011066311970353127, 0.00045787394628860056, 0.04285911098122597, 0.07221928983926773, -0.016339333727955818, -0.006851411424577236, 0.011213957332074642, -0.029050827026367188, 0.003446797840297222, -0.043618425726890564, 0.03262241929769516, 0.10394178330898285, 0.0028034893330186605, 0.021949827671051025, -0.12599003314971924, 0.004144594073295593, 0.0149472551420331, -0.005142952781170607, 0.038612570613622665, 0.026632269844412804, -0.018743829801678658, 0.009371914900839329, 0.020923346281051636, -0.0051605296321213245, -0.025057394057512283, -0.011692044325172901, 0.014651966281235218, -0.03259429708123207, 0.01653619296848774, 0.0120717016980052, -0.03349422663450241, -0.048118069767951965, 0.02183733507990837, -0.066032275557518, 0.01046870369464159, 0.007860315963625908, -0.038275096565485, 0.020445257425308228, 0.06856332719326019, 0.04280286654829979, 0.05798916518688202, 0.0006657188641838729, -0.012127947062253952, -0.05188652127981186, 0.03560343384742737, -0.04319658502936363, 0.04254975914955139, 0.04007495567202568, 0.014019204303622246, 0.010243721306324005, 0.03979372978210449, -0.027799364179372787, -0.046290088444948196, -0.02642134763300419, 0.012486512772738934, 0.09111779183149338, -0.03464725986123085, 0.04530579224228859, -0.039090659469366074, 0.0580454096198082, 0.006250286940485239, 0.002372859278693795, -0.017843902111053467, 0.016128411516547203, -0.0012751921312883496, 0.04148109629750252, 0.014244185760617256, -0.03970935940742493, 0.033184874802827835, 0.018771953880786896, -0.01611435040831566, -0.024073095992207527, 0.03425354138016701, 0.00019015830184798688, 0.015523772686719894, -0.029753897339105606, -0.05416446551680565, 0.03895004466176033, -0.03619401156902313, -0.025296436622738838, -0.004306300077587366, -0.020895222201943398, 0.04887738451361656, 0.005568309687077999, -0.025422990322113037, -0.020346827805042267, 0.04229665547609329, -0.0051605296321213245, 0.018040761351585388, 0.02158423140645027, 0.02571827918291092, -0.010820237919688225, -0.01515817642211914, 0.0006099127349443734, -0.017576735466718674, 0.05756732448935509, 0.015411281026899815, 0.03220057860016823, -0.0077689168974757195, 0.0038457897026091814, 0.045418284833431244, -0.02386217564344406, 0.011713135987520218, 0.02696974202990532, -0.01427230890840292, 0.02741970680654049, -0.05596432462334633, -0.00288609997369349, -0.00045128268538974226, 0.039990589022636414, 0.006313563324511051, 0.02261071279644966, -0.008732122369110584, 0.026786943897604942, -0.00821888167411089, 0.01631120964884758, 0.029838265851140022, -0.014595720916986465, 0.013667669147253036, -0.05883284658193588, 0.010763992555439472, -0.01858915574848652, 0.006854926701635122, 0.003213027259334922, -0.027250969782471657, -0.01768922619521618, 0.008352464064955711, -0.01891256682574749, -0.04350593313574791, 0.028024345636367798, -0.04716189578175545, -0.010897575877606869, 0.05005853995680809, -0.007076393347233534, -0.07266925275325775, -0.011973272077739239, 0.015889368951320648, 0.026533838361501694, -0.02106395922601223, -0.007181853987276554, 0.0642886683344841, 0.0022709141485393047, 0.038134485483169556, 0.03011949360370636, -0.015284729190170765, 0.02389029785990715, 0.0432809516787529, 0.0055120643228292465, 0.001624090364202857, 0.020149968564510345, 0.02793997898697853, 0.01295756921172142, 0.06636974960565567, -0.02841806598007679, -0.03366296365857124, 0.013119274750351906, 0.059001583606004715, -0.04735875502228737, 0.06288252770900726, 0.02581670880317688, -0.012535727582871914, 0.004510190337896347, 0.03630650416016579, 0.06794462352991104, 0.04980543628334999, 0.0064014471136033535, -0.02854461781680584, 0.01245838962495327, 0.00017807430413085967, -0.0286430474370718, 0.03821885213255882, -0.03571592643857002, -0.009603927843272686, -0.014131695032119751, -0.024073095992207527, 0.015594079159200191, 0.013955927453935146, 0.06833834946155548, -0.01085539162158966, 0.0550362728536129, -0.024607429280877113, 0.08470579981803894, 0.005983120761811733, -0.04190293699502945, -0.0205155648291111, -0.008387617766857147, -0.014806641265749931, -0.005476910620927811, -0.032734911888837814, -0.0263932254165411, -0.0036489302292466164, 0.044265247881412506, -0.019095364958047867, -0.016929911449551582, -0.048118069767951965, 0.03619401156902313, 0.020853038877248764, -0.035884663462638855, 0.013316134922206402, -0.027236908674240112, -0.01451135240495205, -0.02793997898697853, -0.03082256205379963, 0.022877877578139305, 0.0012707979185506701, 0.014258247800171375, 0.016972094774246216, 0.034956611692905426, 0.015551894903182983, 0.021049898117780685, 0.0036629915703088045, -0.01753455027937889, -0.022793510928750038, 4.3145391828147694e-05, -0.004035618156194687, -0.03194747492671013, 0.046543195843696594, 0.005469880066812038, 0.03540657460689545, 0.034787874668836594, -0.046290088444948196, 0.021851396188139915, -0.06456989049911499, -0.017675165086984634, -0.018701646476984024, 0.06226382777094841, 0.05838288366794586, 0.013400502502918243, 0.030710071325302124, -0.05596432462334633, -0.008436832576990128, 0.02674476057291031, 0.016747113317251205, -0.003193692769855261, 0.01183265820145607, -0.01583312265574932, -0.01683148182928562, 0.03281927853822708, 0.05048038437962532, -0.031188158318400383, -0.02176702953875065, 0.013576270081102848, -0.020304644480347633, -0.03644711896777153, -0.021204574033617973, 0.06074519827961922, 0.009189116768538952, 0.03124440461397171, -0.0032956379000097513, -0.055148765444755554, 0.0237637460231781, 0.020248398184776306, -0.034731630235910416, 0.023004431277513504, 0.05917032063007355, -0.004137563519179821, -0.017703287303447723, -0.029107073321938515, 0.019798435270786285, -0.022484159097075462, 0.003350125625729561, 0.006928748916834593, 0.011755320243537426, 0.0002416801144136116, 0.0035399545449763536, -0.03574404865503311, 0.01549564953893423, 0.028685230761766434, -0.02116238884627819, 0.002146119251847267, 0.028825845569372177, -0.0450245663523674, 0.03504097834229469, -0.00017258156731259078, 0.015903430059552193, 0.02947266958653927, 0.027785303071141243, -0.09145526587963104, 0.02176702953875065, 0.012816955335438251, 0.01037027407437563, -0.022695079445838928, -0.02481834962964058, 0.006056942977011204, -0.019517207518219948, 0.03940000757575035, 0.0008638965082354844, 0.016353394836187363, 0.01936253160238266, -0.013337226584553719, -0.02241385169327259, -0.042943477630615234, 0.039512500166893005, 0.06023898720741272, 0.01295756921172142, -0.01656431518495083, 0.0005831081653013825, 0.013358318246901035, 0.02386217564344406, -0.021007712930440903, 0.039540622383356094, -0.024227771908044815, -0.057876672595739365, -0.04820244014263153, 0.06974448263645172, 0.016929911449551582, 0.06310751289129257, -0.0001834571739891544, -0.004882817156612873, 0.07891251146793365, 0.024044973775744438, 0.011706105433404446, 0.0542769581079483, -0.016015920788049698, -0.039990589022636414, -0.00020652663079090416, -0.014876948669552803, -0.022245116531848907, -0.02353876270353794, 0.010278875008225441, -0.04370279237627983, -0.03785325586795807, -0.07070066034793854, -0.00042381903040222824, -0.019643759354948997, -0.0071923998184502125, -0.02966952882707119, 0.00288609997369349, 0.004102409817278385, 0.029725775122642517, 0.005276536103338003, -0.0136325154453516, -0.03343798220157623, 0.008373556658625603, 0.01460978202521801, -0.0211342666298151, 0.004700019024312496, -0.0008348948904313147, 0.049299225211143494, -0.016690867021679878, -0.025774523615837097, -0.002490623388439417, 0.02944454737007618, -0.03380357846617699, 0.01898287422955036, 0.004608619958162308, -0.03450664505362511, -0.007269737776368856, -0.010813207365572453, -0.0035961999092251062, 0.012388083152472973, -0.040187448263168335, -0.00951955933123827, -0.059226565062999725, -0.038162607699632645, 0.07896875590085983, 0.008675876073539257, -0.015889368951320648, -0.018392296507954597, 0.04100300744175911, -0.016367455944418907, 0.021654536947607994, 0.013723914511501789, -0.020782731473445892, -0.0260135680437088, -0.00713615445420146, 0.047246262431144714, -0.02924768626689911, -0.02844618819653988, 0.014919132925570011, -0.00821888167411089, 0.04238102212548256, 0.03760015219449997, -0.01611435040831566, 0.03442227840423584, -0.02154204621911049, 0.017843902111053467, -0.031103789806365967, -0.032088086009025574, 0.03880942985415459, -0.016142472624778748, -0.015945613384246826, -0.07227553427219391, -0.006007728166878223, 0.018518848344683647, 0.032734911888837814, 0.014152786694467068, -0.04046867415308952, -0.009906248189508915, 0.014497291296720505, 0.004629712086170912, 0.011199895292520523, -0.026547901332378387, 0.011066311970353127, 0.04997417330741882, 0.060126494616270065, -0.020768670365214348, -0.016465885564684868, -0.0021250273566693068, -0.016648683696985245, -0.01279586274176836, -0.01678929664194584, -0.025830769911408424, -0.017590796574950218, -0.018968813121318817, -0.028080591931939125, -0.018125129863619804, -0.01149518508464098, -0.02164047583937645, -0.002720878692343831, -0.03234119340777397, -0.03962499275803566, -0.013133336789906025, -0.013625484891235828, -0.01865946128964424, -0.0017137316754087806, -0.0043766070157289505, -0.008408710360527039, 0.0015898157143965364, 0.04668380692601204, 0.016817420721054077, 0.058551620692014694, -0.029500791803002357, -0.004967185202986002, 0.04572763293981552, 0.017323629930615425, -0.006419023498892784, -0.035012856125831604, 0.002306067617610097, 0.017478305846452713, 0.0477805957198143, -0.01733769103884697, -0.06738217175006866, -0.008401679806411266, -0.04074990376830101, -0.02986638806760311, 0.0022146685514599085, 0.018771953880786896, 0.05031164735555649, -0.013316134922206402, 0.0076634567230939865, 0.0041902936063706875, -0.041115500032901764, 0.06513234972953796, 0.03425354138016701, -0.04434961825609207, 0.03805011510848999, 0.04311221465468407, 0.027757180854678154, -0.02803840860724449, -0.007132639177143574, -0.021331125870347023, -0.04060928896069527, -0.012816955335438251, 0.007276768330484629, -0.027433767914772034, -0.0007628303137607872, 0.03968123719096184, -0.005754623096436262, -0.01018044538795948, 0.011122558265924454, -0.02363719418644905, -0.03549094498157501, -0.007410351652652025, -0.027785303071141243, 0.011164742521941662, 0.04190293699502945, -0.003916096407920122, -0.0012831016210839152, -0.0003882261225953698, 0.0597890205681324, 0.020121846348047256, -0.016423700377345085, -0.025760462507605553, -0.017731409519910812, -0.0038563357666134834, -0.017168954014778137, 0.0005593795794993639, 0.0036454149521887302, -0.010074984282255173, -0.01640963926911354, 0.029950756579637527, -0.015200360678136349, -0.01718301698565483, -0.024930840358138084, 0.025099577382206917, 0.0029370724223554134, -0.005846022162586451, 0.04032805934548378, -0.053095802664756775, -0.006102642510086298, 0.023060675710439682, 0.010953821241855621, -0.014216063544154167, -0.0013604393461719155, 0.006257317494601011, 0.0039653112180531025, -0.07610023021697998, -0.017126770690083504, -0.0012057640124112368, 0.030935054644942284, -0.0029528914019465446, -0.06586354225873947, 0.028080591931939125, -0.008549324236810207, -0.03560343384742737, -0.0015467526391148567, -0.035209715366363525, -0.01482070330530405, 0.001225098385475576, -0.012655248865485191, 0.01030699722468853, -0.023623131215572357, 0.002835127292200923, -0.02919144183397293, 0.0010449369437992573, 0.009561743587255478, 0.006021789275109768, -0.017872024327516556, 0.014152786694467068, -0.00010540548100834712, -0.010454641655087471, 0.03731892257928848, 0.05596432462334633, -0.011502215638756752, 0.030906930565834045, 0.00747362757101655, -0.0327630341053009, 0.01756267435848713, 0.0023007947020232677, -0.0007470112177543342, 0.009210209362208843, -0.017098648473620415, -0.041115500032901764, -0.0008471986511722207, -0.017773594707250595, -0.023257534950971603, 0.004425821825861931, 0.020853038877248764, 0.01348487101495266, -0.0025205037090927362, -0.0001285298785660416, -0.0450245663523674, 0.005687831435352564, 0.021949827671051025, 0.05098659172654152, 0.022202931344509125, 0.01408248022198677, -0.008043114095926285, -0.01621278002858162, -0.029978878796100616, 0.019924987107515335, 0.03279115632176399, -0.009308638982474804, 0.0009166267118416727, -0.03740329295396805, 0.0460369847714901, 0.0057440767996013165, 0.007227553520351648, -0.01183265820145607, 0.007600180339068174, 0.04004683345556259, 0.014862887561321259, 0.01830792799592018, 0.0003078125591855496, 0.006021789275109768, 0.02356688678264618, -0.013604393228888512, -0.01212091650813818, 0.022484159097075462, 0.019292224198579788, 0.01939065381884575, -0.029585160315036774, -0.025521419942378998, 0.060576461255550385, 0.0022129109129309654, 0.029360178858041763, 0.02209044061601162, -0.02831963635981083, -0.03231307119131088, -0.009097717702388763, 0.025704218074679375, 0.04668380692601204, -0.0043379380367696285, 0.015594079159200191, -0.0009579320903867483, 0.03014761582016945, 0.007782978471368551, 0.027827486395835876, 0.012648218311369419, -0.016353394836187363, -0.007874377071857452, 0.009315669536590576, -0.0647948756814003, -0.0015616929158568382, 0.029810141772031784, -0.010792115703225136, 0.013210673816502094, -0.013414564542472363, -0.005374965723603964, -0.01279586274176836, -0.020149968564510345, -0.014497291296720505, -0.0027665779925882816, -0.046796299517154694, 0.0012400386622175574, 0.04569951072335243, -0.051492802798748016, 0.0009043230093084276, -0.027982162311673164, 0.013998111709952354, 0.02966952882707119, -0.012156070210039616, 0.04347781091928482, -1.3518981177185196e-05, 0.0010115411132574081, -0.016353394836187363, 0.006071004085242748, -0.017970453947782516, -0.024227771908044815, 0.011895934119820595, -0.013070059940218925, -0.07728138566017151, 0.024171525612473488, 0.02116238884627819, -0.014553536660969257, 0.016704928129911423, -0.04524954780936241, -0.0312725268304348, -0.026660392060875893, 0.025858892127871513, 0.004049679730087519, -0.0022252146154642105, -0.0352659597992897, -0.02992263436317444, -0.0156362634152174, -0.012444328516721725, -0.019503144547343254, 0.033016137778759, 0.02193576470017433, -0.017520489171147346, -0.002346494235098362, 0.0027261516079306602, -0.03490036353468895, 0.005083191674202681, 0.0023746169172227383, -0.002863250207155943, -0.02584483101963997, 0.03970935940742493, 0.021921703591942787, -0.016198718920350075, 0.018068883568048477, 0.001817434444092214, -0.04620572179555893, -0.010960851795971394, -0.03290364891290665, 0.006612367928028107, -0.029163319617509842, -0.032284945249557495, -0.0034626168198883533, 0.025451112538576126, 0.025662032887339592, 0.013527055270969868, -0.05340515077114105, -0.0069182030856609344, -0.01280992478132248, 0.010482764802873135, 0.035687804222106934, -0.013224735856056213, 0.03279115632176399, 0.02158423140645027, 0.014778519049286842, 0.013611423783004284, -0.03394418954849243, -0.022174809128046036, 0.01482070330530405, -0.010236690752208233, 0.006570183672010899, 0.0017225199844688177, -0.003554015886038542, 0.04167795553803444, 0.02681506611406803, -0.044996440410614014, 0.012606034055352211, 0.0007320709992200136, 0.042943477630615234, 0.02369343861937523, -0.01730956882238388, -0.0033044260926544666, -0.01711270958185196, -0.016676805913448334, 0.012627126649022102, -0.033634841442108154, -0.03104754537343979, -0.009512528777122498, 0.019629698246717453, 0.013351287692785263, -0.003898519789800048, -0.0066756438463926315, -0.0029933180194348097, -0.01718301698565483, 0.01903911866247654, -0.042015425860881805, -0.044462110847234726, 0.020768670365214348, 0.004119986668229103, 0.029360178858041763, -0.01593155227601528, 0.0050620995461940765, -0.010103107430040836, 0.022681018337607384, 0.01059525553137064, 0.05067724362015724, -0.004000464919954538, 0.014398861676454544, 0.01615653559565544, 0.0010256024543195963, -0.0337754525244236, 0.0049144551157951355, 0.027377523481845856, 0.062151335179805756, -0.00747362757101655, -0.017323629930615425, 0.014054357074201107, -0.02273726463317871, -0.0036454149521887302, 0.004555889870971441, 0.0038352436386048794, -0.017393937334418297, -0.002669906010851264, -0.04010307788848877, -0.05531750246882439, -0.009723450057208538, 0.027855610474944115, -0.002471288898959756, -0.03324112296104431, 0.012528697028756142, -0.02176702953875065, -0.017295507714152336, 0.0003060548915527761, 0.01631120964884758, -0.023102860897779465, -0.06445740163326263, -0.023749684914946556, -0.013027875684201717, -0.04550265148282051, -0.023946544155478477, 0.015537833794951439, 0.008338402956724167, 0.0031005360651761293, 0.057876672595739365, -0.03487224131822586, 0.019320346415042877, 0.006014758720993996, -0.02706817165017128, 0.003750875359401107, 0.0010572406463325024, -0.019179733470082283, 0.027700934559106827, 0.029528914019465446, 0.007097485475242138, 0.024410570040345192, -0.01656431518495083, 0.017168954014778137, -0.03456289321184158, -0.03537845239043236, -0.028108714148402214, -0.005754623096436262, 0.02941642329096794, -0.019320346415042877, -0.031385019421577454, -3.257188654970378e-05, -0.005055068992078304, -0.0021900611463934183, 0.009062564931809902, 0.032988015562295914, -0.0075439345091581345, -0.00928051583468914, -0.04058116674423218, -0.0018859836272895336, -0.0017383390804752707, 0.008830551989376545, 0.017604857683181763, -0.008907889015972614, 0.0290227048099041, 0.04094676300883293, 0.03175061568617821, -0.04229665547609329, -0.0227653868496418, -0.008457925170660019, 0.009871094487607479, 0.0034977702889591455, -0.016803359612822533, -0.018898505717515945, 0.004179747775197029, -0.01020856760442257, -0.026983803138136864, -0.024649612605571747, -0.02771499566733837, 0.03124440461397171, 0.0031550240237265825, 0.0029687106143683195, 0.012964599765837193, 0.04007495567202568, -0.029838265851140022, -0.016578376293182373, -0.005568309687077999, 0.006042881403118372, -0.039315640926361084, 0.039962463080883026, -0.0002139967546099797, 0.0078181317076087, 0.0041902936063706875, -0.046740055084228516, 0.012036547996103764, -0.011825627647340298, 0.032931771129369736, 0.049242980778217316, 0.030007002875208855, 0.013280981220304966, -0.003691114252433181, -0.021752966567873955, 0.009892186149954796, 0.012591972947120667, 0.041284237056970596, 0.03214433416724205, -0.01290835440158844, -0.011502215638756752, -0.017492366954684258, 0.0017989788902923465, 0.011959210969507694, -0.00839464832097292, -0.013815313577651978, 0.026182305067777634, -0.0026154182851314545, -0.009477376006543636, 0.010412457399070263, 0.020276522263884544, -0.009449252858757973, -0.012451359070837498, -0.020796792581677437, -0.018406357616186142, -0.008563385345041752, 0.020192153751850128, -0.004735172260552645, -0.024326201528310776, 0.011228018440306187, -0.0075861187651753426, 0.022793510928750038, 0.0028720383998006582, 0.009097717702388763, 0.003559288801625371, 0.02841806598007679, 0.02398872748017311, 0.006760012358427048, -0.0005092858918942511, -0.024199649691581726, -0.024298079311847687, 0.0015783908311277628, 0.015945613384246826, 0.019896864891052246, 0.005547217559069395, -0.02148580178618431, 0.014019204303622246, -0.011790473945438862, 0.030428843572735786, -0.0017251565586775541, 0.003191935131326318, -0.08223100006580353, -0.030850686132907867, 0.0053257509134709835, 0.006837349850684404, -0.03335361182689667, -0.02045932039618492, 0.01576281525194645, 0.037234555929899216, -0.003877427661791444, -0.004295754246413708, 0.00011732470738934353, -0.011312386952340603, -0.015003501437604427, -0.028361819684505463, 0.026252610608935356, -0.0053046587854623795, -0.0034678897354751825, -0.0006011243676766753, -0.004418791271746159, 0.004942577797919512, -0.043337199836969376, -0.030428843572735786, 0.014680089429020882, -0.013688761740922928, -0.0156362634152174, -0.02344033308327198, -0.013520024716854095, 5.500968836713582e-05, 0.029528914019465446, 0.0006169434054754674, 0.016240904107689857, -0.004109440837055445, -0.010672593489289284, 0.014680089429020882, -0.04342156648635864, -0.006974448449909687, -0.004028587602078915, -0.009013350121676922, -0.00474571855738759, -0.022034194320440292, -0.05498002842068672, -0.0036278381012380123, 0.00041019704076461494, 0.006665098015218973, -0.030935054644942284, -0.020220275968313217, -0.030456965789198875, -0.009449252858757973, 0.015565956942737103, -0.008739152923226357, -0.023679377511143684, 0.015875307843089104, 0.009871094487607479, 0.029557038098573685, 0.011080374009907246, -0.007403320632874966, 0.024551182985305786, 0.010264812968671322, 0.017225200310349464, 0.030288230627775192, -0.0377688892185688, -0.01319661270827055, 0.04235289990901947, 0.06951950490474701, 0.005026946309953928, 0.02799622341990471, -0.02561984956264496, -0.010391365736722946, -0.05849537253379822, -0.019728127866983414, 0.03197559714317322, 0.021556107327342033, 0.017000218853354454, -0.025999506935477257, 0.023482518270611763, 0.0045629204250872135, -0.011073343455791473, 0.02453712187707424, -0.0005418028449639678, 0.009892186149954796, -0.015130053274333477, 0.014694150537252426, -0.0296414066106081, 0.03686895966529846, -0.0017515216022729874, 0.05410822108387947, -0.014314493164420128, 0.009160994552075863, 0.005719469394534826, 0.03144126385450363, -0.01593155227601528, -0.006475269328802824, -0.018406357616186142, -0.06113891676068306, 0.04980543628334999, -0.005708923563361168, 0.013836406171321869, -0.011551430448889732, -0.010482764802873135, 0.010510887950658798, 0.006127249915152788, 0.020051538944244385, -0.023595008999109268, 0.014919132925570011, 0.006907656788825989, -0.01678929664194584, -0.019868740811944008, 0.0038739123847335577, 0.011776412837207317, 0.01353408582508564, -0.0014122906140983105, -0.011635798960924149, -7.86009622970596e-05, -0.007501750718802214, 0.016465885564684868, 0.030231984332203865, -0.0003910823434125632, 0.011966241523623466, 0.0070482706651091576, -0.028882091864943504, 0.001054604072123766, -0.006946325767785311, -0.021471738815307617, 0.04910236597061157, 0.0032675149850547314, 0.01695803366601467, 0.02308879978954792, -0.002710332628339529, 0.010904606431722641, -0.03141314163804054, -0.031834982335567474, 0.017014279961586, -0.022877877578139305, -0.04035618528723717, -0.043393444269895554, 0.01933440938591957, 0.017253322526812553, 0.033156752586364746, 0.002133815549314022, -0.012606034055352211, -0.00032209366327151656, 0.015945613384246826, 0.013843436725437641, 0.012247469276189804, -0.016817420721054077, 0.046093229204416275, 0.03450664505362511, 0.007593149784952402, 0.003075928660109639, 0.03101942129433155, 0.010131229646503925, -0.010827268473803997, 0.0004600710526574403, 0.01846260204911232, -0.009871094487607479, -0.00016939578927122056, 0.004119986668229103, 0.028375880792737007, 0.02941642329096794, 0.0066756438463926315, 0.012036547996103764, -0.05666739493608475, 0.017520489171147346, 0.0009535378776490688, 0.01996717043220997, -0.012613065540790558, -0.010314027778804302, -0.01539721991866827, 0.0034098864998668432, 0.01598779857158661, -0.005357388872653246, -0.00821888167411089, -0.0062362258322536945, -0.0027384553104639053, 0.006907656788825989, 0.041115500032901764, -0.03490036353468895, -0.02876959927380085, 0.007403320632874966, 0.0005659708986058831, -0.016972094774246216, 0.013618454337120056, -0.026336979120969772, -0.0010352696990594268, -0.021626414731144905, 0.018476663157343864, -0.044715214520692825, -0.02594326063990593, -0.013815313577651978, 9.299191151512787e-05, -0.006222164258360863, 0.01529879029840231, 0.009610958397388458, -5.599837822956033e-05, -0.019826557487249374, -0.016901789233088493, 0.0022181840613484383, -0.009976554661989212, 0.027630627155303955, -0.015130053274333477, 0.01708458736538887, -0.02947266958653927, 0.01217013131827116, -0.0013692276552319527, 0.012823985889554024, -0.0005092858918942511, 0.013372380286455154, 0.010581194423139095, 0.005782745778560638, -0.014483229257166386, 0.012627126649022102, 0.0007641485426574945, 0.033634841442108154, -0.0007166913710534573, 0.016648683696985245, -0.010440580546855927, -0.004759779665619135, -0.005884690675884485, 0.015467527322471142, -0.010925698094069958, -0.0205155648291111, 0.048146191984415054, 0.01830792799592018, 0.017450181767344475, 0.013428625650703907, -0.015031623654067516, -0.024649612605571747, 0.0008225911878980696, -0.0024765620473772287, -0.005181621294468641, -0.015903430059552193, 0.00671782810240984, 0.0052062286995351315, 0.01377312932163477, 0.002154907677322626, -0.0008072115597315133, -0.03357859328389168, 0.0043976991437375546, -0.013098183088004589, -0.01070774719119072, 0.00532926619052887, 0.004067256581038237, -0.019053181633353233, 0.008626661263406277, -0.014891009777784348, -0.011776412837207317, -0.009793756529688835, -0.0017321872292086482, 0.014891009777784348, -0.020121846348047256, -0.026111997663974762, -0.022554466500878334, 0.0051394375041127205, -0.012395113706588745, 0.0014975378289818764, 0.0013885620282962918, -0.028347758576273918, 0.008211850188672543, 0.04741499945521355, -0.01598779857158661, 0.018518848344683647, 0.001421957858838141, -0.026449471712112427, 0.0237637460231781, 0.008134513162076473, -0.03625025972723961, -0.000981660676188767, -0.013330196030437946, 0.04620572179555893, 0.0009675992769189179, -0.017225200310349464, -0.003740329295396805, -0.022695079445838928, -0.0057440767996013165, -0.0030987784266471863, 0.00865478441119194, -0.006042881403118372, -0.014110603369772434, -0.009892186149954796, -0.005737046245485544, -0.014244185760617256, -0.007860315963625908, 0.006781104486435652, -0.04344968870282173, -0.013372380286455154, -0.03968123719096184, -0.010925698094069958, -0.005768684670329094, 0.00021201936760917306, 7.9205165093299e-05, 0.02058587223291397, 0.03262241929769516, 0.04454647749662399, 0.0012751921312883496, 0.023960605263710022, -0.008767275139689445, 0.013351287692785263, 0.013224735856056213, 0.005610493943095207, -0.033859822899103165, -0.002720878692343831, -0.021021775901317596, -0.010918667539954185, 0.0014861129457131028, 0.020473381504416466, -0.045783881098032, 0.0061377957463264465, 0.005543702282011509, -0.026083875447511673, 0.00671782810240984, 0.02176702953875065, 0.01284507755190134, -0.012725556269288063, -0.022259177640080452, -0.019151611253619194, 0.01176938135176897, -0.031610000878572464, 0.012106855399906635, 0.009983585216104984, 0.004186778329312801, -0.005874144844710827, -0.0005848658620379865, -0.029107073321938515, 0.009899217635393143, -0.05180215463042259, 0.01252166647464037, -0.006868988275527954, 0.0038809431716799736, -0.004861725028604269, 0.007825162261724472, -0.004932031966745853, 0.013252858072519302, 0.016620561480522156, 0.008577446453273296, -0.0034995279274880886, 0.0025978414341807365, -0.0005084070726297796, 0.00807826779782772, 0.024396508932113647, -0.0034204325638711452, 0.011410816572606564, -0.022006072103977203, 0.025324560701847076, 0.0015836638631299138, 0.020445257425308228, -0.027630627155303955, 0.0025310497730970383, -0.008486047387123108, -0.03467538207769394, 0.015326913446187973, 0.001086242264136672, -0.00047545068082399666, -0.011551430448889732, -0.008071236312389374, -0.024382447823882103, -0.0015757542569190264, -0.012184192426502705, 0.01775953359901905, 0.011860780417919159, -0.005962028633803129, -0.03917502611875534, 0.007895469665527344, 0.017014279961586, -0.0016680321423336864, 0.025760462507605553, -0.009484406560659409, -0.03580029308795929, 0.0011064554564654827, 0.0005026946309953928, 0.012142008170485497, -0.032931771129369736, -0.01549564953893423, -0.009596897289156914, -0.00019773826352320611, 0.012205285020172596, -0.002448439132422209, 0.0010959093924611807, 0.03461913764476776, 0.0215139240026474, -0.02081085368990898, 1.4088851457927376e-05, 0.010749931447207928, 0.020107785239815712, 0.008043114095926285, 0.026801005005836487, -0.023370027542114258, 0.01978437229990959, -0.004067256581038237, 0.02816496044397354, -0.014905070886015892, -0.039259396493434906, -0.00011545718007255346, -0.03616588935256004, -0.00642253877595067, -0.027658751234412193, -0.037290800362825394, 0.006686190143227577, -0.0021355734206736088, 0.006724858656525612, -0.0052870819345116615, 0.012767740525305271, -0.03056945838034153, -0.025212068110704422, -0.0009043230093084276, 0.0013015571748837829, -0.015369096770882607, -0.023355966433882713, -0.00802905298769474, -0.01576281525194645, -0.0017567946342751384, 0.027560319751501083, -0.030681949108839035, 0.006485815159976482, -0.008950073271989822, -0.02816496044397354, 0.017028341069817543, 0.03194747492671013, 0.02924768626689911, 0.024452753365039825, 0.0026962710544466972, -7.816154538886622e-05, 0.015256606042385101, -0.04046867415308952, 0.004468006081879139, 0.014455107040703297, -0.0029511337634176016, 0.008647753857076168, -0.008324341848492622, 0.051099084317684174, -0.023552825674414635, -0.03796574845910072, -0.049242980778217316, 0.015003501437604427, 0.0068408651277422905, 0.030935054644942284, 0.014525413513183594, -0.01791420765221119, -0.014876948669552803, 0.004608619958162308, -0.030288230627775192, 0.009857033379375935, -0.04645882546901703, -0.00642253877595067, 0.01683148182928562, -0.016353394836187363, 0.022006072103977203, -0.005582371260970831, -0.009885155595839024, 0.019826557487249374, 0.042212288826704025, -0.007347075268626213, 0.013857497833669186, 0.035856541246175766, -0.018125129863619804, 0.003063624957576394, 0.02944454737007618, -0.00610967306420207, -0.044687092304229736, 0.004886332433670759, 0.006995540577918291, 0.013512994162738323, 0.021373309195041656, 0.0038317283615469933, -0.05416446551680565, -0.006601821631193161, 0.015565956942737103, -0.01266931090503931, 0.033381734043359756, 0.007853285409510136, 0.014194970950484276, -0.005719469394534826, -0.005399573128670454, -0.012922415509819984, 0.050845980644226074, -0.04921485856175423, 0.006141311023384333, -0.016901789233088493, -0.0201359074562788, 0.010623378679156303, -4.122293830732815e-05, 0.011586584150791168, 0.021078020334243774, -0.006580729503184557, -0.03844383358955383, -0.0007878771284595132, 0.02992263436317444, 0.017604857683181763, -7.73925639805384e-05, -0.024930840358138084, -0.01653619296848774, 0.00807826779782772, 0.009139901958405972, 0.024002788588404655, 0.03605340048670769, 0.015889368951320648, 0.026801005005836487, 0.001059877104125917, -0.0006683553801849484, -0.044293373823165894, 0.0037051758263260126, 0.008471986278891563, -0.015945613384246826, 0.05320829153060913, -0.026196366176009178, -0.005789776332676411, -0.026210427284240723, 0.002522261580452323, -5.503715146915056e-05, 0.00899225752800703, -0.026055751368403435, 0.0029370724223554134, -0.005673769861459732, 0.04370279237627983, 0.02588701620697975, -0.009660173207521439, 0.024354323744773865, -0.05213962867856026, -0.02254040539264679, 0.018195435404777527, -0.021218635141849518, -0.002724393969401717, 0.028432127088308334, 0.01020856760442257, -0.024776166304945946, -0.0012874958338215947, 0.01566438563168049, 0.022399790585041046, -0.0071045164950191975, -0.012261530384421349, -0.021443616598844528, -0.011270202696323395, 0.0019105911487713456, 0.02424183301627636, 0.01718301698565483, 0.013955927453935146, 0.0025802648160606623, 0.002348251873627305, 0.011488153599202633, -0.008732122369110584, 0.016592437401413918, -0.02732127718627453, -0.016690867021679878, -0.039512500166893005, -0.0019088333938270807, -0.014497291296720505, 0.015903430059552193, 0.02093740738928318, -0.004239508416503668, 0.015214421786367893, 0.020332766696810722, -0.022343546152114868, 0.02006560005247593, 0.012767740525305271, -0.001448323018848896, -0.011087404564023018, -0.002351767150685191, -0.015214421786367893, -0.0058038379065692425, -0.006513937842100859, 0.02584483101963997, 0.007452535443007946, 0.011213957332074642, 0.018701646476984024, 0.02691349759697914, -0.0003888852661475539, -0.0069006262347102165, 0.015369096770882607, -0.010574163869023323, -0.0019932016730308533, -0.014834764413535595, 0.004932031966745853, -0.005332781467586756, -0.007101000752300024, -0.0012127946829423308, -0.023876236751675606, -0.017590796574950218, 0.018926627933979034, 0.03785325586795807, 0.00958283618092537, -0.006120219361037016, -0.025071455165743828, -0.021823273971676826, 0.011959210969507694, 0.08296219259500504, -0.024354323744773865, -0.010503856465220451, -0.024129342287778854, -0.018392296507954597, 0.04148109629750252, -0.0016653956845402718, -0.02341221086680889, -0.011129588820040226, 0.019700003787875175, -0.02353876270353794, 0.004081317689269781, 0.0014456864446401596, -0.013737976551055908, -0.01881413720548153, 0.005888206418603659, 0.02793997898697853, -0.006833834573626518, -0.0056386166252195835, -0.002733182394877076, -0.015101931057870388, 0.0038387589156627655, 0.03307238593697548, -0.0027472437359392643, 0.02549329586327076, -0.014581659808754921, -0.006584244780242443, 0.021429555490612984, -0.006802196614444256, 0.03312863036990166, 0.010813207365572453], "id": 2}, {"title": "The 80s: A Look Back at the Tumultuous Decade 1980-1989", "text": "The 80s: A Look Back at the Tumultuous Decade 1980-1989 is a humor book published in 1979.It was edited by Tony Hendra, Christopher Cerf and Peter Elbling, with art direction by Michael Gross. Contributors to the book included Henry Beard, Valerie Curtin, Amy Ephron, Jeff Greenfield, Abbie Hoffman, Sean Kelly, B.", "vector": [-0.00752367964014411, -0.0036515758838504553, -0.04269421845674515, -0.051015473902225494, -0.01003402378410101, -0.06568793952465057, -0.009151911363005638, 0.026492761448025703, -0.03531388193368912, 0.05613172426819801, 0.01989162340760231, 0.009004892781376839, 0.009732634760439396, 0.048427946865558624, -0.021861674264073372, -0.04534055292606354, -0.03152079880237579, -0.0022604118566960096, 0.02966836467385292, 0.01473862025886774, 0.02199399098753929, 0.004836913663893938, -0.07174510508775711, -0.018553754314780235, -0.012084933929145336, 0.012423076666891575, 0.019303549081087112, 0.026816202327609062, -0.009887004271149635, 0.04525234177708626, 0.008291852660477161, 0.00430029584094882, 0.04181210696697235, -0.007240668870508671, -0.03649003058671951, 0.015951523557305336, -0.026875009760260582, 0.06004241853952408, -0.00876966305077076, -0.04772225767374039, 0.030491668730974197, -0.01959758624434471, -0.009129858575761318, -0.01708356849849224, -0.010945538990199566, -0.027786526829004288, -0.02728666178882122, -0.02240564301609993, 0.00441055977717042, -0.013841806910932064, 0.013937368988990784, -0.021846972405910492, 0.011798246763646603, -0.010600045323371887, -0.01692184805870056, -0.016598407179117203, 0.03290277719497681, 0.008262448944151402, -0.0019094047602266073, -0.06509985774755478, 0.005807236768305302, -0.012974396347999573, 0.029242010787129402, -0.012621551752090454, 0.05033918842673302, 0.02434629015624523, -0.023287754505872726, 0.04657550901174545, -0.0026977923698723316, 0.02516959421336651, 0.025845879688858986, 0.00739503838121891, 0.05172116309404373, 0.03507865220308304, 0.05889567360281944, -0.0013718678383156657, -0.016730723902583122, 0.035990167409181595, -0.07309767603874207, -0.03402011841535568, -0.008938734419643879, -0.03748975694179535, -0.009600318036973476, -0.016098542138934135, -0.036107782274484634, -0.009365088306367397, 0.027742421254515648, -0.07192152738571167, 0.0064541189931333065, 0.050809647887945175, 0.0504273995757103, -0.011445402167737484, 0.023537686094641685, -0.013805052265524864, 0.02250855602324009, -0.02512548863887787, 0.009695880115032196, 0.045722801238298416, 0.019171232357621193, -0.040459536015987396, 0.02480204775929451, 0.018318524584174156, -0.018303822726011276, -0.014415179379284382, 0.03431415557861328, -0.02744838409125805, -0.04869258031249046, 0.020464997738599777, 0.03940099850296974, 0.046310875564813614, -0.0014692676486447453, -0.041077014058828354, -0.015628082677721977, 0.007747883442789316, -0.019303549081087112, 0.023199543356895447, 0.028683340176939964, 0.004006258212029934, -0.028154073283076286, 0.0345199815928936, 0.0016355825355276465, -0.019038915634155273, 0.025346016511321068, 0.0859765112400055, 0.01470921654254198, 0.01709827035665512, -0.020641420036554337, -0.02743368223309517, -0.015789803117513657, -0.009717932902276516, -0.025934090837836266, 0.020714929327368736, 0.03657824173569679, 0.04763404652476311, 0.005255917087197304, 0.008387414738535881, 0.006009387783706188, -0.030462265014648438, 0.03210887312889099, -0.021832270547747612, -0.0014113790821284056, 0.06268875300884247, 0.06509985774755478, -0.015936821699142456, -0.03534328565001488, -0.0394304022192955, -0.005741078406572342, 0.06198306754231453, -0.020729631185531616, -0.008380063809454441, -0.025875283405184746, -0.008402116596698761, 0.03757796809077263, 0.0012165793450549245, -0.027757123112678528, -0.003335485700517893, -0.027727719396352768, -0.0016962277004495263, -0.00213177059777081, 0.007214940618723631, -0.03696049004793167, 0.008203641511499882, -0.026345742866396904, -0.010526536032557487, 0.025566544383764267, -0.05769012123346329, 0.0026996301021426916, 0.007192887831479311, 0.00843887124210596, 0.0298300851136446, 0.03963622823357582, -0.0027676261961460114, -0.004844264592975378, 0.004612710326910019, -0.00020525182480923831, 0.04948648065328598, 0.009784091264009476, 0.021523531526327133, 0.024213973432779312, -0.015775101259350777, -0.00216117431409657, 0.03210887312889099, -0.013812403194606304, -0.03002120926976204, -0.02469913475215435, -0.02758070081472397, 0.02246445044875145, 0.02469913475215435, 0.02733076922595501, -0.038254253566265106, 0.020553208887577057, 0.0038482132367789745, -0.000869247829541564, 0.0450759194791317, 0.001313060405664146, -0.0033998063299804926, -0.030491668730974197, -0.00868145190179348, -0.0657467469573021, -0.04728119820356369, -0.021214792504906654, 0.00747957406565547, 0.03443177044391632, -0.020729631185531616, 0.01490769162774086, 0.051015473902225494, -0.023552387952804565, 0.005402935668826103, -0.032961584627628326, -0.003239923622459173, 0.04413500055670738, -0.04731060564517975, -0.013327240943908691, 0.01971520110964775, -0.061042144894599915, 0.009835547767579556, 0.018936002627015114, 0.012121688574552536, 0.05971897765994072, 0.00745384581387043, 0.018744878470897675, -0.007615566253662109, -0.007211265154182911, 0.018612561747431755, -0.05613172426819801, -0.010247200727462769, -0.023611195385456085, 0.028198178857564926, 0.0016704994486644864, -0.033049795776605606, -0.0006684754625894129, 0.023978743702173233, -0.047869276255369186, 0.004109171684831381, 0.025522438809275627, 0.06939280778169632, -0.03469640389084816, -0.0067224279046058655, 0.004822211805731058, 0.06245352700352669, 0.060806915163993835, -0.003012044820934534, -0.04181210696697235, -0.014598952606320381, 0.06480582058429718, -0.013731542974710464, -0.005252241622656584, -0.02489025890827179, -0.036107782274484634, -0.014135844074189663, 0.01975930668413639, 0.009225420653820038, 0.03003591112792492, 0.008343309164047241, 0.0355491116642952, 0.020803140476346016, 0.018200909718871117, 0.009784091264009476, -0.02208220213651657, 0.018245015293359756, -0.0009482703171670437, 0.013158169575035572, -0.00215749884955585, 0.008181587792932987, -0.011915862560272217, 0.012974396347999573, -0.008431520313024521, -0.04207674041390419, -0.010306008160114288, -0.08938734233379364, -0.021846972405910492, -0.043517522513866425, 0.023273052647709846, 0.016010330989956856, 0.012540691532194614, 0.038842327892780304, 0.003412670688703656, 0.03234410285949707, -0.0038004321977496147, 0.02218511514365673, 0.0449289008975029, -0.014466635882854462, -0.028859762474894524, -0.03257933259010315, -0.006773884408175945, 0.028256986290216446, 0.00015184270159807056, -0.053132541477680206, -0.0299771036952734, -0.0035486628767102957, 0.00876231212168932, 0.02212630771100521, 0.01470186561346054, 0.04207674041390419, 0.0038114585913717747, -0.0016686617163941264, 0.020920755341649055, -0.0022530609276145697, -0.057954754680395126, 0.018392033874988556, 0.07121583819389343, 0.043664541095495224, -0.05195639282464981, 0.014540145173668861, -0.04469367116689682, 0.009982566349208355, 0.0008504110155627131, 0.05016276612877846, -0.028359899297356606, -0.03763677552342415, -0.031167956069111824, 0.015378151088953018, -0.028359899297356606, -0.0501333624124527, 0.04201793298125267, -0.009945811703801155, 0.0589250773191452, -0.02446390502154827, -0.0009932947577908635, -0.029183203354477882, 0.05713145062327385, -0.030991533771157265, -0.061277374625205994, 0.006233591120690107, 0.011121961288154125, -0.019141828641295433, 0.06001301482319832, -0.007211265154182911, -0.025787072256207466, 0.015289939939975739, -0.05283850431442261, 0.046399086713790894, -0.043546926230192184, 0.04745762422680855, 0.0009602155769243836, 0.0037857303395867348, -0.055631861090660095, -0.0025029927492141724, -0.023170139640569687, 0.010283955372869968, 0.024228675290942192, 0.04654610529541969, 0.002914644777774811, 0.033049795776605606, 0.015348747372627258, -0.08774073421955109, -0.014194651506841183, 0.01978871040046215, -0.007997814565896988, -0.026081109419465065, 0.0007677130633965135, -0.02743368223309517, 0.005252241622656584, -0.017906872555613518, 0.011408647522330284, 0.02511078678071499, 0.021685251966118813, -0.050868455320596695, 0.04869258031249046, 0.03010942041873932, 0.009938460774719715, -0.046193260699510574, 0.020582612603902817, 0.031285569071769714, -0.021023668348789215, -0.0392833836376667, -0.05771952494978905, -0.03425534814596176, -0.033079199492931366, -0.016363175585865974, 0.015319343656301498, -0.036254800856113434, -0.07356813549995422, -0.019009511917829514, 0.020670823752880096, 0.0346670001745224, -0.004917773883789778, -0.0174070093780756, 0.005391909275203943, 0.014518092386424541, -0.027668911963701248, -0.003482504514977336, 0.03269694745540619, 0.01485623512417078, -0.014326968230307102, -0.01743641309440136, -0.04145926237106323, 0.041106417775154114, 0.002403754973784089, -0.019303549081087112, 0.004671517759561539, -0.021200090646743774, -0.08174237608909607, -0.021802866831421852, -0.041106417775154114, -0.018803685903549194, -0.012621551752090454, 0.06280636787414551, 0.022979015484452248, 0.030932726338505745, -0.006689348723739386, 0.033432044088840485, 0.012136390432715416, -0.0012689548311755061, 0.00747222313657403, 0.020523805171251297, -0.00426354119554162, -0.035813745111227036, 0.0177745558321476, 0.0449289008975029, -0.014143195003271103, -0.002001291373744607, -0.017950978130102158, 0.005138302221894264, 0.009460650384426117, 0.06221829727292061, -0.022831996902823448, 0.025772370398044586, 0.048604369163513184, 0.00742811756208539, 0.012136390432715416, 0.03710750862956047, 0.026669183745980263, -0.03413773328065872, -0.023361263796687126, 0.018818387761712074, -0.010725011117756367, -0.03707810491323471, 0.022846698760986328, -0.01483418233692646, 0.002881565596908331, -0.001524399733170867, -0.012871483340859413, -0.023919936269521713, 0.011687982827425003, -0.04201793298125267, -0.02280259318649769, 0.018142102286219597, 0.03513745963573456, 0.03531388193368912, 0.022920208051800728, -0.004020960070192814, -0.04010669142007828, 0.021464724093675613, -0.02499317191541195, 0.0012367944000288844, -0.04275302588939667, 0.001747684320434928, 0.0201562587171793, -0.0401654988527298, -0.006321802269667387, -0.02762480638921261, -0.009372439235448837, 0.045840416103601456, 0.02719845063984394, 0.02439039573073387, 0.009857600554823875, -0.04698716104030609, 0.016466090455651283, -0.009600318036973476, -0.004542876500636339, 0.03969503566622734, 0.016569003462791443, -0.04904542490839958, -0.04672252759337425, -0.05630814656615257, 0.005292671732604504, 0.023390667513012886, -0.028551023453474045, 0.020935457199811935, -0.000878436490893364, 0.012989098206162453, -0.07386217266321182, 0.0496923066675663, 0.05627874284982681, -0.050545014441013336, 0.004495095461606979, 0.0005517794052138925, -0.05621993541717529, -0.020450295880436897, 0.02194988541305065, -0.009997268207371235, -0.009504755958914757, -0.04137105122208595, 0.010695607401430607, -0.005979984067380428, -0.010658852756023407, -0.025992898270487785, 0.000879814790096134, 0.025360718369483948, 0.02468443289399147, 0.03193245083093643, -0.03178543224930763, -0.009960513561964035, -0.0022457099985331297, 0.015422256663441658, -0.0017044974956661463, 0.017892170697450638, 0.031461991369724274, -0.03431415557861328, -0.013319890014827251, 0.02969776839017868, 0.001487645087763667, 0.03816604241728783, -0.0014012715546414256, -0.07786107808351517, -0.0067297788336873055, -0.03781319782137871, -0.005281645338982344, 0.00846827495843172, 0.002598554827272892, 0.043370503932237625, -0.010827924124896526, 0.002442347351461649, -0.018230313435196877, -0.01723058708012104, -0.0026830905117094517, -0.018950704485177994, 0.009276877157390118, -0.055426035076379776, 0.04669312387704849, -0.007659671828150749, 0.04869258031249046, 0.02489025890827179, -0.005998361390084028, 0.012217250652611256, 0.011166066862642765, 0.01495914813131094, -0.018524350598454475, -0.0015685053076595068, 0.015422256663441658, 0.007828743197023869, 0.024125762283802032, -0.01512821950018406, -0.0017927087610587478, 0.00868880283087492, 0.03193245083093643, 0.04992753639817238, 0.03725452721118927, -0.06404132395982742, -0.02458151988685131, -0.027933545410633087, -0.05669039487838745, -0.03152079880237579, -0.016304368153214455, -0.032961584627628326, 0.004156952723860741, 0.011754141189157963, -0.03000650741159916, -0.020435594022274017, -0.005230188835412264, 0.007821392267942429, -0.010467728599905968, 0.023670004680752754, -0.029344923794269562, -0.013452206738293171, 0.0010034022852778435, 0.016260262578725815, 0.026860307902097702, 0.009526808746159077, 0.029065588489174843, 0.026904413476586342, -0.028830358758568764, 0.04513472691178322, -0.03269694745540619, -0.04266481474041939, 0.011276330798864365, 0.02202339470386505, -0.04751643165946007, 0.026213426142930984, 0.038695309311151505, 0.02506668120622635, 0.009012243710458279, -0.03487282618880272, -0.04442903771996498, 0.04407619312405586, -0.008960787206888199, -0.03796021640300751, -0.01354776881635189, -0.03381429240107536, 0.010519185103476048, -0.030815109610557556, 0.021288301795721054, 0.004171654582023621, 0.005616112612187862, 0.06592316925525665, -0.019332952797412872, -0.012989098206162453, -0.011041101068258286, 0.038930539041757584, -0.02750719152390957, -0.01701005920767784, -0.014010878279805183, -0.004024635534733534, 0.01978871040046215, -0.0169659536331892, -0.018245015293359756, -0.020553208887577057, 0.034225944429636, -0.005527901463210583, -0.00040315272053703666, -0.006505575496703386, 0.004498770926147699, -0.0016181240789592266, -0.00875496119260788, -0.008909330703318119, 0.016025032848119736, -0.018788984045386314, 0.019347654655575752, -0.02242034487426281, -0.012790623120963573, 0.011665930040180683, -0.03810723498463631, 0.016421984881162643, -0.026360444724559784, -0.06262994557619095, -0.02940373122692108, 0.02003864385187626, 0.03178543224930763, 0.025728264823555946, -0.011511560529470444, 0.026816202327609062, 0.018318524584174156, 0.01958288438618183, 0.016789531335234642, 0.005351479165256023, -0.031256165355443954, 0.046252068132162094, -0.011386594735085964, -0.02477264404296875, -0.002390890847891569, 0.018788984045386314, -0.035725533962249756, 0.01699535734951496, 0.031050341203808784, 0.0007782800239510834, 0.006079221609979868, -0.02949194237589836, -0.023258350789546967, -0.0003533042035996914, -0.0004654059302993119, -0.0005242134211584926, -0.05989539995789528, 0.05039799585938454, -0.027771824970841408, -0.038607098162174225, 0.0438997708261013, 0.029300818219780922, -0.004954528529196978, 0.021655848249793053, -0.016657214611768723, 0.002558124717324972, 0.020391488447785378, 0.009431246668100357, 0.0014720242470502853, -0.016583705320954323, -0.0031020937021821737, 0.0147680239751935, 0.0050537665374577045, 0.01497384998947382, -0.014407828450202942, -0.03254992887377739, -0.0014527280582115054, -0.028521619737148285, 0.025243103504180908, -0.009379790164530277, -0.003679141867905855, 0.02209690399467945, 0.026683885604143143, 0.02240564301609993, -0.026272233575582504, 0.031109148636460304, -0.033667273819446564, 0.002379864454269409, -0.01004137471318245, -0.014275511726737022, 0.003973179031163454, 0.03428475186228752, -0.015745697543025017, -0.02711023949086666, -0.00869615375995636, 0.02981538325548172, -0.06198306754231453, 0.03290277719497681, -0.03937159478664398, -0.0016365014016628265, 0.009629721753299236, -0.00746119674295187, 0.004050363786518574, 0.002039883751422167, -0.03787200525403023, -0.025287209078669548, -0.040430132299661636, 0.020656121894717216, 0.02981538325548172, -0.053838230669498444, -0.018450841307640076, -0.033373236656188965, -0.02489025890827179, 0.02002394199371338, 0.005101547576487064, 0.006255643907934427, -0.014326968230307102, 0.053808826953172684, -0.006553356535732746, 0.028036458417773247, -0.009710581973195076, -0.003973179031163454, -0.018553754314780235, -0.03963622823357582, -0.007200238760560751, 0.048486754298210144, -0.018950704485177994, -0.013937368988990784, 0.04037132486701012, 0.020479699596762657, 0.030991533771157265, 0.024111060425639153, -0.04207674041390419, 0.00441423524171114, 0.026772096753120422, -0.004068741109222174, -0.03254992887377739, -0.018950704485177994, -0.022964313626289368, 0.016627810895442963, -0.02494906634092331, 0.004759728908538818, -0.005638165399432182, 0.007887550629675388, -0.007038518320769072, 0.017848065122961998, -0.040400728583335876, -0.007012790068984032, 0.0541616715490818, -0.033549658954143524, -0.018200909718871117, -0.012577446177601814, -0.022964313626289368, -0.012761219404637814, 0.0027327092830091715, -0.02206750027835369, 0.014275511726737022, 0.014356371946632862, -0.003250950016081333, 0.02727195993065834, -0.0013479773188009858, 0.0024974793195724487, -0.019097723066806793, -0.026492761448025703, 0.03416713699698448, -0.0147312693297863, 0.0177745558321476, 0.01756872981786728, 0.018333226442337036, 0.004656815901398659, -0.0003519259043969214, -0.009828196838498116, -0.0346670001745224, 0.010541237890720367, -0.018936002627015114, 0.021141283214092255, -0.019083021208643913, -0.00747222313657403, -0.014099089428782463, 0.02242034487426281, 0.0019167556893080473, 0.000639071746263653, -0.029065588489174843, 0.023258350789546967, -0.01950937509536743, 0.03513745963573456, -0.02977127768099308, 0.031344376504421234, -0.003054312663152814, 0.033608466386795044, 0.011408647522330284, -0.026772096753120422, 0.03010942041873932, 0.016201455146074295, -0.036137185990810394, 0.02199399098753929, -0.013687437400221825, -0.0013966772239655256, -0.02755129709839821, 0.006281372159719467, -0.03719571977853775, 0.0018349766032770276, 0.024184569716453552, 0.018803685903549194, -0.018568456172943115, -0.009482703171670437, -0.011026399210095406, 0.030521072447299957, -0.009276877157390118, 0.02205279842019081, -0.012018775567412376, -0.03669585660099983, -0.03687227889895439, 0.033432044088840485, -0.00426721666008234, -0.02984478697180748, -0.02214100956916809, 0.00882847048342228, 0.023978743702173233, -0.02497847005724907, 0.011599771678447723, -0.038430675864219666, 0.033667273819446564, 0.014400477521121502, 0.0067040505819022655, 0.021008966490626335, -0.007791989017277956, 0.033343832939863205, 0.011261628940701485, -0.007148782256990671, 0.0023375966120511293, 0.006862096022814512, -0.018230313435196877, 0.011937915347516537, 0.01721588522195816, -0.0007755234255455434, 0.003892319044098258, 0.0025379096623510122, -0.01978871040046215, 0.04142985865473747, 0.0033759158104658127, -0.011665930040180683, -0.007931656204164028, 0.006082897074520588, -0.028198178857564926, 0.024213973432779312, -0.016333771869540215, 0.02256736345589161, 0.0013406263897195458, 0.033549658954143524, -0.009210718795657158, 0.031491395086050034, 0.029256712645292282, 0.016172051429748535, 0.00219792895950377, -0.007733181584626436, -0.012856781482696533, 0.012423076666891575, -0.010519185103476048, 0.005189758725464344, 0.010254551656544209, 0.023596493527293205, -0.01476067304611206, 0.006608488503843546, 0.0023118683602660894, -0.0059175011701881886, 0.03993026539683342, 0.00740606477484107, 0.01728939451277256, -0.02466973103582859, -0.030432861298322678, 0.05183877795934677, 0.007622917182743549, 0.030903320759534836, -0.01990632526576519, 0.013672735542058945, 0.02762480638921261, 0.01001932192593813, 0.031256165355443954, 0.016613109037280083, -0.00847562588751316, -0.020303277298808098, 0.026478059589862823, -0.036107782274484634, -0.02972717210650444, 0.010350113734602928, 0.06421774625778198, -0.0496923066675663, -0.01775985397398472, -0.005781508516520262, 0.00756410975009203, 0.030932726338505745, 0.021891077980399132, 0.011857055127620697, -0.00846827495843172, -0.012342216446995735, 0.029344923794269562, -0.03660764545202255, 0.0201562587171793, -0.01753932610154152, -0.0058403159491717815, -0.02225862443447113, -0.006865771487355232, 0.009600318036973476, -0.02437569387257099, -0.03287337347865105, -0.022905506193637848, -0.015319343656301498, 0.01003402378410101, -0.009666476398706436, 0.03163841366767883, -0.014349021017551422, -0.004829562734812498, -0.002034370554611087, 0.003454938530921936, 0.03163841366767883, 0.018509648740291595, -0.013092011213302612, -0.0027198451571166515, 0.01361392717808485, 0.015863312408328056, 0.01987692154943943, -0.0017724937060847878, -0.03981265053153038, 0.03722512349486351, -0.021126581355929375, 0.01359922531992197, -0.02234683558344841, -0.007001763675361872, -0.018936002627015114, -0.026272233575582504, -0.016201455146074295, 0.03155020251870155, 0.011019048281013966, -0.001518886536359787, 0.024228675290942192, 0.0016943899681791663, 0.020656121894717216, -0.002543422859162092, 0.005965282209217548, -0.014084387570619583, -0.0019112424924969673, 0.035872552543878555, 0.003261976409703493, -0.02441979944705963, 0.004090793896466494, -0.0018836765084415674, -0.026669183745980263, -0.0061894855462014675, 0.026830904185771942, -0.02471383661031723, -0.01007812935858965, 0.010173691436648369, 0.019479971379041672, 0.04663431644439697, 0.03269694745540619, 0.016569003462791443, -0.005156679544597864, -0.02222922071814537, -0.010217797011137009, 0.02262617088854313, 0.01364333089441061, 0.0301976315677166, -0.026139916852116585, 0.011812948621809483, -0.016230858862400055, 0.011224874295294285, 0.012173145078122616, -0.043488118797540665, 0.04025371000170708, -0.003497206373140216, 0.024228675290942192, -0.015628082677721977, -0.04181210696697235, -0.006634216755628586, 0.0004238272085785866, 0.01996513269841671, 0.003515583695843816, 0.0059211766347289085, 0.014429881237447262, 0.0035523383412510157, 0.010798520408570766, 0.01750992238521576, 0.00876966305077076, 0.006240942049771547, 0.022979015484452248, 0.0011348002590239048, 0.031491395086050034, -0.022890804335474968, 0.018200909718871117, 0.025963494554162025, -0.000641368911601603, 0.02762480638921261, 0.015481065027415752, -0.007902252487838268, 0.029344923794269562, -0.003024908946827054, 0.003061663592234254, -0.00215198565274477, -0.001068641897290945, -0.05133891478180885, -0.005557305179536343, -0.03446117416024208, 0.007020140998065472, -0.019038915634155273, -0.050692033022642136, -0.021538233384490013, -0.02487555705010891, -0.007880199700593948, 0.04195912554860115, 0.028580427169799805, -0.008078674785792828, 0.04272362217307091, 0.00434072595089674, 0.02713964320719242, -0.00879906676709652, 0.031256165355443954, 0.06268875300884247, -0.004002582747489214, 0.05136831849813461, 0.0003239004872739315, 0.04034192115068436, -0.0755675882101059, 0.020391488447785378, -0.023846426978707314, 0.013871210627257824, 0.012717113830149174, -0.02268497832119465, -0.0053404527716338634, 0.011577718891203403, 0.014635707251727581, 0.030609283596277237, 0.006395311560481787, 0.053455982357263565, -0.010364815592765808, 0.01771574839949608, -0.016657214611768723, 0.026522165164351463, -0.01479007676243782, 0.03716631606221199, -0.00048608044744469225, -0.050750840455293655, -0.016524897888302803, -0.0035266100894659758, -0.047869276255369186, 0.03716631606221199, -0.02937432751059532, -0.004101820755749941, -0.04213554784655571, -0.00034044007770717144, 0.00876231212168932, 0.028139371424913406, 0.0044546653516590595, 0.017833363264799118, -0.003245436819270253, -0.003034097608178854, 0.005546278785914183, 0.0002474048233125359, 0.02741898037493229, -0.019141828641295433, 0.006637892220169306, -0.00220895535312593, 0.03769558295607567, -0.019288847222924232, -0.0036534136161208153, -0.023375965654850006, -0.021376512944698334, 0.0008986515458673239, 0.018583158031105995, -0.023655302822589874, -0.038313060998916626, -0.019391760230064392, -0.0062078628689050674, 0.00214831018820405, 0.005961606744676828, -0.015672188252210617, -0.025243103504180908, -0.0014536469243466854, -0.017921574413776398, 0.005219162441790104, 0.008328607305884361, 0.005171381402760744, 0.004079767502844334, -0.020362084731459618, 0.01752462424337864, -0.03925397992134094, -0.011313085444271564, -0.018009785562753677, -0.01995043084025383, -0.009320982731878757, -0.03249112144112587, -0.04398798197507858, -0.030315246433019638, 0.011033750139176846, 0.0047192987985908985, -0.012915588915348053, -0.0038224849849939346, 0.0297565758228302, 0.010261902585625648, 0.009548861533403397, 0.01743641309440136, -0.009100454859435558, 0.004179005511105061, -0.025978196412324905, -0.021802866831421852, 0.03219708427786827, 0.023331860080361366, 0.001088856952264905, 0.007828743197023869, 0.018715474754571915, 0.025419525802135468, 0.05968957394361496, -0.012217250652611256, 0.03160900995135307, -0.016392581164836884, -0.012937641702592373, -0.02018566243350506, -0.005759455729275942, 0.04119462892413139, 0.04978051781654358, -0.03796021640300751, 0.035666726529598236, -0.004789132624864578, -0.016524897888302803, -0.01999453641474247, 0.012143741361796856, 0.00033377829822711647, -0.0008366280235350132, 0.025934090837836266, 0.015701591968536377, -0.016260262578725815, -0.0022567363921552896, 0.004884694702923298, -0.013297837227582932, -0.003443912137299776, -0.00854178424924612, -0.011835002340376377, 0.02763950824737549, -0.006766533479094505, -0.018921300768852234, -0.0016907145036384463, 0.028301091864705086, -0.004013609141111374, -0.0026610377244651318, 0.0011164229363203049, 0.00430764677003026, -0.0009096779394894838, 0.014488688670098782, 0.008975489065051079, 0.010122234933078289, 0.011077855713665485, 0.0002864566631615162, -0.02696322090923786, -0.012952343560755253, -0.04513472691178322, -0.03172662481665611, 0.03234410285949707, 0.04019490256905556, 0.0073141781613230705, -0.0027437356766313314, 0.00429294491186738, 0.005281645338982344, 0.0003537636366672814, -0.010842625983059406, -0.001306628342717886, 0.02974187396466732, -0.010996995493769646, 0.00865204818546772, -0.006285047624260187, 0.01990632526576519, 0.010408921167254448, 0.0053183999843895435, 0.006693024188280106, 0.016760127618908882, -0.026037003844976425, -0.038607098162174225, 0.018068592995405197, 0.014437232166528702, -0.018700772896409035, -0.016421984881162643, 0.0008311148267239332, -0.010798520408570766, 0.01774515211582184, -0.018627263605594635, 0.005130951292812824, 0.009504755958914757, 0.0035486628767102957, 0.015554574318230152, -0.013981474563479424, -0.05236804485321045, 0.02203809656202793, 0.0032325726933777332, 0.00846092402935028, -0.016436686739325523, 0.012180496007204056, -0.03413773328065872, -0.01739230751991272, -0.0354020930826664, 0.010945538990199566, 0.025654755532741547, -0.0049912831746041775, -0.008019867353141308, 0.01759813353419304, -0.009012243710458279, -0.004127549007534981, 0.012136390432715416, 0.03763677552342415, -0.0005504011060111225, -0.03234410285949707, 0.00858588982373476, -0.0024974793195724487, -0.005527901463210583, -0.029080290347337723, 0.0003964909410569817, -0.009129858575761318, 0.021641146391630173, -0.021391214802861214, 0.011092557571828365, -0.02219981700181961, 0.003306081984192133, 0.0038114585913717747, -0.010754414834082127, -0.023493580520153046, 0.020347382873296738, -0.006516601890325546, -0.04269421845674515, -0.010526536032557487, -0.0058366404846310616, -0.006310775876045227, 0.00219057803042233, 0.019274145364761353, -0.05671979859471321, -0.0348140187561512, -0.0033648894168436527, 0.00218138936907053, -0.007038518320769072, 0.016789531335234642, 0.00442158617079258, 0.013709490187466145, -0.03910696133971214, 0.020288575440645218, -0.01504735928028822, 0.030374053865671158, -0.00426354119554162, 0.0024919661227613688, -0.03549030423164368, -0.0005164030590094626, 0.02274378575384617, 0.019450567662715912, -0.019171232357621193, -0.002433158690109849, 0.008416818454861641, -0.00851238053292036, 0.003423697082325816, 0.008299203589558601, 0.001110909739509225, 0.016436686739325523, -0.018612561747431755, -0.0041863564401865005, 0.012114337645471096, 0.047898679971694946, -0.02256736345589161, -0.025757668539881706, -0.00033952121157199144, 0.03687227889895439, -0.0168924443423748, -0.018862493336200714, -0.012070232070982456, 0.048427946865558624, 0.0880935788154602, -0.00440320884808898, -0.013907965272665024, 0.012423076666891575, -0.006953982636332512, 0.011423349380493164, -0.024111060425639153, 0.012820026837289333, -0.00882847048342228, 0.032961584627628326, -0.005759455729275942, -0.006226240191608667, 0.00211339327506721, 0.014554847031831741, -0.005498497746884823, 0.012503936886787415, 0.031167956069111824, -0.00860794261097908, 0.045693397521972656, -0.0018239502096548676, -0.0201562587171793, 0.019377058371901512, -0.029065588489174843, -0.011518911458551884, 0.0014591601211577654, 0.008335958234965801, 0.002907293848693371, -0.018509648740291595, 0.009629721753299236, 0.0044730426743626595, -0.007983112707734108, 0.002861350541934371, -0.030344650149345398, -0.03157960623502731, -0.003506395034492016, 0.009240122511982918, 0.01476067304611206, 0.009468001313507557, -0.021126581355929375, 0.0001852664863690734, -0.0058513423427939415, -0.006546005606651306, -0.00858588982373476, -0.011636526323854923, 0.015539872460067272, -0.01004872564226389, 0.0011292870622128248, -0.017818661406636238, -0.04292944818735123, 0.02255266159772873, 0.008100727573037148, 0.016319070011377335, 0.018524350598454475, -0.004807509947568178, 0.038342464715242386, -0.026051705703139305, 0.01007077842950821, 0.04134164750576019, 0.003951126243919134, 0.020612016320228577, 0.021082475781440735, -0.0201562587171793, -0.005226513370871544, -0.01750992238521576, 0.013437504880130291, 0.02500787377357483, 0.0174070093780756, 0.043194081634283066, 0.0011412323219701648, 0.0011421511881053448, -0.003462289460003376, -0.006983386352658272, -0.011386594735085964, -0.035901956260204315, -0.0294625386595726, 0.055867090821266174, 0.05216221883893013, 0.00037949191755615175, 0.003050637198612094, 0.026272233575582504, -0.012430427595973015, 0.03266754373908043, 0.026375146582722664, 0.030550476163625717, -0.0015878014964982867, -0.01773045025765896, 0.00011457117943791673, 2.4881184799596667e-05, 0.00868145190179348, -0.005399260204285383, 0.010769116692245007, 0.026713289320468903, -0.0064430925995111465, 0.023861128836870193, -0.000429340434493497, -0.04469367116689682, -0.01959758624434471, -0.03654883801937103, -0.025390122085809708, 0.0038004321977496147, -0.0025085059460252523, 0.010952889919281006, -0.00865939911454916, 0.003048799466341734, 0.0005807236884720623, 0.016480792313814163, 0.016848338767886162, -0.016627810895442963, -0.026492761448025703, -0.023699408397078514, 0.008063972927629948, -0.01971520110964775, -0.03537268936634064, -0.02192048169672489, -0.001273549161851406, -0.011467454954981804, -0.016451388597488403, 0.00754205696284771, 0.027771824970841408, 0.033402640372514725, -0.001319492468610406, 0.00047459459165111184, 0.017803959548473358, 0.016172051429748535, -0.006858420558273792, 0.03746035322546959, -0.01730409637093544, 0.030344650149345398, -0.023728812113404274, 0.006057168822735548, -0.02743368223309517, 0.007762585300952196, -0.0005301860510371625, -0.002892591990530491, 0.012753868475556374, 0.043429311364889145, 0.05927792191505432, 0.014312266372144222, -0.0035982816480100155, -0.0007713885279372334, 0.028771551325917244, 0.006277696695178747, -0.015878014266490936, -0.01706886664032936, -0.02756599895656109, -0.025860581547021866, 0.026919115334749222, -0.020641420036554337, -0.04172389581799507, -0.0016778503777459264, 0.023684706538915634, 0.017789257690310478, -0.006546005606651306, -0.004179005511105061, -0.046105049550533295, 0.011849704198539257, -0.00869615375995636, 0.012048179283738136, -0.01476067304611206, -0.002370675792917609, 0.01717177964746952, -0.0012276057386770844, -0.02231743186712265, -0.010320710018277168, 0.031167956069111824, -0.0038518887013196945, -0.04260600730776787, 0.005965282209217548, -0.021303003653883934, 0.007843445055186749, -0.00443261256441474, -0.01481948047876358, 0.0005784265231341124, 0.019038915634155273, 0.015289939939975739, -0.011687982827425003, 0.009945811703801155, 0.03413773328065872, 0.016392581164836884, 0.008416818454861641, -0.027713017538189888, 0.018333226442337036, -0.001510616741143167, 0.007997814565896988, -0.025566544383764267, 0.013305188156664371, 0.01470921654254198, 0.01501060463488102, -0.018318524584174156, 0.0013415452558547258, -0.020479699596762657, 0.0003450344083830714, 0.0059322030283510685, 0.005869719665497541, 0.0070421937853097916, -0.015422256663441658, 0.00441791070625186, -0.006865771487355232, 0.036078378558158875, -0.006406337954103947, 0.0027235206216573715, 0.026154618710279465, -0.02486085519194603, -0.028109967708587646, 0.027771824970841408, 0.04916303977370262, 0.030756302177906036, 0.010107533074915409, -0.012540691532194614, 0.0053110490553081036, 0.02738957665860653, 0.007255370728671551, -0.05971897765994072, 0.001076911692507565, 0.010364815592765808, 0.004774430766701698, -0.004623736720532179, 0.00442158617079258, 0.011937915347516537, 0.040753573179244995, -0.0061821346171200275, 0.015598679892718792, -0.03257933259010315, -0.0176275372505188, 0.02262617088854313, 0.02705143205821514, 0.00434440141543746, 0.002604068024083972, -0.006211538333445787, 0.009357737377285957, 0.04754583537578583, -0.015922119840979576, 0.028007054701447487, 0.020700227469205856, 0.02444920316338539, -0.009048998355865479, 0.019479971379041672, -0.05916030704975128, 0.010607396252453327, 0.011805597692728043, -0.0270073264837265, -0.008240396156907082, -0.012989098206162453, 0.010438324883580208, 0.01508411392569542, 0.0027749771252274513, 0.0013985149562358856, 0.030932726338505745, -0.0018193558789789677, -0.0005338615155778825, 0.0014775374438613653, -0.011151365004479885, -0.0148415332660079, 0.00746854767203331, -0.0002167376660509035, -0.006762858014553785, 0.0005949661135673523, 0.006127002649009228, 0.0055977352894842625, -0.0005003228434361517, -0.020685525611042976, -0.03793081268668175, -0.010974942706525326, -0.011349840089678764, 0.028139371424913406, -0.01483418233692646, -0.002447860548272729, 0.019127126783132553, 0.01980341225862503, 0.018465543165802956, 0.006575409322977066, -0.018774282187223434, 0.0002199536975240335, 0.016054436564445496, -0.011629175394773483, -0.045722801238298416, -0.0543086901307106, -0.016025032848119736, 0.0017881144303828478, -0.008968138135969639, -0.038489483296871185], "id": 3}, {"title": "Shin Sang-ok", "text": "Shin Sang-ok (October 18, 1926 \u2013 April 11, 2006) was a prolific South Korean film producer and director with more than 100 producer and 70 director credits to his name. His best-known films were made in the 1950s and 60s when he was known as the \"Prince of Korean Cinema\". He received the Gold Crown Cultural Medal, the country's top honor for an artist.", "vector": [0.041343480348587036, -0.008456620387732983, -0.021819371730089188, -0.022823551669716835, -0.014460176229476929, -0.002359820296987891, -0.013549242168664932, -0.02652466855943203, -0.03626520186662674, 0.011756065301597118, 0.00045994980609975755, -0.02861909754574299, -0.03319528326392174, -0.01073036901652813, 0.01159826572984457, 0.003980852197855711, -0.03959333896636963, 0.0111248679459095, -0.023612549528479576, -0.0214033555239439, 0.07172705978155136, -0.04237635061144829, -0.005200211890041828, -0.00976205337792635, 0.012114700861275196, 0.03118692710995674, -0.02936505898833275, 0.012494854629039764, 0.038359634578228, -0.011734547093510628, 0.0002224659692728892, -0.015736917033791542, 0.02831784449517727, 0.060480259358882904, 0.035834841430187225, -0.0009459006250835955, 0.000751789310015738, 0.027543192729353905, 0.019151125103235245, -0.012896525673568249, -0.013642487116158009, -0.019194161519408226, -0.005365184508264065, 0.011770411394536495, -0.011727374978363514, -0.010264142416417599, -0.04441339895129204, -0.07511258125305176, -0.030871327966451645, -0.0022773342207074165, 0.06541508436203003, -0.010113515891134739, -0.01658329740166664, -0.0387326143682003, 0.03302314132452011, -0.019179817289114, 0.04854487627744675, 0.020427867770195007, 0.032564084976911545, -0.04094180837273598, -0.001970701152458787, -0.024530654773116112, -0.03709723800420761, 0.02880558930337429, 0.07884238660335541, -0.030785255134105682, 0.02186240814626217, 0.024258092045783997, -0.03029751218855381, 0.04409779980778694, 0.015478700399398804, -0.03606436774134636, -0.013420133851468563, 0.009597080759704113, -0.010809268802404404, 0.009840953163802624, 0.03322397544980049, -0.009661635383963585, -0.031473834067583084, -0.024961018934845924, 0.016870204359292984, -0.008427930064499378, -0.08211313933134079, 0.014345413073897362, -0.02672550454735756, -0.02562090754508972, -0.003268960863351822, -0.06363625079393387, -0.02329695038497448, -0.0058063059113919735, 0.03695378452539444, -0.04708164557814598, -0.0055803656578063965, 0.004095615353435278, 0.0179891474545002, -0.03184681758284569, 0.06214432790875435, -0.05046716332435608, 0.01976797915995121, 0.0005944380536675453, -0.008707665838301182, -0.06076716631650925, -0.003503866959363222, 0.016167279332876205, 0.03893344849348068, 0.03546186164021492, -0.05218861252069473, -0.018892908468842506, -0.014166095294058323, 0.0346585176885128, -0.017472712323069572, 0.037039853632450104, 0.02051394060254097, 0.03445767983794212, -0.05052454397082329, 0.03867523372173309, -0.015665190294384956, 0.04441339895129204, -0.0037871890235692263, -0.022134970873594284, -0.004579773172736168, -0.0359782949090004, -0.017903074622154236, 0.003744152607396245, 0.01688455045223236, -0.000735650712158531, -0.036839019507169724, 0.07958834618330002, 0.035777460783720016, 0.005630574654787779, -0.031072163954377174, 0.015019646845757961, 0.03933512046933174, 0.0010068686679005623, 0.03055572882294655, 0.011454812251031399, 0.011418948881328106, 0.01236574538052082, -0.02884862571954727, 0.028145698830485344, 0.004823645111173391, -0.019093744456768036, -0.021589845418930054, -0.022565335035324097, -0.004339487291872501, -0.04097049683332443, 0.019653216004371643, -0.02333998680114746, -0.06461174041032791, 0.01704235002398491, -0.05657830834388733, -0.027887482196092606, -0.051987774670124054, 0.008090812712907791, -0.027198903262615204, 0.0023060250096023083, -0.0014892331091687083, -0.03224848583340645, -0.02747146598994732, -0.005892378278076649, 0.011512193828821182, -0.004127892665565014, -0.025663943961262703, 0.012121873907744884, 0.0035773871932178736, -0.07637497782707214, -0.06593151390552521, 0.005106966942548752, 0.008241439238190651, 0.02884862571954727, 0.012573754414916039, 0.011440466158092022, 0.006329913157969713, -0.017558785155415535, -0.039363812655210495, 0.001603996497578919, 0.03526102378964424, -0.009324518032371998, -0.028303498402237892, 0.002413615584373474, 0.009998752735555172, 0.012157737277448177, -0.029723694548010826, -0.0210590660572052, -0.030584419146180153, 0.026108650490641594, 0.018118256703019142, -0.03744152560830116, 0.025592215359210968, -0.008872637525200844, -0.05038109049201012, -0.030871327966451645, -0.02006923221051693, -0.0030627455562353134, 0.01599513553082943, 0.027457119897007942, -0.022292770445346832, -0.037527598440647125, -0.061570510268211365, -0.043495289981365204, 0.028733860701322556, 0.002739973831921816, 0.043638743460178375, -0.00649488577619195, -0.04016715660691261, 0.01734360307455063, -0.010206760838627815, 0.002234298037365079, -0.0373554527759552, -0.028676480054855347, -1.581637843628414e-05, -0.011748893186450005, -0.031416453421115875, 0.012129046022891998, -0.021475082263350487, -0.005591124761849642, -0.0020442213863134384, 0.02180502749979496, -0.006684962194412947, 0.028446953743696213, 0.014689702540636063, 0.0244445838034153, 0.027543192729353905, -0.031961578875780106, 0.02186240814626217, -0.005379529669880867, -0.043294455856084824, 0.015320900827646255, -0.004583359230309725, 0.004988617263734341, -0.008363375440239906, -0.028489990159869194, 0.004694536328315735, -0.00787563156336546, -0.029723694548010826, 0.08940061181783676, 0.04977858066558838, -0.0356626957654953, -0.025348344817757607, 0.01346316933631897, -0.003606078214943409, 0.050036799162626266, 0.0016954484162852168, 0.0008938985411077738, 0.041745152324438095, 0.024961018934845924, -0.03244932368397713, -0.0002978914708364755, 0.01714276894927025, 0.04693818837404251, 0.02821742743253708, -0.004127892665565014, 0.01823301985859871, 0.030469655990600586, -0.029867149889469147, -0.0009024161263369024, 0.012229464016854763, 0.04071228206157684, 0.012666999362409115, 0.035490550100803375, 0.002078291727229953, -0.018519926816225052, -0.005870860069990158, -0.02260836958885193, -0.04220420494675636, 0.012860662303864956, -0.026510322466492653, -0.03279361501336098, 0.011834965087473392, 0.011010103859007359, 0.00748830521479249, -0.029121188446879387, 0.019997505471110344, 0.0028672893531620502, -0.024372855201363564, -0.0232539139688015, 0.010350215248763561, 0.01261679083108902, 0.04237635061144829, -0.006760275922715664, 0.013793114572763443, -0.015234827995300293, -0.05161479488015175, 0.03029751218855381, -0.010694504715502262, -0.027744028717279434, 0.05543067306280136, -0.029235951602458954, 0.052532900124788284, 0.014546248130500317, 0.01015655230730772, 0.056205328553915024, -0.014646666124463081, 0.0019509760895743966, 0.019983159378170967, 0.008693319745361805, -0.02638121321797371, -0.017171459272503853, 0.0312443096190691, -0.04163038730621338, 0.0030340547673404217, 0.018448200076818466, -0.011813446879386902, 0.03632258623838425, -0.04137216880917549, -0.00034496234729886055, -0.023813385516405106, 0.043437909334897995, 0.03870392218232155, -0.01712842285633087, 0.018003493547439575, -0.034543752670288086, 0.03663818538188934, 0.038359634578228, 0.018448200076818466, -0.028274808079004288, -0.010335870087146759, -0.0624886192381382, -0.0198683962225914, 0.041888605803251266, 0.021489428356289864, 0.006663443986326456, 0.022680098190903664, -0.011483502574265003, 0.08607247471809387, 0.03600698709487915, 0.003130886238068342, -0.047311171889305115, -0.012710035778582096, 0.03184681758284569, 0.010429115034639835, -0.01589471660554409, 0.008427930064499378, -0.02410029247403145, 0.019151125103235245, -0.001277638366445899, -0.0202126856893301, 0.049491673707962036, -0.0056234016083180904, -0.0029946048744022846, 0.0009934197878465056, -0.01882118172943592, 0.001090251374989748, 0.028977733105421066, -0.04544626548886299, -0.02329695038497448, 0.02989584021270275, 0.005074689630419016, 0.021891100332140923, -0.020140958949923515, 0.0005204695044085383, -0.028877316042780876, 0.02438720129430294, -0.009618598967790604, -0.0006607855902984738, 0.00356483506038785, 0.06145574897527695, 0.019237197935581207, -0.03959333896636963, -0.008485311642289162, 0.007624587044119835, 0.0058457558043301105, 0.0005505052395164967, -0.00401312904432416, -0.011949729174375534, 0.023368677124381065, 0.02975238673388958, 0.012093182653188705, -0.031014781445264816, -0.015464355237782001, 0.006957524921745062, -0.005838582757860422, -0.040253229439258575, -0.0019115261966362596, 0.009704671800136566, -0.024702800437808037, -0.013642487116158009, 0.03867523372173309, -0.0488891676068306, -0.004777022637426853, -0.0036347690038383007, 0.0276723001152277, -0.024774527177214622, -0.014990956522524357, -0.05316409841179848, -0.0009530733805149794, 0.013585105538368225, 0.026409905403852463, -0.026051269844174385, 0.029465477913618088, 0.0013215711805969477, -0.0099341981112957, 0.052332065999507904, 0.006548680830746889, -0.0136640053242445, -0.054024823009967804, 0.03302314132452011, 0.017573131248354912, 0.019796669483184814, 0.025520488619804382, 0.05181562900543213, -0.01085230428725481, 0.02618037723004818, 0.004382523708045483, 0.032850995659828186, 0.04665128141641617, 0.011770411394536495, -0.03511757031083107, 0.022034553810954094, 0.026409905403852463, 0.05950477346777916, 0.03681032732129097, -0.023038731887936592, -0.03856046870350838, 0.05032370612025261, -0.00102749012876302, 0.017114076763391495, -0.011548057198524475, 0.03899083286523819, -0.0015995134599506855, 0.03629389405250549, -0.05150002986192703, 0.0263238325715065, -0.05807023122906685, -0.03133038058876991, -0.0031434386037290096, 0.02583608776330948, 0.06220170855522156, -0.03824486956000328, -0.025893470272421837, -0.01487619336694479, -0.0038983658887445927, 0.028289154171943665, -0.023899458348751068, -0.040454063564538956, 0.002562449313700199, -0.06753820180892944, -0.00404899287968874, 0.02483190968632698, 0.02424374781548977, 0.007832595147192478, -0.029522858560085297, -0.029494168236851692, 0.016611987724900246, -0.019007671624422073, -0.04320838302373886, -0.0032259246800094843, -0.019796669483184814, -0.006613235455006361, -0.03029751218855381, -0.05875881016254425, -0.024014221504330635, 0.029293332248926163, -0.024702800437808037, 0.027729682624340057, 0.031359072774648666, -0.024659764021635056, 0.025563525035977364, -0.016411151736974716, -0.01585168018937111, -0.02622341364622116, 0.062316473573446274, 0.0266681220382452, -0.02408594824373722, -0.005870860069990158, 0.028977733105421066, -0.045073285698890686, -0.06552984565496445, 0.016081208363175392, 0.03408470004796982, 0.04191729426383972, 0.06174265593290329, 0.04647913575172424, -0.03293706849217415, 0.022335806861519814, 0.039507266134023666, 0.05368053540587425, -0.006957524921745062, 0.049147382378578186, 0.02577870711684227, 0.035088878124952316, -0.002594726625829935, -0.0366668738424778, 0.0029802594799548388, 0.021145138889551163, 0.004185274243354797, -0.027141520753502846, -0.008406411856412888, 0.0037513254210352898, -0.02170460857450962, 0.035347096621990204, 0.03491673618555069, 0.009977234527468681, 0.02791617251932621, -0.038617849349975586, 0.020255722105503082, -0.040310610085725784, -0.019438033923506737, 0.02180502749979496, -0.011964074335992336, 0.0059999688528478146, 0.06375101208686829, -0.016425497829914093, -0.015378282405436039, 0.021475082263350487, 0.0034070354886353016, 0.026094306260347366, 0.01962452381849289, 0.0009620392229408026, -0.016411151736974716, -0.0007889976841397583, 0.04165907949209213, -0.014947920106351376, -0.033310048282146454, -0.02057132124900818, -0.003797947894781828, 0.006093213800340891, -0.004382523708045483, 0.01718580350279808, 0.002010151045396924, 0.0030412275809794664, 0.028002245351672173, -0.004253414925187826, 0.05875881016254425, -0.015363937243819237, -0.025965197011828423, -0.00574892433360219, -0.006502058357000351, -0.01928023435175419, 0.035777460783720016, 0.005802719388157129, 0.002110568806529045, 0.030326202511787415, -0.013986777514219284, -0.017544439062476158, 0.013563587330281734, -0.0020818780176341534, 0.017271876335144043, 0.006398053839802742, 0.0019222853006795049, -0.0332813560962677, 0.019093744456768036, -0.001968907890841365, -0.009697498753666878, -0.03933512046933174, 0.008205575868487358, 0.033396121114492416, -0.036035675555467606, -0.0017725550569593906, 0.028748206794261932, 0.009604253806173801, 0.03594960272312164, 0.010787750594317913, 0.02840391732752323, 0.03669556602835655, 0.03813010826706886, -0.04102788120508194, -0.00844227522611618, -0.037527598440647125, -0.0011817034101113677, -0.02410029247403145, -0.00976205337792635, -0.0024512724485248327, -0.0008365168469026685, -0.01942368783056736, 0.0015394421061500907, -0.026237759739160538, -0.011397430673241615, -0.061914801597595215, -0.0512705035507679, -0.004949167370796204, 0.016712406650185585, 0.02519054524600506, -0.03133038058876991, -0.0536518432199955, 0.025750014930963516, -0.038876067847013474, -0.00864311121404171, 0.0026377628091722727, -0.023870766162872314, 0.049577746540308, -0.032018959522247314, 0.030240129679441452, 0.016511570662260056, -0.028690826147794724, -0.002684385282918811, 0.032908376306295395, 0.022479262202978134, -0.01658329740166664, 0.004328728187829256, -0.03187550604343414, -0.0047590904869139194, 0.0010140413651242852, -0.021030375733971596, -0.01202145591378212, -0.0161385890096426, -0.011777583509683609, 0.029278988018631935, -0.00328509951941669, 0.008176885545253754, 0.00961142685264349, 0.027342356741428375, -0.03336742892861366, -0.024272438138723373, 0.011010103859007359, -0.019007671624422073, 0.023827729746699333, -0.03899083286523819, 0.02285224199295044, -0.03055572882294655, -0.01224381010979414, -0.006204390898346901, -0.01430237665772438, 0.006365776993334293, 0.025563525035977364, -0.013477515429258347, -0.0013341234298422933, 0.005487120244652033, 0.02563525177538395, 0.004906130954623222, -0.013283852487802505, 0.0451880507171154, 0.031014781445264816, -0.01517744641751051, 0.005257593933492899, -0.028246117755770683, -0.016812823712825775, 0.02210628055036068, -0.00842075701802969, 0.03729807212948799, -0.006563026458024979, 0.01562215480953455, -0.024128984659910202, -0.02989584021270275, -0.06174265593290329, 0.014639494009315968, 0.004016715567559004, -0.060021206736564636, -0.018304746598005295, -0.06633318960666656, -0.013441652059555054, -0.016468534246087074, 0.0020209099166095257, -0.04122871533036232, -0.02315349690616131, 0.028977733105421066, 0.01383615005761385, -0.020886920392513275, -0.013126052916049957, 0.023325640708208084, 0.02682592160999775, -0.004260587505996227, -0.01996881514787674, 0.01420913077890873, 0.057984158396720886, 0.005630574654787779, 0.0438108891248703, -0.009927025996148586, -0.023311296477913857, -0.028203081339597702, 0.006968284025788307, -0.026639431715011597, -0.03267884999513626, 0.016568951308727264, -0.021618537604808807, 0.005347252357751131, -0.0232539139688015, 0.0003171681019011885, -0.02890600636601448, -0.006634753197431564, 0.023813385516405106, 0.0059282416477799416, -0.007595895789563656, -0.00039674033178016543, -0.006903729867190123, -0.015306555666029453, 0.008858292363584042, -0.004956339951604605, 0.04762677103281021, -0.022221043705940247, 0.01887856237590313, -0.01862034574151039, -0.005193039309233427, 0.02285224199295044, -0.02463107369840145, 0.0016488258261233568, 0.01907939836382866, -0.029637621715664864, -0.006401640363037586, 0.014704047702252865, 0.028647789731621742, -0.03015405684709549, -0.043839581310749054, -0.004916890058666468, 0.04513067007064819, -0.0519590862095356, -0.03233455866575241, -0.009848126210272312, 0.0007365472847595811, 0.011834965087473392, -0.015822989866137505, 0.04372481629252434, -0.03617912903428078, 0.006225909106433392, -0.005447670351713896, -0.02890600636601448, -0.0008499657269567251, -0.0010642502456903458, -0.05339362472295761, -0.08802345395088196, 0.02354082278907299, 0.03506018966436386, 0.021618537604808807, 0.008635938167572021, -0.0015779953682795167, 0.004547495860606432, 0.012968253344297409, -0.04501590505242348, 0.01813260093331337, 0.01982535980641842, 0.006247427314519882, -0.01704235002398491, -0.014402794651687145, 0.010213933885097504, 0.01050801482051611, 0.03655211254954338, 0.024573691189289093, -0.040999189019203186, -0.01258809957653284, -0.010400423780083656, 0.04240503907203674, -0.004597704857587814, 0.01966756023466587, 0.0026915580965578556, 0.038962140679359436, -0.005881619174033403, -0.010142207145690918, 0.014445830136537552, 0.03184681758284569, -0.01030717883259058, 0.011153558269143105, -0.01090251374989748, 0.00589955085888505, -0.013979604467749596, 0.03531840443611145, -0.010938377119600773, 0.02031310461461544, 0.041257407516241074, -0.012910871766507626, -0.04429863393306732, 0.0078039043582975864, 0.013850496150553226, -0.0018935945117846131, -0.032908376306295395, 0.0028906005900353193, -8.383100794162601e-05, 0.005583951715379953, -0.027973555028438568, 0.02861909754574299, -0.004748331382870674, -0.018247364088892937, 0.026653775945305824, 0.01708538644015789, -0.0048702675849199295, 0.02607996016740799, 0.03322397544980049, -0.012559408321976662, -0.021087756380438805, -0.013527723960578442, 0.009604253806173801, -0.00047295031254179776, 0.0006854417733848095, -0.010493669658899307, -0.004127892665565014, 0.000364239007467404, 0.0067925527691841125, -0.03244932368397713, -0.03437160700559616, 0.01318343449383974, -0.040310610085725784, -0.00668137613683939, 0.017501402646303177, -0.051729559898376465, -0.01522048283368349, -0.018591655418276787, 0.002497894922271371, 0.01758747547864914, 0.004239069297909737, -0.012337055057287216, 0.01793176494538784, -0.006172113586217165, 0.039908938109874725, -0.006175700109452009, -0.05147134140133858, 0.005099794361740351, 0.005139244254678488, 0.0028637030627578497, 0.010895340703427792, -0.008528348058462143, -0.025147508829832077, -0.04240503907203674, 0.011734547093510628, -0.02529096230864525, -0.018864218145608902, 0.02592216059565544, -0.014359758235514164, -0.03356826677918434, 0.03170336037874222, 0.006849934346973896, -0.0008598282001912594, 0.0099341981112957, -0.051987774670124054, 0.015320900827646255, -0.06633318960666656, -0.0006728895241394639, -0.00449728686362505, 0.007603068836033344, -0.0010319731663912535, -0.028920352458953857, 0.022321462631225586, 0.011045968160033226, 0.00842075701802969, 0.036437347531318665, 0.06484126299619675, 0.07258778810501099, 0.04097049683332443, 0.02136031910777092, -0.0001409885153407231, -0.015923408791422844, 0.016655024141073227, -0.03724069148302078, 0.003347860649228096, 0.015163101255893707, 0.03778581693768501, -0.017558785155415535, -0.0380440354347229, 0.0461922287940979, -0.011397430673241615, 0.03184681758284569, 0.005297043826431036, 0.047913677990436554, 0.01708538644015789, -0.0012166702654212713, -0.02721324749290943, 0.01271720789372921, 0.0010481117060407996, 0.008549866266548634, -0.020772157236933708, 0.036839019507169724, 0.01092403195798397, 0.004622809123247862, -0.05276242643594742, 0.01813260093331337, 0.025147508829832077, 0.0031882680486887693, -0.03784319758415222, 0.038072723895311356, 0.003295858623459935, 0.009102164767682552, 0.008062121458351612, -0.004547495860606432, 0.0016640678513795137, 0.024760182946920395, -0.033510882407426834, -0.0173292588442564, 0.01827605627477169, 0.012329882010817528, 0.006487712729722261, -0.02592216059565544, -0.006451849360018969, -0.012803280726075172, 0.058443211019039154, 0.011418948881328106, -0.007990394718945026, -0.060480259358882904, -0.004099201876670122, -0.010866650380194187, -0.03649472817778587, -0.019925778731703758, 0.009209754876792431, -0.018347783014178276, 0.013255161233246326, -0.0046443273313343525, 0.005293457303196192, 0.014101540669798851, 0.010364560410380363, 0.008930019102990627, -0.024301128461956978, 0.010651469230651855, -0.022565335035324097, -0.006365776993334293, 0.0037513254210352898, 0.00196173507720232, 0.03606436774134636, 0.0034680035896599293, 0.02037048526108265, 0.040454063564538956, -0.007262364961206913, -0.05150002986192703, -0.06099669635295868, 0.005279111675918102, 0.009023264981806278, 0.023024387657642365, -0.02866213396191597, 0.004924063105136156, -0.022077590227127075, 0.03084263764321804, -0.029723694548010826, 0.01907939836382866, -0.019854051992297173, 0.024616727605462074, -0.0071619474329054356, 0.051729559898376465, 0.011878001503646374, -0.03663818538188934, -0.02787313610315323, 0.05557413026690483, 0.011834965087473392, -0.02230711653828621, 0.009381899610161781, -0.006398053839802742, 0.027041103690862656, 0.004300037398934364, -0.002904945984482765, -0.01032869704067707, -0.010651469230651855, 0.004680190701037645, 0.012437473051249981, -0.030928710475564003, 0.010034616105258465, 0.02717021107673645, -0.016253352165222168, -0.03417077288031578, -0.001673930324614048, 0.049405600875616074, -0.007746522780507803, -0.01758747547864914, -0.007395060267299414, 0.02041352167725563, 0.017888730391860008, 0.014904883690178394, 0.0263238325715065, 0.001051698112860322, -0.018290400505065918, -0.010027443058788776, 0.004881026688963175, -0.016468534246087074, -0.021919790655374527, -0.009769226424396038, -0.03701116517186165, -0.03818748891353607, -0.03394124656915665, 0.0011404602555558085, -0.007222915068268776, -0.01813260093331337, 0.008757874369621277, 0.019251544028520584, -0.002874462166801095, -0.04610615596175194, -0.015464355237782001, -0.027758372947573662, -0.020929956808686256, -0.018864218145608902, -0.003665252821519971, 0.03724069148302078, -0.03244932368397713, 0.0022396775893867016, -0.0067531028762459755, 0.0390482135117054, -0.009840953163802624, -0.005150003358721733, 0.04036799073219299, -0.020929956808686256, 0.018993325531482697, -0.03239194303750992, 0.008485311642289162, -0.01443148497492075, 0.03342481330037117, 0.029666313901543617, -0.017099732533097267, -0.033453501760959625, 0.023913802579045296, 0.0013601244427263737, -0.016167279332876205, 0.029192915186285973, 0.016282042488455772, -0.021417701616883278, -0.0058457558043301105, -0.01922285370528698, -0.030756564810872078, -0.05881619080901146, -0.013305370695888996, 0.019954469054937363, 0.0059282416477799416, 0.020671740174293518, 0.0025355517864227295, 0.04033929854631424, -0.034199465066194534, 0.02369862236082554, -0.07029252499341965, -0.00216615735553205, 0.022134970873594284, -0.033453501760959625, -0.006846348289400339, 0.021632881835103035, 0.04733986034989357, 0.029666313901543617, 0.012745899148285389, -0.02344040386378765, 0.00677820760756731, -0.016009479761123657, 0.015406972728669643, -0.013398615643382072, 0.005160761997103691, 0.019452380016446114, -0.024372855201363564, -0.030871327966451645, 0.04590532183647156, 0.00440762797370553, 0.038359634578228, 0.04088442772626877, -0.0325927771627903, 0.030268820002675056, 0.023913802579045296, -0.0019330444047227502, 0.020886920392513275, 0.028002245351672173, 0.02250795252621174, 0.007273124065250158, -0.01443148497492075, -0.02285224199295044, 0.014761429280042648, -0.0031039887107908726, -0.00903761014342308, 0.010565396398305893, -0.04693818837404251, -0.02587912417948246, 0.04444208741188049, -0.004647913854569197, 0.016611987724900246, 0.04868832975625992, -0.0075026508420705795, -0.0013897118624299765, -0.0006858900305815041, 0.01793176494538784, 0.027155866846442223, 0.032564084976911545, 0.018864218145608902, 0.03660949319601059, 0.006304808892309666, -0.013520551845431328, 0.026108650490641594, 0.00711532449349761, 0.013355579227209091, 0.0032833062577992678, -0.0033765514381229877, -0.008148194290697575, 0.029278988018631935, -0.017314912751317024, -0.014309548772871494, -0.0014130230993032455, 0.013821804895997047, 0.011562402360141277, -0.0043861097656190395, -0.019983159378170967, 0.024200711399316788, 0.010816440917551517, -0.018562963232398033, -0.0027310079894959927, 0.013915049843490124, 0.0008898638770915568, -0.016626333817839622, 0.01906505413353443, -0.04754069820046425, -0.04645044729113579, 0.03551924228668213, 0.005795546807348728, -0.022479262202978134, -0.0080692945048213, 0.01932327076792717, -0.006376536097377539, -0.030383583158254623, 0.006157768424600363, -0.005587538238614798, -0.0014802672667428851, -0.015005301684141159, 0.009503835812211037, 0.0173292588442564, -0.003659873502328992, 0.037470217794179916, 0.001355641521513462, 0.0008486208389513195, 0.003948574885725975, -0.02628079615533352, 0.0001474887685617432, 0.018304746598005295, 0.010572569444775581, 0.03207634389400482, 0.013341234065592289, -0.0036939438432455063, 0.0077608684077858925, -0.006839175708591938, -0.019394997507333755, 0.006986216176301241, 0.043638743460178375, 0.019509760662913322, -0.0380440354347229, 0.035232335329055786, 0.0035020739305764437, -0.018591655418276787, -0.019610179588198662, 0.014962265267968178, -0.029494168236851692, 0.006537921726703644, -0.004673018120229244, 0.005903137382119894, -0.00961142685264349, -0.01658329740166664, 0.011325703002512455, 0.002618037862703204, -0.0210590660572052, 0.0025445176288485527, -0.012351400218904018, -0.030182749032974243, 0.02011226862668991, 0.009331691078841686, -0.01017807051539421, -0.030756564810872078, 0.041802532970905304, -0.009008918888866901, -0.02214931696653366, -0.004178101662546396, -0.030067984014749527, -0.02289527840912342, 0.002453065477311611, 0.0014390242286026478, -0.01797480136156082, 0.0011144592426717281, 0.0006164044607430696, 0.029121188446879387, 0.02940809540450573, -0.0733911320567131, -0.01847689226269722, 0.02051394060254097, 0.007889976724982262, -0.007423751056194305, 0.01738663949072361, 0.015206137672066689, -0.0322771780192852, -0.004637154750525951, -0.0013027427485212684, -0.020284414291381836, -0.009080646559596062, -0.01872076280415058, -0.00901609193533659, -0.0035702146124094725, -0.04366743564605713, 0.001720552914775908, -0.02111644670367241, -0.0076174139976501465, 0.005684369709342718, 0.028647789731621742, -0.009869643487036228, 0.04028191789984703, -0.006268945522606373, -0.012301191687583923, 0.008700492791831493, -0.006530749145895243, -0.05468471348285675, -0.008262957446277142, 0.010586914606392384, -0.011203767731785774, 0.020241377875208855, -0.051040977239608765, -0.018046529963612556, -0.033855173736810684, 0.014331066980957985, -0.006362190470099449, -0.01497661042958498, 0.000821723195258528, 0.009970061480998993, -0.023368677124381065, -0.014187613502144814, -0.015435663983225822, -0.00252120615914464, 0.02319653145968914, 0.011892346665263176, -0.021417701616883278, -0.014094367623329163, -0.009719016961753368, -0.008600074797868729, -0.022909624502062798, 0.01484750211238861, -0.02006923221051693, 0.00011313823779346421, -0.030125366523861885, -0.027930518612265587, 0.023110460489988327, -0.0011458398075774312, -0.002601899206638336, -0.0026198308914899826, -0.040253229439258575, 0.02841826155781746, -0.007567205000668764, -0.03265015780925751, -0.0011969453189522028, 0.008578556589782238, -0.003424967173486948, -0.006720826029777527, -0.04114264249801636, -0.010759059339761734, 0.017300568521022797, 0.0031165408436208963, -0.02085823006927967, 0.0034285536967217922, -0.012552236206829548, 0.014402794651687145, -0.019394997507333755, -0.0005159865831956267, 0.030785255134105682, -0.014051332138478756, 0.01035738829523325, 0.03471589833498001, -0.009532527066767216, -0.00023804418742656708, 0.01922285370528698, 0.04464292526245117, 0.004479355178773403, 0.041544314473867416, -0.01783134788274765, -0.02131728269159794, -0.006046591326594353, 0.007043597754091024, 0.010515187866985798, -0.01256658136844635, -0.01966756023466587, -0.03164597973227501, 0.005566020030528307, -0.008305993862450123, -0.010321523994207382, -0.002765078330412507, -0.001945596537552774, -0.003704702714458108, -0.03927773982286453, -0.018792491406202316, 0.01742967590689659, 0.017200149595737457, -0.015607808716595173, 0.002840391593053937, -0.0021679503843188286, -0.019653216004371643, -0.006344258785247803, -0.032908376306295395, -0.028030935674905777, 0.024745836853981018, -0.019782323390245438, -0.02110210247337818, 0.03233455866575241, 0.001128804637119174, 0.00023199222050607204, -0.029666313901543617, 0.009288654662668705, 0.006233081687241793, 0.0179891474545002, -0.036236513406038284, -0.019093744456768036, 0.0017653823597356677, -0.07040728628635406, 0.031072163954377174, 0.013793114572763443, -0.0010077651822939515, 0.008262957446277142, -0.004185274243354797, -0.022335806861519814, 0.01254506316035986, -0.0015403387369588017, -0.029924530535936356, -0.013549242168664932, 0.047454625368118286, -0.00953969918191433, 0.014474521391093731, -0.002218159381300211, 0.016066862270236015, 0.011045968160033226, -0.01296108029782772, 0.025219235569238663, 0.007703486364334822, -0.043983034789562225, 0.002772250911220908, -0.0010920445201918483, 0.029723694548010826, 0.02200586348772049, 0.023426059633493423, 0.014833156950771809, 0.024903636425733566, 0.004472182597965002, 0.021345974877476692, -0.007961704395711422, 0.004895371850579977, 0.029178569093346596, 0.021288592368364334, 0.011562402360141277, -0.01241595484316349, -0.02529096230864525, 0.008320339024066925, -0.00879373773932457, 0.003294065361842513, -0.0485735684633255, 0.004425559658557177, 0.05313540995121002, 0.018519926816225052, -0.02975238673388958, -0.03586352989077568, -0.03483066335320473, 0.008184057660400867, 0.005863687489181757, 0.03669556602835655, -0.019782323390245438, -0.0397367924451828, -0.026998067274689674, 0.030383583158254623, -0.007983222603797913, 0.0127387261018157, -0.008922846987843513, -0.014646666124463081, 0.008169712498784065, -0.006476953625679016, -0.02896338887512684, -0.0214033555239439, -0.0021069825161248446, -0.008894155733287334, 0.012322709895670414, 0.024114638566970825, -0.009518180973827839, -0.016698060557246208, -0.016927586868405342, 0.03511757031083107, -0.0020047714933753014, 0.026897648349404335, -0.0045331502333283424, -0.023110460489988327, 0.0059282416477799416, -0.00014771292626392096, -0.015191791579127312, -0.005576779134571552, 0.008894155733287334, -0.002243263879790902, -0.02592216059565544, -0.011605438776314259, -0.06025073304772377, -0.007703486364334822, 0.013628141954541206, 0.028992079198360443, 0.0011933590285480022, -0.01000592578202486, 0.042835403233766556, 0.01807522028684616, -0.01966756023466587, -0.021675918251276016, 0.018806835636496544, 0.013054325245320797, 0.0488891676068306, 0.01125397626310587, -0.010414769873023033, 0.004343073815107346, 0.015148756094276905, 0.007968876510858536, 0.009977234527468681, -0.0035630417987704277, 0.007839768193662167, -0.00030484001035802066, 0.03830225020647049, 0.025706980377435684, 0.040454063564538956, -0.031617291271686554, -0.051873013377189636, 0.0017375880852341652, -0.03221979737281799, -0.03878999501466751, -0.009726190008223057, 0.019509760662913322, 0.010321523994207382, -0.010070479474961758, 0.01445300318300724, -0.004450664389878511, -0.00422113761305809, 0.0012390849879011512, -0.052332065999507904, -0.025420071557164192, 0.012824798934161663, 0.01484750211238861, 0.006175700109452009, -0.017573131248354912, -0.06851369142532349, 0.004848749376833439, -0.01595209911465645, -0.0055480883456766605, 0.019036361947655678, -0.00896588247269392, 0.024473274126648903, -0.022178007289767265, 0.011813446879386902, 0.006975457072257996, -0.01122528500854969, 0.03302314132452011, 0.02583608776330948, -0.022579679265618324, -0.03457244485616684, -0.03133038058876991, -0.0031721293926239014, 0.012107528746128082, -0.0015824782894924283, 0.009747708216309547, 0.000950383604504168, 0.020298758521676064, -0.01107465848326683, 0.01609555259346962, 0.022909624502062798, 0.04263456538319588, 0.03695378452539444, -0.010773404501378536, 0.0006719929515384138, -0.003851743182167411, 0.013341234065592289, -0.008535520173609257, -0.02860475331544876, -0.01787438429892063, -0.03526102378964424, -0.008908500894904137, 0.03411339223384857, -0.00896588247269392, -0.009740535169839859, -0.028375227004289627, 0.007681968621909618, -0.00046981225023046136, 0.012523544952273369, -0.005142830312252045, 0.0025839675217866898, 0.008908500894904137, -0.02428678423166275, -0.028073972091078758, -0.005307802464812994, -0.0030250889249145985, 0.021919790655374527, 0.0016246179584413767, -0.0007585136918351054, -0.021718954667448997, -0.004213965032249689, 0.0019599420484155416, 0.029838457703590393, 0.002015530364587903, 0.004694536328315735, 0.020729120820760727, -0.017357949167490005, 8.119727863231674e-05, 0.020140958949923515, -0.00733767868950963, -0.002897773403674364, -0.010866650380194187, 0.005612642504274845, 0.02285224199295044, -0.025391381233930588, -0.03187550604343414, -0.028891660273075104, 0.0077608684077858925, 0.02622341364622116, -0.020499594509601593, -0.0004438112082425505, -0.021977171301841736, -0.030928710475564003, -0.048057131469249725, -0.02686895802617073, 0.01504833810031414, 0.0002978914708364755, 0.015435663983225822, -0.035433169454336166, 0.04891785606741905, -0.012444645166397095, -0.0047949543222785, 0.0077608684077858925, 0.03706854581832886, 0.02319653145968914, -0.0011530125048011541, 0.01331254281103611, -0.02870517037808895, 0.009317345917224884, -0.010436288081109524, 9.459006832912564e-05, 0.0011781170032918453, 0.024358510971069336, 0.0008947951137088239, 0.01559346355497837, -0.01847689226269722, 0.023928148671984673, -0.04028191789984703, 0.018763799220323563, 0.006376536097377539, -0.02001185156404972, 0.028346534818410873, 0.0048379902727901936, -0.0016075827879831195, 0.010579741559922695, 0.006139836739748716, -0.019007671624422073, 0.028475644066929817, 0.01853427290916443, -0.022981351241469383, -0.012796107679605484, 0.0043861097656190395, 0.0424337312579155, -0.0010615605860948563, -0.018692072480916977, -0.01728622242808342, -0.014338240027427673, -0.017501402646303177, -0.01708538644015789, 0.04685211926698685, -0.010199588723480701, 0.003543316852301359, -0.03069918230175972, 0.020126614719629288, 0.012250982224941254, -0.009776398539543152, -0.022938314825296402, 3.13525706587825e-05, -0.030383583158254623, 0.021001683548092842, -0.034400299191474915, -0.015779953449964523, -0.01902201771736145, 0.009769226424396038, -0.0027292147278785706, -0.022809205576777458, 0.013699868693947792, 0.005028067156672478, -0.006932420656085014], "id": 4}, {"title": "G\u00e9za Anda", "text": "G\u00e9za Anda (Hungarian pronunciation: [\u02c8\u0261e\u02d0z\u0252 \u02c8\u0252nd\u0252]; 19 November 1921 \u2013 14 June 1976) was a Swiss-Hungarian pianist. A celebrated interpreter of classical and romantic repertoire, particularly noted for his performances and recordings of Mozart, he was also a tremendous interpreter of Beethoven, Schumann, Brahms and Bart\u00f3k.In his heyday he was regarded as an amazing artist, possessed of a beautiful, natural and flawless technique that gave his concerts a unique quality.", "vector": [-0.016788292676210403, 0.008837295696139336, -0.019498568028211594, -0.02080874890089035, -0.0061591328121721745, 0.007006896659731865, 0.016672689467668533, -0.012228351086378098, 0.0063453842885792255, 0.009569455869495869, -0.051456697285175323, -0.008124403655529022, -0.002411631401628256, 0.03108467534184456, 0.007276639807969332, 0.031932439655065536, -0.06689627468585968, -0.01726355589926243, -0.0675642117857933, -0.030596569180488586, 0.02561274543404579, -0.053588952869176865, -0.013121072202920914, -0.03455280140042305, 0.04631873592734337, 0.03313986212015152, 0.009209798648953438, 0.037635575979948044, -0.021450994536280632, -0.05125118046998978, -0.007816125638782978, -0.017469072714447975, -0.022953849285840988, 0.004081469029188156, -0.030802087858319283, -0.0397164523601532, 0.05261274054646492, 0.015709321945905685, -0.010096097365021706, 0.009306135587394238, 0.029851563274860382, 0.02725689299404621, -0.025060413405299187, -0.002559347776696086, -0.007739056367427111, 0.021964790299534798, 0.046293046325445175, 0.01867649517953396, -0.03352520614862442, -0.003991554956883192, 0.012298998422920704, 0.009575878269970417, 0.027436722069978714, -0.005243933293968439, 0.02038486674427986, 0.009216221049427986, -0.002684585517272353, 0.028926730155944824, -0.017610367387533188, -0.004518195986747742, -0.009974069893360138, -0.026434818282723427, -0.06674213707447052, 0.0041007366962730885, -0.014630349352955818, -0.03501521795988083, 0.01107230968773365, 0.006615126971155405, 0.005478352773934603, 0.0020600019488483667, -0.013538531959056854, -0.03432159125804901, 0.030262600630521774, 0.026794476434588432, 0.010764031670987606, -0.047166500240564346, 0.09731301665306091, 0.03147002309560776, -0.08035773783922195, -0.01916460134088993, -0.00767483189702034, -0.03935679420828819, 0.008336344733834267, -0.002801795257255435, 0.03221502527594566, -0.04765460640192032, -0.012196239084005356, -0.05333205312490463, -0.03311416879296303, 0.0336022786796093, 0.0127935279160738, -0.030827777460217476, -0.057904839515686035, 0.05754518508911133, 0.031855370849370956, -0.04372406378388405, -0.047166500240564346, -0.012196239084005356, -0.015054231509566307, 0.030981915071606636, -0.0248163603246212, -0.04806564375758171, 0.05027496814727783, -0.03504090756177902, 0.03935679420828819, 0.051713597029447556, -0.031521402299404144, -0.04796288162469864, 0.009717172011733055, -0.0022735486272722483, 0.05369171127676964, 0.00378924747928977, 0.033653657883405685, 0.0366593636572361, -0.03108467534184456, 0.024610841646790504, -0.02030779793858528, -0.015940530225634575, -0.019794002175331116, 0.0011616612318903208, 0.009312557987868786, -0.00895289983600378, -0.02187487669289112, 0.017841575667262077, 0.010738342069089413, -0.0018239767523482442, 0.0025143905077129602, -0.023660318925976753, 0.010449332185089588, -0.02283824421465397, 0.0336022786796093, 0.04513700306415558, 0.0068591805174946785, 0.021399615332484245, 0.03457849100232124, -0.006066007539629936, 0.03296003118157387, 0.04403234273195267, -0.005359537433832884, 0.028438623994588852, -0.0034777584951370955, -0.0013695881934836507, 0.011547571048140526, -0.06288866698741913, -0.051867734640836716, -0.03298572078347206, 0.02661464735865593, 0.029543286189436913, -0.01863796077668667, -0.00969790481030941, 0.05243290960788727, -0.02897811122238636, 0.0014241790631785989, -0.06211797147989273, -0.03483538702130318, 0.01448905561119318, -0.030827777460217476, 0.008631777949631214, -0.038817308843135834, 0.059805888682603836, -0.03527211397886276, 0.015439578332006931, 0.026974305510520935, 0.03046811930835247, -0.025676969438791275, -0.006165555212646723, 0.02825879491865635, -0.016865363344550133, 0.008850141428411007, 0.06324832141399384, 0.01912606693804264, -0.03414176404476166, -0.03570884093642235, 0.022118929773569107, -0.0347583182156086, 0.04066697508096695, 0.009216221049427986, 0.008978590369224548, -0.036864884197711945, 0.012485249899327755, 0.020988577976822853, -0.03519504517316818, 0.02485489472746849, 0.012665078043937683, 0.020975733175873756, 0.000504965428262949, 0.06329970061779022, -0.025728348642587662, -0.007238104939460754, -0.01748191937804222, -0.041643187403678894, -0.007071121130138636, 0.010693385265767574, -0.02890104055404663, 0.05811036005616188, 0.013397238217294216, 0.026434818282723427, -0.014668883755803108, -0.05137962847948074, -0.02324928157031536, 0.004521407186985016, -0.04446906968951225, 0.03635108843445778, 0.0009834382217377424, -0.014553279615938663, 0.05888105556368828, -0.015568027272820473, 0.027744999155402184, -0.040230248123407364, -0.03909989818930626, 0.0484766811132431, -0.004672334995120764, 0.0044250707142055035, 0.010205279104411602, -0.009351092390716076, -0.018355371430516243, -0.016929587349295616, 0.05266411975026131, 0.015067076310515404, 0.029183628037571907, -0.007886772975325584, -0.019267359748482704, -0.012812795117497444, 0.006705041509121656, 0.049504272639751434, 0.012106324546039104, 0.027205513790249825, 0.014912936836481094, 0.039921972900629044, 0.007218837738037109, -0.007809703703969717, 0.03265175223350525, -0.009453851729631424, -0.022517122328281403, -0.011175069026648998, 0.018984772264957428, -0.024983344599604607, -0.07249665260314941, 0.020140813663601875, 0.006672929041087627, -0.04508562386035919, 0.03177829831838608, -0.017494764178991318, 0.007983109913766384, -0.014155087992548943, -0.018869169056415558, 0.01848382130265236, -0.020513316616415977, -0.01420646719634533, -0.024610841646790504, -0.007006896659731865, -0.04860512912273407, -0.027282582595944405, 0.005940769333392382, -0.026820166036486626, 0.00042709315312094986, 0.031058985739946365, 0.011887961067259312, -0.03290865197777748, 0.054616544395685196, -0.016698379069566727, 0.02715413272380829, -0.012909132055938244, 0.02260703593492508, -0.04231112450361252, -0.011971453204751015, -0.0097364392131567, -0.014874402433633804, 0.008766649290919304, 0.011457657441496849, 0.003326830919831991, 0.011245716363191605, 0.009691482409834862, -0.028361555188894272, -0.01614604890346527, -0.016698379069566727, -0.005475141573697329, 0.04061559587717056, 0.025343000888824463, -0.053743090480566025, 0.03334537893533707, 0.005253566894680262, 0.0031052562408149242, 0.018779253587126732, -0.02279970981180668, -0.02595955692231655, 0.023930061608552933, -0.01637725718319416, -0.05471930280327797, 0.012215506285429, 0.0031871425453573465, -0.026897234842181206, 0.020795904099941254, 0.026010936126112938, -0.09274023026227951, 0.05302377790212631, 0.0435185469686985, 0.03491245582699776, 0.007366554345935583, -0.015979064628481865, 0.005276045762002468, -0.024842049926519394, 0.010905326344072819, 0.010108942165970802, -0.018650805577635765, 0.003619052469730377, -0.017314935103058815, 0.01660846546292305, 0.004527829587459564, 0.024289719760417938, -0.015092765912413597, 0.018997617065906525, -0.018920548260211945, -0.016891052946448326, -0.002019861713051796, -0.013178874738514423, 0.01809847354888916, 0.040076110512018204, 0.01695527695119381, 0.017880110070109367, 0.00989057868719101, -0.021476684138178825, -0.0219519454985857, -0.03555470332503319, 0.029774494469165802, -0.0004840924229938537, -0.012363223358988762, -0.04074404388666153, 0.025522829964756966, -0.04254233092069626, -0.0006141471094451845, -0.04025593772530556, 0.0347583182156086, 0.042285434901714325, 0.04436630755662918, -0.02080874890089035, -0.019074687734246254, 0.024597996845841408, -0.017212174832820892, 0.026820166036486626, -0.026242144405841827, 0.021284010261297226, -0.009781396947801113, 0.012928399257361889, -0.038971446454524994, -0.001094225561246276, 0.039767831563949585, -0.015979064628481865, 0.01889485865831375, -0.0008493695058859885, 0.0004684377054218203, -0.007482158485800028, 0.018008559942245483, 0.06627972424030304, -0.037173159420490265, -0.005558633711189032, 0.004116792697459459, -0.0014281930634751916, -0.03134157508611679, 0.01683967374265194, 0.03948524594306946, 0.024520928040146828, -0.0031823257450014353, 0.03845765069127083, 0.0412321500480175, -0.058470018208026886, -0.02069314569234848, -0.044237859547138214, -0.014270692132413387, -0.03306278958916664, -0.004778305534273386, -0.02313367836177349, -0.027616551145911217, -0.0028740479610860348, 0.011027352884411812, 0.007989532314240932, -0.05261274054646492, 0.022427206858992577, 0.052715498954057693, 0.010327305644750595, 0.0008854957995936275, -0.026640336960554123, -0.019832536578178406, -0.005979304201900959, -0.026743097230792046, -0.00029222163720987737, 0.0011062676785513759, 0.024572307243943214, 0.024906273931264877, -0.007687676697969437, -0.063402459025383, 0.06155279651284218, -0.03188106045126915, -0.002533657941967249, -0.036479536443948746, -0.03886868804693222, 0.05322929471731186, 0.04834822937846184, 0.023043762892484665, 0.00473334826529026, 0.0339876227080822, 0.024752136319875717, -0.01668553426861763, -0.02795051783323288, -0.00818862859159708, -0.036864884197711945, -0.03367934748530388, 0.0038695281837135553, 0.023660318925976753, -0.011618218384683132, -0.009286867454648018, 0.01084110140800476, -0.03445003926753998, -0.020076589658856392, 0.0150799211114645, 0.01067411806434393, -0.005654970183968544, 0.024687912315130234, 0.02012796886265278, -0.025831108912825584, -0.00521182082593441, 0.0098327761515975, -0.020872974768280983, 0.06093623861670494, -0.032703135162591934, -0.012478827498853207, 0.0013511236757040024, -0.013358703814446926, 0.0035066595301032066, 0.030596569180488586, 0.007295907009392977, 0.011669598519802094, 0.032471925020217896, 0.005154018756002188, 0.012196239084005356, -0.08087153732776642, -0.029389146715402603, 0.011894384399056435, -0.0008646228234283626, -0.03447572886943817, 0.007199570536613464, -0.03832920268177986, -0.03272882476449013, 0.011194336228072643, -0.002506362507119775, -0.024944810196757317, -0.021977635100483894, 0.03188106045126915, 0.0018496665870770812, -0.025497140362858772, -0.00017942729755304754, -0.0664338618516922, 0.009017124772071838, 0.009068503975868225, 0.055541377514600754, 0.011348475702106953, 0.0009794242214411497, 0.021592289209365845, -0.03696764260530472, 0.0018239767523482442, 0.00030466512544080615, 0.009723594412207603, -0.0015052625676617026, -0.044648896902799606, 0.05369171127676964, 0.018470976501703262, 0.03886868804693222, -0.051867734640836716, -0.013859654776751995, 0.014000948518514633, 0.031187433749437332, -0.028618453070521355, 0.03981921076774597, -0.029851563274860382, 0.04454613849520683, -0.005006302613765001, 0.0009063687757588923, 0.010128209367394447, 0.01939580962061882, 0.023005228489637375, -0.0060210502706468105, -0.021707892417907715, 0.043158888816833496, -0.009318980388343334, 0.048168402165174484, -0.02543291635811329, 0.04891340434551239, -0.058367256075143814, -0.060730721801519394, -0.019948139786720276, -0.014553279615938663, 0.05456516519188881, -0.003419956425204873, 0.020988577976822853, -0.023159367963671684, 0.0058990237303078175, -0.023647474125027657, 0.018432442098855972, -0.021707892417907715, -0.015670787543058395, 0.0052503556944429874, -0.03311416879296303, -0.0012893076054751873, -0.022863933816552162, 0.04601045697927475, -0.05143100768327713, 9.623645019019023e-05, 0.016274496912956238, -0.0032128323800861835, -0.03825213387608528, 0.014065173454582691, 0.015670787543058395, 0.002191662322729826, 0.001377616310492158, -0.023814458400011063, -0.034270212054252625, -0.035760220140218735, -0.004004399757832289, 0.02088581956923008, 0.0015983880730345845, -0.00047606436419300735, 0.022915314882993698, 0.0009625652455724776, 0.05096859112381935, 0.029029490426182747, 0.0006819842965342104, -0.02371169812977314, 0.023223591968417168, -0.00757849495857954, -0.06931111961603165, -0.018111318349838257, -0.0086831571534276, 0.004418647848069668, -0.036068499088287354, -0.03822644427418709, 0.004319100175052881, 0.022427206858992577, -0.011354898102581501, -0.0006703435792587698, -0.028438623994588852, 0.022632725536823273, 0.021014267578721046, -0.03468124940991402, 0.04881064593791962, -0.03306278958916664, 0.002658895682543516, 0.01745622791349888, -0.06288866698741913, 0.024084201082587242, 0.006220146082341671, 0.012498094700276852, -0.01581208035349846, 0.017687436193227768, 0.008368456736207008, -0.00409431429579854, -0.0003409921482671052, -0.008426259271800518, 0.014116552658379078, 0.01641579158604145, -0.02409704588353634, 0.036479536443948746, -0.032317787408828735, 0.04482872411608696, -0.022324448451399803, -0.008060179650783539, 0.009742861613631248, 0.005035203415900469, 0.028387244790792465, -0.009620835073292255, 0.01786726526916027, 0.0003327633603475988, -0.03838058188557625, -0.015837769955396652, -0.004299832507967949, -0.026139385998249054, -0.014450520277023315, 0.04577925056219101, 0.011322785168886185, -0.017314935103058815, -0.00569992745295167, 0.012485249899327755, 0.01019243337213993, 0.04187439754605293, 0.023005228489637375, 0.05137962847948074, -0.007347286678850651, 0.03794385492801666, -0.023223591968417168, 0.041900087147951126, -0.021810652688145638, -0.008464793674647808, -0.00243892683647573, 0.014078018255531788, 0.0017886533169075847, -0.014476209878921509, -0.006197667680680752, -0.010558513924479485, 0.02065461128950119, -0.030904846265912056, -0.011149379424750805, -0.010500711388885975, -0.007347286678850651, 0.04210560396313667, 0.004938866943120956, 0.030288290232419968, -0.010320883244276047, 0.009954802691936493, 0.00924191065132618, -0.04187439754605293, -0.030211221426725388, 0.016980966553092003, 0.019832536578178406, 0.014617504552006721, -0.01741769351065159, 0.01879209838807583, 0.01338439341634512, 0.06895145773887634, 0.005719194654375315, -0.0005732039571739733, 0.02115556225180626, 0.04184870794415474, 0.007051853928714991, 0.0177516620606184, -0.003917696885764599, 0.009267600253224373, 0.035220734775066376, 0.0019315528916195035, 0.005712772253900766, -0.0381750650703907, 0.010969550348818302, -0.02833586558699608, -0.0026460508815944195, -0.020641766488552094, -0.0012877018889412284, 0.04233681410551071, 0.016711223870515823, -0.02524024248123169, -0.04061559587717056, 0.03927972540259361, 0.01641579158604145, -0.009614412672817707, 0.01452759001404047, -0.003220860380679369, -0.047783054411411285, -0.011277828365564346, 0.00786750577390194, -0.0013575460761785507, -0.014232156798243523, -0.022170308977365494, 0.021361080929636955, 0.008959322236478329, -0.03504090756177902, 0.015979064628481865, -0.012491672299802303, 0.009351092390716076, 0.01916460134088993, 0.0401018001139164, 0.004832896403968334, 0.022889625281095505, -0.01393672451376915, 0.03876592963933945, 0.0020503683481365442, -0.012851329520344734, -0.006322905421257019, 0.004595265723764896, 0.0027006417512893677, -0.03486107662320137, -0.043775442987680435, 0.01515698991715908, 0.046678394079208374, 0.014823023229837418, -0.020436247810721397, 0.0021515218541026115, -0.03707040101289749, 0.03594005107879639, -0.028156036511063576, -0.0013695881934836507, -0.0439038909971714, 0.015336818993091583, 0.004033301025629044, 0.029157938435673714, 0.02661464735865593, 0.002360251732170582, -0.0086831571534276, -0.028798282146453857, -0.006583014968782663, -0.04053852707147598, 0.02882397174835205, 0.019113222137093544, 0.005895812530070543, -0.032780203968286514, -0.021977635100483894, 0.005295312963426113, 0.06119313836097717, -0.01610751263797283, -0.0001550420420244336, 0.005362748634070158, 0.006743576377630234, -0.030673637986183167, -0.0032802680507302284, -0.05322929471731186, 0.06982491165399551, 0.022825399413704872, -0.018689339980483055, 0.014347760938107967, 0.0017051614122465253, 0.018946237862110138, -0.023390576243400574, -0.010128209367394447, -0.021592289209365845, 0.005658181384205818, 0.026434818282723427, -0.05769932270050049, -0.004659490194171667, -0.047860123217105865, 0.015799235552549362, -0.024032821878790855, -0.05166221782565117, -0.0126008540391922, 0.007809703703969717, -0.022619880735874176, 0.0032545782160013914, -0.016158893704414368, -0.04523976147174835, -0.0020696355495601892, -0.02561274543404579, 0.021245475858449936, 0.0355033241212368, -0.013769740238785744, 0.02175927348434925, -0.03573453053832054, 0.022131774574518204, 0.027976207435131073, -0.007617029827088118, -0.013628446497023106, -0.02676878683269024, 0.014784487895667553, -0.01433491613715887, 0.035760220140218735, 0.024122735485434532, -0.013988103717565536, 0.037815406918525696, -0.012363223358988762, -0.021784963086247444, -0.006640817038714886, -0.006865602917969227, -0.008882253430783749, 0.023737387731671333, -0.013692670501768589, 0.049041856080293655, -0.0051122731529176235, 0.029260698705911636, 0.0038438383489847183, 0.004823262803256512, 0.00163692282512784, 0.004145693965256214, 0.013499997556209564, -0.0336022786796093, 0.004177805967628956, -0.007000474259257317, 0.004759037867188454, 0.002316900063306093, -0.011380587704479694, -0.0051636528223752975, -0.015015696175396442, 0.04529114067554474, 0.02638343907892704, -0.018843479454517365, -0.02249143272638321, -0.00989057868719101, -0.013255944475531578, 0.00864462275058031, -0.013872499577701092, 0.04721787944436073, 0.0442892387509346, -0.020564695820212364, 0.024495238438248634, 0.0016923164948821068, 0.004447549115866423, 0.015722166746854782, -0.035297803580760956, 0.019537104293704033, -0.021772118285298347, 0.015452423132956028, -0.03257468342781067, -0.04413510113954544, -0.004537463653832674, -0.015221214853227139, -0.017584677785634995, 0.007071121130138636, -0.060114163905382156, -0.0074757360853254795, -0.03139295428991318, -0.058624155819416046, -0.01558087207376957, -0.02890104055404663, 0.02470075711607933, -0.016659844666719437, 0.0036351087037473917, -0.006660084240138531, 0.011483347043395042, -0.03994766250252724, 0.03180399164557457, -0.04737201705574989, 0.02375023253262043, -0.01254305150359869, -0.015002851374447346, 0.005314580164849758, -0.043158888816833496, 6.04613778705243e-05, -0.011329208500683308, -0.013358703814446926, -0.032471925020217896, -0.0036062076687812805, 0.009691482409834862, 0.018535200506448746, -0.014823023229837418, -0.004874642007052898, 0.006794956047087908, 0.009222643449902534, -0.033088479191064835, 0.02982587367296219, -0.045265451073646545, -0.012857751920819283, 0.022632725536823273, 0.005154018756002188, -0.0021242264192551374, 0.006717886310070753, 0.01558087207376957, 0.016094667837023735, -0.012844907119870186, -0.03141864389181137, -0.03077639825642109, 0.0056967162527143955, -0.008387723937630653, 0.0031213124748319387, 0.020153658464550972, 0.015632251277565956, -0.0005017541698180139, 0.045496661216020584, 0.016248807311058044, 0.0011191124795004725, -0.002980018500238657, -0.01424500159919262, 0.006406397558748722, 0.0012788710882887244, -0.026640336960554123, -0.03331968933343887, -0.01993529498577118, -0.025330156087875366, -0.01622311770915985, -0.007873928174376488, 0.005571478512138128, 0.030031392350792885, -0.005500831641256809, 0.007096811197698116, 0.028310175985097885, -0.019485723227262497, -0.010340150445699692, -0.02715413272380829, 0.03981921076774597, 0.02707706391811371, -0.011798047460615635, -0.014630349352955818, 0.026409128680825233, -0.004967767745256424, 0.0023843359667807817, -0.038200754672288895, -0.03362796828150749, -0.011213603429496288, -0.04755184426903725, 0.009550188668072224, 0.05548999831080437, -0.039999041706323624, -0.01817554421722889, 0.08010084182024002, -0.025599900633096695, 0.0021611556876450777, -0.025381537154316902, -0.012934821657836437, 0.03439866006374359, 0.018149854615330696, 0.02156659960746765, -0.015144145116209984, 0.0223372932523489, 0.03344813734292984, -0.03303709998726845, 0.01244671456515789, -0.04575355723500252, 0.03845765069127083, 0.0171864852309227, -0.0013085749233141541, -0.037815406918525696, -0.01600475423038006, 0.012305420823395252, 0.022478587925434113, -0.028053276240825653, -0.00023140902339946479, -0.043775442987680435, 0.0026894023176282644, 0.0010637188097462058, 0.023185057565569878, -0.0027166977524757385, 0.05055755376815796, -0.05785346031188965, -0.043313026428222656, -0.0012395335361361504, -0.03421883285045624, -0.0052824681624770164, -0.004980612546205521, 0.021206941455602646, 0.04025593772530556, 0.032548993825912476, -0.02446954883635044, -0.015298284590244293, -0.022311603650450706, -0.020705990493297577, -0.0412321500480175, 0.04680684208869934, -0.008484060876071453, -0.01120718102902174, -0.025638435035943985, 0.015246904455125332, -0.004575998056679964, -0.005558633711189032, -0.04436630755662918, -0.02779637835919857, 0.006884870119392872, -0.00204715714789927, -0.010494288988411427, -0.016929587349295616, -0.015940530225634575, -0.01626165211200714, 0.02524024248123169, 0.018239768221974373, 0.008946477435529232, -0.035374872386455536, 0.0295946653932333, 0.010963127948343754, -0.010590625926852226, 0.02717982418835163, 0.011502614244818687, 0.051148418337106705, 0.027308272197842598, -0.01588914915919304, -0.012979778461158276, -0.05502758175134659, 0.003222465980798006, 0.0064641996286809444, 0.008349189534783363, -0.01244671456515789, -0.028644142672419548, 0.0022494643926620483, -0.004017244558781385, 0.00507694948464632, -0.006181611679494381, 0.0051829200237989426, -0.02715413272380829, 0.01653139479458332, 0.04254233092069626, -0.016711223870515823, 0.03935679420828819, -0.029312077909708023, 0.013898189179599285, 0.012838484719395638, -0.02810465730726719, -0.024649376049637794, 0.033191241323947906, -0.03838058188557625, -0.0074950032867491245, -0.03326831012964249, 0.019729778170585632, -0.0031164956744760275, 0.0037282342091202736, 0.00522145489230752, -0.03272882476449013, -0.039305415004491806, 0.02287677861750126, 0.009447429329156876, 0.002385941566899419, -0.006814223248511553, 0.025574209168553352, -0.0004106356354895979, 0.011155801825225353, 0.01608182303607464, -0.054205507040023804, -0.02897811122238636, -0.008098714053630829, 0.011097999289631844, 0.01034657284617424, -0.048964787274599075, -0.025291621685028076, 0.037481438368558884, 0.0015783179551362991, 0.021810652688145638, 0.007411511614918709, -0.018162699416279793, -0.02967173606157303, -0.0021772116888314486, -0.006865602917969227, -0.018047094345092773, -0.07809703797101974, -0.0035837290342897177, -0.03868886083364487, -0.01374405063688755, 0.06170693412423134, 0.009453851729631424, -0.0030570877715945244, -0.014553279615938663, 0.026023780927062035, 0.004026878159493208, -0.026126541197299957, 0.016557084396481514, 0.024919120594859123, 0.02913224883377552, 0.022003326565027237, -0.01734062470495701, -0.0227226410061121, 0.00836203433573246, 0.037327300757169724, 0.03457849100232124, -0.018509510904550552, -0.034989528357982635, 0.02967173606157303, -0.010076829232275486, 0.03825213387608528, 0.018843479454517365, -0.04082111641764641, -0.00329792988486588, -0.032934341579675674, 0.03257468342781067, -0.0008176586125046015, 0.0007193147903308272, -0.0008557919063605368, -0.03470693901181221, 0.024610841646790504, -0.010815411806106567, -0.022118929773569107, -0.054051369428634644, 0.011059464886784554, 0.020834438502788544, -0.019023306667804718, -0.02287677861750126, -0.020102279260754585, -0.010731919668614864, -0.02684585563838482, -0.009704327210783958, 0.001135168713517487, 0.0033846329897642136, -0.020397711545228958, -0.0012852934887632728, -0.009607990272343159, 0.005532943643629551, 0.004344789776951075, 0.0043929582461714745, -0.00010426451626699418, -0.017623212188482285, -0.017494764178991318, -0.011412699706852436, -0.013846809975802898, 0.0006390341441147029, -0.04184870794415474, 0.011059464886784554, -0.04462320730090141, -0.003840627148747444, -0.012170549482107162, 0.05094290152192116, 0.009325402788817883, -0.02283824421465397, 0.015041385777294636, -0.008586820214986801, -0.020025210455060005, -0.017353469505906105, 0.006865602917969227, -0.0038277823477983475, -0.006615126971155405, -0.0204234030097723, -0.028310175985097885, 0.0099291130900383, -0.021810652688145638, 0.032857272773981094, -0.0068463352508842945, -0.018843479454517365, -0.026010936126112938, -0.018920548260211945, -0.02764224074780941, 0.015041385777294636, 0.03306278958916664, 0.03054518811404705, -0.009537343867123127, -0.004582420457154512, -0.00288207596167922, 0.02375023253262043, -0.02256850153207779, -0.0389457568526268, -0.01267792284488678, -0.0009208192932419479, -0.07383252680301666, -0.012254041619598866, 0.004007610958069563, 0.025869643315672874, -0.035066597163677216, 0.019755467772483826, -0.0124081801623106, 0.0007739056600257754, 0.011887961067259312, -0.011579683981835842, -0.01641579158604145, 0.008233585394918919, 0.03493814542889595, -0.011175069026648998, 0.020821593701839447, -0.01821407862007618, -0.01703234761953354, 0.022504277527332306, 0.05975450947880745, 0.029646046459674835, -0.02390437200665474, -0.030493808910250664, 0.02439247816801071, -0.03712178021669388, -0.003050665371119976, 0.02179780788719654, 0.012530206702649593, -0.006454566027969122, 0.0059504033997654915, -0.013069692999124527, 0.008766649290919304, 0.005940769333392382, 0.010410796850919724, -0.0021964791230857372, -0.02061607502400875, 0.016749758273363113, 0.011483347043395042, 0.015362508594989777, -0.019614173099398613, -0.004913176875561476, -0.03830351307988167, -0.015298284590244293, -0.0401018001139164, -0.0015967824729159474, 0.006666506640613079, -0.01223477441817522, 0.042439572513103485, -0.03344813734292984, 0.004126426298171282, -0.0010259869741275907, -0.022774020209908485, 0.0008076235535554588, 0.0030892002396285534, -0.006583014968782663, -0.02386583760380745, 0.012247619219124317, 0.011598951183259487, 0.04834822937846184, 0.001353532075881958, 0.008773071691393852, 0.010134631767868996, -0.01726355589926243, -0.031213123351335526, -0.017392003908753395, 0.012292576022446156, -0.00581232039257884, 0.003490603528916836, -0.0043608457781374454, -0.010436487384140491, -0.012979778461158276, -0.046061836183071136, -0.008753804489970207, 0.01978115737438202, 0.026871545240283012, 0.007591340225189924, -0.008612509816884995, -0.028310175985097885, 0.00714819086715579, -0.015863459557294846, 0.010905326344072819, -0.027847759425640106, 0.0027118809521198273, 0.01691674254834652, 0.04143767058849335, -0.016544239595532417, -0.025458605960011482, -0.011772356927394867, 0.003177508944645524, 0.013133917935192585, 0.011521881446242332, -0.01680113933980465, 0.011457657441496849, 0.03462987020611763, -0.016171738505363464, -0.0009906634222716093, -0.014514745213091373, -0.00822716299444437, 5.6497519835829735e-05, -0.02423834055662155, -0.010764031670987606, 0.009286867454648018, 0.013031158596277237, 0.03452711179852486, 0.013448617421090603, -0.004983823746442795, 0.030725017189979553, -0.0011014507617801428, -0.014501900412142277, -0.000690413755364716, 0.009819931350648403, -0.010969550348818302, -0.007745478767901659, 0.02603662572801113, 0.002467827871441841, 0.0036094188690185547, -0.020025210455060005, 0.0037764026783406734, -0.0038952180184423923, -0.0006314074853435159, 0.010083251632750034, 0.0021852399222552776, -0.006660084240138531, -0.028798282146453857, -0.005481563974171877, 0.030596569180488586, -0.011765934526920319, -0.024944810196757317, -0.013846809975802898, -0.001516501884907484, -0.00590865733101964, -0.014630349352955818, 0.013371548615396023, -0.008715269155800343, -0.017687436193227768, -0.0006145485094748437, 0.016659844666719437, 0.006647239439189434, 0.011598951183259487, -0.02458515204489231, -0.00031128828413784504, 0.0032610008493065834, -0.0009505231282673776, 0.02715413272380829, -0.031136054545640945, -0.027693619951605797, 0.010365840047597885, 0.04539390280842781, -0.030802087858319283, -0.01618458330631256, -0.004926021676510572, -0.008991435170173645, 0.014553279615938663, 0.007784013636410236, 0.01759752258658409, 0.004502139985561371, -0.02454661764204502, 0.029723115265369415, 0.02561274543404579, -0.00975570734590292, 0.01889485865831375, -0.010956705547869205, -0.006027472671121359, 0.024264030158519745, -0.04978685826063156, -0.024752136319875717, 0.01920313574373722, -0.006075641140341759, -0.005285679362714291, -0.018548045307397842, -0.03555470332503319, -0.006627972237765789, 0.006634394638240337, 0.012337532825767994, 0.017584677785634995, -0.014733108691871166, 0.02577972784638405, 0.007103233598172665, -0.02818172611296177, 0.01531112939119339, 0.021219786256551743, 0.006518790498375893, 0.008830873295664787, 0.005629280582070351, 0.0015060653677210212, 0.02279970981180668, -0.014938627369701862, 0.02351902425289154, 0.03493814542889595, 0.009196953848004341, 0.00016357186541426927, -0.014514745213091373, -0.029183628037571907, -0.012562318705022335, -0.0374300591647625, 0.0018496665870770812, -0.022247379645705223, 0.05096859112381935, 0.03540056571364403, -0.016390101984143257, -0.040230248123407364, 0.0032850850839167833, -0.010815411806106567, 0.005157230421900749, -0.014155087992548943, 0.022350138053297997, -0.0068591805174946785, 0.042362503707408905, 0.009884156286716461, 0.050300657749176025, -0.015465267933905125, 0.0047879391349852085, -0.005738462321460247, 0.04028162732720375, 0.010070406831800938, -0.013178874738514423, -0.00822716299444437, 0.006470622029155493, -0.009055659174919128, 0.04462320730090141, 0.029774494469165802, -0.026588957756757736, -0.025394381955266, 0.01805993914604187, -0.0061559216119349, -8.31908400868997e-05, -0.038971446454524994, 0.014103707857429981, 0.0021338602527976036, -0.002143493853509426, 0.04115508124232292, -0.051790665835142136, -0.005911868531256914, -0.02707706391811371, -0.012742147780954838, 0.022915314882993698, 0.021707892417907715, -0.01931874081492424, -0.007411511614918709, -0.00081244035391137, 0.028618453070521355, 0.022825399413704872, -0.016480015590786934, -0.0051315403543412685, 0.01726355589926243, 0.036941953003406525, -0.00012614100705832243, 0.01939580962061882, -0.01763605698943138, -0.008008799515664577, 0.016582775861024857, 0.024084201082587242, -0.02554851956665516, -0.026023780927062035, -0.017404848709702492, 0.028001897037029266, 0.033807795494794846, 0.001767780282534659, 0.0005475141806527972, -0.028644142672419548, -0.0065541137009859085, 0.029337767511606216, -0.003323619719594717, -0.0009633680456317961, 0.012318265624344349, 0.016929587349295616, 0.01641579158604145, -0.016274496912956238, -0.010513556189835072, 0.006647239439189434, 0.04585631936788559, -0.007250950206071138, -0.017854420468211174, -0.04249095171689987, 0.013076115399599075, 0.007456468418240547, -0.04246526211500168, 0.011380587704479694, 0.006608704570680857, 0.006794956047087908, 0.0018159487517550588, 0.016120359301567078, -0.0011640697484835982, 0.009871311485767365, 0.011695288121700287, 0.00198614364489913, 0.014386296272277832, -0.002657290082424879, -0.018740719184279442, 0.01067411806434393, -0.0032256771810352802, -0.00315021350979805, -0.05292101576924324, 0.013628446497023106, 0.01025023590773344, 0.007026164326816797, 0.004216340836137533, -0.047705985605716705, 0.00501272501423955, -0.008792338892817497, 0.02489342913031578, -0.030057081952691078, 0.03288296237587929, 0.011920074000954628, -0.004126426298171282, 0.017957180738449097, 0.0014354183804243803, 0.03226640820503235, -0.035683151334524155, -0.010924593545496464, 0.01951141469180584, -0.00011751082638511434, 0.03989627957344055, 0.038817308843135834, -0.0005001485696993768, 0.007899617776274681, -0.009254755452275276, 0.01236964575946331, -0.017443383112549782, 0.02890104055404663, 0.02603662572801113, 0.011830159462988377, -0.020179349929094315, 0.028772592544555664, -0.003320408519357443, -0.04058990627527237, 0.007989532314240932, 0.008708846755325794, 0.010070406831800938, 0.03352520614862442, 0.028078967705368996, 0.013063270598649979, -0.03134157508611679, -0.030725017189979553, 0.014604659751057625, -0.01637725718319416, 0.008021644316613674, -0.012607276439666748, 0.028849661350250244, -0.0019074686570093036, -0.009254755452275276, 0.024302564561367035, 0.003203198779374361, -0.009922690689563751, 0.007751901634037495, -0.03722454234957695, 0.011868693865835667, 0.007013319060206413, -0.025420071557164192, 0.017648901790380478, -0.04051283746957779, -0.024803515523672104, 0.016017599031329155, -0.0036543761380016804, 0.01038510724902153, 0.058932434767484665, -0.01338439341634512, -0.010038294829428196, 0.0034039004240185022, 0.045111313462257385, 0.025381537154316902, 0.04868219792842865, 0.001229899819009006, 0.023891527205705643, 0.023852992802858353, -0.017276400700211525, 0.016197428107261658, -0.08410844951868057, -0.030416740104556084, -0.029543286189436913, -0.01342292781919241, 0.02974880486726761, -0.01825261302292347, -0.017995715141296387, -0.01649286039173603, -0.004633800126612186, 0.01943434402346611, 0.007668409496545792, 0.0246236864477396, 0.02866983227431774, -0.02367316372692585, -0.019832536578178406, -0.003962653689086437, -0.045907698571681976, -0.009614412672817707, -0.007360131945461035, 0.002952723065391183, 0.021707892417907715, -0.00757849495857954, 0.02493196539580822, -0.018997617065906525, 0.011701710522174835, 0.0173791591078043, -0.0013045609230175614, -0.0038245711475610733, 0.03909989818930626, -0.008837295696139336, -0.008394146338105202, -0.008830873295664787, 0.0009336642106063664, 0.0008854957995936275, 0.006255469750612974, -0.03645384684205055, 0.013718361034989357, 0.0008028066949918866, -0.013063270598649979, 0.01511845551431179, -0.007572072558104992, -0.013397238217294216, 0.013121072202920914, 0.027462411671876907, -0.01630018651485443, -0.020911509171128273, -0.003946597687900066, 0.021695047616958618, -0.023583250120282173, -0.0024726446717977524, 0.02206755056977272, 0.002753627020865679, -0.0067243087105453014, 0.027539480477571487, 0.008272119797766209, 0.00046201524673961103, 0.009389626793563366, 0.014964316971600056, -0.007976687513291836, 0.02321074716746807, -0.005722406320273876, -0.03180399164557457, -0.01924167014658451, -0.011708132922649384, -0.019614173099398613, 0.00826569739729166, -0.01993529498577118, 0.003029792569577694, 0.05466792359948158, 0.03660798445343971, 0.044237859547138214, -0.004967767745256424, 0.011252138763666153], "id": 5}, {"title": "Marge vs. the Monorail", "text": "\"Marge vs. the Monorail\" is the twelfth episode of The Simpsons\u2019 fourth season and originally aired on January 14, 1993. The plot revolves around Springfield's purchase of a monorail from a conman, and Marge's dislike of the purchase. It was written by Conan O'Brien and directed by Rich Moore. Guest stars include Leonard Nimoy as himself and Phil Hartman as Lyle Lanley.", "vector": [-0.019495300948619843, -0.020162204280495644, -0.025202756747603416, 0.006118453573435545, -0.008142429403960705, -0.013849884271621704, -0.009445217438042164, 0.017618665471673012, -0.029638441279530525, 0.0849914476275444, -0.0018650039564818144, 0.012267926707863808, -0.03560955449938774, 0.012089568190276623, 0.035237330943346024, 0.009476236067712307, -0.032104432582855225, 0.0029758638702332973, 0.009724386967718601, 0.01561019942164421, 0.00892565306276083, 0.0330970361828804, 0.004579146858304739, 0.05797409638762474, 0.005121975671499968, 0.009522764943540096, -0.009111765772104263, 0.007669392507523298, -0.02442728728055954, -0.004931985400617123, -0.039393845945596695, -0.004579146858304739, 0.004334873985499144, 0.008235485292971134, 0.006102944258600473, 0.013772336766123772, 0.01592814177274704, 0.02241106703877449, -0.0321974903345108, -0.002266309456899762, 0.014989824034273624, -0.023372648283839226, 0.00970887765288353, -0.03421371057629585, -0.007502666674554348, 0.019976092502474785, -0.03619891405105591, -0.008607710711658001, 0.0004723093588836491, -0.006250283680856228, 0.004873825237154961, -0.01367152575403452, 0.0335623174905777, 0.02138744667172432, -0.0272965244948864, 0.016936251893639565, 0.002588129136711359, 0.0301967803388834, -0.01820802129805088, -0.03976607322692871, 0.02188374660909176, -0.019650395959615707, -0.006316198501735926, 0.042247574776411057, -0.031344473361968994, 0.012291190214455128, -0.01557142660021782, 0.008041618391871452, 0.042247574776411057, -0.014446995221078396, 0.043147120624780655, 0.017727231606841087, -0.00885586068034172, 0.019247151911258698, 0.038804490119218826, 0.010895345360040665, 0.002359365811571479, -0.010228442028164864, -0.03843226656317711, -0.01682768575847149, -0.010174158960580826, -0.023729365319013596, 0.018052928149700165, 0.053569428622722626, 0.05329025909304619, 0.008786068297922611, 0.06315422803163528, -0.061044953763484955, 0.029095612466335297, -0.0037649041041731834, 0.036881327629089355, 0.047986049205064774, 0.0010594851337373257, 0.0016052217688411474, -0.041813310235738754, -0.02734305150806904, 1.7372332877130248e-05, 0.012834019027650356, -0.00127467792481184, 0.03989014774560928, 0.01077902503311634, -0.028971537947654724, 0.02993311919271946, 0.013299300335347652, 0.044046662747859955, 0.0187973789870739, -0.018192512914538383, -0.0003489612427074462, -0.009879480116069317, 0.03260073438286781, -0.006521698087453842, 0.0007037385366857052, -0.0031193257309496403, -0.036757249385118484, 0.025264794006943703, -0.010313743725419044, 0.005195645149797201, -0.004164271056652069, -0.011399400420486927, -0.035237330943346024, -0.019712433218955994, -0.05508934706449509, -0.0545930489897728, -0.011236552149057388, -0.002615270670503378, 0.017246440052986145, -0.011725097894668579, 0.0035012445878237486, -0.001704094116576016, -0.005509710405021906, 0.015106144361197948, 0.04578371345996857, -0.03204239532351494, -0.02148050256073475, -0.008266503922641277, -0.019619377329945564, -0.0648912787437439, -0.014726164750754833, 0.055895835161209106, 0.025357849895954132, -0.05561666935682297, 0.05493425577878952, -0.012066304683685303, 0.024768494069576263, 0.017122365534305573, -0.021682124584913254, -0.036881327629089355, 0.080524742603302, 0.010988402180373669, -0.008902388624846935, 0.04054154083132744, -0.004939740058034658, -0.01062393095344305, 0.03038289211690426, 0.04125497490167618, 0.03750170022249222, -0.04029339179396629, -0.029917610809206963, -0.04721057787537575, -0.020193224772810936, -0.05208052694797516, -0.045163340866565704, 0.0009635207825340331, -0.030165761709213257, 0.007971826009452343, -0.011011665686964989, 0.05797409638762474, 0.011864682659506798, -0.04764484241604805, 0.01650198921561241, -0.03430676832795143, 0.0012378430692479014, -0.005982746835798025, -0.013880902901291847, 0.06544961780309677, 0.002041423227638006, -0.0007555980118922889, -0.012919320724904537, -0.030662061646580696, 0.016982780769467354, -0.010895345360040665, -0.013066659681499004, 0.037780869752168655, 0.039300791919231415, -0.0024233420845121145, -0.014028241857886314, -0.004365893080830574, 0.04804808646440506, 0.006102944258600473, -0.05167728289961815, 0.017959872260689735, 0.03954894095659256, 0.018363116309046745, -0.09746100008487701, 0.011089213192462921, 0.006444151047617197, -0.015315521508455276, -0.01958835870027542, -0.004272836726158857, -0.026412488892674446, -0.01870432309806347, 0.008894634433090687, 0.023682836443185806, -0.022876348346471786, -0.0014540051342919469, -0.06132412329316139, -0.0076034776866436005, 0.03055349551141262, 0.042743876576423645, -0.0015305827837437391, 0.05980420112609863, -0.0500953234732151, 0.029560893774032593, 0.026427997276186943, -0.008917898871004581, -0.001761284889653325, -0.06383664160966873, 0.016036707907915115, 0.00566868158057332, -0.014353939332067966, 0.0022818187717348337, -0.013493168167769909, 0.06681444495916367, -0.028800934553146362, -0.02376038394868374, -0.009034219197928905, -0.011089213192462921, 0.008026108145713806, -0.05431387946009636, 0.0030340240336954594, -0.047303635627031326, -0.0018058744026347995, -0.060145407915115356, 0.06495331972837448, -0.053352296352386475, 0.051336076110601425, 0.04503926634788513, -0.009677858091890812, -0.000997447525151074, -0.030615532770752907, -0.020860128104686737, 0.0460939034819603, -0.017153384163975716, 0.027622221037745476, 0.0018853601068258286, -0.00035671592922881246, 0.02264370769262314, -0.043457306921482086, -0.03033636324107647, -0.06538758426904678, -0.006800866685807705, -0.00505606085062027, 0.05958707258105278, 0.0275136549025774, 0.01022068690508604, 0.010841062292456627, 0.019340207800269127, 0.012958094477653503, -0.01236873771995306, 0.011841418221592903, -0.037873927503824234, 0.020782580599188805, -0.028149539604783058, 0.003691234393045306, -0.051553208380937576, 0.04268183559179306, -0.028552783653140068, 0.0053352294489741325, -0.022752273827791214, -0.00743675185367465, 0.04044848680496216, -0.05124301835894585, -0.012345473282039165, 0.029560893774032593, 0.028568293899297714, 0.007587968371808529, 0.056578248739242554, 0.03368639200925827, 0.010399045422673225, -0.07674045115709305, 0.022628197446465492, 0.03923875465989113, -0.01578855700790882, -0.030879192054271698, 0.05149117112159729, 0.024706456810235977, 0.01584284007549286, 0.009297878481447697, -0.036167893558740616, -0.015175936743617058, -0.0066031222231686115, -0.013369092717766762, 0.05288701504468918, 0.030413910746574402, 0.03886652737855911, 0.013896412216126919, 0.05108792707324028, 0.015144918113946915, 0.0037048051599413157, 0.020239751785993576, -0.016889724880456924, 0.043426286429166794, -0.000159819406690076, 0.026815732941031456, 0.02487706020474434, -0.011507966555655003, 0.011601022444665432, 0.05713658779859543, -0.04144108667969704, -0.033034998923540115, 0.02312449924647808, 0.016315877437591553, -0.0034857350401580334, -0.008871369995176792, -0.030088214203715324, 0.03691234439611435, 0.017572136595845222, 0.01749459095299244, 0.007328186184167862, -0.011911210604012012, 0.031034287065267563, 0.028971537947654724, -0.011283080093562603, 0.009041973389685154, 0.020007111132144928, 0.013586224056780338, 0.0033442119602113962, -0.03135998547077179, -0.022426575422286987, 0.03793596476316452, -0.005571747664362192, 0.008421598002314568, -0.028568293899297714, 0.017975380644202232, -0.0035109377931803465, -0.10720089077949524, -0.02307797037065029, -0.020829109475016594, -0.02411709912121296, 0.0028808689676225185, 0.00023748751846142113, 0.015641218051314354, 0.03604381904006004, -0.00538951251655817, -0.03278684616088867, -0.03905263915657997, 0.0009843615116551518, 0.0025939452461898327, 0.02523377537727356, -0.010864326730370522, 0.0007885554805397987, -0.003123203059658408, -0.008204466663300991, -0.02492358721792698, -0.017680702731013298, -0.007014120928943157, 0.015137162990868092, 0.012035285122692585, 0.03719151392579079, -0.003348089288920164, 0.03644706308841705, -0.017680702731013298, 0.00821222085505724, -0.02894051931798458, -0.004548128228634596, -0.004377524834126234, -0.0469934456050396, 0.005021164659410715, -0.03719151392579079, -0.028242597356438637, -0.01999160274863243, 0.0013279913691803813, -0.017075836658477783, -0.07674045115709305, 0.09094705432653427, -0.030972249805927277, 0.0194642823189497, 0.03722253441810608, -0.010654949583113194, 0.012787491083145142, -0.003993667662143707, 0.010267214849591255, -0.021713143214583397, 0.037284571677446365, -0.034151673316955566, 0.015780802816152573, -0.040014222264289856, -0.037998002022504807, 0.03731558844447136, -0.011771625839173794, -0.01223690714687109, 0.005261559970676899, -0.015625709667801857, -0.003381046699360013, 0.02957640402019024, -0.010073347948491573, 0.007444506511092186, 0.019448773935437202, 0.07190152257680893, -0.00481954263523221, 0.00636272644624114, -0.0011767748510465026, 0.010654949583113194, -0.0019357656128704548, -0.04097580537199974, 0.019200623035430908, 0.013144207186996937, -0.0006184368976391852, -0.0007914634770713747, -0.03159262612462044, 0.043550364673137665, 0.010662704706192017, 0.0018989307573065162, -0.03852532058954239, 0.039610978215932846, -0.00739410100504756, 0.003745517460629344, 0.018983490765094757, 0.018580246716737747, 0.053166184574365616, 0.013043396174907684, 0.07016447186470032, 0.06476720422506332, 0.05909077078104019, -0.02693980745971203, 0.06538758426904678, -0.0010604544077068567, 0.012834019027650356, -0.060052353888750076, -0.0165485180914402, 0.0150983901694417, -0.014555561356246471, -0.0357956700026989, 0.018363116309046745, 0.019262660294771194, 0.055368516594171524, -0.012647906318306923, 0.07270801067352295, 0.03731558844447136, 0.01994507387280464, 0.026071282103657722, 0.0067659709602594376, -0.012880546972155571, -0.025528453290462494, 0.014640863053500652, 0.007774081081151962, -0.03104979544878006, -0.022969404235482216, 0.002303144196048379, 0.03700540214776993, -0.02269023470580578, -0.01505186129361391, -0.041627198457717896, 0.03319009020924568, 0.013221753761172295, 0.02155805006623268, -0.008080391213297844, -0.02196129411458969, -0.006188245955854654, 0.02421015501022339, 0.034027598798274994, -0.004811787977814674, 0.03238360211253166, -0.0492267981171608, 0.0140902791172266, -0.02501664310693741, -0.011042684316635132, 0.05564768612384796, -0.005971114616841078, -0.033128052949905396, -0.015152672305703163, 0.010631686076521873, -0.05409674718976021, 0.018037419766187668, 0.023775892332196236, -0.021945785731077194, -0.020053640007972717, -0.012663415633141994, 0.014578824862837791, -0.021496012806892395, -0.031515076756477356, 0.037998002022504807, -0.045256394892930984, -0.012399756349623203, 0.06250283867120743, 0.04925781860947609, 0.04215451702475548, -0.018130475655198097, -0.05856345221400261, -0.008491390384733677, 0.03923875465989113, -0.03750170022249222, -0.009701122529804707, -0.01678115874528885, 0.009367670863866806, 0.061665330082178116, 0.02188374660909176, -0.0019435202702879906, -0.0015577242011204362, -0.026148829609155655, 0.006785357370972633, 0.026583092287182808, 0.07177744805812836, -0.03588872402906418, -0.011042684316635132, -0.03405861556529999, 0.022380048409104347, -0.015897123143076897, 0.02509419061243534, -0.014865748584270477, 0.06433294713497162, 0.035051219165325165, 0.07798120379447937, 0.023186536505818367, -0.02397751435637474, -0.004222431220114231, 0.009964781813323498, 0.027048373594880104, 0.018719831481575966, -0.016005689278244972, 0.010864326730370522, 0.008894634433090687, -0.0008161815931089222, 0.04702446609735489, -0.021170316264033318, 0.01802190952003002, 0.008150183595716953, -0.002780057955533266, 0.011771625839173794, 0.006994734052568674, 0.01570325531065464, 0.04280591383576393, -0.021263372153043747, 0.0016653205966576934, -0.0033694147132337093, -0.02822708711028099, -0.03992116451263428, 0.04156516119837761, 0.005800511222332716, -0.017277458682656288, -0.02604026347398758, -0.00754919508472085, -0.0019696922972798347, 0.012353228405117989, 0.01882839761674404, 0.008809332735836506, -0.014951050281524658, -0.026288414373993874, 0.011787135154008865, -0.021821709349751472, 0.023295100778341293, 0.003322886535897851, -0.0026870016008615494, 0.04488417133688927, -0.042433686554431915, 0.0015451228246092796, -0.014183335937559605, -0.021061750128865242, 0.008886879310011864, 0.0025687424931675196, -0.026024753227829933, -0.00465281680226326, -0.0015964977210387588, -0.0012329963501542807, -0.021945785731077194, 0.033034998923540115, -0.014578824862837791, 0.03300397843122482, -0.06017642840743065, -0.004121620208024979, 0.022736763581633568, 0.043457306921482086, 0.04196840524673462, -0.022876348346471786, -0.006207632832229137, 0.02711041085422039, 0.009623575955629349, 0.023558761924505234, -0.045876771211624146, -0.007987335324287415, 0.011127986013889313, 0.04454296454787254, 0.03855634108185768, 0.007126564159989357, -0.025171738117933273, 0.0005224725464358926, -0.038680415600538254, 0.004365893080830574, 0.011771625839173794, 0.04311610013246536, 0.05561666935682297, 0.03660215809941292, 0.03188730403780937, -0.011213287711143494, -0.004109987989068031, 0.010003555566072464, -0.006948206108063459, -0.011275325901806355, 0.0037610267754644156, -0.038091059774160385, 0.018533719703555107, -0.032104432582855225, -0.007355327717959881, 0.010980647057294846, -0.043736476451158524, 0.0014423731481656432, 0.015044107101857662, -0.0042650820687413216, 0.02473747543990612, -0.011779380962252617, -0.0505606085062027, 0.018580246716737747, -0.0051491172052919865, 0.024799512699246407, 0.009949272498488426, -0.018052928149700165, 0.0008244209457188845, 0.008941162377595901, 0.027947917580604553, -0.01107370387762785, 0.020301789045333862, 0.027389580383896828, 0.008762804791331291, -0.0012436590623110533, -0.029064593836665154, 0.006537207402288914, -0.015493879094719887, 0.0635264590382576, -0.03154609724879265, -0.006021520122885704, 0.00014624868344981223, 0.039083659648895264, 0.02376038394868374, -0.01140715554356575, 0.006172736641019583, -0.002960354555398226, -0.007653883192688227, -0.013058905489742756, 0.000980484182946384, 0.01422986388206482, -0.010903100483119488, -0.013857638463377953, -0.0051607489585876465, 0.05403470993041992, -0.015137162990868092, 0.02219393476843834, 0.017370514571666718, 0.012733208015561104, 0.0183476060628891, 0.017866816371679306, 0.0004909691051580012, 0.03824615105986595, -0.006626386195421219, 0.013051150366663933, 0.035144273191690445, -0.04904068633913994, -0.006855149753391743, -0.04761382192373276, -0.0034159428905695677, 0.040417466312646866, -0.011624286882579327, 0.05015736445784569, -0.012159360572695732, 0.054065730422735214, -0.013407866470515728, 0.005788879469037056, 0.03294194117188454, 0.015858350321650505, -0.0004599503008648753, 0.03480306640267372, 0.013345829211175442, 0.044760096818208694, -0.05664028599858284, -0.0015674176393076777, -0.0010061715729534626, -0.00885586068034172, -0.023108989000320435, 0.04379851371049881, -0.013609488494694233, 0.013656016439199448, 0.005374003201723099, 0.00970887765288353, -0.013624997809529305, -0.04085173085331917, -0.012066304683685303, -0.0017254194244742393, -0.005707454867660999, -0.009499500505626202, -0.006161104422062635, -0.016796667128801346, -0.006199878174811602, -0.0008186048944480717, -0.0002063475694740191, 0.06973021477460861, 0.010592912323772907, -0.026071282103657722, -0.023915477097034454, 0.007483279798179865, 0.013617243617773056, -0.004172025714069605, -0.027281014248728752, 0.0033500278368592262, -0.03149956837296486, 0.0069210645742714405, -0.015912633389234543, 0.008654238656163216, -0.009034219197928905, -0.04308508336544037, -0.00116611213888973, 0.008320786990225315, -0.005273192189633846, 0.021356428042054176, 0.006040906999260187, -0.004745872691273689, 0.016719121485948563, -0.04866846278309822, -0.00772755267098546, -0.014167826622724533, -0.018595756962895393, -0.0057578603737056255, 0.038587357848882675, 0.017789268866181374, -0.028878482058644295, -0.02272125519812107, -0.005362370982766151, 0.005292579066008329, 0.029715988785028458, 0.000669327040668577, 0.017742739990353584, -0.0055833798833191395, -0.03601279854774475, 0.0014249250525608659, -0.008313031867146492, 0.018626775592565536, 0.0234967228025198, 0.004920353647321463, 0.007487157359719276, -0.008468125946819782, 0.012624641880393028, 0.031080814078450203, 0.019185112789273262, 0.026024753227829933, 0.042030442506074905, 0.027451617643237114, -0.011942229233682156, 0.019448773935437202, 0.012787491083145142, 0.0015674176393076777, -0.008336296305060387, 8.766439714236185e-05, -0.03126692771911621, -0.017835797742009163, 0.04358138144016266, -0.00925910472869873, -0.008801577612757683, 0.030475948005914688, 0.03114285320043564, 0.008142429403960705, 0.007452261168509722, -0.013361338526010513, -0.01478820201009512, -0.026645129546523094, -0.005509710405021906, -0.0039568329229950905, -0.020193224772810936, -0.01941775530576706, 0.002126724924892187, -0.04550454765558243, -0.005342984572052956, 0.041006822139024734, 0.04109987989068031, 0.008894634433090687, 0.00027311063604429364, -0.029328253120183945, 0.04854438453912735, -0.02331061102449894, -0.013524186797440052, 0.020518921315670013, -0.018905945122241974, 0.01682768575847149, -0.011065948754549026, -0.002035607350990176, 0.046466127038002014, 0.03213545307517052, -0.01951081119477749, -0.013586224056780338, -0.03256971761584282, 0.00153542950283736, 0.010577403008937836, 0.03905263915657997, 0.0023050829768180847, -0.021852727979421616, -0.01614527404308319, 0.016936251893639565, -0.006068048067390919, -0.01882839761674404, 0.03632298856973648, 0.024442795664072037, -0.006859027314931154, 0.01270994357764721, -0.015160427428781986, -0.014074769802391529, 0.012291190214455128, -0.01856473833322525, 0.009654594585299492, -0.012314454652369022, -0.00026899095973931253, 0.0006092281546443701, -0.011632041074335575, 0.012531585991382599, 0.015300012193620205, 0.06780704855918884, 0.015377558767795563, -0.0053817578591406345, 0.04255776107311249, 0.04311610013246536, 0.048203181475400925, -0.053755540400743484, -0.04258878156542778, -0.007859382778406143, 0.002134479582309723, 0.01955733820796013, 0.018890434876084328, 0.012446284294128418, 0.03294194117188454, 0.03539242595434189, 0.04593880847096443, 0.006638018414378166, -0.025078682228922844, 0.056795381009578705, 0.004063460044562817, 0.05986623838543892, -0.03573363274335861, -0.007622864563018084, -0.017649684101343155, 0.0023748751264065504, -0.003439206862822175, 0.03784290701150894, 0.014865748584270477, 0.0014045690186321735, -0.05968012660741806, -0.047179561108350754, -0.006444151047617197, -0.0010594851337373257, 0.006157227326184511, -0.00785162765532732, -0.005436040926724672, 0.018580246716737747, 0.005342984572052956, -0.004090601112693548, 0.00618436885997653, 0.012694434262812138, 0.014687390998005867, 0.012151606380939484, -0.03078613616526127, -0.014912277460098267, 0.037780869752168655, 0.009290123358368874, -0.0010139262303709984, 0.012120586819946766, 0.005350739229470491, 0.02675369568169117, 0.031422022730112076, -0.00821222085505724, 0.009057482704520226, 0.024442795664072037, 0.015300012193620205, 0.019216133281588554, 0.027544673532247543, -0.043860550969839096, -0.00021907011978328228, -0.005765615031123161, 0.013485413044691086, 0.012275680899620056, -0.0019396429415792227, 0.004935862962156534, -0.00932889711111784, -0.0150983901694417, 0.013741318136453629, 0.02926621586084366, -0.0015286441193893552, 0.022628197446465492, -0.005563993006944656, -0.051553208380937576, 0.006320076063275337, 0.01022068690508604, -0.0165485180914402, -0.004683835431933403, -0.01982099935412407, 0.009096256457269192, -0.0028595435433089733, 0.023202044889330864, -0.017168892547488213, 0.0012853406369686127, -0.002586190588772297, -0.00829752255231142, -0.016672592610120773, -0.029560893774032593, -0.002413648646324873, -0.011228797025978565, 0.02501664310693741, 0.011445928364992142, -0.0037048051599413157, 0.007041262462735176, -0.04016931727528572, -0.019836507737636566, 0.03601279854774475, 0.021123787388205528, 0.008724031038582325, -0.034461859613657, -0.004528741352260113, 0.027079392224550247, 0.034865107387304306, -0.005672558676451445, -0.008305277675390244, -0.03498918190598488, 0.04801706597208977, 0.0014898705994710326, 0.009468481875956059, -0.007211865857243538, -0.043023042380809784, -0.02053442969918251, 0.03985912725329399, -0.015470615588128567, 0.0006412162911146879, -0.014749428257346153, 0.044046662747859955, -0.03306601569056511, 0.018006399273872375, -0.008724031038582325, -0.011686324141919613, -0.008817087858915329, -0.014974314719438553, -0.018580246716737747, -0.009584802202880383, -0.030398402363061905, -0.009034219197928905, 0.01382661983370781, -0.02371385507285595, 0.001846586586907506, -0.0025803744792938232, 0.04693140834569931, 0.00575010571628809, 0.027839353308081627, -0.016517499461770058, 0.03477204963564873, -0.011624286882579327, 0.010026820003986359, 0.013935185968875885, -0.03588872402906418, 0.04671427980065346, 0.018192512914538383, -0.01958835870027542, -0.0033752305898815393, -0.003840512363240123, 0.01317522581666708, 0.014989824034273624, -0.02335713990032673, 0.00796407088637352, 0.013562960550189018, -0.038494303822517395, -0.02416362799704075, -0.04106885939836502, -0.007076158653944731, -0.027312032878398895, 0.013136452063918114, -0.009755405597388744, -0.017959872260689735, 0.04584575444459915, 0.009871725924313068, -0.0035070604644715786, 0.006401500198990107, -0.0013173286570236087, -0.028831953182816505, -0.00573847396299243, 0.03340722247958183, 0.022224953398108482, -0.0008622250752523541, -0.012733208015561104, 0.012229152955114841, 0.051522187888622284, -0.02532683126628399, 0.043643418699502945, 0.013229508884251118, 0.005377880297601223, 0.021728653460741043, -0.04268183559179306, -0.005331352353096008, -7.197325612651184e-05, -0.0020821355283260345, 0.025668038055300713, 0.015641218051314354, -0.037470683455467224, -0.0035109377931803465, -0.004935862962156534, 0.0420614629983902, 0.011725097894668579, -0.00478852353990078, -0.04454296454787254, 0.010143140330910683, -0.03871143236756325, -0.04407768324017525, -0.029855573549866676, -0.0029409679118543863, -0.001110859913751483, -0.0025648651644587517, -0.04175127297639847, 0.01628485880792141, -4.52862041129265e-05, -0.008002844639122486, 0.0045364960096776485, 0.010189668275415897, -0.029002556577324867, -0.0011787135154008865, 0.029111122712492943, 0.017277458682656288, 0.035547517240047455, -0.0010749944485723972, -0.032414622604846954, 0.05744677409529686, -0.03216647356748581, -0.015959160402417183, 0.016408933326601982, -0.01664157398045063, -0.0006339462706819177, -0.0158816147595644, -0.04271285608410835, -0.01977447047829628, 0.042743876576423645, 0.01937122642993927, 0.010406799614429474, -0.006467415019869804, -0.004493845161050558, -0.0008617403800599277, -0.002446606056764722, 0.015385313890874386, -0.03294194117188454, 0.07494136691093445, -0.021914765238761902, 0.012089568190276623, 0.0062386514618992805, -0.00910401064902544, -0.022380048409104347, 0.0038308189250528812, 0.0080493725836277, 0.012329963967204094, -0.00261139334179461, 0.0032259528525173664, 0.028428709134459496, -0.018456172198057175, -0.01704481802880764, 0.025714566931128502, -0.005664804019033909, -0.005505832843482494, -0.0045364960096776485, 0.024659927934408188, 0.00018780899699777365, 0.0054786913096904755, 0.0022566160187125206, -0.011872436851263046, 0.0037125598173588514, -0.007712043356150389, 0.00803386326879263, 0.011872436851263046, 0.035454463213682175, -0.0036989892832934856, 0.023543251678347588, 0.024985624477267265, 0.014074769802391529, -0.024768494069576263, 0.004296100698411465, 0.005878058262169361, -0.011554494500160217, -0.026691658422350883, -0.005447672680020332, 0.041720256209373474, -0.031080814078450203, 0.007006366271525621, 0.008941162377595901, -0.016408933326601982, 0.007568581495434046, -0.0074483840726315975, -0.01659504510462284, 0.024815021082758904, 0.0029351518023759127, -0.03923875465989113, 0.0205809585750103, 0.005199522711336613, 0.0025319077540189028, 0.02115480601787567, -0.009724386967718601, 0.018440663814544678, 0.0424957238137722, -0.03135998547077179, 0.0653255432844162, 0.03750170022249222, 0.001533490838482976, 0.030088214203715324, -0.02304695174098015, -0.06026948243379593, 0.021325409412384033, -0.02872338704764843, 0.02894051931798458, -0.03194934129714966, 0.01147694792598486, 0.007867136970162392, -0.041410066187381744, 0.0022333520464599133, -0.004683835431933403, 0.016207311302423477, -0.0033965560141950846, 0.0031891181133687496, -0.018999001011252403, 0.0035051219165325165, 0.03244563937187195, 0.01566448248922825, 0.011601022444665432, 0.002163559664040804, 0.011507966555655003, -0.00012419627455528826, 0.017742739990353584, -0.026179848238825798, -0.005870303604751825, 0.01606772653758526, -0.015773048624396324, -0.0036427676677703857, 0.012469548732042313, 0.022162916138768196, -0.03877347335219383, 0.004966881591826677, -0.02362079918384552, 0.009941518306732178, 0.030537985265254974, -0.009189312346279621, 0.005963359959423542, 0.0009436493855901062, -0.02227148227393627, -0.02084461785852909, 0.020999712869524956, 0.003660215763375163, 0.006855149753391743, -0.023899968713521957, -0.007308799307793379, -0.0021150929387658834, -0.005796634126454592, 0.011756116524338722, -0.03100326843559742, -0.014555561356246471, 0.004745872691273689, 0.006335585378110409, -0.00036955965333618224, 0.012585869058966637, 0.007793467957526445, 0.0005011471221223474, -0.02934376336634159, -0.007087790407240391, 0.017168892547488213, -0.04603186622262001, -0.013880902901291847, 0.004272836726158857, 0.019169604405760765, 0.004990145564079285, 0.0007429966353811324, 0.005664804019033909, -0.0011961616110056639, -0.009003199636936188, -0.0158816147595644, -0.02380691096186638, 0.016889724880456924, -0.0187973789870739, 0.018983490765094757, 0.03291092440485954, -0.013291546143591404, -0.04044848680496216, -0.02402404323220253, -0.014004978351294994, -0.0047962781973183155, -0.0290801040828228, 0.007107177283614874, -0.005327474791556597, 0.007677147164940834, 0.020115677267313004, -0.006564348936080933, 0.0082742590457201, 0.01228343602269888, -0.008483635261654854, -0.027839353308081627, 0.004625675268471241, 0.019836507737636566, 0.009220331907272339, -0.04016931727528572, 0.03604381904006004, 0.010530875064432621, 0.022829819470643997, -0.05000226944684982, -0.01664157398045063, -0.021371938288211823, -0.0433952696621418, 0.0006921064923517406, 0.026102300733327866, -0.02746712788939476, 0.010934119112789631, 0.05077773705124855, 0.004063460044562817, 0.01592814177274704, -0.021092768758535385, 0.012717698700726032, -0.04795502871274948, 0.009297878481447697, -0.005715209525078535, 0.024706456810235977, -0.023326121270656586, -0.020642995834350586, -0.03287990391254425, -0.005191768053919077, -0.006568226031959057, -0.01574978418648243, -0.004156515933573246, -0.027079392224550247, -0.00511034345254302, -0.05676436051726341, 0.02711041085422039, -0.02501664310693741, -0.03598178178071976, -0.015478369779884815, 0.00022573430032934994, 0.015137162990868092, -0.026908788830041885, 0.012834019027650356, -0.010592912323772907, -0.013338074088096619, -0.019123075529932976, 0.011949984356760979, -0.016626063734292984, 0.009158293716609478, 0.0017544996226206422, -0.03703641891479492, -0.011469192802906036, -0.003123203059658408, 0.002644350752234459, 0.028956027701497078, -0.0075647043995559216, 0.03213545307517052, 0.010406799614429474, 0.042216554284095764, 0.014423731714487076, 0.021806200966238976, 0.020425865426659584, -0.020425865426659584, -0.05229765921831131, -0.011934474110603333, -0.02027077041566372, -0.036571137607097626, -0.007165337447077036, -0.022116387262940407, -0.029545385390520096, 0.03350028023123741, 0.03033636324107647, -0.030181270092725754, -0.018999001011252403, 0.023202044889330864, 0.0063239531591534615, 0.0055833798833191395, 0.012818509712815285, -0.007917542941868305, 0.01046883687376976, -0.016036707907915115, -0.009476236067712307, -0.0060176425613462925, -0.005032796412706375, 0.007211865857243538, 0.016874214634299278, -0.014284146949648857, 0.03539242595434189, 0.03216647356748581, 0.02774629555642605, -0.010282725095748901, -0.0031076937448233366, -0.002500888891518116, -0.004276713822036982, 0.00591683154925704, -0.019541829824447632, 0.034337785094976425, 0.016362404450774193, 0.007382468786090612, -0.021728653460741043, -0.0292972344905138, -0.03784290701150894, -0.012097323313355446, -0.017339495941996574, 0.006606999319046736, 0.014338430017232895, 0.02200782299041748, -0.01277198176831007, -0.018999001011252403, 0.007064526434987783, 0.0005748167168349028, -0.026784714311361313, 0.03502019867300987, 0.012609132565557957, 0.02340366691350937, -0.05521342158317566, -0.02501664310693741, -0.02138744667172432, -0.020379336550831795, -0.04615594074130058, -0.011259816586971283, 0.01758764684200287, 0.009871725924313068, 0.006510065868496895, 0.06008337065577507, 0.0487615168094635, 0.0005883874255232513, 0.021496012806892395, 0.012632397003471851, -0.04035542905330658, 0.01999160274863243, 0.016889724880456924, -0.002613331889733672, -0.011670814827084541, -0.030972249805927277, -0.07072281092405319, -0.012609132565557957, 0.0013561021769419312, -0.03663317486643791, -0.01650198921561241, 0.0014152317307889462, 0.07717471569776535, 0.0032240140717476606, -0.028475238010287285, 0.018177002668380737, -0.038277171552181244, 0.014167826622724533, -0.002648228080943227, -0.006750461179763079, -0.03430676832795143, -0.013144207186996937, -0.0036815411876887083, 0.03346925973892212, 0.010647195391356945, 0.024706456810235977, -0.012849528342485428, -9.432858496438712e-05, 0.004710976965725422, 0.01754111796617508, -0.00874729547649622, 0.0003128534590359777, -0.03194934129714966, -0.02782384306192398, 0.035361405462026596, -0.011259816586971283, 0.00204723933711648, 0.009290123358368874, -0.019247151911258698, 0.0002745646343100816, 0.0234967228025198, -0.007200233638286591, 0.008778314106166363, 0.013376847840845585, 0.03855634108185768, -0.001761284889653325, 0.016486480832099915, 0.029684970155358315, -0.011523475870490074, -0.015493879094719887, -0.011151250451803207, -0.012360982596874237, -0.04392258822917938, -0.0057578603737056255, -0.040014222264289856, -0.006975347641855478, 0.013803355395793915, 0.005230541341006756, 0.008824842050671577, 0.0035361405462026596, -0.02613331936299801, 0.004327119328081608, -0.015106144361197948, -0.018130475655198097, 0.012880546972155571, -0.03275582939386368, -0.003951016813516617, 0.003892856650054455, -0.0353303886950016, -0.010050083510577679, -0.009437463246285915, 0.012764226645231247, 0.010251705534756184, -0.01118226908147335, 0.015300012193620205, 0.004897089675068855, -0.001847555860877037, 0.0016662899870425463, 0.003828880377113819, -0.008305277675390244, 0.027451617643237114, -0.021868238225579262, -0.012678924947977066, -0.0021441730204969645, 0.008382824249565601, -0.010430064052343369, -0.006467415019869804, -0.00011292773706372827, -0.04029339179396629, 0.0025067050009965897, -0.03557853773236275, -0.029049085453152657, 0.011329608038067818, -0.0038153096102178097, -0.02048790268599987, 0.012136096134781837, 0.01223690714687109, -0.01190345548093319, -0.03886652737855911, 0.01937122642993927, -0.023915477097034454, -0.019603867083787918, 0.025885170325636864, 0.03830818831920624, 0.026319433003664017, -0.016874214634299278, 0.0016333324601873755, -0.02219393476843834, -0.03247665986418724, 0.0042650820687413216, -0.013950695283710957, -0.0006116515141911805, -0.029374781996011734, -0.010934119112789631, -0.003377169370651245, -0.025931697338819504, -0.028506256639957428, 0.021402956917881966, 0.016812177374958992, 0.008871369995176792, -1.1132226973131765e-05, -0.0056997002102434635, 0.02165110595524311, 0.031918320804834366, -0.01270218938589096, -0.006215387489646673, 0.02309347875416279, -0.02421015501022339, 0.03256971761584282, 0.01927817054092884, 0.010274969972670078, 0.01986752636730671, -0.006110698916018009, 0.0014724226202815771, 0.01118226908147335, -0.023140007629990578, -0.02228699065744877, -0.008095900528132915, 0.014935540966689587, -0.0058625489473342896, 0.02680022269487381, -0.011678569950163364, -0.006095189601182938, -0.01037578098475933, -0.04144108667969704, -0.007366959471255541, -0.01084881741553545, 0.0024737475905567408, 0.00768490182235837, 0.026427997276186943, 0.004765259567648172, 0.01955733820796013, 0.02264370769262314, 0.020906655117869377, -0.003611748805269599, -0.015912633389234543, -0.008227731101214886, 0.004811787977814674, 0.017386024817824364, -0.0019396429415792227, 0.005920709110796452, 0.030351873487234116, 0.02402404323220253, -0.009809688664972782, -0.0014947173185646534, -0.0036737865302711725, 0.010205177590250969, 0.004823419731110334, 0.024086080491542816, -0.049723099917173386, -0.006459660362452269, -0.011376136913895607, -0.009003199636936188, 0.005994378589093685, 0.011825908906757832, -0.0044783358462154865, 0.02072054333984852, -0.00998029112815857, -0.01754111796617508, -0.02250412292778492, 0.028614822775125504, 0.03439982235431671, 0.007289412431418896, 0.003443084191530943, -0.012516076676547527, 0.002725775120779872, -0.0003870077198371291, -0.009902744553983212, -0.01735500618815422, -0.02245759405195713, 0.01246179360896349, -0.02680022269487381, 0.02227148227393627, 0.00545930489897728, -0.035671595484018326, 0.0088325971737504, 0.011717342771589756, -0.019448773935437202, -0.006459660362452269, -0.0015703255776315928, 0.0032530941534787416, -0.013958449475467205, -0.029995158314704895, 0.02689328044652939, 0.014408222399652004, 0.03520631045103073, 0.008313031867146492, -0.03734660893678665, -0.020022621378302574, -0.013159716501832008, 0.0447290763258934, -0.044667039066553116, -0.01963488571345806, 0.0019163788529112935, -0.016486480832099915, -0.022876348346471786, -0.02008465863764286, 0.0150983901694417, -0.030134741216897964, 0.03750170022249222, -0.023202044889330864], "id": 6}, {"title": "Quebec general election, 1989", "text": "The Quebec general election of 1989 was held on September 25, 1989, to elect members of the National Assembly of the Province of Quebec, Canada. The incumbent Quebec Liberal Party, led by Robert Bourassa, won re-election, defeating the Parti Qu\u00e9b\u00e9cois, led by Jacques Parizeau.This election was notable for the arrival of the Equality Party, which advocated English-speaking minority rights. It won four seats, but never had any success in any subsequent election.", "vector": [0.03476601466536522, 0.007190298289060593, -0.01965864561498165, 0.016584748402237892, 0.003618977963924408, 0.015810316428542137, 0.037077397108078, 0.02412651851773262, 0.030524514615535736, 0.0353379026055336, -0.05061207711696625, -0.029356909915804863, -0.0020924543496221304, -0.003788757137954235, -0.026473641395568848, 0.03128703311085701, -0.042176730930805206, 0.008608103729784489, -0.00694009754806757, -0.011610515415668488, -0.04336816072463989, -0.023471230641007423, -0.017275778576731682, 0.006153751630336046, 0.00021538874716497958, 0.012140702456235886, 0.007476242259144783, 0.02257765643298626, 0.016465604305267334, 0.03393201157450676, 0.014261453412473202, -0.006123965606093407, 0.051803506910800934, -0.02552049607038498, -0.0023054229095578194, -0.049325328320264816, 0.032883550971746445, -0.00614183722063899, 0.007214127108454704, -0.01494057010859251, 0.013701479882001877, 0.01340362150222063, -0.02230362594127655, -0.04036575183272362, 0.03383670002222061, -0.020468819886446, -0.005129119381308556, 0.020969221368432045, -0.032049547880887985, -0.013034277595579624, 0.03826883062720299, 0.040889982134103775, -0.00129642803221941, 0.04498851299285889, 0.006409909576177597, -0.028141647577285767, 0.00757751427590847, 0.021636424586176872, 0.011562857776880264, -0.045917827636003494, -0.02985731139779091, -0.005578885320574045, -0.005081461742520332, 0.007780057843774557, 0.006159708835184574, -0.023375915363430977, -0.01906292885541916, 0.031930405646562576, 0.0037440783344209194, -0.0059333364479243755, 0.03397966921329498, 0.0221487395465374, 0.008220887742936611, -0.0013165335403755307, 0.02480563521385193, 0.05432934686541557, 0.01796681061387062, -0.0037768427282571793, -0.09164503216743469, 0.04055638238787651, 0.02835610695183277, -0.018753156065940857, 0.02244659885764122, 0.03619573637843132, -0.03531407564878464, -0.033026523888111115, 0.06338423490524292, -0.056330952793359756, 0.02399546094238758, 0.024019289761781693, -0.008739161305129528, -0.003866200102493167, 0.04741903394460678, -0.01934887282550335, 0.06004822626709938, -0.0026479598600417376, 0.013105763122439384, -0.03588596358895302, -0.0009203820372931659, -0.015643516555428505, 0.013367878273129463, -0.010055694729089737, 0.0252583809196949, 0.018133610486984253, 0.06257406622171402, -0.043963879346847534, -0.056855183094739914, 0.016477519646286964, 0.041318897157907486, 0.05080270394682884, -0.026449812576174736, 0.012498132884502411, -0.017466409131884575, 0.01093735545873642, -0.030953429639339447, -0.003991300705820322, 0.02706935815513134, 0.010055694729089737, -0.041581012308597565, 0.031072573736310005, 0.029833482578396797, -0.04596548527479172, 0.020528391003608704, -0.00896553322672844, -0.011038627475500107, -0.023900147527456284, 0.008250674232840538, -0.01725194975733757, -0.05390043184161186, 0.014094652608036995, -0.017025578767061234, 0.009209777228534222, -0.037792254239320755, -0.014511654153466225, 0.017216207459568977, -0.003118576016277075, -0.011759444139897823, -0.034146469086408615, -0.004718075040727854, -0.011413928121328354, 0.0035385561641305685, 0.042700961232185364, 0.08096978813409805, 0.017573637887835503, 0.019110586494207382, -0.0282131340354681, 0.044678740203380585, 0.05528249219059944, -0.011693915352225304, 0.026878729462623596, 0.02976199798285961, -0.0207785926759243, 0.014392510987818241, -0.01614391803741455, 0.013081934303045273, 0.05413871631026268, 0.00037902462645433843, 0.03173977509140968, 0.022804027423262596, 0.0316682904958725, -0.030476856976747513, -0.0017082170816138387, -0.007839629426598549, -0.017561722546815872, -0.0009322963305748999, -0.014142310246825218, 0.030619829893112183, 0.025163065642118454, -0.04739520698785782, 0.009930594824254513, 0.028975650668144226, 0.009215734899044037, -0.03657699376344681, -0.01696600578725338, -0.021255165338516235, -0.01458314061164856, -0.020552219823002815, 0.028093991801142693, -0.01003782358020544, 0.02692638710141182, -0.02985731139779091, 0.043272849172353745, -0.013629994355142117, -1.1286035714874743e-06, 0.03550470620393753, -0.09788814187049866, 0.030119426548480988, -0.029356909915804863, 0.008596189320087433, -0.02747444622218609, -0.023530801758170128, 0.006612453144043684, 0.05571140721440315, 0.01739492267370224, -0.034146469086408615, 0.020647535100579262, -0.01628688909113407, 0.026759585365653038, -0.04000832140445709, 0.009853151626884937, 0.03814968466758728, -0.05223242565989494, 0.017323436215519905, -0.012450475245714188, 0.020587962120771408, 0.034027326852083206, 0.020290104672312737, 0.05537780746817589, 0.015619686804711819, -0.010204624384641647, 0.0066481963731348515, -0.03305035084486008, 0.0169540923088789, 0.011282870545983315, -0.018598269671201706, 0.01697792112827301, 0.021684080362319946, 0.028927994892001152, 0.008715332485735416, -0.029785826802253723, 0.019468015059828758, 0.002155004534870386, 0.0019599073566496372, -0.01557203009724617, 0.008542574942111969, -0.01922972872853279, 0.02426949143409729, 0.042176730930805206, 0.023173373192548752, 0.008709375746548176, -0.01653709076344967, 0.03383670002222061, -0.019420359283685684, 0.0426771305501461, 0.002362015889957547, 0.0647663027048111, -0.019813532009720802, -0.012087088078260422, -0.03445624187588692, -0.0009777197847142816, 0.05008784309029579, -0.036553166806697845, -0.018264668062329292, 0.047323718667030334, 0.0006403952720575035, 0.018681669607758522, -0.0230184867978096, 0.03467070311307907, -0.03843563050031662, 0.040937639772892, 0.00933487806469202, -0.02888033725321293, -0.015941374003887177, -0.014440168626606464, 0.013475107960402966, -0.01725194975733757, -0.018622098490595818, -0.02761741727590561, 0.0035355775617063046, -0.048729609698057175, -0.001976289553567767, 0.0025020092725753784, -0.013260649517178535, 0.07320164889097214, -0.024877121672034264, -0.014880998991429806, 0.011676044203341007, 0.0063384235836565495, -0.02092156372964382, -0.03283589333295822, 0.009793579578399658, -0.06500458717346191, -0.0094718923792243, 0.007231998723000288, -0.009513592347502708, 0.04587017372250557, -0.006481395568698645, -0.04315370321273804, 0.00018253126472700387, 0.041438039392232895, 0.011908372864127159, 0.0350281298160553, -0.04220055788755417, -0.06076308339834213, 0.04377324879169464, 0.001992671750485897, -0.009614864364266396, 0.0013277032412588596, -0.017907237634062767, -0.01725194975733757, -0.018574440851807594, 0.004411280620843172, 0.006085244473069906, -0.020027989521622658, 0.006344380788505077, 0.020373504608869553, 0.0059333364479243755, -0.01311767753213644, 0.02216065488755703, 0.07358290255069733, 0.023352088406682014, 0.02835610695183277, 0.012158574536442757, -0.03362223878502846, -0.03660082444548607, -0.01080629788339138, 0.06514755636453629, 0.05299494042992592, 0.02621152624487877, -0.029380738735198975, -0.02540135197341442, 0.0013708926271647215, -0.050707388669252396, -0.0319780632853508, 0.04072318226099014, -0.01809786818921566, 0.03745865449309349, 0.014392510987818241, 0.026854900643229485, 0.018836556002497673, 0.05780833214521408, 0.05204179510474205, -0.00918594840914011, 0.0256634671241045, 0.04305839166045189, -0.034027326852083206, 0.0442974790930748, 0.0012346224393695593, -0.05204179510474205, -0.01458314061164856, -0.015536286868155003, -0.0282131340354681, -0.03419412672519684, 0.00828641653060913, -0.0006463524186983705, -0.007220084313303232, -0.0015980096068233252, 0.023483145982027054, -0.013999338261783123, -0.015595858916640282, -0.007077112328261137, 0.022077254951000214, -0.005495484918355942, 0.04193844273686409, -0.03266909345984459, -0.06057245656847954, -0.0004765732155647129, -0.018205096945166588, 0.017180465161800385, 0.02845142036676407, 0.00048513663932681084, 0.040747009217739105, 0.060667771846055984, -0.024055033922195435, 0.02105262130498886, 0.0527566559612751, -0.008709375746548176, -0.044273652136325836, 0.03617190569639206, -0.07258210331201553, 0.04553657025098801, 0.02428140491247177, -0.012641104869544506, 0.06738745421171188, 0.04336816072463989, 0.01878889836370945, 0.0035206845495849848, 0.023947803303599358, -0.010901612229645252, 0.013070020824670792, 0.03824499994516373, -0.007118812296539545, -0.03776842728257179, 0.027951018884778023, 0.003615999361500144, -0.004086615517735481, -0.03993683680891991, 0.02623535506427288, -0.015012056566774845, -0.027522103860974312, -0.03369372710585594, 0.05690284073352814, -0.08144636452198029, 0.03538556024432182, 0.015643516555428505, -0.05223242565989494, 0.04162866994738579, 0.029428396373987198, -0.005316769704222679, -0.02258956991136074, -0.04108061268925667, 0.013010448776185513, -0.08035024255514145, 0.014559311792254448, -0.04193844273686409, -0.032764408737421036, 0.01199177373200655, 0.013856366276741028, 0.02368568815290928, -0.010764597915112972, -0.008888090029358864, 0.020468819886446, -0.007297527510672808, 0.003779821330681443, 0.043820906430482864, 0.005897593684494495, 0.015429058112204075, -0.059095077216625214, -0.01052631065249443, 0.030929600819945335, -0.01432102546095848, -0.00680903997272253, -0.046513546258211136, -7.083441596478224e-05, 0.027402959764003754, -0.007827715016901493, -0.03478984534740448, 0.036386363208293915, -0.017204293981194496, 0.0072022126987576485, -0.013737223111093044, 0.03929346054792404, -0.01557203009724617, -0.005540163721889257, 0.05332854390144348, -0.04329667612910271, -0.021529195830225945, -0.0032228264026343822, 0.04672800377011299, -0.022613398730754852, 0.01653709076344967, 0.00470318179577589, -0.012295588850975037, 0.010151009075343609, 0.028522906824946404, -0.0002606259658932686, -0.023173373192548752, -0.007321355864405632, 0.03671996667981148, -0.0176689513027668, 0.003097725799307227, 0.02723615989089012, -0.013761051930487156, -0.04961127042770386, 0.0024230768904089928, 0.04880109801888466, -0.025020094588398933, 0.052280083298683167, 0.007857500575482845, 0.03407498449087143, -0.0024052055086940527, -0.012807904742658138, 0.02666427195072174, 0.005352512933313847, 0.030834287405014038, 0.004709139000624418, 0.005373362917453051, -0.04563188552856445, 0.012927048839628696, -0.01046078186482191, -0.036982081830501556, -0.03953174874186516, -0.04584634304046631, -0.010162923485040665, -0.04670417681336403, 0.01654900424182415, -0.001986714545637369, -0.016763463616371155, -0.018979528918862343, -0.010728854686021805, 0.04208141565322876, -0.004333837889134884, -0.03552853316068649, 0.020587962120771408, 0.02286360040307045, 0.017466409131884575, -0.04470256716012955, -0.010573968291282654, -0.05289962515234947, 0.018848471343517303, 0.009775708429515362, 0.002737317467108369, 0.011342442594468594, 0.0011378185590729117, -0.014845255762338638, -0.02020670473575592, -0.008304288610816002, -0.062049832195043564, 0.004977211356163025, 0.028570564463734627, 0.009835279546678066, -0.012426646426320076, 0.007690700236707926, 0.013808708637952805, 0.059095077216625214, -0.0033598411828279495, -0.002545198891311884, 0.050993334501981735, 0.06433738768100739, -0.0052035837434232235, 0.008405559696257114, -0.007416670676320791, 0.03126320242881775, -0.032740578055381775, 0.02020670473575592, -0.005340598523616791, -0.0017797030741348863, 0.0239835474640131, -0.014178053475916386, 0.028093991801142693, 0.07286804169416428, -0.03042919933795929, 0.002874332247301936, 0.01880081370472908, -0.028713535517454147, -0.04260564595460892, 0.020945392549037933, -0.02244659885764122, -0.004762753378599882, -0.023602288216352463, 0.021386222913861275, 0.03717271238565445, 0.023626117035746574, 0.046894803643226624, -0.0015726916026324034, 0.05146990716457367, 0.0070473263040184975, -0.02339974418282509, -0.0019435251597315073, 0.022839771583676338, -0.003633870743215084, 0.007470285054296255, 0.01507162768393755, 0.0202186182141304, 0.03152531757950783, -0.028856508433818817, -0.009978251531720161, -0.01199773047119379, -0.019718216732144356, -0.034146469086408615, 0.04405919462442398, 0.0006690641166642308, 0.010794383473694324, -0.013939766213297844, -0.014142310246825218, 0.0017648101784288883, -0.011259042657911777, -0.002012032549828291, 0.018002552911639214, -0.013761051930487156, 0.008328116498887539, -0.03624339401721954, 0.024591177701950073, 0.014690369367599487, -0.0033300553914159536, -0.03252612054347992, 0.007428585086017847, -0.004152144305408001, 0.03157297521829605, -0.025496667250990868, 0.007172426674515009, -0.002035861136391759, 0.02247042767703533, -0.005263155326247215, 0.014845255762338638, 0.00479849660769105, 0.0035921705421060324, 0.032740578055381775, -0.027545932680368423, -0.012438560836017132, 0.029070965945720673, -0.004744882229715586, 0.01177731528878212, -0.04903938248753548, 0.01866975612938404, 0.0353379026055336, 0.021695995703339577, -0.010013994760811329, -0.013415535911917686, -0.018896127119660378, -0.03069131448864937, -0.00994846597313881, 0.03662465140223503, 0.058570846915245056, -0.007541771046817303, 0.026688100770115852, -0.00890000443905592, 0.02876119315624237, 0.00662436755374074, 0.022911258041858673, -0.02256574109196663, -0.0005960888229310513, -0.006296723615378141, -0.01906292885541916, -0.03069131448864937, 0.04034192115068436, 0.0017469386802986264, -0.03235932067036629, 0.049706585705280304, 0.06834059953689575, 0.013808708637952805, 0.039484091103076935, -0.03059600107371807, -0.009293178096413612, -0.004727010615170002, 0.0037738641258329153, -0.014142310246825218, 0.008870218880474567, -0.004762753378599882, -0.013355964794754982, -0.06977032124996185, 0.022506169974803925, 0.0092693492770195, -0.020814334973692894, -0.010484610684216022, -0.015452886931598186, -0.005459741689264774, -0.008149402216076851, 0.05985759571194649, -0.028093991801142693, -0.005629521328955889, -0.040889982134103775, -0.008375774137675762, -0.00013673555804416537, 0.057713016867637634, 0.04372559115290642, -0.04641823098063469, 0.014332939870655537, 0.0304530281573534, -0.005346555728465319, -0.04780029505491257, 0.03412264212965965, 0.023316344246268272, 0.04053255170583725, -0.009543378837406635, 0.013725308701395988, 0.042581815272569656, 0.009346792474389076, -0.02511540800333023, 0.04513148218393326, 0.012367075309157372, 0.02286360040307045, 0.025877926498651505, 0.014487825334072113, -0.011253084987401962, -0.017895324155688286, 0.038078200072050095, -0.02623535506427288, -0.00473594618961215, -0.026545127853751183, -0.03633870929479599, 0.028951823711395264, 0.03979386389255524, 0.0009263391839340329, -0.014988227747380733, 0.009078719653189182, -0.01582222990691662, 0.010979055427014828, -0.007887287065386772, -0.01753789372742176, -0.002752210246399045, -0.02329251542687416, -0.021672166883945465, 0.014952484518289566, -0.013927851803600788, -0.008715332485735416, 0.05971462279558182, 0.01038929633796215, 0.02330443076789379, -0.03405115753412247, -0.027283815667033195, 0.04305839166045189, 0.005004018545150757, -0.0022130869328975677, 0.015333742834627628, 0.040484894067049026, 0.0031960192136466503, -0.024174176156520844, -0.011533072218298912, 0.022529998794198036, 3.316000220365822e-05, 0.007702614646404982, 0.005173798184841871, 0.0022130869328975677, -0.019968418404459953, 0.01074076909571886, 0.026878729462623596, 0.005307834129780531, -0.019420359283685684, -0.007106897886842489, 0.025449009612202644, -0.035957448184490204, -0.01382062304764986, 0.03884071856737137, -0.03886454552412033, -0.05399574711918831, 0.012795991264283657, 0.016918350011110306, -0.04682331904768944, -0.013379792682826519, -0.026330670341849327, -0.00988293718546629, 0.027665074914693832, 0.02036159113049507, -0.021695995703339577, 0.002914543030783534, -0.004706160631030798, 0.055044207721948624, -0.03269292414188385, 0.00960294995456934, -0.014058910310268402, -0.004280223045498133, -0.025139236822724342, 0.01016888115555048, 0.02902330830693245, -0.008036215789616108, 0.016751548275351524, -0.0137491375207901, -0.030214741826057434, -0.002569027477875352, 0.03550470620393753, 0.04196227341890335, -0.014261453412473202, 0.029904969036579132, -0.03741099685430527, 0.033336296677589417, -0.014225710183382034, 0.008054086938500404, -0.012772162444889545, 0.016858777031302452, -0.018038297072052956, 0.03917431831359863, 0.0013344050385057926, 0.00393172912299633, 0.05218476802110672, 0.0021147937513887882, -0.006201408803462982, -0.010627582669258118, -0.01975395902991295, -0.02471032179892063, 0.046060800552368164, -0.04849132522940636, 0.008757032454013824, 0.00975187961012125, -0.03071514330804348, 0.014916741289198399, 0.021255165338516235, -0.04320136085152626, -0.01794298179447651, 0.02592558227479458, -0.0015071628149598837, 0.0004966786364093423, 0.04353496432304382, -0.02652129903435707, -0.009662522003054619, 0.02036159113049507, 0.0061358800157904625, -0.025973239913582802, -0.022935086861252785, 0.005263155326247215, 0.008542574942111969, 0.005832064896821976, 0.01478568371385336, 0.011372228153049946, -0.023506972938776016, 0.02227979712188244, 0.009126377291977406, 0.03285972401499748, -0.002921989420428872, 0.03042919933795929, 0.02175556682050228, 0.029142452403903008, 0.02637832798063755, 0.010681197047233582, 0.0224585123360157, 0.018622098490595818, -0.02088582143187523, -0.005668242461979389, -0.0004929554415866733, 0.04293924570083618, -0.07124769687652588, 0.04903938248753548, 0.030262399464845657, 0.011676044203341007, -0.030119426548480988, -0.02904713712632656, 0.022637227550148964, 0.016620490700006485, -0.02230362594127655, -0.04022277891635895, -0.028141647577285767, -0.0007759207510389388, 0.02355463057756424, -0.008947662077844143, -0.004041936714202166, 0.00043152214493602514, 0.02049264870584011, -0.021672166883945465, -0.019563330337405205, -0.017180465161800385, 0.02930925227701664, -0.021517280489206314, -0.03576682135462761, -0.01423762459307909, 0.0035981277469545603, -0.028522906824946404, 0.018300412222743034, -0.01570308767259121, 0.035409390926361084, -0.030905773863196373, 0.03319332376122475, -0.05432934686541557, 0.004569145850837231, -0.03517110273241997, 0.029213938862085342, 0.013070020824670792, -0.019182071089744568, -0.009281263686716557, -0.01452356856316328, 0.009942508302628994, -0.02230362594127655, -0.011014798656105995, -0.006856697145849466, -0.051279276609420776, -0.04701394587755203, 0.015655430033802986, -0.0010358020663261414, 0.029666682705283165, 0.003130490193143487, 0.058856792747974396, 0.008971490897238255, 0.016799205914139748, 0.023912061005830765, 0.021493451669812202, 0.028570564463734627, 0.015667345374822617, 0.008250674232840538, 0.0367676243185997, 0.022255968302488327, 0.032621435821056366, -0.03195423260331154, -0.020373504608869553, -0.0056027136743068695, 0.0006344380672089756, -0.00286092865280807, -0.01810978166759014, -0.042867761105298996, 0.0095969932153821, -0.007833672687411308, -0.006284809205681086, -0.015893716365098953, 0.004161079879850149, -0.007696657441556454, 0.024221833795309067, -0.07115238159894943, -0.002354569500312209, 0.01276024803519249, 0.005641435272991657, 0.0024498840793967247, 0.0033300553914159536, 0.024877121672034264, -0.005298898555338383, 0.029118623584508896, -0.013260649517178535, 0.016894521191716194, -0.0010186752770096064, 0.0167038906365633, -0.05342385917901993, -0.041723985224962234, -0.047895606607198715, 0.009442106820642948, 0.036386363208293915, 0.03159680590033531, -0.02119559422135353, 0.020135218277573586, 0.0010328234639018774, -0.004619781393557787, -0.03955557569861412, 0.03366989642381668, 0.019277386367321014, -0.006535010412335396, -0.04615611582994461, -0.029833482578396797, -0.04231970012187958, 0.0013277032412588596, 0.03834031522274017, -0.013558507896959782, -0.005727814510464668, -0.025067750364542007, 0.013558507896959782, 0.005671221297234297, -0.017335351556539536, 0.01234324648976326, -0.016465604305267334, 0.01473802700638771, -0.02552049607038498, -0.011699872091412544, -0.045226797461509705, 0.010550139471888542, 0.01276024803519249, 0.010615668259561062, 0.0033628197852522135, 0.04801475256681442, -0.0005011465400457382, 0.034432414919137955, 0.0361480787396431, 0.030905773863196373, 0.030119426548480988, -0.0013291924260556698, 0.02807016298174858, -0.031930405646562576, 0.0609060563147068, -0.022267883643507957, -0.016477519646286964, 0.03266909345984459, 0.005227412562817335, 0.015035885386168957, -0.028236962854862213, -0.013379792682826519, 0.01754980906844139, 0.013677651062607765, 0.007470285054296255, 0.010180795565247536, 0.011670086532831192, -0.02818930521607399, -0.005951208062469959, 0.009799536317586899, -0.016727719455957413, 0.023328259587287903, 0.008208973333239555, -0.011211385019123554, -0.0026479598600417376, 0.0330980084836483, 0.017704695463180542, 0.039341118186712265, 0.025615809485316277, 0.055044207721948624, -0.03319332376122475, 0.013570422306656837, 0.02451969124376774, -0.008739161305129528, 0.0073570990934967995, 0.01291513442993164, -0.04363027960062027, -0.009459977969527245, 0.04293924570083618, -0.0066422391682863235, 0.02678341418504715, 0.020123304799199104, -0.01128882821649313, 0.01821701042354107, -0.023733345791697502, 0.0195037592202425, 0.022375112399458885, 0.007607299834489822, 0.024638835340738297, -0.015464800409972668, -0.025973239913582802, -0.07191489636898041, -0.04072318226099014, -0.013093848712742329, -0.008864262141287327, -0.02158876694738865, 0.019742045551538467, 0.024472035467624664, 0.012295588850975037, 0.016298804432153702, -0.002147558145225048, 0.013320221565663815, -0.013939766213297844, -0.0095969932153821, 0.04401153698563576, -0.02088582143187523, 0.05780833214521408, -0.011181599460542202, 0.006463524419814348, 0.029833482578396797, 0.007410713471472263, 0.011056498624384403, 0.053948089480400085, 0.051136307418346405, 0.036672309041023254, 0.0042444802820682526, -0.029261594638228416, 0.0011832419550046325, 0.057855989784002304, -0.006963925901800394, 0.047919437289237976, -0.002211597515270114, -0.016382204368710518, -0.006749468389898539, -0.0010156966745853424, 0.00856640376150608, -0.010627582669258118, 0.043582621961832047, -0.031024916097521782, -0.007887287065386772, -0.007220084313303232, 0.01017483789473772, -0.007619214244186878, 0.011652215383946896, -0.009376578032970428, -0.029690511524677277, 0.02017096057534218, -0.012295588850975037, 0.043820906430482864, -0.0692460909485817, 0.006278852000832558, -0.02876119315624237, -0.0037947141099721193, 0.011967944912612438, -0.016858777031302452, -0.006511181592941284, -0.016501348465681076, -0.031024916097521782, -0.003806628519669175, -0.019956503063440323, 0.018002552911639214, 0.01920589990913868, -0.00042407569708302617, -0.03459921479225159, 0.027259988710284233, -0.0057367500849068165, 0.028713535517454147, -0.02244659885764122, 0.005843978840857744, 0.03073897212743759, -0.015035885386168957, -0.020861992612481117, -0.020016074180603027, 0.007273698691278696, -0.004041936714202166, -0.00498614739626646, 0.023066144436597824, -0.046656519174575806, -0.04334433376789093, 0.0030173042323440313, 0.06896014511585236, -0.008691503666341305, 0.0002150164364138618, -0.009102548472583294, 0.007857500575482845, 0.008739161305129528, -0.02176748216152191, 0.02761741727590561, 0.013594251126050949, -0.0013411068357527256, 0.004286180250346661, 0.016322633251547813, 0.036982081830501556, 0.027259988710284233, -0.010311853140592575, -0.010907569900155067, 0.03131086006760597, -0.027688903734087944, 0.0041640582494437695, -0.005662285722792149, -0.0020567113533616066, -0.020123304799199104, -0.0024364804849028587, 0.006552881561219692, 0.0010075055761262774, 0.004027043469250202, 0.023375915363430977, -0.004619781393557787, 0.015643516555428505, 0.005692071281373501, 0.036386363208293915, -0.005373362917453051, -0.021362394094467163, 0.016072431579232216, 0.016215404495596886, 0.01906292885541916, 0.011497328989207745, 0.007684743031859398, 0.025973239913582802, -0.01922972872853279, 0.004015129525214434, -0.04105678200721741, 0.003059004433453083, 0.019456101581454277, 0.0013656801311299205, -0.009853151626884937, -0.024924779310822487, -0.011467543430626392, -0.01570308767259121, 0.005614628084003925, -0.013236820697784424, 0.022506169974803925, -0.010002080351114273, 0.0010253770742565393, 0.0066481963731348515, 0.013892109505832195, -0.02482946403324604, 8.149215864250436e-05, 0.017561722546815872, -0.01807403936982155, 0.039007518440485, -0.02807016298174858, -0.005093376152217388, -0.012676847167313099, -0.04489319771528244, -0.02523455210030079, -0.03800671547651291, -0.016370289027690887, 0.04322519153356552, -0.035576190799474716, 0.010496525093913078, -0.012075173668563366, 0.021350480616092682, 0.022827856242656708, -0.01964673027396202, 0.015166942961513996, -0.0006981053156778216, 0.006022694054991007, -0.009293178096413612, -0.01234324648976326, -0.0017216207925230265, 0.01696600578725338, -0.014845255762338638, -0.008864262141287327, -0.02764124609529972, 0.026711929589509964, 0.01225984562188387, 0.012879391200840473, -0.019146328791975975, -0.002701574470847845, -0.008524703793227673, 0.02256574109196663, 0.004503617063164711, 0.0013686587335541844, -0.022923171520233154, -0.005388255696743727, -0.008137487806379795, 0.024019289761781693, 0.01683494821190834, -0.020099475979804993, -0.03216869384050369, 0.02357845939695835, -0.012784076854586601, -0.0006359273684211075, -0.02088582143187523, 0.01029993873089552, 0.03884071856737137, 0.030238570645451546, -0.03266909345984459, -0.0015295022167265415, -0.0535668283700943, 0.028141647577285767, 0.01045482512563467, 0.013582336716353893, 0.014475911855697632, -0.016787292435765266, 0.02145770937204361, -0.007208169903606176, -0.004718075040727854, 0.010556097142398357, -0.02188662439584732, 0.019003357738256454, 0.027593588456511497, -0.0353379026055336, 0.007077112328261137, 0.0011750508565455675, -0.00579036446288228, 0.0027924212627112865, 0.00017192006635013968, -0.01781192421913147, -0.03281206637620926, 0.022387025877833366, -0.018753156065940857, 0.0037262067198753357, -0.020302018150687218, -0.024233747273683548, -0.02273254282772541, 0.023185286670923233, 0.02018287591636181, 0.0014796109171584249, -0.01740683615207672, 0.019384615123271942, -0.021267078816890717, -0.014249539002776146, 0.023769089952111244, 0.01410656701773405, 0.012533875182271004, -0.0038870503194630146, 0.018014468252658844, 0.03800671547651291, 0.005745685659348965, -0.010752683505415916, -0.0022726585157215595, 0.011878587305545807, 0.01951567269861698, 0.055759064853191376, 0.002303933724761009, -0.06238343566656113, -0.00588865764439106, 0.027117015793919563, -0.03717271238565445, 0.007023497950285673, 0.03383670002222061, 0.017871495336294174, -0.002913053845986724, 0.026283012703061104, 0.019265472888946533, -0.007214127108454704, -0.010043780319392681, -0.02454352006316185, -0.0011757954489439726, 0.017990639433264732, 0.025901753455400467, 0.03965089097619057, -0.014606969431042671, 0.02202959731221199, 0.03300269693136215, 0.028022505342960358, -0.030405370518565178, 0.012426646426320076, 0.016036689281463623, 0.00882851891219616, -0.018062124028801918, 0.03448007255792618, -0.021505367010831833, 0.008679589256644249, 0.020528391003608704, -0.021827053278684616, 0.02243468351662159, 0.00030530471121892333, -0.014225710183382034, -0.007017540745437145, -0.011938159354031086, -0.019003357738256454, -0.055187176913022995, -0.014749941416084766, -0.023876318708062172, -0.004167037084698677, -0.008363859727978706, -0.04022277891635895, 0.00691031152382493, -0.023733345791697502, 0.002729870844632387, 0.04679948836565018, 0.011610515415668488, -0.01544097252190113, 0.016477519646286964, -0.008977447636425495, 0.0066481963731348515, -0.013439364731311798, -0.021088365465402603, 0.016858777031302452, -0.013415535911917686, 0.01129478495568037, -0.0301432553678751, -0.004604888614267111, -0.021004963666200638, -0.016334546729922295, 0.014690369367599487, 0.00027198181487619877, -0.011479456909000874, -0.005590799730271101, -0.006832868326455355, 0.06076308339834213, 0.011241170577704906, 0.0006441184668801725, 0.021088365465402603, 0.040937639772892, 0.005036782938987017, -0.008584274910390377, -0.0028028462547808886, 0.010264195501804352, 0.008846390061080456, 0.01024036668241024, 0.0330980084836483, -0.0010075055761262774, 0.036672309041023254, 0.006368209607899189, 0.004762753378599882, 0.007815800607204437, 0.0055550565011799335, -0.02048073336482048, 0.014475911855697632, 0.005295919720083475, -0.028665879741311073, -0.021517280489206314, 0.012390903197228909, -0.0028892250265926123, -0.013165335170924664, -0.025711124762892723, -0.014201881363987923, 0.00010853210551431403, 0.025329865515232086, 0.00826258771121502, 0.026330670341849327, 0.01782383769750595, -0.012015602551400661, 0.0092693492770195, -0.02299465797841549, 0.0092693492770195, -0.012617276050150394, 0.0032406977843493223, 0.03619573637843132, 0.014023167081177235, 0.004214694257825613, -0.01905101351439953, -0.01416613906621933, 0.03643402084708214, -0.0013545104302465916, 0.0011988794431090355, -0.014428254216909409, -0.03426561504602432, 0.025901753455400467, 0.018062124028801918, -0.015679258853197098, -0.014880998991429806, -0.01093735545873642, -0.009555293247103691, -0.01353467907756567, -0.017776180058717728, 0.003809607122093439, 0.02092156372964382, -0.03138234466314316, 0.018455298617482185, 0.01783575303852558, 0.0021147937513887882, 0.008137487806379795, -0.005248262546956539, -0.00988293718546629, -0.007559642661362886, -0.030405370518565178, -0.03321715444326401, -0.007321355864405632, -0.008161316625773907, -0.006963925901800394, -0.004610845819115639, -0.03464687243103981, -0.03164445981383324, -0.03169211745262146, 0.014440168626606464, 0.015786487609148026, 0.03181126341223717, 0.0005115715321153402, -0.008018344640731812, 0.035409390926361084, -4.230518243275583e-05, 0.014225710183382034, 0.004655524622648954, -0.013487022370100021, 0.045369770377874374, -0.02471032179892063, -0.008208973333239555, 0.0028311428613960743, -0.022196397185325623, -0.011866672895848751, 0.0009300624369643629, -0.010579925030469894, 0.02412651851773262, 0.0322878360748291, -0.0012606850359588861, 0.026711929589509964, -0.013093848712742329, 0.0079945158213377, -0.0015190771082416177, -0.010204624384641647, -0.001805021078325808, -0.007887287065386772, 0.013653822243213654, -0.01740683615207672, -0.00997229479253292, 0.0057784500531852245, -0.030667485669255257, 0.02357845939695835, 0.013641907833516598, 0.004551274236291647, -0.01136031374335289, 0.019468015059828758, 0.03903134539723396, -0.03521876037120819, -0.009674436412751675, 0.036100421100854874, -0.023221030831336975, -0.004461916629225016, 0.009728050790727139, -0.003291333792731166, -0.03378904238343239, -0.009990165941417217, -0.006850739941000938, -0.02540135197341442, -0.0005309323314577341, 0.020576048642396927, -0.013808708637952805, -0.005298898555338383, -0.0009993144776672125, 0.046918634325265884, -0.02413843385875225, 0.0020864971447736025, -0.01740683615207672, 0.016656232997775078, 0.018741242587566376, 0.0017365136882290244, 0.008620018139481544, -0.037506312131881714, -0.016334546729922295, 0.016656232997775078, 0.020004160702228546, -0.01478568371385336, 0.01078842580318451, 0.013582336716353893, 0.01906292885541916, -0.02062370628118515, -0.005525270942598581, -0.015631601214408875, 0.016036689281463623, 0.004476809408515692, 0.01709706336259842, 0.014618883840739727, 0.024900950491428375, 0.03519493341445923, -0.011110113002359867, 0.026878729462623596, -0.010258238762617111, -0.027164673432707787, 0.0055818636901676655, -0.004840196575969458, 0.003273462178185582, 0.00047024371451698244, -0.017156636342406273, -0.043129876255989075, -0.01625114679336548, 0.015107370913028717, 0.03888837620615959, 0.0015280129155144095, -0.004265330266207457, -0.0019211857579648495, -0.026044726371765137, -0.034003499895334244, -0.020981136709451675, 0.026902558282017708, -0.018705498427152634, -0.011652215383946896, -0.019718216732144356, -0.01684686355292797, -9.559388854540884e-05, 0.019575245678424835, 0.019670559093356133, 0.019527588039636612, 0.00848300289362669, -0.009346792474389076, -0.017716608941555023, 0.03545704856514931, -0.009626778773963451, -0.002396269701421261, -0.016620490700006485, -0.015238428488373756, -0.025973239913582802, 0.030238570645451546, -0.028403762727975845, 0.022768285125494003, 0.006451610010117292, -0.0032138905953615904, 0.004661481827497482, -0.02339974418282509, -0.02005181834101677, 0.038769230246543884, -0.030905773863196373, 0.014189967885613441, -0.012378989718854427, 0.009781665168702602, -0.006707767955958843, 0.02818930521607399, 0.021004963666200638, 0.009525506757199764, -0.01851486973464489, 0.02664044313132763, 0.04965892806649208, 0.011181599460542202, -0.030214741826057434, -0.0364578515291214, 0.038078200072050095, -0.007750271819531918, -0.039221975952386856, -0.010210581123828888, 0.007786015048623085, 0.0071545555256307125, -0.026425985619425774, -0.0031692117918282747, 0.028713535517454147, 0.03336012363433838, 0.016501348465681076, 0.012462389655411243, 0.019610987976193428, 0.018765069544315338, -0.01115777064114809, 0.004569145850837231, -0.0007420394103974104, -0.018717413768172264, 0.01809786818921566, -0.007547728251665831, 0.025067750364542007, -0.032073378562927246, -0.005593778099864721, 0.019110586494207382, -0.0024498840793967247, 0.008095787838101387, -0.011253084987401962, -0.01713280752301216, -0.0005294430302456021, 0.01628688909113407, 0.0008347477996721864, -0.0015786488074809313, -0.0022369155194610357, 0.008399602957069874, 0.005447827745229006, 0.004673396237194538, 0.027665074914693832, -0.009829322807490826, 0.009632736444473267, -0.06214514747262001, 0.019873103126883507, -0.006403952371329069, 0.009245520457625389, 0.008751075714826584, -0.002400737488642335, 0.01403508149087429, 0.009346792474389076, 0.012021559290587902, -0.004819346591830254, 9.526810026727617e-05, -0.024066947400569916, 0.03848328813910484, 0.006386081222444773, 0.018836556002497673, -0.006666067987680435, -0.02723615989089012, -0.0009308070875704288, -0.012807904742658138, 0.00012742748367600143, 0.015607772395014763], "id": 7}, {"title": "D. P. Todd Secondary School", "text": "D.P. Todd Secondary School is a public high school in Prince George, British Columbia and is part of School District 57 Prince George.", "vector": [0.030391348525881767, 0.004553459584712982, -0.024085406213998795, 0.015098313800990582, 0.03978285938501358, 0.011728154495358467, 0.01950198784470558, 0.003330840729176998, -0.026077544316649437, 0.07231613248586655, 0.022123223170638084, -0.030181650072336197, -0.006545598153024912, 0.016296593472361565, -0.06530620157718658, 0.005856588017195463, -0.0421794168651104, 0.023201674222946167, 0.050327714532613754, -0.044366274029016495, 0.0013555529294535518, -0.042329199612140656, 0.000637053744867444, 0.01837860234081745, 0.014409303665161133, 0.019531946629285812, -0.03978285938501358, -0.009286661632359028, -0.0006927549839019775, 0.0319940447807312, -0.013218513689935207, 0.025208791717886925, 0.03714664652943611, -0.042538899928331375, 0.01996632106602192, 0.009354064241051674, 0.013188556768000126, 0.0040329573675990105, -0.035798583179712296, -0.015652518719434738, -0.010290219448506832, -0.026437027379870415, -0.03828500956296921, 0.00985584408044815, 0.023830771446228027, -0.013757739216089249, -0.01950198784470558, -0.03133499249815941, -0.0061187115497887135, 0.023725921288132668, -0.029267961159348488, -0.04835055395960808, -0.026287242770195007, 0.028399208560585976, -0.011143993586301804, 0.020610395818948746, 0.05272427201271057, 0.11449554562568665, -0.027800070121884346, -0.01785435527563095, -0.051975347101688385, 0.021763740107417107, 0.050717152655124664, -0.021104685962200165, 0.05700811743736267, 0.0827411562204361, 0.0496087446808815, 0.006466961465775967, -0.0017440575174987316, -0.00650815200060606, -0.011039144359529018, 0.0012460227590054274, 0.054641515016555786, 0.02694629691541195, 0.035139527171850204, 0.01610187254846096, 0.006339644081890583, 0.03193413093686104, -0.013226003386080265, -0.024549739435315132, 0.006047563627362251, -0.002681148936972022, 0.02522377111017704, 0.02627226524055004, 0.010177881456911564, -0.018992720171809196, 0.00450103497132659, -0.04802102595567703, 0.031275078654289246, 0.027350716292858124, 0.01673096790909767, 0.012664309702813625, 0.028159553185105324, 0.013989905826747417, -0.02705114521086216, 0.02574801817536354, 0.0036322828382253647, -0.024549739435315132, 0.03591841086745262, -0.009421467781066895, 0.04101109504699707, 0.03370159491896629, 0.002499534748494625, 0.01610187254846096, 0.004568438045680523, -0.0030368880834430456, 0.016790883615612984, -0.008972113020718098, 0.02519381418824196, 0.027066124603152275, -0.03094555251300335, 0.06626482307910919, 0.0041902316734194756, 0.025388533249497414, -0.004766903351992369, 0.08028468489646912, -0.023201674222946167, 0.010604768060147762, -0.016895731911063194, -0.046643003821372986, -0.0006342452834360301, -0.037026818841695786, -0.044995371252298355, -0.03591841086745262, -0.018917826935648918, -0.07423337548971176, -0.024325061589479446, 0.03543909639120102, 0.014656448736786842, -0.012896476313471794, 0.005085195880383253, -0.01740500144660473, -0.023441331461071968, 0.03325223922729492, 0.00502528203651309, -0.0031436097342520952, 0.010664681904017925, 0.006803977303206921, -0.003473136341199279, 0.03232357278466225, -0.01863323710858822, 0.046223606914281845, -0.008987091481685638, -0.042538899928331375, 0.010687150061130524, 0.0032241190783679485, 0.025598231703042984, 0.08004502952098846, 0.05673850327730179, -0.012701756320893764, -0.01526307687163353, 0.04391692206263542, -0.0020108616445213556, 0.01683581806719303, -0.008792371489107609, 0.0007812216645106673, -0.027725176885724068, 0.03957315906882286, -0.05077706649899483, 0.017569763585925102, 0.0015895918477326632, 0.03214383125305176, 0.029477659612894058, -0.008268124423921108, -0.03600827977061272, -0.0007082015508785844, 0.009848354384303093, 0.008642585948109627, 0.05272427201271057, -0.013218513689935207, 0.031035423278808594, 0.02877367101609707, 0.0367572046816349, -0.0033008838072419167, -0.03888414800167084, -0.051346249878406525, 0.00676278630271554, -0.03507961332798004, 0.006759041920304298, -0.0005677782464772463, -0.009114408865571022, 0.009136876091361046, 0.01410224474966526, -0.08340021222829819, -0.019337225705385208, 0.001917246263474226, 0.06147170811891556, 0.039633072912693024, -0.02389068529009819, -0.028758693486452103, 0.0014407431008294225, 0.004377462435513735, 0.01026026252657175, 0.0027017444372177124, 0.03603823855519295, -0.013817653059959412, -0.022302964702248573, -0.017375044524669647, 0.0681820660829544, 0.02684144675731659, -0.005317362491041422, -0.018228817731142044, -0.017105430364608765, 0.004703244660049677, 0.05554022639989853, 0.028788650408387184, 0.01730015128850937, 0.035798583179712296, -0.005856588017195463, -0.01568247564136982, 0.058565881103277206, 0.009211769327521324, 0.018183881416916847, 0.03786561265587807, 0.011555901728570461, 0.04098113626241684, 0.011533434502780437, 0.021913524717092514, -0.004935411270707846, -0.016446378082036972, 0.018198860809206963, 0.05377276614308357, 0.021913524717092514, -0.001088748686015606, -0.018543366342782974, 0.006365856621414423, -0.0022823468316346407, 0.02365102991461754, -0.018947783857584, -0.025238748639822006, -0.03340202197432518, 0.007594092283397913, 0.01312115415930748, -0.0015736771747469902, -0.030601046979427338, 0.013495615683495998, 0.007976043969392776, 0.02431008219718933, -0.019801558926701546, 0.005381021182984114, -0.011818025261163712, -0.022707384079694748, -0.02255759947001934, -0.029208047315478325, 5.447254079626873e-05, 0.046613048762083054, -0.007953575812280178, 0.054851215332746506, 0.026227328926324844, 0.011810536496341228, 0.0019284801091998816, 0.001770269824191928, 0.0170904528349638, -0.018468473106622696, 0.004564693663269281, 0.028968391939997673, -0.02263249270617962, -0.011391138657927513, -0.004721967503428459, 0.007268310524523258, -0.0025557042099535465, -0.0027953600510954857, -0.03978285938501358, 0.04718223214149475, -0.007796301972121, 0.01061225775629282, -0.033491894602775574, 0.00029699530568905175, 0.006343388929963112, 0.017270194366574287, -0.002954506315290928, 0.0008359867497347295, -0.025628188624978065, -0.032713014632463455, -0.001276915892958641, -0.02995697222650051, -0.0004701840225607157, 0.00201273406855762, -0.007871194742619991, 0.020370740443468094, 0.004950389731675386, -0.014776276424527168, -0.03939341753721237, -0.026466984301805496, 0.0030705896206200123, -0.07189673185348511, -0.031484778970479965, 0.06147170811891556, 0.08232175558805466, -0.008178253658115864, -0.011735644191503525, -0.016401441767811775, -0.015697453171014786, -0.028923455625772476, 0.04062165319919586, 0.01989142969250679, -0.00903202686458826, -0.05823635309934616, -0.006466961465775967, -0.008425398729741573, -0.0023703454062342644, 0.007459286134690046, 0.012372229248285294, -0.02501407079398632, 0.001840481418184936, 0.002048308029770851, -0.03034641221165657, -0.017390022054314613, -0.010964252054691315, -0.041520364582538605, 0.02402549237012863, -0.0018442260334268212, -0.03573866933584213, 0.009286661632359028, 0.008065914735198021, -0.07501225918531418, -0.022782277315855026, 0.05985403060913086, 0.020999837666749954, -0.020355762913823128, 0.01968173123896122, 0.008328038267791271, -0.0186631940305233, -0.002608128823339939, 0.0982588678598404, -0.025208791717886925, -0.01538290549069643, -0.004665798507630825, 0.04077143967151642, -0.020505547523498535, -0.0021381787955760956, -0.023800814524292946, -0.004841795656830072, -0.027770113199949265, 0.05539043992757797, -0.01884293556213379, -0.018333666026592255, -0.04844042286276817, -0.014117223210632801, 0.028683800250291824, 0.013465658761560917, 0.030616024509072304, 0.03912380710244179, 0.012993836775422096, -0.038404837250709534, 0.003435690188780427, 0.010402558371424675, -0.021074729040265083, -0.03379146382212639, -0.04565442353487015, 0.0004891412099823356, -0.012057681567966938, 0.039483290165662766, 0.02493917942047119, 0.025478404015302658, -0.044156577438116074, -0.016551226377487183, -0.04155031964182854, -0.017839375883340836, -0.06542602926492691, 0.027380673214793205, 0.003694069106131792, -0.05026780068874359, 0.010672171600162983, 0.02694629691541195, -0.004736945964396, 0.031005466356873512, 0.06518637388944626, 0.009174322709441185, 0.012551971711218357, -0.00505149457603693, 0.02648196369409561, 0.02582290954887867, -0.00927917193621397, -0.024759437888860703, 0.013697825372219086, 0.0033907548058778048, -0.0029470170848071575, 0.00426137913018465, -0.013555529527366161, -0.0105448542162776, 0.00033303728559985757, -0.02088000997900963, -0.00927917193621397, 0.012716734781861305, 0.005223746877163649, 0.05904519185423851, -0.010028095915913582, -0.030511176213622093, 0.006317176390439272, 0.008897220715880394, -0.027904920279979706, 0.012162530794739723, 0.0020108616445213556, 0.019621817395091057, 0.035978324711322784, -0.049908313900232315, -0.00857518333941698, 0.009743505157530308, -0.06542602926492691, -0.04140053689479828, -0.02111966535449028, -0.06344886869192123, -0.07183682173490524, 0.05014796927571297, -0.006882614456117153, -0.016955645754933357, -0.0050065587274730206, -0.0006122456397861242, 0.07812778651714325, -0.024504803121089935, -0.025867845863103867, 0.00013878503523301333, 0.011885428801178932, 0.03274296969175339, -0.02073022536933422, -0.009668612852692604, 0.05820639804005623, -0.016790883615612984, 0.027605349197983742, 0.06458722800016403, 0.023531202226877213, -0.045624468475580215, -0.024864286184310913, 0.02887852117419243, 0.04059169813990593, 0.025688104331493378, 0.008065914735198021, 0.01575736701488495, -0.0025238748639822006, -0.021284429356455803, -0.026077544316649437, -0.050747111439704895, 0.022287987172603607, -0.025418490171432495, 0.008328038267791271, -0.04343760758638382, 0.00785621628165245, 0.016041958704590797, 0.04924926161766052, -0.06704370677471161, -0.04304816946387291, 0.022183137014508247, -0.015652518719434738, 0.03055611066520214, 0.014326921664178371, -0.02739565074443817, 0.006193603854626417, -0.027455564588308334, 0.022048331797122955, 0.022407814860343933, 0.00424640066921711, -0.031005466356873512, -0.05083698034286499, -0.001774014439433813, 0.00350871030241251, -0.009421467781066895, -0.009885801002383232, 0.002859018510207534, -0.004235167056322098, 0.027455564588308334, 0.0029788464307785034, 0.02210824564099312, -0.04002251476049423, -0.04430636018514633, 0.04349752143025398, 0.01184049341827631, 0.0011861089151352644, -0.027830027043819427, 0.013323362916707993, -0.033132411539554596, 0.025733038783073425, -0.04700249060988426, 0.05089689418673515, 0.02273734100162983, -0.007976043969392776, 0.030601046979427338, -0.03672724589705467, 0.0039730435237288475, 0.016566205769777298, 0.0034600303042680025, -0.06006372720003128, 0.03367163613438606, 0.021479148417711258, -0.008680032566189766, -0.024085406213998795, 0.006186114624142647, 0.007249587215483189, 0.010956762358546257, -0.015427840873599052, 0.02389068529009819, -0.0013415106805041432, -0.025912780314683914, -0.0496087446808815, 0.020715245977044106, -0.010117967613041401, 0.04137057811021805, -0.04283846914768219, 0.021628933027386665, 0.025807932019233704, 0.010956762358546257, 0.0021737527567893267, 0.03202400356531143, 0.00931661855429411, 0.004684521351009607, 0.0015577625017613173, -0.03630784898996353, 0.009384021162986755, -0.01800413988530636, 0.035169485956430435, 0.027800070121884346, 0.007676474284380674, -0.019816536456346512, -0.029582509770989418, -0.0036603675689548254, 0.015427840873599052, 0.02483432926237583, -0.004403674975037575, 0.0062010930851101875, -0.0027654028963297606, 0.002171880565583706, 0.050717152655124664, -0.038854192942380905, 0.029597489163279533, -0.028953412547707558, -0.018753064796328545, -0.006399557925760746, -0.00704363314434886, 0.01305375061929226, -0.01680586114525795, -0.02869877964258194, -0.003553645685315132, 0.02231794409453869, -0.029897058382630348, -0.0031286312732845545, 0.0035330504179000854, -0.0157124325633049, -0.05455164611339569, -0.008500291034579277, -0.016251657158136368, -0.003085568081587553, -0.026407070457935333, 0.0014632107922807336, -0.024055449292063713, -0.01617676578462124, -0.021374300122261047, -0.0024452379439026117, -0.03600827977061272, -0.03343198075890541, -0.008747436106204987, 0.017180323600769043, -0.0006281602545641363, -0.022362880408763885, 0.016820840537548065, 0.005328596569597721, -0.10790501534938812, -0.04697253182530403, -0.017030538991093636, 0.03214383125305176, -0.008635097183287144, 0.01628161408007145, 0.0395132452249527, -0.04289838299155235, -0.015877194702625275, -0.027919897809624672, -0.016056936234235764, -0.02368098683655262, 0.06710361689329147, 0.029267961159348488, 0.010777020826935768, 0.016925688832998276, -0.026856426149606705, 0.0055045937187969685, 0.019801558926701546, 0.06093247979879379, -0.009496360085904598, -0.0036154319532215595, -0.003452541073784232, -0.04301821067929268, -0.028354274109005928, -0.026407070457935333, 0.010222816839814186, 0.011877939105033875, -0.005036516115069389, 0.01384012121707201, 0.05557018145918846, -0.00676278630271554, 0.005871566478163004, -0.007159716449677944, 0.001088748686015606, -0.009833375923335552, -0.026466984301805496, 0.0221382025629282, 0.003040632698684931, -0.00044701420119963586, -0.027830027043819427, 0.0033870101906359196, -0.01459653489291668, -0.043587394058704376, -0.0011889173183590174, 0.017075473442673683, 0.024115363135933876, -0.01557762548327446, -0.004673287738114595, -0.07423337548971176, 0.0021063496824353933, 0.05377276614308357, -0.0002974633825942874, 0.011428584344685078, -0.03645763546228409, -0.050357669591903687, -0.024924200028181076, 0.020340783521533012, -0.009271683171391487, 0.05640897899866104, 0.025912780314683914, 0.0346602164208889, 0.052784185856580734, 0.005070217419415712, -0.02020597830414772, 0.0367572046816349, -0.03163456171751022, 0.0027335737831890583, -0.008133318275213242, 0.005014047957956791, -0.003076206659898162, 0.020969880744814873, -0.01715036667883396, -0.007796301972121, -0.03136495128273964, 0.008125828579068184, 0.019097570329904556, 0.04062165319919586, -0.013405744917690754, -0.03220374509692192, 0.007766345050185919, 0.0024920455180108547, 0.0036659843754023314, -0.04754171520471573, 0.00265680905431509, 0.038225095719099045, -0.013667868450284004, 0.021344343200325966, 0.006848912686109543, -0.01712040975689888, -0.038644492626190186, 0.032533273100852966, -0.023695964366197586, 0.0432279109954834, 0.03855462372303009, -0.012214954942464828, 0.008814838714897633, -0.00425388989970088, 0.020161041989922523, 0.028998348861932755, -0.0005935225053690374, 0.040891267359256744, -0.023441331461071968, 0.005714292172342539, 0.02634715661406517, -0.0538925938308239, 0.0047294567339122295, -0.009384021162986755, 0.019846493378281593, 0.0011964065488427877, -0.013323362916707993, -0.018094010651111603, -0.020011257380247116, 0.013458169996738434, 0.047062404453754425, -0.04595399647951126, -0.019846493378281593, 0.01008801069110632, -0.0226624496281147, -0.013293405994772911, -0.03235353156924248, -0.030511176213622093, -0.06470706313848495, -0.03672724589705467, 0.04367726668715477, 0.002121328143402934, 0.004886731039732695, 0.01677590422332287, 0.028159553185105324, 0.04565442353487015, 0.0016504419036209583, -0.00477064773440361, -0.0073357135988771915, -0.022812234237790108, 0.029178090393543243, 0.0034076054580509663, -0.023321501910686493, 0.025942737236618996, 0.007302011828869581, -0.015225631184875965, 0.022153180092573166, 0.007373159751296043, -0.025568274781107903, -0.037895567715168, -0.048859819769859314, 0.02407042682170868, -0.007069845218211412, -0.03543909639120102, 0.010425026528537273, 0.040082428604364395, -0.015173206105828285, -0.008477822877466679, 0.009324107319116592, 0.01638646423816681, -0.028848564252257347, -0.013944970443844795, 0.015547668561339378, -0.006126200780272484, 0.03567875176668167, 0.02799479104578495, 0.0336117222905159, -0.02168884687125683, -0.03615806624293327, -0.01082195620983839, 0.016641097143292427, 0.03633780777454376, 0.01897774264216423, -0.022228073328733444, 0.030825724825263023, -0.01701555959880352, 0.026332179084420204, 0.020445633679628372, 0.002404046943411231, -0.029672380536794662, 0.0025032793637365103, -0.036217980086803436, 0.003330840729176998, -0.004688266199082136, 0.0063958135433495045, 0.031454820185899734, 0.010425026528537273, -0.015075846575200558, 0.017839375883340836, 0.03481000289320946, 0.005912757478654385, 0.05428203195333481, -0.02705114521086216, 0.01792924851179123, 0.03861453756690025, 0.02621234953403473, 0.012372229248285294, 0.02174876071512699, 0.032083917409181595, -0.02757539227604866, -0.017794441431760788, -0.0033233514986932278, -0.01683581806719303, 0.028084661811590195, 0.008305570110678673, -0.017479892820119858, -0.006107477471232414, -0.009091940708458424, -0.030406326055526733, 0.013443191535770893, 0.030645981431007385, -0.005766717251390219, 0.031874217092990875, 0.010372601449489594, 0.050537411123514175, -0.0066729155369102955, -0.011436074040830135, -0.0037240260280668736, 0.014881125651299953, 0.026676682755351067, 0.006687893997877836, 0.02386072836816311, 0.022228073328733444, 0.041310664266347885, -0.0037146646063774824, 0.036996860057115555, 0.025103943422436714, 0.045834168791770935, -0.012716734781861305, -0.024789394810795784, -0.02606256492435932, 0.011877939105033875, -0.0651264563202858, 0.012477078475058079, 0.022752320393919945, -0.0016822712495923042, -0.01852838695049286, 0.03325223922729492, 0.04289838299155235, -0.0011533434735611081, -0.020535504445433617, -0.002471450250595808, 0.0067328293807804585, 0.01774950511753559, 0.0020164786837995052, -0.00980341900140047, -0.010267752222716808, -0.007642772514373064, 0.04367726668715477, -0.003767089219763875, -0.029582509770989418, 0.024444889277219772, -0.004987835884094238, 0.04143049195408821, -0.0056955693289637566, 0.002171880565583706, 0.009376532398164272, 0.001238533528521657, -0.00650066277012229, -0.01887289248406887, -0.01285903062671423, 0.03235353156924248, -0.05350315198302269, -0.028009768575429916, -0.031035423278808594, -0.011293778195977211, -0.053203582763671875, 0.024190254509449005, -0.01876804232597351, -0.018678171560168266, 0.008717479184269905, 0.012791627086699009, -0.042568858712911606, -0.0075641353614628315, -0.007197162602096796, 0.014439260587096214, 0.018079033121466637, 0.0341809056699276, -0.021359320729970932, 0.0004044191155117005, 0.06231050193309784, 0.026856426149606705, 0.015300523489713669, 0.007238353136926889, 0.0016504419036209583, 0.024040469899773598, 0.0448455885052681, 0.015532690100371838, 0.005837864708155394, 0.0004947581328451633, 0.00528740556910634, -0.017030538991093636, 0.00362292118370533, 0.0006089690723456442, -0.012948901392519474, 0.03606819361448288, -0.029732294380664825, -0.0023104315623641014, -0.014409303665161133, 0.0032915223855525255, 0.020146064460277557, 0.018258774653077126, 0.018573323264718056, -0.014027352444827557, 0.03600827977061272, -0.018648214638233185, 0.02634715661406517, 0.01203521341085434, 0.0362778939306736, -0.021044772118330002, -0.0162366796284914, -0.004231422208249569, -0.03000190667808056, -0.014162158593535423, -0.014469217509031296, 0.008006000891327858, 0.020760182291269302, 0.05736760050058365, 0.008650075644254684, 0.0170455165207386, 0.001579294097609818, -0.033132411539554596, 0.017315130680799484, 0.021074729040265083, 0.003976787906140089, -0.012027724646031857, -0.015337970107793808, -0.007938597351312637, -0.04667296260595322, 0.035558924078941345, 0.001041004783473909, -0.003048121929168701, -0.023725921288132668, -0.008410420268774033, 0.01531550195068121, 0.0058640772476792336, -0.013892545364797115, -0.007773834280669689, 0.017030538991093636, 0.0023834516759961843, -0.012424654327332973, 0.013465658761560917, 0.00479686027392745, 0.010132946074008942, 0.010582299903035164, 0.041730061173439026, 0.026811489835381508, 0.002840295433998108, 0.028923455625772476, -0.021419234573841095, -0.0050814514979720116, 0.016041958704590797, -2.5071411073440686e-05, 0.03774578496813774, 0.02634715661406517, 0.06123204901814461, 0.0010999825317412615, 0.014356878586113453, 0.038225095719099045, -0.02098485827445984, 0.021988417953252792, 0.025628188624978065, -0.0319940447807312, -0.02642204985022545, -0.012447121553122997, -0.0011926619336009026, -0.004744435660541058, 0.03430073335766792, 0.004268868360668421, -0.004340016283094883, 0.030256541445851326, -0.06213076040148735, -0.009706058539450169, -0.026302222162485123, 0.020325805991888046, -0.008867263793945312, -0.005343575030565262, 0.03244340047240257, 0.02216815948486328, 0.019846493378281593, 0.029163112863898277, -0.011997767724096775, 0.007474264595657587, -0.018932806327939034, 0.01992138661444187, 0.020220955833792686, 0.01436436828225851, 0.02224305085837841, -0.01512078195810318, -0.010207838378846645, -0.021808676421642303, 0.04238911718130112, 0.01792924851179123, 0.01059727929532528, -0.02007117122411728, 0.005448424257338047, 0.017674613744020462, -0.017419978976249695, 0.024819351732730865, 0.01855834387242794, -0.029447702690958977, 0.031904175877571106, -0.06416783481836319, -0.07249587029218674, 0.002304814523085952, 0.02171880379319191, 0.012836562469601631, -0.01733010821044445, 0.03798544034361839, 0.009548785164952278, -0.023021932691335678, -0.006223560776561499, 0.01008801069110632, -0.027455564588308334, -0.008874752558767796, 0.014843679964542389, 0.003744621528312564, -0.02652689814567566, -0.02336643822491169, 0.004066659137606621, 0.004411164205521345, -0.022962018847465515, -0.0085227582603693, -0.004366228822618723, 0.03406107798218727, -0.005212513264268637, 0.05940467491745949, -0.013967438600957394, 0.00679648807272315, -0.023411372676491737, -0.0054297009482979774, 0.025762995705008507, 0.02098485827445984, 0.019831515848636627, 0.002068903297185898, 0.01691071130335331, 0.013795185834169388, 0.029807187616825104, 0.03978285938501358, -0.002639958169311285, -0.01157836988568306, -0.01255946047604084, 0.021988417953252792, -0.002812210703268647, -0.015352948568761349, 0.040681567043066025, -0.040471870452165604, -0.013413234613835812, -0.017839375883340836, 0.0031922897323966026, 0.00805093627423048, -0.015652518719434738, -0.01800413988530636, -0.035798583179712296, 0.007268310524523258, 0.0038494709879159927, -0.006010117474943399, 0.010162902995944023, 0.005905268248170614, -0.016656076535582542, -0.011286289431154728, -0.03933350369334221, -0.03588845208287239, -0.009189301170408726, 0.0014210838126018643, -0.007215885445475578, -0.015098313800990582, -0.012956390157341957, 0.058116525411605835, -0.0005322043434716761, 0.03996260091662407, -0.003299011616036296, 0.02305188961327076, -0.016760926693677902, 0.04400679096579552, -0.017989162355661392, 0.03478004410862923, 0.0022280497942119837, 0.01003558561205864, 0.014446749351918697, 0.01300132554024458, -0.0015165717341005802, -0.02114962227642536, 0.017659634351730347, 0.0043699732050299644, 0.012784137390553951, -0.006174881011247635, -0.008695011027157307, -0.010664681904017925, 0.015622560866177082, 0.037625957280397415, 0.04080139473080635, -0.01610187254846096, -0.023695964366197586, -0.014229562133550644, 0.008844795636832714, -0.002581916516646743, 0.020340783521533012, 0.02224305085837841, -0.005628166254609823, -0.028953412547707558, 0.0061187115497887135, -0.005650633946061134, 0.013997395522892475, 0.002767275320366025, -0.00900206994265318, 0.0058416095562279224, 0.0021512850653380156, 0.053413279354572296, -0.039063893258571625, -0.034360647201538086, -0.02603260800242424, -0.009159344248473644, 0.019097570329904556, -0.020535504445433617, -0.01177308987826109, -0.0030593557748943567, -0.046852704137563705, 0.025073984637856483, 0.029447702690958977, -0.031065380200743675, 0.028369251638650894, -0.03382142260670662, 0.02263249270617962, -0.019876450300216675, 0.03307249769568443, -0.010290219448506832, 0.0005794801982119679, -0.001994010992348194, -0.05083698034286499, 0.005875311326235533, -0.0007653069915249944, 0.026916339993476868, -0.03510957211256027, -0.02132936380803585, -0.021269449964165688, 0.005718037020415068, 0.03711668774485588, 0.0006342452834360301, -0.025523340329527855, -0.01075455266982317, -0.0069013372994959354, -0.003995511215180159, -0.00927917193621397, 0.025598231703042984, -0.011233864352107048, -0.007215885445475578, -0.021239493042230606, 0.04697253182530403, 0.016551226377487183, -0.009930736385285854, 0.004512269049882889, -0.03735634312033653, 0.006006373092532158, -0.032263658940792084, -0.011548412963747978, -0.0077813235111534595, 0.015622560866177082, 0.010694638825953007, -0.0367572046816349, 0.006908826529979706, 0.008402930572628975, 0.019876450300216675, -0.00011011527385562658, -0.02922302670776844, 0.008447865955531597, 0.010252773761749268, -0.025553297251462936, 0.00824565626680851, 0.013742760755121708, -0.017734527587890625, 0.02673659659922123, 0.00984086561948061, -0.019172461703419685, 0.0012956390855833888, -0.03828500956296921, -0.016131829470396042, -0.02129940688610077, 0.021883567795157433, 0.03445051610469818, 0.010417536832392216, -0.00454222597181797, -0.020745202898979187, -0.015907151624560356, -0.017599720507860184, 0.016146807000041008, -0.0066991280764341354, 0.004164019133895636, -0.018992720171809196, 0.010619746521115303, -0.004036701750010252, 0.010829444974660873, 0.010791999287903309, 0.019412117078900337, 0.008417909033596516, 0.001359297544695437, 0.011301267892122269, 0.021374300122261047, 0.008163275197148323, -0.0176146999001503, -0.018258774653077126, -0.05613936483860016, 0.011952831409871578, 0.0030368880834430456, 0.030121736228466034, 0.00972103700041771, -0.003049994120374322, 0.016566205769777298, -0.04873999208211899, -0.013091196306049824, -0.023036912083625793, 0.019217398017644882, -0.027350716292858124, -0.0031117803882807493, 0.004298825282603502, -0.004482312127947807, -0.00031033551204018295, 0.035169485956430435, -0.01831868849694729, 0.0011486626463010907, -0.03031645528972149, 0.008178253658115864, 0.01100169774144888, 0.0013340214500203729, 0.008410420268774033, 0.0006089690723456442, -0.01276915892958641, -0.010552342981100082, 0.025688104331493378, -0.023381415754556656, -0.013323362916707993, 0.023126782849431038, -0.001614868058823049, 0.016790883615612984, 0.021658889949321747, -0.03382142260670662, -0.004519758280366659, -0.006422026082873344, -0.035768624395132065, -0.017944226041436195, -0.030301477760076523, -0.022183137014508247, -0.0036191765684634447, -0.012462100014090538, -0.013607954606413841, -0.0049241771921515465, -0.006350878160446882, -0.01449168473482132, -0.02031082659959793, 0.011368670500814915, -0.02634715661406517, 0.02487926557660103, -0.016146807000041008, 0.019307268783450127, 0.013345831073820591, -0.008784881792962551, 0.02487926557660103, 0.025628188624978065, -0.019531946629285812, -0.010320177301764488, -0.010469961911439896, -0.025148877874016762, -0.007096057757735252, 0.04220937192440033, -0.0030237818136811256, -0.007140993140637875, 0.001544656348414719, -0.02543346956372261, -0.011952831409871578, 0.013390766456723213, 0.038674451410770416, 0.0683618113398552, 0.015697453171014786, 0.0005247151129879057, 0.012409675866365433, 0.017884312197566032, 0.014926061034202576, 0.0085227582603693, -0.01944207400083542, 0.022932061925530434, -0.027440587058663368, -0.02929791808128357, 0.0014660193119198084, 0.013780207373201847, 0.020041214302182198, -0.014371857047080994, 3.817758624791168e-05, 0.019636794924736023, 0.001540911733172834, 0.00023286865325644612, -0.015772346407175064, -0.0010494302259758115, 0.004055425059050322, -0.006103733088821173, 0.023561159148812294, 0.0059502036310732365, 0.013810164295136929, 0.021284429356455803, 0.023126782849431038, 0.019412117078900337, -0.01764465682208538, 0.030885638669133186, 0.005448424257338047, 0.009601209312677383, -0.007361925672739744, 0.005029026884585619, 0.022287987172603607, -0.011720665730535984, 0.020745202898979187, 0.009181811474263668, 0.009631166234612465, 0.016820840537548065, -0.004062914289534092, 0.0003587815444916487, -0.011870450340211391, 0.04853029549121857, -0.005953948013484478, -0.027530457824468613, -0.004721967503428459, 0.030151693150401115, -0.006556832231581211, 0.011406117118895054, -0.005339830182492733, 0.008440377190709114, -0.02480437234044075, -0.01538290549069643, -0.0013040644116699696, -0.021179579198360443, -0.026511920616030693, -0.009466403163969517, 0.016251657158136368, 0.024924200028181076, -0.012147552333772182, 0.007706431206315756, 0.00750796590000391, 0.003722153836861253, 0.00829808134585619, -0.007463030517101288, -0.0021250727586448193, 0.0077588558197021484, 0.01475380826741457, -0.04119083657860756, -0.01954692415893078, 0.01589217409491539, 0.026646725833415985, -0.016641097143292427, -0.013750250451266766, 0.038045354187488556, -0.02739565074443817, -0.015143249183893204, -0.00677027553319931, -0.013585486449301243, -0.017689591273665428, 0.02017602138221264, -0.04769149795174599, -0.07489243149757385, 0.03753608465194702, -0.04490550234913826, 0.01154092326760292, -0.013196046464145184, -0.0027972322423011065, -0.00011508860188769177, -0.0008542417781427503, 0.01313613262027502, -0.04927922040224075, -0.00034637749195098877, -0.0014978485414758325, -0.0022467728704214096, 0.002098860451951623, -0.016536248847842216, -0.0005242470069788396, -0.016955645754933357, -0.0221382025629282, -0.018498430028557777, 0.022782277315855026, 0.012881497852504253, -0.011196418665349483, -0.009945714846253395, -0.01926233246922493, -0.012387207709252834, 0.0024920455180108547, 0.020535504445433617, -0.007901151664555073, -0.016865774989128113, -0.015832260251045227, -0.00288523081690073, -0.030571090057492256, -0.0037577275652438402, 0.035978324711322784, 0.03430073335766792, 0.04262877255678177, 0.010440004989504814, -0.012447121553122997, -0.00026984678697772324, -0.011061611585319042, 0.009421467781066895, 0.00826063472777605, 0.049099478870630264, -0.004909198731184006, 0.01730015128850937, -0.026182392612099648, -0.014544109813869, -0.01222993340343237, -0.02252764254808426, -0.0022411560639739037, 0.002913315547630191, 0.018258774653077126, 0.01475380826741457, 0.01308370754122734, 0.0018395453225821257, 0.06249024346470833, 0.005088940728455782, 0.03259318694472313, -0.006302197929471731, 0.0221382025629282, 0.00977346207946539, 0.0008626671624369919, -0.015180695801973343, -0.021883567795157433, -0.015502733178436756, 0.022692406550049782, 0.014476706273853779, -0.0031136528123170137, -0.02459467388689518, 0.029882078990340233, -0.001824566861614585, -0.0028646355494856834, 0.012761670164763927, -0.016326550394296646, 0.003211013041436672, -0.024609653279185295, 0.05089689418673515, -0.029133155941963196, 0.009556273929774761, 0.0176146999001503, -0.018123967573046684, -0.006912571378052235, -0.034360647201538086, 0.014207093976438046, -0.015300523489713669, 0.02216815948486328, 0.015532690100371838, 0.03337206691503525, 0.03540914133191109, -0.0271859522908926, 0.023201674222946167, 0.005497104488313198, 0.008335527032613754, -0.015352948568761349, -0.00627224100753665, 0.02648196369409561, 0.02231794409453869, 0.012529503554105759, 0.026466984301805496, 0.010477450676262379, -0.013338341377675533, 0.04065161198377609, 0.014686405658721924, 0.011076590046286583, -0.010043075308203697, -0.0261374581605196, -0.03301258385181427, 0.011937852948904037, 0.03582853823900223, 0.023441331461071968, -0.010866891592741013, 0.015442819334566593, -0.0012319805100560188, -0.005894034169614315, 0.02459467388689518, -0.04011238366365433, 0.011458542197942734, -0.00552706141024828, 0.010694638825953007, 0.00028412314713932574, 0.03756604343652725, -0.02206330932676792, 0.0036847074516117573, 0.0245647169649601, 0.005931480322033167, 0.05245465785264969, 0.002980718621984124, 0.001060664071701467, -0.04196971654891968, 0.0018348644953221083, 0.020056191831827164, 0.021778719499707222, 0.03486991673707962, 0.02182365395128727, 0.03442056104540825, -0.014641470275819302, 0.0017047389410436153, 0.026916339993476868, 0.0030724620446562767, 0.006624235305935144, 0.02368098683655262, 0.01262686401605606, 0.015832260251045227, -0.027874961495399475, -9.496125858277082e-05, 0.04250894486904144, -0.014716362580657005, -0.0491294339299202, -0.03016667068004608, -0.027515478432178497, 0.014791254885494709, -0.00729826744645834, 0.015517711639404297, -0.014521642588078976, 0.013780207373201847, 0.019996277987957, -0.020056191831827164, -0.03489987179636955, 0.02911817654967308, 0.025208791717886925, -0.008013489656150341, 0.02210824564099312, -0.00450103497132659, -0.012274869717657566, 0.00033584574703127146, 0.023381415754556656, -0.02360609360039234, 0.005579486023634672, 0.05509087070822716, -0.007006186991930008, -0.004882986657321453, -0.023830771446228027, 0.018947783857584, -0.008597650565207005, -0.0036996861454099417, 0.016012001782655716, 0.012536992318928242, 0.00015879535931162536, -0.01753980666399002, -0.00043858878780156374, 0.02540351264178753, 0.024040469899773598, 0.009780951775610447, 0.0029470170848071575, 0.02697625383734703, 0.04844042286276817, 0.010514897294342518, 0.007133503910154104, 0.003935597371309996, 0.03223370015621185, 0.019981300458312035, -0.01410224474966526, 0.025987673550844193, -0.00954129546880722, -0.009241726249456406, 0.0065381089225411415, 0.011937852948904037, -0.016581183299422264, -0.036817118525505066, -0.022437771782279015, 0.0085227582603693, 0.0012535119894891977, 0.0034506686497479677, -0.017060495913028717, -0.0076989419758319855, -0.021778719499707222, 0.03097550943493843, 0.01301630400121212, 0.01536792702972889, 0.00656806631013751, 0.00551582733169198, -0.04430636018514633, 0.004497290588915348, -0.001856396091170609, 0.002566938055679202, 0.013877566903829575, -0.011158972047269344, 0.03115525096654892, -0.018498430028557777, 0.04652317613363266, 0.009076962247490883, 0.03259318694472313, -0.0028739969711750746, -0.018932806327939034, -0.019457053393125534, -0.011713176034390926, 0.0271859522908926, -0.04220937192440033, -0.01855834387242794, -0.02571806125342846, 0.01957688108086586, -0.011353692039847374], "id": 8}, {"title": "Dennis Gamsy", "text": "Dennis Gamsy (born 17 February 1940 in Glenwood, Natal) is a former South African cricketer who played in two Tests as a wicketkeeper in 1970 against Australia.He played for Natal from 1958-59 to 1972-73. In 1970 he became one of the first prominent South African cricketers to speak out in favour of mixed-race sport in South Africa. Shortly afterwards he founded the Cricket Club of South Africa, one of the country's first multi-racial teams.", "vector": [0.029236363247036934, 0.020947067067027092, -0.024204127490520477, 0.004287433810532093, -0.01691819168627262, 0.06909290701150894, -0.0037741768173873425, -0.009200038388371468, 0.0289276372641325, 0.026226283982396126, -0.05458277836441994, -0.000350211194017902, -0.013823212124407291, 0.016285302117466927, -0.007143150549381971, 0.008644331246614456, -0.023231640458106995, 0.014780262485146523, 0.015305097214877605, -0.03507128730416298, 0.030857175588607788, -0.008698358200490475, 0.03173704445362091, -0.02588668465614319, 0.02793971262872219, 0.03152093663811684, 0.007532916963100433, 0.003091120161116123, -0.0069579146802425385, -0.04411696270108223, 0.0028672937769442797, 0.036584045737981796, 0.05214384198188782, -0.046957243233919144, -0.04600019007921219, -0.013792338781058788, -0.043623000383377075, -0.01852356642484665, 0.010118498466908932, -0.00019934542069677263, -0.00794969778507948, -0.039177343249320984, -0.006822847295552492, -0.008605740033090115, -0.030857175588607788, -0.007548353634774685, -0.04590757191181183, -0.011561793275177479, -0.04167802631855011, -0.04942705109715462, 0.04204849526286125, 0.02563970349729061, 0.00597770931199193, 0.002533483784645796, 0.03754109516739845, -0.02743031457066536, -0.034947797656059265, 0.09447018802165985, 0.038652509450912476, -0.014811134897172451, -0.022444387897849083, -0.03862163797020912, 0.018785983324050903, 0.023602111265063286, 0.030579321086406708, 0.007162445690482855, -0.026411518454551697, 0.01762826181948185, 0.007393990643322468, -0.005283075384795666, -0.05090893432497978, 0.00749046728014946, -0.021070556715130806, 0.030810866504907608, 0.01371515728533268, -0.023185331374406815, 0.06458549946546555, 0.04195587709546089, -0.05378009006381035, 0.014062474481761456, -0.004005721304565668, -0.03615182638168335, -0.009115138091146946, 0.030733684077858925, 0.009879235178232193, -0.052946530282497406, 0.01010306179523468, -0.06754927337169647, 0.005908246152102947, -0.004738945979624987, 0.05177336931228638, 0.02485245279967785, -9.34620061343594e-07, -0.04630891606211662, -0.04603106528520584, -0.02124035730957985, -0.0017529854085296392, -0.02091619372367859, 0.004893308971077204, 3.2078572985483333e-05, -0.02232089824974537, -0.03269409388303757, 0.01847725734114647, -0.040906209498643875, 0.013360122218728065, 0.024018891155719757, -0.06257878243923187, -0.00013760018919128925, 0.025670576840639114, 0.05359485372900963, -0.01687188260257244, -0.002363684354349971, -0.03590484708547592, 0.027260515838861465, -0.05044584721326828, -0.01134568452835083, -0.058441855013370514, 0.03497866913676262, 0.007042814511805773, 0.04383910819888115, -0.045413609594106674, 0.02475983463227749, -0.04899483546614647, 0.02029874175786972, 0.05476801097393036, 0.018276585265994072, -0.04584582895040512, 0.023694729432463646, -0.04880959913134575, 0.013514485210180283, 0.008937620557844639, 0.011384275741875172, -0.017226917669177055, 0.025192050263285637, -0.0016121291555464268, -0.0334659107029438, -0.0018967360956594348, 0.010990649461746216, 0.027399443089962006, 0.04476528614759445, 0.011916828341782093, 0.0017008879221975803, 0.05967675894498825, -0.007119996007531881, -0.002477527130395174, 0.014857443980872631, -0.0052676391787827015, -0.00543743884190917, 0.004812268074601889, 0.028680656105279922, -0.05269954726099968, 0.01767457090318203, 0.007610098924487829, -0.03235449641942978, 0.025531649589538574, 0.020221561193466187, -0.023941710591316223, -0.013321531936526299, 0.004248843062669039, 0.014610463753342628, -0.0012638475745916367, 0.033496782183647156, -0.022104790434241295, 0.004183238837867975, -0.034145109355449677, 0.018924910575151443, -0.06270227581262589, 0.015127579681575298, 0.04204849526286125, 0.018585311248898506, -0.040103521198034286, -0.03488605096936226, 0.002718719420954585, 0.04618542641401291, -0.012881597504019737, -0.008312450721859932, -0.01795242354273796, -0.014571872539818287, 0.06736403703689575, 0.012225554324686527, -0.04640153422951698, -0.03905385360121727, 0.004908745177090168, 0.005788614507764578, -0.06489422917366028, -0.010959777049720287, 0.03122764639556408, -0.043623000383377075, -0.001797364791855216, -0.02667393535375595, 0.012765824794769287, -0.007251204457134008, -0.03374376520514488, 0.010527560487389565, 0.04439481347799301, 0.023416874930262566, 0.012063472531735897, -0.002782394178211689, -0.04143104329705238, -0.03967130556702614, 0.027739040553569794, 0.038652509450912476, 0.035657867789268494, -0.023972582072019577, -0.015366842038929462, 0.019187327474355698, -0.029653143137693405, 0.026920916512608528, -0.060973405838012695, -0.0632271096110344, 0.004310588352382183, 0.015305097214877605, 0.004179379902780056, -0.02591755799949169, -0.016007449477910995, -0.0026627627667039633, 0.017551079392433167, 0.025577958673238754, 0.028588037937879562, -0.006105058826506138, -0.027183333411812782, -0.0036545454058796167, -0.008466813713312149, 0.026982663199305534, -0.017087990418076515, 0.0056419698521494865, -0.009431582875549793, -0.010959777049720287, -0.06001635640859604, -0.026504136621952057, 0.01969672553241253, 0.021302102133631706, -0.005472170189023018, 0.009771181270480156, 0.011747028678655624, 0.003606306854635477, 0.02513030543923378, -0.0027920417487621307, -0.03822029381990433, 0.02503768727183342, -0.020885322242975235, 0.043900854885578156, 0.030718248337507248, -0.017504770308732986, 0.0031856675632297993, 0.041554536670446396, -0.00595455477014184, -0.01448697317391634, -0.010643333196640015, -0.022567879408597946, 0.01378462091088295, -0.030841737985610962, -0.040010903030633926, -0.04603106528520584, 0.008814130909740925, -0.00016618147492408752, 0.005066967569291592, 0.006352039985358715, -0.002126350998878479, -0.015081270597875118, -0.031582679599523544, 0.01903296448290348, 0.0217034462839365, -0.0033033695071935654, -0.053563982248306274, 0.03596659377217293, -0.0031258519738912582, 0.015737313777208328, 0.014633617363870144, 0.008875875733792782, -0.06575866043567657, -0.02587124891579151, -0.03609008342027664, 0.003967130556702614, 0.057268694043159485, -0.03135113790631294, -0.05097068101167679, 0.011446020565927029, -0.018585311248898506, 0.02156451903283596, 0.017504770308732986, 0.022938350215554237, -0.009037956595420837, -0.05418143421411514, -0.03609008342027664, -0.005908246152102947, 0.009971853345632553, 0.04269682243466377, 0.01392354816198349, 0.01861618459224701, -0.028850454837083817, 0.011229912750422955, 0.032323624938726425, -0.011839646846055984, -0.015667850151658058, 0.02587124891579151, -0.016532283276319504, -0.024682652205228806, 0.061529114842414856, 0.007803052663803101, 0.06254790723323822, 0.010087626054883003, -0.06971035897731781, -0.002896236954256892, -0.050754573196172714, 0.004650187212973833, 0.0018977008294314146, 0.013306095264852047, -0.024204127490520477, -0.03553437441587448, -0.029421597719192505, -0.013954420574009418, -0.04621629789471626, 0.0015764327254146338, -0.0070273783057928085, 0.011638974770903587, 0.00895305722951889, 0.007251204457134008, -0.04075184836983681, -0.05316263809800148, 0.03822029381990433, -0.014201400801539421, -0.01263461634516716, -0.03173704445362091, 0.04856261610984802, -0.01935712806880474, 0.02020612359046936, 0.02391083724796772, -0.011199039407074451, 0.032045770436525345, -0.037386734038591385, -0.032941076904535294, 0.03686189651489258, -0.020514849573373795, 0.0074402992613613605, -0.004480387549847364, -0.015320532955229282, 0.009717154316604137, -0.04016526788473129, 0.033589400351047516, 0.01068964134901762, 0.013414149172604084, 0.018832292407751083, 0.013043678365647793, -0.04853174462914467, -0.00029111906769685447, 0.09064199030399323, -0.03278671205043793, -0.016671210527420044, -0.05856534466147423, 0.0006748560117557645, 0.010944340378046036, -0.02798602171242237, 0.015691004693508148, 0.020036324858665466, 0.04411696270108223, -0.014834289439022541, -0.07304459810256958, -0.029498780146241188, -0.018492694944143295, 0.013846365734934807, 0.015582950785756111, 0.038282036781311035, 0.029035691171884537, 0.0016844868659973145, -0.007370836101472378, 0.02996186912059784, -0.009238628670573235, -0.005445156712085009, -0.0012165738735347986, 0.0411531925201416, -0.021487336605787277, -0.032848458737134933, -0.029190054163336754, -0.019279945641756058, -0.0334659107029438, -0.023077277466654778, 0.018338331952691078, 0.030455831438302994, -0.020036324858665466, 0.030069923028349876, 0.023802783340215683, -0.040010903030633926, -0.026643063873052597, -0.011361121200025082, 0.0013921618228778243, 0.05720694735646248, 0.0013410290703177452, 0.012125218287110329, 0.0035098299849778414, -0.01875511184334755, 0.06051031872630119, 0.0003357396344654262, -0.005503043066710234, 0.016146374866366386, 0.001421104883775115, 0.030177976936101913, 0.01507355272769928, 0.048037782311439514, -0.013259786181151867, -0.008899030275642872, -0.07174795120954514, -0.032231006771326065, 0.019588671624660492, -0.015436305664479733, -0.04038137570023537, -0.027785349637269974, -0.052761293947696686, 0.0019652347546070814, 0.004958913195878267, 0.018631620332598686, 0.01622355729341507, -0.005263780243694782, 0.026550445705652237, 0.037294115871191025, -0.004345320165157318, -0.006398348603397608, 0.0686606839299202, 0.015212479047477245, -0.05026061087846756, 0.03831291198730469, 0.008026879280805588, 0.02817125804722309, 0.0217034462839365, -0.016331611201167107, 0.019094709306955338, -0.012997369281947613, 0.016748391091823578, 0.019048402085900307, -0.009740308858454227, -0.018261149525642395, -0.008628894574940205, -0.02326251193881035, 0.040998827666044235, -0.03362027555704117, -0.05251431092619896, -0.028433674946427345, -0.013383276760578156, 0.06248616427183151, 0.011523202061653137, -0.01576818712055683, -0.05779352784156799, -0.01894034631550312, -0.01569872349500656, -0.08817217499017715, -0.04572233557701111, 0.0012127148220315576, -0.003116204170510173, 0.031582679599523544, 0.012271863408386707, -0.015389996580779552, -0.0741560161113739, 0.014340328052639961, -0.003154794918373227, 0.03269409388303757, -0.03769546002149582, -0.04609280824661255, 0.021780626848340034, -0.04186326265335083, 0.05507673695683479, -0.01200172770768404, 0.02540815994143486, -0.024312181398272514, -0.023849092423915863, 0.0084822503849864, 0.04871698096394539, 0.029082000255584717, 0.01317488681524992, -0.013089987449347973, 0.023030968382954597, -0.011430583894252777, -0.04711160436272621, -0.017736315727233887, 0.02559339441359043, 0.036738406866788864, -0.008899030275642872, 1.4418776117963716e-05, 0.004052030388265848, -0.003920821473002434, 0.00953963678330183, 0.012387635186314583, 0.058164000511169434, -0.0180913507938385, 0.01843094825744629, -0.009192319586873055, -0.07841642946004868, -0.012920187786221504, -0.04951966926455498, -0.00836647767573595, -0.03868338093161583, 0.010280579328536987, 0.05603379011154175, -0.013977575115859509, 0.03216926008462906, -0.02363298460841179, 0.024837015196681023, -0.005047671962529421, 0.05804051086306572, -0.0024003456346690655, -0.004596159793436527, 0.0018851588247343898, -0.050414975732564926, 0.025439031422138214, -0.03726324066519737, -0.014541000127792358, 0.02002088911831379, 0.04084446653723717, 0.022058481350541115, -0.024265872314572334, 0.00895305722951889, 0.03374376520514488, 0.05828749015927315, 0.02287660539150238, 0.004144648090004921, 0.0010593164479359984, -0.017242353409528732, -0.003909244202077389, -0.01776718720793724, 0.03278671205043793, 0.013120859861373901, -0.005796332843601704, 0.008644331246614456, -0.01202488224953413, 0.048068657517433167, 0.011986291036009789, 0.0007081405492499471, 0.02432761713862419, 0.004773677326738834, -0.04300554841756821, 0.014726235531270504, -0.007864797487854958, 0.010504405945539474, 0.05893581360578537, 0.007718152832239866, -0.03201489895582199, -0.013892674818634987, -0.055200230330228806, 5.264021456241608e-05, 0.035843100398778915, -0.0012107852380722761, 0.01204803679138422, -0.012673206627368927, -0.03309543803334236, 0.021626263856887817, 0.021348411217331886, -0.0005036094808019698, -0.019187327474355698, -0.0018591100815683603, -0.01432489138096571, -0.03633706271648407, -0.0357196107506752, 0.001405668561346829, 0.0214719008654356, -0.015976576134562492, 0.011700719594955444, -0.048778727650642395, -0.027831658720970154, 0.020700085908174515, 0.012526562437415123, 0.0004558534128591418, 0.0084822503849864, 0.010635614395141602, -0.02232089824974537, 0.03226187825202942, 0.03642968088388443, 0.025161178782582283, -0.017087990418076515, 0.010705078020691872, 0.0016082701040431857, -0.005827205255627632, 0.022444387897849083, -0.03587397560477257, -0.026457827538251877, -0.022706804797053337, 0.025238359346985817, -0.033682018518447876, -0.03550350293517113, -0.016393356025218964, -0.003527195891365409, -0.05124853551387787, -0.002228616736829281, 0.003909244202077389, 0.0021514350082725286, 0.012981932610273361, -0.009809772484004498, 0.009570509195327759, 0.02860347367823124, -0.02338600344955921, -0.0036236727610230446, -0.03794243931770325, 0.019480617716908455, -0.04007264971733093, -0.014641336165368557, -0.03269409388303757, 0.014641336165368557, -0.0005750023992732167, 0.02381821908056736, 0.027723604813218117, 0.05686734989285469, -0.019048402085900307, 0.039115600287914276, 0.03735585883259773, 0.010380915366113186, -0.002477527130395174, 0.023941710591316223, -0.017365843057632446, -0.048315636813640594, 0.05884319543838501, 0.001247446401976049, -0.04238809645175934, -0.023602111265063286, -0.017057117074728012, 0.01969672553241253, -0.016702082008123398, 0.0023463184479624033, -0.001215609023347497, -0.027739040553569794, -0.003042881842702627, -0.02315445803105831, 0.04028875753283501, -0.009354401379823685, -0.0357196107506752, 0.0009695929475128651, 0.00787251628935337, 0.017134299501776695, -0.01974303461611271, 0.002882729982957244, -0.003411423647776246, -0.003998002968728542, 0.005796332843601704, -0.030116232112050056, 0.017196044325828552, -0.008374195545911789, 0.017381280660629272, -0.008289296180009842, -0.008899030275642872, 0.008505403995513916, -0.0053679752163589, -0.04106057435274124, -0.002303868532180786, -0.014896035194396973, 0.014317173510789871, -0.0015957280993461609, -0.005703715141862631, -0.032508861273527145, -0.04214111343026161, 0.032601479440927505, 0.04504314064979553, -0.025099432095885277, 0.044147834181785583, 0.0016912402352318168, -0.022475261241197586, 0.01631617546081543, -0.0030351635068655014, 0.008420504629611969, 0.04809952899813652, 0.058071382343769073, -0.029421597719192505, 0.007517480757087469, -0.026241719722747803, 0.010751387104392052, -0.024111509323120117, -0.004437937866896391, -0.007162445690482855, 0.012433944270014763, 0.007177882362157106, -0.0010979071957990527, 0.008721512742340565, 0.024975942447781563, 0.012217835523188114, 0.00026314076967537403, 0.025022251531481743, -0.01082856860011816, -0.040906209498643875, 0.016069194301962852, -0.0014992512296885252, -0.0840969905257225, -0.009748026728630066, -0.028958508744835854, -0.005865796003490686, 0.011831928044557571, -0.04609280824661255, -0.0239571463316679, 0.021394720301032066, -0.024111509323120117, -0.0030390226747840643, -0.01799873262643814, 0.04951966926455498, 0.0007563789840787649, 0.0019816358108073473, -0.014070192351937294, 0.011762465350329876, -0.000581755768507719, 0.0393008328974247, 0.014857443980872631, 0.009122856892645359, 0.004430219531059265, -0.048223018646240234, -0.01721148006618023, 0.004052030388265848, 0.01578362286090851, 0.010296016000211239, 0.043345145881175995, -0.005773178301751614, 0.01317488681524992, 0.01960410736501217, -0.01495778001844883, 0.028294747695326805, 0.012464816682040691, -0.033126313239336014, -0.004476528614759445, -0.0071122776716947556, -0.005908246152102947, 0.003044811310246587, -0.047142475843429565, 0.02729138918220997, -0.016238993033766747, -0.021780626848340034, -0.026658499613404274, 0.006707074586302042, 0.013352404348552227, 0.016933627426624298, 0.03362027555704117, -0.02066921256482601, -0.007108418736606836, 0.031026974320411682, -0.036491427570581436, -0.025145741179585457, -0.015914831310510635, 0.019959142431616783, -0.027229642495512962, -0.013800057582557201, 0.02602561190724373, -0.004106057342141867, 0.03269409388303757, -0.019496053457260132, 0.021317537873983383, 0.013637975789606571, 0.03541088476777077, -0.025346413254737854, -0.009508764371275902, -0.00022491179697681218, -0.0010255496017634869, -0.028325621038675308, -0.018647057935595512, -0.0077451663091778755, 0.013437303714454174, -0.01843094825744629, -0.008806412108242512, 0.004931899718940258, -0.022259153425693512, 0.003760670078918338, 0.03534914180636406, -0.0012406930327415466, -0.022907476872205734, -0.05152639001607895, -0.01907927356660366, -0.010766822844743729, -0.04078271985054016, 0.011337966658174992, 0.029267234727740288, 0.028958508744835854, -0.014641336165368557, -0.009925544261932373, 0.02752293273806572, 0.022861167788505554, 0.01622355729341507, -0.022521570324897766, 0.00749046728014946, -4.5856682845624164e-05, 0.008829566650092602, -0.025053124874830246, -0.008528558537364006, 0.025423595681786537, 0.009531918913125992, 0.015320532955229282, 0.022938350215554237, -0.028804145753383636, -0.04522837698459625, -0.050939809530973434, -0.06538818776607513, 0.010211116634309292, -0.058071382343769073, -0.009616818279027939, -0.005225189495831728, -0.006830565165728331, -0.0017481616232544184, 0.0056303925812244415, -0.03056388534605503, -0.026689372956752777, -0.03023972362279892, -0.004079043865203857, 0.0010120427468791604, -0.017890678718686104, -0.00909198448061943, 0.0026068061124533415, 0.049766648560762405, 0.0289276372641325, -0.038189418613910675, -0.03365114703774452, -0.04902570694684982, -0.020746394991874695, 0.007386272307485342, -0.04979752376675606, 0.0465250238776207, -0.024404799565672874, -0.043345145881175995, -0.03257060423493385, 0.006301871966570616, -0.002514188177883625, 0.009964135475456715, -0.0072859362699091434, 0.007011941634118557, -0.03951694071292877, -0.01603832095861435, -0.018724238499999046, -0.013020523823797703, -0.04939617961645126, 0.004542132839560509, 0.0030216567683964968, -0.0015687145059928298, -0.015081270597875118, -0.012403071857988834, 0.01204803679138422, 0.011777901090681553, 0.05198947712779045, 0.010095343925058842, -0.026735682040452957, 0.03417598083615303, -0.011098703369498253, -0.031767915934324265, -0.017690006643533707, -0.02443567104637623, 0.006510261911898851, -0.03670753538608551, 0.004839282017201185, 0.004704214166849852, 0.018816856667399406, 0.032045770436525345, 0.032941076904535294, 0.016702082008123398, -0.030548449605703354, -0.018168531358242035, -0.046957243233919144, 0.023972582072019577, -0.006900028791278601, 0.010982931591570377, -0.06094253435730934, 0.006533416453748941, 0.007486608345061541, 0.008613458834588528, 0.07440299540758133, 0.0006734088528901339, 0.017643697559833527, -0.030579321086406708, 0.011175884865224361, 0.047049861401319504, -0.005838782526552677, 0.015644695609807968, -0.005773178301751614, 0.04819214716553688, 0.00624784454703331, 0.01071279589086771, -0.025068560615181923, 0.026133665814995766, -0.012379917316138744, 0.013645694591104984, -0.04979752376675606, 0.031767915934324265, -0.038899488747119904, -0.013537639752030373, -0.021024247631430626, 0.011175884865224361, -0.010566150769591331, -0.030733684077858925, 0.029930995777249336, 0.007224190980195999, -0.017690006643533707, -0.0314437560737133, 0.022675933316349983, 0.032508861273527145, -0.002902025356888771, -0.06878417730331421, -0.011839646846055984, -0.009246347472071648, -6.572489655809477e-05, -0.005449016112834215, -0.018832292407751083, -0.0038108378648757935, -0.0013091916916891932, 0.011600383557379246, -0.004048170987516642, -0.03689277172088623, -0.009284937754273415, 0.021672572940587997, 0.020113505423069, -0.03023972362279892, 0.004017298575490713, -0.020761830732226372, -0.015621541067957878, -0.009964135475456715, -0.006984928157180548, 0.029699452221393585, -0.009130574762821198, 0.015930267050862312, 0.016254430636763573, -0.004958913195878267, 0.019758470356464386, 0.0016574732726439834, -0.026643063873052597, -0.020375924184918404, 0.028665220364928246, -0.023602111265063286, 0.029884688556194305, 0.010087626054883003, -0.026890045031905174, -0.043437764048576355, -0.013537639752030373, -0.003083402058109641, -0.027322260662913322, 0.034021615982055664, 0.01721148006618023, 0.002058817306533456, -0.008675203658640385, 0.044333070516586304, -0.03454645350575447, -0.014996371231973171, -0.03399074450135231, 0.013545358553528786, 0.028572602197527885, -0.010465815663337708, -0.014062474481761456, 0.0024292885791510344, -0.017967859283089638, -0.004326024558395147, 0.014996371231973171, -0.014818853698670864, 0.01511986181139946, -0.007328385952860117, 0.0013275223318487406, -0.019820217043161392, -0.009400710463523865, 0.03179879114031792, 0.0442713238298893, 0.0180913507938385, -0.028526293113827705, -0.036831025034189224, -0.021070556715130806, -0.018276585265994072, 8.345252717845142e-05, 0.006016300059854984, -0.016254430636763573, 0.013483612798154354, 0.0063250260427594185, -0.0018735815538093448, 0.009146011434495449, -0.011129576712846756, 0.028726965188980103, 0.0022517710458487272, 0.017381280660629272, 0.00478139566257596, -0.006479389499872923, -0.009832927025854588, 0.0016092348378151655, -0.022197406738996506, -0.010280579328536987, 0.0262108463793993, -0.009647690691053867, -0.0343303419649601, -0.00749046728014946, 0.010234270244836807, 0.07452648133039474, 0.029220927506685257, -0.0053139482624828815, -0.02442023530602455, -0.010002725757658482, 0.012179245240986347, 0.012271863408386707, 0.03791156783699989, 0.005082403775304556, -0.01721148006618023, -0.0015069693326950073, -0.0009985360084101558, 0.0035484207328408957, 0.0070389555767178535, -0.014602744951844215, -0.0032203993760049343, -0.0004954089527018368, 0.011283939704298973, -0.037016261368989944, -0.04701898619532585, -0.008613458834588528, 0.00041026805411092937, -0.040906209498643875, -0.022444387897849083, 0.027075279504060745, -0.001615023473277688, 0.007089123595505953, -0.005811769049614668, -0.031212210655212402, 0.07668756693601608, 0.015220197848975658, 0.007548353634774685, -0.03141288086771965, -0.005993145518004894, -0.0020047901198267937, 0.02634977363049984, 0.020406795665621758, 0.012935624457895756, 0.015058116056025028, -0.0339290015399456, -0.01569872349500656, 0.009740308858454227, -0.04553710296750069, -0.0023887683637440205, -0.065079465508461, -0.04618542641401291, -0.0019343621097505093, -0.0038667945191264153, 0.0456605926156044, -0.009763463400304317, 0.010396352037787437, -0.04556797444820404, 0.023555802181363106, -0.01926450990140438, 0.032323624938726425, 0.04646328091621399, -0.011739310808479786, 0.01617724820971489, 0.003967130556702614, -0.018153095617890358, 0.015791339799761772, 0.01776718720793724, 0.04683374986052513, -0.006097340956330299, -0.006051031872630119, 0.008698358200490475, 0.039547815918922424, -0.020468540489673615, 0.028047766536474228, 0.0352565236389637, 0.0016835221322253346, -0.04056661203503609, -0.0028672937769442797, -0.034299470484256744, -0.05174249783158302, 0.010311451740562916, 0.003253201488405466, 0.02451285347342491, -0.02713702619075775, 0.026550445705652237, -0.0007853220449760556, 0.006626034155488014, -0.028294747695326805, -0.027646424248814583, 0.014185965061187744, -0.010697360150516033, -0.0339290015399456, -0.009346683509647846, -0.013460458256304264, 0.001144216163083911, -0.026195410639047623, 0.014610463753342628, -0.02715246193110943, -0.0028672937769442797, 0.03315718472003937, 0.024682652205228806, -0.010550715029239655, 0.007799193263053894, -0.019063837826251984, 0.019990015774965286, 0.0008851756574586034, -0.011361121200025082, -0.001357430126518011, 0.02611823007464409, -0.014016165398061275, -0.0025662858970463276, -0.0055840834975242615, -0.009755745530128479, 0.022768551483750343, 0.0316135548055172, -0.004928040783852339, 0.010789977386593819, 0.01129937544465065, -0.053656596690416336, 0.0041870977729558945, 0.002552779158577323, 0.03442296013236046, -0.01511986181139946, -0.0001877681934274733, -0.01739671640098095, -0.00180508301127702, 0.03189140930771828, -0.03153637424111366, 0.012889315374195576, -0.010380915366113186, -0.015243351459503174, 0.05316263809800148, 0.017983296886086464, 0.014973216690123081, 0.013583948835730553, -0.040010903030633926, -0.030039051547646523, 0.005553211085498333, 0.01739671640098095, -0.041986752301454544, -0.0442713238298893, 0.027445752173662186, -0.017319535836577415, 0.023432312533259392, -0.020036324858665466, -0.018971219658851624, 0.010041316971182823, -0.015706440433859825, 0.021456465125083923, 0.008644331246614456, 0.023169895634055138, -0.0030660361517220736, 0.003264778759330511, -0.016810137778520584, 0.010789977386593819, -0.030918920412659645, 0.028943073004484177, 0.01617724820971489, -0.03491692245006561, -0.031212210655212402, -0.017412152141332626, 0.0012561293551698327, -0.02232089824974537, 0.05884319543838501, -0.013352404348552227, -0.036676663905382156, -0.0014114571968093514, 0.013236632570624352, 0.020360486581921577, -0.024960506707429886, 0.0030390226747840643, 0.014896035194396973, 0.02296922355890274, -0.026504136621952057, 0.005383411422371864, 0.019634980708360672, 0.029745761305093765, 0.007143150549381971, 0.0024215704761445522, 0.004445656202733517, -0.003986426163464785, -0.017643697559833527, 0.006379053462296724, 0.009392991662025452, -0.01371515728533268, -0.014309455640614033, 0.01626986637711525, -0.0018108716467395425, 0.04908745363354683, 0.020360486581921577, 0.0010429153917357326, 0.007042814511805773, -0.00784936174750328, 0.0022093213628977537, -0.001120096887461841, 0.019372563809156418, 0.019249072298407555, 0.005113276187330484, 0.02574775740504265, -0.028402801603078842, -0.003940117079764605, -0.029606834053993225, 0.018292022868990898, 0.0066877794452011585, -0.0023019390646368265, -0.02333969436585903, -0.05995460972189903, 0.002676269505172968, -0.01024198904633522, 0.017612824216485023, -0.02499137818813324, -0.024358490481972694, 0.007035096175968647, 0.020561158657073975, 0.008173523470759392, -0.02952965348958969, 0.04439481347799301, -0.016161812469363213, -0.018014168366789818, -0.0239571463316679, 0.021965863183140755, -0.03880687430500984, -0.005522338207811117, 0.023509493097662926, 0.012210117653012276, 8.254805288743228e-05, 0.015150734223425388, 0.020144378766417503, 0.008798694238066673, -0.03423772752285004, 0.055632445961236954, 0.03309543803334236, -0.0065681482665240765, 0.0041137756779789925, 0.013653412461280823, -0.022722242400050163, 0.004106057342141867, 0.004376192577183247, 0.014054756611585617, -0.021487336605787277, -0.035565249621868134, -0.006984928157180548, 0.004306729417294264, 0.01603832095861435, -0.01907927356660366, -0.01716517098248005, -0.002739944262430072, 0.033589400351047516, -0.005175021477043629, 0.022336333990097046, -0.0051595852710306644, -0.008675203658640385, -0.010164807550609112, -0.0017558797262609005, -0.019341690465807915, -0.01626986637711525, -0.011376556940376759, 0.013398713432252407, -0.014795699156820774, -0.016485974192619324, -0.0011982432333752513, -0.02414238266646862, 0.004823845345526934, 0.004345320165157318, -0.034855179488658905, -0.027785349637269974, 0.020329615101218224, -0.04143104329705238, -0.004214111249893904, -0.055817682296037674, -0.007065969053655863, -0.004009580239653587, -0.02321620285511017, -0.0009642867371439934, 0.03010079637169838, -0.013668849132955074, -0.0013072621077299118, 0.00030896731186658144, -0.037201497703790665, 0.02335513010621071, -0.022938350215554237, -0.00965540949255228, 0.04887134209275246, 0.025577958673238754, -0.007660266477614641, 0.036923643201589584, 0.004206393379718065, -0.000302937492961064, -0.01608463004231453, 0.0069463374093174934, 0.018785983324050903, -0.01753564365208149, 0.006016300059854984, -0.0021340693347156048, -0.009848362766206264, 0.004495824221521616, -0.0018234136514365673, -0.0118628004565835, 0.03538001328706741, 0.010450378991663456, 0.018322894349694252, -0.01498093456029892, 0.006846001371741295, 0.02574775740504265, -0.005232907831668854, -0.02428130805492401, 0.0015494191320613027, -0.00397484889253974, 0.0009174954029731452, -0.02404976449906826, 0.038745127618312836, 0.015135297551751137, 0.026272593066096306, -0.02320076711475849, -0.004931899718940258, 0.023617547005414963, 0.004885590635240078, -0.0032049629371613264, -0.018631620332598686, -0.003994144033640623, 0.003384409938007593, -0.01880142092704773, -0.033126313239336014, 0.01875511184334755, -0.013668849132955074, 0.010087626054883003, -0.012186963111162186, 0.0019102428341284394, 0.03609008342027664, 0.014216837473213673, -0.0089299026876688, 0.0035059708170592785, -0.029328981414437294, 0.022444387897849083, -0.04664851725101471, 0.010033599101006985, -0.011654410511255264, -0.017103426158428192, -0.011422866024076939, 0.0125419981777668, -0.02625715546309948, 0.014494691044092178, 0.0038552172482013702, -0.006934760138392448, -0.0009285902488045394, -0.005962273105978966, -0.008644331246614456, -0.0070158010348677635, 0.014093346893787384, 0.000561978027690202, 0.0501679927110672, -0.02400345541536808, 0.0051827398128807545, -0.006398348603397608, -0.030841737985610962, 0.0025547086261212826, -0.0038552172482013702, -0.005919823423027992, -0.02807863987982273, -0.00509783998131752, -0.014764826744794846, 0.010380915366113186, -0.03939345106482506, -0.014131938107311726, 0.000518563378136605, -0.023478621616959572, 0.004507401026785374, -0.02676655352115631, -0.016254430636763573, -0.04729684069752693, 0.0035252664238214493, -0.0016478255856782198, 0.020190687850117683, -0.023988019675016403, -0.021394720301032066, -0.03695451468229294, -0.0001309674116782844, -0.023277949541807175, -0.004796831868588924, -0.0021880962885916233, -0.023123586550354958, 0.0070158010348677635, -0.017597388476133347, -0.01861618459224701, 0.008327886462211609, -0.015112143009901047, 0.010404069907963276, 0.024960506707429886, -0.00949332769960165, 0.016022885218262672, -0.019619544968008995, 0.009933263063430786, 0.017381280660629272, 0.0029039550572633743, -0.0015725736739113927, 0.0004105092666577548, 0.03216926008462906, 0.014872880652546883, 0.005885091610252857, 0.005981568247079849, 0.01907927356660366, 0.006487107370048761, -0.017875241115689278, -0.008806412108242512, 0.002327023074030876, -0.03139744699001312, -0.0003475580597296357, 0.019187327474355698, 0.02188868075609207, -0.0024910338688641787, 0.02354036644101143, 0.013352404348552227, -0.012912469916045666, -0.009130574762821198, 0.022382643073797226, -0.03272496908903122, -0.0002672410337254405, -0.001504075014963746, 0.020236996933817863, 0.04130755364894867, -0.020036324858665466, 0.005248344037681818, -0.033126313239336014, 0.009663127362728119, -0.010774541646242142, 0.004692636895924807, 0.007664125878363848, 0.008505403995513916, 0.0034172122832387686, 0.008466813713312149, -0.005248344037681818, -0.016377920284867287, 0.003531054826453328, 0.00749046728014946, 0.00600086385384202, -0.028943073004484177, 0.0066414703615009785, 0.01716517098248005, 0.0012464816682040691, 0.009223192930221558, 0.007556071504950523, 0.015150734223425388, -0.009084265679121017, 5.788614726043306e-05, -0.02043766900897026, 0.007749025244265795, -0.016146374866366386, 0.008837285451591015, 0.01562925986945629, 0.006132072303444147, -0.00836647767573595, 0.035935718566179276, 0.0007597556686960161, 0.00897621177136898, -0.0009218368795700371, -0.008659767918288708, 0.0029753479175269604, 0.03534914180636406, 0.003799260826781392, 0.026920916512608528, 0.015065833926200867, 0.043345145881175995, -0.013035960495471954, -0.012881597504019737, 0.004592300858348608, 0.0006463953177444637, 0.024543726816773415, -0.016655772924423218, -0.007640971336513758, 0.014023883268237114, 0.019943706691265106, 0.012796697206795216, -0.00665690703317523, -0.002014437923207879, 0.00832016859203577, -0.015274224802851677, 0.020730959251523018, -0.004704214166849852, 0.02198129892349243, 0.03488605096936226, -0.003419141750782728, 0.019449744373559952, 0.030548449605703354, -0.00024119227600749582, 0.0628257617354393, -0.016192683950066566, 0.0037085723597556353, 0.008922184817492962, -0.03500954061746597, 0.029792070388793945, 0.003123922273516655, -0.016949063166975975, 0.01572187803685665, 0.0049511948600411415, 0.006606739014387131, -0.014942344278097153, 0.019094709306955338, -0.034114234149456024, -0.018878601491451263, 0.018060477450489998, -0.019727598875761032, -0.02724508009850979, 0.005514620337635279, 0.0027959009166806936, -0.01735040731728077, -0.026226283982396126, 0.06995733827352524, 0.04992101341485977, 0.037016261368989944, 0.017134299501776695, -0.016192683950066566, -0.01935712806880474, 0.041801515966653824, -0.017365843057632446, -0.005090121645480394, -0.024173254147171974, -0.058071382343769073, 0.011253067292273045, 0.015019525773823261, -0.005997004918754101, 0.002236334839835763, 0.047852545976638794, -0.003967130556702614, 0.010867158882319927, 0.010604741983115673, -0.012109781615436077, 0.002905884524807334, -0.020761830732226372, 0.013599385507404804, 0.0003277802898082882, 0.012788979336619377, -0.036645788699388504, 0.014556435868144035, 0.011808773502707481, 0.022490696981549263, 0.014294018968939781, -0.012395353056490421, 0.001979706110432744, -0.005429720506072044, -0.007166305091232061, -0.022614188492298126, -0.017010807991027832, -0.014857443980872631, 0.015312815085053444, -0.0023540365509688854, -0.00044210543273948133, -0.01687188260257244, 0.022984659299254417, 0.04075184836983681, 0.014286301098763943, -0.00888359360396862, 0.006973350886255503, 0.009146011434495449, -0.02071552164852619, -0.015474896878004074, -0.006514120846986771, 0.016022885218262672, -0.004457233473658562, -0.03463907167315483, -0.008312450721859932, -0.012734952382743359, -0.017967859283089638, -0.0015310886083170772, -0.009925544261932373, 0.011901391670107841, -0.007328385952860117, 0.0010786118218675256, -0.02480614371597767, 0.004592300858348608, -0.011283939704298973], "id": 9}, {"title": "Gourmet Night", "text": "\"Gourmet Night\" is the fifth episode in the first series of the BBC TV sitcom Fawlty Towers.", "vector": [-0.019300807267427444, 0.03594567999243736, -0.024250507354736328, 0.036156948655843735, 0.05160966515541077, -0.00436871312558651, -0.02621227689087391, 0.009740946814417839, -0.04756540060043335, 0.04859155789017677, 0.021549299359321594, 0.02732897736132145, -0.04693159833550453, 0.014253020286560059, -0.021519118919968605, -0.014177567325532436, -0.017957748845219612, 0.0019174424232915044, -0.01405684370547533, -0.008548794314265251, 0.013075958006083965, 0.001959884539246559, 0.03748491406440735, 0.023420527577400208, 0.007771630771458149, 0.028415497392416, 0.0061456249095499516, 0.011008553206920624, 0.02055332250893116, 0.002425805199891329, -0.04481891915202141, -0.006643612869083881, 0.020402418449521065, -0.04835010692477226, -0.08800806105136871, -0.030226362869143486, 0.03120724856853485, 0.0735815018415451, 0.03805835545063019, 0.00016528862761333585, -0.034496989101171494, -0.017520124092698097, 0.014253020286560059, 0.02001006342470646, -0.047987934201955795, -0.05260564386844635, -0.02281690575182438, -0.016388332471251488, -0.031327974051237106, -0.026242459192872047, 0.022394370287656784, 0.039265599101781845, 0.024310868233442307, 0.047655943781137466, 0.05372234061360359, 0.02029678411781788, 0.023541251197457314, 0.01337776891887188, -0.0020768363028764725, -0.033651918172836304, 0.0026050054002553225, -0.02334507368505001, -0.005225101485848427, 0.0006224850076250732, 0.007552817929536104, 0.03016600012779236, 0.008699699304997921, 0.0591549389064312, -0.005964538082480431, 0.0037650910671800375, 0.002208878519013524, 0.018908454105257988, -0.027721332386136055, 0.022424550727009773, -0.0007267040782608092, -0.04506037011742592, -0.0034613939933478832, -0.014305837452411652, -0.03733401000499725, -0.020930586382746696, -0.05483904108405113, 0.010163482278585434, 0.013777668587863445, 0.0019712024368345737, 0.0316297821700573, 0.02867203578352928, -0.022288735955953598, -0.05127767473459244, -0.007997988723218441, 0.07913482189178467, 0.025095578283071518, 0.02476358599960804, 0.015920525416731834, 0.003817908000200987, 0.015845073387026787, -0.003561368677765131, 0.008458251133561134, -0.020674047991633415, -0.006134307011961937, 0.03793762996792793, -0.021322941407561302, -0.06138833984732628, -0.030015096068382263, -0.019270626828074455, 0.006032445468008518, 0.02059859409928322, -0.011212275363504887, -0.03099597990512848, -0.006454980932176113, -0.05435614660382271, 0.03654929995536804, 0.010495474562048912, 8.506116137141362e-05, 0.04472837597131729, 0.016991954296827316, -0.026966804638504982, -0.03860161453485489, -0.007677315268665552, 0.0060928077436983585, -0.0009478749125264585, -0.04810865968465805, -0.038088537752628326, -0.025789743289351463, 0.013513583689928055, 0.011325454339385033, 0.012608150951564312, 0.012691148556768894, 0.004330986645072699, -0.07400403916835785, -0.05622737482190132, 0.0037858407013118267, 0.030875256285071373, 0.01000503171235323, -0.0003657099441625178, -0.0019655434880405664, 0.02059859409928322, -0.060030192136764526, 0.03920523822307587, -0.0027483655139803886, -0.014139841310679913, 0.028777670115232468, 0.012789237312972546, 0.005896630696952343, -0.021609662100672722, 0.023133806884288788, 0.02897384762763977, -0.020719319581985474, 0.01014839205890894, 0.007171781733632088, -0.0011233024997636676, 0.019768614321947098, 0.0005258112214505672, -0.005466550122946501, 0.02084004320204258, -0.03540242090821266, 0.012547789141535759, -0.0017505033174529672, -0.003783954307436943, -0.07545273005962372, 0.0038707249332219362, -0.06422536075115204, -0.008616701699793339, -0.03156942129135132, 0.01601106859743595, 0.005240192171186209, 0.031026162207126617, 0.008209256455302238, -0.002697434974834323, -0.030467811971902847, -0.0017948318272829056, 0.027374248951673508, -0.03322938084602356, 0.004259306471794844, -0.011989438906311989, 0.00789235532283783, 0.0535714365541935, 0.024582499638199806, 0.08082496374845505, 0.010918010026216507, -0.0018712276360020041, -0.020206240937113762, 0.02930583991110325, -0.027178073301911354, -0.04189135506749153, -0.06199195981025696, -0.021458756178617477, -0.028475860133767128, 0.03510060906410217, -0.02563883736729622, 0.007054829970002174, -0.011189639568328857, 0.04143863916397095, -0.005726862233132124, -0.06899397820234299, 0.01631288044154644, 0.03820926323533058, -0.0325653962790966, -0.00703973975032568, -0.016131794080138206, 0.06126761436462402, -0.010042757727205753, -0.0013015595031902194, -0.01197434775531292, -0.03974849730730057, -0.00789235532283783, 0.028838032856583595, -0.031388334929943085, 0.046267613768577576, 0.005745725240558386, 0.016146883368492126, 0.03836016729474068, -0.013445676304399967, -0.01658450998365879, 0.05130785331130028, 0.002569165313616395, -0.005149648524820805, -0.00884305965155363, 0.06476861983537674, 0.015950705856084824, -0.004798793699592352, -0.02950201742351055, -0.029954733327031136, -0.009891852736473083, 0.007156691048294306, 0.019602619111537933, -0.03603622317314148, -0.00337650952860713, -0.05483904108405113, -0.04059356823563576, 0.05405433475971222, -0.02082495205104351, -0.012608150951564312, -0.08197184652090073, -0.021519118919968605, -0.028626764193177223, 0.053299807012081146, 0.013739941641688347, -0.05064387246966362, 0.01572434790432453, 0.0006951082614250481, -0.023797789588570595, 0.05800805613398552, -0.01776157133281231, -0.006300302688032389, 0.018802819773554802, 0.007066147867590189, 0.03141851723194122, -0.012909961864352226, -0.038722340017557144, -0.038118720054626465, -0.010812375694513321, -0.00753772770985961, 0.017278674989938736, 0.013468312099575996, 0.024114692583680153, -0.0018731140298768878, 0.0024842810817062855, 0.04638833552598953, -0.00900905579328537, 0.029396383091807365, -0.06525152176618576, 0.010389840230345726, 0.029773646965622902, 0.01462273858487606, -0.0388430655002594, -0.0032029682770371437, -0.012140343897044659, -0.04678069055080414, -0.008050805889070034, 0.010767104104161263, 0.05272636562585831, -0.006673793774098158, 0.0054061878472566605, 0.04086519777774811, -0.01747485250234604, -0.04735413193702698, 0.032203223556280136, -0.016493966802954674, 0.034225355833768845, -0.0049798800610005856, 0.065432608127594, -0.0033802823163568974, -0.027751512825489044, -0.03377263993024826, -0.010155937634408474, 0.02900402806699276, -0.02588028647005558, 0.022364187985658646, 0.007439638953655958, 0.04415493831038475, -0.03410463407635689, -0.00860161054879427, 0.05514085292816162, 0.024688132107257843, 0.01024648081511259, 0.058672040700912476, 0.016207246109843254, 0.05139840021729469, 0.05903421342372894, 0.01012575626373291, 0.024537228047847748, 0.005617455579340458, -0.021292759105563164, 0.003246353706344962, -0.003949950449168682, 0.00754150003194809, -0.05160966515541077, -0.011325454339385033, -0.010072939097881317, -0.009046781808137894, 0.022847086191177368, -0.021277669817209244, -0.05173039063811302, 0.04189135506749153, -0.03063380718231201, 0.03959759324789047, -0.024537228047847748, -0.026619723066687584, 0.028536221012473106, -0.03040744923055172, 0.03175050765275955, 0.0049987430684268475, -0.032233405858278275, -0.022017106413841248, 0.06603622436523438, -0.020326964557170868, 0.031720325350761414, 0.020915497094392776, -0.0010186118306592107, -0.02563883736729622, 0.014456742443144321, -0.02025151252746582, -0.0018683981616050005, 0.05855131521821022, 0.022590545937418938, -0.00780935725197196, -0.015301813371479511, 0.02052314206957817, 0.010789739899337292, -0.049979887902736664, 0.022575456649065018, 0.070865198969841, 0.05761570483446121, 0.050855137407779694, -0.0016712779179215431, 0.07056339085102081, 0.04554326832294464, 0.016720324754714966, -0.004036720842123032, -0.0388430655002594, 0.0007625441066920757, 0.01069165114313364, -0.026649903506040573, 0.04134809598326683, -0.03253521770238876, 0.015196179039776325, -0.008993965573608875, -0.017671028152108192, 0.022605637088418007, 0.06344065070152283, -0.0055155945010483265, -0.030603626742959023, 0.022847086191177368, 0.03066398948431015, -0.01801811158657074, 0.008065897040069103, 0.035885319113731384, 0.02139839343726635, 0.012140343897044659, -0.020402418449521065, -0.06603622436523438, -0.026514088734984398, -0.02108149230480194, -0.032173044979572296, -0.002422032644972205, 0.011981893330812454, 0.018636824563145638, -0.02420523576438427, 0.004730885848402977, -0.020689137279987335, -0.012494971975684166, -0.032173044979572296, -0.016146883368492126, -0.03654929995536804, 0.002631413983181119, 0.03398390859365463, -0.004202716983854771, -0.027147890999913216, 0.014524649828672409, 0.008677063509821892, -0.03513079136610031, -0.010382295586168766, 0.007473592646420002, 0.015543261542916298, -0.004674296360462904, -0.0338028222322464, -0.01747485250234604, 0.020749500021338463, 0.03576459363102913, -0.06989941000938416, -0.004330986645072699, 0.039839040488004684, 0.0489235483109951, -0.0019268740434199572, -0.022454731166362762, 0.004678069148212671, 0.0247334036976099, 0.028249502182006836, 0.034798797219991684, 0.01715794950723648, -0.002959633246064186, 0.012774147093296051, -0.03923541679978371, 0.013702215626835823, 0.02281690575182438, 0.027510065585374832, 0.006413481663912535, 0.016539238393306732, 0.0001283875317312777, -0.006873743608593941, 0.04587525874376297, 0.04895373061299324, -0.0022843312472105026, 0.028249502182006836, -0.003410463221371174, 0.0049421535804867744, 0.021277669817209244, 0.006862425711005926, -0.036971837282180786, -0.03232394903898239, 0.008646883070468903, -0.026559360325336456, -0.02698189578950405, 0.02471831440925598, 0.005447687115520239, 0.0011534836376085877, -0.013340041972696781, 0.0676056444644928, 0.020432598888874054, 0.012268614023923874, 0.005994719453155994, -0.02195674367249012, 0.005028924439102411, 0.01025402545928955, -0.03796781226992607, -0.0009554201969876885, 0.026091553270816803, 0.003336896887049079, 0.032837025821208954, -0.004021630622446537, 0.019587527960538864, -0.030829984694719315, -0.03748491406440735, 0.020311875268816948, 0.0913279801607132, -0.013340041972696781, 0.010578472167253494, 0.020960768684744835, 0.036156948655843735, -0.013838030397891998, -0.004059356637299061, 0.02277163416147232, 0.041800811886787415, -0.028611674904823303, 0.016659962013363838, -0.004263079259544611, -0.0163581520318985, 0.021443665027618408, 0.003152037737891078, -0.006877516396343708, -0.00437248544767499, 0.00214474368840456, -0.05064387246966362, -0.013219318352639675, 0.0026446180418133736, 0.009167506359517574, -0.018787728622555733, 0.02591046690940857, 0.013777668587863445, -0.04506037011742592, -0.012849600054323673, 0.009552315808832645, 0.0507042333483696, 0.02109658345580101, 0.040895380079746246, 0.04204225912690163, 0.010465293191373348, -0.041800811886787415, -0.024009058251976967, 0.01742958091199398, -0.015384810976684093, -0.04146881774067879, 0.007930081337690353, 0.026936624199151993, -0.003112425096333027, -0.0030030186753720045, 0.032233405858278275, 0.02817404828965664, -0.0314788781106472, -0.006021127570420504, 0.010306842625141144, -0.04071429371833801, -0.00675301905721426, 0.053903430700302124, 0.013543765060603619, -0.013445676304399967, 0.019587527960538864, 0.05550302565097809, 0.01916499249637127, 0.036730386316776276, 0.007002013269811869, 0.05432596430182457, 0.002425805199891329, 0.04104628413915634, -0.006730383262038231, -0.02477867528796196, 0.0010572813916951418, -0.03826962411403656, 0.04916499927639961, -0.012668512761592865, 0.025186121463775635, -0.04340041056275368, -0.0224849134683609, -0.018244469538331032, -0.005168511997908354, 0.07104628533124924, -0.01579980179667473, 0.02477867528796196, 0.0006908640498295426, 0.007914991118013859, 0.012147889472544193, -0.017052317038178444, 0.00045719638001173735, -0.006730383262038231, -0.009763582609593868, 0.02025151252746582, -0.00640216376632452, 0.04665996879339218, 0.011423543095588684, -0.010940645821392536, 0.01394366379827261, -0.05483904108405113, -0.02052314206957817, -0.015241450630128384, 0.010752013884484768, 0.002024019369855523, -0.003127515548840165, -0.010223845019936562, 0.004338531754910946, -0.021730385720729828, -0.02023642137646675, 0.017293766140937805, 0.022077469155192375, 0.022017106413841248, -0.031961776316165924, -0.06440644711256027, -0.05987928435206413, 0.003008677624166012, -0.009167506359517574, 0.00913732498884201, 0.0338028222322464, 0.007960262708365917, -0.022183101624250412, 0.007300051394850016, -0.026634812355041504, 0.026363182812929153, -0.0012534584384411573, -0.017852116376161575, 0.003972586244344711, -0.009627767838537693, 0.0665191262960434, 0.031056342646479607, 0.01029929704964161, 0.01027666125446558, 5.597059862338938e-05, 0.05151912197470665, -0.0120950723066926, -0.033621735870838165, -0.014260565862059593, -0.03516096994280815, -0.002088154200464487, 0.0037254784256219864, 0.0033312379382550716, -0.010193663649260998, -0.0035160970874130726, 0.012411973439157009, -0.01631288044154644, 0.030045276507735252, -0.04451711103320122, 0.011906440369784832, 0.0377565436065197, 0.008850605227053165, -0.00668888445943594, -0.00857143010944128, -0.02986419014632702, 0.03099597990512848, 0.01265342254191637, 0.052454736083745956, 0.03190141171216965, -0.00971831101924181, 0.010495474562048912, 0.009212777949869633, 0.00019440866890363395, 0.015279177576303482, 0.006073944736272097, 0.052484918385744095, -0.029154933989048004, 0.01282696332782507, -0.020613685250282288, -0.014856642112135887, -0.0697786808013916, -0.009974850341677666, -0.026800809428095818, 0.010510564781725407, 0.028415497392416, -0.01632796972990036, 0.016418512910604477, 0.006371982861310244, 0.01800302043557167, -0.005858904216438532, 0.0014185112668201327, -0.0066851116716861725, 0.029713284224271774, 0.01913481205701828, 0.01572434790432453, 0.016825959086418152, 0.0020900405943393707, 0.010525655932724476, -0.02924547716975212, -0.0157394390553236, 0.006681338883936405, 0.013958754949271679, 0.014826460741460323, 0.001825012848712504, 0.015264087356626987, 0.013838030397891998, 0.0057985419407486916, -0.004798793699592352, 0.020040243864059448, 0.028475860133767128, 0.009408955462276936, -0.019255535677075386, -0.022288735955953598, 0.0205835048109293, -0.035583507269620895, -0.01223843265324831, 0.05182093381881714, 0.005376006942242384, -0.012434609234333038, 0.016735415905714035, -0.00857897475361824, 0.03639839589595795, 0.033682096749544144, 0.020160969346761703, 0.0019862931221723557, -0.022092558443546295, 0.046871233731508255, -0.0505533292889595, -0.01916499249637127, 0.014532195404171944, -0.05257546156644821, -0.0002349645073991269, 0.0060928077436983585, 0.015331994742155075, 0.02001006342470646, 0.011076460592448711, -0.005783451721072197, -0.019285717979073524, -0.012872235849499702, -0.0078697195276618, -0.03712274134159088, -0.036156948655843735, -0.020870225504040718, 0.010231389664113522, 0.01549798995256424, 0.015218814834952354, -0.014803824946284294, 0.0411670096218586, -0.0014826460974290967, -0.0005739122861996293, -0.03150906041264534, 0.005417505744844675, -0.02052314206957817, 0.008005534298717976, -0.0157394390553236, 0.021292759105563164, -0.03015091083943844, 0.02170020528137684, 0.021881291642785072, 0.018169017508625984, -0.0031671281903982162, 0.011996983550488949, 0.0003614657325670123, 0.04391348734498024, -0.018244469538331032, -0.016463784500956535, -0.004961017053574324, 0.0018061497248709202, 0.014675555750727654, 0.006651157978922129, -0.03516096994280815, -0.00457998039200902, -0.022620728239417076, -0.041559360921382904, -0.013038231059908867, 0.034798797219991684, -0.018108654767274857, 0.015369720757007599, -0.02447686530649662, -0.009914488531649113, -0.026861170306801796, -0.005213783588260412, 0.008661973290145397, -0.0014213407412171364, -0.04201208055019379, 0.028309863060712814, -0.045150913298130035, -0.01503772847354412, 0.010495474562048912, -0.008669518865644932, 0.02415996417403221, 0.007854629307985306, -0.04958753287792206, -0.041529182344675064, -0.010442657396197319, -0.02280181460082531, -0.027676060795783997, 0.016841048374772072, -0.003289738902822137, -0.002522007329389453, -0.034225355833768845, -0.04137827455997467, -0.004478119313716888, 0.007579226512461901, 0.0270573478192091, 0.006119216326624155, -0.038088537752628326, 0.004764840006828308, 0.0012553447159007192, -0.01693159155547619, 0.04439638555049896, 0.01997988298535347, 0.02956237830221653, -0.0010450202971696854, -0.013702215626835823, -0.00390467862598598, 0.01605634018778801, -0.0009375001536682248, -0.004361167550086975, -0.017550304532051086, 0.006364437751471996, 0.030452720820903778, -0.01886318251490593, -0.012019619345664978, -0.029683103784918785, -0.017806842923164368, 0.006134307011961937, -0.007960262708365917, -0.02417505346238613, 0.024144873023033142, 0.005130785517394543, -0.03359155356884003, -0.0017646506894379854, -0.0427967868745327, 0.03322938084602356, -0.001184607855975628, 0.015875253826379776, -0.01095573604106903, -0.009748492389917374, 0.01712776906788349, 0.017655938863754272, -0.009529680013656616, -0.04270624369382858, -0.03187123313546181, 0.02613682486116886, 0.01994970068335533, 0.0049232905730605125, 0.022982900962233543, -0.010985917411744595, -0.01546780951321125, -0.004527163691818714, -0.006477616727352142, 0.020191149786114693, 0.012110162526369095, -0.03657948225736618, -0.05311872065067291, 0.006070171948522329, 0.004734658636152744, -0.007032194174826145, 0.026333002373576164, -0.027796784415841103, -0.02983400784432888, -0.014200203120708466, -0.02026660367846489, -0.0077791763469576836, -0.03437626361846924, 0.02563883736729622, 0.027404431253671646, -0.03778672590851784, -0.01774648204445839, 0.010480384342372417, 0.007715041283518076, 0.008910967037081718, 0.03042254038155079, -0.0182595606893301, -0.01095573604106903, -0.025955738499760628, -0.02503521554172039, -0.03778672590851784, -0.018968814983963966, 0.01109909638762474, 0.011151913553476334, 0.022409459576010704, -0.020613685250282288, 0.010525655932724476, 0.05553320795297623, -0.013392859138548374, -0.009771128185093403, 0.008352616801857948, -0.005711771547794342, -0.05803823843598366, 0.01634306088089943, -0.008043261244893074, 0.020900405943393707, -0.015588534064590931, 0.09519115835428238, -0.008692154660820961, 0.01911972090601921, -0.00428948737680912, 0.026272639632225037, -0.030845075845718384, -0.015000002458691597, -0.024537228047847748, -0.00874497089534998, -0.04415493831038475, -0.02192656323313713, 0.006039991043508053, 0.050251517444849014, -0.01685613952577114, -0.012487426400184631, -0.004032948520034552, 0.0031633556354790926, -0.022877266630530357, 0.021202215924859047, -0.020221330225467682, 0.012351611629128456, 0.004357395227998495, -0.00014430333976633847, 0.010880283080041409, 0.05061369016766548, -0.020206240937113762, 0.04415493831038475, 0.03510060906410217, -0.005360916256904602, -0.0022220828104764223, 0.027132801711559296, -0.04644870012998581, 0.014034206978976727, -0.0011751762358471751, 0.032505035400390625, 0.0056815906427800655, 0.026936624199151993, 0.006511570420116186, 0.02394869551062584, 0.013822940178215504, -0.04976861923933029, -0.005568411201238632, -0.007405685260891914, 0.01195171196013689, -0.054175060242414474, -0.02898893877863884, -0.027781695127487183, 0.03657948225736618, -0.01503018382936716, -0.03431589901447296, 0.009356138296425343, 0.022711271420121193, -0.04445674642920494, -0.0002225855423603207, 0.02396378666162491, -0.039778679609298706, 0.05432596430182457, -0.010646379552781582, -0.01862173341214657, -0.011778171174228191, -0.006224850192666054, 0.008684609085321426, -0.010201209224760532, 0.0010101234074681997, -0.005032696761190891, 0.031026162207126617, 0.01042002160102129, -0.07376258820295334, 0.06476861983537674, 0.0009723970433697104, 0.040684111416339874, 0.0006248428835533559, -0.007194417528808117, 0.025548294186592102, -0.023797789588570595, -0.005723089445382357, 0.030543264001607895, 0.06875252723693848, 0.01476609893143177, 0.018138835206627846, -0.002005156362429261, 0.030905436724424362, -1.7315811362550448e-07, -0.03144869580864906, -0.01549798995256424, -0.023163987323641777, 0.014343563467264175, 0.031690146774053574, 0.002273013349622488, 0.04385312646627426, 0.0013864438515156507, 0.021534208208322525, 0.012396883219480515, 0.024054329842329025, 0.01911972090601921, 0.006466298829764128, 0.03229376673698425, 0.007307596504688263, -0.003770750015974045, -0.001344001735560596, -0.06718310713768005, 0.04421529918909073, -0.04146881774067879, 0.00639839144423604, -0.013483402319252491, -0.013415494933724403, -0.01637324132025242, -0.011785715818405151, 0.0010148391593247652, -0.023163987323641777, 0.025789743289351463, -0.03582495450973511, -0.02986419014632702, -0.02447686530649662, 0.011929076164960861, 0.03959759324789047, -0.009642858989536762, 0.01112173218280077, -0.00010634119098540395, 0.00971076637506485, 0.018093563616275787, 0.028340045362710953, 0.004568662494421005, -0.004715795628726482, -0.04756540060043335, 0.045422542840242386, -0.01721831224858761, -0.029668012633919716, 0.02423541620373726, -0.014509559608995914, -0.028008053079247475, 0.00944668147712946, -0.03627767041325569, -0.010910464450716972, -0.004059356637299061, -0.01423038449138403, -0.01294014323502779, 0.0035802319180220366, 0.010963281616568565, -0.01352112926542759, -0.02417505346238613, 0.008088532835245132, 0.02818913944065571, -0.005145876202732325, -0.0052779181860387325, 0.0026936624199151993, -0.02844567783176899, -0.010472838766872883, -0.017097588628530502, -0.010118210688233376, 0.009989941492676735, 0.02055332250893116, 0.007156691048294306, -0.027359159663319588, 0.021624751389026642, 0.008511067368090153, 0.004564890172332525, -0.019361170008778572, -0.016146883368492126, 0.0205835048109293, 0.0365191213786602, -0.03491952270269394, 0.003152037737891078, 0.009046781808137894, -0.00372736481949687, 0.004904427099972963, -0.011672536842525005, -0.008956238627433777, 0.012502516619861126, -0.007967808283865452, 0.04337022826075554, 0.002752138301730156, 0.006345574278384447, -0.047112684696912766, -0.011846078559756279, -0.040623750537633896, -0.018169017508625984, -0.022635817527770996, -0.01656941883265972, -0.001535463030450046, 0.033621735870838165, -0.03817908093333244, -0.0052779181860387325, 0.022997992113232613, 0.027962781488895416, -0.02618209645152092, 0.04077465459704399, -0.04777666926383972, 0.022152921184897423, 0.023511070758104324, 0.007160463836044073, 0.005606137681752443, -0.006055081263184547, 0.0009247675188817084, 0.0541146956384182, -0.022741451859474182, -0.002488053636625409, -0.01774648204445839, -0.06507043540477753, -0.016418512910604477, 0.03654929995536804, -0.02873239852488041, 0.006447435822337866, 0.032837025821208954, -0.002263581845909357, 0.0258953757584095, 0.004561117384582758, -0.005085513927042484, 0.00818662066012621, -0.02135312184691429, -0.013853120617568493, -0.02197183482348919, 0.04672032967209816, -0.010767104104161263, 0.01661469042301178, 0.004059356637299061, -0.0039989943616092205, 0.005542003083974123, 0.007937626913189888, -0.006447435822337866, -0.009401409886777401, -0.00983149092644453, 0.016780687496066093, -0.007292506285011768, -0.010880283080041409, -0.019798796623945236, -0.0010808603838086128, 0.008518612943589687, 0.005674045067280531, -0.005111922509968281, 0.0267102662473917, -0.006243713200092316, -0.04898391291499138, 0.006300302688032389, -0.005907948594540358, -0.007156691048294306, 0.014290746301412582, 0.04026157408952713, -0.004097083117812872, 0.016509056091308594, -0.015196179039776325, -0.03178068995475769, -0.013196682557463646, 0.007884809747338295, -0.06645876169204712, -0.030015096068382263, -0.004304578062146902, -0.0015533830737695098, -0.0004847837844863534, 0.011182093992829323, 0.04638833552598953, -0.005621228367090225, 0.016509056091308594, 0.03259557858109474, 0.0009143927600234747, 0.004606388974934816, -0.02001006342470646, -0.0043498496524989605, -0.006319166161119938, -0.017384309321641922, -0.022952720522880554, 0.015588534064590931, -0.00319919572211802, -0.029758555814623833, -0.041499000042676926, -0.013423040509223938, 0.016524147242307663, 0.08263582736253738, 0.0033897138200700283, 0.013898392207920551, 0.010020121932029724, -0.010880283080041409, -0.006039991043508053, -0.005723089445382357, -0.020643865689635277, -0.008880785666406155, -0.04587525874376297, -0.013106138445436954, 0.014637828804552555, 0.01970825344324112, 0.006073944736272097, -0.008926058188080788, 0.013566400855779648, -0.0028351363725960255, 0.022394370287656784, -0.03573441132903099, 0.061780694872140884, -0.03410463407635689, -0.005251510068774223, 0.021232398226857185, -0.0008219631854444742, 0.022937629371881485, 0.00414235470816493, 0.013694670051336288, 0.009899398311972618, -0.013340041972696781, -0.03205231949687004, 0.007952717132866383, 0.027977870777249336, -0.0019032950513064861, 0.015513081103563309, 0.004444165620952845, 0.0019825203344225883, -0.012872235849499702, 0.03685111179947853, -0.03627767041325569, 0.02085513435304165, 0.034738436341285706, 0.018727367743849754, 0.005360916256904602, -0.036156948655843735, 0.001176119432784617, 0.014532195404171944, -0.022168012335896492, 0.0025238937232643366, -0.025804832577705383, 0.0020353372674435377, 0.03413481265306473, -0.009484407491981983, 0.012079982087016106, 0.03519115224480629, -0.02838531695306301, 0.00507419602945447, 0.012623241171240807, 0.005689135752618313, -0.0024465546011924744, -0.012472336180508137, 0.013166501186788082, 0.03383300453424454, 0.0157394390553236, -0.003766977461054921, 0.03914487361907959, 0.00048761325888335705, -0.010631289333105087, 0.05523139610886574, -0.01862173341214657, -0.014690645970404148, 0.04252515733242035, -0.011566903442144394, 0.005945675075054169, 0.001008237130008638, 0.04859155789017677, -0.03905433043837547, -0.01447183359414339, -0.006802063435316086, 0.027917509898543358, 0.016765596345067024, -0.0399295836687088, 0.0186066422611475, -0.03633803501725197, 0.01940644159913063, -0.015286723151803017, -0.016222337260842323, 0.005123240407556295, -0.006681338883936405, -0.012555333785712719, 0.006866198033094406, -0.0028973848093301058, 0.006311620585620403, 0.010186118073761463, 0.03144869580864906, -0.02281690575182438, 0.016433604061603546, 0.05004024878144264, 0.01607143133878708, 0.023299802094697952, 0.015150907449424267, -0.02559356577694416, 0.010171027854084969, -0.006175805814564228, -0.0027879783883690834, -0.012955233454704285, -0.019753525033593178, -0.022620728239417076, 0.006990695372223854, -0.011219820939004421, 0.01581489108502865, 0.003702842630445957, 0.01070674229413271, 0.000751697807572782, 0.0054627773351967335, -0.006296530365943909, -0.01854628138244152, 3.849268250633031e-05, -0.013453221879899502, -0.01100100763142109, 0.012721329927444458, 0.028340045362710953, -0.01886318251490593, 0.024114692583680153, 0.0014590671053156257, 0.019255535677075386, 0.0041800811886787415, 0.004342304542660713, 0.007764085661619902, 0.0025106894318014383, 0.0037782953586429358, -0.021594570949673653, 0.0011487677693367004, -0.01631288044154644, -0.012736420147120953, -0.005492958705872297, -0.021187126636505127, 0.0174446702003479, -0.0020504279527813196, -0.06989941000938416, -0.005553320981562138, 0.03820926323533058, 0.027917509898543358, 0.014871732331812382, 0.018169017508625984, 0.0005380722577683628, -0.05091550201177597, -0.023797789588570595, -0.049949705600738525, 0.01967807114124298, -0.02956237830221653, 0.007417003158479929, -0.008209256455302238, -0.004840292502194643, 0.016493966802954674, 0.040684111416339874, -0.020643865689635277, 0.012668512761592865, -0.007786721456795931, -0.016841048374772072, -0.019889339804649353, -0.015369720757007599, -0.01141599752008915, -0.01770121045410633, 0.0003954194544348866, 0.004568662494421005, 0.0038669523783028126, 0.010563381947577, -0.008729880675673485, 0.01282696332782507, -0.006703974679112434, 0.008103623054921627, 0.012411973439157009, 0.020311875268816948, -0.02340543642640114, -0.007975352928042412, 0.021775657311081886, 0.006654930766671896, -0.03374246135354042, 0.040925558656454086, 0.013340041972696781, -0.009348592720925808, 0.03494970500469208, -0.013332497328519821, 0.008073441684246063, -0.012298794463276863, -0.010261571034789085, -0.033923547714948654, 0.011770625598728657, -0.004263079259544611, -0.016237426549196243, 0.03144869580864906, 0.026333002373576164, -0.01629778929054737, -0.03745473548769951, -0.018169017508625984, -0.021504027768969536, -0.021836020052433014, 0.01658450998365879, -0.0301207285374403, -0.0003664173127617687, -0.008797788061201572, 0.009620223194360733, 0.02987927943468094, -0.006824699230492115, 0.007571681402623653, 0.007884809747338295, 0.016237426549196243, 0.03751509636640549, -0.010623743757605553, -0.04340041056275368, -0.024657951667904854, 0.004957244265824556, -0.06446681171655655, -0.02788732759654522, -0.01853119023144245, 0.0029181342106312513, -0.012608150951564312, -0.010284206829965115, -0.0393863245844841, -0.002584255998954177, 0.029366202652454376, 0.028219319880008698, -0.01294014323502779, -0.00124779948964715, 0.005598592571914196, 0.02200201526284218, -0.002273013349622488, 0.00828470941632986, -0.01631288044154644, -0.044094573706388474, -0.013158955611288548, 0.005670272745192051, -0.0253521166741848, 0.02139839343726635, -0.024612680077552795, -0.01853119023144245, -0.016192154958844185, -0.03627767041325569, 0.00927314069122076, -0.03006036765873432, 0.005704226437956095, 0.028641855344176292, 0.018380284309387207, -0.04533199965953827, 0.0038273397367447615, 0.02029678411781788, -0.029336020350456238, 0.005028924439102411, 0.003359532682225108, -0.07340041548013687, -7.786957576172426e-05, -0.011981893330812454, 0.025714289397001266, 0.03063380718231201, -0.0013977617491036654, 0.007628270890563726, -0.02809859625995159, -0.012600605376064777, 0.013279680162668228, 0.011363181285560131, -0.009605132043361664, 0.016146883368492126, 0.00814134906977415, 0.010171027854084969, -0.005262827966362238, -0.00228999019600451, 0.013475857675075531, -0.021036220714449883, 0.003191650379449129, -0.00675301905721426, -0.019572436809539795, -0.014690645970404148, -0.0017212653765454888, -0.003965040668845177, 0.018908454105257988, -0.022952720522880554, 0.006971831899136305, 0.019587527960538864, -0.003783954307436943, -0.01126509252935648, 0.03350101038813591, 0.002737047616392374, 0.019059360027313232, -0.006345574278384447, -0.005511821713298559, 0.021292759105563164, -0.04807847738265991, -0.02332998439669609, 0.006100352853536606, 0.03178068995475769, -0.014456742443144321, 0.004651660565286875, 0.025487931445240974, 0.007417003158479929, 0.017957748845219612, -0.011672536842525005, 0.004395121242851019, 0.030030185356736183, -0.005730634555220604, 0.007239689119160175, 0.0039989943616092205, 0.02698189578950405, 0.0010233275825157762, 0.014305837452411652, 0.007466047536581755, 0.0050515602342784405, -0.004304578062146902, -0.007990444079041481, 0.00375754595734179, 0.01774648204445839, -0.0007111419690772891, 0.033319924026727676, 0.021307850256562233, 0.016222337260842323, -0.02142857387661934, 0.030603626742959023, -0.0051647392101585865, 0.004210262093693018, 0.012042255140841007, -0.010653925128281116, -0.0016099725617095828, -0.0011883804108947515, -0.026830989867448807, -0.02557847462594509, -0.03190141171216965, -0.0013241954147815704, -0.004557344596832991, 0.005153421312570572, -0.005504276603460312, -0.05097586289048195, -0.03522133454680443, -0.007013331167399883, 0.028521131724119186, -0.014735917560756207, 0.04578471556305885, 0.006187123712152243, 0.00041027419501915574, -0.013687124475836754, 0.02447686530649662, -0.007526409812271595, -0.022303827106952667, 0.019270626828074455, 0.009929578751325607, 0.025563383474946022, -0.026302821934223175, 0.007567908614873886, -0.015113181434571743, -0.0038348848465830088, 0.001167631009593606, -0.0005465606809593737, 0.0007535841432400048, 0.005964538082480431, 0.006353119853883982, 0.009242959320545197, -0.025955738499760628, 0.031086523085832596, -0.001592052518390119, 0.001062940340489149, 0.00299358693882823, -0.018229378387331963, -0.06165996938943863, 0.007288733497262001, 0.007545272819697857, 0.031720325350761414, 0.01629778929054737, 0.031358152627944946, 0.027706241235136986, -0.02613682486116886, -0.003184105036780238, 0.015633804723620415, 0.011514086276292801, -0.011348090134561062, -0.018123745918273926, -0.0099823959171772, -0.0062210774049162865, -0.012736420147120953, -0.017505032941699028, -0.002650276990607381, -0.018636824563145638, 0.0007988557335920632, 0.023782700300216675, -0.01447183359414339, -0.018727367743849754, 0.009899398311972618, -0.019195174798369408, -0.01364939846098423, 0.0008012136677280068, -0.026529179885983467, -0.005036469548940659, 0.007945172488689423, -0.03404426947236061, 0.01853119023144245, 0.010223845019936562, 0.016946682706475258, -0.007424548268318176, 0.011544267646968365, 0.005044014658778906, -0.034738436341285706, 0.031116705387830734, 0.017037225887179375, 0.009642858989536762, -0.00625503109768033, 0.00648516183719039, -0.006405936554074287, 0.0056815906427800655, -0.015384810976684093, 0.021820928901433945, -0.03175050765275955, 0.018968814983963966, -0.024869218468666077, 0.003118084045127034, 0.007405685260891914, 0.004791248124092817, 0.05830986797809601, -0.02840040624141693, -0.005119467619806528, -0.018063383176922798, 0.01604125089943409, 0.0005616512498818338, -0.007058602757751942, -0.01881791092455387, 0.02108149230480194, 0.006304075475782156, 0.00930332113057375, 0.0019334761891514063, 0.04789739102125168, 0.025186121463775635, 0.026061372831463814, -0.01579980179667473, 0.005809859838336706, -0.038692157715559006, -0.004613934550434351, 0.010616199113428593, 0.02366197481751442, -0.04071429371833801, -0.006002264562994242, 0.023767609149217606, -0.0077791763469576836, -0.020975857973098755, 7.480430940631777e-05, -0.0267102662473917, -0.021217307075858116, 0.0523340106010437, -0.015528171323239803], "id": 10}, {"title": "817 Squadron RAN", "text": "817 Squadron was a Royal Australian Navy Fleet Air Arm squadron. It was originally formed as part of the Royal Navy's Fleet Air Arm for service during World War II and took part in combat operations in Norway, North Africa, Sicily and off the coast of France. Following the conclusion of hostilities, the squadron was disbanded in 1945. In 1950, it was re-raised as part of the Royal Australian Navy and subsequently took part in the Korean War.", "vector": [-0.03873995319008827, 0.019384324550628662, -0.01606990583240986, -0.022784831002354622, -0.0018580828327685595, -0.025754893198609352, 0.014262041077017784, 0.018193429335951805, 0.009670639410614967, 0.015539024956524372, 0.030360642820596695, -0.03552597016096115, -0.017691245302557945, 0.06640314310789108, 0.018021252006292343, 0.04938626289367676, -0.039945196360349655, 0.030963264405727386, 0.010402394458651543, -0.03564075380563736, 0.007374939043074846, 4.141901808907278e-05, 0.021522196009755135, -0.03739122673869133, -0.01402529701590538, 0.011815684847533703, -0.028638867661356926, 0.02683100290596485, -0.02021651528775692, -0.039514750242233276, 0.004272155929356813, -0.02124958112835884, 0.001189101254567504, 0.015653809532523155, -0.009455418214201927, 0.009663465432822704, 0.007335481699556112, 0.03739122673869133, -0.04783666506409645, 0.005258589517325163, 0.012009385041892529, -0.05911429598927498, -0.0192121472209692, 0.048324503004550934, 0.014721181243658066, -0.006614488083869219, -0.03351723402738571, 0.006955256219953299, -0.01782037690281868, -0.007489724084734917, 0.046889688819646835, 0.0608360730111599, -0.024822264909744263, 0.05194023251533508, 0.013558982871472836, -0.008895840495824814, 0.03285721689462662, 0.10600398480892181, -0.029284533113241196, -0.027433624491095543, -0.017203407362103462, -0.03650164231657982, 0.022354386746883392, -0.024894006550312042, 0.02218220941722393, -0.03767818957567215, 0.004178892821073532, -0.009268891997635365, -0.0485253781080246, -0.013587679713964462, -0.010969145223498344, -0.01792081445455551, 0.02129262499511242, 0.06978930532932281, -0.00878105591982603, -0.009677814319729805, 0.04046172648668289, 0.04318787157535553, -0.0077264681458473206, 0.040806081146001816, 0.010883056558668613, 0.01365224551409483, -0.0435035303235054, 0.015754247084259987, 0.007862775586545467, 0.04927147924900055, -0.08792534470558167, -0.05782296508550644, -0.02124958112835884, -0.03664512559771538, -0.0485253781080246, 0.04554096609354019, 0.05248546227812767, -0.03624337539076805, 0.03380419313907623, -0.021063055843114853, 0.005950887221843004, -0.01947041228413582, -0.00919715128839016, -0.025281405076384544, -0.02701753005385399, 0.014764226041734219, 0.03162327781319618, 0.05125151947140694, 0.0055706617422401905, 0.04551227018237114, -0.02340180054306984, 0.02218220941722393, -0.031365010887384415, 0.033861588686704636, 0.005775122437626123, 0.026529692113399506, 0.00047034965245984495, -0.032225899398326874, -0.03928517922759056, 0.01657208986580372, -0.01856647990643978, -0.009670639410614967, -0.015266411006450653, 0.03681730106472969, 0.005133043508976698, 0.00826452299952507, -0.003759210230782628, -0.005567074753344059, -0.005269350949674845, -0.046000104397535324, 0.04186784476041794, 0.009706510230898857, -0.006072846241295338, 0.017031230032444, 0.0011774434242397547, -0.0369894802570343, 0.0271610114723444, -0.005344678647816181, 0.010796967893838882, 0.02060391567647457, -0.060893464833498, 0.008278870955109596, 0.012052429839968681, -0.018509088084101677, 0.04238437861204147, -0.017346888780593872, 0.04318787157535553, -0.006861993111670017, 0.037161655724048615, 0.025640109553933144, 0.017834726721048355, 0.027146661654114723, 0.000986433937214315, -0.005384135991334915, 0.03199633210897446, 0.018437348306179047, -0.001724465866573155, 0.007920168340206146, -0.044852256774902344, -0.019011272117495537, -0.04100695624947548, 0.004103565122932196, 0.01842299848794937, 0.02934192679822445, 0.00020928092999383807, -0.03954344615340233, -0.05986040085554123, 0.037764277309179306, -0.0009433895465917885, 0.011794162914156914, -0.002319016493856907, -0.02919844537973404, 0.02457834780216217, 0.021837854757905006, 0.016471654176712036, 0.03851038217544556, 0.02157958783209324, 0.007052105851471424, 0.01082566473633051, 0.0019423781195655465, -0.012647876515984535, 0.04881234094500542, -0.003452518954873085, -0.008573007769882679, -0.034693777561187744, 0.023129185661673546, -0.048181019723415375, 0.012317869812250137, -0.06887102872133255, -0.019240843132138252, 0.02601316012442112, 0.01817908138036728, 0.005437941290438175, -0.02826581709086895, -0.017432978376746178, -0.04482355713844299, 0.014039645902812481, 0.04069129750132561, -0.019398672506213188, 0.016256431117653847, -0.031824152916669846, 0.025496628135442734, -0.009254544042050838, 0.028610171750187874, 0.000238313470617868, -0.045167915523052216, -0.05133761093020439, -0.014441393315792084, -0.012798531912267208, -0.018451696261763573, 0.0123250437900424, 0.05423593148589134, -0.017332540825009346, 0.011349370703101158, 0.008766707964241505, -0.018078643828630447, 0.007174065336585045, 0.007009061519056559, 0.04031824693083763, -0.0006232468876987696, 0.025281405076384544, 0.018810398876667023, 0.06582922488451004, 0.03248416632413864, -0.012655050493776798, -0.047922756522893906, 0.0071920002810657024, 0.045024432241916656, -0.004817384760826826, -0.02046043425798416, -0.025984464213252068, -0.012281999923288822, -0.0057966448366642, -0.015539024956524372, -0.05744991451501846, -0.014075515791773796, -0.025525324046611786, 0.012927665375173092, -0.02383224479854107, -0.019456064328551292, 0.0027117966674268246, 0.02139306254684925, 0.003570890985429287, -0.032512862235307693, -0.04143739864230156, 0.017490370199084282, -0.01892518438398838, -0.04998888447880745, 0.04436441883444786, 0.002744079800322652, -0.0009613247239030898, 0.020474782213568687, -0.024822264909744263, -0.016902096569538116, 0.020991314202547073, -0.010323479771614075, -0.05142369866371155, -0.007131020538508892, 0.00644948473200202, -0.006227088626474142, -0.04264264181256294, 0.039486054331064224, -0.023416148498654366, -0.01578294299542904, -0.026271427050232887, 0.042843516916036606, 0.028222771361470222, 0.0012240748619660735, -0.013185931369662285, -0.023674415424466133, -0.053547222167253494, -0.04683229699730873, 0.053977664560079575, -0.022139165550470352, -0.025955768302083015, -0.009010626003146172, -0.02107740379869938, 0.02891148254275322, 0.015352499671280384, -0.013924860395491123, -0.005093586165457964, 0.0033126245252788067, -0.012138518504798412, 0.02872495725750923, -0.033861588686704636, 0.0017872389871627092, -0.022598305717110634, -0.031680673360824585, -0.08867144584655762, 0.031508494168519974, 0.0031494146678596735, 0.020517826080322266, 0.0738641768693924, 0.07053540647029877, 0.009082366712391376, 0.03449290618300438, -0.023315710946917534, 0.027821024879813194, 0.017260801047086716, 0.03931387513875961, -0.016729919239878654, 0.006399265956133604, 0.03159458190202713, -0.03902691602706909, -0.00883844867348671, -0.013171583414077759, 0.01875300705432892, 0.029758021235466003, -0.05156718194484711, 0.018379954621195793, -0.031365010887384415, -0.008738011121749878, 0.027103617787361145, -0.00937650352716446, 0.0027656021993607283, 0.06410744786262512, -0.01717471145093441, -0.017045577988028526, 0.002744079800322652, -0.048209719359874725, -0.05592901259660721, -0.017031230032444, -0.026429256424307823, -0.005997518543154001, 0.016371216624975204, 0.029815414920449257, -0.020847832784056664, 0.0010814903071150184, 0.032398078590631485, -0.019456064328551292, 0.024563999846577644, 0.012174388393759727, -0.013845945708453655, 0.009971950203180313, 0.06158217415213585, -0.008199956268072128, -0.00420400220900774, 0.014749878086149693, -0.0004905267269350588, 0.011198715306818485, 0.014484437182545662, 0.04614358767867088, 0.02150784805417061, -0.028437994420528412, 0.007991908118128777, -0.04915669560432434, 0.012296347878873348, 0.04163827374577522, -0.06433701515197754, 0.041552186012268066, 0.005283698905259371, -0.010761098004877567, 0.025711849331855774, -0.03756340593099594, 0.00046855612890794873, 0.020187819376587868, 0.05478116124868393, -0.028667563572525978, 0.03475117310881615, -0.06714925169944763, -0.016127297654747963, 0.007453853730112314, -0.03968692943453789, 0.009548680856823921, 0.039055611938238144, 0.01925519108772278, -0.012726791203022003, -0.03337375074625015, -0.0009218673803843558, 0.005319569259881973, 0.0019477587193250656, 0.010380872525274754, 0.021880898624658585, -0.018437348306179047, 0.02869626134634018, 0.06984669715166092, -0.04740622267127037, -0.022928312420845032, 0.019226495176553726, -0.011586114764213562, -0.03495204448699951, -0.04396267235279083, 0.04436441883444786, -0.005441528279334307, 0.019527805969119072, 0.0022687981836497784, -0.04046172648668289, -0.046574030071496964, 0.04975931718945503, -0.032512862235307693, 0.009943254292011261, 0.012411132454872131, 0.0030400101095438004, -0.004383353982120752, 0.01379572693258524, 0.04304439201951027, -0.045024432241916656, 0.010423916392028332, 0.019484760239720345, -0.028524082154035568, 0.010947623290121555, 0.013975079171359539, 0.0681823119521141, -0.00012868479825556278, -0.03727644309401512, -0.005255002528429031, -0.011650681495666504, 0.06789535284042358, -0.011500026099383831, -0.008824099786579609, -0.04473746940493584, 0.011062408797442913, -0.03102065809071064, 0.011327848769724369, 0.024233991280198097, 0.008967581205070019, -0.014893359504640102, 0.0008492299821227789, -0.005165326874703169, 0.03736253082752228, -0.026142293587327003, -0.006180457305163145, 0.02407616190612316, -0.03394767642021179, 0.007504072040319443, 0.01906866580247879, -0.0027135901618748903, 0.06336134672164917, 0.0014939990360289812, 0.025697501376271248, -0.018150385469198227, 0.0015522883040830493, 0.04476616531610489, -0.04740622267127037, -0.019398672506213188, -0.03785036876797676, 0.032225899398326874, -0.00710232462733984, -0.07214239984750748, -0.00511510856449604, -0.052255891263484955, 0.01238243654370308, 0.015653809532523155, 0.009957602247595787, -0.050648901611566544, -0.014247693121433258, -0.07128150761127472, -0.030532822012901306, 0.017002534121274948, -0.02193829044699669, 0.018982576206326485, 0.007697771769016981, -0.010423916392028332, 0.021880898624658585, -0.03618598356842995, -0.009082366712391376, -0.010237391106784344, -0.012009385041892529, 0.029901502653956413, 0.008300392888486385, 0.04720534756779671, 0.022957008332014084, -0.020245211198925972, -0.009390851482748985, 0.0377068854868412, 0.04975931718945503, 0.014584874734282494, -0.02908365987241268, 0.007575812749564648, -0.026601433753967285, 0.008386482484638691, -0.040203459560871124, -0.021378714591264725, -0.06416483968496323, -0.0009048289502970874, -0.0011657855939120054, -0.004487377591431141, 0.00948411412537098, -0.04330265894532204, 0.017834726721048355, -0.010854360647499561, -0.0071202595718204975, 0.0235739778727293, -0.00786994956433773, 0.036042504012584686, -0.020474782213568687, 0.004125087521970272, 0.011234586127102375, 0.01581163890659809, -0.07483984529972076, -0.014039645902812481, -0.0072386316023766994, -0.06295959651470184, 0.049644529819488525, 0.025884026661515236, -0.012439829297363758, 0.00888866651803255, -0.01261200662702322, -0.007098737638443708, -0.04100695624947548, -0.02723275125026703, -0.009398025460541248, 0.009433895349502563, -0.022196557372808456, 0.01180851086974144, 0.03015976957976818, -0.00570696871727705, -0.00761168310418725, 0.012669399380683899, 0.019484760239720345, 0.00906801875680685, 0.04387658089399338, -0.006370570044964552, 0.012533091939985752, 0.021636979654431343, 0.02196698822081089, -0.022139165550470352, -0.0019029207760468125, -0.012296347878873348, -0.03635816276073456, 0.023631369695067406, -0.015194670297205448, 0.010201520286500454, -0.025697501376271248, 0.0235739778727293, 0.012439829297363758, -0.001899333787150681, -0.03641555458307266, 0.02017347142100334, -0.048066236078739166, 0.030360642820596695, 0.01782037690281868, 0.005211958196014166, 0.010366524569690228, 0.02321527525782585, -0.019872160628437996, -0.026199685409665108, -0.0033861587289720774, 0.00114964391104877, 0.025023140013217926, -0.027275795117020607, 0.01681600883603096, -0.0036659473553299904, 0.00913975853472948, -0.0037054046988487244, 0.016342520713806152, 0.008451048284769058, -0.041380006819963455, -0.061696961522102356, 0.0034901825711131096, 0.0018356639193370938, 0.018767355009913445, -0.023157881572842598, -0.027462320402264595, -0.036013808101415634, 0.02168002538383007, -0.009075192734599113, 0.03635816276073456, 0.022411778569221497, -0.03231199085712433, -0.018882138654589653, 0.00434748362749815, 0.022153513506054878, -0.05882733315229416, 0.00018787082808557898, -0.013185931369662285, 0.06714925169944763, -0.00019930450071115047, -0.03030325099825859, 0.022713089361786842, -0.0398591049015522, -0.002200644463300705, -0.03308678790926933, -0.018953880295157433, 0.05228458717465401, 0.0023530933540314436, -0.000391883309930563, -0.005412832368165255, -0.005599357653409243, -0.03170936927199364, 0.043130479753017426, 0.014893359504640102, 0.02153654396533966, -0.03466508165001869, -0.004042585846036673, -0.023516586050391197, 0.009957602247595787, 0.04462268576025963, 0.003244471037760377, -0.0051043471321463585, 0.002984411083161831, -0.0014787542168051004, -0.014692485332489014, -0.02955714799463749, -0.028653215616941452, -0.013099842704832554, 0.03664512559771538, 0.000426184298703447, 0.01010825764387846, 0.046172283589839935, -0.05736382305622101, 0.008049300871789455, 0.008687793277204037, -0.03173806518316269, -0.033287663012742996, 0.02203872799873352, 0.012253303080797195, 0.023530934005975723, -0.0369320884346962, 0.028452342376112938, 0.022268299013376236, 0.0246500875800848, 0.005240654572844505, 0.00828604493290186, 0.05076368525624275, -0.02941366657614708, 0.005936538800597191, 0.02064695954322815, -0.013444198295474052, -0.05911429598927498, 0.02618533745408058, 0.012418306432664394, 0.0318528488278389, -0.01599816605448723, 0.0492427833378315, -0.008329089730978012, 0.0275484099984169, 0.006725686136633158, 0.03159458190202713, -0.02289961650967598, -0.022440476343035698, 0.001337963156402111, 0.025984464213252068, 0.034578993916511536, -0.004336722195148468, 0.03670251742005348, -0.009491288103163242, 0.000607105263043195, 0.009986299090087414, 0.005595770664513111, 0.03810863569378853, -0.03928517922759056, 0.010976319201290607, -0.031393710523843765, 0.0077192941680550575, -0.023387452587485313, -0.010667834430932999, -0.011507200077176094, 0.008063648827373981, -0.019413020461797714, -0.015940772369503975, -0.016658179461956024, 0.00585045013576746, -0.030791087076067924, 0.003441757755354047, 0.0018491152441129088, -0.02103435806930065, 0.012597658671438694, 0.02747667022049427, -0.02776363119482994, 0.028739305213093758, 0.026888396590948105, 0.016084253787994385, -0.0622708834707737, 0.01343702431768179, -0.0057177296839654446, -0.03845299035310745, -0.010423916392028332, 0.03687469661235809, -0.012841576710343361, -0.0015307661378756166, 0.01667252741754055, 0.00544870225712657, 0.014864662662148476, 0.012834402732551098, -0.00670057674869895, 0.044852256774902344, 0.008357785642147064, -0.006826122757047415, -0.019011272117495537, -0.013960730284452438, 0.007970386184751987, 0.01551032904535532, -0.006097955163568258, 0.019126057624816895, -0.025554019957780838, -0.030389340594410896, 0.0015495980624109507, 0.011636333540081978, -0.0010689357295632362, 0.049328871071338654, -0.007898645475506783, -0.002853484358638525, -0.018580827862024307, -0.03578423708677292, -0.013558982871472836, -0.015524677000939846, -0.010947623290121555, -0.010617616586387157, 0.0355546660721302, -0.024463562294840813, -0.012310695834457874, -0.03027455508708954, 0.02307179383933544, 0.002892941702157259, 0.025668805465102196, 0.010718053206801414, -0.021766113117337227, -0.03971562534570694, -0.019240843132138252, -0.00121421052608639, -0.004386940971016884, 0.010868708603084087, 0.046746209263801575, -0.04172436147928238, 0.000966705265454948, 0.0012617387110367417, 0.03437811881303787, -0.005326743237674236, 0.026744915172457695, 0.009498462080955505, -0.005972409155219793, 0.003088434925302863, -0.013924860395491123, 0.023703111335635185, 0.008824099786579609, -0.0005541965365409851, 0.005940125789493322, 0.012411132454872131, 0.017691245302557945, 0.041666969656944275, -0.046602725982666016, -0.02640056051313877, 0.030475428327918053, -0.049214087426662445, -0.01064631249755621, -0.01573989912867546, 0.015180321410298347, -0.04244177043437958, 0.010266087017953396, 0.022196557372808456, 0.002710003172978759, -0.008903014473617077, 0.0023477128706872463, 0.011370893567800522, -0.017877770587801933, -0.005405657924711704, 0.004322374239563942, 0.014678137376904488, -0.014627918601036072, 0.010553049854934216, -0.05664641782641411, -0.018595177680253983, -0.011643507517874241, -0.0723719671368599, -0.010244565084576607, 0.013408327475190163, -0.04318787157535553, -0.018939532339572906, 0.015036840923130512, 0.012798531912267208, -0.03366071358323097, -0.008931711316108704, 0.06112303584814072, 0.019656937569379807, 0.0752989873290062, -0.02486531063914299, 0.008257349021732807, 0.04777927324175835, -0.03825211524963379, 0.0006958843441680074, -0.01064631249755621, 0.025195317342877388, 0.016399912536144257, -0.0012115202844142914, 0.04292960464954376, -0.03727644309401512, -0.010990668088197708, -0.01799255609512329, 0.05851167440414429, -0.013272020034492016, 1.6043563846324105e-06, -0.018839094787836075, -0.04651663824915886, 0.009111062623560429, -0.009663465432822704, -0.0006555301952175796, -0.016830356791615486, 0.017834726721048355, -0.001691285870037973, -0.014068341813981533, -0.010696531273424625, -0.013996601104736328, 0.01870996132493019, 0.02579793892800808, 0.022340038791298866, 0.012891795486211777, -0.013429850339889526, 0.025195317342877388, 0.002304668538272381, -0.0019172688480466604, -0.008221478201448917, -0.0449383445084095, 0.02172306925058365, 0.007740816101431847, 0.004067694768309593, 0.02239743061363697, 0.020560869947075844, 0.008393656462430954, -0.023602673783898354, -0.03337375074625015, -0.0024068988859653473, -0.03538249060511589, 0.01971433125436306, -0.0005564384046010673, -0.003004139754921198, 0.026630129665136337, 0.026386210694909096, -0.002297494327649474, -0.017547763884067535, -0.016414260491728783, -0.015983816236257553, -0.010746749117970467, -0.014534655958414078, -0.00027821920230053365, 0.008415178395807743, -0.023315710946917534, 0.007048518862575293, 0.0018688439158722758, -0.00684405816718936, -0.05027584731578827, -0.008601703681051731, 0.00701264850795269, 0.0008227755897678435, -0.032541558146476746, -0.036013808101415634, -0.030647605657577515, -0.03664512559771538, 0.012827228754758835, 0.02462139166891575, 0.029327578842639923, -0.027247099205851555, -0.009225848130881786, 0.04215480759739876, 0.0031978394836187363, -0.01236091461032629, 0.00088779057841748, -0.033574625849723816, -0.02297135628759861, 0.024492258206009865, 0.0006120374309830368, -0.01343702431768179, -0.03750601410865784, -0.030102377757430077, 0.03452160209417343, 0.006144586950540543, -0.02086218073964119, -0.023602673783898354, 0.046287067234516144, -0.010122605599462986, -0.020618263632059097, -0.02594142034649849, -0.02165132947266102, -0.009347806684672832, -0.0016697637038305402, 0.03796515241265297, -0.001644654432311654, 0.016299476847052574, 0.02124958112835884, -0.027892764657735825, -0.02117783948779106, -0.0013110603904351592, -0.0063956789672374725, -0.006438723299652338, 0.02701753005385399, -0.01456335186958313, -0.02347354032099247, -0.006890689488500357, -0.0347798690199852, 0.009347806684672832, -0.02289961650967598, -0.012504395097494125, -0.01073240116238594, 0.01839430257678032, -0.021923942491412163, 0.01573989912867546, -0.0007510349387302995, 0.004422811325639486, 0.03102065809071064, 0.044134847819805145, 0.0032462645322084427, -0.034578993916511536, 0.01856647990643978, -0.004770753439515829, 0.03896952047944069, -0.017834726721048355, -0.008522788994014263, -0.0028570713475346565, 0.0036246965173631907, 0.0064207883551716805, 0.023057445883750916, 0.02053217403590679, -0.01368811633437872, 0.04089217260479927, -0.0019674873910844326, -0.006424375344067812, -0.012748314067721367, -0.02414790354669094, 0.014749878086149693, -0.025166619569063187, -0.048640161752700806, 0.008343437686562538, -0.04826711118221283, -0.016615135595202446, 0.01585468463599682, -0.008795403875410557, -0.04955844208598137, 0.03736253082752228, -0.039486054331064224, -0.039514750242233276, -0.03162327781319618, -0.00171101454179734, 0.017232105135917664, -0.018308214843273163, 0.0063956789672374725, 0.011564592830836773, 0.005567074753344059, -0.04711925983428955, -0.022842222824692726, -0.015452936291694641, 0.01300658006221056, 0.027318840846419334, -0.018451696261763573, -0.017662547528743744, 0.014656615443527699, -0.010101083666086197, -0.039773017168045044, -0.035296399146318436, -0.0177773330360651, 0.020632611587643623, -0.008250175043940544, 0.022354386746883392, 0.04447920247912407, -0.021694373339414597, -0.020273908972740173, 0.008960407227277756, -0.028222771361470222, -0.010560223832726479, 0.03127892315387726, -0.05248546227812767, -0.008099519647657871, -0.005082825198769569, -0.000463623960968107, 0.011830033734440804, 0.008522788994014263, 0.010158476419746876, -0.044708773493766785, -0.02651534415781498, 0.0006949875387363136, -0.02766319550573826, -0.037046872079372406, -0.052083712071180344, -0.0005923087592236698, 0.01599816605448723, -0.028667563572525978, 0.0063885049894452095, 0.04433572292327881, 0.010976319201290607, 0.0035565427970141172, -0.025137923657894135, -0.046459246426820755, 0.007669075392186642, -0.02987280674278736, 0.00801343098282814, 0.022885268554091454, 0.028036246076226234, -0.006876341532915831, 0.0010976319899782538, -0.04204002022743225, 0.009398025460541248, -0.006040562875568867, 0.05119412764906883, 0.0037914933636784554, 0.007862775586545467, -0.08069388568401337, 0.0049716271460056305, -0.008085171692073345, -0.019298234954476357, 0.01218156237155199, 0.02350223809480667, -0.01870996132493019, 0.04338874667882919, -0.00585045013576746, -0.004483790602535009, -0.022354386746883392, 0.03420594334602356, -0.0017262594774365425, 0.029528452083468437, 0.03288591280579567, 0.04186784476041794, 0.004946517758071423, -0.003061532275751233, -0.022784831002354622, -0.008192782290279865, -0.012447003275156021, 0.007306785322725773, -0.010811315849423409, 0.03489465266466141, 0.008451048284769058, 0.0028301686979830265, 0.03380419313907623, 0.004548357333987951, -0.03274243324995041, -0.023416148498654366, -0.015596417710185051, 0.009111062623560429, -0.0015782943228259683, -0.012475699186325073, 0.014003775082528591, -0.006836884189397097, 0.08092345297336578, 0.003920626360923052, 0.037305139005184174, 0.04445050656795502, 0.010596094653010368, -0.017648199573159218, 0.018021252006292343, -0.03452160209417343, -0.03581293299794197, 0.044134847819805145, -0.008350611664354801, 0.007762338500469923, 0.03188154473900795, 0.00865909643471241, -0.049041908234357834, -0.005975996144115925, -0.0012464937753975391, -0.012942013330757618, -0.007539942394942045, 0.028237121179699898, -0.015352499671280384, 0.06732142716646194, -0.00309560913592577, -0.0007550703594461083, -0.02114914357662201, 0.005907842423766851, 0.021923942491412163, 0.030446732416749, 0.006417201366275549, -0.0096060736104846, -0.015008144080638885, 0.046574030071496964, 0.03323027119040489, -0.011779814958572388, -0.009541506879031658, -0.006915798876434565, 0.008494093082845211, -0.009017799980938435, 0.010596094653010368, 0.021522196009755135, -0.04975931718945503, -0.0022939073387533426, -0.014412696473300457, -0.034148551523685455, 0.008845622651278973, 0.01105523481965065, -0.02651534415781498, -0.015338150784373283, -0.03173806518316269, -0.02562575973570347, -0.03684599697589874, 0.0173899345099926, 0.009168455377221107, -0.018021252006292343, 0.0005900668329559267, 0.027806676924228668, -0.003420235589146614, 0.005714142695069313, 0.016873400658369064, -0.0037627972196787596, -0.005473811645060778, 0.004928582813590765, 0.0010205107973888516, 0.008465397171676159, 0.01842299848794937, -0.0031745238229632378, 0.007783860433846712, -0.017648199573159218, -0.009778250940144062, 0.0011505406582728028, -0.001546907820738852, 0.020632611587643623, -0.04961583390831947, 0.008515615016222, -0.0033467013854533434, 0.02436312474310398, -0.03345983847975731, -0.006370570044964552, -0.020661307498812675, -0.0022957008332014084, -0.0181073397397995, 0.0550394281744957, -0.017189059406518936, -0.019585197791457176, 0.022210905328392982, -0.004476616624742746, 0.023961378261446953, 0.001879605115391314, 0.018049947917461395, -0.025051835924386978, 0.017160363495349884, 0.007489724084734917, 0.030331946909427643, -0.0006129341782070696, 0.007582986727356911, 0.0005855830386281013, -0.023416148498654366, 0.006237849593162537, 0.030188465490937233, 0.020374344661831856, -0.019771723076701164, -0.017016882076859474, 0.012942013330757618, 0.023000052198767662, 0.002866039052605629, -0.00292522506788373, 0.021737417206168175, 0.014276389963924885, -0.015395543538033962, -0.011966340243816376, -0.03939996659755707, -0.014764226041734219, 0.022454824298620224, 0.005082825198769569, 0.03234068676829338, -0.03871125727891922, 0.004695425741374493, -0.011980689130723476, 0.0015854684170335531, -0.0003806738241109997, 0.0011370893334969878, 0.00479586236178875, 0.012389610521495342, -0.009900209493935108, -0.014735530130565166, -0.06031953915953636, -0.0020141187123954296, 0.03564075380563736, -0.01419030036777258, 0.006180457305163145, -0.011256108060479164, 0.04522530734539032, -0.022512216120958328, 0.02165132947266102, -0.008745185099542141, -0.014340955764055252, 0.010639138519763947, 0.00828604493290186, -0.01456335186958313, -0.019628241658210754, -0.028237121179699898, 0.004426398314535618, -0.031651973724365234, 0.010689357295632362, 0.008623226545751095, 0.003283928381279111, -0.017074275761842728, 0.004067694768309593, -0.015768595039844513, -0.024965746328234673, -0.014979448169469833, -0.04513921961188316, -0.009046495892107487, 0.023947030305862427, 0.01856647990643978, 0.006639597471803427, -0.01767689734697342, -0.004677490331232548, -0.016973838210105896, -0.005315982270985842, -0.029112355783581734, 0.030963264405727386, 0.002110968576744199, -0.013358109630644321, -0.021995684131979942, 0.005215545184910297, 0.024894006550312042, 0.01753341592848301, 0.007016235496848822, -0.0048389071598649025, -0.04740622267127037, -0.010782619938254356, 0.006230675615370274, 0.02246917225420475, -0.02579793892800808, 0.027935810387134552, 0.010574571788311005, 0.010954797267913818, -0.006632423028349876, -0.006592965684831142, -0.02371745929121971, -0.0036659473553299904, -0.004275742918252945, 0.010237391106784344, -0.02483661286532879, -0.012274825014173985, 0.01741863042116165, -0.008623226545751095, 0.005606532096862793, -0.009806946851313114, -0.0005398484063334763, -0.006270132958889008, -0.007848427630960941, 0.03799384832382202, 0.017432978376746178, -0.026673173531889915, 0.0031691433396190405, 0.018164733424782753, -0.004820971749722958, 0.03750601410865784, 0.029958896338939667, 0.04519661143422127, -0.02637186273932457, -0.0007523800595663488, 0.001624925760552287, 0.01236091461032629, 0.0063813310116529465, -0.037620797753334045, 0.019542153924703598, 0.017117319628596306, 0.06215609982609749, 0.0012581517221406102, -0.010452613234519958, 0.027634499594569206, -0.020159123465418816, 0.021852202713489532, 0.0033933327067643404, 0.0035206724423915148, 0.013142887502908707, 0.012152866460382938, -0.014556177891790867, -0.009369328618049622, 0.013171583414077759, 0.005893494468182325, -0.03902691602706909, -0.01311419066041708, -0.0034166486002504826, -0.006022627465426922, -0.027950158342719078, 0.04307308793067932, -0.0027835373766720295, 0.0163138248026371, 0.028882786631584167, -0.01257613580673933, 0.01315006148070097, -0.020976966246962547, -0.03348853439092636, -0.012353739701211452, -0.001990803051739931, -0.014470089226961136, 0.011069582775235176, 0.012547439895570278, -0.0405765138566494, 0.01127045601606369, -0.021923942491412163, 0.006582204718142748, -0.007956038229167461, 0.003759210230782628, -0.03162327781319618, -0.0006604623631574214, -0.009649117477238178, 0.0162851270288229, -0.014735530130565166, 0.0030400101095438004, 0.0637630894780159, 0.011837207712233067, -0.014477263204753399, 0.018437348306179047, -0.024176599457859993, -0.02582663483917713, -0.02397572621703148, -0.02762015163898468, 0.007109498605132103, -0.003461486427113414, -0.003827363718301058, 0.03030325099825859, -0.008379308506846428, 0.03271373733878136, 0.01419030036777258, 0.042413074523210526, 0.026127945631742477, 0.010739575140178204, -0.030504124239087105, 0.03394767642021179, 0.009885861538350582, 0.010129779577255249, 0.015051188878715038, -0.03348853439092636, 0.0010985287372022867, -0.0202882569283247, 0.014032470993697643, -0.004498139023780823, -0.013932034373283386, 0.007453853730112314, -0.028280165046453476, -0.020130427554249763, 0.011966340243816376, 0.010653486475348473, -0.002358473837375641, -0.02307179383933544, -0.03041803650557995, 0.01635686866939068, -0.02017347142100334, 0.008056474849581718, 0.023803548887372017, 0.05130891501903534, 0.013680942356586456, -0.007884297519922256, -0.009986299090087414, 0.006922972854226828, 0.020202167332172394, 0.03561205789446831, 0.004394114948809147, 0.008343437686562538, 0.023961378261446953, -0.02944236248731613, -0.007582986727356911, -0.0036838825326412916, -0.004110739100724459, -0.03512422367930412, 0.005968822166323662, -0.007683423813432455, -0.005527617409825325, -0.007374939043074846, -0.03248416632413864, 0.005233480595052242, -0.006560682784765959, 0.008099519647657871, 0.03523900732398033, -0.022139165550470352, -0.0003409922937862575, 0.03277112916111946, -0.02397572621703148, 0.008917363360524178, -0.009383677504956722, -0.00971368420869112, -0.00021241958893369883, -0.028796697035431862, -0.009125410579144955, -0.003565510269254446, -0.005208371207118034, 0.008573007769882679, -0.014498786069452763, 0.006445897743105888, -0.011543070897459984, -0.016686875373125076, -0.0033520818687975407, 0.018451696261763573, 0.031680673360824585, -0.020474782213568687, 0.0015558754093945026, -0.017432978376746178, 0.0054917470552027225, 0.03911300376057625, -0.0064279623329639435, 0.001273396541364491, 0.013659420423209667, -0.058482978492975235, -0.009670639410614967, -0.019699983298778534, 0.007396460976451635, -0.024176599457859993, 0.004125087521970272, 0.024305732920765877, 0.020029990002512932, -0.0016410674434155226, 0.0008635781123302877, 0.035726845264434814, 0.0009048289502970874, -0.027964506298303604, 0.012310695834457874, 0.026988832280039787, 0.05133761093020439, -0.013874641619622707, 0.003011313732713461, -0.008501267060637474, 9.920386946760118e-05, 0.0021235232707113028, 0.024320080876350403, -0.021378714591264725, -0.006750795058906078, -0.016199039295315742, -0.015008144080638885, -0.0005434354534372687, 0.019915204495191574, -0.015495981089770794, 0.005534791387617588, -0.0235739778727293, 0.021493498235940933, -0.035009436309337616, 0.002245482290163636, 0.02021651528775692, 0.015180321410298347, 0.013458546251058578, 0.042413074523210526, 0.00040129927219823003, -0.019628241658210754, 0.027146661654114723, -0.021593935787677765, 0.027433624491095543, 0.035870324820280075, -0.00764037948101759, 0.02479356899857521, 0.007292437367141247, 0.01868126541376114, 0.004928582813590765, 0.02632881887257099, 0.007855601608753204, -0.009534332901239395, -0.016486002132296562, -0.01039522048085928, 0.028739305213093758, -0.005007497500628233, -0.010531527921557426, 0.01889648847281933, 0.0043187872506678104, 0.00445509422570467, 0.014003775082528591, -0.0033054505474865437, 0.03001628816127777, -0.00037708680611103773, 0.0061625218950212, 0.006327525246888399, 0.045282699167728424, -0.03449290618300438, 0.000626833934802562, -0.015983816236257553, 0.012447003275156021, -0.013063972815871239, -0.022024380043148994, -0.001338859903626144, 0.004182479809969664, -0.0355546660721302, -0.02411920763552189, -0.04815232381224632, -0.009584550745785236, 0.023028749972581863, -0.019169101491570473, 0.0012491841334849596, -0.0005802024970762432, 0.018724309280514717, 0.013680942356586456, -0.003120718291029334, 0.02081913687288761, 0.010043690912425518, -0.009111062623560429, -0.042700037360191345, -0.0009227641276083887, 0.003827363718301058, -0.015452936291694641, -0.03308678790926933, -0.048783641308546066, -0.022282646968960762, 0.05624467134475708, 0.02246917225420475, 0.02343049645423889, -0.04981670901179314, -0.020259559154510498, 0.006352634634822607, 0.01932693086564541, -0.01263352856040001, -0.05331765115261078, 0.019183449447155, 0.007518420461565256, -0.03285721689462662, 0.018293866887688637, -0.02922714129090309, 0.022813526913523674, 0.025683153420686722, -0.034722473472356796, -0.041380006819963455, 0.024449214339256287, 0.015625113621354103, 0.025539672002196312, 0.007582986727356911, -0.015424240380525589, -0.01456335186958313, -0.008271696977317333, 0.024994442239403725, 0.017619503661990166, -0.01023021712899208, -0.0003501840401440859, -0.0376494936645031, 0.01443421933799982, 0.03228329122066498, -0.00278174364939332, -0.01203808095306158, -0.011177193373441696, 0.0014401936205103993, 0.01820777729153633, 0.018021252006292343, -0.053547222167253494, 0.015381195582449436, -0.02060391567647457, 0.013953556306660175, 0.005785883404314518, -0.02225394919514656, -0.03245547041296959, -0.002996965777128935, -0.012525917962193489, -0.02193829044699669, -0.02912670373916626, 0.021278277039527893, -0.032972004264593124, -0.005907842423766851, -0.04083477705717087, 0.00047483344678767025, 0.010631964541971684, 0.0056495764292776585, -0.02057521790266037, -0.010696531273424625, 0.021134795621037483, 0.028007550165057182, -0.013085494749248028, -0.019513458013534546, -0.012109821662306786, 0.01792081445455551, 0.016557741910219193, -0.006704163737595081, 0.01741863042116165, -0.016930794343352318, 0.017088623717427254, -0.009641943499445915, 0.017935162410140038, -0.005628054030239582, -0.013680942356586456, 0.01507988478988409, -0.019398672506213188, 0.011134149506688118, 0.023660067468881607], "id": 11}, {"title": "The Standard (Philippines)", "text": "The Standard is a majority broadsheet newspaper in the Philippines. It is owned by the Romualdez family. Romualdezes also owns Journal Publications, Inc., the proprietor of the People's Journal, a tabloid newspaper.Initially established as the Manila Standard, it merged with another newspaper of record, Today, on March 6, 2005 and became Manila Standard Today or MST and recently rebranded as The Standard.", "vector": [-0.001696532592177391, -0.02142198197543621, -0.025242570787668228, 0.0060270181857049465, -0.011845489032566547, -0.033083949238061905, -0.023273883387446404, -0.018168644979596138, -0.004170946776866913, 0.00034462448093108833, 0.062297262251377106, 0.02527593821287155, -0.032766956835985184, -0.0422433502972126, -0.036003611981868744, -0.019970493391156197, -0.01796843856573105, -0.0033075606916099787, 0.03700463846325874, 0.02150540240108967, 0.003680860623717308, -0.007849722169339657, -0.03677106648683548, 0.016441872343420982, 0.010727674700319767, 0.017534660175442696, -0.004450400359928608, -0.03970741480588913, -0.01414785161614418, -0.0008607791387476027, -0.01277143880724907, 0.0014327202225103974, 0.0003678253560792655, -0.01838553324341774, -0.02597665600478649, 0.021839076653122902, 0.0398075170814991, 0.01096124853938818, -0.043911729007959366, -0.012754755094647408, 0.04588041454553604, 0.014314689673483372, 0.006047872826457024, 0.021188409999012947, -0.013405422680079937, -0.03335088863968849, -0.07988197356462479, 0.00032116289366967976, -0.04354468360543251, 0.024291593581438065, 0.009376288391649723, 0.010569179430603981, -0.011336633004248142, 0.029580354690551758, -0.0022231147158890963, 0.03313400223851204, -0.0050927260890603065, 0.08028238266706467, 0.022589847445487976, -0.08195076137781143, 0.005947770085185766, -0.022756686434149742, -0.0014942416455596685, 0.0036433220375329256, 0.0010057195322588086, 0.03416839614510536, 0.005597410723567009, -0.043811626732349396, 0.03750515356659889, -0.027628351002931595, -0.024875527247786522, 0.019570082426071167, 0.02667737565934658, 0.029930714517831802, -0.03607034683227539, 0.029964081943035126, 0.05862682685256004, -0.026694059371948242, -0.03241659700870514, 0.05685834586620331, 0.012362685985863209, -0.011353316716849804, 0.007311669643968344, -0.01706751435995102, -0.0093429209664464, -0.011703676544129848, -0.018652474507689476, -0.054188940674066544, -0.035302892327308655, 0.03640402480959892, 0.06112939491868019, 0.033000532537698746, 0.017701497301459312, -0.06800311803817749, 0.06920434534549713, 0.008650543168187141, -0.028646063059568405, 0.007745448034256697, -0.016316743567585945, -0.020687896758317947, 0.021789025515317917, 0.008020730689167976, 0.037238214164972305, -0.0006788215832784772, 0.05819305032491684, -0.0039957668632268906, 0.024391695857048035, 0.013071747496724129, 0.017918387427926064, 0.047248486429452896, 0.022606531158089638, -0.0418095700442791, 0.02424154244363308, 0.0036349801812320948, -0.08181729167699814, 0.045112960040569305, -0.003970741294324398, -0.008817381225526333, 0.04614735394716263, -0.004788246937096119, -0.05041840299963951, -0.012179164215922356, -0.0026840041391551495, -0.06713555753231049, 0.0038581257686018944, -0.061963584274053574, 0.014164535328745842, 0.0015213527949526906, 0.02193918079137802, -0.0037455102428793907, -0.06780291348695755, -0.0011553522199392319, 0.008183397352695465, -0.016675444319844246, -0.03191608563065529, 0.0157494954764843, 0.023357301950454712, -0.015899648889899254, -0.02527593821287155, -0.014456501230597496, 0.033601146191358566, -0.02375771291553974, -0.0019196782959625125, 0.0127797806635499, -0.014815202914178371, -0.01504877582192421, 0.039874251931905746, 0.04294406622648239, 0.04891686514019966, -0.013363713398575783, -0.03994098678231239, -0.033083949238061905, -0.0026840041391551495, 0.01465670671314001, -0.026610640808939934, 0.03224975988268852, -0.05088555067777634, -0.029847295954823494, -0.06563401967287064, 0.017601395025849342, -0.03910679742693901, 0.04881676286458969, -0.012788122519850731, -0.006410744972527027, 0.02706110291182995, -0.022689949721097946, 0.09109348058700562, 0.011845489032566547, 0.0013388738734647632, 0.018819311633706093, -0.02911320887506008, 0.018001805990934372, -0.06326492130756378, -0.06279777735471725, -0.03727158159017563, -0.0067986431531608105, -0.022005915641784668, 0.03550310060381889, 0.043911729007959366, 0.01536576822400093, 0.03940710425376892, 0.0038310145027935505, -0.004771563224494457, -0.04174283519387245, -0.007457653060555458, 0.0323665477335453, 0.05202004685997963, 0.0505518764257431, -0.02263989858329296, -0.02859601192176342, -0.010277212597429752, 0.06213042140007019, 0.008608833886682987, -0.039874251931905746, -0.047548793256282806, 0.02627696469426155, 1.1111663297924679e-05, -0.016433529555797577, -0.04070844128727913, -0.008016559295356274, 0.04454571008682251, 0.046814706176519394, 0.029463568702340126, -0.002713200869038701, 0.018819311633706093, 0.0008070782059803605, -0.014990382827818394, 0.0090926643460989, 0.017134249210357666, 0.04721511900424957, -0.026110127568244934, -0.047115013003349304, -0.006243907380849123, 0.03290042653679848, -0.017451241612434387, 0.0013409593375399709, 0.0231237281113863, -0.002239798428490758, 0.07794665545225143, -0.021071624010801315, 0.016650419682264328, -0.06356523185968399, -0.025342673063278198, -0.011378343217074871, 0.02495894581079483, -0.009518100880086422, -0.024007970467209816, -0.004679802339524031, 0.0015682759694755077, 0.02515915036201477, 0.020154014229774475, -0.001731985597871244, 0.02282342128455639, 0.04264375939965248, -0.00864220131188631, 0.01990375854074955, -0.01708419807255268, -0.032283127307891846, -0.07627827674150467, 0.011903882026672363, 0.0007012404385022819, -0.012304292991757393, -0.016341770067811012, -0.018452268093824387, 0.004779905080795288, 0.025426091626286507, -0.04327774420380592, -0.05952775105834007, -0.01808522455394268, 0.022906839847564697, -0.004150092136114836, -0.04881676286458969, 0.030347809195518494, 0.03403492644429207, -0.0013711987994611263, 0.004888349678367376, 0.002446260303258896, 0.022806737571954727, 0.010585863143205643, -0.012504498474299908, 0.005793445277959108, -0.01668378710746765, 0.02666069194674492, -0.0036662621423602104, 0.0018591994885355234, 0.01718430034816265, -0.018252063542604446, 0.020053911954164505, 0.023073676973581314, 0.06279777735471725, -0.005101067945361137, 0.03647075966000557, 0.02666069194674492, -0.008496218360960484, -0.005192828830331564, 0.029346780851483345, 0.05822641775012016, 0.04297743737697601, -0.012104087509214878, -0.008492047898471355, 0.03375130146741867, -0.013789149932563305, 0.0024817134253680706, -0.01938655972480774, 0.0026005853433161974, -0.0032658514101058245, 0.017901703715324402, -0.05789273977279663, 0.03243328258395195, 0.015974726527929306, -0.008175055496394634, 0.014564946293830872, 0.02727799117565155, 0.046714603900909424, 0.03730494901537895, -0.03366788104176521, -0.007666200399398804, 0.020888101309537888, 0.010343948379158974, -0.0011782924411818385, -0.006398232188075781, 0.015599341131746769, -0.0255595613270998, -0.02072126418352127, 0.04918380454182625, 0.021572137251496315, -0.03830597549676895, 0.007991533726453781, -0.023490771651268005, -0.06660167872905731, -0.016058145090937614, -0.021755658090114594, -0.03413502871990204, -0.022372959181666374, -0.02504236437380314, -0.012496156617999077, -0.0017278146697208285, -0.04070844128727913, 0.0021751488093286753, -0.041575998067855835, 0.06900414079427719, -0.024908894672989845, 0.01424795389175415, -0.005793445277959108, 0.05392200127243996, -0.0359368771314621, 0.04351131618022919, 0.041976407170295715, -0.017551343888044357, 0.0006136505398899317, 0.011937249451875687, -0.023107044398784637, 0.0098434342071414, -0.029330097138881683, 0.013121798634529114, 0.000133144436404109, 0.035202790051698685, -0.016033118590712547, -0.019069569185376167, -0.0049217171035707, -0.0015839170664548874, 0.023373985663056374, 0.028729481622576714, 0.025843186303973198, 0.017801601439714432, -0.01041068322956562, 0.03183266520500183, 0.047148384153842926, 0.031098579987883568, 0.020270802080631256, 0.0008951894706115127, 0.01622498221695423, -0.00878401380032301, 0.047014910727739334, 0.06336501985788345, -0.0060562146827578545, -0.02857932820916176, -0.018969465047121048, 0.036737699061632156, -0.01414785161614418, 0.02789529226720333, -0.005488966125994921, -0.01000193040817976, 0.023173781111836433, 0.05095228552818298, -0.06256420165300369, -0.008600492030382156, 0.043778255581855774, -0.02909652516245842, -0.00033915010862983763, 0.005247050896286964, -0.0042647928930819035, -0.000218192653846927, -0.00040510320104658604, 0.027711769565939903, 0.02769508585333824, -0.0018487721681594849, 0.05518996715545654, -0.021438665688037872, -0.033484362065792084, -0.0638655349612236, 0.04928390681743622, 0.007165686693042517, 0.000961924612056464, -0.0013472158461809158, -0.0806160569190979, -0.015123853459954262, 0.01212911307811737, 0.02525925450026989, 0.013213559053838253, 0.009509759023785591, 0.011169795878231525, 0.07434295862913132, 0.01908625289797783, 0.012154138647019863, -0.033684566617012024, -0.01606648787856102, -0.014256295748054981, 0.06326492130756378, 0.006573412101715803, -0.04988452419638634, -0.03760525584220886, 0.05008472874760628, 0.04604725167155266, 0.021889127790927887, -0.021555453538894653, -0.016516949981451035, -0.015499237924814224, 0.008658885955810547, -0.03173256292939186, -0.02739477902650833, -0.030848322436213493, -0.06303134560585022, 0.05372179299592972, -0.012237558141350746, -0.02232290804386139, -0.04921717196702957, 0.005722539033740759, 0.01090285461395979, -0.01494867354631424, 0.06453289091587067, 0.017818285152316093, -0.013046721927821636, 0.05589068681001663, 0.009860117919743061, 0.0336511991918087, -0.02515915036201477, 0.0050259907729923725, -0.006473309360444546, 0.034602172672748566, -0.0037538520991802216, -0.035202790051698685, 0.006590095814317465, -0.020354220643639565, -0.006548386532813311, -0.01374744065105915, 0.0332174189388752, 0.02344072051346302, 0.047448690980672836, 0.026310332119464874, -0.024992313235998154, -0.038139138370752335, 0.04361141845583916, 0.050051361322402954, -0.028228968381881714, 0.021288512274622917, -0.007591123227030039, -0.004492109641432762, -0.011578548699617386, 0.018368849530816078, -0.003778877668082714, -0.006089582107961178, -0.02090478502213955, -0.005155290011316538, -0.0023399011697620153, 0.0005200649029575288, -0.0013148909201845527, 0.02253979630768299, 0.05165300518274307, -0.00787474773824215, 0.018452268093824387, 0.016358453780412674, 0.01768481358885765, -0.03396819159388542, 0.002329473849385977, -0.0077704740688204765, 0.012245899997651577, -0.021438665688037872, -0.029964081943035126, 0.017351139336824417, -0.04331111162900925, -0.010327264666557312, -0.0359368771314621, -0.03870638459920883, 0.04871665686368942, -0.018352165818214417, 0.03131546825170517, -0.020654529333114624, 0.06059551611542702, -0.021455349400639534, 0.02979724295437336, -0.02052105776965618, -0.003718398977071047, 0.010077007114887238, 0.025576245039701462, 0.003174090525135398, -0.043678153306245804, 0.004646434914320707, -0.037638623267412186, 0.034802380949258804, 0.00217097788117826, 0.055924054235219955, -0.004004108719527721, -0.003449372947216034, -0.006398232188075781, -0.01860242336988449, -0.0029843123629689217, -0.00029092354816384614, -0.0045254770666360855, 0.0018852679058909416, -0.005067700520157814, 0.02921331115067005, 0.05091891810297966, 0.06419920921325684, -0.03290042653679848, 0.013096773065626621, 0.03246665000915527, 0.03353441134095192, -0.008817381225526333, 0.02819560095667839, 0.05078544840216637, -0.006723565980792046, -0.028812900185585022, 0.07834706455469131, 0.023056993260979652, -0.028562642633914948, 0.006631805561482906, 0.03231649473309517, 0.05445588007569313, 0.01602477766573429, 0.021672239527106285, -0.012954960577189922, -0.003222056431695819, -0.005893548019230366, -0.006777788512408733, -0.0248421598225832, -0.03426849842071533, -0.0026840041391551495, 0.006590095814317465, -0.00394780095666647, -0.001147010363638401, -0.016291718930006027, 0.009176082909107208, 0.003641236573457718, -0.0456802099943161, 0.00402079289779067, -0.02547614276409149, -0.006410744972527027, -0.008700595237314701, 0.014690074138343334, 0.0037455102428793907, 0.03101515956223011, -0.002260653069242835, -0.04384499415755272, 0.014164535328745842, 0.011862172745168209, -0.019136304035782814, -0.01978697068989277, -0.0008769415435381234, 0.027444830164313316, 0.01788502000272274, 0.01938655972480774, -0.02696100063621998, 0.05625772848725319, -0.004658947698771954, -0.011078034527599812, 0.03860628232359886, -0.015641050413250923, -0.04878339171409607, 0.002333644777536392, 0.02332393452525139, 0.03381803631782532, 0.01796843856573105, -0.005288760643452406, -0.041075482964515686, 0.02090478502213955, 0.006736079230904579, 0.00030317570781335235, -0.00772459339350462, 0.004362810403108597, -0.012003985233604908, 0.019453296437859535, -0.004400348756462336, -0.014506553299725056, 0.03840607777237892, 0.018035173416137695, -0.01930314116179943, -0.011645283550024033, 0.016258349642157555, -0.0432443767786026, 0.019219722598791122, -0.010018614120781422, 0.019770286977291107, 0.011578548699617386, -0.019436612725257874, 0.04574694484472275, -0.01066093984991312, -0.0018644132651388645, -0.0015818316023796797, 0.002137610223144293, 0.011812121607363224, 0.020954836159944534, 0.020237434655427933, 0.005438914522528648, -0.042176615446805954, -0.004817443434149027, -0.023373985663056374, -0.036437392234802246, 0.03019765391945839, 0.019837023690342903, 0.04164273291826248, 0.026226913556456566, 0.06129623204469681, -0.027444830164313316, -0.0255595613270998, 0.010544153861701488, 0.01055249571800232, -0.0030114236287772655, 0.03083163872361183, 0.01608317159116268, -0.018835995346307755, 0.0038643821608275175, 0.01788502000272274, 0.03059806488454342, -0.00823344849050045, 0.010827777907252312, 0.007294985931366682, -0.042376819998025894, -0.012412738054990768, 0.0072699603624641895, -0.011595232412219048, 0.061963584274053574, 0.02656058967113495, 0.01920303888618946, 0.015549289993941784, -0.0067694466561079025, -0.024324961006641388, 0.022689949721097946, 0.03194945305585861, 0.0016370966332033277, 0.04134242609143257, 0.018535686656832695, 0.019119620323181152, 0.006727737374603748, -0.0019697295501828194, 0.008742304518818855, 0.001641267561353743, -0.030431227758526802, -0.04110885038971901, -0.010602546855807304, -0.03386808931827545, 0.02899642288684845, 0.07327519357204437, 0.024074705317616463, -0.011053008958697319, -0.0008425312698818743, -0.00039467585156671703, -0.01686730794608593, 0.037438418716192245, 0.014531578868627548, 0.014448159374296665, 0.01846895180642605, -0.00035974415368400514, -0.003015594556927681, 0.006694369483739138, 0.019019518047571182, -0.03316736966371536, 0.04204314202070236, 0.009551468305289745, -0.00545559823513031, -0.02435832843184471, -0.039540573954582214, 0.023373985663056374, 0.03703800588846207, 0.020671213045716286, -0.004064587410539389, -0.010043639689683914, 0.014214586466550827, -0.018118591979146004, 0.021488718688488007, -0.02160550467669964, -0.03163246065378189, 0.01455660443753004, -0.023307250812649727, -0.0015557631850242615, -0.010360632091760635, -0.043778255581855774, 0.022790053859353065, -0.002005182672291994, -0.005509820766746998, 0.010110374540090561, -0.0015203100629150867, 0.030631432309746742, 0.006723565980792046, 0.02587655372917652, -0.01870252564549446, 0.008600492030382156, -0.030364492908120155, 0.030364492908120155, -0.0004645391891244799, 0.031665828078985214, -0.038239240646362305, -0.02203928306698799, 0.02082136645913124, 0.031198682263493538, -0.03009755164384842, 0.028929686173796654, -0.005601581651717424, -0.006973823066800833, -0.03800566866993904, 0.01383920107036829, 0.01850231923162937, -0.01928645744919777, -0.003463971195742488, -0.0007976935594342649, 0.008496218360960484, 0.013638995587825775, -0.029880663380026817, -0.003261680481955409, -0.003783048829063773, 0.03161577507853508, -0.022356275469064713, -0.014931989833712578, 0.011528496630489826, 0.025426091626286507, 0.021989231929183006, 0.002294020727276802, -0.01978697068989277, -0.004492109641432762, 0.02869611419737339, 0.05181984230875969, 0.0226232148706913, -0.031382203102111816, 0.01090285461395979, -0.019870391115546227, 0.010477418079972267, -0.029964081943035126, -0.015974726527929306, 0.07000517100095749, 0.0038351856637746096, 0.005572384689003229, 0.006072898395359516, -0.010068665258586407, -0.019036201760172844, 0.0329337939620018, -0.019970493391156197, 0.01121984701603651, -0.01640850491821766, -0.03760525584220886, -0.009935195557773113, 0.025826502591371536, -0.04291069880127907, -0.029363464564085007, 0.016617052257061005, -0.013814175501465797, 0.013597286306321621, -0.006235565524548292, 0.02544277533888817, -0.0009191724238917232, -0.0017643105238676071, -0.026010023429989815, -0.027928659692406654, -0.034602172672748566, -0.07881420850753784, -0.028762849047780037, 0.013280294835567474, 0.03290042653679848, -0.03687116876244545, 0.003970741294324398, 0.057325493544340134, -0.027111154049634933, -0.009426339529454708, -0.013063405640423298, -0.011453419923782349, 0.011378343217074871, -0.009551468305289745, -0.02787860855460167, 0.013947646133601665, -0.023273883387446404, 0.0010067622642964125, -0.03285037726163864, 0.033601146191358566, -0.016550317406654358, -0.006581753958016634, 0.032883744686841965, 0.007053071167320013, -0.029129892587661743, -0.028562642633914948, 0.004804930649697781, 0.040441498160362244, -0.04838298261165619, 0.034602172672748566, -0.012637969106435776, 0.009526442736387253, 0.01698409579694271, -0.02636038325726986, -0.00919276662170887, -0.014089458622038364, 0.03463554382324219, -0.025242570787668228, 0.008658885955810547, -0.029930714517831802, -0.026493854820728302, 0.0077537898905575275, 0.05919407680630684, -0.004492109641432762, -0.018252063542604446, -0.013447131961584091, -0.02152208611369133, 0.011795437894761562, -0.0042647928930819035, -0.03994098678231239, -0.0063356682658195496, -0.04040813073515892, 0.024124756455421448, -0.0020010117441415787, -0.016934044659137726, -0.013296978548169136, -0.019336508587002754, 0.020220749080181122, -0.022673266008496284, 0.022289538756012917, 0.02342403680086136, -0.02686089649796486, -0.02222280390560627, 0.007924798876047134, 0.03890659287571907, -0.0248421598225832, 0.021655555814504623, -0.016959069296717644, -0.04241018742322922, 0.005943599157035351, 0.03203286975622177, 0.04958421364426613, -0.027311358600854874, 0.010068665258586407, 0.027444830164313316, 0.02646048553287983, -0.002857098588719964, 0.02545945905148983, -0.04027466103434563, -0.01490696333348751, -0.03260011970996857, -0.01398935541510582, -0.0687372013926506, 0.015799546614289284, -0.01383920107036829, 0.006439941935241222, 0.02789529226720333, 0.010677623562514782, 0.019336508587002754, 0.00325750932097435, 0.002673576818779111, -0.048449717462062836, 0.00282998732291162, -0.029163260012865067, -0.002700688084587455, 0.04351131618022919, 0.05388863384723663, -0.03401824086904526, 0.029163260012865067, 0.017401190474629402, -0.011628599837422371, 0.008371090516448021, 0.02342403680086136, 0.005843496415764093, -0.056224361062049866, -0.020220749080181122, -0.011762069538235664, -0.03241659700870514, 0.005013477988541126, 0.007069754879921675, 0.011336633004248142, -0.012979986146092415, 0.02392455004155636, -0.014231270179152489, 0.029079841449856758, -0.01982033997774124, 0.0292800460010767, -0.04074180871248245, -0.004588041454553604, 0.04678133875131607, -0.006965481210500002, 0.024007970467209816, 0.04007445648312569, -0.031665828078985214, -0.0011657796567305923, 0.008583808317780495, -0.0012596258893609047, 0.0015401220880448818, 0.02284010499715805, 0.005038503557443619, -0.006907087750732899, -0.03021433763206005, 0.07534398138523102, -0.0511191226541996, 0.0216221883893013, 0.02242301031947136, 0.0010208392050117254, -0.00803324393928051, 0.002563046757131815, 0.010936222039163113, -0.0031010988168418407, -0.02485884353518486, -0.006227223668247461, 0.06746923178434372, 0.01349718403071165, -0.00904261227697134, -0.04774899780750275, -0.07641174644231796, 0.01910293661057949, -0.0037204844411462545, 0.02404133789241314, -0.025709716603159904, 0.019670184701681137, 0.020070595666766167, 0.02172229066491127, -0.012404395267367363, -0.00540971802547574, -0.004483767785131931, -0.005889376625418663, -0.03747178614139557, 0.015257323160767555, -0.01662539318203926, -0.035302892327308655, 0.008592150174081326, -0.005747564602643251, -0.016058145090937614, 0.021905813366174698, 0.004135493654757738, -0.046914808452129364, -0.0014869425212964416, 0.012637969106435776, -0.03415171056985855, -0.03787219524383545, 0.022256171330809593, -0.009818408638238907, 0.04144252836704254, -0.007916457019746304, -0.018669158220291138, -0.006110437214374542, -0.03373461589217186, -0.027962027117609978, -0.016041461378335953, 0.028746165335178375, 0.03660422936081886, -0.027761822566390038, 0.04604725167155266, -0.014097800478339195, 0.03710474073886871, 0.007766302675008774, 0.008700595237314701, -0.01096959039568901, -0.05305444449186325, -0.00822510663419962, 0.00863385945558548, -0.010886170901358128, -0.0125295240432024, 0.010927880182862282, -0.01980365440249443, 0.01796843856573105, 0.008959193713963032, -0.027011051774024963, 0.011511812917888165, 0.009217792190611362, 0.003503595246002078, -0.0026777477469295263, -0.010702649131417274, -0.010761043056845665, 0.01700912043452263, 0.0505518764257431, 0.022906839847564697, 0.01081943605095148, -0.01308008935302496, -0.0043502976186573505, -0.02869611419737339, 0.035102687776088715, 0.0080540981143713, -0.012204190716147423, -0.004239767324179411, 0.006085411179810762, 0.013697389513254166, -0.010569179430603981, -0.005242879968136549, -0.003935288172215223, -0.0216221883893013, 0.005280418787151575, 0.004031219985336065, 0.006181342992931604, -0.033300839364528656, 0.04327774420380592, -0.006669343914836645, 0.009401313960552216, 0.03927363455295563, 0.01910293661057949, -0.0009926853235810995, 0.0015828743344172835, 0.004971768707036972, 0.014206244610249996, 0.03727158159017563, -0.04504622519016266, 0.01888604648411274, -0.004275220446288586, -0.029480252414941788, 0.015582657419145107, 0.004867495037615299, 0.00659426674246788, 0.013263611122965813, -0.03401824086904526, -0.03627055138349533, -0.013121798634529114, -0.015974726527929306, -0.03907343000173569, 1.4907876675351872e-06, 0.006214710883796215, 0.016675444319844246, -0.01237102784216404, 0.015857940539717674, -0.0589938722550869, 0.02153876982629299, -0.02172229066491127, -0.007491020485758781, 0.00829184241592884, 0.02282342128455639, -0.007086438592523336, -0.04140916094183922, -0.007532729767262936, -0.029930714517831802, -0.0012241728836670518, -0.0019394902046769857, -0.03486911579966545, 0.007833038456737995, -0.032483331859111786, -0.004437887575477362, -0.018352165818214417, -0.003111526370048523, 0.009309553541243076, -0.001064634183421731, -0.003518193494528532, -0.015582657419145107, 0.016291718930006027, 0.022806737571954727, 0.010477418079972267, 0.020537741482257843, -0.016233325004577637, -0.021855760365724564, -0.025225885212421417, 0.00363915110938251, -0.006168830208480358, -0.003078158712014556, -0.013864226639270782, 0.005580727010965347, 0.031765930354595184, 0.04604725167155266, -0.02282342128455639, -0.0402412936091423, -0.013380397111177444, -0.006569241173565388, 0.010769384913146496, -0.008750646375119686, -0.014072773978114128, 0.007557755336165428, -0.014931989833712578, -0.0027924489695578814, 0.04898359999060631, -0.05759243294596672, -0.011269898153841496, 0.027811873704195023, -0.018635790795087814, 0.010327264666557312, 0.0026944316923618317, 0.011770411394536495, -0.021472033113241196, -0.011645283550024033, -0.03757188841700554, -0.0034660566598176956, 0.02465863712131977, -0.0003065645869355649, 0.01495701540261507, -0.00714483205229044, 0.023207148537039757, -0.0038789804093539715, -0.003119868226349354, -0.0100936908274889, -0.019019518047571182, -0.0158245712518692, -0.006348181050270796, 0.023791080340743065, -0.003299218835309148, -0.01746792532503605, 0.01680891588330269, 0.020437639206647873, 0.02070458047091961, 0.0029572013299912214, 0.012946618720889091, 0.011820463463664055, 0.025242570787668228, 0.023474087938666344, -0.03840607777237892, -0.0196868684142828, -0.020754631608724594, 0.015624366700649261, -0.03356777876615524, -0.023874498903751373, 0.027411462739109993, 0.015123853459954262, 0.007699567824602127, 0.04544663429260254, -0.01131994929164648, -0.012804806232452393, 0.00284250034019351, -0.020170697942376137, -0.03199950233101845, -0.004967597778886557, 0.023807764053344727, -0.006669343914836645, 0.014197902753949165, 0.02052105776965618, 0.01106969267129898, -0.010143742896616459, -0.003353441134095192, 0.022556480020284653, -0.017501292750239372, 0.009860117919743061, 0.017801601439714432, 0.022756686434149742, -0.01748460903763771, -0.026026707142591476, 0.013280294835567474, -0.008141688071191311, -0.011503471061587334, -0.022756686434149742, 0.00023409439017996192, 0.0010813178960233927, -0.04788246750831604, 0.010827777907252312, 0.0037079716566950083, -0.008437825366854668, -0.03817250579595566, -0.0036996298003941774, -0.018635790795087814, -0.010877829045057297, -0.020370904356241226, 0.008208422921597958, -0.02050437405705452, -0.014364740811288357, 0.0029446883127093315, -0.04264375939965248, 0.02607676014304161, 0.015741152688860893, 0.01343879010528326, 0.011545180343091488, 0.03376798331737518, -0.010227161459624767, 0.02545945905148983, 0.04231008514761925, 0.05715865641832352, -0.001819575554691255, -0.03241659700870514, 0.02931341342628002, -0.03255007043480873, 0.007812183350324631, 0.016475239768624306, 0.013755782507359982, -0.00015028442430775613, 0.013597286306321621, 0.018018489703536034, 0.012721387669444084, 0.020938152447342873, 0.022289538756012917, -0.003853954840451479, 0.0323665477335453, -0.007194883190095425, 0.02666069194674492, 0.0053346408531069756, 0.015023750253021717, 0.031782615929841995, -0.02897973731160164, 0.004683973267674446, 0.01652529090642929, 0.016275035217404366, -0.004988452419638634, 0.008758988231420517, 0.010293896310031414, 0.03091505728662014, -0.010727674700319767, 0.011486787348985672, 0.034802380949258804, -0.004829956218600273, 0.009568152017891407, 0.0013086345279589295, -0.007908115163445473, -0.01980365440249443, 0.010769384913146496, -0.004980110563337803, 0.016416845843195915, 0.014114484190940857, -0.0025651322212070227, -0.004917546175420284, -0.003511937102302909, 0.0428105965256691, -0.025592928752303123, -0.028662746772170067, -0.009926853701472282, 0.032883744686841965, 0.003261680481955409, -0.01479851920157671, -0.030481278896331787, -0.004337784834206104, 0.0074159433133900166, 0.017334455624222755, 0.011136427521705627, -0.044111933559179306, -0.00012069677177350968, -0.030164286494255066, -0.013038380071520805, -0.005113580729812384, -0.01026052888482809, -0.012204190716147423, 0.003401407040655613, 0.01202066894620657, 0.02203928306698799, -0.035603202879428864, 0.024174807593226433, 0.022956890985369682, -0.0029446883127093315, 0.0060145054012537, -0.0408085435628891, 0.0336511991918087, -0.04000772163271904, 0.016875650733709335, 0.03650412708520889, -0.015933016315102577, 0.0018737978534772992, 0.03019765391945839, 0.04314427450299263, 0.022556480020284653, -0.043477948755025864, 0.001558891381137073, -0.004072929732501507, -0.01880262792110443, -0.011837147176265717, -0.005893548019230366, -0.006681856699287891, 0.010327264666557312, -0.014614997431635857, 0.029680456966161728, -0.006248078308999538, -0.022473061457276344, -0.001937404740601778, 0.028512591496109962, 0.0023461575619876385, -0.013205217197537422, -0.0019280201522633433, 0.03657086193561554, 0.03710474073886871, 0.03426849842071533, -0.013372055254876614, 0.01728440262377262, 0.018235379830002785, -0.015499237924814224, 0.012504498474299908, 0.009326237253844738, 0.0164668969810009, -0.03371793404221535, -0.02666069194674492, -0.03526952490210533, 0.02364092692732811, -0.011261556297540665, -0.007219908758997917, -0.020137330517172813, -0.02969714067876339, -0.008884117007255554, 0.003000996308401227, 0.04030802845954895, -0.028345754370093346, 0.007591123227030039, -0.025592928752303123, 0.026193546131253242, -0.005876863840967417, 0.015515921637415886, -0.002590158022940159, -0.008708937093615532, 0.009067637845873833, -0.018852679058909416, -0.016558658331632614, 0.0034243473783135414, 0.01806854084134102, 0.01292993500828743, -0.020737947896122932, -0.013397080823779106, -0.017918387427926064, -0.008358577266335487, 0.0156076829880476, 0.013288636691868305, 0.003057304071262479, 0.016291718930006027, -0.007987363263964653, -0.009951879270374775, 0.020787999033927917, -0.006927942391484976, -0.002857098588719964, 0.03433523327112198, -0.0019488749094307423, -0.01848563551902771, 0.010744359344244003, -0.022956890985369682, -0.015182246454060078, -0.01318853348493576, 0.015265665017068386, 0.005393034312874079, -0.006823668722063303, 0.01196227502077818, -0.037538520991802216, -0.004925888031721115, -0.007236592471599579, -0.01388925313949585, 0.00018013275985140353, 0.016291718930006027, 0.0007022831705398858, -0.005051016341894865, 0.0017465839628130198, -0.00414592120796442, 0.05088555067777634, 0.0036287237890064716, -0.02911320887506008, 0.026510538533329964, -0.02008727937936783, -0.025743084028363228, -0.010285554453730583, -0.0003910262603312731, -0.020587792620062828, -0.008767330087721348, -0.0036099543794989586, -0.03747178614139557, -0.00109904445707798, 0.004256451036781073, 0.024875527247786522, 0.016033118590712547, -0.03513605520129204, -0.013313662260770798, 0.00039415445644408464, 0.0021626357920467854, -0.007553584408015013, -0.03523615747690201, 0.0058142999187111855, 0.00026681023882701993, 0.03947383910417557, 0.012337660416960716, 0.009301211684942245, 0.0032804496586322784, -0.010544153861701488, -0.00023383370717056096, 0.005551530048251152, -0.01055249571800232, 0.019119620323181152, 0.004102126229554415, 0.02847922407090664, 0.011294923722743988, 0.009226134046912193, -0.03486911579966545, 0.016300059854984283, -0.020871417596936226, 0.018835995346307755, -0.02445843257009983, -0.0053346408531069756, -0.013322004117071629, -0.023557506501674652, -0.015223955735564232, 0.01171201840043068, -0.02414144016802311, 0.04307753965258598, -0.009267843328416348, -0.020070595666766167, -0.0408085435628891, 0.005309615284204483, 0.01318853348493576, -0.006106266286224127, -0.020654529333114624, -0.0004754879337269813, 0.035402994602918625, 0.009726648218929768, 0.024491799995303154, -0.018835995346307755, 0.0021563793998211622, -0.010118717327713966, -0.005559871904551983, -0.005676658358424902, -0.0031052699778229, -0.014197902753949165, 0.03690453618764877, 0.01202066894620657, 0.016300059854984283, 0.00692377146333456, 0.00820425245910883, -0.0181853286921978, 0.0442454032599926, -0.017801601439714432, -0.007019703276455402, 0.02150540240108967, -0.017334455624222755, 0.0009264715481549501, -0.0018487721681594849, -0.0010823607444763184, 0.015173904597759247, 0.024291593581438065, -0.016391821205615997, 0.008967535570263863, -0.035202790051698685, 0.0010531640145927668, -0.00975167378783226, -0.013021695427596569, -0.021238461136817932, 0.0019405329367145896, 0.004120895639061928, 0.03817250579595566, 0.004567186813801527, -0.014381424523890018, 0.005134435370564461, -0.021889127790927887, -0.02352413907647133, -0.014790177345275879, -0.012946618720889091, -0.0022210292518138885, -0.005201170686632395, 0.0035974415950477123, 0.0043794941157102585, 0.0051219225861132145, -0.031465623527765274, 0.006669343914836645, -0.00045098361442796886, -0.009785041213035583, 0.02292352356016636, -0.012846516445279121, -0.022773370146751404, 0.02465863712131977, 0.0058142999187111855, 0.006306471303105354, 0.0221227016299963, -0.06119612976908684, -0.009643228724598885, 0.01860242336988449, 0.018969465047121048, -0.01000193040817976, 0.004433716647326946, -0.034902483224868774, 0.003365954151377082, -0.027861924842000008, -0.0026965171564370394, -0.005789274349808693, 0.019069569185376167, 0.026343699544668198, 0.0221227016299963, 0.04020792618393898, 0.0015484639443457127, 0.009518100880086422, -0.02819560095667839, 0.018535686656832695, 0.021288512274622917, -0.011928907595574856, -0.0035161080304533243, 0.008379432372748852, 0.009826750494539738, 0.01746792532503605, 0.01187051460146904, 0.008809039369225502, 0.012471131049096584, 0.006902916822582483, 0.026727426797151566, 0.014748468063771725, 0.0038894079625606537, 0.0333675742149353, -0.024408381432294846, -0.002120926510542631, -0.023557506501674652, 0.0027090299408882856, -0.042276717722415924, 0.002571388613432646, -0.04961758106946945, 0.026543905958533287, -0.021588820964097977, 0.005509820766746998, 0.007632832508534193, 0.007440968882292509, 0.001930105616338551, -0.02334061823785305, -0.02072126418352127, -0.015257323160767555, -0.008250133134424686, -0.018435584381222725, -0.05615762621164322, -0.007370063103735447, 0.004759050440043211, 0.010736016556620598, -0.00327002233825624, -0.021155042573809624, -0.016917360946536064, -0.008137517608702183, 0.027328044176101685, -0.02374102920293808, -0.030281074345111847, 0.004387835972011089, -0.005146948155015707, 0.02454185113310814, -0.005551530048251152, -0.01608317159116268, 0.003632894717156887, 0.04040813073515892, -0.012587917037308216, 0.004383665043860674, -0.0030531331431120634, -0.02182239294052124, -0.0125295240432024, -0.007870576344430447, -0.017017463222146034, -0.0007439926266670227, -0.0043502976186573505, 0.010594204999506474, 0.01662539318203926, -0.028545958921313286, 0.024308277294039726, -0.029763875529170036, -0.004646434914320707, -0.017317771911621094, 0.004243938252329826, 0.02527593821287155, -0.03720484673976898, -0.018318798393011093, 0.0064607965759932995, -0.01682559959590435, 0.023907866328954697, 0.0029843123629689217, -0.004371152259409428, -0.029730508103966713, -0.0015474212123081088, -0.008308526128530502, -0.021155042573809624, -0.001202275394462049, 0.03727158159017563, -0.011595232412219048, 0.0432443767786026, -0.023290567100048065, 0.0037455102428793907, -0.013622311875224113, -0.02414144016802311, -0.01308843120932579], "id": 12}, {"title": "William Cochrane", "text": "William Cochrane (after 1659 \u2013 August 1717) was a Scottish MP in the British Parliament.He represented Wigtown Burghs 1708-1713.", "vector": [0.0335075706243515, -0.059773098677396774, -0.01916780136525631, -0.024586213752627373, 0.016766905784606934, 0.029912788420915604, -0.04906747117638588, -0.03432099148631096, -0.03941141068935394, 0.056099601089954376, -0.06360403448343277, 0.0534231923520565, -0.016399554908275604, 0.013552593067288399, 0.041221924126148224, 0.01248990185558796, 0.0005944838630966842, 0.009544541127979755, -0.01267357636243105, 0.006008797325193882, 0.049172427505254745, 0.0004247484903316945, 0.014969514682888985, 0.009938131086528301, 0.03227432444691658, 0.009026315063238144, 0.0028158037457615137, 0.004437719937413931, 0.020348569378256798, -0.013362357392907143, 0.00047763704787939787, 0.03930645436048508, 0.029886549338698387, -0.017672160640358925, -0.01540246233344078, -0.04169423133134842, 0.002702646655961871, -0.0799773558974266, 0.048385247588157654, 0.019351474940776825, -0.007891465909779072, -0.021555576473474503, -0.03453090414404869, -0.018734851852059364, 0.014759600162506104, 0.01597972773015499, -0.05646694824099541, -0.003447186667472124, 0.023326728492975235, 0.04762430861592293, 0.06969155371189117, -0.012339025735855103, -0.007773389108479023, -0.03132971003651619, -0.03802073001861572, 0.004283563699573278, 0.026645997539162636, 0.06008797138929367, 0.005349535029381514, 0.027262620627880096, -0.0008011182653717697, -0.010312040336430073, -0.020506003871560097, -0.0025894897989928722, -0.002681327285245061, -0.010863065719604492, 0.029466722160577774, -0.014090497978031635, 0.006333508528769016, -0.0013480434427037835, -0.02285442128777504, -0.005441372282803059, 0.019731944426894188, 0.024625573307275772, -0.025858819484710693, 0.008226017467677593, 0.03878166899085045, 0.021817969158291817, 0.002983079059049487, 0.03555423766374588, -0.01785583607852459, -0.008317854255437851, -0.010561313480138779, 0.032825350761413574, 0.024966683238744736, -0.048962511122226715, 0.018000151962041855, -0.03240552172064781, 0.0010446517262607813, 0.03788953274488449, 0.0236678384244442, 0.061662327498197556, 0.008927918039262295, 0.06344660371541977, -0.008350653573870659, -0.03996243700385094, 0.02067655883729458, -0.04473798722028732, -0.012050393037497997, -0.03579039126634598, -0.04027730971574783, 0.022880660369992256, -0.01932523585855961, 0.02449437603354454, 0.029151849448680878, -0.05914335697889328, -0.031802017241716385, 0.0025074919685721397, -0.01592724770307541, 0.052819687873125076, -0.027210142463445663, 0.020584722980856895, -0.05145524442195892, -0.018695494160056114, -0.0030781966634094715, -0.012831011787056923, -0.03781081363558769, 0.02650168165564537, -0.024769889190793037, -0.03439970687031746, -0.019180919975042343, -0.030253900215029716, 0.017462246119976044, 0.015612376853823662, 0.011335372924804688, -0.009085353463888168, -0.03534432128071785, 0.02412702515721321, 0.005251137539744377, -0.004752591252326965, -0.05331823602318764, -0.06491599977016449, -0.056624386459589005, -0.036315176635980606, 0.015914129093289375, 0.022828180342912674, 0.020086174830794334, -0.0050149839371442795, 0.038729190826416016, -0.024153266102075577, 0.01704241894185543, -0.023641599342226982, 0.05279345065355301, 0.022421471774578094, 0.07751085609197617, -0.00015374583017546684, -0.020492885261774063, -0.0021877007093280554, -0.0287057813256979, 0.027210142463445663, -0.028312193229794502, -0.014877676963806152, 0.04911994934082031, 0.0301489420235157, -0.01698993891477585, 0.005024823825806379, -0.006005517207086086, -0.0168718621134758, 0.002837123116478324, -0.030831163749098778, -0.033612530678510666, 0.007130526937544346, -0.02183108776807785, 0.019640108570456505, -0.0002525531454011798, -0.004896907135844231, -0.023746555671095848, 0.03051629289984703, -0.042245253920555115, 0.015061351470649242, -0.023733437061309814, 0.013565712608397007, 0.0010913903824985027, -0.025793220847845078, 0.036026544868946075, 0.006422066129744053, -0.0236284788697958, 0.030122702941298485, -0.01064659096300602, 0.05951070785522461, -0.023248009383678436, -0.015245026908814907, 0.04235021024942398, -0.04938234016299248, -0.001712113618850708, 0.008035781793296337, 0.0253077931702137, 0.004887067712843418, 0.0073666805401444435, -0.01731793023645878, 0.01267357636243105, -0.04804413765668869, 0.01435289066284895, 0.010515394620597363, 0.028049800544977188, 0.02833843231201172, -0.022801941260695457, -0.01597972773015499, -0.04221901670098305, 0.0014267612714320421, 0.05292464420199394, -0.08475290238857269, 0.01279821339994669, -0.0013021246995776892, -0.025045400485396385, -0.01372314803302288, 0.0011922477278858423, 0.0169112216681242, -0.020256731659173965, -0.025858819484710693, 0.010744988918304443, -0.013880583457648754, 0.004716512281447649, 0.02306433394551277, -0.00950518250465393, 0.017475366592407227, 0.01372314803302288, 0.010640031658113003, 0.0074913171119987965, 0.02671159617602825, -0.01267357636243105, -0.010712189599871635, 0.0026714876294136047, -0.03886038810014725, 0.0008097280515357852, 0.06176728755235672, -0.004775550682097673, 0.008350653573870659, -0.0019597469363361597, -0.0406184196472168, -0.04578755795955658, 0.03463586047291756, -0.008193218149244785, 0.06832710653543472, -0.005388894118368626, 0.04796541854739189, 0.023903992027044296, -0.010915543884038925, 0.05893344432115555, -0.016202760860323906, 0.003548863809555769, 0.026554159820079803, 0.0007613493362441659, -0.035081930458545685, 0.03657756745815277, 0.014628403820097446, -0.04891003295779228, -0.02637048438191414, -0.020742157474160194, 0.05746404081583023, 0.0030781966634094715, -0.0026239289436489344, 0.025648904964327812, -0.0016268359031528234, -0.016373315826058388, -0.024179505184292793, -0.02736757881939411, 0.04909370839595795, 0.046627216041088104, -0.03893910348415375, -0.021962285041809082, -0.02621304988861084, -0.02781364694237709, 0.03914901986718178, -0.03439970687031746, -0.04891003295779228, -0.024022068828344345, -0.0370236374437809, 0.013867463916540146, -0.016596350818872452, 0.01887916773557663, 0.03285158798098564, -0.018157588317990303, 0.0400673933327198, 0.0074191587045788765, -0.04940858110785484, -0.05163891986012459, -0.0639713853597641, -0.07992487400770187, 0.00896727666258812, 0.0027862845454365015, -0.035449277609586716, -0.023116813972592354, -0.019312117248773575, -0.020833995193243027, -0.0075831543654203415, -0.06622796505689621, 0.002469773171469569, 0.06213463470339775, 0.005060902796685696, -0.012398064136505127, -0.013880583457648754, 0.00010823706543305889, 0.026409843936562538, -0.005074022337794304, -0.04410824552178383, 0.00833097379654646, -0.009144391864538193, -0.026344245299696922, 0.010023408569395542, -0.035527996718883514, 0.022001642733812332, -0.03403235599398613, -0.022618267685174942, -0.0014792399015277624, 0.022093480452895164, 0.009977489709854126, -0.00896727666258812, 0.07525428384542465, -0.02067655883729458, -0.0169112216681242, -0.023562882095575333, 0.02736757881939411, 0.018498698249459267, 0.010863065719604492, 0.03857175633311272, 0.009583900682628155, 0.0067828563041985035, -0.031723301857709885, 0.0023238169960677624, -0.005953038576990366, 0.01901036500930786, -0.05730660632252693, -0.05788386985659599, -0.01412985660135746, -0.04429192095994949, -0.014982634223997593, -0.017226092517375946, -0.036682527512311935, 0.010167724452912807, 0.030490053817629814, -0.022828180342912674, 0.05198002979159355, 0.0052872165106236935, 0.05352814868092537, 0.04080209508538246, -0.055522333830595016, -0.003130675060674548, -0.049172427505254745, 0.041221924126148224, 0.004447559360414743, -0.019600749015808105, 0.031146036460995674, 0.02665911801159382, -0.015822291374206543, -0.0009118152665905654, 0.004122848156839609, -0.05536489933729172, 0.05221618339419365, -0.0012291467282921076, 0.00034726058947853744, 0.0538954995572567, 0.024756768718361855, 0.028574585914611816, 0.007360120303928852, 0.003252031747251749, -0.03636765480041504, -0.03009646385908127, -0.01435289066284895, -0.011394411325454712, 0.007471637334674597, -0.016307717189192772, -0.008514649234712124, 0.03896534442901611, 0.027787405997514725, 0.022762583568692207, 0.033927399665117264, -0.0011807680130004883, 0.016242120414972305, 0.025858819484710693, -0.004352441988885403, 0.06276437640190125, 0.009439583867788315, 0.01351323351264, 0.004001491703093052, 0.01105985976755619, -0.021896686404943466, -0.04602371156215668, -0.01288349088281393, -0.03634141385555267, 0.03256295621395111, 0.04287499934434891, 0.03332389518618584, -0.031067317351698875, 0.0007162505644373596, -0.04688961058855057, -0.021844208240509033, 0.03416355326771736, 0.03896534442901611, -0.010935223661363125, -0.021489977836608887, 0.01142721064388752, 0.033927399665117264, 0.014825197868049145, -0.01822318695485592, -0.027918603271245956, 0.033481333404779434, 0.06307925283908844, -0.00770123116672039, 0.01576981320977211, -0.033481333404779434, -0.03699739649891853, 0.009282148443162441, 0.0186298955231905, 0.05213746801018715, 0.0031962734647095203, 0.0010503915837034583, -0.03930645436048508, 0.003906374331563711, 0.009754455648362637, 0.011558406986296177, 0.030988600105047226, -0.01675378531217575, 0.019771303981542587, -0.0069074928760528564, -0.0045951553620398045, -0.045682601630687714, -0.033481333404779434, -0.003794857067987323, -0.03941141068935394, -0.018315022811293602, -0.06339412182569504, -0.028968174010515213, -1.984602386073675e-05, 0.007123966701328754, 0.03576415032148361, -0.018708612769842148, -0.032169368118047714, 0.013959301635622978, 0.033192701637744904, -0.010712189599871635, 0.030857402831315994, 0.010272681713104248, 0.03849303722381592, 0.010705629363656044, -0.04628610610961914, -0.07913769781589508, 0.03707611560821533, 0.06113754212856293, 0.00874424260109663, 0.028653303161263466, -0.014484087005257607, -0.04442311450839043, 0.008829521015286446, -0.05657190829515457, 0.008593367412686348, -0.0438196137547493, -0.006887813098728657, 0.09094537794589996, 0.04219277575612068, -0.030201422050595284, -0.017685281112790108, 0.007019009906798601, 0.010108686052262783, 0.027839886024594307, 0.0042146858759224415, -0.020755277946591377, 0.007399479392915964, -0.036630045622587204, 0.043478500097990036, -0.008442491292953491, -0.016740666702389717, 0.014917035587131977, -0.011709282174706459, -0.047650549560785294, 0.006356467492878437, -0.015507419593632221, -0.02399582974612713, -0.03539679944515228, 0.012050393037497997, -0.03723355010151863, -0.0008052181801758707, -0.05040567368268967, 0.033560048788785934, -0.012378384359180927, -0.015035112388432026, 0.04080209508538246, -0.017501605674624443, 0.0703737735748291, 0.04828029125928879, 0.02142437919974327, -0.03964756429195404, -0.03502945229411125, 0.0014849797589704394, 0.0015210587298497558, -0.040487222373485565, 0.008881999179720879, -0.004234365187585354, -0.020571602508425713, 0.004047410096973181, 0.027997320517897606, 0.03985748067498207, 0.05087798088788986, 0.01752784475684166, 0.022920018061995506, 0.03337637707591057, 0.033192701637744904, 0.04148431494832039, 0.0021827807649970055, -0.011879838071763515, 0.025124119594693184, 0.07173821330070496, 0.03277287259697914, -0.0285483468323946, -0.03117227554321289, 0.005051062908023596, 0.020781517028808594, 0.005352814681828022, 0.0023582561407238245, 0.04715200141072273, 0.01130257360637188, 0.019968098029494286, -0.02904689311981201, 0.004762431140989065, -0.019194040447473526, -0.04862140119075775, -0.01752784475684166, 0.000317126396112144, 0.027997320517897606, 0.03224808722734451, -0.0033356696367263794, 0.025793220847845078, 0.009957809932529926, 0.006044876296073198, 0.00708460807800293, 0.02059784159064293, 0.04111696407198906, 0.005064182914793491, -0.0438983291387558, -0.034216031432151794, 0.023208651691675186, -0.028023559600114822, -0.01159120537340641, -0.050274476408958435, -0.02744629606604576, -0.03195945546030998, 0.03765337914228439, -0.03198569267988205, 0.0009396945242770016, -0.003680060151964426, 0.042612604796886444, 0.044003285467624664, -0.01924651861190796, -0.03605278208851814, -0.04767678678035736, -0.009183751419186592, -0.0055988081730902195, -0.03185449540615082, -0.014142977073788643, 0.023208651691675186, -0.025281554087996483, -0.005818562116473913, -0.017947673797607422, -0.05541737750172615, 0.0406184196472168, 0.027839886024594307, -0.0013062246143817902, -0.0060514360666275024, -0.011341932229697704, 0.007373240310698748, 0.007989863865077496, -0.0572541281580925, 0.002435334026813507, -0.03825688362121582, 0.0023434965405613184, 0.03426850959658623, -0.0040900493040680885, 0.016478274017572403, -0.02092583291232586, -6.303578993538395e-05, 0.011748641729354858, -0.011263214983046055, -0.025701383128762245, 0.015664855018258095, 0.011420650407671928, -0.012148790992796421, -0.002699366770684719, 0.02318241074681282, 0.01851181872189045, 0.022631386294960976, -0.01880045048892498, -0.014024900272488594, 0.002605889458209276, -0.0020171452779322863, -0.007425718940794468, 0.008153858594596386, -0.0041982862167060375, 0.0070386892184615135, -0.023694077506661415, -0.02555706724524498, -0.03584286943078041, -0.020138654857873917, -0.026436083018779755, 0.013683789409697056, 0.024113906547427177, 0.018656134605407715, -0.0337437242269516, -0.003545583924278617, -0.03416355326771736, -0.0029453602619469166, -0.019561389461159706, 0.034557145088911057, -0.03875542804598808, -0.041012007743120193, 0.02497980371117592, -0.03883414715528488, 0.006477824412286282, 0.0047427513636648655, 0.0108565054833889, -0.032536718994379044, 0.00023881852393969893, 0.02944048121571541, -0.02839091047644615, 0.01876109093427658, 0.03096236102283001, 0.023536641150712967, 0.0011545286979526281, 0.030542531982064247, -0.0037784576416015625, -0.0015915768453851342, 0.017790237441658974, 0.015100711025297642, 0.017357289791107178, 0.010371078737080097, 0.05237362161278725, -0.05051063001155853, -0.04211405664682388, -0.022723224014043808, 0.004385241307318211, 0.003147074719890952, -0.016688188537955284, 0.006005517207086086, -0.015376223251223564, 0.006881253328174353, 0.024599332362413406, 0.0027994040865451097, 0.02215907908976078, 0.021962285041809082, 0.02486172690987587, -0.014549685642123222, 0.01982378214597702, 0.02563578449189663, 0.005880880635231733, -0.006359747610986233, -0.013880583457648754, -0.007930825464427471, 0.03526560589671135, -0.0012152070412412286, 0.037627141922712326, -0.008107940666377544, -0.00016409804811701179, -0.027866125106811523, -0.0037554982118308544, 0.00312247546389699, -0.0436621755361557, 0.0029551999177783728, -0.020020578056573868, 0.003258591750636697, -0.027105186134576797, -0.037128593772649765, -0.001999105792492628, -0.03746970370411873, -0.01449720747768879, 0.01945643313229084, 0.011466569267213345, 0.016268359497189522, -0.02928304672241211, -0.01708177663385868, -0.006586061324924231, 0.00821289699524641, -0.016360197216272354, -0.0058710407465696335, 0.024428777396678925, -0.06386642903089523, 0.016766905784606934, -0.029729114845395088, -0.006750056985765696, 0.002696086885407567, -0.04767678678035736, 0.016898101195693016, -0.016858743503689766, 0.0023041374515742064, -0.04324234649538994, -0.037574660032987595, -0.046469781547784805, 0.025504589080810547, -0.032169368118047714, 0.017186734825372696, 0.007812748663127422, 0.017029298469424248, 0.014208574779331684, 0.054157890379428864, -0.008914798498153687, -0.015153189189732075, -0.023746555671095848, 0.03607902303338051, 0.019640108570456505, -0.06460113078355789, -0.005156020168215036, 0.03146090731024742, 0.0038079768419265747, 0.03862423449754715, -0.00043827813351526856, -0.03489825502038002, -0.008534329012036324, 0.04602371156215668, -0.01048259623348713, -0.011578085832297802, -0.010023408569395542, 0.024887965992093086, -0.0040670898742973804, -0.029912788420915604, -0.045813798904418945, -0.021161986514925957, 0.009656058624386787, -0.007930825464427471, 0.03731226921081543, -0.023930231109261513, -0.02441565878689289, -0.006736937444657087, -0.008626165799796581, 0.04518405348062515, 0.0535806268453598, 0.023116813972592354, -0.017868956550955772, 0.03314022347331047, 0.01416921615600586, -0.019430194050073624, -0.0775633379817009, 0.0032126728910952806, -0.04715200141072273, 0.002135222079232335, -0.02461245283484459, 0.006789416074752808, 0.012181589379906654, 0.006208871491253376, -0.005949758924543858, 0.021083269268274307, 0.00941990502178669, 0.013152443803846836, 0.057201649993658066, 0.0021860606502741575, 0.02273634448647499, -0.03644637390971184, -0.019141560420393944, 0.030621249228715897, -0.009977489709854126, 0.0027174062561243773, 0.013801866210997105, -0.010941782966256142, 0.00395229272544384, -0.01609780453145504, 0.028889456763863564, -0.010987701825797558, -0.027105186134576797, 0.03353381156921387, -0.02617369033396244, 0.010954903438687325, 0.005165860056877136, -0.02133254148066044, 0.03287782892584801, 0.019810663536190987, 0.03878166899085045, 0.020624080672860146, 0.031880736351013184, -0.005113381426781416, -0.03161834180355072, -0.006940291728824377, 0.03875542804598808, 0.006162953097373247, 0.005939919035881758, -0.020296089351177216, 0.008691764436662197, 0.04109072685241699, -0.01986314170062542, -0.03466210141777992, -0.01638643629848957, 0.0473356768488884, -0.030201422050595284, 0.011433769948780537, -0.039017822593450546, 0.012240627780556679, -0.05263601243495941, -0.01584853045642376, -0.052898406982421875, 0.013565712608397007, -0.027656210586428642, 0.021358780562877655, -0.022946257144212723, -0.007248603738844395, -0.02768244966864586, 0.020938951522111893, 0.0009347746381536126, -0.012745734304189682, -0.005270817317068577, -0.010141485370695591, 0.025124119594693184, 0.01478583924472332, 0.006894373334944248, -0.025950657203793526, -0.0020466644782572985, 0.009150952100753784, -0.022054122760891914, -0.012634217739105225, -0.016320837661623955, -0.03600030392408371, -0.01332955900579691, -0.006723817903548479, -0.0012947448994964361, -0.00790458545088768, 0.02661975845694542, 0.03563295304775238, 0.04256012663245201, -0.03030637837946415, -0.006264630239456892, 0.014011779800057411, -0.022434592247009277, 0.005920239724218845, -0.05051063001155853, 0.006776296533644199, 0.0017662320751696825, -0.04111696407198906, 0.003565263468772173, -0.043268587440252304, -0.008409691974520683, 0.020414166152477264, 0.027183903381228447, -0.011000821366906166, -0.005165860056877136, -0.024953562766313553, 0.01621588133275509, 0.005825121887028217, -0.05966814234852791, 0.03153962641954422, 0.0004011741257272661, 0.039463888853788376, 0.028810739517211914, -0.01117793656885624, 0.014602163806557655, 0.02891569584608078, 0.022552669048309326, -0.02928304672241211, 0.012188149616122246, -0.04360969737172127, 0.018603656440973282, 0.018288783729076385, 0.033560048788785934, -0.04481670632958412, -0.012975328601896763, -0.017619682475924492, -0.02040104754269123, -0.009754455648362637, -0.04295371472835541, -0.004103168845176697, -0.006379426922649145, 0.004513157531619072, -0.014024900272488594, 0.0037325387820601463, -0.02281506173312664, -0.02134566195309162, 0.04206157848238945, -0.016452034935355186, -0.025950657203793526, -0.034058596938848495, 0.0005686545628122985, 0.012253748252987862, -0.03568543121218681, -0.011223855428397655, -0.005592248402535915, -0.010253001935780048, 0.008409691974520683, 0.008672084659337997, -0.022093480452895164, -0.020086174830794334, -0.023313608020544052, -0.00790458545088768, -0.025819459930062294, -0.00970853678882122, 0.04985464736819267, 0.0024828927125781775, -0.01003652811050415, -0.0201124157756567, 0.006549982354044914, -0.011748641729354858, 0.04242892935872078, -0.009328067302703857, 0.016333958134055138, 0.02818099595606327, -0.0012594858417287469, 0.030647490173578262, -0.004985464736819267, -0.010476035997271538, 0.0006043236353434622, -0.012594858184456825, -0.025281554087996483, 0.01022020261734724, -0.0201124157756567, -0.020584722980856895, -0.01698993891477585, 0.03736474737524986, 0.00597927812486887, 0.01159120537340641, 0.0018810289911925793, 0.04914618656039238, 0.028285954147577286, -0.03993619605898857, 0.044213201850652695, -0.020624080672860146, -0.0043786815367639065, -0.02665911801159382, -0.025622665882110596, 0.038886625319719315, -0.00876392237842083, 0.055102504789829254, 0.026186810806393623, 0.02096519246697426, -0.01876109093427658, 0.06192472204566002, -0.007432278711348772, 0.02731509879231453, -0.0005444652633741498, -0.033192701637744904, -0.03628893569111824, 0.030542531982064247, -0.03752218186855316, 0.002837123116478324, 0.0029371604323387146, -0.016976820304989815, -0.03167081996798515, -0.00037144991802051663, -0.013710028491914272, -0.012870371341705322, 0.02555706724524498, -0.018419981002807617, -0.002135222079232335, -0.012155350297689438, 0.06685771048069, -0.009590459987521172, 0.0268296729773283, -0.02244771085679531, -0.019482672214508057, 0.0369449183344841, -0.01412985660135746, -0.006687738932669163, -0.02134566195309162, 0.02395647019147873, 0.028154756873846054, 0.0033684687223285437, -0.04754558950662613, 0.040775854140520096, -0.015166308730840683, 0.006284309551119804, -0.0010471115820109844, 0.010823706164956093, 0.05009080097079277, -0.0040670898742973804, -0.022959377616643906, -0.03765337914228439, 0.012234068475663662, -0.004814909305423498, -0.013801866210997105, 0.01895788684487343, -0.013080285862088203, -0.005093702115118504, -0.04185166582465172, 0.010659711435437202, 0.0038965344429016113, -0.0021713010501116514, -0.03484577685594559, -0.010043087415397167, 0.028233474120497704, 0.030699968338012695, -0.0016596349887549877, -0.03841431811451912, -0.010180843994021416, 0.008593367412686348, -0.019548270851373672, -0.005575848743319511, 0.010298920795321465, 0.03568543121218681, -0.014943274669349194, -0.029388003051280975, -0.013388597406446934, -0.005529929883778095, 0.03146090731024742, 0.042166538536548615, 0.00854088831692934, 0.014864557422697544, 0.03628893569111824, -0.018616775050759315, -0.024389419704675674, -0.019180919975042343, -0.00675661675632, -0.0008863959810696542, 0.014366010203957558, -0.011683043092489243, -0.0016071564750745893, 0.02113574743270874, 0.010312040336430073, -0.009052555076777935, 0.024271342903375626, 0.022513309493660927, 0.03621022030711174, -0.009610139764845371, -0.045525167137384415, -0.002822363516315818, -0.013427956029772758, 0.03644637390971184, -0.005293776281177998, 0.01868237368762493, -0.03146090731024742, -0.007235483732074499, 0.014077378436923027, -0.03248424082994461, 0.0026829673442989588, -0.06155737116932869, 0.008265376091003418, 0.018734851852059364, 0.011551846750080585, 0.023812154307961464, -0.00814729928970337, 0.0022483791690319777, 0.003742378670722246, -0.002938800258561969, -0.02040104754269123, 0.022539548575878143, -0.020020578056573868, 0.023077454417943954, 0.008206337690353394, 0.02875826135277748, 0.010377638973295689, -0.022106600925326347, -0.0030798364896327257, -0.005103541538119316, -0.020296089351177216, 0.02744629606604576, 0.0570966936647892, 0.034425947815179825, -0.00227789836935699, 0.011847038753330708, 0.014484087005257607, -0.005920239724218845, -0.044055767357349396, -0.01048259623348713, 0.005018264055252075, -0.007123966701328754, 0.011866718530654907, 0.012260307557880878, 0.02330048754811287, 0.00044483793317340314, 0.05192755162715912, -0.018157588317990303, -0.023772794753313065, -0.012955648824572563, -9.7013617050834e-05, 0.018000151962041855, -0.009977489709854126, 0.007438838481903076, -0.008094820193946362, 0.024966683238744736, 0.011446889489889145, -0.010784347541630268, 0.004778830334544182, -0.029151849448680878, 0.004001491703093052, -0.021371901035308838, -0.01128289382904768, 0.01569109410047531, 0.017960792407393456, -0.02547834999859333, -0.02568826451897621, 0.018078869208693504, 0.01191919669508934, -0.020794635638594627, 0.0602978840470314, 0.026344245299696922, 0.034872014075517654, -0.020243611186742783, 0.002141781849786639, -0.025176597759127617, 0.006412226241081953, -0.0070386892184615135, -0.03972628340125084, -0.017173614352941513, -0.015126950107514858, 0.004926426336169243, 0.0435047410428524, 0.017226092517375946, 0.0013882223283872008, 0.023851513862609863, -0.01563861593604088, 0.005421692971140146, 0.01150592789053917, -0.01592724770307541, 0.004936266224831343, 0.022631386294960976, 0.01405113935470581, 0.026593519374728203, -0.03739098832011223, 0.005972717888653278, 0.03306150436401367, -0.0367874838411808, -0.027498774230480194, -0.00856056809425354, -0.0012053673854097724, -0.017947673797607422, -0.01394618209451437, -0.009019755758345127, -0.050274476408958435, 0.00015651325520593673, 0.001838390133343637, 0.01405113935470581, -0.0029191209468990564, 0.003273351350799203, 0.024638691917061806, -0.023366086184978485, 0.0013382036704570055, 0.005943198688328266, 0.008593367412686348, 0.0036243018694221973, -0.002117182593792677, -0.02187044732272625, 0.02503228187561035, -0.015153189189732075, -0.0026714876294136047, -0.019718825817108154, -0.0038571753539144993, -0.007012450136244297, -0.02825971320271492, 0.016005966812372208, -0.002405814826488495, -0.008153858594596386, -0.019508911296725273, -0.015546778216958046, 0.01752784475684166, -0.00035648533958010375, 3.320910036563873e-05, -0.0023992550559341908, 0.005956318695098162, -0.004860828164964914, -0.013631310313940048, 0.00734044099226594, 0.0018154308199882507, 0.019758185371756554, -0.02076839655637741, -0.0032077529467642307, 0.001958106877282262, 0.05302960425615311, 0.009393665008246899, 0.016898101195693016, -0.046627216041088104, 0.017094897106289864, 0.023405445739626884, 0.048673879355192184, 0.011230415664613247, -0.003302870551124215, -0.03600030392408371, -0.002430414082482457, -0.011440330184996128, -0.014798958785831928, 0.007307642139494419, -0.01982378214597702, 0.00591695960611105, 0.005497131031006575, -0.044501833617687225, 0.015415581874549389, -0.003827656153589487, -0.01932523585855961, 0.006572941783815622, 0.0015423782169818878, -0.020020578056573868, 0.011578085832297802, -0.015310624614357948, 0.015363103710114956, 0.007045248989015818, -0.02661975845694542, -0.02068967930972576, 0.026632878929376602, 0.0038112567272037268, -0.025137238204479218, 0.0017645921325311065, -0.02744629606604576, -0.0201124157756567, 0.01384122483432293, 0.012115991674363613, -0.017055537551641464, -0.025425869971513748, -0.008468730375170708, 0.005792323034256697, -0.0029027212876826525, 0.011820799671113491, -0.001119269640184939, -0.032667916268110275, -0.007615953683853149, -0.04193038493394852, -0.012942529283463955, -0.010928663425147533, -0.013696908950805664, 0.01056787371635437, 0.011617445386946201, -0.03059501014649868, -0.03169706091284752, 0.03568543121218681, -0.022880660369992256, -0.0005563549348153174, 0.0032257926650345325, -0.016268359497189522, -0.03243176266551018, 0.02752501331269741, 0.014641523361206055, -0.010508835315704346, 0.019954979419708252, -0.01949579082429409, 0.01306716538965702, 0.016937460750341415, -0.02928304672241211, 0.007589714135974646, -0.014877676963806152, -0.017186734825372696, 0.00782586820423603, 0.004336042329668999, -0.04439687728881836, -0.02428446151316166, -0.018039511516690254, -0.009393665008246899, -0.003384868148714304, -0.00983317382633686, 0.015310624614357948, 0.027183903381228447, 0.00506746256724, -0.01716049574315548, -0.043478500097990036, -0.010725309140980244, -0.006300709210336208, -0.02654104121029377, -0.07252539694309235, -0.002996198832988739, -0.014707121066749096, -0.0303850956261158, 0.011361612007021904, 0.028023559600114822, 0.0010840105824172497, -0.01716049574315548, 0.02920432761311531, -0.0201124157756567, 0.009780694730579853, -0.03707611560821533, 0.00367022049613297, 0.0013054045848548412, -0.02162117324769497, 0.002661647740751505, -0.028285954147577286, 0.00968885701149702, -0.0067828563041985035, -0.007497876882553101, 0.01588789001107216, -0.017763998359441757, 0.009439583867788315, 0.014628403820097446, 0.008206337690353394, -0.00991189107298851, -0.00010239472612738609, 0.007812748663127422, 0.013959301635622978, -0.02314305305480957, -0.026632878929376602, 0.0008888558950275183, -0.022592026740312576, 0.017016177996993065, -0.013775626197457314, -0.019968098029494286, 0.022657625377178192, -0.028600824996829033, 0.007373240310698748, 0.01286381110548973, -0.004732911940664053, -0.02269698493182659, -0.009373986162245274, -0.020873354747891426, 0.020860234275460243, 0.025976896286010742, 0.006776296533644199, -0.017212973907589912, -0.0031454346608370543, 0.001977786421775818, -0.0014530005864799023, 0.006986210588365793, 0.00591695960611105, -0.03235304355621338, 0.01097458228468895, 0.018013272434473038, -0.0017498325323686004, 0.0006059635779820383, -0.009341186843812466, 0.012214388698339462, 0.014733361080288887, -8.461145625915378e-05, 0.004723072052001953, 0.0025993294548243284, 0.0035390241537243128, 0.01756720431149006, 0.0025878497399389744, 0.004119568504393101, -0.020374808460474014, 0.02547834999859333, 0.00198106630705297, -0.024717409163713455, -0.021240703761577606, -0.030726207420229912, -0.0012307866709306836, 0.01716049574315548, 0.003975252155214548, 0.002469773171469569, -0.012135671451687813, 0.026265528053045273, 0.005903840065002441, -0.024586213752627373, -0.03592158481478691, -0.01332955900579691, 0.0017629521898925304, 0.01719985343515873, -0.013165563344955444, -0.010193963535130024, -0.0019285876769572496, 0.010423557832837105, -0.003850615583360195, -0.028207235038280487, -0.05405293405056, -0.03867671266198158, -0.037705857306718826, -0.0006941111641936004, -0.0108565054833889, -0.0032274324912577868, -0.02105702832341194, -0.01489079650491476, 0.016124043613672256, 0.02518971636891365, 0.01613716222345829, 0.007753709796816111, 0.006399106699973345, -0.02588505856692791, 0.012437422759830952, 2.0115079678362235e-05, 0.002968319458886981, -0.03251047804951668, 0.012909729965031147, 0.007268283050507307, 0.017685281112790108, -0.007681551855057478, -0.022749463096261024, -0.00983317382633686, -0.016648828983306885, -0.024835485965013504, -0.042166538536548615, -0.018328143283724785, -0.00449347821995616, 0.006789416074752808, -0.011879838071763515, -0.005290496628731489, 0.010449796915054321, 0.005005144514143467, -0.03300902619957924, -0.011145138181746006, 8.090874871413689e-06, 0.026895271614193916, 0.009846293367445469, -0.016491392627358437, 0.0058021629229187965, 0.006576221901923418, 0.012660456821322441, 0.024599332362413406, -0.02256578765809536, 0.02129318192601204, -0.012063512578606606, 0.0009651138680055737, -0.02702646702528, 0.0014612004160881042, -0.023969590663909912, -0.002886321861296892, 0.015664855018258095, 0.032956548035144806, 0.0203092098236084, -0.0009208350675180554, 0.01507447101175785, -0.04738815501332283, -0.006789416074752808, -0.015861650928854942, 0.030699968338012695, 0.037049874663352966, 0.009118152782320976, 0.005165860056877136, 0.021765489131212234, -0.01986314170062542, -0.010954903438687325, 0.005493850912898779, 0.01818382740020752, -0.003411107463762164, -0.018905406817793846, 0.016307717189192772, -0.015599257312715054, 0.011105778627097607, -0.010915543884038925, 0.0335862897336483, -0.013552593067288399, -0.009610139764845371, -0.008573687635362148, 0.01109921932220459, 0.01818382740020752, 0.01818382740020752, 0.010987701825797558, 0.003712859470397234, -0.016858743503689766, 0.001557957730256021, -0.029965268447995186, -0.008613046258687973, 0.007143646478652954, -0.01224718801677227, -0.004683712963014841, -0.01654387079179287, 0.03783705458045006, 0.02326112985610962, -0.018170706927776337, -0.02486172690987587, 0.009190310724079609, 0.018275665119290352, -0.01478583924472332, -0.00991189107298851, 0.011755201034247875, -0.0013726428151130676, 0.01540246233344078, -0.01638643629848957, 0.00680909538641572, 0.010797467082738876, -0.02781364694237709, 0.040565941482782364, -0.02825971320271492, 0.0036472610663622618, 0.020702797919511795, 0.02862706407904625, -0.008186657913029194, 0.0005723444628529251, -0.016780024394392967, 0.02167365327477455, -0.004040850326418877, -0.04140559583902359, -0.024914205074310303, 0.018196946009993553, -0.020624080672860146, 0.03195945546030998, 0.012581738643348217, -0.029755353927612305, 0.01588789001107216, -0.014090497978031635, 0.005736564286053181, -0.003384868148714304, 0.028076039627194405, 0.0026091693434864283, 0.013277079910039902, -0.016635708510875702, 0.0018039511051028967, -0.022670745849609375, 0.02694774977862835, 0.012752294540405273, -0.011932316236197948, 0.0016383156180381775, 0.02789236418902874, 0.014444728381931782, -0.006582781672477722, -0.009373986162245274, 0.014392250217497349, -5.124861218064325e-06, 0.001425941358320415, 6.59825855109375e-06, 0.018341263756155968, 0.0013308238703757524, -0.021450618281960487, 0.04287499934434891, -0.00962325930595398, -0.027734927833080292, -0.026737835258245468, 0.021398140117526054, 0.016491392627358437, -0.028128517791628838, -0.03127723187208176, 0.013178682886064053, 0.021148866042494774, -0.01986314170062542, 0.004552516620606184, -0.008573687635362148, -0.008914798498153687, -0.010987701825797558, 0.004122848156839609, -0.0169112216681242, -0.04132688045501709, -0.027131425216794014, 0.010705629363656044, -0.01351323351264, -0.05218994617462158, -0.00016266308375634253, 0.055679772049188614, 0.007484757341444492, -0.006169512867927551, -0.018039511516690254, 0.00416548689827323, -0.00035402539651840925, 0.020794635638594627, -0.025124119594693184, -0.02453373558819294, -0.034425947815179825, -0.027393817901611328, -0.038073208183050156, -0.02482236735522747, -0.012621098197996616, -0.01797391287982464, 0.0040506902150809765, -0.031880736351013184, 0.01851181872189045, 0.0033881482668220997, 0.01822318695485592, -0.027918603271245956, -0.02215907908976078, 0.008593367412686348, -0.011309133842587471, -0.007806188426911831, -0.02068967930972576, -0.018367502838373184, -0.05171763896942139, -0.009000075981020927, -0.01731793023645878, -0.029886549338698387, -0.03314022347331047, -0.03841431811451912, 0.009203430265188217, -0.027577493339776993, 0.0005178159917704761, -0.0027502053417265415], "id": 13}, {"title": "Clovis culture", "text": "The Clovis culture is a prehistoric Paleo-Indian culture, named after distinct stone tools found at sites near Clovis, New Mexico, in the 1920s and 1930s. The Clovis culture appears around 11,500\u201311,000 uncal RCYBP (uncalibrated radiocarbon years before present), at the end of the last glacial period, and is characterized by the manufacture of \"Clovis points\" and distinctive bone and ivory tools.", "vector": [-0.06872909516096115, -0.0008887971634976566, -0.02674921229481697, 0.011020402424037457, -0.04705677554011345, -0.027977492660284042, 0.042880624532699585, -0.032617662101984024, -0.004844882525503635, 0.031553152948617935, -0.008011115714907646, 0.019993670284748077, -0.030270282179117203, -0.008434190414845943, 0.05205178260803223, 0.04389054328203201, -0.022013509646058083, -0.004012381657958031, 0.005121245980262756, -0.008898206986486912, -0.0004077207704540342, -0.04329004883766174, 0.017455225810408592, -0.022805066779255867, 0.028059376403689384, 0.025957653298974037, -0.022040804848074913, -0.011695955879986286, -0.04189800098538399, -0.014097926206886768, 0.04588308557868004, -0.009901302866637707, 0.036657337099313736, 0.04375406727194786, -0.01892916113138199, 0.0113957105204463, 0.026558145880699158, 0.006462118122726679, 0.026544498279690742, 0.00049813580699265, -0.02107182703912258, 0.015749281272292137, 0.03630250319838524, 0.02692662924528122, 0.00950552336871624, -0.0002761497744359076, 0.010958988219499588, -0.009382694959640503, 0.01079521793872118, -0.03799479827284813, 0.0318806916475296, -0.0322355292737484, -0.03971439227461815, -0.02664003148674965, 0.03597496077418327, -0.02391052059829235, 0.01415251661092043, 0.04924038425087929, -0.028605278581380844, -0.032044462859630585, -0.008420542813837528, 0.01174372248351574, 0.01281505636870861, -0.011061345227062702, 0.03002462536096573, 0.04539177566766739, 0.030461346730589867, 0.012746818363666534, 0.020744286477565765, 0.009826241061091423, 0.007860993035137653, 0.010993107222020626, 0.04031488299369812, -0.00026889951550401747, -0.0028199264779686928, -0.007710869889706373, -0.011518537998199463, -0.005673971958458424, -0.01838325895369053, 0.015872107818722725, 0.0057046785950660706, 0.023391911759972572, 0.013238130137324333, 0.00938951876014471, 0.023118961602449417, 0.057701870799064636, 0.002408793894574046, -0.05781105160713196, 0.04672923684120178, -0.01619965024292469, 0.04842153191566467, -0.04050594940781593, -0.035456351935863495, -0.0006120076286606491, -0.0003008859930559993, -0.009280338883399963, 0.060485973954200745, 0.00711720110848546, -0.04762997478246689, 0.012972002848982811, -0.03534717112779617, 0.04896743595600128, 0.03794020786881447, -0.04356300085783005, -0.038950126618146896, -0.033791352063417435, 0.04924038425087929, 0.03239930048584938, -0.0637613832950592, 0.03420077636837959, -0.03935955464839935, -0.016295183449983597, 0.054754000157117844, 0.005179247818887234, 0.025711996480822563, -0.0037326067686080933, -0.0010431851260364056, 0.0098057696595788, -0.022122690454125404, 0.012262330390512943, -0.045173414051532745, 0.004387689754366875, 0.03897742182016373, 0.002964931773021817, -0.05000464990735054, 0.016349773854017258, 0.047438908368349075, -0.006557651329785585, -0.0024480305146425962, -0.011382062919437885, -0.030979953706264496, 0.012719523161649704, 0.014793951995670795, -0.009457756765186787, 0.08728977292776108, -0.044518329203128815, 0.012637637555599213, 0.004435455892235041, -0.020689696073532104, 0.03062511794269085, -0.028605278581380844, 0.05270686373114586, -0.003527893451973796, 0.028687164187431335, -0.028550690039992332, -0.03168962895870209, 0.014016040600836277, 0.026503555476665497, -0.004142033401876688, -0.015244320966303349, -0.02273683063685894, -0.0181785449385643, 0.0059639825485646725, -0.015817519277334213, -0.026448965072631836, -0.021153712645173073, 0.0073833283968269825, -0.005438551306724548, 0.04727513715624809, -0.047957513481378555, -0.018847275525331497, 0.05101456865668297, -0.006209638435393572, -0.012262330390512943, 0.02528892271220684, -0.05126022547483444, -0.027308762073516846, -0.032017167657613754, 0.004281920846551657, 0.03422807157039642, -0.01281505636870861, 0.04320816695690155, 0.014712066389620304, -0.014657475985586643, -0.015694690868258476, 0.008038410916924477, -0.033791352063417435, 0.02887823060154915, 0.023664863780140877, 0.025302570313215256, -0.013784032315015793, 0.02749982662498951, -0.005151952616870403, -0.017960185185074806, 0.027936549857258797, 0.03521069511771202, 0.001054273801855743, 0.049758993089199066, 0.013224482536315918, -0.03531987592577934, 0.016213297843933105, -0.02127654105424881, 0.02388322539627552, 0.020553220063447952, -0.006963666062802076, 0.014875836670398712, 0.0028847523499280214, 0.021003590896725655, -0.042334720492362976, -0.010686037130653858, 0.0029444603715091944, -0.05715596675872803, 0.01797383278608322, 0.07626254856586456, 0.004084031563252211, 0.022573059424757957, -0.007444742135703564, 0.017728175967931747, -0.049595221877098083, -0.0173733402043581, 0.03534717112779617, 0.025793882086873055, 0.00708990590646863, 0.011006754823029041, 0.02093535289168358, -0.00711720110848546, 0.023555682972073555, -0.014016040600836277, -0.033108972012996674, 0.027677245438098907, 0.03122561052441597, 0.030242986977100372, -0.021699614822864532, -0.020034613087773323, -0.06889286637306213, -0.0026851568836718798, -0.053143586963415146, 0.047384317964315414, -0.005919627845287323, 0.01209855917841196, 0.01565374806523323, 0.0250296201556921, 0.012958355247974396, 0.03062511794269085, 0.02299613319337368, 0.03935955464839935, 0.017468873411417007, 0.027131343260407448, 0.013845446519553661, 0.04814857989549637, 0.016377069056034088, -0.008004291914403439, -0.03531987592577934, -0.01248751487582922, -0.03567471355199814, -0.015271616168320179, -0.03005192056298256, -0.032726842910051346, -0.0455828420817852, -0.012630813755095005, 0.02208174765110016, 0.03444643318653107, 0.006318818777799606, 0.08450566977262497, 0.0272678192704916, 0.005281604360789061, 0.006953430362045765, -0.018874570727348328, 0.008625255897641182, 0.041161030530929565, 0.015517272055149078, 0.0010679212864488363, -0.040014635771512985, 0.008748084306716919, -0.02187703363597393, 0.01267175655812025, -0.022600354626774788, -0.02526162751019001, -0.006762364413589239, -0.010617799125611782, -0.018601620569825172, -0.004592402838170528, 0.022955190390348434, -0.03750348836183548, 0.0465654656291008, 0.017305102199316025, 0.012794584967195988, 0.023978756740689278, 0.016786495223641396, 0.017878299579024315, 0.008843616582453251, 0.04031488299369812, 0.021099122241139412, -0.018601620569825172, -0.008761731907725334, 0.0010977754136547446, -0.054835882037878036, -0.038950126618146896, 0.053007110953330994, -0.01708674058318138, -0.030979953706264496, 0.011839255690574646, -0.028605278581380844, 0.00018530823581386358, -0.03354569524526596, 0.006137988530099392, -0.03742160275578499, 0.005302075762301683, -0.021153712645173073, -0.007622160483151674, 0.04667464643716812, -0.01927035115659237, 0.043972428888082504, -0.038813650608062744, 0.09449568390846252, -0.005012065172195435, 0.016336126253008842, -0.008229476399719715, -0.030952658504247665, -0.047957513481378555, -0.06032220274209976, -0.05491776764392853, 0.006881780456751585, -0.0007237470126710832, 0.024824906140565872, 0.004636757541447878, -0.0065201204270124435, 0.0041863881051540375, -0.01846514455974102, -0.005680795758962631, -0.03234471008181572, -0.0006034779362380505, -0.047466203570365906, 0.0025384456384927034, 0.04102455452084541, -0.04086078703403473, 0.00011323207581881434, -0.024238061159849167, -0.05721055716276169, -0.002125607104972005, -0.029915444552898407, -0.013047064654529095, 0.03676651790738106, -0.012153149582445621, -0.017823709174990654, 0.01645895279943943, -0.03196257725358009, 0.043426524847745895, -0.007335561793297529, -0.007171791046857834, 0.04080619663000107, 0.007356033194810152, 0.0455828420817852, 0.04473669081926346, 0.018628915771842003, -0.013859094120562077, 0.021426664665341377, -0.04465480521321297, 0.011593599803745747, -0.00475276168435812, 0.0006491119274869561, 0.03471938520669937, -0.038295045495033264, -0.07740893959999084, -0.010181077755987644, -0.018219487741589546, 0.05617334321141243, -0.018328668549656868, 0.007901935838162899, 0.05393514409661293, -0.03002462536096573, 0.010604151524603367, 0.021481255069375038, -0.005424903705716133, -0.0369848795235157, 0.00544878700748086, -0.02904200181365013, 0.008127120323479176, -0.00555455544963479, 0.01019472535699606, -0.05278874933719635, -0.009771650657057762, -0.049758993089199066, -0.0133882537484169, -0.012078087776899338, -0.017823709174990654, 0.020225679501891136, 0.004807352088391781, 0.03073429875075817, -0.012050792574882507, -0.010160606354475021, 0.07642631977796555, 0.08101189881563187, 0.06408892571926117, 0.04877636954188347, -0.01065191812813282, -0.02648990787565708, 0.007963349111378193, -0.0449550524353981, -0.05437186732888222, 0.0019464828073978424, -0.0449550524353981, -0.001361343776807189, 0.027117695659399033, -0.015994936227798462, -0.037749141454696655, -0.04154316335916519, 0.0024514424148947, -0.02434724196791649, 0.031553152948617935, 0.0011003342224285007, 0.04547366127371788, 0.02062145806849003, 0.0272678192704916, 0.04140668734908104, 0.021808795630931854, -0.005496553611010313, 0.023187199607491493, 0.015530919656157494, -0.04318087175488472, 0.008249947801232338, 0.02614871971309185, 0.021890681236982346, 0.009942245669662952, -0.02062145806849003, -0.008468309417366982, -0.04664735123515129, 0.03848611190915108, -0.023951461538672447, 0.0816669836640358, -0.00445251539349556, -0.022491173818707466, -0.024319946765899658, 0.03783102706074715, -0.02520703710615635, 0.03190798684954643, 0.002705628052353859, -0.005022300872951746, 0.012078087776899338, 0.012910588644444942, -0.042307425290346146, 0.05639170482754707, 0.02893282100558281, 0.09657011181116104, 0.02004826068878174, -0.046347104012966156, -0.03245389088988304, -0.012310096062719822, -0.02156314067542553, -0.010153782553970814, 0.013183539733290672, 0.011962084099650383, -0.024156175553798676, -0.015257968567311764, -0.04945874586701393, -0.04380865767598152, -0.00820218212902546, 0.019980022683739662, 0.007976996712386608, 0.02107182703912258, 0.012439748272299767, 0.05112374946475029, 0.001148100709542632, -0.0318806916475296, -0.013340487144887447, 0.029860854148864746, 0.008427366614341736, -0.01950235851109028, 0.055354490876197815, 0.016104117035865784, 0.007758636027574539, -0.024265356361865997, 0.01685473322868347, -0.01765993796288967, -0.015203378163278103, -0.02296883799135685, 0.031034544110298157, 0.03630250319838524, -0.027417941018939018, -0.014698418788611889, 0.020007317885756493, -0.014684771187603474, -0.049595221877098083, 0.026858391240239143, -0.000957034935709089, -0.05448104813694954, 0.020867114886641502, -0.017496168613433838, -0.0058923326432704926, -0.013524728827178478, -0.00911656767129898, -0.007854169234633446, -0.008618432097136974, 0.07140401750802994, 0.0027892193756997585, 0.04588308557868004, -0.04984087869524956, -0.003449419979006052, 0.01134112011641264, 0.009007387794554234, 0.021740557625889778, 0.010283433832228184, 0.022873304784297943, 0.0024241472128778696, -0.045692019164562225, -0.02073063887655735, -0.014398172497749329, 0.007772283628582954, -0.01682743802666664, -0.009430461563169956, -0.02557552233338356, 0.011648190207779408, 0.01877903752028942, 0.0235966257750988, -0.012446572072803974, 0.01583116687834263, 0.03794020786881447, 0.029697084799408913, 0.05813859403133392, 0.017468873411417007, -0.0602676123380661, 0.02004826068878174, -0.025984948500990868, -0.0424439013004303, 0.005902568344026804, 0.006489413324743509, 0.06583581119775772, 0.015312558971345425, -0.047957513481378555, -0.006056103389710188, 0.04096996784210205, 0.009409990161657333, -0.041734229773283005, -0.04929497465491295, 0.015640100464224815, 0.014070631004869938, 0.021453959867358208, 0.017646290361881256, 0.04009652137756348, 0.011423004791140556, -0.002163137774914503, 0.014657475985586643, -0.00202836818061769, 0.008522898890078068, 0.04596497118473053, -0.023664863780140877, 0.013135773129761219, -0.00881632138043642, -0.04148857295513153, -0.027936549857258797, 0.023269085213541985, -0.006342702079564333, 0.038376931101083755, -0.022668592631816864, 0.014439115300774574, -0.005404432769864798, -0.05748350918292999, 0.0028028669767081738, 0.006769188214093447, -0.022927895188331604, -0.007956525310873985, 0.04877636954188347, -0.0027704541571438313, 0.03016110137104988, 0.05371678248047829, 0.021262893453240395, 0.027199581265449524, -0.0026766271330416203, -0.011150053702294827, 0.01508055068552494, 0.0007531745359301567, -0.030461346730589867, 0.012132678180932999, 0.0028676928486675024, -0.012985650449991226, -0.009307634085416794, 0.011491242796182632, 0.022013509646058083, 0.0025179742369800806, 0.010426733642816544, 5.730907651013695e-05, 0.026967572048306465, -0.018819980323314667, 0.00766310328617692, 0.04135209694504738, -0.03065241314470768, -0.029424132779240608, -0.019543301314115524, -0.02494773454964161, 0.03354569524526596, -0.01276046596467495, 0.0026561557315289974, -0.021713262423872948, -0.01711403578519821, -0.02789560705423355, 0.02331002801656723, -0.04255308210849762, 0.028277738019824028, 0.02734970487654209, -0.02044404111802578, -0.011463947594165802, 0.00851607508957386, -0.010269786231219769, 0.022286459803581238, 0.01989813894033432, 0.020976295694708824, -0.017250511795282364, 0.013900036923587322, -0.031471267342567444, -0.0028438097797334194, 0.040560539811849594, 0.011859727092087269, 0.014834894798696041, 0.025684701278805733, 0.032644957304000854, -0.0006930400268174708, 0.010065073147416115, -0.045118823647499084, 0.012583047151565552, -0.005414668004959822, -0.011409357190132141, -0.05841154232621193, 0.010754275135695934, -0.019857196137309074, 0.014166164211928844, -0.014957722276449203, 0.0055067893117666245, 0.0033368277363479137, 0.033818647265434265, -0.017537111416459084, 0.038322340697050095, 0.0659995824098587, 0.0022194338962435722, 0.03335462883114815, 0.04326275736093521, 0.00368142849765718, -0.013258601538836956, 0.0027329232543706894, -0.01505325548350811, 0.013354134745895863, 0.010454028844833374, -0.03119831532239914, -0.015558214858174324, 0.02414252795279026, -0.006219874136149883, -0.026448965072631836, -0.02273683063685894, -0.033764056861400604, -0.045173414051532745, -0.05442645773291588, -0.04610144719481468, -0.034937746822834015, -0.04151586815714836, -0.03534717112779617, 0.00893232598900795, 0.04031488299369812, 0.0436994768679142, 0.017141330987215042, 0.003940732218325138, -0.009191629476845264, -0.008488780818879604, -0.011177348904311657, -0.016131412237882614, 0.013340487144887447, 0.01532620657235384, 0.0051314812153577805, 0.06720057129859924, -0.018970103934407234, -0.0004533547908067703, 0.010133311152458191, -0.007458389736711979, -0.0030997013673186302, -0.004312627948820591, -0.024251708760857582, -0.018396906554698944, -0.002970049623399973, 0.010140134952962399, -0.0235966257750988, 0.0029103416018188, 0.03690299391746521, -0.011927965097129345, 0.01420710701495409, -0.014875836670398712, -0.020007317885756493, 0.0013749913778156042, 0.0010030954144895077, -0.018315020948648453, 0.012978826649487019, 0.03862258791923523, -0.009014211595058441, -0.027158638462424278, 0.010365319438278675, 0.022927895188331604, -0.025398103520274162, -0.004397925455123186, -0.01705944538116455, 0.03935955464839935, -0.05117833986878395, -0.04724784195423126, -0.005360078066587448, 0.010740627534687519, 0.009273515082895756, -0.01614505983889103, -0.011593599803745747, -0.01529891137033701, -0.01281505636870861, -0.045664723962545395, -0.02489314414560795, 0.047384317964315414, 0.017127683386206627, -0.053034406155347824, 0.02107182703912258, 0.022777773439884186, -0.0328633189201355, 0.015872107818722725, 0.010638270527124405, -0.007185438647866249, -0.007478861138224602, -0.02365121617913246, -0.02603953890502453, 0.013272249139845371, -0.00962152797728777, 0.0019481887575238943, -0.016554486006498337, -0.02411523275077343, -0.03815856948494911, 0.010030954144895077, 0.018833627924323082, 0.0235966257750988, 0.02471572533249855, -0.018342316150665283, 0.02898741140961647, 0.048476122319698334, 0.02015744149684906, -0.0008333539590239525, 0.04473669081926346, 0.007055786903947592, -0.027417941018939018, -0.05494506284594536, 0.004906296730041504, -0.03294520080089569, 0.00808617752045393, 0.03559282794594765, 0.010358495637774467, 0.03515610843896866, -0.012562575750052929, 0.01366120483726263, 0.026912981644272804, 0.039523325860500336, -0.029260361567139626, 0.021754205226898193, -0.021140065044164658, -0.0005292693385854363, -0.016936618834733963, -0.012692227959632874, -0.03750348836183548, -0.004633345641195774, 0.005766092799603939, -0.030979953706264496, -0.026448965072631836, 0.017127683386206627, -0.017646290361881256, 0.01820584014058113, 0.01752346381545067, -0.021890681236982346, -0.04045135900378227, 0.012084911577403545, -0.03242659568786621, 0.016308831050992012, 0.011839255690574646, -0.02351474016904831, -0.011327472515404224, -0.010822512209415436, -0.0004533547908067703, 0.06752811372280121, -0.033108972012996674, 0.015667395666241646, 0.015803871676325798, -0.025220684707164764, 0.03398241847753525, 0.024265356361865997, 0.000556137936655432, 0.020321212708950043, -0.006574710365384817, -0.00041518427315168083, 0.040041930973529816, -0.0017605348257347941, 0.015257968567311764, -0.012248682789504528, -0.061686959117650986, -0.04353570565581322, 0.05682842805981636, 0.028141262009739876, -3.009393003594596e-05, 0.0002050332259386778, -0.02466113492846489, -0.03813127428293228, 0.010842983610928059, 0.00835912860929966, 0.008345481008291245, -0.011163701303303242, 0.006724833510816097, -0.003886141814291477, -0.021440312266349792, -0.00010342289169784635, -0.00662247696891427, 0.010160606354475021, -0.010385790839791298, -0.06943877041339874, -0.005472670309245586, 0.0034579497296363115, -0.018683506175875664, -0.01209855917841196, -0.013224482536315918, 0.023760396987199783, -0.015339854173362255, 0.02528892271220684, -0.054262686520814896, -0.043945133686065674, -0.01147077139467001, 0.010822512209415436, 0.05207907781004906, 0.023432854562997818, -0.04806669428944588, -0.0035722479224205017, 0.0003546232474036515, 0.02526162751019001, -0.015517272055149078, -0.019802605733275414, 0.017182273790240288, -0.023528387770056725, -0.04866718873381615, -0.001799771562218666, -0.0013852270785719156, 0.013285896740853786, 0.036575451493263245, -0.011552657000720501, -0.00923257227987051, -1.944510222529061e-05, -0.0016701198183000088, -0.023419206961989403, 0.0003162394859828055, -0.05065973103046417, -0.0040499125607311726, 0.02956060878932476, 0.019925432279706, -0.042307425290346146, 0.0098057696595788, 0.011989378370344639, 0.016650019213557243, 0.004885825328528881, -0.045091528445482254, -0.00811347272247076, -0.009021035395562649, -0.002529915887862444, 0.03185339644551277, -0.043945133686065674, -0.025425398722290993, -0.04986817389726639, 0.03414618596434593, 0.016963914036750793, -0.0074310945346951485, 0.04031488299369812, -0.010181077755987644, -0.0156264528632164, -0.012228211387991905, -0.017386987805366516, -0.018192192539572716, -0.022518469020724297, 0.011047697626054287, -0.030434051528573036, 0.013135773129761219, 0.0032105876598507166, 0.05661006644368172, -0.025616465136408806, 0.029396837577223778, -0.0029052237514406443, 0.021126417443156242, 0.016295183449983597, 0.011204644106328487, 0.010576856322586536, -0.04318087175488472, 0.04765726998448372, -0.006376821082085371, 0.007854169234633446, 0.0032668840140104294, -0.05284333974123001, 0.02434724196791649, 0.021453959867358208, 0.014002392999827862, 5.672265979228541e-05, -0.003869082313030958, -0.0013920507626608014, 0.03534717112779617, 0.005278192460536957, -0.027076752856373787, -0.03248118609189987, 0.033764056861400604, 0.01937953010201454, -0.011975730769336224, -0.01177101768553257, 0.048639893531799316, -0.019911784678697586, 0.009860360063612461, 0.009662470780313015, 0.012528457678854465, -0.036684632301330566, -0.0057046785950660706, 0.015558214858174324, -0.005039360374212265, -0.011716427281498909, 0.014384524896740913, 0.0014287285739555955, -0.03695758432149887, 0.033736761659383774, -0.036111436784267426, 0.015612805262207985, -0.010146958753466606, -0.013565671630203724, 0.00863207969814539, 0.021085474640130997, 0.03933225944638252, -0.01568104326725006, -0.03458290919661522, 0.0059469230473041534, 0.013654381036758423, 0.01316306833177805, 0.019256703555583954, 0.012999298050999641, 0.0010090662399306893, 0.048476122319698334, 0.05581850931048393, -0.0036063669249415398, 0.004387689754366875, 0.027909254655241966, 0.006489413324743509, 0.029123887419700623, -0.028850935399532318, 0.0015660572098568082, 0.011211467906832695, -0.023064371198415756, 0.013743089511990547, 0.020976295694708824, -0.0005851390305906534, -0.02294154278934002, 0.01583116687834263, -0.054781295359134674, -0.044081609696149826, 0.014985017478466034, -0.014548296108841896, -0.03875906020402908, 0.019652482122182846, -0.03504692763090134, -0.015899403020739555, 0.017878299579024315, -0.0299973301589489, 0.005366901867091656, 0.012842350639402866, 0.008966444991528988, 0.024279003962874413, 0.015421739779412746, -0.008052058517932892, 0.011061345227062702, 0.002359321340918541, 0.0173733402043581, -0.005394197069108486, -0.001398874563165009, -0.01453464850783348, -0.038840945810079575, -0.014630180783569813, 0.05038677901029587, -0.02164502441883087, 0.00478005688637495, 0.017195921391248703, 0.03974168747663498, -0.02307801879942417, -0.012521633878350258, -0.002912047551944852, 0.005745621398091316, 0.036056846380233765, 0.006301759276539087, 0.004322863649576902, -0.007779107429087162, 0.03073429875075817, 0.0526522733271122, 0.051342111080884933, -0.011259234510362148, 0.0010807159123942256, -0.008707141503691673, 0.030515937134623528, -0.0072127338498830795, 0.03340921923518181, -0.00047766449279151857, 0.007403799798339605, 0.0033538872376084328, -0.00992177426815033, 0.025398103520274162, 0.017441578209400177, 0.013408725149929523, 0.04045135900378227, -0.007335561793297529, -0.0025589170400053263, 0.01955694891512394, -0.020566867664456367, 0.0033538872376084328, 0.025616465136408806, 0.0016752376686781645, 0.01820584014058113, -0.005929863546043634, -0.009464580565690994, 0.000745924306102097, 0.014111573807895184, 0.01765993796288967, -0.040587835013866425, 0.004694759380072355, 0.0035313053522258997, 0.00019458431052044034, -0.003544952953234315, -0.019229408353567123, -0.013156244531273842, -0.0074652135372161865, 0.005349842365831137, 0.02247752621769905, -0.03070700354874134, 0.04419079050421715, -0.029697084799408913, -0.04200718179345131, -0.027144990861415863, 0.014056983403861523, 0.012808232568204403, -0.031089134514331818, -0.017905594781041145, 0.004704995080828667, -0.06037679314613342, -0.03073429875075817, -0.012603518553078175, -0.021672319620847702, 0.025984948500990868, 0.04577390477061272, -0.015135141089558601, 0.025984948500990868, -0.0192976463586092, -0.02640802226960659, 0.008939149789512157, 0.021481255069375038, -0.014903131872415543, 0.006107281893491745, -0.039960045367479324, 0.007731340825557709, -0.0013587848516181111, -0.03193528205156326, 0.02130383625626564, -0.018970103934407234, -0.002695392584428191, -0.009566937573254108, -0.008017939515411854, -0.006230109836906195, -0.008754908107221127, -0.03229011967778206, -0.0009519170853309333, -0.004022617358714342, 0.03971439227461815, 0.035101518034935, 0.010112839750945568, 0.031116429716348648, -0.03253577649593353, -0.0044218082912266254, 0.02093535289168358, 0.033163562417030334, -0.009519170969724655, 0.004568519536405802, -0.007035315502434969, -0.0033624167554080486, -0.01502596028149128, 0.001704238704405725, -0.004892649129033089, -0.015926698222756386, -0.006424587219953537, -0.014930427074432373, -0.014193459413945675, -0.020894410088658333, 0.021781500428915024, 0.009355400688946247, -0.016895676031708717, 0.002813102677464485, -0.028032081201672554, -0.035456351935863495, 0.004428632091730833, 0.022259164601564407, -0.0013502552174031734, 0.04588308557868004, -0.010529090650379658, 0.012692227959632874, 0.00475276168435812, 0.015517272055149078, 0.01450735330581665, 0.03171692416071892, -0.0019823077600449324, -0.00769039848819375, -0.010576856322586536, -0.008318185806274414, -0.011409357190132141, -0.018656210973858833, 0.005711502395570278, 0.022777773439884186, 0.0046435813419520855, 0.017482521012425423, 0.043426524847745895, -0.02474302053451538, -0.037776436656713486, -0.021999862045049667, -0.012200916185975075, 0.05912121757864952, -0.010262962430715561, -0.0014807599363848567, 0.02101723849773407, 0.00736285699531436, -0.020744286477565765, 0.03297249600291252, 0.006632712669670582, 0.029287656769156456, 0.00420685950666666, -0.012521633878350258, -0.024797610938549042, 0.010290257632732391, -0.012064440175890923, -0.026135072112083435, -0.016554486006498337, -0.009184805676341057, 0.015162435360252857, -0.003637074027210474, -0.026012243703007698, -0.008065706118941307, 0.002855751197785139, -0.013449667021632195, -0.006195990834385157, -0.0031491736881434917, 0.02565740793943405, -0.0019413649570196867, -0.0010755980620160699, -0.010842983610928059, -0.02190432883799076, -0.02015744149684906, -0.005482906010001898, -0.012780937366187572, 0.004889237228780985, 0.011593599803745747, -0.01789194718003273, 0.01196890790015459, -0.013831798918545246, 0.021754205226898193, -0.007983820512890816, -0.004834646824747324, 0.020321212708950043, 0.027336057275533676, -0.02354203537106514, -0.011661837808787823, -0.022955190390348434, -0.03747619315981865, 0.024824906140565872, -0.005725149996578693, 0.013592966832220554, 0.008106648921966553, -0.014889484271407127, 0.028168557211756706, -0.009771650657057762, 0.004295568447560072, 0.017277806997299194, -0.014630180783569813, 0.0017690645763650537, 0.004971122834831476, 0.017154978588223457, -0.012555751949548721, -0.034309957176446915, 0.029424132779240608, -0.0023081430699676275, -0.011600423604249954, 0.03523799031972885, -0.032726842910051346, 0.018069365993142128, -0.00447981059551239, -0.0006683038081973791, 0.002495796885341406, -0.0060117486864328384, 0.024524660781025887, -0.02161773107945919, -0.038895536214113235, -0.04659276083111763, 0.03073429875075817, -0.004670876543968916, -0.0009834771044552326, -0.014630180783569813, 0.012535281479358673, -0.01423440221697092, -0.007833697833120823, 0.0012402217835187912, -0.006264228839427233, 0.011634542606770992, -0.004687936045229435, 0.00925986748188734, 0.06294253468513489, 0.007874640636146069, 0.01708674058318138, -0.019447768107056618, 0.02471572533249855, 0.028659868985414505, 0.03575659915804863, -0.02724052406847477, -0.025944005697965622, 0.0058991564437747, -0.016035879030823708, 0.014111573807895184, -0.011429828591644764, 0.06993008404970169, -0.018055718392133713, 0.0136339096352458, -0.01559915766119957, 0.011559480801224709, -0.020539572462439537, -0.0016760906437411904, -0.01149806659668684, -0.003137232270091772, 0.002088076202198863, 0.01723686419427395, -0.003643897594884038, -0.0009954186389222741, -0.01053591351956129, -0.016786495223641396, 0.01508055068552494, 0.010433557443320751, 0.027131343260407448, 0.036111436784267426, 0.003718959167599678, -0.030297575518488884, 0.0181785449385643, 0.03351840004324913, -0.01838325895369053, -0.004623109940439463, 0.05923039838671684, 0.0196115393191576, 0.009212100878357887, 0.03013380616903305, 0.009566937573254108, 0.010849807411432266, 0.02067604847252369, 0.020171089097857475, 0.019679777324199677, 0.02221822179853916, 0.005018888972699642, 0.0050666555762290955, 0.0034408902283757925, -6.72715259497636e-06, 0.002782395575195551, -0.014589237980544567, -0.024783963337540627, 0.005244073923677206, 0.0023473796900361776, -0.014848542399704456, 0.01502596028149128, 0.011832431890070438, 0.00868667010217905, 0.021986214444041252, -0.005445375107228756, -0.01251481007784605, 0.025097858160734177, 0.014111573807895184, 0.005360078066587448, 0.00666683167219162, -0.021972566843032837, 0.0003944996860809624, -0.04872177913784981, -0.02648990787565708, -0.004333099350333214, 0.020225679501891136, 0.03597496077418327, 0.025589169934391975, 0.0067384811118245125, -0.01723686419427395, 0.007567570544779301, 0.024470070376992226, -0.027158638462424278, 0.010842983610928059, 0.012664932757616043, 0.01104087382555008, 0.03190798684954643, 0.027226876467466354, -0.023146256804466248, 0.009812593460083008, 0.0073492093943059444, 0.011948436498641968, -0.047357022762298584, 0.000594095210544765, 0.031471267342567444, 0.009641999378800392, -0.002030074130743742, 0.014016040600836277, 0.010570032522082329, -0.03867717459797859, -0.016704609617590904, 0.0032088819425553083, 0.021344779059290886, -0.017618995159864426, 0.006158459931612015, -0.027950197458267212, -0.015721986070275307, 0.023159904405474663, -0.02687203884124756, 0.017987480387091637, -0.01708674058318138, -0.02492043934762478, -0.01843784935772419, -0.03744889795780182, 0.0008226917707361281, -0.033163562417030334, -0.011293353512883186, -0.0005710649420507252, -0.017618995159864426, -0.0039339084178209305, -0.022463878616690636, 0.029806263744831085, 0.019488710910081863, 0.003910025116056204, -0.022545764222741127, 0.039932750165462494, 0.019966375082731247, -0.017755471169948578, 0.018710801377892494, 0.0019447768572717905, 0.029724378138780594, -0.0363570898771286, 0.014630180783569813, -0.0007143642869777977, -0.014125221408903599, 0.016786495223641396, -0.01935223489999771, -0.01952965371310711, -0.0376126654446125, -0.028223147615790367, -0.0014517589006572962, -0.022641297429800034, -0.03927766904234886, 0.002127313055098057, -0.027254171669483185, 0.03594766557216644, 0.03482856601476669, 0.014848542399704456, 0.020307565107941628, 0.008106648921966553, -0.015667395666241646, 0.05830236151814461, -0.017141330987215042, -0.02887823060154915, -7.1969538112171e-05, -0.010065073147416115, 0.024838553741574287, 0.019925432279706, -0.007581217680126429, 0.022695887833833694, 0.016759200021624565, 0.013565671630203724, -0.020321212708950043, 0.0060629271902143955, 0.0010576857021078467, 0.03452831879258156, -0.01619965024292469, -0.0008589430944994092, 0.029314951971173286, -0.006813542917370796, 0.010153782553970814, 0.01308800745755434, -0.0029205773025751114, -0.009416813962161541, -0.015435387380421162, -0.015435387380421162, -0.0035040101502090693, -0.031061839312314987, -0.03130749613046646, 0.03289061412215233, 0.021781500428915024, 0.005056419875472784, -0.04247119650244713, 2.82280525425449e-05, -0.00517583591863513, 0.006731657311320305, -0.009880831465125084, -0.005557967349886894, -0.009812593460083008, -0.0016146765556186438, -0.032672252506017685, -0.03354569524526596, 0.026189662516117096, 0.047411613166332245, -0.022272812202572823, -0.0031150549184530973, -0.006973901763558388, -0.0012973708799108863, -0.0018680093344300985, -0.005684207659214735, -0.004469574894756079, 0.010030954144895077, 0.035401761531829834, -0.019365882501006126, 0.03638438507914543, -0.0035210696514695883, -0.03234471008181572, -0.019420472905039787, -0.012105382978916168, -0.025957653298974037, -0.011382062919437885, 0.01711403578519821, -0.012385157868266106, -0.014875836670398712, -0.017427930608391762, 0.004950651433318853, 0.01565374806523323, 0.04197988659143448, 0.010529090650379658, -0.006339290179312229, 0.004534400999546051, 0.012030321173369884, 0.009143862873315811, 0.009853536263108253, -0.004640169441699982, -0.0018867747858166695, 0.021167360246181488, 0.0016052938299253583, -0.020771581679582596, 0.005847977939993143, -0.009744355455040932, 0.0046435813419520855, 0.022327402606606483, -0.0008845322881825268, 0.02635343186557293, -0.007028491701930761, -0.00923257227987051, -0.0019106579711660743, -0.0029291068203747272, 0.009239396080374718, 0.024442775174975395, 0.002773866057395935, 0.032726842910051346, -0.01346331462264061, 0.000919504149351269, 0.003065582597628236, 0.02904200181365013, -0.0007450713310390711, 0.0066565959714353085, -0.0029461663216352463, 0.011347943916916847, -0.03807668387889862, 0.006793071515858173, -0.024551954120397568, 0.006359761580824852, -0.005472670309245586, -0.0014423761749640107, 0.009641999378800392, -0.023296380415558815, -0.020403098315000534, -1.3107784980093129e-05, -0.03753077983856201, -0.03706676512956619, 0.014275345019996166, -0.027977492660284042, -0.01723686419427395, 0.025439046323299408, 0.013695323839783669, 0.009041506797075272, 0.018246782943606377, -0.01570833846926689, 0.0047971163876354694, 0.021890681236982346, 0.0015097609721124172, -0.014875836670398712, 0.005865037441253662, -0.006008336786180735, 0.04713866114616394, 0.016622724011540413, 0.0027260994538664818, -0.033190857619047165, -0.015844814479351044, 0.031007248908281326, 0.008229476399719715, 0.0026680973824113607, -0.0049028848297894, 0.0017375046154484153, 0.008475133217871189, -0.039523325860500336, -0.01950235851109028, -0.022641297429800034, 0.008884559385478497, 0.00865937490016222, 0.023187199607491493, 0.015749281272292137, 0.011695955879986286, -0.028577983379364014, 0.008495604619383812, -0.028632573783397675, 0.006004924885928631, -0.05183342099189758, 0.04203447699546814, -0.02893282100558281, 0.0008777084876783192, 0.00890503078699112, 0.009744355455040932, -0.026503555476665497, -0.013067536056041718, -0.011402533389627934, -0.0178646519780159, -0.02687203884124756, 0.01273317076265812, -0.0028386919293552637, 0.017045797780156136, 0.004298980347812176, -0.02792290225625038, -0.05145128816366196, 0.011259234510362148, 3.171990829287097e-05, -0.00890503078699112, -0.030379461124539375, -0.000688775151502341, -0.021262893453240395, -0.022122690454125404, 0.04648358002305031, 0.012855998240411282, -0.002814808627590537, -0.04421808570623398, -0.0023286144714802504, 0.012726346962153912, -0.014288991689682007, 0.01901104673743248, 0.006776012014597654, 0.012282800860702991, -0.010754275135695934, -0.0012717817444354296, -0.009150686673820019, -0.019748015329241753, -0.0577564612030983, -0.012658108957111835, -0.015394444577395916, -0.019174817949533463, -0.011307001113891602, 0.001667560893110931, -0.001339166541583836, -0.008174886927008629, 0.00938951876014471, -0.01666366681456566], "id": 14}, {"title": "Office of Migrant Education", "text": "The Office of Migrant Education (OME) is a program within the U.S. Department of Education's Office of Elementary and Secondary Education (OESE) that administers grant programs that provide academic and supportive services to the children of families who migrate to find work in the agricultural and fishing industries. OME also administers several contracts and special initiatives.The Office of Migrant Education was created out of a response from the public out-cry resulting from Edward R.", "vector": [-0.036061640828847885, -0.005345136392861605, -0.020434929057955742, 0.006410958245396614, -0.00444359565153718, 0.01939314976334572, 0.01886424422264099, -0.015258081257343292, -0.03231123089790344, -0.003790479153394699, 0.015394313260912895, -0.034971777349710464, -0.038049038499593735, -0.017549999058246613, -0.03776054456830025, -0.001331275561824441, -0.031109174713492393, -0.01572287455201149, -0.0075168488547205925, 0.013591231778264046, -0.003015153808519244, -0.029570546001195908, 0.026573421433568, -0.026733696460723877, 0.010826505720615387, 0.022149860858917236, 0.014905477873980999, 0.029666708782315254, 0.028881367295980453, 0.041959721595048904, -0.013294724747538567, 0.04513314738869667, 0.023063423112034798, -0.034619174897670746, -0.012389176525175571, -0.0016027395613491535, -0.039203010499477386, -0.0451972559094429, 0.012413217686116695, -0.03368958458304405, -0.01590719074010849, -0.004924417473375797, 0.023928901180624962, 0.02331986092031002, 0.024185340851545334, 0.008029725402593613, -0.048050131648778915, -0.05830766633152962, -0.026653559878468513, -0.0054292804561555386, 0.018543697893619537, 0.01801479235291481, -0.024201367050409317, 0.009167670272290707, -0.052441637963056564, 0.03862602263689041, 0.10443451255559921, 0.05580739304423332, -0.006923834793269634, -0.029426299035549164, -0.0365104079246521, -0.0003593642613850534, 0.008959313854575157, -0.04577424377202988, -0.01310239639133215, 0.01220486219972372, -0.026060545817017555, 0.015234040096402168, -0.03827342018485069, 0.02801588736474514, -0.008750958368182182, -0.008198012597858906, -0.013166505843400955, 0.050999172031879425, -0.020499039441347122, -0.022823011502623558, -0.0066153076477348804, -0.03006739541888237, 0.01644410751760006, -0.017758354544639587, 0.009287876076996326, -0.006879759486764669, 0.07225149869918823, 0.00131825334392488, 0.04933232441544533, -0.06334026902914047, -0.01897643692791462, -0.049556706100702286, -0.01319054700434208, 0.020322738215327263, -0.031013010069727898, 0.008718903176486492, -0.020563147962093353, 0.03471533954143524, 0.02867301180958748, -0.000364873674698174, 0.025018764659762383, -0.025627806782722473, -0.013094382360577583, -0.010241505689918995, -0.0023600340355187654, 0.018239175900816917, -0.028352463617920876, 0.015586642548441887, 0.0025744005106389523, 0.036959175020456314, 0.011716026812791824, 0.030756572261452675, 0.027855614200234413, 0.06478273123502731, -0.04221615940332413, 0.0031113182194530964, 0.005966198164969683, 0.027246572077274323, 0.0356769822537899, 0.02054712176322937, 0.0045557874254882336, 0.017742326483130455, -0.0037203591782599688, 0.03945944830775261, 0.018896300345659256, 0.013943834230303764, 0.013310751877725124, -0.038465749472379684, -0.07270026952028275, 0.0233839713037014, -0.020450957119464874, 0.06439808011054993, -0.011315341107547283, -0.013487054035067558, 0.048114243894815445, -0.001110898912884295, -0.031173285096883774, -0.0186238344758749, 0.029057668522000313, 0.0016107532428577542, 0.023223696276545525, 0.03115725703537464, -0.010321643203496933, 0.0269901342689991, -0.018335340544581413, 0.0428893119096756, -0.07109753042459488, 0.03692711889743805, 0.0033857873640954494, -0.03548465296626091, 0.02856081910431385, 0.03862602263689041, -0.04183150455355644, 0.027214517816901207, -0.03349725902080536, -0.03872218728065491, 0.013454998843371868, -0.03200671076774597, 0.031365614384412766, -0.02380068227648735, 0.015634724870324135, 0.009384040720760822, -0.010714313946664333, 0.050454240292310715, -0.017101231962442398, -0.010401779785752296, 0.013422943651676178, 0.02114013582468033, 0.000522392918355763, -0.010650204494595528, -0.010345684364438057, -0.044972874224185944, 0.009712602011859417, 0.03631807863712311, -0.046190954744815826, 0.03522821515798569, -0.03175027295947075, -0.040998078882694244, -0.02801588736474514, -0.018880272284150124, 0.005196882877498865, 0.04705643281340599, -0.0643339678645134, -0.0014204279286786914, -0.04231232404708862, 0.05615999549627304, 0.06718683987855911, 0.015290135517716408, 0.025563696399331093, -0.010978765785694122, -0.01650821790099144, 0.01403999887406826, -0.027631230652332306, -0.0008324228692799807, 0.03234328329563141, -0.016492189839482307, 0.05237752944231033, 0.03683095425367355, 0.04516519978642464, -0.017501916736364365, -0.020050272345542908, 0.06176958233118057, 0.03163807839155197, -0.058532048016786575, -0.020803559571504593, 0.003199468832463026, 0.048402734100818634, 0.026365065947175026, 0.029602600261569023, 0.05285835266113281, 0.012733765877783298, 0.0010818492155522108, -0.04378684610128403, -0.013727464713156223, 0.01843150518834591, -0.023720545694231987, 0.016844792291522026, 0.021893423050642014, -0.0075048282742500305, -0.005769862327724695, -0.03231123089790344, -0.02626890130341053, 8.877674554241821e-05, 0.003491968847811222, 0.059493694454431534, 0.020466985180974007, 0.009624451398849487, 0.01657232642173767, -0.032679859548807144, -0.03465123102068901, 0.0044716433621943, -0.038465749472379684, -0.03037191554903984, 0.0062506841495633125, -0.04253670945763588, 0.09571560472249985, 0.013150478713214397, -0.04625506326556206, -0.040869858115911484, 0.05917314440011978, 0.03689506649971008, -0.019793834537267685, -0.00867883488535881, 0.013094382360577583, -0.04971698299050331, -0.00587404053658247, 0.0008624742622487247, -0.011876299977302551, -0.01421630010008812, -0.003167414106428623, -0.014657053165137768, 0.04369068145751953, -0.043530408293008804, 0.03423451632261276, 0.03522821515798569, -0.04417150467634201, -0.02790369652211666, -0.011275272816419601, 0.048723284155130386, 0.0818038284778595, -0.0040128594264388084, -0.00855862908065319, -0.022790957242250443, -0.039074789732694626, -0.018816161900758743, 0.03285616263747215, -0.04019670933485031, 0.005549485795199871, -0.01602739654481411, -0.0077211977913975716, 0.05644848942756653, -0.0031313523650169373, -0.022694792598485947, 0.0007507833070121706, -0.043049585074186325, 0.017421780154109, 0.0051087322644889355, -0.013735477812588215, 0.017870547249913216, 0.015650752931833267, 0.03532437980175018, -0.003291626460850239, 0.059076979756355286, 0.005405239295214415, -0.04712054505944252, -0.030339859426021576, -0.008113869465887547, 0.023480134084820747, 0.027390819042921066, 0.058115337044000626, 0.02735876478254795, -0.013879724778234959, 0.06930246204137802, 0.01729355938732624, -0.024297531694173813, 0.029714791104197502, -0.02194150537252426, 0.015995340421795845, 0.027919722720980644, 0.005285033956170082, -0.03574109449982643, -0.006775581743568182, 0.018062874674797058, -0.007761266548186541, 0.0030351881869137287, -0.0038966606371104717, 0.00435544503852725, -0.021861368790268898, 0.008398354984819889, 0.015530546195805073, -0.017197396606206894, 0.01764616370201111, -0.014144176617264748, -0.05718574672937393, 0.04054931178689003, -0.06494300812482834, -0.0024101196322590113, -0.010538012720644474, -0.003828544169664383, 0.00988088920712471, 0.02319164201617241, -0.023351915180683136, 0.012164792977273464, -0.03615780547261238, -0.012429245747625828, 0.011988491751253605, -0.016251780092716217, 0.002153681358322501, 0.006519143469631672, -0.0325356125831604, -0.0548136942088604, 0.0020034245681017637, 0.012180821038782597, 0.030580271035432816, -0.04157506301999092, -0.03872218728065491, 0.023031366989016533, -0.01573088951408863, 0.01578698493540287, -0.03259972482919693, 0.015402327291667461, 0.034202463924884796, 0.010738355107605457, 0.027503011748194695, -0.0063388352282345295, -0.03426657244563103, -0.019473286345601082, 0.017806436866521835, -0.012068629264831543, 0.008686848916113377, 0.052217256277799606, 0.03788876533508301, 0.013991916552186012, -0.012060615234076977, 0.0008549613994546235, -0.01644410751760006, 0.015009656548500061, 0.01093869749456644, 0.031670134514570236, 0.014833354391157627, -0.012228903360664845, -0.03285616263747215, 0.05436492711305618, 0.06705862283706665, -0.04115835204720497, 0.004439588636159897, -0.0146730812266469, 0.003181437961757183, -0.06401342153549194, 0.03878629952669144, -0.02788766846060753, 0.028336435556411743, 0.024249449372291565, -0.0641416385769844, 0.025515614077448845, -0.017245477065443993, 0.04070958495140076, -0.0317021906375885, -0.007256403565406799, 0.035388488322496414, -0.0013473029248416424, 0.025050818920135498, -0.0020294690039008856, 0.031109174713492393, -0.029843011870980263, 0.008061779662966728, 0.0019653593190014362, 0.05234547331929207, -0.009023424237966537, -0.013302738778293133, 0.029490407556295395, -0.04157506301999092, -0.011796163395047188, -0.00338178058154881, 0.036478351801633835, -0.005569519940763712, 0.001465504989027977, -0.006230650003999472, 0.018543697893619537, 0.049556706100702286, -0.029907120391726494, 0.006146506406366825, 0.013631300069391727, 0.008398354984819889, 0.009295889176428318, -0.05237752944231033, 0.020883696153759956, 0.034555066376924515, 0.02017849124968052, -0.048530954867601395, -0.01698903925716877, 0.0087108900770545, 0.023239724338054657, 0.017982738092541695, -0.0005454323254525661, -0.0025964381638914347, 0.018639860674738884, 0.03394602611660957, -0.0012190837878733873, 0.020803559571504593, -0.05122355744242668, 0.04824246093630791, -0.024233423173427582, 0.03747205063700676, 0.008189999498426914, 0.007324520032852888, 0.026797804981470108, 0.03481150418519974, 0.031109174713492393, 0.07205916941165924, 0.04561396688222885, -0.03933122754096985, -0.049556706100702286, 0.0040008388459682465, -0.012525409460067749, -0.014793286100029945, -0.005805924069136381, 0.03590136766433716, 0.015562601387500763, -2.0895091438433155e-05, -0.00010893620492424816, 0.02421739511191845, 0.029810955747961998, 0.021797258406877518, 0.010746369138360023, -0.0022638696245849133, -0.016460135579109192, 0.012910067103803158, -0.06253889948129654, -0.02759917639195919, 0.004435581620782614, 0.012429245747625828, 0.03176629915833473, -0.01771027222275734, -0.007977636530995369, 0.013887738808989525, -0.021829312667250633, -0.004475650377571583, 0.04433177784085274, 0.016428081318736076, 0.05090300738811493, -0.03223109245300293, -0.006495102308690548, -0.00685171177610755, -0.0007062071235850453, -0.018768081441521645, 0.07872656732797623, -0.001086857751943171, 0.017758354544639587, -0.006226643454283476, -0.015009656548500061, 0.0029029620345681906, -0.010241505689918995, 0.008847122080624104, 0.039074789732694626, 0.0009240795625373721, -0.020531093701720238, -0.003255564719438553, 0.007396643050014973, -0.011860272847115993, 0.03542054444551468, 0.0022378251887857914, 0.014312464743852615, -0.006783595308661461, 0.05019780248403549, 0.013246642425656319, -0.010153355076909065, 0.02229410782456398, 0.029730819165706635, -0.03945944830775261, 0.012004519812762737, 0.013607258908450603, -0.03926711902022362, 0.04272903874516487, 0.03878629952669144, 0.028352463617920876, -0.00012796874216292053, -0.04035698249936104, -0.0015676796901971102, -0.01301424577832222, 0.006551198195666075, -0.027454929426312447, 0.017822464928030968, -0.006451027002185583, -0.013711437582969666, 0.00049309286987409, 0.01608349196612835, 0.02548355981707573, -0.045581914484500885, 0.04135068133473396, 0.0029089723248034716, 0.02307944931089878, -0.010650204494595528, -0.015201984904706478, 0.054557256400585175, 0.03320876508951187, 0.01039376575499773, 0.003966780379414558, 0.007633047178387642, 0.02283903956413269, 0.07250794023275375, -0.022181915119290352, 0.01615561544895172, 0.04083780571818352, -0.020450957119464874, 0.028336435556411743, 0.014392601326107979, 0.0025623799301683903, -0.005954177584499121, -0.018960408866405487, 0.040453147143125534, 0.025323284789919853, 0.01639602519571781, -0.012998217716813087, -0.007717191241681576, 0.006226643454283476, 0.050037529319524765, 0.038113147020339966, 0.00040218746289610863, 0.022630682215094566, -0.022678764536976814, -0.013078355230391026, 0.006318800617009401, -0.024377668276429176, -0.03072451800107956, -0.010802464559674263, -0.024618079885840416, -0.06407752633094788, -0.05526246130466461, -0.01280588936060667, 0.01361527293920517, 0.008518560789525509, 0.007436711806803942, -0.011347396299242973, 0.03843369334936142, 0.0059982528910040855, -0.004411540925502777, 0.02216588892042637, -0.00564564997330308, -0.03248753026127815, -0.011772122234106064, 0.0008449442684650421, 0.005713766440749168, -0.02325575053691864, -0.010161369107663631, -0.027486983686685562, 0.019232874736189842, -0.0037043318152427673, -0.01825520396232605, 0.0006741523393429816, -0.010137327946722507, 0.009640478529036045, -0.010834519751369953, -0.0365104079246521, -0.030387941747903824, -0.025387395173311234, 0.01614760048687458, -0.005974211730062962, 0.041543010622262955, 0.04327397048473358, 0.0010538012720644474, -0.01340691652148962, 0.021300408989191055, -0.01358321774750948, -0.027134381234645844, 0.011187122203409672, 0.032567668706178665, 0.0023359928745776415, 0.004062945023179054, -0.004487670958042145, 0.02561177872121334, -0.021540820598602295, 0.004535752814263105, -0.02194150537252426, 0.021172190085053444, 0.002171712229028344, -0.028721094131469727, -0.01319054700434208, 0.01662040874361992, 0.030083421617746353, -0.02747095562517643, -0.002287910785526037, -0.00931191723793745, 0.03602958470582962, 0.024441778659820557, 0.028063969686627388, -0.009760684333741665, -0.014953560195863247, 7.688141340622678e-05, 0.03404218703508377, 0.019136710092425346, -0.004800205118954182, -0.020771505311131477, -0.014400615356862545, 0.058660268783569336, 0.005585547536611557, 0.035164106637239456, -0.005565513391047716, 0.030339859426021576, -0.01608349196612835, -0.015634724870324135, 0.038593970239162445, 0.02993917465209961, -0.010505957528948784, 0.016235752031207085, 0.016412053257226944, 0.0014604964526370168, 0.028336435556411743, -0.0035941435489803553, -0.019553422927856445, 0.014985615387558937, 0.03721561282873154, -0.00831020437180996, 0.041414789855480194, -0.018784107640385628, 0.03785670921206474, -0.0018080906011164188, 0.008510546758770943, -0.001004216494038701, 0.020162463188171387, 0.014985615387558937, -0.04869122803211212, 0.0037223626859486103, -0.0321669839322567, 0.023784656077623367, -0.03078862652182579, -0.025403423234820366, 0.05577533692121506, -0.013463012874126434, -0.008686848916113377, 0.033657532185316086, -0.005417259875684977, 0.020226573571562767, 0.022213971242308617, 0.020931778475642204, -0.029474381357431412, -0.007344554178416729, -0.010345684364438057, -0.020386846736073494, -0.0238487645983696, -0.052633967250585556, -0.04554985836148262, 0.013166505843400955, 0.01637999899685383, 0.01663643680512905, -0.002179725794121623, 0.031782325357198715, -0.01174808107316494, 0.0341062992811203, -0.012020546942949295, -0.0214446559548378, 0.02825629897415638, 0.002227808116003871, 0.004663972184062004, -0.008863150142133236, -0.03760027140378952, 0.032920271158218384, -0.03500383347272873, -0.012581505812704563, -0.023303832858800888, -0.00727643771097064, -0.03436273708939552, 0.004115033894777298, 0.03183040767908096, -0.010554039850831032, -0.03175027295947075, 0.038241367787122726, -0.011948423460125923, 0.03200671076774597, 0.01602739654481411, -0.07430300861597061, -0.0436265729367733, -0.020034244284033775, -0.04420355707406998, -0.0030231676064431667, 0.02764725871384144, 0.012533423490822315, 0.03994027152657509, -0.0030171573162078857, -0.019553422927856445, 0.002618475817143917, -0.00421520508825779, 0.021412601694464684, -0.003101301146671176, -0.019681641831994057, 0.0186238344758749, -0.023880818858742714, 0.017982738092541695, 0.014857395552098751, 0.0065552047453820705, -0.004016865976154804, -0.009167670272290707, 0.02548355981707573, 0.02035479247570038, 0.014881436713039875, 0.0027266608085483313, -0.0023219690192490816, 0.0036662667989730835, 0.015835067257285118, -0.042023830115795135, 0.005902088712900877, 0.002612465526908636, -0.004627910442650318, -0.0039367289282381535, 0.043466296046972275, 0.011387464590370655, 0.026605477556586266, -0.008246094919741154, -0.025739997625350952, -0.0011990495258942246, -0.008574657142162323, -0.010898629203438759, 0.045646023005247116, 0.009920958429574966, 0.008598698303103447, -0.022374244406819344, -0.012525409460067749, 0.008202020078897476, 0.02096383459866047, 0.035516709089279175, 0.03586931154131889, 0.01825520396232605, -0.027454929426312447, -0.0038004962261766195, -0.048947665840387344, 0.012301025912165642, 0.02205369621515274, -0.00415510218590498, -0.019313011318445206, -0.00721633480861783, 0.04670383036136627, -0.020499039441347122, -0.026284929364919662, 0.008935273624956608, -0.009864862076938152, 0.0028829278890043497, -0.018335340544581413, -0.00879904069006443, 0.04247259721159935, 0.008967327885329723, 0.01753397099673748, -0.04260081797838211, 0.034747395664453506, 0.0036001538392156363, -0.027855614200234413, 0.00012934609549120069, -0.01904054544866085, -0.0357731468975544, 0.010618149302899837, 0.04349835216999054, 0.02266273833811283, -0.013967875391244888, -0.0286089014261961, 0.021588902920484543, -0.032808080315589905, -0.014200272969901562, 0.012886025942862034, -0.013519108295440674, -0.006635341793298721, 0.023271778598427773, -0.013743491843342781, -0.043722737580537796, -0.011683971621096134, 0.018046848475933075, 0.016123559325933456, 0.014633012004196644, 0.018832189962267876, -0.027967805042862892, -0.006394931115210056, -0.040998078882694244, 0.028240270912647247, 0.0119243822991848, -0.030035339295864105, 0.006451027002185583, 0.0020064297132194042, -0.03772848844528198, -0.01382362935692072, -0.03673478960990906, 0.0001843150530476123, 0.02139657363295555, 0.011403491720557213, 0.017453834414482117, -0.004435581620782614, -0.01764616370201111, 0.021412601694464684, 0.004271300975233316, 0.010433834977447987, 0.010321643203496933, -0.047986023128032684, -0.023512190207839012, 0.010642190463840961, -0.005849999375641346, -0.03580520302057266, -0.008758971467614174, 0.011507670395076275, 0.03141369670629501, -0.032022736966609955, 0.005012568086385727, 0.026284929364919662, 0.05349944904446602, 0.005609588697552681, -0.02017849124968052, 0.012220889329910278, 0.015434382483363152, -0.002949040848761797, 0.019056573510169983, -0.01873602531850338, -0.01910465583205223, -0.010281573981046677, 0.012068629264831543, 0.02958657220005989, -0.035035885870456696, -0.01759808138012886, -0.02054712176322937, 0.023480134084820747, -0.0452934205532074, -0.0074767800979316235, -0.009504245594143867, 0.0396517775952816, 0.04093397036194801, 0.01928095705807209, -0.0008128894842229784, 0.01093869749456644, 0.0241693127900362, -0.05183259770274162, -0.01964958757162094, -0.013767533004283905, -0.018944382667541504, -0.039203010499477386, 0.01963355951011181, 0.003802499733865261, -0.07257204502820969, -0.000505113392136991, 0.025387395173311234, -0.015674792230129242, -0.01246931403875351, 0.010826505720615387, 0.06337232142686844, 4.6830045903334394e-05, 0.005629622843116522, -0.020531093701720238, 0.028721094131469727, -0.003369760001078248, 0.0007758261053822935, -0.03519616276025772, 0.015626711770892143, 0.03266383334994316, 0.023351915180683136, -0.006166540551930666, 0.036414243280887604, -0.00801770482212305, 0.01153972465544939, 0.001598732778802514, 0.012012532912194729, -0.0022498457692563534, 0.028881367295980453, -0.025034792721271515, 0.025018764659762383, -0.06680218875408173, 0.022310135886073112, 0.009047465398907661, 0.03561287373304367, 0.0769956111907959, 0.00727643771097064, -0.002922996412962675, 0.03910684585571289, 0.009768697433173656, -0.03644629940390587, 0.020803559571504593, -0.006491095293313265, 0.019313011318445206, -0.022919176146388054, 0.018207121640443802, -0.07148218899965286, -0.004583835136145353, -0.02812808007001877, 0.030644381418824196, 0.04397917538881302, 0.01178013626486063, 0.0698794424533844, -0.03181438148021698, -0.0069078076630830765, 0.0025623799301683903, 0.0325356125831604, 0.0020975854713469744, -0.05077479034662247, -0.001526609412394464, 0.013006231747567654, -0.01855972409248352, -0.021781230345368385, 0.03753616288304329, -0.021236298605799675, 0.001172003336250782, -0.005116746295243502, 0.034202463924884796, 0.012092670425772667, 0.019056573510169983, 0.01433650590479374, 0.009560341946780682, -0.013230615295469761, -0.0006130479159764946, 0.002856883220374584, -0.028528764843940735, 0.04067752882838249, -0.022871093824505806, -0.043177805840969086, 0.026573421433568, 0.012036574073135853, 0.032984379678964615, 0.017758354544639587, 0.005445307586342096, 0.04026081785559654, 0.06680218875408173, 0.002101592253893614, -0.020274655893445015, -0.0120846563950181, -0.04936438053846359, -0.005345136392861605, 0.016187669709324837, -0.017806436866521835, -0.002918989397585392, 0.056416433304548264, -0.04189561307430267, 0.029025614261627197, 0.008823081851005554, 0.051351774483919144, 0.010521985590457916, 0.01621171087026596, 0.011307328008115292, 0.002012440003454685, 0.010169382207095623, 0.005277019925415516, -0.003491968847811222, -0.04538958519697189, 0.007284451276063919, -2.2992426238488406e-05, 0.015931231901049614, 0.03397807851433754, 0.024569997563958168, 0.051544103771448135, -0.007805341854691505, 0.03011547587811947, 0.050518352538347244, 0.012164792977273464, 0.020018218085169792, -0.009560341946780682, -0.04423561319708824, 0.014480751939117908, -0.008438424207270145, -0.02000219002366066, -0.027631230652332306, -0.020643286406993866, 0.009384040720760822, -0.004671985749155283, 0.0007347559439949691, 0.01060212217271328, 0.002295924350619316, 0.028817256912589073, -0.028047943487763405, 0.04224821552634239, 0.03295232728123665, 0.009624451398849487, -0.0011018834775313735, 0.009103560820221901, 0.008470478467643261, -0.04138273745775223, 0.06712273508310318, 0.0064470199868083, 0.009808766655623913, 0.013150478713214397, 0.022085752338171005, -0.014841368421912193, -0.021556846797466278, 0.011387464590370655, -0.02904164046049118, -0.02386479265987873, 0.003103304421529174, -0.021669039502739906, -0.02229410782456398, 0.01945725828409195, -0.00552945164963603, 0.013727464713156223, -0.014264382421970367, -0.028656983748078346, -0.033336982131004333, -0.03718355670571327, -0.033048491925001144, -0.016371984034776688, 0.0015356248477473855, -0.033336982131004333, -0.00280880113132298, 0.034010134637355804, -0.03163807839155197, -0.014985615387558937, 0.02910575084388256, 0.04458821564912796, -0.009111574850976467, 0.041959721595048904, -0.01843150518834591, -0.006162533536553383, 0.02017849124968052, 0.033336982131004333, 0.00031053079874254763, -0.03239136561751366, -0.01268568355590105, -0.050454240292310715, -0.026541367173194885, -0.014168217778205872, -0.0022017634473741055, 0.01764616370201111, -0.019954107701778412, -0.0269901342689991, -0.02825629897415638, -0.020386846736073494, -0.006647362373769283, -0.004175136797130108, -0.02615671046078205, 0.030227668583393097, -0.009287876076996326, 0.03157396987080574, 0.00470003392547369, -0.029073696583509445, 0.029682736843824387, -0.02565986104309559, 0.033529311418533325, 0.04487670958042145, -0.031782325357198715, -0.013134450651705265, -0.034747395664453506, 0.008871163241565228, 0.008630752563476562, -0.036125749349594116, -0.034747395664453506, -0.019024519249796867, -0.02548355981707573, 0.005797910504043102, -0.004659965168684721, -0.0017820460489019752, -2.4682814910192974e-05, 0.002844862872734666, 0.018094930797815323, -0.01045787613838911, -0.01400794368237257, -0.027583148330450058, 0.027583148330450058, -0.006523150019347668, 0.009848834946751595, -0.028352463617920876, -0.012116711586713791, 0.0002012189506785944, -0.004627910442650318, 0.04837068170309067, 0.037375885993242264, 0.03820931166410446, -0.0013543149689212441, -0.01382362935692072, 0.005489382892847061, -0.002638509962707758, 0.005357156973332167, 0.01928095705807209, 0.0023399998899549246, -0.022726846858859062, 0.01238116342574358, -0.0029851023573428392, 0.056416433304548264, -0.006823663599789143, 0.032439447939395905, -0.0071882870979607105, 0.03391396999359131, 0.005321095231920481, -0.0257880799472332, -0.0034398797433823347, -0.021076025441288948, -0.016051437705755234, -0.0031954620499163866, 0.0245860256254673, 0.02150876447558403, 0.0011489639291539788, 0.022694792598485947, -0.03500383347272873, -0.0013623286504298449, 0.03628602251410484, 0.009760684333741665, -0.004692020360380411, 0.008566643111407757, 0.003161403816193342, 0.014576916582882404, 0.0023159587290138006, 0.033112600445747375, 0.01051397155970335, 0.0039367289282381535, 0.015803012996912003, -0.0074888006784021854, 0.017998766154050827, -0.02000219002366066, 0.015169929713010788, -0.02650931291282177, 0.0016217720694839954, 0.019970135763287544, -0.002027465496212244, 0.00710815005004406, -0.015169929713010788, 0.008230067789554596, -0.0034759414847940207, 0.021909449249505997, -0.035164106637239456, 0.0025243149138987064, 0.00023089467140380293, 0.013230615295469761, -0.0060463352128863335, -0.015041710808873177, -0.02162095718085766, 0.003191455267369747, 0.01988999731838703, 0.021252326667308807, 0.021829312667250633, 0.012413217686116695, -0.025355340912938118, -0.016780683770775795, -0.01000109501183033, -0.02469821646809578, 0.001355316606350243, -0.02035479247570038, -0.014977601356804371, -0.01880013570189476, -0.011187122203409672, 0.0035821229685097933, 0.018832189962267876, -0.027310682460665703, 0.03239136561751366, 0.01584308035671711, -0.0014665067428722978, -0.0010072216391563416, 0.03628602251410484, 0.004407533910125494, -0.014576916582882404, -0.0202426016330719, -0.011531711556017399, -0.010489930398762226, -0.002265873132273555, 0.01460897084325552, -0.0023600340355187654, 0.005417259875684977, -0.034074243158102036, -0.00804575253278017, -0.007356574758887291, -0.021284380927681923, 0.06362876296043396, -0.00412705447524786, 0.0202426016330719, 0.0018301282543689013, -0.005773869343101978, 0.0019142720848321915, -0.014416642487049103, 0.02939424477517605, 0.026284929364919662, -0.03542054444551468, -0.007540889550000429, -0.028705066069960594, -0.009720615111291409, -0.004784177523106337, 0.021476710215210915, -0.0013262670254334807, -0.013911779969930649, -0.008526574820280075, 0.006699451245367527, 0.014913491904735565, 0.0119243822991848, -0.014560889452695847, -0.009432122111320496, 0.005649656988680363, 0.020034244284033775, -0.011283286847174168, -0.007032020017504692, -0.019601505249738693, -0.0022578593343496323, 0.004040907137095928, -0.010137327946722507, 0.01246931403875351, -0.025836162269115448, -0.04369068145751953, 0.015073766000568867, 0.013038286939263344, 0.019922053441405296, 0.002490256680175662, 0.012357122264802456, -0.02554766833782196, 0.01790260151028633, -0.0026144690345972776, -0.025884244590997696, 0.01541835442185402, 0.015746915712952614, -0.004203184507787228, -0.004291335120797157, 0.009087533690035343, -0.024137258529663086, -0.0016748628113418818, 0.024265477433800697, -0.047633420675992966, -0.01310239639133215, -0.0333690382540226, 0.010962738655507565, 0.005942157004028559, -0.004972499329596758, 0.03522821515798569, 0.02517903968691826, 0.01698903925716877, 4.513965905061923e-05, 0.016973013058304787, -0.02150876447558403, -0.004736095666885376, 0.0031954620499163866, -0.017277533188462257, 0.00536116398870945, 0.017133286222815514, 0.024025065824389458, 0.015770956873893738, -0.04080574959516525, -0.0010788440704345703, 0.018992463126778603, -0.020755477249622345, 0.01897643692791462, -0.0017980734119191766, 0.050037529319524765, -0.0005754836602136493, 0.011699998751282692, -0.05330711975693703, 0.0241693127900362, 0.025227120146155357, 0.025050818920135498, 0.0006461043958552182, -0.026076573878526688, -0.01916876621544361, 0.0003736386715900153, -0.026589449495077133, 0.028945477679371834, -0.023576298728585243, -0.0027446914464235306, 0.02674972452223301, 0.004099006298929453, -0.029378216713666916, -0.019248902797698975, -0.011884314008057117, 0.0006225641700439155, 0.04429972171783447, 0.07000766694545746, 0.01509780716150999, 0.0065912664867937565, 0.015402327291667461, -0.030804654583334923, -0.0022518490441143513, 0.0015436385292559862, -0.016796709969639778, -0.010946711525321007, 0.010329656302928925, 0.05141588672995567, -0.04429972171783447, 0.01670054718852043, 0.025146983563899994, -0.01681273803114891, -0.02783958613872528, -0.009119587950408459, -0.020867669954895973, -0.0036282017827033997, 0.009359999559819698, 0.013639314100146294, -0.008702876046299934, -0.004599862731993198, 0.033529311418533325, -0.0026665579061955214, 0.010345684364438057, -0.024505889043211937, -0.027310682460665703, -0.02356027252972126, 0.00581393763422966, 0.0017870545852929354, 0.0066193146631121635, -0.007821368984878063, 0.03490766882896423, -0.0024882531724870205, -0.020162463188171387, -0.0021336469799280167, -0.015073766000568867, 0.045517805963754654, -0.004684006329625845, -0.0009426111937500536, -0.00825410895049572, -0.005457328166812658, -0.010978765785694122, -0.023416025564074516, -0.015314176678657532, -0.01162787526845932, 0.018896300345659256, 0.01591520383954048, -0.009424109011888504, -0.02343205362558365, 0.0427931472659111, 0.017854519188404083, 0.0026044517289847136, -0.04192766919732094, 0.01054602675139904, 0.018543697893619537, -0.019361093640327454, -0.01627582125365734, 0.011555752716958523, -0.03500383347272873, -0.004792191553860903, -0.028272327035665512, -0.012397190555930138, 0.01472917664796114, -0.0014434673357754946, 0.02259862795472145, -0.013575204648077488, 0.02368849143385887, -0.0011078937677666545, -0.03705533966422081, -0.006915821228176355, -0.016404040157794952, 0.03165410831570625, -0.03929917514324188, 0.007116163615137339, 0.01400794368237257, 0.054204653948545456, 0.026108628138899803, 0.03958766907453537, -0.032631777226924896, -0.0002313955337740481, 0.0013973885215818882, -0.03433068096637726, 0.006815650034695864, 0.0048322598449885845, -0.013366848230361938, 0.021364519372582436, 0.04452410712838173, -0.010473903268575668, -0.01766218990087509, -0.036061640828847885, -0.013935821130871773, 0.027006162330508232, 0.005990239325910807, -0.009207738563418388, -0.00013585721899289638, 0.00834225956350565, 0.022855065762996674, 0.01443266961723566, 0.003483955282717943, -0.02386479265987873, -0.021460682153701782, 0.017421780154109, -0.005393218714743853, -8.683592750458047e-05, -0.01000109501183033, -0.03251958638429642, 0.013871710747480392, -0.02174917608499527, -0.008903218433260918, -0.004159109201282263, -0.015987327322363853, -0.020450957119464874, 0.020338764414191246, 0.014256368391215801, -0.0018030820647254586, -0.020274655893445015, 0.0198258887976408, -0.005449314601719379, -0.0137034235522151, -0.023704517632722855, 0.014088081195950508, 0.014296436682343483, 0.0041991774924099445, 0.018816161900758743, 0.02463410794734955, -0.02513095736503601, 0.02777547761797905, -0.0024201367050409317, -0.006082396488636732, 0.02362438105046749, -0.00273467437364161, -0.021957531571388245, -0.020018218085169792, -0.01494554616510868, 0.05048629641532898, -0.005000547505915165, -0.0017409758875146508, -0.04615889862179756, -0.026733696460723877, -0.031237393617630005, 0.035997532308101654, -0.025387395173311234, -0.02194150537252426, -0.000705706246662885, -0.000528403208591044, -0.003772448282688856, 0.014921505935490131, 0.006839691195636988, 0.02295123040676117, 0.014480751939117908, 0.012974176555871964, -0.019793834537267685, -0.017005067318677902, 0.002508287550881505, 0.0099129443988204, -0.0054413010366261005, 0.02415328472852707, -0.012196848168969154, -0.01674862951040268, -0.021364519372582436, -0.008999383077025414, 0.02915383316576481, -0.005757841747254133, -0.017694244161248207, 0.0009611428831703961, 0.01039376575499773, -0.02242232672870159, 0.02065931260585785, -0.008686848916113377, 0.0031433729454874992, 0.027198491618037224, 0.039908215403556824, -0.012549450621008873, -0.0014244348276406527, 0.006170547567307949, -0.0039247083477675915, -0.029554517939686775, 0.029538489878177643, -0.012012532912194729, 0.007825376465916634, 0.05548684298992157, 0.013454998843371868, -0.010217464528977871, 0.005224931053817272, -0.009095546789467335, -0.031606025993824005, 0.005849999375641346, -0.016476163640618324, -0.01619568280875683, -0.013647327199578285, -0.01145157404243946, 0.019425204023718834, 0.013727464713156223, 0.0023920887615531683, -0.015250067226588726, -0.006050341762602329, -0.03782465308904648, 0.011804177425801754, -0.02325575053691864, -0.009359999559819698, -0.010281573981046677, 0.009416094981133938, 0.04830656945705414, -0.0071722595021128654, -0.027807531878352165, 0.022742874920368195, 0.049075886607170105, 0.019569450989365578, -0.003261575009673834, 0.017453834414482117, -0.008823081851005554, 0.020883696153759956, -0.03240739554166794, -0.005689725745469332, -0.018591778352856636, -0.018591778352856636, 0.011371437460184097, 0.0034338694531470537, 0.0060583557933568954, 0.0037263694684952497, 0.002534331986680627, -0.02397698350250721, -0.012597532942891121, 0.028464654460549355, -0.02114013582468033, -0.003802499733865261, -0.016299862414598465, 0.007729211822152138, 0.025355340912938118, -0.05183259770274162, 0.02844862826168537, -0.014536848291754723, -0.01484938245266676, -0.01825520396232605, 0.008518560789525509, 0.013903765939176083, -0.01518595777451992, 0.011940409429371357, 0.010409793816506863, 0.02692602574825287, 0.01844753324985504, -0.013759518973529339, 0.006014280486851931, -0.03157396987080574, -0.0013623286504298449, 0.0072363694198429585, 0.006098424084484577, 0.0022458387538790703, 0.02602849155664444, -0.020162463188171387, -0.021220272406935692, 0.007404657080769539, -0.01400794368237257, 0.02386479265987873, -0.026797804981470108, -0.005369177553802729, 0.012092670425772667, -0.005910102277994156, 0.0022899142932146788, -0.0022638696245849133, 0.008101848885416985, 0.01418424490839243, -0.018303286284208298, -0.05183259770274162, -0.03301643580198288, 0.011219177395105362, -0.028528764843940735, -0.006006266456097364, 0.014921505935490131, -0.00653517059981823, 0.0023359928745776415, -0.033465202897787094, 0.007116163615137339], "id": 15}, {"title": "August Penguin", "text": "August Penguin is an annual gathering (since 2002) of the Israeli Free Software community, organized by Hamakor. The conference is held on the first Friday in August (hence its name), usually in the Tel Aviv area. It lasts one day and includes technical talks, projects' status updates, social meetings and followed by a keysigning party.During the conference, the winner of Hamakor Prize for free software-related achievements is announced.", "vector": [-0.046535201370716095, 0.022717414423823357, -0.021049104630947113, -0.0025867680087685585, -0.028041807934641838, 0.03436008840799332, -0.030845988541841507, 0.042240191251039505, 0.005089233163744211, 0.042701639235019684, -0.023551568388938904, -0.08597121387720108, 0.016434628516435623, 0.010764149948954582, -0.03409386798739433, -0.009903372265398502, -0.021066851913928986, -0.01883060671389103, 0.02085387520492077, -0.01477519329637289, 0.022628674283623695, 0.03608164191246033, -0.0627213567495346, 0.015059160999953747, 0.018076317384839058, 0.001227938337251544, 0.051291659474372864, -0.0014808470150455832, 0.0054086968302726746, 0.028574246913194656, 0.04078485816717148, 0.0055107478983700275, 0.06673240661621094, -0.007316604722291231, -0.01468645315617323, -0.033579178154468536, 0.012166240252554417, 0.042098209261894226, -0.021137842908501625, -0.00961053092032671, -0.03189311921596527, 0.0032434433232992887, -0.038797084242105484, -0.0005740362103097141, -0.05565766245126724, -0.0002394590701442212, -0.03331295773386955, -0.032620787620544434, -0.03425360098481178, 0.010879511944949627, 0.021049104630947113, 0.05853283777832985, 0.023036876693367958, 0.04465391859412193, -0.0034675116185098886, 0.0005634983535856009, 0.014180636033415794, 0.03579767420887947, 0.03915204480290413, -0.04089134559035301, -0.018040820956230164, -0.0038868074771016836, -0.0180496945977211, -0.02328534983098507, 0.03618812933564186, 0.0015352002810686827, -0.03602840006351471, 0.04291461408138275, 0.01690495014190674, 0.04369552433490753, 0.009752514772117138, -0.025592586025595665, 0.00992999505251646, 0.049197398126125336, 0.05597712844610214, -0.04834549501538277, 0.04823900759220123, 0.0019522777292877436, -0.03148491680622101, 0.004805265460163355, 0.018564386293292046, -0.012556695379316807, 0.006797476205974817, -0.032691776752471924, 0.022788405418395996, -0.024332480505108833, 0.00010898368782363832, -0.08511930704116821, 0.011598304845392704, 0.001750394469127059, 0.001897924579679966, -0.03214159235358238, -0.03979096934199333, -0.0012124088825657964, -0.0019445130601525307, 0.03173338621854782, 0.00222737155854702, -0.028787223622202873, 0.004854072351008654, 0.00015002589498180896, -0.06914612650871277, -0.027402879670262337, 0.001524107763543725, -0.022096235305070877, -0.0023737922310829163, 0.0536343939602375, 0.00867876224219799, 0.002904013264924288, -0.012219483964145184, 0.025805562734603882, 0.02335634082555771, 0.010835141874849796, 0.0023582628928124905, 0.02907119132578373, -0.04507986828684807, 0.04525734856724739, 0.013337606564164162, -0.027864327654242516, -0.03663183003664017, 0.05214356258511543, -0.01027608010917902, -0.04011043533682823, 0.036702822893857956, -0.020694144070148468, -0.014340367168188095, -0.02994084171950817, -0.02046342007815838, 0.021457307040691376, 0.04593177139759064, -0.03331295773386955, -0.015511734411120415, -0.012831789441406727, 0.027314141392707825, -0.02392427623271942, 0.0367383174598217, -0.02429698407649994, 0.010160718113183975, 0.01867087371647358, 0.0055329324677586555, 0.02321435697376728, 0.03798067569732666, -0.020889371633529663, -0.030508777126669884, -0.008629955351352692, -0.023817788809537888, 0.002307237358763814, -0.04681916907429695, -2.7644558940664865e-05, -0.03352593258023262, 0.012556695379316807, 0.013807928189635277, -0.03617038205265999, 0.04135279357433319, -0.0035385035444051027, 0.039187539368867874, -0.007458588574081659, -0.033099982887506485, 0.0014209476066753268, 0.0018003106815740466, 0.026923684403300285, -0.01090613380074501, -0.018724119290709496, 0.06964307278394699, 0.044866893440485, 0.00814188551157713, 0.0006039859144948423, -0.05725498124957085, -0.10066653788089752, 0.0033277461770921946, 0.02539735846221447, 0.002633356489241123, -0.02468743920326233, -0.00925557129085064, -0.037093278020620346, -0.03565569221973419, 0.00438596960157156, -0.015068034641444683, 0.01802307367324829, -0.05512522533535957, 0.037945181131362915, 0.005080359056591988, 0.0370577797293663, 0.016745219007134438, 0.033419445157051086, 0.00660668546333909, 0.012290475890040398, 0.04980083182454109, -0.03579767420887947, -0.025219878181815147, -0.03256754204630852, -0.0015562759945169091, 0.00996549054980278, 0.06414119899272919, 0.005306645762175322, 0.05619010329246521, 0.009237823076546192, 0.018883850425481796, 0.03961348906159401, -0.03256754204630852, 0.00282414723187685, -0.0022495563607662916, -0.013550582341849804, -0.030615264549851418, 0.031076712533831596, 0.017898837104439735, 0.051078684628009796, 0.05473477020859718, 0.02383553609251976, 0.059278253465890884, -0.03313547745347023, 0.00208095065318048, -0.04689016193151474, -0.033028990030288696, 0.07113390415906906, 0.019984224811196327, -0.02610727772116661, 0.026834946125745773, -0.006535693537443876, -0.0023693551775068045, 0.025663578882813454, -0.0012445771135389805, -0.011225597001612186, -0.010267206467688084, -0.003309998195618391, 0.02158154360949993, -0.05359889939427376, 0.033011242747306824, -0.04667718708515167, 0.015848945826292038, 0.03267402946949005, -0.05512522533535957, -0.0533149316906929, -0.005311083048582077, -0.0243857242166996, 0.00529333483427763, 0.006433642469346523, -0.021084599196910858, 0.011358707211911678, 0.00662443321198225, 0.00957503542304039, 0.018102940171957016, -0.021049104630947113, -0.035282984375953674, -0.04025241732597351, 0.011633800342679024, 0.012308224104344845, 0.003019375028088689, 0.030650760978460312, -0.0679747611284256, 0.02328534983098507, 0.02703017368912697, 0.01738414540886879, -0.03386314585804939, 0.006997141055762768, -0.011811280623078346, 0.053811874240636826, -0.008434727787971497, 0.013665944337844849, 0.0027043484151363373, 0.01160717848688364, -0.02578781358897686, 0.047387104481458664, -0.011181226931512356, 0.011784658767282963, -0.027491619810461998, -0.026160521432757378, -0.014091895893216133, 0.022238219156861305, -0.006446953397244215, -0.0022828339133411646, 0.015094656497240067, 0.01738414540886879, 0.04103332757949829, -0.021759023889899254, 0.015174522995948792, 0.02624926157295704, -0.02156379446387291, 0.02335634082555771, -0.013594952411949635, -0.021049104630947113, -0.06744232028722763, -0.023693552240729332, -0.04071386530995369, -0.00738315936177969, 0.04547032341361046, 0.021634787321090698, -0.03152041137218475, -0.006668803282082081, 0.008079768158495426, -0.05012029409408569, -0.015671465545892715, 0.013816801831126213, 0.025610335171222687, 0.02720765210688114, -0.016203904524445534, -0.019824493676424026, 0.007400907576084137, 0.024953659623861313, -0.015582726337015629, 0.014287123456597328, -5.806223634863272e-05, 0.0360993891954422, -0.07170183956623077, -0.011119109578430653, 0.04383751004934311, -0.011642674915492535, -0.0487714484333992, 0.04657069966197014, -0.011367580853402615, -0.026763953268527985, 0.06229540705680847, -0.04586077854037285, -0.0178899634629488, -0.03954249992966652, -0.012716427445411682, -0.037554726004600525, -0.0040997834876179695, -0.01724216155707836, 0.022220470011234283, -0.01867087371647358, 0.017685862258076668, -0.00929994136095047, -0.05377637967467308, 0.030118321999907494, 0.036152634769678116, -0.017508381977677345, 0.016975942999124527, -0.0393650196492672, -0.0009533992852084339, -0.021049104630947113, -0.04280812665820122, -0.005763656459748745, 0.02314336597919464, 0.046215739101171494, 0.06751331686973572, -0.023640308529138565, -0.011474069207906723, 0.03031354956328869, 0.01828041858971119, 0.034271348267793655, 0.010852889157831669, 0.0006866249605081975, 0.08362848311662674, 0.011332085356116295, -0.025823310017585754, 0.0002441733668092638, 0.0177923496812582, -0.01473082322627306, 0.02882271818816662, -0.001486393273808062, 0.001151400152593851, -0.003527411026880145, 0.07014001905918121, 0.019593769684433937, 0.04642871394753456, -0.0029461646918207407, 0.0481325201690197, -0.056864526122808456, 0.007214553654193878, 0.0308814849704504, 0.026710709556937218, -0.03464405611157417, 0.05913626775145531, 0.0178899634629488, 0.018777363002300262, -0.011234471574425697, 0.05246302857995033, 0.016780715435743332, 0.010213962756097317, 0.020534412935376167, -0.07709722220897675, 0.05065273493528366, -0.022859398275613785, -0.050439756363630295, 0.03345494344830513, -0.02165253460407257, -0.016913823783397675, 0.0009606094099581242, -0.009770262986421585, -0.039436012506484985, -0.024350227788090706, 0.015156774781644344, 0.007511832285672426, 0.05015578866004944, 0.09051469713449478, 0.007205679547041655, 0.02845001220703125, 0.002571238437667489, 0.008328239433467388, -0.03483928367495537, -0.037235260009765625, 0.027757840231060982, 0.009761388413608074, 0.0336679182946682, -0.02266417071223259, -0.04042989760637283, 0.03389864042401314, 0.019647013396024704, 0.011474069207906723, -0.015769079327583313, 0.014233879745006561, -0.018546639010310173, 0.006056498270481825, 0.02665746584534645, 0.017605995759367943, 0.00929994136095047, -0.03634786233305931, -0.055302705615758896, -0.004831887315958738, -0.00558617664501071, -0.015023664571344852, -0.03469730168581009, -0.024261487647891045, 0.01875961385667324, 0.0024691876024007797, 0.02727864496409893, -0.05963321030139923, 0.03017156571149826, -0.0009267773129977286, -0.031165452674031258, 0.03400512784719467, -0.01899033784866333, -0.029124435037374496, -0.001708243042230606, 0.0016516713658347726, 0.0028330213390290737, 0.042240191251039505, 0.011349832639098167, -0.0022761784493923187, 0.0016494528390467167, 0.003491915063932538, 0.0071125030517578125, -0.0031125519890338182, -0.012698679231107235, 0.027491619810461998, -0.02461644820868969, -0.07525143027305603, 0.015955433249473572, 0.02220272272825241, -0.023196609690785408, -0.020498916506767273, -0.015201144851744175, -0.01761486940085888, -0.043802015483379364, -0.014863932505249977, -0.08029185980558395, -0.06715835630893707, -0.020818380638957024, 0.045612309128046036, 0.02007296495139599, 0.02798856422305107, -0.00854121521115303, -0.02820153906941414, -0.018848353996872902, 0.04795503988862038, -0.009504043497145176, -0.0001365762436762452, 0.013257740996778011, 0.006424768827855587, 0.01719779148697853, 0.020747387781739235, 0.025060147047042847, 0.06651942431926727, -0.04532834142446518, 0.020339185371994972, 0.0037514790892601013, 0.028503255918622017, -0.02750936895608902, 0.010187339968979359, 0.013373102992773056, -0.006331591866910458, -0.006256162654608488, -0.015760205686092377, 0.02681719698011875, -0.005568428430706263, -0.023888779804110527, -0.006930585950613022, -0.012796293012797832, -0.02142181061208248, -0.008847367949783802, 0.008550088852643967, -0.013160127215087414, -0.013736936263740063, -0.03150266408920288, -0.010222836397588253, -0.004084253683686256, -0.02000197395682335, -0.044866893440485, -0.018653126433491707, 0.04397949203848839, 0.032478801906108856, 0.0533149316906929, 0.02734963595867157, -0.032159339636564255, -0.005217906087636948, 0.012840663082897663, -0.019203314557671547, -0.02220272272825241, 0.002928416710346937, 0.003531847847625613, -0.04632222652435303, -0.014393611811101437, 0.006677677389234304, 0.020285941660404205, 0.006375961471349001, -0.05228554829955101, -0.047884050756692886, 0.014553342945873737, 0.025113390758633614, -0.01938079297542572, 0.0004905652604065835, 0.04745809733867645, -0.032159339636564255, -0.023267600685358047, 0.0015784609131515026, 0.019363045692443848, 0.008629955351352692, 0.02491816319525242, 0.005612798500806093, -0.001560712931677699, 0.01156280841678381, -0.012317097745835781, -0.010489055886864662, -0.0025557090993970633, 0.028343522921204567, -0.03201735392212868, -0.04571879655122757, 0.005351015832275152, 0.00320351030677557, -0.050901204347610474, -0.026231514289975166, -0.005674916319549084, -0.013355354778468609, 0.028804970905184746, 0.010329323820769787, 0.023658057674765587, -0.010311576537787914, 0.03336620330810547, 0.02546835131943226, -0.03783869370818138, -0.06676790118217468, 0.0054974365048110485, -0.024598699063062668, 0.06751331686973572, -0.022397950291633606, -0.016665352508425713, 0.02774009294807911, 0.02672845683991909, 0.022380203008651733, -0.003500788938254118, -0.04859396815299988, 0.025432854890823364, -0.03620588034391403, 0.007023762911558151, -0.03079274483025074, 0.02688818983733654, -0.043269574642181396, 0.04025241732597351, 0.003385427175089717, -0.036383356899023056, 0.0412818007171154, -0.005240091122686863, 0.06101755425333977, 0.0006855156971141696, -0.03581542149186134, -0.018812857568264008, 0.04767107218503952, 0.032461054623126984, -0.012654309161007404, -0.008785249665379524, 0.01641688123345375, 0.017801223322749138, -0.0025157760828733444, 0.019948728382587433, 0.010702031664550304, -0.008408105000853539, -0.0141451396048069, 0.01977124996483326, 0.009894498623907566, -0.03986196219921112, 0.006806350313127041, 0.020179452374577522, -0.011136856861412525, 0.012973773293197155, 0.028148295357823372, 0.001048239995725453, 0.0019533869344741106, -0.008381483145058155, -0.06183396279811859, -0.032194834202528, 0.006216229870915413, 0.018014200031757355, 0.00662443321198225, 0.029479393735527992, -0.02493591234087944, -0.008119700476527214, -0.013373102992773056, -0.0011281059123575687, 0.01059554424136877, -0.035442713648080826, 0.006362650543451309, 0.000334993121214211, 0.0007121376693248749, 0.00937980692833662, -0.048274505883455276, 0.0021364130079746246, 0.006220666691660881, -0.013532834127545357, 0.004354910459369421, -0.046464212238788605, -0.0013433002168312669, -0.0019145633559674025, 0.009601657278835773, 0.041920728981494904, -0.02314336597919464, -0.004201834090054035, 0.030065078288316727, 0.01922106184065342, -0.026781700551509857, -0.018937094137072563, -0.0009173487196676433, -0.006566752679646015, 0.022948138415813446, -0.011110235005617142, 0.0168339591473341, 0.013852298259735107, 0.006100867874920368, -0.011855650693178177, 0.02337408997118473, -0.016567738726735115, -0.026462238281965256, 9.532606054563075e-05, -0.008811871521174908, 0.0333484522998333, 0.04465391859412193, -0.010515677742660046, 0.03597515448927879, -0.018848353996872902, -0.005067048128694296, -0.038264643400907516, -0.04994281381368637, 0.016106290742754936, -0.021386316046118736, 0.010160718113183975, -0.013071387074887753, -0.028804970905184746, 0.02220272272825241, -0.01375468447804451, 0.033011242747306824, -0.015928812325000763, -0.032709527760744095, -0.036773812025785446, 0.012672057375311852, 0.004232893232256174, 0.01050680410116911, -0.0002823038084898144, 0.0007126923301257193, -0.029656874015927315, -0.011651548556983471, 0.041991718113422394, -0.0396844819188118, -0.04078485816717148, -0.025273123756051064, -0.005839085206389427, -0.013373102992773056, -0.03503451123833656, -0.036844804883003235, -0.030278053134679794, -0.002702130004763603, -0.034892529249191284, 0.01196213811635971, 0.009832380339503288, -0.010639913380146027, -0.005257838871330023, -0.02337408997118473, 0.0012956025311723351, -0.04007493704557419, -0.004368221387267113, -0.001297821057960391, 0.005262276157736778, 0.059207260608673096, -0.006926149129867554, -0.030597517266869545, -0.018564386293292046, -0.05086570978164673, -0.009051470085978508, -0.01285841129720211, 0.021066851913928986, -0.01962926611304283, -0.02711891382932663, -0.009433051571249962, -0.004836324602365494, -0.04018142446875572, 0.0050759222358465195, 0.015609348192811012, 0.024101756513118744, -0.013053638860583305, 0.025663578882813454, -0.013781306333839893, -0.0487714484333992, -0.01954052597284317, 0.0261782705783844, -0.010063104331493378, 0.008248373866081238, -0.025361862033605576, 4.634579818230122e-05, -0.014899428933858871, 0.008754190988838673, -0.01157168298959732, -0.006806350313127041, -0.02158154360949993, 0.01410076953470707, -0.005657168570905924, -0.015627095475792885, -0.04795503988862038, 0.015281010419130325, 0.018351411446928978, 0.01685170643031597, -0.002562364563345909, -0.006429205648601055, 0.02335634082555771, -0.0007337680435739458, -0.044263459742069244, -0.06215342506766319, -0.017091304063796997, 0.013053638860583305, -0.0032146028243005276, 0.0018424621084704995, 0.02971011772751808, 0.009459673427045345, -0.045221854001283646, 0.009424176998436451, 0.023178860545158386, 0.016390258446335793, 0.0012911654775962234, -0.0070104519836604595, -0.033561430871486664, 0.03702228516340256, 0.04969434440135956, -0.03437783569097519, 0.017206666991114616, -0.019948728382587433, 0.022131729871034622, -0.003270065179094672, 0.004115312825888395, -0.023817788809537888, 0.014659831300377846, 0.013550582341849804, -0.009486295282840729, 0.00881630927324295, -0.03409386798739433, -0.03375665843486786, 0.020747387781739235, -0.013355354778468609, 0.02500690333545208, -0.0068374089896678925, 0.012822914868593216, -0.017783476039767265, -0.0011624926701188087, 0.0029683494940400124, -0.0355846993625164, -0.020729640498757362, -0.02140406332910061, 0.02882271818816662, -0.024740682914853096, 0.06651942431926727, -0.007392033468931913, 0.002983879065141082, -0.013683692552149296, 0.030420036986470222, 0.000557952094823122, -0.03570893406867981, 0.012618813663721085, 0.013745809905230999, 0.026125026866793633, -0.006708736531436443, -0.014704201370477676, -0.006353776901960373, -0.005319956690073013, -0.009175705723464489, -0.03386314585804939, 0.022096235305070877, -0.040678370743989944, -0.009237823076546192, -0.007325478829443455, -0.030508777126669884, 0.049587856978178024, 0.01761486940085888, -0.0034475449938327074, 0.01535200234502554, -0.00662443321198225, -0.020658647641539574, 0.046606194227933884, -0.024421220645308495, 0.011979886330664158, 0.006948334164917469, 0.041991718113422394, 0.008390357717871666, 0.026444489136338234, -0.02836127206683159, 0.01293827686458826, -0.004432558082044125, 0.01701143942773342, -0.013071387074887753, -0.022167226299643517, -0.013807928189635277, -0.025574838742613792, -0.025805562734603882, -0.018156183883547783, 0.040358904749155045, -0.00674423249438405, -0.010160718113183975, 0.031449418514966965, 0.038016173988580704, -0.03634786233305931, -0.03593965992331505, -0.023249853402376175, -0.016390258446335793, -0.03109445981681347, -0.013692566193640232, -0.021688031032681465, 0.0014009810984134674, -0.0037736641243100166, -0.010027608834207058, 0.05807138979434967, 0.03688030317425728, 0.019505029544234276, 0.03308223560452461, -0.026373498141765594, 0.027260897681117058, -0.02626701071858406, -0.04767107218503952, -0.04082035273313522, 0.002411506837233901, -0.005368764046579599, 0.030136069282889366, 0.016727471724152565, 0.016940446570515633, -0.0002433414338156581, 0.05246302857995033, -0.008212877437472343, 0.0002978332922793925, 0.05807138979434967, -0.03819365054368973, -0.0159376859664917, -0.002606734400615096, -0.03281601518392563, -0.048097025603055954, 0.007081443909555674, 0.0093443114310503, 0.04046539217233658, -0.005626109428703785, 0.002344951732084155, -0.019238809123635292, -0.02578781358897686, -0.0282902792096138, -0.005142476875334978, -0.0037514790892601013, -0.014837310649454594, -0.003755916142836213, 0.003394301049411297, -0.021865511313080788, -0.03281601518392563, -0.026000790297985077, -0.004297229461371899, -0.014704201370477676, 0.010391442105174065, -0.04603825882077217, 0.001153618679381907, -0.03134293109178543, 0.006926149129867554, 0.042169198393821716, 0.041210807859897614, 0.02736738510429859, 0.010560047812759876, -0.007174620870500803, 0.0073387897573411465, 0.0018003106815740466, 0.016869455575942993, -0.007023762911558151, -0.020445672795176506, 0.002342733321711421, 0.008878426626324654, -0.02241569757461548, 0.03595740720629692, -0.029035694897174835, 0.015263262204825878, 0.01946953311562538, -0.0396844819188118, 0.010205088183283806, 0.008536778390407562, 0.00595888402312994, -0.06666141003370285, 0.0022894893772900105, 0.000965046405326575, 0.027012424543499947, -0.026373498141765594, -0.010142970830202103, -0.06350227445363998, -0.019327549263834953, 0.003245661733672023, 0.023303097113966942, 0.05917176604270935, -0.00640702061355114, -0.020445672795176506, -0.0021020262502133846, 0.0064513906836509705, -0.021120095625519753, -0.0017370835412293673, -0.015564978122711182, -0.0093443114310503, 0.022255966439843178, -0.03444882854819298, -0.02397751994431019, -0.012450207956135273, -0.009663774631917477, -0.01125221885740757, -0.018617630004882812, -0.008088641799986362, -0.016337014734745026, 0.006446953397244215, 0.028432263061404228, 0.006118616089224815, 0.01625715009868145, -0.0020632026717066765, -0.031005719676613808, 0.010293828323483467, 0.03925853222608566, 0.02507789433002472, 0.021315323188900948, 0.01531650684773922, 0.04507986828684807, 0.04018142446875572, 0.03313547745347023, -0.03688030317425728, 0.033951885998249054, 0.004226237535476685, 0.007893414236605167, 0.005444192793220282, 0.005577302537858486, -0.0007143561961129308, 0.013319858349859715, 0.002083169063553214, -0.01071090530604124, 0.014020903967320919, -0.02976336143910885, -0.01582232303917408, -0.013701439835131168, -0.006966081913560629, -0.005750345531851053, 0.011598304845392704, -0.023001382127404213, 0.0064203315414488316, 0.01019621454179287, 0.0006771963671781123, 0.02001972123980522, -0.0370577797293663, -0.012308224104344845, 0.02734963595867157, 0.03306448459625244, -0.010835141874849796, 0.020179452374577522, -0.009291067719459534, 0.007835732772946358, -0.01657661236822605, -0.017330901697278023, -0.024261487647891045, 0.007906724698841572, -0.03790968284010887, 0.008887301199138165, 0.010302701964974403, -0.004110876005142927, 0.024509960785508156, 0.006047624163329601, 0.036702822893857956, -0.03420035541057587, -0.01579570211470127, 0.007006015162914991, -0.005697101354598999, -0.0016616545617580414, -0.009903372265398502, -0.023267600685358047, -0.01090613380074501, -0.0001421224878868088, -0.0299230944365263, -0.013665944337844849, -0.005994379986077547, 0.018102940171957016, 0.002793088322505355, 0.03288700804114342, 0.005750345531851053, 0.004787517711520195, 0.033170975744724274, -0.015298758633434772, 0.036383356899023056, 0.04649970680475235, -0.007130250800400972, 0.006859594024717808, 0.01191776804625988, -0.013035890646278858, 0.0063493396155536175, -0.0007814657292328775, 0.043731022626161575, 0.01187339797616005, 0.03540721908211708, 0.06268586218357086, -0.0016904950607568026, 0.033330705016851425, 0.00312586291693151, 0.005195721052587032, 0.02798856422305107, 0.03063301369547844, 0.019167818129062653, -0.03320647031068802, 0.05682903155684471, 0.009149083867669106, 0.01391441561281681, -0.02103135548532009, -0.008749754168093204, 0.003840218996629119, -0.025805562734603882, 0.011491816490888596, -0.015254388563334942, -0.021528299897909164, -0.01641688123345375, 0.022397950291633606, 0.01930980198085308, 0.009362059645354748, 0.02876947447657585, -0.007139124907553196, -0.006495760753750801, 0.014872807078063488, 0.024563204497098923, 0.011127983219921589, -0.014304871670901775, -0.0016095199389383197, -0.006690988317131996, 0.008274995721876621, 0.007037073839455843, 0.014721949584782124, -0.00527558708563447, -0.009184579364955425, -0.012095248326659203, 0.015005916357040405, -0.032798267900943756, -0.016097417101264, -0.0009129117242991924, -0.007179057691246271, 0.00594113627448678, 0.011083613149821758, -0.03393413871526718, -0.03579767420887947, 0.0064868866465985775, -0.005705975461751223, -0.04330506920814514, 0.004578978754580021, -0.014642083086073399, -0.015990929678082466, 0.017801223322749138, 0.006464701611548662, 0.0007121376693248749, -0.0052001578733325005, 0.00646913843229413, 0.0011458538938313723, -0.015210018493235111, -0.01747288554906845, -0.009628279134631157, 0.02836127206683159, -0.008785249665379524, 0.009308815002441406, -0.014003155753016472, -0.02758035995066166, 0.01410964410752058, 0.007161309942603111, 0.018883850425481796, -0.016478998586535454, -0.03492802381515503, -0.025450602173805237, -0.0017293187556788325, 0.0005304982187226415, -0.012796293012797832, 0.013497338630259037, 0.00437931390479207, 0.018617630004882812, 0.005612798500806093, -0.004632222466170788, -0.021084599196910858, 0.004618911538273096, 0.024953659623861313, -0.03214159235358238, -0.01687832921743393, 0.017055807635188103, -0.0010881730122491717, 0.019238809123635292, -0.03203510493040085, 0.01227272767573595, -0.036702822893857956, 0.012618813663721085, -0.028591996058821678, 0.021350819617509842, -0.0352652370929718, -0.01117235329002142, -0.013319858349859715, 0.005018241237848997, -0.012902781367301941, 0.007494084537029266, -0.004991619382053614, 0.045363835990428925, 0.0013543927343562245, 0.0049383752048015594, 0.0057370346039533615, 0.028964702039957047, -0.015156774781644344, -0.0027553739491850138, -4.204746073810384e-05, 0.0007920035859569907, 0.026604222133755684, -0.010329323820769787, 0.03127194195985794, 0.005102544091641903, -0.008243936114013195, -0.0053377049043774605, 0.016567738726735115, 0.023782292380928993, 0.0006483558681793511, 0.035904161632061005, -0.023959772661328316, -0.021368566900491714, 0.005262276157736778, -0.008115263655781746, 0.012485703453421593, -0.006398146506398916, -0.010994873009622097, -0.04259515181183815, 0.00881630927324295, -0.007613883353769779, -0.022167226299643517, -0.007702623028308153, -0.006473575718700886, -0.0390455536544323, -0.051291659474372864, 0.014278249815106392, -0.014828437007963657, 0.0026688524521887302, 0.00304821552708745, -0.015298758633434772, -0.005559554789215326, 0.029798857867717743, 0.0030326859559863806, 0.006850719917565584, 0.007165746763348579, 0.01120784878730774, 0.03432459384202957, 0.022380203008651733, 0.021279826760292053, -0.015769079327583313, -0.004261733498424292, -0.03625912219285965, 0.016177283599972725, 0.025699075311422348, -0.022948138415813446, -0.017135674133896828, 0.02062315307557583, -0.019238809123635292, -0.022096235305070877, 0.0001421224878868088, 0.02314336597919464, -0.023817788809537888, 0.036152634769678116, 0.03773220628499985, -0.00020368579134810716, -0.031538158655166626, 0.0055329324677586555, -0.027385132387280464, 0.0026577599346637726, 0.006859594024717808, -0.017641492187976837, 0.0269769299775362, 0.019913233816623688, 0.01970025710761547, 0.021865511313080788, 0.03178663179278374, -0.014863932505249977, -0.023871032521128654, -0.009362059645354748, -0.015147900208830833, -0.0014165106695145369, -0.024669691920280457, 0.017508381977677345, 0.018724119290709496, -0.010737528093159199, 0.008252810686826706, 0.007125813979655504, 0.036454349756240845, -0.016958193853497505, -0.009646027348935604, -0.023161113262176514, 0.028698483482003212, 0.024651944637298584, 0.027935320511460304, -0.01852888986468315, 0.019363045692443848, 0.019274305552244186, 0.007396470755338669, -0.02477617934346199, -0.030295800417661667, -0.013417473062872887, 0.05164662003517151, 0.006983830127865076, 0.00023127836175262928, -0.009867876768112183, 3.334679058752954e-05, 0.0013477371539920568, 0.021794518455863, 0.005106981378048658, -0.025184383615851402, -0.0022207158617675304, -0.007179057691246271, -0.03652534261345863, -0.005106981378048658, -0.002759810769930482, 0.026692962273955345, -0.009521790780127048, -0.02273516170680523, -0.037483733147382736, -0.006753106135874987, 0.055764153599739075, 0.007525143213570118, 0.038477618247270584, -0.015174522995948792, -0.02484717220067978, -0.02782883122563362, 0.010852889157831669, 0.0018502268940210342, 0.004996056202799082, -0.005053737200796604, -0.012121870182454586, 0.0010105256224051118, -0.03581542149186134, -0.010107474401593208, 0.020889371633529663, -0.000744305900298059, 0.019274305552244186, 0.02023269608616829, 0.0089449817314744, 0.01731315441429615, 0.012618813663721085, -0.025752319023013115, -0.01641688123345375, -0.0003416486142668873, 0.02087162435054779, 0.013009268790483475, -0.029639126732945442, -0.016097417101264, -0.03940051421523094, 0.023249853402376175, 0.03070400469005108, 0.000706591468770057, 0.0300828255712986, 0.012672057375311852, -0.016700848937034607, 0.009850128553807735, -0.0036982353776693344, 0.01543186791241169, 0.0364188551902771, 0.0008901720866560936, -0.03444882854819298, 0.013541708700358868, 0.015653718262910843, -0.014473477378487587, 0.0013277707621455193, 0.035282984375953674, 0.01899033784866333, 0.012769671157002449, -0.008598895743489265, 0.018724119290709496, -0.0007276671822182834, -0.029337409883737564, 0.0168339591473341, -0.02305462583899498, 0.035602446645498276, 0.006682114209979773, -0.019345298409461975, 0.008856241591274738, 0.009202327579259872, -0.022326959297060966, 0.025113390758633614, 0.02663971669971943, -0.019718006253242493, -0.008257247507572174, -0.026373498141765594, 0.025894302874803543, -0.005195721052587032, -0.011864524334669113, 0.01793433353304863, -0.010391442105174065, -0.003097022417932749, -0.001344409422017634, -0.03922303393483162, 0.02195425145328045, -0.004867383278906345, 0.021705778315663338, -0.020108461380004883, -0.003966673277318478, -0.004911753349006176, 0.010222836397588253, -0.008297180756926537, -0.004836324602365494, 0.029053442180156708, 0.02431473135948181, -0.009752514772117138, -0.021208835765719414, -0.023888779804110527, 0.008514593355357647, -0.019558273255825043, 0.026000790297985077, 0.04195622354745865, -0.06424768269062042, -0.014828437007963657, -0.019114574417471886, -0.005129165947437286, -0.007019326090812683, -0.010027608834207058, 0.018191678449511528, 0.01690495014190674, 0.004195178858935833, -0.01749950833618641, -0.0263380017131567, 0.008199566975235939, 0.0035850917920470238, 0.01071090530604124, 0.008785249665379524, 0.01669197529554367, 0.012281602248549461, -0.04593177139759064, -0.02601853758096695, 0.01836915872991085, 0.008887301199138165, -0.015689214691519737, -0.03063301369547844, -0.006806350313127041, -0.039577994495630264, -0.000306984584312886, 0.06584500521421432, 0.018848353996872902, -0.0032611913047730923, 0.02431473135948181, -0.015848945826292038, 0.0030948040075600147, -0.02062315307557583, -0.019664760679006577, 0.014970420859754086, 0.01962926611304283, -0.018493395298719406, 0.006810787133872509, 0.05704200640320778, 0.025184383615851402, 0.030544273555278778, 0.023267600685358047, 0.05047525465488434, 0.026852693408727646, -0.04742260277271271, 0.01579570211470127, -0.02158154360949993, 0.019647013396024704, 0.00018358066154178232, 0.027633603662252426, -0.0367383174598217, 0.004703214392066002, -0.004836324602365494, -0.0006361541454680264, 0.01586669310927391, -0.0008835166227072477, 0.018866103142499924, 0.003498570527881384, -0.012707553803920746, 0.001226829132065177, 0.023107869550585747, 0.042701639235019684, 0.006997141055762768, 0.018777363002300262, 0.0017404112732037902, 0.005395385902374983, 0.011048117652535439, 0.017561625689268112, 0.012254980392754078, 0.014198383316397667, 0.007059258874505758, -0.0015363094862550497, 0.004916190169751644, -0.005053737200796604, -0.01899033784866333, -0.014127391390502453, -0.008146322332322598, 0.014313745312392712, 0.005506310611963272, 0.01586669310927391, 0.041459280997514725, -0.01383455004543066, 0.015050286427140236, 0.003380990121513605, -0.024722935631871223, 0.024563204497098923, 0.005319956690073013, 0.021279826760292053, 0.01222835760563612, -0.018156183883547783, -0.004654407501220703, -0.012654309161007404, 0.005719286389648914, 0.01701143942773342, 0.014402485452592373, 0.0005928934551775455, 0.013266614638268948, -0.022770658135414124, 0.026941433548927307, -0.038477618247270584, 0.03666732460260391, -0.018724119290709496, 0.016434628516435623, -0.022788405418395996, -0.031076712533831596, -0.01907907798886299, 0.002611171454191208, 0.02955038659274578, 0.03033129684627056, 0.0011403076350688934, 0.017872216179966927, -0.011456320993602276, 0.014020903967320919, -0.020303688943386078, -0.0014753007562831044, 0.053563401103019714, -0.029053442180156708, -0.017366398125886917, -0.02110234834253788, -0.04635772109031677, 0.0015784609131515026, -0.02158154360949993, -0.04344705492258072, 0.009450798854231834, -0.018848353996872902, -0.016514495015144348, 0.012130743823945522, 0.0060964310541749, 0.0005851287278346717, -0.04429895803332329, -0.01812068745493889, 0.029426150023937225, 0.0007842388586141169, -0.0034453265834599733, -0.005466377828270197, 0.006265036761760712, -0.01598205603659153, 0.010852889157831669, 0.01786334067583084, -0.03281601518392563, -0.014739696867763996, 0.005688227713108063, 0.02914218232035637, -0.00527558708563447, -0.012867284938693047, 0.04082035273313522, -0.011048117652535439, 0.020356932654976845, 0.014198383316397667, 0.033011242747306824, 0.0017947644228115678, 0.011926642619073391, 0.01277854572981596, -0.017481759190559387, -0.002935072174295783, 0.03267402946949005, 0.017650365829467773, 0.0009916683193296194, -0.002462532138451934, -0.015218892134726048, -0.01148294284939766, -0.025503845885396004, -0.01117235329002142, -0.04167225584387779, -0.004035446792840958, -0.01253894716501236, 0.009264444932341576, 0.008448038250207901, -0.008612207137048244, 0.003416486084461212, -0.0010010970290750265, -0.0064868866465985775, 0.022220470011234283, 0.027544863522052765, 0.0403234101831913, 0.002779777394607663, -0.01589331589639187, -0.02931966260075569, -0.01812068745493889, -0.0006461373995989561, -0.030029581859707832, 0.025361862033605576, -0.0007714824751019478, 0.004419247154146433, -0.043340567499399185, 0.0044835833832621574, 0.005164661910384893, 0.010533425956964493, 0.008390357717871666, 0.0640702098608017, 0.0004816912696696818, -0.000611750700045377, 0.015289884060621262, -0.0002527700562495738, -0.016798462718725204, -0.002717659343034029, -0.021244332194328308, 0.021759023889899254, 0.019487282261252403, -0.009246697649359703, 0.027935320511460304, 0.051291659474372864, 0.006930585950613022, 0.017996450886130333, -0.015698088333010674, -0.018386906012892723, 0.033738911151885986, -0.030526524409651756, -0.01813843473792076, 0.0054086968302726746, 0.021705778315663338, 0.0003799176774919033, 0.017712483182549477, -0.03751922771334648, -0.035211991518735886, -0.02820153906941414, 0.014251627959311008, -0.023888779804110527, -0.014926050789654255], "id": 16}, {"title": "Preston Sturges", "text": "Preston Sturges (/\u02c8st\u025crd\u0292\u026as/; born Edmund Preston Biden; August 29, 1898 \u2013 August 6, 1959) was an American playwright, screenwriter, and film director.", "vector": [0.00044372514821588993, 0.04317275434732437, -0.030205989256501198, 0.006393750198185444, -0.035494279116392136, 0.01280990894883871, -0.04580195993185043, -0.008888508193194866, -0.057304736226797104, 0.041738640516996384, 0.020152265205979347, 0.08658452332019806, -0.03274556249380112, 0.006434831768274307, 0.013325292617082596, 0.005710306111723185, -0.03991612419486046, 0.013063866645097733, -0.0015060045989230275, -0.030594393610954285, 0.1147887334227562, -0.035285137593746185, -0.07003247737884521, 0.0316699780523777, 0.08377605676651001, 0.0423959419131279, -0.0023677791468799114, 0.043202631175518036, 0.019943123683333397, 0.016776125878095627, -0.033701635897159576, 0.006457239855080843, 0.011973343789577484, -0.02278147079050541, 0.019987938925623894, 0.039348453283309937, -0.03140108287334442, 0.05058233439922333, -0.010449599474668503, 0.041141096502542496, -0.014057287946343422, -0.005056739319115877, 0.0034713733475655317, -0.0019009456736966968, -0.0039923591539263725, 0.03310409188270569, -0.014804220758378506, -0.043889809399843216, -0.03352237492799759, 0.04858055338263512, 0.002586257178336382, -0.009695196524262428, 0.010927636176347733, 0.03588268160820007, -0.00542273698374629, -0.016193516552448273, 0.003036284586414695, 0.026321934536099434, -0.021989721804857254, 0.023871993646025658, 0.006154731847345829, 0.004171623382717371, -0.007312478497624397, -0.0035367298405617476, 0.06232412904500961, 0.03773507848381996, 0.0569760836660862, 0.0029541219118982553, 0.04123072698712349, 0.05443651229143143, 0.03447844833135605, -0.04006551206111908, -0.005198657047003508, 0.03134132921695709, 0.009276913478970528, -0.0393783301115036, -0.03178948909044266, -0.009814705699682236, 0.003430292010307312, -0.012847255915403366, 0.04143986850976944, -0.01782183162868023, -0.06590940803289413, -0.01245884969830513, 0.02209429256618023, -0.017119714990258217, 0.026187486946582794, -0.0662679374217987, 0.08969177305698395, 0.018972110003232956, 0.06453505158424377, 0.0006082839099690318, 0.0039176661521196365, -0.06399726122617722, 0.001890675281174481, 0.02325950749218464, 0.05279325693845749, 0.008918385952711105, -0.0040894607082009315, -0.034657713025808334, -0.019330637529492378, 0.011248817667365074, -0.010001438669860363, 0.017657507210969925, 0.022408002987504005, -0.00665891170501709, -0.05554197356104851, -0.018434317782521248, 0.016895635053515434, 0.02575426548719406, 0.02581402100622654, -0.007129479665309191, 0.016641678288578987, 0.024559171870350838, -0.024738436564803123, 0.011293633840978146, -0.004784108605235815, 0.0342693068087101, 0.05126951262354851, 0.017657507210969925, -0.015924621373414993, -0.018284931778907776, 0.0016665952280163765, -0.004208969883620739, 0.03546440228819847, 0.006218221038579941, -0.0020671384409070015, 0.04562269523739815, 0.031281571835279465, -0.00953087117522955, -0.027770986780524254, -0.003456434467807412, -0.008335777558386326, -0.0156258475035429, 0.025649694725871086, 0.0568864531815052, -0.008656959049403667, 0.00493723014369607, 0.035554032772779465, 0.0053667169995605946, -0.004735558293759823, -0.020839443430304527, 0.023229630663990974, -0.039199069142341614, -0.0235433429479599, -0.04923785477876663, 0.06262290477752686, 0.027442336082458496, -0.02092907577753067, -0.01602919213473797, -0.0037290651816874743, 0.033014457672834396, -0.030116356909275055, -0.001271654269658029, 0.019255945459008217, -0.006976358592510223, -0.049058590084314346, -0.01322072185575962, -0.011965873651206493, -0.002845816547051072, -0.02615761011838913, 0.06393750756978989, -0.03247666731476784, -0.006629034411162138, 0.005101555492728949, -0.009486055001616478, -0.007835332304239273, -0.02167600952088833, -0.005123963579535484, 0.0039512780494987965, 0.003594617359340191, 0.05013417452573776, -0.0055310423485934734, -0.06698499619960785, -0.030265742912888527, 0.002679623896256089, 0.01705995947122574, 0.031132185831665993, -0.022602206096053123, 0.05452614277601242, 0.05422737076878548, 0.011136777698993683, 0.0036375659983605146, -0.013004111126065254, -0.022661961615085602, 0.026829849928617477, 0.03077365830540657, 0.03077365830540657, 0.04179839789867401, -0.05431700125336647, -0.010950044728815556, 0.02278147079050541, 0.0214071124792099, -0.026874665170907974, 0.038930170238018036, -0.03271568566560745, -0.022348249331116676, 0.015536216087639332, -0.050492700189352036, 0.016910573467612267, 0.03447844833135605, -0.022124169394373894, 0.06304118037223816, 0.015237442217767239, -0.0010466405656188726, -0.009426300413906574, 0.0020615363027900457, 0.06017296016216278, -0.043262384831905365, 0.04117097333073616, 0.020137326791882515, -0.03152059018611908, 0.01679106429219246, -0.004186562262475491, -0.06262290477752686, 0.0008524378063157201, -0.053928595036268234, 0.024813128635287285, 0.03973685950040817, -0.020197080448269844, -0.014236551709473133, 0.003910196479409933, -0.04054354876279831, -0.053719453513622284, 0.02360309660434723, 0.03331323340535164, -0.01637278124690056, 0.030191050842404366, 0.0668654814362526, 0.03131145238876343, 0.008970670402050018, -0.017030082643032074, -0.05500417947769165, 0.04657876864075661, -0.022258616983890533, 0.010173234157264233, 0.004130541812628508, 0.020047694444656372, -0.0633399561047554, -0.028936201706528664, -0.019644349813461304, 0.0074207838624715805, -0.009814705699682236, 0.04170876368880272, -0.009971561841666698, 0.010068663395941257, 0.02024189755320549, -0.028951140120625496, 0.021511683240532875, 0.008126636035740376, 0.0004448922409210354, -0.019509902223944664, 0.014580140821635723, -0.00956821721047163, 0.02497745491564274, -0.010038785636425018, -0.015297196805477142, -0.0028402144089341164, -0.009329198859632015, -0.028308779001235962, -0.046250119805336, -0.017164530232548714, 0.05031343922019005, -0.0037850853987038136, -0.0629216730594635, -0.030071541666984558, 0.0038205645978450775, -0.06722401082515717, 0.014415815472602844, -0.03274556249380112, 0.024125950410962105, -0.029683135449886322, 0.020958952605724335, 0.04084232077002525, -0.04445748031139374, -0.00977735873311758, -0.0018066453048959374, -0.04018501937389374, -0.0004637989914044738, 0.015229973010718822, -0.02939930185675621, -0.045533064752817154, 0.008410470560193062, 0.009859521873295307, -0.014415815472602844, 0.007558966521173716, 0.003854176728054881, -0.028966080397367477, 0.022079352289438248, -0.007006235886365175, -0.0033798739314079285, 0.019644349813461304, 0.040095388889312744, 0.04568244889378548, -0.022183923050761223, 0.02284122444689274, -0.01749318093061447, -0.0004642658168449998, 0.021586377173662186, -0.014363530091941357, 0.03193887323141098, 0.06447529792785645, -0.0035628725308924913, 0.009762420319020748, -0.02836853265762329, 0.02539573796093464, -0.04810251295566559, -0.02064524032175541, -0.0011213338002562523, -0.043053243309259415, -0.006856848951429129, 0.008044472895562649, 0.020570548251271248, 0.02045103721320629, -0.003129651304334402, 0.020869320258498192, 0.08162488788366318, -0.014251490123569965, -0.01892729476094246, 0.0010569108417257667, 0.02493263967335224, -0.018329747021198273, -0.03779483214020729, -0.03235715627670288, 0.07319948077201843, -0.042784348130226135, -0.011181593872606754, 0.035912562161684036, -0.04096183180809021, -0.0030717637855559587, -0.018299870193004608, -0.069375179708004, 0.000432754575740546, -0.056139517575502396, 0.06877763569355011, -0.0028159392531961203, -0.043949563056230545, 0.03456807881593704, 0.01414691936224699, -0.015805112197995186, 0.05168779566884041, -0.01318337582051754, -0.020958952605724335, 0.05602001026272774, -0.002429401036351919, -0.016193516552448273, 0.0754104033112526, 0.016686493530869484, 0.008403001353144646, 0.0008459021337330341, 0.0006666381377726793, -0.013235661201179028, -0.03205838426947594, -0.0027860617265105247, 0.04451723396778107, -0.014535324648022652, 0.04287398234009743, 0.00925450585782528, 0.0067186662927269936, 0.005512368865311146, 0.031699854880571365, 0.0022295964881777763, 0.02835359424352646, -0.028263961896300316, -0.011457959190011024, 0.0018309206934645772, 0.035822927951812744, -0.024529295042157173, 0.02340889535844326, -0.0254704300314188, -0.01170444767922163, -0.01394524797797203, -0.0005083815776742995, -0.033552251756191254, 0.006042691878974438, 0.03860152140259743, -0.007768108043819666, 0.0666862204670906, -0.013213252648711205, 0.013071335852146149, -0.03809360787272453, 0.02201959863305092, -0.03627108782529831, 0.010068663395941257, 0.01714959181845188, -0.014019940979778767, 0.007656068075448275, -0.0148714454844594, 0.0023304324131458998, -0.05258411541581154, -0.04992503300309181, 0.014654834754765034, -0.0227067768573761, -0.0009392688516527414, 0.0008533714571967721, -0.02249763533473015, 0.008925855159759521, 0.0028364798054099083, 0.008559857495129108, 0.05252436175942421, 0.004171623382717371, -0.00829843059182167, 0.021168094128370285, -0.0449952706694603, 0.0021119543816894293, 0.004365826025605202, -0.016148701310157776, 0.00774569995701313, 0.006393750198185444, 0.0018551959656178951, 0.0018309206934645772, -0.043471526354551315, -0.03821311518549919, 0.06345946341753006, 0.05897786468267441, 0.02600822225213051, 0.02024189755320549, 0.005217330064624548, 0.010367436334490776, -0.012884601950645447, 0.004679538309574127, 0.005773795768618584, -0.01033008936792612, -0.035613786429166794, 0.02306530438363552, 0.02325950749218464, 0.00994168408215046, 0.003646902507171035, -0.04108133912086487, 0.031012676656246185, -0.009545809589326382, -0.04819214716553688, -0.04042403772473335, 0.035344891250133514, -0.020600425079464912, -0.03337298706173897, -0.03244679048657417, -0.03313396871089935, 0.08019077777862549, 0.028413347899913788, 0.004518947564065456, -0.007043582387268543, -0.006927807815372944, -0.021929966285824776, -0.026277119293808937, 0.038930170238018036, -0.06423627585172653, -0.007917494513094425, 0.012107791379094124, -0.025096964091062546, -0.007204173132777214, 0.005587062332779169, 0.009022955782711506, 0.002410727785900235, 0.017254162579774857, -0.07774083316326141, -0.015476461499929428, 0.006289179902523756, 0.009105118922889233, 0.02512684091925621, 0.002599328523501754, 0.015192626975476742, 0.032387033104896545, -0.012966765090823174, -0.04451723396778107, -0.007614986505359411, 0.024066196754574776, 0.01638771966099739, -0.020271774381399155, 0.0009803501889109612, -0.04132035747170448, 0.03274556249380112, 0.004619783256202936, 0.009866991080343723, 0.04075269028544426, 0.04813239350914955, 0.009837113320827484, -0.02284122444689274, -0.0131534980610013, 0.030803535133600235, 0.01632796600461006, -0.01623833365738392, 0.025216473266482353, -0.02926485240459442, 0.00043415508116595447, 0.02451435662806034, -0.017403550446033478, -0.014184266328811646, -0.018090728670358658, 0.014378469437360764, -0.04152949899435043, 0.0020708730444312096, 0.002184780314564705, 0.003045621095225215, 0.028876448050141335, 0.025978345423936844, -0.016850817948579788, 0.03543452173471451, 0.004040909931063652, -0.0012137668672949076, -0.0010793188121169806, 0.01671637035906315, -0.0032640991266816854, 0.034179676324129105, -0.005979202222079039, -0.029683135449886322, 0.03429918363690376, 0.012802439741790295, -0.004664599429816008, 0.014363530091941357, -0.011017268523573875, 0.05542246252298355, -0.01290701050311327, -0.004048379138112068, 0.014557733200490475, -0.013033988885581493, 0.02836853265762329, 0.05927664041519165, -0.006871787831187248, 0.03241691365838051, 0.02842828817665577, 0.003742136526852846, 0.00925450585782528, -0.027024053037166595, 0.014946138486266136, -0.02190008945763111, 0.0035124546848237514, 0.014751935377717018, -0.010875350795686245, -0.025799082592129707, -0.019450146704912186, -0.0029447851702570915, 0.016357842832803726, -0.01934557594358921, 0.02478325180709362, 0.02533598244190216, -0.04878969490528107, 0.02919016033411026, 0.015267319977283478, -0.009919276461005211, -0.020600425079464912, 0.0011129308259114623, 0.026127733290195465, -0.009142465889453888, 0.06118878722190857, -0.013683821074664593, -0.022527514025568962, -0.011502775363624096, -0.019465085119009018, 0.006535667926073074, 0.011913588270545006, 0.033492498099803925, -0.04899883642792702, 0.01472952775657177, 0.017702322453260422, 0.0024163296911865473, -0.08162488788366318, 0.006875522434711456, 0.005049270112067461, -0.023901870474219322, -0.00683444133028388, -0.00669252360239625, 0.008380593731999397, -0.001865466358140111, -0.02884656935930252, 0.023423833772540092, 0.009381484240293503, -0.0019438943127170205, -0.026590831577777863, 0.013541903346776962, 0.009799767285585403, 0.02733776532113552, 0.012817378155887127, -0.01235427986830473, -0.04469649866223335, 0.04018501937389374, 0.026904543861746788, 0.023797299712896347, -0.017254162579774857, 0.015610909089446068, 0.01871815323829651, 0.004242582246661186, -0.019375454634428024, -0.0034116185270249844, -0.008940793573856354, -0.016417598351836205, -0.02913040481507778, -0.007051052059978247, 0.0013239395339041948, 0.0156258475035429, 0.023662852123379707, -0.014348591677844524, 0.025216473266482353, 0.028607551008462906, -0.027038991451263428, 0.022333310917019844, -0.020256835967302322, -0.052703626453876495, 0.02167600952088833, 0.030519701540470123, 0.03205838426947594, 0.031132185831665993, 0.012451380491256714, 0.007947372272610664, -0.029623381793498993, -0.027382580563426018, 0.03155047073960304, -0.044636745005846024, 0.012802439741790295, -0.07469334453344345, -0.03904968127608299, -0.008193859830498695, 0.004291132558137178, -0.014931200072169304, 0.0024051256477832794, -0.04589159041643143, -0.018479133024811745, 0.010464537888765335, -0.004406907595694065, 0.01631302759051323, 0.043949563056230545, -0.012062975205481052, -0.007346090395003557, 0.03214801475405693, 0.010270334780216217, 0.017403550446033478, 0.004750496707856655, 0.011913588270545006, -0.021735763177275658, -0.03525526076555252, -0.030952922999858856, -0.026725279167294502, 0.0021959843579679728, -0.029160281643271446, -0.004018501844257116, 0.0016749983187764883, 0.009859521873295307, -0.032387033104896545, 0.0280249435454607, 0.021586377173662186, -0.010531761683523655, 0.00514637166634202, 0.012645583599805832, -0.005878366529941559, -0.015506338328123093, -0.05557185038924217, 0.02600822225213051, -0.009859521873295307, 0.02491769939661026, -0.0071145412512123585, 0.024589048698544502, -0.007024909369647503, 0.02505214884877205, 0.031490713357925415, 0.00901548657566309, -0.034807100892066956, 0.00024111945822369307, 0.02781580202281475, 0.025828959420323372, -0.06232412904500961, -0.023513466119766235, -0.021974781528115273, -0.007618721108883619, 0.01873309165239334, -0.0006437632837332785, 0.0432325080037117, -0.020152265205979347, 0.008993078954517841, -0.017806893214583397, 0.012010689824819565, 0.00547128776088357, -0.017463304102420807, -0.0002611932868603617, 0.012742685154080391, 0.02960844151675701, -0.02747221291065216, -0.024529295042157173, -0.0029615911189466715, 0.0005037132650613785, 0.006838175933808088, -0.010688617825508118, 0.007969779893755913, 0.03585280478000641, -0.0065095252357423306, -0.014326184056699276, 0.01576029509305954, 0.029653258621692657, -0.013370108790695667, 0.0065095252357423306, 0.006640238221734762, -0.03241691365838051, -0.037137530744075775, -0.005038066301494837, 0.04508490487933159, 0.025903651490807533, -0.05288288742303848, 0.020869320258498192, -0.03253642097115517, -0.029234975576400757, 0.05309202894568443, -0.015013362281024456, 0.02092907577753067, -0.007009970489889383, -0.06381799280643463, 0.03794422000646591, 0.005900774151086807, 0.00488867936655879, 0.030205989256501198, -0.03441869467496872, -0.02201959863305092, 0.00994168408215046, 0.04356116056442261, -0.03964722901582718, 0.026874665170907974, 0.023304324597120285, 0.06363873183727264, 0.05590049922466278, -0.020212018862366676, -0.03779483214020729, -0.0054003288969397545, 0.014759405516088009, 0.013571781106293201, -0.0034284244757145643, 0.03229740262031555, 0.011062084697186947, 0.0015172086423262954, -0.009022955782711506, 0.00030904370942153037, 0.02911546640098095, 0.007917494513094425, 0.0033929452765733004, -0.03839237987995148, 0.02216898463666439, 0.018299870193004608, 0.021377235651016235, -0.034807100892066956, -0.027427395805716515, 0.012541012838482857, 0.007327417377382517, -0.004481600597500801, 0.02478325180709362, -0.02836853265762329, 0.021705886349081993, -0.004690742120146751, 0.009583156555891037, -0.019659288227558136, -0.00633399561047554, 0.028189267963171005, -0.013302884995937347, -0.008500102907419205, 0.01749318093061447, 0.03791434317827225, -0.01438593864440918, 0.03588268160820007, -0.03531501442193985, -0.023767422884702682, 0.024887822568416595, -0.0075178854167461395, 0.024618927389383316, -0.022258616983890533, 0.03022092767059803, -0.009232097305357456, 0.017045021057128906, 0.02485794574022293, 0.007476803846657276, -0.010277803987264633, -0.027248132973909378, 0.02175070159137249, 0.004709415603429079, 0.016746249049901962, -0.012862194329500198, 0.0021773111075162888, 0.012585829012095928, -0.0029261119198054075, 0.03674912452697754, -0.029145343229174614, 0.0028271430637687445, 0.008171452209353447, 0.0031856712885200977, -0.002293085679411888, -0.0027841944247484207, -0.004134276881814003, -0.011973343789577484, -0.016820941120386124, -0.016566984355449677, -0.034687589854002, 0.014154389500617981, 0.021093400195240974, -0.0020988830365240574, 0.005829815752804279, -0.037286918610334396, 0.006789625156670809, -0.013601657934486866, 0.012518605217337608, -0.023095183074474335, -0.009329198859632015, -0.01410957332700491, -0.000579807092435658, 0.007312478497624397, -0.022736653685569763, 0.008403001353144646, 0.009374015033245087, -0.03890029340982437, -0.05046282336115837, 0.01707489974796772, -0.037406425923109055, 0.02451435662806034, 0.0038242992013692856, 0.02842828817665577, -0.0014770609559491277, 0.010852943174540997, 0.0312516950070858, -0.004007298033684492, -0.012443911284208298, -0.03244679048657417, 0.014393407851457596, 0.005587062332779169, 0.005542246159166098, -0.025649694725871086, 0.015655726194381714, -0.022408002987504005, 0.019719043746590614, -0.007095867767930031, 0.04633975028991699, 0.005258411634713411, 0.010711025446653366, 0.01077825017273426, -0.005508634261786938, -0.002905571134760976, -0.0034078839235007763, -0.05918700620532036, 0.048490919172763824, -0.010091071017086506, -0.008589734323322773, -0.0436507910490036, 0.008350715972483158, -0.0367790050804615, -0.007715822663158178, -0.0022725451271981, -0.014669773168861866, 0.017866648733615875, 0.006879257038235664, 0.021377235651016235, -0.05796203762292862, 0.010457068681716919, 0.033074215054512024, -0.02953374944627285, -0.007902556098997593, -0.0415593758225441, -0.013243130408227444, 0.03435893729329109, -0.019450146704912186, 0.011106900870800018, 0.012428972870111465, -0.0013771585654467344, -0.011577468365430832, -0.011330980807542801, 0.017791954800486565, -0.016283148899674416, -0.0025040945038199425, 0.0177620779722929, 0.009321729652583599, 0.027980126440525055, 0.02966819703578949, 0.01590968295931816, -0.010367436334490776, 0.05129938945174217, 0.01671637035906315, -0.0003176801255904138, -0.03701802343130112, -0.010815596207976341, 0.03119194135069847, -0.033283356577157974, -0.03289495036005974, -0.027756046503782272, 0.004078256897628307, -0.0316699780523777, -0.005273350048810244, -0.015879806131124496, -0.005351778119802475, -0.02911546640098095, 0.012690399773418903, -0.01366141252219677, -0.024245459586381912, 0.04200753942131996, 0.006599157117307186, 0.011181593872606754, -0.016402658075094223, 0.021661071106791496, 0.003984889946877956, -0.023125059902668, -0.0359424389898777, -0.02575426548719406, -0.002154903020709753, -0.017194408923387527, -0.012331871315836906, 0.02333420142531395, -0.012503665871918201, -0.01680600270628929, -0.012055505998432636, 0.005452614277601242, 0.0218253955245018, -0.020152265205979347, 0.005796203855425119, 0.03815336152911186, 0.0072863358072936535, 0.047116562724113464, -0.007656068075448275, 0.02409607358276844, 0.02560487948358059, 0.029145343229174614, 0.04012526571750641, -0.00487000634893775, -0.018075790256261826, 0.03842225670814514, 0.031042555347085, 0.0214071124792099, -0.004063318017870188, 0.010143356397747993, -0.013444802723824978, 0.021735763177275658, 0.012294524349272251, 0.010382374748587608, 0.022079352289438248, -0.03001178614795208, 0.02245282009243965, -0.014789282344281673, 0.0017889055889099836, -0.0017646303167566657, 0.03361200541257858, 0.007947372272610664, 0.0196891650557518, 0.011764202266931534, -0.045055028051137924, -0.0065095252357423306, 0.01077078003436327, -0.0023547078017145395, -0.011569999158382416, 0.027935311198234558, 0.01466230396181345, -0.008261083625257015, 0.0043508876115083694, -0.030474884435534477, -0.02795024961233139, -0.05354018881917, 0.002875693840906024, -0.02113821730017662, -0.010486945509910583, -0.03680888190865517, -0.02506708726286888, -0.035404644906520844, -0.02003275603055954, -0.003981155343353748, 0.0022202597465366125, -0.02705392986536026, 0.009299321100115776, -0.01294435653835535, -0.027830740436911583, -0.003307047998532653, -0.021705886349081993, -0.01680600270628929, -0.028741998597979546, -0.00784280151128769, 0.012817378155887127, 0.017537998035550117, -0.017851710319519043, -0.011159186251461506, 0.018284931778907776, 0.009179811924695969, 0.013048927299678326, -0.007398375775665045, 0.01225717831403017, -0.002771123079583049, -0.030803535133600235, -0.021108340471982956, 0.013698759488761425, -0.002608665032312274, 0.008701775223016739, 0.0035329952370375395, -0.009306791238486767, 0.02106352336704731, 0.03134132921695709, -0.012428972870111465, -0.0041230726055800915, 0.03785458952188492, -0.0038168299943208694, 0.003910196479409933, -0.006789625156670809, -0.037077777087688446, 0.023632975295186043, -0.05838032066822052, 0.0196891650557518, 0.017881587147712708, 0.0037085246294736862, 0.054077982902526855, 0.012428972870111465, 0.01610388606786728, 0.009037895128130913, 0.00430233683437109, -0.03952771797776222, 0.007092133164405823, 0.03731679543852806, -0.003732800018042326, -0.04699705168604851, 0.006819502450525761, 0.03827286884188652, 0.030161172151565552, 0.061158910393714905, -0.020734872668981552, -0.0007679409463889897, 0.00805194303393364, -0.0641765221953392, 0.04170876368880272, -0.0320882610976696, 0.01816542260348797, -0.02106352336704731, -0.006629034411162138, 0.00019256878294982016, 0.016417598351836205, 0.054824914783239365, 0.004810251295566559, -0.013235661201179028, 0.05061221122741699, -0.02291591838002205, -0.019330637529492378, 0.02249763533473015, -0.01414691936224699, 0.01056910865008831, 0.016223395243287086, -2.5384066248079762e-05, -0.015551154501736164, -0.0026926950085908175, -0.03884053975343704, 0.010628863237798214, 0.01844925619661808, 0.007700883783400059, -0.04681779071688652, 0.03881066292524338, 0.008559857495129108, -0.016432536765933037, 0.016133762896060944, -0.003628229256719351, -0.04535380005836487, 0.00888103898614645, -0.031132185831665993, -0.03456807881593704, -0.013519495725631714, -0.001299664261750877, 0.019480025395751, -0.021048584952950478, 0.0013696892419829965, 0.017463304102420807, 0.013937778770923615, 0.009605564177036285, 0.00795484147965908, -0.0005405931151472032, 0.002575053134933114, -0.028547797352075577, -0.0066813197918236256, 0.04066305607557297, -0.0039176661521196365, -0.06190584599971771, -0.02768135443329811, 0.007368498481810093, 0.01919618993997574, 0.000285935471765697, 0.0005363915697671473, -0.0023528404999524355, -0.010905228555202484, -0.02615761011838913, -0.00714441854506731, -0.0008776467875577509, 0.0402148962020874, 0.011734324507415295, -0.015730418264865875, 0.01686575822532177, 0.00964291114360094, -0.014878914691507816, -0.04577208310365677, -0.01214513834565878, 0.00478784367442131, 0.0056318785063922405, 0.004601110238581896, -0.009814705699682236, -0.010882820934057236, 0.008335777558386326, 0.0177620779722929, -0.016701431944966316, 0.015446583740413189, -0.0010522424709051847, -0.002886897884309292, 0.02781580202281475, 0.02077968791127205, -0.033283356577157974, 0.009635441936552525, 0.02210923098027706, 0.008059412240982056, 0.026411566883325577, -0.015954498201608658, 0.004380764905363321, -0.0035199238918721676, -0.03158034756779671, 0.00607256917282939, 0.020690057426691055, 0.0109126977622509, 0.03806372731924057, -0.01686575822532177, 0.010748372413218021, -0.026456383988261223, -0.021855272352695465, -0.01521503459662199, 0.00044162440462969244, -0.04275447130203247, 0.005105290096253157, 0.0010466405656188726, 0.01976385898888111, -0.012473789043724537, -0.02789049595594406, 0.010135887190699577, 0.017732201144099236, -0.03537476807832718, -0.0022538716439157724, -0.02167600952088833, 0.022945795208215714, 0.0070771947503089905, 0.021810457110404968, 0.004713150206953287, 0.007204173132777214, 0.013780922628939152, -0.0022800143342465162, 0.0032267526257783175, -0.006345199886709452, -0.03683875873684883, 0.020899198949337006, 0.030474884435534477, 0.028263961896300316, -0.004952169023454189, -0.012817378155887127, 0.0015246779657900333, 0.012623175047338009, 0.026456383988261223, -0.07140684127807617, 0.035135749727487564, -0.014811690896749496, -0.00901548657566309, 0.013915370218455791, 0.015140341594815254, 0.006939011625945568, -0.03564366325736046, -0.04872993752360344, -0.04027465358376503, -0.03758569061756134, -0.009852052666246891, -0.00721164233982563, -0.004653395619243383, 0.003958747256547213, 0.03196875378489494, -0.04311300069093704, -0.02169094793498516, 0.034687589854002, -6.004644819768146e-05, 0.0004593640915118158, -0.00726019311696291, 0.007241520099341869, -0.0024984923657029867, 0.04466662183403969, 0.009299321100115776, -0.015043240040540695, -0.013571781106293201, 0.00014775276940781623, 0.017448365688323975, -0.020704995840787888, -0.02249763533473015, -0.04744521155953407, -0.01962941139936447, -0.040304530411958694, 0.021929966285824776, 0.011181593872606754, 0.018837662413716316, -0.007431988138705492, 0.020944014191627502, -0.0016199119854718447, -0.011293633840978146, -0.0008823151583783329, -0.04087219759821892, 0.026874665170907974, -0.004048379138112068, -0.015924621373414993, 0.036510106176137924, 0.014191735535860062, 0.010793188586831093, 0.00850757211446762, 0.005560919642448425, 0.0037888200022280216, -0.017523059621453285, 0.006655177101492882, -0.030131295323371887, 0.01287713274359703, -0.0050978208892047405, -0.007443191949278116, 0.01858370378613472, -0.008612142875790596, -0.009441238828003407, 0.002050332259386778, -0.0014723925851285458, -0.0449056401848793, 0.010001438669860363, -0.01339251734316349, -0.027711231261491776, -0.02148180641233921, -0.002050332259386778, -0.030161172151565552, -0.011726855300366879, -0.021496744826436043, 0.008007126860320568, -0.013683821074664593, 0.04311300069093704, -0.008940793573856354, 0.022557390853762627, 0.05195669084787369, 0.004537620581686497, 0.0016217792872339487, 0.02472349815070629, -0.028204208239912987, 0.007984718307852745, 0.04798300564289093, 0.023842116817831993, -0.035404644906520844, -0.008171452209353447, -0.01211526058614254, -0.016850817948579788, 0.00545634888112545, -0.0036487700417637825, -0.007443191949278116, 0.006263037212193012, 0.02699417434632778, 0.0013724901946261525, -0.0066775851882994175, -0.011233879253268242, -0.0014509182656183839, -0.023169875144958496, -0.03077365830540657, 0.008126636035740376, 0.01955471746623516, 0.006042691878974438, 0.0017030083108693361, -0.01625327207148075, 0.002393921837210655, -0.009695196524262428, 0.0014163726009428501, -0.012369218282401562, 0.017388610169291496, -0.006744808983057737, 0.023662852123379707, 0.0248430073261261, 0.029653258621692657, 0.0075552319176495075, -0.026142671704292297, 0.041828274726867676, -0.011764202266931534, 0.02305036596953869, 0.007820392958819866, 0.017732201144099236, 0.003056825138628483, -0.038930170238018036, -0.010994860902428627, 0.020197080448269844, 0.010188172571361065, -0.011853833682835102, -0.04069293662905693, -0.042156923562288284, 0.0155212776735425, -0.027502089738845825, -0.020824505016207695, 0.003303313162177801, 0.007969779893755913, 0.007999657653272152, 0.01149530615657568, 0.018464194610714912, -0.01015082560479641, 0.013631535694003105, -0.0042239087633788586, -0.0023901870008558035, 0.028532858937978745, -0.0018337216461077332, -0.005751387681812048, -0.013676351867616177, -0.010046254843473434, 0.007465600036084652, -0.022348249331116676, 0.01726910099387169, 0.0007361962925642729, 0.01107702311128378, 0.020958952605724335, 0.0035217911936342716, -0.0022183924447745085, -0.005654286127537489, -0.025440553203225136, -0.02079462818801403, -0.010076132602989674, 0.040513671934604645, 0.015058178454637527, 0.01707489974796772, -0.009784827940165997, -0.024335091933608055, -0.016163639724254608, 0.009321729652583599, -0.031012676656246185, 0.0014901323011144996, 0.0039512780494987965, 0.017104776576161385, -0.0019102822989225388, -0.01907668076455593, -0.026187486946582794, -0.03567354381084442, -0.0016432536067441106, 0.006614095997065306, 0.00860467366874218, 0.005859693046659231, -0.02697923593223095, 0.026889605447649956, -0.011891180649399757, -0.02058548666536808, -0.010628863237798214, 0.018987048417329788, 0.019450146704912186, -0.022213801741600037, -0.003129651304334402, -0.009336668066680431, -0.021705886349081993, 0.0027785925194621086, -0.009351606480777264, 0.022482696920633316, -0.015670664608478546, -0.007700883783400059, 0.005796203855425119, 0.052076201885938644, 0.015461522154510021, 0.059575412422418594, 0.04132035747170448, -0.009769889526069164, 0.02003275603055954, -0.00019186853023711592, 0.052076201885938644, -0.01576029509305954, 0.006640238221734762, 0.019838552922010422, -0.013302884995937347, -0.005250942427664995, -0.032387033104896545, -0.0011119971750304103, 0.019943123683333397, 0.0181803610175848, 0.013698759488761425, -0.03158034756779671, 0.008208799175918102, -0.045951347798109055, -0.013758514076471329, -0.01665661670267582, -0.01865839771926403, 0.0026590831112116575, -0.01063633244484663, -0.03860152140259743, -0.0029317138250917196, 0.0018878743285313249, -0.010225518606603146, 0.018703212961554527, -0.010203110985457897, 0.01417679712176323, -0.011525182984769344, -0.012481258250772953, 0.013116151094436646, -0.0038653805386275053, -0.029279790818691254, 0.019943123683333397, -0.018284931778907776, -0.002604930428788066, -0.026127733290195465, 0.0031277837697416544, -0.024006441235542297, 0.046250119805336, -0.02678503468632698, -0.008500102907419205, -0.027920372784137726, -0.01596943661570549, 0.00609124219045043, 0.00915740430355072, 0.022661961615085602, 0.030026724562048912, 0.0025507777463644743, 0.02575426548719406, -0.0026385425589978695, 0.003041886491701007, -0.04645926132798195, -0.012077913619577885, 0.07935421168804169, -0.029444117099046707, 0.016283148899674416, 0.014460631646215916, 0.014370999298989773, 0.004171623382717371, 0.017194408923387527, 0.0027935311663895845, -0.04657876864075661, 0.036599740386009216, -0.004186562262475491, -0.0036674432922154665, -0.01246631983667612, 0.0138033302500844, -0.026814911514520645, -0.028039881959557533, -0.008500102907419205, 0.017164530232548714, -0.0010811862302944064, 0.011039676144719124, 0.0016236465889960527, 0.02016720362007618, 0.0025115637108683586, -0.0218253955245018, 0.009919276461005211, 0.0012128332164138556, -0.01066621020436287, -0.02058548666536808, -0.00873912125825882, 0.01531213615089655, -0.040364284068346024, -0.015088056214153767, -0.02553018555045128, -0.014490509405732155, -0.008276022970676422, 0.004679538309574127, 0.011480366811156273, 0.0059343865141272545, -0.0056654904037714005, -0.0004892414435744286, 0.04185815155506134, -0.008627081289887428, 0.027158500626683235, 0.016059068962931633, -0.024260398000478745, -0.011599876917898655, -0.0016609933227300644, 0.013048927299678326, -0.01768738403916359, -0.012653052806854248, -0.004511477891355753, 0.006154731847345829, 0.021631192415952682, 0.007148153148591518, 0.010158294811844826, -0.03737654909491539, -0.021212909370660782, -0.007424518465995789, 0.02913040481507778, 0.030549578368663788, 0.03943808749318123, 0.030923044309020042, 0.006830706261098385, 0.019644349813461304, -0.014348591677844524, -0.0006306919385679066, -0.011667100712656975, -0.04418858513236046, -0.03411991894245148, -0.025291167199611664, -0.004373295232653618, 0.019659288227558136, -0.011831426061689854, 0.007558966521173716, 0.00767847616225481, -0.03943808749318123, 0.04418858513236046, 0.004231377970427275, 0.009926745668053627, -0.027442336082458496, -0.006423627957701683, -0.013564311899244785, -0.014714589342474937, -0.017254162579774857, -0.0036431679036468267, 0.008313369005918503, -0.02201959863305092, 0.008358185179531574, 0.008096758276224136, 0.008895977400243282, 0.035613786429166794, -0.00497084204107523, -0.0002469548780936748, 0.004421846009790897, 0.02512684091925621, -0.003898992668837309, 0.016133762896060944, -0.017702322453260422, -0.012929418124258518, -0.040722813457250595, -0.004414376802742481, 0.005075412802398205, -0.00036973206442780793, 0.012645583599805832, 0.000986885861493647, -0.005725244991481304, -0.02871212176978588, 0.0015050709480419755, 0.014811690896749496, -0.026829849928617477, 0.06525211036205292, -0.003603953868150711, -0.023125059902668, -0.02079462818801403, -0.003021345939487219, 0.002164239762350917, -0.04433796927332878, -0.004724354017525911, -0.016492290422320366, -0.019569655880331993, -0.0035161892883479595, 0.009314260445535183, 0.0201074481010437, -0.023662852123379707, -0.0006148195825517178, -0.001586299971677363, 0.004063318017870188, 0.01632796600461006, -0.017313918098807335, 0.008918385952711105, -0.006341465283185244, 0.04353128373622894, 0.00485506746917963, -0.026142671704292297, 0.029279790818691254, -0.032805316150188446, 0.016088945791125298, 0.005482491571456194, 0.0011950935004279017, -0.012593298219144344, -0.013713697902858257], "id": 17}, {"title": "1997 Denver Broncos season", "text": "The 1997 Denver Broncos season was the team's 38th, and 28th in the National Football League (NFL). The Broncos finished the season with a record of 12\u20134, finishing second in the AFC West, and winning Super Bowl XXXII.", "vector": [0.03407149761915207, -0.031749021261930466, -0.013922098092734814, -0.015478922985494137, -0.0009554693824611604, -0.02710406668484211, -0.03210632503032684, 0.019498594105243683, -0.01330957654863596, 0.07406403124332428, 0.012193001806735992, -0.006262391805648804, -0.019256137311458588, -0.006559081841260195, -0.024679502472281456, 0.04295305535197258, -0.062375083565711975, -0.02157861366868019, 0.02032805047929287, -0.0276910662651062, 0.003009967738762498, -0.010419242084026337, 0.044994793832302094, 0.027946284040808678, -0.050915829837322235, -0.005021398421376944, -0.02184659242630005, 0.013564794324338436, 0.012301469221711159, -0.023633113130927086, 0.0362408421933651, -0.024015938863158226, -0.010246970690786839, 0.019587919116020203, -0.044152576476335526, 0.05982290953397751, -0.02452637255191803, 0.0024357291404157877, -0.00935371033847332, 0.007477863691747189, -0.035653840750455856, -0.04244261980056763, 0.03190214931964874, 0.002282598754391074, 0.02748689241707325, 0.025164416059851646, -0.018005574122071266, 0.0038123067934066057, 0.008938982151448727, 0.0019141290104016662, -0.027359284460544586, -0.011771893128752708, 0.007394918240606785, -0.007356635760515928, -0.016576357185840607, 0.015185423195362091, 0.007235407363623381, 0.0624261274933815, -0.04933348298072815, 0.002499533351510763, -0.05869995430111885, 0.0030370845925062895, -0.02567484974861145, 0.006878103595227003, -0.027333762496709824, 0.02549619786441326, -0.013756207190454006, 0.02138720080256462, 0.0037102201022207737, -0.009041069075465202, -0.01718887872993946, -0.009947090409696102, -0.0016158438520506024, 0.016818813979625702, -0.0018614904256537557, 0.03749140724539757, -0.045301053673028946, -0.008084004744887352, -0.039941489696502686, 0.001612653722986579, 0.02604491449892521, -0.03065158613026142, -0.02604491449892521, 0.004881029017269611, 0.039762839674949646, -0.013207489624619484, 0.03772110119462013, -0.04992048442363739, -0.017112312838435173, -0.02968176081776619, -0.0033305843826383352, 0.015963835641741753, 0.03445432335138321, -0.0419832281768322, 0.01670396514236927, -0.010093839839100838, -0.011114709079265594, 0.009417514316737652, -0.024309437721967697, 0.0034454320557415485, 0.0033592963591217995, -3.980291512561962e-05, 0.00807124376296997, -0.014317684806883335, 0.007937255315482616, 0.0004043597436975688, 0.028175977990031242, -0.0011524651199579239, -0.08723323792219162, -0.05594360828399658, -0.004188752267509699, 0.012626870535314083, -0.0618136040866375, 0.008849656209349632, -0.016844335943460464, 0.05420813336968422, 0.03054949827492237, -0.03128962963819504, -0.031544845551252365, 0.04208531603217125, -0.019830375909805298, -0.04063057899475098, 0.01025335118174553, -0.02568761073052883, -0.03062606416642666, -0.004077094607055187, -0.000522796472068876, -0.025343067944049835, -0.026670197024941444, -0.02692541480064392, -0.009998133406043053, -0.020825723186135292, -0.04647505283355713, 0.024743307381868362, -0.002242721151560545, 0.054361261427402496, -0.044101532548666, -0.005975272506475449, 0.03800183907151222, 0.025623805820941925, 0.010808448307216167, 0.004641762934625149, 0.030090108513832092, -0.022165613248944283, 0.046347443014383316, -0.001244183862581849, 0.010093839839100838, 0.00560520775616169, -0.015338554047048092, -0.010240590199828148, 0.047853223979473114, 0.028609847649931908, -0.006319815758615732, -0.01402418501675129, 0.015185423195362091, 0.020838484168052673, 0.02347998134791851, -0.016844335943460464, -0.0023160960990935564, -0.021425483748316765, 0.03971179574728012, -0.008077624253928661, -0.03601114824414253, -0.05915934592485428, -0.014126271940767765, 0.0030673916917294264, 0.028711935505270958, 0.006412331946194172, -0.017916247248649597, 0.0029365927912294865, 0.014662227593362331, 0.011727230623364449, 0.039456579834222794, 0.040502969175577164, -0.001087863347493112, -0.007095037959516048, 0.023824525997042656, 0.018056616187095642, 0.029554150998592377, -0.024283915758132935, 0.0029668998904526234, 0.010904154740273952, 0.016640162095427513, -0.016627401113510132, -0.0039941491559147835, 0.020544985309243202, -0.020098354667425156, 0.04999705031514168, -0.016818813979625702, -0.01909024640917778, 0.014636706560850143, 0.0039750076830387115, 0.04798083379864693, 0.011606002226471901, -0.019026441499590874, 0.03026876039803028, 0.03396940976381302, 0.0385633185505867, -0.010591513477265835, 0.0015161496121436357, -0.01088501326739788, -0.026466023176908493, -0.019638963043689728, -0.04496927186846733, 0.06763255596160889, 0.0007261727005243301, -0.01727820374071598, 0.03690440580248833, 0.011357164941728115, 0.02568761073052883, 0.0656418651342392, -0.005426555871963501, -0.018630854785442352, -0.027257196605205536, 0.013207489624619484, 0.020659832283854485, 0.0092133404687047, 0.03167245537042618, -0.02243359200656414, -0.03728723153471947, -0.00037146065733395517, -0.07018472999334335, -0.04489270597696304, 0.006616505794227123, -0.006211348343640566, 0.0015504445182159543, 0.0022953597363084555, 0.055024828761816025, -0.0015336958458647132, -0.03560280054807663, -0.047853223979473114, 0.02633841522037983, -0.026363937184214592, 0.028941629454493523, 0.013871055096387863, 0.0031758591067045927, -0.004357833880931139, 0.03912479802966118, 0.008607200346887112, 0.00270689744502306, 0.0032731606625020504, 0.004463110584765673, 0.005640299990773201, -0.010151264257729053, -0.01422835886478424, 0.009915187954902649, 0.0007485041860491037, -0.003834638511762023, 0.02110646292567253, 0.02146376669406891, 0.01532579306513071, -0.016206292435526848, -0.03789975494146347, 0.028711935505270958, 0.06661169230937958, -6.186026439536363e-05, -0.03723618760704994, 0.010617035441100597, -0.006466565653681755, 0.019064724445343018, -0.022752612829208374, 0.035730406641960144, -0.00496078422293067, 0.029094761237502098, -0.008032961748540401, 0.05208982899785042, -0.014853640459477901, 0.043769750744104385, 0.03601114824414253, -0.007452342193573713, 0.022459113970398903, -0.006083739921450615, -0.04246814176440239, 0.03340793028473854, 0.025611046701669693, 0.005490359850227833, 0.06615229696035385, -0.041549358516931534, 0.03218288719654083, 0.026848848909139633, -0.023071635514497757, 0.0020529034081846476, 0.045964617282152176, -0.05252369865775108, 0.018745703622698784, 0.0063134352676570415, -0.008275417611002922, -0.022408070042729378, -0.0005216001300141215, 0.018758464604616165, 0.0064187124371528625, 0.029171325266361237, -0.02243359200656414, 0.0013741850852966309, 0.03248915076255798, 0.027614500373601913, 0.02473054639995098, 0.009245242923498154, 0.016844335943460464, 0.005563735030591488, 0.05186013504862785, 0.007911733351647854, 0.014879162423312664, -0.026363937184214592, -0.019919702783226967, 0.04953765869140625, 0.044050488620996475, 0.008728427812457085, -0.02231874316930771, 0.002228365046903491, -0.06962325423955917, 0.004450350068509579, -0.026363937184214592, -0.0068717231042683125, 0.03254019096493721, -0.018388399854302406, 0.0310088898986578, 0.025930067524313927, -0.01235251221805811, -0.008479591459035873, 0.017405813559889793, 0.03169797733426094, 0.02377348206937313, 0.023339612409472466, -0.019243376329541206, -0.07758602499961853, 0.007203505374491215, -0.012869327329099178, 0.03692992776632309, 0.01965172402560711, -0.0038314482662826777, 0.0068525816313922405, 0.04525000974535942, -0.02404146082699299, -0.004351453389972448, -0.04216188192367554, 0.04272335767745972, -0.026414979249238968, 0.04188114032149315, -0.02815045602619648, -0.02756345644593239, -0.02032805047929287, -0.015683095902204514, -0.015593770891427994, -0.018630854785442352, -0.013284055516123772, -0.012620490044355392, -0.03863988444209099, -0.00801382027566433, 0.026363937184214592, 0.0003971817495767027, 0.026363937184214592, 0.027742110192775726, 0.04486718401312828, -0.011931403540074825, 0.039482101798057556, -0.03358658403158188, -0.04706205055117607, 0.014777075499296188, 0.014113510958850384, 0.016384944319725037, -8.090186020126566e-05, -0.00691638607531786, -0.020940570160746574, -0.026797804981470108, -0.013973142020404339, -0.010425622574985027, 0.019702767953276634, 0.005751957651227713, -0.035934582352638245, 0.010617035441100597, 0.05604569613933563, -0.01173361111432314, -0.00782240740954876, 0.09366471320390701, -0.015606531873345375, -0.039277926087379456, -0.009621688164770603, -0.06166047602891922, -0.011714469641447067, -0.02156585268676281, 0.06023125723004341, -0.0479297898709774, 0.006240060552954674, -0.0006364478613249958, -0.012046251446008682, -0.0013040003832429647, 0.05640299990773201, -0.033254802227020264, -0.041549358516931534, 0.024679502472281456, 0.048618875443935394, -0.04211083799600601, -0.007522527128458023, 0.010597893968224525, 0.008147808723151684, 0.0022411260288208723, 0.036036666482686996, 0.06380429863929749, 0.025253741070628166, -0.046806834638118744, 0.03299958258867264, 0.033280324190855026, -0.05109448358416557, -0.02022596262395382, 0.009577025659382343, 0.03218288719654083, 0.0026367127429693937, 0.009060210548341274, -0.02586626261472702, 0.02804837003350258, 0.014509097672998905, -0.010540470480918884, 0.034326713532209396, 0.05466752499341965, 0.005018208175897598, -0.005541403312236071, 0.02968176081776619, -0.042315009981393814, -0.017201639711856842, -0.029043717309832573, 0.0884072408080101, 0.025942828506231308, -0.005219191778451204, 0.009774819016456604, 0.01494296733289957, -0.06446786224842072, 0.005375512409955263, 0.04759800806641579, 0.005388272926211357, -0.010514948517084122, 0.011739990673959255, -0.0257769376039505, 0.036700233817100525, 0.02988593466579914, -0.03731275349855423, -0.0003188221016898751, 0.04075818508863449, 0.010655318386852741, 0.06349804252386093, 0.020455658435821533, 0.04277440160512924, -0.02442428655922413, -7.49202081351541e-05, 0.034709539264440536, -0.0022443162743002176, -0.00646337540820241, -0.011995208449661732, -0.023620352149009705, 0.030753672122955322, -0.054157089442014694, -0.039762839674949646, -0.011759132146835327, 0.0136924022808671, -0.01717611774802208, 0.00968549307435751, -0.022484635934233665, -0.029247891157865524, 0.07360464334487915, -0.03274436667561531, 0.004683235660195351, -0.009947090409696102, 0.017724834382534027, 0.025062328204512596, -0.041574880480766296, 0.03700649365782738, -0.018873311579227448, -0.030370846390724182, -0.0385633185505867, -0.035551756620407104, 0.038716450333595276, -0.007126940414309502, -0.06702003628015518, -0.036419495940208435, -0.02022596262395382, -0.03989044949412346, 0.03807840496301651, -0.004625811707228422, 0.04124309867620468, 0.020672593265771866, 0.004115377087146044, 0.025827979668974876, 0.03744036331772804, 0.022203896194696426, 0.03654710203409195, -0.005863615311682224, -0.0017530231270939112, -0.029809368774294853, 0.026874370872974396, 0.02069811522960663, 0.03894614428281784, -0.010661698877811432, -0.010757405310869217, -0.029273413121700287, 0.0513496994972229, 0.05099239572882652, -0.024360481649637222, 0.007088657468557358, 0.06400847434997559, -0.042621273547410965, -0.00028851506067439914, 0.019409267231822014, 0.02043013647198677, 0.005550974048674107, 0.03481162711977959, 0.01652531325817108, -0.01670396514236927, 0.04479061812162399, -0.012224903330206871, 0.045301053673028946, 0.05584152415394783, 0.029477586969733238, -0.011376306414604187, 0.024360481649637222, -0.03187662735581398, -0.05767908692359924, -0.017712073400616646, 0.023160960525274277, 0.052370570600032806, 0.004708757158368826, 0.027129588648676872, -0.028992673382163048, -0.006878103595227003, 0.05431022122502327, 0.03925240412354469, 0.00915591698139906, 0.01274171844124794, 0.012110056355595589, -0.0009235672187060118, 0.027155110612511635, 0.03310167044401169, 0.03761901333928108, -0.005308517720550299, -0.01984313689172268, -0.017609987407922745, 0.02148928865790367, -0.013373381458222866, -0.025075089186429977, 0.0024564655032008886, -0.03399493172764778, 0.034045975655317307, 0.018388399854302406, -0.026695718988776207, 0.005940180271863937, -0.053697697818279266, -0.02214009128510952, -0.023607591167092323, 0.019128529354929924, -0.025560002774000168, -0.0108722522854805, -0.009634449146687984, 0.007656516041606665, 0.02310991659760475, 0.014866401441395283, -0.018554290756583214, -0.015402358025312424, 0.026976458728313446, 0.006980190519243479, -0.0066292667761445045, 0.004491822794079781, -0.0037389318458735943, 0.012614109553396702, -0.013488229364156723, 0.012269566766917706, -0.017507899552583694, 0.004855507053434849, 0.011861219070851803, 0.00807124376296997, -0.013016076758503914, -0.05191117897629738, -0.0035762309562414885, 0.02559828571975231, 0.010674458928406239, 0.007414059713482857, 0.026848848909139633, 0.022867461666464806, 0.051222093403339386, 0.022752612829208374, 0.02393937297165394, 0.030753672122955322, 0.0033433453645557165, 0.0062368703074753284, 0.02863536961376667, -0.01383277215063572, -0.011535817757248878, 0.024258393794298172, -0.0017865203553810716, 0.023046113550662994, -0.014572901651263237, 0.00493845297023654, -0.011331643909215927, -0.02807389199733734, 0.01198244746774435, 0.002604810521006584, 0.014802597463130951, 0.023058874532580376, 0.033356886357069016, 0.013009696267545223, 0.03396940976381302, -0.0058125718496739864, 0.020009027794003487, 0.002957329386845231, 0.045964617282152176, -0.008747569285333157, 0.06191569194197655, -0.0011628333013504744, 0.013411663472652435, 0.011682567186653614, 0.00825627613812685, 0.040502969175577164, -0.05089030787348747, -0.010802067816257477, -0.0027244435623288155, -0.006667549256235361, 0.011510295793414116, -0.03312719240784645, 0.0022570770233869553, -0.019536877050995827, 0.03052397631108761, -0.06650960445404053, 0.025827979668974876, 0.007905352860689163, -0.013730685226619244, -0.017201639711856842, 0.017163356766104698, -0.018388399854302406, 0.02319924347102642, -0.03874197229743004, -0.019728289917111397, -0.011580480262637138, -0.06023125723004341, -0.024411525577306747, -0.027818674221634865, 0.016461508348584175, -0.01822250708937645, -0.008371124044060707, 0.025317545980215073, -0.06671377271413803, -0.014547380618751049, 0.028788499534130096, -0.02489643730223179, -0.01388381514698267, 0.009219720959663391, 0.04609222710132599, -0.025611046701669693, -0.012154718860983849, -0.003461383283138275, 0.02156585268676281, -0.018094899132847786, -0.015236467123031616, 0.017112312838435173, -0.0009658375638537109, 0.006125212647020817, 0.008345602080225945, -0.00934732984751463, -0.04925692081451416, 0.026593631133437157, 0.03981388360261917, 0.023633113130927086, 0.01140820886939764, -0.02136167883872986, 0.0138455331325531, 0.02434772066771984, 0.017354769632220268, 0.039277926087379456, -0.011657045222818851, 0.08830515295267105, 0.03305062651634216, -0.0034103398211300373, 0.028865065425634384, 0.0370575375854969, -0.008849656209349632, 0.049384526908397675, -0.05066061392426491, -0.024411525577306747, -0.003140766639262438, 0.0034550027921795845, 0.052829958498477936, 0.00429402943700552, -0.01145925186574459, -0.01440701074898243, 0.059976041316986084, -0.014904684387147427, -0.002464441116899252, -0.009009166620671749, 0.0011987233301624656, -0.03437775745987892, 0.014394249767065048, -0.01833735592663288, -0.001512161921709776, 0.007126940414309502, -0.006307054776698351, -0.0027292289305478334, 0.039099276065826416, -0.030319802463054657, -0.049001701176166534, -0.01689537800848484, -0.046143271028995514, 0.009889665991067886, -0.031264107674360275, -0.03754245117306709, -0.01564481481909752, -0.05191117897629738, 0.0016716726822778583, 0.0077203200198709965, -0.02031528949737549, -0.014241119846701622, 0.004306790418922901, 0.04101340472698212, -0.047751136124134064, -0.03034532442688942, 0.004105806816369295, -0.014445293694734573, -0.009915187954902649, -0.0037772145587950945, 0.01670396514236927, -0.0165125522762537, -0.02194867841899395, -0.019524116069078445, -0.021999722346663475, -0.008696526288986206, 0.0033497256226837635, 0.016665682196617126, 0.02557276375591755, 0.027333762496709824, -0.024845393374562263, -0.02451361157000065, -0.020736398175358772, 0.021897636353969574, 0.016257336363196373, -0.04274887964129448, -0.006667549256235361, -0.0007983513060025871, 0.0014244309859350324, -0.008543395437300205, -0.006910005584359169, 0.05487169697880745, 0.00897088460624218, 0.008332841098308563, -0.009659971110522747, -0.03248915076255798, -0.006329386495053768, 0.044433314353227615, 0.011184893548488617, -0.010853111743927002, 0.01956239901483059, 0.06553977727890015, 0.026772284880280495, -0.012677914462983608, -0.005270235240459442, 0.003215736709535122, -0.015900030732154846, 0.0063134352676570415, -0.009200580418109894, -0.04392287880182266, -0.0035411387216299772, 0.035373102873563766, -0.05058404803276062, -0.009117634035646915, 0.015581009909510612, 0.0029764706268906593, 0.03922688215970993, -0.0041089970618486404, 0.012805523350834846, 0.014713271521031857, -0.0051681483164429665, -0.017137834802269936, 0.031544845551252365, -0.023709677159786224, 0.030217716470360756, 0.033254802227020264, 0.0443057045340538, -0.03797632083296776, 0.018924355506896973, 0.014585662633180618, 0.0015568248927593231, 0.011714469641447067, 0.03437775745987892, -0.040783707052469254, -0.008996406570076942, -0.03435223549604416, 0.022459113970398903, 0.00711417943239212, 0.0044056870974600315, -0.004881029017269611, -0.03958418592810631, 0.00691638607531786, 0.03310167044401169, 0.030141150578856468, 0.03973731771111488, -0.03560280054807663, 0.013373381458222866, 0.013156446628272533, 0.01766102947294712, 0.0092133404687047, -0.0029413781594485044, 0.0015448615886271, 0.00033636827720329165, 0.03228497505187988, -0.008804993703961372, 0.013590315356850624, -0.0027962233871221542, -0.017622748389840126, 0.007458722684532404, 0.013590315356850624, -0.011829317547380924, -0.015287510119378567, -0.011491154320538044, 7.058350456645712e-05, 0.033280324190855026, 0.012346131727099419, 0.014394249767065048, 0.030855759978294373, -0.006571842823177576, -0.02922236919403076, 0.022408070042729378, -0.029911454766988754, -0.014751554466784, 0.0013199514942243695, -0.02165517956018448, -0.06120108440518379, 0.03677679970860481, 0.02748689241707325, -0.021884875372052193, -0.016372183337807655, 0.005573305767029524, -0.018477724865078926, -0.031238585710525513, -0.009889665991067886, 0.027844196185469627, 0.008728427812457085, 0.011637904681265354, 0.027793152257800102, -0.015198184177279472, 0.012473740614950657, 0.037185147404670715, 0.03062606416642666, 0.004884219262748957, 0.012728957459330559, 0.023339612409472466, 0.01173361111432314, 0.03557727858424187, -0.0018726561684161425, -0.027257196605205536, 0.01698470488190651, -0.0032077610958367586, -0.05219191685318947, -0.011082806624472141, -0.018860550597310066, 0.01602764055132866, -0.006801538169384003, 0.0334334522485733, -0.0438973568379879, -0.022165613248944283, -0.047853223979473114, 0.011376306414604187, 0.023314090445637703, -0.015810705721378326, 0.005854044575244188, -0.008326461538672447, 0.04045192524790764, 0.02224217914044857, 0.0654376894235611, 0.013411663472652435, 0.005854044575244188, -0.007535287644714117, 0.004351453389972448, -0.043948400765657425, 0.01006831880658865, -0.06656064838171005, -0.01795453019440174, 0.011280599981546402, 0.005984843242913485, -0.029834890738129616, -0.049486614763736725, 0.004118567332625389, 0.008186091668903828, 0.011133850552141666, 0.03652158007025719, 0.01159324124455452, -0.0037421220913529396, 0.0021023517474532127, -0.04619431123137474, 0.020570505410432816, 0.028278065845370293, -0.0313151516020298, -0.018949877470731735, -0.03596010431647301, -0.017010226845741272, -0.04264679551124573, 0.00124179117847234, -0.03789975494146347, -0.014011424034833908, 0.004711947403848171, -0.046143271028995514, -0.0010846731020137668, 0.02224217914044857, -0.05487169697880745, -0.0017865203553810716, 0.0010639367392286658, 0.005968892015516758, -0.001010500593110919, 0.0026797805912792683, 0.012448218651115894, 0.025343067944049835, 0.007452342193573713, -0.013181968592107296, 0.0011030167806893587, -0.020468419417738914, -0.00412494782358408, 0.027410326525568962, -0.02758897840976715, -0.03243810683488846, 0.034607451409101486, 0.012709815986454487, 0.006705831736326218, -0.037567973136901855, -0.02081296220421791, 0.019524116069078445, 0.01804385520517826, 0.018822267651557922, -0.029145803302526474, 0.0551779568195343, 0.0038027362897992134, 0.019613441079854965, -0.04167696833610535, 0.009570645168423653, 0.006007174961268902, 0.0017865203553810716, 0.010738263837993145, 0.008415787480771542, 0.0009211745928041637, -0.0061092618852853775, 0.0003796355740632862, -0.020481180399656296, -0.009009166620671749, 0.007816026918590069, 0.019064724445343018, -0.019409267231822014, -0.021042658016085625, 0.007343874778598547, -0.0038824917282909155, -0.004412067122757435, 0.023926611989736557, -0.01795453019440174, -0.021412722766399384, 0.013794489204883575, -0.01764826849102974, -0.011612382717430592, -0.025432392954826355, 0.04468853026628494, 0.014534619636833668, -0.011369925923645496, -0.03904823213815689, -0.02539411187171936, -0.01604040153324604, -0.0038473992608487606, 0.013985902070999146, 0.03700649365782738, 0.020251484587788582, -0.0002775487082544714, -0.023033352568745613, -0.030575020238757133, 0.002730824053287506, -0.002277813386172056, -0.0017115502851083875, 0.013220250606536865, -0.006479326635599136, -0.021336156874895096, 0.01567033678293228, -0.010846731252968311, 0.013960381038486958, 0.004549246747046709, -0.01235251221805811, -0.015210945159196854, 0.045479703694581985, 0.01140820886939764, -0.005700914189219475, -0.013335098512470722, 0.002288979245349765, 0.014713271521031857, 0.017035748809576035, 0.025075089186429977, 0.023263048380613327, 0.023339612409472466, 0.02626184932887554, -0.002646283246576786, 0.048899613320827484, 0.004153660032898188, 0.025891784578561783, -0.02252291701734066, -0.0027132779359817505, -0.026312893256545067, -0.015274749137461185, -0.01746961660683155, 0.037950798869132996, -0.002606405643746257, -0.039456579834222794, -0.0008589653880335391, -0.006718592718243599, -0.01421559788286686, 0.045479703694581985, -0.0024229681584984064, 0.008039341308176517, -0.026874370872974396, -0.03044741228222847, -0.007458722684532404, 0.04236605390906334, -0.050150178372859955, 0.03330584615468979, -0.019358225166797638, -0.006833440624177456, -0.009583406150341034, -0.0036049429327249527, 0.02473054639995098, 0.03884405642747879, 0.020570505410432816, 0.04782770201563835, 0.00477575184777379, 0.02177002653479576, 0.009443036280572414, -0.03618979826569557, 0.014470814727246761, 0.012103675864636898, -0.0067441146820783615, 0.022854700684547424, -0.010361818596720695, -0.028482239693403244, -0.004603479988873005, 0.004794893320649862, 0.010100220330059528, -0.004077094607055187, -0.020111115649342537, 0.01926889829337597, 0.011963305994868279, 0.03519445285201073, -0.022101810202002525, 0.10285253077745438, -0.010999861173331738, 0.001925294753164053, 0.019932463765144348, 0.023454461246728897, 0.0383591465651989, -0.0009969421662390232, -0.0016158438520506024, -0.018094899132847786, 0.010655318386852741, -0.016742248088121414, -0.005445696879178286, -0.011197654530405998, -0.03636845201253891, -0.004635382443666458, 0.008084004744887352, 0.060741692781448364, 0.010221448726952076, -0.009896046482026577, -0.0033433453645557165, -0.014292162843048573, -0.025815218687057495, 0.031136497855186462, -0.021234070882201195, -0.002600025152787566, -0.05142626538872719, 0.01350098941475153, 0.018273551017045975, 0.0010615440551191568, 0.012913989834487438, -0.02470502443611622, -0.030217716470360756, -0.031085453927516937, -0.03902271017432213, -0.03738931939005852, 0.003512426745146513, -0.026414979249238968, -0.00949408020824194, 0.01513438019901514, 0.0007341481978073716, 0.0006380429840646684, -0.03299958258867264, -0.03447984158992767, -0.007101418450474739, -0.01754618249833584, -0.0015456591499969363, 0.036649189889431, -0.02996249869465828, 0.03715962544083595, 0.0048204148188233376, 0.011752751655876637, 0.0400690995156765, -0.015261988155543804, 0.000445832556579262, -0.0031327910255640745, 0.009002787061035633, -0.015083336271345615, 0.03728723153471947, -0.013934859074652195, -0.02483263425529003, -0.006827060133218765, 0.0005403426475822926, 0.026466023176908493, -0.016869856044650078, -0.021055418998003006, -0.001647746074013412, -0.013437185436487198, 0.034403279423713684, -0.007503385655581951, 0.005617968738079071, -0.021629657596349716, 0.01125507801771164, 0.011293360963463783, -0.024118024855852127, 0.018758464604616165, 0.010859491303563118, -0.01605316251516342, 0.021502049639821053, -0.0036496059037745, -0.017112312838435173, 0.012448218651115894, -0.009130395017564297, -0.016065923497080803, 0.010030035860836506, -0.023250287398695946, 0.01421559788286686, -0.00439292611554265, -0.008122287690639496, 0.022484635934233665, -0.008517874404788017, 0.025240980088710785, -0.02080020122230053, 0.0010766976047307253, -0.015695856884121895, -0.014534619636833668, -0.03647053614258766, -0.000130699118017219, 0.028405673801898956, 0.011491154320538044, -0.007101418450474739, -0.011044524610042572, -0.016091443598270416, -0.009028308093547821, 0.024066980928182602, -0.03159588947892189, 0.013909337110817432, -0.018248029053211212, -0.004077094607055187, -0.008568917401134968, -0.02212733030319214, 0.000807523145340383, 0.007975537329912186, 0.00486826803535223, 0.04849126935005188, 0.011944164521992207, 0.017775878310203552, -0.015236467123031616, 0.016474269330501556, 0.01879674568772316, 0.03006458654999733, -0.019358225166797638, -0.009519601240754128, -0.01517266221344471, 0.010336296632885933, 0.029094761237502098, 0.007299211807549, -0.005637109745293856, -0.01344994641840458, -0.02231874316930771, 0.010712741874158382, 0.005461648106575012, 0.012065392918884754, -0.02912028320133686, 0.0125120235607028, 0.02557276375591755, -0.036980971693992615, 0.05686239153146744, 0.0038729209918528795, 0.047955311834812164, 0.00047015794552862644, 0.03521997481584549, 0.017329247668385506, -0.019817614927887917, -0.00413132831454277, 0.019447550177574158, 0.013245772570371628, 0.02291850373148918, -0.015823466703295708, -0.02566208876669407, 0.04019670933485031, -0.013539272360503674, -0.04272335767745972, -0.0033784375991672277, -0.01456014160066843, 0.01049580704420805, 0.012473740614950657, 0.04139623045921326, -0.008907080627977848, -0.011248698458075523, -0.011822937056422234, 0.024590177461504936, 0.010470285080373287, -0.008460449986159801, 0.017775878310203552, -0.0022395309060811996, 0.057985346764326096, 0.025049567222595215, 0.0029700901359319687, 0.0014643087051808834, -0.01498124934732914, -0.018184226006269455, -0.014432532712817192, 0.023901090025901794, 0.005554164294153452, -0.008734808303415775, -0.004332311917096376, -0.003968627657741308, 0.00189020240213722, -0.024105263873934746, -0.023403417319059372, -0.036036666482686996, -0.019690006971359253, 0.009283525869250298, -0.01313092466443777, -0.0005303732468746603, 0.0008047317387536168, 0.0027738919015973806, -0.005372322164475918, 0.009430275298655033, -0.023033352568745613, -0.03491371124982834, 0.01217386033385992, 0.007356635760515928, -0.011956925503909588, -0.022561199963092804, 0.011727230623364449, -0.008607200346887112, 0.016742248088121414, -0.011089187115430832, 0.006386810448020697, -0.018937116488814354, 0.007522527128458023, 0.022012483328580856, 0.04226396977901459, -0.05956769362092018, -0.025521719828248024, 0.02243359200656414, 0.0037261710967868567, 0.023352373391389847, 0.03667471185326576, -0.014126271940767765, 0.0032619948033243418, -0.007241787854582071, -0.020825723186135292, -0.03315271437168121, -0.011350784450769424, -0.006648407783359289, -0.02080020122230053, -0.01178465411067009, 0.03141723573207855, 0.020940570160746574, -0.024373242631554604, -0.00877947174012661, 0.012224903330206871, -0.036215320229530334, -0.007324733771383762, 0.04897617921233177, -0.03662366792559624, -0.0165125522762537, -0.030141150578856468, -0.0004681640421040356, 0.0034709537867456675, -0.015249227173626423, 0.0005758337792940438, 0.01813318207859993, -0.044611964374780655, 0.0030721770599484444, 0.014241119846701622, 0.008887939155101776, -0.018196986988186836, -0.000594975077547133, 0.0172654427587986, 0.008983645588159561, 0.01947307214140892, -0.013207489624619484, -0.011625143699347973, -0.0082052331417799, 0.041268620640039444, 0.010438383556902409, -0.04849126935005188, -0.010438383556902409, -0.028865065425634384, 0.02863536961376667, 0.013047979213297367, 0.022561199963092804, 0.030370846390724182, -0.052625786513090134, 0.013717924244701862, 0.0007018473115749657, 0.019715528935194016, -0.0332292802631855, 0.004472681321203709, 0.00710779894143343, 6.860208486614283e-06, -0.034505363553762436, 0.01612972654402256, 0.023722438141703606, -0.020749157294631004, -0.031187541782855988, -0.016844335943460464, -0.030039064586162567, 0.0020640690345317125, 0.04818500578403473, -0.01011298131197691, -0.03256571292877197, 0.02756345644593239, 0.0175717044621706, 0.013679642230272293, -0.009296286851167679, -0.008926221169531345, -0.018005574122071266, -0.028482239693403244, 0.006737734191119671, 0.019702767953276634, -0.015453401021659374, -0.020098354667425156, -0.02128511480987072, -0.042136359959840775, 0.002968495013192296, -0.010189546272158623, 0.03146827965974808, -0.02242083102464676, -0.006032696459442377, 0.019524116069078445, -0.007439581211656332, -0.013603076338768005, -8.130063361022621e-05, 0.00182480295188725, -0.01928165927529335, -0.003923964221030474, -0.027078544721007347, 0.021923156455159187, -0.013398902490735054, -0.018082138150930405, -0.03159588947892189, -0.00020028567814733833, -0.014828119426965714, -0.011663425713777542, -0.017290964722633362, 0.04660265892744064, 0.004603479988873005, -0.03136619180440903, -0.012027110904455185, -0.0006264784606173635, -0.01967724598944187, -0.023735199123620987, 0.017316486686468124, -0.013194729574024677, 0.005598827265202999, -0.02922236919403076, -0.03960970789194107, -0.010699980892241001, 0.026032153517007828, -0.015797944739460945, 0.00902192760258913, -0.004632192198187113, -0.02797180414199829, 0.048338137567043304, -0.01083397027105093, 0.012537544593214989, 0.014917445369064808, 0.012658772990107536, -0.0022060335613787174, -0.0020736397709697485, 0.007152461912482977, 0.002877573948353529, 0.0005826129927299917, -0.002545791445299983, 0.010604274459183216, 0.00048132368829101324, -0.02566208876669407, -0.02626184932887554, 0.033458974212408066, 0.0016764579340815544, -0.007745841983705759, 0.011663425713777542, -0.010093839839100838, 0.007229027338325977, 0.005094773136079311, 0.01307988166809082, -0.010400100611150265, -0.008530634455382824, 0.012460979633033276, 0.03481162711977959, -0.01669120416045189, -0.020060071721673012, -0.04361661896109581, 0.012486501596868038, 0.014751554466784, -0.0005730423727072775, -0.01813318207859993, -0.0003124416689388454, 0.011082806624472141, 0.015198184177279472, 0.03710858151316643, -0.022076288238167763, -0.021693462505936623, -0.020277006551623344, 0.01031077466905117, 0.015708617866039276, 0.01493020635098219, 0.03305062651634216, -0.01584898866713047, -0.047674573957920074, 0.019051963463425636, 0.0022650526370853186, 0.027078544721007347, 0.022931264713406563, -0.011759132146835327, 0.023684155195951462, 0.014623945578932762, -0.016665682196617126, 0.015427879989147186, 0.008549775928258896, -0.01698470488190651, 0.004086665343493223, 0.00802020076662302, -0.023135438561439514, -0.005828522611409426, 0.008135047741234303, -0.009098493494093418, -0.01937098614871502, -0.017980052158236504, -0.019128529354929924, 0.016180770471692085, -0.005972082260996103, 0.0016206292202696204, 0.010023655369877815, 0.013577555306255817, 0.015619292855262756, 0.01216109935194254, 0.00749062467366457, -0.008900700137019157, -0.01965172402560711, 0.020264245569705963, 0.04277440160512924, 0.011204035021364689, 0.025036806240677834, -0.003017943352460861, -0.011503915302455425, 0.008913460187613964, 0.015593770891427994, -0.02319924347102642, 0.008862417191267014, -0.023645874112844467, -0.041268620640039444, -0.023645874112844467, 0.021782787516713142, -0.011382686905562878, 0.027844196185469627, -0.02661915309727192, -0.014139032922685146, -0.01888607256114483, -0.03083023801445961, 0.02155309170484543, -0.00974291656166315, 0.0004314765683375299, 0.04236605390906334, 0.012409936636686325, 0.007905352860689163, -0.013552033342421055, 0.011114709079265594, -0.006182636599987745, -0.018375638872385025, 0.012224903330206871, -0.015568248927593231, 0.046245355159044266, 0.010342677123844624, -0.032131846994161606, 0.04468853026628494, -0.03414805978536606, 0.015797944739460945, 0.03968627378344536, -0.025164416059851646, -0.001960386987775564, -0.016627401113510132, 0.013666881248354912, 0.00012691074516624212, 0.029988020658493042, 0.029145803302526474, 0.012384414672851562, 0.012148338370025158, 0.007675657048821449, 0.027231674641370773, 0.011918643489480019, -0.011944164521992207, 0.026312893256545067, -4.9498179578222334e-05, 0.021642418578267097, 0.04205979406833649, 0.011676186695694923, -0.03185110539197922, -0.0313151516020298, -0.0005953738582320511, 0.012913989834487438, 0.0553821325302124, -0.02689989283680916, -0.002170941326767206, 0.02873745560646057, -0.03407149761915207, 0.007056755479425192, 0.0028807641938328743, -0.03894614428281784, 0.0013351049274206161, 0.0007333506946451962, -0.0272827185690403, 0.010527709499001503, -0.020213201642036438, 0.010891393758356571, -0.0010192736517637968, 0.0031758591067045927, -0.02527926303446293, -0.030702628195285797, 0.027461370453238487, -0.03846123069524765, -0.022765373811125755, -0.058853086084127426, 0.023786243051290512, 0.0074012987315654755, -0.00206247391179204, 0.029477586969733238, -0.01614248752593994, 0.007637374568730593, -0.003758073318749666, -0.027895240113139153, 0.0013079881900921464, 0.005458457861095667, 0.006737734191119671, 0.015057814307510853], "id": 18}, {"title": "Foreign Economic Administration", "text": "In the administration of Franklin Delano Roosevelt, the Foreign Economic Administration was formed to relieve friction between US agencies operating abroad. As described by the biographer of the FEA's chief, Leo Crowley, the agency was designed and run by \"The Nation's #1 Pinch-hitter\".S. L.", "vector": [-0.005764643661677837, 0.010161272250115871, -0.010556652210652828, -0.024418683722615242, -0.006618665065616369, -0.008374153636395931, -0.03770345821976662, 0.011015293188393116, -0.07793734967708588, 0.03077639639377594, 0.010865048505365849, 0.030048897489905357, -0.06439953297376633, -0.049375083297491074, 0.0011129953199997544, 0.0183772724121809, -0.041593998670578, 0.00693101529031992, -0.0027399850077927113, -0.030586615204811096, -0.011719070374965668, -0.03982269763946533, 0.012051189318299294, -0.02067047916352749, 0.010888771153986454, 0.029827484861016273, -0.013181976974010468, 0.01298428699374199, 0.024434497579932213, 0.025051292032003403, 0.019183848053216934, 0.01951596885919571, 0.018092598766088486, -0.030681505799293518, 0.01719113253057003, -0.01060409750789404, 0.01654270850121975, -0.012936840765178204, -0.007456871215254068, -0.004250337369740009, -0.0004571583995129913, 0.000445791200036183, -0.044662151485681534, 0.06443116068840027, 0.041119541972875595, 0.047635409981012344, -0.061932358890771866, 0.019642489030957222, 0.011149722151458263, 0.015206323936581612, 0.002866506576538086, -0.03669128566980362, -0.022631565108895302, 0.02906835451722145, 0.02785058319568634, -0.0072196428664028645, 0.059496816247701645, 0.03022286482155323, -0.0486159548163414, -0.0050371442921459675, 0.02378607541322708, -0.049786277115345, -0.040044110268354416, -0.018551239743828773, -0.004388720728456974, 0.02894183248281479, 0.018108414486050606, 0.03131411597132683, 0.017950262874364853, -0.01418624259531498, -0.0148267587646842, 0.009259805083274841, -0.029368843883275986, 0.0377667210996151, -0.04273269698023796, -0.05019747465848923, 2.990062967000995e-05, -0.043586716055870056, -0.0005050982581451535, 0.010208717547357082, -0.007247319445014, -0.0001155869395006448, 0.01660596951842308, 0.014352302066981792, 0.007472686469554901, -0.004143584985285997, -0.03482509031891823, -0.05807344987988472, 0.0009172821301035583, -0.002866506576538086, -0.011916760355234146, 0.030317755416035652, -0.04456726089119911, 0.00831880047917366, 0.05336051434278488, 0.010248255915939808, -0.0711684376001358, 0.007638745941221714, -0.0011723024072125554, -0.01330059114843607, -0.05272790789604187, 0.01668504625558853, -0.07363561540842056, -0.005871396511793137, -0.013189884833991528, 0.037608567625284195, -0.038715630769729614, 0.02082863077521324, -0.022346891462802887, 0.13208863139152527, -0.04902714863419533, -0.029874930158257484, 0.03555259108543396, 0.014107166789472103, 0.029890745878219604, 0.0534554086625576, 0.024497758597135544, 0.028103627264499664, -0.0002970293862745166, 0.028309224173426628, 0.02136634849011898, -0.017412545159459114, 0.02957444079220295, 0.038241174072027206, 0.008014357648789883, 0.029305582866072655, 0.01181396096944809, 0.05275953933596611, 0.01959504373371601, -0.038146283477544785, -0.05921214446425438, -0.002524502808228135, 0.0437764972448349, -0.009615647606551647, 0.009860782884061337, -0.012573091313242912, -0.005487877409905195, -0.009829152375459671, 0.01831401139497757, 0.04583247750997543, 0.026316508650779724, 0.03922171890735626, -0.03311704844236374, 0.0017189155332744122, 0.0018968366784974933, -0.055353231728076935, 0.04804660379886627, -0.026743518188595772, -0.021571945399045944, 0.004792008548974991, -0.023928411304950714, 0.025114553049206734, 0.017001349478960037, -0.0005243730265647173, -0.007437102030962706, -0.061299752444028854, 0.012059097178280354, 0.005187388509511948, -0.006685879547148943, 0.035331178456544876, -0.01715950109064579, 0.01271542813628912, -0.02378607541322708, 0.012620536610484123, -0.009354696609079838, 0.008903962559998035, 0.019310370087623596, -0.000600977975409478, -0.05864279717206955, 0.025288520380854607, 0.04330204427242279, 0.00914119090884924, 0.0039063566364347935, -0.009157005697488785, -0.00028862757608294487, -0.031677864491939545, 0.009299343451857567, 0.025826236233115196, 0.004183122888207436, -0.01149765681475401, 0.007448963355273008, 0.027391942217946053, -0.011212983168661594, 0.05687149241566658, 0.003200602950528264, 0.0007250285125337541, -0.005183434579521418, -0.004958068020641804, -0.00280917645432055, -0.017618143931031227, 0.017317654564976692, 0.03419248387217522, 0.024766618385910988, 0.037608567625284195, 0.038778893649578094, 0.0012088750954717398, -0.01334803644567728, 0.043555084615945816, 0.007848297245800495, -0.008279262110590935, 0.01668504625558853, 0.022837162017822266, 0.04731910675764084, 0.01831401139497757, 0.010627820156514645, 0.028688790276646614, 0.028894387185573578, -0.061932358890771866, -0.03202579915523529, 0.035805635154247284, 0.03205743059515953, -0.08382061123847961, 0.02125564031302929, -0.02131890133023262, -0.050102584064006805, 0.010453852824866772, -0.009560293518006802, 0.013949014246463776, -0.0022081986535340548, 0.012628444470465183, -0.03030194155871868, 0.019231295213103294, -0.024134010076522827, 0.007520131766796112, -0.0055432310327887535, -0.028862757608294487, 0.01451836246997118, -0.0034417849965393543, -0.00394391780719161, 0.008176462724804878, -0.03688106685876846, 0.060635510832071304, 0.0037897194270044565, 0.03656476363539696, -0.04576921463012695, 0.022362705320119858, 0.002350535476580262, -0.033433351665735245, -0.047603778541088104, 0.037608567625284195, -0.012501922436058521, 0.026838410645723343, -0.026411399245262146, -0.01779210940003395, 0.02611090987920761, 0.024703357368707657, -0.022789716720581055, -0.010248255915939808, -0.01589428447186947, 0.028672974556684494, 0.02082863077521324, -0.03371802717447281, 0.0064842356368899345, 0.005661844741553068, 0.02258411794900894, 0.06775235384702682, 0.008437413722276688, -0.030412647873163223, -0.004744562786072493, 0.015506812371313572, 0.010311516001820564, -0.007504316978156567, 0.005321817938238382, 0.03318030759692192, -0.0392533503472805, -0.02788221463561058, 0.01245447713881731, -0.03257933259010315, 0.039316609501838684, -0.026743518188595772, -0.009497033432126045, -0.02305857464671135, 0.043555084615945816, 0.05500529706478119, -0.017602328211069107, 0.013253144919872284, 0.003406200557947159, 0.044029541313648224, 0.0604773610830307, 0.048805736005306244, -0.012541460804641247, 0.024039117619395256, 0.037576936185359955, -0.014795128256082535, -0.07306626439094543, 0.014716052450239658, -0.027107268571853638, -0.038747262209653854, 0.00921235978603363, 0.007195920217782259, -0.016305480152368546, 0.001842471887357533, 0.03722900152206421, 0.028720419853925705, 0.023912595584988594, 0.04580084607005119, 0.003981478977948427, -0.011070646345615387, -0.0008619289146736264, 0.01066735852509737, 0.04453562945127487, 0.034065961837768555, 0.048173125833272934, 0.006175839342176914, -0.02598438784480095, 0.015997083857655525, -0.03732389211654663, -0.01391738373786211, 0.009884505532681942, -0.030934549868106842, 0.03129829838871956, -0.01097575481981039, -0.030428461730480194, -0.03158297389745712, -1.3954141650174279e-05, -0.013490373268723488, 0.016843197867274284, -0.05323399230837822, 0.044693782925605774, -0.07110518217086792, -0.0027360310778021812, 0.03416085243225098, -0.030396832153201103, 0.012794503942131996, 0.009671000763773918, -0.07838017493486404, -0.011133907362818718, -0.04678138718008995, -0.010643635876476765, 0.01769721880555153, -0.005084589589387178, -0.07009300589561462, -0.009006761945784092, 0.025272704660892487, -0.07091540098190308, -0.013759232126176357, -0.044092804193496704, 0.011315782554447651, -0.0022338982671499252, 0.007136613130569458, 0.0190415121614933, 0.0038035577163100243, -0.023232541978359222, 0.0022655287757515907, -0.02482987754046917, 0.00215284526348114, -0.011616270989179611, -0.010216625407338142, 0.0019383515464141965, -0.04153073951601982, 0.0008930650656111538, -0.01589428447186947, 0.025272704660892487, 0.000450239225756377, 0.03264259174466133, -0.011711162514984608, -0.012952656485140324, -0.011157630011439323, 0.01041431538760662, 0.05513181909918785, 0.03387617692351341, 0.029226506128907204, 0.02184080332517624, 0.037576936185359955, -0.05209529772400856, 0.013427112251520157, -0.027471018955111504, -0.021144933998584747, -0.012509830296039581, -0.005175527185201645, -0.02495639957487583, 0.0018345642602071166, 0.04096139222383499, -0.028071995824575424, 0.024466129019856453, -0.01711205579340458, -0.03447715565562248, -0.002089584479108453, 0.012240971438586712, 0.0007996564963832498, -0.039885956794023514, -0.02120819501578808, -0.016321295872330666, 0.038905415683984756, 0.015158877708017826, -0.04674975946545601, -0.0248140636831522, 0.03270585089921951, 0.013015917502343655, 0.009868690744042397, -0.04798334464430809, -0.0065514505840837955, -0.05402475595474243, -0.0296535175293684, -0.05506855994462967, -0.06724626570940018, 0.027123084291815758, 0.028103627264499664, 0.012604721821844578, 0.005748828407377005, -0.0133638521656394, 0.00856393575668335, 0.002660908969119191, -0.01774466410279274, -0.012976379133760929, -0.049343451857566833, -0.024545203894376755, 0.016938088461756706, -0.008951408788561821, 0.05339214578270912, -0.02258411794900894, -0.04197356477379799, 0.016795752570033073, -0.024640096351504326, 0.03545770049095154, 0.02664862759411335, -0.04425095394253731, -0.008160647936165333, -0.021635206416249275, -0.014391840435564518, -3.496644058031961e-05, 0.04697117209434509, 0.004657579120248556, 0.013158254325389862, 0.05057704076170921, 0.015103524550795555, -0.0032045566476881504, -0.03612193837761879, 0.006049317307770252, -0.01097575481981039, 0.023817704990506172, -0.01891499012708664, -0.017017165198922157, 0.019231295213103294, 0.017649773508310318, -0.014605345204472542, 0.03023868054151535, 0.017396729439496994, 0.002854645252227783, 0.0023900733795017004, -0.006480282172560692, -0.007310580462217331, 0.0097737992182374, -0.0472874753177166, -0.057630620896816254, 0.0002799786161631346, 0.009038392454385757, 0.05386660248041153, 0.044092804193496704, 0.008975131437182426, -0.05408801510930061, -0.02544667199254036, -0.023343248292803764, -0.003350847400724888, -0.00855602789670229, 0.03390780836343765, 0.012644260190427303, -0.037545304745435715, -0.012628444470465183, 0.003532722359523177, -0.011924667283892632, 0.035299547016620636, 0.061236489564180374, -0.023343248292803764, -0.013632710091769695, -0.009931951761245728, -0.006120485719293356, -0.01603662222623825, -0.01298428699374199, -0.029732592403888702, -0.030554983764886856, 0.010793880559504032, 0.016432002186775208, 0.025241073220968246, 0.0015528558287769556, 0.048268020153045654, 0.021050043404102325, -0.06110996752977371, 0.03327520191669464, 0.0007151439785957336, -0.03189927712082863, -0.005072728265076876, 0.06231192499399185, -0.004701070953160524, 0.0037007590290158987, -0.048900626599788666, -0.022062215954065323, 0.028767865151166916, -0.03564748167991638, 0.0031689724419265985, 0.05260138586163521, -0.012114450335502625, -0.0059900106862187386, -0.00952075608074665, -0.015459367074072361, -0.003779835067689419, -0.026490475982427597, 0.03716574236750603, 0.0007620953838340938, -0.008093433454632759, -0.013775046914815903, 0.004507334437221289, 0.028119441121816635, -0.06392507255077362, -0.022014770656824112, 0.013197791762650013, 0.044693782925605774, 0.0019205594435334206, -0.0025541563518345356, -0.013585264794528484, 0.016384556889533997, 0.0377667210996151, -0.004479657858610153, -0.0008149775094352663, -0.002188429469242692, 0.003083965741097927, 0.03215232118964195, 0.0159575454890728, 0.0017762456554919481, 0.02720215916633606, -0.004179168958216906, 0.05870605632662773, 0.01708042621612549, -0.02008531615138054, 0.08723669499158859, -0.0033034018706530333, 0.007302672602236271, 0.0182981975376606, -0.01719113253057003, -0.040581826120615005, 0.024371236562728882, -0.010572466999292374, 0.02728123590350151, 0.02781895361840725, 0.0009874621173366904, 0.02369118295609951, -0.00021894180099479854, 0.004111954476684332, -0.011639993637800217, -0.04599062725901604, -0.0032757252920418978, -0.019800642505288124, 0.030507538467645645, -0.033401720225811005, -0.0272337906062603, 0.006764955818653107, 0.04456726089119911, -0.000455675704870373, 0.012865672819316387, -0.0011624179314821959, 0.030539168044924736, -0.016859013587236404, -0.0342557430267334, 0.07534365355968475, 0.06762583553791046, -0.004677348304539919, 0.0028783681336790323, 0.013197791762650013, 0.004606179893016815, -0.003467484610155225, 0.02952699549496174, -0.018171675503253937, 0.003030589548870921, -0.0016724583692848682, -0.04633856192231178, 0.019231295213103294, -0.03139318898320198, 0.0004675371164921671, -0.0546257309615612, 0.007583392783999443, 0.009560293518006802, 0.02362792193889618, 0.0005960356793366373, -0.008943500928580761, -0.031235037371516228, -0.014573715627193451, 0.007583392783999443, 0.005748828407377005, -0.0035030688159167767, 0.008334615267813206, 0.022900423035025597, -0.0427643246948719, 0.014043905772268772, 0.011268336325883865, -0.011442303657531738, 0.026443028822541237, 0.013332221657037735, 0.010319423861801624, 5.136854088050313e-05, -0.015198416076600552, -0.014621160924434662, 0.02663281187415123, -0.006879616063088179, 0.0115688256919384, 0.035805635154247284, 0.018503794446587563, -0.04067671671509743, 0.0027241697534918785, -0.020923521369695663, -0.010517113842070103, 0.012193526141345501, -0.01514306291937828, 0.027534279972314835, 0.039885956794023514, -0.02312183566391468, 0.03779834881424904, -0.04077161103487015, -0.05642866715788841, 0.0029554672073572874, -0.021508684381842613, 0.0738253965973854, -0.011861407198011875, 0.004270106554031372, 0.004404535982757807, 0.03447715565562248, 0.012517738156020641, -0.004708978347480297, -0.004432212561368942, -0.006278638262301683, -0.019832272082567215, 0.03751367703080177, -0.03359150514006615, -0.009410049766302109, 0.025731345638632774, 0.013205699622631073, -0.018804283812642097, 0.00856393575668335, -0.0079787727445364, -0.0011327643878757954, -0.0020144623704254627, -0.028056181967258453, 0.050070952624082565, -0.00976589135825634, -0.0011584641179069877, 0.013688063248991966, 0.04210008680820465, 0.014684421941637993, -0.022979499772191048, 0.009378419257700443, -0.02435542270541191, 0.04108791425824165, -0.020860260352492332, -0.007860158570110798, 0.011584640480577946, 0.0017604305176064372, -0.032864004373550415, 0.003995317034423351, -0.02068629302084446, 0.009576109237968922, -0.011125999502837658, -0.01298428699374199, -0.040455304086208344, -0.0018553216941654682, 0.0031096655875444412, 0.012343770824372768, -0.017491621896624565, 0.02133471705019474, -0.018124230206012726, 0.029400473460555077, -0.002504733856767416, -0.03151971101760864, 0.03025449439883232, 0.018108414486050606, -0.02607928030192852, 0.005816043354570866, -0.02073373831808567, -0.024118194356560707, 0.008722088299691677, 0.05617562308907509, -0.0005204192129895091, 0.035141393542289734, 0.009868690744042397, 0.01883591338992119, 0.010319423861801624, -0.00430569052696228, 0.006776817142963409, 0.015751948580145836, 0.020037870854139328, 0.02734449692070484, 0.014621160924434662, -0.034666936844587326, -0.009718446061015129, 0.024070749059319496, -0.05136780068278313, -0.0034971381537616253, -0.00530204875394702, -0.022663194686174393, -0.02968514710664749, -0.012944748625159264, -0.028688790276646614, -0.024023301899433136, -0.0008149775094352663, 0.008437413722276688, -0.014225780963897705, -0.019990423694252968, -0.03330682963132858, 0.02302694506943226, 0.0033587550278753042, -0.047129321843385696, 0.0731927901506424, -0.028862757608294487, -0.0006919153966009617, -0.025794606655836105, -0.030064713209867477, 0.02957444079220295, -0.018045153468847275, -0.013150346465408802, -0.031662046909332275, -0.013387574814260006, -0.02541504055261612, -0.0059267496690154076, -0.03077639639377594, -0.02255248837172985, 0.0017683380283415318, 0.0023011129815131426, 0.0004326942435000092, 0.009259805083274841, -0.019895533099770546, -0.06787887960672379, -0.0004766802885569632, 0.004368951544165611, 0.014320671558380127, 0.02244178205728531, -0.006266776472330093, -0.0365963950753212, -0.021192381158471107, -0.005740921013057232, -0.016171051189303398, -0.01655852422118187, -0.0071721975691616535, 0.002908021677285433, 0.021192381158471107, -0.007017998956143856, 0.022773901000618935, 9.384102304466069e-05, 0.03903193771839142, 0.012059097178280354, 0.04545291140675545, -0.021192381158471107, 0.04304900020360947, 0.01953178271651268, 0.019373631104826927, 0.012501922436058521, -0.01214608084410429, -0.024750802665948868, 0.00945749506354332, 0.033401720225811005, 0.025715529918670654, -0.008548120968043804, -0.007856205105781555, 0.002635209122672677, -0.044219326227903366, -0.013719693757593632, 0.008231816813349724, 0.006535635329782963, -0.0031887416262179613, -0.0020658615976572037, -0.07173778861761093, 0.022805532440543175, 0.03684943914413452, -0.02664862759411335, -0.024466129019856453, 0.013126623816788197, -0.027044007554650307, 0.05105149373412132, -0.019800642505288124, 0.03199416771531105, -0.03153552860021591, -0.009275619871914387, 0.02131890133023262, 0.005816043354570866, -0.010153364390134811, -0.05130453780293465, -0.048331279307603836, -0.006741232704371214, -0.004902714863419533, -0.01780792511999607, -0.024007488042116165, 0.028736235573887825, -0.02841993048787117, -0.022093847393989563, 0.011165537871420383, -0.009805429726839066, -0.03131411597132683, -0.028198517858982086, -0.07939235121011734, -0.04383976012468338, -0.02895764820277691, 0.004123815800994635, -0.0017604305176064372, -0.006824262905865908, 0.037608567625284195, -0.021571945399045944, -0.01092040166258812, 0.005867442581802607, -0.03716574236750603, 0.005602537654340267, -0.024418683722615242, -0.045927368104457855, 0.014486731961369514, -0.013174069114029408, 0.006883569993078709, -0.006286545656621456, -0.004325459711253643, -0.013189884833991528, 0.005258556921035051, 0.028846941888332367, -0.012240971438586712, -0.06307105720043182, 0.034097589552402496, -0.01652689278125763, 0.02906835451722145, 0.015530535019934177, 0.028704604133963585, -0.0013798769796267152, 0.03966454416513443, 0.025146182626485825, -0.028040366247296333, -0.024149823933839798, 0.011450211517512798, -0.04665486887097359, 0.04311225935816765, -0.04320714995265007, 0.02721797488629818, 0.01831401139497757, 0.022647378966212273, 0.02432379126548767, -0.01244656927883625, 0.02018020674586296, -0.0202118381857872, -0.004515242297202349, 0.009046299383044243, -0.03254770115017891, -0.011545103043317795, -0.016416186466813087, 0.02081281505525112, 0.04197356477379799, -0.013087085448205471, -0.03387617692351341, 0.043649978935718536, -0.014842573553323746, 0.012248879298567772, -0.012501922436058521, 0.008216001093387604, -0.01834564283490181, 0.01181396096944809, 0.035900525748729706, -0.057630620896816254, -0.01067526638507843, -0.04096139222383499, -0.0001254096714546904, -0.029906559735536575, 0.018029337748885155, -0.02375444397330284, 0.0284831915050745, -0.008690457791090012, -0.03299052640795708, -0.016859013587236404, 0.0005362344090826809, 0.023295802995562553, -0.021461239084601402, 0.044788673520088196, 0.01329268328845501, 0.028894387185573578, 0.0007047652616165578, 0.00215679919347167, -0.009014668874442577, -0.024149823933839798, 0.0012484131148084998, -0.036438241600990295, -0.03963291272521019, -0.010319423861801624, 0.0036434289067983627, 0.002293205354362726, -0.0008896054932847619, -0.006373529322445393, 0.03019123338162899, -0.013276868499815464, 0.041119541972875595, 0.031061070039868355, -0.03305378556251526, 0.011371135711669922, -0.03605867549777031, -0.014059720560908318, 0.0133638521656394, 0.0027676615864038467, -0.001203932799398899, -0.023975856602191925, -0.014684421941637993, -0.03858910873532295, 0.035331178456544876, 0.018661946058273315, 0.01329268328845501, -0.016210589557886124, -0.008587658405303955, -0.007990634068846703, 0.0017268231604248285, 0.0049224840477108955, -0.029827484861016273, 0.02892601676285267, -0.0011475911596789956, 0.01004265807569027, -0.0003281655954197049, -0.014146704226732254, 0.022141292691230774, 0.0027617309242486954, 0.027123084291815758, -0.004788054618984461, -0.013909476809203625, 0.018725207075476646, 0.0354260690510273, -0.008271354250609875, 0.019199663773179054, -0.010208717547357082, 0.002097492106258869, -0.0031867646612226963, -0.0034220158122479916, 0.03193090856075287, -0.013569449074566364, 0.013885753229260445, -0.00025254912907257676, 0.02309020608663559, -0.021113304421305656, -0.03612193837761879, 0.03631171956658363, -0.0015459366841241717, -0.011703254655003548, -0.007947142235934734, 0.019784826785326004, -0.013585264794528484, -0.02955862507224083, -0.017887001857161522, -0.0066542490385472775, -0.03158297389745712, -0.023406509310007095, 0.009338880889117718, -0.061204858124256134, -0.011062738485634327, -0.018598686903715134, 0.0182981975376606, 0.010129641741514206, -0.011276244185864925, 0.012905210256576538, -0.03365476429462433, 0.026269063353538513, -0.03137737512588501, 0.021682651713490486, -0.01187722198665142, 0.012565183453261852, -0.011323689483106136, 0.004254291299730539, 0.006298406980931759, 0.013806677423417568, -0.03745041415095329, 0.010801787488162518, -0.004384766798466444, -0.025003844872117043, -0.0412776954472065, 0.03979106619954109, -0.022283630445599556, -0.022631565108895302, -0.03922171890735626, 0.004649671725928783, -0.002775569213554263, -0.003044427838176489, -0.002271459437906742, -0.04674975946545601, -0.053075842559337616, -0.031187592074275017, 0.0019442823249846697, -0.01714368723332882, 0.014795128256082535, 0.003684943774715066, 0.019879717379808426, -0.0026470706798136234, 0.01391738373786211, -0.01419415045529604, 0.01215398870408535, -0.05582768842577934, 0.01717531681060791, -0.03615356981754303, 0.010762250050902367, 0.01246238499879837, 0.012565183453261852, -0.018234936520457268, 0.019721565768122673, -0.023390693590044975, -0.03672291710972786, -0.03219976648688316, 0.0016981580993160605, -0.03798813372850418, 0.010651543736457825, 0.014486731961369514, -0.013435020111501217, 0.001800956903025508, -0.028008734807372093, 0.01663760095834732, -0.012422846630215645, 0.03205743059515953, 0.007872020825743675, -0.02715471386909485, -0.011260428465902805, -0.04368160665035248, -0.042289867997169495, -0.023248357698321342, -0.008896054700016975, 0.005792320240288973, 0.0003464519395492971, -0.030665690079331398, 0.010018935427069664, -0.018219120800495148, 0.032927267253398895, 0.02065466344356537, 0.0075517622753977776, -0.053645189851522446, -0.006369575392454863, 0.05965496972203255, 0.005313910078257322, -0.016076160594820976, -0.013094993308186531, 0.03735552355647087, -0.022093847393989563, -0.017048794776201248, -0.013427112251520157, -0.018551239743828773, 0.00952866394072771, -0.011948390863835812, -0.003101757960394025, 0.025051292032003403, -0.024655910208821297, -0.003951825201511383, 0.03504650294780731, -0.047603778541088104, 0.002158776158466935, -0.02663281187415123, -0.003795650089159608, -0.005191342439502478, 0.02851482294499874, 0.002949536545202136, -0.014099258929491043, 0.01361689530313015, 0.0012375401565805078, -0.025177812203764915, 0.009924043901264668, -0.02141379378736019, -0.020227652043104172, -0.0159575454890728, -0.0021014458034187555, 0.006942876614630222, -0.02726542018353939, -0.005262510851025581, 0.01591010019183159, 0.020433250814676285, -0.023564660921692848, 0.011695346795022488, 0.009093745611608028, -0.035331178456544876, 0.010588282719254494, 0.008136925287544727, 0.03555259108543396, 0.01780792511999607, -0.028245963156223297, -0.0016665277071297169, -0.01512724719941616, -0.004788054618984461, 0.0007082248339429498, 0.0027241697534918785, -0.025905312970280647, 0.03602704778313637, -0.004191030282527208, -0.007528039626777172, 0.0012424823362380266, -0.02970096282660961, -0.006855892948806286, -0.01391738373786211, 0.017317654564976692, -0.03393943980336189, -0.021587761119008064, 0.017618143931031227, -0.011402766220271587, 0.016400372609496117, 0.011734885163605213, 0.005381125025451183, -0.04928019270300865, 0.014581622555851936, -0.018725207075476646, -0.010841325856745243, 0.00823972374200821, -0.018535425886511803, -0.003062219824641943, -0.006867754738777876, 0.00196998193860054, 0.0039043796714395285, -0.00273405434563756, -0.024592651054263115, -0.01953178271651268, -0.047097694128751755, 0.07287648320198059, 0.0011159606510773301, -0.020575586706399918, 0.0018750907620415092, -0.01276287343353033, 0.018219120800495148, -0.009497033432126045, 0.02195150963962078, 0.037007588893175125, 0.009172821417450905, -0.0008634115802124143, 0.016171051189303398, -0.03501487150788307, 0.004301737062633038, 0.012233064509928226, 0.0044757043942809105, 0.0019027673406526446, 0.005760689731687307, 0.002467172686010599, -0.010698989033699036, -0.0027992920950055122, 0.035868894308805466, 0.004451981279999018, -0.03072895109653473, -0.0236437376588583, -0.00740547152236104, -0.0050331903621554375, 0.0065988958813250065, 0.01951596885919571, -0.020227652043104172, 0.009077929891645908, 0.00370668969117105, 0.015751948580145836, -0.0021231917198747396, -0.007460825145244598, 0.025889497250318527, 0.020480696111917496, 0.010627820156514645, 0.029400473460555077, 0.024418683722615242, 0.001921547926031053, -0.007919466122984886, -0.040455304086208344, -0.010865048505365849, -0.03555259108543396, 0.016171051189303398, 0.007777129299938679, 0.03248443827033043, -0.022299444302916527, 0.028309224173426628, 0.012928933836519718, 0.007650607265532017, 0.019689936190843582, 0.0076150232926011086, 0.006958691868931055, -0.00784039031714201, -0.033464983105659485, -0.021603574976325035, -0.021445423364639282, -0.0018395065562799573, -0.004337321035563946, -0.00855602789670229, -0.02361210808157921, -0.014115073718130589, -0.008026218973100185, -0.03381291776895523, 0.009243989363312721, 0.0023722813930362463, 0.014423470944166183, 0.01602080650627613, -0.022331075742840767, -0.007804805878549814, 0.04637019336223602, 0.01451836246997118, 0.011355319991707802, -0.007520131766796112, -0.004823638591915369, -0.03839932754635811, -0.008690457791090012, 0.014652791433036327, 0.04754051938652992, 0.0002881333348341286, 0.007484547793865204, 0.012051189318299294, 0.04102465137839317, -0.016906458884477615, -0.005436478182673454, -0.012897303327918053, 0.05206367000937462, 0.005582768935710192, 0.014779312536120415, 0.015467274934053421, 0.013577356934547424, 0.048236388713121414, 0.017966076731681824, -0.03212068974971771, 0.016226405277848244, -0.016700860112905502, -0.012588906101882458, -0.03849421814084053, -0.018741022795438766, -0.0036888974718749523, 0.007524085696786642, -0.0026470706798136234, -0.0273128654807806, 0.010872956365346909, 0.007496409118175507, -0.0007754394900985062, 0.04181541129946709, -0.01885172910988331, -0.008022264577448368, -0.013110808096826077, -0.007800851948559284, 0.04848943278193474, -0.032895635813474655, 0.014360209926962852, -0.014581622555851936, -0.049343451857566833, 0.0038035577163100243, 0.014795128256082535, -0.0037323893047869205, 0.04621203988790512, -0.009686815552413464, -0.01665341481566429, 0.018487978726625443, 0.03963291272521019, -0.03327520191669464, 0.016874827444553375, 0.012905210256576538, -0.0010724688181653619, 0.025114553049206734, 0.015261677093803883, 0.04504171386361122, 0.0015311099123209715, 0.014494638890028, 0.035267915576696396, -0.003797627054154873, -0.025842051953077316, 0.007943188771605492, -0.005076682195067406, -0.00489085353910923, -0.020385805517435074, 0.013419205322861671, -0.00012985769717488438, -0.020986782386898994, -0.022900423035025597, -0.03548932820558548, -0.017665589228272438, 0.027059823274612427, 0.018661946058273315, 0.0449468232691288, -0.028562268242239952, 0.044124431908130646, -0.013174069114029408, 0.0022358752321451902, -0.032247211784124374, -0.000688950065523386, 0.022852977737784386, -0.02843574620783329, 0.01387784630060196, -0.013174069114029408, -0.009323066100478172, -0.013387574814260006, 0.022947868332266808, 0.0045271036215126514, 0.04561106488108635, 0.018582871183753014, -0.0006583080976270139, 0.02497221529483795, -0.02019602246582508, -0.025161998346447945, 0.015095616690814495, 0.003779835067689419, 0.003764019813388586, 0.03387617692351341, 0.0034595769830048084, 0.02541504055261612, -0.01946852169930935, 0.0056578912772238255, 0.011015293188393116, -0.002109353430569172, -0.01886754482984543, 0.004254291299730539, 0.05585931986570358, 0.00799458846449852, -0.01847216486930847, 0.0377667210996151, 0.030365200713276863, 0.026221616193652153, 0.0026470706798136234, -0.03072895109653473, -0.028530636802315712, 0.007622930686920881, -0.014937465079128742, 0.01099947839975357, -0.03012797422707081, -0.003449692390859127, -0.007694099098443985, 0.01777629554271698, -0.012573091313242912, 0.01826656609773636, -0.012818226590752602, 0.019310370087623596, 0.047097694128751755, 0.0001424604415660724, 0.008793256245553493, 0.005313910078257322, 0.011608363129198551, -0.02421308495104313, -0.006409113295376301, 0.005262510851025581, -0.025826236233115196, 0.014486731961369514, 0.02062303200364113, -0.017032980918884277, 0.03182020038366318, -0.012573091313242912, -0.018203305080533028, 0.020385805517435074, -0.010952032171189785, -0.02309020608663559, -0.014692328870296478, 0.010058472864329815, -0.006243053823709488, -0.02539922669529915, 0.006788678467273712, 0.0026253247633576393, -0.03087128885090351, -0.002981166820973158, -0.006883569993078709, 0.009125376120209694, 0.001210851944051683, -0.016716675832867622, 0.045263130217790604, -0.02301112934947014, -0.03729226440191269, -0.022821346297860146, 0.025589007884263992, -0.011102276854217052, 0.006847985554486513, -7.598714000778273e-05, -0.00185136788059026, 0.017649773508310318, -0.009805429726839066, 0.024497758597135544, -0.00017792110156733543, 0.011726977303624153, -0.024023301899433136, -0.04023389145731926, -0.00041070120641961694, 0.03767182677984238, 0.01652689278125763, 0.031108517199754715, -0.010169179178774357, 0.009750076569616795, -0.008595566265285015, -0.015111432410776615, 0.011007385328412056, -0.014708144590258598, -0.02422890067100525, -0.008342523127794266, 0.006796586327254772, 0.03903193771839142, 0.012992193922400475, -0.0032638637349009514, -0.008144833147525787, 0.012414938770234585, 0.012509830296039581, -0.005661844741553068, 0.0012148057576268911, -0.018804283812642097, -0.03767182677984238, -0.006685879547148943, 0.016273850575089455, -0.001252366928383708, -0.014075536280870438, -0.01714368723332882, -0.03390780836343765, -0.017507435753941536, -0.0018770676106214523, 0.01592591591179371, 0.020322544500231743, 0.008484859950840473, -0.010485483333468437, 0.024750802665948868, -0.00952866394072771, -0.006919153966009617, 0.023580476641654968, 0.0024375191424041986, 0.00783248245716095, -0.012090727686882019, 0.029985636472702026, 0.03912682831287384, -0.019879717379808426, 0.010256162844598293, 0.026205802336335182, 0.0124070318415761, -0.005796274170279503, -0.013822493143379688, 0.006171885412186384, -0.011845591478049755, -0.036501504480838776, -0.018614500761032104, -0.017301838845014572, -0.031567156314849854, -0.019879717379808426, 0.017507435753941536, -0.009568201377987862, 0.03270585089921951, 0.01575985550880432, -0.023279987275600433, -0.01665341481566429, 0.006405159831047058, 0.00023401567887049168, -0.010445945896208286, 0.0015923938481137156, -0.04899551719427109, 0.022331075742840767, 0.009497033432126045, -0.007812713272869587, 0.0017643842147663236, -0.03564748167991638, -0.02139797806739807, 0.019848087802529335, -0.01660596951842308, -0.0037916963919997215, -0.016969719901680946, -0.016012899577617645, -0.04387139156460762, -0.009046299383044243, -0.030602429062128067, 0.002908021677285433, -0.009259805083274841, -0.0033449167385697365, -0.007006137631833553, 0.012620536610484123, -0.01782374083995819, 0.031630419194698334, -0.006108624394983053, -0.025067105889320374, 0.023343248292803764, -0.026743518188595772, -0.022726455703377724, -0.026221616193652153, -0.03669128566980362, 0.003898449009284377, 0.008057849481701851, -0.00317885703407228, -0.029906559735536575, -0.0031966492533683777, 0.01419415045529604, -0.018788468092679977, -0.0231376513838768, 0.020543957129120827, -0.02547830156981945, -0.02242596633732319, -0.004372905474156141, 0.0021409839391708374, 0.017665589228272438, -0.03280074521899223, 0.0014095305232331157, -0.04858432337641716, -0.02307439036667347, 0.002913952339440584, -0.015886377543210983, -0.013110808096826077, -0.01709624193608761, -0.007267088629305363, 0.009987304918467999, -0.00825553946197033, 0.015562165528535843, 0.00042725776438601315, 0.0023703044280409813, 0.002467172686010599, 0.0499444305896759, -0.03488835319876671, -0.01900988072156906, -0.00017977444804273546, -0.006460512988269329, -0.01182977668941021, 0.022805532440543175, -0.03830443695187569, -0.028103627264499664, 0.05225345119833946, 0.0024394961073994637, -0.03621682897210121, 0.004578502848744392, -0.00030345431878231466, 0.029463734477758408, 0.015886377543210983, 0.019120587036013603, 0.02611090987920761, 0.026854224503040314, -0.016985533758997917, 0.027676615864038467, -0.03390780836343765, -0.021682651713490486, -0.03077639639377594, 0.010849233716726303, -0.01188512984663248, -0.02775569260120392, 0.04203682765364647, -0.002904067747294903, 0.01961085945367813, 0.0277398768812418, 0.05497366562485695, -0.03868400305509567, -0.0010181041434407234, 0.03801976144313812, -0.0195475984364748, 0.028752049431204796, -0.013893661089241505, 0.011766515672206879, 0.013442927971482277, -0.02078118547797203, -0.010319423861801624, 0.0029613978695124388, -0.00887233205139637, -0.04383976012468338, 0.02718634530901909, 0.03196253627538681, 0.008729995228350163, 0.038209546357393265, -0.009615647606551647, -0.0006795597728341818, -0.015609611757099628, -0.0012869626516476274, -0.009536570869386196, -0.01004265807569027, -0.02729705162346363, -0.011655809357762337, -0.006417021155357361, -0.010888771153986454, 0.00013714752276428044, -0.001360108028165996, 0.029179060831665993, -0.007911558263003826, -0.0065435427241027355, 0.017554882913827896], "id": 19}, {"title": "Wenceslaus III of Bohemia", "text": "Wenceslaus III (Czech: V\u00e1clav III., Hungarian: Vencel, Polish: Wac\u0142aw, Slovak: V\u00e1clav; 6 October 1289 \u2013 4 August 1306) was King of Hungary between 1301 and 1305, and King of Bohemia and Poland from 1305. He was the son of Wenceslaus II, King of Bohemia, who was later also crowned king of Poland, and Judith of Habsburg. Still a child, Wenceslaus was betrothed to Elizabeth, the sole daughter of Andrew III of Hungary.", "vector": [0.0009226285619661212, -0.005976993124932051, -0.01476205699145794, 0.03747594356536865, 0.04673995450139046, 0.0049010030925273895, 0.0018583789933472872, -0.05267101898789406, 0.01840992644429207, -0.01265600323677063, -0.0056587886065244675, 0.04482416808605194, -0.045244064182043076, 0.018974164500832558, 0.013948503881692886, 0.0277657900005579, -0.03545518219470978, 0.037370968610048294, -0.054481834173202515, 0.003365749027580023, -0.06015046313405037, 0.005055184476077557, -0.058470867574214935, 0.004914124961942434, 0.053327109664678574, -0.022307109087705612, 0.011101067066192627, 0.0201288852840662, -0.07731381058692932, 0.04532279446721077, 0.0002995467511937022, -0.0006741339457221329, 0.014276549220085144, -0.020325712859630585, -0.0012383725261315703, -0.07789117097854614, 0.047920916229486465, -0.03821076452732086, 0.0103793665766716, -0.005609581712633371, -0.008266751654446125, -0.016389163210988045, 0.0006847954355180264, -0.02275324985384941, 0.009060622192919254, -0.05358954891562462, 0.0009701952221803367, 0.01659911312162876, -0.010412170551717281, 0.004632005468010902, 0.008233947679400444, 0.012813465669751167, -0.01944654993712902, 0.03369685634970665, -0.011967107653617859, -0.05537411570549011, -0.01177684124559164, 0.02616492658853531, 0.0033624686766415834, 0.00317056174390018, -0.018685484305024147, -0.008457018062472343, -0.01419781893491745, 0.002995057264342904, 0.010392487980425358, -0.03157112002372742, -0.04736980050802231, -0.0032853777520358562, -0.010215343907475471, 0.007722196169197559, 0.048550765961408615, -0.01046465802937746, 0.0516737625002861, 0.027293402701616287, 0.0005150317447260022, 0.04177990183234215, -0.028080713003873825, 0.027293402701616287, -0.05631888657808304, -0.013305534608662128, 0.030468886718153954, -0.023251879960298538, -0.03346066176891327, -0.021401703357696533, -0.0063575259409844875, -0.08959584683179855, -0.005511167924851179, -0.04248848184943199, -0.010668046772480011, 0.0009669147548265755, -0.027634570375084877, -0.010143173858523369, -0.005370108410716057, -0.032358430325984955, -0.003598661394789815, -0.03535020723938942, 0.03553391247987747, -0.0005207725916989148, -0.05542660504579544, 0.023356854915618896, 0.012236105278134346, -0.0004592640034388751, 0.011822767555713654, 0.05537411570549011, 0.07841604948043823, 0.0026801335625350475, -0.06156761944293976, -0.028815535828471184, 0.033040765672922134, 0.009244328364729881, 0.02628302201628685, 0.014053478837013245, 0.01796378381550312, -0.015772437676787376, -0.009664226323366165, -0.017071498557925224, 0.022989444434642792, 0.03500903770327568, -0.005937627516686916, -0.010228465311229229, -0.0017156790709123015, 0.01977459527552128, 0.036347463726997375, -0.06193502992391586, 0.013686067424714565, -0.022084036841988564, -0.0031541595235466957, 0.040179040282964706, -0.023081297054886818, 0.003314901841804385, -0.0026653714012354612, -0.03681985288858414, -0.03619000315666199, 0.014460255391895771, -0.0068955207243561745, 0.029156703501939774, -0.03398553654551506, -0.005881859455257654, -0.003065587254241109, -0.009657666087150574, -0.01439464557915926, 0.040913861244916916, -0.023068174719810486, 0.0352189876139164, 0.03356563672423363, 0.021008048206567764, -0.014210940338671207, 0.019013529643416405, -0.01624482311308384, -0.010366244241595268, 0.020968681201338768, -0.02434099279344082, 0.008247069083154202, 0.02382924035191536, -0.018632996827363968, -0.008194581605494022, 0.013804163783788681, -0.019249722361564636, 0.01784568652510643, -0.013390826061367989, -0.009670787490904331, -0.0017944100545719266, 0.017071498557925224, 0.020680001005530357, 0.007000495679676533, -0.01825246401131153, -0.019971422851085663, 0.023094417527318, -0.028894266113638878, 0.01687467098236084, 0.0022848383523523808, -0.022031549364328384, -0.014000991359353065, -0.04010030999779701, -0.04736980050802231, 0.049574267119169235, -0.017084620893001556, 0.0011210961965844035, -0.014447133056819439, 0.033670611679553986, 0.009939785115420818, -0.03380183130502701, -0.0013130030129104853, 0.018265584483742714, -0.01049090176820755, -0.038630664348602295, 0.0067971074022352695, 0.011560331098735332, -0.05726366117596626, -0.0072694928385317326, 0.011796523816883564, 0.015772437676787376, 0.034589141607284546, -0.007157957646995783, -0.017937539145350456, -0.005324182100594044, 0.04293462261557579, 0.03957543522119522, -0.005589899141341448, 0.04080888628959656, -0.04298711195588112, -0.03482533246278763, 0.017819443717598915, 0.038919344544410706, 0.006993934512138367, 0.0699131041765213, -0.015549367293715477, 0.008443896658718586, -0.04408934339880943, -0.025115180760622025, 0.033775586634874344, 0.0032624145969748497, -0.014460255391895771, 0.03443167731165886, -0.0014499620301648974, -0.015037615783512592, 0.0394442155957222, 0.05610894039273262, -0.015090103261172771, 0.06067533418536186, 0.07531929761171341, -0.03506152704358101, -0.006223027128726244, -0.014919519424438477, -0.03878812491893768, 0.024262260645627975, 0.06665889173746109, 0.00869321171194315, -0.004297398962080479, 0.06062284857034683, -0.0009004854946397245, 0.03592756763100624, -0.002678493270650506, 0.01659911312162876, -0.05335335433483124, 0.003966072574257851, -0.0103793665766716, -0.02703096717596054, 0.017701346427202225, -0.027267159894108772, -0.0004760763549711555, 0.001955152489244938, -0.02617804892361164, -0.024603428319096565, 0.005760482978075743, 0.01624482311308384, 0.007138274610042572, -0.030888784676790237, 0.0012006473261862993, -0.04865574091672897, 0.06356213986873627, 0.03894558548927307, -0.0334344208240509, -0.015929900109767914, -0.0199058149009943, 0.016454773023724556, -0.030915027484297752, -0.008457018062472343, 0.015116347000002861, 0.019197234883904457, -0.0749518871307373, -0.04338076710700989, -0.03889309987425804, 0.006147576496005058, -0.021126143634319305, -0.020207615569233894, -0.04768472537398338, -0.019066017121076584, -0.0005170820513740182, -0.015759315341711044, 0.057788532227277756, 0.005734239239245653, -0.024196652695536613, -0.04988919198513031, -0.02029946818947792, 0.0018764215055853128, 0.017071498557925224, 0.04351198300719261, -0.058575842529535294, 0.020338835194706917, -0.021401703357696533, -0.02605995163321495, -0.040913861244916916, 0.034799087792634964, 0.011934302747249603, -0.013804163783788681, -0.01859363168478012, 0.03582259267568588, 0.05075523257255554, -0.007000495679676533, 0.016690965741872787, -0.030180206522345543, 0.004635286051779985, -0.0271359421312809, -0.026479849591851234, 0.017071498557925224, 0.011658744886517525, 0.008135533891618252, -0.04710736498236656, -0.013266168534755707, 0.042672187089920044, -0.01619233563542366, 0.03844695910811424, 0.014958884567022324, -0.025863124057650566, -0.0073351021856069565, -0.037029799073934555, -0.0004568036529235542, 0.035376448184251785, 0.01072053425014019, -0.009651104919612408, 0.030311424285173416, 0.03933924064040184, -0.001276917988434434, 0.0072301276959478855, -0.02256954461336136, -0.02029946818947792, 0.028815535828471184, -0.06277482956647873, 0.00843733549118042, -0.01502449344843626, 0.01842304691672325, 0.005065025761723518, -0.04185863211750984, 0.013896016404032707, -0.010280952788889408, -0.01989269256591797, -0.052198633551597595, -0.03598005324602127, 0.0009488722425885499, 0.020850585773587227, -0.03277832642197609, 0.013148072175681591, 0.03359188139438629, 0.068653404712677, -0.02445908822119236, 0.035665128380060196, 0.01578556001186371, 0.01320055965334177, -0.03582259267568588, -0.0026276460848748684, 0.07012305408716202, 0.01613985002040863, 0.015129468403756618, -0.005855616182088852, 0.015510001219809055, 0.01613985002040863, 0.045244064182043076, 0.04317081719636917, -0.005612862296402454, 0.00039262970676645637, 0.043538227677345276, 0.04849827662110329, 0.014302792958915234, 0.0010218623792752624, 0.032069750130176544, 0.0004588539304677397, 0.0184624120593071, 0.01733393594622612, -0.013167754746973515, 0.032069750130176544, 0.005383230280131102, 2.2642843759967946e-05, 0.0010948525741696358, 0.002158540766686201, -0.022254621610045433, 0.019354697316884995, 0.013449874706566334, 0.010989531874656677, 0.001784568652510643, 0.01245917659252882, 0.05096518248319626, 0.021913453936576843, 0.002429178450256586, -0.00510111078619957, -0.0013466277159750462, -0.008995013311505318, 0.028474368155002594, -0.040179040282964706, -0.006167259532958269, -0.054376859217882156, 0.022438326850533485, -0.05810345709323883, 0.0068955207243561745, -0.01283314824104309, -0.02188720926642418, -0.03193853050470352, -0.0173864234238863, 0.014184696599841118, -0.07232751697301865, -0.03283081576228142, 0.05999299883842468, 0.01859363168478012, 0.04784218594431877, -0.04776345565915108, -0.08261503279209137, 0.02234647423028946, 0.03739721328020096, 0.04513908922672272, 0.012196740135550499, -0.03842071443796158, -0.04406309872865677, 0.00011358582560205832, 0.022989444434642792, 0.028185687959194183, 0.005753921810537577, -0.006134455092251301, -0.03445792198181152, -0.028815535828471184, -0.023619292303919792, -0.019302209839224815, -0.006967690773308277, -0.06555665284395218, -0.0038545371498912573, -0.0064231352880597115, 0.007394150365144014, -0.0017288009403273463, -0.003510089125484228, 0.03096751496195793, -0.03130868449807167, -0.033670611679553986, -0.055794015526771545, 0.06503178179264069, 0.04083513095974922, -0.03238467127084732, 0.03524523228406906, -0.05946812778711319, 0.019761472940444946, 0.0355863980948925, 0.061830054968595505, 0.013804163783788681, -0.0026817736215889454, 0.0021060535218566656, 0.03267335146665573, -0.044509243220090866, 0.0029753746930509806, -0.048839446157217026, -0.021677261218428612, 0.020430687814950943, -0.008863795548677444, 0.026925992220640182, -0.048104625195264816, 0.04180614650249481, 0.04429929330945015, -0.07810112088918686, 0.01705837808549404, -0.06823351234197617, -0.02548259124159813, 0.01451274286955595, 0.0307313222438097, -0.023763632401823997, -0.01915786974132061, -0.01733393594622612, -0.02314690500497818, 0.02348807267844677, -0.04545401409268379, -0.053510818630456924, -0.0069020818918943405, -0.038683149963617325, 0.01470956951379776, -0.03529771789908409, 0.010392487980425358, -0.005872018169611692, -0.03078380972146988, -0.021847844123840332, -0.026768529787659645, 0.01502449344843626, -0.028815535828471184, -0.007289175875484943, -0.009224645793437958, 0.004960051272064447, 0.024498453363776207, -0.03472035750746727, -0.007741878740489483, -0.026296144351363182, 0.013148072175681591, -0.010608998127281666, -0.04634629935026169, 0.024157285690307617, -0.014027235098183155, 0.02766081504523754, 0.018619874492287636, -0.011068262159824371, 0.0216116514056921, 0.02981279417872429, -0.009585496038198471, 0.027188429608941078, -0.046556249260902405, -0.03141365945339203, 0.07820609956979752, -0.0436694473028183, 0.005133915226906538, 0.011927742511034012, -0.03424797207117081, 0.020916195586323738, 0.017806321382522583, -0.0032214089296758175, -0.01117323711514473, -0.005576777271926403, 0.006882399320602417, 0.014119087718427181, -0.020430687814950943, -0.0033788708969950676, -0.04020528122782707, 0.02565317414700985, -0.03821076452732086, 0.016782818362116814, -0.015982387587428093, 0.01011693011969328, -0.00467465166002512, 0.0064657810144126415, -0.022320229560136795, -0.024485332891345024, -0.04012655094265938, 0.04639878496527672, -0.01795066148042679, -0.019407184794545174, 0.02515454590320587, 0.007459759712219238, 0.01977459527552128, 0.031282439827919006, 0.0022979602217674255, -0.017005890607833862, 0.020784975960850716, 0.02651921473443508, 0.008896599523723125, 0.03626873344182968, 0.014434011653065681, -0.0013015213189646602, -0.017740711569786072, -0.006777424365282059, -0.028028225526213646, -0.011809646151959896, 0.006547792349010706, -0.028264418244361877, -0.021992184221744537, -0.003592100692912936, -0.008174899034202099, -0.002320923376828432, -0.01419781893491745, -0.005839213728904724, -0.01383040752261877, 0.008575115352869034, 0.02525952085852623, -0.046503759920597076, -0.00262928637675941, -0.033723101019859314, 0.0038250130601227283, -0.020207615569233894, -0.04083513095974922, -0.032017260789871216, -0.05999299883842468, 0.008279873989522457, 0.030547617003321648, 0.013213681057095528, 0.026807894930243492, 0.00016781588783487678, -0.00021856045350432396, 0.012846270576119423, -0.04031025618314743, 0.050151627510786057, -0.0012834788067266345, 0.010333440266549587, -0.00011850651208078489, -0.007525368593633175, 0.02970781922340393, -0.0010620480170473456, 0.06078030914068222, -0.010687729343771935, -0.019748352468013763, 0.009893858805298805, -0.004435177892446518, -0.03511401265859604, -0.002270076423883438, -0.03721350431442261, 0.0003768425085581839, 0.059888023883104324, 0.001974835293367505, 0.03713477402925491, 0.028658073395490646, -0.003414955921471119, -0.010189100168645382, 0.030600104480981827, 0.04340700805187225, -0.041543710976839066, 0.031203707680106163, -0.05099142715334892, -0.03786959871649742, -0.01159969624131918, 0.026427362114191055, -0.001626286655664444, 0.0322534553706646, -0.00041907839477062225, 0.03807954490184784, 0.07159269601106644, 0.007249810267239809, 0.010576194152235985, -0.01619233563542366, -0.014565229415893555, 0.04873447120189667, -0.04293462261557579, 0.0066855717450380325, 0.003972633741796017, 0.0054357172921299934, -0.004287557676434517, -0.03311949595808983, -0.00929681584239006, 0.0034247972071170807, -0.0088047469034791, -0.004205545876175165, -0.02314690500497818, -0.005954029504209757, -0.015549367293715477, 0.00801087636500597, 0.02205779403448105, 0.0022487533278763294, 0.027188429608941078, -0.004494226071983576, 0.035376448184251785, -0.031229952350258827, -0.02981279417872429, 0.015641219913959503, -0.0017041974933817983, 0.008109290152788162, 0.037265993654727936, -0.014932640828192234, -0.027345890179276466, -0.013220242224633694, 0.011251968331634998, -0.005783446133136749, -0.054376859217882156, -0.035087767988443375, 0.02737213484942913, -0.006518268492072821, -0.004258033353835344, -0.012072082608938217, 0.0018715007463470101, -0.01562809757888317, 0.01978771761059761, -0.027057209983468056, -0.015562488697469234, 0.02674228698015213, -0.019538402557373047, -0.021362336352467537, -0.015614976175129414, 0.016887793317437172, 0.0066396454349160194, 0.018856067210435867, -0.0054422784596681595, 0.00591466436162591, 0.010097247548401356, 0.029917769134044647, -0.004185863304883242, -0.002591561060398817, -0.004923966247588396, -0.005507887341082096, 0.010071003809571266, 0.012446054257452488, -0.009224645793437958, -0.017478276044130325, 0.000869321171194315, -0.020955560728907585, 0.005035501904785633, -0.005078147631138563, -0.01711086370050907, -0.008371726609766483, -0.005311060231178999, -0.03660990297794342, 0.019302209839224815, -0.018908554688096046, 0.02205779403448105, 0.002150339772924781, 0.01476205699145794, -0.02834315039217472, 0.03821076452732086, 0.0061377352103590965, -0.02640111930668354, 0.012524785473942757, -0.03141365945339203, 0.002025682246312499, 0.019144747406244278, 0.0019731950014829636, -0.00047812663251534104, 0.06099025905132294, 0.0192759670317173, 0.006065565161406994, 0.026479849591851234, 0.014643960632383823, -0.00022635154891759157, -0.006560914218425751, -0.009172158315777779, -0.007964950054883957, 0.014604595489799976, -0.0005461961263790727, 0.0029261677991598845, 0.01772759109735489, 0.01659911312162876, -0.00695456936955452, -0.045532744377851486, 0.02897299826145172, -0.01328585110604763, 0.019170992076396942, -0.011763718910515308, 0.013922260142862797, -0.008253630250692368, 0.004923966247588396, 0.00018042513693217188, -0.01194086391478777, -0.0058785793371498585, 0.013351460918784142, -0.02662418968975544, -0.015444392338395119, -0.025443226099014282, -0.02297632209956646, 0.002294679870828986, 0.00634112348780036, 0.024669038131833076, -0.022451449185609818, -0.013633579947054386, -0.013751676306128502, 0.0321747250854969, 0.01012349035590887, 0.02965533174574375, -0.023343732580542564, -0.010031637735664845, -0.03582259267568588, 0.029576601460576057, 0.046844929456710815, -0.0016148050781339407, 0.016271067783236504, -0.05070274695754051, 0.046949904412031174, 0.016520382836461067, 0.006869277451187372, 0.021021168678998947, -0.028763048350811005, 0.007643464952707291, 0.004399092867970467, 0.055059194564819336, 0.006948008202016354, -0.019813960418105125, 0.006285355892032385, 0.013010293245315552, 0.019407184794545174, -0.032017260789871216, -0.015523123554885387, 0.01277410052716732, -0.022267743945121765, 0.010635241866111755, 0.033381931483745575, 0.01135038211941719, -0.01921035721898079, -0.03039015457034111, -0.06193502992391586, 0.013646701350808144, -0.0015910216607153416, 0.001946951262652874, 0.003414955921471119, 0.015929900109767914, -0.007131713908165693, -0.04671370983123779, 0.007295736577361822, 0.012491980567574501, -0.0103793665766716, 0.05763107165694237, -0.036058783531188965, -0.003706916468217969, -0.008286435157060623, -0.016690965741872787, 0.01331209484487772, 0.002005999442189932, -0.006675730459392071, 0.027109697461128235, 0.018777336925268173, 0.03923426568508148, -0.06345716118812561, -0.005498046055436134, -0.007105470169335604, 0.04516533389687538, -0.049915436655282974, -0.06655391305685043, -0.041071321815252304, -0.004730419255793095, -0.041832391172647476, -0.04288213700056076, 0.027162184938788414, 0.030626347288489342, -0.029839038848876953, 0.005386510863900185, 0.034641627222299576, -0.05726366117596626, -0.005465241614729166, -0.031177464872598648, -0.016835305839776993, 0.03296203166246414, 0.003969353158026934, 0.012728173285722733, -0.0018452571239322424, 0.018659239634871483, -0.024721525609493256, 0.027582082897424698, -0.043249547481536865, -0.01417157519608736, -0.03786959871649742, 0.026387996971607208, -0.006301758345216513, -0.009342742152512074, -0.03616375848650932, 0.01847553439438343, -0.012505102902650833, -0.020391320809721947, 0.03723974898457527, 0.0033952731173485518, -0.024262260645627975, -0.024905230849981308, 0.022084036841988564, -0.024826500564813614, 0.004973173141479492, -0.001381072448566556, 0.003444480011239648, 5.2282284741522744e-05, 0.038341984152793884, -0.003214847994968295, 0.025075813755393028, -0.01989269256591797, -0.015260687097907066, 0.015457513742148876, 0.017255203798413277, 0.01596926525235176, 0.006459220312535763, 0.011553769931197166, 0.022438326850533485, -0.023356854915618896, 0.005970431957393885, -0.032988276332616806, -0.0063115996308624744, 0.033040765672922134, -0.027582082897424698, 0.014972005970776081, 0.017714468762278557, -0.047527264803647995, -0.004120253957808018, -0.027529597282409668, -0.00029995679506100714, -0.00940835103392601, -0.003601941978558898, -0.048314571380615234, -0.03044264204800129, -0.0013909138506278396, -0.033329445868730545, 0.0028425161726772785, -0.006157418247312307, -0.0004559835360851139, 0.03317198157310486, -0.017937539145350456, 0.038971830159425735, 0.03301452100276947, -0.016047995537519455, -0.015523123554885387, -0.05689624696969986, -0.019512159749865532, 0.029287921264767647, -0.007604099810123444, -0.02394733764231205, -0.00618366152048111, -0.002998337848111987, 0.03403802216053009, 0.025272641330957413, 0.030993759632110596, 0.0038840612396597862, 0.015457513742148876, 0.027949495241045952, -0.00491740508005023, -0.01259695552289486, -0.023304367437958717, -0.011429112404584885, -0.013961625285446644, 0.03716101869940758, -0.008345482870936394, 0.02907797135412693, 0.0022782774176448584, -0.015562488697469234, 0.023107539862394333, 0.013403947465121746, 0.028553098440170288, -0.02502332627773285, 0.02178223617374897, 0.034641627222299576, 0.034064266830682755, 0.012426371686160564, 0.05012538656592369, 0.00674461992457509, 0.008174899034202099, -0.031282439827919006, 0.04679244011640549, -0.015116347000002861, -0.049626756459474564, -0.0020863707177340984, -0.019341574981808662, 0.0031016722787171602, 0.005908103194087744, 0.006288636475801468, 0.00021630513947457075, -0.006475622300058603, -0.0035560154356062412, -0.028421880677342415, 0.042619697749614716, 0.016809063032269478, 0.03238467127084732, -0.002274997066706419, -0.024026067927479744, 0.004658249206840992, -9.856748511083424e-05, -0.04946929216384888, -0.003785647451877594, 0.008174899034202099, -0.026269901543855667, -0.007151396479457617, -0.037554673850536346, -0.0011924462160095572, 0.00525857275351882, -0.018095001578330994, 0.015286929905414581, -0.0036150638479739428, -0.003979194443672895, 0.00433348398655653, -0.012649443000555038, -0.05348457396030426, 0.025850001722574234, -0.024774013087153435, 0.06660640239715576, -0.003011459717527032, 0.009769201278686523, -0.021060535684227943, 0.061147719621658325, 0.002388172782957554, -0.05862833186984062, 0.002201186725869775, -0.023304367437958717, 0.016848428174853325, -0.008699771948158741, -0.02554820105433464, 0.02646672911942005, 7.258011464728042e-05, 0.01687467098236084, -0.01728144846856594, -0.04167492687702179, 0.002457062480971217, 0.016113605350255966, 0.00708578759804368, 0.04666122421622276, -0.005343864671885967, -0.003680672962218523, -0.014315915293991566, -0.01830495148897171, 0.023501195013523102, -0.009664226323366165, -0.04083513095974922, -0.0070136175490915775, 0.02565317414700985, 0.02918294630944729, -0.004126815125346184, 0.010766460560262203, -0.00564238615334034, -0.04647751525044441, -0.013751676306128502, 0.021965941414237022, -0.03624248877167702, 0.03849944472312927, 0.01932845264673233, -1.4326371456263587e-05, 0.05474426969885826, 0.03096751496195793, 0.02960284613072872, -0.0055472529493272305, 0.003165641101077199, -0.03162360563874245, 0.030285179615020752, 0.035271476954221725, 0.021191753447055817, -0.017491398379206657, 0.0016992768505588174, -0.04214731231331825, 0.016389163210988045, 0.07133025676012039, 0.00812241155654192, -0.003759403945878148, 0.007492564152926207, 0.005619422998279333, 0.0034576018806546926, 0.04639878496527672, -0.021427946165204048, 0.009559252299368382, -0.030862540006637573, -0.020680001005530357, 0.011330698616802692, -0.02810695767402649, -2.2873500711284578e-05, 0.0033444261644035578, -0.02634863182902336, -0.0028129920829087496, -0.01541814859956503, -0.006875838153064251, -0.019066017121076584, 0.060465388000011444, 0.02121799625456333, -0.010792704299092293, 0.015588732436299324, -0.010589315555989742, -0.01939406245946884, -0.020509418100118637, -0.026545459404587746, -0.0016008630627766252, 0.01439464557915926, 0.0008545590681023896, -0.029576601460576057, -0.03710853308439255, -0.023120662197470665, 0.014538985677063465, 0.059153202921152115, -0.011055140756070614, -0.01743891090154648, -0.005209365859627724, 0.06135766953229904, -0.0186461191624403, 0.03626873344182968, 0.005452119745314121, 5.9560799854807556e-05, 0.020509418100118637, -0.013298973441123962, 0.04254096746444702, -0.023802997544407845, -0.00843733549118042, 0.0037134774029254913, -0.030075231567025185, -0.0051175132393836975, -0.0003430127981118858, 0.03130868449807167, -0.007413832936435938, 0.0222414992749691, 0.03482533246278763, -0.019000407308340073, -0.04282964766025543, -0.026899749413132668, 0.015483757480978966, -0.031439900398254395, -0.0037954889703541994, 0.011704671196639538, -0.0008479981916025281, -0.035612642765045166, 0.02029946818947792, 0.0013154633343219757, -0.017176473513245583, -0.020627515390515327, -0.013062780722975731, -0.011724353767931461, -0.0028966437093913555, -0.024564063176512718, -0.02844812348484993, -0.02931416593492031, 0.007000495679676533, -0.004773064982146025, 0.010018516331911087, -0.04156995192170143, 0.02120487578213215, 0.011547208763659, 0.0091196708381176, 0.019932057708501816, -0.019695864990353584, -0.00209621200338006, -0.017766956239938736, 0.004707456100732088, -0.00803712010383606, 0.03813203424215317, 0.0015959424199536443, -0.011370064690709114, -0.013069340959191322, 0.007715635001659393, 0.01687467098236084, -0.005206085275858641, 0.019485915079712868, -0.02868431806564331, 0.025850001722574234, -0.03369685634970665, -0.0035789788234978914, 0.014525864273309708, 0.0070070563815534115, 0.019984545186161995, 0.015496879816055298, 0.016782818362116814, -0.001963353715837002, -0.0194990374147892, -0.0017730870749801397, 0.03130868449807167, -0.021231118589639664, -0.021979063749313354, -0.047920916229486465, 0.0009480520966462791, -0.008424214087426662, -0.015995509922504425, 0.0022684361319988966, 0.02302880957722664, -0.016218580305576324, -0.0326208658516407, 0.02258266694843769, 0.007328541483730078, 0.013699188828468323, 0.010799264535307884, 0.0008635803242214024, 0.0194990374147892, 0.003998877480626106, 0.01671721041202545, 0.005868738051503897, 0.0072301276959478855, -0.04595264419913292, 0.0029884965624660254, 0.027345890179276466, 2.8370828658808023e-05, 0.005448839161545038, 0.001776367542333901, -0.020037032663822174, 0.006783985532820225, 0.03876188024878502, -0.012951244600117207, 0.008863795548677444, 0.010707411915063858, -0.016166092827916145, -0.004438458476215601, 0.0016164452536031604, -0.024367235600948334, 0.01114699337631464, -0.00015079851436894387, -0.0072301276959478855, 0.002532512880861759, 0.004395812749862671, 0.02913045883178711, -0.007866536267101765, -0.020732488483190536, -0.02548259124159813, -0.003552735084667802, -0.014289671555161476, 0.013364582322537899, 0.010530267842113972, -0.010425292886793613, 0.00986105389893055, -0.02333061210811138, 0.0031557998154312372, -0.009099988266825676, -0.03660990297794342, 0.008069925010204315, -0.043984368443489075, -0.002258594846352935, 0.05343208461999893, -0.021309848874807358, 0.007820609956979752, 0.016507260501384735, 0.002294679870828986, -0.0035461741499602795, 0.005885140039026737, -0.010713973082602024, -0.01470956951379776, 0.027949495241045952, 0.0011694829445332289, -0.029392896220088005, -0.0184624120593071, 0.01961713284254074, -0.020312590524554253, 0.005603021010756493, 0.011606257408857346, 0.0013367863139137626, -0.009073744527995586, 0.01985332742333412, -0.024209773167967796, -0.04010030999779701, 0.011678427457809448, 0.023343732580542564, -0.015129468403756618, 0.02241208404302597, 0.03716101869940758, 0.04133376106619835, -0.014538985677063465, 0.01043185405433178, 0.005786726251244545, 0.011304454877972603, 0.02897299826145172, 0.00021958560682833195, 0.00288680219091475, -0.04676619544625282, 0.005750641226768494, 0.041753657162189484, -0.010189100168645382, 0.023763632401823997, -0.03923426568508148, -0.01020222157239914, 0.0005388151039369404, -0.008043681271374226, -0.01955152489244938, -0.0012514943955466151, 0.01842304691672325, -0.006816789973527193, 0.015063859522342682, -0.01268224697560072, -0.010300635360181332, 0.0009414912201464176, -0.005652227438986301, -0.0034838453866541386, -0.014604595489799976, 0.018396804109215736, 0.011245407164096832, 0.01268224697560072, -0.006039321422576904, -0.01938094012439251, -0.03301452100276947, -0.02633550949394703, 0.0470811203122139, -0.00419242400676012, -0.008030558936297894, -0.008627601899206638, 0.013298973441123962, -0.011921181343495846, -0.000769267207942903, 0.010504024103283882, -0.019512159749865532, -0.00909342709928751, -0.008653845638036728, -0.013377704657614231, -0.02566629648208618, 0.03650492802262306, -0.0047861868515610695, 0.03277832642197609, -0.01248542033135891, -0.018514899536967278, 0.013672945089638233, 0.01789817400276661, -0.008922843262553215, 0.016953403130173683, -0.023816118016839027, -0.015943022444844246, 0.0182393416762352, -0.01812124438583851, 0.009054061956703663, 0.053117163479328156, -0.010976409539580345, -0.020732488483190536, -0.01757012866437435, -0.00604588259011507, -0.010025077499449253, -0.02047005295753479, -0.012669125571846962, -0.016900915652513504, 0.02195281907916069, -0.014040356501936913, -0.038237009197473526, 0.030757566913962364, -0.006961130071431398, -0.014158452861011028, 0.010654924437403679, 0.01757012866437435, 0.014355280436575413, -0.026729164645075798, -0.03325071185827255, -0.03004898689687252, 0.017543883994221687, 0.008207703940570354, -0.017202718183398247, -0.04503411427140236, -0.04647751525044441, 0.015313173644244671, -0.015103224664926529, 0.010340000502765179, 0.0008996653486974537, -0.017360178753733635, -0.028264418244361877, -0.03067883476614952, -0.001376971835270524, 0.012984049506485462, -0.03290954604744911, 0.0004691053763963282, -0.013371143490076065, -0.017294570803642273, -0.015405027195811272, -0.030652591958642006, 0.008581675589084625, 0.01704525575041771, -0.020653758198022842, -0.006508427206426859, -0.011055140756070614, -0.006551072932779789, -0.0006950468523427844, 0.007348224055022001, -0.015378783456981182, 0.013777920044958591, 0.03461538255214691, 0.03162360563874245, 0.00995290745049715, 0.0031000319868326187, 0.012190178968012333, -0.010399049147963524, 0.023448707535862923, -0.010825508274137974, 0.04010030999779701, 0.021874088793992996, -0.040861375629901886, 0.04054645076394081, -0.009821688756346703, -0.010143173858523369, 0.01881670206785202, 0.0062033445574343204, -0.022372717037796974, 0.019485915079712868, 0.0006499405717477202, -0.04482416808605194, 0.004999416880309582, -0.014315915293991566, -0.0036117832642048597, 0.027293402701616287, -0.04886569082736969, -0.027739545330405235, -0.004317081533372402, -0.01225578784942627, 0.009014695882797241, -0.02326500229537487, -0.031676094979047775, 0.059730563312768936, -0.003182043321430683, 0.007886218838393688, -0.002324203960597515, 0.019708987325429916, -0.009828249923884869, 0.001984676579013467, 0.03330320119857788, 0.011658744886517525, 0.006518268492072821, 0.0018403364811092615, -0.016677843406796455, 0.0005425055860541761, -0.0033378652296960354, -0.013049658387899399, 0.01451274286955595, 0.0051207938231527805, -0.0338805615901947, 0.024498453363776207, -6.381513958331198e-05, 0.0036085029132664204, -0.024026067927479744, -0.0016033233841881156, -0.015588732436299324, 0.0027194989379495382, 0.0014729253016412258, 0.00044450192945078015, -0.022333351895213127, 0.0037823671009391546, 0.007761561777442694, -0.0024505015462636948, 0.008201142773032188, -0.019604012370109558, -0.033828072249889374, 0.02121799625456333, -0.013423630967736244, 0.0032214089296758175, 0.0057637630961835384, -0.004153058864176273, -0.005671910475939512, 0.019945180043578148, 0.001884622615762055, 0.02536449395120144, 0.013935381546616554, 0.002919606864452362, -0.016323555260896683, 0.031229952350258827, -0.013462996110320091, 0.04590015485882759, 0.018265584483742714, -0.003444480011239648, -0.01767510361969471, -0.012308275327086449, 0.012085204012691975, -0.022595789283514023, -0.015090103261172771, -0.02863183058798313, -0.0190922599285841, 0.010497462935745716, -0.01003819890320301, -0.027897007763385773, -0.05731614679098129, -0.005625984165817499, -0.015811802819371223, 0.012610076926648617, 0.04973173141479492, 0.03393304720520973, -0.017937539145350456, 0.02468216046690941, -0.021454188972711563, -0.00604588259011507, -0.021073656156659126, 0.017084620893001556, 0.006508427206426859, 0.0011826048139482737, -0.0019108662381768227, 0.010910800658166409, -0.008916282095015049, -0.00553085096180439, 0.01562809757888317, 0.00692832563072443, -0.03083629719913006, -0.006101650185883045, 0.001933829509653151, -0.042803406715393066, 0.01869860664010048, 0.028264418244361877, 0.023684900254011154, 0.007577856071293354, 0.057053711265325546, 0.01539190486073494, 0.02531200647354126, -0.020653758198022842, -0.002324203960597515, -0.02474776841700077, -0.02212340384721756, 0.021742869168519974, -0.0025390738155692816, 0.03325071185827255, 0.006908642593771219, 0.0073351021856069565, -0.007951827719807625, -0.007407272234559059, -0.00020431097073014826, 0.012925000861287117, -0.002995057264342904, 0.002133937319740653, -0.023789875209331512, -0.013659823685884476, -0.05324837937951088, -0.00934930332005024, 0.010759899392724037, 0.006757741793990135, -0.004225228913128376, 0.008870355784893036, 0.019971422851085663, -0.012177056632936, -0.005370108410716057, -0.012150812894105911, -0.011566892266273499, 0.021060535684227943, 0.016349798068404198, -0.01536566112190485, 0.03403802216053009, -0.022149646654725075, 0.0029163265135139227, 0.04080888628959656, -0.022307109087705612, 0.02365865744650364, -0.012341080233454704, 0.001597582595422864, -0.013016854412853718, 0.00048345737741328776, -0.0043105208314955235, 0.018291829153895378, -0.026834139600396156, 6.07909714744892e-05, 0.011612818576395512, 0.03716101869940758, -0.009998833760619164, -0.036688633263111115, -0.009178719483315945, -0.03889309987425804, -0.017425788566470146, -0.010891118086874485, 0.00012404228618834168, -0.02703096717596054, -0.006718376185745001, -0.054481834173202515, 0.0282119307667017, 0.009533008560538292, -0.014552108012139797, 0.015286929905414581, 0.01607424020767212, 0.004005438182502985, 0.024760890752077103, -0.002599762286990881, 0.04668746516108513, -0.013672945089638233, 0.029917769134044647, 0.006282075308263302, 0.044666703790426254, 0.02577127143740654, -0.004579517990350723, 0.01325304713100195, 0.011074823327362537, 0.02514142356812954, -0.013843528926372528, -0.02149355597794056, 0.020509418100118637, 0.009224645793437958, -0.01921035721898079, -0.006088528316468, -0.030573859810829163, 0.000898025173228234, 0.009578934870660305, 0.02057502791285515, 0.0013490880373865366, -0.023724265396595, -0.0012088484363630414, -0.012905318289995193, -0.001976475352421403, -0.00738102849572897, 0.010713973082602024, 0.002762144897133112, 0.02159852907061577, -0.014434011653065681, -0.007184201385825872, 0.0015295131597667933, 0.021336093544960022, -0.013095584698021412, 0.027634570375084877, -0.046897415071725845, 0.04805213585495949, 0.031781069934368134, -0.024616550654172897, -0.020955560728907585, -0.012124569155275822, 0.03524523228406906, -0.0017025573179125786, -0.017005890607833862, -0.02520703338086605, 0.018842946738004684, 0.04041523113846779, 0.00449094595387578, -0.03154487535357475, 0.0024800256360322237, -0.031151220202445984, -0.008358605206012726, -0.011317577213048935, -0.0027441023848950863, -0.042331017553806305, 0.04311832785606384], "id": 20}, {"title": "Melissa Gilbert", "text": "Melissa Ellen Gilbert (born May 8, 1964) is an American actress, television director, and 2016 Democratic candidate for Michigan's 8th congressional district.Gilbert began her career as a child actress in the late 1960s appearing in numerous commercials and guest starring roles on television. From 1974 to 1984, she starred as Laura Ingalls Wilder on the NBC series Little House on the Prairie.", "vector": [0.023501215502619743, -0.0014370293356478214, -0.02314792014658451, -0.002298187231644988, -0.03679925948381424, -0.00917155109345913, -0.03532954677939415, -0.011128807440400124, 0.05986238643527031, 0.07670751214027405, -0.046521950513124466, -0.036120928823947906, -0.02525356039404869, 0.0547749325633049, -0.032842349261045456, -0.0002612178504932672, -0.028857175260782242, -0.001039571943692863, 0.045956674963235855, 0.001017490983940661, 0.03066604770720005, 0.015643924474716187, 0.00459990743547678, 0.035668712109327316, 0.05002664029598236, 0.03490559384226799, -0.003165527479723096, 0.0022928877733647823, -0.0010510541032999754, -0.030920421704649925, -0.0055184755474328995, 0.013771457597613335, -0.001714366371743381, -0.014640565030276775, -0.034679483622312546, -0.018258310854434967, -0.05324869602918625, 0.0050450596027076244, 0.004183018580079079, 0.014280203729867935, -0.003245019121095538, 0.01459816936403513, -0.028645198792219162, -0.019770415499806404, 0.015686320140957832, 0.017749564722180367, 0.04397822171449661, 0.00664548808708787, 0.03914513811469078, 0.024872001260519028, -0.0068115368485450745, -0.009454187005758286, 0.01632225140929222, 0.011665817350149155, 0.016378778964281082, -0.040332213044166565, -0.008648673072457314, 0.056838177144527435, -0.013983434997498989, -0.03496212139725685, -0.03922992944717407, -0.008775860071182251, -0.005532607436180115, -0.0012153364950791001, 0.02727441117167473, -0.02285115234553814, 0.03394462913274765, 0.0547749325633049, 0.014979728497564793, 0.03996478393673897, 0.04946136847138405, -0.053503070026636124, -0.007037646137177944, 0.025140507146716118, 0.02077377401292324, -0.015898296609520912, -0.003925113007426262, -0.01626572385430336, -0.017933279275894165, -0.042169347405433655, 0.007942082360386848, -0.05093107745051384, 0.009044364094734192, 0.04714374989271164, 0.0018230046844109893, -0.022893548011779785, 0.02648302912712097, -0.07461600750684738, 0.04999837651848793, 0.024123014882206917, 0.029026757925748825, 0.053022585809230804, 0.04776554927229881, -0.01429433561861515, 0.03157048299908638, -0.07834680378437042, -0.007864357903599739, -0.02549380250275135, 0.03869292140007019, -0.0061932699754834175, -0.02384037896990776, -0.00802687369287014, -0.018258310854434967, -0.03024209290742874, 0.029139811173081398, 0.029055019840598106, -0.043158575892448425, 0.037873275578022, 0.015855900943279266, -0.004122958518564701, 0.03196617588400841, -0.018145255744457245, -0.039399512112140656, 0.023246843367815018, 0.005101586692035198, 0.023006601259112358, -0.006511235609650612, 0.030072512105107307, 0.02167821116745472, 0.013941040262579918, -0.024660024791955948, -0.0038297229912132025, 0.019657360389828682, -0.0011217131977900863, -0.007843160070478916, 0.01695818267762661, -0.05180725082755089, 0.03174006566405296, 0.034679483622312546, 0.039003822952508926, -0.019742151722311974, 0.035216495394706726, -0.0420280322432518, 0.02504158392548561, 0.02519703470170498, -0.03453816846013069, -0.0025578592903912067, 0.01632225140929222, 0.06331054866313934, 0.023275107145309448, 0.01683099754154682, -0.008344839327037334, 0.026256920769810677, 0.004995597992092371, -0.0340859480202198, -0.057827405631542206, 0.023911038413643837, 0.004331402480602264, 0.015177574008703232, -0.04355426877737045, -0.05135503038764, 0.00910795759409666, 0.01773543283343315, 0.019162748008966446, 0.06636302173137665, 0.048811305314302444, -0.01401169877499342, 0.031316112726926804, -0.02540901117026806, -0.056809913367033005, 0.03855160251259804, 0.014301401562988758, -0.006384049542248249, 0.038919031620025635, 0.015446078963577747, 0.031853120774030685, -0.026553688570857048, 0.029422447085380554, -0.012513726018369198, 0.026977643370628357, -0.04476960375905037, -0.022497856989502907, 0.023430556058883667, -0.01512104645371437, -0.029422447085380554, -0.015615660697221756, 0.02317618392407894, -0.010888567194342613, -0.045532722026109695, -0.06698482483625412, 0.02335989661514759, -0.012824625708162785, -0.0019731551874428988, -0.013192052952945232, -0.022413065657019615, -0.016633151099085808, -0.031429167836904526, -0.03289887681603432, -0.0027027104515582323, -0.08473438769578934, -0.01295887865126133, 0.0020155508536845446, -0.00718603003770113, -0.03448164090514183, 0.007730105426162481, 0.003684871830046177, -0.018512682989239693, -0.03224881365895271, -0.037505850195884705, -0.014979728497564793, 0.022285878658294678, -0.00019696223898790777, 0.002347648609429598, -0.03719494864344597, 0.03549912944436073, -0.011722343973815441, 0.03643183037638664, 0.0017797260079532862, -0.06087987869977951, 0.01938885636627674, 0.03315324708819389, 0.006359318736940622, 0.06359318643808365, -0.022144561633467674, -0.002935885451734066, 0.007334414403885603, 0.010987489484250546, 0.00802687369287014, -0.0009203347144648433, -0.017424533143639565, 0.03346414864063263, 0.022653305903077126, 0.014350862242281437, -0.008789991959929466, -0.048783041536808014, 0.027797289192676544, -0.044486965984106064, 0.00036588162765838206, 0.0072319586761295795, -0.02213042974472046, -0.035555656999349594, 0.01738213747739792, -0.002284055342897773, 0.0871085375547409, -0.044995713979005814, -0.011644619517028332, 0.024674156680703163, 0.008549750782549381, -0.02696351148188114, 0.036997102200984955, 0.024165410548448563, -0.016548359766602516, -0.02128252014517784, -0.008726398460566998, 0.010189041495323181, -0.038042858242988586, -0.009185682982206345, 0.02074551023542881, 0.004274875391274691, 0.004423259291797876, 0.06834147870540619, 0.01743866503238678, -0.0023794451262801886, -0.002911154879257083, -0.006306324619799852, 0.006454708520323038, 0.02928113006055355, -0.019176878035068512, 0.002391810528934002, 0.03340762108564377, -0.020674852654337883, -0.06749357283115387, -0.03990825638175011, -0.03493385761976242, -0.001354004954919219, -0.03125958517193794, -0.01509278267621994, -2.8401644158293493e-05, -0.02114120125770569, -0.024603497236967087, -0.04917873069643974, -0.015615660697221756, 0.0023829780984669924, 0.05220293998718262, 0.014909069053828716, -0.006977585610002279, -0.04021915793418884, 0.022172825410962105, 0.004656434524804354, -0.0007207227754406631, 0.03157048299908638, 0.021551024168729782, -0.03315324708819389, -0.009885207749903202, -0.018738793209195137, 0.05844920501112938, -0.015417815186083317, 0.005497277714312077, 0.014103556051850319, 0.04298899322748184, -0.03527302294969559, 0.06025807932019234, -0.023472951725125313, 0.008768794126808643, 0.027048302814364433, 0.014485115185379982, 0.02047700621187687, -0.021098805591464043, 0.014428587630391121, -0.03623398393392563, 0.04561751335859299, -0.029507238417863846, 0.01205444149672985, -0.008634542115032673, 0.0005136033287271857, -0.02597428485751152, -0.02733093872666359, 0.037477586418390274, 0.023204447701573372, -0.03066604770720005, -0.025211166590452194, -0.017240820452570915, 0.058675315231084824, 0.03597961366176605, -0.005755183286964893, 0.006864531431347132, 0.014216610230505466, -0.012379474006593227, -0.018894242122769356, -0.0199965238571167, 0.03880597651004791, 0.011807135306298733, -0.0066490210592746735, 0.009652032516896725, -0.008987837471067905, -0.003230887232348323, 0.009659098461270332, -0.03736453130841255, 0.00927753932774067, -0.004391463007777929, -0.03990825638175011, 0.051694195717573166, 0.005744584370404482, 0.009623768739402294, 0.09072627872228622, -0.043073784559965134, -0.02485787123441696, 0.04383690282702446, 0.004232479725033045, 0.042169347405433655, -0.038890767842531204, -0.03917340189218521, 0.00393924443051219, -0.0044797868467867374, -0.006009556353092194, 0.046013202518224716, -0.007242557592689991, 0.015262365341186523, 0.010711919516324997, -0.028334297239780426, 0.0006840683636255562, -0.055029306560754776, 0.023345764726400375, 0.03603614121675491, 0.012308814562857151, 0.03332282975316048, 0.011248928494751453, -0.04468481242656708, 0.001960790017619729, 0.010775512084364891, 0.045589249581098557, 0.01656249165534973, -0.01930406503379345, 0.020095447078347206, -0.0006169422413222492, -0.01752345636487007, -0.03809938579797745, -0.06958507746458054, -0.02309139259159565, -0.04564577713608742, 0.06285833567380905, 0.013566547073423862, 0.01770716905593872, -0.03060952015221119, 0.05599026754498482, -0.0133475037291646, -0.015686320140957832, -0.024617629125714302, -0.010980423539876938, 0.004585775546729565, -0.04567404091358185, 0.061049461364746094, -0.053983550518751144, 0.0018548013176769018, -0.021240124478936195, -0.018597474321722984, -0.0012100370367988944, -0.013142592273652554, 0.009143287315964699, -0.0035753503907471895, -0.005299432203173637, 0.04530661180615425, 0.02386864274740219, 0.0009989429963752627, 0.018597474321722984, -0.017594115808606148, 0.018272442743182182, -0.004313738085329533, 0.07964693754911423, -0.02357187494635582, 0.007503996137529612, -0.029535502195358276, 0.018018070608377457, -0.0344533771276474, 0.004073496907949448, -0.011135873384773731, -0.02020850218832493, -0.04154754802584648, 0.05974933132529259, 0.011467971839010715, -0.027853816747665405, -0.030920421704649925, 0.013432294130325317, -0.006970520131289959, 0.00805513747036457, -0.006115545053035021, 0.020307425409555435, -0.025140507146716118, 0.027429861947894096, 0.035131704062223434, 0.02477307990193367, -0.022017374634742737, 0.038919031620025635, 0.014202478341758251, 0.014711223542690277, 0.018272442743182182, 0.014322599396109581, 0.0020579462870955467, -0.0348208025097847, 0.03109000250697136, -0.021720606833696365, -0.027401598170399666, -0.017777828499674797, 0.019077956676483154, 0.0040558320470154285, -0.010464612394571304, -0.024094752967357635, -0.021579287946224213, 0.0007927067345008254, -0.007383875548839569, -0.03428379446268082, 0.01632225140929222, -0.014569905586540699, 0.012019112706184387, -0.08309509605169296, 0.013524151407182217, -0.03965388610959053, -0.04875477775931358, 0.018018070608377457, -0.01465469691902399, -0.03117479383945465, 0.023614270612597466, 0.006670218892395496, -0.02706243470311165, 0.011354916729032993, 0.018060464411973953, 0.031231321394443512, 0.03914513811469078, -0.04400648549199104, 0.022356538102030754, 0.00035704925539903343, 0.01698644645512104, 0.02296420745551586, 0.03872118517756462, -0.03857986629009247, -0.10497115552425385, 0.0004047441470902413, 0.05152461305260658, -0.014336730353534222, 0.03244665637612343, 0.050252750515937805, 0.02754291519522667, -0.022893548011779785, 0.0061014131642878056, 0.016788601875305176, -0.045532722026109695, 0.013672535307705402, 0.003942777402698994, 0.04669152945280075, -0.00793501641601324, 0.028998494148254395, -0.014061160385608673, 0.002596721751615405, 0.03954083099961281, 0.0025578592903912067, -9.759787644725293e-05, 0.07732931524515152, 0.00816112570464611, 0.0015403683064505458, -0.0420280322432518, -0.03222054988145828, -0.0016640217509120703, -0.018173519521951675, -0.010824973694980145, 0.017693037167191505, 0.030920421704649925, 0.003822657046839595, -0.006751476787030697, -0.0038297229912132025, 0.0022663904819637537, 0.000992760295048356, 0.06268875300884247, 0.004144155886024237, -0.0036248117685317993, 0.01169408019632101, -0.006023688241839409, 0.010443414561450481, 0.043130312114953995, 0.06738051772117615, -0.011100544594228268, 0.010196107439696789, -0.0006708197761327028, -0.012082705274224281, -0.01885184645652771, 0.014386191964149475, 0.01259851735085249, 0.0042784083634614944, 0.016915787011384964, 0.013891578651964664, -0.002552559832111001, -0.023713193833827972, 0.029648557305336, 0.01767890527844429, 0.059692803770303726, 0.01767890527844429, -0.011241862550377846, 0.0301573034375906, 0.017608247697353363, -0.02140970714390278, 0.005133383441716433, -0.009150353260338306, 0.03120305761694908, 0.04751117527484894, 0.02170647494494915, 0.01390571054071188, -0.004585775546729565, -0.0036318774800747633, 0.013192052952945232, 0.03385983780026436, -0.030355148017406464, -0.008881848305463791, -0.04058658704161644, 0.03165527433156967, -0.02077377401292324, 0.017565852031111717, -0.021127069368958473, -0.012824625708162785, -0.021423839032649994, 0.006419378798455, -0.043610796332359314, 0.009319934993982315, -0.03589482232928276, 0.026539556682109833, -0.024900265038013458, -0.01531889196485281, -0.011849530972540379, -0.01459816936403513, 0.0744464248418808, 0.04474133998155594, -0.010372755117714405, 0.0817384421825409, -0.043215103447437286, -0.04327163100242615, -0.0016790367662906647, -0.003776728641241789, -0.012690373696386814, -0.006129676476120949, 0.028645198792219162, -0.04279115051031113, 0.02197497896850109, -0.010422216728329659, -0.03764716535806656, 0.02140970714390278, -0.06851106137037277, -0.022356538102030754, 0.02146623283624649, -0.009263407438993454, 0.022978337481617928, 0.00846495945006609, 0.002686812076717615, 0.0696416050195694, -0.009510714560747147, 0.03196617588400841, 0.011178269051015377, -0.053107377141714096, 0.02375558763742447, 0.018724661320447922, -0.012322946451604366, 0.020575929433107376, 0.023826247081160545, -0.02786794863641262, -0.0181028600782156, 0.028899570927023888, -0.007398007437586784, 0.020547665655612946, 0.00434553436934948, 0.00393924443051219, 0.01534715574234724, -0.009736823849380016, -0.02044874243438244, 0.05324869602918625, 0.02095748856663704, 0.011418510228395462, 0.007864357903599739, -0.027316806837916374, -0.04776554927229881, -0.03428379446268082, 0.011644619517028332, 0.025931889191269875, -0.021452100947499275, -0.010450480505824089, -0.00846495945006609, -0.01273276936262846, 0.02799513377249241, -0.006935190409421921, -0.030439939349889755, 0.019459515810012817, -0.018512682989239693, -0.03125958517193794, -0.01743866503238678, -0.01169408019632101, -0.006624290253967047, -0.0053170970641076565, -0.0019731551874428988, -0.005129850469529629, -0.038438547402620316, -0.02104227989912033, -0.015219969674944878, -0.03018556535243988, 0.03501864895224571, 0.03069431148469448, 0.0010510541032999754, -0.02482960745692253, -0.01142557617276907, -0.030920421704649925, -0.013262712396681309, -0.03956909477710724, -0.04476960375905037, 0.02309139259159565, 0.014449785463511944, -0.0541248694062233, 0.037534113973379135, -0.029394185170531273, 0.014025830663740635, -0.00986400991678238, -0.02610146999359131, 0.00849322322756052, 0.008761728182435036, 0.014725355431437492, 0.018837714567780495, -0.0060837483033537865, -0.023684930056333542, -0.027260279282927513, -0.006917525548487902, -0.005101586692035198, -0.011121741496026516, -0.009977064095437527, -0.03162701055407524, -0.0006385815795511007, 0.012181628495454788, -0.021551024168729782, -0.011658751405775547, -0.007468666415661573, 0.011178269051015377, 0.004338468424975872, -0.03674273192882538, 0.012125100940465927, -0.010351557284593582, 0.01815938763320446, -0.0005295015871524811, 0.004469187930226326, -0.013623073697090149, 0.004380864091217518, -0.004716494586318731, 0.030439939349889755, -0.012209892272949219, -0.06461067497730255, -0.035103440284729004, -0.013531217351555824, 0.0011826566187664866, 0.01656249165534973, -0.04578709602355957, -0.024617629125714302, 0.01879531890153885, -0.00858508050441742, 0.014463917352259159, 0.008903046138584614, -0.005129850469529629, -0.02131078392267227, -0.0028139986097812653, 0.017240820452570915, -0.013354569673538208, -0.018498551100492477, 0.03809938579797745, -0.012817559763789177, 0.0005277351592667401, -0.015333023853600025, -0.03730800375342369, -0.026497161015868187, -0.026921115815639496, -0.0027433393988758326, 0.029337657615542412, -0.008797057904303074, -0.022568516433238983, 0.0021127068903297186, 0.0093058031052351, -0.010245569050312042, -0.03682751953601837, 0.00554673932492733, -0.02522529847919941, 0.01201204676181078, 0.03431205824017525, -0.0018247711705043912, -0.01746692880988121, -0.0007538442150689662, -0.036629676818847656, -0.01869639754295349, -0.019770415499806404, 0.02727441117167473, -0.01512104645371437, 0.05240078642964363, 0.015728715807199478, 0.025606857612729073, -0.018470287322998047, -0.0472002774477005, -0.010740182362496853, 0.018936637789011, -0.03575350344181061, 0.01587003283202648, 0.013460557907819748, -0.02861693501472473, 0.013036603108048439, 0.01978454738855362, 0.004924939014017582, 0.0437803752720356, 0.00012299099762458354, -0.00780076440423727, 0.020392214879393578, 0.01234414428472519, 0.023769719526171684, 0.022413065657019615, -0.0172266885638237, 0.03581003099679947, -0.014287269674241543, 0.002006718423217535, -0.007189563009887934, -0.0021091741509735584, 0.007362677715718746, -0.0172266885638237, -0.04493918642401695, 0.059636276215314865, 0.011475037783384323, 0.0005264102946966887, 0.009009035304188728, -0.0191203523427248, 0.015064519830048084, 0.05336175113916397, -0.00411235960200429, 0.030976947396993637, -0.0218901876360178, 0.017452796921133995, -0.0327010303735733, -0.01981281116604805, 0.00849322322756052, 0.0006721446407027543, 0.06280180811882019, -0.014004632830619812, -0.00493200495839119, -0.023925170302391052, -0.018993165343999863, 0.008012741804122925, -0.014301401562988758, 0.0003466712078079581, -0.033746786415576935, 0.02140970714390278, -0.0011614589020609856, -0.008344839327037334, -0.018922505900263786, -0.010881501249969006, 0.028758252039551735, -0.02597428485751152, 0.0045893085189163685, -0.002388277556747198, 0.004610505886375904, -0.029111547395586967, -0.05946669727563858, 0.0434129498898983, 0.015488473698496819, -0.03024209290742874, -0.060597240924835205, -0.027288543060421944, -0.010669523850083351, -0.025211166590452194, -0.01807459630072117, -0.03688404709100723, 0.011708212085068226, 0.0008130212081596255, -0.010443414561450481, 0.021565156057476997, -0.0057198540307581425, 0.031344376504421234, 0.02122599259018898, -0.015446078963577747, -0.006956388242542744, -0.024066489189863205, -0.030750839039683342, -0.011595157906413078, 0.006670218892395496, -0.04349774122238159, 0.03971041366457939, 0.03431205824017525, 0.022116297855973244, 0.003289181040599942, -0.06619343906641006, -0.024546969681978226, -0.005582068581134081, -0.004020502790808678, 0.02591775730252266, -0.009086759760975838, -0.03298366814851761, -0.0031443298794329166, 0.03261623904109001, -0.0031761263962835073, -0.012859955430030823, 0.024193674325942993, 0.00933406688272953, 0.018173519521951675, -0.028306033462285995, 0.0019007297232747078, 0.007744236849248409, -0.024123014882206917, 0.0444304384291172, -0.038353756070137024, -0.004688231274485588, -0.0527399517595768, -0.00046811651554889977, -0.021989110857248306, -0.012457198463380337, 0.026285184547305107, 0.007405073381960392, -0.00040805627941153944, -0.01914861612021923, -0.001015724497847259, -0.051185451447963715, 0.008994903415441513, -0.009397659450769424, 0.0021074076648801565, -0.07795111835002899, -0.01423780806362629, -0.01855507865548134, 0.01855507865548134, 0.009899339638650417, -0.01086736936122179, -0.014937332831323147, -0.008175257593393326, 0.0022027974482625723, -0.0038509208243340254, -0.009750955738127232, -0.03258797526359558, 0.004829549230635166, -0.004271342419087887, -0.01741040125489235, 0.04527834802865982, -0.027797289192676544, 0.017099501565098763, 0.006020155269652605, -0.01978454738855362, 0.011460905894637108, 0.007327348459511995, 0.00033253937726840377, 0.0067585427314043045, -0.010323294438421726, 0.002324684290215373, -0.035555656999349594, -0.05556631460785866, 0.029648557305336, -0.024038225412368774, -0.00024465713067911565, -0.017099501565098763, 0.010499942116439342, 0.027514653280377388, 0.032870613038539886, -0.027458125725388527, -0.006903393659740686, -0.002324684290215373, 0.0014334964798763394, 0.009475384838879108, -0.0172266885638237, -0.0068115368485450745, -0.007638248614966869, -0.030468203127384186, -0.018654001876711845, 0.031231321394443512, -0.023289239034056664, 0.03171180188655853, 0.010803775861859322, 0.04355426877737045, -0.03691231086850166, 0.017057105898857117, 0.021551024168729782, 0.015361287631094456, 0.025055715814232826, 0.0036212787963449955, 0.06087987869977951, -0.008139927871525288, 0.019205141812562943, -0.013114328496158123, 0.013637205585837364, -0.005578535608947277, -0.01022437121719122, -0.028970230370759964, -0.011072280816733837, 0.01975628361105919, 0.006218000315129757, 0.012690373696386814, 0.0020632457453757524, -0.01914861612021923, 0.026271052658557892, 0.016972314566373825, -0.014923200942575932, -0.024193674325942993, 0.0109450938180089, 0.009962933138012886, 0.04329989477992058, -0.009828680194914341, -0.054407503455877304, -0.004009903874248266, -0.0058293757028877735, 0.0030189098324626684, 0.026172129437327385, -0.008373103104531765, 0.022045638412237167, 0.02140970714390278, -0.04163233935832977, 0.009765087626874447, -0.02762770652770996, -0.018442023545503616, 0.0018530348315835, 0.018738793209195137, -0.0019925865344703197, -0.00529236625880003, 0.01668967865407467, 0.00614027539268136, 0.036997102200984955, -0.04493918642401695, 5.895618232898414e-05, -0.005603266414254904, -0.017184292897582054, 0.004886076785624027, -0.01962909661233425, 0.011411444284021854, -0.019614964723587036, -0.0035594520159065723, -0.0006588960532099009, 0.030750839039683342, 0.039823468774557114, -0.012132166884839535, -0.0015421347925439477, -0.003153162309899926, 0.02546553872525692, -0.015954824164509773, 0.008408432826399803, -0.02311965636909008, -0.0038933162577450275, -0.025154639035463333, 0.03866465762257576, 0.0004985882551409304, 0.008966639637947083, 0.03857986629009247, 0.0017002344829961658, 0.026313448324799538, -0.016166800633072853, 0.009221011772751808, 0.013750260695815086, -0.022073902189731598, 0.02245546132326126, -0.0509876050055027, 0.029959456995129585, -0.02471655234694481, -0.011800069361925125, 0.006041352637112141, -0.0077795665711164474, 0.01701471023261547, 0.03928645700216293, 0.016619019210338593, 0.004080562852323055, -0.02005305141210556, 0.021367311477661133, -0.011835399083793163, -0.030383411794900894, -0.05861878767609596, -0.007256689481437206, -0.013078998774290085, -0.03990825638175011, 0.014640565030276775, -0.012266418896615505, -0.011800069361925125, -0.012033244594931602, -0.01560152880847454, 0.03202270343899727, -0.030468203127384186, 0.04751117527484894, 0.001874232548289001, -0.011934321373701096, -0.031400904059410095, 0.03439684957265854, 0.009178617037832737, -0.006684350781142712, -0.007518128026276827, -0.0006160589982755482, 0.014160082675516605, 0.014202478341758251, 0.022540252655744553, -0.014711223542690277, 0.02333163470029831, -0.01749519258737564, -0.033690258860588074, 0.02540901117026806, -0.015898296609520912, 0.010139580816030502, -0.002100341720506549, -0.03450990468263626, 0.01562979258596897, 0.01789088360965252, -0.017608247697353363, 0.010323294438421726, 0.024787211790680885, -0.00994880124926567, 0.018682265654206276, 0.0032503183465451, 0.019318196922540665, 0.008323641493916512, -0.003903915174305439, 0.048330821096897125, -0.03255971148610115, 0.006755009759217501, 0.028009265661239624, 0.040388740599155426, 0.01158809196203947, 0.011135873384773731, -0.010245569050312042, 0.022229351103305817, -0.030298620462417603, 0.01927580125629902, 0.0076877097599208355, -0.004179485607892275, -0.006210934836417437, -0.030100775882601738, -0.008337773382663727, 0.015587396919727325, 0.02612973377108574, -0.0013504719827324152, 0.028306033462285995, 0.017537588253617287, 0.0049532027915120125, 0.011121741496026516, 0.005175778642296791, 0.024900265038013458, 0.007398007437586784, 0.01834310218691826, 0.030948683619499207, 0.009093825705349445, -0.033294565975666046, 0.020378082990646362, 0.011503300629556179, 0.01698644645512104, 0.025960152968764305, -0.012471330352127552, 0.009037298150360584, -0.028433220461010933, -0.013078998774290085, -0.018201783299446106, 0.005246438086032867, 0.00021186689264141023, 0.0008929543546400964, -0.013820919208228588, -0.018710529431700706, -0.013594809919595718, -0.011828333139419556, 0.009581374004483223, 0.05531194061040878, 0.005765782203525305, 0.0005741051863878965, -0.00787848886102438, 0.01070485357195139, -0.00012630312994588166, 0.0021127068903297186, -0.007751302793622017, -0.008062203414738178, 0.0004725327016785741, -0.017452796921133995, -0.016407042741775513, -0.010075987316668034, -0.017028842121362686, -0.014428587630391121, -0.04847213998436928, -0.020660720765590668, 0.029026757925748825, 0.01960083283483982, -0.003001245204359293, 0.03196617588400841, -0.03012903966009617, -0.031824856996536255, 0.03151395544409752, -0.0027910342905670404, 0.01531889196485281, -0.031429167836904526, 0.041745394468307495, -0.04349774122238159, 0.0036159793380647898, -0.04098227620124817, 0.04434565082192421, 0.014781882986426353, -0.030044248327612877, 0.013601875863969326, -0.019191009923815727, -0.013368701562285423, -0.04208455979824066, 0.023684930056333542, -0.005221707280725241, 0.013870380818843842, 0.005076856352388859, 0.015954824164509773, -0.018032200634479523, 0.026285184547305107, -0.008726398460566998, -0.004631703719496727, 0.007942082360386848, 0.0037590640131384134, 0.016067879274487495, 0.011164137162268162, 0.013220316730439663, 0.03219228610396385, -0.06274528056383133, 0.023218579590320587, 0.0010907998075708747, -0.020038919523358345, -0.0022434263955801725, 0.04366732016205788, -0.03487733006477356, -0.0015659822383895516, -0.0012594984145835042, -0.02266743779182434, 0.05952322483062744, 0.013997566886246204, -0.032418392598629, -0.021932583302259445, -0.00874759629368782, -0.029931193217635155, -0.038042858242988586, 0.03626224771142006, 0.030835630372166634, -0.01954430714249611, 0.0008708733948878944, 0.03450990468263626, -0.03640356659889221, -0.012188694439828396, -0.019982391968369484, -0.02338816039264202, -0.013163790106773376, 0.01717016100883484, 0.016972314566373825, 0.005705722142010927, 0.006514768581837416, 0.006023688241839409, -0.017933279275894165, -0.015333023853600025, -0.03298366814851761, -0.012591451406478882, 0.007398007437586784, 0.0025189968291670084, -0.00019022753986064345, 0.001309843035414815, 0.015474341809749603, -0.038466811180114746, -0.011029885150492191, -0.012895285151898861, 0.04041700437664986, -0.0076170507818460464, 0.007016448304057121, -0.013156724162399769, 0.007249623537063599, -0.029507238417863846, 0.014061160385608673, -0.006613691337406635, 0.002077377401292324, -0.005306498147547245, 0.008373103104531765, 0.0020703114569187164, 0.0056279972195625305, -0.04197150468826294, 0.01050700806081295, -0.002446571132168174, -0.0029606162570416927, -0.0014140651328489184, 3.425310205784626e-05, 0.015912428498268127, 0.03959735855460167, 0.013566547073423862, 0.007956214249134064, -0.00608728127554059, -0.022780492901802063, 0.0012383006978780031, 0.004575176630169153, 0.013997566886246204, -0.009835746139287949, 0.005603266414254904, -0.0064653074368834496, -0.0028069326654076576, 0.03603614121675491, -0.008309509605169296, -0.02482960745692253, -0.007609984837472439, -0.007405073381960392, -0.007652380038052797, -0.0021604017820209265, -0.0027433393988758326, 0.008648673072457314, 0.00841549877077341, 0.04010610282421112, -0.006221533287316561, -0.009595504961907864, 0.0004698830016423017, -0.029422447085380554, -0.008881848305463791, 0.008429630659520626, -0.005804644897580147, -0.016223328188061714, 0.014322599396109581, -0.020999884232878685, 0.005437217652797699, -0.028546275570988655, 0.023289239034056664, -0.0028828911017626524, 0.03109000250697136, 0.013658403418958187, -0.025479670614004135, -0.013255646452307701, -0.0059530287981033325, 0.01602548360824585, 0.006232132203876972, 0.0034834935795515776, -0.01250666007399559, 0.031372640281915665, -0.04106706753373146, 0.008203521370887756, -0.00790675263851881, -0.028376692906022072, -0.02314792014658451, 0.016308119520545006, -0.011460905894637108, -0.003766129957512021, -0.009150353260338306, 0.015205837786197662, 0.021536892279982567, 0.013750260695815086, 0.03109000250697136, -0.0009627302060835063, -0.03222054988145828, -0.0031266650184988976, 0.022709833458065987, -0.026030810549855232, -0.007164832670241594, 0.006804470904171467, 0.05596200376749039, -0.006281593814492226, -0.024575233459472656, 0.00933406688272953, 0.0020226165652275085, 0.03883424028754234, -0.044091276824474335, 0.00933406688272953, -0.023642534390091896, -0.0007759252330288291, -0.035159967839717865, -0.004536313936114311, 0.016604887321591377, 0.015728715807199478, -0.02386864274740219, 0.03544260188937187, -0.005786980036646128, 0.008924243971705437, 0.0011835398618131876, 0.03210749477148056, -0.0260025467723608, 0.039879992604255676, -0.013856248930096626, -0.016887525096535683, -0.01914861612021923, 0.0055361404083669186, -0.015855900943279266, -0.012266418896615505, 0.0018883643206208944, -0.027769025415182114, -0.011354916729032993, 0.01996826007962227, -0.005783447064459324, -0.0451652966439724, 0.017848487943410873, 0.010189041495323181, -0.004260743502527475, -0.01623746007680893, -0.032842349261045456, -0.0005016796058043838, -0.001985520590096712, 0.001194138778373599, -0.01437206007540226, 0.024886133149266243, -0.002056179801002145, 0.019798679277300835, 0.03292714059352875, -0.015728715807199478, 0.024278465658426285, -0.01978454738855362, 0.01989760249853134, -0.014979728497564793, 0.01650596596300602, -0.0017496958607807755, -0.06630649417638779, -0.0111994668841362, 0.005143982358276844, 0.014209544286131859, -0.008818255737423897, 0.020392214879393578, 0.00024841088452376425, -0.005613865330815315, 0.004522182047367096, 0.0063027916476130486, 0.008797057904303074, -0.055424995720386505, 0.039399512112140656, 0.004059365019202232, -0.04445870220661163, -0.013644271530210972, -0.03154221922159195, -0.04352600499987602, -0.012845823541283607, -0.012061507441103458, 0.029111547395586967, -0.020858565345406532, -0.008839452639222145, 0.016887525096535683, -3.4536012663011206e-06, -0.03569697588682175, 0.007652380038052797, 0.01109347864985466, -0.014244874007999897, 0.023105524480342865, 0.006023688241839409, 0.0344533771276474, -0.013580678030848503, 0.0028334297239780426, -0.018145255744457245, -0.016152668744325638, -0.007419205270707607, 0.03535781055688858, -0.023345764726400375, 0.06427151709794998, 0.004564577713608742, 0.0042960732243955135, -0.024702420458197594, 0.001714366371743381, 0.005009729880839586, -0.0022416599094867706, -0.024970924481749535, 0.0170429740101099, 0.02143797092139721, -0.055877212435007095, -0.018442023545503616, 0.00221339613199234, 0.022992469370365143, 0.008076334372162819, -0.013997566886246204, -0.004267809446901083, -0.00043124129297211766, -0.009503648616373539, 0.009404725395143032, -0.04284767806529999, -0.009319934993982315, -0.012753967195749283, 0.014640565030276775, -0.020434610545635223, -0.025182902812957764, 0.0067903390154242516, 0.03391636535525322, -0.014965596608817577, -0.010203173384070396, 0.0008077218080870807, -0.009009035304188728, -0.00025260625989176333, -0.012019112706184387, 0.04717201367020607, 0.01855507865548134, -0.0013133760076016188, 0.0022699234541505575, 0.018922505900263786, -0.01270450558513403, 0.01512104645371437, -0.027203751727938652, -0.011354916729032993, -0.01786261983215809, 0.016520095989108086, -0.002052646828815341, 0.01058473251760006, -0.05712081491947174, -0.011347850784659386, 0.008019807748496532, 0.00672674598172307, 0.01599721983075142, 0.017664773389697075, -0.02213042974472046, 0.032842349261045456, 0.014909069053828716, -0.008450827561318874, -0.011255994439125061, -0.002935885451734066, 0.0005272935377433896, 0.03496212139725685, 0.045023977756500244, 0.051637668162584305, -0.014463917352259159, 0.009065561927855015, -0.02648302912712097, 0.0018336036009714007, -0.010485810227692127, -0.011255994439125061, 0.004465654958039522, -0.023430556058883667, 0.021452100947499275, 0.0003932620456907898, 0.017127765342593193, -0.008888914249837399, 0.012845823541283607, -0.015587396919727325, 0.009955867193639278, 0.0015686319675296545, -0.020420478656888008, 0.024758948013186455, 0.007723039481788874, -0.0327010303735733, 0.03473601117730141, -0.03527302294969559, -0.018272442743182182, -0.005889435764402151, 0.006956388242542744, -0.03634703904390335, -0.027670102193951607, -0.02143797092139721, -0.03253144770860672, 0.014781882986426353, -0.001649889862164855, 0.0034658287186175585, -0.01960083283483982, -0.0077795665711164474, 0.018950769677758217, 0.008069268427789211, -0.007062376942485571, 0.006730278953909874, 0.03289887681603432, -0.007553457282483578, -0.023911038413643837, -0.008662804961204529, 0.002866992959752679, -0.004264276474714279, -0.03496212139725685, -0.0036212787963449955, 0.01717016100883484, 0.032729294151067734, 0.010047723539173603, -0.012513726018369198, 0.022752229124307632, 0.04041700437664986, -0.0413779653608799, 0.018781188875436783, 0.014386191964149475, -0.019925866276025772, -0.01319911889731884, 0.02685045637190342, -0.038862504065036774, -0.005493744742125273, 0.002146270126104355, 0.01070485357195139, 0.007920884527266026, -0.0009062029421329498, 0.026271052658557892, 0.053983550518751144, -0.004515116102993488, 0.0024289065040647984, 0.05358785763382912, 0.012520791962742805, -0.011736475862562656, -0.002354714320972562, -0.007482798304408789, -0.003027742262929678, -0.01365133747458458, -0.012775165028870106, 0.03301193192601204, -0.0070517780259251595, 0.018526814877986908, 0.004638769663870335, 0.003744932124391198, -0.005755183286964893, 0.00042925402522087097, -0.01683099754154682, -0.024250201880931854, 0.050281014293432236, -0.023953434079885483, -0.009383528493344784, -0.0056279972195625305, -0.01417421456426382, 0.016859261319041252, -0.003720201551914215, -0.013375767506659031, 0.00012056208652211353, -0.004818950314074755, -3.679241126519628e-05, -0.0186116062104702, -0.04279115051031113, 0.005560870748013258, 0.010796709917485714, -0.006242731120437384, 0.0061932699754834175, 0.0033580735325813293, -0.05567936971783638, -0.014584037475287914, -0.037901539355516434, -0.02642650157213211, 0.01429433561861515, -0.0012745134299620986, -0.007899686694145203, 0.03012903966009617, -0.037958066910505295, -0.013156724162399769, -0.001667554723098874, 0.035668712109327316, 0.03411421179771423], "id": 21}, {"title": "Jacob K. Javits Federal Building", "text": "The Jacob K. Javits Federal Office Building at 26 Federal Plaza on Foley Square in the Civic Center district of Manhattan, New York City houses many Federal government agencies, and, at over 41 stories, is the tallest federal building in the United States. It was built in 1963-69 and was designed by Alfred Easton Poor and Kahn & Jacobs, with Eggers & Higgins as associate architects.", "vector": [0.02560940943658352, -0.013634005561470985, -0.015596937388181686, 0.0291244275867939, -0.015049141831696033, 0.01211235299706459, 0.02559419348835945, 0.023113900795578957, -0.06902215629816055, 0.05900967866182327, -0.010438535362482071, -0.019674966111779213, 0.016814259812235832, -0.01946193352341652, -0.00637191953137517, 0.017453353852033615, -0.041084613651037216, -0.006200733594596386, -0.009167955256998539, 0.0019952666480094194, -0.034358911216259, -0.006832219194620848, 0.0005582562298513949, -0.007760427426546812, 0.013086210936307907, -0.004294863902032375, 0.04385402053594589, -0.017468569800257683, -0.021166184917092323, 0.02859184890985489, 0.020024945959448814, 0.04668429493904114, 0.033932849764823914, -0.007478921674191952, 0.035302337259054184, 0.03694571927189827, 0.04391488805413246, -0.02512248046696186, 0.05015366151928902, -0.04485831409692764, -5.462494300445542e-05, 0.011404784396290779, -0.014531780034303665, 0.004306276328861713, 0.031224306672811508, -0.026233287528157234, 0.006539301015436649, 0.0015815674560144544, -0.050092797726392746, 0.0834474191069603, 0.006227362435311079, -0.029611356556415558, 0.016692526638507843, 0.010773299261927605, 0.0013828015653416514, -0.008566902950406075, 0.008795150555670261, 0.09823787957429886, -0.005976289976388216, 0.07023947685956955, 0.021044453606009483, -0.021440083160996437, -0.028394034132361412, 0.00021909417409915477, 0.023600827902555466, 0.10529834777116776, -0.0015092890243977308, 0.027602775022387505, -0.027785371989011765, 0.003670986508950591, 0.03155907243490219, 0.03114822506904602, -0.005839340854436159, 0.008224531076848507, 0.029017910361289978, -0.028926612809300423, 0.05949660763144493, 0.005143185146152973, 0.01658601127564907, 0.00607139291241765, 0.07096986472606659, -0.030935192480683327, -0.030691727995872498, 0.0067827655002474785, -0.018457643687725067, -0.002575396792963147, -0.08229096233844757, -0.04930153861641884, 0.039836861193180084, -0.00431008031591773, 0.010248328559100628, 0.03636749088764191, -0.0139307277277112, -0.027252795174717903, 0.01952280104160309, 0.015338256023824215, 0.020542306825518608, -0.011511300690472126, -0.000816937128547579, 0.0009595920564606786, -0.004926349502056837, 0.03527190163731575, -0.027587557211518288, -0.01390029489994049, 0.003303887788206339, -0.0001974581682588905, -0.033263321965932846, 0.0007375258719548583, 0.027404960244894028, 0.022703053429722786, -0.016844691708683968, -0.030235232785344124, -0.01605343259871006, -0.016570795327425003, -0.02017711102962494, 0.041571542620658875, 0.023250848054885864, 0.007726190146058798, 0.018305478617548943, 0.008848409168422222, 0.009000574238598347, -0.023585611954331398, 0.03612402826547623, 0.00017926967120729387, -0.028835313394665718, 0.003925863187760115, 0.04074985161423683, 0.06034873425960541, 0.00411606952548027, 0.0006428981432691216, -0.06211385130882263, 0.01789463311433792, 0.031224306672811508, -0.07297845184803009, -0.0003792243078351021, -0.016327330842614174, 0.022063959389925003, 0.009624451398849487, -0.0375848151743412, 0.036489225924015045, -0.011092846281826496, 0.007022425998002291, -0.03706745430827141, 0.00040252460166811943, 0.05191877856850624, -0.054505590349435806, 0.002908258233219385, 0.02344866283237934, -0.005550227127969265, -0.007452292833477259, -0.0024859996046870947, 0.014699161984026432, 0.020557524636387825, -0.022368289530277252, 0.074987031519413, -0.0030375986825674772, 0.02124226838350296, 0.006227362435311079, -0.01701207458972931, 0.03301985561847687, -0.028181001543998718, -0.026583267375826836, 0.04196717217564583, -0.019203253090381622, 0.0017508512828499079, -0.011184144765138626, 0.01381660345941782, 0.004743751138448715, 0.023707345128059387, 0.0023014992475509644, 0.012896004132926464, -0.010438535362482071, -0.007642499171197414, -0.0316503681242466, -0.011541733518242836, -0.03807174414396286, 0.02238350734114647, 0.020983586087822914, 0.014858935959637165, -0.022474806755781174, 0.036610957235097885, 0.02649196796119213, 0.011944971047341824, 0.04321492835879326, -0.03241119533777237, 0.0009548368980176747, 0.0037965227384120226, -0.010484185069799423, 0.03253292664885521, -0.04516264423727989, -0.03855867311358452, 0.026339802891016006, 0.031832966953516006, 0.014744811691343784, 0.02005537785589695, -0.07523049414157867, 0.05061015859246254, -0.005177422426640987, -0.05657503753900528, -0.022657403722405434, 0.026400668546557426, 0.030813461169600487, -0.05143184959888458, 0.00431008031591773, 0.03090476058423519, 0.03466324135661125, 0.05322740226984024, -0.044188786298036575, -0.006136063486337662, -0.005633918102830648, -0.05873578414320946, 0.012089528143405914, 0.0036139243748039007, -0.018122879788279533, -0.012454724870622158, 0.01515565812587738, -0.0204053595662117, -0.004275843035429716, 0.007330560591071844, 0.0007513158489018679, 0.013945944607257843, 0.017514219507575035, -0.021820494905114174, -0.002116998890414834, 0.024863800033926964, -0.017803333699703217, 0.04190630838274956, 0.011922146193683147, -0.022155258804559708, 0.024452954530715942, -0.015581720508635044, -0.026841947808861732, -0.010735257528722286, 0.046927761286497116, 0.030478697270154953, 0.008795150555670261, 0.011397176422178745, -0.04370185732841492, -0.011374351568520069, 0.008467995561659336, 0.061444323509931564, 0.00732675613835454, -0.07523049414157867, 0.013892685994505882, -0.029109209775924683, 0.015718668699264526, -0.03676312044262886, 0.009951606392860413, -0.02112053520977497, -0.016920775175094604, 0.03831520676612854, 0.015855617821216583, 0.05216224491596222, 0.02710063010454178, 0.07845639437437057, 0.01576431840658188, -0.04501047730445862, -0.028683148324489594, -0.002482195384800434, -0.0446452796459198, -0.04309319704771042, 0.05420126020908356, 0.00031550510902889073, -0.018640242516994476, -0.0006752332556061447, -0.022596538066864014, -0.004675277043133974, -0.009609234519302845, 0.0074028391391038895, 0.020024945959448814, -0.005850753281265497, 0.011792805977165699, 0.02853098325431347, 0.04838854447007179, -0.024681201204657555, 0.028744013980031013, -0.01880762353539467, 0.04893634095788002, 0.002788427984341979, -0.003100366797298193, -0.005550227127969265, -0.0030547170899808407, 0.030600430443882942, 0.012340600602328777, -0.009350554086267948, 0.019614098593592644, 0.052010077983140945, 0.008247355930507183, 0.03782827779650688, -0.03734134882688522, -0.006383331958204508, 0.0119677959010005, 0.04318449646234512, 0.00735338544473052, -0.011267836205661297, -0.01345140766352415, 0.013763345777988434, -0.020085811614990234, 0.012097136117517948, -0.01390029489994049, -0.010453752242028713, 0.020131461322307587, -0.009236429817974567, -0.014470914378762245, 0.005858361721038818, -0.012211260385811329, -0.02249002270400524, 0.0510970875620842, 0.03624575957655907, -0.044675715267658234, 0.04354969039559364, -0.0004179788811597973, -0.00693493103608489, -0.002025699708610773, 0.0271614957600832, 0.016327330842614174, 0.05657503753900528, -0.003585393540561199, 0.026826731860637665, -0.05295350402593613, -0.017407704144716263, 0.02411819063127041, -0.022368289530277252, 0.03055478073656559, 0.023676911368966103, -0.05931400880217552, 0.03298942372202873, -0.02148573100566864, -0.03658052533864975, 0.003884017700329423, 0.018427209928631783, -0.027526691555976868, 0.009632059372961521, 0.002073251409456134, 0.01456221379339695, -0.021287916228175163, -0.022094393149018288, 0.026461536064743996, -0.025974607095122337, 0.02869836427271366, 0.03508930280804634, 0.02387472614645958, 0.013535098172724247, -0.01628168113529682, -0.03155907243490219, 0.01473720371723175, 0.038832567632198334, 0.017149021849036217, 0.03533276915550232, -0.030585212633013725, 0.0007028132095001638, -0.0031536247115582228, -0.04601476714015007, -0.008369088172912598, 0.0074294679798185825, 0.002288184827193618, 0.00023335966398008168, -0.055662043392658234, 0.04382358863949776, 0.04230193793773651, 0.06750050187110901, 0.033263321965932846, -0.012728622183203697, 0.04625823348760605, -0.03445021063089371, 0.019081521779298782, -0.01053744275122881, -0.011815630830824375, -0.012317775748670101, 0.05106665566563606, -0.05267960578203201, -0.02142486535012722, 0.01641863025724888, 0.04662343114614487, -0.015977350994944572, -0.01874675787985325, -0.006676250137388706, -0.004614410921931267, -0.020755339413881302, -0.009708141908049583, -0.04510177671909332, -0.06634404510259628, 0.04351925849914551, 0.04814508184790611, 0.03861953690648079, -0.04245410114526749, 0.014935018494725227, -0.01148847583681345, -0.019127171486616135, -0.035119738429784775, -0.026339802891016006, 0.004888308234512806, 0.013055777177214622, 0.0008240698953159153, 0.0065164766274392605, -0.021227050572633743, 0.0041122655384242535, -0.003866899060085416, 0.02089228667318821, 0.006079001352190971, -0.010948289185762405, 0.053683895617723465, -0.018335910513997078, 0.029580922797322273, 0.007030033972114325, -0.06780482828617096, -0.0054551237262785435, 0.010575484484434128, 0.006527888588607311, 0.028074486181139946, -0.03049391321837902, -0.06701356917619705, -0.0005159352440387011, -0.010491793043911457, 0.03359808400273323, -0.018701108172535896, 0.02489423379302025, -0.012972086668014526, 0.02667456679046154, 0.025442028418183327, 0.047353822737932205, 0.004340513609349728, -0.03256336227059364, 0.00025511454441584647, -0.003319104202091694, 0.03682398796081543, 0.03222859650850296, 0.008194098249077797, -0.02350953035056591, 0.003788914531469345, 0.009594018571078777, 0.0524057075381279, -0.01580996811389923, 0.018335910513997078, 0.038589105010032654, 0.01772725023329258, 0.03621532768011093, 0.009015790186822414, 0.022231342270970345, -0.002145529957488179, 0.048540711402893066, 0.035576231777668, 0.002219710499048233, 0.015596937388181686, -0.04625823348760605, 0.02471163496375084, -0.03581969812512398, -0.0093962037935853, 0.011526516638696194, 0.0014902682742103934, 0.024848584085702896, -0.02452903613448143, -0.06756136566400528, -0.03962382674217224, 0.0705438032746315, 0.05018409714102745, 0.016205597668886185, -0.013109035789966583, -0.046927761286497116, -0.02507683075964451, -0.02780058979988098, -0.030569996684789658, -0.00014515136717818677, -0.10669826716184616, 0.010628742165863514, -0.0027751135639846325, 0.02452903613448143, -0.001273432862944901, 0.0016795238479971886, -0.029991768300533295, -0.006463218480348587, 0.040202055126428604, -0.059161845594644547, 0.01507196668535471, -0.016570795327425003, -0.029611356556415558, -0.0009006279869936407, -0.05526641383767128, 0.024513820186257362, -0.0007204072899185121, -0.0017204182222485542, 0.02291608601808548, -0.006866456475108862, -0.03210686519742012, 0.01873154193162918, 0.011747156269848347, -0.055175114423036575, -0.01964453235268593, -0.039958592504262924, 0.050762325525283813, 0.0866733193397522, 0.03770654648542404, 0.015855617821216583, -0.035484932363033295, 0.02548767812550068, 0.0004324821347836405, -0.01952280104160309, -0.015718668699264526, -0.04802335053682327, -0.006067588925361633, -0.016814259812235832, 0.010605917312204838, 0.01660122722387314, -0.01964453235268593, -0.0204053595662117, -0.008665810339152813, 0.02565505914390087, 0.00264196889474988, -0.037919577211141586, -0.025761574506759644, 0.023707345128059387, -0.02936789207160473, -0.022185692563652992, -0.03734134882688522, -0.06774396449327469, -0.046106066554784775, -0.0065735382959246635, -0.004686689469963312, 0.0021512361709028482, -0.032624226063489914, 0.015094791539013386, 0.021927010267972946, -0.006622991990298033, -0.023783426731824875, 0.03639792650938034, -0.014417656697332859, -0.009472286328673363, -0.011868888512253761, 0.022292207926511765, -0.015657803043723106, -0.01903587207198143, -0.024011675268411636, 0.00862016063183546, -0.019553232938051224, 0.01719467155635357, 0.015163266099989414, 0.009867915883660316, -0.03752394765615463, -0.007052858825773001, -0.04720165580511093, 0.036915287375450134, -0.017468569800257683, 0.006733311805874109, -0.0317416675388813, -0.020694471895694733, -0.02411819063127041, 0.041754141449928284, 0.009023399092257023, -0.013101426884531975, -0.0016852300614118576, 0.04035422205924988, 0.005489361006766558, -0.003642455441877246, 0.009061439894139767, 0.041449811309576035, 0.007935416884720325, 0.04339752718806267, -0.0021569423843175173, 0.038467373698949814, 0.010126596316695213, 0.017757683992385864, 0.018275044858455658, -0.04701906070113182, 0.018518509343266487, -0.0033495372626930475, -0.001213517738506198, 0.0076843444257974625, 0.02728322707116604, -0.07334364205598831, 0.018640242516994476, 0.018275044858455658, -0.004043791443109512, 0.01121457852423191, 0.04038465395569801, 0.018761973828077316, 0.013634005561470985, -0.02309868298470974, -0.038102176040410995, -0.012584065087139606, -0.00640235235914588, 0.02734409272670746, 0.019020654261112213, -0.009145131334662437, 0.02524421364068985, 0.017316404730081558, 0.02058795653283596, -0.012485157698392868, -0.041449811309576035, 0.0033894807565957308, 0.007779447827488184, 0.02643110230565071, 0.022124825045466423, 0.0226269718259573, -0.03527190163731575, -0.00791259203106165, 0.012393859215080738, -0.028972262516617775, -0.03633705899119377, -0.0017223203321918845, 0.002584906993433833, 0.014037243090569973, 0.009358162060379982, -0.009601626545190811, -0.005892599001526833, -0.01605343259871006, 0.01987278088927269, 0.0401107557117939, -0.03247206285595894, -0.010042905807495117, -0.01088742259889841, 0.03718918561935425, 0.013808995485305786, 0.020633606240153313, -0.035424068570137024, -0.038406506180763245, -0.023798642680048943, -0.01062113419175148, -0.005884990561753511, -0.03283726051449776, -0.02953527309000492, -0.02017711102962494, -0.015627369284629822, 0.015231740660965443, 0.019857563078403473, 0.017225105315446854, 0.014881760813295841, 0.03274596109986305, 0.027907105162739754, 0.014197017066180706, -0.0027865259908139706, -0.020724905654788017, 0.0034085013903677464, -0.0037147339899092913, -0.0342676118016243, -0.028683148324489594, 0.003594903741031885, 0.01860980875790119, -0.021257484331727028, 0.01628168113529682, -0.003621532814577222, -0.010126596316695213, 0.047049492597579956, -0.01766638457775116, 0.03770654648542404, -0.018929356709122658, -0.020085811614990234, 0.002347148722037673, 0.004720926750451326, 0.028667930513620377, 0.04345839098095894, 0.019842347130179405, 0.004089440684765577, 0.0005829830770380795, -0.0051888348534703255, -0.0003571127890609205, 0.007262086030095816, -0.016083866357803345, -0.0004346219648141414, -0.00928207952529192, 0.014387223869562149, -0.006493651773780584, 0.01964453235268593, -0.03037218190729618, -0.010210287757217884, -0.016753392294049263, -0.032502494752407074, 0.002434643916785717, 0.02475728467106819, -0.01689034141600132, -0.007345777004957199, -0.00020589858468156308, -0.00598389795050025, 0.017027290537953377, 0.024559469893574715, -0.005569247994571924, 0.008156056515872478, 0.00607139291241765, -0.03402414917945862, 0.0005687176017090678, 0.01689034141600132, -0.0036500636488199234, -0.00817127339541912, 0.010187462903559208, -0.008673418313264847, -0.022033527493476868, -0.021577030420303345, 0.007178395055234432, -0.011785198003053665, 0.007756622973829508, 0.01856415905058384, 0.00023847146076150239, 0.03323289006948471, -0.014372006990015507, -0.010605917312204838, -0.0029367890674620867, 0.01406006794422865, 0.08904709666967392, 0.008049541153013706, -0.03228946402668953, 0.0038992343470454216, -0.0032867691479623318, 0.01127544417977333, -0.0013314458774402738, 0.0004465098900254816, -0.015163266099989414, 0.01832069456577301, -0.006170300301164389, 0.008156056515872478, 0.008376696147024632, 0.0020123852882534266, 0.03588056191802025, -0.014158975332975388, 0.01629689708352089, -0.02507683075964451, -0.02242915704846382, -0.003728048410266638, 0.014197017066180706, -0.03998902440071106, 0.029915686696767807, -0.02250523865222931, 0.06293554604053497, -0.019355418160557747, -0.04939283803105354, -0.02804405428469181, 0.01795549876987934, 0.0076653240248560905, -0.012926436960697174, -0.0226269718259573, -0.01825982891023159, 0.026537617668509483, 0.029733087867498398, 0.04558870568871498, -0.007380014285445213, 0.022124825045466423, -0.007764231413602829, 0.04062812030315399, 0.0008877890650182962, -0.01707294024527073, 0.027481041848659515, -0.05319696664810181, 0.05258830636739731, -0.03038739785552025, -0.0725523829460144, -0.011716723442077637, 0.025578977540135384, 0.02255088835954666, 0.03922819718718529, 0.02124226838350296, -0.02195744402706623, 0.02553332783281803, -0.0011583579471334815, 0.029885252937674522, 0.036550089716911316, -0.007049054838716984, 0.018838057294487953, 0.033385053277015686, 0.012135177850723267, -0.06890042126178741, 0.012972086668014526, 0.02553332783281803, -0.04969716817140579, 0.019538016989827156, -0.019248902797698975, 0.03938036412000656, -0.022961733862757683, -0.03402414917945862, 0.03712831810116768, -0.025944173336029053, -0.007064271252602339, 0.006292032543569803, 0.01956845074892044, -0.0065583218820393085, 0.021211834624409676, -0.004561153240501881, -0.02959613874554634, 9.040754957823083e-05, -0.005957269109785557, 0.01364161353558302, 0.023905159905552864, 0.008338655345141888, 0.006257795728743076, -0.04105418175458908, -0.005458928178995848, -0.002487901598215103, 0.004663864616304636, 0.0043329051695764065, 0.021409649401903152, -0.012378642335534096, 0.010788515210151672, 0.056483738124370575, 0.014630687423050404, 0.011655857786536217, 0.0021189008839428425, -0.008612552657723427, 0.00771477771922946, -0.0395020954310894, 0.04488874599337578, 0.011085237376391888, 0.03292855620384216, -0.035119738429784775, 0.005968681536614895, 0.01074286550283432, 0.05210137739777565, 0.007943025790154934, -0.03639792650938034, -0.003212588606402278, 0.006702878978103399, 0.035180602222681046, -0.03575883060693741, 0.009031007066369057, -0.008711460046470165, -0.0330502912402153, 0.03928906470537186, 0.03359808400273323, -0.011328701861202717, 0.017164239659905434, -0.0038193475920706987, -0.02189657837152481, 0.0037223421968519688, 0.002208298072218895, -0.010271153412759304, 0.058279287070035934, 0.05663590133190155, 0.02334214746952057, 0.007524570915848017, 0.014455697499215603, 0.005211659241467714, -0.009943998418748379, 0.0035093107726424932, -0.005044277757406235, -0.03317202255129814, -0.01927933655679226, -0.023981241509318352, -0.01952280104160309, -0.009685317985713482, -0.017407704144716263, 0.013497056439518929, 0.05992267280817032, 0.007376209832727909, 0.020101027563214302, -0.023920375853776932, 0.02757234126329422, 0.003986729308962822, 0.007243065629154444, 0.0023870922159403563, -0.0027199536561965942, 0.019142387434840202, -0.053501296788454056, -0.031954701989889145, 0.027191927656531334, 0.023479096591472626, 0.00841473788022995, 0.013732912950217724, 0.003326712641865015, 0.012119960971176624, 0.005158401560038328, -0.052497006952762604, 0.0032163928262889385, 0.011206969618797302, 0.008604944683611393, 0.013291633687913418, 0.0027960361912846565, 0.02734409272670746, 0.02673543244600296, -0.0005844096303917468, 0.012294951826334, 0.025700708851218224, -0.028744013980031013, 0.015977350994944572, 0.021455299109220505, 0.041145481169223785, -0.0017955498769879341, 0.049331970512866974, -0.05806625634431839, -0.008148448541760445, 0.02279435284435749, -0.02130313403904438, 0.027907105162739754, 0.0056757633574306965, -0.005592072382569313, -0.006098022218793631, 0.03308072313666344, 0.007866943255066872, -0.012759055010974407, -0.015148049220442772, 0.009350554086267948, 0.002037112135440111, 0.021105319261550903, -0.0033894807565957308, -0.022033527493476868, -0.009335337206721306, 0.0408107191324234, -0.007756622973829508, -0.015498029999434948, -0.013314458541572094, 0.014052459970116615, -0.01909673772752285, -0.0006253040046431124, 0.019659748300909996, 0.020618390291929245, 0.00852886214852333, -0.0013656830415129662, 0.01754465140402317, -0.002021895721554756, -0.017635950818657875, -0.002390896435827017, 0.0329589918255806, -0.012119960971176624, 0.01428831648081541, 0.024985533207654953, 0.032015565782785416, -0.009548368863761425, 0.01623603142797947, -0.019248902797698975, -0.044919177889823914, 0.0162208154797554, 0.004907329101115465, -0.02338779717683792, 0.01772725023329258, 0.020101027563214302, 0.00195532338693738, 0.004507895093411207, 0.01193736307322979, 0.006303444970399141, 0.0054551237262785435, -0.02757234126329422, -0.021942228078842163, 0.0607747957110405, 0.006166496314108372, 0.028439683839678764, -0.028317950665950775, -0.04123678058385849, 0.008216923102736473, -0.06323987245559692, -0.016799042001366615, 0.03222859650850296, -0.03728048503398895, -0.01399159338325262, 0.046166934072971344, 0.0197510477155447, 0.023479096591472626, 0.05003193020820618, 0.008506037294864655, -0.039532531052827835, 0.0011631130473688245, 0.02338779717683792, 0.010590700432658195, 0.018366344273090363, -0.00413509039208293, 0.025152914226055145, 0.026050688698887825, 0.0038478784263134003, 0.012431900016963482, 0.017514219507575035, -0.01628168113529682, 0.03091997653245926, -0.005763258319348097, 0.04452354833483696, -0.02793753892183304, -0.04348882660269737, 0.0003395186795387417, -0.035424068570137024, 0.022824786603450775, 0.006432785652577877, 0.010735257528722286, 0.014744811691343784, 0.016205597668886185, -0.027131062000989914, -0.0008854115149006248, 0.022520454600453377, 0.001154553727246821, -0.023357363417744637, 0.03761524707078934, -0.004903524648398161, -0.02107488550245762, -0.05204051360487938, 0.04637996479868889, 0.0045953900553286076, -0.011769981123507023, -0.019659748300909996, 0.004720926750451326, 0.01850329339504242, -0.0034237178042531013, 0.011587383225560188, -0.011731940321624279, 0.007874551229178905, 0.028211435303092003, -0.025228997692465782, -0.0362761914730072, 0.04047595337033272, 0.009274471551179886, -0.0162208154797554, 0.047353822737932205, -0.03323289006948471, -0.014151367358863354, -0.05167531594634056, -0.004408987704664469, -0.013808995485305786, 0.002411819063127041, -0.043367091566324234, 0.033567652106285095, -0.03998902440071106, -0.073769710958004, -0.02249002270400524, 0.030935192480683327, -0.008985357359051704, -0.03776741400361061, 0.04671472683548927, -0.007943025790154934, -0.025807224214076996, -0.027435392141342163, 0.011450434103608131, 0.019674966111779213, -0.010286370292305946, -0.031254738569259644, 3.0091270673437975e-05, 0.025883307680487633, 0.03014393337070942, 0.016981640830636024, -0.013055777177214622, 0.010963505133986473, 0.006851240061223507, 0.0047475555911660194, -0.007585437037050724, -0.011754765175282955, 0.011815630830824375, -0.025381162762641907, 0.03317202255129814, -0.0016833279514685273, -0.013938335701823235, 0.05115795508027077, -0.014760028570890427, 0.0011507496237754822, -0.009479894302785397, -0.06211385130882263, 0.004899720661342144, -0.008536470122635365, 0.06050090119242668, -0.012013445608317852, 0.013679655268788338, 0.004291059914976358, 0.013976377435028553, -0.019111953675746918, -0.011556950397789478, -0.010917856357991695, 0.015977350994944572, 0.004614410921931267, 0.022398723289370537, -0.010362452827394009, -0.0033000835683196783, -0.0018098152941092849, 0.01313186064362526, 0.0329589918255806, 0.04817551374435425, -0.0210140198469162, 0.021927010267972946, -0.03676312044262886, 0.01897500455379486, 0.041449811309576035, 0.024574685841798782, 0.020740121603012085, -0.02124226838350296, 0.011944971047341824, -5.655672794091515e-05, -0.014927409589290619, -0.011944971047341824, -0.026005038991570473, 0.021394433453679085, 0.020314060151576996, 0.029017910361289978, -0.01095589715987444, 0.019309768453240395, 0.014067676849663258, -0.01670774258673191, 0.010332019999623299, -0.00534099992364645, -0.014607863500714302, -0.01065156701952219, -0.035058870911598206, -0.043062761425971985, 0.017285970970988274, 0.02416384033858776, 0.0009386693127453327, 0.011435218155384064, 0.017514219507575035, -0.00645941449329257, -0.016981640830636024, 0.052070945501327515, -0.031041709706187248, -0.010773299261927605, -0.013649222441017628, 0.030767811462283134, -0.0011364840902388096, 0.0484798438847065, -0.018229395151138306, -0.039836861193180084, -0.02256610430777073, 0.05073188990354538, -0.03956296294927597, 0.023646477609872818, 0.03055478073656559, -0.038102176040410995, -0.015886051580309868, 0.0388021357357502, 0.0194010678678751, 0.00495297834277153, -0.027770156040787697, 0.010210287757217884, 0.03222859650850296, 0.006836023181676865, -0.045862603932619095, 0.032502494752407074, 0.002991948975250125, 0.03676312044262886, 0.005458928178995848, -0.0034750737249851227, -0.003123191650956869, -0.020572740584611893, 0.029398323968052864, -0.023768210783600807, -0.019964080303907394, -0.033932849764823914, -0.04397575557231903, 0.002815056825056672, 0.006874064914882183, 0.023722561076283455, -0.015315431170165539, -0.005226876121014357, 0.036884855479002, 0.030889544636011124, 0.0014465207932516932, -0.001219223951920867, 0.001510240021161735, 0.006059980485588312, 0.0011726233642548323, -0.010750474408268929, 0.0018079133005812764, -0.00984509103000164, 0.0069653638638556, 0.005131772719323635, -0.011610208079218864, 0.00788215920329094, -0.01658601127564907, -0.020664039999246597, 0.04519307613372803, -0.028378818184137344, 0.02326606586575508, 0.017742466181516647, -0.026705000549554825, 0.005508381873369217, -0.00948750227689743, 0.014402439817786217, 0.025411594659090042, 0.03158950433135033, -0.04589303582906723, -0.003359047695994377, 0.011960187926888466, -0.01462307944893837, -0.005299154669046402, 0.04415835440158844, -0.02792232111096382, -0.018062014132738113, -0.004119873978197575, 0.0197510477155447, 0.027237577363848686, 0.006299640983343124, 0.011914538219571114, -0.016692526638507843, 0.007889768108725548, 0.039471663534641266, 0.011625424027442932, -0.012599281966686249, -0.022870436310768127, -0.011678681708872318, -0.04653213173151016, -0.02238350734114647, -0.03922819718718529, -0.006999601144343615, 0.038710836321115494, -0.002664793748408556, -0.007109920959919691, -0.022703053429722786, -0.009160347282886505, 0.010818948969244957, -0.0009129914687946439, -0.00087067048298195, -0.016129516065120697, 0.009350554086267948, -0.005668155383318663, 0.0015539875021204352, 0.020877070724964142, -0.0035112129990011454, -0.012378642335534096, 0.013770954683423042, -0.019172819331288338, -0.017757683992385864, -0.008003891445696354, -0.005858361721038818, 0.01711858995258808, 0.032502494752407074, 0.003771795891225338, -0.010697216726839542, -0.012850354425609112, 0.04762772098183632, 0.0011536027304828167, -0.033871982246637344, -0.0039030383341014385, -0.0013000618200749159, -0.024589903652668, -0.006455610506236553, -0.005626309663057327, 0.017985930666327477, -0.02953527309000492, -0.01860980875790119, -0.025563759729266167, 0.004945370368659496, 0.00799628347158432, 0.002567788353189826, 0.023311715573072433, 0.00862016063183546, 0.00015192748105619103, 0.002316715894266963, 0.015612153336405754, 0.015117616392672062, -0.038528237491846085, 0.0037756001111119986, 0.004907329101115465, -0.02524421364068985, 0.006759940646588802, 0.001090834615752101, 0.00102140917442739, -0.06463979184627533, 0.03721961751580238, -0.02501596510410309, -0.02948962338268757, -0.012485157698392868, -0.004287255462259054, 0.007486529648303986, 0.008148448541760445, -0.010636350139975548, 0.03740221634507179, 0.0291244275867939, -0.0005102290888316929, 0.014006810262799263, 0.005964877549558878, 0.016722960397601128, 0.01927933655679226, 0.053501296788454056, 0.009525544010102749, 0.010902639478445053, -0.006417568773031235, -0.007688148878514767, -0.00827018078416586, 0.00897774938493967, 0.03585013002157211, 0.0003668608842417598, -0.03332418575882912, 0.0063528986647725105, -0.019294552505016327, -0.007166982628405094, 0.0204053595662117, 0.007341973017901182, 0.01611429825425148, -0.015946917235851288, -0.0021360195241868496, -0.02799840457737446, -0.018244612962007523, -0.019948862493038177, 0.0026571855414658785, -0.02112053520977497, -0.03280682489275932, 0.0027066392358392477, -0.00047789394739083946, 0.01868589222431183, -0.018761973828077316, 0.016555577516555786, -0.01297969464212656, -0.005557835567742586, -0.001552085392177105, -0.009274471551179886, 0.021196618676185608, -1.876803617051337e-05, -0.02189657837152481, -0.0014379614731296897, -0.0022063960786908865, 0.005078515037894249, 0.0063262698240578175, -0.015612153336405754, 0.03472410887479782, 0.003925863187760115, 0.017803333699703217, 0.019203253090381622, -0.014927409589290619, -0.030661296099424362, 0.00833104643970728, -0.01915760338306427, 0.017316404730081558, -0.01868589222431183, -0.010933072306215763, 0.018214179202914238, 0.018883707001805305, -0.019735831767320633, -0.05992267280817032, -0.022748703137040138, -0.025457244366407394, -0.0204053595662117, -0.0090690478682518, 0.004157915245741606, -0.0242855716496706, -0.016570795327425003, -0.036610957235097885, 0.019538016989827156, 0.006505064200609922, -0.005961073096841574, 0.008483212441205978, -0.042819298803806305, -0.0007798468577675521, -0.0158251840621233, -0.017164239659905434, -0.017270755022764206, -0.005755650345236063, -0.006550713442265987, -0.016966424882411957, -0.0004431812558323145, -0.018716324120759964, -0.019127171486616135, -0.008894057944417, 0.03992816060781479, 0.009449461475014687, 0.013504665344953537, 0.010286370292305946, 0.02734409272670746, -0.0004251116479281336, -0.0015073869144544005, -0.018122879788279533, -0.010773299261927605, 0.01587083376944065, 0.01803158037364483, -0.012614498846232891, -0.024559469893574715, -0.008521253243088722, -0.017529435455799103, -0.00016060566122177988, 0.05742716044187546, -0.0001818850141717121, 0.0038497806526720524, 0.00699579669162631, 0.0016899851616472006, 0.01576431840658188, -0.00963966827839613, -0.007836509495973587, 0.0014018223155289888, 0.0033780683297663927, -0.02083142101764679, 0.00043390868813730776, -0.006817002780735493, 0.004294863902032375, 0.027526691555976868, 0.019598882645368576, 0.0005525500164367259, 0.023083467036485672, -0.014508955180644989, 0.015855617821216583, -0.017590301111340523, 0.003277258947491646, -0.03158950433135033, 0.014478522352874279, -0.03198513388633728, -0.0029253766406327486, 0.01157977432012558, 0.05271003767848015, -0.001397067098878324, -0.023798642680048943, 0.005786083173006773, -0.02489423379302025, 0.016099082306027412, 0.0071974159218370914, -0.006702878978103399, 0.00820170622318983, 0.017316404730081558, -0.02046622522175312, 0.013740520924329758, -0.007094704546034336, -0.009708141908049583, 0.05161444842815399, -0.004066615831106901, 0.04172370955348015, 0.008703852072358131, 0.017392486333847046, 0.0033057897817343473, -0.025518110021948814, -0.030448265373706818, -0.010126596316695213, -0.022231342270970345, 0.003456053091213107, -0.0028892375994473696, -0.025822442024946213, 0.011146103963255882, -0.023205198347568512, 0.007128941360861063, 0.019918430596590042, -0.0223226398229599, 0.007768035400658846, -0.010339627973735332, 0.014820894226431847, 0.04190630838274956, 0.011328701861202717, -0.004736143164336681, 0.015452380292117596, -0.0065469094552099705, -0.02107488550245762, 0.0051888348534703255, -0.007284910883754492, -0.01381660345941782, -0.01623603142797947, -0.018168529495596886, -0.0011098552495241165, 0.017575085163116455, -0.021379215642809868, 0.003313397988677025, 0.003212588606402278, -0.000359965895768255, -0.0002815056941471994, -0.008741892874240875, 0.005017648916691542, 0.005401866044849157, -0.0317416675388813, -0.03268509358167648, 0.01742292009294033, -0.015733886510133743, -0.010309195145964622, 0.0045839776284992695, -0.00677135307341814, -0.021516164764761925, -0.027648424729704857, -0.026157204061746597, 0.006661033257842064, 0.016555577516555786, -0.008726676926016808, -0.025944173336029053, 0.018275044858455658, -0.002101782476529479, 0.009122306481003761, 0.02501596510410309, -0.028561415150761604, 0.003406599396839738, 0.017681600525975227, 0.010735257528722286, 0.031193874776363373, -0.015170874074101448, 0.02005537785589695, 0.021287916228175163, -0.02977873757481575, -0.011587383225560188, 0.027465825900435448, 0.044736579060554504, 0.006170300301164389, 0.014356790110468864, 0.0249398835003376, 0.0029215726535767317, 0.009228821843862534, -0.0020295039284974337, -0.0038022289518266916, 0.00205232878215611, -0.01605343259871006, 0.021531380712985992, -0.0453452430665493, 0.007646303158253431, 0.021866144612431526, -0.020390141755342484, -0.005105143878608942, 0.02769407443702221, 0.01666209287941456, -0.03773697838187218, 0.028865745291113853, -0.02113575115799904, -0.01854894310235977, -0.017864199355244637, -0.02017711102962494, -0.00408563669770956, -0.0028245672583580017, 0.005637722089886665, -0.030220016837120056, 0.01605343259871006, 0.026111554354429245, -0.004154111258685589, 0.0043291011825203896, -0.008597335778176785, -0.012287342920899391, 0.0275114756077528, -0.036489225924015045, -0.007516962941735983, -0.005432298872619867, 0.003547352273017168, 0.014600254595279694, -0.00862016063183546, -0.0050252568908035755, -0.021196618676185608, 0.011450434103608131, 0.015300215221941471, 0.005382845178246498, 0.02565505914390087, 0.015733886510133743, 0.032198164612054825, 0.0008302516071125865, 0.009989648126065731, -0.012462332844734192, 0.012812313623726368, -0.018716324120759964, -0.009502719156444073, -0.0021531381644308567, 0.010225503705441952, -0.025928957387804985, -0.020572740584611893, 0.017681600525975227, 0.0226269718259573, -0.026887597516179085, -0.023083467036485672, -0.01574910245835781, 0.003963904455304146, -0.023418230935931206, -0.002649577334523201, -0.028744013980031013, -0.006193125154823065, 6.99009106028825e-05, -0.049210239201784134, 0.013862253166735172, 0.016859909519553185, -7.48343882150948e-05, 0.028896179050207138, 0.009898348711431026, 0.020846636965870857, -0.010027688927948475, 0.012462332844734192, -0.0004039511550217867, 0.0012553632259368896], "id": 22}, {"title": "Iron-sulfur protein", "text": "Iron-sulfur proteins are proteins characterized by the presence of iron-sulfur clusters containing sulfide-linked di-, tri-, and tetrairon centers in variable oxidation states. Iron-sulfur clusters are found in a variety of metalloproteins, such as the ferredoxins, as well as NADH dehydrogenase, hydrogenases, Coenzyme Q - cytochrome c reductase, Succinate - coenzyme Q reductase and nitrogenase.", "vector": [0.0017397718038409948, 0.024693535640835762, -0.027004428207874298, 0.030134037137031555, -0.0013097807532176375, -0.006054538302123547, 0.012346767820417881, -0.06491626799106598, 0.02242225967347622, 0.030398139730095863, -0.033567361533641815, 0.008332417346537113, 0.04101504012942314, 0.018632395192980766, 0.03142813593149185, 0.025102894753217697, -0.003322733100503683, 0.008325815200805664, -0.018183421343564987, 0.00779761141166091, 0.03924555703997612, -0.002695490838959813, -0.05551423877477646, 0.02038867399096489, 0.0066850814037024975, -0.012696702964603901, -0.005047649145126343, 0.028417373076081276, -0.10770078748464584, 0.053639113903045654, 0.04109426960349083, -0.010821579024195671, 0.008517289534211159, 0.007791008800268173, -0.01397099532186985, -0.029869934543967247, 0.013066445477306843, -0.005965403746813536, 0.021511107683181763, -0.008636134676635265, -0.027281735092401505, -0.0438409298658371, 0.008048508316278458, 0.01898893341422081, -0.005737615749239922, 0.04072452709078789, -0.019530342891812325, -0.0038723954930901527, 0.02565750852227211, -0.009415236301720142, 0.005394283216446638, 0.004935405682772398, -0.06370139867067337, 0.021735593676567078, 0.01867200993001461, 0.005691397935152054, -0.01898893341422081, 0.0768536776304245, 0.014050225727260113, -0.01873803697526455, -0.024733150377869606, 0.02412571758031845, -0.028998399153351784, -0.029896344989538193, 0.03774017468094826, -0.0039285169914364815, -0.032035570591688156, -0.027730708941817284, 0.007691970560699701, -0.007025112863630056, -0.017509961500763893, 0.010181131772696972, 0.0104782460257411, -0.04106786102056503, -0.01995290443301201, 0.05186963081359863, 0.0007498020422644913, 0.03253736346960068, 0.014538814313709736, -0.05614808201789856, -0.0106367077678442, -0.0037535494193434715, -0.0051499889232218266, 0.004318067338317633, -0.009454851038753986, -0.017179833725094795, -0.011726127937436104, -0.03715914860367775, 0.04584810510277748, 0.04259965196251869, 0.006886459421366453, 0.003697427920997143, 0.0002812273451127112, 0.019200215116143227, 0.04426349326968193, -0.031401727348566055, 0.09555210173130035, 0.03961529955267906, 0.052107322961091995, 0.018632395192980766, -0.03887581452727318, -0.0311112143099308, -0.0022234085481613874, -0.025881994515657425, 0.0628562718629837, -0.01152805145829916, -0.03187711164355278, 0.020850852131843567, -0.014657660387456417, 0.08678391575813293, -0.001743073109537363, -0.05519731715321541, -0.006411075592041016, 0.002711997367441654, 0.013944584876298904, -0.030134037137031555, -0.003558774245902896, -0.01397099532186985, -0.018275856971740723, 0.06121883913874626, 0.040803756564855576, -0.0014979534316807985, 0.041569653898477554, 0.03594427928328514, -0.061324480921030045, 0.06882497668266296, 0.026264943182468414, -0.008616327308118343, 0.007546714507043362, 0.006269121076911688, -0.03222044184803963, -0.009956644847989082, 0.052688345313072205, -0.02623853273689747, -0.019147394225001335, 0.005004732869565487, -0.013125868514180183, 0.02115456946194172, 0.016545990481972694, -0.0039087096229195595, -0.06391268223524094, -0.019781239330768585, -0.020401878282427788, 0.0451086200773716, 0.08266392350196838, 0.005183001514524221, -0.03779299557209015, 0.0381099171936512, 0.01390497013926506, -0.06697626411914825, -0.006100756116211414, 0.023782383650541306, 0.04629707708954811, -0.06518036872148514, 0.030820701271295547, 0.055725518614053726, -0.010458438657224178, -0.004859476815909147, 0.0168232973664999, -0.015925349667668343, 0.003187380963936448, 0.026278147473931313, -0.009606709703803062, 0.008999275043606758, -0.018711626529693604, -0.011072475463151932, -0.009435043670237064, -0.05300527065992355, -0.00695248506963253, -0.0064341844990849495, 0.009771773591637611, -0.031586598604917526, 0.002969496650621295, -0.030398139730095863, 0.014723685570061207, 0.018381498754024506, 0.0004803354968316853, 0.0024132318794727325, 0.05609526112675667, 0.04310144484043121, 0.0013956140028312802, 0.03924555703997612, -0.020098160952329636, -0.010418823920190334, 0.0438409298658371, 0.04711579531431198, 0.004651496186852455, 0.024350203573703766, 0.008530493825674057, -0.017193039879202843, 0.014393558725714684, -0.011732731014490128, 0.03853248059749603, 0.024310588836669922, -0.010240554809570312, 0.008715366013348103, -0.008986069820821285, 0.027836348861455917, -0.006123865023255348, -0.08525212109088898, -0.013508817180991173, -0.04241478070616722, 0.010722540318965912, 0.00905209593474865, 0.04101504012942314, 0.036419663578271866, 0.010603695176541805, -0.0015631536953151226, 0.01772124320268631, 0.03163941949605942, 0.00689306203275919, -0.03462377190589905, -0.04624425992369652, 0.010537669062614441, -0.02147149108350277, 0.0012602616334334016, 0.00030474894447252154, 0.021563926711678505, -0.009745363146066666, 0.020969698205590248, 0.003433325793594122, 0.04278452321887016, 0.052239373326301575, 0.014684070833027363, 0.021748797968029976, 0.008167354390025139, -0.014406763948500156, 0.008754980750381947, -0.029817113652825356, -0.004866078961640596, 0.019015343859791756, 0.017259065061807632, 0.028945578262209892, -0.00681383116170764, -0.0546162910759449, 0.00047579623060300946, 0.0021012614015489817, -0.03074147179722786, -0.0495455339550972, -0.00790325179696083, 0.033118389546871185, 0.05931730568408966, -0.019226625561714172, -0.0019477522000670433, -0.04777605086565018, 0.03200916200876236, -0.012293947860598564, -0.03142813593149185, -0.02089046686887741, 0.03377864509820938, -0.04009068012237549, -0.00757312448695302, 0.013224907219409943, 0.011343180201947689, 0.018064575269818306, 0.04090939834713936, 0.013106061145663261, -0.0222373865544796, -0.007348638027906418, 0.03671017661690712, -0.0042652469128370285, -0.007850431837141514, 0.047591179609298706, -0.0336465947329998, 0.015093429014086723, 0.006731299217790365, 0.024878406897187233, -0.046455539762973785, -0.014155866578221321, -0.003634703578427434, 0.04352400824427605, -0.006965689826756716, -0.03219403326511383, 0.0051499889232218266, 0.001403867150656879, -0.0020946587901562452, -0.0013815835118293762, 0.023174948990345, 0.008840814232826233, 0.023465462028980255, 0.0024908119812607765, 0.020335853099822998, 0.0041695102117955685, -0.021313030272722244, 0.025802765041589737, -0.008787993341684341, -0.004096881952136755, 0.006123865023255348, -0.033884286880493164, -0.04154324159026146, -0.019068162888288498, -0.0323789045214653, 0.02685917168855667, -0.023584308102726936, 0.01168651320040226, 0.004625086206942797, -0.0009293088805861771, 0.028470193967223167, 0.02305610291659832, 0.09127365052700043, 0.005229219328612089, 0.0011554461671039462, -0.016942143440246582, 0.011138501577079296, 0.035284027457237244, 0.0026030552107840776, -0.0412791408598423, 0.023095719516277313, 0.01346259843558073, -0.06972292810678482, -0.02802122011780739, 0.02413892187178135, -0.025300970301032066, 0.0022613732144236565, 0.015397146344184875, -0.051790401339530945, 0.03692145645618439, -0.029737884178757668, 0.0014319280162453651, -0.026634685695171356, 0.026264943182468414, 0.007632547523826361, -0.07199420034885406, 0.008074918761849403, 0.026212122291326523, -0.018143806606531143, -0.020164186134934425, 0.0565178245306015, 0.0023901229724287987, -0.051156554371118546, 0.016545990481972694, 0.007276009768247604, -0.020718801766633987, 0.02660827524960041, 0.008840814232826233, -0.044554006308317184, -0.06586703658103943, 0.00646389601752162, -0.040750935673713684, -0.019966110587120056, 0.0037667546421289444, -0.02744019590318203, 0.00017465806740801781, -0.019279444590210915, 0.05609526112675667, -0.008206969127058983, 0.019860468804836273, 0.02343905158340931, -0.01860598474740982, -0.07627265155315399, 0.0006350827752612531, 0.028549425303936005, -0.028285322710871696, -0.06945881992578506, 0.009269979782402515, 0.012406190857291222, 0.02050752006471157, -0.029817113652825356, 0.0050080339424312115, -0.04576887562870979, -0.02293725684285164, -0.009435043670237064, 0.02470674179494381, 0.01988687925040722, 0.004390695597976446, 0.018592780455946922, -0.012756126001477242, 0.028945578262209892, -0.011098885908722878, -0.04450118541717529, -0.04178093373775482, 0.021933671087026596, 0.03253736346960068, 0.06956446170806885, -0.0276250671595335, -0.031005574390292168, -0.0038294787518680096, -0.008345622569322586, -0.03396351635456085, 0.0244558434933424, 0.04872681573033333, 0.019319061189889908, -0.0857275053858757, -0.017008168622851372, 0.06702908128499985, -0.012379780411720276, 0.013297535479068756, -0.038638122379779816, -0.02450866438448429, -0.005539539270102978, -0.07204702496528625, -0.010095298290252686, 0.015648042783141136, 0.002632766729220748, 0.04679887369275093, -0.040988627821207047, -0.041252732276916504, 0.037634532898664474, -0.015898939222097397, 0.003433325793594122, -0.026080071926116943, 0.047591179609298706, -0.0704624131321907, 0.00385919027030468, -0.010247156955301762, -0.05873628333210945, -0.011257347650825977, -0.026330968365073204, 0.015331120230257511, 0.020296238362789154, -0.004199221730232239, -0.04428990185260773, 0.010035875253379345, 0.0020831043366342783, 0.013601252809166908, -0.016876116394996643, -0.013422983698546886, 0.035099152475595474, 0.008721968159079552, -0.008385238237679005, 0.03317121043801308, 0.0026047059800475836, -0.02388802543282509, -0.01917380467057228, 0.0476175881922245, 0.028866346925497055, 0.01663842611014843, -0.009375620633363724, 0.025129303336143494, 0.004248740617185831, -0.046006567776203156, 0.011303565464913845, -0.045504771173000336, -0.010616900399327278, -0.00835222564637661, 0.024733150377869606, 0.013720097951591015, -0.0052490271627902985, 0.0012833706568926573, 0.015304709784686565, -0.02293725684285164, 0.054140906780958176, -0.023346615955233574, -0.0038955044001340866, -0.0374760739505291, 0.018051370978355408, 0.03079429268836975, -0.007348638027906418, 0.006361556705087423, 0.02883993647992611, 0.003377204295247793, -0.06787420809268951, -0.010082093067467213, 0.010425426065921783, 0.019398290663957596, -0.007130753714591265, -0.002617910970002413, -0.01374650839716196, 0.04178093373775482, 0.03264300525188446, -0.020428288727998734, -0.00147732044570148, -0.03531043604016304, 0.00010811675019795075, 0.05313732102513313, 0.014802916906774044, 0.011349783279001713, 0.02185443975031376, -0.015780093148350716, 0.03884940221905708, 0.004598675761371851, -0.01834188401699066, -0.02501045912504196, 0.002370315371081233, 0.010108503513038158, -0.02217136137187481, -0.001405517803505063, 0.007982482202351093, 0.011501641944050789, 0.016149837523698807, 0.024878406897187233, 0.028364554047584534, -0.04545195400714874, -0.012525036931037903, 0.016981758177280426, 0.04186016693711281, 0.023518282920122147, 0.05429936945438385, 0.011442218907177448, 0.04737989604473114, 0.022633539512753487, -0.016981758177280426, -0.03142813593149185, -0.029130449518561363, 0.030134037137031555, -0.015515991486608982, 0.0013972645392641425, 0.010663118213415146, -0.004661399871110916, 0.016030991449952126, 0.016215862706303596, 0.00907850544899702, 0.005622071214020252, 0.04928142949938774, -0.038268379867076874, 0.0076787653379142284, 0.01720624417066574, -0.019081369042396545, -0.007586329709738493, 0.020850852131843567, 0.007817419245839119, -0.06370139867067337, -0.023650333285331726, -0.005087264347821474, -0.019517136737704277, 0.009910427033901215, 0.038902223110198975, -0.01041222084313631, -0.0324053131043911, 0.04394657164812088, 0.02388802543282509, 0.02965865284204483, 0.006671876646578312, -0.025433020666241646, 0.01690252684056759, -0.02120739035308361, -0.014116250909864902, -0.039536066353321075, -0.018368292599916458, 0.04146401211619377, 0.033435311168432236, 0.020877262577414513, -0.011263949796557426, -0.002116117160767317, -0.026687506586313248, 0.010709336027503014, 0.030503779649734497, 0.034201208502054214, 0.0022663252893835306, 0.02947378158569336, 0.010458438657224178, 0.02172238938510418, -0.031533777713775635, -0.011158308945596218, -0.02287123166024685, -0.01140260323882103, -0.027836348861455917, -0.015608427114784718, 0.002943086437880993, -0.04769681766629219, 0.011495038866996765, 0.016215862706303596, -0.01968880370259285, 0.011613884940743446, 0.002142527373507619, -0.029579423367977142, 0.038955044001340866, -0.02273918129503727, 0.00511367479339242, -0.030635830014944077, 0.0009169291006401181, -0.009263377636671066, 0.02052072435617447, -0.029764294624328613, 0.028047630563378334, 0.05131501704454422, -0.00579373724758625, -0.013297535479068756, 0.005381077993661165, -0.040671706199645996, 0.012868368998169899, -0.011996832676231861, 0.018566370010375977, 0.0046911113895475864, -0.0055857570841908455, 0.06761010736227036, -0.002456148387864232, -0.017813678830862045, 0.017919320613145828, -0.014433173462748528, -0.01766842231154442, -0.04465964809060097, -0.016598809510469437, 0.006655369885265827, -0.000272974168183282, 0.0033706016838550568, -0.007058125454932451, -0.013759713619947433, -0.023003283888101578, -0.007665560115128756, 0.012848561629652977, -0.0015466472832486033, -0.02013777755200863, 0.033303260803222656, 0.003324383869767189, 0.0048330663703382015, 0.007526906672865152, -0.027915580198168755, -0.009441645815968513, 0.015317915007472038, 0.030635830014944077, 0.025895200669765472, 0.020415084436535835, -0.04611220583319664, 0.019464315846562386, 0.047802459448575974, 0.01784008927643299, -0.012293947860598564, 0.009164338931441307, 0.010709336027503014, 0.013198496773838997, -0.01181856356561184, 0.03969452902674675, 0.014287917874753475, 0.0317450575530529, 0.019979314878582954, -0.0012239476200193167, 0.01315227895975113, 0.008266392163932323, -0.027413787320256233, 0.024059690535068512, 0.02502366341650486, 0.04267888143658638, 0.006080948282033205, -0.011389398016035557, 0.00689306203275919, -0.01677047647535801, -0.02210533618927002, -0.005975307431071997, 0.01076215598732233, -0.003167573129758239, -0.03105839341878891, -0.03660453483462334, 0.014169071801006794, -0.020745210349559784, 0.0012817200040444732, 0.010280169546604156, 0.012234524823725224, 0.004308163654059172, 0.0035158577375113964, -0.004288355819880962, -0.0016778729623183608, 0.041120678186416626, -0.05348065122961998, -0.00581354508176446, 0.026330968365073204, 0.014129456132650375, -0.014934967271983624, 0.0010349496733397245, 0.006807228550314903, 0.011131898500025272, 0.0034795436076819897, 0.007025112863630056, -0.0035554729402065277, 0.022329824045300484, -0.00853709690272808, -0.025116099044680595, -0.0203226488083601, 0.041886575520038605, -0.01140260323882103, 0.01339657325297594, -0.00779761141166091, -0.012492024339735508, -0.02279200218617916, -0.007005305029451847, 0.03232608363032341, -0.005232520867139101, 0.014987788163125515, -0.029447371140122414, 0.02217136137187481, -0.04653476923704147, -0.04428990185260773, -0.03142813593149185, 0.014063430950045586, -0.012379780411720276, -0.006011621560901403, 0.013865354470908642, 0.034835051745176315, 0.0016465107910335064, -0.03087352216243744, -0.03224685415625572, 0.005430597346276045, 0.021933671087026596, 0.018394703045487404, -0.018011756241321564, -0.012676895596086979, 0.02560468763113022, -0.03866453096270561, -0.015846120193600655, 0.01098664291203022, -0.0020913577172905207, -0.01346259843558073, -0.003383806673809886, -0.022395849227905273, 0.003710632910951972, -0.0077778035774827, 0.019530342891812325, -0.015199069865047932, -0.056623466312885284, -0.013825738802552223, 0.024931227788329124, 0.018896497786045074, 0.016308298334479332, 0.042150676250457764, 0.017311885952949524, -0.013667277991771698, -0.0016085461247712374, -0.03259018436074257, 6.762455450370908e-05, -0.004935405682772398, 0.015489581972360611, -0.00779761141166091, 0.003400313202291727, -0.00315931998193264, 0.0010745649924501777, 0.06755729019641876, -0.03232608363032341, 0.015991374850273132, 0.0016729210037738085, 0.0044402144849300385, 0.03332966938614845, 0.028153272345662117, -0.010247156955301762, 0.014023815281689167, 0.00848427601158619, 0.01045183651149273, -0.011693115346133709, -0.01187798660248518, 9.527272777631879e-05, 0.01720624417066574, 0.005833352450281382, 0.04542554169893265, -0.026766736060380936, 0.020547134801745415, -0.023650333285331726, 0.04159606248140335, -0.0009664482204243541, 0.027598658576607704, 0.013891764916479588, -0.01000286266207695, 0.01327772717922926, -0.0016035942826420069, -0.018817266449332237, 0.04872681573033333, -0.029447371140122414, -0.00940203107893467, -0.014697276055812836, 0.04751194640994072, -0.012624074704945087, 0.020877262577414513, 0.052107322961091995, -0.02419174276292324, -0.014499199576675892, -0.022976873442530632, -0.050839632749557495, -0.01123753935098648, 0.013865354470908642, -0.013548431918025017, 0.012518433853983879, 0.06454652547836304, -0.003045425983145833, -0.011891191825270653, -0.004126593470573425, 0.042203497141599655, 0.01438035350292921, -0.0005112849175930023, -0.006384665612131357, -0.034254029393196106, -0.009976452216506004, -0.006794023793190718, -0.007322227582335472, 0.047987330704927444, 0.0038922030944377184, 0.018830472603440285, -0.039351195096969604, 0.016413938254117966, -0.01537073589861393, 0.007982482202351093, 0.023954050615429878, 0.01362766232341528, -0.022897642105817795, 0.026212122291326523, -0.04386734217405319, 0.001316383364610374, 0.030715061351656914, -0.0355481281876564, 0.028734296560287476, -0.01860598474740982, -0.01537073589861393, -0.009065301157534122, 0.018526755273342133, -0.013449394144117832, 0.035785820335149765, 0.038136325776576996, 0.05746859312057495, 0.01612342707812786, -0.03362018242478371, -0.004067170433700085, -0.010689527727663517, 0.00157965999096632, 0.018909702077507973, 0.0029513398185372353, -0.01873803697526455, 0.02692519687116146, 0.029896344989538193, -0.0032913710456341505, -0.03156018629670143, -0.05086604133248329, -0.001427801325917244, -0.011970422230660915, -0.006378063000738621, -0.03760812431573868, 0.02192046493291855, 0.08139622956514359, -0.007599534932523966, -0.013079650700092316, -0.0002368664718233049, -0.0034201208036392927, 0.022752385586500168, 0.00975196622312069, 0.008200366981327534, 0.0035554729402065277, -0.014552019536495209, 0.0279419906437397, 0.032167620956897736, -0.01397099532186985, 0.03929837420582771, 0.006860048975795507, 0.03377864509820938, -0.012392985634505749, -0.0021969983354210854, -0.02083764784038067, 0.014406763948500156, 0.007236394565552473, -0.01327112503349781, 0.028417373076081276, 0.01695534773170948, 0.013165484182536602, 0.0022102035582065582, -0.019992521032691002, 0.05488039180636406, -0.027783529832959175, -0.01988687925040722, -0.03163941949605942, 0.0035389666445553303, 0.031533777713775635, -0.024178536608815193, 0.022659949958324432, 0.03626120463013649, 0.034967102110385895, 9.599488112144172e-05, -0.020362263545393944, 0.04212426766753197, -0.0362083837389946, -0.035970691591501236, 0.011904397048056126, -0.013535226695239544, -0.035151973366737366, 0.04603297635912895, -0.018460728228092194, 0.023531487211585045, 0.004380791913717985, 0.004215728025883436, 0.05593680217862129, -0.001165349967777729, 0.018619190901517868, 0.004116689786314964, -0.020415084436535835, 0.005430597346276045, -0.01162709016352892, -0.005219315644353628, -0.0025898502208292484, 0.014842531643807888, -0.0004035808378830552, -0.031348906457424164, -0.004885886795818806, -0.001365077099762857, 0.00946145411580801, -0.027070453390479088, 0.040301963686943054, 0.007784406188875437, -0.03486146405339241, 0.03182429075241089, 0.004186016507446766, -0.005602263379842043, 0.02305610291659832, 0.025815969333052635, -0.009857607074081898, -0.011263949796557426, -0.024680331349372864, -0.02248828485608101, -0.03169224038720131, 0.02617250755429268, 0.04331272467970848, 0.012723113410174847, 1.4804154488956556e-05, 0.052556294947862625, 0.018645599484443665, -0.0238220002502203, -0.012115678749978542, -0.0008315086015500128, 0.017457140609622, -0.031797878444194794, -0.057891156524419785, 0.013706893660128117, -0.02947378158569336, 0.013409778475761414, -0.02235623262822628, 0.004905694629997015, 0.0009796533267945051, 0.007962674833834171, 0.014829326421022415, 0.0016572399763390422, -0.0380835086107254, -0.009613312780857086, 0.0037766583263874054, -0.0041596065275371075, 0.01257125474512577, 0.025551866739988327, 0.01637432351708412, 0.01175253838300705, -0.03898145258426666, 0.01595176011323929, 0.02812686190009117, -0.014974582940340042, -0.035099152475595474, -0.0007894173613749444, 0.011158308945596218, -0.005219315644353628, -0.041754525154829025, -0.03156018629670143, -0.034069158136844635, 0.040169913321733475, -0.00549332145601511, -0.021418672055006027, -0.02820609323680401, 0.019596368074417114, 0.03541607782244682, -0.01123753935098648, 0.0032946723513305187, 0.003585184458643198, 0.04241478070616722, -0.002895218087360263, 0.006767613347619772, 0.017509961500763893, 0.06803267449140549, -0.004915598314255476, 0.007599534932523966, -0.012181703932583332, 0.02412571758031845, -0.012029845267534256, -0.017628807574510574, -0.054774753749370575, -0.012208114378154278, 0.01467086561024189, 0.007982482202351093, -0.010029273107647896, -0.01644034869968891, -0.01817021705210209, -0.011184719391167164, -0.028364554047584534, 0.03398992493748665, -0.005242424551397562, 0.004975021351128817, -0.003997843712568283, -0.0042652469128370285, -0.006384665612131357, -0.04843630641698837, -0.026951607316732407, -0.007559919264167547, 0.005466911010444164, -0.023544691503047943, 0.04275811091065407, 0.040354784578084946, 0.03269582614302635, -0.010649912990629673, 0.038638122379779816, -0.01088760420680046, 0.015423555858433247, 0.014974582940340042, -0.024931227788329124, 0.0023373025469481945, -0.0168232973664999, 0.015476376749575138, 0.03060941956937313, -0.0008038604282774031, 0.009131326340138912, 0.03277505561709404, -0.005440501030534506, 0.03676299750804901, 0.01438035350292921, 0.013944584876298904, 0.052239373326301575, -0.014472789131104946, 0.028734296560287476, 0.019081369042396545, 0.005298546049743891, -0.01925303414463997, -0.010630104690790176, -0.006529921665787697, -0.021616747602820396, -0.00924356933683157, -0.012333562597632408, 0.0146048404276371, 0.013416380621492863, 0.024231357499957085, -0.016149837523698807, 0.001392312697134912, -0.01696855202317238, 0.018658805638551712, -0.014565224759280682, -0.019913289695978165, 0.023703154176473618, 0.010399015620350838, -0.022277003154158592, -0.023161744698882103, 0.020177392289042473, 0.00010667244350770488, 0.0016399082960560918, 0.04819861426949501, -0.026449814438819885, 0.013931379653513432, -0.021180979907512665, 0.05498603358864784, -0.0168232973664999, 0.0022762289736419916, -0.007936264388263226, 0.035284027457237244, -0.002294386038556695, -0.004687810316681862, -0.013838944025337696, 0.03235249221324921, -0.020098160952329636, -0.027096863836050034, -0.027545837685465813, 0.0008987720939330757, -0.040988627821207047, -0.07627265155315399, -0.0025238245725631714, 0.0292096808552742, 0.015278300270438194, 0.0038294787518680096, 0.0122279217466712, -0.004846271593123674, 0.03599710017442703, -0.012056255713105202, -0.008992672897875309, -0.03222044184803963, 0.007975880056619644, -0.005552744492888451, -0.021484697237610817, 0.032299675047397614, -0.007956072688102722, -0.011594077572226524, -0.004701015539467335, -0.010847989469766617, 0.031084803864359856, -0.005097168497741222, 0.03119044564664364, -0.000940038007684052, -0.01508022379130125, -0.007216586731374264, -0.007071330677717924, 0.04141119122505188, 0.02502366341650486, -0.004790149629116058, -0.007731585763394833, 0.02102251909673214, 0.0001611434854567051, -0.014710480347275734, -0.002944737207144499, 0.043207086622714996, 0.016796886920928955, -0.011653500609099865, 0.012729715555906296, 0.016308298334479332, 0.0035554729402065277, 0.01760239712893963, 0.017259065061807632, -0.02450866438448429, -0.03586504980921745, -0.014142661355435848, -0.019715214148163795, 0.0298435240983963, 0.006140371318906546, 0.06174704432487488, 0.012690100818872452, -0.01251183170825243, 0.00288201286457479, 0.008550302125513554, 0.000940038007684052, -0.012459011748433113, 0.017298679798841476, -0.0056715901009738445, 0.040618885308504105, 0.020745210349559784, -0.01374650839716196, 0.04056606441736221, -0.0025650905445218086, 0.019741622731089592, -0.007282612379640341, -0.01438035350292921, -0.005955500062555075, 0.019530342891812325, -0.008556904271245003, 0.004483131226152182, -0.03354095295071602, 0.0034432297106832266, 0.01438035350292921, 0.024469049647450447, -0.01968880370259285, 0.021946875378489494, 0.02293725684285164, 0.017193039879202843, -0.04413144290447235, -0.0038459852803498507, 0.008041905239224434, -0.019543547183275223, -0.01688932254910469, 0.012412793934345245, -0.003319431794807315, 0.010029273107647896, 0.03472940996289253, -0.03222044184803963, 0.01187138445675373, 0.026185711845755577, -0.00040750112384557724, -0.024165332317352295, -0.004770342260599136, -0.00819376390427351, 0.02952660247683525, -0.03372582420706749, 0.015700863674283028, -0.035917870700359344, 0.006774215959012508, 0.04241478070616722, 0.02654225006699562, -0.033567361533641815, 0.002981051104143262, 0.019002137705683708, 0.01432753261178732, -0.0036644150968641043, 0.015766888856887817, 0.010095298290252686, 0.02939455211162567, -0.011897794902324677, 0.006846844218671322, 0.039034273475408554, -0.026146097108721733, -0.015159454196691513, 0.008173956535756588, 0.003000858938321471, -0.013733303174376488, -0.014816121198236942, 0.0012016640976071358, -0.014485994353890419, 0.002434690250083804, 0.0077645983546972275, 0.004875983111560345, -0.006526620592921972, 0.025802765041589737, -0.004743931815028191, -0.02279200218617916, -0.004242138005793095, 0.0029034712351858616, -0.0022498187609016895, 0.02262033522129059, -0.014816121198236942, -0.023359820246696472, 0.004859476815909147, 0.0212866198271513, -0.04524067044258118, -0.026766736060380936, 0.03227326273918152, -0.013614457100629807, 0.020494313910603523, -0.007810816168785095, -0.0022135048639029264, 0.0005612167296931148, -0.034518130123615265, -0.010682925581932068, 0.018394703045487404, 0.010649912990629673, 0.003964831121265888, 0.006734600756317377, 0.002674032701179385, 0.009983055293560028, -0.024733150377869606, -0.021484697237610817, 0.022369438782334328, 0.07067368924617767, 0.002723551820963621, -0.02965865284204483, 0.016744066029787064, 0.005044348072260618, 0.013191894628107548, -0.009164338931441307, 0.04069811478257179, -0.039034273475408554, 0.028813527897000313, -0.02020380273461342, 0.051843222230672836, -0.003961530048400164, -0.01817021705210209, -0.011600679717957973, 0.019358675926923752, -0.002119418466463685, 0.000877313781529665, 0.006622357293963432, 0.005859762895852327, -0.016928937286138535, -0.024086100980639458, 0.004701015539467335, 0.029605833813548088, -0.0008814404136501253, -0.019451111555099487, -0.0063483514823019505, 0.0002898931852541864, 0.0010869447141885757, -0.012300550006330013, 0.00018982330220751464, -0.021577132865786552, 0.026819556951522827, 0.016215862706303596, 0.031216854229569435, -0.026383789256215096, 0.022646745666861534, -0.01638752780854702, 0.016057400032877922, 0.005879570730030537, -0.002730154199525714, -0.004859476815909147, 0.017430732026696205, 0.037185560911893845, 0.015093429014086723, -0.010068888776004314, 0.01574047841131687, 0.030318908393383026, -0.010649912990629673, -0.0008929948671720922, -0.0212866198271513, 0.017298679798841476, 0.008754980750381947, -0.014552019536495209, -0.003387107979506254, 0.022897642105817795, 0.010960232466459274, -0.009256774559617043, 0.040935806930065155, -0.025749944150447845, -0.00192959513515234, 0.06153576448559761, -0.0615885853767395, -0.014908556826412678, 0.005849859211593866, 0.004489733837544918, 0.011858179233968258, 0.008325815200805664, 0.025300970301032066, -0.005209411960095167, 0.023716358467936516, 0.02965865284204483, -0.011013053357601166, -0.03766094520688057, -0.062328070402145386, 0.02217136137187481, -0.011679910123348236, 0.020626366138458252, -0.016849707812070847, -0.0177872683852911, 0.012234524823725224, 0.008325815200805664, 0.021682772785425186, 0.01943790726363659, 0.021048927679657936, 0.03148095682263374, 0.013224907219409943, -0.010557477362453938, -0.02394084446132183, 0.031586598604917526, 0.04452759400010109, -0.006483703851699829, -0.013680483214557171, -0.0017826884286478162, 0.014367148280143738, 0.023227769881486893, -0.00385919027030468, -0.031586598604917526, -0.012029845267534256, 0.011204526759684086, 0.022184567525982857, 0.05556705966591835, 0.005816846154630184, -0.026766736060380936, 0.005301847588270903, -0.004047363065183163, 0.0451086200773716, -0.029896344989538193, -0.021748797968029976, 0.022686360403895378, 0.0070119076408445835, 0.023016488179564476, 0.021511107683181763, 0.014578429982066154, -0.004053965676575899, -0.015859324485063553, -0.022699566558003426, -0.036419663578271866, -0.011217731982469559, 0.0027895772363990545, -0.007104343269020319, 0.03148095682263374, -0.04793450981378555, 0.0006004193564876914, -0.003558774245902896, -0.009045492857694626, 0.012234524823725224, 0.02725532464683056, 0.024152126163244247, -0.006308736279606819, 0.01514624897390604, 0.04428990185260773, -0.04598015546798706, -0.021260209381580353, 0.03396351635456085, 0.01257125474512577, -0.012782536447048187, -0.03156018629670143, 0.002332350704818964, 0.00771838054060936, 0.0065992483869194984, 0.011673307977616787, -0.03148095682263374, -0.024680331349372864, 0.001429451978765428, -0.008735173381865025, 0.0010877700988203287, -0.022118542343378067, -0.006054538302123547, 0.036049921065568924, -0.035151973366737366, -0.02693840302526951, -0.0001091484009521082, 0.04183375462889671, -0.0009037239942699671, -0.005278738681226969, 0.014182277023792267, 0.020784826949238777, -0.006539825350046158, -0.04167529568076134, -0.01521227415651083, -0.007414663210511208, -0.02928891032934189, -0.008787993341684341, 0.03544248640537262, 0.02780994027853012, 0.03520479425787926, -0.00806831568479538, 0.020375467836856842, 0.03568017855286598, -0.005262231919914484, -0.009672734886407852, 0.008642737753689289, -0.013073048554360867, -0.013614457100629807, -0.011283757165074348, 0.009619914926588535, -0.024020075798034668, 0.01432753261178732, 0.03346172347664833, 0.02515571378171444, -0.026370583102107048, -0.021960079669952393, 0.007909854874014854, 0.004126593470573425, 0.007309022359549999, 0.01304663810878992, 0.014565224759280682, 0.0012082665925845504, 0.031850699335336685, 0.016361117362976074, 0.019596368074417114, -0.0043642851524055, 0.01638752780854702, 0.00981138925999403, 0.01362766232341528, 0.022818412631750107, 0.01702137291431427, 0.02272597700357437, -0.03742325305938721, 8.865727977536153e-06, 0.013522021472454071, -0.01261087041348219, 0.00031774770468473434, 0.008345622569322586, 0.013772918842732906, 0.004796752240508795, -0.03993222117424011, -0.017496757209300995, 0.04732707515358925, 0.013165484182536602, 0.0292096808552742, 0.015119838528335094, -0.03163941949605942, 0.03322403132915497, 0.028734296560287476, -0.007989085279405117, 0.011495038866996765, -0.0012107425136491656, -0.010900809429585934, 0.014948172494769096, -0.005189604125916958, 0.006972292438149452, -0.018777651712298393, -0.00040502517367713153, 0.00636815931648016, 0.0026657795533537865, 0.021035723388195038, -0.018896497786045074, 0.015278300270438194, 0.054827574640512466, -0.004172811284661293, -0.00048735071322880685, 0.009672734886407852, -0.009375620633363724, -0.0257235337048769, -0.0247727669775486, -0.015582017600536346, 0.023993665352463722, 0.026014046743512154, 0.023003283888101578, 0.026132890954613686, -0.012432601302862167, 0.001819002442061901, -0.009534081444144249, -0.006179986521601677, -0.00930299237370491, 0.04230913892388344, -0.024297382682561874, -0.02140546590089798, 0.02217136137187481, -0.005896077025681734, 0.03222044184803963, 0.0033260344062000513, 0.020798031240701675, -0.01496137771755457, -0.036102741956710815, -0.0190549585968256, -0.020177392289042473, 0.02584237977862358, -0.007639150135219097, -0.057943977415561676, -0.018262652680277824, 0.011283757165074348, 0.04458041489124298, -0.012148691341280937, 0.02470674179494381, 0.009210556745529175, -0.019345469772815704, -0.03726479038596153, -0.057257309556007385, 0.04344477877020836, -0.03145454823970795, 0.025116099044680595, -0.026146097108721733, 0.025736737996339798, -0.052107322961091995, 0.001555725815705955, 0.0010968485148623586, 0.010326387360692024, -0.02876070700585842, 0.014565224759280682, 0.02692519687116146, -0.0007828148081898689, 0.00601822417229414, 0.005483417771756649, -0.02979070506989956, -0.004050664138048887, -0.007183574140071869, 0.008649339899420738, 0.028892757371068, -0.020850852131843567, -0.009045492857694626, 0.030847111716866493, -0.009989657439291477, 0.002282831585034728, 0.0022118540946394205, 0.03702709823846817, 0.008550302125513554, 0.010498054325580597, -0.04053965583443642, 4.330344017944299e-05, -0.026317764073610306, 0.018962522968649864, -0.025670712813735008, -0.020626366138458252, 0.009613312780857086, -0.008200366981327534, 0.007348638027906418, 0.012267537415027618, 0.010471643880009651, -0.007434471044689417, -0.017549576237797737, 0.03393710404634476, 0.018962522968649864, -0.009190749377012253, -0.008147546090185642, 0.006807228550314903, 0.007995687425136566, -0.020599955692887306, 0.014274712651968002, -0.018830472603440285, -0.03449172154068947, 0.001580485375598073, 0.005367872770875692, -0.039852991700172424, 0.005367872770875692, 0.020296238362789154, 0.01644034869968891, 0.006794023793190718, 0.023174948990345, -0.0008224301273003221, 0.008306007832288742, -0.0019378483993932605, 0.030081216245889664, -0.010042478330433369, 0.029104039072990417, 0.010775361210107803, -0.016427144408226013, 0.00135352264624089, 0.0330127477645874, -0.02680635266005993, 0.01575368270277977, -0.009553889743983746, -0.01209587138146162, -0.016347913071513176], "id": 23}, {"title": "Thomas W. Osborn", "text": "Thomas Ward Osborn (March 9, 1833 \u2013 December 18, 1898) was a Union Army officer and United States Senator representing Florida.", "vector": [0.019104544073343277, -0.03285294026136398, -0.018417123705148697, 0.004163902718573809, 0.011328106746077538, 0.0011752373538911343, 0.03989899531006813, -0.016741538420319557, -0.02066555991768837, 0.061524078249931335, -0.03763623908162117, 0.020722845569252968, -0.01825959049165249, 0.019763320684432983, -0.0496947281062603, 0.050954997539520264, -0.03434235230088234, 0.011951080523431301, 0.013046656735241413, 0.012130096554756165, 0.04708826169371605, 0.028842991217970848, 0.010117961093783379, 0.024331798776984215, 0.029315592721104622, 0.051928844302892685, 0.017443278804421425, 0.01634054258465767, 0.03302479535341263, 0.013576542027294636, -0.014643475413322449, 0.023114493116736412, 0.025420213118195534, 0.03457149118185043, 0.0011868734145537019, -0.012144417501986027, -0.00537404790520668, 0.030045976862311363, -0.002015715464949608, 0.03789402171969414, 0.027983717620372772, -0.035115696489810944, 0.018660584464669228, 0.015395340509712696, 0.02248435840010643, -0.034514207392930984, -0.06559131294488907, -0.019176149740815163, -0.012316272594034672, 0.032108236104249954, -0.01532373484224081, 0.011900956742465496, -0.020350491628050804, -0.005893193185329437, 0.05018164962530136, 0.005356146488338709, 0.03428506478667259, 0.07441320270299911, 0.0036913014482706785, 0.02824150025844574, -0.030532898381352425, -0.0312776044011116, -0.011213536374270916, -0.017744025215506554, -0.01222318410873413, -0.0013936363393440843, 0.03600361570715904, 0.03391271457076073, -0.052673548460006714, -0.020135672762989998, -0.0011430145241320133, -0.021324336528778076, 0.0061402348801493645, 0.08334966003894806, 0.0004222530114930123, 0.03941207379102707, 0.03680560365319252, -0.008678675629198551, -0.012309111654758453, 0.0037306849844753742, 0.039039719849824905, -0.04903595149517059, -0.00776211591437459, 0.03319665044546127, -0.031420815736055374, -0.023687342181801796, -0.006834815256297588, -0.0480334646999836, -0.00034505254006944597, -0.008914976380765438, 0.05599607527256012, 0.06272706389427185, 0.01947689615190029, 0.028313105925917625, 0.012258987873792648, -0.005739239975810051, 0.0006681756931357086, 0.005452814977616072, -0.005939737427979708, -0.01864626444876194, -0.012989371083676815, -0.0179158803075552, -0.029086453840136528, 0.013791360892355442, 0.053561463952064514, 0.0030880188569426537, -0.0015833928482607007, 0.005635411012917757, 0.055967435240745544, 0.0695439800620079, 0.013275796547532082, 0.003981306683272123, -0.043364737182855606, -0.016813144087791443, 0.016984999179840088, -0.01589658483862877, 0.01470792107284069, 0.04597120359539986, -0.054048385471105576, 0.03666239231824875, -0.029931407421827316, 0.029201023280620575, 0.008406572043895721, -0.0222408976405859, 0.0034353092778474092, -0.029845479875802994, -0.01161453127861023, 0.049121879041194916, 0.002615417819470167, 0.032050952315330505, 0.030217831954360008, 0.03669103607535362, -0.0009344613645225763, -0.04628627002239227, -0.013397526927292347, 0.03987035155296326, 0.051928844302892685, 0.030819324776530266, 0.0038703170139342546, 0.05462123826146126, 0.007769276853650808, 0.043765731155872345, -0.009559432975947857, -0.000540179549716413, -0.014034822583198547, -0.014228159561753273, 0.00809150468558073, -0.018875403329730034, 0.031306248158216476, 0.01939096860587597, -0.011793547309935093, -0.033282577991485596, 0.011034521274268627, -0.0029555473010987043, 0.004077975172549486, -0.03606089949607849, -0.0191904716193676, -0.020722845569252968, 0.025663675740361214, 0.047116901725530624, -0.007948292419314384, -0.009745609015226364, -0.018560336902737617, 0.025377249345183372, 0.01016092486679554, -0.022813746705651283, 0.028513602912425995, 0.01407062541693449, 0.03248059004545212, 0.009695484302937984, -0.025964422151446342, 0.005237996112555265, 0.0038953793700784445, 0.003762907814234495, -0.040070850402116776, -0.010347100906074047, -0.009101152420043945, 0.010082158260047436, -0.027926431968808174, -0.01288912259042263, -0.010017712600529194, 0.005528001580387354, 0.014894097112119198, -0.006387276109308004, -0.040815554559230804, -0.03385542705655098, -0.009931785054504871, 0.050496719777584076, 0.0038130320608615875, -0.0214102640748024, 0.030074618756771088, -0.02975955232977867, 0.003521236591041088, 0.008836209774017334, 0.04505464434623718, -0.00505540007725358, -0.022856710478663445, 0.026680484414100647, -0.008585588075220585, -0.02818421460688114, 0.028742743656039238, -0.0054814573377370834, 0.05264490470290184, 0.023429561406373978, -0.02779754064977169, 0.028613852337002754, 0.01593954861164093, -0.010225370526313782, -0.02785482630133629, -0.03036104515194893, -0.04052912816405296, -0.048978663980960846, 0.003694881685078144, 0.016111403703689575, 0.00569627620279789, 0.0366051085293293, -0.02056531049311161, 0.011421194300055504, -0.021367300301790237, 0.056654855608940125, 0.007669027894735336, 0.025892814621329308, 0.004511192906647921, -0.00716062355786562, 0.0021249151322990656, 0.011729101650416851, 0.01252393051981926, 0.01662696897983551, 0.025821208953857422, 0.03497248515486717, -0.041502974927425385, 0.04113062098622322, 0.01573905162513256, 0.02824150025844574, -0.052673548460006714, 0.03016054630279541, 0.0784231498837471, -0.014478781260550022, -0.011328106746077538, -0.03491520136594772, -0.009752769023180008, 0.051098208874464035, -0.014657796360552311, -0.04058641567826271, 0.0023630058858543634, 0.036920174956321716, -0.0374930240213871, 0.011192054487764835, -0.010153763927519321, 0.05705584958195686, 0.014865454286336899, -0.02864249423146248, 0.011807868257164955, -0.013590863905847073, -0.011328106746077538, -0.06530489027500153, -0.01192959863692522, -0.0008606174378655851, 0.007790758740156889, -0.03460013493895531, -0.0014920949470251799, -0.013698273338377476, -0.009810054674744606, -0.02411697991192341, -0.03775080665946007, -0.023973768576979637, -0.019247757270932198, 0.009659681469202042, 0.007633224595338106, 0.019863570109009743, 0.00374500616453588, -0.008148789405822754, -0.002636899705976248, 0.020107030868530273, 0.05728498846292496, 0.0014509214088320732, -0.011285142973065376, -0.023429561406373978, -0.05258762091398239, 0.04052912816405296, 0.004754654131829739, -0.0017498773522675037, -0.002731777960434556, -0.025806887075304985, 0.040471844375133514, 0.020006783306598663, 0.04325016587972641, 0.06003466993570328, 0.023300670087337494, -0.022713497281074524, -0.02996004931628704, 0.025019219145178795, 0.012352075427770615, -0.014127910137176514, 0.029014846310019493, -0.030933894217014313, 0.051986128091812134, -0.07034596800804138, -0.027640007436275482, -0.03213687986135483, 0.03288158401846886, 0.07532975822687149, -0.002110593719407916, -0.0486922413110733, 0.008456696756184101, -0.017786988988518715, -0.011721940711140633, -0.02941584214568138, 0.05831611901521683, 0.013555060140788555, -0.017744025215506554, 0.0186892282217741, 0.0575714148581028, -0.034857917577028275, 0.02312881499528885, 4.076800451002782e-06, -0.0011242178734391928, 0.007106918841600418, -0.02927262894809246, -0.008334966376423836, -0.033969998359680176, -0.008191753178834915, 0.01505163125693798, -0.024217229336500168, -0.04173211380839348, -0.019749000668525696, 0.0006972657283768058, 0.0072572920471429825, -0.07223637402057648, 0.039784424006938934, 0.036089543253183365, -0.011113287881016731, 0.04511192813515663, -0.044854145497083664, 0.06879927217960358, -0.04768975451588631, -0.01084834523499012, 0.005775042809545994, -0.050153009593486786, 0.0008118356927298009, 0.008485338650643826, 0.014750884845852852, 0.010919950902462006, -0.006258385255932808, -0.00719642685726285, 0.014722242020070553, 0.05533729866147041, 0.04854902997612953, -0.05066857114434242, 0.011900956742465496, 0.0004891601274721324, -0.005839488469064236, 0.040471844375133514, -0.011056003160774708, 0.04642948508262634, 0.009036706760525703, -0.033282577991485596, 0.0217396542429924, 0.05029622092843056, -0.013691112399101257, -0.006133073940873146, -0.007590261287987232, -0.02244139462709427, 0.04872088506817818, -0.029644981026649475, -0.004926509223878384, 0.05029622092843056, 0.02715308405458927, 0.004579219035804272, 0.03620411455631256, -0.016455113887786865, 0.0339413546025753, 0.02804100140929222, -0.05797240883111954, 0.01399901881814003, -0.009974748827517033, 0.0015986092621460557, -0.027482474222779274, -0.016555361449718475, -0.0031596252229064703, 0.028599530458450317, -0.036633752286434174, 0.03551669418811798, -0.008900655433535576, -0.0004994535120204091, -0.08518277853727341, -0.01682746596634388, 0.058029692620038986, -0.02244139462709427, 0.012967889197170734, -0.02139594405889511, 0.003079068148508668, 0.03457149118185043, -0.00187250308226794, -0.015223485417664051, -0.04009949415922165, 0.003642967203631997, 0.010540437884628773, 0.017185496166348457, 0.0056533124297857285, -0.01751488633453846, -0.04806210473179817, -0.0050339181907474995, 0.012638500891625881, -0.0008418208453804255, 0.014586190693080425, -0.04196125268936157, 0.0007209852919913828, 0.013476293534040451, 0.02017863653600216, 0.00839225109666586, -0.019462574273347855, 0.010590562596917152, 0.05304589867591858, -0.005452814977616072, -0.04640084132552147, 0.008012738078832626, -0.021968793123960495, 0.02135298028588295, 0.0029215344693511724, -0.018818119540810585, -0.014600511640310287, 0.00687777902930975, 0.04456772282719612, 0.05338960886001587, 0.0050625610165297985, 0.033483076840639114, 0.04135976359248161, -0.02563503198325634, -0.019706036895513535, 0.017486242577433586, -0.009681163355708122, -0.011743422597646713, 0.053561463952064514, -0.01638350635766983, 0.04456772282719612, -0.041932612657547, -0.017085248604416847, -0.016211651265621185, 0.011507121846079826, -0.029086453840136528, -0.013390365988016129, -0.039097003638744354, -0.019548501819372177, -0.07825129479169846, 0.018388481810688972, -0.055824220180511475, -0.006530488841235638, 0.03680560365319252, 0.03351171687245369, -0.038151804357767105, -0.010590562596917152, 0.05605336278676987, 0.038209088146686554, 0.006258385255932808, -0.038295015692710876, 0.0006959231104701757, 0.00600060261785984, -0.06410190463066101, 0.01528077106922865, -0.028112608939409256, -0.01707092672586441, 0.043422020971775055, -0.003066536970436573, -0.005649731960147619, -0.006147395353764296, -0.0209090206772089, -0.030876608565449715, -0.05023893713951111, -0.008306323550641537, -0.008062861859798431, 0.05081178620457649, 0.011499961838126183, 0.06793999671936035, 0.004507612437009811, 0.06450289487838745, 0.011227858252823353, 0.0410446934401989, 0.055222731083631516, 0.006433820351958275, 0.00687419855967164, -0.01923343539237976, 0.039240218698978424, -0.00925152562558651, -0.04402351379394531, -0.04857767000794411, -0.002482946263626218, 0.003816612297669053, -0.03646189719438553, 0.02647998556494713, 0.012309111654758453, 0.010733774863183498, -0.013927413150668144, 0.001028444617986679, -0.0032222806476056576, -0.006491105537861586, -0.05333232507109642, 0.02499057725071907, -0.002148187020793557, 0.0028105448000133038, 0.029788194224238396, 0.07424134761095047, 0.014292605221271515, -0.0505826435983181, -0.008836209774017334, -0.00149478018283844, 0.04276324436068535, 0.0209090206772089, -0.01805909350514412, 0.020379135385155678, 0.040271345525979996, -0.05485037714242935, 0.0022287440951913595, 0.0037235242780297995, 0.0008185487822629511, 0.004811939317733049, 0.006505426485091448, 0.02716740593314171, 0.01983492821455002, 0.03302479535341263, 0.016311900690197945, -0.002473995555192232, -0.06163864955306053, 0.0038130320608615875, 0.043221525847911835, 0.01598251238465309, 0.025520462542772293, 0.0005415221676230431, -0.005535162054002285, -0.011943920515477657, -0.009366095997393131, -0.004486130550503731, 0.00868583656847477, -0.013082459568977356, 0.0026028866413980722, 0.03371221572160721, -0.008943619206547737, 0.03064746968448162, 0.023973768576979637, 0.016541041433811188, 0.02587849460542202, -0.005531581584364176, 0.024045374244451523, -0.053905174136161804, -0.009631038643419743, -0.0011421195231378078, 0.035402122884988785, -0.03276701271533966, -0.007933970540761948, 0.0026923944242298603, 0.0008619600557722151, 0.025792567059397697, -0.0002503980649635196, 0.029730908572673798, 0.01682746596634388, -0.025062182918190956, -0.09646791964769363, 0.03531619533896446, -0.0005643466720357537, -0.01894701085984707, 0.018875403329730034, -0.009280168451368809, -0.012975050136446953, -0.04224767908453941, -0.0063228304497897625, -0.0005124321323819458, -0.0331680104136467, -0.04035727307200432, 0.004367980640381575, -0.021023590117692947, 0.014371371828019619, -0.0012307321885600686, 0.013390365988016129, 0.03299615532159805, -0.04771839454770088, 0.037865377962589264, 0.008334966376423836, -0.003388765035197139, 0.020450741052627563, 0.0120083661749959, 0.028055323287844658, -0.029143737629055977, 0.00597912073135376, 0.026938267052173615, -0.012151578441262245, 0.030246473848819733, -0.011356748640537262, -0.010404386557638645, 0.024904649704694748, 0.020336171612143517, 0.00799841620028019, -0.0005621089367195964, 0.025305643677711487, 0.03242330253124237, 0.03852415457367897, 0.048634957522153854, -0.009695484302937984, -0.004897866398096085, 0.037521667778491974, 0.031019821763038635, 0.010604883544147015, -0.0019942335784435272, -0.0024972674436867237, -0.0022717078682035208, -0.003379814326763153, -0.044052157551050186, -0.0014186985790729523, 0.005538742523640394, 0.023014243692159653, 0.041302476078271866, 0.07034596800804138, -0.0235154889523983, -0.013562221080064774, 0.02519107423722744, 0.005925416015088558, 0.0036125346086919308, 0.007063955068588257, 0.04545563831925392, 0.024145623669028282, 0.01825959049165249, -0.004661566112190485, -0.03196502476930618, -0.017772667109966278, 0.013075298629701138, 0.0038201927673071623, -0.03523026779294014, -0.006222581956535578, 0.004117358475923538, -0.024976255372166634, -0.01707092672586441, -0.046916406601667404, 0.034313708543777466, -0.020493704825639725, -0.0186892282217741, -0.014836812391877174, 0.021854223683476448, 0.04127383604645729, -0.05333232507109642, 0.024532295763492584, -0.004994534887373447, 0.019319362938404083, 0.04201854020357132, 0.019691715016961098, -0.024088338017463684, -0.027582721784710884, -0.009129795245826244, 0.04428129643201828, -0.037865377962589264, 0.008098665624856949, 0.00390970055013895, -0.01957714557647705, -0.0541343130171299, -0.03617547079920769, -0.01170761976391077, 0.013290117494761944, -0.013376045040786266, -0.016598325222730637, 0.02027888596057892, -0.028599530458450317, 0.014507423155009747, -0.02662319876253605, -0.0444817952811718, -0.010733774863183498, 0.03952664136886597, -0.009466344490647316, -0.018517373129725456, 0.026981228962540627, -0.006376535166054964, -0.0031130812130868435, 0.012287629768252373, -0.001385580631904304, 0.01205132994800806, 0.006480364594608545, -0.013956055045127869, -0.038896508514881134, -0.011134769767522812, -0.03543076664209366, -0.035745833069086075, -0.015409662388265133, -0.0023826975375413895, 0.011356748640537262, -0.012194542214274406, -0.01573905162513256, 0.03806587681174278, 0.0019727519247680902, 0.009946106001734734, 0.006347892805933952, -0.017443278804421425, 0.013297278434038162, 0.006326410919427872, -0.01168613787740469, 0.027339261025190353, 0.016813144087791443, 0.010275495238602161, 0.012674303725361824, 0.025520462542772293, 0.0009098467417061329, -0.015295092016458511, -0.019376646727323532, 0.012760231271386147, 0.0070138308219611645, 0.046028487384319305, -0.026207882910966873, 0.00048334209714084864, 0.005334664601832628, -0.015423983335494995, 0.013562221080064774, -0.03689153119921684, 0.03757895156741142, -0.018918367102742195, -0.013146905228495598, -0.009387577883899212, -0.01498002465814352, -0.05101228132843971, 0.00027904054149985313, -0.03502977266907692, 0.04090148210525513, -0.0011376440525054932, -0.055766936391592026, 0.006995929405093193, 0.01470792107284069, 0.0356026217341423, -0.0045040324330329895, 0.02779754064977169, 0.01532373484224081, 0.013576542027294636, -0.04284917190670967, 0.019849248230457306, -0.0004963207175023854, 0.0156388022005558, 0.01634054258465767, -0.02204039879143238, -0.004726011771708727, -0.018431445583701134, -0.010805381461977959, 0.023085851222276688, -0.015767693519592285, -0.023257706314325333, -0.012044169008731842, -0.0023737468291074038, 0.024618223309516907, 0.038209088146686554, -0.007669027894735336, -0.03843822702765465, 0.0038595760706812143, 0.012309111654758453, 0.028800027444958687, 0.0020497285295277834, 0.00374500616453588, -0.010103640146553516, 0.019376646727323532, -0.004085135646164417, -0.02480440028011799, -0.009086831472814083, -0.015438304282724857, -0.015552874654531479, -0.011199215427041054, -0.005961219314485788, 0.06719528883695602, 0.018574656918644905, -0.009230043739080429, 0.016197331249713898, -0.025076504796743393, 0.014428656548261642, -0.01632622256875038, 0.006419498939067125, 0.05072585865855217, 0.005510099697858095, 0.007368281949311495, 0.03133488819003105, -0.005606768187135458, -0.005728499032557011, -0.00343709927983582, -0.0035176563542336226, -0.006147395353764296, 0.02858521044254303, -0.01815934106707573, 0.012860479764640331, -0.024217229336500168, 0.010518955998122692, -0.020823093131184578, 0.025606390088796616, -0.023257706314325333, 0.004060073755681515, -0.025692317634820938, -0.02975955232977867, -0.010361422784626484, 0.0417034737765789, -0.00839225109666586, 0.004751073662191629, -0.022026078775525093, -0.025319965556263924, -0.002534860745072365, -0.031649958342313766, 0.022641891613602638, 0.009008064866065979, 0.0038595760706812143, 0.02262757159769535, 0.028671137988567352, -0.028456319123506546, 0.000274341378826648, 0.02095198445022106, -0.029387200251221657, 0.03236601874232292, -0.00691358232870698, -0.0179158803075552, -0.04688776284456253, -0.0002058679237961769, -0.042677316814661026, -0.010332779958844185, 0.017844274640083313, 0.029243987053632736, 0.003635806730017066, -0.030676111578941345, -0.007339639123529196, 0.05539458617568016, 0.023630058392882347, -0.013941734097898006, -0.0031327728647738695, -0.03331122174859047, -0.001010542968288064, 0.015495589934289455, 0.02371598593890667, -0.04207582399249077, 0.020107030868530273, 0.0037808092311024666, 0.001917256973683834, -0.0037987108808010817, -0.024732794612646103, 0.006372955162078142, -0.01977764256298542, 0.007020991295576096, -0.01114193070679903, -0.026136275380849838, -0.004557737149298191, 0.05848797410726547, -0.02711012028157711, 0.02499057725071907, 0.05605336278676987, 0.06393004953861237, 0.010261173360049725, -0.02636541612446308, -0.0032312313560396433, -0.046228986233472824, 0.03806587681174278, 0.024489331990480423, -0.0029018428176641464, -0.03654782474040985, -0.008843369781970978, -0.03543076664209366, 0.01874651201069355, 0.04310695454478264, -0.061180368065834045, 0.003791550174355507, 0.01192959863692522, -0.0004513430467341095, 0.0010794639820232987, 0.019963819533586502, -0.007962613366544247, -0.009903142228722572, 0.020994948223233223, -0.007568779401481152, 0.006491105537861586, -0.01943393237888813, -0.010819702409207821, 0.0008239192538894713, 0.03448556363582611, -0.03236601874232292, -0.01099871750921011, -0.02027888596057892, 0.03577447682619095, 0.021138161420822144, -0.035803116858005524, -0.01293924730271101, -0.01168613787740469, 0.03617547079920769, -0.029358556494116783, 0.025506140664219856, 0.05387653410434723, 0.028313105925917625, -0.040815554559230804, 0.003884638426825404, -0.028570888563990593, -0.02519107423722744, 0.026651840656995773, 0.024861685931682587, 0.019118865951895714, 0.03356900438666344, 0.0011519653489813209, 0.04539835453033447, 0.0024005991872400045, -0.01878947578370571, 0.025420213118195534, -0.017343031242489815, -0.009136956185102463, 0.02480440028011799, 0.018073413521051407, -0.024317478761076927, 0.005155649036169052, -0.018861083313822746, 0.005628250073641539, 0.004955151583999395, -0.015266449190676212, 0.0244034044444561, -0.012266147881746292, -0.032108236104249954, -0.0007800604216754436, -0.01021104957908392, -0.009287328459322453, -8.318630716530606e-05, 0.014879776164889336, -0.0049909548833966255, -0.005699856206774712, 0.039927639067173004, -0.000208553159609437, 0.030962536111474037, -0.0037378454580903053, 0.01593954861164093, -0.010805381461977959, -0.0053382450714707375, -0.010168085806071758, -0.027124442160129547, -0.003392345504835248, 0.04121654853224754, 0.014600511640310287, -0.00445390772074461, 0.00749001232907176, -0.0065949345007538795, -0.037120673805475235, 0.0018563916673883796, -0.004937250167131424, 0.02052234672009945, -0.025549104437232018, 0.0019190470920875669, -0.006756048183888197, 0.017686739563941956, 0.03159267082810402, 0.017944522202014923, -0.014937060885131359, -0.02066555991768837, -0.0005433123442344368, -0.021281372755765915, -0.037865377962589264, 0.03311072289943695, -0.02420290745794773, -0.002975239185616374, -0.010955753736197948, -0.008270520716905594, -0.005907514598220587, 0.0331680104136467, 0.023400917649269104, 0.02967362478375435, 0.006709504406899214, 0.015037309378385544, -0.0008476388175040483, 0.001616510795429349, -0.006448141764849424, 0.04419536888599396, -0.032050952315330505, -0.006226162426173687, -0.026508629322052002, -0.018861083313822746, -0.011872313916683197, -0.021295694634318352, 0.012538252398371696, -0.004486130550503731, -0.00838509015738964, -0.01692771352827549, 0.012402200140058994, 0.02400241047143936, -0.02597874216735363, 0.044854145497083664, -0.0039848871529102325, 0.0037485864013433456, -0.006906421389430761, -0.009351774118840694, -0.00016044272342696786, 0.050697214901447296, 0.029286950826644897, 0.01987789198756218, 0.011542925611138344, 0.014278283342719078, -0.04304967075586319, 0.0011609160574153066, 0.0055494834668934345, 0.07916785776615143, -0.029014846310019493, 0.029845479875802994, 0.0020300368778407574, -0.011807868257164955, -0.031764525920152664, -0.009509308263659477, 0.040271345525979996, -0.017385995015501976, 0.046515412628650665, 0.005084042903035879, -0.002354054944589734, -0.014478781260550022, 0.016798822209239006, 0.016297578811645508, 0.008306323550641537, 0.023100171238183975, -0.025806887075304985, -0.005087622907012701, -0.04213310778141022, -0.020679881796240807, 0.014937060885131359, 0.045885276049375534, -0.012258987873792648, -0.01632622256875038, -0.025420213118195534, -0.0012853319058194757, 0.034027282148599625, -0.012781713157892227, -0.010862666182219982, -0.026694804430007935, 0.015466947108507156, 0.03336850553750992, 0.00300030130892992, 0.029186701402068138, -0.0013291907962411642, -0.011843671090900898, -0.0239594466984272, 0.024675508961081505, -0.03757895156741142, 0.02106655389070511, -0.019863570109009743, -0.016598325222730637, -0.0005325714009813964, 0.006154555827379227, 0.03720660135149956, 0.008406572043895721, -0.008528302423655987, -0.01161453127861023, 0.017199818044900894, 0.012638500891625881, 0.0017794149462133646, 0.03497248515486717, -0.02670912630856037, 0.031907737255096436, -0.010690811090171337, -0.03462877497076988, -0.013784200884401798, -0.0023630058858543634, -0.011449837125837803, -0.008263359777629375, -0.0063228304497897625, 0.007447048556059599, 0.023930804803967476, 0.0011367490515112877, 0.03414185345172882, 0.029115095734596252, -0.018961330875754356, 0.01188663486391306, -0.017944522202014923, -0.02814125083386898, -0.00749001232907176, -0.0009854808449745178, 0.0010508215054869652, 0.0067381467670202255, 0.008786085061728954, -0.04038591682910919, 0.006963706575334072, -0.021195445209741592, 0.03531619533896446, 0.0014312296407297254, 0.018588978797197342, -0.004844161681830883, -0.01350493635982275, -0.01800180785357952, 0.015667444095015526, 0.007389763370156288, -0.015681765973567963, 0.008062861859798431, -0.018417123705148697, 0.02085173688828945, 0.0011734472354874015, 0.010891309008002281, -0.02434612065553665, -0.02145322784781456, 0.01751488633453846, 0.01259553711861372, -0.005216514226049185, 0.013168387115001678, 0.0034209878649562597, 0.034514207392930984, -0.0012593746650964022, -0.007697670254856348, -0.02411697991192341, -0.04133111983537674, -0.010769577696919441, 0.0001040528150042519, -0.029788194224238396, 0.010719453915953636, 0.0005580810829997063, -0.01397753693163395, -0.03236601874232292, 0.0067381467670202255, -0.023100171238183975, -0.019548501819372177, 0.02046506293118, -0.031134391203522682, -0.013390365988016129, -0.01662696897983551, 0.021882865577936172, -0.02076580934226513, -0.015782015398144722, 0.02961633913218975, -0.05132735148072243, -0.00446464866399765, 0.012824676930904388, 0.009043867699801922, -0.03852415457367897, 0.0060077630914747715, -0.0366051085293293, -0.00799841620028019, -0.03322529420256615, 0.004425265360623598, -0.0018125328933820128, 0.011034521274268627, 0.019706036895513535, 0.023100171238183975, 0.00930165033787489, 0.03895379230380058, -0.0028624592814594507, -0.004879964981228113, -0.005008856300264597, -0.0038774777203798294, -0.0044718096032738686, -0.0018062673043459654, -0.01559583842754364, -0.011521443724632263, -0.03119167685508728, -0.026107633486390114, 0.024389084428548813, -0.002778321970254183, -0.017042284831404686, -0.023114493116736412, 0.011514282785356045, 0.002806964563205838, -0.008506820537149906, -0.012144417501986027, -0.036719679832458496, 0.0032079594675451517, -0.0031846873462200165, -0.026336774230003357, 0.04038591682910919, 0.031363531947135925, -0.010117961093783379, -0.009230043739080429, 0.012688624672591686, -0.03425642475485802, -0.043364737182855606, 0.011256500147283077, 0.014851133339107037, 0.014643475413322449, 0.03428506478667259, -0.0226848553866148, -0.012502448633313179, -0.003617905080318451, -0.0160827599465847, -0.003927601967006922, -0.02941584214568138, 0.0444817952811718, 0.011872313916683197, 0.03557397797703743, 0.01771538332104683, -0.03162131458520889, 0.02199743501842022, 0.014922739937901497, 0.009187079966068268, -0.029444484040141106, 0.024661187082529068, -0.054535310715436935, 0.0120083661749959, 0.03734981268644333, 0.010891309008002281, 0.009101152420043945, 0.008886333554983139, -0.008936458267271519, -0.05969095975160599, -0.004582799039781094, 0.009115474298596382, 0.01884676143527031, 0.0034478402230888605, 0.027725934982299805, 0.00446464866399765, 0.013905931264162064, -0.01490841805934906, -0.012258987873792648, -0.011442676186561584, -0.018316876143217087, -0.01662696897983551, 0.0026225782930850983, -0.020107030868530273, -0.01498002465814352, 0.006344312336295843, 0.003258083714172244, -0.009537951089441776, 0.04571342095732689, 0.012788874097168446, -0.008886333554983139, 0.03182180970907211, 0.0024865265004336834, -0.007805079687386751, -0.03703474625945091, 0.00993894599378109, -0.03577447682619095, -0.015237807296216488, -0.01825959049165249, -0.012509609572589397, -0.026293810456991196, -0.03030375950038433, 0.03952664136886597, 0.020722845569252968, -0.06461746990680695, -0.003284936072304845, 0.022398430854082108, -0.01687042973935604, 0.028513602912425995, 0.015567195601761341, 0.0019584305118769407, -0.0035069154109805822, -0.031420815736055374, -0.004901446867734194, -0.0006422184524126351, -0.020579632371664047, -0.02947312779724598, -0.009043867699801922, -0.004357239697128534, -0.020393455401062965, -0.022298181429505348, 0.028757063671946526, -0.007948292419314384, -0.02509082481265068, -0.045541565865278244, -0.01840280182659626, 0.014822490513324738, 0.00314888427965343, 0.027539758011698723, 0.005803685635328293, 0.020751487463712692, 0.010074997320771217, 0.011127608828246593, -0.025864172726869583, 0.02066555991768837, 0.001144804758951068, 0.007554457988590002, -0.017643775790929794, -0.02460390329360962, 0.011399712413549423, 0.012423682026565075, -0.004425265360623598, -0.008893494494259357, 0.0174719225615263, -0.008850530721247196, 0.017629455775022507, 0.033139366656541824, -0.01727142371237278, 0.014199516735970974, -0.021381622180342674, -0.004883545450866222, 0.02086605690419674, 0.03414185345172882, 0.015495589934289455, 0.03408456966280937, 0.015767693519592285, 0.019548501819372177, -0.038638725876808167, 0.0011797127081081271, -0.03523026779294014, -0.004256990738213062, -0.04937966167926788, 0.05101228132843971, -0.01898997463285923, -0.0019208373269066215, -0.0486922413110733, -0.027382224798202515, 0.024876005947589874, 0.024589581415057182, -0.008528302423655987, 0.021668046712875366, 0.012165899388492107, -0.005914675071835518, 0.003673400031402707, 0.016598325222730637, 0.030246473848819733, -0.01079822052270174, -0.0013802101602777839, -0.01666993275284767, -0.0015234226593747735, -0.0001288912317249924, 0.02209768444299698, -0.018388481810688972, 0.027625685557723045, 0.008349287323653698, -0.007676188368350267, 0.006233322899788618, 0.009287328459322453, 0.006061467807739973, 0.03268108516931534, 0.003558829892426729, 0.01666993275284767, 0.003315368667244911, -0.014879776164889336, -0.008864851668477058, 0.019161829724907875, -0.021539155393838882, -0.0006695183110423386, 0.012137257494032383, -0.040128134191036224, 0.01281751599162817, 0.0287857074290514, -0.005402690730988979, -0.009810054674744606, -0.0013130793813616037, -0.0033243196085095406, -0.023544130846858025, -0.02365870028734207, -0.007439888082444668, 0.022842388600111008, -0.027983717620372772, 0.0004708110063802451, -0.0011537554673850536, 0.011277982033789158, 0.004274892155081034, -0.031105749309062958, 0.033683571964502335, -0.02331499010324478, -0.019605787470936775, 0.009516469202935696, -0.02961633913218975, -0.04680183529853821, -0.03620411455631256, 0.02135298028588295, -0.04385165870189667, -0.026437021791934967, -0.00023204895842354745, 0.005531581584364176, -0.007035312708467245, -0.054019745439291, -0.02120976708829403, -0.0001372825790895149, 0.013189869001507759, -0.015481268055737019, -0.0005800105282105505, 0.006691602990031242, -0.027239011600613594, 0.021037911996245384, -0.015882262960076332, -0.029143737629055977, -0.009702645242214203, -0.01532373484224081, 0.021625082939863205, -0.02519107423722744, 0.018245268613100052, -0.007439888082444668, 0.031163034960627556, -0.01045451033860445, 0.0226848553866148, -0.010962914675474167, 0.008564106188714504, -0.015509910881519318, -0.029845479875802994, -0.005828747525811195, -0.002047938294708729, 0.010612044483423233, -0.010017712600529194, 0.009767090901732445, 0.0584593303501606, -0.009702645242214203, -0.0339413546025753, -0.015867941081523895, 0.015538553707301617, 0.007404084783047438, -0.04296374320983887, 0.002923324704170227, -0.02347252517938614, -0.0504680760204792, 0.017887238413095474, -0.054879020899534225, -0.015080273151397705, 0.0063120899721980095, -0.018660584464669228, 0.008571266196668148, -0.04565613716840744, -0.0011483849957585335, -0.0022931897547096014, 0.015366698615252972, -0.020135672762989998, -0.022154970094561577, -0.028370391577482224, -0.011320945806801319, -0.01230195164680481, -0.004436006303876638, 0.006326410919427872, -0.010282655246555805, 0.016412150114774704, -0.012495288625359535, -0.013640987686812878, -0.018130699172616005, -0.06862741708755493, 0.04345066472887993, 0.01992085576057434, 0.0036071641370654106, -0.02357277274131775, 0.019620109349489212, -0.02553478442132473, -0.01109180599451065, 0.009580914862453938, 0.023186098784208298, -0.018288232386112213, 0.017772667109966278, 0.0305042564868927, 0.006204680539667606, 0.00346216163598001, 0.028470639139413834, 0.004385882057249546, -0.02716740593314171, 0.03336850553750992, 0.0009353564819321036, -0.04743197187781334, -0.004901446867734194, -0.022154970094561577, -0.00570701714605093, -0.00952362921088934, -0.003284936072304845, -0.06032109260559082, 0.007235810160636902, 0.017944522202014923, -0.019405290484428406, 0.003977726213634014, -0.020049747079610825, -0.019147507846355438, -0.019720356911420822, -0.02882867120206356, 0.02327202633023262, 0.010970075614750385, -0.01834551803767681, -0.015710407868027687, 0.02484736405313015, -0.022513000294566154, 0.013590863905847073, 0.00044821028131991625, 0.014385692775249481, 0.005664053373038769, -0.03491520136594772, 0.0027675810270011425, 0.00804137997329235, 0.04654405266046524, 0.011793547309935093, -0.02489032782614231, -0.044395867735147476, 0.0035409284755587578, 0.021668046712875366, 0.027439510449767113, 0.0005701646441593766, -0.003974146209657192, 0.011836511082947254, -0.02848496101796627, -0.0018331196624785662, -0.014543226920068264, -0.0059361569583415985, 0.008241877891123295, 0.019004294648766518, 0.012473806738853455, 0.005248737055808306, -0.015366698615252972, 0.016942035406827927, 0.014679278247058392, -0.0008136258693411946, 0.018775155767798424, 0.01223034504801035, 0.05098364129662514, -0.02434612065553665, -0.012495288625359535, 0.018875403329730034, -0.021467549726366997, -0.055079516023397446, -0.011593049392104149, 0.020307527855038643, 0.0209663063287735, 0.006437400821596384, 0.006075789220631123, -0.018374159932136536, 0.037865377962589264, -0.015194843523204327, 0.013125423341989517, 0.04044320061802864, -0.021925829350948334, 0.004382301587611437, -0.018617620691657066, 0.004138840362429619, 0.011729101650416851, -0.004188964609056711, 0.0021070134826004505, 0.02559206821024418, -0.003487223759293556, 0.004937250167131424, 0.0037700682878494263, 0.0008118356927298009, 0.004117358475923538, -0.005538742523640394, 0.03723524138331413, -0.03202230855822563, 0.022355467081069946, -0.03411320969462395, 0.019706036895513535, 0.013512096367776394, -0.03288158401846886, 0.010117961093783379, 0.016311900690197945, 0.005116265732795, -0.02503354102373123, 0.032108236104249954, -0.023945124819874763, 0.007984095253050327, -0.03365493193268776, 0.029000526294112206, -0.006204680539667606, -0.0036913014482706785, 0.010332779958844185, 0.009709805250167847, -0.008671515621244907, 0.0014518164098262787, -0.02468983083963394, 0.007028152234852314, 0.009623878635466099, -0.021238408982753754, 0.014550386928021908, -0.04213310778141022, -0.026694804430007935, 0.015581517480313778, 0.007071116007864475, -0.02002110332250595, -0.02656591311097145], "id": 24}, {"title": "Baron Birdwood", "text": "Baron Birdwood, of Anzac and of Totnes in the County of Devon, was a title in the Peerage of the United Kingdom. It was created on 25 January 1938 for Sir William Birdwood, 1st Baronet. He is chiefly remembered as the commander of the Australian and New Zealand Army Corps (ANZAC) during the Gallipoli Campaign of 1915. Birdwood had already been created a Baronet, of Anzac and Totnes, on 6 October 1919.", "vector": [0.015234222635626793, 0.005028111394494772, -0.028315488249063492, 0.002980757039040327, 0.0014648291980847716, 0.04186004772782326, -0.0008469608146697283, -0.022238150238990784, -0.004067455884069204, 0.06001030281186104, 0.0016087570693343878, 0.04537563771009445, -0.059356238692998886, 0.008305240422487259, 0.028015708550810814, 0.026489561423659325, -0.04867320507764816, 0.003798336023464799, -0.0495452918112278, -0.01648784428834915, 0.05197077617049217, 0.005290417931973934, 0.004360421560704708, -0.02861526608467102, 0.009919959120452404, 0.022578807547688484, 0.029214825481176376, 0.005716240033507347, 0.048209913074970245, -0.0008635678677819669, -0.03752687945961952, -0.039134785532951355, 0.028588013723492622, -0.02790669910609722, 0.0329756885766983, -0.02559022419154644, -0.03401128947734833, 0.01561576034873724, 0.013381043449044228, -0.0021972437389194965, -0.04938177391886711, -0.05066264793276787, -0.019349370151758194, -0.013312912546098232, 0.014893565326929092, -0.046274974942207336, -0.04104246944189072, 0.030631961300969124, -0.014144117943942547, 0.0013745548203587532, 0.04733782634139061, -0.02742977812886238, 0.00439108069986105, 0.0659513771533966, 0.01849091239273548, 0.008584580384194851, 0.03938005864620209, 0.035700950771570206, -0.034447330981492996, -0.003185151843354106, -0.013721701689064503, -0.03788116201758385, -0.0509079210460186, 0.009061501361429691, -0.002514055697247386, -0.024922534823417664, 0.06840411573648453, 0.0591382198035717, -0.04605695232748985, -0.0509079210460186, 0.015206970274448395, -0.012243246659636497, 0.014089612290263176, 0.05058089271187782, 0.0419418066740036, -0.0005987063050270081, 0.027375271543860435, 0.013108517974615097, -0.06518830358982086, 0.03125877305865288, 0.02069837599992752, 0.005389208439737558, -0.01507070753723383, 0.04581167921423912, 0.020984528586268425, 0.029950646683573723, -0.036954574286937714, -0.03551018238067627, 0.0007490216521546245, -0.059628766030073166, 0.022047381848096848, 0.008141724392771721, 0.049736060202121735, -0.023369135335087776, -0.00658491812646389, -0.018368275836110115, 0.03551018238067627, -0.013871591538190842, 0.0419963113963604, -0.04387674108147621, -0.014675543643534184, -0.019076844677329063, -0.028369992971420288, -0.013019946403801441, 0.011316657066345215, 0.001078182365745306, 0.0021410351619124413, -0.02620340883731842, 0.012399949133396149, 0.025440335273742676, 0.032103605568408966, 0.015329607762396336, 0.01692388579249382, -0.0018276298651471734, -0.026966482400894165, 0.03142228722572327, 0.04139675199985504, -0.019049592316150665, -0.06082788109779358, 0.002634989097714424, -0.03730885684490204, -0.007024366874247789, -0.02103903517127037, -0.05423274263739586, 0.04085170105099678, -0.049027491360902786, -0.010526330210268497, 0.0838836133480072, -0.017755091190338135, 0.03878049924969673, -0.01056720968335867, -0.025494839996099472, 0.017727838829159737, -0.0247453935444355, 0.03191283717751503, 0.03065921552479267, -0.01770058646798134, -0.0071333772502839565, 0.016528723761439323, -0.0021069692447781563, 0.02103903517127037, 0.008543700911104679, 0.0014920817920938134, 0.002718450268730521, 0.03202184662222862, 0.0008925237925723195, 0.05186176300048828, 0.02392781339585781, 0.026244288310408592, -0.015888286754488945, 0.0012289235601201653, 0.04221433028578758, 0.030359435826539993, 0.020643871277570724, 0.0020473541226238012, -0.06764104217290878, -0.06431622058153152, -0.03041394054889679, -0.0036143807228654623, 0.06633291393518448, -0.0398978590965271, 0.005075803492218256, -0.03905302658677101, -0.0019247173331677914, 0.03812643513083458, 0.040797196328639984, -0.023873308673501015, -0.012434015050530434, -0.008605019189417362, 0.005927448160946369, -0.03425656259059906, -0.023260124027729034, 0.0647522583603859, 0.019390249624848366, -0.04014313220977783, 0.061863481998443604, -0.012590717524290085, 0.03139503672719002, -0.021297933533787727, 0.008128098212182522, -0.021488703787326813, -0.063335120677948, -0.045348383486270905, 0.0003906920610461384, -0.011153141036629677, 0.001892354805022478, 0.05327890068292618, 0.04624772071838379, -0.06262655556201935, 0.048237163573503494, 0.005576570518314838, -0.013210714794695377, 0.03055020421743393, -0.025562971830368042, 0.03000515140593052, 0.031722068786621094, 0.0019264206057414412, 0.024186713621020317, -0.01104413066059351, 0.03139503672719002, 0.0116913802921772, -0.0591927245259285, 0.03068646788597107, -0.0004556299827527255, -0.0158065278083086, 0.02670758217573166, -0.04594794288277626, 0.0398978590965271, -0.009299961850047112, 0.007998648099601269, -0.026516813784837723, -0.0016377130523324013, -0.020957276225090027, 0.005344923119992018, -0.039025772362947464, 0.015343233942985535, -0.016610480844974518, -0.026625825092196465, 0.000436893809819594, -0.0032192175276577473, -0.03346623480319977, 0.0021393317729234695, 0.01879069209098816, 0.012910936027765274, -0.0104990778490901, -0.012917748652398586, -0.014075986109673977, -0.002551527926698327, -0.0051882206462323666, 0.004036796744912863, -0.03409304842352867, -0.008005461655557156, -0.01701926998794079, 0.02738889865577221, 0.005157561041414738, 0.04324993118643761, -0.008870732970535755, -0.04186004772782326, 0.025331323966383934, -0.03177657350897789, -0.031994592398405075, 0.06360764801502228, 0.00948391668498516, -0.04186004772782326, 0.011711820028722286, -0.010730724781751633, 0.03346623480319977, -0.024990666657686234, -0.06426171213388443, 0.013374230824410915, 0.08039527386426926, 0.01562938652932644, -0.010097101330757141, -0.012583903968334198, 0.019594645127654076, -0.013054012320935726, 0.008496008813381195, 0.02984163537621498, 0.06415270268917084, 0.03782665729522705, 0.0027133405674248934, 0.041178733110427856, 0.014171370305120945, 0.04166927933692932, -0.03311195224523544, -0.046711016446352005, -0.04210532084107399, -0.005988766439259052, -0.011820830404758453, -0.04921825975179672, -0.00179697060957551, -0.0011463139671832323, 0.021257055923342705, -0.055513616651296616, -0.02943284623324871, 0.008557327091693878, 0.026762086898088455, 0.009347653947770596, -0.02467726171016693, 0.03382052108645439, 0.020275959745049477, -0.047937385737895966, -0.007235574536025524, -0.03463809937238693, -0.049163755029439926, 0.01838190294802189, 0.0134082967415452, 0.006295358762145042, 0.019144976511597633, -0.010090287774801254, -0.021079912781715393, 0.06682346016168594, -0.00023547980526927859, -0.01644696481525898, -0.007991835474967957, -0.004537563771009445, -0.01763245463371277, -0.04499410092830658, -0.002507242374122143, -0.03188558295369148, 0.020984528586268425, -0.02392781339585781, -0.036273255944252014, 0.01060127466917038, 0.05366043746471405, 0.0025958134792745113, -0.021897492930293083, 0.009047875180840492, -0.009736004285514355, 0.038044679909944534, -0.039134785532951355, -0.005603823345154524, 0.007896451279520988, -0.019144976511597633, -0.03850797191262245, -0.004302509594708681, -0.00044030038407072425, 8.53241654112935e-05, -0.03946181759238243, 0.044258277863264084, -0.03354799374938011, -0.04033390060067177, -0.04791013151407242, -0.06393468379974365, 0.023846056312322617, -0.013163022696971893, 0.07309156656265259, -0.008475570008158684, -0.04295015335083008, -0.024241218343377113, -0.018668055534362793, -0.06110040843486786, 0.04224158450961113, 0.008707216940820217, 0.02093002386391163, 0.05526834353804588, 0.002313067438080907, 0.025917256250977516, 0.001451202784664929, -0.008673151023685932, -0.01594279147684574, 0.0502266064286232, 0.011957094073295593, 0.02406407706439495, -0.014089612290263176, 0.0769614428281784, -0.009994903579354286, 0.03586446866393089, 0.001808893634006381, -0.0271572507917881, 0.0005450526950880885, 0.023137487471103668, 0.050689902156591415, 0.02426847256720066, -0.01043094601482153, 0.010199299082159996, -0.0020558706019073725, -0.027879446744918823, -0.03605523705482483, 0.06153644993901253, -0.017986739054322243, 0.020275959745049477, -0.005344923119992018, 0.04275938495993614, -0.05352417379617691, -0.021434197202324867, 0.028942298144102097, -0.0018906515324488282, -0.025276819244027138, -0.03820819407701492, -0.0025327918119728565, 0.01090786699205637, -0.03442007675766945, -0.03027767688035965, -0.016937512904405594, -0.011636875569820404, -0.031667560338974, -0.009572488255798817, -0.011159953661262989, -0.003920972812920809, 0.015111586079001427, -0.03188558295369148, 0.010233364067971706, -0.036954574286937714, 0.013469615019857883, -0.01066940650343895, 0.01090786699205637, 0.04771936312317848, 0.001016863971017301, 0.011493799276649952, -0.041478510946035385, 0.052624840289354324, -0.009477104060351849, -0.0058593167923390865, -0.032675910741090775, -0.018123002722859383, 0.014634665101766586, 0.003123833332210779, 0.03621875122189522, 0.009613366797566414, 0.020330466330051422, 0.018368275836110115, 0.056358449161052704, 0.024213965982198715, 0.044094763696193695, -0.007923703640699387, 0.015220596455037594, 0.0032072945032268763, -0.042868394404649734, -0.009122819639742374, -0.005750305950641632, -0.016269823536276817, 0.01903596520423889, 0.020671123638749123, -0.007569419220089912, 0.00064767588628456, -0.041314996778964996, 0.02368254028260708, 0.011800390668213367, -0.039679836481809616, 0.03463809937238693, -0.019267613068223, -0.05349692329764366, 0.05581339821219444, -0.013776207342743874, -0.006090964190661907, 0.003208997892215848, 0.03630051016807556, -0.04543014243245125, -0.028424497693777084, -0.004670420195907354, -0.04815540462732315, 0.014334886334836483, 0.05581339821219444, -0.018545418977737427, -0.0481826588511467, -0.031694814562797546, -0.000923182989936322, 0.006721181329339743, 0.021829361096024513, -0.02538583055138588, 0.03283942490816116, -0.04071543738245964, 0.00781469326466322, -0.08415614068508148, -0.002946691121906042, 0.020752882584929466, -0.03248514235019684, 0.016188064590096474, -0.010015343315899372, -0.02484077773988247, -0.014621038921177387, -0.015043454244732857, 0.026053519919514656, -0.027811314910650253, -0.03499238193035126, 0.03725435212254524, 0.0209981556981802, -0.028996804729104042, -0.003621193813160062, -0.04251411184668541, 0.04123323783278465, 0.016664985567331314, 0.001810596906580031, 0.04791013151407242, -0.016596855595707893, -0.022442545741796494, -0.007964582182466984, -0.007535353768616915, 0.011800390668213367, -0.002369276015087962, -0.016869381070137024, -0.003968664910644293, 0.07663440704345703, -0.023369135335087776, 0.009558862075209618, 0.0007102718227542937, -0.013013133779168129, 0.06251754611730576, 0.08448316901922226, 0.0019213107880204916, -0.03739061579108238, 0.018817944452166557, -0.015424991957843304, -0.010015343315899372, -0.061972491443157196, -0.0398978590965271, 0.025140555575489998, -0.0038971267640590668, 0.0398978590965271, -0.00980413518846035, 0.04049741476774216, -0.04652024805545807, -0.00827798806130886, -0.027743183076381683, 0.029787130653858185, -0.047256071120500565, 0.037227097898721695, 0.0030028996989130974, 0.017278170213103294, -0.017659706994891167, -0.010785230435431004, 0.03499238193035126, 0.00548118632286787, 0.019703654572367668, 0.0037540504708886147, -0.02627154067158699, 0.08039527386426926, 0.02127068117260933, 0.038889508694410324, -0.003972071688622236, 0.053878460079431534, 0.004864595364779234, 0.012359069660305977, 0.013088078238070011, -0.03373876214027405, 0.005470966454595327, 0.0010730725480243564, -0.026448681950569153, 0.00469767302274704, 0.01947200857102871, -0.0020405410323292017, -0.037772152572870255, 0.023369135335087776, 0.029814383015036583, 0.00915688555687666, -0.0025344949681311846, 0.020684750750660896, 0.025835497304797173, -0.02429572492837906, -0.00639755604788661, 0.02110716514289379, -0.010948746465146542, -0.03455634042620659, -0.029351087287068367, 0.033902280032634735, 0.01746893860399723, 0.011555117554962635, -0.031449541449546814, 0.00773974834010005, -0.010451385751366615, -0.051507480442523956, -0.00402657687664032, -0.0029892735183238983, -0.020548487082123756, 0.017305422574281693, 0.04333169013261795, 0.041751038283109665, -0.011739072389900684, -0.003651853185147047, -0.009136445820331573, 0.006901729851961136, -0.013680823147296906, 0.008707216940820217, -0.0014205436455085874, 0.00270652724429965, -0.04488509148359299, 0.01883157156407833, -0.029759878292679787, 0.006131842732429504, 0.03741787001490593, -3.071244282182306e-05, 0.021093539893627167, -0.005736679770052433, 0.028179224580526352, 0.0042003123089671135, 0.029405593872070312, 0.005593603476881981, 0.028315488249063492, 0.01726454496383667, 0.0196082703769207, 0.00015414772497024387, 0.04224158450961113, 0.015261475928127766, -0.01498894952237606, -0.019499260932207108, 0.004632947966456413, 0.0154794966802001, 0.0077329352498054504, 0.035700950771570206, 0.0035905346740037203, -0.011957094073295593, 0.03264865651726723, -0.004016357008367777, 0.009647432714700699, 0.008203043602406979, -0.01562938652932644, 0.024186713621020317, 0.03646402433514595, -0.033766016364097595, 0.03621875122189522, -0.005702613852918148, -0.026257913559675217, -0.013721701689064503, 0.036273255944252014, 0.041314996778964996, -0.04594794288277626, 0.059901293367147446, -0.012883683666586876, 0.005474373232573271, 0.013517307117581367, -0.007535353768616915, 0.015424991957843304, 0.003645039862021804, 0.0035632820799946785, -0.0031936680898070335, 0.019581018015742302, -0.007365024648606777, 0.0034678978845477104, 0.026039892807602882, 0.0028819660656154156, -0.026802966371178627, -0.01849091239273548, 0.03403853997588158, -0.003099987283349037, -0.018341023474931717, 0.01967640221118927, 0.0371180884540081, 0.03000515140593052, -0.009613366797566414, 0.039162036031484604, -0.02623066119849682, 0.029242077842354774, -0.012767859734594822, 0.024881655350327492, -0.02627154067158699, 0.00167603709269315, -0.010328749194741249, 0.002060980536043644, 0.012631596066057682, -0.019049592316150665, 0.008427876979112625, -0.013265220448374748, 0.007446782663464546, -0.014403018169105053, -0.0042684441432356834, -0.006107996683567762, -0.042023561894893646, -0.04624772071838379, -0.003226030617952347, -0.010267429985105991, -0.0005965772434137762, -0.03842621669173241, -0.017087401822209358, -0.009933585301041603, -0.006053491495549679, 0.02083463966846466, -0.04731057584285736, -0.007160630077123642, -0.003931192681193352, -0.013776207342743874, 0.031449541449546814, -0.027811314910650253, 0.0048952545039355755, 0.011173580773174763, -0.021624965593218803, -0.0014929333701729774, -0.016133559867739677, 0.015261475928127766, 0.019076844677329063, 0.03551018238067627, -0.07363662123680115, -0.005736679770052433, 0.012856430374085903, 0.011050943285226822, 0.004425146616995335, -0.01631070300936699, 0.028233729302883148, 0.029214825481176376, -0.008802601136267185, 0.0659513771533966, -0.002537901746109128, 0.0056821745820343494, -0.025208687409758568, -0.036382269114255905, -0.015356860123574734, -0.025372203439474106, 0.017278170213103294, 0.03191283717751503, -0.017387181520462036, 0.0008678261074237525, -0.011173580773174763, -0.01610630750656128, -0.02283770777285099, 0.022456170991063118, -0.011888962239027023, 0.0021291121374815702, 0.03491062670946121, 0.04033390060067177, 0.03700907900929451, 0.017864102497696877, -0.02144782431423664, -0.025917256250977516, -0.03880775347352028, -0.01992167718708515, 0.012025224976241589, 0.008414250798523426, 0.029242077842354774, 0.016365207731723785, 0.015016201883554459, -0.039816100150346756, 0.04000686854124069, 0.003173228818923235, -0.00256174779497087, 0.007760188076645136, -0.023028476163744926, -0.0007447634125128388, 0.03134053200483322, 0.01648784428834915, -0.007637551054358482, -0.017577949911355972, 0.04041565954685211, -0.01573839597404003, -0.0010126057313755155, 0.03237612918019295, -0.007555793039500713, 0.030795477330684662, 0.03801742568612099, 0.008659524843096733, -0.03869874030351639, -0.027988456189632416, -0.0009529906092211604, 0.02127068117260933, 0.024759018793702126, 0.0029228450730443, 0.008264361880719662, -0.01060127466917038, 0.00820985622704029, -0.021624965593218803, -6.806505552958697e-06, -0.04183279350399971, -0.023082982748746872, 0.004799870308488607, 0.01783685013651848, 0.015138838440179825, -0.0042105321772396564, -0.04071543738245964, -0.008380184881389141, 0.022129138931632042, 0.024486493319272995, -0.007317332550883293, 0.022646939381957054, 0.03436557203531265, -0.024554625153541565, 0.030359435826539993, 0.03177657350897789, -0.02779768779873848, -0.023573528975248337, -0.01601092331111431, -0.008645898662507534, 0.00047990187886171043, 0.0027933951932936907, 0.015111586079001427, -0.008066779933869839, -0.015683891251683235, -0.009252269752323627, 0.024309350177645683, -0.022101886570453644, 0.012583903968334198, 0.009170511737465858, 0.008468756452202797, 0.029378341510891914, -0.03278492018580437, 0.008298427797853947, 0.019117724150419235, -0.006683708634227514, 0.020875519141554832, 0.025344951078295708, 0.026053519919514656, -0.0010832922998815775, -0.0018361463444307446, -0.01507070753723383, -0.030495699495077133, 0.02454099804162979, 0.04572992026805878, -0.029514603316783905, 0.02877878211438656, 0.00827798806130886, -0.0069460151717066765, -0.007828319445252419, -0.004053829703480005, 0.04196905717253685, -0.034065794199705124, -0.006871070712804794, -0.004435366485267878, -0.013299286365509033, -0.043277185410261154, -0.012352257035672665, -0.03452908992767334, 0.024786271154880524, 0.00803952757269144, 0.01126896496862173, -0.00010214415669906884, 0.009388532489538193, 0.03150404617190361, -0.028806036338210106, 0.038998521864414215, 0.017523445188999176, 0.03237612918019295, -0.019649149850010872, -0.004881628323346376, 0.011568743735551834, -0.00045307507389225066, 0.016610480844974518, 0.003052295185625553, -0.04989957436919212, -0.02501791901886463, -0.0035155899822711945, -0.03619150072336197, 0.02351902425289154, 0.044912341982126236, 0.007126564159989357, 0.017823223024606705, 0.011316657066345215, -0.0077465614303946495, 0.009170511737465858, -0.06366215646266937, -0.040797196328639984, 0.02409132942557335, -0.018368275836110115, -0.06404369324445724, 0.0018020805437117815, -0.0087685352191329, -0.012604343704879284, -0.013415109366178513, 0.012434015050530434, 0.02018057554960251, -0.002093343064188957, -0.010751164518296719, 0.019935302436351776, 0.01767333410680294, -0.018886076286435127, -0.039298299700021744, 9.868434426607564e-05, -0.042977407574653625, 0.08350207656621933, -0.01917222887277603, -0.0337115079164505, -0.008080406114459038, 0.016542349010705948, 0.008073593489825726, 0.013769393786787987, -0.004765804391354322, -0.009736004285514355, -0.011486985720694065, 0.029242077842354774, 0.015929164364933968, -0.010015343315899372, -0.0419418066740036, 0.020916396751999855, 0.022415293380618095, 0.059356238692998886, -0.026598572731018066, 0.01838190294802189, 0.0002623066247906536, -0.01910409703850746, -0.004230971448123455, 0.005770745687186718, -0.02490890771150589, -0.031177014112472534, 0.018327396363019943, 0.004360421560704708, -0.02722538262605667, -0.02090277150273323, 0.013605877757072449, 0.0008908205199986696, 0.017346302047371864, -0.036109741777181625, 0.006196567788720131, 0.005116682033985853, -0.020889144390821457, -0.012604343704879284, 0.021597713232040405, -0.012747419998049736, -0.010846548713743687, -0.005160967819392681, -0.031994592398405075, -0.016024550423026085, -0.016051802784204483, 0.010144793428480625, -0.039816100150346756, 0.03496513143181801, 0.009681498631834984, 0.004012950696051121, -0.001773124560713768, 0.01184127014130354, 0.01842278055846691, 0.04153301566839218, 0.006608764175325632, 0.017755091190338135, 0.002776362234726548, 0.009347653947770596, 0.01451202854514122, -0.04142400622367859, 0.04098796471953392, -0.009068313986063004, 0.024527370929718018, -0.04145125672221184, -0.008829853497445583, -0.005678767804056406, 0.005896789021790028, 0.016773996874690056, -0.009708750993013382, -0.0006255331682041287, -0.0016036472516134381, -0.026802966371178627, 0.02484077773988247, -0.011439293622970581, -0.01498894952237606, -0.0058525032363832, 0.014103238470852375, 0.021638592705130577, -0.018749812617897987, 0.06938520818948746, 0.023777924478054047, 0.012284125201404095, -0.022197270765900612, -0.03799017518758774, -0.013244780711829662, -0.03221261501312256, 0.005396021995693445, 0.02440473437309265, -0.055758893489837646, -0.02905130945146084, -0.007508100941777229, 0.00016639010573271662, 0.013060825876891613, 0.04480333253741264, 0.02256518229842186, 0.003256689989939332, 0.010764790698885918, -0.02395506575703621, 0.0010398583253845572, -0.03924379497766495, -0.00451031094416976, 0.019621897488832474, -0.03106800466775894, -0.034447330981492996, 0.01175951212644577, -0.02905130945146084, 0.014770927838981152, -0.00234542996622622, 0.003306085243821144, -0.0087821613997221, -0.007147003430873156, -0.05739405006170273, -0.02035771869122982, 0.018668055534362793, -0.021079912781715393, 0.028860541060566902, 0.03657303750514984, 0.0032396570313721895, 0.0011539787519723177, 0.00938171986490488, -0.028424497693777084, 0.020602991804480553, -0.0005829508882015944, -0.018640803173184395, -0.006302171852439642, 0.01994892954826355, -0.025535719469189644, -0.026857471093535423, -0.03327546641230583, -0.02242891862988472, -0.010049409233033657, -0.004636354744434357, -0.016256196424365044, 0.021079912781715393, -0.034856121987104416, 0.01430763304233551, 3.494405245874077e-05, 0.039434563368558884, -0.01770058646798134, -0.010648966766893864, 0.02875152975320816, 0.008114472031593323, -0.031449541449546814, 0.047801122069358826, -5.264229912427254e-05, 0.009204577654600143, -0.013851151801645756, 0.027102746069431305, 0.005075803492218256, 0.03553743660449982, 0.006509973201900721, 0.022578807547688484, -0.04357696324586868, 0.05554087087512016, -0.005086022894829512, 0.017523445188999176, -0.0743451863527298, -0.034747108817100525, 0.006128436420112848, 0.00773974834010005, 0.047664858400821686, -0.028560761362314224, -0.009919959120452404, 0.06273556500673294, -0.011888962239027023, 0.015561254695057869, -0.026121651753783226, -0.005453933496028185, 0.015329607762396336, -0.01498894952237606, -0.03799017518758774, 0.017278170213103294, 0.01610630750656128, 0.019594645127654076, 0.010403693653643131, -0.011752698570489883, -0.005494812503457069, -0.0024340010713785887, -0.004643167834728956, 0.01685575395822525, 0.022742323577404022, -0.017319049686193466, -0.020480355247855186, 0.006087557412683964, 0.0055663506500422955, 0.033929530531167984, -0.013544559478759766, -0.028588013723492622, -0.0014707907103002071, 0.015397738665342331, -0.019117724150419235, 0.02984163537621498, 0.02022145502269268, -0.014294006861746311, -0.011861709877848625, -0.002875152975320816, 0.031722068786621094, 0.020344091579318047, 0.01444389671087265, -0.03139503672719002, -0.03332997113466263, 0.034883372485637665, 0.0247726459056139, 0.04551190137863159, -0.011153141036629677, -0.000347471097484231, -0.03150404617190361, -0.018599923700094223, -0.00968831218779087, 0.008972929790616035, -0.005941074341535568, 0.04289564862847328, -0.014907191507518291, -0.005896789021790028, 0.021216176450252533, -0.022115513682365417, -0.009320401586592197, -0.019553765654563904, -0.011595996096730232, 0.006775686517357826, -0.019417501986026764, -0.0024510337971150875, -0.025671983137726784, -0.028560761362314224, -0.0015184828080236912, 0.0072151352651417255, 0.0036143807228654623, -0.024827150627970695, 0.0071333772502839565, -0.03698182478547096, 0.011132701300084591, -0.0027610326651483774, -0.007841945625841618, -0.00031085035880096257, -0.002992680063471198, 0.00810765940696001, -0.011623249389231205, 0.04245960712432861, 0.01862717606127262, 0.002408451633527875, 0.016501471400260925, 0.014294006861746311, 0.005740086082369089, 0.0009964244673028588, 0.0031425694469362497, 0.027647798880934715, 0.006615577265620232, 0.0071333772502839565, -0.04523937404155731, 0.0016726304311305285, -0.028560761362314224, 0.04030664637684822, -0.014416644349694252, 0.026244288310408592, 0.005917228292673826, -0.007439969573169947, -0.00014233114779926836, 0.041778288781642914, -0.009763256646692753, -0.05044462904334068, 0.013135770335793495, -0.031177014112472534, -0.01553400233387947, 0.025372203439474106, -0.04687453433871269, -0.0005846542189829051, -0.0350741408765316, -0.019458381459116936, -0.025971760973334312, -0.01692388579249382, 0.04333169013261795, 2.688004133233335e-05, -0.006959641817957163, 0.040224891155958176, -0.00925908237695694, -0.00749447476118803, -0.013687635771930218, 0.03136778250336647, -0.007637551054358482, -0.005392615217715502, 0.004609101917594671, 0.01359225157648325, 0.0010253804503008723, -0.02052123472094536, 0.010301495902240276, 0.026462309062480927, 0.0038664676249027252, -0.03551018238067627, 0.007126564159989357, 0.010941932909190655, -0.007310519460588694, 0.012202367186546326, -0.011343909427523613, -0.017577949911355972, -0.03327546641230583, 0.03248514235019684, 0.002396528609097004, -0.0010943636298179626, -0.02932383492588997, 0.035428427159786224, 0.003055701730772853, -0.012508959509432316, -0.0037199847865849733, 0.018163882195949554, -0.02745703049004078, 0.010342375375330448, -0.016460591927170753, -0.0018071903614327312, -0.0030744378454983234, 0.0057060206308960915, -0.006128436420112848, -0.013926096260547638, -0.032566897571086884, 0.01493444386869669, -0.028233729302883148, 0.010063035413622856, -0.03553743660449982, -0.004377454519271851, 0.024350229650735855, 0.028642520308494568, 0.020466728135943413, 0.005419868044555187, 0.02752516232430935, 0.015220596455037594, -0.01917222887277603, 0.03725435212254524, -0.010771604254841805, -0.010519517585635185, 0.010546769946813583, 0.0024765832349658012, 0.0049429466016590595, 0.037199847400188446, 0.0077806273475289345, -0.056358449161052704, -0.040797196328639984, 0.014907191507518291, -0.005201846826821566, 0.022878587245941162, 0.004285477101802826, -0.005525471642613411, -0.004639761056751013, -0.014839059673249722, -0.030877236276865005, 0.010137979872524738, 0.018068498000502586, -0.024827150627970695, 0.022524302825331688, 0.007767001166939735, -0.004711299203336239, 0.0009708751458674669, 0.031122509390115738, 0.02365528792142868, -0.009770069271326065, 0.0026860879734158516, 0.03425656259059906, 0.012910936027765274, 0.0013515603495761752, -0.008734469301998615, 0.014430270530283451, -0.008877545595169067, -0.004081082064658403, 0.01780959777534008, -0.010465011931955814, -0.014130491763353348, 0.004012950696051121, -0.0006847224431112409, 0.021297933533787727, 0.0026639450807124376, 0.04622047021985054, 0.006864257622510195, -0.001592575921677053, -0.004057236015796661, -0.011814017780125141, -0.010376441292464733, 0.00469085993245244, 0.004721519071608782, 0.017550697550177574, -0.02606714516878128, 0.002813834697008133, 0.02946009859442711, 0.011800390668213367, -0.005007671657949686, 0.009742816910147667, 0.0009998310124501586, -0.025372203439474106, 0.02372341975569725, 0.020466728135943413, -0.04755584895610809, 0.014198622666299343, -0.03837171196937561, -0.02704824134707451, -0.04240509867668152, -0.00012199812772450969, -0.011180393397808075, 0.033220961689949036, 0.007801066618412733, -0.008945677429437637, 0.005447120405733585, 0.03864423558115959, 0.0047896504402160645, 0.0024152647238224745, -0.006731400731950998, 0.004489871673285961, -0.04856419563293457, -0.015465870499610901, -0.0006898323190398514, -0.009831388480961323, 0.008809414692223072, 0.010683032684028149, 0.00500426534563303, -0.020207829773426056, -0.03932555392384529, 0.011262151412665844, 0.010137979872524738, -0.003968664910644293, -0.02807021513581276, -0.0005105611053295434, 0.0027508127968758345, 0.0035428425762802362, -0.02736164629459381, 0.00718788243830204, 0.0024237812031060457, 0.02959636226296425, 0.030713720247149467, -0.026557693257927895, -0.007221948355436325, -0.007385463919490576, 0.0543145015835762, -0.005855910014361143, 0.019362997263669968, 0.019553765654563904, 0.01655597612261772, -0.04758309945464134, -0.012243246659636497, -0.019867170602083206, 0.00445239944383502, -0.011507425457239151, 0.0031050972174853086, -0.0364367738366127, 0.0070379930548369884, -0.02554934471845627, -0.015997296199202538, -0.02845175191760063, 0.010301495902240276, 0.019349370151758194, -0.04483058676123619, -0.020207829773426056, 0.01845003478229046, -0.0004345517954789102, 0.013040386140346527, 0.0055663506500422955, 0.006932388991117477, 0.031204266473650932, -0.008434690535068512, -0.02103903517127037, 0.02529044635593891, -0.005644701886922121, 0.028124719858169556, -0.004241191316395998, -0.038862258195877075, 0.01794585958123207, -0.010424133390188217, -0.03025042451918125, -0.004588662646710873, 0.021938370540738106, 0.02079376019537449, 0.04145125672221184, -0.015424991957843304, -0.005157561041414738, -0.0009189248085021973, -0.02725263498723507, 0.02324649877846241, -0.014825433492660522, -0.019894422963261604, 0.029541855677962303, 0.02786581963300705, 0.003651853185147047, 0.020889144390821457, 0.0063668969087302685, 0.05308813229203224, 0.0104990778490901, 0.038317203521728516, -0.038562480360269547, -0.025712860748171806, -0.054123733192682266, -0.015016201883554459, 0.00028061697958037257, -0.021624965593218803, 0.0010330452350899577, 0.004466025624424219, 0.04344069957733154, -0.016160812228918076, -0.04632947966456413, -0.012529399245977402, -0.027688676491379738, -0.01885882392525673, 0.0005552724469453096, -0.03741787001490593, -0.008639085106551647, 0.002660538535565138, 0.016201691702008247, 0.02640780434012413, -0.00788282509893179, 0.0158065278083086, -0.03700907900929451, -0.0009325511055067182, -0.028588013723492622, -0.01808212324976921, -7.281563739525154e-05, -0.0037574570160359144, 0.010083475150167942, 0.008434690535068512, -0.009647432714700699, -0.012904122471809387, -0.0023164739832282066, -0.01974453404545784, 0.031449541449546814, 0.009109193459153175, 0.02559022419154644, 0.02406407706439495, 0.01004259567707777, 0.0027695491444319487, 0.0018668054835870862, -0.01089424081146717, -0.004380861297249794, 0.022946719080209732, 0.00797139573842287, 0.04254136234521866, 0.015097959898412228, -0.02263331413269043, -0.0012680991785600781, -0.006421402096748352, -0.00749447476118803, 0.0057196468114852905, -0.015125212259590626, -0.006373709999024868, -0.004970199428498745, -0.02172034978866577, 0.01357862539589405, -0.02024870738387108, 0.015329607762396336, 0.000634475436527282, 0.005143934860825539, -0.0012706541456282139, 0.021842986345291138, 0.00675524678081274, -0.009150072000920773, 0.0013277143007144332, -0.006097777280956507, -0.001305571524426341, 0.017686959356069565, -0.031449541449546814, 0.007385463919490576, -0.028969550505280495, -0.015193344093859196, -0.015125212259590626, -0.006452061235904694, -0.006881290581077337, 0.009892706759274006, -0.024145834147930145, 0.018191134557127953, 0.003447458380833268, -0.02613527700304985, 0.002405045088380575, 0.001712657744064927, -0.014294006861746311, 0.044367291033267975, -0.033766016364097595, 0.013040386140346527, 0.04859144985675812, -0.01190940197557211, -0.011739072389900684, 0.02286496013402939, 0.04305916279554367, -0.0019093877635896206, -0.004374047741293907, -0.008352932520210743, 0.012938188388943672, 0.03188558295369148, 0.020957276225090027, -0.018095750361680984, -0.02290583960711956, -0.0037540504708886147, -0.015125212259590626, -0.012740607373416424, 0.015343233942985535, -0.04030664637684822, -0.01658322848379612, -0.021297933533787727, -0.0007192140910774469, 0.01933574490249157, -0.00529382424429059, -0.011568743735551834, 0.0012757639633491635, 0.0005305747617967427, 0.0013719998532906175, -0.00615909555926919, 0.029269330203533173, 0.0007677578250877559, 0.026285165920853615, 0.02093002386391163, 0.010717098601162434, -0.020207829773426056, -0.0029279550071805716, 0.008734469301998615, -0.008877545595169067, 0.006090964190661907, 0.0020030688028782606, 0.010860174894332886, -0.000491399085149169, -0.027279887348413467, 0.0014213952235877514, -0.008502822369337082, 0.026516813784837723, 0.01262478344142437, 0.003365700365975499, 0.0030352622270584106, 0.01395334955304861, -0.06202699616551399, -0.006441841833293438, 0.03932555392384529, 0.0171964131295681, -0.014225875958800316, -0.033220961689949036, 0.04158752039074898, 0.016283448785543442, -0.020344091579318047, -0.02001706138253212, -0.00026422282098792493, 0.015561254695057869, 0.007324145641177893, -0.002779768779873848, 0.01910409703850746, -0.007712495978921652, -0.0009478807332925498, -0.013026759959757328, -0.012052478268742561, -0.009967651218175888, -0.00659173121675849, 0.011132701300084591, 0.019935302436351776, 0.029650866985321045, 0.029923394322395325, -0.01665136031806469, 0.008087219670414925, 0.008352932520210743, -0.003934598993510008, 0.026285165920853615, -0.001005792524665594, -0.007848759181797504, 0.009054687805473804, -0.007521727122366428, -0.012570277787744999, 0.00029275292763486505, 0.0015789495082572103, 0.007365024648606777, 0.04166927933692932, -0.017686959356069565, -0.0034185023978352547, 0.007712495978921652, -0.005985360126942396, -0.02629879303276539, -0.01678762398660183, -0.031585805118083954, 0.014130491763353348, -0.00020907880389131606, 0.00810765940696001, 0.019349370151758194, -0.010710285976529121, -0.018027618527412415, -0.010233364067971706, -0.0023318035528063774, 0.010049409233033657, -0.0015593616990372539, 0.021161671727895737, -0.011391601525247097, -0.004227565135806799, -0.00866633839905262, 0.005103055853396654, -0.024254845455288887, 0.016092680394649506, -0.0026980109978467226, 0.015888286754488945, -0.01145291980355978, 0.042977407574653625, 0.02470451407134533, -0.006431621965020895, -0.05464153364300728, 0.017455313354730606, 0.0029228450730443, -0.03657303750514984, -0.016542349010705948, -0.014961697161197662, 0.01146654598414898, -0.022578807547688484, 0.03305744752287865, -0.021093539893627167, -0.019485633820295334, 0.013919283635914326, 0.009497543796896935, 0.005334703251719475, -0.010015343315899372], "id": 25}, {"title": "Bill Johnson (center)", "text": "William Levi Johnson, Sr. (September 14, 1926 \u2013 January 7, 2011), known as Bill \"Tiger\" Johnson, was a professional football player and coach. He was born in Tyler, Texas, where he was raised by his single mother and five older siblings. Among his siblings was older brother Gilbert Johnson, who played quarterback at Southern Methodist University with the iconic running back Doak Walker.", "vector": [0.07187927514314651, -0.03665780648589134, -0.014136985875666142, -0.007833498530089855, -0.03672025352716446, 0.04143518581986427, 0.0021954872645437717, -0.0465872623026371, 0.01088961586356163, 0.0881161242723465, -0.06207471713423729, 0.0063581308349967, -0.022060254588723183, 0.044776227325201035, -0.02248178794980049, 0.054799359291791916, -0.04302764683961868, 0.04274662211537361, 0.04440153390169144, -0.028773566707968712, 0.04768012464046478, -0.007404158357530832, 0.02081126719713211, -0.004839829634875059, 0.05973286181688309, 0.011826357804238796, 0.018375739455223083, -0.003979198634624481, -0.013028508983552456, -0.07394010573625565, 0.003674757666885853, 0.012880191206932068, 0.03703249990940094, -0.000524477509316057, 0.02499537728726864, 0.003684515366330743, -0.04646236449480057, -0.019890137016773224, 0.017189200967550278, 0.030287964269518852, 0.013824738562107086, -0.024136697873473167, -0.04958483204245567, -0.04883544147014618, 0.04627501592040062, 0.024761192500591278, -0.07194172590970993, 0.009632822126150131, 0.0005493596545420587, -0.013504685834050179, 0.015760671347379684, -0.015401585958898067, 0.012591362930834293, 0.05873367190361023, 0.014246271923184395, -0.004718833602964878, 0.003508876310661435, 0.09092634171247482, -0.008883428759872913, 0.0008235516143031418, -0.04743032902479172, -0.003065875731408596, 0.02216954156756401, -0.00829015951603651, 0.06594657897949219, -0.001378765911795199, 0.001493907067924738, 0.0473678782582283, -0.011061351746320724, 0.05536140501499176, -0.002232566475868225, 0.002765337936580181, 0.03943680226802826, 0.0330045148730278, -0.023231182247400284, -0.014222853817045689, 0.014418007805943489, 0.01840696483850479, -0.014371170662343502, -0.020873716101050377, 0.017267262563109398, -0.03987395018339157, -0.007833498530089855, 0.028867240995168686, -0.010468082502484322, 0.00832919031381607, 0.03387880697846413, -0.07906095683574677, -0.04583786800503731, -0.011787327006459236, 0.06235573813319206, 0.0018959251465275884, -0.0018090814119204879, 0.014823929406702518, 0.08068463951349258, -0.016392970457673073, -0.007732017897069454, -0.028242746368050575, 0.019359318539500237, -0.01531571801751852, 0.02702498249709606, -0.0075563788414001465, -0.02295015938580036, -0.008485313504934311, 0.028430094942450523, -0.025135887786746025, -0.034222278743982315, 0.03734475001692772, 0.009383024647831917, 0.03653290495276451, 0.0013924267841503024, 0.01812594197690487, -0.02457384392619133, 0.0007293896051123738, -0.022700361907482147, 0.0054174866527318954, 0.003555713454261422, -0.013934025540947914, -0.023434141650795937, 0.006350324489176273, -0.03241124376654625, -0.06191859394311905, -0.019437380135059357, 0.012427433393895626, 0.010905228555202484, -0.04671216011047363, -0.004098242614418268, 0.014293109066784382, 0.011069158092141151, -0.008055973798036575, -0.024292821064591408, -0.01723603717982769, -0.01444142684340477, 0.0174702238291502, 0.005444807931780815, -0.03384758159518242, 0.025526197627186775, -0.045431949198246, 0.049709733575582504, 0.047149308025836945, 0.0017944448627531528, 0.009999711997807026, -0.00452367914840579, 0.05080259591341019, 0.0714421272277832, -0.04677461087703705, 0.0295073464512825, 0.011701459065079689, 0.018547475337982178, -0.03734475001692772, -0.016908178105950356, 0.026915697380900383, -0.009172257035970688, 0.00434804055839777, 0.015385974198579788, 0.018297677859663963, -0.046680934727191925, -0.005183301400393248, -0.008758530020713806, 0.005440905224531889, -0.02752457931637764, -0.002650196896865964, -0.018001042306423187, 0.011123801581561565, -0.014222853817045689, 0.005273072049021721, 0.01932809315621853, -0.011147219687700272, -0.005034984089434147, 0.01449606940150261, -0.013020702637732029, -0.030881233513355255, -0.006982624996453524, -0.009906037710607052, -0.04849196970462799, 0.009398636408150196, 0.015659190714359283, -0.014699030667543411, 0.010647624731063843, 0.035970862954854965, -0.013668615370988846, 0.020452182739973068, -0.005554094444960356, -0.010608593933284283, -0.0003359095426276326, -0.0043831681832671165, 0.028367646038532257, 0.015838732942938805, 0.01634613424539566, -0.011342374607920647, 0.02686885930597782, -0.01995258778333664, 0.02718110755085945, -0.015448423102498055, 0.030647048726677895, 0.006955303251743317, 0.0014177968259900808, -0.02185729518532753, -0.0061161392368376255, 0.00318882311694324, 0.07150457799434662, -0.007298775017261505, -0.013637389987707138, 0.020717592909932137, -0.0026326330844312906, -0.0008552641957066953, -0.01309876423329115, -0.01121747586876154, -0.030116228386759758, 0.02081126719713211, 0.023387305438518524, 0.01195906288921833, -0.013075346127152443, 0.005792182870209217, 7.915950845927e-05, 0.008009137585759163, 0.030506538227200508, 0.04006129875779152, 0.017595121636986732, 0.049366261810064316, 0.009312768466770649, 0.04137273505330086, -0.011201863177120686, 0.01867237500846386, 0.009000521153211594, -0.039655376225709915, -0.01793859340250492, -0.004332427866756916, -0.018453801050782204, -0.029241938143968582, -0.04218457639217377, 0.0481484979391098, -0.012841160409152508, 0.046837057918310165, -0.02721233107149601, 0.013012896291911602, 0.042715396732091904, -0.030225515365600586, -0.03887476027011871, -0.06607148051261902, 0.006955303251743317, 0.004320718813687563, 0.006479126401245594, -0.04596276581287384, 0.0021642623469233513, 0.014691224321722984, -0.07350295782089233, -0.04611889272928238, -0.044276632368564606, 0.010959872044622898, -0.018625536933541298, -0.04749277979135513, -0.009625015780329704, -0.0562981441617012, 0.01611194759607315, -0.013379786163568497, -0.016486644744873047, 0.024776805192232132, 0.043308667838573456, -0.055298954248428345, -0.02279403619468212, 0.030287964269518852, -0.01914074458181858, 0.005901469383388758, -0.009250319562852383, -0.03490922227501869, -0.03465942293405533, 0.0613253228366375, 0.05739101022481918, -0.014058924280107021, -0.03768822178244591, 0.0033195766154676676, -0.009273737668991089, 0.005093530286103487, 0.0014763431390747428, -0.017673183232545853, -0.05907714366912842, -0.037438422441482544, -0.005573609843850136, 0.05536140501499176, 0.01556551642715931, 0.04633746296167374, 0.04040477052330971, -0.035346366465091705, 0.04405806213617325, 0.008040362037718296, -0.03618943318724632, 0.03987395018339157, 0.03784434497356415, -0.03987395018339157, -0.01207615528255701, 0.041091714054346085, 0.011201863177120686, -0.014277497306466103, 0.029101425781846046, 0.0043831681832671165, -0.018812885507941246, -0.05158321559429169, 0.012700648978352547, 0.0005108166951686144, 0.04243437573313713, 0.021029839292168617, -0.03141205385327339, -0.0512397438287735, -0.020311672240495682, -0.01316121406853199, 0.0029643955640494823, -0.014347752556204796, -0.007899850606918335, 0.00044836726738139987, -0.06644617766141891, -0.012646006420254707, 0.055298954248428345, 0.03381635621190071, 0.024167923256754875, -0.0014236514689400792, 0.03005377948284149, 0.035034120082855225, 0.0054174866527318954, -0.02690008468925953, 0.0046563842333853245, 0.024511395022273064, -0.015073726885020733, -0.030568987131118774, 0.04789869859814644, -0.03746964782476425, -0.007653956301510334, -0.0007362200412899256, 0.002462848788127303, 0.012286921963095665, -0.017407773062586784, 0.0013621777761727571, -0.040592119097709656, -0.003442523768171668, 0.011982480995357037, -0.012357177212834358, -0.07462704926729202, 0.006100527010858059, -0.0686943531036377, -0.011701459065079689, -0.023824451491236687, 0.0018832400674000382, 0.013457848690450191, 0.02352781593799591, -0.001623684773221612, -0.02491731569170952, 0.03634555637836456, 0.041872330009937286, -0.016908178105950356, -0.002453091088682413, 0.0008206242928281426, 0.028789179399609566, -0.005261362995952368, -0.008860010653734207, 0.04511969909071922, -0.017907369881868362, -0.05773448199033737, -0.01778247021138668, 0.022684749215841293, 0.0017105283914133906, -0.009023940190672874, 0.0102885402739048, 0.0011192106176167727, 0.07550133764743805, -0.04290274530649185, 0.017907369881868362, 0.062324512749910355, -0.016627155244350433, -0.01597924344241619, 0.024292821064591408, -0.012060542590916157, 0.02744651585817337, 0.05058402568101883, 0.019515441730618477, 0.025292012840509415, 0.002745822537690401, 0.007251937873661518, -0.017282875254750252, 0.02170117013156414, 0.007763242349028587, -0.021576272323727608, -0.00908638909459114, 0.02368393912911415, -0.012927028350532055, -0.01590118184685707, -0.026697123423218727, -0.014027698896825314, -0.025245174765586853, -0.06419799476861954, 0.012895803898572922, 0.08055974543094635, 0.04752400144934654, 0.006689893081784248, -0.03266104310750961, 0.025338849052786827, -0.001320219598710537, 0.0003932361432816833, 0.026681510731577873, 0.022653523832559586, 0.02449578233063221, 0.019421767443418503, -0.067570261657238, -0.015526484698057175, -0.06582167744636536, -0.027430905029177666, -0.020951777696609497, 0.015425004996359348, 0.027071820572018623, 0.015924600884318352, -0.0017319953767582774, 0.03186481446027756, 0.01181855145841837, -0.04646236449480057, -0.014800510369241238, 0.0034073961433023214, -0.03188042342662811, -0.037407197058200836, -0.007993524894118309, 0.0174702238291502, 0.00011721462215064093, -0.012482075951993465, -0.010046549141407013, 0.016517870128154755, -0.020358508452773094, 0.01723603717982769, 0.024823641404509544, 0.03831271454691887, -0.00157489615958184, -0.01614317297935486, -0.021404536440968513, -0.045244600623846054, 0.00881317351013422, -0.01987452618777752, 0.0756886899471283, -0.0162992961704731, -0.02379322610795498, 0.021482598036527634, 0.016205621883273125, 0.031084194779396057, 0.006451805122196674, -0.007665665354579687, 0.0384376123547554, -0.0043909745290875435, 0.014121373184025288, -0.037906792014837265, -0.05564242601394653, -0.02981959469616413, -0.00039030882180668414, 0.03968660160899162, 0.0068225981667637825, -0.03834393993020058, -0.001300704199820757, -0.00035249764914624393, -0.01720481365919113, -0.01389499381184578, -0.013543716631829739, 0.03712617605924606, -0.01658031903207302, -0.0531756728887558, 0.03531514108181, 0.015893375501036644, -0.013348561711609364, 0.03856251388788223, -0.011350180953741074, -0.061013076454401016, 0.0026423907838761806, 0.010007518343627453, 0.013481266796588898, -0.03993640094995499, -0.02112351357936859, 0.035471267998218536, -0.01253671944141388, 0.003944070544093847, 0.013301724568009377, -0.032161448150873184, -0.007146554533392191, 0.023746389895677567, 0.04040477052330971, 0.036314334720373154, 0.03253614529967308, 0.06226206570863724, 0.00021088874200358987, 0.005663380958139896, -0.01455851923674345, 0.04199723154306412, -0.0349404476583004, 0.014566325582563877, -0.013223662972450256, 0.011194056831300259, 0.0011640960583463311, 0.03737597167491913, 0.04608766734600067, -0.021763620898127556, -0.024636292830109596, -0.012286921963095665, 0.07593848556280136, -0.017688795924186707, 0.009398636408150196, -0.0011045739520341158, 0.009164451621472836, 0.01789175719022751, 0.02227882854640484, 0.035502489656209946, 0.0019017797894775867, -0.016096336767077446, -0.009258124977350235, 0.046025216579437256, 0.052270159125328064, 0.016205621883273125, -0.012880191206932068, 0.00046934635611250997, 0.002310628304257989, -0.024043023586273193, -0.020358508452773094, -0.01199809368699789, -0.024121085181832314, 0.019156357273459435, -0.018703598529100418, 0.037594545632600784, 0.05567365139722824, -0.024292821064591408, 0.019093908369541168, 0.0322238951921463, 0.045712970197200775, 0.0663837268948555, -0.003606453537940979, -0.005304296966642141, 0.0021135222632437944, 0.0008318456821143627, -0.002417963230982423, 0.0007869601831771433, 0.0018149360548704863, 0.03063143603503704, -0.000141243013786152, -0.044745005667209625, 0.0333792120218277, -0.00622932892292738, -0.0205770805478096, -0.005963918752968311, -0.017485834658145905, 0.04989708214998245, -0.04886666685342789, 0.010413439944386482, 7.37927621230483e-05, -0.011225282214581966, -0.0034932640846818686, -0.048273395746946335, -0.01681450381875038, 0.02384006232023239, -0.025682320818305016, 0.03250491991639137, -0.01637735776603222, 0.011576559394598007, -0.0019310528878122568, 0.017985431477427483, -0.00690846610814333, -0.058171626180410385, -0.006362034007906914, -0.00818867888301611, -0.0023477075155824423, -0.0007854964933358133, -0.04583786800503731, -0.03906210884451866, 0.008883428759872913, -0.001251915586180985, 0.0075485724955797195, -0.036439232528209686, 0.019359318539500237, -0.03403493016958237, 0.020904941484332085, -0.007048977538943291, -0.017766857519745827, 0.019047070294618607, -0.005948306526988745, 0.042715396732091904, -0.014324333518743515, 0.008618018589913845, 0.02643171325325966, 0.014987858943641186, 0.007048977538943291, -0.000664012914057821, -0.008243322372436523, 0.015838732942938805, 0.01801665499806404, -0.0349404476583004, 0.004000665619969368, -0.00754076661542058, -0.019109521061182022, 0.044432755559682846, -0.047024406492710114, 0.02329363115131855, -0.03419105336070061, 0.030459700152277946, 0.03269226849079132, 0.06500983983278275, -0.012294728308916092, 0.02783682569861412, 0.056391820311546326, -0.0012636248720809817, -0.013208050280809402, 0.04240315034985542, 0.021763620898127556, 0.032005324959754944, 0.008711692877113819, 0.004519776441156864, -0.03593963757157326, 0.006022465415298939, -0.02869550511240959, 0.006443998776376247, -0.009039552882313728, -0.02647855132818222, -0.01253671944141388, 0.04911646246910095, 0.0192188061773777, 0.013411011546850204, 0.0016031934646889567, -0.010226091369986534, -0.0211547389626503, 0.01906268298625946, -0.0007220713305287063, 0.008883428759872913, 0.018219616264104843, 0.0022189056035131216, -0.015222044661641121, -0.0005161834415048361, 0.02391812577843666, 0.008664855733513832, -0.030600212514400482, -0.01201370544731617, 0.03478432446718216, -0.003729400923475623, 0.00013172923354431987, -0.047929923981428146, -0.001975938444957137, -0.007357321213930845, 0.0004947164561599493, 0.038031693547964096, -0.032785940915346146, 0.052238933742046356, 0.01572163961827755, 0.05632936954498291, 0.024058636277914047, 0.028789179399609566, 0.00037567224353551865, -0.015737252309918404, -0.027618251740932465, 0.02452700585126877, -0.008899041451513767, 0.0003481066960375756, 0.020015036687254906, 0.002802417380735278, -0.020936165004968643, 0.053050775080919266, -0.01715797558426857, -0.03425350412726402, -0.0039694407023489475, -0.030256740748882294, 0.017376549541950226, 0.013543716631829739, 0.004063114989548922, 0.016236847266554832, -0.013504685834050179, 0.002398447832092643, -0.011943450197577477, 0.016986239701509476, -0.011834163218736649, 0.029835207387804985, 0.025245174765586853, -0.004781282972544432, -0.03133399412035942, -0.004492454696446657, 0.011841969564557076, -0.01668960601091385, -0.001271430985070765, 0.012138604186475277, 0.0089302659034729, -0.05726611241698265, -0.01825084164738655, 0.0051442701369524, 0.005058402195572853, -0.013699839822947979, 0.004273881670087576, -0.02480802871286869, -0.015292299911379814, 0.027227943763136864, -0.010101192630827427, -0.0018783612176775932, -0.0174702238291502, -0.010725686326622963, 0.04102926328778267, -0.01259916927665472, 0.05732855945825577, 0.028367646038532257, 0.01668960601091385, -0.01859431341290474, 0.036283109337091446, 0.02243495173752308, -0.04574419558048248, -0.03016306646168232, -0.04102926328778267, -0.007993524894118309, 0.03447207435965538, 0.01804788038134575, 0.014925409108400345, -0.01133456826210022, -0.0030814881902188063, -0.020436570048332214, -0.0640731006860733, 0.04639991372823715, -0.029991330578923225, -0.015682607889175415, 0.008524345234036446, -0.02418353408575058, 0.0021291347220540047, -0.038843534886837006, -0.020826879888772964, 0.003981150221079588, -0.015456229448318481, -0.03303574025630951, -0.012146410532295704, -0.006213716696947813, 0.04318377003073692, 0.03703249990940094, 0.0027789988089352846, 0.01692379079759121, 0.022466175258159637, -0.014784898608922958, 0.03250491991639137, 0.01073349267244339, -0.012778710573911667, 0.004508066922426224, 0.007029462140053511, 0.03856251388788223, -0.006049786694347858, 0.06632127612829208, -0.0013709597988054156, -0.02298138290643692, 0.01339539885520935, 0.006010755896568298, -0.014160403981804848, 0.009804558008909225, -0.023621490225195885, 0.012583556585013866, -0.021576272323727608, -0.03800046816468239, 0.017876144498586655, -0.002146698534488678, 0.012333759106695652, 0.004816411063075066, -0.06357350200414658, 0.031974099576473236, 0.00014356046449393034, -0.026416100561618805, -0.026915697380900383, 0.030147453770041466, -0.0004154349444434047, -0.015393780544400215, -0.033785130828619, 0.0029936686623841524, -0.02953857183456421, -0.02279403619468212, 0.0063073905184865, -0.009109808132052422, -0.002080345991998911, 0.006986528169363737, -0.006682087201625109, -0.005530675873160362, -0.015908988192677498, 0.0137779014185071, -0.0102885402739048, -0.0016851583495736122, 0.006428386550396681, -0.00968746468424797, -0.0020530244801193476, -0.019749626517295837, -0.004035793244838715, 0.021732395514845848, 0.026837635785341263, -0.03712617605924606, 0.014839541167020798, -0.046056441962718964, -0.008860010653734207, -0.01279432326555252, -0.007404158357530832, -0.020483408123254776, -0.01836012676358223, 0.03228634595870972, 0.03105296939611435, -0.0075212512165308, 0.012029318138957024, 0.021904131397604942, 0.02627559006214142, 0.0044104899279773235, 0.027774376794695854, 0.014371170662343502, 0.01395744364708662, -0.0034581362269818783, -0.024214759469032288, -0.004691512323915958, -0.029913268983364105, 0.004992050118744373, -0.002359416801482439, 0.005585319362580776, -0.040435995906591415, 0.012208860367536545, -0.008610213175415993, -0.01720481365919113, -0.00900832749903202, 0.00252334657125175, 0.0017388258129358292, 0.004176304675638676, -0.004059211816638708, 0.034846771508455276, -0.012107379734516144, 0.004160691983997822, 0.03465942293405533, 0.0014070633333176374, 0.01147507969290018, -0.03447207435965538, -0.001024560653604567, -0.04643113911151886, 0.03544004261493683, 0.001523180166259408, -0.01141262985765934, 0.014293109066784382, 0.0019749626517295837, -0.018656762316823006, 0.008594600483775139, -0.00033322616945952177, -0.010304152965545654, -0.004094339441508055, 0.008024749346077442, -0.014300915412604809, -0.03447207435965538, -0.0152376564219594, 0.020483408123254776, -0.0024804126005619764, -0.0043909745290875435, 0.017142362892627716, 0.01661154441535473, 0.03634555637836456, -0.015620158985257149, -0.017595121636986732, 0.014628774486482143, 0.007103620562702417, 0.016392970457673073, 0.02379322610795498, -0.028398869559168816, 0.008500926196575165, -0.014628774486482143, -0.020389733836054802, 0.031115420162677765, 0.00036249932600185275, 0.014012087136507034, -0.021810457110404968, 0.01925003156065941, 0.010405633598566055, 0.042340703308582306, -0.04177865758538246, 0.024464556947350502, 0.012232278473675251, 0.02457384392619133, 0.023777613416314125, 0.009437667205929756, 0.027571415528655052, -0.035190243273973465, -0.0003381050191819668, -0.015417198650538921, 0.033285535871982574, -0.038406386971473694, 0.009788945317268372, 0.01139701809734106, 0.017407773062586784, 0.014527294784784317, -0.031146643683314323, 0.06819476187229156, -0.03447207435965538, -0.027149882167577744, 0.027274779975414276, -0.01189661305397749, -0.0050466931425035, -0.032473694533109665, -0.03178675100207329, -0.005534579046070576, -0.007439286448061466, 0.02752457931637764, -0.017954206094145775, -0.019203193485736847, -0.0018081056186929345, -0.007271453272551298, -0.012474270537495613, -0.022575462237000465, 0.007314387243241072, -0.020202385261654854, -0.020436570048332214, 0.017829306423664093, -0.026181915774941444, -0.0360957607626915, -0.022185154259204865, 0.012778710573911667, 0.011240893974900246, 0.016830116510391235, -0.016002662479877472, -0.016018275171518326, 0.06301146000623703, -0.002890236908569932, -0.014371170662343502, 0.005924887955188751, 0.02713426947593689, -0.008376027457416058, 0.02530762366950512, 0.024433333426713943, 0.026837635785341263, 0.0031458891462534666, 0.009367411956191063, 0.05717243626713753, -0.047805026173591614, 0.026369264349341393, -0.0009006375912576914, 0.03089684620499611, 0.0061902981251478195, 0.028929689899086952, -0.008009137585759163, 0.04905401170253754, 0.005917081609368324, 0.006826501339673996, -0.0025311526842415333, -0.0007986694108694792, -0.0005093530053272843, 0.03637678176164627, -0.02977275662124157, 0.0026326330844312906, -0.004832023289054632, 0.002958540804684162, 0.0137779014185071, -0.02060830593109131, 0.03384758159518242, 0.03475309908390045, -0.005222332198172808, -0.008922459557652473, 0.023652715608477592, 0.021763620898127556, -0.02650977484881878, 0.02512027695775032, -0.02465190552175045, 0.02833642065525055, 0.011428242549300194, -0.008899041451513767, -0.04749277979135513, 0.03141205385327339, 0.0500844269990921, 0.006611831486225128, 0.012927028350532055, -0.02752457931637764, 0.01642419584095478, 0.03005377948284149, -0.003846493549644947, 0.01249768864363432, 0.016002662479877472, -0.023621490225195885, -0.015830926597118378, 0.017173588275909424, -0.03668902814388275, 0.013723257929086685, -0.037750668823719025, 0.020155547186732292, -0.006112236063927412, -0.043808262795209885, 0.011069158092141151, -0.04021742194890976, -0.01867237500846386, 0.03606453537940979, -0.044620104134082794, 0.014613162726163864, 0.012544525787234306, 0.04096681624650955, -0.011389211751520634, -0.02838325873017311, -0.008938072249293327, 0.032785940915346146, 0.016314908862113953, 0.023121895268559456, -0.015729445964097977, -0.004297300241887569, 0.03890598565340042, 0.025885282084345818, -0.04196600615978241, 0.07718747109174728, 0.021342087537050247, 0.0007503686938434839, -0.06001388654112816, 0.008282353170216084, 0.00439487723633647, -0.07462704926729202, 0.018469413742423058, -0.0004617841332219541, -0.006369839888066053, 0.012146410532295704, -0.012544525787234306, 0.00881317351013422, -0.011881000362336636, 0.028679892420768738, -0.023043833673000336, 0.012450851500034332, -0.04358968883752823, 0.021404536440968513, -0.009913844056427479, 0.0030814881902188063, 0.00817306712269783, -0.009422055445611477, 0.0062371352687478065, -0.02794611267745495, -0.014901991002261639, -0.04624379053711891, -0.0023516106884926558, -0.07206661999225616, 0.01203712448477745, 0.02686885930597782, 0.03515901789069176, 0.034877996891736984, 0.03109980747103691, 0.005479936022311449, -0.008266741409897804, 0.002792659681290388, -0.00881317351013422, 0.006725021172314882, -0.011553141288459301, -0.01611194759607315, 0.030756335705518723, -0.007525154389441013, -0.029413674026727676, 0.005557997617870569, 0.0029117038939148188, 0.02635365165770054, -0.02274719811975956, -0.011365792714059353, 0.02616630308330059, 0.03618943318724632, 0.0178605318069458, 0.04871053993701935, 0.04327744245529175, -0.0010460276389494538, -0.011756101623177528, -0.019499829038977623, -0.04243437573313713, 0.0047305431216955185, 0.0012099574087187648, 0.023512203246355057, -0.01968717761337757, 0.01279432326555252, 0.015807507559657097, 0.0005225259228609502, 0.00767737440764904, 0.036002084612846375, -0.030912458896636963, -0.004746155347675085, -0.01385596301406622, -0.001081155496649444, 0.0030678273178637028, 0.00968746468424797, 0.04608766734600067, -0.03350410982966423, -6.720630335621536e-05, -0.00929715670645237, 0.013535910286009312, -0.025729157030582428, -0.0007957421476021409, 0.0376569963991642, -0.034690648317337036, 0.000722559227142483, -0.025135887786746025, 0.002486267127096653, 0.01193564385175705, -0.027977336198091507, -0.009406442753970623, 0.011881000362336636, -0.00441439263522625, 0.009781138971447945, -0.01075691170990467, -0.0016090481076389551, 0.001232400070875883, 0.002041315194219351, 0.008984909392893314, 0.03381635621190071, -0.02224760316312313, 0.010819360613822937, -0.009000521153211594, -0.0022501302883028984, 0.041747432202100754, -0.021107900887727737, 0.0021545046474784613, -0.006276166066527367, 0.003731352277100086, -0.007084105163812637, -0.006092720665037632, -0.027493353933095932, -0.0004856905434280634, 0.04905401170253754, -0.01778247021138668, -0.005952209699898958, 0.006221522577106953, -0.03800046816468239, 0.0038055111654102802, -0.004059211816638708, 0.030022554099559784, -0.028117848560214043, -0.02888285368680954, 0.01137359905987978, 0.016314908862113953, -0.014472651295363903, -0.026384877040982246, 0.05005320534110069, -0.013504685834050179, 0.01812594197690487, -0.028601830825209618, 0.007228519301861525, -0.028742341324687004, 0.004679802805185318, -0.007119232788681984, 0.003908942919224501, 0.038031693547964096, -0.0211547389626503, 0.024745579808950424, -0.01750144734978676, 0.019968200474977493, 0.027649477124214172, -0.02081126719713211, 0.01645541936159134, 0.03350410982966423, 0.015440616756677628, -0.037906792014837265, -0.007271453272551298, -0.04558807238936424, 0.007665665354579687, 0.004262172617018223, 0.003596695838496089, -0.008524345234036446, 0.013653002679347992, 0.002940976992249489, -0.007571991067379713, -0.008235516026616096, 0.014238465577363968, -0.020467795431613922, 0.015815313905477524, 0.038031693547964096, -0.029679082334041595, -0.01840696483850479, -0.006584509741514921, 0.00025272497441619635, -0.006205910351127386, -0.020904941484332085, -0.040123745799064636, -0.012981671839952469, 0.037094950675964355, -0.017532672733068466, 0.03800046816468239, -0.007829595357179642, 0.022887710481882095, -0.01948421634733677, -0.04127906262874603, 0.0037957532331347466, -0.0020374120213091373, -0.014917603693902493, 0.011576559394598007, -0.0015358652453869581, 0.02177923172712326, -0.01956227794289589, -0.04721175506711006, 0.006030271295458078, 0.007490026298910379, -0.0013826689682900906, 0.015948018059134483, 0.01968717761337757, 0.010834973305463791, 0.0035693743266165257, -0.017282875254750252, -0.022778423503041267, 0.015807507559657097, -0.018500639125704765, -0.021638721227645874, -0.04049844294786453, -0.03659535571932793, 0.020873716101050377, 0.010452470742166042, -0.0007767145871184766, -0.007154360879212618, 0.00013002162449993193, -0.017033077776432037, -0.007564185187220573, -0.033722683787345886, -0.02825835905969143, 0.00031200313242152333, -0.007985718548297882, 0.015284493565559387, -0.007415867876261473, -0.0011240894673392177, 0.0019476410234346986, 0.024698741734027863, 0.0071699731051921844, -0.015651384368538857, 0.011482886038720608, 0.006982624996453524, 0.018157167360186577, 0.0035635195672512054, 0.004301203414797783, -0.044620104134082794, 0.009484504349529743, -0.005292587913572788, -0.007755436468869448, -0.0008172091329470277, 0.019031457602977753, -0.010717879980802536, -0.025292012840509415, 0.04199723154306412, -0.01976523920893669, -0.019671564921736717, 0.025338849052786827, -0.016439808532595634, -0.008087199181318283, 0.04661848768591881, -0.019421767443418503, -0.028586218133568764, 0.001630515092983842, 0.0004425126244314015, 0.0004778843722306192, 0.005920984782278538, -0.022138316184282303, -0.0493038110435009, -0.002646293956786394, -0.02778998762369156, 0.004102145787328482, -0.01987452618777752, -0.008454089052975178, -0.0043909745290875435, 0.005335521884262562, -0.021482598036527634, -0.006459611002355814, 0.008508732542395592, -0.006276166066527367, 0.007240228820592165, 0.04374581202864647, 0.01579970121383667, 0.0020354604348540306, -0.004742252174764872, -0.004613450262695551, 0.025010989978909492, 0.0295073464512825, -0.0009879692224785686, 0.007970105856657028, -0.017673183232545853, 0.00817306712269783, 0.023356080055236816, -0.01832890324294567, -0.0225130133330822, 0.007771048694849014, 0.021794844418764114, 9.16615899768658e-05, 0.047305431216955185, -0.00945327989757061, -0.021529434248805046, -0.03412860259413719, 0.004418295808136463, -0.004203625954687595, 0.0030307481065392494, 0.02344975434243679, -0.0034347176551818848, 0.006756245624274015, -0.0001247768523171544, -0.02274719811975956, -0.022606687620282173, -0.009445473551750183, -0.000857215782161802, -0.0019915509037673473, -0.023434141650795937, 0.004320718813687563, -0.012232278473675251, -0.012739679776132107, -0.001518301316536963, -0.016627155244350433, 0.04643113911151886, -0.01193564385175705, -0.0098982322961092, -0.03721984848380089, 0.012286921963095665, 0.030490925535559654, -0.0089302659034729, 0.005058402195572853, -0.02551058493554592, -0.0015602594939991832, -0.00637764623388648, -0.006514254491776228, -0.012325952760875225, -0.03194287419319153, -0.014410201460123062, -0.013738870620727539, 0.014847347512841225, -0.004882763605564833, -0.005472129676491022, 0.04355846345424652, 0.004660287406295538, -0.002224760362878442, 0.035845961421728134, -0.0014168210327625275, -0.015651384368538857, 0.008493119850754738, -0.06582167744636536, 0.0038074625190347433, -0.009500117041170597, -0.002453091088682413, 0.005597028415650129, -0.002289161318913102, -0.005319909192621708, -0.019312480464577675, 0.0021427953615784645, 0.05183301120996475, 0.03993640094995499, 0.001383644761517644, -0.010788136161863804, -0.020124323666095734, 0.013629584573209286, -0.009141032584011555, 0.021420149132609367, -0.024433333426713943, -0.0058507295325398445, -0.047180529683828354, 0.01723603717982769, -0.011162832379341125, -1.1419582733651623e-05, -0.02216954156756401, 0.0036591452080756426, 0.0037352554500102997, 0.018766049295663834, -0.02337169274687767, -0.01875043660402298, -0.040154971182346344, -0.027868051081895828, 0.010858391411602497, 0.003987004514783621, 0.047929923981428146, -0.013988668099045753, 0.013738870620727539, 0.001706625334918499, 2.4394300908170408e-06, 0.019125131890177727, -0.038062915205955505, -0.010343183763325214, 0.004789089318364859, -0.002870721509680152, 0.004098242614418268, -0.0024882187135517597, 0.007517348043620586, -0.01971840113401413, 0.0026814215816557407, -0.021529434248805046, -0.007048977538943291, -0.009367411956191063, -0.02922632545232773, 0.022840872406959534, -0.008633631281554699, 0.006381549406796694, 0.01117844507098198, 0.009788945317268372, -0.00564776873216033, -0.035471267998218536, 0.019093908369541168, 0.027321618050336838, 0.014667805284261703, -0.02065514400601387, -0.010116804391145706, 0.039155781269073486, 0.01500347163528204, -0.023480979725718498, 0.013153407722711563, 0.01723603717982769, 0.026369264349341393, -0.014222853817045689, -0.0057297335006296635, 0.015112757682800293, -0.008454089052975178, 0.038031693547964096, 0.041091714054346085, 0.01587776280939579, 0.020015036687254906, -0.029257548972964287, 0.004886666312813759, -0.021997805684804916, 0.004746155347675085, -0.0021291347220540047, 0.005901469383388758, -0.002068636706098914, -0.034565750509500504, -0.01856308802962303, -0.008141841739416122, -0.031006133183836937, 0.013411011546850204, 0.02729039266705513, -0.016798891127109528, 0.020249221473932266, -0.013504685834050179, -0.03109980747103691, -0.009172257035970688, 0.04118538647890091, 0.025213949382305145, 0.004496357869356871, -0.05198913440108299, 0.02324679307639599, 0.014792704954743385, 0.061512671411037445, 0.00688895070925355, 0.013442235998809338, -0.0018227421678602695, 0.010842779651284218, -0.011631202884018421, -0.0027789988089352846, 0.027399679645895958, 0.009031746536493301, 0.020561469718813896, 0.03063143603503704, -0.009906037710607052, 0.04983463138341904, -0.030928071588277817, 0.0019076344324275851, -0.016236847266554832, -0.007205100730061531, 0.00018137163715437055, -0.020483408123254776, 0.006412773858755827, -0.017563898116350174, -0.02279403619468212, -0.009859200567007065, 0.007993524894118309, 0.01339539885520935, -0.0026931308675557375, 0.010358796454966068, 0.024089861661195755, 0.01622123457491398, -0.006678184028714895, -0.014589743688702583, 0.022107092663645744, -0.0022950158454477787, 0.0011211620876565576, -0.023199956864118576, 0.04671216011047363, 0.04321499168872833, -0.0229033213108778, -0.0015300106024369597, 0.007177779451012611, -0.005928791128098965, 0.0025370074436068535, 0.008500926196575165, 0.027758764103055, -0.002222808776423335, 0.02127963677048683, 0.01707991398870945, 0.035346366465091705, 0.015393780544400215, 0.025963343679904938, 0.00016478350153192878, 0.03175552561879158, -7.922049553599209e-05, -0.06938129663467407, -0.030803171917796135, -0.0007967178826220334, -0.0009030770743265748, -0.02010871097445488, 0.015503066591918468, 0.0025389590300619602, -0.0019320286810398102, 0.02674396149814129, 0.026541000232100487, -0.03105296939611435, -0.01177952066063881, -0.007232422474771738, 0.03409738093614578, 0.001816887641325593, 0.0087351119145751, 0.019936975091695786, -0.020061872899532318, 0.013715452514588833, 0.0022208571899682283, 0.026619061827659607, 0.04664970934391022, 0.01914074458181858, 0.012778710573911667, -0.017360936850309372, 0.01968717761337757, 0.006709408946335316, 0.023824451491236687, 0.03768822178244591, -0.02733723074197769, 0.008571181446313858, 0.01351249124854803, -0.02760264091193676, -0.0014607307966798544, -0.019858913496136665, 0.008547763340175152, 0.010077773593366146, -0.018969008699059486, -0.00028907248633913696, -0.001503664767369628, 0.006151267327368259, 0.02721233107149601, -0.0017934690695255995, -0.017064301297068596, 0.008984909392893314, -0.009679659269750118, -0.04180988296866417, -0.010764717124402523, -0.01329391822218895, -0.03186481446027756, 0.012646006420254707, 0.010608593933284283, -0.018001042306423187, -0.03384758159518242, -0.012083961628377438, 0.0007230471237562597, 0.012872384861111641, -0.0165022574365139, 0.0022462273482233286, 0.007895947434008121, 0.01259916927665472, -0.0068967570550739765, 0.029054589569568634, -0.01878166012465954, 0.01463658083230257, -0.028430094942450523, 0.038843534886837006, 0.010483695194125175, -0.042996421456336975, -0.010952065698802471, 0.002675567055121064, -0.03105296939611435, 0.007275356445461512, -0.02073320560157299, -0.019905749708414078, 0.009070777334272861], "id": 26}, {"title": "Eumetcast", "text": "EUMETCast is a scheme for dissemination of various (mainly satellite based) meteorological data operated by EUMETSAT, the European Organisation for the Exploitation of Meteorological Satellites. The main purpose is the dissemination of EUMETSAT's own data, but various data from other providers are broadcast as well.EUMETCast is a contribution to GEONETCast and IGDDS (WMO's Integrated Global Data Dissemination Service) and provides data for GEOSS and GMES.", "vector": [-0.05129781365394592, 0.025064459070563316, -0.029005305841565132, -0.0011000141967087984, -0.024079246446490288, -0.009493101388216019, -0.060916151851415634, 0.02346140146255493, -0.04485218971967697, -0.020505767315626144, 0.02048906870186329, -0.05527205765247345, -0.029756739735603333, -0.023745276033878326, 0.020205194130539894, -0.03523384779691696, 0.0059154462069272995, -0.013283662497997284, 0.019303474575281143, 0.060648977756500244, 0.023711880668997765, -0.04271478205919266, 0.03967565298080444, 0.004817519336938858, 0.00010325678158551455, 0.002686372259631753, 0.02139078825712204, -0.006583386566489935, -0.0032562087289988995, 0.021490978077054024, 0.013074930757284164, 0.001496603712439537, -0.019103091210126877, -0.03720427304506302, -0.048692844808101654, -0.028086887672543526, 0.03977584466338158, 0.018418453633785248, -0.018952805548906326, -0.0679963231086731, -0.010929172858595848, 0.014444208703935146, 0.012164861895143986, 0.04368329420685768, -0.0413455031812191, 0.03149338439106941, -0.04652203992009163, -0.0632205456495285, 0.044418029487133026, -0.020288685336709023, 0.00888360571116209, -0.04595429077744484, -0.021223802119493484, -0.00997735746204853, -0.05039609223604202, 0.04298195615410805, 0.07173678278923035, 0.04508597031235695, -0.030023915693163872, -0.03947526961565018, 0.03513365983963013, -0.01833496056497097, 0.007042595185339451, 0.006236892193555832, -0.04184645786881447, 0.002087313449010253, -0.01620590128004551, -0.01213146559894085, -0.012649118900299072, -0.004220547620207071, 0.0314599871635437, -0.01249048300087452, 0.0074851056560873985, -0.019036298617720604, 0.0146028446033597, 0.004817519336938858, 0.010611901059746742, -0.0024797283113002777, 0.035100262612104416, -0.01893610693514347, -0.013884808868169785, -0.009952310472726822, 0.03747145086526871, 0.04471860080957413, 0.0022856080904603004, -0.013509091921150684, -0.0640888661146164, -0.05239991471171379, 0.0031831529922783375, -0.00708434171974659, -0.009376212023198605, 0.03259548544883728, -0.007589471526443958, -0.018017688766121864, -0.03267897665500641, 0.04021000489592552, 0.012715913355350494, 0.0002249080134788528, -0.05143140256404877, 0.05914610996842384, -0.013417250476777554, -0.03483308479189873, 0.023294417187571526, -0.06555833667516708, -0.00888360571116209, 0.032127927988767624, 0.025632208213210106, 0.008102950640022755, 0.02255968190729618, 0.06295336782932281, 0.003005731152370572, 0.03950866684317589, 0.008036156184971333, -0.0062535908073186874, -0.016155805438756943, -0.020722847431898117, 0.006767069920897484, -0.019403664395213127, 0.02112361043691635, 0.017984291538596153, -0.03177725896239281, -0.011096158064901829, -0.0317605584859848, 0.05907931923866272, -0.006061558146029711, 0.037972405552864075, -0.038840726017951965, 0.015279133804142475, 0.04421764612197876, -0.03874053433537483, -0.0380392000079155, 0.002730205887928605, -0.013801315799355507, -0.017366446554660797, 0.00039737229235470295, 0.03166037052869797, -0.04331592842936516, 0.06986655294895172, 0.029172291979193687, -0.06676062941551208, 0.00268845958635211, -0.00641222670674324, 0.019754333421587944, 0.02252628654241562, -0.03807259723544121, -0.05199915170669556, 0.05754305422306061, 0.021106911823153496, -0.0317605584859848, -0.05179876834154129, 0.02561550959944725, -0.0019537252373993397, 0.0029326751828193665, -0.03274577111005783, 0.02354489453136921, -0.01442751009017229, 0.015312531031668186, -0.004537819419056177, -0.04107832536101341, 0.05463751405477524, 0.0011699391761794686, -0.02705158106982708, -0.014293922111392021, -0.012615721672773361, 0.016189202666282654, -0.044050659984350204, 0.030207598581910133, -0.014218778349459171, 0.0024985140189528465, 0.014978560619056225, -0.005577301140874624, -0.021490978077054024, 0.0009267671266570687, 0.013951602391898632, -0.025832589715719223, 0.03787221387028694, 0.015112148597836494, 0.018501944839954376, -0.040844548493623734, 0.05390277877449989, -0.058377981185913086, -0.005105568561702967, 0.02708497829735279, 0.01776721142232418, -0.008967097848653793, 0.04919379949569702, 0.04238080978393555, 0.0040326896123588085, 0.014761480502784252, -0.0587119497358799, -0.011021014302968979, 0.022008631378412247, 0.025832589715719223, -0.0025924432557076216, -0.006671053357422352, 0.0008798025664873421, -0.008825160562992096, -0.009868817403912544, 0.004788296762853861, -0.04415085166692734, -0.0050512985326349735, -0.0307085532695055, 0.0428483672440052, -0.024530107155442238, 0.007585296873003244, 0.05737606808543205, 0.04431783780455589, 0.006783768534660339, 0.006103304214775562, 8.70148724061437e-05, -0.00030396500369533896, -0.028470953926444054, 0.06372150033712387, 0.028504351153969765, 0.01920328289270401, -0.01256562676280737, 0.0012523879995569587, -0.013976650312542915, -0.015496214851737022, 0.019453760236501694, 0.03199433907866478, -0.028688034042716026, 0.018201371654868126, -0.01069539412856102, -0.0012784794671460986, -0.03157687559723854, 0.03526724502444267, -0.06455642729997635, -0.04167947173118591, -0.02120710350573063, -0.04648864269256592, 0.054570719599723816, 0.021257199347019196, -0.04244760423898697, -0.032161325216293335, -0.054570719599723816, 0.002794912550598383, -0.011739050038158894, -0.03152678161859512, 0.02346140146255493, -0.05036269500851631, -0.012699214741587639, -0.02780301310122013, -0.01556300837546587, -0.021557772532105446, 0.02528153918683529, -0.008107124827802181, 0.02504776045680046, -0.055672820657491684, -0.06696101278066635, -0.03044137731194496, 0.021323993802070618, 0.011346635408699512, 0.024730488657951355, -0.01731635257601738, 0.007138611748814583, 0.0057609849609434605, -0.008203141391277313, -0.017516734078526497, -0.032127927988767624, 0.0035588692408055067, -0.002734380541369319, -0.033563997596502304, 0.012323497794568539, 0.02297714538872242, -0.04271478205919266, 0.02516465075314045, -0.0491270087659359, -0.05757645145058632, 0.0037237671203911304, -0.03643614053726196, 0.00885020848363638, 0.011396731249988079, -0.07687992602586746, -0.01780060864984989, 0.03351390361785889, 0.03252869099378586, 0.0034085826482623816, 0.013442298397421837, -0.004562866874039173, 0.05236651748418808, -0.045553527772426605, -0.003112184116616845, 0.0033710110001266003, -0.027151772752404213, 0.014811575412750244, -0.025181347504258156, 0.010987617075443268, 0.011864288710057735, 0.018268166109919548, -0.0014903417322784662, -0.013609282672405243, 0.015137196518480778, 0.07026731967926025, 0.050195712596178055, 0.01576339080929756, -0.05824439227581024, -0.023227622732520103, 0.039976224303245544, -0.0038218707777559757, 0.010770536959171295, 0.01405179314315319, 0.005477110389620066, -0.03406495228409767, -0.048692844808101654, -0.004070261027663946, -0.015362625941634178, -0.005105568561702967, -0.015045355074107647, -0.01309162937104702, 0.029606452211737633, 0.009827070869505405, -0.010778886266052723, -0.024964267387986183, 0.03500007092952728, -0.0254652239382267, -0.01244873646646738, 0.006775419227778912, 0.004038951359689236, 0.020054906606674194, 0.03753824532032013, -0.00019268511096015573, -0.07988565415143967, 0.0036194014828652143, 0.029639849439263344, 0.0039700698107481, -0.004596264101564884, 0.0023816246539354324, 0.0021770677994936705, 0.009593292139470577, -0.03870714083313942, -0.004445977509021759, 0.08683223277330399, 0.027853108942508698, -0.003473289543762803, 0.00751850288361311, 0.006074082106351852, -0.01947045885026455, -0.010194438509643078, 0.04458501189947128, 0.003602702869102359, 0.011288190260529518, -0.029439467936754227, 0.014218778349459171, -0.02369518205523491, 0.06428924947977066, 0.0039366730488836765, 0.04017660766839981, -0.007334819063544273, -0.026968088001012802, 0.000786395336035639, 0.011630509980022907, -0.03052487038075924, 0.06632646918296814, 0.04077775403857231, -0.007030071225017309, 0.015479516237974167, -0.03316323459148407, 0.02180824987590313, 0.04575390741229057, 0.012874549254775047, 0.007293072994798422, 0.021006722003221512, -0.022392697632312775, -0.0395420640707016, 0.015112148597836494, -0.010945871472358704, -0.04121191427111626, 0.021140309050679207, 0.013559187762439251, 0.04271478205919266, -0.029940422624349594, 0.004408405628055334, 0.027435647323727608, 0.004437628202140331, 0.01469468604773283, -0.01132158748805523, 0.024947568774223328, -0.017984291538596153, 0.021457580849528313, -0.008215665817260742, -0.035901788622140884, -0.03747145086526871, 0.022693270817399025, 0.02671761065721512, 0.03513365983963013, 0.0425477959215641, 0.011830892413854599, 0.04782452434301376, -0.002454680623486638, -0.048692844808101654, 0.03079204633831978, -0.016648411750793457, -0.014644590206444263, 0.0323450081050396, -0.014227127656340599, -0.004316564183682203, 0.02648383192718029, 0.0185687392950058, 0.03184405341744423, -0.01734974794089794, 0.03546762838959694, -0.017299653962254524, 0.05146479979157448, -0.035367436707019806, 9.392909851158038e-05, -0.013250265270471573, -0.033447109162807465, -0.02459689974784851, -0.006800467148423195, 0.0028763178270310163, -0.04829208180308342, 0.010595202445983887, -0.026199957355856895, 0.0247137900441885, 0.026467133313417435, -0.022125521674752235, 0.044351235032081604, -0.00450859684497118, -0.014736432582139969, -0.02384546771645546, -0.031593576073646545, 0.021323993802070618, 0.024630296975374222, 0.055439043790102005, 0.016823746263980865, 0.00952649861574173, -0.021040119230747223, -0.04067756235599518, -0.022392697632312775, 0.06295336782932281, -0.033747684210538864, -0.0069924998097121716, 0.003110097022727132, -0.0011125380406156182, 0.009058940224349499, -0.023711880668997765, 0.013108327984809875, -0.014160334132611752, -0.004408405628055334, -0.024580202996730804, -0.014928464777767658, 0.012164861895143986, 0.008537111803889275, -0.01041151862591505, -0.007864996790885925, 0.01412693690508604, -0.02803679369390011, 0.00537691917270422, -0.03496667370200157, -0.008395174518227577, 0.008783414959907532, -0.029339276254177094, -0.008169744163751602, 0.009142432361841202, 0.0025423476472496986, 0.002886754460632801, -0.00901719368994236, -0.004145404323935509, 0.028771527111530304, -0.020990023389458656, 0.02690129540860653, 0.02274336665868759, -0.02381207048892975, 0.03312983736395836, 0.016940634697675705, -0.032161325216293335, -0.017383145168423653, 0.005773508921265602, 0.024313025176525116, -0.021975234150886536, -0.046154674142599106, 0.006704450584948063, 0.012073020450770855, -0.0011334111914038658, 0.012315148487687111, -0.008800113573670387, 0.009726880118250847, 0.012766008265316486, -0.010895775631070137, 0.012398641556501389, 0.01446925662457943, 0.020455671474337578, 0.055739615112543106, -0.01078723557293415, 0.013567537069320679, 0.003974244464188814, 0.022993844002485275, -0.06933219730854034, -0.0247137900441885, 0.0383397713303566, -0.01866893097758293, 0.02252628654241562, -0.014477605931460857, -0.001374495797790587, 0.03022429719567299, -0.007409962359815836, 0.053034458309412, -0.006220194045454264, 0.009785325266420841, 0.001418329426087439, -0.01273261196911335, -0.0037634260952472687, 0.019336871802806854, 0.020873133093118668, 0.02882162295281887, 0.04528634995222092, 0.06425585597753525, -0.015320880338549614, -0.007318120449781418, 0.02599957585334778, 0.0524333119392395, 0.030023915693163872, 0.0254652239382267, 0.02187504433095455, 0.007681312970817089, 0.03610217198729515, 0.005902922246605158, -0.012064671143889427, 0.02564890682697296, -0.0077147101983428, 0.0008265760843642056, 0.03297955170273781, -0.017550131306052208, 0.0013577973004430532, 0.005911271553486586, 0.0009841682622209191, 0.038206182420253754, -0.003320915624499321, -0.024212835356593132, -0.00309757306240499, 0.006291162688285112, 0.026166560128331184, -0.016548220068216324, -0.01596377231180668, 0.014794876798987389, -0.0030286917462944984, -0.009601641446352005, 0.016155805438756943, -0.015045355074107647, -0.059212904423475266, 0.01039482094347477, -0.009735229425132275, 0.004185063298791647, 0.0191698856651783, 0.014218778349459171, -0.020021509379148483, 0.007217929698526859, -0.018201371654868126, -0.015721643343567848, 0.017834005877375603, -0.015212339349091053, 0.007126087788492441, 0.013550838455557823, -0.02264317497611046, -0.025331635028123856, -0.004020165652036667, -0.03281256556510925, -0.046989597380161285, 0.002427545376121998, 0.05006212368607521, 0.015738341957330704, 0.01309162937104702, 0.0023774500004947186, -0.024379819631576538, 0.03603537753224373, 0.05797721445560455, -0.020121701061725616, -0.04458501189947128, -0.028320668265223503, 0.022175617516040802, -0.007685487624257803, -0.0024296327028423548, 0.005435363855212927, 0.004775772802531719, 0.005631571635603905, 0.005222457926720381, 0.023979056626558304, -0.006863086484372616, 0.008950399234890938, 0.05056307837367058, -0.03660312667489052, 0.010311327874660492, 0.01572999358177185, 0.018886011093854904, 0.003055826760828495, 0.025064459070563316, -0.022776763886213303, -0.03553442284464836, 0.020856434479355812, -0.014711384661495686, -0.02501436322927475, -0.04124531149864197, -0.0416460745036602, 0.02972334250807762, -0.01908639259636402, -0.011872638016939163, 0.024396518245339394, 0.013116677291691303, -0.004913535434752703, 0.025749098509550095, 0.06893143802881241, -0.04137890040874481, -0.029873628169298172, 0.004625486209988594, 0.04688940569758415, -0.009910563938319683, -0.00480917003005743, -0.0061909714713692665, -0.018268166109919548, -0.017900798469781876, -0.02513125352561474, 0.027335455641150475, 0.06225203350186348, -0.0016124495305120945, -0.012306799180805683, 0.01947045885026455, 0.007226279005408287, 0.006833863910287619, -0.004496072884649038, 0.0326455794274807, -0.003007818479090929, -0.016698507592082024, -0.004917710088193417, 0.003226986387744546, -0.015830185264348984, 0.008215665817260742, -0.024830680340528488, -0.00622436823323369, 0.015629801899194717, -0.027135074138641357, 0.02950626239180565, -0.006270289421081543, 0.008031981997191906, 0.06519097089767456, 0.010611901059746742, -0.0007002936326898634, -0.05814420059323311, 0.031192811205983162, -0.006967451889067888, -0.03670331835746765, 0.014344017021358013, -0.042013444006443024, 0.02705158106982708, -0.0013317059492692351, 0.04187985509634018, 0.005694190971553326, 0.021524375304579735, -0.021908441558480263, 0.03830637410283089, -0.038272976875305176, -0.010937522165477276, 0.0025903559289872646, 0.013049882836639881, -0.0044668507762253284, -0.037404656410217285, 0.007247151806950569, 0.010110946372151375, 0.0016364536713808775, -0.020722847431898117, -0.061283521354198456, -0.02468039281666279, 0.03920809552073479, -0.014410811476409435, 0.009000495076179504, -0.0521327368915081, -0.04445142671465874, -0.04949437454342842, -0.024313025176525116, -0.013575886376202106, -0.028120284900069237, -0.02018849551677704, 0.01611405983567238, 0.015546309761703014, 0.024813981726765633, -0.0010196525836363435, -0.03693709895014763, 0.01938696578145027, 0.014452558010816574, -0.04976155236363411, 0.0010760100558400154, 0.0031267954036593437, 0.0009314636117778718, -0.026283450424671173, -0.006608434021472931, -0.014327319338917732, -0.017600227147340775, -0.015487865544855595, 0.007480931002646685, -0.057142291218042374, -0.022876953706145287, 0.01908639259636402, 0.009276020340621471, 0.009760277345776558, 0.014911767095327377, 0.009952310472726822, -0.038206182420253754, -0.005477110389620066, 0.018017688766121864, -0.00472567742690444, -0.026867898181080818, 0.005556428339332342, -0.0022292507346719503, -0.0063704801723361015, -0.03553442284464836, 0.03583499416708946, -0.013550838455557823, -0.03252869099378586, -0.058077406138181686, -0.02825387381017208, -0.007460057735443115, -0.03169376775622368, -0.03543423116207123, 0.04572051018476486, 0.027251962572336197, -0.031626973301172256, 0.0027573409024626017, 0.0032499469816684723, -0.012932993471622467, -0.00781907606869936, 0.000293267541565001, 0.03904110938310623, 0.016005519777536392, -0.0028804924804717302, 0.014586145989596844, 0.009267671033740044, 0.029756739735603333, -0.02573239989578724, 0.03636934980750084, 0.0012503006728366017, 0.006708625238388777, -0.015003608539700508, -0.0014026745921000838, 0.01503700576722622, 0.00619514612480998, 0.01105441153049469, -0.026550626382231712, 0.01920328289270401, 0.0037613387685269117, 0.008061204105615616, 0.03663652390241623, -0.013016486540436745, -0.00761034432798624, -0.05073006451129913, 0.00945135485380888, -0.006879784632474184, -0.006437274627387524, 0.009593292139470577, -0.06405547261238098, -0.008532936684787273, 0.0015560920583084226, -0.011939432471990585, -3.900666706613265e-05, -0.039742447435855865, -0.03456591069698334, 0.014836623333394527, -0.016431331634521484, -0.015003608539700508, 0.0033021296840161085, 0.0431489422917366, 0.024813981726765633, 0.04041038826107979, -0.03753824532032013, 0.046989597380161285, -0.013667727820575237, 0.03037458471953869, -0.01369277574121952, 0.04431783780455589, 0.009735229425132275, 0.01821807026863098, -0.02768612466752529, 0.0063704801723361015, -0.0005891441833227873, 0.0007436053710989654, 0.0011751573765650392, 0.0308588407933712, 0.012081369757652283, -0.02504776045680046, -0.021140309050679207, -0.03089223802089691, 0.014502652920782566, -0.013342106714844704, -0.02999051846563816, -0.007831599563360214, -0.033931367099285126, -0.009476402774453163, 0.025699002668261528, 0.003577655181288719, -0.07093525677919388, 0.004020165652036667, -0.02855444699525833, -0.0036360998637974262, 0.02731875702738762, 0.03055826760828495, 0.014569447375833988, 0.08375971019268036, 0.015980470925569534, 0.017550131306052208, -0.0431489422917366, 0.0033981462474912405, 0.037972405552864075, 0.016255997121334076, 0.008303332142531872, -0.004692280665040016, 0.008470317348837852, -0.026834500953555107, -0.029522961005568504, -0.03643614053726196, 0.01758352853357792, -0.004587914794683456, 0.00537691917270422, 0.029940422624349594, 0.005756810307502747, 0.01901960000395775, -0.027435647323727608, 0.01162216067314148, -0.011597112752497196, -0.018835915252566338, -0.0007070773863233626, 0.0032395103480666876, -0.004320738837122917, 0.0011156690306961536, -0.010803934186697006, 0.025147952139377594, -0.028120284900069237, 0.018769122660160065, 0.028604542836546898, 0.0015039092395454645, 0.03613556921482086, -0.04064416512846947, -0.00834507867693901, -0.030057312920689583, -0.03349720314145088, -0.02558211237192154, -0.013751220889389515, -0.007551899645477533, 0.01886931248009205, -0.021641265600919724, -0.005381093826144934, 0.0037258544471114874, 0.0004876485909335315, -0.004997028037905693, -0.0011845503468066454, -0.008036156184971333, -0.017683718353509903, 0.00027030709316022694, -0.03192754462361336, -0.03540083393454552, -0.026951389387249947, 0.01492011547088623, -0.0019641618710011244, 0.009384561330080032, 0.03361409530043602, -0.010194438509643078, -0.041145119816064835, 0.03870714083313942, -0.010277930647134781, -0.011229746043682098, 0.023344513028860092, -0.03194424510002136, 0.00041146166040562093, -0.017249558120965958, 0.009309417568147182, -0.011329936794936657, 0.009651737287640572, 0.045186158269643784, 0.012849501334130764, -0.01866893097758293, -0.027068279683589935, 0.0019224155694246292, -0.051097430288791656, -0.013308710418641567, -0.011371683329343796, 0.01995471492409706, -0.018318261951208115, -0.022810161113739014, -0.028303969651460648, 0.01456109806895256, 0.022693270817399025, 0.01088742632418871, 0.05036269500851631, 0.021824948489665985, 0.005410316400229931, 0.03543423116207123, 0.03950866684317589, -0.010728790424764156, 0.003965895157307386, 0.014193730428814888, 0.009952310472726822, -0.014110238291323185, -0.010044151917099953, -0.00312262075021863, 0.005719238426536322, -0.017533432692289352, -0.021624566987156868, 0.019821127876639366, -0.015187292359769344, 0.024930870160460472, 0.031560178846120834, 0.02255968190729618, -0.015613104216754436, -0.03237840533256531, -0.02309403568506241, 0.031560178846120834, 0.014744781889021397, -0.045553527772426605, -0.003548432607203722, -0.018117880448698997, 0.021741455420851707, 0.00323116104118526, 0.013843062333762646, -0.022776763886213303, -0.0011845503468066454, 0.017266256734728813, -0.019103091210126877, -0.042614590376615524, 0.015713294968008995, -0.009676785208284855, 0.002907627495005727, -0.037638433277606964, 0.01866893097758293, 0.006003112997859716, 0.02120710350573063, -0.03990942984819412, -0.011663907207548618, -0.033296823501586914, -0.02962315082550049, 0.010244534350931644, 0.026417037472128868, -0.021891742944717407, 0.014151984825730324, -0.020539162680506706, -0.0017888275906443596, -0.013233566656708717, -0.0013233566423878074, -0.034766290336847305, -0.00667940266430378, -0.012323497794568539, -0.006107478868216276, 0.030324488878250122, -0.0010306109907105565, 0.04982834309339523, 0.006662704050540924, 0.018117880448698997, -0.01773381419479847, -0.0017335137818008661, -0.040844548493623734, -0.05493808910250664, 0.01486167125403881, -0.04632165655493736, -0.023795371875166893, -0.029706643894314766, -0.021624566987156868, -0.02478058449923992, -0.017040826380252838, 0.011004315689206123, -0.002882579807192087, -0.034465719014406204, 0.027101676911115646, 0.007376565597951412, 0.015145545825362206, 0.026851199567317963, -0.015178943052887917, 0.01890270970761776, 0.024363121017813683, -0.03007401153445244, 0.008140522055327892, -0.036536332219839096, -0.024429915472865105, 0.009743578732013702, -0.019403664395213127, -0.00619514612480998, -0.02867133542895317, 0.012983089312911034, -0.021908441558480263, 0.017416542395949364, -0.015320880338549614, 0.003861529752612114, 0.03154347836971283, -0.012548928149044514, 0.0016980294603854418, -0.013934903778135777, 0.05420335382223129, -0.006988325156271458, -0.0007723059388808906, -0.005715063773095608, 0.009401259012520313, -0.021190404891967773, -0.00849119108170271, 0.03640274330973625, 0.008724969811737537, 0.0018326611025258899, -0.0058820489794015884, -0.027986697852611542, -0.0036319252103567123, 0.050229109823703766, 0.008031981997191906, -0.002091488102450967, -0.013049882836639881, -0.04749055206775665, -0.026417037472128868, -0.014360715635120869, 0.004959456622600555, 0.03513365983963013, -0.02746904455125332, 0.006178447511047125, 0.0029389371629804373, 0.029756739735603333, -0.02109021507203579, 0.017533432692289352, 0.01578843779861927, -0.04385028034448624, 0.020572559908032417, -0.0017950894543901086, 0.007890044711530209, 0.023377910256385803, -0.048158492892980576, 0.011480223387479782, 0.07614519447088242, 0.024045849218964577, -0.026099765673279762, 0.003876140806823969, -0.02025528810918331, -0.009326116181910038, 0.00219794106669724, 0.04678921774029732, 0.0026154036168009043, -0.0031393193639814854, 0.026767706498503685, -0.01973763480782509, 6.278247019508854e-05, -0.029940422624349594, -0.02327771857380867, 0.03904110938310623, 0.004913535434752703, 0.04304875060915947, 0.008875256404280663, -0.06108313798904419, 0.012615721672773361, 0.020990023389458656, -0.024830680340528488, 0.00044851144775748253, -0.011572064831852913, -0.013467345386743546, -0.02942276932299137, -0.012582325376570225, -0.008608080446720123, 0.015521261841058731, 0.017566829919815063, 0.02025528810918331, -0.035367436707019806, -0.014736432582139969, 0.047290172427892685, 0.02614986151456833, -0.03967565298080444, 0.01734974794089794, -0.02474718727171421, -0.02052246406674385, 0.019437061622738838, 0.003995117731392384, 0.0005787076079286635, -0.03132639825344086, 0.05290086939930916, -0.011830892413854599, 0.00865817628800869, 0.011521969921886921, 0.049026817083358765, -0.005343522410839796, 0.03990942984819412, -0.003375185653567314, 0.03381447494029999, -0.007080167066305876, -0.04304875060915947, 0.007627042941749096, 0.013342106714844704, 0.009518149308860302, 0.002073745708912611, -0.01201457530260086, 0.04308214783668518, -0.026667514815926552, 0.021474279463291168, -0.015579706989228725, 0.01947045885026455, -0.058912333101034164, -0.008591381832957268, -0.015863580629229546, 0.0068046413362026215, 0.012139814905822277, 0.000818748667370528, 0.0009158087195828557, -0.01848524622619152, 0.04241420701146126, 0.02776961773633957, 0.006729498505592346, -0.0020319996401667595, -0.009125733748078346, -0.01195613108575344, 0.032729074358940125, -0.04007641598582268, -0.015955423936247826, -0.007230453658849001, 0.009234274737536907, 0.007668789476156235, 0.008249062113463879, 0.05433694273233414, 0.017249558120965958, 0.016130758449435234, 0.01770041696727276, 0.014911767095327377, 0.02478058449923992, 0.00838682521134615, 0.009301068261265755, 0.0010410475078970194, -0.00010221312550129369, 0.024346422404050827, -0.05096384137868881, -0.014318970032036304, -0.01082898210734129, 0.02606636844575405, -0.03466609865427017, -0.047891318798065186, -0.004817519336938858, -0.016406282782554626, 0.016882190480828285, 0.01041151862591505, -0.02765272743999958, -0.0021645440720021725, 0.02274336665868759, 0.006733672693371773, 0.02984023094177246, 0.004604613408446312, -0.003439892316237092, 0.010403170250356197, 0.00027135072741657495, 0.005606523714959621, 0.016464726999402046, -0.015070402063429356, -0.01780060864984989, -0.03516705706715584, -0.038640346378088, -0.014569447375833988, -0.021190404891967773, 0.022426094859838486, 0.020923228934407234, -0.030324488878250122, 0.013492393307387829, -0.028170380741357803, -0.012682516127824783, -0.02018849551677704, 0.03780541941523552, -0.008065379224717617, -0.005372744519263506, 0.03321332857012749, -0.012974740006029606, -0.00015654849994461983, 0.022325903177261353, 0.0026028796564787626, -0.008432745933532715, 0.015095449984073639, 0.010728790424764156, 0.0302576944231987, 0.003659060224890709, -0.008261586539447308, 0.010578503832221031, 0.009893865324556828, -0.005189061164855957, 0.022209014743566513, -0.004888487979769707, -0.03753824532032013, 0.011338286101818085, 0.025899384170770645, -0.0022876954171806574, 0.02214222028851509, 0.020171796903014183, -0.019720936194062233, -0.0005693146958947182, -0.036202363669872284, 0.014410811476409435, -0.011730700731277466, 0.00931776687502861, 0.017065873369574547, 0.0126574682071805, -0.016097361221909523, -0.015596405602991581, 0.03304634615778923, -0.002584093948826194, 0.022476190701127052, -0.013634330593049526, -0.0023273543920367956, -0.009793674573302269, 0.000807790260296315, 0.020322082564234734, 0.008094601333141327, 0.04308214783668518, 0.029673246666789055, 0.016665110364556313, -0.010378122329711914, 0.02681780233979225, -0.006654355209320784, 0.01656491868197918, 0.013843062333762646, -0.00535604590550065, -0.024763885885477066, -0.013984999619424343, -0.02897190861403942, -0.0050512985326349735, -0.009200877510011196, -0.003700806526467204, -0.014060142450034618, 0.0009930393425747752, 0.009125733748078346, 0.0025089506525546312, -0.043482910841703415, 0.019370267167687416, 0.02327771857380867, -0.016013868153095245, 0.003577655181288719, 0.016130758449435234, -0.018518643453717232, 0.015838533639907837, -0.028604542836546898, 0.017249558120965958, -0.0003172716242261231, 0.034081652760505676, 0.01815127767622471, -0.0062535908073186874, -0.0029869454447180033, 0.013651029206812382, -0.004445977509021759, 0.00019020642503164709, 0.004997028037905693, 0.012298449873924255, 0.015078751370310783, 0.009651737287640572, -0.020772943273186684, 0.00011741137859644368, -0.031059222295880318, -0.003554694587364793, 0.016080662608146667, -0.04795811325311661, -0.015646500512957573, 0.007009198423475027, -0.023144129663705826, 0.0059404936619102955, 0.006487370003014803, -0.0008004846749827266, -0.01476982980966568, 0.03247859701514244, -0.014118587598204613, -0.025448525324463844, -0.0030182551126927137, 0.023945659399032593, -0.0197710320353508, -0.0023774500004947186, -0.02316082827746868, -0.014536050148308277, 0.008061204105615616, -0.0019756420515477657, -0.003646536497399211, 0.008399348706007004, 0.019069693982601166, 0.02399575524032116, 0.016798697412014008, -0.03850675746798515, -0.0160222165286541, -0.034799687564373016, -0.012056321837008, 0.0002370405272813514, 0.03877393156290054, -0.005932144355028868, 0.05246670916676521, 0.04071095958352089, 0.022876953706145287, -0.019453760236501694, -0.027552535757422447, -0.0005129572818987072, 0.02584928832948208, -0.005456237122416496, -0.002577831968665123, -0.010344725102186203, 0.03636934980750084, 0.017449939623475075, 0.03636934980750084, -0.0018587525701150298, -0.02274336665868759, -0.01626434549689293, -0.030491473153233528, -0.026834500953555107, -0.01082898210734129, -0.024997664615511894, 0.007902568206191063, 0.005147314630448818, 0.030207598581910133, -0.0062869880348443985, 0.02852104976773262, 0.002314830431714654, 0.002245949115604162, -0.0005922751734033227, -0.006082430947571993, 0.020806340500712395, 0.018802518025040627, -0.006065732799470425, -0.03411504998803139, -0.009518149308860302, 0.005581475794315338, 0.03723767027258873, -0.022275807335972786, 0.009668435901403427, 0.017533432692289352, -0.01256562676280737, 0.005276727955788374, -0.010403170250356197, 0.014536050148308277, 0.04425104334950447, -0.024847378954291344, 0.00023338772007264197, 0.02558211237192154, -0.014060142450034618, -0.007752281613647938, 0.04161268100142479, 0.008132172748446465, -0.003554694587364793, -0.031176112592220306, 0.0029097148217260838, 0.015646500512957573, -0.027368852868676186, 0.018719026818871498, -0.007794028148055077, -0.007802377454936504, -0.03723767027258873, 0.011304888874292374, -0.05206594616174698, 0.012674166820943356, 0.010261232033371925, -0.005360220558941364, -0.04658883437514305, 0.020472370088100433, -0.060949549078941345, -0.00211966666392982, 0.006140876095741987, -0.026350243017077446, -0.03312983736395836, -0.0003524950298015028, 0.02187504433095455, 0.022175617516040802, 0.021474279463291168, 0.01818467490375042, 0.02139078825712204, 0.027752919122576714, 0.02863794006407261, 0.006270289421081543, 0.0026759356260299683, -0.004671407397836447, -0.022325903177261353, 0.0075226775370538235, 0.007242977153509855, -0.03787221387028694, 0.018201371654868126, 0.023628387600183487, 0.01122139673680067, -0.013116677291691303, 0.0012649118434637785, -0.03760503605008125, -0.0658923089504242, 0.0017314264550805092, -0.009935611858963966, 0.003650711150839925, 0.005013726651668549, -0.03309644013643265, 0.02052246406674385, -0.0012200346682220697, -0.0029785961378365755, 0.03403155878186226, -0.008165569975972176, 0.01731635257601738, 0.0148282740265131, 0.019754333421587944, 0.014686336740851402, 0.04124531149864197, 0.031075920909643173, 0.013809665106236935, -0.00546041177585721, 0.0007138611981645226, 0.02882162295281887, 0.03007401153445244, 0.0076019954867661, -0.01213146559894085, -0.02776961773633957, -0.024279629811644554, 0.03640274330973625, 0.018652232363820076, -0.015688247978687286, 0.029890326783061028, 0.034081652760505676, -0.002559046261012554, -0.006712799891829491, 0.01644802838563919, 0.020021509379148483, -0.011830892413854599, 0.005305950529873371, -0.005335173103958368, -0.049627963453531265, 0.0004226809542160481, 0.04121191427111626, 0.03500007092952728, 0.022092124447226524, -0.004268555901944637, -0.007105214521288872, -0.03331352025270462, -0.020438972860574722, 0.04501917585730553, 0.06305356323719025, 0.008474492467939854, 0.012098068371415138, 0.015487865544855595, -0.0008484928985126317, 0.011513620615005493, -0.012123116292059422, 0.015120497904717922, -0.0009079813025891781, -0.0031789783388376236, -0.0008672787225805223, -0.030641760677099228, 0.005986414849758148, 0.021190404891967773, 0.00997735746204853, 0.03550102561712265, -0.009643387980759144, -0.0027051582001149654, 0.018101181834936142, 0.026116464287042618, -0.0055689518339931965, 0.052500106394290924, -0.0077355834655463696, 0.020455671474337578, 0.006458147428929806, -0.02003820799291134, 0.003752989461645484, 0.003101747715845704, -0.053401824086904526, 0.018084483221173286, -0.01244873646646738, -0.0107120918110013, 0.011004315689206123, 0.028871718794107437, -0.025699002668261528, 0.047891318798065186, -0.0033480506390333176, 0.019036298617720604, 0.023411307483911514, -0.05056307837367058, -0.022092124447226524, -0.012123116292059422, -0.001472599571570754, 0.0012690864969044924, -0.0007279505371116102, 0.022726668044924736, -0.015888629481196404, -0.008649826981127262, -0.019370267167687416, 0.002730205887928605, -0.022760065272450447, -0.01292464416474104, -0.0092843696475029, -0.03067515790462494, 0.008825160562992096, -0.012348545715212822, -0.003254121635109186, 0.012649118900299072, -0.0008944137953221798, -0.01279105618596077, -0.013158423826098442, 0.04161268100142479, 0.020388877019286156, 0.009943961165845394, -0.005318474490195513, -0.01576339080929756, -0.001572790672071278, 0.0017481249524280429, 0.0032374230213463306, 0.004030602052807808, -0.019403664395213127, -0.020589258521795273, -0.001281610457226634, 0.000629846821539104, 0.014778178185224533, -0.008733319118618965, 0.014661288820207119, -0.031743861734867096, 0.016940634697675705, 0.005986414849758148, -0.01286619994789362, -0.011964480392634869, 0.009008844383060932, -0.010837331414222717, -0.01701577939093113, -0.019670840352773666, -0.004078610334545374, -0.034048255532979965, -0.021340692415833473, 0.01848524622619152, -0.040310196578502655, 0.016514822840690613, -0.016781998798251152, -0.023795371875166893, -0.0014298096066340804, -0.0028283095452934504, -0.0401432104408741, 0.006508243270218372, -0.0019359831931069493, -0.027552535757422447, 0.004596264101564884, 0.027485743165016174, 0.018819216638803482, -0.024379819631576538, -0.013475694693624973, -0.04602108523249626, -0.00728054903447628, 0.03967565298080444, -0.0040911342948675156, -0.045553527772426605, 0.05323484167456627, -0.009685133583843708, -0.03262888267636299, -0.060949549078941345, -0.016155805438756943, -0.025532016530632973, -0.019286775961518288, -0.03067515790462494, 0.02671761065721512, 0.02165796421468258, -0.008407698012888432, -0.02474718727171421, 0.03456591069698334, 0.004867614712566137, 0.019971413537859917], "id": 27}, {"title": "Lake Miccosukee", "text": "Lake Miccosukee is a large swampy prairie lake in northern Jefferson County, Florida, located east of the settlement of Miccosukee. A small portion of the lake, its northwest corner, is located in Leon County.", "vector": [0.02749829925596714, -0.033846087753772736, -0.01946479268372059, -0.011892224662005901, -0.02899964340031147, 0.05244167894124985, 0.012827271595597267, -0.0391666404902935, -0.02174314670264721, -0.0047542559914290905, -0.02645789459347725, -0.010166996158659458, 0.015592905692756176, 0.04846443608403206, -0.0005560075514949858, -0.039693426340818405, -0.017476169392466545, -0.0014527806779369712, -0.019306756556034088, 0.05794660747051239, 0.006621058564633131, -0.009152930229902267, 0.012642895802855492, 0.01656746119260788, 0.035031359642744064, 0.02267819456756115, -0.0034735039807856083, 0.020808100700378418, 0.004211006220430136, 0.008171788416802883, 0.027682675048708916, 0.03086973913013935, 0.014341785572469234, -0.004869490396231413, -0.005639916751533747, -0.02475900575518608, -0.015922147780656815, -0.002941778162494302, 0.042801473289728165, -0.012096354737877846, -0.015592905692756176, -0.03574252128601074, 0.033793408423662186, 0.04309120401740074, 0.015079287812113762, 0.012260975316166878, -0.014829063788056374, -0.04519835487008095, -0.0051756855100393295, -0.039693426340818405, -0.017989788204431534, -0.02154560200870037, -0.02345520630478859, -0.028341159224510193, -0.0010955530451610684, -0.011971242725849152, 0.041036732494831085, 0.08686723560094833, -0.08212614804506302, -0.007276250049471855, -0.0374809205532074, -0.009495342150330544, 0.008533954620361328, 0.019912561401724815, -0.004352580290287733, 0.013722809962928295, 0.004105648957192898, 0.017002061009407043, 0.04079968109726906, 0.03184429556131363, 7.652306521777064e-06, 0.04770059511065483, -0.0041319881565868855, 0.002006730530411005, 0.0031277998350560665, 0.0025960737839341164, 0.006275354418903589, -0.03945637121796608, -0.0024281605146825314, 0.021190021187067032, 0.015974825248122215, -0.020584214478731155, 0.012840441428124905, 0.013176267966628075, 0.017858091741800308, 0.043986741453409195, 0.0027162472251802683, -0.039693426340818405, -0.006262184586375952, 0.009337306022644043, 0.01216878741979599, 0.03561082482337952, -0.0036447099409997463, 0.01232682354748249, 0.011951487511396408, -0.041089411824941635, 0.07143236696720123, 0.014117901213467121, -0.01610652357339859, 0.014368124306201935, -0.006999686826020479, -0.016119692474603653, -0.0039377352222800255, -0.014644687995314598, 0.005188855342566967, -0.026392046362161636, -0.008915876038372517, 0.010687198489904404, 0.006815311033278704, -0.030948756262660027, 0.04946533218026161, -0.001521921600215137, 0.0011046072468161583, -0.04022021219134331, -0.029947860166430473, 0.005774906370788813, 0.017779072746634483, 0.02620767056941986, -0.016593800857663155, -0.01455250009894371, -0.01693621277809143, 0.0011531703639775515, 0.04469790682196617, 0.006647397764027119, 0.019741356372833252, 0.04090503603219986, -0.03329296037554741, -0.03242376074194908, 0.025193603709340096, 0.07201182842254639, 0.05757785588502884, -0.003098167944699526, -0.0004922169027850032, -0.0036973885726183653, -0.046673357486724854, 0.06358323246240616, 0.026760796085000038, 0.015553396195173264, 0.04029923304915428, 0.001327668665908277, 0.010213089175522327, 0.011293003335595131, 0.027103208005428314, -0.031975992023944855, 0.03142286464571953, -0.030105896294116974, -0.02770901471376419, -0.00913976039737463, 0.03376706689596176, -0.05462784692645073, 0.01162224542349577, -0.03745457902550697, 0.07037878781557083, 0.0374809205532074, 0.05863143131136894, 0.043828707188367844, -0.018819477409124374, 0.012280729599297047, 0.0004930400173179805, -0.008599803782999516, 0.026326198130846024, -0.009034402668476105, 0.047252826392650604, -0.038244761526584625, -0.013327719643712044, -0.0036677569150924683, -0.010397464968264103, -0.05133542791008949, -0.018160993233323097, 0.03276617452502251, 0.012254390865564346, 0.02770901471376419, -0.02842017635703087, -0.03345099464058876, 0.03700681030750275, -0.051967572420835495, -0.00991677213460207, -0.0523889996111393, -0.034873321652412415, -0.006940423045307398, -0.014117901213467121, -0.029631787911057472, 0.044355493038892746, -0.0053468914702534676, -0.005659671500325203, -0.029236696660518646, -0.002042947104200721, 0.022862570360302925, 0.045277372002601624, -0.05215194821357727, 0.018503405153751373, -0.0390612818300724, 0.028709910809993744, -0.010456728748977184, 0.02921035885810852, 0.012847025878727436, -0.05789392814040184, 0.04240638017654419, 0.01708108000457287, 0.015803620219230652, 0.023902975022792816, 0.008428597822785378, -0.04804300516843796, 0.023428866639733315, -0.004941923543810844, 0.016751836985349655, -0.003865302074700594, -0.046620678156614304, -0.009093666449189186, 0.002678384305909276, -0.02050519734621048, -0.033530015498399734, -0.042748793959617615, -0.025193603709340096, 0.008533954620361328, 0.01584312878549099, -0.014908081851899624, -0.017370812594890594, -0.008527370169758797, -0.005231656599789858, 0.08049310743808746, -0.0036677569150924683, -0.0009918417781591415, 0.012445351108908653, -0.04172155633568764, 0.016396256163716316, 0.02428489737212658, 0.06495288014411926, 0.02030765265226364, -0.02439025416970253, 0.05531267076730728, -0.05436445400118828, 0.028393838554620743, 0.027629995718598366, -0.007052365690469742, -0.021111002191901207, 0.025865258648991585, 0.00731575908139348, 0.02475900575518608, -0.014078391715884209, -0.02112417295575142, 0.046673357486724854, -0.03511037677526474, 0.023336678743362427, -0.017897600308060646, -0.022401630878448486, 0.00731575908139348, 0.009515096433460712, -0.0382184199988842, -0.005172393284738064, -0.034451890736818314, 0.01159590668976307, 0.039640747010707855, -0.03993048146367073, 0.012313653714954853, 0.03345099464058876, 0.041616201400756836, -0.04143182560801506, -0.013472585938870907, -0.01880630850791931, -0.008211297914385796, -0.02506190724670887, 0.033740729093551636, -0.04975506290793419, -0.010265768505632877, 0.03308224678039551, 0.05075595900416374, -0.0014091561315581203, -0.04364433139562607, -0.04533005133271217, -0.011325927451252937, 0.00738160777837038, -0.007724019233137369, 0.015922147780656815, 0.05425909534096718, 0.02453511953353882, -0.023955654352903366, -0.02184850536286831, -0.010726707056164742, 0.01791076920926571, 0.07190646976232529, -0.017568357288837433, 0.008138864301145077, -0.02693200297653675, 0.04008851572871208, -0.0029845794197171926, 0.03708582744002342, 0.024377083405852318, -0.016738668084144592, -0.03092241659760475, 0.01431544590741396, -0.06974664330482483, 0.028446516022086143, 0.023850297555327415, -0.0301849152892828, -0.005304090213030577, 0.01744983159005642, 0.020083768293261528, -0.04635728523135185, -0.006709953770041466, 0.04438183456659317, 0.051388103514909744, 0.033108584582805634, -0.03226572647690773, 0.05441713333129883, -0.019715016707777977, 0.006420220714062452, 0.011325927451252937, -0.023784449324011803, -0.011767112649977207, 0.0021005645394325256, 0.010048468597233295, -0.022493818774819374, -0.03563716262578964, 0.03558448329567909, -0.04432915523648262, 0.028130443766713142, 0.0184770654886961, -0.02500922977924347, -0.011154722422361374, 0.04143182560801506, -0.0008276323205791414, -0.00306195137090981, -0.001674195984378457, 0.027629995718598366, -0.03147554397583008, -0.0033154678530991077, -0.0037599445786327124, -0.02697151154279709, 0.039430033415555954, -0.03226572647690773, 0.02868357114493847, -0.050782300531864166, -0.03877154737710953, 0.053626950830221176, 0.030421968549489975, 0.044618889689445496, 0.020413009449839592, -0.015434869565069675, 0.04488228261470795, 0.013340889476239681, -0.04964970797300339, 0.029816163703799248, 0.01806880533695221, 0.007407946977764368, 0.017107419669628143, 0.005234949290752411, 0.013485755771398544, 0.02329717017710209, 0.009067326784133911, 0.0005193793913349509, -0.018766799941658974, 0.03887690603733063, -0.0019738064147531986, 0.02899964340031147, 0.021427074447274208, 0.012162202969193459, 0.007585737854242325, 0.03755993768572807, -0.019912561401724815, -0.015026608482003212, -0.014433973468840122, 0.01662014052271843, 0.007276250049471855, 0.05763053521513939, 0.04975506290793419, -0.04345995560288429, 0.029289375990629196, 0.02776169218122959, 0.005402862560003996, 0.01064110454171896, -0.010357956402003765, -0.03500501811504364, 0.0005123830051161349, 0.02589159831404686, -0.028499195352196693, 0.026023294776678085, -0.012491445057094097, -0.03597957640886307, 0.01584312878549099, 0.007737189065665007, 0.03400412201881409, 0.055944815278053284, 0.02050519734621048, -0.004230760969221592, -0.052072927355766296, 0.01159590668976307, -0.04008851572871208, -0.03703315183520317, 0.008250806480646133, -0.016909873113036156, 0.0008156972471624613, -0.03558448329567909, -0.021045153960585594, -0.03210768848657608, 0.01791076920926571, -0.05252069979906082, 0.005452249199151993, 0.010140656493604183, -0.01646210439503193, -0.0024281605146825314, 0.05257337540388107, -0.04411844164133072, 0.020650064572691917, -0.045488085597753525, 0.021940693259239197, -0.007816207595169544, 0.03558448329567909, -0.05436445400118828, -0.012333408929407597, -0.005294212605804205, -0.006762632634490728, 0.009890432469546795, 0.007677925284951925, 0.011246909387409687, -0.028393838554620743, 0.015316342003643513, -0.009403154253959656, -0.009488756768405437, -0.003509720554575324, -0.02444293349981308, -0.010377710685133934, -0.00039982335874810815, 0.040984056890010834, -0.04095771536231041, -0.0016445642104372382, -0.0012593510327860713, 0.04822738096117973, -0.011003270745277405, -0.0770689845085144, -0.007131383754312992, -0.0009877262637019157, -0.03410948067903519, -0.03152822330594063, -0.017568357288837433, 0.005791368428617716, 2.5824925614870153e-05, -0.006614473648369312, 0.0010766215855255723, 0.022902078926563263, 0.046067554503679276, 0.03437287360429764, 0.006614473648369312, -0.002614182187244296, -0.009890432469546795, 0.012366333045065403, -0.012991893105208874, -0.003960782196372747, 0.0760154128074646, -0.01178028155118227, -0.0001105018745874986, 0.04604121297597885, -0.019688677042722702, 0.020162785425782204, -0.008316654711961746, -0.029737144708633423, 0.01776590384542942, -0.004800349473953247, -0.03700681030750275, 0.06384662538766861, 0.0186351016163826, -0.023323509842157364, 0.021967032924294472, -0.04685773327946663, -0.0027047237381339073, -0.06869307160377502, -0.003802746068686247, 0.029710806906223297, -0.03126483038067818, -0.020031088963150978, -0.05504927784204483, 0.026536911725997925, -0.027524638921022415, -0.024614138528704643, -0.024877531453967094, -0.038613513112068176, 0.046673357486724854, -0.029789824038743973, 0.017423491925001144, 0.03553180769085884, 0.030474647879600525, 0.05425909534096718, -0.04127378761768341, 0.04633094742894173, -0.03263447433710098, 0.007361853029578924, -0.0001594766363268718, 0.025601865723729134, 0.02174314670264721, -0.03755993768572807, 0.059158217161893845, 0.03576885908842087, 0.02776169218122959, -0.00820471253246069, -0.006515700835734606, 0.035136714577674866, -0.012438765726983547, 0.01870094984769821, 0.0052020251750946045, 0.025667713955044746, 0.029025983065366745, 0.06611181050539017, 0.02899964340031147, 0.05254703760147095, 0.032186705619096756, -0.016027504578232765, -0.0033171139657497406, 0.0233630184084177, 0.007710849866271019, -0.04633094742894173, 0.0038488400168716908, -0.04583049938082695, -0.014921251684427261, 0.031817954033613205, -0.022915249690413475, 0.025193603709340096, 0.024732666090130806, -0.009416324086487293, 0.010555501095950603, 0.00851420033723116, -0.04612023010849953, 0.02018912509083748, 0.030474647879600525, -0.028446516022086143, -0.006081101484596729, 0.03576885908842087, 0.011707848869264126, 0.02226993441581726, 0.05441713333129883, -0.017160097137093544, -0.05868411064147949, 0.013156513683497906, 0.04345995560288429, -0.024245386943221092, 0.07259129732847214, -0.02414003014564514, -0.011576151475310326, 0.0012461813166737556, 0.020373500883579254, 0.01573777198791504, -0.017844920977950096, -0.01750250905752182, -0.018858985975384712, -0.0059263575822114944, -0.02718222700059414, 0.005379815585911274, 0.011747357435524464, -0.008744670078158379, -0.0062654768116772175, 0.032292064279317856, 0.025746731087565422, -0.002126903971657157, 0.052889447659254074, 0.0011136613320559263, 0.02537797950208187, -0.011246909387409687, -0.0021861675195395947, 0.0025730268098413944, 0.010140656493604183, -0.009666548110544682, 0.0116024911403656, 0.002016607904806733, 0.016330407932400703, 0.02947375178337097, 0.012030505575239658, 0.0192145686596632, -0.01787126064300537, 0.012840441428124905, 0.03987780213356018, -0.006035007536411285, 0.0268266461789608, 0.0022898786701261997, 0.02936839498579502, -0.04182691499590874, 0.04261709749698639, -0.004227468278259039, -0.03869253024458885, 0.019715016707777977, 0.03408314287662506, -0.00020248389046173543, 0.019754525274038315, 0.012175372801721096, -0.004115526098757982, 0.048490773886442184, 0.04638362675905228, 0.0005004479899071157, -0.010041884146630764, 0.05017649382352829, -0.046936750411987305, 0.05710374936461449, 0.009620454162359238, -0.03597957640886307, 0.018187332898378372, 0.0004230760969221592, 0.031975992023944855, 0.01120740082114935, -0.021255869418382645, -0.019635997712612152, -0.027682675048708916, 0.010469898581504822, 0.06063322350382805, 0.0225728377699852, -0.018964344635605812, -0.04701577126979828, -0.004951801151037216, -0.006347787566483021, 0.002844651695340872, 0.020439349114894867, 0.009725810959935188, 0.005040696356445551, 0.0035294753033667803, -0.04361799359321594, 0.04327557981014252, 0.013077495619654655, 0.033108584582805634, -0.029631787911057472, 0.0038521324750036, 0.012484859675168991, 0.022151406854391098, 0.022770382463932037, 0.02408735081553459, -0.010061638429760933, -0.007974243722856045, -0.01677817665040493, 0.017423491925001144, -0.025233114138245583, 0.0028989766724407673, -0.01978086493909359, -0.030632684007287025, 0.004457938019186258, 0.023494714871048927, -0.06558502465486526, -0.0032874823082238436, -0.0012363040586933494, -0.011372021399438381, -0.014052052050828934, 0.016541123390197754, -0.008191543631255627, -0.026918834075331688, 0.027471959590911865, 0.011273249052464962, 0.04622558876872063, 0.0012363040586933494, -0.04812202230095863, 0.013169683516025543, -0.020834438502788544, 0.0016124631511047482, 0.004171497188508511, 0.014894912019371986, 0.07285469025373459, -0.0027952652890235186, -0.026813475415110588, 0.03645368292927742, 0.004500739276409149, -0.0019738064147531986, -0.0009111774852499366, 0.004234053194522858, 0.016857195645570755, 0.015579735860228539, -0.019596489146351814, -0.05349525436758995, 0.020057428628206253, -0.026852983981370926, 0.021427074447274208, -0.009021232835948467, -0.0001911661820486188, -0.011635415256023407, 0.0384291373193264, -0.002620767103508115, -0.0006909968215040863, 0.004757548216730356, 0.019965240731835365, -0.02097930572926998, -0.013288211077451706, 0.01423642784357071, -0.04648898169398308, -0.010219674557447433, -0.031817954033613205, -0.04469790682196617, 0.028815267607569695, -0.021519262343645096, -0.0018141239415854216, 0.008461521938443184, 0.01864827238023281, -0.03416216000914574, 0.006222675554454327, 0.014934421516954899, -0.0043887970969080925, -0.017844920977950096, -0.029078660532832146, 0.01796344853937626, -0.013321135193109512, -0.0047542559914290905, 0.008929045870900154, -0.03424117714166641, 0.0004420074983499944, -0.03489966318011284, -0.01827952079474926, 0.0021087955683469772, -0.016014335677027702, 0.022902078926563263, 0.03924565762281418, -0.02096613682806492, 0.017476169392466545, -0.002671799622476101, 0.007500134874135256, 0.003168955212458968, 0.013775489293038845, 0.013459417037665844, 0.019807204604148865, 0.01702840067446232, 0.006021837703883648, -0.009284626692533493, -0.004122111015021801, -0.007197231985628605, -0.03848181664943695, -0.04143182560801506, -0.005551021546125412, -0.016699159517884254, 0.011325927451252937, 0.0024907162878662348, 0.05173051729798317, 0.0004066139808855951, -0.006304985843598843, -0.024719495326280594, 0.04335459694266319, 0.006594718899577856, -0.039271995425224304, -0.02195386216044426, 0.007177477702498436, -0.0015120443422347307, 0.011569567024707794, -0.07965024560689926, 0.003875179449096322, 0.02454829029738903, 0.02770901471376419, -0.015711432322859764, -0.016712328419089317, 0.023573733866214752, -0.00026421676739118993, 0.060001078993082047, -0.02392931468784809, -0.022638686001300812, -0.009501926600933075, -0.019556980580091476, 0.006947007961571217, -0.02030765265226364, -0.010614764876663685, 0.0021812289487570524, 0.006647397764027119, 0.011536642909049988, 0.006061346735805273, -0.039904139935970306, -0.023033777251839638, -0.02066323347389698, 0.001507928711362183, 0.028262140229344368, -0.013169683516025543, 0.05768321454524994, -0.0017104126745834947, 0.017634205520153046, -0.009758735075592995, 0.04064164310693741, 0.0188984964042902, -0.039851460605859756, 0.022981097921729088, 0.014868572354316711, -0.03189697489142418, -0.007763528265058994, -0.01175394281744957, -0.023942485451698303, 0.030685363337397575, -0.005824292544275522, 0.015513887628912926, -0.01136543694883585, -0.0379023477435112, -0.005103252362459898, -0.03397778421640396, -0.03086973913013935, 0.007664755918085575, 0.006400466430932283, 0.02267819456756115, -0.004382212180644274, -0.0012791055487468839, -0.04754255712032318, 0.008112524636089802, -0.004839858505874872, 0.007348683197051287, -0.03645368292927742, 0.03447823226451874, -0.03252911940217018, 0.007111629005521536, 0.02899964340031147, -0.04988676309585571, 0.020794929936528206, 0.0011581090511754155, 0.04359165206551552, -0.02039984054863453, 0.012234635651111603, -0.011773697100579739, 0.023376189172267914, 0.02242797054350376, 0.006235845386981964, 0.022098729386925697, 0.029394732788205147, -0.04195861145853996, -0.014868572354316711, 0.02253332920372486, -0.009284626692533493, 0.05101935565471649, 0.00890270620584488, 0.031817954033613205, 0.01942528411746025, -0.04040458798408508, 0.020228633657097816, 0.025496507063508034, 0.03279251232743263, -0.043064866214990616, 0.032239384949207306, 0.0026421677321195602, 0.008915876038372517, -0.003348391968756914, 0.01651478372514248, -0.05125640705227852, -0.03194965049624443, 0.005751859396696091, 0.02558869495987892, -0.0012033798266202211, -0.00623913761228323, -0.021861674264073372, -0.023784449324011803, -0.05070328339934349, -0.015553396195173264, -0.03640100359916687, -0.012847025878727436, 0.027261244133114815, 0.02997419983148575, 0.008580048568546772, -0.007012856658548117, 0.021980201825499535, 0.0116024911403656, -0.045962195843458176, 0.024350745603442192, -0.019754525274038315, 0.005939527414739132, 0.03158090263605118, -0.019701845943927765, -0.03226572647690773, 0.028446516022086143, -0.033319298177957535, 0.048596132546663284, 0.014275937341153622, 0.008092770352959633, 0.00604488467797637, 0.0046423133462667465, -0.02149292267858982, 0.027103208005428314, -0.008310070261359215, 0.006077808793634176, -0.00525470357388258, -0.010002374649047852, 0.02583891898393631, 0.020268142223358154, 0.02552284672856331, 0.007677925284951925, -0.03387242555618286, 0.02419270947575569, 0.022348953410983086, 0.040062177926301956, 0.019148720428347588, 0.005386400502175093, -0.05244167894124985, -0.009594114497303963, 0.014065221883356571, -0.03687511384487152, 0.014671027660369873, -0.016949383541941643, 0.0038488400168716908, 0.017844920977950096, 0.010246014222502708, -0.0004154623602516949, 0.01766054518520832, 0.032134026288986206, -0.018450725823640823, -0.01278776302933693, 0.013538435101509094, 0.0033269913401454687, 0.007822792045772076, 0.023178642615675926, -0.020386669784784317, -0.059526968747377396, 0.006769217550754547, -0.024996059015393257, 0.017700055614113808, -0.017318133264780045, 0.012741669081151485, 0.012985307723283768, -0.045909516513347626, 0.0193726047873497, -0.004905707202851772, -0.0026964927092194557, 0.021045153960585594, -0.04359165206551552, 0.009666548110544682, -0.024153199046850204, 0.05710374936461449, -0.0054555414244532585, -0.02382395789027214, -0.017107419669628143, 0.07037878781557083, 0.01263631135225296, -0.019346265122294426, -0.044092100113630295, -0.037876009941101074, -0.012438765726983547, 0.01983354426920414, -0.017265455797314644, 0.021980201825499535, -0.01870094984769821, 0.07132700830698013, 0.029868843033909798, -0.0013935171300545335, 0.01568509265780449, 0.047147467732429504, 0.0011416469933465123, 0.014829063788056374, 0.045962195843458176, -0.03447823226451874, 0.01771322451531887, -0.008033506572246552, -0.004079309292137623, 0.0041122338734567165, 0.005244826432317495, 0.02407418191432953, 0.010996685363352299, -0.032028671354055405, 0.04008851572871208, 0.0009424554882571101, -0.019715016707777977, 0.021427074447274208, -0.004935339093208313, 0.03466260805726051, -0.020518366247415543, 0.056313566863536835, -0.053047485649585724, 0.001944174524396658, 0.012465105392038822, -0.02454829029738903, -0.02200654149055481, -0.0013400153256952763, -0.06742878258228302, 0.019741356372833252, 0.015566566027700901, 0.008158618584275246, 0.026813475415110588, -0.019082872197031975, -0.009231948293745518, 0.02707687020301819, 0.02366592176258564, -0.025812579318881035, -0.045119334012269974, -0.017647376284003258, 0.00428673205897212, 0.007269665133208036, -0.010232844389975071, 0.012366333045065403, -0.045962195843458176, -0.04485594108700752, 0.019715016707777977, 0.0005366646219044924, -0.010226259008049965, 0.03774431347846985, -0.011747357435524464, 0.03977244347333908, 0.039271995425224304, -0.03924565762281418, 0.017212776467204094, -0.0005420147790573537, 0.012847025878727436, 0.04174789786338806, 0.03766529634594917, -0.011826375499367714, -0.008553709834814072, 0.06885110586881638, -0.012926043942570686, 0.050044797360897064, 0.01121398527175188, -0.005919772665947676, 0.013696471229195595, 0.034504570066928864, 0.009179269894957542, -0.05568142235279083, -0.008138864301145077, 0.007210401818156242, -0.017700055614113808, 0.002270124154165387, -0.04772693291306496, -0.009080496616661549, -0.06616449356079102, -0.004721331410109997, 0.007375022862106562, 0.03297688812017441, -0.004484277218580246, 0.005185563117265701, -0.04361799359321594, -0.02739294245839119, -0.019333096221089363, -0.01771322451531887, 0.009343890473246574, 0.020900288596749306, 0.044197458773851395, 0.018727289512753487, 0.025970615446567535, -0.006166704464703798, 0.011642000637948513, -0.004211006220430136, -0.015908977016806602, 0.0192145686596632, 0.042327363044023514, 0.035031359642744064, -0.01667281985282898, 0.005659671500325203, -0.01255729328840971, -0.010825480334460735, -0.021822165697813034, 0.007618661969900131, -0.0004292493686079979, 0.002701431280001998, 0.025496507063508034, -0.020268142223358154, 0.02180899679660797, 0.0059889135882258415, -0.021413905546069145, 0.011655169539153576, 0.00422088336199522, 0.0004113468457944691, 0.016949383541941643, 0.02884160727262497, 0.00406284723430872, -0.0064366827718913555, -0.005080205388367176, 0.01573777198791504, -0.02776169218122959, -0.0134133230894804, 0.0010864988435059786, -0.01838487759232521, 0.013084081001579762, -0.03416216000914574, -0.04027289152145386, 0.01750250905752182, -0.020900288596749306, 0.017067909240722656, -0.004810227081179619, 0.04166887700557709, -0.013643791899085045, -0.011016440577805042, -0.008718330413103104, 0.0032710202503949404, -0.013097249902784824, 0.005972451530396938, -0.005109837278723717, -0.02407418191432953, -0.01286678109318018, 0.011642000637948513, 0.013801828026771545, -0.011016440577805042, 0.04438183456659317, 0.025904767215251923, 0.017160097137093544, -0.003542644903063774, -0.005475295707583427, -0.0023244491312652826, 0.003015857422724366, 0.01367013156414032, -0.02087394893169403, -0.04540906846523285, 0.03713850677013397, -0.016383087262511253, 0.004237345885485411, -0.03421483933925629, -0.033530015498399734, -0.009133175946772099, -0.01548754796385765, 0.013564773835241795, 0.01305115595459938, 0.0007309174397960305, -0.018305860459804535, 0.03360903263092041, 0.008448352105915546, 0.013393567875027657, -0.006028422620147467, 0.06384662538766861, -0.0189511738717556, 0.006854820065200329, -0.03708582744002342, 0.03397778421640396, -0.003954197280108929, 0.041616201400756836, -0.07327611744403839, -0.0005053866188973188, 0.024416593834757805, -0.01025259867310524, -0.009166100062429905, 0.010232844389975071, 0.0014066868461668491, 0.032239384949207306, -0.0035591069608926773, -0.008665652014315128, -0.00841542799025774, -0.012287314981222153, 0.0002477546804584563, 0.0013095603790134192, -0.029895180836319923, 0.00715772295370698, -0.009745566174387932, -0.022744042798876762, 0.012886535376310349, 0.0037928689271211624, 0.05001845955848694, 6.51282025501132e-05, -0.030527327209711075, 0.013044571503996849, -0.005373230669647455, -0.009817998856306076, -0.007151138037443161, -0.02020229399204254, 0.003858717391267419, 0.028104104101657867, -0.006341202650219202, -0.003430702490732074, -0.010377710685133934, -0.030158575624227524, 0.03516305610537529, 0.01589580811560154, -0.018450725823640823, 0.03687511384487152, -0.0030175037682056427, -0.04930729418992996, 0.01294579915702343, -0.010608180426061153, 0.0014791201101616025, 0.0042801471427083015, -0.0022273226641118526, 0.008020337671041489, 0.024521950632333755, -0.0019063117215409875, 0.0007646647281944752, 0.01802929677069187, 0.012386087328195572, -0.03537376970052719, 0.00230469461530447, 0.008948800154030323, -0.0374809205532074, -0.03126483038067818, -0.00888295192271471, -0.017423491925001144, 0.00507691316306591, -0.013163099065423012, 0.005824292544275522, -0.028657231479883194, 0.027893390506505966, -0.02138756588101387, 0.006874574813991785, 0.025338470935821533, -0.0009177623433060944, 0.02475900575518608, 0.02936839498579502, -0.0011811560252681375, -0.012781177647411823, -0.01535585056990385, 0.0022503696382045746, -0.011951487511396408, 0.02133488655090332, -0.0029170848429203033, 0.004793765023350716, 0.0007420293404720724, -0.012129278853535652, 0.02718222700059414, -0.021242698654532433, -0.006867989897727966, -0.03287152945995331, 0.008705160580575466, -0.01730496436357498, -0.02066323347389698, 0.008560294285416603, -0.010871573351323605, 0.010272352956235409, -0.00488266022875905, -0.017423491925001144, -0.005679426249116659, 0.002426514169201255, 0.015382190234959126, -0.02341569773852825, 0.01935943402349949, 0.0028545288369059563, 0.02776169218122959, 0.04799032583832741, 5.797747508040629e-05, 0.021269038319587708, 0.006104148458689451, -0.0002553683880250901, -0.03439921513199806, 0.001487351139076054, 0.01978086493909359, -0.021716808900237083, -0.023442037403583527, -0.016225049272179604, -0.04485594108700752, 0.02557552605867386, -0.014499821700155735, 0.00507691316306591, -0.01719960756599903, -0.008547124452888966, 0.03432019427418709, -0.011273249052464962, -0.028657231479883194, -0.0028183122631162405, -0.00044900388456881046, -0.011839545331895351, 0.008869782090187073, -0.007862301543354988, 0.0373755618929863, -0.023178642615675926, 0.018319029361009598, -0.018240012228488922, -0.008066431619226933, -0.024574629962444305, -0.015922147780656815, -0.0029961029067635536, -0.04533005133271217, 0.022019710391759872, 0.010904498398303986, -0.02283623069524765, -0.004948508460074663, -0.019082872197031975, -0.04111575335264206, 0.007803037296980619, 0.0017960155382752419, -0.0017005354166030884, 0.021348057314753532, 0.003073474857956171, -0.007269665133208036, 0.007533058989793062, 0.044302813708782196, 0.0134133230894804, 0.012741669081151485, -0.005501635372638702, 0.006038299761712551, -0.0016289252089336514, -0.017542017623782158, 0.011688094586133957, 0.02765633538365364, -0.01136543694883585, 0.00512629933655262, 0.038666192442178726, 0.0006292639300227165, 0.007210401818156242, 0.01884581707417965, -0.022717704996466637, 0.007572568021714687, 0.006788971833884716, -0.019240908324718475, -0.02537797950208187, -0.0268266461789608, 0.006028422620147467, 0.01822684146463871, 0.012445351108908653, 0.026010125875473022, 0.05360061302781105, 0.0005712350248359144, 0.013973033986985683, -0.020175954326987267, -0.039798785001039505, 0.021993370726704597, 0.023231321945786476, 0.04799032583832741, -0.0022503696382045746, -0.018938004970550537, 0.03634832799434662, 0.019096041098237038, -0.0050275265239179134, 0.002452853601425886, 0.010884743183851242, -0.023007437586784363, -0.0017515679355710745, -0.011312758550047874, -0.0025219942908734083, -0.006953592877835035, -0.009804829023778439, 0.011839545331895351, -0.01162224542349577, 0.0032183413859456778, -0.015553396195173264, -1.1150503269163892e-05, 0.008152034133672714, 0.019227737560868263, 0.007803037296980619, 0.023442037403583527, -0.01642259582877159, -0.014091561548411846, -0.002925315871834755, 0.013735979795455933, 0.0008650835952721536, 0.003073474857956171, 0.0057123503647744656, -0.00999579019844532, -0.039430033415555954, -0.004115526098757982, 0.007677925284951925, 0.027577318251132965, -0.0017647376516833901, -0.000396119401557371, -0.015777280554175377, -0.011661754921078682, 0.04359165206551552, -0.0093175508081913, 0.028051426634192467, 0.004951801151037216, -0.0018338784575462341, -0.010107732377946377, 0.02190118283033371, 0.021255869418382645, -0.03126483038067818, 0.0037928689271211624, 0.01796344853937626, 0.017489340156316757, -0.012952383607625961, 0.023705430328845978, -0.008784178644418716, -0.009225362911820412, -0.005096667446196079, -0.013959864154458046, -0.01351209543645382, -0.02475900575518608, 0.0069733476266264915, 0.01452616136521101, -0.04185325279831886, -0.001875033718533814, 0.017726393416523933, -0.022849401459097862, 0.0034438723232597113, 0.0038949339650571346, -7.52626801840961e-05, 0.00493204640224576, -0.005781491287052631, 0.0032002332154661417, 0.015987996011972427, 0.027629995718598366, -0.010687198489904404, 0.011339097283780575, -0.04293316975235939, 0.013294795528054237, -0.023916145786643028, 0.009976034983992577, -0.008112524636089802, 0.020689573138952255, -0.024153199046850204, 0.002120319055393338, 0.038192082196474075, -0.02324449084699154, 0.008000582456588745, -0.005653086584061384, -0.0004080544167663902, -0.00722357165068388, 0.010397464968264103, 0.020808100700378418, 0.005600407719612122, -0.0307117011398077, -0.020492028445005417, 0.032239384949207306, 0.016290899366140366, -0.028051426634192467, -0.004382212180644274, -0.0187931377440691, -0.03410948067903519, 0.004082601983100176, 0.006574964616447687, -0.00784913171082735, -0.048754166811704636, 0.00033356339554302394, -0.01730496436357498, -0.010595010593533516, -0.013117005117237568, 0.015184645541012287, 0.021005645394325256, 0.0071643078699707985, 0.012629726901650429, 0.030790720134973526, 0.027050530537962914, 0.006410343572497368, 0.010107732377946377, -0.005244826432317495, 0.01951747015118599, 0.024521950632333755, -0.0006683614337816834, 0.010924252681434155, -0.031765278428792953, 0.0059889135882258415, -0.050624262541532516, 0.022098729386925697, -0.041616201400756836, -0.03287152945995331, 0.0154085299000144, -0.010206504724919796, 0.03276617452502251, -0.0013515388127416372, 0.007519889157265425, -0.01222146674990654, -0.015803620219230652, -0.009093666449189186, -0.011497133411467075, 0.003470211522653699, 0.0009473941172473133, 0.01476321555674076, 0.0152504937723279, -0.012688989751040936, 0.002385359024628997, 0.033108584582805634, -0.022967929020524025, 0.028262140229344368, 0.00041443348163738847, 0.0027425866574048996, 0.00332040642388165, -0.010107732377946377, -0.010608180426061153, -0.025825750082731247, -0.008237636648118496, 0.0031903558410704136, 0.018134653568267822, -0.03761261701583862, 0.006169996690005064, 0.033688049763441086, -0.010456728748977184, 0.000609509414061904, 0.047463539987802505, -0.005040696356445551, -0.0007070474093779922, 0.04027289152145386, -0.011846130713820457, -0.01007480826228857, 0.0006342025590129197, -0.006347787566483021, 0.024930210784077644, -0.014671027660369873, 0.009956280700862408, 0.0042175911366939545, 0.014973930083215237, -0.0015383836580440402, -0.025206774473190308, 0.01941211335361004, -0.022862570360302925, -0.032028671354055405, 0.018556084483861923, 0.03226572647690773, 0.032186705619096756, 0.004421721212565899, -0.012656065635383129, -0.01667281985282898, -0.008152034133672714, -0.0052876281552016735, -0.023389358073472977, 0.01463151816278696, 0.011635415256023407, -0.01642259582877159, -0.009008063934743404, -0.02236212231218815, -0.013018231838941574, 0.03434653580188751, -0.04775327071547508, 0.02087394893169403, -0.009008063934743404, 0.023679090663790703, 0.023165473714470863, 0.018108315765857697, -0.009653378278017044, -0.006960177794098854, 0.0027656336314976215, 0.022019710391759872, -0.009429492987692356, -0.010766216553747654, 0.055944815278053284, 0.03806038573384285, -0.02169046923518181, 0.0003759532992262393, -0.0013112066080793738, 0.028209462761878967, 0.019148720428347588, 0.029394732788205147, -0.019715016707777977, -0.014460312202572823, 0.014842233620584011, -0.0077042649500072, 0.003136030863970518, 0.01812148466706276, -0.00825739186257124, 0.017897600308060646, 0.02403467334806919, -0.005304090213030577, -0.013999373652040958, 0.017581528052687645, 0.0047509633004665375, 0.008073016069829464, -0.009014648385345936, 0.03753359988331795, -0.027788031846284866, -0.029631787911057472, -0.008869782090187073, -0.03484698385000229, -0.009495342150330544, -0.017173267900943756, -0.045224692672491074, 0.0379023477435112, 0.02412685938179493, -0.0025713806971907616, 0.021005645394325256, -0.018503405153751373, -0.006347787566483021, 0.009106836281716824, 0.0152768325060606, 0.0011671632528305054, -0.0019803910981863737, 0.00393444299697876, 0.000322039908496663, 0.005557606462389231, -0.036585379391908646, -0.014289106242358685, -0.008566878736019135, -0.007645001169294119, 0.010812310501933098, -0.02158511057496071, -0.01931992545723915, -0.006874574813991785, -0.011984411627054214, 0.015606074593961239, -0.0016560876974835992, 0.0010889682453125715], "id": 28}, {"title": "Floro Dery", "text": "Floro Dery is a Filipino illustrator best known for his works in the 1980s The Transformers TV series and was the visual creator of The Transformers: The Movie. He interpreted some of the toys' box art and created the models that would become the visual guidelines both for the comics book and the animated cartoon appearances of those characters.", "vector": [-0.0020521909464150667, 0.015754757449030876, -0.024402707815170288, -0.036891527473926544, 0.026351090520620346, 0.019276222214102745, 0.014796536415815353, -0.03168519213795662, -0.05292576551437378, 0.10061325877904892, -0.012967931106686592, 0.03944678604602814, -0.023188959807157516, -0.020761465653777122, -0.005006707273423672, 0.003830889705568552, -0.019435925409197807, 0.010149162262678146, -0.05334099754691124, -0.02561645396053791, 0.048262421041727066, -0.03564583882689476, 0.007881371304392815, 0.020330265164375305, 0.034144625067710876, 0.023412544280290604, 0.023700011894106865, -0.03759422153234482, -0.04973169416189194, -0.0076098754070699215, 0.03210042044520378, 0.0030024272855371237, 0.026910053566098213, 0.022055065259337425, -0.0056734695099294186, 0.017599334940314293, 0.007769579067826271, 0.03580554202198982, 0.01436533685773611, 0.006811357568949461, 0.017551423981785774, -0.017599334940314293, 0.0275169275701046, 0.0035254566464573145, 0.000530016259290278, 0.02414718084037304, -0.033346109092235565, 0.03016800619661808, -0.019499806687235832, 0.039255138486623764, -0.0027488977648317814, -0.02338060364127159, -0.012113516218960285, 0.026191387325525284, -0.013718537986278534, -0.020122651010751724, 0.08266257494688034, 0.0673949122428894, 0.01141880638897419, -0.03202056884765625, 0.028938287869095802, -0.0630190297961235, 0.03989395499229431, -0.024402707815170288, 0.061326175928115845, 0.03016800619661808, -0.010963650420308113, 0.02599974349141121, 0.002724942285567522, 0.024674203246831894, 0.04212980344891548, -0.06452024728059769, -0.052095308899879456, 0.015395425260066986, 0.030663087964057922, 0.029018141329288483, 0.016657084226608276, -0.05084962025284767, -0.005162418354302645, -0.05043439194560051, -0.021384309977293015, 0.011314998380839825, -0.023188959807157516, 0.07193049043416977, -0.021687746047973633, -0.01807844452559948, -0.02093713916838169, -0.05557684600353241, 0.019691450521349907, -0.007637823931872845, -0.01807844452559948, -0.03144563362002373, -0.011834035627543926, -0.03775392472743988, 0.007821482606232166, 0.005086558870971203, 0.037147052586078644, 0.01177813857793808, -0.004180241376161575, -0.008967355825006962, 0.009781843982636929, -0.00861600786447525, -0.011035517789423466, -0.001972339116036892, 0.010540436021983624, 0.011235146783292294, -0.02473808452486992, 0.018254119902849197, 0.0326593816280365, 0.045483577996492386, 0.008855563588440418, -0.04161875322461128, -0.02140028029680252, 0.039925895631313324, 0.004176248796284199, 0.026175417006015778, -0.06253992021083832, -0.034112684428691864, 0.008320556953549385, -0.058547332882881165, 0.004463715013116598, -0.09218090772628784, -0.024051358923316002, 0.008560111746191978, 0.017583364620804787, -0.057365525513887405, 0.008839593268930912, -0.00042745660175569355, 0.04267279803752899, -0.0005499792168848217, -0.04909288138151169, -0.00616056565195322, 0.06733103096485138, 0.0020072744227945805, 0.04382266104221344, 0.0126644941046834, -0.0380733348429203, -0.006128625012934208, -0.010947680100798607, 0.05608789622783661, 0.042864441871643066, 0.008176823146641254, 0.021464161574840546, -0.003952663391828537, -0.05171201750636101, -0.026989905163645744, -0.026303179562091827, 0.07729653269052505, 0.04928452521562576, -0.0218634195625782, -0.044685062021017075, -0.01913248933851719, 0.031158167868852615, -0.014716684818267822, 0.06474383175373077, -0.012361057102680206, -0.072505421936512, -0.056726712733507156, -0.012696434743702412, 0.01656126044690609, -0.009047207422554493, 0.042161744087934494, -0.03612494841217995, -0.0038907784037292004, -0.0483582429587841, -0.04193815961480141, 0.05726970359683037, 0.030599206686019897, -0.019020697101950645, 0.037945572286844254, 0.03130190074443817, 0.06081512197852135, 0.0545228011906147, 0.02772454172372818, -0.03998977690935135, 0.02435479685664177, -0.06579787284135818, 0.0010710121132433414, -0.03539031371474266, -0.020889228209853172, -0.02173565700650215, 0.03388909995555878, 0.012935989536345005, -0.028363356366753578, -0.0008309576660394669, 0.037434518337249756, 0.056439246982336044, 0.05289382487535477, 0.010636258870363235, -0.01748754270374775, -0.0018815078074112535, 0.014229589141905308, -0.027820363640785217, -0.022023124620318413, 0.03131787106394768, -0.03408074378967285, -0.07327200472354889, -0.014572951942682266, -0.06084706261754036, -0.04142710939049721, 0.031621307134628296, 0.050083041191101074, 0.0666283369064331, -0.0010410677641630173, -0.009342659264802933, -0.037434518337249756, -0.023188959807157516, 0.027660660445690155, -0.0036771749146282673, -0.030231887474656105, 0.0352306105196476, 0.006252394989132881, 0.008759741671383381, 0.009087134152650833, 0.0037450490053743124, -0.005401973612606525, -0.015874536707997322, -0.017040371894836426, 0.029976362362504005, -0.015754757449030876, 0.017072312533855438, 0.03733869642019272, -0.01573878712952137, 0.0018116375431418419, 0.027708571404218674, -0.018813081085681915, -0.04516417160630226, -0.011171265505254269, -0.011307013221085072, 0.012592627666890621, -0.024003447964787483, 0.004443752113729715, 0.029848599806427956, -0.02077743597328663, -0.05110514536499977, -0.0021919317077845335, 0.031126227229833603, -0.027373192831873894, -0.029864570125937462, 0.01782291941344738, -0.01895681582391262, -0.004463715013116598, -0.020154591649770737, -0.012249264866113663, 0.08911459892988205, 0.007953238673508167, -0.026319149881601334, -0.06110259145498276, -0.032084450125694275, 0.003010412445291877, 0.007050913292914629, 0.02397150732576847, 0.07550784945487976, 0.041267406195402145, -0.01527564786374569, 0.029050081968307495, 0.003226012224331498, 0.04848600551486015, -0.00021971718524582684, 0.03896767273545265, -0.05953749641776085, 0.004200204275548458, 0.017727097496390343, -0.026191387325525284, -0.013175545260310173, 0.027916185557842255, 0.00273891631513834, 0.01550721749663353, 0.031078316271305084, -0.013638685457408428, 0.010676184669137001, -0.03951066732406616, 0.009941548109054565, -0.010117221623659134, 0.01284815277904272, 0.041395168751478195, -0.026015713810920715, 0.07001405209302902, 0.06471189111471176, 0.04315190762281418, 0.030327709391713142, -0.04264085739850998, -0.013622715137898922, 0.01523572113364935, -0.01975533366203308, 0.0339529812335968, 0.019052637740969658, -0.01651334948837757, -0.001149865798652172, -0.02805991843342781, -0.028874406591057777, -0.006356202531605959, -0.005917017813771963, -0.029896510764956474, 0.034144625067710876, 0.0061685508117079735, 0.03989395499229431, -0.016625143587589264, 0.008033090271055698, 0.006919157691299915, -0.0018535596318542957, -0.03210042044520378, -0.0044158040545880795, -0.04382266104221344, 0.016297750174999237, -0.005382010713219643, -0.012169413268566132, 0.03922319784760475, 0.009749903343617916, -0.03050338290631771, -0.048677653074264526, -0.012273220345377922, -0.022534174844622612, -0.04133128747344017, -0.01874919980764389, -0.02764469012618065, 0.012840167619287968, -0.006499935872852802, -0.03356969356536865, -0.0014173692325130105, 0.027453046292066574, 0.0137584637850523, -0.05164813622832298, 0.006128625012934208, 0.03016800619661808, 0.039670370519161224, 0.07499679923057556, -0.009781843982636929, 0.03539031371474266, 0.0009776853257790208, -0.027836333960294724, -0.0020442057866603136, 0.043119966983795166, 0.004779129754751921, -0.020250413566827774, 0.004443752113729715, -0.043375492095947266, 0.024578381329774857, -0.02708572708070278, -0.05496997386217117, 0.0043519227765500546, 0.03289893642067909, -0.03224415332078934, -0.0008614012040197849, -0.03130190074443817, -0.08010731637477875, 0.021480131894350052, 0.022486263886094093, -0.00891145970672369, -0.022310590371489525, 0.0007810503011569381, -0.043503254652023315, -0.03251564875245094, -0.028842465952038765, -0.007661779411137104, -0.0058211954310536385, 0.009542289189994335, -0.015171839855611324, 0.0012347083538770676, 0.02603168413043022, 0.007354349829256535, 0.023013286292552948, 0.03733869642019272, 0.012904048897325993, 0.04149099066853523, 0.002155998256057501, -0.01628177985548973, -0.025856008753180504, -0.01921234093606472, 0.06611727923154831, -0.0006228439742699265, 0.005609588231891394, -0.06343426555395126, -0.012760316021740437, 0.027884244918823242, -0.009598185308277607, 0.030199946835637093, 0.015467291697859764, -0.0627635046839714, 0.013502937741577625, -0.022693878039717674, 0.004395841155201197, -0.009694007225334644, -0.006268365308642387, -0.0045435670763254166, 0.0034655677154660225, -0.04289638251066208, -0.04302414506673813, -0.016401557251811028, -0.01284815277904272, 0.012033664621412754, -0.01306375302374363, 0.033186402171850204, -0.006755461450666189, -0.002106091007590294, 0.05199948698282242, 0.0390954352915287, 0.03555001690983772, 0.031030405312776566, -0.017806949093937874, -0.0302159171551466, 0.0013874248834326863, -0.00931071862578392, -0.02898620069026947, 0.021591924130916595, -0.01612207666039467, -0.0017417671624571085, 0.009622140787541866, 0.017535453662276268, 0.0486137680709362, -0.02684617228806019, 0.05608789622783661, 0.05011498183012009, 0.0052542476914823055, 0.012856137938797474, -0.05212724953889847, 0.01694454997777939, -0.0006373170763254166, -0.009198926389217377, -0.003727082395926118, 0.06880030035972595, 0.07084450870752335, -0.013111663982272148, 0.037690043449401855, 0.04097994044423103, 0.045483577996492386, 0.023652100935578346, 0.009302733466029167, 0.0056654843501746655, -0.0023536314256489277, -0.024322854354977608, 0.027708571404218674, -0.007737638428807259, -0.02183147892355919, -0.0018515633419156075, -0.005952951032668352, -0.013055767863988876, 0.010141177102923393, -0.003263941965997219, 0.0799795538187027, 0.003645234275609255, -0.005701418034732342, -0.027532897889614105, -0.014421232976019382, -0.051552314311265945, -0.001959363231435418, 0.010229013860225677, -0.06381755322217941, -0.03641241788864136, 0.026766320690512657, 0.006076721008867025, -0.024961668998003006, -0.011562539264559746, -0.05043439194560051, 0.02528107725083828, -0.0028606904670596123, 0.010772006586194038, 0.0029884532559663057, -0.02245432324707508, 0.010835887864232063, -0.01428548526018858, 0.08112941682338715, 0.00301839760504663, -0.02347642555832863, 0.026957964524626732, -0.019531747326254845, 0.005382010713219643, -0.022310590371489525, -0.03205250948667526, -0.016209913417696953, -0.007250542752444744, 0.03864826634526253, 0.030519355088472366, -0.0003520964819472283, 0.05152037367224693, 0.01656126044690609, 0.04260891675949097, -0.01354286354035139, 0.017040371894836426, -0.018637407571077347, 0.07550784945487976, -0.02767663076519966, 0.011482687667012215, -0.00918295606970787, 0.010939694941043854, 0.0136945815756917, 0.014572951942682266, 0.01921234093606472, 0.0023656091652810574, 0.07774370163679123, 0.03749839961528778, -0.013151589781045914, -0.017966652289032936, 0.015219750814139843, -0.03602912649512291, -0.043119966983795166, -0.07026957720518112, -0.0021480130963027477, -0.0007356345886364579, -0.03631659597158432, -0.022725818678736687, 0.03264341130852699, 0.029273666441440582, 0.029688894748687744, -0.01609812118113041, -0.002601172076538205, -0.011003576219081879, 0.05778075382113457, 0.02895425818860531, 0.01236904226243496, 0.02936948835849762, 0.037147052586078644, 0.039255138486623764, 0.01333524938672781, 0.003910741303116083, -0.00451961113139987, 0.023061197251081467, 0.007426216267049313, -0.016058195382356644, -0.006923150271177292, 0.03526255115866661, -0.011722242459654808, 0.027245430275797844, 0.017327837646007538, -0.007613867986947298, 0.013431071303784847, 0.0017367764376103878, 0.03205250948667526, -0.005677462089806795, 0.028714703395962715, 0.022518204525113106, 0.006887217052280903, 0.007214609067887068, 0.0176153052598238, 0.002571227727457881, -0.007370320148766041, 0.009598185308277607, 0.0060966843739151955, -0.019739363342523575, -0.03325028717517853, -0.019643539562821388, -0.018860992044210434, -0.020969079807400703, -0.05206336826086044, -0.006280343513935804, -0.008719815872609615, 0.049891397356987, -0.029018141329288483, 0.0009068169165402651, -0.021815508604049683, 0.005988884251564741, 0.029609043151140213, -0.017599334940314293, 0.056567009538412094, 0.0068153501488268375, 0.0028606904670596123, -0.07154720276594162, 0.030311739072203636, -0.004627411253750324, -0.024450618773698807, 0.023013286292552948, 0.008560111746191978, 0.0018226171378046274, 0.04369489848613739, 0.01882905140519142, -0.021416250616312027, -0.027532897889614105, -0.01913248933851719, -0.03855244442820549, -0.020250413566827774, 0.011985753662884235, -0.019787274301052094, -0.018429793417453766, 0.03516672924160957, -0.025600483641028404, 0.042576976120471954, 0.026047654449939728, -0.0003603312070481479, -0.032803114503622055, -0.01803053356707096, 0.010340807028114796, -0.015251691453158855, 0.004647374153137207, 0.03877602890133858, 0.01561102457344532, -0.000684729078784585, -0.025808097794651985, 0.021927300840616226, 0.01833397150039673, 0.008520185947418213, -0.021815508604049683, 0.0032539605163037777, 0.03551807627081871, 0.004994729533791542, 0.0067794169299304485, -0.0020382169168442488, 0.0065877726301550865, 0.011586494743824005, 0.01184202078729868, -0.026047654449939728, 0.013710551895201206, 0.024003447964787483, 0.010077295824885368, -0.020202502608299255, 0.0008698854362592101, -0.030199946835637093, 0.015619009733200073, -0.031062345951795578, 0.03740257769823074, -0.008831608109176159, 0.011179250665009022, -0.020202502608299255, 0.01638558693230152, 0.04979557543992996, 0.01367062609642744, 0.007789541967213154, -0.032675351947546005, 0.012313146144151688, -0.0359971858561039, -0.042289506644010544, -0.010396703146398067, -0.018126355484128, 0.020761465653777122, 0.03791363164782524, -0.03289893642067909, -0.011203206144273281, 0.020889228209853172, -0.02401941828429699, -0.033729396760463715, -0.0029345531947910786, 0.0028766607865691185, 0.010883798822760582, -0.018845021724700928, -0.0486137680709362, 0.022358501330018044, -0.028411267325282097, 0.006871246732771397, 0.005725373513996601, 0.026399001479148865, -0.02203909493982792, -0.010524465702474117, -0.024035388603806496, 0.010636258870363235, -0.02144819125533104, 0.007917304523289204, -0.0099016223102808, -0.0035074898041784763, -0.0318928062915802, 0.01175418309867382, 0.012201353907585144, -0.018525615334510803, 0.007014979608356953, -0.03753034025430679, 0.008759741671383381, 0.015427365899085999, -0.031126227229833603, 0.01615401729941368, 0.005070588551461697, -0.014820491895079613, 0.01327136717736721, -0.001716813538223505, 0.02708572708070278, -0.008655933663249016, 0.0013664637226611376, 0.007593905087560415, 0.012337101623415947, 0.023460455238819122, 0.01681678742170334, -0.004966781474649906, 0.0011578509584069252, 0.019499806687235832, 0.056854475289583206, -0.048677653074264526, -0.008344512432813644, 0.019978918135166168, -0.0035015009343624115, 0.018573526293039322, 0.025057490915060043, -0.02831544540822506, 0.019867125898599625, -0.02540883980691433, 0.0063322470523417, -0.007649801671504974, 0.03125398978590965, 0.019403984770178795, 0.005401973612606525, 0.012297175824642181, -0.030870702117681503, 0.012696434743702412, 0.0434713140130043, 0.0017397708725184202, -0.03826497867703438, -0.04724032059311867, 0.006791394669562578, -0.0005025672144256532, 0.0004464214143808931, -0.008456304669380188, -0.03970231115818024, 0.012456879019737244, 0.005641528870910406, -0.006891209632158279, 0.009166985750198364, -0.04407818987965584, 0.012959945946931839, -0.009765873663127422, 0.03243579715490341, -0.003497508354485035, -0.008735786192119122, -0.002251820405945182, -0.02358821965754032, 0.012233294546604156, 0.0059409732930362225, 0.01828606054186821, -0.017631275579333305, 0.016673054546117783, -0.01684872806072235, 0.004339944571256638, 0.00044667095062322915, -0.033729396760463715, -0.0074182311072945595, 0.026494823396205902, 0.04452535882592201, 0.007629838772118092, -0.005278203170746565, 0.0016918597975745797, 0.0059130252338945866, 0.00036706868559122086, -0.037945572286844254, 0.00377100077457726, 0.001421361812390387, 0.015052062459290028, 0.0016100116772577167, -0.01841382309794426, -0.0019603613764047623, 0.034272387623786926, 0.010340807028114796, -0.007478120271116495, 0.005661491770297289, -0.005186373833566904, 0.0067434837110340595, 0.0030742939561605453, 0.020074740052223206, -0.02371598221361637, 0.020378176122903824, -0.013510922901332378, -0.013239426538348198, -0.03034367971122265, 0.021847449243068695, 0.031541455537080765, -0.02199118211865425, 0.08477065712213516, -0.01112335454672575, 0.020202502608299255, 0.026957964524626732, -0.023141048848628998, 0.0007725660689175129, 0.01862143725156784, -0.01926025189459324, 0.02312507852911949, 0.00466733705252409, -0.024849876761436462, -0.0030962531454861164, -0.01777500845491886, 0.05771687254309654, 0.04845406487584114, 0.010316851548850536, 0.00819279346615076, -0.04056470841169357, 0.0011728231329470873, 0.05861121416091919, 0.0050266701728105545, -0.00618452113121748, -0.018254119902849197, -0.04014948010444641, 0.00103008805308491, 0.003283904865384102, -0.010907754302024841, -0.02397150732576847, -0.0026391015853732824, -0.013367190025746822, -0.04740002378821373, 0.016233868896961212, -0.034911204129457474, -0.021975211799144745, -0.025776157155632973, 0.033729396760463715, 0.022358501330018044, 0.01684872806072235, 0.010548421181738377, 0.04292832314968109, 0.017679186537861824, 0.034783441573381424, -0.02435479685664177, -0.009965503588318825, 0.01756739430129528, -0.02384374476969242, -0.016042225062847137, 0.034911204129457474, -0.021208634600043297, -0.02569630555808544, -0.027437075972557068, -0.0023157019168138504, 0.01731186732649803, -0.0077296532690525055, 0.010963650420308113, 0.025776157155632973, 0.0041123670525848866, -0.03186086565256119, -0.004371885675936937, -0.024322854354977608, 0.0295771025121212, 0.00743819447234273, 0.027660660445690155, -0.03542225435376167, 0.012416953220963478, -0.007462149951606989, -0.013982048258185387, -0.023204930126667023, -0.04040500521659851, -0.02651079371571541, -0.020330265164375305, 0.007258527912199497, -0.018781140446662903, 0.006635683588683605, -0.014253544621169567, 0.009382585063576698, 0.011698286980390549, -0.016233868896961212, 0.0293215773999691, -0.01095566526055336, -0.03312252089381218, -0.010213043540716171, 0.010077295824885368, -0.01080394722521305, 0.01592244766652584, 0.015251691453158855, -0.008344512432813644, -0.014932285062968731, 0.0024774018675088882, -0.0018146319780498743, -0.0037510378751903772, 0.014796536415815353, -0.014469143934547901, -0.022310590371489525, -0.012377027422189713, -0.007721668109297752, -0.0169764906167984, -0.0046793147921562195, -0.0016469431575387716, -0.033857159316539764, 0.017663216218352318, 0.0003735566569957882, -0.019483836367726326, 0.018318001180887222, -0.016114091500639915, -0.013718537986278534, -0.0008169836364686489, 0.03753034025430679, 0.0068153501488268375, 0.006563817150890827, -0.027836333960294724, 0.012712405063211918, 0.020537881180644035, -0.03144563362002373, 0.02641497179865837, -0.025392869487404823, 0.011873961426317692, 0.024754054844379425, -0.001185799133963883, -0.047847192734479904, -0.00683531304821372, -0.010692154988646507, 0.008735786192119122, 0.011434776708483696, -0.02536092884838581, -0.0015111950924620032, -0.0126644941046834, -0.01175418309867382, 0.013798389583826065, 0.0028147755656391382, 0.021352369338274002, 0.0011848009889945388, -0.012385012581944466, -0.0011598472483456135, 0.010572376661002636, -0.016784846782684326, -0.005605595652014017, 0.010093266144394875, -0.008464289829134941, -0.019372044131159782, -0.05778075382113457, 0.02528107725083828, -0.02312507852911949, -0.06860865652561188, 0.015020121820271015, -0.014429218135774136, -0.010165132582187653, -0.015595054253935814, -0.02507346123456955, -0.017168134450912476, 0.010748051106929779, -0.018349941819906235, 0.038616325706243515, -0.005928995553404093, 0.040181420743465424, 0.04899705946445465, 0.013814359903335571, 0.007038935087621212, 0.024450618773698807, -0.022518204525113106, 0.006388143170624971, -0.02072952501475811, 0.04343937337398529, 0.038488563150167465, -0.01537945494055748, -0.0031481569167226553, 0.018557555973529816, -0.003269930835813284, 0.028842465952038765, -0.0035015009343624115, -0.03513478860259056, -0.0203142948448658, 0.0025452757254242897, -0.002443464705720544, -0.01988309621810913, -0.029848599806427956, -0.01287210825830698, -0.031749073415994644, -0.025392869487404823, 0.03906349465250969, -0.01900472678244114, -0.0013095693429931998, -0.053788166493177414, -0.024450618773698807, 0.027948126196861267, 0.034112684428691864, -0.041011881083250046, 0.035965245217084885, 0.017503513023257256, -0.023955537006258965, 0.03179698437452316, 0.018845021724700928, -0.008172830566763878, -0.008272645063698292, -0.03356969356536865, -0.03590136393904686, -0.02178356796503067, 0.01141880638897419, 0.017184104770421982, -0.007210616488009691, 0.03008815459907055, -0.034112684428691864, -0.03871214762330055, 0.017535453662276268, -0.01638558693230152, 0.02451450005173683, -0.00136945815756917, -0.02607959508895874, 0.03257953003048897, 0.016864698380231857, -0.0015151876723393798, 0.025392869487404823, -0.0342085063457489, -0.019451895728707314, -0.023604189977049828, -0.05532132089138031, -0.02072952501475811, 0.012656508944928646, -0.0077655864879488945, -0.015674905851483345, -0.004787114914506674, 0.008735786192119122, 0.009861696511507034, -0.006503928452730179, 0.007709690369665623, 0.06483965367078781, 0.007621853146702051, 0.0047990926541388035, -0.018557555973529816, 0.009262807667255402, -0.054714445024728775, 0.015443336218595505, -0.029209785163402557, 0.05861121416091919, 0.019946977496147156, 0.027564838528633118, -0.021623864769935608, -0.011291042901575565, -0.020026829093694687, 0.007286475971341133, -0.042033981531858444, 0.017295897006988525, -0.009973488748073578, -0.03356969356536865, 0.02839529700577259, -0.0030084161553531885, -0.0352306105196476, -0.0031261974945664406, 0.03160533681511879, -0.011442761868238449, 0.0026311164256185293, -0.01866934821009636, -0.039287079125642776, 0.014077870175242424, -0.0028367347549647093, 0.04315190762281418, 0.042289506644010544, -0.005765299312770367, 0.009063177742064, 0.01327136717736721, 0.0021400279365479946, -0.010628273710608482, -0.025249136611819267, -0.016752906143665314, -0.010101251304149628, -0.006268365308642387, 0.029768748208880424, 0.0196754802018404, -0.00878369715064764, 0.05944167077541351, -0.003313849214464426, -0.0031102271750569344, -0.02679826132953167, 0.03016800619661808, 0.005537721794098616, 0.027245430275797844, 0.02409926988184452, 0.020378176122903824, -0.005621565971523523, -0.0028307458851486444, 0.015419380739331245, 0.006064743269234896, -0.015778712928295135, 0.010540436021983624, -0.004511625971645117, -0.007581927347928286, -0.0008089984767138958, -0.016209913417696953, 0.006627698428928852, 0.004032515455037355, 0.015746772289276123, 0.02726140059530735, -0.005058610811829567, 0.025297047570347786, -0.025057490915060043, -0.03366551548242569, -0.03353775292634964, 0.002092116978019476, 0.01882905140519142, 0.006667624693363905, 0.007490098010748625, 0.0010126205161213875, 0.011802094988524914, -0.03131787106394768, -0.008009134791791439, 0.012480834499001503, 0.006503928452730179, -0.003962645307183266, -0.005086558870971203, 0.0031641272362321615, 0.029513221234083176, -0.018270090222358704, -0.01854158565402031, 0.02823559381067753, 0.009869681671261787, -0.01215344201773405, -0.0024274943862110376, 0.013031812384724617, -0.0071627055294811726, -0.025600483641028404, -0.0067434837110340595, -0.026367060840129852, -0.0017946689622476697, -0.03328222781419754, -0.0040405006147921085, 0.026271238923072815, 0.006619713269174099, -0.030934583395719528, -0.05279800295829773, 0.042033981531858444, 0.02136833965778351, 0.009981473907828331, 0.0069351280108094215, -0.005781269632279873, 0.0004207191232126206, 0.03516672924160957, 0.022645967081189156, 0.001318552647717297, -0.011738212779164314, -0.03235594555735588, -0.004212182015180588, -0.00022533176525030285, -0.016465438529849052, -0.014964225701987743, 0.0253289882093668, 0.00743819447234273, 0.013470997102558613, 0.032419826835393906, 0.015986328944563866, -0.017854860052466393, -0.009741918183863163, -0.024386737495660782, -0.004850996192544699, -0.03555001690983772, 0.02317298948764801, -0.0033158455044031143, 0.01518781017512083, 0.009342659264802933, 0.014509070664644241, 0.008184808306396008, -0.014612877741456032, -0.02481793612241745, -0.03350581228733063, 0.0019114522729068995, -0.0048350258730351925, -0.008879519067704678, -0.02389165572822094, -0.0268781129270792, 0.004942825995385647, 0.004375878255814314, 0.036891527473926544, -0.01756739430129528, 0.015155869536101818, 0.003778985934332013, -0.04420595243573189, 0.02001085877418518, -0.0034935157746076584, 0.04580298811197281, -0.003986600786447525, -0.00901526678353548, -0.0010720102582126856, -0.008847578428685665, 0.0025093425065279007, 0.011267087422311306, 0.02355627715587616, -0.014013988897204399, 0.02085728757083416, 0.006164558231830597, 0.005154433194547892, 0.0004132330068387091, 0.003367749275639653, -0.02582406811416149, -0.0033178417943418026, 0.01985115557909012, -0.021559983491897583, 0.048901237547397614, -0.019244281575083733, -0.019052637740969658, -0.017407691106200218, 0.012113516218960285, 0.007577934768050909, -0.018813081085681915, 0.021639835089445114, 0.011698286980390549, -0.012560687027871609, -0.015810653567314148, 0.022007152438163757, 0.0006987031665630639, 0.008879519067704678, 0.0191644299775362, 0.009662066586315632, 0.0029505237471312284, -0.02409926988184452, -0.00356538244523108, 0.008655933663249016, -0.01550721749663353, 0.0006303300615400076, -0.02018653228878975, 0.011514628306031227, -0.018637407571077347, 0.004719240590929985, -0.013606744818389416, 0.019739363342523575, -0.02312507852911949, -0.02633512020111084, -0.012329116463661194, 0.04676120728254318, -0.012959945946931839, 0.0028008015360683203, -0.019244281575083733, 0.03198862820863724, 0.00740625336766243, 0.016992460936307907, -0.03606106713414192, 0.00356538244523108, -0.008156860247254372, -0.04490864649415016, 0.014820491895079613, -0.005553692113608122, 0.014381307177245617, -0.005829180590808392, 0.01731186732649803, 0.027612749487161636, -0.0101571474224329, -0.01632969081401825, 0.003475549165159464, 0.0031341826543211937, -0.02136833965778351, -0.0109317097812891, 0.020697584375739098, -0.03896767273545265, -0.006827327888458967, 0.005230292212218046, -0.003146160626783967, 0.012065605260431767, 0.024386737495660782, 0.01097962073981762, -0.014596907421946526, -0.021001020446419716, 0.006408106070011854, -0.025041520595550537, -0.008903474546968937, -0.007038935087621212, 0.01651334948837757, -0.02052191086113453, 0.010516480542719364, 0.010189088061451912, -0.00824070442467928, -0.004008559975773096, 0.0003802941646426916, -0.026941994205117226, -0.026686469092965126, 0.029257696121931076, -0.0026530756149441004, -0.0021919317077845335, -0.0031122234649956226, -0.025584513321518898, -0.021512072533369064, 0.0014942266279831529, 0.03762616217136383, -0.020889228209853172, -0.037274815142154694, 0.014293470419943333, 0.027580808848142624, 0.012672479264438152, -0.04660150408744812, 0.020713554695248604, 0.015459306538105011, -0.02700587548315525, 0.013646670617163181, -0.03309058025479317, -0.03181295469403267, -0.007478120271116495, -0.04123546555638313, 0.004284048452973366, 0.005825188010931015, 0.03906349465250969, -0.005972913932055235, 0.011179250665009022, -0.0336974561214447, -0.02039414644241333, 0.015563113614916801, -0.005813210271298885, 0.039670370519161224, 0.036380477249622345, 0.015595054253935814, -0.0027269385755062103, 0.00011428787547629327, 0.003249967936426401, 0.035581957548856735, -0.012712405063211918, -0.00013412605039775372, 0.0021220613270998, -0.03868020698428154, 0.023332692682743073, 0.0271336380392313, -0.030008303001523018, -0.00245943502523005, -0.000846928043756634, 0.03535837307572365, -0.01946786604821682, -0.0049068923108279705, -0.02347642555832863, 0.0196754802018404, -0.008839593268930912, 0.0147885512560606, 0.003078286536037922, -0.01643349789083004, 0.030327709391713142, 0.009885651990771294, 0.018046503886580467, -0.0244346484541893, -0.0068632615730166435, 0.037147052586078644, -3.290767199359834e-05, -0.013247411698102951, -0.01070014014840126, -0.04200204089283943, -0.020745495334267616, 0.03896767273545265, -0.01828606054186821, 0.014884374104440212, 0.00035783584462478757, 0.015068032778799534, -0.012560687027871609, 0.019403984770178795, -0.016992460936307907, 0.002217883476987481, 0.011235146783292294, 0.0018505651969462633, 0.0061685508117079735, -0.01244889385998249, -0.0005100533016957343, -0.015730801969766617, 0.006268365308642387, 0.018477704375982285, -0.015850581228733063, -0.016960520297288895, 0.005585632752627134, 0.04053276777267456, 0.01972339302301407, 0.030439501628279686, -0.0008374456665478647, -0.01314360462129116, 0.004236137494444847, 0.009821769781410694, 0.03227609395980835, -0.030854731798171997, -0.0393509604036808, -0.011322983540594578, 0.004759166855365038, -0.005928995553404093, 0.022981345653533936, 0.007797527126967907, -0.0403730645775795, -0.0033158455044031143, -0.02574421651661396, -0.022390441969037056, -0.03194071725010872, -0.014604892581701279, 0.004659351892769337, -0.006639676168560982, -0.032132361084222794, 0.00451961113139987, 0.022278649732470512, -0.03868020698428154, 0.018940845504403114, 0.018733229488134384, 0.0010999584337696433, 0.03647629916667938, -0.005517758894711733, -0.019020697101950645, -0.0003131687408313155, -0.008053053170442581, -0.031956687569618225, -0.014141752384603024, -0.0025073462165892124, 0.01795068196952343, 0.011770153418183327, -0.010684169828891754, 0.008671903982758522, -0.004515618551522493, -0.008871533907949924, 0.021384309977293015, -0.023364633321762085, 0.011171265505254269, 0.00819279346615076, 0.015850581228733063, -0.012488819658756256, 0.03535837307572365, -0.010795962065458298, -0.008041075430810452, -0.01137887965887785, -0.01535549946129322, 0.010205058380961418, 0.02111281268298626, 0.028012007474899292, -0.012089560739696026, -0.022997315973043442, -0.017806949093937874, -0.037690043449401855, -0.011283057741820812, -0.009342659264802933, 0.018110385164618492, 0.011314998380839825, -0.029976362362504005, 0.011171265505254269, -0.01934010349214077, -0.0159464031457901, 0.008927430026233196, 0.011434776708483696, 0.005142455454915762, 0.016401557251811028, 0.0026331127155572176, -0.00781749002635479, -0.01346301194280386, -0.012161427177488804, -0.0008604030590504408, -0.007865400984883308, 0.01165037602186203, 0.02026638388633728, 0.0054099587723612785, 0.02651079371571541, -0.03947872668504715, 0.019563687965273857, 0.02195924147963524, 0.020026829093694687, -0.0347195565700531, -0.0069351280108094215, 0.02090519852936268, -0.0008564104209654033, -0.007893349044024944, -0.013399130664765835, -0.03205250948667526, 0.02191133052110672, -0.006639676168560982, 0.009190941229462624, 0.014588922262191772, 0.0070828539319336414, -0.02127251774072647, 0.007086846511811018, 0.024578381329774857, -0.02103296108543873, 0.017407691106200218, -0.0020741501357406378, -0.01030088122934103, -0.022997315973043442, 0.004052478354424238, 0.041395168751478195, 0.034368209540843964, -0.0321483314037323, -0.005641528870910406, 0.01735977828502655, 0.018892932683229446, -0.008831608109176159, -0.019707422703504562, -0.010069310665130615, -0.06432860344648361, 0.04883735626935959, -0.004998722113668919, -0.007893349044024944, 0.024003447964787483, -0.0029804680962115526, 0.010684169828891754, 0.01558706909418106, -0.005194358993321657, -0.020026829093694687, 0.008232719264924526, 0.004032515455037355, -0.02144819125533104, 0.03331416845321655, 0.01428548526018858, 0.017184104770421982, 0.026175417006015778, -0.03016800619661808, 0.025632424280047417, 0.010173117741942406, -0.01196978334337473, -0.0073822978883981705, -0.022182827815413475, 0.030535325407981873, 0.005960936192423105, 0.011115369386970997, -0.006927142851054668, 0.0003196566831320524, 0.009869681671261787, 0.0017427653074264526, -0.002068161265924573, -0.0023436499759554863, 0.009813784621655941, 0.0031800975557416677, -0.022725818678736687, -0.0046074483543634415, -0.01836591213941574, -0.013175545260310173, 0.04516417160630226, -0.026399001479148865, -0.015547143295407295, 0.03299475833773613, -0.01055640634149313, 0.029337547719478607, 0.022741788998246193, -0.015579083934426308, 0.01815829798579216, 0.037562280893325806, 0.003607304533943534, 0.024594351649284363, -0.02620735764503479, -0.028203653171658516, -0.011834035627543926, 0.0067195282317698, 0.018302030861377716, 0.0061326175928115845, 0.002930560614913702, -0.007234571967273951, 0.0432157889008522, -0.020841317251324654, 0.003381723305210471, 0.014996166341006756, -0.0005195357371121645, 0.009622140787541866, 0.003593330504372716, -0.044940587133169174, 0.023141048848628998, -0.02363613061606884, 0.03150951489806175, 0.01101954746991396, -0.037019290030002594, 0.020042799413204193, 0.013662640936672688, 0.011003576219081879, 0.006340232212096453, 0.01681678742170334, 0.019611598923802376, -0.013255396857857704, 0.010708125308156013, 0.022773729637265205, -0.013638685457408428, -0.006679602432996035, -0.015459306538105011, 0.0012646527029573917, -0.0019633558113127947, -0.018349941819906235, -0.021144753322005272, -0.030774880200624466, 0.01777500845491886, -0.029129933565855026, 0.006176535971462727, -0.0200587697327137, 0.02350836619734764, -0.007861408405005932, 0.00506659597158432, -0.0034495973959565163, 0.02350836619734764, 0.0014523044228553772, 0.005334099754691124, -0.044046249240636826, -0.004898907151073217, 0.03868020698428154, -0.01887696236371994, -0.020330265164375305, -0.0380733348429203, -0.01694454997777939, -0.004827040713280439, 0.0007076864712871611, 0.0023576240055263042], "id": 29}, {"title": "MP4 (disambiguation)", "text": "MP4 is MPEG-4 Part 14, a file format.MP4 may also refer to: M\u00f8ller\u2013Plesset perturbation theory of the fourth order in computational chemistry Mario Party 4, a video game for Nintendo GameCube MP4 (band), a band made up of UK Members of Parliament Mammal Paleogene zone 4, a division of the Paleogene period McLaren MP4/1, the McLaren team's Formula One car MP4: Days Since a Lost Time Accident, the fourth album by Michael Penn", "vector": [-0.02004411444067955, 0.057410698384046555, -0.030754586681723595, 0.03198733180761337, -0.028945494443178177, -0.00789677258580923, -0.07326027750968933, 0.009349650703370571, 0.018571224063634872, 0.036502059549093246, 0.04831720143556595, 0.008765297941863537, 0.043674394488334656, 0.0197239201515913, -0.029137609526515007, -0.030226267874240875, -0.06864949315786362, 0.023214029148221016, 0.0016279838746413589, 0.03169915825128555, -0.026271877810359, -0.023053932934999466, -0.03458090126514435, 0.0016089724376797676, -0.012423508800566196, 0.009429698809981346, 0.043482281267642975, 0.004546748008579016, -0.02667211927473545, 0.02596769481897354, 0.001192720839753747, -0.003071856452152133, 0.04101679101586342, 0.007212358992546797, -0.012599614448845387, -0.001095662242732942, 0.057955026626586914, -0.008901380002498627, 0.02745659463107586, 0.018010884523391724, 0.00537124602124095, 0.0030478420667350292, -0.030130209401249886, 0.011414898559451103, 0.014208586886525154, 0.016345879063010216, 0.0036021771375089884, 0.0006163725047372282, 0.0003141898778267205, -0.014480751939117908, 0.006980218458920717, 0.02713640034198761, -0.05808310583233833, 0.011975237168371677, 0.012495552189648151, -0.011422903276979923, 0.03566955775022507, 0.057058483362197876, -0.0003084363997913897, -0.06704851984977722, -0.009141525253653526, -0.015073109418153763, 0.017962856218218803, -0.00692418497055769, 0.0026776182930916548, 0.0019801966845989227, 0.05395260825753212, -0.017962856218218803, 0.005855538882315159, 0.012263411656022072, 0.035861674696207047, 0.03281983733177185, -0.005535345524549484, 0.024590862914919853, -0.014688877388834953, -0.03621388599276543, 0.02649601362645626, 0.04620392620563507, 0.009685853496193886, 0.06730467826128006, 0.008565176278352737, -0.011478937231004238, -0.02121281996369362, 0.03573359549045563, -0.010806531645357609, 0.007800714578479528, 0.0025635494384914637, -0.08491531759500504, 0.00788876786828041, 0.018475165590643883, 0.022845806553959846, 0.0383271649479866, 0.031170839443802834, 0.06147715449333191, 0.08690051734447479, -0.051134902983903885, 0.024190619587898254, 0.014929022639989853, 0.02760068140923977, -0.029633909463882446, 0.00693619204685092, 0.008260992355644703, 0.043354202061891556, 0.04149708151817322, 0.03947985917329788, -0.010678453370928764, 0.030978722497820854, 0.012543581426143646, 0.012743702158331871, 0.028497222810983658, -0.0011216779239475727, 0.018667282536625862, -0.015361283905804157, 0.015057099983096123, -0.01998007483780384, 0.04156111925840378, -0.049726054072380066, -0.04079265519976616, -0.05241568014025688, 0.017354488372802734, -0.005895562935620546, -0.03477301448583603, -0.0022253450006246567, 0.0038443233352154493, -0.04133698344230652, 0.03906361013650894, 0.0017090329201892018, 0.018283050507307053, -0.0023654296528548002, 0.0016169772716239095, -0.0416891947388649, 0.050270382314920425, 0.024478795006871223, -0.01630585454404354, 0.016457946971058846, 0.057698871940374374, -0.03454887866973877, -0.012551586143672466, 0.03842322155833244, 0.03230752423405647, -0.0211647916585207, 0.006868151016533375, 0.02588764578104019, 0.009357655420899391, -0.016650062054395676, -0.03477301448583603, 0.0043866513296961784, 0.06272590905427933, 0.011550981551408768, 0.04703642800450325, -0.023934464901685715, -0.06003628298640251, -0.007028247695416212, -0.0396079383790493, 0.02598370425403118, 0.03422868624329567, -0.0026916267815977335, 0.016537996008992195, -0.04956595599651337, -0.03781485557556152, 0.03387647494673729, -0.015137148089706898, 0.0128557700663805, 0.018715310841798782, 0.05228760093450546, -0.01348014734685421, 0.0279528945684433, -0.029281696304678917, 0.014040485955774784, 0.021420946344733238, 0.009565780870616436, -0.021917246282100677, 0.09804325550794601, -0.031330935657024384, -0.016858188435435295, -0.06154119223356247, -0.0028116994071751833, 0.07089084386825562, -0.024847017601132393, 0.006059662438929081, -0.0017690692329779267, -0.018186992034316063, 0.022445565089583397, -0.018651273101568222, -0.018379107117652893, -0.02082858793437481, 0.013207982294261456, 0.018555214628577232, 0.03778283670544624, -0.0073964702896773815, 0.005739468615502119, -0.006503930781036615, 0.0836985856294632, -0.018363097682595253, 0.08779706060886383, 0.0006193743320181966, -0.04629998281598091, -0.007756688166409731, 0.004214547108858824, 0.01967589184641838, 0.0018801363185048103, -0.037270523607730865, 0.022285468876361847, 0.03317204862833023, 0.044314783066511154, 0.028785396367311478, -0.011310836300253868, 0.031426992267370224, 0.0402483232319355, 0.006227763835340738, 0.029842035844922066, -0.02135690674185753, 0.03349224105477333, 0.01592162251472473, 0.06182936951518059, -0.010286216624081135, -0.03861533850431442, 0.024222640320658684, 0.04620392620563507, -0.02625586837530136, 0.06826525926589966, 0.022109363228082657, -0.022429555654525757, 0.0017630655784159899, -0.02734452672302723, 0.008397075347602367, -0.05949195474386215, 0.0383271649479866, -0.02113277278840542, 0.0019111550645902753, -0.02636793628334999, 0.02689625509083271, -0.0060956841334700584, -0.011198768392205238, -0.02638394571840763, 0.06832929700613022, 0.01007809117436409, 0.007180339656770229, 0.023117972537875175, 0.03381243720650673, -0.024366727098822594, -0.036502059549093246, -0.015561404637992382, 0.01901949569582939, 0.01372829731553793, 0.0551053024828434, 0.002021221676841378, 2.8063835998182185e-05, -0.04498719051480293, -0.006543954834342003, 0.007300412282347679, 0.018379107117652893, -0.02588764578104019, 0.021885227411985397, 0.008581186644732952, 0.004084468353539705, 0.0421694852411747, 0.02604774199426174, -0.0007969816797412932, -0.037174466997385025, -0.04678027331829071, -0.015697486698627472, -0.05923580005764961, -0.03403656929731369, 0.01905151456594467, -0.036598119884729385, 0.007520545274019241, 9.424446034245193e-05, -0.03198733180761337, 0.014977051876485348, 0.022141382098197937, -0.00499501870945096, 0.04780489206314087, -0.03254767134785652, -0.012815745547413826, 0.0037102424539625645, -0.031218867748975754, 0.024927064776420593, 0.038199085742235184, 0.011382879689335823, -0.008717268705368042, 0.08728475123643875, -0.028545251116156578, -0.021949265152215958, -0.012047281488776207, 0.010702468454837799, -0.007292407564818859, 0.004254571162164211, -0.015505370683968067, 0.04012024775147438, 0.024558842182159424, -0.012023266404867172, 0.01632186397910118, 0.017290450632572174, -0.02134089730679989, 0.016698092222213745, -0.024734949693083763, 0.08062472939491272, 0.05609790235757828, 0.04678027331829071, -0.04028034582734108, 0.03557350113987923, -0.0038863488007336855, -0.02721644937992096, 0.03557350113987923, 0.07332431524991989, 0.005559360142797232, -0.005543350242078304, -0.009237582795321941, -0.05315212532877922, 0.018763341009616852, -0.029890064150094986, -0.025407355278730392, 0.05321616306900978, -0.021949265152215958, -0.04044044017791748, -0.036502059549093246, -0.04082467406988144, -0.07543759047985077, 1.098320080927806e-05, -0.02598370425403118, 0.02756866253912449, -0.024430764839053154, 0.01577753573656082, 0.0316191092133522, -0.05356837436556816, -0.029393764212727547, -0.0050150309689342976, -0.0400882288813591, 0.03867937624454498, -0.06432687491178513, -0.02689625509083271, 0.037718795239925385, 0.029313717037439346, 0.03205136954784393, -0.016858188435435295, 0.006247776094824076, 0.006455902010202408, 0.024398745968937874, -0.010182153433561325, 0.008485128171741962, 0.03134694695472717, 0.07562971115112305, 0.02590365521609783, 0.014929022639989853, 0.00472285458818078, 0.009221573360264301, -0.016938237473368645, -0.017658673226833344, -0.02122882939875126, 0.0008920390973798931, -0.01957983337342739, 0.023742349818348885, 0.023982495069503784, 0.0006203749217092991, -0.003972400911152363, -0.030946703627705574, -0.03378041461110115, 0.024430764839053154, 0.02030026912689209, -0.0010756500996649265, -0.017994875088334084, 0.014240606687963009, -0.04546748101711273, 0.007576579228043556, 0.009565780870616436, -0.018859397619962692, 0.023166000843048096, 0.011895189061760902, -0.009117510169744492, -0.0018651272403076291, -0.02620784007012844, -0.02006012387573719, 0.022189410403370857, -0.0410488098859787, 0.02002810500562191, 0.023262059316039085, 0.005899565760046244, -0.022269459441304207, 0.013215987011790276, -0.03397253155708313, 0.04690834879875183, 0.042489681392908096, -0.037622738629579544, -0.009309626184403896, 0.003950387705117464, -0.01397644728422165, -0.008693253621459007, -0.010158139280974865, 0.0030558467842638493, 0.00667603500187397, 0.0420093908905983, -0.007180339656770229, -0.04543545842170715, -0.025919664651155472, 0.023518214002251625, -0.009077486582100391, -0.001904150820337236, -0.029297707602381706, -0.037014368921518326, 0.03259570151567459, -0.0194037277251482, -0.0018881411524489522, 0.024126581847667694, -0.003570157801732421, 0.015881597995758057, -0.018138961866497993, -0.06221359968185425, -0.011182758957147598, -0.013288031332194805, 0.03807101026177406, 0.0032719774171710014, 0.04562757536768913, -0.03410061076283455, 0.0002574055688455701, -0.03310801088809967, -0.02721644937992096, 0.014336665160953999, -0.00789677258580923, 0.008677244186401367, 0.04213746637105942, 0.029409773647785187, 0.024158600717782974, -0.001530925277620554, 0.03384445607662201, 0.07332431524991989, 0.030658530071377754, 0.0004455192538443953, 0.0029117597732692957, 0.015689482912421227, 0.0021933256648480892, -0.023646291345357895, 0.009101500734686852, 0.012015261687338352, 0.04242563992738724, -0.01031023170799017, -0.015801550820469856, -0.013584209606051445, -0.03155507147312164, -0.0013978448696434498, -0.03592571243643761, 0.050814710557460785, -0.005255176220089197, 0.037558700889348984, -0.00509908189997077, -0.01336007472127676, 0.015681477263569832, -0.04902162775397301, 0.0018100939923897386, 0.006119698751717806, 0.025423364713788033, -0.011198768392205238, -0.04172121360898018, 0.008341041393578053, 0.0277927964925766, 0.03925572335720062, 0.029601890593767166, -0.013664258643984795, -0.0005378250498324633, -0.025151200592517853, 0.006595986429601908, 0.02007613331079483, 0.07434893399477005, -0.029970113188028336, 0.02744058519601822, -0.09477727860212326, -0.0808168426156044, 0.02662409096956253, -0.0027496619150042534, -0.003742261789739132, -0.04117688536643982, -0.05372847244143486, 0.010550376027822495, 0.005391258280724287, -0.010134125128388405, -0.049437880516052246, -0.002731650834903121, -0.011262807063758373, 0.003009818959981203, -0.007984825409948826, 0.04066457599401474, 0.022013304755091667, -0.02792087383568287, -0.006115696392953396, -0.017050305381417274, 0.006503930781036615, 0.024334706366062164, -0.037558700889348984, 0.017306460067629814, -0.006315817125141621, 0.043994590640068054, -0.0656396746635437, 0.03310801088809967, -0.00960580538958311, -0.006003628484904766, 0.04018428549170494, -3.223823296139017e-05, -0.013424113392829895, 0.03352425992488861, 0.018667282536625862, -0.005547352600842714, -0.02737654559314251, -0.00670004915446043, 0.04681229218840599, 0.010270207189023495, -0.0277127493172884, 0.001817098236642778, -0.04754873737692833, -0.012439518235623837, 0.036117829382419586, -0.015177172608673573, 0.022877827286720276, -0.018843388184905052, 0.03909562900662422, -0.0038803452625870705, -0.011807136237621307, 0.030402373522520065, 0.02095666527748108, -0.02811299078166485, 0.016714101657271385, 0.0018000879790633917, 0.04594777151942253, -0.009389675222337246, 0.021420946344733238, -0.04149708151817322, -0.02006012387573719, -0.02734452672302723, -0.0383271649479866, 0.015217197127640247, 0.006291802506893873, -0.0019131562439724803, 0.015441332012414932, 0.023774368688464165, 0.01398445200175047, -0.03297993168234825, -0.00011175504187121987, -0.005987618584185839, 0.03368435800075531, 0.0028036944568157196, 0.001049634418450296, -0.03221146762371063, 0.017050305381417274, 0.013344064354896545, 0.022829797118902206, -0.02625586837530136, 0.0020752542186528444, 0.009205563925206661, -0.02081257849931717, -0.0008995436364784837, 0.011166748590767384, 0.02017219178378582, 0.015177172608673573, 0.021949265152215958, 0.017194392159581184, 0.02630389668047428, 0.01921161077916622, 0.013047886081039906, 0.01359221525490284, 0.03560552000999451, 0.011238791979849339, 0.024911055341362953, -0.01314394362270832, -0.018186992034316063, 0.039768036454916, -0.01937170699238777, 0.025647500529885292, -0.06246975436806679, -0.0070482599548995495, -0.022589651867747307, -0.036566101014614105, 0.014168563298881054, -0.011855164542794228, 0.037494659423828125, 0.002775677479803562, 0.03323608636856079, 0.00031243881676346064, 0.004306602757424116, 0.016810160130262375, -0.02105272375047207, -0.0060996864922344685, 0.007152322679758072, -0.01060640998184681, 0.007860750891268253, 0.029345735907554626, -0.007180339656770229, 0.007016240619122982, -0.008493132889270782, 0.004934982396662235, -0.07037853449583054, 0.0015709494473412633, 0.00694819912314415, -0.00046453074901364744, -0.021901236847043037, -0.002939776750281453, -0.0009830942144617438, -0.0022853813134133816, 0.017370497807860374, -0.02752063237130642, 0.03346022218465805, 0.023838406428694725, -0.01359221525490284, 0.025071151554584503, -0.042745836079120636, 0.012847764417529106, -0.005607388913631439, 0.022957874462008476, 0.01951579563319683, -0.011647039093077183, -0.01914757303893566, 0.050334420055150986, 0.014985056594014168, -0.030674539506435394, 0.03842322155833244, 0.025743559002876282, -0.012407498434185982, 0.007836736738681793, -0.022909846156835556, -0.015185177326202393, 0.017722710967063904, -0.04930980131030083, 0.023230040445923805, -0.0025195227935910225, 0.07556567341089249, 0.010638429783284664, -0.017098333686590195, 0.00248950463719666, 0.011502952314913273, 0.013832359574735165, 0.03192329406738281, -0.02676817774772644, -0.010942613705992699, -0.011871174909174442, 0.008749287575483322, -0.02006012387573719, 0.04127294570207596, -0.016682082787156105, 0.014953036792576313, -0.043642375618219376, -0.02129286900162697, 0.016057705506682396, -0.013183968141674995, -0.031058771535754204, -0.015353279188275337, 0.02697630412876606, -0.012079300358891487, 0.023198019713163376, 0.00042700808262452483, -0.016650062054395676, -0.0004630298353731632, -0.04293794929981232, -0.050334420055150986, -0.030482422560453415, -0.007832733914256096, 0.018491175025701523, -0.006203749217092991, -0.007848743349313736, 0.003071856452152133, -0.001076650689356029, 0.010782516561448574, -0.009797921404242516, -0.018170982599258423, 0.005895562935620546, -0.02066849172115326, 0.02785683609545231, -0.029649918898940086, -0.0005263180937618017, -0.01999608427286148, -0.024462785571813583, -0.0312989167869091, 0.04847729951143265, 0.013952432200312614, 0.004646808374673128, 0.03627792373299599, 0.002255363157019019, 0.005455296952277422, -0.03627792373299599, -0.04149708151817322, 0.0011336851166561246, 0.0009270603186450899, 0.022189410403370857, 0.02012416161596775, -0.007456506602466106, -0.036117829382419586, 0.02635192684829235, -0.014616833999752998, 0.018395118415355682, -0.012247402220964432, 0.015273231081664562, -0.017770739272236824, -0.028929485008120537, 0.008525152690708637, -0.009901984594762325, 0.009125514887273312, 0.01921161077916622, -0.01949978433549404, -0.018603242933750153, -0.0008915388025343418, -0.023166000843048096, 0.0032459618523716927, -0.014816954731941223, 0.008373060263693333, -0.02739255502820015, -0.016409918665885925, -0.006155720446258783, -0.01314394362270832, -0.013207982294261456, -0.0050870743580162525, -0.015377293340861797, 0.044666994363069534, -0.029105590656399727, 0.01020616851747036, 0.043290164321660995, -0.01324000209569931, 0.03217944875359535, -0.014072504825890064, 0.01980396918952465, -0.002669613342732191, -0.0399281308054924, -0.0019912035204470158, 0.002091263886541128, 0.037750814110040665, 0.017994875088334084, -0.02002810500562191, 0.05910772457718849, -0.0023053933400660753, 0.028769386932253838, -0.013175963424146175, -0.024350717663764954, -0.0053512342274188995, 0.0038783440832048655, -0.0637185126543045, 0.024174610152840614, -0.025071151554584503, 0.0038863488007336855, 0.02159705199301243, 0.06202148273587227, -0.03163512051105499, 0.006199746858328581, -0.017354488372802734, 0.014464742504060268, 0.02694428525865078, -0.023886436596512794, 0.04588373005390167, 0.011222782544791698, -0.0019942051731050014, -0.01047833263874054, 0.07486124336719513, -0.0022253450006246567, -0.009189553558826447, 0.006483918521553278, 0.015161163173615932, -0.028353136032819748, 0.042809873819351196, -0.03238757327198982, -0.00200020894408226, 0.0014228599611669779, 0.016906218603253365, 0.015393303707242012, -0.0074645113199949265, -0.0005688437959179282, -0.0038643355946987867, -0.030482422560453415, -0.025711540132761, -0.018875407055020332, -0.04774085432291031, -0.036438021808862686, 0.01008609589189291, -0.007648622617125511, -0.003067854093387723, 0.03515724837779999, 0.012815745547413826, -0.01373630203306675, -0.010870570316910744, -0.0008530155173502862, -0.00341006089001894, -0.00014971548807807267, -0.03166713938117027, -0.006772093009203672, 0.0064478968270123005, 0.008277002722024918, -0.036950331181287766, -0.006499928422272205, -0.022605663165450096, -0.00048154103569686413, 0.008180944249033928, -0.02752063237130642, 0.008637219667434692, -0.008076881058514118, -0.023550232872366905, 0.02122882939875126, 0.029009532183408737, 0.03413262963294983, -0.040888711810112, -0.02017219178378582, 0.01073448732495308, -0.0019962063524872065, -0.006836131680756807, 0.007668634876608849, -0.008901380002498627, 0.022541623562574387, -0.004590774420648813, 0.03925572335720062, 0.035861674696207047, -0.02121281996369362, -0.018379107117652893, -0.01008609589189291, 0.023502204567193985, -0.03890351206064224, -0.015753520652651787, -0.037206485867500305, -0.014432722702622414, 0.03371637687087059, 0.02001209557056427, -0.044442858546972275, 0.003576161339879036, -0.015881597995758057, 0.0007329429499804974, 0.00982994120568037, 0.025519423186779022, 0.018475165590643883, 0.023646291345357895, -0.010150134563446045, 0.0033800427336245775, 0.014416713267564774, 0.04044044017791748, -0.013560195453464985, 0.036630138754844666, 0.011855164542794228, 0.018154973164200783, 0.0019241629634052515, 0.011462927795946598, -0.02135690674185753, -0.02798491343855858, -0.015681477263569832, -0.0013598218793049455, 0.014640848152339458, -0.003634196473285556, -0.0033280113711953163, -0.006271790713071823, 0.02678418718278408, -0.017786750569939613, 0.024654900655150414, -0.024078551679849625, -0.024286678060889244, -0.007300412282347679, -0.02002810500562191, 0.011566990986466408, 0.014905008487403393, 0.02046036534011364, 0.028945494443178177, 0.015977656468749046, -0.022157391533255577, 0.01359221525490284, 0.002327406546100974, 0.008757292293012142, -0.028961503878235817, 0.011703073047101498, -0.024526823312044144, -0.0023694320116192102, 0.005875551141798496, 0.0197239201515913, -0.0015909615904092789, -0.007108296267688274, 0.010790521278977394, -0.01938771829009056, 0.010270207189023495, 0.03291589394211769, -0.04197736829519272, -0.009309626184403896, -0.021500995382666588, 0.022413546219468117, 0.02031627856194973, -0.003974401857703924, 0.04658815637230873, -0.050622593611478806, 0.005307207349687815, -0.030066171661019325, 0.03174718841910362, 0.05561761558055878, 0.04191333055496216, 0.044506900012493134, -0.001674011698924005, 0.03265973925590515, -0.022845806553959846, 0.0420093908905983, -0.00995001383125782, 0.02604774199426174, -0.012847764417529106, -0.03624590486288071, 0.03269175812602043, -0.005883555859327316, 0.006664027459919453, 0.01922762021422386, -0.022461574524641037, 0.035829655826091766, 0.009629820473492146, 0.02734452672302723, -0.021613063290715218, -0.05267183482646942, -0.04921374469995499, 0.017082324251532555, -0.02792087383568287, 0.02057243324816227, 0.018122952431440353, 0.004630798939615488, 0.014048490673303604, 0.009877970442175865, -0.010382275097072124, 0.012151343747973442, -0.02025224082171917, -0.015073109418153763, 0.0026415965985506773, -0.021629072725772858, -0.014416713267564774, 0.01326401624828577, -0.0029257682617753744, -0.0018371102632954717, 0.011142734438180923, 0.008156930096447468, 0.04863739386200905, -0.015737511217594147, -0.025103172287344933, 0.018859397619962692, 0.03839120268821716, 0.01019816379994154, -0.044218726456165314, 0.021693110466003418, 0.014953036792576313, 0.03317204862833023, -0.005487316288053989, -0.01980396918952465, 0.007032250054180622, 0.0097018638625741, -0.02058844268321991, 0.04626796394586563, 0.01033424586057663, 0.004782890435308218, -0.007160327397286892, 0.015217197127640247, -0.02635192684829235, 0.009765902534127235, 0.03176319599151611, 0.024638891220092773, 0.04018428549170494, 0.012487547472119331, 0.03342820331454277, -0.016730111092329025, 0.018122952431440353, -0.024126581847667694, -0.017130352556705475, 0.028177030384540558, -0.02644798532128334, 0.008821330964565277, -0.036438021808862686, -0.016169773414731026, 0.04850931838154793, -0.009029457345604897, -0.023198019713163376, -0.011727087199687958, 0.016457946971058846, 0.002014217432588339, -0.010430303402245045, 0.02691226452589035, 0.005539347883313894, 0.042745836079120636, 0.016714101657271385, -0.029906073585152626, 0.006952201947569847, -0.017258429899811745, -0.015081115067005157, 0.02041233703494072, -0.05475309118628502, 0.02752063237130642, 0.04796499013900757, 0.051871348172426224, 0.037334565073251724, 0.011815140955150127, -0.00657597417011857, -6.582103196706157e-06, 0.0035341358743608, 0.044859111309051514, -0.04015226662158966, 0.05978012830018997, -0.02814500965178013, -0.017418527975678444, 0.036758214235305786, 0.018491175025701523, 0.008429094217717648, 0.05260779336094856, 0.02644798532128334, -0.014184572733938694, -0.028945494443178177, 0.00957378651946783, -0.043578337877988815, 0.04678027331829071, 0.015217197127640247, -0.005915575195103884, -0.00667603500187397, 0.00485093193128705, 0.022637682035565376, -0.03320406749844551, -0.00035796634620055556, -0.006335829384624958, 0.010534366592764854, 0.012423508800566196, 0.028321117162704468, 0.0267521683126688, 0.0001440870837541297, -0.04127294570207596, 0.02583961747586727, -0.016121743246912956, -0.0020272252149879932, 0.005719456821680069, 0.024158600717782974, 0.04226554557681084, 0.002701632911339402, -0.026271877810359, 0.018379107117652893, 0.043130066245794296, 0.04034438356757164, -0.03426070511341095, -0.0018331079045310616, 0.012623629532754421, -0.012895793654024601, 0.01323199737817049, 0.023230040445923805, 0.005627401173114777, -0.015265226364135742, 0.01021417323499918, 0.008701259270310402, -0.014152553863823414, -0.011639034375548363, 0.012503556907176971, 0.021533014252781868, -0.012879784218966961, 0.023117972537875175, -0.002995810704305768, -0.018827378749847412, 0.003682225476950407, -0.044346801936626434, -0.00046102862688712776, -0.008421089500188828, -0.04988614842295647, 0.02729649655520916, 0.017434537410736084, -0.022349506616592407, -0.00679610762745142, -0.007252383045852184, 0.016634052619338036, -0.016730111092329025, 0.0017800758359953761, 0.015337269753217697, 0.014752916060388088, -0.022109363228082657, -0.0020112155470997095, 0.004806905053555965, 0.023166000843048096, -0.006607993505895138, 0.036726195365190506, 0.029521841555833817, 0.004690835252404213, -0.008901380002498627, 0.0056954422034323215, 0.0029657925479114056, 0.018875407055020332, -0.016073714941740036, 0.024654900655150414, 0.02764870971441269, -0.005323217250406742, -0.010022057220339775, -0.009797921404242516, -0.01633787341415882, -0.004334619734436274, -0.0004267579352017492, 0.007556566968560219, 0.0022893836721777916, -0.009653834626078606, -0.01398445200175047, 0.025615481659770012, -0.0039043596480041742, -0.03201935067772865, -0.002945780288428068, -0.0024014513473957777, 0.003516125027090311, -0.009037462063133717, -0.009141525253653526, 0.012015261687338352, -0.014961042441427708, -0.002041233703494072, 0.012655648402869701, -0.0019591841846704483, 0.016890207305550575, 0.008421089500188828, -0.00341006089001894, -0.02639995515346527, 0.03245161473751068, 0.013824354857206345, 0.0517432726919651, 0.04207342863082886, -0.013696277514100075, 0.010918598622083664, -0.05212750285863876, -0.00014871488383505493, 0.001863126060925424, 0.03349224105477333, -0.0016670074546709657, 0.024254659190773964, 0.02638394571840763, -0.013920413330197334, 0.015913616865873337, 0.008893375284969807, 0.04197736829519272, 0.01962786167860031, 0.008733278140425682, 0.022989895194768906, -0.015457342378795147, 0.004630798939615488, -0.002887745387852192, 0.016778139397501945, 0.011574995703995228, 0.0038223101291805506, 0.003618186805397272, -0.013207982294261456, -0.04245765879750252, 0.008565176278352737, -0.012823750264942646, 0.0039603933691978455, -0.003231953363865614, 0.0012917807325720787, 0.0202042106539011, 0.018283050507307053, -0.024350717663764954, -0.0022373523097485304, -0.011038671247661114, 0.004374643787741661, 0.003632195293903351, 0.00667603500187397, -0.022253450006246567, 0.015489361248910427, -0.017386507242918015, -0.015089119784533978, 0.007096288725733757, -0.05225558206439018, 0.02681620791554451, -0.012047281488776207, 0.006383858155459166, -0.03877543658018112, 0.022285468876361847, 0.0038643355946987867, 0.009525757282972336, 0.04207342863082886, 0.006059662438929081, 0.012519566342234612, -0.009157534688711166, 0.037398602813482285, -0.022381527349352837, -0.029761986806988716, -0.01400846615433693, 0.003978404216468334, 0.01609772816300392, 0.02646399475634098, -0.008317026309669018, -0.0009490735828876495, -0.0077486829832196236, -0.018186992034316063, -0.038167066872119904, 0.030002132058143616, -0.016265830025076866, 0.012527571059763432, 0.018795359879732132, -0.009269602596759796, 0.023774368688464165, -0.009909989312291145, -0.03378041461110115, 0.022397536784410477, -0.012735697440803051, -0.0405685193836689, -0.0202042106539011, -0.006299807224422693, -0.011342855170369148, 0.0015679476782679558, -0.008204959332942963, -0.023262059316039085, 0.029073571786284447, 0.02121281996369362, -0.012295431457459927, -0.011903193779289722, -0.017146361991763115, -0.01340009830892086, 0.014480751939117908, 0.030946703627705574, 0.005599384196102619, -0.024766968563199043, 0.006836131680756807, -0.029121600091457367, 0.02681620791554451, -0.021869217976927757, 0.014360679313540459, 0.0008019846864044666, 0.006455902010202408, 0.036117829382419586, -0.00200020894408226, -0.006732068490236998, 0.02680019661784172, -0.010150134563446045, 0.021773159503936768, 0.013960436917841434, -0.01010210532695055, 0.004578767344355583, -0.010974632576107979, -0.02681620791554451, 0.01959584280848503, -0.024158600717782974, -0.012335455045104027, 0.008252987638115883, -0.022029314190149307, -0.03531734645366669, 0.0001409601973136887, -0.012119324877858162, 0.003578162519261241, -0.015185177326202393, 0.009093496017158031, -0.0070602670311927795, -0.02649601362645626, -0.015569409355521202, 0.003237956902012229, 0.04159313812851906, -0.023566242307424545, 0.03525330498814583, -0.029569871723651886, -0.036309946328401566, -0.002339413855224848, -0.008429094217717648, 0.015993665903806686, 0.01362423412501812, 0.017194392159581184, 0.016345879063010216, -0.00027066358597949147, 0.016025684773921967, 0.010774511843919754, 0.014993061311542988, 0.0002819203946273774, -0.0024794985074549913, 0.0019361701561138034, -0.01617777720093727, 0.008925394155085087, 0.011863170191645622, 0.011342855170369148, 0.011198768392205238, -0.009045466780662537, -0.009021452628076077, 0.0030738578643649817, -0.017082324251532555, -0.012495552189648151, -0.023950474336743355, 0.00655996473506093, 0.015313254669308662, 0.0016630050959065557, 0.03595773130655289, 0.03342820331454277, 0.015721501782536507, -0.037558700889348984, -0.015457342378795147, -0.03336416557431221, -0.012287425808608532, 0.014280631206929684, -0.0021352905314415693, -0.029425784945487976, 0.006527945399284363, 0.022957874462008476, -0.009437703527510166, 0.02796890400350094, -0.004122491460293531, 0.0038883499801158905, -0.02667211927473545, -0.006423882208764553, 0.017738720402121544, -0.024078551679849625, 0.015513376332819462, 0.014560800045728683, 0.002277376363053918, -0.010678453370928764, 0.0023694320116192102, 0.010406289249658585, -0.007688646670430899, 0.017786750569939613, -0.010382275097072124, 0.016489965841174126, -0.0023314091376960278, 0.005059057381004095, -0.0003099373134318739, 0.0036021771375089884, -0.013464136980473995, 0.01031023170799017, -0.030642518773674965, 0.0007099290378391743, -0.000910550297703594, -0.0196438729763031, 0.017626652494072914, 0.014993061311542988, -0.03352425992488861, -0.024606872349977493, -0.03173117712140083, 0.03925572335720062, -0.002451481530442834, -0.02628788724541664, -0.02606375142931938, 0.0009260596707463264, 0.00799283105880022, 0.03166713938117027, -0.0038263124879449606, -0.005587376654148102, -0.024366727098822594, 0.01946776546537876, 0.003536137053743005, -0.0077326735481619835, 0.03365233913064003, -0.03842322155833244, -0.025199228897690773, -0.00961381010711193, -0.0035521467216312885, -0.04271381348371506, -0.05472107231616974, -0.00999003741890192, -0.011302831582725048, -0.006844136398285627, -0.008389069698750973, 0.018539205193519592, -0.018058914691209793, 0.014921017922461033, -0.03160310164093971, -0.03909562900662422, 0.044699013233184814, -0.0037582714576274157, -0.010702468454837799, 0.0024194621946662664, -0.02121281996369362, 0.0011216779239475727, -0.00242746714502573, -0.0032219472341239452, -0.00537124602124095, -0.0008710264228284359, -0.00017935839423444122, 0.003952388651669025, 0.014712892472743988, 0.010542371310293674, 0.01384836994111538, -0.014264620840549469, 0.016682082787156105, -0.04255371913313866, -0.014256616123020649, -0.0033140028826892376, -0.006235768552869558, 0.012207377701997757, 0.017866797745227814, 0.017962856218218803, 0.0005783495143987238, 0.01399245671927929, 0.0069281873293221, 0.03576561436057091, -0.012823750264942646, 0.010982637293636799, -0.0027056352701038122, -0.0013968441635370255, 0.008333036676049232, -0.006539952475577593, -0.010990642011165619, -0.08139318972826004, -0.010702468454837799, 0.02094065584242344, -0.04149708151817322, 0.04879749193787575, -0.03251565247774124, 0.012767716310918331, -0.0029918081127107143, 0.0016109736170619726, 0.008164934813976288, -0.005747473798692226, 0.015273231081664562, -0.008164934813976288, -0.012735697440803051, -0.008309021592140198, 0.04767681285738945, 0.0006784099969081581, -0.0012327450094744563, 0.028449194505810738, 0.008717268705368042, 0.04838123917579651, 0.0005158117273822427, -0.0011526966700330377, 0.004782890435308218, -0.0010526361875236034, 0.03163512051105499, -0.011286821216344833, 0.02082858793437481, -0.031122809275984764, -0.017802760004997253, 0.012191368266940117, -0.02572754956781864, 0.036662157624959946, -0.0006749078747816384, -0.0013518170453608036, 0.005303204990923405, -0.00800884049385786, -0.004610786680132151, 0.0019121556542813778, -0.008453109301626682, 0.0022433558478951454, -0.00510708661749959, 0.0023754355497658253, -0.036726195365190506, 0.021244840696454048, 0.011911198496818542, -0.015017076395452023, -0.04178525507450104, 0.02004411444067955, -0.023470185697078705, 0.050270382314920425, 0.004238561727106571, -0.006992226000875235, -0.028577271848917007, -0.03294791281223297, 0.023214029148221016, -0.036758214235305786, 0.03477301448583603, 0.010390279814600945, 0.03310801088809967, 0.013536181300878525, -0.0025235251523554325, 0.02667211927473545, -0.001426862319931388, 0.0028577272314578295, 0.005879553500562906, -0.010918598622083664, 0.0627579316496849, -0.02046036534011364, -0.023198019713163376, 0.017818769440054893, 0.006139710545539856, -0.0426497757434845, 0.005583374295383692, 0.003003815421834588, 0.03307599201798439, -0.017866797745227814, -0.016858188435435295, 0.006996228359639645, -0.009389675222337246, -0.05971609055995941, -0.03589369356632233, 0.0032199460547417402, -0.018411127850413322, -0.030930694192647934, -0.0031899278983473778, -0.009781911969184875, -0.012295431457459927, -0.0009280609083361924, -0.0020552421920001507, 1.7573120203451253e-05, -0.009629820473492146, 0.0158095546066761, -0.010518357157707214, -0.0128557700663805, 0.01302387099713087, -0.023342106491327286, -0.018523195758461952, 0.017370497807860374, -0.007640617899596691, 0.01325601153075695, 0.016778139397501945, -0.0018311067251488566, 0.011350859887897968, 0.04898960888385773, -0.012143339030444622, -0.006063664797693491, 0.018987474963068962, -0.028177030384540558, -0.03214742988348007, -0.009461718611419201, -0.03855130076408386, -0.00657197181135416, -0.01035025529563427, -0.0037322556599974632, -0.04098476842045784, 0.012399493716657162, 0.05404866486787796, 0.02073252946138382, -0.015769530087709427, 0.02111676335334778, 0.021773159503936768, 0.00472685694694519, 0.04060053825378418, -0.000482291477965191, -0.01376832090318203, 0.011799131520092487, -0.010286216624081135, -0.004682830069214106, 0.02622384950518608, 0.0033960524015128613, 0.022669700905680656, 0.001381835201755166, 0.006499928422272205, -0.03877543658018112, -0.012551586143672466, 0.0019531804136931896, -0.031074780970811844, 0.025391345843672752, -0.021549023687839508, -0.01624181680381298, 0.0009976029396057129, 0.005567364860326052, -0.008685248903930187, 0.03221146762371063, -0.037878893315792084, -0.006351838819682598, 0.007812721654772758, -0.051871348172426224, -0.005143108312040567, -0.017882807180285454, 0.03589369356632233, -0.00024314694746863097, 0.016281839460134506, 0.023534223437309265, -0.001387838739901781, -0.0035301335155963898, -0.019243629649281502, 0.014416713267564774, -0.007756688166409731, -0.00011000398080796003, 0.014376688748598099, -0.0017370497807860374, 0.009149529971182346, -0.015641452744603157, -0.01620979607105255, 0.007144317962229252, 0.006343834102153778, 0.010782516561448574], "id": 30}, {"title": "Cadore", "text": "Cadore (Ladin: Cad\u00f2r; Venetian: Cad\u00f2r or, rarely, Cad\u00f2ria; German: Cadober or Kadober; Sappada German: Kadour; Friulian: Cjadovri) is an historical region in the Italian region of Veneto, in the northernmost part of the province of Belluno bordering on Austria, the Trentino-Alto Adige/S\u00fcdtirol and Friuli-Venezia Giulia. It is watered by the Piave River poured forth from the Carnic Alps.", "vector": [-0.015382952056825161, 0.029189366847276688, -0.017014123499393463, 0.018606269732117653, 0.023975864052772522, -0.020760351791977882, -0.0171233881264925, -0.033934589475393295, -0.049637533724308014, 0.015297100879251957, -0.019199423491954803, 0.00024084642063826323, -0.058909449726343155, -0.05531931295990944, -0.03624476492404938, -0.03096882440149784, -0.05747339501976967, -0.03352874889969826, -0.0036408661399036646, -0.04145826771855354, 0.025365091860294342, 0.00854608416557312, 0.010044575668871403, -0.037712037563323975, 0.06462244689464569, 0.027566000819206238, 0.015921473503112793, 0.01765410415828228, -0.007258318364620209, 0.015749771147966385, 0.006083719432353973, -0.022742731496691704, -0.009108019061386585, -0.013939092867076397, 0.011519653722643852, 0.04907559975981712, -0.060501594096422195, -0.006454440299421549, 0.011761597357690334, 0.0259738527238369, -0.015617091208696365, -0.0178570244461298, 0.0363072007894516, 0.05044921487569809, -0.035058457404375076, -0.006411514710634947, 0.01629609614610672, 0.022805167362093925, -0.014149818569421768, -0.012378164567053318, -0.0287835244089365, -0.04732735827565193, -0.04024074226617813, 0.01865309849381447, -0.01304936408996582, 0.053914476186037064, 0.036681823432445526, 0.07061641663312912, -0.038867123425006866, -0.013174237683415413, 0.021556425839662552, -0.06237471103668213, -0.02795623242855072, -0.008210484869778156, 0.0124718202278018, 0.02570849470794201, -0.027581609785556793, 0.0383676253259182, -0.0051939901895821095, 0.012776201590895653, -0.003601843025535345, -0.018106773495674133, 0.012385969050228596, 0.04408062621951103, 0.01937112584710121, 0.03524576872587204, 0.00887387990951538, -0.009771413169801235, -0.0640605166554451, -0.020651087164878845, -0.012744982726871967, 0.0174199640750885, -0.006731505040079355, -0.04595373943448067, 0.0015287345740944147, -0.08816125243902206, 0.002472120802849531, -0.048638537526130676, -0.004370600450783968, 0.021572034806013107, -0.010528463870286942, 0.04383087903261185, -0.014664924703538418, -0.07492457330226898, -0.0652468204498291, -0.023897817358374596, -0.022805167362093925, -0.004027196206152439, 0.011246491223573685, 0.017341917380690575, -0.024631455540657043, 0.037680819630622864, 0.014742971397936344, 0.018309693783521652, 0.015468803234398365, 0.006485658697783947, -0.021478379145264626, -0.040958769619464874, -0.019652092829346657, 0.02381977252662182, 0.020994490012526512, -0.018840409815311432, 0.044798653572797775, -0.014040553942322731, -0.012893270701169968, -0.043706003576517105, 0.025052905082702637, -0.006766625680029392, -0.049699969589710236, -0.026161164045333862, -0.013783000409603119, -0.04704638943076134, -0.019402343779802322, -0.0191838126629591, 0.023757334798574448, -0.025614839047193527, 0.008881684392690659, 0.038180314004421234, -0.03060981072485447, 0.06824380159378052, -0.010903086513280869, -0.055132001638412476, -0.03007909655570984, -0.018465787172317505, -0.01126210018992424, -0.00664955610409379, 0.001985306153073907, 0.05497590824961662, 0.022040313109755516, 0.04342503473162651, -0.003547210479155183, -0.015094180591404438, -0.028112325817346573, -0.018934065476059914, -0.040490489453077316, -0.043674785643815994, -0.009006558917462826, 0.0481078214943409, 0.02378855273127556, 0.013509837910532951, 0.04617227241396904, 0.0078124478459358215, 0.0174199640750885, -0.012300117872655392, 0.0310000441968441, -0.04767076298594475, -0.003738424275070429, 0.002306272042915225, 0.04180166870355606, -0.025115342810750008, -0.018403349444270134, 0.03843006491661072, 0.03621354699134827, -0.002197007182985544, -0.01927747018635273, -0.03199903666973114, -0.0014897113433107734, -0.011301123537123203, -0.04186410829424858, 0.017872633412480354, -0.01533612422645092, 0.03465261682868004, 0.015780989080667496, -0.010239692404866219, -0.025333872064948082, -0.014298106543719769, 0.016108784824609756, -0.004214507527649403, -0.017903851345181465, -0.030531765893101692, 0.013517642393708229, -0.02928302250802517, 0.008577303029596806, -0.040552929043769836, 0.004569618962705135, 0.02043255604803562, 0.06462244689464569, 0.023804161697626114, 0.06662043929100037, 0.0030145435594022274, -0.031452711671590805, -0.024303659796714783, 0.0037637893110513687, -0.005186185706406832, -0.03702522814273834, -0.006302249617874622, -0.009014363400638103, -0.005353985354304314, 0.057317301630973816, 0.0717402845621109, -0.058316294103860855, 0.030750295147299767, 0.028377683833241463, 0.010044575668871403, -0.02692602016031742, 0.021603252738714218, -0.013697149232029915, -0.014618096873164177, 0.0211037565022707, -0.007367583457380533, 0.061094749718904495, -0.026613833382725716, 0.03821153566241264, 0.03090638853609562, -0.005982259288430214, 0.0017706784419715405, -0.029126929119229317, -1.3749586287303828e-05, -0.018262865021824837, 0.03537064418196678, -0.0070124720223248005, -0.017076559364795685, -0.031031262129545212, -0.03199903666973114, -0.00016645841242279857, -0.02033890038728714, -0.0287835244089365, 0.04348747432231903, 0.011878667399287224, 0.033903371542692184, -0.0036291591823101044, -0.03521455079317093, -0.02742551639676094, -0.01300253625959158, 0.023897817358374596, -0.02666066214442253, 0.008616326376795769, -0.04763954505324364, -0.01699851267039776, 0.002083839848637581, -0.03096882440149784, 0.051885269582271576, -0.015757575631141663, -0.051885269582271576, -0.00021853001089766622, 0.01735752634704113, -0.0026906507555395365, 0.0024916324764490128, 0.02010476216673851, -0.004206702578812838, 0.04954387620091438, 0.009365571662783623, 0.03271706402301788, -0.011371365748345852, -0.06549657136201859, -0.03430921211838722, -0.0035764777567237616, 0.023866599425673485, 0.024303659796714783, 0.02222762443125248, -0.03908565267920494, 0.025599230080842972, -0.022212015464901924, -0.019199423491954803, -0.020292073488235474, -0.02683236449956894, -0.04885706678032875, -0.02010476216673851, -0.024069519713521004, -0.039928555488586426, -0.010856258682906628, -0.022477373480796814, 0.02090083435177803, 0.01907454803586006, 0.026426522061228752, 0.05247842147946358, 0.03733741492033005, 0.03037567250430584, 0.03070346638560295, -0.0023004186805337667, 0.031452711671590805, -0.05606855824589729, -0.03331021964550018, -0.04757710546255112, -0.010856258682906628, -0.02146277017891407, -0.03252975270152092, 0.01835652068257332, 0.08341602981090546, -0.05478859692811966, -0.030188361182808876, 0.04454890638589859, 0.026676271110773087, -0.0460473969578743, 0.028705477714538574, -0.0369003526866436, -0.00173458200879395, -0.02553679421544075, -0.009451422840356827, -0.008944121189415455, -0.01904333010315895, -0.043144069612026215, -0.0009550932445563376, -0.005404715426266193, 0.03324778005480766, -0.014649315737187862, 0.013205456547439098, 0.0052720364183187485, 0.007172467187047005, -0.01053626835346222, -0.027737703174352646, 0.001163867418654263, -0.009279721416532993, -0.00597055209800601, 0.006860281806439161, 0.008553889580070972, -0.03196781873703003, 0.015624895691871643, -0.007652452681213617, 0.003779398510232568, -0.01251864805817604, -0.012666936032474041, -0.060595251619815826, -0.04439281299710274, 0.05759826675057411, -0.01382982823997736, 0.03515211492776871, -0.00764464819803834, 0.03952271491289139, 0.034996021538972855, -0.01567172445356846, 0.03430921211838722, 0.003002836601808667, 0.007535383105278015, -0.006083719432353973, 0.0053227669559419155, 0.004276944790035486, -0.008007564581930637, -0.0030086899641901255, -0.034371647983789444, -0.016311705112457275, 0.027706483379006386, 0.06031428277492523, 0.03179611638188362, -0.01653023436665535, 0.013408377766609192, 0.029204975813627243, 0.01361129805445671, 0.010208473540842533, 0.008241703733801842, 0.0006404685555025935, 0.005962747614830732, -0.07804643362760544, 0.042613353580236435, 0.04823269695043564, 0.018965283408761024, -0.05716120824217796, 0.00139508000575006, -0.032873157411813736, 0.026223601773381233, -0.012229876592755318, 0.011777207255363464, -0.05987722426652908, -0.02653578855097294, 0.0158668402582407, -0.026676271110773087, -0.01101235207170248, -0.0259738527238369, 0.00023413929739035666, 0.060564033687114716, -0.024584626778960228, -0.025552403181791306, -0.032873157411813736, 0.028408901765942574, 0.0010965523542836308, -0.011995736509561539, -0.005014483351260424, -0.0046008373610675335, 0.0023179790005087852, 0.016982903704047203, 0.02175934612751007, -0.05812898278236389, -0.06893061101436615, 0.0025423625484108925, 0.0007443678914569318, -0.015125398524105549, 0.02149398811161518, 0.023211009800434113, -0.018528223037719727, -0.020916445180773735, -0.04835757240653038, 0.04813903942704201, 0.046359583735466, 0.00849925633519888, 0.00955288391560316, 0.019995495676994324, -0.032841939479112625, 0.032311223447322845, 0.02411634847521782, 0.0001282888260902837, -0.01055187825113535, -0.029267413541674614, 0.020526211708784103, -0.000830218952614814, 0.05266573280096054, -0.0043901121243834496, 0.05972113087773323, -0.014063967391848564, -0.015952691435813904, 0.005275939125567675, -0.05260329693555832, -0.030859559774398804, 0.01304936408996582, 0.007547090295702219, 0.02219640649855137, -0.0389607809484005, 0.06911791861057281, 0.008101220242679119, -0.08541401475667953, -0.0018975039711222053, 0.013018145225942135, 0.0324673168361187, 0.016186829656362534, -0.01340057235211134, -0.01179281622171402, 0.011777207255363464, -0.008530475199222565, 0.023632461205124855, 0.02851816639304161, -0.01818481832742691, -0.005494468845427036, 0.0369003526866436, 0.07030422985553741, 0.06006453558802605, -0.017778977751731873, -0.016951685771346092, 0.03262341022491455, 0.014961501583456993, 0.04273822903633118, 0.047483451664447784, 0.013143019750714302, 0.0035237965639680624, 0.054070569574832916, 0.03043811023235321, -0.01629609614610672, -0.008257312700152397, 0.02040133811533451, -0.03618232533335686, 0.0327795036137104, -0.021868610754609108, -0.03312290832400322, -0.03889834135770798, -0.02225884236395359, -0.03677548095583916, 0.00960751622915268, -0.0219934843480587, 0.01841895841062069, 0.03380971401929855, 0.03462139889597893, -0.004799855872988701, -0.05038677901029587, 0.027300642803311348, 0.019761357456445694, -0.03961636871099472, 0.0009287525899708271, 0.008304140530526638, -0.00949044618755579, -0.009958725422620773, 0.01167574618011713, -0.008187071420252323, 0.0042964559979736805, 0.005592027213424444, -0.11045131087303162, 0.010754798538982868, -0.0071763694286346436, 0.013025949709117413, 0.028908399865031242, -0.042020201683044434, -0.01603073813021183, 0.010341152548789978, 0.013072777539491653, -0.016811201348900795, -0.025052905082702637, 0.00414816802367568, 0.010762603022158146, 0.012549866922199726, 0.037743255496025085, -0.022805167362093925, -0.04623470827937126, 0.035589173436164856, -0.018590660765767097, -0.0252402164041996, 0.02269590273499489, 0.008304140530526638, -0.039866119623184204, 0.015265882946550846, -0.0025794345419853926, -0.02311735413968563, -0.014649315737187862, 0.05332132428884506, -0.010684557259082794, 0.011168444529175758, 0.05444519221782684, 0.01626487635076046, 0.02666066214442253, 0.027675265446305275, -0.0022887117229402065, 0.010044575668871403, -0.021853001788258553, 0.04255091771483421, -0.005065213423222303, 0.03746228665113449, -0.015304905362427235, -0.014173232018947601, 0.012362555600702763, 0.006696383934468031, 0.03199903666973114, 0.012136220932006836, -0.05141698941588402, -0.010622119531035423, 0.028596213087439537, -0.013939092867076397, -0.047951728105545044, -0.006126645021140575, 0.049731187522411346, 0.02948594279587269, 0.009092409163713455, 0.03126540035009384, 0.039304185658693314, -0.06040794029831886, 0.002556020626798272, 0.03983490169048309, 0.012417187914252281, -0.02911132015287876, 0.024787547066807747, 0.010528463870286942, -0.009006558917462826, -0.0191838126629591, -0.02193104848265648, 0.0010809431551024318, -0.022883214056491852, 0.019230641424655914, 0.006072012707591057, 0.02527143619954586, -0.014961501583456993, 0.042113855481147766, -0.015476607717573643, -0.010497245006263256, -0.020198417827486992, -0.03843006491661072, 0.007574406452476978, 0.030453719198703766, -0.06843111664056778, 0.02453779987990856, 0.044798653572797775, 0.002784306649118662, -0.05478859692811966, 0.002540411427617073, -0.017435573041439056, 0.004998873919248581, 0.05154186487197876, 0.029626427218317986, 0.029923003166913986, 0.024803156033158302, -0.050730183720588684, 0.014383957721292973, 0.0037403753958642483, 0.001253620837815106, 0.00740270409733057, -0.03977246209979057, -0.007199783343821764, 0.01570294238626957, 0.008475842885673046, 0.004799855872988701, 0.05547540634870529, 0.015585873275995255, 0.014766385778784752, 0.011472825892269611, -0.003043810836970806, -0.005213501863181591, -0.005041799508035183, -0.006583216600120068, -0.02772209420800209, 0.019948668777942657, 0.015031742863357067, -0.018668707460165024, -0.003385264193639159, -0.022898823022842407, -0.02987617440521717, -0.016936076804995537, -0.0006146156811155379, 0.04788929224014282, 0.05703633278608322, 0.021306676790118217, -0.007418313529342413, -0.0005853482289239764, -0.0035784291103482246, 0.04354991018772125, -0.022243233397603035, -0.017825806513428688, 0.01877797208726406, -0.0072739277966320515, 0.0034496523439884186, -0.0053149620071053505, -0.0017462889663875103, 0.006481756456196308, 0.05154186487197876, -0.014852236025035381, -0.022368108853697777, 0.00521740410476923, -0.03736863285303116, -0.03843006491661072, -0.019199423491954803, 0.008749005384743214, 0.03971002623438835, -0.026988457888364792, -0.0008141218568198383, 0.012300117872655392, -0.013244479894638062, -0.02030768245458603, 0.03324778005480766, 0.018106773495674133, 0.007874885573983192, 0.025786541402339935, -0.001108259311877191, 0.020791569724678993, 0.02928302250802517, -0.009443618357181549, -0.0034672128967940807, -0.027285033836960793, -0.0028935715090483427, -0.020682305097579956, -0.004909120500087738, -0.009779218584299088, -0.007000765297561884, 0.010138232260942459, -0.012151829898357391, -0.012666936032474041, -0.010364566929638386, -0.022352498024702072, 0.006454440299421549, -0.008429015055298805, -0.01768532209098339, -0.07879567891359329, -0.00010274081432726234, 0.011199663393199444, -0.020260853692889214, -0.004003782290965319, 0.007707085460424423, 0.01944917067885399, -0.019261859357357025, -0.0030769805889576674, -0.03515211492776871, -0.0038691519293934107, -0.023632461205124855, -0.01933990605175495, 0.016811201348900795, -0.0034555059392005205, 0.022212015464901924, 0.013634712435305119, -0.021150583401322365, -0.04501718282699585, 0.004998873919248581, -0.033278997987508774, 0.0171233881264925, -0.004905218258500099, 0.011347951367497444, -0.009053386747837067, 0.008077805861830711, 0.05634952709078789, 0.0033540455624461174, -0.0073090484365820885, 0.010903086513280869, -0.0024623649660497904, -6.73760223435238e-05, -0.011386974714696407, 0.021119365468621254, -0.02338271215558052, 0.0061617661267519, 0.014446395449340343, 0.025224607437849045, 0.0028564995154738426, -0.01477419026196003, 0.008218289352953434, -0.0259738527238369, -0.0020214025862514973, -0.027441127225756645, -0.01455566007643938, 0.01765410415828228, 0.0006843696464784443, -0.0011199663858860731, -0.017451182007789612, 0.010489440523087978, 0.007110030390322208, -0.005900310352444649, 0.008842661045491695, -0.023242227733135223, -0.004834976512938738, -0.052946701645851135, -0.008920707739889622, -0.005467152688652277, -0.02948594279587269, -0.02246176451444626, 0.003071127226576209, -0.02072913385927677, -0.008936316706240177, 0.006653458345681429, 0.05466372147202492, -0.0069695464335381985, -0.019901840016245842, 0.007355876266956329, 0.030859559774398804, -0.01983940415084362, 0.009677757509052753, -0.035589173436164856, 0.003631110303103924, 0.0637795478105545, -0.006602728273719549, -0.03221756964921951, 0.0006316883373074234, -0.002031158423051238, -0.004924729932099581, -0.01346301008015871, 0.0030633225105702877, 0.019901840016245842, 0.02232128009200096, 0.007484653033316135, 0.02057304047048092, 0.02358563244342804, 0.0025813858956098557, -0.0383676253259182, 0.016093173995614052, -0.012237681075930595, -0.010403589345514774, 0.02179056406021118, -0.03374727815389633, 0.004027196206152439, -0.014688339084386826, 0.03633841872215271, 0.025755323469638824, 0.003562819678336382, -0.03249853476881981, 0.034465305507183075, 0.008725591003894806, 0.023632461205124855, 0.0004936436889693141, 0.05279060825705528, 0.009662148542702198, -0.015741966664791107, 0.020947663113474846, 0.0090768001973629, 0.0001813360140658915, 0.0068641840480268, -0.01606195606291294, 0.010036771185696125, 0.014165427535772324, 0.027768921107053757, -0.0028233297634869814, 0.009396790526807308, 0.035464297980070114, 0.04105242341756821, -0.01759166643023491, -0.04245726019144058, -0.003139417851343751, 0.03949149698019028, -0.018887236714363098, 0.0005814459291286767, -0.014438590034842491, 0.010692361742258072, 0.0178570244461298, -0.002991129644215107, 0.01137917023152113, -0.03752472624182701, 0.005471054930239916, 0.01593708246946335, 0.000879973522387445, 0.04682786017656326, -0.02964203618466854, -0.021837392821907997, -0.012456211261451244, 0.036057453602552414, 0.014173232018947601, -0.010840649716556072, -0.04895072430372238, 0.03527698665857315, -0.04136461019515991, -0.012183048762381077, 0.01632731407880783, -0.017872633412480354, 0.02381977252662182, 0.025489965453743935, 0.014547855593264103, -0.0014789799461141229, -0.032810721546411514, 0.01732630841434002, -0.023367103189229965, 0.005759826861321926, -0.022446153685450554, -0.009264111518859863, -0.0357140488922596, 0.040989987552165985, -0.014688339084386826, -0.003744277637451887, -0.005154966842383146, 0.0602206289768219, -0.0010087501723319292, 0.026738708838820457, -0.0010906988754868507, -0.00412475410848856, 0.006157863885164261, 0.014914673753082752, 0.01059870608150959, -0.002883815672248602, 0.003923784475773573, -0.021322285756468773, 0.014641511254012585, -0.02461584471166134, -0.0587533563375473, -0.0059588453732430935, -0.01086406409740448, 0.0024584627244621515, 0.03309168666601181, -0.00391012616455555, -0.00017584837041795254, -0.04177045077085495, 0.04945022240281105, 0.00453840009868145, -0.0003377947141416371, 0.020089151337742805, 0.0043823071755468845, 0.03468383476138115, 0.029033273458480835, -0.026176774874329567, -0.03296681493520737, 0.006415416952222586, 0.014118599705398083, -0.0137283680960536, 0.006473951507359743, 0.011550872586667538, 0.04092755168676376, -0.013486423529684544, 0.0030886875465512276, -0.008639739826321602, 0.018059944733977318, 0.03858615830540657, -0.0001271912915399298, -0.002655529882758856, -0.060532815754413605, -0.03780569136142731, -0.015890253707766533, 0.04436159506440163, -0.010856258682906628, -0.01901211217045784, 0.007878787815570831, -0.008889488875865936, 0.005428129341453314, 0.029595207422971725, -0.020588649436831474, -0.0006682726088911295, -0.01235475018620491, 0.023772943764925003, 0.031109308823943138, -0.02305491641163826, -0.015031742863357067, 0.02229006215929985, 0.011254295706748962, 0.009053386747837067, 0.005307157523930073, 0.004909120500087738, 0.014368348754942417, -0.0019209178863093257, -0.007461239118129015, -0.04873219504952431, -0.049731187522411346, 0.008507061749696732, -0.0038028124254196882, -0.03861737623810768, -0.002179446630179882, -0.021088145673274994, 0.0007243684958666563, 0.024194395169615746, 0.025162169709801674, 0.021181803196668625, 0.00348282209597528, 0.034902364015579224, -0.047951728105545044, 0.026207992807030678, 0.028892790898680687, 0.01729509048163891, -0.008218289352953434, 0.009849459864199162, -0.02149398811161518, 0.033903371542692184, 0.0028038180898875, 0.021525206044316292, -0.05057409033179283, 0.002952106297016144, 0.031842947006225586, -0.04120851680636406, -0.014750775881111622, 0.009162651374936104, 0.0037462287582457066, -0.014305911026895046, -0.002146276878193021, -0.01508637610822916, 0.006817356217652559, 0.03730619698762894, 0.001015579211525619, 0.0056115384213626385, -0.0039218333549797535, -0.03014153242111206, -0.04667176678776741, -0.013884460553526878, 0.038273971527814865, 0.018668707460165024, -0.04017830267548561, 0.01791946217417717, 0.0015638554468750954, 0.050168249756097794, -0.025692885741591454, 0.0032603899016976357, 0.016717545688152313, 0.011597700417041779, -0.03176489844918251, -0.00965434405952692, -0.029532771557569504, 0.0037852521054446697, 0.028705477714538574, 0.01548441220074892, -0.024319268763065338, 0.02163447067141533, -0.011683551594614983, -0.006224202923476696, -0.031031262129545212, 0.00031121016945689917, 0.012947903014719486, -0.03892956301569939, -0.032841939479112625, 0.013915679417550564, -0.013338135555386543, -0.0053578875958919525, -0.016124393790960312, 0.02653578855097294, -0.004518888425081968, 0.018465787172317505, -0.06562144309282303, 0.028237199410796165, -0.032186347991228104, -0.001951160840690136, 0.0021774955093860626, -0.02858060412108898, -0.01980818435549736, -0.040989987552165985, 0.007574406452476978, 0.048513662070035934, 0.00209944904781878, -0.03430921211838722, 0.015351733192801476, -0.009474837221205235, 0.028408901765942574, 0.01162891834974289, -0.009474837221205235, 0.02414756640791893, 0.010200669057667255, 0.00030755173065699637, -0.04114608094096184, 0.027831358835101128, -0.020526211708784103, 0.004772539250552654, 0.02719137817621231, -0.01278400607407093, 0.005693487357348204, -0.05357107147574425, 0.024490971118211746, 0.013010340742766857, -0.007952931337058544, 0.007492457516491413, 0.011465021409094334, 0.07717231661081314, 0.0011628918582573533, -0.0027491855435073376, 0.02957959845662117, -0.009615320712327957, 0.018934065476059914, 0.02488120272755623, 0.04511084035038948, -0.012393773533403873, 0.01053626835346222, 0.02530265413224697, 0.03137466683983803, 0.01924625039100647, 0.0026438229251652956, 0.036057453602552414, 0.030812732875347137, 0.03465261682868004, 0.026941629126667976, -0.005353985354304314, 0.002460413845255971, -0.003133564256131649, -0.0009297281503677368, -0.004070121329277754, 0.04648445546627045, 0.009747999720275402, -0.01096552424132824, -0.028627432882785797, 0.026879191398620605, 0.024849984794855118, 0.02934546023607254, -0.03271706402301788, -0.021291067823767662, -0.02072913385927677, -0.029985440894961357, 0.0007146126590669155, -0.021056927740573883, -0.03983490169048309, 0.039803680032491684, -0.021010100841522217, -0.01344740018248558, -0.0027218693867325783, 0.03037567250430584, 0.0413333922624588, -0.023866599425673485, -0.01096552424132824, -0.022945651784539223, -0.010739189572632313, 0.06118840351700783, 0.029954221099615097, -0.013533251360058784, 0.029267413541674614, -0.037680819630622864, 0.04826391488313675, -0.010013357736170292, -0.00136386149097234, -0.01027091033756733, -0.0009365571895614266, -0.008772418834269047, -0.03465261682868004, 0.026207992807030678, -0.007769522722810507, 0.03427799418568611, -0.03268584609031677, 0.009747999720275402, 0.0036467197351157665, -0.02205592207610607, -0.0017160460120067, 0.053383760154247284, -0.005080822855234146, -0.0062359101139009, -0.0032311223912984133, -0.043737221509218216, -0.005439836531877518, 0.02216518670320511, -0.032935597002506256, 0.026816755533218384, 0.00443693995475769, -0.024662673473358154, 0.005732510704547167, -0.006052501033991575, -0.02748795412480831, 0.02385099045932293, -0.006903206929564476, 0.0006121767219156027, 0.02686358243227005, 0.0045579117722809315, -0.012362555600702763, 0.024693891406059265, 0.018231647089123726, -0.010957719758152962, 0.011340146884322166, -0.02630164846777916, 0.049106817692518234, 0.025115342810750008, -0.014251278713345528, 0.025365091860294342, 0.0060017709620296955, -0.011293319053947926, 0.0147585803642869, -0.03493358567357063, -0.01179281622171402, 0.008538279682397842, -0.007172467187047005, 0.020619867369532585, -0.013166433200240135, -0.010466027073562145, -0.012549866922199726, 0.013088387437164783, 0.011948908679187298, -0.02182178385555744, 0.00824950821697712, -0.00991970207542181, -0.012401578016579151, 0.01480540819466114, -0.0008614375256001949, 0.013837632723152637, 0.009170455858111382, -0.025193389505147934, -0.01791946217417717, -0.025927025824785233, 0.01824725605547428, -0.01623365841805935, -0.018637487664818764, 0.00048632684047333896, 0.016015129163861275, -0.0014370299177244306, -0.010247496888041496, -0.0017355575691908598, 0.039366621524095535, 0.008733396418392658, 0.0023901720996946096, -0.035526737570762634, 0.0206666961312294, -0.03262341022491455, 0.013619102537631989, 0.027768921107053757, 0.030828341841697693, 0.008749005384743214, 0.030328843742609024, -0.01841895841062069, 0.004331577103585005, -0.0059159197844564915, -0.0076992809772491455, -0.008631935343146324, -0.005638855043798685, -0.007874885573983192, -0.014586878940463066, 0.02080717869102955, -0.025521183386445045, 0.01436054427176714, -0.027441127225756645, 0.015531240031123161, -0.030750295147299767, -0.01868431642651558, -0.007988052442669868, -0.007765620015561581, -0.004651567433029413, 0.03182733431458473, 0.040896330028772354, -0.04292554035782814, -0.028564995154738426, 0.0023570023477077484, 0.003990123979747295, -0.0216969083994627, 0.00027730874717235565, 0.021244239062070847, 0.03574526682496071, -0.015624895691871643, -0.0035725755151361227, 0.0061617661267519, -0.019948668777942657, 0.009373377077281475, 0.0004114510375075042, -0.027316251769661903, 0.028143543750047684, 0.014618096873164177, 0.03252975270152092, 0.006407612469047308, 0.02355441451072693, -0.00032267323695123196, -0.013704953715205193, -0.037087664008140564, -0.00516667403280735, 0.015148812904953957, -0.018918456509709358, 0.004070121329277754, 0.0005429105367511511, -0.0024369999300688505, 0.01580440253019333, -0.006669067777693272, -0.00068193074548617, -0.00814804807305336, 0.012019150890409946, 0.012830833904445171, -0.0076056248508393764, -0.03799300268292427, 0.03805544227361679, -0.04439281299710274, 0.02093205414712429, -0.004237921442836523, 0.0037950079422444105, 0.0029462529346346855, 0.04011586681008339, 0.03736863285303116, 0.04083389416337013, -0.04401819035410881, 0.014181037433445454, -0.015531240031123161, -0.016748765483498573, -0.002019451465457678, 0.011753792874515057, -0.04657811298966408, -0.05716120824217796, 0.008210484869778156, -0.008772418834269047, 0.00209944904781878, 0.027815749868750572, 0.015882449224591255, 0.005088627338409424, -0.00938898604363203, 0.013658125884830952, -0.00803097803145647, -0.0017111680936068296, -0.018824800848960876, 0.01673315465450287, 0.04898194223642349, -0.020323291420936584, -0.015492217615246773, 0.009349962696433067, -0.007855373434722424, 0.019901840016245842, -0.012378164567053318, 0.03162441402673721, -0.03162441402673721, -0.0137283680960536, 0.010466027073562145, 0.018340911716222763, -0.0053149620071053505, -0.03958515077829361, 0.0010946012334898114, 0.017451182007789612, 0.019620873034000397, 0.0023257837165147066, -0.02984495647251606, -0.00069754000287503, 0.039803680032491684, 0.010801626369357109, -0.0006180302007123828, 0.004374502692371607, 0.0029969830065965652, 0.010575291700661182, 0.0066807749681174755, 0.001954087521880865, -0.02733186073601246, -0.006548095960170031, 0.03905443474650383, 0.001558977528475225, -0.021306676790118217, -0.027503563091158867, 0.01272156834602356, -0.0003809641639236361, -0.02004232443869114, -0.017935071140527725, -0.001567757804878056, -0.016186829656362534, 0.009630929678678513, -0.014165427535772324, 0.015258077532052994, 0.03412190079689026, 0.008741200901567936, -0.005791045259684324, -0.06918036192655563, 0.025130951777100563, -0.0008077805978246033, 0.04292554035782814, 0.018934065476059914, 0.006489560939371586, 0.033278997987508774, 0.027909405529499054, 0.005791045259684324, -0.0016340971924364567, 0.011824035085737705, -0.019948668777942657, -0.01656145416200161, 0.011332342401146889, -0.003244780469685793, 0.021837392821907997, 0.05968991294503212, -0.027644047513604164, 0.03123418241739273, 0.02040133811533451, 0.02948594279587269, 0.025365091860294342, 0.029002055525779724, -0.022087140008807182, -0.019168203696608543, -0.008944121189415455, 0.0203701201826334, -0.011995736509561539, -0.008382187224924564, -0.0037130590062588453, -0.03020397014915943, 0.017529228702187538, 0.03256097063422203, 0.014711752533912659, 0.012807419523596764, -0.01579659804701805, -0.021088145673274994, -0.021884219720959663, -0.011441607028245926, 0.011176249012351036, 0.013478619046509266, 0.011800620704889297, -0.006302249617874622, 0.0007619283278472722, 0.02517778053879738, 0.0034008733928203583, 0.01656145416200161, 0.03852371871471405, 0.007188076619058847, -0.014781994745135307, -0.022071531042456627, -0.018137991428375244, 0.004725711420178413, -0.008062196895480156, -0.0054008131846785545, -0.014477613382041454, 0.012440601363778114, -0.018824800848960876, -0.0012897172709926963, -0.013057168573141098, 0.011558677069842815, 0.013111800886690617, -0.012698154896497726, -0.009037776850163937, 0.007410509046167135, -0.00650126812979579, -0.016483407467603683, 0.001725801732391119, -0.015343928709626198, 0.004448646679520607, -0.02328905649483204, -0.009584101848304272, -0.005623245611786842, -0.015242468565702438, -0.007890494540333748, 0.014430785551667213, -0.010778212919831276, -0.012760591693222523, -0.0017667762003839016, 0.004394014365971088, -0.013158628717064857, 0.0033657525200396776, -0.017201434820890427, -0.01455566007643938, -0.006189082283526659, 0.011441607028245926, 0.005428129341453314, 0.020026715472340584, 0.004577423445880413, 4.149265441810712e-05, 0.03405946493148804, -0.0028135739266872406, -0.00881144218146801, -0.00022779802384320647, -0.0184501763433218, 0.010200669057667255, 0.003240878228098154, 0.008413405157625675, 0.013025949709117413, 0.005658366717398167, -0.006786137353628874, -0.00751977413892746, -0.003086736425757408, 0.006075914949178696, 0.011066984385251999, 0.006438830867409706, -0.016140002757310867, -0.015882449224591255, 0.0013404474593698978, -0.027144549414515495, 0.003990123979747295, 0.00725441612303257, 0.00913923792541027, -0.0027706483379006386, -0.051822833716869354, 0.006868086289614439, -0.001762873842380941, 0.024241222068667412, -0.024896811693906784, -0.00990409217774868, 0.012495233677327633, -0.010590901598334312, -0.014305911026895046, 0.00959190633147955, -0.01023188792169094, -0.017794586718082428, -0.03046932816505432, 0.02054182067513466, -0.023367103189229965, -0.02252420037984848, -0.0693676695227623, 0.011558677069842815, 0.015780989080667496, -0.0021657885517925024, 0.020557431504130363, 0.015773184597492218, -0.02033890038728714, -0.04020952433347702, -0.03643207624554634, 0.020323291420936584, 0.004483767785131931, 0.04070901870727539, -0.04626592621207237, -0.026723099872469902, -0.042051419615745544, -0.0010253350483253598, 0.01606195606291294, -0.019964277744293213, -0.03377849608659744, 0.003361850045621395, 0.034902364015579224, 0.007074909284710884, -0.04067780077457428, 0.0191838126629591, -0.022414935752749443, 0.006142254453152418, -0.01251864805817604, 0.029751300811767578, -0.007707085460424423, -0.00919387023895979, 0.013892265036702156, -0.02030768245458603, -0.016639498993754387, 0.005459348205476999, 0.047514669597148895, 0.008819246664643288, -0.036057453602552414, -0.024693891406059265, 0.0009960676543414593, -0.01765410415828228, 0.02193104848265648, -0.0317336805164814, 0.018200429156422615, -0.017201434820890427, -0.03415311872959137, 0.021384723484516144, 0.002926741261035204, 0.024272441864013672, -0.0034184337127953768, -0.009630929678678513, -0.005256427451968193, 0.001586293801665306, 0.01070016622543335, 0.004202800337225199, 0.026051899418234825, 0.04167679697275162, 0.04292554035782814, -0.023273447528481483, -0.027472345158457756, -0.0022399327717721462, -0.03677548095583916, -0.02143155038356781, -0.03185855597257614, -0.016405360773205757, 0.012659131549298763, 0.005826166365295649, -0.011987932026386261, -0.009568492881953716, 0.021150583401322365, 0.01566391997039318, -0.007761717773973942, -0.023601241409778595, -0.02477193810045719, -0.007863177917897701, -0.009279721416532993, -0.024366097524762154, -0.00018170184921473265, -0.02709772251546383, 0.026723099872469902, 0.012042565271258354, 0.010512854903936386, 0.014852236025035381, 0.011886471882462502, 0.0031784409657120705, -0.0057403151877224445, 0.05684902146458626, -0.03967880830168724, 0.02659822441637516, -0.002706260187551379, -0.015874644741415977, 0.023538803681731224, -0.004542302340269089, 0.004932534880936146, -0.0163897518068552, 0.0008243654738180339, -0.02769087441265583, 0.01507076621055603, 0.0035881847143173218, -0.02520899847149849, -0.010107013396918774, 0.003342338604852557, -0.029766909778118134, -0.019792575389146805, -2.7301008231006563e-05, -0.008764614351093769, -0.011465021409094334, 0.005435934290289879, 0.03377849608659744, 0.009451422840356827, -0.00854608416557312, 0.009154846891760826, 0.05597490444779396, -0.004081828519701958, 0.005775436293333769, 0.01567172445356846, -0.000799488159827888, -0.017373137176036835, -0.00985726434737444, -0.008912903256714344, 0.022368108853697777, 0.043706003576517105, 0.0022574930917471647, -0.037836913019418716, 0.014001530595123768, -0.02957959845662117, 0.0010507000843062997, -0.008452428504824638, 0.008538279682397842, 0.03596379607915878, -0.004585227929055691, 0.0050261905416846275, 0.0026360182091593742, 0.022508591413497925, -0.013439595699310303, 0.001441907836124301, 0.017966289073228836, -0.015180031768977642, 0.0056622689589858055, -0.0245065800845623, -0.02573971450328827, -0.00759391812607646, 0.00342038506641984, -0.003049664432182908, -0.036681823432445526, 0.0504804328083992, -0.03702522814273834, -0.018325302749872208, -0.004866195376962423, -0.03530820831656456, -0.03156197816133499, 0.003207708476111293, -0.011917690746486187, -0.03259219229221344, -0.0019365272019058466, 0.012300117872655392, 0.00764464819803834, 0.014618096873164177], "id": 31}, {"title": "Heart rot", "text": "In trees, heart rot is a fungal disease that causes the decay of wood at the center of the trunk and branches. Fungi enter the tree through wounds in the bark and decay the heartwood. The diseased heartwood softens resulting in trees being structurally weaker and prone to breakage. Heart rot is a major factor in the economics of logging and the natural growth dynamic of many older forests.", "vector": [-0.015310668386518955, 0.005258948542177677, -0.01632007770240307, -0.00492376321926713, -0.024703575298190117, -0.024272071197628975, -0.020943330600857735, -0.06756111979484558, 0.012582950294017792, -0.008707123808562756, -0.026198426261544228, 0.06552688777446747, -0.0003390384663362056, 0.006179746240377426, -0.018832044675946236, -0.002571683842688799, -0.014794405549764633, 0.002344373846426606, 0.03892777860164642, -0.008036752231419086, 0.019217316061258316, -0.0011683342745527625, -0.03516753390431404, 0.006961846258491278, 0.011049571447074413, 0.010379199869930744, 0.013191677629947662, -0.01753753423690796, -0.05624956265091896, 0.05436943843960762, 0.05310574918985367, 0.014470777474343777, 0.03102201782166958, 0.031253181397914886, -0.005551754496991634, -0.003559903707355261, -0.02240736037492752, 0.08284866809844971, -0.008969108574092388, -0.03310248255729675, -0.016058094799518585, -0.0016990449512377381, -0.013769584707915783, 0.006187452003359795, 0.03368809446692467, 0.07409531623125076, 0.02712307684123516, -0.008344968780875206, -0.019987858831882477, 0.0442599281668663, -0.0078055900521576405, 0.05803721770644188, -0.016936512663960457, 0.019386835396289825, 0.03310248255729675, 0.009130922146141529, 0.05702010542154312, 0.05720503255724907, -0.032763443887233734, 0.029003199189901352, -0.007062016986310482, 0.0331641249358654, -0.0111266253516078, 0.004846708849072456, 0.051071520894765854, -0.02169846184551716, 0.008568426594138145, -0.003956732805818319, -0.0694720596075058, -0.03458192199468613, -0.02390221133828163, 0.025998085737228394, -0.004850561730563641, 0.03633875772356987, 0.059115976095199585, -0.039020244032144547, 0.03424288332462311, -0.03633875772356987, -0.015857752412557602, 0.011172858066856861, -0.01134237740188837, 0.015688233077526093, -0.051287271082401276, 0.02618301473557949, -0.004916057456284761, -0.019617997109889984, -0.04197912663221359, -0.03729423135519028, -0.013669414445757866, 0.025042613968253136, -0.02513507753610611, 0.025936441496014595, 0.02861792780458927, 0.03966749832034111, 0.04009900242090225, -0.013908281922340393, -0.01417797151952982, 0.0111266253516078, -0.010941695421934128, -0.027708688750863075, 0.001927318051457405, 0.008992224000394344, -0.015295257791876793, -0.011758469976484776, -0.02740047127008438, -0.04626333713531494, -0.027508346363902092, 0.05455436930060387, 0.023671047762036324, 0.05797557532787323, 0.025813154876232147, -0.0027546873316168785, 0.03522917628288269, -0.01642795465886593, -0.0050701661966741085, 0.007146776653826237, 0.058561187237501144, -0.020989563316106796, -0.021945035085082054, 0.030806267634034157, -0.05584888160228729, -0.04059214890003204, -0.02031148597598076, 0.02246900275349617, 0.003656221553683281, -0.01930978149175644, -0.05782146751880646, -0.020665934309363365, -0.014624886214733124, 0.029974080622196198, -0.02223784103989601, 0.0021247693803161383, 0.05840707942843437, 0.025427883490920067, 0.0019234652863815427, 0.0008760098717175424, -0.002265393268316984, 0.052335210144519806, 0.006792327389121056, -0.03217783197760582, -0.021313190460205078, -0.041362691670656204, -0.05902351438999176, 0.055016692727804184, 0.006364676635712385, -0.03334905579686165, -0.052119456231594086, 0.011165152303874493, -0.008005931042134762, -0.03421206399798393, 0.0208662748336792, 0.01253671757876873, 0.047064702957868576, 0.044074997305870056, 0.021482709795236588, -0.03905106708407402, -0.012143741361796856, 0.0036774114705622196, -0.060780350118875504, -0.020650524646043777, -0.046848949044942856, 0.037756554782390594, -0.05513998121023178, -0.028772035613656044, 0.002806698903441429, -0.0375099815428257, -0.02351693995296955, -0.08167744427919388, -0.01726013980805874, 0.008776472881436348, -0.04231816157698631, 0.021282369270920753, 0.00432659313082695, 0.021004972979426384, -0.054061222821474075, -0.03723258525133133, -0.016597473993897438, 0.00926961936056614, -0.007335559464991093, 0.0010777955176308751, -0.010340672917664051, -0.05677352845668793, 0.033040840178728104, 0.009446844458580017, 0.03578396886587143, 0.005497816950082779, -0.05948583781719208, 0.05671188607811928, -0.011411726474761963, -0.04077707976102829, -0.029434701427817345, -0.0045076701790094376, -0.013299553655087948, -0.04250309243798256, 0.008206271566450596, -0.023177901282906532, -0.016998155042529106, -0.04937632754445076, 0.04894482344388962, -0.040191467851400375, 0.034027133136987686, -0.012814112938940525, 0.018939921632409096, 0.05362971872091293, 0.044753074645996094, -0.006287622265517712, 0.057729002088308334, -0.06688304245471954, 0.015326078981161118, 0.020958740264177322, 0.02080463245511055, -0.015295257791876793, -0.009539308957755566, 0.01741424761712551, -0.01852382905781269, 0.0003814182709902525, -0.005890793167054653, 0.03787984326481819, 0.008005931042134762, 0.031099073588848114, 0.03301001712679863, -0.000785952783189714, -0.018955331295728683, -0.002159443683922291, -0.05159548670053482, -0.012598360888659954, -0.031314823776483536, -0.01131926104426384, -0.02142106555402279, 0.0008986445609480143, -0.027492936700582504, 0.040807902812957764, -0.0020631260704249144, -0.016011862084269524, -0.066574826836586, -0.0012049349024891853, -0.009670301340520382, -0.024718984961509705, 0.04037639871239662, -0.06466387957334518, -0.007389497011899948, 0.061766643077135086, -0.031222360208630562, 0.003365342039614916, -0.004896793980151415, -0.00948537141084671, -0.03399631008505821, 0.009832114912569523, -0.030713802203536034, -0.01813855767250061, 0.007998225279152393, -0.033811379224061966, 0.05279753357172012, 0.0016788182547315955, -0.05609545484185219, -0.036646973341703415, 0.04111611843109131, 0.011373198591172695, 0.002436838811263442, 0.047958530485630035, -0.012051275931298733, 0.06521867215633392, -0.02174469269812107, -0.036801084876060486, -0.01370023563504219, -0.054122865200042725, -0.014748172834515572, 0.019063208252191544, -0.002452249638736248, 0.03821888193488121, 0.04481472074985504, 0.0152567308396101, -0.015079505741596222, -0.02091250754892826, 0.009416022337973118, -0.0008639701409265399, 0.03556821495294571, 0.03945174813270569, -0.019818339496850967, 0.03396548703312874, 0.0093466741964221, -0.017845751717686653, 0.0034385432954877615, 0.0471571683883667, 0.018123146146535873, 0.016119737178087234, 0.020558059215545654, -0.000841335509903729, 0.010240502655506134, 0.04154762253165245, 0.02052723802626133, -0.0011269175447523594, 0.0458318330347538, -0.07366380840539932, 0.0401606447994709, -0.03612300753593445, 0.009616363793611526, -0.011404020711779594, -0.03535246476531029, 0.010363789275288582, -0.011796996928751469, -0.000660739722661674, -0.009076983667910099, 0.007466551382094622, -0.010633478872478008, 0.04897564649581909, -0.03223947435617447, 0.012082098051905632, -0.007065869402140379, 0.013523011468350887, -0.010725943371653557, -0.02485768310725689, -0.013623181730508804, 0.008491371758282185, 0.015611180104315281, -0.021713871508836746, -6.772341293981299e-05, -0.0006631476571783423, 0.006310738623142242, 0.0320853665471077, 0.0031091368291527033, -0.023285778239369392, -0.037417516112327576, -0.007115954998880625, 0.024040909484028816, -0.011242207139730453, 0.0060641649179160595, -0.014933102764189243, 0.007123660296201706, -0.032979194074869156, 0.007008078973740339, -0.0018859014380723238, 0.04376678168773651, 0.04364349693059921, -0.03624629229307175, -0.015287552028894424, 0.004580871667712927, -0.033811379224061966, 0.009909169748425484, -0.01642795465886593, -0.0020900950767099857, -0.03190043568611145, -0.0270151998847723, -0.008136922493577003, -0.0208662748336792, -0.033194947987794876, -0.01753753423690796, -0.006179746240377426, -0.026999790221452713, 0.010309850797057152, 0.0006867455085739493, 0.009909169748425484, -0.006268358789384365, 0.03624629229307175, 0.0029376910533756018, 0.005767506547272205, -0.02545870654284954, -0.009277325123548508, -0.007801737170666456, -0.0008504856959916651, 0.06207485869526863, -0.032424405217170715, 0.012251616455614567, -0.01489457581192255, -0.013515305705368519, 0.024950148537755013, 0.028155602514743805, 0.027261773124337196, 0.0035965044517070055, 0.012698531150817871, 0.001541083911433816, 0.03427370637655258, 0.06990356743335724, 0.02724636346101761, 0.028479229658842087, -0.05131809413433075, -0.0018338898662477732, -0.02152894251048565, -0.01151189673691988, 0.0005345634999684989, 0.03227029740810394, -0.034366171807050705, -0.010309850797057152, 0.0034770704805850983, 0.006364676635712385, -0.020773811265826225, -0.016951922327280045, -0.013338080607354641, 0.025551170110702515, 0.03439699113368988, -0.016782402992248535, 0.040314752608537674, 0.009331262670457363, 0.020789220929145813, 0.03985242918133736, -0.0610269233584404, -0.05430779606103897, -0.0035213767550885677, 0.0013542274245992303, -0.05436943843960762, 0.006676746066659689, -0.007385644596070051, 0.047249630093574524, 0.011827819049358368, 0.008468256331980228, -0.013931398279964924, -0.0003664890246000141, -0.0058060334995388985, -0.002097800374031067, 0.07372545450925827, -0.0033306675031781197, 0.06602003425359726, 0.016551241278648376, -0.012282438576221466, -0.013422840274870396, 0.00790575984865427, -0.004511523060500622, -0.016844047233462334, 0.038804493844509125, 0.024842271581292152, -0.08537604659795761, -0.002097800374031067, -0.03562986105680466, 0.012120625004172325, -0.030436405912041664, 0.024503232911229134, -0.006776916328817606, -0.0017655042465776205, 0.024826861917972565, 0.008329558186233044, 0.005883087869733572, -0.017599178478121758, 0.04755784943699837, 0.031715504825115204, 0.0264141783118248, -0.02114367112517357, 0.013422840274870396, -0.015603474341332912, 0.003199675353243947, 0.0857459083199501, 0.01841595210134983, 0.008853526785969734, -0.016165969893336296, -0.024873094633221626, -0.0016961554065346718, -0.018493006005883217, 0.005139514803886414, 0.00012966776557732373, -0.0030860204715281725, -0.013076096773147583, -0.011866346001625061, -0.0016470333794131875, -0.0037621711380779743, 0.03621547296643257, 0.013253320939838886, -0.006692156661301851, -0.02402549795806408, -0.050732482224702835, 0.008637774735689163, 0.03180797025561333, 0.00995540153235197, 0.010371494106948376, -0.018123146146535873, -0.004195600748062134, 0.015071799978613853, -0.019710462540388107, 0.02046559378504753, 0.037972308695316315, -0.014355196617543697, -0.0075859855860471725, 0.01608891598880291, -0.044753074645996094, -0.08660891652107239, 0.025751512497663498, 0.03205454349517822, 0.001989924581721425, 0.0010094098979607224, 0.0010383052285760641, 0.02075839973986149, -0.05803721770644188, 0.011088098399341106, 0.01779951900243759, -0.004006817936897278, -0.00428806571289897, 0.005289770197123289, -0.043859247118234634, 0.03205454349517822, -0.012814112938940525, 0.020450182259082794, -0.00932355783879757, 0.007119807414710522, 0.03199290111660957, -0.027893617749214172, -0.05199617147445679, -0.007797884289175272, -0.017460480332374573, -0.03985242918133736, -0.007343264762312174, -0.010394610464572906, 0.030420996248722076, 0.056557778269052505, -0.02313166856765747, -0.007289326749742031, -0.007844116538763046, -0.009531604126095772, 0.009886053390800953, 0.01980292797088623, 0.04062297195196152, 0.005983258131891489, 0.01198192685842514, 0.011866346001625061, -0.043581850826740265, -0.022700166329741478, -0.01698274351656437, -0.006383940111845732, 0.0152567308396101, 0.012875756248831749, -0.00879188347607851, 0.03661615401506424, 0.03096037544310093, 0.011172858066856861, -0.002633327152580023, -0.02057347074151039, 0.005574870854616165, -0.06004062667489052, 0.0375099815428257, -0.05131809413433075, 0.00021647413086611778, 0.013569243252277374, 0.001305105397477746, 0.03707847744226456, 0.033287413418293, 0.01350759994238615, 0.025397062301635742, 0.021344011649489403, -0.010656595230102539, -0.017121441662311554, 0.036307934671640396, -0.008776472881436348, -0.007859528064727783, 0.02579774335026741, 0.021004972979426384, -0.024950148537755013, -0.0200186800211668, -0.0320853665471077, 0.00848366692662239, 0.007474256679415703, 0.0018021049909293652, -0.06349265575408936, -0.0010768324136734009, 0.02447241172194481, -0.030328530818223953, 0.030867910012602806, 0.022592289373278618, 0.005833002272993326, -0.007289326749742031, -0.010340672917664051, 0.005366824567317963, -0.004550050012767315, 0.00635311845690012, 0.010479370132088661, 0.0034462488256394863, 0.006341560278087854, 0.004623251501470804, -0.031592220067977905, 0.010140332393348217, 0.021513530984520912, -0.03347234055399895, -0.01472505647689104, 0.004342003725469112, 0.05421533063054085, -0.0166437067091465, -0.010733649134635925, -0.012159151956439018, 0.015249025076627731, 0.019571764394640923, -0.01067971158772707, -0.03202372416853905, -0.025320008397102356, -0.0173063725233078, -0.015156559646129608, -0.011719943024218082, -0.03766408935189247, 0.016674527898430824, -0.00610269233584404, -0.017845751717686653, -0.02424125000834465, 0.0156497061252594, -0.018955331295728683, -0.0027392765041440725, 0.009770471602678299, 0.026984378695487976, -0.021513530984520912, 0.03538328409194946, 0.03411959856748581, 0.023455297574400902, -0.0072700632736086845, -0.012267027981579304, -0.0011384757235646248, 0.030929554253816605, 0.004769654478877783, 0.0005177078419364989, 0.02763163484632969, 0.020604291930794716, 0.031083662062883377, -0.02552034892141819, 0.04200994595885277, -0.025397062301635742, -0.012251616455614567, 0.029557988047599792, 0.06213650107383728, 0.010479370132088661, 0.00643402524292469, 0.0009882199810817838, 0.02219160832464695, -0.009408317506313324, -0.04117776080965996, -0.004083872307091951, 0.040191467851400375, -0.08778014034032822, -3.121296686003916e-05, -0.003261318663135171, -0.017075208947062492, 0.03649286553263664, -0.03985242918133736, 0.013245616108179092, -0.022006677463650703, 0.018770402297377586, -0.00703119533136487, -0.030467228963971138, 0.02740047127008438, 0.048790715634822845, -0.014124033972620964, -0.03140728920698166, -0.030590515583753586, 0.011951105669140816, -0.02723095193505287, -0.0033306675031781197, -0.0016807445790618658, -0.011612066999077797, 0.020450182259082794, 0.021066617220640182, 0.027385059744119644, -0.06361594051122665, -0.011727648787200451, -0.013453662395477295, 0.027878208085894585, 0.011311555281281471, 0.042749665677547455, -0.00027113445685245097, -0.030374763533473015, -0.012444252148270607, -0.013091507367789745, 0.012159151956439018, 0.006029490847140551, 0.01222850102931261, 0.010024750605225563, -0.06145842373371124, -0.022006677463650703, -0.01980292797088623, 0.010047866962850094, 0.006846264936029911, -0.013515305705368519, 0.01836971938610077, 0.0012993263080716133, -0.00421486422419548, 0.006464846897870302, -0.024549465626478195, -0.003569535445421934, -0.0026391062419861555, -0.02724636346101761, -0.024888504296541214, 0.011003338731825352, 0.01048707589507103, 0.0018377425149083138, -0.01670534908771515, 0.012197678908705711, -0.0013783068861812353, 0.002563978312537074, -0.0037640973459929228, 0.023393653333187103, -0.03223947435617447, 0.026722393929958344, 0.001243462087586522, -0.03239358216524124, -0.008899759501218796, 0.00481203431263566, 0.004137810319662094, -0.02917271852493286, -0.04382842406630516, 0.02118990384042263, -0.018554650247097015, 0.0029588809702545404, -0.020111145451664925, -0.03072921186685562, 0.0017529829638078809, -0.0040222289972007275, -0.03988325223326683, 0.00048471902846358716, -0.008945992216467857, 0.008868937380611897, 0.010672005824744701, -0.0375099815428257, -0.02102038450539112, -0.017891984432935715, 9.902668352879118e-06, -0.01101104449480772, -0.006888644769787788, 0.02330118790268898, -0.029665865004062653, -0.022792629897594452, 0.016828635707497597, -0.05261260271072388, -0.008260210044682026, 0.026383355259895325, -0.0064802574925124645, 0.00599096342921257, 0.014540126547217369, -0.05742078647017479, 0.0034423961769789457, -0.011396314948797226, 0.04176337271928787, 0.011496486142277718, 0.0015613106079399586, -0.00859924778342247, -0.020665934309363365, -0.002718086587265134, -0.007998225279152393, -0.03430452570319176, 0.013268732465803623, 0.017891984432935715, -0.003018598072230816, -0.027107665315270424, 0.007770915515720844, -0.025058023631572723, 0.02380974590778351, 0.03174632787704468, 0.003005113685503602, 0.006626660469919443, 0.012721647508442402, 0.005440026056021452, -0.008198565803468227, -0.0008861232199706137, -0.008499077521264553, -0.013738762587308884, 0.022391948848962784, -0.05036262050271034, -0.005397646222263575, 0.03874284774065018, 0.047126345336437225, 0.008622364141047001, 0.04090036451816559, -0.018292665481567383, 0.008861232548952103, 0.024888504296541214, 0.023455297574400902, -0.020003268495202065, -0.05144137889146805, 0.038712028414011, 0.026321712881326675, -0.012082098051905632, 0.02763163484632969, 0.0011760396882891655, 0.0165820624679327, 0.04453732445836067, 0.019448477774858475, -0.02601349540054798, 0.006310738623142242, 0.003623473457992077, -0.008468256331980228, -0.00751663651317358, -0.005443878937512636, -0.016397131606936455, -0.025705279782414436, -0.044568147510290146, -0.008406613022089005, 0.02142106555402279, -0.00898451916873455, 0.025998085737228394, -0.03754080459475517, -0.06303033232688904, 0.008737945929169655, -0.012914283201098442, -0.008614659309387207, 0.025890208780765533, -0.02852546237409115, -0.0010585320414975286, -0.0018849382176995277, -0.03405795246362686, 0.020897097885608673, -0.036523688584566116, -0.022653933614492416, 0.0038970159366726875, -0.017876572906970978, 0.013877460733056068, 0.0031033577397465706, -0.02174469269812107, -0.017784107476472855, -0.010001634247601032, 0.016551241278648376, 0.027508346363902092, 0.011927989311516285, -0.029326826333999634, 0.013523011468350887, 0.002423354424536228, -0.00575594836845994, -0.0104331374168396, -0.041301049292087555, -0.0043073296546936035, -0.004368972964584827, -0.020265253260731697, 0.0442599281668663, -0.0050123753026127815, 0.001502556842751801, 0.006210567895323038, 0.012713941745460033, 0.014686529524624348, 0.010217386297881603, 0.0304518174380064, 0.008375790901482105, -0.04943796992301941, -0.025212131440639496, -0.013607771135866642, 0.019664229825139046, 0.04493800550699234, 0.04487636312842369, 0.0249655582010746, 0.013523011468350887, -0.002411796245723963, 0.014154855161905289, 0.025042613968253136, 0.02545870654284954, 0.03784902021288872, -0.03430452570319176, 0.023332009091973305, -0.016520420089364052, 0.004395941738039255, 0.029557988047599792, -0.022823452949523926, 0.026105960831046104, -0.02795526199042797, -0.06429401785135269, -0.006645924411714077, 0.001257909694686532, -0.005474700592458248, 0.0016046535456553102, -0.024564877152442932, 0.002702675759792328, -0.05646531283855438, -0.03017442300915718, 0.033533986657857895, -0.030374763533473015, -0.010371494106948376, 0.03538328409194946, 0.02690732479095459, 0.009716534055769444, -0.003295993199571967, 0.013546126894652843, 0.0093158520758152, 0.006341560278087854, -0.02041936106979847, -0.01880122348666191, -0.01272935327142477, 0.019648820161819458, 0.002610210794955492, 0.01992621459066868, -0.005366824567317963, 0.026676161214709282, 0.012359492480754852, -0.009023046121001244, -0.03559903800487518, 0.00776706263422966, 0.012783290818333626, 0.0006424393504858017, -0.052951641380786896, -0.03313330188393593, 0.011134331114590168, 0.030251476913690567, 0.02968127466738224, 0.03926681727170944, 0.048297569155693054, 0.024934737011790276, -0.011927989311516285, 0.009855231270194054, -0.009439138695597649, -0.04521540179848671, 0.01779951900243759, -0.022715575993061066, -0.033533986657857895, -0.028540873900055885, -0.016720760613679886, 0.03661615401506424, -0.015125738456845284, 0.002038083504885435, 0.010086393915116787, 0.05541737750172615, 0.06108856573700905, -0.004141662735491991, -0.013584654778242111, 0.01134237740188837, 0.01162747759371996, -0.016458775848150253, -0.03452027961611748, -0.016628295183181763, 0.04127022624015808, 0.03285590931773186, 0.026814859360456467, -0.0051703364588320255, -0.002500408561900258, -0.04543115198612213, -0.04586265608668327, -0.02408714033663273, 0.003868120489642024, 0.0078248530626297, 0.021621406078338623, -0.01284493412822485, 0.0020708313677459955, 0.016227614134550095, 0.0036061361897736788, 0.010764471255242825, -0.022099142894148827, 0.019833749160170555, -0.0264141783118248, 0.021821748465299606, -0.019232727587223053, -0.0038796786684542894, 0.007497373037040234, -0.004195600748062134, 0.02323954552412033, -0.0008644517511129379, 0.03926681727170944, -0.038588739931583405, -0.022607700899243355, 0.048513319343328476, 0.016181381419301033, 0.014293553307652473, 0.03627711534500122, 0.013623181730508804, -0.024272071197628975, -0.03174632787704468, -0.02046559378504753, 0.05665024369955063, 0.0019032385898754, 0.012906577438116074, -0.0045962827280163765, 0.0035521984100341797, -0.0015266361879184842, -0.033040840178728104, -0.003511744784191251, -0.017075208947062492, 0.0047272746451199055, -0.00809839554131031, -0.058992691338062286, -0.023994676768779755, 0.0005066313315182924, 0.029927849769592285, -0.0001914315071189776, 0.01836971938610077, -0.047064702957868576, -0.036153826862573624, -0.03988325223326683, 0.0019677714444696903, -0.04949961602687836, -0.01553412526845932, 0.003717864863574505, -0.025058023631572723, 0.003469365183264017, -0.04808181896805763, -0.003852709662169218, 0.012644593603909016, 0.004422910511493683, 0.005752095486968756, -0.05131809413433075, -0.010356083512306213, 0.007443435024470091, 0.029496345669031143, 0.018616292625665665, 0.008368085138499737, 0.009801293723285198, 0.03695519268512726, 0.013923692516982555, 0.02380974590778351, 0.01758376695215702, -0.00033711211290210485, -0.008167744614183903, 0.01303756982088089, 0.017075208947062492, 0.03282508626580238, -0.001972587313503027, 0.028263477608561516, -0.014077801257371902, 0.02780115231871605, -0.027986083179712296, 0.0019225021824240685, -0.004839003551751375, -0.031160715967416763, -0.04093118757009506, 0.010964811779558659, -1.0948618182737846e-05, 0.005197305232286453, 0.018385130912065506, -0.013915987685322762, -0.0010922432411462069, -0.04250309243798256, -0.024318303912878036, 0.011997338384389877, 0.018231023102998734, 0.006133513990789652, 0.024780629202723503, -0.02462651953101158, -0.008190860971808434, 0.010055572725832462, -0.028710393235087395, -0.0036523689050227404, -0.0069811102002859116, 0.05008522793650627, 0.02307002618908882, -0.017876572906970978, -0.06145842373371124, 0.0360613614320755, 8.871767022355925e-06, 0.0064378781244158745, -0.016289256513118744, 0.040253110229969025, -0.020511826500296593, 0.019556354731321335, -0.002113211201503873, 0.015464777126908302, -0.029111074283719063, -0.011635183356702328, 0.01835430972278118, 0.010078688152134418, -0.008622364141047001, -0.04577019065618515, -0.04111611843109131, 0.029265182092785835, -0.01470194011926651, -0.01702897623181343, 0.03538328409194946, 0.017321782186627388, -0.025212131440639496, 0.011118920519948006, 0.01852382905781269, 0.015272141434252262, 0.007104396820068359, -0.005790622904896736, 0.02080463245511055, -0.041362691670656204, 0.03267097845673561, -0.05908515676856041, -0.01403927430510521, -0.025643635541200638, 0.002949249232187867, -0.03538328409194946, -0.025258364155888557, 0.033811379224061966, -0.013029864057898521, -0.0045962827280163765, 0.012413430958986282, 0.011689120903611183, -0.017568355426192284, -0.006769211031496525, 0.001219382626004517, -0.008714829571545124, -0.04999276250600815, 0.015210498124361038, -0.006846264936029911, -0.01095710601657629, 0.006749947555363178, 0.014046979136765003, 0.01741424761712551, 0.005185747053474188, 0.0057058632373809814, -0.053568076342344284, -0.006973404437303543, 0.012914283201098442, -0.012128329835832119, -0.017398837953805923, -0.021960444748401642, -0.01903238520026207, 0.017999859526753426, 0.0003970699035562575, -0.012112919241189957, -0.016273844987154007, -0.016381721943616867, -0.00022116961190477014, -0.010232796892523766, -0.02518131025135517, 0.01232096552848816, -0.00984752643853426, 0.007119807414710522, -0.014486188068985939, -0.036153826862573624, 0.02263852208852768, 0.003419279819354415, 0.007038900628685951, 0.016674527898430824, 0.012274732813239098, -0.03926681727170944, -0.007967404089868069, 0.0047272746451199055, 0.03834216669201851, -0.0020091880578547716, -0.036585330963134766, -0.002766245510429144, 0.011858640238642693, -0.0010296367108821869, 0.045122936367988586, -0.013707941398024559, -0.04167090728878975, -0.013214793987572193, -0.016104325652122498, 0.0024195017758756876, 0.004873677622526884, 0.019001564010977745, 0.037972308695316315, -0.0015747951110824943, 0.052181098610162735, -0.00649181567132473, -0.028864501044154167, 0.0020265253260731697, 0.007154481951147318, 0.00471571646630764, -0.028432996943593025, -0.03211618959903717, 0.0027238656766712666, -0.017121441662311554, 0.02929600514471531, 0.010070983320474625, -0.030081957578659058, 0.008491371758282185, -0.0005331187276169658, 0.06768440455198288, 0.0015613106079399586, -0.017244728282094002, 0.03455109894275665, 0.05248931795358658, 0.006152777466922998, -0.01506409514695406, 0.004842855967581272, 0.005455437116324902, -0.017352605238556862, 0.018785811960697174, -0.005817591678351164, -0.014848343096673489, -0.01284493412822485, 0.0026660750154405832, 0.018123146146535873, -0.00140046002343297, 0.028602516278624535, -0.019617997109889984, 0.034088775515556335, 0.0304518174380064, -0.0032362760975956917, 0.009285029955208302, 0.017660820856690407, -0.016720760613679886, -0.02075839973986149, -0.006114250514656305, 0.009446844458580017, -0.03926681727170944, 0.03083708882331848, -0.012814112938940525, 9.944807243300602e-05, 0.01963340863585472, -0.0389586016535759, -0.0030609779059886932, -0.03979078680276871, 0.007928876206278801, 0.0044691432267427444, 0.01541854441165924, -0.01350759994238615, 0.009593247435986996, 0.03211618959903717, 0.008036752231419086, 0.00998622365295887, 0.016766993328928947, 0.017845751717686653, 0.030251476913690567, -0.04043804109096527, 0.014601769857108593, 0.03479767590761185, 0.020511826500296593, 0.014085507020354271, 0.0048813833855092525, 0.03362645208835602, 0.03787984326481819, 0.0320853665471077, 0.01536460593342781, 0.017337193712592125, 0.007828705944120884, 0.0029357648454606533, -0.004557755775749683, -0.008352674543857574, -0.02307002618908882, 0.013885165564715862, -0.016890279948711395, -0.011719943024218082, -0.007670745253562927, 0.002382901031523943, -0.0033075513783842325, 0.0100093400105834, -0.00317655922845006, 0.014948513358831406, 0.004546197596937418, 0.016381721943616867, -0.011296144686639309, -0.054400261491537094, 0.008553015999495983, 0.03126859292387962, 0.007493520155549049, -0.022314894944429398, 0.011396314948797226, -0.005205010995268822, -0.01439372356981039, -0.00016759286518208683, -0.0005384162068367004, 0.019510122016072273, -0.00525509612634778, 0.011165152303874493, 0.02473439648747444, 0.00033542653545737267, -0.015796110033988953, 0.003914352972060442, -0.0010845378274098039, 0.014108623377978802, 0.012636887840926647, -0.022037498652935028, -0.019602587446570396, -0.017044387757778168, -0.01830807700753212, 0.008499077521264553, 0.02639876678586006, 0.013769584707915783, -0.01598103903234005, -0.01472505647689104, -0.034859318286180496, -0.006965699139982462, -0.006387792527675629, 0.029712097719311714, 0.021559763699769974, 0.00984752643853426, 0.008915170095860958, 0.00658813351765275, -0.006079575978219509, 0.024179605767130852, 0.008506783284246922, 0.006526490207761526, -0.017660820856690407, 0.012860344722867012, -0.039698321372270584, -0.007801737170666456, -0.0010489001870155334, 0.015387722291052341, 0.019772106781601906, -0.00859924778342247, 0.03000490367412567, 0.012945104390382767, -0.004688747692853212, 0.01079529244452715, -0.021390244364738464, -0.033657271414995193, 0.008568426594138145, 0.019849160686135292, -0.009939990937709808, 0.016335489228367805, -0.08223223686218262, -0.0017106031300500035, -0.007882644422352314, -0.0008938286337070167, 0.017830340191721916, -0.008907465264201164, -0.009107805788516998, 0.047249630093574524, -0.028371354565024376, 0.020450182259082794, -0.039297640323638916, -0.02102038450539112, 0.026367945596575737, 0.008838116191327572, -0.003035935340449214, -0.041424334049224854, -0.004646367859095335, 0.005378382746130228, -0.018015271052718163, -0.004650220740586519, 0.002036157064139843, -0.040962010622024536, -0.015526420436799526, 0.010764471255242825, -0.034643564373254776, -0.0034462488256394863, 0.005621103569865227, -0.0334106981754303, -0.045801013708114624, 0.011088098399341106, 0.014948513358831406, -0.0006655555916950107, 0.004623251501470804, -0.0006775953224860132, 0.0001058893176377751, -0.00583685515448451, 0.005297475960105658, -0.029604220762848854, -0.03812641650438309, 0.032979194074869156, -0.02624465897679329, 0.020003268495202065, 0.013962220400571823, -0.01370023563504219, -0.018446773290634155, -0.003956732805818319, -0.029527166858315468, -0.0035676092375069857, 0.013322670012712479, 0.030220655724406242, 0.062383074313402176, -0.032486047595739365, 0.005597987212240696, 0.0022596141789108515, -0.013777289539575577, 0.021390244364738464, -0.008637774735689163, -0.015888575464487076, 0.006068017799407244, -0.005370677448809147, -0.036369580775499344, 0.0039027950260788202, -0.014786699786782265, -0.023732692003250122, 0.012251616455614567, -0.017938217148184776, -0.06842412799596786, 0.022838862612843513, 0.012243911623954773, -0.014532420784235, 0.014925397001206875, -0.03396548703312874, -0.023054614663124084, 0.033256590366363525, -0.004446026869118214, -0.005020080599933863, -0.00023284814960788935, 0.01370023563504219, -0.016674527898430824, 0.01389287132769823, 0.03301001712679863, -0.0039644381031394005, 0.01986457034945488, -0.021266957744956017, -0.019879981875419617, 0.0026641488075256348, 0.006511079613119364, -0.02989702671766281, -0.004711864050477743, 0.020003268495202065, -0.004719569347798824, 0.0414859764277935, -0.004322740249335766, 0.07575968652963638, -0.0022056763991713524, 0.01813855767250061, 0.015672823414206505, 0.01753753423690796, -0.028694981709122658, 0.023147080093622208, 0.00122708803974092, 0.0022904358338564634, 0.011596656404435635, 0.048235926777124405, 0.015657411888241768, -0.029912438243627548, 0.03707847744226456, -0.005509374663233757, -0.009724238887429237, -0.04336610063910484, 0.0071429237723350525, -0.015025568194687366, -0.02863333933055401, 0.024225838482379913, -0.03145352378487587, 0.010463959537446499, -0.026706984266638756, -0.003569535445421934, 0.0034462488256394863, 0.011519601568579674, -0.016674527898430824, -0.04111611843109131, 0.06207485869526863, -0.017999859526753426, 0.0015921322628855705, -0.022653933614492416, -0.0004433024150785059, 0.0019513975130394101, 0.002845226088538766, -0.0007088985876180232, -0.0025890208780765533, -0.006422467064112425, 0.0029357648454606533, -0.003215086180716753, -0.006811590865254402, 0.0017558723920956254, 0.042133234441280365, 0.007828705944120884, 0.008707123808562756, 0.018061503767967224, 0.005405351519584656, 0.02169846184551716, -0.005185747053474188, 0.024980969727039337, 0.014470777474343777, -0.01636631041765213, 0.026337124407291412, 0.01924813725054264, 0.044629789888858795, -0.005817591678351164, 0.025504937395453453, -0.023100847378373146, -0.037355873733758926, 0.0243028923869133, -0.009970813058316708, 0.016797814518213272, -0.013885165564715862, -0.00021996564464643598, -0.022730987519025803, 0.012529011815786362, -0.001958139706403017, 0.002956954762339592, 0.008044457994401455, -0.02530459687113762, 0.02385597862303257, 0.022207017987966537, 0.02712307684123516, 0.01270623691380024, 0.001509299036115408, -0.005278212483972311, -0.029218951240181923, 0.020619701594114304, 0.011095804162323475, -0.021713871508836746, -0.010201975703239441, 0.01433978509157896, 0.017183085903525352, 0.008005931042134762, 0.016844047233462334, 0.008136922493577003, -0.01067971158772707, 0.010764471255242825, 0.013445956632494926, 0.020881686359643936, 0.01769164204597473, -0.024564877152442932, -0.02336283214390278, -0.029696686193346977, -0.01489457581192255, 0.016165969893336296, -0.03134564682841301, 0.004711864050477743, -0.007663039490580559, 0.009701123461127281, 0.014940808527171612, 0.009947696700692177, -0.021236136555671692, -0.005220421589910984, 0.04765031486749649, -0.004442174453288317, 0.0037698764353990555, 0.025104256346821785, 0.009231092408299446, -0.0528283566236496, -0.019617997109889984, 0.01564200222492218, 0.023224133998155594, -0.0018724169349297881, 0.01636631041765213, -0.01719849556684494, 0.010078688152134418, -0.029943259432911873, 0.0028336679097265005, 0.01300674770027399, 0.027600811794400215, -0.03957503288984299, 0.028879912570118904, -0.006152777466922998, 0.008637774735689163, 0.0016614811029285192, -0.034705210477113724, 0.005979405250400305, 0.019849160686135292, 0.008838116191327572, 0.05893104895949364, -0.010017044842243195, 0.0020014827605336905, -0.011935695074498653, -0.01647418737411499, -0.02157517522573471, 0.017599178478121758, 0.030328530818223953, 0.015541831031441689, 0.018508417531847954, 0.01681322604417801, -0.007990519516170025, -0.013669414445757866, 0.003153442870825529, -0.009708828292787075, 0.009238798171281815, -0.02114367112517357, -0.010040161199867725, -0.032147008925676346, -0.002798993606120348, 0.00716989254578948, -0.00863006990402937, -0.005574870854616165, 0.016458775848150253, 0.002053494332358241, -0.02208373136818409, -0.017460480332374573, 0.016936512663960457, 0.023439886048436165, 0.035753145813941956, -0.03439699113368988, -0.005401499103754759, 0.003112989477813244, -0.0020939477253705263, -0.00467333709821105, -0.02163681760430336, -0.020989563316106796, -0.07273916155099869, -0.0200186800211668, 0.008522193878889084, -0.0373866967856884, -0.013661708682775497, 0.008568426594138145, -0.003852709662169218, 0.0006612212746404111, -0.0010546792764216661], "id": 32}, {"title": "Ray Collins (actor)", "text": "Ray Bidwell Collins (December 10, 1889 \u2013 July 11, 1965) was an American character actor in stock and Broadway theatre, radio, films and television. With 900 stage roles to his credit, he became one of the most successful actors in the developing field of radio drama. A friend and associate of Orson Welles for many years, Collins went to Hollywood with the Mercury Theatre company and made his feature film debut in Citizen Kane, as Kane's ruthless political rival.", "vector": [0.007792048156261444, 0.013407074846327305, -0.028745872899889946, -0.006002138368785381, -0.041455380618572235, -0.028623223304748535, -0.017324179410934448, 8.85582539922325e-06, -0.028362594544887543, 0.04121008515357971, -0.060312673449516296, 0.05053141340613365, -0.01983848586678505, -0.023594612255692482, -0.0034763342700898647, -0.018336033448576927, -0.029497098177671432, 0.036733392626047134, -0.04577876254916191, 0.019240571185946465, 0.0677022784948349, -0.046116046607494354, -0.013529724441468716, 0.054272208362817764, 0.020651035010814667, 0.002437649993225932, -0.032042067497968674, -0.052279163151979446, -0.01755414716899395, -0.00985025241971016, 0.0560506209731102, 0.019424544647336006, 0.04436829686164856, 0.014464923180639744, -0.015001513063907623, -0.07898599654436111, 0.007972189225256443, -0.0006362419808283448, -0.0011431275634095073, 0.01451091654598713, 0.005312237422913313, 0.024959083646535873, -0.059055522084236145, -0.008899722248315811, -0.004649166017770767, 0.01770745776593685, 0.002269007498398423, 0.01055548433214426, 0.014671893790364265, -0.009512967430055141, -0.0027826004661619663, -0.061355192214250565, 0.004526516888290644, -0.010877438820898533, -0.0010530571453273296, 0.01410464197397232, 0.026108918711543083, 0.062459032982587814, 0.008140831254422665, -0.019547194242477417, -0.025020407512784004, -0.05252445861697197, -0.03940100967884064, -0.015653086826205254, 0.06202976033091545, 0.014119972474873066, 0.020758353173732758, 0.0029646577313542366, -0.003552990034222603, -0.03658008202910423, 0.010724127292633057, -0.027304746210575104, -0.017891431227326393, 0.06310293823480606, -0.0421912781894207, 0.011590336449444294, -0.008600764907896519, 0.009290666319429874, -0.0031677952501922846, -0.039002399891614914, -0.015085834078490734, 0.009022371843457222, -0.032011404633522034, 0.09621818363666534, 0.00016792380483821034, -0.05479346588253975, -0.009160351939499378, -0.06304161995649338, -0.02000712789595127, 0.018428022041916847, 0.039370346814394, 0.05408823490142822, 0.027228090912103653, -0.035752199590206146, -0.0006324092391878366, -0.0396769717335701, -0.015806397423148155, -0.012563862837851048, -0.007795881014317274, 0.012295568361878395, -0.013131114654242992, -0.054210882633924484, 0.002907166024670005, -0.017032887786626816, 0.06003671512007713, 0.022720737382769585, -0.0037733749486505985, -0.026292892172932625, 0.01743149757385254, 0.05460949242115021, 0.03161279484629631, -0.04228326305747032, -0.022996699437499046, -0.039125051349401474, 0.007918530143797398, 0.016051694750785828, -0.03403511270880699, 0.03707067668437958, -0.0005255703581497073, -0.01221891213208437, -0.035874851047992706, -0.04538015276193619, 0.022782063111662865, 0.024146532639861107, 0.006082626990973949, 0.007148140575736761, 0.02925180085003376, -0.03363650292158127, -0.008025847375392914, 0.01513182744383812, -0.013637042604386806, -0.019577855244278908, -0.01048649474978447, -0.022598089650273323, 0.03749994933605194, 0.0069641671143472195, 0.003508912865072489, 0.01758480817079544, -0.023701930418610573, 0.05969943106174469, -0.008646758273243904, -0.06776360422372818, -0.0006678624777123332, 0.04338710382580757, 0.01284748874604702, -0.026323555037379265, 0.006017469335347414, -0.05859558656811714, -0.029650410637259483, -0.03943167254328728, -0.015323466621339321, -0.030815575271844864, 0.03026365488767624, -0.04994883015751839, -0.01454157941043377, -0.027228090912103653, 0.012824492529034615, -0.04301915690302849, 0.009053033776581287, -0.022674744948744774, -0.024974415078759193, 0.012916479259729385, -0.0467599555850029, 0.004304215312004089, -0.015837060287594795, -0.03520027920603752, 0.025955606251955032, -0.014756214804947376, -0.03501630574464798, 0.017017556354403496, 0.013721363618969917, 0.01400498952716589, 0.01047882903367281, -0.015024510212242603, -0.020099114626646042, -0.010294855572283268, -0.03234868869185448, -0.030202331021428108, -0.013338085263967514, 0.013890005648136139, 0.0017851187149062753, -0.05743042379617691, 0.004710490349680185, 0.01750815287232399, 0.015308136120438576, -0.007374274544417858, 0.029895707964897156, 0.0030259822960942984, 0.0006918173748999834, -0.0004000467306468636, 0.02098832093179226, 0.031091537326574326, 0.012985468842089176, 0.002370576374232769, 0.02324199676513672, 0.012732505798339844, -0.01057081576436758, -0.050930023193359375, -0.04918227344751358, -0.010195203125476837, -0.03406577557325363, 0.007159638684242964, 0.006032800767570734, -0.026093587279319763, -0.00021643246873281896, -0.019102590158581734, 0.03268597275018692, -0.02213815599679947, -0.023609943687915802, 0.032256703823804855, -0.008754076436161995, -0.046361345797777176, 0.02233745902776718, 0.06892877072095871, -0.006967999506741762, 0.02696746215224266, 0.0006755280192010105, 0.0116133326664567, 0.02351795695722103, -0.011743647046387196, -0.012126925401389599, 0.006201443262398243, 0.02578696422278881, 0.005335234105587006, 0.04176200553774834, 0.002742356387898326, -0.04078081250190735, 0.027826005592942238, 0.01411230769008398, -0.02681414969265461, -0.031198853626847267, 0.007673231884837151, 0.008347801864147186, 0.01986914686858654, -0.01169765368103981, 0.00015666500257793814, 0.026154911145567894, -0.04430697113275528, -0.03049362264573574, -0.005611194297671318, -0.05365896224975586, 0.043816376477479935, -0.024207858368754387, -0.043877702206373215, 0.07659433782100677, -0.034525711089372635, 0.006281931418925524, -0.1023506373167038, -0.043816376477479935, 0.015407787635922432, 0.016833582893013954, -0.020666366443037987, 0.05752240866422653, -0.05286174267530441, -0.0058948202058672905, 0.01641964353621006, 0.012011942453682423, -0.005070772022008896, -0.042743198573589325, 0.02590961381793022, -0.04461359605193138, 0.004963454324752092, -0.0008096754318103194, -0.001240863581188023, -0.04350975528359413, -0.041394058614969254, -0.04430697113275528, -0.06512665003538132, -0.0013443486532196403, 0.006860681809484959, -0.012410551309585571, -0.04884498938918114, -0.006661376915872097, 0.021831532940268517, -0.016833582893013954, -0.03602816164493561, 0.03038630448281765, -0.04642266780138016, 0.013322753831744194, -0.08174559473991394, 0.014196628704667091, -0.03428041189908981, 0.03605882450938225, -0.06733433157205582, -0.03654941916465759, -0.014748549088835716, 0.019654512405395508, 0.015407787635922432, 0.0443989597260952, 0.0046223364770412445, -0.019071929156780243, 0.002537302440032363, 0.00441536633297801, 0.021708883345127106, 0.006477403454482555, -0.04326445609331131, 0.03820518031716347, -0.04320313036441803, 0.02814795821905136, -0.019071929156780243, 0.033329881727695465, 0.004963454324752092, -0.020329082384705544, -0.03400444984436035, 0.0012303233379498124, 0.001423878944478929, -0.003317273687571287, 0.01339941006153822, 0.03759193792939186, -0.06892877072095871, -0.0658012181520462, -0.008002851158380508, 0.01634298637509346, 0.0034265080466866493, 0.014786876738071442, -0.0014832870801910758, 0.03854246810078621, -0.03544557839632034, -0.029987694695591927, -0.013437737710773945, 0.026430871337652206, 0.021816201508045197, -0.06641446799039841, -0.017308847978711128, -0.018090736120939255, 0.033329881727695465, 0.017354842275381088, 0.009604954160749912, -0.013054459355771542, 0.07782083004713058, -0.04105677083134651, -0.011023084633052349, 0.05365896224975586, -0.015300470404326916, -0.03639610856771469, -0.03838915377855301, -0.03483233228325844, 0.03354451805353165, 0.013284426182508469, -0.009137354791164398, 0.004246723838150501, 0.030800245702266693, -0.039033062756061554, 0.02693679928779602, -0.013246098533272743, -0.056510552763938904, -0.0069411699660122395, -0.02548034116625786, 0.03032498061656952, -0.0038500307127833366, 0.0006860681460238993, 0.010601477697491646, -0.026139581575989723, 0.02446848712861538, 0.010179871693253517, 0.025219712406396866, -0.04111809656023979, 0.01109207421541214, 0.010992421768605709, 0.0329006090760231, 0.015990370884537697, -0.0023437468335032463, 0.004273553378880024, 0.02209216170012951, -0.00757357943803072, -0.016143683344125748, 0.01996113359928131, 0.044000349938869476, -0.04191531613469124, 0.02112630009651184, -0.020589711144566536, 0.01988447830080986, -0.007684729993343353, 0.021708883345127106, 0.02932845614850521, -0.004534182604402304, -0.02449914999306202, -0.012057935819029808, -0.03501630574464798, -0.018213385716080666, -0.028623223304748535, 0.007834208197891712, 0.011299044825136662, 0.021555572748184204, -0.015959708020091057, -0.029803721234202385, -0.06911274790763855, -0.010846775956451893, -0.023134678602218628, -0.01108440849930048, -0.00781504437327385, 0.018520008772611618, 0.00784570723772049, 0.011536677367985249, 0.036886703222990036, -0.015898384153842926, 0.03308458253741264, 0.04200730100274086, 0.07978321611881256, 0.002610125346109271, -0.0513286329805851, -0.02822461538016796, 0.03979961946606636, 0.017906762659549713, -0.0007713476079516113, -0.03133683279156685, 0.004028255119919777, -0.0014190879883244634, 0.0324406772851944, 0.009911577217280865, 0.015032174997031689, -0.008378463797271252, -0.012004276737570763, 0.007646402344107628, -0.011467686854302883, -0.03780657425522804, -0.025449680164456367, 0.028408588841557503, 0.018106067553162575, 0.015990370884537697, -0.0058986530639231205, -0.004813975654542446, 0.04222193732857704, -0.014188962988555431, 0.09364255517721176, 0.043785713613033295, 0.015438450500369072, -0.0008503987337462604, 0.006672875490039587, -0.019347889348864555, -0.052095189690589905, 0.022000174969434738, 0.028653886169195175, -0.013591049239039421, 0.02908315882086754, -0.017952756956219673, -0.07064586132764816, 0.0019144751131534576, -0.0043693725019693375, -0.022690076380968094, 0.007243960164487362, 0.010946428403258324, -0.08800069987773895, -0.042589884251356125, -0.03869577869772911, -0.010670468211174011, -0.006086459383368492, -0.029665742069482803, -0.047250550240278244, 0.05994472652673721, -0.02548034116625786, -7.090648432495072e-05, 0.010034225881099701, 0.04436829686164856, -0.0008992667426355183, 0.03734663873910904, 0.03354451805353165, 0.006094125099480152, -0.048477042466402054, 0.03759193792939186, 0.009237007237970829, -0.028807198628783226, 0.005477047059684992, 0.04682127758860588, -0.0030298151541501284, 0.003936268389225006, -0.008876726031303406, -0.0258942823857069, -0.0030202330090105534, -0.013966661877930164, -0.05712379887700081, -0.017170868813991547, -0.0146029032766819, -0.0269981250166893, 0.007910864427685738, -0.034525711089372635, 0.013422406278550625, -0.011069077998399734, 0.0023073353804647923, -0.004790978971868753, -0.011896958574652672, -0.020559048280119896, -0.028531236574053764, -0.007926195859909058, -0.003690970130264759, -0.015101165510714054, -0.03152080997824669, -0.027412064373493195, -0.05096068233251572, -0.06187644973397255, 0.025173719972372055, 0.023855242878198624, 0.018075404688715935, -0.02114163152873516, -0.021340936422348022, -0.003549157176166773, 0.01119939237833023, -0.021800870075821877, -0.005365896504372358, 0.0002970406785607338, 0.020191101357340813, 0.0673956573009491, 0.03642677143216133, 0.005860325414687395, -0.02324199676513672, -0.009045368060469627, 0.0683155283331871, 0.0029550758190453053, 0.01526214275509119, -0.004641500301659107, 0.001572399283759296, 0.05359764024615288, 0.04792511835694313, 0.041271407157182693, 0.010616809129714966, -0.05372028797864914, 0.018933948129415512, -0.021678220480680466, -0.010394508019089699, 0.0020160439889878035, -0.00044843563227914274, -0.011130401864647865, 0.023793917149305344, 0.039217036217451096, 0.029957031831145287, -0.012211247347295284, 0.021938851103186607, 0.010356180369853973, -0.01285515446215868, -0.015039840713143349, 0.018075404688715935, -0.011858630925416946, 0.013054459355771542, -0.002922497224062681, -0.012701842933893204, 0.037959884852170944, -0.006669042631983757, 0.01296247262507677, 0.015729742124676704, -0.018244046717882156, 0.018290041014552116, 0.08297208696603775, 0.015806397423148155, 0.005369728896766901, 0.031168192625045776, 0.027841337025165558, -0.020160438492894173, -0.0004596944199874997, 0.004584008362144232, 0.01773812063038349, 0.03182743117213249, -0.0012926061172038317, 0.02682948112487793, 0.011835633777081966, 0.010892769321799278, -0.004748818464577198, -0.026599515229463577, -0.03170478343963623, -0.014242622070014477, -0.003922853618860245, 0.011797306127846241, -0.015576430596411228, 0.005369728896766901, 0.011544343084096909, -0.054548170417547226, -0.00871574878692627, 0.032195378094911575, -0.03492432087659836, -0.05828896537423134, -0.05712379887700081, -0.015277473255991936, 0.00880006980150938, -0.01746216043829918, -0.012870485894382, -0.020635703578591347, 0.01879596896469593, 0.010064888745546341, 0.033176571130752563, -0.006508065853267908, -0.002136776689440012, 0.010279524140059948, -0.03308458253741264, 0.028914514929056168, -0.03826650604605675, -0.030631601810455322, -0.020620372146368027, 0.00016995998157653958, 0.029543092474341393, 0.03351385518908501, -0.007067651953548193, -0.023686598986387253, -0.010110882110893726, 0.02319600246846676, 0.035537563264369965, 0.020083783194422722, 0.020421069115400314, -0.007470094133168459, 0.006251269020140171, 0.04994883015751839, 0.003508912865072489, -0.00033632671693339944, 0.03633478283882141, 0.030984219163656235, -0.024023884907364845, 0.0006146825617179275, -0.012456544674932957, 0.025204380974173546, 0.0018291957676410675, -0.016864245757460594, 0.008140831254422665, -0.006082626990973949, -0.021356267854571342, -0.024897759780287743, 0.042773857712745667, -0.015576430596411228, -0.03633478283882141, 0.0032578655518591404, -0.0234566330909729, 0.016910238191485405, 0.019194576889276505, -0.016833582893013954, 0.029635079205036163, -0.016833582893013954, -0.023180672898888588, 0.035537563264369965, -0.008685086853802204, -0.016051694750785828, -0.021678220480680466, -0.0067801931872963905, 0.05099134519696236, 0.0021386928856372833, -0.02356395125389099, -0.021356267854571342, -0.009773597121238708, 0.01118406094610691, -0.04084213823080063, -0.00871574878692627, -0.020789016038179398, 0.018198054283857346, -0.033176571130752563, -0.02696746215224266, -0.017937425523996353, 0.03544557839632034, 0.013913002796471119, -0.01752348430454731, 0.023042691871523857, 0.007447097450494766, 0.01966984197497368, -0.045226842164993286, -0.0046261693350970745, 0.01890328712761402, -0.021877525374293327, -0.013905337080359459, -0.01293180976063013, 0.00942098069936037, -0.01635831780731678, -0.028316602110862732, -0.011498349718749523, -0.012655849568545818, 0.0012169086840003729, 0.009888580068945885, 0.016051694750785828, 0.004101078025996685, 0.07254692167043686, -0.016894908621907234, -0.0023839911445975304, -0.019577855244278908, 0.036702729761600494, -0.004254389088600874, 0.007719225250184536, 0.02233745902776718, 0.0223527904599905, 6.881043373141438e-05, -0.040167566388845444, -0.00020457479695323855, -0.007140474859625101, -0.014050982892513275, -0.031980741769075394, -0.0036679734475910664, -0.008784739300608635, -0.03961564600467682, 0.0009088487131521106, -0.02673749439418316, -0.01985381729900837, 0.019685173407197, 0.008577768690884113, -0.01408164482563734, -0.024989746510982513, -0.0005476088845171034, 0.011490684002637863, -0.014480254612863064, 0.005733843427151442, -0.00731295021250844, 0.0009601121419109404, -0.003144798567518592, 0.011498349718749523, -0.01278616487979889, -0.028178621083498, -0.009543630294501781, 0.021754877641797066, 0.004591674078255892, -0.013445403426885605, 0.010724127292633057, 0.0001922380324685946, -0.025373024865984917, -0.03308458253741264, -0.025235043838620186, -0.034740347415208817, -0.014940188266336918, -0.02449914999306202, -0.013031462207436562, 0.036794718354940414, 0.010946428403258324, 0.021846864372491837, 0.023640606552362442, -0.00810250360518694, 0.043724387884140015, -0.009030036628246307, -0.027504051104187965, 0.018060073256492615, 0.019654512405395508, 0.006393082439899445, 0.01471788715571165, -0.014495586045086384, -0.01117639522999525, 0.008570102974772453, 0.007895532995462418, -0.042651209980249405, -0.026568852365016937, 0.004764149431139231, -0.03878776356577873, -0.006124787498265505, 0.012870485894382, -0.005484712775796652, 0.0020850340370088816, 0.02100365050137043, -0.04872233793139458, -0.006910508032888174, 0.034556373953819275, 0.00555753568187356, -0.03176610544323921, -0.02124894969165325, 0.026538189500570297, -0.033176571130752563, 0.020237095654010773, 0.04804776981472969, 0.006619216408580542, 0.015300470404326916, 0.009827256202697754, -0.025265706703066826, 0.011398697271943092, 0.013629376888275146, -0.011521345935761929, 0.011153399012982845, -0.014871198683977127, 0.029757728800177574, 0.03857313096523285, -0.062489695847034454, 0.0006501358584500849, 0.008240483701229095, 0.011237720027565956, 0.00817915890365839, -0.01744682900607586, -0.031214185059070587, 0.01297013834118843, -0.008777073584496975, -0.001267693005502224, 0.015039840713143349, 0.024054545909166336, 0.00022505623928736895, -0.014909526333212852, -0.026584183797240257, -0.02940511144697666, 0.0010089802090078592, 0.003353685140609741, 0.04084213823080063, -0.005933148320764303, 0.003286611521616578, 0.00041729427175596356, -0.022475440055131912, -0.034648358821868896, 0.05948479473590851, -0.014311611652374268, -0.013506727293133736, -0.016925569623708725, 0.003106470685452223, 0.010118547827005386, -0.0023207501508295536, -0.0037005520425736904, -0.015622423961758614, -0.026400210335850716, -0.04482823237776756, -0.014848201535642147, -0.02468312345445156, -0.043877702206373215, -0.0448588952422142, -0.005948479287326336, 0.005572866648435593, -0.048599690198898315, 0.03946233540773392, 0.01980782300233841, 0.025265706703066826, 0.022521434351801872, -0.05166591703891754, 0.016956232488155365, 0.004652998875826597, 0.010708795860409737, -0.019209908321499825, 0.008784739300608635, 0.015461446717381477, 0.009007040411233902, 0.0039707631804049015, 0.016848914325237274, 0.005603529047220945, 0.02452981099486351, -0.006481236312538385, 0.01973116770386696, -0.011452356353402138, 0.0006755280192010105, -0.036702729761600494, -0.013575717806816101, 0.015553433448076248, 0.001031976891681552, 0.009359655901789665, 0.010662802495062351, -0.0020524554420262575, 0.016956232488155365, -0.052156511694192886, 0.013529724441468716, -0.008585434406995773, -0.025173719972372055, 0.06874480098485947, -0.02567964605987072, 0.03403511270880699, -0.036978691816329956, -0.013606379739940166, 0.029711734503507614, 0.042743198573589325, 0.04065816476941109, 0.041332732886075974, 0.004066582769155502, -0.03360584378242493, -0.02790266089141369, -0.00011282755440333858, -0.0043923696503043175, 0.020083783194422722, 0.02106497623026371, -0.028822528198361397, -0.0033958458807319403, -0.006803189869970083, -0.03593617305159569, -0.01764613389968872, -0.021448254585266113, 0.025235043838620186, 0.03504696860909462, -0.03047829121351242, 0.0022153486497700214, -0.028730541467666626, 0.0005250913091003895, 0.0013759691501036286, 0.04436829686164856, -0.00011821740190498531, -0.013131114654242992, 0.020804347470402718, 0.0052624111995100975, 0.02903716452419758, 0.023793917149305344, -0.03848114237189293, 0.02931312471628189, -0.053107041865587234, 0.00996523629873991, 0.010432835668325424, 0.01651163026690483, -0.03296193480491638, -0.044031012803316116, 0.04093412309885025, -0.014142969623208046, 0.03841981664299965, 0.02111096866428852, 0.013276760466396809, 0.005580532364547253, -0.002914831507951021, 0.003581735771149397, 0.0024242352228611708, 0.014817539602518082, -0.034495048224925995, -0.04461359605193138, 0.003380514681339264, -0.00643141008913517, -0.0013261429267004132, -0.0035376588348299265, 0.04185399040579796, -0.0032923605758696795, -0.0013865092769265175, -0.018290041014552116, 0.019424544647336006, -0.030938224866986275, -0.016634277999401093, -0.04590141028165817, 0.023579280823469162, -0.0054387194104492664, 0.00378678971901536, -0.017906762659549713, 0.018182722851634026, 0.005377394612878561, 0.007972189225256443, -0.010294855572283268, 0.003658391535282135, 0.018136730417609215, -0.06227505952119827, 0.05286174267530441, 0.02085033990442753, 0.06227505952119827, -0.022812724113464355, 0.005852659698575735, 0.011023084633052349, -0.009566626511514187, -0.013752025552093983, 0.018320703878998756, 0.00942864641547203, 0.042620547115802765, 0.030202331021428108, 0.014165966771543026, 0.002056288067251444, 0.020053120329976082, -0.007025491446256638, 0.0061401184648275375, -0.02564898505806923, 0.024928420782089233, -0.05945413187146187, 0.01472555287182331, -0.007109812460839748, -0.047158561646938324, -0.02112630009651184, 0.02787199802696705, 0.018198054283857346, -0.020114446058869362, -0.03360584378242493, -0.022858718410134315, -0.04651465639472008, -0.0354149155318737, -0.0020428732968866825, -0.029681071639060974, -0.016879577189683914, 0.020651035010814667, 0.039094388484954834, -0.012402886524796486, 0.010440501384437084, -0.04338710382580757, 0.013215435668826103, -5.038013568992028e-06, 0.029543092474341393, -0.02439183183014393, -0.0023169172927737236, 0.012648183852434158, 0.010287189856171608, -0.003909438848495483, -0.03035564161837101, 0.013085121288895607, -0.009037702344357967, -0.018489345908164978, 0.00757357943803072, -0.038082532584667206, -0.015407787635922432, -0.014832871034741402, -0.0013318920973688364, 0.004035920836031437, -0.046116046607494354, -0.008915053680539131, -0.0032233705278486013, 0.03253266215324402, 0.02121828682720661, -0.005998305510729551, -0.01057848148047924, -0.004591674078255892, 0.005607361905276775, -0.033237896859645844, 0.02088100276887417, -0.008370798081159592, 0.01045583188533783, 0.01874997466802597, 0.031030211597681046, -0.04553346335887909, -0.001405673217959702, 0.03550690412521362, 0.036764055490493774, -0.030861569568514824, 0.0021118635777384043, 0.011460021138191223, -0.0048676347360014915, -0.03400444984436035, 0.028607893735170364, -0.024913089349865913, -0.021632228046655655, 0.00932132825255394, 0.007213297765702009, 0.026170242577791214, 0.001082761213183403, -0.007734556216746569, -0.04651465639472008, -0.03872644156217575, 0.0002824281982611865, 0.008746410720050335, -0.015361794270575047, -0.06856082379817963, 0.010195203125476837, 0.007151973433792591, -0.0007459553889930248, -0.03615080937743187, 0.02794865518808365, 0.0034054277930408716, -0.018060073256492615, 0.027228090912103653, 0.00035668836790136993, 0.04642266780138016, 0.0008911220938898623, -0.013146446086466312, -0.02443782426416874, 0.04467491805553436, 0.018949279561638832, 0.0012945225462317467, 0.00643141008913517, 0.028331933543086052, 0.0013941748766228557, -0.010026560164988041, 0.011069077998399734, -0.007466261275112629, -0.015599426813423634, 0.004089579451829195, 0.03618147224187851, 0.03354451805353165, -0.01971583627164364, -0.0076004089787602425, -0.030646933242678642, 0.009053033776581287, 0.010080219246447086, -0.021417591720819473, 0.02584828995168209, 0.011820303276181221, 0.025955606251955032, -0.026660839095711708, -0.0009744851267896593, -0.005055441055446863, 0.026538189500570297, -0.01398199237883091, 0.013844012282788754, -0.015438450500369072, -0.018397359177470207, -0.005622692871838808, -0.034740347415208817, -0.005158925894647837, -0.01980782300233841, -0.004242890980094671, 0.016710935160517693, 0.01649629883468151, -0.010655136778950691, -0.028991172090172768, -0.013767356984317303, 0.006488901562988758, 0.02327265962958336, -0.007213297765702009, -0.015009178780019283, 0.008754076436161995, -0.00811783503741026, 0.01980782300233841, -0.008876726031303406, 0.03299259766936302, -0.014564575627446175, -0.006772527936846018, -0.011322041042149067, -0.01512416172772646, 0.03593617305159569, -0.06052730977535248, -0.0269214678555727, 0.0007296660915017128, 0.02114163152873516, -0.01471022143959999, -0.041608694940805435, -0.010233530774712563, -0.005572866648435593, 0.016848914325237274, 0.0012897314736619592, 0.028730541467666626, -0.029558423906564713, -0.015047506429255009, -0.035629551857709885, 0.030049020424485207, 0.03768392279744148, 0.005423387978225946, 0.026093587279319763, -0.013284426182508469, 0.01523914560675621, -0.04596273601055145, -0.012410551309585571, 0.030922893434762955, -0.026262229308485985, -0.02344130165874958, 0.05917816981673241, 0.01163632981479168, -0.005101434420794249, 0.012525535188615322, 0.034648358821868896, -0.005576699506491423, 0.0018474014941602945, 0.023747924715280533, 0.017922094091773033, -0.014188962988555431, 0.018228717148303986, -0.028607893735170364, -0.014564575627446175, -0.019087260589003563, 0.0013146445853635669, -0.006048131734132767, -0.010287189856171608, 0.009689276106655598, -0.012494873255491257, -0.013759691268205643, -0.0036468931939452887, 0.012188250198960304, -0.00880006980150938, 0.00010528176062507555, -0.004262054804712534, -0.023947229608893394, -0.01867331936955452, -0.03418842703104019, -0.016848914325237274, -0.020666366443037987, 0.0469132661819458, -0.013782688416540623, -0.01755414716899395, -0.03161279484629631, -0.014802208170294762, 0.0423445887863636, 0.006745698396116495, 0.004698992241173983, -0.007174970116466284, -6.550166631313914e-07, 0.007117478176951408, -0.005730010569095612, -0.02569497749209404, 0.016756927594542503, -0.014786876738071442, -0.012609856203198433, -0.012195915915071964, -0.026185574010014534, -0.0041470713913440704, 0.014303946867585182, 0.029880376532673836, -0.04099544882774353, 0.01629699394106865, 0.017891431227326393, -0.017983417958021164, 0.01159800123423338, -0.005864158272743225, -0.019301895052194595, -0.010241196490824223, 0.01469489000737667, 0.01743149757385254, -0.02577163279056549, -0.029849715530872345, 0.026630176231265068, -0.0025238876696676016, -0.007726890500634909, -0.03277796134352684, 0.021816201508045197, -0.0036488096229732037, -0.03286994621157646, 0.0004903567023575306, -0.03860379010438919, 0.015055172145366669, -0.008892056532204151, -0.02088100276887417, -0.0017419998766854405, -0.022598089650273323, -0.011030749417841434, -0.023916566744446754, -0.0016145599074661732, -0.00872341450303793, -0.018290041014552116, -0.04225260019302368, 0.032195378094911575, 0.007872536778450012, -0.0025296369567513466, -0.0001810990070225671, -0.03624279797077179, 0.008531775325536728, 0.012134591117501259, 0.008623762056231499, 0.02226080372929573, -0.009788927622139454, 0.016664940863847733, -0.0018138645682483912, 0.03771458566188812, -0.006837685126811266, -0.0031352166552096605, -0.006803189869970083, 0.00246639596298337, -0.02695213072001934, -0.0009505302296020091, 0.025020407512784004, -0.03375915437936783, -0.02564898505806923, 0.02945110574364662, 0.011467686854302883, -0.001661511487327516, 0.016710935160517693, -0.004607005510479212, -0.011590336449444294, -0.0018905202159658074, 0.021862193942070007, 0.01047882903367281, 0.038971737027168274, -0.009627951309084892, 0.0008599807042628527, 0.027611369267106056, 0.014135303907096386, 0.0421912781894207, -0.022506102919578552, 0.0029857379850000143, 0.01121472381055355, 0.0014133388176560402, -0.02088100276887417, 0.02328798919916153, -0.02127961255609989, -0.006385416723787785, 0.0007593701593577862, -0.021478915587067604, -0.02581762708723545, 0.022736068814992905, 0.027136104181408882, -0.023579280823469162, -8.773479930823669e-05, 0.035537563264369965, -0.00414323853328824, -0.01770745776593685, -0.04654531925916672, -0.008968712761998177, 0.019516531378030777, -0.0074355993419885635, -0.020344411954283714, -0.011927621439099312, -0.030141007155179977, -0.027534713968634605, 0.009497636929154396, -0.048538364470005035, 0.005400391295552254, 0.007443264592438936, -0.013690701685845852, 0.02088100276887417, -0.004476690664887428, -0.028761204332113266, -0.004227559547871351, -0.008048844523727894, 0.0290524959564209, 0.016664940863847733, -0.028408588841557503, 0.00871574878692627, 0.020283088088035583, -0.003144798567518592, -0.01225724071264267, -0.03887975215911865, -0.055560022592544556, -0.041486043483018875, -0.015469112433493137, 0.01408164482563734, 0.024269182235002518, 0.01172831654548645, -0.02210749313235283, 0.02810196578502655, 0.018366696313023567, -0.027764679864048958, -0.00883073266595602, 0.009267669171094894, 0.00810250360518694, -0.018520008772611618, -0.02344130165874958, -0.04476690664887428, -0.018489345908164978, -0.022705407813191414, 0.0032578655518591404, -0.02791799232363701, 0.015599426813423634, 0.008125499822199345, -0.017278186976909637, 0.012916479259729385, -0.015116496942937374, 0.010233530774712563, -0.011575005017220974, -0.013644707389175892, 0.007021658588200808, 0.02218414843082428, -0.01048649474978447, 0.004764149431139231, -0.0008820192306302488, -0.012073266319930553, 0.00010438344907015562, -0.019117921590805054, -0.016618948429822922, 0.028439249843358994, -0.001186246401630342, 0.012640519067645073, -0.00944397784769535, 0.036764055490493774, -0.007512255106121302, -0.026660839095711708, 0.013798018917441368, 0.005841161590069532, -0.007021658588200808, 0.009397984482347965, -0.016036365181207657, 0.042620547115802765, -0.018044743686914444, -0.014043317176401615, -0.034587033092975616, -0.016940901055932045, -0.03038630448281765, -0.0037043849006295204, -0.009198679588735104, 0.026584183797240257, 0.01172831654548645, 0.0004877216415479779, -0.052187174558639526, -0.013131114654242992, 0.04433763399720192, -0.00995757058262825, -0.00818682461977005, -0.0516352541744709, -0.0025143057573586702, -0.03949299827218056, -0.05040876194834709, -0.004277385771274567, -0.0036258127074688673, -0.0420379638671875, -0.021540241315960884, 0.04899829998612404, -0.000905974127817899, 0.01119939237833023, -0.006527229677885771, -0.016603616997599602, 0.015867721289396286, 0.00827881135046482, 0.00011785807873820886, -0.00011480382818263024, 0.008838397450745106, 0.009466974064707756, 0.006485069170594215, -3.419561107875779e-05, 0.014234956353902817, -0.01640431210398674, -0.03627346083521843, -0.006331757642328739, -0.004189231898635626, -0.0010511407162994146, -0.012119260616600513, -0.02594027668237686, 0.021938851103186607, 0.011030749417841434, -0.02452981099486351, -0.03058560937643051, 0.028362594544887543, -0.0395236611366272, 0.0042122285813093185, 0.003689053701236844, -0.010379176586866379, -0.006270433310419321, 0.00528924074023962, -0.01634298637509346, -0.0014554993249475956, 0.006009804084897041, -0.027718687430024147, 0.030033688992261887, 0.028868522495031357, 0.006186111830174923, 0.005070772022008896, -0.003357517998665571, -0.006013636477291584, 0.001019520335830748, -0.012571528553962708, 0.010225865058600903, -0.023165341466665268, -0.02224547229707241, -0.017201529815793037, 0.017891431227326393, -0.030646933242678642, -0.0006779234972782433, -0.02554166689515114, 0.026492197066545486, -0.01859666407108307, -0.00528924074023962, 0.0023188337218016386, -0.01887262426316738, -0.031198853626847267, -0.021739546209573746, -0.018274709582328796, 0.019071929156780243, 0.01283982302993536, 0.001421962515451014, 0.014756214804947376, -0.02807130292057991, 0.0026580351404845715, 0.0034092606510967016, -0.010287189856171608, -0.00491746049374342, 0.01225724071264267, -0.0034035113640129566, 0.013913002796471119, 0.028745872899889946, 0.014771546237170696, 0.022000174969434738, -0.026078255847096443, 0.006910508032888174, -0.015852391719818115, 0.016971563920378685, -0.02900650165975094, 0.019041266292333603, -0.015285138972103596, -0.009781262837350368, 0.005519207566976547, 0.002261342015117407, 0.03740796446800232, -0.013867009431123734, 0.017830107361078262, 0.029589084908366203, 0.010110882110893726, -0.001017603906802833, -0.007692395709455013, -0.020727690309286118, -0.028684549033641815, -0.0027270251885056496, -0.0031256345100700855, 0.0013865092769265175, -0.04117942228913307, 0.017216861248016357, 0.0022536765318363905, 0.00935199111700058, 0.03529226779937744, -0.001944179181009531, 0.023134678602218628, -0.022966036573052406, -0.011582670733332634, -0.01625099964439869, 0.008455119095742702, -0.009022371843457222, 0.00668437359854579, -0.014119972474873066, -0.03314590826630592, 0.04191531613469124, -0.012479541823267937, 0.020237095654010773, 0.03182743117213249, -0.017155537381768227, 0.0023437468335032463, -0.034587033092975616, -0.004522684030234814, 0.006485069170594215, 0.04525750130414963, 0.024897759780287743, 0.006220607087016106, -0.012433548457920551, -0.010087884962558746, 0.01287815161049366, 0.005867991130799055, 0.00943631213158369, -0.007328281179070473, -0.004787146113812923, -0.006086459383368492, 0.0018186555244028568, 0.02452981099486351, -0.0033306884579360485, 0.007910864427685738, 0.04252856224775314, -0.012402886524796486, -0.01618967577815056, 0.03884908929467201, 0.022843386977910995, 0.01057081576436758, 0.020697029307484627, -0.04004491865634918, -0.007627238519489765, 0.018964610993862152, 0.0006597177707590163, 0.022030837833881378, 0.029635079205036163, 0.0032061231322586536, 0.02103431336581707, 0.007404936943203211, -0.037837233394384384, -0.01753881573677063, 0.01107674278318882, 0.007792048156261444, 0.006400747690349817, 0.02791799232363701, -0.01882662996649742, 0.005745342001318932, -0.004691326525062323, -0.036825381219387054, -0.011896958574652672, -0.005986807402223349, -0.0015321550890803337, 0.031214185059070587, 0.001655762316659093, -0.020743021741509438, 0.015975039452314377, -0.014066314324736595, -0.010908100754022598, 0.01859666407108307, 0.0009136396693065763, 0.01626633107662201, 0.011222388595342636, 0.012924144975841045, -0.01775345206260681, -0.04688260331749916, 0.018933948129415512, 0.0031869590748101473, -0.020543716847896576, 0.011306710541248322, 0.02232212945818901, -0.005749174859374762, -0.014403599314391613, 0.003008734667673707, 0.0042083957232534885, -0.0017649965593591332, 0.002849674317985773, -0.015116496942937374, -0.051911212503910065, -0.0013165610143914819, -0.05126730725169182, 0.0008087172172963619, -0.015714410692453384, -0.013445403426885605, 0.029681071639060974, -0.00038423651130869985, 0.019056597724556923, -0.0211722943931818, 0.02796398475766182, -0.022828055545687675], "id": 33}, {"title": "Azhdarcho", "text": "Azhdarcho /\u0251\u02d0\u0292\u02c8d\u0251rxo\u028a/ is a genus of pterodactyloid pterosaur from the late Cretaceous Period of the Bissekty Formation (middle Turonian stage, about 92 million years ago) of Uzbekistan. It is known from fragmentary remains including the distinctive, elongated neck vertebrae that characterizes members of the family Azhdarchidae, which also includes such giant pterosaurs as Quetzalcoatlus.", "vector": [0.0036942523438483477, 0.0021034819073975086, -0.028384335339069366, -0.009568016044795513, 0.02500004880130291, -0.02737060934305191, 0.005770441610366106, -0.02774490788578987, -0.019089244306087494, 0.041640754789114, -0.0025596588384360075, -0.005770441610366106, -0.023877151310443878, 0.0166563019156456, 0.04532136023044586, 0.027838481590151787, -0.06618852913379669, -0.01304587721824646, 0.016157235950231552, -0.056425563991069794, 0.03462265059351921, 0.02155338041484356, 0.03683725371956825, -0.02389274723827839, 0.0197442676872015, 0.021116698160767555, -0.013427973724901676, 7.980657392181456e-05, -0.0616033636033535, -0.025421135127544403, -0.021444208920001984, -0.01476141344755888, 0.04613234102725983, 0.039488535374403, 0.019806651398539543, 0.06674997508525848, 0.011572075076401234, -0.012078938074409962, 0.016765473410487175, -0.02935127355158329, -0.02718345820903778, 0.02825956791639328, -0.012281683273613453, 0.030879661440849304, 0.022910213097929955, -0.013903644867241383, 0.022910213097929955, 0.056987009942531586, -0.010012496262788773, -0.001261309371329844, 0.00633968785405159, 0.039488535374403, -0.07841562479734421, -0.017623240128159523, 0.03170623630285263, 0.03967568650841713, 0.0361822284758091, 0.09532146155834198, -0.0005619357689283788, 0.040486667305231094, 0.011587671004235744, -0.000763706280849874, 0.0004885867820121348, 0.031768620014190674, 0.04416727274656296, 0.025842221453785896, 0.017981944605708122, -0.02010297030210495, -0.06506562978029251, 0.004604656714946032, -0.01863696798682213, 0.04363701492547989, 0.01668749377131462, -0.02718345820903778, 0.017248941585421562, 0.0038989470340311527, -0.009536824189126492, 0.0050257425755262375, 0.0018792925402522087, -0.006316294427961111, -9.381841664435342e-05, 0.010106070898473263, -0.03955091908574104, 0.021319443359971046, 0.07585791498422623, 0.014519679360091686, -0.017794795334339142, -0.04151598736643791, -0.025311963632702827, -0.008086415939033031, 0.006636008154600859, -0.021990060806274414, -0.028384335339069366, -0.006133043672889471, 0.010620731860399246, -0.014971956610679626, -0.008710247464478016, 0.0168746430426836, -0.035246480256319046, -0.03209613263607025, -0.04759834706783295, -0.04675617441534996, 0.007450887933373451, -0.0124922264367342, -0.010698710568249226, -0.006441060453653336, -0.0051739029586315155, 0.03824087232351303, 0.004222559742629528, 0.030723702162504196, -0.023409279063344002, -0.03148789703845978, 0.02662201039493084, -0.00018398156680632383, -0.0351841002702713, 0.010230837389826775, 0.012234896421432495, -0.035215288400650024, -0.058453015983104706, -0.017825985327363014, 0.016032470390200615, -0.01756085827946663, 0.046818558126688004, 0.00924050435423851, -0.0073378183878958225, -0.02013416215777397, 0.02407989650964737, 0.014815999194979668, 0.025608284398913383, 0.04475991427898407, -0.03873993828892708, -0.026497244834899902, 0.05670628696680069, 0.011205573566257954, 0.00239785248413682, 0.021319443359971046, 0.005864016246050596, -0.025951391085982323, -0.005446828901767731, 0.03986283391714096, 0.025311963632702827, 0.015252681449055672, 0.025592688471078873, -0.0062149218283593655, -0.022879021242260933, 0.013014685362577438, -0.012936706654727459, -0.0065034436993300915, 0.07199016213417053, -0.02063322812318802, 0.042826034128665924, 0.03621342033147812, 0.01958831027150154, 0.011774820275604725, -0.03189338743686676, 0.020368099212646484, -0.03315664455294609, -0.037741806358098984, 0.030536552891135216, 0.0071935574524104595, 0.011408318765461445, 0.07011866569519043, -0.007860277779400349, -0.010862466879189014, 0.001418241998180747, -0.0062500122003257275, 0.049563415348529816, -0.0340300090610981, -0.021475400775671005, 0.019697479903697968, 0.044323232024908066, 0.03356213495135307, -0.005228488240391016, 0.042295776307582855, -0.04298199340701103, 0.03281353786587715, 0.01176702231168747, 0.03640057146549225, -0.033063072711229324, 0.03098883107304573, -0.0050257425755262375, 0.007131174206733704, 0.02317534200847149, -0.00895978044718504, 0.04001879319548607, 0.05539624020457268, 0.08970697224140167, -0.009224908426404, -0.03212732449173927, -0.0043122353963553905, -0.061353832483291626, -0.060449276119470596, 0.02864946238696575, -0.01991582103073597, -0.005747048184275627, 0.039207812398672104, 0.011478500440716743, -0.008024033159017563, -0.04831575229763985, 0.014862786047160625, 0.004499385133385658, -0.04622591659426689, 0.041048113256692886, 0.05000009760260582, 0.02339368313550949, 0.02682475559413433, -0.012593599036335945, 0.028025630861520767, 0.03499694913625717, 0.029865935444831848, 0.01994701288640499, -0.06718665361404419, -0.008203384466469288, 0.02878982573747635, -0.02172493375837803, 0.002629839815199375, -0.00842172559350729, -0.027277033776044846, 0.0069752163253724575, 0.008990972302854061, 0.03696201741695404, -0.03133193776011467, 0.01632879115641117, 0.03643176332116127, -0.016235215589404106, 0.01901126652956009, -0.006456656381487846, -0.005501414183527231, 0.009022163227200508, 0.012850929982960224, 0.020757993683218956, -0.08521538972854614, 0.036868441849946976, -0.002249692566692829, 0.01664070598781109, 0.0325951986014843, 0.022551510483026505, -0.01306147314608097, 0.0361822284758091, 0.003965229261666536, -0.00788367073982954, -0.0012856777757406235, -0.0033063071314245462, -0.02445419691503048, 0.018153497949242592, 0.006889439653605223, 0.03655652701854706, -0.019853439182043076, -0.02336249127984047, -0.01991582103073597, 0.02900816686451435, -0.011470702476799488, 0.009029961191117764, 0.002471932442858815, 0.04541493579745293, -0.03983164206147194, 0.04260769486427307, -0.033780477941036224, -0.01058174204081297, 0.0024972755927592516, -0.007825186476111412, -0.03212732449173927, 0.029631998389959335, 0.006643805652856827, -0.038303256034851074, -0.009552420116961002, 0.014433901757001877, 0.01868375390768051, -0.008835013955831528, -0.0547100268304348, 0.023877151310443878, 0.052651382982730865, 0.023066170513629913, -0.010909253731369972, 0.050124865025281906, 0.023877151310443878, 0.01737370900809765, 0.00498285423964262, 0.024578962475061417, 0.028743037953972816, -0.025686264038085938, -0.016188427805900574, 0.023268915712833405, 0.029943913221359253, 0.047535963356494904, 0.014956360682845116, -0.02225518971681595, -0.031082406640052795, 0.005641776602715254, 0.001133618876338005, -0.014597658067941666, -0.03477860987186432, -0.012344066053628922, -0.033593326807022095, -0.0337492860853672, 0.015268276445567608, -0.020617632195353508, 0.029413657262921333, -0.031815409660339355, -0.04042428359389305, -0.033593326807022095, 0.04095454141497612, -0.028353143483400345, 0.037242744117975235, 0.02099193073809147, 0.006281203590333462, 0.007680925540626049, 0.017124176025390625, -0.012648184783756733, 0.04472872242331505, -0.030739298090338707, 0.03384286165237427, -0.030474171042442322, 0.0045305765233933926, -0.013100462034344673, -0.02662201039493084, 0.00548191973939538, -0.017124176025390625, -0.032158516347408295, 0.0070492965169250965, -0.0061057512648403645, -0.04750477150082588, -0.019120436161756516, -0.015369649045169353, 0.042295776307582855, -0.014550870284438133, -0.0042030648328363895, 0.003674757666885853, 0.0033667408861219883, -0.03799134120345116, -0.02916412428021431, 0.023112958297133446, 0.009279494173824787, -0.009638196788728237, -0.023440469056367874, 0.04148479551076889, 0.056082453578710556, -0.04563327506184578, 0.0005473147029988468, -0.025608284398913383, -0.03655652701854706, 0.053368788212537766, 0.030536552891135216, 0.0007539588841609657, 0.0061057512648403645, -0.010441380552947521, 0.04859647527337074, -0.03593269735574722, 0.018340647220611572, 0.004475991241633892, 0.0006062862812541425, 0.009903325699269772, -0.07498455047607422, 0.023190937936306, -0.021147888153791428, -0.037398699671030045, 0.033437371253967285, -0.013505952432751656, 0.002709768246859312, 0.01286652497947216, -0.011907384730875492, 0.011681245639920235, 0.013474761508405209, -0.015798533335328102, 0.0019416756695136428, -0.03041178733110428, 0.024890877306461334, 0.03986283391714096, -0.013155047781765461, 0.031971365213394165, -0.036151036620140076, -0.00702590262517333, -0.0011219220468774438, 0.02465694211423397, -0.002581103006377816, 9.716907516121864e-05, 0.04366820678114891, -0.002540163928642869, 0.017857177183032036, 0.0019738420378416777, 0.010534955188632011, 0.08134762942790985, 0.011073010042309761, 0.021475400775671005, 0.06388034671545029, 0.01684345118701458, 0.023097362369298935, 0.04291960969567299, -0.002364711370319128, 0.026855947449803352, -0.03714916855096817, 0.05146609991788864, 0.009045557118952274, 0.018699349835515022, 0.010885859839618206, -0.06487847864627838, -0.013981624506413937, 0.030318211764097214, -0.02428264170885086, 0.004210862796753645, 0.059731870889663696, 0.09095463901758194, 0.0496881827712059, 0.004713826812803745, -0.017467282712459564, 0.017124176025390625, -0.02284782938659191, -0.027089884504675865, -0.02303497865796089, -0.00987213384360075, -0.050655119121074677, 0.007330020423978567, -0.018169093877077103, -0.050093673169612885, -0.013357792980968952, -0.007115578278899193, 0.03824087232351303, 0.035090524703264236, -0.03855278715491295, -0.03951972723007202, 0.013638516888022423, -0.02573304995894432, -0.009466643445193768, -0.007793995086103678, -0.06288222223520279, 0.039239004254341125, -0.011330340057611465, 0.026668798178434372, -0.026746777817606926, -0.03424835205078125, 0.05364951118826866, -0.018231475725769997, 0.011111998930573463, 0.03945734351873398, 0.0066126142628490925, -0.03080168180167675, 0.01161106489598751, -0.030131062492728233, 0.005801633466035128, -0.021459804847836494, -0.01868375390768051, 0.0680600181221962, -0.02298819273710251, -0.021335039287805557, 0.016359981149435043, -0.018418626859784126, -0.019494734704494476, 0.045758042484521866, 0.03627580404281616, 0.0035402439534664154, 0.006004378665238619, -0.011182180605828762, -0.0221148282289505, -0.017264537513256073, -0.010215241461992264, -0.021475400775671005, -0.002585001988336444, -0.004148479551076889, 0.010324412025511265, 0.0054975152015686035, -0.001987488241866231, 0.034529075026512146, -0.01935437321662903, -0.06469132751226425, 0.020024992525577545, 0.04001879319548607, 0.011470702476799488, 0.008858407847583294, 0.025436731055378914, -0.00494386488571763, 0.010285422205924988, -0.025795433670282364, -0.06110429763793945, -0.029429253190755844, 0.01701500453054905, 0.026497244834899902, -0.04416727274656296, -0.027588950470089912, -0.0023140250705182552, -0.012250491417944431, 0.032501623034477234, -0.004569565877318382, 0.029086144641041756, -1.8657070540939458e-05, -0.035059332847595215, -0.012889918871223927, 0.02122586779296398, -0.007961650379002094, -0.029990701004862785, 0.01954152248799801, 0.004959460813552141, -0.028119206428527832, -0.026044966652989388, 0.012000959366559982, -0.02701190486550331, -0.015549001283943653, -0.011267957277595997, -0.024750515818595886, -0.05892089009284973, -0.0068660457618534565, -0.011938575655221939, -0.01403620932251215, 0.0040938942693173885, -0.058577779680490494, 0.03156587481498718, 0.013778879307210445, -0.04585161805152893, 0.041204072535037994, -0.003930138889700174, -0.06955721974372864, 0.04691212996840477, 0.0019445999059826136, 0.00697131734341383, 0.014566466212272644, 0.02719905413687229, -0.004561767913401127, 0.006148639600723982, 0.01718655787408352, 0.0003533420676831156, -0.013880251906812191, -0.012375257909297943, -0.00693232798948884, -0.016079258173704147, 0.009568016044795513, 0.031253959983587265, 0.01650034449994564, -0.03126955404877663, -0.004553970415145159, 0.008811620064079762, -0.023767981678247452, -0.012461034581065178, 0.009154727682471275, -0.002286732429638505, 0.011104200966656208, -0.025078028440475464, 0.03271996229887009, -0.03225209191441536, -0.0050257425755262375, 0.005255780648440123, 0.0010653872741386294, -0.021600166335701942, 0.010722104460000992, -0.022192806005477905, 0.040642622858285904, -0.022021252661943436, -0.025421135127544403, 0.018730541691184044, -0.028524696826934814, 0.036681294441223145, 0.017326921224594116, 0.024766111746430397, -0.008647864684462547, -0.006316294427961111, -0.018059922382235527, 0.0035421934444457293, -0.001118997810408473, -0.0008036704966798425, -0.0124922264367342, 0.007135073188692331, -0.008312555029988289, -0.015720555558800697, -0.015198095701634884, -0.00018239761993754655, 0.020212141796946526, 0.00037576103932224214, 0.001164810499176383, -0.003859957680106163, 0.010542753152549267, 0.025811029598116875, 0.020726801827549934, 0.022223997861146927, -0.007630239240825176, 0.0344666913151741, 0.0010634377831593156, 0.025608284398913383, -0.03080168180167675, -0.0001477944606449455, -0.02772931195795536, 0.016812259331345558, -0.02535875141620636, 0.0249844528734684, -0.008195586502552032, -0.039394959807395935, 0.030708108097314835, -0.0010917051695287228, -0.018169093877077103, 0.020945142954587936, 0.016344387084245682, -0.021054314449429512, 0.006690593436360359, -0.03808491677045822, -0.012874322943389416, 0.02534315548837185, -0.005380547139793634, 0.002019654493778944, 0.03209613263607025, -0.007817388512194157, 0.024329429492354393, 0.011236765421926975, -0.015798533335328102, 0.0291485283523798, 0.011728032492101192, 0.022379957139492035, -0.039769262075424194, -0.020617632195353508, -0.013576134108006954, 0.010807881131768227, -0.03749227523803711, -0.025311963632702827, -0.00760294683277607, -0.0021853598300367594, -0.012078938074409962, 0.03045857511460781, 0.019603906199336052, 0.06762333959341049, -0.013810070231556892, -0.002298429375514388, -0.032501623034477234, -0.011634457856416702, -0.016344387084245682, -0.0036864543799310923, 0.025467922911047935, 0.010098272934556007, -0.017436090856790543, -0.01631319522857666, -0.022598296403884888, -0.018247071653604507, -0.022146020084619522, -0.011790416203439236, 0.01503434032201767, -0.008211182430386543, 0.018184689804911613, 0.005014046095311642, -0.014722424559295177, 0.008562088012695312, -0.017280133441090584, -0.011891788803040981, -0.009661590680480003, 0.019666289910674095, -0.03711797669529915, -0.050124865025281906, 0.0031971365679055452, 0.011774820275604725, -0.1061137467622757, -0.024875283241271973, -0.04834694415330887, 0.05268257483839989, 0.002160016680136323, 0.0009099167655222118, -0.002680526115000248, -0.01403620932251215, 0.011540883220732212, 0.00924050435423851, -0.004674837458878756, -0.012827536091208458, -0.01614164002239704, 0.010706508532166481, 0.009521229192614555, 0.028337547555565834, -0.005548201501369476, 0.017451686784625053, -0.0344666913151741, -0.018215881660580635, 0.006027772091329098, 0.0058874101378023624, -0.023830365389585495, -0.030692512169480324, -0.01403620932251215, 0.0104101886972785, -0.013973826542496681, 0.0347474180161953, 0.008024033159017563, -0.03767942637205124, 0.01632879115641117, 0.016890238970518112, -0.03247043117880821, 0.013474761508405209, 0.0022282481659203768, -0.03192457929253578, 0.0033024081494659185, 0.06762333959341049, 0.02320653386414051, 0.00511151971295476, -0.013334399089217186, -0.08727402985095978, -0.011759224347770214, 0.05527147278189659, -0.0061408416368067265, 0.012305077165365219, 0.0031425512861460447, -0.021069910377264023, -0.025124814361333847, -0.05817228928208351, -0.031425513327121735, -0.005727553274482489, -0.014028411358594894, 0.0027370608877390623, -0.00924050435423851, -0.0022594397887587547, -0.03189338743686676, -0.008983174338936806, 0.015213691629469395, 0.010511561296880245, -0.017108580097556114, 0.024688132107257843, -0.01358393207192421, 0.005275275558233261, 0.013194036670029163, -0.030754894018173218, -0.014714626595377922, -0.004604656714946032, 0.008655662648379803, -0.040829773992300034, -0.0042030648328363895, 0.013240824453532696, 0.0011765073286369443, -0.02085156925022602, 0.04335629194974899, 0.019151628017425537, 0.013716495595872402, -0.026762373745441437, 0.05835944041609764, 0.00905335508286953, -0.025608284398913383, -0.004413607995957136, 0.018668157979846, 0.009318483993411064, 0.057517267763614655, -0.03247043117880821, 0.004659241996705532, -0.03480979800224304, 0.015322862192988396, -0.022411147132515907, 0.01611045002937317, -0.03183100372552872, 0.03137872740626335, 0.000874826277140528, -0.01176702231168747, 0.00788367073982954, -0.022052444517612457, 0.013006887398660183, 0.0011121747083961964, -0.0042186607606709, -0.008679056540131569, -0.015198095701634884, 0.0013617072254419327, -0.0035051533486694098, -0.016437960788607597, 0.024173472076654434, -0.0037546860985457897, -0.0006467378698289394, -0.009739569388329983, 0.007969447411596775, -0.004803502932190895, -0.020383695140480995, -0.0024660839699208736, 0.0013285662280395627, -0.045009445399045944, -0.007283233106136322, 0.015330660156905651, 0.011267957277595997, 0.05134133622050285, -0.02952282689511776, 0.03621342033147812, -0.033780477941036224, -0.009170323610305786, -0.006764673162251711, -0.004199165850877762, -0.016079258173704147, 0.03136312961578369, 0.045945193618535995, -0.006963519379496574, 0.007045397534966469, -0.007852479815483093, -0.008257970213890076, -0.021069910377264023, 0.022395551204681396, -0.005856218747794628, 0.02573304995894432, -0.0007661430863663554, -0.018403030931949615, -0.02624771185219288, -0.006312395446002483, -0.004557868931442499, -0.01650034449994564, -0.02049286663532257, 0.009045557118952274, -0.016703089699149132, 0.03789776563644409, 0.02389274723827839, -0.05127895250916481, 0.007871974259614944, 0.0427948422729969, -0.04532136023044586, -0.027230245992541313, 0.04238935187458992, 0.045570895075798035, 0.004234256688505411, -0.0063006985001266, -0.05240184813737869, -0.011291351169347763, -0.020742397755384445, 0.012078938074409962, 0.015876512974500656, 0.060449276119470596, -0.023050574585795403, 0.029928317293524742, 0.012796344235539436, 0.01957271434366703, 0.01611045002937317, 0.009801953099668026, 0.019245203584432602, 0.01593889482319355, 0.05131014436483383, -0.014176571741700172, 0.02503124065697193, -0.04769192263484001, -0.035402439534664154, -0.002002109307795763, -0.02715226821601391, -0.016968218609690666, -0.024516578763723373, 0.01699940860271454, 0.03767942637205124, -0.020212141796946526, -0.018215881660580635, 0.019635098055005074, 0.012804142199456692, -0.002598648192360997, -0.002093734685331583, -0.02194327488541603, -0.011618861928582191, -0.008226778358221054, -0.005988782737404108, -0.004051005933433771, -0.003918441943824291, -0.015307266265153885, -0.019151628017425537, 0.0021834103390574455, 0.0718030110001564, 0.016593918204307556, -0.018356243148446083, 0.0023861555382609367, -0.02195887081325054, -0.05330640450119972, -0.024391813203692436, -0.011696841567754745, 0.0021834103390574455, -0.003688403870910406, 0.023674406111240387, 0.039956409484148026, -0.03767942637205124, -0.002427094615995884, 0.021990060806274414, 0.04713047295808792, -0.0221148282289505, -0.01832505129277706, 0.014784807339310646, 0.0010926799150183797, -0.02153778448700905, 0.0024797304067760706, 0.006678896490484476, -0.05361831933259964, 0.02846231311559677, 0.02916412428021431, 0.02029012143611908, 0.015057733282446861, -0.047036897391080856, 0.014433901757001877, 0.02500004880130291, 0.010230837389826775, 0.011899586766958237, 0.032158516347408295, -0.005517010111361742, 0.015868714079260826, -0.026731181889772415, -0.043574631214141846, -0.015276074409484863, -0.00687774270772934, 0.004959460813552141, -0.013544942252337933, -0.0030372797045856714, 0.04675617441534996, 0.027074288576841354, 0.04660021513700485, -0.04669379070401192, 0.05361831933259964, 0.02646605297923088, 0.018449816852808, -0.043761782348155975, -0.050623927265405655, 0.02484409138560295, -0.03764823451638222, 0.001152138807810843, 0.030567744746804237, 0.021693741902709007, 0.000977660994976759, 0.04603876546025276, -0.028898995369672775, -0.04978175461292267, 0.005478020757436752, -0.026528436690568924, 0.01846541278064251, -0.02228638157248497, 0.00296514923684299, -0.0315190888941288, 0.026200924068689346, -0.025655072182416916, 0.0006369904731400311, 0.0031912880949676037, 0.03265758231282234, 0.028337547555565834, 0.03714916855096817, 0.036306995898485184, -0.02665320225059986, 0.03746108338236809, 0.02083597332239151, 0.012258289381861687, -0.013038079254329205, 0.007454786915332079, 0.027027500793337822, 0.010527157224714756, -0.0037936754524707794, -0.017280133441090584, 0.0025889009702950716, -0.010020294226706028, 0.02370559796690941, 0.05430453643202782, -0.008741439320147038, 0.014254550449550152, 0.005454626865684986, 0.03515290841460228, 0.03356213495135307, -0.040330708026885986, 0.019837843254208565, -0.017857177183032036, -0.03222090005874634, 0.006417667027562857, 0.05611364543437958, -0.021038718521595, 0.005154408048838377, -0.0670618936419487, 0.025623880326747894, 0.02066441997885704, -0.006238315254449844, -0.03356213495135307, 0.0030489766504615545, -0.01203215029090643, 0.022801043465733528, 0.022223997861146927, -0.006834854371845722, 0.016172831878066063, -0.01977545954287052, 0.02354964055120945, 0.00941985659301281, 0.01813790202140808, 0.004682635422796011, -0.0045188795775175095, -0.020602036267518997, -0.010550551116466522, 0.010722104460000992, 0.05311925336718559, -0.012944504618644714, 0.0016278104158118367, -0.0064683533273637295, -0.017061792314052582, 0.0012700819643214345, 0.006039469037204981, -0.06843432039022446, 0.01331100519746542, 0.007189658470451832, 0.003140601795166731, 0.01203215029090643, -0.014082997106015682, 0.025124814361333847, -0.012266087345778942, -0.007045397534966469, 0.0016346335178241134, 0.047348812222480774, 0.01476141344755888, -0.02935127355158329, 0.018028730526566505, 0.0052440837025642395, 0.017326921224594116, 0.008078617975115776, 0.02774490788578987, 0.005832824856042862, 0.03917662054300308, 0.026232115924358368, 0.02482849545776844, -0.0601685531437397, 0.03222090005874634, 0.013303207233548164, 0.00988772977143526, 0.02573304995894432, 0.03808491677045822, -0.002852079691365361, 0.026044966652989388, -0.018777329474687576, 0.008546492084860802, 0.015330660156905651, -0.010807881131768227, -0.005279174540191889, 0.014660040847957134, -0.013981624506413937, 0.02590460516512394, 0.012484428472816944, 0.021069910377264023, -0.008686854504048824, 0.0028891197871416807, 0.00040037313010543585, 0.013022483326494694, 0.000405734172090888, -0.01394263468682766, 0.03368690237402916, -0.03200255706906319, 0.020009396597743034, -0.03955091908574104, 0.009630399756133556, 0.06650044023990631, -0.037741806358098984, 0.004655343014746904, 0.013240824453532696, -0.006363081745803356, -0.024033110588788986, 0.02935127355158329, -0.011314744129776955, -0.021147888153791428, -0.017607644200325012, -0.028914591297507286, 0.028945783153176308, 0.017077388241887093, 0.0166563019156456, -0.03593269735574722, -0.019978204742074013, -0.004343427252024412, -0.013186238706111908, 0.0025148207787424326, 0.011119796894490719, 0.016437960788607597, -0.01832505129277706, 0.006125245708972216, -0.008024033159017563, -0.006916732061654329, -0.011213371530175209, 0.005649574100971222, 0.011283553205430508, 0.017311325296759605, 0.011275755241513252, -0.0168746430426836, 0.0177324116230011, 0.023518448695540428, 0.03041178733110428, 0.018714945763349533, -0.0027526565827429295, -0.030848469585180283, -0.008218980394303799, -0.013841262087225914, -0.010846870951354504, 0.01579073630273342, 0.01955711841583252, -0.02370559796690941, -0.0024875281378626823, -0.0003506615466903895, -0.0293668694794178, 0.0337492860853672, -0.007669229060411453, -0.00661651324480772, -0.002048896625638008, 0.006316294427961111, 0.014893977902829647, 0.004101692233234644, -0.007981144823133945, 0.018886499106884003, 0.007595148868858814, 0.0016726483590900898, -0.005973186809569597, 0.0005955641390755773, 0.0006623336230404675, 0.004382416605949402, 0.026138540357351303, 0.009529026225209236, -0.008905194699764252, -0.009630399756133556, 0.0009065052145160735, 0.07517170161008835, 0.004078298807144165, 0.005364951211959124, -0.00968498457223177, -0.01241424772888422, 0.0018802672857418656, 0.0025284672155976295, 0.005322062876075506, 0.013014685362577438, -0.0273550134152174, -0.0179507527500391, 0.0034271744079887867, -0.0029437050689011812, -0.015478819608688354, 0.03696201741695404, -0.001530336681753397, -0.06462894380092621, -0.017638836055994034, -0.004861987195909023, 0.027074288576841354, 0.015361851081252098, 0.017295729368925095, 0.021631358191370964, 0.005864016246050596, 0.027417395263910294, -0.0050257425755262375, 0.01595449075102806, 0.023596428334712982, 0.007177961524575949, 0.003263418795540929, -0.0019104840466752648, 0.0011297198943793774, -0.016983812674880028, 0.014847190119326115, -0.0034232756588608027, -0.04890839383006096, 0.022177211940288544, 0.0030801682732999325, 0.037772998213768005, -0.033967625349760056, -0.014901775866746902, -0.002690273569896817, -0.004904875531792641, 0.04915792495012283, 0.01441830676048994, -0.020960738882422447, -0.047910261899232864, -0.029663190245628357, 0.004437001887708902, 0.01342017576098442, 0.027760503813624382, 0.020180949941277504, -0.008320352993905544, 0.021475400775671005, -0.028181590139865875, -0.012468832544982433, -0.0016463304636999965, 0.009256100282073021, 0.0006028746720403433, -0.01449628546833992, -2.499285983503796e-05, -0.032501623034477234, -0.016968218609690666, -0.013318803161382675, 0.001906585181131959, -0.012094534002244473, 0.006027772091329098, 0.02085156925022602, -0.00057655677665025, 0.006370879709720612, -0.025280773639678955, -0.008226778358221054, -0.02153778448700905, -0.01186059694737196, -0.006218820810317993, 0.014652242884039879, -0.011002828367054462, -0.029117336496710777, 0.023487256839871407, 0.004826896358281374, 0.00018337235087528825, -0.013966028578579426, -0.02571745589375496, -0.012188108637928963, -0.013646314851939678, 0.003702050307765603, 0.023284511640667915, 0.00747428135946393, 0.013669708743691444, 0.021085506305098534, -0.02534315548837185, 0.007201355416327715, 0.005540404003113508, 0.029663190245628357, 0.005364951211959124, -0.039207812398672104, -0.0146834347397089, 0.024890877306461334, -0.0572989247739315, 0.017981944605708122, 0.036525335162878036, -0.007037599571049213, -0.01575174555182457, 0.012461034581065178, 0.026731181889772415, 0.004491587169468403, -0.00435122475028038, -0.0020274524576961994, -0.03880232200026512, 0.01321743056178093, 0.0020469471346586943, -0.01941675692796707, 0.01514351088553667, -0.01830945536494255, 0.02610735036432743, -0.010215241461992264, 0.0325951986014843, 0.011299148201942444, -0.005727553274482489, -0.023596428334712982, 0.006912833079695702, -0.028555888682603836, -0.027604544535279274, -0.019884631037712097, -0.0002941268321592361, 0.0043122353963553905, -0.012655981816351414, -0.016016874462366104, -0.00246413447894156, 0.035433631390333176, -0.0492515005171299, 0.05854658782482147, -0.03752346709370613, -0.03334379568696022, 0.01133813802152872, -0.006678896490484476, -0.03393643721938133, -0.0002990005013998598, 0.011439510621130466, 0.0315190888941288, -0.0030002398416399956, 0.008507502265274525, -0.01550221350044012, -0.020726801827549934, 0.010028092190623283, 0.009716176427900791, 0.027245841920375824, 0.02030571736395359, 0.026871543377637863, 0.05449168384075165, -0.035995081067085266, 0.016734281554818153, -0.03718036040663719, -0.014745817519724369, 0.028680654242634773, -0.0018890398787334561, -0.018808521330356598, -0.018449816852808, -0.01529946830123663, 0.002746808109804988, 0.02375238575041294, 0.016406768932938576, -0.023190937936306, 0.00018982998153660446, -0.03368690237402916, 0.00715456809848547, 0.027479778975248337, 0.009529026225209236, 0.009552420116961002, -0.010074879042804241, 0.005953692365437746, -0.002612294629216194, -0.0002709768305066973, -0.0052440837025642395, 0.04036189988255501, -0.054429300129413605, 0.001353909377939999, 0.007661431096494198, 0.02950723096728325, 0.012055544182658195, 0.04132883995771408, -0.032314471900463104, 0.021849699318408966, -0.008086415939033031, 0.02684035152196884, 0.03530886396765709, 0.015595788136124611, 0.010456976480782032, -0.008468513377010822, 0.006558028981089592, 0.02592020109295845, 0.020742397755384445, -0.003953532315790653, 0.003072370309382677, -0.05611364543437958, -0.009521229192614555, 0.031020022928714752, -0.015798533335328102, 0.02863386832177639, -0.01204774621874094, 0.01899567060172558, -0.01865256205201149, -0.02538994327187538, 0.026372477412223816, 0.03243923932313919, 0.020336907356977463, 0.02935127355158329, -0.007758904714137316, 0.00665550259873271, -0.03353094682097435, 0.0025674565695226192, 0.002142471494153142, -0.01412978395819664, 0.003436921862885356, 0.03041178733110428, -0.022567106410861015, 0.0034759112168103456, 0.008429523557424545, -0.014301338233053684, -0.005364951211959124, -0.010932647623121738, -0.03421716019511223, 0.02953842282295227, -0.040330708026885986, 0.013170643709599972, -0.07267637550830841, -0.015814129263162613, -0.010402390733361244, -0.020399291068315506, -0.015712756663560867, 0.003703999798744917, -0.00013012735871598125, 0.010995030403137207, 0.015346256084740162, -0.015346256084740162, 0.020695611834526062, -0.022567106410861015, -0.010191847570240498, 0.012523418292403221, -0.007427494041621685, -0.03140991926193237, 0.014644444920122623, -0.03206494078040123, 0.012188108637928963, 0.01904245838522911, -0.023268915712833405, 0.01813790202140808, -0.022567106410861015, 0.027292629703879356, 0.0058133299462497234, -0.03024023398756981, 0.0134981544688344, 0.02426704578101635, -0.005021844059228897, 0.017514070495963097, 0.005988782737404108, -0.010394592769443989, -0.0002485578879714012, -0.013131653890013695, 0.012086736038327217, -0.033250220119953156, 0.002836483996361494, -0.021880891174077988, 0.0009172272984869778, -0.03337498754262924, -0.016219619661569595, -0.0028910692781209946, 0.001152138807810843, 0.018200285732746124, 0.01358393207192421, -0.008484109304845333, 0.004655343014746904, 0.008912992663681507, -0.013342197053134441, 0.023596428334712982, 0.00034676259383559227, 0.025265177711844444, 0.009357472881674767, -0.02426704578101635, -0.0024524377658963203, -0.004635848104953766, 0.009232706390321255, -0.013459165580570698, -0.022036848589777946, 0.005450727883726358, -0.038116104900836945, 0.009287292137742043, -0.012102331966161728, 0.007415797561407089, 0.003327751299366355, 0.016437960788607597, 0.011353733949363232, 0.006791966035962105, -0.019136032089591026, 0.014738019555807114, 0.06063642352819443, -0.023799173533916473, -0.029429253190755844, 0.03247043117880821, 0.013264218345284462, 0.018590180203318596, 0.008897397667169571, -0.018980074673891068, 0.00687774270772934, -0.06066761538386345, 0.010215241461992264, -0.02428264170885086, 0.008616672828793526, -0.023112958297133446, 0.01941675692796707, -0.03337498754262924, -0.0018383535789325833, 0.0022438440937548876, 0.01990022510290146, 0.02878982573747635, -0.022161616012454033, 0.02116348408162594, 0.005041338503360748, -0.002095684176310897, 0.005754845682531595, 0.016625110059976578, -0.006955721415579319, 0.005489717703312635, 0.037960149347782135, 0.013880251906812191, -0.008710247464478016, 0.019089244306087494, -0.029304485768079758, 0.027448587119579315, -0.007177961524575949, 0.017514070495963097, 0.0003794162767007947, 0.020243333652615547, -0.026029370725154877, 0.036899633705616, 0.015291670337319374, -0.03148789703845978, 0.07417356967926025, 0.012125725857913494, 0.02808801457285881, -0.03237685561180115, -0.035433631390333176, -0.00022223997802939266, 0.016375577077269554, 0.005131014157086611, 0.05839063227176666, -0.004390214569866657, 0.01955711841583252, 0.027479778975248337, 0.014566466212272644, -0.0004946789122186601, 0.023315703496336937, -0.0027507070917636156, -0.020383695140480995, -0.03980045020580292, 0.0024348923470824957, 0.0062500122003257275, -0.004932167939841747, -0.011743628419935703, -0.0020469471346586943, -0.00013938735355623066, -0.03674367815256119, -0.0039008965250104666, -0.01611045002937317, 0.029429253190755844, 0.01958831027150154, -0.007704319432377815, -0.005255780648440123, -0.0016960420180112123, 0.03602627292275429, 0.010566147044301033, 0.015330660156905651, 0.028119206428527832, 0.0022613892797380686, -0.011455106548964977, 0.05995021015405655, -0.0033667408861219883, -0.012344066053628922, 0.01830945536494255, -0.01612604595720768, 0.024235855787992477, -0.01990022510290146, -0.04254531115293503, 0.000646250497084111, -0.029850339516997337, -0.04578923434019089, -0.008749237284064293, -0.008920790627598763, -0.006951822433620691, 0.03349975496530533, 0.004136783070862293, 0.007224748842418194, -0.014558668248355389, -0.02227078564465046, -0.0014270145911723375, -0.006842652335762978, 0.00457346485927701, 0.041422415524721146, -0.0017291830154135823, -0.0060082776471972466, 0.007782298605889082, -0.013342197053134441, 0.016204023733735085, -0.03117598034441471, 0.01651594042778015, -0.04441680386662483, -0.008429523557424545, 0.009380866773426533, 0.037617042660713196, 0.02046167477965355, -0.018917690962553024, 0.025655072182416916, 0.006269507110118866, -0.018730541691184044, 0.009731772355735302, 0.007053195498883724, -0.009107940830290318, -0.008616672828793526, -0.006292900536209345, 0.007903166115283966, 0.03042738325893879, 0.0001505968248238787, 0.018527796491980553, 0.015042138285934925, -0.013381186872720718, -0.018247071653604507, -0.03346856310963631, 0.024048706516623497, -0.0066477046348154545, -0.010043688118457794, 0.0018978124717250466, 0.01975986361503601, -0.018184689804911613, 0.002298429375514388, 0.0252027940005064, -0.0004084146930836141, -0.039239004254341125, 0.016952622681856155, 0.02808801457285881, -0.012445438653230667, -0.0017759704496711493, 0.015065531246364117, -0.008951982483267784, -0.04778549447655678, -0.001624886179342866, -0.003988622687757015, 0.021631358191370964, -0.010901455767452717, 0.007505473215132952, -0.007704319432377815, -0.010480369441211224], "id": 34}, {"title": "Heather McKay", "text": "Heather Pamela McKay (n\u00e9e Blundell) AM MBE (born 31 July 1941) is a retired Australian squash player, who is considered by many to be the greatest female player in the history of the game, and possibly also Australia's greatest-ever sportswoman. She dominated the women's squash game in the 1960s and 1970s, winning 16 consecutive British Open titles between 1962 and 1977, and capturing the inaugural women's World Open title in 1979, whilst remaining undefeated during that period.", "vector": [0.0002245446521556005, 0.015260408632457256, -0.020244965329766273, 0.042084988206624985, -0.028726378455758095, -0.008067311719059944, 0.016702095046639442, -0.04285184293985367, 0.021211201325058937, 0.03659430891275406, -0.05475342646241188, 0.037023745477199554, -0.014378526248037815, 0.007208434399217367, -0.005705398973077536, 0.006798167247325182, 0.000541111861821264, 0.03288273140788078, -0.03996846824884415, -0.045183081179857254, 0.03177845850586891, 0.0047391620464622974, -0.002509532030671835, -0.07214569300413132, 0.034385766834020615, 0.03269868344068527, 0.004585791379213333, -0.010651611723005772, 0.00537948589771986, -0.03613419458270073, -0.025474913418293, 0.038864195346832275, -0.0382813885807991, 0.009493661113083363, -0.006675470154732466, 0.0014541482087224722, -0.05487612262368202, 0.003623388474807143, 0.022530192509293556, -0.02849632129073143, 0.034447114914655685, 0.012292681261897087, -0.0063342200592160225, 0.013995098881423473, 0.007035891991108656, -0.009094896726310253, -0.010966022498905659, 0.017422938719391823, 0.008466076105833054, -0.031210986897349358, 0.05760612711310387, 0.023312384262681007, -0.041900940239429474, 0.031026942655444145, -0.021870696917176247, -0.0606735460460186, 0.01769900694489479, 0.07668547332286835, 0.03447778895497322, -0.009094896726310253, -0.02401788905262947, -0.06680838018655777, 0.002170198829844594, 0.025290869176387787, 0.027530085295438766, -0.08171603828668594, -0.01789838820695877, 0.015214397571980953, -0.039845772087574005, 0.003550537396222353, -0.012591754086315632, -0.004420917481184006, 0.00569389620795846, -0.019401423633098602, 0.01717754639685154, -0.017070185393095016, 0.0224381685256958, 0.014117795042693615, -0.04515240713953972, 0.022744910791516304, -0.0049883900210261345, -0.04036723077297211, -0.0341096967458725, 0.03361891210079193, 0.0121086360886693, -0.028480984270572662, 0.016763444989919662, -0.06686972826719284, -0.004815847612917423, 0.023665135726332664, -0.03549003601074219, 0.06042814999818802, 0.05506017059087753, 0.04073532298207283, -0.006510596722364426, -0.009961443021893501, -0.017745018005371094, -0.00493470998480916, 0.005072744097560644, -0.01593524031341076, -0.03506059944629669, -0.01250740047544241, 0.03745318576693535, 0.012093299068510532, 0.0024347638245671988, 0.009102565236389637, -0.029186490923166275, 0.006591116078197956, -5.056448208051734e-05, -3.447850758675486e-05, 0.03631823882460594, -0.0038266051560640335, -0.02717733196914196, -0.020505694672465324, -0.054600056260824203, -0.0035965486895292997, -0.02329704724252224, 0.05996803939342499, -0.002547874813899398, -0.02191670797765255, -0.011395460925996304, -0.006418574135750532, 0.01453956589102745, 0.008872509002685547, 0.02999935671687126, -0.01723889447748661, -0.024600699543952942, 0.021701987832784653, -0.0011799976928159595, -0.0073618050664663315, 0.01730024255812168, 0.03969240188598633, 0.003968473058193922, 0.013251249678432941, -0.02671721763908863, 0.008542761206626892, 0.03377228230237961, 0.007265948224812746, 0.0463486984372139, 0.04321993142366409, 0.025474913418293, -0.005789753049612045, 0.03177845850586891, -0.002463520737364888, -0.0367170050740242, -0.008473744615912437, 0.0211805272847414, -0.002992650493979454, -0.021686650812625885, -0.008466076105833054, 0.028266264125704765, 0.03180913254618645, 0.05027499422430992, -0.06852613389492035, 0.026502499356865883, 0.01901799626648426, -0.0459192618727684, -0.0021011820062994957, 0.014332514256238937, 0.0535571351647377, -0.04579656198620796, -0.004340397659689188, -0.004696985241025686, -0.023450417444109917, -0.035305991768836975, 0.02033698745071888, -0.0321158766746521, 0.005187772214412689, -0.018389176577329636, 0.018711255863308907, -0.04481498897075653, 0.01490765530616045, 0.022882943972945213, 0.029631266370415688, -0.029385872185230255, 0.0056593879126012325, 0.024524014443159103, -0.01869591884315014, 0.012530406005680561, 0.0017484287964180112, -0.03395632654428482, 0.0058971126563847065, -0.02323569729924202, -0.015590156428515911, -0.026962611824274063, 0.005329640116542578, 0.03015272691845894, -0.010122482664883137, -0.027806151658296585, 0.0021050162613391876, 0.014225155115127563, -0.051900725811719894, -0.021011820062994957, -0.0011723291827365756, 0.008910851553082466, -0.03133368492126465, 0.00769922137260437, 0.022668225690722466, -0.015137712471187115, -0.006253700237721205, -0.0028565337415784597, -0.051839377731084824, -0.009930768981575966, -0.010237510316073895, 0.027422724291682243, 0.015781870111823082, 0.038986895233392715, -0.0209197960793972, -0.003552454523742199, 0.030459469184279442, -0.022223450243473053, 0.013995098881423473, 0.008757480420172215, -0.03226924687623978, -0.021287886425852776, 0.011395460925996304, -0.017392264679074287, -0.002465437864884734, -0.009156245738267899, -0.011441471986472607, -0.008243688382208347, -0.015229734592139721, -0.0473916232585907, 0.020168278366327286, 0.029984019696712494, 0.07251378148794174, -0.04552049562335014, 0.017929064109921455, -0.002869953867048025, 0.00039109590579755604, -0.013151558116078377, 0.01960080675780773, 0.031686436384916306, 0.03389497846364975, 0.023450417444109917, -0.002657151548191905, 0.008596441708505154, 0.0028546166140586138, 0.03969240188598633, -0.00374416820704937, 0.03079688549041748, -0.021149853244423866, 0.015781870111823082, -0.020766425877809525, -0.012169984169304371, 0.00015984127821866423, 0.005279794801026583, -0.04576588794589043, -0.03533666580915451, -0.04539779946208, 0.04275982081890106, -0.003038661787286401, 0.026287779211997986, 0.04404813423752785, 0.010582595132291317, 0.007081903517246246, 0.05521354079246521, -0.06410905718803406, 0.028189579024910927, 0.014401531778275967, -0.017131533473730087, -0.012898496352136135, -0.010513578541576862, 0.032146550714969635, -0.00314218713901937, -0.028649691492319107, -0.02059771679341793, 0.01463925652205944, -0.037085093557834625, -0.011433803476393223, -0.022606877610087395, -0.01849653571844101, -0.030750874429941177, 0.04125678539276123, 0.00917925126850605, 0.00681350426748395, -0.06417040526866913, -0.023113001137971878, -0.004443923011422157, -0.013542653992772102, -0.021287886425852776, -0.02271423675119877, 0.010897005908191204, 0.005091915372759104, -0.025183508172631264, 0.023527102544903755, 0.039232287555933, 0.00409500440582633, 0.010383212938904762, -0.021548617631196976, 0.01756097376346588, 0.01408712100237608, 0.039324309676885605, 0.0020321649499237537, 0.051563311368227005, 0.029370535165071487, -0.03196250647306442, -0.020122267305850983, 0.04429353028535843, 0.01043689250946045, 0.03585812821984291, 0.05567365139722824, -0.04693150892853737, 0.020613055676221848, -0.06453849375247955, -0.020505694672465324, -0.04009116441011429, 0.036164868623018265, 0.0032303754705935717, -0.024339968338608742, 0.005153263919055462, 0.0027089142240583897, -0.02771412953734398, 0.023772496730089188, -0.00016259716358035803, 0.048127803951501846, 0.01651805080473423, 0.057422082871198654, -0.03239194303750992, -0.046164654195308685, 0.029339861124753952, 0.02263755165040493, 0.010076470673084259, 0.007572690490633249, 0.004624133929610252, -0.04693150892853737, 0.03190115466713905, -0.007139417342841625, -0.00224688439629972, 0.023404406383633614, 0.0036387257277965546, -0.03245329111814499, 0.017131533473730087, -0.04067397490143776, 0.05944657698273659, -0.004773670807480812, -0.028066882863640785, 0.0489560067653656, -0.04036723077297211, 0.038465432822704315, -0.048403870314359665, -0.008197677321732044, 0.007354136556386948, 0.05226881802082062, -0.013619340024888515, 0.005636382382363081, 0.01618063449859619, -0.038404084742069244, 0.01723889447748661, 0.02383384481072426, 0.0007194055942818522, 0.01250740047544241, 0.022070078179240227, 0.03573542833328247, -0.006690807640552521, 0.023941203951835632, 0.021088505163788795, -0.022806258872151375, 0.0027875169180333614, -0.043066561222076416, 0.06009073555469513, -0.02593502588570118, 0.02276024781167507, -0.009608689695596695, 0.043066561222076416, -0.005724570248275995, 0.0025612947065383196, -0.029232501983642578, 0.009332621470093727, -0.04275982081890106, -0.0009000957361422479, -0.03521396964788437, -0.011602511629462242, -0.011556500568985939, -0.0054063256829977036, -0.024861430749297142, -0.06061219796538353, -0.03493789955973625, -0.01776035502552986, 0.004286718089133501, -0.06269804388284683, 0.0703052431344986, -0.01671743206679821, -0.02861901745200157, -0.0067023104056715965, -0.0112190842628479, 0.06441579759120941, -0.026088397949934006, 0.03665565699338913, -0.017192883417010307, 0.0021491104271262884, 0.03960037603974342, 0.031747784465551376, -0.008596441708505154, 0.008136328309774399, -0.010935348458588123, 0.038465432822704315, 0.030551491305232048, -0.01250740047544241, -0.018588557839393616, -0.011403129436075687, -0.014125463552772999, -0.023971877992153168, -0.029600592330098152, -0.006234528962522745, -0.0272540170699358, 0.0489560067653656, -0.02059771679341793, -0.011686866171658039, -0.0031920326873660088, 0.03598082438111305, 0.05429331585764885, -0.03407902270555496, -0.028526995331048965, -0.03361891210079193, 0.0054753427393734455, -4.978564538760111e-05, 0.018741929903626442, -0.008696132339537144, -0.011663860641419888, -0.01193992793560028, -0.006717647425830364, 0.049661509692668915, -0.01355799101293087, 0.0008694215212017298, 0.04125678539276123, -0.03276003524661064, 0.017468949779868126, 0.030030030757188797, 0.07472232729196548, -0.028189579024910927, -0.048005104064941406, -0.010490572080016136, 0.016732769086956978, 0.018910637125372887, -0.07257512956857681, -0.02863435447216034, 0.0072429426945745945, 0.0381893664598465, 0.021149853244423866, -0.014593245461583138, 0.01237703487277031, -0.035704754292964935, -0.011525826528668404, -0.021809348836541176, 0.024401316419243813, 0.007227605674415827, 0.008949194103479385, -0.009439981542527676, 0.012400040403008461, -0.020521031692624092, 0.022913619875907898, 0.030612841248512268, 0.032483965158462524, 0.02993800863623619, -0.013903075829148293, 0.036103520542383194, 0.061900511384010315, -0.05447736009955406, -0.012215995229780674, -0.039232287555933, 0.04291319102048874, 0.037085093557834625, -0.019922886043787003, 0.010950685478746891, -0.02633379027247429, 0.016625409945845604, 0.002549791941419244, -0.03407902270555496, -0.028726378455758095, 0.0912250354886055, 0.01771434396505356, -0.07294321805238724, -0.0005166683695279062, 0.026609858497977257, 0.036103520542383194, 0.05720736086368561, -0.02935519814491272, 0.0677899569272995, 0.016088612377643585, 0.02841963618993759, 0.008619447238743305, -0.022622214630246162, 0.05033634230494499, 0.04180891811847687, -0.05082713067531586, -0.017330916598439217, -0.03288273140788078, -0.014133132062852383, -0.003690488403663039, 0.008527424186468124, 0.029907334595918655, 0.03139503300189972, 0.025520924478769302, 0.02137991040945053, 0.010521247051656246, 0.0033185638021677732, -0.03447778895497322, -0.001231760368682444, -0.00040619337232783437, 0.02225412428379059, -0.005460005719214678, -0.006361059844493866, 0.028051545843482018, 0.04463094472885132, -0.015283414162695408, -0.012630097568035126, 0.01085866242647171, -0.04321993142366409, 0.011334112845361233, 0.060918938368558884, 0.08926188945770264, -0.024600699543952942, -0.008665458299219608, 0.009662369266152382, -0.01815911941230297, 0.020689740777015686, 0.02329704724252224, 0.02587367780506611, -0.024462666362524033, -0.011042707599699497, 0.02665586955845356, 0.03349621221423149, 0.04456959664821625, 0.023726485669612885, -0.009654700756072998, -0.016027264297008514, 0.014792627654969692, 0.007936946116387844, 0.013044198974967003, 0.03141037002205849, 0.014018104411661625, -0.0021050162613391876, 0.001081265159882605, 0.02567429654300213, 0.01711619645357132, -0.015352431684732437, -0.010605600662529469, 0.014110126532614231, -0.0058434330858290195, 0.030106715857982635, 0.005260623525828123, -0.02631845325231552, -0.07963019609451294, 0.016027264297008514, 0.00041026726830750704, -0.0011704120552167296, 0.0015816378872841597, 0.019508784636855125, 0.001944935298524797, -0.01372669916599989, -0.03190115466713905, -0.03475385531783104, 0.006456916686147451, 0.02389519289135933, -0.019984234124422073, -0.01372669916599989, -4.6730208850931376e-05, 0.02157929167151451, -0.011755882762372494, -0.014209818094968796, -0.02841963618993759, 0.043588023632764816, 0.010574926622211933, 0.0015624664956703782, 0.011081051081418991, -0.0031939498148858547, 0.01395675539970398, -0.019570132717490196, 0.006410905625671148, -0.010751303285360336, -0.01463925652205944, 0.06478388607501984, -0.0034949404653161764, -0.0016247734893113375, 0.007752901408821344, -0.03757588192820549, -0.013074873015284538, -0.008903183043003082, 0.0029696449637413025, 0.028526995331048965, 0.017208220437169075, 0.02067440375685692, 0.01328959222882986, 0.02435530535876751, -0.018082434311509132, 0.03947767987847328, 0.008696132339537144, -0.0041985297575592995, -0.024125250056385994, -0.006598785053938627, -0.03607284650206566, -0.01543678529560566, -0.029462559148669243, -0.009439981542527676, -0.00044956858619116247, -0.02263755165040493, 0.0017436358612030745, -0.019861537963151932, 0.015505802817642689, 0.016962826251983643, 0.026609858497977257, -0.011418466456234455, -0.0133662773296237, -0.02401788905262947, -0.00432506063953042, -0.015306420624256134, 0.03591947630047798, 0.005433165468275547, -0.0300760418176651, 0.01408712100237608, -0.04410948231816292, -0.0047391620464622974, -0.023711148649454117, 0.03171711042523384, -0.020628392696380615, 0.0006556607550010085, -0.016748106107115746, 0.028910422697663307, -0.038465432822704315, 0.02757609635591507, -0.020290976390242577, -0.013212907128036022, -0.020827773958444595, 0.010935348458588123, -0.005682393442839384, -0.04861858859658241, -0.010751303285360336, -0.016763444989919662, 0.019462773576378822, -0.009992117062211037, -0.0020992648787796497, 0.039232287555933, -0.0356740802526474, -0.002682074438780546, -0.00822835136204958, 0.02387985587120056, -0.020950470119714737, -0.010206836275756359, 0.01638001762330532, 0.04343464970588684, 0.02837362512946129, 0.01227734424173832, -0.05174735561013222, -0.010897005908191204, -0.018925974145531654, -0.0032821381464600563, -0.011341781355440617, 0.0208737850189209, -0.01079731434583664, -0.025981036946177483, -0.011832567863166332, 0.016487376764416695, 0.0020896790083497763, -0.022683562710881233, -0.0054063256829977036, 0.012806474231183529, -0.07355670630931854, 0.017453612759709358, -0.02743806131184101, 0.01889530010521412, -0.014194481074810028, 0.004815847612917423, 0.03383363038301468, 0.0438334159553051, 0.03196250647306442, -0.02961592935025692, 0.019784850999712944, 0.05088847875595093, -0.0004030780110042542, 0.016870804131031036, -0.035367339849472046, -0.016794119030237198, 0.0040106503292918205, -0.0015078281285241246, -0.03177845850586891, -0.03837341070175171, 0.011272764764726162, 0.011058044619858265, -0.0180977713316679, 0.01591990329325199, -0.049906905740499496, -0.013320266269147396, 0.017085522413253784, 0.019861537963151932, -0.0300760418176651, -0.02751474641263485, 0.04683948680758476, 0.0014100541593506932, 0.005751410499215126, 0.02731536515057087, -0.0030942587181925774, -0.010206836275756359, 0.03739183768630028, 0.0043135578744113445, 0.044845663011074066, -0.015950577333569527, -0.019830863922834396, -0.003859196323901415, -0.035888802260160446, -0.007959951646625996, 0.04325060546398163, 0.06226860359311104, 0.025551598519086838, -0.01861923187971115, 0.018527209758758545, 0.0027606768999248743, -0.007219937164336443, -0.005130257923156023, -0.008995206095278263, 0.044385552406311035, 0.019232716411352158, -0.04613398015499115, -0.0015135795110836625, -0.011870911344885826, -0.058986466377973557, -0.020904459059238434, -0.016686758026480675, 0.015950577333569527, 0.023373732343316078, 0.007557353470474482, -0.021165190264582634, 0.01098902802914381, -0.006640961859375238, 0.02771412953734398, 0.04677813872694969, -0.015222066082060337, -0.01056725811213255, 0.04223835840821266, 0.010605600662529469, -0.01743827573955059, -0.006058152299374342, -0.006157843396067619, 0.006966874934732914, 0.012031950987875462, 0.030306098982691765, 0.04159419983625412, -0.006537436507642269, 0.02461603656411171, 0.04555116966366768, -0.026640532538294792, -0.013642345555126667, -0.0033166466746479273, -0.03371093422174454, 0.003481520339846611, 0.026425814256072044, 0.06205388531088829, -0.05515219271183014, 0.01351964846253395, -0.04229970648884773, 0.01191692240536213, -0.007093406282365322, 0.05033634230494499, -0.02237682044506073, -0.013389283791184425, -0.012614760547876358, -0.0012518903240561485, -0.04355734959244728, 0.00168228754773736, -0.03987644612789154, -0.01638001762330532, 0.020290976390242577, -0.002668654313310981, 0.0029102135449647903, 0.02019895240664482, -0.0127374567091465, -0.018281815573573112, -0.024002552032470703, 0.0136270085349679, -0.01929406449198723, -0.01644136570394039, -0.016625409945845604, 0.003356906585395336, 0.0028622851241379976, 0.03665565699338913, -0.028941096737980843, -0.013903075829148293, -0.008182340301573277, 0.01651805080473423, -0.0017225474584847689, -0.05855702608823776, -0.01003812812268734, -0.03171711042523384, 0.005536691285669804, 0.010912342928349972, 0.023542439565062523, 0.018711255863308907, -0.004474597051739693, -0.0372384637594223, -0.008143996819853783, 0.011702203191816807, 0.032729361206293106, 0.00506507558748126, 0.017867714166641235, -0.022744910791516304, -0.0011761634377762675, -0.012653103098273277, -0.031180312857031822, 0.03843475878238678, -0.0007275533862411976, -0.04723824933171272, 0.038342736661434174, -0.017791029065847397, 0.019125357270240784, 0.0017263817135244608, -0.08748278766870499, 0.04364937171339989, 0.0004124240658711642, -0.04914005100727081, 0.016103949397802353, 0.02975396253168583, -0.010068802163004875, 0.01749962382018566, -0.008335710503160954, -0.02915581688284874, -0.015482796356081963, -0.01802108623087406, -0.049661509692668915, -0.005375651642680168, -0.006188517436385155, 0.015551813878118992, 0.018910637125372887, -0.02783682569861412, 0.0011454892810434103, 0.01180956233292818, -0.021686650812625885, 0.012315686792135239, -0.0331587977707386, -0.011019702069461346, -0.013404620811343193, -0.007208434399217367, -0.048005104064941406, -0.0024462665896862745, -0.011188410222530365, -0.01723889447748661, 0.015229734592139721, -0.01802108623087406, 0.002398338168859482, -0.010897005908191204, 0.02363446168601513, -0.016548724845051765, -0.024370642378926277, -0.047023531049489975, -0.02685525268316269, 0.0025191176682710648, -0.0024501008447259665, 0.02559760957956314, -0.05177802965044975, -0.009232930839061737, -0.02357311360538006, 0.046624768525362015, -0.0027491741348057985, -0.0016525719547644258, -0.011510489508509636, 0.005095749627798796, -0.017929064109921455, 0.0229596309363842, -0.014554902911186218, 0.015022683888673782, 0.04303588718175888, -0.014915323816239834, -0.005839598830789328, 0.015505802817642689, -0.009171582758426666, 0.008734474889934063, -0.004930875729769468, -0.01633400470018387, -0.04180891811847687, 0.017867714166641235, -0.05598039552569389, 0.019769513979554176, 0.007350302301347256, 0.033802956342697144, -0.0065681105479598045, -0.038986895233392715, 0.04877195879817009, -0.01843518763780594, 0.029002444818615913, 0.03711576759815216, 0.06294343620538712, -0.031287673860788345, 0.018143782392144203, -0.02883373759686947, 0.052422188222408295, 0.01849653571844101, 0.027208006009459496, 0.009923100471496582, -0.012392371892929077, -0.007772072684019804, 0.036747679114341736, -0.00963936373591423, 0.037943970412015915, 0.004355734679847956, -0.020091593265533447, -0.002386835403740406, -0.005736073479056358, -0.007396313827484846, 0.0060313125140964985, 0.010084139183163643, -0.01056725811213255, 0.012814142741262913, 0.0005679517635144293, -0.004305889364331961, -0.01889530010521412, -0.004236872307956219, -0.04690083488821983, 0.03322014585137367, -0.040428582578897476, -0.0017167959595099092, -0.013304929248988628, -0.01743827573955059, 0.025766318663954735, -0.007580359000712633, 0.028051545843482018, 0.0007534347823821008, 0.025582272559404373, 0.02593502588570118, -0.03555138409137726, -0.0030750874429941177, -0.014961335808038712, 0.0010573009494692087, 0.015045689418911934, -0.020613055676221848, -0.00858877319842577, -0.021962719038128853, -0.021794011816382408, -0.057882193475961685, -0.019708165898919106, 0.06125635653734207, -0.011533495038747787, -0.012706782668828964, 0.036164868623018265, 0.048526566475629807, -0.012599422596395016, 0.012821811251342297, 0.007078069262206554, -0.039232287555933, -0.0033530723303556442, -0.021149853244423866, -0.025244858115911484, 0.04285184293985367, -0.02039833553135395, 0.010720629245042801, 0.013811053708195686, -0.0315944142639637, -0.02659452147781849, 0.03199318051338196, 0.01563616842031479, 0.010444561019539833, -0.035766102373600006, 0.05699264258146286, -0.026824578642845154, 0.033925652503967285, -0.017208220437169075, 0.04187026619911194, 0.00769922137260437, 0.005774416029453278, 0.028143567964434624, -0.012515068985521793, -0.00763403857126832, -0.017683669924736023, -0.022146765142679214, -0.06186983734369278, 0.019846200942993164, -0.057544779032468796, 0.020382998511195183, -0.009117902256548405, 0.0027165827341377735, -0.02513749711215496, -0.02723868004977703, 0.0504283644258976, 0.0038649477064609528, -0.007806580979377031, -0.0020359992049634457, -0.013281923718750477, 0.013834059238433838, 0.028465647250413895, -0.017024174332618713, 0.04969218745827675, 0.02579699270427227, -0.018327828496694565, 0.01556715089827776, 0.006855681072920561, -0.006587281823158264, -0.01125742681324482, -0.023803170770406723, -0.0443548783659935, 0.053802527487277985, -0.0032418782357126474, 0.009884756989777088, -0.03039812110364437, -0.012990518473088741, 0.0038266051560640335, -0.03868015110492706, -0.0165793988853693, 0.026073060929775238, 0.008680795319378376, -0.017622321844100952, 0.00044549466110765934, -0.024385979399085045, 0.028588343411684036, 0.02343508042395115, -0.0044362545013427734, -0.02961592935025692, -0.01062860619276762, 0.035582058131694794, 0.0030808388255536556, 0.056164439767599106, 0.026548510417342186, 0.005851101595908403, -0.005134092178195715, 0.03233059495687485, 0.017024174332618713, 0.011870911344885826, 0.045183081179857254, -0.04073532298207283, -0.011932259425520897, -0.010283521376550198, -0.008665458299219608, 0.03141037002205849, 0.012354029342532158, 0.008481413125991821, 0.009524335153400898, 0.024968789890408516, -0.007591861765831709, 0.014324845746159554, 0.015022683888673782, -0.011817230843007565, 0.023465754464268684, -0.004842687398195267, 0.015199060551822186, -0.019002659246325493, 0.0025996374897658825, 0.0007817125297151506, -0.06809669733047485, -0.008282030932605267, 0.013312597759068012, 0.03785194829106331, -0.009309615939855576, -2.3028107989375712e-06, -0.008788155391812325, -0.004386409185826778, -0.013343271799385548, -0.010245178826153278, 0.02387985587120056, -0.016073275357484818, 0.011012033559381962, -0.003320480929687619, 0.005690061952918768, -0.01776035502552986, -0.0012518903240561485, 0.016763444989919662, 0.007120246067643166, 0.02973862551152706, -0.02453935146331787, -0.015199060551822186, -0.021671313792467117, 0.02368047460913658, 0.004907870199531317, 0.0067061446607112885, 0.01651805080473423, -0.04877195879817009, -0.013887738808989525, -0.009930768981575966, -0.010935348458588123, -0.0027760141529142857, -0.011464478448033333, -0.0029217165429145098, 0.010137819685041904, 0.01697816327214241, 0.014853975735604763, 0.013128552585840225, 0.003937799017876387, -0.025428902357816696, 0.00842006504535675, 0.01318990159779787, 0.015360100194811821, 0.0027089142240583897, 0.0034125035163015127, -0.00733879953622818, -0.0017762272618710995, 0.000559803971555084, -0.01644136570394039, -0.006767492741346359, -0.04533645138144493, -0.00054302898934111, 0.01822046749293804, 0.04561251774430275, 0.024953452870249748, 0.036287564784288406, -0.0129981879144907, 0.004378740210086107, 0.002321652602404356, -0.030566828325390816, -0.0034240062814205885, 0.007737563923001289, -0.006943869404494762, 0.0448763370513916, -0.018588557839393616, 0.04825050011277199, -0.01960080675780773, -0.037023745477199554, -0.03171711042523384, 0.009976780042052269, 0.019907549023628235, 0.006249865982681513, -0.021441258490085602, 0.024339968338608742, -0.001868249848484993, -0.0011857490753754973, -0.012116304598748684, -0.023404406383633614, -0.023128338158130646, 0.01907934620976448, 0.05260623246431351, -0.016226645559072495, 0.03113430179655552, -0.005157098174095154, -0.001941101043485105, -0.037146441638469696, -0.010153156705200672, -0.03941633179783821, 0.018465861678123474, -0.021947382017970085, 0.01187857985496521, -0.0071930973790585995, -0.05174735561013222, -0.026103734970092773, -0.023051653057336807, 0.0036042171996086836, 0.015291082672774792, -0.047422297298908234, -0.019064009189605713, 0.027392050251364708, 0.019846200942993164, -0.009079559706151485, 0.00011688543600030243, -0.008826497942209244, 0.016686758026480675, -0.05987601727247238, -0.030229413881897926, -0.021993393078446388, 0.00641473988071084, 0.009232930839061737, -0.00641473988071084, 0.04993757978081703, 0.0026015546172857285, 0.03987644612789154, 0.010145488195121288, 0.03693172335624695, -0.01703951135277748, -0.0024098409339785576, -0.007875598035752773, 0.01929406449198723, 0.03447778895497322, -0.006134837865829468, -0.0022526357788592577, 0.018005749210715294, -0.005552028305828571, -0.03111896477639675, -0.024247946217656136, 0.01685546711087227, 0.00881882943212986, 0.01960080675780773, -0.028051545843482018, -0.020168278366327286, 0.014079452492296696, -0.03190115466713905, -0.017883051186800003, -0.007239108439534903, 0.0011320692719891667, -0.00182990706525743, -0.011886248365044594, 0.006115666590631008, -0.009823408909142017, -0.0008718179306015372, -0.04002981632947922, -0.009976780042052269, -0.0032418782357126474, -0.03297475352883339, -0.014761953614652157, -0.020582379773259163, 0.01191692240536213, -0.006545105017721653, 0.01069762371480465, -0.014478216879069805, -0.008995206095278263, -0.040121838450431824, -0.004512940067797899, 0.032944079488515854, 0.005985300987958908, -0.015260408632457256, -0.010973691008985043, 0.030950255692005157, 0.0003319043025840074, -0.02975396253168583, 0.012384703382849693, -0.004785173572599888, -0.012231333181262016, 0.01355799101293087, -0.007599530275911093, -0.017269568517804146, -0.010920011438429356, 0.00021064540487714112, -0.0032629668712615967, -0.013120884075760841, -0.012706782668828964, -0.003477686084806919, 0.03226924687623978, 0.03177845850586891, -0.007530513219535351, -0.008282030932605267, 0.01881861500442028, -0.0070090522058308125, -0.03966172784566879, -0.01703951135277748, 0.009332621470093727, -0.010950685478746891, -0.04177824407815933, 0.02429395727813244, -0.017867714166641235, 0.021947382017970085, -0.03349621221423149, 0.006203854456543922, -0.018711255863308907, -0.03085823357105255, 0.023603787645697594, 0.005091915372759104, -0.010390881448984146, -0.008711469359695911, 0.012001276016235352, -0.007641707081347704, 0.023189686238765717, -0.0290791317820549, 0.00809798575937748, -0.024692721664905548, 0.009846414439380169, -0.009186919778585434, -0.004792842082679272, -0.006970709189772606, -0.004217701032757759, -0.021563954651355743, 0.023941203951835632, -0.021563954651355743, 0.012599422596395016, 0.036563631147146225, -0.03196250647306442, -0.017269568517804146, 0.008642452768981457, -0.01907934620976448, -0.02493811585009098, 0.0073119597509503365, -0.024125250056385994, -0.015482796356081963, 0.013964424841105938, 0.019968897104263306, 0.032146550714969635, -0.008726806379854679, -0.013834059238433838, -0.018787940964102745, 0.00778357544913888, -0.014754285104572773, -0.010245178826153278, 0.03276003524661064, 0.021287886425852776, 0.0069400351494550705, 0.017545636743307114, -0.019002659246325493, 0.0025862175971269608, 0.014731279574334621, -0.0016381933819502592, -0.0037959308829158545, 0.004056661389768124, -0.009624026715755463, 0.01079731434583664, -0.03460048511624336, -0.009785066358745098, 0.001602726406417787, -0.00904888566583395, 0.021287886425852776, -0.04048993065953255, 0.0014915324281901121, -0.02613440901041031, 0.019171368330717087, -0.006123335100710392, 0.0269932858645916, 0.008282030932605267, -0.03920161351561546, -0.04539779946208, 0.006249865982681513, -0.04389476403594017, 0.02947789616882801, -0.04607263207435608, -0.0027127484790980816, -0.006778995506465435, -0.009002874605357647, 0.0002892480115406215, 0.013028861954808235, 0.016625409945845604, 0.01756097376346588, -0.026103734970092773, 0.004355734679847956, 0.03910959139466286, 0.012062625028192997, 0.018803277984261513, 0.007975288666784763, -0.021533280611038208, 0.026027049869298935, 0.03763723000884056, 0.023803170770406723, -0.006840344052761793, 0.0036214713472872972, -0.024201935157179832, 0.00026312703266739845, 0.019202042371034622, 0.007657044567167759, 0.00828969944268465, -0.03647160902619362, -0.022070078179240227, -0.011012033559381962, -0.032606661319732666, -0.008657789789140224, -0.026947274804115295, 0.03349621221423149, 0.02171732485294342, -0.003845776431262493, 0.0012614759616553783, 0.007595696020871401, -0.00028014162671752274, -0.03690104931592941, 0.025766318663954735, 0.005456171464174986, -0.03456981107592583, -0.04953881353139877, 0.03917093947529793, 0.010107145644724369, -0.02335839532315731, -0.00404899287968874, 0.017422938719391823, -0.03797464445233345, 0.015705185011029243, -0.013320266269147396, -0.00015205291856545955, -0.010682285763323307, 0.0074308221228420734, 0.003979975823312998, 0.0012442218139767647, -0.005655553657561541, -0.04239172860980034, 0.005068909842520952, -0.02067440375685692, 0.0013582913670688868, -0.014056446962058544, -0.027407387271523476, -0.005552028305828571, 0.02539822831749916, 0.010252847336232662, -0.03144104406237602, 0.010996696539223194, 0.006548939272761345, -0.011832567863166332, -0.023481091484427452, -0.010222173295915127, -0.013703693635761738, -0.012346360832452774, 0.012653103098273277, -0.017806366086006165, -0.012921501882374287, -0.014738948084414005, 0.013435294851660728, 0.02685525268316269, 0.01980018801987171, 0.01326658669859171, -0.010674617253243923, 0.004884864669293165, 0.004233038052916527, 0.00858877319842577, 0.02769879251718521, -0.019846200942993164, -0.010850993916392326, -0.0163186676800251, -0.013090210035443306, 0.030459469184279442, 0.04665544256567955, 0.0165793988853693, -0.00851975567638874, -0.03815869241952896, 0.002193204592913389, -0.022346146404743195, -0.018864626064896584, -0.004693150985985994, 0.012308018282055855, -0.0060274782590568066, -0.0016707846662029624, 0.025490250438451767, 0.003696239786222577, -0.00291213090531528, -0.004961550235748291, -0.00018021085998043418, 0.004635636694729328, 0.026226431131362915, 0.02935519814491272, -0.04058195278048515, 0.002578549087047577, -0.011372455395758152, 0.003742251079529524, 0.010950685478746891, 0.06048950180411339, 0.03625689074397087, 0.005095749627798796, -0.003182447049766779, 0.013281923718750477, 0.022162102162837982, -0.04180891811847687, 0.04233038052916527, -0.016272656619548798, 0.016533387824892998, 0.016349341720342636, -0.015107037499547005, 0.05401724576950073, -0.0331587977707386, -0.01723889447748661, 0.005160932429134846, 0.025950362905859947, -0.013511979952454567, 0.021962719038128853, 0.021533280611038208, 0.027131319046020508, -0.006552773527801037, 0.007814249955117702, -0.024247946217656136, 0.014631588011980057, -0.008005963638424873, 0.001500159502029419, 0.0017187130870297551, -0.007101074792444706, -0.006928532384335995, 0.012875490821897984, 0.02269889973104, -0.018327828496694565, 0.008143996819853783, 0.015904566273093224, 0.016671421006321907, 0.033342842012643814, -0.00022466447262559086, 0.006391733884811401, -0.01450889091938734, 0.015007346868515015, -0.033864304423332214, -0.024048563092947006, 0.003479603212326765, 3.1003695767140016e-05, -0.015314089134335518, 0.009877088479697704, -0.0071279145777225494, -0.0032342097256332636, -0.02455468848347664, -0.0015154966386035085, 0.015413779765367508, 0.0073119597509503365, 0.002214292995631695, -0.019432097673416138, 0.028787726536393166, -0.006736818701028824, -0.05021364614367485, 0.044722966849803925, 0.0048695276491343975, 0.026824578642845154, 0.0010975608602166176, 0.023588450625538826, 0.020965807139873505, -0.01408712100237608, -0.0018078599823638797, -0.0037556709721684456, 0.015620830468833447, 0.017484286800026894, -0.002576631959527731, -0.03165576234459877, -0.012185321189463139, 0.011073382571339607, 0.03604217246174812, -0.003341569332405925, -0.0053603146225214005, -0.010068802163004875, 0.043403975665569305, -0.021686650812625885, -0.024370642378926277, 0.004187026526778936, 0.008450739085674286, 0.038802847266197205, -0.004524442832916975, -0.012223663739860058, -0.03309744969010353, 0.0267325546592474, 0.007538181729614735, 0.019309401512145996, 0.010122482664883137, -0.007875598035752773, 0.01599659025669098, 0.018864626064896584, 0.006660133134573698, 0.015689847990870476, -0.01062860619276762, -0.010958353988826275, 0.007139417342841625, 0.0037920966278761625, -0.044784314930438995, 0.006525933742523193, -0.012116304598748684, 0.041226111352443695, 0.047422297298908234, 0.02527553215622902, -0.007074234541505575, 0.019968897104263306, 0.021410584449768066, -0.040121838450431824, 0.0026322288904339075, -2.911651426984463e-05, -0.04251442477107048, -0.012262007221579552, 0.002958141965791583, 0.004608796909451485, -0.0026015546172857285, -0.0012288846774026752, -0.010651611723005772, 0.02427862025797367, 0.0051072523929178715, -0.004528277087956667, 0.004585791379213333, 0.0015461707953363657, -0.013274255208671093, -0.00805964320898056, 0.028266264125704765, 0.01075897179543972, 0.010275852866470814, -0.02969261445105076], "id": 35}, {"title": "Hong Kong Economic Times", "text": "Hong Kong Economic Times (26 January 1988), the leading financial daily in Hong Kong, was founded by Mr. Fung Siu Por, Lawrence (Chairman), Mr. Perry Mak (Managing Director), Mr. Arthur Shek (Executive Director) and other founders with HK$20 million of foundation fund in 1988.", "vector": [-0.028982525691390038, -0.040694091469049454, -0.010437874123454094, -0.06462991237640381, 0.012240270152688026, -0.033836979418992996, -0.010213576257228851, 0.010886470787227154, -0.024833008646965027, 0.03582361713051796, 0.07677405327558517, 0.01986640691757202, -0.0032423099037259817, -0.024833008646965027, 0.009957235306501389, -0.026899756863713264, 0.0062563163228333, -0.023839689791202545, -0.006460587959736586, 0.0311293788254261, -0.02555396780371666, -0.009588745422661304, -0.03109733574092388, 0.026210840791463852, -0.002931897295638919, -0.010221587494015694, -0.01614946685731411, 0.014795667491853237, 0.014010624028742313, 0.03165808320045471, 0.02193315513432026, 0.034702129662036896, 0.004055390600115061, -0.034605998545885086, -0.013241601176559925, 0.03668876737356186, 0.03627221658825874, -0.01136710960417986, -0.010093417018651962, -0.013818368315696716, 0.04787163436412811, 0.002887838752940297, -0.030055951327085495, 0.0033164082560688257, -0.029062630608677864, 0.019545981660485268, -0.021949175745248795, -0.019401790574193, -0.011150822043418884, 0.04037366807460785, 0.03399718925356865, 0.029911760240793228, -0.02707599103450775, 0.050627294927835464, -0.009644820354878902, 0.031193463131785393, 0.037137363106012344, 0.06581548601388931, -0.003917207010090351, -0.04104655981063843, -0.016566019505262375, -0.033740848302841187, 0.01757536269724369, 0.03611200302839279, 0.01328966487199068, 0.022638091817498207, -0.025185476988554, 0.015604742802679539, 0.027524586766958237, -0.0018023957964032888, -0.03652855381369591, -0.016373764723539352, 0.062451012432575226, 0.022814325988292694, 0.010389810428023338, -0.08138818293809891, 0.012520642951130867, -0.013033324852585793, -0.03515072539448738, 0.03351655229926109, -0.022285623475909233, 0.013353750109672546, 0.008198898285627365, -0.003364472184330225, 0.028998546302318573, -0.018921151757240295, -0.02326292172074318, -0.06703310459852219, -0.01847255416214466, 0.044378992170095444, 0.022445837035775185, 0.01574893482029438, -0.04425081983208656, -0.05838160216808319, 0.005066734738647938, 0.050691381096839905, -0.02725222520530224, -0.0072055780328810215, -0.013505952432751656, -0.03572748973965645, 0.021772941574454308, 0.010582066141068935, 0.038098644465208054, -0.04498780146241188, 0.020218875259160995, -0.022173473611474037, -0.01824825629591942, 0.01754331961274147, -0.0032643391750752926, 0.019097385928034782, 0.029783589765429497, 0.015909146517515182, 0.00827499944716692, 0.04037366807460785, -0.0355672761797905, 0.06309186667203903, -0.011775652877986431, -0.010125459171831608, 0.05578615516424179, 0.046974439173936844, -0.015492593869566917, -0.00126067572273314, 0.03063271939754486, -0.019786300137639046, 0.016598062589764595, -0.03649651259183884, -0.04152720049023628, 0.017831703647971153, 0.007786349859088659, -0.008190887980163097, -0.11419980227947235, 0.02299056015908718, 0.012833057902753353, -0.012929186224937439, -0.01106270495802164, 0.02323088049888611, 0.027428459376096725, -0.009869118221104145, -0.0055113257840275764, 0.008611447177827358, 0.055209387093782425, 0.014691528864204884, 0.024640753865242004, -0.032715488225221634, -0.04409060627222061, -0.03425353020429611, 0.022413793951272964, -0.003138171508908272, 0.036368343979120255, 0.034541916102170944, -0.010077395476400852, 0.01039782166481018, 0.019465874880552292, 0.02233368717133999, -0.01828029938042164, -0.04421877861022949, 0.04953784868121147, 0.011415173299610615, -0.0402134545147419, 0.012416504323482513, -0.016325701028108597, -0.003432562807574868, -0.023246901109814644, -0.034541916102170944, -0.0009898156858980656, -0.04159128665924072, 0.034605998545885086, -0.009628798812627792, -0.02366345375776291, 0.011303024366497993, -0.002737639006227255, 0.023134751245379448, -0.061489734798669815, -0.014162826351821423, -0.056138623505830765, 0.036400385200977325, 0.02452860400080681, 0.01387444231659174, -0.0003795044613070786, -0.0017413146561011672, 0.028229523450136185, 0.04210396483540535, 0.015909146517515182, 0.03784230351448059, -0.01807202212512493, -0.0023751570843160152, 0.06040028855204582, -0.006100108381360769, 0.030520569533109665, 0.015708880499005318, -0.011407162994146347, 0.0379384309053421, -0.019321683794260025, -0.023599369451403618, -0.00220893626101315, -0.013562027364969254, 0.00965283066034317, -0.030023910105228424, 0.002080765785649419, 0.0066488380543887615, 0.0021528617944568396, -0.008419191464781761, 0.020555322989821434, 0.032539252191782, -0.014891794882714748, -0.029655419290065765, 0.018120085820555687, 0.03229893371462822, -0.008931872434914112, 0.03100120835006237, 0.043385669589042664, -0.05222942680120468, 0.037233494222164154, 0.02146853692829609, -0.018648788332939148, 0.017126765102148056, 0.071134552359581, 0.028934461995959282, 0.045148011296987534, -0.00660477951169014, -0.008443223312497139, -0.026835670694708824, 0.04848044365644455, -0.014082719571888447, -0.0541519820690155, -0.008050701580941677, -0.04524414241313934, -0.021580686792731285, 0.0032783576752990484, -0.01279300544410944, 0.0260506272315979, -0.012961228378117085, -0.006128145847469568, 0.01305735670030117, -0.0007675202214159071, -0.011086736805737019, -0.030680783092975616, -0.04466737434267998, -0.007421865593641996, -0.008218925446271896, 0.03409332036972046, 0.026130734011530876, -0.015676839277148247, -0.02545784041285515, -0.0362081304192543, -0.04783958941698074, -0.032779570668935776, 0.01554866787046194, -0.027156097814440727, 0.021821005269885063, 0.06286756694316864, -0.04393039271235466, 0.04393039271235466, -0.03399718925356865, 0.06600774079561234, 0.05094772204756737, 0.03342042490839958, 0.0089719258248806, -0.034509871155023575, 0.00742587074637413, -0.004185563884675503, 0.03803455829620361, 0.006592763587832451, 0.049922358244657516, -0.054119937121868134, -0.004109462723135948, 0.0004368306545075029, 0.009188213385641575, -0.009380469098687172, 0.021885091438889503, 0.04393039271235466, -0.020811663940548897, 0.06373271346092224, 0.015188189223408699, -0.0017873758915811777, 0.003014006419107318, -0.051492445170879364, 0.05562594160437584, -0.042744819074869156, 0.04248847812414169, -0.015500604175031185, 0.01389046385884285, 0.021212195977568626, -0.02007468417286873, 0.008419191464781761, -0.03591974452137947, 0.03889970853924751, -0.036464471369981766, 0.04037366807460785, -0.022654112428426743, 0.011190875433385372, -0.0015260284999385476, 0.02110004797577858, 0.04255256429314613, 0.0003424551978241652, 0.016189519315958023, -0.03386902064085007, -0.028389737010002136, -0.0066328165121376514, -0.04591703414916992, -0.02116413228213787, 0.013778314925730228, -0.0025974526070058346, -0.019321683794260025, -0.0062402947805821896, 0.007602104917168617, 0.0043898350559175014, -0.00855537224560976, -0.01096657756716013, -0.055305514484643936, 0.014403145760297775, -0.01741514913737774, -0.003354458836838603, 0.006748971063643694, -0.012488600797951221, -0.06129748001694679, 0.043609969317913055, -0.031321633607149124, 0.008234946057200432, -0.04575682058930397, 0.05911858379840851, -0.00020815168682020158, -0.04213600978255272, 0.005022676195949316, -0.012921175919473171, -0.004654186777770519, 0.011391141451895237, 0.04780754819512367, -0.007281679194420576, -0.00347662135027349, 0.0075860838405787945, -0.01917749084532261, -0.010261639952659607, 0.039348304271698, 0.008070727810263634, 0.027140075340867043, 0.014707550406455994, 0.02428828552365303, -0.0160533394664526, 0.026627395302057266, 0.012672845274209976, 0.018857065588235855, 0.01980232261121273, 0.035471148788928986, 0.007461918983608484, -0.017655467614531517, 0.02681965008378029, 0.012448547407984734, 0.034702129662036896, 0.0040914383716881275, 0.0005597440176643431, -0.025105372071266174, 0.011639472097158432, 0.008827733807265759, 0.0037589967250823975, -0.05492100492119789, 0.01608538068830967, -0.021917132660746574, 0.016870424151420593, 0.009372458793222904, 0.0026755565777420998, 0.009588745422661304, 0.012945207767188549, 0.03393310680985451, 0.002991977147758007, -0.006460587959736586, -0.014915826730430126, 0.022541964426636696, 0.004814399406313896, -0.028357693925499916, 0.005867799744009972, -0.031225506216287613, 0.00813881866633892, 0.01377030462026596, 0.02478494495153427, 0.03611200302839279, -0.09189815819263458, 0.029911760240793228, -0.024400433525443077, -0.03954055905342102, -0.027973182499408722, 0.0003832594375126064, 0.03575953468680382, 0.03303591161966324, -0.007353775203227997, -0.07645362615585327, -0.024144094437360764, -0.062290798872709274, 0.0049425698816776276, 0.06405314058065414, -0.0014409152790904045, -0.0004521009686868638, 0.0017343052895739675, 0.010389810428023338, 0.012881122529506683, -0.00490251649171114, 0.042712774127721786, 0.021772941574454308, 0.038995835930109024, -0.011823716573417187, -0.0474550798535347, 0.00925229862332344, 0.05841364711523056, -0.011543343774974346, -0.013994602486491203, -0.0019305661553516984, 0.005883821286261082, -4.0272283513331786e-05, 0.018392447382211685, -0.02744447998702526, 0.042648691684007645, 0.023439155891537666, -0.06696902215480804, -0.0642133578658104, 0.014026644639670849, 0.005331086460500956, -0.05844568833708763, -0.03056863322854042, 0.03316408395767212, -0.027957161888480186, 0.03854724019765854, 0.00375499133951962, -0.0007670195773243904, 0.013970570638775826, 0.06174607574939728, -0.010846417397260666, 0.0185366403311491, 0.024608710780739784, -0.0024232210125774145, 0.044475119560956955, 0.02462473325431347, -0.05408789590001106, 0.03175421059131622, 0.010854428634047508, -0.00020502253028098494, -0.01530033815652132, 0.004469941835850477, 0.05104384943842888, 0.02744447998702526, 0.01674225553870201, -0.01887308619916439, -0.08010648190975189, 0.011110768653452396, 0.008979936130344868, -0.015556679107248783, -0.017927831038832664, -0.05174878612160683, 0.017222894355654716, 0.009372458793222904, -0.03303591161966324, -0.021340366452932358, 0.0056755440309643745, -0.009396490640938282, 0.04652584344148636, -0.009500628337264061, 0.027732864022254944, -0.0022670135367661715, -0.013417835347354412, 0.02462473325431347, 0.00340652815066278, 0.005751645192503929, 0.07139089703559875, 0.004826415330171585, -0.0051588574424386024, -0.03326021134853363, 0.026531266048550606, -0.010606097988784313, 0.0025453835260123014, 0.01204801443964243, 0.03524685278534889, 0.0017272960394620895, -0.01884104497730732, 0.017126765102148056, 0.028197482228279114, 0.04848044365644455, 0.0024532610550522804, 0.01977027952671051, -0.02787705510854721, 0.015196199528872967, 0.002819748129695654, 0.015148135833442211, -0.015981243923306465, 0.010918513871729374, 0.04857657104730606, -0.0004981621750630438, -0.021372409537434578, -0.0115113016217947, -0.030985187739133835, 0.008507308550179005, 0.06004782021045685, -0.013634122908115387, 0.05187695845961571, 0.03867540881037712, 0.0062402947805821896, -0.011623450554907322, -0.022477878257632256, 0.024833008646965027, -0.010710236616432667, -0.009436543099582195, -0.049089252948760986, -0.0017743585631251335, 0.04389835149049759, -0.015364423394203186, -0.027300288900732994, 0.01317751593887806, 0.01757536269724369, 0.0036488501355051994, -0.007017327938228846, -0.05130019038915634, 0.003917207010090351, 0.020715536549687386, 0.002058736514300108, -7.359783194260672e-05, 0.017431169748306274, -0.014675507321953773, 0.009829064831137657, 0.012128121219575405, 0.03704123571515083, 0.01840846985578537, 0.003957260400056839, 0.026435138657689095, -0.04607724770903587, 0.008811713196337223, 0.015172167681157589, -0.008234946057200432, -0.00813881866633892, -0.007710248697549105, 0.001800393220037222, 0.04130290076136589, -0.04646176099777222, 0.019481895491480827, 0.0011084733996540308, -0.013049345463514328, 0.04921742156147957, -0.00652066757902503, 0.005715597420930862, -0.05267802253365517, 0.03579157590866089, 0.0029038600623607635, -0.03790638595819473, 0.006568731274455786, 0.030328314751386642, 0.005911858286708593, -0.007025338243693113, -0.018600724637508392, 0.021612728014588356, -0.014515294693410397, 0.0012666836846619844, 0.006528678350150585, 0.0037049248348921537, 0.011086736805737019, -0.0011004627449437976, -0.017030637711286545, 0.0350225530564785, -0.008194892667233944, -0.01320955902338028, 0.0062683322466909885, -0.06876340508460999, -0.039348304271698, -0.018600724637508392, -0.012424515560269356, -0.029863696545362473, 0.027124054729938507, -0.014371102675795555, -0.01461943332105875, 0.02654728852212429, 0.032539252191782, 0.0162135511636734, -0.016469892114400864, 0.038995835930109024, 0.02738039568066597, 0.0009702897514216602, -0.01747923344373703, -0.043481796979904175, 0.011030662804841995, 0.01927362009882927, -0.00276567623950541, -0.017559340223670006, 0.007994626648724079, -0.014050676487386227, 0.033708807080984116, 0.03861132264137268, 0.03688102588057518, 0.01877695880830288, -0.014379112981259823, -0.016165487468242645, 0.015228241682052612, -0.0358877032995224, -0.019594045355916023, 0.0035947782453149557, -0.0546967051923275, 0.036240171641111374, 0.023807646706700325, -0.006276343017816544, 0.07741490006446838, -0.011583397164940834, -0.02774888463318348, 0.05046708509325981, 0.03889970853924751, 0.0451800562441349, -0.008182876743376255, 0.0068170614540576935, -0.0032363019417971373, -0.02026693895459175, -0.039027877151966095, 0.022509921342134476, -0.008875798434019089, -0.045372311025857925, -0.02438441291451454, -0.02286238968372345, 0.0064165289513766766, -0.03193044289946556, -0.03931625932455063, 0.03165808320045471, 0.04332158342003822, 0.016109412536025047, 0.02375958301126957, 0.013970570638775826, -0.01784772425889969, -0.021051982417702675, -0.030744867399334908, 0.010437874123454094, 0.01840846985578537, 0.04841635748744011, 0.01036577858030796, -0.01747923344373703, -0.03335633873939514, 0.020443174988031387, 0.014010624028742313, -0.026659436523914337, -0.015540657564997673, 0.015708880499005318, 0.0032282911706715822, 0.037137363106012344, 0.025794286280870438, 0.0066408272832632065, 0.027796948328614235, -0.014635453931987286, -0.012857090681791306, -0.01249661110341549, 0.002090779133141041, 0.020587366074323654, -0.012969239614903927, 0.0460452064871788, -0.009620788507163525, -0.025858372449874878, 0.009789012372493744, 0.05271006375551224, 0.051652658730745316, -0.0007580075762234628, 0.014859752729535103, 0.013730251230299473, 0.015164157375693321, 0.0033104002941399813, -0.010902492329478264, -0.021644771099090576, -0.026803629472851753, -0.014299007132649422, -0.006712923292070627, -0.04322545602917671, -0.010509970597922802, -0.037169408053159714, 0.0047663357108831406, -0.0134578887373209, -0.011527322232723236, -0.021180152893066406, -0.006372470408678055, -0.014034655876457691, 0.00519891083240509, -0.01943383179605007, 0.009756969287991524, 0.011591407470405102, 0.020843707025051117, -0.030744867399334908, 6.59626821288839e-05, -0.03380493447184563, 0.026707500219345093, 0.04072613641619682, 0.013650144450366497, -0.01917749084532261, 0.034413743764162064, -0.02657932974398136, -0.00330238975584507, -0.008947893977165222, -0.01486776303499937, 0.003454592078924179, -0.008507308550179005, 0.012809026055037975, 0.04018140956759453, -0.002355130622163415, 0.01754331961274147, -0.001629165606573224, 0.004079422447830439, 0.013554017059504986, 0.023471198976039886, 0.003899182891473174, 0.0012456558179110289, -0.0179438516497612, -0.027396416291594505, 0.0008346093818545341, 0.040982477366924286, 0.03681693971157074, 0.021612728014588356, 0.011639472097158432, 0.0011945879086852074, -0.0015360417310148478, 0.0015330377500504255, -0.023551305755972862, -0.03422148898243904, 0.005094772204756737, 0.02295851707458496, -0.02212540991604328, 0.022509921342134476, -0.02007468417286873, 0.005122809670865536, 0.002571417950093746, 0.01611742377281189, 0.04380222409963608, -0.013882453553378582, 0.02459269016981125, 0.020923813804984093, 0.026403095573186874, -0.0022269601467996836, 0.000335195567458868, -0.010598087683320045, 0.03438170254230499, 0.03861132264137268, -0.021917132660746574, -0.003610799554735422, 0.01236043032258749, -0.005591432563960552, 0.020923813804984093, 0.012817037291824818, 0.02568213827908039, -0.011847748421132565, -0.029991867020726204, 0.01317751593887806, -0.006468598265200853, -0.028726184740662575, -0.02515343576669693, 0.05633087828755379, 0.018857065588235855, -0.05444036424160004, -0.04851248487830162, -0.03399718925356865, 0.007461918983608484, -0.005186894908547401, 0.021837027743458748, -0.01556468941271305, -0.009484607726335526, -0.032715488225221634, -0.04046979546546936, 0.002489308826625347, -0.046397674828767776, -0.015492593869566917, 0.03338837996125221, -0.006424539722502232, -0.005347107537090778, 0.011575386859476566, -0.01701461710035801, -0.01813610829412937, -0.008811713196337223, -0.06424539536237717, -0.007546030450612307, 0.025890415534377098, 0.027620714157819748, 0.004698245320469141, -0.020058663561940193, -0.01107872650027275, 0.027796948328614235, 0.0011054694186896086, -0.02239777147769928, -0.02335904911160469, 0.0071975672617554665, 0.03854724019765854, -0.008042690344154835, -0.00912412814795971, -0.021772941574454308, 0.022509921342134476, -0.0013517969055101275, -0.025842351838946342, 0.004313733894377947, -0.02057134360074997, -0.009764980524778366, 0.0015520630404353142, 0.019658129662275314, 0.0028037268202751875, -0.047134652733802795, -0.0011425187112763524, 0.015885114669799805, -0.008603435941040516, 0.022638091817498207, -0.013842400163412094, 0.04947376251220703, 0.022189496085047722, 0.01633371226489544, -0.03704123571515083, -0.00385912973433733, -0.0036168077494949102, 0.03479825705289841, -0.035471148788928986, 0.038162726908922195, 0.029783589765429497, 0.004946575034409761, 0.017767617478966713, 0.013866432011127472, -0.02505730651319027, -0.016918489709496498, 0.0009492618264630437, -0.008491287007927895, -0.05187695845961571, 0.023999901488423347, 0.004618138540536165, -0.015885114669799805, 0.03109733574092388, 0.026531266048550606, -0.01584506221115589, -0.0697246789932251, -0.017190851271152496, -0.020987898111343384, 0.00714549794793129, -0.027925118803977966, -0.011471248231828213, 0.09426930546760559, -0.007850435562431812, 0.05770871043205261, 0.025537947192788124, -0.029126716777682304, -0.0500505305826664, -0.018056001514196396, -0.033548593521118164, -0.02608267031610012, 0.018792981281876564, -0.05219738185405731, -0.06273939460515976, 0.005254985298961401, 0.031241528689861298, 0.025009242817759514, 0.02468881756067276, 0.008459244854748249, -0.0013247609604150057, -0.008763649500906467, -0.04652584344148636, -0.011311035603284836, -0.04732690751552582, -0.01930566132068634, -0.00681305630132556, -0.0016531975707039237, -0.004538032226264477, -0.03591974452137947, 0.03790638595819473, 0.013938527554273605, -0.02193315513432026, 0.019481895491480827, 0.027732864022254944, 0.01671021245419979, -0.015236252918839455, 0.005623475182801485, 0.029655419290065765, -0.0292388666421175, -0.01964210905134678, -0.031017228960990906, -0.032715488225221634, 0.02146853692829609, 0.028005225583910942, -0.01079835370182991, 0.0535111278295517, 0.0030120036099106073, 0.017831703647971153, 0.011391141451895237, -0.036368343979120255, 0.0010734267998486757, 0.008038685657083988, -0.02276626229286194, 0.0015190191334113479, -0.03688102588057518, 0.008875798434019089, 0.008499297313392162, 0.038995835930109024, 0.004550048150122166, 0.05274210870265961, -0.023743560537695885, -0.05546572804450989, 0.0009392484789714217, 0.014939858578145504, -0.014515294693410397, 0.0023931812029331923, 0.012985260225832462, -0.004445909522473812, -0.0358877032995224, 0.03960464522242546, 0.030552612617611885, 0.022974539548158646, -0.03656059876084328, 0.027828991413116455, 0.02914273738861084, -0.018600724637508392, -0.013898474164307117, 0.02654728852212429, -0.025858372449874878, 0.001161544001661241, 0.0031201473902910948, 0.013714229688048363, 0.021244239062070847, 0.037361662834882736, -0.0353429801762104, 0.0015090059023350477, -0.04014936834573746, 0.014875773340463638, -0.02524956315755844, 0.004165537189692259, -0.00980503298342228, 0.005347107537090778, -0.004862463567405939, -0.02963939867913723, 0.005383155774325132, 0.010421853512525558, -0.013970570638775826, -0.012664834968745708, -0.024400433525443077, -0.0037189433351159096, 0.014731582254171371, 0.001091450802050531, -0.015388455241918564, 0.0028738200198858976, -0.019882429391145706, -0.010806364007294178, 0.0405338779091835, 0.002343114698305726, -0.025233542546629906, 0.008907840587198734, 0.00686913076788187, 0.02369549684226513, 0.020122747868299484, -0.02110004797577858, 0.02824554592370987, -0.05405585467815399, -0.022574005648493767, -0.016630105674266815, 0.01051798090338707, 0.028934461995959282, 0.0005767666734755039, 0.0062523107044398785, 0.009116117842495441, -0.007081413175910711, 0.005242969375103712, 0.027492543682456017, -0.030889058485627174, 0.008210914209485054, -0.059727393090724945, -0.01784772425889969, 0.010021320544183254, 0.04642971605062485, -0.018088042736053467, -0.0030680783092975616, -0.010165512561798096, -0.017735574394464493, -0.00965283066034317, -0.017895787954330444, 0.014907816424965858, -0.0350225530564785, 0.01834438368678093, 0.016966553404927254, 0.0005011661560274661, 0.05668334662914276, 0.021420473232865334, 0.005230953451246023, -0.03867540881037712, -0.00900396890938282, -0.015596731565892696, -0.003919209819287062, 0.032411083579063416, -0.06100909784436226, 0.02927090786397457, -0.02861403487622738, 0.020379088819026947, -0.014643465168774128, 0.051652658730745316, -0.021708857268095016, -0.006140161771327257, -0.022237559780478477, 0.039893027395009995, -0.018216213211417198, -0.022077346220612526, 0.01717482879757881, -0.00730170588940382, -0.03255527466535568, 0.0034225494600832462, -0.04293707385659218, -0.00033619688474573195, -0.0055193365551531315, -0.012993271462619305, 0.021212195977568626, -0.036176085472106934, -0.002222954761236906, 0.030392399057745934, -0.03128959238529205, 0.014699539169669151, 0.0029078652150928974, -0.02193315513432026, -0.023439155891537666, 0.02818145975470543, -0.01319353748112917, -0.002959934528917074, -0.014971901662647724, 0.0033344323746860027, 0.01837642677128315, 0.03438170254230499, -0.03700919449329376, -0.02259002812206745, 0.00044834596337750554, -0.005579416640102863, 0.0016281642019748688, -0.0016912480350583792, -0.015853073447942734, -0.020058663561940193, 0.014979911968111992, -0.011303024366497993, -0.00801465380936861, 0.0068330829963088036, -0.007449902594089508, -0.0002998986456077546, -0.010285671800374985, -0.0215646643191576, -0.011527322232723236, 0.03944443166255951, -0.019914470613002777, 0.016998594626784325, -0.010125459171831608, -0.011791674420237541, -0.02561805211007595, 0.022702176123857498, 0.0028658094815909863, -0.01757536269724369, -0.021292302757501602, -0.004237632732838392, -0.002033703261986375, 0.01389046385884285, 0.009028000757098198, 0.026306968182325363, 0.007622131612151861, -0.002377159893512726, 0.017270958051085472, 0.021051982417702675, -0.006925205234438181, -0.00980503298342228, 0.00029664431349374354, 0.004742303863167763, 0.029286930337548256, -0.037233494222164154, 0.01473959255963564, -0.0009117118897847831, 0.01441916637122631, -0.0003759998071473092, 0.019674152135849, 0.023711519315838814, -0.02654728852212429, -0.020475216209888458, -0.008387148380279541, -0.010293683037161827, 0.021724877879023552, 0.05552981421351433, -0.04242439195513725, -0.020555322989821434, -0.03518276661634445, 0.02342313528060913, 0.001486976514570415, 0.0031241527758538723, 0.017751596868038177, -0.007582078687846661, -0.003432562807574868, -0.016189519315958023, -0.03492642566561699, 0.01441916637122631, -0.006564726121723652, 0.011903823353350163, -0.025377733632922173, -0.02754060924053192, -0.015508614480495453, -0.004698245320469141, 0.010173522867262363, 0.015620764344930649, 0.05312661826610565, -0.018023958429694176, 0.015796998515725136, -0.030232185497879982, -0.016261614859104156, 0.03152991086244583, -0.006003980990499258, -0.007517993450164795, -0.01787976734340191, -0.0025373727548867464, -0.0009117118897847831, -0.00413749972358346, -0.028037268668413162, 0.002335103927180171, 0.01348993182182312, 0.025441817939281464, -0.019594045355916023, -0.013746271841228008, -0.005975943524390459, 0.000650364498142153, -0.03393310680985451, -0.04130290076136589, 0.008763649500906467, 0.011238939128816128, 0.003861132310703397, 0.0004448413092177361, 0.03508663922548294, -0.05213329941034317, 0.03177022933959961, -0.006148172542452812, 0.01364213414490223, -0.00686913076788187, 0.00829102098941803, -0.02947918511927128, 0.0038711456581950188, -0.003384498879313469, 0.010301693342626095, -0.02119617536664009, -0.017719553783535957, -0.008242957293987274, -0.026403095573186874, 0.020587366074323654, -0.046205420047044754, -0.0232949648052454, -0.023679476231336594, -0.016317689791321754, -0.026627395302057266, 0.0024833008646965027, -0.009604766964912415, -0.0008015654748305678, -0.01980232261121273, -0.011639472097158432, -0.014427177608013153, 0.0022670135367661715, 0.014691528864204884, -0.0024712849408388138, -0.017335042357444763, 0.012288333848118782, -0.01596522144973278, -0.032443124800920486, 0.022686155512928963, 0.022141432389616966, 0.02601858600974083, 0.00039903042488731444, 0.02651524543762207, 0.049794189631938934, -0.035663407295942307, 0.017495255917310715, -0.0055473740212619305, -0.007469929289072752, 0.029895739629864693, -0.015524636022746563, -0.02638707496225834, -0.00608809245750308, 0.021292302757501602, 0.0039352308958768845, 0.00015032482042443007, 0.02010672725737095, 0.03611200302839279, 0.005583421792834997, -0.011206896975636482, 0.020587366074323654, -0.02366345375776291, -0.009596756659448147, 0.0176714900881052, -0.006160188466310501, 0.00013993600441608578, 0.01980232261121273, 0.010686204768717289, 0.017335042357444763, 0.016437850892543793, 0.04505188390612602, 0.03739370405673981, -0.04562865197658539, -0.0032463150564581156, 0.04409060627222061, 0.018760938197374344, -0.004722277168184519, 0.015700871124863625, -0.018392447382211685, 0.008234946057200432, -0.01373826153576374, 0.020923813804984093, 0.02295851707458496, 0.02029898203909397, 0.007802371401339769, 0.008435212075710297, -0.0048063891008496284, -0.013369771651923656, 0.02901456691324711, 0.0026575324591249228, 0.0018194185104221106, -0.018792981281876564, -0.04684627056121826, -0.030584653839468956, -0.01701461710035801, -0.0010634135687723756, 0.004638165235519409, -0.011575386859476566, -0.007970594801008701, -0.022445837035775185, 0.031978506594896317, -0.03348451107740402, -0.0030320303048938513, 0.006180215161293745, -0.03492642566561699, -0.007538020145148039, -0.018696852028369904, -0.03678489476442337, 0.0023611385840922594, 0.020987898111343384, -0.0012837063986808062, -0.009011979214847088, -0.014274975284934044, 0.009468586184084415, -0.018264276906847954, 0.010766311548650265, -0.019225556403398514, -0.014018634334206581, 0.0474550798535347, 0.008002637885510921, -0.014451209455728531, -0.001399860717356205, 0.01961006596684456, -0.006556715350598097, -0.016774296760559082, 0.017863744869828224, -0.007926536723971367, -0.04245643690228462, -0.039059922099113464, 0.02917478047311306, 0.02292647585272789, -0.010109437629580498, -0.030264228582382202, -0.01553264632821083, -0.002415210474282503, 0.009644820354878902, -0.0024232210125774145, 0.03591974452137947, 0.015332380309700966, -0.02249390073120594, 0.0038210791535675526, 0.015612753108143806, 0.038194771856069565, -0.011327056214213371, 0.003200253937393427, 0.014066698029637337, 0.002589442068710923, 0.007914520800113678, 0.03438170254230499, -0.03393310680985451, -0.00763414753600955, 0.006921200081706047, -0.04953784868121147, -0.0089719258248806, -0.002080765785649419, 0.013257622718811035, 0.005659522954374552, 0.0008851766469888389, -0.016598062589764595, 0.00043107301462441683, 0.022814325988292694, 0.050691381096839905, -0.015492593869566917, -0.007530009374022484, -0.023134751245379448, 0.025569988414645195, -0.00365085294470191, 0.012592738494277, 0.030857017263770103, -0.015572699718177319, -0.004493973683565855, -0.020411131903529167, -0.007890488021075726, 0.022221537306904793, -0.00392922293394804, -0.017335042357444763, -0.046301547437906265, -0.042808905243873596, -0.01877695880830288, -0.017719553783535957, 0.01813610829412937, 0.014955880120396614, 0.014995933510363102, -0.008731606416404247, -0.022686155512928963, -0.012200216762721539, -0.008667521178722382, -0.05319070443511009, 0.021692834794521332, 0.026066649705171585, -0.01606134884059429, -0.0058998423628509045, -0.04203988239169121, 0.0006533684791065753, 0.003138171508908272, 0.004497978836297989, 0.02379162423312664, 0.0007590089226141572, 0.03229893371462822, -0.005875810515135527, -0.014723571017384529, -0.009476596489548683, -0.003939236048609018, -0.014347070828080177, 0.00923627708107233, 0.004509994760155678, -0.006528678350150585, 0.03473417088389397, -0.022205516695976257, -0.015676839277148247, 0.012961228378117085, -0.017895787954330444, 0.007013322319835424, 0.026435138657689095, -0.01648591458797455, -0.019962534308433533, 0.02339109219610691, 0.0005692566628567874, -0.03390106186270714, 0.02678760699927807, -0.005811725277453661, 0.0070934290997684, 0.006404513027518988, 0.016870424151420593, -0.014875773340463638, 0.00026810637791641057, -0.05860590189695358, 0.018360406160354614, -0.016077371314167976, 0.024833008646965027, -0.016469892114400864, -0.023951837792992592, -0.009716915898025036, 0.023743560537695885, -0.02558601088821888, -0.022718198597431183, -0.00490251649171114, 0.006036023609340191, 0.03483029827475548, -0.00034871354000642896, 0.01596522144973278, -0.005999975372105837, -0.002311072079464793, 0.0024953167885541916, 0.05040299892425537, 0.00568355480208993, -0.012584728188812733, 0.006356449332088232, -0.013345739804208279, -0.021612728014588356, -0.011487269774079323, 0.01651795580983162, -0.015252274461090565, -0.040021199733018875, 0.005775677505880594, -0.00994922500103712, 0.0431293286383152, 0.014699539169669151, 0.05094772204756737, 0.020907791331410408, 0.008763649500906467, -0.00252135144546628, -0.03060067631304264, 0.007550036069005728, 0.0031221501994878054, -0.015644796192646027, -0.020619409158825874, 0.03950851783156395, -0.019946513697504997, 0.02781297080218792, -0.011687535792589188, 0.047262825071811676, -0.005299043841660023, 0.01093453448265791, 0.027700820937752724, 0.013666165992617607, 0.0027496549300849438, 0.017335042357444763, -0.004381824750453234, 0.020010599866509438, 0.00040829271893016994, -0.024448499083518982, -0.006941226776689291, 0.013409825041890144, 0.004205590113997459, -0.008170860819518566, -0.002459269016981125, -0.0143230389803648, -0.019978556782007217, 0.01302531361579895, 0.00829102098941803, 0.049025166779756546, 0.017270958051085472, 0.0025473861023783684, 0.00815484020859003, -0.023487219586968422, -0.026627395302057266, -0.02289443276822567, -0.014939858578145504, 0.03358063846826553, -0.030392399057745934, 0.002881830558180809, 0.03479825705289841, 0.02119617536664009, 0.006897168233990669, 0.007782344706356525, -0.0593428798019886, 0.013842400163412094, -0.01081437524408102, 0.040918391197919846, -0.03973281383514404, 0.0021969203371554613, 0.007946562953293324, 0.015628773719072342, 0.02648320235311985, -0.007766323164105415, 0.011671514250338078, -0.04870473966002464, -0.010357768274843693, -0.02103596180677414, -0.008523330092430115, 0.007694227620959282, 0.009428532794117928, 0.02883833274245262, -0.004285696893930435, 0.012945207767188549, -0.017831703647971153, -0.025890415534377098, 0.016806339845061302, -0.0051588574424386024, -0.019562002271413803, -0.045500483363866806, 0.0011395147303119302, 0.015043997205793858, 0.0043978458270430565, 0.002739641582593322, -0.02063542976975441, -0.00880370195955038, 0.02499322220683098, -0.04383426532149315, 0.051556531339883804, -0.0017503265989944339, -0.006789024453610182, 0.0018294317414984107, 0.007846429944038391, 0.01933770440518856, -0.01747923344373703, -0.007477940060198307, -0.002979961223900318, -0.009316383861005306, -0.006284353323280811, -0.011343077756464481, 0.017190851271152496, -0.019449854269623756, -0.019529961049556732, -0.01236043032258749, 0.01986640691757202, 0.0021148112136870623, 0.015700871124863625, 0.011767642572522163, 0.021837027743458748, -0.013786325231194496, 0.03386902064085007, 0.02930295094847679, 0.021148111671209335, -0.043385669589042664, -0.0062883589416742325, -0.018857065588235855, -0.009628798812627792, 0.02283034659922123, 0.004301717970520258, -0.009893150068819523, 0.001577096409164369, 0.04412265121936798, -0.01219220645725727, -0.00010075893078465015, 0.021837027743458748, -0.02704394795000553, 0.0014689526287838817, 0.0016642122063785791, 0.026226861402392387, 0.015620764344930649, 0.006600773893296719, -0.01488378457725048, 0.01590113714337349, -0.016566019505262375, 0.0003912700922228396, -0.0021308325231075287, 0.01189581211656332, -0.05716398358345032, 0.015180177986621857, -0.03611200302839279, -0.019225556403398514, 0.022445837035775185, -0.023615390062332153, 0.03569544851779938, -0.005895837210118771, 0.0068450989201664925, 0.011695546098053455, -0.018424490466713905, -0.020587366074323654, -0.008074733428657055, 0.005891831591725349, -0.008939883671700954, -0.006184220314025879, 0.017302999272942543, 0.009781001135706902, -0.006156183313578367, -0.00408342806622386, -0.0070293438620865345, -0.003931225743144751, 0.021404452621936798, 0.01977027952671051, -0.027396416291594505, 0.013570037670433521, 0.010854428634047508, 0.011038673110306263, -0.0031862352043390274, -0.013570037670433521, -0.0012917170533910394, -0.037201449275016785, -0.025537947192788124, -0.045308224856853485, -0.028085332363843918, 0.017831703647971153, -0.02598654292523861, 0.01587710529565811, -0.01377030462026596, -0.019065342843532562, 0.03161001577973366, 0.009052032604813576, -0.03396514803171158, -0.006408518645912409], "id": 36}, {"title": "Dale Reid", "text": "Dale Reid OBE (born 20 March 1959) is a Scottish professional golfer from Ladybank, Fife. She is one of the most successful players in the history of the Ladies European Tour, with 21 tournament victories. She topped the Order of Merit in 1984 and 1987 and was made a life member of the tour after collecting her 20th title at the 1991 Ford Classic. She played for Europe in the first four Solheim Cups (1990, 1992, 1994 and 1996) and was Europe's non-playing captain in 2000 and 2002.", "vector": [0.05349265784025192, -0.01442507840692997, -0.02503391169011593, 0.022082030773162842, -0.033432912081480026, 0.02674632892012596, 0.030317943543195724, -0.014147830195724964, 0.007758881896734238, 0.03020378202199936, -0.047654129564762115, 0.01658598706126213, 0.012606654316186905, -0.0024646578822284937, -0.01751558482646942, -0.0060953907668590546, -0.03103552758693695, 0.009899403899908066, -0.05251413583755493, -0.050589703023433685, 0.03193250671029091, 0.013095916248857975, 0.03477022796869278, 0.0027887942269444466, 0.01999451220035553, 0.032552238553762436, 0.006637656129896641, -0.002529892837628722, -0.004484903067350388, 0.030790897086262703, 0.05029614642262459, 0.02762700244784355, 0.02041853964328766, -0.0036633501295000315, -0.02963297627866268, 0.015860246494412422, -0.03538995981216431, -0.01761343702673912, 0.011041015386581421, 0.05531923845410347, 0.0009168568649329245, 0.021038271486759186, -0.031948816031217575, 0.004203577060252428, 0.009711853228509426, -0.010910545475780964, -0.0024483492597937584, 0.019228002056479454, -0.0023953458294272423, 0.04990473762154579, -0.021462298929691315, 0.02474035508930683, -0.01756451092660427, 0.058091722428798676, -0.029714519158005714, 0.011057323776185513, 0.033530764281749725, 0.06308219581842422, -0.03379170596599579, 0.02637122943997383, 0.012549573555588722, -0.013381319120526314, -0.02867075987160206, 0.002778601134195924, 0.04833909869194031, -0.02739867940545082, -0.00852946937084198, 0.015762394294142723, -0.02987760677933693, 0.010323431342840195, -0.02152753435075283, -0.04100016504526138, -0.029665593057870865, 0.053949303925037384, 0.011693364940583706, 0.022946393117308617, -0.002660362748429179, 0.022538674995303154, -0.008578396402299404, -0.0394345261156559, 0.00607092771679163, -0.0038712865207344294, -0.016064107418060303, 0.011783063411712646, 0.04768674820661545, -0.07143227010965347, 0.04948071017861366, -0.08128274977207184, 0.03503116965293884, -0.002195563865825534, -0.016186421737074852, 0.0040078721940517426, 0.05988568440079689, 0.04948071017861366, 0.015419911593198776, -0.04628419876098633, -0.029649285599589348, -0.015819475054740906, 0.0051127891056239605, 0.011530277319252491, -0.037020836025476456, 0.01999451220035553, 0.03066042624413967, 0.023272568359971046, 0.008814872242510319, 0.020255452021956444, -0.03555304929614067, -0.02240820601582527, 0.0040690298192203045, 0.04621896147727966, 0.005532739218324423, -0.010241887532174587, -0.10528921335935593, -0.04618634656071663, -0.05336219072341919, -0.0022179882507771254, -0.030513647943735123, 0.0260450541973114, -0.0029029552824795246, -0.0024993140250444412, -0.036368485540151596, -0.045468758791685104, 0.0390431173145771, 0.0015676773618906736, 0.04325077310204506, 0.005055708810687065, 0.001452496973797679, 0.009271517395973206, 0.03274794667959213, -0.009214436635375023, -0.013291621580719948, 0.009328598156571388, -0.018852900713682175, 0.007921969518065453, 5.5870168580440804e-05, 0.06973616033792496, 0.004117956385016441, -0.016015179455280304, 0.03309042751789093, 0.04687131196260452, 0.053623128682374954, 0.012060311622917652, 0.030676735565066338, 0.015901019796729088, -0.023827064782381058, -0.05140513926744461, 0.015501455403864384, 0.03535734489560127, 0.03799935802817345, 0.0056346687488257885, 0.017042631283402443, 0.052220579236745834, 0.03927144035696983, -0.0179885383695364, 0.012468029744923115, 0.0028703378047794104, -0.03356338292360306, 0.02250605821609497, -0.05639561638236046, -0.004525674507021904, -0.01137534435838461, 0.07854288071393967, -0.008586550131440163, 0.022342970594763756, -0.029893916100263596, 0.040380433201789856, -0.061125148087739944, 0.05313386768102646, -0.033856939524412155, 0.03382432088255882, -0.03057888336479664, 0.008586550131440163, 0.015411756932735443, -0.033253517001867294, 0.04445761814713478, 0.030285324901342392, 0.04540352523326874, -0.006890441756695509, 0.035585664212703705, -0.039304058998823166, -0.006234014872461557, -0.015615615993738174, -0.02213095687329769, -0.04563184827566147, -0.0195704847574234, 0.012989909388124943, 0.05633037909865379, -0.022440822795033455, 0.0019723379518836737, -0.010608834214508533, 0.060929443687200546, 0.02275068871676922, 0.0197661891579628, 0.008945342153310776, -0.030741970986127853, 0.029665593057870865, -0.03224237263202667, -0.001264946418814361, -0.02097303606569767, -0.014221219345927238, 0.030187472701072693, -0.013666721992194653, -0.0008088114554993808, 0.008064670488238335, 0.017124174162745476, -0.004030296579003334, 0.003932444378733635, 0.003039540955796838, 0.015460683032870293, -0.044718559831380844, 0.017743906006217003, 0.011937996372580528, 0.057113200426101685, 0.015175280161201954, -0.03131277486681938, 0.03552043065428734, -0.025751497596502304, 0.03519425541162491, 0.014408770017325878, -0.04948071017861366, -0.03770580142736435, -0.03503116965293884, -0.02955143339931965, -0.019211692735552788, 0.01723833568394184, 0.07208462059497833, -0.044620707631111145, -0.05036138370633125, -0.024381563067436218, -0.041554663330316544, 0.005275876726955175, 0.01500403881072998, 0.04067399352788925, 0.020565317943692207, -0.0390431173145771, 0.03692298382520676, 0.019309544935822487, -0.032976265996694565, 0.053753599524497986, -0.02955143339931965, -0.009467221796512604, 0.0042158085852861404, 0.02870337851345539, -0.004961933474987745, 0.00687413290143013, 0.007844503037631512, 0.023990152403712273, -0.015615615993738174, -0.01418860163539648, 0.00025291283964179456, 0.001114090671762824, -0.015379139222204685, 0.015379139222204685, -0.008297069929540157, 0.023973844945430756, -0.03574875369668007, -0.013365010730922222, 0.005822219420224428, 0.06269078701734543, -0.015998871996998787, 0.01433537993580103, -0.018102698028087616, -0.048404332250356674, 0.04321815446019173, 0.01097578089684248, -0.017368806526064873, -0.06784434616565704, -0.013226386159658432, 0.053851451724767685, -0.03998902440071106, -0.007367472164332867, -0.0325685478746891, -0.009214436635375023, 0.030725661665201187, 0.0230279378592968, 0.00050557084614411, -0.002847913419827819, -0.007860811427235603, -0.016137495636940002, -0.0007889351691119373, 0.030970292165875435, -0.013291621580719948, -6.569681772816693e-06, -0.05029614642262459, -0.054732125252485275, -0.036009691655635834, -0.007253311108797789, 0.004117956385016441, 0.047980304807424545, 0.007881197147071362, -0.029665593057870865, 0.07188891619443893, 0.010527290403842926, 0.0012323289411142468, 0.030122239142656326, 0.033155664801597595, -0.01989666000008583, -0.02200048789381981, 0.0010223540011793375, -0.00904319528490305, -0.047980304807424545, 0.007587640080600977, -0.03137801215052605, -0.020304378122091293, -0.05120943486690521, -0.021217668429017067, -0.021266594529151917, 0.0016736842226237059, -0.026909416541457176, -0.01288390252739191, -0.04514258727431297, 0.008961651474237442, 0.04031519964337349, -0.022815924137830734, 0.022587601095438004, 0.017222026363015175, 0.012027693912386894, -0.0038447848055511713, 0.004109801724553108, -0.04100016504526138, 0.061581794172525406, 0.032829489558935165, 0.017841758206486702, 0.023451965302228928, 0.05770031362771988, -0.034737613052129745, 0.030872439965605736, 0.009638464078307152, 0.0061565483920276165, -0.016618603840470314, -0.021967869251966476, -0.016064107418060303, -0.001248637679964304, 0.009010577574372292, 0.015232360921800137, 0.005532739218324423, -0.06520233303308487, 0.02694203518331051, -0.035259488970041275, -0.023337803781032562, -0.01171782799065113, 0.008782255463302135, 0.01803746446967125, 0.019537867978215218, -0.01882028393447399, -0.03346553072333336, 0.017042631283402443, -0.02069578878581524, -0.021331828087568283, -0.011571049690246582, 0.0008393903262913227, -0.01678169146180153, 0.011334572918713093, 0.025082837790250778, 0.001830655848607421, 0.00812990590929985, 0.019162766635417938, -8.893358608474955e-05, 0.017075248062610626, 0.011407962068915367, 0.05140513926744461, -0.020989345386624336, -0.059526894241571426, 0.02917633205652237, -0.0030069234780967236, -0.002379037206992507, 0.03535734489560127, 0.02343565598130226, -0.013014372438192368, 0.005846682470291853, -0.007909737527370453, -0.02343565598130226, -0.012916520237922668, -0.0358792245388031, -0.021967869251966476, -0.017319878563284874, -0.03542257845401764, -0.03173680230975151, -0.0009413199732080102, -0.0018816206138581038, -0.008505006320774555, 0.07756435871124268, -0.07012756913900375, 0.01924430951476097, 0.024772971868515015, -0.03336767852306366, 0.0427941270172596, -0.007273696828633547, 0.0036021925043314695, -0.029910225421190262, 0.0030232323333621025, 0.01102470699697733, -0.022848540917038918, -0.0061116996221244335, 0.01113886758685112, 0.02004343830049038, 0.04295721650123596, 0.04034781828522682, 0.00871702004224062, 0.0031088530085980892, -0.04400097578763962, -0.0523836649954319, -0.016545213758945465, -0.05094849690794945, -0.003485992783680558, -0.05290554463863373, 0.026273377239704132, -0.022799614816904068, 0.038423385471105576, 0.05003520846366882, 0.011587358079850674, -0.02144598960876465, 0.00578960170969367, -0.029584050178527832, 0.017319878563284874, -0.006853747181594372, 0.03992379084229469, -0.003720430890098214, -0.0228322334587574, -0.01263111736625433, 0.005536816548556089, 0.007016834337264299, -0.01691216044127941, 0.007974972948431969, -0.008158446289598942, 0.05985306575894356, 0.010486518032848835, 0.0162353478372097, 0.009100276045501232, 0.009304135106503963, -0.0587114542722702, -0.036140162497758865, -0.022473439574241638, 0.044392384588718414, -0.024169549345970154, -0.03454190492630005, -0.03649895638227463, -0.010486518032848835, 0.020190216600894928, 0.08245697617530823, 0.015509609133005142, 0.013780883513391018, -0.018852900713682175, -0.001851041684858501, 0.0005799795035272837, 0.03812982887029648, 0.008309301920235157, 0.02955143339931965, 0.023696595802903175, 0.028034720569849014, -0.030774587765336037, 0.014449541456997395, 0.012826821766793728, 0.004362587351351976, 0.029763447120785713, 0.013674876652657986, -0.03992379084229469, 0.041228488087654114, -0.026648476719856262, 0.012614808976650238, -0.02353350818157196, 0.01984773389995098, 0.03235653415322304, 0.0039365217089653015, -0.022245118394494057, 0.026827873662114143, 0.0024646578822284937, -0.017499275505542755, -0.02162538655102253, -0.02995915152132511, 0.02717035636305809, 0.015582999214529991, -0.05280769243836403, -0.0009316366631537676, 0.005915994755923748, 0.012272325344383717, 0.04749104380607605, -0.03173680230975151, -0.0006599941989406943, 0.03878217935562134, 0.007811885327100754, -0.00787712074816227, -0.02619183249771595, 0.043544329702854156, 0.038521237671375275, -0.04778460040688515, 0.026305994018912315, -0.002062035957351327, -0.03388955816626549, 0.006454182788729668, -0.015264978632330894, 0.025947201997041702, -0.03326982632279396, -0.0044604395516216755, -0.016749072819948196, 0.004908930044621229, -0.029143713414669037, -0.022147266194224358, 0.010086954571306705, 0.009051349014043808, 0.04501211643218994, 0.047327958047389984, 0.022082030773162842, 0.029763447120785713, 0.010616987943649292, -0.023615052923560143, 0.01906491443514824, 0.022212501615285873, -0.034607142210006714, 0.04390312358736992, 0.05496044456958771, 0.018167933449149132, -0.05104634910821915, 0.003125161863863468, -0.008154368959367275, -0.014734944328665733, -0.034737613052129745, 0.006515340879559517, -0.007775190751999617, -0.02245713211596012, -0.017124174162745476, 0.008839336223900318, -0.010674068704247475, 0.025784114375710487, 0.015118199400603771, -0.01683061756193638, 0.012321251444518566, 0.017140483483672142, -0.022196192294359207, -0.008700711652636528, 0.025833040475845337, 0.014359843917191029, 0.03659680858254433, 0.005903763230890036, -0.02619183249771595, 0.030366869643330574, 0.019423706457018852, 0.0007874062284827232, 0.031165998429059982, -0.047230105847120285, 0.0007165651768445969, -0.004016026854515076, -0.015216052532196045, -0.06321267038583755, 0.002254683058708906, 0.0021629463881254196, -0.0015238476917147636, -0.004052721429616213, -0.008880107663571835, 0.011962459422647953, -0.02358243428170681, -0.02731713466346264, -0.06030971184372902, -0.014098904095590115, 0.030040694400668144, -0.004749919753521681, 0.013519943691790104, -0.008496852591633797, 0.003198551246896386, -0.05766769498586655, 0.04207654297351837, -0.05933118611574173, 0.019423706457018852, -0.013095916248857975, -0.02571887895464897, 0.01020926982164383, -0.008456080220639706, 0.050263527780771255, -0.03773842006921768, -0.011081786826252937, -0.03509640321135521, -0.03402002528309822, 0.01979880779981613, -0.04073922708630562, -0.006556112319231033, -0.0032637862022966146, -0.007175844628363848, -0.019162766635417938, 0.011660747230052948, 0.008472389541566372, -0.004733610898256302, -0.036564189940690994, -0.004839617758989334, -0.004016026854515076, -0.040804460644721985, 0.01007064525038004, 0.028344586491584778, 0.016373973339796066, -0.02195156179368496, -0.00929598044604063, -0.04967641457915306, -0.018755048513412476, 0.012215244583785534, -0.01723833568394184, 0.02968190237879753, 0.008064670488238335, 0.011986922472715378, 0.015949945896863937, 0.007453093305230141, -0.0032352458219975233, 0.011758599430322647, 0.01710786670446396, 0.01011141762137413, -0.011978767812252045, 0.00885564461350441, -0.008578396402299404, 6.513939297292382e-05, 0.025702569633722305, -0.0008439771481789649, -0.02385968342423439, 0.007110609672963619, -0.004855926614254713, -0.008337842300534248, 0.015256823971867561, 0.00706168357282877, -0.04719748720526695, -0.013740111142396927, 0.028556600213050842, -0.016422899439930916, -0.009459068067371845, -0.002915186807513237, -0.0020589781925082207, -0.0013424130156636238, -0.013927661813795567, 0.02553948387503624, 0.021788474172353745, 0.006849669851362705, -0.03565090149641037, 0.017678672447800636, 0.0012221360811963677, 0.026273377239704132, -0.017499275505542755, -0.017254645004868507, -0.023403039202094078, -0.04325077310204506, 0.008880107663571835, 0.020483775064349174, -0.04263104125857353, -0.00029024455579929054, -0.016520751640200615, 0.025702569633722305, 0.008272606879472733, 0.023174716159701347, -0.0017593051306903362, -0.020728405565023422, -0.013813501223921776, 0.04736057296395302, 0.009214436635375023, 0.003223014296963811, 0.0001818169403122738, 0.0059119174256920815, -0.014555548317730427, -0.007714033126831055, -0.00033152606920339167, -0.009548765607178211, -0.05988568440079689, 0.0044604395516216755, -0.03737962618470192, 0.03402002528309822, 0.01864088699221611, -0.0025319315027445555, 0.017140483483672142, 0.003329021157696843, -0.006356330588459969, 0.014408770017325878, -0.005491967312991619, -0.020010821521282196, 0.011220411397516727, 0.048176009207963943, 0.0051984102465212345, 0.011122559197247028, -0.00915735587477684, 0.004103686194866896, -0.02940465323626995, 0.02739867940545082, 0.010820847004652023, -0.017646053805947304, 0.035161636769771576, 0.0077384961768984795, 0.007995358668267727, -0.008170677348971367, 0.0063033271580934525, -0.01102470699697733, 0.007974972948431969, 0.024381563067436218, 0.0016482018399983644, -0.03015485592186451, 0.03155740723013878, -0.03936929255723953, 0.03415049612522125, -0.011636284179985523, -0.018167933449149132, 0.01137534435838461, 0.04899144917726517, 0.02242451347410679, 0.023451965302228928, -0.027692236006259918, -0.050491850823163986, -0.017368806526064873, -0.026485389098525047, -0.013870581053197384, -0.0003751009644474834, 0.059070248156785965, -0.002014129189774394, -0.006588730029761791, -0.02054900862276554, -0.002780639799311757, -0.025833040475845337, -0.002627745270729065, -0.03751009702682495, 0.024479415267705917, 0.022294044494628906, -0.03366123512387276, -0.021282901987433434, 0.0004092473827768117, -0.006075004581362009, -0.0007114686886779964, -0.011310109868645668, -0.03878217935562134, 0.004411513451486826, -0.004586832597851753, -0.025555791333317757, 0.02200048789381981, 0.00687413290143013, 0.036466337740421295, 0.029747137799859047, -0.009817860089242458, -0.01225601602345705, 0.00036796589847654104, 0.013006218709051609, -0.04814339429140091, 0.019586794078350067, 0.015689006075263023, 0.0081666000187397, 0.006527572404593229, -0.011986922472715378, 0.003302519442513585, -0.0020763061475008726, 0.030676735565066338, 0.0197661891579628, 0.010845310986042023, -0.026257067918777466, 0.05750460922718048, 0.01878766529262066, -0.028442438691854477, -0.013601487502455711, 0.027708545327186584, -0.01999451220035553, 0.020581627264618874, -0.07632489502429962, 0.0005239181919023395, 0.021054580807685852, 0.05942903831601143, 0.0179885383695364, -0.04879574477672577, -0.0359770767390728, 0.01710786670446396, 0.020353304222226143, -0.005010859575122595, -0.044164061546325684, 0.010396820493042469, 0.026159215718507767, -0.024772971868515015, -0.04964379593729973, 0.07104086130857468, 0.007958663627505302, 0.01095131691545248, 0.02483820728957653, 0.024430489167571068, 0.04589278623461723, 0.03165525943040848, 0.007322623394429684, -0.03976070135831833, 0.02516438253223896, 0.0010947240516543388, -0.012647425755858421, 0.03206297755241394, -0.010527290403842926, 0.008231835439801216, 0.015362830832600594, 0.001993743237107992, -0.0018479838036000729, -0.03057888336479664, -0.008627322502434254, 0.013528097420930862, -0.03649895638227463, 0.036042310297489166, 0.024544650688767433, -0.08258745074272156, -0.0492197684943676, -0.021233975887298584, -0.010714841075241566, -0.041261106729507446, -0.024854516610503197, -0.0246588122099638, -0.007807807996869087, -0.031345393508672714, -0.033530764281749725, 0.023272568359971046, -0.0075917174108326435, 0.004705070983618498, 0.03145955502986908, -0.009450913406908512, 0.0006921020685695112, -0.04295721650123596, -0.00920628197491169, -0.012166318483650684, -0.02405538782477379, -0.03878217935562134, 0.012843131087720394, 0.06719199568033218, 0.03966284915804863, -0.013234540820121765, -0.032177139073610306, -0.01761343702673912, -0.005169869866222143, -0.0037673183251172304, -0.03806459531188011, -0.004709147848188877, -0.003930405713617802, -0.010967626236379147, -0.0005417558713816106, -0.025131763890385628, -0.027366062626242638, -0.060374945402145386, 0.00337387016043067, -0.0034717225935310125, -0.03229130059480667, 0.0212013591080904, -0.0063726394437253475, 0.002774524036794901, 0.006584652699530125, -0.018934443593025208, -0.03075827844440937, -0.026012437418103218, -0.012508802115917206, -0.02646908164024353, 0.01481648813933134, 0.028915392234921455, 0.03170418739318848, 0.022799614816904068, -0.02762700244784355, -0.018167933449149132, -0.010005410760641098, -0.02050008252263069, -0.04843695089221001, -0.02503391169011593, -0.078477643430233, 0.0038203217554837465, -0.006817052140831947, -0.0007298160344362259, -0.013862427324056625, -0.012671888805925846, -0.01263111736625433, 0.024870824068784714, -0.02731713466346264, 0.0457623191177845, -0.005116866435855627, 0.0020436886698007584, 0.034509290009737015, -0.005092403385788202, -0.008142136968672276, -0.0005004743579775095, -0.043413858860731125, 0.0361727811396122, 0.004005833528935909, 0.008586550131440163, 0.036140162497758865, 0.0011303994106128812, -0.024707738310098648, 0.02358243428170681, 0.012745278887450695, 0.01723833568394184, 0.02260391041636467, 0.01580316759645939, 0.004101647529751062, 0.021609077230095863, -0.02167431265115738, 0.01668383926153183, -0.006670273840427399, 0.01971726305782795, -0.019684646278619766, -0.03335136920213699, 0.010992089286446571, -0.014147830195724964, -0.033253517001867294, -0.04067399352788925, -0.017923302948474884, 0.02405538782477379, -0.006315558683127165, -0.023924918845295906, -0.029143713414669037, -0.014058131724596024, 0.01901598833501339, -0.030269017443060875, 0.0011997114634141326, -0.0060953907668590546, 0.04703439772129059, 0.0012894095852971077, 0.0019560293294489384, 0.019929276779294014, 0.015044810250401497, 0.01500403881072998, 0.03398741036653519, 0.01268004346638918, -0.03437881916761398, 0.025409013032913208, -0.002008013427257538, -0.03666204214096069, -0.010829001665115356, -0.011489505879580975, 0.025082837790250778, -0.003834591945633292, -0.005907840095460415, 0.014686018228530884, 0.002181293675675988, -0.02963297627866268, -0.012035848572850227, 0.003096621483564377, -0.02857290767133236, 0.00517394719645381, 0.0007991281454451382, -0.054275479167699814, -0.03649895638227463, -0.02111981436610222, -0.024821897968649864, -0.036466337740421295, 0.009826014749705791, -0.013250849209725857, 0.016243502497673035, -0.001736880512908101, 0.04328338801860809, 0.02694203518331051, 0.00019124543177895248, 0.009475376456975937, 0.038195062428712845, 0.013601487502455711, 0.021217668429017067, -0.014539239928126335, -0.03048103116452694, -0.030415795743465424, -0.01821685954928398, -0.02343565598130226, -0.014115212485194206, 0.0066784280352294445, 0.03519425541162491, 0.024772971868515015, 0.016602294519543648, 0.0016940701752901077, -0.011261183768510818, 0.02591458335518837, -0.030513647943735123, -0.0009927944047376513, 0.01640659011900425, 0.06086421012878418, 0.02227773517370224, -0.013854272663593292, 0.022245118394494057, 0.03137801215052605, 0.024772971868515015, -0.03490069881081581, -0.03369385376572609, -0.05088325962424278, 0.0004915555473417044, -0.012313096784055233, 0.018950752913951874, 0.010886082425713539, 0.004211731720715761, -0.041782986372709274, -0.028882773593068123, 0.026827873662114143, 0.014628937467932701, 0.0035226873587816954, -0.004855926614254713, -0.03946714475750923, 0.018885517492890358, 0.004513442981988192, 0.0041709598153829575, 0.03561828285455704, 0.006543880794197321, -0.04621896147727966, 0.028116263449192047, -0.010796383954584599, -0.007962740957736969, 0.004786614328622818, -0.010388665832579136, -0.04165251553058624, -0.0013913392322137952, 0.048860978335142136, -0.03398741036653519, -0.021315520629286766, -0.03359599784016609, -0.03366123512387276, 0.007126918528228998, 0.009263362735509872, 0.028491364791989326, -0.02368028648197651, -0.035161636769771576, 0.0059649208560585976, 0.02885015681385994, -0.022766998037695885, 0.010135880671441555, 0.03731439262628555, -0.007151381578296423, -0.03532472625374794, -0.0015034617390483618, 0.0070535289123654366, -0.008313379250466824, 0.044392384588718414, -0.006951599381864071, -0.01020926982164383, 0.029111096635460854, 0.013536252081394196, 0.02754545770585537, 0.00539411511272192, -0.012655580416321754, 0.003114969003945589, 0.028931699693202972, -0.0075754085555672646, 0.019325854256749153, 0.009165510535240173, 0.00871702004224062, 0.02200048789381981, 0.034411437809467316, -0.026778947561979294, 0.023549817502498627, -0.011016552336513996, -0.014302763156592846, -0.003895749803632498, 0.0006915924022905529, -0.013870581053197384, -0.009002422913908958, -0.024756664410233498, -0.021168742328882217, -0.031850963830947876, -0.02232666127383709, 0.00426473468542099, 0.026778947561979294, -0.013332393020391464, 0.02144598960876465, 0.014408770017325878, 0.02363136038184166, -0.03132908418774605, 0.010282658971846104, -0.023093173280358315, 0.01593363657593727, -0.020907802507281303, 0.016814308241009712, -0.0005519488477148116, -0.06464783847332001, 0.012190781533718109, -0.007302237208932638, -0.0036633501295000315, 0.003987486474215984, 0.0074449386447668076, 0.04915453493595123, 0.01006249152123928, -0.003155740676447749, -0.011742291040718555, 0.00251562288030982, -0.011318263597786427, -0.006136162672191858, 0.00871702004224062, 0.014270145446062088, -0.002503391122445464, -0.0003954868880100548, -0.001559523050673306, 0.014506622217595577, 0.019684646278619766, -0.00629109563305974, -0.01055175345391035, 0.04302245005965233, -0.01952155865728855, -0.015648234635591507, -0.010225578211247921, 0.017792832106351852, 0.0155422268435359, -0.004435976501554251, 0.0024993140250444412, -0.0016940701752901077, 0.011114404536783695, -0.005369652062654495, 0.012166318483650684, -0.03927144035696983, -0.007171767298132181, -0.011685210280120373, 0.017499275505542755, 0.024675119668245316, -0.004774382803589106, -0.0026889031287282705, -0.0279694851487875, -0.015990717336535454, 0.010250041261315346, -0.034085262566804886, -0.022294044494628906, -0.01181568019092083, -0.010657760314643383, 0.03057888336479664, -0.005581665318459272, 0.02666478604078293, 0.000430907413829118, -0.0066091157495975494, -0.012655580416321754, -0.004501211456954479, -0.01577870361506939, -0.025196999311447144, -0.019407397136092186, 0.013829809613525867, 0.006711045745760202, -0.006959753576666117, -0.026012437418103218, -0.002904993947595358, -0.011693364940583706, -0.014588166028261185, 0.018755048513412476, -0.016202731058001518, -0.00836638268083334, -0.004374818876385689, -0.006123931147158146, -0.038651708513498306, 0.013136688619852066, -0.0324217714369297, 0.03214452043175697, 0.0037061606999486685, 0.00624624639749527, -0.007718109991401434, -0.01321007777005434, 0.011709673330187798, 0.028931699693202972, -0.011391653679311275, -0.009915712289512157, -0.04621896147727966, 0.0024646578822284937, 0.010771920904517174, 0.03113337978720665, -0.0033045578747987747, 0.017678672447800636, -0.00440335925668478, 0.007049452047795057, -0.010013564489781857, 0.00027164240600541234, -0.030725661665201187, 0.007620257791131735, 0.003718392224982381, -0.010086954571306705, -0.004917084239423275, 0.009573228657245636, 0.0009632348082959652, -0.022799614816904068, 0.01055990718305111, 0.002144599100574851, -0.01924430951476097, 0.039401911199092865, 0.006250323727726936, 0.01748296618461609, -0.0028132572770118713, 0.0011089941253885627, 0.018722431734204292, -0.03225868195295334, -0.005092403385788202, -0.02885015681385994, 0.004647990223020315, -0.018396256491541862, -0.016251657158136368, -0.01542806625366211, -0.005292185582220554, 0.012908365577459335, -0.020728405565023422, -0.00570805836468935, -0.010755612514913082, -0.023044247180223465, -0.0026848260313272476, -0.025474248453974724, 0.0522858127951622, -0.02032068744301796, 0.019097531214356422, 0.022342970594763756, -0.00278471689671278, -0.04400097578763962, -0.009051349014043808, 0.04758889600634575, 0.02521330863237381, 0.0425984226167202, -0.00972000788897276, -0.04801292344927788, -0.01984773389995098, 0.025506865233182907, -0.045044735074043274, -0.016047798097133636, -0.0005448137526400387, -0.028719687834382057, -0.015664542093873024, 0.012549573555588722, 0.044066209346055984, 0.00539411511272192, -0.0006227898993529379, 0.004468594212085009, -0.013144842348992825, -0.0068252068012952805, 0.02245713211596012, 0.012410948984324932, -0.006963830906897783, 0.022913776338100433, -0.021185049787163734, -0.0006013846723362803, 0.009499839507043362, 0.005002705380320549, -0.015305750072002411, 0.017923302948474884, 0.050491850823163986, 0.027659619227051735, -0.021511225029826164, 0.0073470864444971085, 0.022489748895168304, -0.005659131798893213, -0.007098378147929907, 0.005846682470291853, 0.007241079583764076, -0.014824642799794674, 0.008472389541566372, -0.0006752836634404957, -0.012060311622917652, 0.006050541531294584, -0.02549055777490139, -0.011032860726118088, -0.015990717336535454, -0.011725982651114464, 0.00794235523790121, -0.009948330000042915, 0.014783870428800583, -0.019929276779294014, -0.00047804988571442664, 0.002462619449943304, -0.006205474492162466, 0.03757533058524132, -0.05675440654158592, 0.004802923183888197, -0.003139432054013014, -0.021690621972084045, -0.012965446338057518, 0.029192639514803886, -0.03304150328040123, 0.005410423502326012, -0.012614808976650238, 0.010706686414778233, 0.022587601095438004, 0.0013760497095063329, 0.01780914142727852, -0.012859439477324486, -0.03969546779990196, 0.016602294519543648, -0.017972229048609734, -0.021315520629286766, -0.016194576397538185, 0.003952830098569393, 0.07136703282594681, 0.01002171915024519, 0.005418578162789345, -0.0010580293601378798, 0.014261990785598755, -0.011195948347449303, -0.003243400249630213, 0.011122559197247028, -0.006405256688594818, 0.05815695971250534, -0.005667286459356546, 0.0013801269233226776, -0.019130149856209755, -0.025833040475845337, 0.015028501860797405, -0.004990473855286837, -0.0006125969812273979, -0.009279672056436539, -0.02596350945532322, -0.003223014296963811, -0.012296788394451141, -0.022489748895168304, 0.023223642259836197, -0.019211692735552788, 0.025278544053435326, -0.01090239081531763, 0.002071209717541933, 0.004949701949954033, -0.02712143026292324, -0.0014351689023897052, -0.017580818384885788, -0.046479903161525726, -0.024870824068784714, -0.03382432088255882, 0.020059747621417046, -0.0002894800854846835, 0.026599550619721413, 0.016072260215878487, 0.02880123071372509, -0.025979818776249886, 0.023598743602633476, 0.003777511417865753, 0.022571293637156487, 0.023696595802903175, 0.0023912687320262194, -0.015811320394277573, 0.0032821334898471832, 0.04148942977190018, -0.030317943543195724, 0.023924918845295906, -0.03346553072333336, -0.02679525688290596, 0.008203295059502125, 0.00972000788897276, -0.01585209369659424, 0.025784114375710487, -0.025099147111177444, -0.0059567661955952644, 0.004026219714432955, -0.01214185543358326, -0.009141047485172749, -0.011554740369319916, -0.0032617475371807814, -0.01118779368698597, 0.015525918453931808, -0.007881197147071362, -0.014743098989129066, 0.009777088649570942, 0.0014932687627151608, 0.01339762844145298, 0.010339739732444286, 0.004030296579003334, -0.0424027182161808, -0.04054352268576622, -0.03910835459828377, -0.0008959612459875643, -0.03956499695777893, -0.02880123071372509, -0.007159535773098469, -0.01761343702673912, 0.006812975276261568, 0.008048362098634243, 0.021168742328882217, 0.02142968215048313, -0.04641466587781906, 0.027366062626242638, 0.014694172888994217, -0.0002487082383595407, 0.00830522459000349, -0.00517394719645381, -0.04990473762154579, 0.061255618929862976, 0.034280966967344284, -0.03992379084229469, 0.020565317943692207, 0.024218475446105003, 0.006572421174496412, -0.04073922708630562, -0.04954594373703003, -0.00372858508490026, 0.05323171988129616, 0.004374818876385689, 0.006751817185431719, -0.020891493186354637, -0.018559344112873077, 0.01171782799065113, -0.0014698249287903309, 0.008594704791903496, -0.0065031093545258045, -0.0016176229109987617, 0.019032297655940056, -0.000649291614536196, -0.006486800499260426, -0.04954594373703003, 0.0261429063975811, 0.04302245005965233, 0.011986922472715378, 0.0029437271878123283, -0.0018500224687159061, -0.0023973844945430756, -0.0155422268435359, -0.0029824604280292988, 0.0075224051252007484, -0.01214185543358326, -0.010486518032848835, 0.02544162981212139, 0.01325900387018919, -0.012215244583785534, 0.029339419677853584, -0.01496326643973589, 0.006344099063426256, -0.05182916671037674, -0.004586832597851753, 0.004974165000021458, -0.010258195921778679, 0.022098340094089508, 0.029013244435191154, -0.025148073211312294, -0.006344099063426256, 0.021266594529151917, 0.02032068744301796, -0.003598115174099803, -0.015607462264597416, 0.020353304222226143, -0.005332957021892071, 0.023696595802903175, -0.003076235530897975, -0.0030110005754977465, -0.00634002173319459, -0.008093210868537426, 0.002748022321611643, 0.013087761588394642, 0.03168787807226181, 0.0357813686132431, 0.011937996372580528, -0.01263111736625433, 0.023174716159701347, 0.00997279305011034, -0.0028499518521130085, 0.011611821129918098, 0.006421565543860197, -0.02977975457906723, 0.048763126134872437, 0.002884607994928956, 0.03584660589694977, -0.0013475094456225634, -0.006034233141690493, 0.00953245721757412, 0.026354920119047165, 0.011212256737053394, -0.014539239928126335, 0.014946958050131798, -0.0025584332179278135, -0.02922525815665722, -0.012419103644788265, -0.013046990148723125, 0.015379139222204685, -0.003875363850966096, 0.0106985317543149, 0.031850963830947876, 0.0326174758374691, 0.009964638389647007, 0.020809948444366455, 0.029567740857601166, -0.02036961354315281, 0.02217988297343254, -0.017972229048609734, 0.016096724197268486, 0.015110045671463013, 0.01146504282951355, -0.006649887654930353, -0.018119007349014282, -0.0036307326517999172, -0.025196999311447144, 0.013438399881124496, 0.04152204468846321, -0.03506378456950188, -0.011432425118982792, 0.00534926587715745, 0.005777370184659958, 0.022114647552371025, 0.01668383926153183, -0.0138379642739892, -0.00800351332873106, -0.02358243428170681, 0.032731637358665466, 0.012198936194181442, 0.02368028648197651, -0.018167933449149132, -0.02456095814704895, -0.011546586640179157, -0.03976070135831833, 0.020842567086219788, 0.013250849209725857, 0.045273054391145706, 0.010421283543109894, 0.008741483092308044, -0.02217988297343254, 0.01603148877620697, -0.0026379383634775877, -0.031997743993997574, 0.015697160735726357, -0.01398474257439375, 0.0016145650297403336, -0.006311481352895498, -0.03705345094203949, -0.011114404536783695, -0.04915453493595123, 0.009059503674507141, -0.013813501223921776, 0.061581794172525406, -0.00852946937084198, 0.017548201605677605, 0.011057323776185513, 0.01481648813933134, -0.02087518386542797, -0.014367997646331787, 0.004688762128353119, 0.010315276682376862, -0.010315276682376862, -0.002171100815758109, -0.005072017200291157, -0.020157599821686745, 0.0359770767390728, 0.03415049612522125, 0.01505296491086483, -0.025833040475845337, 0.014107057824730873, -0.008961651474237442, -0.004411513451486826, 0.028996935114264488, -0.05336219072341919, -0.004652067553251982, -0.038097210228443146, 0.014686018228530884, 0.024870824068784714, -0.020793640986084938, -0.042109161615371704, -0.0023953458294272423, 0.03159002587199211, -0.022212501615285873, -0.026811564341187477, 0.029747137799859047, 0.006543880794197321, 0.021331828087568283, 0.014278300106525421, -0.01244356669485569, -0.014017360284924507, -0.0035553048364818096, -0.013063298538327217, 0.01298175472766161, 0.013275312259793282, -0.028034720569849014, -0.036694660782814026, 0.0003042598837055266, 0.0011956343660131097, -0.03910835459828377, 0.004407436121255159, -0.025457939133048058, -0.013772728852927685, 0.007379703689366579], "id": 37}, {"title": "List of African countries by population", "text": "This is a list of African countries and dependent territories sorted by population, which is sorted by the 2015 the mid-year normalized demographic projections.", "vector": [0.0324319452047348, 0.07498246431350708, -0.018316054716706276, -0.02339920774102211, -0.017242148518562317, -0.014461927115917206, 0.009885896928608418, -0.015750613063573837, 0.015130135230720043, -0.011675738729536533, 0.009116264060139656, -0.051117900758981705, -0.04214482381939888, 0.033314935863018036, 0.02149004116654396, -0.023661717772483826, 0.04627339541912079, -0.00022540829377248883, 0.09722424298524857, 0.008185545913875103, -0.025320304557681084, -0.00628234725445509, -0.0023670666851103306, 0.018101273104548454, 0.02009396441280842, 0.034699078649282455, 0.02818405255675316, -0.005232306197285652, -0.009897829033434391, 0.02794540673494339, 0.04104705527424812, -0.02052352763712406, 0.032026246190071106, -0.022408828139305115, 0.024437315762043, 0.01496308296918869, -0.06543663889169693, 0.011156684719026089, 0.037896931171417236, 0.03887537866830826, 0.05064060911536217, -0.01690804585814476, -0.018041612580418587, 0.04410171881318092, 0.009050636552274227, -0.07154597342014313, -0.03885151445865631, -0.00714147137477994, 0.014139755629003048, -0.020845698192715645, -0.008113952353596687, 0.035605933517217636, -0.07646206766366959, -0.007213065400719643, -0.055843085050582886, 0.011723468080163002, -0.04414944723248482, 0.047824591398239136, -0.0003389514167793095, 0.019222907721996307, 0.024771420285105705, 0.01707509718835354, 0.03441270440816879, 4.842829002882354e-05, 0.00518159382045269, 0.006079498212784529, -0.0370139442384243, 0.012874933890998363, 0.053408898413181305, 0.04620179906487465, 0.053647544234991074, 0.002472965745255351, 0.009056602604687214, -0.009653217159211636, -0.011061226949095726, 0.019043924286961555, 0.02909090556204319, -0.005548511631786823, 0.05250204727053642, 0.03505704924464226, 0.03446043282747269, 0.0015071965754032135, 0.038517411798238754, 0.04982921481132507, 0.02971138432621956, 0.0015176372835412621, 0.0020120812114328146, -0.04319486394524574, -0.00866283755749464, -0.017027368769049644, -0.010607799515128136, 0.02854202128946781, 0.04443582147359848, 0.015106270089745522, 0.026346480473876, 0.028732938691973686, 0.031047800555825233, -0.01051830779761076, 0.06997090578079224, 0.0011932282941415906, -0.0217644851654768, -0.043099407106637955, 0.013960771262645721, 0.00497277919203043, 0.013972703367471695, 0.011419194750487804, 0.03429338335990906, -0.07536429911851883, -0.003898873459547758, 0.03367290273308754, 0.004722201265394688, 0.03446043282747269, 0.005369527265429497, 0.0037765675224363804, 0.008215377107262611, 0.0027354760095477104, -0.006598552688956261, -0.029902301728725433, 0.006306211464107037, 0.04085613787174225, 0.03488999605178833, 0.018101273104548454, 0.04856439307332039, 0.07345513254404068, -0.02194346860051155, 0.06405249238014221, -0.006932656746357679, 0.008012528531253338, 0.006336042191833258, -0.011711535975337029, -0.023661717772483826, 0.049447380006313324, -0.00047691844520159066, 0.014211349189281464, -0.0005593257956206799, -0.0005365798715502024, 0.05140427500009537, -0.04911327734589577, -0.019485417753458023, 0.06052054092288017, 3.500447201076895e-05, -0.043099407106637955, 0.017552388831973076, 0.010381086729466915, -0.015082405880093575, -0.011216346174478531, 0.002010589698329568, 0.022647473961114883, -0.006813333835452795, -0.020845698192715645, -0.009253486059606075, -0.015750613063573837, 0.05173838138580322, 0.01477216649800539, 0.00723692961037159, 0.02909090556204319, 0.023232154548168182, 0.009032738395035267, 0.00961741991341114, 0.025224845856428146, 0.011317770928144455, 0.0496382974088192, -0.031787604093551636, -0.025391899049282074, 0.012839136645197868, -0.027348792180418968, 0.005196509417146444, 0.0042836894281208515, -0.029067041352391243, -0.016919977962970734, 0.02534416876733303, -0.030737562105059624, -0.00527705205604434, 0.005253187846392393, -0.02565440908074379, 0.006264448631554842, 0.03236035257577896, -0.016657467931509018, -0.005002609919756651, -0.0018032663501799107, 0.010124541819095612, -0.025988513603806496, 0.022516218945384026, -0.020869562402367592, -0.025153253227472305, -0.01641882210969925, 0.0007524795946665108, 0.020129762589931488, -0.003523006569594145, -0.021573567762970924, -0.032408080995082855, -0.014509656466543674, -0.04445968568325043, -0.012994256801903248, 0.06443432718515396, -0.018005814403295517, -0.024210602045059204, -0.020953088998794556, -0.026585126295685768, 0.05235885828733444, -0.020368406549096107, -0.00028917143936268985, 0.021919604390859604, 0.02117980271577835, -0.0019643520936369896, -0.004716234747320414, 0.01996270939707756, -0.06815720349550247, -0.03228875994682312, 0.00930121447890997, -0.04687000811100006, -0.016717128455638885, -0.0374196395277977, 0.03173987194895744, 0.03016481176018715, 0.01603698916733265, 0.002898053266108036, -0.003534938907250762, 0.04441195726394653, 0.006052650511264801, 0.06758445501327515, 0.002270116936415434, -0.02458050288259983, -0.033171746879816055, -0.040736813098192215, -0.05407710745930672, 0.03718099370598793, 0.01847117394208908, -0.0012775000650435686, 0.015858003869652748, -0.000102356614661403, -0.03016481176018715, 0.04033111780881882, -0.019950777292251587, -0.01409202627837658, 0.023172494024038315, 0.0169796384871006, -0.023864567279815674, 0.0060198367573320866, 0.07083003222942352, -0.018423445522785187, -0.03918561711907387, -0.0129823237657547, -0.006094413809478283, -0.022420760244131088, 0.05932731181383133, -0.010202102363109589, -0.03916175290942192, 0.06896859407424927, 0.06419568508863449, -0.03376835957169533, -0.01404429692775011, -0.024771420285105705, -0.014784098602831364, -0.00440897885710001, 0.03763442113995552, 0.06433887034654617, -0.02968752011656761, -0.01256469450891018, -0.023494666442275047, -0.010017151944339275, -0.018733683973550797, -0.014354536309838295, -0.006944588851183653, 0.006461331155151129, -0.029806843027472496, 0.04987694323062897, -0.028804531320929527, 0.037610556930303574, -0.016514280810952187, -0.013781786896288395, 0.010756953619420528, -0.022611675783991814, -0.018351851031184196, 0.03715712949633598, 0.05655902251601219, 0.0461779348552227, -0.041643667966127396, 0.00812588445842266, 0.03030799888074398, -0.003955551888793707, -0.008239241316914558, 0.014318739995360374, -0.005142814014106989, -0.043934665620326996, 0.03338652849197388, -0.03911402449011803, -0.05708404257893562, -0.013101646676659584, -0.015571629628539085, -0.011801027692854404, 0.045629050582647324, 0.029520468786358833, 0.01985531859099865, 0.0008814973989501595, -0.013698261231184006, 0.004483555443584919, 0.021931536495685577, 0.02103661559522152, 0.07006637006998062, -0.0055872914381325245, 0.015213660895824432, 0.009933625347912312, 0.0033649038523435593, -0.03267059102654457, -0.024365723133087158, -0.024914607405662537, -0.05479304492473602, -0.008084122091531754, 0.0370139442384243, -0.007797746919095516, 0.01968826726078987, -0.0034722944255918264, -0.017194420099258423, 0.030833018943667412, -0.004167350009083748, 0.046297259628772736, -0.007511372212320566, 0.043481238186359406, 0.009766574017703533, 0.007839510217308998, -0.032026246190071106, -0.07975538074970245, 0.00911029800772667, -0.013495412655174732, -0.011341635137796402, -0.007576999720185995, -0.026227157562971115, 0.011622044257819653, -0.032193299382925034, 0.004769930150359869, -0.037753742188215256, -0.009987320750951767, -0.052788421511650085, 0.03916175290942192, 0.03648892045021057, 0.026083970442414284, -0.027826083824038506, -0.02370944619178772, -0.001560145989060402, -0.0056380038149654865, 0.0008650905219838023, 0.02009396441280842, 0.021752553060650826, 0.032718319445848465, 0.0022537100594490767, -0.05488850176334381, 0.012182861566543579, 0.015177864581346512, -0.018208663910627365, 0.00038630765629932284, -0.03801625594496727, 0.019604740664362907, 0.033410392701625824, 0.027659032493829727, -0.014796030707657337, 0.0067954352125525475, 0.009677081368863583, -0.003487209789454937, -0.04727570712566376, -0.010637630708515644, 0.02023715153336525, -0.03107166476547718, 0.00282496795989573, -0.050354234874248505, -0.026227157562971115, 0.02166902646422386, -0.004653590265661478, 0.034007005393505096, 0.0316682793200016, 0.009444402530789375, 0.019664403051137924, -0.004907151684165001, 0.010148406960070133, -0.055699896067380905, 0.028494292870163918, -0.016478482633829117, 0.01829219050705433, 0.004325452726334333, -0.03918561711907387, -0.00630024541169405, 0.05827727168798447, 0.03231262415647507, 0.03455589339137077, -0.033100154250860214, -0.038445815443992615, 0.05312252417206764, -0.01256469450891018, -0.030427321791648865, 0.018936533480882645, 0.05250204727053642, -0.03932880610227585, 0.02818405255675316, 0.0015392645727843046, 0.039137888699769974, -0.03429338335990906, 0.036918483674526215, 0.006485195830464363, -0.04713251814246178, -0.04092773050069809, -0.04436422884464264, -0.029353417456150055, -0.0012633304577320814, 0.0033499884884804487, -0.003994331695139408, 0.024079347029328346, -0.0005775970639660954, -0.011150718666613102, 0.029496604576706886, 0.03333880007266998, -0.00649116188287735, 0.0504019632935524, -0.05006786063313484, 0.005837869364768267, -0.022611675783991814, -0.004382131155580282, 0.006580654066056013, 0.023065103217959404, 0.029950030148029327, 0.017791034653782845, 0.010804682038724422, -0.022086655721068382, -0.015165931545197964, 0.010404950939118862, -0.06395703554153442, 0.037515100091695786, -0.01579834334552288, 0.012057572603225708, -0.05947050079703331, -0.0015101796016097069, 0.041786856949329376, 0.01447385922074318, -0.0534566268324852, -0.012445371598005295, 0.0014430604642257094, 0.004295621998608112, -0.05231112986803055, -0.04696546494960785, -0.0006476992275565863, 0.0008516667294315994, -0.065675288438797, -0.022921916097402573, -0.0005701393820345402, 0.021275261417031288, -0.020153626799583435, -0.030498916283249855, -0.03823103383183479, 0.005107017233967781, -0.0036721602082252502, -0.014628979377448559, 0.03632187098264694, 0.004483555443584919, -0.03541501611471176, 0.01745693013072014, -0.04130956530570984, -0.01683645136654377, 0.035391151905059814, -0.01927063800394535, -0.0004112908791285008, 0.025248711928725243, -0.005202475469559431, 0.01090014073997736, 0.012695949524641037, -0.03715712949633598, 0.04185844957828522, -0.014080094173550606, -0.022194046527147293, -0.011908418498933315, -0.04147661477327347, 0.045843832194805145, -0.05359981581568718, -0.009605487808585167, -0.03579685091972351, 0.01553583238273859, -0.021704822778701782, -0.010685359127819538, 0.009104331955313683, 0.06228651851415634, -0.027444250881671906, -0.018626293167471886, -0.0028264594729989767, 0.030570508912205696, -0.03846967965364456, 0.01791035756468773, -0.036608245223760605, -0.023065103217959404, -0.023232154548168182, 0.022420760244131088, -0.03457975760102272, 0.01351927686482668, 0.026847636327147484, 0.03794465959072113, 0.010577969253063202, 0.005417256616055965, -0.01645461842417717, -0.017158623784780502, 0.00885375402867794, -0.021120140329003334, 0.008203445002436638, 0.04076068103313446, -0.025224845856428146, 0.02816018834710121, 0.027444250881671906, 0.006001938600093126, -0.0027563574258238077, -0.003391751553863287, -0.024461179971694946, -0.04865984991192818, -0.03551047295331955, -0.019986573606729507, 0.028661344200372696, 0.03586844354867935, -0.0026981874834746122, -0.01836378313601017, 0.055222608149051666, 0.030809154734015465, 0.07918263226747513, 0.024747556075453758, -0.006139159668236971, -0.0040689087472856045, -0.03632187098264694, 0.03343425691127777, -0.007099708542227745, 0.0008539039990864694, -0.029759114608168602, 0.04925646632909775, -0.005852784961462021, -0.007481541484594345, 0.00318890274502337, -0.014187484979629517, -0.013936907052993774, -0.0021776417270302773, 0.009253486059606075, -0.05030650645494461, -0.0030934445094317198, -0.061188749969005585, 0.0580386258661747, -0.06190468370914459, -0.008412259630858898, 0.02038034051656723, 0.024389587342739105, 0.02205085940659046, -0.013984635472297668, -0.03403087332844734, -0.045461997389793396, 0.000855395570397377, -0.00328436098061502, 0.00798269733786583, -0.02551122196018696, -0.04434036463499069, -0.00029644265305250883, -0.0028294427320361137, -0.014796030707657337, -0.011812960729002953, -0.02166902646422386, 0.010649562813341618, 0.03333880007266998, -0.009140129201114178, -0.003171004354953766, -0.03610708937048912, 0.016323363408446312, -0.021919604390859604, 0.019210975617170334, -0.001032888307236135, -0.017158623784780502, 0.014748302288353443, -0.039209481328725815, 0.042335741221904755, -0.02370944619178772, 0.0017257065046578646, 0.035391151905059814, 0.0014937727246433496, -0.004104705527424812, 0.04992467164993286, 0.01863822713494301, 0.021704822778701782, 0.00949213095009327, -0.009414571337401867, 0.006383771542459726, -0.02534416876733303, -0.013578938320279121, 0.02450891025364399, -0.018721751868724823, -0.0062763807363808155, 0.03023640625178814, -0.008430157788097858, 0.0079170698300004, 0.021394584327936172, 0.011598179116845131, -0.012779475189745426, 0.049590568989515305, -0.0027578489389270544, 0.02892385423183441, -0.05107017233967781, -0.0024848980829119682, -0.02839883416891098, -0.03885151445865631, 0.022969644516706467, -0.008633007295429707, -0.0033082254230976105, 0.04529494792222977, 0.03562979772686958, 0.010106643661856651, -0.03978223353624344, -0.02399582229554653, 0.02280259318649769, 0.03696621209383011, -0.032408080995082855, -0.004137519281357527, 0.006052650511264801, -0.03498545289039612, -0.015189796686172485, 0.003946602810174227, -0.009969422593712807, -0.04787231981754303, 0.04324259236454964, -0.027826083824038506, 0.006413602270185947, 0.0229099839925766, 0.02787381410598755, 0.02923409454524517, -0.00564993591979146, -0.012469235807657242, -0.007117606699466705, 0.013614735566079617, 0.00817361380904913, -0.0022000146564096212, -0.04071294888854027, 0.019425757229328156, -0.026370346546173096, -0.0008658362785354257, -0.005599224008619785, -0.014843760058283806, -0.012158996425569057, -0.023792972788214684, -0.006222685799002647, -0.029806843027472496, -0.008925347588956356, -0.001980758970603347, 0.020988885313272476, 0.03770601376891136, 0.04505630210042, -0.053027067333459854, 0.012033707462251186, -0.008841821923851967, -0.006497128400951624, -0.044006261974573135, -0.02656126208603382, -0.017337607219815254, 0.024699825793504715, -0.009993286803364754, -0.0004828845849260688, -0.005903496872633696, -0.009605487808585167, 0.0036095157265663147, -0.006007904652506113, 0.0023282866459339857, -0.011783129535615444, 0.02211051993072033, 0.028446562588214874, -0.041882313787937164, 0.013638599775731564, 0.017122825607657433, 0.0024714742321521044, 0.02263554185628891, -0.004319486673921347, 0.03522409871220589, -0.06467297673225403, 0.035009317100048065, -0.00028786633629351854, -0.021478109061717987, -0.02732492797076702, -0.014056229963898659, 0.004749048501253128, 0.032789915800094604, 0.014819895848631859, -0.0679662823677063, 0.03205011412501335, 0.004892236087471247, -0.015702884644269943, -0.02123946323990822, -0.00015325525600928813, -0.022504286840558052, 0.016919977962970734, -0.0015750613529235125, -0.004206129815429449, 0.013924974016845226, 0.04749048873782158, 0.011639942415058613, 0.006306211464107037, -0.005629054736346006, -0.01767171174287796, 0.03006935305893421, -0.011383398436009884, 0.007099708542227745, -0.04596315324306488, -0.0011708552483469248, 0.01530911959707737, 0.053170252591371536, -0.014068162068724632, -0.043409645557403564, 0.05016331747174263, -0.02061898447573185, -0.052883878350257874, -0.024317992851138115, 0.010041016153991222, 0.0003652397426776588, -0.016478482633829117, -0.04968602582812309, -0.021788349375128746, -0.0038571106269955635, -0.014867625199258327, -0.032479673624038696, 0.022337233647704124, -0.0618569552898407, -0.01770750805735588, -0.016717128455638885, -0.00666418019682169, 0.0028652395121753216, 0.02038034051656723, -0.032479673624038696, 0.007266760338097811, -0.011610111221671104, 0.027229471132159233, -0.0065388912335038185, -0.01978372596204281, -0.02270713448524475, -0.005336713511496782, 0.015034676529467106, 0.02440151944756508, -0.0023730327375233173, 0.04443582147359848, 0.031238717958331108, 0.015368781052529812, -0.014175552874803543, -0.006843164563179016, 0.016752924770116806, 0.01885300688445568, -0.015595493838191032, -0.013889177702367306, -0.003794466145336628, -0.01707509718835354, -0.0021761502139270306, -0.04901782050728798, 0.0028294427320361137, 0.0370139442384243, -0.050879254937171936, -0.02385263331234455, 0.019557012245059013, 0.009080467745661736, -0.015989258885383606, 0.015822207555174828, 0.008829889819025993, -0.02503393031656742, -0.022337233647704124, -0.021263329312205315, -0.01808934099972248, -0.009289282374083996, -0.005169661715626717, -0.002868222538381815, -0.008227309212088585, 0.03281378000974655, -0.015189796686172485, 0.018447309732437134, -0.049590568989515305, -0.05016331747174263, -0.014223281294107437, 0.005614139139652252, -0.02149004116654396, -0.01652621291577816, 0.015404577367007732, -0.02932955138385296, 0.0071832346729934216, 0.012445371598005295, 0.007386083249002695, 0.04457901045680046, -0.012349912896752357, 0.005548511631786823, 0.0009478707215748727, -0.04099932312965393, -0.006694010924547911, 0.04114251211285591, -0.038660597056150436, 0.02527257613837719, 0.0008039375534281135, -0.03906629607081413, -0.005211424548178911, -0.017647847533226013, 0.024258332327008247, -0.01256469450891018, 0.004349317401647568, -0.033195611089468, 0.0036840925458818674, -0.04076068103313446, 0.010148406960070133, 0.007559101562947035, 0.03281378000974655, 0.0047371163964271545, -0.019879184663295746, 0.01783876307308674, -0.02794540673494339, 0.011067193001508713, -0.036059360951185226, 0.027826083824038506, -0.01896039769053459, 0.01878141425549984, -0.05612945929169655, -0.02128719352185726, -0.0032545302528887987, 0.02125139720737934, -0.0035200235433876514, -0.07001863420009613, -0.018077408894896507, -0.015571629628539085, -0.02663285657763481, -0.057227231562137604, 0.04739502817392349, -0.035295695066452026, 0.001953911269083619, -0.04030725359916687, 0.015774479135870934, -0.020750241354107857, 0.002695204457268119, 0.01936609484255314, 0.023804904893040657, -0.020129762589931488, 0.0124095743522048, -0.025773731991648674, 0.02092922478914261, 0.010488476604223251, -0.015142067335546017, -0.022432692348957062, 0.020607052370905876, -0.013030053116381168, -0.003612498752772808, 0.005488850176334381, 0.039806097745895386, 0.028613615781068802, -0.01419941708445549, -0.006902826018631458, 0.017898425459861755, -0.038135576993227005, -0.01313744392246008, -0.005784174427390099, 0.032026246190071106, -0.03412633016705513, 0.004593928810209036, -0.04756208136677742, 0.05274069309234619, 0.01294652745127678, -0.049972403794527054, 0.037061672657728195, 0.005837869364768267, 0.012719813734292984, 0.028756802901625633, 0.006413602270185947, -0.01645461842417717, 0.03486613184213638, 0.03648892045021057, 0.008931313641369343, -0.03434111177921295, 0.02332761324942112, 0.025821460410952568, -0.003341039177030325, -0.01515399944037199, 0.029806843027472496, -0.006944588851183653, -0.01745693013072014, -0.018805278465151787, 0.007111640647053719, -0.02930568717420101, 0.012481167912483215, -0.028732938691973686, -0.05436348170042038, 0.007600864395499229, 0.005059287883341312, 0.0035677526611834764, 0.007654559798538685, 0.03221716359257698, 0.011574314907193184, -0.005080169532448053, 0.013197105377912521, -0.023244088515639305, 0.05402937904000282, 0.004397046286612749, -0.02069057896733284, 0.013674396090209484, -0.0030352745670825243, 0.05178610980510712, 0.011824892833828926, 0.02496233582496643, -0.03746736794710159, -0.011097023263573647, -0.026608992367982864, 0.007350286468863487, 0.037061672657728195, 0.05985233187675476, -0.0038869413547217846, 0.02003430388867855, 0.03245580941438675, 0.013555074110627174, -0.0519292950630188, 0.023077035322785378, 0.002881646389141679, 0.04052203521132469, 0.033171746879816055, 0.003851144341751933, 0.01400850061327219, 0.027826083824038506, 0.0023849650751799345, -0.05923185497522354, -0.04574837535619736, -0.015822207555174828, 0.03185919672250748, -0.008579311892390251, -0.031883060932159424, -0.0024416435044258833, 0.047227974981069565, -0.012445371598005295, 0.018793346360325813, 0.018447309732437134, -0.02007010020315647, 0.007654559798538685, -0.01847117394208908, 0.027348792180418968, 0.03147736191749573, -0.038660597056150436, 0.0034543960355222225, 0.01220075972378254, -0.0018882837612181902, -0.019568944349884987, 0.004191214684396982, -0.03412633016705513, -0.028231782838702202, 0.05369527265429497, 0.0030337830539792776, -0.017373403534293175, 0.008167647756636143, -0.009820269420742989, -0.005324781406670809, 0.010756953619420528, 0.011055259965360165, 0.016502346843481064, 0.017886493355035782, 0.009885896928608418, -0.0008762770448811352, 0.0060854642651975155, -0.006437466945499182, 0.04765753820538521, 0.007314489688724279, -0.016848383471369743, -0.01553583238273859, 0.035916171967983246, -0.03687075525522232, 0.001680960413068533, -0.005008575972169638, -0.017552388831973076, 0.030665967613458633, -0.048134829849004745, -0.01936609484255314, -0.012719813734292984, 0.04298008233308792, -0.0022074724547564983, 0.00461779348552227, 0.05665447935461998, 0.0030606305226683617, -0.05359981581568718, -0.012695949524641037, 0.0003096800355706364, -0.01166380662471056, -0.06968453526496887, 0.024986201897263527, 0.05293160676956177, 0.01943768933415413, 0.0035409049596637487, 0.04333805292844772, -0.01592959836125374, 0.0007897680043242872, 0.02301737479865551, -0.002219404559582472, -0.01347154751420021, -0.014628979377448559, -0.005569393280893564, -0.018005814403295517, 0.013638599775731564, 0.028804531320929527, 0.007445744704455137, -0.02218211442232132, -0.012528897263109684, 0.04068908467888832, 0.0014907895820215344, -0.0014743827050551772, 0.019604740664362907, -0.026990825310349464, -0.012254455126821995, -0.030140947550535202, -0.0025788648054003716, 0.006198821123689413, 0.014175552874803543, 0.04176299273967743, 0.0031053766142576933, 0.06047281250357628, -0.01669326424598694, 0.0351286418735981, -0.029043177142739296, 0.041118647903203964, 0.010589901357889175, -0.00014356027531903237, -0.024150941520929337, 0.07927808910608292, -0.004701319616287947, 0.013590870425105095, 0.004561115056276321, 0.03302856162190437, 0.024795284494757652, -0.005444104317575693, -0.0015750613529235125, 0.024938471615314484, 0.006843164563179016, -0.02565440908074379, 0.03388768434524536, 0.003773584496229887, -0.007451710756868124, 0.021716754883527756, 0.00164218049030751, 0.020463865250349045, -0.006455365102738142, -0.014617047272622585, -0.014903421513736248, 0.009175925515592098, 0.012636288069188595, -0.03562979772686958, 0.005629054736346006, 0.003898873459547758, -0.05068833753466606, -0.008597210049629211, -0.02399582229554653, -0.015249458141624928, 0.03305242583155632, -0.015165931545197964, 0.0023238121066242456, 0.0019718098919838667, 0.019282570108771324, 0.017647847533226013, -0.013972703367471695, -0.029878437519073486, -0.02641807496547699, -0.0022537100594490767, -0.028756802901625633, 0.010148406960070133, 0.0013610260793939233, 0.048874631524086, 0.009724810719490051, -0.003257513279095292, -0.014366469345986843, 0.039281077682971954, 0.019330298528075218, -0.00789917167276144, -0.024795284494757652, 0.00038668056367896497, 0.02356625907123089, -0.01270788162946701, -0.0037676184438169003, -0.03300469368696213, -0.00628234725445509, -0.006813333835452795, -0.008811990730464458, -0.016084717586636543, -0.028804531320929527, -0.039281077682971954, -0.008752329275012016, -0.034174058586359024, 0.009366841986775398, 0.0124095743522048, 0.010303526185452938, 0.03231262415647507, -0.019497349858283997, -0.0066045187413692474, 0.008979042991995811, -0.02009396441280842, 0.027826083824038506, -0.024294128641486168, 0.02283838950097561, -0.01934223063290119, -0.03982996195554733, -0.00912819616496563, 0.008615108206868172, -0.019914980977773666, -0.03947199136018753, 0.03405473753809929, 0.0034156159963458776, -0.03257513418793678, 0.016824519261717796, 0.013447683304548264, 0.0015929598594084382, -0.010792749933898449, -0.04519948735833168, 0.01473637018352747, 0.005157729610800743, -0.012433439493179321, -0.021322989836335182, 0.01061973161995411, 0.002018047496676445, -0.025606678798794746, 0.00798269733786583, -0.0026966959703713655, -0.036823026835918427, 0.003976433537900448, -0.028494292870163918, 0.02141844853758812, -0.004229994490742683, 0.007469609379768372, -0.030475052073597908, 0.004698336590081453, 0.03288537263870239, 0.026083970442414284, -0.041261836886405945, 0.025558950379490852, 0.013352224603295326, -0.010166305117309093, -0.009480198845267296, -0.007051979191601276, -0.006479229778051376, -0.01656200923025608, 0.01466477569192648, -0.003552837297320366, -0.007654559798538685, 0.013495412655174732, 0.03994928300380707, 0.006145125720649958, -0.022194046527147293, 0.029568197205662727, -0.004367215558886528, -0.03839808702468872, 0.003925721161067486, -0.006652248091995716, 0.01934223063290119, -0.003305242396891117, 0.014998880214989185, -0.015237526036798954, -0.015786411240696907, -0.006234617903828621, 0.01194421574473381, 0.003660227870568633, -0.0029741215985268354, 0.0017883509863168001, 0.00583190331235528, -0.01220075972378254, -0.012994256801903248, 0.00845402292907238, -0.015702884644269943, 0.03006935305893421, 0.018137071281671524, -0.002459541894495487, 0.004364232532680035, 0.0040480270981788635, 0.004659556783735752, -0.021275261417031288, -0.011568348854780197, 0.00014104331785347313, 0.014831827953457832, 0.014032364822924137, 0.002802595030516386, -0.0032604963053017855, -0.021549703553318977, -0.003687075572088361, 0.002611678559333086, -0.00817361380904913, -0.002750391373410821, 0.013423818163573742, -0.026752179488539696, -0.02648966945707798, 0.007815645076334476, 0.008591243997216225, 0.019640538841485977, -0.0048982021398842335, -0.002361100632697344, -0.024150941520929337, 0.011777163483202457, -0.008322767913341522, -0.01718248799443245, -0.006067566107958555, -0.02187187597155571, 0.030785290524363518, -0.006163024343550205, 0.02069057896733284, -0.0036751432344317436, 0.0217644851654768, -0.013757922686636448, -0.004280706401914358, 0.015464238822460175, -0.03830263018608093, 0.014688640832901001, 0.007415913976728916, 0.01579834334552288, 0.020404204726219177, 0.008048324845731258, 0.039424262940883636, -0.007582965772598982, 0.0040987394750118256, 0.037443503737449646, -0.006652248091995716, -0.008185545913875103, -0.016084717586636543, 0.007654559798538685, 0.022898051887750626, -0.013161308132112026, 0.011616077274084091, -0.003707956988364458, 0.02780221961438656, 0.025535086169838905, -0.0006570213590748608, -0.008096054196357727, 0.04441195726394653, 0.018172867596149445, -0.004367215558886528, -0.016466550529003143, 0.008245207369327545, 0.01017227116972208, 0.004602878354489803, -0.004015213344246149, -0.017301810905337334, -0.014426130801439285, -0.01026176381856203, -0.04641658067703247, -0.03982996195554733, 0.010804682038724422, -0.0007860391633585095, -0.006228651851415634, -0.009515996091067791, 0.018864938989281654, 0.022229842841625214, -0.037992388010025024, 0.0362502746284008, -0.03290923684835434, 0.0025893053971230984, -0.00836453028023243, 0.026513533666729927, -0.005599224008619785, -0.01714669167995453, 0.02205085940659046, 0.02663285657763481, -0.007380117196589708, -0.011890520341694355, -0.00014784844825044274, 0.02777835540473461, 0.01781489886343479, -0.030665967613458633, -0.0061570582911372185, 0.02009396441280842, -0.000147568789543584, 0.008292936719954014, -0.0013528226409107447, -0.03238421678543091, 0.033171746879816055, 0.011622044257819653, 0.0127914072945714, -0.0066343494690954685, -0.009510030038654804, 0.03159668669104576, -0.018733683973550797, -0.01371019333600998, 0.01652621291577816, -0.003496158868074417, -0.04784845560789108, 0.007541202940046787, 0.007129539269953966, 0.022862253710627556, -0.014318739995360374, -0.006028786301612854, 0.01850697211921215, 0.01305391825735569, 0.007541202940046787, -0.05183383822441101, 0.038517411798238754, 0.03398314118385315, 0.02825564704835415, -0.003824296873062849, 0.006365872919559479, -0.006216719746589661, 0.01308971457183361, -0.01466477569192648, 0.011186515912413597, -0.028422698378562927, 0.0033201577607542276, 0.028279511258006096, 0.02749198116362095, -0.03307629004120827, -0.016740992665290833, 0.009396673180162907, -0.0004433589056134224, -0.019210975617170334, -0.021657094359397888, -0.010142440907657146, 0.010375120677053928, 0.0060407184064388275, 0.007433812599629164, 0.00675963843241334, -0.007302557118237019, 0.019557012245059013, -0.006425534375011921, 0.0013662463752552867, -0.014497724361717701, 0.020105896517634392, -0.006010887678712606, -0.023721378296613693, 0.018697887659072876, -0.03486613184213638, -0.005664851516485214, 0.02641807496547699, -0.037133265286684036, -0.001321500400081277, 0.01251696515828371, 0.02854202128946781, -0.0030636137817054987, 0.028207916766405106, -0.004644641187041998, 0.01251696515828371, 0.0162159726023674, -0.004441792611032724, -0.011890520341694355, -0.0328376442193985, -0.008668803609907627, -0.024389587342739105, 0.01062569860368967, -0.009050636552274227, -0.01381758414208889, 0.02245655655860901, 0.00047057942720130086, -0.0015586544759571552, 0.026704449206590652, 0.031119395047426224, -0.010023117996752262, -0.00032925643608905375, 0.011431126855313778, -0.031954653561115265, 0.03574911877512932, 0.023721378296613693, 0.016025057062506676, 0.002481914823874831, -0.023518530651926994, 0.003913789056241512, -3.505108179524541e-05, 0.007857408374547958, 0.01711089350283146, -0.005948243197053671, 0.009092399850487709, 0.019974641501903534, -0.014163619838654995, -0.00394958583638072, 0.009671115316450596, -0.023649785667657852, 0.03596390038728714, 0.02149004116654396, -0.006097396835684776, -0.02083376608788967, 0.01694384217262268, 0.016919977962970734, 0.029735250398516655, 0.0012998731108382344, 0.02610783651471138, -0.01343575119972229, 0.01023789867758751, -0.006938622798770666, -0.03543888032436371, 0.030212540179491043, 0.005781191401183605, 0.003132224315777421, 0.030140947550535202, -0.009032738395035267, 0.04252665862441063, 0.0022000146564096212, -0.01705123297870159, 0.03228875994682312, -0.017480794340372086, 0.009742708876729012, -0.01572674885392189, -0.027611304074525833, -0.01649041473865509, 0.012176894582808018, 0.028303375467658043, 0.009056602604687214, -0.013077782467007637, 0.007099708542227745, 0.043552834540605545, -0.0005567155894823372, 0.025535086169838905, -0.0006820045528002083, -0.027372658252716064, -0.010398984886705875, 0.021096276119351387, 0.02163323014974594, -0.0028055780567228794, 0.008102020248770714, -0.006222685799002647, -0.006956520956009626, -0.021167870610952377, 0.00036374820047058165, 0.014784098602831364, 0.013590870425105095, -0.012970391660928726, 0.0022954728920012712, 0.00415840046480298, -0.034007005393505096, -0.0070818099193274975, -0.009515996091067791, -0.009086433798074722, -0.00668207835406065, 0.03505704924464226, 0.014748302288353443, 0.0006417331169359386, -0.011801027692854404, 0.031572822481393814, -0.02999776042997837, -0.02572600170969963, 0.0114549919962883, 0.0081079863011837, 0.034532029181718826, 0.0267283134162426, -0.014951150864362717, 0.010804682038724422, -0.012212691828608513, -0.02978297881782055, 0.024079347029328346, -0.0236736498773098, -0.018351851031184196, 0.003209784161299467, -0.013686329126358032, 0.010858377441763878, -0.011842790991067886, 0.0035319558810442686, 0.010023117996752262, 0.043552834540605545, -0.0058289202861487865, 0.021716754883527756, -0.006837198045104742, 0.02440151944756508, 0.008931313641369343, 0.013423818163573742, -0.035916171967983246, 0.014127823524177074, -0.02992616593837738, 0.017003502696752548, -0.024079347029328346, 0.03663210943341255, -0.012528897263109684, -0.024365723133087158, 0.0074397786520421505, -0.009211722761392593, 0.020559323951601982, -0.015595493838191032, -0.0038153475616127253, 0.0027712727896869183, 0.031119395047426224, 0.01829219050705433, 0.029973896220326424, -0.028207916766405106, 0.010297560133039951, -0.005333730485290289, 0.00254306779243052, -0.01565515622496605, 0.003191885771229863, 0.027468115091323853, -0.00902677234262228, -0.03329107165336609, 0.03200238198041916, 0.00014244162593968213, -0.001680960413068533, -0.0052054584957659245, 0.00742784608155489, -0.03651278465986252, 0.026131700724363327, 0.012493100948631763, 0.027062417939305305, -0.01705123297870159, 0.02128719352185726, -0.026227157562971115, -0.024628233164548874, 0.01690804585814476, -0.0126004908233881, -0.006956520956009626, 0.0030531729571521282, 0.00206577661447227, -0.003618464805185795, -0.02052352763712406, 0.04488924890756607, 0.02503393031656742, 0.041572075337171555, 0.014724437147378922, -0.0033977176062762737, -0.016335295513272285, 0.0018957414431497455, -0.003976433537900448, -0.011168616823852062, -0.007648593746125698, 0.01109105721116066, 0.002695204457268119, -0.02287418767809868, 0.019246771931648254, -0.016538145020604134, -0.0012118725571781397, -0.02780221961438656, 7.061487849568948e-05, -0.013411886058747768, -0.01385338045656681, -0.027086282148957253, -0.011067193001508713, -0.00499962642788887, 0.024103211238980293, -0.025773731991648674, 0.015953462570905685, 0.01909165270626545, -0.016812587156891823, -0.0018987245857715607, 0.012552761472761631, 0.010118575766682625, 0.014438062906265259, 0.04212095960974693, 0.01485569216310978, -0.0009515995625406504, 0.016371091827750206, 0.03620254620909691, -0.010148406960070133, 0.0010492951842024922, -0.03345812112092972, -0.0033291070722043514, -0.03193078935146332, -0.015237526036798954, 0.009163993410766125, 0.03634573519229889, -0.0229099839925766, -0.0070818099193274975, 0.001475874218158424, 0.008567378856241703, 0.014986948110163212, -0.013125511817634106], "id": 38}, {"title": "Statistical hypothesis testing", "text": "A statistical hypothesis is a hypothesis that is testable on the basis of observing a process that is modeled via a set of random variables. A statistical hypothesis test is a method of statistical inference. Commonly, two statistical data sets are compared, or a data set obtained by sampling is compared against a synthetic data set from an idealized model.", "vector": [-0.020572399720549583, -0.01049450971186161, -0.02618958242237568, 0.0066335927695035934, 0.027870427817106247, -0.019078314304351807, -0.05321240425109863, 0.01196704525500536, 0.007542255334556103, -0.04335719347000122, 0.03485240042209625, -0.0026020780205726624, -0.02070169523358345, 0.011263101361691952, 0.06924508512020111, -0.012024509720504284, 0.00013917256728745997, 0.013504228554666042, 0.06441804021596909, 0.015673523768782616, 0.003950705286115408, 0.006306761875748634, -0.03468000888824463, 0.0008740935008972883, 0.03827155753970146, -0.010350847616791725, -0.04916113615036011, -0.01640620082616806, -0.05324113741517067, -0.002673909068107605, 0.05852790176868439, 0.05401691421866417, 0.016750989481806755, -0.02726704813539982, 0.004011761397123337, -0.025471273809671402, 0.00393633870407939, -0.008770565502345562, -0.02814338542521, 0.024178314954042435, -0.029149020090699196, 0.0033652824349701405, 0.027080288156867027, -0.005013803951442242, -0.01547239813953638, -0.008662818931043148, 0.03177803382277489, 0.0019466201774775982, -0.021175779402256012, -0.021233243867754936, 0.0007883452344685793, -0.022540567442774773, 0.061487335711717606, 0.022339440882205963, -0.017340004444122314, -0.020270708948373795, 0.014251270331442356, -0.01847493276000023, -0.04054141789674759, -0.022339440882205963, -0.006295987404882908, 0.054074376821517944, 0.032381415367126465, 0.015544228255748749, -0.00824619922786951, -0.007269297260791063, 0.08930030465126038, 0.03513972461223602, 0.04071381315588951, -0.0026918668299913406, -0.00617746589705348, 0.064820297062397, 0.029450710862874985, 0.05654536560177803, -0.011457044631242752, 0.004622324835509062, 0.04051268473267555, 0.006087677553296089, -0.0498507134616375, -0.011363664641976357, 0.01363352406769991, 0.02216704748570919, 0.00023838914057705551, -0.015889016911387444, 0.03973691165447235, 0.0035215148236602545, -0.01288648135960102, -0.045167334377765656, -0.012750002555549145, -0.004737254697829485, -0.0007232484058476985, 0.00644324067980051, -0.003904014825820923, -0.02713775262236595, -0.045655783265829086, 0.049074940383434296, 0.005768029484897852, 0.010049156844615936, 0.002664930187165737, 0.04887381196022034, 0.022497469559311867, 0.019193243235349655, 0.0024799653328955173, -0.0026236274279654026, 0.006838311441242695, -0.06401579082012177, 0.004485846031457186, 0.01623380556702614, 0.037467051297426224, 0.09010481089353561, -0.004144648555666208, -0.024537470191717148, 0.041575782001018524, -0.03936338797211647, -0.01758422888815403, -0.0203138068318367, -0.043127331882715225, -0.04384564235806465, 0.007456058170646429, -0.015458031557500362, 0.04286874085664749, 0.03350197896361351, -0.020285075530409813, 0.02305775135755539, -0.004309860058128834, 0.0019107046537101269, -0.031002260744571686, -0.015544228255748749, 0.0058937338180840015, -0.06085522472858429, 0.032668739557266235, 0.0070861284621059895, -0.005186198279261589, -0.020658595487475395, -0.014495495706796646, -0.01836000382900238, -0.015544228255748749, -0.03338705003261566, 0.017239440232515335, 0.0025446133222430944, -0.10975777357816696, -0.0053514097817242146, 0.014703805558383465, -0.015975214540958405, 0.0021872539073228836, -0.043788179755210876, -0.031002260744571686, 0.0009652290609665215, -0.005078451707959175, 0.004062043037265539, 0.005760846193879843, -0.024293243885040283, 0.022626765072345734, -0.019178876653313637, -0.05008057504892349, -0.022511836141347885, 0.024106483906507492, -0.004496620502322912, -0.009316480718553066, -0.02529887855052948, 0.0012013735249638557, -0.0007043927325867116, 0.0014572713989764452, 0.030140288174152374, 0.01649239845573902, -0.005161057226359844, 0.011413945816457272, 0.0031946836970746517, 0.0057249306701123714, -0.003868099534884095, -0.021420003846287727, -0.008763382211327553, -0.09154143184423447, -0.00820310041308403, -0.03195042908191681, -0.02629014663398266, -0.015213806182146072, 0.06631437689065933, 0.01827380619943142, 0.00923028402030468, -0.04358705133199692, -0.017454933375120163, 0.030312683433294296, 0.012857749126851559, 0.025327611714601517, 0.013317467644810677, 0.03358817473053932, 0.012074790894985199, -0.0026272188406437635, 0.03134704753756523, 0.010573523119091988, -0.006378592923283577, -0.0045181699097156525, 0.03126085177063942, 0.019020849838852882, 0.0076284524984657764, -0.05579832196235657, -0.03548451513051987, 0.03143324702978134, -0.013698171824216843, 0.027410710230469704, -0.05508001148700714, -0.029651837423443794, 0.008368311449885368, -0.042437754571437836, -0.01660732738673687, 0.06867043673992157, 0.0028121836949139833, 0.028272682800889015, -0.017138876020908356, -0.014438031241297722, -0.05872902646660805, 0.012383664958178997, 0.015070144087076187, 0.0008525442099198699, -0.019394369795918465, 0.027496907860040665, 0.010824931785464287, -0.027281414717435837, -0.025758597999811172, 0.027381977066397667, -0.019767891615629196, 0.04013916477560997, -0.02979549951851368, 0.008763382211327553, 0.02558620274066925, 0.02021324448287487, -0.05088508129119873, -0.006026620976626873, -0.004740845877677202, 0.015371833927929401, -0.010925495065748692, 0.011823383159935474, -0.00825338251888752, -0.022985920310020447, 0.04108733311295509, 0.0006006867624819279, 0.0007506339461542666, 4.1807888919720426e-05, -0.004909649025648832, 0.02538507618010044, -0.017124511301517487, 0.0054950714111328125, -0.04916113615036011, 0.008052255026996136, 0.012864932417869568, 0.021348172798752785, -0.031030992045998573, 0.03105972521007061, 0.014768454246222973, -0.015027045272290707, -0.016966482624411583, -0.016865918412804604, -0.00446788826957345, 0.013640707358717918, -0.00864126905798912, 0.022195778787136078, -0.03818536177277565, 0.005732113961130381, -0.02423577941954136, -0.009388311766088009, 0.03781183809041977, -0.04519606754183769, -0.025270145386457443, -0.017268173396587372, -0.005545353516936302, 0.07045184820890427, -0.03223775327205658, -0.0013746657641604543, 0.022698596119880676, 0.010767467319965363, 0.014710988849401474, -0.001881972188130021, 0.009991692379117012, -0.0009329051245003939, 0.007125635165721178, 0.018230708315968513, 0.003117465414106846, -0.047322262078523636, 0.01660732738673687, -0.0431847982108593, -0.007491973228752613, -0.077692411839962, 0.014193805865943432, 0.009244649671018124, -0.010221551172435284, -0.0334157831966877, -0.059246208518743515, -0.018604230135679245, 0.030513809993863106, 0.004363733343780041, -0.01216817181557417, -0.009725917130708694, -0.03749578446149826, -0.04304113611578941, 0.036576345562934875, -0.047609586268663406, 0.036375220865011215, 0.024005921557545662, 0.001735616591759026, 0.00536936754360795, 0.017124511301517487, -0.024393808096647263, 0.04680508002638817, 0.023704230785369873, -0.013540144078433514, 0.01846056804060936, 0.017110144719481468, 0.016161974519491196, -0.07752002030611038, -0.023905357345938683, -0.04746592417359352, -0.06257916986942291, -0.02519831620156765, -0.004248803947120905, -0.03367437422275543, 0.008957325480878353, -0.05654536560177803, 0.04344338923692703, -0.005563311278820038, -0.031002260744571686, -0.01583155244588852, -0.07711776345968246, 0.04327099397778511, 0.03821409121155739, 0.005254437681287527, -0.04105859994888306, 0.07223325222730637, -0.03913353011012077, -0.005243663210421801, -0.0015452643856406212, -0.06947494298219681, -0.028085920959711075, -0.011615073308348656, 0.006439649499952793, 0.0032198247499763966, 0.015687890350818634, -0.05088508129119873, -0.01494084857404232, 0.057665929198265076, 0.04778198152780533, -0.004823451861739159, -0.03513972461223602, -0.010415495373308659, 0.04102986678481102, -0.014538594521582127, -0.014193805865943432, -0.020342539995908737, 0.03910479694604874, 0.05398818105459213, 0.0004888997646048665, 0.035024795681238174, -0.01846056804060936, 0.006482747849076986, 0.03410536050796509, -0.03065747208893299, 0.03465127572417259, -0.050454095005989075, 0.026792963966727257, 0.0012965495698153973, 0.011995777487754822, -0.03200789541006088, 0.0005755458842031658, -0.042552683502435684, -0.0066874660551548, 0.03447888046503067, -0.010710001923143864, -0.013403665274381638, 0.028387611731886864, -0.03769690915942192, -0.037064798176288605, 0.02245437167584896, 0.053097475320100784, -0.021348172798752785, -0.016363102942705154, -0.001617993344552815, -0.06183212623000145, 0.000757817062549293, 0.014042960479855537, 0.009093805216252804, 0.029378879815340042, 0.00943141058087349, 0.0058470433577895164, 0.04054141789674759, -0.01445239782333374, -0.06142987310886383, 0.02294282242655754, 0.018216341733932495, 0.011004509404301643, 0.017814088612794876, 0.020356906577944756, -0.0116294389590621, -0.02344563975930214, -0.045655783265829086, 0.05663156136870384, 0.05206311121582985, -0.010530425235629082, -0.027367612347006798, -0.0035233106464147568, -0.0357431061565876, -0.03545578196644783, -0.02394845522940159, -0.03786930441856384, 0.006949649192392826, 0.0058470433577895164, 0.028962260112166405, -0.006647959351539612, 0.02159239910542965, -0.01435901690274477, 0.019767891615629196, 0.006073310971260071, 0.0015793840866535902, -0.014258453622460365, -0.0272526815533638, -0.0014734334545210004, 0.0084904246032238, -0.05413184314966202, -0.014840285293757915, 0.009776199236512184, -0.037840571254491806, 0.01049450971186161, -0.000860176223795861, 0.04220789670944214, -0.036403950303792953, -0.0002374912437517196, 0.029350146651268005, -0.019308174028992653, 0.007007114123553038, -0.015788454562425613, -0.020256342366337776, 0.004414014983922243, 0.0025104933883994818, -0.03542704880237579, 0.02443690598011017, -0.02323014661669731, -0.01962422952055931, 0.008777748793363571, -0.004568451549857855, -0.03456507623195648, -0.030054090544581413, 0.03370310738682747, -0.005484296940267086, 0.00017104757716879249, 0.02248310297727585, -0.028746766969561577, -0.044793810695409775, -0.041173528879880905, -0.02901972457766533, -0.05674649029970169, 0.011765917763113976, -0.01294394675642252, 0.04433409497141838, -0.017354369163513184, -0.00205257092602551, -0.02912028878927231, -0.0008251586114056408, 0.028387611731886864, -0.04344338923692703, 0.016248172149062157, -0.0031102823559194803, -0.02940761111676693, -0.0021980286110192537, 0.006741339340806007, -0.06033804267644882, 0.05292508006095886, -0.04200676828622818, 0.015529862605035305, 0.013360566459596157, -0.02492535673081875, 0.0048845079727470875, -0.09274818748235703, -0.06740621477365494, -0.047523390501737595, 0.009797748178243637, -0.0005319983465597034, 0.023574935272336006, 0.031030992045998573, 0.005380142014473677, -0.02470986358821392, -0.05168958753347397, -0.012232819572091103, 0.05258029326796532, -0.006023029331117868, -0.0077649313025176525, 0.029077189043164253, -0.016822820529341698, 0.05390198528766632, 0.02157803252339363, 0.028344513848423958, 0.044104233384132385, -0.024594934657216072, 0.014782819896936417, 0.07246311753988266, -0.016822820529341698, -0.01167972106486559, 0.03557071089744568, -0.02228197641670704, -0.0383002907037735, -0.031232118606567383, 0.022310709580779076, 0.022885357961058617, -0.03146198019385338, 0.01089676283299923, 0.005566902458667755, -0.02374732866883278, 0.014430847950279713, 0.001617993344552815, 0.019969018176198006, -0.0021675005555152893, 0.02315831556916237, 0.0037567613180726767, -0.010041973553597927, 0.009991692379117012, -0.01117690373212099, 0.029766766354441643, 0.0007052906439639628, -0.0030869373586028814, -0.025643667206168175, 0.005965564865618944, 0.0511724054813385, 0.020558033138513565, 0.008016339503228664, 0.0028516908641904593, -0.006181057542562485, -0.00839704368263483, 0.019092680886387825, 0.00821028370410204, 0.01461042556911707, -0.07418705523014069, -0.0617171972990036, -0.007014297414571047, 0.019006483256816864, -0.005085634998977184, 0.040857475250959396, 0.026994090527296066, -0.02831578068435192, -0.004295493941754103, 0.020428737625479698, 0.016750989481806755, 0.012419580481946468, 0.02208084985613823, -0.005886550527065992, 0.002966620260849595, 0.02629014663398266, 0.024839160963892937, -0.01583155244588852, 0.012563242577016354, 0.04709240421652794, -0.007039438001811504, -0.05691888555884361, 0.030887329950928688, 0.010523241944611073, 0.05976339429616928, 0.018733525648713112, 0.004482254385948181, -0.0036005289293825626, -0.03445014730095863, -0.001715863007120788, 0.010516058653593063, -0.012369298376142979, 0.00605894485488534, 0.034335218369960785, 0.028401978313922882, 0.001226514345034957, -0.0026918668299913406, 0.04114479944109917, 0.014639157801866531, 0.01293676346540451, -0.030513809993863106, 0.05105747655034065, -0.03858761489391327, 0.026821695268154144, -0.02373296208679676, -0.023201413452625275, -0.0023829934652894735, -0.0016871306579560041, -0.008842396549880505, -0.023804793134331703, -0.04102986678481102, -0.029623104259371758, 0.011270283721387386, 0.020787891000509262, 0.01640620082616806, -0.0183743704110384, 0.0331859216094017, 0.02100338414311409, 0.018733525648713112, -0.007060987409204245, 0.00943141058087349, 0.0013073242735117674, -0.001216637552715838, 0.024767329916357994, 0.015228171832859516, 0.03577183932065964, -0.007599719800055027, -0.0072764805518090725, -0.014739721082150936, -0.035886768251657486, 0.02754000574350357, 0.039593249559402466, 0.017943384125828743, -0.037754375487565994, 0.00031089354888536036, 0.027769865468144417, 0.0026128527242690325, 0.03654761239886284, 0.0020417962223291397, -0.03450761362910271, -0.023905357345938683, 0.05352846160531044, -0.025629300624132156, -0.00034029936068691313, 0.04887381196022034, 0.016865918412804604, 0.00037127648829482496, -0.026936626061797142, 0.03445014730095863, 0.016679158434271812, -0.004263170063495636, 0.02920648455619812, 0.03195042908191681, -0.016133243218064308, -0.029967892915010452, 0.033157188445329666, -0.01260634046047926, -0.017541131004691124, -0.03146198019385338, 0.0052508460357785225, 0.005322677083313465, 0.0019484158838167787, -0.045081134885549545, 0.012670988216996193, -0.015170707367360592, 0.01611887663602829, 0.0026900710072368383, 0.004959930665791035, -0.005401691421866417, 0.012290284037590027, 0.05352846160531044, -0.03827155753970146, 0.06418818235397339, 0.011449861340224743, 0.018316905945539474, 0.01923634298145771, -0.01933690533041954, 0.021807892248034477, 0.010135354474186897, 0.04169071465730667, 0.034220289438962936, 0.035197190940380096, 0.014983946457505226, 0.023474371060729027, 0.004230846185237169, -0.0010074297897517681, -0.03717972710728645, -0.024781694635748863, 0.014926481992006302, -0.010810566134750843, -0.01244831271469593, -0.055827055126428604, -0.024480005726218224, -0.013245636597275734, 0.0159321166574955, 0.022626765072345734, 0.03723718971014023, 0.010120987892150879, -0.018331270664930344, -0.029421977698802948, -0.017253806814551353, 0.029738035053014755, -0.0029791907873004675, -0.02393409051001072, -0.004252395126968622, 0.011643805541098118, 0.0400816984474659, -0.016262538731098175, -0.028071556240320206, 0.0017706342041492462, 0.010638170875608921, -0.034823670983314514, -0.024738596752285957, -0.0027098245918750763, 0.020773526281118393, 0.030427612364292145, -0.01963859610259533, 0.00420211348682642, 0.01547239813953638, 0.024853525683283806, 0.015946483239531517, -0.032582543790340424, -0.04970705136656761, 0.010480143129825592, -0.020385637879371643, 0.009323664009571075, 0.021822258830070496, 0.026045920327305794, 0.014998313039541245, -0.02558620274066925, -0.034335218369960785, 0.022195778787136078, 0.010587889701128006, 0.026634935289621353, -0.030398879200220108, -0.04950592666864395, 0.03378930315375328, -0.005627959035336971, -0.01396394707262516, -0.05022423714399338, -0.05959099903702736, -0.02863183803856373, 0.022641131654381752, -0.01649239845573902, -0.03137578070163727, -0.041374657303094864, -0.0008543399744667113, 0.023416906595230103, -0.015170707367360592, -0.0012103524059057236, -0.046632684767246246, 0.03761071339249611, 0.014280003495514393, 0.009151269681751728, -0.015414932742714882, 0.04160451516509056, 0.0013064263621345162, -0.01690901815891266, 0.009208734147250652, 0.00304024713113904, -0.014430847950279713, 0.00034478880115784705, 0.027611836791038513, 0.0017778172623366117, 0.04993691295385361, 0.008720283396542072, 0.030226485803723335, -0.0010639966931194067, -0.01866169460117817, -0.004054860211908817, -0.057694658637046814, -0.042236629873514175, 0.015644792467355728, -0.0027457401156425476, -0.04979325085878372, -0.020083947107195854, -0.00820310041308403, 0.015127608552575111, -0.025729864835739136, 0.002907359739765525, -0.0076284524984657764, 0.0050604939460754395, 0.0018155286088585854, 0.013030143454670906, 0.04005296528339386, -0.039794374257326126, -0.02695099264383316, -0.016075778752565384, 0.0007982220267876983, 0.017598595470190048, -0.00671619875356555, 0.043213531374931335, -0.015529862605035305, 0.04510986804962158, 0.025844793766736984, 0.039794374257326126, 0.02354620210826397, -0.0017562679713591933, -0.02999662607908249, -0.00473366305232048, 0.028057189658284187, -0.0007043927325867116, 0.04901747405529022, 0.07361240684986115, 0.002435070928186178, -0.011507326737046242, 0.020945919677615166, -0.0015219193883240223, 0.03660507872700691, 0.003437113482505083, 0.003965071402490139, 0.025456907227635384, -0.002444049809128046, -0.04582817852497101, -0.02626141346991062, -0.03367437422275543, -0.020687328651547432, -0.020141413435339928, 0.01514197513461113, 0.0012453700182959437, 0.021664230152964592, -0.018230708315968513, 0.0046007754281163216, 0.02705155499279499, 0.057694658637046814, -0.02088845521211624, -0.02088845521211624, 0.0009571480914019048, -0.0134323975071311, -0.009725917130708694, -0.01652112975716591, -0.027295781299471855, 0.03789803758263588, 0.011794649995863438, -0.009014790877699852, -0.004065634682774544, -0.01290084794163704, 0.03812789544463158, 0.0022554935421794653, -0.01769915781915188, 0.01649239845573902, 0.0012866727774962783, -0.0015425707679241896, 0.001539877150207758, 0.002242923015728593, -0.001192394644021988, 0.004015353042632341, 0.03407662734389305, 0.014955214224755764, 0.04427662864327431, 0.02394845522940159, -0.019796624779701233, -0.0012633277801796794, -0.06798086315393448, -0.012635072693228722, 0.007851128466427326, 0.012821833603084087, 0.021463103592395782, -0.015400567092001438, -0.022712962701916695, 0.01245549600571394, -0.018230708315968513, -0.005735705606639385, 0.0194231029599905, 0.004428381100296974, -0.025270145386457443, -0.04916113615036011, 0.02228197641670704, -0.05180451646447182, -0.010559157468378544, 0.037064798176288605, -0.02256930060684681, 0.015558594837784767, -0.05918874591588974, 0.017138876020908356, 0.0077649313025176525, -0.009079438634216785, -0.005811127834022045, -0.03200789541006088, 0.03976564109325409, 0.010975777171552181, 0.025054654106497765, 0.026721132919192314, 0.02851690724492073, 0.009273381903767586, 0.0617171972990036, -0.0470636710524559, -0.018977750092744827, -0.03332958370447159, -0.006536621134728193, 0.024968456476926804, -0.022052116692066193, 0.014754087664186954, -0.034220289438962936, 0.019078314304351807, 0.02363239973783493, 0.03028395026922226, 0.027396343648433685, 0.026907892897725105, 0.026017189025878906, -0.013849017210304737, -0.0437307134270668, -0.01962422952055931, -0.017354369163513184, -0.00620619859546423, -0.014588876627385616, 0.02647690661251545, 0.028373245149850845, 0.01192394644021988, -0.015946483239531517, -0.02528451196849346, -0.011083523742854595, 0.011248734779655933, 0.011026058346033096, -0.0017679404700174928, 0.013037326745688915, 0.037467051297426224, 0.023890990763902664, -0.006852677557617426, -0.02804282307624817, 0.042351558804512024, 0.04393184185028076, -0.01371972169727087, -0.012635072693228722, 0.012484228238463402, 0.008167184889316559, 0.010214368812739849, 0.018690425902605057, 0.014825918711721897, 0.0359729640185833, 0.014969580806791782, -0.039305925369262695, 0.010853664018213749, -0.03344451263546944, 0.015989581122994423, 0.006033804267644882, 0.02784169651567936, -0.00632471963763237, -0.026520006358623505, 0.040282826870679855, -0.004611550364643335, 0.03344451263546944, -0.06263663619756699, 0.025629300624132156, -0.05243663117289543, -0.02988169714808464, 0.005290353205054998, -0.00787267740815878, 0.003304226091131568, -0.038041699677705765, 0.0005387325072661042, 0.019983384758234024, -0.007937326095998287, 0.05976339429616928, 0.02040000446140766, 0.020241975784301758, 0.03720846027135849, -0.014481130056083202, -0.0023470779415220022, 0.04620169848203659, -0.0027367612347006798, 0.0038429584819823503, 0.0028570780996233225, -0.020917188376188278, 0.01935127191245556, 0.01719634234905243, 0.001270510838367045, -0.021563665941357613, 0.0183743704110384, 0.022626765072345734, -0.031634371727705, -0.005872184410691261, -0.008547889068722725, 0.006432466208934784, 0.02450873702764511, 0.03887493908405304, -0.03717972710728645, 0.01913577876985073, 0.011119439266622066, 0.0054950714111328125, 0.007987607270479202, 0.005193381570279598, -0.006845494266599417, 0.013346199877560139, -0.030140288174152374, 0.007578170858323574, -0.02489662542939186, -0.0158171858638525, 0.011945495381951332, 0.037150993943214417, 0.006216973066329956, 0.009086621925234795, -0.003625669749453664, -0.005035353358834982, 0.0663718432188034, 0.01440929900854826, 0.023761695250868797, -0.021534934639930725, -0.006795212626457214, -0.04051268473267555, -0.012864932417869568, -0.00790859293192625, -0.0002583671303000301, 0.0036400360986590385, -0.03416282311081886, 0.0488450825214386, -0.00026263209292665124, 0.0018442609580233693, -0.006989156361669302, -0.005265212617814541, -0.01000605896115303, 0.031203387305140495, 0.002928909147158265, -0.009575072675943375, 0.013037326745688915, 0.0028319372795522213, 0.0046546487137675285, -0.009294931776821613, 0.03028395026922226, -0.0021082398016005754, -0.020960286259651184, -0.028775498270988464, -0.00349098676815629, 0.003860916243866086, -0.013576059602200985, 0.019265074282884598, -0.049563389271497726, 0.015889016911387444, 0.012433946132659912, 0.011076340451836586, -0.025356343016028404, -0.03850141540169716, 0.009991692379117012, -0.02443690598011017, -0.0051287333481013775, -0.0036202825140208006, -8.176387927960604e-05, 0.021218877285718918, -0.007007114123553038, 0.004805494099855423, 0.004385282751172781, 0.014667890034615993, 0.01846056804060936, -0.0372946560382843, -0.005028170067816973, -0.04904620721936226, -0.02343127317726612, -0.0009786974405869842, -0.030513809993863106, -0.03097352758049965, 0.05148846283555031, -0.01313070673495531, -0.04519606754183769, 0.0033563035540282726, -0.03304225951433182, -0.003857324831187725, -0.014912116341292858, -0.005940423812717199, -0.0074129593558609486, -0.007229790091514587, -0.0046869730576872826, 0.024192681536078453, -0.00011492960038594902, -0.04442029073834419, 0.015027045272290707, 0.024365074932575226, 0.021563665941357613, -0.02101775072515011, -0.017253806814551353, -0.05648789927363396, 0.018819723278284073, 0.03126085177063942, -0.006838311441242695, -0.028502540662884712, 0.0003459111612755805, 0.018187610432505608, 0.032668739557266235, -0.00771464966237545, -0.008950143121182919, 0.0012390847550705075, 0.030600005760788918, 0.017167609184980392, 0.008425776846706867, -0.005193381570279598, 0.0011654580011963844, -0.026045920327305794, -0.0017966729355975986, -0.004525353200733662, -0.012678171508014202, -0.0021423595026135445, -0.010824931785464287, 0.0015784862916916609, 0.011334932409226894, -0.02999662607908249, 0.027611836791038513, -0.028200851753354073, -0.03146198019385338, 0.03048507682979107, -0.0018406694289296865, -0.004119507968425751, 0.018115779384970665, 0.03939212113618851, 0.016664791852235794, 0.006396550685167313, -0.007294438313692808, -0.005089226644486189, -0.014926481992006302, 0.009934227913618088, 0.004018944688141346, 0.0042344373650848866, -0.01963859610259533, -0.01795775070786476, -0.0010927291586995125, -0.010322114452719688, -0.012247186154127121, -0.019308174028992653, 0.007064579054713249, -0.030255217105150223, -0.009251832962036133, -0.014215354807674885, 0.003119261236861348, 0.0030617965385317802, -0.012369298376142979, 0.014883383177220821, 0.03672000765800476, 0.05275268852710724, -0.010674086399376392, -0.0017751236446201801, 0.009100987575948238, -0.00048665504436939955, -0.00532626872882247, -0.013497045263648033, 0.02324451133608818, -0.02950817532837391, -0.030456343665719032, 0.008950143121182919, 0.0059152827598154545, 0.025844793766736984, 0.0062457057647407055, 0.0015650179702788591, 0.020428737625479698, -0.014926481992006302, 0.041661981493234634, 0.0114354956895113, 0.04505240544676781, 0.022138314321637154, 0.012146621942520142, 0.023618033155798912, -0.011521692387759686, -0.0030079232528805733, 0.009804931469261646, -0.013999862596392632, -0.029335780069231987, -0.0011968840844929218, 0.011564791202545166, 0.013245636597275734, -0.01122718583792448, -0.036978598684072495, 0.013899298384785652, -0.008282114751636982, -0.016348736360669136, -0.010243101045489311, -0.01788591966032982, -0.014983946457505226, 0.0437307134270668, 0.011370847932994366, -0.02450873702764511, -0.01044422760605812, 0.04407550394535065, -0.012196904048323631, -0.013410847634077072, -0.02452310360968113, 0.020874088630080223, -0.019609862938523293, 0.0034101768396794796, 0.03445014730095863, -0.029824232682585716, -0.005699790082871914, 0.025025920942425728, 0.021721694618463516, -0.007815212942659855, -0.010343664325773716, -0.001407887670211494, 0.003381444374099374, -0.007901410572230816, -0.006622818298637867, 0.032668739557266235, -0.03174930438399315, 0.014811552129685879, 0.021132681518793106, 0.01392084825783968, 0.038357753306627274, -0.026792963966727257, 0.0023776062298566103, -0.012283101677894592, 0.036174092441797256, -0.0036526063922792673, -0.04594310745596886, -0.0004660036356654018, 0.011765917763113976, 0.016190707683563232, 0.01797211728990078, 0.01925070770084858, 0.014229721389710903, -0.02266986481845379, -0.01060225535184145, -0.00889267772436142, -0.003789085429161787, -0.009575072675943375, 0.011981410905718803, 0.03973691165447235, 0.036174092441797256, -0.031088456511497498, -0.04197803884744644, -0.033070992678403854, 0.011291833594441414, 0.003117465414106846, 0.032956063747406006, 0.0024171131663024426, -0.03192169591784477, 0.01817324385046959, -0.029738035053014755, 0.0113780302926898, 0.019983384758234024, -0.01640620082616806, 0.029852963984012604, 0.0032719022128731012, 0.01583155244588852, -0.0063354941084980965, 0.012010143138468266, -0.00840422697365284, -0.027410710230469704, 0.01746929995715618, 0.004525353200733662, -0.029565639793872833, 0.0004177421797066927, -0.013655073009431362, -0.04111606627702713, -0.020069582387804985, -0.029824232682585716, -0.03028395026922226, -0.01758422888815403, -0.00836112815886736, 0.005926057696342468, -0.027094652876257896, 0.01749803125858307, 0.054763954132795334, 0.018115779384970665, -0.007251339498907328, 0.009488875046372414, 0.014739721082150936, 0.002508697798475623, 0.014768454246222973, -0.005064085591584444, 0.026318879798054695, 0.015371833927929401, -0.015127608552575111, -0.015759721398353577, 0.030829865485429764, -0.002718803472816944, 0.00348021206445992, -0.003525106469169259, -0.009294931776821613, 0.030312683433294296, 0.005322677083313465, -0.026247048750519753, 0.013949580490589142, -0.029738035053014755, -0.019466200843453407, 0.0032629233319312334, -0.017454933375120163, -0.014869017526507378, 0.03275493532419205, -0.013288735412061214, 0.0003515229618642479, -0.00583626888692379, 0.004069226328283548, -0.01746929995715618, 0.0006267254939302802, -0.010595072992146015, -0.015486763790249825, 0.00644324067980051, 0.00407640915364027, 0.047322262078523636, -0.021319441497325897, 0.031117189675569534, -0.006529437843710184, -0.0063678184524178505, -0.013547326438128948, -0.018992116674780846, 0.04404677078127861, 0.019107045605778694, 0.015673523768782616, 0.007258522789925337, 0.014330284669995308, 0.010559157468378544, 0.02706592157483101, 0.026821695268154144, 0.021333808079361916, 0.0005041638505645096, -0.009575072675943375, -0.024350710213184357, 0.005807536654174328, 0.00021392169583123177, -0.004949156194925308, 0.01915014535188675, 0.022727329283952713, -0.0007780195446684957, 0.015213806182146072, -0.017627328634262085, 0.011112255975604057, -0.002605669666081667, 0.02108958177268505, -0.021951554343104362, 0.02080225758254528, 0.00235605682246387, -0.021549301221966743, 0.02041437104344368, 0.012678171508014202, -0.011061973869800568, -0.02001211792230606, 0.006522255018353462, 0.0045864093117415905, -0.012987044639885426, 0.038329023867845535, 0.0012193312868475914, -0.010027607902884483, -0.008217466995120049, 0.017138876020908356, -0.028832964599132538, -0.03016902133822441, 0.028789864853024483, -0.0013369545340538025, 0.05901635065674782, -0.012024509720504284, -0.004931198433041573, -0.012663805857300758, -0.021563665941357613, -0.01670789159834385, -0.019178876653313637, -0.03798423334956169, -0.02001211792230606, -0.004834226332604885, -0.03407662734389305, -0.031289584934711456, -0.03459380939602852, -0.01420817244797945, 0.0014698418090119958, 0.024551836773753166, 0.01363352406769991, -0.0174836665391922, 0.035886768251657486, 0.04358705133199692, 0.04778198152780533, -0.016276905313134193, -0.028876062482595444, -0.018834087997674942, 0.0015829757321625948, -0.01642056740820408, -0.007994790561497211, -0.009287748485803604, -0.019667327404022217, -0.007614085916429758, -0.01591775007545948, -0.00888549443334341, 0.02256930060684681, -0.010063523426651955, -0.014581693336367607, 0.011485776863992214, -0.03818536177277565, 0.010128171183168888, -0.050856348127126694, -0.01709577813744545, 0.013245636597275734, -0.00019652512855827808, 0.012283101677894592, -0.020543666556477547, 0.036001697182655334, -0.007556621450930834, -0.014236904680728912, -0.027367612347006798, -0.019667327404022217, -0.015572961419820786, 0.018532399088144302, -0.0036777472123503685, 0.04620169848203659, -0.019121412187814713, -0.022928455844521523, -0.0004565757990349084, 0.012793101370334625, 0.007987607270479202, 0.008066621609032154, -0.0008857660577632487, 0.02393409051001072, -0.007405776064842939, 0.01591775007545948, -0.03505352884531021, -0.015271270647644997, 0.03126085177063942, 0.04114479944109917, -0.01244831271469593, 0.012319017201662064, 0.0154292993247509, -0.013683806173503399, -0.025428174063563347, 0.0004987764987163246, 0.022928455844521523, 0.016133243218064308, -0.007980423979461193, 0.01955239847302437, 0.01746929995715618, -0.00967563595622778, 0.002918134443461895, -0.02940761111676693, -0.014667890034615993, 0.004715705290436745, -0.018302539363503456, 0.02169296331703663, -0.010422678664326668, 0.008066621609032154, 0.011787467636168003, -0.011090707033872604, 0.0488450825214386, -0.017253806814551353, -0.029321415349841118, -0.001095422776415944, 0.00461514201015234, -0.012189720757305622, 0.003986620809882879, 0.0011897009098902345, -0.029910428449511528, -0.0016224827850237489, -0.004209296777844429, 0.009790565818548203, -0.015616059303283691, 0.0004255986714269966, 0.032668739557266235, -0.01972479373216629, -0.01652112975716591, 0.0027978175785392523, 0.008598171174526215, 0.011780284345149994, 0.031892966479063034, -0.027812963351607323, 0.005890142172574997, -0.009438593871891499, 0.00026622365112416446, 0.014926481992006302, -0.001657500397413969, -0.022210145369172096, -0.05479268729686737, -0.007922959513962269, 0.04134592413902283, 0.04577071592211723, 0.007251339498907328, -0.0047085219994187355, -0.011090707033872604, 0.005656691268086433, -0.005387325305491686, 0.003063592128455639, 0.014466763474047184, -0.032783668488264084, 0.02909155562520027, 0.02101775072515011, 0.0158171858638525, 0.029824232682585716, 0.021333808079361916, -0.006507888901978731, -0.017052680253982544, 0.013087608851492405, -0.019767891615629196, -0.0025194722693413496, -0.022052116692066193, -0.010630988515913486, 0.0036921135615557432, 0.000571954355109483, -0.01049450971186161, -0.0027116204146295786, -0.03195042908191681, 0.0043421839363873005, 0.038731276988983154, 0.012979862280189991, -0.023761695250868797, -0.015213806182146072, -0.012965495698153973, -0.01983972266316414, -0.0016799475997686386, -0.012857749126851559, 0.019221976399421692, 0.0055920435115695, 0.006867043673992157, 0.0021710919681936502, 0.01538620050996542, 0.012965495698153973, -0.006288804113864899, -0.014495495706796646, -0.03562817722558975, -0.026132117956876755, 0.004888099618256092, -0.009129720740020275, -0.0024997189175337553, -0.026318879798054695, -0.030054090544581413, -0.009100987575948238, 0.009086621925234795, 0.03269747272133827, -0.012527327053248882, -0.016779722645878792, -0.027180850505828857, -0.005398099776357412, 0.04192057251930237, -0.01815887726843357, 0.0248104277998209, 0.002697254065424204, -0.027310146018862724, 0.005067677237093449, -0.011299016885459423, 0.0017490849131718278, -0.017325637862086296, 0.024752963334321976, 0.002097465330734849, 0.014215354807674885, 0.026692399755120277, -0.005692606791853905, 0.009251832962036133, 0.005293944850564003, 0.01591775007545948, 0.012829016894102097, -0.0003043838660232723, 0.01040831208229065, 0.021606765687465668, -0.03815662860870361, 0.014416482299566269, -0.020974652841687202, -0.024968456476926804, -0.006295987404882908, -0.0194231029599905, -0.007843945175409317, -0.0380704291164875, -0.029479442164301872, 0.03858761489391327, 0.020744793117046356, -0.020385637879371643, -0.03967944532632828, -0.01190957985818386, 0.020385637879371643, 0.015256904996931553, -0.018834087997674942, -0.010472959838807583, -0.001930458121933043, 0.0008291990961879492, 0.0009248241549357772, -0.013798735104501247, -0.0006155018927529454, -0.002532042795792222, -0.005940423812717199, -0.045454658567905426, 0.009531973861157894, -0.02070169523358345, 0.017555497586727142, -0.02305775135755539, 0.02412085048854351, -0.000772183237131685, -0.021132681518793106, -0.012218452990055084, -0.003857324831187725, -0.02656310424208641, 0.0004996744100935757], "id": 39}, {"title": "Horace Farquhar, 1st Earl Farquhar", "text": "Horace Brand Farquhar, 1st Earl Farquhar GCB GCVO PC (19 May 1844 \u2013 30 August 1923), was a British financier, courtier and Conservative politician.", "vector": [0.0055586532689630985, -0.002701384946703911, -0.01830918900668621, -0.00044727849308401346, -0.02689693681895733, -0.019882192835211754, -0.04296707734465599, -0.01609848253428936, -0.08196622133255005, 0.008899513632059097, -0.01786988228559494, 0.08508387953042984, -0.04461093619465828, 0.010281205177307129, -0.017969081178307533, 0.0502510741353035, -0.02333996631205082, 0.0017200293950736523, -0.08797480911016464, -0.0019928249530494213, 0.04461093619465828, 0.012449398636817932, -0.015333238057792187, -0.02922101318836212, 0.009657672606408596, 0.04018952324986458, 0.025196392089128494, 0.004520612768828869, 0.04356226697564125, -0.005509053822606802, -0.01108187809586525, 0.03795047104358673, 0.021823646500706673, 0.035371314734220505, 0.017473088577389717, -0.0021115087438374758, 0.019287003204226494, 0.018337532877922058, 0.0020530526526272297, -0.004595011472702026, 0.011861294507980347, -0.005292943213135004, -0.041890066117048264, 0.03469109535217285, 0.022546378895640373, 0.0003195162571500987, 0.012272259220480919, 0.0428253635764122, -0.0002382532984483987, 0.015304895117878914, 0.051923274993896484, -0.027803894132375717, -0.017218006774783134, 0.041294876486063004, 0.043193817138671875, 0.005696822423487902, 0.024331949651241302, 0.03367077186703682, -0.009856069460511208, 0.011847122572362423, -0.025168050080537796, -0.04030289128422737, -0.028257371857762337, -0.030042942613363266, -0.0258482675999403, 0.015446607954800129, 0.004407242871820927, 0.016509447246789932, -0.044979386031627655, -0.03829058259725571, 0.020009733736515045, -0.04251359775662422, 0.008127182722091675, 0.027081161737442017, 0.02526724897325039, 0.006582522299140692, 0.049400802701711655, -0.016282707452774048, 0.0015349180903285742, 0.014752218499779701, 0.01130861695855856, -0.029929572716355324, -0.020874176174402237, 0.04257028177380562, 0.0031991482246667147, -0.06116289645433426, -0.002109737368300557, -0.04588634520769119, -0.012669051997363567, 0.05107300356030464, -0.011960492469370365, 0.0236233901232481, -0.008148440159857273, -0.000751073588617146, 0.01461050659418106, 0.04001946747303009, 0.03707185760140419, -0.012746994383633137, -0.009530131705105305, -0.02051989734172821, 0.01026703417301178, 0.024785427376627922, -0.021015889942646027, 0.03653335198760033, 0.03055310621857643, 0.015276553109288216, -0.019386200234293938, -0.015559976920485497, 0.03659003600478172, 0.03897079825401306, 0.006323897745460272, -0.03882908821105957, 0.014057829976081848, 0.02406269684433937, -0.0034223448019474745, 0.01314378809183836, 0.007209597621113062, 0.007879187352955341, -0.0065789795480668545, -0.03766704723238945, 0.042315203696489334, -0.06870197504758835, 0.003443601541221142, -0.024700401350855827, 0.06399713456630707, -0.04840881749987602, -0.0071918838657438755, 0.039934441447257996, -0.00208848062902689, -0.025508159771561623, -0.02316991053521633, -0.019442886114120483, 0.032735470682382584, -0.050307758152484894, 0.014072000980377197, 0.0031725773587822914, 0.01232185773551464, -0.023155739530920982, -0.011549527756869793, 0.02333996631205082, 0.03296221047639847, 0.02363756112754345, 0.02112925797700882, 0.002611043630167842, 0.04257028177380562, 0.024700401350855827, 0.03304723650217056, 0.014823074452579021, 0.007145827170461416, 0.03738362342119217, -0.03327397629618645, 0.013986974023282528, 0.025649871677160263, -0.0014622906455770135, -0.01906026341021061, -0.06473404169082642, 0.004967005457729101, -0.03114829584956169, -0.033330660313367844, -0.006352240219712257, -0.021653592586517334, 0.03647666797041893, -0.06309018284082413, -0.012187231332063675, 0.024303607642650604, 0.04619811102747917, -0.0003987864183727652, 0.013405954465270042, -0.006784461904317141, 0.00199459632858634, -0.008502719923853874, 0.01232185773551464, 0.0023099055979400873, -0.01799742318689823, 0.0006341611733660102, 0.01758645847439766, -0.004155704285949469, -0.015701688826084137, 0.0176998283714056, -0.03738362342119217, -0.008984540589153767, -0.005544481799006462, -0.0169912688434124, 0.01948539912700653, -0.00967892911285162, 0.02747795544564724, 0.04353392496705055, 0.02553650178015232, 0.005771221127361059, -0.013568923808634281, -0.013767320662736893, 0.025281419977545738, -0.03970770165324211, -0.020732464268803596, -0.023680074140429497, 0.04367563873529434, 0.016495276242494583, 0.007248568814247847, -0.013490982353687286, 0.00870820228010416, 0.04900400713086128, 0.019272832199931145, 0.004251359961926937, 0.00671360595151782, -0.01728886365890503, 0.0059448182582855225, 0.027704695239663124, 0.00804924126714468, -0.010451260022819042, 0.04784196987748146, 0.015078156255185604, -0.04710506647825241, 0.0030025229789316654, 0.011159819550812244, 0.011549527756869793, 0.01920197531580925, -0.010699255391955376, 0.04050128906965256, 0.025153879076242447, -0.03619324415922165, -0.021738620474934578, -0.02039235644042492, 0.028144001960754395, -0.0026553284842520952, -0.012846192345023155, 0.014199541881680489, -0.01202426292002201, -0.031204981729388237, -0.014780561439692974, 0.0059129330329597, -8.502719720127061e-05, 0.025323932990431786, -0.04206012189388275, 0.08332665264606476, -0.03888577222824097, 0.01846507377922535, -0.03327397629618645, -0.040557973086833954, 0.023524191230535507, -0.03466275334358215, 0.01743057556450367, 0.04931577295064926, 0.0354846827685833, -0.03480446711182594, -0.004931577481329441, 0.053397081792354584, -0.034039221704006195, -0.0026677283458411694, -0.031516749411821365, 0.02404852584004402, -0.009246707893908024, -0.08304323256015778, 0.008956198580563068, 0.024105209857225418, -0.016452763229608536, -0.00017437218048144132, -0.016424421221017838, 0.05178156495094299, 0.06292012333869934, 0.020123103633522987, -0.04271199554204941, -0.0066037788055837154, 0.05067620798945427, 0.04203177988529205, -0.0679083913564682, 0.00620698556303978, -0.0635436624288559, -0.05433237925171852, 0.008878256194293499, 0.0032629186753183603, 0.019272832199931145, 0.01684955693781376, -0.010720512829720974, 0.02188033238053322, -0.05274520441889763, -0.01965545304119587, -0.03746865317225456, -0.03335900232195854, -0.0034152590669691563, 0.04523446783423424, 0.02197953127324581, -0.015460778959095478, -0.016778700053691864, -0.036249928176403046, -0.026485972106456757, -0.013391783460974693, 0.01612682454288006, 0.005576367024332285, 0.026117520406842232, -0.03925422206521034, -0.023850128054618835, 0.016240194439888, 0.021214285865426064, 0.011131477542221546, -0.036845117807388306, 0.0007794160046614707, -0.013682292774319649, -0.022121243178844452, -0.01995304971933365, 0.010982680134475231, 0.018521757796406746, 0.025451473891735077, 0.021611079573631287, -0.019244488328695297, -0.018436729907989502, -0.002164650708436966, -0.0016961154760792851, 0.02924935519695282, 0.060482680797576904, 0.016197681427001953, 0.023269109427928925, -0.008899513632059097, 0.021200114861130714, -8.308972610393539e-05, -0.04529115557670593, -0.0486922413110733, -0.03590982034802437, -0.01904609240591526, -0.07760149240493774, 0.0060688164085149765, 0.02424692176282406, 0.009799384512007236, -0.06286343932151794, -0.04563126340508461, 0.017983252182602882, -0.046169769018888474, 0.02494131214916706, 0.014504223130643368, -0.034492701292037964, -0.014794732443988323, 0.029135987162590027, -0.035683080554008484, 0.05387889966368675, -0.010869310237467289, 0.00487489253282547, 0.002154022455215454, -0.023566704243421555, 0.010302461683750153, 0.016594475135207176, 0.005909390281885862, 0.01597094163298607, 0.05379387363791466, 0.07204637676477432, 0.021214285865426064, 0.007694961503148079, 0.02570655569434166, 0.049089036881923676, 0.007060800213366747, 0.020335670560598373, 0.01653778925538063, 0.00042823594412766397, 0.04418579861521721, 0.02832822874188423, -0.005824362859129906, 0.03157343342900276, 0.008736544288694859, -0.024020183831453323, 0.01225100178271532, 0.033302318304777145, 0.01978299394249916, 0.03588147833943367, -0.03072316013276577, 0.014964786358177662, 0.04619811102747917, -0.022107072174549103, -0.01670784503221512, 0.02054823935031891, -0.02083166316151619, 0.022999856621026993, -0.020590752363204956, -0.012165974825620651, 0.008290152065455914, -0.030184654518961906, -0.033585742115974426, 0.01432708278298378, 0.004697752650827169, -0.05801689252257347, 0.02479959838092327, -0.01803993619978428, -0.006770290434360504, 0.025451473891735077, -0.0010991536546498537, 0.0664912685751915, -0.023382479324936867, 0.04611308500170708, -0.05217835679650307, 0.002614586381241679, -0.0025596730411052704, -0.003904165467247367, -0.0034365158062428236, -0.015744201838970184, 0.020732464268803596, 0.03738362342119217, 0.03279215469956398, -0.01801159419119358, -0.0009149280958808959, 0.014334168285131454, 0.006224699318408966, 0.0605960488319397, -0.042456913739442825, -0.04744517803192139, 0.025890782475471497, 0.018932722508907318, 0.021625250577926636, -0.015574147924780846, -0.0136681217700243, 0.000315309182042256, -0.013519324362277985, 0.01653778925538063, 0.04047294706106186, 0.004548955243080854, 0.007758731953799725, -0.03956598788499832, 0.0075319926254451275, -0.008630260825157166, -0.0250830240547657, -0.002102651633322239, -0.03865903243422508, -0.004293873440474272, -0.056061264127492905, 0.02183781936764717, 0.030241340398788452, 0.03012797050178051, 0.027846407145261765, 0.03293386846780777, 0.018209991976618767, 0.011322788894176483, 0.012328943237662315, 0.02377927303314209, -0.02053406834602356, 0.016509447246789932, -0.01830918900668621, 0.06377039849758148, 0.04461093619465828, -0.014525479637086391, -0.02169610746204853, -0.0031460062600672245, 0.04818207770586014, -0.0004058720078319311, 0.01829501800239086, -0.007694961503148079, -0.03973604366183281, -0.05084626376628876, 0.004811122082173824, 0.0010663827415555716, 0.045262809842824936, -0.03296221047639847, -0.016920411959290504, 0.0634869709610939, 0.01018200721591711, -0.01917363330721855, -0.014752218499779701, -0.01092599518597126, -0.0012594653526321054, 0.013335098512470722, -0.053680505603551865, 0.03341569006443024, 0.007850844413042068, -0.01262653898447752, 0.042598627507686615, -0.0019733395893126726, 0.011216504499316216, 0.007631191052496433, -0.02984454669058323, 0.002293962985277176, 0.008878256194293499, -0.016722016036510468, 0.008609003387391567, -0.010989765636622906, 0.025352276861667633, -0.008984540589153767, 0.007475307676941156, 0.03072316013276577, 0.009615158662199974, 0.018365874886512756, 0.020789150148630142, -0.00901996809989214, -0.023424992337822914, 0.0840635597705841, 0.020165616646409035, 0.009430933743715286, -0.04118150472640991, 0.056486401706933975, 0.06694474816322327, -0.03928256407380104, -0.0546441450715065, 0.014936444349586964, -0.026386773213744164, -0.012527340091764927, 0.064960777759552, 0.020321499556303024, 0.0143979387357831, 0.009218364953994751, -0.01047960203140974, 0.0019981390796601772, 0.050449471920728683, -0.01049377303570509, 0.08519725501537323, 0.020562410354614258, -0.03613656014204025, 0.0413799025118351, 0.050449471920728683, 0.05821528658270836, -0.019116947427392006, -0.0012373228091746569, 0.02586243860423565, -0.0590655617415905, -0.009267964400351048, -0.007999641820788383, -0.010826796293258667, 0.04418579861521721, 0.011096049100160599, -0.04013283550739288, 0.029419410973787308, 0.015078156255185604, -0.061219580471515656, 0.018932722508907318, 0.027364585548639297, -0.009671843610703945, 0.018380045890808105, -0.015885915607213974, 0.015460778959095478, 0.02970283478498459, 0.008233467116951942, 0.07215974479913712, 0.03721357136964798, -0.014086171984672546, -0.00835392251610756, 0.017033781856298447, -0.019556256011128426, 0.0634302869439125, 0.006890745833516121, -0.028739193454384804, -0.011514099314808846, -0.04067134112119675, 0.036873459815979004, 0.014064915478229523, 0.006182185839861631, 0.006182185839861631, -0.0191878043115139, -0.0020512810442596674, -0.006692348979413509, 0.0169912688434124, -0.01669367402791977, -0.030071286484599113, 0.022206269204616547, 0.017685657367110252, -0.022206269204616547, -0.03041139431297779, 0.03724191337823868, 0.0077020470052957535, -0.021611079573631287, 0.0012266944395378232, -0.009253793396055698, 0.04067134112119675, -0.03185685724020004, -0.04050128906965256, 0.017501430585980415, 0.008630260825157166, -0.018380045890808105, 0.023878471925854683, -0.007206054870039225, -0.02407686784863472, 0.013384697958827019, 0.018833523616194725, 0.046424850821495056, 0.0057747638784348965, 0.018209991976618767, -0.0012160660699009895, -0.01639607734978199, 0.029589464887976646, 0.03146006166934967, -0.028852561488747597, 0.02379344403743744, -0.05637303367257118, 0.008198038674890995, 0.014709705486893654, 0.03931090608239174, 0.04741683229804039, 0.06161637604236603, -0.018380045890808105, 0.00996943935751915, 0.013405954465270042, -0.006912002805620432, -0.012661966495215893, 0.005317742470651865, -0.013278414495289326, 0.03114829584956169, -0.005696822423487902, -0.042740337550640106, -0.010536286979913712, -0.008304323069751263, -0.0003669012221507728, 0.018535928800702095, 0.02376510202884674, 0.07663784921169281, 0.013271328061819077, -0.023580875247716904, -0.007928785867989063, 0.01040874607861042, -0.03318895027041435, 0.010096979327499866, -0.049570854753255844, -0.027548812329769135, 0.006791547406464815, -0.030071286484599113, 0.02821485884487629, 0.0027616124134510756, 0.005399227142333984, 0.008382264524698257, 0.012300601229071617, 0.008438949473202229, -0.01978299394249916, 0.027137847617268562, 0.00886408518999815, 0.023722589015960693, 0.010840967297554016, -0.01388068962842226, 0.007011201232671738, 0.00031420207233168185, -0.00029338811873458326, -0.02719453163444996, 0.013554752804338932, 0.036108218133449554, -0.011691239662468433, -0.028285713866353035, -0.035371314734220505, 0.00501660443842411, -0.01462467759847641, -0.00011979092232650146, -0.02112925797700882, 0.020718293264508247, -0.015276553109288216, -0.022036215290427208, -0.00945219025015831, -0.00026283145416527987, 0.028866734355688095, -0.009934010915458202, 0.0056861937046051025, 0.013576009310781956, -0.04529115557670593, -0.01101102214306593, -0.019542085006833076, -0.0025242448318749666, -0.009027054533362389, -0.01785571128129959, 0.04965588450431824, 0.005395684391260147, -0.026259232312440872, -0.04682164266705513, -0.045829661190509796, 0.012725736945867538, 0.035342972725629807, 0.010217434726655483, 0.002437446266412735, -0.006639207247644663, -0.008389350026845932, -0.0169912688434124, -0.05580618232488632, 0.014794732443988323, -0.03412424772977829, -0.06138963624835014, -0.012265173718333244, -0.013278414495289326, 0.010663827881217003, 0.056939881294965744, 0.011025193147361279, -0.051186371594667435, 0.007829587906599045, 0.023595048114657402, -0.028129830956459045, -0.02260306291282177, -0.02995791658759117, -0.027832236140966415, -0.018380045890808105, -0.006214071065187454, 0.015432436019182205, 0.03613656014204025, 0.02156856656074524, 0.003904165467247367, -0.014461709186434746, -0.007411537226289511, -0.038318924605846405, -0.01743057556450367, -0.037610363215208054, 0.012746994383633137, -0.02037818543612957, 0.022064557299017906, 0.0709126815199852, -0.008743629790842533, 0.003626055782660842, -3.6341378290671855e-05, -0.01592842862010002, -0.003101721405982971, 0.013335098512470722, 0.023283280432224274, 0.015347409062087536, -0.047190096229314804, -0.025281419977545738, 0.024912968277931213, 0.03126166760921478, 0.021625250577926636, 0.006185728590935469, 5.984010567772202e-05, 0.039622675627470016, 0.00671360595151782, 0.00011912664922419935, -0.018380045890808105, -0.008701116777956486, -0.047785285860300064, 0.03880074620246887, -0.03233867883682251, -0.026981964707374573, 0.012378542684018612, -0.031375035643577576, 0.0048217508010566235, 0.027237046509981155, -0.02261723391711712, -0.02360921911895275, -0.006702977232635021, 0.038177210837602615, 0.016041798517107964, -0.00634869746863842, 0.01684955693781376, 0.05379387363791466, 0.014022402465343475, 0.02553650178015232, 0.03177183121442795, -0.0051618595607578754, 0.007050171960145235, 0.004308044910430908, 0.0016668873140588403, -0.013561838306486607, -0.013221729546785355, -0.007283996790647507, 0.016041798517107964, 0.00029515952337533236, -0.0015189754776656628, 0.007928785867989063, 0.006451438646763563, -0.0019963677041232586, 0.007588677573949099, 0.000950356072280556, -0.04707672446966171, -0.008871170692145824, 0.00660732202231884, -0.012931219302117825, -0.0038616519887000322, 0.024912968277931213, 0.01755811646580696, 0.021951187402009964, -0.02111508697271347, -0.007071428466588259, -0.0009822412393987179, -0.029759518802165985, 0.020633267238736153, -0.016736187040805817, -0.004067134112119675, -0.015120670199394226, -0.025734897702932358, -0.003039722330868244, 0.01564500480890274, -0.01123776100575924, 0.020590752363204956, 0.028144001960754395, -0.0023719044402241707, -0.007099770940840244, 0.011457415297627449, 0.024997996166348457, 0.009650587104260921, -0.01115273404866457, -0.015446607954800129, -0.025309761986136436, -0.0053106569685041904, 0.0031991482246667147, 0.003326689125970006, -0.001783799729309976, 0.060766104608774185, -0.0025065308436751366, -0.007560335099697113, -0.031686801463365555, 0.004013992380350828, 0.032707128673791885, 0.03945261985063553, -0.025749070569872856, -0.013009161688387394, -0.023368308320641518, -0.0038474807515740395, -0.028158172965049744, -0.0014295197324827313, 0.01625436544418335, 0.03202690929174423, -0.017232179641723633, 0.026344260200858116, 0.03806384280323982, -0.050591181963682175, 0.010571714490652084, 0.007801245432347059, -0.027279559522867203, -0.0369301475584507, 0.0038085097912698984, 0.004793408326804638, 0.018124964088201523, 0.0169629268348217, 0.008318494074046612, -0.008991626091301441, 0.008892428129911423, 0.004885521251708269, -0.022078728303313255, -0.021355997771024704, 0.0057747638784348965, 0.04120984673500061, 0.04078471288084984, 0.0034896580036729574, -0.012180145829916, 0.010904737748205662, 0.008942026644945145, -0.012357286177575588, 0.011039364151656628, -0.01726052165031433, -0.049712568521499634, 0.010819710791110992, -0.0036561693996191025, -0.02658517099916935, 0.005353170447051525, 0.0017935424111783504, 0.036419983953237534, -0.031233323737978935, -0.012095118872821331, -0.017019610852003098, -0.025763241574168205, -0.026103349402546883, -0.0353996567428112, -0.022050386294722557, -0.03355740010738373, 0.0023010484874248505, 0.019230317324399948, 0.022971514612436295, 0.00929630734026432, 0.04472430422902107, 0.023835957050323486, -0.014525479637086391, 0.0009786984883248806, -0.05336873605847359, -0.04220183193683624, 0.015035643242299557, 0.015134841203689575, -0.014291654340922832, -0.020888349041342735, -0.041436586529016495, -0.00900579709559679, 0.034747783094644547, -0.006235328037291765, 0.019570427015423775, -0.01803993619978428, -0.004757980350404978, 0.00601921696215868, -0.00835392251610756, -0.0005819048965349793, -0.041124820709228516, 0.04194675013422966, 0.01189672201871872, -0.02404852584004402, 0.017543945461511612, 0.03225364908576012, -0.007177712395787239, 0.030921557918190956, -0.02054823935031891, 0.008736544288694859, -0.01934368722140789, -0.022489693015813828, -0.02423275075852871, -0.003946679178625345, -0.03942427784204483, -0.031119953840970993, -0.00509808911010623, -0.0015056899283081293, -0.022532207891345024, 0.04390237480401993, 0.026344260200858116, 0.01948539912700653, 0.009466361254453659, -0.014220798388123512, -0.031119953840970993, 0.010763025842607021, 0.008609003387391567, 0.04401574656367302, 0.04240022972226143, -0.008956198580563068, 0.0015003758016973734, -0.012739908881485462, 0.011471586301922798, -0.04004780948162079, -0.031119953840970993, -0.019527912139892578, 0.0022408210206776857, -0.004789865575730801, -0.008899513632059097, 0.002115051494911313, 0.0012488369829952717, 0.023424992337822914, 0.012690309435129166, -0.007138741668313742, 0.043789006769657135, -0.00044041432556696236, -0.033444032073020935, 0.05195161700248718, -0.008474376983940601, 0.00952304620295763, -0.014723876491189003, 0.015375752002000809, 0.031828515231609344, -0.004410786088556051, 0.0546724870800972, 0.03503120690584183, -0.002074309391900897, -0.0038651947397738695, 0.032140281051397324, -0.044384196400642395, -0.03369911387562752, -0.007673704531043768, 0.0007298167911358178, -0.03721357136964798, 0.0042903306894004345, -0.00464815367013216, 0.011577869765460491, -0.011620383709669113, 0.060936156660318375, -0.002208935795351863, -0.015375752002000809, 0.010330804623663425, 0.00879322923719883, -1.4627888958784752e-05, -0.009218364953994751, -0.04741683229804039, 0.03865903243422508, -0.022234613075852394, -0.049400802701711655, -0.015404094010591507, -0.0023541904520243406, 0.0026978421956300735, 0.013186301104724407, -0.040841396898031235, -0.005126431584358215, 0.004226560238748789, -0.006153843365609646, 0.0027562982868403196, -0.021370168775320053, -0.044979386031627655, -0.023254938423633575, -0.020449040457606316, 0.01181169506162405, 0.0064549813978374004, 0.008701116777956486, 0.004524155519902706, 0.043335527181625366, -0.003379831090569496, -0.03721357136964798, -0.05699656531214714, -0.002414418151602149, -0.019556256011128426, -0.01755811646580696, 9.465918265050277e-05, -0.01359726581722498, -0.009643501602113247, -0.01432708278298378, 0.0033869165927171707, 0.009012882597744465, -0.03012797050178051, 0.007283996790647507, 0.022829802706837654, 0.04755854606628418, 0.030071286484599113, -0.013972803018987179, -0.015049814246594906, 0.023099055513739586, 0.026372602209448814, 0.029164329171180725, 0.011485757306218147, 0.020590752363204956, -0.040104493498802185, 0.013320927508175373, -0.004155704285949469, -0.003420573193579912, 0.008694031275808811, 0.0693821907043457, -0.026783566921949387, 0.004173418506979942, -0.011053536087274551, 0.0007865015650168061, -0.07374691963195801, 0.010600057430565357, -0.0008378721540793777, -0.0383472666144371, 0.053822215646505356, 0.0057960208505392075, 0.03231033682823181, 0.012279344722628593, 0.011195247992873192, -0.011414901353418827, -0.026202548295259476, 0.040217865258455276, 0.01292413379997015, -0.06116289645433426, -0.053538791835308075, 0.009728528559207916, -0.024360291659832, 0.05390724167227745, 0.010571714490652084, -0.00018710411677602679, -0.030808188021183014, -0.021044231951236725, 0.045829661190509796, 0.005693279672414064, 0.009976524859666824, -0.06558430939912796, 0.003932507708668709, 0.008183867670595646, -0.007957128807902336, 0.0383756086230278, -0.040246207267045975, 0.005069746635854244, -0.008757801726460457, 0.028455769643187523, -0.017317205667495728, 0.025508159771561623, -0.016013454645872116, -0.010642570443451405, 0.00214162259362638, 5.8566911320667714e-05, -0.006596693303436041, 0.002455160254612565, -0.024459490552544594, -0.03661837801337242, -0.008559404872357845, 0.022206269204616547, 0.03942427784204483, 0.029334383085370064, -0.02849828265607357, 0.02572072669863701, -0.045858003199100494, -0.006430181674659252, -0.006316812243312597, 0.010585886426270008, 0.003943136427551508, 0.0007032458088360727, -0.008892428129911423, -0.0005664051277562976, 0.017543945461511612, -0.048805613070726395, 0.02995791658759117, -0.0062388707883656025, -0.012810764834284782, -0.0035746851935982704, -0.009806470014154911, -0.011124392040073872, -0.04648153483867645, -0.007461136672645807, 0.010961422696709633, 0.020420698449015617, 0.003904165467247367, -0.01710463874042034, -0.018224162980914116, -0.024615373462438583, 0.04146492853760719, 0.025479817762970924, -0.06666132062673569, 0.03131835162639618, 0.03514457494020462, -0.003094635671004653, 0.005810191854834557, 0.005300028715282679, 0.033444032073020935, -0.0008892428013496101, 0.00431867316365242, 0.02791726402938366, -0.0020264815539121628, 0.003872280241921544, -0.004407242871820927, 0.001957396976649761, 0.007857929915189743, -0.013207557611167431, 0.007772902958095074, -0.004385986365377903, -0.022064557299017906, 0.028583308681845665, 0.008339750580489635, 0.013767320662736893, 0.003147777635604143, -0.003889994230121374, -0.007872100919485092, 0.039792727679014206, 0.016622817143797874, 0.0050272331573069096, 0.01874849759042263, 0.009395505301654339, -0.003587084822356701, 0.04160664230585098, -0.032707128673791885, 0.016296880319714546, -0.0008334436570294201, -0.019003579393029213, -0.0369584895670414, 0.0013267785543575883, 0.015885915607213974, 0.012059690430760384, -0.03613656014204025, 0.012300601229071617, -0.0047544375993311405, 0.020760808140039444, 0.012917048297822475, -0.00827598012983799, -0.003872280241921544, -0.006741948425769806, -0.013824005611240864, -0.0075107356533408165, 0.041861724108457565, -0.012527340091764927, 0.016367735341191292, -0.0036561693996191025, -0.021667763590812683, -0.01818164996802807, -0.0059129330329597, 0.023212425410747528, -0.005395684391260147, -0.015772545710206032, -0.026627684012055397, 0.008091755211353302, -0.028441596776247025, 0.04818207770586014, -0.016013454645872116, 0.018422558903694153, -0.011988834477961063, 0.013802748173475266, 0.031091611832380295, 0.03678843379020691, 0.03885743021965027, -0.0002271820412715897, -0.01815330609679222, 0.016892069950699806, -0.01019617822021246, -0.007935871370136738, -0.01202426292002201, 0.006855317857116461, -0.009303392842411995, 0.012881620787084103, -0.0649040937423706, 0.012378542684018612, -0.004347015637904406, 0.017926568165421486, -0.0020158530678600073, -0.026188377290964127, 0.029787860810756683, 0.004003363661468029, -0.01622602343559265, 0.03029802441596985, 0.01611265353858471, 0.011287360452115536, -0.014723876491189003, 0.018124964088201523, 0.0057251644320786, -0.005207915790379047, -0.017784856259822845, 0.024303607642650604, -0.025338103994727135, -0.007298167794942856, 0.00806341227144003, -0.04650987684726715, 0.002745670033618808, 0.008183867670595646, -0.00929630734026432, -0.040387917309999466, -0.004031706135720015, 0.002414418151602149, 0.03191354125738144, -0.020576581358909607, -0.007772902958095074, -0.0029653236269950867, -0.02705281972885132, -0.024105209857225418, 0.009445104748010635, -0.002906867302954197, 0.009289220906794071, -0.01322881504893303, 0.006260127294808626, 0.051753219217061996, -0.00015156541485339403, 0.009771042503416538, 0.015276553109288216, 0.013221729546785355, 0.03605153039097786, 0.011677068658173084, -0.0027793266344815493, -0.013108359649777412, -0.027520470321178436, -0.012669051997363567, -0.010238692164421082, -0.01174083910882473, -0.007517821621149778, -0.00431867316365242, -0.019003579393029213, -0.015446607954800129, 0.0442708283662796, 0.03573976457118988, -0.006784461904317141, 0.00842477846890688, -0.015262382104992867, -0.01567334681749344, 0.006260127294808626, 0.015361580066382885, -0.019244488328695297, -0.022702261805534363, -0.010330804623663425, -0.016041798517107964, 0.004896149504929781, -0.017983252182602882, 0.044695962220430374, -0.0038297667633742094, -0.009707272052764893, -0.014064915478229523, -0.011315702460706234, -0.02924935519695282, 0.017473088577389717, -0.025295590981841087, -0.037015173584222794, -0.014908102340996265, -0.01667950116097927, 0.006040473934262991, 0.03854566439986229, -0.020406527444720268, -0.062409963458776474, -0.02655682899057865, 0.017345547676086426, 0.02054823935031891, -0.007638276554644108, -0.023878471925854683, -0.01641024835407734, -0.03208359703421593, -0.01159912720322609, 0.016466934233903885, -0.0273079015314579, 0.009728528559207916, -0.03384082391858101, -0.033585742115974426, -0.045432865619659424, 0.0061148726381361485, -0.0048819780349731445, 0.014362511225044727, 0.02793143503367901, -0.00893494114279747, -0.03381248190999031, 0.008835743181407452, 0.027251217514276505, 0.028285713866353035, 0.025026338174939156, -0.007659533526748419, 0.020463211461901665, 0.026670197024941444, 0.018422558903694153, -0.031686801463365555, -0.0017386290710419416, 0.005831448826938868, -0.003904165467247367, -0.0037093115970492363, 0.04563126340508461, -0.01292413379997015, -0.03647666797041893, -0.012796592898666859, 0.008488548919558525, -0.018507586792111397, -0.006051102187484503, 0.018705982714891434, 0.0028909246902912855, -0.015021471306681633, -0.002104423241689801, -0.00982064101845026, 0.0103378901258111, -0.02231963910162449, 0.005764135625213385, 0.008750715292990208, 0.005505511071532965, -0.05155482515692711, -0.01271156594157219, 0.032565414905548096, -0.007152913138270378, -0.043930720537900925, 0.024487832561135292, -0.01697709783911705, -0.022262955084443092, 0.005307114217430353, -0.029306041076779366, 0.006890745833516121, 0.012364371679723263, -0.0229006577283144, -0.018124964088201523, -0.014525479637086391, -0.004297416191548109, 0.028739193454384804, -0.010274119675159454, 0.0075532495975494385, 0.017912397161126137, 0.001681058551184833, 0.0005017490475438535, 0.007857929915189743, -0.009317563846707344, -0.020434869453310966, 0.004091933835297823, -0.0016739729326218367, 0.03854566439986229, 0.011988834477961063, -0.009027054533362389, 0.023708416149020195, -0.018535928800702095, -0.0003848366322927177, -0.016452763229608536, 0.012343115173280239, -0.011641640216112137, 0.009012882597744465, -0.006575436796993017, -0.000711659959051758, 0.006476238369941711, -0.050704553723335266, -0.00634869746863842, -0.010316633619368076, 0.018535928800702095, 0.01932951621711254, -0.013186301104724407, -0.01728886365890503, -0.05288691818714142, -0.012669051997363567, 0.007461136672645807, -0.02686859481036663, 0.002231963910162449, -0.0004258002736605704, 0.0013037503231316805, -0.010840967297554016, 0.013639779761433601, 0.020165616646409035, -0.024856284260749817, 0.0114503288641572, -0.04313713312149048, 0.02261723391711712, -5.9452610003063455e-05, 0.02613169141113758, -0.006550637073814869, -0.002217792673036456, 0.015503291971981525, -0.005718078929930925, -0.0017120580887421966, -0.002244363771751523, -0.0025649871677160263, -0.019414544105529785, -0.021171772852540016, -0.038772400468587875, -0.002789954887703061, 0.005363799165934324, -0.009756870567798615, -0.009225451387465, 0.013051674701273441, -0.011110220104455948, 0.03607987239956856, 0.02420440874993801, -0.012343115173280239, -0.026060836389660835, -0.010890566743910313, -0.0310349278151989, -0.009423847310245037, -0.005888133309781551, 0.008084669709205627, -0.007652447558939457, 0.025493988767266273, -0.006734862457960844, 0.015418265014886856, -0.041408244520425797, 0.004198217764496803, -0.02939106710255146, 0.013916118070483208, -0.014121600426733494, -0.014582164585590363, 0.012619453482329845, 0.019386200234293938, -0.020860005170106888, 0.00730525329709053, 0.0034453729167580605, 0.01130861695855856, -0.005997960455715656, 0.0035339428577572107, 0.014036573469638824, 0.011804609559476376, -0.012222659774124622, 0.015276553109288216, 0.004782780073583126, -0.007879187352955341, 0.003719939850270748, 0.0035923991817981005, 0.046623244881629944, -0.0007289311033673584, 0.00019728967163246125, -0.009707272052764893, -0.02083166316151619, 0.012208488769829273, -0.015602490864694118, 0.02716618962585926, 0.019697967916727066, 0.03681677579879761, -0.0052433437667787075, -0.018436729907989502, -0.0029848089907318354, 0.034464359283447266, -0.0015561748296022415, 0.007779988460242748, -0.01210928987711668, 0.008198038674890995, -0.0022691632620990276, -0.0427970215678215, 0.016481105238199234, 0.006249499041587114, 0.004984719678759575, 0.0036012560594826937, 0.02275894582271576, -0.014107429422438145, -0.016665330156683922, 0.01667950116097927, 0.017954910174012184, 0.013363441452383995, -0.0013560067163780332, 0.011712496168911457, -0.016211852431297302, 0.007865015417337418, -0.005994417238980532, -0.018252504989504814, 0.00019230760517530143, 0.0048819780349731445, -0.021171772852540016, -0.0016916869208216667, 0.01388068962842226, -0.004113190807402134, 0.006586065050214529, -0.004272616468369961, -0.021667763590812683, -0.03188519924879074, 0.003787253051996231, 0.003223947947844863, 0.007602848578244448, -0.038318924605846405, 0.01462467759847641, 0.0018883123993873596, 0.03520125895738602, -0.002182364696636796, -0.002476417226716876, 0.009600987657904625, -0.00936716329306364, -0.05402061343193054, 0.006802175659686327, -0.036986831575632095, 0.008538147434592247, -0.05492756888270378, 0.04500773176550865, 0.015871742740273476, 0.0008113011717796326, -0.023212425410747528, 0.016722016036510468, 0.012265173718333244, -0.01789822429418564, -0.006132586859166622, -0.0032877183984965086, 0.011471586301922798, -0.006674635224044323, -0.042740337550640106, -0.0006983744096942246, -0.047926995903253555, 0.015758374705910683, 0.007581591606140137, -0.010174921713769436, -0.010486687533557415, 0.006472695618867874, 0.023127397522330284, -0.01859261468052864, -0.02967449277639389, -0.009027054533362389, 0.04220183193683624, 0.03999112546443939, 0.02922101318836212, 8.870838428265415e-06, 0.011684154160320759, 0.014723876491189003, 0.0033160606399178505, -0.017090465873479843, 0.020477384328842163, -0.02572072669863701, 0.02260306291282177, 0.013122530654072762, -0.027577154338359833, -0.02394932694733143, -0.007900443859398365, 0.0042442744597792625, 0.010734683834016323, -0.031970225274562836, 0.018932722508907318, 0.017388062551617622, -0.0018280846998095512, -0.012761165387928486, -0.0009494703845120966, 0.0018989407690241933, 0.008155525662004948, 0.05934898555278778, -0.030609790235757828, -0.03341569006443024, -0.02110091596841812, -0.009848983958363533, -0.03131835162639618, -0.0214268546551466, 0.010628399439156055, -0.014879759401082993, 0.03959432989358902, -0.01210928987711668, -0.03041139431297779, 0.00471900962293148, 0.013845262117683887, 0.00332137499935925, -0.0055161393247544765, -0.0043576438911259174, -0.017458917573094368, -0.006323897745460272, -0.007074971217662096, -0.033160608261823654, -0.027562983334064484, 0.0011514099314808846, 0.011563698761165142, 0.014582164585590363, -0.03381248190999031, -0.022631404921412468, 0.024416977539658546, 0.03585313633084297, 0.000994641100987792, 0.006309726741164923], "id": 40}, {"title": "Shaun Young", "text": "Shaun Young (born 13 June 1970, Burnie, Tasmania) is a former Australian cricketer.He played in one Test at The Oval in London in 1997. He was called into the test team as a replacement as he happened to be in England at the time. He played in 138 first-class cricket matches for Tasmania and Gloucestershire taking 274 wickets with his best bowling 7/64. He was dropped from the Tasmanian team in 2002.", "vector": [0.012097458355128765, 0.030350737273693085, -0.014826327562332153, -0.0204189233481884, -0.0037938421592116356, 0.03649069368839264, -0.02919255569577217, -0.02049824967980385, -0.022513171657919884, 0.05054754391312599, -0.036332037299871445, 0.013715741224586964, 0.024401167407631874, 0.021529508754611015, 0.01913381554186344, 0.015619602985680103, -0.05410141870379448, -0.007916893810033798, -0.054513923823833466, -0.004831050522625446, 0.04204362630844116, -0.007254508323967457, -0.041980162262916565, -0.021640567108988762, 0.011478702537715435, 0.03303201124072075, -0.04597827419638634, -0.0298747718334198, -0.02290980890393257, -0.026003586128354073, 0.007750305812805891, 0.026987247169017792, 0.030921896919608116, -0.011843609623610973, -0.035031065344810486, 0.0014407874550670385, -0.018784774467349052, 0.01055850274860859, -0.039187829941511154, 0.008186607621610165, -0.007234676741063595, -0.007663045544177294, -0.023972798138856888, 0.02079969458281994, -0.008055717684328556, -0.008087447844445705, -0.004172631539404392, -0.03168344125151634, -0.02414732053875923, -0.01761072687804699, 0.023830009624361992, 0.027510810643434525, -0.030001696199178696, 0.03604646027088165, -0.0011016619391739368, -0.043185941874980927, 0.013953723944723606, 0.06695248931646347, 0.03544357046484947, -0.08929114043712616, 0.014421756379306316, -0.011669089086353779, 0.012200583703815937, 0.0022687693126499653, 0.02414732053875923, -0.015215032733976841, 0.02897043712437153, 0.01762659102678299, -0.01664292998611927, 0.0033853051718324423, 0.007817734032869339, -0.006782509386539459, 0.0009762251866050065, 0.026780996471643448, -0.011050334200263023, 0.04502634331583977, 0.0018582489574328065, 0.04029841721057892, -0.06790442019701004, 0.04052053391933441, 0.04956388100981712, -0.036300309002399445, -0.05188024789094925, 0.023433370515704155, -0.013144582509994507, -0.002478987444192171, -0.0032464817631989717, -0.06447746604681015, -0.009384454227983952, -0.03683973476290703, 0.053974494338035583, 0.027241095900535583, 0.07291792333126068, 0.02792331390082836, -0.036934927105903625, 0.0014546697493642569, 0.057084135711193085, -0.019578050822019577, -0.055465854704380035, 0.0030322973616421223, -0.026193970814347267, -0.046327315270900726, 0.026257432997226715, -0.008234204724431038, 0.006909433286637068, -0.018816504627466202, -0.07577371597290039, -0.006171687040477991, 0.04052053391933441, 0.009804890491068363, 0.02167229913175106, -0.014421756379306316, -0.04264651611447334, -0.00236197910271585, -0.012137121520936489, 0.010027008131146431, -0.017658323049545288, 0.008718102239072323, -0.004144866950809956, 0.008622909896075726, 0.016801584511995316, -1.3053417205810547e-05, 0.019324202090501785, -0.0033912546932697296, 0.04283690080046654, -0.025591082870960236, -0.025242039933800697, 0.0076233819127082825, 0.030350737273693085, 0.014810461550951004, -0.012240247800946236, -0.008614976890385151, -0.008369061164557934, 0.018689582124352455, -0.052927371114492416, 0.0006048728828318417, 0.017531398683786392, 0.007377466186881065, 0.03331758826971054, 0.03899744525551796, 0.01069336012005806, -0.02739975042641163, 0.0818026140332222, 0.0020922652911394835, -0.017658323049545288, -0.04835810139775276, 0.0056877885945141315, -0.016849180683493614, -0.03899744525551796, 0.007492491509765387, 0.002488903235644102, 0.006453299894928932, 0.0015885350294411182, -0.028145430609583855, -0.00035127249429933727, 0.004957974888384342, 0.016420811414718628, 0.03595126420259476, 0.03871186450123787, 0.037537816911935806, -0.01556407380849123, 0.020339595153927803, -0.04873887449502945, 0.004019925836473703, -0.016404947265982628, -0.05619566887617111, -0.0535302609205246, -0.02484540268778801, 0.015151570551097393, 0.03433298319578171, -0.011780147440731525, -0.02359202690422535, 0.03680800274014473, 0.027732927352190018, 0.0029767679516226053, 0.006536593660712242, -0.034777216613292694, -0.0282564889639616, 0.033412784337997437, 0.0009856453398242593, -0.04991292208433151, -0.019086219370365143, 0.0298271756619215, -0.03617338463664055, -0.04185323789715767, -0.018404001370072365, 0.053593721240758896, 0.01665879413485527, -0.023988664150238037, 0.01193086989223957, 0.030572855845093727, -0.027145903557538986, 0.0032306162174791098, -0.0025880627799779177, 0.012977994047105312, 0.06999866664409637, 0.03168344125151634, 0.029462268576025963, -0.04934176430106163, 0.013144582509994507, 0.005168192554265261, -0.061145711690187454, 0.03044593147933483, -0.025575216859579086, -0.003831522772088647, 0.016769854351878166, 0.011312115006148815, 0.009130606427788734, -0.021275660023093224, -0.01759486086666584, 0.054545655846595764, 0.06974481791257858, 0.011772215366363525, 0.032270465046167374, -0.0376012809574604, 0.002015912439674139, 0.04128208011388779, -0.0001701824803603813, 0.010963073931634426, 0.016404947265982628, -0.008218338713049889, 0.014199639670550823, -0.009257529862225056, -0.03274643048644066, -0.008852959610521793, 0.03683973476290703, -0.005259419325739145, 0.03737916424870491, -0.010891678743064404, -0.034079134464263916, -0.012486163526773453, 0.06746018677949905, 0.02517857775092125, -0.02016507461667061, -0.05219755694270134, 0.045121535658836365, 0.02327471598982811, -0.0470888614654541, 0.07050636410713196, -0.03921956196427345, 0.026543013751506805, 0.036014728248119354, 0.007532155141234398, -0.009392387233674526, 0.028716588392853737, 0.009654168039560318, 0.028526203706860542, -0.05188024789094925, -0.005398242734372616, 0.01886410266160965, -0.013461892493069172, -0.0409964993596077, 0.004438378848135471, -0.011089997366070747, -0.015659267082810402, 0.00052951171528548, -0.02049824967980385, -0.013557085767388344, 0.051118701696395874, -0.014231370761990547, -0.017452070489525795, 0.026654072105884552, 0.02232278510928154, 0.03642722964286804, 0.004608933348208666, 0.0003492893010843545, -0.02895457111299038, 0.03244498744606972, -0.011732551269233227, -0.023020867258310318, 0.02708244137465954, 0.0004940622020512819, -0.043852295726537704, 0.02925601601600647, -0.003904900746420026, -0.05241967365145683, -0.052007172256708145, -0.023179523646831512, -0.023496832698583603, 0.03357143700122833, 0.01734101213514805, 0.02860553003847599, 0.028129564598202705, -0.06412842869758606, 0.012851070612668991, -0.008805363439023495, 0.0314137265086174, 0.0658101737499237, -0.012882801704108715, -0.022703558206558228, -0.012708280235528946, -0.027891581878066063, 0.018150154501199722, 0.00801208708435297, 0.024115588515996933, 0.036268576979637146, -0.035665687173604965, -0.03487240895628929, 0.007111718878149986, -0.04673982039093971, 0.020974215120077133, 0.020625174045562744, -0.03234979137778282, -0.019942957907915115, -0.03296854719519615, -0.02133912220597267, 0.01243063434958458, 0.014786663465201855, 0.0042122951708734035, -0.0407426543533802, -0.016420811414718628, 0.01694437488913536, -0.0022985171526670456, -0.02581319957971573, 0.025860795751214027, 0.024734344333410263, 0.0042757573537528515, -0.013192178681492805, -0.017832843586802483, 0.015802057459950447, -0.022084802389144897, 0.006393804214894772, -0.018134288489818573, -0.018086692318320274, 0.028827648609876633, -0.021942012012004852, 0.006881668698042631, -0.005584662780165672, -0.018641984090209007, -0.0019395597046241164, -0.028081968426704407, -0.027145903557538986, 0.023512698709964752, -0.007555953226983547, 0.004656529985368252, 0.026844458654522896, 0.0439474880695343, 0.004049673676490784, -0.04182150959968567, 0.04566096514463425, -0.015413351356983185, 0.03814070671796799, -0.0026554912328720093, 0.018356405198574066, -0.03706185147166252, 0.02294154092669487, 0.027828119695186615, -0.026574743911623955, -0.013691943138837814, 0.03306373953819275, 0.0007313012611120939, -0.00271498691290617, 0.023116061463952065, 0.008702237159013748, -0.03166757524013519, 0.022481439635157585, 0.007520256098359823, -0.013787135481834412, 0.02416318468749523, -0.025686275213956833, 0.03414259850978851, 0.019911225885152817, 0.00960657186806202, 0.03363490104675293, 0.002594012301415205, 0.009344791062176228, 0.01921314373612404, -0.03623684495687485, 0.012145054526627064, 0.014889789745211601, 0.012502028606832027, 0.009209933690726757, 0.0024988192599266768, -0.0033178767189383507, -0.01757899485528469, -0.034713756293058395, -0.046041734516620636, 0.012851070612668991, 0.02614637464284897, -0.0039088670164346695, 0.011708753183484077, 0.02008574642241001, -0.02706657536327839, -0.0017253751866519451, -0.025606947019696236, -0.011431106366217136, -0.009757294319570065, -0.027463212609291077, -0.001186939189210534, -0.001381291775032878, 0.023814143612980843, 0.02324298582971096, -0.0078692976385355, -0.00977315939962864, 0.0024670881684869528, 0.005303049925714731, 0.06422361731529236, 0.06777749955654144, 0.054260075092315674, -0.04550230875611305, -0.000594461162108928, -0.04159938916563988, -0.033507976680994034, -0.026558877900242805, 0.029160823673009872, 0.005683822091668844, 0.009693832136690617, -0.02330644801259041, 0.01980016753077507, -0.026257432997226715, 0.0755198672413826, 0.02387760579586029, -0.019324202090501785, -0.007563886232674122, 0.0014705352950841188, 0.016611197963356972, -0.007421096321195364, 0.00013237792882137, 0.032556045800447464, -0.007916893810033798, -0.005541032645851374, 0.015627536922693253, -0.025987720116972923, -0.03022381290793419, -0.00809538085013628, 0.061463020741939545, 0.019990554079413414, 0.034396443516016006, 0.006976861972361803, -0.018150154501199722, -0.004093303810805082, -0.05118216574192047, -0.011772215366363525, 0.04531192034482956, 0.02736802026629448, -0.033476244658231735, -0.05194370821118355, -0.015453015454113483, 0.021862685680389404, 0.02708244137465954, -0.018689582124352455, 0.014048917219042778, -0.032254599034786224, -0.026558877900242805, 0.00811124686151743, -0.03353970870375633, -0.0004184530698694289, 0.0012563507771119475, 0.04220227897167206, 0.05321295186877251, -0.022227592766284943, -6.804820441175252e-05, 0.006251014303416014, 0.01662706397473812, -0.00464463047683239, -0.024639150127768517, -0.03050939366221428, 0.022751154378056526, -0.028526203706860542, 0.03420605883002281, 0.01019359566271305, 0.0722833052277565, 0.018324675038456917, -0.08408725261688232, 0.003486447734758258, 0.022560767829418182, 0.014842192642390728, -0.04845329374074936, -0.0007198979146778584, -0.0057829818688333035, -0.00464463047683239, 0.00897988397628069, -0.07659872621297836, 0.006362073123455048, -0.005989233497530222, 0.01702370122075081, 0.0470571294426918, -0.01792803592979908, -0.023798277601599693, -0.003831522772088647, -0.020577577874064445, 0.016246290877461433, -0.014390025287866592, 0.02922428585588932, 0.025019923225045204, -0.029969966039061546, -0.036014728248119354, -0.004827084019780159, -0.030049292370676994, -0.0061002918519079685, -0.017134759575128555, 0.04759655520319939, 0.026812726631760597, 0.004311454948037863, -0.052610062062740326, -0.05806779861450195, -0.010201528668403625, -0.020847292616963387, -0.03108055144548416, -0.019324202090501785, 0.0016926525859162211, -0.006738879252225161, 0.04055226594209671, -0.012295776978135109, -0.014850125648081303, 0.04734271019697189, -0.0019246857846155763, 0.05781394988298416, -0.05229274928569794, -0.01980016753077507, 0.02573387138545513, 0.06371592730283737, 0.022497305646538734, 0.009313059970736504, 0.019022757187485695, -0.00698479451239109, 0.0021160636097192764, 0.011058266274631023, 0.05562451109290123, 0.05096004530787468, -0.017515532672405243, 0.018388137221336365, 0.004081404767930508, 0.006568324752151966, 0.029160823673009872, -0.013691943138837814, 0.001003989833407104, -0.026717534288764, -0.007274340372532606, 0.027748793363571167, -0.022846346721053123, 0.004565303213894367, -0.01458834484219551, 0.00819454062730074, -0.016016241163015366, -0.03649069368839264, -0.032556045800447464, -0.03493587300181389, -0.00910680741071701, -0.005164226517081261, 0.009923881851136684, -0.011224854737520218, 0.0020605341996997595, -0.00815487653017044, 0.005164226517081261, 0.015881383791565895, 0.026590609923005104, -0.025844929739832878, -0.006798374932259321, -0.008234204724431038, -0.021640567108988762, 0.008186607621610165, -0.00790499523282051, -0.003821606980636716, 0.025416560471057892, -0.013065255247056484, -0.07736027240753174, 0.034428175538778305, 0.02481367066502571, -0.0036589852534234524, 0.020180940628051758, -0.029097361490130424, -0.006611954886466265, 0.013557085767388344, 0.015151570551097393, 0.013858530670404434, 0.0011363677913323045, 0.012795541435480118, -0.046676356345415115, -0.005453771911561489, -0.017182357609272003, 0.004351118579506874, -0.005275284871459007, 0.013914059847593307, -0.013731606304645538, -0.030953627079725266, 0.009995277039706707, 0.05099177733063698, 0.013025591149926186, 0.02448049560189247, 0.004918310791254044, -0.05321295186877251, 0.011653224006295204, -0.006286711897701025, -0.035062797367572784, -0.01919727772474289, 0.002562281209975481, -0.040679190307855606, -0.014326563104987144, -0.01197053398936987, -0.03168344125151634, -0.031937289983034134, -0.04902445524930954, 0.0117880804464221, 0.030572855845093727, -0.006366039626300335, -0.032270465046167374, 0.012097458355128765, 0.02294154092669487, 0.012081592343747616, 0.05489469692111015, 0.027574270963668823, 0.01734101213514805, -0.016833314672112465, -0.0008537632529623806, -0.04924657195806503, -0.009384454227983952, 0.02895457111299038, -0.036300309002399445, -0.021291526034474373, 0.029097361490130424, -0.008789497427642345, -0.01132004801183939, -0.0025008025113493204, 0.00730607146397233, -0.005001605022698641, 0.027558406814932823, -0.010891678743064404, 0.013795068487524986, 0.01539748627692461, 0.031318534165620804, 0.011097930371761322, 0.048929259181022644, 0.0008041834807954729, 0.001228586072102189, -0.033761825412511826, -0.050166770815849304, 0.009241664782166481, 0.021497778594493866, 0.054228343069553375, -0.0203713271766901, -0.021196333691477776, -0.029033899307250977, 0.03645896166563034, 0.020625174045562744, 0.005683822091668844, 0.021212199702858925, 0.0004167177830822766, 0.010280855931341648, -0.041313812136650085, 0.016404947265982628, 0.03306373953819275, 0.0440744124352932, 0.020577577874064445, -0.03636376932263374, 0.00768684409558773, -0.0038414387963712215, 0.004898478742688894, -0.009027480147778988, 0.013779203407466412, -0.046422507613897324, 0.035316646099090576, 0.020593443885445595, -0.00865464098751545, -0.008305598981678486, -0.009844554588198662, 0.014390025287866592, -0.01694437488913536, -0.009789025411009789, -0.02614637464284897, 0.021466046571731567, 0.007476625964045525, -0.004831050522625446, 0.017721785232424736, -0.006270846351981163, 0.0030084990430623293, -0.012851070612668991, -0.03176276758313179, 0.03804551437497139, -0.011954668909311295, 0.01305732224136591, -0.029462268576025963, -0.012684482149779797, -0.0024532058741897345, 0.026558877900242805, -0.014183773659169674, -0.030906030908226967, 0.012240247800946236, 0.03417432680726051, 0.01303352415561676, 0.029097361490130424, -0.04848502576351166, -0.041662853211164474, -0.0015151570551097393, 0.010653696022927761, -0.03353970870375633, 0.0032365659717470407, 0.021846819669008255, -0.006532627623528242, 0.00833733007311821, 0.0053109824657440186, 0.0036808003205806017, 0.031207475811243057, 0.0022687693126499653, -0.019419394433498383, -0.019578050822019577, -0.01055850274860859, -0.05413315072655678, 0.011891206726431847, -0.020958350971341133, 0.0075757852755486965, 0.025353098288178444, 0.025844929739832878, -0.011058266274631023, -0.02173576131463051, -0.018340539187192917, -0.013327036052942276, -0.012993860058486462, 0.013945790939033031, -0.031889691948890686, -0.011232787743210793, 0.004815184976905584, 0.013810934498906136, -0.009519311599433422, 0.00882122851908207, -0.008027952164411545, 0.01789630576968193, 0.014104446396231651, -0.05368891730904579, 0.05432353541254997, -0.018768908455967903, 0.009900083765387535, -0.009789025411009789, 0.018943428993225098, -0.0020684669725596905, 0.03960033506155014, -0.031572382897138596, -0.014017186127603054, 0.008503918536007404, 0.005886107683181763, -0.017531398683786392, 0.021180467680096626, 0.032587774097919464, 0.011367644183337688, 0.021767491474747658, 0.054577384144067764, 0.008852959610521793, -0.018102556467056274, 0.05410141870379448, 0.0008656623540446162, 0.015960711985826492, -0.010820283554494381, -0.007155349012464285, -0.07666219025850296, 0.001380300149321556, 0.007429029326885939, 0.008860892616212368, -0.011518366634845734, 0.0057869479060173035, -0.028208892792463303, -0.0015121822943910956, -0.021751627326011658, 0.05527546629309654, -0.01239097025245428, -0.056100476533174515, 0.009900083765387535, 0.007920860312879086, -0.009154404513537884, -0.027288692072033882, -0.018816504627466202, 0.02917668968439102, 0.03956860303878784, -0.006588156800717115, -0.02133912220597267, 0.0014199638972058892, 0.03239738941192627, 0.01851505972445011, -0.0057353852316737175, 0.03518972173333168, -0.005707620643079281, -0.009090942330658436, -1.9072709619649686e-05, -0.04677154868841171, 0.03810897469520569, 0.04121861979365349, 0.0029113227501511574, 0.020276132971048355, -0.02674926444888115, -0.021767491474747658, -0.03373009338974953, -0.0018166019581258297, -0.01826121285557747, -0.030652182176709175, 8.973934018285945e-05, -0.030430065467953682, 0.013477758504450321, 0.01859438791871071, 0.0016073753358796239, -0.030731510370969772, -0.02392520196735859, 0.018118422478437424, 0.023703085258603096, 0.013929925858974457, -0.019276605919003487, -0.016182828694581985, 0.01951458863914013, -0.007294172421097755, 0.020815560594201088, 0.011145527474582195, -0.03829936310648918, -0.021307392045855522, 0.022179994732141495, -0.012145054526627064, -0.036332037299871445, 0.02701897919178009, -0.02072036825120449, -0.03173103928565979, -0.025876661762595177, -0.021926147863268852, 0.04524846002459526, 0.03373009338974953, -0.006798374932259321, 0.021005947142839432, 0.014977050013840199, -0.03636376932263374, 0.015175368636846542, -0.007270373869687319, -0.02831995114684105, -0.011248652823269367, -0.05949569493532181, -0.011915004812180996, 0.00972556322813034, 0.006659551523625851, -0.04277344048023224, -0.012002265080809593, 0.04280516877770424, -0.013485691510140896, -0.016611197963356972, 0.016111435368657112, -0.0018047027988359332, -0.025416560471057892, -0.0721563771367073, -0.013128716498613358, -0.021862685680389404, -0.012922464869916439, 0.01303352415561676, -0.011915004812180996, 0.006564358249306679, 0.05698894336819649, 0.004680328071117401, 0.006373972166329622, -0.019387664273381233, -0.03082670271396637, -0.01981603354215622, 0.00448200898244977, -0.036966659128665924, 0.013263573870062828, -0.0014278966700658202, -0.025210309773683548, -0.03480894863605499, 0.0038275565020740032, 0.0003862262237817049, 0.008408725261688232, 0.018292943015694618, -0.023417506366968155, -0.009083009324967861, 0.051055241376161575, 0.018689582124352455, 0.010098402388393879, -0.0047239582054317, 0.004303521942347288, 0.007286239415407181, -0.002560298191383481, -0.01696023903787136, 0.01949872262775898, -0.02636849321424961, 0.018356405198574066, -0.020609309896826744, 0.005648124497383833, -0.04274170845746994, -0.020260266959667206, 0.028240622952580452, 0.027272827923297882, -0.016166964545845985, 0.012026063166558743, -0.004894512705504894, -0.03385701775550842, 0.002419491531327367, 0.03353970870375633, -0.012835204601287842, -0.052070632576942444, -0.07399678230285645, -0.0724736899137497, -0.016246290877461433, -0.002217206172645092, 0.01697610504925251, -0.013446027413010597, 0.003371422877535224, 0.0299065038561821, 0.006568324752151966, -0.035665687173604965, -0.018959295004606247, -0.030017562210559845, 0.007206912152469158, 0.012351306155323982, 0.02013334259390831, -0.0251151155680418, -0.05146774277091026, -0.010257057845592499, -0.009273395873606205, 0.025955988094210625, 0.02008574642241001, -0.0011780147906392813, -0.011502501554787159, 0.02708244137465954, -0.029081495478749275, 0.02801850624382496, 0.03890225291252136, -0.008392859250307083, 0.021577104926109314, -0.03871186450123787, 0.039441678673028946, 0.0029926334973424673, 0.020276132971048355, 0.009527243673801422, 0.016151098534464836, -0.0029767679516226053, 0.02106940932571888, -0.011756349354982376, -0.019086219370365143, -0.0037065818905830383, 0.021783357486128807, -0.02895457111299038, 0.011589761823415756, -0.027590136975049973, -0.01887996681034565, 0.0009147463133558631, -0.02765359915792942, -0.013311170041561127, 0.03142959251999855, 0.019022757187485695, 0.01385059766471386, 0.028716588392853737, -0.02732042409479618, -0.014318631030619144, 0.003716497914865613, -0.024766074493527412, -0.013993388041853905, -0.03082670271396637, -0.01590518280863762, 0.012073660269379616, -0.015698930248618126, 0.012779675424098969, -0.014001320116221905, -0.03423779085278511, -0.007377466186881065, -0.01919727772474289, 0.013580883853137493, -0.03969552740454674, -0.012692415155470371, 0.04461383819580078, -0.0061478884890675545, -0.0038097077049314976, -0.013049389235675335, 0.008559447713196278, 0.03331758826971054, -0.011407308280467987, 0.00877363234758377, 0.014231370761990547, 0.037886857986450195, -0.03801378235220909, 0.010772687382996082, -0.040710922330617905, 0.010106335394084454, 0.015897249802947044, 0.028716588392853737, -0.03541183844208717, 0.018705446273088455, -0.04458210989832878, -0.027843985706567764, 0.014643874019384384, 0.011089997366070747, -0.015984511002898216, -0.028351683169603348, 0.01274001132696867, 0.025416560471057892, -0.0064295013435184956, -0.001107611577026546, 0.06784095615148544, -0.00894021987915039, -0.02638435736298561, -0.02006988227367401, -0.021926147863268852, -0.017515532672405243, 0.012200583703815937, -0.004251959268003702, -0.04534365236759186, 0.01116139255464077, 0.033222395926713943, -0.0376647412776947, -0.021307392045855522, -0.021577104926109314, -0.01827707700431347, -0.038775328546762466, -0.038489747792482376, 0.025575216859579086, -0.009217866696417332, -0.007405230775475502, 0.006707148160785437, -0.00502540310844779, 0.011193123646080494, 0.017182357609272003, -0.04534365236759186, -0.013263573870062828, -0.022830482572317123, 0.03528491407632828, 0.007984322495758533, 0.01978430151939392, 0.0075599197298288345, 0.0094479164108634, -0.038521479815244675, -0.003815657226368785, 0.022893942892551422, -0.030319007113575935, 0.015960711985826492, -0.046359047293663025, 0.03969552740454674, -0.02322711981832981, 0.03871186450123787, 0.038204170763492584, 0.013096985407173634, -0.01113759446889162, 0.03741089254617691, -0.02487713284790516, -0.017103029415011406, 0.022735288366675377, 0.0014596277615055442, -0.02478194050490856, -0.005445839371532202, 0.014136177487671375, 0.0002177790302084759, -0.021957878023386, 0.0032722633332014084, -0.0377282053232193, -0.02010161243379116, -0.008043818175792694, 0.005473603960126638, 0.05806779861450195, -0.011518366634845734, 0.010296721942722797, 0.007964490912854671, -0.0011819811770692468, -0.036300309002399445, 0.013461892493069172, -0.035380106419324875, 0.009622436948120594, 0.036903198808431625, 0.008678439073264599, 0.0016162997344508767, 0.04439172148704529, 0.008575312793254852, 0.03874359652400017, 0.005354612600058317, -0.007270373869687319, -0.017198221758008003, -0.011375577189028263, -0.018721312284469604, 0.022893942892551422, 0.06822173297405243, -0.0001202308849315159, -0.005207856651395559, -0.03212767466902733, 0.018292943015694618, -0.01981603354215622, 0.04055226594209671, -0.014088580384850502, 0.01334290113300085, 0.010328453034162521, 0.014580411836504936, 0.0008800405194051564, 0.011899138800799847, -0.02076796442270279, -0.012652751058340073, -0.017674187198281288, -0.033127203583717346, 0.03956860303878784, 0.009685899131000042, -0.0008225279743783176, -0.02855793386697769, 0.0034190192818641663, 0.00928132887929678, 0.0017065348802134395, -0.015532342717051506, 0.012779675424098969, -0.00849598553031683, 0.025543484836816788, 0.01634148508310318, 0.030350737273693085, -0.02354443073272705, 0.007008593063801527, -0.01035225111991167, -0.0188482366502285, -0.0376647412776947, -0.017753515392541885, 0.019609780982136726, 0.012152987532317638, -0.03528491407632828, 0.08979883790016174, 0.006826139520853758, 0.009178202599287033, -0.005517234094440937, -0.033222395926713943, -0.043820563703775406, 0.0011700820177793503, 0.01983189955353737, -0.016000375151634216, 0.005469637457281351, 0.004172631539404392, -0.015960711985826492, 0.011510433629155159, -0.03296854719519615, -0.0011066199513152242, -0.04426479712128639, -0.02573387138545513, 0.011454904451966286, -0.019609780982136726, -0.031651709228754044, -0.03338105231523514, -0.0029271882958710194, -0.005291150417178869, 0.026336761191487312, -0.032207004725933075, 0.003972329199314117, -0.022386247292160988, -0.023734815418720245, -0.01726168394088745, -0.016611197963356972, -0.0266858022660017, -0.009979411028325558, 0.0102173937484622, 0.0010163848055526614, -0.03484068065881729, 0.018372271209955215, 0.012311642989516258, 0.016016241163015366, 0.013723674230277538, 0.0036788173019886017, 0.008146943524479866, -0.005608460865914822, 0.012970061972737312, -0.0031988853588700294, -0.015334024094045162, 0.011859475634992123, 0.018816504627466202, 0.0470888614654541, -0.0005533099756576121, 0.009915949776768684, -0.010971006006002426, -0.01567513309419155, 0.02544829249382019, -0.0023342145141214132, 0.004628764931112528, -0.013453960418701172, 0.01699197106063366, 0.02259249798953533, -0.004898478742688894, -0.0007015534210950136, 0.015897249802947044, -0.020054016262292862, -0.01622249372303486, 0.008242136798799038, 0.030715644359588623, -0.0015994426794350147, -0.011954668909311295, -0.018991027027368546, -0.03334932029247284, 0.015016713179647923, -0.006635753437876701, -0.03490414097905159, 0.03674454241991043, -0.012422701343894005, -0.0042757573537528515, -0.037855129688978195, -0.020990081131458282, 0.030556989833712578, 0.020038150250911713, -0.03176276758313179, 0.0018929546931758523, -0.000867149792611599, -0.02638435736298561, 0.006366039626300335, -0.01948285661637783, 0.025400696322321892, -0.040679190307855606, -0.002659457502886653, 0.00030937761766836047, -0.01853092573583126, -0.04045707359910011, 0.007258474826812744, -0.020006420090794563, -0.013231842778623104, 0.006639719475060701, -0.011677022092044353, 0.01665879413485527, -0.0012662666849792004, -0.035697419196367264, 0.028066102415323257, 0.014509016647934914, -0.028351683169603348, 0.021275660023093224, 0.015000848099589348, -0.024369437247514725, 0.02073623239994049, 0.011883273720741272, -0.005850410088896751, 0.02479780651628971, -0.017769381403923035, -0.03737916424870491, 0.0060844263061881065, -0.03161998093128204, -0.012351306155323982, -0.011756349354982376, 0.058924537152051926, 0.0071672480553388596, 0.025083385407924652, 0.01762659102678299, -0.02078383043408394, -0.05219755694270134, 0.009654168039560318, -0.004505807533860207, -0.015445082448422909, -0.0034725654404610395, -0.03499933332204819, 0.009543109685182571, -0.006909433286637068, 0.018927564844489098, 0.030731510370969772, -0.03079497255384922, -0.021862685680389404, 0.024988193064928055, -0.02298913709819317, -0.012827271595597267, 0.012137121520936489, -0.03741089254617691, 0.002451222622767091, -0.0628274530172348, 0.00030912971124053, -0.0102094616740942, -0.004125034902244806, -0.0203713271766901, 0.02140258438885212, -0.01019359566271305, -0.02544829249382019, -0.01788043975830078, -0.013921992853283882, 0.00777013786137104, -0.014659739099442959, 0.027272827923297882, -0.023116061463952065, -0.01396165695041418, -0.02233865112066269, 0.0220530703663826, -0.02608291245996952, -0.017721785232424736, -0.0022370382212102413, -0.02298913709819317, -0.02800264023244381, -0.014334496110677719, 0.010899611748754978, 0.018816504627466202, -0.022402113303542137, -0.030858434736728668, -0.0022390212398022413, -0.013089053332805634, -0.0032801961060613394, 0.013858530670404434, -0.020863156765699387, -0.011423173360526562, -0.005334780551493168, -0.021291526034474373, 0.0001317581773037091, 0.004144866950809956, 0.014786663465201855, 0.008599110879004002, 0.024956461042165756, -0.013327036052942276, -0.016151098534464836, 0.0036094055976718664, 0.008408725261688232, 0.01945112645626068, 0.0029807344544678926, 0.024067992344498634, 0.009757294319570065, -0.0440109483897686, -0.04109169542789459, 0.024321841076016426, -0.014096513390541077, -0.009336858056485653, -0.04486768692731857, 0.0050650667399168015, -0.007524222135543823, 0.01083614956587553, 0.012906599789857864, -0.007714608684182167, 0.012763810344040394, -0.013699875213205814, 0.008376994170248508, -0.014255168847739697, 0.03585607185959816, 0.010653696022927761, -0.055148541927337646, 0.03044593147933483, 0.014294832944869995, 0.0006385871092788875, -0.016166964545845985, -0.005386343691498041, -0.02229105494916439, -0.0022132399026304483, -0.013977522030472755, 0.037252239882946014, 0.017705919221043587, -0.022497305646538734, -0.018657850101590157, -0.029144957661628723, -0.00866257306188345, -0.011169325560331345, 0.0266858022660017, -0.04210708662867546, -0.023655489087104797, -0.007714608684182167, -0.015492679551243782, -0.013945790939033031, -0.0026931718457490206, 0.03300027921795845, -0.0282564889639616, 0.03187382593750954, 0.005806779954582453, 0.0049817729741334915, -0.03966379910707474, -2.478987335052807e-05, -0.004204362630844116, 0.0035201620776206255, -0.011280383914709091, -0.03306373953819275, -0.0204665195196867, -0.021846819669008255, -0.005124562419950962, -0.04651769995689392, -0.01005080621689558, -0.027780523523688316, -0.022449709475040436, 0.012502028606832027, -0.00023587564646732062, -0.04220227897167206, 0.00989215075969696, 0.0033773723989725113, -0.008020020090043545, 0.009463782422244549, -0.01384266559034586, -0.04658116400241852, 0.004505807533860207, -0.011558030731976032, -0.027875715866684914, 0.018324675038456917, 0.014683538116514683, 0.0050135040655732155, -0.02137085422873497, 0.0173251461237669, 0.034079134464263916, 0.02138672024011612, -0.02887524478137493, 0.002586079528555274, -0.006960996426641941, -0.0172775499522686, -0.014929452911019325, -0.009471714496612549, -0.02549588866531849, -0.016769854351878166, 0.009257529862225056, -0.005763149820268154, 0.012977994047105312, 0.00494210934266448, -0.006322409491986036, 0.017864573746919632, 0.01891169883310795, -0.0019008874660357833, 0.008670506067574024, -0.019609780982136726, -0.00023587564646732062, 0.0061796195805072784, -0.02703484334051609, -0.0003049154474865645, 0.019419394433498383, -0.013358767144382, 0.06193898618221283, 0.029081495478749275, 0.010328453034162521, 0.014175841584801674, -0.020545847713947296, -0.03645896166563034, 0.004505807533860207, -0.024972327053546906, 0.00478345388546586, -0.014318631030619144, 0.021164601668715477, 0.002080366248264909, -0.00247105467133224, -0.029636789113283157, -0.037886857986450195, -0.009868352673947811, 0.01853092573583126, -0.031286802142858505, 0.009551042690873146, 0.012145054526627064, -0.009693832136690617, -0.03246085345745087, 0.03052525781095028, -0.02801850624382496, -0.01672225631773472, 0.010447444394230843, -0.04591481015086174, -0.014810461550951004, 0.02771706134080887, -0.007797902449965477, 0.025305502116680145, 0.016452543437480927, 0.014231370761990547, 0.023417506366968155, -0.006826139520853758, 0.044772494584321976, -0.03146132454276085, -0.015460948459804058, -0.0005116629763506353, 0.047660019248723984, -0.010526771657168865, 0.013715741224586964, -0.02105354331433773, 0.0034150530118495226, -0.019927091896533966, -0.005985266994684935, 0.008765699341893196, 0.012152987532317638, 0.020529981702566147, 0.03271469846367836, 0.01854679174721241, -0.004037774633616209, -0.02611464448273182, 0.012462365441024303, -0.0051047308370471, 0.004608933348208666, -0.002135895425453782, -0.04315420985221863, -0.011383510194718838, 0.02917668968439102, -0.031508918851614, -0.01180394645780325, -0.05153120681643486, 0.023671355098485947, 0.006968928966671228, 0.012827271595597267, 0.00831353198736906, -0.011954668909311295, -0.02014920860528946, -0.009170269593596458, -0.010328453034162521, -0.001276182709261775, 0.013882328756153584, 0.005901973228901625, 0.002104164334014058, -0.013358767144382, 0.011446971446275711, 0.021942012012004852, 0.02008574642241001, -0.017103029415011406, -0.027558406814932823, 0.015968644991517067, 0.025543484836816788, 0.008948152884840965, -0.013446027413010597, -0.003976295702159405, 0.01856265775859356, 0.0033912546932697296, -0.03247671574354172, 0.051404282450675964, 0.032524313777685165, 0.001677778665907681, -0.0038116909563541412, -0.06758710741996765, 0.02735215425491333, 0.0007089903810992837, 0.030271410942077637, -0.031064685434103012, -0.0012751910835504532, 0.0061280569061636925, 0.011423173360526562, 0.014334496110677719, -0.0188006404787302, 0.017436204478144646, 0.017372742295265198, 0.008741901256144047, 0.03344451263546944, -0.008567379787564278, -0.0034309185575693846, 0.01756312884390354, -0.03426951915025711, 0.027447348460555077, 0.008718102239072323, -0.00865464098751545, -0.010756821371614933, -0.006373972166329622, 0.00023265296476893127, 0.015595804899930954, -0.04255132004618645, -0.006251014303416014, -0.0012940313899889588, 0.02197374403476715, -0.020561711862683296, -0.03268297016620636, -0.02643195539712906, 0.021640567108988762, -0.007663045544177294, 0.004085371270775795, -0.03238152340054512, 0.010019075125455856, 0.02387760579586029, 0.003060061950236559, 0.019070353358983994, -0.005584662780165672, 0.007155349012464285, -0.055148541927337646, 0.0004541504895314574, -0.03363490104675293, 0.008543581701815128, 0.01694437488913536, -0.0266699381172657, 0.008305598981678486, 0.010027008131146431, 0.0377282053232193, -0.02641608938574791, -0.006695249117910862, -0.029398806393146515, 0.009320992045104504, 0.021878549829125404, 0.008876757696270943, 0.01734101213514805, -0.019244873896241188], "id": 41}, {"title": "Fichtelberg", "text": "The Fichtelberg (German pronunciation: [\u02c8f\u026a\u00e7t\u0259lb\u025b\u0250\u032fk]) is a mountain with two main peaks in the middle of the Ore Mountains in the east German state of Saxony, near the Czech border. At 1,214.6 m (3,985 ft) above sea level, the Fichtelberg is the highest mountain in Saxony, the second highest in the Ore Mountains and used to be the highest mountain in East Germany. Its subpeak is 1,206 m (3,957 ft) high.", "vector": [0.02628307417035103, 0.04610802233219147, -0.007010071538388729, -0.0029493365436792374, -0.0032196766696870327, -0.00965715292841196, -0.03682634234428406, -0.0024630995467305183, -0.012818630784749985, 0.03442331776022911, -0.046017907559871674, 0.03223055973649025, 0.0032440824434161186, 0.024105334654450417, -0.033402033150196075, 0.023819975554943085, 0.016460714861750603, 0.012886215932667255, -0.02485627867281437, -0.05046350136399269, 0.0010372428223490715, -0.04703919589519501, -0.0456274189054966, 0.009784813039004803, -0.01281112153083086, 0.013659689575433731, -0.00562457786872983, -0.019885024055838585, -0.035594791173934937, -0.027094095945358276, 0.045807644724845886, 0.03190014138817787, 0.017737319692969322, -0.0005181520245969296, -0.00928167998790741, -0.0037265645805746317, 0.03901910036802292, -0.03430316597223282, 0.014027652330696583, -0.02372986078262329, 0.0030150441452860832, 0.012623385526239872, -0.014395615085959435, 0.022843746468424797, -0.0314796157181263, -0.024240504950284958, 0.013329273089766502, 0.009078924544155598, -0.011872440576553345, -0.04517684876918793, 0.015664711594581604, 0.001669913879595697, 0.017061470076441765, 0.037787552922964096, -0.016415657475590706, 0.00476099131628871, 0.02942202426493168, 0.1589600294828415, 0.0012775451177731156, -0.009116471745073795, 0.006555749569088221, -0.02419544756412506, -0.059835296124219894, -0.028175456449389458, -0.018758606165647507, -0.032470859587192535, -0.0376974381506443, 0.012135270982980728, -0.0219876691699028, 0.0002649427915457636, -0.015033918432891369, 0.01508648507297039, 0.023023974150419235, 0.05268630012869835, 0.03223055973649025, 0.007393053267151117, -0.020681025460362434, -0.053827736526727676, 0.009229114279150963, -0.04547723010182381, 0.012465686537325382, 0.028490852564573288, -0.07251124829053879, -0.017722301185131073, 0.022843746468424797, -0.03361229598522186, -0.029151683673262596, -0.036225587129592896, -0.027634775266051292, 0.05911438912153244, -0.011692213825881481, 0.03574497997760773, -0.049322064965963364, -0.02200268767774105, 0.010415607132017612, 0.0014981352724134922, 0.04923195391893387, -0.010333003476262093, -0.01620539277791977, 0.027860058471560478, 0.029271835461258888, -0.05295664072036743, 0.009897454641759396, 0.039529744535684586, 0.011189080774784088, 0.028325645253062248, -0.017857471480965614, 0.031659841537475586, 0.012255421839654446, -0.01510150358080864, 0.02137189358472824, 0.028040286153554916, 0.004250348545610905, 0.009476926177740097, 0.040641143918037415, 0.033101655542850494, 0.03018798865377903, 0.03724687173962593, -0.012871197424829006, -0.01994509808719158, -0.022137857973575592, 0.01806773617863655, 0.005951239261776209, -0.00793748814612627, 0.008928735740482807, 0.0031201764941215515, 0.05169505253434181, -0.008065149188041687, 0.016716035082936287, 0.022738615050911903, -0.009371793828904629, -0.038117967545986176, 0.02862602286040783, -0.01572478748857975, 0.016475733369588852, 0.0008588933269493282, 0.06548240035772324, 0.04589775949716568, 0.0314796157181263, 0.006919958163052797, -0.02153710275888443, 0.046768855303525925, -0.031059084460139275, 0.05647106468677521, -0.01587497629225254, -0.028851306065917015, -0.005196539219468832, -0.008605829440057278, -0.01092624943703413, -0.0408514067530632, 0.018338076770305634, 0.0019655984360724688, -0.007070146966725588, -0.0180827546864748, -0.0220177061855793, -0.014215388335287571, 0.010731004178524017, -0.0023072785697877407, 0.035114187747240067, 0.032170481979846954, -0.016430675983428955, -0.020635968074202538, 0.030533423647284508, -0.019734833389520645, 0.03649592772126198, -0.007967526093125343, 0.019374379888176918, 0.03787766396999359, 0.009078924544155598, 0.010956287384033203, 0.027905115857720375, -0.0016502016223967075, -0.015454447828233242, -0.015634674578905106, -0.02641824446618557, -0.015769844874739647, 0.04061110317707062, -0.016085240989923477, 0.038117967545986176, 0.018202906474471092, 0.007002561818808317, -0.00809518713504076, 0.026613490656018257, -0.02014034427702427, -0.043915264308452606, 0.03376248851418495, 0.008906207978725433, 0.03526437655091286, -0.02012532576918602, -0.054608721286058426, 7.397981244139373e-05, 0.02249831147491932, 0.028220511972904205, -0.031659841537475586, 0.04935210570693016, -0.03550468012690544, -0.011970062740147114, 0.055449776351451874, 0.01743694208562374, 0.01899890787899494, -0.0581531785428524, 0.01085866428911686, 0.02122170478105545, 0.002502524061128497, 0.041602350771427155, 0.010948778130114079, 0.03421305492520332, -0.003976253792643547, -0.011662175878882408, 0.036736227571964264, 0.03478377312421799, -0.020410684868693352, -0.007535732816904783, 0.03595524653792381, 0.04658862575888634, 0.01227044127881527, 0.026298092678189278, -0.004813557490706444, 0.003927442245185375, 0.053527358919382095, 0.09984564781188965, -0.03283131495118141, -0.015769844874739647, 0.005992541089653969, -0.028701117262244225, 0.013960067182779312, -0.03271116316318512, -0.0180827546864748, -0.0267486609518528, -0.03238074854016304, -0.04211299493908882, 0.004832331091165543, -0.049922823905944824, -0.0036495926324278116, -0.041091710329055786, -0.009957530535757542, -0.014613389037549496, -0.004449348896741867, 0.02955719456076622, -0.0306836124509573, 0.03817804157733917, 0.0010945022804662585, 0.0049449726939201355, -0.011271684430539608, -0.01313402783125639, 0.000625161686912179, -0.00936428364366293, -0.043795112520456314, 0.009619605727493763, 0.01557459868490696, 0.029902629554271698, -0.031990256160497665, 0.024646013975143433, -0.004937463440001011, 0.017872489988803864, -0.04511677473783493, -0.011504476889967918, 0.008665905334055424, -0.018833700567483902, -0.0259226206690073, -0.042863938957452774, 0.009957530535757542, 0.03916928917169571, 0.011279193684458733, 0.008861150592565536, 0.01359210442751646, 0.005827333312481642, 0.027799982577562332, -0.040010347962379456, -0.025261789560317993, 0.008665905334055424, 0.01760215125977993, 0.0005622700555250049, -0.050703804939985275, 0.0012212243163958192, 0.030728669837117195, 0.0313895009458065, 0.05836344510316849, -0.0029042798560112715, -0.0010184691054746509, 0.013058933429419994, -0.007501940242946148, -0.0023016463965177536, 0.07515457272529602, -0.02532186545431614, 0.07124966382980347, -0.009694700129330158, -0.011391835287213326, 0.06037597730755806, -0.06818580627441406, 0.002123296959325671, -0.003035695059224963, 0.006897429935634136, -0.01697135716676712, -0.004096405114978552, 0.010400587692856789, -0.008793565444648266, 0.01695633865892887, 0.044245678931474686, -0.002868609968572855, -0.022828727960586548, 0.06728467345237732, -0.011174061335623264, 0.011219117790460587, -0.0016783620230853558, 0.009319227188825607, -0.056531138718128204, 0.03409290313720703, -0.059805259108543396, -0.01775234006345272, 0.015071465633809566, -0.030938932672142982, 0.011279193684458733, 0.05112433433532715, -0.014177841134369373, -0.0029080344829708338, 0.012525762431323528, -0.01712154597043991, -0.011256664991378784, -0.02796519175171852, 0.031990256160497665, -0.004317933693528175, -0.01484618242830038, 0.02261846326291561, 0.07407321035861969, -0.004595783539116383, 0.0016117156483232975, -0.01965973898768425, 0.026643527671694756, 0.012300479225814342, -0.024255523458123207, 0.03478377312421799, 0.023144124075770378, -0.021777404472231865, -0.03535449132323265, -0.04968252032995224, -0.04325443133711815, 0.006713448092341423, -0.03032315894961357, 0.01790252886712551, 0.023639747872948647, 0.009289189241826534, 0.02105649746954441, 0.05295664072036743, -0.02656843326985836, -0.03208037093281746, 0.04908176511526108, -0.007516959216445684, -0.009769794531166553, 0.004310424439609051, 0.0006237537018023431, 0.03694649413228035, -0.07425343990325928, 0.038298193365335464, 0.021011440083384514, 0.014102746732532978, -0.08050130307674408, -0.04830078035593033, 0.0676451250910759, 0.005523200612515211, 0.0017881877720355988, -0.0235946923494339, 0.05959499254822731, 0.020350608974695206, -0.026132885366678238, 0.011594590730965137, 0.008508206345140934, 0.004734707996249199, 0.0014042671537026763, 0.019299285486340523, -0.013719764538109303, -0.024495825171470642, 0.020380647853016853, 0.028565946966409683, -0.059685107320547104, -0.024630995467305183, 0.012300479225814342, -0.0029230534564703703, -0.031209273263812065, 0.009184056892991066, -0.05139467492699623, -0.0008753202273510396, 0.02251332998275757, 0.011519496329128742, -0.011151532642543316, -0.0005632087122648954, -0.029166704043745995, -0.03631569817662239, -0.046468477696180344, 0.02688383124768734, -0.04103163257241249, 0.021356875076889992, 0.00660080648958683, -0.02027551457285881, -0.0009246010449714959, -0.04421564191579819, -0.01352451927959919, 0.046017907559871674, -0.02922677807509899, -0.03526437655091286, 0.005440596491098404, 0.015124032273888588, 0.02326427586376667, 0.045987870544195175, 0.04106167331337929, 0.021101554855704308, 0.021131591871380806, 0.012307988479733467, -0.01979490928351879, 0.019254229962825775, -0.015920033678412437, -0.03283131495118141, 0.059685107320547104, -0.017211658880114555, 0.04538711532950401, -0.012555800378322601, -0.0062966737896203995, -0.010242889635264874, -0.004355480894446373, 0.031659841537475586, -0.025877565145492554, -0.015424409881234169, -0.009889945387840271, -0.009942512027919292, -0.020801175385713577, 0.03424309194087982, 0.006240352988243103, 0.024270541965961456, -0.010948778130114079, -0.00012144188804086298, -0.05866382271051407, -0.0065632592886686325, 0.025877565145492554, 0.029016515240073204, 0.02233310416340828, 0.04965248331427574, 0.005699672270566225, 0.036375775933265686, 0.05280645191669464, 0.04697911813855171, 0.06506187468767166, 0.003418677020817995, 0.06470142304897308, 0.011061419732868671, -0.0067697688937187195, 0.019569626078009605, -0.04463617131114006, -0.002797270193696022, 0.0017177866538986564, -0.048481009900569916, 0.026132885366678238, -0.02185249887406826, 0.036736227571964264, -0.01077606063336134, 0.020380647853016853, -0.013111499138176441, 0.062839075922966, 0.018593396991491318, 0.020966384559869766, -0.04962244629859924, -0.03319177031517029, -0.016250450164079666, 0.011264175176620483, -0.0503433533012867, 0.04031072556972504, 0.05569007992744446, 0.025426996871829033, 0.04214303195476532, 0.02294887974858284, 0.009627114981412888, -0.0019900042098015547, -0.02623801864683628, -0.10050647705793381, 0.014786106534302235, 0.024105334654450417, 0.026222998276352882, 0.012150289490818977, -0.051484789699316025, 0.04067118093371391, 0.017887510359287262, 0.07022837549448013, 0.002954968484118581, -0.013486972078680992, -0.005729710217565298, -0.028881344944238663, 0.010460663586854935, -0.01839815266430378, -0.039559781551361084, -0.013501990586519241, 0.03913925215601921, -0.0040025366470217705, -0.04649851471185684, 0.025667300447821617, 0.0033360731322318316, -0.0009353958303108811, 0.052445996552705765, -0.0050163124687969685, 0.001950579578988254, -0.03018798865377903, -0.00456574559211731, -0.01335180178284645, 0.0165207888931036, 0.0034862621687352657, 0.0259226206690073, -0.01650577038526535, 0.05121444910764694, 0.01745196059346199, 0.06151741370558739, -0.03892898932099342, -0.005444351118057966, 0.05457868054509163, 0.02419544756412506, 0.03598528355360031, -0.04508673772215843, -0.029196741059422493, -0.003326686332002282, -0.0005932465428486466, -0.004993784241378307, -0.016130298376083374, 0.00895877368748188, -0.0024499581195414066, 0.004573254846036434, 0.003223431296646595, 0.0330115407705307, 0.06301930546760559, 0.016851205378770828, -0.015244183130562305, 0.001301012234762311, 0.00895877368748188, -0.014275464229285717, -0.08140243589878082, -1.3640211363963317e-05, -0.0487813875079155, 0.041602350771427155, 0.020996421575546265, 0.025832507759332657, 0.0004322627210058272, -0.05250607430934906, -0.006334220990538597, -0.010700966231524944, -0.026688585057854652, -0.03352218493819237, -0.031419537961483, -0.0034055355936288834, -0.04319435730576515, -0.03995027393102646, 0.008861150592565536, -0.000696501461789012, 0.007809828035533428, -0.02278367057442665, -0.007997564040124416, -0.013930029235780239, -0.02451084367930889, 0.02388005144894123, -0.015326786786317825, 0.0157097689807415, -0.03313169255852699, -0.01650577038526535, -0.005087652243673801, -0.018368113785982132, 0.028190474957227707, -0.003465611021965742, -0.04385518655180931, 0.040490955114364624, -0.014951314777135849, -0.015379353426396847, -0.0027390718460083008, 0.024285560473799706, -0.030908895656466484, -0.005132709164172411, 0.007265392690896988, -0.019584644585847855, 0.015679731965065002, 0.01778237707912922, -0.01085866428911686, 0.011887459084391594, 0.012082705274224281, -0.061697639524936676, 0.018608417361974716, -0.029211759567260742, 0.020485779270529747, -0.02374488115310669, 0.0015751071041449904, -0.02077113837003708, -0.017346829175949097, 0.001974985236302018, -0.02954217605292797, -0.08002069592475891, -0.006300428416579962, 0.0019186644349247217, -0.01622041128575802, 0.06500180065631866, 0.0047159343957901, -0.003321054158732295, -0.002519420348107815, -0.024330617859959602, 0.0057146912440657616, 0.03241078555583954, -0.07407321035861969, -0.0005937158712185919, -0.0165207888931036, -0.015619656071066856, 0.018202906474471092, -0.055720116943120956, -0.034333206713199615, 0.011144023388624191, 0.018923813477158546, -0.05905431509017944, -0.022708576172590256, -0.0028479588218033314, -0.008410584181547165, 0.0004890529089607298, 0.040160536766052246, 0.012540780939161777, 0.009033868089318275, -0.01384742558002472, 0.0057146912440657616, -0.0018454473465681076, 0.019554607570171356, -0.01140685472637415, 0.022137857973575592, -0.038148004561662674, -0.024886317551136017, 0.020380647853016853, -0.03190014138817787, 0.023159142583608627, 0.04172250255942345, -0.0044005378149449825, -0.011572062037885189, 0.00024171041150111705, -0.022753633558750153, 0.0015093993861228228, 0.03385259956121445, -1.6324253010679968e-05, -0.00895877368748188, 0.010250398889183998, 0.024180429056286812, -0.005673389416188002, 0.026628509163856506, 0.007952507585287094, 0.03493396192789078, 0.005598295014351606, -0.004937463440001011, -0.06392043828964233, -0.005256615113466978, -0.020681025460362434, 0.006593296770006418, 0.016100261360406876, 0.021927593275904655, -0.024615976959466934, -0.014005123637616634, 0.01359210442751646, 0.010408097878098488, 0.006886165589094162, -0.004359235521405935, -0.0032159218098968267, 0.007682167459279299, -0.026538396254181862, -0.0005941851995885372, 0.005628332495689392, 0.02344450168311596, -0.019584644585847855, -0.01525920256972313, -0.010220360942184925, -0.020035212859511375, -0.009769794531166553, -0.004896161146461964, -0.01604018546640873, 0.0074756573885679245, -0.010025115683674812, -0.01179734617471695, -0.0102128516882658, 0.00778729934245348, 0.025216732174158096, 0.012202856130897999, 0.002433061832562089, 0.00841809343546629, -0.0227986890822649, 0.016896262764930725, 0.008463149890303612, 0.00785488449037075, -0.031239312142133713, 0.01328421663492918, -0.02939198724925518, -0.06319952756166458, -0.008065149188041687, -0.017497017979621887, 0.020996421575546265, 0.01107643824070692, 0.019584644585847855, 0.008290432393550873, 0.019089020788669586, -0.057612501084804535, 0.009544510394334793, -0.006157748866826296, 0.012766065075993538, 0.009086434729397297, -0.0005768196424469352, -0.02057589218020439, -0.0251416377723217, 0.013584595173597336, 0.02625303715467453, -0.006439353339374065, 0.011572062037885189, -0.021326838061213493, 0.008680923841893673, -0.020215438678860664, -0.006567013915628195, -0.016100261360406876, -0.04067118093371391, 0.007982545532286167, -0.04589775949716568, -0.03129938617348671, -0.010393078438937664, 0.01605520397424698, -0.01794758439064026, 0.023369407281279564, -0.01281112153083086, 0.0026564679574221373, 0.015033918432891369, 0.02107151597738266, 0.02123672515153885, 0.01321663148701191, -0.028070323169231415, -0.009093943983316422, -0.00036866706795990467, 0.030278101563453674, -0.000830732868053019, 0.02248329296708107, 0.027875078842043877, -0.00816277228295803, 0.004629575647413731, -0.0009931247914209962, -0.014440672472119331, -0.010070172138512135, -0.010588324628770351, -0.0012690969742834568, -0.010956287384033203, 0.03051840513944626, -0.00495623704046011, -0.010715984739363194, -0.027454549446702003, -0.0023204199969768524, 0.008388055488467216, -0.015754826366901398, 0.009664662182331085, 0.007595808710902929, -0.013494481332600117, -0.029196741059422493, 0.0534672848880291, 0.01622041128575802, 0.003131440607830882, 0.01791754737496376, -0.021507063880562782, -0.013689727522432804, 0.021612197160720825, -0.024270541965961456, -0.03974000737071037, 0.04184265434741974, -0.019779890775680542, -0.021792422980070114, 0.029151683673262596, -0.039709970355033875, 0.0012512620305642486, 0.01934434287250042, -0.001478422898799181, -0.031659841537475586, 0.0019900042098015547, 0.020816195756196976, -0.0029943932313472033, 0.027574699372053146, 0.016385620459914207, 0.010378059931099415, -0.007430600468069315, -0.016746073961257935, -0.05079391971230507, 0.028656059876084328, 0.024150390177965164, 0.030848819762468338, 0.007051373366266489, -0.01540939137339592, 0.0023448257707059383, 0.018308037891983986, 0.014418143779039383, -0.03724687173962593, 0.0017403149977326393, -0.0037453381810337305, 0.01123413722962141, -0.05295664072036743, 0.05563000589609146, -0.015664711594581604, 0.00746439304202795, -0.006506938487291336, 0.0004118463839404285, 0.001384554780088365, -0.003938706591725349, 0.018668493255972862, -0.01235304493457079, 0.036075398325920105, -0.003664611605927348, -0.003242204897105694, 0.007922469638288021, 0.024585938081145287, 0.001262526260688901, 0.053827736526727676, -0.04968252032995224, 0.016625922173261642, 0.009852398186922073, -0.02562224306166172, 0.022993935272097588, 0.030908895656466484, 0.02485627867281437, 0.006735976319760084, 0.013254178687930107, -0.04181261733174324, 0.02799522876739502, -0.02234812267124653, -0.02263348177075386, 0.02392510697245598, 0.022303065285086632, -0.017481999471783638, -0.012480705976486206, 0.014260445721447468, -0.003227186156436801, 0.022047745063900948, 0.06578277796506882, -0.012135270982980728, -0.033582258969545364, 0.013899991288781166, -0.047159343957901, 0.003242204897105694, 0.028100362047553062, -0.0022059008479118347, -0.04067118093371391, -0.06590293347835541, 0.018788643181324005, -0.007565770763903856, -0.007284166291356087, -0.026943905279040337, -0.012863687239587307, -0.0298575721681118, 0.028325645253062248, -0.00793748814612627, 0.0180977750569582, -0.03664611652493477, -0.00855326373130083, 0.004498160444200039, -0.07689676433801651, 0.007952507585287094, 0.020681025460362434, 0.03974000737071037, 0.0020331835839897394, 0.03550468012690544, -0.013704746030271053, -0.02356465347111225, 0.021507063880562782, -0.024736128747463226, -0.042353298515081406, -0.005575766321271658, 0.014200369827449322, -0.026598472148180008, 0.008988811634480953, -0.002068853471428156, -0.0019824947230517864, 0.006262881215661764, 0.004141461569815874, 0.03241078555583954, -0.008117714896798134, 0.035444602370262146, -0.008290432393550873, -0.028250550851225853, -0.01534180622547865, 0.010528248734772205, -0.0314796157181263, -0.002384250285103917, 0.006859882269054651, -0.0228137094527483, -0.010783569887280464, -0.012608366087079048, 0.037186793982982635, 0.0061952960677444935, 0.018022678792476654, 0.014583352021872997, -0.02894141897559166, -0.00235796719789505, 0.005677144043147564, 0.007899940945208073, 0.045807644724845886, 0.03568490594625473, -0.01637060008943081, 0.030938932672142982, 0.025877565145492554, 0.013291725888848305, -0.0016520789358764887, 0.027139151468873024, 0.030713649466633797, -0.013096480630338192, 0.0071076941676437855, -0.035144224762916565, 0.012796103022992611, 0.015469466336071491, -0.026928886771202087, -0.01617535576224327, -0.009379303082823753, -0.01203013863414526, 0.01476357877254486, 0.014252935536205769, -0.0172717347741127, -0.0019196030916646123, 0.02811538055539131, -0.005568257067352533, 0.048841461539268494, 0.0066871652379632, -0.015499504283070564, 0.0005679021705873311, 0.005249105393886566, -0.029677346348762512, -0.029962705448269844, -0.009807341732084751, 0.027709869667887688, -0.006758505012840033, -0.007085165940225124, 0.022528350353240967, 0.021326838061213493, -0.014057690277695656, -0.012901234440505505, 0.034333206713199615, 0.018518302589654922, 0.008125225082039833, -0.004791028797626495, 0.022242991253733635, -0.007734733168035746, 0.01172225084155798, -0.027784964069724083, -0.019854985177516937, -0.03129938617348671, -0.012202856130897999, -0.029992742463946342, -0.0013226018054410815, -0.014012633822858334, 0.01947951316833496, -0.01791754737496376, 0.05472886934876442, -0.01634056307375431, -0.022918840870261192, 0.006172767840325832, 0.01697135716676712, 0.005196539219468832, 0.007749752141535282, 0.002887383569031954, -0.02419544756412506, -0.011061419732868671, 0.016145316883921623, -0.005012557841837406, 0.043795112520456314, 0.02311408706009388, -0.004302914720028639, 0.03346210718154907, -0.03000776097178459, -0.03250090032815933, 0.0007514143362641335, -0.0012690969742834568, -0.017557093873620033, 0.011729761026799679, -0.006668391637504101, -0.010678437538444996, 0.0018867492908611894, -0.018608417361974716, -0.039709970355033875, -0.03790770471096039, 0.009882436133921146, 0.044125527143478394, 0.00040527561213821173, 0.020876269787549973, -0.0027353172190487385, 0.017181621864438057, 0.0306385550647974, 0.01841317117214203, 0.06410066783428192, -0.013321763835847378, -0.020696043968200684, 0.03553471714258194, 0.011091457679867744, 0.018142830580472946, 0.007021335419267416, -0.0043404619209468365, -0.02957221306860447, -0.008117714896798134, -0.009214094839990139, 0.037667401134967804, 0.05553989112377167, -0.005530709866434336, 0.024165410548448563, 0.008470659144222736, -0.0009433746454305947, 0.02029053308069706, -0.05923454090952873, -0.007682167459279299, 0.012788592837750912, -0.029136665165424347, -0.010633381083607674, -0.014966333284974098, -0.01758713088929653, -0.03574497997760773, -0.024015219882130623, 0.023714842274785042, -0.046288248151540756, -0.0290765892714262, 0.004727198742330074, 0.0106033431366086, 0.03220052272081375, 0.042683713138103485, 0.010182813741266727, 0.0014896871289238334, 0.009874926880002022, -0.023369407281279564, 0.0027803739067167044, -0.0010034502483904362, -0.006657127290964127, 0.03980008512735367, 0.02329431287944317, -0.023008953779935837, -0.008733490481972694, 8.864670962793753e-05, -0.008312961086630821, 0.05445852875709534, -0.04806048050522804, -0.008433111943304539, 0.0025475809816271067, -0.013990105129778385, 0.0345735065639019, 0.00975477509200573, -0.03241078555583954, 0.02970738336443901, -0.030608518049120903, 0.0055795214138925076, -0.020545855164527893, 0.023324351757764816, 0.00432919804006815, -0.01572478748857975, -0.028175456449389458, -0.02673364244401455, -0.030398253351449966, -0.030398253351449966, -0.01715158298611641, -0.04019057750701904, -0.01932932436466217, 0.0009903087047860026, -0.0034074129071086645, -0.004265367519110441, -0.0019862495828419924, 0.029752440750598907, 0.0061652581207454205, -0.007212826516479254, -0.03421305492520332, 0.023474540561437607, -0.02969236485660076, -0.02565228007733822, -0.02246827445924282, -0.0013423141790553927, 0.0012475074036046863, -0.0034505922812968493, 0.01163964718580246, 0.0015798005042597651, 0.01170723233371973, -0.006135220639407635, 0.006199050694704056, 0.021161628887057304, -0.010573305189609528, -0.02278367057442665, 0.0034036580473184586, 0.0030413272324949503, 0.039860159158706665, -0.022573405876755714, 0.02655341476202011, 0.028821269050240517, -0.021431969478726387, -0.00973975658416748, 0.01695633865892887, -0.053377170115709305, 0.010723493993282318, 0.06022578850388527, 0.004017555620521307, 0.016400638967752457, -0.005035086069256067, 0.011594590730965137, -0.0008875231142155826, 0.0330415777862072, 0.016911281272768974, -0.022393180057406425, -0.017647206783294678, 0.023369407281279564, 0.029962705448269844, 0.03346210718154907, -0.010558286681771278, -0.05097414553165436, -0.012052667327225208, -0.029151683673262596, -0.03096897155046463, -0.0003484853950794786, -0.03493396192789078, -0.033101655542850494, 0.025892583653330803, -0.0038316966965794563, 0.030908895656466484, 0.028100362047553062, -0.024946391582489014, 0.016746073961257935, 0.00011979919509030879, -0.025967678055167198, -0.03871872276067734, 0.007629601284861565, 0.0077422428876161575, -0.008050130680203438, 0.02562224306166172, -0.02297891676425934, 0.011804855428636074, 0.009649642743170261, 0.017481999471783638, -0.023189181461930275, -0.001913971034809947, -0.00936428364366293, 0.009574548341333866, 0.0014671587850898504, 0.022062763571739197, 0.0007485983078368008, 0.015935052186250687, -0.03036821447312832, 0.05451860651373863, 0.005279143340885639, -0.029947686940431595, -0.01101636327803135, 0.0029925156850367785, -0.007287920918315649, -0.008748508989810944, 0.035144224762916565, 0.007520713843405247, -0.010911230929195881, -0.027094095945358276, -0.008125225082039833, -0.02327929437160492, 0.014072708785533905, 0.005834842566400766, 0.029932666569948196, 0.015995128080248833, 0.00255321292206645, -0.03721683472394943, 0.03223055973649025, -0.011534514836966991, -0.01793256588280201, 0.0007063576485961676, 0.029632288962602615, 0.0054781436920166016, -0.005376765970140696, -0.07371275871992111, 0.008733490481972694, -0.02545703575015068, -0.018473247066140175, 0.011864930391311646, -0.010235380381345749, -0.006127710919827223, 0.002384250285103917, 0.015244183130562305, 0.022122839465737343, -0.04328446835279465, -0.003152091521769762, 0.02874617464840412, -0.02297891676425934, -0.034994035959243774, 0.01092624943703413, -0.005992541089653969, 0.03391267731785774, -0.0071677700616419315, 0.007408072240650654, -0.01218032743781805, 0.015439429320394993, -0.028430776670575142, -0.021507063880562782, 0.017872489988803864, -0.009844888933002949, -0.014328029938042164, -0.010160285979509354, 0.004118933342397213, -0.012232894077897072, 0.023774918168783188, -0.003968744073063135, 0.008433111943304539, -0.014162822626531124, 0.022288046777248383, -0.011549534276127815, -0.017962604761123657, -0.023789936676621437, -6.928640505066141e-05, 0.0036045359447598457, 0.019719814881682396, -0.012796103022992611, -0.03505411371588707, -0.024435749277472496, 0.013930029235780239, -0.0051101804710924625, -0.023054011166095734, 0.02970738336443901, -0.0015976354479789734, -0.011857421137392521, 0.012255421839654446, 0.004126442596316338, 0.006653372664004564, 0.00012402325228322297, 0.002575741382315755, -0.0071377321146428585, 0.0149287860840559, -0.030308140441775322, -0.03817804157733917, -0.002384250285103917, 0.017091507092118263, 0.003225308610126376, 0.0032159218098968267, -0.00809518713504076, 0.014838673174381256, -0.0059887864626944065, 0.015664711594581604, 0.003874876070767641, -0.014523276127874851, 0.013532028533518314, -0.03550468012690544, -0.0036176773719489574, 0.001048506936058402, 0.007794809062033892, -0.0025100335478782654, 0.009018849581480026, -0.019374379888176918, -0.043164316564798355, -0.005196539219468832, -0.01637060008943081, 0.0066984291188418865, -0.02403024025261402, 0.028686098754405975, 0.016580864787101746, 0.02044072188436985, 0.011496967636048794, 0.03187010437250137, 0.03096897155046463, -0.0027540908195078373, -0.008275413885712624, 0.014418143779039383, 0.018938831984996796, 0.018202906474471092, -0.0008828297141008079, -0.019764872267842293, 0.010731004178524017, -0.022663520649075508, 0.007456883788108826, -0.016295505687594414, 0.011301722377538681, 0.013179084286093712, -0.01946449466049671, 0.01854834146797657, 0.02864104136824608, 0.013013876974582672, -0.03334195911884308, -0.03111916035413742, 0.015003880485892296, 0.03328188136219978, 0.017737319692969322, -0.0038823855575174093, -0.02249831147491932, -0.038268156349658966, 0.011511987075209618, 0.01841317117214203, 0.013577084988355637, -0.012886215932667255, 0.02814541757106781, -0.03505411371588707, 0.0007608011364936829, 0.014252935536205769, 0.04019057750701904, -0.013772331178188324, 0.002770987106487155, 0.03565486893057823, 0.00675475038588047, 0.028025267645716667, -0.02859598584473133, -0.011294212192296982, 0.025997715070843697, -0.005440596491098404, -0.02090630866587162, -0.019915061071515083, -0.04136205092072487, -0.008020092733204365, 0.011384326033294201, -0.002502524061128497, 0.0003498934383969754, 0.0330115407705307, 0.015754826366901398, 0.004821066744625568, -0.017181621864438057, 0.024135371670126915, 0.018278000876307487, 0.028971457853913307, 0.02089129015803337, 0.022843746468424797, 0.02529182657599449, -0.02781500294804573, 0.0346035435795784, 0.05127452313899994, -0.01248821523040533, 0.009296698495745659, 0.021582158282399178, 0.007847375236451626, 0.021356875076889992, -0.010175304487347603, -0.019569626078009605, -0.0008274475112557411, -0.0037453381810337305, 0.007562016136944294, 0.006735976319760084, -0.006848618388175964, -0.03892898932099342, -0.022573405876755714, -0.0006016946863383055, -0.01013024803251028, -0.025021487846970558, -0.0149287860840559, -0.01637060008943081, 0.033552221953868866, 0.0049149347469210625, 0.0002675241557881236, -0.02216789685189724, -0.01622041128575802, -0.019614683464169502, 0.03346210718154907, 0.018187887966632843, 0.029346929863095284, 0.014741050079464912, 0.005763502791523933, -0.0011695967987179756, -0.009597077034413815, -0.013426896184682846, 0.03445335477590561, -0.022047745063900948, 0.002571986522525549, 0.0014737294986844063, -0.0002891138137783855, 0.017497017979621887, -0.007997564040124416, -0.009259151294827461, 0.02297891676425934, -0.006762259639799595, 0.0024199201725423336, -0.03397275134921074, -0.0007528223213739693, 0.006285409443080425, -0.0314796157181263, -0.026132885366678238, -0.007175279315561056, 0.009942512027919292, 0.01588999666273594, 0.033251844346523285, 0.007471902761608362, 0.0056921630166471004, 0.03274120017886162, -0.008185300044715405, -0.03274120017886162, -0.003182129468768835, 0.0006040413863956928, -0.013179084286093712, 0.013990105129778385, -0.009454397484660149, 0.005530709866434336, 0.029437042772769928, 0.016610903665423393, 0.004982519894838333, -0.0023898824583739042, 0.003660856746137142, 0.016595885157585144, 0.000717621820513159, 0.01209772378206253, -0.007727223914116621, 0.013622142374515533, -0.006394296418875456, -0.00726914731785655, 0.014245426282286644, -0.0036739984061568975, 0.011113985441625118, 0.051484789699316025, 0.04199284315109253, -0.0011968185426667333, -0.0251416377723217, -0.008590810932219028, -0.016070222482085228, 0.015664711594581604, 0.01996011845767498, 0.0028779967688024044, -0.042203109711408615, 0.003056346205994487, 0.015364334918558598, 0.028265569359064102, 0.012473195791244507, 0.014726031571626663, 0.005369256716221571, -0.016595885157585144, -0.013937539421021938, 0.010378059931099415, -0.04103163257241249, -0.0033079127315431833, 0.005951239261776209, 0.00031375419348478317, 0.005669634789228439, -0.004366745240986347, -0.019224191084504128, 0.03910921514034271, -0.016550827771425247, 0.031029047444462776, -0.010137757286429405, 0.008170281536877155, -0.004490651190280914, -0.0010287946788594127, 0.015063956379890442, -0.00910896249115467, -0.0172717347741127, -0.007719714660197496, -0.014605879783630371, -0.002265976509079337, 0.0439753383398056, -0.0036007813178002834, -0.016746073961257935, 0.012593347579240799, -0.013329273089766502, -0.0005937158712185919, 0.03862861171364784, -0.023038992658257484, 0.04181261733174324, -0.003750970121473074, 0.010475683026015759, -0.006135220639407635, 0.01602516695857048, -0.00404759356752038, -0.01399761438369751, -0.004302914720028639, -0.01196255348622799, 0.04466620832681656, 0.017256716266274452, -0.007535732816904783, 0.028701117262244225, 0.0036946493200957775, -0.01917913556098938, -0.005947484169155359, -0.015484485775232315, -0.007182789035141468, 0.027709869667887688, -0.017331810668110847, -0.0007598624797537923, -0.008065149188041687, -0.026928886771202087, 0.023654766380786896, 0.00424283929169178, -0.00048060479457490146, -0.010430625639855862, -0.01092624943703413, 0.010348021984100342, 0.03980008512735367, 0.004926199093461037, 0.014665955677628517, 0.007817337289452553, -0.03961985930800438, 0.02736443467438221, 0.013329273089766502, 0.03958981856703758, 0.004310424439609051, 0.018668493255972862, -0.04760991409420967, 0.007982545532286167, 0.015146560035645962, 0.005703427363187075, -0.005237841513007879, -0.005695917643606663, -0.005853616166859865, -0.013877463527023792, -0.015664711594581604, -0.02075611986219883, 0.007430600468069315, -0.0037678664084523916, 0.023234238848090172, 0.042833901941776276, -0.007246619090437889, 0.008448131382465363, 0.024600958451628685, -0.010746022686362267, -0.02406027726829052, 0.02861100435256958, 0.011309231631457806, -0.013644670136272907, 0.025201713666319847, 0.02392510697245598, 0.001421163440681994, -0.0037941494956612587, 0.025742394849658012, -0.005380521062761545, 0.04415556415915489, 0.02796519175171852, 0.011159042827785015, -0.0313895009458065, 0.025066543370485306, 0.019254229962825775, 0.011977572925388813, 0.027514623478055, -0.007092675194144249, 0.0005725955707021058, -0.014906258322298527, 0.016926299780607224, -0.004096405114978552, 0.008147752843797207, 0.02578745037317276, -0.010355531238019466, 0.01382489688694477, 0.0086508858948946, -0.02811538055539131, -0.04785021394491196, -0.024150390177965164, 0.04451601952314377, -0.029046552255749702, -0.021822461858391762, -0.01131674088537693, 0.03943962976336479, -0.010423116385936737, -0.04950229451060295, -0.023369407281279564, -0.005237841513007879, -0.035775020718574524, -0.022573405876755714, -0.013577084988355637, -0.01525920256972313, 0.011782326735556126, -0.0137648219242692, -0.016145316883921623, -0.005797295365482569], "id": 42}, {"title": "Steve Booth", "text": "Steve Booth is a British political activist and journalist, and was one of the defendants in the GANDALF trial.After involvement in the 1990 anti-Poll Tax movement, and having written a number of articles for 'Freedom' magazine, he first became involved with the UK Green Anarchist magazine in 1990, and published a novel, City-Death, explaining his idea of green anarchism.", "vector": [-0.0031693733762949705, 0.006851681508123875, -0.035086631774902344, -0.04351947084069252, -0.014541000127792358, 0.03900187835097313, -0.026653794571757317, -0.001064104726538062, -0.03945364058017731, 0.04973116144537926, -0.024677347391843796, 0.005999927408993244, 0.011971619911491871, 0.02872435748577118, 0.020385634154081345, 0.02861141785979271, 0.018315071240067482, -0.029910225421190262, -0.015896277502179146, -0.03224431350827217, 0.03058786503970623, -0.031754907220602036, -0.031510207802057266, -0.01833389513194561, -0.01518099196255207, 0.00797637365758419, 0.04231477901339531, 3.306945291114971e-05, -0.0006446980405598879, 0.035274866968393326, -0.04841352999210358, 0.0015917454147711396, -0.014992759563028812, -0.003527016146108508, -0.009162241593003273, -0.006842270027846098, -0.020950334146618843, 0.002163503086194396, -0.0331290103495121, -0.022380905225872993, -0.028649063780903816, 0.01647038757801056, -0.025354987010359764, 0.017053911462426186, -0.027463195845484734, -0.0035317218862473965, -0.058051060885190964, -0.031867846846580505, -0.0126398466527462, 0.03907717391848564, 0.04517592117190361, -0.0006464627222158015, 0.042917124927043915, 0.01810801587998867, -0.0022917368914932013, -0.004757589194923639, 0.013063371181488037, 0.030399631708860397, -0.023604419082403183, -0.038474828004837036, 0.014710409566760063, -0.03378782421350479, 0.0034728990867733955, -0.00400465726852417, -0.02509145997464657, 0.04630532115697861, 0.03201843425631523, 0.018032722175121307, -0.019237414002418518, -0.0071952068246901035, 0.008823422715067863, 0.010258698835968971, 0.02175973542034626, 0.05398522689938545, 0.018588010221719742, -0.035839565098285675, 0.007651671767234802, -0.05466286465525627, -0.043143004179000854, 0.028140835464000702, 0.021044449880719185, -0.042804185301065445, -0.030983153730630875, -0.022606784477829933, 0.008879892528057098, -0.03713837265968323, 0.0020729161333292723, -0.09803175181150436, 0.0029787872917950153, -0.008682247251272202, 0.07845551520586014, 0.0055387564934790134, -0.011576330289244652, 0.0028729063924402, -0.03002316504716873, -0.003559956792742014, -0.020686807110905647, -0.023830298334360123, -0.002411735476925969, -0.02351030334830284, 0.03907717391848564, -0.017976252362132072, -0.029533758759498596, -0.0005841105594299734, 0.0313972644507885, -0.00037499546306207776, 0.011143393814563751, 0.0038470120634883642, 0.0381171852350235, 0.11745739728212357, 0.03167961537837982, -0.024376174435019493, -0.017025675624608994, 0.034823108464479446, -0.0068140351213514805, 0.047660596668720245, -0.002590556861832738, 0.024112649261951447, -0.0011682211188599467, -0.0011758680921047926, -0.018070368096232414, -0.05059703439474106, -0.02386794611811638, -0.034634873270988464, 0.002550557255744934, -0.01153868343681097, -0.0568087212741375, -0.010493990033864975, 0.03469134494662285, -0.02505381405353546, -0.08131665736436844, 0.0007576378411613405, 0.011077512986958027, -0.037834834307432175, -0.020837394520640373, 0.0019705642480403185, 0.003032904351130128, 0.03721366450190544, 0.004399946425110102, 0.04980645328760147, 0.011971619911491871, -0.01060693059116602, -0.04186302050948143, 0.021797383204102516, -0.04374535009264946, -0.036385439336299896, -0.02627732791006565, -0.013722186908125877, -0.058803994208574295, -0.005294053349643946, -0.0034705461002886295, -0.0019270353950560093, -0.00888459850102663, 0.012178676202893257, -0.02031034231185913, -0.0033529005013406277, -0.06411216408014297, -0.04276654124259949, -0.023246776312589645, 0.021383270621299744, -0.062003955245018005, -0.01308219414204359, 0.008719894103705883, 0.0399806909263134, 0.02927023358643055, -0.01055045984685421, 0.018578598275780678, 0.04619238153100014, -0.039905399084091187, 0.04295477271080017, 0.013430424965918064, -0.022230317816138268, 0.08048843592405319, 0.012122205458581448, -0.021383270621299744, -0.01597157120704651, -0.006056397221982479, -0.004738766234368086, -0.004042304120957851, -0.0058634583838284016, -0.046117085963487625, 0.018277425318956375, 0.006988150533288717, 0.024922050535678864, 0.0012246910482645035, 0.0585404671728611, 0.002063504420220852, 0.0232844240963459, -0.0011270451359450817, -0.028423184528946877, 0.006009338889271021, -0.031623147428035736, 0.005152878817170858, -0.03444664180278778, 0.016912735998630524, 0.07958491891622543, -0.0359901525080204, -0.0205550454556942, -0.036856021732091904, -0.04649355262517929, 0.04961822181940079, 0.0419759601354599, 0.030983153730630875, -0.03083256632089615, 0.02597615495324135, 0.038587767630815506, -0.00692697474732995, -0.005896399263292551, -0.022587960585951805, -0.005011703819036484, 0.06392393261194229, 0.0009229299612343311, 0.0016046863747760653, 0.05887928605079651, -0.024809110909700394, -0.01987740583717823, -0.008569307625293732, 0.027990248054265976, 0.009646941907703876, 0.011849268339574337, -0.037288960069417953, -0.0249785203486681, 0.000455288594821468, -0.015378637239336967, -0.001759978593327105, -0.010051642544567585, -0.02452676184475422, -0.01567981019616127, 0.01341160200536251, 0.0208562184125185, -0.039943043142557144, 0.042013607919216156, -0.043030064553022385, 0.002331736497581005, -0.02949611283838749, 0.014089240692555904, 0.01042810920625925, -0.01462570484727621, -0.00582581153139472, -0.006348158232867718, -0.026992613449692726, 0.03369370847940445, -0.031867846846580505, -0.01619745045900345, -0.028216129168868065, 0.03734542801976204, 0.00833872240036726, -0.00858813151717186, -0.041486553847789764, -0.018748007714748383, -0.0009146947995759547, 0.025656159967184067, -0.003687014104798436, 0.0010576342465355992, -0.011293980292975903, 0.009496355429291725, -0.0061363959684967995, -0.0014199827564880252, 0.03369370847940445, -0.010202229022979736, 0.011773974634706974, 0.007581084500998259, -0.012922195717692375, 0.11790915578603745, -0.042352426797151566, 0.03823012486100197, -0.01953858695924282, -0.00039411286707036197, -0.03587721288204193, 0.02607027254998684, 0.031416088342666626, -0.028969060629606247, -0.03216902166604996, 0.03796659782528877, -0.023943239822983742, 0.006503450684249401, -0.02407500147819519, 0.05722283571958542, 0.0061458079144358635, 0.014550412073731422, 0.02870553359389305, -0.07476615160703659, 0.002022328320890665, 0.004823470953851938, -0.04156184941530228, 0.018202131614089012, -0.02119503729045391, -0.0319996103644371, 0.0277078989893198, 0.011021043173968792, -0.05278053507208824, 0.05876634642481804, 0.021910322830080986, 0.059933390468358994, 0.003957598935812712, 0.013609246350824833, -0.014484530314803123, 0.002262325491756201, -0.001699979417026043, -0.007166971918195486, -0.0025576159823685884, 0.0465688481926918, -0.04528886079788208, 0.008912833407521248, 0.002809377619996667, 0.010381050407886505, -0.00896459724754095, 0.005938751623034477, 0.004536415450274944, -0.08711423724889755, 0.008606954477727413, -0.004734060261398554, -0.004207007586956024, -0.024564407765865326, 0.014221004210412502, -0.001638803631067276, 0.031096093356609344, -0.023717358708381653, -8.477838127873838e-05, -0.05933104455471039, -0.018136249855160713, 0.017533905804157257, -0.06012162193655968, 0.011501036584377289, 0.05929339677095413, -0.01308219414204359, 0.05500168725848198, 0.027463195845484734, -0.05522756651043892, -0.008282252587378025, 0.02507263608276844, -0.054512280970811844, 0.03813600912690163, 0.002785848453640938, -0.01160456519573927, -0.036498378962278366, -0.015557458624243736, 0.04491239786148071, 0.0001414688740624115, 0.013571600429713726, 0.023227954283356667, -0.019933875650167465, -0.006235218606889248, -0.02550557255744934, -0.021609149873256683, -0.013929243199527264, 0.0647898018360138, 0.008470485918223858, -0.009002244099974632, -0.02913847006857395, 0.0010441049234941602, 0.005783459171652794, 0.03167961537837982, -0.031303148716688156, 0.016959793865680695, 0.040055982768535614, 0.011228099465370178, -0.0788319855928421, -0.003117609303444624, -0.006950503680855036, 0.04031950980424881, -0.05918045714497566, -0.01237632054835558, 0.007957550697028637, 0.01606568694114685, -0.015783337876200676, 0.01396688912063837, -0.00013705715537071228, 0.021496210247278214, 0.04272889345884323, -0.05631931498646736, 0.003604662138968706, -0.008630483411252499, 0.011341039091348648, -0.01359042339026928, -0.0102116409689188, -0.02010328508913517, 0.004522297997027636, -0.014221004210412502, 0.011698681861162186, 0.001211749971844256, -0.019707996398210526, 0.010493990033864975, -0.0017305671935901046, -0.02439499832689762, -0.02143974043428898, -0.0021799735259264708, 0.04261595383286476, 0.020159754902124405, -0.013684540055692196, -0.056055791676044464, 0.020404458045959473, -0.027331432327628136, 0.00853166077286005, -0.009543413296341896, -0.018089191988110542, 0.0302678681910038, 0.04329359158873558, -0.018936241045594215, -0.0008564601885154843, 0.0008076372323557734, -0.016573917120695114, -0.028329068794846535, 0.02529851719737053, 0.013421013951301575, -0.05198995769023895, -0.007049326319247484, -0.050634678453207016, 0.010795162990689278, -0.028027895838022232, 0.004369358532130718, -0.006508156191557646, -0.017580963671207428, 0.03548192232847214, -0.006955209653824568, 0.027105553075671196, 0.008541072718799114, 0.006446980405598879, 0.03570780158042908, -0.05398522689938545, -0.009966937825083733, -0.011002219282090664, -0.0036728966515511274, -0.012056324630975723, -0.016809208318591118, 0.009623412974178791, 0.023547949269413948, -0.014879819937050343, -0.0016258626710623503, 0.0008799892966635525, 0.010691635310649872, -0.01870094984769821, -0.031736087054014206, 0.055491089820861816, -0.03574544936418533, -0.0282725989818573, 0.012461025267839432, 0.015397460199892521, 0.01557628158479929, 0.056281670928001404, 0.003724660724401474, 0.0076469662599265575, 0.05835223197937012, -0.05402287468314171, -0.04973116144537926, 0.010061054490506649, -0.04329359158873558, -0.003482310799881816, 0.0358583889901638, 0.03047492355108261, -0.06061102822422981, -0.07092619687318802, -0.07062502205371857, 0.02475264109671116, 0.04973116144537926, -0.04163714125752449, -0.025147929787635803, 0.005223466083407402, -0.001778801903128624, 0.029514936730265617, 0.015369225293397903, 0.04935469478368759, 0.04894058406352997, -0.03809836134314537, -0.028122011572122574, -0.07502967864274979, -0.0048070005141198635, -0.005279935896396637, 0.013402190059423447, 0.0056328726932406425, -0.026126742362976074, 0.0024376173969358206, -0.03337371349334717, 0.07740141451358795, 0.013910419307649136, -0.005101114511489868, 0.015444518066942692, -0.03877599909901619, 0.028460830450057983, 0.027237316593527794, -0.03237607702612877, -0.036498378962278366, -0.03646073490381241, 0.020592691376805305, 0.037063080817461014, -0.03975481167435646, -0.008046961389482021, -0.054625220596790314, 0.0031270207837224007, 0.007868140004575253, 0.0090634198859334, 0.03397605940699577, -0.05424875393509865, 0.0224185511469841, 0.02409382537007332, -0.0006799917318858206, -0.0351242795586586, -0.01042810920625925, -0.018550362437963486, 0.003607015125453472, -0.036592498421669006, -0.011293980292975903, 0.04585356265306473, 0.008409310132265091, 0.007430498022586107, -0.0032611368224024773, 0.04630532115697861, 0.022155025973916054, 0.004247007425874472, -0.010776340030133724, 0.03324194997549057, 0.03224431350827217, -0.0031458442099392414, 0.012809256091713905, -0.0554157979786396, -0.002611733041703701, -0.0516887828707695, 0.012470437213778496, 0.04799941927194595, -0.009759881533682346, 0.03610309213399887, -0.001979975961148739, -0.012470437213778496, 0.02044210582971573, 0.04547709599137306, 0.010239875875413418, 0.012564553879201412, -0.010023407638072968, -0.07386263459920883, -0.035293690860271454, 0.0030681979842483997, 0.013533953577280045, 0.015642162412405014, 0.03397605940699577, -0.010032819584012032, 0.006192866247147322, -0.01175515167415142, 0.007844611071050167, 0.006404628045856953, -0.03004198893904686, 0.0012317497748881578, 0.009261064231395721, 0.0061411019414663315, 0.034070175141096115, 0.008094019256532192, -0.005096408538520336, 0.006705801002681255, 0.005656402092427015, -0.011435155756771564, -0.03303489461541176, -0.018390364944934845, -0.002494087442755699, -0.008051667362451553, -0.008621071465313435, 0.023773828521370888, -0.02386794611811638, -0.03821130096912384, 0.01131280418485403, -0.008461073972284794, 0.016432741656899452, 0.03467252105474472, -0.0379854217171669, -0.04348182678222656, 0.04664414003491402, -0.011698681861162186, -0.018663302063941956, 0.03137844428420067, 0.03888893872499466, -0.041486553847789764, -0.005072879604995251, 0.05710989609360695, -0.0038823059294372797, -0.002271737204864621, -0.011124570854008198, -0.033957235515117645, 0.007054032292217016, 0.031510207802057266, -0.0039740693755447865, -0.01865389198064804, -0.03476663678884506, 0.052517011761665344, -0.02904435433447361, -0.015331578440964222, -0.00014830702275503427, -0.03365606069564819, 0.029006706550717354, -0.017251554876565933, -0.011661035008728504, -0.023378539830446243, 0.03565133363008499, -0.009374003857374191, 0.019256237894296646, 0.0015129228122532368, 0.0007864610524848104, 0.02861141785979271, -0.016028041020035744, -0.00966576486825943, 0.013468071818351746, -0.006856387481093407, -0.012611611746251583, 0.058051060885190964, 0.018729183822870255, 0.03866305947303772, -0.04664414003491402, -0.029420819133520126, -0.05214054509997368, 0.012291615828871727, -0.007232853211462498, 0.017420964315533638, -0.01447511836886406, 0.02130797691643238, 0.047434717416763306, -0.039717163890600204, -0.027745544910430908, 0.015651574358344078, -0.01860683225095272, 0.0023752653505653143, 0.024922050535678864, 0.00409642094746232, -0.03271489590406418, -0.002004681620746851, -0.021289153024554253, 0.03137844428420067, 0.02473381720483303, 0.02351030334830284, 0.031058447435498238, -0.009901056066155434, -0.00042999477591365576, 0.023002073168754578, 0.03610309213399887, -0.00554816797375679, -0.011905738152563572, -0.005830517504364252, 0.0034681931138038635, -0.004247007425874472, -0.0011182216694578528, 0.034936048090457916, 0.016875090077519417, 0.005199936684221029, -0.03751483932137489, 0.0023787945974618196, 0.021383270621299744, -0.004395240917801857, 0.003861129516735673, -0.01833389513194561, 0.02053622156381607, 0.016639798879623413, -0.004258771892637014, -0.0051858192309737206, -0.012291615828871727, -0.025449102744460106, -0.002245855052024126, -0.00882812775671482, 0.006823446601629257, 0.015171580947935581, -0.009185770526528358, -0.0027223199140280485, 0.0343901701271534, 0.028780827298760414, 0.03919011354446411, -0.02164679579436779, -0.02586321532726288, -0.00889400951564312, 0.003903482109308243, -0.0016929206904023886, 0.009331651031970978, -0.0181268397718668, 0.01087045669555664, 0.022042086347937584, 0.001072928193025291, 0.04634296894073486, 0.042352426797151566, -0.01704449951648712, 0.01418335735797882, 0.01407982874661684, -0.005891693290323019, -0.04250301420688629, -0.005510521586984396, -0.006785800214856863, -0.04807471111416817, 0.022173848003149033, -0.00789637491106987, 0.010315168648958206, -0.01485158409923315, 0.03657367452979088, -0.0022093849256634712, -0.051199380308389664, 0.0035528980661183596, 0.006997562013566494, 0.015275108627974987, -0.04517592117190361, -0.0010376344434916973, 0.01976446621119976, 0.00866813026368618, 0.009068124927580357, -0.023115012794733047, -0.01883271336555481, -0.02981610968708992, -0.02586321532726288, -0.00045911208144389093, -0.03322312608361244, 0.022907957434654236, -0.024658523499965668, -0.0046446495689451694, -0.03060668706893921, 0.00963282398879528, 0.0039175995625555515, -0.024658523499965668, 0.012319850735366344, -0.03397605940699577, -0.00930341612547636, 0.0003829365305136889, -0.025769099593162537, -0.0051858192309737206, 0.04630532115697861, -0.006437568925321102, 0.028762003406882286, -0.001977622974663973, -0.02251266874372959, 0.02893141284584999, -0.0034917222801595926, -0.0038964233826845884, -0.016300978139042854, -0.042126547545194626, -0.020460927858948708, -0.0036281913053244352, -0.020818570628762245, -0.01039046235382557, 0.0026799675542861223, 0.003079962683841586, -0.02759495936334133, -0.042578306049108505, 0.007595201954245567, 0.00626815902069211, 0.00591051671653986, -0.019952699542045593, -0.03211254999041557, 0.0055387564934790134, 0.03036198392510414, 0.014465706422924995, 0.06750036031007767, 0.013129252940416336, 0.017091557383537292, 0.012206911109387875, 0.005948163103312254, -0.0015870395582169294, 0.025787921622395515, 0.014164534397423267, -0.006211689207702875, 0.01815507374703884, 0.007294028997421265, 0.02418794110417366, 0.026145564392209053, 0.013562188483774662, -0.0016717443941161036, -0.003785836510360241, 0.004075244534760714, -0.023830298334360123, -0.011745739728212357, 0.0015635103918612003, -0.00728932349011302, 0.007359910756349564, 0.00047970007290132344, -0.00015352755144704133, -0.01826801337301731, 0.035180751234292984, 8.205782796721905e-05, -0.0278396625071764, 0.008823422715067863, 0.00886106863617897, 0.013675128109753132, -0.03597132861614227, -0.02221149578690529, -0.0038587767630815506, -0.006009338889271021, -0.016169216483831406, -0.0009811645140871406, -0.011792798526585102, 0.007279911544173956, -0.031321972608566284, -0.03691249340772629, 0.05929339677095413, -0.03367488458752632, 0.004898764193058014, 0.0005711695412173867, -0.008715188130736351, 0.024018531665205956, -0.001499981852248311, 0.005096408538520336, -0.011613977141678333, 0.00040999503107741475, -0.0018576245056465268, 0.015472753904759884, 0.01326101552695036, 0.017750373110175133, -0.01649862341582775, -0.008969303220510483, 0.04227713495492935, 0.01153868343681097, -0.026107918471097946, 0.007712847553193569, -0.008065784350037575, -0.031961966305971146, -0.014098652638494968, 0.07446497678756714, -0.0528181828558445, -0.02851730026304722, -0.05044644698500633, 0.031058447435498238, -0.018795065581798553, 0.009750469587743282, 0.05865340679883957, 0.006992856506258249, 0.02917611598968506, 0.002303501358255744, 0.027971426025032997, -0.02859259396791458, -0.03873835504055023, -0.0009611648274585605, 0.010851632803678513, 0.001697626430541277, 0.00626815902069211, 0.024225588887929916, 0.004287006799131632, -0.0006305805873125792, 0.06418745964765549, 0.020893864333629608, -0.04227713495492935, -0.04408417269587517, -0.005228172056376934, 0.01892682909965515, -0.0252796933054924, -0.05692166090011597, -0.013402190059423447, -0.009430473670363426, 0.026427915319800377, -0.018249189481139183, 0.01308219414204359, 0.025580866262316704, 0.0468323715031147, -0.027670253068208694, -0.019406823441386223, 0.006470509804785252, -0.033543121069669724, 0.018465658649802208, -0.034973692148923874, -0.013957478106021881, -0.010117524303495884, 0.021402092650532722, -0.03593368083238602, -0.0001368365774396807, 0.03922775760293007, -0.004310535732656717, 0.02927023358643055, -0.03260195627808571, -0.011265745386481285, 0.006512862164527178, 0.03533133491873741, -0.02573145180940628, 0.02239972911775112, 0.011021043173968792, -0.03427723050117493, 0.028122011572122574, -0.024112649261951447, 0.01579274982213974, 0.011021043173968792, 0.0009982232004404068, -0.03604662045836449, 0.03542545437812805, -0.014531588181853294, -0.006912857294082642, -0.02913847006857395, 0.02928905561566353, -0.005830517504364252, 0.013891596347093582, 0.003642308758571744, -0.0519523099064827, -0.015397460199892521, 0.03768424689769745, -0.0005182290333323181, -0.011341039091348648, 0.001334101427346468, -0.0488276444375515, -0.0016458623576909304, 0.005618755239993334, -0.04916646331548691, -0.023340893909335136, 0.010635165497660637, -0.004009363241493702, 0.004759942181408405, -0.02915729396045208, 0.022832663729786873, -0.05037115514278412, -0.028630241751670837, 0.010286933742463589, 0.008941068314015865, 0.007971667684614658, -0.076234370470047, -0.025260869413614273, -0.027256140485405922, 0.01551039982587099, 0.024131471291184425, -0.009637529961764812, 0.004795236047357321, 0.057147540152072906, 0.029759639874100685, 0.004025833681225777, 0.0208562184125185, 0.03678072988986969, 0.02682320401072502, -0.022060908377170563, 0.014484530314803123, -0.022155025973916054, 0.0011535154189914465, 0.019952699542045593, 0.007966961711645126, 0.0038093654438853264, -0.026013802736997604, 0.04265360161662102, 0.05022056773304939, 0.019133886322379112, 0.02704908326268196, -0.02759495936334133, 0.03757130727171898, -0.036479558795690536, -0.05846517160534859, -0.010173994116485119, 0.023547949269413948, 0.0028258480597287416, 0.025430278852581978, 0.017524493858218193, -0.009703411720693111, 0.031660791486501694, -0.006550508551299572, 0.008286958560347557, 0.041900668293237686, -0.0026164387818425894, 0.0011770445853471756, -0.03574544936418533, -0.013750421814620495, 0.027086731046438217, 0.02859259396791458, 0.022889133542776108, 0.026352621614933014, -0.013458659872412682, 0.002004681620746851, -0.03002316504716873, -0.031434912234544754, -0.014286885038018227, -0.007581084500998259, 0.029025530442595482, -0.0024046767503023148, -0.014964524656534195, -0.0045881797559559345, 0.010164582170546055, 0.028442008420825005, -0.020573867484927177, -0.014202180318534374, 0.011736327782273293, -0.0010682223364710808, -0.0017140968702733517, 0.015228050760924816, -0.006056397221982479, -0.008724600076675415, 0.032846659421920776, 0.0015129228122532368, 0.012959842570126057, -0.031660791486501694, -0.038248948752880096, -0.025110283866524696, 3.0900358979124576e-05, 0.007218735758215189, -0.013646893203258514, -0.01491746585816145, -0.04525121673941612, -0.0014611587394028902, -0.01160456519573927, 0.039039526134729385, 0.010079877451062202, -0.020235048606991768, 0.014108064584434032, -0.0278396625071764, -0.0574110671877861, -0.012103382498025894, 0.028084365651011467, 0.012348085641860962, 0.003661131951957941, -0.003383488394320011, 0.02439499832689762, 0.026653794571757317, 0.005755224265158176, -0.0008858715882524848, -0.011877503246068954, -0.027689075097441673, 0.01231043878942728, 0.029571406543254852, -0.0009823410073295236, -0.022155025973916054, 0.004522297997027636, -0.030870214104652405, 0.005614049732685089, -0.038154833018779755, -0.010522224940359592, 0.009232829324901104, 0.008771657943725586, 0.01352454163134098, -0.05089820548892021, -0.002269384218379855, 0.023943239822983742, 0.03975481167435646, -0.0059152222238481045, 0.023020897060632706, 0.005491698160767555, 0.020743276923894882, -0.002447029110044241, 0.015124522149562836, 0.00728932349011302, -0.007430498022586107, -0.01164221204817295, 0.055716972798109055, 0.004661120008677244, -0.001054104883223772, 0.015275108627974987, 0.005929339677095413, -0.005406993441283703, 0.017957428470253944, 0.0009623412624932826, 0.019387999549508095, 0.013204545713961124, -0.005157584324479103, 0.015388048253953457, 0.029778461903333664, 0.004708178341388702, -0.0257126297801733, -0.040357157588005066, -0.04747236520051956, -0.006842270027846098, 0.02386794611811638, -0.01436217874288559, -0.03137844428420067, 0.027011437341570854, 0.007458732929080725, -0.050822913646698, 0.025994978845119476, -0.02373618260025978, -0.029458466917276382, -0.019689172506332397, 0.006277570966631174, -0.0033929001074284315, -0.03390076383948326, 0.02166561968624592, 0.009082242846488953, 0.009609295055270195, -0.006625801790505648, -0.010446932166814804, 0.027463195845484734, -0.012912784703075886, -0.013825714588165283, -0.032752543687820435, -0.01601862907409668, 0.011924561113119125, -0.019228002056479454, -0.007326969876885414, -0.01599980518221855, 0.007995197549462318, -0.036178383976221085, 0.048639409244060516, -0.0004517592315096408, 0.005228172056376934, -0.03250784054398537, 0.001392924226820469, -0.009195182472467422, 0.014823349192738533, -0.024432644248008728, 0.012319850735366344, 0.012103382498025894, -0.00433406513184309, -0.013279838487505913, -0.03791012987494469, 0.008296369574964046, -0.030211398378014565, -0.013006901368498802, -0.03702543303370476, 0.01944446936249733, -0.018748007714748383, 0.018428010866045952, 0.005646990146487951, -0.023058542981743813, -0.022173848003149033, -0.016235096380114555, -0.019199766218662262, 0.03333606570959091, 0.028554948046803474, 0.015378637239336967, 0.007101090159267187, 0.027783192694187164, -0.0023764418438076973, 0.0437077060341835, -0.029514936730265617, 0.035086631774902344, 0.004284653812646866, -0.02253149077296257, -0.04325594753026962, -0.029082000255584717, 0.01546334195882082, 0.006846975535154343, 0.013185722753405571, 0.002750554820522666, -0.004992880392819643, -0.020272694528102875, -0.029966695234179497, 0.03501133993268013, -0.01917153224349022, 0.014042182825505733, -0.009604589082300663, -0.007176383398473263, -0.01867271400988102, -0.035161927342414856, 0.006169336847960949, -0.05613108351826668, -0.0041387733072042465, -0.040018338710069656, -0.02162797376513481, 0.012828079983592033, -0.008865774609148502, -0.03235725313425064, -0.013166898861527443, 0.001983505440875888, 0.009872821159660816, 0.029966695234179497, 0.004508180543780327, -0.019519763067364693, 0.002795260166749358, -0.0029246704652905464, -0.01579274982213974, 0.010126936249434948, 0.025336163118481636, -0.018465658649802208, -0.019482117146253586, -0.007449321448802948, 0.009355180896818638, -0.021816205233335495, 0.01440923660993576, 0.02861141785979271, 0.03941599279642105, -0.01076692808419466, -0.01447511836886406, 0.014051593840122223, -0.02672908827662468, 0.00186350685544312, -0.0151339340955019, -0.008301075547933578, 0.030776096507906914, 0.02407500147819519, 0.019933875650167465, -0.013421013951301575, 0.02938317321240902, -0.010136347264051437, 0.028103187680244446, -0.0151339340955019, 0.010371638461947441, 0.03636661916971207, -0.020611515268683434, -0.029759639874100685, -0.00773167097941041, -0.012225734069943428, 0.01286572590470314, -0.022380905225872993, -0.005086997058242559, 0.0031223150435835123, 0.005242289509624243, -0.010013995692133904, -0.03956658020615578, 0.003967010881751776, 0.01696920581161976, 0.005938751623034477, 0.012479848228394985, 0.047886479645967484, 0.0014423354296013713, -0.03124667890369892, 0.02917611598968506, -0.011736327782273293, 0.018823301419615746, -0.014013947919011116, -0.0012505730846896768, 0.01039046235382557, -0.011661035008728504, -0.02748201973736286, -0.006541097071021795, 0.032526664435863495, 0.007891668938100338, -0.01645156554877758, 0.006846975535154343, -0.006009338889271021, 0.0024658525362610817, -0.014126887544989586, -0.018757419660687447, 0.005872869864106178, -0.013458659872412682, 0.0037528956308960915, -0.018183309584856033, -0.002127032959833741, -0.0003605838574003428, 0.011058689095079899, 0.028234951198101044, 0.0063575697131454945, -0.03821130096912384, -0.018588010221719742, -0.02836671471595764, 0.022117378190159798, -0.002529381075873971, -0.0278396625071764, 0.00411759689450264, -0.014371590688824654, 0.005298759322613478, -0.016573917120695114, 0.017891546711325645, -0.012733963318169117, 0.03260195627808571, -0.017251554876565933, 0.012564553879201412, -0.019482117146253586, -0.0013893948635086417, 0.01473864447325468, -0.034728989005088806, -0.006771682761609554, -0.00043440648005343974, -0.04559003561735153, 0.007759905885905027, -0.022475020959973335, -0.03382547199726105, -0.03403252735733986, 0.04811235889792442, -0.012169264256954193, 0.029100824147462845, -0.030211398378014565, 0.024903226643800735, 0.011623388156294823, 0.013402190059423447, 0.01054104883223772, -0.027651429176330566, 0.01490805484354496, 0.0052517009899020195, -0.032093729823827744, -0.00888459850102663, -0.0017952723428606987, 0.030757274478673935, 0.01226338092237711, -0.0030070224311202765, -0.009218711405992508, 0.018917417153716087, 0.020159754902124405, -0.005204642657190561, 0.0017164497403427958, -0.0003152902936562896, 0.020950334146618843, -0.014192769303917885, -0.004595238249748945, -0.01933152973651886, 0.004091714974492788, -0.0088140107691288, -0.022060908377170563, -0.005957574583590031, 0.006644625216722488, 0.05620637536048889, 0.009985760785639286, -0.016592739149928093, -0.006286982446908951, -0.007910491898655891, -0.02142091654241085, -0.02836671471595764, 0.04016892611980438, 0.006992856506258249, 0.018870359286665916, 0.014700998552143574, 0.00620698370039463, -0.022682078182697296, -0.01076692808419466, 0.01599980518221855, -0.016329213976860046, 0.042578306049108505, 0.03359959274530411, -0.015011582523584366, -0.025204399600625038, 0.03713837265968323, 0.01440923660993576, 0.020291518419981003, -0.030870214104652405, -0.009162241593003273, 0.02375500649213791, 0.004183478653430939, 0.016489211469888687, 0.012451613321900368, 0.022663254290819168, -0.0076940241269767284, -0.010268110781908035, -0.026013802736997604, -0.015218638814985752, 0.00679521169513464, 0.001737625920213759, 0.0009029302163980901, -0.0018552716355770826, -0.016460977494716644, -0.020611515268683434, -0.006239924114197493, 0.041486553847789764, -0.006602272856980562, -0.013063371181488037, -0.009844586253166199, 0.025411456823349, -0.00021690913126803935, -0.02949611283838749, 0.006828152574598789, -0.017100969329476357, -0.0005129349301569164, -0.009675176814198494, 0.012978666462004185, 0.00178115488961339, 0.019613878801465034, -0.022343257442116737, -0.003357606241479516, -0.008992832154035568, 0.004482298623770475, 0.014343355782330036, 0.024037355557084084, 0.015783337876200676, 0.03548192232847214, -0.04016892611980438, 0.0005161702283658087, -0.01892682909965515, 0.027124376967549324, -0.005562285427004099, 0.002487028716132045, -0.016319802030920982, -0.01608451083302498, -0.02936434932053089, 0.014371590688824654, 0.007444615475833416, -0.0024187942035496235, -0.01485158409923315, 0.0012176323216408491, -0.019115062430500984, -0.00027073200908489525, 0.009844586253166199, 0.0041928901337087154, 0.025223223492503166, 0.004769354127347469, -0.02230561152100563, 0.003999951295554638, -0.02573145180940628, 0.007435203995555639, -0.02430088073015213, 0.004475239664316177, -0.00618816027417779, -0.007223441731184721, -0.006955209653824568, -0.0150680523365736, 0.006602272856980562, 0.05146290361881256, 0.023227954283356667, 0.019745642319321632, -0.04427240416407585, -0.001821154379285872, -0.02262560836970806, -0.00094175327103585, 0.012997489422559738, 0.0023976180236786604, 0.01120927557349205, -0.030399631708860397, -0.0025576159823685884, -0.0224185511469841, 0.0027787897270172834, -0.0171950850635767, -0.001622333307750523, 0.027783192694187164, 0.014381001703441143, 0.0063622756861150265, 0.008602248504757881, 0.0229832511395216, -0.02430088073015213, -0.022682078182697296, -0.0208562184125185, 0.04363241046667099, 0.02913847006857395, 0.013778656721115112, -0.02561851218342781, 0.01917153224349022, -0.00994811486452818, -0.04122303053736687, -0.004661120008677244, -0.0009458708809688687, -0.019162120297551155, 0.011256334371864796, -0.03294077515602112, -0.00955282524228096, 0.017373906448483467, 0.018164485692977905, -0.026578500866889954, 0.0020987980533391237, -0.02618321217596531, -0.0024187942035496235, -0.0038752472028136253, 0.01878565363585949, -0.005623461212962866, -0.008061078377068043, -0.0010835162829607725, 0.02684202790260315, -0.022907957434654236, 0.0005523462314158678, 0.006164630874991417, -0.03580191731452942, -0.0071999127976596355, -0.02748201973736286, -0.01060693059116602, -0.006879916414618492, 0.0027576135471463203, 0.006437568925321102, 0.02913847006857395, -0.043670058250427246, 0.0034517229069024324, -0.03907717391848564, 0.005392875522375107, -0.011962207965552807, -0.022663254290819168, 0.010296345688402653, -0.015284520573914051, -0.035613685846328735, -0.007166971918195486, 0.031510207802057266, 0.008752834983170033, -0.015849219635128975, 0.010183406062424183, -0.002245855052024126, 0.0065316855907440186, 0.02759495936334133, -0.010861044749617577, -0.017091557383537292, -0.02253149077296257, 0.006738741882145405, -0.024244410917162895, 0.04705825075507164, -0.005110526457428932, -0.002109386259689927, 0.0114257438108325, -0.014315120875835419, 0.015764513984322548, -0.017543315887451172, -0.0023129130713641644, 0.04649355262517929, -0.04924175515770912, 0.017100969329476357, 0.004124655853956938, -0.022776193916797638, -0.012912784703075886, 0.006399922538548708, 0.03632897138595581, -0.0003720543172676116, 0.020027991384267807, 0.01989622972905636, -0.020686807110905647, 0.00038352474803104997, -0.0036752496380358934, -0.01182103343307972, -0.0017070381436496973, 0.0025811451487243176, -0.006404628045856953, 0.04250301420688629, -0.004369358532130718, 0.02462087757885456, -0.005505815614014864, 0.01329866237938404, -0.04107244312763214, -0.01198103092610836, 0.020385634154081345, -0.0004488180857151747, -0.008404604159295559, -0.003929364029318094, -0.021458562463521957, 0.0034681931138038635, -0.011529271490871906, 0.02230561152100563, 0.0005902869743295014, -0.024357352405786514, 0.00035705449408851564, -0.01164221204817295, -0.00101410539355129, 0.01638568378984928, 0.02586321532726288, 0.027877308428287506, -0.0039811283349990845, 0.010569283738732338, 0.006089338101446629, 0.026107918471097946, -0.006842270027846098, 0.022926781326532364, 0.004917587619274855, 0.0006394039955921471, -0.012545729987323284, -0.0102116409689188, -0.013223368674516678, 0.004324653185904026, -0.030757274478673935, -0.007915197871625423, 0.034521933645009995, 0.032639604061841965, -0.006258747540414333, -0.009985760785639286, 0.012018677778542042, 0.004515239503234625, -0.02751966565847397, 0.06121337413787842, -0.015849219635128975, -0.014653939753770828, -0.04419711232185364, 0.01640450768172741, -0.006108161062002182, 0.02087504044175148, 0.018842123448848724, 0.01153868343681097, -0.025336163118481636, 0.005402287468314171, -0.014286885038018227, -0.03608426824212074, -0.040470097213983536, -0.02076210081577301, 0.02586321532726288, -0.017119793221354485, -0.022343257442116737, 0.029420819133520126, -0.021063273772597313, -0.013901007361710072, -0.00789637491106987, -0.015369225293397903, -0.020159754902124405, 0.013665716163814068, -0.04464887082576752], "id": 43}, {"title": "Menora Mivtachim Arena", "text": "Menora Mivtachim Arena (Hebrew: \u05d4\u05d9\u05db\u05dc \u05de\u05e0\u05d5\u05e8\u05d4 \u05de\u05d1\u05d8\u05d7\u05d9\u05dd\u200e) is a large multi-purpose sports arena in southern Tel Aviv, Israel. It is one of the major sporting facilities in the Greater Tel Aviv Area.The arena is home to the Maccabi Tel Aviv basketball club, a member of the Maccabi Tel Aviv sports club. It hosted the Israeli Super League final four, the State Cup final four and most of the Israeli national basketball team home games.", "vector": [0.05847686529159546, 0.007657866925001144, -0.021507851779460907, 0.013256796635687351, -0.0230539683252573, 0.04788367450237274, -0.020283205434679985, 0.0104936882853508, -0.00013119503273628652, 0.015859169885516167, -0.043444328010082245, -0.030294690281152725, -0.02092614397406578, 0.0645388662815094, 0.019288180395960808, -0.01665518991649151, 0.0025985464453697205, -0.033340997993946075, -0.01246077660471201, -0.04234214872121811, -0.003113280748948455, 0.002495216904208064, -0.007332569919526577, 0.013203218579292297, -0.014006893150508404, -0.00342900981195271, -0.03765787556767464, -0.0007362229516729712, -0.007347878068685532, 0.02962113358080387, -0.006345198955386877, 0.016349028795957565, 0.036494459956884384, -0.042495228350162506, -0.012996559962630272, 0.05027173459529877, -0.02141600288450718, 0.019089175388216972, -0.05272102728486061, 0.055200934410095215, 0.0023574442602694035, -0.0472407341003418, -0.01349407248198986, -0.01705319993197918, 0.012116344645619392, -0.004293916281312704, -0.01070800144225359, 0.001680061686784029, -0.00852659996598959, -0.05057789385318756, 0.003809798276051879, -0.03891313821077347, -0.00019924422667827457, 0.004986607003957033, 0.022594725713133812, 0.0029774215072393417, 0.008771529421210289, 0.08401074260473251, 0.024615392088890076, 0.03346346318721771, -0.018216615542769432, 0.03171833977103233, -0.0031228482257574797, 0.01246077660471201, 0.018446234986186028, 0.04623040184378624, 0.00037935335421934724, 0.008748567663133144, 0.006046691443771124, 0.007860698737204075, 0.0011098358081653714, 0.015093766152858734, -0.07549944519996643, -0.04782244190573692, -0.015185615047812462, -0.027217766270041466, 0.04313816875219345, 0.05281287431716919, -0.034198250621557236, 0.016027558594942093, 0.02309989184141159, -0.007271337788552046, -0.01665518991649151, 0.025610417127609253, 0.024952169507741928, -0.0071565271355211735, -0.009123614989221096, -0.061660945415496826, -0.03882129117846489, 0.021538468077778816, 0.013784925453364849, -0.044332198798656464, -0.08835823833942413, 0.08584771305322647, 0.011121319606900215, 0.025855345651507378, -0.024079609662294388, -0.00913126952946186, 0.001233257120475173, 0.06313052028417587, -0.03713740035891533, 0.015522392466664314, -0.015859169885516167, 0.018048224970698357, 0.05486415699124336, 0.02577880583703518, -0.0236203670501709, 0.01751244254410267, -0.009284350089728832, -0.024753164499998093, 0.017145048826932907, -0.02877919003367424, 0.0505472794175148, 0.008687335066497326, -0.007749715354293585, 0.00565633550286293, -0.048618461936712265, -0.025120558217167854, -0.056425582617521286, 0.03487180545926094, -0.04828168451786041, -0.04812860116362572, -0.05011865124106407, -0.011182552203536034, -0.014450826682150364, -0.012652128003537655, 0.008626102469861507, 0.01482587493956089, 0.06637583673000336, 0.029054734855890274, 0.024722548201680183, -0.011167244054377079, 0.018078841269016266, -0.06466133147478104, 0.011021817103028297, 0.01181783713400364, -0.016869504004716873, -0.020359745249152184, -0.0031037130393087864, -0.014129357412457466, 0.02143131196498871, -0.0023765794467180967, -0.046934571117162704, 0.02743207849562168, -0.014940685592591763, 0.010975892655551434, -0.046016085892915726, -0.003612706670537591, -0.03986223787069321, 0.015024879947304726, 0.03652507811784744, 0.0032127832528203726, 0.020665908232331276, 0.024293921887874603, 0.010363569483160973, 0.009115961380302906, -0.0274167712777853, 0.021890554577112198, -0.015407581813633442, 0.04047456383705139, -0.016854194924235344, -0.03977039083838463, 0.0011012250324711204, -0.010095678269863129, -0.0027363193221390247, -0.02928435616195202, -0.040290866047143936, 0.030355921015143394, 0.004179105628281832, 0.028075017035007477, -0.018874861299991608, 0.031259097158908844, -0.030218148604035378, -0.034228865057229996, -0.0452812984585762, 0.001076349290087819, -0.0026789139956235886, -0.016318412497639656, 0.0003556736628524959, 0.013509380631148815, 0.003231918206438422, -0.06919252127408981, -0.018476851284503937, 0.025151174515485764, -0.023222357034683228, -0.009758900851011276, 0.002456946764141321, -0.10850366950035095, -0.010348262265324593, -0.01266743615269661, 0.03444317728281021, 0.010156910866498947, 0.08094912767410278, -0.005269806366413832, 0.03848451375961304, -0.01875239796936512, 0.05008803680539131, 0.01371603924781084, 0.037688493728637695, -0.062181420624256134, 0.015996942296624184, 0.046505946666002274, -0.019992351531982422, 0.025885961949825287, 0.009337928146123886, 0.03278990462422371, -0.04053579643368721, -0.012613857164978981, -0.01350172609090805, 0.01700727641582489, 0.021967094391584396, -0.004071949049830437, 0.000710868916939944, 0.004642175044864416, 0.027187149971723557, 0.03364715725183487, -0.031182557344436646, -0.026850370690226555, -0.03526981547474861, 0.016058174893260002, -0.01618064008653164, 0.011366249062120914, -0.029054734855890274, 0.0035495609045028687, -0.030294690281152725, -0.008549562655389309, 0.005082282237708569, 0.03364715725183487, -0.0214006956666708, 0.020160740241408348, -0.061722178012132645, -0.010363569483160973, -0.021951785311102867, -0.007057024631649256, 0.03879067301750183, -0.004117873497307301, 0.03456564247608185, -0.024646008387207985, 0.0030309997964650393, 0.020696524530649185, -0.03885190561413765, 0.04782244190573692, -0.056027572602033615, -0.019869888201355934, 0.010562574490904808, -0.014741680584847927, -0.00731726223602891, 0.0373823307454586, -0.027278997004032135, -0.02573288232088089, -0.0037523929495364428, -0.027814781293272972, 0.00919250212609768, 0.03845389559864998, 0.00955989584326744, 0.03909683600068092, 0.030294690281152725, -0.022334488108754158, -0.017956377938389778, 0.061262935400009155, -0.00699961930513382, 0.0024320711381733418, -0.015874478965997696, 0.022839654237031937, -0.01608879119157791, 0.051251448690891266, -0.05896672233939171, 0.01792576164007187, -0.02833525463938713, -0.011764259077608585, -0.020329128950834274, -0.03233066573739052, 0.02790662832558155, 0.006004594266414642, 0.03214696794748306, 0.031595874577760696, -0.039954088628292084, 0.05676236003637314, 0.013517034240067005, -0.06539611518383026, 0.046077318489551544, -0.01200153399258852, 0.06239573284983635, -0.03713740035891533, -0.020145433023571968, 0.056884825229644775, 0.046475328505039215, 0.001914466731250286, -0.0056946054100990295, -0.07905092090368271, -0.01396096870303154, -0.0028645244892686605, 0.022120175883173943, -0.008105628192424774, 0.032085735350847244, -0.010317645967006683, 0.0017575589008629322, -0.00676617119461298, -0.010608498938381672, 0.006926905829459429, -0.037749722599983215, 0.006528895813971758, -0.02394183725118637, -0.05244548246264458, 0.02406430058181286, -0.0025507088284939528, -0.007696136832237244, 0.08578647673130035, -0.021140458062291145, 0.016058174893260002, 0.004554153885692358, -0.04494452103972435, -0.030355921015143394, -0.015767322853207588, -0.039127450436353683, 0.008985842578113079, -0.028473028913140297, -0.03802527114748955, -0.0009883278980851173, 0.0055874488316476345, 0.05021050199866295, 0.031151941046118736, 0.018094150349497795, -0.004668964073061943, 0.0017537318635731936, -0.04111750051379204, -0.0010983546962961555, -0.049077704548835754, 0.03321853280067444, 0.009911981411278248, -0.025105250999331474, 0.00916188582777977, -0.02570226602256298, 0.02011481672525406, 0.009651743806898594, -0.0232070479542017, 0.014565637335181236, -0.025181790813803673, -0.06839650124311447, 0.038178350776433945, -7.138289220165461e-06, -0.024998094886541367, 0.00392269529402256, 0.02262534201145172, -0.03499427065253258, -0.036402612924575806, -0.03967854380607605, 0.008863378316164017, -0.0038346739020198584, 0.0003949006204493344, 0.0007218716200441122, -0.0046230400912463665, -0.006069653667509556, 0.051220834255218506, 0.04010716825723648, -0.03833143040537834, -0.030738623812794685, -0.040780723094940186, -0.00229238485917449, -0.005618065129965544, 0.014573291875422001, -0.02045159414410591, -0.013685422949492931, 0.021461928263306618, -0.007810947485268116, -0.006096442695707083, -0.022058943286538124, 0.031106017529964447, -0.019992351531982422, -0.019395336508750916, 0.010830466635525227, -0.004527364391833544, 0.005051666405051947, 0.10317645967006683, 0.037780340760946274, -0.05924226716160774, -0.013111370615661144, -0.013333337381482124, 0.031243789941072464, -0.0018302722601220012, -0.02747800201177597, 0.03530042991042137, 0.0007917147595435381, 0.01616533286869526, 0.020711831748485565, -0.007275164593011141, 0.06163032725453377, -0.012185231782495975, -0.033402230590581894, 0.009337928146123886, 0.00097732525318861, -0.0231305081397295, 0.004221202805638313, 0.01046307198703289, 0.012590895406901836, 0.0037504795473068953, -0.00775354215875268, -0.003277842653915286, 0.007619596552103758, -0.0434749461710453, 0.003893992630764842, -0.02141600288450718, 0.011121319606900215, -0.011044779792428017, 0.016364337876439095, -0.02175278030335903, -0.015981635078787804, -0.027324922382831573, -0.019839271903038025, -0.06417147070169449, -0.006008421070873737, -0.03263682499527931, -0.03698432072997093, -0.01353234238922596, -0.02917720004916191, -0.0007496175239793956, 0.043015703558921814, 0.0006946041248738766, -0.01792576164007187, -0.006636052392423153, 0.007990817539393902, 0.007730580400675535, -0.003926522564142942, 0.007677001878619194, 0.00033366828574799, 0.037535410374403, -0.05140453204512596, 0.013647153042256832, 0.008419443853199482, 0.024936862289905548, 0.04828168451786041, -0.05017988383769989, -0.015782630071043968, -0.043872956186532974, 0.04812860116362572, -0.012047458440065384, -0.0011930734617635608, 0.0287332646548748, 0.001491580973379314, 0.02054344303905964, 0.03533104807138443, -0.00031309807673096657, -0.011419827118515968, 0.03487180545926094, -0.01198622677475214, -0.049536947160959244, 0.013739001005887985, -0.003295064205303788, 0.02130884677171707, -0.004852661397308111, 0.0235438272356987, -0.022502876818180084, -0.035912755876779556, 0.014297746121883392, -0.011932647787034512, 0.016471493989229202, 0.01783391274511814, 0.014986610040068626, 0.0083122868090868, 0.03386147320270538, -0.03977039083838463, -0.005480292718857527, -0.003888252191245556, -0.01616533286869526, -0.011335632763803005, 0.008687335066497326, -0.007458861917257309, 0.007776504382491112, -0.002303865971043706, -0.022793730720877647, 0.020803680643439293, 0.016379645094275475, -0.02490624599158764, 0.022854963317513466, -0.01927287131547928, -0.022380411624908447, -0.010478380136191845, -0.06150786206126213, 0.02230387181043625, 0.009322620928287506, 0.004760812968015671, -0.021951785311102867, -0.002747800201177597, 0.012315349653363228, 0.05716037005186081, 0.023268280550837517, -0.023804062977433205, -0.03698432072997093, -0.04794490709900856, 0.00985074881464243, 0.07053963094949722, 0.0232070479542017, -0.04313816875219345, 0.020206665620207787, -0.027171840891242027, -0.030340613797307014, -0.016027558594942093, -0.0452812984585762, -0.0191810242831707, 0.013983930461108685, -0.013394569978117943, 0.009536933153867722, 0.032055117189884186, 0.018048224970698357, -0.021982401609420776, -0.012736322358250618, -0.036004602909088135, 0.049904339015483856, -0.030723316594958305, 0.021125148981809616, 0.027156533673405647, 0.035514745861291885, -0.005078455433249474, -0.017986994236707687, 0.015905095264315605, 0.012016842141747475, -0.00046378697152249515, -0.014068124815821648, 0.026697291061282158, -0.010646769776940346, 0.01751244254410267, 0.006371987983584404, -0.02574818953871727, 0.0076349047012627125, 0.05030234903097153, -0.0401684008538723, -0.03707616776227951, 0.008725604973733425, 0.039525460451841354, -0.07268276065587997, 0.03612706810235977, 0.021538468077778816, -0.030692700296640396, -0.013830849900841713, 0.008021433837711811, 0.015951018780469894, -0.0083122868090868, -0.03272867575287819, 0.013853811658918858, -0.009682360105216503, -0.019854579120874405, -0.03147341310977936, 0.0021546122152358294, 0.006528895813971758, 0.015162653289735317, 0.006276312749832869, 0.01621125638484955, -0.009246080182492733, 0.038208965212106705, 0.027340229600667953, 0.011381557211279869, 0.011412173509597778, -0.017160357907414436, 0.0054726386442780495, -0.002556449268013239, 0.00490241264924407, 0.001691542798653245, -0.034749340265989304, -0.01569078117609024, -0.008029087446630001, 0.04665902629494667, -0.030340613797307014, 0.024584775790572166, 0.05881364271044731, 0.012843478471040726, 0.002508611651137471, -0.002990816021338105, 0.04727134853601456, -0.00740911066532135, 0.006203599274158478, -0.027263689786195755, 0.017527751624584198, 0.01066973153501749, 0.032912369817495346, -0.0009065253543667495, -0.042127836495637894, 0.004959817975759506, -0.004883277229964733, -0.038117118179798126, 0.009253733791410923, 0.011833145283162594, -0.02228856459259987, 0.042464613914489746, 0.042954470962285995, 0.03799465298652649, -0.015147345140576363, 0.02704937569797039, -0.041239965707063675, -0.03401455283164978, -0.01697666011750698, -0.017803296446800232, -0.016762347891926765, 0.023329513147473335, -0.005373136140406132, -0.028243407607078552, 0.0073708402924239635, -0.001554726855829358, -0.004772293847054243, 0.020788371562957764, -0.01575201377272606, 0.003930349368602037, -0.001601607771590352, -0.023237664252519608, -0.01610410027205944, -0.013585920445621014, 0.00829697959125042, -0.027202457189559937, 0.05541524663567543, -0.03845389559864998, -0.009506317786872387, 0.0022598551586270332, 0.01622656360268593, 0.00980482529848814, 0.0076310778968036175, -0.011917339637875557, 0.012284734286367893, 0.005319557618349791, -0.003128588665276766, 0.010149256326258183, -0.06429393589496613, 0.00870264321565628, 0.011504021473228931, 0.008672026917338371, -0.03432071581482887, 0.020359745249152184, 0.007030235603451729, 0.037351712584495544, -0.045189451426267624, -0.0017556453822180629, 0.01875239796936512, 0.020574059337377548, -0.020665908232331276, -0.015905095264315605, -0.011703026480972767, 0.01353234238922596, -0.021461928263306618, 0.024309230968356133, -0.042464613914489746, 0.04757751151919365, -0.005629546474665403, 0.01878301426768303, 0.009399160742759705, 0.0023478767834603786, -0.01569078117609024, 0.012897057458758354, 0.008717951364815235, -0.028228098526597023, 0.01572139747440815, -0.015874478965997696, -0.005438195075839758, 0.007217759732156992, -0.03187142312526703, 0.001343284035101533, -0.0007118256762623787, 0.041178733110427856, 0.003277842653915286, 0.00610409677028656, 0.03921930119395256, 0.011396865360438824, -0.019563725218176842, -0.0279831700026989, 0.022594725713133812, -0.044240351766347885, -0.005464984569698572, 0.012698052451014519, -0.016915427520871162, -0.02962113358080387, 0.026865679770708084, 0.006946041248738766, -0.028932269662618637, 0.011764259077608585, 0.013631844893097878, -0.014504405669867992, 0.0012724840780720115, 0.029391512274742126, -0.004048986826092005, -0.03181019052863121, 0.06380407512187958, -0.05024111643433571, -0.028580185025930405, 0.035086117684841156, -0.013807888142764568, -0.03787218779325485, 0.005763492081314325, -0.02698814496397972, -0.0232070479542017, 0.007588980253785849, 0.03181019052863121, -0.02089552953839302, -0.016440877690911293, 0.03141218051314354, -0.045158833265304565, -0.023804062977433205, 0.01550708431750536, -0.018461544066667557, 0.005568313878029585, 0.019334103912115097, 0.00049033691175282, 0.018936093896627426, -0.07500959187746048, -0.0031955617014318705, 0.02833525463938713, 0.006391123402863741, 0.05670112743973732, -0.04319940134882927, 0.024783780798316002, 0.00808266643434763, -0.029513977468013763, 0.005637200083583593, 0.010945277288556099, -0.006184464320540428, -0.045189451426267624, 0.035086117684841156, 0.010531959123909473, -0.037780340760946274, -0.03762726113200188, -0.013777271844446659, 0.05094528943300247, -0.018063534051179886, 0.023819372057914734, 0.03523920103907585, 0.009659398347139359, -0.004091084469109774, -0.040352098643779755, -0.036831241101026535, 0.008365865796804428, 0.023819372057914734, 0.01613471657037735, -0.0063031017780303955, -0.0021278229542076588, -0.03548412770032883, 0.01178722083568573, 0.012476084753870964, 0.007830082438886166, -0.017650214955210686, 0.022594725713133812, -0.03958669304847717, 0.052996572107076645, 0.011924994178116322, -0.005047839134931564, -0.003417528700083494, 0.029850754886865616, 0.00011899640230694786, -0.037719108164310455, 0.02094145305454731, 0.014879452995955944, 0.01375430915504694, -0.01663988269865513, -0.014519713819026947, -0.0365556925535202, -0.012499047443270683, -0.013394569978117943, 0.017956377938389778, -0.016915427520871162, 0.022334488108754158, 0.024324538186192513, 0.01706850901246071, 0.05149637907743454, -0.005591276101768017, -0.008610794320702553, 0.001024684519506991, 0.024646008387207985, 0.0010973979951813817, -0.0309529360383749, -0.025365488603711128, -0.054251834750175476, 0.0358821377158165, -0.03621891513466835, -0.007122084032744169, -0.01835438795387745, 0.010983547195792198, 0.02000766061246395, -0.027141224592924118, 0.013218526728451252, 0.0029104487039148808, 0.013723693788051605, -0.004236510954797268, 0.013210873119533062, -0.023758139461278915, -0.003915041219443083, -0.0314427949488163, 0.01525450125336647, -0.0169613528996706, 0.03827019780874252, -0.05048604682087898, -0.020574059337377548, 0.056058187037706375, -0.015055496245622635, 0.0014313054271042347, 0.03970915824174881, 0.03352469578385353, 0.03450440987944603, 0.0030156916473060846, -0.04218906909227371, -0.011151935905218124, -0.02789132110774517, 0.04880215600132942, -0.0104936882853508, 0.018109457567334175, 0.010907006449997425, -0.026942219585180283, -0.006517414934933186, 0.014940685592591763, 0.03520858287811279, -0.015338695608079433, 0.03138156235218048, 0.013830849900841713, -0.038606975227594376, -0.013126677833497524, 0.02135477028787136, -0.023865295574069023, -0.010126294568181038, 0.002146958140656352, -0.0027573679108172655, 0.01421355176717043, 0.02046690322458744, 0.01781860552728176, -0.04013778641819954, 0.028212791308760643, -0.018461544066667557, 0.0146115617826581, 0.014466134831309319, -0.005017223302274942, 0.013915044255554676, 0.00980482529848814, -0.015231539495289326, 0.009651743806898594, -0.001801569596864283, -0.006582474336028099, -0.003580177202820778, -0.028595492243766785, -0.05991582199931145, -0.03876005858182907, 0.05795639008283615, -0.012491392903029919, 0.0007233067881315947, -0.014588600024580956, 0.043811723589897156, 0.01913509890437126, 0.04944509640336037, 0.022839654237031937, -0.028197482228279114, 0.010501342825591564, 0.006750863045454025, 0.03061615861952305, -0.007298126816749573, 0.05244548246264458, -0.03496365249156952, 0.022441644221544266, -0.03404516726732254, 0.03168772533535957, 0.029988527297973633, 0.014381940476596355, 0.03133564069867134, 0.0033065450843423605, -0.024799088016152382, 0.010968239046633244, 0.002303865971043706, 0.058293167501688004, -0.014091087505221367, -0.008541908115148544, -0.0016819752054288983, -0.02352851815521717, -0.035514745861291885, -0.00144470005761832, -0.008649065159261227, 0.035943370312452316, -0.025840038433670998, -0.004883277229964733, -0.011419827118515968, -0.0008926523732952774, 0.008932264521718025, 0.008120936341583729, 0.004910066723823547, -0.0257634986191988, 0.0006458096322603524, 0.0209873765707016, 0.0014954080106690526, 0.025564493611454964, -0.005893610417842865, 0.026712598279118538, 0.00044082486419938505, -0.030417153611779213, 0.032575592398643494, -0.028243407607078552, -0.010577882640063763, -0.046536561101675034, -0.0182778462767601, -0.013172602280974388, -0.0073976293206214905, 0.013585920445621014, -0.005258325487375259, 0.006371987983584404, 0.007141218986362219, 0.006712592672556639, 0.029850754886865616, -0.05229239910840988, 0.031565260142087936, 0.008878686465322971, -0.01174129731953144, 0.01092231459915638, -0.0061691561713814735, -0.04313816875219345, 0.01836969517171383, 0.014573291875422001, 0.009919635951519012, -0.011902031488716602, 0.004221202805638313, 0.00699961930513382, -0.000147220678627491, 0.010348262265324593, 0.0525067113339901, 0.037780340760946274, -0.008809800259768963, 0.00621508015319705, -0.015361658297479153, 0.015859169885516167, 0.05008803680539131, -0.001447570277377963, 0.006712592672556639, -0.015086112543940544, 0.0015068891225382686, -0.018936093896627426, 0.015216231346130371, -0.013356299139559269, -0.01835438795387745, -0.022885579615831375, 0.03964792564511299, 0.0020436285994946957, 0.006854192819446325, -0.004022197797894478, 0.0044890944845974445, 0.010325299575924873, 0.0020474556367844343, -0.024615392088890076, 0.036433231085538864, -0.010003830306231976, 0.025870654731988907, -0.014971301890909672, -0.06594720482826233, 0.054282449185848236, -0.031197866424918175, 0.07194797694683075, -0.0013672028435394168, 0.030631467700004578, -0.0045197103172540665, -0.015223884955048561, -0.0619058720767498, -0.007619596552103758, 0.016838887706398964, 0.01569078117609024, -0.019869888201355934, 0.003980100620537996, 0.017956377938389778, -0.00024636441958136857, 0.013815541751682758, -0.005763492081314325, -0.013830849900841713, 0.03141218051314354, -0.007018754258751869, 0.0014026027638465166, 0.02129353955388069, -0.031259097158908844, -0.010287029668688774, -0.0029295836575329304, 0.029590517282485962, 0.04185228794813156, 0.0005668773083016276, -0.022778421640396118, -0.009889019653201103, -0.0004668964247684926, 0.007585153449326754, 0.043015703558921814, 0.02143131196498871, 0.0011758519103750587, -0.0226406492292881, 0.016440877690911293, -0.007730580400675535, 0.014626869931817055, 0.0505472794175148, 0.0231305081397295, 0.01200153399258852, 0.019104482606053352, 0.011381557211279869, -0.03481057286262512, -0.0006209340062923729, 0.007906623184680939, -0.024324538186192513, -0.015024879947304726, 0.02262534201145172, -0.03569843992590904, -0.03563721105456352, 0.039035603404045105, 0.00805970374494791, -0.023451978340744972, 0.04068887606263161, -0.011657102964818478, 0.03450440987944603, -0.05008803680539131, -0.04794490709900856, -0.03986223787069321, -0.015300425700843334, -0.00655185803771019, 0.043321866542100906, 0.02045159414410591, 0.017803296446800232, -0.03266744315624237, 0.05627249926328659, -0.003090318525210023, -0.04589362442493439, -0.0083122868090868, 0.04809798672795296, -0.008342903107404709, -0.004263299982994795, 0.025166483595967293, 0.027324922382831573, 0.046536561101675034, -0.007462688721716404, 0.014879452995955944, 0.014902415685355663, 0.007164181210100651, 0.016410261392593384, -0.037351712584495544, 0.007271337788552046, -0.000757271540351212, 0.0073976293206214905, 0.017236897721886635, 0.02790662832558155, 0.013034829869866371, -0.027753548696637154, 0.010945277288556099, -0.020359745249152184, -0.010003830306231976, 0.005200920160859823, 0.03658631071448326, -0.02187524549663067, -0.0182778462767601, 0.0401684008538723, -0.03398393839597702, 0.0070264083333313465, -0.015376965515315533, -0.012223501689732075, -0.02484501339495182, -0.015001918189227581, -0.007477996870875359, -0.014473789371550083, -0.013379261828958988, 0.004435515962541103, -0.026926912367343903, 0.0015327214496210217, -0.013555304147303104, -0.012613857164978981, 0.028151558712124825, 0.017757372930645943, -5.7554792874725536e-05, -0.05060851201415062, -0.0019862232729792595, 0.0007587067084386945, 0.03940299525856972, 0.00446230499073863, -0.013761963695287704, -0.018415620550513268, 0.021278230473399162, 0.015438198111951351, -0.03575967252254486, -0.0292231235653162, 0.022839654237031937, -0.026835063472390175, -0.001421737833879888, -0.00020546313317026943, -0.021216997876763344, -0.02406430058181286, -0.0021220825146883726, 0.00010518325143493712, 0.016471493989229202, 0.00267508695833385, -0.02357444167137146, -0.009001150727272034, 0.015797937288880348, 0.026452360674738884, -0.0017690398963168263, 0.012927672825753689, 0.014060471206903458, 0.03014160878956318, 0.03548412770032883, -0.02046690322458744, -0.03612706810235977, 0.0033295073080807924, 0.0029295836575329304, -0.02701876126229763, -8.359646744793281e-05, 0.014665139839053154, 0.006058172322809696, 0.021553775295615196, -0.01700727641582489, 0.01153463777154684, -0.0026597788091748953, -0.005595102906227112, -0.02005358412861824, 0.006050518248230219, -0.012476084753870964, -0.01833907887339592, -0.021630316972732544, -0.023773446679115295, 0.005709913559257984, 0.0452812984585762, 0.0021239961497485638, -0.007309608161449432, 0.02662075124680996, -0.02920781634747982, -0.004427861887961626, 0.022365104407072067, 0.003930349368602037, 0.04745504632592201, 0.024523543193936348, -0.00016240915283560753, 0.025105250999331474, 0.007011100649833679, 0.027631083503365517, -0.0357290580868721, -0.018201306462287903, 0.006245696451514959, -0.01463452447205782, 0.0028032921254634857, -0.022058943286538124, 0.020619982853531837, -0.03321853280067444, -0.01044776476919651, 0.002692308509722352, 0.005836205556988716, 0.003528512315824628, -0.007076159585267305, 0.003249139990657568, 0.010631461627781391, 0.0028071191627532244, 0.007003446575254202, -0.0033562963362783194, -0.03006506897509098, -0.006230388302356005, -0.007382321171462536, -0.011856107972562313, -0.010088024660944939, -0.04313816875219345, -0.02577880583703518, -5.271122063277289e-05, -0.0018465371103957295, 0.027722932398319244, 0.03364715725183487, -0.008549562655389309, 0.04629163444042206, -0.017665524035692215, -0.0010572142200544477, -0.016349028795957565, 0.01836969517171383, 0.013210873119533062, -0.00522770918905735, 0.01881363056600094, 0.00783773697912693, 0.005568313878029585, -0.01882893778383732, -1.9987210180261172e-05, 0.0248603206127882, -0.011764259077608585, -0.014022201299667358, -0.02704937569797039, -0.01742059364914894, -0.02187524549663067, -0.025595109909772873, -0.01529277116060257, 0.04754689335823059, 0.006406431086361408, -0.010807503946125507, -0.01650211028754711, -0.020420977845788002, -0.005308076739311218, -0.0104936882853508, -0.003101799637079239, -0.0309529360383749, 0.0007620553369633853, -0.04567930847406387, -0.005438195075839758, 0.035055503249168396, 0.027615776285529137, -0.04243399575352669, 0.003293150570243597, -0.023222357034683228, 0.024186765775084496, -0.03456564247608185, -0.0022579417563974857, -0.0444546639919281, 0.00753922900184989, 0.011481059715151787, -0.03872944042086601, 0.029942603781819344, -0.0024301577359437943, -0.023849988356232643, -0.0023670117370784283, -0.029468053951859474, -0.022150790318846703, 0.02744738757610321, -0.007148873060941696, 0.013777271844446659, 0.017328746616840363, -0.0018675856990739703, -0.0013997325440868735, -0.026804447174072266, -0.034290097653865814, -0.02101799286901951, 0.0373823307454586, -0.00019553679157979786, -0.025197099894285202, -0.04062764346599579, -0.00895522627979517, 0.0025641033425927162, -0.029927294701337814, 0.004944509826600552, -0.015200923196971416, -0.009246080182492733, 0.012942980974912643, 0.0021316499914973974, -0.023819372057914734, -0.016456184908747673, 0.008970534428954124, 0.0006247609853744507, -0.03217758238315582, -0.03168772533535957, 0.027600467205047607, -0.0102487588301301, 0.009889019653201103, 0.003769614500924945, -0.001711634686216712, 0.005407579243183136, -0.013509380631148815, 0.03168772533535957, -0.026804447174072266, -0.012506701052188873, 0.011159590445458889, 0.009873711504042149, -0.008756221272051334, 0.0007558364304713905, -0.014933031983673573, -0.016792964190244675, -0.004527364391833544, 0.033830855041742325, -0.004064294975250959, -0.005097590386867523, 0.018048224970698357, -0.02219671569764614, -0.03450440987944603, 0.0025220061652362347, 0.009184847585856915, 0.012093382887542248, -0.001508802641183138, -0.015935711562633514, -0.017588984221220016, -5.3929588830214925e-06, 0.03101416863501072, 0.003574436530470848, -0.05244548246264458, 0.028672033920884132, -0.013670114800333977, -0.012177577242255211, 0.0010409493697807193, -0.007581326644867659, 0.040290866047143936, 0.036371998488903046, -0.005572141148149967, 0.0035648690536618233, 0.007221586536616087, 0.012904711067676544, 0.009674706496298313, -0.013685422949492931, 0.03456564247608185, 0.02571757324039936, 0.019502492621541023, -0.03104478493332863, -0.033739008009433746, -0.007198624312877655, 0.0006051475065760314, -0.007960201241075993, 0.01178722083568573, -0.02141600288450718, -0.03958669304847717, -0.003199388738721609, 0.03147341310977936, -0.011220822110772133, 0.031182557344436646, -0.02444700337946415, -0.022074250504374504, -0.025564493611454964, 0.010126294568181038, 0.008595487102866173, -0.007190970238298178, -0.006593955215066671, -0.015514738857746124, 0.011305016465485096, -0.01829315535724163, 0.011879069730639458, 0.009743592701852322, 0.01504018809646368, -0.0037275173235684633, -0.0012198626063764095, 0.007179489359259605, -0.036861855536699295, 0.03539228066802025, 0.022441644221544266, -0.02094145305454731, -0.014121703803539276, 0.006111750844866037, 0.033769622445106506, -0.018415620550513268, 0.0037351713981479406, 0.005771146155893803, 0.022533493116497993, -0.03680062294006348, -0.009950251318514347, 0.03842328116297722, -0.03061615861952305, 0.034228865057229996, 0.011580562219023705, -0.005204746965318918, -0.02182932198047638, -0.0013298894045874476, -0.03269805759191513, -0.008388827554881573, 0.007830082438886166, 0.005510908551514149, 0.0019479531329125166, -0.011389210820198059, 0.05140453204512596, -0.003861463163048029, -0.002916189143434167, -0.04368925839662552, 0.009529279544949532, 0.021660933271050453, 0.009314966388046741, 0.02443169429898262, -0.015828553587198257, 0.015323387458920479, 0.014565637335181236, -0.02611558325588703, 0.0034921555779874325, -0.0001872847933555022, -0.012146960943937302, -0.010577882640063763, -0.0084806764498353, -0.005897437687963247, 0.0037141228094697, -0.009659398347139359, 0.010225797072052956, -0.030187532305717468, 0.007898968644440174, -0.024967478588223457, 0.009881365112960339, -0.015996942296624184, 0.018645241856575012, -0.02662075124680996, 0.0196708831936121, 0.00043819379061460495, 0.018216615542769432, 0.006130885798484087, -0.014075779356062412, 0.04087257385253906, -0.010547267273068428, -0.016379645094275475, 0.00600076699629426, -0.006563338916748762, -0.017129741609096527, -0.03484118729829788, 0.020267898216843605, -0.005166477058082819, 0.0013394569978117943, -0.010577882640063763, 0.0032912371680140495, -0.005939534865319729, 0.0040375059470534325, 0.006938387174159288, 0.015277463011443615, 0.004910066723823547, 0.009667051956057549, 0.001143322209827602, -0.017359362915158272, 0.013509380631148815, 0.03444317728281021, 0.006861846894025803, -0.034198250621557236, -0.010409493930637836, -0.011542292311787605, -0.014787605032324791, 0.04809798672795296, -0.013440493494272232, -0.025533877313137054, -0.03306545317173004, 0.003585917642340064, 0.01651741750538349, -0.0003078359004575759, 0.01882893778383732, 0.01546116080135107, 0.008641410619020462, 0.029988527297973633, -0.01181783713400364, -0.04546499624848366, 0.005859167315065861, 0.01911979168653488, 0.00895522627979517, 0.032024502754211426, -0.025059325620532036, 0.031259097158908844, -0.004458478186279535, 0.02089552953839302, 0.014665139839053154, 0.012537317350506783, 0.00349980965256691, -0.033769622445106506, 0.0011414086911827326, -0.005774972960352898, 0.01442786492407322, 0.007814774289727211, -0.008427097462117672, 0.0029793349094688892, -0.031595874577760696, -0.006593955215066671, 0.012774592265486717, 0.006900116801261902, 0.025044018402695656, 0.01328741293400526, -0.03520858287811279, -0.007148873060941696, -0.025977810844779015, -0.04895523935556412, -0.033432845026254654, 0.033830855041742325, 0.024186765775084496, -0.021676240488886833, 0.02703406848013401, -0.04375049099326134, 0.017634907737374306, -0.006035210564732552, 0.008373519405722618, -0.0035782635677605867, -0.018170690163969994, -0.025962503626942635, -0.04408726841211319, -0.025442028418183327, 0.015009571798145771, -0.004297743551433086, -0.03830081596970558, -0.00468809949234128, 0.0169613528996706, -0.0006836014217697084, -0.01663988269865513, -0.018568700179457664, 0.0003516074502840638, -0.014955993741750717, -0.0053693088702857494, 0.010072716511785984, -0.0012418680125847459, 0.037259865552186966, 0.010968239046633244, 0.0011873329058289528, 0.028626108542084694, -0.00047431126586161554, -0.005985459312796593, -0.0016628401353955269, -0.021691549569368362, 0.01657865010201931, -0.017986994236707687, -0.002654038369655609, 0.013869119808077812, 0.019380029290914536, 0.01738997921347618, -0.020267898216843605, -0.021722164005041122, 0.014542675577104092, 0.032055117189884186, -0.03940299525856972, -0.008251055143773556, 0.00047765992349013686, 0.02440107800066471, -0.005813243333250284, -0.04846537858247757, 0.03346346318721771, -0.02666667476296425, -0.004048986826092005, -0.007646385580301285, 0.020650599151849747, -0.013761963695287704, -0.01414466556161642, 0.006245696451514959, 0.021538468077778816, 0.01700727641582489, -0.009483355097472668, -0.01174895092844963, 0.011174897663295269, -0.012782246805727482, 0.04396480321884155, 0.04026024788618088, 0.005817070137709379, -0.01693073660135269, 0.026880986988544464, 0.010838120244443417, -0.04965940862894058, 0.026819756254553795, -0.007386148441582918, 0.012812862172722816, 0.012070421129465103, -0.0030558754224330187, -0.006490625906735659, 0.010738617740571499, -0.01575201377272606, 0.03716801851987839, 0.035055503249168396, -0.02835056371986866, 0.003777268575504422, -0.022074250504374504, 0.018078841269016266, -0.001343284035101533, -0.01659395918250084, -0.01399158500134945, 0.01697666011750698, 0.010011483915150166, 0.014971301890909672, -0.0059586698189377785, -0.015568316914141178, 0.007688482757657766, 0.030386537313461304, -0.023314205929636955, -0.01708381623029709, 0.015522392466664314, 0.015614241361618042, -0.010593190789222717, -0.03355531021952629, -0.014504405669867992, -0.0013758136192336679, 0.03181019052863121, -0.00114906276576221], "id": 44}, {"title": "The Monkey's Uncle", "text": "The Monkey's Uncle is a 1965 Walt Disney production starring Tommy Kirk as genius college student Merlin Jones and Annette Funicello as his girlfriend, Jennifer. The title plays on the idiom \"monkey's uncle\" and refers to a chimpanzee named Stanley, Merlin's legal \"nephew\" (a legal arrangement resulting from an experiment to raise Stanley as a human); Stanley otherwise has little relevance to the plot. Jones invents a man-powered airplane and a sleep-learning system.", "vector": [-0.006288918666541576, -0.010909094475209713, -0.027995027601718903, 0.0008603157475590706, -0.02231632173061371, 0.009315071627497673, -0.04423413798213005, -0.01894562691450119, -0.006317976396530867, 0.023312585428357124, 0.029389798641204834, -0.01228726003319025, -0.08468246459960938, -0.007260276470333338, -0.011033627204596996, 0.012445001862943172, -0.044134508818387985, 0.03420507535338402, -0.04516398161649704, 0.027181411162018776, 0.007546702399849892, 0.008024078793823719, -0.003127854783087969, -0.010103780776262283, 0.0308343805372715, 0.02055625431239605, -0.023777509108185768, 0.0160896684974432, -0.0028310511261224747, -0.01891241781413555, -0.019227901473641396, 0.006180990021675825, 0.010585308074951172, 0.030668336898088455, -0.0003821607679128647, 0.008509757928550243, -0.01470320113003254, -0.04831882193684578, -0.055392295122146606, -0.026218356564641, -0.006849317345768213, -0.00362391141243279, 0.0023889588192105293, 0.04519719257950783, 0.012735579162836075, -0.011108347214758396, -0.0988958403468132, 0.01568286120891571, -0.04317145422101021, 0.015076800249516964, 0.0387214720249176, 0.04167705774307251, 0.005026983562856913, 0.01243670005351305, 0.010352847166359425, 0.03267747163772583, -0.021286847069859505, 0.010925699025392532, -0.005292654037475586, -0.017833132296800613, 0.03354090079665184, 0.0030116240959614515, -0.023229563608765602, 0.011033627204596996, 0.03237859159708023, -0.03012039139866829, 0.041710264980793, 0.006911583710461855, 0.0658530741930008, 0.005890412721782923, 0.032694075256586075, 0.023196354508399963, -0.011432133615016937, -0.006666668690741062, 0.02817767672240734, 0.004777917638421059, -0.008459944278001785, 0.010029060766100883, -0.0081942742690444, 0.0329265370965004, -0.020506441593170166, -0.040116243064403534, 0.0028767131734639406, 0.026168543845415115, 0.017949363216757774, 0.014221672900021076, 0.06645083427429199, -0.05552513152360916, -0.015732673928141594, 0.04579494893550873, 0.027712753042578697, 0.022864267230033875, 0.029439611360430717, 0.02078871615231037, -0.009248653426766396, -0.02520548738539219, 0.0196596160531044, 0.003816937794908881, -0.012860111892223358, 0.034570373594760895, 0.042108774185180664, 0.005217934492975473, -0.01163138635456562, -0.013424661941826344, -0.04164385050535202, 0.03755916655063629, -0.0024491497315466404, 0.030336249619722366, 0.04131175950169563, 0.009066005237400532, -0.01151515543460846, -0.009331676177680492, 0.0245745200663805, -0.030286435037851334, 0.005628893617540598, 0.05635535344481468, -0.07126610726118088, 0.0163138285279274, -0.025902872905135155, -0.040979672223329544, 0.029240358620882034, -0.026351191103458405, -0.0810294970870018, -0.03868826478719711, 0.005475302692502737, -0.005641346797347069, -0.043569959700107574, 0.0577833317220211, 0.04376921430230141, -0.01416355837136507, -0.06429225951433182, -0.0013158991932868958, -0.02415941096842289, -0.007521795574575663, -0.06558740139007568, 0.00999585259705782, -0.029024500399827957, -0.019858868792653084, -0.001070984173566103, 0.04742218181490898, -0.036596108227968216, 0.02528850920498371, -0.023644672706723213, -0.015026986598968506, 0.005392280872911215, -0.05625572428107262, -0.0007544626714661717, 0.055458713322877884, 0.03825655207037926, -0.015998344868421555, -0.00581569317728281, 0.004296389874070883, -0.03148195147514343, 0.0420091450214386, -0.01579909212887287, 0.05266917496919632, -0.012063100934028625, -0.04370279610157013, -0.04536323621869087, 0.03855542838573456, -0.02400997094810009, 0.041212134063243866, -0.0007684726733714342, -0.018580330535769463, -0.0006200707866810262, -0.03184724971652031, 0.05529266968369484, 0.009522626176476479, -0.0034890007227659225, 0.025271905586123466, -0.005944377277046442, -0.04798673093318939, -0.011249484494328499, -0.01209630910307169, -0.005911168176680803, 0.015184728428721428, -0.022216694429516792, 0.029871325939893723, 0.015840603038668633, -0.02528850920498371, -0.033026162534952164, 0.015591536648571491, 0.01924450695514679, 0.04001661762595177, 0.030369456857442856, -0.04486510530114174, 0.0211540125310421, 0.030136996880173683, -0.010153594426810741, -0.024973025545477867, 0.020473232492804527, -0.023960156366229057, -0.01811540685594082, -0.022814452648162842, 0.04503114894032478, 0.00896637886762619, -0.035168129950761795, 0.04157743230462074, -0.037459537386894226, 0.0018389378674328327, 0.023644672706723213, -0.06050645560026169, 0.05499378964304924, -0.012768788263201714, -0.007870487868785858, 0.01149855088442564, -0.03387298807501793, 0.0003341636620461941, 0.018845999613404274, 0.02588626742362976, 0.02210046350955963, -0.025554180145263672, -0.023063519969582558, -0.02892487496137619, -0.020772110670804977, -0.004503944888710976, -0.009090911597013474, 0.009821506217122078, -0.008248238824307919, -0.008825241588056087, -0.026849323883652687, -0.004873393103480339, 0.024823585525155067, 0.04981321841478348, -0.04449980705976486, -0.017716901376843452, -0.02615193836390972, 0.0682108998298645, 0.019975099712610245, 0.0131838982924819, -0.04622666537761688, 0.032212547957897186, -0.01999170519411564, 0.03297634795308113, -0.018430890515446663, -0.005790786352008581, -0.003190121380612254, -0.031232886016368866, -0.03709424287080765, 0.037525955587625504, 0.0211540125310421, 0.033291831612586975, 0.030784567818045616, -0.0025238697417080402, 0.034902460873126984, -0.00655458914116025, -0.025836454704403877, -0.08674141764640808, -0.0530344694852829, -0.01236198004335165, 0.03666252642869949, -0.005944377277046442, 0.026251565665006638, 0.0060813636519014835, -0.05353260412812233, 0.025188883766531944, -0.008675801567733288, -0.0020641351584345102, -0.017168955877423286, -0.0052843522280454636, -0.0423080250620842, -0.02228311263024807, -0.005035285837948322, -0.01725197769701481, -0.03626402094960213, 0.021917816251516342, -0.0065794955007731915, -0.08873394131660461, -0.013200502842664719, -0.041511014103889465, -0.021220430731773376, -0.006662517786026001, 0.025089256465435028, 0.015242843888700008, -0.025537576526403427, -0.04157743230462074, 0.04745539277791977, 0.020323792472481728, 0.027480291202664375, -0.0015846829628571868, 0.051971789449453354, 0.02967207320034504, -0.07936906069517136, -0.004483189433813095, 0.03304276615381241, 0.021502705290913582, 0.0032295568380504847, -0.028526369482278824, -0.01158987544476986, 0.03915318846702576, -0.024292245507240295, 0.009348280727863312, -0.008493153378367424, 0.05170612037181854, -0.011158160865306854, 0.003161063650622964, -0.0029618109110742807, 0.018613537773489952, 0.00582399545237422, -0.0098298080265522, 0.05751766264438629, 0.0035367384552955627, -0.031863853335380554, 0.01057700626552105, 0.052868425846099854, 0.03586551547050476, -0.006616855505853891, -0.003418432082980871, -0.046492334455251694, -0.002239519264549017, 0.024890003725886345, 0.044964730739593506, -0.054827746003866196, 0.029954347759485245, -0.03279370069503784, -0.027779171243309975, 0.05884601175785065, -0.04234123229980469, -0.0148194320499897, -0.006014945916831493, -0.015774184837937355, 0.028742225840687752, -0.02997095137834549, -0.01826484687626362, 0.07724369317293167, 0.007094232365489006, -0.002685762709006667, 0.002080739475786686, -0.03769199922680855, -0.018962230533361435, -0.05067664757370949, -0.023877134546637535, -0.008185971528291702, 0.010701538994908333, 0.04948112741112709, -0.03712745010852814, 0.004396016243845224, 0.04639270901679993, 0.023312585428357124, -0.014205069281160831, 0.011747617274522781, 0.0390203520655632, 0.04273974150419235, 0.07571608573198318, 0.014811129309237003, -0.017799923196434975, 0.0601743645966053, 0.01879618689417839, 0.03169780969619751, 0.017567461356520653, 0.0009147989912889898, -0.059443771839141846, 0.018580330535769463, -0.05001246929168701, -0.0020973440259695053, 0.02580324560403824, -0.019476966932415962, -0.022183485329151154, -0.02925696223974228, 0.06718142330646515, -0.03286011889576912, -0.004196763504296541, 0.02701536752283573, -0.003063512733206153, 0.0032150279730558395, -0.029605654999613762, 0.04177668318152428, -0.0043295989744365215, 0.014503948390483856, 0.002926526591181755, -0.0022768790367990732, -0.017119141295552254, -0.015309262089431286, -0.04592778533697128, 0.035168129950761795, 0.062366146594285965, 0.01751764863729477, 0.0717974528670311, 0.006185140926390886, -0.0021336660720407963, -0.0023287679068744183, -0.031050238758325577, 0.0242756400257349, 0.007430471479892731, -0.010145291686058044, 0.027745962142944336, -0.046691589057445526, -0.03666252642869949, 0.005620591342449188, 0.019144879654049873, -0.036330439150333405, 0.015965135768055916, -0.015774184837937355, 0.0003881279844790697, 0.008144460618495941, -0.02532171830534935, -0.046193454414606094, 0.009373187087476254, 0.008559570647776127, -0.005334165412932634, -0.026915742084383965, 0.01163138635456562, -0.02757991850376129, -0.07963472604751587, -0.021735167130827904, 0.015226240269839764, 0.029921138659119606, -0.015350772999227047, -0.006841015070676804, 0.008181820623576641, 0.016081366688013077, -0.03259444981813431, -0.05625572428107262, 0.013217106461524963, 0.029090918600559235, -0.002953508635982871, 0.00322540570050478, 0.01042756624519825, 0.02070569433271885, -0.021519308909773827, 0.021768376231193542, 0.0198090560734272, 0.027447082102298737, 0.03041927143931389, -0.021054387092590332, 0.054794538766145706, -0.03466999903321266, -0.059144891798496246, -0.027031973004341125, -0.02836032398045063, -0.007932755164802074, -0.013590705581009388, 0.06419263035058975, 0.02180158533155918, -0.024823585525155067, -0.051374029368162155, 0.01138231996446848, -0.007887092418968678, -0.04552927985787392, -0.01766708679497242, 0.004391865339130163, -0.01084267720580101, -0.09192199259996414, -0.03819013386964798, -0.013399755582213402, -0.061834804713726044, 0.01834786869585514, -0.041710264980793, -0.008866752497851849, -0.00999585259705782, -0.042075563222169876, -0.01148194633424282, -8.464355050818995e-05, -0.0017932758200913668, 0.0017071404727175832, 0.011066836304962635, -0.0021855549421161413, -0.0024927363265305758, -0.014396019279956818, 0.012038193643093109, 0.05871317908167839, 0.044732268899679184, 0.009439604356884956, -0.04536323621869087, -0.02374430000782013, -0.05157328397035599, -0.029954347759485245, 0.0063553364016115665, -0.01063512172549963, 0.010369451716542244, -0.0494479201734066, 0.009838109835982323, -0.06186801567673683, -0.0063304295763373375, 0.040315497666597366, -0.04951433837413788, 0.02671648934483528, -0.028161071240901947, 0.04307182878255844, 0.022482365369796753, 0.016039855778217316, 0.018298054113984108, 0.009813203476369381, 0.026284774765372276, -0.021369870752096176, -0.03249482065439224, -0.047023676335811615, 0.00036892914795316756, -0.034836042672395706, -0.04366958513855934, 0.03609797731041908, 0.014753014780580997, 0.00905770342797041, -0.0018026158213615417, -0.007077627815306187, 0.026251565665006638, 0.027696147561073303, -0.007870487868785858, -0.003347863210365176, 0.013673728331923485, -0.014852641150355339, -0.0317310206592083, 0.01710253767669201, 0.03593193367123604, -0.04449980705976486, 0.029024500399827957, 0.006255709566175938, 0.005657951347529888, 0.03493566811084747, 0.02937319315969944, -0.009572439827024937, 0.06920716166496277, 0.012909925542771816, 0.013831470161676407, 0.016795355826616287, 0.011921962723135948, 0.046193454414606094, 0.022648409008979797, 0.04901620373129845, 0.016371943056583405, 0.016413453966379166, 0.0259194765239954, 0.016081366688013077, 0.024707354605197906, 0.008567873388528824, 0.006782899610698223, 0.011888754554092884, 0.0064093004912137985, -0.019078461453318596, -0.021369870752096176, 0.004690744448453188, 0.011988380923867226, 0.003167290473356843, 0.002748029073700309, -0.008625988848507404, -0.0043835630640387535, -0.002777086803689599, 0.04014945402741432, 0.02303031086921692, -0.046459127217531204, -0.008700708858668804, 0.01230386458337307, 0.025089256465435028, 0.02303031086921692, -0.018995439633727074, -0.048783741891384125, 0.054860956966876984, -0.031050238758325577, -0.011797429993748665, -0.04984642565250397, 0.015774184837937355, 0.046127039939165115, 0.017866339534521103, 0.030601918697357178, -0.00021897059923503548, -0.000691158405970782, -0.05296805500984192, -0.05871317908167839, 0.034304700791835785, -0.006400998216122389, 0.031116655096411705, -0.026550443843007088, -0.0034433386754244566, 0.007608968764543533, -0.022748036310076714, 0.02243255265057087, -0.005068494938313961, 0.010311336256563663, -0.005255294498056173, 0.003212952520698309, 0.049281876534223557, -0.005155668128281832, 0.01740141771733761, -0.02213367260992527, -0.03372354805469513, 0.009165631607174873, -0.04028228670358658, -0.028974687680602074, 0.009165631607174873, -0.012735579162836075, -0.012785391882061958, 0.0010050854180008173, 0.014802827499806881, 0.02502283826470375, -0.00415525259450078, 0.01662101037800312, 0.01142383087426424, 0.021618936210870743, -0.005803239531815052, -0.0033810720779001713, -0.01483603660017252, 0.017268581315875053, -0.03646327555179596, 0.01382316742092371, 0.03023662231862545, 0.02347862906754017, 0.03510171175003052, 0.022814452648162842, -0.019676219671964645, -0.03712745010852814, 0.0160149484872818, -0.05877959728240967, 0.009539230726659298, 0.01315068919211626, 0.033075977116823196, 0.0018877133261412382, 0.009489418007433414, -0.04250727966427803, 0.026384400203824043, -0.002411789959296584, -0.04689083993434906, 0.019908681511878967, 0.039518486708402634, 0.018879208713769913, 0.021286847069859505, 0.003686178009957075, -0.00662100687623024, -0.012934831902384758, 0.014122046530246735, 0.025753432884812355, -0.04632629081606865, 0.0064881714060902596, 0.0078082215040922165, -0.0035388139076530933, -0.037227075546979904, 0.006803655065596104, -0.015375679358839989, 0.056521397083997726, 0.006313825026154518, -0.0032025747932493687, 0.004470736254006624, 0.028194280341267586, -0.04861769825220108, 0.01369033195078373, 0.004860939923673868, 0.00038579298416152596, -0.020091330632567406, -0.002758406801149249, 0.020174352452158928, 0.03623081371188164, -0.029306774958968163, -0.005006228107959032, 0.00890826340764761, 0.006629308685660362, 0.014728107489645481, -0.03666252642869949, 0.03732670471072197, -0.02317975088953972, 0.012146122753620148, 0.0012826903257519007, 0.002318390179425478, -0.001099004060961306, 0.0008468246669508517, 0.00581569317728281, 0.013532590121030807, -0.014885849319398403, 0.03443753719329834, -0.005159819032996893, 0.0010445208754390478, 0.021403077989816666, -0.003702782327309251, 0.00988792348653078, -0.014337903819978237, 0.00825238972902298, -0.0024138654116541147, 0.009223747067153454, 0.04572853446006775, -0.03279370069503784, 0.002731424756348133, 0.013515986502170563, 0.026168543845415115, 0.003787880064919591, 0.005363223142921925, 0.02975509501993656, 0.004283936694264412, 0.012536326423287392, -0.017982570454478264, -0.006990454625338316, -0.0164632685482502, -0.025687014684081078, -0.016903284937143326, -0.004690744448453188, -0.023810718208551407, 0.02347862906754017, 0.02570362016558647, 0.007824826054275036, -0.026533840224146843, -0.0031776682008057833, 0.009896225295960903, -0.04197593778371811, -0.023843925446271896, -0.02412620186805725, 0.014454134739935398, 0.004333749879151583, 0.013673728331923485, -0.037193868309259415, 0.021934419870376587, -0.0048692417331039906, 0.025388136506080627, 0.02490660920739174, -0.001882524462416768, 0.009663764387369156, -0.051971789449453354, 0.013416360132396221, -0.010660028085112572, -0.0001076691914931871, -0.005080948118120432, 0.025338323786854744, -0.009746786206960678, -0.0390203520655632, 0.02836032398045063, 0.03144874423742294, -0.02817767672240734, 0.03453716263175011, -0.0315815806388855, 0.03229556977748871, 0.008625988848507404, -0.01957659423351288, -0.007467831484973431, -0.0023993365466594696, 0.03530096635222435, 0.005981737282127142, 0.01555002573877573, 0.015076800249516964, 0.018447494134306908, -0.001191366114653647, 0.014404322020709515, 0.03256123885512352, 0.020805319771170616, 0.0011986305471509695, -0.024292245507240295, -0.023362398147583008, 0.04689083993434906, 0.013582403771579266, 0.0024325454141944647, 0.021585727110505104, 0.018364472314715385, 0.0017631803639233112, -0.03755916655063629, 0.014711502939462662, 0.009074307978153229, 0.05721878260374069, 0.02239934355020523, 0.03433791175484657, 0.021917816251516342, -0.0333748534321785, -0.02314654178917408, 0.030369456857442856, -0.033590711653232574, 0.03676215559244156, -0.005110005848109722, 0.01065172627568245, -0.014786222949624062, -0.01155666634440422, 0.0297883041203022, -0.008455793373286724, 0.027031973004341125, -0.015350772999227047, -0.0019997931085526943, 0.03646327555179596, -0.01838107779622078, -0.03375675529241562, 0.0007669159676879644, 0.00017253015539608896, 0.009506022557616234, -0.009838109835982323, -0.044134508818387985, -0.007530097849667072, -0.016272317618131638, -0.002243670402094722, -0.02543794922530651, -0.042972203344106674, -0.016828564926981926, -0.022449156269431114, 0.014885849319398403, -0.02434205822646618, 0.020024912431836128, -0.013316732831299305, -0.038920726627111435, -0.01403072290122509, -0.026948949322104454, 0.015740975737571716, 0.021021177992224693, 0.024956421926617622, 0.0006387507310137153, -0.011465341784060001, -0.028526369482278824, -0.011664594523608685, -0.0005105854943394661, 0.036330439150333405, -0.027895402163267136, 0.018580330535769463, -0.006400998216122389, 0.007019512355327606, 0.03523454815149307, -0.01894562691450119, 0.026201751083135605, 0.008899961598217487, -0.04144459590315819, -0.032278966158628464, -0.010352847166359425, 0.00409921258687973, 0.016073064878582954, -0.023129936307668686, 0.00080894585698843, 0.017351603135466576, -0.007077627815306187, 0.018762977793812752, 0.011199671775102615, 0.04775426909327507, -0.009555835276842117, 0.01942715421319008, 0.011780825443565845, 0.012038193643093109, 0.0488501600921154, 0.020323792472481728, 0.03410544991493225, 0.030336249619722366, -0.006097967736423016, -0.01632213033735752, 0.015151520259678364, 0.007405564654618502, 0.033408064395189285, 0.005491907242685556, 0.004215443506836891, 0.04048154130578041, 0.025089256465435028, 0.00370900915004313, -0.027281038463115692, 0.021851398050785065, -0.01215442456305027, -0.009597346186637878, -0.0009682443924248219, -0.010012456215918064, -0.02010793425142765, 0.007999172434210777, -0.008526362478733063, -0.0420091450214386, -0.01572437211871147, 0.02127024345099926, -0.013408057391643524, 0.040049824863672256, -0.0007845581858418882, -0.00664176233112812, 0.016679124906659126, 0.041710264980793, -2.372289600316435e-05, -0.005114156752824783, 0.02141968347132206, -0.005450396332889795, 0.008941472508013248, -0.014694899320602417, 0.037160661071538925, 0.019792450591921806, -0.004520549438893795, -0.03437111899256706, -0.02633458748459816, -0.015674559399485588, 0.023096727207303047, 0.006986303720623255, 0.0390203520655632, 0.04167705774307251, 0.0033022011630237103, -0.020174352452158928, 0.025902872905135155, -0.011955171823501587, 0.03447074443101883, -0.012179331853985786, -0.004665838088840246, -0.01725197769701481, -0.03453716263175011, 0.026417609304189682, -0.0018254468450322747, 0.024557916447520256, -0.0196596160531044, 0.033408064395189285, -0.013698634691536427, -0.04330429062247276, 0.03068494237959385, -0.0057824840769171715, -0.04114571586251259, -0.020091330632567406, -0.003495227312669158, -0.0294894240796566, -0.013756750151515007, -0.01069323718547821, 0.016239108517766, -0.03915318846702576, -0.00565379997715354, -0.018729768693447113, -0.01643005944788456, -0.02123703435063362, -0.027281038463115692, -0.022565387189388275, 0.010834374465048313, 0.0184640996158123, -0.006886677350848913, -0.015749279409646988, -0.0131091782823205, -0.01763387955725193, 0.020423417910933495, 0.0002755293680820614, -0.005732670892030001, -0.0032108768355101347, -0.04244086146354675, 0.034902460873126984, 0.07080118358135223, 0.012818600982427597, 0.003134081605821848, 0.03332504257559776, -0.006434207316488028, 0.04951433837413788, -0.018430890515446663, -0.02895808406174183, 0.025637201964855194, -0.023379003629088402, -0.03390619531273842, -0.005907017271965742, -0.013698634691536427, -0.005965132731944323, 0.005890412721782923, 0.017866339534521103, 0.004391865339130163, -0.023096727207303047, 0.003922790754586458, -0.0013989211292937398, 0.02198423258960247, -0.021934419870376587, 0.0023287679068744183, -0.010344544425606728, -0.03276049345731735, 0.017052724957466125, -0.009273560717701912, 0.007413866929709911, 0.016870075836777687, -0.07378997653722763, -0.03375675529241562, 0.04337070882320404, 0.01057700626552105, 0.02764633484184742, -0.004487340804189444, -0.034869249910116196, -0.020655879750847816, 0.012071402743458748, -0.03312578797340393, -0.010153594426810741, -0.02389374002814293, 0.02543794922530651, -0.026218356564641, -0.0315815806388855, 0.019759243354201317, 0.0005863430560566485, 0.042972203344106674, -0.01808219775557518, -0.027065180242061615, 0.021519308909773827, 0.018630143254995346, -0.0065255314111709595, 0.002685762709006667, 0.026550443843007088, -0.030850986018776894, -0.009398093447089195, -0.03395600989460945, -0.021934419870376587, -0.016064763069152832, 0.03729349374771118, -0.013731843791902065, 0.008767126128077507, 0.04433376342058182, 0.0006397885154001415, -0.031017029657959938, 0.030253227800130844, 0.06200085207819939, 0.017451230436563492, 0.009738483466207981, 0.05300126224756241, 0.024242432788014412, -0.0021160240285098553, -0.012561232782900333, -0.025670411065220833, 0.02088834159076214, -0.028974687680602074, 0.01462848111987114, 0.004782069008797407, -0.04858449101448059, -0.0018420512787997723, 0.00658364687114954, -0.02513906918466091, 0.02513906918466091, 0.018430890515446663, -0.01909506693482399, 0.0006626195390708745, -0.018580330535769463, -0.051639702171087265, 0.04433376342058182, 0.023063519969582558, -0.014578668400645256, -0.02535492740571499, -0.01382316742092371, -0.017999175935983658, -0.015234542079269886, -0.008119554258883, -0.033889591693878174, -0.01237858459353447, 0.0208551324903965, 0.0163138285279274, 0.03795767202973366, -0.014180161990225315, -0.004823579918593168, 0.028675807639956474, -0.029655467718839645, 0.0060190968215465546, -0.012129518203437328, 0.01942715421319008, 0.027928609400987625, -0.02809465490281582, -0.013773354701697826, -0.018729768693447113, 0.016264015808701515, 0.08023248612880707, -0.0021398926619440317, -0.020539648830890656, -0.014246580190956593, -0.019144879654049873, -0.0184640996158123, 0.010643423534929752, 0.00834786519408226, -0.012611046433448792, 0.027031973004341125, -0.0016064762603491545, -0.014180161990225315, -0.008040683344006538, 0.01613117940723896, 0.003069739555940032, 0.01867995597422123, 0.014288091100752354, -0.02445828914642334, 0.01632213033735752, 0.031183073297142982, 0.018696561455726624, 0.014288091100752354, 0.0011975927045568824, -0.048451654613018036, 0.019609803333878517, -0.02183479256927967, -0.015342471189796925, 0.03968453034758568, 0.014180161990225315, -0.029605654999613762, -0.0032938988879323006, -0.03493566811084747, 0.011149858124554157, 0.027148203924298286, 0.0017133670626208186, -0.007243671920150518, 0.01665421947836876, 0.024890003725886345, 0.005342467688024044, 0.04835202917456627, -0.013798261061310768, -0.013740145601332188, -0.0003471358504611999, 0.003156912513077259, 0.025238696485757828, 0.004404318518936634, 0.004474887158721685, 0.0028393534012138844, 0.01294313371181488, 0.012627650052309036, -0.00902449432760477, -0.008709010668098927, 0.020273979753255844, 0.031166469678282738, 0.01170610636472702, -0.009215445257723331, -0.019161483272910118, 0.004640931263566017, 0.014188464730978012, 0.004219594411551952, -0.005085099022835493, -0.023129936307668686, -0.02269822172820568, 0.02738066390156746, 0.027629731222987175, 0.002712744753807783, 0.0015784562565386295, -0.0036882536951452494, 0.02063927613198757, -0.026052312925457954, -0.02314654178917408, -0.010967209935188293, 0.031050238758325577, -0.02985472045838833, -0.012204238213598728, 0.03503529727458954, 0.001516189775429666, 0.024557916447520256, 0.029090918600559235, -0.036894988268613815, 0.013515986502170563, 0.022266507148742676, -0.03450395539402962, 0.02213367260992527, -0.01395600289106369, -0.005657951347529888, -0.013706936500966549, -0.0017445003613829613, -0.014769618399441242, 0.023843925446271896, -0.00810294970870018, -0.022150276228785515, 0.033441271632909775, -0.01811540685594082, -0.017285186797380447, -0.003916563931852579, 0.02666667476296425, -0.027114994823932648, -0.008526362478733063, 0.014254882000386715, -0.00033027201425284147, 0.010593610815703869, -0.02445828914642334, -0.01838107779622078, 0.006836864165961742, -2.6949728635372594e-05, 0.014968871138989925, 0.0017403492238372564, 0.03789125382900238, 0.0022914079017937183, 0.03315899893641472, -0.025637201964855194, 0.01217102911323309, 0.011390621773898602, 0.01942715421319008, 0.010585308074951172, -0.004449980799108744, -0.014354508370161057, -0.01564965210855007, -0.003322956617921591, -0.006849317345768213, -0.0027895402163267136, -0.0022229147143661976, -0.0033914498053491116, -0.0029327531810849905, 0.015674559399485588, 0.010676632635295391, -0.05170612037181854, 0.022714827209711075, 0.02806144580245018, 0.03523454815149307, -0.05001246929168701, -0.007787466049194336, -0.027397269383072853, -0.015392283909022808, -0.006006643641740084, -0.031083447858691216, 0.04190951958298683, -0.007393111474812031, 0.0046326289884746075, -0.004296389874070883, -0.02967207320034504, -0.019892077893018723, 0.02314654178917408, 0.006924036890268326, 0.010925699025392532, 0.026650071144104004, 0.0008260691538453102, -0.027696147561073303, 0.025936082005500793, -0.028841853141784668, -0.006176838651299477, -0.010610215365886688, 0.006733086425811052, -0.006264011841267347, -0.02224990352988243, -0.04048154130578041, -0.0028642599936574697, 0.007841430604457855, 0.002721047028899193, 0.014919058419764042, -0.03231217339634895, 0.008899961598217487, -0.019078461453318596, 0.018015779554843903, 0.007061023265123367, 0.011041929945349693, 0.01335824467241764, -0.00567455543205142, 0.016969703137874603, 0.028260698541998863, 0.019294319674372673, 0.021037781611084938, -0.004138648044317961, -0.014371112920343876, 0.011797429993748665, -0.002488585188984871, -0.0048401840031147, 0.029804907739162445, 0.01984226517379284, 0.013366546481847763, 0.019892077893018723, -0.008642593398690224, -0.015201332978904247, 0.04370279610157013, 0.0065794955007731915, -0.007567457854747772, 0.00481942854821682, 0.0015193030703812838, -0.028974687680602074, 0.003022001823410392, -0.02749689482152462, -0.007936906069517136, -0.03360731527209282, 0.005936075001955032, 0.013142387382686138, -0.03437111899256706, -0.027729356661438942, -0.012071402743458748, 0.003588627092540264, 0.00923204980790615, -0.022565387189388275, 0.03050229325890541, 0.03765879198908806, -0.03819013386964798, 0.02678290568292141, -0.0211540125310421, -0.019892077893018723, 0.0019997931085526943, 0.03732670471072197, -0.038920726627111435, -0.0213034525513649, 0.03347448259592056, 0.022532178089022636, -0.03828975930809975, 0.027131598442792892, 0.0022602747194468975, 0.016222504898905754, -0.011324204504489899, -0.027662940323352814, 0.01849730685353279, -0.006201745476573706, 0.002781237941235304, 0.009032797068357468, -0.02386053092777729, -0.015018684789538383, 0.0007404527277685702, 0.008592779748141766, -0.05150686576962471, 0.014678294770419598, -0.031199678778648376, -0.007546702399849892, -0.019344132393598557, -0.03387298807501793, -0.025687014684081078, -0.042706530541181564, -0.013989211991429329, 0.026948949322104454, 0.011581572704017162, -0.01688668131828308, 0.013308431021869183, -0.0476546436548233, -0.008011626079678535, 0.039784155786037445, -0.019045252352952957, 0.04536323621869087, -0.009464510716497898, -0.019792450591921806, -0.008298051543533802, -0.005753426346927881, -0.002833126811310649, -0.017434624955058098, 0.02183479256927967, -0.011789128184318542, 0.03739312291145325, 0.0065794955007731915, 0.006334580946713686, -0.006185140926390886, -0.005620591342449188, 0.01221254002302885, -0.01455376110970974, 0.0007155460771173239, 0.01755085587501526, 0.010195105336606503, 0.02311333268880844, 0.030585315078496933, -0.05207141488790512, 0.018065594136714935, -0.004682442173361778, -0.01628061942756176, 0.005201329942792654, 0.013391452841460705, 0.01864674687385559, 0.023163145408034325, -0.0036550448276102543, -0.024524707347154617, 0.009605648927390575, 0.0010284354211762547, 0.012611046433448792, 0.011490249074995518, -0.006791201885789633, 0.01330012921243906, 0.027480291202664375, 0.0033997520804405212, 0.0057036131620407104, -0.023345794528722763, 0.01491075661033392, 0.0027750113513320684, -0.013233711011707783, 0.004321296699345112, 0.023545047268271446, 0.018065594136714935, 0.030884195119142532, -0.025222092866897583, -0.005707764532417059, 0.025554180145263672, 0.004223745781928301, 0.03076796419918537, -0.011124951764941216, 0.0044375271536409855, -0.024690750986337662, -0.018148615956306458, 0.02836032398045063, -0.0044997939839959145, -0.009406396187841892, -0.01864674687385559, 0.014562063850462437, -0.026234960183501244, 0.019012045115232468, 0.022648409008979797, -0.03334164619445801, -0.0020246997009962797, -0.02787879668176174, 0.033408064395189285, 0.040614377707242966, -0.025537576526403427, -0.013200502842664719, -0.04131175950169563, 0.0130344582721591, 0.020539648830890656, 0.01628061942756176, -0.015599839389324188, -0.028792038559913635, -0.0002047011803369969, 0.026998763903975487, -0.005931924097239971, -0.0017683692276477814, -0.002351599046960473, -0.019875474274158478, -0.012112913653254509, 0.02344541996717453, -0.009373187087476254, 0.012021590024232864, 0.02791200578212738, 0.002592362929135561, 0.0008411169401369989, -0.030884195119142532, 0.027629731222987175, 0.004161478951573372, 0.009647159837186337, 0.014354508370161057, 0.0057036131620407104, -0.0193607360124588, 0.016720635816454887, -0.026019103825092316, -0.01330012921243906, -0.01228726003319025, 0.00017914596537593752, 0.00745537830516696, 0.005761728622019291, 0.0019219599198549986, -0.028144467622041702, 0.009256956167519093, -0.0034329609479755163, 0.008356167003512383, -0.012353677302598953, -0.015143217518925667, 0.0037152357399463654, -0.018165219575166702, -0.033706944435834885, 0.05230387672781944, 0.010792863555252552, -0.016064763069152832, -0.019028648734092712, -0.029605654999613762, 0.03065173327922821, 0.033889591693878174, -0.018962230533361435, 0.021403077989816666, -0.005491907242685556, -0.02037360519170761, 0.044134508818387985, -0.013466172851622105, 0.028293907642364502, -0.02955584228038788, -0.014279788359999657, -0.005159819032996893, -0.03563305363059044, -0.011000419035553932, -0.027845587581396103, 0.0323287770152092, 0.0011674972483888268, 0.005163969937711954, 0.017085934057831764, 0.007721048779785633, -0.006982152350246906, 0.03559984639286995, 0.030402665957808495, 0.01841428503394127, -0.012536326423287392, 0.011747617274522781, 0.011747617274522781, 0.03672894462943077, -0.009647159837186337, -0.004740557633340359, -0.012029891833662987, 0.015043591149151325, -0.006982152350246906, 0.015965135768055916, -0.00412619486451149, 0.01669573038816452, -0.01687837764620781, 0.019559990614652634, 0.04373600333929062, 0.0008027192088775337, -0.003885430982336402, -0.0041531771421432495, -0.01912827603518963, -0.052204251289367676, 0.009290165267884731, -0.015035289339721203, -0.0026359492912888527, -0.021286847069859505, 0.03735991194844246, 0.022797849029302597, 0.007783315144479275, -0.0017268582014366984, -0.004420923069119453, 0.006903281435370445, 0.010311336256563663, -0.03124949149787426, -0.0018576178699731827, -0.02153591439127922, 0.030934007838368416, 0.009954340755939484, -0.002683687023818493, -0.01170610636472702, 0.003659195965155959, 0.0011332506546750665, 0.015657953917980194, 0.0031403081957250834, -0.03556663542985916, -0.03146534785628319, -0.007251974195241928, -0.008875054307281971, -0.0009454133687540889, 0.022498968988656998, -0.029688676819205284, 0.018364472314715385, -0.016338735818862915, -0.00121938600204885, 0.02716480754315853, -0.02562059834599495, -0.029506029561161995, 0.0078082215040922165, -0.0026546292938292027, 0.03496887907385826, -0.023910343647003174, -0.03231217339634895, -0.01369033195078373, -0.0016500628553330898, 0.010161896236240864, 0.01677045039832592, -0.018746374174952507, 0.012677463702857494, -0.008659197948873043, -0.006168536841869354, -0.03423828259110451, 0.007941056974232197, 0.0074802846647799015, -0.01076795719563961, 0.02580324560403824, 0.0058447509072721004, -0.036894988268613815, 0.009514324367046356, -0.010593610815703869, 0.0247239600867033, 0.031564973294734955, 0.0097550880163908, -0.030967216938734055, -0.004769615363329649, 0.004404318518936634, -0.0080074742436409, -0.013657123781740665, 0.010992116294801235, 0.015018684789538383, -0.019227901473641396, -0.015184728428721428, 0.022382738068699837, 0.03995019942522049, -0.02382732182741165, -0.0018814867362380028, -0.0294894240796566, -0.014919058419764042, 0.01909506693482399, -0.03443753719329834, -0.008858450688421726, 0.004616024903953075, -0.002949357498437166, 0.017351603135466576, 0.0016801583115011454, -0.011897056363523006, -0.044400181621313095, -0.021037781611084938, 0.004777917638421059, 0.030220018699765205, -0.015051893889904022, 0.033590711653232574, -0.0006377129466272891, 0.009630555287003517, -0.016853472217917442, 0.008742219768464565, -0.010975511744618416, -0.026683280244469643, -0.003802408929914236, -0.020357001572847366, 0.009182236157357693, -0.021170616149902344, 0.008472397923469543, 0.03619760274887085, -0.016554592177271843, 0.00013225150178186595, -0.01969282515347004, -0.010917396284639835, -0.018779583275318146, 0.0015597763704136014, -0.03407223895192146], "id": 45}, {"title": "Northern Light Group", "text": "Northern Light Group, LLC is a company specializing in strategic research portals, enterprise search technology, and text analytics solutions. The company provides custom, hosted, turnkey solutions for its clients using the software as a service (SaaS) delivery model. Northern Light markets its strategic research portals under the tradename SinglePoint.", "vector": [0.014532499946653843, -0.01595800556242466, -0.024147484451532364, -0.034728750586509705, 0.01582406461238861, -0.022119248285889626, 0.009681954979896545, 0.02110513113439083, -0.029715565964579582, 0.04048817604780197, 0.014551633968949318, 0.018923820927739143, -0.034422602504491806, -0.013690590858459473, -0.006343020126223564, 0.005783341825008392, -0.06394682824611664, -0.00963411945849657, -0.020856386050581932, -0.0009387765312567353, 0.016895584762096405, -0.06356413662433624, 0.013604486361145973, 0.04951956495642662, 0.015230901539325714, 0.006744840182363987, 0.007247115485370159, -0.0026213990058749914, -0.0705672949552536, 0.006175594870001078, 0.025199871510267258, 0.008825695142149925, 0.049022071063518524, 0.0353601835668087, -0.029084132984280586, -0.07714949548244476, 0.02301856130361557, -0.03007911704480648, -0.009629336185753345, -0.00965803675353527, -0.014580335468053818, -0.0022291457280516624, -0.02508506551384926, 0.023937007412314415, 0.014790812507271767, -0.0353601835668087, 0.005419790279120207, -0.038306865841150284, 0.0016718592960387468, -0.022463666275143623, 0.014790812507271767, -0.00440806383267045, -0.030385266989469528, -0.020091013982892036, 0.04641980677843094, 0.00011615116818575189, 0.00877785962074995, 0.10026372224092484, 0.008041189052164555, 0.015393543057143688, -0.01236075721681118, -0.0025974810123443604, 0.023649992421269417, -0.028892790898680687, 0.026137452572584152, 0.03400164842605591, -0.013681023381650448, -0.026213988661766052, 0.020473700016736984, -0.004123441409319639, -0.01578579656779766, -0.008155995048582554, 0.013059158809483051, 0.01947871595621109, 0.02313336730003357, -0.012178980745375156, -0.013862798921763897, -0.006357370875775814, 0.004807492718100548, -0.03359982743859291, 0.08595126867294312, -0.007419324479997158, 0.007223197724670172, -0.013834097422659397, 0.027285510674118996, -0.02110513113439083, -0.04978744313120842, -0.09582456946372986, -0.016426796093583107, 0.010179447010159492, 0.019115164875984192, 0.012265085242688656, -0.026003511622548103, 0.003073446685448289, 0.04106220602989197, 0.03834513574838638, 0.04978744313120842, 0.005587215069681406, -0.016388526186347008, 0.01314526330679655, -0.005845528095960617, 0.003161942819133401, -0.005276282783597708, -0.03679525479674339, -0.00883047841489315, 0.021717429161071777, 0.04833323881030083, 0.022291457280516624, -0.006873996928334236, 0.059507668018341064, 0.023764798417687416, -0.014637738466262817, 0.00803162157535553, -0.010830013081431389, 0.023764798417687416, 0.034346066415309906, -0.01242772676050663, -0.011662354692816734, -0.0004708831256721169, -0.009485828690230846, 0.004195195157080889, 0.008983553387224674, -0.027055898681282997, -0.02294202335178852, -0.020588506013154984, -0.018177583813667297, 0.008261233568191528, 0.008313852362334728, 0.014628170989453793, 0.04431503638625145, -0.018837716430425644, 0.018799448385834694, 0.024338828399777412, -0.025180736556649208, -0.016551168635487556, 0.031035833060741425, 0.0008072282071225345, -0.006792676169425249, 1.5200929738057312e-05, -0.009988103993237019, -0.005529812071472406, -0.007213630713522434, -0.05005532503128052, -0.057670775800943375, -0.05131818726658821, -0.04293736442923546, -0.018349792808294296, 0.04289909824728966, -0.05082069709897041, -0.045463092625141144, -0.018244553357362747, 0.04898380488157272, 0.0013154830085113645, 0.027113301679491997, 0.0006667107227258384, -0.008672621101140976, -0.009586283937096596, -0.003415472339838743, -0.024128351360559464, 0.006089490372687578, 0.0088735306635499, 0.015383975580334663, -0.0072518992237746716, -0.006773541681468487, 0.01622588559985161, 0.025659093633294106, -0.007275816984474659, -0.018330657854676247, -0.06004342809319496, 0.03903396800160408, 0.019019491970539093, 0.04465945437550545, -0.014733409509062767, -0.030825354158878326, -0.031074101105332375, -0.012121577747166157, -0.002189681399613619, 0.00984459649771452, 0.022616740316152573, -0.016331123188138008, -6.974489224376157e-06, 0.016579870134592056, -0.01413067989051342, -0.026960225775837898, -0.03884262591600418, -0.021832235157489777, 0.11289235949516296, 0.06440605223178864, 0.03180120512843132, 0.029218073934316635, -0.03863214701414108, -0.028835387900471687, 0.03696746379137039, -0.006830944679677486, -0.003944057505577803, 0.02835703082382679, 0.0067544071935117245, -0.020550236105918884, 0.0029012379236519337, -0.04270775616168976, 0.04232506826519966, 0.014685573987662792, -0.0032719650771468878, 0.03243263438344002, -0.02663494274020195, -0.0064626093953847885, -0.017086928710341454, -0.002750555519014597, -0.039646267890930176, 0.00048613076796755195, 0.021602623164653778, -0.03384857252240181, -0.029658162966370583, 0.024281425401568413, -0.010284685529768467, 0.0002152608649339527, -0.03249003738164902, -0.038134656846523285, 0.01151884812861681, 0.021832235157489777, -0.0264627356082201, 0.03941665589809418, 0.06918962299823761, -0.002242300659418106, -0.012494697235524654, 0.0016192400362342596, -0.030806221067905426, 0.027610793709754944, 0.027668194845318794, -0.00705098919570446, -0.029122402891516685, -0.020837251096963882, 0.03757976368069649, 0.023401247337460518, -0.03861301392316818, 0.0006553497514687479, 0.033140603452920914, -0.050629355013370514, -0.00974892545491457, -0.020856386050581932, -0.027132434770464897, -0.03358069434762001, -0.024281425401568413, 0.03172466531395912, 0.020550236105918884, -0.10370789468288422, 0.019880536943674088, -0.017306972295045853, -0.004362619947642088, 0.03763716667890549, -0.018665507435798645, 0.00895006861537695, 0.026481868699193, -0.02498939447104931, 0.01059083454310894, -0.001238945871591568, 0.03867041692137718, 0.027151569724082947, 0.015470080077648163, 0.0009100750903598964, -0.002025843830779195, 0.005032320506870747, 0.04469772055745125, 0.047108642756938934, -0.09942181408405304, -0.02135387808084488, -0.013948903419077396, -0.009997670538723469, 0.022291457280516624, 0.012351189740002155, -0.0029179805424064398, -0.06295184046030045, 0.008691755123436451, 0.04289909824728966, -0.0351114384829998, 0.040067221969366074, 0.027955209836363792, -0.02150695212185383, 0.0036259496118873358, 0.010801311582326889, 0.011853697709739208, -0.046725958585739136, 0.03960799798369408, -0.052466247230768204, 0.006347803398966789, 0.018875986337661743, -0.025142468512058258, -0.03872781991958618, 0.007419324479997158, -0.0013142871903255582, -0.03132284805178642, 0.04569270461797714, 0.025582557544112206, 0.005472409538924694, 0.016417227685451508, -0.01497258897870779, 0.04087086021900177, 0.015575318597257137, -0.01770879328250885, 0.031361114233732224, 0.0351114384829998, 0.0057546403259038925, -0.09130886942148209, -0.004553962964564562, 0.012753009796142578, 0.050629355013370514, -0.0019493066938593984, 0.07691988348960876, -0.04194238409399986, -0.0178618673235178, -0.0026596675161272287, -0.023956142365932465, -0.00286057754419744, -0.04446810856461525, -0.010552565567195415, 0.01952655240893364, 0.03930184990167618, 0.019823133945465088, 0.03859388083219528, -0.0076202345080673695, 0.05663752555847168, 0.0007749390788376331, -0.04906034097075462, 0.055642541497945786, 0.0006912265089340508, -0.01410197839140892, 0.004946216009557247, 0.0529254712164402, 0.01923953741788864, -0.043243516236543655, -0.015441378578543663, -0.01584319956600666, -0.005902931094169617, -0.008423875086009502, -0.012475562281906605, 0.0014147422043606639, -0.004759656731039286, 0.0019337600097060204, 0.021966174244880676, 0.003613990731537342, 0.025754766538739204, -0.04106220602989197, -0.0001599507813807577, -0.010284685529768467, 0.018742045387625694, -0.04431503638625145, -0.013700157403945923, 0.03352329134941101, 0.0527723953127861, 0.012781711295247078, 0.0011259338352829218, -0.0078020100481808186, 0.024090081453323364, 0.004106699023395777, 0.015144797042012215, 0.006534363143146038, -0.0087348073720932, -0.03742668777704239, 0.033140603452920914, 0.09130886942148209, -0.010973520576953888, -0.001518784905783832, -0.04198065027594566, -0.004329135175794363, -0.07244245707988739, 0.045156944543123245, 0.032738786190748215, 0.06697004288434982, 0.036240361630916595, 0.025314677506685257, -0.01151884812861681, 0.010782177560031414, -0.0696488469839096, 0.023496918380260468, 0.007596316747367382, 0.0357237346470356, 0.05196875333786011, 0.012006772682070732, -0.028777984902262688, 0.000656545627862215, 0.025716496631503105, 0.05135645717382431, 0.0022602390963584185, 0.00786419678479433, 0.038211192935705185, 0.010141178034245968, 0.037943314760923386, -0.00405168766155839, 0.048448044806718826, -0.018273254856467247, -0.015489215031266212, -0.006433907896280289, 0.02655840665102005, -0.014752544462680817, -0.00703663844615221, 0.010217715054750443, -0.03685265779495239, 0.020244088023900986, -0.0035350616089999676, -0.00786419678479433, 0.020244088023900986, -0.031303711235523224, -0.0009017038391903043, -0.022425398230552673, -0.06953404098749161, 0.0088496133685112, 0.0178714357316494, -0.020492833107709885, 0.003951232880353928, 0.014762111008167267, -0.023401247337460518, -0.06226300820708275, -0.028835387900471687, 0.006237781140953302, 0.03375290334224701, -0.03323627635836601, -0.004149750806391239, 0.014178515411913395, 0.03740755468606949, 0.002609439892694354, 0.029103267937898636, 0.003688136115670204, -0.018206285312771797, -0.020358894020318985, -0.05449448153376579, -0.0004499549977481365, 0.05901017785072327, -0.0348818264901638, 0.0714092031121254, -0.04768267273902893, 0.0066396016627550125, -0.00188712019007653, -0.01603454165160656, -0.02148781716823578, 0.025563422590494156, -0.010055073536932468, 0.03396337851881981, 0.06008169800043106, -0.034403469413518906, 0.002424076432362199, -0.055642541497945786, 0.050208400934934616, -0.03164812922477722, 0.019899670034646988, -0.03884262591600418, -0.0005629669176414609, -0.01932564191520214, -0.02097119204699993, 0.03784764185547829, -0.02454930543899536, -0.004455899819731712, -0.005816826596856117, 0.00790724903345108, -0.016292855143547058, 0.003267181571573019, 0.012112011201679707, 0.014618604443967342, -0.009452343918383121, 0.03321714326739311, 0.011317937634885311, -0.013614053837954998, 0.022195786237716675, 0.03335108235478401, -0.04768267273902893, -0.059431131929159164, -0.018818583339452744, -0.05828307196497917, -0.017096495255827904, 0.012733875773847103, 0.015470080077648163, -0.034422602504491806, -0.0002616017300169915, 0.04297563433647156, 0.023439515382051468, -0.006797459442168474, -0.020244088023900986, 0.025793034583330154, -0.01595800556242466, 0.00969152245670557, -0.003472875105217099, -0.013489680364727974, 0.027457717806100845, -0.02489372156560421, 0.04064125195145607, 0.022731546312570572, 0.012829546816647053, -0.01589103415608406, -0.012743443250656128, 0.04944302886724472, -0.006716138683259487, -0.00523801427334547, -0.009189247153699398, -0.0359342135488987, -0.0262905266135931, -0.02663494274020195, 0.029581625014543533, -0.04316697642207146, -0.012025906704366207, -0.020588506013154984, -0.012848681770265102, 0.02655840665102005, 0.04416196048259735, 0.05713501572608948, 0.020760713145136833, -0.03715880960226059, 0.04802709072828293, -0.019134297966957092, 0.032738786190748215, -0.01416894793510437, 0.012733875773847103, 0.043587930500507355, -0.008658270351588726, -0.05801519379019737, -0.0018345009302720428, 0.02301856130361557, 0.01968919299542904, -0.032509174197912216, -0.034518275409936905, 0.003582897363230586, -0.005376738030463457, 0.008509979583323002, -0.009567148983478546, -0.016465064138174057, 0.016340691596269608, 0.04289909824728966, 0.020378027111291885, 0.004714212846010923, 0.01147101167589426, 0.03241350129246712, 0.017086928710341454, -0.00751977926120162, 0.07443241775035858, 0.026941092684864998, 0.018866417929530144, -0.03023219108581543, 0.04251641035079956, 0.009949835017323494, -0.012619069777429104, 0.005228447262197733, -0.020033610984683037, -0.02320990338921547, -0.008026838302612305, -0.00016712614160496742, 0.026271391659975052, -0.032949261367321014, 0.04377927631139755, 0.0527723953127861, -0.007242332212626934, 0.014771678484976292, 0.01413067989051342, -0.016761645674705505, 0.018522001802921295, 0.020531103014945984, -0.018215851858258247, 0.02328644134104252, -0.007256682496517897, 0.01953611895442009, 0.005615916568785906, -0.013508814387023449, 0.02137301117181778, 0.0264053326100111, 0.01497258897870779, -0.006902698427438736, -0.005912498105317354, -0.026137452572584152, 0.0007157423533499241, 0.009614985436201096, 0.04309044033288956, -0.039531461894512177, -0.00010964849934680387, 0.03126544505357742, 0.010858714580535889, -0.020052744075655937, -0.01059083454310894, -0.038000717759132385, 0.005041887518018484, -0.004757265094667673, -0.013040024787187576, -0.030978430062532425, -0.008897448889911175, -0.008251666091382504, -0.032585710287094116, 0.009968969970941544, 0.05820653587579727, -0.047032106667757034, -0.012150279246270657, -0.0010589638259261847, 0.014676007442176342, 0.0016706634778529406, -0.024511035531759262, 0.0131835313513875, 0.0061086248606443405, 0.04389408230781555, -0.0037048785015940666, 0.003075838554650545, 0.05548946559429169, 0.011136162094771862, 0.04018202796578407, -0.004592231474816799, -0.013384441845119, -0.005563297308981419, 0.00153433158993721, 0.020741580054163933, 0.006213863380253315, 0.003260006196796894, 0.011136162094771862, 0.01965092495083809, 0.00286057754419744, 0.01933520846068859, -0.0024826752487570047, -0.028012612834572792, -0.02477891743183136, 0.030557474121451378, -0.00264053326100111, 0.004190411418676376, 0.01411154493689537, 0.01065780408680439, 0.040220294147729874, -0.03233696520328522, -0.010428193025290966, -0.004745305981487036, -0.04485079646110535, 0.005290633533149958, -0.002566387876868248, 0.026080049574375153, 0.009461910463869572, 0.022655010223388672, 0.018435897305607796, 0.0017196950502693653, 0.0022064237855374813, 0.013403575867414474, -0.012676472775638103, -0.03403991833329201, 0.03369550034403801, 0.008122509345412254, -0.020052744075655937, 0.013097427785396576, 0.02110513113439083, 0.014388992451131344, 0.04423849657177925, -0.006586982402950525, 0.007438458502292633, -0.006218647118657827, 0.04198065027594566, -0.005917281843721867, -0.05200702324509621, 0.013547083362936974, -0.008993119932711124, 0.059507668018341064, -0.013097427785396576, -0.022176651284098625, 0.04488906264305115, 0.04205719009041786, -0.0004224494332447648, 0.0053193350322544575, -0.016407661139965057, -0.016426796093583107, -0.0001765438064467162, 0.005434140563011169, 0.03403991833329201, 0.020569371059536934, 0.009380590170621872, -0.02655840665102005, -0.003341326955705881, 0.016455497592687607, -0.0009919938165694475, -0.012599935755133629, 0.03203081712126732, -0.02148781716823578, 0.0024826752487570047, -0.021985309198498726, 0.003169118193909526, 0.008476493880152702, -0.00619472935795784, -0.009040956385433674, -0.025295542553067207, 0.04263121634721756, -0.006845295429229736, -0.03417385742068291, 0.04259295016527176, -0.025639960542321205, -0.011872832663357258, 0.026271391659975052, -0.018694208934903145, -0.037905044853687286, 0.00526671577244997, 0.01143274363130331, -0.017115630209445953, -0.01503955852240324, -0.01607281155884266, 0.005132775753736496, -0.007567615248262882, 0.02131560817360878, -0.011337071657180786, 0.009710656479001045, -0.05013186112046242, -0.008395173586905003, 0.01929694041609764, -0.019009925425052643, -0.027821270748972893, -0.021947041153907776, -0.007161011453717947, 0.014991723001003265, -0.006170811131596565, -0.03671871870756149, 0.017316540703177452, -0.004790749866515398, 0.0007976610795594752, 0.010418625548481941, 0.031208040192723274, -0.013700157403945923, 0.0013011322589591146, 0.012006772682070732, 0.016283288598060608, -0.004310000687837601, -0.014149813912808895, 0.034613944590091705, 0.010801311582326889, -0.004046903923153877, 0.00266923476010561, 0.021564355120062828, 0.04890726879239082, -0.023726530373096466, -0.04588404670357704, -0.03206908330321312, -0.023898739367723465, 0.0019528943812474608, 0.01149014662951231, 0.0027601225301623344, 0.001563032972626388, 0.000700195727404207, -0.027763867750763893, 0.032719649374485016, 0.009423642419278622, 0.014063709415495396, -0.001039829570800066, -0.016426796093583107, 0.022329727187752724, 0.041368354111909866, -0.04381754249334335, 0.029696431010961533, 0.02475978247821331, 0.03025132603943348, -0.05457102134823799, -0.0046113659627735615, -0.002729029394686222, -0.0018560269381850958, 0.018483731895685196, 0.036240361630916595, -0.010552565567195415, -0.02146868221461773, -0.023401247337460518, -0.011145728640258312, -0.052274905145168304, -0.020511968061327934, -0.0030949728097766638, 0.010026372037827969, 0.004429589956998825, 0.010122044011950493, 0.01600584015250206, -0.01612064614892006, 0.011346639133989811, -0.030653147026896477, -0.0035278862342238426, 0.034767020493745804, -0.023382112383842468, -0.05529812350869179, -0.027323778718709946, -0.011183997616171837, 0.015393543057143688, 0.045042138546705246, -0.03141851723194122, 0.012064175680279732, -0.053078543394804, -0.0043937130831182, 0.00010479018237674609, 0.00667787017300725, 0.013097427785396576, -0.018234986811876297, -0.004886421374976635, -0.04921341687440872, 0.028012612834572792, 0.039722803980112076, -0.005979468114674091, 0.004343485925346613, -0.01415938138961792, 0.04749133065342903, 0.005419790279120207, 0.02807001583278179, -0.010705639608204365, 0.009337537921965122, 0.01576666161417961, -0.024051813408732414, 0.03419299051165581, 0.005147126503288746, 0.0026046563871204853, 0.06727619469165802, -0.013814963400363922, -0.015651855617761612, 0.0037933746352791786, 0.08266016840934753, -0.010102909989655018, -0.009696305729448795, -0.010303819552063942, -0.002227949909865856, -0.04978744313120842, -0.029371147975325584, -0.039990682154893875, -0.027304643765091896, 0.01957438699901104, 0.029505088925361633, 0.0030327863059937954, 0.013059158809483051, -0.005945983342826366, 0.032681383192539215, -0.0032791404519230127, -0.026156585663557053, 0.004329135175794363, -0.023898739367723465, -0.016847750172019005, -0.03327454626560211, 0.016560735180974007, 0.020014476031064987, 0.006170811131596565, -0.0360681526362896, 0.03206908330321312, -0.007711122278124094, -0.03719707578420639, -0.025563422590494156, -0.036412570625543594, -0.010887416079640388, 0.013547083362936974, -0.01140404213219881, -0.024070948362350464, -0.0359150767326355, -0.007754174526780844, -0.002705111401155591, 0.046725958585739136, 0.013929769396781921, 0.007586749270558357, -0.018110614269971848, 0.02841443382203579, 0.06176551431417465, -0.014149813912808895, -0.01231292076408863, 0.012934786267578602, -0.008581733331084251, -0.01059083454310894, -0.0069170487113296986, 0.029313744977116585, 0.005381521303206682, 0.027591658756136894, 0.001157625112682581, 0.018579404801130295, 0.005348036531358957, -0.03415472432971001, -0.015345707535743713, 0.04289909824728966, -0.029485953971743584, 0.0009339929674752057, 0.005415006540715694, 0.00895006861537695, 0.023956142365932465, 0.004819451365619898, 0.010189013555645943, -0.0043674036860466, -0.0036474757362157106, -0.0358385406434536, 0.06241608038544655, 0.04251641035079956, 0.0012652555014938116, -0.029313744977116585, 0.034843556582927704, 0.010361222550272942, -0.01624501869082451, -0.027591658756136894, -0.0019995342008769512, -0.01435072347521782, 0.041674502193927765, 0.00806032307446003, -0.02150695212185383, -0.0018105830531567335, -0.016551168635487556, -0.0044224145822227, -0.016828615218400955, -0.013011323288083076, -0.013106994330883026, 0.0032002113293856382, 0.016599003225564957, -0.03886175900697708, -0.00406603841111064, -0.01154754962772131, 0.017287839204072952, -0.006132542621344328, 0.0009202401852235198, 0.05801519379019737, -0.03363809734582901, -0.027783000841736794, 0.007998136803507805, -0.01575709506869316, 7.418277527904138e-05, -0.0089070163667202, 0.027668194845318794, -0.01604411005973816, 0.047146912664175034, -0.029792102053761482, -0.009270567446947098, 0.007342786993831396, -0.013508814387023449, 0.02290375530719757, -0.03683352470397949, 0.03182033821940422, 0.010523864068090916, -0.0016359825385734439, 0.016474630683660507, 0.008710889145731926, -0.006333452649414539, 0.05828307196497917, -0.00987329799681902, 0.02477891743183136, 0.027476852759718895, 0.0014637738931924105, -0.03214562311768532, -0.02091378904879093, -0.06371721625328064, 0.010849147103726864, 0.040143758058547974, -0.006271266378462315, -0.005539379548281431, 0.02454930543899536, 0.009461910463869572, 0.0035948562435805798, -0.007845062762498856, 0.012465995736420155, 0.024013545364141464, -0.010734341107308865, 0.031131504103541374, 0.003353285836055875, -0.052313171327114105, -0.010160312987864017, 0.012198115698993206, 0.024262290447950363, 0.006864429451525211, -0.012800845317542553, 0.01799580827355385, 0.00813207682222128, -0.004702253732830286, -0.027266375720500946, 0.03400164842605591, 0.01326006930321455, 0.004245422314852476, 0.024032678455114365, 0.009409291669726372, -0.0032815320882946253, -0.033083200454711914, -0.043396588414907455, -0.019029060378670692, -0.018713343888521194, 0.011633653193712234, 0.004790749866515398, 0.013747993856668472, 0.007706338539719582, 0.006783108692616224, 0.0003710260207299143, -0.02462584152817726, 0.02120080217719078, -0.0018536351853981614, 0.005711588077247143, 0.04622846469283104, 0.014360290952026844, 0.01626415364444256, 0.022406263276934624, -0.0071083917282521725, 0.027744732797145844, 0.048448044806718826, 6.65963307255879e-05, -0.0014613820239901543, 0.020186685025691986, 0.009514530189335346, 0.016484199091792107, 0.04787401482462883, -0.0010350459488108754, -0.02129647508263588, -0.016886018216609955, 0.019899670034646988, 0.004556355066597462, -0.03369550034403801, 0.03876608982682228, -0.013671455904841423, 0.013747993856668472, -0.0035135354846715927, 0.020894654095172882, 0.020511968061327934, -0.02324817329645157, -0.007969435304403305, 0.0699549987912178, 0.013394009321928024, -0.040067221969366074, 0.020033610984683037, -0.022616740316152573, 0.0020019260700792074, -0.03417385742068291, 0.0011887182481586933, 0.04431503638625145, -0.05185394734144211, -0.05614003166556358, -0.011346639133989811, 0.026711480692029, -0.004941432736814022, 0.04289909824728966, -0.008576949127018452, 0.04974917694926262, 0.02311423234641552, 0.009337537921965122, -0.023477783426642418, -0.011107460595667362, 0.009155761450529099, 0.009710656479001045, 0.01576666161417961, -0.015460513532161713, 0.01967005804181099, -0.007027070969343185, 0.003613990731537342, -0.008266016840934753, 0.004077997524291277, 0.01788100227713585, -0.022195786237716675, 0.0032552224583923817, 0.06811810284852982, -0.016790347173810005, 0.0018667900003492832, 0.001274822629056871, 0.009538447484374046, 0.010810879059135914, 0.020492833107709885, 0.002676409902051091, 0.02472151443362236, -0.04752959683537483, -0.04044990614056587, 0.0349774993956089, 0.012714741751551628, 0.03145678713917732, 0.04397061839699745, 0.06142110005021095, -0.028988461941480637, 0.008093807846307755, -0.03386770933866501, 0.0019026667578145862, -0.005888580344617367, -0.004790749866515398, -0.008940501138567924, 0.0021789183374494314, 0.015460513532161713, 0.038134656846523285, -0.0025926975067704916, -0.018081912770867348, 0.00036534550599753857, 0.00977762695401907, -0.012982621788978577, 0.013097427785396576, 0.0016622921684756875, 0.005285849794745445, 0.0021406495943665504, 0.003405905095860362, 0.007481510750949383, 0.008730024099349976, -0.04982571303844452, -0.007218413986265659, -0.01414024643599987, -0.023669127374887466, -0.018474165350198746, 0.012035474181175232, 0.016799913719296455, 0.01231292076408863, -0.005108857527375221, 0.03212648630142212, -0.009423642419278622, -0.00035278862924315035, -0.016350258141756058, 0.0179766733199358, -0.009256216697394848, -0.01924910396337509, -0.006520012393593788, 0.005348036531358957, 0.027342911809682846, -0.005611132830381393, 0.01576666161417961, -0.00978719349950552, 0.002485067117959261, 0.0004831410478800535, -0.025104200467467308, 0.030614877119660378, 0.004463075194507837, -0.03344675526022911, 0.014025440439581871, 0.008993119932711124, -0.011509280651807785, 0.07404973357915878, -0.00717536173760891, -0.0016359825385734439, 0.009375805966556072, -0.01411154493689537, -0.005123208276927471, 0.03700573369860649, -0.002999301301315427, -0.008500412106513977, -0.01613021455705166, -0.0037503226194530725, -0.009433208964765072, -0.025754766538739204, -0.009514530189335346, 0.014666439965367317, 0.010083775036036968, -0.02307596430182457, 0.023975275456905365, -0.00027640091138891876, 0.00874915812164545, -0.027266375720500946, 0.020894654095172882, 0.012112011201679707, 0.015537050552666187, 0.01506826002150774, 0.021621758118271828, 0.0024587572552263737, -0.026960225775837898, 0.017240002751350403, -0.0005656576831825078, 0.0013465762604027987, 0.01254253275692463, 0.01972746104001999, -0.013709724880754948, 0.006266482640057802, -0.003391554346308112, -0.053652573376894, -0.00201986450701952, -0.020091013982892036, -0.007467160001397133, -0.02498939447104931, 0.017278270795941353, 0.031016698107123375, 0.008591299876570702, -0.04236333817243576, -0.0033006665762513876, -0.012733875773847103, 0.02288462035357952, -0.0348818264901638, -0.00580725958570838, -0.01326006930321455, -0.018885552883148193, -0.005013186018913984, -0.056101761758327484, 0.0009082812466658652, 0.033064067363739014, 0.011920668184757233, -0.004659201484173536, -0.026309659704566002, 0.01411154493689537, -0.0043961051851511, -0.014695141464471817, -0.03409732133150101, -0.009337537921965122, 0.01323136780411005, 0.02127734012901783, -0.004391321446746588, -0.03170553222298622, -0.0030471370555460453, -0.013795829378068447, -0.007749390788376331, 0.008868747390806675, 0.023898739367723465, 0.023630859330296516, -0.010112476535141468, -0.011758026666939259, -0.010877848602831364, 0.016981689259409904, 0.03382943943142891, 0.016378959640860558, 0.00670657167211175, 0.025180736556649208, -0.021908771246671677, -0.007146660704165697, -0.0029610327910631895, 0.0012293786276131868, -0.03176293522119522, -0.0011624086182564497, -0.018464598804712296, 0.01605367660522461, -0.02125820517539978, 0.02271241322159767, -0.02674974873661995, 0.019899670034646988, 0.016857316717505455, 0.0008753941510803998, 0.030595744028687477, 0.027936076745390892, -0.02114339917898178, -0.020626774057745934, 0.016321556642651558, -0.008576949127018452, 0.000435006309999153, -0.017010390758514404, -0.0018380885012447834, 0.024300558492541313, 0.03182033821940422, -0.02807001583278179, 0.011222265660762787, -0.018148882314562798, -0.01414024643599987, -0.03195427730679512, 0.033025797456502914, 0.02456843852996826, 0.004668768960982561, 0.0021430414635688066, 0.03159072622656822, 0.02665407769382, 0.005061022005975246, -0.006845295429229736, -0.004960566759109497, 0.0349966324865818, -0.0353410504758358, 0.0019098421325907111, -0.0013908243272453547, -0.0065630641765892506, 0.010466461069881916, -0.0008664249326102436, 0.001171377836726606, 0.018292389810085297, -0.02829962782561779, 0.034422602504491806, -0.030882757157087326, -0.010313387028872967, -0.018416762351989746, 0.003618774237111211, 0.0029179805424064398, -0.00706533994525671, 0.011710191145539284, 0.05101203918457031, -0.000342922518029809, 0.011040490120649338, 0.02143041417002678, 0.002453973749652505, -0.020091013982892036, -0.002779256785288453, 0.017144331708550453, -0.004233463667333126, 6.226121331565082e-05, 0.0003548814565874636, 0.003929706756025553, -0.02479805052280426, 0.0177279282361269, -0.023362979292869568, 0.006429124157875776, -0.029352014884352684, -0.006271266378462315, -0.02506593056023121, 0.031361114233732224, 0.0028725366573780775, 0.02843356691300869, 0.002683585276827216, 0.004379362799227238, -0.02474064752459526, 0.0008389194263145328, -0.014235918410122395, -0.020282356068491936, -0.00664916867390275, 0.0021777222864329815, -0.004058863036334515, -0.010102909989655018, 0.02114339917898178, -0.03771370276808739, 0.004166493657976389, -0.0015977139119058847, 0.019823133945465088, 0.005386305041611195, 0.027629926800727844, -0.006763974670320749, 0.009418858215212822, -0.04209545627236366, 0.004946216009557247, 0.036221228539943695, -0.004565922077745199, 0.012293786741793156, -0.007687204517424107, 0.029677297919988632, -0.004185627680271864, 0.01047602854669094, 0.016799913719296455, -0.029218073934316635, -0.003348502330482006, 0.010992654599249363, -0.045118674635887146, -0.022731546312570572, 0.02282721735537052, -0.07619277387857437, -0.005199745763093233, 0.015508349053561687, -0.03025132603943348, -0.0017747061792761087, -0.02665407769382, 0.0029084132984280586, -0.016579870134592056, 0.0017687267391011119, -0.014723842963576317, -0.03214562311768532, 0.02870144695043564, 0.020741580054163933, -0.007027070969343185, 0.009519313462078571, -0.027610793709754944, 0.039531461894512177, -0.018273254856467247, 0.013881933875381947, -0.011738891713321209, 0.05652271956205368, -0.014838648959994316, 0.003429823089390993, 0.029390282928943634, 0.004226288292557001, -0.013499247841536999, -0.0022889403626322746, 0.003164334688335657, 0.0008951264317147434, 0.00990199949592352, -0.022387130185961723, -0.010370790027081966, 0.004173669032752514, -0.02102859504520893, 0.012676472775638103, -0.02481718547642231, 0.023516053333878517, 0.022769814357161522, -0.054150063544511795, -0.018990790471434593, -0.02298029325902462, -0.01320266630500555, -0.02135387808084488, 0.025314677506685257, 0.011002222076058388, -0.010284685529768467, -0.020014476031064987, 0.01603454165160656, -0.01596757210791111, -0.0003997274616267532, -0.020722445100545883, -0.016943421214818954, 0.02154522016644478, -0.006921832449734211, 0.009323187172412872, 0.03394424542784691, -0.014704708009958267, 0.0180053748190403, -0.023477783426642418, -0.00265488401055336, -0.023362979292869568, -0.003252830822020769, 0.006520012393593788, -0.026041779667139053, -0.0264627356082201, 0.032662246376276016, 0.023898739367723465, -0.0011438722722232342, -0.0029682081658393145, -0.007161011453717947, -0.03304493427276611, 0.013891500420868397, 0.015106528997421265, 0.004661593586206436, 0.0035494123585522175, -0.004171276930719614, -0.018301956355571747, -0.029026729986071587, 0.03337021544575691, 0.032738786190748215, 0.040143758058547974, 0.0008568578050471842, 0.002094009891152382, 0.009366239421069622, -0.010456894524395466, -0.002235125284641981, 0.01054299809038639, 0.004774007480591536, -0.026003511622548103, 0.01804364286363125, -0.015613587573170662, 0.03912964090704918, -0.011576250195503235, 0.01328877080231905, -0.025735631585121155, -0.023420382291078568, -0.005434140563011169, 0.01320266630500555, -0.014035007916390896, -0.016369393095374107, -0.00011271297989878803, -0.019009925425052643, -0.00045772831072099507, 0.014494230970740318, 0.018502866849303246, -0.0005758227780461311, 0.029658162966370583, -0.023707395419478416, -0.007902465760707855, -0.010275118052959442, 0.019765730947256088, 0.03382943943142891, 0.020091013982892036, 0.00011353515583323315, -0.011030923575162888, 0.008548247627913952, 0.03702486678957939, 0.013374874368309975, 0.005902931094169617, 0.0027242456562817097, 0.006103841122239828, -0.01608237810432911, 0.03145678713917732, 0.006950533948838711, -0.007811577524989843, 0.01603454165160656, -0.04439157247543335, 0.01792883686721325, -0.041444890201091766, -0.01970832794904709, -0.018675075843930244, 0.005606349557638168, -0.03736928477883339, -0.010724774561822414, -0.029428550973534584, 0.04634327068924904, 0.01518306601792574, -0.001533135655336082, 0.03342761844396591, 0.022501934319734573, 0.008414307609200478, -0.00972979050129652, -0.016522467136383057, -0.012322488240897655, -0.008275584317743778, -0.013757560402154922, -0.04240160435438156, -0.017000824213027954, -0.015163931995630264, 0.006371721625328064, -0.03717794269323349, 0.01613978110253811, -0.006338236387819052, -0.024090081453323364, -0.00797900278121233, 0.0016599004156887531, -0.025372080504894257, -0.06677870452404022, -0.043626200407743454, -0.03185860812664032, -0.010935251601040363, -0.005056238267570734, 0.006697004660964012, 0.025888705626130104, -0.014465529471635818, 0.018388060852885246, -0.0178044643253088, -0.03229869529604912, 0.041865844279527664, 0.000154718742123805, -0.0006427928456105292, -0.008356904610991478, -0.013212232850492, -0.009251433424651623, -0.005816826596856117, 0.020511968061327934, 0.030461803078651428, 0.02851010486483574, 0.026424465700984, 0.027553390711545944, 0.019038626924157143, -0.015374409034848213, -0.043320052325725555, 0.011604951694607735, -0.005596782546490431, -0.05885710194706917, -0.01970832794904709, 0.006328669376671314, 0.04442984238266945, -0.00490794749930501, -0.011719757691025734, 0.007696771528571844, -0.022138383239507675, 0.020033610984683037, 0.034900959581136703, 0.0013214624486863613, -0.01796710677444935, -0.005926848854869604, -0.002992125926539302, -0.0017340457998216152, -0.008285150863230228, -0.009428425692021847, -0.02114339917898178, 0.011738891713321209, 0.016254587098956108, 0.007778092287480831, -0.00378859112970531, 0.010447327047586441, -0.015383975580334663, 0.039799340069293976, -0.03669958561658859, 0.002463540993630886, -0.0019923588261008263, -0.008151210844516754, 0.006094274111092091, 0.020741580054163933, -0.019067328423261642, -0.016924286261200905, -0.027649061754345894, 0.01060040108859539, -0.008940501138567924, 0.0008981161518022418, 0.0021262988448143005, -0.009170112200081348, 0.0011988834012299776, 0.01064823754131794, 0.013470546342432499, 0.02133474312722683, -0.0071083917282521725, -0.04427676647901535, -0.017144331708550453, -0.011758026666939259, -0.032987531274557114, -0.00980632845312357, -0.0063669378869235516, 0.005123208276927471, 0.016532033681869507, -0.009342321194708347, -0.01575709506869316, -0.010830013081431389, -0.009681954979896545, 0.009519313462078571, -0.027036763727664948], "id": 46}, {"title": "Vitelline membrane", "text": "The vitelline membrane is a structure directly adjacent to the outer surface of the plasma membrane of an ovum. It is composed mostly of protein fibers, with protein receptors needed for sperm binding which, in turn, are bound to sperm plasma membrane receptors.", "vector": [-0.056395791471004486, 0.0002140840661013499, -0.0029928055591881275, 0.029788170009851456, -0.019245248287916183, 0.021085841581225395, 0.02456088364124298, -0.025665240362286568, -0.025356018915772438, -0.03645848110318184, 0.030863076448440552, 0.06461220234632492, 0.0029375876765698195, -0.03371967747807503, -0.014827823266386986, 0.052479010075330734, -0.006519383285194635, 0.005823638755828142, -0.03115757182240486, -0.014032687060534954, -0.007137822452932596, -0.0053414031863212585, -0.0068470085971057415, -0.0015497799031436443, 0.027461659163236618, 0.0004465740639716387, 0.008142787031829357, 0.00024387867597397417, -0.009298679418861866, 0.037842608988285065, 0.013797091320157051, 0.012670647352933884, 0.03198215737938881, 0.03731251507997513, -0.03133426979184151, -0.02248469367623329, -0.0656723827123642, 0.0013169448357075453, 0.02635730244219303, -0.0650244951248169, 0.05377478897571564, 0.028006475418806076, -0.00337012717500329, 0.015932179987430573, -0.0058310008607804775, 0.04037526622414589, 0.015770208090543747, 0.024619782343506813, -0.023265104740858078, -0.021777905523777008, 0.07391824573278427, 0.005094763357192278, 0.011153997853398323, 0.020290706306695938, -0.025915559381246567, 0.0031915896106511354, -0.006283787079155445, 0.07656870037317276, -0.0004104523977730423, -0.05230231210589409, -0.02186625450849533, -0.0055806804448366165, -0.0005876095383428037, 0.003151096636429429, 0.009747784584760666, 0.04299626871943474, -0.0053229969926178455, -0.024737579748034477, -0.004767138045281172, 0.023559600114822388, 0.03280674293637276, -0.015475712716579437, -0.0020412185695022345, 0.0013381117023527622, -0.03801930323243141, 0.045646727085113525, -0.0008328686817549169, 0.04013966768980026, 0.026460375636816025, -0.02210184931755066, -0.016845114529132843, 0.01830286532640457, -0.0018378328531980515, 0.049210116267204285, 0.03863774612545967, 0.014238833449780941, 0.02905193157494068, -0.030627479776740074, -0.02961147204041481, -0.011750350706279278, 0.009983380325138569, 0.04611791670322418, 0.019907861948013306, 0.032129403203725815, 0.01046929694712162, 0.0058346823789179325, 0.05866340547800064, 0.0005728848045691848, -0.02064410038292408, 0.004829718265682459, 0.0007877741591073573, -0.008113337680697441, -0.006486252415925264, 0.015254841186106205, -0.01348050870001316, 0.021763181313872337, 0.022352170199155807, -0.03536884859204292, 0.017124883830547333, 0.007318201009184122, -0.007299794815480709, -0.03645848110318184, 0.03268894553184509, -0.03048023208975792, 0.002087233355268836, -0.020526301115751266, -0.06101936474442482, 0.04025746509432793, -0.04332021623849869, -0.0057868268340826035, 0.04479268938302994, -0.019215798005461693, -0.009283955208957195, 0.018391212448477745, -0.021071117371320724, 0.005418708082288504, -0.03607563674449921, 0.014805736020207405, 0.022249097004532814, 0.015284290537238121, -0.02693156711757183, -0.007502260152250528, 0.04314351826906204, 0.009276592172682285, 0.0262984037399292, -0.0001463272055843845, 0.001481677987612784, 0.02696101740002632, -0.012236267328262329, 0.060901567339897156, -0.011492667719721794, 0.01584383100271225, -0.025841936469078064, 0.07768778502941132, 0.005297228693962097, -0.05186057090759277, -0.02300005964934826, 0.00709732947871089, 0.02628367953002453, -0.031039772555232048, 0.040581412613391876, -0.051330480724573135, 0.01509286928921938, 0.013215463608503342, -0.007020024582743645, -0.048945069313049316, 0.011603103019297123, -0.010690168477594852, 0.0904688611626625, 0.009909756481647491, 0.0017881368985399604, -0.05716148018836975, -0.06802834570407867, 0.0016730997012928128, 0.030067939311265945, -0.017772773280739784, -0.001262647332623601, -0.005808914080262184, -0.03698857128620148, -0.005661666393280029, -0.003533940063789487, -0.009063083678483963, -0.0018599199829623103, -0.021777905523777008, -0.015726033598184586, -0.010395674034953117, -0.016506444662809372, 0.020747173577547073, -0.015056056901812553, -0.04464544355869293, -0.007980814203619957, -0.0395212285220623, 0.01541681308299303, 0.015637684613466263, -0.006302193272858858, 0.016977636143565178, 0.0009156953892670572, 0.02336817793548107, -0.012022758834064007, -0.0191127248108387, 0.027667805552482605, -0.0066408622078597546, 0.07621530443429947, 0.031245918944478035, 0.024958452209830284, -0.032747846096754074, 0.02039377950131893, 0.010866865515708923, -0.0017356799216941, -0.05085928738117218, -0.009040996432304382, -0.01640337146818638, -0.00303145800717175, 0.02962619811296463, -0.05227286368608475, 0.04223058372735977, -0.018641533330082893, -0.05981193482875824, -0.025208773091435432, -0.03790150582790375, -0.004340120125561953, -0.0205851998180151, -0.013789728283882141, 0.0395212285220623, -0.03321903571486473, -0.01939249597489834, -0.05780936777591705, -0.0911167562007904, 0.03286564350128174, 0.020806072279810905, -0.02179262973368168, 0.021174190565943718, 0.010108540765941143, 0.027137715369462967, -0.019893137738108635, -0.02065882459282875, -0.012405602261424065, -0.03410252183675766, -0.029493674635887146, -0.006033466197550297, 0.01178716216236353, 0.0025621065869927406, 0.05557120591402054, -0.03472096100449562, -0.05651359260082245, -0.04334966465830803, 0.0347798615694046, -0.014312457293272018, 0.02487010322511196, -0.03919728472828865, 0.053156349807977676, -0.027711980044841766, -0.005779464263468981, 0.0006865414907224476, -0.004086118191480637, 0.023471251130104065, -0.041759390383958817, 0.003533940063789487, -0.01647699624300003, -0.026740146800875664, 0.07268136739730835, -0.012089019641280174, 0.04214223474264145, 0.03221775218844414, 0.02484065294265747, 0.053068000823259354, -0.0061034089885652065, -0.038137104362249374, -0.05474662035703659, 0.010270513594150543, -0.010999388061463833, 0.0023320321924984455, -0.004995371680706739, 0.009099895134568214, 0.010955214500427246, -0.0188624057918787, 0.03698857128620148, -0.009629986248910427, 0.016638968139886856, 0.00433275755494833, 0.006489933468401432, -0.021984051913022995, 0.042024437338113785, -0.023485977202653885, 0.019878413528203964, 0.04847387596964836, 0.004251771606504917, -0.013509958051145077, 0.01646227017045021, -0.01046929694712162, -0.005028502084314823, -0.016580069437623024, -0.05203726515173912, -0.0009626305545680225, 0.018700432032346725, 0.05719092860817909, 0.006802834570407867, -0.027711980044841766, -0.026563448831439018, -0.02036432921886444, -0.0013555972836911678, 0.03445591405034065, -0.016020528972148895, -0.01734575629234314, 0.021925153210759163, 0.017154334113001823, -0.02933170273900032, 0.0032136766240000725, -0.029537849128246307, -0.0329834409058094, -0.0008775030728429556, -0.005632217042148113, -0.028845785185694695, 0.023500701412558556, -0.023132583126425743, -0.01858263462781906, -0.023839371278882027, 0.03374912589788437, 0.05336249619722366, -0.020761897787451744, 0.056101299822330475, 0.01121289748698473, 0.022337445989251137, -0.05295019969344139, -0.005205199122428894, -0.040522512048482895, -0.008194323629140854, -0.006044509820640087, 0.036664627492427826, 0.010115903802216053, -0.013892801478505135, 0.014680575579404831, -0.006353729870170355, 0.012339340522885323, 0.05810386314988136, 0.015549336560070515, 0.009791959077119827, -0.03704747185111046, 0.019053826108574867, 0.013863352127373219, -0.05716148018836975, 0.0048002684488892555, -0.03533940017223358, 0.011242346838116646, 0.003018573857843876, 0.02782977744936943, 0.026475099846720695, 0.009313404560089111, -0.008474093861877918, -0.00956372544169426, 0.02005510963499546, -0.003924145828932524, 0.019834239035844803, -0.011838698759675026, -0.037842608988285065, -0.03949178010225296, 0.011603103019297123, -0.012000671587884426, -0.0032891409937292337, -0.018774056807160378, 0.0007049473933875561, -0.015313739888370037, -0.02725551277399063, -0.011021475307643414, 0.03112812153995037, 0.003983044996857643, 0.0073439693078398705, -0.022617215290665627, 0.040522512048482895, 0.02927280403673649, -0.018788781017065048, 0.013951701112091541, 0.03209995478391647, 0.047413695603609085, -0.053656987845897675, -0.01272218395024538, -0.027682529762387276, 0.006519383285194635, 0.05589514970779419, -0.02008455991744995, 0.0034308668691664934, -0.04544058069586754, 0.022823363542556763, 0.06425880640745163, -0.033366285264492035, -0.02419276535511017, 0.006132858339697123, -0.030362434685230255, 0.06985421478748322, 0.026254229247570038, 0.010793241672217846, -0.05289130285382271, -0.03207050636410713, -0.011131911538541317, 0.028286244720220566, -0.025046799331903458, -0.0001016928072203882, -0.04570562392473221, -0.03448536619544029, 0.03048023208975792, -0.015446262434124947, 0.0073550124652683735, 0.0400218702852726, -0.003931508399546146, 0.06714486330747604, -0.005046908278018236, -0.0022896986920386553, 0.037842608988285065, -0.026372026652097702, 0.020261256024241447, 0.0066445437259972095, 0.01033677440136671, 0.011448493227362633, -0.035987287759780884, 0.10012830048799515, -0.014636402018368244, 0.022366896271705627, -0.006950082257390022, 0.020864970982074738, -0.02008455991744995, 0.033955272287130356, -0.04667745903134346, -0.006037147715687752, -0.03660573065280914, -0.01822924055159092, 0.01540208887308836, 0.005297228693962097, -0.01332589890807867, 0.03796040639281273, -0.022852811962366104, -0.0036278103943914175, -0.0509476363658905, -0.019922586157917976, 0.035427749156951904, 0.009526913054287434, 0.018950752913951874, -0.040551960468292236, -0.005753695964813232, -0.026165880262851715, 0.05792716518044472, -0.031540416181087494, -0.008731776848435402, 0.016594793647527695, -0.011315970681607723, 0.021380336955189705, -0.05047644302248955, 0.04667745903134346, -0.030745279043912888, 0.016815664246678352, -0.025032075121998787, 0.005337722133845091, 0.01374555379152298, -0.056660838425159454, 0.03698857128620148, -0.046795256435871124, -0.04064030945301056, 0.020717723295092583, -0.038991138339042664, 0.04974020645022392, 0.0043106707744300365, 0.04600011929869652, 0.006033466197550297, -0.02749110758304596, 0.0013132636668160558, 0.023530149832367897, 0.012339340522885323, 0.03919728472828865, -0.012206817977130413, -0.00022340206487569958, 0.013465783558785915, -0.04602956771850586, 0.0019013333367183805, 0.07597970962524414, -0.03533940017223358, 0.009107258170843124, -0.0027608906384557486, 0.028183171525597572, 0.029449500143527985, 0.016992362216114998, -0.02157175913453102, 0.04794378578662872, 0.008790675550699234, -0.07327035814523697, 0.016992362216114998, 0.04255452752113342, -0.04464544355869293, 0.013981150463223457, 0.04128820076584816, -0.010822691023349762, 0.023559600114822388, 0.05713203176856041, 0.047354795038700104, -0.016094151884317398, 0.05692588537931442, -0.026224780827760696, 0.020747173577547073, 0.05065314099192619, 0.010461934842169285, 0.03295399248600006, -0.020850246772170067, 0.05047644302248955, 0.0026688610669225454, 0.0550411157310009, -0.015549336560070515, -0.03433811664581299, 0.007391824387013912, 0.013414246961474419, 0.02628367953002453, -0.0014632720267400146, 0.04782598838210106, -0.013495233841240406, 0.05981193482875824, 0.013414246961474419, 0.06478890031576157, 0.02002565935254097, 0.036340683698654175, -0.016624242067337036, -0.013694017194211483, 0.034249767661094666, 0.009350216016173363, -0.01789057068526745, 0.009644711390137672, 0.026165880262851715, 0.056395791471004486, 0.032718393951654434, -0.011396956630051136, 0.04187718778848648, 0.0024498302955180407, -0.04791433736681938, -0.004472642671316862, -0.005300910212099552, -0.009512188844382763, -0.03224720433354378, 0.01680094003677368, 0.012655923143029213, 0.00641999114304781, 0.017728598788380623, -0.003335156012326479, 0.07868906110525131, 0.008503543213009834, -0.031187020242214203, -0.001177979982458055, 0.04985800385475159, 0.023559600114822388, -0.021174190565943718, 0.006162308156490326, 0.0028878916054964066, -0.014606951735913754, -0.01612360216677189, -0.019657541066408157, 0.02305895835161209, -0.015063419006764889, 0.015784932300448418, -0.03731251507997513, -0.0021958283614367247, -0.002928384579718113, 0.006305874325335026, 0.026843219995498657, -0.009158794768154621, -0.05153662711381912, 0.06437660753726959, -0.04962240904569626, -0.03525105118751526, 0.035751692950725555, 0.005989292170852423, -0.004748731851577759, 0.016874562948942184, 0.020437953993678093, -0.03050968237221241, -0.011919685639441013, 0.0009460651781409979, 0.008871661499142647, 0.02750583365559578, 0.013134476728737354, 0.015284290537238121, 0.049504611641168594, -0.01769915036857128, -0.026475099846720695, -0.029964866116642952, -0.028197895735502243, -0.019495569169521332, -0.014135760255157948, 0.003743767738342285, 0.0413176491856575, 0.006114452611654997, 0.035162702202796936, -0.026813769713044167, 0.0012212339788675308, 0.002582353074103594, 0.013082940131425858, 0.030274085700511932, -0.02626895345747471, 0.02668124809861183, 0.018420662730932236, -0.013789728283882141, -0.0179641954600811, -0.008974735625088215, -0.009342853911221027, -0.0257241390645504, -0.015593510121107101, 0.034897658973932266, -0.022852811962366104, -0.01348050870001316, -0.015284290537238121, 0.0016169616719707847, -0.000775350141339004, 0.005271460395306349, 0.027005191892385483, 0.02330927923321724, 0.030715828761458397, 0.012641198001801968, 0.02336817793548107, 0.010962576605379581, 0.01317128911614418, 0.05616019666194916, 0.022263823077082634, -0.008238498121500015, -0.009144069626927376, 0.0014918012311682105, -0.033366285264492035, -0.061431657522916794, -0.05318579822778702, -0.0027811371255666018, 0.045970670878887177, 0.0006754979258403182, 0.0020633055828511715, -0.013193376362323761, -0.03351353108882904, 0.058781202882528305, 0.02246996946632862, -0.01227307878434658, 0.009048358537256718, 0.035751692950725555, 0.0030701104551553726, -0.020158182829618454, -0.01909800060093403, -0.04125874862074852, -0.024074966087937355, -0.01287679374217987, -0.014422892592847347, 0.03310123831033707, -0.010844778269529343, -0.031216470524668694, -0.01703653670847416, 0.03504490479826927, -0.05350974202156067, -0.009799321182072163, -0.07268136739730835, 0.01510759349912405, -0.008120699785649776, -0.0012506834464147687, -0.030274085700511932, 0.013347986154258251, -0.05627799406647682, -0.009335491806268692, 0.0004463439981918782, 0.027137715369462967, 0.0006538709276355803, 0.003309387480840087, 0.016226675361394882, 0.030892524868249893, 0.00820168573409319, -0.03854939714074135, -0.01641809567809105, 0.004921747837215662, 0.008783313445746899, 0.04108205437660217, -0.023220930248498917, 0.011153997853398323, -0.02305895835161209, 0.004192872438579798, 0.04105260223150253, -0.007513303775340319, 0.004067711997777224, -0.0019455075962468982, -0.025208773091435432, 0.014444979839026928, -0.012030120939016342, 0.011647277511656284, 0.008105974644422531, -0.001233197865076363, -0.024678681045770645, 0.023162031546235085, -0.026828493922948837, 0.028757436200976372, 0.0032007924746721983, -0.023456526920199394, 0.010248426347970963, -0.004572034813463688, 0.007461767178028822, -0.009364941157400608, 0.01731630600988865, 0.02634257823228836, -0.004159742034971714, 0.008429919369518757, -0.005282504018396139, 0.017816947773098946, -0.012648560106754303, -0.0050542703829705715, 0.013362710364162922, 0.012361427769064903, 0.0011586537584662437, 0.008753864094614983, 0.02095331996679306, 0.011934409849345684, 0.007855653762817383, 0.0042296843603253365, -0.008150149136781693, 0.020835520699620247, -0.03380802646279335, -0.0119638592004776, 0.03251224756240845, -0.0006934436969459057, 0.03145206719636917, -0.033660780638456345, 0.024929001927375793, 0.00042793803731910884, -0.013046128675341606, 0.030656930059194565, -0.01880350522696972, 0.011632552370429039, 0.03165821358561516, 0.02360377460718155, -0.007049473933875561, -0.016992362216114998, 0.007973452098667622, -0.011146635748445988, 0.031039772555232048, -0.016697866842150688, -0.008047075942158699, 0.005385577213019133, 0.04812048375606537, -0.0047855437733232975, -0.0055144187062978745, -0.002236321335658431, 0.017169058322906494, 0.023397628217935562, 0.005735290236771107, -0.01406213641166687, -0.006316917948424816, -0.06131386011838913, -0.002595237223431468, 0.006939038634300232, -0.007634783163666725, -0.0008894669590517879, 0.011713538318872452, -0.03769535943865776, 0.04308461770415306, -0.01392961386591196, -0.00472296355292201, -0.020172907039523125, 0.03080417774617672, 0.0024498302955180407, -0.011168722994625568, -0.018450111150741577, -0.07391824573278427, 0.013959063217043877, 0.02336817793548107, -0.034897658973932266, -0.0328361913561821, 0.03133426979184151, 0.01733103021979332, -0.015490436926484108, -0.02691684290766716, 0.04514608532190323, -0.03595783933997154, 0.055217813700437546, -0.0032670539803802967, -0.0017734121065586805, -0.014415530487895012, -0.00254001934081316, 0.016830390319228172, 0.010012829676270485, 0.005757377482950687, -0.016226675361394882, -0.029979592189192772, 0.04600011929869652, -0.0016335269901901484, -0.0005236489232629538, -0.03539830073714256, 0.0068985456600785255, 0.00884221214801073, 0.03704747185111046, -0.04585287347435951, -0.02451670914888382, -0.022941160947084427, -0.0031271688640117645, -0.003003848949447274, 0.006824921816587448, -0.020717723295092583, 0.0008126221364364028, -0.04482213780283928, -0.00619543856009841, -0.039315082132816315, -0.0008618580177426338, -0.029979592189192772, 0.03133426979184151, 0.00030001677805557847, -0.031216470524668694, 0.04340856522321701, 0.012486588209867477, 0.008047075942158699, -0.007170953322201967, -0.002418540185317397, 0.018700432032346725, -0.014687938615679741, -0.018729882314801216, -0.028197895735502243, 0.00017439626390114427, -0.03645848110318184, 0.03819600120186806, -0.00746544823050499, 0.012972504831850529, 0.0472075492143631, 0.013414246961474419, -0.0037492895498871803, -0.0063279615715146065, -0.01793474517762661, -0.0334840826690197, -0.01285470649600029, -0.020114008337259293, -0.0347798615694046, -0.02270556427538395, 0.0006124575738795102, -0.03672352805733681, 0.0334840826690197, 0.0071046920493245125, -0.028610190376639366, 0.00026412520674057305, 0.044998835772275925, 0.020526301115751266, 0.00014023024414200336, 0.0023890906013548374, 0.01849428564310074, -0.05118323117494583, -0.04223058372735977, 0.04782598838210106, -0.0009543478954583406, 0.027005191892385483, -0.042583975940942764, 0.031893808394670486, -0.007958727888762951, -0.0013132636668160558, 0.03077472746372223, -0.011735625565052032, 0.03589894250035286, -0.010086453519761562, -0.031893808394670486, 0.0170659851282835, -0.005197837017476559, -0.04046361520886421, -0.0014402646338567138, -0.009976018220186234, -0.020246531814336777, 0.005348765291273594, 0.01647699624300003, 0.0278445016592741, -0.0037989856209605932, 0.035192154347896576, -0.01029996294528246, -0.0006267221760936081, -0.035722244530916214, 0.015770208090543747, 0.034838758409023285, -0.024251664057374, -0.007782030384987593, 0.017743322998285294, -0.0028253113850951195, 0.026872668415308, -0.0070862858556210995, -0.02606280706822872, 0.028197895735502243, 0.013112390413880348, 0.030332984402775764, -0.001707150717265904, -0.0006805595476180315, -0.01150002982467413, 0.04985800385475159, 0.040581412613391876, 0.005775783210992813, 0.0023117857053875923, -0.021674832329154015, -0.02065882459282875, 0.02426638826727867, -0.012979866936802864, -0.024457810446619987, -0.014231471344828606, 0.02600390836596489, 0.01105828769505024, 0.0024314243346452713, -0.011742988601326942, -0.010719617828726768, -0.03109867312014103, 0.022514142096042633, 0.025326570495963097, -0.012376152910292149, 0.046500761061906815, -0.006666630506515503, 0.006394222844392061, -0.040228016674518585, -0.0296409223228693, -0.006033466197550297, 0.027270236983895302, 0.029743995517492294, -0.01822924055159092, -0.01540208887308836, 0.05495276674628258, 0.028212621808052063, -0.0006115372525528073, 0.027991749346256256, -8.409212750848383e-05, -0.00016576847701799124, -0.00017485641001258045, -0.0296409223228693, -0.029964866116642952, -0.01703653670847416, 0.041435446590185165, -0.018788781017065048, -0.03436756506562233, -0.021409787237644196, 0.009931843727827072, 0.03710636869072914, -0.011838698759675026, -0.022352170199155807, 0.012030120939016342, 0.01435663178563118, -0.007443360984325409, 0.01198594644665718, 0.019672265276312828, 0.019539743661880493, 0.021660108119249344, 0.016992362216114998, 0.033631328493356705, -0.0025289759505540133, 0.004122930113226175, -0.05828056111931801, -0.02214602380990982, 0.022867536172270775, 0.01613832637667656, -0.036900222301483154, -0.03106922283768654, -0.02241106890141964, 0.007296113763004541, 0.002221596660092473, -0.011036200448870659, -0.05981193482875824, 0.01448915433138609, 0.00942383985966444, 0.010034916922450066, -0.028816336765885353, 0.014849910512566566, 0.01672731526196003, 0.06255073845386505, 0.0028032243717461824, -0.0031860677991062403, 0.0017089913599193096, -0.025311846286058426, 0.025061525404453278, -0.02478175424039364, 0.004086118191480637, 0.003780579660087824, 0.016948187723755836, -0.014106310904026031, -0.0068948641419410706, 0.024678681045770645, 0.03563389554619789, 0.011396956630051136, -0.012788445688784122, -0.0010472978465259075, 0.024457810446619987, 0.004093480762094259, -0.02005510963499546, 0.02635730244219303, 0.026372026652097702, -0.01825869083404541, 0.015770208090543747, -0.04190663993358612, -0.014187296852469444, 0.03946233168244362, 0.0037345646414905787, 0.015225391834974289, 1.6450307157356292e-05, -0.01435663178563118, 0.039315082132816315, 0.021925153210759163, 0.04061086103320122, 0.026754871010780334, -0.004137654788792133, 0.043261315673589706, 0.042878471314907074, 0.02569468878209591, -0.023854095488786697, 0.04249563068151474, 0.04155324399471283, -0.026872668415308, -0.014908809214830399, -0.0014338225591927767, 0.007863016799092293, -0.0043106707744300365, 0.030951425433158875, 0.00568375363945961, 0.02933170273900032, 0.002954153111204505, -0.005956161301583052, -0.00754643464460969, -0.008628703653812408, -0.002333872951567173, 0.03533940017223358, -0.018067268654704094, -0.019289422780275345, -0.00471191992983222, -0.006375816650688648, 0.024693405255675316, 0.000359605997800827, -0.02126253955066204, 0.042053885757923126, -0.008326846174895763, 0.010999388061463833, -0.016565343365073204, 0.007001618854701519, 0.002059624530375004, -0.036635179072618484, -0.016079427674412727, 0.021424511447548866, 0.045057736337184906, -0.014474429190158844, -0.010579733178019524, 0.01588800549507141, 0.04211278632283211, 0.05336249619722366, 0.033071789890527725, 0.04458654299378395, -0.02273501455783844, 0.003195270663127303, -0.01256757415831089, 0.017404654994606972, -0.025061525404453278, -0.021615933626890182, -0.01390752661973238, 0.00011561229621293023, 0.021350888535380363, -0.024001343175768852, 0.0066408622078597546, 0.012383515015244484, 0.006202801130712032, 0.05433432757854462, -0.010668081231415272, -0.0725046694278717, 0.01939249597489834, -0.03165821358561516, 0.012685372494161129, 0.003843159880489111, -0.023117857053875923, 0.02273501455783844, 0.025827212259173393, 0.02755000814795494, 0.007528028450906277, -0.010859503410756588, -0.006994256284087896, -0.014584865421056747, 0.02542964369058609, -0.020864970982074738, 0.02182208001613617, 0.021939877420663834, 0.007973452098667622, 0.014363993890583515, 0.002983602462336421, 0.022499417886137962, 0.005680072586983442, -0.02872798778116703, 0.007995539344847202, -0.019804788753390312, 0.015181217342615128, -0.026445651426911354, -0.01909800060093403, 0.00956372544169426, 0.024251664057374, 0.04226003214716911, 0.033395733684301376, 0.007285070139914751, -0.002545541152358055, -0.010874227620661259, -0.017713874578475952, 0.017463553696870804, 0.011529479175806046, 0.039904072880744934, 0.011242346838116646, 0.008429919369518757, -0.020114008337259293, 0.002722238190472126, 0.0021258858032524586, 0.005367171484977007, 0.017537176609039307, -0.036929674446582794, 0.011249708943068981, 0.018435386940836906, -0.0008549558115191758, 0.03878499194979668, 0.0029228630010038614, -0.0008954488439485431, -0.02121836505830288, 0.022823363542556763, 0.03050968237221241, 0.011176085099577904, 0.011846061795949936, -0.005974567495286465, -0.020202357321977615, -0.023736298084259033, 0.0057684206403791904, 0.014386081136763096, -0.002186625497415662, -0.005396620836108923, -0.0001776173012331128, -0.0037916230503469706, -0.006677674129605293, 0.03018573857843876, 0.019893137738108635, 0.006935357116162777, 0.01792002096772194, -0.013105027377605438, 0.026843219995498657, -0.0065819635055959225, 0.00044956503552384675, 0.003463997505605221, 0.05000524967908859, -0.013900164514780045, 0.005411345511674881, 0.004086118191480637, 0.00018946612544823438, 0.01375291682779789, 0.007156228646636009, -0.006673993077129126, -0.008488818071782589, -0.002335713477805257, -0.0070862858556210995, 0.004480005241930485, -0.0025068887043744326, 0.01880350522696972, -0.019569192081689835, -0.01677148975431919, 0.01435663178563118, -0.015004520304501057, -0.010137990117073059, 0.045882321894168854, 0.01850901171565056, -0.0012580457841977477, 0.007561159320175648, -0.02361849881708622, -0.03687077388167381, -0.03083362616598606, 0.012442413717508316, 0.034249767661094666, -0.017772773280739784, 0.08245860040187836, -0.003541302401572466, 0.01792002096772194, 0.005392939783632755, 0.024398911744356155, -0.0035836361348628998, 0.034131970256567, -0.021100567653775215, 0.037253618240356445, 0.005871494300663471, -0.0365762785077095, 0.037872057408094406, 0.019554467871785164, 0.01675676554441452, 0.007156228646636009, 0.02062937431037426, 0.015902729704976082, 0.007137822452932596, 0.032482799142599106, 0.01582910679280758, 0.025945009663701057, 0.018347037956118584, -0.01678621582686901, 0.005772102158516645, 0.016565343365073204, -0.03584004193544388, 0.02364794909954071, 0.025179322808980942, 0.0013666409067809582, -0.009865582920610905, 0.019009651616215706, 0.021984051913022995, 0.010329412296414375, -0.0044836862944066525, -0.039020586758852005, -0.0038689281791448593, -0.01883295550942421, -0.005624854471534491, 0.0037695360369980335, -0.026975741609930992, -0.012184730730950832, -0.048886168748140335, 0.01344369724392891, 0.002674382645636797, -0.02248469367623329, -0.015770208090543747, -0.005300910212099552, 0.051271580159664154, -0.0033333152532577515, 0.011735625565052032, -0.022867536172270775, 0.02059992589056492, -0.007759943138808012, -0.0052935476414859295, 0.003068269696086645, 0.005646941717714071, -0.009799321182072163, 0.026121707633137703, -0.00018302403623238206, -0.01733103021979332, 0.005363490432500839, 0.0015120478346943855, 0.0006667550769634545, -0.002701991703361273, 0.003349880687892437, -0.00792927760630846, 0.0032744163181632757, -0.03704747185111046, -0.014945621602237225, 0.024649232625961304, 0.019907861948013306, -0.023220930248498917, -0.00650465814396739, -0.003463997505605221, -0.0004518657806329429, 0.0023927718866616488, -0.028624914586544037, -7.040271157165989e-05, 0.02780032902956009, 0.04582342132925987, -0.006795471999794245, 0.004686151631176472, -0.017478277906775475, -0.004156060516834259, 0.011978584341704845, -0.02872798778116703, 0.005569636821746826, 0.014724750071763992, 0.02934642694890499, 0.000606475630775094, -0.011588378809392452, -0.019201073795557022, -0.002136929426342249, -0.0290666576474905, -0.025488542392849922, -0.004995371680706739, -0.0009110938990488648, 0.009217693470418453, -0.02607753314077854, 0.015946904197335243, 0.017124883830547333, 0.03257114812731743, -0.0008798038470558822, -0.009828770533204079, 0.018405938521027565, -0.016933463513851166, -0.012501312419772148, -0.01610887609422207, 0.027947574853897095, -0.01769915036857128, -0.02358905039727688, -0.018435386940836906, 0.006210163235664368, 0.009902394376695156, -0.0017089913599193096, -0.011131911538541317, -0.00017474137712270021, 0.0011402477975934744, 0.001169697381556034, 0.015652408823370934, 0.012398239225149155, -0.05377478897571564, -0.008304758928716183, 0.012361427769064903, 0.015387363731861115, -0.003336996538564563, -0.009526913054287434, -0.02545909211039543, -0.005893581081181765, -0.006648224778473377, 0.042053885757923126, 0.008893748745322227, 0.0011761394562199712, 0.007575883995741606, 0.016874562948942184, 0.0015645046951249242, -0.001269089407287538, 0.016211949288845062, 0.03109867312014103, 0.013583581894636154, 0.01089631486684084, -0.0028860510792583227, -0.010712255723774433, -0.026121707633137703, -0.0359283909201622, -0.019215798005461693, -0.006688717752695084, 0.0030848351307213306, -0.00024065763864200562, 0.014864635653793812, -0.01392961386591196, 0.016697866842150688, -0.0054702446796, -0.015740757808089256, 0.03507435321807861, -0.03316013887524605, 0.013738191686570644, -0.007483854424208403, 0.02722606249153614, 0.02006983384490013, -0.02514987252652645, -0.03896168991923332, 0.01526956632733345, -0.04037526622414589, 0.02453143335878849, 0.0025050481781363487, -0.008967372588813305, -0.0016767808701843023, 0.0025731499772518873, -0.028536565601825714, 0.04108205437660217, 0.01509286928921938, 0.01945139467716217, -0.014157847501337528, -0.018347037956118584, -0.014341906644403934, -0.01553461141884327, 0.01979006454348564, 0.008768588304519653, -0.013605669140815735, -0.004969603382050991, 0.01120553445070982, 0.05003470182418823, -0.0377248115837574, 0.041729941964149475, 0.017272131517529488, 0.02360377460718155, -0.012913606129586697, -0.01374555379152298, -0.009652073495090008, 0.016064701601862907, -0.004641977604478598, 0.009784596040844917, -0.01643282175064087, -0.01856791041791439, 0.01789057068526745, 0.007966089993715286, -0.007450723554939032, -0.03115757182240486, -0.00024502904852852225, -0.007380781229585409, -0.004439512267708778, 0.014283007942140102, 0.038873340934515, 0.004840761423110962, -0.0032983440905809402, -0.007042111828923225, 0.017787497490644455, -0.0014844388933852315, -0.01672731526196003, -0.03849049657583237, 0.010115903802216053, 0.014113673008978367, 0.005967204924672842, 0.010653357021510601, -0.026092257350683212, 0.036635179072618484, -0.01887713000178337, -0.018950752913951874, -0.011014113202691078, 0.007818842306733131, 0.009549000300467014, 0.015961628407239914, 0.027432208880782127, -0.024693405255675316, 0.018435386940836906, 0.004494729917496443, 0.015195942483842373, -0.005013777408748865, 0.0018001006683334708, 0.009880307130515575, -0.037577562034130096, 0.042878471314907074, 0.011183448135852814, -0.01300931628793478, -0.015932179987430573, 0.025945009663701057, 0.000494199397508055, -0.0135983070358634, -0.0014283007476478815, 0.017493003979325294, 0.004612527787685394, 0.0011384072713553905, -0.005790507886558771, -0.010373586788773537, 0.024973176419734955, -0.01510759349912405, -0.018008369952440262, -0.01134542003273964, -0.03737141564488411, -0.014246195554733276, 0.02039377950131893, -0.03878499194979668, -0.0127000967040658, 0.0248259287327528, -0.019672265276312828, -0.010358861647546291, -0.0395212285220623, -0.0164917204529047, -0.04046361520886421, 0.011190810240805149, -0.00925450585782528, -0.0033977359998971224, -0.016830390319228172, -0.006725529674440622, 0.006177032832056284, 0.013811815530061722, 0.01940722018480301, -0.004958559758961201, 0.020246531814336777, -0.0323355495929718, -0.02308840863406658, -0.015210666693747044, 0.0007707486511208117, 0.011713538318872452, 0.010189526714384556, 0.048267729580402374, -0.011301245540380478, 0.016904013231396675, 0.0008029590244404972, 0.0038983775302767754, -0.022381620481610298, -0.015991078689694405, -0.005484969355165958, 0.02419276535511017, 0.014054774306714535, 0.03257114812731743, -0.007145185023546219, 0.03595783933997154, -0.01448915433138609, 0.0334840826690197, 0.019377771764993668, -0.016992362216114998, -0.0038063479587435722, -0.005381896160542965, -0.0022620896343141794, -0.021925153210759163, 0.004730326123535633, -0.022646665573120117, 0.04567617550492287, 0.01152211707085371, -0.0035247369669377804, -0.01178716216236353, -0.01408422365784645, 0.007303475867956877, -0.04658911004662514, 0.011028837412595749, 0.0028161085210740566, 0.0043106707744300365, -0.019583918154239655, -0.021321438252925873, 0.04193608835339546, 3.6840636312263086e-05, 0.018729882314801216, 0.011426405981183052, -0.010726980865001678, -0.020747173577547073, -0.040551960468292236, 0.020541027188301086, -0.008290034718811512, -0.025827212259173393, 0.012972504831850529, 0.017875846475362778, 0.013635118491947651, -0.006604050286114216, 0.012059570290148258, -0.010130628012120724, -0.004148698411881924, 0.02039377950131893, 0.019613366574048996, 0.04108205437660217, 0.006335323676466942, 0.01587328128516674, -0.0188624057918787, 0.0008526550373062491, 0.012295166030526161, 0.005168387200683355, 0.006129177287220955, 0.008636065758764744, -0.004491048865020275, 0.0209091454744339, 0.001388728036545217, -0.023132583126425743, 0.030362434685230255, 0.026121707633137703, -0.07503733038902283, 0.027432208880782127, 0.0128620695322752, -0.0173899307847023, -0.023265104740858078, 0.010373586788773537, -0.019893137738108635, -0.02002565935254097, -0.021733731031417847, 0.0454111285507679, 0.008937923237681389, -0.024045517668128014, 0.008319484069943428, -0.0009966815123334527, -0.030067939311265945, 0.02059992589056492, -0.0277708787471056, -0.01912745088338852, 0.01678621582686901, 0.010049642063677311, 0.009806683287024498, 0.020099284127354622, 0.022366896271705627, -0.0023817282635718584, -0.04667745903134346, -0.01730158179998398, 0.018744606524705887, -0.031245918944478035, 0.007811479736119509, -0.0278445016592741, 0.035162702202796936, 0.0024001342244446278, -0.021645382046699524, -0.008915835991501808, -0.0017954992363229394, 0.01762552559375763, -0.00552914384752512, -0.0038468409329652786, -0.014231471344828606, -0.023780470713973045, -0.01557878591120243, -0.037548113614320755, 0.03896168991923332, -0.026843219995498657, 0.018641533330082893, 0.023456526920199394, 0.0005604607868008316, -0.027873951941728592], "id": 47}, {"title": "Andy Sutcliffe", "text": "Andy Sutcliffe (born 9 May 1947 in Mildenhall, Suffolk \u2013 died 13 July 2015 in Pluckley, Kent) was a British former racing driver from England. After a promising start in Formula 3, his single attempt at Formula One was at the 1977 British Grand Prix with the RAM team, in a March 761. He failed to pre-qualify.", "vector": [0.023267796263098717, 0.0511021688580513, -0.024106554687023163, -0.03892463073134422, -0.01671304926276207, 0.06703858822584152, 0.014018148183822632, -0.018312904983758926, -0.024261880666017532, -0.030537040904164314, -0.052966076880693436, 0.008566214703023434, 0.017489679157733917, 0.04137877747416496, 0.014654983766376972, 0.05076045170426369, -0.020456399768590927, 0.02565981261432171, -0.06747350096702576, -0.05697348341345787, 0.05231371149420738, -0.013629834167659283, -0.04016723856329918, 0.030987486243247986, -0.011129089631140232, 0.008340992033481598, 0.0024910366628319025, 0.010204900987446308, -0.008931229822337627, -0.06958593428134918, -0.03373675048351288, 0.012620216235518456, 0.042994167655706406, -0.003504537045955658, -0.018576959148049355, 0.007020723540335894, 0.041782625019550323, -0.02499191276729107, -0.040136173367500305, 0.06865397840738297, -0.02825375273823738, -0.019664239138364792, -0.026902418583631516, 0.005032554268836975, -0.03280479833483696, 0.006143133156001568, -0.002473562490195036, -0.009785521775484085, -0.04460955411195755, 0.012480423785746098, 0.006698422599583864, -0.001643540570512414, 0.005921794101595879, -0.0035627842880785465, 0.0036035573575645685, 0.007304192986339331, -0.051381755620241165, 0.07741434872150421, -0.020829182118177414, -0.0063722385093569756, 0.003071566578000784, -0.009645728394389153, 0.002329886192455888, 0.01289980299770832, -0.0047063701786100864, -0.017101364210247993, 0.02851780690252781, 0.0015416080132126808, -0.0705178901553154, -0.025488954037427902, 0.015322884544730186, -0.031966038048267365, 0.0014930687611922622, 0.037029657512903214, 0.0002824986877385527, -0.016992636024951935, 0.013963784091174603, 0.027570320293307304, -0.08673389256000519, -0.006158665753901005, 0.003015260910615325, -0.08375164121389389, -0.0876658484339714, 0.0338299460709095, 0.013070661574602127, -0.04777820035815239, 0.03463764116168022, -0.07586109638214111, 0.07026936858892441, -0.003555017989128828, -0.013886121101677418, -0.03516574949026108, 0.02666942961513996, -0.0028405196499079466, 0.019990423694252968, -0.04215540736913681, 0.0381169356405735, -0.01530735194683075, -0.014748179353773594, -0.02555108442902565, -0.029574021697044373, -0.014530722983181477, 0.0345444455742836, -0.034109532833099365, 0.01890314370393753, -0.012938634492456913, -0.028331415727734566, -0.004531628452241421, 0.07213327288627625, 0.03898676112294197, 0.022832883521914482, -0.020363204181194305, -0.040384694933891296, -0.01926039159297943, -0.021528147161006927, 0.010616514831781387, 0.00956029910594225, 0.01515202596783638, 0.007506116759032011, -0.03184177726507187, 0.008263329975306988, 0.02544235624372959, -0.0425281897187233, 0.015392781235277653, 0.030583638697862625, -0.031546659767627716, 0.032929059118032455, -0.0004684042069129646, -0.002426964696496725, -0.013396845199167728, -0.041782625019550323, -0.017412016168236732, 0.00011776846076827496, 0.008706008084118366, 0.007785703055560589, -0.004764616955071688, -0.016837310045957565, 0.01789352484047413, 0.037992678582668304, 0.03504148870706558, -0.014678282663226128, -0.0016814011614769697, 0.0035783168859779835, 0.029698282480239868, 0.005187879782170057, -0.02508510835468769, 0.0009431184735149145, 0.019710836932063103, 0.002438614144921303, -0.02360951341688633, -0.02381143718957901, -0.03479296714067459, -0.021900929510593414, -0.04224860295653343, -0.0007771141245029867, 0.00824779737740755, -0.062409885227680206, 0.02477445639669895, 0.016992636024951935, -0.006360589060932398, -0.020207880064845085, 0.0475296787917614, -0.033861011266708374, -0.009785521775484085, -0.01747414655983448, -0.0070828539319336414, -0.06946167349815369, -0.02350078523159027, -0.02238244004547596, 0.019710836932063103, -0.034264858812093735, -0.0013445384101942182, 0.04277671128511429, 0.028300350531935692, 0.005308257415890694, 0.03243201598525047, -0.02881292626261711, 0.031236007809638977, 0.03190390765666962, 0.0038015975151211023, -0.0226930920034647, -0.006593578029423952, -0.008527383208274841, 0.009933081455528736, -0.012915335595607758, -0.025721943005919456, 0.03923528268933296, -0.015136493369936943, -0.0026774276047945023, -0.027912035584449768, -0.010103940032422543, 0.023081405088305473, 0.024960847571492195, 0.049331456422805786, 0.011160154826939106, 0.04557257145643234, -0.031096214428544044, -0.010080641135573387, -0.06790841370820999, -0.008504084311425686, -0.008651643991470337, -0.029605086892843246, -0.007117802277207375, 0.005844131112098694, -0.013319182209670544, 0.0008227410726249218, 0.027119874954223633, 0.07095280289649963, 0.023267796263098717, -0.03111174702644348, 0.028750795871019363, -0.00436853663995862, -0.0066867731511592865, 0.057874370366334915, 0.00034584247623570263, 0.041565168648958206, 0.02534916065633297, 0.030956421047449112, 0.03296012431383133, 0.009599130600690842, 0.0073663233779370785, -0.009140919893980026, -0.009265180677175522, -0.011641664430499077, 0.07157409936189651, 0.0027240251656621695, -0.037837352603673935, -0.025846203789114952, 0.006147016305476427, -0.04367759823799133, -0.02545788884162903, 0.02478998899459839, -0.009979679249227047, 0.02780330739915371, -0.011859120801091194, 0.003654038067907095, 7.141343667171896e-05, -0.005343205761164427, -0.0011989205377176404, -0.0030230272095650434, 0.0018619673792272806, 0.009769989177584648, 0.014258903451263905, -0.04547937586903572, -0.020611725747585297, 0.00453551160171628, 0.024044424295425415, -0.049393586814403534, -0.05663176625967026, -0.019990423694252968, 0.06359036266803741, -0.01556363981217146, -0.019446782767772675, -0.027523722499608994, -0.03463764116168022, -0.028269285336136818, -0.005801416467875242, -0.0028152791783213615, 0.004830630496144295, -0.004578226245939732, -0.031204942613840103, 0.0011620307341217995, 0.014903505332767963, 0.04405038058757782, -0.029247837141156197, -0.02611025795340538, -0.039017826318740845, -0.021170899271965027, -0.017909057438373566, -0.044329967349767685, 0.0431184247136116, 0.004558810498565435, -0.03662580996751785, -0.0331154502928257, 0.01380069274455309, -0.07058002054691315, -0.03755776584148407, -0.009265180677175522, -0.053028207272291183, -0.03224562481045723, -0.028937185183167458, 0.009078789502382278, -0.010189368389546871, -0.05604152753949165, -0.04019830375909805, 0.0016940213972702622, 0.04175155982375145, 0.002520160283893347, 0.014592853374779224, 0.016744114458560944, -0.0359734408557415, 0.00603052182123065, -0.011734860017895699, 0.020021488890051842, 0.01849929615855217, 0.037992678582668304, -0.050667256116867065, 0.011447506956756115, -0.008612812496721745, -0.01039905846118927, 0.037682026624679565, -0.00911762099713087, 0.005677156150341034, -0.0037472336553037167, -0.012356163002550602, 0.002791980281472206, -0.032121364027261734, -0.025100640952587128, -0.04190688580274582, -0.03243201598525047, -0.0418136902153492, 0.047902461141347885, -0.020829182118177414, 0.0172722227871418, 0.05796756595373154, -0.008170134387910366, 0.056600701063871384, -0.01295416709035635, -0.0067023057490587234, -0.025923866778612137, 0.01865462213754654, 0.0030366182327270508, -0.033239707350730896, -0.0034132832661271095, 0.08747945725917816, -0.044733814895153046, 0.03789948299527168, 0.04302522912621498, -0.0284712091088295, 0.007242062594741583, -0.023112470284104347, -0.015524808317422867, -0.007098386529833078, 0.030940888449549675, 0.0034928875975310802, -0.04619387537240982, -0.028704198077321053, 0.06014212965965271, -0.013194922357797623, 0.012231902219355106, 0.05069832131266594, -0.0032288338989019394, -0.02693348377943039, 0.029294434934854507, -0.03469977155327797, 0.03417166322469711, 0.08281968533992767, -0.01686837524175644, -0.012457124888896942, -0.022087320685386658, 0.0007096445187926292, 0.006329523865133524, 0.006853748578578234, 0.009777755476534367, -0.009086555801331997, 0.030071064829826355, -0.022258179262280464, -0.053028207272291183, -0.0007373119005933404, -0.001959045883268118, 0.05663176625967026, -0.030443845316767693, 0.005265542771667242, 0.03606663644313812, 0.009544766508042812, 0.044485293328762054, 0.0063722385093569756, -0.01588982343673706, 0.018763350322842598, 0.01736541837453842, -0.012441592290997505, 0.03662580996751785, -0.019508913159370422, 0.01967977173626423, -0.03839652240276337, -0.009055490605533123, -0.016060682013630867, 0.026187920942902565, -0.017846927046775818, -0.02601706236600876, -0.0028424609918147326, -0.023221198469400406, -0.06865397840738297, 0.013653133064508438, -0.030474910512566566, 0.012480423785746098, -0.023283328860998154, -0.012301798909902573, -0.015229688957333565, 0.043615467846393585, 0.01380069274455309, 0.031966038048267365, -0.0010688352631404996, -0.022149451076984406, 0.01584322564303875, -0.017039233818650246, 0.032276690006256104, 0.07200901210308075, 0.03122047521173954, -0.06865397840738297, -0.017536276951432228, -0.058278217911720276, 0.010189368389546871, -0.04103706032037735, 0.02927890233695507, -0.05128856003284454, -0.026296649128198624, -0.01310949306935072, 0.025566617026925087, -0.012394994497299194, 0.005692688282579184, -0.006084885913878679, -0.0012018328998237848, -0.007552714087069035, 0.02003702148795128, 0.00799927581101656, -0.00837982352823019, -0.027414994314312935, -0.047591809183359146, -0.012736710719764233, -0.045292988419532776, 0.017101364210247993, -0.016573257744312286, 0.032929059118032455, 0.015680134296417236, 0.028378013521432877, 0.0013222104171290994, 0.019291456788778305, 0.026048127561807632, -0.006376121658831835, -0.03086322546005249, 0.0022036840673536062, 0.00799927581101656, 0.01579662784934044, -0.005580077413469553, -0.005525713320821524, -0.0230503398925066, 0.038303326815366745, 0.05100897327065468, 0.06877823919057846, -0.03709178790450096, 0.008108003996312618, -0.06697645783424377, -0.004123898688703775, 0.00868270918726921, -0.058122891932725906, 0.012565853074193, -0.008496318012475967, 0.0017241158057004213, 0.018281839787960052, -0.006756669841706753, -0.013575470075011253, -0.01660432107746601, 0.04985956475138664, 0.03286692872643471, -0.015276286751031876, -0.00015204933879431337, 0.02457253262400627, -0.031034084036946297, -0.006247978191822767, 0.037029657512903214, 0.026700494810938835, 0.03317758068442345, -0.014740413054823875, -0.015656834468245506, 0.01034469436854124, 0.006570279132574797, -0.01675964705646038, -0.0198350977152586, -0.01279884111136198, 0.0007285748142749071, -0.028129491955041885, -0.0648019015789032, 0.02918570674955845, -0.0048112147487699986, 0.04985956475138664, 0.015369482338428497, -0.00623244559392333, 0.05507851019501686, -0.00039365366683341563, 0.024401674047112465, 0.021900929510593414, 0.005420868285000324, 0.010546618141233921, 0.05063619092106819, -0.015082129277288914, -0.02753925509750843, -0.005925677251070738, -0.04007404297590256, 0.007657559122890234, 0.028533339500427246, 0.029729347676038742, 0.0025026861112564802, 0.0016969337593764067, -0.03572491928935051, -0.011874653398990631, 0.01988169550895691, 0.027679046615958214, 0.018421633169054985, 0.014289968647062778, 0.008993360213935375, 0.041068125516176224, -0.008853567764163017, -0.023376524448394775, -0.03970126062631607, 0.0020464167464524508, 0.03333290293812752, 0.016946038231253624, -0.01722562499344349, -0.045044466853141785, 0.09120727330446243, 0.053835902363061905, 0.015043298713862896, -0.0015755854547023773, 0.027150940150022507, -0.035538531839847565, -0.028735263273119926, -0.012829906307160854, 0.022444570437073708, -0.02222711406648159, 0.007238179445266724, 0.026032594963908195, 0.0030074946116656065, 0.008830268867313862, -0.011028127744793892, -0.027818839997053146, 0.005102450493723154, -0.006275160238146782, 0.010181602090597153, -0.002246398478746414, 0.021233029663562775, 0.013303649611771107, -0.0011057251831516623, 0.01640239916741848, -0.04389505460858345, 0.02131069265305996, 0.017412016168236732, 0.005521830171346664, 0.023423122242093086, -0.018126513808965683, -0.0073003098368644714, -0.00853514950722456, -0.009195283986628056, 0.018266307190060616, 0.03622196242213249, -0.018219709396362305, 0.015882058069109917, -0.005894612055271864, -0.00750999990850687, -0.016588790342211723, -0.0037064605858176947, 0.008760372176766396, -0.01977296732366085, 0.0489586740732193, -0.010034043341875076, 0.01952444575726986, 0.01947784796357155, 0.0065663959830999374, -0.011144622229039669, 0.035383205860853195, -0.013101726770401001, -0.03734030947089195, -0.02892165258526802, 0.025923866778612137, 0.028067361563444138, 0.03111174702644348, -0.011874653398990631, 0.026436440646648407, -0.0618196465075016, -0.01305512897670269, 0.04523085802793503, -0.008271096274256706, -0.014903505332767963, 0.00650426559150219, -0.006313991267234087, -0.010764073580503464, 0.009971912950277328, 0.03317758068442345, -0.0029337150044739246, -0.0194157175719738, 0.017101364210247993, 0.009358376264572144, -0.0036501549184322357, 0.05458146706223488, -7.911905413493514e-05, 0.009870951063930988, -0.00901665911078453, -0.009956380352377892, -0.0201302170753479, -0.028191622346639633, -0.02059619314968586, -0.03215242922306061, -0.02626558393239975, 0.022164983674883842, -0.025271497666835785, 0.010305862873792648, 0.014173474162817001, 0.014740413054823875, -0.02472785860300064, -0.005428634583950043, 0.013963784091174603, 0.02249116823077202, -0.029558489099144936, -0.011012595146894455, -0.028222687542438507, -0.040446825325489044, -0.0010639813262969255, -0.012022212147712708, -0.013956017792224884, -0.012938634492456913, -0.025022977963089943, -0.02350078523159027, 0.018732285127043724, -0.025333628058433533, 0.02064279094338417, -0.015377248637378216, 0.03404740244150162, 0.006341173313558102, 0.030801095068454742, -0.002395899500697851, 0.007610961329191923, 0.009086555801331997, 0.03258734196424484, 0.026079192757606506, 0.03050597570836544, 0.010865035466849804, -0.025209367275238037, 0.019229326397180557, -0.0104534225538373, 0.042900972068309784, 0.04902080446481705, -0.010927165858447552, 0.02115536667406559, -0.01305512897670269, -0.025411291047930717, -0.0014746238011866808, -0.005149048287421465, 0.011657197028398514, 0.017800331115722656, -0.0003443862951826304, -0.008488551713526249, 0.011610599234700203, -0.024339543655514717, 0.028688665479421616, -0.020363204181194305, -0.03320864215493202, -0.009203050285577774, 0.02371824160218239, 0.012589151971042156, 0.047094766050577164, -0.017334353178739548, -0.03730924427509308, 0.03473083674907684, -0.017443081364035606, -0.03504148870706558, -0.05830928310751915, -0.005836364813148975, 0.03420272842049599, 0.00113387790042907, -0.022366907447576523, 0.018934208899736404, 0.004131664987653494, -0.025473421439528465, 0.03351929411292076, -0.03224562481045723, 0.023625046014785767, -0.011377610266208649, 0.006698422599583864, 0.0002854110498446971, -0.0034928875975310802, 0.00948263704776764, 0.01814204640686512, -0.027787774801254272, 0.021077703684568405, 0.02918570674955845, -0.007401271723210812, -0.0374024398624897, 0.023873567581176758, 0.022196048870682716, -0.01109025813639164, 0.039421673864126205, -0.04001191258430481, -0.013668665662407875, -0.012612449936568737, -0.018437165766954422, -0.001196008175611496, -0.0659823790192604, 0.032618407160043716, 0.01001851074397564, -0.017101364210247993, -0.0107796061784029, -0.010865035466849804, -0.021341757848858833, 0.0042442758567631245, -0.029729347676038742, -0.00873707327991724, -0.045510441064834595, -0.03202816843986511, -0.026809222996234894, -0.008706008084118366, -0.0005116041866131127, 0.0032754316926002502, 0.02595493197441101, -0.04249712452292442, -0.02171453833580017, 0.007370206527411938, -0.017054766416549683, 0.0030230272095650434, -0.021497083827853203, -0.022801818326115608, 0.0020425335969775915, -0.013280350714921951, -0.06163325533270836, 0.010026277042925358, 0.028393546119332314, 0.022149451076984406, 0.028843991458415985, 0.002762856660410762, -0.003426874289289117, -0.007704156916588545, -0.030925355851650238, -0.04265245050191879, -0.005642207805067301, -0.015858758240938187, -0.003688986413180828, 0.0011630015214905143, -0.013101726770401001, -0.015967486426234245, -0.01762947253882885, 0.0091719850897789, -0.030490443110466003, -0.012387228198349476, 0.054239749908447266, 0.012053277343511581, -0.008473019115626812, -0.014491891488432884, 0.02084471471607685, -0.04255925491452217, 0.01809544861316681, 0.012992998585104942, 0.0215592123568058, 0.00848078541457653, -0.007424570620059967, 0.014585087075829506, -0.00017061561811715364, -0.009505935944616795, -0.04103706032037735, -0.04081960394978523, -0.028191622346639633, 0.01860802434384823, -0.0005732490681111813, 0.0222737118601799, -0.00026284027262590826, -0.013474508188664913, -0.05321459844708443, -0.02407548949122429, -0.020891312509775162, 0.012635748833417892, -0.027880970388650894, -0.026389844715595245, -0.023842502385377884, 0.011385376565158367, -0.0048927608877420425, -0.00485392939299345, 0.05315246805548668, 0.01379292644560337, -0.007168283220380545, -0.0025279265828430653, 0.011517403647303581, 0.009140919893980026, 0.020922377705574036, -0.013031830079853535, 0.013047362677752972, 0.01870121993124485, 0.007708040066063404, 0.04743648320436478, 0.021792201325297356, 0.02611025795340538, 3.3370764867868274e-05, -0.0010086465626955032, -0.014755945652723312, 0.03761989623308182, -0.05100897327065468, 0.03907995671033859, -0.011098024435341358, 0.02084471471607685, -0.015439379028975964, -0.016107279807329178, -0.017505211755633354, 0.021838799118995667, 0.023190133273601532, 0.02146601863205433, -0.01568789966404438, -0.012045511044561863, 0.019788499921560287, -0.04880334809422493, 0.018048850819468498, 0.007443986367434263, 0.012550320476293564, -0.016728581860661507, -0.01823524199426174, -0.015804395079612732, -0.0018163403728976846, -0.007704156916588545, 0.02458806522190571, -0.019508913159370422, 0.023795904591679573, -0.01716349460184574, -0.02749265730381012, 0.023174600675702095, 0.03317758068442345, -0.012837672606110573, -0.007020723540335894, -0.007506116759032011, -0.01738095097243786, -0.0018483763560652733, -0.01767607033252716, 0.006733370944857597, -0.04436103254556656, 0.02693348377943039, -0.0072847772389650345, 0.018079916015267372, 0.012356163002550602, -0.01200667954981327, 0.021450486034154892, -0.0026055893395096064, 0.01860802434384823, -0.04007404297590256, 0.048927608877420425, -0.01584322564303875, -0.028082894161343575, 0.0007853658171370625, -0.044640619307756424, -0.03650154918432236, -0.007044022437185049, 0.01615387760102749, 0.01477147825062275, -0.005576194263994694, 0.0006130512920208275, 0.031298138201236725, 0.027197537943720818, -0.051226429641246796, -0.02708880975842476, -0.026545168831944466, -0.019244858995079994, -0.010733009316027164, 0.032276690006256104, -0.012076576240360737, 0.029372097924351692, -0.019089533016085625, 0.0162004753947258, -0.023128002882003784, -0.024261880666017532, 0.009948614053428173, -0.0396701954305172, 0.03209029883146286, 0.027834372594952583, -0.012457124888896942, -0.018716752529144287, -0.013280350714921951, 0.035134684294462204, 0.01644899696111679, -0.009886483661830425, -0.00539368623867631, 0.019943825900554657, 0.0008703095372766256, 7.226287561934441e-05, 0.017971187829971313, -0.06147792935371399, -0.03417166322469711, 0.01487244013696909, 0.010585449635982513, -0.011696028523147106, -0.051630277186632156, -0.05048086494207382, 0.020223412662744522, -0.0015056888805702329, 0.0023900747764855623, -0.012961933389306068, -0.006123717408627272, -0.006018872372806072, -0.021077703684568405, -0.05905484780669212, -0.0034249327145516872, 0.008185666985809803, -0.0183439701795578, 0.01387058850377798, 0.014445293694734573, -0.03581811487674713, -0.034979358315467834, -0.011866887100040913, 0.013948251493275166, -0.03693646192550659, -0.03504148870706558, 0.0008877837099134922, 0.00468695443123579, -0.01809544861316681, -0.010290330275893211, -0.020363204181194305, 0.023190133273601532, 0.00858174730092287, 0.01392495259642601, -0.01428220234811306, -0.006046054419130087, -0.002747324062511325, -0.008014808408915997, 0.012076576240360737, 0.0010931049473583698, -0.004201561212539673, 0.004492796957492828, -0.046939440071582794, 0.08201199024915695, -0.05231371149420738, 0.003281256416812539, 0.04762287437915802, 0.04501340165734291, -0.0649261623620987, 0.007544947788119316, 0.03336396813392639, 0.019291456788778305, -0.009537000209093094, 0.032276690006256104, -0.055327028036117554, -0.004422900732606649, -0.015470444224774837, -0.04721902683377266, 0.018825480714440346, -0.04460955411195755, -0.009700092487037182, 0.03327077254652977, -0.026250051334500313, 0.013637600466609001, -0.00468695443123579, 0.000857689359690994, 0.019229326397180557, 0.014934570528566837, -0.027011146768927574, -0.015175324864685535, -0.00512186624109745, -0.003102631773799658, -0.008317693136632442, -0.007525532506406307, 0.02392016537487507, 0.025628747418522835, -0.0532456636428833, 0.001654219115152955, -0.032214559614658356, 0.032214559614658356, -0.04563470184803009, -0.014554021880030632, 0.013684198260307312, -0.024805521592497826, -0.0010241791605949402, -0.00517623033374548, 0.04498233646154404, -0.008278862573206425, -0.01446082629263401, -0.0050053722225129604, 0.007847833447158337, 0.021590277552604675, -0.03721604868769646, 0.004104482941329479, -0.03345716372132301, 0.009078789502382278, -0.02350078523159027, 0.004178262315690517, 0.005549012217670679, -0.01644899696111679, -0.047343287616968155, -0.03246308118104935, -0.02524043247103691, -0.007055671885609627, 0.024292945861816406, -0.008729306980967522, -0.018778882920742035, 0.003399692242965102, 0.005618908908218145, 0.022444570437073708, 0.0269800815731287, 0.026995614171028137, -0.02892165258526802, -0.027011146768927574, 0.011820289306342602, -0.0063062249682843685, 0.006574162282049656, -0.007634260226041079, -0.061198342591524124, 0.01078737247735262, 0.02039426937699318, -0.018157579004764557, -0.03519681468605995, 0.00042253456194885075, -0.019804032519459724, -0.0037588831037282944, -0.018079916015267372, 0.009645728394389153, -0.003405516967177391, -0.007913846522569656, -0.008938996121287346, -0.006853748578578234, -0.03184177726507187, 0.025022977963089943, -0.016309203580021858, -0.015245221555233002, -0.03821013122797012, 0.04286990687251091, -0.03305331990122795, -0.008123536594212055, -0.018017785623669624, 0.007948795333504677, -0.012426059693098068, -0.03050597570836544, -0.01599855162203312, -0.02070492133498192, -0.014911271631717682, -0.029869141057133675, -0.019943825900554657, 0.0030133193358778954, -0.0004089435678906739, 0.04016723856329918, -0.0013115317560732365, 0.00666735740378499, 0.013886121101677418, -0.041720494627952576, -0.004760734271258116, 0.03404740244150162, -0.017815863713622093, 0.003498712321743369, 0.013575470075011253, -0.004236509557813406, -0.00021150997781660408, -0.012138706631958485, 0.029962336644530296, -0.01055438444018364, -0.04125451669096947, -0.03519681468605995, 0.031158344820141792, 0.061136212199926376, 0.011975615285336971, 0.04973530396819115, 0.01443752832710743, 0.008317693136632442, -0.004488913808017969, 0.04405038058757782, -0.007824534550309181, -0.009350609965622425, -0.021838799118995667, -0.007975976914167404, -0.029263369739055634, -0.02213391847908497, 4.213817373965867e-05, 0.009894249960780144, -0.00024148299416992813, -0.029698282480239868, -0.0017037292709574103, -0.005362621508538723, 0.006888696923851967, -0.029294434934854507, 0.049486782401800156, 0.00661687646061182, 0.0003523952909745276, -0.022087320685386658, -0.011385376565158367, 0.013761861249804497, -0.0043918355368077755, 0.008511850610375404, 0.02263096161186695, 0.01216200552880764, -0.015905356034636497, 0.013031830079853535, 0.005894612055271864, 0.0033220292534679174, 0.0020425335969775915, -0.004519979003816843, 0.002442497294396162, 0.020456399768590927, -0.021217497065663338, 0.009777755476534367, -0.009265180677175522, 0.0011717386078089476, 0.05448827147483826, -0.00671783834695816, 0.0012134823482483625, -0.011509637348353863, -0.012348396703600883, -0.017334353178739548, 0.003479296574369073, 0.030599171295762062, 0.015579172410070896, -0.03836545720696449, -0.00047325811465270817, -0.0069857751950621605, 0.004881111439317465, -0.0007581837708130479, -0.014678282663226128, -0.015058830380439758, -0.0033977506682276726, 0.04150303825736046, -0.03162432089447975, 0.016697516664862633, -0.004298639949411154, -0.05405335873365402, -0.009537000209093094, -0.00044753230758942664, 0.012154239229857922, -0.005362621508538723, 0.01275224331766367, -0.009443805553019047, -0.019400184974074364, -0.002623063512146473, -0.0021473783999681473, 0.048213109374046326, -0.03777522221207619, -0.046318136155605316, -0.0037161684595048428, -0.05318353325128555, -0.04193795099854469, -0.013707497157156467, -0.01014277059584856, -0.007156633771955967, -0.011859120801091194, -0.031810712069272995, 0.014476358890533447, 0.02300374209880829, 0.010880568064749241, -0.01696157082915306, -0.01738095097243786, 0.012845438905060291, 0.0008096354431472719, 0.00021102458413224667, -0.017132429406046867, -0.02186986431479454, 0.01905846782028675, 0.0026560702826827765, -0.016573257744312286, 0.016790712252259254, 0.04672198370099068, -0.008845801465213299, -0.017877992242574692, -0.005098567344248295, 0.02075151912868023, -0.03976339101791382, 0.0070673213340342045, -0.007968210615217686, 0.012177538126707077, -0.0073507907800376415, 0.0008795320172794163, 0.011556235142052174, -0.03039724752306938, -0.02309693768620491, -0.024510402232408524, 0.03392314165830612, 0.019788499921560287, -0.02514723874628544, 0.03699859231710434, -0.008069172501564026, -0.011602832935750484, 0.028424611315131187, -0.03780628740787506, -0.003339503426104784, 0.01035246066749096, 0.01338907890021801, -0.005941209848970175, 0.018514828756451607, -0.009032191708683968, -0.012969699688255787, 0.0036676290910691023, -0.04088173434138298, -0.00020253020920790732, 0.007785703055560589, -0.014484125189483166, -0.0016814011614769697, -0.009039958007633686, 0.04358440265059471, -0.011268883012235165, 0.024463804438710213, -0.012783308513462543, -0.00869047548621893, -0.02626558393239975, 0.002232807455584407, 0.018639089539647102, -0.01952444575726986, 0.005017021670937538, 0.005094684194773436, 0.006690656300634146, 0.011478572152554989, 0.007696390617638826, -0.007700273767113686, 0.006383887957781553, 0.00879143737256527, 0.014095811173319817, -0.001004763413220644, 0.007902197539806366, -0.023842502385377884, -0.030086597427725792, -0.007117802277207375, 0.013070661574602127, 0.011998913250863552, -0.012829906307160854, 0.0241220872849226, -0.03215242922306061, -0.02079811692237854, 0.021761136129498482, 0.006011106073856354, 0.009669027291238308, 0.04159623384475708, -0.02100004069507122, -0.00581306591629982, -0.00367927853949368, -0.01814204640686512, -0.041005995124578476, 0.046535592526197433, 0.011579534038901329, 0.0324009507894516, 0.02162134274840355, 0.0019075942691415548, 0.027787774801254272, -0.015136493369936943, 0.019027404487133026, 0.006779968738555908, -0.03010213002562523, -0.02575300820171833, -0.021062171086668968, -0.006294575985521078, -0.011851354502141476, -0.007292543537914753, 0.0059373266994953156, 0.009459338150918484, -0.0011513520730659366, -0.03137579932808876, -0.05417761951684952, -0.020192347466945648, -0.005028671119362116, 0.021481551229953766, 0.012728944420814514, -0.0720711424946785, 0.0410991907119751, 0.013637600466609001, -0.009630195796489716, 0.02207178808748722, 0.0068343328312039375, 0.0011552352225407958, 0.004279224202036858, -0.018219709396362305, 0.04296310245990753, 0.0057237534783780575, 0.0006989658577367663, -0.012977465987205505, -0.01359100267291069, 0.02253776602447033, -0.008845801465213299, -0.002359009813517332, -0.021481551229953766, -0.01188241969794035, 0.02390463277697563, -0.008845801465213299, -0.011688262224197388, 0.029977869242429733, -0.02646750584244728, 0.009777755476534367, -0.024712326005101204, -0.032214559614658356, 0.002492978237569332, -0.01579662784934044, -0.02140388824045658, 0.0029045913834124804, -0.020471932366490364, -0.031453464180231094, 0.006150899454951286, 0.026591766625642776, -0.014064745977520943, 0.0031569956336170435, -0.026172388345003128, 0.027275200933218002, 0.013901653699576855, 0.03907995671033859, -0.020627258345484734, 0.02054959535598755, -0.032773733139038086, 0.04743648320436478, -0.009366142563521862, 0.032618407160043716, -0.007564363535493612, -0.010135005228221416, 0.003980222158133984, 0.02390463277697563, 0.0010426240041851997, -0.003984105307608843, -0.015633536502718925, -0.025287030264735222, -0.004997605923563242, 0.032680537551641464, 0.005358738359063864, 0.018934208899736404, -0.02718200534582138, -0.0027143172919750214, 0.012356163002550602, -0.009047724306583405, 0.03041278012096882, 0.026840288192033768, -0.01803331822156906, 0.03603557124733925, 0.03157772496342659, -0.0022638726513832808, 0.006112067960202694, 0.014491891488432884, -0.03055257350206375, 0.0027803308330476284, -0.015027766115963459, 0.014856907539069653, -0.006578045431524515, -0.036967527121305466, 0.01310949306935072, -0.0662309005856514, -0.01870121993124485, 0.02314353547990322, 0.03358142450451851, 0.006061587017029524, 0.017645005136728287, -0.011082491837441921, 0.027119874954223633, -0.007168283220380545, -0.031204942613840103, 0.012379461899399757, -0.01742754876613617, 0.01295416709035635, -0.0007931320578791201, -0.05784330517053604, -0.03404740244150162, 0.003339503426104784, 0.007774053607136011, -0.014647217467427254, 0.015478210523724556, -0.0066207596100866795, -0.0226930920034647, -0.017645005136728287, 0.009839885868132114, 0.03485509753227234, -0.023314394056797028, -0.036315158009529114, 0.004659772384911776, 0.007005190942436457, -0.00016005832003429532, -0.008519616909325123, 0.016014084219932556, -0.009459338150918484, 0.016014084219932556, -0.021683473140001297, -0.009513702243566513, -0.01595195382833481, -0.0024444388691335917, -0.0042947567999362946, -0.014484125189483166, 0.0012484306935220957, -0.002273580525070429, -0.017753733322024345, -0.0021473783999681473, -0.05277968943119049, -0.005036437418311834, 0.007758521009236574, -0.022366907447576523, 0.005999456625431776, -0.006915878504514694, -0.008030341006815434, -0.02247563563287258, -0.002617238787934184, -0.009785521775484085, -0.03789948299527168, 0.009086555801331997, -0.03463764116168022, 0.046380266547203064, 0.03839652240276337, 0.011564001441001892, 0.03336396813392639, 0.040136173367500305, -0.0022755220998078585, -0.003252132795751095, -0.0018619673792272806, 0.016138345003128052, 0.009443805553019047, 0.030133193358778954, -0.014538489282131195, 0.007428453769534826, -0.016309203580021858, 0.028129491955041885, 0.004395718686282635, -0.003859844757243991, 0.017505211755633354, -0.011750392615795135, -0.028129491955041885, 0.017256690189242363, 0.012029978446662426, -0.0104534225538373, 0.006430485751479864, 0.015835460275411606, 0.02146601863205433, -0.015229688957333565, -0.009249648079276085, -0.03510361909866333, -0.016790712252259254, 0.03003999963402748, 0.04532405361533165, -0.016946038231253624, -0.018918676301836967, -0.03994978219270706, -0.02488318458199501, -0.003209418151527643, 0.009948614053428173, 0.02028554119169712, 0.025877268984913826, -0.007840067148208618, -0.0042287432588636875, -0.012837672606110573, -0.008348758332431316, -0.019912760704755783, -0.007587662432342768, -0.03342609852552414, -0.011074725538492203, 0.002941481303423643, 0.01481807604432106, 0.014755945652723312, -0.013093960471451283, 0.009568065404891968, 0.0018998279701918364, 0.024960847571492195, -0.025333628058433533, 0.02503851056098938, -0.00490441033616662, -0.016014084219932556, 0.003155054058879614, 0.0010241791605949402, -0.03041278012096882, -0.0008688533562235534, -0.010391292162239552, 0.026343246921896935, -0.00709062023088336, 0.017707135528326035, -0.016681984066963196, 0.012767775915563107, -0.015920888632535934, 0.028331415727734566, 0.00027279084315523505, 0.02222711406648159, 0.008053639903664589, -0.03101855143904686, 4.659772457671352e-05, -0.007630377076566219, -0.03296012431383133, 0.04451635852456093, 0.01874781772494316, 0.012394994497299194, -0.010958231054246426, -0.027275200933218002, -0.030474910512566566, -0.028067361563444138, 0.02753925509750843, 0.022506700828671455, 0.0035064786206930876, 0.010841736570000648, -0.02253776602447033, 0.04355333745479584, -0.025939399376511574, -0.03342609852552414, -0.0453861840069294, -0.016340268775820732, -0.003838487435132265, -0.03317758068442345, 0.023019274696707726, 0.018048850819468498, -0.012426059693098068, -0.007723572663962841, -0.030335117131471634, 0.0023900747764855623, -0.007078970782458782, 0.014856907539069653, 0.028036296367645264, 0.012472657486796379, -0.007059555035084486, 0.00327737326733768, -0.043460141867399216, -0.02677815780043602, -0.017101364210247993, 1.473622614867054e-05, -0.002339594066143036, 0.00019015268480870873, 0.010430123656988144, 0.018514828756451607, 0.02298820950090885, 0.011835821904242039, -0.008286628872156143, 0.01001851074397564, -0.016883907839655876, -0.008154601790010929, -0.003380276495590806, 0.011532936245203018, 0.0060227555222809315, -0.010034043341875076, -0.003292905865237117, 0.008768138475716114, 0.02253776602447033, 0.00787889864295721, -0.01997489109635353, -0.038769304752349854, -0.01655772514641285, -0.027414994314312935, 0.003714226884767413, -0.0030424429569393396, -0.032773733139038086, -0.012014445848762989, 0.0295429565012455, 0.03106514923274517, -0.03693646192550659, -0.0034967707470059395, -0.01408027857542038, 0.03566278889775276, -0.007657559122890234, -0.007762404158711433, 0.014002615585923195, -0.010282563976943493, -0.0070828539319336414, 0.0016066506505012512, -0.03050597570836544, 0.005145165137946606, 0.016216007992625237, -0.017349885776638985, -0.015835460275411606, -0.01818864420056343, -0.00907102320343256, -0.04370866343379021, -0.036253027617931366, -0.008309926837682724, 0.018359502777457237, 0.016169410198926926, -0.026545168831944466, -0.010088407434523106, -0.004807331599295139], "id": 48}, {"title": "Perry Greeley Holden", "text": "Perry Greeley Holden (October 13, 1865 \u2013 October 8, 1959) was the first professor of agronomy in the United States.", "vector": [-0.042185183614492416, -0.013899726793169975, -0.01151136215776205, 0.005064860451966524, -0.02779945358633995, -0.026771901175379753, -0.0301878172904253, -0.01803770661354065, 0.024897312745451927, 0.042935021221637726, -0.05340494215488434, 0.0007897571776993573, -0.009067454375326633, 0.00041939577204175293, 0.01438573095947504, 0.026466412469744682, -0.01741284504532814, 0.030215589329600334, -0.03271504119038582, -0.003122578375041485, 0.06187530606985092, -0.06559671461582184, -0.007234523072838783, 0.04335159435868263, 0.06726301461458206, 0.002051633084192872, -0.00758166890591383, 0.003648504614830017, 0.05215521901845932, 0.03235400840640068, 0.017607245594263077, 0.014607904478907585, 0.0387137234210968, 0.016413064673542976, -0.006477744784206152, -0.04346268251538277, -0.04274061694741249, -0.01745450124144554, 0.008616164326667786, 0.022522833198308945, -0.008956367149949074, 0.0156493429094553, -0.013024918735027313, 0.041963011026382446, 0.00763721251860261, 0.034492429345846176, -0.011053129099309444, -0.014031642116606236, -0.029382439330220222, 0.0384637787938118, -0.015107794664800167, 0.018884742632508278, 0.0007146868738345802, -0.030076730996370316, -0.005648065824061632, 1.2102649407097488e-06, 0.009324342012405396, 0.10842064768075943, -0.011858507990837097, -0.024105818942189217, -0.05626542866230011, 0.010004748590290546, -0.04662865400314331, -0.005960497073829174, 0.04271284490823746, 0.0024734153412282467, -0.012670829892158508, 0.01569100096821785, -0.013892783783376217, 0.028715919703245163, 0.03477014601230621, -0.03474237397313118, 0.013837240636348724, 0.04865598678588867, 0.023841988295316696, -0.023744788020849228, 0.041574206203222275, -0.009664544835686684, 0.005172475706785917, -0.0055959937162697315, -0.06926257163286209, -0.035075634717941284, 0.018093250691890717, 0.0241752490401268, -0.012622229754924774, -0.027507850900292397, 0.021273108199238777, -0.042851705104112625, 0.015191109851002693, 0.014677333645522594, -0.0012037288397550583, 0.07120659202337265, 0.01182379387319088, 0.011615505442023277, -0.019342975690960884, 0.03699187934398651, -0.02935466729104519, -0.009129940532147884, 0.057487379759550095, 0.0019231889164075255, -0.03510340675711632, -0.006328471936285496, -0.006224328186362982, -0.01509390864521265, -0.03282612934708595, 0.03235400840640068, -0.05684863403439522, 0.01967623643577099, 0.046212077140808105, 0.05887596681714058, 0.025661034509539604, -0.030687708407640457, 0.0001145581845776178, 0.023355985060334206, 0.00043349858606234193, 0.01913468912243843, -0.026494184508919716, 0.0004873062134720385, -0.013233206234872341, 0.010074177756905556, -0.02585543505847454, -0.022564491257071495, -0.0038255490362644196, 0.02182854153215885, 0.014038585126399994, -0.04318496584892273, -0.022203460335731506, 0.0026764958165585995, 0.022522833198308945, -0.04857267066836357, -0.026799673214554787, 0.01896805875003338, 0.01240005623549223, -0.006467330269515514, -0.013670610263943672, 0.03668639063835144, 0.08925818651914597, 0.044795721769332886, 0.0408521443605423, 0.046434253454208374, -0.021509166806936264, 0.024466851726174355, -0.05176641419529915, 0.00439833989366889, -0.018357081338763237, -0.041963011026382446, -0.06598551571369171, 0.02196739986538887, -0.021286994218826294, 0.026410868391394615, -0.012879117392003536, -0.002905612112954259, 0.0632638931274414, -0.03054885007441044, -0.013510922901332378, -0.052488479763269424, 0.027785567566752434, -0.021314766258001328, -0.06742963939905167, -0.02577212080359459, -0.020217783749103546, 0.02461959607899189, -0.012122338637709618, 0.03815829008817673, -0.012233425863087177, -0.022383974865078926, -0.0204677302390337, 0.014649561606347561, 0.00027099085855297744, -0.002839654451236129, 0.014843964017927647, -0.04062997177243233, 0.02854928933084011, -0.0314653143286705, -0.05993128940463066, 0.004929473623633385, 0.037908345460891724, 0.00917159765958786, -0.02439742162823677, 0.0060438122600317, -0.03185411915183067, 0.013663667254149914, 0.024244677275419235, 0.014059414155781269, -0.001092642080038786, 0.009886718355119228, 0.026813559234142303, 0.08120439946651459, -0.015746543183922768, 0.0014875206397846341, -0.03390922397375107, 0.00655411696061492, -0.056820861995220184, 0.022731121629476547, 0.023175468668341637, -0.005044031888246536, -0.04940582066774368, -0.013726153410971165, -0.06065335124731064, -0.008671707473695278, -0.020120583474636078, -0.033881451934576035, -0.011129501275718212, 0.008518963120877743, -0.02502228505909443, -0.007036649622023106, 0.0050544459372758865, 0.07148430496454239, 0.0011082636192440987, 0.010442152619361877, 0.027646709233522415, -0.04446246102452278, 0.008824451826512814, 0.0407688282430172, -0.007533068768680096, 0.025133371353149414, 0.005672365892678499, -0.008879994973540306, -0.017621131613850594, 3.1527908959105844e-06, 0.005585579667240381, -0.003301358548924327, -0.012990203686058521, 0.005925782490521669, 0.002213055966421962, -0.03999122232198715, -0.01971789449453354, 0.011053129099309444, -0.010011691600084305, -0.029910100623965263, -0.03107651136815548, -0.014982822351157665, -0.030882110819220543, 0.05732075124979019, -0.03746400028467178, 0.03915807232260704, -0.03488123044371605, 0.0276328232139349, 0.0042212954722344875, -0.03093765303492546, 0.010449095629155636, 0.013254035264253616, -0.04704522714018822, -0.023106038570404053, -0.014274644665420055, 0.03788057342171669, -0.03743622824549675, -0.06926257163286209, -0.01380946859717369, 0.02130088023841381, 0.028799233958125114, -0.04610099270939827, 0.014087185263633728, -0.029632383957505226, 0.016565807163715363, -0.007421982008963823, 0.034020308405160904, -0.009935319423675537, 0.02227288857102394, 0.005040560383349657, -0.03252064064145088, 0.032242923974990845, 0.00693944888189435, -0.005335634108632803, -0.025605490431189537, -0.02152305282652378, 0.0033308661077171564, 0.026577498763799667, 0.01702404022216797, -0.018662570044398308, -0.010678211227059364, -0.013122119940817356, 0.013184606097638607, 0.05184973031282425, 0.03210406377911568, 0.00037860614247620106, -0.028938092291355133, 0.012483370490372181, -0.007130379322916269, 0.01233062706887722, -0.020259441807866096, -0.04462909325957298, 0.017954392358660698, -0.04462909325957298, -0.006519402377307415, -0.003013227367773652, -0.020453844219446182, -0.02466125413775444, 0.024230793118476868, -0.04865598678588867, -0.023925304412841797, -0.009553458541631699, -0.0039053927175700665, 0.0410187728703022, -0.0006226931582204998, -0.0008335844031535089, 0.000454327353509143, -0.02480011247098446, 0.006595774553716183, -0.04201855510473251, 0.08703645318746567, 0.011178101412951946, 0.029465753585100174, 0.00489475904032588, 0.003940107300877571, -0.04918364807963371, -0.021995171904563904, -0.03563106805086136, 0.018843086436390877, -0.040602199733257294, 0.0006300700479187071, 0.0037838916759938, 0.04857267066836357, 0.0230227243155241, 0.002466472564265132, 0.009254912845790386, 0.03565884009003639, 0.09120219945907593, -0.006613131612539291, -0.02907695062458515, -0.05015565827488899, -0.007352552842348814, -0.009567344561219215, -0.0528772808611393, 0.010317179374396801, 0.006463858764618635, -0.011761306785047054, 0.008414819836616516, 0.01363589521497488, 0.0132401492446661, -0.049211420118808746, -0.051072120666503906, 0.017246214672923088, -0.02073156088590622, 0.04190746694803238, -0.06965138018131256, -0.010393551550805569, 0.034325797110795975, -0.028521517291665077, -0.0014319773763418198, -0.0217868834733963, -0.011094787158071995, -0.011525248177349567, 0.030965425074100494, 0.040907688438892365, -0.022745007649064064, 0.08986916393041611, 0.02913249470293522, 0.00431849667802453, 0.0012627436080947518, 0.0005858088843524456, -0.0013989984290674329, -0.0011881073005497456, -0.0013304371386766434, 0.0065923030488193035, 0.02231454662978649, -0.028146598488092422, -0.009296569973230362, 0.02793831191956997, 0.010247750207781792, 0.005995211657136679, -0.03682525083422661, 0.04848935455083847, 0.03646421805024147, -0.008317618630826473, 0.03077102266252041, -0.0032024220563471317, 0.012587514705955982, 0.01816267892718315, -0.010608782060444355, -0.027507850900292397, 0.03210406377911568, 0.010532409884035587, -0.0004651756607927382, -0.01120587345212698, -0.032603953033685684, 0.007505296729505062, 0.01674632355570793, -0.022661691531538963, -0.02103704959154129, 0.02678578719496727, 0.029465753585100174, 0.011122558265924454, -0.00138424476608634, -0.04504566639661789, -0.06709638237953186, 0.008435647934675217, 0.00738032441586256, 0.007880214601755142, -0.05698749050498009, -0.024786226451396942, 0.004703828599303961, 0.0133442934602499, 0.009699259884655476, 0.027466192841529846, 0.007845500484108925, 0.02761893719434738, -0.012858288362622261, 0.05604325234889984, -0.006061169318854809, 0.020134469494223595, -0.06193085014820099, -0.00915076956152916, 0.019523492082953453, 0.013552580960094929, -0.004495541099458933, 0.003060092218220234, 0.054654669016599655, 0.021273108199238777, 0.020176127552986145, -0.005818167235702276, 0.01025469321757555, -0.038519322872161865, 0.01873200014233589, 0.009935319423675537, -0.0026851745788007975, 0.01603814586997032, 0.02064824476838112, 0.023175468668341637, 0.033353790640830994, 0.028438201174139977, 0.029271353036165237, -0.026147037744522095, -0.016829639673233032, 0.010067234747111797, -0.019995611160993576, 0.026758015155792236, 0.011421103961765766, 0.0006795383524149656, 0.0436570830643177, -0.013969155959784985, 0.020745446905493736, 0.03310384601354599, 0.015607684850692749, 0.01553825568407774, 0.0026712885592132807, 0.023439299315214157, 0.0276328232139349, 0.045878816395998, 0.06081998348236084, -0.008630050346255302, -0.034186940640211105, -0.04049111157655716, 0.014649561606347561, -0.07220637053251266, -0.038213834166526794, -0.03263172507286072, -0.0059674400836229324, 0.0005163797177374363, 0.029854558408260345, -0.019148575142025948, 0.025036171078681946, 0.012518085539340973, 0.016996270045638084, -0.0074080959893763065, -0.029160264879465103, -0.011143387295305729, -0.00028118828777223825, 0.003874149639159441, 0.014594018459320068, 0.008039901964366436, 0.0005476228543557227, 0.025702690705657005, -0.021578596904873848, -0.05282173678278923, 0.012094567529857159, 0.008720307610929012, 0.0003041866875719279, -0.015524369664490223, -0.0016012110281735659, 0.011629391461610794, 0.01980120874941349, -0.0035999042447656393, 0.03849155083298683, -0.00040312332566827536, 0.005391177721321583, -0.0015656285686418414, 0.05246070772409439, 0.014871735125780106, 0.039185844361782074, 0.0018815314397215843, -0.0230227243155241, -0.026674700900912285, 0.0031937432941049337, 0.04279616102576256, -0.016871295869350433, 0.03907475620508194, 0.001379905384965241, 0.010400494560599327, 0.05632096901535988, -0.03288166970014572, 0.04462909325957298, -0.01080318447202444, 0.012761088088154793, 0.040907688438892365, 0.034631285816431046, 0.019551264122128487, 0.038436006754636765, -0.017871076241135597, 0.03263172507286072, 0.013045747764408588, 0.015885401517152786, 0.027605051174759865, -0.019079145044088364, -0.028632603585720062, 0.011344731785356998, 0.03849155083298683, -0.023966960608959198, 0.0432405099272728, 0.01573265716433525, 0.001191578689031303, 0.051905274391174316, 0.00833150465041399, 0.03965796157717705, 0.04640648141503334, 0.00046127027599141, -0.011323902755975723, -0.0008791473228484392, 0.019467948004603386, 0.041352033615112305, -0.008435647934675217, 0.0012297647772356868, -0.02431410737335682, 0.0020776689052581787, 0.007185922469943762, 0.04482349380850792, -0.02271723560988903, -0.033603735268116, 0.026049837470054626, -0.008921653032302856, 0.010726812295615673, -0.01688518188893795, -0.026049837470054626, 0.008761965669691563, 0.024494623765349388, 0.023633701726794243, -0.011233645491302013, 0.06015346199274063, 0.03435356914997101, -0.012545857578516006, -0.02966015599668026, 0.013254035264253616, 0.037325140088796616, -0.041046544909477234, 0.0435737669467926, 0.028368772938847542, -0.022800549864768982, 0.018620911985635757, 0.012198710814118385, 0.011546076275408268, 0.0384637787938118, -0.0029594197403639555, -0.023133810609579086, 0.012122338637709618, 0.06881822645664215, 0.019690122455358505, -0.050766635686159134, -0.007741356268525124, 0.00961594469845295, -0.009317399002611637, -0.017315642908215523, -0.014746762812137604, -0.04582327604293823, 0.0063423579558730125, -0.07559451460838318, 0.002933383919298649, 0.015927059575915337, 0.024675138294696808, 0.0484338141977787, -0.00693944888189435, -0.01626032032072544, -0.02255060523748398, -0.0035894899629056454, 0.03982459008693695, -0.020620472729206085, 0.004662171006202698, -0.022689463570713997, -0.04099100083112717, -0.05804281309247017, -0.021731341257691383, 0.004183109384030104, 0.0035651896614581347, 0.001058795372955501, -0.0278411116451025, -0.03235400840640068, -0.005248847883194685, -0.004276839084923267, 0.02816048450767994, -0.02714681811630726, -0.04507343843579292, -0.04054665565490723, -0.021717455238103867, 0.0005853750044479966, 0.0022564490791410208, 0.014968936331570148, -0.03690856322646141, -0.008456476964056492, -0.025536060333251953, -0.039046984165906906, 0.042990561574697495, -0.00414492329582572, 0.026313668116927147, -0.04229627177119255, -0.02338375523686409, -0.007345609832555056, -0.0386304073035717, -0.003915807232260704, -0.01056712493300438, 0.026882987469434738, -0.00270253187045455, 0.008150988258421421, -0.006658260710537434, 0.010511581785976887, -0.0048045008443295956, -0.008081559091806412, 0.008109331130981445, -0.012059852480888367, 0.01856536976993084, 0.03735291212797165, 0.012858288362622261, 0.0770941898226738, -0.0007307423511520028, -0.044045887887477875, 0.0008327165269292891, 0.02143973857164383, 0.0064881592988967896, -0.02431410737335682, -0.02741065062582493, -0.006606188602745533, -0.01605203188955784, -0.009456257335841656, -0.025966523215174675, -0.0361587293446064, -0.028743689879775047, -0.005686251912266016, -0.03482569009065628, -0.012358398176729679, 0.047850608825683594, 0.0034853459801524878, 0.024564052000641823, 0.009824232198297977, -0.004578855820000172, -0.031132055446505547, -0.01741284504532814, -0.032159607857465744, 0.018856972455978394, 0.026105381548404694, 0.0042803105898201466, 0.0015100851887837052, -0.004019950982183218, 0.02709127590060234, -0.05482130125164986, 0.02125922217965126, -0.005873710848391056, 0.03346487507224083, -0.03699187934398651, -0.02259226329624653, -0.051738642156124115, 0.026188695803284645, 0.00432196818292141, -0.0027459249831736088, 0.017968278378248215, -0.010525466874241829, 0.011872394010424614, 0.024994513019919395, 0.0040685515850782394, -0.017496159300208092, 0.019148575142025948, 0.040018994361162186, 0.01127530261874199, -0.011615505442023277, -0.005068331956863403, 0.016496378928422928, -0.005398120731115341, 0.002650459762662649, -0.026452526450157166, -0.04201855510473251, 0.013823354616761208, -0.03629758954048157, 0.008435647934675217, -0.008560621179640293, 0.013844183646142483, -0.012066795490682125, -0.005276619456708431, -0.02081487514078617, 0.005731381010264158, -0.010747640393674374, 0.04840604215860367, -0.0019891466945409775, 0.04343491047620773, -0.008067673072218895, 0.01215705368667841, -4.5942604629090056e-05, 0.02346707135438919, 0.009567344561219215, -0.009622887708246708, 0.021273108199238777, -0.029243580996990204, -0.03899144008755684, -0.005953554064035416, -0.023106038570404053, 0.04723963141441345, -0.0048045008443295956, -0.002999341581016779, 0.01882920041680336, -0.01191405113786459, -0.012205653823912144, -0.04057442769408226, -0.023855874314904213, -0.001143846195191145, 0.01714901253581047, 0.012844402343034744, 0.003497496247291565, 0.0067832330241799355, 0.020481614395976067, -0.057487379759550095, 0.020009497180581093, 0.014982822351157665, -0.005398120731115341, -0.01821822300553322, 0.0033447518944740295, 0.040463339537382126, -0.0009902339661493897, -0.004679528530687094, 0.0008292450802400708, 0.011997366324067116, -0.018593139946460724, 0.03576992452144623, -0.024564052000641823, 0.02020389772951603, -0.002787582576274872, 0.014031642116606236, 0.026452526450157166, -0.003860263852402568, 0.02081487514078617, -0.03576992452144623, -0.031937435269355774, -0.005769566632807255, 0.005443249829113483, -0.01087261363863945, 0.037019651383161545, 0.02656361274421215, 0.05770955607295036, -0.021536938846111298, 0.0007841160986572504, 0.01188628003001213, 0.017565589398145676, 0.025563832372426987, 0.0033673164434731007, -0.01476064883172512, 0.04371262714266777, 0.009025796316564083, -0.03196520730853081, 0.0060507552698254585, 0.012247311882674694, -0.023550385609269142, 0.0034002952743321657, -0.044656865298748016, 0.0023605928290635347, -0.002936855424195528, 0.005484906956553459, -0.0003634184831753373, 0.01133778877556324, 0.024952856823801994, 0.050322286784648895, 0.028299342840909958, -0.03807497397065163, -0.041213177144527435, 0.004061608575284481, 0.031409770250320435, 0.011893223039805889, -0.010518524795770645, -0.038602638989686966, 0.007907986640930176, 0.02334209904074669, 0.0335204191505909, 0.006859605200588703, 0.047933921217918396, -0.00883833784610033, -0.04646202176809311, -0.0003686256823129952, -0.012879117392003536, -0.02832711488008499, 0.0228144358843565, 0.0076996986754238605, -0.004190052393823862, 0.0043427967466413975, 0.0030757137574255466, -0.038436006754636765, -0.008768908679485321, 0.0012445184402167797, 0.04476794973015785, 0.005422420799732208, -0.004991959780454636, 0.013899726793169975, 0.017621131613850594, -0.021009277552366257, -0.0037491770926862955, 0.0012445184402167797, -0.021231450140476227, 0.019259661436080933, -0.019370747730135918, 0.0036311473231762648, 0.05634874105453491, -0.008720307610929012, -0.03979681804776192, 0.006304171867668629, -0.024258563295006752, -0.00819958932697773, 0.00027836771914735436, 0.013101290911436081, 0.03152085840702057, 0.030909880995750427, -0.014128843322396278, 0.028007740154862404, -0.005234961863607168, 0.007574726361781359, -0.015552141703665257, -0.0530439130961895, 0.02461959607899189, -0.030965425074100494, -0.025397202000021935, -0.011150330305099487, -0.01900971680879593, 0.03535335138440132, 0.026994073763489723, -0.0013200227404013276, -0.031576402485370636, -0.009595115669071674, -0.0037075194995850325, 0.019787322729825974, 0.012163996696472168, -0.01816267892718315, -0.012858288362622261, -0.006977634970098734, 0.009178540669381618, -0.022036829963326454, 0.0228977520018816, 0.03699187934398651, -0.014691219665110111, 0.030132275074720383, -0.016343634575605392, -0.008553678169846535, -0.010303294286131859, -0.01476064883172512, 0.05254402011632919, -0.015329968184232712, -0.05132206901907921, -0.011747421696782112, -0.035158947110176086, 0.011796021834015846, -0.011497476138174534, -0.021411966532468796, 0.0700957253575325, 0.02263392135500908, -0.014746762812137604, 0.009963090531527996, -0.0138788977637887, 0.03746400028467178, 0.011462762020528316, 0.03504786267876625, 0.027868881821632385, 0.011816850863397121, 0.0031468786764889956, 0.02696630358695984, 0.005783452652394772, 0.019509606063365936, -0.027327334508299828, 0.003148614428937435, 0.002204377204179764, -9.063765901373699e-05, 0.006189613603055477, 0.009817289188504219, -0.04065774008631706, -0.009942262433469296, 0.01107395812869072, -0.0005376423941925168, 0.018370967358350754, 0.01639917865395546, 0.010393551550805569, -0.02311992458999157, -0.014246872626245022, -0.044573549181222916, 0.015107794664800167, -0.013080461882054806, 0.011254473589360714, 0.008102388121187687, 0.034714601933956146, -0.011296131648123264, 0.020051153376698494, -0.010983699932694435, -0.03177080303430557, 0.0050718034617602825, -0.0020672546233981848, 0.003967878874391317, 0.032159607857465744, 0.020439958199858665, 0.010483809746801853, -0.04115763306617737, 0.010969813913106918, -0.0026730243116617203, 0.03579769656062126, 0.04535115510225296, 0.06448584794998169, 0.04049111157655716, -0.02563326247036457, 0.03371481969952583, -0.028216028586030006, 0.02255060523748398, 0.018468167632818222, 0.0012531970860436559, 0.013184606097638607, 0.04521229863166809, -0.0019926181994378567, 0.016787981614470482, 0.03324270248413086, 0.03160417452454567, 0.021995171904563904, -0.0002414834452793002, -0.004846158437430859, 0.0036554476246237755, -0.02135642245411873, -0.019565150141716003, -0.020190011709928513, -0.005495321471244097, 0.00022152255405671895, 0.016815753653645515, -0.0055543361231684685, 0.005050974432379007, 0.03704742342233658, -0.008859166875481606, 0.019329089671373367, -0.022772779688239098, -0.007866328582167625, 0.009692316874861717, 0.03654753416776657, -0.020259441807866096, -0.02368924394249916, -0.05504347383975983, -0.029910100623965263, 0.00270253187045455, 0.001233236282132566, -0.018509825691580772, 0.0030566207133233547, -0.02324489690363407, -0.005453663878142834, 0.052127446979284286, 0.062930628657341, -0.021453624591231346, 0.0033065658062696457, 0.03910252824425697, 0.005894539412111044, -0.012559742666780949, 0.02316158264875412, 0.002416136208921671, 0.05154424160718918, 0.021148135885596275, 0.013406779617071152, 0.011789078824222088, 0.002122798003256321, -0.027521736919879913, -0.04199078306555748, -0.011830735951662064, -0.016274206340312958, -0.002461265306919813, -0.0026278954464942217, -0.00819958932697773, 0.022953294217586517, -0.015357740223407745, -0.03124314174056053, -0.0216202549636364, 0.028938092291355133, 0.015413283370435238, -0.019245775416493416, 0.015010593459010124, 0.0228144358843565, 0.005186361726373434, 0.030743252485990524, 0.01980120874941349, 0.04782283678650856, 0.005745266564190388, 0.027743909507989883, -0.004304610658437014, 0.0182043369859457, 0.022161802276968956, 0.0010492488509044051, -0.022328432649374008, -0.015399397350847721, -0.03840823471546173, 0.009296569973230362, -0.04296279326081276, -0.046961914747953415, 0.057487379759550095, -0.004450412001460791, 0.030076730996370316, 0.00699499249458313, 0.011080901138484478, -0.00394357880577445, 0.03257618099451065, -0.0013955270405858755, -0.04146312177181244, -0.010754583403468132, 0.04410143196582794, -0.04904479160904884, -0.005960497073829174, 0.0030722422525286674, 0.02245340496301651, 0.04782283678650856, 0.012684715911746025, -0.0010154021438211203, -0.006734632886946201, -0.024647368118166924, -0.006151427514851093, -0.024508509784936905, 0.021717455238103867, -0.011809907853603363, -0.019870638847351074, 0.05507124587893486, -0.018662570044398308, -0.015621570870280266, 0.008095445111393929, -0.01131696067750454, 0.03460351377725601, 0.029299123212695122, -0.013663667254149914, 0.0033343376126140356, 0.00016033806605264544, -0.0192318893969059, -0.011566905304789543, -0.011455819010734558, -0.023897532373666763, -0.014094128273427486, 0.00826207548379898, -0.037686172872781754, -0.06459692865610123, 0.03718627989292145, 0.014732876792550087, -0.045878816395998, 0.015385511331260204, -0.013358178548514843, 0.02267557755112648, 0.01405247114598751, -0.025161143392324448, 0.022383974865078926, -0.01773221790790558, 0.00598826864734292, -0.015677114948630333, -0.011358617804944515, -0.008345390670001507, -0.010011691600084305, 0.005391177721321583, -0.022397860884666443, 0.06193085014820099, -0.0026626100298017263, -0.016121461987495422, 0.008109331130981445, -0.028035512194037437, -0.012858288362622261, -0.02413359098136425, -0.030743252485990524, 0.03488123044371605, -0.0433238223195076, 0.008963310159742832, -0.021162021905183792, 0.032992757856845856, 0.006529816426336765, -0.005186361726373434, 0.020190011709928513, 0.00387762114405632, -0.005880653392523527, 0.026896873489022255, -0.023578157648444176, 0.03282612934708595, -0.0015456676483154297, -0.05223853141069412, -0.0012549328384920955, -0.01971789449453354, -0.007310895249247551, -0.009428486227989197, 0.004363625310361385, 0.03190966323018074, -0.007078307215124369, -0.0253277737647295, 0.01582985930144787, -0.03454797342419624, 0.0060333977453410625, 0.03115982748568058, -0.0020117112435400486, -0.000454327353509143, -0.003592961234971881, -0.019953953102231026, -0.01255279965698719, 0.0156493429094553, -0.006047283764928579, 0.02107870578765869, 0.024244677275419235, -0.02346707135438919, 0.023314327001571655, -0.014219100587069988, -0.024022504687309265, 0.050655547529459, -0.014621790498495102, -0.02457793802022934, 0.06170867756009102, -0.009956147521734238, -0.011504419147968292, -0.02356427162885666, 0.03235400840640068, -0.06143096089363098, 0.007234523072838783, 0.015524369664490223, -0.00426642457023263, 0.0011264887871220708, -0.02081487514078617, 0.012136224657297134, 0.024105818942189217, 0.01728787273168564, -0.012226482853293419, -0.01737118698656559, -0.011698820628225803, 0.011573848314583302, 0.0074705821461975574, -0.027827225625514984, 6.607300747418776e-06, -0.009400714188814163, -0.004044251050800085, -0.0005819034995511174, -0.021800769492983818, -0.03243732452392578, 0.02664692886173725, -0.004915587604045868, -0.018662570044398308, -0.021064819768071175, -0.0013365121558308601, 0.01605203188955784, -0.02877146191895008, 0.02081487514078617, -0.013052690774202347, 0.0011733535211533308, -0.00795658677816391, 0.009157711640000343, 0.024938970804214478, -0.0004903437802568078, -0.0015517426654696465, -0.003700576489791274, -0.005998683162033558, 0.011330845765769482, 0.023480957373976707, -0.024425193667411804, 0.0059674400836229324, -2.59681496572739e-06, -0.04510121047496796, 0.0006235610344447196, 0.003013227367773652, 0.0016958082560449839, 0.01789884828031063, -0.004683000035583973, 0.017315642908215523, 0.008234303444623947, -0.03265949711203575, -0.0018086307682096958, 0.034853462129831314, -0.018190450966358185, 0.015704885125160217, -0.008428704924881458, 0.009685373865067959, 0.01367755327373743, -0.003294415771961212, -0.01873200014233589, 0.02010669745504856, 0.010011691600084305, 0.02077321708202362, 0.0002636139979586005, 0.019787322729825974, -0.006863076705485582, -0.02328655496239662, -0.00324928667396307, -0.029326895251870155, 0.008428704924881458, -0.022869979962706566, 0.0025393732357770205, -0.01799605041742325, 0.003679747926071286, 0.017037926241755486, 0.003375994972884655, -0.0029403266962617636, -0.03849155083298683, 0.006106298416852951, -0.019370747730135918, 0.027591165155172348, -0.029826786369085312, 0.02160636894404888, -0.01188628003001213, 0.006331943441182375, -0.009650659747421741, -0.0120876245200634, -0.0266052708029747, 0.031215369701385498, -0.019245775416493416, 0.004582327324897051, 0.0010423059575259686, 0.010379666462540627, -0.019926181063055992, 0.035603296011686325, 0.016413064673542976, 0.010782355442643166, -0.015218881890177727, -0.005342577118426561, -0.015107794664800167, 0.031409770250320435, 0.01737118698656559, 0.013837240636348724, 0.007241466082632542, -0.0002677363809198141, -0.009407657198607922, -0.011129501275718212, 0.025036171078681946, -0.012039024382829666, 0.011900165118277073, 0.004558027256280184, 0.004540669731795788, 0.010726812295615673, -0.027646709233522415, -0.009157711640000343, -0.02502228505909443, 0.005127346608787775, 0.012198710814118385, 0.00992143340408802, 0.03660307824611664, -0.010025576688349247, 0.0002349744609091431, -0.03932470083236694, 0.0216619111597538, 0.0028066756203770638, -0.006352772004902363, -0.004262953065335751, 0.04635093733668327, -0.008380104787647724, 0.012684715911746025, 0.027771681547164917, 0.003084392286837101, -0.037102967500686646, -0.023925304412841797, -0.015385511331260204, 0.007692755665630102, 0.0037769486662000418, 0.036714162677526474, 0.01657969318330288, 0.008650878444314003, -0.003634618828073144, -0.04490680992603302, 0.03063216432929039, -0.04918364807963371, 0.007914929650723934, 0.012309798039495945, 0.0037491770926862955, -0.011171159334480762, -0.003417652565985918, 0.02625812590122223, -0.008761965669691563, -0.033131614327430725, 0.002678231569007039, 0.03935247287154198, 0.04854489862918854, 0.008810565806925297, 0.03338156268000603, -0.0316319465637207, 0.03588101267814636, -0.0019856751896440983, 0.012455599382519722, -0.01945406384766102, 0.02607760950922966, 0.01551048457622528, -0.004412225913256407, -0.010143606923520565, 0.01737118698656559, -0.04171306639909744, -0.0042004669085145, -0.016940725967288017, 0.018245995044708252, 0.012920774519443512, 0.004662171006202698, -0.0387137234210968, 0.010886499658226967, 0.01971789449453354, 0.0031815932597965, 0.011434989981353283, -0.014691219665110111, -0.023050496354699135, 0.024813996627926826, -0.02130088023841381, 0.014732876792550087, -0.010469923727214336, 0.012802745215594769, -0.02125922217965126, -0.012011252343654633, 5.576033072429709e-05, 0.0015743072144687176, -0.014635676518082619, -0.0009381620911881328, 0.0060090976767241955, -0.011053129099309444, 0.03415916860103607, 0.005172475706785917, -0.026938531547784805, -0.003474931698292494, -0.009539572522044182, -0.011705763638019562, 0.012754145078361034, 0.027827225625514984, 0.009636773727834225, -0.002466472564265132, 0.00337078794836998, -0.008137103170156479, -0.009588172659277916, 0.0021818126551806927, -0.00490517308935523, 0.017801648005843163, -0.016954611986875534, 0.014371844939887524, 0.021953513845801353, -0.018190450966358185, -0.04057442769408226, -0.015010593459010124, -0.0064048441126942635, 0.004801029339432716, -0.009796461090445518, 0.003919278737157583, -0.0359921008348465, 0.005422420799732208, 0.006710332352668047, 8.793914275884163e-06, -0.04260176047682762, -0.01931520365178585, 0.010851784609258175, 0.00870642252266407, 0.010067234747111797, 0.03040999174118042, 0.015302196145057678, 0.012059852480888367, -0.016065917909145355, -0.006519402377307415, -0.0001710779033601284, -0.01900971680879593, 0.01631586253643036, 0.008928596042096615, 0.020564930513501167, -0.0008257735753431916, -0.00431849667802453, -0.03946356102824211, -0.011802964843809605, -0.019259661436080933, -0.016899067908525467, -0.004023422487080097, -0.0060333977453410625, -0.006349300500005484, -0.00897025316953659, -0.003327394602820277, 0.03229846432805061, 0.019856752827763557, -0.005130818113684654, 0.0036103185266256332, -0.008616164326667786, 0.0006331075564958155, -0.006755461450666189, 0.009782575070858002, 0.010574067942798138, 0.006908205803483725, 0.004047722555696964, -0.03374259173870087, 4.637654001271585e-06, 0.0027337749488651752, 0.007560840342193842, -0.017176784574985504, 0.00763721251860261, -0.013871954753994942, -0.000440224539488554, 0.008213474415242672, -0.009553458541631699, 0.007852442562580109, 0.01741284504532814, -0.03857486695051193, 0.0182043369859457, -0.027341220527887344, 0.03218737989664078, -0.012039024382829666, -0.022786663845181465, -0.007852442562580109, 0.02391141839325428, 0.017579473555088043, -0.0006725954008288682, 0.008234303444623947, 0.009838118217885494, 0.0027476607356220484, 0.016107575967907906, 0.030382219702005386, 0.05007234215736389, 0.021731341257691383, -0.01527442503720522, 0.02785499580204487, -0.022022943943738937, 0.004891287535429001, 0.01919023133814335, 0.03257618099451065, -0.05448804050683975, 0.0022234702482819557, 0.025563832372426987, -0.015107794664800167, 0.04646202176809311, -0.026008179411292076, 0.006390958093106747, 0.012747202068567276, 0.014024699106812477, -0.005266204942017794, -0.02091207541525364, 0.0021575125865638256, 0.008380104787647724, 0.009511801414191723, -0.014510703273117542, 0.031354229897260666, -0.05148869752883911, -0.04782283678650856, -0.013594238087534904, 0.04735071584582329, 0.013094347901642323, -0.04040779545903206, -0.030687708407640457, -0.022397860884666443, -0.00948402937501669, -0.021453624591231346, -0.007442810572683811, -0.019690122455358505, -0.0070921932347118855, 0.00870642252266407, -0.006422201171517372, -0.002344971289858222, 0.009386828169226646, -0.03540889546275139, 0.02824380062520504, -0.018134908750653267, 0.019551264122128487, 0.02860483154654503, 0.01702404022216797, -0.0028500687330961227, -0.024966740980744362, -0.006727689877152443, -0.0003569094988051802, 0.01727398671209812, -0.008102388121187687, -0.030882110819220543, 0.0205927025526762, 0.02130088023841381, 0.008296789601445198, 0.010379666462540627, -0.004669114015996456, 0.03913030028343201, -0.007421982008963823, 0.01834319531917572, 0.014677333645522594, 0.022439518943428993, -0.012934660539031029, -0.0240919329226017, 0.039491333067417145, 0.0432405099272728, -0.02988232858479023, 0.024647368118166924, 0.019565150141716003, 0.02091207541525364, -0.009407657198607922, -0.005918839480727911, -0.017565589398145676, -0.007064421661198139, -0.0066790892742574215, 0.019856752827763557, 0.01882920041680336, 0.04007453843951225, 0.052793968468904495, -0.03354819118976593, 0.0034992319997400045, 0.006557588465511799, 0.02475845441222191, 0.03696410730481148, 0.05396037921309471, -0.014302415773272514, 0.009081339463591576, 0.02771613746881485, -0.033131614327430725, -0.002641781233251095, 0.05926476791501045, -0.002051633084192872, 0.015302196145057678, -0.00035365502117201686, -0.02028721384704113, 0.005675837397575378, -0.024786226451396942, -0.02877146191895008, -0.00038164365105330944, -0.04190746694803238, -0.03465905785560608, -0.0035756039433181286, 0.0014354487648233771, -0.01794050633907318, -0.004436525981873274, 0.024203021079301834, -0.03263172507286072, 0.013323464430868626, -0.035075634717941284, -0.0029524769634008408, -0.017162898555397987, -0.0065332879312336445, -0.010115834884345531, -0.01012277789413929, -0.044656865298748016, 0.025161143392324448, 0.04454577714204788, 0.01887085847556591, 0.013594238087534904, -0.009511801414191723, 0.00934517104178667, -0.007796899415552616, 0.029549069702625275, -0.06537453830242157, -0.008484249003231525, 0.023578157648444176, -0.038824811577796936, -0.03324270248413086, -0.025050057098269463, 0.04310164973139763, -0.011657163500785828, -0.034631285816431046, 0.008060730993747711, -0.023439299315214157, 0.0009338227682746947, -0.011143387295305729, -0.0010579274967312813, -0.012233425863087177], "id": 49}, {"title": "Pralamba", "text": "Pralamba was an asura killed by Balarama. According to the pertinent legend, the asura had attempted to join Krishna and Balarama in a game of jumping, whose conditions dictated that the loser carry the victor on his back. Pralamba promptly lost, and was forced to carry Balarama on his back.", "vector": [-0.00600378168746829, -0.025160886347293854, -0.010686120018362999, 0.020333418622612953, -0.01752248778939247, 0.027895433828234673, -0.012939448468387127, -0.04873298481106758, -0.017965514212846756, 0.026352476328611374, -0.019462641328573227, 0.05964061990380287, -0.017782192677259445, -0.03495331481099129, 0.027360746636986732, 0.004193481057882309, -0.028812041506171227, 0.013481774367392063, -0.06342926621437073, 0.009952833876013756, 0.01930987276136875, -0.001443657441996038, -0.004338610917329788, -0.026077494025230408, -0.013542881235480309, 0.017537765204906464, -0.009104971773922443, -0.010342392139136791, -0.010479883290827274, -0.009547999128699303, 0.014963624067604542, -0.01698780059814453, 0.021066704764962196, 0.0260927714407444, -0.024824798107147217, -0.01740027405321598, 0.015437204390764236, -0.01435255166143179, -0.044883232563734055, -0.03712261840701103, -0.009479253552854061, 0.013443582691252232, -0.01769053190946579, 0.003091642167419195, -0.03153131157159805, -0.025894172489643097, -0.023847082629799843, 0.032142382115125656, 0.0053468793630599976, -0.04195008799433708, 0.053346578031778336, 0.014497681520879269, 0.017125291749835014, -0.009731320664286613, 0.047877486795186996, -0.025221994146704674, 0.010984017513692379, 0.016361450776457787, 0.004151470027863979, 0.014375466853380203, 0.007741517387330532, -0.031714633107185364, -0.0011791778961196542, 0.0018379897810518742, 0.03192850947380066, -0.01996677555143833, 0.07693395763635635, -0.06404034048318863, 0.005797544959932566, -0.005369794555008411, 0.040544621646404266, 0.03687819093465805, -0.010197263211011887, -0.01174021977931261, -0.017965514212846756, 0.008318216539919376, -0.015796208754181862, 0.01960013248026371, -0.03501442074775696, 0.0055378396064043045, -0.042866695672273636, -0.022609662264585495, 0.023098519071936607, 0.038283657282590866, 0.01930987276136875, -0.007401608861982822, 0.012733211740851402, -0.05676858127117157, 0.0004399240424390882, -0.01976817660033703, 0.05252163112163544, 0.02699410170316696, -0.0011228446383029222, -0.0006125041400082409, 0.002365994034335017, 0.04176676645874977, -0.016773924231529236, 0.030400829389691353, -0.01075486559420824, 0.018668247386813164, -0.037183728069067, 0.01840854249894619, -0.0027192700654268265, -0.036419887095689774, 0.034586671739816666, 0.03645044192671776, -0.07901160418987274, 0.02305268868803978, -0.00881471298635006, 0.06709569692611694, -0.02584834210574627, -0.05802128091454506, 0.027314916253089905, -0.005702064838260412, -0.044822126626968384, -0.024687305092811584, 0.02227357216179371, -0.03363950923085213, -0.055668652057647705, 0.021219473332166672, 0.018683524802327156, 0.011915902607142925, -0.06006837263703346, -0.004220215603709221, -0.020806999877095222, -0.05734910070896149, 0.0064544472843408585, 0.039475247263908386, 0.04222507029771805, 0.03583936765789986, -0.007966849952936172, -0.01804189942777157, -0.014367829076945782, -0.03406726196408272, -0.03669486939907074, 0.0013548610731959343, -0.03229515254497528, 0.007737698499113321, -0.009357038885354996, 0.044822126626968384, -0.013351921923458576, -0.03593102842569351, 0.025710850954055786, 0.038864172995090485, -0.008165448904037476, 0.01608646847307682, -0.05881567299365997, 0.0006282583344727755, 0.03312009945511818, -0.02477896772325039, 0.02163194678723812, -0.03751981630921364, 0.025390038266777992, 0.022899920120835304, 0.02853705920279026, 0.06886781007051468, -0.02728436142206192, -0.028735658153891563, 0.024030404165387154, 0.020394526422023773, -0.03733649477362633, 0.005999962333589792, -0.00741688534617424, 0.0017587414477020502, -0.00789046660065651, 0.03455611690878868, 0.0008387917187064886, -0.05099395290017128, 0.04234728589653969, 0.0349227599799633, 0.04897741600871086, 0.00607634661719203, 0.06113774701952934, -0.004239311441779137, -0.011396491900086403, 0.00866958312690258, -0.01256516668945551, 0.004384441301226616, -0.030843855813145638, 0.02383180521428585, -0.012343652546405792, -0.07369527220726013, -0.007867551408708096, -0.008134895004332066, 0.0016747190384194255, -0.011900626122951508, 0.023694314062595367, -0.006527012214064598, -0.03038555197417736, -0.02829262986779213, 0.01263391226530075, -0.014039377681910992, -0.018622417002916336, -0.0001397588348481804, 0.008432792499661446, 0.04292780160903931, 0.03217293694615364, 0.0343116894364357, 0.04366108775138855, -0.020180650055408478, 0.038039226084947586, -0.035656046122312546, 0.007153360638767481, 0.025038672611117363, -0.041980642825365067, 0.03180629387497902, -0.01978345401585102, -0.043997179716825485, 0.020776445046067238, -0.02144862525165081, 0.014658087864518166, -0.03608379885554314, -0.006026696879416704, 0.04133901745080948, -0.0065766614861786366, -0.0003609143604990095, -0.021250026300549507, 0.009311208501458168, -0.002276242943480611, 0.011213170364499092, -0.07369527220726013, 0.005988504737615585, 0.0042775035835802555, 0.02447343058884144, 0.014123399741947651, 0.03055359609425068, -0.03782535344362259, 0.015238606370985508, -0.059487853199243546, -0.00555693544447422, -0.0017730634426698089, 0.05368266999721527, 0.05682969093322754, -0.011595089919865131, -0.015444843098521233, 0.05517979711294174, -0.027207978069782257, -0.0012994826538488269, -0.018148835748434067, -0.028980085626244545, -0.018423818051815033, 0.0326617956161499, -0.04097237437963486, -0.02823152393102646, -0.021051427349448204, -0.0018255773466080427, 0.02985086292028427, -0.06709569692611694, -0.05744076147675514, -0.05536311864852905, 0.010647928342223167, 0.02120419591665268, -0.03535051271319389, 0.06837894767522812, 0.008837628178298473, -0.014245614409446716, 0.004846564028412104, -0.01758359558880329, 0.03531995788216591, 0.016407281160354614, -0.004953501746058464, -0.05557699128985405, -0.015070561319589615, -0.06000726297497749, -0.010617374442517757, -0.04344721511006355, -0.01408520806580782, 0.023862358182668686, 0.007493269629776478, -0.013657458126544952, 0.05380488187074661, -0.0028682188130915165, -0.07607845216989517, 6.46876942482777e-05, -0.027452407404780388, 0.005175015423446894, 0.009471614845097065, 0.020287588238716125, 0.03336452692747116, 0.03733649477362633, 0.0045906780287623405, 0.01381786447018385, 0.026703843846917152, 0.01259572058916092, 0.050199560821056366, 0.006324594374746084, 0.026138601824641228, 0.0011409858707338572, 0.028903702273964882, 0.0386197455227375, -0.014795579016208649, -0.02574140578508377, -0.0022094070445746183, 0.0010159070370718837, 0.014512958005070686, 0.028689827769994736, -0.014153953641653061, 0.045494306832551956, -0.03525885194540024, 0.009326484985649586, 0.07778945565223694, 0.01834743469953537, -0.028643997386097908, -0.0410945862531662, -0.01918765902519226, -0.03663376346230507, -0.07063991576433182, -0.007435981649905443, -0.024565091356635094, 0.04265281930565834, 0.015887869521975517, -0.060801658779382706, -0.02894953265786171, -0.0194168109446764, 0.009547999128699303, 0.027498237788677216, 0.012549890205264091, -0.00134435819927603, -0.0536215603351593, 0.00875360518693924, -0.01197700947523117, 0.023847082629799843, 0.0010369126684963703, -0.02335822395980358, 0.052154988050460815, -0.0028605805709958076, -0.026367753744125366, -0.016468388959765434, -0.003047721227630973, -0.05062730982899666, -0.041613999754190445, -0.0018914586398750544, 0.024565091356635094, -0.029636988416314125, -0.005495828110724688, 0.01573510281741619, -0.025695575401186943, -0.014306721277534962, -0.01152634434401989, -0.02580251172184944, -0.04778582602739334, -0.0056829690001904964, 0.002574140438809991, 0.0019363341853022575, 0.04384440928697586, 0.015215691179037094, 0.032906223088502884, -0.03562549501657486, 0.003933775704354048, 0.017721086740493774, 0.000799644913058728, 0.04466935992240906, 0.03253958001732826, -0.005312506575137377, 0.039353031665086746, -0.06452919542789459, 0.029392559081315994, -0.010938187129795551, -0.042530607432127, 0.050199560821056366, 0.01367273461073637, 0.004269865341484547, -0.022976305335760117, 0.00629786029458046, -0.0051826536655426025, -0.0408807136118412, 0.05844902992248535, -0.038864172995090485, -0.05181889981031418, -0.0010416866280138493, -0.03913915902376175, 0.004938225261867046, 0.036969851702451706, 0.000933794304728508, -0.0029923429246991873, -0.03562549501657486, -0.003712262026965618, 0.0102201784029603, -0.037733692675828934, 0.009242462925612926, -0.007485631387680769, 0.011167339980602264, -0.02276242896914482, -0.008822350762784481, 0.03257013484835625, -0.0065881190821528435, -0.0014742109924554825, -0.032784007489681244, 0.04332499951124191, -0.006110719405114651, 0.029499497264623642, 0.03260068595409393, -0.0020127182360738516, 0.06465140730142593, -0.0067523447796702385, -0.017262782901525497, 0.003551855683326721, 0.012672103941440582, 0.01853075623512268, 0.01798079162836075, -0.02800237201154232, 0.05414097383618355, -0.008470985107123852, -0.009723681956529617, -0.03257013484835625, 0.022747153416275978, 0.01781274750828743, -0.0006311227334663272, 0.06642352044582367, -0.03865030035376549, -0.006771440617740154, 0.021479178220033646, -0.07400081306695938, 0.003861210774630308, 0.018362712115049362, 0.0252678245306015, 0.009670212864875793, 0.03782535344362259, -0.04390551894903183, 0.01063265185803175, -0.05893788859248161, 0.012473505921661854, -0.00012686903937719762, 0.009761874563992023, -0.05184945464134216, 0.014589342288672924, -0.01781274750828743, -0.008234194479882717, -0.007905743084847927, 0.0012689291033893824, 0.03715317323803902, 0.011747857555747032, 0.0484885573387146, 0.05087173730134964, -0.03782535344362259, -0.022655492648482323, 0.03415892273187637, 0.04271392896771431, -0.0024309204891324043, 0.013061662204563618, 0.014902516268193722, 0.0004898123443126678, -0.016712816432118416, -0.007531461771577597, 0.022197188809514046, -0.047755271196365356, -0.009219547733664513, 0.005579850636422634, 0.00956327561289072, 0.06232933700084686, -0.0026447956915944815, -0.02406095713376999, -0.019615409895777702, -0.021876374259591103, 0.010342392139136791, 0.014742109924554825, -0.03284511715173721, -0.0013061662903055549, -0.045494306832551956, 0.01033475436270237, -0.03510608151555061, -0.03742815554141998, 0.04121680185198784, -0.009143163450062275, -0.011388853192329407, -0.012939448468387127, -0.008012680336833, -0.032386813312768936, -0.0015124030178412795, -0.0038879450876265764, -0.022609662264585495, 0.0011963642900809646, -0.05615751072764397, -0.019875114783644676, -0.004655604250729084, 0.004120916128158569, -0.01326026115566492, 0.0031164668034762144, -0.08353353291749954, -0.020165374502539635, 0.009387592785060406, 0.008493900299072266, -0.0125346127897501, -0.023312393575906754, 0.023785974830389023, -0.00626730639487505, 0.002660072408616543, -0.013298452831804752, -0.05432429537177086, 0.012160331010818481, -0.0023106157314032316, -0.042377837002277374, -0.03403670713305473, -0.014245614409446716, -0.0008020318928174675, -0.008883458562195301, -0.0402696393430233, 0.009471614845097065, -0.02645941451191902, -0.036664314568042755, -0.006897474639117718, -0.03608379885554314, 0.0431416779756546, 0.020944491028785706, 0.052032776176929474, 0.033272866159677505, 0.021188918501138687, -0.004846564028412104, 0.02013481967151165, -0.053652115166187286, 0.03461722657084465, 0.01721695251762867, 0.022029142826795578, 0.01929459534585476, 0.010113240219652653, 0.006064889021217823, -0.03241736441850662, 0.011213170364499092, 0.0009376134839840233, -0.01752248778939247, -0.024641474708914757, 0.01620868220925331, -0.017247505486011505, -0.014612257480621338, 0.005270495545119047, -0.005675330758094788, 0.01182424183934927, 0.033028438687324524, -0.03367006406188011, -0.05762408301234245, 0.016880862414836884, 0.019432086497545242, 0.01995149813592434, 0.03736704960465431, -0.006966220214962959, 0.0029904332477599382, -0.021311134099960327, 0.018194666132330894, -0.01953902468085289, 0.015437204390764236, 0.01680447719991207, 0.01924876496195793, -0.020654231309890747, 0.00989172700792551, -0.005071897059679031, -0.024213725700974464, 0.023510992527008057, -0.04573873430490494, -0.011274277232587337, -0.01863769441843033, 0.005988504737615585, -0.020684784278273582, 0.013848417438566685, 0.04442492872476578, -0.0009514581179246306, 0.006973858457058668, 0.035717155784368515, 0.0388336218893528, -0.0032157660461962223, 0.05337713286280632, -0.0033838108647614717, -0.01223671529442072, 0.01906544342637062, 0.021219473332166672, -0.004605954512953758, 0.01637672819197178, 0.019615409895777702, -0.003162297187373042, 0.012106862850487232, -0.017614148557186127, 0.008677221834659576, 0.010678482241928577, -0.030309168621897697, -0.014512958005070686, -0.04039185494184494, -0.02079172246158123, 0.004254588391631842, 0.02853705920279026, -9.823996151681058e-06, -0.026581628248095512, -0.022747153416275978, -0.011961732991039753, -0.01573510281741619, 0.00570588419213891, 0.0028834957629442215, -0.026596905663609505, 0.020868105813860893, 0.013038747012615204, 0.03993355110287666, 0.03473943844437599, 0.016392003744840622, 0.014184507541358471, 0.022533277049660683, 0.004166746512055397, -0.016666986048221588, 0.0008383142994716763, 0.013718564994633198, 0.01900433748960495, 0.008860543370246887, -0.020806999877095222, -0.00155632384121418, -0.0024576550349593163, 0.004403537139296532, 0.04433326795697212, 0.04072794318199158, -0.01144232228398323, -0.024626199156045914, 0.014612257480621338, 0.06825673580169678, -0.01200756337493658, 0.017736362293362617, 0.04900796711444855, -0.021876374259591103, -0.010013941675424576, -0.006786717567592859, -0.03229515254497528, 0.014176868833601475, -0.04867187887430191, 0.024503983557224274, 0.004647966008633375, -0.021295856684446335, 0.01174021977931261, -0.0019401534227654338, 0.037794798612594604, -0.013993547298014164, -0.012435314245522022, -0.021066704764962196, -0.028017647564411163, -0.02108198218047619, 0.023755421862006187, 0.04106403514742851, 0.05557699128985405, 0.016880862414836884, -0.03531995788216591, 0.01301583182066679, 0.018194666132330894, 0.0023125254083424807, -0.04842745140194893, -0.0204403568059206, 0.014153953641653061, 0.012580443173646927, 0.011633281596004963, 0.02818569354712963, -0.09404397010803223, -0.010907634161412716, -0.005029886029660702, 0.02293047495186329, 0.02872038073837757, -0.02566502057015896, 0.02746768295764923, 0.003173754783347249, -0.019493194296956062, 0.0135581586509943, -0.018072452396154404, -0.007233563810586929, 0.00370844267308712, 0.00989172700792551, -0.006847824901342392, -0.019523749127984047, 0.01793496124446392, -0.025817789137363434, 0.00392995635047555, -0.016178129240870476, -0.03305898979306221, 0.006569023244082928, 0.01203811727464199, -0.021540286019444466, 0.01822522096335888, 0.01114442478865385, -0.0006373289506882429, 0.006263487506657839, 0.0013854146236553788, -0.011121509596705437, 0.0007371054962277412, 0.001899096998386085, -0.008027957752346992, 0.013023470528423786, 0.008096703328192234, -0.011281915940344334, 0.02948421984910965, 0.0006807722966186702, -0.0011934998910874128, 0.01930987276136875, -0.026123324409127235, -0.031897954642772675, -0.015513588674366474, -0.005041343625634909, -0.030354999005794525, -0.008845265954732895, -0.007630760781466961, -0.009738958440721035, 0.028995363041758537, 0.02085283026099205, -0.012702657841145992, 0.0587545670568943, 0.02186109870672226, 0.03165352717041969, -0.024580368772149086, -0.020409801974892616, 0.0382225476205349, 0.029682818800210953, -0.023251287639141083, -0.0019210573518648744, 0.008654306642711163, 0.016422558575868607, -0.008906373754143715, 0.007481812033802271, -0.0098611731082201, -0.03250902518630028, 0.046074822545051575, -0.03263124078512192, 0.004109458532184362, -0.00296369893476367, 0.015933699905872345, -0.0033952684607356787, 0.0005303913494572043, -0.0014541601995006204, -0.009853535331785679, -0.0019382437458261847, 0.026046941056847572, 0.008539730682969093, 0.027849603444337845, 0.019340425729751587, -0.010365307331085205, -0.021051427349448204, 0.01698780059814453, -0.020532017573714256, -0.0490996278822422, 0.0011543530272319913, -0.015215691179037094, -0.03556438535451889, -0.012809595093131065, -0.01740027405321598, 0.021906929090619087, 0.016193406656384468, 0.03516719117760658, -0.03984189033508301, 0.004369164351373911, -0.021784713491797447, -0.0016393914120271802, 0.00899803452193737, 0.03703095763921738, -0.001200183411128819, 0.011327746324241161, -0.0222888495773077, -0.05854069069027901, 0.0027593716513365507, 0.0021081981249153614, -0.03131743520498276, -0.003477381309494376, 0.004170565865933895, 0.005541658494621515, 0.03840586915612221, -0.01680447719991207, -0.014604618772864342, 0.021280579268932343, 0.032081276178359985, -0.0008464300772175193, -0.021662499755620956, 0.024397047236561775, -0.02013481967151165, 0.0030840036924928427, -0.005782268010079861, 0.012397121638059616, -0.002423282014206052, -0.003998701926320791, 0.003719900269061327, -0.04968014732003212, 0.0039490521885454655, -0.006805813405662775, -0.0015534594422206283, 0.023266563192009926, -0.005255218595266342, -0.017644701525568962, 0.0011801326181739569, -0.038039226084947586, -0.003135562874376774, 0.0026314284186810255, -0.03651154786348343, 0.04986346885561943, -0.025710850954055786, 0.024091510102152824, -0.018561309203505516, 0.029270345345139503, -0.027987094596028328, -0.004919128958135843, 0.00600378168746829, -0.007588749751448631, 0.0002613764663692564, 0.00577844912186265, 0.05499647557735443, 0.02401512674987316, -0.019936222583055496, -0.0008297211024910212, 0.013267898932099342, -0.030186953023076057, 0.0005938855465501547, 0.02995780110359192, -0.029621711000800133, -0.053591009229421616, 0.010059772059321404, 0.018316881731152534, -0.04723586142063141, 0.01361162681132555, 0.03299788385629654, -0.02001260593533516, 0.025237271562218666, 0.008142533712089062, 0.007115168962627649, 0.022059695795178413, 0.005255218595266342, -0.022854089736938477, 0.01286306418478489, 0.000221871625399217, 0.03342563286423683, -0.013474135659635067, 0.006244391202926636, -0.047266412526369095, -0.008111979812383652, 0.029499497264623642, 0.009097333066165447, 0.004762541968375444, 0.04735807329416275, 0.008791797794401646, 0.010854165069758892, 0.006393339950591326, 0.03556438535451889, 0.022655492648482323, -0.04476102069020271, 0.013886610046029091, 0.0037046235520392656, 0.021586116403341293, 0.030523043125867844, -0.0001682834845269099, 0.006160368677228689, 0.00896748062223196, 0.03391449153423309, -0.023266563192009926, 0.01918765902519226, 0.08017263561487198, -0.03412836790084839, -0.05194111540913582, 0.0051979306153953075, -0.029514774680137634, 0.0073901512660086155, 0.0058166407980024815, -0.02132640965282917, 0.01179368793964386, 0.012389483861625195, 0.015108753927052021, 0.0033398899249732494, 0.012244354002177715, 0.002751733176410198, 0.044058285653591156, -0.0326617956161499, -0.002027994953095913, -0.006313136778771877, 0.024137340486049652, 0.007676591165363789, 0.013688011094927788, 0.004250769037753344, -0.014467127621173859, -0.03137854486703873, -0.032906223088502884, 0.010372946038842201, -0.01912655122578144, 0.017018353566527367, -0.020394526422023773, 0.051207829266786575, -0.014367829076945782, -0.012710296548902988, -0.012870702892541885, 0.024091510102152824, 0.005453817080706358, 0.0003258254728280008, 0.009372315369546413, -0.005094812251627445, -0.018912676721811295, -0.0098611731082201, 0.011663835495710373, -0.004716711584478617, 0.03611434996128082, -0.005744076333940029, 0.03272290155291557, 0.017950238659977913, 0.001432199846021831, 0.006240572314709425, 0.00697003910318017, 0.02406095713376999, -0.013390113599598408, -0.01758359558880329, -0.03062998130917549, -0.0010903815273195505, -0.04604427143931389, 0.05866290628910065, -0.032081276178359985, 0.0010808334918692708, 0.045310985296964645, -0.04903852194547653, -0.009929918684065342, -0.010991656221449375, 0.017369719222187996, -0.021433347836136818, 0.014199784025549889, -0.0029446028638631105, -0.017705809324979782, 0.05163557827472687, 0.024213725700974464, -0.013519966043531895, -0.009968111291527748, -0.018698800355196, 0.05890733376145363, -0.0257872361689806, 0.0031470204703509808, 0.033578403294086456, 0.015750378370285034, -0.004903852473944426, 0.008990395814180374, 0.012015202082693577, -0.016392003744840622, -0.008791797794401646, -0.026306645944714546, -0.015796208754181862, -0.01057154405862093, 0.012947086244821548, 0.039047498255968094, -0.028980085626244545, 0.031959060579538345, -0.02626081556081772, 0.01853075623512268, 0.007187733426690102, -0.006950943265110254, 5.042536940891296e-05, -0.023159626871347427, -0.014497681520879269, -0.040300194174051285, -0.04628869891166687, 0.026673289015889168, -0.030156400054693222, -0.0587545670568943, 0.013688011094927788, -0.006801994517445564, 0.04803025349974632, -0.020043158903717995, 0.03400615230202675, -0.007455077487975359, -0.012824872508645058, 0.0006201425567269325, -0.006863101851195097, -0.01307693962007761, 0.04106403514742851, 0.003609143663197756, -0.022731876000761986, -0.012313099578022957, 0.025237271562218666, 0.029942525550723076, 0.005499647464603186, -0.03586992248892784, -0.011106232181191444, 0.001885729841887951, 0.022349955514073372, -0.013023470528423786, 0.03379227593541145, -0.016880862414836884, -0.027452407404780388, 0.00021077207929920405, -0.015024730935692787, -0.025634467601776123, -0.017843300476670265, 0.013122770003974438, 0.008257109671831131, 0.06135162338614464, 0.024641474708914757, -0.02656635269522667, -0.014627533964812756, 0.008730689994990826, -0.014207422733306885, -0.005396529100835323, 0.0035671324003487825, 0.054354846477508545, 0.05368266999721527, -0.00019012452685274184, -0.011243723332881927, 0.020272310823202133, -0.03079802542924881, 0.026764949783682823, -0.00726793659850955, 0.021066704764962196, 0.011663835495710373, 0.03038555197417736, -0.049405165016651154, 0.011694389395415783, -0.009349400177598, -0.04295835644006729, 0.008982757106423378, 0.016728093847632408, -0.018087729811668396, 0.04204174876213074, -0.002341169398277998, -0.029942525550723076, 0.017782192677259445, -0.03730593994259834, -0.01846964843571186, -0.004059809260070324, 0.018927952274680138, 0.01746137998998165, -0.0007075067260302603, 0.013206792064011097, 0.0012822962598875165, 0.04833579063415527, 0.01775163970887661, 0.0065766614861786366, 0.0022819717414677143, -0.05618806555867195, -0.00023917737416923046, -0.0257872361689806, 0.012175608426332474, -0.01400118600577116, -0.028689827769994736, 0.0770561695098877, -0.016407281160354614, -0.015108753927052021, -0.010403499938547611, 0.03730593994259834, -0.02091393619775772, 0.012878340668976307, 0.03131743520498276, -0.003110738005489111, 0.0011152062797918916, -0.004701434634625912, 0.012175608426332474, -0.0037141714710742235, 0.014467127621173859, 0.00025588637799955904, -0.01182424183934927, -0.0111978929489851, 0.0234193317592144, 0.02853705920279026, -0.05774629861116409, 0.0017826113617047668, 0.020700061693787575, 0.012672103941440582, 0.012557527981698513, -0.00152958941180259, -0.028399568051099777, -0.008005042560398579, -0.008302940055727959, -0.008631391450762749, 0.019432086497545242, -0.015238606370985508, 0.021601391956210136, -0.0008488171151839197, 0.00029264617478474975, -0.045005448162555695, 0.011167339980602264, -0.010915271937847137, -0.00311264768242836, 0.025710850954055786, 0.020654231309890747, -0.005006970837712288, 0.00035757257137447596, -0.031836848706007004, -0.009227186441421509, 0.020287588238716125, 0.01637672819197178, -0.0019878933671861887, 0.029652265831828117, -0.009945196099579334, -0.004338610917329788, 0.0194168109446764, 0.03531995788216591, 0.010884718969464302, -0.0012775223003700376, 0.011587451212108135, 0.008761243894696236, 0.012840148992836475, 0.009769512340426445, 0.00630167918279767, -0.0035575844813138247, -0.01758359558880329, -0.005186473019421101, -0.03865030035376549, -0.017125291749835014, -0.03102717734873295, -0.01810300536453724, -0.010197263211011887, 0.01703363098204136, 0.010166709311306477, 0.026841334998607635, -0.02150973118841648, 0.004800733644515276, 0.030599426478147507, -0.014658087864518166, 0.0004921993240714073, 0.021540286019444466, 0.013474135659635067, 0.02056257054209709, -0.016101745888590813, -0.007791167125105858, -0.021188918501138687, 0.07180095463991165, -0.030339721590280533, -0.030950793996453285, 0.02685661055147648, -0.023251287639141083, 0.0269177183508873, 0.0035251211374998093, 0.04366108775138855, -0.007600207347422838, 0.03379227593541145, 0.006866920739412308, -0.0021731245797127485, -0.017018353566527367, 0.033211760222911835, 0.014810855500400066, 0.017079461365938187, 0.001594515866599977, 0.005010789725929499, -0.0008827124838717282, -0.00470525398850441, -0.014375466853380203, -0.026108048856258392, 0.05719633400440216, -0.011908263899385929, 0.00039313884917646646, 0.0439666248857975, -0.0047205304726958275, 0.02751351334154606, -0.043630536645650864, 0.05212443694472313, -0.02091393619775772, 0.05041343346238136, 0.027895433828234673, 0.018301604315638542, 0.016941970214247704, 0.020409801974892616, 0.03913915902376175, 0.00682109035551548, 0.010052133351564407, -0.006080165505409241, -0.005931216757744551, 0.013962993398308754, 0.009227186441421509, 0.029148131608963013, -0.034586671739816666, 0.026963548734784126, 0.015399012714624405, -0.002438558964058757, 0.023908188566565514, 0.05789906531572342, -0.030339721590280533, -0.00463268905878067, -0.005843375343829393, -0.036603208631277084, 0.02574140578508377, -0.007023508194833994, 0.021127812564373016, -0.01584203913807869, -0.023006858304142952, -0.01138121448457241, -0.0006301679532043636, 0.02537476271390915, -0.0029350549448281527, -0.014283806085586548, -0.0009285428677685559, -0.01182424183934927, -0.027437129989266396, -0.052399419248104095, 0.033456187695264816, 0.029835587367415428, 0.029209237545728683, 0.0075352806597948074, -0.02960643544793129, -0.029056470841169357, -0.02703993208706379, 0.0343116894364357, -0.04115569591522217, -0.04793859273195267, -0.005514923948794603, -0.010365307331085205, -0.04216396436095238, -0.0050757164135575294, 0.011243723332881927, -0.02514561079442501, 0.022181911394000053, 0.05496592074632645, -0.0030286251567304134, -0.04072794318199158, 0.024259556084871292, -0.02222774177789688, 0.04320278391242027, 0.00046618105261586607, -0.0008005996933206916, 0.008325855247676373, -0.025771958753466606, -0.010441691614687443, -0.022655492648482323, 0.008577922359108925, -0.029056470841169357, -0.0075543769635260105, 0.006836367305368185, -0.02615387924015522, -0.0013653638307005167, 0.04555541276931763, -0.0038573916535824537, -0.0400557667016983, -0.009097333066165447, 0.003284511622041464, 0.003712262026965618, -0.010991656221449375, 0.059182316064834595, -0.00034516016603447497, -0.021586116403341293, -0.01697252318263054, 0.01799606904387474, 0.018087729811668396, 0.02471785992383957, 0.023510992527008057, 0.014176868833601475, -0.0337006151676178, -0.03788645938038826, -0.011404129676520824, -0.03269234672188759, 0.028246799483895302, -0.003660702845081687, -0.020226480439305305, 0.026764949783682823, 0.012924171052873135, -0.01976817660033703, -0.007435981649905443, -6.367321475408971e-05, 0.015406651422381401, -0.029866140335798264, 0.011770772747695446, 0.018087729811668396, -0.01966124027967453, -0.007661314215511084, -0.05010790005326271, -0.005824279505759478, 0.003437279723584652, 0.020333418622612953, -0.0027861061971634626, 0.005488189868628979, 0.005178834777325392, -0.020470909774303436, 0.02477896772325039, 0.009693128056824207, 0.002602784428745508, -0.00778734777122736, -0.015299713239073753, -0.007309948094189167, -0.01152634434401989, -0.03156186640262604, -0.0587545670568943, 0.0017787922406569123, 0.005545477848500013, 0.027559343725442886, 0.009066780097782612, -0.020929213613271713, -0.029835587367415428, 0.006771440617740154, -0.022533277049660683, -0.021998589858412743, 0.0007089389255270362, -0.037397600710392, -0.02293047495186329, -0.0020757350139319897, -0.018546033650636673, 0.01804189942777157, 0.003626330057159066, 0.013519966043531895, 0.0037428156938403845, 0.003284511622041464, -0.0005361201474443078, -0.002877766964957118, -0.011472875252366066, 0.00851681549102068, -0.027177423238754272, 0.03001890890300274, 0.006798175163567066, 0.00031532265711575747, -0.009723681956529617, -0.01441365946084261, 0.032020170241594315, 0.01248114462941885, 0.028094032779335976, 0.00937995407730341, -0.031195221468806267, -0.01504000835120678, -0.015528865158557892, 0.020776445046067238, -0.01680447719991207, 0.019325150176882744, -0.013390113599598408, -0.005136823281645775, 0.04653312638401985, -0.040361300110816956, 0.0269177183508873, 0.002453835681080818, -0.02245689369738102, 0.012137415818870068, -0.017430827021598816, 0.017476657405495644, -0.050535649061203, -0.031714633107185364, -0.010342392139136791, 0.003462104359641671, 0.011037486605346203, 0.049771808087825775, -0.011068040505051613, 0.01033475436270237, -0.0072144679725170135, -0.002215135842561722, -0.030477212741971016, 0.0314396508038044, -0.045005448162555695, 0.012542251497507095, 0.0025932365097105503, -0.027803773060441017, 0.013588711619377136, -0.0063093178905546665, 0.010670843534171581, -0.024503983557224274, 0.011457598768174648, 0.01799606904387474, 0.02293047495186329, 0.010052133351564407, 0.023251287639141083, -0.024290109053254128, -0.011480513960123062, 0.020868105813860893, 0.0030973709654062986, -0.02966754138469696, 0.0035881379153579473, -0.004663242492824793, 0.005885386373847723, -0.012847787700593472, 0.015528865158557892, -0.014619896188378334, -0.012855425477027893, -0.011098594404757023, -0.01917238160967827, -0.00022461666958406568, 0.013810225762426853, 0.02150973118841648, -0.004518113099038601, -0.0175683181732893, -0.001233601476997137, 0.020302865654230118, 0.01167911197990179, -0.026046941056847572, 0.023083241656422615, 0.005018428433686495, -0.017721086740493774, 8.002416871022433e-05, 0.013451220467686653, -0.0157198254019022, 0.023633206263184547, -0.008791797794401646, 0.03318120539188385, 0.007183914538472891, 0.007905743084847927, 0.011480513960123062, 0.01027364656329155, 0.007875189185142517, 0.019034890457987785, -0.0020757350139319897, -0.02389291301369667, 0.006133634597063065, 0.007646037731319666, 0.01822522096335888, -0.010823611170053482, -0.013917163014411926, -0.0008726870873942971, -0.02699410170316696, 0.0004129509616177529, -0.0001438167382730171, -0.014398382045328617, -0.014551150612533092, 0.056738030165433884, 0.01758359558880329, 0.0004458915500435978, -0.03993355110287666, 0.015376097522675991, 0.0004022094653919339, 0.004361526109278202, -0.00440735649317503, -0.021876374259591103, 0.017125291749835014, -0.01865296997129917, 0.01822522096335888, -0.029087023809552193, 0.04158344492316246, 0.006263487506657839, 0.017430827021598816, 0.005098631605505943, 0.019523749127984047, -0.004178204108029604, -0.012083947658538818, 0.006836367305368185, -0.03211183100938797, -0.015979530289769173, -0.011717304587364197, -0.00831057783216238, 0.005702064838260412, 0.0538354367017746, -0.0031699356622993946, -0.013978270813822746, -0.0065881190821528435, 0.0501384511590004, 0.03192850947380066, 0.010831249877810478, -0.009250101633369923, 0.03102717734873295, -0.011625643819570541, -0.024977564811706543, -0.005297229625284672, -0.005797544959932566, 0.03253958001732826, 0.04760250449180603, 0.04133901745080948, -0.0045906780287623405, -0.027452407404780388, -0.0770561695098877, -0.004327153321355581, -0.014520596712827682, -0.0069280280731618404, 0.03975022956728935, 0.013565796427428722, -0.036908745765686035, 0.025985833257436752, -0.01290125586092472, 0.02251800149679184, 0.010357669554650784, 0.02525254711508751, 0.008027957752346992, -0.02520671673119068, 0.016392003744840622, 0.01441365946084261, -0.004025436472147703, 0.03742815554141998, -0.0380086749792099, -0.0029235973488539457, 0.0005819505313411355, 0.01319151557981968, -0.0035174828954041004, 0.011892987415194511, -0.0447915717959404, -0.011969371698796749, -0.015826763585209846, -0.008761243894696236, -0.03956690803170204, -0.03776424378156662, -0.03755037114024162, 0.024137340486049652, 0.03134799003601074, 0.003998701926320791, 0.024870628491044044, 0.020165374502539635, 0.011579813435673714, 0.007294671144336462, 0.007791167125105858, -0.010854165069758892, -0.008692498318850994, 0.007936296984553337, 0.017782192677259445, 0.024580368772149086, -0.019386256113648415, 0.0006034335237927735, 0.004403537139296532, -0.016300342977046967, -0.013863694854080677, -0.02459564432501793, 0.005877748131752014, -0.010097963735461235, -0.0012593810679391026, 0.038925282657146454, -0.03217293694615364, -0.0026829876005649567, -0.0018217582255601883, 0.004785457160323858, 0.022961027920246124, 0.004819829948246479, 0.022838814184069633, 0.00905150268226862, -0.01697252318263054, -0.0032062181271612644, 0.025008119642734528, -0.008134895004332066, 0.022365232929587364, 0.01649894192814827, -0.02286936715245247, 0.0013290814822539687, -0.011060401797294617, 0.019554302096366882, 0.005702064838260412, 0.009601467289030552, 0.006973858457058668, -0.002352626994252205, -0.03330342099070549, 0.003200489329174161, -0.012076308950781822, -0.026077494025230408, -0.01266446616500616, -0.03269234672188759, 0.02264021523296833, -0.008623752743005753, -0.011343022808432579, 0.008577922359108925, 0.00019275023078080267, 0.014925431460142136, -0.006691237445920706, 0.014703918248414993, 0.019264042377471924, -0.029514774680137634, -0.008348770439624786, -0.001730097457766533, -0.0012412398355081677, 0.023266563192009926, -0.01930987276136875, 0.03038555197417736, 0.010831249877810478, -0.0028815860860049725, -0.0047510843724012375, -0.004877117928117514, 0.017308613285422325, -0.025344207882881165, -0.013688011094927788, 0.004907671362161636, -0.011396491900086403, 0.020333418622612953, 0.00818836409598589, -0.03831420838832855, -0.030782748013734818, -0.036603208631277084, -0.027895433828234673], "id": 50}, {"title": "Jefferson Township, Berks County, Pennsylvania", "text": "Jefferson Township is a township in Berks County, Pennsylvania, United States. The population was 1,977 at the 2010 census.", "vector": [0.03500353544950485, 0.02087990939617157, -0.02843172661960125, 0.02222885936498642, 0.01690223440527916, -0.00976547971367836, -0.04893116280436516, -0.03915415331721306, -0.05137541517615318, 0.04763985797762871, 0.012613263912498951, -0.03387364745140076, -0.017974477261304855, 0.014942221343517303, 0.021041322499513626, -0.07194402813911438, -0.017882240936160088, 0.0006200704956427217, 0.00891229696571827, -0.02043025940656662, 0.020084373652935028, 0.002811754820868373, 0.03161386400461197, 0.024211931973695755, 0.01813589036464691, 0.009736655279994011, 0.024742288514971733, 0.0013078766642138362, 0.02271309867501259, -0.027670780196785927, 0.03230563551187515, -0.0047069150023162365, 0.029446320608258247, -0.05695568770170212, -0.010624426417052746, 0.01600293442606926, 0.055387675762176514, -0.012590204365551472, 0.036156486719846725, -0.022136623039841652, -0.013235855847597122, 0.005450567230582237, -0.04581819847226143, 0.040583811700344086, 0.022528626024723053, -0.005070094019174576, 0.01685611717402935, -0.029999736696481705, 0.026909833773970604, -0.0074134632013738155, -0.010566779412329197, 0.014411864802241325, -0.01819353736937046, -0.018850719556212425, -0.02836254984140396, 0.018504833802580833, 0.03608730807900429, 0.11520268023014069, -0.05635615438222885, 0.01734035462141037, -0.0008394910837523639, 0.0033349054865539074, -0.014527159743010998, -0.008422293700277805, 0.0020003668032586575, -0.05280506983399391, -0.005410213954746723, -0.006485338788479567, 0.0067332228645682335, -0.008572177030146122, -0.01773235760629177, 0.06410397589206696, 0.0036029662005603313, 0.02571076527237892, 0.036640722304582596, -0.0018245420651510358, 0.02621806412935257, -0.022517096251249313, 0.02531876415014267, 0.036133427172899246, 0.002960196929052472, -0.0038277911953628063, 0.002922726096585393, -0.00023689502268098295, -0.001317244372330606, -0.00633545545861125, -0.04750150442123413, -0.06608704477548599, -0.04985352233052254, 0.02757854387164116, -0.013281974010169506, 0.028685374185442924, -0.018942954018712044, -0.028062783181667328, 0.04650996997952461, -0.013454916886985302, 0.02490370161831379, -0.02355475164949894, 0.022932158783078194, 0.030899036675691605, 0.009523360058665276, -0.018793070688843727, 0.001856248127296567, 0.025088174268603325, 0.01111442968249321, 0.019000602886080742, 0.015691637992858887, 0.008064879104495049, 0.03454235568642616, -0.018389539793133736, 0.03876215219497681, 0.048193275928497314, -0.03684825450181961, -0.01724812015891075, -0.002141603035852313, -0.023278042674064636, 0.05054529011249542, 0.004369677510112524, -0.008825825527310371, 0.02084532007575035, -0.018908366560935974, 0.004035321995615959, 0.0015363047132268548, -0.010341953486204147, 0.011189371347427368, -0.028616197407245636, 0.043812066316604614, -0.023324161767959595, -0.0013936272589489818, -0.043304771184921265, -0.017017530277371407, -0.021859915927052498, -0.010318894870579243, 0.007718994747847319, -0.02843172661960125, 0.013477975502610207, 0.03643319383263588, 0.028547020629048347, 0.012002200819551945, 0.002529282122850418, -0.0248345248401165, 0.030507033690810204, 0.010180541314184666, -0.045057252049446106, -0.00578780472278595, -0.02262086234986782, -0.018320361152291298, -0.0068196943029761314, 0.015887638553977013, -0.023635458201169968, 0.02266697958111763, 0.009044886566698551, 0.038024261593818665, 0.00884888507425785, 0.025526294484734535, 0.0009367711609229445, -0.011483373120427132, 0.043373946100473404, 0.007119460962712765, -0.01740953139960766, -0.022390272468328476, 0.012059847824275494, 0.045172546058893204, 0.03154468908905983, -0.013016795739531517, 0.03412729501724243, 0.031729161739349365, -0.03541859984397888, -0.006248984485864639, -0.022102035582065582, -0.033066581934690475, -0.052574481815099716, -0.049161750823259354, 0.008289704099297523, -0.016314230859279633, -0.018931424245238304, 0.007713229861110449, -0.014065979979932308, -0.04971516877412796, 0.03161386400461197, 0.02217121236026287, 0.03274375572800636, 0.03495742008090019, -0.053589075803756714, 0.02748630754649639, -0.02716348133981228, -0.03504965454339981, -0.009379241615533829, 0.07235909253358841, -0.027255717664957047, -0.03950003907084465, 0.057555221021175385, 0.054419200867414474, 0.03456541523337364, 0.05317401513457298, 0.019842255860567093, -0.010388071648776531, -0.021594736725091934, -0.0027368131559342146, 0.030022796243429184, 0.04717867821455002, 0.009079474955797195, -0.006381573621183634, 0.025918297469615936, 0.05340460315346718, 0.01736341416835785, 0.018354950472712517, -0.0017236589919775724, 0.0015435107052326202, 0.062397606670856476, 0.0013114797184243798, -0.030760683119297028, -0.030045855790376663, -0.03474988788366318, -0.04088357836008072, 0.061936426907777786, -0.020268846303224564, 0.009131357073783875, 0.02361239865422249, 0.11713963747024536, 0.03860073909163475, -0.005580273922532797, 0.018481774255633354, 0.010901134461164474, 0.013823860324919224, 0.04254382476210594, -0.008024525828659534, 0.02753242664039135, 0.006375808734446764, 0.02124885283410549, 0.035718366503715515, 0.011033723130822182, -0.01106254756450653, 0.01737494394183159, -0.023416398093104362, 0.005874276161193848, -0.04302806407213211, 0.03380446881055832, 0.05377354845404625, -0.014942221343517303, -0.031775277107954025, -0.0008834472973830998, 0.0015103634214028716, -0.0065314569510519505, 0.06654822826385498, 0.0008812855230644345, -0.05377354845404625, -0.015507166273891926, -0.018758483231067657, 0.0604606531560421, -0.043258652091026306, 0.00455703167244792, 0.014411864802241325, 0.00754028744995594, 0.011183606460690498, -0.06119854003190994, -0.046809736639261246, 0.0016559232026338577, 0.04254382476210594, -0.02981526590883732, 1.5864310626056977e-05, 0.02614888735115528, 0.004634855780750513, -0.03368917480111122, 0.018873777240514755, -0.016233524307608604, 0.014838455244898796, 0.03682519495487213, -0.02801666408777237, -0.007557581644505262, 0.014204333536326885, -0.022470979019999504, 0.020972145721316338, 0.023289572447538376, 0.05252836272120476, 0.0540502555668354, -0.009534889832139015, -0.001010992331430316, -0.05026858299970627, -0.03186751529574394, 0.014515629969537258, -0.01086654607206583, -0.010353483259677887, -0.0383240282535553, 0.01736341416835785, 0.012267379090189934, -0.010947252623736858, -0.010768544860184193, 0.021145086735486984, -0.02349710464477539, -0.02797054685652256, -0.02308204211294651, 0.05160600319504738, -0.008099467493593693, 0.015322694554924965, -0.013858448714017868, 0.004343735985457897, -0.03694049268960953, -0.049115635454654694, 0.0036317899357527494, -0.007782406639307737, -0.02972302958369255, -0.011339254677295685, -0.04782433062791824, -0.01086654607206583, 0.017939887940883636, 0.007955349050462246, 0.01740953139960766, -0.00975394994020462, -0.06161360442638397, -0.01151796244084835, -0.006808164529502392, 0.006808164529502392, -0.007742053363472223, -0.006214396096765995, -0.022032858803868294, 0.012774677015841007, 0.03161386400461197, 0.024211931973695755, -0.061567485332489014, 0.019876843318343163, 0.051283176988363266, 0.014792338013648987, 0.00049973139539361, -0.002829049015417695, -0.031775277107954025, 0.011045252904295921, 0.03165998309850693, 0.06645599007606506, -0.0016905117081478238, 0.009448418393731117, 0.004384089261293411, -0.016245054081082344, -0.016798468306660652, 0.038485441356897354, 0.020510965958237648, -0.009148651733994484, -0.01464245468378067, 0.014999868348240852, 0.0024903700686991215, -0.009333123452961445, 0.006375808734446764, 0.029653852805495262, 0.039684511721134186, 0.011558315716683865, -0.01867777667939663, -0.030068913474678993, 0.038923561573028564, -0.01380080170929432, 0.009223593398928642, 0.0002325714594917372, 0.059768885374069214, -0.025849120691418648, 0.04127557948231697, 0.035257186740636826, 0.04116028547286987, -0.058431461453437805, -0.038831327110528946, 0.004237087909132242, -0.02311663143336773, 0.029676910489797592, 0.06862353533506393, 0.004358147736638784, 0.0532662495970726, -0.011788904666900635, -0.01086654607206583, -0.004199617076665163, 0.020534023642539978, 0.008877708576619625, -0.00432932423427701, -0.017155883833765984, 0.03585672006011009, -0.009777008555829525, 0.010365013033151627, -0.021975211799144745, -0.02269003912806511, -0.004631973337382078, 0.01508057489991188, -0.04049157351255417, -0.01731729693710804, 0.0398920401930809, -0.04521866515278816, 0.05460367351770401, -0.02083379030227661, -0.030483976006507874, -0.04722479730844498, -0.008283939212560654, 0.023681575432419777, -0.06913083046674728, 0.003683672519400716, -0.04706338420510292, 0.006502633448690176, -0.004280323628336191, -0.05026858299970627, 0.0005227903602644801, 0.021052852272987366, -0.012705499306321144, 0.028201136738061905, -0.021064380183815956, 0.046348556876182556, -0.03064538910984993, 0.011195136234164238, -0.038900505751371384, -0.006958048325031996, 0.0005382831441238523, 0.0040872045792639256, 0.0030639623291790485, -0.041114166378974915, -3.906966230715625e-05, 0.07009930908679962, -0.03511882945895195, -0.028293373063206673, -0.004265911877155304, 0.016567878425121307, -0.03567224740982056, -0.01240573264658451, -0.05418860912322998, 0.05737074837088585, -0.01645258441567421, -0.0018692187732085586, -0.013673976995050907, 0.014861514791846275, -0.02926184982061386, -0.026886774227023125, -0.02757854387164116, -0.00018933587125502527, -0.03242092952132225, 0.015841521322727203, -0.03239786997437477, -0.0082032335922122, -0.030852919444441795, -0.0051565649919211864, -0.0743882805109024, 0.04436548426747322, 0.017905300483107567, -0.02626418136060238, -0.009390770457684994, -0.013466445729136467, 0.0240505188703537, 0.008278175257146358, 0.034058116376399994, 0.0033118464052677155, -0.03954615443944931, -0.022551685571670532, 0.05649450793862343, 0.03332022950053215, -0.04231323301792145, -0.02360086888074875, 0.006410397123545408, 0.030899036675691605, -0.01782459393143654, -0.03165998309850693, -0.02094908617436886, -0.013051384128630161, 0.0009893744718283415, 0.002706548199057579, 0.0050153289921581745, -0.0031100802589207888, -0.014792338013648987, -0.0470864437520504, -0.003484788816422224, -0.01065901480615139, -0.006312396842986345, -0.015403401106595993, -0.0628126710653305, 0.014031391590833664, 0.05916935205459595, 0.05188271030783653, -0.02803972363471985, -0.008969943970441818, -0.017628593370318413, 0.05192882940173149, -0.008110997267067432, 0.04261299967765808, -0.028270313516259193, -0.024327227845788002, 0.015806932002305984, 0.023635458201169968, -0.013812330551445484, -0.042405471205711365, -0.028547020629048347, -0.003502083010971546, -0.04275135323405266, -0.0057301572524011135, -0.03587977588176727, -0.01287844218313694, 0.023681575432419777, -0.007107931654900312, -0.009696302004158497, -0.007857348769903183, -0.026033591479063034, 0.04484972357749939, -0.053958021104335785, 0.021686973050236702, 0.04028404504060745, 0.04925398901104927, -0.031775277107954025, -0.000438480987213552, -0.014653983525931835, -0.02398134209215641, 0.026287240907549858, -0.009079474955797195, 0.04717867821455002, -0.015022927895188332, 0.05160600319504738, 0.006975342519581318, -0.026540890336036682, 0.02621806412935257, -0.039799805730581284, -0.003721143351867795, 0.01158137433230877, -0.016314230859279633, -0.01019207015633583, -0.011027958244085312, -0.04805492237210274, 0.01728270761668682, 0.029953619465231895, -0.049484577029943466, 0.010324659757316113, -0.0005815187469124794, -0.012325026094913483, 0.016314230859279633, 0.001591069856658578, -0.03599507361650467, 0.013501035049557686, 0.039384741336107254, 0.008497235365211964, 0.011039488017559052, -0.03770143911242485, -0.023254984989762306, -0.007015695795416832, 0.017986007034778595, -0.019657783210277557, 0.024165814742445946, 0.04851610213518143, -0.027716897428035736, -0.0071482849307358265, 0.01064748503267765, 0.008935355581343174, -0.025157351046800613, -0.05252836272120476, -0.015161281451582909, -0.010088304989039898, 0.013454916886985302, -0.018020594492554665, -0.021156616508960724, 0.017490237951278687, -0.01333962194621563, -0.002327516209334135, -0.005142153240740299, 0.04593349248170853, -0.017928360030055046, -0.016706233844161034, -0.004162146244198084, 0.0178130641579628, 0.0038594973739236593, -0.012002200819551945, 0.03066844679415226, -0.017501767724752426, -0.029515499249100685, 0.02884678728878498, 0.026886774227023125, -0.00936194695532322, -0.04879280924797058, -0.041044991463422775, 0.02750936709344387, 0.009044886566698551, 0.03320493549108505, 0.03553389385342598, 0.0006845635361969471, 0.018389539793133736, -0.050453055649995804, -0.005222859792411327, -0.0279244277626276, -0.005588921252638102, 0.0020709848031401634, -0.011817729100584984, -0.008503000251948833, -0.013916096650063992, -0.04980740323662758, 0.002193485852330923, -0.003983439411967993, -0.007044519297778606, -0.004499384202063084, 0.005897334776818752, 0.006197101902216673, -0.03163692355155945, 0.013501035049557686, -0.014573276974260807, -0.01603752188384533, -0.0027670778799802065, -0.006514162756502628, 0.011500667780637741, -0.006254749372601509, 0.03772449493408203, -0.023635458201169968, -0.0346115343272686, -0.0008243586635217071, 0.055387675762176514, 0.011368079110980034, 0.02228650636970997, 0.02937714383006096, -0.007130990736186504, -0.029538556933403015, 0.03244398906826973, 0.0036548487842082977, 0.033158816397190094, -0.015818461775779724, 0.02714042365550995, 0.047363150864839554, -0.025549354031682014, -0.05049917474389076, 0.05072976276278496, -0.0029184024315327406, -0.011506432667374611, -0.03694049268960953, -0.024073578417301178, 0.038393206894397736, -0.0016688938485458493, 0.023347219452261925, 0.0025307233445346355, -0.019784606993198395, -0.017190471291542053, -0.01734035462141037, 0.03415035456418991, -0.019219662994146347, 0.03408117592334747, -0.02748630754649639, -0.003251316724345088, -0.009863479994237423, -0.018308833241462708, -0.002056573051959276, 0.006139454431831837, 0.0016170111484825611, 0.019231192767620087, 0.01553022488951683, 0.022782275453209877, -0.0030380210373550653, 0.04014568775892258, 0.018827660009264946, 0.04441159963607788, -0.007228991016745567, -0.017882240936160088, -0.00016672725905664265, -0.021663915365934372, -0.02933102659881115, -0.037078846246004105, 0.004758797585964203, -0.013143620453774929, -0.009419594891369343, 0.049530696123838425, -0.030760683119297028, 0.013823860324919224, 0.001364082912914455, -0.07208237797021866, -0.024650052189826965, -0.015668578445911407, 0.0018000418785959482, 0.015126693062484264, -0.04452689737081528, 0.02316274866461754, -0.002081073122099042, 0.013431857340037823, -0.026471711695194244, 0.013281974010169506, -0.008503000251948833, -0.008802766911685467, 0.012394203804433346, 0.025987474247813225, -0.01817047782242298, 0.013766213320195675, 0.05386578291654587, 0.005459214095026255, 0.021421795710921288, 0.022839922457933426, 0.00709063746035099, -0.005496684927493334, -0.03020726703107357, -0.02670230157673359, 0.028500903397798538, -0.01288997195661068, -0.0055687446147203445, -0.004265911877155304, -0.013016795739531517, -0.008341587148606777, -0.02085684984922409, 0.010964546352624893, -0.014919161796569824, 0.020061315968632698, -0.006473809480667114, -0.01019207015633583, 0.019000602886080742, 0.0362948402762413, -0.013881508260965347, -0.017893770709633827, -0.023301102221012115, -0.013743153773248196, 0.007027225103229284, -0.018308833241462708, -0.05580274015665054, -0.06493409723043442, 0.03168304264545441, 0.02173309214413166, 0.008404999040067196, 0.044596072286367416, 0.012463380582630634, 0.0032974346540868282, -0.025664648041129112, 0.015126693062484264, -0.0039286743849515915, 0.011425726115703583, -0.012659382075071335, -0.0036144955083727837, 0.01950789988040924, -0.002794460626319051, 0.007228991016745567, 0.004718444310128689, -0.006214396096765995, -0.02349710464477539, -0.011713963001966476, 0.03295128792524338, 0.053542960435152054, 0.01818200759589672, -0.03431176766753197, -0.022309565916657448, 0.010284306481480598, -0.031198803335428238, -0.009967245161533356, 0.005914628971368074, 0.027878310531377792, 0.016994470730423927, 0.03341246768832207, -0.017098236829042435, 0.0010700809070840478, 0.026471711695194244, 0.03770143911242485, -0.03998427838087082, -0.05298954248428345, -0.028155017644166946, 0.015714697539806366, 0.008531823754310608, -0.05640227347612381, -0.03189057484269142, 0.007966878823935986, 0.002934255637228489, 0.019300369545817375, -0.038854386657476425, 0.004185205325484276, -0.0010441396152600646, -0.017075177282094955, -0.038001205772161484, -0.027832193300127983, -0.044204071164131165, -0.04833162948489189, -0.03468070924282074, 0.028985140845179558, 0.006767811719328165, 0.017432590946555138, 0.04252076521515846, 0.014400335028767586, -0.002719518728554249, -0.004430206958204508, 0.01597987487912178, 0.03585672006011009, -0.01823965646326542, -0.029054319486021996, -0.0041736760176718235, 0.029446320608258247, 0.011235489509999752, -0.0011875376803800464, -0.011466079391539097, -0.04086051881313324, 0.0217446219176054, -0.0034127295948565006, 0.0365254282951355, 0.028062783181667328, 0.03541859984397888, -0.020741555839776993, -0.04229017347097397, -0.0041102636605501175, 0.018424127250909805, 0.00744805159047246, -0.02838560752570629, -0.03435788303613663, -0.001203390653245151, -0.004271676763892174, -0.019346486777067184, -0.02714042365550995, 0.003277258016169071, -0.0006769973551854491, -0.010088304989039898, -0.014849985018372536, 0.031221862882375717, 0.0013568770373240113, 0.010491837747395039, 0.023773811757564545, 0.007494169287383556, 0.03297434747219086, 0.030829859897494316, 0.018896836787462234, -0.012186672538518906, 0.02886984683573246, -0.006779341027140617, 0.0008956973906606436, 0.006272043567150831, -0.05718627944588661, -0.021859915927052498, 0.02536488138139248, 0.01085501629859209, 0.033573880791664124, -0.03375834971666336, -0.004228441044688225, 0.008497235365211964, 0.0009230799041688442, -0.041460052132606506, 0.014342687092721462, 0.00743652181699872, -0.0008827266865409911, -0.0006193498848006129, -0.029584676027297974, 0.0007450933917425573, 0.010099834762513638, -0.018793070688843727, -0.06262819468975067, -0.05464978888630867, 0.030760683119297028, -0.011909964494407177, -0.00957524310797453, -0.023681575432419777, 0.003810497000813484, 0.024258051067590714, 0.03020726703107357, -0.04694809019565582, -0.0373094342648983, 0.009875009767711163, -0.003202316351234913, 0.02762466110289097, -0.002052249386906624, -0.022943688556551933, 0.013720095157623291, -0.0009569477988407016, 0.019750019535422325, 0.011091371066868305, 0.0027022245340049267, -0.007378874812275171, 0.05298954248428345, 0.014042920432984829, 0.0006553795537911355, 0.03205198794603348, -0.03477294743061066, 0.024719228968024254, 0.005309330765157938, -0.021594736725091934, -0.01995754987001419, 0.0024687524419277906, -0.02441946230828762, -0.017582474276423454, 0.01814742013812065, -0.03631789982318878, -0.001996043138206005, 0.009039121679961681, 0.011252784170210361, 0.021652385592460632, 0.016982940956950188, -0.012117495760321617, 0.013893037103116512, 0.034334827214479446, -0.009846185334026814, 0.011886905878782272, -0.026494771242141724, 0.020591672509908676, 0.038001205772161484, 0.020061315968632698, -0.06548751145601273, -0.013950685039162636, -0.0005127020995132625, -0.029169613495469093, -0.02036108262836933, 0.008975708857178688, 0.0082032335922122, -0.034842122346162796, 0.010935722850263119, 0.039776746183633804, 0.013673976995050907, 0.007880407385528088, 0.018354950472712517, -0.03594895452260971, 0.004949034191668034, 0.04261299967765808, -0.004185205325484276, 0.022447919473052025, 0.0014274951536208391, -0.01242879219353199, 0.006652516778558493, 0.0069811069406569, 0.012636322528123856, 0.051698241382837296, 0.01397374365478754, 0.006006865296512842, 0.02137567661702633, 0.015564813278615475, 0.029123496264219284, -0.027647720649838448, -0.04044545814394951, 0.062397606670856476, 0.041529227048158646, -0.011731257662177086, -0.01001912821084261, 0.008099467493593693, 0.02797054685652256, 0.03332022950053215, 0.01596834510564804, -0.027186540886759758, -0.0068600475788116455, -0.006623692810535431, 0.002186279743909836, -0.040560752153396606, -0.019715430215001106, -0.008964180015027523, 0.06119854003190994, -0.03509577363729477, -0.008410763926804066, 0.03770143911242485, -0.004410030320286751, -0.0020825143437832594, 0.003159080632030964, 0.020626259967684746, -0.010947252623736858, -0.00039524538442492485, 0.034519296139478683, -0.02707124687731266, -0.006842753384262323, 0.012647852301597595, -0.018343420699238777, -0.016694704070687294, -0.015726227313280106, 0.021168146282434464, -0.01468857191503048, 0.0028881377074867487, -0.01176008116453886, 0.019761549308896065, -0.01220973115414381, -0.028178077191114426, 0.005859863944351673, -0.04118334501981735, 0.01774388737976551, 0.005450567230582237, 0.005294919013977051, 0.016141287982463837, 0.01996907964348793, -0.00911982823163271, -0.003749967087060213, -0.013616329059004784, 0.0049115633592009544, -0.014400335028767586, -0.01909283734858036, -0.0022035741712898016, 0.011829257942736149, 0.028754552826285362, 0.0235432218760252, -0.023750752210617065, -0.002511987928301096, -0.03018420934677124, -0.003150433534756303, -0.0041506169363856316, 0.011212430894374847, -0.003974792081862688, -0.024742288514971733, -0.04411183297634125, 0.01553022488951683, -0.08227445185184479, 0.022874511778354645, 0.026794537901878357, -0.006364279426634312, -0.018770013004541397, 0.01694835163652897, 0.030922096222639084, -0.012947618961334229, 0.024211931973695755, 0.01683305762708187, 0.017928360030055046, 0.01240573264658451, -0.03435788303613663, 0.026563948020339012, 0.03138327598571777, -0.014296569861471653, -0.02571076527237892, 0.001890836632810533, 0.028662316501140594, 0.006375808734446764, -0.019657783210277557, -0.018989073112607002, 0.006560280453413725, -0.017132824286818504, 0.05059140920639038, -0.020245786756277084, -0.03590283542871475, 0.01600293442606926, -0.02309357188642025, 0.03866991400718689, -0.016982940956950188, 0.00754028744995594, -0.003288787556812167, 0.017075177282094955, -0.022136623039841652, -0.02661006711423397, 0.00455703167244792, -0.017109764739871025, -0.017536357045173645, 0.03375834971666336, 0.010065246373414993, 0.005211330018937588, 0.021514032036066055, -0.02353169210255146, -0.010572543367743492, -0.01592222787439823, -0.016072111204266548, -0.00566386291757226, 0.03765532001852989, 0.007932290434837341, -0.017570944502949715, 0.029146553948521614, 0.06290490925312042, 0.04053769260644913, -0.03498047590255737, -0.0061798072420060635, -0.02794748730957508, 0.01047454308718443, 0.0028751669451594353, -0.015057516284286976, -0.02803972363471985, 0.026471711695194244, 0.018308833241462708, 0.01353562343865633, -0.037493906915187836, -0.030829859897494316, 0.007966878823935986, 0.01731729693710804, 0.04037627950310707, 0.016325760632753372, 0.01156407967209816, -0.02134108915925026, -0.033158816397190094, 0.0035482009407132864, -0.012555615976452827, -0.014042920432984829, -0.01814742013812065, -0.02358933910727501, -0.01131619606167078, -0.029676910489797592, -0.017859183251857758, 0.02707124687731266, -0.043835125863552094, 0.026356417685747147, -0.040676046162843704, -0.0014505541184917092, 0.0011284489883109927, -0.009719361551105976, -0.005675392225384712, 0.011454549618065357, -0.0169137641787529, -0.011143253184854984, -0.02672536112368107, -0.01954248733818531, 0.017859183251857758, -0.05072976276278496, 0.018112830817699432, 0.024626994505524635, 0.010693603195250034, 0.006560280453413725, 0.010353483259677887, -0.018550951033830643, -0.034450121223926544, -0.018919896334409714, 0.012993737123906612, -0.006554516032338142, -0.0027656368911266327, 0.004118910990655422, 0.03419647365808487, -0.01378927193582058, -0.015207399614155293, 0.04143699258565903, -0.005623509641736746, -0.03147551044821739, 0.0006276366766542196, -0.004614679142832756, 0.01443492341786623, -0.006525692064315081, -0.01868930645287037, -0.00025022600311785936, 0.0051767416298389435, 0.0217446219176054, -0.01736341416835785, 0.054373081773519516, -0.05252836272120476, -0.01594528742134571, 0.00709063746035099, -0.002447134582325816, -0.003715378697961569, 0.041921231895685196, 0.00015186502423603088, -0.02271309867501259, 0.004412912763655186, 0.023347219452261925, 0.0008257998269982636, 0.004179440904408693, 0.021179676055908203, -0.04805492237210274, -0.014757749624550343, -0.029515499249100685, 0.0055053322575986385, 0.01443492341786623, -0.02437334507703781, -0.014861514791846275, 0.019726959988474846, 0.0006546589429490268, -0.014665513299405575, 0.04316641762852669, 0.03325105458498001, -0.029953619465231895, 0.00911406334489584, 0.021571679040789604, -0.010641721077263355, 0.0025105467066168785, -0.0024846054147928953, 0.013201267458498478, 0.011177842505276203, -0.010347718372941017, -0.00349055347032845, 0.0033003168646246195, -0.035764481872320175, -0.00689463596791029, -0.0011824935209006071, 0.0478704497218132, 0.018977543339133263, -0.017962947487831116, 0.0023909283336251974, -0.05400414019823074, 0.017006000503897667, -0.04118334501981735, 0.010699368081986904, 0.0032743755728006363, -0.026771480217576027, 0.032674580812454224, 0.03908497467637062, -0.02094908617436886, 0.029607733711600304, -0.013950685039162636, -0.012982207350432873, -0.02524958737194538, 0.019842255860567093, -0.010053716599941254, -0.016129758208990097, -0.016291171312332153, 0.01913895644247532, -0.01736341416835785, 0.01651023142039776, -0.010301601141691208, -0.047270916402339935, -0.011644786223769188, 0.0028477844316512346, -0.011051017791032791, 0.014377276413142681, 0.03348164260387421, -0.01313209068030119, 0.0230359248816967, -0.0045800902880728245, -0.0024658699985593557, 0.020084373652935028, 0.013097502291202545, -0.003435788443312049, 0.03774755448102951, 0.022966746240854263, -0.014607865363359451, -0.0014671278186142445, -0.0030581976752728224, 0.0008092261850833893, 0.05003799498081207, 0.0033262583892792463, 0.027371013537049294, -0.038900505751371384, 0.01351256389170885, -0.010353483259677887, 0.003954615443944931, -0.0029011082369834185, -0.0034098471514880657, -0.0017438356298953295, -0.013443387113511562, -0.03016114979982376, 0.004657914396375418, -0.04053769260644913, -0.007822760380804539, 0.013823860324919224, -0.015645520761609077, -0.01867777667939663, -0.004920210689306259, 0.0014274951536208391, 0.03242092952132225, 0.0023433691821992397, 0.02089143916964531, 0.001462804269976914, 0.012970677576959133, 0.01307444367557764, -0.0068600475788116455, 0.02836254984140396, 0.02212509512901306, 0.0051969182677567005, -0.015564813278615475, 0.012036789208650589, 0.004167911130934954, -0.001614128821529448, 0.010889604687690735, 0.029607733711600304, -0.012117495760321617, -0.01553022488951683, -0.029953619465231895, 0.03059927001595497, -0.051283176988363266, 0.008024525828659534, 0.03694049268960953, 0.0009288446744903922, -0.011829257942736149, -0.05543379485607147, 0.03846238553524017, 0.0036750254221260548, -0.017605533823370934, -0.01954248733818531, -0.013281974010169506, 0.021525559946894646, 0.004026675131171942, -0.004401383455842733, 0.004755915142595768, -0.0445038378238678, 0.010255482979118824, -0.008047585375607014, -0.02446558140218258, 0.006675575394183397, 0.02181379869580269, 0.013697035610675812, 0.02451169863343239, 0.031221862882375717, 0.024603934958577156, 0.018574010580778122, 0.01242879219353199, 0.014019861817359924, 0.03594895452260971, 0.019830726087093353, 0.0013727301266044378, -0.003692319616675377, 0.015195869840681553, 0.03500353544950485, -0.0035885542165488005, -0.004214029293507338, -0.005747451446950436, 0.01826271414756775, 0.011852317489683628, 0.013443387113511562, 0.01091266330331564, 0.008520293980836868, -0.027232658118009567, -0.008860413916409016, -0.019657783210277557, 0.003680790076032281, -0.02762466110289097, -0.028339490294456482, 0.01694835163652897, 0.011662080883979797, 0.03521106764674187, 0.015853051096200943, -0.0012423027073964477, -0.008670177310705185, 0.005537038203328848, 0.0059953355230391026, 0.029238790273666382, -0.019242720678448677, 0.029561616480350494, 0.005908864550292492, -0.008831590414047241, -0.014492570422589779, -0.016314230859279633, 0.011235489509999752, -0.021214263513684273, -0.024142755195498466, 0.014411864802241325, 0.05497261509299278, -0.004764562472701073, 0.0020608967170119286, 0.01444645319133997, -0.005764745641499758, 0.026932891458272934, 0.006318161264061928, -0.01686764694750309, -0.02626418136060238, -0.0017712181434035301, 0.008866178803145885, -0.023301102221012115, 0.02836254984140396, 0.01815894991159439, 0.0005408052238635719, 0.017974477261304855, 0.008935355581343174, 0.0016977175837382674, 0.002027749316766858, 0.012763147242367268, 0.01110866479575634, 0.024142755195498466, -0.0478704497218132, 0.025872178375720978, -0.020545553416013718, 0.03509577363729477, 0.03299740329384804, -0.02711736410856247, -0.0029212848749011755, -0.005747451446950436, 0.011235489509999752, 0.024211931973695755, 0.008330057375133038, -0.003920027054846287, -0.03251316770911217, -0.010526426136493683, -0.00028103135991841555, -0.016613997519016266, 0.03283599019050598, 0.0026474595069885254, 0.027278777211904526, 0.009973010048270226, -8.1911184679484e-06, 0.030945155769586563, -0.004055498633533716, -0.012832324020564556, 0.012371144257485867, -0.010145952925086021, -0.007488404866307974, -0.05520320683717728, -0.0075345225632190704, -0.008946885354816914, -0.02891596406698227, 0.012820794247090816, 0.00421979371458292, -0.022874511778354645, 0.02451169863343239, 0.04307417944073677, 2.72192824013473e-06, -0.0030264914967119694, -0.00422555860131979, 0.0022741921711713076, 0.005317978095263243, 0.0017351885326206684, 0.0030726094264537096, -0.0029443439561873674, -0.02259780280292034, 0.013109032064676285, -0.013939155265688896, 0.010140188038349152, -0.02446558140218258, -0.019865313544869423, 0.002030631760135293, -0.010509131476283073, 0.012717029079794884, 0.010238188318908215, -0.01047454308718443, 0.02976914681494236, 0.0008121085702441633, -0.049161750823259354, -0.01202525943517685, 0.008070643991231918, 0.049161750823259354, -0.021064380183815956, 0.03544165566563606, 0.02976914681494236, 0.005211330018937588, 0.0018548069056123495, -0.0013410239480435848, 0.010555249638855457, -0.016233524307608604, -0.03332022950053215, 0.017478710040450096, 0.004000733606517315, 0.011725492775440216, 0.03447318077087402, -0.007759348023682833, 0.022805335000157356, 0.035326361656188965, 0.0009958598529919982, 0.04833162948489189, -0.02568770758807659, -0.0021992505062371492, 0.041114166378974915, -0.006462280172854662, 0.04222099855542183, -0.0030985509511083364, 0.03500353544950485, -0.00743652181699872, 0.005194035824388266, 0.026932891458272934, 0.010624426417052746, -0.010071011260151863, -0.010030657984316349, -0.0019917197059839964, -0.004366795066744089, 0.05677121505141258, -0.04833162948489189, 0.005222859792411327, 0.00825511571019888, -0.009160180576145649, 0.0015824227593839169, 0.02880067005753517, 0.019196603447198868, 0.009938421659171581, -0.011229724623262882, -0.04272829741239548, 0.016740821301937103, 0.01352409366518259, -0.018124360591173172, 0.017455650493502617, 0.00015519776206929237, 0.019334957003593445, 0.008820060640573502, -0.009062180295586586, 0.00818593893200159, 0.03410423547029495, -0.020291905850172043, 0.007177108433097601, -0.021894505247473717, 0.012613263912498951, -0.009419594891369343, 0.03101433254778385, -0.010803133249282837, 0.006542986258864403, 0.026494771242141724, 0.003461729735136032, 0.018424127250909805, -0.011529491282999516, -0.013097502291202545, 0.01641799509525299, -0.011471844278275967, -0.02312815934419632, 0.013178208842873573, 0.010687838308513165, 0.001733747310936451, 0.020142022520303726, -0.007223226595669985, 0.01912742666900158, -0.00216177967377007, -0.02402746118605137, 0.0018144537461921573, -0.010976076126098633, -0.03783979266881943, -0.011143253184854984, 0.008699001744389534, -0.011275842785835266, -0.018089773133397102, 0.0032801402267068624, -0.0006593427970074117, 0.04007651284337044, -0.009206298738718033, 0.010053716599941254, -0.00754605233669281, 0.058016400784254074, 0.045564550906419754, 0.011074076406657696, -0.008260880596935749, -0.002916961442679167, -0.00172510021366179, 0.0076613472774624825, 0.018770013004541397, -0.034842122346162796, 0.007586405612528324, 0.004571443423628807, 0.015069045126438141, -0.04049157351255417, 0.03631789982318878, 0.028085840865969658, -0.026471711695194244, -0.030437856912612915, 0.01333962194621563, 0.00014907271543052047, 0.016187405213713646, 0.00018312074826098979, -0.014723160304129124, 0.013570211827754974, -0.0007494169403798878, 0.002646018285304308, 0.01782459393143654, -0.03689437359571457, 0.04664832353591919, -0.004830856807529926, -0.03154468908905983, -0.010267011821269989, 0.023370278999209404, -0.03560306876897812, 0.01112595945596695, -0.024995937943458557, -0.005162329878658056, 0.0021228676196187735, -0.03735555335879326, 0.0169137641787529, 0.012809265404939651, 0.020188139751553535, -0.0029356968589127064, 0.007079107686877251, 0.03691743314266205, -0.010382306762039661, 0.0073096975684165955, -0.019300369545817375, 0.009436888620257378, 0.04009957239031792, -0.026356417685747147, -0.007119460962712765, -0.024304168298840523, -0.014481041580438614, 0.02700207009911537, 0.03412729501724243, -0.010347718372941017, -0.017190471291542053, -0.0028074311558157206, 0.012301967479288578, 0.017663180828094482, 0.003784555708989501, 0.017997536808252335, -0.004121793434023857, 0.031314097344875336, -0.02439640462398529, -0.01738647371530533, 0.004208264406770468, 0.006496868561953306, 0.04514949023723602, 0.06539527326822281, -0.006496868561953306, 0.0066352225840091705, -0.015680108219385147, 0.028131959959864616, -0.009396535344421864, 0.014953750185668468, -0.004902916494756937, 0.026886774227023125], "id": 51}, {"title": "Epsom Downs", "text": "Epsom Downs is an area of chalk upland near Epsom, Surrey; in the North Downs. Part of the area is taken up by the racecourse, the gallops are part of the land purchased by Stanly Wootton in 1925 in order that racehorses can be trained without interference. It is open to users such as ramblers, model aircraft flyers, golfers and cyclists. But all users are subject to the controls laid down by the purchase order; see 'The Wootton Family - Australia to Epsom' by Bill Eacott page 66/67.", "vector": [-0.018810689449310303, 0.03345569223165512, -0.017085833474993706, -0.017264828085899353, -0.01608509197831154, 0.04077818989753723, 0.024196796119213104, -0.02167460136115551, 0.019982289522886276, 0.0006885184557177126, -0.021804779767990112, -0.019331401214003563, -0.003205627901479602, -0.020047379657626152, 0.04761252552270889, 0.0410710908472538, -0.056822601705789566, 0.008294765837490559, 0.0036510799545794725, 0.027890590950846672, 0.04207997024059296, -0.0038707549683749676, -0.0302500631660223, -0.02063317969441414, -0.020372822880744934, 0.04728708043694496, -0.017199739813804626, 0.018729329109191895, -0.019754478707909584, -0.007538107223808765, 0.0016831581015139818, -0.017883174121379852, -0.015312162227928638, 0.025303306058049202, -0.030900951474905014, 0.04279594495892525, 0.008225608617067337, -0.03228409215807915, -0.06040249392390251, 0.027174612507224083, 0.02292756177484989, -0.05513029173016548, 0.010861708782613277, 0.03784919157624245, -0.036905400454998016, -0.0404527448117733, -0.002503888215869665, -0.0008603938040323555, -0.014669409021735191, -0.016475625336170197, -0.022862473502755165, 0.005585440434515476, 0.0257914736866951, 0.004417908377945423, -0.05067170411348343, -0.025319579988718033, 0.009616883471608162, 0.0935327410697937, -0.0011146472534164786, 0.023659812286496162, 0.0139778396114707, -0.020193828269839287, 0.009755197912454605, 0.014075472950935364, 0.01558879017829895, -0.0029900209046900272, 0.025221945717930794, 0.004450452979654074, 0.020356550812721252, -0.015255209058523178, -0.0008298833854496479, 0.02806958556175232, 0.009625019505620003, 0.048686493188142776, -0.030933495610952377, 0.00394601421430707, 0.0038809252437204123, 0.0567900575697422, -0.004147382918745279, 0.020828446373343468, -0.023480817675590515, -0.03449711203575134, -0.08897651731967926, 0.007302159909158945, 0.05298236012458801, 0.002654406474903226, 0.007566583808511496, -0.055065203458070755, 0.06069539114832878, -0.017004473134875298, 0.03125894069671631, -0.03252817317843437, -0.008087295107543468, 0.009031083434820175, -0.008803272619843483, 0.020177556201815605, 0.030900951474905014, 0.004816578235477209, 0.01993347331881523, 0.020161284133791924, -0.004015170969069004, 0.0113498754799366, -0.015141303651034832, -0.03941132500767708, -0.0012865226017311215, 0.013684939593076706, -0.01207398995757103, -0.004580630920827389, 0.05519538000226021, -0.02849266305565834, 0.06118356063961983, -0.03420421481132507, 0.03563616797327995, -0.005024048965424299, -0.04552967846393585, 0.005890544969588518, -0.00392160564661026, -0.019689390435814857, 0.025514846667647362, 0.0022801451850682497, 0.0002285738883074373, 0.007582855876535177, -0.001893679960630834, 0.018127257004380226, 0.02045418508350849, -0.0030632459092885256, 0.010821028612554073, -0.023676084354519844, 0.010096914134919643, 0.005585440434515476, 4.980189987691119e-05, 0.002227260498329997, 0.003378520254045725, -0.010113186202943325, 0.005931225139647722, -0.007928640581667423, -0.01941276155412197, 0.01817607320845127, 0.052591826766729355, -0.008062887005507946, -0.011463780887424946, 0.016377992928028107, 0.011382419615983963, 0.014970445074141026, -0.014295147731900215, 0.05194093659520149, -0.0013119479408487678, 0.025221945717930794, 0.021430518478155136, 0.011048839427530766, -0.013481536880135536, -0.012423842214047909, 0.005174566991627216, 0.029859529808163643, 0.00011333348811604083, 0.008640550076961517, -0.11397065222263336, -0.012814375571906567, -0.01889205165207386, 0.049272291362285614, 0.0057074823416769505, -0.03262580558657646, 0.0010882049100473523, 0.011838042177259922, 0.004731148947030306, -0.013180500827729702, 0.007184186484664679, 0.011211561970412731, 0.03475746884942055, -0.0003434964455664158, -0.010642034001648426, -0.012122806161642075, -0.04569240286946297, -0.005019980948418379, 0.022130222991108894, 0.023448273539543152, -0.021300340071320534, 0.05366579070687294, 0.04797051474452019, 0.06697647273540497, -0.02942018024623394, -0.02509176731109619, 0.026377273723483086, -0.016874294728040695, -0.003610399551689625, -0.029176095500588417, -0.030526690185070038, 0.03407403454184532, 0.04982554540038109, -0.06609777361154556, -0.014311419799923897, 0.00435688765719533, 0.0744616910815239, 0.004971164278686047, 0.008892769925296307, 0.012033308856189251, -0.029127279296517372, 0.06326640397310257, 0.050932057201862335, 0.0004706231993623078, 0.0077618504874408245, -0.053503070026636124, 0.006972647737711668, -0.029859529808163643, -0.017476366832852364, -0.005874272435903549, 0.03125894069671631, 0.0271583404392004, 0.01991720125079155, 0.033911313861608505, 0.0007220798870548606, 0.020079923793673515, -0.03810954466462135, 0.03270716965198517, -0.07381080090999603, 0.02250448428094387, 0.01889205165207386, 0.011886859312653542, 0.02776041254401207, -0.015645742416381836, 0.02227667346596718, -0.0491095706820488, -0.00851850863546133, -0.0025282965507358313, 0.007879824377596378, 0.0524616464972496, -0.008298833854496479, 0.04767761379480362, -0.022878745570778847, -0.054121412336826324, 0.00392160564661026, -0.03187728673219681, 0.01796453446149826, 0.00678551709279418, -0.053600702434778214, 0.01244011428207159, -0.03579889237880707, 0.008738183416426182, 0.0016129841096699238, -0.015873553231358528, -0.012554019689559937, 0.03697049245238304, -0.0020970827899873257, -0.06215989217162132, -0.03361841291189194, -0.011301059275865555, -0.01284691970795393, 0.030803319066762924, 0.02837875671684742, -0.011862450279295444, 0.018403884023427963, 0.006187513004988432, 0.03853262588381767, -0.0066878837533295155, 0.02878556214272976, -0.03810954466462135, -0.053405437618494034, 0.008868361823260784, -0.04364210367202759, -0.018940867856144905, -0.035766348242759705, -0.005406446289271116, 0.030917223542928696, -0.015645742416381836, -0.02889946848154068, -0.022130222991108894, -0.010609489865601063, -0.001730957766994834, 0.0003854482783935964, -0.02352963387966156, -0.02457105740904808, 0.012358753010630608, -0.03654741123318672, -0.022113950923085213, 0.02540094032883644, -0.014173106290400028, 0.05347052589058876, -0.007940844632685184, -0.011325467377901077, -0.0530799925327301, 0.02011246792972088, -0.005569168366491795, -0.005504079628735781, -0.034236758947372437, -0.006427528336644173, 0.018745601177215576, 0.018208617344498634, 0.012342480942606926, 0.029680535197257996, -0.017915718257427216, -0.00917753390967846, -0.029468996450304985, 0.01993347331881523, 0.06782262772321701, 0.007253343239426613, 0.003588025225326419, -0.07986406981945038, -0.026247095316648483, -0.03374858945608139, -0.03269089758396149, -0.04139653593301773, 0.0392160564661026, -0.023301823064684868, 0.04683145880699158, 0.013701211661100388, 0.0118787232786417, -0.014889083802700043, -0.009738925844430923, -0.02147933468222618, -0.025205673649907112, 0.0861126035451889, -0.005479671061038971, 0.007489290554076433, -0.010145731270313263, -0.016361720860004425, -0.048133235424757004, -0.010959342122077942, -0.017720451578497887, -0.0183713398873806, 0.01295269001275301, -0.016142046079039574, -0.028639113530516624, -0.059295982122421265, -0.012578428722918034, 0.057213135063648224, -0.008079159073531628, 0.019363945350050926, 0.03077077306807041, -0.021593239158391953, 0.0026849168352782726, -0.035863980650901794, -0.03495273366570473, -0.005715618375688791, 0.005516283679753542, 0.059816692024469376, 0.008176792412996292, 0.02694680169224739, -0.026084372773766518, -0.005711550358682871, 0.029599172994494438, 0.0291923675686121, 0.03086840733885765, 0.009348392486572266, -0.002491684164851904, 0.01652444340288639, -0.0011949914041906595, 0.03850007802248001, -0.017476366832852364, -0.05389360338449478, -0.02673526294529438, 0.0008690383983775973, 0.04497642442584038, -0.02003110572695732, 0.04471606761217117, 0.007013328373432159, -0.019217494875192642, -0.005459330976009369, -0.046896547079086304, -0.029045918956398964, -0.0057644350454211235, 0.009006675332784653, -0.0014797552721574903, -0.008746320381760597, 0.017671633511781693, -0.061866991221904755, 0.033488236367702484, 0.022976379841566086, 0.008404603227972984, 0.005837659817188978, 0.030298879370093346, 0.010186411440372467, -0.010072506032884121, -0.015523700974881649, 0.006041062995791435, -0.023659812286496162, -0.0311775803565979, -0.021495606750249863, 0.02714206837117672, -0.02260211855173111, -0.00014212769747246057, 0.019884657114744186, 0.07146760076284409, 0.0032341042533516884, 0.03654741123318672, 0.0055488282814621925, -0.03177965059876442, 0.02157696709036827, -0.004853190388530493, -0.009991144761443138, 0.009934192523360252, -0.03413912281394005, 0.052884723991155624, 0.02557993493974209, 0.0029615445528179407, 0.055390648543834686, -0.015222664922475815, 0.01547488383948803, 0.017313646152615547, 0.02034027874469757, 0.0108861168846488, 0.0006163104553706944, -0.03898824751377106, -0.00031679985113441944, 0.025254489853978157, 0.006098015699535608, -0.024424606934189796, -0.008127975277602673, 0.02043791301548481, 0.012586564756929874, -0.023985257372260094, 0.011170880869030952, 0.05490247905254364, 0.03094976767897606, 0.03778410330414772, 0.036189425736665726, 0.005142022389918566, -0.06743209064006805, 0.045464590191841125, 0.002538466826081276, -0.07478713989257812, -0.011268514208495617, -0.040615469217300415, -0.041233811527490616, -0.023903895169496536, -0.008534780703485012, 0.05844982713460922, -0.005646461620926857, 0.022065134719014168, 0.020177556201815605, -0.016874294728040695, 0.019754478707909584, -0.0037344752345234156, 0.01785062812268734, -0.001143123721703887, -0.016036275774240494, 0.009088036604225636, 0.03207255154848099, 0.00228217919357121, 0.06814806908369064, 0.036059245467185974, -0.017378734424710274, -0.028964556753635406, -0.029062191024422646, -0.026084372773766518, 0.010284044779837132, 0.008502236567437649, -0.006606522481888533, 0.025205673649907112, -0.020616905763745308, 0.005430854391306639, 0.029436452314257622, 0.003647011937573552, 0.02312282845377922, 0.007241139188408852, 0.02610064670443535, -0.031242668628692627, 0.026149462908506393, -0.0007047906401567161, 0.013448992744088173, 0.000703265133779496, 0.05324271321296692, 0.048361048102378845, 0.023350639268755913, -0.05275454744696617, -0.009291439317166805, 0.039801858365535736, 0.011284786276519299, 0.02889946848154068, -0.008412739261984825, 0.03207255154848099, -0.011065111495554447, -0.05047643557190895, -0.06479599326848984, 0.05386105924844742, -0.03501782566308975, 0.02857402339577675, -0.0004629956092685461, -0.033081430941820145, 0.018957139924168587, 0.028248580172657967, 0.003496493911370635, -0.031633201986551285, 0.039053335785865784, 0.03488764539361, -0.03778410330414772, -0.004328411538153887, 0.02229294553399086, -0.01734619028866291, -0.032153911888599396, 0.01981956698000431, -0.009494842030107975, 0.0026361001655459404, 0.003323601558804512, 0.003644977929070592, -0.018745601177215576, -0.0009519250597804785, -0.010357270017266273, 0.009022947400808334, 0.017102107405662537, 0.06964511424303055, -0.024294428527355194, 0.03417166694998741, -0.0012397399405017495, -0.013912750408053398, 0.05366579070687294, 0.017720451578497887, -0.016345448791980743, 0.02588910609483719, -0.005589508451521397, 0.007468950469046831, 0.059719059616327286, 0.013302542269229889, -0.00095751864137128, -0.00239811884239316, 0.012098398059606552, -0.020828446373343468, 0.0007978474604897201, 0.03249562904238701, 0.003911435604095459, 0.0305592343211174, -0.020812172442674637, 0.013229317031800747, -0.003242240520194173, 0.012204167433083057, -0.0239364393055439, -0.007749646436423063, 0.004926415625959635, 0.027386151254177094, 0.003728373209014535, 0.007289955858141184, -0.00339275854639709, -0.011528870090842247, 0.02640981785953045, 0.013880206272006035, -0.032267820090055466, -0.025661295279860497, -0.06499125808477402, -0.031112490221858025, 0.015596926212310791, 0.01289573684334755, -0.03664504736661911, 0.018940867856144905, -0.04022493585944176, 0.04282849282026291, 0.010031825862824917, 0.009909783490002155, -0.04012730345129967, -0.0009280252270400524, -0.001328220241703093, 0.05298236012458801, 0.008477828465402126, 0.01120342593640089, -0.04718944802880287, 0.00023798126494511962, -0.046180568635463715, -0.03387876972556114, 0.015873553231358528, 0.01222857553511858, 0.0030449398327618837, 0.02227667346596718, 0.02042163908481598, 0.032235272228717804, -0.009551795199513435, -0.03671013563871384, -0.005971905775368214, 0.01580032892525196, -0.0004146874416619539, -0.01485653966665268, -0.06489362567663193, -0.022764839231967926, 0.01284691970795393, 0.023285550996661186, 0.024912772700190544, 0.009478569962084293, 0.038955703377723694, 0.015181983821094036, -0.029761895537376404, -0.012627244926989079, 0.02847639098763466, -0.020405367016792297, 0.025726385414600372, 0.01653257943689823, 0.012334344908595085, 0.028834380209445953, 0.011447508819401264, -0.017460094764828682, -0.029778167605400085, -0.017671633511781693, -0.03374858945608139, -0.025986740365624428, -0.008429011330008507, 0.006191581021994352, -0.005597644951194525, -0.026914257556200027, -0.024343246594071388, 0.020096195861697197, 0.018615422770380974, -0.004454520996659994, -0.015580653212964535, -0.0205355454236269, 0.011829906143248081, 0.02951781265437603, -0.024099161848425865, 0.008640550076961517, -0.021202705800533295, -0.039574045687913895, 0.01993347331881523, 0.042893581092357635, -0.04357701167464256, 0.013383903540670872, -0.016548851504921913, -0.01817607320845127, 0.007013328373432159, 0.04155925661325455, -0.009079900570213795, -0.040713101625442505, 0.009226350113749504, 0.04767761379480362, 0.004230778198689222, 0.01755772903561592, -0.035343267023563385, -0.04100600257515907, -0.004613175056874752, 0.02086099050939083, 0.03872789070010185, -0.008746320381760597, 0.008534780703485012, -0.035766348242759705, 0.01641053706407547, 0.011227834038436413, -0.010511856526136398, 0.018029622733592987, -0.026051828637719154, -0.02217903919517994, 0.03449711203575134, 0.039899490773677826, -0.0009671802399680018, 0.022748567163944244, -0.010821028612554073, -0.0028883195482194424, -0.02601928450167179, 0.017980806529521942, -0.005308812949806452, -0.010023689828813076, -0.011626503430306911, 0.01589796133339405, 0.051452770829200745, 0.03137284517288208, 0.05626934766769409, -0.04930483549833298, 0.01177295297384262, 0.021918684244155884, 0.03976931422948837, -0.0005893595516681671, -0.010568808764219284, -0.026295913383364677, -0.027060706168413162, -0.03531072288751602, -0.014897219836711884, -0.024847684428095818, -0.03495273366570473, 0.0156782865524292, -0.012537747621536255, 0.0041860295459628105, -0.003207661909982562, -0.026149462908506393, -0.03107994608581066, 0.01692311279475689, -0.01222857553511858, -0.022048862650990486, -0.003724304959177971, -0.0583847351372242, 1.9990680812043138e-05, 0.03827226907014847, 0.0016221372643485665, -0.01005623396486044, -0.012204167433083057, -0.006565841846168041, -0.0012956757564097643, 0.03449711203575134, 0.03233290836215019, -0.05005335807800293, -0.010658306069672108, -0.0355059914290905, -0.07485222816467285, 0.017574001103639603, 0.019673118367791176, -0.002131661167368293, 0.0135791702196002, -0.020991167053580284, 0.03352078050374985, -0.005312880966812372, -0.012114670127630234, -0.0029290001839399338, -0.015971187502145767, 0.037816647440195084, -0.0010780347511172295, -0.03446456789970398, 0.003622603602707386, -0.008876497857272625, 0.02911100722849369, 0.016068819910287857, 0.026605084538459778, -0.018452700227499008, 0.021121345460414886, -0.00635023508220911, -0.016695300117135048, -0.03278852999210358, -0.016744118183851242, 0.010910525918006897, 0.008900905959308147, 0.019982289522886276, -0.0038809252437204123, 0.057766392827034, 0.04224269092082977, -0.013082867488265038, 0.06905931234359741, -0.014823995530605316, -0.010560672730207443, 0.015548109076917171, 0.03160065785050392, 0.0118136340752244, 0.0051664309576153755, -0.00327478488907218, 0.008640550076961517, 0.03579889237880707, -0.019900929182767868, -0.0270281620323658, 0.032560717314481735, 0.008534780703485012, -0.007672353181988001, -0.01331881433725357, -0.009063628502190113, -0.0017970636254176497, -0.015434203669428825, -0.018420156091451645, -0.00570341432467103, -0.036059245467185974, -0.021951228380203247, -0.027402423322200775, 0.04207997024059296, -0.013603578321635723, 0.03908587992191315, 0.020405367016792297, 0.0055122156627476215, -0.004312139004468918, 0.0183713398873806, -0.020177556201815605, -0.0590030811727047, 0.011235970072448254, 0.004983368329703808, -0.022781113162636757, 0.018110984936356544, -0.045171692967414856, 0.003311397507786751, 0.027744140475988388, 0.027744140475988388, 0.06372202932834625, -0.0030876542441546917, 0.0036795565392822027, 0.0008085260633379221, 0.04409772530198097, -0.0460178479552269, 0.00804254598915577, 0.01962430030107498, 0.08415994048118591, -0.03306515887379646, -0.004523678217083216, 0.00239811884239316, 0.013530353084206581, -0.015385386534035206, 0.006858741864562035, -0.028671657666563988, 0.015580653212964535, 0.0367426797747612, 0.03540835902094841, 0.03456220030784607, -0.0028801835142076015, -0.004967096261680126, -0.005760367028415203, 0.03127521276473999, -0.019152406603097916, -0.03156811371445656, 0.008420875295996666, -0.0355059914290905, -0.017704179510474205, 0.011724136769771576, -0.013929023407399654, -0.07700015604496002, -0.0014136494137346745, 0.031031129881739616, 0.02889946848154068, 0.027695324271917343, 0.05148531496524811, 0.00059952971059829, 0.06479599326848984, 0.025661295279860497, 0.03879297897219658, -0.017362462356686592, -0.021088801324367523, -0.009665700607001781, 0.02126779593527317, 0.032674625515937805, 0.012139078229665756, 0.03508291393518448, -0.03335805609822273, 0.0036958286073058844, -0.008795136585831642, 0.023985257372260094, 0.031242668628692627, 0.018908323720097542, 0.009974872693419456, 0.004198233596980572, -0.006586182396858931, 0.03384622558951378, -0.0015997629379853606, -0.0245547853410244, 0.006093947682529688, 0.017085833474993706, 0.059588879346847534, -0.009568067267537117, -0.015954915434122086, -0.021446790546178818, 0.005178635008633137, 0.0059068170376122, 0.001152276759967208, 0.0013211010955274105, -0.0032117299269884825, 0.006716359872370958, 0.00763574056327343, 0.0087219113484025, 0.007045872509479523, 0.0029574765358120203, 0.015133167617022991, -0.004373160190880299, 0.016491897404193878, -0.032251548022031784, 0.005544759798794985, 0.013025914318859577, -0.003488357877358794, 0.013009642250835896, -0.01692311279475689, -0.04172198101878166, -0.018957139924168587, 0.01570269465446472, 0.025661295279860497, -0.0038849932607263327, 0.03148675337433815, -0.04435807839035988, -0.036905400454998016, 0.025514846667647362, 0.018908323720097542, 0.027727868407964706, 0.009120580740272999, -0.010365406051278114, -0.019347673282027245, 0.028329940512776375, 0.01991720125079155, -0.04139653593301773, -0.014775178395211697, 0.031324028968811035, -0.007908300496637821, -0.007363181095570326, -0.032446812838315964, 0.024229340255260468, -0.010430495254695415, -0.011309195309877396, 0.0017960466211661696, -0.04735216870903969, -0.033683501183986664, -0.008754456415772438, -0.002052334137260914, -0.03531072288751602, -0.012977098114788532, -0.005459330976009369, -0.016044411808252335, -0.023985257372260094, -0.02094235084950924, 0.009079900570213795, -0.049369923770427704, 0.007106893230229616, 0.015409795567393303, -0.0279556792229414, 0.009869103319942951, -0.0060166544280946255, 0.010463039390742779, -0.018127257004380226, 0.014742634259164333, 0.022439396008849144, -0.016858022660017014, -0.01222857553511858, -0.04904447868466377, 5.418777436716482e-05, 0.022585846483707428, 0.03404149040579796, 0.00655363779515028, -0.028313668444752693, -0.017915718257427216, 0.0171346515417099, -0.01119528990238905, 0.0087219113484025, -0.02302519604563713, -0.0404527448117733, 0.008437147364020348, -0.027125796303153038, 0.0076886252500116825, 0.019445305690169334, 0.01610136404633522, -0.0043650236912071705, 0.012464523315429688, -0.0453995019197464, -0.00805475004017353, -0.05076933652162552, -0.005630189087241888, 0.058059293776750565, -0.05210365727543831, -0.010145731270313263, 0.019949745386838913, 0.041429080069065094, -0.02424561232328415, -0.026670172810554504, 0.0056342571042478085, 3.775664299610071e-05, 0.024294428527355194, -0.017915718257427216, -0.01512503158301115, 0.03544090315699577, 0.05799420177936554, -0.002804924501106143, -0.006329894997179508, 0.00500370841473341, -0.0011126132449135184, 0.044130269438028336, 0.017574001103639603, 0.004312139004468918, -0.0037019308656454086, 0.04269831255078316, -0.01939648948609829, -0.045659858733415604, 0.030201246961951256, 0.027532601729035378, 0.002918829908594489, -0.027386151254177094, -0.010576944798231125, -0.030217519029974937, 0.0011461747344583273, -0.018599150702357292, 0.02165832929313183, -0.0484912246465683, -0.007001123856753111, -0.008990403264760971, -0.0011227834038436413, 0.002215056447312236, 0.013017778284847736, 0.01315609272569418, 0.003488357877358794, -0.003533106530085206, 0.013660531491041183, -0.019949745386838913, -0.010365406051278114, 0.05438176915049553, -0.015865417197346687, -0.0205355454236269, 0.02291128970682621, 0.04533441364765167, -0.05171312391757965, 0.023920167237520218, -0.027402423322200775, -0.05633443593978882, 0.0226997509598732, 0.02230921760201454, -0.015662014484405518, -0.023985257372260094, -0.012456386350095272, -0.013473400846123695, 0.00025832155370153487, 0.05818947032094002, 0.022764839231967926, 0.03950895741581917, -0.024017801508307457, 0.00068038230529055, -0.028818106278777122, -0.010951206088066101, -0.008420875295996666, -0.00032137639936991036, 0.01383139006793499, -0.014474142342805862, -0.002455071546137333, 0.013587306253612041, 0.010764075443148613, -0.00394601421430707, 0.02230921760201454, -0.018957139924168587, -0.006732632406055927, -0.015613198280334473, 0.038434989750385284, 0.003915503621101379, 0.0020930147729814053, -0.017622817307710648, -0.03345569223165512, -0.001235671923495829, 0.021235251799225807, 0.00295544252730906, -0.0423077791929245, -0.0009488739888183773, 0.014539231546223164, -0.00459283497184515, 0.02457105740904808, 0.03615688160061836, -0.02878556214272976, -0.003998898901045322, -0.012936417013406754, -0.033276695758104324, -0.02147933468222618, 0.028248580172657967, 0.0019689390901476145, 0.019754478707909584, -0.0355059914290905, -0.020291462540626526, 0.03335805609822273, -0.0183713398873806, -0.021137617528438568, -0.0012377059319987893, -0.0734853595495224, -0.01949412375688553, 0.02518940158188343, -0.022455668076872826, -0.01817607320845127, 0.027581417933106422, 0.007330636493861675, 0.018208617344498634, -0.0028089925181120634, 0.007106893230229616, -0.021902412176132202, -0.025238217785954475, 0.012326208874583244, -0.00591088505461812, -0.0008105601300485432, -0.01383139006793499, 0.01569455862045288, -0.023594724014401436, -0.01846897229552269, -0.0325932614505291, 0.022146495059132576, -0.025140585377812386, -0.02963171899318695, 0.021544422954320908, 0.017899446189403534, -0.00763980858027935, -0.048458680510520935, -0.003620569594204426, -0.006301418412476778, -0.0012834715889766812, 0.008762592449784279, -0.004853190388530493, 0.01135801151394844, 0.011984492652118206, -0.01724855601787567, 0.002158103510737419, 0.006008518394082785, -0.010576944798231125, -0.013294406235218048, -0.00042994265095330775, -0.0017167195910587907, 0.00015878130216151476, 0.01310727559030056, 0.02302519604563713, -0.014230059459805489, 0.02889946848154068, -0.03116130642592907, 0.031633201986551285, -0.0002227260556537658, -0.030217519029974937, -0.02343200147151947, 0.011471916921436787, 0.011919403448700905, 0.03986694663763046, 0.02022637240588665, 0.011244106106460094, -0.009006675332784653, 0.03181219473481178, 0.005068797618150711, -0.008278493769466877, -0.024294428527355194, 0.009112444706261158, 0.007188254501670599, 0.03446456789970398, -0.001998432446271181, -0.0069970558397471905, -0.009413480758666992, -0.0034130988642573357, -0.0010210820473730564, 0.024001529440283775, 0.0003335805668029934, 0.00719639053568244, -0.04234032332897186, -0.018452700227499008, 0.08318360149860382, 0.015360978431999683, 0.02878556214272976, -0.010788483545184135, -0.024701233953237534, -0.02416425198316574, -0.055488280951976776, 0.011447508819401264, 0.007180118467658758, -0.014343964867293835, 0.05298236012458801, -0.021528150886297226, -0.013066595420241356, -0.0283950287848711, 0.014417190104722977, -0.013457128778100014, 0.00435688765719533, 0.0398344025015831, 0.001339407404884696, 0.0029920549131929874, -0.03151929751038551, -0.006797721143811941, -0.04357701167464256, 0.003887027269229293, -0.023659812286496162, 0.03361841291189194, 0.029241185635328293, -0.012765559367835522, -0.03651486709713936, -0.02509176731109619, -0.007696761749684811, -0.01599559560418129, 0.022455668076872826, 0.006586182396858931, -0.019656846299767494, -0.013603578321635723, 0.024082889780402184, 0.0042714583687484264, 0.022016318514943123, 0.024310700595378876, -0.006866878364235163, -0.008909041993319988, 0.010227092541754246, 0.0021723418030887842, -0.05373087897896767, 0.022439396008849144, -0.018289979547262192, -0.008591733872890472, 0.000796321895904839, 0.008909041993319988, 0.01817607320845127, -0.02631218545138836, 0.02588910609483719, -0.011056975461542606, 0.013920886442065239, 0.03430184721946716, -0.013920886442065239, -0.0056342571042478085, 0.009551795199513435, 0.003748713294044137, 0.007131301797926426, 0.01991720125079155, -0.01527148112654686, 0.005133886355906725, -0.029696807265281677, 0.01222857553511858, 0.012090262025594711, -0.012863192707300186, -0.020307734608650208, 0.043511923402547836, -0.028118401765823364, 0.006301418412476778, 0.016638347879052162, 0.014897219836711884, -0.01785062812268734, -0.012008900754153728, 0.04982554540038109, -0.00766014913097024, -0.013546626083552837, -0.022943833842873573, 0.005406446289271116, 0.009462297894060612, -0.023903895169496536, 0.020909806713461876, 0.03954150155186653, 0.015605062246322632, 0.00048613265971653163, 0.0171346515417099, 0.026263367384672165, 0.012041444890201092, 0.026979345828294754, 0.015409795567393303, -0.02940390631556511, -0.04159180074930191, -0.02891574054956436, 0.005605780985206366, -0.009348392486572266, 0.015011126175522804, 0.019217494875192642, -0.0015306059503927827, 0.00047469124547205865, 0.005386105738580227, 0.025221945717930794, 0.0301198847591877, -0.04468352347612381, 0.010642034001648426, 0.010755939409136772, -0.004763693083077669, -0.024017801508307457, 0.0131154116243124, -0.0023126897867769003, -0.0010678645921871066, 0.008608005940914154, 0.014425326138734818, -0.016028139740228653, -0.047221992164850235, 0.004426044877618551, -0.005178635008633137, -0.024798868224024773, 0.023269278928637505, 0.0236272681504488, -0.01663021184504032, -0.0007892028079368174, -0.0007098757196217775, -0.010698986239731312, -0.00938907265663147, 0.019526667892932892, -0.018631694838404655, 0.006228193175047636, 0.014042928814888, -0.04048529267311096, 0.013627986423671246, -0.03220272809267044, -0.029680535197257996, 0.004771829582750797, -0.013196772895753384, 0.007517767138779163, 0.0008441215613856912, -0.029355090111494064, 0.004133144859224558, 0.01827370561659336, -0.036059245467185974, -0.01588982529938221, -0.0028313668444752693, 0.014880947768688202, -0.02590538002550602, 0.004405704326927662, 0.035245634615421295, -0.004885734990239143, 0.004975232295691967, -0.011040703393518925, 0.0118136340752244, -0.03459474816918373, -0.02437579073011875, 0.010438631288707256, 0.005341357085853815, 0.034627292305231094, 0.00959247536957264, 0.010511856526136398, 0.002898489823564887, 0.006541433744132519, -0.00980401411652565, -0.0245547853410244, -0.019250039011240005, -0.0248639564961195, -0.00790016446262598, -0.001995381433516741, 0.0016556987538933754, 0.002733733505010605, -0.009543659165501595, -0.0012153316056355834, 0.012033308856189251, -0.038662802428007126, 0.015499292872846127, 0.07036109268665314, -0.017508912831544876, -0.0009676887420937419, 0.013058459386229515, -0.011504461988806725, 0.019022228196263313, 0.006911626551300287, -0.013538490049540997, -0.012505203485488892, -0.006150900386273861, 0.01807844080030918, -0.025417212396860123, -0.020926078781485558, 0.024815140292048454, 0.0257914736866951, 0.008445283398032188, -0.0077618504874408245, -0.02291128970682621, 0.00722893513739109, -0.021316612139344215, 0.04396754503250122, 0.028346212580800056, -0.0040294090285897255, -0.015596926212310791, 0.01680920645594597, 0.03397640213370323, -0.006423459853976965, 0.023171646520495415, 0.02920863963663578, -0.00020060599490534514, -0.007871688343584538, 0.024017801508307457, -0.01491349283605814, 0.003323601558804512, 0.010609489865601063, -0.026605084538459778, 0.016361720860004425, 0.012366889975965023, -0.006329894997179508, -0.009511114098131657, -0.029159823432564735, 0.01026777271181345, 0.019429033622145653, -0.014929764904081821, -0.013326950371265411, 0.03221900016069412, -0.024326972663402557, 0.019884657114744186, 0.03810954466462135, 0.020991167053580284, -0.02652372419834137, -0.02032400667667389, 0.01558879017829895, 0.025108039379119873, 0.049369923770427704, -0.01641053706407547, 0.00251405849121511, -0.030477873980998993, 0.01962430030107498, 0.002328961854800582, -0.033781133592128754, -0.004857258405536413, 0.0012478760909289122, -0.009071764536201954, -0.011569550260901451, 0.04025747999548912, -0.0046538556925952435, 0.01931512914597988, 8.784457895671949e-05, 0.00851850863546133, 0.005914953071624041, -0.00013043203216511756, 0.026653900742530823, -0.039801858365535736, -0.015653878450393677, -0.00012598260946106166, -0.03589652478694916, -0.021332884207367897, -0.01182177010923624, -0.01972193457186222, -0.008388331159949303, 0.012358753010630608, 0.0007073332089930773, -0.0010454903822392225, 0.013937159441411495, -0.031210124492645264, -0.02291128970682621, 0.04002966731786728, -0.0033663162030279636, -0.019380217418074608, 0.0416894368827343, 0.02312282845377922, -0.013937159441411495, 0.01619899831712246, 0.00456842640414834, -0.016020003706216812, -0.007753714453428984, 0.04204742610454559, -0.013180500827729702, 0.012318072840571404, -0.02074708417057991, 0.017069561406970024, 0.012139078229665756, 0.035961613059043884, 0.0063624391332268715, 0.0171346515417099, 0.017167195677757263, -0.0018438462866470218, 0.013147956691682339, 0.01047117542475462, -0.015173847787082195, -0.013400175608694553, -0.014327692799270153, 0.011862450279295444, 0.014295147731900215, -0.013766300864517689, -0.03311397507786751, 0.01609322801232338, 0.000692077970597893, 0.025661295279860497, -0.022976379841566086, 0.04943501204252243, 0.033585868775844574, -0.01732991822063923, -0.005402378272265196, -0.03384622558951378, -0.017997078597545624, 0.040713101625442505, -0.02590538002550602, 0.02509176731109619, 0.0152796171605587, -0.01295269001275301, -0.0035473445896059275, -0.0015407761093229055, 0.027272246778011322, 0.003567684907466173, 0.012684198096394539, 0.01270047016441822, -0.0279556792229414, 0.04263322427868843, -0.009267031215131283, -0.01619086228311062, -0.024082889780402184, -0.015963051468133926, -0.002505922457203269, -0.02571011334657669, -0.011048839427530766, -0.003929741680622101, 0.04790542647242546, 0.027402423322200775, -0.012358753010630608, 0.001383138936944306, -0.00024853277136571705, 0.026035556569695473, 0.00924262311309576, 0.015743376687169075, 0.005304744932800531, -0.0013668667525053024, -0.020258918404579163, -0.026897985488176346, 0.023253006860613823, -0.011325467377901077, 0.012879464775323868, 0.01577592082321644, -0.004682332277297974, 0.04614802449941635, 0.009690108709037304, 0.04653855785727501, -0.017199739813804626, -0.004426044877618551, 0.018322523683309555, -0.020405367016792297, -0.022846201434731483, -0.018094712868332863, -0.008648687042295933, -0.01619086228311062, 0.021804779767990112, 0.012554019689559937, 0.016760390251874924, 0.003937878180295229, -0.013196772895753384, -0.022520756348967552, 0.008331377990543842, -0.009559931233525276, 0.015100623480975628, -0.0019292754586786032, 0.0014329726109281182, -0.027809228748083115, -0.03291870653629303, -0.017362462356686592, -0.008144247345626354, 0.017118379473686218, -0.025368396192789078, -0.0010770177468657494, -0.021023713052272797, 0.046603646129369736, -0.017411278560757637, -0.009462297894060612, 0.0005944446311332285, -0.004332479555159807, -0.023594724014401436, 0.041526712477207184, -0.016792934387922287, 0.009421616792678833, -0.016223406419157982, 0.03853262588381767, 0.007505563087761402, 0.031193852424621582, -0.034529656171798706, -0.03264208137989044, -0.018713057041168213, -0.019445305690169334, 0.008290697820484638, -0.007212663069367409, 0.022878745570778847, -0.006940103136003017, 0.015181983821094036, -0.03589652478694916, 0.026361001655459404, 0.02271602302789688, -0.007505563087761402, -0.001532639958895743, 0.026165734976530075, -0.011992628686130047, -0.008245948702096939, 0.030787046998739243, 0.004340615589171648, 0.00025921143242157996, 0.011642775498330593, 0.01621527038514614, -0.01755772903561592, 0.018322523683309555, -0.005353561602532864, -0.02663762867450714, 0.02073081210255623, 0.002802890492603183, -0.00722486712038517, 0.023301823064684868, 0.008648687042295933, -0.014701953157782555, 0.010764075443148613, 0.0016445115907117724, 0.025108039379119873, 0.03046160191297531, -0.017704179510474205, -0.023187918588519096, -0.023187918588519096, 0.050834424793720245, 0.0038219382986426353, -0.028443846851587296, 0.004047715570777655, -0.005272200331091881, 0.010048097930848598, -0.04510660097002983, 0.004507405683398247, 0.01672784611582756, 0.0017919786041602492, -0.022667206823825836, -0.0001021463394863531, -0.027125796303153038, -0.029176095500588417, -0.01910359039902687, -0.01175668090581894, 0.014335828833281994, -0.020372822880744934], "id": 52}, {"title": "Vichitravirya", "text": "In the epic Mahabharata, Vichitravirya (Sanskrit: \u0935\u093f\u091a\u093f\u0924\u094d\u0930\u0935\u0940\u0930\u094d\u092f, vicitrav\u012brya) is the younger son of queen Satyavat\u012b and king \u015aa\u1e45tanu and grandfather of the Pandavas and Kaurava. His elder brother, Chitr\u0101ngada, had initially succeeded their father to the throne of Hastinapura, but when he died childless, Vichitravirya succeeded him.Vichitravirya was still a child when he was crowned king, hence Bhishma ruled as his regent.", "vector": [0.024954576045274734, 0.006638835649937391, -0.016168976202607155, 0.04166955128312111, 0.028987513855099678, 0.0384928360581398, -0.022299041971564293, -0.06968916207551956, -0.02660497836768627, -0.00312552647665143, 0.02460712380707264, 0.014853619039058685, -0.056088853627443314, -0.02274576760828495, 0.04789888858795166, 0.04554117098450661, -0.02485530450940132, 0.02573634497821331, -0.04896606504917145, -0.017856605350971222, -0.04616162180900574, 0.018278513103723526, -0.029831327497959137, -0.030278053134679794, -0.01458062045276165, -0.02026395872235298, -0.042488548904657364, -0.021827498450875282, -0.015151435509324074, 0.004439333453774452, 0.021666180342435837, 0.03583730384707451, 0.005785713903605938, -0.01870042085647583, -0.01290540024638176, -0.045069627463817596, -0.05653557926416397, -0.0038374951109290123, -0.029409421607851982, -0.053607046604156494, -0.01946978084743023, -0.006086633540689945, 0.014766755513846874, -0.0003139098989777267, 0.018067559227347374, 0.0192464180290699, -0.017335426062345505, 0.0012789064785465598, -0.009617004543542862, -0.035266488790512085, 0.05020697042346001, -0.007004902232438326, 0.03414967283606529, 0.0699373409152031, -0.007433013990521431, -0.014791573397815228, 0.006725698709487915, 0.0010950976284220815, 0.03181677311658859, 0.005608885549008846, -0.010057525709271431, -0.01585875079035759, 0.012179471552371979, 0.02387499064207077, -0.002492665546014905, -0.011496974155306816, -0.02133113704621792, 0.00226930296048522, -0.003403178881853819, -0.0027641132473945618, 0.03988264873623848, -0.0025655687786638737, -0.010932362638413906, 0.0019559746142476797, -0.0006530256359837949, -0.002917675068601966, 0.015548525378108025, 0.060655377805233, -0.020003369078040123, 0.06025829166173935, 0.007830102927982807, 0.014295211993157864, -0.018985828384757042, 0.091727614402771, 0.03943592309951782, -0.041247643530368805, 0.00946189183741808, -0.04174400493502617, -0.01383607741445303, 0.023093219846487045, 0.050877057015895844, -0.04067682847380638, 0.007979012094438076, -0.010926158167421818, -0.0029409420676529408, 0.03139486536383629, 0.038443200290203094, 0.006818766705691814, -0.042637456208467484, 0.0054413634352386, 0.031196322292089462, -0.04626089334487915, -0.007439218461513519, 0.0032914974726736546, -1.229997451446252e-06, -0.026009343564510345, -0.030575869604945183, 0.0018706625560298562, 0.03583730384707451, 0.03864174708724022, -0.026183070614933968, -0.02248517796397209, 0.014382075518369675, 0.035961393266916275, -0.003921255934983492, -0.00030596036231145263, 0.014977709390223026, -0.005038069561123848, -0.030054690316319466, -0.052068326622247696, 0.014816392213106155, -0.0010997509816661477, -0.020971274003386497, -0.04005637764930725, 0.0027051703073084354, -0.01775733381509781, -0.027423974126577377, 0.019817234948277473, 0.02274576760828495, 0.054847948253154755, -0.045764531940221786, -0.045144081115722656, -0.032933589071035385, 0.05514576658606529, 0.003958483226597309, 0.015809115022420883, 0.0042687091045081615, -0.021753044798970222, 0.00907721184194088, 0.008276828564703465, 0.009858980774879456, 0.0466579832136631, -0.019420145079493523, 0.012365606613457203, 0.01775733381509781, -0.020499730482697487, -0.015287934802472591, 0.011292224749922752, 0.04516889899969101, -0.007681194692850113, -0.02453266829252243, 0.011726541444659233, -0.006719494238495827, 0.05186977982521057, 0.0025407506618648767, 0.00771842198446393, 0.03017878159880638, -0.0416199155151844, 0.04216591268777847, -0.00585086178034544, -0.016243431717157364, 0.031196322292089462, -0.06581754237413406, -0.013612715527415276, 0.061151739209890366, -0.026530524715781212, -0.01625584065914154, -0.008810416795313358, -0.03477012366056442, 0.010373956523835659, -0.004845729563385248, -0.023068401962518692, 0.024693986400961876, 0.04569007828831673, -0.01190026756376028, 0.017658062279224396, -0.04276154562830925, -0.021492455154657364, -0.010981999337673187, -0.003521064529195428, -0.034323401749134064, -0.06517226994037628, -0.0707811564207077, 0.03434821963310242, 0.05737939476966858, 0.05504649505019188, 0.0567341223359108, -0.009120643138885498, -0.097137950360775, 0.022410722449421883, -0.01975518837571144, 0.014543392695486546, 0.01129842922091484, 0.008531213738024235, -0.01190026756376028, -0.02479325793683529, 0.04487108439207077, -0.0041291075758636, 0.05996047332882881, -0.009288164786994457, 0.014444120228290558, -0.04159509763121605, -0.01990409754216671, 0.01935810036957264, -8.61361768329516e-05, 0.035489849746227264, -0.020760321989655495, -0.03305767849087715, 0.011602451093494892, 0.009827958419919014, -0.028441516682505608, 0.030749596655368805, 0.013550669886171818, -0.001997855259105563, -0.006793948356062174, -0.0018489466747269034, -0.004501378629356623, -0.028168516233563423, -0.05410340800881386, 0.00016936397878453135, -0.005432056728750467, 0.018613558262586594, 0.02023914083838463, 0.0041229031048715115, -0.022038452327251434, -0.01909751072525978, -0.05802466347813606, -0.02551298215985298, -0.05693266913294792, 0.025860436260700226, 0.03000505454838276, 0.06358391046524048, 0.03970892354846001, -0.02675388753414154, -0.025785982608795166, -0.0016472998540848494, 0.02248517796397209, -0.05047996714711189, 0.014890845865011215, -0.019854461774230003, 0.03194086626172066, 0.005357602145522833, -0.0165164303034544, 0.003257372649386525, 0.03506794199347496, 0.015238299034535885, -0.009064802899956703, -0.04804779589176178, 0.0009205955429933965, -0.02729988470673561, 0.05271359533071518, 0.021715817973017693, 0.004147720988839865, 0.01698797382414341, -0.027721792459487915, 0.06105246767401695, -0.01659088395535946, 0.020512141287326813, 0.02792033553123474, 0.016466794535517693, -0.016057295724749565, -0.06110210344195366, -0.00674431212246418, 0.03764902055263519, 0.0037940635811537504, -0.022770585492253304, 0.007761853281408548, 0.013637533411383629, -0.012204289436340332, 0.011447337456047535, 0.03792202100157738, -0.013972577638924122, -0.023701263591647148, -0.04578934982419014, 0.007606740575283766, -0.048320796340703964, -0.013550669886171818, 0.061151739209890366, 0.007811489515006542, 0.02876415103673935, 0.06899425387382507, 0.020313596352934837, -0.023031175136566162, -0.022336268797516823, -0.0074950591661036015, 0.03551466763019562, 0.04035419225692749, 0.04129727929830551, 0.02259685844182968, -0.0334547683596611, 0.03864174708724022, -0.035713210701942444, 0.015771888196468353, -0.03663147985935211, -0.016566066071391106, -0.005965644959360361, -0.022373495623469353, -0.009536346420645714, -0.03079923242330551, -0.07375932484865189, 0.05370631814002991, 0.0014254882698878646, -0.00915166549384594, 0.006471313536167145, -0.08135365694761276, -0.01851428486406803, 0.008841440081596375, 0.045292988419532776, -0.006477518007159233, -0.009058598428964615, -0.0322386808693409, -0.015908386558294296, 0.015734661370515823, 0.04104910045862198, 0.06700880825519562, 0.021715817973017693, 0.006207621656358242, 0.0076005361042916775, -0.03742565959692001, 0.056088853627443314, -0.01862596720457077, -0.026257524266839027, 0.036284029483795166, -0.008264419622719288, 0.03888992592692375, 0.007110379170626402, -0.01325285341590643, 0.02485530450940132, -0.004302834160625935, -0.027696972712874413, 0.01208640355616808, 0.006589199416339397, -0.019879279658198357, -0.001563538797199726, 0.04169436916708946, 0.00017837992345448583, 0.036432936787605286, 0.012508310377597809, -0.02161654457449913, -0.017744924873113632, -0.019953733310103416, 0.039311833679676056, 0.03794683888554573, 0.017074836418032646, 0.033876676112413406, 0.021641362458467484, -0.01290540024638176, 0.011881654150784016, -0.006936652585864067, -0.02146763727068901, 0.0004719312419183552, 0.029111603274941444, 0.006148678716272116, -0.024309305474162102, -0.01208640355616808, 0.021480046212673187, 0.013513443060219288, -0.008829031139612198, 0.03640811890363693, -0.015846341848373413, -0.011317042633891106, 0.005515817552804947, -0.0583224818110466, 0.02321731112897396, 0.0161441583186388, -0.05792539194226265, -0.0020862696692347527, -0.030898505821824074, 0.023937035351991653, 0.018563920632004738, 0.009703868068754673, 0.007867330685257912, 0.028168516233563423, 0.026034163311123848, 0.019668325781822205, 0.011720336973667145, 0.03412485495209694, 0.004585139453411102, 0.025761162862181664, 0.001969934906810522, 0.0007759527070447803, -0.025202756747603416, -0.013662351295351982, 0.03365331143140793, -0.009598391130566597, -0.031990502029657364, 0.026803523302078247, 0.004141516517847776, 0.003150344593450427, -0.017434699460864067, 0.00954875536262989, 0.014456530101597309, 0.02033841423690319, -0.032064955681562424, 0.017372652888298035, -0.00834507867693901, 0.03779793158173561, -0.036507390439510345, 0.04834561422467232, -0.027101339772343636, 0.0029083683621138334, 0.029111603274941444, -0.0007018862525001168, -0.021492455154657364, -0.011838222853839397, 0.04308418184518814, -0.04611198604106903, 0.020685866475105286, 0.024706395342946053, -0.011720336973667145, 0.0015930102672427893, 0.0361599363386631, 0.022472769021987915, -0.00503186509013176, 0.014121485874056816, -0.005401033908128738, 0.032610952854156494, 0.05479831248521805, 0.02285744808614254, -0.014506165869534016, -0.0040360395796597, 0.010342933237552643, 0.021169818937778473, 0.028788968920707703, -0.04564044252038002, 0.00043896972783841193, -0.01345139741897583, 0.02729988470673561, 0.040776100009679794, -0.030923323705792427, 0.003303906414657831, -0.024073533713817596, 0.025934889912605286, 0.028714515268802643, -0.02063623070716858, -0.06834898144006729, -0.00794798880815506, 0.020499730482697487, 0.016566066071391106, -0.015809115022420883, 0.02953351102769375, 0.0057577937841415405, -0.006638835649937391, -0.06214446574449539, -0.026183070614933968, 0.011273611336946487, 0.027275066822767258, -0.019221600145101547, 0.02365162782371044, 0.020152278244495392, 0.005798123311251402, -0.028242971748113632, -0.04472217336297035, -0.028242971748113632, -0.03290877118706703, 0.04636016860604286, 0.009772117249667645, -0.0033163155894726515, -0.016206204891204834, 0.013128762133419514, 0.012167061679065228, -0.0005715913139283657, -0.031767137348651886, -0.025438528507947922, 0.0014076502993702888, 0.005469283554702997, 0.03576285019516945, -0.018539102748036385, -0.008084488101303577, 0.013699578121304512, 0.015647796913981438, 0.021628953516483307, -0.04112355411052704, 0.0069986977614462376, 0.02690279483795166, -0.031072232872247696, 0.014890845865011215, 0.0007767282659187913, 0.023539945483207703, -0.004557219333946705, -0.0015829280018806458, -0.007743239868432283, -0.06586717814207077, 0.0392870157957077, -0.011658291332423687, -0.0023778819013386965, -0.07480168342590332, 0.00550340861082077, -0.028391879051923752, 0.034869398921728134, -0.012291152030229568, -0.01753397099673748, 0.060456834733486176, -0.045367445796728134, -0.0404534637928009, 0.018712829798460007, -0.06820007413625717, 0.007420605048537254, 0.014419302344322205, -0.022696131840348244, 0.04305936396121979, -0.011397701688110828, 0.011037839576601982, -0.027821063995361328, -0.009430869482457638, 0.013004671782255173, -0.02485530450940132, 0.020735502243041992, -0.014779164455831051, -0.04283599928021431, 0.020077824592590332, 0.033628493547439575, 0.011745154857635498, -0.011676904745399952, 0.028863422572612762, -0.02059900388121605, 0.05097632855176926, -0.004597548861056566, -0.003449712647125125, -0.009492914192378521, -0.015647796913981438, 0.023142855614423752, -0.014630256220698357, -0.011348065920174122, -0.015325162559747696, 0.03263577073812485, -0.012551742605865002, 0.001286662183701992, -0.03623439371585846, 0.0036203369963914156, 0.015027345158159733, -0.007743239868432283, -0.03397594764828682, -0.013302489183843136, 0.006496131420135498, 0.01100681722164154, 0.04509444534778595, -0.02208808809518814, 0.018675602972507477, 0.0021777863148599863, 0.002779624657705426, -0.018824510276317596, 0.004523094277828932, 0.0188493300229311, -0.006012178957462311, -0.027275066822767258, -0.04655871167778969, 0.02566189132630825, -0.014419302344322205, -0.03834392875432968, 0.025934889912605286, -0.03385185822844505, 0.005680237431079149, 0.026083799079060555, -0.006309995893388987, 0.03824465721845627, 0.014568210579454899, -0.00498533109202981, 0.04658352956175804, -0.01195610873401165, -0.019184373319149017, -0.007687399163842201, 0.026853159070014954, 0.031370047479867935, -0.013426579535007477, 0.0431586354970932, 0.01644197665154934, -0.006688471883535385, 0.0326605886220932, 0.02660497836768627, 0.0357876680791378, 0.025128303095698357, -0.001009009894914925, -0.05172087252140045, 0.015523706562817097, 0.003297701943665743, -0.0022088089026510715, -0.0020862696692347527, 0.0052055916748940945, 0.028416696935892105, 0.07048333436250687, -0.0019637304358184338, 0.02784588187932968, 0.009108234196901321, -0.016069704666733742, -0.03481976315379143, -0.014853619039058685, 0.04519371688365936, 0.006949061527848244, -0.02041286788880825, -0.01764565333724022, -0.002069207141175866, 0.018563920632004738, 0.009858980774879456, 0.0400315560400486, -0.020934047177433968, -0.009567368775606155, 0.059662654995918274, -0.005897395312786102, -0.028342243283987045, -0.01325285341590643, 0.04725361987948418, -0.002115741139277816, 0.018898965790867805, 6.858901906525716e-05, -0.008438145741820335, -0.031767137348651886, -0.052614323794841766, 0.028193335980176926, -0.002546955132856965, -0.04229000210762024, -0.018650785088539124, -0.03047659806907177, 0.03576285019516945, 0.04554117098450661, 0.045764531940221786, 0.002669494366273284, -0.007011106703430414, 0.0020040597300976515, 0.008090692572295666, 0.002069207141175866, 0.006967674940824509, -0.0025857333093881607, 0.012793718837201595, -0.018563920632004738, -0.02628234401345253, -0.03970892354846001, 0.011931289918720722, -0.021417999640107155, 0.02729988470673561, 0.0004889936535619199, 0.04472217336297035, 0.011192952282726765, 0.01796828769147396, 0.007544695399701595, -0.05762757360935211, -0.005338988732546568, -0.007172424346208572, 0.01862596720457077, -0.00021328034927137196, -0.0031643048860132694, -0.014456530101597309, -0.0006173496367409825, -0.03747529536485672, -0.0384928360581398, -0.026331979781389236, 0.01764565333724022, -0.007612945046275854, -0.022174950689077377, 0.01851428486406803, -0.03164304792881012, 0.005553044844418764, -0.01113711204379797, -0.03251168131828308, 0.02063623070716858, -0.0003474530822131783, -0.025364074856042862, 0.01862596720457077, -0.02103332057595253, 0.0014324684161692858, 0.019296053797006607, -0.026853159070014954, -0.009300574660301208, 0.02358958125114441, -0.004085675813257694, -0.017918651923537254, 0.011019226163625717, -0.001861355733126402, 0.0016721179708838463, 0.014828801155090332, 0.026803523302078247, -0.004234584514051676, -0.01593320444226265, -0.02595970779657364, 0.014084258116781712, 0.0012750286841765046, -0.01956905424594879, 0.004591344390064478, -0.05549322068691254, 0.02125668339431286, 0.037673842161893845, 0.021628953516483307, 0.006812562234699726, 0.00136034085880965, 0.05062887817621231, -0.016714975237846375, 0.044672537595033646, 0.0010508904233574867, 0.016863882541656494, 0.003204634180292487, 0.015995251014828682, 0.05186977982521057, 0.014903254806995392, -0.009071007370948792, 0.01734783500432968, 0.03710302338004112, 0.014928072690963745, 0.029483875259757042, 0.008537418209016323, 0.016938338056206703, 0.0221625417470932, -0.007737035397440195, 0.014568210579454899, 0.022249406203627586, -0.012483492493629456, -0.023639218881726265, -0.013352124951779842, 0.0024290692526847124, -0.002545404015108943, -0.010038912296295166, 0.012278743088245392, -0.0025655687786638737, 0.022286633029580116, -0.024904940277338028, -0.03437303751707077, -0.008010034449398518, -0.005543737672269344, -0.02595970779657364, 0.029210876673460007, 0.01920919120311737, 0.032536499202251434, 0.04159509763121605, -0.012880581431090832, 0.03132041171193123, 0.02628234401345253, -0.012868172489106655, 0.002596591366454959, -0.015846341848373413, 4.5734093873761594e-05, 0.002345308195799589, -0.008456760086119175, -0.0074950591661036015, 0.022336268797516823, 0.01388571411371231, 0.020896820351481438, -0.016901109367609024, -0.015871159732341766, -0.007662581279873848, 0.03263577073812485, -0.018898965790867805, -0.011751359328627586, -0.009319188073277473, 0.015064572915434837, -0.004771275445818901, -0.021566908806562424, 0.0031829182989895344, 0.015374798327684402, 0.0059160091914236546, -0.015833932906389236, 0.04603753238916397, 0.042811181396245956, -0.021492455154657364, 0.01570984348654747, -0.06586717814207077, 0.027002068236470222, -0.008773189969360828, -0.02067345753312111, -0.024545077234506607, -0.005131137557327747, 0.013165989890694618, -0.014779164455831051, 0.06035756319761276, 0.021306319162249565, -0.0031301798298954964, 0.03948555886745453, -0.04896606504917145, 0.008065874688327312, -0.008953121490776539, -0.0023282459005713463, -0.005484794732183218, -0.025289619341492653, 0.003353542648255825, 0.048395249992609024, -0.018787283450365067, 0.021008502691984177, -0.01721133664250374, 0.0104049788787961, -0.003750631818547845, -0.017695289105176926, -0.012669628486037254, -0.007985216565430164, -0.027026886120438576, -0.0036451551131904125, -0.0020878207869827747, -0.035489849746227264, -0.028118880465626717, 0.023974262177944183, 0.033876676112413406, 0.021641362458467484, 0.020003369078040123, 0.026108616963028908, 0.05549322068691254, 0.014208348467946053, 0.009182688780128956, 0.06358391046524048, 0.02744879201054573, 0.019085101783275604, 0.027399156242609024, 0.002588835544884205, -0.007364764343947172, 0.015734661370515823, -0.0017962083220481873, 0.00851260032504797, 0.03109705075621605, -0.022075679153203964, -0.06120137870311737, 0.027275066822767258, 0.01935810036957264, 0.03680520877242088, -0.023167675361037254, 0.021318728104233742, -0.00387782440520823, -0.01290540024638176, -0.02464435063302517, -0.03414967283606529, -0.02806924469769001, -0.02242313139140606, -0.02504143863916397, 0.02960796467959881, 0.015176254324615002, -0.017223745584487915, 0.03062550723552704, 0.038219839334487915, -0.04229000210762024, -0.019159555435180664, -0.035961393266916275, 0.04911497235298157, -0.0038126769941300154, 0.024433396756649017, -0.0017946572043001652, -0.007904557511210442, -0.0011276713339611888, 0.0032790882978588343, -0.0021715816110372543, -0.03678039088845253, 0.044275447726249695, -0.02252240478992462, -0.03007950820028782, -0.00756330881267786, 0.02752324752509594, -0.028019608929753304, -0.007135197054594755, -0.01870042085647583, -8.759035699767992e-05, -0.046856530010700226, -0.06472554057836533, -0.02893787808716297, 0.018427422270178795, 0.028317425400018692, -0.007426809519529343, 0.03102259524166584, 0.013860896229743958, 0.03583730384707451, -0.0008794905734248459, -0.01975518837571144, 0.022373495623469353, 0.05842175334692001, -0.013476215302944183, -0.002596591366454959, -0.02620788849890232, 0.02023914083838463, 0.0031798160634934902, -0.014257985167205334, 0.02963278442621231, 0.014382075518369675, -0.01500252727419138, 0.05767720937728882, -0.0011610205983743072, 0.045144081115722656, 0.01567261479794979, -0.00997066218405962, 0.007885944098234177, 0.05926556885242462, 0.01621861383318901, 0.02259685844182968, -0.016069704666733742, 0.013898123055696487, 0.032685406506061554, -0.01742229051887989, 0.01297985389828682, -0.00756330881267786, -0.037202298641204834, -0.03233795240521431, 0.022038452327251434, 0.017943469807505608, -0.009337801486253738, -0.0008182209567166865, 0.009573573246598244, 0.0018799692625179887, -0.0544012226164341, -0.0053513976745307446, 0.04564044252038002, -0.022398313507437706, -0.045590806752443314, 0.02643125131726265, -0.013674760237336159, -0.02658016048371792, 0.01255794707685709, -0.03817020356655121, -0.002466296311467886, 0.007197242230176926, 0.020177096128463745, -0.019916506484150887, -0.020474912598729134, 0.00030731759034097195, -0.009952048771083355, 0.04884197562932968, 0.011292224749922752, -0.003069685772061348, 0.011118498630821705, -0.04794852435588837, 0.029583146795630455, -0.005360704381018877, -0.012384220026433468, 0.041942548006772995, 0.026257524266839027, -0.0431586354970932, -0.014977709390223026, -0.008990348316729069, -0.010653159581124783, -0.009809345006942749, 0.040230102837085724, -0.010504251345992088, 0.0015573343262076378, 0.057429030537605286, -0.026530524715781212, 0.027572883293032646, -0.026654614135622978, -0.006868402939289808, -0.022137723863124847, -0.02660497836768627, -0.028168516233563423, 0.007284105289727449, -0.02581080049276352, 0.04951206222176552, -0.05390486121177673, -0.05216759815812111, -0.02496698498725891, 0.011583837680518627, -0.05040551349520683, 0.011503178626298904, -0.010324319824576378, 0.011875449679791927, -0.014630256220698357, -0.031121868640184402, -0.02438376098871231, 0.014133894816040993, -0.0009717828361317515, -0.06388173252344131, 0.02846633456647396, -0.008711145259439945, 0.026331979781389236, -0.011925085447728634, -0.002115741139277816, -0.010764840990304947, -0.004945001564919949, 0.013848486356437206, -0.05405377224087715, -0.02201363444328308, 6.199671770446002e-05, -0.0025578129570931196, -0.029111603274941444, 0.034397855401039124, -0.006483722478151321, -0.038145385682582855, 0.0025795288383960724, -0.01691352017223835, 0.002367024077102542, 0.015412026084959507, -0.009703868068754673, -0.0014704710338264704, 0.03263577073812485, 0.03864174708724022, 0.012533129192888737, -0.01531275361776352, 0.028863422572612762, -0.03521684929728508, 0.010795863345265388, 0.042190730571746826, 0.015188663266599178, 0.025438528507947922, 0.0035644962918013334, -0.009027575142681599, -0.01018782053142786, -0.005438261199742556, 0.032387591898441315, -0.011565223336219788, -0.007333741523325443, -0.022584449499845505, 0.010727613233029842, -0.02321731112897396, 0.029409421607851982, -0.03561393916606903, -0.026406433433294296, 0.01954423449933529, -0.014890845865011215, 0.02252240478992462, 0.044746991246938705, -0.02180268056690693, -0.02150486409664154, -0.03613511845469475, -0.024197624996304512, -0.0244954414665699, -0.016640519723296165, 0.022956721484661102, -0.0001691700890660286, -0.03896437957882881, 0.04323308914899826, 0.03156859427690506, 0.031370047479867935, 0.014853619039058685, -0.01028088852763176, -0.014555801637470722, -0.01836537756025791, 0.019159555435180664, -0.018539102748036385, -0.03278467804193497, 0.020189505070447922, 0.002467847429215908, 0.05787575617432594, -0.003477632999420166, -0.007178628817200661, -0.03181677311658859, 0.013848486356437206, -0.015548525378108025, 0.007606740575283766, -0.015598161146044731, 0.002804442774504423, 0.06815043836832047, -0.012334584258496761, 0.010194025002419949, -0.013736805878579617, 0.03896437957882881, 0.006508540827780962, 0.015374798327684402, -0.013215625658631325, 0.01800551451742649, -0.03980819508433342, -0.007774262689054012, 0.01275649107992649, 0.019221600145101547, -0.024619532749056816, -0.015560934320092201, -0.011075066402554512, 0.030600689351558685, -0.005416545085608959, -0.011583837680518627, 0.023750899359583855, 0.003072788007557392, 0.0010943220695480704, 0.035018306225538254, 0.010367751121520996, 0.00920130219310522, 0.022063270211219788, -0.03675557300448418, -0.04531780630350113, -0.01618138514459133, 0.016317885369062424, 0.014530983753502369, -0.015225890092551708, 0.02125668339431286, -0.036830026656389236, -0.004547912627458572, -0.035489849746227264, -0.0028944083023816347, 0.017037609592080116, 0.00838230550289154, -0.0016736690886318684, 0.016851473599672318, -0.012992262840270996, -0.0024725007824599743, -0.011800995096564293, 0.016714975237846375, 0.014096667990088463, -0.020909229293465614, 0.008667713031172752, 0.010522864758968353, 0.0213931817561388, 0.011794790625572205, 0.0074640363454818726, 0.0186631940305233, -0.01148456521332264, 0.010045116767287254, -0.035489849746227264, 0.012588969431817532, 0.04067682847380638, -0.017149291932582855, -0.010237456299364567, 0.0061641898937523365, 0.018712829798460007, 0.0023902910761535168, -0.011894063092768192, -0.0022243200801312923, 0.005242818500846624, 0.004305936396121979, 0.02729988470673561, -0.023428265005350113, -0.030228417366743088, -0.020115051418542862, 0.01534998044371605, 0.0002497319073881954, -0.0001959270884981379, -0.017509153112769127, -0.026629796251654625, 0.01396016776561737, 0.030749596655368805, 0.00958598218858242, 0.03839356452226639, -0.012806127779185772, 0.0028432209510356188, 0.0005390176083892584, 0.007575717754662037, -0.04752661660313606, 0.024073533713817596, -0.00800382997840643, -0.024818075820803642, -0.03154377639293671, 0.009002757258713245, -0.003421792294830084, 0.03342995047569275, -0.009399846196174622, -0.034646034240722656, -0.0012409038608893752, 0.018898965790867805, -0.009492914192378521, -0.00756330881267786, -0.003704098053276539, 0.00664504012092948, 0.007097969762980938, 0.026480887085199356, -0.005115625914186239, -0.0005397931672632694, -0.005320375319570303, 0.008754576556384563, -0.0002497319073881954, 0.03164304792881012, 0.016243431717157364, 0.0047991955652832985, -0.041322097182273865, -0.0024554384872317314, 0.0081651471555233, 0.0014223860343918204, 0.0003175938327331096, -0.008264419622719288, 0.010895135812461376, -0.00025089524569921196, -0.027101339772343636, 0.02643125131726265, -0.04057755693793297, 0.013017081655561924, -0.01760842464864254, 0.030972959473729134, -0.0014223860343918204, 0.00550340861082077, 0.007457831874489784, 0.01982964389026165, 0.042960092425346375, -0.005869475193321705, 0.002846323186531663, 0.035961393266916275, 0.019780006259679794, 0.01461784727871418, 0.03007950820028782, -0.00266639213077724, 0.009890003129839897, 0.01534998044371605, -0.03951037675142288, -0.011546609923243523, -0.03630884736776352, -0.023713672533631325, 0.021492455154657364, -0.003874722169712186, 0.013004671782255173, 0.010256070643663406, 0.0024600918404757977, -0.011751359328627586, -0.04757625237107277, -0.026108616963028908, 0.009325392544269562, 0.006018383428454399, -0.010082343593239784, -0.0080720791593194, -0.00035307591315358877, -0.008661508560180664, 0.010814476758241653, 0.013649942353367805, 0.020288778468966484, -0.026232706382870674, 0.04859379306435585, -0.0034838374704122543, 0.0050287628546357155, 0.0038126769941300154, -0.002038184553384781, -0.028317425400018692, -0.03511757776141167, 0.013674760237336159, -0.028044426813721657, -0.023018766194581985, -0.030650325119495392, -0.010498046875, -0.002092474140226841, -0.012167061679065228, 0.021343545988202095, 0.015014936216175556, -0.0008127919863909483, -0.0035365759395062923, -0.006986288819462061, -0.012080199085175991, 0.034397855401039124, -0.03630884736776352, -0.011050248518586159, -0.019817234948277473, -0.01702520065009594, -0.01836537756025791, 0.01035534217953682, -0.015871159732341766, 0.020983682945370674, -0.03335549682378769, 0.054550133645534515, 0.01702520065009594, -0.019444962963461876, -0.04129727929830551, 0.011813404969871044, 0.029732055962085724, 0.018874147906899452, -0.04348127171397209, -0.0431586354970932, 0.02165377140045166, 0.015697432681918144, -0.011335656978189945, -0.0021855419036000967, -0.003375258529558778, -0.023266946896910667, 0.023664036765694618, -0.021591726690530777, -0.02398667111992836, -0.0007701359572820365, -0.043803904205560684, 0.008376101031899452, 0.01975518837571144, 0.018750056624412537, 0.00851260032504797, -0.01954423449933529, -0.049660973250865936, 0.046062350273132324, 0.020077824592590332, -0.00664504012092948, 0.010981999337673187, 0.014903254806995392, -0.021591726690530777, 0.026530524715781212, -0.03132041171193123, -0.003100708359852433, 0.000883368426002562, 0.025761162862181664, -0.006061815191060305, -0.01337694376707077, 0.006638835649937391, -0.0015712945023551583, -0.00794798880815506, -0.010833090171217918, -0.0451192632317543, -0.010677977465093136, -0.00574228260666132, 0.0068932208232581615, -0.014543392695486546, -0.029260512441396713, 0.010851703584194183, 0.008115511387586594, -0.026952430605888367, 0.006818766705691814, -0.03236277028918266, -0.04129727929830551, -0.0069986977614462376, 0.01126120239496231, 0.03841838240623474, 0.03740084171295166, -0.013649942353367805, 0.0020211220253258944, 0.0011966966558247805, -0.012440061196684837, -0.020326005294919014, -4.1080704249907285e-05, -0.01815442368388176, -0.016814246773719788, -0.028193335980176926, 0.004979126621037722, -0.01811719685792923, 0.002542301779612899, 0.025835618376731873, -0.03127077594399452, 0.014568210579454899, 0.017658062279224396, 0.02931014820933342, 0.00012777431402355433, 0.01500252727419138, -0.0008058119565248489, 0.004504480864852667, -0.008177556097507477, -0.009281960316002369, 0.0022848141379654408, 0.03998192027211189, 0.00028540787752717733, 0.0030371120665222406, -0.05216759815812111, -0.03757456690073013, -0.010504251345992088, 0.02227422408759594, 0.019345691427588463, 0.017583606764674187, -0.025388892740011215, -0.028242971748113632, 0.004532401449978352, 0.008779394440352917, 0.008655304089188576, 0.03459639847278595, 0.022584449499845505, 0.005807430017739534, -0.004501378629356623, -0.04730325564742088, -0.025066258385777473, -0.03913810849189758, 0.007060742937028408, 0.034199308604002, -0.020388050004839897, 0.04400245100259781, -0.029558328911662102, 0.001083464128896594, 0.0073895822279155254, -0.007135197054594755, 0.006477518007159233, -0.006055610720068216, -0.007712217513471842, -0.019457371905446053, -0.034571580588817596, -0.009592186659574509, -0.008394714444875717, -0.0018287820275872946, 0.00929437018930912, -0.015337571501731873, -0.01234078872948885, 0.022348677739501, 1.4372187251865398e-05, 0.012446265667676926, 0.014741937629878521, 0.0011013020994141698, 0.018985828384757042, -0.041024282574653625, -0.002574875485152006, -0.0009663538658060133, -0.0056119877845048904, 0.007172424346208572, -0.004808502271771431, 0.017360243946313858, 0.021058138459920883, -0.02541371062397957, 0.023750899359583855, 0.007203446701169014, -0.019234009087085724, 0.008742167614400387, 0.003066583536565304, 0.002748602069914341, -0.01135427039116621, 0.018129605799913406, -0.032610952854156494, -0.008965530432760715, -0.005211796145886183, -0.018563920632004738, 0.006458904594182968, -0.003220145357772708, -0.00017973716603592038, 0.020747913047671318, 0.0066946763545274734, -0.013004671782255173, -0.02868969738483429, -0.034025583416223526, 0.006887016352266073, -0.018601149320602417, -0.013116353191435337, -0.008276828564703465, -0.012992262840270996, -0.03236277028918266, -0.04298491030931473, -0.008183760568499565, 0.005943929310888052, -0.029583146795630455, -0.010876522399485111, -0.02133113704621792, 0.02581080049276352, 0.007557104341685772, -0.011664495803415775, 0.022944312542676926, 0.0031084641814231873, -0.00046805341844446957, -0.026480887085199356, -0.010944771580398083, -0.000793015118688345, 0.0030603790655732155, -0.024408578872680664, -0.019482189789414406, -0.04812224954366684, -0.005767100490629673, 0.004197357222437859, -0.009530141018331051, -0.015213481150567532, 0.015449252910912037, 0.007240673992782831, -0.008431941270828247, 0.011348065920174122, 0.01702520065009594, 0.022696131840348244, -0.012129834853112698, 0.03318176791071892, 0.020040597766637802, 0.010380160994827747, 0.0061828033067286015, -0.006607812829315662, 0.013749214820563793, 0.012570356018841267, 0.07083079218864441, 0.017707698047161102, 0.005304863676428795, -0.0010400324827060103, 0.0004951981827616692, -0.0357876680791378, -0.026877976953983307, 0.0161441583186388, 0.007315128110349178, -0.027548065409064293, 0.013054308481514454, 0.023539945483207703, -0.055642127990722656, -0.0039864033460617065, 0.005236614029854536, -0.014332439750432968, 0.01640474796295166, 0.025364074856042862, -0.0042283800430595875, 0.015498888678848743, -0.020934047177433968, -0.03958483412861824, -0.0061828033067286015, 0.003626541467383504, 0.020313596352934837, 0.0080720791593194, -0.0039864033460617065, 0.05559249222278595, 0.001687629264779389, -0.005801225546747446, -0.0322386808693409, -0.002287916373461485, 0.012167061679065228, -0.02690279483795166, -0.015064572915434837, -0.03072477877140045, 0.0020536959636956453, 0.018216468393802643, 0.010932362638413906, 0.009008961729705334, -0.010119570419192314, 0.03819502145051956, -0.000743378943298012, -0.00898414384573698, 0.009399846196174622, -0.00595013378188014, 0.018104786053299904, 0.030972959473729134, -0.00794798880815506, -0.03668111562728882, 0.02658016048371792, 0.013165989890694618, -0.04943760856986046, -0.02697724848985672, 0.014047031290829182, 0.023130446672439575, -0.012073994614183903, 0.013600305654108524, -0.03983301296830177, 0.03613511845469475, 0.02402389794588089, -0.009071007370948792, 0.0010159900411963463, 0.0388651080429554, 0.013314898125827312, -0.01644197665154934, -0.04695580154657364, 0.0025516084861010313, 0.03685484454035759, -0.02161654457449913, -0.005109421443194151, 0.023204902186989784, -0.006095940247178078, 0.03072477877140045, -0.0027346417773514986, 0.008642895147204399, 0.003027805360034108, -0.038691382855176926, 0.02970723807811737, 0.04859379306435585, -0.003378360765054822, -0.004094982519745827, -0.02705170400440693, -0.0373263880610466, -0.012892991304397583, -0.01091995369642973, 0.02092163823544979, 0.015263116918504238, 0.020040597766637802, -0.005813634488731623, -0.000541732064448297, -0.013550669886171818, -0.021939178928732872, 0.049189429730176926, -0.042885635048151016, 0.012446265667676926, -0.014940482564270496, 0.020760321989655495, -0.00059136823983863, -0.0020738604944199324, -0.027945155277848244, 0.035638757050037384, 0.014481347985565662, 0.026034163311123848, 0.0023747796658426523, -0.03568839281797409, -0.013786441646516323, -0.0006072673131711781, 0.017372652888298035, 0.011019226163625717, -0.03648257255554199, 0.003933665342628956, 0.004119800869375467, -0.00987759418785572, -0.007575717754662037, 0.024942167103290558, 0.020251549780368805], "id": 53}, {"title": "Fletcher, Ohio", "text": "Fletcher is a village in Miami County, Ohio, United States. The population was 473 at the 2010 census. It is part of the Dayton Metropolitan Statistical Area.", "vector": [-0.013839196413755417, 0.03106866590678692, -0.011130952276289463, 0.0069328416138887405, -0.0027645283844321966, 0.023427309468388557, 0.00399946141988039, -0.012918790802359581, -0.0694476068019867, -0.005926354322582483, -0.027082446962594986, 0.02484433725476265, -0.03151893615722656, 0.014024602249264717, -0.027572447434067726, 0.0046980432234704494, -0.06748760491609573, 0.00636669248342514, -0.05188705399632454, -0.01826244220137596, -0.02399677038192749, 0.0037809479981660843, 0.00016916182357817888, -0.04216650873422623, 0.02728109620511532, -0.001883852295577526, 0.018169740214943886, -0.009396086446940899, -0.018606767058372498, -0.019560281187295914, 0.007932706736028194, 0.024288121610879898, 0.01258108764886856, -0.01873919926583767, 0.05331732705235481, 0.02638055384159088, -0.013316088356077671, -0.011223654262721539, 0.052469756454229355, 0.02436758019030094, -0.033611368387937546, -0.030989205464720726, -0.0013830919051542878, 0.030803799629211426, 0.022434065118432045, -0.009031896479427814, 0.020434334874153137, -0.012044736184179783, -0.03567731752991676, -0.03414110094308853, -0.02802271768450737, -0.005853516515344381, -0.01997082121670246, 0.0038968264125287533, 0.011746763251721859, -1.9295828678878024e-05, 0.06076003238558769, 0.08968329429626465, -0.06038922071456909, -0.021480552852153778, -0.06219030171632767, -0.005078786518424749, 0.01899082027375698, -0.011336222290992737, 0.026777852326631546, 0.03673677518963814, 0.007840003818273544, 0.013441898860037327, -0.019136495888233185, -0.0016852036351338029, -0.017295684665441513, 0.029082177206873894, -0.017547305673360825, 0.012389061041176319, 0.0031965894158929586, 0.019878119230270386, -0.0071248686872422695, -0.03845839947462082, 0.016209738329052925, -0.05376759544014931, 0.01114419475197792, -0.017851902171969414, -0.028314068913459778, -0.014302710071206093, 0.026645420119166374, -0.04047137126326561, -0.03456488251686096, -0.05196651443839073, -0.04182218387722969, 0.011150816455483437, -0.03218109905719757, 0.05758165195584297, -0.012673790566623211, -0.013309466652572155, 0.010693924501538277, -0.008442572318017483, 0.04632489010691643, 0.0015875346725806594, 0.0036286506801843643, -0.012203655205667019, -0.020977308973670006, -0.012150682508945465, -0.04547732323408127, 0.038988128304481506, 0.015295954421162605, 0.004400069825351238, -0.018302172422409058, 0.01613027974963188, 0.07336760312318802, -0.027254609391093254, 0.007462571375072002, 0.004926489200443029, -0.0011811323929578066, 0.03136001527309418, 0.01783865876495838, -0.020315146073698997, -0.029638394713401794, -0.05090705305337906, 0.051993001252412796, -0.007502301130443811, 8.923674613470212e-05, -0.006237570662051439, 0.025546230375766754, 0.02283136360347271, 0.006237570662051439, -0.03437947854399681, 0.0023440553341060877, 0.013839196413755417, 0.002549325581640005, 0.01624946855008602, -0.03247245028614998, 0.002991319168359041, 0.009674194268882275, 0.02344055287539959, 0.0002632096002344042, 0.018222711980342865, 0.05684002861380577, -0.02868488058447838, 0.006277300417423248, 0.008627977222204208, -0.03792866691946983, 0.043014075607061386, 0.0028224678244441748, 0.026327582076191902, 0.004327232018113136, 0.012018249370157719, -0.012925412505865097, -0.019004063680768013, 0.027055960148572922, -0.01586541347205639, -0.04939732328057289, -0.0029234474059194326, 0.028949744999408722, -0.029956232756376266, -0.030247583985328674, -0.03546542301774025, 0.020791903138160706, 0.02308298461139202, 0.021507037803530693, -0.011402438394725323, 0.010581357404589653, 0.017322171479463577, 0.05779354274272919, -0.01504433248192072, -0.02521514892578125, -0.006406422238796949, -0.027519473806023598, -0.0014037844957783818, -0.010958789847791195, 0.015507846139371395, 0.04407353699207306, -0.05194002762436867, -0.013031357899308205, 0.01960000954568386, -0.02887028641998768, 0.0015420109266415238, 0.06250814348459244, -0.022261904552578926, 0.03469731658697128, 0.005625070538371801, -0.0003838473348878324, 0.0074758147820830345, 0.03430001810193062, -0.029585421085357666, -0.011031627655029297, 0.014726494438946247, -0.0035591234918683767, -0.011720276437699795, 0.046245429664850235, -0.03607461228966713, 0.017626766115427017, 0.0061845979653298855, 0.027545960620045662, 0.014660278335213661, 0.0067639900371432304, -0.01513703539967537, -0.0443384014070034, -0.011720276437699795, 0.03493569418787956, 0.07983031123876572, -0.02081838995218277, 0.0065421657636761665, -0.029082177206873894, 0.02533433772623539, 0.008588247932493687, -0.013574331067502499, 0.00415175873786211, -0.02063298411667347, 0.02093757875263691, 0.05880003049969673, 0.03308163955807686, -0.06436219811439514, 0.0030922989826649427, 0.05315840616822243, 0.0333465039730072, 0.02533433772623539, 0.01047541107982397, -0.011322978883981705, 0.004866894334554672, 0.05019192025065422, -0.016752712428569794, -0.016196494922041893, -0.0807308554649353, -0.0022198997903615236, 0.0050920299254357815, 0.00651898980140686, 0.02736055478453636, -0.014752981252968311, -0.0016703049186617136, 0.03864380344748497, -0.016103792935609818, 0.010177438147366047, -0.018725955858826637, 0.01093230303376913, -0.036101099103689194, 0.029294069856405258, 0.02900271862745285, 0.0030906435567885637, -0.012918790802359581, 0.036789748817682266, -0.0032810152042657137, -0.0008649497758597136, 0.004688110668212175, -0.024764878675341606, 0.014766223728656769, 0.025122445076704025, -0.03406164050102234, 0.016408387571573257, -0.048867594450712204, -0.02357298508286476, 0.03747839853167534, -0.013878926634788513, 0.04854975640773773, -0.0018722645472735167, 0.03027407079935074, 0.02095082215964794, -0.023467039689421654, 0.00263375137001276, -0.00048296479508280754, -0.0405508317053318, 0.0038935155607759953, -0.04592759162187576, 0.03957083076238632, 0.016871901229023933, 0.003065812401473522, -0.01598460227251053, -0.01303797960281372, -0.011918925680220127, -0.006273990031331778, -0.05848219245672226, 0.012885682284832, -0.013157169334590435, 0.017481090500950813, -0.004714597016572952, 0.039464887231588364, -0.022500282153487206, 0.024248391389846802, -0.02704271674156189, 0.03631299361586571, -0.05472110956907272, 0.018156496807932854, 0.023030012845993042, -0.01562703587114811, -0.01434244029223919, -0.018328659236431122, -0.017414873465895653, 0.018116766586899757, -0.021295147016644478, 0.02325514703989029, 0.01628919690847397, -0.03644542396068573, -0.02783731184899807, 0.026645420119166374, -0.023308120667934418, -0.0005255914875306189, -0.006088584195822477, 0.02411595918238163, 0.01691163145005703, 0.008806761354207993, -0.01569325104355812, -0.024592716246843338, -0.02137460559606552, -0.024089472368359566, -0.03779623657464981, -0.010753518901765347, -0.042828671634197235, -0.010965411551296711, -0.050271376967430115, -0.02759893424808979, -0.027731366455554962, -0.019758928567171097, 0.021904336288571358, -0.03257839381694794, -0.0017431428423151374, 0.038855697959661484, -0.03101569227874279, 0.05514489486813545, 0.0021106430795043707, 0.048814620822668076, -0.05774057283997536, -0.01831541582942009, 0.024764878675341606, -0.011561357416212559, -0.032022178173065186, 0.04349083453416824, -0.015110548585653305, 0.015613792464137077, 0.023056497797369957, -0.0417427234351635, -0.01468676421791315, -0.01997082121670246, 0.022354606539011, 0.02058001048862934, -0.03284326195716858, 0.04645732045173645, 0.019705956801772118, -0.02448676899075508, 0.02362595871090889, 0.026089202612638474, 0.023970283567905426, -0.007641355507075787, 0.02167920023202896, 0.018288929015398026, 0.038008127361536026, 0.022632714360952377, -0.007138112094253302, 0.05832327529788017, -0.010859465226531029, 0.03008866496384144, -0.014262980781495571, 0.0004966218839399517, 0.033611368387937546, 0.012124195694923401, -0.006717638578265905, 0.020169470459222794, -0.012534736655652523, -0.02863190695643425, 0.016752712428569794, 0.04187515750527382, -0.02453974261879921, -0.013653790578246117, 0.0019550349097698927, 0.029294069856405258, 0.01770622469484806, 0.008680950850248337, 0.022924065589904785, 0.013296223245561123, -0.022818120196461678, 0.02924109622836113, 0.004366961773484945, -0.0020742241758853197, 0.014554332010447979, -0.012746628373861313, -0.004694732371717691, -0.03816704824566841, 0.00441331323236227, -0.02638055384159088, -0.0293735284358263, 0.014752981252968311, -0.006313719786703587, 0.044417861849069595, 0.030115151777863503, 0.046987053006887436, -0.06457408517599106, -0.03247245028614998, 0.03864380344748497, -0.00888622086495161, -0.02455298602581024, -0.06536868214607239, 0.0021354740019887686, -0.014210007153451443, 0.00879351794719696, 0.04168975353240967, 0.02881731279194355, -0.006704395636916161, -0.021891092881560326, -0.06838814169168472, 0.00572439469397068, -0.01508406177163124, -0.0027032785583287477, 0.0061481790617108345, -0.010859465226531029, -0.03284326195716858, -0.021771904081106186, 0.038431912660598755, 0.011680547147989273, -0.024208661168813705, -0.03456488251686096, -0.01697784662246704, 0.03920001909136772, -0.0504302978515625, -0.008190950378775597, 0.015574062243103981, 0.009614599868655205, 0.015799198299646378, -0.02265920117497444, 0.004916556645184755, -0.002562568988651037, -0.08888869732618332, -0.019560281187295914, -0.010740276426076889, -0.026711635291576385, -0.02692352794110775, 0.026751365512609482, 0.021771904081106186, 0.044603265821933746, -0.02136136218905449, 0.04388813301920891, -0.0356508307158947, -0.009475545957684517, -0.012839331291615963, 0.015958117321133614, -0.02722812257707119, 0.02374514751136303, 0.02497676946222782, 0.041981104761362076, -0.016103792935609818, -0.00448946189135313, -0.006588517222553492, 0.022619470953941345, -0.00018499165889807045, -0.04815245792269707, -0.03591569513082504, -0.014951629564166069, -0.009541762061417103, -0.0070851389318704605, -0.025042986497282982, -0.016898388043045998, 0.0383259654045105, -0.0033521978184580803, -0.0024946972262114286, 0.03286974877119064, -0.062243275344371796, 0.04277569800615311, -0.02185136266052723, 0.0187524426728487, 0.06076003238558769, 0.009084870107471943, -0.006684530526399612, -0.03729299455881119, 0.008760410360991955, -0.03308163955807686, 0.015216494910418987, -0.020301902666687965, -0.012885682284832, -0.03157190978527069, 0.03994164243340492, -0.017679739743471146, -0.027440015226602554, -0.014766223728656769, -0.05379408225417137, 0.013011493720114231, -0.05604543536901474, 0.026486501097679138, 0.024314606562256813, 0.019573524594306946, 0.023493526503443718, 0.007919463329017162, 0.03226055949926376, 0.014951629564166069, 0.017255954444408417, -0.020897848531603813, 0.1069524884223938, -0.007654598448425531, 0.02002379484474659, -0.01428946666419506, -0.03636596351861954, 0.03027407079935074, 0.021202443167567253, -0.019255686551332474, 0.02826109528541565, -0.03533299267292023, -0.0075552742928266525, 0.021957308053970337, -0.018169740214943886, 0.04926488921046257, -0.03045947477221489, -0.0015055920230224729, 0.03292271867394447, -0.022579742595553398, 0.015547575429081917, 0.017136765643954277, 0.03856434300541878, -0.027002986520528793, -0.014143791049718857, 0.05037732422351837, -0.04494759067893028, -0.02337433584034443, -0.022261904552578926, -0.06266705691814423, 0.004989394452422857, 0.00014070954057388008, -0.006161422003060579, -0.008224057964980602, 0.028605420142412186, -0.021149471402168274, 0.04717245697975159, -0.013825953006744385, 0.0059594628401100636, 0.0017100346740335226, -0.006164732854813337, 0.01862001046538353, 0.04462975263595581, 0.0070454091764986515, 0.004876826889812946, -0.0017630077200010419, 0.0067010847851634026, 0.0051152054220438, -0.015852170065045357, -0.011104465462267399, -0.015560818836092949, -0.010707167908549309, 0.03655137121677399, 0.034882720559835434, 0.032631367444992065, 0.03864380344748497, -0.013508114963769913, 0.0027661838103085756, 0.015905143693089485, 0.0054959487169981, 0.0026618933770805597, -0.06881193071603775, -0.0010139363585039973, 0.004611962009221315, -0.0004771708627231419, 0.0016222981503233314, 0.013309466652572155, -0.06128976121544838, 0.04410002380609512, -0.010660816915333271, 0.07077193260192871, 0.024460284039378166, -0.05477408319711685, -0.021904336288571358, -0.0037147316616028547, 0.004751015920192003, -0.03228704258799553, 0.009290140122175217, -0.022195687517523766, 0.0010139363585039973, -0.016395144164562225, -0.011256762780249119, -0.002051048446446657, -0.013441898860037327, -0.008707436732947826, 0.021586498245596886, -0.03644542396068573, -0.013759736903011799, -0.0013028047978878021, 0.03591569513082504, 0.04492110386490822, -0.050085972994565964, 0.01757379248738289, -0.014157034456729889, 0.022871093824505806, 0.006406422238796949, -0.002003041561692953, -0.016011089086532593, -0.016951359808444977, 0.004515948239713907, -0.013508114963769913, 0.02863190695643425, -0.0012779736425727606, 0.00925040990114212, 0.0069328416138887405, 0.04653678089380264, -0.03255191072821617, 0.014183521270751953, -0.003956420812755823, 0.010488654486835003, -0.02130839042365551, 0.0013268081238493323, -0.025811094790697098, 0.00619784090667963, -0.008111490868031979, 0.018792172893881798, -0.035571370273828506, 0.07050706446170807, -0.006244192365556955, -0.0072374362498521805, 0.002635406795889139, 0.035200558602809906, -0.022182444110512733, 0.004628515802323818, 0.0500594861805439, -0.001296183094382286, -0.011197168380022049, 0.01403784565627575, -0.013031357899308205, 0.03252542391419411, 0.012554600834846497, -0.026844067499041557, 0.06711678951978683, 0.021811632439494133, 0.021838119253516197, 0.0022645958233624697, -0.0333465039730072, 0.04749029502272606, 0.026301095262169838, -0.026910284534096718, 0.012753250077366829, -0.03088326007127762, -0.017732711508870125, 0.06653408706188202, 0.004217975307255983, 0.04934434965252876, 0.044179484248161316, -0.0070917606353759766, -0.022818120196461678, -0.010587978176772594, -0.0059495302848517895, 0.04939732328057289, -0.018024062737822533, -0.008310139179229736, -0.014541088603436947, -0.02044757828116417, 0.03694866970181465, 0.00016129865252878517, 0.00842932891100645, -0.019931090995669365, 0.030432989820837975, 0.00036874174838885665, 0.0024119268637150526, -0.01753406412899494, -0.002272872719913721, 0.0014675176935270429, 0.010462167672812939, 0.0005342823569662869, 0.025599202141165733, 0.058588139712810516, -0.006866625044494867, -0.04195461794734001, 0.02289757877588272, 0.01654081977903843, 0.01880541630089283, -0.020235685631632805, -0.028367042541503906, -0.018765686079859734, -0.004456353839486837, -0.017732711508870125, -0.03199569135904312, -0.018527306616306305, 0.025930283591151237, -0.0016032609855756164, -0.022871093824505806, -0.0047377729788422585, -0.037319477647542953, 0.00036067163455300033, 0.033002179116010666, 0.0019169604638591409, -0.026605689898133278, 0.02863190695643425, -0.0027214880101382732, -0.02924109622836113, 0.00983311329036951, 0.013210142031311989, 2.8141907023382373e-05, -0.012985006906092167, -0.02966487966477871, 0.031095150858163834, 0.03271082788705826, 0.004178245551884174, -0.019984064623713493, -0.021321633830666542, 0.03133352845907211, -0.01777244172990322, 0.0073632472194731236, 0.015507846139371395, 0.012673790566623211, 0.011111087165772915, -0.03567731752991676, -0.0027827380690723658, 0.038617316633462906, -0.049238406121730804, -0.07008328288793564, 0.051675163209438324, 0.018037306144833565, -0.028843799605965614, -0.0020278727170079947, 0.013150547631084919, 0.00596939492970705, 0.034458938986063004, -0.0018242577789351344, 0.0049761515110731125, -0.0061084493063390255, -0.014726494438946247, 0.0057939221151173115, -0.007945950143039227, -0.03596866875886917, -0.040497858077287674, -0.003645204706117511, 0.03811407461762428, 0.000960963370744139, -0.04518596827983856, -0.002130507957190275, -0.017692983150482178, 0.010733654722571373, 0.01508406177163124, -0.02088460512459278, -0.015494602732360363, 0.013276358135044575, 0.011779870837926865, 0.0022596295457333326, -0.024089472368359566, -0.017692983150482178, 0.011428925208747387, -0.037637315690517426, -0.009482166729867458, -0.005850205663591623, 0.02430136501789093, 0.0217983890324831, -0.015269467607140541, -0.04372921213507652, -0.021891092881560326, -0.036418937146663666, -0.0005860138335265219, 0.0017944604624062777, -0.0039001372642815113, 0.028287582099437714, 0.013653790578246117, 0.010799870826303959, -0.022619470953941345, 0.023215416818857193, -0.004986083600670099, -0.015269467607140541, 0.005085408221930265, -0.03377028927206993, -0.01818298175930977, 0.013614061288535595, 0.035995155572891235, -0.023414066061377525, -0.012912169098854065, -0.06113084405660629, -0.04725191742181778, -0.013031357899308205, 0.012329465709626675, 0.001921926741488278, 0.018037306144833565, 0.047092996537685394, 0.04155731946229935, 0.013018115423619747, 0.003966353368014097, 0.03776974976062775, 0.004072299227118492, 0.007462571375072002, -0.04457677900791168, -0.01606406271457672, -0.006015746388584375, -0.008753788657486439, -0.0023506770376116037, -0.018540550023317337, -0.01826244220137596, 0.02624812163412571, -0.017414873465895653, 0.03241947665810585, 0.00014888310397509485, 0.004257705062627792, -0.006624936126172543, -0.00949541013687849, -0.019864875823259354, -0.037266507744789124, -0.005029124207794666, -0.01746784709393978, -0.004568921402096748, -0.036604344844818115, 0.0045027052983641624, 0.011859330348670483, 0.022023525089025497, -0.0280756913125515, 0.05201948806643486, -0.014368926174938679, 0.009932437911629677, -0.04494759067893028, -0.03718704730272293, 0.04076272249221802, -0.028525961562991142, 0.0010503552621230483, 0.0022232106421142817, 0.03896164149045944, -0.0065785846672952175, 0.04854975640773773, -0.0037081099580973387, 0.00934311281889677, 0.031174611300230026, -0.004830475430935621, -0.04280218482017517, -0.005135070066899061, -0.006283922120928764, -0.006085273344069719, 0.056310299783945084, 0.013720007613301277, -0.01770622469484806, 0.04976813495159149, 0.007654598448425531, -0.022301632910966873, -0.010018519125878811, 0.01594487391412258, -0.01636865735054016, 0.008382976986467838, -0.018937848508358, 0.006681219674646854, 0.015110548585653305, 0.051251377910375595, -0.012044736184179783, -0.029161637648940086, -0.015852170065045357, -0.014210007153451443, -0.056257326155900955, -0.04621894285082817, -0.04529191553592682, 0.019017307087779045, 0.0037345965392887592, -0.027916772291064262, -0.06118381768465042, 0.0022679066751152277, -0.00684013869613409, -0.03882921114563942, 0.004469596780836582, -0.019864875823259354, 0.024036498740315437, 0.03294920548796654, 0.024645688012242317, 0.004188178107142448, 0.02857893332839012, -0.006800408940762281, 0.010025140829384327, 0.033664342015981674, -0.030327042564749718, -0.003146927338093519, -0.027572447434067726, 0.03472380340099335, 0.02631433866918087, 0.051251377910375595, -0.014130547642707825, 0.003883583238348365, -0.021096497774124146, 0.0006787165766581893, 0.004529191646724939, -0.03986218199133873, 0.025056229904294014, -0.02589055337011814, 0.015295954421162605, 0.001083463430404663, 0.024645688012242317, 0.01434244029223919, -0.025374067947268486, 0.017692983150482178, 0.012130817398428917, -0.011435546912252903, -0.018792172893881798, -0.0008930916665121913, -0.04632489010691643, -0.012190411798655987, 0.0052045974880456924, -0.021705687046051025, 0.015031089074909687, -0.004112028982490301, 0.035015154629945755, 0.008965680375695229, 0.030327042564749718, -0.013547845184803009, -0.025983257219195366, -0.0057111517526209354, -0.016699738800525665, 0.036233533173799515, 0.0010735309915617108, 0.02076541632413864, -0.019454333931207657, -0.017865143716335297, -0.03893515467643738, -0.014792710542678833, 0.035995155572891235, -0.0068467603996396065, 0.028181636705994606, 0.03194272145628929, 0.048125971108675, 0.006128313951194286, 0.025506500154733658, 0.00432061031460762, 0.008224057964980602, 0.014647034928202629, -0.013667033985257149, 0.014223250560462475, -0.02557271532714367, 0.045212455093860626, 0.05673408508300781, 0.008747166953980923, 0.007945950143039227, -0.043305426836013794, 0.043305426836013794, 0.019944334402680397, -0.000431233347626403, 0.050695162266492844, -0.02125541679561138, -0.03355839475989342, 0.027625419199466705, 0.0035061505623161793, -0.0056416247971355915, -0.013289601542055607, -0.03236650303006172, 0.0028489541728049517, 0.010064870119094849, -0.01818298175930977, -0.014170277863740921, 0.0065421657636761665, 0.001080152578651905, 0.01586541347205639, 0.001532906200736761, 0.0026883797254413366, -0.0016239535761997104, -0.002006352413445711, -0.015560818836092949, -0.005552232731133699, 0.007018922828137875, 0.01880541630089283, -0.018421361222863197, 0.008038653060793877, -0.03814056143164635, -0.02460595965385437, -0.0064196656458079815, 0.009396086446940899, 0.0005102789727970958, 0.018394874408841133, -0.029029205441474915, -0.039041101932525635, 0.0074758147820830345, 0.0070785172283649445, -0.03882921114563942, 0.0181962251663208, 0.009515275247395039, -0.0455302931368351, -0.020368119701743126, -0.0340881273150444, 0.0038935155607759953, 0.020606497302651405, -0.014488115906715393, -0.02643352746963501, 0.013461763970553875, 0.04298758879303932, -0.0033654409926384687, 0.015375413931906223, 0.013746493496000767, 0.0036750019062310457, 0.0032528734300285578, -0.03766380250453949, 0.007210949901491404, -0.018540550023317337, -0.05519786849617958, -0.00882662646472454, -0.014461629092693329, -0.06727571040391922, -0.04354380816221237, 0.058270301669836044, 0.011415681801736355, -0.036604344844818115, 0.0011488519376143813, 0.03808758780360222, 0.0005839445511810482, 0.009303383529186249, 0.030856773257255554, -0.013388926163315773, 0.010256897658109665, -0.0047013540752232075, 0.05331732705235481, 0.01995757780969143, 0.02156001143157482, -0.01513703539967537, -0.011700411327183247, 0.0068931118585169315, 0.012958520092070103, -0.0053270976059138775, 0.0006327790324576199, -0.0050920299254357815, -0.016156764701008797, 0.0071645984426140785, -0.01007811352610588, -0.0401800200343132, -0.03424704447388649, 0.03212812542915344, 0.008687572553753853, -0.016818927600979805, 0.02839352935552597, -0.07029516994953156, -0.04579515755176544, 0.0027645283844321966, 0.02117595635354519, -0.007773787714540958, -0.015031089074909687, 0.00278604868799448, 0.027572447434067726, 0.0017398319905623794, 0.0007387250661849976, -0.00020040762319695204, 0.008389598689973354, -0.0037511505652219057, 0.012859196402132511, -0.016156764701008797, -0.013084331527352333, 0.009720545262098312, 0.012865817174315453, 0.012706899084150791, 0.024407310411334038, -0.023705417290329933, 0.006873246748000383, -0.02044757828116417, -0.0002859714441001415, -0.02075217291712761, 0.0029764205683022738, 0.013501493260264397, 0.0004411657864693552, -0.019268929958343506, 0.0007234125514514744, 0.023003526031970978, 0.006280611269176006, -0.0055588544346392155, 0.030432989820837975, 0.02655271627008915, 0.007230814546346664, 0.015958117321133614, -0.01850081980228424, -0.0022215552162379026, 0.005744259804487228, -0.013667033985257149, -0.013137304224073887, -0.011051492765545845, -0.03437947854399681, 0.008157841861248016, 0.006826895289123058, 0.007892977446317673, -0.002395372837781906, 0.002560913562774658, 0.03332001715898514, -0.03509461134672165, 0.014845683239400387, -0.03859082981944084, -0.01983838900923729, 0.011137573048472404, 0.030194610357284546, 0.015825683251023293, 0.0068533821031451225, -0.0027314203325659037, 0.00870081502944231, -0.03755785897374153, -0.007257301360368729, 0.0046980432234704494, -0.0062607466243207455, -0.014315953478217125, 0.04057731851935387, 0.025480013340711594, -0.03339947760105133, -0.022791633382439613, -0.002784393262118101, -0.0070387874729931355, 0.016222981736063957, -0.0068931118585169315, -0.0013433621497824788, -0.021321633830666542, -0.014607304707169533, 0.004370272625237703, -0.02465893141925335, -0.011925546452403069, 0.01924244314432144, 0.0011654060799628496, -0.011005140841007233, 0.00487020518630743, 0.02069919928908348, -0.02325514703989029, 0.024208661168813705, 0.014832439832389355, 0.013998115435242653, -0.0021536836866289377, -0.009382843039929867, -0.0035525017883628607, 0.06197841092944145, -0.06383246928453445, -0.011773249134421349, -0.0060720304027199745, 0.03316110000014305, 0.003105542156845331, -0.02313595823943615, 0.019891362637281418, -0.018898118287324905, -0.0016115379985421896, 0.015838926658034325, 0.016514332965016365, 0.0045821648091077805, 0.017666496336460114, -0.01389216911047697, -0.03302866593003273, -0.042087048292160034, 0.02472514845430851, 0.0200900100171566, -0.038061100989580154, -0.008343247696757317, 0.028367042541503906, -0.03249893710017204, -0.021573254838585854, -0.005545611027628183, -0.002597332466393709, -0.0009692403837107122, -0.025241635739803314, -0.033982180058956146, -0.04566272720694542, -0.027492986992001534, -0.0057111517526209354, 0.010263519361615181, -0.005025813356041908, 0.06086597964167595, 0.037266507744789124, 0.009753653779625893, -0.053582191467285156, -0.012144060805439949, 0.029585421085357666, 0.024089472368359566, -0.0037180425133556128, 0.0008955748053267598, 0.0322340726852417, -0.04815245792269707, 0.013733250088989735, -0.026592446491122246, 0.0032015556935220957, 0.013402169570326805, -0.0012730074813589454, 0.022129470482468605, 0.044788673520088196, -0.0024897309485822916, -0.023718660697340965, 0.011998385190963745, 0.017600279301404953, 0.038246504962444305, 0.0371340736746788, -0.011309735476970673, -0.017971090972423553, -0.032631367444992065, 0.006512368097901344, -0.003021116368472576, -0.009998654015362263, 0.007343382108956575, -0.043994076550006866, -0.04073623940348625, -0.0075950040481984615, -0.0046218945644795895, 0.01114419475197792, 0.03649839758872986, -0.006793787237256765, -0.027307581156492233, 0.018024062737822533, 0.0003168033726979047, 0.002789359539747238, 0.022434065118432045, 0.020778659731149673, -0.017110278829932213, 0.019335145130753517, -0.0065752738155424595, 0.004784123972058296, 0.015958117321133614, 0.004323921166360378, 0.015653522685170174, -0.011130952276289463, 0.015163521282374859, -0.031174611300230026, -0.0013657101662829518, -0.02697650156915188, 0.0006629902054555714, 0.021838119253516197, -0.011587844230234623, 0.0015395277878269553, 0.033664342015981674, -0.016832171007990837, -0.054058946669101715, 0.036180559545755386, -0.009237167425453663, 0.028923258185386658, -0.006525611504912376, -0.007535409182310104, 0.013759736903011799, -0.026658663526177406, -0.020301902666687965, -0.026897041127085686, 0.006866625044494867, -0.03535947948694229, -0.05996543541550636, 0.003532636910676956, 0.015772711485624313, 0.025016499683260918, 0.0068864901550114155, -0.0011703722411766648, -0.006760679185390472, -0.033902719616889954, -0.019573524594306946, -0.006800408940762281, -0.004363650921732187, 0.022725418210029602, -0.007919463329017162, -0.0060687195509672165, -0.015706494450569153, -0.013117439113557339, 0.01239568181335926, 0.060707058757543564, 0.027307581156492233, 0.023771634325385094, 0.018725955858826637, -0.0018606766825541854, 0.009859600104391575, -0.012561222538352013, -0.009720545262098312, -0.03215461224317551, -0.01154149230569601, -0.00699243601411581, -0.024288121610879898, -0.01978541538119316, 0.011111087165772915, -0.021758660674095154, 0.029505962505936623, 0.030936231836676598, -0.0013284635497257113, 0.022566499188542366, 0.01831541582942009, 0.03999461606144905, 0.04410002380609512, -0.010429059155285358, 0.030936231836676598, -0.0008682605694048107, 0.008316760882735252, 0.03350542485713959, 0.01593163050711155, 0.009548383764922619, -0.01844784803688526, -0.025188662111759186, 0.02607595920562744, -0.0031634813640266657, 0.017017576843500137, 0.004585475195199251, 0.023175688460469246, 0.012038114480674267, 0.043305426836013794, 0.010111221112310886, 0.04420597106218338, -0.009720545262098312, 0.012746628373861313, -0.0051714894361793995, 0.028367042541503906, 0.03279028832912445, -0.0027396974619477987, 0.014143791049718857, 0.01916298270225525, -0.029876772314310074, 0.00769432820379734, 0.024526499211788177, 0.007177841849625111, 0.0027678392361849546, 0.041848670691251755, -0.021599741652607918, -0.00894581526517868, 0.009766897186636925, 0.022751903161406517, 0.026605689898133278, -0.017732711508870125, 0.015918387100100517, 0.020169470459222794, -0.005896557122468948, -0.004006083123385906, 0.01715000905096531, 0.031704340130090714, 0.03663083165884018, -0.006677908822894096, -0.00873392354696989, -0.014196764677762985, 0.020791903138160706, 0.0240629855543375, 0.0001375021820422262, 0.015454873442649841, 0.014673521742224693, 0.002244730945676565, 0.0021917580161243677, -0.008382976986467838, 0.0383259654045105, 0.016222981736063957, -0.019268929958343506, 0.005373448599129915, 0.005929665174335241, -0.02026217244565487, 0.01758703589439392, -0.024288121610879898, 0.01605081930756569, 0.015097305178642273, -0.029347043484449387, 0.009660950861871243, -0.012726763263344765, 0.03933245316147804, -0.024579472839832306, -0.010952168144285679, 0.0017580414423719049, -0.009581491351127625, -0.022937308996915817, 0.012667168863117695, 0.0012117574224248528, -0.007932706736028194, -0.004479529336094856, -0.0031287178862839937, 0.0061117601580917835, -6.414699601009488e-05, -0.029876772314310074, -0.0033108126372098923, -0.023533254861831665, -0.012700277380645275, 0.010256897658109665, 0.014885413460433483, -0.0085220318287611, 0.026168663054704666, -0.00907162670046091, -0.014249737374484539, -0.02876433916389942, 0.001275490503758192, -0.002163616009056568, 0.02271217480301857, -0.004648380912840366, 0.0058667599223554134, 0.019917847588658333, -0.004145137500017881, -0.01880541630089283, -0.009078248403966427, -9.384084114572033e-05, -0.03374380245804787, -0.004459664691239595, -0.007985680364072323, 0.006760679185390472, -0.045768674463033676, 0.012144060805439949, 0.010508518666028976, -0.030538935214281082, -0.006356759928166866, -0.024804607033729553, 0.05268165096640587, -0.018103523179888725, 0.0007896287715993822, -0.015613792464137077, -0.02118919976055622, -0.00827703159302473, 0.030141636729240417, 0.0024864203296601772, -0.012018249370157719, -0.02612893283367157, 0.005568786524236202, -0.013825953006744385, 0.009442437440156937, -0.008508788421750069, -0.014157034456729889, 0.011223654262721539, 0.042219482362270355, -0.03167785331606865, 0.007760544773191214, -0.016077306121587753, -0.0022695621009916067, -0.0076612201519310474, 0.0007573483744636178, 0.002550981007516384, -0.019984064623713493, -0.010945546440780163, -0.02386433631181717, 0.0045490562915802, 0.014474872499704361, 0.004247772507369518, 0.0072043281979858875, 0.033055152744054794, 0.0034266910515725613, 0.02167920023202896, 0.016620278358459473, 0.02015622705221176, -0.03271082788705826, -0.02521514892578125, -0.005135070066899061, -0.007760544773191214, 0.027625419199466705, -0.02998271770775318, -0.002749629784375429, 0.009402708150446415, -0.01504433248192072, 0.0037047993391752243, -0.02857893332839012, -0.015415143221616745, -0.015653522685170174, -0.07696977257728577, -0.03162488341331482, -0.027757853269577026, 0.010852843523025513, -0.008859734050929546, 0.012892303988337517, -0.004482840187847614, 0.027122177183628082, -0.017613522708415985, -0.013302844949066639, 0.007230814546346664, 0.008157841861248016, -0.013382304459810257, 0.014541088603436947, -0.014713251031935215, 0.014872170053422451, -0.020050281658768654, 0.008859734050929546, 0.01148189790546894, -0.01740163005888462, 0.038802724331617355, 0.007502301130443811, 0.03774326294660568, -0.048125971108675, 0.029691366478800774, 0.004595407750457525, -0.012137439101934433, -0.010011897422373295, 0.0293735284358263, 0.021043524146080017, 0.020315146073698997, -0.030300555750727654, 0.03130704537034035, 0.006522300653159618, -0.0014584129676222801, 0.0004552367317955941, -0.055091921240091324, -0.010190680623054504, 0.03591569513082504, -0.023096228018403053, 0.0046583134680986404, 0.0014410311123356223, -0.006717638578265905, 0.0033902721479535103, 0.004979461897164583, 0.012064601294696331, -0.04598056524991989, -0.02887028641998768, 0.020169470459222794, -0.013799467124044895, -0.02868488058447838, 0.008462436497211456, -0.0008972302312031388, 0.029876772314310074, -0.03430001810193062, 0.029347043484449387, 0.04592759162187576, 0.0217983890324831, 0.010031762532889843, -0.03790218383073807, -0.019441090524196625, -0.009521896950900555, -0.008296896703541279, 0.054058946669101715, -0.01434244029223919, 0.027757853269577026, -0.008528653532266617, 0.05477408319711685, -0.024764878675341606, 0.05779354274272919, 0.009217302314937115, -0.01868622563779354, -0.0029664880130439997, 0.03212812542915344, -0.021043524146080017, -0.031836774200201035, -0.010508518666028976, -0.003648515557870269, -0.006002502981573343, -0.007250679656863213, -0.007177841849625111, 0.0007490713614970446, 0.0019964200910180807, 0.0390675887465477, 0.06897084414958954, 0.04036542773246765, 0.008051896467804909, 0.0018557104049250484, -0.01948082074522972, 0.06197841092944145, 0.017918117344379425, 0.014872170053422451, 0.008833248168230057, -0.033002179116010666, 0.04635137692093849, 0.02355974167585373, 0.021215686574578285, 0.02844650112092495, 0.011064735241234303, 0.011521628126502037, -0.018831901252269745, -0.01684541441500187, 0.007833382114768028, 0.005307232495397329, -0.015375413931906223, 0.0470135398209095, -0.01782541535794735, 0.01775919832289219, 0.047702185809612274, 0.03260488063097, -0.018593523651361465, -0.028552448377013206, 0.010515140369534492, 0.01574622467160225, 0.017732711508870125, 0.020129740238189697, 0.01129649206995964, 0.017176495864987373, 0.013256493955850601, -0.025930283591151237, -0.030856773257255554, 0.006720949430018663, 0.011832844465970993, -0.03734596446156502, -0.00456561055034399, 0.011018384248018265, -0.0314924493432045, -0.029823798686265945, -0.003065812401473522, 0.006939463317394257, 0.01348825078457594, 0.016765953972935677, -0.002079190220683813, 0.022434065118432045], "id": 54}, {"title": "David E. Davis", "text": "David Evan Davis, Jr.", "vector": [0.04507243260741234, -0.020444175228476524, -0.03391487896442413, -0.018947429955005646, -0.008971964940428734, 0.07619792222976685, 0.00044195432565174997, 0.009091024287045002, -0.029917890205979347, 0.06718343496322632, 0.006930949632078409, 0.004634806886315346, 0.016055990010499954, 0.013139039278030396, 0.017110515385866165, 0.02246818132698536, -0.06044808402657509, 0.049562666565179825, -0.007526245899498463, -0.003237986471503973, 0.014142538420855999, -0.04044612869620323, -0.031414635479450226, 0.03619401156902313, 0.00019812204118352383, 0.037656739354133606, 0.00628888001665473, -0.005221598781645298, 0.04901839420199394, 0.005965718999505043, -0.0052003380842506886, 0.04908642917871475, 0.05949560925364494, 0.020716309547424316, -0.011727336794137955, 0.02840413711965084, -0.02039314992725849, 0.009184570983052254, 0.03507145494222641, 0.014380657114088535, 0.02367578260600567, -0.0467732772231102, -0.056570153683423996, -0.0034505922812968493, 0.006845907308161259, 0.019525717943906784, -0.043609704822301865, 0.013666301034390926, -0.004826151765882969, 0.06555062532424927, -0.012007975950837135, -0.008784872479736805, -0.028608238324522972, 0.01699995994567871, 0.02068229392170906, 0.028183026239275932, -0.025053469464182854, 0.08660710602998734, -0.017535727471113205, -0.016557740047574043, 0.06595882773399353, -0.047657717019319534, 0.032486166805028915, 0.014091513119637966, 0.004383931867778301, 0.039017416536808014, -0.0021154277492314577, 0.024356121197342873, -0.01307100523263216, 0.010426188819110394, 0.026737306267023087, 0.0065567633137106895, -0.009813884273171425, 0.1040237694978714, 0.02154972404241562, -0.009252605028450489, -0.013589763082563877, 0.050685226917266846, 0.005234355106949806, -0.0009423752781003714, 0.016838381066918373, -0.052250005304813385, -0.002574656391516328, 0.01423608511686325, 0.005795634351670742, -0.030649254098534584, 0.017467692494392395, -0.07708236575126648, 0.018301108852028847, 0.008329895325005054, 0.022842368111014366, 0.007709086872637272, 0.045310549437999725, -0.04398389160633087, 0.03677229955792427, -0.0012947693467140198, 0.015214071609079838, -0.005731852725148201, -0.0007042567594908178, -0.08497428894042969, 0.010017985478043556, 0.022706300020217896, -0.015562745742499828, 0.010604777373373508, 0.00818532332777977, -0.03200992941856384, -0.026618247851729393, 0.021838868036866188, -0.0076453047804534435, 0.045242518186569214, 0.0009264298132620752, 0.017875896766781807, -0.002194091910496354, 0.04401790723204613, -0.021583741530776024, 0.03138061612844467, -0.008852905593812466, -0.015248089097440243, 0.038575198501348495, -0.023233562707901, -0.02005298063158989, -0.03782682493329048, 0.0320439487695694, 0.018760336562991142, 0.013300619088113308, -0.01530761830508709, -0.014338135719299316, -0.00030934144160710275, 0.022519206628203392, -0.0022025962825864553, -0.031567711383104324, 0.023131512105464935, 0.005812642630189657, 0.022502198815345764, -0.020580243319272995, 0.027247561141848564, 0.018182048574090004, 0.031278565526008606, 0.00423510791733861, 0.06589079648256302, -0.022008953616023064, 0.014516724273562431, 0.0233866386115551, 0.013955445028841496, 0.01643868163228035, 0.011029989458620548, 0.0627952516078949, 0.007717590779066086, 0.034187015146017075, 0.03374479338526726, -0.014338135719299316, 0.020733319222927094, -0.02564876526594162, -0.005361918359994888, 0.007683573756366968, 0.017025472596287727, 0.0025533956941217184, -0.027162518352270126, -0.052181970328092575, -0.02918652631342411, -0.003977854736149311, -0.009388672187924385, -0.012101522646844387, 0.03840511292219162, -0.003688710741698742, -0.05602588132023811, 0.00818532332777977, 0.01104699820280075, -0.025342613458633423, -0.001504186075180769, 0.034459151327610016, -0.0114466967061162, 0.0274856798350811, -0.053882814943790436, -0.030768312513828278, 0.0033974407706409693, -0.0008047129958868027, -0.02041015774011612, -0.03296240419149399, 0.001574345980770886, -0.018794354051351547, 0.014142538420855999, 0.029441652819514275, 0.04371175542473793, 0.008478719741106033, 0.0012022858718410134, 0.007122294511646032, 0.025206545367836952, 0.007496480830013752, -0.04207894206047058, -0.013479208573698997, 0.003386810654774308, -0.012620280496776104, -0.021481690928339958, 0.053746748715639114, -0.004983480088412762, 0.04415397346019745, -0.02542765438556671, -0.03343864157795906, 0.01819905824959278, 0.01679585874080658, -0.004932454787194729, 0.03345565125346184, -0.00828737486153841, 0.04078629985451698, 0.06626497954130173, -0.0038269045762717724, 0.0046305544674396515, -0.048508141189813614, -0.019746826961636543, -0.007190328557044268, -0.01427860651165247, -0.007500732783228159, 0.007398682180792093, 0.0060465093702077866, 0.029305584728717804, -0.02423706278204918, 0.013156047090888023, 0.03731657192111015, 0.029458660632371902, 0.0005862605175934732, 0.0032528690062463284, 0.013419678434729576, -0.015316122211515903, -0.018828369677066803, -0.043609704822301865, -0.023624757304787636, 0.0029403383377939463, -0.005672323051840067, 0.00458803353831172, 0.01211853139102459, -0.011259603314101696, 0.011115031316876411, 0.02889738231897354, -0.035887859761714935, -0.0340169295668602, -0.03155070170760155, -0.025597739964723587, 0.0039395857602357864, 0.022978436201810837, -0.020631268620491028, -0.0037886356003582478, -0.018760336562991142, -0.0399358756840229, 0.040071941912174225, 0.04292936623096466, -0.0010523988166823983, -0.00995845627039671, -0.025750815868377686, -0.0004276034305803478, 0.020665284246206284, -0.03309847414493561, 0.02034212462604046, -0.030138999223709106, -0.012815877795219421, -0.011029989458620548, 0.0026596987154334784, 0.023488689213991165, -0.02712850086390972, -0.001083758077584207, -0.018045980483293533, 0.00175399798899889, -0.0032953901682049036, 0.02876131422817707, -0.02459423989057541, 0.029016440734267235, -0.04207894206047058, 0.019219566136598587, 0.02381185069680214, -0.031142499297857285, -0.010188070125877857, -0.011846396140754223, -0.014134034514427185, -0.01339416578412056, 0.025053469464182854, -0.02367578260600567, -0.03126155957579613, 0.027162518352270126, -0.022978436201810837, 0.015775350853800774, 0.062387049198150635, 0.011769857257604599, 0.037078455090522766, -0.04082031548023224, -0.04391585662961006, -0.008619039319455624, 0.011973959393799305, 0.02535962127149105, 0.06936051696538925, -0.011769857257604599, 0.009159058332443237, 0.011531739495694637, 0.015537232160568237, 0.0009354655630886555, 0.004256368149071932, -0.018658285960555077, 0.004507243167608976, -0.0902809277176857, -0.013028483837842941, -0.060686200857162476, 0.03359171748161316, 0.018182048574090004, 0.0274856798350811, 0.013334636576473713, 0.020359132438898087, -0.024917401373386383, -0.023896893486380577, 0.027655763551592827, 0.004932454787194729, -0.028676271438598633, -0.015043986961245537, 0.002804270712658763, 0.051127444952726364, 0.022417156025767326, 0.00582965137436986, -0.008776367641985416, 0.04337158426642418, 0.04514046385884285, 0.02508748508989811, -0.008253357373178005, 0.003979980945587158, 0.013751343823969364, -0.03939160332083702, 0.009677816182374954, 0.004143687430769205, -0.006118795368820429, -0.04653516039252281, 0.027689781039953232, -0.026618247851729393, 0.03537760674953461, -0.022519206628203392, -0.014567750506103039, -0.009312134236097336, 0.014720826409757137, 0.0660608783364296, 0.013198568485677242, -0.013683309778571129, 0.01303698867559433, 0.018045980483293533, 0.0010784430196508765, -0.009558756835758686, 0.008389425463974476, -0.007011739537119865, 0.0009620413184165955, -0.0029956158250570297, -0.03054720349609852, 0.010052002966403961, 0.034050945192575455, 0.017892904579639435, -0.07300033420324326, 0.0007685699965804815, 0.04813395440578461, 0.01630261354148388, 0.003644063603132963, 0.024135012179613113, -0.049494631588459015, -0.017093507573008537, -0.01253523863852024, 0.0070755211636424065, -0.04194287583231926, 0.0018528596265241504, -0.02076733484864235, -0.021736817434430122, 0.03160172700881958, -0.03075130470097065, -0.04993685334920883, -0.010273112915456295, -0.00529388478025794, -0.05116146057844162, 0.06344157457351685, -0.007539002224802971, 0.04663721099495888, -0.008580770343542099, 0.002530009252950549, 0.045956872403621674, -0.030768312513828278, 0.01920255646109581, -0.036228030920028687, -0.022417156025767326, 0.018454184755682945, -0.003142313798889518, -0.006935201585292816, 0.015928426757454872, 0.00688842823728919, 0.018947429955005646, -0.042487144470214844, -0.03871126472949982, 0.04003792628645897, 0.020869385451078415, 0.0053746746852993965, -0.0615026094019413, -0.007058512885123491, -0.010740845464169979, 0.011208578012883663, 0.031278565526008606, -0.023556724190711975, 0.027587730437517166, -0.0004977633361704648, 0.08497428894042969, -0.02161775901913643, -0.0362960621714592, 0.014873902313411236, 0.0013255971716716886, -0.04656917601823807, 0.027876874431967735, -0.048644211143255234, -0.007232849486172199, 0.013062501326203346, 0.03095540590584278, 0.004753865767270327, 0.008147054351866245, -0.014304119162261486, -0.024781333282589912, 0.006314392667263746, 0.005247111432254314, -0.03684033453464508, 0.031193524599075317, 0.035105470567941666, 0.05816895142197609, -0.01891341246664524, 0.037792809307575226, -0.010154053568840027, -0.002014440018683672, -0.010315634310245514, 0.049052413552999496, 0.053100425750017166, 0.03854118287563324, -0.019287599250674248, 0.0012724457774311304, 0.011064006015658379, -0.002438588533550501, 0.0004656067176256329, -0.03452718257904053, 0.0690203532576561, -0.045446619391441345, -0.04299739748239517, -0.023403648287057877, -0.016098512336611748, -0.03973177447915077, 0.03789485991001129, 0.007794129196554422, -0.04411995783448219, 0.05143359676003456, -0.026056967675685883, -0.06663916260004044, -0.0045242514461278915, -0.04139860346913338, 0.0014616649132221937, -0.0006564204231835902, -0.026193035766482353, -0.011922934092581272, -0.019814861938357353, -0.037452638149261475, -0.03314949944615364, 0.00921008363366127, -0.03905143588781357, -0.06810189038515091, 0.005013245157897472, -0.026465171948075294, -0.02457723207771778, 0.0031359356362372637, 0.02627807855606079, -0.009550252929329872, -0.02641414664685726, -0.03126155957579613, 0.021651776507496834, 0.002885060850530863, -0.014227581210434437, -0.009057007730007172, 0.05259017273783684, -0.03269026800990105, -0.0341700054705143, 0.04592285677790642, 0.02649918757379055, -0.008627544157207012, 0.008147054351866245, 0.011965454556047916, -0.06170671060681343, 0.013385661877691746, 0.09980566799640656, 0.017110515385866165, -0.006233602296561003, 0.05037907138466835, -0.03132959082722664, -0.023403648287057877, -0.0008451081230305135, 0.03721452131867409, -0.023981936275959015, -0.019712811335921288, 0.011191570200026035, 0.003314524656161666, 0.07150358706712723, -0.02039314992725849, -0.03345565125346184, -0.01579236052930355, 0.012356650084257126, -0.013581259176135063, 0.02445817179977894, 0.026397136971354485, 0.001953847473487258, 0.006148559972643852, 0.0653805360198021, -0.016897909343242645, -0.04058219864964485, -0.025614747777581215, -0.03670426830649376, -0.00767081743106246, 0.0013819377636536956, 0.008861410431563854, 0.01721256598830223, 0.011497722007334232, 0.008653056807816029, -0.055651698261499405, 0.0037567445542663336, -0.011140544898808002, -0.044528160244226456, 0.02325057052075863, 0.04755566641688347, -0.015171550214290619, 0.03554769232869148, 0.0072413538582623005, 0.010604777373373508, 0.01420206855982542, 0.007849406450986862, 0.049494631588459015, -0.030513186007738113, 0.019457682967185974, -0.013292115181684494, 0.008079021237790585, -0.022366130724549294, 0.0010513357119634748, -0.005327901802957058, 0.002340789884328842, -0.0217538271099329, -0.044460125267505646, 0.027689781039953232, 0.021634766831994057, -0.013615275733172894, 0.010477214120328426, 0.006671570241451263, -0.00699473125860095, -0.03871126472949982, 0.0074156904593110085, -0.017306113615632057, 0.02018904685974121, -0.033761803060770035, -0.06721745431423187, 0.004349914845079184, 0.021090496331453323, 0.001069938763976097, 0.05507341027259827, -0.04010596126317978, -0.018539227545261383, 0.003121053334325552, 0.023471681401133537, -0.023131512105464935, -0.02345467358827591, 0.03350667655467987, -0.010077515617012978, -0.031839847564697266, 0.0018539226148277521, -0.01720406301319599, -0.01989990472793579, -0.0036759544163942337, -0.05677425488829613, -0.0013883159263059497, -0.04357568547129631, 0.03144865110516548, -0.037010420113801956, -0.006186828948557377, -0.014057496562600136, -0.01629410870373249, -0.008988973684608936, -0.001060371519997716, -0.025274578481912613, -0.002156886039301753, 0.02933960221707821, -0.01402347907423973, 0.04633105918765068, 0.014610270969569683, 0.03840511292219162, 0.017246583476662636, 0.00949922762811184, 0.01573283039033413, 0.0027553713880479336, -0.006208089645951986, -0.01857324317097664, 0.021736817434430122, 0.03311548009514809, 0.007122294511646032, -0.019661786034703255, -0.022485191002488136, 0.04044612869620323, 0.011285115964710712, 0.04235107824206352, 0.059767745435237885, -0.013002971187233925, 0.002657572738826275, -0.003824778599664569, -0.023607749491930008, -0.005149312783032656, 0.006658813916146755, 0.06065218523144722, -0.0003888028732035309, -0.01743367686867714, -0.010715332813560963, -0.007258362136781216, -0.01989990472793579, -0.02501945197582245, -0.043745771050453186, 0.006484477315098047, -0.00949922762811184, 0.008852905593812466, 0.032707277685403824, -0.003975728526711464, 0.03704443573951721, 0.012705323286354542, 0.047929853200912476, -0.026873374357819557, 0.021073488518595695, -0.0024322103708982468, -0.024032961577177048, 0.0033230287954211235, 0.017025472596287727, 0.047725751996040344, -0.025835858657956123, 0.03677229955792427, -0.035887859761714935, -0.009150554426014423, -0.002336537931114435, -0.013980957679450512, 0.031125491484999657, 0.023352622985839844, -0.02500244416296482, -0.002500244416296482, -0.015707317739725113, 0.022281089797616005, -0.03138061612844467, 0.005026001483201981, -0.02090340293943882, -0.0435076542198658, 0.013793865218758583, 0.023777833208441734, 0.03738460689783096, -0.047283533960580826, 0.009014486335217953, 0.026890382170677185, 0.03626204654574394, 0.007534749805927277, -0.0062165940180420876, 0.015316122211515903, -0.022842368111014366, -0.002680959179997444, 0.00793870072811842, 0.0038928124122321606, -0.02586987428367138, -0.01998494565486908, -0.016523724421858788, 0.03871126472949982, -0.0026214297395199537, -0.005366170778870583, -0.04071826487779617, -0.019712811335921288, -0.003167826682329178, -0.02614201046526432, -0.02282536029815674, 0.0228933934122324, 0.005549011752009392, 0.029611736536026, 0.014814373105764389, 0.028523195534944534, -0.00602099671959877, 0.0011480713728815317, -0.015129029750823975, -0.0028723045252263546, 0.0074752201326191425, -0.0027085980400443077, 0.00043398162233643234, -0.0487462617456913, 0.013164551928639412, 0.031227542087435722, -0.0017380524659529328, -0.005621297750622034, 0.0073051354847848415, 0.015358643606305122, 0.0051408084109425545, 0.02287638559937477, -0.016957439482212067, 0.015622274950146675, 0.026159018278121948, 0.0013649292523041368, 0.028438152745366096, -0.00035638047847896814, 0.003682332579046488, 0.01310502178966999, -0.010188070125877857, 0.026941407471895218, -0.025529704988002777, -0.04224902763962746, 0.008704082109034061, 0.053100425750017166, -0.02245117351412773, 0.029441652819514275, 0.029220541939139366, 0.012985962443053722, -0.02166878432035446, 0.010358154773712158, -0.052045904099941254, -0.010936442762613297, -0.008478719741106033, 0.036534182727336884, 0.02345467358827591, 0.024032961577177048, 0.013802369125187397, 0.03966373950242996, -0.046875327825546265, 0.0015966696664690971, -0.005047261714935303, -0.04769173637032509, 0.0017486828146502376, 0.013657797127962112, 0.00291482568718493, -0.04585482180118561, 0.002277008257806301, 0.031227542087435722, 0.03180582821369171, 0.023964926600456238, -0.030275067314505577, 0.03338761627674103, -0.0010412369156256318, -0.019508708268404007, 0.05476725846529007, -0.0036738284397870302, 0.01257776003330946, -0.020086996257305145, -0.019814861938357353, 0.029662761837244034, 0.007487976457923651, 0.052454106509685516, -0.01807999797165394, 0.04840609058737755, -0.025529704988002777, 0.019389649853110313, -0.016549237072467804, -0.021940920501947403, 0.023335613310337067, 0.03292838856577873, 0.0233866386115551, 0.020512208342552185, -0.03854118287563324, 0.0037588707637041807, -0.042623214423656464, 0.04486833140254021, 0.01996793784201145, -0.03479931876063347, 0.002106923609972, 0.013793865218758583, -0.03537760674953461, 0.031856853514909744, 0.017391154542565346, 0.0036568199284374714, 0.017960939556360245, -0.00917606707662344, 0.002311025047674775, 0.03132959082722664, 0.0011342519428581, 0.033693768084049225, -0.012620280496776104, -0.016268596053123474, 0.010808879509568214, -0.015103517100214958, 0.006365417968481779, -0.024066977202892303, -0.014014975167810917, -0.03462923318147659, 0.01328361127525568, -0.03046216070652008, -0.06170671060681343, -0.007768616080284119, -0.006526998244225979, -0.014457195065915585, -0.004284007009118795, -0.03216300532221794, -0.020291099324822426, -0.022944418713450432, -0.014584758318960667, 0.025971924886107445, 0.04292936623096466, -0.012560751289129257, -0.022723309695720673, -0.03229907527565956, -0.014788860455155373, 0.001293706358410418, -0.012297119945287704, 0.008219340816140175, -0.014440186321735382, -0.004656067118048668, -0.009847900830209255, -0.007266866508871317, 0.01339416578412056, -0.013011476024985313, -0.004341410472989082, -0.016557740047574043, -0.0063271489925682545, -0.005272624082863331, -0.03471427783370018, 0.0389493852853775, 0.012756348587572575, 0.018675293773412704, -0.008006734773516655, 0.023488689213991165, -0.002014440018683672, 0.01763777807354927, 0.0017943930579349399, 0.026822349056601524, 0.011004476808011532, 0.0012416179524734616, 0.004838908091187477, -0.002644816180691123, 0.026737306267023087, -0.026261068880558014, 0.011531739495694637, -0.0043924362398684025, 0.0004733136738650501, 0.023624757304787636, -0.0477597676217556, 0.025631755590438843, -0.053236495703458786, 0.007951457053422928, -0.009754354134202003, 0.02996891550719738, -0.009201579727232456, -0.011242595501244068, -0.009142049588263035, -0.010494222864508629, -0.0033931888174265623, 0.00391619885340333, 0.00864030048251152, 0.04490234702825546, 0.032707277685403824, 0.07442904263734818, -0.02663525566458702, -0.033064454793930054, -0.02195792831480503, -0.015571249648928642, -0.01282438263297081, 0.00811729021370411, -0.035173505544662476, -0.004707092419266701, -0.01438916102051735, 0.01527360174804926, 0.014491211622953415, -0.0706871822476387, -0.03032609261572361, -0.009295126423239708, -0.05554964765906334, 0.010715332813560963, 0.03165275231003761, -0.021515708416700363, -0.011021485552191734, 0.04718147963285446, -0.004122426733374596, -0.0090740155428648, -0.03871126472949982, 0.07340853661298752, -0.028319094330072403, 0.03564974293112755, -0.023760825395584106, 0.06143457442522049, -0.022723309695720673, -0.003843913087621331, 0.0474536158144474, 0.007105286233127117, -0.0007356160786002874, -0.012024984695017338, 0.007870666682720184, 0.01069832406938076, 0.024985434487462044, 0.03479931876063347, 0.016387656331062317, -0.004617798142135143, 0.018250083550810814, -0.010392172262072563, -0.03229907527565956, 0.03813297674059868, 0.0067353518679738045, 0.0006819331320002675, 0.02076733484864235, -0.005157817155122757, 0.02882934734225273, 0.021413657814264297, 0.011761353351175785, 0.031142499297857285, -0.007547506131231785, -0.0003545201907400042, 0.0024300843942910433, -0.022655274718999863, 0.002457723254337907, -0.00786216277629137, -0.001574345980770886, 0.0040076193399727345, 0.03554769232869148, 0.03442513197660446, 0.06010791286826134, -0.009949952363967896, -0.019576743245124817, 0.05449512228369713, -0.0032932639587670565, 0.056434087455272675, -0.01490791980177164, -0.030632244423031807, 0.004190460313111544, 0.01565629243850708, 0.025903891772031784, 0.00391407310962677, 0.05150163173675537, -0.02558073028922081, 0.0072456058114767075, 0.04473226144909859, -0.038439132273197174, 0.009116536937654018, 0.006106039043515921, 0.016243083402514458, 0.03684033453464508, 0.021906903013586998, -0.01506099570542574, -0.03996989130973816, 0.07293229550123215, -0.037724774330854416, 0.025342613458633423, 0.0412285178899765, 0.018454184755682945, -0.014125529676675797, -0.004277628846466541, 0.013445191085338593, -0.011956950649619102, -0.04435807466506958, 0.008465963415801525, 0.004332906566560268, -0.014610270969569683, 0.04116048663854599, 0.034391116350889206, -0.020954428240656853, -0.0023152772337198257, 0.00483465613797307, -2.617709105834365e-05, -0.03362573683261871, 0.014372153207659721, -0.021141521632671356, -0.01864127814769745, 0.002217478584498167, 0.030632244423031807, 0.023709800094366074, 0.01947469264268875, 0.015282105654478073, -0.02076733484864235, 0.007917440496385098, -0.04003792628645897, 0.024815350770950317, -0.04146663844585419, -0.027876874431967735, -0.0012192942667752504, 0.016404664143919945, -0.005527751054614782, 0.00963529571890831, 0.02025708183646202, 0.02437313087284565, -0.019253581762313843, -0.02379484288394451, 0.01672782562673092, -0.012620280496776104, 0.031856853514909744, -0.012220581993460655, -0.006144308019429445, -0.005553263705223799, 0.027094485238194466, -0.0005628739017993212, -0.0025895386934280396, -0.030768312513828278, 0.0006548258825205266, -0.027672771364450455, 0.004383931867778301, -0.004366923123598099, 0.009235596284270287, 0.029713787138462067, 0.03979980945587158, -0.0045667728409171104, 0.018947429955005646, 0.03462923318147659, -0.03081933781504631, -0.034050945192575455, -0.005855164024978876, 0.011514730751514435, -0.028387127444148064, 0.028217043727636337, -0.003607920603826642, 0.0005596848204731941, -0.0024215802550315857, -0.02806396782398224, 0.013810873031616211, -0.05949560925364494, 0.02663525566458702, 0.022213054820895195, -0.008236349560320377, -0.02444116398692131, -0.029934898018836975, 0.01233113743364811, -0.009261108934879303, -0.027519695460796356, -0.01708500273525715, -0.01869230344891548, 0.009414184838533401, 0.033268555998802185, 0.014508220367133617, -0.011166057549417019, 0.0033336591441184282, 0.017484702169895172, -0.03650016710162163, 0.022162029519677162, 0.032843343913555145, 0.0222470723092556, -0.017535727471113205, -0.007947205565869808, -0.04605892300605774, -0.004507243167608976, 0.012220581993460655, -0.006926697213202715, 0.01864127814769745, 0.04003792628645897, -0.006131551694124937, -0.011812378652393818, 0.00921008363366127, 0.011489218100905418, -0.02515552006661892, -0.05418897047638893, 0.015248089097440243, 0.020069988444447517, 0.02558073028922081, -0.016829876229166985, 0.04912044480443001, -0.02757072076201439, 0.008861410431563854, 0.014074504375457764, 0.022417156025767326, -0.0034272056072950363, -0.006586527917534113, 0.02969677932560444, 0.036670248955488205, 0.011429687961935997, -0.027893882244825363, 0.01857324317097664, -0.03413598984479904, -0.01091093011200428, 0.007143555209040642, -0.0008998541161417961, 0.00591469369828701, -0.0074071865528821945, -0.01920255646109581, -0.01891341246664524, -0.006067769601941109, 0.01664278283715248, -0.030002931132912636, 0.0016859640600159764, -0.006709839217364788, 0.011029989458620548, -0.005889181047677994, -0.007492228876799345, -0.005782878026366234, 0.02471330016851425, -0.016413168981671333, 0.00047171913320198655, 0.0008217214490287006, -0.018607260659337044, 0.013836385682225227, -0.0017529348842799664, -0.01364078838378191, -0.025699790567159653, -0.013156047090888023, 0.010468710213899612, -0.005676575005054474, 0.02835310995578766, 0.029373617842793465, -0.017408164218068123, -0.03711247071623802, -0.008661560714244843, 0.024883383885025978, -0.0027893881779164076, 0.0016381277237087488, 0.0004209594917483628, 0.007794129196554422, -0.03207796439528465, 0.024900391697883606, -0.007704834453761578, 0.01991691254079342, -0.006841654889285564, 0.005910441745072603, -0.006811890285462141, 0.057080406695604324, 0.0014680430758744478, 0.013674805872142315, 0.009312134236097336, -0.060618169605731964, -0.028659263625741005, -0.0024662273935973644, -0.019933920353651047, -0.010120037011802197, -0.007483724504709244, 0.020920412614941597, -0.023692792281508446, 0.012050497345626354, -0.011531739495694637, -0.0015658418415114284, -0.0024024457670748234, -0.0092441001906991, 0.010307129472494125, 0.0017784476513043046, 0.030292075127363205, -0.036228030920028687, -0.010034994222223759, -0.03224804997444153, -0.014822877012193203, 0.01293493714183569, -0.006799133960157633, -0.011149048805236816, -0.020359132438898087, -0.017960939556360245, -0.008572266437113285, 0.006254862993955612, 0.009813884273171425, -0.0015265097608789802, -0.0220939964056015, -0.044596195220947266, -0.017391154542565346, -0.021311607211828232, 0.030853355303406715, -0.00499623641371727, 0.003191213123500347, -0.012135539203882217, 0.011378662660717964, -0.011506226845085621, 0.03871126472949982, -0.025121502578258514, 0.0032337342854589224, -0.011531739495694637, 1.98155266843969e-05, -0.01665979065001011, 0.02537662908434868, 0.012526734732091427, -0.04146663844585419, -0.025393638759851456, -0.022128012031316757, -0.031924888491630554, 0.041840825229883194, 0.008878418244421482, 0.002423706231638789, -0.008776367641985416, -0.004028880037367344, -0.001800771220587194, -0.03005395643413067, -0.009082520380616188, -0.0008929444011300802, -0.04139860346913338, 0.002204722259193659, -0.014992961660027504, 0.01385339442640543, -0.0039459639228880405, -0.009677816182374954, -0.041126467287540436, -0.014261597767472267, -0.017960939556360245, -0.0038396609015762806, 0.031771812587976456, 0.024203045293688774, 0.02954370342195034, 0.04000391066074371, -0.02954370342195034, -0.012790365144610405, 0.037010420113801956, -0.016472699120640755, 0.04337158426642418, -0.009133545681834221, -0.012509725987911224, -0.010477214120328426, -0.003958720248192549, 0.010783366858959198, -0.008988973684608936, 0.008300131186842918, 0.005595785100013018, -0.05973372980952263, 0.01607299968600273, -0.020580243319272995, 0.035615723580121994, -0.031431641429662704, 0.006008240394294262, -0.00010005760850617662, 0.004468974191695452, 0.0022089744452387094, -0.0010646235896274447, 0.03427205607295036, -0.011472209356725216, -0.02103947103023529, -0.03250317648053169, 0.0034931134432554245, 0.00945670623332262, 0.004753865767270327, -0.017484702169895172, 0.009541749022901058, -0.028659263625741005, -0.004443461541086435, 0.00645046029239893, -0.0027851362247020006, -0.002838287502527237, 0.009371664375066757, 0.024781333282589912, -0.021566733717918396, -0.04323551803827286, -0.003867299761623144, 0.005621297750622034, 0.0036802066024392843, -0.012390666641294956, -0.021158529445528984, 0.040071941912174225, -0.005689331330358982, 0.002131373155862093, -0.009779867716133595, 0.00483465613797307, 7.632216693309601e-06, -0.004473226144909859, 0.018369141966104507, -0.010893921367824078, 0.0037907615769654512, -0.03311548009514809, 0.011531739495694637, -0.009448202326893806, 0.0008908183663152158, -0.01261177659034729, 0.007334900554269552, -0.01420206855982542, 0.002984985476359725, 0.046365074813365936, 0.034033939242362976, 0.005259867757558823, -0.02394791878759861, -0.019525717943906784, -0.00042707190732471645, -0.018454184755682945, 0.0016466319793835282, 0.03435710072517395, -0.018369141966104507, 0.027621746063232422, 0.03799691051244736, 0.017187053337693214, 0.014440186321735382, -0.007985474541783333, 0.03267326205968857, 0.01120007410645485, -0.026805341243743896, 0.023913901299238205, 0.020648276433348656, 0.015026978217065334, 0.019032472744584084, -0.04704541340470314, 0.038643233478069305, 0.0063866786658763885, 0.06738753616809845, 0.01857324317097664, -0.010392172262072563, -0.01743367686867714, 0.009108033031225204, -0.007504985202103853, -0.02537662908434868, 0.02551269717514515, -0.028080975636839867, -0.052386071532964706, 0.011744344606995583, -0.02336963079869747, -0.009728841483592987, 0.005004740785807371, -0.02260424941778183, 0.014882407151162624, -0.013045492582023144, 0.01983186975121498, -0.017841879278421402, 0.0369764007627964, -0.012144044041633606, -0.021804852411150932, -0.003174204844981432, 0.010749349370598793, 0.02105647884309292, -0.021209554746747017, -0.019950930029153824, 0.007096781861037016, 0.016098512336611748, 0.01331762783229351, 0.006191081367433071, -0.014729330316185951, 0.004105417989194393, -0.0072413538582623005, 0.019712811335921288, 0.02933960221707821, 0.011293620802462101, 0.01677885092794895, -0.01785888895392418, 0.021702801808714867, -0.019236573949456215, 0.030904380604624748, -0.021277589723467827, 0.025308595970273018, -0.011608277447521687, 0.017943929880857468, -0.008206584490835667, -0.036874350160360336, 0.006539754569530487, -0.014678305014967918, -0.01807999797165394, -0.029611736536026, 0.025563722476363182, 0.0008174693211913109, 0.012594767846167088, 0.017467692494392395, 0.025529704988002777, -0.01713602803647518, 0.03408496454358101, -0.03854118287563324, -0.02663525566458702, 0.02833610214293003, 0.009805380366742611, -0.05177376791834831, -0.02627807855606079, -0.007058512885123491, 0.009924438782036304, 0.007143555209040642, -0.00963529571890831, -0.017340129241347313, -0.02041015774011612, -0.0284721702337265, 0.027604738250374794, 0.02296142838895321, 0.004088409710675478, 0.012297119945287704, -0.023403648287057877, 0.024560222402215004, -0.00019971658184658736, 0.06973470747470856, -0.007326396182179451, -0.014669801108539104, 0.02876131422817707, 0.010281616821885109, 0.01374283991754055, 0.006539754569530487, -0.05235205590724945, -0.010120037011802197, -0.013734335079789162, -0.00953324418514967, 0.003237986471503973, 0.013632284477353096, 0.011599772609770298, -0.012807373888790607, 0.009363159537315369, 0.01650671474635601, -0.011633790098130703, 0.021362632513046265, -0.02869327925145626, -0.029730796813964844, 0.001143819303251803, 0.016540732234716415, -0.012883911840617657, -0.03626204654574394, -0.01041768491268158, 0.021073488518595695, 0.02804695814847946, -0.0029701031744480133, 0.004507243167608976, -0.011081014759838581, -0.012016480788588524, -0.008725342340767384, -0.005549011752009392, -0.0016094259917736053, 0.01215254794806242, -0.01580086350440979, 0.02282536029815674, -0.030292075127363205, 0.03789485991001129, -0.011531739495694637, -0.02105647884309292, -0.010655803605914116, 0.01637915149331093, 0.031839847564697266, -0.03541162237524986, 0.00458803353831172, -0.007296631578356028, 0.0018401033012196422, -0.006986226886510849, -0.017467692494392395, 0.04150065407156944, 0.021651776507496834, -0.016472699120640755, 0.002181335585191846, -0.00036966835614293814, -0.011072510853409767, 0.012628785334527493, 0.002016566228121519, -0.016549237072467804, -0.024032961577177048, -0.03663623332977295, 0.02331860549747944, -0.006692830938845873, -0.005017497111111879, 0.03799691051244736, 0.008895426988601685, -0.009405680932104588, 0.00380777008831501, -0.003852417226880789, 0.024220053106546402, 0.0026724550407379866, 0.012909424491226673, -0.015834880992770195, 0.028948407620191574, 0.024407146498560905, 0.0040033673867583275, -0.041058432310819626, -0.009252605028450489, -0.004033132456243038, 0.027434654533863068, 0.03200992941856384, -0.03476530313491821, 0.009201579727232456, -0.01806299015879631, -0.0009338710224255919, -0.017391154542565346, 0.011132040061056614, -0.004413696471601725, 0.029662761837244034, 0.0011661428725346923, 0.022349122911691666, 0.003965098410844803, 0.026618247851729393, -0.004439209122210741, 0.0065610152669250965, -0.019661786034703255, -0.029662761837244034, 0.03639811649918556, 0.00892944447696209, 0.02246818132698536, -0.03434009104967117, -0.0032060956582427025, -0.04656917601823807, 0.007390177808701992, 0.03238411620259285, 0.0004911193973384798, -0.007628296501934528, -0.012526734732091427, -0.02296142838895321, -0.008334147743880749, -0.01257776003330946, 0.009839396923780441, -0.02549568936228752, -0.04061621427536011, -0.016532227396965027, -0.00807476881891489, -0.013793865218758583, 0.0026001690421253443, 0.003897064598277211, -0.025104494765400887, 0.018947429955005646, -0.009014486335217953, 0.003960846457630396, -0.024815350770950317, -0.00970332883298397, 0.02501945197582245, 0.01544368639588356, -0.035241540521383286, -0.00664180563762784, 0.04500439763069153, 0.017807861790060997, -0.0042372336611151695, -0.025682782754302025, -0.012968954630196095, 0.009031495079398155, -0.015316122211515903, 0.016804363578557968, -0.016948934644460678, -0.015571249648928642, -0.009320639073848724, 2.097821379720699e-05, 0.015043986961245537, -0.018828369677066803, -0.0017848258139565587, -0.0010816321009770036, 0.017807861790060997, -0.0033655499573796988, 0.02692439965903759, -0.01708500273525715, -0.011259603314101696, -0.023284588009119034, 0.006101786624640226, 0.00811729021370411, -0.018930422142148018, -0.0111235361546278, 0.029424645006656647, 0.00172742223367095, -0.008266113698482513, 0.012007975950837135, -0.028097983449697495, -0.005965718999505043, 0.019440675154328346, -0.020512208342552185, -0.012841391377151012, 0.006242106668651104, 0.033489666879177094, -0.011999472044408321, -0.008725342340767384, -0.006203837692737579, 0.024645265191793442, -0.03012199141085148, 0.0076453047804534435, -0.024611247703433037, -0.01434663962572813, 0.02231510542333126, -0.009142049588263035, 0.043031416833400726, 0.023114504292607307, -0.017050985246896744, -0.01694043166935444, -0.04867822676897049, -0.007772868499159813, 0.002103734528645873, 0.03012199141085148, -0.007819641381502151, -0.026397136971354485, 0.015035483054816723, -0.012637289240956306, 0.007942953146994114, 0.009439698420464993, -0.003760996740311384, 0.005638306029140949], "id": 55}, {"title": "Newport Tower (Jersey City)", "text": "The Newport Tower (also known as Newport Office Center II and 525 Washington Boulevard) in Newport, Jersey City, New Jersey is the fourth tallest building in Jersey City. It has 37 floors, it is 531 ft (162 m) tall and is connected to a mall (called the Newport Centre Mall) within the complex. The mall is one of the few enclosed, regional shopping facilities in Hudson County. The building was developed by Melvin Simon & Associates in 1990.", "vector": [-0.018348103389143944, -0.03591682016849518, -0.01979321986436844, 0.005041669122874737, -0.029860321432352066, -0.03724827244877815, 0.00991284754127264, 0.025557447224855423, -0.034098245203495026, 0.08540798723697662, -0.01596122607588768, -0.025963379070162773, 0.00849208701401949, -0.03796271234750748, 0.027960561215877533, -0.016708141192793846, -0.03374102711677551, 0.010781540535390377, -0.0007687327452003956, 0.018185731023550034, -0.008289121091365814, 0.0010325881885364652, -0.03627403825521469, 0.03893695026636124, 0.030672183260321617, 0.007822300307452679, -0.006669454276561737, -0.005565320607274771, -0.06410469859838486, -0.047575172036886215, -0.03877457603812218, 0.017568714916706085, 0.0516994372010231, -0.01795841008424759, -0.006563912145793438, 0.05098499730229378, 0.017032885923981667, -0.008240409195423126, -0.035721972584724426, -0.011244302615523338, 0.03089950606226921, -0.007948138751089573, -0.00720528420060873, -0.01416700892150402, 0.0566030889749527, -0.06615059822797775, -0.005650566425174475, -0.02674276754260063, -0.009799186140298843, 0.048062290996313095, 0.0018490179209038615, -0.035527125000953674, 0.01823444291949272, 0.022131385281682014, -0.004757517017424107, -0.016480818390846252, 0.008410900831222534, 0.15340963006019592, 0.001280713826417923, 0.04936126992106438, 0.061214469373226166, 0.03403329849243164, -0.0201504398137331, 0.013249604031443596, 0.02438836358487606, 0.06647533923387527, -0.0030465158633887768, 0.03835240751504898, -0.0019697826355695724, -0.018624136224389076, -0.03232838585972786, 0.04945869371294975, -0.019403524696826935, -0.02055637165904045, 0.026125751435756683, -0.005723634269088507, 0.03640393540263176, 0.03322143480181694, 0.014329382218420506, 0.003152057994157076, 0.05683040991425514, 0.04796486720442772, -0.04280141741037369, -0.013411976397037506, -0.039196744561195374, 0.00449772085994482, -0.05082262307405472, -0.05361543223261833, 0.021709216758608818, 0.05631081759929657, 0.010270066559314728, 0.030509810894727707, -0.06858618557453156, -0.038904473185539246, -0.029486864805221558, 0.02455073781311512, 0.015092533081769943, 0.021351996809244156, 0.007599037606269121, 0.0630979910492897, 0.05533658340573311, 0.043385960161685944, 0.019289864227175713, 0.025232702493667603, -0.004392178729176521, 0.009027916938066483, 0.05725257843732834, 0.01828315481543541, 0.03138662502169609, -0.01782851107418537, 0.07176868617534637, -0.027018800377845764, 0.0039801583625376225, -0.04367822781205177, -0.014905804768204689, 0.01795841008424759, -0.0041892132721841335, -0.011974979192018509, -0.0040674335323274136, -0.017974646762013435, -0.011577166616916656, -0.0574149526655674, 0.024290941655635834, -0.0439704991877079, -0.003192651318386197, -0.017763562500476837, -0.01995559222996235, 0.026190700009465218, 0.0031277022790163755, -0.0032149774488061666, -0.024404602125287056, 0.02039399929344654, 0.03546217456459999, -0.030038930475711823, -0.026158224791288376, 0.046633411198854446, 0.016870513558387756, 0.01950094848871231, -0.014532347209751606, 0.01925739087164402, -0.015847565606236458, -0.05679793655872345, -0.00069617253029719, -0.07196353375911713, 0.033042822033166885, -0.06413717567920685, -0.003219036851078272, 0.011942504905164242, -0.006109268870204687, -0.022017724812030792, 0.03130543604493141, 0.08034196496009827, 0.0061904555186629295, -0.001422789879143238, 0.027343545109033585, -0.029632998630404472, -0.08923997730016708, 0.008151104673743248, -0.0270837489515543, 0.04296378791332245, -0.013858500868082047, -0.08326467126607895, -0.016838038340210915, -0.073262520134449, -0.03883952647447586, -0.022813349962234497, 0.03314024582505226, 0.04224935173988342, 0.03676115721464157, -0.007412309292703867, 0.021465657278895378, 0.002900380641222, -0.02068626880645752, -0.01766613870859146, -0.0060686757788062096, -0.07741925865411758, 0.05001075938344002, -0.007327063474804163, 0.04445761814713478, -0.04617876559495926, 0.05520668253302574, -0.0067384629510343075, 0.0037325401790440083, -0.040495727211236954, -0.02584971860051155, -0.0053664143197238445, -0.00962869543582201, 0.013736722059547901, 0.008808713406324387, -0.029454389587044716, -0.05683040991425514, 0.03614414110779762, 0.015912514179944992, 0.0307371336966753, -0.018559187650680542, -0.04150243476033211, 0.05819433927536011, -0.011041336692869663, -0.020621320232748985, -0.00039527579792775214, 0.0455942265689373, -0.007217462174594402, -0.03325390815734863, -0.022537317126989365, 0.06400727480649948, -0.00663697998970747, -0.002405144041404128, 0.02174169011414051, 0.0117070646956563, 0.06754700094461441, -0.02630436047911644, -0.03516990318894386, 0.00494830496609211, -0.017406342551112175, 0.028918560594320297, 0.011828843504190445, -0.03403329849243164, -0.004542373586446047, -0.013801670633256435, -0.003324578981846571, 0.03721579909324646, -0.010497388429939747, -0.0054638381116092205, -0.0053420583717525005, -0.0769646093249321, 0.0018662700895220041, -0.006170158740133047, 0.058324236422777176, 0.006446192041039467, 0.04738032445311546, 0.004160797689110041, -0.02373887412250042, -0.03029872663319111, 0.034585364162921906, 0.02088111639022827, 0.0015719697112217546, 0.021205861121416092, -0.02854510210454464, 0.024940431118011475, 0.03357865288853645, 0.0060118455439805984, 0.03783281520009041, -0.03219848498702049, -0.01203180942684412, -0.01188567467033863, -0.05121231824159622, -0.023917483165860176, -0.013566230423748493, -0.007059148512780666, -0.0003762477426789701, -0.024372126907110214, 0.007278351578861475, 0.03789776563644409, 0.04458751529455185, 0.02976289764046669, -0.035527125000953674, -0.03130543604493141, 0.007716757711023092, 0.04942622035741806, -0.05306336656212807, -0.06111704558134079, 0.03167889267206192, 0.010594812221825123, 0.018559187650680542, 0.0026771181728690863, -0.010481150820851326, -0.025346362963318825, 0.030639709904789925, -0.04429524391889572, -0.0038198153488337994, 0.042281825095415115, -0.00850832462310791, 0.060240235179662704, 0.06819649040699005, 0.03484515845775604, 0.02243989333510399, 0.019533423706889153, -0.030363675206899643, -0.002167674247175455, 0.031013166531920433, 0.018965119495987892, -0.00018837758398149163, -0.024664398282766342, -0.005423245020210743, -0.01164211519062519, 0.057512372732162476, 0.0223911814391613, 0.05423244833946228, 0.01523054949939251, -0.05202418193221092, -0.03284797817468643, 0.021936537697911263, 0.006417776923626661, 0.01570954918861389, -0.02055637165904045, -0.03851478174328804, 0.00090725690824911, -0.02227752096951008, 0.026612868532538414, 0.013769196346402168, -0.02549249865114689, 0.042606569826602936, -0.05182933434844017, 0.004940186161547899, 0.015693312510848045, 0.018705323338508606, -0.014102060347795486, 0.00494830496609211, -0.014491754584014416, -0.05186180770397186, 0.04604886844754219, 0.006157980766147375, 0.007789825554937124, 0.019403524696826935, -0.011609640903770924, -0.030526049435138702, 0.08560283482074738, -0.018575426191091537, 0.017925934866070747, 0.0012218537740409374, -0.00283949077129364, 0.032182250171899796, 0.007209343370050192, 0.009336424060165882, -0.00455861072987318, -0.039066847413778305, 0.028902322053909302, 0.01758495159447193, -0.008073977194726467, -0.04299626499414444, -0.010635404847562313, -0.0023198984563350677, -0.00938513595610857, -0.06819649040699005, 0.026320599019527435, -0.03292916342616081, 0.028431441634893417, -0.004075552336871624, -0.05306336656212807, 0.024161042645573616, 0.05377780646085739, -0.011966860853135586, 0.02052389644086361, 0.03575444594025612, 0.0011528454488143325, -0.056538138538599014, 0.025508735328912735, -0.007972494699060917, 0.04078799858689308, 0.02724612131714821, 0.0007915664464235306, -0.01645646244287491, -0.018055833876132965, 0.01807207055389881, 0.0598505400121212, 0.03089950606226921, -0.04056067392230034, -0.06589080393314362, 0.03526732698082924, 0.008216053247451782, 0.05234892666339874, 0.008743764832615852, -0.010456795804202557, 0.03588434308767319, -0.039553966373205185, 0.003456506645306945, 0.008151104673743248, -0.010984506458044052, -0.0193385761231184, 0.051894281059503555, -0.039846234023571014, -0.02633683569729328, -0.00623916694894433, 0.012332199141383171, -0.009815423749387264, -0.0338059738278389, -0.0025066270027309656, 0.010797778144478798, 0.0346178375184536, 0.002610139548778534, 0.005983430426567793, -0.04923137277364731, -0.009677407331764698, -0.004534254781901836, 0.03221472352743149, 0.014913923107087612, 0.02606080286204815, -0.009125339798629284, -0.0307371336966753, 0.021725453436374664, -0.013070994056761265, -0.00686024222522974, 0.02377134934067726, 0.02287829853594303, -0.006194514688104391, 0.011577166616916656, -0.03078584559261799, 0.022894537076354027, 0.034098245203495026, 0.014816499315202236, -0.028106696903705597, 0.024615686386823654, 0.026564156636595726, 0.008451493456959724, -0.005784523673355579, -0.016261614859104156, 0.017373867332935333, -0.004992957226932049, -0.017763562500476837, -0.015141244977712631, 0.0012046017218381166, -0.05247882381081581, -0.03676115721464157, -0.024972906336188316, 0.020166676491498947, -0.03555959835648537, 0.0270837489515543, -0.018331866711378098, 0.006742522120475769, -0.013070994056761265, 0.004420593846589327, 0.019695796072483063, -0.039229221642017365, -0.0021027252078056335, -0.038254983723163605, 0.02271592617034912, 0.0003133283753413707, 0.06865113228559494, 0.0047128647565841675, 0.003777192672714591, -0.0162859708070755, -0.006295997649431229, 0.029048457741737366, 0.028236594051122665, -0.009547509253025055, -0.034715261310338974, 0.03802766278386116, 0.019159967079758644, -0.03562454879283905, 0.010042745620012283, 0.016756853088736534, 0.02752215601503849, -0.03974881395697594, 0.006052438635379076, -0.0040796115063130856, 0.019598372280597687, -0.029568050056695938, -0.014102060347795486, -0.03702095150947571, 0.036014243960380554, -0.016188548877835274, -0.006446192041039467, -0.024891719222068787, -0.006121446844190359, 0.028837373480200768, 0.0037386291660368443, -0.0014989021001383662, 0.006827767938375473, -0.030201302841305733, 0.010602930560708046, -0.02149813249707222, -0.02308938279747963, -0.03864467889070511, -0.05218655243515968, -0.026499208062887192, 0.01616419292986393, -0.034422989934682846, -0.01674061454832554, -0.005281168967485428, -0.02732730843126774, -0.008155163377523422, 0.07417180389165878, -0.03643641248345375, 0.042444195598363876, -0.02805798500776291, -0.03487763553857803, 0.032961636781692505, -0.048679303377866745, 0.0022285638842731714, -0.02511904016137123, -0.008069918490946293, 0.03737817332148552, 0.03848230466246605, 0.01966332085430622, -0.033448755741119385, -0.009937203489243984, -0.03695600479841232, -0.021969012916088104, -0.029210830107331276, 0.05923352390527725, 0.06748205423355103, -0.01701664924621582, -0.012210419401526451, -0.028837373480200768, -0.01860789954662323, -0.02271592617034912, 0.01739010587334633, -0.029015982523560524, -0.005066025070846081, 0.003901001764461398, 0.026109514757990837, -0.06209128350019455, 0.03164641931653023, 0.011983097530901432, -0.007895367220044136, 0.02092982828617096, 0.019046306610107422, 0.0346178375184536, -0.007692401763051748, 0.0005500371917150915, 0.012527045793831348, -0.033773500472307205, -0.02997398190200329, 0.011163116432726383, -0.024079855531454086, -0.03494258224964142, -0.0033814094495028257, 0.0025999911595135927, 0.013257722370326519, -0.005796701647341251, 0.010351252742111683, -0.01995559222996235, -0.0354297012090683, -0.02973042242228985, 0.016562005504965782, 0.014735313132405281, -0.021514369174838066, 0.015587769448757172, 0.009920965880155563, 0.004980779252946377, -0.011715183034539223, 0.014199484139680862, 0.0046641528606414795, -0.03266936540603638, -0.0009224793175235391, -0.008410900831222534, -0.01258387602865696, 0.010010270401835442, -0.03159770742058754, -0.022667214274406433, 0.026856428012251854, -0.010659760795533657, 0.005029491148889065, -0.05452471971511841, -0.01990688033401966, -0.025914667174220085, 0.03659878298640251, -0.01147974282503128, -0.007046971004456282, -0.01107381097972393, 0.06053250655531883, 0.0019647085573524237, -0.019809456542134285, -0.0003014041285496205, 0.022829586640000343, -0.034747734665870667, 0.03526732698082924, -0.02757086791098118, 0.00488741509616375, 0.01227536890655756, -0.00444900942966342, 0.04413287341594696, -0.031256724148988724, 0.013931568711996078, -0.0333838053047657, 0.02198524959385395, 0.009815423749387264, 0.019208678975701332, -0.019208678975701332, -0.004863059148192406, 0.01726020686328411, -0.013184655457735062, -0.007992791011929512, 0.03484515845775604, 0.024453314021229744, 0.003188591916114092, -0.013549993745982647, -0.02825283259153366, -0.004432771820574999, -0.0073189446702599525, 0.005163448862731457, -0.007550325710326433, 0.0009229867137037218, 0.019565898925065994, -0.015327973291277885, -0.0002912558557000011, -0.015417277812957764, -0.006961725186556578, 0.06641039252281189, 0.0018378548556938767, 0.015823209658265114, 0.02849639020860195, 0.0226022657006979, 0.0003770088660530746, 0.001973841805011034, 0.07436665147542953, -0.019192440435290337, 0.002717711264267564, 0.005106618162244558, -0.021157149225473404, -0.02263474091887474, 0.000616508477833122, -0.011146878823637962, -0.013817908242344856, 0.013688010163605213, -0.0035701675806194544, 0.03757302090525627, -0.02279711328446865, -0.0015049909707158804, -0.010716591961681843, -0.030201302841305733, 0.04465246573090553, -0.019354814663529396, 0.007124097552150488, -0.00523245707154274, -0.022618502378463745, -0.004964542109519243, 0.0338059738278389, 0.0007661957060918212, -0.020377760753035545, -0.009052271954715252, 0.0007377804722636938, 0.04432772099971771, 0.028642525896430016, 0.00635282788425684, 0.0086544593796134, 0.007294589187949896, 0.008881781250238419, 0.022342469543218613, 0.01852671429514885, -0.022894537076354027, 0.0041100564412772655, 0.0018672848818823695, -0.006945488043129444, -0.016318446025252342, 0.012794961221516132, 0.0020803988445550203, -0.013363264501094818, 0.01022135466337204, 0.015401041135191917, -0.018542950972914696, 0.004339407663792372, -0.011211828328669071, -0.0073920125141739845, 0.0026060801465064287, -0.04893910139799118, -0.025476260110735893, 0.03005516715347767, 0.019452236592769623, 0.027505917474627495, 0.028398968279361725, -0.003182502929121256, 0.003976099193096161, -0.009929084219038486, -0.0173089187592268, -0.0403008796274662, 0.007176869083195925, 0.01844552718102932, 0.023430366069078445, -0.040203455835580826, -0.01378543395549059, -0.0028618171345442533, -0.0025878131855279207, -0.00979106780141592, 0.04377565160393715, 0.0026811775751411915, 0.007111920043826103, 0.03607919067144394, 0.009864135645329952, -0.0038116967771202326, -0.017032885923981667, 0.0047737546265125275, -0.00989660993218422, 0.020783692598342896, 0.003432150697335601, -0.031825028359889984, -0.00663697998970747, 0.0039679803885519505, 0.000361025333404541, 0.029503101482987404, 0.010960150510072708, 0.016886750236153603, 0.022115148603916168, 0.03659878298640251, 0.006434014067053795, -0.0017607278423383832, -0.008727527223527431, -0.013655535876750946, 0.03387092426419258, -0.014028992503881454, -0.01898135617375374, -0.019111255183815956, -0.0061052097007632256, -0.01950094848871231, 0.010611048899590969, -0.01624537818133831, 0.06793669611215591, -0.01406958606094122, 0.02658039517700672, -0.015579651109874249, -0.0018246620893478394, 0.026515444740653038, -0.00036787541466765106, 0.018916407600045204, -0.002691325731575489, 0.017292682081460953, 0.006393420975655317, 0.02325175702571869, 0.014978872612118721, 0.018494239076972008, 0.039196744561195374, -0.015806972980499268, -0.0033692314755171537, -0.004282577428966761, -0.015620243735611439, -0.02406361885368824, 0.020783692598342896, 0.016838038340210915, -0.03301034867763519, -0.0019302042201161385, 0.042281825095415115, 0.023917483165860176, -0.027148699387907982, -0.006515200715512037, 0.019679559394717216, 0.020215388387441635, -0.017779799178242683, -0.018169494345784187, -0.024940431118011475, 0.014719076454639435, -0.010481150820851326, -0.006275700870901346, 0.0007261099526658654, 0.008727527223527431, -0.011820725165307522, 0.05488193780183792, -0.02190406434237957, -0.018948882818222046, 0.0513097420334816, -0.0822254866361618, -0.0008428152650594711, -0.015043821185827255, -0.0046763308346271515, -0.014995109289884567, 0.004032929427921772, 0.012567639350891113, 0.016886750236153603, -0.03387092426419258, -0.004233865533024073, -0.04491226002573967, 0.0024031144566833973, -0.004465246573090553, -0.02703503705561161, -0.05153706297278404, 0.05267367139458656, 0.013030401431024075, 0.030477337539196014, -0.017568714916706085, -0.010838370770215988, -0.00867069698870182, -0.011000743135809898, 0.0268726646900177, 0.0026527622248977423, 0.05546648055315018, -0.011617759242653847, -0.034585364162921906, 0.009498797357082367, -0.015392922796308994, 0.0006231048610061407, 0.008751883171498775, -0.0013791522942483425, 0.00877623911947012, 0.048679303377866745, -4.265451934770681e-05, -0.014597296714782715, -0.019695796072483063, 0.015319854952394962, 0.028155408799648285, -0.0006185381207615137, -0.010497388429939747, -0.022293757647275925, -0.03029872663319111, -0.0020184942986816168, 0.02011796459555626, 0.020085491240024567, -0.005841354373842478, -0.007359538227319717, 0.013387620449066162, -0.006555793806910515, 0.03877457603812218, 0.025963379070162773, -0.03594929352402687, 0.001935278414748609, -0.02222880907356739, -0.021075963973999023, 0.024161042645573616, -0.01311158761382103, 0.026190700009465218, -0.0015770439058542252, 0.03594929352402687, 0.03465031087398529, 0.05377780646085739, 0.022699689492583275, 0.02617446333169937, -0.019565898925065994, -0.0005173089448362589, 0.002900380641222, 0.016074886545538902, 0.0073798345401883125, 0.003939565271139145, -0.012941095978021622, -0.0040430775843560696, 0.013728602789342403, 0.0201504398137331, 0.016464581713080406, 0.028106696903705597, 0.014175128191709518, 0.0037020952440798283, 0.04634113982319832, -0.006348768714815378, -0.01553093921393156, 0.02914588153362274, 0.038125086575746536, 0.021887825801968575, -0.03721579909324646, 0.05410255119204521, 0.03981376066803932, -0.013939687982201576, -0.000497266068123281, -0.007209343370050192, -0.015336091630160809, -0.04702310636639595, -0.005800761282444, -0.03916427120566368, 0.02068626880645752, 0.0017414460889995098, -0.0067019290290772915, 0.05394017696380615, -0.033773500472307205, -0.007241818122565746, -0.00426633981987834, 0.022894537076354027, 0.028480153530836105, -0.02133576013147831, 0.019371051341295242, -0.003432150697335601, 0.002200148766860366, 5.0741437007673085e-05, 0.01648893766105175, -0.01455670315772295, 0.003846200881525874, -0.001796246855519712, 0.03559207543730736, 0.056245867162942886, 0.015279261395335197, -0.01799088343977928, -0.03728074952960014, 0.005618092138320208, 0.027635816484689713, 0.01416700892150402, 0.0333838053047657, 0.025378836318850517, 0.04185965657234192, 0.009360780008137226, 0.003194680903106928, 0.027587104588747025, 0.011341726407408714, 0.026158224791288376, 0.0011812606826424599, -0.014426805078983307, 0.018429290503263474, -0.013379502110183239, 0.012957333587110043, -0.024161042645573616, -0.033611126244068146, -0.0047615766525268555, -0.020978540182113647, 0.012015572749078274, 0.015449753031134605, -0.0011203709291294217, 0.02308938279747963, -0.009157815016806126, 0.02443707548081875, 0.013135943561792374, 0.0038238747511059046, -0.005386711098253727, -0.030314963310956955, -0.0020519837271422148, 0.03236085921525955, -0.04572412371635437, -0.013403858058154583, 0.038742102682590485, -0.03575444594025612, -0.00500919483602047, -0.004323170520365238, 0.011390437372028828, -0.0054394821636378765, -0.007708638906478882, 0.04091789573431015, 0.024566974490880966, 0.01971203275024891, -0.021189624443650246, -0.056862883269786835, -0.03370855003595352, 0.04461998865008354, -0.017682375386357307, 0.022342469543218613, -0.0014867241261526942, 0.02841520495712757, 0.02500537969172001, 0.025183990597724915, 0.002853698330000043, -0.007509732618927956, -0.00523245707154274, -0.04185965657234192, -0.0066897510550916195, 0.0039618914015591145, 0.029162118211388588, -0.012462097220122814, -0.020426472648978233, -0.031240487471222878, -0.005289287306368351, -0.0034341805148869753, 0.00623916694894433, -0.026759004220366478, 0.000495743821375072, -0.026239411905407906, 0.013517518527805805, 0.02044270932674408, 0.025346362963318825, -0.03057475946843624, -0.011276776902377605, -0.013980280607938766, -0.04552927613258362, -0.012486453168094158, 0.04075552150607109, -0.014857092872262001, -0.004704745952039957, 0.024047382175922394, -0.0015689252177253366, -0.0024213814176619053, -0.027538392692804337, -0.013509400188922882, 0.021611792966723442, -0.021205861121416092, 0.05884382873773575, 0.02549249865114689, 0.02219633385539055, 0.02104348875582218, 0.020670032128691673, 0.05650566518306732, 0.006730344146490097, -0.02732730843126774, 0.021806640550494194, 0.006320353597402573, 0.019533423706889153, 0.004045107401907444, 0.028447680175304413, -0.028074221685528755, -0.009904728271067142, 0.04458751529455185, 0.009482559747993946, 0.0035762565676122904, -0.01034313440322876, -0.005358295980840921, 0.028967272490262985, 0.04198955371975899, -0.0333838053047657, 0.03754054382443428, 0.0028293426148593426, -0.020458947867155075, 0.010952032171189785, 0.06517636030912399, -0.008630103431642056, 0.037443120032548904, -0.004822466056793928, 0.0566030889749527, -0.011228065006434917, 0.006949547212570906, 0.030590998008847237, 0.024615686386823654, 0.011146878823637962, 0.0005173089448362589, 0.029210830107331276, 0.017211494967341423, -0.00995344016700983, 0.015871921554207802, -0.010732828639447689, -0.053030889481306076, 0.03284797817468643, -0.014637889340519905, -0.008962967433035374, 0.03247452154755592, -0.010724710300564766, -0.00573175260797143, -0.007948138751089573, -1.9345172404428013e-05, 0.031208014115691185, -0.00853267963975668, -0.03822251036763191, -0.004660093691200018, -0.04828961193561554, -0.002167674247175455, 0.0061539215967059135, -0.023203045129776, -0.008946729823946953, -0.004582966677844524, 0.014215720817446709, -0.04108026623725891, -0.00949067808687687, -0.03000645712018013, 0.02349531464278698, -0.03367607668042183, -0.0051756263710558414, -0.022098910063505173, 0.0238200593739748, 0.016724377870559692, 0.01726020686328411, 0.0029450329020619392, 0.03627403825521469, -0.010976388119161129, -0.030428625643253326, -0.0016724377637729049, -0.009588101878762245, -0.015060058794915676, 0.021644268184900284, 0.012591995298862457, 0.025021618232131004, -0.01750376634299755, 0.003424032125622034, -0.0023016314953565598, -0.01982569508254528, 0.008037443272769451, -0.03291292488574982, -0.023560263216495514, -0.027587104588747025, -0.0008220112649723887, 0.05549895390868187, -0.010351252742111683, -0.007639630697667599, 0.000985398655757308, -0.019549660384655, -0.022780874744057655, 0.014337500557303429, -0.0006225974066182971, 0.007412309292703867, 0.00427445862442255, 0.02068626880645752, -0.01852671429514885, 0.017000410705804825, -0.0034585364628583193, 0.021351996809244156, -0.0015557324513792992, -0.004286636598408222, -0.005727693438529968, -0.01062728650867939, 0.006555793806910515, -0.010554218664765358, 0.04575659707188606, 0.015206193551421165, 0.005033550783991814, -0.010083338245749474, -0.014702838845551014, -0.001283758319914341, 0.005585617385804653, -0.028967272490262985, -0.02333294227719307, -0.0022346528712660074, -0.004493661690503359, -0.004936126992106438, 0.016277853399515152, 0.032880451530218124, 0.016294090077280998, -0.006458370015025139, 0.02011796459555626, -0.020572608336806297, 5.051944390288554e-05, 0.0019159966614097357, -0.02703503705561161, 0.008849306963384151, -0.007810121867805719, 0.03831993415951729, -0.009019797667860985, 0.010732828639447689, -0.010870845057070255, 0.024128567427396774, -0.03008764237165451, 0.06598822772502899, -0.0001220965787069872, 0.00719716539606452, -0.016359038650989532, 0.029080932959914207, 0.007298648357391357, -0.0010138138895854354, -0.01739010587334633, -0.029990218579769135, -0.034098245203495026, 0.07527593523263931, -0.022001486271619797, 0.029746660962700844, 0.00906039122492075, 0.001151830656453967, -0.012835553847253323, 0.007351419422775507, -0.008743764832615852, 0.0034524474758654833, 0.004286636598408222, -0.012981689535081387, 0.029941506683826447, -0.0105866938829422, -0.05163448676466942, 0.012056165374815464, -0.007217462174594402, 0.012486453168094158, 0.0023077204823493958, 0.0028049866668879986, 0.005873828660696745, 0.03854725509881973, -0.0032027994748204947, -0.01799088343977928, 0.009092865511775017, 0.0040471372194588184, -0.031208014115691185, -0.02141694538295269, -0.023755110800266266, -0.005524727515876293, -0.020329048857092857, -0.010952032171189785, 0.008500205352902412, 0.020426472648978233, -0.03357865288853645, -0.014321262948215008, -0.007209343370050192, 0.0054881940595805645, -0.0033387865405529737, 0.023722637444734573, -0.01329019758850336, -0.013931568711996078, 0.013079112395644188, 0.03000645712018013, -0.0012492542155086994, -0.027018800377845764, -0.006170158740133047, 0.009579983539879322, 0.0307371336966753, -0.009937203489243984, 0.009003560990095139, 0.0030404268763959408, -0.018055833876132965, 0.03156523406505585, 0.0028922618366777897, 0.010773422196507454, -0.002691325731575489, 0.03111059032380581, 0.017114071175456047, 0.016756853088736534, 0.009044153615832329, -0.024615686386823654, 0.005195923149585724, -0.009214645251631737, 0.03935911878943443, -0.027798188850283623, -0.03159770742058754, 0.03757302090525627, -0.00405931519344449, -0.0031297318637371063, -0.010692236013710499, 0.015904396772384644, 0.03367607668042183, 0.007245877292007208, 0.027099987491965294, 0.009068509563803673, -0.03187374025583267, -0.01685427501797676, -0.0032596299424767494, -0.02344660274684429, 0.009441966190934181, -0.0027562747709453106, 0.005776405334472656, -0.014710957184433937, -0.015547175891697407, 0.014767787419259548, -0.027229884639382362, 2.8700625989586115e-05, -0.03815755993127823, -0.0008336817845702171, 0.02455073781311512, -0.001389300567097962, 0.01158528495579958, 0.02101101353764534, -0.0012380910338833928, -0.009279593825340271, 0.00922276359051466, 0.029259542003273964, 0.0032900748774409294, -0.011333607137203217, 0.003596553113311529, 0.022991960868239403, 0.0066166832111775875, 0.009839779697358608, -0.007400131318718195, 0.03227967396378517, 0.017779799178242683, 0.0692356750369072, 0.014256314374506474, -0.011877555400133133, -0.019890643656253815, -0.045301955193281174, 0.004453068599104881, 0.026515444740653038, 0.0013223218265920877, -0.01828315481543541, -0.013509400188922882, 0.012129233218729496, -0.023949958384037018, -0.0014715016586706042, -0.010562337934970856, -0.004412475507706404, 0.030769607052206993, 0.018997594714164734, -0.0015506583731621504, -0.023625213652849197, -0.004582966677844524, 0.014702838845551014, 0.013574349693953991, 0.001796246855519712, -0.014743432402610779, -0.009888491593301296, -0.012023691087961197, 0.012324079871177673, -0.007274292409420013, -0.041599858552217484, 0.0047128647565841675, -0.009027916938066483, -0.0012563579948619008, -0.030152590945363045, 0.021595556288957596, 0.006174217909574509, 0.01823444291949272, -0.015774497762322426, 0.021465657278895378, -0.004384060390293598, 0.007684283424168825, 0.03141909837722778, 0.0012188092805445194, 0.02039399929344654, 0.029210830107331276, 0.03526732698082924, 0.014443042688071728, -0.03370855003595352, -0.013160299509763718, 0.02039399929344654, -0.003923328127712011, 0.02927577868103981, 0.017568714916706085, 0.04286636784672737, 0.008435256779193878, 0.01494639739394188, -0.0016683784779161215, -0.022813349962234497, -0.005816998425871134, -0.01971203275024891, -0.019371051341295242, -0.01604241319000721, 0.015149363316595554, -0.0007154542836360633, -0.021709216758608818, 0.032068587839603424, 0.009937203489243984, -0.015254905447363853, -0.007753291632980108, 0.029649237170815468, -0.008362188935279846, -0.002742067212238908, 0.004997016862034798, 0.004879296757280827, 0.010383727960288525, -0.014215720817446709, 0.027213647961616516, -0.0014704868663102388, 0.008354070596396923, -0.0015181838534772396, -0.024290941655635834, -0.019841931760311127, 0.013866620138287544, -0.016724377870559692, 0.017779799178242683, -0.026726529002189636, 0.016196666285395622, 0.02333294227719307, 0.010968268848955631, 0.005752049386501312, 0.01693546213209629, -0.009441966190934181, -0.006868361029773951, -0.011731420643627644, 0.00837030727416277, 0.004765635821968317, -0.005256813019514084, 0.03903437405824661, 0.01914372853934765, -0.02938944101333618, -0.0443926677107811, -0.028610052540898323, -0.016350921243429184, 0.013549993745982647, -0.011146878823637962, -0.02443707548081875, -0.013200892135500908, 0.014443042688071728, -0.01074906624853611, 0.0018794628558680415, 0.004599203821271658, 0.01247833389788866, 0.03005516715347767, -0.010554218664765358, 0.01739010587334633, -0.0008428152650594711, -0.01742257922887802, 0.009247119538486004, 0.025216463953256607, -0.02630436047911644, -0.030477337539196014, -0.018883932381868362, 0.015806972980499268, -0.006827767938375473, 0.025135278701782227, 0.029210830107331276, 0.009677407331764698, 0.013209010474383831, 0.03314024582505226, 0.013095350004732609, -0.009198407642543316, -0.048711780458688736, 0.004142530728131533, 0.00922276359051466, 0.00048305848031304777, -0.016537649556994438, 0.021709216758608818, -0.029097169637680054, 0.007030733395367861, 0.012104877270758152, -0.00022579939104616642, 0.02039399929344654, 0.015449753031134605, -0.007525969762355089, 0.001497887191362679, 0.01836434006690979, -0.02011796459555626, -0.04893910139799118, -0.01652953028678894, 0.01958213560283184, 0.0018693145830184221, -0.026499208062887192, 0.0033083416055887938, -0.0022569792345166206, -0.021969012916088104, 0.03757302090525627, -0.025589922443032265, -0.0073311226442456245, 0.0014238046715036035, 0.015847565606236458, -0.013931568711996078, -0.03403329849243164, 0.009685525670647621, -0.038092613220214844, 0.011406674981117249, -0.007128157187253237, 0.03273431584239006, 0.05419997498393059, 0.008313477039337158, 0.010692236013710499, -0.02633683569729328, 0.03968386352062225, 0.011650233529508114, 0.017130309715867043, 0.0008179519791156054, -0.019858168438076973, -0.02141694538295269, 0.027944324538111687, -0.00962869543582201, 0.011999335139989853, -0.0014187305932864547, 0.02128704823553562, 0.02235870622098446, -0.013330790214240551, 0.018575426191091537, -0.007996850647032261, -0.0002412755275145173, 0.014897685497999191, 0.03594929352402687, -0.014629771001636982, 0.006109268870204687, -0.035072483122348785, 0.012843672186136246, -0.009994033724069595, -0.03154899552464485, 0.006949547212570906, -0.0008808713755570352, -0.00020499540551099926, 0.0037264511920511723, -0.04825713485479355, 0.02312185801565647, -0.024826770648360252, -0.01877027191221714, 0.026807716116309166, 0.04205450415611267, -0.0009651021100580692, 0.0032332444097846746, 0.012161707505583763, -0.018104543909430504, 6.66377763991477e-06, 0.001398434047587216, -0.005532846320420504, -0.017698613926768303, -0.02830154448747635, -0.00023924587003421038, 0.01742257922887802, -0.0023503433912992477, -0.0019931236747652292, 0.008017146959900856, 0.022829586640000343, 0.0025330125354230404, -0.022569790482521057, 0.004883355926722288, -0.007911604829132557, -0.02536259964108467, -0.020799929276108742, 0.019890643656253815, -0.02557368390262127, -0.008792475797235966, 0.005260872188955545, -0.0072377584874629974, 0.0009356720838695765, -0.022098910063505173, -0.024242229759693146, -0.0006951576797291636, 0.04088541865348816, 0.019841931760311127, -0.0006291938479989767, -0.0382874570786953, 0.0012685359688475728, 0.016708141192793846, -0.012145470827817917, -0.018575426191091537, 0.008451493456959724, 0.020377760753035545, -0.005800761282444, 0.032555706799030304, -0.016472700983285904, -0.0025066270027309656, 0.004294755402952433, 0.0015496434643864632, -0.006742522120475769, 0.024907955899834633, 0.020085491240024567, -0.01130113285034895, 0.02101101353764534, 0.018137019127607346, 0.009961558505892754, 0.0029612702783197165, -0.0162859708070755, -0.037767864763736725, 0.008589510805904865, 0.0006799352704547346, 0.03429309278726578, -0.018088307231664658, -0.01117935311049223, 0.018299391493201256, 0.0038421417120844126, -0.04841950908303261, 0.027944324538111687, 0.02092982828617096, -0.016310326755046844, -0.004574847873300314, 0.0014390271389856935, -0.01231596153229475, 0.00849208701401949, -0.0039375354535877705, 0.01011581253260374, -0.0018195878947153687, -0.004509898833930492, -0.019371051341295242, 0.02287829853594303, 0.02922706864774227, -0.0036006122827529907, -0.007103801239281893, 0.015441633760929108, 0.021839113906025887, 0.012161707505583763, -0.0012492542155086994, -0.014102060347795486, 0.025135278701782227, -0.0012076462153345346, -0.014581059105694294, -0.02422599121928215, -0.022163860499858856, 0.011349844746291637, 0.018737798556685448, 0.012900503352284431, 0.002559398068115115, -0.00906039122492075, 0.01722773350775242, 0.01682180166244507, 0.004154708702117205, 0.010335016064345837, 0.004201390780508518, -0.0048346440307796, -0.04923137277364731, -0.015003228560090065, -0.00877623911947012, 0.013712366111576557, 0.014889567159116268, -0.009076627902686596, 0.037767864763736725, 0.046438563615083694, -0.0031540878117084503, -0.008914255537092686, 0.004118175245821476, 0.005585617385804653, -0.03721579909324646, 0.013614942319691181, -0.021595556288957596, -0.011203709058463573, 0.013801670633256435, -0.025151515379548073, -0.0038807052187621593, 0.010489270091056824, 0.024989143013954163, 0.006405598949640989, -0.006251344922930002, 0.009092865511775017, -0.023625213652849197, -0.007830418646335602, 0.010481150820851326, 0.03037991374731064], "id": 56}, {"title": "Thomas P. Hughes", "text": "Thomas Parke Hughes (September 13, 1923 - February 3, 2014) was an American historian of technology. He was an emeritus professor of history at the University of Pennsylvania and a visiting professor at MIT and Stanford.He received his Ph.D. from the University of Virginia in 1953.He, along with John B. Rae, Carl W.", "vector": [-0.0011566150933504105, 0.02045382373034954, -0.032816026359796524, 0.03800065815448761, 0.04102752357721329, 0.0012109337840229273, -0.013973033986985683, 0.005210855044424534, 0.004982341546565294, 0.052116043865680695, -0.013133902102708817, -0.006492028944194317, 0.015688756480813026, 0.03257627412676811, 0.003187949536368251, 0.008166545070707798, -0.07078671455383301, 0.0034164628013968468, -0.06113670393824577, 0.01801135204732418, 0.05613188445568085, -0.018071290105581284, -0.07528205960988998, 0.007567165419459343, 0.031197700649499893, 0.03095794841647148, 0.022536667063832283, 0.004802527837455273, 0.021472768858075142, 0.018311042338609695, -0.014849626459181309, 0.061196643859148026, 0.03016377054154873, -0.047380946576595306, 0.013508514501154423, -0.030133802443742752, -0.02745157852768898, -0.00461896788328886, -0.021292954683303833, 0.03566307574510574, 0.016273152083158493, -0.014752226881682873, -0.02067859098315239, 0.026597462594509125, -0.006877879146486521, 0.006896609906107187, -0.03067324310541153, -0.018535809591412544, 0.01612330786883831, 0.013298731297254562, -0.007619611453264952, -0.046272095292806625, -0.026357712224125862, 0.013366161845624447, -0.032905932515859604, -0.016333090141415596, 0.0715659037232399, 0.06982770562171936, -0.010017129592597485, 0.010211927816271782, -0.007649580482393503, 0.031197700649499893, -0.013043995015323162, 0.006769241765141487, 0.04741091653704643, 0.0039933654479682446, 0.00921545922756195, 0.023016171529889107, -0.014579905197024345, -0.004390454385429621, 0.04192659258842468, -0.03725143149495125, 0.013276254758238792, 0.027511516585946083, 0.04417426511645317, -0.02096329629421234, 0.014572412706911564, 0.010122020728886127, -0.0023038648068904877, -0.001865568570792675, -0.007331159897148609, -0.03269615024328232, -0.021772459149360657, 0.00305683515034616, 0.0005694105057045817, -0.0015583866043016315, 0.028725260868668556, -0.05652148276567459, 0.02578830160200596, 0.05568234995007515, 0.010002144612371922, 0.03707161918282509, 0.03749118372797966, -0.042675815522670746, -0.054843220859766006, 0.016887515783309937, 0.014917056076228619, -0.006394629366695881, 0.03635236248373985, -0.02906990423798561, 0.003877235809341073, 0.011987589299678802, 0.03722146525979042, 0.014744734391570091, 0.04956867918372154, -0.08019696921110153, -0.03725143149495125, 0.028545446693897247, 0.06233546510338783, 0.06020766496658325, 0.002470567123964429, 0.03647223860025406, -0.012144926004111767, 0.0019386179046705365, -0.06287490576505661, -0.008099114522337914, -0.012796751223504543, 0.03854009881615639, -0.03602270409464836, 0.012407154776155949, -0.0009739916422404349, 0.017471911385655403, 0.020393885672092438, 0.01897035911679268, -0.0035232272930443287, 0.011118489317595959, -0.03016377054154873, -0.0024761862587183714, -0.009859791956841946, -0.03626245632767677, -0.015014455653727055, 0.05930859595537186, 0.03374506160616875, -0.030778134241700172, -0.047560758888721466, -0.004693890456110239, 0.046541813760995865, 0.0071738227270543575, 0.0024537097197026014, 0.02478433959186077, -0.012070003896951675, 0.054093994200229645, -0.04075780138373375, -0.08337368071079254, -0.055532507598400116, -0.03964895009994507, -0.025158952921628952, -0.002210211707279086, 0.01603339985013008, 0.06695068627595901, -0.017292097210884094, -0.012032542377710342, -0.03353527933359146, -0.014534952118992805, -0.013785727322101593, -0.01598844677209854, -0.02054373174905777, -0.002099701203405857, -0.02016911841928959, 0.01583860255777836, -0.01420529279857874, -0.012174895033240318, -0.037101589143276215, 0.013673343695700169, -0.025158952921628952, -0.05831962078809738, 0.03623248636722565, -0.007342398166656494, -0.0010788830695673823, 0.016707701608538628, -0.020199088379740715, -0.008990691974759102, 0.051336850970983505, -0.0026597464457154274, -0.008511188440024853, 0.0010217546951025724, -0.019749553874135017, 0.03593279793858528, -0.014287707395851612, 0.016692718490958214, -0.017891475930809975, -0.015553897246718407, 0.0072562373243272305, 0.021532706916332245, 0.019779521971940994, 0.014804672449827194, 0.025084029883146286, 0.07875846326351166, -0.049538712948560715, -0.04702131822705269, -0.030643275007605553, -0.003806059481576085, 0.0016379916341975331, 0.008248959667980671, 0.0015040677972137928, -0.02629777416586876, 0.03173714131116867, -0.0011360113276168704, -0.03722146525979042, 0.013201332651078701, -0.012871673330664635, -0.005169647745788097, 0.022416790947318077, 0.030043894425034523, -0.05115703493356705, -0.012287278659641743, 0.03140748292207718, 0.018490856513381004, -0.033924877643585205, 0.005031041335314512, -0.035303451120853424, -0.027526501566171646, 0.020274009555578232, 0.010968644171953201, -0.04072783514857292, 0.013868141919374466, -0.014017987065017223, 0.03955904394388199, 0.032726116478443146, -0.021337907761335373, 0.020513761788606644, 0.011305795051157475, 0.024724403396248817, -0.01754683442413807, -0.016917485743761063, -0.006937817204743624, -0.016363058239221573, 0.011380717158317566, 0.0072824605740606785, 0.0358428917825222, 0.0019386179046705365, 0.01718720607459545, -0.0012596333399415016, 0.055562473833560944, -0.0003273173642810434, 0.0007613992202095687, 0.014175323769450188, -0.026792261749505997, -0.02339078299701214, -0.03173714131116867, -0.02381034940481186, 0.016752656549215317, 0.011568023823201656, -0.0032403951045125723, 0.01068393886089325, -0.004926149733364582, -0.015074393711984158, -0.05861930921673775, -0.011350748129189014, 0.04941883683204651, 0.01621321402490139, -0.018775561824440956, 0.01515680830925703, -0.004547791555523872, -0.021337907761335373, 0.04030826687812805, -0.03994864225387573, -0.026058021932840347, -0.0348239466547966, -0.017696678638458252, -0.012489569373428822, 0.012871673330664635, -0.01072889193892479, 0.036682020872831345, -0.05643157660961151, 0.03164723515510559, 0.021502738818526268, 0.017771601676940918, 0.01723215915262699, -0.0468115359544754, -0.017247144132852554, -0.04956867918372154, 0.0068329256027936935, -0.02698705904185772, -0.016617795452475548, -0.03311571478843689, -0.052985142916440964, -0.034614164382219315, -0.027301734313368797, 0.054603468626737595, -0.0466916598379612, -0.03500375896692276, -0.017696678638458252, -0.011867713183164597, 0.01952478662133217, -0.026447618380188942, 0.019869428128004074, 0.01658782549202442, 0.03215670958161354, -0.08403299748897552, -0.01598844677209854, -0.04564274474978447, 0.012631922028958797, 0.0026560002006590366, -0.01865568570792675, -0.03458419442176819, 0.004004604183137417, -0.02012416534125805, -0.0537043996155262, -0.03578295186161995, 0.08199510723352432, 0.030778134241700172, -0.0233458299189806, -0.0003952158149331808, -0.04822007566690445, -0.05043778195977211, 0.00872846320271492, 0.02463449537754059, 0.03653217852115631, -0.03919941559433937, -0.0030081355944275856, 0.016363058239221573, 0.011935143731534481, -0.0208584051579237, 0.05355455353856087, -0.0010704542510211468, 0.026702355593442917, 0.05112706869840622, -0.02109815739095211, -0.004626460373401642, 0.0037760904524475336, -0.0031542344950139523, -0.05790005624294281, 0.014842133969068527, 0.04120733588933945, -0.04968855530023575, 0.007226268760859966, 0.012212356552481651, -0.0099496990442276, 0.012519538402557373, -0.03925935551524162, -0.024035116657614708, 0.015733711421489716, -0.021248001605272293, 0.11124482750892639, -0.058049898594617844, -0.0028020988684147596, 0.05592210218310356, -0.08181529492139816, 0.019554754719138145, 0.01841593347489834, 0.042316190898418427, -0.03961898013949394, -0.0030868041794747114, 0.00893824640661478, -0.04150702804327011, 0.030298631638288498, 0.06092692166566849, -0.019584722816944122, 0.019779521971940994, 0.0006906911730766296, -0.07887833565473557, 0.03353527933359146, 0.028455540537834167, -0.02174248918890953, -0.038809821009635925, 0.07576156407594681, -0.0014375741593539715, 0.052895236760377884, -0.04630206152796745, 0.061376456171274185, 0.008915768936276436, 0.02509901486337185, 0.04699134826660156, -0.0025286320596933365, 0.027811206877231598, -0.02225196175277233, -0.018221136182546616, -0.04486355185508728, -0.0018824260914698243, -0.024949170649051666, 0.03071819618344307, 0.0022570383735001087, -0.0308081042021513, 0.011553038842976093, 0.0030680736526846886, -0.0006658731144852936, 0.0039933654479682446, -0.022761434316635132, -0.0010301833972334862, -0.04546293243765831, 0.007746979594230652, 0.04063792526721954, 0.03542332723736763, -0.019359955564141273, -0.020184103399515152, -0.025413688272237778, -0.005394414998590946, 0.020528746768832207, -0.014145354740321636, 0.013598421588540077, -0.02915981039404869, -0.0052295858040452, -0.01810126006603241, 0.02915981039404869, -0.030373554676771164, 0.005866426508873701, 0.021218033507466316, 0.014130370691418648, -0.0018777434015646577, 0.013628390617668629, 0.021218033507466316, -0.02694210596382618, -0.04504336789250374, 0.017786584794521332, -0.004308039788156748, -0.03215670958161354, 0.011732853017747402, -0.04408435896039009, 0.002376914257183671, -0.0006335627986118197, 0.009155521169304848, 0.017217174172401428, -0.030987918376922607, -0.011013597249984741, -0.0005324175581336021, -0.014759719371795654, 0.017861507833003998, 0.026417650282382965, -0.025323782116174698, 0.07594137638807297, 0.033325497061014175, 0.03713155537843704, 0.005664135795086622, 0.04213637486100197, 0.04144708812236786, -0.023825332522392273, -0.00596382562071085, -0.002099701203405857, 0.021352892741560936, -0.017022376880049706, -0.01994435116648674, 0.003577546216547489, 0.05996791273355484, -0.0198993980884552, -0.023375798016786575, -0.014594890177249908, 0.04513327404856682, 0.026222851127386093, 0.045343056321144104, -0.004780051298439503, -0.009620040655136108, -0.0551728792488575, 0.012362201698124409, -0.10411220788955688, 0.03329552710056305, -0.0795975923538208, -0.053914181888103485, 0.00016564881661906838, 0.03266618028283119, -0.010571555234491825, -0.023600565269589424, -0.0323365218937397, -0.019359955564141273, -0.016108322888612747, -0.03910950943827629, 0.0038472667802125216, -0.00020720735483337194, -0.005570482928305864, 0.016452966257929802, 0.016887515783309937, 0.05361449345946312, 0.009792361408472061, -0.032036833465099335, -0.05061759427189827, -0.010174466297030449, 0.009073106572031975, -0.012579476460814476, -0.007327413652092218, 0.030613305047154427, 0.042406097054481506, 0.039079539477825165, 0.05115703493356705, 0.04657178372144699, -0.0019002201734110713, 0.03329552710056305, -0.0012128069065511227, 0.013928079977631569, 0.0005562990554608405, -0.02016911841928959, 0.009987160563468933, 0.031197700649499893, 0.028575414791703224, -0.005956333130598068, -0.021667568013072014, -0.005926364567130804, -0.007372367195785046, -0.009080599062144756, -0.013276254758238792, 0.009807346388697624, 5.581135701504536e-05, 0.014707273803651333, -0.0023319607134908438, 0.014602381736040115, -0.017202191054821014, 0.018685653805732727, -0.03266618028283119, 0.03473404049873352, -0.018730608746409416, -0.011395702138543129, 0.02827572636306286, 0.08019696921110153, 0.014062940143048763, -0.049808431416749954, -0.004843735136091709, 0.014602381736040115, 0.03824041038751602, 0.04495345801115036, -0.024065084755420685, 0.010601524263620377, 0.010653969831764698, -0.011485609225928783, 0.017696678638458252, 0.02496415376663208, 0.021292954683303833, -0.002871402306482196, -0.0317671112716198, 0.02607300691306591, 0.01805630698800087, 0.025713378563523293, 0.03125763684511185, 0.03860003873705864, -0.011478116735816002, 0.016602810472249985, -0.01570374146103859, -0.0021914811804890633, -0.04555283859372139, -0.013201332651078701, 0.016917485743761063, -0.02478433959186077, -0.024065084755420685, 9.406277240486816e-05, -0.0169025007635355, 0.004285563249140978, -0.014864610508084297, 0.04270578548312187, 0.020199088379740715, 0.02842557057738304, 0.025998083874583244, -0.03997860848903656, 0.011125980876386166, 0.013133902102708817, 0.05628173053264618, 0.0015714979963377118, -0.026447618380188942, 0.011096011847257614, 0.007368620950728655, 0.007053947076201439, -0.004888688679784536, 0.016183245927095413, -0.02072354406118393, -0.004180671647191048, 0.014549936167895794, 0.004169433377683163, 0.0327860563993454, -0.006203577388077974, -0.027481548488140106, -0.004221878945827484, -0.025578517466783524, 0.003884728066623211, 0.006645619869232178, 0.0009332525660283864, -0.010009637102484703, -0.042675815522670746, -0.04123730584979057, -0.00710639264434576, -0.00953762512654066, 0.031167732551693916, -0.01783153787255287, -0.003575673094019294, -0.013043995015323162, -0.005810234695672989, -0.03857006877660751, 0.025908177718520164, -0.017157236114144325, 0.030088849365711212, -0.011845236644148827, -0.019359955564141273, -0.051936231553554535, 0.019929366186261177, -0.012639414519071579, 0.012886658310890198, 0.020333947613835335, 0.036322396248579025, -0.02874024398624897, 0.00218211580067873, -0.011830251663923264, -0.035723015666007996, -0.003408970544114709, -0.02565344050526619, -0.02445468120276928, -0.015673773363232613, -0.00682917982339859, 0.02496415376663208, 0.05352458357810974, 0.033085744827985764, 0.00022230891045182943, -0.032306551933288574, 0.010489140637218952, 0.03311571478843689, 0.008503695949912071, 0.04390454664826393, 0.0144150760024786, 0.012826720252633095, -0.019030297175049782, -0.004131972324103117, 0.009635024704039097, -0.07797926664352417, -0.0023300875909626484, -0.007308683358132839, 0.000565196096431464, -0.043365102261304855, 0.008001715876162052, -0.018161198124289513, 0.04935889691114426, 0.011687899008393288, 0.01241464726626873, 0.01759178750216961, 0.019180143252015114, 0.009118059650063515, 0.01980949006974697, 0.02118806354701519, 0.032905932515859604, -0.028245756402611732, 0.030643275007605553, -0.0144150760024786, -0.013336192816495895, 0.004941134247928858, -0.025413688272237778, 0.007278714329004288, -0.009125552140176296, 0.013530991040170193, 0.009275397285819054, 0.004929895978420973, -0.004420423414558172, -0.007226268760859966, -0.00598630215972662, 0.011178426444530487, 0.035033728927373886, -0.020528746768832207, -0.00012502681056503206, -0.009859791956841946, -0.032396458089351654, 0.02285134233534336, -0.00948517955839634, 0.001955475425347686, 0.008930753916501999, -0.0035344657953828573, -0.010204435326159, 0.007136361673474312, 0.016932468861341476, -0.019015314057469368, -0.025173937901854515, 0.019000329077243805, 0.014092909172177315, -0.01515680830925703, 0.0012680621584877372, 0.015074393711984158, 0.01050412468612194, -0.01907525025308132, -0.028979996219277382, -0.03569304570555687, 0.02160762995481491, 0.05661138892173767, 0.00992722250521183, -0.007125123403966427, -0.025353750213980675, -0.003236649092286825, -0.03215670958161354, 0.027106935158371925, -0.005750296637415886, 0.004776305053383112, -0.016647763550281525, 0.009305366314947605, -0.024154992774128914, -0.03377503156661987, -0.03476400673389435, 0.0258931927382946, 0.013126409612596035, -0.0056491512805223465, 0.02671733871102333, 0.008893292397260666, -0.019359955564141273, -0.025683410465717316, -0.02800600416958332, 0.013800712302327156, -0.028994981199502945, 0.028725260868668556, -0.03260624408721924, 0.0007108265999704599, -0.039678920060396194, 0.010833784006536007, 0.0003577546158339828, 0.0179214458912611, 0.013029010966420174, -0.0011715994914993644, 0.011118489317595959, -0.0482800155878067, -0.004412931390106678, -0.025113999843597412, -0.02671733871102333, 0.02892005816102028, -0.004555284045636654, 0.006484536454081535, 0.011538054794073105, 0.016243183985352516, 0.01169539149850607, -0.048160139471292496, -0.04090764746069908, -0.017666708678007126, 0.026732323691248894, 0.008720970712602139, -0.01374826580286026, 0.009934714064002037, 0.018116243183612823, 0.021248001605272293, -0.004251847974956036, 0.009013168513774872, -0.04887939617037773, 0.014115385711193085, -0.0010601524263620377, 0.021937288343906403, -0.004461630713194609, 0.01490207202732563, -0.0012989676324650645, -0.042346157133579254, -0.02611795999109745, 0.04141712188720703, -0.050048183649778366, -0.002416248433291912, 0.0051359329372644424, -0.003176711034029722, 0.05292520672082901, 0.005622928496450186, 0.02698705904185772, 0.024904215708374977, 0.013590929098427296, -0.02569839358329773, -0.013388638384640217, 0.02307610958814621, 0.04836992174386978, -0.014100401662290096, 0.014295199885964394, 0.003963396418839693, -0.043544918298721313, -0.006480790209025145, 0.016198229044675827, 0.011223380453884602, -0.0009360621334053576, -0.009410257451236248, -0.0004570268210954964, -0.015523928217589855, -0.0547233447432518, -0.03671199083328247, 0.01068393886089325, -0.03200686350464821, 0.04363482445478439, -0.019644660875201225, 0.011260841973125935, -0.018685653805732727, -0.04357488453388214, 0.024859262630343437, -0.015508943237364292, 0.015598850324749947, -0.024574557319283485, -0.004289309028536081, -0.007342398166656494, -0.006222308147698641, 0.017531849443912506, 0.011230872943997383, 0.01093867514282465, 0.0033565249759703875, 0.030927980318665504, 0.004761320538818836, 0.0308081042021513, -0.01574869453907013, 0.014280215837061405, -0.00819651409983635, -0.013103933073580265, -0.008653541095554829, -0.026657400652766228, -0.02165258303284645, -0.06898857653141022, 0.002747780177742243, -0.013418607413768768, 0.010376757010817528, -0.019060267135500908, 0.008885800838470459, -0.007593388669192791, -0.00829391274601221, -0.04423420503735542, 0.0072562373243272305, 0.01861073262989521, -0.002253292128443718, 0.02169753611087799, 0.012624429538846016, 0.007289952598512173, 0.011987589299678802, 0.0233458299189806, 0.01038424950093031, 0.0008105670567601919, 0.006136147305369377, -0.0024387252051383257, -0.00624103844165802, 0.016138290986418724, -0.022821372374892235, 0.03248636797070503, -0.04570268467068672, -0.00644707540050149, -0.02915981039404869, 0.014939532615244389, 0.015164299868047237, 0.02805095911026001, 0.02458954229950905, 0.00712886918336153, 0.024529604241251945, 0.0238553024828434, -0.004678905941545963, -0.0342545360326767, 0.005053517874330282, -0.02336081489920616, 0.0022589112631976604, -0.01574869453907013, 0.013823188841342926, 0.014295199885964394, 0.018685653805732727, 0.031946923583745956, -0.01439259946346283, 0.015553897246718407, -0.0008377264603041112, -0.01796639896929264, 0.04417426511645317, -0.022791404277086258, -0.053494617342948914, -0.018251104280352592, 0.02836563251912594, -0.015958478674292564, 0.03422456607222557, 0.02533876709640026, 0.02270149625837803, 0.026972075924277306, -0.00558546744287014, -0.018400948494672775, -0.018850483000278473, 0.003575673094019294, -0.007361128926277161, -0.007421066984534264, -0.04830998554825783, -0.0007033343426883221, -0.0238553024828434, 0.02256663702428341, -0.03266618028283119, -0.029968973249197006, 0.0047201132401824, 0.04111742973327637, 0.017801569774746895, -0.0029875319451093674, 0.020259026437997818, -0.013883126899600029, -0.012534522451460361, 0.03434444218873978, -0.026687370613217354, -0.0010114528704434633, -0.021712521091103554, 0.010931182652711868, 0.005300762131810188, 0.0317671112716198, 0.002629777416586876, 0.04947877302765846, -0.018341010436415672, 0.003925935365259647, 0.03895966336131096, -0.0055779749527573586, -0.0646730437874794, 0.009177997708320618, -8.563399751437828e-05, -0.019794506952166557, -0.015643803402781487, 0.03662208467721939, 0.02270149625837803, -0.014130370691418648, -0.013793219812214375, -0.014010494574904442, 0.0002183286560466513, 0.012084987945854664, -0.004499092232435942, -0.0025473625864833593, 0.006585681810975075, 0.0019779521971940994, 0.05067753419280052, -0.002612919779494405, -0.0005085360025987029, -0.002685969229787588, -0.03007386438548565, 0.006608158349990845, 0.00013111425505485386, 0.0009510466479696333, 0.012092480435967445, -0.019374940544366837, -0.020094195380806923, 0.007394844200462103, 0.010878737084567547, -0.014250246807932854, -0.013156378641724586, -0.007604626938700676, -0.06107676774263382, 0.041986532509326935, 0.013186347670853138, 0.010054590180516243, -0.01142567116767168, -0.0045140767470002174, 0.047830481082201004, -0.03224661573767662, -0.044563863426446915, -0.002749653300270438, 0.025818269699811935, 0.0026822229847311974, -0.02791609801352024, -0.024199945852160454, -0.04441401734948158, -0.010668953880667686, -0.0006611904827877879, 0.0149245485663414, 0.01658782549202442, 0.014025479555130005, -0.004637698642909527, -0.0012605699012055993, -0.031077824532985687, 0.010122020728886127, -0.01301402598619461, -0.032036833465099335, 0.016363058239221573, 0.0027983528561890125, -0.02045382373034954, 0.01847587153315544, 0.005169647745788097, -0.011657929979264736, -0.023840317502617836, -0.011822760105133057, 0.01340362336486578, -0.00997217558324337, -0.006799210794270039, -0.007934285327792168, 0.01612330786883831, -0.029744205996394157, -0.0045140767470002174, -0.04039817675948143, 0.04015842452645302, 0.003500750521197915, 0.02312106266617775, 0.0003898307913914323, 0.03623248636722565, 0.024394743144512177, 0.03536338731646538, -0.02243177592754364, -0.025593502447009087, 0.00446912320330739, -0.025593502447009087, -0.001136947888880968, 0.01068393886089325, -0.020004289224743843, -0.008091622963547707, -0.017217174172401428, -0.010796322487294674, -0.02141283079981804, -0.0061998311430215836, -0.0007155092316679657, -0.03416462987661362, 0.0020603667944669724, 0.022087132558226585, -0.04675159603357315, 0.06191589683294296, 0.0009037518175318837, -0.008765924721956253, -0.026462603360414505, -0.017022376880049706, -0.0027384147979319096, 0.0422862209379673, 0.003770471317693591, 0.023106077685952187, 0.012287278659641743, 0.026702355593442917, 0.011545546352863312, -0.031197700649499893, 0.029444515705108643, 0.04914911463856697, -0.047980327159166336, 0.03946913778781891, -0.01717222109436989, -0.045582808554172516, -0.03467410057783127, -0.008698494173586369, 0.03317565098404884, -0.05199616774916649, 0.025248859077692032, -0.0014853371540084481, 0.02247672900557518, -0.028620369732379913, 0.002554854843765497, -0.0072562373243272305, -0.0002458392409607768, 0.040607959032058716, 0.009290381334722042, -0.024244898930191994, -0.009957191534340382, 0.005008564796298742, 0.013868141919374466, 0.03782084211707115, -0.014834641478955746, 0.04195656254887581, -0.014047956094145775, -0.011500593274831772, 0.03946913778781891, -0.024904215708374977, -0.022551652044057846, -0.027466563507914543, -0.02036391757428646, 0.0213678777217865, 0.005746550392359495, 0.014055448584258556, -0.02911485731601715, 0.014744734391570091, 0.006162370089441538, -0.014632350765168667, -0.010174466297030449, 0.02496415376663208, 0.008488711901009083, 0.0040645417757332325, 0.004555284045636654, -0.020783482119441032, 0.0037255180068314075, 0.014107894152402878, 0.03173714131116867, -0.01616826094686985, -0.024469666182994843, 0.024110037833452225, -0.010092051699757576, -0.020978281274437904, 0.011867713183164597, 0.022551652044057846, -0.0208584051579237, -0.009050630033016205, -0.026837214827537537, 0.015823617577552795, 0.0333554670214653, -5.256276926957071e-05, -0.014819657430052757, 0.010863753035664558, 0.02667238563299179, -0.040697865188121796, -0.015808632597327232, 0.0032816024031490088, 0.01579364947974682, -0.02611795999109745, -0.016647763550281525, 0.014115385711193085, -0.0422862209379673, -0.002822702517732978, 0.01374826580286026, -0.0075034815818071365, -0.012129941955208778, -0.044054388999938965, -0.006919086445122957, -0.010871244594454765, 0.01169539149850607, 0.015718726441264153, 0.02141283079981804, -0.011036073789000511, 0.00026644289027899504, 0.02234186977148056, 0.004446646198630333, -0.013208825141191483, -0.002316976198926568, 0.013665851205587387, -0.007458528038114309, 0.03155732899904251, 0.006638127379119396, -0.016557857394218445, -0.01787649281322956, 0.005120948422700167, 0.011163442395627499, -0.020648622885346413, 0.0005108773475512862, 0.011081027798354626, -0.027436595410108566, 0.022716481238603592, 0.042256250977516174, -0.016228199005126953, -0.03128760680556297, -0.020348932594060898, -0.007301190868020058, -0.0021409085020422935, 0.0002910268085543066, 0.014827148988842964, -0.020438838750123978, 0.009620040655136108, -0.018505841493606567, 0.03542332723736763, -0.029639314860105515, -0.0038397745229303837, -0.022686513140797615, 0.002431232947856188, -0.03071819618344307, -0.004233117215335369, 0.04063792526721954, -0.011066042818129063, -0.00423686346039176, 0.00048699582112021744, -0.02265654318034649, -0.026147928088903427, 0.03185701742768288, 0.037431247532367706, -0.03746121749281883, -0.02929467149078846, 0.01648293435573578, 0.004180671647191048, 0.0029968973249197006, -0.02467944845557213, -0.004633952397853136, 0.012219849042594433, 0.008578618057072163, 0.019494816660881042, 0.02354062721133232, 0.012564491480588913, -0.042406097054481506, -0.008099114522337914, 0.008533664979040623, 0.004248101729899645, -0.02800600416958332, -0.001126646064221859, -0.028290709480643272, -0.014834641478955746, -0.01293910387903452, 0.01038424950093031, 0.00020170523202978075, -0.03446431830525398, 0.010976136662065983, -0.019359955564141273, 0.003407097654417157, -0.0218773502856493, -0.017307082191109657, -0.015044424682855606, -0.016452966257929802, -0.018535809591412544, 0.011800282634794712, 0.009305366314947605, 0.013261270709335804, 0.06605161726474762, -0.0014553682412952185, -0.013328700326383114, -0.011560531333088875, -0.035123635083436966, -0.013231301680207253, 0.04753078892827034, 0.007368620950728655, 0.02270149625837803, 0.0038397745229303837, 0.024080069735646248, -0.023510659113526344, -0.015111854299902916, 0.010781337507069111, 0.006668096408247948, -0.009590071626007557, -0.019060267135500908, -0.014504983089864254, 0.019704598933458328, 0.005488068331032991, -0.009964683093130589, -0.00285641779191792, 0.0017466292483732104, -0.010668953880667686, -0.024529604241251945, 0.007177568972110748, 0.01814621314406395, -0.004510330501943827, -0.02216205559670925, 0.021128125488758087, 0.03395484760403633, 0.01874559186398983, 0.024289852008223534, 0.017486896365880966, -0.017262129113078117, -0.010301833972334862, -0.002341326093301177, 0.01708231493830681, -0.007499735336750746, 0.014489998109638691, -0.015958478674292564, 0.025953130796551704, 0.02951943874359131, -0.03665205463767052, 0.014497490599751472, 0.00842877384275198, 0.008578618057072163, -0.02343573607504368, -0.021262986585497856, -0.029789159074425697, -0.006668096408247948, -0.006188592873513699, 0.020393885672092438, -0.033325497061014175, -0.004330516792833805, -0.016288137063384056, 0.0012409028131514788, 0.006480790209025145, -0.017217174172401428, -0.044054388999938965, -0.032036833465099335, -0.004506584256887436, -0.03179708123207092, 0.009942206554114819, 0.008848339319229126, -0.0009721185779199004, -0.019270049408078194, -0.01592850871384144, -0.012032542377710342, -0.006499520968645811, -0.0263427272439003, -0.012287278659641743, 0.044653769582509995, -0.009575086645781994, 0.02960934489965439, 0.0005113455699756742, -0.04321525990962982, -0.0007735741091892123, 0.037521153688430786, -0.041656870394945145, 0.0031542344950139523, 0.026792261749505997, -0.033235590904951096, 0.0013710805214941502, -0.033805001527071, 0.04108746349811554, -0.014032971113920212, -0.040607959032058716, -0.019794506952166557, -0.010609016753733158, -0.007308683358132839, -0.00065042037749663, -0.00048137662815861404, -0.015763679519295692, 0.019419893622398376, 0.005664135795086622, -0.012729321606457233, -0.018086275085806847, -0.022326884791254997, 0.02718185819685459, 0.0011612976668402553, 0.017561817541718483, -0.017426958307623863, 0.018311042338609695, 0.0397987961769104, -0.02294124849140644, 0.03209676966071129, 0.0059675718657672405, 0.03994864225387573, -0.01499197818338871, 0.01718720607459545, 0.00010202328121522442, -0.022746451199054718, -0.0526854544878006, -0.007417320739477873, -0.004304293543100357, 0.027721300721168518, 0.006986516993492842, 0.029789159074425697, -0.003279729513451457, -0.019000329077243805, -0.01370331272482872, 0.028305694460868835, -0.035393357276916504, 0.005300762131810188, -0.025323782116174698, 0.03164723515510559, 0.0050048185512423515, -0.012661891058087349, 0.015538912266492844, -0.0393492616713047, -0.026777276769280434, 0.0030324854888021946, -0.03964895009994507, 0.014729750342667103, -0.020154133439064026, 0.022716481238603592, 0.00670181168243289, 0.007911808788776398, 0.012362201698124409, -0.009380288422107697, 0.0008499013492837548, -0.018895437940955162, -0.043095383793115616, 0.03368512541055679, -0.014872102998197079, -0.021083172410726547, 0.004461630713194609, -0.00796425435692072, -0.017576802521944046, 0.010099544189870358, 0.02556353434920311, 0.03260624408721924, 0.05343467742204666, 0.023225953802466393, 0.03925935551524162, -0.00018695488688535988, -0.06431341916322708, -0.0010957405902445316, 0.005724073853343725, -0.01522423792630434, -0.002206465695053339, 0.015164299868047237, -0.0023151030763983727, -0.016288137063384056, 0.00967248622328043, -0.023420752957463264, -0.004798781592398882, -0.022746451199054718, 0.031707171350717545, 0.002444344339892268, 0.005806488450616598, -0.0075634196400642395, 0.038300346583127975, 0.012684367597103119, -0.007979239337146282, 0.02256663702428341, -0.0074622742831707, 0.010309326462447643, -0.012429631315171719, 0.004188164137303829, -0.006229800172150135, -0.05070750042796135, 0.007761964108794928, 0.00011554444063222036, -0.03904957324266434, -0.02662743255496025, -0.02933962456882, -0.00040317632374353707, 0.0002669111709110439, 0.011530562303960323, -0.008346359245479107, 0.011920158751308918, 0.030373554676771164, 0.021817412227392197, -6.227927224244922e-05, -0.0039034585934132338, -0.058799125254154205, 0.002107193460687995, 0.006031255703419447, -0.055472567677497864, 0.027751268818974495, -0.024080069735646248, -0.040787771344184875, -0.023061124607920647, -0.06389384716749191, -0.006124909035861492, 0.0014366375980898738, 0.002305737929418683, 0.014452537521719933, 0.026357712224125862, -0.005555498413741589, 0.00687413290143013, -0.03296586871147156, -0.03149738907814026, -0.011478116735816002, -0.007724502589553595, -0.034194596111774445, -0.0033677632454782724, -0.004120733588933945, -0.03626245632767677, 0.014624858275055885, -0.002264530397951603, 0.006548220757395029, -0.0063309455290436745, 0.02087339013814926, 0.012129941955208778, 0.036921773105859756, -0.0017953288042917848, 0.011373225599527359, -0.01667773351073265, 0.006866640876978636, -0.045253150165081024, -0.00584020372480154, -0.0412672758102417, -0.0036730722058564425, -0.045253150165081024, -0.024199945852160454, -0.025353750213980675, 0.007259983569383621, 0.0313175767660141, 0.024349790066480637, 0.019914383068680763, -0.027481548488140106, 0.014587397687137127, -0.0027552724350243807, 0.02031896263360977, 0.026132944971323013, 0.040458112955093384, -0.01293910387903452, 0.03746121749281883, -0.01961469277739525, 0.0368618369102478, 0.0129465963691473, -0.00682917982339859, -0.005652897525578737, 0.023780379444360733, 0.015553897246718407, -0.011268333531916142, 0.0016576588386669755, -0.001560259610414505, 0.01096115168184042, 0.00794177781790495, -0.005083486903458834, -0.019015314057469368, 0.025069044902920723, 0.0017147872131317854, 0.02556353434920311, 0.027331702411174774, -0.005386922974139452, 0.005150916986167431, -0.028994981199502945, 0.04033823683857918, -0.0024761862587183714, -0.03191695734858513, 0.009050630033016205, 0.004832496866583824, 0.02054373174905777, -0.0040420652367174625, 0.015299160964787006, -0.011965112760663033, -0.0031036618165671825, 0.01703736186027527, -0.007132615428417921, 0.01292411983013153, -0.012099972926080227, -0.018985344097018242, -0.01772664673626423, -0.004023334477096796, 0.015066901221871376, -0.015051916241645813, 0.0020510016474872828, -0.014152847230434418, 0.032726116478443146, 0.028935043141245842, -0.003156107384711504, 0.020468808710575104, 0.014340153895318508, -0.019195126369595528, -0.04441401734948158, -0.014115385711193085, 0.021442800760269165, 0.017816554754972458, -0.03791075199842453, -0.03515360504388809, 0.0029369592666625977, 0.007623357232660055, 0.01634807512164116, 0.011043566279113293, -0.00611367030069232, -0.02372044138610363, 0.007540942635387182, -0.013898110948503017, 0.0038322824984788895, -0.031197700649499893, -0.004420423414558172, 0.026687370613217354, -0.022311899811029434, 0.02054373174905777, 0.017606770619750023, 0.0033059522975236177, -0.01841593347489834, 0.001879616524092853, -0.005383176729083061, -0.0014553682412952185, 0.007376113440841436, 0.022132085636258125, 0.021997226402163506, -0.011103504337370396, 0.014220277778804302, -5.08945740875788e-05, -0.009387780912220478, -0.00183372653555125, -0.003970888908952475, 0.019240081310272217, 0.006787972524762154, -0.0001171833646367304, -0.003405224531888962, 0.02607300691306591, -0.03206679970026016, 0.01123836450278759, 0.034434348344802856, 0.007259983569383621, 0.0018590128747746348, 0.0016857547452673316, -0.02265654318034649, 0.028845136985182762, -0.03524351119995117, -0.011852729134261608, 0.020019274204969406, 0.006398375611752272, 0.02758643962442875, -0.0022589112631976604, -0.006087447516620159, -0.006184846628457308, -0.030478445813059807, 0.016228199005126953, -0.030133802443742752, -0.006739272736012936, -0.022461745887994766, -0.015568881295621395, -0.0021221779752522707, -0.007117630913853645, -0.030613305047154427, 0.0075858961790800095, -0.0018262342782691121, -0.015493959188461304, 0.029834112152457237, -0.008833354339003563, 0.0021933543030172586, -0.0268521998077631, -0.031437452882528305, 0.00021704091341234744, -0.0154340211302042, -0.002270149765536189, 0.0050759948790073395, 0.024559572339057922, -0.01801135204732418, 0.00700150104239583, -0.017651725560426712, -0.0012427758192643523, -0.00794177781790495, 0.008233975619077682, -0.022446760907769203, -0.0024218675680458546, -0.01630312204360962, -0.03374506160616875, -0.02196725644171238, -0.007911808788776398], "id": 57}, {"title": "Kjelvatnet (Fauske)", "text": "Kjelvatnet (Lule Sami: Giebbnej\u00e1vrre) is a lake in the municipality of Fauske in Nordland county, Norway. The 3.85-square-kilometre (1.49 sq mi) lake lies about 7 kilometres (4.3 mi) south of the village of Sulitjelma near the border with Junkerdal National Park. Water flows into the lake from the large lake Balvatnet (in Saltdal) and it flows out of the lake to the north to the lake Langvatnet.", "vector": [-0.005133721977472305, -0.0011205541668459773, 0.00229629036039114, 0.049728039652109146, -0.002314091194421053, 0.0010653719073161483, -0.04172484204173088, -0.032041262835264206, -0.05878503620624542, 0.016903545707464218, 0.017060192301869392, 0.007383730728179216, -0.018996907398104668, -0.006767826620489359, -0.061690110713243484, 0.06402555853128433, 0.0158782247453928, 0.00165902532171458, -0.002232207916676998, -0.021303879097104073, -0.043348267674446106, -0.03981660678982735, 0.06863950192928314, 0.036940015852451324, 0.006486575584858656, 0.015123475342988968, -0.005899152252823114, 0.03443367779254913, -0.010630578733980656, -0.04175332561135292, 0.045057132840156555, -0.019965266808867455, -0.011833906173706055, 0.016034871339797974, 0.0285808052867651, 0.02368205226957798, -0.016846584156155586, 0.003556580049917102, 0.03292417526245117, -0.01043121051043272, -0.0008032566402107477, -0.006796307861804962, 0.015522211790084839, -0.003830710891634226, -0.02057761140167713, -0.02895106002688408, -0.03355076164007187, 0.020079191774129868, -0.021460525691509247, -0.05049702897667885, 0.035487476736307144, -0.038648881018161774, -0.029164668172597885, 0.03426279127597809, 0.03286721557378769, -0.029136188328266144, 0.011748462915420532, 0.14422839879989624, -0.011613177135586739, 0.03506026044487953, -0.01271682046353817, -0.01434024516493082, 0.001845932682044804, -0.009484213776886463, 0.009064117446541786, 0.0043184501118958, -0.007519016042351723, 0.00194561667740345, -0.04272168129682541, 0.07137369364500046, 0.03921850398182869, 0.08629780262708664, 0.026387758553028107, 0.06265846639871597, 0.011627417989075184, 0.027128268033266068, 0.006105640437453985, 0.0240095853805542, 0.009939911775290966, 0.00833784881979227, 0.008017435669898987, 0.013236600905656815, 0.0051978048868477345, -0.0278830174356699, -0.022528566420078278, 0.029848216101527214, -0.0011339046759530902, -0.029791252687573433, -0.02188774198293686, -0.0025472803972661495, 0.022357679903507233, -0.008693862706422806, 0.006144802086055279, -0.019979506731033325, 0.04551283270120621, 0.00767566217109561, 0.03229759261012077, -0.011705741286277771, -0.006561338435858488, 0.05867110937833786, 0.016875064000487328, 0.03044631890952587, 0.007120280526578426, -0.03574380651116371, -0.01728804036974907, 0.02546212263405323, -0.0043647317215800285, 0.0054434542544186115, -0.003499617800116539, 0.009491333737969398, 0.028438400477170944, -0.01535132434219122, -0.023140911012887955, -0.07046229392290115, 0.005229846108704805, -0.008672501891851425, 0.036968495696783066, -0.04030078649520874, 0.0019100152421742678, 0.031614046543836594, 0.0015077193966135383, -0.014881386421620846, 0.015607655048370361, -0.0687534287571907, 0.02647320181131363, -0.028167828917503357, 0.03602861985564232, 0.0036402433179318905, 0.009947031736373901, 0.10241811722517014, -0.02754124440252781, -0.054228056222200394, 0.007590218912810087, -0.008252404630184174, -0.05878503620624542, -0.01629120111465454, 0.0318988561630249, 0.0061483620665967464, -0.011257163248956203, -0.0012077775318175554, 0.004702945239841938, 0.010317286476492882, -0.04206661507487297, -0.013386127538979053, 0.0035583600401878357, -0.02964884787797928, -0.03916154429316521, -0.016504809260368347, 0.0023977544624358416, -0.052547670900821686, 0.031927336007356644, -0.013735020533204079, 0.02754124440252781, 0.04357611760497093, 0.03688305243849754, 0.006511496379971504, -0.0268719382584095, 0.033038102090358734, 0.011776943691074848, -0.007839429192245007, -0.0481615774333477, -0.004635302349925041, 0.021446283906698227, -0.0446014367043972, 0.0028089506085962057, 0.015750059857964516, 0.021047549322247505, -0.0072092837654054165, 0.024280156940221786, 0.017957346513867378, 0.014105275273323059, 0.027299154549837112, 0.0026451842859387398, -0.021389322355389595, 0.012040394358336926, -0.09860164672136307, 0.002901514293625951, 0.03349379822611809, -0.02939251810312271, -0.003344751661643386, -0.0031970059499144554, -0.019196275621652603, 0.004802629351615906, -0.0050233579240739346, -0.02087666280567646, -0.002020379528403282, 0.0127025805413723, 0.01290906872600317, 0.027014344930648804, -0.023511165753006935, -0.014838664792478085, -0.010922510176897049, -0.0057282657362520695, 0.03993053361773491, -0.02721371129155159, 0.017957346513867378, -0.004037199076265097, 0.04032927006483078, 0.03423430770635605, 0.0332944318652153, 0.04237990826368332, 0.02335451915860176, -0.04687992483377457, 0.03150011971592903, -0.01399135123938322, 0.022841859608888626, -0.0278830174356699, 0.011007953435182571, -0.026245353743433952, 0.024636169895529747, -0.032696329057216644, -0.0017079772660508752, -0.016106074675917625, -0.02680073492228985, 0.052547670900821686, -0.004656663630157709, -0.008045916445553303, 0.0010084097739309072, 0.02084818109869957, -0.0086369002237916, -0.04952866956591606, -0.021389322355389595, -0.01693202741444111, 0.027470041066408157, -0.014995310455560684, -0.028039664030075073, 0.015493730083107948, -0.022186793386936188, -0.009420131333172321, 0.04975651949644089, 0.03995901346206665, -0.01875481940805912, -0.031215310096740723, -0.03420582786202431, -0.058215413242578506, -0.028110867366194725, 0.025946302339434624, -0.03044631890952587, -0.00831648800522089, -0.03967420384287834, 0.0211472325026989, -0.0024903181474655867, 0.00012660748325288296, -0.021360840648412704, -0.009363168850541115, 0.006561338435858488, -0.008231043815612793, 0.05482615903019905, -0.0006003286689519882, -0.021716855466365814, 0.01043121051043272, -0.017515890300273895, 0.010060956701636314, -0.010025355033576488, -0.02869473025202751, 0.007266246248036623, -0.0480191707611084, -0.002533039776608348, -0.004706505220383406, -0.012624257244169712, -0.025234274566173553, 0.03115834668278694, 0.038364071398973465, 0.019566530361771584, -0.01948108710348606, -0.021716855466365814, -0.010324406437575817, -0.02823903225362301, -0.00988294929265976, -0.026017505675554276, 0.010082317516207695, 0.03642735630273819, 0.0027039265260100365, -0.028139349073171616, 0.029278593137860298, 0.034405194222927094, -0.02089090272784233, 0.0064153727144002914, -0.028865616768598557, 0.008743704296648502, 0.006906671915203333, -0.02338300086557865, -0.010901149362325668, 0.003713226178660989, 0.020677294582128525, 0.02126115746796131, -0.011833906173706055, 0.024265915155410767, 0.012424889020621777, 0.016362404450774193, -0.03150011971592903, 0.02680073492228985, 6.224682874744758e-05, 0.03360772505402565, -0.020292799919843674, -0.013649577274918556, -0.02936403639614582, 0.0010618118103593588, -0.010886908508837223, -0.018470007926225662, -0.013656698167324066, -0.028068145737051964, -0.01975165866315365, 0.0034479957539588213, 0.026402000337839127, -0.0012780902907252312, -4.633744902093895e-05, -0.007405091542750597, -0.03326595202088356, -0.01398423034697771, 0.004336250945925713, -0.010182000696659088, 0.005806588567793369, -0.03488937392830849, 0.008074398152530193, -0.010210482403635979, -0.028367197141051292, 0.016348164528608322, -0.025689972564578056, -0.019879823550581932, 0.015365565195679665, -0.004183164797723293, -0.01149213220924139, 0.00170263706240803, 0.022514326497912407, -0.0494147464632988, 0.04172484204173088, 0.045370426028966904, 0.00830936711281538, -0.029962139204144478, -0.005681983660906553, 0.06687367707490921, -0.051436904817819595, 0.018954185768961906, -0.015109235420823097, 0.01913931407034397, -0.04984196275472641, 0.01204751431941986, -0.011214441619813442, -0.003029679413884878, -0.008458892814815044, -0.0432058610022068, 0.06767114251852036, -0.02620263211429119, 0.024265915155410767, 0.037680525332689285, -0.02052064798772335, -0.008622659370303154, 0.02081969939172268, 0.045370426028966904, 0.0006265846895985305, 0.02332603931427002, -0.017743738368153572, -0.03562988340854645, 0.031699489802122116, -0.007252005860209465, -0.01950956881046295, 0.033009618520736694, 0.01061633788049221, 0.028110867366194725, 0.028025424107909203, -0.0311298668384552, -0.020250078290700912, -0.013286443427205086, -0.04067104309797287, 0.022727934643626213, 0.016134556382894516, 0.02047792635858059, 0.010125039145350456, -0.02222951501607895, 0.030189989134669304, 0.03258240222930908, -0.014653537422418594, 0.057788196951150894, 0.05719009414315224, -0.03543051704764366, 0.006219564937055111, -0.0008878099615685642, -0.013557014055550098, 0.009569657035171986, 0.029933659359812737, -0.03537355363368988, 0.04534194618463516, -0.0070526376366615295, 0.029221631586551666, 0.0025561805814504623, -0.0003043919859919697, 0.0007591999019496143, -0.02156020887196064, 0.02506338804960251, -0.006244485732167959, 0.03890521079301834, -0.002137864241376519, -0.016732659190893173, 0.006280087400227785, 0.0009754784405231476, -0.01975165866315365, 0.05764579027891159, -0.005614341236650944, -0.04286408796906471, -0.016447847709059715, 0.06949393451213837, -0.016063353046774864, -0.011007953435182571, 0.009712062776088715, 0.005959674715995789, 0.03141467645764351, 0.026587126776576042, 0.022841859608888626, -0.01594942808151245, -0.010174880735576153, -0.03431975096464157, 0.004667344037443399, -0.06698759645223618, 0.03967420384287834, 0.01832760125398636, 0.007091799285262823, -0.017031710594892502, 0.004336250945925713, 0.02332603931427002, 0.0021200634073466063, -0.02724219299852848, 0.0285808052867651, 0.0022037269081920385, -0.058158449828624725, 0.01798582822084427, -0.018598172813653946, 0.03075961209833622, -9.184049122268334e-05, -0.010958111844956875, -0.018541209399700165, 0.05308881029486656, -0.014304643496870995, 0.014468410052359104, 0.0027733491733670235, -0.013706539757549763, -0.00600239634513855, -0.0727977454662323, 0.00990431010723114, 0.024849778041243553, 0.010523774661123753, 0.0458546057343483, 0.008572817780077457, 0.012289604172110558, 0.007689903024584055, -0.017216838896274567, 0.040870409458875656, -0.03275328874588013, -0.009448612108826637, -0.03332291170954704, 0.036940015852451324, -0.019595012068748474, -0.03326595202088356, -0.006123441271483898, 0.0020880221854895353, -0.007038397248834372, 0.039417874068021774, 0.04884512349963188, -0.040784966200590134, -0.011997672729194164, 0.04001597687602043, -0.023254835978150368, 0.026416240260004997, -0.016519051045179367, -0.01659025251865387, -0.0790066346526146, -0.00013951299479231238, 0.013172518461942673, 0.001622533891350031, -0.0194383654743433, 0.013720780611038208, 0.009804625995457172, -0.07678510248661041, -0.00405499991029501, 1.1890311952811317e-06, 0.001234478666447103, -0.011257163248956203, -0.030503282323479652, -0.005347330588847399, -0.0494147464632988, 0.08555728942155838, 0.008736584335565567, -0.006141242105513811, 0.028196310624480247, -0.005820829421281815, 0.02868049032986164, -0.0038912333548069, 0.0005424763658083975, -0.005375811830163002, -0.014276162721216679, 0.02295578457415104, 0.01733076199889183, -0.0001606513251317665, -0.03793685510754585, -0.011563335545361042, 0.01982286013662815, -0.0158782247453928, 0.04069952294230461, -0.06015212833881378, -0.004044319503009319, 0.026088707149028778, 0.03349379822611809, 0.03967420384287834, 0.052205897867679596, -0.01764405518770218, 0.032696329057216644, 0.026416240260004997, 0.07268382608890533, 0.011093396693468094, -0.006386891473084688, 0.021403562277555466, -0.02016463503241539, -0.03933243080973625, -0.019680455327033997, -0.012389288283884525, 0.015251641161739826, 0.04773436114192009, -0.07627244293689728, -0.025319717824459076, 0.010338647291064262, -0.030303914099931717, -6.970087270019576e-05, -0.007291167043149471, -0.044686879962682724, 0.01694626733660698, 0.04386092722415924, 0.01429040264338255, 0.010424090549349785, -0.010210482403635979, 0.0007075778557918966, 0.014810183085501194, 0.042978011071681976, -0.009989753365516663, 0.020007988438010216, 0.014119516126811504, -0.010744502767920494, -0.009113959036767483, -0.01519467867910862, -0.018811780959367752, 0.019267478957772255, -0.03226911276578903, -0.041582439094781876, 0.04309193789958954, -0.02862352691590786, -0.017102913931012154, 0.005190684460103512, -0.012809384614229202, 0.0014641076559200883, -0.02504914626479149, -0.03708241879940033, 0.030902016907930374, 0.01656177267432213, 0.013720780611038208, 0.031955819576978683, 0.06174707040190697, 0.019580772146582603, 0.010844186879694462, 0.025319717824459076, 0.002814290812239051, -0.017544370144605637, 0.01906811073422432, 0.01553645171225071, -0.029278593137860298, -0.01293042954057455, -0.0005571619258262217, 0.031329233199357986, 0.028395678848028183, 0.007504775654524565, -0.06539265811443329, 0.019908303394913673, 0.026729533448815346, -0.0038698725402355194, 0.020064949989318848, -0.044373586773872375, 0.0033322912640869617, 0.00075163459405303, -0.013471570797264576, -0.0004049659473821521, 0.014397206716239452, -0.03494633734226227, -0.014753221534192562, 0.028367197141051292, -0.0311298668384552, 0.021161474287509918, 0.019879823550581932, 0.045057132840156555, -0.03394949808716774, 0.010053835809230804, -0.06003820523619652, 0.010538015514612198, -0.0020559809636324644, 0.018113993108272552, 0.016034871339797974, -0.006892431527376175, 0.017174117267131805, -0.029079224914312363, 0.011057795956730843, 0.015151957049965858, -0.00635129027068615, -0.031357716768980026, -0.013421728275716305, -0.004670904017984867, -0.019324440509080887, -0.01837032288312912, 0.023254835978150368, 0.060949601233005524, 0.01832760125398636, 0.0010386708891019225, 0.00884338840842247, -0.0012567294761538506, -0.06282935291528702, -0.06841165572404861, 0.030531762167811394, 0.03506026044487953, -0.002744868164882064, -0.007704143412411213, -0.0158782247453928, 0.018640894442796707, 5.482059714267962e-05, 0.027299154549837112, -0.027726372703909874, -0.030133027583360672, 0.020606091246008873, -0.009498453699052334, -0.00935604888945818, 0.031699489802122116, 0.046481192111968994, -0.022813377901911736, -0.034091901034116745, -0.026729533448815346, 0.03597165644168854, -0.012161439284682274, -0.020762737840414047, -0.032012779265642166, 0.007138081360608339, 0.008231043815612793, -0.02053488790988922, -0.0044893366284668446, 0.003919714596122503, 0.0059739151038229465, 0.0033839133102446795, 0.02504914626479149, 0.01728804036974907, -0.060949601233005524, 0.013450209982693195, -0.029079224914312363, -0.009121078997850418, 0.018954185768961906, -0.013827584683895111, 0.05901288613677025, 0.02265673317015171, 0.034405194222927094, 0.009840227663516998, 0.0035156384110450745, -0.017473168671131134, 0.013001631945371628, 0.0021556648425757885, -0.007768225856125355, 0.014326004311442375, -0.028552325442433357, -0.03562988340854645, 0.01024608314037323, -0.02685769833624363, -0.01765829510986805, 0.004179604817181826, 0.0024048746563494205, 0.013222360983490944, 0.034120384603738785, -0.0037523878272622824, 0.029620366171002388, -0.03349379822611809, -0.014454169198870659, -0.017786459997296333, 0.016333922743797302, 0.017117153853178024, 0.011185960844159126, 0.03956027701497078, -0.001828131964430213, 0.016761140897870064, -0.005617901217192411, -0.026601368561387062, -0.017131395637989044, 0.02195894531905651, -0.03400645777583122, 0.001696406863629818, 0.008053037337958813, 0.025576047599315643, 0.02680073492228985, -0.00882202759385109, -0.017088674008846283, 0.03309506177902222, 0.04736410453915596, 0.032326072454452515, -0.008836268447339535, -0.014439928345382214, 0.02012191340327263, -0.042636238038539886, -0.010901149362325668, 0.0003293129848316312, -0.010680420324206352, 0.03488937392830849, 0.027099788188934326, -0.026729533448815346, 0.0108014652505517, 0.026273835450410843, -0.008238164708018303, -0.0066823833622038364, 0.017829181626439095, 0.03562988340854645, -0.01434024516493082, -0.0046637835912406445, -0.058215413242578506, 0.023895660415291786, 0.007739745080471039, -0.035886213183403015, -0.0024529367219656706, -0.012951790355145931, -0.02298426441848278, -0.050753358751535416, -0.005884911864995956, 0.007654301356524229, -0.00260780262760818, -0.0016180836828425527, 0.0009345368016511202, 0.04317738115787506, 0.0033892535138875246, 0.050753358751535416, 0.040841929614543915, -0.04106977581977844, 0.013329165056347847, 0.023169392719864845, -0.013927268795669079, -0.00654709804803133, 0.01112899836152792, 0.017174117267131805, -0.006490135565400124, 0.0005131051875650883, 0.012432009913027287, 0.020634572952985764, -0.034832410514354706, 0.02936403639614582, -0.06687367707490921, -0.012752422131597996, 0.044031813740730286, -0.015422527678310871, -0.020079191774129868, 0.024194713681936264, 0.011541974730789661, 0.015166196972131729, 0.023909902200102806, -0.019538048654794693, 0.024137750267982483, 0.0020114791113883257, -0.05377235636115074, -0.041553955525159836, 0.01871209777891636, -0.018868742510676384, -0.047164738178253174, 0.047392588108778, 0.011549094691872597, 0.011050675064325333, 0.013158278539776802, -0.05192108452320099, -0.02473585493862629, 0.026686811819672585, 0.002689685905352235, -0.03004758432507515, -0.011185960844159126, -0.012232641689479351, -0.05135146155953407, 0.030332393944263458, 0.021375082433223724, 0.025319717824459076, -0.023952623829245567, 0.004863151349127293, 0.01129276491701603, -0.0073196482844650745, -0.0013208120362833142, -0.005464815068989992, 0.008615539409220219, 0.00067375652724877, 0.01838456466794014, 0.05277551710605621, -0.018626654520630836, -0.006586259230971336, -0.007106039673089981, -0.01006807666271925, 0.012410649098455906, 0.0007489644922316074, 0.0275697261095047, -0.037310268729925156, -0.022813377901911736, 0.024137750267982483, -0.03115834668278694, 0.011250043287873268, 0.014895626343786716, -0.006696623750030994, 0.02154596894979477, -0.003469356568530202, 0.00398023659363389, 0.002353252610191703, -0.0010929630370810628, 0.004425254184752703, -0.001703527057543397, 0.008850508369505405, 0.021759577095508575, 0.03075961209833622, -0.004727866034954786, 0.015821263194084167, -0.019167795777320862, -0.024237435311079025, 0.0004668233741540462, 0.010096557438373566, 0.03036087565124035, -0.006408252287656069, -0.029962139204144478, -0.0026345038786530495, -0.04528498277068138, 0.02332603931427002, 0.04912993684411049, 0.006764266639947891, 0.021802298724651337, 0.0035280990414321423, -0.010132159106433392, -0.03787989169359207, 0.018256399780511856, -0.008458892814815044, 0.023140911012887955, -0.013158278539776802, -0.0062409257516264915, -0.011962071061134338, 0.014354485087096691, -0.03947483375668526, -0.008409051224589348, 0.013186759315431118, -0.051436904817819595, 0.05115209519863129, -0.02789725922048092, -0.008579937741160393, 0.019224757328629494, 0.020962106063961983, -0.014276162721216679, 0.03568684682250023, 0.030474800616502762, 0.0036384633276611567, 0.006668142508715391, -0.034519121050834656, -0.053629953414201736, -0.018199436366558075, 0.011356847360730171, 0.008807786740362644, -0.03178493306040764, 0.01980862021446228, -0.012994511984288692, -0.008878990076482296, 0.001758709317073226, -0.011648778803646564, -0.015721580013632774, -0.021118752658367157, 0.007917751558125019, 0.003280669217929244, 0.00902139488607645, -0.01269545964896679, 0.030275432392954826, 0.01590670645236969, -0.0503261424601078, 0.011997672729194164, -0.01838456466794014, 0.022913062945008278, -0.03246847912669182, 0.004745666868984699, -0.060664787888526917, 0.02084818109869957, 0.029506443068385124, -0.007454933598637581, 0.01624847948551178, -0.052519187331199646, -0.018569691106677055, 0.01343596912920475, 0.011926469393074512, -0.0068212286569178104, 0.036284949630498886, 0.00265586469322443, -0.02188774198293686, -0.012182800099253654, 0.023881420493125916, -0.0208339411765337, 0.019623493775725365, 0.06761418282985687, -0.040158383548259735, -0.0282675139605999, -0.011541974730789661, -0.03261088579893112, -0.011776943691074848, 0.04163939878344536, -0.03477545082569122, 0.02933555468916893, -0.024280156940221786, -0.0046175019815564156, 0.020079191774129868, 0.012937549501657486, 0.02758396603167057, -0.03431975096464157, -0.011449410580098629, 0.005607220809906721, -0.003766628447920084, 0.005546698346734047, -0.022201035171747208, -0.04411725699901581, 0.04736410453915596, -0.010851307772099972, 0.014810183085501194, -0.04693688824772835, -0.02719947136938572, 0.011356847360730171, -0.022443123161792755, 0.0011632757959887385, 0.018897224217653275, 0.012510333210229874, 0.0792914405465126, -0.02510610967874527, 0.04608245566487312, 0.014219200238585472, 0.0194383654743433, -0.017587093636393547, -0.012175679206848145, 0.005560939200222492, 0.021446283906698227, -0.006942273583263159, -0.006159042473882437, 0.027099788188934326, -0.007768225856125355, 0.04252231493592262, -0.018299121409654617, -0.029150428250432014, -0.008223923854529858, 0.03218366578221321, -0.01661873422563076, 0.012524573132395744, -0.02581813745200634, 0.023696294054389, -0.030873535200953484, 0.010538015514612198, -0.025561807677149773, 0.01835608296096325, 0.002445816295221448, 0.026045985519886017, -0.03990205004811287, -0.018626654520630836, 0.04779132083058357, 0.004984196275472641, 0.016576012596488, -0.010288805700838566, -0.006447413936257362, 0.04699385166168213, 0.0014187159249559045, -0.020036468282341957, 0.013735020533204079, 0.010936751030385494, -0.008736584335565567, 0.023083949461579323, 0.009455732069909573, 0.03150011971592903, 0.010829946957528591, -0.045370426028966904, 0.028125107288360596, 0.010837066918611526, -0.0014649976510554552, -0.01362109649926424, 0.0039766766130924225, 0.0004192065098322928, 0.0025490603875368834, 0.005058959126472473, 0.023126671090722084, 0.053572990000247955, -0.01362109649926424, 0.014610815793275833, -0.0155649334192276, 0.018968427553772926, -0.01080858614295721, 0.0058493101969361305, 0.00956253707408905, -0.017971588298678398, 0.0209051426500082, -0.004816869739443064, 0.030218470841646194, 0.006935153156518936, 0.03323746845126152, 0.0290365032851696, 0.037652041763067245, 0.012289604172110558, 0.007291167043149471, -0.009932790882885456, 0.015750059857964516, 0.05553818866610527, 0.014105275273323059, 0.004197405185550451, -0.035857733339071274, -0.006411812733858824, -0.022428883239626884, 0.035515960305929184, 0.015436767600476742, 0.04565523937344551, -0.00681054824963212, -0.02264249138534069, 0.006301448214799166, -0.007287607062608004, -0.04138306900858879, 0.02897954173386097, 0.031044423580169678, 0.006141242105513811, -0.00617684330791235, 0.0018112213583663106, -0.022870341315865517, -0.024123510345816612, 0.03725330904126167, -0.0017400184879079461, 0.001173066208139062, 0.04770587757229805, 0.059582505375146866, 0.01631968282163143, -0.05058247223496437, 0.004019398242235184, 0.016390886157751083, 0.0029602565336972475, 0.005251206923276186, -0.0017409085994586349, 0.017245318740606308, -0.008743704296648502, -0.04556979611515999, 0.007981834001839161, 0.024522246792912483, 0.005361570976674557, 0.016718419268727303, 0.026017505675554276, -0.0388767309486866, 0.05727553740143776, 0.0038769927341490984, -0.02758396603167057, 0.03523114696145058, -0.0019669774919748306, 0.004621061962097883, 0.029278593137860298, 0.03243999928236008, -0.016433607786893845, -0.003031459404155612, -0.03648431599140167, 0.008522975258529186, -0.036284949630498886, 0.0015851524658501148, -0.010146399959921837, -0.013193879276514053, -0.0034711367916315794, 0.008871869184076786, -0.030588725581765175, 0.00039673311403021216, 0.004759907256811857, 0.029136188328266144, -0.020591851323843002, 0.004852470941841602, 0.00867962185293436, -0.004770588129758835, 0.04021534323692322, -0.0002282939967699349, 0.00331805064342916, -0.023553887382149696, 0.021460525691509247, 0.015123475342988968, -0.003926834557205439, -0.00810287892818451, 0.04981348291039467, 0.04198117181658745, 0.04283560812473297, 0.049357783049345016, -0.013891667127609253, 0.014781702309846878, -0.0012211280409246683, 0.011057795956730843, 0.015265881083905697, -0.009911430068314075, -0.0020809019915759563, 0.03312354534864426, -0.019367162138223648, -0.0424368716776371, -0.0023906342685222626, 0.008807786740362644, -0.024935221299529076, -0.022713694721460342, 0.03491785377264023, -0.004136882722377777, -0.005674863699823618, 0.014226320199668407, -0.00956253707408905, -0.019210517406463623, -0.018968427553772926, -0.003373232902958989, 0.013471570797264576, -0.01663297601044178, -0.016860824078321457, 0.018868742510676384, 0.011435170657932758, -0.03286721557378769, 0.011264283210039139, 0.027455801144242287, 0.011791184544563293, 0.030531762167811394, -0.010509533807635307, -0.017131395637989044, -0.0035512398462742567, -0.025034906342625618, -0.03913306072354317, -0.020420964807271957, 0.004343370907008648, 0.03711090236902237, 0.023781737312674522, -0.028780173510313034, 0.02372477389872074, 0.021731095388531685, 0.014909867197275162, 0.0043682921677827835, -0.02435135841369629, -0.004606821574270725, 0.020591851323843002, 0.007511896081268787, 0.00326820882037282, 0.01906811073422432, -0.008359209634363651, 0.02477857656776905, 0.023753255605697632, 0.0034853771794587374, -0.03708241879940033, -0.02543364092707634, 0.040784966200590134, 0.04064255952835083, -0.0034479957539588213, 0.013379006646573544, 0.018227918073534966, -0.008159841410815716, -0.031671006232500076, 0.015451008453965187, 0.02476433478295803, 0.02620263211429119, 0.023881420493125916, 0.030133027583360672, 0.038762807846069336, 0.02019311487674713, -0.019381403923034668, -0.015337084420025349, -0.00867962185293436, -0.0018957746215164661, 0.0030510402284562588, 0.019623493775725365, 0.032326072454452515, 0.02443680167198181, 0.009605258703231812, 0.0076187001541256905, 0.012553054839372635, 0.02372477389872074, -0.002127183834090829, 0.02862352691590786, 0.040072936564683914, 0.014326004311442375, -0.010117918252944946, -0.011962071061134338, -0.0068069882690906525, -0.01147077139467001, -0.018840262666344643, 0.028381437063217163, -0.010182000696659088, 0.019908303394913673, 0.002376393647864461, 0.00810999982059002, 0.013371886685490608, -0.011613177135586739, 0.0014009152073413134, 0.0162627212703228, -0.020022228360176086, 0.010360008105635643, -0.029506443068385124, 0.02654440514743328, -0.013222360983490944, 0.026088707149028778, -0.015522211790084839, 0.024963703006505966, 0.0127025805413723, 0.04727866128087044, 0.015465249307453632, 0.02326907590031624, 0.00644029350951314, -0.04762043431401253, -0.03958876058459282, 0.02440832182765007, -0.03243999928236008, 0.03580076992511749, 0.008053037337958813, 0.018954185768961906, -0.019196275621652603, -0.029477961361408234, 0.023525407537817955, -0.02046368643641472, -0.023468444123864174, 0.003987357020378113, -0.0030848614405840635, 0.013371886685490608, 0.0075830984860658646, 0.01627696119248867, -0.011719981208443642, -0.018897224217653275, 0.0018939946312457323, -0.03508874028921127, 0.007668542210012674, 0.024864019826054573, -0.013407488353550434, 0.023254835978150368, 0.028837135061621666, 0.012268243357539177, 0.03403494134545326, 0.0026968063320964575, 0.022528566420078278, -0.011157479137182236, 0.0070526376366615295, -0.011000833474099636, -0.008522975258529186, 0.022742176428437233, 0.03921850398182869, 0.003380353096872568, 0.007924872450530529, -0.024522246792912483, 0.023226354271173477, -0.03224062919616699, 0.01800006814301014, 0.014995310455560684, -0.011990551836788654, 0.011000833474099636, -0.012674098834395409, 0.001965197501704097, -0.016775380820035934, -0.006515056826174259, 0.015778541564941406, -0.014995310455560684, 0.029905177652835846, -0.009291966445744038, 0.020335521548986435, 0.01590670645236969, 0.005375811830163002, 0.03634191304445267, 0.016006389632821083, -0.003766628447920084, 0.005692664068192244, -0.03141467645764351, 0.029591886326670647, 0.0015744720585644245, -0.012389288283884525, 0.029449479654431343, 0.06482303142547607, -0.015094994567334652, 0.029819734394550323, 0.045484352856874466, 0.0026772255077958107, 0.02933555468916893, 0.0010360007872805, -0.0009514474659226835, -0.007568858098238707, -0.04767739772796631, -0.028523843735456467, -0.019523808732628822, 0.0011748463148251176, 0.003223706968128681, 0.014062553644180298, 0.01656177267432213, 0.006333489436656237, -0.04853183031082153, 0.028552325442433357, -0.000882469757925719, -0.0011134338565170765, 0.05382931977510452, 0.03853495791554451, -0.007066878490149975, 0.006949393544346094, 0.00531172938644886, 0.00988294929265976, -0.00644029350951314, 0.04556979611515999, 0.006137681659311056, -0.012795143760740757, -3.362663846928626e-05, 0.01449689082801342, -0.006586259230971336, -0.008010315708816051, -0.010516653768718243, 0.0021467646583914757, -0.025248514488339424, -0.008387690410017967, 0.006703744176775217, 0.024992184713482857, -0.005518217571079731, -0.018142474815249443, 0.026259593665599823, 0.026088707149028778, 0.004343370907008648, 0.002052420750260353, 0.018284879624843597, -0.000296381680527702, -0.015507970936596394, 0.014119516126811504, -0.016390886157751083, -0.02120419591665268, -0.0006933372933417559, -0.01876905933022499, -0.0015878225676715374, -0.01663297601044178, -0.01396999042481184, -0.041924212127923965, -0.002157445065677166, 0.02338300086557865, 0.0104525713250041, 0.0311298668384552, 0.019495327025651932, 0.024579208344221115, 0.013813343830406666, -0.008195443078875542, -0.0037310270126909018, -0.03568684682250023, -0.007419332396239042, 0.03278177231550217, 0.04340523108839989, 0.005984595511108637, 0.01184102613478899, -0.01980862021446228, -0.017800701782107353, -0.013592615723609924, 0.0008023665868677199, -0.04531346634030342, -0.011385328136384487, -0.009242123924195766, -0.0017106473678722978, -0.006369090639054775, 0.0008757945033721626, -0.04707929491996765, -0.006942273583263159, 0.016875064000487328, -0.03896217420697212, -0.0001814558927435428, 0.004247247241437435, 0.0005424763658083975, 0.010295925661921501, -0.00026612047804519534, 0.02010767161846161, 0.0332944318652153, 0.004279288463294506, 0.00255796080455184, 0.0029887377750128508, -0.0057425061240792274, 0.007903511635959148, 0.026957381516695023, 0.006052238401025534, -0.02047792635858059, 0.011734222061932087, 0.021004827693104744, -0.022827619686722755, 0.023397240787744522, -0.01800006814301014, 0.011591816321015358, -0.031329233199357986, -0.0023550328332930803, -4.007939060102217e-05, 0.05009829252958298, 0.001084952731616795, -0.006728664971888065, 0.0031792051158845425, 0.01982286013662815, -0.01946684718132019, 0.006201764103025198, 0.006714424584060907, -0.06345593929290771, -0.024493765085935593, 0.006575578823685646, -0.030560243874788284, -0.05089576542377472, 0.010609217919409275, 0.0145182516425848, 0.02118995413184166, -0.0007405091891996562, 0.011990551836788654, 0.01834184303879738, 0.01731652207672596, 0.018811780959367752, -0.03947483375668526, 0.009327567182481289, -0.01872633770108223, 0.01869785599410534, 0.012310964986681938, 0.03206974267959595, -0.015422527678310871, -0.013813343830406666, -0.005550258792936802, 0.00974054355174303, -0.010011114180088043, 0.006436733528971672, 0.01631968282163143, -0.022172553464770317, -0.01905387081205845, -0.031272273510694504, -0.0008869199082255363, -0.02657288685441017, 0.03933243080973625, 0.013058594428002834, -0.008323607966303825, -0.036569759249687195, 0.011983431875705719, 0.007561737671494484, 0.024821298196911812, -0.028851376846432686, 0.027996942400932312, -0.03827862814068794, -0.020435204729437828, 0.008466013707220554, 0.02549060434103012, 0.00015753621119074523, 0.003624222707003355, -0.01693202741444111, 0.0023318917956203222, -0.035943176597356796, -0.004596141166985035, -0.022129831835627556, -0.021403562277555466, 0.009256364777684212, 0.01905387081205845, -0.011577576398849487, 0.008245284669101238, -0.007383730728179216, 0.012417769059538841, -0.0070704384706914425, 0.014710498973727226, 0.031955819576978683, 0.0339210145175457, -0.01798582822084427, -0.005212045274674892, 0.01985134184360504, -0.004759907256811857, -0.025946302339434624, 0.00407636072486639, 0.010466812178492546, -4.166476719547063e-05, -0.00194561667740345, 0.026373518630862236, 0.025889338925480843, -0.029449479654431343, 0.008458892814815044, 0.03255392238497734, 0.0029780573677271605, 0.016490569338202477, -0.0027395279612392187, -0.015963668003678322, 0.012481851503252983, -0.006767826620489359, -0.012973151169717312, -0.034091901034116745, 0.008466013707220554, 0.005368691403418779, 0.04833246394991875, -0.011114757508039474, -0.022443123161792755, -0.026088707149028778, -0.00165902532171458, 0.014546733349561691, 0.0035423394292593002, -0.010908269323408604, -0.04451599344611168, 0.010794345289468765, -0.0388767309486866, 0.017045950517058372, 0.03397797793149948, 0.031215310096740723, -0.006895991507917643, 0.03429127112030983, -0.002625603461638093, -0.0008935952209867537, -0.017117153853178024, -0.0021467646583914757, 0.013920147903263569, -0.0022482285276055336, -0.01341460831463337, 0.039104580879211426, -0.016020631417632103, 0.024977942928671837, -0.02190198190510273, -0.019609251990914345, -0.028523843735456467, -0.014418567530810833, 0.04500017315149307, -0.028751691803336143, 0.0018121113535016775, -0.018826020881533623, 0.011698620393872261, -0.005521777551621199, -0.009014274924993515, 0.009263484738767147, 0.02264249138534069, 0.01982286013662815, 0.007191483397036791, -0.02614567056298256, 0.038734324276447296, 0.01253881398588419, -0.0177294984459877, -0.00318098533898592, -0.026715291664004326, -0.013841825537383556, -0.017786459997296333, 0.04975651949644089, -0.03181341290473938, -0.03668368607759476, -0.00741221196949482, -0.034832410514354706, -0.0155649334192276, -0.00990431010723114, 0.0002983842568937689, -0.012588655576109886, 0.01839880459010601, -0.016106074675917625, -0.00018635108426678926, -0.014881386421620846, 0.018470007926225662, -0.016163036227226257, -0.010096557438373566, -0.007931992411613464, -0.017231078818440437, -0.03141467645764351, 0.007654301356524229, 0.037965334951877594, 0.02015039324760437, 0.022784898057579994, 0.005083880387246609, 0.019552290439605713, -0.03318050503730774, 0.033465318381786346], "id": 58}, {"title": "Alexis Arg\u00fcello", "text": "Alexis Arg\u00fcello (April 19, 1952 \u2013 July 1, 2009), also known by the ring name El Flaco Explosivo (lit. \"The Explosive Thin Man\"), was a Nicaraguan professional boxer and politician. As a boxer he was a three-time world champion, and has regularly been cited as one of the greatest fighters of his era, having never lost any of his world titles in the ring, instead relinquishing them each time in pursuit of titles in higher weight classes. His trainer was Daniel Lozano.", "vector": [0.05211864411830902, 0.020026104524731636, -0.011991768144071102, -0.012148572131991386, -0.023879000917077065, 0.01432142686098814, 0.007007643114775419, -0.012297909706830978, -0.023834198713302612, -0.004621983040124178, -0.07520616054534912, 0.03527342155575752, -0.02779163233935833, -0.012596583925187588, 0.018562600016593933, 0.03760308027267456, -0.047847602516412735, 0.00825087446719408, -0.05531445890665054, -0.07867077738046646, 0.00013743678573518991, 0.00100242521148175, -0.005189463961869478, 0.008400211110711098, 0.04512966796755791, 0.02590998448431492, -0.005827879998832941, 0.007877531461417675, -0.019413821399211884, 0.017576975747942924, -0.02556650899350643, 0.019249550998210907, 0.026223592460155487, 0.03864843770861626, 0.0020701854955404997, -0.03145039081573486, 0.0540301576256752, 0.025581443682312965, 0.00835540983825922, 0.005663609132170677, 0.02422247640788555, -0.05501578375697136, -0.041694916784763336, -0.04435311630368233, -0.012081370688974857, -0.020563717931509018, -0.023072579875588417, 0.008698885329067707, -0.007653526030480862, -0.02856818586587906, 0.033511243760585785, -0.020578650757670403, -0.016158273443579674, -0.020294910296797752, 0.0528951957821846, -0.027059881016612053, 0.0013785680057480931, -0.0034515534061938524, 0.0038024955429136753, 0.04832548275589943, 0.048773493617773056, -0.02523796819150448, 0.019727429375052452, -0.009191697463393211, -0.019921567291021347, 0.009072228334844112, 0.013828614726662636, -0.0037296938244253397, -0.06839638948440552, 0.012387511320412159, -0.002960607875138521, 0.0023203250020742416, -0.0315101258456707, -0.041127435863018036, -0.004371843300759792, -0.0030744774267077446, 0.009049827232956886, -0.00561134098097682, -0.038887377828359604, 0.024371812120079994, 0.012066436931490898, -0.046891845762729645, 0.0337800495326519, 0.055463794618844986, -0.01288779079914093, -0.04874362424015999, 0.007623658515512943, -0.07472828030586243, -0.02138507179915905, 0.02637293003499508, 0.008669017814099789, -0.02882205881178379, -0.056061144918203354, 0.031420525163412094, 0.045756883919239044, 0.0003367084718775004, 0.038499101996421814, 0.0033059497363865376, 0.011342152021825314, -0.03826016187667847, -0.019846899434924126, 0.030643969774246216, -0.027209216728806496, 0.020130639895796776, -0.009572507813572884, 0.013081928715109825, -0.041336506605148315, 0.006544698029756546, 0.015269717201590538, 0.07843183726072311, 0.03130105510354042, -0.023206982761621475, -0.0016352410893887281, 0.03602010756731033, -0.007877531461417675, 0.027492957189679146, -0.017830848693847656, 0.04832548275589943, 0.01455289963632822, 0.00853461492806673, 0.019622894003987312, -0.03903671354055405, 0.0033638179302215576, 0.04662303999066353, 0.05313413590192795, -0.041903987526893616, 0.011782696470618248, 0.016292676329612732, -0.01438862830400467, 0.012895257212221622, 0.0003502421313896775, 0.012529381550848484, 0.06905347108840942, 0.03189840167760849, -0.03787188604474068, 0.02740335650742054, -0.06439415365457535, -0.012118704617023468, -0.026895610615611076, 0.0360499732196331, 0.020294910296797752, 0.017621776089072227, -0.012708586640655994, 0.0021373871713876724, -0.015665460377931595, -0.05161089822649956, 0.04139624163508415, -0.012006701901555061, -0.010513330809772015, -0.001219897298142314, -0.030076488852500916, -0.011566157452762127, 0.006369227077811956, -0.013208865188062191, 0.021519474685192108, 0.0026918009389191866, -0.064155213534832, 0.011924566701054573, 0.0177412461489439, 0.009923449717462063, -0.01455289963632822, 0.05193943902850151, -0.011536289937794209, 0.007810329552739859, -0.001084560644812882, -0.01709909737110138, 0.05423923209309578, 0.012200839817523956, 0.008893023245036602, 0.0511927530169487, 0.018637267872691154, -0.023416055366396904, -0.0008689551614224911, 0.057584382593631744, 0.0006407494656741619, 0.006813504733145237, 0.028702588751912117, -0.012872857041656971, -0.005917482078075409, -0.005357468035072088, -0.004065702203661203, -0.024162741377949715, -0.013694210909307003, 0.007929799146950245, -0.0060630859807133675, 0.025267835706472397, 0.011200281791388988, -0.060272447764873505, 0.02252003364264965, -0.05152129754424095, 0.009632241912186146, -0.007944732904434204, -0.05229784920811653, -0.009512772783637047, 0.006238556932657957, 0.04987858608365059, 0.0286727212369442, -0.0371849350631237, -0.042083192616701126, 0.023057647049427032, 0.04850468784570694, -0.03957432880997658, -0.020683186128735542, 0.01026692520827055, -0.024580884724855423, -0.011289884336292744, 0.020011169835925102, 0.041336506605148315, -0.048415083438158035, 0.010826938785612583, 0.016232941299676895, 0.04223252832889557, -0.006048152223229408, -0.017621776089072227, -0.005189463961869478, -0.002452861750498414, 0.0075751240365207195, -0.022012287750840187, -0.0018639134941622615, -0.019040478393435478, 0.0224752314388752, 0.03566169738769531, -0.047100916504859924, -0.00475265271961689, 0.02322191745042801, -0.017532173544168472, 0.004536114167422056, -0.015545991249382496, 0.017502306029200554, -0.025163300335407257, -0.007646059151738882, -0.01606867089867592, 0.03009142354130745, 0.04073915630578995, 0.05364188179373741, 0.03817056119441986, 0.009923449717462063, -0.053373076021671295, -0.006496163550764322, 0.03375018388032913, -0.027104681357741356, 0.04563741385936737, -0.02832924574613571, -0.01766657829284668, 0.027343621477484703, 3.473837205092423e-05, -0.024625686928629875, -0.017412705346941948, -0.04393497109413147, 0.042680539190769196, -0.0043494426645338535, -0.024909427389502525, 0.05868947505950928, 0.015710262581706047, -0.029971953481435776, -0.028866859152913094, 0.0455179437994957, -0.04984872043132782, 0.025656111538410187, 0.004009700845927, -0.03437739610671997, -0.04369603097438812, 0.06839638948440552, 0.06391627341508865, -0.06397601217031479, -0.02446141466498375, 0.035811033099889755, 0.01639721170067787, -0.007212981581687927, -0.07944732904434204, -0.0027104681357741356, 0.00647749612107873, 0.04199358820915222, 0.0068844398483633995, 0.005361201707273722, 0.018786605447530746, -0.020160507410764694, 0.04411417618393898, 0.00727644981816411, 0.027537759393453598, 0.010222123935818672, -0.02647746540606022, 0.05173036828637123, -0.07251808792352676, 0.04429338127374649, 0.007354851812124252, -0.03948472812771797, -0.011080811731517315, 0.022325895726680756, 0.0002353225863771513, -0.02729881927371025, -0.002740335650742054, -0.018741805106401443, 0.015575858764350414, 0.0154713224619627, 0.016471881419420242, -0.02616385743021965, -2.660066820681095e-05, 0.03500461205840111, -0.00036144242039881647, 0.02938953973352909, 0.06278131157159805, -0.046324364840984344, -0.039454858750104904, 0.014493164606392384, -0.004801187198609114, 0.0135075394064188, 0.07526589184999466, -0.025163300335407257, 0.008930358104407787, -0.07669953256845474, 0.030285561457276344, 0.010505864396691322, -0.004446511622518301, 0.019249550998210907, 0.015165181830525398, 0.050685007125139236, -0.01639721170067787, -0.0023819266352802515, -0.0007527522393502295, 0.013559808023273945, 0.03009142354130745, 0.03148026019334793, -0.005898815114051104, -0.016800422221422195, -0.03739400580525398, 0.01455289963632822, 0.008795954287052155, -0.011782696470618248, 0.006107886787503958, -0.045368608087301254, -0.010580533184111118, -0.04943057522177696, -0.007201781030744314, -0.029658345505595207, 0.005237998440861702, -0.060989268124103546, 0.03742387518286705, 0.012805655598640442, -0.0036064907908439636, 0.012133638374507427, 0.045159537345170975, 0.03270482271909714, 0.032167207449674606, -0.04085862636566162, -0.010961342602968216, -0.017472438514232635, -0.0038752974942326546, 0.03566169738769531, 0.021519474685192108, 0.0007289516506716609, 0.014187023043632507, 0.03091277740895748, 0.035064347088336945, -0.0010154922492802143, 0.031629595905542374, 0.03500461205840111, 0.003705426584929228, 0.03852896764874458, -0.0033078165724873543, 0.02461075223982334, 0.07562430202960968, -0.011200281791388988, 0.05543392896652222, 0.034676071256399155, 0.02187788300216198, 0.03342163935303688, -0.009146897122263908, -0.031629595905542374, -0.006003350950777531, -0.012200839817523956, 0.010625333525240421, -0.03631877899169922, -0.015060645528137684, 0.0239387359470129, -0.013537406921386719, 0.0337800495326519, -0.03357097879052162, -0.028598053380846977, -0.008497280068695545, -0.03700572997331619, 0.04450245201587677, -0.0094157038256526, -0.001339367008768022, -0.0037763617001473904, -0.026746273040771484, -0.023923801258206367, -0.044203776866197586, 0.03363071382045746, -0.042650673538446426, 0.030046623200178146, 0.018189257010817528, 0.009281300008296967, -0.0018107121577486396, -0.029285002499818802, -0.028986329212784767, 0.014799305237829685, 0.019846899434924126, 0.03357097879052162, -0.03443713113665581, -0.022968044504523277, -0.015269717201590538, -0.04262080416083336, -0.019817031919956207, 0.0275825597345829, 0.0039648995734751225, 0.00430090818554163, 0.018144456669688225, -0.0074332538060843945, -0.04719052091240883, 0.01435876078903675, 0.07640085369348526, -0.06493176519870758, -0.04017167538404465, -0.0021205865778028965, -0.06827691942453384, 0.007989534176886082, -0.011319750919938087, 0.03721480444073677, -0.01851779967546463, -0.009161830879747868, 0.034825410693883896, 0.026567067950963974, -0.03091277740895748, 0.04542834311723709, 0.008915424346923828, 0.04847481846809387, 0.029464207589626312, 0.045547813177108765, -0.05408989265561104, -0.032585352659225464, 0.0005189463845454156, 0.003393685445189476, 0.03055436909198761, -0.03413845971226692, -0.10053373128175735, 0.005607607774436474, 0.01848793216049671, -7.262682629516348e-05, -0.006014551036059856, -0.003602757351472974, 0.01777111366391182, -0.0077057937160134315, -0.03437739610671997, -0.016277743503451347, -0.007515389006584883, -0.014702236279845238, 0.045965954661369324, -0.007582590915262699, -0.020399445667862892, 0.016979627311229706, -0.020279977470636368, 0.020384512841701508, -0.019309286028146744, 0.015590792521834373, -0.009355968795716763, -0.040231410413980484, -0.004248640034347773, -0.016277743503451347, -0.006283358205109835, 0.01738283783197403, 0.03646811842918396, 0.023983536288142204, -0.031032247468829155, -0.00916929729282856, 0.034676071256399155, -0.005122262053191662, -0.018756737932562828, -0.015068111941218376, -0.0026171323843300343, 0.025297703221440315, -0.0005922148702666163, 0.044801127165555954, -0.08589869737625122, 0.03213734179735184, -0.003335817251354456, 0.01140188705176115, -0.014343827031552792, 0.017218565568327904, -0.013798747211694717, 0.028762323781847954, -0.026865743100643158, 0.04999805614352226, -0.020683186128735542, 0.07658006250858307, -0.03342163935303688, -0.018219124525785446, -0.029942085966467857, 0.02290830947458744, -0.004838521592319012, 0.06397601217031479, 0.014724637381732464, -0.03073357231914997, 0.06379680335521698, -0.02789616771042347, -0.03171919658780098, -0.025163300335407257, 0.019428756088018417, 0.011327218264341354, 0.01002051867544651, 0.06385654211044312, 0.011760295368731022, 0.014791838824748993, 0.054298967123031616, 0.0477878674864769, 0.0028318045660853386, 0.02585024945437908, 0.0360499732196331, 0.010819472372531891, -0.055493663996458054, 0.0315101258456707, 0.030853042379021645, -0.005630008410662413, -0.020160507410764694, 0.030001820996403694, -0.0247451551258564, -0.010057852603495121, -0.02414780668914318, 0.06761983036994934, 0.028598053380846977, -0.0005394802428781986, -0.005249198526144028, 0.0019731163047254086, 0.014702236279845238, 0.031808800995349884, 0.006645500659942627, -0.02991221845149994, -0.00017838782514445484, -0.0135075394064188, 0.001358034205622971, 0.004241173155605793, 0.005264132283627987, -0.026133989915251732, 0.0038416965398937464, -0.03861857205629349, 0.02647746540606022, 0.016188140958547592, 0.016277743503451347, -0.007660992443561554, -0.003908898215740919, -0.016949759796261787, 0.029792748391628265, 0.026417730376124382, 0.004689184483140707, -0.047996941953897476, 0.011946966871619225, 0.025924919173121452, -0.0456075482070446, -0.002413660753518343, 0.03533315658569336, -0.018174324184656143, 0.0066156331449747086, 0.036945994943380356, 0.023356320336461067, -0.013821147382259369, -0.004931857343763113, 0.00343848648481071, -0.00911702960729599, -0.004603315610438585, 0.030853042379021645, 0.022923242300748825, -0.08536107838153839, 0.006828438490629196, 0.01862233504652977, -0.02719428390264511, -0.003845429979264736, 0.04641396552324295, 0.005626274738460779, -0.031420525163412094, 0.004513713531196117, 0.011932033114135265, 0.01341793779283762, 0.0455179437994957, -0.0069852424785494804, 0.016023870557546616, 0.019802097231149673, 0.02846364863216877, -0.06911320239305496, 0.03843936696648598, -0.0013431004481390119, 0.03440726548433304, -0.02208695560693741, 0.027522824704647064, 0.04468165710568428, -0.003761427942663431, -0.007855131290853024, 0.004364376422017813, 0.011760295368731022, -0.026567067950963974, -0.010289325378835201, -0.01288779079914093, -0.05035646632313728, -0.01008772011846304, 0.013768879696726799, -0.042680539190769196, 0.025118498131632805, 0.03148026019334793, -0.023923801258206367, 0.02552170865237713, -0.001074293628334999, 0.01989169977605343, 0.013813680969178677, 0.021997353062033653, -0.004831054713577032, -0.0035878235939890146, -0.0239387359470129, -0.010438662953674793, -0.01261898409575224, -0.02205708809196949, -0.04181438311934471, 0.013350735418498516, -0.04061968997120857, -0.01663615182042122, -0.016830289736390114, 0.021922685205936432, -0.014381161890923977, -0.0012964325724169612, -0.020011169835925102, 0.020384512841701508, 0.018502864986658096, 0.022490166127681732, -0.03566169738769531, -0.0048347883857786655, -0.02050398290157318, 0.013268600217998028, -0.008579416200518608, 0.029180467128753662, 0.01523984968662262, -0.02148960717022419, 0.061168473213911057, -0.04817614331841469, -0.014642501249909401, -0.014007818885147572, 0.0005530139314942062, -0.030569301918148994, -0.010617867112159729, 0.05609101057052612, 0.032167207449674606, 0.009796513244509697, -0.0365278534591198, -0.005693476647138596, 0.019145015627145767, -0.015799863263964653, -0.0686950609087944, -0.010894140228629112, -0.028583118692040443, -0.03443713113665581, 0.007847663946449757, 0.004442778415977955, 0.017427638173103333, 0.0016361745074391365, -0.01699456013739109, 0.0012357643572613597, -0.00949037168174982, 0.0270150788128376, -0.021758414804935455, 0.0456075482070446, 0.009923449717462063, 0.0085868826135993, -0.01290272455662489, -0.07186100631952286, 0.0048347883857786655, -0.005532938987016678, -0.020414380356669426, -0.01663615182042122, 0.033690448850393295, -0.026298262178897858, -0.012081370688974857, 0.0048347883857786655, -0.03476567566394806, -0.03395925462245941, -0.016680952161550522, -0.013126729987561703, 0.012148572131991386, 0.012342710047960281, -0.008482346311211586, -0.008459946140646935, 0.04118717089295387, -0.045010197907686234, -0.027836432680487633, 0.01671081967651844, 0.014291559346020222, -0.03721480444073677, -0.022460298612713814, -0.01805485412478447, 0.0018657802138477564, 0.004778787028044462, 0.022878441959619522, -0.001563372672535479, 0.004005967639386654, 0.03261522203683853, -0.023879000917077065, -0.006656700745224953, -0.0007345518097281456, 0.003662492148578167, 0.012409912422299385, -0.0010098920902237296, -0.019025545567274094, 0.0012133638374507427, -0.0033078165724873543, 0.014231824316084385, 0.03610970824956894, 0.025372371077537537, -0.06791850924491882, 0.004241173155605793, -0.017800981178879738, -0.005742011126130819, -0.02177334763109684, -0.01735297031700611, -0.01730816811323166, 0.00040951030678115785, -0.02422247640788555, 0.03306323289871216, 0.026582002639770508, -0.010968809016048908, -0.025969719514250755, -0.028866859152913094, 0.01854766719043255, 0.0003073077241424471, -0.0239387359470129, -0.02138507179915905, 0.04318828508257866, -0.004509980324655771, -0.01929435133934021, -2.1408872271422297e-05, -0.02205708809196949, 0.005868947599083185, 0.04130663722753525, -0.008990093134343624, 0.0056150746531784534, -0.0008381544030271471, 0.004297174513339996, 0.019339153543114662, -0.007407119497656822, 0.042083192616701126, -0.0427701435983181, 0.014806772582232952, -0.010505864396691322, 0.01025199145078659, -0.013440337963402271, -0.010737337172031403, 0.009184231050312519, -0.02216162346303463, -0.0027702029328793287, -0.02517823316156864, 0.009923449717462063, 0.008698885329067707, 0.04474139213562012, -0.0405002199113369, 0.005622541531920433, 0.033690448850393295, 0.005764411762356758, 0.004924390465021133, -0.03422806039452553, -0.01007278636097908, 0.005980950314551592, 0.03512408211827278, 0.01283552311360836, -0.04996819049119949, -0.0016240408876910806, 0.01084933988749981, 0.02283364161849022, -0.004580915439873934, 0.010475996881723404, 0.007758061867207289, 0.01347020547837019, -0.0044502452947199345, 0.04082876071333885, -0.023595260456204414, 0.04987858608365059, 0.0013010994298383594, -0.03148026019334793, 0.00670150201767683, 0.007653526030480862, -0.011439220979809761, -0.010909073986113071, -0.027836432680487633, 0.011745361611247063, -0.0077057937160134315, -0.01513531431555748, -0.051849838346242905, 0.016845224425196648, -0.023998470976948738, 0.0029344737995415926, -0.005469470750540495, -0.0019152481108903885, 0.040410615503787994, 0.011058411560952663, 0.014784371480345726, -0.004905723500996828, 0.0016921758651733398, 0.025641178712248802, 1.8127539078705013e-05, -0.02489449270069599, -0.03691612929105759, -0.013641943223774433, 0.016979627311229706, -0.023953668773174286, 0.02213175594806671, -0.020668253302574158, -0.008982625789940357, -0.010752269998192787, -0.01621800847351551, 0.019712496548891068, 0.0012805655132979155, -0.027268951758742332, 0.004599582403898239, 0.024760089814662933, -0.00772819435223937, -0.012424846179783344, 0.014642501249909401, -0.010446129366755486, 0.032376281917095184, 0.01585959829390049, 0.01745750568807125, 0.030031688511371613, 0.033899519592523575, 0.012006701901555061, -0.025252901017665863, -0.0029102065600454807, -0.006555898115038872, 0.009199164807796478, 0.005809212569147348, -0.001922714989632368, 0.008377810940146446, -0.005402269307523966, 0.04259093850851059, 0.005107328295707703, 0.0009688243735581636, -0.013029661029577255, -0.03891724720597267, -0.012783254496753216, 0.005432136822491884, 0.014351294375956059, 0.02358032576739788, -0.022355761379003525, 0.020369578152894974, -0.019055413082242012, 0.024416614323854446, 0.06439415365457535, 0.0024211276322603226, 0.014769437722861767, -0.024117939174175262, -0.017427638173103333, -0.023983536288142204, -0.011439220979809761, -0.02598465420305729, 0.021862950176000595, 0.022400563582777977, -0.058898549526929855, -0.02425234392285347, 0.02903112955391407, 0.005099861416965723, -0.020862391218543053, -0.007235381752252579, -0.021131198853254318, 0.01432142686098814, 0.026328129693865776, -0.0010546932462602854, 0.01730816811323166, -0.008781020529568195, 0.01989169977605343, 0.029718080535531044, -0.025581443682312965, 0.017412705346941948, -0.04029114544391632, 0.023744598031044006, -0.01593426801264286, -0.03802122175693512, -0.029434340074658394, -0.02035464532673359, 0.030210893601179123, 0.006234823260456324, -0.0393652580678463, -8.87272326508537e-05, 0.0024080604780465364, 0.008452478796243668, 0.0018480464350432158, 0.013656876981258392, 0.027836432680487633, 0.0008050202741287649, -0.023625127971172333, -0.018428197130560875, 0.006428961642086506, 0.03843936696648598, 0.011640826240181923, 0.01730816811323166, -0.02443154715001583, -0.03291389346122742, -0.02580544911324978, 0.014306493103504181, 0.006343092769384384, 0.005992150865495205, -0.001960049383342266, 0.005454536993056536, 0.029822615906596184, -0.03566169738769531, 0.0023016578052192926, 0.030882909893989563, -0.021638944745063782, 0.009064760990440845, 0.0224752314388752, 0.03395925462245941, 0.001768711139447987, -3.3717515179887414e-05, 0.015560925006866455, -0.02241549640893936, 0.021862950176000595, -0.009542640298604965, 0.0009268232970498502, 0.012499514035880566, -0.011155480518937111, 0.03282429277896881, -0.003277949057519436, 0.015015844255685806, 0.031241318210959435, -0.001004291931167245, -0.0011480288812890649, 0.008459946140646935, 0.02074292115867138, 0.026955343782901764, -0.026133989915251732, -0.02156427502632141, -0.005462003871798515, -0.013477671891450882, -0.003296616254374385, -0.01568039506673813, 0.004498779773712158, -0.016949759796261787, 0.007015109993517399, 0.017248433083295822, -0.008116470649838448, 0.0015708395512774587, 0.009057294577360153, 0.011036010459065437, 0.004431578330695629, 0.053402941673994064, 0.01432142686098814, -0.015426521189510822, -0.015307052060961723, 0.0021000527776777744, 0.048982564359903336, -0.0060257515870034695, 0.020832523703575134, 0.011693093925714493, -0.014015286229550838, -0.02931487001478672, 0.021370137110352516, 0.029374605044722557, 0.004756386391818523, 0.005465737544000149, -0.004987858701497316, -0.003397418884560466, 0.01617320626974106, 0.003257415257394314, -0.007855131290853024, 0.01438862830400467, -0.03996260464191437, 0.006264690775424242, -0.038857512176036835, -0.011484022252261639, 0.018189257010817528, 0.02541717328131199, 0.004028367809951305, -0.02378939837217331, -0.03279442340135574, 0.046712640672922134, -0.03148026019334793, -0.03386965021491051, 0.008191139437258244, -0.020668253302574158, 0.011834964156150818, -0.00756019027903676, 0.03855883702635765, 0.00515212956815958, 0.03763294592499733, -0.03682652488350868, -0.026208659633994102, 0.023774463683366776, 0.01545638870447874, -0.02988235093653202, -0.010647734627127647, 0.00835540983825922, -0.040410615503787994, -0.006735102739185095, -0.0058204131200909615, 0.008347943425178528, 0.03864843770861626, -0.04748919606208801, 0.03876790776848793, -0.03688625991344452, 0.013089396059513092, 0.022564833983778954, -0.029733015224337578, 0.035422757267951965, -0.006354293320327997, -0.05364188179373741, -0.017517240718007088, 0.009184231050312519, -0.04566728323698044, 0.007922332733869553, 0.025551576167345047, -0.021325336769223213, 0.014829172752797604, -0.003029676154255867, 0.028612986207008362, 0.01929435133934021, 0.004215039312839508, -0.03476567566394806, 0.005428403150290251, 0.0014793705195188522, 0.04396484047174454, -0.02906099706888199, 0.013410470448434353, -0.010461063124239445, -0.022012287750840187, 0.03969379886984825, 0.008855689316987991, -0.0154713224619627, 0.05331334099173546, 0.008452478796243668, -0.02722415141761303, -0.006343092769384384, 0.0483553484082222, -2.528813638491556e-05, 0.001624974189326167, 0.024088071659207344, -0.006850839126855135, 0.01978716440498829, -0.01037146057933569, 0.00028630721499212086, -0.01936902105808258, -0.001267498591914773, -0.006723902653902769, -0.030972512438893318, 0.0029008728452026844, 0.00350008811801672, 0.0264475978910923, -0.022534966468811035, -0.011730428785085678, 0.025342503562569618, 0.003229414578527212, -0.014508098363876343, 0.0021971219684928656, -0.006779904011636972, -0.022296028211712837, -0.0478774718940258, -0.011991768144071102, -0.025790514424443245, 0.0270150788128376, -0.016845224425196648, -0.003920098766684532, 0.00629455829039216, -0.01820419169962406, -0.019637826830148697, -0.015799863263964653, -0.014717170037329197, 0.004879589192569256, -0.025730781257152557, 0.007944732904434204, 0.016830289736390114, -0.025372371077537537, -0.0041702380403876305, -0.01699456013739109, 0.003296616254374385, 0.022594701498746872, 0.011028544045984745, 0.0003110411635134369, -0.029971953481435776, -0.0216688122600317, 0.037543345242738724, -0.030419964343309402, -0.0011788296978920698, 0.00041604379657655954, -0.030390096828341484, -0.00772819435223937, -0.04148584231734276, 0.015874532982707024, -0.010490930639207363, -0.006828438490629196, 0.044412851333618164, 0.008982625789940357, -0.0069217742420732975, -0.02014557272195816, -0.025999587029218674, -0.0005777478800155222, 0.0027384688146412373, 0.029538875445723534, 0.0399327389895916, -0.05417949706315994, -0.010819472372531891, 0.007459387648850679, -0.01083440613001585, -0.02779163233935833, -0.015545991249382496, 0.005428403150290251, 0.021967485547065735, 0.006682834587991238, 0.023416055366396904, 0.021444806829094887, -0.01087174005806446, -0.034825410693883896, -0.0055777402594685555, -0.023072579875588417, 0.021190933883190155, -0.0023613928351551294, 0.007410853169858456, -0.006903106812387705, 0.009348501451313496, 0.05868947505950928, 0.01568039506673813, 0.019996237009763718, 0.03688625991344452, 0.01720363274216652, -0.024879559874534607, 0.008123937994241714, -0.024670487269759178, -0.007455653976649046, -0.009064760990440845, 0.007758061867207289, -0.00047647865721955895, -0.0073212506249547005, 0.007291383575648069, 0.0023987269960343838, 0.015874532982707024, -0.005827879998832941, -0.008019401691854, 0.047668397426605225, 0.022594701498746872, 0.02800070494413376, -0.008728752844035625, -0.027851367369294167, -0.015889465808868408, 0.0017715112771838903, 0.00366435875184834, -0.0019171148305758834, -0.008385277353227139, -0.036199308931827545, -0.011693093925714493, -0.03784201666712761, 0.01869700290262699, 0.0030315429903566837, -0.013873415999114513, 0.005364934913814068, -0.010946408845484257, -0.00996825098991394, -0.006832171697169542, 0.002703001257032156, 0.016680952161550522, 0.001390701625496149, 0.011103212833404541, -0.0140750203281641, 0.021131198853254318, -0.007112178951501846, 0.02499902807176113, -0.015545991249382496, -0.007772995624691248, 0.018368462100625038, -0.0050289263017475605, -0.02241549640893936, 0.0023053912445902824, 0.02275897189974785, 0.014194490388035774, -0.016845224425196648, 0.0011797629995271564, -0.01720363274216652, -0.005350001156330109, -0.002585398266091943, -0.02562624402344227, -0.010707469657063484, 0.003765161382034421, 0.015844665467739105, 3.3425840229028836e-05, 0.0002009050513152033, 0.00826580822467804, -0.007825263775885105, -0.024386746808886528, 0.04713078588247299, -0.008810888044536114, -0.027239084243774414, -0.010349060408771038, -0.007459387648850679, -0.020518915727734566, -0.005547872744500637, 0.006974041927605867, 3.823846054729074e-05, -0.02995702065527439, 0.00532760052010417, 0.00012600317131727934, 0.0022419230081140995, 0.005656142253428698, 0.007205514702945948, 0.0076385922729969025, -0.05767398327589035, -0.00854954868555069, 0.0149038415402174, -0.021161066368222237, 0.004047035239636898, -0.009856248274445534, -0.009863714687526226, 0.053014665842056274, -0.05229784920811653, 0.01932421885430813, 0.057614248245954514, -0.00021513874526135623, -0.020548783242702484, -0.027522824704647064, 0.0023221918381750584, 0.007489255163818598, 0.020369578152894974, -0.0031230119056999683, -0.0005805479595437646, -0.023416055366396904, 0.03882764279842377, 0.034676071256399155, -0.01745750568807125, -0.019130080938339233, -0.013813680969178677, -0.00015902066661510617, -0.029613545164465904, 0.026104122400283813, -0.025790514424443245, -0.010767203755676746, -0.043248020112514496, 0.013813680969178677, 0.029270069673657417, -0.0065782987512648106, -0.013627009466290474, 0.05173036828637123, 0.00973677821457386, -0.031062114983797073, -0.03479554131627083, 0.000432377535616979, 0.0043121082708239555, 0.021638944745063782, -0.02141493931412697, 0.006507363636046648, -0.015889465808868408, -0.008138871751725674, 0.011812563985586166, 0.007063644472509623, -0.04205332323908806, -0.02290830947458744, -0.02265443652868271, 0.008736219257116318, -0.004946791101247072, 0.015949200838804245, -0.02616385743021965, -0.02378939837217331, 0.016964692622423172, -0.027746831998229027, 0.029255134984850883, -0.0031248785089701414, 0.003399285487830639, 0.010147455148398876, 0.008706352673470974, 0.026955343782901764, -0.028836991637945175, 0.011610958725214005, 0.026044389232993126, -0.01848793216049671, -0.01898074336349964, -0.017039362341165543, 0.04091836139559746, 0.015045711770653725, -0.010214656591415405, -0.030016755685210228, -0.026253459975123405, -0.002208322286605835, -0.006481229793280363, -0.020668253302574158, 0.02807537280023098, -0.002581664826720953, -0.008482346311211586, 0.0034067523665726185, -0.01706922985613346, -0.009841314516961575, 0.00010383594781160355, 0.0309426449239254, 0.0286727212369442, -0.002663800260052085, -0.03814069181680679, -0.017084162682294846, 0.010864273644983768, 0.015904400497674942, 0.015157714486122131, 0.010707469657063484, -0.0500577911734581, -0.01311926357448101, 0.02634306252002716, -0.013231266289949417, 0.03891724720597267, 0.0026918009389191866, -0.012738454155623913, -0.00805673561990261, 0.03682652488350868, 0.0012310976162552834, -0.0025480641052126884, -0.004319575149565935, -0.03174906596541405, 0.022176558151841164, 0.01380621362477541, -0.019100213423371315, 0.036169443279504776, 0.03930552303791046, 0.004741452634334564, 0.023729663342237473, -0.00716818030923605, 0.0008731553098186851, 0.03091277740895748, -0.03497474640607834, -0.05540405958890915, -0.022101888433098793, 0.017621776089072227, 0.021549342200160027, -0.0015167047968134284, 0.03590063750743866, -0.013276067562401295, -0.0036736924666911364, -0.0023427256383001804, 0.0143363606184721, -0.009094628505408764, 0.0022120557259768248, 0.014747037552297115, -0.011342152021825314, 0.0433376245200634, -0.004890789743512869, -0.04829561337828636, -0.00996825098991394, -0.0013300334103405476, -0.006496163550764322, 0.006350559648126364, -0.02665667049586773, -0.009841314516961575, -0.002473395550623536, -0.008176205679774284, -0.03509421646595001, -0.00920663122087717, 0.033720314502716064, -0.02311738207936287, 0.025148365646600723, -0.02765722945332527, -0.00018772139446809888, 0.0025499307084828615, -0.011498956009745598, -0.019025545567274094, 0.008848222903907299, -0.031032247468829155, 0.014597700908780098, -0.020294910296797752, -0.002374459756538272, -0.011954434216022491, -0.009647175669670105, 7.927699334686622e-05, 0.002335258759558201, 0.020907191559672356, 0.010894140228629112, 0.00658576563000679, -0.04053008556365967, -0.018039921298623085, 0.027358554303646088, -0.014597700908780098, -0.01456783339381218, -0.03897697851061821, 0.022400563582777977, -0.020100772380828857, -0.03153999149799347, -0.02882205881178379, -0.024341944605112076, -0.0016352410893887281, 0.010147455148398876, 0.027955902740359306, -0.0013552340678870678, 0.023445922881364822, -0.016621217131614685, 0.006066819187253714, -0.0005427469732239842, 0.016277743503451347, -0.02708974853157997, -0.00943810399621725, 0.02967328019440174, -0.06965082138776779, -0.008542081341147423, 0.01865220256149769, 0.001838712953031063, 0.014993444085121155, 0.03300349786877632, 0.003957432694733143, 0.02131040208041668, 0.007855131290853024, -0.005215597804635763, 0.015083045698702335, -0.05543392896652222, -0.010797071270644665, 0.024984095245599747, 0.0026357995811849833, -0.009998118504881859, 0.02365499548614025, 0.01898074336349964, -0.03858870267868042, -0.050117526203393936, -0.0039761001244187355, 0.025581443682312965, -0.021922685205936432, -0.0041067698039114475, 0.017711378633975983, -0.0009538906742818654, -0.011476554907858372, 0.03724467009305954, -0.0085868826135993, -0.006962841842323542, -0.010095187462866306, -0.02934473752975464, -0.009005026891827583, 0.024491282179951668, 0.0224752314388752, 0.006313225254416466, 0.03455660119652748, -0.01578493043780327, 0.0236101932823658, -0.00025690646725706756, -0.0043867770582437515, 0.025939851999282837, 0.018099654465913773, 0.008430078625679016, -0.0066156331449747086, -0.025536641478538513, -0.0188314076513052, -0.028941527009010315, -0.00601828470826149, -0.0018760472303256392, 0.011879765428602695, 0.005051326937973499, -0.0365278534591198, 0.009184231050312519, -0.027537759393453598, 0.03148026019334793, -0.013671810738742352, -0.038319896906614304, -0.007489255163818598, -3.721760367625393e-05, -0.0011928300373256207, 0.048773493617773056, 0.022325895726680756, -0.02074292115867138, 0.012663785368204117, -0.00773566123098135, -0.008101536892354488, 0.009184231050312519, -0.0051297289319336414, -0.010475996881723404, -0.019443688914179802, -0.004495046567171812, -0.00892289076000452, 0.0024024604354053736, 0.023714730516076088, -0.040559954941272736, 0.006081752944737673, 0.017039362341165543, 0.006440162193030119, -0.027672162279486656, 0.005547872744500637, 0.011872299015522003, -0.009975717402994633, -0.017800981178879738, 0.02941940724849701, -0.02970314770936966, 0.018846340477466583, 0.0337800495326519, -0.005898815114051104, 0.002475262153893709, -0.017158832401037216, -0.010998676531016827, -0.0236101932823658, 0.009886114858090878, -0.006727635860443115, -0.004928124137222767, 0.0016025736695155501, -0.02131040208041668, -0.006089219823479652, 0.019145015627145767, 0.015919333323836327, -0.0002452394983265549, -0.004457712173461914, 0.015000910498201847, -0.011431754566729069, -0.02740335650742054, 0.032376281917095184, 0.016949759796261787, -0.003767027985304594, 0.007302583660930395, 0.014425963163375854, -0.018010053783655167, -0.014769437722861767, -0.02499902807176113, -0.004173971712589264, 0.020951993763446808, 0.00973677821457386, 0.014351294375956059, -0.01064026728272438, 0.001246964675374329, -0.015426521189510822, 0.009818913415074348, -0.007660992443561554, 0.015336918644607067, 0.01083440613001585, -0.0037128934636712074, -0.028583118692040443, -0.018786605447530746, 0.0019787163473665714, -0.0022456564474850893, -0.021056529134511948, 0.044203776866197586, -0.01117041427642107, -0.030509566888213158, -0.010475996881723404, 0.037931621074676514, -0.02662680298089981, 0.011633358895778656, -0.01408995408564806, 0.016188140958547592, -0.011043477803468704, -0.0016651084879413247, -0.024655552580952644, 0.002676867414265871, -0.03736414015293121, 0.030584236606955528, 0.010752269998192787, 0.013089396059513092, 0.0182639267295599, -0.01083440613001585, -0.005376134999096394, 0.032167207449674606, -0.0016959093045443296, 0.013477671891450882, 0.024401679635047913], "id": 59}, {"title": "Ogron", "text": "Ogrons are a fictional extraterrestrial race from the British science fiction television series Doctor Who. Ogrons are low-intelligence, ape-like hominids who live in scattered communities on an unnamed planet on the outer fringes of the Milky Way, far from the central spaceways. The dominant lifeform on their home planet is a giant slug-like lizard named the Eater, which preys on and is prayed to by the Ogrons. Ogrons are hired mercenaries.", "vector": [-0.020616374909877777, -0.020223993808031082, -0.02184256725013256, -0.03233877196907997, -0.01177961751818657, 0.003856373718008399, 0.01400311291217804, -0.055652767419815063, -0.029771940782666206, 0.0008685526554472744, -0.037701316177845, 0.056993402540683746, -0.02800622582435608, 0.01667621172964573, 0.024327648803591728, 0.015204780735075474, -0.01393771544098854, 0.03691655397415161, -0.02651844546198845, -0.010136520490050316, 0.03449686989188194, -0.00145610305480659, -0.01051255315542221, -0.04303116351366043, 0.055521972477436066, 0.023232251405715942, 0.037308935075998306, 0.00985858403146267, 0.019897008314728737, -0.012400888837873936, 0.01728113181889057, 0.008195050060749054, 0.006748143117874861, 0.04659529775381088, -0.022839870303869247, -0.04993053898215294, -0.002352244919165969, -0.014117557555437088, 0.0265511441975832, -0.017133990302681923, 0.03318893164396286, -0.015899622812867165, 0.005530125927180052, 0.03268210589885712, -0.02341209165751934, 0.03197908774018288, 0.007586040999740362, 0.003940163645893335, 0.036720361560583115, 0.012163824401795864, -0.0012987416703253984, -0.012572554871439934, -0.004663616884499788, 0.02025669254362583, -0.012245570309460163, 0.02025669254362583, 0.04705307260155678, 0.01621025800704956, 0.007160961162298918, 0.0034721670672297478, -0.03104718215763569, -0.01018556859344244, -0.04332545027136803, 0.01659446582198143, 0.04682418331503868, 0.01798414997756481, 0.019995104521512985, 0.05346197262406349, 0.002429903717711568, -0.011722395196557045, 0.002499388065189123, 0.010733267292380333, 0.012449936009943485, -0.02422955445945263, -0.04770704358816147, 0.011959459632635117, 0.013806921429932117, -0.02941225841641426, -0.010332711040973663, -0.08540835976600647, 0.008607868105173111, 0.031276069581508636, 0.020142247900366783, 0.04986514151096344, 0.052513714879751205, 0.010651521384716034, 0.016283830627799034, -0.053298477083444595, -0.018556371331214905, -0.005252189002931118, -0.0030981784220784903, 0.054704513400793076, -0.0065315160900354385, 0.027662891894578934, 0.0006110523245297372, -0.036524172872304916, -0.011624299921095371, -0.016790656372904778, -0.017624465748667717, 0.011673348024487495, -0.01059429906308651, -0.011125648394227028, -0.028447654098272324, -0.006658222526311874, 0.038191791623830795, 0.049538157880306244, 0.052382923662662506, 0.0602632500231266, -0.03864957019686699, 0.050944190472364426, 0.007095564156770706, -0.016406448557972908, -0.004083219449967146, -0.013847795315086842, 0.007091477047652006, 0.005145919043570757, -0.01819668896496296, 0.005697705317288637, -0.08671630173921585, -0.016054941341280937, 0.0031533571891486645, -0.008526121266186237, -0.02200605906546116, 0.010030250996351242, -0.0014673430705443025, -0.012310967780649662, -0.04989783838391304, 0.05496609956026077, 0.016807004809379578, 0.03904195502400398, -0.006715444847941399, -0.019864309579133987, 0.004855720326304436, -0.017771609127521515, 0.06742420792579651, 0.0265511441975832, 0.025194158777594566, 0.006948421243578196, 0.017640816047787666, 0.04911307618021965, -0.05064990371465683, 0.02025669254362583, 0.012654301710426807, 0.0377667136490345, -0.012229221872985363, 0.0378648079931736, -0.0057058800011873245, 0.011043902486562729, 0.018654467537999153, -0.023281298577785492, 0.0529060959815979, -0.02727051079273224, 0.008836757391691208, -0.0018341788090765476, 0.005068260245025158, -0.008109216578304768, -0.005329847801476717, -0.027515748515725136, -0.02030573971569538, 0.02192431315779686, -0.04924387112259865, 0.03331972286105156, -0.06510262191295624, 0.008231835439801216, 0.01808224432170391, -0.039009254425764084, 0.08880899846553802, 0.035935599356889725, -0.01548271719366312, 0.006482468452304602, -0.01881795935332775, -0.000675427436362952, 0.031390514224767685, 0.027744637802243233, -0.02949400432407856, 0.06912452727556229, 0.012776920571923256, 0.0059347692877054214, -0.005812149960547686, 0.023755425587296486, -0.01016104407608509, 0.01365160383284092, 0.010937632992863655, -0.013586207292973995, 0.02576638199388981, 0.018000498414039612, -0.00024932570522651076, 0.02867654338479042, 0.01971716806292534, -0.0006641873042099178, 0.0037174054887145758, -0.03094908595085144, -0.018670815974473953, -0.011722395196557045, 0.01736287958920002, 0.03016432374715805, -0.0379956029355526, -0.027744637802243233, -0.05656832456588745, -0.02506336383521557, 0.009171916171908379, -0.03191369026899338, 0.043488942086696625, 0.008227747865021229, -0.012997634708881378, -0.023820823058485985, 0.0051336572505533695, -0.009458027780056, -0.007418461609631777, 0.01286684162914753, 0.04898228123784065, -0.005611871834844351, 0.0007275405805557966, 0.05375625565648079, -0.06703183054924011, -0.01577700302004814, 0.005476990714669228, 0.0052113160490989685, 0.002407423686236143, 0.011853189207613468, -0.02653479389846325, -0.02043653279542923, 0.021744471043348312, 0.0010851799743250012, 0.0022704987786710262, -0.029919084161520004, -0.03466036170721054, 0.02566828578710556, -0.017003195360302925, -0.020600026473402977, -0.07455247640609741, 0.020027803257107735, 0.005260363686829805, -0.0113708870485425, -0.08174613118171692, 0.050976887345314026, 0.038911160081624985, 0.011616125702857971, -0.010169219225645065, -0.01880161091685295, 0.02723781205713749, 0.018409229815006256, -0.002517780987545848, 0.011746919713914394, 0.07245977222919464, 0.011166521348059177, -0.013112079352140427, -0.05990356579422951, 0.008150089532136917, 0.029216067865490913, -0.009907631203532219, -0.0023256775457412004, -0.022447487339377403, 0.012785094790160656, -0.004169052932411432, -0.03691655397415161, 0.04842640832066536, 0.007471596356481314, -0.014321922324597836, 0.0020038019865751266, -0.044077515602111816, 0.0010243812575936317, -0.057091500610113144, 0.013324619270861149, -0.03181559592485428, -0.07984962314367294, 0.020125897601246834, -0.045810531824827194, -0.01814764179289341, -0.025553841143846512, -0.023869870230555534, -0.022202249616384506, -0.04594132676720619, -0.00795389898121357, -0.003222841303795576, -0.0008981856517493725, 0.021008756011724472, -0.011346363462507725, 0.08096136897802353, 0.009000249207019806, -0.010708743706345558, -0.059249598532915115, -0.04002290591597557, -0.0013743569143116474, 0.039761319756507874, 0.07030167430639267, -0.01736287958920002, -0.04394672065973282, 0.015531765297055244, 0.03103083185851574, -0.014403668232262135, 0.028218764811754227, 0.021662725135684013, 0.047314662486314774, 0.0053911576978862286, 0.016888750717043877, 0.061571188271045685, 0.007316278759390116, -0.0041281795129179955, -0.00227254256606102, 0.0011710133403539658, -0.008317668922245502, -0.02875828929245472, -0.02859479747712612, 0.001105616451241076, 0.0038911160081624985, -0.07396390289068222, -0.030573053285479546, 0.02408241108059883, 0.010823188349604607, 0.0044592516496777534, -0.003468079725280404, -0.006343499757349491, -0.010144694708287716, -0.033679407089948654, -0.017035894095897675, 0.013545334339141846, 0.01661081425845623, -0.01166517287492752, 0.00018916565750259906, 0.008591518737375736, -0.035118140280246735, -0.06425245851278305, -0.011943110264837742, 0.0454508513212204, 0.032829247415065765, -0.03250226378440857, 0.006380285602062941, -0.03166845068335533, 0.018556371331214905, -0.03345051780343056, -0.00030884711304679513, 0.02182621695101261, -0.022872567176818848, 0.019030500203371048, 0.013005809858441353, -0.03622988611459732, 0.005121395457535982, 0.017755260691046715, -0.0011955371592193842, 0.0033454603981226683, -0.01584240049123764, 0.0603613443672657, -0.016414623707532883, -0.0376359187066555, 0.003811413422226906, 0.03258400782942772, 0.01614486053586006, -0.04607212170958519, 0.029837338253855705, 0.0007295842515304685, 0.025390349328517914, -0.0683397650718689, 0.03423528000712395, -0.011681522242724895, -0.01356985792517662, 0.0023215902037918568, -0.0017084941500797868, 0.03694925084710121, 0.030017180368304253, -0.02957575023174286, -0.01434644591063261, 0.0001129118463722989, -0.0018597245216369629, -0.08069977909326553, -0.024703681468963623, 0.03871496766805649, 0.03619718924164772, -0.008975725620985031, 0.006184095051139593, 0.006813540123403072, 0.01976621523499489, 0.013422715477645397, -0.026060666888952255, -0.04326005280017853, 0.02882368676364422, 0.055391181260347366, 0.017591767013072968, 0.0015286527341231704, 0.015262003056704998, 0.0031697063241153955, 0.03181559592485428, -0.05055180937051773, 0.05382165312767029, 0.014534462243318558, 0.016921449452638626, -0.04218100383877754, -0.024327648803591728, 0.0094662019982934, 0.03878036513924599, 0.0151066854596138, 0.019831612706184387, 0.05002863332629204, 0.02112320065498352, 0.027466701343655586, 0.018490975722670555, -0.008992074988782406, 0.014150255359709263, -0.047151170670986176, 0.04600672423839569, -0.005848935805261135, 0.023068759590387344, 0.025455746799707413, -0.015703432261943817, 0.044993072748184204, -0.041984815150499344, -0.016022242605686188, 0.02354288659989834, -0.022807171568274498, 0.01960272341966629, -0.032845597714185715, 0.023248599842190742, -0.04303116351366043, 0.027417652308940887, 0.0018086332129314542, 0.001165904221124947, 0.013013984076678753, 0.020796217024326324, -0.04034988954663277, -0.0031983174849301577, -0.0377994105219841, 0.020567327737808228, 0.006846238858997822, 0.0226600281894207, -0.04162513092160225, 0.05150006338953972, 0.0014090989716351032, 0.0059388563968241215, -0.026077017188072205, -0.05807245150208473, 0.04361973702907562, -0.018916055560112, 0.024720029905438423, 0.032240673899650574, -0.015041288919746876, 0.030017180368304253, -0.0071037388406693935, 2.2560016077477485e-05, 0.036654967814683914, 0.05130387470126152, 0.022414790466427803, 0.040415287017822266, -0.06549499928951263, -0.01889970526099205, -0.049472760409116745, -0.026240509003400803, 0.019962405785918236, 0.013095730915665627, 0.003206492168828845, 0.031439561396837234, 0.009237312711775303, -0.05833404138684273, -0.03196273744106293, -0.012482634745538235, 0.03462766110897064, 0.0024748642463237047, 0.0832502618432045, -0.01169787161052227, 0.019079547375440598, 0.026894478127360344, 0.023951616138219833, 0.003572306130081415, -0.0003913596156053245, -0.007087389938533306, 0.005734491162002087, 0.027450351044535637, -0.06202896684408188, 0.0019404488848522305, -0.0016052896389737725, -0.026649238541722298, -0.028267811983823776, 0.005603697616606951, -0.04672608897089958, 0.010324536822736263, 0.012572554871439934, 0.007598303258419037, -0.028087971732020378, 0.05074799805879593, -0.03152130916714668, 0.016733434051275253, 0.04129814729094505, 0.0046431804075837135, -0.00773318437859416, 0.01250715833157301, 0.006462031975388527, 0.015392797067761421, 0.03160305693745613, 0.03317258134484291, -0.00865691527724266, -0.010479854419827461, 0.010569775477051735, -0.048034027218818665, 0.03420258313417435, 0.01819668896496296, -0.00046212109737098217, -0.02723781205713749, 0.01283414289355278, -0.030834641307592392, -0.004344807006418705, -0.02115589939057827, -0.018409229815006256, -0.03907465189695358, -0.01952097751200199, 0.0038420683704316616, 0.012482634745538235, 0.0027405391447246075, 0.032207977026700974, 0.04917847365140915, -0.003931988961994648, -0.012482634745538235, 0.023722728714346886, -0.01726478338241577, 0.001856659073382616, -0.0024503404274582863, 0.03956512734293938, 0.020681772381067276, 0.012997634708881378, 0.009449852630496025, 0.05820324644446373, -0.008877630345523357, -0.045810531824827194, -0.006224968004971743, -0.02642035111784935, 0.022169550880789757, 0.015351924113929272, 0.036033693701028824, 0.009547947905957699, 0.022398440167307854, 0.00264040008187294, 0.00950707495212555, 0.007128262892365456, -0.009703266434371471, -0.03564131259918213, -0.004806672688573599, 0.003903377801179886, -0.017117640003561974, 0.02709066867828369, 0.012245570309460163, 0.0002909651375375688, -0.023150505498051643, -0.029951782897114754, 0.024638283997774124, -0.03485655039548874, 0.02429495006799698, 0.04921117052435875, 0.005767189897596836, 0.006486555561423302, -0.01674160733819008, -0.034333374351263046, -0.001074961619451642, -0.007467509247362614, 0.01958637312054634, -0.024556538090109825, -0.02486717328429222, 0.011199220083653927, -0.04100386053323746, -0.02262732945382595, 0.008141915313899517, -0.06314071267843246, 0.008542470633983612, 0.029265115037560463, 0.023706378415226936, -0.05519498884677887, -0.019798913970589638, 0.01630835421383381, 0.016807004809379578, -0.047151170670986176, 0.039009254425764084, -0.002337939338758588, -0.0019097940530627966, 0.01246628537774086, -0.013455413281917572, -0.014616208150982857, 0.003621353767812252, 0.01363525539636612, -0.0020508060697466135, 0.009678741917014122, -0.0376359187066555, -0.004851633217185736, 0.016618989408016205, 0.005554649978876114, 0.022807171568274498, -0.030622102320194244, 0.01827843487262726, -0.04767434671521187, -0.04738005995750427, 0.011885887943208218, -0.0009395696106366813, -0.009335407987236977, -0.02936321124434471, -0.008084692992269993, 0.02051827870309353, -0.016512718051671982, 0.03698195144534111, 0.0024891698267310858, -0.005620046518743038, -0.010716917924582958, 0.02190796285867691, -0.023575585335493088, -0.02418050542473793, 0.025897175073623657, -0.005456554237753153, -0.005170443095266819, -0.018916055560112, -0.03103083185851574, 0.017918752506375313, 0.06104801222681999, -0.006224968004971743, 0.0014489502646028996, 0.00901659857481718, -0.02483447454869747, 0.022480186074972153, 0.01477152667939663, -0.0008849019068293273, 0.02795717678964138, 0.010692394338548183, -0.014853272587060928, -0.03577210754156113, 0.003623397322371602, -0.03343416750431061, -0.016381924971938133, 0.0018382661510258913, 0.04152703657746315, 0.036033693701028824, 0.00469222804531455, -0.008566995151340961, 0.013905017636716366, 0.002104962943121791, -0.0021744470577687025, 0.035739410668611526, 0.025848127901554108, 0.03495464473962784, 0.012531681917607784, -0.002317502861842513, -0.0011321839410811663, 0.024654634296894073, -0.02429495006799698, -0.011092950589954853, 0.029771940782666206, 0.023248599842190742, 0.003010301385074854, 0.04283497482538223, 0.009008423425257206, -0.05826864391565323, 0.0038461554795503616, -0.009752313606441021, 0.03714544326066971, 0.007884414866566658, -0.00150208524428308, -0.029167020693421364, 0.014926844276487827, 0.014477239921689034, -0.02870924212038517, -0.026616541668772697, -0.005693618208169937, -0.04208290949463844, -0.01213930081576109, -0.035902902483940125, -0.027630193158984184, 0.02200605906546116, 0.017787959426641464, -0.029346860945224762, 0.010144694708287716, -0.030033528804779053, -0.002288891701027751, -0.043488942086696625, 0.02127034403383732, -0.00218262174166739, 0.0021151811815798283, 0.039009254425764084, -0.010790489614009857, -0.02032208815217018, 0.01674160733819008, -0.05496609956026077, -0.005035561975091696, -0.02025669254362583, -0.019275737926363945, -0.033581312745809555, -0.01955367438495159, -0.02112320065498352, -0.021580979228019714, -0.019357483834028244, 0.05718959495425224, -0.03248591348528862, -0.037276238203048706, -0.007430723402649164, -0.03835528716444969, 0.003989211283624172, -0.015376447699964046, 0.007013818249106407, -0.015351924113929272, 0.03026241809129715, 0.002421729266643524, 0.07056326419115067, -0.013896842487156391, 0.012409063056111336, -0.049374666064977646, -0.02563558705151081, 0.00550151476636529, -0.014199303463101387, -0.014845097437500954, 0.02859479747712612, 0.011346363462507725, 0.009605170227587223, -0.02563558705151081, -0.028365908190608025, -0.015016764402389526, 0.017133990302681923, -0.004863895010203123, 0.03619718924164772, -0.002100875601172447, -0.004778061527758837, -0.03413718566298485, 0.01507398672401905, 0.0076718744821846485, -0.005636395886540413, 0.018638119101524353, 0.02032208815217018, 0.028251463547348976, 0.017117640003561974, 0.03858417645096779, 0.0377340167760849, 0.02254558354616165, -0.0010172284673899412, 0.014027636498212814, -0.02725416049361229, 0.041069258004426956, -0.011869538575410843, 0.039695922285318375, 0.009981202892959118, -0.03479115292429924, -0.0379956029355526, -0.010316361673176289, 0.0187689121812582, 0.004773973952978849, 0.02949400432407856, -0.0013590294402092695, -0.00864874105900526, 0.012351840734481812, 0.055391181260347366, -0.0093844560906291, 0.012327317148447037, 0.02032208815217018, -0.038943856954574585, -0.014608033932745457, -0.012155650183558464, 0.014068509452044964, -0.030687497928738594, -0.017738910391926765, 0.012637952342629433, 0.021711772307753563, -0.022120503708720207, -0.0012496940325945616, -0.003652008483186364, -0.009572472423315048, 0.01635740138590336, 0.018425578251481056, 0.017787959426641464, 0.01803319714963436, -0.007712747436016798, 0.018556371331214905, 0.024376697838306427, -0.02560288831591606, 0.0076718744821846485, 0.04237719625234604, 0.019864309579133987, -0.04823021963238716, -0.04296576604247093, -0.005342109594494104, 0.003220797749236226, 0.016463670879602432, 0.003760322229936719, 0.008195050060749054, -0.04754355177283287, 0.020828913897275925, 0.027008922770619392, -0.011550728231668472, 0.02575003169476986, -0.016602639108896255, -0.018441928550601006, -0.025161460041999817, 0.01286684162914753, -0.012033030390739441, 0.0005098914843983948, 0.003907465375959873, -0.002961253747344017, 0.049505457282066345, 0.013071206398308277, 0.015294701792299747, 0.03109622932970524, -0.029232416301965714, 0.022480186074972153, 0.030573053285479546, 0.017052242532372475, -0.03184829279780388, 0.010471679270267487, -0.001992562087252736, 0.026060666888952255, -0.016283830627799034, -0.01055342610925436, 0.029134321957826614, 0.01625930517911911, -0.0024891698267310858, 0.03307448700070381, 0.004786236211657524, 0.0010688307229429483, -0.03166845068335533, 0.014608033932745457, -0.03632798045873642, -0.021744471043348312, 0.021368438377976418, 0.05604514852166176, -0.007442985195666552, 0.025864476338028908, -0.0006892220699228346, 0.024343999102711678, 0.0025566103868186474, 0.0024626022204756737, 0.004246711730957031, -0.04309656098484993, -0.012171999551355839, 0.003427206538617611, -0.0053707207553088665, 0.016757957637310028, 0.03708004578948021, 0.0985531359910965, 0.008804058656096458, -0.0015644165687263012, -0.029085274785757065, -0.01055342610925436, -0.02037113718688488, 0.02109050191938877, 0.04404481500387192, -0.013545334339141846, 0.0020600026473402977, 0.020927010104060173, 0.0527426041662693, -0.03304178640246391, 0.05218673124909401, 0.026698287576436996, -0.000561493739951402, -0.033712103962898254, 0.05068260431289673, -0.01742827519774437, 0.0032637142576277256, -0.0044633387587964535, -0.018687166273593903, -0.05843213573098183, 0.007720922119915485, 0.06284642964601517, 0.03397369384765625, -0.04751085117459297, -0.003040956100448966, 0.032861944288015366, -0.013504461385309696, -0.04286767169833183, -0.0020354788284748793, 0.0015603293431922793, -0.04080766811966896, 0.01957002468407154, 0.02637130208313465, 0.008117390796542168, 0.02790812961757183, 0.006547865457832813, -0.02506336383521557, -0.016618989408016205, 0.04005560651421547, -0.01971716806292534, -0.02416415698826313, -0.02413145825266838, -0.016569940373301506, 0.016022242605686188, -0.0009712462197057903, -0.0012834143126383424, -0.04751085117459297, -0.021531932055950165, -0.02404971234500408, -0.036687664687633514, -0.006392547395080328, 0.01597319357097149, -0.020992407575249672, 0.006850325968116522, 0.016602639108896255, 0.004340719897300005, 0.04172322526574135, -0.008877630345523357, 0.04934196546673775, 0.005636395886540413, 0.025243205949664116, 0.0038645484019070864, -0.046529900282621384, 0.002883594948798418, 0.020044151693582535, 0.023232251405715942, -0.010610648430883884, 0.0302133709192276, -0.0017871748423203826, 0.028856385499238968, -0.01726478338241577, 0.0004585447022691369, 0.015049463137984276, -0.008526121266186237, 0.00864874105900526, -0.01818034052848816, 0.06418706476688385, 0.020207643508911133, 0.023722728714346886, -0.006502904929220676, -0.0015613511204719543, -0.024442093446850777, -0.010610648430883884, 0.021433835849165916, 0.009122868068516254, 0.008403502404689789, 0.03858417645096779, -0.03194638714194298, 0.0682743713259697, -0.013496286235749722, -0.0016175516648218036, 0.008787709288299084, 0.014673430472612381, -0.002948991721495986, 0.035183534026145935, -0.009204614907503128, -0.036000996828079224, -0.059282295405864716, -0.0018556371796876192, -0.006208618637174368, -0.02422955445945263, 0.005632308777421713, 0.0009738008375279605, -0.0007219205144792795, -0.0018668773118406534, -0.018523674458265305, 0.007610565051436424, -0.01055342610925436, 0.05388705059885979, 0.015899622812867165, 0.003764409339055419, -0.009646044112741947, 0.02879098802804947, 0.003488516202196479, 0.030622102320194244, 0.04218100383877754, 0.006940246559679508, 0.002102919388562441, 0.007377588655799627, -0.007806755602359772, -0.017935100942850113, -0.017003195360302925, 0.03157035633921623, -0.0018862920114770532, -0.007095564156770706, -0.0004840903857257217, -0.02429495006799698, 0.01968446932733059, 0.009923980571329594, 0.04211560636758804, -0.050290219485759735, -0.0035253020469099283, -0.01096215657889843, 0.07455247640609741, -0.003995342180132866, 0.0022664114367216825, -0.0017841093940660357, -0.01213930081576109, -0.03225702419877052, 0.04133084416389465, -0.01473882794380188, 0.008534296415746212, -0.024066060781478882, 0.010537076741456985, 0.0379956029355526, -0.023052409291267395, 0.02957575023174286, 0.02565193735063076, -0.001505150692537427, 0.010774140246212482, 0.02125399373471737, -0.00906564574688673, 0.014084858819842339, -0.05735308676958084, -0.028349559754133224, -0.006846238858997822, -0.012482634745538235, 0.03315623104572296, -0.04411021247506142, 0.010537076741456985, 0.00136618223041296, -0.013537159189581871, -0.030442260205745697, 0.050224825739860535, 0.00019567980780266225, -0.030573053285479546, 0.03835528716444969, 0.030000830069184303, -0.006445682607591152, 0.014035810716450214, -0.01729748211801052, -0.01746097393333912, 0.002989864908158779, -0.016406448557972908, -0.008235923014581203, 0.020861612632870674, -0.0007040385971777141, 0.0375378243625164, 0.011632475070655346, -0.043390847742557526, -0.023085108026862144, -0.00011731847189366817, -0.0015409146435558796, -0.05006133019924164, 0.002254149643704295, -0.013855969533324242, 0.0046431804075837135, 0.018687166273593903, 0.008334018290042877, -0.028856385499238968, 0.008951202034950256, 0.07049786299467087, 0.0030164322815835476, -0.00451238639652729, 0.007892589084804058, -0.0018556371796876192, -0.015049463137984276, 0.037276238203048706, -0.04963625222444534, 0.0011291184928268194, -0.0043856799602508545, 0.0008450506720691919, -0.005489252973347902, -0.004291671793907881, -0.017084941267967224, -0.006711357738822699, -0.009220964275300503, -0.006850325968116522, -0.032093532383441925, -0.0030368687584996223, 0.023918919265270233, -0.02504701539874077, 0.024589236825704575, 0.01283414289355278, -0.003192186588421464, -0.008125565946102142, 0.0006953530246391892, -0.047837838530540466, -0.019161293283104897, -0.01729748211801052, -0.00031676626531407237, -0.028987178578972816, -0.01016104407608509, 0.02789178118109703, -0.01164882443845272, -0.01594049669802189, 0.011853189207613468, 0.0048761568032205105, 0.017591767013072968, -0.022496536374092102, 0.02413145825266838, 0.008158263750374317, 0.013847795315086842, -0.027760986238718033, 0.02127034403383732, -0.0036663140635937452, 0.028218764811754227, 0.008918503299355507, 0.006282190326601267, 0.026044318452477455, 0.004442902281880379, -0.03153765946626663, -0.007729096803814173, -0.008219573646783829, 0.0032882383093237877, 0.008387153036892414, 0.02424590289592743, 0.03488925099372864, 0.01809859462082386, 0.002840678207576275, 0.018360180780291557, -0.013496286235749722, 0.024589236825704575, -0.0021397050004452467, 0.007712747436016798, -0.012049379758536816, -0.022431138902902603, 0.029935434460639954, 0.008673264645040035, 0.015343748964369297, -0.013226523995399475, -0.016136687248945236, -0.0038298063445836306, -0.0016849922249093652, 0.0049497284926474094, -0.011125648394227028, -0.011714220978319645, -0.02252923510968685, 0.006466119084507227, -0.012588904239237309, 0.0011086818994954228, 0.017657164484262466, 0.0150985112413764, -0.042606085538864136, 0.017166687175631523, 0.016954148188233376, 0.041886717081069946, 0.003934032749384642, -0.00368470698595047, 0.014542637392878532, 0.026845430955290794, 0.001260934048332274, -0.0377667136490345, -0.015850575640797615, -0.02730320766568184, -0.03691655397415161, 0.020828913897275925, 0.0068666753359138966, -0.018638119101524353, -0.02493257075548172, 0.01734652929008007, 0.006032864563167095, 0.033646710216999054, -0.016586290672421455, 0.009850408881902695, -0.013896842487156391, 0.006024689879268408, 0.0011005073320120573, -0.029265115037560463, -0.01401128713041544, -0.019292088225483894, 0.041134655475616455, 0.02339574322104454, 0.00150208524428308, 0.008182788267731667, 0.01052890159189701, 0.03255131095647812, 0.007034254726022482, 0.0017074723728001118, -0.019422881305217743, 0.023117806762456894, 0.0132755720987916, 0.007765882648527622, 0.015588987618684769, -0.026240509003400803, 0.012319141998887062, -0.010749616660177708, 0.023771775886416435, -0.017902404069900513, 0.0014530374901369214, -0.02336304448544979, 0.017657164484262466, 0.005603697616606951, -0.005342109594494104, 0.040480684489011765, 0.023624632507562637, -0.0002595439727883786, -0.002487126039341092, 0.04705307260155678, 0.018719865009188652, -0.030425909906625748, -0.012760571204125881, -0.02480177767574787, -0.03914004936814308, -0.04205021262168884, -0.01821303926408291, -0.023052409291267395, -0.017199385911226273, 0.00623314268887043, -0.03616448864340782, -0.02045288309454918, -0.00942532904446125, 0.0006156505551189184, 0.053985144942998886, 0.001537849078886211, 0.029117973521351814, 0.01806589588522911, 0.024605585262179375, 0.008517947047948837, 0.005595522932708263, 0.01059429906308651, -0.01579335331916809, -0.01625930517911911, -0.015662558376789093, 0.0013723132433369756, -0.013185651041567326, 0.001566460239700973, 0.009180090390145779, -0.022987011820077896, -0.0026363127399235964, 0.032845597714185715, 0.022447487339377403, -0.0033597659785300493, -0.0112973153591156, 0.012327317148447037, -0.0188343096524477, 0.02117224782705307, -0.019373834133148193, -0.022905265912413597, 0.005407506600022316, 0.012597079388797283, 0.00047591576003469527, 0.01441184338182211, 0.013095730915665627, 0.010986680164933205, -0.008436201140284538, -0.01022644154727459, -0.029068924486637115, 0.009147392585873604, -0.00795389898121357, -0.03175019845366478, 0.038943856954574585, 0.02198971062898636, 0.00408935034647584, -0.013815096579492092, 0.02946130558848381, 0.007451159879565239, 0.04002290591597557, 0.02050193026661873, -0.011125648394227028, -0.0035048655699938536, 0.01213112659752369, -0.0033842897973954678, -0.023134155198931694, -0.013218349777162075, -0.008485248312354088, 0.03009892627596855, -0.00810512900352478, -0.004124092403799295, -0.03502004221081734, 0.04136354476213455, -0.01611216366291046, -0.005219490732997656, 0.002666967688128352, 0.03111257776618004, 0.026060666888952255, 0.0190141499042511, -0.0526772066950798, 0.002006867667660117, -0.01279326993972063, -0.00777405733242631, 0.011379062198102474, 0.0189978014677763, -0.026681937277317047, 0.007492033299058676, -0.005591435357928276, 0.008485248312354088, 0.013283746317029, 0.015801528468728065, -0.0010494160233065486, -0.010406282730400562, -0.02570098452270031, -0.032894644886255264, -0.004316195845603943, -0.01133818831294775, -0.016014067456126213, -0.026829080656170845, 0.016790656372904778, -0.002268455224111676, 0.0008573125815019011, -0.032861944288015366, 0.022480186074972153, 0.004704489838331938, -0.0066091748885810375, 0.05535848066210747, -0.03099813312292099, -0.03616448864340782, 0.02798987552523613, 0.001875051879324019, 0.0263222549110651, -0.009327233768999577, -0.013087555766105652, 0.006870762445032597, 0.029902735725045204, 0.00828088354319334, -0.013806921429932117, 0.017640816047787666, 0.002838634420186281, 0.013954064808785915, -0.0009247531415894628, -0.037701316177845, -0.009000249207019806, 0.025864476338028908, 0.026943525299429893, 0.02947765588760376, 0.033712103962898254, -0.0013600513339042664, -0.013831445947289467, -0.019030500203371048, -0.003974905703216791, -0.01585874892771244, 0.007696398533880711, -0.022856218740344048, 0.013586207292973995, 0.0048761568032205105, 0.004402029328048229, 0.006069650407880545, 0.02857844904065132, 0.026109714061021805, -0.0377667136490345, 0.014624383300542831, 0.0034905599895864725, -0.03315623104572296, -0.011092950589954853, 0.025553841143846512, 0.013422715477645397, -0.005354371853172779, -0.0019363615429028869, -0.01554811466485262, 0.00718957232311368, -0.061603885143995285, 0.010782315395772457, -0.015008590184152126, -0.0009084038902074099, 0.012997634708881378, -0.0049497284926474094, -0.03397369384765625, 0.019046848639845848, -0.002581134205684066, 0.029820989817380905, -0.04250798746943474, 0.006024689879268408, -0.04741275683045387, 0.004169052932411432, -0.038813065737485886, -0.002887682057917118, -0.0068421512842178345, 0.00715278647840023, 0.031145276501774788, 0.027826383709907532, -0.011820490472018719, -0.0005098914843983948, -0.017706211656332016, -0.02576638199388981, -0.010945807211101055, 0.02575003169476986, -0.0011117474641650915, -0.012711524032056332, 0.02944495715200901, -0.0009313949849456549, -0.011387236416339874, 0.014158430509269238, -0.01242541242390871, 0.009891281835734844, -0.00037552131107077, -0.014076683670282364, -0.005039649084210396, 0.005387070123106241, -0.0019711037166416645, -0.02182621695101261, 0.04077497124671936, -0.036000996828079224, -0.018490975722670555, 0.0008792818407528102, -0.006674571894109249, -0.01824573613703251, 0.04394672065973282, -0.006617349572479725, -0.007974334992468357, 0.013267396949231625, -0.0018239605706185102, 0.005599610041826963, -0.008575169369578362, -0.029003528878092766, -0.03721084073185921, -0.037701316177845, 0.017215736210346222, -0.05107498541474342, 0.020616374909877777, 0.0014622339513152838, 0.003073654603213072, -0.017755260691046715, -0.0010667870519682765, -0.025128761306405067, -0.022496536374092102, -0.010610648430883884, 0.0030613925773650408, -0.012449936009943485, 0.019995104521512985, -0.024327648803591728, -0.023624632507562637, 0.05974007397890091, 0.026616541668772697, -0.01441184338182211, -0.029902735725045204, 0.037570521235466, 0.02480177767574787, 0.02733590640127659, -0.00909834448248148, -0.038093697279691696, -0.022283995524048805, -0.0038277627900242805, 0.013349143788218498, -0.03310718387365341, 0.047281961888074875, 0.0003839513810817152, -0.007377588655799627, -0.013103905133903027, -0.014460890553891659, -0.010741441510617733, -0.011681522242724895, -0.01060247328132391, 0.016447322443127632, 0.010733267292380333, 0.0064293332397937775, 0.013676128350198269, 0.014207477681338787, -0.004532822873443365, 0.014084858819842339, -7.963861571624875e-05, 0.04303116351366043, 0.027401303872466087, 0.029052576050162315, 0.0013774223625659943, -0.008395328186452389, 0.001005988335236907, 0.01477970089763403, -0.035837505012750626, -0.017673514783382416, 0.03320527821779251, 0.005575086455792189, 0.0264693982899189, -0.013479937799274921, -0.008231835439801216, -0.027597494423389435, 0.014321922324597836, 0.00218262174166739, 0.0028611146844923496, -0.006789016537368298, -0.015286526642739773, 0.018572721630334854, -0.003163575427606702, 0.013087555766105652, -0.004990601446479559, 0.035052742809057236, 0.01547454297542572, -0.0226763766258955, -0.009956679306924343, -0.021401137113571167, -0.013112079352140427, -0.00532167311757803, -0.023918919265270233, 0.02795717678964138, -0.03920544683933258, 0.003942207433283329, 0.04885149002075195, -0.015302876010537148, -0.0036050044000148773, -0.00792120024561882, 0.0024523839820176363, 0.01177144329994917, 0.026861779391765594, 0.016471846029162407, -0.03498734533786774, -0.029085274785757065, -0.029886385425925255, 0.011158347129821777, 0.0027425826992839575, 0.051728952676057816, 0.0451238639652729, -0.002885638503357768, -0.008452550508081913, 0.001874030102044344, 0.014730652794241905, 0.028921781107783318, -0.010479854419827461, -0.007712747436016798, 0.04074227437376976, -0.01323469914495945, -0.028153367340564728, 0.011248268187046051, 0.033679407089948654, -0.05964197963476181, 0.002098832046613097, 0.0047944108955562115, -0.01952097751200199, -0.045647040009498596, 0.015368273481726646, -0.001491866889409721, -0.040317192673683167, 0.00047438303590752184, 0.004357068799436092, 0.027646541595458984, 0.009923980571329594, 0.026567492634058, 0.006175920367240906, -0.031341467052698135, 0.016921449452638626, -0.0009329277672804892, 0.01736287958920002, -0.013537159189581871, 0.0008849019068293273, 0.02565193735063076, -0.012360014952719212, -0.017559070140123367, -0.017003195360302925, -0.020828913897275925, 0.005808062851428986, 0.007892589084804058, -0.025913523510098457, -0.018392879515886307, -0.018490975722670555, -0.0003926368954125792, 0.013340968638658524, 0.003329111263155937, -0.0047167520970106125, -0.023003362119197845, 0.02499796822667122, -0.02341209165751934, 0.018523674458265305, 0.006650047842413187, -0.011861364357173443, 0.03407178819179535, -0.01622660830616951, -0.019161293283104897, 0.0009579624747857451, -0.0045655216090381145, -0.029870036989450455, 0.013766048476099968, 0.006331237964332104, 0.012294618412852287, 0.006776754278689623, -0.0020252603571861982, 0.011035728268325329, -0.02123764529824257, -0.012703348882496357, 0.009220964275300503, 0.005174530204385519, 0.014714304357767105, 0.0017166688339784741, 0.0031083966605365276, -0.0032146666198968887, 0.02189161442220211, 0.0013569857692345977, -0.02882368676364422, 0.0022030582185834646, 0.030393213033676147, -0.03413718566298485], "id": 60}, {"title": "United States Assistant Attorney General", "text": "Many of the divisions and offices of the United States Department of Justice are headed by an Assistant Attorney General.The President of the United States appoints individuals to the position of Assistant Attorney General with the advice and consent of the Senate.", "vector": [-0.002060866681858897, -0.008987119421362877, -0.024587998166680336, -0.04351158067584038, 0.05110633000731468, 0.016993248835206032, 0.02444559708237648, -0.005585304461419582, 0.004248312208801508, 0.05914410203695297, -0.02156592160463333, 0.005094810388982296, -0.002418848220258951, 0.0010729560162872076, 0.00013819870946463197, -0.013528145849704742, -0.047055795788764954, 0.010419045574963093, -0.021186184138059616, -0.018480554223060608, -0.007582881487905979, 0.002555316314101219, 0.013219608925282955, 0.0001451210118830204, -0.0009073153487406671, 0.01122598722577095, -0.017024895176291466, -0.014287620782852173, -0.004331380128860474, 0.03645479306578636, -0.01037948951125145, 0.02082226797938347, 0.04553684592247009, -0.013330365531146526, -0.011067763902246952, 0.001163934706710279, -0.03588518500328064, -0.04022052139043808, 0.01859131082892418, 0.005858240649104118, -0.0034097256138920784, -0.025284184142947197, -0.050156984478235245, 0.011716481298208237, 0.03335360437631607, -0.03439788147807121, -0.00556948222219944, -0.015355631709098816, 0.01436673291027546, 0.02567974291741848, -0.01974634639918804, 0.010276644490659237, 0.01251551229506731, 0.03253084048628807, -0.018433086574077606, -0.015529678203165531, 0.03857499361038208, 0.00931938923895359, -0.018654601648449898, 0.036264922469854355, -0.0012153575662523508, -0.015458477661013603, -0.07202353328466415, 0.014050284400582314, 0.009327300824224949, -0.025252537801861763, 0.027182871475815773, 0.04496724158525467, -0.06325792521238327, 0.016676802188158035, 0.07765630632638931, 0.014255975373089314, -0.005288634914904833, 0.007428613491356373, -0.010862072929739952, 0.013520234264433384, 0.018385620787739754, -0.040536969900131226, 0.019857103005051613, 0.021012136712670326, 0.011914261616766453, -0.05499863624572754, -0.0009720882517285645, 0.023781055584549904, -0.040188878774642944, -0.014445844106376171, -0.03395485505461693, -0.039650917053222656, 0.017752723768353462, 0.02115453965961933, 0.019271673634648323, 0.0548720583319664, -0.00888427346944809, 0.0143350875005126, 0.03898637369275093, -0.014208508655428886, 0.003089322242885828, -0.00460431631654501, 0.03259412944316864, -0.019556477665901184, 0.02169249951839447, 0.04560013487935066, -0.04778362438082695, -0.007124032359570265, -0.04401789605617523, -0.025537341833114624, 0.02234121784567833, -0.02151845395565033, 0.015023361891508102, 0.054555609822273254, -0.03357511758804321, 0.002009443938732147, 0.009912729263305664, 0.02086973562836647, 0.0034670818131417036, -0.009857350960373878, -0.04743553325533867, -0.013986995443701744, -0.021834902465343475, -0.018860291689634323, -0.002545427531003952, -0.03012583591043949, 0.03639150410890579, -0.008203910663723946, -0.008385867811739445, 0.029809387400746346, -0.008251377381384373, 0.056422650814056396, 0.025521518662571907, -0.02368612214922905, -0.009382679127156734, 0.05509357154369354, -0.025015203282237053, -0.008773516863584518, -0.04072684049606323, 0.012879427522420883, 0.006570248398929834, -0.001401270623318851, 0.02890751138329506, 0.05281514674425125, -0.00406239926815033, -0.028448661789298058, -0.015608790330588818, 0.0072783008217811584, 0.03598012030124664, 0.0018996760481968522, -0.024018391966819763, 0.05357462167739868, -0.05211896076798439, 0.021091248840093613, -0.004040643572807312, -0.01568790152668953, 0.013915793970227242, -0.046929217875003815, -0.006989541929215193, -0.01753121055662632, 0.01653440110385418, -0.020711511373519897, 0.03001507930457592, 0.013219608925282955, -0.015339809469878674, -0.021202005445957184, 0.013520234264433384, 0.048511456698179245, -0.009382679127156734, -0.02433484047651291, 0.003641128074377775, 0.0220405925065279, -0.012214886955916882, 0.018860291689634323, 0.05341639742255211, 0.030869487673044205, 0.03477761894464493, -0.011850971728563309, -0.004829785320907831, -0.020252661779522896, 0.010181710124015808, 0.021597566083073616, -0.040473680943250656, 0.005577393341809511, 0.020252661779522896, -0.001069000456482172, 0.008401690050959587, 0.0002155801048502326, 0.011447501368820667, -0.001519938581623137, 0.004224578849971294, -0.03395485505461693, 0.009794061072170734, 0.014627802185714245, -0.048163361847400665, 0.004149422515183687, 0.05088481307029724, -0.012072485871613026, 0.029524585232138634, 0.00241093710064888, 0.011289277113974094, -0.01729387603700161, -0.02180325798690319, -0.05936561897397041, 0.06389082223176956, -0.001774085802026093, 0.00027194738504476845, 0.05876436457037926, 0.04825829714536667, 0.044872306287288666, -0.016281241551041603, -0.03756235912442207, -0.022372862324118614, -9.294110896007624e-06, -0.03452445939183235, -0.03259412944316864, 0.014596156775951385, 0.014493311755359173, -0.03053721785545349, 0.005355880130082369, -0.01070384867489338, 0.00041978785884566605, 0.038068678230047226, -0.04113822057843208, -0.00879725068807602, 0.002723429352045059, -0.039650917053222656, 0.023844346404075623, 0.006993497721850872, -0.029271425679326057, -0.021328585222363472, -0.012032929807901382, -0.03382827714085579, -0.0021716232877224684, -0.08195999264717102, 0.027167048305273056, -0.01753121055662632, 0.006198422517627478, -0.02041088603436947, 0.05721377208828926, 0.028701819479465485, -0.00879725068807602, 0.0036529949866235256, -0.025648098438978195, -0.06790971010923386, 0.018338153138756752, -0.05113797262310982, -0.0031051444821059704, 0.02140769734978676, 0.01846473291516304, -0.027293628081679344, -0.0136942807585001, -0.016692623496055603, 0.07683353871107101, 0.01445375569164753, -0.002717495895922184, -0.007784617133438587, -0.02737274020910263, 0.03898637369275093, -0.0016989294672384858, 0.03560038283467293, -0.04297361895442009, -0.0050156982615590096, -0.04003065451979637, -0.01870206743478775, 0.04167618229985237, -0.041296444833278656, 0.002863853005692363, 0.01070384867489338, -0.06487181037664413, 0.06018838286399841, -0.022784246131777763, -0.025663921609520912, 0.03147073835134506, -0.021075427532196045, 0.00855991430580616, 0.0014873049221932888, 0.05316323786973953, 0.004248312208801508, 0.059776999056339264, 0.007986352778971195, 0.017626145854592323, 0.04594822973012924, 0.0025276271626353264, -0.003728151321411133, -0.008010086603462696, 0.07506143301725388, -0.013425299897789955, -0.020679866895079613, -0.003660906106233597, 0.01090953964740038, 0.014161041006445885, 0.007982397451996803, 0.036201633512973785, -0.02379687875509262, 0.005589260254055262, 0.03134416043758392, -0.07385893166065216, 0.005814729258418083, 0.025584809482097626, 0.011890527792274952, -0.0481950081884861, 0.006135132629424334, -0.040948353707790375, 0.0014655491104349494, -0.021439341828227043, 0.0020905337296426296, -0.039840783923864365, 0.024951912462711334, 0.020743155851960182, -0.03911295533180237, -0.025363296270370483, 0.028274616226553917, -0.020315952599048615, 0.020315952599048615, 0.0033503917511552572, -0.010537713766098022, 0.0011500901309773326, -0.021945659071207047, 0.003202056745067239, -0.002250735415145755, 0.007847907021641731, 0.069871686398983, -0.02373358979821205, -0.04313184320926666, 0.020363420248031616, -0.010047219693660736, 0.013037651777267456, 0.01740463264286518, 0.02175579033792019, -0.011423767544329166, 0.019904570654034615, -0.02221463993191719, 0.01939825341105461, -0.015498033724725246, -0.00920072104781866, -0.022784246131777763, 0.007705505006015301, -0.004450047854334116, 0.03518900275230408, 0.023005759343504906, 0.03721426799893379, 0.02884422242641449, 0.0034927930682897568, -0.016391998156905174, 0.02977774292230606, -0.014342999085783958, 0.03272070735692978, -0.02609112486243248, 0.021233651787042618, -0.019952036440372467, 0.054840411990880966, 0.021249473094940186, 0.04123315587639809, 0.0006991519476287067, -0.0207589790225029, 0.015292342752218246, 0.01573536917567253, 0.000526588992215693, -0.021360229700803757, -0.0323726162314415, -0.00044624091242440045, 0.05041014403104782, -0.003967464901506901, 0.013607257977128029, 0.03272070735692978, -0.061992134898900986, 0.023844346404075623, -0.050505075603723526, -0.022483620792627335, -0.019097628071904182, 0.028163859620690346, -0.04629632085561752, -0.010458601638674736, -0.0034255480859428644, 0.03439788147807121, 0.06708694249391556, -0.012143686413764954, -0.002903409069404006, -0.007262478116899729, -0.05287843570113182, -0.03480926528573036, -0.03930282220244408, -0.008805161342024803, 0.042119208723306656, 0.018132461234927177, -0.008014041930437088, 0.029160669073462486, 0.032214391976594925, -0.039081308990716934, 0.026470862329006195, 0.0035956387873739004, 0.004422358702868223, -0.00032040345831774175, -0.022024771198630333, -0.016724269837141037, -0.03632821515202522, -0.023701943457126617, 0.016898315399885178, 0.0015654279850423336, -0.005427080672234297, -0.014240153133869171, -0.024319017305970192, -0.034619394689798355, 0.017214763909578323, -0.0465494804084301, 0.0012034907704219222, 0.015600878745317459, 0.00812479853630066, -0.05946055054664612, -0.057593509554862976, 0.04477737098932266, -0.00358377187512815, 0.011392123065888882, -0.04113822057843208, -0.024872800335288048, -0.061232659965753555, 0.04139138013124466, 0.014857226982712746, -0.025948723778128624, -0.008947563357651234, 0.027056291699409485, 0.03417636826634407, 0.02613859251141548, 0.053036659955978394, 0.04034710302948952, -0.006321046035736799, 0.012824049219489098, 0.04556849226355553, 0.0295404065400362, 0.055947981774806976, -0.01198546215891838, -0.01234146673232317, -0.03961927071213722, 0.04515710845589638, 0.015039184130728245, -0.016439465805888176, 0.00987317319959402, -0.009928551502525806, -0.036613017320632935, -0.030094191431999207, 0.002052955562248826, 0.016898315399885178, 0.02719869278371334, 0.0019283541478216648, -0.011914261616766453, -0.03196123242378235, 0.018543845042586327, -0.049397509545087814, -0.03518900275230408, -0.03724591061472893, 0.04357486963272095, 0.008741872385144234, 0.027515141293406487, -0.04667605832219124, -0.02942964993417263, 0.008915917947888374, 0.02585379034280777, 0.046454545110464096, 0.01647111028432846, 0.0033088577911257744, -0.04385967180132866, -0.05420751869678497, -0.011937995441257954, 0.00526094576343894, -0.017309697344899178, 0.01811663992702961, -0.028765110298991203, 0.010426957160234451, -0.03363840654492378, 0.0012519467854872346, -0.047277309000492096, -0.009343123063445091, -0.01666097901761532, 0.021787434816360474, -0.0002556305262260139, -0.04272045940160751, 0.021660855039954185, 0.01670844666659832, -0.035378869622945786, -0.015490122139453888, -0.022942468523979187, -0.016961604356765747, 0.011297188699245453, 0.01601226069033146, 0.07423866540193558, 0.029983434826135635, -0.005616949405521154, 0.011083586141467094, -0.022436153143644333, -0.0034492816776037216, -0.010775049217045307, -0.04215085506439209, -0.03639150410890579, -0.02175579033792019, 0.07120076566934586, -0.022024771198630333, -0.007772750221192837, 0.030568862333893776, -0.00814853236079216, 0.007408835459500551, -0.015102474018931389, 0.00203713309019804, 0.08094736188650131, -0.01670844666659832, 0.017958415672183037, 0.019366608932614326, -0.06338450312614441, -0.02450888603925705, -0.017214763909578323, -0.03014165721833706, 0.01900269277393818, -0.01457242388278246, -0.0006492125685326755, -0.008963385596871376, -0.020189372822642326, -0.002537516178563237, -0.004038665909320116, 0.019065983593463898, -0.008251377381384373, -0.020062793046236038, -0.00040124598308466375, 0.008322578854858875, 0.01624959707260132, -0.04167618229985237, -0.02403421513736248, -0.07468169182538986, -0.005154144484549761, 0.048638034611940384, -0.018654601648449898, 0.02223046123981476, 0.0269771795719862, 0.00514623336493969, 0.02984103187918663, -0.04537862166762352, -0.024762043729424477, -0.02795816771686077, 0.004806051962077618, -0.012420577928423882, 0.027214515954256058, -0.04351158067584038, -0.02509431540966034, -0.018021704629063606, 0.044935595244169235, 0.00897129625082016, 0.00987317319959402, 0.007305989973247051, -0.018733713775873184, -0.01612301729619503, 0.007476080674678087, 0.04718237370252609, -0.04389131814241409, 0.004541026894003153, -0.005462680943310261, 0.029176492244005203, -0.012238620780408382, -0.028480306267738342, 0.0017256296705454588, 0.03522064536809921, -0.016455288976430893, -0.0423407219350338, -0.014793937094509602, 0.006459491793066263, -0.026597442105412483, 0.022119704633951187, -0.0010976784396916628, -0.009145342744886875, -0.006696827709674835, -0.03370169550180435, 0.014999628067016602, 0.0018057305132970214, 0.05515686050057411, 0.031565673649311066, 0.017246408388018608, 0.016803380101919174, -0.018797002732753754, 0.07094760984182358, 0.021265296265482903, 0.028053103014826775, -0.00545476982370019, 0.010869983583688736, -0.021534277126193047, 0.010189620777964592, -0.027103759348392487, 0.019160917028784752, -0.02058493345975876, 0.02819550409913063, 0.002020321786403656, 0.027182871475815773, -0.0016544288955628872, 0.0035620161797851324, 0.011518701910972595, -0.018385620787739754, -0.02931889332830906, 0.012325643561780453, 0.012903161346912384, 0.01208039652556181, -0.017736902460455894, -0.02110707201063633, 0.0009389601182192564, -0.004374891519546509, 0.012555068358778954, -0.009192810393869877, -0.017610322684049606, 0.0054903700947761536, 0.005696061532944441, 0.05610620602965355, 0.004715072922408581, -0.04670770466327667, 0.03601176664233208, 0.04037874564528465, -0.002573116682469845, -0.0022388685029000044, -0.030220769345760345, 0.039777494966983795, -0.010925361886620522, -0.013322454877197742, -0.05275185778737068, -0.011447501368820667, -0.01509456243366003, -0.011154786683619022, 0.05389107018709183, -0.03229350224137306, 0.00791910756379366, 0.025822144001722336, -0.06430220603942871, 0.0014447822468355298, 0.06075798720121384, -0.019920391961932182, -0.024002568796277046, 0.005229300819337368, 0.005075032357126474, 0.02613859251141548, 0.015664169564843178, -0.03781551867723465, 0.004208756610751152, -0.04385967180132866, 0.015260697342455387, -0.013646814040839672, 0.00144379329867661, -2.6406707547721453e-05, -0.08202328532934189, 0.0208064466714859, 0.004537071101367474, -0.016613511368632317, 0.013195875100791454, 0.06028331443667412, 0.07101089507341385, -0.024429773911833763, -0.01939825341105461, 0.035790253430604935, -0.017246408388018608, -0.006186555605381727, 0.00630522333085537, 0.035442158579826355, -0.011914261616766453, -0.03563202917575836, -0.02450888603925705, -0.04711908474564552, 0.00011131300561828539, -0.022784246131777763, -0.02169249951839447, 0.06917550414800644, 0.002020321786403656, -0.02232539653778076, -0.028132213279604912, -0.0007307967753149569, -0.001155034638941288, 0.01265791431069374, -0.031280871480703354, -0.020442530512809753, 0.025252537801861763, 0.009121608920395374, 0.019857103005051613, -0.015893593430519104, -0.06243516132235527, 0.020442530512809753, -0.003943731542676687, 0.04509381949901581, -0.026518329977989197, 0.005700016859918833, -0.03534722700715065, -0.04629632085561752, -0.013259164988994598, 0.029160669073462486, 0.012673736549913883, -0.00783604010939598, -0.031502384692430496, 0.0066454047337174416, 0.017388809472322464, -0.004248312208801508, 0.024018391966819763, 0.01716729626059532, -0.08601052314043045, -0.0273885615170002, 0.0807574912905693, 0.018480554223060608, -0.020790623500943184, 0.020379241555929184, 0.01007886417210102, -0.013298721052706242, -0.018480554223060608, -0.03229350224137306, -0.023591186851263046, 0.002988454420119524, 0.028860043734312057, -0.011518701910972595, -0.011969639919698238, -0.029825210571289062, 0.004529159981757402, 0.012238620780408382, 0.030458105728030205, 0.013583524152636528, -0.005316324066370726, 0.0008410590817220509, 0.007962618954479694, -0.020062793046236038, 0.023543721064925194, -0.038258545100688934, -0.01007886417210102, 0.014279709197580814, -0.04813171923160553, -0.044239409267902374, -0.0278474111109972, 0.017436277121305466, 0.049808893352746964, -0.017341341823339462, -0.04677099362015724, -0.009857350960373878, -0.007547281216830015, -0.008631114847958088, -0.003421592526137829, -0.0024069815408438444, -0.011249721050262451, -0.0017503522103652358, 0.008053597994148731, -0.010798783041536808, -0.00268189562484622, 0.009651659056544304, 0.02327474020421505, -0.05398600548505783, -0.00804173108190298, 0.00030878387042321265, -0.03192958980798721, -0.007151721511036158, -0.03294222056865692, -0.01939825341105461, -0.010719670914113522, 0.01359934639185667, 0.036201633512973785, -0.01770525798201561, 0.039018020033836365, -0.006162821780890226, -0.004113822244107723, 0.011748126707971096, -0.02561645396053791, 0.01705653965473175, 0.031059356406331062, 0.06809958070516586, -0.0008934707148000598, -0.0015525722410529852, -0.01500753965228796, -0.009121608920395374, 0.06300476938486099, -0.011597814038395882, 0.041359733790159225, -0.016502754762768745, 0.017847659066319466, -0.00337808090262115, 0.0025414717383682728, 0.03395485505461693, -0.0006502014584839344, -0.01136838924139738, 0.05639100819826126, 0.0070409649051725864, -0.00858364813029766, 0.023069048300385475, -0.0315973199903965, 0.06256174296140671, -0.005446858704090118, 0.007357412483543158, -0.0208064466714859, -0.014501222409307957, -0.004659694619476795, -0.0195248331874609, 0.017452098429203033, -0.04436598718166351, -0.036613017320632935, 0.04474572464823723, -0.04518875479698181, -0.005968997720628977, 0.004034710116684437, -0.03800538554787636, 0.022309573367238045, -0.0014823604142293334, 0.01037948951125145, -0.02561645396053791, -0.008362134918570518, 0.0024940045550465584, 0.006127221509814262, 0.03490419685840607, 0.001596083864569664, 0.0006091620889492333, -0.041359733790159225, 0.007009319961071014, -0.034619394689798355, -0.008741872385144234, 0.020062793046236038, 0.020679866895079613, -0.02017355151474476, -0.01017379853874445, 0.014833493158221245, -0.007713416591286659, 0.013108852319419384, -0.029888499528169632, 0.01005513034760952, 0.01783183589577675, 0.0018650644924491644, -0.008726049214601517, 0.03094859980046749, 0.006040198262780905, -0.012555068358778954, 0.0020331775303930044, -0.022420329973101616, -0.026597442105412483, 0.01700907200574875, -0.03370169550180435, -0.00632895715534687, 0.0037400180008262396, -0.01887611486017704, -0.002586961258202791, -0.013156319037079811, -0.013979083858430386, 0.015110384672880173, -0.001979776890948415, -0.045695070177316666, -0.007804395165294409, 0.012570890597999096, 0.00130831403657794, -0.01794259250164032, 0.011637370102107525, 0.01518949680030346, 0.006716605741530657, 0.016130929812788963, -0.025173427537083626, 0.012966451235115528, -0.047055795788764954, -0.021486809477210045, 0.03515735641121864, -0.02613859251141548, 0.033923208713531494, -0.017278052866458893, -0.027182871475815773, -0.021739967167377472, -0.009398501366376877, -0.02555316500365734, -0.002096466952934861, 0.03294222056865692, 0.02561645396053791, 0.02093302458524704, -0.04604316130280495, -0.000704590929672122, -0.00042918240069411695, -0.020664045587182045, -0.02808474749326706, 0.010688026435673237, 0.0532265305519104, -0.000568617251701653, 0.018955226987600327, 0.009881083853542805, 0.030442282557487488, -0.0348409079015255, -0.003352369414642453, 0.020727334544062614, 0.023179804906249046, 0.05211896076798439, 0.006087665446102619, 0.03153402730822563, -0.03322702273726463, 0.02485697902739048, 0.05389107018709183, -0.001053177984431386, 0.04686592519283295, 0.036138344556093216, -0.016581866890192032, -0.003827041247859597, -0.023765234276652336, -0.068226158618927, 0.018844470381736755, 0.01881282404065132, 0.040125586092472076, -0.023955103009939194, -0.019255852326750755, -0.012388933449983597, 0.018338153138756752, 0.007669904734939337, 0.024587998166680336, -0.009398501366376877, 0.009564636275172234, 0.0439862497150898, 0.005268856883049011, -0.002292269142344594, 0.015015450306236744, 0.02503102459013462, 0.011289277113974094, -0.004169200547039509, 0.051327843219041824, 0.007982397451996803, 0.02550569735467434, 0.02427154965698719, 0.022720955312252045, -0.024904446676373482, 0.003362258430570364, -0.004240401089191437, 0.022182993590831757, 0.011708570644259453, -0.03480926528573036, -0.010751315392553806, -0.033733341842889786, -0.036676306277513504, 0.024350661784410477, 0.00491285277530551, -0.04392296075820923, 0.05680238828063011, -0.0012578802416101098, 0.004639916587620974, -0.010308288969099522, -0.010822516866028309, -0.002444559708237648, -0.020648222416639328, -0.031565673649311066, 0.057245418429374695, 0.04724566265940666, 0.05715048313140869, -0.033733341842889786, -0.012650002725422382, -0.02392345853149891, -0.02297411486506462, 0.04028381034731865, -0.016162574291229248, 0.014746470376849174, 0.02632846124470234, -0.06373259425163269, 0.016328709200024605, 0.004034710116684437, -0.0070409649051725864, -0.022436153143644333, 0.028891688212752342, 0.032973866909742355, 0.022705134004354477, 0.015039184130728245, -0.021945659071207047, 0.01781601458787918, -0.001562461256980896, 0.03632821515202522, 0.014374643564224243, -0.029524585232138634, -0.007966574281454086, -0.0038428637199103832, 0.022942468523979187, -0.0060560209676623344, 0.04392296075820923, 0.06385917961597443, 0.03616999089717865, -0.04420776665210724, 0.0037657294888049364, -0.01175603736191988, 0.0019313207594677806, 0.010063041932880878, 0.06784641742706299, -0.0036193723790347576, 0.01816410757601261, 0.0006516848225146532, 0.01963558979332447, -0.04126479849219322, -0.04389131814241409, -0.013979083858430386, 0.02011026069521904, -0.007923062890768051, 0.022135527804493904, -0.007741105742752552, 0.00878933910280466, -0.03446117043495178, -0.01445375569164753, 0.032562483102083206, -0.002343691885471344, -0.01640782132744789, -0.04427105560898781, 0.009018763899803162, -0.007044920232146978, 0.03223021328449249, -0.004517293069511652, -0.017452098429203033, 0.024587998166680336, -0.016004350036382675, 0.024429773911833763, 0.004319513216614723, 0.005585304461419582, -0.016629334539175034, -0.028464484959840775, 0.01870206743478775, 0.04344829171895981, 0.010458601638674736, 0.005652549676597118, -0.0291290245950222, -0.010775049217045307, -0.01922420784831047, 0.024065859615802765, 0.003777596168220043, 0.03118593618273735, -0.0008806150290183723, 0.038195256143808365, -0.007001408841460943, -0.0033602805342525244, 0.036264922469854355, -0.012673736549913883, -0.014161041006445885, 0.051264550536870956, -0.04661276936531067, 0.038131967186927795, 0.007507725153118372, 0.006566293071955442, 0.0008895151549950242, -0.04990382492542267, 0.0010002718772739172, -0.0018284752732142806, 0.03404979035258293, 0.013543968088924885, -0.008599470369517803, 0.023591186851263046, 0.018069172278046608, 0.007416746579110622, -0.02931889332830906, 0.003419614629819989, -0.015877770259976387, 0.0291290245950222, -0.032325148582458496, 0.01178768277168274, -0.011360477656126022, 0.005688149947673082, -0.04028381034731865, 0.03477761894464493, -0.004402580671012402, -0.00030927834450267255, 0.00847289152443409, 0.02526836097240448, -0.006036242935806513, -0.006677049677819014, -0.03541051596403122, 0.012539246119558811, 0.02373358979821205, 0.01155034638941288, 0.010972829535603523, 4.7343564801849425e-05, -0.0033484138548374176, -0.00032213403028436005, -0.021898191422224045, 0.021122893318533897, -0.012048752047121525, -0.022673489525914192, 0.007096343208104372, 0.02338549681007862, -0.018496377393603325, 0.021771611645817757, 0.001935276435688138, -0.007851862348616123, 0.019271673634648323, 0.0003938292502425611, 0.011202254332602024, -0.0015476277330890298, 0.03980914130806923, 0.02802145667374134, 0.002070755697786808, 0.0006220178329385817, -8.065711881499738e-05, -0.03243590518832207, -0.013504412025213242, -0.02351207472383976, 0.020917203277349472, -0.02082226797938347, -0.052213896065950394, -0.007456302642822266, -0.013377833180129528, 0.010854161344468594, 0.006878785323351622, -0.01647111028432846, -0.01134465541690588, -0.020648222416639328, 0.0025493830908089876, -0.01158199179917574, 0.004537071101367474, -0.02439812943339348, 0.0037143067456781864, 0.004750673193484545, -0.017388809472322464, 0.018907759338617325, 0.01753121055662632, -0.0044381809420883656, -0.044587504118680954, -0.015719547867774963, -0.002751118503510952, 0.0415179580450058, 0.00427995715290308, 0.021265296265482903, 0.000577022903598845, -0.03487255424261093, -0.0365813709795475, -0.009176988154649734, -0.008781427517533302, 0.008639026433229446, -0.021059604361653328, -0.026660731062293053, -0.016423644497990608, 0.029635341838002205, -0.02099631540477276, 0.019382430240511894, 0.029461294412612915, -0.021613389253616333, -0.0026027834974229336, 0.04278374835848808, -0.013559790328145027, -0.010672204196453094, 0.02931889332830906, -0.03993571922183037, -0.029651163145899773, 0.006427846848964691, -0.0005646616336889565, -0.028100568801164627, -0.022531086578965187, -0.01265791431069374, -0.006210288964211941, -0.010806694626808167, -0.0005799895734526217, 0.013868327252566814, -0.010434867814183235, -0.006162821780890226, 0.01019753236323595, -0.019271673634648323, 0.009382679127156734, -0.01477811485528946, 0.00449751503765583, -0.0005053276545368135, 0.01917674019932747, -0.01046651229262352, -0.021613389253616333, 0.00402482133358717, -0.06752996891736984, -0.005703972652554512, -0.010031396523118019, 0.04272045940160751, 0.02298993617296219, -0.005652549676597118, -0.026122769340872765, -0.003609483363106847, -0.010205443017184734, 0.014469577930867672, 0.007519592065364122, -0.0277999434620142, 0.0137180145829916, -0.02761007472872734, 0.022958291694521904, -0.010561446659266949, -0.01040322333574295, -0.010949095711112022, -0.010411133989691734, 0.011890527792274952, 0.02632846124470234, -0.005968997720628977, -0.00219140131957829, 0.010901628993451595, -0.006724516861140728, -0.01677173562347889, 0.011542435735464096, 0.016328709200024605, 0.009097876027226448, 0.011740215122699738, -0.004248312208801508, -0.02004697173833847, -0.030632151290774345, 0.005585304461419582, 0.008002175018191338, 0.04262552410364151, -0.02238868549466133, 0.007017231080681086, -0.01070384867489338, -0.004220623057335615, 0.016281241551041603, -0.014279709197580814, -0.006530692335218191, 0.00955672562122345, 0.011566168628633022, -0.037499070167541504, 0.01541892159730196, -0.008298845030367374, -0.010482335463166237, 0.006617715582251549, -0.0012786471052095294, 0.021914014592766762, 0.003720239968970418, -0.0075631034560501575, -0.022610198706388474, 0.01653440110385418, 0.007163588423281908, 0.025489874184131622, 0.04360651597380638, -0.010798783041536808, 0.016550222411751747, 0.001774085802026093, -0.004588494077324867, -0.038606636226177216, -0.012151597999036312, -0.004192933905869722, -0.027578430250287056, 0.03351182863116264, 0.004576627165079117, -0.008931741118431091, 0.007127987686544657, -0.009540902450680733, -0.01675591431558132, 0.0006783850840292871, -0.003253479488193989, 0.044935595244169235, 0.002853963989764452, -0.015482211485505104, -0.018148284405469894, -0.010893717408180237, -0.002199312672019005, -0.022467797622084618, -0.018781179562211037, -0.012650002725422382, 0.02058493345975876, -0.016866670921444893, 0.03126504644751549, -0.007266433909535408, 0.00035278990981169045, 0.00023869563301559538, 0.015608790330588818, -0.016629334539175034, 0.022879179567098618, -0.01757867820560932, -0.018385620787739754, 0.02433484047651291, 0.02156592160463333, 0.013338277116417885, 0.009904817678034306, 0.016676802188158035, 0.018084995448589325, 0.032625772058963776, 0.04082177206873894, -0.015893593430519104, 0.006396202370524406, 0.008314667269587517, 0.010181710124015808, 0.006412024609744549, 0.00750376982614398, -0.00012954583507962525, -0.03705604374408722, 0.010506068356335163, 0.04132809117436409, 0.0033820364624261856, -0.0038507748395204544, -0.015474299900233746, 0.017895126715302467, 0.023227272555232048, -0.023322205990552902, 0.017325520515441895, 0.017515389248728752, 0.037720583379268646, 0.01007886417210102, 0.003830996807664633, -0.033733341842889786, 0.011202254332602024, -0.011170608922839165, -0.02672402188181877, -0.03512571007013321, 0.049682311713695526, 0.02098049223423004, -0.002157778711989522, -0.015933148562908173, 0.03077455423772335, -0.01539518777281046, -0.006764072924852371, -0.004339291248470545, 0.013536056503653526, 0.036075055599212646, -0.0036351946182549, -0.00545476982370019, 0.015047095715999603, 0.01590941660106182, 0.033100444823503494, -0.001963954418897629, -0.01477811485528946, 0.010363667272031307, -0.0011184454197064042, 0.030853666365146637, -0.030758731067180634, -0.01857548952102661, 0.0145407784730196, 0.005735617130994797, 0.004517293069511652, 0.01008677575737238, -0.009050408378243446, 0.0017958416137844324, 0.009952285327017307, 0.008836806751787663, -0.006704738829284906, -0.01060891430824995, -0.004588494077324867, -0.00416524475440383, -0.017214763909578323, -0.014184774830937386, -0.03354347124695778, -0.011700659058988094, 0.020774802193045616, 0.009675392881035805, -0.005288634914904833, 0.004509381949901581, -0.02262602187693119, -0.015316075645387173, 0.028068924322724342, 0.031692251563072205, -0.0216292105615139, -0.016835026443004608, -0.009176988154649734, 0.011083586141467094, -0.03683453053236008, 0.00855991430580616, -0.004544982220977545, -0.029208136722445488, 0.00707656517624855, 0.01716729626059532, 0.04446092247962952, 0.005949219688773155, 0.004050532355904579, 0.00955672562122345, 0.024461418390274048, -0.04566342383623123, 0.018211573362350464, -0.017388809472322464, 0.003560038283467293, -0.007373235188424587, -8.943360444391146e-05, 0.03167643025517464, -0.039714206010103226, 0.005122499540448189, 0.03341689333319664, -0.00028307249885983765, 0.0032752351835370064, 0.021249473094940186, 0.0007476080791093409, -0.015450566075742245, -0.039081308990716934, 0.005114588420838118, -0.015086651779711246, -0.016518577933311462, -0.01924002915620804, 0.006597937550395727, 0.010165886953473091, 0.018749535083770752, -0.0138999717310071, -0.0139474393799901, -0.0019471432315185666, -0.014216420240700245, 0.039081308990716934, -0.012523423880338669, 0.03408143296837807, 0.008662760257720947, 0.015545500442385674, 0.010339933447539806, -0.010553536005318165, 0.0026522285770624876, -0.0283062607049942, -0.030331525951623917, -0.027309449389576912, 0.0315973199903965, 0.009398501366376877, -0.00016020172915887088, 0.032340969890356064, -0.030220769345760345, -0.024983558803796768, 0.005059210117906332, -0.010411133989691734, -0.0506632998585701, -0.023369673639535904, 0.012911072000861168, -0.02392345853149891, -0.023353852331638336, -0.03692946583032608, 0.03079037554562092, -0.043828029185533524, 0.03582189604640007, 0.020838091149926186, -0.00920072104781866, -0.010181710124015808, -0.03417636826634407, -0.015118296258151531, 0.00876560527831316, -0.018148284405469894, 0.027467673644423485, -0.028179680928587914, -0.02713540382683277, -0.026660731062293053, -0.012064574286341667, -0.028005635365843773, -0.033796630799770355, 0.014944249764084816, -0.00017688939988147467, -0.0009869217174127698, -0.024524709209799767, 0.027103759348392487, 0.019303318113088608, -0.01787930354475975, 0.033859919756650925, 0.030458105728030205, -0.02832208201289177, -0.01605972833931446, 0.0058186850510537624, -0.014216420240700245, -0.005632771644741297, 0.003593660891056061, -0.001162945874966681, 0.004537071101367474, 0.0010897673200815916, 0.045631781220436096, -0.018195752054452896, -0.03107517957687378, 0.012903161346912384, -0.004117777571082115, -0.00952508021146059, -0.006139088422060013, -0.02977774292230606, -0.015292342752218246, 0.015387277118861675, -0.025632275268435478, -0.01917674019932747, 0.016202129423618317, -0.004204800818115473, 0.0051383222453296185, 0.04221414402127266, 0.016850847750902176, 0.001247991225682199, -0.00461618322879076, -0.024667110294103622, -0.010656381025910378, 0.009240277111530304, -0.03623327985405922, -0.008298845030367374, 0.05632771924138069, 0.005264901090413332, -0.03178718686103821, -0.01980963535606861, 0.0011926128063350916, 0.0038092411123216152, -0.005945263896137476, 0.00943805743008852, -0.016724269837141037, -0.018686246126890182, 0.016075551509857178, 0.014746470376849174, 0.015316075645387173, -0.004339291248470545, 0.020205195993185043, -0.022119704633951187, 0.033923208713531494, -0.023432962596416473, 0.02286335825920105, -0.01306929625570774, -0.009010852314531803, -0.012293999083340168, 0.009588370099663734, 0.02996761165559292, 0.001503127277828753, 0.01445375569164753, -0.016835026443004608, 0.0076303486712276936, 0.001138223335146904, -0.027293628081679344, -0.008496624417603016, 0.006281489972025156, -0.04917599633336067, -0.05528343841433525, -0.0025157604832202196, 0.0034275257494300604, -0.02596454694867134, -0.01935078576207161, -0.026344284415245056, 0.023179804906249046, -0.00964374840259552, -0.02732527256011963, 0.019129272550344467, 0.02485697902739048, 0.005201611667871475, -0.01711982861161232, 0.01583821512758732, 0.029176492244005203, 0.012808226980268955, -0.007377190515398979, -0.0020351551938802004, 0.013449033722281456, 0.021328585222363472, -0.011075674556195736, -0.007147765718400478, -0.012262354604899883, -0.010632648132741451, 0.005431036464869976, 0.02086973562836647, -0.004001087509095669, -0.0199362151324749, -0.003522460116073489, 0.013551879674196243, 1.3404223864199594e-05, 0.005379613488912582, 0.0017622190061956644, -0.025584809482097626, -0.0003547677188180387, 0.038606636226177216, 0.0008054586942307651, 0.0025592721067368984, -0.01974634639918804, -0.01541892159730196, 0.0033583028707653284, -0.03439788147807121, 0.01688249222934246, 0.007507725153118372, -0.015956882387399673, 0.011210164986550808, -0.032388437539339066, -0.025758855044841766, -0.0012529357336461544, -0.01922420784831047, 0.01735716499388218, 0.02098049223423004, 0.001587183796800673, 0.0014457710785791278, -0.0012915028491988778, -0.022531086578965187, -0.011067763902246952, -0.010070952586829662, -0.002846052870154381, 0.008097109384834766], "id": 61}, {"title": "Shining Tears", "text": "Shining Tears (\u30b7\u30e3\u30a4\u30cb\u30f3\u30b0\u30fb\u30c6\u30a3\u30a2\u30fc\u30ba, Shainingu Ti\u0101zu) is an action role-playing game co-developed by Nextech and Amusement Vision and published by Sega in 2004 for the PlayStation 2 as a part of the Shining Force video game series. It tells the story of a mysterious boy named Xion.An anime adaptation for the game was announced by Sega, entitled Shining Tears X Wind. It is produced by Studio Deen and began airing in early April 2007.", "vector": [-0.017639024183154106, 0.018688242882490158, -0.022535374388098717, 0.020056787878274918, 0.007146846037358046, -0.040873877704143524, 0.023827889934182167, -0.0217902772128582, 0.004938166588544846, 0.05346449092030525, -0.027340488508343697, -0.03054896555840969, 0.020452145487070084, -0.021927133202552795, 0.0217902772128582, 0.009503784589469433, -0.037194013595581055, 0.017182843759655952, -0.028252851217985153, -0.0009584567160345614, -0.022261666133999825, 0.031111590564250946, 0.036342471837997437, -0.01329009234905243, 0.0220335740596056, -0.005135845392942429, -0.020452145487070084, -0.031202826648950577, -0.05997268483042717, 0.05136605724692345, -0.020391320809721947, -0.027735846117138863, 0.02375185862183571, 0.02084750309586525, -0.019250866025686264, 0.010887536220252514, -0.008036400191485882, 0.026808276772499084, 0.005284104496240616, -0.005181463435292244, 0.009017190895974636, 0.013442153111100197, -0.04707795009016991, 0.014430547133088112, 2.0952875274815597e-05, 0.024557780474424362, -0.045253220945596695, -0.02658018469810486, -0.0022714044898748398, -0.012499378062784672, -0.026230446994304657, 0.038988325744867325, 0.01420245599001646, -0.009602623991668224, -0.014103616587817669, 0.0015082505997270346, 0.07718593627214432, 0.042181599885225296, 0.016954751685261726, -0.05501550808548927, 0.00862943660467863, -0.031963128596544266, -0.01466624066233635, 0.022793877869844437, 0.04957174137234688, -0.03266260772943497, 0.0293324813246727, 0.07225918024778366, -0.0013048696564510465, 0.0025032968260347843, -0.007983178831636906, 0.003714079037308693, -0.033088378608226776, 0.026914719492197037, -0.004436366725713015, -0.025971943512558937, 0.01896195113658905, 0.0012364423600956798, -0.043458908796310425, -0.01999596320092678, 0.009245282039046288, 0.043793439865112305, -0.04017439857125282, 0.012423347681760788, 0.02635209448635578, -0.011784693226218224, -0.03397032991051674, -0.06544686108827591, -0.0038186206948012114, 0.0025108999107033014, -0.013404138386249542, -0.001398006803356111, 0.018490564078092575, -0.046804238110780716, 0.006990984082221985, -0.018505770713090897, 0.03251054883003235, -0.01252218708395958, -0.0071164341643452644, 0.02033049613237381, 0.03184147924184799, -0.00585433142259717, -0.03106597252190113, -0.07025197893381119, -0.042941901832818985, 0.02727966383099556, -0.03363579511642456, 0.040448106825351715, 0.0032674011308699846, -0.011404542252421379, -0.020862707868218422, 0.0348522812128067, -0.0029708831571042538, -0.01509961299598217, -0.016331303864717484, 0.0008634188561700284, -0.0016337005654349923, 0.024922724813222885, -0.045070748776197433, -0.014476165175437927, -0.01329009234905243, -0.03199354186654091, 0.005865735933184624, -0.00510543305426836, -0.0030336081981658936, 0.005527401342988014, 0.014004777185618877, 0.016924340277910233, -0.015038789249956608, 0.025971943512558937, -0.010454162955284119, 0.03588629141449928, 0.07426637411117554, 0.03515639901161194, 0.002609739312902093, 0.0005165307084098458, -0.02136450819671154, 0.004561816807836294, -0.013624626211822033, 0.0030526157934218645, 0.022580992430448532, -0.017106812447309494, -0.02881547622382641, 0.022854702547192574, 0.009496182203292847, -0.02093873918056488, -0.03904915228486061, -0.004660656210035086, -0.006949167232960463, -0.025105198845267296, 0.0010045500239357352, 0.05519798398017883, -0.026656216010451317, -0.01544174924492836, -0.0025204038247466087, 0.05516757071018219, -0.009214869700372219, 0.001707830117084086, 0.02855697274208069, -0.01059101801365614, 0.002056618919596076, -0.04056975618004799, -0.02513561025261879, 0.010408544912934303, 0.0046720607206225395, -0.04917638376355171, -0.0009636837639845908, 0.028192026540637016, -0.04196871444582939, 0.0073141129687428474, 0.021394919604063034, -0.01316844392567873, -0.007998385466635227, 0.023615004494786263, -0.030670614913105965, 0.0346393957734108, 0.010986375622451305, -0.057448480278253555, -0.02325005829334259, 0.020543381571769714, -0.04178624227643013, -0.024071186780929565, -0.025850294157862663, 0.02504437416791916, 0.0037558956537395716, -0.0009940959280356765, 0.008933558128774166, 0.0037178806960582733, -0.06757570803165436, -0.05851290374994278, -0.04263778030872345, 0.00038632884388789535, 0.05912114307284355, -0.01879468560218811, 0.005557813216000795, 0.033848680555820465, -0.000638179131783545, -0.02855697274208069, -0.0038376282900571823, 0.0036228427197784185, -0.011054802685976028, -0.015647031366825104, 0.05741806700825691, 0.015890328213572502, 0.031871892511844635, 0.024344895035028458, -0.02239852026104927, -0.08126116544008255, 0.02221604809165001, 0.02186630852520466, 0.05097069963812828, 0.025698233395814896, 0.023873507976531982, 0.005078822840005159, 0.0027656012680381536, -0.013115223497152328, 0.005037005990743637, 0.025683028623461723, -0.002929066540673375, 0.019068393856287003, -0.005208074115216732, 0.01877947896718979, -0.014293692074716091, 0.03045772947371006, 0.0023227250203490257, -0.012248477898538113, -0.03302755206823349, -0.005056013353168964, -0.021775072440505028, 0.01364743523299694, -0.04394550248980522, 0.014027586206793785, 0.037711016833782196, -0.021166829392313957, -0.014871522784233093, -0.00875868834555149, 0.0009370732004754245, -0.04367179051041603, -0.003742590546607971, 0.0062192766927182674, 0.006356131285429001, -0.004592228680849075, 0.00688454182818532, 0.024998756125569344, 0.05878661200404167, -0.010309705510735512, -0.0053867450915277, -0.0015738267684355378, 0.028511354699730873, -0.05045369267463684, 0.015069201588630676, 0.014392531476914883, -0.006648847833275795, 0.04093470051884651, 0.010720268823206425, 0.05535004287958145, 0.0067742979153990746, 0.049024324864149094, 0.021212447434663773, 0.014993171207606792, -0.04573981463909149, -0.009024794213473797, 0.03929244726896286, 0.0202544666826725, 0.013624626211822033, 0.02651936188340187, -0.005930361803621054, -0.0386233814060688, -0.014096013270318508, -0.032054364681243896, -0.01333571132272482, -0.06824477761983871, 0.02805517241358757, -0.03871461749076843, -0.0025013962294906378, -0.007268494460731745, -0.001957779750227928, 0.027492549270391464, 0.028085585683584213, -0.005189066287130117, -0.007021396420896053, 0.0005127291660755873, -0.0011252481490373611, 0.00956460926681757, 0.009891538880765438, -0.004957173950970173, 0.010020790621638298, -0.023462943732738495, -0.04038728401064873, -0.028420118615031242, 0.028252851217985153, -0.04443209618330002, 0.047230008989572525, 0.02977345697581768, 0.04738206788897514, 0.008310109376907349, -0.026823481544852257, -0.021410126239061356, 0.06176699697971344, -0.031354885548353195, -0.007519394624978304, 0.020284878090023994, -0.0252116397023201, -0.007496585603803396, -0.004774701315909624, 0.02110600471496582, 0.016833104193210602, 0.04650011658668518, -0.025105198845267296, -0.001403709058649838, 0.028526561334729195, -0.025667821988463402, -0.036068763583898544, 0.02102997526526451, -0.011389335617423058, -0.030077578499913216, 0.005033204331994057, -0.011450160294771194, -0.03631206229329109, 0.027933524921536446, 0.05979021266102791, -0.01012723334133625, -0.008226475678384304, -0.01557100098580122, 0.036768242716789246, 0.007492783945053816, 0.0029499747324734926, -0.01766943745315075, 0.017365315929055214, 0.004759495612233877, -0.014863919466733932, 0.06532521545886993, -0.05197430029511452, 0.011632632464170456, 0.016270479187369347, 0.018977157771587372, 0.013404138386249542, -0.029636602848768234, 0.01826247200369835, 0.025409318506717682, -0.07980138063430786, 0.03378785401582718, -0.04494909942150116, -0.018049588426947594, -0.083390012383461, 0.014635828323662281, -0.026215240359306335, 0.0023208241909742355, -0.014118822291493416, -0.005972178187221289, 0.0007465222734026611, -0.052460893988609314, 0.04129964858293533, -0.029651809483766556, 0.027507754042744637, -0.0015728763537481427, -0.029727838933467865, -0.004653052892535925, -0.003073523985221982, 0.03816720098257065, 0.005561614874750376, 0.026625802740454674, 0.0007978427456691861, 0.06246647611260414, -0.0029746845830231905, -0.047047536820173264, 0.003265500534325838, 0.005398149602115154, -0.03831925988197327, 0.0015443650772795081, -0.03369661793112755, 0.005649049766361713, -0.027310075238347054, 0.07457049936056137, 0.03987027704715729, -0.005052212160080671, 0.032054364681243896, 0.03643370792269707, -0.03001675382256508, 0.02214001677930355, -0.024755459278821945, -0.00999037828296423, -0.024329688400030136, 0.04348931834101677, -0.001715433201752603, 0.013753877021372318, 0.01766943745315075, 0.010978772304952145, -0.00943535752594471, -0.03062499687075615, 0.017015576362609863, 0.04348931834101677, -0.013062002137303352, 0.05136605724692345, 0.007268494460731745, 0.009731875732541084, 0.06854890286922455, 0.030609790235757828, 0.06115875765681267, 0.013556198216974735, 0.012856720015406609, 0.02060420624911785, 0.03351414576172829, 0.019509369507431984, 0.009116030298173428, 0.03165900707244873, -0.018460150808095932, 0.007705668918788433, -0.017380522564053535, 0.014255677349865437, 0.034548159688711166, 0.007371135521680117, -0.014696653001010418, -0.054255206137895584, 0.0060063921846449375, -0.00918445736169815, 0.0701911523938179, 0.0360383503139019, 0.06003350764513016, -0.041573356837034225, -0.02951495349407196, -0.01441534049808979, 0.01488672848790884, -0.006116636097431183, -0.015890328213572502, -0.0015861816937103868, 0.014567401260137558, 0.016833104193210602, 0.040508933365345, 0.008887939155101776, 0.020102405920624733, -0.05799589678645134, -0.049450092017650604, -0.032997142523527145, 0.03220642730593681, -0.03549093380570412, 0.013875525444746017, 0.005052212160080671, 0.029286863282322884, -0.010651841759681702, 0.009511387906968594, 0.046865064650774, -0.028039967641234398, 0.00613184180110693, 0.05604952201247215, -0.02334129624068737, 0.022444138303399086, -0.018825097009539604, 0.0525217168033123, 0.010492178611457348, -0.0043413289822638035, -0.036768242716789246, 0.0016479563200846314, 0.029834281653165817, 0.02539411373436451, 0.030214432626962662, -0.03549093380570412, -0.02077147178351879, 0.03716360032558441, 0.0056756604462862015, -0.0012155340518802404, 0.027127603068947792, 0.03664659336209297, -0.029925517737865448, -0.010940756648778915, -0.04650011658668518, -0.017988763749599457, -0.03853214532136917, -0.01888592168688774, -0.008165651932358742, -0.020619411021471024, 0.017973557114601135, -0.022200841456651688, -0.015647031366825104, -0.02033049613237381, -0.006067216396331787, -0.0025755257811397314, -0.02299155667424202, -0.010074011981487274, -0.010583414696156979, -0.024588191881775856, 0.006454970687627792, -0.02290032058954239, 0.04236407205462456, 0.0038015139289200306, 0.0059797815047204494, 0.010484575293958187, -0.008348125033080578, -0.011077611707150936, 0.0523088313639164, 0.07554368674755096, -0.014270883053541183, 0.010279294103384018, -0.04893308877944946, -0.030336081981658936, -0.03193271532654762, -0.05233924463391304, -0.027416517958045006, 0.008903145790100098, 0.03354455903172493, -0.009283296763896942, 0.02223125286400318, 0.0028302271384745836, -0.005595828406512737, 0.046713002026081085, 0.038471322506666183, -0.040022339671850204, 0.011298099532723427, 0.03088349848985672, 0.008340521715581417, 0.021911926567554474, -0.02762940339744091, -0.034091975539922714, -0.004508595447987318, -0.04385426640510559, -0.014613019302487373, 0.01363983191549778, 0.05656652897596359, 0.004428763873875141, 0.01964622363448143, -0.007758889812976122, 0.006356131285429001, -0.0068807401694357395, 0.04838566854596138, 0.026641009375452995, -0.03707236424088478, -0.0009807905880734324, -0.011389335617423058, -0.01648336462676525, -0.00999798160046339, -0.03631206229329109, 0.030396904796361923, 0.03515639901161194, 0.03716360032558441, -0.05757012590765953, 0.031963128596544266, 0.022839495912194252, 0.007260891608893871, -0.03406156599521637, -0.004656854551285505, -0.03619041293859482, 0.011488175019621849, 0.028800269588828087, 0.0014502775156870484, -0.05869537591934204, -0.012149638496339321, 0.009214869700372219, -0.014164441265165806, 0.02831367589533329, 0.030305668711662292, 0.038136787712574005, -0.006865534000098705, 0.014156837947666645, 0.04376302659511566, 0.031020354479551315, -0.03996151313185692, -0.025804676115512848, 0.009404945187270641, -0.0013105719117447734, 0.011404542252421379, 0.00952659361064434, 0.028161615133285522, 0.021410126239061356, -0.016255274415016174, -0.027675021439790726, -0.01991993375122547, 0.027568578720092773, 0.010233675129711628, -0.056231994181871414, -0.0020604205783456564, -0.02092353254556656, -0.008599024266004562, 0.0075155929662287235, 0.04443209618330002, -0.031871892511844635, 0.02084750309586525, -0.013822305016219616, 0.019281279295682907, 0.018338503316044807, 0.009382136166095734, -7.12783876224421e-05, -0.03466980531811714, 0.02772063948214054, 0.015038789249956608, -0.027142809703946114, -0.02616962231695652, 0.021486157551407814, -0.0010834314161911607, -0.031172413378953934, -0.026975542306900024, -0.017213255167007446, 0.023037174716591835, 0.052977897226810455, 0.01067465078085661, 0.027766257524490356, -0.0032864087261259556, 0.0023075188510119915, 0.02299155667424202, 0.04677382856607437, -0.049115560948848724, 0.03232807293534279, 0.02898274175822735, -0.03241930902004242, 0.004649251699447632, 0.009214869700372219, -0.003187569323927164, 0.014050395227968693, 0.057174768298864365, -0.017654230818152428, 0.023888712748885155, 0.04382385313510895, -0.004786105826497078, 0.021334096789360046, 0.005493187811225653, -0.000562148867174983, -0.01896195113658905, -0.007831119000911713, 0.032632194459438324, -0.0006277249776758254, -0.010400942526757717, 0.00392696401104331, 0.0007916652830317616, 0.06003350764513016, 0.017045987769961357, 0.010058806277811527, 0.03831925988197327, -0.01487912517040968, 0.0010359125444665551, 0.013115223497152328, -0.00647397805005312, 0.03682906553149223, 0.0002295164013048634, -0.046013522893190384, 0.0006619386258535087, 0.03403115272521973, 0.0022371909581124783, 0.04452333226799965, 0.004668259061872959, 0.06222318112850189, -0.0555933378636837, 0.024162422865629196, -0.007321715820580721, 0.032723430544137955, 0.04333725944161415, -0.026139209046959877, -0.0011271488619968295, -0.007329318672418594, -0.018764272332191467, -0.023143617436289787, 0.005287905689328909, -0.016939546912908554, 0.03369661793112755, -0.004721480421721935, -0.003567720763385296, 0.04282025247812271, -0.027234045788645744, 0.017076401039958, 0.05145729333162308, 0.009123633615672588, -0.031780656427145004, -0.043975912034511566, -0.010165248066186905, -0.011518587358295918, 0.02068023569881916, 0.031963128596544266, -0.015996770933270454, 0.011510984040796757, 0.00019922308274544775, -0.018733860924839973, -0.0506361648440361, 0.023554179817438126, 0.01033251453191042, 0.005272699985653162, -0.008211269974708557, 0.053738199174404144, -0.022672228515148163, -0.0017230361700057983, -0.015403734520077705, 0.017076401039958, 0.018475357443094254, -0.017122019082307816, 0.03012319654226303, 0.032388899475336075, -0.014263280667364597, 0.012871925719082355, -0.010841918177902699, -0.006599428132176399, -0.027340488508343697, 0.009959966875612736, 0.024329688400030136, 0.0016726661706343293, 0.019843902438879013, 0.009823111817240715, -0.025029167532920837, 0.016528982669115067, -0.005801110062748194, -0.01887071505188942, 0.045009925961494446, -0.040204811841249466, -0.00669446587562561, -0.04966297745704651, 0.006686863023787737, -0.058391254395246506, 0.031446121633052826, -0.0334533229470253, -0.04531404748558998, -0.011693457141518593, -0.013693053275346756, 0.01827767863869667, -0.018384121358394623, -0.027158016338944435, 0.012560201808810234, 0.027675021439790726, 0.0029575778171420097, 0.06091545894742012, -0.004998990800231695, -0.03184147924184799, 0.0009698612266220152, 0.013883128762245178, 0.012005181051790714, 0.01535811647772789, 0.03214560076594353, 0.029043566435575485, 0.02204878069460392, -0.01033251453191042, -0.006607030984014273, 0.014149234630167484, 0.0027541967574507, 0.016498571261763573, -0.011488175019621849, -0.015175643377006054, 0.04266819357872009, -0.055806223303079605, 0.014483768492937088, 0.051335643976926804, 0.023478150367736816, 0.010438957251608372, 0.021090799942612648, -0.017715055495500565, -0.018642624840140343, -0.005303111858665943, 0.02589591220021248, 0.0059151556342840195, 0.015426543541252613, 0.028587384149432182, 0.002623044652864337, 0.012119226157665253, 0.003900353331118822, 0.014438149519264698, -0.007823515683412552, -0.005584423895925283, -0.013404138386249542, 0.01800397038459778, -0.018247267231345177, -0.03047293610870838, 0.012408141046762466, 0.011853120289742947, -0.014529386535286903, 0.007112632505595684, -0.04145170748233795, -0.04917638376355171, 0.008051606826484203, -0.011070008389651775, -0.0202544666826725, -0.015723060816526413, -0.0018066695192828774, -0.0012364423600956798, -0.009465769864618778, -0.020406527444720268, -0.03695071488618851, 0.038136787712574005, -0.020208848640322685, -0.015464558266103268, -0.030731437727808952, 0.0015263078967109323, -0.013753877021372318, 0.016772279515862465, -0.05039286985993385, 0.00874348171055317, -0.020558588206768036, -0.0042500924319028854, 0.007523196283727884, -0.013586610555648804, -0.05705312266945839, 0.020953943952918053, 0.0005341126816347241, 0.04394550248980522, -0.005101631861180067, 0.010887536220252514, 0.02359979785978794, 0.021942337974905968, 0.011396938934922218, -0.040873877704143524, -0.004812716506421566, -0.029621396213769913, 0.031020354479551315, -0.004786105826497078, -0.012978368438780308, 0.008218873292207718, 0.01248417142778635, -0.000134953748784028, 0.017380522564053535, -0.0010216569062322378, 0.014734667725861073, 0.054772213101387024, 0.006272498052567244, -0.025683028623461723, 0.0018560892203822732, -0.015373322181403637, 0.03494351729750633, 0.004740487784147263, 0.01585991680622101, -0.032723430544137955, 0.016361715272068977, -0.01674186810851097, 0.00035164004657417536, -0.04339808225631714, -0.009853524155914783, -0.004345130641013384, -0.024223247542977333, 0.0003849032800644636, 0.0066792601719498634, 6.498213042505085e-05, 0.02598715014755726, -0.026884306222200394, 0.014985567890107632, 0.020315291360020638, 0.011974768713116646, 0.05516757071018219, -0.041147585958242416, 0.006063414737582207, -0.04811196029186249, -0.007435761392116547, 0.01296316273510456, -0.015844710171222687, 0.010157645680010319, -0.015723060816526413, 0.003792010247707367, -6.337836384773254e-05, 0.03251054883003235, 0.009762288071215153, 0.03284507989883423, -0.020741060376167297, 0.006420757155865431, 0.001955878920853138, -0.007758889812976122, 0.033240437507629395, 0.003816720098257065, 0.024329688400030136, 0.00862183328717947, -0.011077611707150936, 0.009678654372692108, 0.011746678501367569, 0.016148831695318222, 0.009876333177089691, -0.0346393957734108, -0.010385735891759396, 0.022809084504842758, 0.025424525141716003, -0.028344087302684784, 0.017213255167007446, -0.0021060386206954718, 0.010256484150886536, -0.002142153214663267, -0.017882321029901505, 0.028176821768283844, 0.0050408076494932175, -0.04452333226799965, 0.01988952048122883, 0.02162301167845726, -0.004451572895050049, 0.00944296084344387, 0.030138403177261353, -0.03688989207148552, -0.019676636904478073, 0.040265634655952454, -0.03567340597510338, -0.04075222834944725, 0.03664659336209297, -0.014377325773239136, -0.0129555594176054, -0.04467539116740227, 0.011548999696969986, 0.011351320892572403, -0.017106812447309494, -0.021075593307614326, -0.0020984357688575983, -0.012461362406611443, 0.008507788181304932, 0.017000369727611542, 0.04932844638824463, -0.037376485764980316, 0.012157241813838482, 0.03679865598678589, 0.005732682999223471, 0.0044059548527002335, 0.030670614913105965, -0.04306355118751526, -0.02332608960568905, -0.024679427966475487, 0.0020110008772462606, -0.03999192640185356, -0.014392531476914883, -0.0009527544025331736, -0.016452951356768608, -0.03360538184642792, 0.013069604523479939, 0.01522126141935587, 0.0010207064915448427, -0.031020354479551315, 0.01316844392567873, 0.012248477898538113, 0.02642812393605709, 0.0028549369890242815, -0.0430939607322216, -0.04123882204294205, -0.004029604606330395, 0.051943887025117874, -0.011488175019621849, 0.0097774937748909, -0.025591792538762093, 0.024937931448221207, -0.04306355118751526, -0.0007384440978057683, -0.005690866149961948, -0.0025622204411774874, 0.002387350657954812, -0.01544935256242752, -0.005470378324389458, -0.011632632464170456, -0.0051738605834543705, -0.016848308965563774, 0.010796299204230309, -0.023827889934182167, 0.02762940339744091, -0.02058899961411953, -0.059151556342840195, 0.056171171367168427, -0.003968780394643545, -0.04941968247294426, 0.03129406273365021, -0.003594331443309784, 0.01205840241163969, -0.011085215024650097, -0.01411121990531683, -0.017076401039958, 0.02445133775472641, -0.02445133775472641, 0.01716763712465763, -0.010948359966278076, 0.02557658590376377, -0.03819761052727699, 0.005223280284553766, -0.0058505297638475895, -0.03834967315196991, -0.008416552096605301, -0.007321715820580721, -0.029651809483766556, -0.004599831998348236, 0.015061598271131516, -0.028115997090935707, 0.034548159688711166, -0.049450092017650604, 0.040204811841249466, 0.0026002356316894293, -0.011906341649591923, -0.03947491943836212, 0.0005189066287130117, -0.04339808225631714, -0.001315323868766427, 0.012879529036581516, -0.010271690785884857, 0.025683028623461723, 0.027234045788645744, 0.003734987461939454, -0.01922045461833477, -0.014711858704686165, 0.0013058200711384416, 0.015456955879926682, 0.01320645958185196, -0.018916333094239235, 0.010986375622451305, 0.03199354186654091, -0.0011594617972150445, -0.011434953659772873, -0.03001675382256508, -0.051609352231025696, 0.01750217005610466, -0.024496955797076225, 0.01286432333290577, -0.028800269588828087, 0.002012901706621051, 0.035308461636304855, -0.023386914283037186, 0.0009864928433671594, 0.007983178831636906, -0.06435202807188034, 0.0024139613378793, -0.012088814750313759, -0.017045987769961357, 0.03064020164310932, -0.12189174443483353, -0.023189235478639603, 0.027735846117138863, -0.007694264408200979, 0.027234045788645744, 0.024846695363521576, 0.007462372072041035, -0.03053376078605652, 0.002026206813752651, -0.0015576703008264303, 0.05601910874247551, -0.032723430544137955, 0.014438149519264698, 0.011054802685976028, 0.006569016259163618, 0.015426543541252613, 0.0001869869593065232, 0.046986714005470276, 0.08363330364227295, -0.02051296830177307, 0.004782304633408785, 0.007739882450550795, -0.02788790687918663, 0.00033120688749477267, 0.03801513835787773, 0.010226072743535042, 0.018338503316044807, 0.008865130133926868, -0.02238331362605095, -0.0034004542976617813, 0.03962698206305504, 0.01556339766830206, -0.018475357443094254, 0.01081150583922863, -0.008895542472600937, -0.013761480338871479, 0.033757444471120834, -0.019159629940986633, -0.014118822291493416, -0.005246089305728674, 0.03223683685064316, -0.0028568378183990717, 0.02934768795967102, 0.008082018233835697, -0.016589807346463203, 0.009671051055192947, 0.015061598271131516, 0.006652649492025375, 0.016544189304113388, 0.006363734137266874, -0.021136417984962463, -0.0015025483444333076, -0.003885147161781788, 0.014346913434565067, -0.015586206689476967, -0.006698267534375191, 0.02385830134153366, 0.013016384094953537, 0.00281882262788713, -0.0005231833783909678, 0.0402960479259491, -0.021653423085808754, 0.05276501178741455, 0.0036988731008023024, -0.03637288510799408, 0.023736653849482536, -0.011450160294771194, -0.0173196978867054, -0.013008780777454376, 0.011138435453176498, 0.041147585958242416, 0.018855508416891098, -0.011898738332092762, 0.0020851304288953543, 0.031780656427145004, -0.004493389278650284, -0.022185634821653366, 0.01329009234905243, 0.04905473440885544, -0.031963128596544266, -0.03588629141449928, 0.002590731717646122, 0.03807596489787102, 0.020482556894421577, 0.023143617436289787, 0.025166021659970284, -0.01320645958185196, 0.009967569261789322, -0.012833910994231701, 0.00750418845564127, -0.021258065477013588, -0.04443209618330002, 0.027081985026597977, 0.014491370879113674, 0.03433527424931526, -0.022961143404245377, 0.026488948613405228, 0.018414532765746117, 0.04272901639342308, -0.05054492875933647, -0.02428407035768032, -0.016711454838514328, -0.024147216230630875, 0.003531606402248144, 0.03327085077762604, -0.003404255723580718, 0.017045987769961357, 0.004379344172775745, 0.021318890154361725, 0.0215469803661108, -0.0035924306139349937, -0.001784810796380043, 0.021212447434663773, 0.0027522961609065533, -0.017198048532009125, -0.013252077624201775, -0.010659445077180862, 0.000983641715720296, 0.017380522564053535, 0.03877544030547142, -0.020391320809721947, -0.020208848640322685, -0.04768618941307068, -0.003949773032218218, 0.0204977635294199, -0.015092010609805584, 0.006435962859541178, -0.007207670249044895, 0.0037996130995452404, 0.0009461017907597125, 0.005424760282039642, 0.001378048793412745, -0.023310882970690727, 0.013122825883328915, 0.03363579511642456, 0.015084407292306423, -0.006785702425986528, 0.00772467628121376, -0.003683666931465268, -0.0010710766073316336, -0.030336081981658936, 0.010286896489560604, 0.02513561025261879, -0.012111623771488667, 0.007519394624978304, 0.01569264940917492, -0.009518991224467754, -0.012575408443808556, 0.030594583600759506, -0.019509369507431984, -0.005337325390428305, -0.002064222004264593, 0.006648847833275795, 0.02942371740937233, 0.010621430352330208, -0.022687435150146484, -0.029226038604974747, 0.009602623991668224, -0.024177629500627518, 0.006534802261739969, 0.05595828592777252, -0.029195627197623253, 0.017198048532009125, -0.011206863448023796, -0.041816651821136475, 0.022778671234846115, 0.021060386672616005, 0.0006172708235681057, 0.006895946338772774, 0.013153238222002983, -0.007914751768112183, 0.013708258979022503, -0.03044252283871174, 0.0022029774263501167, -0.009686257690191269, 0.0107734901830554, -0.03527804836630821, -0.014263280667364597, -0.005132043734192848, 0.008690261282026768, 0.0012088813818991184, -0.02042173221707344, -0.05644487962126732, 0.01922045461833477, 0.00545137096196413, 0.04123882204294205, -0.02101476863026619, -0.0018342304974794388, -0.009404945187270641, -0.00015099138545338064, 0.008804306387901306, 0.03853214532136917, -0.011845516972243786, 0.019372515380382538, -0.01576867885887623, -0.058391254395246506, 0.015373322181403637, -0.021927133202552795, 0.0004376492870505899, -0.018916333094239235, 0.012332111597061157, 0.025242052972316742, -0.013693053275346756, -0.008340521715581417, 0.028602590784430504, -0.02306758612394333, 0.013023986481130123, 0.006230681203305721, -0.008332918398082256, 0.031628597527742386, -0.027081985026597977, -0.020300084725022316, 0.005690866149961948, -0.04075222834944725, -0.017973557114601135, -0.016011977568268776, -0.003455576254054904, 0.016285685822367668, 0.02633688785135746, -0.0266105979681015, -0.0008182758465409279, -0.015365718863904476, -0.013883128762245178, 0.039931103587150574, 0.027735846117138863, 0.02093873918056488, -0.024557780474424362, 0.006234482862055302, 0.029058773070573807, 0.033240437507629395, -0.011412144638597965, 0.013282489962875843, -0.011503380723297596, 0.010887536220252514, 0.023402119055390358, -0.004930563736706972, 5.345878889784217e-06, 0.016346510499715805, 0.011260083876550198, 0.024937931448221207, -0.032632194459438324, 0.019144423305988312, -0.01964622363448143, -0.027218839153647423, 0.030822675675153732, 0.00025755257229320705, -0.023356501013040543, -0.0193116907030344, -0.008112430572509766, 0.00884232111275196, 0.05766136199235916, -0.010347721166908741, -0.03184147924184799, 0.0015320101520046592, -0.0010976871708407998, 0.03430486097931862, -0.012362523004412651, -0.013472565449774265, 0.01741093397140503, -0.012248477898538113, 0.01750217005610466, -0.003879444906488061, -0.008158048614859581, 0.03202395513653755, 0.033666208386421204, -0.009017190895974636, 0.014643431641161442, 0.0006134692812338471, -0.02463380992412567, 0.012514583766460419, -0.0006909251678735018, 0.029575778171420097, 0.036768242716789246, -0.004881144035607576, -0.02469463460147381, -0.019798284396529198, -0.0161336250603199, 0.038988325744867325, -0.01273507159203291, -0.0047138771042227745, 0.035125989466905594, -0.01698516495525837, -0.013799495995044708, 0.012005181051790714, 0.012438553385436535, -0.009389739483594894, -0.0322672501206398, 0.01046176627278328, 0.01826247200369835, -0.021258065477013588, 0.0009950462263077497, 0.013807098381221294, -0.0014512279303744435, 0.0009285197593271732, 0.008363330736756325, 0.012506980448961258, 0.006918755359947681, -0.0031856687273830175, 0.01896195113658905, 0.04008316248655319, 0.009914347901940346, -0.019159629940986633, -0.018901126459240913, -0.05136605724692345, 0.02461860328912735, -0.018581800162792206, 0.008173255249857903, -0.007701867260038853, 0.023265264928340912, -0.02633688785135746, 0.006283902563154697, -0.01274267490953207, -0.004554213490337133, 0.02410159818828106, -0.012020386755466461, 0.017076401039958, -0.051183585077524185, -0.04093470051884651, -0.03746772184967995, -0.0454661063849926, -0.025181228294968605, -0.01674186810851097, -0.03451774641871452, -0.004193069878965616, -0.01680269092321396, 0.004660656210035086, -0.013054398819804192, 0.010826711542904377, 0.02907397784292698, -0.013715862296521664, 0.0022504962980747223, -0.01320645958185196, -0.006394146475940943, -0.001822825986891985, -0.0322672501206398, 0.01294795610010624, -0.029302069917321205, -0.014856316149234772, 0.034608982503414154, 0.01768464222550392, 0.017730260267853737, -0.00027062027947977185, -0.003257897449657321, -0.025409318506717682, -0.01544174924492836, -0.013563801534473896, -0.013761480338871479, -0.01888592168688774, -0.0043413289822638035, 0.03576464205980301, 0.013442153111100197, 0.009769890457391739, 0.011412144638597965, 0.03354455903172493, 0.022778671234846115, 0.02589591220021248, -0.0027389908209443092, -0.014164441265165806, 0.012491774745285511, -0.020117612555623055, -0.014065601862967014, 0.00019601556414272636, 0.01655939407646656, -0.007952767424285412, 0.011191656813025475, 0.046865064650774, 0.004687266889959574, 0.010188057087361813, 0.0046074348501861095, -0.030853087082505226, 0.0048431288450956345, 0.02101476863026619, 0.021683836355805397, -0.01157941110432148, -0.02831367589533329, 0.013480168767273426, 0.003461278509348631, 0.026124004274606705, 0.0036589570809155703, 0.019098805263638496, 0.001574777183122933, 0.038897089660167694, -0.003792010247707367, 0.021410126239061356, -0.025698233395814896, -0.010750681161880493, -0.0054399664513766766, -0.0026971742045134306, -0.008583818562328815, -0.006101429928094149, -0.007371135521680117, 0.010857123881578445, 0.005116837564855814, -0.0012554499553516507, -0.024512162432074547, -0.000815899926237762, -0.023280471563339233, 0.002145954640582204, 0.031963128596544266, -0.0036532548256218433, -0.007614432368427515, 0.013571404851973057, 0.002573624951764941, -0.0027979142032563686, -0.012529789470136166, -0.013708258979022503, 0.012126829475164413, -0.022246459499001503, 0.03208477795124054, -0.020969150587916374, -0.013814701698720455, 0.014719462022185326, 0.0040372079238295555, -0.024055980145931244, 0.008925954811275005, 0.027142809703946114, 0.0014065601862967014, 0.008644642308354378, 0.04373261705040932, -0.01205840241163969, -0.0023360303603112698, -0.024223247542977333, 0.010887536220252514, -0.04056975618004799, -0.000803545000962913, -0.01972225494682789, -0.021577393636107445, 0.007428158074617386, 0.02607838623225689, -0.03688989207148552, -0.025089992210268974, 0.010028393939137459, -0.0012107822112739086, 0.004356535151600838, -0.012316904962062836, -0.016544189304113388, 0.014521783217787743, -0.03509557619690895, -0.034365687519311905, -0.044918689876794815, -0.004995189141482115, -0.03433527424931526, 0.04151253029704094, 0.057357240468263626, -0.013449756428599358, 0.012803498655557632, 0.010545399971306324, 0.0010634735226631165, 0.013198856264352798, -0.005219478625804186, -0.05097069963812828, 0.002921463456004858, 0.0036342472303658724, -0.0009038099087774754, -0.04564857855439186, -0.013723465614020824, 0.026747452095150948, -0.04060016945004463, -0.038745030760765076, 0.0032978132367134094, -0.0004167409788351506, -0.005265096668154001, -0.02265702374279499, 0.011100420728325844, 0.01742614060640335, 0.05732683092355728, -0.027842288836836815, -0.008074415847659111, 0.017562994733452797, 0.013198856264352798, 0.005500790663063526, 0.002026206813752651, 0.03439609706401825, 0.03287549316883087, -0.038288846611976624, 0.025865500792860985, -0.024922724813222885, 0.0021820690017193556, 0.03831925988197327, 0.009549402631819248, 0.02761419676244259, 0.001403709058649838, -0.0020052986219525337, 0.002436770359054208, 0.004679663572460413, -0.0430939607322216, 0.01792793907225132, -0.0071164341643452644, -0.007454768754541874, -0.01090274192392826, 0.01433170773088932, -0.028769858181476593, 0.008005988784134388, -0.03731565922498703, 0.022839495912194252, 0.019342102110385895, 0.004535206127911806, 0.01433170773088932, 0.026397712528705597, 0.015152834355831146, -0.023386914283037186, -0.0023341295309364796, -0.01689392700791359, -0.03801513835787773, -0.016589807346463203, -0.0033377292566001415, -0.03637288510799408, -0.01500837691128254, -0.01570785604417324, 0.061554115265607834, -0.0300319604575634, 0.0034327670000493526, -0.010302103124558926, -0.009762288071215153, -0.00020979605324100703, 0.040448106825351715, 0.0008211270323954523, 0.0027199832256883383, 0.025865500792860985, -0.011951959691941738, -0.01741093397140503, -0.015434146858751774, -0.008675054647028446, 0.026534566655755043, 0.02452736720442772, -0.012590614147484303, 0.0013580908998847008, -0.007359731011092663, -0.0021801681723445654, 0.015517779625952244, 0.012073608115315437, -0.0227330531924963, 0.0013286290923133492, -0.004337527323514223, 0.006511993240565062], "id": 62}, {"title": "Falling Star (The Outer Limits)", "text": "\"Falling Star\" is an episode of The Outer Limits television series. It first aired on 30 June 1996, during the second season.", "vector": [-0.030039062723517418, -0.015257558785378933, -0.01758229359984398, -0.03421247750520706, 0.011464987881481647, -0.0279126837849617, -0.029674086719751358, 0.004835924133658409, -0.08384913206100464, 0.047192905098199844, 0.010020955465734005, 0.05369899049401283, -0.00850551389157772, -0.016519103199243546, 0.025103960186243057, -0.02286650240421295, -0.027928553521633148, 0.03535500913858414, 0.01066362950950861, 0.0053357817232608795, 0.0062878914177417755, 0.01939130201935768, -0.013686577789485455, 0.016550840809941292, 0.0315941758453846, -0.002523090923205018, 0.006656833924353123, 0.01731252856552601, 0.007652582135051489, 0.029912114143371582, 0.003415693761780858, -0.008394434116780758, 0.03710054233670235, 0.05896732956171036, -0.034910690039396286, 0.008941897191107273, 0.008957765996456146, 0.0013875016011297703, -0.024786589667201042, 0.029229769483208656, 0.0061966474168002605, -0.032816048711538315, -0.06613989174365997, -0.0014638687716796994, -0.013147048652172089, 0.018835904076695442, -0.02572283148765564, -0.02580217458307743, -0.005926883313804865, -0.009862270206212997, -0.026579730212688446, -0.0187724307179451, -0.029816903173923492, 0.006339463870972395, 0.007755727507174015, 0.00956870336085558, 0.027976159006357193, 0.050557028502225876, -0.015543191693723202, -0.02854742482304573, 0.0146466214209795, -0.002989227883517742, -0.014154698699712753, 0.011314237490296364, -0.016043048352003098, -0.01010823156684637, 0.03909997269511223, 0.006145074963569641, -0.030880093574523926, -0.01637628674507141, 0.02745249681174755, 0.018010742962360382, -0.018899379298090935, -0.00860072486102581, -0.013170851394534111, 0.0009481426095589995, -0.011925174854695797, -0.004288461059331894, -0.05896732956171036, -0.03992513567209244, 0.016265207901597023, 0.021025756374001503, 0.022104814648628235, 0.017963137477636337, -0.016884079203009605, -0.013226390816271305, -0.03332383930683136, -0.060268547385931015, -0.005470663774758577, 0.0251674335449934, 0.026706678792834282, 0.06753631681203842, -0.02965821884572506, -0.03421247750520706, 0.03200675547122955, 0.01940716989338398, 0.03313341736793518, 0.01317878533154726, -0.052397772669792175, 0.024120112881064415, -0.017883794382214546, -0.014083290472626686, -0.027801604941487312, -0.028595030307769775, 0.02362819015979767, -0.01966106705367565, -0.001365682459436357, -0.005173129495233297, 0.035481955856084824, 0.027389023452997208, -0.014035684987902641, 0.023564716801047325, -0.0032391566783189774, -0.009243398904800415, 0.054587624967098236, 0.017804453149437904, 0.00016389180382248014, 0.04373357445001602, -0.03824307397007942, -0.012996298260986805, 0.02526264451444149, -0.0047684828750789165, -0.0393538698554039, 0.018423324450850487, 0.00019476098532322794, -0.007200330030173063, 0.03805265203118324, 0.00752563402056694, 0.0042924280278384686, -0.042337145656347275, -0.03837002441287041, 0.0411946140229702, -0.008259551599621773, 0.016963422298431396, -0.0034890854731202126, -0.021644627675414085, -0.04170240834355354, -0.05274688079953194, 0.0067956834100186825, 0.0024973044637590647, -0.005359584465622902, 0.02518330328166485, -0.03732270374894142, 0.026135412976145744, 0.0012724549742415547, -0.015043334104120731, -0.004578060936182737, -0.03011840581893921, 0.02691296860575676, -0.02984864078462124, 0.0430036224424839, 0.040052082389593124, -0.03275257349014282, 0.019788013771176338, 0.04751027747988701, 0.0061768121086061, 0.042241934686899185, -0.008497579954564571, 0.0029535237699747086, -0.027055785059928894, -0.032260652631521225, -0.0007577206706628203, -0.031721122562885284, -0.01492432039231062, -0.041035931557416916, -0.03678317368030548, 0.03694185987114906, 0.05290556326508522, -0.03919518366456032, 0.0025845812633633614, 0.04144851118326187, -0.012742402032017708, -0.04309883341193199, -0.03332383930683136, 0.013607234694063663, 0.0066727022640407085, 0.062204502522945404, 0.08594377338886261, -0.005438927095383406, -0.013035968877375126, -0.02570696361362934, 0.013694511726498604, -0.007263803854584694, -0.02938845381140709, -0.02810310572385788, 0.0005201891181059182, -0.029610613361001015, 0.0041139074601233006, -0.033355578780174255, -0.03906823694705963, -0.03868739306926727, 0.02005777880549431, 0.033260367810726166, -0.047192905098199844, -0.02261260710656643, 0.047097694128751755, -0.012559914030134678, 0.005629349034279585, -0.06258534640073776, 0.01629694551229477, -0.008680067025125027, -0.06893274933099747, -0.03430768847465515, -0.03157830610871315, 0.031229199841618538, 0.008886357769370079, 0.0357041172683239, 0.008049294352531433, 0.018613746389746666, 0.039576027542352676, -0.036656226962804794, -0.03411726653575897, 0.017693372443318367, 0.01969280280172825, -0.0061966474168002605, 0.014257843606173992, -0.009267201647162437, 0.06734589487314224, -0.03259389102458954, -0.03795744106173515, 0.04281320050358772, -0.021993735805153847, 0.001343863201327622, -0.020279938355088234, 0.028944136574864388, 0.010330391116440296, -0.007965984754264355, -0.005030313041061163, -0.03376815840601921, -0.05471457168459892, 0.005438927095383406, -0.021200310438871384, -0.02719860151410103, -0.004066301975399256, -0.02564348839223385, 0.04601863771677017, -0.014075355604290962, -0.001435107085853815, 0.033260367810726166, -0.036370594054460526, 0.013948407955467701, 0.01056841854006052, 0.023659927770495415, 0.03516458719968796, 0.03424421325325966, -0.003931419923901558, 0.004693107679486275, -0.025056354701519012, -0.008568988181650639, 0.004609798081219196, 0.023866217583417892, -0.019169142469763756, 0.011718884110450745, 0.02096228301525116, 0.020660782232880592, -0.029785167425870895, -0.02800789475440979, 0.009362412616610527, -0.025770436972379684, -0.005760264117270708, -0.02023233287036419, 0.022374579682946205, 0.06728242337703705, 0.014186435379087925, -0.023358425125479698, -0.007485962938517332, 0.008767344057559967, -0.00022748977062292397, -0.022374579682946205, -0.025881515815854073, 0.03532327339053154, -0.012409163638949394, -0.04646295681595802, 0.015678074210882187, 0.03998861089348793, -0.002602433320134878, 0.04449526220560074, 0.037290964275598526, 0.005748362746089697, -0.036751437932252884, 0.01157606765627861, -0.003118159482255578, -0.028420476242899895, -0.0421149879693985, -0.008465842343866825, -0.0027452497743070126, 0.01975627802312374, 0.004554258193820715, 0.0021105099003762007, 0.01674126274883747, -0.024754853919148445, -0.014503804966807365, -0.020184727385640144, 0.05300077423453331, 0.020454490557312965, 0.04284493997693062, -0.02497701160609722, 0.04868454486131668, 0.04062334820628166, -0.013742117211222649, -0.03789396956562996, 0.025960858911275864, -0.006863124202936888, -0.02069251798093319, -0.024405745789408684, -0.014670424163341522, 0.0759148821234703, 0.00047977405483834445, -0.022025471553206444, -0.031435489654541016, -0.004494751337915659, -0.045891690999269485, -0.008065163157880306, -0.023136267438530922, 0.017804453149437904, 0.009084713645279408, 0.012988363392651081, -0.02286650240421295, 0.002374323783442378, -0.03576758876442909, 0.023453636094927788, -0.025103960186243057, -0.018804168328642845, 0.02124791592359543, 0.03046751208603382, -0.016249340027570724, 0.04884323105216026, 0.0013081590877845883, -0.05525410175323486, 0.01977214589715004, -0.006367234047502279, 0.004907332360744476, -0.004447145853191614, 0.010822313837707043, -0.021073361858725548, 0.007771595846861601, -0.024120112881064415, -0.019058063626289368, 0.04274972900748253, -0.032070230692625046, -0.04221019893884659, 0.029499534517526627, 0.030277090147137642, -0.011131749488413334, -0.03678317368030548, 0.015098873525857925, 0.05611100047826767, 0.018169427290558815, 0.00035406582173891366, 0.04674858972430229, 0.0008633453398942947, -0.0005722576170228422, -0.0016354467952623963, 0.009370346553623676, 0.06153802573680878, -0.06518778204917908, 0.027611183002591133, -0.006605261471122503, 0.038750868290662766, 0.0750897228717804, 0.010020955465734005, 0.005236603785306215, 0.034085530787706375, 0.04128982499241829, -0.004522521514445543, -0.006486247759312391, 0.08162754029035568, 0.03306994587182999, -0.02845221385359764, -0.019565856084227562, 0.022184157744050026, 0.0028602962847799063, -0.05814217031002045, -0.010171705856919289, 0.01831224374473095, -0.03948081657290459, 0.016177931800484657, 0.00910058245062828, -0.07750173658132553, 0.005625381600111723, -0.03805265203118324, 0.032022625207901, 0.06395003944635391, 0.01912153698503971, 0.033799897879362106, 0.024881800636649132, -0.0585547499358654, 0.014971925877034664, -0.004673271905630827, -0.024643773213028908, -0.0558253675699234, -0.003147912910208106, 0.00988607294857502, -0.007648615166544914, -0.0009278111392632127, -0.041956301778554916, -0.026198886334896088, 0.015384506434202194, 0.027944421395659447, -0.003514871932566166, 0.04021076858043671, 0.02710339054465294, -0.005438927095383406, -0.01570187695324421, -0.0043241651728749275, 0.030895961448550224, -0.012155267409980297, 0.0011742686619982123, -0.011401514522731304, 0.057983484119176865, 0.02297758124768734, 0.037671808153390884, -0.009965415112674236, -0.01039386447519064, 0.017979005351662636, 0.04284493997693062, 0.043892260640859604, 0.01533690094947815, -0.00860072486102581, 0.012432966381311417, 0.014083290472626686, 0.06550514698028564, 0.002866246970370412, 0.014368923380970955, -0.028134843334555626, -0.00034960280754603446, -0.0016681755660101771, -0.048018068075180054, -0.026976441964507103, -0.08949831873178482, 0.043416205793619156, -0.06791716068983078, -0.04382878541946411, 0.0035902471281588078, -0.02635757066309452, 0.026484519243240356, -0.018820036202669144, -0.02591325342655182, -0.04157545790076256, 0.04157545790076256, 0.002501271665096283, 0.06740937381982803, -0.03541848435997963, 0.013972210697829723, 0.016979290172457695, -0.02881718799471855, -0.011599870398640633, -0.007799365557730198, 0.03268910199403763, -0.03909997269511223, -0.026770152151584625, 0.024374010041356087, 0.024310534819960594, -0.005359584465622902, 0.022311104461550713, 0.05246124789118767, 0.010965130291879177, 1.0901842870225664e-05, 0.01244883518666029, 0.0025052388664335012, 0.035101111978292465, 0.04344794154167175, 0.056967899203300476, -0.03586279973387718, 0.032070230692625046, 0.01377385389059782, -0.042686253786087036, -0.029769297689199448, -0.01685234345495701, -0.008894291706383228, 0.02123204804956913, -0.012472637929022312, -0.08943483978509903, 0.010028889402747154, 0.06268055737018585, 0.03909997269511223, -0.008354762569069862, -0.02580217458307743, -0.05649184435606003, -0.0329747349023819, -0.018375718966126442, 0.05090613290667534, 5.299829808791401e-06, -0.008949832059442997, 0.04294015094637871, 0.02683362551033497, -0.016773000359535217, 0.009052976965904236, -0.03233999386429787, -0.0046812063083052635, 0.06613989174365997, -0.04884323105216026, -0.003772734897211194, -0.030594460666179657, -0.021739838644862175, 0.02343776822090149, -0.06874232739210129, 0.004363836254924536, -0.026944706216454506, -0.013059771619737148, 0.02965821884572506, 0.007581173907965422, 0.043416205793619156, 0.06848842650651932, -0.05077918618917465, 0.05188998207449913, 0.0006749069434590638, -0.007513732649385929, -0.009536965750157833, -0.029721692204475403, 0.031102251261472702, -0.015924034640192986, 0.0265479926019907, 0.02699231170117855, -0.02407250739634037, -0.0050065102986991405, 0.03513285145163536, 0.03011840581893921, 0.013067706488072872, -0.004939069505780935, -0.011996583081781864, 0.007589108310639858, -0.006918664090335369, 0.04357488825917244, -0.016773000359535217, 0.029420191422104836, 0.0173918716609478, -0.003286762163043022, 0.01070330012589693, -0.04725638031959534, 0.02048622816801071, 0.025230908766388893, 0.0010969097493216395, 0.031165726482868195, -0.02680188976228237, 0.024231193587183952, -0.026071937754750252, 0.043162308633327484, 0.005415124353021383, -0.027960289269685745, -0.023929690942168236, -0.03430768847465515, 0.0029753430280834436, 0.03224478289484978, -0.01977214589715004, 0.015321033075451851, 0.03092769905924797, 0.014503804966807365, 0.00553810503333807, -0.022755423560738564, 0.009894006885588169, -0.007839037105441093, 0.04125808924436569, 0.015455914661288261, 0.026341702789068222, -0.04106766730546951, 0.02094641514122486, 0.018883509561419487, -0.0004973781760782003, 0.06429914385080338, 0.020343411713838577, -0.01831224374473095, -0.011377711780369282, -0.014170566573739052, -0.013012166135013103, -0.010092363692820072, -0.0494144968688488, -0.014670424163341522, -0.031260937452316284, -0.029436059296131134, 0.006188713479787111, -0.0033819731324911118, 0.021739838644862175, 0.001988520845770836, 0.014995728619396687, 0.01656670868396759, -0.011211092583835125, -0.01931195892393589, 0.00019550482102204114, -0.007878707721829414, -0.0192167479544878, 0.013059771619737148, 0.015987509861588478, -0.004268625285476446, -0.053318146616220474, 0.0073907519690692425, -0.016130326315760612, 0.025468936190009117, 0.03145135939121246, -0.004538389854133129, -0.024548562243580818, -0.0003798521065618843, -0.02683362551033497, -0.011457053944468498, -0.012909021228551865, 0.020470360293984413, 0.045161738991737366, -0.009394149295985699, -0.004931135103106499, -0.010124100372195244, 0.0338633693754673, -0.01286141574382782, -0.029071085155010223, -0.027801604941487312, 0.008529316633939743, 0.01616206206381321, -0.03351426497101784, 0.012718599289655685, 0.016344550997018814, 0.01157606765627861, 0.004685173276811838, -0.00597448879852891, 0.004332099575549364, 0.01666191965341568, 0.0054944665171206, -0.04513000324368477, -0.016614314168691635, 0.00629185838624835, -0.011203157715499401, -0.03535500913858414, -0.02756357751786709, 0.010187574662268162, 0.0031022909097373486, 0.029499534517526627, -0.048652809113264084, 0.011544330976903439, -0.009267201647162437, 0.0057245600037276745, -0.010735037736594677, 0.023755138739943504, 0.030419906601309776, 0.020248200744390488, 0.007378850597888231, -0.008009622804820538, -0.05109655484557152, 0.013186720199882984, 0.037925705313682556, -0.009925744496285915, 0.030880093574523926, -0.05198519304394722, 0.003794554155319929, 0.01029865350574255, 0.02204134128987789, 0.03694185987114906, -0.01020344253629446, 0.011972780339419842, 0.024294666945934296, -0.022549131885170937, -0.018518535420298576, 0.04335273057222366, -0.005756296683102846, 0.02534198760986328, -0.019169142469763756, 0.017629899084568024, 0.01702689565718174, -0.019438907504081726, 0.05392114818096161, 0.00024298633798025548, -0.018740693107247353, -0.036116696894168854, -0.010147903114557266, 0.014035684987902641, -0.025738699361681938, -0.01491638645529747, -0.016788868233561516, 0.007128921803086996, 0.05665053054690361, 0.013353339396417141, -0.038401760160923004, -0.04532042518258095, -0.030166011303663254, 0.03038816899061203, 0.009648045524954796, -0.034910690039396286, 0.009560768492519855, -0.015059202909469604, -0.009655979461967945, 0.04265451803803444, 0.006521951872855425, 0.001494613941758871, -0.029959719628095627, -0.011496725492179394, 0.03487895429134369, 0.008124670013785362, -0.016503235325217247, -0.010052692145109177, 0.026849495247006416, -0.009536965750157833, 0.014186435379087925, -0.025500671938061714, -0.026944706216454506, 0.0042963954620063305, 0.022771291434764862, 0.032530415803194046, -0.008616593666374683, -0.009663914330303669, -0.01712210662662983, 0.0054547954350709915, -0.014408593997359276, 0.017550555989146233, -0.008077064529061317, -0.014535542577505112, -0.0439557321369648, -0.02764291875064373, -0.0007562329992651939, -0.032816048711538315, -0.018724825233221054, -0.0329747349023819, 0.008204012177884579, -0.0178361888974905, 0.008124670013785362, 0.006398970726877451, -0.021105099469423294, -0.003623967757448554, 0.024104245007038116, -0.028071369975805283, -0.03306994587182999, 0.057253532111644745, -0.0035664443857967854, -0.032355863600969315, 0.026611467823386192, 0.013575498014688492, -0.007283639628440142, -0.015138545073568821, -0.020010173320770264, -0.027579445391893387, -0.04173414409160614, 0.02096228301525116, 0.025929121300578117, 0.009663914330303669, 0.007577206939458847, 0.0047724503092467785, 0.010060626082122326, -0.026595598086714745, 0.02683362551033497, 0.03313341736793518, 0.011591936461627483, 0.0137341832742095, -0.005589677486568689, 0.025595882907509804, 0.002243408700451255, 0.020978150889277458, 0.012226675637066364, 0.020264068618416786, 0.007446291856467724, 0.004066301975399256, 0.013876999728381634, 0.011615739203989506, -0.01587642915546894, 0.019248485565185547, -0.006212516222149134, -0.028864793479442596, 0.009743256494402885, -0.015765350311994553, -0.0215176809579134, 0.0016007345402613282, -0.012512308545410633, -0.008291289210319519, -0.03367294743657112, 0.00997334998100996, 0.017994875088334084, -0.0018109921365976334, 0.027484234422445297, -0.029086953029036522, -0.006529885809868574, 0.02370753325521946, -0.026103675365447998, 0.015384506434202194, -0.012163202278316021, 0.01542417798191309, 0.009068845771253109, -0.007109086029231548, -0.03313341736793518, -0.10352606326341629, 0.04271798953413963, 0.008362697437405586, 0.004375737626105547, -0.01016377191990614, -0.0059308502823114395, -0.03259389102458954, -0.008164340630173683, 0.029991457238793373, 0.005018411669880152, -0.010219311341643333, -0.0028126908000558615, -0.016868211328983307, 0.0064981491304934025, 0.036180172115564346, 0.016439761966466904, -0.0006154000875540078, -0.042337145656347275, -0.023929690942168236, 0.010362127795815468, -0.028420476242899895, -0.0069424668326973915, 0.016709525138139725, -0.004482849966734648, -0.0002610863302834332, -0.0030705539975315332, -0.00046663294779136777, 0.04989055171608925, -0.006121272221207619, -0.02535785548388958, -0.004153578542172909, 0.005161228124052286, -0.009949547238647938, -0.02948366478085518, -0.0173918716609478, -0.02270781807601452, 0.01236155815422535, 0.015622533857822418, 0.004788318648934364, 0.023485373705625534, 0.014503804966807365, -0.005887211766093969, 0.0494462326169014, 0.00027893841615878046, 0.010973065160214901, -0.0201371219009161, -0.041226353496313095, 0.004423343110829592, 0.0132660623639822, 0.017915531992912292, 0.03443463519215584, 0.0012665042886510491, 0.046367745846509933, -0.02699231170117855, 0.012115596793591976, 0.042337145656347275, -0.024120112881064415, -0.015352769754827023, 0.01712210662662983, 0.04284493997693062, -0.014487937092781067, -0.03551369532942772, -0.023041056469082832, -0.016503235325217247, -0.0067361765541136265, -0.0031538635957986116, 0.0187724307179451, 0.005022379104048014, 0.0077477931044995785, 0.027150996029376984, 0.002969392342492938, 0.022850634530186653, 0.01950238086283207, 0.014289580285549164, -0.010005086660385132, 0.007053546607494354, 0.0022672114428132772, 0.0025330085773020983, 0.0051572611555457115, 0.011139684356749058, 0.034371163696050644, -0.012710665352642536, 0.0003813397779595107, 0.016725394874811172, -0.00430432939901948, 0.028801320120692253, -0.023310819640755653, 0.00979086197912693, 0.028420476242899895, 0.024278799071907997, -0.01848679780960083, 0.021105099469423294, 0.0057245600037276745, 0.0057523297145962715, 0.010338325053453445, -0.015043334104120731, -0.04922407492995262, -0.012837613001465797, -0.022644342854619026, 0.00027769868029281497, -0.009306873194873333, -0.03405379131436348, 0.022263498976826668, -0.02415185049176216, -0.007489929907023907, 0.029626481235027313, 0.02554827742278576, 0.00686709163710475, 0.017550555989146233, 0.010147903114557266, -0.012385360896587372, 0.00464550219476223, -0.0002623260661493987, -0.016709525138139725, 0.013115311972796917, -0.04751027747988701, -0.020470360293984413, 0.026849495247006416, -0.022580869495868683, -0.016582578420639038, 0.06823453307151794, -0.014360988512635231, 0.07851731777191162, 0.011861700564622879, -0.03608496114611626, -0.035831063985824585, 0.0015918085118755698, 0.010401799343526363, -0.03367294743657112, 0.016899948939681053, -0.006922631058841944, 0.0077200233936309814, 0.0009258275385946035, 0.027753999456763268, 0.021168572828173637, 0.009354478679597378, 0.0032808114774525166, 0.01728079281747341, 0.020454490557312965, 0.014614884741604328, -0.009552834555506706, 0.008449974469840527, 0.00028811238007619977, 0.02837287075817585, 0.038116127252578735, 0.006212516222149134, 0.009663914330303669, -0.005831672344356775, -0.022914107888936996, 0.008957765996456146, 0.0027631018310785294, -0.03468853235244751, -0.0448761060833931, 0.0018556222785264254, -0.014027750119566917, -0.010623957961797714, -0.023183872923254967, 0.059824228286743164, -0.013480287045240402, 0.011917239986360073, 0.004248789977282286, -0.0038857979234308004, -0.032530415803194046, -0.02946779690682888, 0.03186393901705742, 0.015035400167107582, 0.005327847320586443, 0.008941897191107273, -0.009259267710149288, 0.023406030610203743, -0.031625911593437195, 0.023215608671307564, 0.012829679064452648, 0.013900802470743656, -0.03449811041355133, 0.04265451803803444, -0.019518250599503517, 0.055698420852422714, -0.019423039630055428, -0.0017782633658498526, -0.025056354701519012, 0.0060776337049901485, 0.029721692204475403, 0.0031221264507621527, -0.007105119060724974, -0.027420761063694954, -0.019565856084227562, -0.022279368713498116, 0.009076779708266258, 0.017629899084568024, 0.001988520845770836, -0.025960858911275864, 0.002304899040609598, -0.02994385175406933, -0.04582821577787399, 0.009536965750157833, -0.010258982889354229, -0.012623388320207596, -0.00969565100967884, -0.00046564117656089365, -0.01867721974849701, 0.024088377133011818, 0.016693657264113426, 0.03459332138299942, 0.012004517018795013, -0.011187289841473103, -0.010235180146992207, 0.020613176748156548, 0.020010173320770264, 0.01683647371828556, 0.018962852656841278, 0.019819751381874084, 0.003445447189733386, -0.02370753325521946, 0.017169712111353874, 0.009306873194873333, 0.011750620789825916, 0.011536396108567715, 0.030911829322576523, 0.012782073579728603, -0.023739269003272057, 0.0247231163084507, 0.03176872804760933, -0.05703137442469597, -0.03348252549767494, -0.05112829431891441, 0.02407250739634037, 0.012599585577845573, -0.019264353439211845, -0.022374579682946205, -0.009425886906683445, 0.007232067175209522, -0.003631901927292347, -0.0260878074914217, -0.010044758208096027, -0.03141961991786957, 0.00041580418474040926, 0.01821703277528286, 0.029785167425870895, -0.032086096704006195, -0.0009654987952671945, 0.016582578420639038, -0.02005777880549431, -0.015939904376864433, -0.012020385824143887, -0.011695081368088722, 0.06747284531593323, 0.006129206623882055, -0.023406030610203743, -0.002531025093048811, -0.03827481344342232, -0.014178501442074776, 0.029610613361001015, -0.03779875859618187, -0.0013775838306173682, -0.0012526194332167506, 0.004463014658540487, 0.012337755411863327, -0.007370916195213795, 0.003939353860914707, -0.005228669382631779, -0.014472068287432194, 0.013670708984136581, -0.025024617090821266, 0.042971886694431305, 0.01605098322033882, 0.031070515513420105, -0.0035029705613851547, 0.00480418698862195, -0.002124394988641143, 0.05300077423453331, 0.018248770385980606, -0.027611183002591133, -0.01395634189248085, 0.003760833526030183, 0.003324449760839343, 0.00969565100967884, -0.004585995338857174, -0.006105403881520033, 0.028404608368873596, -0.028944136574864388, 0.022311104461550713, 0.006625096779316664, -0.032816048711538315, 0.00897363480180502, 0.035481955856084824, -0.020819466561079025, 0.002610367489978671, -0.0021779511589556932, -0.023675795644521713, -0.0020192661322653294, 0.016598446294665337, 0.0302136167883873, -0.02689710073173046, -0.021120967343449593, 0.006720307748764753, -0.0054944665171206, -0.002463584067299962, -0.00716462591663003, -0.013377142138779163, 0.03440289944410324, -0.009211662225425243, 0.05154087394475937, -0.007283639628440142, -0.052302561700344086, -0.010211377404630184, 0.004609798081219196, 0.024643773213028908, -0.03161004185676575, 0.025119828060269356, -0.015090939588844776, 0.01712210662662983, -0.031165726482868195, -0.002084723673760891, 0.0031875839922577143, -0.010909590870141983, 0.0009580604382790625, -0.011504659429192543, 0.0045304554514586926, 0.026690809056162834, 0.012012450955808163, 0.042876675724983215, -0.00979086197912693, 0.009243398904800415, 0.06341050565242767, 0.006871058605611324, -0.011917239986360073, -0.022469790652394295, -0.0021997701842337847, -0.003735047299414873, 0.018264638260006905, -0.003147912910208106, 0.04532042518258095, -0.015939904376864433, 0.00028662470867857337, 0.009965415112674236, 0.03697359561920166, -0.00498667499050498, 0.033165156841278076, -0.003842159640043974, -0.02964235097169876, 0.015789153054356575, -0.004879562649875879, 0.002283079782500863, -0.028864793479442596, -0.031625911593437195, -0.01748708263039589, 0.025326119735836983, 0.012202872894704342, 0.012060056440532207, 0.010100297629833221, 0.025786304846405983, 0.025008749216794968, 0.0021779511589556932, 0.015709809958934784, -0.011655409820377827, -0.016995159909129143, -0.03503764048218727, 0.012655124999582767, 0.0494462326169014, 0.017423609271645546, -0.005982422735542059, 0.02910282090306282, 0.023961428552865982, -0.0025052388664335012, -0.015503520146012306, 0.01098099909722805, -0.02480245940387249, -0.030959434807300568, -0.005470663774758577, 0.0016523071099072695, 0.013567564077675343, 0.01176648959517479, -0.015805020928382874, 0.02680188976228237, -0.027658788487315178, 0.0017584277084097266, -0.015249624848365784, 0.002776986686512828, 0.00553810503333807, -0.013694511726498604, -0.01710623875260353, -0.033101681619882584, 0.014480002224445343, -0.026786020025610924, 0.00686709163710475, -0.008656264282763004, -0.004990641959011555, -0.02700817957520485, -0.015344835817813873, 0.03798918053507805, 0.030308827757835388, -0.017820321023464203, -0.004048449918627739, -0.008251617662608624, 0.021263783797621727, 0.0096083739772439, 0.006010192912071943, 0.022184157744050026, -0.009267201647162437, 0.05388941243290901, 0.004558225627988577, -0.013028034940361977, 0.028769582509994507, 0.01966106705367565, -0.01267099380493164, -0.017740977928042412, 0.030895961448550224, 0.008259551599621773, -0.008061195723712444, -0.003326433477923274, 0.026294097304344177, 0.0365927517414093, 0.022374579682946205, 0.0040246471762657166, 0.03200675547122955, 0.01847092993557453, -0.005728526972234249, 0.021105099469423294, -0.018137691542506218, 0.002084723673760891, 0.036370594054460526, -0.010822313837707043, -0.03703707084059715, 0.019724540412425995, -0.002739299088716507, 0.02140660025179386, 0.002015298930928111, -0.00951316300779581, 0.004359869286417961, -0.015924034640192986, 0.013202588073909283, -0.0043519348837435246, 0.01363897230476141, -0.010124100372195244, -0.01904219575226307, -0.022088946774601936, -0.0008345837122760713, 0.0041734143160283566, -0.01404361892491579, 0.015733612701296806, 0.02497701160609722, -0.03468853235244751, 0.015559060499072075, -0.028721977025270462, -0.0019081865902990103, -0.02992798388004303, 0.019327828660607338, 0.002255310071632266, -0.03954429179430008, -0.036370594054460526, 0.015749482437968254, 0.00928307045251131, 0.014963991940021515, -0.029150426387786865, -0.005855475086718798, -0.021470075473189354, 0.007081316318362951, -0.021263783797621727, 0.02005777880549431, 0.005220734979957342, -0.030229484662413597, -0.016788868233561516, 0.0029336882289499044, 0.0029793099965900183, 0.033641211688518524, 0.015947837382555008, -0.02518330328166485, -0.026135412976145744, 0.003842159640043974, -0.01977214589715004, -0.003982992377132177, 0.049097124487161636, 0.008132603950798512, -0.02096228301525116, -0.0018476879922673106, 0.01248850580304861, -0.03681490942835808, -0.009822598658502102, -0.03275257349014282, 0.025691093876957893, -0.023723401129245758, 0.011790292337536812, 0.0014727948000654578, 0.04646295681595802, 0.0018923181341961026, -0.004673271905630827, 0.021105099469423294, -0.05242950841784477, 0.0023485373239964247, -0.043511416763067245, -0.0014509755419567227, -0.012417097575962543, 0.008283354341983795, 0.027230339124798775, -0.0019438907038420439, -0.03827481344342232, -0.028420476242899895, -0.014710095711052418, 0.03817960247397423, 0.0018179345643147826, -0.00019662057457026094, 0.010711234994232655, -0.0034394965041428804, -0.004625666420906782, -0.03770354762673378, 0.006327562499791384, 0.007406620308756828, 0.02094641514122486, 0.026659073308110237, 0.015400375239551067, 0.0009188851108774543, 7.122227543732151e-05, 0.015217887237668037, -0.04189283028244972, -0.021184442564845085, -0.005795968230813742, -0.028261791914701462, 0.02664320357143879, 0.019835619255900383, -0.017058633267879486, 0.015987509861588478, -0.0042646583169698715, 0.06153802573680878, 0.007172560319304466, 0.017788583412766457, 0.005998291540890932, -0.020613176748156548, -0.03259389102458954, -0.037925705313682556, -0.009648045524954796, -0.058713436126708984, 0.011282500810921192, -0.0007656548987142742, 0.04138503596186638, -0.023406030610203743, -0.004478882998228073, -0.05366725102066994, -0.010520813055336475, 0.0013775838306173682, -0.009822598658502102, 0.030991172417998314, -0.0338633693754673, -0.014963991940021515, 0.03200675547122955, -0.0205973070114851, 0.009227530099451542, 0.013440615497529507, -0.019899094477295876, -0.015963707119226456, -0.01354376133531332, -0.049287546426057816, -0.0034811513032764196, -0.033450789749622345, 0.018708957359194756, 0.018835904076695442, 0.005256439093500376, -0.014075355604290962, -0.020343411713838577, 0.0061966474168002605, -0.0042051514610648155, -0.020930545404553413, -0.027595313265919685, 0.003177666338160634, 0.010639826767146587, 0.03313341736793518, 0.0025171402376145124, -0.022390447556972504, -0.04071855917572975, -0.00016091646102722734, 0.007958050817251205, -0.03268910199403763, -0.008616593666374683, -0.02902347967028618, 0.027976159006357193, -0.015765350311994553, 0.008029459044337273, -0.009687717072665691, 0.006926598493009806, 0.027611183002591133, -0.018534403294324875, 0.009346543811261654, 0.013797656632959843, -0.0029832771979272366, -0.023659927770495415, 0.02508809231221676, -0.02353297919034958, 0.01628107577562332, -0.008156406693160534, 0.020438622683286667, -0.04798633232712746, 0.015487652271986008, -0.02115270495414734, -0.00448681740090251, 0.0160271804779768, -0.03484721854329109, -0.038306549191474915, -0.0033918910194188356, 0.012329821474850178, 0.03430768847465515, 0.027753999456763268, 0.0022771290969103575, -0.01589229889214039, 0.006355332676321268, -0.013305733911693096, 0.0066131954081356525, 0.02269194833934307, 0.019518250599503517, 0.017264923080801964, -0.006954368203878403, -0.01294869277626276, 0.04747853800654411, 0.018343981355428696, 0.0146466214209795, -0.03275257349014282, 0.0011812112061306834, 0.029229769483208656, 0.008926029317080975, 0.012321886606514454, -0.008997437544167042, -0.02497701160609722, 0.01189343724399805, 0.023025186732411385, -0.00028116992325522006, -0.011591936461627483, 0.004098039120435715, -0.015765350311994553, -0.015209953300654888, -0.00860865879803896, 0.03722749277949333, -0.0019171126186847687, 0.060617655515670776, 0.007973918691277504, -0.017534688115119934, -0.006986105348914862, -0.03357773646712303, -0.01748708263039589, -0.013210522942245007, 0.0067917159758508205, -0.014757701195776463, -0.009751190431416035, -0.02050209604203701, -0.015075070783495903, -0.010806445963680744, 0.005716625601053238, 0.010639826767146587, -0.037386175245046616, -0.008592790924012661, 0.026849495247006416, -0.016328681260347366, 0.03194328024983406, 0.023041056469082832, -0.001127655035816133, 0.006153009366244078, -0.034466374665498734, 0.04246409609913826, 0.00524057075381279, -0.026468651369214058, -0.01637628674507141, 0.015368638560175896, -0.0035029705613851547, 0.021628759801387787, -0.0014489920577034354, -0.006279957015067339, 0.013353339396417141, -0.009045043028891087, -0.046272534877061844, -0.02353297919034958, -0.049573179334402084, 0.009497295133769512, -0.0036814911291003227, -0.00044679734855890274, -0.025421330705285072, -0.0020311675034463406, -0.006779814604669809, 0.0066766696982085705, -0.01542417798191309, -0.020343411713838577, -0.024183588102459908, -0.038116127252578735, -0.017185581848025322, 0.024865932762622833, -0.0037707514129579067, 0.010973065160214901, 0.03862391784787178, -0.014416528865695, -0.04100419208407402, -0.004105973057448864, 0.008965699933469296, -0.00028216169448569417, 0.023723401129245758, -0.020724255591630936, 0.0676632672548294, -0.020010173320770264, 0.005617447663098574, -0.014345120638608932, -0.021533548831939697, 0.029626481235027313, 0.05023965612053871, -0.02508809231221676, 0.005716625601053238, -0.016185864806175232, -0.013845262117683887, -0.014813240617513657, -0.0022017539013177156, -0.028975874185562134, 0.004665337968617678, 0.027706393972039223, -0.019327828660607338, -0.0009674823377281427, -0.006839321460574865, -0.02591325342655182, -0.0012040220899507403, 0.014115027152001858, 0.006351365242153406, -0.004201184492558241, -0.018074216321110725, -0.02370753325521946, 0.04097245633602142, -0.02535785548388958, -0.007997721433639526, -0.014202304184436798, -0.00716462591663003, 0.011829963885247707, 0.0539846234023571, 0.02042275480926037, -0.008156406693160534, 0.006160943303257227, -0.025976726785302162, -0.010235180146992207, 0.016773000359535217, -0.029324980452656746, 0.022469790652394295, -0.0023802744690328836, 0.011544330976903439, 0.008616593666374683, 0.009624242782592773, 0.010076494887471199, -0.025024617090821266, -0.011377711780369282, -0.03256215155124664, -0.021946130320429802, -0.03319689258933067, 0.009624242782592773, -3.514624040690251e-05, 0.0023882086388766766, -0.02242218516767025, -0.015305164270102978, -0.021374864503741264, -0.030895961448550224, -0.0393538698554039, 0.013615169562399387, 0.0016195783391594887, -0.024913538247346878, -0.03038816899061203, -0.03643406555056572, 0.016709525138139725, 0.04217846319079399, -0.020629044622182846, 0.00021534044935833663, -0.027262074872851372, -0.014083290472626686, -0.01176648959517479], "id": 63}, {"title": "Athletics at the 2004 Summer Olympics \u2013 Women's heptathlon", "text": "The women's heptathlon competition at the 2004 Summer Olympics in Athens was held at the Olympic Stadium on 20\u201321 August.", "vector": [-0.009629865176975727, -0.027945220470428467, -0.013117847964167595, 0.03463166952133179, -0.06854644417762756, -0.0287034772336483, 0.010126179084181786, 0.008196069858968258, 0.05266440287232399, -0.002536714542657137, -0.042958710342645645, -0.04946593567728996, -0.028731049969792366, -0.002669409615918994, -0.01298687607049942, 0.004625368397682905, -0.017233114689588547, 0.019466526806354523, -0.030109699815511703, -0.01341425720602274, 0.00825121533125639, 0.0427105538547039, -0.014255233108997345, 0.014310379512608051, -0.01493077166378498, -0.017508845776319504, 0.005349159240722656, -0.024057429283857346, 0.023974711075425148, 0.008168497122824192, 0.01832224801182747, 0.015109995380043983, 0.01909429207444191, -0.014475816860795021, -0.03645148500800133, 0.01275939866900444, 0.008416653610765934, 0.017260689288377762, -0.02837260067462921, -0.0011210141237825155, -0.0033294379245489836, 0.06810527294874191, -0.007582570891827345, 0.07207578420639038, -0.003787838853895664, -0.015675241127610207, 0.003377690678462386, -0.003022688440978527, -0.033280592411756516, -0.011663372628390789, -0.02630462683737278, 0.013889891095459461, -0.005518043413758278, -0.018225742504000664, 0.013117847964167595, -0.05150633677840233, 0.043096575886011124, 0.07505366206169128, 0.02287179045379162, -0.0021610327530652285, -0.014475816860795021, 0.022940723225474358, -0.018666910007596016, -0.0016397309955209494, -0.010188218206167221, -0.03286699950695038, 0.02434694580733776, 0.1148139089345932, 0.017715642228722572, 0.044061630964279175, 0.003932597115635872, -0.007775581907480955, -0.0301924180239439, -0.018735842779278755, -0.017191756516695023, -0.058013562113046646, 0.014434457756578922, -0.027628131210803986, -0.046984367072582245, 0.01675058901309967, -0.013586588203907013, -0.06314213573932648, -0.022099748253822327, 0.026538997888565063, 0.022499555721879005, 0.008520052768290043, 0.005452557932585478, -0.0714140310883522, -0.04524726793169975, 0.00589372543618083, -0.010863755829632282, 0.01314542070031166, -0.02052808739244938, 0.0017233116086572409, -0.03650663048028946, 0.02285800501704216, -0.0024643356446176767, 0.02077624388039112, -0.016585150733590126, -0.030826596543192863, -0.019177010282874107, -0.009188697673380375, 0.007996165193617344, -0.015385725535452366, 0.04326201230287552, 0.04910748451948166, 0.03669964149594307, 0.026842301711440086, -0.005904065445065498, -0.017329620197415352, -0.010188218206167221, -0.005804113112390041, 0.004339298699051142, -0.019190797582268715, -0.03402506187558174, 0.002650453243404627, -0.05928191915154457, -0.026332201436161995, -0.020624592900276184, 0.03929150477051735, 0.0118563836440444, -0.0006074673146940768, 0.02709045819938183, 0.022899363189935684, 0.023657621815800667, 0.00893364753574133, 0.0015690751606598496, 0.03576216101646423, -0.018556619063019753, -0.01442067138850689, 0.001850836561061442, 0.020541874691843987, -0.0015130675164982677, 0.010567346587777138, 0.0009056002018041909, 0.0012020098511129618, -0.030936889350414276, -0.026925019919872284, 0.022223826497793198, -0.008416653610765934, -0.0067381481640040874, 0.009002579376101494, -0.019714685156941414, -0.014186300337314606, -0.05462208390235901, -0.008106458000838757, 0.025105202570557594, -0.01302134245634079, -0.012283764779567719, -0.027366187423467636, -0.013786492869257927, -0.018542831763625145, -0.031653787940740585, -0.016157768666744232, -0.009636757895350456, 0.038547031581401825, 0.01668165624141693, -0.030026979744434357, -0.005797219928354025, 0.03813343867659569, -0.016061263158917427, -0.02487083151936531, -0.01818438433110714, 0.0013777875574305654, 0.001295930240303278, -0.0001702847221167758, -0.0039808498695492744, 0.028400175273418427, -0.007754901889711618, -0.0015845849411562085, -0.016585150733590126, -0.04974166303873062, -0.003267398802563548, 0.0062900870107114315, -0.053739748895168304, 0.04149734228849411, 0.027504052966833115, 0.054070621728897095, 0.01158754713833332, -0.015468444675207138, -0.006062610074877739, 0.019563032314181328, 0.0014406885020434856, -0.00423590000718832, -0.051919929683208466, 0.025408506393432617, 0.0014915261417627335, -0.020693525671958923, -0.002505694981664419, 0.037830136716365814, 0.038216158747673035, -0.0032846317626535892, 0.07279267907142639, 0.03948451578617096, -0.054401498287916183, -0.027697063982486725, 0.004197986796498299, -0.03170893341302872, 0.0016819520387798548, 0.010787930339574814, -0.005628335755318403, -0.026856087148189545, -0.041993655264377594, 0.00909219216555357, -0.03170893341302872, -0.004263472743332386, 0.044392507523298264, -0.03427322208881378, 0.018404968082904816, 0.015578736551105976, 0.023588689044117928, 0.05327100679278374, 0.0027538519352674484, -0.007996165193617344, -0.004411677364259958, 0.04781155660748482, 0.043537743389606476, 0.023133734241127968, -0.039070919156074524, 0.009850448928773403, -0.03129533678293228, -0.008719956502318382, -0.016461072489619255, 0.06496195495128632, 0.007623930461704731, 0.012166579253971577, -0.003818858414888382, -0.015275433659553528, 0.002186882309615612, 0.0257255956530571, -0.011105019599199295, -0.04058743268251419, -0.01778457500040531, 0.003763712476938963, 0.05280226469039917, 0.05156148225069046, 0.01622670143842697, 0.004194540437310934, 0.05277469381690025, -0.011442788876593113, -0.04927292466163635, 0.003960169851779938, -0.022513343021273613, -0.05528383329510689, -0.05194750428199768, 0.0035534685011953115, 0.009050832130014896, 0.020610805600881577, -0.021658578887581825, 0.03576216101646423, 0.029889116063714027, 0.002171372529119253, -0.022678779438138008, 0.02936522848904133, 0.06021939963102341, 0.004942457657307386, 0.04604688659310341, -0.0523335263133049, -0.028951633721590042, -0.003908470738679171, -0.03876761719584465, 0.03416292741894722, 0.024953551590442657, -0.006510671228170395, 0.0038981307297945023, 0.05305042117834091, -0.01792244054377079, 0.012656000442802906, -0.029833970591425896, -0.03209495544433594, -0.03612060844898224, 0.0030261350329965353, 0.006090183276683092, 0.0024419324472546577, 0.046791356056928635, 0.021920522674918175, 0.02525685355067253, -0.018074091523885727, -0.011208418756723404, -0.018818562850356102, -0.035817306488752365, -0.0017388213891535997, 0.035955172032117844, -0.03377690538764, 0.024636462330818176, -0.002540161134675145, 0.01695738546550274, -0.00843733362853527, 0.03551400452852249, 0.02507762983441353, 0.02442966401576996, -0.0012347527081146836, -0.05136847123503685, 0.023037228733301163, 0.00925073679536581, 0.030440574511885643, -0.038161009550094604, 0.01143589522689581, 0.014806692488491535, -0.05878560245037079, -0.02837260067462921, 0.05015525966882706, -0.016847094520926476, -0.010450161062180996, -0.056276462972164154, -0.050954874604940414, 0.012738718651235104, -0.021796444430947304, -0.04623989388346672, 0.020569447427988052, 0.015082422643899918, 0.020624592900276184, 0.008003058843314648, 0.02077624388039112, 0.016612723469734192, 0.005090662278234959, 0.002112779999151826, 0.04188336431980133, -0.019121864810585976, 0.0036086144391447306, -0.009085298515856266, 0.04896962270140648, -0.009912488050758839, 0.050872158259153366, -0.007203442510217428, -0.012421629391610622, 0.001780180842615664, -0.05346401780843735, 0.0025746275205165148, -0.023023443296551704, -0.010470841079950333, -0.04855602607131004, -0.04221424087882042, 0.017384767532348633, -0.0011735751759260893, -0.05572500079870224, -0.03181922435760498, -0.024112574756145477, 0.04422706738114357, 0.0010787930805236101, -0.021865377202630043, 0.018349820747971535, 0.010787930339574814, 0.05817899852991104, 0.016268061473965645, 0.033032435923814774, 0.03686508163809776, 0.011111913248896599, 0.020169638097286224, 0.07428161799907684, 0.00045280010090209544, 0.0560007318854332, 0.03190194442868233, 0.055366553366184235, 0.010953368619084358, 0.013131634332239628, -0.04400648549199104, -0.05657976493239403, 0.039705097675323486, -0.06876702606678009, 0.04210394620895386, 0.009140444919466972, -0.004949350841343403, -0.026414919644594193, -0.044833675026893616, -0.012325123883783817, 0.03642391413450241, 0.009691904298961163, -0.020376436412334442, 0.00025052641285583377, -0.01760535128414631, 0.010043459944427013, -0.018101664260029793, -0.02098304219543934, -0.020224783569574356, -0.009126657620072365, -0.016847094520926476, -0.0348246805369854, -0.0039808498695492744, -0.0090577257797122, 0.004590902011841536, 0.04817000404000282, -0.012483668513596058, 0.06556855887174606, 0.010905115865170956, 0.05707607790827751, 0.09518194198608398, -0.05271954834461212, -0.020555660128593445, -0.017508845776319504, 0.002026614500209689, 0.003729246323928237, -0.052443817257881165, -0.0045288628898561, -0.02033507637679577, -0.024774327874183655, 0.036782361567020416, 0.057517245411872864, -0.013703773729503155, -0.011849489994347095, -0.009933168068528175, -0.036341194063425064, -0.03460409492254257, -0.05065157264471054, 0.00577998673543334, 0.010553560219705105, -0.002169649349525571, 0.04345502331852913, -0.02117605321109295, 0.033418457955121994, -0.039319075644016266, 0.05467722937464714, -0.034962546080350876, -0.03752683103084564, -0.010484627448022366, 0.0025125881657004356, 0.01895642653107643, 0.017246901988983154, -0.009367921389639378, -0.033804479986429214, -0.03294971585273743, 0.04086316376924515, -0.031929515302181244, -0.016309421509504318, -0.00010011363337980583, 0.007651503197848797, -0.08906073868274689, -0.02369897998869419, -0.03416292741894722, 0.02442966401576996, -0.04298628494143486, -0.05271954834461212, 0.013814065605401993, 0.008292575366795063, 0.03259126842021942, -0.00767907639965415, -0.0327291339635849, 0.019204584881663322, 0.011615119874477386, 0.011987355537712574, -0.04058743268251419, 0.01155997347086668, -0.01497213076800108, 0.010532880201935768, -0.018280889838933945, 0.0031174705363810062, 0.011725411750376225, 0.0062349410727620125, 0.009202484041452408, 0.02163100615143776, -0.030468149110674858, 0.0351831279695034, -0.008561411872506142, 0.024691607803106308, 0.020817603915929794, 0.020210998132824898, 0.006303873844444752, -0.002186882309615612, -0.038409169763326645, -0.0307163055986166, 0.029310083016753197, 0.014186300337314606, 0.024788113310933113, -0.03135048225522041, 0.004011869430541992, -0.009974527172744274, -0.01136006973683834, -0.0030898975674062967, -0.003045091638341546, -0.0003642649680841714, -0.03311515599489212, -0.012201045639812946, -0.07025596499443054, -0.025560157373547554, -0.03545885905623436, 0.050237979739904404, -0.003262228798121214, -0.01883234828710556, 0.010208897292613983, 0.0033242679201066494, 0.021672366186976433, 0.053215861320495605, 0.04615717753767967, -0.01988012157380581, 0.009326562285423279, -0.01669544167816639, 0.0175915639847517, -0.062314946204423904, -0.029199790209531784, 0.004266919568181038, 0.005414644721895456, -0.005966104567050934, 0.08597256988286972, 0.00883024837821722, 0.010215790942311287, 0.047701265662908554, 0.0029003333766013384, -0.017315834760665894, -0.00414284085854888, 0.013758919201791286, 0.03838159516453743, 0.011718519032001495, -0.008009952493011951, 0.06485166400671005, 0.03228796645998955, -0.00042738128104247153, 0.03253612294793129, 0.04761854559183121, 0.06430020183324814, 0.014958344399929047, 0.09716720134019852, 0.03374933451414108, -0.038271304219961166, 0.0053284792229533195, 0.024264227598905563, -0.003560361685231328, 0.0025797972921282053, 0.001759501057676971, 0.012394056655466557, 0.008713062852621078, 0.02143799513578415, -0.03487982600927353, -0.04111132025718689, 0.03432836756110191, -0.004566775634884834, 0.019177010282874107, -0.03838159516453743, -0.007582570891827345, 0.00090904685202986, 0.010436374694108963, 0.05021040514111519, 0.0066140699200332165, -0.018735842779278755, -0.024112574756145477, -0.006658875849097967, -0.023023443296551704, -0.018473898991942406, 0.010856863111257553, -0.01042258832603693, 0.02376791276037693, -0.023919563740491867, 0.02298208326101303, -0.022499555721879005, 0.009940060786902905, -0.014269019477069378, -0.005997124128043652, 0.006503778044134378, 0.003667206969112158, -0.01442067138850689, 0.015440871939063072, 0.006538243964314461, -0.002416082890704274, -0.03408021107316017, 0.032122526317834854, -0.016116410493850708, -0.013648627325892448, 0.016268061473965645, 0.01617155596613884, 0.007947913371026516, -0.004439250566065311, 0.014641255140304565, 0.003712013131007552, 0.02163100615143776, -0.02357490174472332, 0.0035362353082746267, -0.029640959575772285, 0.013524549081921577, 0.07896903157234192, -0.015964757651090622, 0.01851525902748108, 0.01104298047721386, 0.007637716829776764, 0.023671407252550125, -0.010767250321805477, -0.024691607803106308, -0.018363608047366142, -0.011470361612737179, -0.02831745520234108, -0.013972610235214233, 0.01275939866900444, 0.035955172032117844, -0.0003345378499943763, 0.025546370074152946, -0.021341489627957344, 0.012649106793105602, 0.01818438433110714, 0.008878501132130623, -0.0015285772969946265, -0.06430020183324814, 0.008009952493011951, -0.011759878136217594, -0.029172217473387718, 0.016212916001677513, -0.013827851973474026, 0.019824976101517677, 0.01837739534676075, -0.043289586901664734, -0.0013484912924468517, -0.027834927663207054, 0.034466229379177094, 0.030964462086558342, 0.05663491040468216, -0.023395678028464317, -0.010077926330268383, 0.0059557645581662655, 0.01493077166378498, -0.021065760403871536, 0.020693525671958923, -0.031846798956394196, 0.03283942490816116, 0.028758622705936432, -0.005204400978982449, 0.008740636520087719, -0.0034793659579008818, -0.009374815039336681, 0.0593370646238327, 0.0005208709044381976, 0.018597979098558426, 0.05098244920372963, -0.00745159899815917, 0.02143799513578415, 0.01988012157380581, -0.004129054490476847, 0.0018594531575217843, 0.04486124590039253, 0.026842301711440086, -0.01832224801182747, -0.013042021542787552, 0.003205359447747469, -0.004590902011841536, 0.004011869430541992, -0.012028714641928673, -0.02936522848904133, 0.0008883671252988279, -0.001980084925889969, 0.028675904497504234, 0.031267765909433365, -0.03281185030937195, 0.03372175991535187, 0.01035365555435419, -0.008127137087285519, 0.0068346536718308926, -0.00843733362853527, 0.024250440299510956, -0.007610143627971411, -0.03333573788404465, 0.0002776685869321227, 0.044116776436567307, -0.01657136343419552, -0.024126362055540085, 0.0011718518799170852, -0.01528922002762556, 0.03998082876205444, 0.010146858170628548, 0.022251399233937263, -0.004587455186992884, -0.03306001052260399, -0.01688845269382, -0.011939102783799171, -0.013552121818065643, -0.05103759467601776, -0.0030554314143955708, 0.012028714641928673, 0.03314272686839104, 0.015178928151726723, -0.0002248921518912539, 0.004094588104635477, -0.028400175273418427, 0.007065577432513237, -0.0038326450157910585, 0.014269019477069378, -0.04395133629441261, 0.0009099085000343621, 0.015744173899292946, -0.02980639599263668, -0.014848052524030209, 0.0023816165048629045, 0.0112015251070261, -0.02565666288137436, -0.002946862718090415, -0.003594827838242054, -0.030936889350414276, -0.032508548349142075, -0.016847094520926476, -0.032508548349142075, 0.00782383419573307, 0.018804775550961494, 0.011373856104910374, 0.018225742504000664, -0.0343007929623127, 0.029199790209531784, 0.03394234552979469, 0.026318414136767387, 0.018225742504000664, -0.05994366854429245, 0.015440871939063072, 0.011242884211242199, -0.009905594401061535, -0.018349820747971535, -0.05236109718680382, -0.013531442731618881, 0.037251103669404984, 0.006348679773509502, -0.0006940637249499559, 0.042765699326992035, 5.923883509240113e-05, -0.006486544851213694, -0.04138705134391785, -0.019397594034671783, 0.031185045838356018, -0.019852548837661743, -0.012428523041307926, 0.01220793928951025, -0.010980941355228424, 0.05489781126379967, -0.025146562606096268, 0.020100705325603485, 0.01954924687743187, 0.027765996754169464, 0.008754422888159752, 0.02611161582171917, -0.007065577432513237, -0.03890548273921013, 0.013662413693964481, -0.03292214497923851, -0.030688732862472534, -0.040808018296957016, -0.0181154515594244, 0.003894684137776494, 0.0032398258335888386, 1.929301106429193e-05, 0.004518522880971432, 0.014034649357199669, -0.0011623736936599016, 0.029503094032406807, 0.0009805642766878009, -0.016405925154685974, 0.03259126842021942, -0.00886471476405859, 0.014765333384275436, 0.008733742870390415, -0.06727807968854904, 0.0004937287885695696, 0.007754901889711618, 0.013876104727387428, -0.01376581285148859, 0.02369897998869419, 0.036975372582674026, -0.009629865176975727, -0.07516396045684814, 0.007596357259899378, -0.03995325416326523, 0.034962546080350876, -0.018915068358182907, 0.011677158996462822, -0.004680514335632324, 0.025753168389201164, -0.013510762713849545, -0.033859625458717346, -0.004756339825689793, -0.010112391784787178, 0.00925762951374054, -0.016667868942022324, -0.019245943054556847, 0.01746748574078083, -0.009423067793250084, -0.0010262320283800364, -0.003763712476938963, 0.014055329374969006, 0.011815023608505726, -0.00825121533125639, -0.01954924687743187, 0.013331538066267967, 0.009002579376101494, -0.011828810907900333, -0.0027762548997998238, -0.011925316415727139, -0.019893908873200417, -0.020555660128593445, 0.018018946051597595, 0.0005910958861932158, -0.024760540574789047, -0.014985917136073112, -0.029392801225185394, -0.05999881401658058, -0.03181922435760498, 0.006231494713574648, -0.017481273040175438, -0.03612060844898224, 0.001985254930332303, 0.007430919446051121, -0.008451119996607304, 0.017095251008868217, 0.01786729507148266, -0.04014626517891884, -0.016998745501041412, 0.048142433166503906, 0.015675241127610207, 0.060109108686447144, 0.010608705691993237, 0.018349820747971535, 0.023326745256781578, 0.0161026231944561, -0.017743214964866638, 0.0034948757383972406, -0.016350779682397842, -0.045357558876276016, -0.056910641491413116, -0.02649763785302639, 0.014448244124650955, -0.00903015211224556, -0.030550867319107056, 0.006962178740650415, 0.014096688479185104, -0.007203442510217428, 0.031157473102211952, -0.023202667012810707, -0.038023147732019424, 0.017246901988983154, -0.008402867242693901, 0.01093958131968975, -0.011801237240433693, -0.0036741001531481743, 0.017122823745012283, -0.01552359014749527, 0.042434822767972946, 0.012869690544903278, -0.009168017655611038, -0.02955823950469494, -0.010560452938079834, 0.01428280584514141, -0.0070138778537511826, -0.010450161062180996, -0.033087581396102905, 0.03234311193227768, 0.029916688799858093, -0.038740042597055435, -0.015316792763769627, 0.00948510691523552, 0.017329620197415352, 0.007368880324065685, 0.021065760403871536, -0.01000209990888834, 0.011994248256087303, 0.0174123402684927, -0.003076111199334264, -0.009850448928773403, -0.021217411383986473, -0.013648627325892448, 0.03940179571509361, 0.09038424491882324, 0.018556619063019753, 0.018983999267220497, -0.011883956380188465, -0.006962178740650415, 0.011939102783799171, -0.03294971585273743, -0.010215790942311287, -0.011456575244665146, 0.010787930339574814, -0.023326745256781578, -0.010519093833863735, 0.0307163055986166, -0.02942037582397461, 0.02864833176136017, 0.005452557932585478, 0.03245340287685394, -0.012669786810874939, 0.0026022004894912243, -0.012021820992231369, -0.015109995380043983, 0.02287179045379162, 0.018611764535307884, -0.01778457500040531, -0.007989272475242615, 0.003953276667743921, -0.014269019477069378, 0.005738627631217241, 0.017688069492578506, 0.0039222571067512035, -0.004011869430541992, 0.026318414136767387, -0.057241518050432205, 0.03636876866221428, 0.003041644813492894, 0.02999940700829029, -0.008147817105054855, 0.0016095730243250728, -0.0509273037314415, 0.031984660774469376, 0.007692862767726183, -0.006159115582704544, 0.04703951254487038, 0.012835224159061909, -0.013683093711733818, 0.0009564378997310996, -0.011690945364534855, 0.023547329008579254, 0.017632924020290375, -0.010967154987156391, 0.021837804466485977, -0.010856863111257553, -0.010870649479329586, -0.022265184670686722, 0.021644793450832367, -0.03909849375486374, -0.00730684120208025, 0.035238273441791534, -0.050237979739904404, 0.0126008540391922, -0.022954510524868965, -0.03862975165247917, 0.006545137148350477, -0.016350779682397842, 0.03187436982989311, -0.00600746413692832, 0.02142420969903469, -0.003877450944855809, -0.01825331524014473, 0.027628131210803986, -0.027131816372275352, -0.010057246312499046, -0.012476775795221329, -0.02376791276037693, -0.03424564749002457, -0.054125770926475525, -0.03253612294793129, -0.01007103268057108, -0.009533359669148922, 0.012704253196716309, 0.0007280991412699223, 0.034659240394830704, 0.056138597428798676, -0.008781995624303818, 0.026925019919872284, -0.0027211089618504047, -0.04615717753767967, 0.05241624265909195, -0.020927894860506058, 0.04072529822587967, 0.03771984204649925, -0.029144644737243652, 0.02266499400138855, -0.0054284315556287766, -0.022223826497793198, -0.006017804145812988, -0.021672366186976433, -0.0018146471120417118, 0.029723677784204483, -0.01617155596613884, 0.07279267907142639, 0.018156809732317924, -0.01139453612267971, -0.013827851973474026, 0.05288498476147652, -0.02363004721701145, -0.0027693617157638073, -0.004018762614578009, -0.0070586842484772205, -0.010208897292613983, -0.007775581907480955, 0.006982858292758465, -0.01282833144068718, 0.015826893970370293, -0.04825272411108017, 0.02604268491268158, 0.025298213586211205, -0.023464610800147057, -0.015895826742053032, -0.006827760487794876, 0.004925224464386702, -0.05131332576274872, 0.045109402388334274, 0.015882039442658424, -0.022430622950196266, 0.013627948239445686, 0.018294675275683403, 0.012028714641928673, 0.007134509738534689, 0.006048823706805706, -0.0035465750843286514, 0.03052329458296299, 0.038409169763326645, -0.013627948239445686, -0.026538997888565063, -0.009926274418830872, -0.05117546021938324, 0.014269019477069378, 0.010098605416715145, 0.0035672548692673445, 0.021520715206861496, -0.03890548273921013, 0.019204584881663322, -0.009312775917351246, -0.02947552129626274, -0.029117072001099586, 0.01967332512140274, -0.014875625260174274, 0.015151355415582657, -0.0034965991508215666, -0.003093344159424305, 0.012290658429265022, 0.0026607930194586515, 0.025298213586211205, -0.04067015275359154, 0.05696578696370125, -0.020569447427988052, 0.04604688659310341, 0.0264287069439888, 0.01337979082018137, 0.007361987140029669, 0.003701673122122884, 0.0009883191669359803, 0.03920878469944, 0.03871247172355652, 0.03176407888531685, -0.029172217473387718, 0.017757002264261246, 0.007727329153567553, 0.005752413999289274, -0.017881080508232117, 0.014393097721040249, 0.020183425396680832, 0.006241834256798029, -0.014020862989127636, 0.016971172764897346, 0.011615119874477386, 0.00023329330724664032, 0.030082127079367638, -0.015027277171611786, 0.005111342296004295, -0.0020386776886880398, 0.019852548837661743, -0.04885932803153992, -0.024512384086847305, 0.023933351039886475, -0.0024695054162293673, 0.05713122338056564, -0.02117605321109295, 0.03962237760424614, -0.010932688601315022, -0.010167538188397884, -0.004487503319978714, -0.024002283811569214, -0.004956244025379419, -0.033804479986429214, 0.0008383910753764212, -0.0058316863141953945, -0.023685194551944733, 0.03612060844898224, -0.017053890973329544, -0.010794823989272118, -0.01298687607049942, -0.006307320203632116, 0.004222113173455, 0.009953847154974937, 0.011987355537712574, -0.019563032314181328, -0.011346283368766308, 0.04695679247379303, 0.0013062701327726245, -0.01337979082018137, -0.024043641984462738, -0.015234074555337429, -0.012876584194600582, -0.01509620901197195, 0.006827760487794876, -0.01026404369622469, -0.020803816616535187, 0.012731825932860374, 0.003320821328088641, -0.006286640651524067, 0.01555116381496191, 0.004907991271466017, -0.0029347995296120644, 0.03625847399234772, -0.0076859695836901665, 0.03038542903959751, -0.0023626601323485374, -0.037499260157346725, 0.0024574422277510166, -0.009298989549279213, -0.030357856303453445, 0.04993467405438423, -0.01016064453870058, 0.016474857926368713, 0.025863459333777428, -0.03410778194665909, 0.031074754893779755, 0.01528922002762556, -0.011911529116332531, -0.028786195442080498, 0.0264287069439888, 0.018983999267220497, -0.006658875849097967, -0.004556435626000166, -0.030799023807048798, -0.00867170374840498, 0.011808130890130997, 0.04709465801715851, 0.006383146159350872, -0.0413043312728405, -0.00987112894654274, 0.01007103268057108, 0.03499011695384979, -0.023023443296551704, 0.0030261350329965353, 0.016971172764897346, -0.0015837233513593674, -0.01909429207444191, 0.030440574511885643, 0.03176407888531685, -0.010408801957964897, 0.032232820987701416, 0.0166265107691288, -0.008299468085169792, -0.03876761719584465, 0.016998745501041412, 0.0017302047926932573, -0.05611102283000946, -0.016585150733590126, -0.016392139717936516, -0.013166100718080997, -0.004918331280350685, 0.0341353565454483, 0.007334413938224316, -0.044392507523298264, 0.022320332005620003, 3.7697441257478204e-06, -0.011573760770261288, -0.0025349913630634546, -0.017495058476924896, -0.016902239993214607, 0.0030313050374388695, -0.015440871939063072, 0.008947433903813362, 0.00568003486841917, 0.004876971710473299, 0.00021336751524358988, -0.03085416927933693, 0.02994426153600216, 0.022775284945964813, -0.012780078686773777, -0.01182191725820303, 0.03818858414888382, -0.022058388218283653, 0.043675608932971954, 0.0231888797134161, 0.00883024837821722, 0.025284426286816597, 0.0006359019898809493, -0.008582091890275478, -0.012421629391610622, -0.03157106786966324, 0.0196871105581522, 0.0014915261417627335, 0.016833307221531868, 0.005628335755318403, 0.015537377446889877, -0.018294675275683403, 0.009202484041452408, 0.013683093711733818, 0.00987112894654274, 0.00812024436891079, -0.020665952935814857, -0.015054849907755852, 0.021479355171322823, -0.03918121010065079, 0.007175869308412075, 0.04193850979208946, 0.006800187285989523, -0.010291616432368755, 0.017246901988983154, 0.006648535840213299, -0.006024697329849005, 0.022030815482139587, -0.016667868942022324, 0.021768871694803238, -0.0011055043432861567, 0.002965819090604782, -0.007048344239592552, 0.00016996159683912992, -0.0019042593194171786, 0.022499555721879005, 0.03774741664528847, 0.03493497148156166, 0.022265184670686722, -0.009519573301076889, 0.004442697390913963, 0.011291136965155602, -0.001296791946515441, 0.0042600263841450214, -0.02558773010969162, -0.009505786933004856, 0.0397326722741127, -0.035624295473098755, -0.024443451315164566, 0.008306361734867096, 0.00843733362853527, 0.012731825932860374, 0.04265540838241577, 0.004525416065007448, 0.01694360002875328, -0.009884915314614773, 0.005101002287119627, -0.022747712209820747, -0.003176063299179077, 0.04905233904719353, -0.01022268459200859, -0.015316792763769627, 0.003045091638341546, -0.01974225789308548, 0.0031588301062583923, 0.010656958445906639, 0.00957471877336502, -0.005890279076993465, 0.008685490116477013, -0.021065760403871536, 0.024195294827222824, 0.006248727906495333, -0.024181507527828217, -0.031019607558846474, -0.0023213005624711514, -0.01806030422449112, -0.011415216140449047, 0.003956723492592573, 0.0216172207146883, 0.01322124619036913, -0.015109995380043983, 0.013110954314470291, 0.018363608047366142, 0.014627468772232533, -0.03410778194665909, -0.012924836948513985, 0.021217411383986473, 0.0015820000553503633, -0.004577115643769503, 0.01093958131968975, 0.007065577432513237, 0.0032191460486501455, -0.013793385587632656, -0.006269407458603382, -0.01035365555435419, 0.027765996754169464, 0.007334413938224316, -0.010560452938079834, 0.02363004721701145, -0.022251399233937263, -0.03805071860551834, -0.011746091768145561, 0.019507886841893196, -0.002674579620361328, -0.04215909540653229, -0.019438954070210457, -0.0025091415736824274, 0.0026642396114766598, 0.0011425556149333715, -0.00801684521138668, -0.012649106793105602, 0.014007076621055603, -0.01213900651782751, -0.0062246015295386314, 0.008520052768290043, 0.0539051853120327, -0.023133734241127968, -0.013428043574094772, -0.023271599784493446, -0.026594143360853195, -0.017426125705242157, -0.011029194109141827, -0.01528922002762556, 0.017095251008868217, -0.011897742748260498, 0.002460888819769025, -0.0064589716494083405, 0.003691333346068859, -0.01146346889436245, 0.00046787908650003374, -0.025573942810297012, -0.01380027923732996, -0.01629563421010971, -0.017839720472693443, 0.0033621808979660273, -0.02656657062470913, -0.0013657243689522147, 0.027421332895755768, 0.021865377202630043, -0.018790990114212036, -0.021768871694803238, 0.003131257137283683, 0.010787930339574814, 0.02415393479168415, 0.027311041951179504, -0.014406885020434856, -0.005697268061339855, -0.008347720839083195, 0.03181922435760498, -0.01127045787870884, -0.025022484362125397, 0.02252712845802307, -0.04290356487035751, -0.006507224403321743, 0.009443746879696846, -0.007148296572268009, 0.010712104849517345, -0.017370980232954025, -0.0036947799380868673, 0.023340532556176186, -0.013621054589748383, 0.017302047461271286, -0.05657976493239403, -0.02474675327539444, -0.009464426897466183, 0.016805734485387802, -0.018267102539539337, 0.04122161120176315, -0.014875625260174274, -0.012897263281047344, -0.044254641979932785, -0.009733263403177261, 0.017439913004636765, -0.03645148500800133, -0.03752683103084564, 0.004353085067123175, 0.0022334118839353323, -0.004632261581718922, -0.0002496647648513317, 0.018722057342529297, -0.003095067571848631, -0.011497934348881245, 0.04759097099304199, 0.02130013145506382, -0.0034380066208541393, 0.018983999267220497, -0.018391180783510208, -0.012683573178946972, -0.005042409524321556, -0.031846798956394196, 0.00840975996106863, -0.022044600918889046, -0.04105617478489876, -0.0066071767359972, -0.00014572753570973873, 0.013069595210254192, 0.012745612300932407, 0.0015432254876941442, 0.004677067510783672, -0.012276871129870415, -0.05456693843007088, 0.022913150489330292, -0.03206738084554672, 0.019507886841893196, 0.0064451852813363075, 0.017095251008868217, -0.01629563421010971, 0.009161124005913734, -0.014792906120419502, -0.0006996644660830498, 0.005645568482577801, 0.03824372962117195, -0.017881080508232117, -0.01253192126750946, -0.006448631640523672, -0.033087581396102905, -0.008630344644188881, 0.04135947674512863, 0.02287179045379162, -0.021079547703266144, -0.01000209990888834, 0.030440574511885643, -0.0011658202856779099, 0.0020645272452384233, 0.011918422766029835, 0.007968592457473278, -0.008299468085169792, -0.006831206846982241, 0.0012494008988142014, 0.04193850979208946, 0.029199790209531784, 0.04011869430541992, 0.02662171609699726, -0.009636757895350456, -0.014985917136073112, 0.017646709457039833, 0.006431398913264275, -0.009774623438715935, -0.013297071680426598, 0.012573281303048134, 0.0218791626393795, 0.006469311658293009, -0.03774741664528847, -0.018942641094326973, -0.026980165392160416, -0.013524549081921577, -0.00237127672880888, -0.004239346366375685, -0.0026090936735272408, -0.01851525902748108, 0.04248996824026108, 0.01000209990888834, 0.019066719338297844, 0.019728470593690872, 0.008775102905929089, 0.02163100615143776, 0.010905115865170956, -0.014792906120419502, 0.0378025621175766, -0.006693342234939337, 0.022968295961618423, -0.0043806578032672405, -0.02487083151936531, 0.011139485985040665, 0.009788409806787968, 0.002228241879492998, -0.0036947799380868673, 0.018101664260029793, 0.001983531517907977, 0.007623930461704731, -0.011525508016347885, 0.04574358090758324, -0.0018284335965290666, 0.003856771159917116, 0.015413298271596432, -0.022292757406830788, -0.006045376881957054, 0.02655278518795967, 0.01668165624141693, 0.03661692515015602, -0.02864833176136017, -0.010705211199820042, -0.021148478612303734, 0.03209495544433594, -0.0003541405312716961, 0.012221725657582283, 0.006355572957545519, -0.021961882710456848, -0.011684052646160126, 0.003722352907061577, -0.00348281254991889, -0.0343007929623127, 0.033611468970775604, 0.010098605416715145, -0.011029194109141827, 0.04378589987754822, 0.01688845269382, -0.012132113799452782, -0.03372175991535187, -0.017260689288377762, -0.03940179571509361, -0.03592760115861893, -0.006703681778162718, -0.012318231165409088, 0.018749630078673363, -0.04648805409669876, -0.01104298047721386, -0.009230056777596474, 0.0036258476320654154, 0.002521204762160778, 0.013469402678310871, 0.013083381578326225, -0.029640959575772285, -0.037251103669404984, 0.00493556447327137, -0.021217411383986473, -0.01078103668987751, 0.04317929595708847, -0.04124918580055237, -0.006138435564935207, 0.038877908140420914, 0.023216452449560165, -0.005728287622332573, -0.0008694106945767999, -0.01986633613705635, -0.00745159899815917, 0.03369418904185295, -0.03157106786966324, -0.0034810893703252077, -0.0042600263841450214, 0.02423665300011635, 0.004646047949790955, -0.020031774416565895, -0.02936522848904133, -0.020431581884622574, -0.006565817166119814, 0.006769167724996805, -0.0006811388884671032, -0.016309421509504318, -0.012538814917206764, -0.012917943298816681, 0.049190204590559006, 0.011794344522058964, -0.026208121329545975, 0.0003905454941559583, 0.03545885905623436, -0.026208121329545975, 0.014751547016203403, 0.014269019477069378, 0.02558773010969162, 0.026401132345199585, 0.008947433903813362, 0.00392915029078722, -0.05357430875301361, 0.009112871252000332, 0.01299376878887415, -0.011118805967271328, 0.011711625382304192, 0.007610143627971411, -0.008526945486664772, 0.0022540914360433817, -0.0018112004036083817, 0.0504034161567688, 0.012304444797337055, -0.019563032314181328, 0.03507283702492714, 0.05735180899500847, 0.010636279359459877, -0.0029606493189930916, 0.020238570868968964, -0.005369838792830706, 0.02422286756336689, 0.014103582128882408, -0.030964462086558342, 0.01974225789308548, -0.02135527692735195, 0.02884134277701378, -0.01078103668987751, -0.008699276484549046, 0.01766049675643444, -0.004484056495130062, -0.0051630414091050625, -0.03013727255165577, -0.018294675275683403, -0.02709045819938183, -0.006338339764624834, -0.023740340024232864, -0.004318618681281805], "id": 64}, {"title": "Governor General's Award for French-language poetry", "text": "This is a list of recipients of the Governor General's Award for French-language poetry. The award was created in 1981 when the Governor General's Award for French language poetry or drama was divided.", "vector": [0.011040100827813148, -0.0014217814896255732, -0.018122799694538116, 0.014702661894261837, -0.006384912878274918, -0.0030761584639549255, -0.0032432342413812876, 0.006794412154704332, 0.006807515863329172, 0.026050705462694168, -0.022460216656327248, -0.016642050817608833, -0.0016920510679483414, -0.014178503304719925, 0.015410277061164379, -0.013018800877034664, 0.013536408543586731, -0.006800964009016752, -0.03168541565537453, 0.004730535671114922, -0.012494642287492752, -0.001723172958008945, 0.03121367283165455, -0.00821619387716055, 0.04714810848236084, 0.006715788040310144, -0.02601139433681965, -0.01805727928876877, 0.019249742850661278, 0.023495430126786232, 0.024124421179294586, -0.0025388954672962427, -0.02040289156138897, -0.015619940124452114, -0.01520061306655407, -0.04439627379179001, 0.004478284157812595, 0.07804728299379349, -0.011590467765927315, -0.08517584949731827, 0.002679763361811638, -0.021700184792280197, 0.034384835511446, -0.015711668878793716, 0.013058112934231758, -0.016458595171570778, -0.0034561739303171635, -0.0012506108032539487, 0.010325933806598186, 0.023390598595142365, 0.030086731538176537, 0.011498739942908287, -0.022853335365653038, 0.020180124789476395, 0.02395406924188137, 0.00837344117462635, 0.047331564128398895, 0.05317593738436699, 0.034620705991983414, -0.03684838116168976, -0.07783762365579605, -0.016694465652108192, -0.013156392611563206, -0.02396717295050621, 0.009467623196542263, 0.004904163535684347, -0.017467601224780083, 0.05220624431967735, -0.011446324177086353, 0.024268565699458122, 0.0024357016663998365, -0.03181645646691322, -0.03037501871585846, -0.04743639752268791, -0.010679741390049458, 0.017716577276587486, 0.016668258234858513, -0.036507681012153625, 0.002131034154444933, -0.003226854372769594, -0.01141356397420168, 0.03593110293149948, -0.027282480150461197, -0.0031793524976819754, -0.00777065847069025, -0.04421281814575195, 0.01800486445426941, -0.03228819742798805, 0.006715788040310144, 0.008681384846568108, -0.005687125958502293, 0.020953258499503136, 0.04837988317012787, 0.019315261393785477, 0.029693610966205597, -0.018502814695239067, 0.0576050840318203, -0.02551344223320484, 0.001306302729062736, -0.04405556991696358, -0.04670257493853569, -0.06662061810493469, -0.02162156254053116, 0.0044356961734592915, 0.027465935796499252, 0.01841108687222004, -0.022551944479346275, -0.07862386107444763, 0.029850859194993973, 0.028671501204371452, -0.018948350101709366, 0.03365101292729378, -0.018515920266509056, -0.008832080289721489, 0.03042743355035782, 0.028592877089977264, -0.007927905768156052, 0.014270231127738953, -0.023652678355574608, -0.04667636379599571, -0.025303779169917107, -0.036533888429403305, -0.024281669408082962, 0.012435673736035824, -0.014348854310810566, -0.0005507765454240143, 0.017323456704616547, 0.031790249049663544, -0.002063876250758767, 0.009008984081447124, -0.03794911876320839, 0.003931193146854639, -0.03716287761926651, 0.02202778495848179, -0.021778808906674385, -0.01340536866337061, -0.02242090366780758, -0.03524969890713692, -0.028619086369872093, -0.01959044486284256, 0.0066928560845553875, -0.0030892626382410526, 0.07175737619400024, -0.07317260652780533, -0.022067097947001457, 0.0024127697106450796, 0.0040556807070970535, 0.015121988952159882, 0.02356095053255558, 0.018935246393084526, 0.011918067000806332, -0.008419305086135864, 0.025461027398705482, -0.009900054894387722, 0.01961665414273739, 0.0494806170463562, 0.058076824992895126, 0.01919732615351677, 0.028645293787121773, 0.025487234815955162, -0.061326611787080765, -0.020560139790177345, 0.007875490002334118, 0.03042743355035782, -0.03504003584384918, -0.030139146372675896, 0.014466790482401848, 0.0033677220344543457, -0.012527401559054852, 0.009126920253038406, 0.026548657566308975, 0.011007340624928474, 0.05207520350813866, -0.05755266547203064, -0.034148965030908585, -0.009657630696892738, -0.02073049172759056, 0.032524071633815765, -0.01679929904639721, 0.07002764940261841, 0.018227631226181984, -0.0016191601753234863, 0.023809926584362984, -0.04746260493993759, -0.04743639752268791, 0.003813257208094001, 0.04434385895729065, 0.026863152161240578, -0.02403269335627556, 0.014846805483102798, -0.010456973686814308, -0.049690280109643936, 0.020953258499503136, -0.054302878677845, 0.056504350155591965, 0.017651056870818138, 0.0041113728657364845, -0.019026974216103554, -0.024137524887919426, -0.024884451180696487, 0.06253217905759811, -0.02675832062959671, -0.04140856862068176, -0.02833079732954502, 0.04594254121184349, 0.025251364335417747, 0.008248953148722649, 0.01497784536331892, -0.050922054797410965, 0.008111361414194107, -0.005922997370362282, -0.036507681012153625, -0.016576530411839485, -0.007305467035621405, 0.022984376177191734, 0.007914802059531212, -0.019367678090929985, 0.02080911584198475, -0.004173616413027048, -0.03147575259208679, 0.026234161108732224, 0.021333273500204086, -0.01461093407124281, -0.00430465629324317, 0.016864817589521408, -0.08480893820524216, -0.03587868809700012, 0.0606452040374279, -0.01592133194208145, -0.03509245067834854, -0.04022920876741409, -0.01995735615491867, 0.0025601894594728947, 7.713942613918334e-05, -0.013241568580269814, -0.025290675461292267, -0.04620462283492088, -0.017402080819010735, 0.05419804900884628, -0.009290719404816628, -0.05828648805618286, 0.01961665414273739, -0.017441393807530403, 0.025644483044743538, 0.0051072752103209496, 0.00036424960126169026, -0.021031882613897324, 0.013811592012643814, -0.012658441439270973, 0.02354784682393074, 0.006650268100202084, -0.015711668878793716, -0.0219491608440876, -0.02083532325923443, -0.04400315508246422, -0.010699396952986717, 0.053280770778656006, 0.018437296152114868, 0.041382357478141785, 0.019302157685160637, 0.014768182300031185, 0.006859932094812393, -0.020284956321120262, 0.02911703661084175, -0.06289909034967422, -0.009388999082148075, 0.03435862809419632, -0.021673977375030518, -0.003551177680492401, -0.03721529617905617, -0.07443059235811234, -0.008904152549803257, -0.0034758299589157104, -0.020193228498101234, -0.0012735427590087056, 0.06494330614805222, -0.004533975850790739, -0.012304633855819702, 0.06531021744012833, 0.0033366000279784203, 0.0023472497705370188, -0.06321358680725098, -0.007076147478073835, -0.017008962109684944, 0.02192295342683792, -0.004651912022382021, 0.01869937591254711, 0.04439627379179001, -0.034201379865407944, -0.05440771207213402, 0.03962642699480057, 0.04830125719308853, 0.020127708092331886, -0.059754133224487305, -0.01801796816289425, 0.06326600164175034, -0.00399343715980649, 0.006610956508666277, -0.03422758728265762, 0.029483947902917862, 0.02395406924188137, 0.048170220106840134, -0.02561827562749386, -0.04025541618466377, -0.001466007437556982, -0.04245688393712044, -0.007764106150716543, 0.03042743355035782, 0.030112938955426216, 0.029012205079197884, -0.027649391442537308, 0.002614243421703577, 0.02956257201731205, -0.02922186814248562, -0.015436484478414059, -0.006918899714946747, 0.004281724337488413, 0.005238314624875784, 0.034987617284059525, -0.0060376571491360664, 0.06468123197555542, -0.009323479607701302, -0.0026453654281795025, -0.006722340360283852, 0.02875012531876564, 0.0038230852223932743, -0.01475507766008377, -0.021857433021068573, -0.028881164267659187, -0.009736254811286926, -0.01956423744559288, -0.038499485701322556, 0.005798509810119867, -0.04646670073270798, 0.05270419642329216, 0.005221934989094734, -0.007547890767455101, 0.002404579659923911, 0.025277571752667427, -0.031737830489873886, 0.0017886928981170058, 0.009388999082148075, 0.04992615059018135, 0.03611455857753754, -0.004678119905292988, -0.03766082972288132, -0.04206376522779465, -0.025867249816656113, 0.010135926306247711, 0.0022276761010289192, 0.00044676370453089476, 0.04903507977724075, 0.019498717039823532, 0.028068717569112778, -0.04560184106230736, -0.011223556473851204, 0.04562804847955704, -0.006807515863329172, -0.0015896762488409877, -0.01997045986354351, 0.0018149007810279727, 0.03988850489258766, -0.03351997211575508, 0.06436673551797867, 0.014820598065853119, -0.058129239827394485, -0.025788625702261925, -0.011492188088595867, -0.007593754678964615, -0.03582627326250076, -0.00778376217931509, 0.07338227331638336, -0.00838654488325119, -0.026967983692884445, 0.000793200102634728, -0.0359048955142498, -0.032183367758989334, 0.011046652682125568, -0.02358715794980526, -0.02597208134829998, -0.001294017769396305, 0.021857433021068573, -0.00748892268165946, 0.04392452910542488, 0.0021998300217092037, -0.0038787771482020617, 0.019459405913949013, -0.020664971321821213, 0.04908749833703041, -0.06358049809932709, -0.03160679340362549, -0.002106464235112071, 0.005346422549337149, -0.04505147412419319, -0.02277471125125885, 6.96660645189695e-05, 0.01714000105857849, -0.00777065847069025, 0.028199758380651474, 0.005598674062639475, 0.005136759020388126, 0.00429810443893075, -0.05393596738576889, 0.03116125613451004, -0.013510200195014477, 0.003865673206746578, 0.030453642830252647, -0.01340536866337061, -0.008072049356997013, 0.015606836415827274, -0.012226010672748089, 0.04203755781054497, -0.0024357016663998365, 0.04633566364645958, 0.04077957570552826, -0.00489105936139822, 0.03202611953020096, 0.03522349148988724, -0.015672355890274048, 0.006646992173045874, 0.01679929904639721, 0.04646670073270798, -0.030925385653972626, 0.04075336828827858, 0.04167064651846886, 0.011708403006196022, 0.028854956850409508, 0.030191563069820404, 0.031082633882761, -0.010784572921693325, 0.012710857205092907, 0.007397194858640432, 0.028540462255477905, 0.07705138623714447, -0.009487279690802097, 0.007082699332386255, -0.052966274321079254, 0.00689269183203578, 0.03247165307402611, 0.0028222689870744944, -0.02002287656068802, -0.010515941306948662, -0.0624273456633091, -0.01517440564930439, -0.00836033746600151, -0.03624559938907623, -0.02872391790151596, -0.016458595171570778, 0.02204088866710663, -0.018070384860038757, 0.04308587685227394, 0.0022014682181179523, 0.016537219285964966, -0.044920433312654495, 0.001063060131855309, 0.043374162167310715, -0.026863152161240578, -0.007148219272494316, -0.039731256663799286, 0.02838321402668953, -0.028121134266257286, 0.021411897614598274, -0.043714866042137146, 0.02192295342683792, 0.03593110293149948, 0.051341380923986435, -0.05550844594836235, -0.0044356961734592915, -0.011066308245062828, -0.013392264023423195, -0.009297271259129047, 0.0006728073349222541, -0.02838321402668953, 0.00017915593343786895, 0.04153960570693016, 0.01238325797021389, 0.013654343783855438, 0.04405556991696358, -0.009028639644384384, 0.06641095131635666, 0.03475174680352211, -0.03344134986400604, 0.021044986322522163, 0.010686293244361877, -0.0017198969144374132, -0.07516441494226456, -0.0050908951088786125, -0.04321691393852234, -0.010738709010183811, 0.05388355255126953, 0.005005719140172005, 0.027361104264855385, 0.00344306998886168, -0.04222101345658302, -0.002615881385281682, 0.02555275522172451, -0.012992593459784985, -0.0019492165884003043, -0.0031416784040629864, -0.02202778495848179, 0.021293962374329567, -0.004127752501517534, 0.018175216391682625, 0.0018558506853878498, 0.022302968427538872, -0.006021277513355017, -0.018961453810334206, 0.021503625437617302, -0.007659274619072676, 0.01239636167883873, -0.011230108328163624, 0.028645293787121773, -0.044134195894002914, 0.01140046026557684, 0.016209619119763374, 0.04431765154004097, 0.015488900244235992, -0.00047092416207306087, -0.02641761675477028, -0.0015831241616979241, 0.029274284839630127, 0.009913158603012562, -0.0176379531621933, 0.013005697168409824, -0.015056469477713108, 0.028592877089977264, -0.026168642565608025, 0.0375559963285923, -0.007292363326996565, -0.006971315480768681, -0.003885329235345125, -0.026915568858385086, 0.000904993386939168, 0.011066308245062828, 0.007862386293709278, 0.013241568580269814, -0.012815689668059349, -0.046912238001823425, 0.00896312016993761, 0.018568335101008415, 0.011374251917004585, -0.025880353525280952, -0.032550279051065445, -0.02111050672829151, 0.0006597033352591097, 0.003941020928323269, 0.020284956321120262, -0.0005810794536955655, 0.0033054782543331385, -0.009945918805897236, -0.02751835063099861, -0.03239303082227707, 0.015030261129140854, 0.03446345776319504, -0.0024389775935560465, -0.03401792421936989, -0.061379026621580124, 0.025434819981455803, 0.03168541565537453, -0.046519119292497635, -0.021490521728992462, 0.01672067493200302, 0.01961665414273739, -0.005002443213015795, -5.2467094064923e-05, 0.022997479885816574, 0.022853335365653038, -0.015777187421917915, 0.010529045015573502, -0.03876156359910965, 0.0067092361859977245, 0.045261137187480927, 0.021857433021068573, -0.042509302496910095, -0.0020524102728813887, -0.02070428431034088, 0.0008746904786676168, 0.03556419163942337, -0.05676642805337906, -0.02316783182322979, -0.007135115563869476, -0.028068717569112778, 0.011623227037489414, 0.01871247962117195, 0.014440582133829594, 0.009513487108051777, -0.013385712169110775, 0.0367959663271904, 0.027754222974181175, -0.005520050413906574, -0.03910226747393608, -0.017349665984511375, 0.015659252181649208, -0.050109606236219406, -0.0023554398212581873, -0.03158058598637581, 0.008504481054842472, -0.009952470660209656, -0.019341470673680305, 0.024989284574985504, -0.010312830097973347, 0.04235205426812172, -0.01712689734995365, -0.028592877089977264, 0.031318504363298416, 0.02509411610662937, 0.0239802785217762, -0.00027948326896876097, 0.007606858387589455, -0.03129229694604874, -0.014270231127738953, 0.021883642300963402, 0.0188435185700655, 0.00857655331492424, 0.000104934188129846, -0.0021572422701865435, -0.011125276796519756, 0.02515963651239872, 0.04471077024936676, -0.02872391790151596, 0.004461904056370258, -0.03118746541440487, -0.011374251917004585, -0.03244544565677643, 0.06515297293663025, 0.03404413163661957, -0.006345600821077824, -0.04075336828827858, -0.012049106881022453, 0.00037714882637374103, -0.037005629390478134, 0.005932825617492199, -0.03745116665959358, -0.014781286008656025, 0.004239136353135109, 0.005988517310470343, 0.018987663090229034, 0.0029483947437256575, -0.01563304476439953, 0.03483036905527115, -0.004016369115561247, -0.0004635531804524362, -0.01910559833049774, 0.014990950003266335, -0.02403269335627556, -0.00517607107758522, -0.0001544835977256298, 0.025683794170618057, 0.00719408318400383, 0.04140856862068176, -0.02709902450442314, -0.027334894984960556, 0.004314484540373087, 0.027072817087173462, 0.015135093592107296, -0.017795201390981674, 0.021687081083655357, -0.051367588341236115, 0.04064853489398956, -0.003721529385074973, -0.007646170444786549, -0.017022065818309784, -0.019000766798853874, -0.02720385603606701, -0.014768182300031185, 0.004173616413027048, -0.018083488568663597, -0.015108885243535042, -0.003341514151543379, 0.00040274253115057945, 0.002701057121157646, 0.03226199001073837, 0.006977867800742388, -0.03155437484383583, -0.021713290363550186, 0.007980321533977985, -0.04544459283351898, -0.029431531205773354, -0.039311930537223816, -0.0030728825367987156, -0.015108885243535042, -0.04308587685227394, -0.015017157420516014, 0.01235705055296421, 0.014060567133128643, 0.010063854046165943, 0.0047895037569105625, -0.023390598595142365, 0.010666636750102043, -0.019393885508179665, -0.03189507871866226, -0.009677287191152573, -0.019315261393785477, 0.04607358202338219, -0.011708403006196022, 0.009847638197243214, -0.01757243275642395, 0.04188030958175659, -0.04560184106230736, -0.008465168997645378, -0.020101500675082207, -0.005644537974148989, -0.013045009225606918, 0.04583771154284477, -0.025054803118109703, -0.015292340889573097, -0.009369343519210815, 0.030610889196395874, -0.018463503569364548, -0.015043365769088268, 0.0033103921450674534, 0.027675598859786987, 0.0028468389064073563, 0.03543315455317497, 0.00017270632088184357, 0.00837344117462635, 0.024871347472071648, -0.03121367283165455, -0.021778808906674385, -0.005441426299512386, -0.012343945913016796, 0.03915468230843544, -0.045759085565805435, -0.018895935267210007, -0.004278448410332203, 0.016052370890975, -0.009814878925681114, -0.011655987240374088, -0.0026699353475123644, 0.00777721032500267, 0.014191607013344765, 0.0036494575906544924, -0.00660440418869257, 0.015790292993187904, 0.02111050672829151, -0.010470077395439148, -0.023010583594441414, -0.009690390899777412, 0.036193184554576874, -0.03304823115468025, 0.0645763948559761, -0.033782053738832474, -0.02555275522172451, 0.0071089076809585094, 0.010804228484630585, -0.004779675509780645, 0.044501107186079025, 0.0022882819175720215, -0.008635520935058594, 0.007849282585084438, -0.026994192972779274, 0.009487279690802097, 0.04125132039189339, -0.011217004619538784, 0.03247165307402611, -0.013274328783154488, 0.017441393807530403, -0.04007196053862572, 0.00548073835670948, 0.004226032644510269, -0.015803396701812744, 0.01297293696552515, 0.028566669672727585, 0.0013054837472736835, 0.02679763361811638, 0.016655154526233673, 0.031056424602866173, -0.011439771391451359, -0.01915801502764225, 0.058915480971336365, -0.004612599965184927, -0.008792768232524395, 0.004170340485870838, 0.020651867613196373, 0.027701806277036667, -0.030977800488471985, -0.014309543184936047, -0.01016213372349739, 0.0014750163536518812, 0.02590656280517578, -0.06284667551517487, 0.040176793932914734, -0.022696087136864662, 0.007580650504678488, 0.013680552132427692, -0.0038263611495494843, 0.01458472665399313, 0.028592877089977264, -0.025264468044042587, -0.028645293787121773, 0.059282392263412476, 0.018175216391682625, -0.004674843978136778, 0.00917933601886034, 0.029326699674129486, 0.015017157420516014, 0.03367722034454346, 0.03357238695025444, 0.012108074501156807, -0.034122757613658905, -0.017651056870818138, 0.003970505204051733, 0.012664993293583393, -0.0006666647968813777, -0.04434385895729065, -0.004517596215009689, -0.04646670073270798, -0.0009393913205713034, 0.004665015731006861, 0.008281713351607323, 0.015082677826285362, -0.026994192972779274, -0.004140856675803661, -0.05802441015839577, -0.005608502309769392, 0.04041266441345215, 0.007593754678964615, -0.051288966089487076, 0.008170329965651035, -0.009087608195841312, -0.036193184554576874, -0.0115773631259799, -0.006781307980418205, -0.01759864017367363, -0.048091594129800797, 0.014663349837064743, -0.030191563069820404, 0.019354574382305145, 0.03519728034734726, 0.024661684408783913, -0.017323456704616547, -0.034384835511446, 0.059754133224487305, -0.007449611090123653, 0.013221913017332554, 0.03787049278616905, 0.07222911715507507, 0.008419305086135864, 0.007737898267805576, -0.005746094044297934, -0.02231607213616371, -0.003249786328524351, -0.02282712794840336, 0.0017280869651585817, -0.017349665984511375, 0.0011302180355414748, -0.03640284761786461, -0.033755842596292496, -0.025683794170618057, -0.015253028832376003, -0.03234061598777771, 0.014702661894261837, 0.00660768011584878, 0.04667636379599571, -0.017008962109684944, 0.013864007778465748, 0.016995858401060104, -0.015672355890274048, -0.010679741390049458, -0.01497784536331892, 0.00748892268165946, 0.03186887130141258, 0.025631379336118698, -0.04077957570552826, 0.015069573186337948, 0.03865673020482063, -0.005644537974148989, -0.0576050840318203, 0.003931193146854639, 0.0031433163676410913, -0.015056469477713108, 0.03821119666099548, -0.0019393885741010308, -0.040176793932914734, 0.03475174680352211, 0.0031940944027155638, 0.055718109011650085, -0.01517440564930439, -0.0016093321610242128, 0.016130995005369186, -0.01910559833049774, 0.006807515863329172, -0.039311930537223816, -0.018450399860739708, -0.027046607807278633, 0.006794412154704332, -0.02352163940668106, 0.032524071633815765, -0.021071195602416992, -0.027465935796499252, -0.024176837876439095, -0.03317926824092865, -0.03504003584384918, 0.0017968828324228525, -0.006705960258841515, 0.0375559963285923, 0.03726771101355553, -0.0020737042650580406, -0.03564281761646271, 0.03223578259348869, 0.014230919070541859, 0.0033464280422776937, 0.04083199054002762, 0.039285723119974136, -0.006814068183302879, -0.030872968956828117, 0.03433242067694664, -0.011151484213769436, 0.04282379522919655, 0.03994091972708702, -0.02754455991089344, 0.021411897614598274, 0.024124421179294586, -0.0275969747453928, -0.0057362657971680164, -0.023508533835411072, 0.05259936302900314, 0.03150196000933647, 0.019367678090929985, 0.01875179074704647, -0.0031121945939958096, -0.013824695721268654, -0.015266133472323418, 0.0026044154074043036, -0.03598352149128914, 0.0034168618731200695, -0.004019645042717457, 0.01837177574634552, 0.051682084798812866, -0.014427478425204754, -0.002273540012538433, -0.01378538366407156, -0.012455330230295658, 0.009965574368834496, 0.02040289156138897, 0.011911515146493912, 0.022145720198750496, -0.030951593071222305, -0.024452021345496178, 0.0033939299173653126, 0.011144932359457016, -0.012468433938920498, 0.009238303638994694, -0.018542127683758736, 0.01717931404709816, 0.026561761274933815, -0.0034070340916514397, -0.022565048187971115, 0.008563448674976826, -0.01564614847302437, 0.05886306241154671, 0.04395074024796486, 0.008491377346217632, 0.005208830814808607, -0.01677308976650238, -0.005664194002747536, -0.0034168618731200695, -0.044501107186079025, -0.010057302191853523, 0.01753312163054943, 0.002953308867290616, 0.016589634120464325, 0.009696942754089832, 0.007338227238506079, 0.03446345776319504, 0.015672355890274048, -0.011623227037489414, -0.01915801502764225, 0.003063054522499442, -0.02709902450442314, 0.00917278416454792, -0.014453686773777008, -0.02561827562749386, 0.040963031351566315, -0.014283334836363792, 0.002209658036008477, -0.009631423279643059, -0.0021392242051661015, -0.04007196053862572, 0.03226199001073837, -0.043374162167310715, 0.06882208585739136, -0.0073316749185323715, -0.0022882819175720215, -0.010836988687515259, 0.011859099380671978, -0.016130995005369186, 0.019302157685160637, 0.00399998901411891, 0.024517539888620377, 0.010686293244361877, -0.013890215195715427, -0.014126087538897991, -0.028173550963401794, 0.04950682446360588, -0.014663349837064743, 0.03991471230983734, 5.9377394791226834e-05, 0.006142489146441221, -0.031737830489873886, 0.023403702303767204, -0.022905752062797546, -0.013811592012643814, -0.0318426638841629, -0.034515876322984695, -0.007619962561875582, -0.027780430391430855, 0.06819309294223785, 0.03483036905527115, 0.016196515411138535, 0.006820620037615299, 0.0002364858373766765, 0.007063043769448996, 0.004671567585319281, 0.005323490593582392, -0.03994091972708702, -0.02358715794980526, 0.013968839310109615, -0.05026685446500778, 0.011112172156572342, 0.006800964009016752, 0.002760025206953287, -0.010928716510534286, 0.05346422642469406, -0.018581438809633255, 0.013071216642856598, 0.014270231127738953, 0.0024357016663998365, 0.019800109788775444, 0.009860742837190628, 0.01758553646504879, -4.1589770262362435e-05, 0.0026535552460700274, -0.00037223484832793474, -0.05917755886912346, 0.004638807848095894, 0.018987663090229034, 0.0021850881166756153, -0.021005675196647644, 0.021805018186569214, -0.01994425244629383, 0.010398006066679955, 0.010398006066679955, 0.014492998830974102, -0.011452876031398773, 0.013628136366605759, 0.034620705991983414, 0.029667403548955917, 0.002419321797788143, -0.023390598595142365, 0.03674355149269104, -0.01259947381913662, -0.015777187421917915, 0.035302113741636276, -0.044894225895404816, 0.01377227995544672, -0.020075293257832527, 0.02637830562889576, -0.04848471283912659, 0.0002371000882703811, 0.004127752501517534, 0.015790292993187904, 0.023652678355574608, 0.00917278416454792, -0.006522504612803459, -0.013811592012643814, 0.00748237082734704, 0.048904042690992355, 0.009434862993657589, -0.017035169526934624, -0.02113671414554119, -0.018437296152114868, 0.02031116373836994, 0.007600306533277035, 0.0007723156595602632, -0.013483991846442223, -0.00489105936139822, 0.004163788631558418, -0.024242356419563293, -0.015528212301433086, -0.01058146171271801, 0.005366078577935696, -0.003721529385074973, -0.01520061306655407, -0.019393885508179665, -0.018450399860739708, -0.010057302191853523, -0.021031882613897324, -0.004943475127220154, -0.00012213316222187132, -0.001977062551304698, 0.026155536994338036, 0.029483947902917862, 0.0041310288943350315, -0.0023505259305238724, -0.04680740460753441, -0.017022065818309784, 0.02513342723250389, 0.013732967898249626, -0.024150628596544266, -0.0383160300552845, -5.9223832067800686e-05, -0.003924641292542219, 0.016904130578041077, 0.0014094965299591422, 0.025814834982156754, -0.022669879719614983, 0.0022375041153281927, -0.016262035816907883, 0.0010548700811341405, -0.015292340889573097, 0.013942630961537361, 0.03787049278616905, -0.0018787826411426067, 0.0005163786117918789, 0.015095781534910202, 0.02201468124985695, -0.032183367758989334, 0.021673977375030518, 0.02117602713406086, 0.008052393794059753, 0.0211891308426857, -0.002101550344377756, -0.023744406178593636, -0.003171162446960807, 0.010922164656221867, -0.005831269547343254, -0.008563448674976826, -0.005864029750227928, 0.015868915244936943, -0.009343135170638561, 0.02111050672829151, -0.0416182316839695, 0.019026974216103554, 0.05039789527654648, -0.01678619347512722, -0.012999145314097404, -0.02033737301826477, 0.04544459283351898, -0.02709902450442314, -0.006168697029352188, -0.004648635629564524, -0.05270419642329216, 0.02388855069875717, -0.0057297139428555965, -0.023062998428940773, 0.01879110373556614, -0.032183367758989334, -0.013293984346091747, 0.05351664125919342, 0.0038525692652910948, -0.004864851478487253, 0.002398027805611491, 0.039338137954473495, 0.0454183854162693, 0.005012270994484425, 0.005637986119836569, -0.014348854310810566, -0.008687936700880527, 0.012501194141805172, -0.0032645282335579395, -0.020573243498802185, 0.02670590579509735, 0.024674788117408752, -0.012828793376684189, 0.01590822823345661, 0.014637142419815063, -0.04190651699900627, -0.0010049112606793642, -0.01991804502904415, -0.0013390625827014446, -0.0063554286025464535, -0.026116225868463516, 0.0013243206776678562, -0.018253840506076813, -0.029300492256879807, -0.009520038962364197, -0.0020327544771134853, -0.02311541512608528, -0.014060567133128643, 0.043767284601926804, -0.01831935904920101, -0.028933580964803696, 0.0030352086760103703, -0.022866439074277878, 0.024609267711639404, -0.03868294134736061, -0.020193228498101234, -0.013346400111913681, 0.03724150359630585, 0.006345600821077824, -0.021477418020367622, -0.00214413832873106, -0.013510200195014477, -0.009022087790071964, -0.017480704933404922, -0.0023865618277341127, -0.01461093407124281, 0.010280069895088673, 0.023456119000911713, -0.011636331677436829, -0.030453642830252647, 0.025356195867061615, 0.005742817651480436, -0.007731346413493156, 0.022630568593740463, 0.007148219272494316, 0.023691989481449127, -0.025801731273531914, 0.008098257705569267, 0.0014750163536518812, 0.009061399847269058, 0.009133472107350826, 0.06358049809932709, -0.01685171388089657, 0.009900054894387722, 0.0036560094449669123, 0.0033939299173653126, -0.029641196131706238, 0.009644526988267899, -0.016550322994589806, -0.05123655125498772, 0.00039107180782593787, -0.00172153499443084, -0.025329986587166786, -0.03865673020482063, 0.023377494886517525, -0.03278614953160286, 0.05702850595116615, -0.0026732112746685743, 0.004877955187112093, -0.036586303263902664, 0.048537131398916245, 0.030139146372675896, -0.04633566364645958, 0.005929549690335989, -0.022604359313845634, -0.01632755436003208, -0.011839442886412144, -0.008799320086836815, 0.04020300135016441, -0.021857433021068573, -0.010456973686814308, 0.015069573186337948, 0.026994192972779274, 0.0034561739303171635, 0.021778808906674385, -0.013824695721268654, 0.007377538830041885, 0.0033742741215974092, 0.02522515505552292, -0.017061378806829453, 0.002812440972775221, 0.005280902609229088, 0.019800109788775444, -0.011066308245062828, 0.012324290350079536, -0.029850859194993973, -0.012284978292882442, -0.01759864017367363, 0.010293173603713512, 0.016956545412540436, 0.011026996187865734, 0.010253861546516418, -0.03228819742798805, -0.0407271608710289, -0.007600306533277035, -0.006244045216590166, 0.025447923690080643, 0.038945019245147705, 0.005520050413906574, 0.01997045986354351, -0.027649391442537308, -0.029379116371273994, -0.02201468124985695, -0.008242401294410229, -0.01803107187151909, -0.022591255605220795, 0.014624037779867649, -0.0013177687069401145, 0.03821119666099548, -0.016484802588820457, 0.002466823672875762, 0.030820554122328758, 0.0030057246331125498, -0.003934469074010849, 0.003960676956921816, -0.010987685061991215, -0.031764041632413864, -0.002812440972775221, 0.015095781534910202, 0.004855023231357336, -0.01399504765868187, -0.011524947360157967, -0.022119512781500816, -0.013110528700053692, -0.0008714144350960851, -0.015475796535611153, -0.030217770487070084, 0.0016543770907446742, -0.004763295408338308, 0.004674843978136778, -0.018909038975834846, -0.01237015426158905, -0.010555253364145756, 0.01235705055296421, -0.018070384860038757, -0.0037477375008165836, -0.043741073459386826, 0.032602693885564804, 0.04185410216450691, -0.00798687431961298, -0.02675832062959671, 0.008091705851256847, -0.02120223455131054, -0.01521371677517891, -0.006214560940861702, -0.029824651777744293, -0.016982754692435265, 0.008471720851957798, -0.010640429332852364, 0.010771469213068485, 0.011393907479941845, -0.013149840757250786, -0.003957401029765606, -0.013313640840351582, -0.04384590685367584, 0.023691989481449127, -0.027728015556931496, -0.029248075559735298, 0.017061378806829453, -0.005723162088543177, 0.014741973951458931, -0.0015806672163307667, -0.015030261129140854, -0.027701806277036667, -0.004239136353135109, 0.04361003637313843, 0.035013824701309204, -0.03113504871726036, -0.031239880248904228, 0.013143288902938366, -7.447768439305946e-05, -0.0015143282944336534, 0.0012522487668320537, 0.008550344966351986, 0.011898411437869072, -0.029405323788523674, 0.019013870507478714, -0.0009688753052614629, 0.02641761675477028, -0.014126087538897991, 0.011079412885010242, -0.02476651594042778, 0.001339881680905819, 0.0028648569714277983, 0.04442248120903969, 0.027649391442537308, 0.03561661019921303, -0.02801630273461342, 0.006286632735282183, -0.019878732040524483, 0.006568368524312973, -0.0013390625827014446, -0.011249763891100883, 0.004609324038028717, -0.015305444598197937, 0.027072817087173462, 0.03194749727845192, -0.019328365102410316, 0.018673166632652283, 0.017755888402462006, -0.003963952884078026, 0.01877799816429615, 0.004196548368781805, -0.004950027447193861, 0.004933647345751524, 0.007338227238506079, -0.05561327934265137, -0.006676476448774338, 0.02159535326063633, -0.02872391790151596, -0.026496240869164467, -0.01438816636800766, 0.024229252710938454, -0.029483947902917862, -0.02553965151309967, -0.009081056341528893, -0.006578196305781603, -0.0050581349059939384, -0.00400326494127512, 0.02796388603746891, 0.03325789421796799, -0.02318093553185463, -0.03307443857192993, 0.011590467765927315, 0.007587202824652195, 0.0029418428894132376, -0.0032890981528908014, 0.016877921298146248, -0.005870581604540348, -0.014938533306121826, 0.0098017742857337, 0.03645526245236397, -0.018293151631951332, 0.009159679524600506, -0.024674788117408752, -0.011944275349378586, -0.017074482515454292, -0.022971270605921745, 0.009015535935759544, -0.010135926306247711, -0.012402914464473724, -0.016864817589521408, -0.028461838141083717, 0.012881209142506123, -0.005533154122531414, 0.024858243763446808, 0.008556896820664406, 0.028514252975583076, -0.018083488568663597, 0.012429121881723404, 0.0023881997913122177, -0.001139226951636374, -0.014296438544988632, -0.01475507766008377, 0.016943441703915596, 0.011151484213769436, -0.019053181633353233, 0.008838632144033909, 0.00011066717706853524, 0.005169518757611513, -0.0006527418736368418, -0.01558062806725502, 0.05660917982459068, 0.028592877089977264, -0.004144132602959871, -0.008661728352308273, 0.006846827920526266, -0.020953258499503136, 0.04945440962910652, -0.009539695456624031, -0.03210474178195, 0.007914802059531212, -0.005097446963191032, -0.030899178236722946, -0.016170307993888855, 0.0155413169413805, -0.023770613595843315, 0.010273518040776253, -0.003678941400721669, -0.003228492336347699, -0.028252175077795982, 0.03142333775758743, 0.025447923690080643, 0.0010909060947597027, 0.001520880265161395, -0.024242356419563293, -0.015698565170168877, 0.003231768263503909, -0.01997045986354351, 0.01872558332979679, 0.039731256663799286, -0.0005315300659276545, -0.01755932904779911, 0.017651056870818138, 0.013680552132427692, 0.0037772213108837605, 0.033310309052467346, -0.009362791664898396, -0.015148197300732136, -0.004687947686761618, 0.00977556686848402, 0.0137984873726964, 0.01596064306795597, -0.0027780430391430855, 0.011754266917705536, -0.03283856436610222, -0.021071195602416992, -0.0031957323662936687, 0.013084321282804012, 0.02399338223040104, 0.005811613518744707, 0.023823030292987823, -0.012311186641454697, 0.02476651594042778, -0.007534786593168974, 0.012409466318786144, -0.0005921359406784177, 0.009821430779993534, 0.02112361043691635, 0.04269275814294815, 0.006568368524312973, -0.019760796800255775, 0.03595731407403946, -0.008930359967052937, -0.044579729437828064, -0.03624559938907623, 0.02751835063099861, 0.03118746541440487, 0.00458966800943017, 0.030165355652570724, -0.0019852526020258665, -0.04117269441485405, 0.005303834564983845, 0.00837344117462635, -0.014781286008656025, -0.021071195602416992, -0.004579839762300253, -0.013339848257601261, -0.013890215195715427, 0.024609267711639404, -0.017454497516155243, 0.009166231378912926, -0.016275139525532722, -0.034568291157484055, 0.019787004217505455, -0.007154771592468023, 0.007364435121417046, -0.02121533825993538, 0.02640451304614544, 0.02840942144393921, 0.013307088986039162, -0.007226843386888504, -0.0003099909517914057, -0.0068992436863482, -0.0040982686914503574, 0.023665782064199448, 0.01176737155765295, 0.043374162167310715, -0.0207435954362154, 0.00028705899603664875, -0.026221057400107384, 0.013955735601484776, 0.017061378806829453, -0.019354574382305145], "id": 65}, {"title": "Black Arrow", "text": "Black Arrow, officially capitalised BLACK ARROW, was a British satellite carrier rocket. Developed during the 1960s, it was used for four launches between 1969 and 1971. Its final flight was the first and only successful orbital launch to be conducted by the United Kingdom, and placed the Prospero satellite into low Earth orbit.Black Arrow originated from studies by the Royal Aircraft Establishment for carrier rockets based on the Black Knight rocket, with the project being authorised in 1964.", "vector": [-0.014135890640318394, 0.03546791151165962, -0.020262327045202255, -0.057675138115882874, -0.02767062932252884, 0.001184621243737638, -0.028501631692051888, 0.021641438826918602, -0.07178451120853424, 0.007664675824344158, 0.02689266949892044, -0.011519115418195724, -0.024258213117718697, -0.021234776824712753, -0.0010912438156083226, 0.07192595303058624, -0.030004510655999184, 0.03173723816871643, 0.020280007272958755, -0.020527539774775505, 0.019519727677106857, -0.03336388245224953, -0.030216680839657784, -0.01761903055012226, -0.006926497910171747, 0.023480253294110298, -0.006011510733515024, 0.01863568276166916, -0.03702383115887642, -0.005945207085460424, 0.0015393445501103997, -0.0228260587900877, 0.028201056644320488, 0.06807151436805725, 0.029456401243805885, -0.0008133220253512263, 0.010829559527337551, -0.000709999178070575, -0.05870063230395317, -0.04490951821208, -0.013057354837656021, -0.039216265082359314, -0.02316199615597725, 0.05123928561806679, 0.004862251225858927, 0.0013415393186733127, 0.016275281086564064, 0.011395348235964775, -0.004902033135294914, 0.013145758770406246, -0.006683385465294123, 0.03140130266547203, -0.042823173105716705, 0.025425152853131294, 0.01392371952533722, 0.0445912629365921, 0.019201472401618958, 0.05944323167204857, -0.02696339227259159, -0.04918830096721649, 0.009583055041730404, 0.002559312153607607, 0.03592761605978012, 0.01879481039941311, -0.010467100888490677, -0.03995886445045471, 0.03237375244498253, -0.02247244119644165, -0.020580582320690155, 0.0038610694464296103, 0.015550362877547741, -0.056791093200445175, 0.04225738346576691, -0.015930503606796265, 0.009918992407619953, -0.004422438330948353, 0.05463402345776558, 0.02698107436299324, -0.011527955532073975, 0.044838797301054, 0.03145434334874153, -0.012058382853865623, -0.056260667741298676, -0.002676448319107294, -0.028943656012415886, 0.0445912629365921, 0.010369855910539627, -0.061741750687360764, -0.014065166935324669, -0.01744222082197666, -0.01865336298942566, 0.038791924715042114, 0.016089631244540215, -0.030446533113718033, 0.0047296443954110146, 0.003967154771089554, 0.014374583028256893, -0.006966279819607735, -0.0011802009539678693, 0.05969076231122017, -0.013561260886490345, -0.029385678470134735, -0.014339220710098743, 0.014807765372097492, -0.056755732744932175, 0.026114709675312042, -0.038155410438776016, -0.0017316244775429368, 0.023851552978157997, 0.052724484354257584, -0.020421454682946205, 0.002237740671262145, 0.0012266134144738317, -0.00907030887901783, -0.024558788165450096, -0.010414058342576027, 0.02188897132873535, -0.009335522539913654, -0.05343171954154968, -0.016407888382673264, -0.010193046182394028, -0.03808468580245972, -0.02194201387465, -0.025920219719409943, 0.016699623316526413, -0.02756454423069954, 0.012579970061779022, 0.015338192693889141, 0.030570298433303833, -0.016832228749990463, -0.07730095088481903, -0.029226548969745636, -0.01141302939504385, 0.021517671644687653, 0.002121709519997239, 0.016752665862441063, -0.023621700704097748, -0.0465715266764164, 0.011775488033890724, 0.04034784436225891, -0.008588504046201706, -0.07256247103214264, 0.028784526512026787, -0.00551644479855895, -0.0057020946405828, -0.028943656012415886, 0.011138975620269775, 0.03131289780139923, -0.024399660527706146, -0.05039060488343239, 0.038756560534238815, 0.019325237721204758, -0.014851966872811317, 0.009512331336736679, -0.014975734055042267, -0.015656448900699615, -0.033416926860809326, -0.005405939184129238, -0.01394139975309372, 0.07418911159038544, 0.005180507432669401, 0.007540909573435783, -0.0015305040869861841, 0.003240027464926243, -0.010334493592381477, -0.0013547999551519752, 0.004040088504552841, 0.006599401123821735, -0.043424323201179504, 0.014984574168920517, 0.05873599275946617, -0.03925162926316261, 0.03290418162941933, 0.003469879273325205, -0.03557399660348892, 0.03582153096795082, -0.004437909461557865, -0.010325653478503227, -0.005030219908803701, -0.015629926696419716, -0.06517184525728226, 0.04204521328210831, -0.019077705219388008, 0.05523517355322838, -0.004773846827447414, -0.023639380931854248, 0.02264925092458725, 0.01815829798579216, -0.05809948220849037, 0.008442636579275131, 0.0031560431234538555, -0.009574214927852154, 0.0016763715539127588, 0.021517671644687653, 0.02788279950618744, 0.07132480293512344, -0.04950655624270439, -0.043813303112983704, -0.05304273962974548, -0.04239882901310921, 0.029155826196074486, -0.014595594257116318, -0.020173922181129456, -0.0038124469574540854, -0.02715788222849369, 0.00927363894879818, 0.06043336167931557, -0.0007260225247591734, 0.03217926248908043, 0.017053240910172462, -0.005105363670736551, -0.014560231938958168, 0.029279593378305435, 0.007112147286534309, -0.015382394194602966, 0.005569487810134888, -0.030075233429670334, 0.010069279931485653, -0.05438648909330368, -0.014869648031890392, 0.0112539017572999, 0.020403774455189705, 0.03741281107068062, -0.012694896198809147, -0.024647193029522896, -0.007143089082092047, -0.030446533113718033, 0.05085030570626259, 0.014940371736884117, -0.0440608374774456, -0.06411099433898926, 0.03583921119570732, -0.006886715535074472, 0.02268461138010025, -0.043919388204813004, 0.019678857177495956, 0.014772403053939342, -0.012120266444981098, -0.01893625780940056, 0.056260667741298676, -0.03691774606704712, -0.0037925560027360916, -0.010458259843289852, -0.020934201776981354, 0.06259043514728546, -0.034283291548490524, 0.01141302939504385, -0.002906300127506256, -0.05329027399420738, -0.011863892897963524, 0.007638154551386833, 0.05435112863779068, -0.03744817525148392, 0.007872426882386208, -0.024240532889962196, -0.034919802099466324, -0.009291320107877254, 0.011855052784085274, 0.05300737917423248, 0.030428851023316383, 0.0054678223095834255, -0.005379417911171913, 0.030075233429670334, 0.05778122320771217, -0.002501849317923188, -0.01363198459148407, -0.03463691100478172, -0.025778772309422493, -0.06354520469903946, -0.025301387533545494, 0.019979432225227356, 0.014215454459190369, 0.043424323201179504, 0.02721092477440834, -0.03766034543514252, 0.016876431182026863, -0.005565067287534475, 0.02249012142419815, -0.056791093200445175, 0.01884785294532776, 0.013110397383570671, -0.025425152853131294, -0.001014442415907979, -0.05817020684480667, -0.014409944415092468, 0.0037417232524603605, -0.048551786690950394, -0.009653778746724129, 0.043035343289375305, 0.03193172812461853, -0.042434193193912506, 0.021429266780614853, 0.025690367445349693, -0.003918532282114029, 0.06619734317064285, -0.03157811239361763, -0.017353815957903862, -0.047703105956315994, 0.019961751997470856, 0.03295722231268883, -0.051805075258016586, 0.01558572519570589, -0.002422285033389926, -0.012792141176760197, -0.013066194951534271, 0.003169303759932518, -0.038615114986896515, -0.0032643387094140053, -0.00875647272914648, 0.0010415163123980165, -0.043530408293008804, -0.034424737095832825, 0.013092716224491596, -0.01807873323559761, 0.0469958670437336, -0.000743150885682553, 0.013419813476502895, 0.006422591861337423, -0.056649647653102875, -1.1283668754913379e-05, -0.015046456828713417, -0.003978205379098654, -0.12213975191116333, -0.005618110299110413, 0.056083858013153076, -0.0022134294267743826, 0.04137333855032921, -0.013322568498551846, -0.015718331560492516, -0.025566600263118744, 0.004314142744988203, -0.013331408612430096, 0.03232070803642273, -0.019060024991631508, 0.030888555571436882, -0.03247983753681183, -0.030057553201913834, -0.030199000611901283, 0.011846211738884449, 0.016522813588380814, 0.034725312143564224, -0.04038320481777191, 0.009848268702626228, -0.0002217020810348913, -0.021146371960639954, -0.020138559862971306, -0.027988886460661888, -0.01898930035531521, 0.03106536529958248, -0.019519727677106857, 0.0009315631468780339, 0.01852959766983986, 0.03988813981413841, -0.03702383115887642, 0.011713605374097824, -0.047773826867341995, 0.004448959603905678, -0.0466422513127327, -0.0032223465386778116, 0.016955995932221413, 0.04087827354669571, -0.021676799282431602, 0.0007696722750551999, 0.033717501908540726, 0.010643909685313702, -0.021022606641054153, 0.08232232928276062, 0.014047485776245594, -0.019784942269325256, -0.01754830591380596, -0.0005511472118087113, 0.025920219719409943, -0.02305591106414795, -0.039074819535017014, -0.011289263144135475, -0.04215129837393761, -0.020898839458823204, -0.006259043235331774, -0.008080177009105682, 0.0011144500458613038, -0.03124217316508293, 0.014409944415092468, -0.06520720571279526, 0.007315477821975946, 0.04211593419313431, -0.02240171656012535, -0.003158253151923418, -0.024046042934060097, 0.025159940123558044, -0.00940624624490738, -0.016425568610429764, -0.020757392048835754, 0.0230028685182333, 0.014745881780982018, -0.02240171656012535, -0.08366607874631882, 0.03278041258454323, 0.02211882174015045, 0.004212477710098028, 0.003613536711782217, 0.029509443789720535, 0.04002958908677101, -0.02236635610461235, 0.01774279586970806, -0.023957638069987297, 0.019024662673473358, 0.0009199600317515433, -0.046960506588220596, -0.016823388636112213, -0.0456521175801754, 0.003509661415591836, -0.042787808924913406, -0.02332112565636635, -0.017026718705892563, 0.011519115418195724, 0.0037262525875121355, -0.019979432225227356, -0.025601962581276894, -0.015028776600956917, -0.029686253517866135, -0.03590993583202362, 0.030181318521499634, -0.005065581761300564, -0.003832337912172079, 0.013623143546283245, -0.02680426463484764, 0.007244754116982222, 0.0005566725158132613, -0.03608674556016922, -0.056932542473077774, 0.004353925120085478, -0.039180904626846313, 0.042787808924913406, 0.02296750620007515, -0.04947119578719139, 0.01849423535168171, 0.012120266444981098, 0.03709455579519272, -0.013269525952637196, 0.028590036556124687, -0.017035560682415962, 0.029173506423830986, -0.05031988024711609, -0.012641852721571922, -0.0013404341880232096, 0.0222425889223814, 0.03152506798505783, 0.02782975696027279, 0.06340375542640686, -0.022896783426404, -0.03971133008599281, 0.025301387533545494, 0.024983130395412445, 0.004460010211914778, -0.01824670284986496, -0.025389792397618294, 0.05024915561079979, 0.0076956176199018955, -0.015992386266589165, -0.0031427822541445494, -0.029721615836024284, 0.043070703744888306, 0.025442834943532944, -0.03751889988780022, -0.007302217185497284, -0.0003259918303228915, -0.0218359287828207, 0.014127049595117569, -0.004462220706045628, 0.021057967096567154, -0.005224709864705801, -0.009954353794455528, -0.019466685131192207, 0.043176788836717606, 0.0231089536100626, 0.029756978154182434, 0.05877135694026947, -0.0056578922085464, 0.012951268814504147, -0.03992350399494171, -0.008323290385305882, -0.03301026672124863, -0.015921661630272865, 0.00896864291280508, 0.024417340755462646, -0.002784743905067444, -0.012129106558859348, -0.029102783650159836, 0.02247244119644165, -0.0077221388928592205, 0.07213812321424484, -0.02307359129190445, -0.024505745619535446, -0.02236635610461235, -0.0115544768050313, 0.009874789975583553, 0.003989255987107754, 0.02673354186117649, 0.024611830711364746, -0.013101557269692421, 0.01761019043624401, 0.04162086918950081, -0.0061485376209020615, 0.042823173105716705, 0.08069568872451782, 0.05046132579445839, -0.037731070071458817, 0.09774009138345718, 0.01879481039941311, 0.01150143425911665, -0.000745913537684828, 0.00886255782097578, -0.00686461478471756, 0.0228260587900877, -0.005476662889122963, -0.0447680726647377, 0.02708715945482254, 0.01879481039941311, 0.025690367445349693, -0.03318707272410393, -0.004990437999367714, 0.0009475864353589714, 0.002822315786033869, 0.00913219153881073, 0.03720064088702202, 0.021765204146504402, 0.0008973063668236136, 0.008486838079988956, -0.0038389682304114103, -0.03737745061516762, -0.014321539551019669, 0.020598264411091805, 0.002725070808082819, -0.013570101000368595, -0.03306330740451813, 0.043530408293008804, -0.024717917665839195, 0.024841682985424995, -0.0014940372202545404, 0.023674743250012398, -0.042434193193912506, 0.030764788389205933, 0.023798508569598198, 0.05466938391327858, 0.028943656012415886, -0.012818662449717522, 0.05940786749124527, -0.011200858280062675, 0.004902033135294914, -0.02227795124053955, -0.0220304187387228, 0.012155627831816673, 0.009432767517864704, -0.008102278225123882, 0.03978205472230911, 0.000334279757225886, 0.016814548522233963, 0.001534924260340631, -0.03681166097521782, 0.04176231846213341, 0.024841682985424995, -0.025460515171289444, -0.014038645662367344, 0.009680300019681454, -0.043495047837495804, -0.025442834943532944, -0.02194201387465, 0.03780179098248482, -0.04130261391401291, -0.015143702737987041, 0.01758366823196411, -0.0031825643964111805, -0.009830587543547153, -0.008013874292373657, -0.017344975844025612, -0.0231089536100626, -0.006714326795190573, -0.03971133008599281, -0.010033918544650078, 0.012208670377731323, 0.02756454423069954, -0.019572770223021507, 0.007691197097301483, -0.0009652673616074026, 0.009865949861705303, 0.04087827354669571, 0.006334186997264624, 0.0443083681166172, 0.0063562882132828236, -0.0040555596351623535, -0.031047683209180832, -0.017062081024050713, 0.034265611320734024, 0.01345517486333847, 0.004101972095668316, 0.039039455354213715, 0.0033306421246379614, 0.012986631132662296, -0.004320773296058178, -0.030764788389205933, -0.007872426882386208, -0.010582027025520802, -0.028943656012415886, 0.010617388412356377, -0.003293070010840893, -0.004371605813503265, -0.0026676077395677567, 0.010449419729411602, 0.026486007496714592, 0.01879481039941311, -0.02344489097595215, 0.001612278283573687, 0.005401519127190113, 0.001518348464742303, 0.02740541659295559, 0.01812293566763401, -0.04869323596358299, 0.019413642585277557, -0.00461471825838089, -0.019219152629375458, 0.006749688647687435, -0.016955995932221413, 0.009689140133559704, -0.012721417471766472, -0.02791816182434559, -0.013464015908539295, 0.004570516292005777, -0.008464736863970757, -0.011828531511127949, 0.008685749024152756, -0.02694571204483509, -0.0011133450316265225, -0.020209284499287605, -0.010803038254380226, -0.02777671441435814, -0.03148970752954483, 0.06831905245780945, 0.0056623127311468124, -0.03233839198946953, -0.03297490254044533, 0.021906651556491852, 0.03301026672124863, -0.024010680615901947, -0.0012487145140767097, -0.006144117563962936, -0.016089631244540215, -0.030163638293743134, -0.01372922956943512, 0.012703736312687397, -0.0014299438335001469, -0.061883196234703064, 0.047809191048145294, 0.02211882174015045, 0.01822902262210846, 0.012358958832919598, -0.04982481524348259, 0.00912335142493248, 0.011961137875914574, -0.004325193352997303, 0.02217186614871025, -0.015293990261852741, 0.033664457499980927, -0.009494650177657604, 0.0035494433250278234, 0.04010030999779701, 0.01145723182708025, -0.020545221865177155, -0.04052465409040451, 0.006206000689417124, -0.03656413033604622, -0.020474497228860855, 0.007536489516496658, -0.024841682985424995, -0.0224370788782835, 0.01780468039214611, 0.0006188319530338049, -0.005768397822976112, 0.03663485124707222, -0.0058744833804667, 0.00229188846424222, 0.03769570589065552, -0.03628123551607132, -0.002006783615797758, -0.008000613190233707, -0.008822775445878506, -0.00014945896691642702, 0.0029151407070457935, -0.012854023836553097, -0.03217926248908043, -0.07928121834993362, -0.03265664726495743, -0.06814224272966385, -0.008062496781349182, -0.01904234290122986, 0.0027648527175188065, 0.043212153017520905, -0.006908816751092672, -0.021482309326529503, -0.014922690577805042, 0.002943872008472681, -0.00016520603094249964, -1.2371458979032468e-05, -0.019961751997470856, -0.019891027361154556, -0.04013567417860031, -0.021623756736516953, -0.007452505175024271, -0.024116765707731247, 0.016876431182026863, 0.03138362243771553, 0.010944485664367676, -0.0232857633382082, -0.048021361231803894, 0.03304562717676163, 0.02236635610461235, -0.03603370115160942, 0.004219107795506716, 0.039180904626846313, 0.0052114492282271385, -0.021411586552858353, 0.0111654968932271, 0.030305085703730583, 0.003934003412723541, -0.0007967461715452373, -0.01364966481924057, 0.004990437999367714, 0.03246215730905533, -0.010414058342576027, -0.0006464584148488939, -0.0043229833245277405, -0.0230028685182333, -0.03486676141619682, 0.012977790087461472, 0.01874176785349846, 0.008062496781349182, 0.03336388245224953, -0.028307141736149788, -0.020969564095139503, 0.01165172178298235, 0.0021471260115504265, 0.0115544768050313, 0.008416114374995232, 0.0006309875752776861, -0.047031231224536896, 0.019961751997470856, -0.007576271425932646, -0.047667741775512695, -0.0050125387497246265, 0.012482725083827972, -0.008782994002103806, 0.016275281086564064, -0.04066609963774681, 0.0031781441066414118, -0.03269200772047043, -0.009609576314687729, -0.007337579037994146, 0.013207642361521721, 0.004256679676473141, 0.0067850505001842976, -0.001633274368941784, 0.02811265178024769, 0.019077705219388008, -0.01766323298215866, -0.004769426304847002, 0.024293575435876846, -0.034247927367687225, 0.012633012607693672, 0.002992494497448206, 0.004765006247907877, -0.01796380802989006, -0.01350821740925312, 0.008234885521233082, -0.04098435863852501, -0.021623756736516953, 0.011766647920012474, 0.03631659597158432, 0.03173723816871643, -0.003876540344208479, -0.021234776824712753, -0.0232857633382082, -0.0072403340600430965, 0.02287910133600235, -0.008119959384202957, -0.012818662449717522, -0.004170485306531191, -0.0016741615254431963, -0.003255498129874468, -0.02286142110824585, -0.007624893914908171, -0.010475941002368927, -0.002318409737199545, 0.06046872213482857, -0.003629007376730442, 0.04080754891037941, 0.03232070803642273, -0.009017265401780605, 0.012712576426565647, -0.002099608536809683, -0.030269723385572433, 0.01766323298215866, 0.01898930035531521, -0.016231078654527664, -0.0443083681166172, -0.0025946740061044693, -0.01106825191527605, -0.03677630051970482, -0.01158983912318945, 0.0020089938770979643, -0.0223486740142107, 0.03734209015965462, 0.01737149804830551, -0.006082233972847462, -0.005162826739251614, -0.0006149642867967486, 0.015232106670737267, 0.01815829798579216, 0.0010183100821450353, 0.005481082946062088, -0.011757807806134224, 0.008535460568964481, -0.0224370788782835, -0.020969564095139503, 0.033399246633052826, 0.020845796912908554, -0.016284121200442314, 0.020969564095139503, 0.019395962357521057, -0.024558788165450096, -0.003480929881334305, -0.03148970752954483, -0.009945513680577278, -0.029067421332001686, 0.011890414170920849, -0.02729932963848114, -0.02653905190527439, 0.004932974930852652, 0.024099085479974747, 0.005087682977318764, -0.042823173105716705, -0.003125101327896118, 0.015992386266589165, 0.015833258628845215, 0.0056932540610432625, -0.001940480200573802, -0.0019603711552917957, 0.006382809951901436, 0.007045844104140997, -0.004048929084092379, -0.011634040623903275, 0.014533710666000843, 0.006829252932220697, 0.033841267228126526, 0.020651306957006454, 0.013048513792455196, 0.025301387533545494, -0.029633210971951485, -0.014365741983056068, 0.03741281107068062, -0.007461345288902521, -0.03709455579519272, -0.001617803587578237, 0.010086961090564728, -0.012323596514761448, -0.038756560534238815, -0.008650386705994606, 0.043282877653837204, -0.006568459328263998, 0.02657441236078739, 0.013472856022417545, 0.002439965959638357, -0.01325184479355812, 0.012314756400883198, -0.010166524909436703, -0.029597848653793335, -0.02326808124780655, -0.009892471134662628, -0.003091949736699462, -0.005905425176024437, 0.04101971909403801, 0.03157811239361763, 0.03124217316508293, -0.03695311024785042, 0.006594980601221323, 0.006130856927484274, -0.016788028180599213, 0.0029239810537546873, -0.025283705443143845, 0.00890676025301218, 0.001501772552728653, -0.02673354186117649, -0.004024617839604616, 0.021818246692419052, -0.01754830591380596, 0.03242679685354233, 0.005361736752092838, -0.0007779601728543639, 0.04087827354669571, 0.0016056479653343558, -0.03509661182761192, -0.0009746603318490088, 0.02790048159658909, 0.037731070071458817, -0.0452985018491745, -0.04158550873398781, 0.014984574168920517, -0.012199830263853073, -0.024099085479974747, 0.038226135075092316, 0.019873347133398056, 0.006320926360785961, 0.005321954842656851, -0.017159326002001762, 0.002100713551044464, 0.0457582026720047, 0.015364713966846466, -0.013075035065412521, -0.025584282353520393, -0.003982625901699066, -0.01557688508182764, 0.006320926360785961, 0.00579933961853385, 0.03200245276093483, -0.04027711972594261, -0.011377668008208275, 0.00676736980676651, -0.008181842975318432, -0.03260360285639763, 0.025761090219020844, 0.002565942471846938, 0.0038964312989264727, 0.020173922181129456, 0.011784329079091549, 0.011855052784085274, 0.0227022934705019, -0.028289461508393288, -0.004910873714834452, 0.0014398894272744656, -0.005052321124821901, -0.00468102190643549, -0.016849910840392113, 0.008137640543282032, 0.012800981290638447, -0.0035339726600795984, -0.02715788222849369, 0.0038013963494449854, -0.06464141607284546, -0.03949915990233421, -0.004126283340156078, 0.0049815974198281765, -0.0115102743729949, 0.024046042934060097, -0.004163855221122503, -0.011775488033890724, -0.028077291324734688, -0.024470383301377296, 0.04862251132726669, 0.016443248838186264, -0.04126725345849991, -0.038367580622434616, -0.034672271460294724, -0.024824002757668495, 0.001052014296874404, -0.009830587543547153, -0.006802731193602085, -0.00907030887901783, -0.015055297873914242, -0.028254099190235138, -0.0453692227602005, -0.009388565085828304, 0.03318707272410393, -0.026026304811239243, 0.033911991864442825, 0.00699280109256506, -0.015019935555756092, 0.04229274392127991, 0.008380752988159657, 0.0038455985486507416, 0.030853193253278732, 0.010953325778245926, -0.013030833564698696, 0.008703429251909256, -0.01870640553534031, -0.01838815025985241, -0.003251077840104699, 0.00917639397084713, 0.023780828341841698, -0.027988886460661888, 0.023922275751829147, 0.01804337278008461, 0.03555631637573242, -0.043919388204813004, -0.0008823880925774574, 0.0010763256577774882, -0.024770960211753845, 0.013481696136295795, 0.042929258197546005, 0.03196709230542183, -0.004769426304847002, -0.008133220486342907, 0.012703736312687397, 0.012129106558859348, -0.007434824015945196, -0.011863892897963524, 0.00012998233432881534, 0.0004166065191384405, 0.02696339227259159, 0.004216897767037153, 0.0231973584741354, 0.025071535259485245, 0.0024863784201443195, 0.010502462275326252, 0.031047683209180832, 0.0024753278121352196, -0.03113608807325363, 0.0036820501554757357, -0.001617803587578237, 0.0112539017572999, -0.06591444462537766, 0.020173922181129456, 0.04894076660275459, 0.006303245667368174, -0.028766846284270287, 0.013799953274428844, -0.010714633390307426, -0.029350316151976585, 0.034495461732149124, 0.019696537405252457, -0.0233034435659647, 0.029403358697891235, 0.007540909573435783, -0.029138145968317986, -0.0030278563499450684, -0.0030123856849968433, -0.008508939296007156, -0.008800674229860306, -0.0018819122342392802, 0.009397405199706554, 0.05017843097448349, 0.011395348235964775, -0.004937394987791777, 0.010025077499449253, -0.034495461732149124, -0.0222249086946249, 0.038650475442409515, 0.005542966537177563, -0.038261495530605316, 0.007178450934588909, -0.003750563831999898, -0.033823587000370026, 0.010979847051203251, -0.010016237385571003, 0.006590560544282198, 0.03194941207766533, -0.003575964830815792, 0.02668049745261669, -0.008442636579275131, -0.019307557493448257, 0.014533710666000843, 0.06322694569826126, 0.03720064088702202, -0.0114041892811656, 0.025884857401251793, -0.01890089549124241, -0.005578328389674425, 0.011961137875914574, -0.009812907315790653, -0.0110328895971179, -0.04947119578719139, 0.0030344866681843996, 0.021871289238333702, 0.03741281107068062, 0.034619227051734924, -0.001386846648529172, -0.0034787196200340986, -0.01803453080356121, 0.03111840784549713, -0.012783300131559372, 0.023993000388145447, 0.0223133135586977, 0.016346003860235214, 0.0010050494456663728, 0.0021018185652792454, 0.021429266780614853, -0.015099500305950642, 0.0010083646047860384, -0.0011255006538704038, 0.005675573367625475, 0.05891280248761177, -0.026079347357153893, 0.013852995820343494, -0.009954353794455528, 0.02335648611187935, -0.0222425889223814, -0.01879481039941311, -0.017044400796294212, -0.01872408762574196, 0.002780323615297675, 0.08409042656421661, -0.013207642361521721, 0.043742578476667404, -0.0036312176380306482, -0.024152128025889397, -0.01738033816218376, 0.02781207673251629, -0.006365128792822361, 0.021871289238333702, -0.03134825825691223, -0.010758835822343826, -0.005909845232963562, 0.017000198364257812, -0.002811265178024769, 0.0443437322974205, -0.052017245441675186, 0.025513557717204094, -0.00224768603220582, -0.0007492286968044937, 0.0011636251583695412, 0.0021846978925168514, -0.004972756840288639, 0.028837569057941437, -0.015842098742723465, 0.007280115969479084, 0.012641852721571922, 0.0065507786348462105, 0.05134537070989609, 0.0002225308708148077, -0.001065827556885779, -0.010679272003471851, 0.0075188083574175835, 0.0220480989664793, -0.0033593736588954926, -0.028536994010210037, 0.01844119280576706, -0.052865929901599884, 0.013110397383570671, 0.03755426034331322, 0.047703105956315994, -0.013578941114246845, -0.024399660527706146, -0.0039207423105835915, 0.0013636404182761908, -0.025036172941327095, -0.008738791570067406, 0.007739820051938295, 0.0017647761851549149, -0.020545221865177155, -0.052936654537916183, -0.024399660527706146, -0.009105670265853405, -0.0008260301547124982, -0.01759250834584236, 0.0012929168296977878, 0.03233839198946953, -0.0006155167939141393, 0.0005539098638109863, 0.00451747328042984, 0.02797120437026024, -0.021553033962845802, -0.029314953833818436, -0.012182149104773998, 0.0018056632252410054, 0.003449988318607211, -0.01150143425911665, -0.015196745283901691, -0.0452631376683712, -0.006515416782349348, -0.023621700704097748, -0.020792754366993904, -0.014082847163081169, 0.034194886684417725, 0.008005033247172832, 0.01754830591380596, -0.01805221289396286, 0.03324011713266373, -0.025053855031728745, 0.015240947715938091, 0.007448084652423859, 0.043070703744888306, -0.01826438307762146, -0.010131163522601128, 0.016867591068148613, 0.01757482811808586, -0.016328323632478714, -0.020792754366993904, 0.025796452537178993, 0.00436718575656414, 0.014321539551019669, 0.000265351845882833, 0.017115123569965363, 0.008685749024152756, 0.019926389679312706, 0.011138975620269775, -0.004619138780981302, -0.016540493816137314, 0.012977790087461472, -0.006789470557123423, -0.00465892069041729, -0.004212477710098028, -0.01858264021575451, 0.01325184479355812, 0.0026167752221226692, -0.004057769663631916, -0.00942392647266388, 0.02208346128463745, 0.02323272079229355, -0.008491259068250656, -0.03727136552333832, -0.023975318297743797, 0.01771627552807331, -0.01790192537009716, 0.023745466023683548, 0.005078842397779226, -0.006382809951901436, 0.04094899445772171, 0.05431576445698738, -0.005450141616165638, -0.016063109040260315, 0.008752051740884781, 0.0027095999103039503, -0.025018492713570595, -0.012836342677474022, -0.0462179072201252, 0.019837984815239906, 0.015055297873914242, -0.016505133360624313, -0.02676890231668949, 0.03499052673578262, -0.011969977989792824, -0.006281144451349974, 0.009874789975583553, -0.016496291384100914, 0.012465043924748898, 0.021111011505126953, 0.004373815841972828, -0.003158253151923418, -0.02728164941072464, 0.008588504046201706, -0.01777815818786621, 0.004994858056306839, 0.04869323596358299, 0.006427011918276548, -0.00217254227027297, -0.004875511862337589, -0.025266025215387344, -0.034460101276636124, 0.011943456716835499, 0.04066609963774681, 0.000514127837959677, -0.0031759340781718493, -0.029951468110084534, 0.005145145580172539, 0.020315369591116905, -0.017132805660367012, 0.008181842975318432, -0.020651306957006454, -0.005962888244539499, 0.02249012142419815, 0.0012597651220858097, -0.020032474771142006, -0.037731070071458817, -0.025053855031728745, 0.003213505959138274, -0.014896169304847717, -0.002073087031021714, 0.014012123458087444, -0.0013360140146687627, -0.014038645662367344, -0.0023007288109511137, -0.010661590844392776, -0.007023742888122797, 0.0450156070291996, 0.0442730076611042, 0.023639380931854248, 0.034141842275857925, -0.01777815818786621, -0.004941815510392189, -0.019590452313423157, -0.0020432504825294018, -0.0442022830247879, 0.01810525543987751, 0.024753278121352196, 0.01842351257801056, -0.025796452537178993, -0.019643494859337807, -0.008566402830183506, 0.042575638741254807, 0.0232150387018919, -0.0225431639701128, -0.010113482363522053, 0.011421870440244675, -0.020704349502921104, 0.039322350174188614, 0.005224709864705801, -0.0029969147872179747, -0.0045108431950211525, 0.014427625574171543, -0.02749381959438324, 0.025460515171289444, 0.025725729763507843, -0.013075035065412521, -0.01856495812535286, 0.0006757423980161548, 0.028696121647953987, -0.013517058454453945, -0.015930503606796265, 0.010811878368258476, -0.022419398650527, -0.02668049745261669, 0.001820028992369771, -0.002336090663447976, -0.026061667129397392, 0.008429375477135181, 0.0229144636541605, -0.01814061775803566, 0.004479901399463415, 0.019130747765302658, 0.019767262041568756, 0.0035715445410460234, -0.039004094898700714, -0.007129828445613384, -0.014259656891226768, -0.026379922404885292, -0.0032532881014049053, 0.008318869397044182, -0.0014774613082408905, -0.029244231060147285, -0.015214425511658192, -0.015329351648688316, -0.019891027361154556, -0.0006818202091380954, 0.009804066270589828, -0.015196745283901691, 0.016257598996162415, 0.038438305258750916, 0.0013603252591565251, -0.038650475442409515, -0.014330380596220493, -0.006665704306215048, -0.010573185980319977, 0.002225585049018264, 0.0115986792370677, 0.009768704883754253, -0.0003409101045690477, -0.017123963683843613, 0.01384415477514267, -0.024134445935487747, 0.013269525952637196, -0.03202013298869133, 0.00774424010887742, 0.020474497228860855, -0.007708878256380558, -0.00941508635878563, -0.012217511422932148, 0.019289877265691757, 0.0458996519446373, 0.0014332589926198125, -0.01840583048760891, 0.012111425399780273, 0.03571544587612152, 0.0047296443954110146, -0.0006983960629440844, -0.025195302441716194, -0.002559312153607607, -0.03511429578065872, 0.015267468988895416, 0.009963194839656353, 0.002983654150739312, -0.01354357972741127, -0.023533295840024948, -0.020474497228860855, 0.021199414506554604, 0.0227376539260149, 0.006714326795190573, 0.008999585174024105, -0.004278780892491341, -0.033204756677150726, 0.011430710554122925, 0.04034784436225891, 0.02678658440709114, 0.02344489097595215, 0.01354357972741127, -0.016478611156344414, -0.00024642772041261196, -0.024541107937693596, 0.0462886318564415, -0.026379922404885292, 0.015152542851865292, -0.05866527184844017, -0.021022606641054153, 0.0232857633382082, 0.0061750588938593864, -0.012394320219755173, 0.0036002760753035545, 0.05371461436152458, 0.008111119270324707, 0.01890089549124241, -0.01817597821354866, -0.00027750746812671423, 0.029615530744194984, -0.010467100888490677, 0.0030742688104510307, -0.020474497228860855, -0.0001359220186714083, 0.0023338806349784136, 0.004906453657895327, 0.021270139142870903, -0.00041329136001877487, 0.02305591106414795, 0.015691811218857765, 0.03223230689764023, -0.008354231715202332, -0.005741876550018787, 0.008358651772141457, 0.03260360285639763, -0.02802424691617489, -0.0013890567934140563, -0.008199523203074932, 0.043848663568496704, -0.005498764105141163, 0.0234979335218668, -0.026079347357153893, 0.029244231060147285, -0.0020653516985476017, 0.01749526336789131, 0.007700037676841021, -0.006250202655792236, -0.01861800253391266, -0.029898423701524734, 0.020686669275164604, -0.02660977467894554, 0.01364082470536232, 0.011085933074355125, 0.02774135395884514, -0.025778772309422493, 0.009052627719938755, 0.008274667896330357, -0.045793566852808, -0.03223230689764023, -0.03117145039141178, -0.023886913433670998, -0.009485810063779354, -0.03191404789686203, -0.014180092141032219, 0.019555089995265007, -0.015665289014577866, -0.016841070726513863, 0.02259620651602745, -0.03576848655939102, 0.025690367445349693, -0.0454753078520298, -0.003843388520181179, -0.022419398650527, -0.024435022845864296, -0.0052335504442453384, -0.0472080372273922, 0.005445721093565226, -0.014118209481239319, 0.03709455579519272, -0.025301387533545494, -0.01865336298942566, -0.0012962319888174534, 0.007540909573435783, 0.007947570644319057, 0.025106897577643394, -0.02724628709256649, 0.03223230689764023, 0.001447624759748578, 0.0014553602086380124, 0.01828206516802311, 0.017230050638318062, 0.009450447745621204, -0.0460764616727829, 0.003438937710598111, -0.01856495812535286, -0.012429682537913322, 0.007311057765036821, -1.911403342091944e-05, 0.0016730563947930932, 0.0036931007634848356, -0.0028046348597854376, 0.023427210748195648, -0.011713605374097824, -0.009202915243804455, -0.005503184162080288, -0.008252566680312157, 0.010290291160345078, 0.029898423701524734, 0.05527053400874138, -0.0013990022707730532, 0.014825445599853992, 0.01776931807398796, -0.023869233205914497, -0.014648636803030968, -0.01883017271757126, -0.0008741001365706325, 0.016319483518600464, -0.01741570048034191, -0.01904234290122986, -0.024346617981791496, 0.005326375365257263, 0.0024686974938958883, -0.02669817954301834, -0.00946812890470028, -0.013039673678576946, -0.0012951268581673503, -0.011846211738884449, -0.02784743905067444, -0.019979432225227356, 0.006303245667368174, -0.042575638741254807, 0.017088603228330612, -0.008102278225123882, -0.00448432145640254, -0.0018609161488711834, -0.019891027361154556, 0.006373969372361898, 0.043070703744888306, -0.016160354018211365, 0.007107727229595184, 0.01833510771393776, 0.020386092364788055, 0.0017194688552990556, -0.04147942364215851, -0.01763671077787876, -0.008897919207811356, -0.038721200078725815, -0.01865336298942566, 0.02694571204483509, 0.04063073918223381, 0.038190774619579315, -0.021358544006943703, -0.03177260234951973, -0.008314449340105057, -0.016743825748562813, 0.056755732744932175, -0.009105670265853405], "id": 66}, {"title": "Carol Bruneau", "text": "Carol Bruneau (born 1956) is a Canadian writer. She lives in Halifax, Nova Scotia, where she is currently a part-time faculty member of the Nova Scotia College of Art and Design University, where she teaches writing in the foundation program. She has a Master's degree from Dalhousie University.Her book Purple for Sky (2000) won the Thomas Head Raddall Award and the fiction category of the Dartmouth Book Awards in 2001.", "vector": [-0.04255025461316109, -0.04091265797615051, -0.0324244424700737, -0.019460123032331467, -0.005799826234579086, -0.002688390202820301, -0.040776193141937256, -0.03392557427287102, -0.013189488090574741, 0.052512310445308685, -0.002818033332005143, -0.03245173394680023, 0.004772915970534086, -0.021206894889473915, 0.010849087499082088, -0.027593526989221573, -0.026706494390964508, 0.03258820250630379, 0.00674485694617033, 0.020715614780783653, 0.00634910399094224, -0.029831577092409134, 0.019596589729189873, 0.013817233964800835, 0.019896816462278366, 0.059171877801418304, 0.024604910984635353, -0.009354778565466404, 0.024563970044255257, -0.026624614372849464, 0.01645786128938198, -0.0003518277080729604, 0.023349419236183167, -0.022271333262324333, -0.046098385006189346, 8.415878255618736e-06, -0.031223535537719727, 0.02673378773033619, -0.03954799473285675, -0.01347606722265482, 0.06086406111717224, -0.040994539856910706, -0.029422178864479065, 0.0031489646062254906, 0.028958192095160484, -0.07167220860719681, -0.03436226770281792, 0.015188721939921379, -0.016976432874798775, 0.029422178864479065, 0.012909730896353722, 0.0021510531660169363, 0.0079969372600317, 0.0014687207294628024, -0.003759652143344283, 0.014451802708208561, -0.009259252808988094, 0.08209824562072754, -0.018682263791561127, 0.0003714447666425258, -0.015925640240311623, -0.0032496086787432432, -0.031223535537719727, -0.006250165868550539, 0.012766441330313683, 0.01705831289291382, 0.007539774291217327, 0.004445396363735199, -0.024031750857830048, -0.0028316800016909838, 0.03392557427287102, -0.05114764720201492, -0.02610604278743267, 0.05726134404540062, 0.0018849435728043318, -0.017413126304745674, 0.005045848898589611, 0.015093195252120495, 0.0083244564011693, -0.02420915849506855, -0.007915057241916656, -0.02800292707979679, -0.009743708185851574, -0.0026986252050846815, -0.02128877490758896, -0.03018639050424099, 0.04729929193854332, -0.06714151799678802, -0.003225727006793022, 0.017508652061223984, -0.012473038397729397, -0.032751962542533875, 0.05698841065168381, 0.013237250968813896, 0.016294101253151894, 0.0017049784073606133, 0.017467712983489037, -0.01674444042146206, -0.03400745242834091, -0.019924109801650047, 0.031687524169683456, 0.042331911623477936, 0.0626654177904129, -0.027115894481539726, 0.01521601527929306, 0.034962717443704605, 0.0026815668679773808, -0.02253061905503273, 0.0022261098492890596, 0.027702700346708298, 0.03597256913781166, -0.004960557445883751, -0.024168217554688454, -0.007717180997133255, -0.02554653026163578, 0.025437356904149055, 0.0170856062322855, 0.02816668711602688, -0.0048377374187111855, -0.006949556525796652, -0.0194464772939682, -0.018709557130932808, -0.029394885525107384, -0.00681650172919035, 7.830831600585952e-05, -0.026269802823662758, -0.05412261560559273, 0.0021510531660169363, 0.04702635854482651, -0.0010149696609005332, 0.013141724281013012, -0.012507155537605286, -0.03212421387434006, -0.02953135222196579, -0.028084807097911835, -0.02364964596927166, -0.005605361890047789, -0.01789075881242752, 0.011517773382365704, 0.005380191840231419, 0.03302489593625069, 0.007580714300274849, 0.07745838910341263, -0.006055701058357954, -0.06523098796606064, -0.06594061851501465, -0.022025693207979202, 0.024714084342122078, -0.0006550392135977745, -0.057861797511577606, 0.016157634556293488, 0.004366928245872259, 0.02955864556133747, 0.017781585454940796, 0.0073623680509626865, 0.03392557427287102, -0.02772999368607998, -0.02486419677734375, -0.0026099218521267176, 0.03171481564640999, -0.031660228967666626, 0.006506040692329407, -0.03313406556844711, -0.00493326410651207, 0.017440419644117355, -0.039165887981653214, -0.039848219603300095, 0.04396950826048851, 0.019501063972711563, 0.017904404550790787, -0.015543535351753235, -0.007034848444163799, 0.04467913508415222, -0.007553420960903168, -0.04462454840540886, -0.003626597346737981, 0.025587469339370728, -0.010507920756936073, -0.018054518848657608, 0.010364631190896034, -0.0016196868382394314, 0.00016248042811639607, 0.011340366676449776, -0.03398016095161438, 0.005885118152946234, 0.008965848945081234, 0.009375249035656452, 0.010787677019834518, -0.022298626601696014, -0.05666089430451393, -0.020251629874110222, -0.05136599391698837, 0.017754292115569115, -0.0415131114423275, 0.04945546016097069, 0.0006149521796032786, -0.05344028398394585, -0.00014499566168524325, -0.045825451612472534, -0.021015841513872147, -0.001722036744467914, -0.0201015155762434, -0.008112933486700058, -0.0019378244178369641, 0.01291655469685793, 0.06550392508506775, 0.014615562744438648, 0.04596192017197609, 0.016826320439577103, -0.015407068654894829, 0.04334176331758499, -0.005110670812427998, 0.017972638830542564, -0.01754959300160408, -0.024263745173811913, -0.0012734030606225133, -0.04459725320339203, -0.005509835202246904, -0.024441150948405266, 0.004680801182985306, 0.04593462496995926, 0.0380195677280426, 0.011538242921233177, 0.0010055875172838569, -0.013414657674729824, 0.022639792412519455, -0.027347886934876442, 0.08952202647924423, -0.014001463539898396, -0.03378910571336746, -0.01718113385140896, 0.031414590775966644, -0.028357740491628647, 0.068342424929142, 0.005670183338224888, 0.020865729078650475, -0.038756486028432846, -0.001960000256076455, 0.020838435739278793, -0.0009143255883827806, -0.02566934935748577, -0.0009927938226610422, -0.00801058392971754, -0.03711888939142227, 0.01978764310479164, -0.06326587498188019, 0.020306216552853584, -0.021643588319420815, -0.02676108106970787, 0.0183547455817461, -0.021206894889473915, 0.001458485727198422, 0.009388895705342293, -0.011265309527516365, 0.006622036918997765, 0.03359805420041084, -0.03392557427287102, 0.0036811840254813433, 0.028466911986470222, 0.061409927904605865, 0.0008064317516982555, 0.012377511709928513, 0.009040906094014645, 0.050519898533821106, -0.022735320031642914, -0.06479429453611374, -0.032779254019260406, -0.04923711344599724, -0.000881061889231205, -0.008147050626575947, 0.023008253425359726, -0.06577685475349426, 0.0657222718000412, 0.04421514645218849, -0.053140055388212204, 0.0038142388220876455, 0.0030824372079223394, -0.07374650239944458, -0.03258820250630379, 0.005748651456087828, -0.003633420681580901, -0.020715614780783653, 0.002077702432870865, -0.031414590775966644, -0.02427739091217518, -0.010746737010776997, 0.012131872586905956, 0.007321428041905165, 0.07232724875211716, -0.04023032635450363, 0.00872703269124031, 0.005195962265133858, -0.008651976473629475, -0.028494205325841904, 0.027184126898646355, -0.021029489114880562, 0.030814137309789658, -0.05390426889061928, 0.035890690982341766, 0.013380540534853935, 0.034526024013757706, -0.03367993235588074, -0.013987816870212555, -0.027279654517769814, -0.007123551331460476, 0.004097406752407551, -0.011742942966520786, 0.008235753513872623, 0.04156769812107086, -0.003565187333151698, -0.039165887981653214, 0.007573890965431929, 0.015052255243062973, -0.047626812011003494, 0.04478830844163895, 0.003411662532016635, -0.017849819734692574, 0.032997600734233856, -0.0016700088744983077, -0.01611669361591339, 0.020742908120155334, -0.013612533919513226, -0.007689887657761574, -0.032724667340517044, 0.039411526173353195, -0.0055575985461473465, -0.00429528346285224, -0.02467314340174198, 0.010030288249254227, 0.025355476886034012, -0.04530688002705574, -0.02072926238179207, 0.03971175104379654, 0.038510847836732864, 0.04525229334831238, 0.009184195660054684, -0.011415422894060612, 0.019269069656729698, 0.009914292022585869, 0.022926373407244682, -0.020865729078650475, -0.0021544648334383965, 0.02974969893693924, 1.384655297442805e-05, -0.015093195252120495, -0.03215150907635689, 0.027593526989221573, 0.040312204509973526, 0.0021834641229361296, 0.0036914190277457237, 0.0007079200004227459, 0.07571161538362503, 0.0032803136855363846, -0.012739147990942001, 0.012036345899105072, -0.022134866565465927, 0.0363546758890152, -0.05502329394221306, -0.00657427404075861, 0.004749034531414509, 0.028685258701443672, 0.02629709616303444, 0.007150844670832157, 0.012015875428915024, 0.050274260342121124, -0.024850551038980484, 0.02231227420270443, 0.018504858016967773, 0.026706494390964508, 0.027470707893371582, -0.022571559995412827, 0.058735184371471405, -0.017699705436825752, -0.07915057241916656, -0.018900610506534576, -0.03105977736413479, -0.058516837656497955, 0.012902908027172089, -0.026037808507680893, -0.008078817278146744, -0.01353747770190239, 0.05202103033661842, -0.02763446792960167, 0.004994674120098352, -0.016007520258426666, 0.044488079845905304, -0.012206928804516792, 0.0319877490401268, 0.04991944879293442, -0.02190287411212921, -0.03485354408621788, -0.06943415850400925, 0.040093857795000076, -0.04255025461316109, 0.011176606640219688, -0.0015633944422006607, -0.01839568465948105, 0.031632937490940094, 0.0639754980802536, 0.019801290705800056, -0.05709758400917053, 0.009409365244209766, -0.03818332776427269, -0.004093995317816734, 0.04121288284659386, 0.005185727030038834, 0.024918783456087112, -0.028030220419168472, 0.008897616527974606, 0.004261166788637638, -0.004984438885003328, 0.00463644927367568, 0.011354013346135616, 0.05698841065168381, -0.01293020136654377, 0.031223535537719727, 0.04268672317266464, 0.03258820250630379, -0.048281848430633545, 0.03550858423113823, 0.026256155222654343, -0.0023557529784739017, -0.04241378977894783, 0.002323342254385352, 0.005840766243636608, 0.01667620614171028, -0.038074154406785965, -0.00871338602155447, 0.014233455993235111, 0.031141655519604683, 0.00932066235691309, -0.06086406111717224, 0.03493542596697807, 0.02000598981976509, 0.019214482977986336, 0.051857270300388336, -0.04620755836367607, -0.025232655927538872, 0.02934029884636402, 0.026365328580141068, -0.025914989411830902, -0.019924109801650047, -0.03550858423113823, -0.023144720122218132, -0.010903674177825451, 0.026269802823662758, -0.023349419236183167, -0.015952933579683304, -0.004527276381850243, -0.020278923213481903, -0.05035613849759102, 0.028112100437283516, 0.008883969858288765, -0.049619220197200775, 0.026215216144919395, 0.017808878794312477, -0.04241378977894783, 0.034553319215774536, -0.07434695214033127, 0.019842229783535004, -0.03436226770281792, 0.023267539218068123, -0.05567833408713341, -0.014915788546204567, 0.000462706753751263, -0.002430809661746025, -0.003957528620958328, -0.0450066514313221, -0.03247902914881706, 0.0018798260716721416, 0.05281253904104233, -0.00415540486574173, -0.042113564908504486, -0.012670914642512798, 0.056933823972940445, -0.018996138125658035, 0.05477765575051308, -0.0005833943141624331, -0.012466215528547764, 0.023704232648015022, 0.023008253425359726, -0.013066668063402176, 0.00721225468441844, 0.03736452758312225, -0.001951470971107483, 0.0067789736203849316, -0.03987551108002663, -0.03065037727355957, -0.007260018028318882, -0.0038824721705168486, -0.0003995909937657416, 0.05245772376656532, 0.046316731721162796, -0.05797097086906433, -0.005073142237961292, 0.010214517824351788, -0.002338694641366601, -0.056060440838336945, -0.001481514540500939, 0.0028487383387982845, 0.02972240559756756, 0.03913859277963638, 0.04637131839990616, -0.03578151762485504, -0.008706563152372837, 0.005642889998853207, 0.004059878643602133, -0.030131803825497627, 0.02112501487135887, -0.008235753513872623, -0.015639061108231544, 0.060918647795915604, 0.024727730080485344, 0.0037630638107657433, 0.006369573995471001, -0.010412394069135189, 0.013598887249827385, -0.013469244353473186, -0.03179669380187988, 0.009054552763700485, 0.05024696886539459, -0.012084108777344227, 0.016143986955285072, -0.03728264942765236, 0.0075943609699606895, -0.025341829285025597, 0.058080144226551056, 0.013735353946685791, 0.022203100845217705, -0.023690585047006607, 0.017686059698462486, 0.030350150540471077, 0.01783617213368416, -0.013360070995986462, 0.03769204765558243, -0.016375981271266937, 0.04571627825498581, -0.025287242606282234, -0.02663826197385788, -0.001462750369682908, -0.03307948261499405, 0.0008213577675633132, -0.007928703911602497, -0.06850618869066238, 0.018805084750056267, -0.017699705436825752, 0.01689455285668373, 0.004360104911029339, -0.019610237330198288, 0.004564804490655661, -0.044761013239622116, 0.04855478182435036, -0.01120389997959137, 0.03690054267644882, 0.028494205325841904, -0.0019292952492833138, -0.019487416371703148, -0.02128877490758896, 0.0315510556101799, 0.008467746898531914, -0.0049366760067641735, -0.004899147432297468, 0.06801490485668182, -0.025464650243520737, -0.0026713318657130003, -0.007915057241916656, -0.007403308060020208, -0.00390635384246707, -0.014697442762553692, -0.035808809101581573, -0.011026493273675442, 0.006594744045287371, 0.04959192872047424, -0.046289440244436264, -0.01898249052464962, 0.0060898177325725555, -0.009655005298554897, -0.022762613371014595, -0.01995140314102173, 0.03769204765558243, -0.009825588203966618, -0.02685660868883133, -3.1651165954826865e-06, 0.007580714300274849, -0.016853613778948784, 0.002002645982429385, -0.03799227625131607, -0.008617859333753586, 0.004175874870270491, 0.007348721381276846, 0.0025229244492948055, -0.012022699229419231, 0.039657168090343475, -0.034962717443704605, -0.007710357662290335, 0.03108707070350647, 0.014547329396009445, 0.030077217146754265, -0.02863067202270031, -0.04620755836367607, 0.0052369022741913795, 0.002659390913322568, -0.040967244654893875, -0.006850618403404951, -0.007880941033363342, 0.0015096607385203242, 0.025027956813573837, 0.008242577314376831, 0.038483552634716034, -0.02433197759091854, -0.0415131114423275, -0.008604212664067745, -0.0034304268192499876, 0.038292501121759415, 0.013844527304172516, -0.027457060292363167, -0.0209749024361372, 0.009996171109378338, -0.01194764208048582, 0.007130374666303396, 0.00352083588950336, -0.01978764310479164, 0.012984788045287132, 0.02505525015294552, 0.017413126304745674, -0.06708693504333496, 0.015584474429488182, -0.00986652821302414, 0.022298626601696014, -0.008051523938775063, 0.011142490431666374, -0.006120522506535053, 0.006082994397729635, -0.005472306627780199, -0.009771001525223255, 0.04145852476358414, 0.026965782046318054, 0.0367913693189621, -0.015925640240311623, 0.03599986433982849, -0.005601949989795685, 0.04421514645218849, -0.028466911986470222, 0.015693647786974907, -0.03086872398853302, -0.039848219603300095, 0.0052266670390963554, -0.013196310959756374, 0.05079283192753792, 0.005540539976209402, -0.003971175290644169, 0.04724470525979996, 0.02396351844072342, 0.014465449377894402, 0.02034715563058853, 0.013612533919513226, -0.00871338602155447, -0.014588269405066967, -0.024468444287776947, -0.009388895705342293, -0.04170416295528412, -0.034526024013757706, -0.0205382090061903, 0.0024768670555204153, -0.011831645853817463, 0.03395286574959755, 0.0024376329965889454, 0.0007057876791805029, 0.004875265993177891, 0.0007224195869639516, 0.0022073457948863506, 0.027034014463424683, 0.016225866973400116, 0.0013373717665672302, 0.004926440771669149, -0.015761882066726685, 0.00634910399094224, 0.001500278594903648, 0.00852915644645691, 0.016594326123595238, -0.023158365860581398, 0.014206163585186005, -0.007321428041905165, -0.021275127306580544, 0.0016947434050962329, -0.005677006673067808, 0.015175075270235538, 0.021616294980049133, -0.0024359270464628935, 0.006239931099116802, -0.0004678242257796228, -0.003288842737674713, 0.009757354855537415, -0.004670565947890282, -0.003943881951272488, -0.00588852958753705, -0.005922646261751652, -0.02579217031598091, 0.011094726622104645, 0.025601116940379143, -0.015516242012381554, -0.023376712575554848, -0.04216815158724785, 0.045634400099515915, 0.012800558470189571, -0.012295631691813469, -0.008522333577275276, 0.03065037727355957, 0.006611802149564028, -0.054996002465486526, -0.0027805049903690815, 0.06130075454711914, -0.0051686689257621765, -0.04017573967576027, 0.02268073335289955, -0.009156902320683002, 0.0631021112203598, 0.006915440317243338, -0.010992377065122128, 0.02717048116028309, -0.00930701568722725, 0.002365987980738282, 0.004288460128009319, 0.002077702432870865, 0.03447143733501434, 0.017031019553542137, 0.0035788340028375387, -0.062064968049526215, 0.018245572224259377, 0.00760118430480361, -0.01976034976541996, 0.015611767768859863, 0.041867922991514206, 0.005861236248165369, 0.012616327963769436, 0.022516973316669464, 0.007901410572230816, 0.01269820798188448, 0.01686725951731205, -0.0006264665280468762, 0.0037664754781872034, -0.007464717607945204, 0.028985485434532166, -0.015911994501948357, -0.006956379860639572, -0.0015557181322947145, -0.0036914190277457237, -0.03040473721921444, 0.02309013344347477, -0.005465483292937279, -0.020156102254986763, 0.0027634466532617807, -0.005830531474202871, -0.0009791471529752016, -0.04023032635450363, 0.011729296296834946, 0.014001463539898396, -0.034307681024074554, -0.05354945734143257, 0.016662560403347015, 0.0024205746594816446, -0.004626214504241943, 0.006819913629442453, -0.01711289957165718, 0.006403690669685602, -0.012841498479247093, -0.0010448216926306486, -0.025437356904149055, 0.014956728555262089, -0.04978298023343086, -0.02955864556133747, 0.007867294363677502, 0.005202785599976778, -0.024727730080485344, 0.01888696476817131, -0.009184195660054684, -0.024700436741113663, -0.01277326513081789, -0.016266807913780212, -0.0019088252447545528, -0.026378976181149483, 0.02934029884636402, -0.01779523305594921, -0.005076554138213396, -0.007191784679889679, -0.016321394592523575, -0.008256223984062672, -0.008065170608460903, -0.0250825434923172, -0.025751229375600815, 0.011169783771038055, -0.023226598277688026, 0.003162611275911331, -0.021698174998164177, 0.002925500739365816, -0.0034338384866714478, -0.02187558077275753, 0.0033383117988705635, 0.07811342924833298, -0.030568497255444527, -0.014247102662920952, 0.008078817278146744, -0.01562541536986828, -0.007321428041905165, 0.024782316759228706, 0.01465650275349617, -0.06299293786287308, -0.02345859259366989, -0.020592795684933662, 0.009416189044713974, 0.03796498104929924, -0.002367693930864334, 0.006939321756362915, -0.01255491841584444, -0.020824788138270378, 0.03157835081219673, -0.027907399460673332, 0.021520767360925674, -0.007184961345046759, -0.006611802149564028, -0.0032291386742144823, 0.0004211271007079631, 0.05556916072964668, -0.047381170094013214, -0.015243308618664742, 0.07036212831735611, -0.01764511875808239, -0.019282717257738113, 0.020388096570968628, -0.002899913117289543, -0.004407868254929781, 0.03534482419490814, 0.006154639180749655, -0.013360070995986462, 0.013837703503668308, 0.01162012293934822, 0.00852915644645691, 0.01851850561797619, 0.0029272064566612244, -0.008522333577275276, 0.0012571976985782385, -0.011865762993693352, 0.00877479650080204, -0.0075261276215314865, 0.03660031780600548, 0.036081742495298386, 0.005458660423755646, -0.014888495206832886, -0.042386494576931, -0.05011050030589104, 0.0026764492504298687, 0.026187922805547714, 0.0015795998042449355, 0.031114362180233, 0.00011023935076082125, -0.00525054894387722, 0.009873352013528347, -0.01275961846113205, -0.038292501121759415, -0.0419498048722744, -0.0008051524055190384, 0.007819530554115772, 0.01954200305044651, 0.011340366676449776, 0.0035413058940321207, 0.0186140313744545, -0.006908616982400417, 0.004882089328020811, 0.0367913693189621, -0.026406269520521164, -0.012090932577848434, 0.0166489128023386, 0.023949870839715004, 0.032315269112586975, -0.03335241228342056, -0.027811873704195023, -0.04301424324512482, 0.012732325121760368, 0.03176940232515335, 0.013687590137124062, -0.037200767546892166, 0.03559046611189842, -0.014165223576128483, 0.026119688525795937, -0.022612499073147774, -0.03709159418940544, -0.025819461792707443, -0.008733856491744518, 0.025901341810822487, -0.01348971389234066, -0.007635300979018211, 0.015911994501948357, -0.00036611405084840953, -0.018832378089427948, 0.004049643408507109, -0.032779254019260406, -0.004755857866257429, 0.003503777552396059, -0.026938488706946373, 0.0052266670390963554, 0.02349953167140484, 0.004223638214170933, -0.03643655776977539, -0.01988316886126995, 0.00587488291785121, -0.027238713577389717, 0.017931697890162468, 0.010801323689520359, -0.010173577815294266, 0.004080348648130894, -0.06151910126209259, -0.0024649263359606266, -0.001286196755245328, -0.01050109788775444, 0.014219810254871845, 0.0350445993244648, 0.00494008744135499, 0.05122952535748482, -0.007184961345046759, -0.006086406297981739, -0.0016248043393716216, -0.02371787838637829, -0.04847290366888046, 0.03346158564090729, -0.04817267507314682, 0.01954200305044651, 0.014629209414124489, -0.0027651526033878326, -0.003977998625487089, 0.00031238034716807306, -0.03157835081219673, 0.010303220711648464, 0.008419983088970184, 0.029886163771152496, -0.00031195388874039054, 0.048936888575553894, -0.02255791239440441, -0.03490813076496124, -0.018095457926392555, -0.02564205601811409, 0.0017484771087765694, 0.0046159797348082066, 0.006639095488935709, -0.029476765543222427, -0.014151576906442642, 0.02931300550699234, -0.03127812221646309, -0.026774728670716286, -0.009948408231139183, 0.014206163585186005, 0.06796032190322876, -0.007908234372735023, 0.01542071532458067, 0.042495667934417725, 0.024563970044255257, 0.029231125488877296, -0.014847556129097939, -0.06823325157165527, -0.01699008047580719, -0.01275961846113205, -0.0017049784073606133, -0.00018327025463804603, -0.011913525871932507, -0.020033283159136772, -7.425696821883321e-05, 0.040066566318273544, 0.00782635435461998, 0.01888696476817131, 0.004257754888385534, 0.0010303221642971039, 0.016485154628753662, 0.01978764310479164, 0.004250931553542614, 0.046944476664066315, 0.030814137309789658, 0.014451802708208561, 0.011852116324007511, 0.012445745058357716, -0.021711820736527443, 0.006004526279866695, -0.015243308618664742, 0.02240779995918274, 0.0136330034583807, -0.01795899122953415, 0.007928703911602497, 0.0011667886283248663, 0.030786843970417976, 0.034089334309101105, 0.01745406538248062, 0.005107258912175894, -0.02156170830130577, 0.012500331737101078, -0.04825455695390701, 0.010153108276426792, 0.04721741005778313, 0.03179669380187988, 0.05666089430451393, -0.02498701773583889, 0.009702768176794052, -0.010248634964227676, -0.020169749855995178, -0.019473770633339882, 0.022858139127492905, 0.025532882660627365, 0.010030288249254227, 0.0367094911634922, -0.02542370930314064, 0.07451070845127106, -0.012520802207291126, 0.02766176126897335, 0.011190253309905529, -0.019214482977986336, 0.012513978406786919, 0.022789906710386276, 0.020183395594358444, -0.0003586510429158807, -0.04506123811006546, 0.06326587498188019, -0.005533716641366482, 0.018341097980737686, 0.04481559991836548, -0.008549626916646957, 0.0008081375854089856, 0.014247102662920952, -0.015802821144461632, -0.0079969372600317, 0.012984788045287132, 0.015120488591492176, -0.013517007231712341, -0.0065367454662919044, 0.035181064158678055, 0.014397216029465199, -0.0029135597869753838, 0.005462071858346462, -0.02797563374042511, 0.01851850561797619, 0.052512310445308685, 0.02433197759091854, -0.03226068243384361, 0.03482625260949135, 0.018709557130932808, 0.03911130130290985, 0.00486161932349205, 0.012984788045287132, 0.005182315595448017, 0.02816668711602688, 0.002234638901427388, -0.006987085100263357, 0.019965048879384995, -0.016471507027745247, 0.009470775723457336, 0.011504126712679863, 0.0087611498311162, 0.016157634556293488, -0.02433197759091854, -0.027770934626460075, -0.03597256913781166, -0.014451802708208561, 0.005035614129155874, 0.010091697797179222, -0.0008179461001418531, -0.011169783771038055, -0.013046197593212128, -0.002986910520121455, -0.013387364335358143, 0.006311575882136822, -0.02632438950240612, -0.01854579709470272, 0.011169783771038055, 0.01370806060731411, 0.010494274087250233, -0.00010949304851237684, 0.008303986862301826, 0.03395286574959755, 0.029394885525107384, -0.0012606093659996986, -0.010043934918940067, -0.0010388512164354324, -0.024632204324007034, -0.024850551038980484, 0.02228498086333275, -0.024495737627148628, -0.0032956660725176334, -0.02561476267874241, 0.0004750740190502256, -0.0266109686344862, -0.010248634964227676, -0.0367094911634922, 0.010562507435679436, -0.01544800866395235, -0.005424543749541044, 0.018873317167162895, 0.02041538991034031, -0.02274896577000618, 0.02299460582435131, -0.017003726214170456, -0.029831577092409134, 0.02296731248497963, -0.031441882252693176, -0.021916519850492477, 0.00814022682607174, -0.005260783713310957, -0.028521498665213585, 0.008283516392111778, -0.03348888084292412, 0.03960258141160011, -0.004701271187514067, 0.03463519737124443, 0.019364597275853157, 0.017495006322860718, -0.01813639886677265, -0.011224370449781418, 0.023049192503094673, -0.022544266656041145, 0.06359338760375977, 0.0019378244178369641, -0.0008836206397973001, -0.030295563861727715, -0.005219843704253435, -0.03291572257876396, 0.038510847836732864, -0.0038858838379383087, 0.041594989597797394, 0.011558713391423225, 0.009129608981311321, 0.05379509553313255, 0.011729296296834946, 0.014151576906442642, -0.015052255243062973, -0.015024961903691292, -0.005049260798841715, 0.013209957629442215, -0.010357807390391827, 0.01956929638981819, 0.015843762084841728, 0.016880907118320465, -0.033188652247190475, 0.0029988514725118876, 0.011476833373308182, 0.005922646261751652, -0.056060440838336945, -0.02134336158633232, 0.030268270522356033, 0.02822127379477024, 0.005680418107658625, 0.024700436741113663, -0.01589834690093994, 0.002679860917851329, -0.010978730395436287, 0.035399410873651505, -0.048309143632650375, 0.00463644927367568, 0.00010848021338460967, 0.02931300550699234, 0.03269737586379051, 0.006250165868550539, 0.028385033831000328, 0.018504858016967773, 0.003933647181838751, 0.0023284596391022205, -0.0006780679686926305, 0.0035174242220818996, 0.011408600024878979, -0.015502595342695713, -0.026815667748451233, 0.04656236991286278, -0.016580680385231972, -0.024468444287776947, 0.0021834641229361296, 0.01608940027654171, -0.012268338352441788, -0.014533682726323605, -0.0367913693189621, 0.006775562185794115, -0.02168452739715576, -0.016253160312771797, -0.02819398045539856, -0.001092584920115769, 0.013196310959756374, -0.025601116940379143, 0.03395286574959755, 0.02107042819261551, -0.002104995772242546, -0.009545831941068172, -0.01159282959997654, -0.019460123032331467, 0.009996171109378338, -0.011510949581861496, -0.007805883884429932, -0.017495006322860718, 0.027429766952991486, -0.022325919941067696, 0.014479096047580242, 0.011429069563746452, 0.022080279886722565, -0.00391317717730999, 0.009600418619811535, 0.004220226779580116, -0.006314987316727638, 0.05082012712955475, 0.0025246303994208574, 0.024482090026140213, 0.00760800763964653, 0.026338035240769386, 0.008802089840173721, 0.03354346752166748, 0.012145519256591797, -0.026474501937627792, 0.01733124628663063, 0.0055951266549527645, -0.0009612359572201967, -0.02887631207704544, 0.001180435298010707, 0.018654970452189445, -0.031660228967666626, -0.007150844670832157, -0.004663742613047361, 0.004073525313287973, -0.028794432058930397, -0.0019292952492833138, -0.001096849562600255, 0.0011335249291732907, -0.049400873482227325, -0.006884735077619553, 0.006881323643028736, 0.010337337851524353, 0.00020064841373823583, -0.01655338704586029, 0.03796498104929924, 0.01596658118069172, 0.004994674120098352, -0.0034543084912002087, 0.004639861173927784, 0.0402030311524868, -0.018122751265764236, 0.009136432781815529, 0.0067994436249136925, -0.01565270870923996, -0.01655338704586029, -0.016444213688373566, 0.01089002750813961, -0.03771934285759926, 0.0367094911634922, 0.015038608573377132, -0.018190985545516014, 0.020210688933730125, 0.017153840512037277, 0.036982424557209015, -0.06386632472276688, -0.0019889993127435446, -0.013967346400022507, -0.0012094343546777964, 0.003974586725234985, -0.03269737586379051, -0.006622036918997765, 0.03436226770281792, -0.04290506988763809, 0.013482891023159027, -0.04380574822425842, -0.025505589321255684, 0.01143589336425066, 0.0190097838640213, 0.018927903845906258, 0.007567067630589008, 0.024850551038980484, -0.03935693949460983, -0.007955997250974178, -0.022448740899562836, 0.02128877490758896, -0.012473038397729397, -0.014042403548955917, 0.026406269520521164, 0.003411662532016635, -0.02999533712863922, -0.017726998776197433, -0.01895519718527794, -0.02707495540380478, -0.018504858016967773, -0.019241776317358017, -0.016321394592523575, 0.01973305642604828, 0.015161428600549698, -0.007785413879901171, -0.002577511128038168, 0.008065170608460903, -0.02822127379477024, 0.032943014055490494, 0.0023779289331287146, -0.017604179680347443, -0.016157634556293488, -0.013592063449323177, 0.009225135669112206, 0.02240779995918274, -0.020674675703048706, 0.021820994094014168, 0.010548860765993595, 0.0064412192441523075, -0.006079582963138819, 0.023513179272413254, 0.013885467313230038, 0.009764178656041622, -0.0019275894155725837, 0.02228498086333275, -0.029258418828248978, -0.01910531148314476, -0.009716414846479893, -0.012036345899105072, -0.002043585991486907, 0.01089002750813961, 0.016362333670258522, 0.03425309434533119, -0.045607104897499084, -0.010200871154665947, -0.029149245470762253, 0.011108373291790485, -0.023663291707634926, 0.03280654922127724, -1.7498097804491408e-05, 0.02190287411212921, 0.008979495614767075, 0.013571593910455704, -0.00549277663230896, -0.0008844735566526651, 0.004274813458323479, 0.016512447968125343, -0.015229661948978901, -0.056933823972940445, -0.05043802037835121, -0.045634400099515915, -0.04721741005778313, 0.002662802580744028, -0.012568565085530281, -0.014247102662920952, 0.015830114483833313, -0.002168111503124237, 0.016485154628753662, 0.008672446012496948, -0.02175276167690754, -0.018846023827791214, -0.02479596436023712, 0.0012358748354017735, 0.0083244564011693, 3.912750617018901e-05, 0.009798294864594936, 0.02586040273308754, -0.00029596174135804176, 0.006871088407933712, -0.027702700346708298, 0.01973305642604828, -0.025805816054344177, 0.011551889590919018, -0.006352515891194344, -0.015270601958036423, -0.03062308393418789, 0.001891766907647252, 0.02863067202270031, 0.020237982273101807, 0.006734622176736593, -0.025314535945653915, 0.013291837647557259, 0.0027805049903690815, -0.013298660516738892, -0.0069632031954824924, 0.028903605416417122, -0.00415540486574173, 0.026051456108689308, -0.012343395501375198, 0.031196242198348045, 0.016375981271266937, -0.0009561184560880065, 0.02860337868332863, 0.02333577163517475, 0.0031677286606281996, 0.02294001914560795, -0.023608705028891563, -0.019773997366428375, -0.0026099218521267176, -0.046535078436136246, -0.008911263197660446, 0.0021954048424959183, 0.04350552335381508, 0.018627677112817764, -0.02586040273308754, 0.02934029884636402, 0.012739147990942001, -0.013373717665672302, 0.011135666631162167, -0.01795899122953415, 0.008031053468585014, -0.024468444287776947, 0.014042403548955917, -0.004264578223228455, 0.007082611788064241, -0.012268338352441788, 0.00822893064469099, 0.031878575682640076, -0.008767972700297832, 0.03987551108002663, -0.007799060549587011, 0.02156170830130577, 0.0060727596282958984, -0.010514744557440281, -0.013783116824924946, 0.013783116824924946, -0.003270078683272004, -0.017276659607887268, 0.0100507577881217, -0.010780854150652885, 0.005926058162003756, -0.006826736964285374, -0.001264873892068863, 0.03657302260398865, 0.03621821105480194, 0.01845027133822441, 0.0183547455817461, -0.011831645853817463, -0.01176341250538826, 0.006601567380130291, 0.0033417234662920237, 0.015038608573377132, 0.0016418626764789224, 0.03649114444851875, 0.017222072929143906, -0.019091663882136345, -0.007669417653232813, 0.0003049173392355442, 0.01442450936883688, 0.0010832028929144144, -0.027457060292363167, 0.013209957629442215, 0.011108373291790485, 0.027689054608345032, 0.011347189545631409, -0.0075943609699606895, 0.03463519737124443, 0.01486120279878378, 0.018996138125658035, 0.009614065289497375, 0.05032884702086449, -0.019623883068561554, -0.021179601550102234, -0.013018904253840446, 0.03624550253152847, -0.005680418107658625, 0.006601567380130291, -0.004042820073664188, 0.019269069656729698, -0.012084108777344227, -0.025505589321255684, -0.02194381318986416, 0.016853613778948784, -0.008263046853244305, -0.035890690982341766, -0.007915057241916656, 0.010432864539325237, -0.019364597275853157, 0.01602116785943508, 0.040039271116256714, 0.002475161338225007, -0.00399164529517293, -0.027088601142168045, -0.0005680418107658625, -0.003111436264589429, 0.009211488999426365, -0.0038961186073720455, 0.037146180868148804, -0.012043168768286705, 0.0032496086787432432, -0.024045398458838463, -0.033215947449207306, -0.019610237330198288, 0.008570096455514431, -0.04549793154001236, 0.026215216144919395, 0.015789175406098366, -0.0014533682260662317, 0.021247833967208862, -0.017999932169914246, 0.0047797393053770065, -0.004926440771669149, 0.006492394022643566, -0.00416905153542757, -0.005383603740483522, 0.0071576680056750774, 0.026338035240769386, 0.023936225101351738, 0.016935493797063828, 0.0350445993244648, 0.028248567134141922, 0.01786346547305584, 0.015407068654894829, -0.01316219475120306, -0.005601949989795685, -0.019801290705800056, 0.01633504033088684, -0.013325953856110573, -0.02253061905503273, -0.02865796536207199, 0.006724386941641569, 0.02950405888259411, 0.0038927069399505854, 0.014697442762553692, 0.00658109737560153, -0.009095492772758007, 0.02788010612130165, 0.02066102810204029, -0.019037077203392982, 0.006584508810192347, -0.0484183169901371, -0.01543436199426651, 0.011831645853817463, 0.002297754865139723, 0.006386632565408945, -0.013592063449323177, -0.060481954365968704, -0.014465449377894402, -0.011476833373308182, -0.020265275612473488, -0.020579148083925247, -0.022380506619811058, 0.016785379499197006, 0.009614065289497375, -0.009811941534280777, -0.002775387605652213, -0.011545066721737385, -0.025723936036229134, 0.005298311822116375, 0.018777791410684586, -0.007239548023790121, 0.044051386415958405, -0.03239714726805687, -0.05709758400917053, -0.0388929545879364, 0.013189488090574741, 0.01043968740850687, -0.013414657674729824], "id": 67}, {"title": "Prince Edward\u2014Hastings", "text": "Prince Edward\u2014Hastings is a federal electoral district in Ontario, Canada, that has been represented in the House of Commons since 1968. Its population in 2006 was 113,227.", "vector": [0.010339894331991673, 0.07722382992506027, -0.02827201969921589, -0.016543831676244736, 0.029038473963737488, -0.0029139702674001455, 0.013224942609667778, -0.016890903934836388, -0.02940000779926777, -0.0149675402790308, 0.009906052611768246, -0.02358652837574482, -0.026232963427901268, -0.0027458565309643745, -0.016601676121354103, 0.03138121962547302, -0.02921201102435589, -0.025394203141331673, 0.015545995905995369, 0.016717368736863136, 0.00785253569483757, -0.05692003667354584, -0.07369524985551834, -0.021561933681368828, 0.01326832640916109, 0.02902401238679886, -0.02394806407392025, 0.014504775404930115, 0.014808464795351028, 0.0177875105291605, -0.05087517574429512, 0.012133107520639896, 0.0362691693007946, 0.020679788663983345, -0.002641011495143175, 0.03569071367383003, 0.03184398263692856, -0.042024802416563034, 0.027751410380005836, -0.038091305643320084, 0.02415052242577076, -0.025914812460541725, -0.011084656231105328, 0.012270490638911724, 0.022935766726732254, -0.022357311099767685, -0.043355248868465424, 0.007306617684662342, -0.010643583722412586, 0.010723121464252472, 0.02789602428674698, 0.009515595622360706, -0.06814207136631012, 0.032277826219797134, -0.003864806843921542, 0.022588692605495453, 0.025495432317256927, 0.08167793601751328, -0.007375309709459543, 0.007411463186144829, -0.05801910161972046, 0.007447616662830114, -0.01833704486489296, 0.03349258005619049, 0.00045892319758422673, 0.06536548584699631, -0.00850329827517271, 0.029877234250307083, 0.011301577091217041, -0.01852504163980484, 0.006540164351463318, 0.012841715477406979, 0.05859755724668503, 0.06172121688723564, -0.014468621462583542, 0.03719469904899597, 0.011923417448997498, 0.006084630265831947, -0.03774423152208328, 0.00033328987774439156, -0.004389032255858183, -0.024005908519029617, 0.007910381071269512, 0.023311762139201164, -0.036934394389390945, -0.0025379741564393044, 0.013470785692334175, -0.06270459294319153, -0.027187414467334747, 0.05804802477359772, -0.024179445579648018, 0.01982656680047512, 0.04112819582223892, -0.036384861916303635, 0.016775213181972504, 0.013167096301913261, 0.0217210091650486, -0.003253812901675701, 0.0265944991260767, 0.02040502242743969, 0.01631244830787182, 0.03279843553900719, 0.023976987227797508, 0.042198337614536285, 0.05558958649635315, -0.027071723714470863, -0.05686219036579132, -0.03138121962547302, 0.055300358682870865, 0.02598712034523487, -0.010889427736401558, 0.03424457460641861, 0.015184461139142513, 0.010065128095448017, 0.004128727130591869, -0.026334192603826523, 0.01587860658764839, 0.05590773746371269, 0.020260408520698547, 0.028966166079044342, -0.014425237663090229, 0.023470837622880936, 0.03759961575269699, -0.024439750239253044, 0.016124451532959938, -0.0030477382242679596, 0.016326909884810448, 0.02791048400104046, -0.01650044694542885, -0.021966852247714996, -0.020954554900527, 0.026623420417308807, 0.012581409886479378, -0.0790170431137085, 0.027635717764496803, 0.03612455353140831, 0.02148962765932083, 0.027635717764496803, 0.009031138382852077, 0.03195967525243759, -0.044772468507289886, 0.0113305002450943, 0.03048461303114891, -0.01008682046085596, 0.03386857733130455, 0.021185938268899918, 0.037339311093091965, 0.020867787301540375, -0.012769408524036407, -0.007736844476312399, -0.052841924130916595, -0.0022415155544877052, 0.006146091036498547, -0.018756425008177757, 0.0006222917581908405, -0.02491697669029236, 0.02321053296327591, 0.052870847284793854, -0.02188008464872837, 0.05232131481170654, -0.03945067524909973, -0.00701015954837203, 0.004768643528223038, 0.02360098995268345, -0.014013088308274746, 0.02921201102435589, -0.006626932416111231, 0.020144717767834663, -0.027057262137532234, -0.001793212490156293, 0.024844670668244362, -0.017353668808937073, 0.016688445582985878, -0.023904679343104362, -0.036963317543268204, -0.010151896625757217, -0.012306643649935722, -0.020694250240921974, 0.031207682564854622, -0.008373145014047623, -0.037888843566179276, -0.04063650965690613, 0.0415620394051075, -0.007035466842353344, -0.0211280919611454, -0.01198126282542944, 0.040173742920160294, 0.0021041324362158775, -0.02190900780260563, -0.045379843562841415, -0.052870847284793854, 0.0453220009803772, 0.029081856831908226, 0.03138121962547302, 0.03167044743895531, -0.002360822167247534, 0.020650867372751236, 0.023673297837376595, -0.022530848160386086, 0.021677624434232712, 0.020694250240921974, 0.010267587378621101, 0.006435318849980831, -0.026840342208743095, 0.021561933681368828, 0.04228510707616806, 0.04451216012239456, 0.03681870177388191, 0.010874966159462929, 0.050817329436540604, 0.021851161494851112, -0.03129445016384125, 0.0029826618265360594, 0.02264653891324997, -0.04075219854712486, 0.058076947927474976, 0.008640681393444538, 0.021894546225667, 0.0052567156963050365, -0.004374570678919554, 0.07126573473215103, 0.011670342646539211, -0.001473254174925387, -0.06860484182834625, -0.013644322752952576, 0.056399423629045486, 0.00318150594830513, 0.02096901647746563, -0.010303741320967674, 0.013926319777965546, -0.02056409791111946, -0.0144107760861516, 0.03664516657590866, 0.04676814004778862, -0.04231403023004532, 0.01263202540576458, 0.025668969377875328, -0.03496764227747917, -0.015603841282427311, 0.02452651970088482, -0.01759951375424862, 0.02653665281832218, 0.0038503454998135567, -0.030918454751372337, 0.03242243826389313, 0.07265403121709824, 0.039016831666231155, 0.055097900331020355, 0.02824309654533863, 0.036008864641189575, 0.047433361411094666, -0.05316007509827614, 0.01777304895222187, 0.03372396528720856, 0.018756425008177757, -0.010527892969548702, -0.028286481276154518, -0.0073355408385396, 0.008568374440073967, 0.008900986053049564, -0.02410713955760002, -0.019349342212080956, 0.016760751605033875, 0.012031877413392067, -0.023976987227797508, -0.04419401288032532, 0.03785992041230202, -0.004150419030338526, -0.035285793244838715, -0.0314679853618145, 0.021431781351566315, -0.018944421783089638, -0.006572702433913946, 0.03204644098877907, -0.019595185294747353, 0.011359422467648983, -0.020274870097637177, -0.050209950655698776, -0.04621860757470131, 0.036355938762426376, -0.022371772676706314, -0.0013729282654821873, -0.06831561028957367, -0.014381853863596916, -0.0254809707403183, -0.028763707727193832, 0.018235813826322556, 0.04989179968833923, 0.049862876534461975, -0.0545772910118103, -0.010267587378621101, -0.008553912863135338, 0.05414344742894173, 0.01495307870209217, 0.0012454873649403453, -0.057729873806238174, -0.041619881987571716, -0.03343473747372627, -0.03467841446399689, -0.031091991811990738, -0.033781807869672775, 0.009060061536729336, 0.020621944218873978, -0.0044541084207594395, -0.0004519184585660696, -0.021619779989123344, -0.0460161454975605, 0.024627748876810074, 0.012848946265876293, -0.05504005402326584, -0.003839499317109585, 0.04130173474550247, 0.05281300097703934, 0.009378212504088879, -0.025394203141331673, -0.04361555725336075, 0.0006109937676228583, 0.013658784329891205, -0.013767244294285774, -0.05281300097703934, -0.025770198553800583, -0.030455689877271652, -0.03288520500063896, -0.006120783742517233, 0.019595185294747353, -0.042718950659036636, 0.029645852744579315, 0.015256768092513084, -0.016934288665652275, -0.001983018359169364, -0.04844566062092781, -0.03719469904899597, -0.006532933562994003, -0.03028215281665325, 0.06756361573934555, 0.02098347805440426, 0.012834484688937664, -0.010520662181079388, 0.017888741567730904, 0.053593914955854416, -0.016052143648266792, 0.08023180067539215, 0.005075948312878609, -0.01814904622733593, -0.004880719352513552, 0.03195967525243759, 0.02076655812561512, 0.029472315683960915, -0.012689870782196522, -0.05781664326786995, 0.0005558597040362656, 0.006612471304833889, 0.05501113086938858, -0.021590856835246086, 0.02280561439692974, 0.009255290031433105, -0.05365176126360893, -0.011930647306144238, 0.061258453875780106, -0.07566200196743011, 0.002494589891284704, -0.001463312073610723, -0.020318254828453064, 0.053217917680740356, 0.031178759410977364, 0.015126614831387997, 0.007107773795723915, 0.05307330563664436, -0.006467857398092747, -0.015415842644870281, -0.000620935985352844, 0.0171945933252573, -0.039392828941345215, 0.016008760780096054, 0.025119436904788017, 0.04410724341869354, -0.038640838116407394, -0.00664139399304986, -0.017454899847507477, -0.029645852744579315, -0.014765080064535141, 0.01774412766098976, -0.00955897942185402, 0.0407232791185379, -0.021388396620750427, -0.008734679780900478, 0.023167148232460022, -0.018091199919581413, -0.03624024614691734, -0.006102707237005234, 0.009370981715619564, 0.01628352701663971, 0.04832996800541878, -0.003969651646912098, 0.007386155426502228, 0.002449398161843419, -0.0006751662003807724, 0.0018673271406441927, 0.05258161947131157, -0.053767453879117966, -0.027968330308794975, -0.005741172470152378, -0.016196757555007935, 0.0005667057703249156, 0.04373124614357948, -0.0059327855706214905, 0.003908190876245499, -0.027447720989584923, -0.016326909884810448, 0.022689921781420708, 0.00954451784491539, -0.02433852106332779, 0.0018781732069328427, -0.012660947628319263, 0.022892381995916367, 0.008177916519343853, -0.037339311093091965, 0.013940781354904175, 0.02169208601117134, -0.016688445582985878, -0.004725259728729725, -0.014757849276065826, -0.01188003271818161, -0.0183081217110157, -0.0407232791185379, 0.0177875105291605, -0.02133055217564106, -0.00879975687712431, 0.047057367861270905, -0.003595463465899229, -0.021417319774627686, -0.01814904622733593, -0.01036881748586893, 0.016919827088713646, -0.07566200196743011, 0.037339311093091965, -0.04870596528053284, -0.03143906593322754, 0.0516560897231102, 0.026637881994247437, -0.043846938759088516, -0.04364447668194771, 0.019305957481265068, -0.021446242928504944, -0.0006656759069301188, 0.022487463429570198, -0.02244407869875431, -0.04185126721858978, 0.0250615905970335, 0.013644322752952576, 0.0016476947348564863, 0.027158493176102638, -0.016341371461749077, -0.01814904622733593, 0.013716629706323147, -0.0011523921275511384, -0.05851078778505325, -0.009009446948766708, -0.028864936903119087, -0.016052143648266792, -0.03372396528720856, 0.0400291308760643, 0.01757059060037136, -0.010065128095448017, -0.02117147669196129, 0.020433945581316948, -0.022675462067127228, 0.007924842648208141, -0.01384678203612566, 0.03288520500063896, -0.03407103568315506, -0.0030947376508265734, -0.02809848263859749, 0.023485299199819565, -0.0222416203469038, 0.008676834404468536, 0.016804136335849762, -0.02115701511502266, 0.005636326968669891, 0.03349258005619049, 0.010057897306978703, -0.01929149590432644, 0.03305874019861221, -0.012588640674948692, -0.02490251511335373, -0.01346355490386486, -0.05631265789270401, -0.025741275399923325, 0.009269751608371735, 0.032682742923498154, 0.001627810299396515, 0.014548159204423428, 0.028879398480057716, -0.01477954164147377, 0.03213321045041084, -0.006453395821154118, -0.020477330312132835, -0.026146195828914642, 0.05107763409614563, 0.026073887944221497, 0.009074523113667965, 0.029125241562724113, 0.03739715740084648, -0.03291412442922592, 0.00041124579729512334, -0.007209003437310457, 0.005629096645861864, 0.011988493613898754, -0.06889406591653824, -0.003293581772595644, 0.02957354485988617, 0.03178613632917404, 0.008626219816505909, -0.00018980575259774923, 0.025032667443156242, -0.011713726446032524, 0.036355938762426376, 0.015835223719477654, -0.06415072828531265, 0.02733202837407589, 0.022212697193026543, 0.01644260250031948, -0.014251700602471828, -0.0015835223020985723, 0.01888657733798027, 0.025567740201950073, 0.025683430954813957, 0.0033640810288488865, 0.012805561535060406, -0.017498282715678215, -0.03514118120074272, -0.038640838116407394, 0.0043962630443274975, 0.004280571825802326, 0.016688445582985878, -0.008365915156900883, -0.02264653891324997, 0.00021014208323322237, 0.0215474721044302, 0.014381853863596916, -0.04234295338392258, 0.024280676618218422, 0.021229322999715805, -0.015256768092513084, -0.031525831669569016, -0.010484508238732815, 0.0027567027136683464, 0.01869857870042324, -0.029240932315587997, 0.018944421783089638, 0.03242243826389313, 0.007924842648208141, -0.0005906574660912156, 0.022877920418977737, 0.01570507138967514, -0.017859818413853645, -0.011916186660528183, 0.010180819779634476, 0.009313136339187622, -0.04804074019193649, 0.02526405081152916, -0.007715152110904455, 0.012660947628319263, -0.02990615740418434, -0.0426032580435276, 0.013535861857235432, 0.01684752106666565, 0.02955908328294754, -0.026695728302001953, 0.016052143648266792, 0.027418797835707664, -0.02002902701497078, 0.004135957919061184, -0.02561112307012081, 0.026912648230791092, 0.02653665281832218, 0.02711510844528675, -0.007259618490934372, 0.034302420914173126, 0.011995724402368069, -0.01929149590432644, -0.011265424080193043, 0.019190266728401184, 0.015126614831387997, -0.011308807879686356, -0.010390509851276875, -0.014837387017905712, -0.051164403557777405, -0.026883726939558983, 0.0075199236162006855, 0.02242961712181568, 0.03123660571873188, 0.006417242344468832, 0.00599063141271472, 0.0051735625602304935, 0.03178613632917404, -0.020159179344773293, -0.014063702896237373, 0.031901828944683075, 0.055676355957984924, 0.02806955948472023, 0.05443267524242401, -0.009920514188706875, -0.01667398400604725, -0.02546650916337967, -0.015126614831387997, 0.010723121464252472, -0.019031191244721413, 0.014273392967879772, 0.0013901012716814876, -0.04167772829532623, -0.03389750048518181, 0.008105609565973282, 0.020274870097637177, -0.017816433683037758, 0.021070247516036034, 0.04419401288032532, 0.03719469904899597, 0.032104287296533585, -0.019320419058203697, 0.051742859184741974, -0.027635717764496803, 0.03505441173911095, 0.04847458377480507, 0.0189010389149189, -0.019985642284154892, -0.025104975327849388, -0.011959570460021496, 0.003781653707846999, -0.0008143570739775896, -0.01590752974152565, 0.0031724676955491304, -0.0051988703198730946, 0.0018266544211655855, 0.013810628093779087, 0.018481658771634102, 0.019219188019633293, 0.026334192603826523, 0.0057050189934670925, 0.02018810249865055, 0.03444703295826912, 0.02357206679880619, 0.013441863469779491, -0.03158367797732353, 0.008445451967418194, -0.022950228303670883, -0.008387606590986252, -0.03612455353140831, 0.044425394386053085, -0.006717316340655088, -0.0011677573202177882, 0.05093301832675934, -0.013239403255283833, -0.0015437535475939512, -0.043875861912965775, -0.011207577772438526, -0.03540148586034775, -0.009305905550718307, 0.022675462067127228, -0.034504879266023636, -0.016138913109898567, -0.030455689877271652, -0.046131838113069534, 0.002201746916398406, -0.0009689131984487176, 0.019493956118822098, -0.02524958923459053, 0.009313136339187622, -0.008778064511716366, -0.004808412399142981, -0.013868474401533604, 0.0037780385464429855, 0.017816433683037758, 0.04092573747038841, -0.004801182076334953, -0.009869899600744247, -0.051366861909627914, 0.006475087720900774, 0.003085699398070574, 0.01574845425784588, 0.014757849276065826, -0.02096901647746563, -0.005596558563411236, 0.023615451529622078, 0.012111415155231953, 0.011930647306144238, 0.0055097900331020355, 0.02018810249865055, 9.614565351512283e-05, 0.006026784889400005, 0.018279198557138443, -0.017266901209950447, 0.02861909382045269, 0.007903150282800198, -0.02153301052749157, 0.006207552272826433, 0.018105661496520042, 0.036992236971855164, -0.025365279987454414, 0.004844565875828266, -0.005777325946837664, 0.01963857002556324, 0.0006281666574068367, 0.005357945337891579, 0.02322499454021454, -0.04205372557044029, 0.009804823435842991, 0.018814269453287125, -0.03343473747372627, 0.04381801560521126, 0.0023481682874262333, 0.02601604349911213, -0.00971805490553379, 0.013825089670717716, 0.023152686655521393, -0.00523502379655838, 0.028734784573316574, -0.006999313365668058, 0.01836596615612507, -0.023702220991253853, 0.06970390677452087, 0.009161291643977165, 0.008365915156900883, 0.038264840841293335, -0.009313136339187622, 0.015184461139142513, 0.011070194654166698, -0.006084630265831947, 0.01644260250031948, 0.024598825722932816, -0.03803345933556557, 0.04882165789604187, 0.010043435730040073, 0.014013088308274746, 0.04118604212999344, 0.023167148232460022, -0.0036099248100072145, -0.006062938366085291, 0.00859729666262865, 0.030831685289740562, 0.041648805141448975, -0.016211219131946564, 0.02581358328461647, -0.021937930956482887, 0.009566210210323334, 0.02114255353808403, 0.021475166082382202, -0.03086060844361782, -0.06137414276599884, 0.03609563410282135, -0.0006435319082811475, -0.0007971841841936111, 0.017874279990792274, -0.04081004485487938, -0.01310925092548132, 0.003358658170327544, -0.0009553556446917355, -0.003810576628893614, 0.03164152428507805, 0.02825755812227726, -0.030744917690753937, 0.009248059242963791, 0.017932124435901642, 0.05625481158494949, 0.012791100889444351, 0.027794793248176575, 0.017483821138739586, -0.002387937158346176, 0.012747716158628464, 0.019927797839045525, 0.023138225078582764, 0.03352150321006775, -0.008344222791492939, -0.00504341023042798, 0.023051457479596138, 0.016558293253183365, -0.044454317539930344, -0.007386155426502228, 0.027968330308794975, 0.0030603918712586164, 0.014620466157793999, -0.04095466062426567, -0.04419401288032532, 0.0006394646479748189, -0.03942175209522247, -0.04656567797064781, -0.014822926372289658, -0.009920514188706875, -0.04994964599609375, 0.00908175390213728, -0.0071294656954705715, 0.0009119714959524572, 0.0027639332693070173, 0.018496118485927582, -0.0060159387066960335, 0.02809848263859749, 0.028676938265562057, 0.006757085211575031, 0.01947949454188347, -0.0005418502259999514, 0.004211880266666412, 0.012610333040356636, -0.007143927272409201, 0.0072704642079770565, 0.019016729667782784, 0.01798997074365616, 0.022906843572854996, 0.014280623756349087, 0.02153301052749157, -0.01188003271818161, 0.038409456610679626, 0.004219111055135727, -0.009934975765645504, -0.05428806319832802, 0.02617511712014675, -0.01010128203779459, 0.009963898919522762, -0.013203250244259834, -0.024598825722932816, 0.03991343826055527, -0.003083891700953245, 0.00917575228959322, -0.004034728277474642, -0.03164152428507805, 0.015054307878017426, -0.012603102251887321, 0.0189010389149189, -0.02938554622232914, -0.03537256270647049, 0.012125876732170582, -0.0047903358936309814, -0.04352878779172897, 0.0211280919611454, -0.020347177982330322, 0.041793420910835266, 0.03517010435461998, 0.02041948400437832, 0.02355760708451271, 0.048734888434410095, -0.004783105105161667, 0.02433852106332779, 0.0031164297834038734, -0.025365279987454414, -0.018582887947559357, -0.05738279968500137, -0.010202511213719845, -0.0189010389149189, -0.021894546225667, -0.03783100098371506, -0.018611811101436615, 0.05350714549422264, 0.017715204507112503, 0.01346355490386486, 0.012538026086986065, -0.0106508145108819, 0.012856177054345608, 0.0189010389149189, 0.01495307870209217, -0.026840342208743095, -0.046478912234306335, 0.03311658650636673, -0.011417267844080925, -0.013637091964483261, 0.007169234566390514, 0.005549558904021978, 0.001905288314446807, 0.038438376039266586, 0.03421565145254135, -0.0032574282959103584, -0.0384962223470211, -0.021099168807268143, 0.025350818410515785, -0.012538026086986065, -0.06796853989362717, -0.04020266607403755, -0.013456324115395546, -0.02078101970255375, 0.006861930247396231, 0.02542312629520893, -0.0030766609124839306, -0.022718844935297966, -0.05214777588844299, 0.008510529063642025, 0.009761438705027103, 0.05093301832675934, 0.0030314691830426455, 0.001921557355672121, 0.05000749230384827, 0.007838074117898941, -0.004276956431567669, 0.032653819769620895, -0.008582836017012596, 0.009638517163693905, -0.0010141050443053246, 0.02770802564918995, 0.005929170176386833, -0.03945067524909973, 0.035083334892988205, 0.0005129274795763195, 0.03476518392562866, 0.024237291887402534, -0.02601604349911213, 0.022487463429570198, 0.0036731932777911425, 0.014822926372289658, -0.01741151511669159, -0.015126614831387997, -0.032856281846761703, 0.009689131751656532, 0.034302420914173126, -0.0012825445737689734, 0.008351453579962254, -0.001025854959152639, -0.01945057138800621, 0.01570507138967514, 0.005715864710509777, 0.005520636215806007, -0.0013702168362215161, 0.00439264765009284, -0.021836699917912483, -0.015112154185771942, 0.04728874936699867, -0.034880876541137695, -0.025206204503774643, -0.007230695337057114, 0.005383252631872892, 0.007866996340453625, 0.0014850040897727013, 0.00532540725544095, 0.01911795884370804, -0.0008731064735911787, 0.012986329384148121, 0.034909799695014954, 0.011438960209488869, 0.030397843569517136, 0.009855438023805618, 0.005394098814576864, -0.05145363137125969, -0.04390478506684303, 0.05596558377146721, -0.0040058051235973835, 0.022530848160386086, -0.031554754823446274, -0.00668839318677783, 0.024222830310463905, 0.01281279232352972, 0.0016205796273425221, 0.02319607138633728, 0.004269725643098354, -0.012494642287492752, -0.02770802564918995, 0.01302248239517212, -0.008488836698234081, 0.026681266725063324, 0.027982791885733604, 0.0025831658858805895, -0.030947377905249596, -0.0025361664593219757, 0.0010611045872792602, 0.015300151892006397, 0.024251753464341164, -0.020665327087044716, 0.014526467770338058, -0.012682639993727207, 0.03349258005619049, -0.02692710980772972, 0.0028922781348228455, -0.04135957732796669, -0.022227158769965172, -0.024280676618218422, 0.011207577772438526, 0.033232275396585464, 0.023441914469003677, 0.07496785372495651, -0.007744074799120426, 0.023456376045942307, -0.0018637117464095354, 0.02658003754913807, 0.028127405792474747, 0.008727449923753738, -0.0007113196770660579, 0.02318160980939865, 0.019493956118822098, -0.026710189878940582, 0.02564004622399807, 0.04338417202234268, 0.04196695610880852, 0.01741151511669159, -0.026796957477927208, 0.02039056085050106, 0.007274079602211714, -0.023716680705547333, 0.027057262137532234, -0.03308766335248947, 0.043789092451334, -0.001374735962599516, -0.018828731030225754, -0.01665952242910862, -0.012306643649935722, 0.03221997991204262, 0.021012401208281517, 0.002337322337552905, -0.02117147669196129, 0.00034684743150137365, -0.030831685289740562, 0.025018205866217613, -0.009797592647373676, 0.05327576398849487, -0.02245854027569294, 0.002033633179962635, -0.01908903568983078, 0.020332716405391693, 0.013384017162024975, 0.001044835546053946, -0.033752888441085815, -0.0171945933252573, -0.009472210891544819, -0.011077425442636013, 0.021243782714009285, 0.010216972790658474, -0.01741151511669159, -0.004793951287865639, -0.0111208101734519, 0.02169208601117134, -0.03276951238512993, 0.044627852737903595, -0.012241567485034466, -0.013622630387544632, 0.01664506085216999, 0.009573440998792648, -0.0056797112338244915, 0.012993560172617435, -0.006637778598815203, -0.008517758920788765, -0.04054974019527435, 0.008300838060677052, -0.04133065417408943, 0.03560394421219826, -0.021026862785220146, 0.0028398556169122458, 0.00696677528321743, -0.02733202837407589, 0.004924103617668152, -0.0035810018889606, 0.02900955080986023, 0.013340633362531662, -0.016572754830121994, 0.03149690851569176, 0.012689870782196522, -0.031352296471595764, 0.03942175209522247, -0.008112840354442596, 0.01758505217730999, 0.011489574797451496, -0.01402031909674406, 0.04627645015716553, -0.0037744231522083282, -0.003270082175731659, -0.013087558560073376, -0.026811419054865837, 0.004309494514018297, -0.010202511213719845, 0.03878545016050339, -0.04115711897611618, -0.02824309654533863, 0.03820699453353882, -0.039971284568309784, 0.0012780254473909736, 0.03759961575269699, 0.008720219135284424, 0.025943735614418983, -0.003271889640018344, 0.011742649599909782, 0.006395550444722176, 0.019739799201488495, 0.005632712040096521, -0.0021222091745585203, 0.006428088527172804, -0.0282286349684, -0.01907457411289215, 0.009992821142077446, 0.03534363955259323, 0.011279884725809097, 0.014056472107768059, 0.013781705871224403, 0.021749932318925858, 0.019320419058203697, -0.0010918349726125598, 0.00859729666262865, 0.027765870094299316, -0.005350714549422264, 0.012046338990330696, 0.0037888844963163137, 0.02770802564918995, -0.0035105026327073574, 0.009580671787261963, -0.027028340846300125, 0.04827212542295456, -0.01495307870209217, 0.011344960890710354, -0.03942175209522247, -0.01667398400604725, -0.034157805144786835, -0.03702116012573242, 0.019884413108229637, 0.010925580747425556, -0.03615347668528557, 0.004135957919061184, -0.030542457476258278, 0.01780197210609913, 0.025133898481726646, -0.008257454261183739, 0.030918454751372337, -0.011590804904699326, -0.006084630265831947, -0.021836699917912483, 0.02075209654867649, -0.02229946479201317, 0.015169999562203884, -0.006927006412297487, -0.016399217769503593, 0.004092573653906584, -0.0007641941192559898, 0.017613975331187248, 0.021648703143000603, -0.026666805148124695, -0.004530030768364668, 0.007917611859738827, 0.01346355490386486, -0.0002883239940274507, 0.02023148536682129, 0.013731091283261776, -0.023485299199819565, -0.010708659887313843, 0.00683662248775363, 0.021764393895864487, 0.005748402792960405, -0.04769366979598999, 0.04211157187819481, -0.018293660134077072, -0.020795481279492378, -0.003058584174141288, -0.0113305002450943, -0.016731830313801765, -0.008517758920788765, -0.022039160132408142, 0.005676095839589834, 0.024193907156586647, -0.012697101570665836, 0.013543092645704746, 0.013167096301913261, 0.007266848813742399, -0.008185147307813168, -0.0012744100531563163, -0.010310972109436989, 0.02487359195947647, -0.022212697193026543, -0.03366611897945404, -0.013615399599075317, 0.010766505263745785, 0.007219849620014429, -0.005661634728312492, -0.004812027793377638, 0.05145363137125969, -0.043673399835824966, 0.005021717865020037, 0.02020256407558918, -0.016775213181972504, -0.04092573747038841, 0.01610998995602131, 0.0010276626562699676, 0.02057855948805809, 0.004443262238055468, 0.029877234250307083, -0.008076687343418598, -0.0434420183300972, -0.024410828948020935, 0.04176449775695801, -0.0003461695450823754, -0.0012780254473909736, 0.028315404430031776, 0.0034924258943647146, 0.010390509851276875, -0.007780228275805712, 0.01927703432738781, 0.02658003754913807, -0.0038864989764988422, 0.024078216403722763, 0.010455586016178131, 0.012118645943701267, -0.019204728305339813, 0.0282286349684, 0.01610998995602131, -0.006149706430733204, -0.02825755812227726, 0.010151896625757217, 0.01644260250031948, -0.008365915156900883, -0.007939303293824196, 0.03010861575603485, -0.0220680832862854, 0.006026784889400005, 0.008821448311209679, 0.036008864641189575, -0.0045083388686180115, 0.0008645200286991894, 0.0008102898136712611, -0.036037787795066833, 0.013904627412557602, -0.019595185294747353, 0.013326171785593033, -0.007910381071269512, 0.0009372789063490927, -0.008546682074666023, -0.002302976557984948, -0.030831685289740562, -0.013666014187037945, 0.0025759353302419186, 0.014837387017905712, 0.014446930028498173, 0.041070349514484406, -0.030397843569517136, 0.01699213497340679, -0.012219875119626522, -0.0076066916808485985, 0.017107825726270676, -0.01702105812728405, -0.0012536218855530024, 0.009898821823298931, -0.01686198264360428, -0.009667440317571163, -0.03193075209856033, 0.011619728058576584, -0.0017010211013257504, 0.0016296179965138435, 0.01189449429512024, -0.026912648230791092, 0.023976987227797508, -0.03392642363905907, 0.04026051238179207, 0.0046493373811244965, 0.03462057188153267, -0.04323955997824669, -0.02695603296160698, 0.024251753464341164, 0.011431729421019554, -0.04491708055138588, -0.013311710208654404, 0.008011610247194767, -0.0033243123907595873, -0.008705757558345795, 0.013600938022136688, 0.027765870094299316, 0.020318254828453064, -0.006739008240401745, -0.02020256407558918, -0.04081004485487938, 0.023427452892065048, -0.002415052382275462, -0.00017726501391734928, 0.04054974019527435, -0.021099168807268143, -0.004750567022711039, 0.005672480445355177, -0.002489167032763362, 0.022342849522829056, -0.029790466651320457, -0.007230695337057114, 0.0028398556169122458, 0.03447595611214638, -0.004363724961876869, 0.009204675443470478, -0.00815622415393591, -0.008792526088654995, -0.014034779742360115, 0.005177177954465151, 0.013897396624088287, -0.007035466842353344, -0.01610998995602131, -0.01451200619339943, -0.024439750239253044, -0.0299350805580616, -0.0509619414806366, 0.02148962765932083, 0.0006073784315958619, -0.0020715943537652493, -0.004721644334495068, -0.014468621462583542, -0.020520713180303574, -0.010419432073831558, 0.003080276306718588, 0.024960361421108246, 0.016413679346442223, -0.005195254925638437, -0.007118619978427887, -0.033810731023550034, 0.05897355452179909, -0.021619779989123344, 0.023282838985323906, 0.021359475329518318, 0.01816350780427456, -0.008445451967418194, -0.04697059839963913, 0.029313240200281143, -0.017845356836915016, -0.02036163955926895, -0.05125116929411888, 0.007339156232774258, 0.0052024852484464645, -0.0006656759069301188, 0.0006516664288938046, -0.02491697669029236, 0.0053687915205955505, -0.018582887947559357, -0.031525831669569016, 0.013600938022136688, 0.026073887944221497, 0.0381491482257843, -0.02021702565252781, -0.023094842210412025, -0.007975457236170769, -0.010759275406599045, -0.005578481592237949, -0.030571380630135536, 0.04861919581890106, -0.0038503454998135567, -0.0037888844963163137, 0.019016729667782784, -0.020057950168848038, -0.011200346983969212, 0.02153301052749157, -0.04676814004778862, -0.005423021502792835, -0.009638517163693905, -0.002984469523653388, -0.04153311625123024, -0.0029880849178880453, -0.04095466062426567, 0.018799807876348495, -0.005809864029288292, 0.0022234388161450624, 0.044280778616666794, -0.00014145048044156283, -0.004573415033519268, 0.014822926372289658, 0.007664537522941828, 0.012002954259514809, -0.030600303784012794, 0.015039847232401371, 0.015473688952624798, 0.002977238968014717, -0.01644260250031948, 0.015300151892006397, 0.005632712040096521, 0.007389770820736885, 0.019146881997585297, -0.007151158060878515, 0.01029651053249836, 0.026464344933629036, 0.00402388209477067, 0.01780197210609913, -0.0016531178262084723, 0.010918349958956242, -0.0023734758142381907, -0.0001516186457592994, 0.01289956085383892, -0.00824299268424511, 0.008445451967418194, 0.01739705353975296, 0.011207577772438526, 0.05498220771551132, 0.0026446268893778324, 0.0062979357317090034, 0.0056507885456085205, 0.04549553617835045, 0.019392725080251694, -0.010260356590151787, -0.0027621258050203323, 0.0299350805580616, 0.012856177054345608, 0.0403762049973011, -0.027809254825115204, -0.002415052382275462, -0.006467857398092747, 0.03389750048518181, -0.009284213185310364, 0.005929170176386833, 0.020824402570724487, 0.024063754826784134, -0.001542849699035287, 0.03297197073698044, 0.07282756268978119, 0.011077425442636013, -0.023817911744117737, -0.004052804782986641, 0.05101978778839111, -0.025379741564393044, 0.010267587378621101, 0.00871298834681511, -0.009689131751656532, 0.023340685293078423, -0.02302253432571888, 0.0016314256936311722, 0.0007565115229226649, 0.00692339101806283, -0.05521359294652939, 0.015647225081920624, -0.03817807137966156, 0.006088245660066605, -0.0014904271811246872, -0.010535123758018017, 0.010867735370993614, 0.03817807137966156, 0.0039190370589494705, -0.03644270449876785, 0.013615399599075317, 0.0077729979529976845, 0.03294304758310318, -0.012046338990330696, -0.02036163955926895, -0.005090409889817238, 0.006048476789146662, 0.002331899246200919, 0.012292182072997093, -0.00787422712892294, 0.004801182076334953, 0.003973267041146755, -0.005444713868200779, -0.02092563360929489, 0.023817911744117737, -0.005086794495582581, 0.005618250463157892, -0.04402047395706177, -0.016919827088713646, -0.008886524476110935, 0.006319628097116947, -0.03178613632917404, 0.028026176616549492, -0.007371694315224886, -0.022979149594902992, -0.030397843569517136, -0.00229213060811162, 0.01924811117351055, 0.022371772676706314, -0.01812012307345867, -0.014150471426546574, -0.016240142285823822, -0.026146195828914642, -0.0009083561017177999, 0.027245260775089264, -0.025871429592370987, -0.04925549775362015, -0.0509619414806366, 0.0025668968446552753, -0.010838812217116356, 0.002584973582997918, 0.0018402120331302285, -0.02338407002389431, -0.013384017162024975, -0.01486631017178297, -0.010896658524870872, 0.020867787301540375, 0.027245260775089264, 0.030397843569517136, -0.02491697669029236, 0.018018893897533417, -0.0005847825086675584, 0.023311762139201164, 0.007968226447701454, 0.0018456350080668926, 0.005853248294442892, 0.021778855472803116, 0.029616929590702057, 0.0060990918427705765, -0.02190900780260563, -0.01887211576104164, 0.02448313497006893, 0.03221997991204262, -0.038091305643320084, 0.012892330065369606, 0.013138174079358578, -0.0009463172755204141, -0.01981210522353649, 0.009501134045422077, 0.025582201778888702, 0.03028215281665325, -0.0028814321849495173, -0.009956668131053448, 0.028156328946352005, 0.011525728739798069, 0.028141867369413376, -0.006616086233407259, 0.01177157275378704, 0.017686281353235245, -0.012935714796185493, 0.005047025624662638, 0.012169260531663895, 0.0027223569341003895, 0.024063754826784134, 0.050788406282663345, -0.0005454656202346087, 0.0020426714327186346, -0.005357945337891579, -0.030368922278285027, -0.02376006543636322, 0.009566210210323334, 0.0046493373811244965, -0.02733202837407589, -0.015126614831387997, -0.022313926368951797, -0.04228510707616806, 0.013976934365928173, -0.001876365509815514, 0.016746290028095245, 0.0013241211418062449, -0.03890114277601242, 0.02919754944741726, -0.030166462063789368, 0.002651857677847147, 0.011974032036960125, -0.013600938022136688, 0.027722487226128578, -0.006525702774524689, 0.030021848157048225, -0.034736260771751404, -0.024454211816191673, -0.007830843329429626, 0.0006019553984515369, -0.0019089035922661424, 0.015010924078524113, -0.012010185047984123, -0.020838864147663116, 0.0021294397301971912, 0.011626958847045898, -0.007400617003440857, 0.008763602934777737], "id": 68}, {"title": "Les Insomniaques s'amusent", "text": "Les Insomniaques s'amusent is the first album by Qu\u00e9b\u00e9cois singer and musician Daniel B\u00e9langer.", "vector": [0.008316775783896446, -0.019163016229867935, -0.015719765797257423, -0.037081167101860046, -0.011726918630301952, -0.02495032735168934, -0.03212818130850792, -0.00637663621455431, 0.02661897987127304, 0.02170572616159916, -0.013574355281889439, -0.013786247931420803, -0.036710355430841446, 0.030989259481430054, -0.003886900842189789, 0.013408814556896687, 0.035041701048612595, -0.011270025745034218, -0.02691033110022545, -0.018235987052321434, 0.009773535653948784, 0.004582172725349665, -0.022341402247548103, 0.018262473866343498, 0.025771411135792732, -0.008872993290424347, 0.009462319314479828, 0.04979470744729042, 0.003285987302660942, -0.0022116266191005707, 0.0032677778508514166, -0.053635258227586746, -0.014170303009450436, 0.000426681712269783, -0.00035260216100141406, -0.03959738835692406, -0.00029900827212259173, 0.03501521423459053, -0.022367889061570168, -0.05572769418358803, -0.029029255732893944, 0.00367169757373631, -0.020593291148543358, 0.0076347473077476025, -0.027122223749756813, 0.030803853645920753, -0.06976556777954102, 0.003135344944894314, -0.000633193994872272, 0.015746252611279488, 0.03978279232978821, 0.01630247011780739, -0.007184476125985384, -0.00806515384465456, 0.02476492151618004, 0.014448411762714386, 0.036577921360731125, -0.011554756201803684, 0.040021173655986786, -0.023745190352201462, -0.013289624825119972, -0.002188450889661908, -0.013733274303376675, -0.0019864910282194614, 0.004585483577102423, 0.02655276283621788, 0.018050581216812134, 0.012402325868606567, 0.034432511776685715, 0.058482296764850616, -0.016514362767338753, 0.0338498055934906, -0.04137198626995087, 0.01938815228641033, -0.008137991651892662, -0.02961196005344391, 0.014302735216915607, -0.011567999608814716, -0.028128713369369507, -0.04269631579518318, -0.0233081616461277, -0.048046596348285675, -0.0067640021443367004, 0.021361399441957474, 0.007932720705866814, 0.011793134734034538, 0.013958410359919071, -0.04812605679035187, -0.020950859412550926, 0.03440602496266365, 0.030062230303883553, -0.011183944530785084, 0.010309888049960136, 0.014090843498706818, 0.05763472616672516, -0.028976282104849815, 0.0159978736191988, -0.01668652519583702, -0.04738443344831467, -0.03501521423459053, -0.006432920228689909, -0.05461525917053223, -0.0022910863626748323, -0.06833529472351074, 0.015865441411733627, 0.034670889377593994, 0.05334390699863434, -0.0015908482018858194, -0.01918950304389, -0.010687321424484253, -0.04582172632217407, -0.006310419645160437, -0.007078529801219702, -0.019414639100432396, 0.08126072585582733, 0.021043561398983, -0.03337305039167404, -0.050854168832302094, 0.011660702526569366, 0.01846112310886383, 0.0003250809677410871, -0.027148710563778877, -0.031916290521621704, 0.06891799718141556, -0.0021752077154815197, 0.0016612031031399965, 0.04600713402032852, -0.03631305694580078, -0.0578995905816555, 0.039888739585876465, -0.02244734950363636, 0.0008666067151352763, 0.0012109318049624562, -0.0068136644549667835, 0.007886369712650776, -0.0458746999502182, -0.026102492585778236, -0.040074147284030914, 0.009740428067743778, -0.0019186192657798529, -0.021798428148031235, 0.0009833130752667785, 0.033876292407512665, 0.015931658446788788, -0.039703335613012314, -0.01888490840792656, -0.039464954286813736, 0.0017249364173039794, -0.03864387050271034, -0.03702819347381592, 0.029691418632864952, 0.01679247058928013, -0.018222743645310402, -0.011356106959283352, 0.0013458476169034839, 0.041186582297086716, -0.02300356701016426, -0.03795522078871727, -0.002582438290119171, -0.007502314634621143, -0.027307629585266113, 0.055409856140613556, 0.014858952723443508, -0.025943573564291, -0.007826774381101131, -0.0117467837408185, -0.01594490185379982, -0.009852995164692402, 0.06038932874798775, 0.011799756437540054, 0.013097597286105156, -0.013667058199644089, -0.01667328178882599, -0.004820551723241806, 0.019295450299978256, -0.03538602590560913, 0.0060621085576713085, -0.021785184741020203, 0.01589192822575569, 0.03141304478049278, 0.011567999608814716, 0.03996820002794266, 0.027916820719838142, -0.02055356092751026, 0.0529995821416378, -0.04274928569793701, 0.016938146203756332, -0.029479527845978737, -0.02212950959801674, -0.04224604368209839, -0.02839357778429985, -0.03448548540472984, 0.006277311593294144, -0.023904109373688698, -0.006793799344450235, 0.05482715368270874, -0.02894979529082775, 0.008654478937387466, 0.03096277266740799, -0.05360877141356468, -0.0008624682086519897, 0.0077936663292348385, -0.006413055118173361, -0.029161687940359116, 0.017097067087888718, 0.01889815181493759, -0.01097205188125372, 0.06536880135536194, -0.02177194133400917, -0.007098394446074963, 0.02502978779375553, 0.015441657043993473, -0.04317307099699974, 0.0391206294298172, -0.007290421985089779, -0.019242476671934128, -0.027148710563778877, 0.005529066547751427, 0.05199309065937996, -0.015838954597711563, 0.02655276283621788, 0.019957613199949265, 0.010097996331751347, -0.031624935567379, 0.02722817100584507, 0.02152032032608986, -0.015534359961748123, 0.046271998435258865, -0.020262207835912704, -0.02310951240360737, 0.013653814792633057, 0.0839623510837555, 0.002698316937312484, 0.059012025594711304, 0.005886635277420282, 0.008243937976658344, -0.010899214074015617, 0.008111504837870598, 0.037557922303676605, -0.011978540569543839, -0.006624947767704725, 0.045159563422203064, -0.012495028786361217, 0.020924372598528862, 0.014342465437948704, -0.0005297309253364801, 0.0006224338430911303, 0.043755777180194855, -0.016461389139294624, 9.849685011431575e-05, 0.026460060849785805, -0.016818957403302193, 0.00318004097789526, -0.0013549524592235684, 0.0007569358567707241, 0.03967684879899025, -0.006648123264312744, 0.029241148382425308, 0.024685461074113846, -0.04518605023622513, -0.04121306911110878, -0.003966360352933407, -0.012289757840335369, 0.017136795446276665, -0.0391206294298172, 0.006588528398424387, 0.01238246075809002, -0.052152011543512344, -0.05236390233039856, -0.01569327898323536, 0.0030525745823979378, 0.023824648931622505, 0.017030850052833557, -0.013600842095911503, -0.038299545645713806, 0.02759898267686367, -0.004449740052223206, 0.0115613779053092, 0.047914162278175354, -0.05758175253868103, 0.015772739425301552, -0.0037941979244351387, -0.021546805277466774, -0.041054148226976395, -0.015521116554737091, 0.023387620225548744, 0.030274122953414917, -0.010389348492026329, 0.005029133055359125, -0.01487219613045454, -0.022487077862024307, -0.02551978826522827, -0.01413057278841734, 0.032234128564596176, 0.018845178186893463, 0.01736193150281906, 0.04658983647823334, -0.044735778123140335, 0.0045987265184521675, 0.004787443205714226, 0.018474366515874863, 0.059276893734931946, -0.009031912311911583, -0.020407885313034058, -0.018130041658878326, 0.03782279044389725, -0.025480058044195175, 0.015918415039777756, -0.03411467373371124, 0.015017872676253319, -0.05035092681646347, 0.007780423387885094, -0.024301407858729362, -0.002065950771793723, -0.026049518957734108, -0.024870866909623146, 0.050244979560375214, -0.028049252927303314, 0.012653947807848454, 0.017679769545793533, 0.051860660314559937, -0.039517927914857864, 0.013998140580952168, -0.009614616632461548, 0.055833641439676285, 0.013878950849175453, 0.04341145232319832, 0.013693545013666153, 0.05321147292852402, -0.03292277827858925, -0.036524947732686996, 0.022301672026515007, -0.02047410048544407, 0.027519522234797478, -0.012965165078639984, 0.012673812918365002, -0.004578861873596907, -0.01180637814104557, -0.0026784520596265793, 0.02570519410073757, 0.006462717428803444, 0.014633817598223686, 0.01852734014391899, 0.008475694805383682, 0.045768752694129944, 0.04820551723241806, 0.025347625836730003, -0.02060653455555439, -0.028605470433831215, -0.01864652894437313, 0.00043330335756763816, 0.010203942656517029, 0.0060587977059185505, -0.030009258538484573, 0.00431068567559123, -0.013256517238914967, 0.0027148709632456303, -0.03451197221875191, 0.027916820719838142, 0.03594224527478218, -0.02183815836906433, -0.028658444061875343, 0.04462983086705208, 0.03281683102250099, 0.04831146076321602, -0.017812203615903854, 0.016660038381814957, -0.034856297075748444, 0.04889416694641113, -0.0051516336388885975, 0.013733274303376675, 0.03898819908499718, -0.08835911750793457, -0.021983833983540535, 0.01247516367584467, 0.010548267513513565, 0.041477933526039124, 0.026155464351177216, 0.0044464292004704475, -0.0011877560755237937, -0.03506818786263466, -0.020341668277978897, -0.028790876269340515, 0.026539519429206848, -0.0023424040991812944, -0.0005524927983060479, 0.017706256359815598, -0.0045623076148331165, 0.016103820875287056, -0.008992183022201061, 0.06616339832544327, -0.05064227804541588, -0.03128061071038246, -0.04028603807091713, -0.028711417689919472, 0.018937882035970688, -0.020315181463956833, 0.01797112263739109, 0.008475694805383682, -0.023996811360120773, 0.0036915624514222145, -0.01582571119070053, -0.05043038725852966, -0.041848745197057724, -0.007091773208230734, -0.010309888049960136, 0.04298766702413559, 0.021189237013459206, 0.016355443745851517, -0.000538421852979809, 0.02778438851237297, -0.004025955218821764, -0.04004766047000885, 0.0360746756196022, 0.014951655641198158, 0.02341410703957081, 0.016765983775258064, 0.0261289793998003, -0.0029880136717110872, 0.03202223405241966, 0.01685868762433529, 0.0051450119353830814, 0.009694076143205166, -0.002794330706819892, -0.015348954126238823, 0.014739763922989368, 0.019335178658366203, -0.04505361616611481, 0.07924775034189224, -0.037981707602739334, 0.06060121953487396, 0.027307629585266113, -0.03660440817475319, 0.00403257692232728, 0.011660702526569366, -0.014196788892149925, 0.006264068186283112, 0.04606010392308235, -0.03361142799258232, 0.028287632390856743, 0.0639914944767952, -0.008323397487401962, -0.0229373499751091, -0.03255196660757065, 0.02269897051155567, -0.02097734622657299, 0.000684925529640168, 0.04121306911110878, 0.0023341269697993994, -0.016090577468276024, -0.0257581677287817, -0.09815914183855057, -0.03286980465054512, 0.010640970431268215, -0.004754335153847933, 0.046987134963274, 0.005545620806515217, -0.0006067074718885124, -0.030062230303883553, 0.03276385739445686, -0.025003300979733467, 0.025466814637184143, -0.015229764394462109, -0.005790621507912874, 0.01699111983180046, 0.02379816211760044, 0.0044795372523367405, -0.009124615229666233, -0.013190300203859806, -0.023639243096113205, -0.03432656452059746, 0.03475034981966019, -0.013051246292889118, -0.018474366515874863, -0.000686580955516547, -0.06822934746742249, -0.055092018097639084, 0.005449607037007809, 0.0035988595336675644, -0.014382194727659225, 0.020937616005539894, -0.044232532382011414, 0.004022644367069006, -0.030750881880521774, 0.007177854422479868, 0.012561244890093803, 0.04420604556798935, -0.03602170571684837, 0.00868096575140953, 0.0030889934860169888, 0.014753006398677826, -0.024804651737213135, -0.005380080081522465, 0.027493035420775414, -0.019467612728476524, -0.04794064909219742, 0.014991385862231255, 0.013455165550112724, -0.044974155724048615, 0.01699111983180046, 0.03837900608778, 0.023692216724157333, 0.039147116243839264, 0.05609850585460663, 0.010707186535000801, -0.005813797004520893, -0.0178519319742918, -0.014474897645413876, 0.03030060976743698, 0.008296910673379898, -0.01143556647002697, 0.010991916991770267, 0.02023572288453579, 0.003456494305282831, -0.0023705458734184504, 0.03072439506649971, -0.01336908433586359, -0.048470381647348404, -0.016328956931829453, 0.024076271802186966, 0.049450382590293884, 0.0011554756201803684, 0.007191097363829613, 0.0391206294298172, -0.023467080667614937, 0.011971918866038322, 0.043941181153059006, 0.02109653502702713, 0.07485098391771317, -0.00548602594062686, 0.05260228365659714, -0.020897885784506798, -0.02570519410073757, 0.01183948665857315, -0.028896823525428772, 0.05768769979476929, -0.004204739350825548, 0.020129775628447533, -0.0184478797018528, 0.0440206415951252, 0.01009137462824583, -0.009475561790168285, -0.049450382590293884, 0.0015958144795149565, -0.0009435832616873085, -0.043808747082948685, 0.036577921360731125, 0.00901866890490055, 0.014925169758498669, 0.00022534257732331753, 0.014713277108967304, 0.008098261430859566, -0.023281674832105637, -0.004651699680835009, -0.048602815717458725, -0.04351739585399628, -0.03218115493655205, -0.03390277922153473, 0.007588395848870277, 0.013488274067640305, -0.029161687940359116, -0.017626797780394554, 0.01515030488371849, -0.015004629269242287, 0.052761200815439224, -0.039756305515766144, 0.01643490232527256, 0.00446298299357295, 0.009607994928956032, 0.0005061413394287229, 0.037743330001831055, 0.018540583550930023, 0.00029962905682623386, -0.044311992824077606, 0.013786247931420803, 0.016726255416870117, -0.017308957874774933, -0.008661100640892982, 0.05911797285079956, -0.0398622527718544, -0.004691429436206818, -0.028711417689919472, 0.028420064598321915, 0.01704409345984459, 0.004688119050115347, 0.025043031200766563, -0.039279550313949585, -0.012965165078639984, -0.003684940980747342, 0.021268697455525398, 0.00029900827212259173, -0.029691418632864952, 0.032843317836523056, -0.02894979529082775, -0.008793533779680729, -0.021387886255979538, 0.05231092870235443, 0.03297575190663338, 0.006187919527292252, 0.00990596879273653, -0.005055619869381189, 0.03294926509261131, -0.010501915588974953, 0.020315181463956833, 0.0025294653605669737, 0.04386172071099281, -0.0002406551066087559, 0.006353460717946291, 0.0022877755109220743, -0.0250165443867445, -0.04918551817536354, 0.003625346114858985, 0.04055090248584747, -0.006608393508940935, 0.018010852858424187, -0.01232286635786295, 0.0022546672262251377, -0.001963315298780799, 0.036154136061668396, 0.029214661568403244, 0.008224072866141796, 0.009144480340182781, 0.04280225932598114, -0.029506012797355652, -0.00199973420239985, 0.02709573693573475, -0.040921714156866074, -0.007687720470130444, -0.006651434116065502, -0.00044323582551442087, 0.0034366294275969267, -0.006979205179959536, 0.010594618506729603, 0.013150570914149284, 0.053555797785520554, 0.04563632234930992, 0.00762150390073657, -0.010601240210235119, 0.03535953909158707, -0.013640571385622025, -0.06197851896286011, 0.009859616868197918, 0.033478993922472, 0.02900276891887188, -0.03016817755997181, -0.020738966763019562, 0.03392926603555679, -0.021056804805994034, -0.016170037910342216, 0.036948733031749725, 0.038352519273757935, 0.03647197410464287, 0.029717905446887016, 0.03724008426070213, -0.016845444217324257, 0.006260757800191641, 0.04020657762885094, -0.018739232793450356, -0.00797245092689991, 0.01846112310886383, 0.021387886255979538, -0.02648654766380787, -0.015454900451004505, -0.045477401465177536, 0.006121703423559666, 0.030830340459942818, 0.037743330001831055, 0.013415436260402203, -0.012289757840335369, -0.022553294897079468, -0.031042233109474182, -0.0238643791526556, -0.0004072306619491428, -0.02992979809641838, 0.03967684879899025, -0.004284198861569166, -0.02447357028722763, -0.020275451242923737, -0.032843317836523056, -2.1649648260790855e-05, -0.015600576065480709, -0.0010155935306102037, 0.0013458476169034839, 0.04802010953426361, 0.04285523295402527, 0.005684675183147192, 0.0052675120532512665, -0.015772739425301552, -0.02373194694519043, 0.004350415430963039, -0.015070845372974873, 0.029532499611377716, -0.009303399361670017, 0.0564163438975811, 0.017825447022914886, -0.011336241848766804, -0.006899745669215918, 0.02746654860675335, -0.02476492151618004, 0.02582438290119171, 0.017772473394870758, -0.017216255888342857, 0.023096268996596336, -0.00038343414780683815, 0.027810875326395035, -0.0030476083047688007, -0.002009666757658124, -0.004340482875704765, -0.010064887814223766, -0.02942655421793461, 0.010766780935227871, 0.030035745352506638, -0.008071775548160076, 0.016765983775258064, 0.000638160272501409, 0.027731414884328842, 0.015666792169213295, -0.013786247931420803, 0.00507548451423645, -0.0013210165780037642, 0.04494766891002655, 0.05615147948265076, -0.00962786003947258, -0.01962653174996376, 0.06822934746742249, 0.01115745771676302, -0.04256388172507286, -0.004251090809702873, 0.013667058199644089, -0.0051450119353830814, -0.0861872211098671, 0.004499402362853289, 0.0025112556759268045, 0.017322201281785965, 0.01741490513086319, -0.029161687940359116, -0.0059826490469276905, 0.034432511776685715, 0.006317041348665953, 0.005591972265392542, -0.004744402598589659, 0.013799491338431835, -0.02175869792699814, 0.03239304572343826, 0.003333994187414646, 0.009800022467970848, -0.003724670736119151, 0.02116275206208229, -0.029876824468374252, -0.01802409440279007, -0.0197457205504179, 0.017931392416357994, 0.0005015889764763415, 0.005913121625781059, -0.014951655641198158, 0.04312009736895561, 0.055462829768657684, -0.02709573693573475, -0.018977610394358635, -0.043384965509176254, 0.009886103682219982, -0.06229635700583458, 0.052761200815439224, -0.008581641130149364, -0.021374642848968506, -0.047251999378204346, -0.03234007582068443, -0.016156794503331184, -0.06965962052345276, -0.003979603759944439, 0.022301672026515007, -0.024076271802186966, -0.030274122953414917, -0.04163685068488121, 0.007787044625729322, 0.0019335179822519422, 0.025903843343257904, 0.005207917187362909, 0.018977610394358635, 0.0003991605481132865, -0.001792808179743588, 0.03022114932537079, 0.024566272273659706, 0.035783324390649796, 0.041610363870859146, 0.03249899297952652, 0.007780423387885094, -0.029506012797355652, 0.019242476671934128, -0.013263138011097908, -0.005204606335610151, 0.042219556868076324, 0.002847303869202733, -0.0008955763769336045, -0.040259551256895065, 0.003281021025031805, 0.0436498299241066, 0.0376373827457428, -0.059329867362976074, 0.0022364577744156122, 0.0045623076148331165, -8.090812480077147e-05, 0.01515030488371849, 0.0089259659871459, 0.0372665710747242, 0.01575949601829052, -0.024367623031139374, -0.021877888590097427, -0.008839884772896767, -0.007767179980874062, 0.011402458883821964, 0.020129775628447533, -0.010376105085015297, -0.021560048684477806, -0.025917086750268936, -0.012852597050368786, -0.04388820752501488, 0.025678707286715508, -0.002357302699238062, -0.013825977221131325, -0.013574355281889439, -0.007257313933223486, 0.017918149009346962, -0.030274122953414917, 0.03631305694580078, 0.0034796700347214937, 0.03435305133461952, 0.013196921907365322, 0.01717652566730976, 0.021175993606448174, -0.015799226239323616, -0.01018407754600048, 0.03379683569073677, -0.003060851711779833, 0.011832864955067635, -0.007290421985089779, 0.021308427676558495, 0.025307895615696907, 0.04452388733625412, 0.011336241848766804, 0.025599248707294464, -0.012985029257833958, -0.03361142799258232, -0.0331081822514534, -0.011985162273049355, 0.04889416694641113, -0.015733009204268456, 0.037504952400922775, 0.02844655141234398, 0.002880411921069026, -0.027056008577346802, -0.00715798931196332, 0.021930860355496407, -0.021308427676558495, 0.005863459315150976, -0.00021013349760323763, -0.05615147948265076, -0.017388418316841125, 0.010733673349022865, 0.001575949601829052, 0.07882396131753922, -0.013547868467867374, 0.0163686852902174, -0.037504952400922775, 0.026208437979221344, -0.0233081616461277, 0.019586801528930664, -0.0030277434270828962, 0.011793134734034538, -0.038167115300893784, -0.04523902386426926, 0.01422327570617199, 0.02545357123017311, 0.010415834374725819, 0.0038571034092456102, 0.01864652894437313, 0.04033901169896126, -0.020871398970484734, -0.040259551256895065, -0.020500587299466133, -0.03390277922153473, -0.022050051018595695, 0.008330019190907478, 0.008204207755625248, -0.008283667266368866, 0.037743330001831055, -0.01834193430840969, 0.027254657819867134, -0.018249230459332466, 0.02263275533914566, 0.02410275861620903, -0.023043295368552208, -0.04711956903338432, 0.0024284853134304285, 0.015190035104751587, -0.011905702762305737, 0.036207109689712524, 0.01368030160665512, -0.02146734669804573, -0.022791674360632896, -0.008018801920115948, -0.011574621312320232, 0.05880013480782509, 0.027916820719838142, -0.036392517387866974, 0.0012399015249684453, 0.015282738022506237, 0.0076744770631194115, 0.015097332186996937, -0.022778430953621864, -0.027493035420775414, 0.020010586827993393, 0.03864387050271034, -0.010693943127989769, 0.0008583296439610422, -0.025241678580641747, 0.006939475424587727, 0.022765187546610832, -0.005919743329286575, 0.03538602590560913, 0.005462850444018841, 0.00024934601970016956, 0.0268706027418375, 0.023096268996596336, -0.011389215476810932, -0.026566006243228912, 0.02428816445171833, -0.006787177640944719, 0.036339543759822845, 0.0036419001407921314, 0.0220103207975626, 0.003492913441732526, 0.014951655641198158, 0.023771675303578377, 0.02214275300502777, 0.010594618506729603, -0.020381398499011993, -0.030936287716031075, -0.014938412234187126, 0.014421924948692322, -0.0069725834764540195, 0.027201684191823006, 0.02244734950363636, -0.0061779869720339775, 0.020500587299466133, 0.015733009204268456, -0.06489203870296478, -0.014607330784201622, -0.025718437507748604, 0.005370147526264191, -0.0011587864719331264, -0.014236519113183022, -0.03647197410464287, 0.052522823214530945, 0.00840285699814558, -0.025744924321770668, 0.01355449017137289, -0.032896291464567184, -0.006194541230797768, -0.019083557650446892, -0.004506023600697517, -0.024817895144224167, 0.03782279044389725, 0.009621238335967064, 0.021056804805994034, 0.017017606645822525, 0.002393721602857113, -0.015680035576224327, 0.007932720705866814, 0.005045687314122915, 0.013759761117398739, -0.0018226054962724447, 0.001295357709750533, 0.023202214390039444, 0.010038401000201702, 0.004506023600697517, 0.01869950257241726, -0.011925567872822285, -0.004817240871489048, 0.04256388172507286, 0.0250165443867445, 0.022712213918566704, -0.0020344979129731655, -0.014276249334216118, -0.04055090248584747, 0.024553028866648674, -0.0014459999511018395, -0.0006791315972805023, 0.0078135309740901, 0.024248434230685234, -0.006939475424587727, -0.05673418566584587, 0.0015825711889192462, -0.016779227182269096, 0.04251090809702873, 0.010925700888037682, -0.0085551543161273, -0.028049252927303314, 0.00021996250143274665, 0.026327628642320633, 0.0004900011117570102, -0.04468280449509621, 0.014276249334216118, -0.018792204558849335, 0.025413842871785164, 0.045106589794158936, -0.007045421749353409, 0.010925700888037682, -0.009852995164692402, 0.002410275861620903, 0.037743330001831055, 0.026380600407719612, 0.023043295368552208, -0.0059760273434221745, -0.0053535932675004005, -0.0027628778479993343, -0.025930330157279968, 0.00858826283365488, -0.006608393508940935, 0.052655257284641266, -0.017308957874774933, -0.0002971459471154958, -0.010237050242722034, -0.013143949210643768, -0.00843596551567316, -0.0021321671083569527, 0.022169239819049835, -0.014647061005234718, 0.004760956857353449, -0.022103022783994675, -0.003539264900609851, 0.06028338149189949, -0.02065950632095337, 0.007694341707974672, -0.026764655485749245, -0.007820152677595615, -0.04073631018400192, 0.04224604368209839, -0.030141690745949745, 0.013773004524409771, 0.024513298645615578, 0.002699972363188863, -0.013825977221131325, -0.013667058199644089, 0.0044464292004704475, 0.001953382743522525, -0.008098261430859566, -0.004241158254444599, -0.012898948043584824, -0.03604818880558014, -0.03573035076260567, -0.012402325868606567, -0.01487219613045454, 0.017335444688796997, 0.04015360400080681, 0.0024831139016896486, 0.0165540911257267, -0.017494363710284233, -0.024447083473205566, -0.05673418566584587, -0.017679769545793533, 0.01575949601829052, -0.009290155954658985, -0.0007912855944596231, -0.007952585816383362, 0.002401998732239008, 0.008568397723138332, 0.004840416368097067, -0.026592493057250977, 0.00013595048221759498, -0.015322467312216759, 0.01932193525135517, 0.023493567481637, -0.015799226239323616, 0.03506818786263466, 0.005767445545643568, -0.026076005771756172, 0.01986491121351719, -0.033770348876714706, -0.018792204558849335, 0.005125146824866533, -0.059276893734931946, -0.010501915588974953, 0.014077600091695786, -0.0077142068184912205, -0.0094093456864357, 0.020500587299466133, -0.0011049855966120958, -0.016646794974803925, -0.041054148226976395, -0.012687056325376034, -0.023904109373688698, 0.03128061071038246, -0.010316509753465652, -0.0038372385315597057, -0.0002058915124507621, 0.034432511776685715, -0.022473834455013275, -0.02114950865507126, -0.03231358900666237, -0.0006654745084233582, -0.016911661252379417, 0.011203809641301632, -0.017745986580848694, -0.04420604556798935, 0.02648654766380787, 0.020646262913942337, 0.006310419645160437, 0.005015889648348093, -0.0011827899143099785, -0.03766386955976486, -0.00999867171049118, 0.0004891733988188207, 0.0017232809914276004, -0.01564030535519123, -0.012673812918365002, 0.03610116243362427, -0.00258409371599555, 0.0018192947609350085, 0.017706256359815598, 0.04113360866904259, 0.0029019322246313095, 0.0099655631929636, 0.014607330784201622, -0.013759761117398739, 0.007495692931115627, -0.005515823606401682, 0.015137061476707458, 0.004648388829082251, -0.02348032407462597, 0.019533827900886536, 0.02913520112633705, 0.013408814556896687, 0.0233081616461277, -0.0013458476169034839, 0.010170834138989449, 0.006866637151688337, 0.004333861172199249, -0.007522179279476404, -0.0017597000114619732, -0.020752210170030594, -0.018871665000915527, -0.014210032299160957, 0.0745331421494484, 0.0036485218442976475, 0.0060290005058050156, 0.012713542208075523, -0.02569195069372654, 0.011660702526569366, 0.0038736574351787567, -0.014461655169725418, 0.018606798723340034, -0.024725191295146942, 0.051224980503320694, -0.03896171227097511, -0.018673015758395195, -0.0001552980684209615, -0.019096801057457924, 0.011852730065584183, 0.023718703538179398, -0.036207109689712524, 0.004880146123468876, -0.0003064576303586364, 0.002550985664129257, -0.0009377893293276429, -0.009747049771249294, 0.013971653766930103, -0.032287102192640305, -0.017626797780394554, -0.002065950771793723, -0.001374817336909473, 0.004946362692862749, -0.014170303009450436, 0.0024351070169359446, -0.04741092026233673, 0.012150703929364681, 0.016170037910342216, 0.0009195798193104565, 0.016461389139294624, 0.011236917227506638, 0.0009113027481362224, 0.011170701123774052, 0.004287509713321924, 0.0018623353680595756, -5.845663690706715e-05, 0.029479527845978737, 0.007138124667108059, -0.0011968608014285564, -0.02023572288453579, -0.004456361755728722, 0.036577921360731125, 0.021679239347577095, 0.02379816211760044, 0.004787443205714226, -0.02759898267686367, -0.004724537953734398, -0.0014344120863825083, -0.015031115151941776, -0.005406566429883242, 0.04942389577627182, 0.004019333515316248, -0.010203942656517029, -0.0031270680483430624, -0.03234007582068443, 0.007171232718974352, -0.03573035076260567, 0.02072572335600853, -0.007581774145364761, -0.011879215948283672, 0.009680832736194134, 0.03165142238140106, -0.010448942892253399, 0.024500055238604546, 0.0165540911257267, 0.0035260214935988188, 0.013561111874878407, 0.01505760196596384, -0.01072705164551735, -0.01717652566730976, -0.011051511391997337, -0.015362197533249855, -0.0171103086322546, -0.009415967389941216, 0.007018934935331345, 0.01662030816078186, -0.013971653766930103, 0.027916820719838142, -0.02692357450723648, 0.016262739896774292, -0.029161687940359116, -0.014739763922989368, -0.04727848619222641, -0.016461389139294624, 0.030989259481430054, 0.017507607117295265, -0.006009135395288467, -0.024976814165711403, -0.021493833512067795, -0.0033902779687196016, 0.006432920228689909, 0.01199178397655487, 0.014819223433732986, 0.011091241613030434, 0.04719902575016022, 0.00868096575140953, -0.002537742257118225, 0.016540849581360817, -0.011203809641301632, 0.012528136372566223, 0.01422327570617199, 0.004022644367069006, -0.006701096426695585, 0.01687193103134632, -0.011415701359510422, -0.028976282104849815, -0.05445634201169014, -0.0053867013193666935, 0.020076802000403404, -0.012283136136829853, -0.015123818069696426, -0.003057540860027075, -0.028420064598321915, -0.014911926351487637, 0.008694209158420563, 0.01262746099382639, -0.009025290608406067, -0.004502713214606047, 0.0021636197343468666, -0.0033935888204723597, -0.007694341707974672, 0.004423253238201141, -0.002401998732239008, -0.007184476125985384, -0.017428148537874222, -0.006436231080442667, -0.056628238409757614, -0.001052840263582766, 0.007091773208230734, 0.032896291464567184, 0.0034035213757306337, 0.02582438290119171, -0.0004982781829312444, -0.030750881880521774, 0.019600044935941696, 0.0214541032910347, -0.021533561870455742, -0.030141690745949745, -0.03403521329164505, -0.06409744173288345, 0.0077142068184912205, 0.007588395848870277, 0.008707452565431595, 0.023347891867160797, -0.021718967705965042, -0.0009651035652495921, 0.007323530502617359, -0.007469206117093563, -0.00367169757373631, 0.00809163972735405, 0.024923840537667274, -0.03358494117856026, 0.0161832794547081, -0.012422190979123116, 0.014236519113183022, 0.021123021841049194, 0.026261411607265472, -0.021917616948485374, -0.02447357028722763, -0.03469737619161606, 0.03035358339548111, -0.01753409393131733, 0.03535953909158707, -0.04849686846137047, -0.023586269468069077, -0.03790224716067314, -0.031360071152448654, 0.02226194366812706, -0.0032677778508514166, -0.024208704009652138, 0.0036882515996694565, -0.029876824468374252, 0.004131901543587446, 0.021440859884023666, 0.01667328178882599, -0.007356638554483652, 0.01042907778173685, 0.006032310891896486, -0.034803323447704315, -0.012581110000610352, -0.013349220156669617, 0.0033886225428432226, -0.026234924793243408, 0.008144613355398178, -0.003285987302660942, -0.020513830706477165, -0.042775772511959076, -0.01734868809580803, 0.03353196755051613, 0.012773137539625168, 0.010177455842494965, 0.003684940980747342, -0.00013295005192048848, -4.855004954151809e-05, 0.03766386955976486, -0.008508803322911263, -0.010323131456971169, -0.004969538189470768, 0.02194410376250744, 0.013600842095911503, -0.008806777186691761, 0.0077936663292348385, -0.0044464292004704475, -0.0029565608128905296, -0.01613030768930912, -0.001402131631039083, -0.012071243487298489, 0.015733009204268456, 0.009065020829439163, 0.0208581555634737, -0.01589192822575569, 0.03557143360376358, -0.032525479793548584, -0.0060190679505467415, -0.002701627789065242, -0.02036815509200096, 0.017375174909830093, -0.01697787642478943, 0.009654346853494644, -0.040444958955049515, -0.024116002023220062, -0.012865840457379818, 0.007859882898628712, 0.005774067249149084, 0.010621105320751667, -0.024566272273659706, -0.0005177292041480541, -0.004181563854217529, 0.001748112146742642, -0.010422456078231335, 0.04738443344831467, 0.03724008426070213, -0.0021172682754695415, -0.009680832736194134, 0.023215457797050476, -0.023043295368552208, 0.018924638628959656, 0.026566006243228912, 0.008356506004929543, -0.053741205483675, -0.028473038226366043, 0.009826509281992912, 0.017772473394870758, 0.003315784502774477, -0.0052244714461266994, -0.0017166592879220843, 0.03766386955976486, -0.00012332799087744206, 0.005654877983033657, 0.009753670543432236, 0.06081311032176018, -0.004876835271716118, 0.011971918866038322, -0.006687853019684553, 0.019083557650446892, -0.021109778434038162, 0.04640442878007889, 0.017388418316841125, -0.0029201419092714787, 0.016448145732283592, -0.00016512707225047052, -0.021414373070001602, 0.0376373827457428, 0.013706788420677185, 0.0242749210447073, -0.03220764175057411, 0.010601240210235119, 0.024063028395175934, 0.03742549195885658, -0.019891396164894104, 0.022778430953621864, -0.015282738022506237, -0.0092239398509264, 0.021056804805994034, -0.03109520673751831, 0.004155077040195465, -0.03686927258968353, 0.009376238100230694, 0.04280225932598114, -0.014514627866446972, 0.025943573564291, 0.02955898642539978, -0.0022232146002352238, 0.010131103917956352, -0.0008037011721171439, -0.012898948043584824, -0.00018240540521219373, 0.0018292271997779608, -0.01802409440279007, -0.008627993054687977, -0.033399537205696106, -0.031677909195423126, -0.02114950865507126, 0.02900276891887188, 0.0016777572454884648, 0.004780821967869997, 0.010998538695275784, 0.013117462396621704, 0.020315181463956833, 0.005366836674511433, 0.017587067559361458, 0.0012208642438054085, -0.017613554373383522, -0.003330683335661888, 0.0022414240520447493, -0.01299827266484499, 0.040683336555957794, 0.023957081139087677, -0.008389613591134548, -0.007416233420372009, 0.009184210561215878, -0.006595150101929903, -0.015746252611279488, 0.011455431580543518, 0.003231358714401722, -0.024063028395175934, 0.003231358714401722, -0.006350149866193533, -0.01177989225834608, 0.0172957144677639, -0.02937358058989048, 0.0023010186851024628, -0.00171003770083189, -0.007992316037416458, 0.025744924321770668, -0.010501915588974953, -0.019454369321465492, 0.033505480736494064, -0.015269494615495205, 0.02336113527417183, -0.029347093775868416, 0.0017795648891478777, -0.02337437868118286, 0.035412512719631195, 0.0003134931030217558, 0.01343530137091875, -0.010587996803224087, -0.017891662195324898, -0.05726391449570656, 0.026261411607265472, 0.01724274270236492, 0.014567600563168526, 0.039888739585876465, -0.03342602401971817, 0.04574226588010788, 0.022712213918566704, 0.014342465437948704, 0.006724271923303604, 0.0037081167101860046, -0.022434106096625328, -0.022963836789131165, 0.007661233656108379, -0.03673684224486351, 0.03332007676362991, -0.04052441567182541, -0.018474366515874863, -0.013865707442164421, 0.03440602496266365, -0.017269229516386986, -0.024142486974596977, 0.04052441567182541, -0.012110973708331585, -0.002353991847485304, 0.03297575190663338, 0.02447357028722763, -0.035174135118722916, 0.0025195328053086996, -0.003714738180860877, 0.020447613671422005, 0.0013673680368810892, 0.03514764830470085, 0.04709308221936226, 0.0022960526403039694, 0.03263142704963684, 0.02765195444226265, -0.010594618506729603, 0.004744402598589659, -0.03241953253746033, -0.018302204087376595, 0.013329355046153069, 0.014805980026721954, 0.05162227898836136, -0.023467080667614937, -0.011918946169316769, -0.022301672026515007, 0.023533297702670097, -0.011799756437540054], "id": 69}, {"title": "Jeff Stover", "text": "Jeff Stover is a retired defensive lineman for the San Francisco 49ers American football team during the 1980s.", "vector": [-0.014568816870450974, 0.03197459504008293, -0.038306817412376404, -0.00041192761273123324, -0.03335389122366905, -0.007797725964337587, -0.020046817138791084, 0.003487425157800317, -0.0462377704679966, 0.07109645009040833, -0.06551656872034073, 0.01963929831981659, -0.010101777501404285, 0.01536034420132637, 0.012829022482037544, -0.06244450435042381, -0.04460769519209862, 0.020031142979860306, 0.012131537310779095, -0.04956062138080597, 0.03557957336306572, 0.024529529735445976, -0.015250627882778645, 0.032758284360170364, 0.03445105999708176, 0.005348691251128912, 0.01788382977247238, -0.009858833625912666, 0.013032781891524792, 0.025344569236040115, -0.00014400323561858386, 0.017350919544696808, 0.005642575677484274, -0.005513266660273075, -0.018228653818368912, 0.06476423144340515, -0.0294667836278677, 0.002981944475322962, 0.0234480369836092, 0.01999979466199875, 0.016128361225128174, -0.06545387953519821, 0.029889976605772972, 0.012962250038981438, 0.041410233825445175, 0.036896172910928726, -0.00019408598018344492, -0.015430876985192299, -0.0006034420803189278, 0.02542293816804886, 0.025266198441386223, -0.035266097635030746, 0.015187932178378105, -0.05517185106873512, -0.006614352576434612, -0.006978768855333328, -0.018103262409567833, 0.09040659666061401, -0.020987246185541153, 0.010376069694757462, -0.03191189840435982, -0.04228796809911728, 0.0076684169471263885, -0.017491983249783516, 0.007546945009380579, 0.009600215591490269, 0.028244225308299065, 0.05742888152599335, 0.02899656817317009, 0.003900822252035141, -0.010360395535826683, 0.019780362024903297, 0.05407468229532242, 0.039215900003910065, -0.016363469883799553, -0.008816524408757687, -0.004192747175693512, -0.0003257216012571007, -0.05112800374627113, 0.008040670305490494, 0.004823618568480015, -0.024654921144247055, -0.009553194046020508, 0.01722552999854088, 0.02484300546348095, -0.022131435573101044, 0.04385535046458244, -0.0658300444483757, -0.002805613912642002, 0.017241202294826508, -0.0024745045229792595, 0.0018064078176394105, 0.013330584391951561, -0.01722552999854088, 0.04263279214501381, 0.03313445672392845, -0.009561031125485897, 0.012507708743214607, 0.007104159332811832, -0.02275838889181614, 0.007574373856186867, -0.006583004724234343, 0.019827382639050484, -0.017742766067385674, 0.0348585769534111, 0.006324386689811945, -0.013009271584451199, 0.02830692008137703, 0.018510783091187477, 0.023259950801730156, 0.04470173642039299, 0.013416790403425694, -0.007433309685438871, 0.04830671474337578, -0.00785258412361145, 0.014560979790985584, 0.00895758904516697, 0.02148880809545517, 0.024404138326644897, -0.03039153851568699, 0.011347846128046513, 0.000153799366671592, -0.015548430383205414, 0.012680120766162872, 0.0432283990085125, -0.011449726298451424, 0.011935614980757236, -0.006661374121904373, 0.021520156413316727, 0.02346370927989483, -0.0671466514468193, 0.0024784228298813105, -0.02159852534532547, 0.009412129409611225, -0.04999949038028717, 0.008173897862434387, 0.040030937641859055, 0.03460779786109924, -0.010744404047727585, 0.013573529198765755, 0.023824207484722137, -0.0014752984279766679, 0.016222404316067696, 0.024231726303696632, -0.009788300842046738, -0.03583035618066788, 0.061033859848976135, 0.08451323956251144, -0.007805563043802977, -0.0787452757358551, 0.01962362416088581, 0.030328843742609024, 0.0012813349021598697, -0.019263125956058502, 0.052162475883960724, -0.03347928076982498, -0.042789530009031296, 0.018181633204221725, -0.029889976605772972, -0.019607950001955032, -0.04573620855808258, 0.016551554203033447, -0.04507790878415108, 0.04736628755927086, -0.04727224260568619, -0.020266249775886536, 0.05761696398258209, -0.019263125956058502, 0.005771884694695473, -0.00040507031371816993, -1.3806432434648741e-05, 0.005987399723380804, 0.006477206479758024, 0.012891717255115509, -0.003411015262827277, -0.04858884587883949, -0.01206100545823574, -0.011488910764455795, 0.04573620855808258, -0.002268785610795021, -0.03039153851568699, 0.00924755446612835, -0.025234851986169815, -0.015046868473291397, -0.024325769394636154, -0.004470957443118095, 0.005058725830167532, 0.012805511243641376, 0.060469601303339005, -0.08702105283737183, -0.015376018360257149, -0.005744455382227898, 0.011097065173089504, -0.0024470752105116844, 0.03730369359254837, 0.0600307323038578, 0.023024842143058777, 0.0171001385897398, -0.019451212137937546, -0.03717830404639244, 0.04883962497115135, 0.040469806641340256, 0.02112830989062786, -0.016473185271024704, 0.030219126492738724, -0.013816473074257374, 0.0006734844646416605, 0.030563950538635254, -0.04482712969183922, 0.006504635792225599, 0.009905855171382427, -0.016896378248929977, 0.012680120766162872, -0.037585821002721786, -0.010352558456361294, 0.021629873663187027, 0.015454387292265892, -0.017147159203886986, 0.04275818169116974, 0.02819720469415188, 0.027397839352488518, 0.004659043159335852, -0.03611248359084129, -0.011927777901291847, 0.04357322305440903, -0.002482341369614005, -0.03793064504861832, -0.025673719123005867, 0.03727234527468681, 0.01547789853066206, -0.06291471421718597, 0.0020532705821096897, -0.008706807158887386, 0.04009363427758217, -0.006974850315600634, -0.042664140462875366, -0.01547006145119667, -0.016426164656877518, -0.008581416681408882, -0.008761665783822536, -0.005333017557859421, 0.02576776221394539, 0.009341597557067871, 0.031206578016281128, 0.030234800651669502, 0.07209957391023636, -0.026300672441720963, -0.027695640921592712, -0.044889822602272034, -0.0011432092869654298, -0.05633171275258064, -0.013299237005412579, -0.018228653818368912, -0.011841571889817715, 0.021394765004515648, -0.0066927215084433556, -0.007354940287768841, 0.013213030993938446, 0.024169031530618668, -0.0017025688430294394, -0.01835404522716999, -0.014913640916347504, 0.0408773235976696, -0.02250760607421398, 0.0005128278280608356, 0.01265661045908928, -0.014263177290558815, 0.018432414159178734, 0.039560724049806595, -0.015517082996666431, 0.012100189924240112, -0.011018696241080761, -0.010399580001831055, 0.032052963972091675, 0.02816585637629032, -0.01777411252260208, -0.03142601251602173, -0.012578241527080536, 0.03278963267803192, 0.029294371604919434, 0.022585976868867874, -0.026410387828946114, 0.012452851049602032, 0.00508615467697382, 0.013260052539408207, 0.023620449006557465, -0.00826010387390852, 0.013071966357529163, 0.03479588404297829, -0.0011363520752638578, -0.03454510122537613, -0.03325984627008438, 0.050751831382513046, 0.02112830989062786, 0.06677047908306122, 0.012915228493511677, 0.0205483790487051, 0.045924294739961624, 0.03175516054034233, 0.013620550744235516, 0.025595350190997124, 0.009396455250680447, -0.006626107729971409, -0.06426266580820084, -0.046613942831754684, -0.031943246722221375, -0.003916495945304632, 0.02114398404955864, 0.006050094962120056, -0.03257019817829132, -0.00795054528862238, -0.041849102824926376, -0.0265671256929636, 0.006516390945762396, 0.04250740259885788, 0.023604774847626686, 0.004831455182284117, 0.0025058521423488855, -0.04062654450535774, -0.015234953723847866, 0.016253752633929253, 0.0016917930915951729, 0.008126876316964626, 0.015736516565084457, -0.011089228093624115, -0.00861276499927044, 0.01730389893054962, 0.034137580543756485, -0.025908825919032097, 0.00756261870265007, 0.011567279696464539, 0.004020335152745247, -0.007284408435225487, 0.008636275306344032, -0.0027879809495061636, 0.016457511112093925, -0.027695640921592712, 0.0007538128411397338, -0.016598576679825783, -0.00158795400056988, -0.0169904213398695, -0.03595574572682381, -0.037711214274168015, -0.014239666052162647, -0.009866670705378056, -0.02967054210603237, 0.07297731190919876, 0.03514070808887482, -0.028557701036334038, -0.023620449006557465, 0.0007498943596147001, -0.019106388092041016, 0.015618962235748768, 0.013510833494365215, -0.022962147369980812, 0.01398104801774025, -0.004228013101965189, -0.030924448743462563, 0.00013298257545102388, -0.001412603072822094, 0.06285202503204346, 0.008965425193309784, 0.04125349596142769, 0.013440301641821861, 0.025548327714204788, 0.002940800739452243, 0.03514070808887482, -0.013260052539408207, -0.007437228225171566, -0.01068170927464962, 0.033761411905288696, -0.04413747787475586, 0.0029505968559533358, 0.08401168137788773, 0.028009118512272835, -0.050062183290719986, 0.005450571421533823, -0.009945039637386799, -0.04006228595972061, -0.007300082128494978, -0.0010550441220402718, 0.018448086455464363, 0.0233383197337389, 0.007660579867660999, -0.0013792961835861206, 0.012578241527080536, 0.028573375195264816, 0.04448230564594269, -0.04125349596142769, 0.006865133531391621, -0.00669664004817605, 0.01061901357024908, -0.046707987785339355, -0.055391281843185425, 0.05993669107556343, -0.02990565076470375, 0.003810697700828314, 0.04056384786963463, -0.02032894641160965, -0.004992112051695585, -0.013620550744235516, 0.005199790000915527, -0.04031306877732277, -0.05347907543182373, -0.012852532789111137, -0.018338371068239212, -0.03542283549904823, 0.002513688988983631, 0.023134559392929077, 0.018683195114135742, -0.020062491297721863, 0.03316580504179001, -0.02885550446808338, 0.0020415151957422495, 0.06169215962290764, -0.0015713005559518933, 0.04849480092525482, 0.0247332900762558, -0.01368324551731348, 0.018165959045290947, 0.014365056529641151, 0.07310269773006439, -0.007966219447553158, -0.038996465504169464, 0.014216155745089054, -0.006289120763540268, -0.03313445672392845, -0.02562669664621353, 0.002159068826586008, -0.014169134199619293, -0.030172105878591537, -0.008377657271921635, -0.03595574572682381, 0.04589294642210007, -0.008314961567521095, -0.08093961328268051, -0.013416790403425694, -0.01293873880058527, 0.03557957336306572, 0.0265671256929636, -0.023526405915617943, 0.01507037878036499, -0.038745686411857605, 0.02031327225267887, 0.008189571090042591, -0.03488992527127266, -0.03974881023168564, -0.023698817938566208, 0.01137919444590807, 0.03108118660748005, 0.013111150823533535, -0.03815007954835892, -0.015234953723847866, -0.023416688665747643, -0.022585976868867874, 0.0016016685403883457, 0.023714490234851837, -0.016582902520895004, -0.05084587633609772, 0.021316396072506905, 0.010070430114865303, -0.03294637054204941, 0.0054348972626030445, -0.004882395267486572, 0.016708293929696083, 0.0021335987839847803, -0.059654563665390015, -0.028918199241161346, -0.030799057334661484, -0.009568867273628712, 0.03579900786280632, -0.020234903320670128, 0.007456820458173752, 0.053290992975234985, 0.03554822504520416, -0.002196294255554676, 0.011340009048581123, -0.029388414695858955, -0.0010187983280047774, -0.005587717052549124, 0.01270363200455904, 0.020532704889774323, -0.05128474161028862, -0.05084587633609772, 0.029607847332954407, -0.01398104801774025, -0.0205483790487051, -0.01398104801774025, 0.007527352310717106, 0.0006470349035225809, 0.005238974466919899, 0.020125186070799828, -0.0247332900762558, -0.016002971678972244, 0.013158172369003296, 0.0034325667656958103, -0.01057199202477932, -0.0068847257643938065, 0.018056241795420647, -0.004525815602391958, 0.04655124992132187, -0.027444859966635704, 0.02158285118639469, 0.04285222664475441, 0.011818060651421547, -0.023479383438825607, 0.053886596113443375, 0.021535830572247505, -0.03104984015226364, 0.021896326914429665, 0.004835373722016811, 0.029592173174023628, -0.053667161613702774, 0.0011559443082660437, -0.03777390718460083, -0.011340009048581123, -0.011332172900438309, -0.006649618502706289, 0.02413768507540226, 0.03347928076982498, -0.012468524277210236, 0.0065477387979626656, 0.03868298977613449, -0.003965476527810097, 0.0380873866379261, 0.010117451660335064, 0.017617374658584595, -0.05633171275258064, -0.02816585637629032, 0.012664447538554668, 0.048338063061237335, 0.0030642319470643997, 0.01962362416088581, 0.051002614200115204, -0.022366542369127274, -0.005297751631587744, -0.050657790154218674, 0.01310331467539072, 0.038745686411857605, -0.03108118660748005, 0.024874353781342506, -0.05316559970378876, -0.009890181012451649, -0.014294524677097797, -0.009553194046020508, -0.01824432797729969, -0.015336833894252777, -0.02620662935078144, -0.01791517809033394, 0.0026077318470925093, 0.03843221068382263, 0.028683092445135117, 0.03664539381861687, -0.02449818141758442, 0.0204386617988348, -0.06291471421718597, -0.019796036183834076, 0.09147241711616516, 0.006347897462546825, -0.040469806641340256, 0.003493302734568715, 0.0018289389554411173, -0.031002817675471306, 0.02446683496236801, -0.02020355500280857, 0.00385380070656538, -0.008722481317818165, 0.03871433809399605, -0.03652000427246094, 0.009145674295723438, -0.013267889618873596, -0.014827434904873371, -0.005811069160699844, -0.04288357496261597, 0.01229611225426197, -0.010164473205804825, -0.001126555842347443, 0.003373790066689253, -0.00013053354632575065, -0.033980842679739, 0.011144086718559265, -0.03291502222418785, -0.05162956565618515, 0.010211494751274586, -0.005301669705659151, 0.009380782023072243, -0.015376018360257149, 0.016582902520895004, -0.01121461857110262, -0.021065615117549896, 0.013730267062783241, -0.024968396872282028, -0.020501358434557915, 0.010007734410464764, 0.0346391424536705, -0.0003433546517044306, -0.009012446738779545, 0.004870639648288488, 0.032413460314273834, 0.003336564637720585, 0.03927859663963318, 0.027115710079669952, 0.02045433595776558, -0.06056364253163338, 0.021912001073360443, 0.009059468284249306, 0.015626799315214157, 0.0022766224574297667, 0.008589253760874271, -0.024325769394636154, 0.014952825382351875, -0.030987143516540527, 0.07717789709568024, -0.005705270916223526, -0.014114275574684143, -0.003810697700828314, -0.07109645009040833, 0.01673964038491249, 0.019607950001955032, 0.0017495902720838785, -0.013957537710666656, 0.03561092168092728, 0.014012396335601807, -0.017491983249783516, 0.012256927788257599, 0.007981893606483936, 0.0005588696803897619, -0.0019533499144017696, -0.02101859450340271, 0.0102193308994174, 0.017617374658584595, -0.0623818077147007, 0.02609691210091114, 0.008636275306344032, -0.024043641984462738, 0.008738155476748943, 0.00025494449073448777, -0.05028161779046059, 6.76545751048252e-05, -0.018542129546403885, 0.008565743453800678, 0.007840828970074654, 0.023761512711644173, 0.021676894277334213, -0.032726939767599106, -0.010956000536680222, -0.010783588513731956, -0.04159832000732422, 0.038056038320064545, 0.04438826069235802, 0.0007327511557377875, -0.046143729239702225, 0.02611258625984192, 0.0023647877387702465, 0.015783537179231644, 0.020250577479600906, -0.007746785879135132, 0.016896378248929977, 0.005673923064023256, -0.03739773854613304, -0.015877580270171165, 0.0021453541703522205, -0.0014978295657783747, 0.030344517901539803, -0.00476484140381217, 0.006116708740592003, -0.015517082996666431, 0.024090662598609924, -0.022241152822971344, 0.04862019419670105, -0.005419223569333553, 0.04934118688106537, -0.0006764233112335205, -0.00952968280762434, 0.008879219181835651, 0.005321262404322624, -0.027100035920739174, -0.011488910764455795, -0.0352974459528923, -0.00999206118285656, -0.04351052641868591, 0.06050094962120056, 0.007272652816027403, 0.029404088854789734, 0.01894965022802353, -0.0019259207183495164, -0.008040670305490494, 0.023730164393782616, 0.0029917405918240547, 0.007746785879135132, -0.007586129475384951, 0.029654869809746742, 0.03981150686740875, 0.03974881023168564, 0.006097116507589817, -0.024654921144247055, -0.0024940967559814453, -0.03570496290922165, -0.04554812237620354, -0.013698919676244259, -0.027444859966635704, 0.031927574425935745, 0.028557701036334038, 0.006269528530538082, 0.021441787481307983, 0.009466988034546375, -0.009004609659314156, -0.0475543737411499, 0.03288367763161659, -0.010407417081296444, 0.0030897019896656275, -0.021943349391222, 0.013644061051309109, 0.013064130209386349, -0.055610716342926025, 0.027303796261548996, 0.0007557720527984202, -0.030642319470643997, -0.010760078206658363, 0.006857296451926231, 0.003248399356380105, 0.011355683207511902, -0.04633181542158127, -0.0032150924671441317, -0.0009869609493762255, -0.01022716797888279, -0.04896501824259758, -0.0034325667656958103, -0.010391742922365665, 0.005756210535764694, 0.02623797580599785, -0.032852329313755035, -0.017946524545550346, 0.00025298527907580137, 0.013032781891524792, -0.0005466244765557349, -0.01952958106994629, -0.003593223402276635, 0.007288326509296894, 0.006626107729971409, 0.03858894854784012, -0.04554812237620354, 0.0032111741602420807, 0.003738206345587969, -0.021457461640238762, -0.001973921898752451, -0.04282087832689285, 0.037836603820323944, -0.01766439527273178, -0.02540726400911808, 0.016912052407860756, 0.01730389893054962, -0.015195769257843494, -0.0019033895805478096, 0.010830610059201717, 0.0004146215505897999, 0.005732700228691101, -0.0054348972626030445, -0.026363367214798927, -0.02471761591732502, 0.03235076740384102, 0.03617518022656441, 0.02056405320763588, 0.03789930045604706, -0.005274240858852863, -0.019592275843024254, -0.010705219581723213, 0.016896378248929977, -0.012625263072550297, -0.006869052071124315, 0.00861276499927044, 0.012162884697318077, -0.025031091645359993, -0.0021335987839847803, 0.002691978821530938, 0.012319623492658138, -0.013361932709813118, -0.008847871795296669, -0.035266097635030746, -0.056770578026771545, -0.04379265382885933, 0.011175434105098248, -0.0432283990085125, -0.03247615694999695, -0.03028182126581669, -0.01576002687215805, -0.0031523972284048796, 0.011308661662042141, 0.013651898130774498, -0.02658279985189438, -0.007347103673964739, 0.038651641458272934, -0.006195077672600746, 0.008988936431705952, 0.0018622458446770906, -0.006751498207449913, -0.041755057871341705, 0.006394919008016586, 0.02531322091817856, 0.002693937858566642, 0.03325984627008438, 0.0031328049954026937, -0.01662992313504219, -0.02830692008137703, 0.026394713670015335, -0.040250372141599655, 0.04238201305270195, -0.030908774584531784, -0.009670747444033623, -0.0059834811836481094, -0.00501954136416316, 0.01438073068857193, 0.030219126492738724, -0.0063008759170770645, 0.006379245314747095, -0.013463811948895454, 0.00029119019745849073, 0.0003078436420764774, -0.019592275843024254, -0.006293039303272963, -0.01766439527273178, 0.00020020856754854321, -0.021457461640238762, -0.0012431299546733499, -0.020187880843877792, 0.025830456987023354, 0.012256927788257599, -0.0023804616648703814, 0.025093786418437958, -0.007108077872544527, -0.03003104031085968, 0.002360869199037552, -0.03915320336818695, 0.007985811680555344, -0.04351052641868591, 0.03890242427587509, 0.01753900572657585, -0.012719305232167244, 0.016708293929696083, 0.008722481317818165, 0.02377718687057495, -0.012852532789111137, -0.015297649428248405, 0.010509297251701355, 0.051096655428409576, -0.02703734114766121, -0.022664345800876617, -0.00918485876172781, -0.027350816875696182, -0.012876044027507305, 0.009098652750253677, -0.01195912528783083, -0.006347897462546825, 0.010736566968262196, 0.013502996414899826, 0.02910628542304039, 0.003940006718039513, 0.001029574079439044, -0.030532604083418846, -0.0037871869280934334, 0.035736311227083206, 0.006124545354396105, 0.030469907447695732, -0.02805613912642002, 0.01826000213623047, -0.015438714064657688, 0.02277406118810177, -0.02760159783065319, 0.03291502222418785, -0.05125339329242706, 0.01904369331896305, -0.0220530666410923, 0.019780362024903297, -0.0049607641994953156, -0.017821134999394417, -0.007586129475384951, 0.002180620329454541, 0.003906699828803539, 0.0052154636941850185, 0.032068636268377304, 0.0029172899667173624, 0.03601843863725662, -0.030516929924488068, -0.008244429714977741, 0.012421502731740475, -0.01056415494531393, -0.05325964465737343, -0.028824156150221825, -0.04727224260568619, -0.02007816545665264, -0.04310300573706627, -0.013024944812059402, -0.022711366415023804, -0.008244429714977741, -0.022476259618997574, -2.4276054318761453e-05, 0.015187932178378105, -0.01826000213623047, -0.013471649028360844, 0.0267865601927042, 0.009490498341619968, 0.003749961731955409, 0.0023275623098015785, -0.009576704353094101, 0.020705116912722588, 0.04617507755756378, 0.0036480817943811417, -0.008479537442326546, 0.029968345537781715, -0.013126824982464314, 0.06310280412435532, 0.02032894641160965, -0.02863606996834278, 0.045579470694065094, 0.043604571372270584, 0.038745686411857605, 0.005999154876917601, -0.003458036808297038, 0.03912185877561569, 0.01766439527273178, 0.0033620346803218126, 0.0021316397469490767, -0.009145674295723438, 0.030234800651669502, -0.011347846128046513, -0.0032092148903757334, 0.01131649874150753, 0.020250577479600906, 0.01871454156935215, 0.07448199391365051, -0.01264877337962389, -0.0205483790487051, 0.0038283306639641523, -0.03592439740896225, -0.005442734342068434, 0.04078328236937523, 0.012829022482037544, 0.03335389122366905, 0.040124982595443726, 0.004396506585180759, 0.040720585733652115, 0.013565692119300365, 0.0032601547427475452, 0.038526251912117004, -0.006269528530538082, -0.016880705952644348, 0.016097014769911766, -0.05178630352020264, -0.04285222664475441, -0.0013019067700952291, 0.047742459923028946, -0.026943298056721687, -0.02830692008137703, -0.03083040565252304, -0.006104953121393919, -0.004847129341214895, 0.0103290481492877, -0.003961558453738689, 0.016661271452903748, -0.005419223569333553, 0.0021923757158219814, -0.010235005058348179, 0.018338371068239212, 0.02899656817317009, 0.029529478400945663, 0.00016077912005130202, -0.0006656475597992539, -0.009498335421085358, -0.03322850167751312, -0.03567361459136009, -0.028228551149368286, -0.019216105341911316, -0.00629695737734437, 0.013526507653295994, 0.002488219179213047, 0.010877631604671478, 0.06266393512487411, -0.007182528264820576, -0.00501954136416316, 0.0019944936502724886, -0.007472494151443243, 0.008753828704357147, -0.026426061987876892, 0.029372740536928177, 0.04272683709859848, 0.0035364057403057814, -0.002582262037321925, 0.029639195650815964, -0.009686421602964401, -0.022272499278187752, -0.045454081147909164, 0.004521897528320551, -0.027883727103471756, -0.03257019817829132, 0.01201398391276598, 0.015783537179231644, -0.01604999229311943, -0.033980842679739, -0.03294637054204941, -0.005818906240165234, 0.00025445467326790094, 0.02703734114766121, -0.008847871795296669, 0.01379296276718378, -0.010877631604671478, -0.014858782291412354, -0.0031994187738746405, 0.03473318740725517, -0.07554781436920166, 0.004894150421023369, -0.02589315176010132, 0.008918403647840023, 0.035046663135290146, -0.005842416547238827, -0.01791517809033394, 0.01811893656849861, -0.0013009271351620555, 0.024106336757540703, -0.01996844820678234, 0.05777370557188988, -0.020281923934817314, 0.0063008759170770645, 0.0022922963835299015, 0.0004525815893430263, -0.01432587206363678, 0.009012446738779545, -0.025093786418437958, 0.03949802741408348, 0.03473318740725517, 0.0014645226765424013, -0.06865133345127106, 0.021049940958619118, -0.01604999229311943, -0.055736105889081955, -0.002472545253112912, -0.029263023287057877, -0.008432515896856785, 0.04943523183465004, -0.020626747980713844, -0.006359652616083622, 0.013095477595925331, 0.04034441336989403, -0.017021769657731056, 0.029576500877738, -0.05141013115644455, -0.06294606626033783, 0.0027468372136354446, -0.02112830989062786, -0.022554628551006317, -0.004631614312529564, -0.025109460577368736, 0.03479588404297829, 0.007629232481122017, 0.01777411252260208, 0.017507657408714294, -0.004839292261749506, 0.0231188852339983, -0.022256825119256973, 0.010407417081296444, -0.004114377778023481, 0.013260052539408207, -0.038056038320064545, 0.00546232657507062, 0.023385340347886086, -0.0014596246182918549, -0.02184930630028248, 0.019263125956058502, 0.005489755887538195, -0.01951390691101551, -0.010250679217278957, 0.03871433809399605, -0.04896501824259758, 0.011802387423813343, 0.002974107628688216, 0.014466936700046062, -0.023181581869721413, -0.02794642187654972, -0.022006044164299965, -0.03300906717777252, -0.0205483790487051, 0.03692752122879028, 0.016927726566791534, -0.011551606468856335, -0.005423142109066248, 0.009913691319525242, 0.051096655428409576, -0.012217743322253227, 0.003054435830563307, 0.023855555802583694, 0.00546232657507062, -0.007727193646132946, 0.014992009848356247, 0.03004671446979046, -0.0376485176384449, -0.023949598893523216, 0.031958919018507004, -0.007723275106400251, 0.03652000427246094, -0.011175434105098248, 0.021081289276480675, -0.01126947719603777, -0.03351062908768654, -0.03952937573194504, 0.05316559970378876, 0.02611258625984192, 0.017507657408714294, -0.0066417814232409, 0.019921425729990005, 0.001835796283558011, 0.017413614317774773, -0.013887004926800728, 0.01329139992594719, -0.017727091908454895, -0.01027418952435255, -0.0036461225245147943, 0.009898018091917038, 0.0056464942172169685, -0.0005941357812844217, 0.01062685064971447, -0.021441787481307983, 0.011183271184563637, -0.0184951089322567, 0.01235880795866251, 0.02412201091647148, -0.02448250912129879, 0.004988193511962891, -0.005924704484641552, 0.025156483054161072, -0.022789735347032547, 0.012789838016033173, -0.03780525550246239, -0.0038165755104273558, 0.022147109732031822, 0.05369850993156433, 0.002966270549222827, 0.0171001385897398, -0.005920785944908857, 0.00158207630738616, 0.02219413034617901, 0.0036324081011116505, 0.03811873123049736, -0.037491779774427414, -4.022539360448718e-05, 0.030799057334661484, 0.0701560229063034, 0.00029192492365837097, 0.009365107864141464, 0.002096373587846756, -0.012907391414046288, 0.008675459772348404, 0.002613609656691551, -0.007213876117020845, -0.02412201091647148, 0.014811760745942593, 0.029294371604919434, 0.0009374904329888523, 0.021316396072506905, -0.004208420868963003, -0.026363367214798927, -0.007178610190749168, 0.024858679622411728, -0.0072021204978227615, -0.002705693244934082, -0.008448189124464989, 0.0012137414887547493, -0.018620498478412628, -0.008573579601943493, -0.005082236602902412, 0.012155048549175262, -0.000502052076626569, 0.0234480369836092, -0.01896532252430916, -0.03150438144803047, 0.01780546084046364, -0.004549326375126839, 0.0038400860503315926, 0.04357322305440903, 0.03949802741408348, -0.011488910764455795, 0.025203503668308258, 0.012162884697318077, -0.018040567636489868, -0.0011216577840968966, 0.0059834811836481094, -0.05695866420865059, 0.0016104851383715868, -0.021426113322377205, 0.0048157814890146255, -0.026723865419626236, -0.01811893656849861, -0.020140860229730606, 0.01443558931350708, -0.025564001873135567, -0.029278697445988655, -0.004408262204378843, -0.02758592553436756, 0.006579086184501648, 0.01601080782711506, -0.025611022487282753, -0.010054755955934525, -0.003489384427666664, 0.01927880011498928, -0.016833683475852013, 0.0009144694777205586, -0.02034461870789528, -0.0013185602147132158, 0.005677841603755951, -0.011825897730886936, -0.051566869020462036, 0.032852329313755035, 0.009796137921512127, 0.009435640648007393, 0.02714705839753151, 0.022272499278187752, -0.01952958106994629, -0.04576755687594414, 0.047178201377391815, -0.022006044164299965, 0.00716293603181839, 0.007703682873398066, -0.018087590113282204, 0.021175332367420197, 0.0410967580974102, 0.005387875717133284, 0.024890027940273285, 0.030689341947436333, 0.003379667643457651, -0.02956082671880722, 0.02633201889693737, -0.015893254429101944, 0.0010491664288565516, -0.026958972215652466, 0.004984274972230196, -0.002523485105484724, -0.001905348850414157, -0.010187983512878418, 0.01507037878036499, 0.020877528935670853, 0.03357332572340965, 0.025219177827239037, -0.013040618970990181, -0.01195912528783083, 0.00018037139670923352, -0.023933924734592438, -0.009490498341619968, -0.011300824582576752, 0.03222537413239479, -0.01590109057724476, -0.013651898130774498, 0.023542078211903572, 0.0032915023621171713, 0.012891717255115509, -0.029654869809746742, -0.0029897813219577074, 0.008518721908330917, 0.02413768507540226, 0.00045870416215620935, 0.005231137853115797, -0.0018730215961113572, 0.01096383761614561, 0.005474081728607416, -0.0029643112793564796, -0.018651846796274185, 0.014396404847502708, -0.012789838016033173, 0.03730369359254837, 0.01547006145119667, 0.017382267862558365, -0.020626747980713844, -0.011966962367296219, -0.01896532252430916, 0.028479332104325294, 0.003577549709007144, 0.02368314377963543, -0.00011161474685650319, 0.004557163454592228, 0.03664539381861687, 0.002319725463166833, 0.002206090372055769, 0.011410541832447052, 0.03429431840777397, -0.008087691850960255, 0.023824207484722137, -0.023730164393782616, 0.03705291450023651, -0.0009962671902030706, -0.008761665783822536, -0.027977770194411278, -0.04583025351166725, 0.006927828770130873, -0.02703734114766121, 0.02288377843797207, 0.0007082608062773943, -0.005720944609493017, -0.0007229549810290337, 0.00615197466686368, -0.007629232481122017, -0.0006916073616594076, -0.01547789853066206, 0.0059717255644500256, -0.019796036183834076, 0.017852481454610825, -0.018573477864265442, -0.014161297120153904, 0.008628438226878643, -0.03197459504008293, 0.004882395267486572, -0.0006264630355872214, -0.04103406146168709, 0.05755427107214928, 0.015485734678804874, -0.036206524819135666, -0.02056405320763588, -0.025109460577368736, 0.013510833494365215, -0.0010805140482261777, 0.03003104031085968, -0.0012872125953435898, 0.014459099620580673, 0.0062656099908053875, 0.014263177290558815, -0.0011774958111345768, 0.023244276642799377, 0.026018543168902397, -0.01791517809033394, 0.0008576518739573658, -0.012844696640968323, -0.009427803568542004, -0.012421502731740475, -0.007789888884872198, 0.0073118372820317745, 0.023495057597756386, -0.019701993092894554, 0.0005701352492906153, -0.025031091645359993, -0.04561081901192665, -0.009999897330999374, 0.02321292832493782, -0.006363571155816317, -0.007111996412277222, -0.01478041335940361, 0.011441889218986034, -0.00019053489086218178, 0.03473318740725517, 0.002758592367172241, -0.011222455650568008, 0.01905936561524868, -0.013087640516459942, -0.011097065173089504, -0.02379286102950573, -0.03510935977101326, -0.01061901357024908, -0.02470194175839424, 0.007096322253346443, 0.0031680711545050144, -0.018416740000247955, 0.009372944943606853, 0.006453695707023144, -0.016457511112093925, 0.020375967025756836, -0.016692619770765305, 0.010164473205804825, -0.0020571888890117407, -0.036081135272979736, -0.005446652881801128, 0.0169904213398695, 0.012311786413192749, 0.009153511375188828, 0.00748424930498004, 0.023056190460920334, -0.0031621933449059725, -0.02874578721821308, -0.005963888950645924, 0.03197459504008293, 0.02308753877878189, -0.02727244794368744, -0.0068494598381221294, 0.01502335723489523, -0.009631562978029251, 0.011159760877490044, 0.007832991890609264, -0.029043590649962425, 0.026958972215652466, -0.0067044771276414394, 0.018683195114135742, -0.014145622961223125, 0.023134559392929077, 0.02909061126410961, -0.055704761296510696, -0.009905855171382427, 0.00894191488623619, -0.017868155613541603, -0.03730369359254837, -0.007660579867660999, 0.005920785944908857, 0.0436672642827034, 0.010360395535826683, 0.0009291637106798589, -0.006943502463400364, -0.009341597557067871, -0.0017789786215871572, 0.028479332104325294, -0.024670593440532684, -0.01431803498417139, -0.013087640516459942, 0.0007445064838975668, -0.0015713005559518933, 0.007977974601089954, 0.015305486507713795, 0.004036008846014738, -0.0348585769534111, 0.032382115721702576, -0.003963517490774393, 0.021786611527204514, 0.03266424313187599, 0.015407365746796131, 0.03235076740384102, 0.014553142711520195, -0.011535932309925556, 0.007300082128494978, -0.029529478400945663, -0.029278697445988655, -0.020485684275627136, 0.0014743187930434942, -0.005274240858852863, -0.0046433694660663605, 0.01695907488465309, 0.005626901518553495, -0.011465400457382202, -0.010791425593197346, -0.003389463759958744, -0.056770578026771545, -0.010109614580869675, 0.008510884828865528, -0.001361663220450282, -0.009890181012451649, -0.05025026947259903, 0.006355734542012215, 0.02206873893737793, -0.001770162140019238, -0.00230992934666574, 0.030093736946582794, 0.02288377843797207, 0.024686267599463463, 0.010493623092770576, -0.028150182217359543, -0.012672284618020058, 0.00894975196570158, 0.0040595196187496185, 0.01195128820836544, 0.023479383438825607, -0.015908928588032722, -0.013839984312653542, -0.011144086718559265, 0.048776932060718536, -0.011778876185417175, 0.029294371604919434, -0.025564001873135567, 0.025830456987023354, -0.0006093197735026479, -0.013487323187291622, -0.0030309250578284264, -0.02401229366660118, -0.016426164656877518, -0.032632894814014435, 0.010611176490783691, -0.02669251710176468, -0.012170721776783466, 0.010689545422792435, 0.0207678135484457, 0.012225580401718616, 0.009286738932132721, -0.023385340347886086, 0.04031306877732277, -0.02264867164194584, -0.020611073821783066, -0.003530528163537383, -0.008534395135939121, -0.005125339608639479, -0.00040066204383037984, -0.008354146964848042, 0.0063008759170770645, 0.0017525290604680777, -0.0035697126295417547, 0.022209804505109787, 0.0247332900762558, -0.03561092168092728, 0.03567361459136009, 0.03244480863213539, 0.014835271053016186, 0.015454387292265892, 0.02970189042389393, 0.008573579601943493, 0.019247451797127724, -0.014741228893399239, 0.011010859161615372, 0.04943523183465004, 0.01566598378121853, -0.008424678817391396, 0.005670004524290562, 0.0008708766545169055, -0.006434103474020958, 0.006179403979331255, -0.020046817138791084, -0.00035413040313869715, 0.063698410987854, -0.04031306877732277, 0.023730164393782616, -0.038651641458272934, -0.02565804496407509, 0.04658259451389313, 0.005474081728607416, -0.017821134999394417, -0.04159832000732422, 0.037617169320583344, 0.024090662598609924, 0.004682553932070732, -0.01896532252430916, -0.029419761151075363, -0.011097065173089504, 0.009521846659481525, -0.018918301910161972, -0.01896532252430916, -0.0402190238237381, 0.0034952620044350624, 0.013079803436994553, 0.03153572604060173, -0.011465400457382202, -0.010407417081296444, -0.014600164256989956, -0.029576500877738, 0.022225478664040565, 0.05266403779387474, 0.0015115441055968404, 0.000897326273843646, -0.022664345800876617], "id": 70}, {"title": "Tablets of Bah\u00e1\u2019u\u2019ll\u00e1h Revealed After the Kit\u00e1b-i-Aqdas", "text": "The Tablets of Bah\u00e1\u2019u\u2019ll\u00e1h Revealed After the Kit\u00e1b-i-Aqdas are selected tablets written by Bah\u00e1'u'll\u00e1h, the founder of the Bah\u00e1'\u00ed Faith, and published together as of 1978.As his mission drew to a close after his writing of the Kit\u00e1b-i-Aqdas in 1873, he continued to write unnumbered tablets and letters, doing so until the last days of his life in 1892.Six of the tablets in this volume were translated into English and published in 1917.", "vector": [0.03467293083667755, -0.0244834516197443, -0.007326378487050533, 0.036854337900877, 0.01987665891647339, -0.039408884942531586, -0.016231408342719078, -0.009436030872166157, -0.023134421557188034, 0.059873949736356735, 0.0033653981518000364, -0.006041930057108402, 0.009371450170874596, -0.0044919815845787525, -0.023823287338018417, -0.0006215940811671317, 0.022215932607650757, 0.0018019949784502387, -0.030912868678569794, -0.029621245339512825, -0.05083258077502251, 0.008661056868731976, 0.020393308252096176, 0.0008077134843915701, 0.019101684913039207, 0.0018145523499697447, -0.04735954850912094, -0.04049959033727646, 0.030912868678569794, 0.07462716847658157, 0.014853676781058311, 0.00028074884903617203, -0.011380642652511597, 0.010089019313454628, -0.030941572040319443, 0.0011615647235885262, 0.014071526005864143, 0.030884165316820145, -0.021369202062487602, -0.049225226044654846, -0.0005188920185901225, 0.03504606708884239, -7.977348286658525e-05, 0.018082736060023308, -0.046326249837875366, -0.05137793347239494, 0.006903012748807669, -0.02848748490214348, -0.011201250366866589, 0.021742338314652443, -0.0656144991517067, -0.08237691223621368, -0.024282531812787056, 0.03478774055838585, 0.026478292420506477, -0.0010359900770708919, 0.015700407326221466, 0.05037333816289902, 0.011847062967717648, -0.010454978793859482, 0.010490857064723969, -0.05255474895238876, 0.04380040615797043, 0.00907724630087614, -0.035304389894008636, 0.0010700746206566691, -0.009285341948270798, 0.02370847761631012, 0.018355412408709526, -0.04222175478935242, 0.02494269609451294, 0.015226812101900578, -0.0025294304359704256, 0.06377752125263214, -0.005353064276278019, 0.04724473878741264, -0.009995735250413418, 0.05241123214364052, 0.02432558685541153, -0.0025312243960797787, -0.027210213243961334, 0.015757814049720764, 0.024583911523222923, -0.020852552726864815, -0.041131049394607544, -0.013497470878064632, -0.05238252878189087, -0.030080487951636314, 0.0034245976712554693, -0.020235443487763405, 0.0014109198236837983, 0.051664963364601135, -0.061022061854600906, -0.0025832480750977993, 0.018541980534791946, 0.030912868678569794, 0.008417082950472832, 0.005044509656727314, 0.051664963364601135, -0.05427691340446472, 0.009414504282176495, -0.010318640619516373, -0.002328511094674468, -0.036222878843545914, 0.04133196920156479, 0.003953804727643728, 0.048880793154239655, -0.029678650200366974, -0.031745247542858124, -0.008000893518328667, -0.0015696820337325335, 0.013511822558939457, -0.011882941238582134, 0.010160775855183601, -0.012112563475966454, -0.028630999848246574, -0.011351940222084522, -0.0346442274749279, -0.03438590094447136, -0.012399590574204922, 0.0025688966270536184, -0.017264708876609802, 0.07169948518276215, -0.030740652233362198, -0.004194190260022879, -0.01917344145476818, -0.009967031888663769, -0.020608579739928246, 0.03154432773590088, -0.01611659862101078, -0.05528150871396065, -0.025114912539720535, 0.0038210544735193253, -0.00021841004490852356, -0.02167058177292347, 0.004517096094787121, -0.02512926422059536, 0.0076851630583405495, 0.029004136100411415, 0.0044561028480529785, -0.02212982438504696, -0.02568896673619747, 0.02268952876329422, 0.0057836053892970085, 0.0028864210471510887, 0.03145822137594223, 0.007064465899020433, 0.010067491792142391, 0.040298670530319214, 0.0028056944720447063, 0.01938871294260025, 0.031257301568984985, -0.025732021778821945, 0.029032837599515915, -0.041073646396398544, 0.06636077165603638, 0.008087001740932465, 0.005683145951479673, -0.0007929136627353728, 0.0035107058938592672, -0.02234509587287903, -0.0014997189864516258, 0.020938660949468613, -0.009270990267395973, 0.03550530970096588, 0.054104696959257126, 0.03318038582801819, 0.017092490568757057, -0.023636719211935997, 0.036567311733961105, 0.05398988351225853, -0.004997867625206709, 0.0012064126785844564, 0.01328937616199255, 0.0388922356069088, 0.011940347030758858, 0.03186006098985672, -0.0009615423623472452, -0.036997854709625244, 0.004430987872183323, -0.018599385395646095, -0.00484000239521265, 0.03142951801419258, -0.005948646459728479, 0.02274693362414837, 0.010376046411693096, 0.018685493618249893, 0.0408727265894413, -0.026004698127508163, 0.016044840216636658, -0.04646976292133331, 0.01692027412354946, 0.034529417753219604, 0.030912868678569794, 0.026808375492691994, 0.01858503557741642, -0.025832481682300568, -0.032950762659311295, -0.056659240275621414, -0.010519560426473618, 0.0449485182762146, -0.014042823575437069, 0.0019338482525199652, 0.013210443779826164, -0.006493998691439629, 0.0698051005601883, 0.038576506078243256, -0.03386925160884857, -0.00716133788228035, 0.043599486351013184, -0.0010889108525589108, -0.014767568558454514, 0.002502521499991417, 0.004395109601318836, 0.02799953892827034, 0.013411362655460835, -0.04911041632294655, -0.036165472120046616, 0.03760061040520668, -0.04374299943447113, 0.013777323067188263, -0.0654996931552887, -0.02590423822402954, -0.014315499924123287, 0.04377170279622078, 0.01740822196006775, 0.0286740530282259, 0.011516980826854706, -0.001519452198408544, 0.02944902889430523, 0.040269967168569565, -0.036997854709625244, 0.00551092904061079, 0.038260772824287415, -0.003304404905065894, 0.000582127773668617, 0.01638927310705185, 0.016001787036657333, 0.033323898911476135, -0.003388719167560339, -0.013963891193270683, 0.027525942772626877, -0.02488528937101364, 0.039782021194696426, 0.015183757990598679, 0.05964432656764984, -0.011581562459468842, -0.013490295968949795, 0.019345657899975777, -0.02642088755965233, 0.06498304009437561, 0.010555438697338104, 0.02185714989900589, 0.015829570591449738, -0.016690652817487717, 0.061596114188432693, -0.01657584123313427, 0.03708396106958389, 0.005184435285627842, -0.016432328149676323, 0.009694356471300125, 0.03719877079129219, 0.009845045395195484, -0.051693663001060486, -0.07307721674442291, 0.057434216141700745, -0.014982839114964008, -0.08008068799972534, 0.024928344413638115, -0.004377170465886593, 0.04222175478935242, -0.024153370410203934, -0.03932277485728264, 0.0022477845195680857, -0.06727926433086395, 0.034529417753219604, -0.012119739316403866, 0.0698051005601883, -0.014258094131946564, 0.03630898520350456, -0.03886353224515915, -0.09328395873308182, -0.043570782989263535, -0.01917344145476818, 0.00721515528857708, -0.01617400348186493, -0.029678650200366974, 0.015628650784492493, -0.02349320612847805, -0.038232073187828064, -0.021139580756425858, -0.030166596174240112, -0.0028092823922634125, -0.0011965461308136582, -0.011330412700772285, -0.043599486351013184, 0.012356536462903023, 0.0052526043727993965, -0.0025294304359704256, -0.02268952876329422, 0.005159320309758186, 0.028530539944767952, -0.0510047972202301, -0.014114580117166042, -0.0009714089101180434, -0.03992553427815437, 0.035390499979257584, 0.04420224577188492, -0.015155055560171604, -0.03223319724202156, -0.040183860808610916, 0.01895816996693611, -0.041016239672899246, -0.05367415398359299, 0.04457538202404976, -0.011538508348166943, 0.0009391183266416192, -0.04931133612990379, 0.006881485693156719, 0.004305413458496332, 0.035734932869672775, -0.025660265237092972, -0.018628088757395744, 0.026994941756129265, 0.029118945822119713, -0.007527297828346491, 0.05846751481294632, -0.024339936673641205, -0.0017840557266026735, -0.03645250201225281, -0.007412486709654331, -0.028889324516057968, 0.010261235758662224, 0.04959836229681969, 0.00474671833217144, -0.032089680433273315, -0.007168513257056475, 0.012421118095517159, -0.00015887424524407834, -0.03556271642446518, -0.032922063022851944, -0.009407328441739082, 0.0011911643669009209, -0.03398406505584717, -0.030338814482092857, -0.03341000899672508, 0.005489401984959841, -0.025660265237092972, 0.02642088755965233, 0.011804008856415749, 0.0006722723483107984, -0.024655668064951897, -0.030166596174240112, 0.008330974727869034, 0.0612516812980175, 0.016647599637508392, 0.015341623686254025, -0.0408727265894413, 0.0550231859087944, -0.029592541977763176, 0.029965678229928017, -0.01371991727501154, -0.02281869202852249, 0.013145862147212029, 0.01328937616199255, -0.04750306159257889, 0.05177977308630943, 0.01043345220386982, -0.047675278037786484, 0.017465626820921898, -0.03231930360198021, 0.07703819870948792, -0.0014180955477058887, -0.010031613521277905, 0.08111398667097092, -0.0012082066386938095, -0.022990908473730087, -0.032864656299352646, 0.014781919308006763, -0.007943487726151943, -0.007329966407269239, 0.04529295116662979, -0.0029240932781249285, 0.05958692356944084, 0.02571767009794712, -0.0193600095808506, -0.04971317574381828, -0.03803115338087082, 0.006246437318623066, -0.032864656299352646, -0.009184882044792175, 0.013224795460700989, 0.03467293083667755, 0.0153272720053792, -0.025760723277926445, 0.014695811085402966, 0.03312298282980919, 0.008955259807407856, -0.0038067030254751444, -0.009708707220852375, 0.06165352091193199, 0.027698159217834473, 0.0030460800044238567, 0.041102346032857895, -0.00021134647249709815, 0.007505770772695541, -0.024497803300619125, 0.03590714931488037, 0.006745147984474897, -0.028013890609145164, 0.005536044016480446, 0.026349131017923355, -0.003582462901249528, 0.018054034560918808, -0.010533911176025867, -0.034988660365343094, 0.04058569669723511, 0.04578089714050293, -0.01186858955770731, -0.03429979458451271, -0.014049999415874481, 0.03105638176202774, -0.026564400643110275, -0.02985086664557457, -0.0024504978209733963, -0.0347590371966362, 0.037457097321748734, -0.035821039229631424, -0.03969591110944748, -0.006196207366883755, 0.02901848591864109, 0.0471012219786644, 0.00042964439489878714, -0.004369994625449181, 0.027468537911772728, -0.06285903602838516, -0.08473053574562073, -0.0061280382797122, 0.030137894675135612, 0.024454748257994652, 0.02312006987631321, -0.022086771205067635, -0.03407017141580582, 0.014444662258028984, 0.01063437107950449, 0.018010979518294334, -0.03800245001912117, 0.005780017469078302, 0.019647037610411644, -0.018757252022624016, -0.012327834032475948, -0.04626884311437607, -0.011136669665575027, 0.005263368133455515, 0.0899544358253479, -0.04173380881547928, -0.031687844544649124, -0.04690030589699745, -0.009687180630862713, 0.0007704896270297468, 0.0035107058938592672, -0.0020540410187095404, 0.0022208758164197206, -0.03309427946805954, 0.026133859530091286, -0.04655586928129196, 0.031659141182899475, -0.042307864874601364, -0.0023482441902160645, 0.009902451187372208, -0.029004136100411415, -0.0043233525939285755, -0.0430254302918911, -0.005302834324538708, 0.022086771205067635, 0.0011310679838061333, -0.04417354241013527, -0.02630607597529888, -0.03708396106958389, 0.007943487726151943, 0.036108069121837616, 0.023421449586749077, -0.025488046929240227, 0.007764095440506935, -0.03805985674262047, -0.010376046411693096, -0.027669457718729973, -0.03226189687848091, -0.011882941238582134, 0.04543646425008774, -0.006052693817764521, 0.007656460162252188, 0.016676301136612892, 0.01938871294260025, 0.029133297502994537, -3.0748949939152226e-05, -0.004646258894354105, -0.05387507379055023, -0.04250878095626831, -0.032032277435064316, -0.008589300327003002, 0.024870937690138817, -0.0020970951300114393, 0.01976184733211994, 0.01670500449836254, 0.033266495913267136, -0.04646976292133331, -0.027583349496126175, -0.005751315038651228, 0.020264146849513054, 0.045924410223960876, -0.027640754356980324, -0.07525862753391266, 0.025430642068386078, 0.010239708237349987, -0.03280724957585335, 0.010167951695621014, 0.004097318276762962, 0.005815896205604076, -0.05588426813483238, -0.018283655866980553, -0.004926110617816448, -0.021096525713801384, -0.00016291056817863137, 0.015025893226265907, 0.00510191498324275, 0.004111669957637787, 0.022244635969400406, -0.0015983846969902515, 0.04239397123456001, 0.013231970369815826, -0.012169968336820602, -0.018972521647810936, -0.016044840216636658, -0.004814887419342995, 0.008409908041357994, 0.036165472120046616, -0.027124105021357536, 0.016590192914009094, 0.03765801712870598, 0.01938871294260025, -0.028085647150874138, 0.00628231605514884, 0.005726200062781572, -0.003306198865175247, 0.014114580117166042, 0.027296321466565132, 0.018082736060023308, -0.026593104004859924, -0.049741875380277634, 0.051693663001060486, 0.03401276469230652, -0.029334217309951782, 0.013856255449354649, -0.020709039643406868, -0.010268411599099636, 0.031171193346381187, 0.0017876435304060578, -0.03461552411317825, -0.00489381980150938, 0.0018109645461663604, 0.02293350175023079, 0.08013809472322464, 0.06836996227502823, -0.013691214844584465, -0.03194616734981537, 0.004466866608709097, 0.028473135083913803, -0.014114580117166042, 0.001538288313895464, 0.0008767794934101403, 0.0010772503446787596, -0.012736848555505276, 0.02111087739467621, -0.020335903391242027, -0.006511937826871872, -0.018111439421772957, -0.02620561607182026, -0.009744585491716862, -0.013109983876347542, 0.026492644101381302, 0.005399705842137337, 0.03909315541386604, -0.011976225301623344, 0.021168282255530357, 0.020407659932971, 0.02019238844513893, 0.0010180509416386485, -0.03341000899672508, 0.008998313918709755, -0.011459575966000557, 0.03025270625948906, 0.005991700571030378, -0.0016234996728599072, -0.018326710909605026, -0.012019279412925243, -0.003482003230601549, -0.01305975392460823, 0.007634933106601238, 0.011036209762096405, -0.038232073187828064, -0.03269243985414505, 0.02426818013191223, -0.017149897292256355, 0.00201816251501441, 0.005876889452338219, 0.030539732426404953, -0.02429688349366188, 0.024067262187600136, -0.004517096094787121, 0.009421680122613907, 0.014595352113246918, -0.01105056144297123, -0.028013890609145164, 8.08386248536408e-05, 0.00730843935161829, 0.03717007115483284, -0.017365166917443275, -0.007505770772695541, 0.014265269972383976, -0.02376588247716427, -0.05022982507944107, -0.0234645027667284, -0.03444330766797066, 0.020694687962532043, 0.00962977483868599, 0.0122560765594244, -0.004452514927834272, 0.003996858838945627, 0.008618002757430077, -0.009192057885229588, -0.03671082481741905, 0.014839325100183487, 0.013389836065471172, 0.013267849572002888, -0.03544790297746658, 0.015384677797555923, 0.006465295795351267, -0.020307200029492378, -0.03613676875829697, -0.01162461657077074, 0.0327785462141037, 0.0019266725284978747, 0.03992553427815437, -0.024426044896245003, -0.008897854946553707, 0.051636260002851486, 0.014602527022361755, -0.0031931817065924406, -0.01593003049492836, -0.0065370528027415276, -0.0012324246345087886, 0.04690030589699745, 0.014057175256311893, -0.015384677797555923, -0.0009624392841942608, -0.024024207144975662, -0.010828115046024323, 0.00912030041217804, -0.00024285222752951086, -0.03966720774769783, -0.014286797493696213, -0.02861664816737175, 0.00014541982091031969, 0.004621143918484449, -0.029592541977763176, -0.021598823368549347, -0.015355974435806274, 0.009522139094769955, -0.029535137116909027, -0.01082093920558691, -0.02172798663377762, -0.0017526621231809258, 0.023938098922371864, -0.01134476438164711, -0.02432558685541153, -0.005374591331928968, -0.04532165080308914, -0.04730214178562164, -0.017881818115711212, 0.02413901872932911, -0.08042512089014053, 0.011394994333386421, -0.0027608464006334543, -0.00321470876224339, 0.01338266022503376, 8.542153409507591e-06, -0.013734268955886364, 0.0046247318387031555, -0.0038138788659125566, 0.029965678229928017, 0.015542542561888695, -0.026435239240527153, -0.0014369317796081305, 0.002829015487805009, 0.052152909338474274, 0.013669687323272228, 0.016059191897511482, -0.03148692473769188, 0.01673370786011219, 0.018714196979999542, 0.0076851630583405495, -0.02411031536757946, 0.03028140775859356, -0.010318640619516373, -0.014473364688456059, 0.016130948439240456, 0.01214844174683094, -0.008036771789193153, 0.0021473250817507505, -0.034529417753219604, -0.014681460335850716, -0.016217056661844254, 0.028659703209996223, 0.006705681327730417, -0.030798057094216347, -0.021196985617280006, 0.015786515548825264, -0.03421368449926376, -0.00797936599701643, 0.017680898308753967, 0.014695811085402966, -0.07548824697732925, -0.012772726826369762, 0.021168282255530357, 0.015068947337567806, -0.01598743535578251, 0.021943258121609688, 0.02089560590684414, 0.010103370063006878, 0.015255515463650227, 0.03071194887161255, -0.01781005971133709, -0.0007669017650187016, -0.04078661650419235, 0.021527066826820374, -0.021785391494631767, 0.001253951690159738, -0.036538608372211456, -0.06601633876562119, 0.011581562459468842, 0.03274984657764435, -0.01796792633831501, 0.013461592607200146, 0.02716715820133686, 0.02386634238064289, 0.03194616734981537, 0.002961765741929412, 0.041418079286813736, 0.029965678229928017, -0.0010646928567439318, -0.015542542561888695, 0.023636719211935997, -0.01799662783741951, 0.0137988505885005, 0.004438163712620735, -0.01874290034174919, 0.027267618104815483, -0.03851909935474396, 0.012937767431139946, -0.026219967752695084, 0.073593869805336, -0.005266955588012934, -0.005496577825397253, -0.0367395281791687, -0.014997189864516258, -0.014136107638478279, 0.03180265426635742, -0.029965678229928017, -0.007534473668783903, -0.015298569574952126, -0.001488955458626151, -0.009651301428675652, 0.01381320133805275, 0.038949642330408096, -0.01555689424276352, 0.0035412025172263384, -0.028415728360414505, -0.03429979458451271, 0.010103370063006878, 0.05364545062184334, 0.005256192293018103, -0.01157438661903143, 0.04004034399986267, -0.028358323499560356, -0.0193600095808506, -0.0026765321381390095, -0.022388150915503502, 0.006942479405552149, 0.009758937172591686, -0.013081281445920467, 0.0008175800903700292, 0.012227374128997326, -0.011710724793374538, 0.0326637364923954, -0.04374299943447113, 0.006996296811848879, 0.013892133720219135, 0.004682137165218592, -0.01781005971133709, -0.004194190260022879, -0.02787037566304207, 0.04813452437520027, 0.0046319072134792805, -0.029994379729032516, -0.026047751307487488, -0.03869131579995155, -0.026506995782256126, 0.01673370786011219, 0.033323898911476135, -0.019934063777327538, 0.02416772022843361, 0.008079825900495052, 0.017637843266129494, 0.011136669665575027, 0.018541980534791946, 0.011273007839918137, 0.004513508640229702, 0.015413380227982998, -0.013734268955886364, -0.026047751307487488, -0.0018154493300244212, -0.002769815968349576, 0.011172547936439514, -0.07169948518276215, -0.010842466726899147, -0.006702093873172998, -0.011925995349884033, -0.0051557328552007675, 0.011208426207304, 0.006214146967977285, -0.0017060200916603208, 0.012155617587268353, -0.02454085648059845, -0.003304404905065894, 0.010899871587753296, 0.027238916605710983, -0.0035429964773356915, 0.06343308836221695, 0.0327785462141037, 0.024842236191034317, 0.00019026787776965648, -0.022416852414608, -0.016748057678341866, -0.02188585139811039, -0.013619458302855492, -0.0040506767109036446, -0.007362257223576307, -0.017236005514860153, 0.0004964679828844965, -0.006084984168410301, -0.004710840061306953, 0.012794253416359425, 0.03137211129069328, 0.007498594932258129, 0.032520223408937454, -0.003482003230601549, 0.02797083556652069, 0.010627195239067078, -0.012607686221599579, -0.008201812393963337, -0.02673661708831787, 0.003004819853231311, -0.009601072408258915, 0.024626964703202248, 0.014071526005864143, 0.019804902374744415, -0.03142951801419258, -0.02024979516863823, 0.0039681559428572655, -0.0037492974661290646, 0.009751761332154274, 0.050057608634233475, -0.02848748490214348, 0.031228598207235336, 0.004398697521537542, -0.006734384223818779, 0.03748580068349838, 0.03613676875829697, -0.030482327565550804, -0.035333093255758286, -0.028300918638706207, 0.059012867510318756, 0.007972190156579018, 0.06463860720396042, 0.024454748257994652, -0.009457558393478394, -0.013167389668524265, 0.007390959654003382, 0.0041475482285022736, 0.0025868359953165054, 0.02633477933704853, -0.006038342602550983, 0.027310673147439957, 0.022402500733733177, -0.006239261478185654, 0.02537323720753193, -0.010849641636013985, -0.019403062760829926, -0.01941741444170475, -0.004872292745858431, 0.011674846522510052, 0.04127456247806549, -0.02663615718483925, 0.0022190818563103676, -0.034529417753219604, 0.017279058694839478, 0.008811745792627335, 0.005966585595160723, 0.0224742591381073, -0.0012279398506507277, 0.022675177082419395, 0.004240832291543484, -0.06245719641447067, -0.01555689424276352, -0.032864656299352646, 0.010117721743881702, -0.04816322401165962, 0.02062293142080307, 0.007032175548374653, -0.009615423157811165, 0.03636639192700386, -0.012198671698570251, -0.02475612796843052, -0.019116036593914032, 0.02537323720753193, 0.010770709253847599, -0.0008296890300698578, 0.034529417753219604, -0.01898687332868576, -0.021900203078985214, -0.028229160234332085, -0.006246437318623066, 0.0005368312704376876, -0.02735372632741928, -0.029649946838617325, -0.026133859530091286, -0.025861183181405067, -0.030740652233362198, -0.03401276469230652, -2.086836138914805e-05, 0.030884165316820145, 0.01115819625556469, -0.016618896275758743, -0.012973645702004433, 0.01461687870323658, -0.026478292420506477, 0.01512635312974453, -0.029319865629076958, 0.0234645027667284, -0.014487716369330883, 0.02475612796843052, -0.013597930781543255, -0.01938871294260025, 0.007103932090103626, -0.01960398256778717, -0.004552974831312895, -0.00048032269114628434, -0.04159029573202133, -0.04044218361377716, -0.05430561676621437, -0.022560367360711098, 0.03312298282980919, 0.007520121987909079, -0.02510056085884571, 0.004208541475236416, -0.006849195342510939, -0.006569343619048595, -0.03757190704345703, 0.005259780213236809, -0.01969009079039097, -0.03648120164871216, -0.028272215276956558, 0.00917053036391735, -0.01638927310705185, -0.005482226610183716, -0.033754441887140274, 0.016776761040091515, 0.0012907270574942231, 0.0076636360026896, 0.022330744192004204, 0.025043154135346413, -0.02392374724149704, 0.012464172206819057, 0.02488528937101364, 0.07256057113409042, -0.03524698317050934, -0.0027769915759563446, -0.026994941756129265, 0.0194461178034544, 0.019058629870414734, -0.01750868186354637, 0.03223319724202156, 0.038605205714702606, 0.007613406050950289, 0.046354953199625015, 0.03541920334100723, -0.02207241952419281, -0.042709700763225555, 0.008739989250898361, -0.0007866349187679589, 0.011882941238582134, -0.010096194222569466, 0.011387818492949009, -0.016719356179237366, -0.02059422805905342, -0.035792335867881775, 0.07020694017410278, -0.024009855464100838, -0.006723620928823948, 0.02333534136414528, 0.005091151222586632, 0.003803115338087082, 0.0023213354870676994, 0.03711266443133354, -0.001791231450624764, 0.022086771205067635, 0.01925954967737198, -0.055798158049583435, 0.01793922297656536, -0.007728217169642448, 0.016346219927072525, 0.04916782304644585, -0.0029743232298642397, -0.014437486417591572, 0.017982276156544685, 0.0002026010915869847, -0.04911041632294655, 0.016805464401841164, -0.0245695598423481, 0.015198109671473503, 0.003306198865175247, -0.0022011427208781242, -0.005736963357776403, -0.05752032250165939, -0.015757814049720764, 0.0049332864582538605, -0.020048875361680984, -0.010490857064723969, 0.0173508170992136, -0.03309427946805954, -0.003198563354089856, -0.020981714129447937, 0.04305413365364075, -0.007007060572504997, 0.002269311575219035, -0.01228477992117405, 0.03145822137594223, 0.006648276001214981, -0.027124105021357536, -0.010282762348651886, 0.005360239651054144, 0.019704442471265793, 0.022402500733733177, 0.024827884510159492, -0.011904467828571796, -0.032979466021060944, 0.004549386911094189, -0.016661949455738068, 0.024368640035390854, -0.0030030258931219578, -0.01651843637228012, 0.02365107089281082, -0.03645250201225281, 0.022431204095482826, -0.0024989338126033545, 0.03886353224515915, -0.03352481871843338, 0.02373717911541462, -0.022058067843317986, -0.008625178597867489, 0.012105387635529041, -0.020938660949468613, -0.012629212811589241, 0.028257863596081734, 0.013971067033708096, -0.007591878995299339, -0.011890117079019547, 0.014250918291509151, -0.015269866213202477, 0.015355974435806274, -0.007060877978801727, 0.013131511397659779, -0.00536382757127285, -0.027267618104815483, 0.009737410582602024, 0.018298007547855377, -0.01237806398421526, -0.013188916258513927, -0.02550239861011505, 0.0008758825715631247, 0.0052956584841012955, 0.011222777888178825, -0.0057405512779951096, -0.009758937172591686, -0.015915678814053535, -0.018441520631313324, 0.025975994765758514, -0.003404864575713873, -0.004617555998265743, -0.020909957587718964, -0.0015212460421025753, 0.002507903380319476, 0.0015230400022119284, -0.018785953521728516, 0.013562052510678768, -0.022029366344213486, -0.0052884831093251705, -0.03484514728188515, 0.043197646737098694, 0.026492644101381302, 0.004875880666077137, 0.017853114753961563, 0.006397126708179712, -0.011646143160760403, -0.013691214844584465, -0.02121133729815483, -0.026937536895275116, 0.026033399626612663, -0.01219149585813284, 0.011567210778594017, 0.008316623978316784, -0.0024235891178250313, -0.012248901650309563, -0.012069509364664555, 0.03728488087654114, -0.01086399331688881, -0.0003946629003621638, 0.023722827434539795, -0.0012333216145634651, -0.024454748257994652, 0.029592541977763176, 0.009845045395195484, 0.01703508570790291, 0.015786515548825264, 0.028889324516057968, -0.012435468845069408, 0.008539070375263691, 0.007857379503548145, -0.013267849572002888, -0.027066700160503387, 0.0022639299277216196, 0.0030604314524680376, 0.017020734027028084, 0.022302042692899704, -0.0086754085496068, 0.008646705187857151, -0.013210443779826164, 0.011165372096002102, -0.009019841440021992, -0.004334116354584694, 0.00020417077757883817, -0.007426838390529156, 0.015499488450586796, 0.005327949300408363, -0.028329620137810707, 0.034931253641843796, -0.0013230176409706473, 0.024598263204097748, 0.016633247956633568, 0.014609702862799168, 0.022488608956336975, -0.010519560426473618, -0.004075791221112013, -0.01143804844468832, 0.02663615718483925, 0.026033399626612663, -0.023206178098917007, 0.011122317984700203, 0.005058860871940851, 0.0031931817065924406, 0.004779009148478508, -0.01509764976799488, -0.015671705827116966, 0.0023231294471770525, 0.007150574121624231, 0.01670500449836254, 0.022158527746796608, -0.02220158278942108, -0.03200357407331467, -0.011488278396427631, -0.0020953011699020863, 0.01361228246241808, -0.028358323499560356, -0.013145862147212029, 0.03257763013243675, 0.0409875363111496, -0.04572349041700363, 0.0153272720053792, 0.03105638176202774, 0.02898978441953659, -0.029736055061221123, 0.004061440005898476, 0.019474821165204048, -0.019647037610411644, -0.010555438697338104, 0.0027339374646544456, -0.01700638234615326, 0.006203383207321167, 0.0366247184574604, 0.017264708876609802, 0.02703799679875374, -0.00424442021176219, -0.017881818115711212, -0.0204937681555748, -0.025201020762324333, -0.0010637958766892552, 0.039035748690366745, -0.004936873912811279, -0.04787619784474373, 0.01864244043827057, 0.009751761332154274, -0.00878304336220026, -0.013038227334618568, 0.003702655667439103, -0.002579660154879093, 0.004732367116957903, -0.014049999415874481, 0.00917053036391735, 0.05594167113304138, 0.025143614038825035, -0.021340498700737953, -0.022416852414608, -0.0055611589923501015, -0.017637843266129494, 0.014638406224548817, 0.04041348025202751, -0.03398406505584717, 0.0030263469088822603, 0.006698505952954292, 0.015729110687971115, -0.007986541837453842, 0.019991470500826836, 0.019532226026058197, 0.010691776871681213, 0.002857718151062727, -0.01713554561138153, -0.011610264889895916, -0.015112001448869705, -0.004728779196739197, 0.0069353035651147366, 0.004352055490016937, 0.013684039004147053, -0.0450633279979229, -0.002059422666206956, 0.022560367360711098, 0.03461552411317825, -0.0008642220636829734, 0.010835290886461735, 0.011136669665575027, -0.005442760419100523, -0.024626964703202248, 0.050459444522857666, 0.014659932814538479, 0.0032487933058291674, 0.029133297502994537, -0.021814094856381416, -0.011014683172106743, 0.016030490398406982, -0.0022154939360916615, -0.027468537911772728, -0.014136107638478279, -0.023349693045020103, 0.03794504329562187, -0.04621143639087677, -0.004140372853726149, -0.009809167124330997, 0.04448927193880081, -0.005019394680857658, 0.0008117498364299536, 0.04288191720843315, 0.019962767139077187, 0.02821481041610241, 0.02373717911541462, 0.010067491792142391, -0.022976556792855263, -0.036567311733961105, 0.0020091929472982883, -0.028788864612579346, -0.05450653284788132, 0.02534453384578228, 0.004179839044809341, 0.01551384013146162, -0.007577527780085802, 0.0011149226920679212, -0.017666546627879143, 0.0018405643058940768, -0.006633924786001444, -0.013217619620263577, 0.019804902374744415, -0.006684154272079468, -0.0007799076847732067, 0.0034604761749505997, 0.00754882488399744, 0.00291691767051816, -0.004309001378715038, -0.035763636231422424, 0.023478854447603226, 0.04181991517543793, 0.005170084070414305, 0.00044960176455788314, 0.03731358423829079, 0.012930591590702534, -0.002567102899774909, -0.03145822137594223, -0.013468768447637558, -0.0014450043672695756, 0.02990827150642872, -0.008847624994814396, 0.03639509528875351, -0.03361092880368233, 0.015442082658410072, 0.01966138742864132, -0.008574948646128178, 0.004779009148478508, 0.015413380227982998, 0.0327211432158947, -0.04032737389206886, -0.0346442274749279, -0.02151271514594555, 0.011516980826854706, 0.028788864612579346, 0.013734268955886364, 0.0015051007503643632, -9.490970114711672e-05, 0.006723620928823948, 0.023019609972834587, 0.024038558825850487, -0.013605106621980667, -0.005345888435840607, -0.005134205799549818, -0.00527054350823164, -0.011359116062521935, -0.009235111996531487, -0.027482889592647552, 0.004481217823922634, 0.0005072315107099712, 0.02692318521440029, 0.034529417753219604, -0.015671705827116966, -0.024210775271058083, 0.008180285803973675, -0.00022625844576396048, 0.00910594966262579, -0.026191264390945435, -0.017580438405275345, 0.03226189687848091, 0.02947773039340973, -0.032462816685438156, -0.03191746398806572, -0.016719356179237366, 0.014236567541956902, -0.026478292420506477, -0.015872623771429062, 0.02716715820133686, 0.018498927354812622, 0.016202706843614578, -0.006673390977084637, -0.023105718195438385, -0.0013902897480875254, 0.024411695078015327, -0.0011337589239701629, -0.016030490398406982, -0.02376588247716427, -0.0037241827230900526, 0.012370888143777847, -0.010792236775159836, -0.04316894710063934, -0.020536823198199272, 0.006540640722960234, -0.00850319117307663, 0.0510047972202301, 0.014057175256311893, -0.00921358447521925, -0.02695188857614994, 0.006605221889913082, 0.019316954538226128, 0.005281307268887758, 0.05878324434161186, -0.01877160184085369, 0.010670249350368977, 0.012880361638963223, 0.029649946838617325, 0.007340730167925358, -0.022833043709397316, -0.03814596310257912, 0.007441189605742693, -0.03714136779308319, -0.0045816777274012566, -0.018714196979999542, 0.012779902666807175, -0.016504084691405296, 0.01228477992117405, -0.0183410607278347, 0.016690652817487717, -0.011122317984700203, 0.02824351191520691, -0.0214553102850914, -0.013684039004147053, 0.008618002757430077, -0.01182553544640541, 0.005797956604510546, -0.015083298087120056, -0.04609662666916847, 0.0038856356404721737, 0.027425484731793404, 0.0009758936939761043, 0.0026765321381390095, 0.05884065106511116, 0.007182864937931299, 0.003986095078289509, -0.024827884510159492, 0.008000893518328667, 0.012248901650309563, -0.014064351096749306, 0.022459907457232475, 0.008790219202637672, 0.031659141182899475, -0.028573594987392426, 0.03843298926949501, -0.024985749274492264, 0.01697768084704876, 0.02080949768424034, 0.0015876211691647768, -0.026248671114444733, 0.02574637345969677, -0.008266394026577473, -0.01571475900709629, -0.028114350512623787, -0.0014019502559676766, 0.028143052011728287, 0.006619573105126619, 0.023450152948498726, -0.009809167124330997, 0.00495481351390481, 0.015671705827116966, 0.0031070734839886427, -0.021598823368549347, 0.009134652093052864, 0.004441751632839441, 0.0049440497532486916, 0.020579876378178596, 0.010232532396912575, -0.016504084691405296, 0.006813316605985165, -0.0173795185983181, 0.023421449586749077, -0.00014990463387221098, -0.015872623771429062, 0.03935147821903229, 0.009220760315656662, 1.8948303477372974e-05, -0.025416290387511253, 0.01590132713317871, 0.03676823154091835, 0.010663074441254139, 0.017867466434836388, 0.020953012630343437, -0.02673661708831787, -0.0019087332766503096, 0.036969151347875595, 0.022804340347647667, 0.015815218910574913, -0.005640091840177774, 0.04738825187087059, 0.02432558685541153, 0.016877220943570137, -0.016475381329655647, -0.022990908473730087, 0.0005058860988356173, 0.0367395281791687, 0.019331306219100952, 0.013877782970666885, 0.016016138717532158, 0.01874290034174919, -0.002136561321094632, -0.02599034644663334, -0.001754455966874957, 0.044833704829216, 0.00272855581715703, -0.014724514447152615, -0.0025724845472723246, -0.026004698127508163, 0.0003960083413403481, 0.034931253641843796, 0.034184981137514114, -0.011136669665575027, 0.014767568558454514, -0.036854337900877, 0.02182844653725624, -0.0020414835307747126, -0.006346897222101688, -0.014781919308006763, -0.026076454669237137, -0.00394304096698761, 0.0173795185983181, -0.01772395148873329, -0.004857941530644894, 0.0007686957251280546, 0.025488046929240227, 0.004029149655252695, -0.02580377832055092, 0.0007328172796405852, 0.012083860114216805, -0.01304540317505598, -0.0036918921396136284, 0.0025384000036865473, -0.01461687870323658, 0.02333534136414528, -0.018628088757395744, -0.01697768084704876, 0.01874290034174919, -0.005012218840420246, -0.004072203766554594, -0.030023083090782166, 0.0407579131424427, 0.0044561028480529785, 0.012478522956371307, 0.022086771205067635, 0.006727208383381367, 0.00377441244199872, 0.0028935966547578573, -0.04115975275635719, -0.015886975452303886, 0.002873863559216261, 0.012098211795091629, -0.008015245199203491, 0.008008069358766079, -0.00341921579092741, 0.019460469484329224, -0.006565755698829889, -0.021498365327715874, -0.025975994765758514, -0.0031770362984389067, -0.004204954020678997, 0.01593003049492836], "id": 71}, {"title": "Alum Rock, Birmingham", "text": "Alum Rock (also known as \"The Rock\") is an inner-city suburb of Birmingham, England, located roughly 2 miles east of Birmingham city centre. The area is officially a division of Saltley.", "vector": [0.01738770864903927, 0.03056560643017292, -0.019092386588454247, -0.007378288544714451, -0.04642651975154877, 0.012058739550411701, -0.02967621013522148, -0.04260211065411568, -0.025496045127511024, -0.004610040690749884, -0.011154519394040108, 0.048205312341451645, -0.026429910212755203, -0.00123403815086931, 0.01450458075851202, 0.005903372075408697, -0.00489538861438632, 0.018514279276132584, 0.05958959087729454, 0.010242887772619724, 0.03931134194135666, -0.06190202385187149, -0.032551925629377365, -0.010005715303122997, -0.013429893180727959, 0.005440144333988428, 0.006433304399251938, -0.010035362094640732, -0.0296613872051239, 0.01649831235408783, -0.018366046249866486, -0.02970585599541664, 0.031069599092006683, 0.008004572242498398, -0.008849498815834522, 0.06522244215011597, -0.002525516552850604, -0.0025570159777998924, -0.023065026849508286, 0.007893397472798824, 0.03433072194457054, -0.015141982585191727, -0.016913363710045815, 0.0001308617793256417, -0.01643901877105236, -0.04150518774986267, -0.00292759807780385, 0.022323861718177795, -0.018484631553292274, 0.03596128150820732, 0.06836497783660889, 0.0625542476773262, 0.013548479415476322, -0.016943011432886124, -0.019285090267658234, -0.0070558818988502026, -0.015401389449834824, 0.1032293364405632, -0.05268194153904915, 0.02198292687535286, 0.043491508811712265, -0.004050461575388908, -0.006233189720660448, 0.015831265598535538, 0.08057935535907745, -0.0031925642397254705, 0.017506295815110207, -0.03833300620317459, -0.013103781268000603, 0.039667099714279175, -0.016735484823584557, 0.04319504275918007, 0.004391397349536419, 0.04328398406505585, -0.03261122107505798, 0.01133239921182394, -0.015386566519737244, -0.03376743569970131, -0.036465272307395935, 0.00864197313785553, 0.047404855489730835, 0.029320450499653816, -0.03925205022096634, -0.018232636153697968, -0.010613469406962395, 0.008441858924925327, 0.020900826901197433, -0.058344434946775436, -0.028001178056001663, -0.024132302030920982, 0.00030318243079818785, 0.025629453361034393, 0.018306752666831017, -0.03068419359624386, 0.030951011925935745, -0.019329559057950974, -0.009583251550793648, -0.017832407727837563, -0.0034204721450805664, 0.04100119695067406, 0.02656332030892372, -0.05383815988898277, -0.030358079820871353, 0.005784785840660334, 0.04455878585577011, 0.03264086693525314, -0.009598074480891228, 0.005610612221062183, 0.012103209272027016, -0.0010265122400596738, 0.0015212392900139093, 0.01968531869351864, 0.03317450359463692, -0.0455964133143425, 0.004417337942868471, 0.013504009693861008, 0.012888843193650246, 0.004902800545096397, -0.034805066883563995, 0.007611755281686783, -0.03584269434213638, -0.0551426075398922, -0.0001767213107086718, -0.016691014170646667, 0.020826710388064384, -0.027749182656407356, -0.005406791809946299, 0.04230564460158348, 0.025570161640644073, 0.10311074554920197, -0.05861125513911247, -0.011665922589600086, -0.008419623598456383, -0.007937867194414139, 0.001564782694913447, 0.008501151576638222, 0.02422124147415161, 0.01654278300702572, 0.03065454587340355, 0.009813012555241585, 0.019018270075321198, 0.0013294630916789174, -0.017817584797739983, -0.0265781432390213, 0.0016342668095603585, 0.020055899396538734, -0.018573570996522903, -0.030980657786130905, 0.03341167792677879, 0.020722948014736176, 0.0001595818903297186, 0.035694461315870285, -0.012088386341929436, 0.005021386779844761, -0.01722465269267559, 0.007974925450980663, -0.03931134194135666, 0.04289857670664787, -0.020055899396538734, 0.03237404674291611, 0.03130676969885826, -0.03447895124554634, 0.03628739342093468, -0.007341230288147926, -0.0033130033407360315, 0.014519404619932175, -0.004802743438631296, 0.01528280321508646, 0.013741182163357735, 0.005925606936216354, 0.017862053588032722, -0.023079849779605865, 0.0312771238386631, -0.028445877134799957, -0.012095797806978226, 0.01869215816259384, -0.006170190870761871, -0.025318164378404617, -0.001934438245370984, -0.011732627637684345, -0.006826121360063553, -0.03768078237771988, 0.04298751801252365, -0.027793653309345245, -0.05736609920859337, -0.025510868057608604, -0.06338435411453247, -0.016142552718520164, 0.028030825778841972, -0.010072419419884682, 0.012874020263552666, -0.001195127028040588, 0.01869215816259384, -0.003294474445283413, 0.0643923357129097, 0.009390548802912235, -0.0024810468312352896, 0.015890557318925858, -0.0014082117704674602, 0.004736038390547037, 0.04716768115758896, 0.007400523405522108, -0.03539799526333809, -0.024784527719020844, 0.05309699475765228, 0.013140839524567127, 0.00611089775338769, -0.0076784598641097546, -0.03364884853363037, 0.026059329509735107, 0.012614612467586994, -0.01712089031934738, -0.05413462594151497, 0.03062490001320839, -0.03987462818622589, 0.040437910705804825, 0.009531370364129543, 0.03536834940314293, 0.023687604814767838, 0.006781651172786951, 0.04793849214911461, 0.027719536796212196, 0.01876627467572689, 0.01974461041390896, -0.031010305508971214, -0.009598074480891228, -0.03593163564801216, 0.0012868461199104786, -0.006981765851378441, -0.03456789255142212, -0.021508581936359406, 0.006185014266520739, -0.013807887211441994, 0.026948725804686546, -0.007626578211784363, 0.030891718342900276, 0.0008643826004117727, -0.024028539657592773, 0.05321558192372322, 0.09593627601861954, -1.8847571482183412e-05, 0.027615774422883987, 0.025614630430936813, -0.050606682896614075, 0.027008019387722015, -0.014719518832862377, -0.009153376333415508, 0.0021641990169882774, -0.0218050479888916, 0.007737752981483936, -0.005384556949138641, -0.013733770698308945, -0.00272563099861145, 0.01457128580659628, 0.024013716727495193, -0.014889986254274845, 0.004810154903680086, 0.005051033105701208, 0.028016002848744392, -0.024917935952544212, -0.010339238680899143, -0.03290768340229988, 0.027704713866114616, -0.025481220334768295, 0.004576688166707754, 0.028757166117429733, -0.025629453361034393, -0.010027949698269367, -0.023717250674962997, -0.0227240901440382, -0.006885414477437735, -0.03160323575139046, 0.042691051959991455, -0.011480631306767464, -0.01790652424097061, -0.024843819439411163, 0.026859786361455917, -0.02278338372707367, -0.03350061550736427, -0.01405247114598751, 0.037295375019311905, -0.006029369775205851, 0.07939349859952927, -0.03347096964716911, -0.011576983146369457, 0.04340256750583649, -0.03791795298457146, -0.014593521133065224, 0.006952119059860706, 0.003703967435285449, -0.021419642493128777, -0.00413569575175643, 0.03439001366496086, 0.033263444900512695, 0.010687585920095444, -0.018543925136327744, -0.04645616561174393, -0.024087833240628242, 0.013022253289818764, 0.01803993433713913, 0.01133239921182394, 0.01639454998075962, -0.03341167792677879, 0.004943564534187317, 0.008968085050582886, 0.035635169595479965, -0.005595788825303316, -0.0212565865367651, -0.023346668109297752, -0.04856107011437416, -0.0577811524271965, 0.0033741495572030544, -0.0010589382145553827, -0.03702855855226517, -0.019107209518551826, 0.0018390134209766984, -0.03314485773444176, -0.0197149645537138, -0.005729198455810547, -0.006614889483898878, -0.024754879996180534, -0.020174486562609673, -0.048946477472782135, 0.015490328893065453, 0.06021216884255409, -0.006336953025311232, 0.04289857670664787, 0.0409715510904789, 0.016023967415094376, -0.021716106683015823, -0.036524564027786255, 0.034152839332818985, -0.03533870354294777, -0.02828282117843628, 0.02048577554523945, -0.023761719465255737, 0.022412801161408424, 0.004157930612564087, 0.004054167307913303, -0.007111469283699989, -0.012414498254656792, 0.000600342929828912, 0.026252031326293945, -0.000999645097181201, -0.011940153315663338, 0.019122032448649406, 0.05872984230518341, -0.048234958201646805, 0.016928186640143394, -0.01881074346601963, 0.0007712738588452339, -0.03201828896999359, 0.029290804639458656, 0.005573553964495659, 0.024073008447885513, -0.05715857446193695, -0.0036057631950825453, -0.08793170750141144, 0.011562159284949303, 0.011858625337481499, -0.006885414477437735, -0.005195560399442911, 0.01368930097669363, 0.0008731839479878545, -0.014393405988812447, 0.014304466545581818, 0.04325433447957039, 0.05185183882713318, 0.03839229792356491, 0.0015694149769842625, -0.030254317447543144, 0.02445841394364834, -0.011376868933439255, -0.04787920042872429, 0.00830103736370802, 0.03427142649888992, 0.01738770864903927, -0.026385441422462463, -0.002749718725681305, 0.0015888705383986235, 0.001314639812335372, -0.015401389449834824, -0.013496598228812218, -0.014237761497497559, -0.020841533318161964, -0.000312446994939819, 0.007826692424714565, 0.03299662470817566, 0.03367849439382553, 0.024488061666488647, 0.002675602212548256, 0.008686442859470844, 0.03385637328028679, -0.00624430738389492, 6.577830936294049e-05, 0.000772663566749543, -0.07091458141803741, 0.0625542476773262, 0.013748593628406525, -0.00492874113842845, -0.01792134717106819, -0.012607201002538204, -0.031039951369166374, 0.0596192367374897, -0.014252585358917713, -0.008886557072401047, 0.00467303954064846, -0.043580446392297745, -0.03925205022096634, -0.01885521411895752, 0.02029307186603546, -0.008367742411792278, 0.012807315215468407, -0.06036040186882019, -0.005736609920859337, -0.02574804052710533, -0.01099146343767643, 0.021478934213519096, 0.007152233272790909, 0.01142875012010336, -0.028460700064897537, -0.06124980002641678, -0.05357133969664574, 0.006974353920668364, -0.0314253568649292, 0.030076438561081886, -0.017002303153276443, -0.02201257273554802, -0.055350132286548615, -0.00935349054634571, 0.04378797486424446, -0.026252031326293945, 0.003868876490741968, 0.04799778759479523, -0.05858160927891731, 0.023880306631326675, 0.011962388642132282, -0.028016002848744392, -0.014889986254274845, 0.0122069725766778, 0.003972639329731464, 0.004065284971147776, 0.028460700064897537, -0.012103209272027016, -0.02359866350889206, -0.015460683032870293, 0.022531388327479362, -0.023020556196570396, 0.016216669231653214, -0.014600932598114014, -0.006859473418444395, -0.011458396911621094, -0.01456387434154749, 0.0024754879996180534, 0.006689005997031927, -0.059085600078105927, 0.006933589931577444, 0.05164431408047676, 0.05543907359242439, 0.030209848657250404, 0.006700123194605112, 0.005695845931768417, -0.016854071989655495, -0.04106048867106438, -0.01814369671046734, -0.045922525227069855, 0.004695274401456118, 0.04307645559310913, -0.02353937178850174, 0.01869215816259384, -0.053749218583106995, -0.028519993647933006, -0.09516546875238419, 0.025496045127511024, -0.04186094552278519, -0.03519047051668167, -0.006481479853391647, -0.012384851463139057, -0.015490328893065453, 0.03462718427181244, -0.012436733581125736, -0.022145982831716537, -0.0030721251387149096, 0.006588948890566826, 0.04150518774986267, 0.020619183778762817, 0.026059329509735107, 0.004691568668931723, 0.024636294692754745, 0.01457128580659628, 0.029542800039052963, -0.011265694163739681, -0.04316539689898491, -0.00011818092752946541, -0.019181326031684875, 0.015386566519737244, 0.0314253568649292, -0.04414373263716698, -0.044262319803237915, 0.05111067369580269, -0.03690997138619423, 0.005725492723286152, 0.004406220279633999, -0.00907184835523367, 0.006518538109958172, -0.003281503915786743, -0.014593521133065224, 0.04598182067275047, -0.008686442859470844, -0.03815512731671333, 0.031217830255627632, -0.03400460630655289, 0.00010654233483364806, 0.03059525229036808, -0.027912238612771034, -0.02660779096186161, 0.01093216985464096, -0.02352454699575901, 0.00043242290848866105, -0.01337059959769249, -0.008693854324519634, 0.00821209792047739, -0.010835818946361542, 0.0072893486358225346, 0.0005558730335906148, 0.02039683610200882, -0.017461825162172318, 0.004421043675392866, -0.011169342324137688, -0.016023967415094376, -0.030239494517445564, -0.03364884853363037, 0.012169914320111275, -0.01065793912857771, 0.013578126206994057, 0.04005250707268715, -0.03456789255142212, 0.014867751859128475, 0.022323861718177795, -0.006677888333797455, -0.02193845622241497, 0.0011840095976367593, 0.01955190859735012, -0.005647670477628708, 0.007819280959665775, 0.006944707594811916, -0.001925173681229353, -0.004172753542661667, -0.008108334615826607, 0.02969103306531906, -0.009094083681702614, 0.01728394627571106, 0.031692177057266235, -0.02814941108226776, -0.018262282013893127, 0.02678566984832287, 0.02976514957845211, -0.060063935816287994, -0.024577001109719276, 0.1050674170255661, 0.05620988458395004, -0.012362617067992687, -0.0312771238386631, 0.011510278098285198, 0.01799546368420124, -0.0026996901724487543, -0.005240030121058226, -0.0029498329386115074, -0.020678477361798286, -0.02122693881392479, 0.031662531197071075, -0.02435465157032013, 0.0202634260058403, 0.020159663632512093, -0.009939010255038738, 0.010613469406962395, -0.03370814397931099, -0.058433376252651215, 0.005121443886309862, -0.007671048399060965, 0.01534209679812193, -0.02582215704023838, 0.0012257001362740993, 0.007945278659462929, 0.022323861718177795, -0.024562178179621696, -0.023109495639801025, -0.015075277537107468, -0.005955253262072802, 0.032581571489572525, -0.0033445029985159636, -0.015519975684583187, 0.01709124445915222, 0.007167056668549776, -0.0005285426159389317, 0.013607772067189217, 0.009598074480891228, -0.031039951369166374, -0.038006894290447235, 0.0035372055135667324, 0.027289660647511482, -0.017002303153276443, -0.010783937759697437, 0.01799546368420124, 0.01580161787569523, 0.03833300620317459, 0.06510385125875473, -0.02973550371825695, -0.009316432289779186, 0.0034260309766978025, -0.033293090760707855, -0.013548479415476322, 0.03433072194457054, 0.02116764523088932, -0.008093511685729027, -0.05045844987034798, 0.013741182163357735, 0.013155662454664707, 0.025688746944069862, -0.04298751801252365, 0.021464111283421516, -0.0736420601606369, -0.0125553198158741, 0.023835835978388786, 0.007341230288147926, -0.027838122099637985, 0.016898540779948235, -0.00702994130551815, 0.004658216144889593, 0.0024273123126477003, 0.009642545133829117, -0.02982444316148758, -0.021760577335953712, 0.030283965170383453, -0.017432179301977158, -0.037977248430252075, 0.008968085050582886, 0.09326808899641037, 0.0360502190887928, -0.030773133039474487, 0.03424178063869476, -0.0017287652008235455, 0.017624881118535995, -0.023183612152934074, 0.002343931468203664, -0.00979077722877264, 0.014230350032448769, -0.0073671708814799786, 0.034894004464149475, -0.01944814622402191, -0.0343603678047657, 0.03453824669122696, 0.0005123296868987381, 0.0003731297911144793, 0.029616916552186012, 0.0022327566985040903, -0.015564445406198502, -0.02270926721394062, -0.02502170018851757, -0.002710807602852583, -0.021360348910093307, 0.0036632034461945295, 0.00331670930609107, -0.05274123698472977, -0.0028812752570956945, -0.0036965557374060154, -0.02208668924868107, 0.007767399773001671, 0.02890539914369583, 0.00784151628613472, -0.028757166117429733, 0.006288777105510235, -0.031810760498046875, -0.011317575350403786, 0.013318718411028385, -0.010694997385144234, 0.029468683525919914, -0.016809601336717606, -0.005862608086317778, 0.006903943605720997, -0.019433321431279182, -0.06267283111810684, -0.005099209025502205, 0.0029794794972985983, -0.04524065554141998, -0.006351775955408812, 0.0010367032373324037, 0.010502294637262821, -0.010843230411410332, -0.029646562412381172, -0.04168306663632393, -0.02969103306531906, -0.016720661893486977, -0.0003048037178814411, -0.019892843440175056, 0.01483069360256195, 0.017017127946019173, -0.018425339832901955, -0.03732502460479736, -0.0016157376812770963, -0.0032666807528585196, -0.019314736127853394, -0.015164216980338097, -0.006348070222884417, -0.023005733266472816, 0.04331362992525101, 0.0007504286477342248, 0.012288500554859638, 0.04162377491593361, -0.04417337849736214, 0.014726930297911167, 0.01799546368420124, -0.05709927901625633, -0.0028423641342669725, 0.02187916450202465, 0.00865679606795311, -0.008256567642092705, -0.03750290349125862, 0.029957851395010948, 0.0033741495572030544, -0.038866642862558365, 0.00764140160754323, 0.023228082805871964, -0.02598521299660206, -0.014875163324177265, 0.007997160777449608, 0.024013716727495193, 0.013296484015882015, -0.0015953556867316365, -0.013459539972245693, -0.014608344063162804, 0.0032092405017465353, -0.039548516273498535, -0.00471380352973938, 0.030165378004312515, -0.0027126604691147804, 0.008945850655436516, 0.005117738153785467, 0.03631703928112984, -0.002090082736685872, -0.02352454699575901, 0.03201828896999359, 0.032581571489572525, -0.02262032777070999, 0.0018788509769365191, 0.005366027820855379, -0.04023038595914841, -0.047493793070316315, 0.005188148468732834, 0.001522165723145008, -0.0018686599796637893, 0.022931616753339767, -0.011132284067571163, -0.02419159561395645, -0.05045844987034798, 0.0015638562617823482, 0.05158501863479614, -0.003794759977608919, -0.022546211257576942, 0.011302752420306206, -0.010428179055452347, 0.04212776571512222, -0.04058614373207092, -0.01798064075410366, 0.007960102520883083, -0.01370412390679121, -0.021627167239785194, 0.01578679494559765, -0.004461807664483786, -0.017521118745207787, 0.016068438068032265, -0.009916774928569794, 0.012629436329007149, -0.01484551653265953, 0.05357133969664574, 0.05407533049583435, 0.05116996914148331, 0.01959637738764286, 0.006626006681472063, -0.013896826654672623, 0.024591824039816856, 0.022561034187674522, -0.018306752666831017, -0.017491472885012627, -0.015890557318925858, -0.0157126784324646, -0.044321611523628235, -0.046604398638010025, -0.023880306631326675, 0.011651099659502506, -0.03510152921080589, 0.02262032777070999, 0.04304680973291397, 0.04687121510505676, -0.013919061049818993, -0.001607399550266564, 0.015208686701953411, -0.03308556601405144, -0.02103423699736595, 0.005851490423083305, 0.02745271660387516, -0.01058382261544466, -0.002254991792142391, -0.01562373898923397, -0.02980961836874485, 0.02279820665717125, -0.001337801106274128, -0.016187023371458054, 0.011243458837270737, 0.045092422515153885, -0.012777668423950672, 0.024651117622852325, 0.0026107504963874817, -0.0019622319377958775, -0.03996356576681137, 0.021360348910093307, 0.03044702112674713, -0.003109183395281434, 0.03596128150820732, -0.012599789537489414, -0.011903095059096813, -0.03554622828960419, 0.010606057941913605, 0.01299260649830103, 0.02361348830163479, 0.04930223524570465, 0.033263444900512695, -0.04230564460158348, 0.021775400266051292, -0.003116594860330224, 0.028416231274604797, -0.015023396350443363, 0.009894540533423424, 0.004906506277620792, -0.012429321184754372, 0.03842194750905037, -0.04639687016606331, 0.00624430738389492, 0.006444421596825123, 0.02276856079697609, 0.013229778967797756, -0.029957851395010948, 0.05784044414758682, -0.01889968477189541, -0.0026830139104276896, -0.010613469406962395, 0.017698997631669044, -0.03658385947346687, -0.01092475838959217, -0.01337059959769249, 0.013185309246182442, -0.00649259751662612, -0.006325835362076759, 0.004194988869130611, -0.03391566872596741, 0.020871181041002274, 0.008100923150777817, -0.007997160777449608, 0.03477541729807854, 0.0033519144635647535, 0.020752593874931335, -0.06124980002641678, -0.002690425608307123, -0.026192737743258476, -0.0034204721450805664, 0.009738896042108536, -0.004561864770948887, 0.015075277537107468, 0.030120907351374626, 0.0020178190898150206, -0.004561864770948887, -0.016231494024395943, -0.04876859486103058, -0.012347793206572533, 0.003600204596295953, -0.0016379726585000753, -0.005002857651561499, 0.057662565261125565, -0.005740315653383732, -0.024591824039816856, 0.0019566731061786413, 0.018529102206230164, 0.004469219595193863, -0.022294215857982635, -0.009753718972206116, 0.02897951565682888, -0.01895897649228573, 0.04135695472359657, -0.01065052766352892, -0.02104905992746353, -0.028534816578030586, 0.004758273251354694, 0.0003244908875785768, 0.04755308851599693, 0.0015203128568828106, 0.024784527719020844, 0.01451199222356081, -0.05576518550515175, -0.03524976223707199, 0.004487748723477125, 0.007044764701277018, 0.02503652311861515, -0.02497722953557968, 0.002581103937700391, 0.006677888333797455, 0.0289646927267313, 0.024754879996180534, 0.019299913197755814, 0.04939117282629013, 0.017743468284606934, -0.02045612782239914, -0.019359204918146133, -0.015060453675687313, -0.009990891441702843, 0.031217830255627632, -0.013911649584770203, -0.05125890672206879, 0.0037892013788223267, -0.01728394627571106, -0.00018274327157996595, 0.02494758367538452, 0.04942082241177559, -0.04497383534908295, -0.011384280398488045, -0.03551658242940903, 0.01958155445754528, 0.03430107235908508, -0.00172413291875273, 0.020886003971099854, -0.024636294692754745, -0.003655791748315096, -0.014371171593666077, 0.018618041649460793, 0.00607013376429677, 0.03133641555905342, 0.027245191857218742, -0.0037669665180146694, -0.04847213253378868, 0.0004314964753575623, 0.003320415038615465, -0.004698980133980513, 0.030773133039474487, -0.00863456167280674, -0.020085547119379044, 0.0025199579540640116, 0.007782222703099251, -0.038777705281972885, -0.038748059421777725, -0.04091225564479828, 0.016631722450256348, -0.04844248294830322, -0.027185898274183273, 0.0037280553951859474, 0.006036781240254641, 0.019122032448649406, 0.02107870578765869, -0.003729908261448145, 0.0006851135403849185, -0.021641992032527924, -0.029261158779263496, -0.03919275477528572, -0.02740824781358242, -0.007393111474812031, -0.017639705911278725, -0.06302859634160995, -0.008160216733813286, 0.004710097797214985, -0.02909810096025467, 0.00786375068128109, 0.0331152118742466, 0.008100923150777817, 0.03418248891830444, -0.027956709265708923, 0.023732073605060577, -0.0010691292118281126, -0.04402514547109604, 0.019062740728259087, 0.005251147318631411, 0.06492597609758377, 0.022160805761814117, -0.027141429483890533, -0.0020196721889078617, 0.006118309684097767, 0.02829764410853386, -0.00489538861438632, 0.020144838839769363, 0.01955190859735012, 0.015356919728219509, 0.03865911811590195, -0.001109893200919032, -0.02903880923986435, -0.012866608798503876, -0.03696926310658455, -0.000766178360208869, -0.011651099659502506, -0.01645384170114994, 0.01869215816259384, -0.01407470554113388, -0.04094190523028374, -0.0030183906201273203, 0.006718652322888374, 0.024117479100823402, 0.013933884911239147, -0.0643923357129097, 0.017002303153276443, 0.014637990854680538, -0.010450413450598717, -0.01012430153787136, -0.03545729070901871, -0.016883717849850655, 0.01630561053752899, 0.02445841394364834, -0.0008263979689218104, 0.007393111474812031, 0.04767167195677757, 0.00900514330714941, -0.0315735898911953, -0.003980051260441542, 0.005117738153785467, 0.0439065583050251, -0.010806172154843807, -0.004395103082060814, -0.02820870466530323, -0.02429535798728466, -0.01637972705066204, 0.03302627056837082, -0.02115282230079174, -0.031128890812397003, 0.031692177057266235, -0.003194417105987668, 0.011310163885354996, 0.03278909996151924, -0.04257246479392052, 0.03382672742009163, -0.004939858801662922, 0.024665940552949905, -0.019952137023210526, 0.04532959684729576, 0.019166503101587296, 0.02362831123173237, 0.020189309492707253, -0.027764005586504936, -0.02814941108226776, -0.026830140501260757, -0.010783937759697437, -0.03397496044635773, -0.015935027971863747, -0.005614317953586578, -0.005436438601464033, -0.048264604061841965, -0.011132284067571163, 0.01493445597589016, 0.03812548145651817, -0.004999151919037104, -0.006903943605720997, -0.049806226044893265, 0.018543925136327744, 0.020811887457966805, 0.027008019387722015, -0.00036039104452356696, -0.011176754720509052, -0.019848374649882317, -0.019863197579979897, -0.030980657786130905, -0.011628864333033562, 0.005191854201257229, -0.008382565341889858, 0.011110049672424793, 0.008931026794016361, -0.01064311619848013, 0.031158538535237312, 0.011843802407383919, 0.006318423897027969, 0.019181326031684875, -0.009249728173017502, 0.03302627056837082, 0.005429026670753956, 0.015112335793673992, 0.016172200441360474, -0.03468647971749306, -0.015171628445386887, -0.015008572489023209, -0.003868876490741968, 0.003950404468923807, 0.005121443886309862, 0.01575714908540249, 0.0035946457646787167, 0.013177897781133652, 0.004617452155798674, 0.003064713440835476, -0.003470500698313117, 0.005473496858030558, 0.03513117879629135, 0.02112317644059658, 0.02181987091898918, 0.019374029710888863, 0.00818986352533102, 0.02101941406726837, 0.028564464300870895, 0.02038201130926609, 0.0027701007202267647, -0.03824406489729881, -0.01575714908540249, -0.0017065303400158882, -0.022145982831716537, -0.033233799040317535, -0.024799350649118423, 0.012029092758893967, -0.031781114637851715, -0.03047666698694229, -0.005073267966508865, 0.008782794699072838, -0.01637972705066204, -0.010302180424332619, -0.007363465148955584, -0.0021160233300179243, -0.02345043234527111, 0.019922491163015366, 0.01884039118885994, -0.026504026725888252, -0.0031240065582096577, 0.011169342324137688, 0.04254281893372536, -0.019344381988048553, 0.031069599092006683, -0.017432179301977158, 0.002332814037799835, -0.006448127329349518, 0.04879824444651604, 0.024754879996180534, 0.014867751859128475, -0.01250343769788742, -0.006881708279252052, -0.02276856079697609, -0.01658725179731846, 0.03851088508963585, 0.0016351932426914573, -0.007900808937847614, -0.003983756992965937, 0.03287803754210472, -0.01946296915411949, -0.021478934213519096, 0.023065026849508286, -0.004910212010145187, 0.004821272566914558, -0.028371760621666908, -0.0468415692448616, 0.03610951453447342, -0.009027378633618355, -0.007411640603095293, -0.007908220402896404, 0.050517745316028595, -0.02346525527536869, 0.0072893486358225346, 0.009212669916450977, 0.0010765407932922244, 0.023361491039395332, 0.007626578211784363, -0.013096368871629238, 0.013592949137091637, 0.020945297554135323, 0.025614630430936813, 0.00453221844509244, 0.02894986979663372, -0.00856785662472248, -0.04085296392440796, 0.003466794965788722, -0.04165342077612877, 0.003457530401647091, -0.015964673832058907, 0.009546193294227123, 0.03978568688035011, -0.015964673832058907, 0.015097511932253838, 0.029439037665724754, 0.010524529963731766, -0.006166485138237476, 0.007307877764105797, 0.007708106655627489, 0.005769962444901466, 0.007626578211784363, -0.005662493407726288, 0.020782241597771645, -0.007348641753196716, 0.027126604691147804, 0.010724644176661968, 0.007708106655627489, -0.030091261491179466, 0.02831246703863144, 0.006299894768744707, 0.0034742066636681557, 0.003902228781953454, 0.00568102253600955, -0.0022679620888084173, 0.03056560643017292, 0.011643687263131142, -0.026474380865693092, 0.02591109648346901, 0.022264568135142326, 0.05440144240856171, -0.01012430153787136, -0.023895129561424255, -0.013904238119721413, 0.005076974164694548, 0.008805029094219208, -0.005228912457823753, -0.010457824915647507, -0.044262319803237915, -0.002477340865880251, 0.013563302345573902, 0.008389977738261223, 0.008501151576638222, 0.003639115719124675, -0.002755277557298541, 0.04168306663632393, -0.02436947450041771, -0.015104924328625202, 0.030165378004312515, 0.02985408902168274, 0.016957834362983704, 0.019092386588454247, -0.01892933063209057, -0.0406750850379467, 0.039518870413303375, 0.03771042823791504, -0.04079367220401764, 0.03160323575139046, -0.004328398033976555, -0.008908792398869991, -0.02183469384908676, -0.003791054245084524, -0.005781079642474651, -0.03711749613285065, -0.006563007831573486, -0.01946296915411949, -0.0064518335275352, -0.01731359213590622, -0.005818137899041176, -0.030862072482705116, 0.042216707020998, 0.006325835362076759, 0.002371725160628557, -0.008130569942295551, -0.02967621013522148, -0.0015786795411258936, 0.0019566731061786413, 0.0019714965019375086, 0.0014276673318818212, -0.020915649831295013, -0.01572750136256218, -0.013830121606588364, 0.041149429976940155, 0.02207186631858349, -0.026252031326293945, 0.031128890812397003, 0.015890557318925858, 0.02193845622241497, 0.003894817316904664, 0.001785279018804431, 0.0029072160832583904, -0.008968085050582886, -0.0018353075720369816, -0.006789063103497028, 0.007170762401074171, 0.004954681731760502, 0.031781114637851715, -0.011295340955257416, 0.00034325162414461374, 0.005225206725299358, 0.020960120484232903, 0.0008824484539218247, 0.03347096964716911, 0.00900514330714941, -0.01372635830193758, 0.007307877764105797, 0.01884039118885994, -0.05953029915690422, -0.011488042771816254, -0.005332675762474537, 0.014163645915687084, 0.015594092197716236, 0.015356919728219509, -0.010524529963731766, -0.05585412681102753, 0.01632043346762657, 0.0035297938156872988, 0.05558730661869049, -0.021375171840190887, -0.010094654746353626, -0.02656332030892372, -0.004743450321257114, 0.045122068375349045, 0.009205257520079613, -0.00985007081180811, -0.03341167792677879, 0.013822710141539574, 0.017417356371879578, 0.033352382481098175, -0.005832961294800043, 0.01660207472741604, 0.015949850901961327, -0.0027423070278018713, -0.020915649831295013, -0.007333818357437849, -0.03498294577002525, 0.013303895480930805, 0.003548322943970561, -0.000733752443920821, -0.012659082189202309, -0.01723947562277317, -0.010813583619892597, -0.006618595216423273, -0.011569571681320667, -0.006214660592377186, 0.02419159561395645, 0.015149394050240517, 0.018632864579558372, -0.018573570996522903, -0.023168789222836494, 0.0022142278030514717, 0.00432469230145216, 0.0014063587877899408, -0.01577197201550007, -0.009635132737457752, 0.006748299114406109, -0.016098083928227425, -0.03148464858531952, -0.002075259340927005, -0.014230350032448769, -0.018217813223600388, -0.007945278659462929, -0.007967513985931873, -0.009160787798464298, -0.01718018390238285, -0.008004572242498398, 0.03148464858531952, 0.010724644176661968, 0.0031536531168967485, 0.00864938460290432, 0.031217830255627632, 0.022457271814346313, 0.00908667128533125, -8.917130617192015e-05, 0.02121211588382721, -0.003700261702761054, 0.008945850655436516, 0.03433072194457054, -0.017447002232074738, -0.008782794699072838, -0.02343560755252838, -0.021419642493128777, -0.023302199319005013, -0.019329559057950974, -0.01491963304579258, -0.03361920267343521, 0.008923615328967571, 0.02659296803176403, 0.010443001985549927, -0.018543925136327744, 0.02574804052710533, 0.022531388327479362, 0.00827880296856165, 0.023984069004654884, -0.010843230411410332, 0.006318423897027969, 0.0003330605977680534, -0.005043621640652418, 0.004250575788319111, -0.030713839456439018, -0.03868876397609711, 0.037206437438726425, 0.002240168396383524, -0.005251147318631411, -0.0197149645537138, -0.005073267966508865, 0.007619166746735573, -0.005073267966508865, 0.010257710702717304, -0.045833587646484375, 0.005769962444901466, 0.038836997002363205, 0.06124980002641678, 0.019270265474915504, 0.003185152541846037, 0.012258853763341904, 0.009649956598877907, -0.00303136114962399, -0.014378583058714867, 0.018558748066425323, -0.014519404619932175, -0.011028521694242954, 0.026059329509735107, 0.020634008571505547, -0.004250575788319111, 0.011206400580704212, -0.04470701888203621, -0.018618041649460793, 0.008478917181491852, 0.020722948014736176, -0.02184951677918434, -0.015053042210638523, 0.01529762614518404, -0.010168771259486675, -0.002658926183357835, -0.010109477676451206, 0.011525101028382778, 0.028831282630562782, 0.006970648188143969, 0.017002303153276443, 0.030862072482705116, 0.013748593628406525, 0.002041907049715519, 0.011028521694242954, -0.01955190859735012, -0.0011108196340501308, -0.013681888580322266, 0.022397978231310844, 0.028594110161066055, -0.027082135900855064, 0.02577768638730049, -0.024680763483047485, -0.01580161787569523, -0.018973801285028458, 0.03690997138619423, 0.01369671244174242, 0.005158502142876387, -0.023865483701229095, -0.021716106683015823, 0.008738324046134949, -0.03871840983629227, 0.011888272128999233, 0.03610951453447342, 0.028860928490757942, 0.008456681855022907, -0.0005957106477580965, -0.008352919481694698, 0.006918766535818577, -0.008108334615826607, -0.021419642493128777, -0.0055068489164114, 0.006248013116419315, -0.029290804639458656, 0.02109353058040142, 0.006444421596825123, 0.011873448267579079, -0.0102058295160532, 0.05973782390356064, -0.008738324046134949, 0.009909363463521004, -0.016127729788422585, 0.014889986254274845, -0.018262282013893127, -0.010346650145947933, 0.04500348120927811, 0.010383708402514458, -0.0029257452115416527, 0.0033148564398288727, 0.03204793483018875, 0.016231494024395943, -0.023153966292738914, 0.013244601897895336, 0.010472648777067661, 0.0024903113953769207, -0.026118621230125427, 0.010969228111207485, -0.013296484015882015, 0.0082046864554286, -0.01257014274597168, 0.001746367895975709, -0.02977997250854969, -0.023168789222836494, -0.01057641115039587, -0.020159663632512093, -0.0165576059371233, 0.017521118745207787, -0.012525673024356365, 0.031781114637851715, -0.012525673024356365, 0.01179192028939724, 0.013466951437294483, 0.0012062445748597383, -0.0012636847095564008, 0.017076419666409492, -0.00246807630173862, -0.019981782883405685, 0.056061651557683945, 0.05425320938229561, 0.050517745316028595, -0.005799608770757914, 0.027897415682673454, -0.01808440312743187, -0.04912435635924339, -0.028445877134799957, 0.008427035994827747, 0.010694997385144234, 0.011888272128999233, 0.008041630499064922, 0.024665940552949905, -0.003980051260441542, -0.01328166015446186, 0.01814369671046734, -0.029394567012786865, 0.01796581782400608, -0.031010305508971214, -0.02600003592669964, 0.015460683032870293, 0.013985766097903252, -0.0031147419940680265, -0.00470639206469059, -0.0028053061105310917, 0.0009176537860184908, 0.049094706773757935, -0.028564464300870895, -0.0637994036078453, -0.04642651975154877, 0.0028386584017425776, -0.01660207472741604, 0.019255442544817924, -0.01568303257226944, 0.00571437506005168, -0.011584394611418247, 0.005436438601464033, -0.02359866350889206, 0.012325558811426163, 0.004632275551557541, 0.021389994770288467, 0.034923650324344635, -0.01491963304579258, 0.003652086015790701, 0.015935027971863747, -0.03602057322859764, -0.08692372590303421, -0.003729908261448145, 0.010835818946361542, 0.018603218719363213, 0.016676191240549088], "id": 72}, {"title": "173 Hours in Captivity", "text": "173 Hours In Captivity: The Hijacking of IC 814 is a 2000 book (ISBN 81-7223-394-9) written by Neelesh Misra, a New Delhi-based correspondent of the Associated Press. The book is about the hijacking of Indian Airlines Flight 814 on its journey from Kathmandu to New Delhi on Christmas Eve, December 24, 1999.", "vector": [-0.006944699212908745, -0.001118911779485643, -0.013426940888166428, -0.042452022433280945, -0.04637115076184273, 0.02707335352897644, -0.03354775533080101, 0.03241904824972153, -0.01223552506417036, 0.020645979791879654, 0.011091139167547226, 0.004393345210701227, 0.006885912269353867, -0.030600570142269135, -0.06126384809613228, -0.04677874222397804, -0.007748120930045843, 0.0044325366616249084, -0.022480132058262825, -0.008622086606919765, 0.0149632403627038, 0.0014735930599272251, -0.013278014026582241, -0.006976052187383175, 0.04677874222397804, 0.012486349791288376, 0.0073522888123989105, 0.022401750087738037, 0.05170116946101189, -0.02486296370625496, -0.06051137298345566, -0.02390669658780098, -0.005541650578379631, -0.020128654316067696, -0.021414129063487053, -0.004115086980164051, -0.03489593788981438, 0.039410777390003204, -0.011898480355739594, 0.00919428002089262, 0.010001621209084988, 0.004220903385430574, -0.03683982789516449, 0.024831609800457954, -0.02523919939994812, -0.046057622879743576, -0.01780852861702442, -0.029064271599054337, -0.029189683496952057, 0.014626194722950459, 0.007524730637669563, 0.0007069131825119257, -0.03683982789516449, -0.009860532358288765, 0.012745012529194355, 0.04329855367541313, 0.061984967440366745, 0.06590409576892853, 0.0161154642701149, -0.04922427982091904, -0.010448401793837547, -0.07838261127471924, 0.02194713056087494, 0.010613005608320236, -0.012987998314201832, -0.013897236436605453, 0.023828312754631042, -0.016977673396468163, -0.01502594631165266, 0.031603869050741196, -0.009978106245398521, 0.009695928543806076, 0.024768903851509094, -0.003525257809087634, -0.014594841748476028, -0.03652629628777504, 0.02599167264997959, 0.02346775308251381, 0.01763608679175377, 0.027810148894786835, -0.02199416048824787, -0.0004955250769853592, 0.011294933967292309, -0.0013491606805473566, -0.0149632403627038, -0.043079081922769547, -0.020254066213965416, -0.09694360941648483, -0.027292825281620026, -0.02059894986450672, 0.038971833884716034, 0.02290339767932892, -0.010080003179609776, -0.022480132058262825, -0.03019298054277897, -0.007324854843318462, 0.04439590871334076, -0.02865668199956417, 0.0011355680180713534, -0.06063678488135338, 0.00228289351798594, -0.020112978294491768, -0.005557327065616846, -0.020818421617150307, 0.046841446310281754, -0.002435739617794752, 0.00970376655459404, 0.020693009719252586, -0.002284853020682931, 0.015394343994557858, -0.050196222960948944, 0.030647600069642067, 0.012274716980755329, 0.01369344163686037, -0.02592896670103073, -0.002420063130557537, 0.021226011216640472, -0.0066076540388166904, 0.006384263746440411, -0.042765550315380096, -0.004593221005052328, 0.00020648918871302158, 0.011914156377315521, 0.05029028281569481, 0.02428293228149414, 0.043267201632261276, -0.01914103329181671, 0.00016570572915952653, -0.02776312083005905, -0.004009270574897528, 0.023749930784106255, 0.004514838103204966, 0.00038358490564860404, 0.044615380465984344, -0.0036134382244199514, 0.013677765615284443, 0.004056300036609173, -0.05226552486419678, 0.019360505044460297, 0.03621276468038559, 0.03524082154035568, 0.010213254019618034, -0.02675982192158699, 0.027089029550552368, -0.003491945331916213, 0.013881560415029526, -0.014242120087146759, -0.045054323971271515, -0.03671441227197647, 0.03799989074468613, -0.004561868030577898, 0.021476835012435913, -0.024894315749406815, -0.003450794378295541, -0.006772257387638092, 0.042138490825891495, 0.0011404670076444745, 0.00041493793833069503, -0.02296610362827778, -0.026164114475250244, 0.007438509725034237, -0.05872425064444542, 0.00550245912745595, -0.0137953395023942, 0.01084815338253975, -0.01578625664114952, -0.025286229327321053, -0.0001309234503423795, 0.01863938383758068, 0.049098867923021317, -0.01026812195777893, 0.03276393190026283, 0.012995836324989796, -0.004134682472795248, -0.01661711372435093, -0.013497484847903252, 0.047468509525060654, 0.06123249605298042, -0.05170116946101189, 0.03238769248127937, -0.014782960526645184, 0.019548622891306877, -0.02205686643719673, -0.0406021922826767, -0.030600570142269135, 0.010362180881202221, 0.03354775533080101, 0.010534622706472874, 0.006756580900400877, -0.013740471564233303, -0.048346392810344696, 0.004365911241620779, -0.01928212121129036, 0.019313475117087364, -0.04097842797636986, -0.017228497192263603, -0.004138601943850517, 0.025035405531525612, 0.01667981967329979, -0.037122003734111786, 0.0010326908668503165, -0.018059352412819862, -0.02238607406616211, -0.003940685652196407, -0.0029628626070916653, 0.024345638230443, -0.014281311072409153, 0.012188496068120003, 0.03342234343290329, 0.03988107293844223, -0.009758634492754936, -0.012760688550770283, 0.0251137875020504, 0.024768903851509094, 0.03367316722869873, -0.0039014944341033697, -0.030867071822285652, -0.06026054918766022, 0.053174760192632675, -0.0026081812102347612, -0.00012498351861722767, 0.013928589411079884, 0.04966321960091591, -0.024706197902560234, -0.048471804708242416, 0.03615006059408188, -0.019579974934458733, 0.06628033518791199, -0.019689710810780525, -0.012917454354465008, 0.0023730334360152483, 0.034268878400325775, -0.0018664859235286713, 0.033516403287649155, -0.02890750579535961, 0.0161154642701149, -0.0018811826594173908, 0.044489968568086624, -0.008308556862175465, -0.05079193040728569, -0.024329962208867073, 0.058567486703395844, -0.008912102319300175, 0.0058904532343149185, -0.03067895397543907, 0.007634466048330069, -0.0017038419609889388, 0.05452294275164604, -0.026822529733181, 0.007418913766741753, 0.008426130749285221, -0.004311043303459883, 0.07248823344707489, 0.004146439954638481, 0.052547700703144073, 0.033829934895038605, -0.017197145149111748, 0.024549433961510658, -0.015653006732463837, 0.06301961839199066, 0.042953670024871826, -0.010134871117770672, 0.00916292704641819, -0.002514122286811471, -0.024894315749406815, 0.012925292365252972, 0.008347747847437859, -0.06916481256484985, -0.0005545569583773613, 0.005051759071648121, -0.010918697342276573, -0.007273905910551548, 0.03859559819102287, -0.029691332951188087, -0.011961186304688454, 0.015143520198762417, 0.006396020762622356, 0.0216963067650795, 0.00465984595939517, 0.004440374672412872, 0.030098922550678253, -0.03342234343290329, 0.016773877665400505, -0.010393533855676651, -0.008418291807174683, 0.015841124579310417, 0.0032038891222327948, 0.01782420463860035, -0.004577544517815113, -0.05072922632098198, -0.018059352412819862, 0.017024703323841095, -0.04358072951436043, 0.025270553305745125, -0.0173695869743824, 0.02226066030561924, 0.05402129516005516, -0.01997188851237297, 0.004836206790059805, -0.042201194912195206, -0.012807718478143215, 0.06929022818803787, -0.059257254004478455, -0.0028786014299839735, -0.0068702357821166515, -0.001865506055764854, -0.015880316495895386, 0.009884047321975231, -0.03226228058338165, -0.010957888327538967, -0.03019298054277897, -0.005416238214820623, 0.013035028241574764, -0.007175927981734276, 0.06985457986593246, -0.03868965432047844, -0.011639817617833614, -0.04091572016477585, -0.01655440777540207, -0.02053624391555786, 0.030459482222795486, 0.01920373924076557, 0.016044920310378075, 0.008833720348775387, 0.014438076876103878, -0.018733443692326546, 0.044301848858594894, -0.0013452415587380528, -0.015903830528259277, -0.03771771118044853, -0.0334850512444973, 0.001404028502292931, -0.03862695023417473, -0.024329962208867073, -0.02351478300988674, 0.009978106245398521, -0.03056921809911728, -0.0017204983159899712, 0.005980593152344227, -0.0021241686772555113, -0.0173695869743824, 0.007446347735822201, -0.006846720818430185, 0.0173695869743824, 0.011710361577570438, 0.023953724652528763, 0.05631006509065628, -0.004169954918324947, -0.0014422399690374732, -0.045054323971271515, 0.0007005445659160614, 0.002806097501888871, 0.028625328093767166, -0.002874682191759348, -0.009045353159308434, -0.03270122408866882, 0.008919941261410713, -0.008480998687446117, 0.018655061721801758, -0.027496619150042534, 0.06345856189727783, -0.02517649345099926, 0.02442402020096779, -0.00030250789131969213, 0.017259851098060608, -0.02840585820376873, 0.001964464085176587, -0.009852694347500801, -0.011812259443104267, -0.01901562139391899, 0.029503213241696358, 0.031431425362825394, -0.036933884024620056, 0.014532135799527168, 0.0029942155815660954, -0.017416615039110184, -0.04019460082054138, -0.047280389815568924, 0.0034409966319799423, 0.01211011316627264, 0.008951294235885143, -0.000986641040071845, -0.01635061204433441, -0.033265579491853714, 0.0011404670076444745, -0.004459970630705357, -0.0502275750041008, -0.02351478300988674, 0.016044920310378075, -0.00018456655379850417, -0.018341530114412308, -0.021602246910333633, -0.03511540964245796, -0.058881014585494995, -0.04006918892264366, -0.026477646082639694, -0.006850639823824167, 0.013097734190523624, 0.06311367452144623, 0.0016156615456566215, 0.016585759818553925, 0.05104275420308113, -0.010707064531743526, 0.06690739840269089, -0.012627438642084599, 0.00890426430851221, 0.02409481443464756, -0.0390658937394619, -0.0508546382188797, 0.0007554123876616359, 0.014351855963468552, 0.06985457986593246, -0.012125789187848568, 0.03190172091126442, -0.033140167593955994, -0.040351368486881256, -0.026023026555776596, 0.053801823407411575, -0.0381566546857357, -0.006164791993796825, -0.02617979235947132, 0.03759229928255081, -0.03140007331967354, -0.002782582538202405, -0.037247415632009506, -0.007434590253978968, 0.0056788199581205845, 0.005298664327710867, 0.038971833884716034, 0.0013374033151194453, -0.04351802542805672, -0.0215552169829607, -0.01674252562224865, 0.038846421986818314, -0.03235634043812752, -0.026822529733181, -0.021210333332419395, 0.0209281574934721, 0.009782149456441402, 0.029942156746983528, -0.008598572574555874, -0.019768094643950462, -0.054366178810596466, 0.010103518143296242, 0.029283743351697922, -0.004412940703332424, -0.006940780207514763, 0.008159630000591278, 0.06471268087625504, -0.061420612037181854, -0.07831989973783493, -0.008951294235885143, 0.033328283578157425, -0.030475158244371414, 0.04812692105770111, 0.01265095267444849, -0.028060974553227425, -0.048691276460886, -0.014038325287401676, 0.07606248557567596, -0.005377046763896942, 0.031729280948638916, -0.0024729713331907988, -0.014955401420593262, 0.03821935877203941, -0.03169792890548706, 0.005259472876787186, 0.01755770482122898, -0.0032391613349318504, -0.003433158388361335, -0.0011179319117218256, 0.044176436960697174, -0.02174333669245243, -0.013238823041319847, 0.013301528990268707, -0.00970376655459404, -0.03840747848153114, 0.01243148185312748, -0.053049348294734955, -0.04364343732595444, 0.06734633445739746, 0.05743877589702606, 0.02586626075208187, 0.0005927684833295643, 0.005988431163132191, 0.011208713054656982, -0.03944212943315506, -0.017589056864380836, -0.05420941114425659, 0.0286723580211401, 3.6986792110837996e-05, 0.04075895622372627, 0.03379858285188675, 0.006678198464214802, -0.0313216894865036, 0.04066489636898041, -0.04812692105770111, -0.05442888289690018, 0.055463533848524094, -0.007944077253341675, 3.058758738916367e-05, 0.014140223152935505, 0.04304772987961769, -0.006521433126181364, 0.05201470106840134, -0.0036095192190259695, 0.05656089261174202, 0.03229363635182381, 0.051450345665216446, 0.0036722251679748297, -0.012666629627346992, 0.05891237035393715, -0.0024455373641103506, 0.02517649345099926, -0.03546029329299927, 0.02619546838104725, -0.007708929479122162, 0.009735120460391045, 0.03210551664233208, -0.003936766646802425, 0.01693064346909523, 0.02955024316906929, -0.012729335576295853, 0.0038113542832434177, 0.03887777402997017, -0.02251148596405983, 0.04210713878273964, -0.017667440697550774, -0.04304772987961769, 0.020724361762404442, 0.036494944244623184, -0.013975619338452816, -0.014155899174511433, -0.017150115221738815, 0.011835774406790733, 0.015010269358754158, 0.0039642006158828735, 0.000687317515257746, -0.011498728767037392, 0.022229308262467384, -0.007501215673983097, -0.011146007105708122, -0.021727658808231354, -0.003866222221404314, -0.04881668835878372, 0.004942023660987616, -0.03583652898669243, 0.017651762813329697, -0.05442888289690018, -0.022527161985635757, -0.018153412267565727, 0.010244606994092464, 0.009891885332763195, 0.01870208978652954, -0.017197145149111748, 0.018858855590224266, 0.017871234565973282, 0.007164170499891043, 0.006027622614055872, 0.01622520014643669, 0.0001946093252627179, 0.02226066030561924, 0.00045804836554452777, 0.0275906790047884, 0.017353909090161324, 0.03342234343290329, -0.02447105012834072, 0.007132817525416613, 0.00374081009067595, -0.02296610362827778, 0.021837394684553146, 0.012345260940492153, -0.027496619150042534, -0.024345638230443, -0.0032685548067092896, -0.0009939894080162048, -0.0066076540388166904, -0.03771771118044853, 0.03771771118044853, -0.008559380657970905, -0.02694794163107872, -0.03273257613182068, 0.018231794238090515, -0.02447105012834072, 0.03301475569605827, -0.003572287503629923, -0.019768094643950462, -0.052923936396837234, -0.03602464869618416, 0.03759229928255081, -0.009750796481966972, 0.02892318367958069, -0.010871668346226215, 0.00643913121894002, -0.019485916942358017, -0.008935617282986641, 0.005941401701420546, 0.011044109240174294, 0.0004367381043266505, -0.03017730452120304, -0.025458671152591705, 0.04053948447108269, -0.019564298912882805, 0.028766417875885963, -0.009076706133782864, -0.004122925456613302, 0.013042866252362728, -0.014391046948730946, 0.022370396181941032, 0.042953670024871826, -0.02890750579535961, 0.0009533285046927631, -0.013129087164998055, -0.007399318274110556, -0.02555273100733757, -0.01347397081553936, 0.004738228861242533, 0.010895182378590107, -0.0012168900575488806, -0.07537271827459335, 0.03430023044347763, 0.017071731388568878, 0.04630844667553902, 0.045555971562862396, 0.006533190608024597, -0.010032974183559418, -0.0011561434948816895, 0.04229525476694107, -0.029832420870661736, 0.012862586416304111, 0.019517268985509872, 0.0071406555362045765, -0.006066814064979553, 0.017542028799653053, 0.04571273922920227, -0.004667684435844421, 0.005294745322316885, -0.04583815112709999, -0.010244606994092464, 0.019313475117087364, -0.024580786004662514, 0.022354720160365105, -0.02447105012834072, 0.032826635986566544, -0.005757202859967947, -0.039285365492105484, 0.07054434716701508, -0.0378117710351944, 0.022119572386145592, -0.011639817617833614, 0.0027159573510289192, 0.025474347174167633, 0.04301637411117554, 0.024267256259918213, 0.01505729928612709, 0.00025253897183574736, -0.006827125325798988, 0.00805773213505745, -0.00024666026001796126, 0.019815122708678246, -0.0038093947805464268, -0.032826635986566544, -0.021774688735604286, -0.004773500841110945, -0.00514973746612668, -0.023248281329870224, -0.015276770107448101, 0.001614681794308126, 0.0026199386920779943, -0.017212821170687675, -0.01017406303435564, 0.025333259254693985, -0.000777947367168963, -0.008065570145845413, -0.04862857237458229, -0.021853070706129074, -0.02630520425736904, 0.022417426109313965, -0.01782420463860035, -0.03809394687414169, -0.008410453796386719, -0.0353662334382534, -0.009633222594857216, 0.02505108155310154, -0.01116168312728405, -0.020818421617150307, 0.05743877589702606, 0.01080896146595478, 0.018529647961258888, -0.03088274784386158, 0.024486728012561798, 0.008300717920064926, -0.022856369614601135, 0.005882614757865667, -0.015402182936668396, -0.02632088027894497, 0.030396776273846626, 0.027183089405298233, -0.007708929479122162, 0.04938104376196861, 0.008198820985853672, 0.036181412637233734, -0.0181377362459898, 0.01857667788863182, -0.01356802973896265, 0.002130047418177128, -0.006290204357355833, 0.02467484585940838, 0.007806907873600721, -0.015613815747201443, 0.004742147866636515, 0.02066165581345558, 0.0032117273658514023, -0.0011718199821189046, 0.04916157200932503, 0.038971833884716034, 0.030287040397524834, -0.00670563243329525, -0.00257486873306334, -0.03988107293844223, 0.022433102130889893, 0.0020888964645564556, 0.016726849600672722, -0.062423910945653915, 0.018231794238090515, 0.008896426297724247, -0.04110383987426758, 0.0019291919888928533, -0.02675982192158699, 0.011702523566782475, -0.016209524124860764, -0.0011355680180713534, 0.004593221005052328, 0.004111167974770069, 0.07907237857580185, -0.041824959218502045, 0.007771635893732309, -0.008473159745335579, -0.0021222091745585203, 0.028703711926937103, 0.03288934379816055, -0.023044487461447716, -0.023938048630952835, -0.003572287503629923, 0.018717767670750618, 0.003954402636736631, -0.0019389898516237736, 0.018592355772852898, 0.00273555307649076, 0.004052381031215191, -0.0046637654304504395, -0.015308124013245106, 0.03658900037407875, -0.05486782640218735, 0.002888399176299572, 0.037122003734111786, 0.023310987278819084, -0.02865668199956417, -0.00705443462356925, -0.006474403664469719, 0.012000377289950848, 0.04235796257853508, -0.013136925175786018, -0.0011198915308341384, 0.03279528394341469, -0.015449211932718754, 0.015919508412480354, -0.036432236433029175, -0.002782582538202405, -0.022182278335094452, -0.039222657680511475, 0.056404124945402145, -0.0011825975961983204, 0.013278014026582241, 0.008253688924014568, -0.06929022818803787, 0.03514676168560982, -0.005032163579016924, 0.0024122248869389296, 0.018169088289141655, -0.03423752263188362, 0.0030647600069642067, 0.015966538339853287, 0.014218605123460293, -0.039410777390003204, 0.026226820424199104, -0.03790583088994026, 0.016476023942232132, -0.03207416459918022, -0.015135682187974453, 0.010785447433590889, 0.03727876767516136, 0.005137979984283447, 0.015645168721675873, 0.029769714921712875, -0.0173695869743824, -0.0023181657306849957, -0.0350213497877121, -0.018984267488121986, 0.007991107180714607, 0.023044487461447716, -0.007818665355443954, 0.02327963523566723, -0.04053948447108269, 0.002004635287448764, -0.058065835386514664, 0.023640194907784462, -0.013881560415029526, -0.0034743091091513634, -0.007230795919895172, -0.044489968568086624, -0.002576828235760331, 0.008888588286936283, 0.038344770669937134, -0.0038897369522601366, 0.033829934895038605, -0.02194713056087494, -0.01857667788863182, -0.02815503254532814, -0.006027622614055872, 0.01490053441375494, 0.021633600816130638, 0.06722092628479004, -0.005322179291397333, -0.02624249830842018, 0.02561543695628643, 0.03749823942780495, -0.007285663392394781, 0.015268932096660137, -0.02726147137582302, -0.019940536469221115, -0.02351478300988674, -0.00465984595939517, -0.019579974934458733, -0.0011326286476105452, -0.00047739906585775316, -0.025521377101540565, 0.042765550315380096, 0.023028811439871788, -0.01699334941804409, 0.003925009164959192, 0.013654250651597977, -0.009899723343551159, 0.0016411358956247568, -0.03263852000236511, 0.026524674147367477, -0.001224728301167488, -0.03213686868548393, -0.020583273842930794, -0.009789987467229366, -0.022809339687228203, 0.029079947620630264, -0.02536461316049099, 0.008159630000591278, -0.009656737558543682, -0.013230984099209309, -0.01518271118402481, -0.006074652075767517, 0.0023710739333182573, 0.0007407156517729163, -0.004742147866636515, 0.02338937111198902, -0.01353667676448822, 0.006654683500528336, 0.03702794387936592, -0.022041190415620804, -0.04690415412187576, -0.050697870552539825, 0.01928212121129036, 0.004507000092417002, 0.003697699634358287, -0.013654250651597977, 0.05467970669269562, 0.010997080244123936, -0.019297799095511436, -0.039348069578409195, 0.059884313493967056, -0.008394777774810791, -0.011710361577570438, -0.015880316495895386, -0.0011247904039919376, -0.006458727177232504, 0.024392668157815933, 0.0216963067650795, 2.584176581876818e-05, -0.0037368908524513245, 0.03796853497624397, -0.04367478936910629, 0.007469862699508667, -0.027919884771108627, 0.029409155249595642, -0.0028531269636005163, -0.009962429292500019, -0.023671548813581467, 0.008136115036904812, -0.024439698085188866, -0.008998323231935501, -0.008763175457715988, -0.03198010474443436, 0.0015118045266717672, -0.0017430332954972982, -0.002161400392651558, 0.000911687733605504, -0.024753227829933167, 0.0027453508228063583, -0.031556837260723114, -0.00967241358011961, -0.0493183359503746, -0.028013944625854492, 0.003370452206581831, -0.06245526298880577, 0.02561543695628643, 0.0006569442339241505, 0.025348935276269913, -0.01984647661447525, -0.021006539463996887, -0.030459482222795486, 0.01226687803864479, 0.008755337446928024, -0.009985944256186485, -0.019940536469221115, -0.009296177886426449, 0.025521377101540565, -0.0010777608258649707, 0.02619546838104725, -0.019642682746052742, -0.007626628037542105, -0.018733443692326546, 0.024643491953611374, -0.004224822856485844, -0.024251578375697136, 0.002827652730047703, -0.024392668157815933, -0.036181412637233734, 0.025568407028913498, -0.004393345210701227, -0.05649818480014801, -0.02030109614133835, -0.013897236436605453, -0.022668249905109406, -4.8927893658401445e-05, 0.026979293674230576, 0.026681439951062202, -0.033767227083444595, -0.026650087907910347, -0.036996591836214066, -0.04558732733130455, -0.0025983834639191628, 0.029409155249595642, -0.014061840251088142, -0.03266987204551697, -0.029330771416425705, -0.01145169883966446, 0.03398669883608818, -0.005169332958757877, 0.007951915264129639, -0.034456994384527206, -0.03778041899204254, -0.009633222594857216, 0.028296122327446938, 0.028013944625854492, 0.02396940253674984, 0.015480564907193184, 0.0035664087627083063, -0.036244116723537445, 0.039912424981594086, -0.02440834417939186, -0.010675711557269096, 0.014806474559009075, -0.0017763458890840411, -0.028954535722732544, -0.005714092403650284, 0.003090234473347664, 0.0006662521627731621, -0.0061216820031404495, 0.003149021416902542, 0.01705605536699295, -0.011569272726774216, -0.010252445004880428, -0.007422833237797022, -0.0353662334382534, 0.02904859557747841, -0.009186442010104656, -0.029518891125917435, -0.012948807328939438, 0.029942156746983528, -0.019109679386019707, 0.006552786100655794, -0.01508865226060152, 0.00017011475574690849, -0.00630979984998703, 0.003090234473347664, -0.0071249790489673615, -0.0517638735473156, -0.007669738493859768, 0.05442888289690018, -0.007258229423314333, -0.01680523157119751, -0.009985944256186485, 0.016914967447519302, 0.010675711557269096, -0.042138490825891495, -0.01315260212868452, 0.053237468004226685, -0.006352910306304693, 0.04088436812162399, 0.008245850913226604, 0.07179847359657288, 0.02111627534031868, 0.011263580992817879, -0.004620654974132776, 0.005921806208789349, -0.00013178076187614352, -0.013999134302139282, 0.008418291807174683, -0.017730146646499634, 0.0025807474739849567, -0.011373316869139671, -0.039724305272102356, 0.0644618570804596, -0.03511540964245796, 0.03818800672888756, -0.018937237560749054, -0.009554839693009853, -0.009209956973791122, 0.01744796894490719, -0.011530081741511822, 0.0022632977925240993, -0.001071882201358676, 0.034645114094018936, 0.007277825381606817, 0.044740792363882065, 0.011921994388103485, 0.047092270106077194, 0.020018918439745903, -0.008582895621657372, -0.016632789745926857, 0.07273906469345093, -0.0110049182549119, 0.024047784507274628, 0.021084921434521675, 0.04837774485349655, -0.0018645263044163585, 0.025474347174167633, 0.027089029550552368, -0.018670737743377686, 0.009915400296449661, 0.0013863923959434032, 0.025286229327321053, -0.038971833884716034, -0.04649656265974045, -0.04336125776171684, 0.04508567601442337, 0.01915670931339264, 0.022919075563549995, -0.002326003974303603, -0.04981998726725578, -0.009468618780374527, -0.007172008510679007, 0.017150115221738815, 0.031933076679706573, 0.02003459446132183, -0.03868965432047844, -0.033516403287649155, -0.02638358622789383, 0.013591544702649117, 0.041824959218502045, 0.0017126599559560418, -0.029377801343798637, 0.008629925549030304, -0.0232639592140913, 0.011412507854402065, 0.002200591843575239, -0.015190549194812775, 0.037247415632009506, 0.007395399268716574, -0.024267256259918213, -0.025145141407847404, -0.004785258322954178, 0.031478457152843475, -0.030428128316998482, 0.003413562662899494, 0.002376952674239874, -0.00039019843097776175, 0.02505108155310154, 0.019313475117087364, 0.028045296669006348, 0.028829123824834824, 0.02284069173038006, -0.01801232434809208, -0.01229823101311922, -0.009061029180884361, -0.003893656190484762, 0.020018918439745903, 0.021727658808231354, 0.0024788500741124153, 0.0025533135049045086, 0.039159949868917465, -0.02707335352897644, 0.012376613914966583, -0.0006015865365043283, -0.0350213497877121, 0.005913967732340097, 0.056843068450689316, 0.019564298912882805, -0.02226066030561924, 0.0016068434342741966, 0.0032999077811837196, -0.006313719321042299, 0.024941345676779747, -0.00291583314538002, -0.024110490456223488, -0.012948807328939438, 0.05910048633813858, -0.004420779179781675, -0.004228741861879826, -0.0010640439577400684, -0.027355531230568886, 0.008990485221147537, 0.0011757391039282084, 0.025380289182066917, -0.004350234754383564, -0.03558570519089699, 0.04781339317560196, -0.030396776273846626, -0.04132331162691116, 0.031102219596505165, 0.042640138417482376, -0.02802962064743042, -0.003587963990867138, -0.0053927237167954445, 0.01502594631165266, -0.003246999578550458, 0.0452737957239151, -0.017855558544397354, 0.006325476337224245, 0.014782960526645184, -0.001190435839816928, 0.03270122408866882, -0.012682306580245495, -0.028452886268496513, 0.0010973565513268113, 0.029707008972764015, 0.018623707816004753, 0.03749823942780495, -0.025004051625728607, -0.030334070324897766, 0.03931671753525734, -0.019674034789204597, -0.015425697900354862, -0.02238607406616211, -0.02009730041027069, -0.02378128282725811, -0.0010424887295812368, 0.047970157116651535, 0.03183901682496071, -0.015308124013245106, 0.008379100821912289, -0.01113033015280962, 0.014822151511907578, 0.011255742982029915, -0.019579974934458733, 0.018153412267565727, 0.030537864193320274, -0.004706875886768103, -0.03596194088459015, 0.02669711597263813, -0.0011179319117218256, -0.006834963336586952, -0.0019233132479712367, 0.0012276676716282964, 0.015214064158499241, 0.01693064346909523, 0.008755337446928024, -0.029032917693257332, -0.04539920762181282, -0.012658791616559029, -0.0044834851287305355, 0.013991295360028744, 0.005224200896918774, -0.010613005608320236, -0.017353909090161324, 0.006058975588530302, -0.004322800785303116, -0.0027316338382661343, 0.007944077253341675, -0.04367478936910629, -0.02117898128926754, 0.009445104748010635, 0.021147627383470535, 0.0129409683868289, 0.007203361950814724, 0.006756580900400877, -0.020065948367118835, -0.02904859557747841, -0.01578625664114952, 0.016961997374892235, 0.003664386924356222, -0.0251137875020504, 0.03361046314239502, 0.0017596895340830088, 0.018184766173362732, -0.011530081741511822, 0.03204280883073807, 0.016272230073809624, -0.02473755180835724, -0.0007363066542893648, 0.020379478111863136, -0.01782420463860035, 0.011459537781774998, 0.02478458173573017, 0.05493053421378136, -0.010785447433590889, 0.00702308164909482, 0.0049459426663815975, 0.026775499805808067, 0.02226066030561924, -0.007262148894369602, -0.008355585858225822, -0.01055813767015934, 0.004032785072922707, -0.03166657313704491, -0.016899291425943375, -0.02296610362827778, -0.03803124278783798, -0.03480187803506851, 0.024063460528850555, -0.02694794163107872, 0.018733443692326546, 0.0007456145831383765, 0.004581463523209095, 0.0015529554802924395, 0.0161154642701149, 0.045054323971271515, 0.023875342682003975, 0.013168278150260448, -0.013136925175786018, 0.004115086980164051, -0.003537015290930867, -0.009586192667484283, -0.004507000092417002, -0.0030079325661063194, -0.002235863823443651, -0.026461968198418617, 0.02478458173573017, -3.1720461265649647e-05, 0.04260878637433052, 0.010119195096194744, 0.0014197049895301461, 0.00954700168222189, 0.03746688738465309, -0.02130439318716526, -0.005353532265871763, -0.014453752897679806, 0.02625817432999611, -0.04411373287439346, -0.03138439729809761, 0.022715279832482338, 0.005302583333104849, -0.03082004189491272, -0.009954591281712055, -0.01863938383758068, -0.011686846613883972, 0.005290826316922903, -0.021351423114538193, -0.048471804708242416, -0.02776312083005905, 0.0240321084856987, 0.02371857687830925, -0.0008313455618917942, 0.005220281891524792, -0.033892638981342316, 0.01743229292333126, 0.052547700703144073, -0.030161628499627113, -0.02721444144845009, -0.0003118158201687038, -0.04000648483633995, -0.019830800592899323, -0.018858855590224266, 0.012737173587083817, 0.026524674147367477, -0.004773500841110945, -0.007556083612143993, 0.018310178071260452, -0.008198820985853672, -0.018106382340192795, -0.023232605308294296, -0.02226066030561924, 0.029754038900136948, 0.009398074820637703, 0.033265579491853714, 0.023577488958835602, -0.023985078558325768, -0.010291636921465397, -0.018216118216514587, -0.01232958398759365, -0.0061412774957716465, 0.008951294235885143, -0.0026473726611584425, -0.018796149641275406, -0.006239255890250206, -0.024894315749406815, -0.03146278113126755, -0.018811825662851334, -0.019485916942358017, -0.00031818440766073763, -0.011475213803350925, 0.012596085667610168, 0.050823282450437546, -0.030647600069642067, 0.027684736996889114, 0.03567976504564285, 0.014445914886891842, -0.01730688102543354, -0.005051759071648121, -0.0044834851287305355, 0.01017406303435564, -0.025693818926811218, 0.011138169094920158, 0.0006804590229876339, -0.020144330337643623, 0.005326098296791315, 0.005984512157738209, -0.0015715713379904628, -0.019674034789204597, 0.011976862326264381, 0.013011513277888298, -0.0022143085952848196, 0.03489593788981438, 0.03232498839497566, 0.03044380620121956, 0.016523053869605064, -0.025772202759981155, -0.007850018329918385, -0.020975185558199883, 0.027857178822159767, -0.003482147352769971, 0.015292447060346603, -0.013842368498444557, -0.011577111668884754, -0.0110049182549119, -0.0001840766635723412, -0.027183089405298233, 0.0021359261590987444, -0.0016989430878311396, -0.014163737185299397, 0.01058949064463377, -0.00453443406149745, 0.005298664327710867, -0.04267149418592453, -0.015127843245863914, -0.0042679328471422195, 0.008222335949540138, 0.03790583088994026, -0.009343206882476807, -0.01163197960704565, 0.02777879685163498, -0.005239877384155989, -0.008849396370351315, -0.025035405531525612, 0.015268932096660137, -0.014320502988994122, 0.00377216306515038, -0.015457050874829292, 0.009860532358288765, -0.018216118216514587, -0.04006918892264366, 0.005020406097173691, -0.010471916757524014, -0.033453699201345444, -0.009742958471179008, 0.013489646837115288, -0.031478457152843475, 0.023953724652528763, -0.013677765615284443, 0.015895992517471313, -0.018106382340192795, 0.05772095173597336, 0.0019203738775104284, 0.03329693153500557, 0.011498728767037392, -0.008888588286936283, -0.015308124013245106, 0.006129520013928413, -0.020473537966609, 0.008363424800336361, -0.007571760099381208, 0.012117951177060604, -0.004119005985558033, 0.026273850351572037, 0.000795093597844243, 0.009272662922739983, -0.03317151963710785, 0.01940753310918808, 0.006219659931957722, 0.003372411709278822, -0.02036380209028721, 0.002931509632617235, -0.0010709024500101805, 0.025599760934710503, 0.006000188644975424, -0.028766417875885963, 0.02059894986450672, -0.008567219600081444, 0.012815556488931179, 0.02542731910943985, -0.014555650763213634, 0.016852261498570442, -0.025474347174167633, 0.024878639727830887, 0.0001223503495566547, -0.001590187195688486, 0.007505134679377079, 0.010699226520955563, 0.04216984286904335, 0.02467484585940838, 0.019799446687102318, -0.008190982975065708, -0.01601356640458107, 0.0071406555362045765, -0.020144330337643623, 0.013082057237625122, -0.007689333986490965, 0.014038325287401676, 0.018028000369668007, -0.012815556488931179, -0.03266987204551697, -0.006901588756591082, 0.026524674147367477, 0.00812043808400631, 0.0021084921900182962, -0.02142980508506298, 0.00702308164909482, 0.006337233819067478, 0.02149251103401184, 0.013779662549495697, -0.009774311445653439, -0.04596356302499771, -0.024126166477799416, -0.01515135820955038, -0.003041245276108384, -0.0036839826498180628, -0.020834097638726234, -0.00022926913516130298, -0.0018880411516875029, 0.005055678077042103, 0.03524082154035568, 0.032952047884464264, -0.0030980727169662714, 0.024753227829933167, 0.007755959406495094, -0.013066381216049194, 0.025333259254693985, 0.012643114663660526, 0.017996646463871002, -0.006329395808279514, -0.018608031794428825, -0.011733876541256905, 0.01661711372435093, 0.026712793856859207, -0.0070857880637049675, 0.019862152636051178, 0.0011140127899125218, -0.007344450335949659, 0.02605437859892845, 0.017197145149111748, -0.0173695869743824, 0.015966538339853287, -0.006329395808279514, -0.01984647661447525, 0.031211955472826958, -0.018811825662851334, -0.0038858179468661547, 0.05543218180537224, -0.011812259443104267, -0.019689710810780525, -0.03229363635182381, -0.0015774499624967575, 0.008622086606919765, 0.020003242418169975, -0.03831341862678528, -0.0017175589455291629, 0.01148305181413889, -0.013740471564233303, -0.0071210600435733795, 0.054491590708494186, -0.02592896670103073, -0.01780852861702442, 0.009837017394602299, 0.02890750579535961, -0.006983890663832426, -0.02180604264140129, -0.006431293208152056, 0.028484240174293518, -0.0006520453025586903, -0.012353098951280117, -4.360032471595332e-05, 0.0068388828076422215, -0.00776771642267704, 0.00029834380256943405, -0.004800934810191393, -0.011028433218598366, 0.009837017394602299, -0.0030510430224239826, -0.01553543284535408, -0.025270553305745125, -0.029957832768559456, 0.02359316498041153, -0.042326610535383224, -0.0037094568833708763, -0.01576274260878563, -0.026085732504725456, 0.026806851848959923, -0.006051137577742338, -0.009962429292500019, -0.01106762420386076, -0.02365587092936039, -0.010855991393327713, 0.0010268121259287, 0.0034351178910583258, 0.013991295360028744, 0.03530352562665939, 0.015558947809040546, -0.01388939842581749, -0.01356802973896265, -0.03273257613182068, 0.00728958286345005, -0.004095491487532854, 0.007712848950177431, 0.008277203887701035, -0.034519702196121216, -0.009899723343551159, -0.0005756223108619452, -0.00890426430851221, -0.024204550310969353], "id": 73}, {"title": "Jubilee (biblical)", "text": "The Jubilee (Hebrew yovel \u05d9\u05d5\u05d1\u05dc) year is the year at the end of seven cycles of shmita (Sabbatical years), and according to Biblical regulations had a special impact on the ownership and management of land in the Land of Israel; there is some debate whether it was the 49th year (the last year of seven sabbatical cycles, referred to as the Sabbath's Sabbath), or whether it was the following (50th) year. Jubilee deals largely with land, property, and property rights.", "vector": [-0.007218821905553341, 0.000699120108038187, -0.013559678569436073, 0.007747226394712925, -0.03489097207784653, -0.006568477489054203, -0.0091129494830966, -0.010665646754205227, -0.01128347311168909, 0.0755700096487999, -0.010405508801341057, -0.06435156613588333, 0.005763676483184099, 0.03719969466328621, 0.015502582304179668, 0.005336887668818235, 0.034143075346946716, -0.011478576809167862, 0.04422341287136078, 0.012234602123498917, -0.038858070969581604, -0.005324693862348795, -0.01055996585637331, -0.00483287125825882, -0.017786916345357895, -0.012047627940773964, 0.012462222948670387, -0.01845351979136467, -0.03349273279309273, 0.02832249365746975, 0.02861514873802662, 0.007332631852477789, -0.00664164125919342, -0.014283186756074429, 0.02687547728419304, 0.0005273885908536613, -0.00814149808138609, 0.006373374257236719, -0.03963848575949669, -0.0915684774518013, 0.013177601620554924, -0.019429035484790802, 0.0041784620843827724, 0.013592195697128773, 0.02206292934715748, 0.0025688600726425648, -0.010738810524344444, 0.01920141465961933, -0.04750765115022659, 0.027412012219429016, -0.006531895603984594, 0.015218056738376617, 0.03667941689491272, 0.07433435320854187, 0.02518458291888237, -0.05391354113817215, -0.007804131601005793, 0.029980871826410294, -0.06318094581365585, -0.0011320055928081274, -0.004865388385951519, -0.023249808698892593, -0.01120218075811863, 0.003971165046095848, -0.006365244742482901, -0.0026907995343208313, 0.012868687510490417, 0.045751720666885376, 0.012982497923076153, 0.006474990397691727, -0.01770562306046486, -0.02773718349635601, 0.03726472705602646, 0.0036703806836158037, -0.027493305504322052, 0.036419279873371124, 0.03466334939002991, 0.028989097103476524, -0.059506502002477646, 0.04806044325232506, -0.024127773940563202, -0.024745600298047066, -0.04077658802270889, -0.04090665653347969, -0.001985582523047924, 0.029216717928647995, 0.04106924310326576, -0.07127773761749268, 0.03654934838414192, -0.00013070396380499005, -0.016843916848301888, -0.04289020597934723, -0.06269319355487823, -0.034728385508060455, 0.04910099506378174, -0.012267119251191616, 0.012608549557626247, 0.015803366899490356, 0.00916985422372818, -0.06679035723209381, 0.03220830112695694, -0.06331101804971695, -0.05745792016386986, -0.014762815088033676, 0.007970781996846199, -0.011250955983996391, -0.011039594188332558, 0.0011777328327298164, 0.009283664636313915, -0.003737447317689657, 0.019819242879748344, 0.041459448635578156, 0.020794758573174477, -0.002298560691997409, -0.031818095594644547, 0.017689364030957222, -0.016226090490818024, -0.04503634199500084, -0.0043288543820381165, 6.630463030887768e-05, -0.013421480543911457, -0.04253251850605011, 0.008999139070510864, -0.014055565930902958, 0.007946394383907318, -0.04048393294215202, -0.005572637543082237, 0.02204667218029499, 0.043312929570674896, -0.027899770066142082, -0.05976663902401924, -0.05739288404583931, -0.042630068957805634, -0.02007937990128994, 0.0036581866443157196, 0.0041337511502206326, 0.00190428935457021, 0.032696060836315155, -0.028793994337320328, 0.02066469006240368, -0.013128825463354588, -0.015193668194115162, 0.016234219074249268, 0.0703672543168068, 0.04763771966099739, -0.057945676147937775, -0.0008322374778799713, 0.030940130352973938, -0.010242922231554985, -0.04136189818382263, 0.054466333240270615, 0.030598698183894157, 0.01059248298406601, -0.001737638609483838, -0.002672508591786027, 0.0195591039955616, -0.04549158364534378, 0.03219204396009445, -0.018014537170529366, 0.023835118860006332, -0.005405987147241831, -0.024908186867833138, -0.029980871826410294, 0.0351836271584034, -0.01421815250068903, -0.012527257204055786, 0.01985175907611847, -0.04526396468281746, 0.029151683673262596, 0.0165106151252985, -0.04393075779080391, -0.05199502781033516, -0.05267788842320442, -0.05212509632110596, 0.053295716643333435, -0.036874521523714066, 0.03625669330358505, 0.00856015644967556, -0.023184774443507195, -0.024940703064203262, -0.03198068216443062, 0.010454284958541393, -0.009682000614702702, 0.009226759895682335, 0.015258703380823135, -0.0037963849026709795, 0.018323451280593872, 0.008340665139257908, -0.043833207339048386, -0.03437069430947304, -0.00972264725714922, -0.011437930166721344, 0.03139537200331688, 0.027428271248936653, 0.0017427194397896528, -0.030257267877459526, 0.0001978977379621938, 0.023022187873721123, -0.062010329216718674, -0.0243228767067194, 0.04806044325232506, 0.02380260080099106, 0.050336647778749466, 0.04396327584981918, 0.03528117761015892, 0.019233932718634605, -0.004946681205183268, -0.051962509751319885, 0.06763580441474915, -0.05088943988084793, 0.06854628771543503, 0.03905317559838295, -0.005023909732699394, -0.046564649790525436, 0.010031560435891151, -0.01029982790350914, 0.02588370256125927, 0.025786152109503746, 0.03661438450217247, 0.0006950554670765996, 0.04932861402630806, -0.05749043449759483, -0.011153404600918293, -0.030679991468787193, 0.01363284233957529, 0.010803844779729843, 0.007039976771920919, -0.005418180953711271, -0.041231829673051834, -0.014104342088103294, -0.022469395771622658, 0.02907039038836956, -0.03778500482439995, 0.009072302840650082, -0.04532899707555771, -0.011234697885811329, -0.006068525370210409, 0.022355584427714348, 0.019412776455283165, -0.05414116382598877, 0.018209639936685562, -0.02604628913104534, -0.038858070969581604, -0.013356446288526058, -0.03541124612092972, 0.003912227228283882, -0.022306809201836586, 0.03674445301294327, -0.03986610472202301, 0.006714805029332638, 0.028127390891313553, -0.009771423414349556, -0.020209448412060738, 0.008174015209078789, -0.03485845401883125, -0.01850229501724243, -0.030598698183894157, 0.012242731638252735, -0.034273143857717514, 0.061425019055604935, -0.0097795519977808, 0.024648047983646393, -0.02206292934715748, -0.05323068052530289, 0.019705431535840034, 0.036646902561187744, -0.020518362522125244, 0.003511859104037285, 0.001754913479089737, 0.01427505724132061, 0.049068477004766464, 0.028680182993412018, 0.028420045971870422, 0.03970351815223694, -0.022843344137072563, -0.007832583971321583, 0.008535768836736679, 0.021558912470936775, -0.0019916794262826443, -0.007243209518492222, 0.022664498537778854, -0.00731230853125453, -0.01238905917853117, 0.04266258701682091, 0.02890780381858349, 0.02430661767721176, -0.04106924310326576, -0.008137432858347893, -0.01549445278942585, 0.01450267806649208, -0.006231111474335194, -0.041296862065792084, 0.012437834404408932, 0.02929801121354103, -0.00011679522867780179, -0.0378500372171402, -0.02733071893453598, 0.019802983850240707, 0.006292080972343683, -0.035606350749731064, -0.0065400246530771255, 0.004397953394800425, -0.021623948588967323, -0.013559678569436073, -0.005930326879024506, -0.013226376846432686, -0.04438599944114685, 0.011689938604831696, 0.02791602909564972, -0.0028777734842151403, 0.052320197224617004, -0.004084974993020296, -0.02269701659679413, 0.01364097185432911, 0.0831790342926979, -0.03732976317405701, -0.010543706826865673, -0.02768840827047825, 0.018437260761857033, 0.012055757455527782, 0.037980105727910995, 0.008271566592156887, -0.02025822550058365, -0.05407612770795822, 0.03677697107195854, -0.008035816252231598, -0.03729724511504173, -0.012681713327765465, -0.01462461706250906, 0.004971069283783436, -0.011063982732594013, -0.05911629647016525, 0.014088083058595657, 0.02687547728419304, 0.007287920918315649, -0.027249425649642944, -0.0067513869144022465, 0.044776204973459244, 0.010755068622529507, -0.026420237496495247, 0.012884946539998055, -0.03963848575949669, 0.011340378783643246, -0.016478098928928375, -0.008007364347577095, 0.0037211887538433075, -0.010153500363230705, -0.030273526906967163, 0.048775821924209595, -0.025574790313839912, 0.0008098818943835795, 0.023477429524064064, -0.0029326463118195534, 0.00728385616093874, 0.018811209127306938, -0.011023336090147495, -0.06835118681192398, -0.029054131358861923, 0.00732856709510088, -0.01364097185432911, 0.0486457534134388, -0.023054705932736397, 0.0060319434851408005, 0.013771040365099907, -0.027769701555371284, -0.05856350436806679, 6.164457317936467e-06, -0.0024794377386569977, -0.01603911630809307, -0.02019319124519825, -0.03765493631362915, 0.006292080972343683, 0.042500000447034836, 0.0020953279454261065, -0.016388677060604095, 0.01398240216076374, -0.051214613020420074, 0.015575746074318886, 0.028127390891313553, 0.004808483179658651, 0.0074301837012171745, 0.02321729063987732, -0.007808196358382702, 0.0026481207460165024, 0.010787585750222206, -0.007978911511600018, 0.01218582596629858, 0.004369500558823347, -0.01128347311168909, -0.021136188879609108, -0.02907039038836956, 0.01677888259291649, -0.002062810817733407, 0.014266927726566792, 0.0044629876501858234, 0.0539785772562027, 0.016860175877809525, -0.02251817099750042, 0.027412012219429016, 0.008072398602962494, 0.05924636498093605, -0.050336647778749466, 0.05192999169230461, 0.017315417528152466, 0.03521614521741867, 0.027720926329493523, -0.045881789177656174, 0.00305458577349782, 0.02407899685204029, 0.0025790215004235506, 0.012941851280629635, 0.03609410673379898, 0.0006533928099088371, 0.01804705336689949, -0.013136954978108406, -0.009332440793514252, 0.026550306007266045, 0.04380068928003311, -0.0064058913849294186, -0.01059248298406601, -0.032923679798841476, 0.018599847331643105, -0.06568477302789688, 0.023721307516098022, -0.060677122324705124, -0.009291794151067734, -0.00843821745365858, -0.03237088769674301, -0.03651683032512665, 0.033687833696603775, -0.04380068928003311, -0.012234602123498917, 0.031232785433530807, 0.04984889179468155, 0.03895562142133713, -0.010868879035115242, -0.002457082038745284, -0.0010923751397058368, 0.015258703380823135, 0.027460787445306778, 0.01840474270284176, -0.017543036490678787, -0.05153978615999222, -0.010698163881897926, -0.010511189699172974, -0.01000717282295227, -0.04119931161403656, -0.01569768600165844, 0.02554227225482464, 0.012917463667690754, 0.03463083505630493, -0.023542463779449463, -0.028306234627962112, -0.005060491617769003, 0.03131407871842384, 0.06422150135040283, -0.015274961479008198, -0.07153787463903427, -0.002747704740613699, 0.015079858712852001, -0.028533855453133583, 0.03253347426652908, 0.023835118860006332, -0.05355585366487503, -0.022436877712607384, -0.002007937990128994, -0.0037252535112202168, -0.014161246828734875, 0.011275344528257847, 0.025038255378603935, 0.0014002725947648287, -0.0054466333240270615, -0.08857689052820206, 0.0565149188041687, -0.021656464785337448, -0.016632555052638054, 0.026777926832437515, -0.010950172320008278, 0.04162203520536423, 0.016681330278515816, 0.025688599795103073, -0.013145084492862225, -0.05280795693397522, 0.05014154687523842, -0.018323451280593872, 0.04659716784954071, 0.012267119251191616, -0.028582632541656494, -0.023574979975819588, 0.015014823526144028, 0.03157421573996544, 0.010324215516448021, -0.0009887265041470528, 0.009698259644210339, 0.028127390891313553, 0.020063120871782303, -0.027997322380542755, -0.03446824848651886, 0.026013771072030067, -0.0323871448636055, -0.04591430723667145, -0.01741296797990799, 0.0008662789477966726, 0.039605967700481415, -0.009438121691346169, -0.010186017490923405, -0.02025822550058365, 0.006133559625595808, 0.0007539929356426001, -0.0182258989661932, -0.005999425891786814, 0.012632938101887703, -0.03152544051408768, -0.01122656837105751, 0.020225707441568375, -0.0004123081162106246, 0.010746939107775688, -0.005950650200247765, -0.030777543783187866, -0.015470065176486969, -0.0035423440858721733, 0.00852763932198286, 0.009958396665751934, -0.037622418254613876, 0.024696825072169304, -0.0032374951988458633, 0.019185157492756844, 0.0008474799105897546, 0.006466860882937908, 0.016291124746203423, 0.03254973143339157, 0.019754208624362946, -0.050336647778749466, 0.027769701555371284, 0.02227429300546646, -0.022355584427714348, -0.049068477004766464, 0.02089231088757515, -0.0047271898947656155, -0.021250000223517418, 0.008365053683519363, -0.015421289019286633, 0.009828328154981136, -0.0059018745087087154, 0.024583013728260994, 0.013901108875870705, 0.03710214048624039, 0.0032171718776226044, -0.008917845785617828, -0.025233358144760132, 0.05830336734652519, -0.02240436151623726, -0.0029163877479732037, 0.01671384833753109, 0.006625382695347071, 0.003654122119769454, 0.035021040588617325, 0.03736228123307228, 0.010405508801341057, 0.012787395156919956, 0.0020871986635029316, 0.013242635875940323, 0.004038231447339058, 0.022371843457221985, -0.018209639936685562, -0.03654934838414192, -0.05605967715382576, 0.0863657221198082, -0.03713465854525566, 0.006491248961538076, -0.04188217222690582, -0.011722455732524395, -0.025526013225317, -0.03006216511130333, 0.004345112945884466, -0.018209639936685562, -0.0023453040048480034, 0.03424062579870224, 0.014055565930902958, 0.048775821924209595, -0.005084879230707884, 0.005844969302415848, -0.0168926939368248, 0.00230059283785522, -0.009999043308198452, 0.01827467419207096, -0.01978672482073307, 0.010104724206030369, -0.032354630529880524, 0.010551836341619492, -0.03511859104037285, 0.03476090356707573, -0.03168802708387375, -0.02396518737077713, -0.011218438856303692, 0.04363810271024704, -0.0003830934292636812, 0.005044233053922653, 0.030013389885425568, -0.0042678844183683395, -0.0016766688786447048, 0.006926166824996471, -0.02890780381858349, 0.0009562093182466924, 0.003552505746483803, -0.022469395771622658, -0.016591908410191536, -0.03921576216816902, -0.005206819158047438, -0.01543754804879427, -0.035086072981357574, 0.042500000447034836, -0.023347361013293266, -0.018551070243120193, -0.02692425437271595, 0.03191564604640007, -0.06376625597476959, -0.0023574980441480875, -0.0068245502188801765, -0.024095255881547928, -0.033330146223306656, 0.021786533296108246, -0.014478289522230625, -0.022371843457221985, -0.016665073111653328, 0.0022314938250929117, -0.025753634050488472, -0.0027659956831485033, 0.007231015712022781, -0.0004862339701503515, 0.034208111464977264, 0.007222886197268963, -0.046922340989112854, -0.014779074117541313, 0.01639680564403534, 0.014705910347402096, 0.00635305093601346, -0.03385042026638985, 0.011624904349446297, 0.003524053143337369, 0.015917176380753517, 0.019006311893463135, 0.004824741743505001, 0.027005547657608986, -0.008495122194290161, 0.018437260761857033, 0.003591120010241866, 0.04532899707555771, 0.005117396824061871, -0.005552314221858978, -0.02656656503677368, 0.04503634199500084, 0.023119740188121796, 0.02988331951200962, -0.033102523535490036, 0.013600325211882591, -0.008836553432047367, 0.01827467419207096, 0.01944529451429844, 0.0020059056114405394, -0.036354247480630875, 0.038728002458810806, -0.007210692390799522, 0.01612853817641735, 0.012592291459441185, -0.03680948540568352, -0.01799827814102173, -0.0024489527568221092, 0.02430661767721176, -0.03404552489519119, 0.00876338966190815, 0.013128825463354588, -0.0032151394989341497, 0.00274973688647151, 0.033622801303863525, 0.0026704762130975723, -0.025526013225317, -0.004101233556866646, 0.04916602745652199, 0.025233358144760132, -0.006548154167830944, -0.02733071893453598, 0.01798201911151409, -0.02105489745736122, 0.027070581912994385, -0.014023048803210258, 0.03993114084005356, -0.029639441519975662, -0.009641353972256184, -0.00394677696749568, -0.0151774100959301, 0.019591622054576874, 0.008991009555757046, -0.05433626472949982, 0.017965761944651604, -0.04649961739778519, 0.002824933035299182, 0.03654934838414192, -0.03710214048624039, -0.025103289633989334, -0.021965378895401955, 0.006084783934056759, -0.06880642473697662, 0.031818095594644547, 0.009177983738481998, 0.04380068928003311, -0.014722169376909733, -0.028403786942362785, 0.03993114084005356, -0.011966334655880928, -0.025217099115252495, -0.00543850427493453, -0.0499139241874218, -0.04223986342549324, 0.016494357958436012, -0.002215235261246562, 0.002686734776943922, 0.006999330595135689, -0.013811687007546425, -0.012080145068466663, 0.009121078997850418, -0.043312929570674896, -0.04188217222690582, -0.003117587883025408, 0.007100946735590696, 0.01430757436901331, -0.05212509632110596, -0.041296862065792084, 0.01433196198195219, 0.009551932103931904, -0.008909717202186584, 0.03241966292262077, -0.01978672482073307, -0.0061660767532885075, 0.00965761300176382, 0.03290742263197899, -0.025135807693004608, 0.02263198234140873, 0.01151922345161438, -0.024387910962104797, 0.012063886970281601, -0.02251817099750042, -0.0043085310608148575, 0.04162203520536423, 0.011998851783573627, -0.0014388867421075702, 0.06275822222232819, -0.007930135354399681, -0.05215761065483093, 0.036061592400074005, -0.011389154009521008, -0.008755260147154331, 0.03069625049829483, 0.0013443835778161883, 0.038565415889024734, 0.009088561870157719, 0.019705431535840034, -0.05183244124054909, 0.02344491146504879, 0.02570485882461071, -0.02258320525288582, 0.011787489987909794, -0.005019844975322485, -0.05280795693397522, -0.00869835540652275, 0.009438121691346169, 0.019754208624362946, 0.027818476781249046, -0.016006598249077797, 0.02380260080099106, -0.031427886337041855, -0.026436494663357735, -0.01664881408214569, 0.0024835022632032633, 0.0031582345254719257, -0.002715187380090356, -0.04276013746857643, 0.008991009555757046, 0.018664881587028503, -0.02716813236474991, -0.007523670792579651, 0.003875645576044917, 0.0444510318338871, -0.024696825072169304, -0.001723412424325943, -0.02437165193259716, 0.0005050330073572695, -0.009730776771903038, 0.04302027449011803, 0.016860175877809525, 0.010316086001694202, 0.015592004172503948, -0.003891904139891267, 0.019055087119340897, 0.027298200875520706, 0.0036663159262388945, 0.029037872329354286, -0.0029163877479732037, 0.014340091496706009, 0.001700040651485324, 0.022258033975958824, -0.040191277861595154, 0.017510520294308662, 0.007560252211987972, 0.021493878215551376, 0.043442998081445694, 0.019689174368977547, -0.003696800908073783, -0.006954619195312262, 0.020745983347296715, -0.03625669330358505, 0.01488475501537323, 0.01741296797990799, -0.008869070559740067, -0.006357115693390369, -0.006747322157025337, -0.013673488982021809, -0.06441660225391388, 0.00847073458135128, 0.04962126910686493, -0.005101138260215521, -0.017087796702980995, 0.027932288125157356, 0.01897379569709301, -0.03541124612092972, 0.04640206694602966, 0.013901108875870705, 0.033622801303863525, 0.018876243382692337, 0.04201224073767662, 0.0038268696516752243, 0.005531991366297007, -0.03853289783000946, 0.000835794024169445, -0.018323451280593872, 0.01546193566173315, -0.007422054186463356, 0.006787968799471855, 0.00946250930428505, 0.03843534737825394, -0.0002535326639190316, 0.01770562306046486, -0.0006244321120902896, 0.009901491925120354, -0.016543133184313774, 0.03256599232554436, 0.012234602123498917, -0.016087891533970833, -0.029054131358861923, -0.005361275747418404, 0.013730393722653389, -0.028972838073968887, -0.0004755642730742693, 0.01564890891313553, 0.027135616168379784, -0.03950841724872589, -0.027314459905028343, 0.011218438856303692, -0.005824645981192589, 0.01059248298406601, 0.008068334311246872, -0.011299732141196728, 0.0067310635931789875, -0.008917845785617828, 0.014665263704955578, -0.02726568467915058, 0.0018179155886173248, -0.02778596058487892, -0.014998565427958965, -0.016746366396546364, 0.016144797205924988, 0.025379685685038567, 0.05209257826209068, 0.021201223134994507, 0.05235271528363228, 0.07374904304742813, 0.010974559932947159, 0.017543036490678787, -0.013624712824821472, -0.055441852658987045, -0.01770562306046486, 0.025981254875659943, 0.027412012219429016, 0.007186304312199354, 0.02710309810936451, 0.016226090490818024, -0.041752103716135025, -0.048027925193309784, 0.0017610103823244572, 0.005032038781791925, -0.024810634553432465, 0.023135999217629433, -0.01845351979136467, -0.01311256643384695, -0.009421862661838531, 0.022014154121279716, -0.004320724867284298, -0.0201281551271677, -0.01596595160663128, -0.017152830958366394, 0.027054322883486748, 0.006418085191398859, 0.016274865716695786, -0.011714326217770576, 0.0003084054624196142, 0.013535290956497192, 0.020176932215690613, 0.000730621162801981, -0.023867635056376457, -0.009186113253235817, 0.04822302982211113, 0.0036195723805576563, 0.0302897859364748, -0.0025017932057380676, 0.019396519288420677, -0.01677888259291649, 0.011535481549799442, 0.017266640439629555, -0.02378634177148342, 0.03336266055703163, -0.031541697680950165, -0.006783904042094946, -0.012299636378884315, 0.002125812927260995, 0.00828782469034195, -0.046922340989112854, -0.013258893974125385, 0.009251147508621216, 0.02820868417620659, 0.009934009052813053, 0.006393697578459978, 0.02337987720966339, 0.026907995343208313, -0.024810634553432465, 0.0018890469800680876, 0.0075724464841187, 0.02084353379905224, -0.0018595781875774264, -0.005401922389864922, -0.0023615628015249968, 0.021900344640016556, 0.021656464785337448, 0.0539785772562027, -0.0499139241874218, 0.029525630176067352, 0.01700650341808796, -0.03892310708761215, 0.040061209350824356, -0.0050279744900763035, -0.021965378895401955, -0.005353146698325872, 0.002318883780390024, -0.002776157110929489, -0.01128347311168909, 0.014925401657819748, 0.04454858601093292, -0.022469395771622658, 0.0045320866629481316, -0.03557383269071579, 0.030712509527802467, 0.00732856709510088, 0.014291316270828247, -0.0038695484399795532, 0.008271566592156887, 0.00815369188785553, -0.020095638930797577, -0.006938360631465912, -0.012868687510490417, -0.0243228767067194, -0.013039402663707733, 0.014071824960410595, -0.010608741082251072, 0.004292272496968508, 0.006617253180593252, -0.019542846828699112, 0.018307192251086235, 0.03736228123307228, -0.013941755518317223, 0.01729915849864483, 0.02900535613298416, -0.031249042600393295, -0.015770848840475082, -0.0015232282457873225, 0.04311782494187355, -0.020680949091911316, 0.018957536667585373, -0.015014823526144028, -7.208406168501824e-05, 0.0015638747718185186, 0.03103768080472946, -0.03150917962193489, -0.023314842954277992, 0.00019243586575612426, -0.041231829673051834, 0.017250383272767067, 0.02042081020772457, 0.0005164648173376918, -0.009226759895682335, -0.0580432265996933, -0.020924827083945274, -0.026615340262651443, -0.004406082443892956, 0.015827754512429237, 0.05101950839161873, 0.01840474270284176, -0.02739575318992138, -0.04266258701682091, 0.04536151513457298, 0.026078805327415466, -0.021396327763795853, 0.016461839899420738, -0.0017193477833643556, -0.024452945217490196, -0.014144988730549812, 0.03677697107195854, 0.00423536729067564, 0.0235587228089571, -0.009771423414349556, 0.0861055850982666, 0.017315417528152466, -0.014283186756074429, -0.02071346528828144, -0.02645275369286537, -0.007019653916358948, -0.03284238651394844, 0.007291985210031271, 0.0006574574508704245, 0.02019319124519825, -0.014770944602787495, -0.022014154121279716, 0.008690225891768932, -0.0024591144174337387, 0.008104915730655193, -0.033460214734077454, -0.007730967830866575, 0.007438312750309706, -0.0013626745203509927, 0.012592291459441185, 0.012852429412305355, -0.01241344679147005, 0.014405125752091408, 0.04210979491472244, -0.03282612934708595, 0.030712509527802467, -0.015974082052707672, -0.027834735810756683, -0.010446155443787575, 0.0034915360156446695, 0.01601472869515419, -0.00821059662848711, -0.008015493862330914, -0.008568285964429379, -0.03882555291056633, 0.012380929663777351, 0.026013771072030067, 0.03440321236848831, -0.020550880581140518, -0.010836361907422543, 0.007820390164852142, -0.015754589810967445, -0.014933531172573566, 0.046271998435258865, 0.013600325211882591, -0.0017925114370882511, -0.0010192114859819412, -0.0633760541677475, -0.002243687864392996, 0.050694338977336884, 0.01007220707833767, 0.009186113253235817, -0.03677697107195854, 0.007117205299437046, 0.03250095620751381, -0.013584066182374954, -0.01915263943374157, -0.011754972860217094, -0.011592387221753597, -0.017510520294308662, 0.006897713989019394, -0.00484506506472826, -0.0005319613264873624, 0.013332057744264603, -0.0337853878736496, -0.008356924168765545, -0.014031178317964077, -0.010438025929033756, -0.005219012964516878, -0.007202562876045704, 0.024387910962104797, -0.007092817686498165, -0.011381025426089764, 0.019933052361011505, -0.03700459003448486, 0.02105489745736122, -0.02890780381858349, -0.002465211320668459, -0.028176166117191315, 0.052027542144060135, -0.03476090356707573, 0.004341048188507557, 0.03381790220737457, -0.02726568467915058, -0.032175783067941666, 0.029980871826410294, -0.019396519288420677, 0.03726472705602646, 0.0054425690323114395, 0.021867826581001282, 0.0189250186085701, 0.01944529451429844, 0.003322852775454521, 0.0012559774331748486, -0.013811687007546425, -0.027720926329493523, 0.02466430701315403, 0.014527065679430962, 0.007548058405518532, -0.007003395352512598, 0.0004430470580700785, -0.021607689559459686, -0.005145849194377661, 0.0004318692663218826, 0.021672723814845085, -0.006239240523427725, -0.010015302337706089, -0.007783808279782534, -0.017494261264801025, 0.009852715767920017, 0.01067377533763647, -0.001605537487193942, 0.00228433427400887, 0.005966908764094114, -0.01990053616464138, 0.01128347311168909, 0.004373565316200256, -0.027525821700692177, 0.012787395156919956, -0.016681330278515816, -0.020811017602682114, 0.012616679072380066, 0.019347742199897766, -0.008844682015478611, -0.01277113612741232, 0.0035403117071837187, 0.006783904042094946, -0.031883127987384796, 0.021965378895401955, -0.013145084492862225, -0.003322852775454521, 0.012039498426020145, 0.006958683952689171, 0.016161056235432625, -0.011803749017417431, -0.022030413150787354, 0.03230585157871246, -0.012283378280699253, 0.05206006020307541, -0.01090952567756176, -0.0009684032993391156, -0.013063791207969189, -0.03593152388930321, -0.0008850779267959297, 0.00394068006426096, -0.00393661530688405, 0.011153404600918293, -0.0351836271584034, 0.012510998174548149, 0.004170332569628954, 0.002770060207694769, 0.01363284233957529, 0.028127390891313553, 0.016087891533970833, -0.0048572588711977005, -0.015486323274672031, -0.010364862158894539, -0.005853098817169666, -0.013299540616571903, -0.008869070559740067, 0.0038390636909753084, -0.01565703935921192, -0.01903882995247841, 0.02687547728419304, -0.006056331098079681, -0.042857687920331955, -0.010462413541972637, 0.033053748309612274, 0.015274961479008198, -0.03807765990495682, 0.06285577267408371, 0.015047341585159302, 0.016697589308023453, -0.014738427475094795, 0.00012390836491249502, 0.05531178414821625, -0.004048393107950687, 0.017201606184244156, -0.014234410598874092, 0.023054705932736397, -0.005832775495946407, -0.0020292773842811584, -0.005174302030354738, 0.03957344964146614, 0.011738714762032032, -0.012486610561609268, -0.010161629877984524, -0.010738810524344444, -0.018957536667585373, 0.009584449231624603, -0.04497130960226059, 0.010828232392668724, 0.02170524001121521, 0.016437452286481857, 0.007791937794536352, -0.011356636881828308, 0.013933626934885979, -0.0030728767160326242, 0.028159907087683678, -0.07069242745637894, 0.016502486541867256, -0.035606350749731064, 0.028403786942362785, 0.008771518245339394, 0.0007351938984356821, 0.05222264677286148, -0.0061416891403496265, 0.026550306007266045, 0.036939557641744614, -0.04578423872590065, -0.01174684427678585, -0.025526013225317, 0.033021230250597, 0.015600133687257767, 0.017949502915143967, 0.033102523535490036, 0.01944529451429844, 0.023705050349235535, 0.014982306398451328, 0.007523670792579651, -0.007271662354469299, -0.03963848575949669, -0.012673584744334221, 0.014462031424045563, 0.023054705932736397, 0.014518936164677143, 0.01094204280525446, 0.002680637873709202, 0.0836993083357811, -0.04750765115022659, -0.032289594411849976, -0.025786152109503746, 0.00965761300176382, 0.013706006109714508, -0.01087700854986906, -0.01155174057930708, 0.004210979212075472, 0.018843725323677063, -0.0032293659169226885, -0.012437834404408932, 0.008608932606875896, -0.012641067616641521, 0.0026399914640933275, 0.001501888851635158, -0.021721499040722847, 0.01555135753005743, 0.0016583779361099005, 0.02594873681664467, -0.03648431599140167, -0.012746748514473438, 0.02663159929215908, -0.005670189391821623, 0.029281752184033394, 0.013071920722723007, 0.02606254816055298, -0.009877104312181473, 0.02570485882461071, -0.036126624792814255, -0.014478289522230625, 0.005942521151155233, -0.024160290136933327, -0.002664379309862852, 0.03133033588528633, 0.029785769060254097, -0.005857163108885288, -0.0064262147061526775, -0.009381216019392014, -0.025217099115252495, -0.031996939331293106, 0.011933817528188229, -0.01616918481886387, 0.008722743019461632, 0.03703710809350014, -0.01296623982489109, -0.010795715264976025, -0.023607498034834862, -0.010462413541972637, 0.026729149743914604, 0.004658090882003307, -0.00011171441292390227, 0.010405508801341057, 0.013380833901464939, 0.01250286865979433, -0.023753825575113297, -0.025135807693004608, -0.010161629877984524, -0.05134468153119087, -0.01926644891500473, -0.018729915842413902, 0.0022883990313857794, -0.011982593685388565, 0.014697780832648277, 0.02077849954366684, -0.016047244891524315, 0.035086072981357574, 0.01628299616277218, 0.004910099320113659, -0.01543754804879427, 0.04809296131134033, -0.02105489745736122, 0.002054681535810232, -0.006483119912445545, -0.03742731362581253, -0.0018138508312404156, 0.007243209518492222, -0.019754208624362946, -0.018811209127306938, 0.011494835838675499, 0.014340091496706009, -0.007393601816147566, 0.05297054350376129, -0.010746939107775688, 0.0008627223432995379, 0.007527735084295273, -0.03170428425073624, 0.016144797205924988, -0.02762337401509285, -0.004406082443892956, -0.016404934227466583, -0.009413734078407288, 0.007483024150133133, -0.006202658638358116, 0.018437260761857033, 0.043377965688705444, -0.0002258422173326835, 0.04002869129180908, -0.002963131293654442, -0.007499282713979483, 0.027005547657608986, 0.01921767368912697, -0.008779647760093212, 0.01793324388563633, -0.015624521300196648, 0.03846786543726921, 0.00818620901554823, 0.00046337032108567655, 0.011055853217840195, -0.0040057143196463585, -0.006194529589265585, 0.009999043308198452, 0.01712031289935112, -0.02084353379905224, 0.013901108875870705, -0.04672723636031151, 0.009438121691346169, -0.022388102486729622, 0.006568477489054203, -0.012933721765875816, -0.015998469665646553, -0.01897379569709301, 0.009860845282673836, 0.015478193759918213, -0.008324407041072845, 0.012429704889655113, -0.03233836963772774, -0.015608263202011585, -0.018583588302135468, 0.013584066182374954, -0.00021314018522389233, -0.020355775952339172, -0.019282707944512367, 0.001021243748255074, 0.0033452084753662348, 0.024127773940563202, 0.025916220620274544, -0.009023526683449745, 0.01687643490731716, 0.003538279328495264, 0.027720926329493523, -0.013884850777685642, -0.010234793648123741, 0.014681522734463215, -0.0038797101005911827, -0.031086457893252373, 0.015868401154875755, 0.007930135354399681, -0.030972646549344063, -0.0022396231070160866, -0.019071346148848534, -0.0011777328327298164, -0.007393601816147566, 0.0009328376036137342, -0.002056713914498687, -0.022794567048549652, 0.027119357138872147, -0.016591908410191536, 0.023412395268678665, 0.025834927335381508, 0.01938026025891304, -0.007710644509643316, 0.018030796200037003, 0.0070155891589820385, 0.0075846402905881405, 0.014949789270758629, -0.010454284958541393, 0.0036947685293853283, -0.03544376417994499, 0.004450793843716383, -0.02999713085591793, 0.0017071537440642715, -0.013966144062578678, 0.030940130352973938, -0.03801262378692627, 0.02285960130393505, 0.002453017281368375, -0.030891353264451027, -0.009820198640227318, -0.0015008726622909307, 0.006771709769964218, -0.03012719936668873, 0.015104246325790882, 0.008308148011565208, 0.003383822739124298, -0.01485223788768053, 0.017738141119480133, 0.011307861655950546, 0.029265493154525757, 0.023574979975819588, 0.0021420714911073446, -0.001266139093786478, 0.020583396777510643, -0.027477046474814415, 0.019071346148848534, -0.018209639936685562, -0.005036103539168835, 0.011120887473225594, 0.011600516736507416, -0.00732856709510088, -0.029281752184033394, 0.002652185270562768, 0.02581866830587387, 0.024794375523924828, 0.038565415889024734, 0.005462891887873411, -0.019412776455283165, 0.0017732044216245413, 0.029899578541517258, 0.007324502803385258, 0.022436877712607384, 0.030858837068080902, -0.005824645981192589, 0.01920141465961933, 0.00578806409612298, 0.032013196498155594, -0.02739575318992138, 0.012909334152936935, 0.00930805318057537, 0.004231302533298731, -0.014982306398451328, 0.004751577973365784, -0.029281752184033394, 0.03180183470249176, 0.03541124612092972, 0.016413064673542976, 0.024696825072169304, -0.020339516922831535, 0.023656273260712624, -0.011267215013504028, -0.04669472202658653, -0.011567999608814716, -0.006519701331853867, 0.036939557641744614, -0.03150917962193489, 0.03833779692649841, -0.021038638427853584, 0.024631790816783905, -0.0010547771817073226, -0.001498840400017798, 0.021380068734288216, -0.015510711818933487, -0.01770562306046486, 0.01520179770886898, -0.0025810538791120052, 0.03433817997574806, -0.008324407041072845, 0.02773718349635601, -0.006373374257236719, -0.015486323274672031, -0.022079188376665115, 0.0021745888516306877, -0.022355584427714348, -0.004954810719937086, 0.006861132103949785, 0.02170524001121521, -0.019461553543806076, 0.007645610254257917, -0.020063120871782303, 0.01612853817641735, 0.001941887428984046, -0.0024265970569103956, 0.007052171044051647, -0.025395944714546204, 0.011844395659863949, -0.0248268935829401, -0.021087413653731346, 0.007304179482161999, 0.00788136012852192, -0.03934583067893982, 0.0007011524285189807, 0.0010283569572493434, 0.013616583310067654, -0.022258033975958824, 0.006556283216923475, 0.028111131861805916, 0.00521088344976306, -0.025460978969931602, 0.007060300093144178, 0.051734887063503265, -0.038045141845941544, 0.005869357381016016, 0.04402830824255943, -0.018941277638077736, -0.0007128383149392903, -0.006068525370210409, -0.007011524401605129, 0.01308817882090807, 0.006499378476291895, -0.01459209993481636], "id": 74}, {"title": "Vonda Ward", "text": "Vonda Ward (born March 16, 1973, Macedonia, Ohio, United States) is an American female boxer who was also a well known NCAA basketball player.", "vector": [0.03396308422088623, 0.02457417920231819, -0.029978083446621895, -0.009539852850139141, -0.03918585181236267, -0.028785601258277893, 0.02391001209616661, -0.011773869395256042, -0.03194039314985275, 0.052227675914764404, -0.060590144246816635, 0.04386521130800247, -0.024000579491257668, -0.008815307170152664, -0.0015094703994691372, 0.004030286334455013, -0.03731410950422287, 0.011071966029703617, -0.012536152265965939, -0.06016749143600464, 0.0044378433376550674, 0.039819829165935516, 0.003256682539358735, -0.031185658648610115, 0.036408428102731705, 0.0006990734837017953, -0.016589080914855003, -0.007826603949069977, 0.014498463831841946, 0.03595558553934097, -0.04978233575820923, -0.010226662270724773, -0.024815693497657776, 0.0055397567339241505, 0.0017943830462172627, -0.008090761490166187, -0.017238153144717216, 0.012875783257186413, 0.007309610489755869, -0.029027117416262627, 0.011909721419215202, -0.022989235818386078, -0.027623308822512627, 0.013328623957931995, 0.0020698613952845335, -0.02899692766368389, -0.002651007380336523, -0.01728343591094017, 0.0195627361536026, -0.022551488131284714, -0.0030264882370829582, -0.027849730104207993, -0.009366264566779137, -0.009690800681710243, 0.04259725660085678, -0.03166868910193443, -0.020257093012332916, 0.05902029573917389, 0.06089203804731369, 0.0064643071964383125, -0.039759453386068344, -0.045253925025463104, -0.027019521221518517, -0.019109895452857018, 0.0358952060341835, 0.032332856208086014, 0.0007943588425405324, 0.07535276561975479, -0.03200077265501022, 0.04084626957774162, 0.006656764540821314, -0.027955392375588417, -0.02022690325975418, -0.02077031321823597, -0.015434334985911846, -0.031517744064331055, -0.005434093531221151, 0.03550274670124054, -0.04301990941166878, -0.009728536941111088, 0.004634074401110411, -0.056635331362485886, -0.003781223436817527, 0.0036529183853417635, 0.01182670146226883, -0.06357889622449875, 0.003075546119362116, -0.0768018588423729, -0.04917854815721512, -0.001853818423114717, 0.017781561240553856, 0.02975166216492653, 0.00612844992429018, 0.03136679530143738, 0.020649556070566177, -0.015577735379338264, -0.021419385448098183, -0.02258167788386345, -0.02425719052553177, 0.04081607982516289, 0.019849536940455437, -0.0044378433376550674, 0.023094898089766502, 0.031125281006097794, 0.020272187888622284, -0.004351048730313778, -0.0484841912984848, 0.008920970372855663, -0.01114743947982788, 0.04160100594162941, 0.030129030346870422, 0.0011792738223448396, -0.019200464710593224, -0.0011009699665009975, 0.026974236592650414, 0.017177773639559746, 0.0060831657610833645, 0.08000193536281586, -0.028378045186400414, -0.010370061732828617, 0.030385639518499374, 0.009796462953090668, -0.00975117925554514, 0.04093683883547783, 0.027110088616609573, -0.01969859004020691, -0.04561619833111763, 0.07142814248800278, -0.036348048597574234, 0.06303548812866211, -0.011305933818221092, 0.01600038632750511, -0.03586501628160477, -0.025011925026774406, -0.019472168758511543, -0.015321125276386738, 0.04972195625305176, 0.010845544748008251, 0.006652990821748972, 0.030370544642210007, 0.037555623799562454, -0.024604368954896927, 0.00025826095952652395, 0.0018962722970172763, -0.009298337623476982, -0.0075020682998001575, 0.00133588130120188, -0.024272285401821136, -0.008928517811000347, -0.0493294931948185, 0.04537468031048775, -0.009932315908372402, 0.046401120722293854, -0.04015191271901131, 0.0032661166042089462, -0.02766859345138073, -0.011373859830200672, -0.0010236096568405628, 0.037827327847480774, 0.008837949484586716, -0.026008175686001778, 0.018204214051365852, -0.01440034806728363, 0.001872686785645783, -0.030370544642210007, 0.03130641579627991, -0.015177725814282894, 0.05769196152687073, -0.015321125276386738, 0.018672149628400803, -0.002418926451355219, 0.03652918338775635, 0.013472023420035839, -0.0010292701190337539, -0.04881627485156059, 0.01954764313995838, 0.04416710510849953, 0.027019521221518517, 0.025087399408221245, -0.011336122639477253, 0.014422990381717682, 0.03532160818576813, 0.0006434117676690221, -0.02606855519115925, -0.03885376825928688, 0.03130641579627991, 0.010875734500586987, -0.024815693497657776, 0.0263251643627882, -0.028106339275836945, 0.044982220977544785, -0.05092953145503998, -0.0012415394885465503, 0.010226662270724773, 0.023487361147999763, -0.015562640503048897, 0.03864244371652603, 0.04495203122496605, 0.0009151164558716118, 0.0167551226913929, -0.014558842405676842, -0.057178739458322525, 0.04015191271901131, 0.009728536941111088, 0.03544236719608307, -0.030702628195285797, -0.024000579491257668, -0.03655937314033508, -0.0020868428982794285, 0.013592781499028206, -0.027547836303710938, -0.023623213171958923, 0.00743414182215929, 0.0007184136193245649, -0.026898764073848724, 0.01796269789338112, -0.029812041670084, -0.039216041564941406, -0.013472023420035839, 0.0007330366061069071, -0.04295952990651131, 0.012755025178194046, -0.0405745655298233, 0.020272187888622284, 0.013245603069663048, 0.02443832717835903, -0.0008382278028875589, 0.005445414688438177, -0.026038365438580513, 0.02010614611208439, -0.0358952060341835, -0.0017000411171466112, 0.027155373245477676, -0.03335929661989212, 0.02579684928059578, -0.015087157487869263, 0.005403904244303703, -0.003756694495677948, -0.04489165171980858, 0.005939766298979521, 0.005211446899920702, 0.016528701409697533, -0.015924913808703423, -0.05065782740712166, -0.023623213171958923, 0.033449865877628326, 0.0053322045132517815, -0.051201239228248596, 0.005834103096276522, 0.001760419923812151, 0.025540240108966827, 0.02009105123579502, -0.026566680520772934, -0.014853189699351788, 0.03864244371652603, 0.007894530892372131, 0.01689097471535206, -0.05754101276397705, 0.00827189814299345, 0.02819690853357315, -0.0670204907655716, -0.04220479354262352, -0.04241611808538437, 0.013698444701731205, -0.007226589601486921, -0.0688922330737114, -0.03994058817625046, -0.01159273274242878, 0.017434382811188698, -0.03885376825928688, -0.03363100066781044, -0.025510050356388092, 0.0010528556304052472, 0.006592612247914076, 0.05002385005354881, -0.011736133135855198, -0.008626624010503292, 0.05929199978709221, 0.017192868515849113, 0.03254418447613716, -0.0020604270976036787, 0.0012641814537346363, 0.008649265393614769, -0.03994058817625046, -0.018672149628400803, -0.01004552561789751, 0.0036812210455536842, 0.028106339275836945, 0.033932894468307495, -0.011955006048083305, 0.002341566141694784, 0.05560889095067978, 0.0031132828444242477, -0.010377609170973301, 0.04821248725056648, 0.01095120795071125, 0.002452889457345009, -0.018943853676319122, 0.010309683158993721, -0.03550274670124054, 0.003462347900494933, -0.019789157435297966, -0.05802404507994652, -0.027547836303710938, -0.03411403298377991, -0.035804640501737595, 0.014045622199773788, -0.006460533477365971, -0.00026628002524375916, -0.013313529081642628, -0.017238153144717216, 0.044650137424468994, 0.027442172169685364, 0.013894675299525261, 0.04084626957774162, 0.022023173049092293, 0.04045380651950836, 0.031849827617406845, -0.01968349516391754, -0.03643861785531044, 0.03381213918328285, 0.037012215703725815, 0.02872522361576557, 0.008822854608297348, -0.02833276055753231, -0.031910207122564316, -0.005883160978555679, 0.0032170589547604322, -0.04794078320264816, 0.0010330438381060958, -0.00793981458991766, 0.0274723619222641, 0.02410624362528324, -0.04555581882596016, 0.00931343249976635, -0.001663247705437243, -0.018596675246953964, -0.010279493406414986, -0.04214441403746605, -0.010581388138234615, -0.00014552238280884922, 0.08664360642433167, -0.003571784356608987, -0.004690679255872965, -0.04458975791931152, -0.039216041564941406, 0.029932798817753792, -0.02270243503153324, -0.041631195694208145, -0.007581315468996763, 0.0006646387046203017, 0.024423232302069664, 0.009494569152593613, 0.04172176495194435, 0.032604560256004333, 0.04688415303826332, -0.008000193163752556, -0.020468419417738914, -0.016362659633159637, -0.03221210092306137, -0.020951449871063232, 0.03698202595114708, -0.03891414776444435, 0.019170274958014488, 0.010566293261945248, -0.05243900418281555, 0.013019182719290257, -0.00034434793633408844, 0.04301990941166878, -0.03652918338775635, 0.002832144033163786, -0.029510147869586945, -0.007456784136593342, -0.030430924147367477, 0.005781271960586309, -0.03511028364300728, -0.03532160818576813, -0.05098991096019745, 0.010422893799841404, 0.0021151455584913492, -0.03511028364300728, 0.06756389886140823, -0.055639080703258514, -0.040302861481904984, -0.006732237990945578, 0.016438134014606476, 0.017706088721752167, 0.02324584499001503, 0.01968349516391754, -0.04449918866157532, 0.022536393254995346, 0.046250175684690475, -0.013124845921993256, -0.017902320250868797, 0.050204988569021225, -0.004803889896720648, -2.8081456093786983e-06, 0.018038172274827957, -0.043804831802845, 0.0028736544772982597, 0.00299629895016551, -0.04419729486107826, 0.0010122886160388589, -0.0038566971197724342, 0.006803938187658787, 0.0001058398192981258, -0.021751469001173973, -0.046189796179533005, 0.01035496685653925, 0.028438422828912735, 0.012679551728069782, -0.005452962126582861, -0.05412961170077324, -0.018657054752111435, 0.022415636107325554, -0.012724836356937885, 0.04763888567686081, 4.823229755857028e-05, -0.032846078276634216, 0.011434238404035568, 0.0012481433805078268, 0.0036604658234864473, 0.0661751851439476, -0.005815234966576099, 0.02277790941298008, 0.0023453396279364824, -0.053495634347200394, 0.019668400287628174, -0.0577523410320282, 0.06744313985109329, 0.020664650946855545, -0.04051418602466583, 0.017162678763270378, 0.044982220977544785, 0.006241660099476576, -0.04359350726008415, -0.06418268382549286, 0.015849439427256584, 0.032604560256004333, 0.0029434673488140106, 0.0065322332084178925, 0.01061912439763546, 0.00846812967211008, -0.02135900780558586, -0.04917854815721512, 0.016921164467930794, -0.006494496483355761, 0.003075546119362116, 0.029042212292551994, 0.0014896586071699858, -0.014815452508628368, -0.016438134014606476, 0.005260504316538572, 0.018657054752111435, -0.006419023033231497, 0.04594828188419342, 0.02452889457345009, 0.010890829376876354, -0.01225689984858036, 0.018053267151117325, -0.017509857192635536, -0.003526500426232815, -0.002371755428612232, -0.0020547667518258095, -0.03852168470621109, 0.03462725132703781, -0.022626962512731552, -0.06351851671934128, -0.02546476572751999, -0.047669075429439545, 0.061133552342653275, -0.014347516931593418, -0.01034742034971714, 0.04292934015393257, 0.024755315855145454, 0.018189119175076485, 0.0745074599981308, 0.006505817640572786, 0.0058756135404109955, 0.011328576132655144, 0.023547738790512085, -9.646459511714056e-05, 0.010060620494186878, 0.03139698505401611, 0.02618931233882904, -0.036136724054813385, -0.04172176495194435, -0.014226758852601051, 0.029796946793794632, 0.007219042629003525, -0.0017123055877164006, 0.047336991876363754, -0.028091244399547577, 0.04066513478755951, 0.001433053519576788, 0.006185055244714022, 0.005045405123382807, -0.03598577529191971, 0.040695324540138245, 0.030249787494540215, 0.06394116580486298, 0.02733650989830494, 0.021525049582123756, -0.014694694429636002, -0.0011292726267129183, 0.0027604440692812204, 0.031729068607091904, 0.004283122252672911, 0.028091244399547577, -0.0073926313780248165, 0.002381189726293087, 0.07607731223106384, -0.016302280128002167, 0.0105889355763793, -0.016966447234153748, -0.033932894468307495, 0.00981910526752472, -0.01814383454620838, 0.04401616007089615, -0.005094463005661964, 0.04024248197674751, 0.03858206421136856, -0.03438573703169823, 0.014302232302725315, 0.006369965150952339, 0.002579307649284601, -0.025208156555891037, 0.008581339381635189, -0.00144060084130615, -0.009826652705669403, -0.011766321957111359, -0.004366143140941858, -0.006728464737534523, -0.02685347944498062, 0.018475918099284172, 0.04039343073964119, 0.016392849385738373, 0.005592587869614363, 0.015623019076883793, -0.009600232355296612, 0.01172103825956583, -0.011758774518966675, 0.01882309652864933, -0.013238055631518364, -0.026898764073848724, -0.0372537299990654, -0.01138895470649004, -0.02471003122627735, -0.002581194508820772, -0.016045670956373215, -0.00183306320104748, 0.0023510002065449953, -0.030325261875987053, -0.0138644864782691, 0.027683688327670097, -0.03456687182188034, -0.0037925445940345526, 0.015894724056124687, 0.035744260996580124, -0.028438422828912735, 0.012732382863759995, -0.010521008633077145, -0.0011839908547699451, 0.007547352463006973, -0.024604368954896927, 0.008370013907551765, 0.008626624010503292, 0.03209134191274643, -0.014649410732090473, 0.017177773639559746, 0.012536152265965939, -0.0017198529094457626, 0.02303451858460903, -0.022732624784111977, 0.010981397703289986, 0.0010075715836137533, -0.0021113718394190073, 0.015562640503048897, 0.012453131377696991, 0.019109895452857018, -0.011026681400835514, -0.021253343671560287, 0.005490698851644993, -0.031246038153767586, 0.0016321148723363876, 0.0029981855768710375, 0.006543554365634918, 0.011343670077621937, -0.03489895537495613, -0.021721279248595238, -0.009328527376055717, -0.016785310581326485, -0.0014877718640491366, -0.01640794426202774, 0.02525344118475914, -0.021660901606082916, -0.022400541231036186, 0.005739761516451836, 0.03323853760957718, 0.018672149628400803, -0.02766859345138073, 0.0031868694350123405, 0.023608118295669556, -0.016423039138317108, -0.03411403298377991, -0.002900070045143366, 0.0097813680768013, -0.0029472410678863525, -0.019849536940455437, -0.0007155833300203085, -0.002134013921022415, -0.0531635507941246, 0.01105687115341425, 0.0009047388448379934, -0.022611867636442184, -0.01534376759082079, 0.019804252311587334, -0.004671811126172543, 0.04238593205809593, 0.020619366317987442, 0.02410624362528324, -0.005249183624982834, -0.034264978021383286, -0.03988020867109299, -0.005147294141352177, -0.003447253257036209, -0.03592539578676224, -0.026113837957382202, -0.02022690325975418, 0.005766177084296942, 0.008083214052021503, -0.020845787599682808, 0.011471975594758987, 0.01962311565876007, -0.04033305123448372, 0.000881153391674161, 0.032513994723558426, -0.0749301165342331, 0.0047699264250695705, -0.04084626957774162, 0.015253199264407158, 0.04386521130800247, 0.02759311906993389, -0.021449575200676918, -0.0219024159014225, -0.01566830277442932, 0.029449768364429474, -0.013472023420035839, 0.012543699704110622, 0.02431756816804409, -0.009736084379255772, 0.0072945160791277885, -0.020060861483216286, -0.018913663923740387, 0.021147681400179863, -0.03348005563020706, -0.002581194508820772, -0.0064680809155106544, -0.02612893283367157, -0.03604615479707718, 0.015449429862201214, -0.01607586070895195, -0.006109581794589758, 0.01393241249024868, -0.0045321849174797535, -0.037404678761959076, -0.04305009916424751, 0.032181911170482635, -0.0035623502917587757, -0.0017406081315129995, -0.0045019956305623055, 0.0073284790851175785, 0.007003942970186472, -0.05325411632657051, 0.001417958759702742, -0.03160830959677696, -0.03323853760957718, 0.032936643809080124, -0.001665134564973414, -0.06315624713897705, 0.01707211136817932, 0.03592539578676224, -0.0038755654823035, 0.0396386943757534, 0.01903442293405533, -0.009902126155793667, 0.00449067447334528, -0.0031623404938727617, -0.006652990821748972, 0.03658956289291382, -0.0404839962720871, -0.002226468874141574, 0.043774642050266266, 0.04582752287387848, -0.0006325624417513609, 0.03897452726960182, 0.023291129618883133, -0.016438134014606476, 0.0031283774878829718, 0.018808001652359962, -0.004449164029210806, 0.030778102576732635, -0.03142717480659485, 0.006924695800989866, -0.017298530787229538, -0.0038397153839468956, 0.01530603040009737, 0.009517211467027664, -0.01936650648713112, -0.028227098286151886, -0.010075715370476246, 0.012166331522166729, -0.024211905896663666, -0.0035944264382123947, -0.013947507366538048, -0.014672053046524525, 0.06155620515346527, 0.01815892942249775, -0.032181911170482635, -0.012528604827821255, 0.021389195695519447, 0.02410624362528324, 0.027653498575091362, 0.01126064918935299, -0.029434673488140106, 0.003262343117967248, -0.03088376484811306, 0.02116277627646923, 0.055035293102264404, 0.014679600484669209, -0.02679309993982315, -0.01132102869451046, 0.005464282818138599, -0.016513606533408165, 0.04332180321216583, 0.028891265392303467, -0.025434577837586403, -0.013592781499028206, 0.019849536940455437, 0.021343912929296494, 0.004845400340855122, 0.0340234637260437, -0.010664409026503563, -0.03571407124400139, -0.013683349825441837, 0.02680819481611252, 0.0605599544942379, 0.0006731294561177492, -0.0563938170671463, -0.03094414435327053, 0.010875734500586987, 0.011373859830200672, -0.007577541749924421, -0.029661094769835472, -0.008800212293863297, -0.01443808525800705, -0.036348048597574234, 0.03474801033735275, 0.01001533679664135, -0.05376733839511871, 0.010271945968270302, -0.0008556810789741576, 0.007373763248324394, -0.0064643071964383125, 0.008694550022482872, -0.03843111917376518, 0.0031736616510897875, -0.017841940745711327, -0.0010075715836137533, 0.01114743947982788, -0.018249498680233955, -0.04072551429271698, -0.016906069591641426, -0.021947700530290604, 0.008800212293863297, -0.0022340163122862577, -0.0047737001441419125, -0.0022698661778122187, 0.050416313111782074, -0.006120902486145496, -0.05633343756198883, 0.004939741920679808, -0.04066513478755951, -0.025494955480098724, -0.014392800629138947, -0.040302861481904984, 0.06333737820386887, 0.046461500227451324, -0.06424306333065033, 0.003992549143731594, 0.004618979524821043, 0.0016689082840457559, -0.03637823835015297, -0.0782509446144104, 0.004600111395120621, 0.007011490408331156, 0.004777473863214254, -0.011758774518966675, 0.026747817173600197, -0.02700442634522915, 0.008120951242744923, -0.007324705366045237, -0.048061538487672806, 0.010211567394435406, 0.004894457757472992, -0.01061912439763546, -0.010604029521346092, -0.013034277595579624, -0.020860882475972176, 0.025011925026774406, 0.06466571241617203, 0.004124627914279699, -0.006656764540821314, 0.01568339765071869, -0.02988751418888569, 0.01262672059237957, -0.01523810438811779, -0.038280170410871506, 0.01628718711435795, -0.0661751851439476, -0.012438036501407623, 0.02150995470583439, 8.001372771104798e-05, 0.000380669574951753, -0.026491206139326096, -0.06376003473997116, 0.015192819759249687, 0.0031944168731570244, 0.02794029749929905, -0.03302721306681633, -0.043804831802845, 0.015192819759249687, -0.009856842458248138, -0.028438422828912735, -0.030491303652524948, 0.023940201848745346, -0.015698492527008057, 0.013638065196573734, 0.007064321544021368, 0.015894724056124687, -0.004539732355624437, -0.03508009389042854, 0.026687437668442726, -0.008792665787041187, 0.012988992966711521, -0.028091244399547577, 0.020679745823144913, -0.07142814248800278, -0.005162389017641544, -0.019200464710593224, 0.01121536549180746, 0.013758823275566101, -0.010249304585158825, 0.0012792762136086822, -0.011502164416015148, 0.006728464737534523, 0.0027774255722761154, 0.003484989982098341, 0.008188877254724503, 0.014287137426435947, 0.008483223617076874, 0.010105905123054981, 0.0023377924226224422, -0.034536685794591904, 0.005434093531221151, 0.005524661857634783, 0.0188834760338068, -0.029042212292551994, 0.007143568713217974, -0.01473243162035942, 0.007275647483766079, 0.010649314150214195, -0.003466121619567275, -0.010339872911572456, -0.028589369729161263, -0.0009042671299539506, -0.009539852850139141, 0.02692895196378231, 0.014121095649898052, 0.0387028232216835, -0.029238441959023476, 0.0012877669651061296, -0.02612893283367157, 0.03894433751702309, 0.023291129618883133, 0.006652990821748972, -0.020679745823144913, -0.012943709269165993, -0.03341967612504959, 0.015117346309125423, 0.014347516931593418, 0.004751058295369148, 0.023426981642842293, 0.03287626802921295, -0.01835516095161438, 0.026204407215118408, 0.012687099166214466, -0.020392945036292076, -0.01360032893717289, 0.002435907954350114, -0.0037887708749622107, -0.01889857091009617, -0.029842231422662735, 0.025887418538331985, -0.007977551780641079, -0.016845690086483955, 0.010128546506166458, 0.026445921510457993, -0.015079610049724579, 0.009698348119854927, -0.0277289729565382, -0.01969859004020691, -0.003683107905089855, 0.0288761705160141, -0.01302673015743494, 0.02149485982954502, 0.03719335049390793, 0.016392849385738373, 0.04305009916424751, -0.013645612634718418, -0.0036415974609553814, -0.027879919856786728, -0.03154793381690979, -0.04540487006306648, -0.007351120933890343, 0.008211519569158554, -0.036015965044498444, 0.008988896384835243, -0.009268148802220821, 0.0002724122314248234, -0.00048137956764549017, 0.00997759960591793, -0.005566172301769257, 0.0009155881707556546, 0.014611673541367054, 0.041299112141132355, -0.0016123030800372362, -5.993659215164371e-05, 0.037012215703725815, -0.018838191404938698, -0.0012688986025750637, -0.030717723071575165, 0.0035906529519706964, 0.016860784962773323, 0.001996274571865797, 0.003141585271805525, 0.059624083340168, -0.02143448032438755, 0.05458245053887367, 0.015351314097642899, 0.02605346031486988, 0.012151237577199936, -0.015102251432836056, 0.006841674912720919, 0.004396332893520594, 0.040423620492219925, -0.010581388138234615, 0.014362611807882786, -0.03320835158228874, 0.019940104335546494, 0.041842520236968994, -0.00913984328508377, -0.0025208157021552324, -0.015381503850221634, -0.05434093624353409, 0.023064708337187767, 0.045857712626457214, -0.03139698505401611, -0.027970487251877785, -0.0010490819113329053, 0.01849101297557354, 0.0022698661778122187, -0.014422990381717682, 0.05874859169125557, -0.010966302827000618, -0.007411499973386526, 0.005505793262273073, 0.013992791064083576, 0.05376733839511871, 0.01802307739853859, 0.017177773639559746, -0.009856842458248138, -0.0034548004623502493, 0.03867263346910477, -0.01788722537457943, 0.014656958170235157, -0.021675996482372284, 0.03242342546582222, -0.04308028519153595, -0.0030057330150157213, -0.036015965044498444, -0.007309610489755869, 0.014445632696151733, 0.006328454706817865, -0.007705846801400185, 0.03924623131752014, 0.006490722764283419, -0.03006865084171295, -0.012151237577199936, -0.024619463831186295, -0.034325357526540756, 0.02178165875375271, -0.009562495164573193, 0.022491110488772392, -0.043804831802845, 0.014339969493448734, 0.015970196574926376, 0.03556312248110771, -0.008520960807800293, 0.03474801033735275, -0.010905924253165722, 0.05117104947566986, 0.02665724791586399, 0.048665326088666916, -0.009954957291483879, -0.02806105650961399, 0.020649556070566177, 0.009003991261124611, 0.017464572563767433, 0.03885376825928688, 0.04561619833111763, 0.0059888241812586784, -0.0005141633446328342, 0.0475483201444149, -0.007490747142583132, 0.003943491727113724, -0.0007622825796715915, -0.008694550022482872, 0.030657345429062843, -0.007256779354065657, 0.02116277627646923, -0.01126064918935299, 0.0004290197975933552, -0.01763061434030533, 0.018038172274827957, 0.017781561240553856, -0.0031321512069553137, 0.04688415303826332, -0.03858206421136856, -0.0013519194908440113, -0.00285478588193655, 0.018128739669919014, -0.005645419470965862, 0.001945330062881112, -0.011336122639477253, 0.002430247375741601, -0.01269464660435915, 0.0016509833512827754, 0.009162485599517822, -0.0022566583938896656, 0.0209665447473526, 0.03568388149142265, 0.004728415980935097, -0.0009033237001858652, 0.0072945160791277885, -0.038340549916028976, -0.014362611807882786, 0.009554947726428509, -0.01477016881108284, 0.02264205738902092, 0.014943757094442844, -0.025887418538331985, 0.030913954600691795, -0.056816466152668, 0.0027415757067501545, -0.018641959875822067, -0.03988020867109299, -0.03894433751702309, -0.002652894239872694, -0.022023173049092293, 0.0174796674400568, -0.015049420297145844, -0.017917415127158165, 0.0076039573177695274, -0.01781175099313259, -0.025600619614124298, 0.027985582128167152, -0.008400202728807926, -0.00023880293883848935, -0.011917268857359886, -0.0072982897982001305, 0.011736133135855198, -0.011426690965890884, -0.013683349825441837, -0.033057402819395065, 0.03317816182971001, 0.013751275837421417, -0.00910965446382761, 0.03791789710521698, -0.033449865877628326, -0.011411597020924091, -0.03417441248893738, 0.0363178588449955, -0.03568388149142265, -0.005347298923879862, -0.05219748988747597, -0.024815693497657776, 0.00010890593694057316, 0.005566172301769257, 0.020468419417738914, 0.03423478826880455, -0.03559331223368645, -0.04851438105106354, -0.01607586070895195, 0.03269512951374054, 0.010792713612318039, 0.000763226009439677, 0.017268342897295952, 0.008830402046442032, -0.009947409853339195, 0.0009651176515035331, 0.014913568273186684, -0.020951449871063232, 0.013781465590000153, 0.01983444206416607, 0.007803962100297213, 0.0009868163615465164, 0.006490722764283419, 0.007962456904351711, -0.015773966908454895, -0.02860446460545063, -0.03127622604370117, 0.004879363346844912, 0.014694694429636002, -0.016785310581326485, -0.0011670093517750502, -0.02010614611208439, 0.027547836303710938, -0.006177507806569338, 0.004830305464565754, -0.008219067007303238, -0.023336412385106087, -0.030506398528814316, 0.007173758465796709, 0.00039859453681856394, -0.016498511657118797, 0.0003502443141769618, -0.0353819876909256, 0.0104832723736763, -0.02425719052553177, 0.0064643071964383125, -0.06738276034593582, 0.03501971438527107, -0.009464379400014877, 0.01477016881108284, 0.01453620009124279, 0.03480838984251022, 0.036800891160964966, -0.012551247142255306, 0.016996636986732483, -0.020377852022647858, -0.012905972078442574, -0.01523810438811779, -0.0034151768777519464, 0.03203096240758896, -0.029766757041215897, -0.006264302413910627, 0.003294419264420867, -0.01067950390279293, -0.02024199813604355, -0.021268438547849655, 0.011170081794261932, -0.021600522100925446, 0.018385350704193115, -0.01708720624446869, 0.004505769349634647, 0.004664263688027859, -0.030868669971823692, 0.01687587983906269, 0.02874031662940979, 0.021660901606082916, -0.005890708416700363, -0.03236304596066475, 0.014445632696151733, 0.023396791890263557, -0.0014660732122138143, 0.008098308928310871, -0.01954764313995838, 0.024679841473698616, -0.008792665787041187, -0.022460920736193657, 0.011290838941931725, 0.02874031662940979, -0.0251326821744442, 0.01182670146226883, 0.03867263346910477, 0.0018085342599079013, -0.033057402819395065, 0.02794029749929905, -0.006105808075517416, -0.03991039842367172, -0.003503858344629407, -0.03559331223368645, 0.012166331522166729, 0.035804640501737595, -0.0014396574115380645, -0.0006561479531228542, -0.005713345482945442, -0.043231233954429626, -0.01640794426202774, 0.005181257147341967, -0.05458245053887367, 0.025751566514372826, -0.005883160978555679, 0.0027057258412241936, -0.019592925906181335, -0.001998161431401968, -0.01196255348622799, -0.02083069272339344, -3.6822824768023565e-05, -0.014113549143075943, -0.01674002781510353, 0.0019396694842725992, 0.009366264566779137, -0.0165437962859869, -0.022959046065807343, -0.03296683356165886, 0.014634315855801105, 0.014309779740869999, 0.037555623799562454, 0.0030981882009655237, 0.01621171273291111, 0.01962311565876007, -0.01674002781510353, -0.007441689260303974, -0.010279493406414986, 0.010226662270724773, 0.006373738870024681, -0.011034228838980198, -0.00820397213101387, 0.02807614952325821, -0.022476015612483025, -0.0015273954486474395, -0.008241708390414715, 0.01868724450469017, -0.01119272317737341, -0.007309610489755869, 0.005958634428679943, 0.0019396694842725992, -0.006905827205628157, -0.020815597847104073, -0.01835516095161438, 0.004471806343644857, 0.01473243162035942, 0.007222816348075867, -0.0018047606572508812, -0.016226807609200478, 0.0032019643113017082, -0.001762306783348322, -0.02899692766368389, 0.008460582233965397, -0.0207099337130785, 0.009094559587538242, -0.028438422828912735, 0.012973898090422153, 0.017736278474330902, 0.025027019903063774, 0.014807905070483685, -0.04549543932080269, -0.0003110924153588712, -0.009856842458248138, -0.028121434152126312, 0.024211905896663666, 0.027110088616609573, 0.029253536835312843, -0.01504187285900116, -0.03658956289291382, -0.0051246522925794125, -0.027638403698801994, -0.01443808525800705, -0.0011500278487801552, 0.02110239677131176, -0.0531635507941246, 0.02069484069943428, 0.004132175352424383, 0.01714758388698101, -0.015834344550967216, -0.01566830277442932, -0.0027585572097450495, 0.005290694069117308, -0.010890829376876354, 0.0138644864782691, 0.02671762742102146, -0.017102301120758057, 0.019004233181476593, 0.034868765622377396, 0.02271752990782261, -0.022143932059407234, -0.03562350198626518, 0.00837756134569645, -0.024483609944581985, 0.019713684916496277, 0.0066416701301932335, -0.018611770123243332, 0.025268536061048508, 0.01968349516391754, -0.015094704926013947, -0.008883233182132244, -0.005335978232324123, 0.009585137479007244, -0.021811848506331444, 0.007894530892372131, -0.03692164644598961, -0.0335102453827858, 0.005041631404310465, 0.00752093642950058, 0.012075763195753098, -0.015894724056124687, -0.01640794426202774, 0.03435554727911949, -0.05455226078629494, -0.01707211136817932, -0.03936699032783508, 0.015139988623559475, 0.016166428104043007, 0.013373908586800098, -0.024227000772953033, -0.010143641382455826, 0.025827039033174515, -0.014943757094442844, -0.04452937841415405, -0.047186046838760376, -0.02143448032438755, 0.004283122252672911, -0.005049178842455149, 0.01044553518295288, 0.016045670956373215, 0.018234403803944588, -0.01720796339213848, 0.01580415479838848, 0.02137410081923008, 0.01708720624446869, -0.04320104420185089, -0.00968325324356556, 0.029253536835312843, -0.008988896384835243, -0.049540821462869644, -0.0004202931886538863, 0.0027396888472139835, -0.014241853728890419, -0.022415636107325554, -0.02203826792538166, -0.00017547594325151294, -6.574451163032791e-06, 0.020528798922896385, -0.0027170467656105757, 0.013683349825441837, 0.01092101912945509, -0.025102494284510612, 0.0014811678556725383, -0.0358952060341835, 0.012604078277945518, -0.03314797207713127, -0.016845690086483955, 0.008173782378435135, 0.003279324620962143, -0.0251779668033123, -0.05403904244303703, -0.03616691380739212, 0.027623308822512627, -0.0006481288583017886, 0.02392510697245598, 0.005588814150542021, -0.02143448032438755, 0.03136679530143738, 0.008053025230765343, 0.0040529281832277775, -0.009524758905172348, -0.010309683158993721, 0.0023264712654054165, -0.007271873764693737, -0.0009764386923052371, -0.013434287160634995, -0.0027359151281416416, -0.023940201848745346, 0.02135900780558586, -0.0018585354555398226, -0.006871864199638367, -0.031578123569488525, -0.014906020835042, -0.008762476034462452, -0.011630469933152199, 0.0021415611263364553, 0.015487167052924633, 0.0122267110273242, 0.0015594717115163803, -0.01366825494915247, -0.01989481970667839, 0.013751275837421417, -0.013509760610759258, 0.0030246013775467873, -0.04398597031831741, -0.043502938002347946, 0.004286895971745253, 0.0022925082594156265, -0.009222864173352718, 0.008920970372855663, 0.02412133850157261, 0.016332469880580902, -0.003468008479103446, -0.018657054752111435, -0.005060499534010887, 0.003486876841634512, 0.018234403803944588, 0.008588886819779873, 0.018007982522249222, -0.005792592652142048, 0.004535958636552095, 0.011079513467848301, 0.010702145285904408, -0.013004087843000889, 0.027245942503213882, 0.05098991096019745, -0.021660901606082916, 0.03154793381690979, -0.016845690086483955, 0.042899150401353836, -0.019879726693034172, -0.019925009459257126, 0.037555623799562454, -0.017162678763270378, -0.02237035147845745, 0.02566099725663662, -0.006154865957796574, -0.003301966702565551, -0.02069484069943428, 0.014815452508628368, 0.00891342293471098, -0.023200560361146927, 0.013509760610759258, -0.018521202728152275, -0.008792665787041187, 0.013939959928393364, -0.004275575280189514, -0.007026584818959236, -0.014853189699351788, 0.025600619614124298, -0.008120951242744923, 0.041359491646289825, -0.010800261050462723, 0.006577517371624708, -0.014551294967532158, 0.017057016491889954, 0.01470978930592537, -0.014241853728890419, 0.0131625821813941, -0.010566293261945248, -0.0006622801884077489, -0.0484841912984848, -0.03236304596066475, -0.008905875496566296, -0.033932894468307495, -0.05002385005354881, -0.030974334105849266, 0.009419095702469349, 0.026944046840071678, 0.016966447234153748, 0.012400299310684204, 0.012075763195753098, -0.025268536061048508, -0.03188001736998558, 0.026113837957382202, -0.006309586577117443, -0.0013707878533750772, -0.023864727467298508, 0.01829478144645691, -0.04730680584907532, -0.0052189938724040985, 0.015547545626759529, 0.02511758916079998, 0.007962456904351711, -0.013147487305104733, -0.037404678761959076, 0.005109557416290045, 0.008611529134213924, 0.006279397290199995, -0.01587962917983532, -0.02827238105237484, -0.0221137423068285, -0.01997029408812523, -0.013034277595579624, -0.004030286334455013, -0.006426570471376181, -0.006834127474576235, 0.0125663410872221, 0.052559759467840195, 0.016256997361779213, 0.028710128739476204, -0.020453324541449547, 0.020619366317987442, -0.0009047388448379934, -0.001107573974877596, 0.02867993898689747, 0.03803865611553192, 0.012271994724869728, 0.01450601126998663, 0.04461994767189026, 0.03891414776444435, 0.014543747529387474, 0.048001158982515335, 0.016589080914855003, -0.0069473376497626305, -0.03435554727911949, -0.0036019738763570786, 0.010898376815021038, 0.027713878080248833, -0.056363627314567566, 0.024423232302069664, 0.006569969933480024, -0.0005995428073219955, 0.047336991876363754, -0.015502261929214, 5.1298411563038826e-05, -0.017781561240553856, 0.0377669520676136, -0.032453615218400955, 0.0165437962859869, -0.012747477740049362, -0.019140085205435753, 0.01963821053504944, 4.2276966269128025e-05, 0.008573791943490505, -0.012158784084022045, -0.016453227028250694, 0.033661190420389175, 0.011268196627497673, 0.020755218341946602, -0.015260746702551842, -0.04160100594162941, -0.005792592652142048, -0.015253199264407158, -0.06273359060287476, 0.034536685794591904, 0.008988896384835243, 0.02913277968764305, -0.016332469880580902], "id": 75}, {"title": "List of flora of the Sonoran Desert Region by common name", "text": "The Sonoran Desert is located in the southwestern United States and northwestern Mexico in North America.The Sonoran Desert Region, as defined by the Arizona-Sonora Desert Museum, includes the Sonoran Desert and some surrounding areas. All of Sonora, the Baja California Peninsula, and the islands of the Gulf of California are included.", "vector": [0.07355865836143494, 0.03149097412824631, -0.017765160650014877, -0.003800176316872239, 0.02606974169611931, -0.06207840517163277, 0.028062840923666954, -0.048791076987981796, -0.028142565861344337, 0.046080462634563446, -0.083125539124012, 0.007553847040981054, 0.0014533017529174685, 0.0022588460706174374, -0.00465388735756278, 0.041084423661231995, -0.005584000609815121, 0.016556013375520706, 0.03313860297203064, 0.05104992166161537, 0.013081376440823078, 0.01733996532857418, 0.027531348168849945, 0.005813207011669874, 0.015652474015951157, 0.06627720594406128, -0.04695742577314377, -0.016290266066789627, -0.04669167846441269, -0.024594847112894058, 0.011108207516372204, -0.03675275668501854, 0.03816121071577072, 0.061972107738256454, -0.011387242004275322, 0.027664221823215485, -0.003411521902307868, 0.009938922710716724, 0.005849746987223625, 0.03106577694416046, -0.00308432150632143, -0.04913654550909996, 0.04477830231189728, -0.014310454949736595, -0.0012323998380452394, -0.03313860297203064, -0.015054545365273952, 0.02386404573917389, -0.00542123056948185, 0.028966380283236504, -0.00850389152765274, -0.005039219744503498, -0.057188667356967926, 0.015240567736327648, -0.003634084714576602, 0.037071652710437775, 0.0352911502122879, 0.11533402651548386, -0.04360901564359665, -0.0481267087161541, -0.023717883974313736, 0.02390390634536743, 0.07345236092805862, 0.008198282681405544, 0.008012260310351849, 0.001493163756094873, 0.003165706293657422, -0.01787145808339119, -0.021233152598142624, 0.0108424611389637, -0.004813335370272398, 0.025325650349259377, -0.035530321300029755, 0.008045478723943233, -0.022149980068206787, 0.06978505849838257, -0.011241081170737743, 0.015878358855843544, -0.005069116596132517, -0.015413302928209305, 0.0036839123349636793, -0.01583849824965, 0.024249376729130745, 0.02976362034678459, -0.022149980068206787, 0.019625386223196983, 0.01206489559262991, -0.0438481904566288, -0.0035942227113991976, -0.02335912548005581, -0.005726839415729046, 0.008988878689706326, -0.006311481818556786, -0.006075631827116013, 0.031809866428375244, 0.059899285435676575, 0.028089415282011032, 0.013579651713371277, 0.018190354108810425, 0.006308159790933132, -0.031650420278310776, -0.022216415032744408, -0.03093290515244007, 0.02335912548005581, -0.0047967261634767056, 0.015227280557155609, 0.051501691341400146, 0.013134526088833809, -0.041562769562006, -0.008258075453341007, -0.0025428629014641047, -0.01991770789027214, 0.0058763218112289906, -0.008291293866932392, -0.026335489004850388, -0.01516084372997284, -0.01606438122689724, -0.0021126854699105024, -0.062237855046987534, 0.01561261247843504, 0.02102055586874485, -0.005879643373191357, 0.01710079424083233, 0.01118128839880228, -0.025485098361968994, 0.005617219023406506, 0.03162384405732155, 0.013347122818231583, 0.0420411117374897, 0.0037603143136948347, 0.04217398539185524, 0.02787681855261326, 0.0642043799161911, -0.008796212263405323, -0.03885215148329735, -0.003154079895466566, -0.0027471554931253195, 0.04355586692690849, 0.01914704218506813, 0.03316517546772957, -0.014111144468188286, 0.01327404286712408, 0.007381111849099398, 0.03933049738407135, 0.0046206689439713955, -0.06340713798999786, -0.0737181082367897, 0.05851740017533302, 0.01874842308461666, -0.03199589252471924, -0.00995885394513607, 0.0352911502122879, 0.08397592604160309, -0.015041257254779339, 0.049694616347551346, 0.005956045817583799, -0.0012664486421272159, -0.04220056161284447, 0.08163735270500183, 0.010098370723426342, 0.030507709830999374, 0.061068568378686905, -0.011599838733673096, -0.017618998885154724, -0.0025926902890205383, -0.0601118803024292, -0.020661799237132072, 0.002860097913071513, 0.014934958890080452, 0.006088919006288052, 0.060537077486515045, 0.03877243027091026, -0.044804878532886505, 0.022880783304572105, 0.005142196547240019, -0.048791076987981796, 0.006889480631798506, -0.0034580277279019356, -0.04036691039800644, -0.015320291742682457, 0.010510277934372425, -0.02516620233654976, 0.06500162184238434, -0.007361181080341339, -0.021299589425325394, 0.03587578982114792, -0.03483938053250313, 0.03866612911224365, 0.010350829921662807, 0.030507709830999374, -0.014137718826532364, -0.001380221452564001, -0.015386728569865227, -0.042227134108543396, 0.037603143602609634, -0.005142196547240019, 0.009068602696061134, 0.024275952950119972, 0.012556526809930801, -0.005461092572659254, 0.002906603505834937, -0.03754999488592148, 0.022947218269109726, 0.06138746440410614, 0.029843343421816826, 0.040552932769060135, -0.004062601365149021, -0.019266627728939056, -0.011872229166328907, 0.05027925595641136, 0.006457642652094364, -0.004949530586600304, -0.03279313072562218, -0.0011742678470909595, -0.004906346555799246, 0.011274299584329128, -0.011606482788920403, -0.0395696684718132, -0.0070289974100887775, -0.012596389278769493, 0.042227134108543396, -0.015572750940918922, -0.018549112603068352, 0.002806948497891426, -0.010450485162436962, -0.011553333140909672, -0.019027456641197205, 0.02747819945216179, -0.015679050236940384, -0.01740640215575695, -0.009918991476297379, -0.07254882156848907, 0.00728810066357255, 0.02346542477607727, -0.04305094853043556, 0.029816769063472748, 0.05612568184733391, -0.03032168745994568, 0.00512226577848196, 0.00537140341475606, -0.02747819945216179, -0.0037237743381410837, -0.02507319115102291, -0.007839525118470192, 0.04034033417701721, 0.012197769246995449, -0.0035277861170470715, -0.020741522312164307, 0.04690427705645561, 0.05200660973787308, -0.024541698396205902, -0.005231886170804501, -0.016675598919391632, 0.03082660585641861, -0.02888665534555912, -0.06792483478784561, 0.005783310625702143, 0.0018020941643044353, 0.022415725514292717, -0.003288614097982645, 0.0016210542526096106, 0.010822530835866928, 0.01753927581012249, -0.036035239696502686, -0.022840920835733414, -0.005982620175927877, 0.019691823050379753, 0.005919505376368761, -0.02222970314323902, -0.015971370041370392, -0.00960673950612545, -0.027265600860118866, -0.0026391958817839622, 0.019426075741648674, 0.0407123789191246, 0.06160006299614906, 0.06659609824419022, 0.03327147290110588, 0.02593686804175377, 0.007872743532061577, 0.01820364221930504, -0.01844281330704689, 0.010869036428630352, -0.03906475007534027, -0.0239703431725502, 0.03173014521598816, -0.017725298181176186, 0.0039396933279931545, 0.0019349674694240093, -0.014589488506317139, -0.02785024419426918, -0.005494310986250639, 0.04799383506178856, -0.011094920337200165, 0.06462957710027695, 0.030773457139730453, -0.008105271495878696, -0.014735649339854717, -0.05585993453860283, 0.027172589674592018, -0.0020313006825745106, 0.0013719168491661549, -0.008311225101351738, 0.03417501226067543, 0.05793276056647301, 0.057720161974430084, -0.034493908286094666, 0.02888665534555912, -0.05019953474402428, -0.017592424526810646, -0.05349479243159294, -0.032181914895772934, 0.019798122346401215, -0.01067637000232935, 0.002918229904025793, -0.02624247781932354, 0.03361694514751434, -0.027823669835925102, -0.018761709332466125, -0.016688887029886246, 0.00925462506711483, -0.053813688457012177, 0.005351472180336714, -0.02038276381790638, 0.02747819945216179, 0.03454705700278282, -0.022880783304572105, 0.018469389528036118, -0.020236603915691376, -0.030002791434526443, 3.122003545286134e-05, -0.03970254212617874, 0.006314803846180439, -0.032580532133579254, 0.03930392116308212, 0.004241980146616697, 0.041323598474264145, 0.022336002439260483, 0.042227134108543396, -0.026295626536011696, -0.002453173277899623, 0.029072677716612816, 0.023040231317281723, -0.01850925013422966, 0.03717795014381409, -0.02787681855261326, -0.004617347382009029, 0.05232550576329231, -0.026029879227280617, 0.014350316487252712, 0.00035896553890779614, -0.022149980068206787, -0.029364999383687973, 0.013978270813822746, -0.004165578167885542, -0.00982598029077053, -0.02674739621579647, 0.0057002645917236805, 0.04387476295232773, 0.04193481430411339, -0.018363090232014656, -0.026933418586850166, -0.04666510224342346, -0.03470650687813759, -0.02939157374203205, 7.619453390361741e-05, -0.019426075741648674, 0.031278375536203384, 0.005391334183514118, 0.00037225286359898746, -0.020940832793712616, 0.05413258448243141, 0.025990016758441925, -0.03042798675596714, 0.005869678221642971, 0.0330057293176651, 0.0197848342359066, 0.041217297315597534, -0.012981721200048923, -0.02551167458295822, 0.008118558675050735, 0.08285979181528091, -0.007633571047335863, 0.00349788973107934, 0.05543474107980728, -0.020303040742874146, 0.0033733209129422903, -0.01031096838414669, -0.001871852669864893, -0.026959992945194244, 0.031544122844934464, 0.01516084372997284, 0.007480766624212265, -0.017512701451778412, -0.009015453048050404, -0.03677932918071747, -0.004039348568767309, 0.008895867504179478, -0.003634084714576602, 0.03853325545787811, -0.026269052177667618, 0.005813207011669874, 0.02419622801244259, 0.01680847257375717, 0.0034945677034556866, 0.015904933214187622, -0.02657466009259224, -0.007826237007975578, -0.013765674084424973, 0.004022739361971617, -0.034998826682567596, 0.014868522062897682, -0.00845074187964201, 0.03260710835456848, -0.025697696954011917, -0.027292175218462944, 0.045176923274993896, 0.03646043315529823, 0.02456827275454998, -0.008404236286878586, -0.014363603666424751, 0.01619725488126278, -0.007633571047335863, -0.01914704218506813, -0.06346029043197632, 0.03377639129757881, 0.039011601358652115, 0.01720709167420864, -0.0024199550971388817, 0.001510603353381157, 0.03082660585641861, 0.006032447796314955, -0.039383646100759506, 0.03170356899499893, 0.029099252074956894, -0.025923581793904305, -0.052298929542303085, -0.008822787553071976, 0.04142989590764046, 0.040552932769060135, -0.011001909151673317, 0.053813688457012177, -0.014350316487252712, 0.009188189171254635, -0.02333255112171173, 0.035397447645664215, 0.013280685991048813, 0.009952209889888763, 0.009560233913362026, -0.016383277252316475, -0.018084056675434113, 0.008889223448932171, -0.022654898464679718, 0.022375863045454025, 0.01553288847208023, -0.04047320783138275, -0.008012260310351849, 0.015307004563510418, 0.024076642468571663, 0.018349802121520042, -0.0006049887742847204, -0.048551905900239944, 0.023691309615969658, -0.06946615874767303, 0.007839525118470192, -0.0008586937328800559, -0.02657466009259224, 0.004255267325788736, -0.02591029368340969, -0.02888665534555912, -0.002586046699434519, -0.024315813556313515, -0.028089415282011032, -0.011526758782565594, -0.010862392373383045, -0.010237887501716614, -0.03648700937628746, -0.0197848342359066, -0.02095411904156208, 0.01626369170844555, -0.011553333140909672, 0.01690148375928402, 0.011048414744436741, 0.005374724976718426, 0.037098225206136703, -0.006401171442121267, -0.006630377843976021, 0.030720306560397148, -0.010071796365082264, 0.07573778182268143, 0.005364759359508753, -0.015333578921854496, -0.024953605607151985, -0.03497225418686867, 0.0007922570803202689, 0.008271362632513046, -0.042758628726005554, -0.04849875345826149, 0.0031391317024827003, 0.02222970314323902, -0.05607253313064575, -0.05633828043937683, 0.03600866347551346, -0.03515827655792236, 0.002918229904025793, -0.003946336917579174, -0.05136881768703461, 0.06122801825404167, -0.032819706946611404, 0.009659889154136181, 0.007035641465336084, -0.020396051928400993, 0.0029663965106010437, 0.004972783382982016, -0.006942629814147949, 0.006002551410347223, -0.0006178608746267855, 0.015400015749037266, -0.006590515840798616, 0.003210551105439663, 0.005431196186691523, 0.031172076240181923, -0.013293974101543427, 0.009546946734189987, 0.02300036884844303, -0.010908897966146469, 0.022003818303346634, 0.009533659555017948, -0.03329804912209511, 0.01334047969430685, -0.02436896413564682, 0.01720709167420864, -0.015506314113736153, -0.027797095477581024, 0.011885516345500946, -0.04073895514011383, 0.023372413590550423, -0.0076734330505132675, 0.024408824741840363, 0.028195714578032494, -0.036300987005233765, 0.018522538244724274, 0.004733611363917589, -0.05532844364643097, -0.059155192226171494, 0.014004846103489399, -0.01074280682951212, 0.001003193436190486, -0.044432830065488815, -0.006431067828088999, 0.003800176316872239, 0.04036691039800644, 0.014988108538091183, 0.036300987005233765, 0.007334606256335974, -0.059367790818214417, -0.004736933391541243, 0.0015404998557642102, 0.0249668937176466, -0.02212340384721756, 0.0056404718197882175, 0.03279313072562218, 0.012782411649823189, 0.007905961014330387, -0.002375110285356641, 0.0034380967263132334, -0.03080003149807453, -0.01176593080163002, 0.04988063871860504, 0.006600481458008289, -0.0015878359554335475, -0.011493540368974209, -0.0026441786903887987, 0.007148583419620991, 0.024913743138313293, 0.009148326702415943, -0.032314788550138474, -0.0008811160805635154, -0.007195089478045702, -0.038506682962179184, 0.0194526519626379, -0.04839245602488518, -0.04371531680226326, -0.0219240952283144, -0.005872999783605337, 0.0036241193301975727, 0.009918991476297379, 0.0012440262362360954, -0.01270268764346838, 0.010769381187856197, 0.046505656093358994, 0.003388269105926156, 0.023252828046679497, 0.030135665088891983, -0.004962817765772343, -0.005623862612992525, 0.0018535825656726956, -0.01387197244912386, 0.005869678221642971, -0.0065805502235889435, 0.06005873158574104, -0.004524335730820894, 0.002207357669249177, -0.007879386655986309, 0.0300559401512146, 0.01240372285246849, 0.06160006299614906, 0.005564069375395775, 0.009334349073469639, 0.020396051928400993, -0.0011875551426783204, 0.008138489909470081, -0.0014250661479309201, -0.0072017330676317215, 0.021233152598142624, 0.012848848477005959, 0.007992329075932503, -0.0065572974272072315, 0.01561261247843504, -0.030348261818289757, 0.025192778557538986, -0.007972397841513157, -0.026215901598334312, -0.009932279586791992, -0.04616018384695053, -0.014523051679134369, 0.000685127975884825, 0.008902511559426785, 0.027371900156140327, -0.027903392910957336, 0.028594333678483963, -0.031278375536203384, -0.06149376556277275, -0.021977243945002556, 0.02051563747227192, -0.00895566027611494, -0.038373809307813644, -0.04411393776535988, 0.006118815392255783, 0.006078953389078379, -0.009580165147781372, 0.032580532133579254, -0.018216930329799652, -0.04934914410114288, -0.005118943750858307, 0.005584000609815121, 0.029364999383687973, -0.011393885128200054, 0.019532375037670135, 0.00425194576382637, -0.004793404135853052, 0.0151475565508008, -0.046505656093358994, -0.015253854915499687, 0.010470416396856308, 0.011360667645931244, 0.00823150109499693, -0.026694245636463165, -0.0067532854154706, -0.006341378204524517, -0.01031096838414669, -0.0007910113781690598, -0.03800176456570625, 0.027637647464871407, -0.0045608761720359325, -0.01793789491057396, 0.0024232768919318914, -0.0377625934779644, -0.012981721200048923, 0.027159303426742554, 0.004524335730820894, -0.034493908286094666, 0.005437839776277542, 0.01066308282315731, 0.004328347742557526, -0.0028036267030984163, -0.02664109691977501, 0.011221149936318398, -0.014469902031123638, 0.017791735008358955, -0.00020325463265180588, -0.036965351551771164, 0.00401609530672431, -0.003363355528563261, -0.017632286995649338, -0.004766829777508974, 0.06021818146109581, -0.0058630346320569515, -0.012011746875941753, -0.00801890343427658, 0.008025547489523888, -0.003687234129756689, -0.0372842475771904, 0.027929967269301414, 0.022269565612077713, 0.001643476658500731, 0.04273205250501633, -0.02965732105076313, -0.01516084372997284, -0.01934635266661644, 0.0384269580245018, 0.04129702225327492, -0.008364374749362469, -0.007241595070809126, 0.0072017330676317215, -0.052272357046604156, -0.01586507260799408, 0.001112813944928348, 0.04589443653821945, 0.03765629231929779, 0.010291037149727345, 0.0014458276564255357, -0.024315813556313515, 0.011971884407103062, -0.016688887029886246, -0.03212876245379448, 0.01797775737941265, 0.004707036539912224, -0.015134269371628761, -0.013333835639059544, 0.024342387914657593, 0.05102334916591644, -0.031012628227472305, 0.024355676025152206, 0.009965498000383377, 0.002710615284740925, -0.01723366789519787, -0.043927911669015884, 0.01199845876544714, 0.005155484192073345, -0.03279313072562218, 0.03406871482729912, -0.014855234883725643, 0.01183236762881279, -0.028275437653064728, -0.015918221324682236, 0.006437711417675018, -0.027159303426742554, -0.012901997193694115, -0.012078182771801949, 0.0005701095215044916, -0.014483190141618252, -0.025392087176442146, 0.04538951814174652, -0.004826622549444437, 0.012244274839758873, 0.03972911834716797, 0.008477316237986088, -0.026295626536011696, 0.030614009127020836, -0.0025478454772382975, 0.01700778305530548, -0.0054544489830732346, -0.03781574219465256, -0.016316842287778854, -0.004687105771154165, 0.05322904512286186, -0.06765908747911453, 0.004637278150767088, 0.061334315687417984, -0.033085450530052185, 0.043901339173316956, -0.028036266565322876, 0.03983541578054428, 0.003007919294759631, 0.004122394137084484, -0.03438761085271835, -0.013885259628295898, -0.018921157345175743, 0.045708414167165756, 0.04283835366368294, 0.025259215384721756, -0.0291524026542902, 0.04616018384695053, 0.014177581295371056, -0.0497477650642395, -0.0066038030199706554, 0.01019138190895319, -0.01817706786096096, 0.020409338176250458, -0.014390178956091404, -0.014748936519026756, 0.05522214248776436, 0.02862090989947319, 0.03303230181336403, -0.06096227094531059, 0.012828917242586613, 0.023957056924700737, -0.021060418337583542, -0.008404236286878586, -0.0017854849575087428, 0.0016002928605303168, -0.006258332636207342, -0.05248495563864708, -0.003879900323227048, 0.009068602696061134, -0.020037293434143066, 0.020223315805196762, -0.03388269245624542, -0.009839268401265144, -0.010423910804092884, 0.012995008379220963, -0.03935707360506058, 0.005384690593928099, 0.03263368457555771, -0.0124834468588233, -0.03303230181336403, 0.0013885259395465255, -0.030454561114311218, -0.01927991583943367, 0.012323998846113682, 0.006288229022175074, -0.047542065382003784, 0.005158805754035711, -0.013885259628295898, -0.018854720517992973, -0.024820731952786446, -0.006896124221384525, -0.001949915662407875, -0.030374836176633835, 0.050226107239723206, 0.013028226792812347, -0.04278520122170448, -0.016051094979047775, 0.0171672310680151, 0.012436941266059875, -0.001676694955676794, -0.03789546713232994, -0.002175800269469619, 0.04334327206015587, -0.025857144966721535, 0.0024365640711039305, -0.011692850850522518, -0.00646096421405673, -0.0005306627717800438, 0.011945310048758984, 0.039915140718221664, 0.016928058117628098, 0.004155612550675869, 0.011991815641522408, 0.042758628726005554, -0.02912582829594612, -0.017898034304380417, -0.013765674084424973, 0.060430776327848434, 0.020701659843325615, 0.005175414960831404, -0.005258460994809866, -0.009952209889888763, 0.0013262416468933225, 0.02507319115102291, -0.018482675775885582, 0.031278375536203384, -0.006560619454830885, -0.01897430792450905, -0.006447677034884691, -0.0033766427077353, -0.0077199386432766914, -0.016276979818940163, 0.01380553562194109, -0.023784320801496506, 0.0014234052505344152, -0.013400272466242313, 0.023624872788786888, -0.017831597477197647, -0.010636507533490658, 0.02064851112663746, 0.002307012677192688, -0.028062840923666954, -0.008610189892351627, 0.037842314690351486, -0.01573219895362854, -0.006982491817325354, -0.03832066059112549, 0.021180003881454468, 0.025524960830807686, -0.00035647416370920837, 0.026083029806613922, 0.031783293932676315, -0.018495963886380196, -0.0408984012901783, -0.005975976586341858, -0.009048671461641788, 0.012629607692360878, 0.010981977917253971, -0.013533146120607853, 0.005623862612992525, 0.008464029058814049, 0.059367790818214417, -0.006660274229943752, -0.04002143815159798, -0.0007357859285548329, -0.033590368926525116, -0.015891646966338158, 0.044539131224155426, -0.011420460417866707, 0.010968690738081932, 0.0030029367189854383, -0.016928058117628098, 0.006078953389078379, 0.009234694764018059, -0.034254737198352814, 0.046505656093358994, -0.01300165243446827, -0.013533146120607853, 0.027770519256591797, 0.022668184712529182, 0.0003068542864639312, -0.04150962084531784, 0.052697550505399704, -0.004218727350234985, -0.019306490197777748, -0.012164550833404064, 0.004205440171062946, -0.006437711417675018, -0.026335489004850388, -0.010237887501716614, 0.0015787009615451097, -0.004029382951557636, -0.024661283940076828, 0.04552239179611206, -0.0413767471909523, -0.017459550872445107, -0.008457385934889317, 0.014616062864661217, -0.016755323857069016, 0.031544122844934464, -0.02212340384721756, -0.00414232537150383, -0.042864926159381866, -0.0001296552800340578, -0.0061487117782235146, -0.036540158092975616, 0.0035709699150174856, -0.014775510877370834, -0.0239703431725502, -0.006869549863040447, -0.009400785900652409, -0.025219352915883064, -0.01516084372997284, 0.05442490428686142, 0.010138233192265034, -0.012330641970038414, 0.011094920337200165, -0.000808035780210048, 0.015360153280198574, 0.005221920553594828, -0.0033052233047783375, 0.03970254212617874, 0.014031420461833477, 0.03704507648944855, 0.033085450530052185, -0.021033843979239464, -0.010098370723426342, -0.003856647526845336, 0.002610960276797414, 0.003491245908662677, 0.008118558675050735, -0.015679050236940384, -0.01694134622812271, -0.03175671771168709, -0.003233803901821375, -0.02302694320678711, 0.009746256284415722, 0.010756094008684158, -0.031012628227472305, -0.02939157374203205, -0.012443584389984608, 0.01914704218506813, 0.0150279700756073, 0.00728810066357255, -0.019638674333691597, -0.0028667415026575327, -0.03159727156162262, -0.0025794028770178556, -0.006630377843976021, -0.0009492136305198073, -0.01687490940093994, 0.036540158092975616, -0.012948502786457539, 0.012516665272414684, -0.008258075453341007, -0.00781294982880354, 0.024023493751883507, 0.023345839232206345, 0.018429527059197426, -0.022840920835733414, 0.01586507260799408, 0.010702944360673428, 0.04315724968910217, 0.032686833292245865, 0.0030942868907004595, 0.038506682962179184, 0.026760682463645935, -0.03587578982114792, 0.01650286465883255, 0.018868008628487587, 0.012031677179038525, -0.03340434655547142, 0.022987080737948418, 0.003467993112280965, 0.04448598250746727, 0.015386728569865227, -0.030906328931450844, -0.017300104722380638, 0.027690796181559563, 0.02155204862356186, -0.011407173238694668, 0.030374836176633835, 0.01868198625743389, -0.010443841107189655, -0.009932279586791992, 0.005760057829320431, 0.029710469767451286, 0.06175950914621353, 0.02024989016354084, 0.028169140219688416, 0.03175671771168709, -0.004145646933466196, -0.003567648120224476, 0.00036623203777708113, -0.019266627728939056, -0.03276655450463295, -0.033723242580890656, -0.04002143815159798, 0.03093290515244007, -0.020063867792487144, -0.013911834917962551, 0.03550374507904053, -0.006620412226766348, 0.05017295852303505, 0.0203561894595623, 0.01619725488126278, 0.005716873798519373, -0.020435914397239685, 0.012264206074178219, 0.007547203451395035, -0.0006934325210750103, -0.03858640789985657, 0.009135039523243904, -0.013898547738790512, 0.05429203063249588, 0.015253854915499687, 0.024820731952786446, -0.03478623181581497, -0.000708380772266537, -0.009261269122362137, -0.014390178956091404, -0.017127368599176407, 0.02694670483469963, -0.0020744844805449247, 0.02172478474676609, 0.0037237743381410837, -0.007939179427921772, -0.013818823732435703, -0.02480744570493698, -0.0031391317024827003, 0.006062344182282686, -0.009998715482652187, 0.026215901598334312, 0.0028169138822704554, -0.008244788274168968, 0.024594847112894058, 0.05102334916591644, 0.014018133282661438, 0.008782925084233284, 0.0036938777193427086, -0.04910997301340103, -0.0038832221180200577, 0.0069559174589812756, -0.028036266565322876, 0.011307517997920513, -0.01890787109732628, -0.001380221452564001, 0.03188959136605263, 0.021817795932292938, -0.017725298181176186, -0.0005900405230931938, -0.0037736017256975174, -0.009566877968609333, 0.04166906699538231, -0.023372413590550423, -0.016051094979047775, 0.002237254288047552, -0.004069244954735041, 0.004996036179363728, 0.031916167587041855, -0.022415725514292717, -0.026906844228506088, -0.005843103397637606, 0.0038167855236679316, 0.010423910804092884, 0.02787681855261326, -0.007839525118470192, 0.041695643216371536, -0.026388637721538544, 0.018336515873670578, 0.01019138190895319, -0.0054411618039011955, -0.005015966948121786, 0.020369477570056915, -0.004232014529407024, -0.004736933391541243, 0.011619769968092442, 0.019027456641197205, 0.026215901598334312, -0.03715137392282486, -0.013699237257242203, -0.0007175158243626356, -0.03754999488592148, -0.012901997193694115, 0.00048457231605425477, -5.330502972356044e-05, 0.012742549180984497, -0.007381111849099398, 0.01112813875079155, 0.04002143815159798, -0.045469243079423904, 0.014536338858306408, 0.004275198560208082, -0.008072053082287312, -0.008889223448932171, -0.005720195826143026, 0.03273998200893402, 0.04379504173994064, 0.000282563385553658, 0.025245927274227142, 0.01844281330704689, -0.01312123890966177, -0.004979426972568035, -0.02102055586874485, 0.0008258906309492886, -0.013699237257242203, 0.0027023106813430786, 0.009434004314243793, 0.03853325545787811, 0.0050657945685088634, -0.019465938210487366, -0.014589488506317139, 0.009460578672587872, 0.013247468508780003, -0.0028816896956413984, -0.004574163351207972, -0.020024007186293602, -0.00902209710329771, 0.023638160899281502, -0.035769492387771606, -0.0014400144573301077, -0.02955102175474167, -0.04722316935658455, -0.0330057293176651, -0.011586551554501057, -0.02289406955242157, -0.004730289336293936, -0.011573264375329018, 0.0022339322604238987, 0.0348128043115139, -0.0016750340582802892, -0.008849361911416054, -0.025458524003624916, -0.04124387353658676, 0.011307517997920513, -0.0313846729695797, -0.007547203451395035, -0.015811922028660774, -0.016024520620703697, 0.005211955402046442, -0.034493908286094666, -0.02503333054482937, 0.03196931630373001, 0.021140141412615776, -0.025830570608377457, 0.0036075101234018803, 0.008962304331362247, 0.019200192764401436, 0.00022546938271261752, 0.015758773311972618, -0.0026823796797543764, -0.013553076423704624, -0.013141169212758541, -0.008749706670641899, 0.026295626536011696, 0.047382619231939316, 0.005354794207960367, -0.009447291493415833, 0.001996421255171299, -0.01793789491057396, -0.04735604301095009, -0.0001126308852690272, -0.017260242253541946, 0.014337029308080673, -0.004813335370272398, -0.009042028337717056, 0.037868890911340714, 0.012496734037995338, 0.029072677716612816, 0.027199164032936096, 0.029099252074956894, -0.001503129256889224, 0.011280943639576435, 0.003936371766030788, 0.002072823466733098, 0.009367567487061024, 0.0006805604207329452, -0.013559720478951931, -0.006497504189610481, 0.036035239696502686, -0.02245558798313141, 0.007945823483169079, 0.002227288670837879, 0.0135065708309412, -0.014948246069252491, -0.020223315805196762, 0.04100470244884491, -0.007959110662341118, -0.04188166558742523, -0.002526253694668412, 0.02309338003396988, 0.006414458621293306, 0.020781384781003, -0.013898547738790512, -0.001065477728843689, -0.013559720478951931, -0.01562589965760708, -0.00530496658757329, -0.009121752344071865, -0.019598811864852905, -0.049986936151981354, -0.0028385058976709843, 0.036300987005233765, -0.03494567796587944, 0.005049185361713171, 0.0017439620569348335, 0.00858361553400755, 0.015267142094671726, 0.005896252579987049, 0.01599794626235962, 0.0233989879488945, -0.023438850417733192, -0.01211804524064064, -0.026893556118011475, -0.009859198704361916, -0.017765160650014877, -0.014988108538091183, -0.00605902262032032, -0.016024520620703697, 0.024860594421625137, 0.011945310048758984, -0.011254368349909782, -0.030241962522268295, -0.03893187642097473, 0.01797775737941265, 0.015360153280198574, -0.014815373346209526, -0.009852555580437183, 0.025285789743065834, 0.003989520948380232, 0.007387755438685417, -0.028169140219688416, 0.0323413610458374, -0.016210542991757393, 0.028328588232398033, 0.003441418521106243, 0.0024432078935205936, -0.019904419779777527, 0.02470114640891552, -0.0032852923031896353, -0.009865842759609222, -0.026428500190377235, -0.00020636884437408298, -0.031172076240181923, 0.008410880342125893, 0.009872485883533955, -0.00980604998767376, -0.013413559645414352, 0.03840038552880287, -0.03507855162024498, -0.021060418337583542, 0.016077669337391853, -0.01177921798080206, 0.04243973270058632, -0.02112685516476631, 0.021299589425325394, -0.013147813268005848, 0.02664109691977501, -0.01437689084559679, -0.003969589713960886, -0.05766701325774193, -0.01676861010491848, 0.006447677034884691, 0.014722362160682678, -0.016662312671542168, -0.017446264624595642, 0.020940832793712616, -0.0012523308396339417, 0.021605199202895164, 0.032288212329149246, 0.04525664448738098, -0.006102206185460091, -0.004630634561181068, -0.02436896413564682, 0.025857144966721535, -0.008105271495878696, -0.02688026800751686, -0.00803219061344862, -0.01241701003164053, -0.015386728569865227, 0.009068602696061134, 0.018030906096100807, 0.002104380866512656, -0.015227280557155609, 0.01054349634796381, -0.02600330486893654, -0.0033284761011600494, 0.04291807487607002, -0.029072677716612816, 0.0177385862916708, -0.013659375719726086, 0.013400272466242313, 0.006630377843976021, 0.005092369392514229, -0.002597673097625375, 0.00448447372764349, -0.03582264110445976, 0.0006701797246932983, 0.007268169429153204, -0.034626781940460205, 0.03999486193060875, -0.019293203949928284, 0.015718910843133926, -0.03802833706140518, 0.02031632699072361, -0.04940229281783104, 0.0065938374027609825, -0.012011746875941753, -0.009693107567727566, 0.017193805426359177, 0.010576714761555195, 0.005132231395691633, 0.025631260126829147, -0.013513214886188507, -0.03289942815899849, -0.0001548804430058226, 0.009686463512480259, -0.027903392910957336, 0.0016692208591848612, 0.019253341481089592, -0.015785347670316696, -0.049588315188884735, -0.02787681855261326, 0.015466452576220036, -0.010915542021393776, -0.018602261319756508, 0.03311202675104141, -0.007268169429153204, 0.005424552597105503, -0.014855234883725643, -0.021512188017368317, -0.0017506057629361749, 0.010603289119899273, -0.01676861010491848, 0.014297166839241982, -0.00803219061344862, -0.07164528220891953, 0.009912348352372646, 0.03196931630373001, 0.024422112852334976, -0.016954632475972176, -0.004743576981127262, -0.01161312684416771, 0.013300617225468159, 0.00896894745528698, -0.008118558675050735, 0.020502351224422455, -0.028966380283236504, -0.010716231539845467, -0.0038267511408776045, -0.02476758323609829, -0.030614009127020836, -0.026534797623753548, -0.013672662898898125, -0.009055315516889095, -0.044432830065488815, -0.006331412587314844, 0.02175135910511017, 0.012111401185393333, -0.0008001464302651584, 0.001358629553578794, 0.017924608662724495, -0.03800176456570625, 0.02315981686115265, 0.0030660515185445547, 0.01561261247843504, -0.001432540244422853, 0.007241595070809126, -0.034759655594825745, -0.03518484905362129, -0.02965732105076313, 0.029444724321365356, 0.04190823808312416, -0.003517820732668042, -0.03130494803190231, -0.034600209444761276, 0.02333255112171173, 0.0022322714794427156, 0.02745162323117256, 0.011041771620512009, -0.03353722020983696, 0.005205311346799135, 0.05046527832746506, -0.011041771620512009, 0.01991770789027214, -0.011041771620512009, 0.013526502065360546, 0.03664645552635193, -0.034600209444761276, -0.016888195648789406, -0.02333255112171173, -0.04900367185473442, 0.042997799813747406, -0.01670217327773571, 0.01516084372997284, -0.013214250095188618, -0.006623734254390001, -0.008470673114061356, 0.006348021794110537, -0.03789546713232994, -0.036965351551771164, 0.021060418337583542, -0.01606438122689724, -0.03922419995069504, 0.028328588232398033, -0.002984666498377919, 0.011148069985210896, 0.057454414665699005, -0.008623477071523666, -8.641954627819359e-05, 0.02044920064508915, 0.015067832544445992, -0.026959992945194244, -0.009859198704361916, 0.01727352850139141, 0.03215533867478371, -0.029046103358268738, 0.0018735135672613978, 0.002772069303318858, -0.033058878034353256, -0.024275952950119972, 0.00448447372764349, 0.005985942203551531, 0.01351985801011324, 0.005208633374422789, -0.0028268794994801283, -0.00015820226690266281, 0.02406335435807705, -0.004916312173008919, 0.02436896413564682, 0.02031632699072361, 0.004803369753062725, -0.007693364284932613, 0.016011232510209084, 0.011912091635167599, -0.0197848342359066, 0.010736162774264812, -0.013659375719726086, -0.0004687936161644757, 0.01340691652148962, -0.04036691039800644, -0.023518573492765427, 0.020289752632379532, 0.022774484008550644, -0.0019980822689831257, -0.0004982748650945723, 0.005623862612992525, 0.027265600860118866, -0.032314788550138474, 0.001247348147444427, -0.01176593080163002, 0.018735134974122047, 0.01696792058646679, -0.00937421154230833, -0.020502351224422455, -0.016011232510209084, -0.016183968633413315, -0.05750756338238716, 0.02637534961104393, -0.028860080987215042, -0.0001946386182680726, 0.029444724321365356, 0.006676883436739445, 0.013739099726080894, 0.0013511553406715393, -0.0067798602394759655, 0.0224954504519701, -0.01767214946448803, 0.019904419779777527, 0.014270592480897903, -0.012257562018930912, -0.019465938210487366, -0.0013254111399874091, -0.0027920003049075603, -0.010370761156082153, -0.012031677179038525, -0.011553333140909672, 0.01501468289643526, 0.01444332767277956, -0.012217700481414795, -0.007427617441862822, -0.03337777405977249, -0.03685905411839485, -0.028328588232398033, 0.0036041883286088705, -0.01283556129783392, 0.021366026252508163, -0.06882836669683456, -0.011393885128200054, 0.0015811922494322062, 0.003019545692950487, 0.02864748425781727, 0.001838634256273508, -0.003677268512547016, 0.016529439017176628, -0.02242901362478733, 0.02912582829594612, -0.0006980000762268901, -0.004966139793395996, -0.010045222006738186, 0.02406335435807705, -0.011872229166328907, 0.02798311784863472, -0.015240567736327648, -0.009706394746899605, -0.0007619453244842589, -0.014762223698198795, 0.008982235565781593, 0.03518484905362129], "id": 76}, {"title": "Multnomah people", "text": "The Multnomah were a tribe of Chinookan people who lived in the area of Portland, Oregon, in the United States through the early 19th century. Multnomah villages were located throughout the Portland basin and on both sides of the Columbia River. The Multnomah spoke a dialect of the Upper Chinookan language in the Oregon Penutian family.", "vector": [0.006801684387028217, 0.03566597402095795, -0.02064003236591816, -0.024768037721514702, 0.001402728259563446, -0.006719124037772417, -0.05415944382548332, -0.035157911479473114, -0.06818196177482605, 0.006249166559427977, -0.04084821045398712, 0.021059183403849602, -0.02380272001028061, -0.009862760081887245, 0.012002971954643726, -0.03627564758062363, -0.0471227802336216, 0.04023853689432144, 0.040772002190351486, 0.03498008847236633, -0.0061539048328995705, -0.01083442848175764, 0.0015734054613858461, 0.005842716433107853, 0.061018284410238266, 0.00843383464962244, -0.0022624649573117495, -0.02572065405547619, 0.018366452306509018, -0.0035088052973151207, 0.007811457850039005, -0.03492928296327591, 0.026063596829771996, 0.011958517134189606, -0.004286775831133127, 0.012606295756995678, 0.02565714716911316, 0.010961444117128849, 0.0018242612713947892, 0.017007386311888695, -0.02124970592558384, 0.02735915593802929, -0.0007688411860726774, 0.025911178439855576, -0.02459021657705307, -0.01876020058989525, 0.02340897172689438, 0.02097027190029621, 0.007106521632522345, -0.005779208615422249, 0.057614266872406006, -0.01869669370353222, 0.0004640037950593978, -0.05507395416498184, -0.009043509140610695, 0.02672407776117325, 0.02611440233886242, 0.05253364145755768, 0.006763579323887825, -0.020170073956251144, -0.026393836364150047, -0.03015349805355072, 0.024183766916394234, -0.01957309991121292, 0.01996684819459915, 0.018125122413039207, 0.0003234928008168936, 0.027181332930922508, 0.00392795680090785, -0.01972552016377449, 0.0032515989150851965, 0.04468408226966858, -0.005985609255731106, -0.022748490795493126, 0.0005668069934472442, -0.01083442848175764, -0.04371876269578934, 0.002386305248364806, -0.027003511786460876, 0.006446040701121092, 0.0028499120380729437, -0.0027054317761212587, 0.03343050181865692, -0.005591860972344875, 0.035488151013851166, -0.04056877642869949, -0.016346905380487442, -0.020068461075425148, -0.053549766540527344, -0.049561478197574615, 0.0030007429886609316, -0.005458494648337364, -0.05314331874251366, 0.0035215069074183702, -0.009659534320235252, -0.024272676557302475, 0.045979637652635574, 0.011120214127004147, -0.012002971954643726, 0.01436546165496111, -0.045547787100076675, 0.004280425142496824, 0.017223311588168144, 0.011583820916712284, 0.06355859339237213, -0.003061075462028384, 0.011056706309318542, 0.01353986095637083, -0.015267272479832172, 0.03340509533882141, 0.01376848854124546, 0.018366452306509018, 0.011221826076507568, -0.01094239205121994, 0.03500549495220184, 0.040772002190351486, -0.06574326008558273, -0.01872209645807743, -0.04094982147216797, -0.020373297855257988, -0.02088136039674282, -0.027181332930922508, -0.06731825321912766, -0.026216015219688416, -0.016359606757760048, -0.08408430963754654, 0.0011058293748646975, 0.06630213558673859, 0.003699328750371933, 0.044480856508016586, -0.007055715192109346, -0.04115304723381996, -0.05067921429872513, -0.007373254280537367, -0.022418249398469925, -0.021935589611530304, 0.050653811544179916, -0.009767497889697552, 0.010821727104485035, -0.012441175989806652, -0.0011486971052363515, 0.041813530027866364, -0.031042607501149178, -0.004496351350098848, -0.022291233763098717, -0.07219565659761429, 0.0017051841132342815, 0.048164308071136475, 0.0033817896619439125, 0.00047511764569208026, 0.026343030855059624, 0.007201783359050751, 0.017896495759487152, 0.007487568538635969, -0.050044137984514236, 0.01957309991121292, 0.002560951514169574, 0.019674712792038918, -0.01644851826131344, -0.016816861927509308, -0.014581388793885708, 0.04003531113266945, 0.047580037266016006, 0.004502702038735151, 0.03292243927717209, -0.05990054830908775, 0.0222531296312809, -0.03614863380789757, 0.024514006450772285, 0.02437428943812847, -0.026774883270263672, 0.08789478242397308, -0.014670299366116524, -0.06777551025152206, -0.018556976690888405, 0.04006071388721466, 0.00024331422173418105, 0.005702999420464039, 0.033963967114686966, 0.039349425584077835, -0.009081614203751087, -0.018036212772130966, 0.006366655696183443, 0.00835762545466423, 0.024869650602340698, -0.01475920993834734, -0.005267971195280552, 0.07321178168058395, -0.023294657468795776, -0.012301458977162838, 0.00041954833432100713, 6.301163375610486e-05, 0.052940092980861664, 0.017642464488744736, 0.050653811544179916, 0.035767585039138794, 0.019890639930963516, 0.04067038744688034, -0.006033239886164665, -0.011069407686591148, 0.015279973857104778, -0.002189431106671691, -0.021770469844341278, 0.0077733532525599, 0.020932167768478394, 0.02939140424132347, -0.011075758375227451, -0.01902693323791027, 0.008021033369004726, -0.004858345724642277, 0.07204323261976242, -0.057614266872406006, -0.015305377542972565, 0.010167596861720085, -0.01353986095637083, 0.013247724622488022, 0.02561904303729534, 0.04112764447927475, -0.007684442680329084, 0.00437568686902523, 0.03589460253715515, 0.024488603696227074, -0.030077289789915085, -0.006985856685787439, -0.03988289088010788, 0.03312566131353378, -0.07006179541349411, 0.023421673104166985, -0.010961444117128849, 0.027765605598688126, 0.006055467762053013, 0.009856408461928368, 0.004245495889335871, 0.01848076656460762, 0.011653679423034191, 0.03879055753350258, 0.014238446019589901, 0.02221502549946308, 0.015292675234377384, 0.045065127313137054, -0.03277001902461052, 0.04453166201710701, -0.018048914149403572, -0.012803169898688793, 0.05179695412516594, -0.02197369560599327, -0.007506620604544878, -0.06264408677816391, -0.00963413156569004, -0.038434915244579315, 0.026952706277370453, 0.0062999725341796875, 0.04303287714719772, 0.01240307092666626, -0.04349013417959213, 0.0270543172955513, -0.04039095342159271, -5.442816109280102e-05, -0.004121655598282814, -0.020474910736083984, -0.03823168948292732, 0.029747048392891884, -0.01125993113964796, 0.03523411974310875, 0.002821333473548293, -0.012339563108980656, -0.03683451935648918, 0.0003260727971792221, 0.0003875959664583206, 0.008109944872558117, 0.023815421387553215, -0.012377668172121048, -0.0471227802336216, 0.051390502601861954, -0.0017972703790292144, 0.011044004932045937, 0.05609007924795151, -0.007055715192109346, -0.003126170951873064, -0.057614266872406006, 0.02559363842010498, -0.04463327303528786, -0.06051022186875343, -0.11939464509487152, 0.003330983454361558, 0.009938969276845455, -0.00931659247726202, -0.025453921407461166, -0.008776776492595673, -0.033608321100473404, -0.009945319965481758, -0.025149084627628326, -0.0034071928821504116, 0.003581839380785823, 0.009024457074701786, 0.004242320545017719, 0.03619943931698799, 0.029416808858513832, 0.006138027645647526, 0.01981442980468273, -0.008865687064826488, 0.00487104756757617, 0.018188631162047386, -0.014225744642317295, 0.030966397374868393, -0.0035088052973151207, 0.02936600148677826, -0.0017147102626040578, -0.0053346543572843075, -0.014162236824631691, -0.03914619982242584, -0.04689415171742439, -0.008281415328383446, 0.015826141461730003, -0.005302900448441505, -0.0008906967705115676, 0.03373533859848976, 0.01249198243021965, 0.00570617476478219, 0.023320060223340988, -0.004502702038735151, -0.0007311334484256804, -0.01406062487512827, 0.02452670782804489, -0.028095845133066177, 0.005283847916871309, -0.057817492634058, -0.02133861742913723, -0.026470046490430832, -0.012834924273192883, -0.023231148719787598, -0.014594090171158314, -0.00746216531842947, -0.020208178088068962, -0.013196918182075024, 0.040594179183244705, -0.0011232940014451742, -0.003826344385743141, 0.009183226153254509, 0.10379713028669357, 0.0027403610292822123, -0.03398936986923218, 0.05939248576760292, 0.036123231053352356, 0.02827366814017296, 0.022659579291939735, -0.02097027190029621, 0.018048914149403572, -0.016981983557343483, 0.05507395416498184, 0.00042272370774298906, 0.06330456584692001, -0.005210814066231251, 0.04595423489809036, 0.03782523795962334, -0.003100767731666565, -0.016893072053790092, 0.015508602373301983, -0.010993198491632938, 0.022240428254008293, -0.053244929760694504, -0.0035024546086788177, -0.036123231053352356, 0.006341252941638231, -0.023091431707143784, -0.016524726524949074, -0.012060129083693027, 0.004280425142496824, 0.01656283065676689, -0.020830554887652397, 0.03945104032754898, -0.005661719478666782, -0.0011074170470237732, -0.019979549571871758, -0.01656283065676689, -0.016219889745116234, 0.03386235237121582, -0.0338115468621254, 0.01015489548444748, -0.041356272995471954, -0.002440286800265312, 0.0949060395359993, 0.034573640674352646, 0.005906224250793457, -0.006055467762053013, -0.03414178639650345, 0.013641472905874252, 0.008598954416811466, -0.03012809529900551, -0.027003511786460876, 0.04201675206422806, 0.018518870696425438, 0.04049256816506386, 0.04026393964886665, 0.040594179183244705, 0.053600575774908066, -0.12244302034378052, 0.010720115154981613, -0.0015599100152030587, 0.012079181149601936, 0.04745301976799965, -0.05863039195537567, -0.011869605630636215, 0.009856408461928368, 0.04780866205692291, -0.042931266129016876, -0.04803729057312012, -0.027155930176377296, -0.02288820780813694, 0.0032309587113559246, -0.05375299230217934, 0.03955265134572983, -0.054057829082012177, -0.0012296695495024323, 0.007316097151488066, -0.05659814178943634, -0.044125210493803024, 0.032084133476018906, 0.009024457074701786, -0.0017210610676556826, 0.004607490263879299, -0.017820285633206367, -0.000910542905330658, -0.015114854089915752, -0.010110439732670784, 0.03464984893798828, 0.008243311196565628, 0.0014956084778532386, -0.0052584451623260975, 0.03376074135303497, 0.044125210493803024, -0.010561345145106316, 0.03172849118709564, 0.024780739098787308, 0.04026393964886665, -0.0696045383810997, -0.03221115097403526, 0.003661224152892828, 0.008490991778671741, 0.04425222799181938, 0.026012791320681572, -0.011113863438367844, -0.010815376415848732, -0.026343030855059624, -0.05314331874251366, -0.0015829316107556224, -0.012980991974473, -0.03967966511845589, -0.01935717463493347, 0.033913157880306244, 0.023116834461688995, -0.03558976575732231, -0.004518579225987196, -0.030712366104125977, 0.002807044191285968, -0.017337625846266747, 0.04277884587645531, -0.0056871226988732815, 0.05903683975338936, -0.0011359956115484238, -0.01590234972536564, -0.02024628408253193, -0.0070430138148367405, -0.025453921407461166, -0.04394739121198654, -0.06396504491567612, -0.0005914162611588836, -0.0032404849771410227, -0.023332761600613594, -0.06117070093750954, 0.03627564758062363, 0.02185938134789467, 0.0036707501858472824, -0.020678136497735977, -0.02951841987669468, 6.717933138133958e-05, 0.01531807892024517, -0.03914619982242584, -0.01714710332453251, -0.0023513759952038527, -0.015368885360658169, 0.01531807892024517, -0.04867237061262131, 0.004042270593345165, -0.010643905028700829, 0.006769930478185415, -0.08098513633012772, 0.021681558340787888, 0.0054489681497216225, -0.011247229762375355, 0.04618286341428757, 0.0392732173204422, -0.010764569975435734, 0.004966309294104576, -0.012237951159477234, 0.06081505864858627, -0.02873092330992222, -0.040136922150850296, 0.00948171317577362, -0.05113647133111954, 0.009958021342754364, 0.03561516851186752, 0.09023186564445496, -0.03668209910392761, -0.005131429526954889, 0.007360552903264761, -0.01217444334179163, -0.0062999725341796875, -0.004563034512102604, -0.009646832942962646, 0.014251148328185081, 0.010878884233534336, 0.016334204003214836, -0.022621475160121918, -0.014301953837275505, 0.01144410390406847, 0.031169623136520386, 0.0040930770337581635, 0.005991959944367409, 0.008973650634288788, 0.01747734285891056, -0.002313271164894104, -0.012987342663109303, -0.023358164355158806, -0.027181332930922508, 0.010916989296674728, -0.009183226153254509, 0.02142752893269062, 0.03203332796692848, -0.03691072762012482, -0.04310908913612366, 0.02768939547240734, -0.015140256844460964, 0.02391703426837921, 0.044734887778759, -0.03929862007498741, -0.014428969472646713, 0.003658048575744033, -0.027486171573400497, -0.0029864537063986063, 0.020474910736083984, -0.005071097053587437, -0.033303484320640564, -0.0035564361605793238, 0.0028943675570189953, 0.0381808839738369, 0.018772901967167854, -0.014301953837275505, 0.02118619903922081, -0.009043509140610695, -0.03777443245053291, 0.03061075508594513, -0.03619943931698799, 0.002992804627865553, -0.018404556438326836, -0.03028051368892193, -0.014898926950991154, 0.014035221189260483, 0.00978654995560646, 0.012504683807492256, 0.058223940432071686, 8.623166650068015e-05, 0.022837400436401367, -0.006700071971863508, -0.042448606342077255, -0.007894018664956093, 0.006903296802192926, -0.009684938006103039, -0.00012771019828505814, 0.02218962088227272, 0.005785559769719839, -0.023777315393090248, -0.0040486217476427555, 0.02480614185333252, 0.008897441439330578, 0.021173497661948204, 0.006401584949344397, -0.012072830460965633, -0.005544229876250029, -0.05349896103143692, 0.006350778974592686, 0.02136402018368244, 0.01141234952956438, 0.013946310617029667, -0.007906720042228699, 0.01924286037683487, -0.00819250475615263, 0.026165209710597992, 0.0025879424065351486, -0.022392846643924713, 0.0044391946867108345, -0.009119718335568905, 0.0028880166355520487, 0.0058331904001533985, -0.0026943180710077286, 0.0014979899860918522, -0.031195025891065598, 0.0035596115048974752, -0.021059183403849602, -0.013730384409427643, 0.06198360398411751, -0.01483541913330555, 0.0069604539312422276, -0.02583496831357479, 0.0621868260204792, 0.03871434926986694, -0.03619943931698799, 0.017337625846266747, -0.013006395660340786, -0.003489752998575568, -0.017832987010478973, -0.010459733195602894, 0.025403115898370743, 0.023637598380446434, 0.001959215383976698, 0.01647392101585865, -0.02009386382997036, 0.028705520555377007, 0.006004661321640015, -0.0037977658212184906, 0.021999098360538483, -0.00892284419387579, 0.01902693323791027, -0.03459904342889786, -0.007652688771486282, -0.031017204746603966, 0.014962434768676758, -0.014898926950991154, 0.0077543011866509914, 0.018582379445433617, -0.07224646210670471, 0.003753310302272439, 0.0142892524600029, -0.01860778219997883, 0.03492928296327591, -0.016512025147676468, -0.03721556439995766, -0.03218574821949005, 0.0005223515909165144, -0.02240554802119732, -0.048494547605514526, -0.04577641561627388, 0.021287810057401657, -0.0262922253459692, 0.014695702120661736, -0.008427483960986137, -0.02450130507349968, 0.010910638608038425, 0.029340598732233047, -0.022075306624174118, -0.008033735677599907, -0.016461219638586044, -0.027892621234059334, -0.014797315001487732, -0.006909647490829229, -0.003854922717437148, -0.0023815419990569353, -0.047681648284196854, 0.0069985585287213326, -0.007443112786859274, -0.006947752088308334, -0.01830294542014599, 0.013501755893230438, -0.010599450208246708, 0.015699125826358795, -0.024463200941681862, 0.01924286037683487, -0.05893522873520851, 0.01007868628948927, 0.033481307327747345, 0.03442122042179108, -0.020944869145751, -0.032058730721473694, -0.01760435849428177, -0.005306075792759657, 0.019928744062781334, 0.01176164299249649, -0.0053727589547634125, -0.025365011766552925, -0.02386622689664364, 0.007309746462851763, -0.026012791320681572, 0.02185938134789467, -0.004420142155140638, -0.062390051782131195, 0.006242815870791674, 0.003365912940353155, -0.05243203043937683, -0.008427483960986137, 0.009672236628830433, 0.021478334441781044, 0.020843256264925003, 0.0004624160937964916, -0.016397710889577866, -0.0016242116689682007, 0.02644464373588562, -0.0001935002946993336, -0.0020703538320958614, 0.018125122413039207, -0.03256679326295853, -0.0005548993358388543, 0.030966397374868393, 0.0035024546086788177, -0.01021205261349678, -0.018290244042873383, 0.035030897706747055, -0.013565263710916042, -0.010427978821098804, -0.0033055804669857025, 0.015597512945532799, -0.0022307110484689474, -0.003419894492253661, -0.004813890438526869, 0.021046482026576996, -0.03236357122659683, -0.06335537135601044, 0.02751157432794571, -0.007982929237186909, 0.010961444117128849, 0.009678587317466736, 0.023942437022924423, 0.026216015219688416, -0.00939280167222023, 0.01159652229398489, -0.022075306624174118, 0.05184775963425636, 0.010656607337296009, -0.021999098360538483, -0.004426492843776941, -0.0021973694674670696, -0.024399692192673683, -0.0104724345728755, 0.0035754884593188763, 0.0030547247733920813, -0.0030182076152414083, 0.029493017122149467, 0.018074316903948784, 0.021910186856985092, 0.015051346272230148, -0.000414785259636119, 0.007163678761571646, -0.00413435697555542, 0.05283848196268082, -0.028908746317029, -0.004023218527436256, -0.022900909185409546, -0.009945319965481758, -0.005283847916871309, -0.009773848578333855, -0.01062485296279192, -0.0006346809677779675, -0.04564939811825752, 0.0009740507230162621, -0.05786829814314842, 0.0034802269656211138, 0.009049859829246998, -0.014225744642317295, -0.041356272995471954, 0.010224753990769386, -0.00673182588070631, -0.027867218479514122, -0.015851544216275215, -0.0008303643553517759, -0.023396270349621773, -0.015826141461730003, -0.014873524196445942, -0.004858345724642277, -0.015762632712721825, -0.008427483960986137, 0.002761001233011484, -0.03200792521238327, 0.00388667662627995, 0.02166885696351528, -0.008656111545860767, 0.028857938945293427, 0.027765605598688126, -0.030813978984951973, 0.005645842291414738, -0.013247724622488022, 0.0012717434437945485, -0.03190631419420242, 0.0562933050096035, 0.042118366807699203, 0.012180794030427933, -0.027105124667286873, -0.0002079880068777129, 0.009253084659576416, 0.013819294981658459, -0.015978559851646423, -0.009068911895155907, -0.011723537929356098, -0.004826591815799475, -0.0012987343361601233, -0.0012606296222656965, -0.004204215481877327, -0.023447075858712196, 0.0741771012544632, 0.045522384345531464, 0.003626294666901231, -0.004512228537350893, 0.057309430092573166, -0.005179060157388449, 0.001617067027837038, 0.005252094008028507, -0.04130546748638153, 0.006252341903746128, -0.023624897003173828, -0.027740202844142914, -0.02613980695605278, 0.013476353138685226, 0.009214980527758598, -0.003997815307229757, 0.01869669370353222, -0.016613638028502464, -0.0198525357991457, -0.04331231117248535, 0.023383567109704018, 0.03444662317633629, 0.006271393969655037, -0.03383694961667061, 0.011215475387871265, -0.0006632594740949571, 0.04224538058042526, -0.0038199934642761946, 0.029188180342316628, 0.013209620490670204, -0.004832942970097065, -0.01653742790222168, -0.024882351979613304, 0.03498008847236633, -0.00971034076064825, 0.0013908206019550562, -0.025022068992257118, -0.010796324349939823, -0.03985748812556267, 0.02954382263123989, -0.015597512945532799, -0.022176919505000114, 0.0011606048792600632, 0.009703990072011948, -0.015572110190987587, -0.03172849118709564, 0.06315214931964874, -0.013438248075544834, 0.001332869753241539, 0.033481307327747345, 0.012460228055715561, -0.040721192955970764, 0.020500313490629196, 0.0011868018191307783, -0.003365912940353155, -0.015368885360658169, 0.015025942586362362, 0.025174487382173538, 0.03264300525188446, -0.043515536934137344, -0.016054769977927208, 0.03523411974310875, 0.010389874689280987, 0.016651742160320282, 0.024768037721514702, -0.013819294981658459, -0.02271038480103016, 0.0018274366157129407, -0.0010073923040181398, 0.028476892039179802, 0.033328887075185776, -0.03492928296327591, -0.03584379702806473, -0.011304386891424656, 0.004670998081564903, -0.020944869145751, -0.006674668751657009, 0.011234527453780174, 0.0058776456862688065, -0.005702999420464039, -0.047681648284196854, 0.028502296656370163, -0.004807539749890566, 0.032058730721473694, -0.007735248655080795, -0.03569137677550316, -0.008338572457432747, -0.023002522066235542, 0.05227961391210556, 0.023612195625901222, 0.023180343210697174, -0.00281498278491199, 0.0246537234634161, -0.02480614185333252, -0.02611440233886242, -0.019433382898569107, 0.017121700569987297, 0.0016353256069123745, -0.016727952286601067, 0.044125210493803024, -0.027918023988604546, -0.009265786036849022, 0.028832536190748215, -0.03604702278971672, 0.007322448305785656, -0.04133087024092674, -0.018214033916592598, -0.00604276591911912, 0.024755336344242096, 0.03048373945057392, 0.05339735001325607, -0.012041077017784119, -0.014111430384218693, -0.02875632606446743, -0.009430906735360622, 0.02066543512046337, 0.009843707084655762, -0.048621565103530884, -0.0008232197142206132, -0.046767134219408035, -0.010142194107174873, 0.032846227288246155, -0.03076317347586155, 0.0019528644625097513, -0.018671290948987007, -0.04453166201710701, 0.024183766916394234, 0.014733807183802128, -0.005086973775178194, 0.016092874109745026, 0.017401134595274925, -0.00722083542495966, -0.013311232440173626, 0.01353986095637083, -0.0050583952106535435, 0.0027244840748608112, -0.04318529739975929, 0.029315195977687836, 0.05431186035275459, -0.00851004384458065, 0.04128006473183632, -0.004607490263879299, 0.011653679423034191, -0.0069287000223994255, 0.028680117800831795, 0.014746508561074734, 0.013387441635131836, 0.028019636869430542, 0.010612151585519314, 0.01574993133544922, 0.0014170175418257713, 0.01507674902677536, 0.01369227934628725, 0.04425222799181938, -0.011539365164935589, 0.03830789774656296, -0.02149103581905365, -0.0020465385168790817, -0.021833978593349457, 0.03058535046875477, -0.012625348754227161, -0.008421133272349834, 0.02939140424132347, -0.041813530027866364, 0.016639040783047676, 0.025403115898370743, 0.016740653663873672, -0.0246537234634161, 0.00644286535680294, 0.008941896259784698, 0.02027168683707714, -0.02401864528656006, -0.0044836499728262424, 1.0605304851196706e-05, 0.006373006850481033, 0.03063615784049034, 9.68121639743913e-06, -0.005490248557180166, -0.014263849705457687, 0.012555490247905254, -0.002125923288986087, -0.021376721560955048, 0.04023853689432144, -0.0070049092173576355, 0.061323121190071106, -0.02561904303729534, 0.009469011798501015, 0.013501755893230438, 0.00830046832561493, 0.06472714245319366, -0.006788982544094324, -0.002148150932043791, -0.008668812923133373, 0.00604276591911912, -0.015203764662146568, 0.012047427706420422, 0.018645886331796646, 0.009551571682095528, 0.03058535046875477, 0.013984414748847485, -0.049383655190467834, 0.026774883270263672, 0.0025625391863286495, -0.017985405400395393, 0.014632194302976131, 0.03929862007498741, 0.011266281828284264, 0.012409421615302563, 0.0207289420068264, -0.01468300074338913, -0.041203852742910385, -0.011361543089151382, -0.026038194075226784, -0.006852490361779928, 0.011437753215432167, -0.01599126122891903, 0.004642419517040253, -0.042296186089515686, 0.003629470244050026, 0.013514457270503044, 0.017985405400395393, -0.035513557493686676, -0.007258940488100052, 0.015648318454623222, -0.007055715192109346, 0.013336636126041412, -0.07656498998403549, -0.027562379837036133, -0.021910186856985092, -0.01148855872452259, -0.030559947714209557, 0.007030312437564135, -0.0009478537831455469, 0.011964867822825909, -0.01515295822173357, 0.0016019840259104967, 0.005439442116767168, 0.019280964508652687, 0.006979505997151136, 0.004420142155140638, -0.010764569975435734, 0.0025974686723202467, 0.01369227934628725, 0.016791459172964096, -0.02234204113483429, 0.0035437345504760742, -0.02003035694360733, -0.006865192204713821, 0.004648770205676556, -0.00978654995560646, -0.024272676557302475, -0.00753837451338768, 0.0019608030561357737, 0.009284839034080505, -0.01217444334179163, 0.02443779818713665, -0.027943426743149757, -0.002329148119315505, 0.018048914149403572, -0.012460228055715561, 0.04648770019412041, 0.004185163415968418, -0.02908656746149063, -0.022875506430864334, -0.005849067587405443, -0.0018750674789771438, 0.017426537349820137, 0.011755291372537613, 0.03124583140015602, -0.019839832559227943, -0.051873162388801575, 0.008948247879743576, 0.02358679287135601, -0.026190612465143204, 0.03200792521238327, -0.04308368265628815, -0.0032579496037214994, 0.024425094947218895, 0.01005963422358036, 0.011304386891424656, 0.025885775685310364, 0.012117286212742329, 0.022850101813673973, -0.017401134595274925, -0.006681019440293312, 0.0344720296561718, 0.0021814925130456686, 0.024641022086143494, 0.008103594183921814, 0.015927754342556, 0.0025990563444793224, 0.012345913797616959, 0.007373254280537367, -0.005420389585196972, 0.0017591657815501094, -0.007868614979088306, -0.023485179990530014, -0.0045916130766272545, 0.016766056418418884, 0.003800941165536642, -0.014035221189260483, -0.005614088382571936, -0.03058535046875477, -0.046436894685029984, 0.03370993584394455, -0.0036326455883681774, -0.026673272252082825, -0.02583496831357479, 0.020474910736083984, -0.01987793855369091, 0.010091387666761875, -0.050196558237075806, -0.01625799387693405, -0.021198900416493416, 0.007595531642436981, -0.017439238727092743, 0.026647867634892464, 0.016067471355199814, 0.009024457074701786, 0.009291189722716808, 0.004366160370409489, 0.00552517781034112, 0.024450499564409256, 0.030051885172724724, 0.005852242931723595, -0.0035310331732034683, -0.028705520555377007, 0.026774883270263672, 0.005579159129410982, -0.042626429349184036, -0.005388636142015457, 0.0018988829106092453, 0.0013979652430862188, 0.028908746317029, 0.019560398533940315, 0.015089450404047966, -0.01869669370353222, -0.014314656145870686, 0.012612647376954556, 0.02085595764219761, 0.005490248557180166, -0.02589847706258297, -0.024717232212424278, 0.015356183052062988, 0.01778218150138855, -0.005315601825714111, -0.011037653312087059, 0.003527857596054673, -0.0236757043749094, 0.035157911479473114, -0.0054489681497216225, 0.03416718915104866, -0.040441758930683136, 0.0032023803796619177, -0.02559363842010498, 0.012091883458197117, 0.005426740739494562, 0.02081785351037979, -0.02626682072877884, -0.009767497889697552, 0.025707952678203583, -0.006788982544094324, -0.014200341887772083, -0.02231663651764393, 0.007366903591901064, 0.021160796284675598, 0.01644851826131344, -0.005950680002570152, -0.04186433553695679, 0.012409421615302563, -0.030839381739497185, -0.009754796512424946, -0.023599494248628616, 0.017820285633206367, -0.015813440084457397, 0.01280952151864767, -0.020474910736083984, -0.03830789774656296, 0.026368433609604836, -0.011507611721754074, -0.006112624891102314, 0.026241417974233627, 0.011958517134189606, -0.0338115468621254, -0.042296186089515686, -0.001284445053897798, -0.015813440084457397, 0.019903341308236122, -0.012803169898688793, -0.026622464880347252, -0.045700203627347946, -0.03200792521238327, -0.026647867634892464, 0.017832987010478973, 0.004801189061254263, -0.032236553728580475, 0.022088009864091873, -0.028553102165460587, -0.015178361907601357, -0.003947009332478046, -0.03978127986192703, -0.004147058818489313, 0.020754344761371613, -0.006700071971863508, 0.005344180390238762, -0.04503972455859184, 0.0006061024614609778, -0.008160751312971115, -0.035335734486579895, 0.0077733532525599, -0.004128006286919117, 0.004985361360013485, 0.0077733532525599, 0.02279929630458355, -0.017998106777668, 0.00400416599586606, -0.022418249398469925, 0.02443779818713665, -0.019865237176418304, -0.029899466782808304, -0.005931627470999956, 0.01826483942568302, 0.03246518224477768, -0.025403115898370743, -0.010421628132462502, -0.012930185534060001, -0.020195476710796356, -0.03149986267089844, -0.02273578941822052, 0.006376182194799185, 0.01784568838775158, 0.0222531296312809, 0.01086618285626173, -0.003731082659214735, -0.024869650602340698, 0.029645435512065887, -0.03216034546494484, 0.004474123939871788, -0.03498008847236633, -0.017591657117009163, -0.01199027057737112, 0.02452670782804489, -0.018506169319152832, -0.021021077409386635, 0.016816861927509308, 0.01884911209344864, -0.00117806950584054, 0.012669803574681282, 0.0008803767268545926, 0.01616908237338066, 0.005248918663710356, 0.011291684582829475, -0.021325916051864624, -0.022723086178302765, -0.019255561754107475, -0.008795828558504581, -0.013235023245215416, -0.020220879465341568, -0.003921606112271547, -0.004966309294104576, -0.008910142816603184, -0.009488063864409924, -0.004921853542327881, -0.04097522422671318, -0.02875632606446743, 0.010243806056678295, -0.007411358878016472, -0.015292675234377384, 0.03157607465982437, -0.010218403302133083, 0.035996213555336, -0.019992252811789513, 0.018226735293865204, 0.0051822355017066, 0.01614367961883545, 0.014340058900415897, -0.0077924057841300964, 0.02124970592558384, -0.008490991778671741, 0.052787672728300095, -0.03480226919054985, -0.006341252941638231, 0.02009386382997036, 0.02544122003018856, 0.00044614222133532166, -0.003826344385743141, 0.03724096715450287, -0.015915051102638245, 0.018061615526676178, 0.032998647540807724, -0.001530537731014192, 0.012091883458197117, -0.03246518224477768, -0.0036929778289049864, 0.0207289420068264, -0.01352715864777565, -0.013679577969014645, -0.01515295822173357, 0.018887216225266457, 0.013387441635131836, -0.012352265417575836, -0.014251148328185081, -0.01970011554658413, -0.01346365176141262, -0.01240307092666626, -0.0029483491089195013, 0.0069287000223994255, 0.002870552008971572, 0.024336185306310654, 0.0029150075279176235, -0.012746013700962067, 0.02511098049581051, 0.0062174126505851746, 0.03358291834592819, 0.03894297778606415, 0.012034726329147816, -0.022926311939954758, 0.02923898585140705, 0.04282965138554573, 0.013209620490670204, 0.02194829285144806, -0.01547049731016159, 0.012873029336333275, -0.04432843625545502, 0.01693117618560791, -0.024628320708870888, -0.023535987362265587, 0.003966061398386955, 0.011888657696545124, 0.015406989492475986, 0.005709350109100342, 0.04087361320853233, -0.007392306812107563, 0.010770920664072037, -0.017096295952796936, 0.027181332930922508, -0.002329148119315505, 0.013476353138685226, -0.01120277401059866, 0.0006231701700016856, -0.007405008189380169, -0.00023279573360923678, 0.036250244826078415, -0.0031388725619763136, -0.013870101422071457, 0.024933157488703728, -6.216816836968064e-05, -0.016766056418418884, 0.0009454722166992724, 0.0059411535039544106, -0.03233816474676132, 0.00808454118669033, 0.024755336344242096, 0.001971916761249304, -0.015826141461730003, 0.016677144914865494, -0.04920583590865135, 2.037954982370138e-05, -0.03061075508594513, 0.002983278362080455, -0.011177371256053448, -0.017909197136759758, 0.0025990563444793224, 0.010180298238992691, 0.004845644347369671, 5.919124305364676e-05, 0.022176919505000114, 0.009462660178542137, 0.016194486990571022, 0.0028197458013892174, -0.011120214127004147, -0.009361048229038715, 0.02720673754811287, -0.018671290948987007, -0.0004624160937964916, -0.01926826313138008, -0.0054807220585644245, 0.01817592978477478, -0.016130978241562843, 0.023154940456151962, -0.007957525551319122, -0.03434501215815544, -0.02626682072877884, 0.007214484736323357, 0.027003511786460876, 0.016575533896684647, -0.003292878856882453, 0.01023110467940569, 0.02611440233886242, 0.023993242532014847, 0.02672407776117325, -0.004502702038735151, -0.010015178471803665, 0.0032738265581429005, 0.0002574050158727914, 0.00481706578284502, 0.026190612465143204, -0.0006326963775791228, 0.008078190498054028, -0.021808573976159096, 0.015457795932888985, 0.015851544216275215, 0.01094239205121994, 0.013730384409427643, -0.02216421812772751, 0.00793212279677391, 0.004315354395657778, 0.006903296802192926, 0.015889648348093033, -0.013882802799344063, 0.002003670670092106, -0.03048373945057392, -0.002440286800265312, 0.05227961391210556, -0.0001410071417922154, 0.04204215481877327, 0.015495900996029377, -0.01522916741669178, 0.004820241127163172, 0.0183283481746912, 0.007646337617188692, 0.01101860124617815, 0.013831996358931065, 0.033481307327747345, -0.023485179990530014, -0.022900909185409546, -0.006423812825232744, 0.0016250055050477386, -0.0032468356657773256, -0.01068201009184122, -0.029289793223142624, -0.011405998840928078, 0.013908205553889275, -0.0008271889528259635, -0.0058331904001533985, 0.01817592978477478, 0.031017204746603966, -0.008554499596357346, 0.06330456584692001, -0.02875632606446743, 0.01256819162517786, -0.028324473649263382, -0.00636030500754714, -0.018366452306509018, 0.05304170399904251, -0.03571677953004837, 0.02611440233886242, 0.03320187330245972, -0.023447075858712196, -0.04221997782588005, -0.006401584949344397, -0.035945408046245575, -0.05103486031293869, -0.018252138048410416, -0.01460679154843092, -0.007512971293181181, -0.017972704023122787, -0.0026450995355844498, 0.0037755381781607866, 0.023167641833424568, 0.05553121119737625, 0.03924781456589699, 0.014822717756032944, 0.0071192230097949505, -0.009469011798501015, -0.002313271164894104, -0.010351769626140594, -0.03373533859848976, -0.011787045747041702, -0.019433382898569107, -0.027714800089597702, -0.005261620506644249, 0.031322043389081955, -0.0018941197777166963, 0.005252094008028507, 0.009570623748004436, 0.011723537929356098, 0.013438248075544834, -0.013552562333643436, 0.016829563304781914, 0.0005187792703509331, 0.01531807892024517, 0.019255561754107475, -0.024158362299203873, -0.002162440214306116, -0.022088009864091873, 0.025580937042832375, -0.003848572028800845, -0.0166898462921381, 0.038257092237472534, -0.015216466039419174, 0.015940455719828606, -0.004318529739975929, 0.014555985108017921, -0.00022664341668132693, -0.0008021827670745552, -0.03683451935648918, -0.021109988912940025, -0.012199846096336842, -0.006738176569342613, -0.012822222895920277, 0.046462297439575195, 0.010193000547587872, -0.012949238531291485, -0.005464845336973667, -0.01580073870718479, -0.04158490151166916, 0.015915051102638245, 0.00965318363159895, 0.027613187208771706, -0.033938564360141754, 0.01726141758263111, -0.04143248125910759, -0.004420142155140638, -0.043388523161411285, 0.016588235273957253, 0.013984414748847485, 0.022697683423757553, 0.01909044198691845, -0.024488603696227074, 0.004394738934934139, -0.018518870696425438, -0.015978559851646423, -0.01614367961883545, -0.017528150230646133, -0.0015130731044337153, -0.019077740609645844, -0.02459021657705307, 0.0031277586240321398, -0.04318529739975929, -0.022265831008553505, -0.001686131814494729, -0.007487568538635969, -0.026088999584317207, -0.011590171605348587, -0.002252938924357295, -0.03203332796692848, 0.010999549180269241, -0.005071097053587437, -0.024082154035568237], "id": 77}, {"title": "Gray wolf", "text": "The gray wolf or grey wolf (Canis lupus) also known as the timber wolf, or western wolf, is a canid native to the wilderness and remote areas of North America and Eurasia. It is the largest extant member of its family, with males averaging 43\u201345 kg (95\u201399 lb), and females 36\u201338.5 kg (79\u201385 lb). Like the red wolf, it is distinguished from other Canis species by its larger size and less pointed features, particularly on the ears and muzzle.", "vector": [-0.007719092071056366, -0.008680134080350399, -0.00616989191621542, 0.01832900010049343, 0.03856470808386803, 0.003325206460431218, 0.0006165086524561048, -0.030169041827321053, 0.006873374804854393, 0.02584819495677948, -0.06003054976463318, 0.0001552083413116634, 3.4147036785725504e-05, -0.03542786464095116, -0.016483798623085022, 0.05815459415316582, -0.029261818155646324, 0.011740093119442463, 0.024079877883195877, 0.021388959139585495, 0.02177337557077408, 0.004193988628685474, 0.0741770938038826, -0.01983591355383396, 0.028446853160858154, -0.0006419763085432351, -0.015714963898062706, -0.03521259129047394, -0.047237154096364975, -0.02111217752099037, 0.034812796860933304, 0.014138855040073395, 0.02944633737206459, 0.05630939453840256, -0.019067080691456795, -0.055110011249780655, 0.010679102502763271, 0.0029254129622131586, 0.03721155971288681, 0.019543757662177086, 0.0278010331094265, 0.057785555720329285, -0.029031166806817055, -0.04434633627533913, 0.014384881593286991, 0.008088132366538048, 0.0249102171510458, 0.0359506718814373, 0.04800598695874214, -0.026601651683449745, -0.004559184890240431, -0.048867080360651016, -0.01900557428598404, 0.021158307790756226, 0.009195253252983093, -0.04997420310974121, 0.05080454424023628, 0.08955377340316772, -0.0032617778051644564, -0.048159755766391754, 0.015684211626648903, -0.0347512923181057, -0.0533570721745491, 0.00979494396597147, 0.00257943756878376, 0.014923065900802612, 0.03850319981575012, -0.02540227212011814, 0.00041541055543348193, 0.004343911539763212, 0.005996904335916042, 0.003413622500374913, 0.004539964254945517, 0.014900000765919685, 0.046898867934942245, 0.0010494582820683718, -0.01599174551665783, 0.012393602170050144, 0.020927658304572105, 0.0036481167189776897, 0.013423839583992958, 0.003546246327459812, -0.004055598750710487, 0.040748193860054016, -0.01797533594071865, 0.016499174758791924, -0.014538648538291454, -0.07485366612672806, -0.03653498739004135, 0.025171620771288872, 0.03665800020098686, 0.008134262636303902, -0.0024679568596184254, 0.01969752460718155, 0.02352631650865078, -0.032414037734270096, -0.019743654876947403, -0.006166047882288694, -0.003603908699005842, -0.021404335275292397, 0.017683180049061775, 0.0030157507862895727, 0.029815377667546272, -0.028600620105862617, -0.026401754468679428, 0.010463829152286053, 0.043392982333898544, 0.004059442784637213, -0.029061920940876007, 0.01634540781378746, -0.002018188824877143, -0.0060968524776399136, -0.00863400474190712, -0.017191125079989433, 0.00510121276602149, 0.006054566707462072, -0.002517930930480361, -0.0730084627866745, 0.0038999097887426615, 0.028462229296565056, 0.006600438617169857, 0.014154232107102871, -0.013170124031603336, -0.01343921571969986, -0.008580186404287815, -0.022096285596489906, 0.01763704977929592, 0.04182456433773041, 0.018821053206920624, -0.03764210641384125, -0.025525284931063652, 0.02667853608727455, -0.03416697680950165, -0.019636016339063644, -0.02910805121064186, -0.007757533807307482, 0.019513003528118134, 0.0001658999390201643, 0.012332095764577389, 0.03339814394712448, 0.004785990808159113, -0.0023929954040795565, 0.041424769908189774, 0.05043550208210945, 0.010755985975265503, -0.01819060929119587, -0.03161444887518883, -0.0036154412664473057, -0.010333127342164516, 0.006512023042887449, -0.005454876460134983, -0.003392479382455349, 0.040871210396289825, 0.019036326557397842, -0.01937461458146572, 0.04646832123398781, -0.013223942369222641, -0.012447420507669449, -0.03896450251340866, 0.023587822914123535, -0.0033098298590630293, -0.010179360397160053, 0.012601187452673912, -0.02271135337650776, 0.0072731683030724525, 0.025125490501523018, 0.05609412118792534, 0.02875438705086708, -0.014646285213530064, 0.01281646080315113, -0.020235707983374596, -0.041332509368658066, -0.006250619422644377, -0.026340248063206673, -0.0004766769998241216, -0.0147769870236516, 0.002154656918719411, 0.06667327135801315, 0.019313106313347816, 0.08248049765825272, 0.03675026074051857, 0.008833901025354862, -0.02675541862845421, 0.034136224538087845, -0.018036842346191406, 0.0044515482150018215, -0.0059584625996649265, 0.03129153698682785, -0.026171104982495308, -0.0056047989055514336, 0.04314695671200752, -0.01008710078895092, 0.007519195321947336, -0.04105572775006294, 0.05920020863413811, 0.027170589193701744, 0.020804645493626595, 0.054464191198349, 0.043054696172475815, 0.05984602868556976, 0.04588400572538376, -0.0521884448826313, 0.0021565789356827736, 0.014346440322697163, -0.019328484311699867, -0.013062487356364727, 0.01147100143134594, 0.01436950545758009, -0.04453085735440254, 0.04296243563294411, -0.0019643704872578382, -0.015484314411878586, -0.01935923658311367, 0.017206503078341484, 0.03896450251340866, 0.004759081639349461, 0.02815469726920128, 0.0046706655994057655, 0.02400299347937107, 0.040994223207235336, 0.027416616678237915, -0.008126573637127876, 0.04566873237490654, 0.014861558564007282, 0.012862591072916985, 0.021358205005526543, 0.0243412796407938, 0.056862954050302505, 0.014008153229951859, -0.03558163344860077, -0.02051248773932457, 0.023956863209605217, 0.0742385983467102, 0.045022912323474884, -0.04394654557108879, 0.03462827950716019, -0.007822884246706963, -0.03733457252383232, -0.02618648111820221, -0.03687327355146408, -0.028446853160858154, 0.013346956111490726, -0.01888255961239338, -0.05274200439453125, 0.01124804001301527, -0.024418164044618607, -0.016622187569737434, -0.07202436029911041, -0.057570282369852066, -0.043392982333898544, -0.009087616577744484, 0.027539629489183426, -0.004059442784637213, -0.020558618009090424, -0.02306501567363739, -0.04474613070487976, 0.030461197718977928, 0.0347512923181057, -0.01280877273529768, 0.005424122791737318, -0.03973333537578583, -0.010064035654067993, -0.03272157162427902, 0.004736016504466534, -0.07368503510951996, -0.04508441686630249, 0.03533560410141945, -0.014530960470438004, -0.005497162230312824, -0.06796491146087646, -0.0440080501139164, 0.032291021198034286, -0.031583696603775024, 0.019851291552186012, -0.019266976043581963, 0.03410547226667404, 0.0018749936716631055, 0.013892828486859798, 0.08094283193349838, 0.03407471626996994, -0.0022642158437520266, -0.011025077663362026, -0.010855934582650661, 0.007642208598554134, 0.08155789971351624, 0.002369930502027273, -0.03687327355146408, -0.03330588340759277, 0.042378123849630356, 0.004128637723624706, -0.011517131701111794, 0.030322808772325516, 0.015445872209966183, -0.03887224197387695, -0.0021142931655049324, 0.0014848103746771812, 0.017683180049061775, 0.0027793345507234335, -0.027893293648958206, 0.015368989668786526, 0.004955134354531765, 0.029400207102298737, -0.025909701362252235, -0.03155294060707092, 0.03693477809429169, 0.018959444016218185, -0.028785141184926033, 0.023341797292232513, -0.04228586331009865, 0.005358772352337837, 0.004697574768215418, 0.015015325509011745, -0.010809804312884808, -0.016299277544021606, 0.012531992048025131, -0.0196821466088295, 0.00817270390689373, 0.033551909029483795, -0.03198349103331566, 0.02467956766486168, 0.01832900010049343, 0.017191125079989433, -0.0272474717348814, 0.03902600705623627, -0.008211146108806133, -0.0011561339488252997, -0.010832869447767735, -0.02271135337650776, -0.03281382843852043, -0.056032612919807434, -0.03352115675806999, 0.0007265480235219002, -0.02886202372610569, 0.008510990999639034, 0.07780598849058151, -0.00016914345906116068, -0.024833334609866142, 0.010371568612754345, 0.009241383522748947, 0.018405882641673088, 0.03026130050420761, -0.009864138439297676, -0.011286481283605099, -0.008434107527136803, 0.005943085998296738, -0.00864169280976057, 0.025340763852000237, 0.04250113666057587, -0.01726800948381424, 0.011148091405630112, 0.0008817563648335636, 0.016837462782859802, -0.04462311789393425, -0.0035923763643950224, -0.001383900991640985, -0.02852373756468296, -0.00021575400023721159, -0.04588400572538376, 0.023849226534366608, 0.008311093784868717, -0.004889783449470997, 0.02944633737206459, -0.008726264350116253, -0.04668359458446503, -0.030169041827321053, -0.03144530579447746, 0.018036842346191406, -0.010333127342164516, 0.01692972145974636, -0.00582776078954339, -0.015330547466874123, 0.0039287409745156765, -0.013285449706017971, -0.005416434723883867, -0.007161687593907118, -0.024156760424375534, 0.05015872046351433, 0.0038672343362122774, 0.036104440689086914, 0.01891331374645233, -0.01771393232047558, 0.06224479153752327, 0.027662642300128937, 0.04010237380862236, 0.0359506718814373, 0.009064551442861557, -0.027416616678237915, 0.0001782733597792685, 0.006758049596101046, -0.0202664602547884, 0.02783178724348545, 0.002466034609824419, 0.04419257119297981, 0.012877967208623886, 0.013400774449110031, -0.07202436029911041, -0.03416697680950165, 0.004263184033334255, 0.022988133132457733, 0.021281322464346886, -0.0025275414809584618, -0.013985088095068932, -0.04157853499054909, 0.03754984587430954, 0.05037399381399155, 0.023095769807696342, 0.00990258064121008, 0.030538082122802734, 0.032967597246170044, -0.02630949579179287, 0.002621723571792245, 0.07343900948762894, -0.05148111656308174, -0.012270588427782059, -0.0008913667988963425, -0.02689380943775177, -0.0486825592815876, 0.049082353711128235, -0.007980495691299438, -0.012001496739685535, -0.024279773235321045, 0.010463829152286053, 0.0045553408563137054, -0.027877915650606155, -0.035858411341905594, 0.03545861691236496, -0.023510940372943878, 0.08020474761724472, 0.03985634818673134, -0.0144925182685256, -0.03259855508804321, -0.012324406765401363, -0.02841610088944435, -0.01971290074288845, -0.032291021198034286, 0.0076268319971859455, 0.019051702693104744, 0.006481269374489784, -0.008203457109630108, -0.03001527488231659, -0.00437466474249959, 0.0869089812040329, 0.009487410075962543, 0.016499174758791924, -0.032291021198034286, -0.01983591355383396, -0.030184417963027954, 0.029231064021587372, 0.06276759505271912, 0.0284007228910923, -0.006431295536458492, 0.008264964446425438, 0.031921982765197754, -0.04760619252920151, -0.01657605916261673, -0.0029561661649495363, 0.0004613003402482718, -0.016376161947846413, -0.021127555519342422, 0.002319956198334694, 0.012086068280041218, -0.02072776108980179, 0.03219876438379288, -0.03235252946615219, -0.05031248927116394, 0.045268937945365906, 0.006950258277356625, 0.026263365522027016, -0.023849226534366608, 0.0336134172976017, -0.0336134172976017, -0.006458204705268145, -0.03126078471541405, -0.002252683276310563, -0.009956398978829384, -0.014338752254843712, 0.037396080791950226, 0.022111661732196808, -0.04831352084875107, 0.014930753968656063, 0.018974820151925087, 0.012478173710405827, -0.024079877883195877, -0.02235768921673298, 0.0007289506029337645, -0.006638880353420973, 0.03003065101802349, 0.037611354142427444, -0.0029119583778083324, -0.022173168137669563, -0.011724716983735561, 0.0440388061106205, 0.007792131509631872, -0.04034840315580368, -0.02852373756468296, -0.002125825732946396, 0.044469352811574936, -0.03896450251340866, 0.02235768921673298, 0.04314695671200752, -0.023510940372943878, -0.029246440157294273, 0.020943034440279007, -0.0029446338303387165, 0.005839293356984854, 0.007211661897599697, -0.018390506505966187, 0.01957450993359089, -0.02920030988752842, -0.019389990717172623, -0.019313106313347816, 0.025202374905347824, -0.016084004193544388, -0.03327513113617897, -0.010056346654891968, 0.027401238679885864, -0.014354128390550613, -0.0056047989055514336, 0.009548916481435299, 0.057662539184093475, -0.016437668353319168, -0.0023449433501809835, -0.026986069977283478, 0.027185965329408646, -0.007684494834393263, 0.0671653300523758, 0.04348524287343025, 0.009372085332870483, -0.01645304448902607, -0.034474510699510574, -0.032414037734270096, -0.026801548898220062, 0.020773891359567642, 0.0002866308786906302, 0.017683180049061775, -0.02980000153183937, 0.010556088760495186, -0.049543656408786774, -0.008034314028918743, 0.04656057804822922, 0.016391538083553314, -0.02038947492837906, -0.03816491365432739, 0.0038518577348440886, 0.0012656927574425936, -0.02583281882107258, -0.011440248228609562, -0.03607368469238281, -0.06209102272987366, -0.018452012911438942, 0.017560165375471115, -0.01948225125670433, 0.02269597537815571, -0.00515887513756752, 0.049666669219732285, 0.02944633737206459, -0.005239602643996477, 0.032875336706638336, 0.001452135038562119, -0.01705273613333702, 0.04714489355683327, 0.01048689428716898, 0.006385165266692638, 0.021988648921251297, -0.015053767710924149, 0.038779981434345245, -0.006711919791996479, 0.015676522627472878, -0.029261818155646324, 0.0049666669219732285, -0.012086068280041218, -0.007542260456830263, -0.005389525555074215, -0.013985088095068932, 0.02398761734366417, 0.010125542059540749, -0.02038947492837906, -0.028462229296565056, -0.008295717649161816, 0.006196801085025072, -0.0029734650161117315, -0.04613003134727478, -2.961962536573992e-06, 0.015453561209142208, 0.015960991382598877, -0.020435605198144913, -0.02203477919101715, -0.039241280406713486, 0.011724716983735561, -0.00816501583904028, -0.016160888597369194, 0.025125490501523018, 0.005320330616086721, -0.007596078794449568, -0.026155728846788406, -0.01888255961239338, 0.009495098143815994, -0.021158307790756226, -0.023249536752700806, -0.008657069876790047, -0.011148091405630112, 0.010663725435733795, 0.01078673917800188, -0.008826212957501411, -0.014746233820915222, -0.0544949434697628, 0.0405636765062809, 0.01077905111014843, -0.03256780281662941, -0.009356708265841007, -0.028785141184926033, -0.056155625730752945, 0.03428998962044716, -0.005485629662871361, 0.03312136232852936, -0.006285217124968767, -0.01855964958667755, 0.012001496739685535, -0.026048092171549797, -0.03742683306336403, 0.013093240559101105, -0.00915681105107069, -0.015222910791635513, 0.00245065800845623, 0.014730856753885746, 0.024495046585798264, 0.00034092977875843644, -0.037396080791950226, 0.0024833334609866142, 0.015015325509011745, 0.055479053407907486, -0.044684626162052155, -0.02710908278822899, -0.00863400474190712, -0.00834184791892767, 0.01889793761074543, 0.024064499884843826, -0.02294200286269188, -0.009425903670489788, 0.036104440689086914, 0.004962822888046503, 0.051542624831199646, -0.004778302740305662, -0.03385944291949272, -0.0036346621345728636, -0.010240866802632809, 0.03410547226667404, 0.010348504409193993, 0.010171672329306602, 0.047483179718256, 0.005658617243170738, -0.006508178543299437, 0.004109417088329792, -0.014523272402584553, 0.02178875170648098, 0.0254945307970047, 0.021404335275292397, -0.054064396768808365, 0.026601651683449745, -0.007519195321947336, -0.012416667304933071, -0.01646842248737812, -0.04250113666057587, -0.04843653365969658, 0.005316486116498709, -0.005639396607875824, -0.03198349103331566, -0.034966565668582916, 0.014292621985077858, -0.037857379764318466, -0.02444891817867756, -0.02829308621585369, 0.026140352711081505, -0.039579566568136215, 0.009610423818230629, -0.03548937290906906, -0.026586275547742844, -0.028800517320632935, -0.013293137773871422, 0.03908751532435417, -0.051880910992622375, -0.006969478912651539, 0.02435665763914585, -0.013370021246373653, -0.0579393208026886, 0.011132714338600636, -0.032168008387088776, -0.010625284165143967, -0.022511456161737442, 0.0068618422374129295, 0.008795459754765034, 0.02191176638007164, -0.010210113599896431, 0.015345924533903599, 0.01902095042169094, 0.042593397200107574, 0.007184752728790045, 0.019097832962870598, -0.020450981333851814, 0.025479154661297798, -0.004520743153989315, -0.03176821395754814, 0.008303405717015266, 0.0009937178110703826, -0.0266631580889225, -0.018375130370259285, -0.02675541862845421, -0.016898969188332558, 0.01222445908933878, 0.029630858451128006, 0.007007920648902655, 0.02480258047580719, -0.00962579995393753, 0.02226542867720127, 0.026263365522027016, 0.01321625430136919, 0.0011205753544345498, -0.017913829535245895, -0.02340330369770527, 0.034351497888565063, 0.0324755422770977, 0.023803096264600754, 0.014969195239245892, 0.024725697934627533, -0.04302394390106201, -0.01002559345215559, 0.01240897923707962, -0.02015882357954979, 0.030753355473279953, 0.003878766903653741, -0.03126078471541405, -0.02689380943775177, 0.05264974385499954, 0.0038480134680867195, 0.014507895335555077, 0.016299277544021606, 0.008795459754765034, 0.019866667687892914, 0.011125026270747185, -0.03468978404998779, 0.008426419459283352, 0.04047141596674919, 0.047021880745887756, 0.007838261313736439, -0.027908669784665108, 0.024387409910559654, 0.03468978404998779, 9.129902173299342e-05, -0.05022022873163223, 0.03422848507761955, -0.04326996952295303, -0.017560165375471115, 0.012601187452673912, -0.011978431604802608, -0.0324447900056839, -0.004563028924167156, -0.0030887899920344353, -0.028908153995871544, -0.016084004193544388, 0.02976924739778042, -0.0382879264652729, 0.0336441695690155, -0.013739061541855335, 0.02040485106408596, 0.01396971195936203, 0.045268937945365906, -0.049912694841623306, -0.0032367906533181667, 0.002967698732391, -0.005743189249187708, 0.04416181892156601, 0.020943034440279007, 0.0010898220352828503, 0.022465325891971588, 0.05080454424023628, -0.054187413305044174, 0.017652425915002823, 0.005608642939478159, -0.035981424152851105, -0.028462229296565056, -0.03868772089481354, -0.029246440157294273, 0.02191176638007164, 0.009179876185953617, -0.01206300314515829, -0.004889783449470997, -0.01546893734484911, 0.04207058995962143, 0.005608642939478159, 0.03791888803243637, 0.0055702016688883305, -0.022219298407435417, 0.001698161824606359, 0.025479154661297798, -0.01280877273529768, 0.03290608897805214, 0.011463313363492489, 0.03896450251340866, 0.021757999435067177, -0.00553560396656394, -0.0029273349791765213, -0.017006605863571167, -0.015476626344025135, 0.014930753968656063, 0.017360268160700798, -0.018021466210484505, -0.02235768921673298, -0.0021892543882131577, -0.008018936961889267, -0.0029388675466179848, 0.02086615189909935, 0.016729824244976044, -0.006219866219907999, 0.005120433401316404, -0.004193988628685474, 0.015661146491765976, 0.03272157162427902, 0.018867183476686478, 0.011924613267183304, -0.01785232312977314, -0.014800052158534527, 0.008449484594166279, 0.008188080973923206, -0.0033847910817712545, -0.038779981434345245, 0.02654014527797699, 0.011078896000981331, 0.01281646080315113, 0.007196285296231508, -0.02793942391872406, 0.00816501583904028, 0.014477142132818699, -0.02690918557345867, -0.004428483080118895, 0.013477657921612263, 0.001260887598618865, 0.018851807340979576, 0.013254696503281593, 0.019989680498838425, -0.0017289151437580585, -0.016068628057837486, 0.016376161947846413, 0.003033049637451768, 0.03456677123904228, -0.010648349300026894, 0.01314705889672041, -0.0027947111520916224, -0.004094040486961603, -0.008534056134521961, 0.01430799812078476, -0.009771878831088543, -0.0029061920940876007, -0.021465841680765152, 0.00886465422809124, 0.017790816724300385, -0.010794427245855331, -0.023434055969119072, 0.009010733105242252, -0.016406914219260216, -0.004328534938395023, -0.0010494582820683718, -0.012908720411360264, -0.0035231811925768852, -0.002904270077124238, -0.0009706527926027775, 0.02735511027276516, 0.039794839918613434, 0.011978431604802608, 0.05612487345933914, -0.0072731683030724525, -0.0007577819051221013, 0.017175748944282532, 0.0202664602547884, -0.012877967208623886, -0.01891331374645233, 0.022526832297444344, -0.028262333944439888, -0.019282354041934013, 0.010755985975265503, 0.018390506505966187, -0.016022497788071632, -0.015146027319133282, 0.06704231351613998, 0.03490505740046501, -0.007061738986521959, -0.03653498739004135, -0.02145046554505825, -0.014146543107926846, 0.0011465235147625208, -0.05744726583361626, -0.03570464625954628, 0.021542726084589958, -0.035304851830005646, 0.02052786387503147, -0.005262667778879404, 0.06107616424560547, 0.03490505740046501, 0.016253147274255753, -0.019728276878595352, 0.0018077206332236528, 0.01725263148546219, -0.028462229296565056, 0.042470384389162064, -0.01728338561952114, -0.01321625430136919, -0.008587874472141266, 0.03290608897805214, 0.019174717366695404, -0.009433591738343239, 0.02261909283697605, -0.008326470851898193, 0.006823400501161814, -0.020804645493626595, -0.04656057804822922, 0.01762167178094387, -0.04222435504198074, 0.0130394222214818, -0.012309030629694462, -0.02065087854862213, 0.04554571956396103, 0.006569685414433479, 0.0022469169925898314, -0.015515067614614964, 0.038656968623399734, 0.0034366874024271965, -0.03512033075094223, -2.2794723918195814e-05, -0.0283853467553854, 0.022173168137669563, -0.004812899976968765, -0.021865636110305786, 0.001357952831313014, -0.013954334892332554, -0.0393950492143631, -0.012101445347070694, -0.026524769142270088, 0.025586791336536407, 0.028585243970155716, -0.03653498739004135, -0.021296698600053787, 0.005581733770668507, -0.034966565668582916, 0.03871847316622734, -0.027985552325844765, -0.03419772908091545, 0.0335826650261879, -0.04382353276014328, 0.002994607901200652, 0.04674509912729263, 0.013962022960186005, 0.05172714218497276, -0.022111661732196808, 0.030860992148518562, -0.0301229115575552, -0.003438609419390559, 0.0016750968061387539, 0.006727296393364668, 0.06289061158895493, 0.014761610887944698, 0.023710837587714195, -0.03226026892662048, 0.04825201258063316, -0.012032249942421913, 0.017221879214048386, -0.028123943135142326, 0.013254696503281593, -0.04563798010349274, -0.011455624364316463, -0.0005871968460269272, 0.0475446879863739, 0.00020518254314083606, 0.025217751041054726, 0.011409495025873184, 0.015084520913660526, 0.016391538083553314, 0.01117884460836649, -0.01060221903026104, 0.004267028067260981, 0.034935809671878815, 0.003944117575883865, -0.021527348086237907, 0.011271104216575623, -0.019743654876947403, 0.022757483646273613, 0.05830836296081543, 0.0007371194660663605, 0.007834416814148426, 0.042039837688207626, -0.01570727676153183, 0.007015609182417393, -0.028262333944439888, 0.021527348086237907, 0.0440388061106205, 0.02191176638007164, -0.021235192194581032, -0.002452580025419593, 0.005946930032223463, 0.016837462782859802, -0.03232177719473839, -0.011747781187295914, -0.017821568995714188, -0.034013211727142334, -0.02308039367198944, -0.029415583238005638, 0.013715996406972408, 0.01636078581213951, -0.03838018700480461, 0.01263962872326374, -0.03149143606424332, 0.02421826682984829, 0.029707740992307663, -0.03816491365432739, 0.0022373066749423742, -0.06974861025810242, 0.009664242155849934, -0.019190093502402306, -0.00788823515176773, 0.02269597537815571, 0.009433591738343239, 0.04732941463589668, -0.0034405316691845655, -0.013646801002323627, -0.015161404386162758, -0.006339035462588072, -0.018605779856443405, 0.008787770755589008, 0.01995892822742462, -0.008487925864756107, 0.04812899976968765, 0.0032848427072167397, 0.03834943473339081, -0.024418164044618607, 0.028785141184926033, 0.03438225015997887, -0.012255212292075157, 0.00017863375251181424, 0.015837978571653366, -0.00961811188608408, 0.0312761627137661, 0.0020431759767234325, -0.0032560115214437246, 0.005285732913762331, 0.025909701362252235, 0.01320856623351574, -0.022926626726984978, -0.00914912298321724, -0.003967182710766792, -0.03173746168613434, -0.026171104982495308, 0.01299329288303852, 0.013008669018745422, 0.01725263148546219, 0.030415067449212074, -0.010502270422875881, 0.02989226207137108, 0.00852636806666851, -0.018482767045497894, 0.011855418793857098, 0.021388959139585495, 0.00980263203382492, 0.019559133797883987, 0.0018932534148916602, 0.012278277426958084, 0.03315211832523346, 0.008380289189517498, -0.027385862544178963, 0.021542726084589958, 0.013546853326261044, 0.01691434532403946, -0.04010237380862236, 0.018698040395975113, -0.004578405525535345, -0.0033944016322493553, 0.02492559514939785, -0.023710837587714195, 0.020327968522906303, 0.007830573245882988, -0.0020239551085978746, -0.01460015494376421, -0.020128071308135986, 0.029999898746609688, -0.014361816458404064, 0.028662126511335373, -0.01460015494376421, -0.0278164092451334, 0.009495098143815994, -0.023495562374591827, 0.05815459415316582, -0.032383281737565994, -0.01600712165236473, -0.011394117958843708, 0.017437152564525604, -0.0029965301509946585, 0.008695511147379875, 0.043762024492025375, -0.03638121858239174, -0.01636078581213951, 0.03850319981575012, -0.00669654319062829, 0.0034366874024271965, -0.0005131966318003833, -0.03616594523191452, 0.00991026870906353, 0.00817270390689373, -0.012801083736121655, -0.011301858350634575, -0.007822884246706963, 0.03964107483625412, -0.02804706059396267, -0.018621155992150307, -0.015315170399844646, 0.03638121858239174, 0.001308939652517438, 0.00768065033480525, -0.0074077146127820015, 0.003759597660973668, 0.022865120321512222, -0.041424769908189774, 0.015545820817351341, 0.00984107330441475, -0.040994223207235336, 0.019559133797883987, 0.023387925699353218, -0.01280877273529768, -0.005097368732094765, -0.01725263148546219, -0.015207533724606037, -0.04127100110054016, -0.026986069977283478, 0.06246006488800049, -0.01809834875166416, -0.009233694523572922, -0.01299329288303852, 0.02514086849987507, 0.005781630985438824, -0.0003241115191485733, -0.034597523510456085, -0.040625181049108505, -0.02733973227441311, -0.043977297842502594, -0.006196801085025072, 0.01565345749258995, -0.02095841057598591, -0.015522755682468414, 0.019882043823599815, -0.010256243869662285, -0.026001961901783943, -0.006512023042887449, 0.009556605480611324, 0.03951806202530861, -0.034843552857637405, 0.011570950038731098, 0.017652425915002823, -0.000978341093286872, 0.006442828103899956, 0.014331063255667686, -0.04508441686630249, 0.011255728080868721, -0.0015934081748127937, 0.02540227212011814, 0.020143447443842888, -0.04696037247776985, -0.010802116245031357, 0.00215850118547678, -0.0038518577348440886, -0.027201343327760696, -0.0009908346692100167, 0.0016529927961528301, -0.016837462782859802, 0.0004629821632988751, -0.005474097095429897, -0.009202941320836544, 0.012939474545419216, 0.026724666357040405, -0.012262900359928608, -0.01912858709692955, -0.010140919126570225, 0.009848762303590775, 0.016253147274255753, -0.03281382843852043, -0.0020527865272015333, -0.029738495126366615, 0.008780082687735558, -0.0039518061093986034, -0.010986636392772198, 0.0015222911024466157, 0.01368524320423603, 0.015322859399020672, -0.007219349965453148, 0.018636533990502357, -0.009702683426439762, -0.007772910408675671, -0.004459236282855272, 0.011309546418488026, 0.0020047342404723167, 0.021050671115517616, 0.023695459589362144, 0.00457456149160862, 0.002398761687800288, 0.03764210641384125, -0.012877967208623886, -0.007073271553963423, -0.027170589193701744, 0.018528897315263748, -0.027631890028715134, -0.013108617626130581, -0.03139917552471161, -0.02272672951221466, -0.021819505840539932, 0.017790816724300385, 0.03278307616710663, -0.006842621602118015, 0.021834881976246834, 0.005704747512936592, -0.017529413104057312, 0.003298297291621566, -0.01771393232047558, 0.026724666357040405, 0.05440268665552139, 0.016637565568089485, -0.01597636751830578, 0.002735126530751586, 0.008257275447249413, -0.008141950704157352, -0.01216295175254345, 0.01694509945809841, -0.014523272402584553, -0.044315584003925323, 0.02747812308371067, -0.032875336706638336, -0.01694509945809841, 0.004501522518694401, -0.003905676072463393, 0.053941383957862854, 0.035181839019060135, 0.015315170399844646, 2.8455862775444984e-05, -0.016253147274255753, -0.009779566898941994, -0.017529413104057312, 0.03324437513947487, -0.03779587522149086, -0.012078380212187767, 0.03149143606424332, 6.012521043885499e-05, -0.0007476909668184817, 0.03548937290906906, -0.031583696603775024, -0.01390051655471325, -0.014592466875910759, -0.007496130187064409, 0.014538648538291454, -0.013562229461967945, -0.0039594946429133415, -0.06233705207705498, 0.0012435887474566698, -0.008403354324400425, -0.006750361528247595, 0.01234747190028429, -0.013823633082211018, -0.008772394619882107, 0.012416667304933071, 0.015038390643894672, -0.023726213723421097, -0.006104541011154652, 0.003990247845649719, 0.00611222954466939, 0.014538648538291454, 0.013785191811621189, -0.026232611387968063, 0.009133746847510338, 0.023710837587714195, -0.003357881912961602, -0.013915893621742725, 0.00991026870906353, 0.02283436618745327, 0.0023353327997028828, -0.005320330616086721, 0.0013877451419830322, 0.05120433494448662, 0.015668833628296852, -0.017467904835939407, -0.017929205670952797, 0.0055702016688883305, 0.013370021246373653, 0.0196821466088295, 0.018159857019782066, -0.023141900077462196, 0.03502807021141052, -0.00567783834412694, -0.01636078581213951, 0.002106604864820838, -0.0008024703711271286, 0.0014886546414345503, -0.04671434685587883, -0.026986069977283478, -0.00023965993023011833, -0.0023276444990187883, -0.022203922271728516, 0.0062890611588954926, 0.04164004325866699, 0.02015882357954979, -0.045607224106788635, -0.012378225103020668, -0.009894891642034054, -0.009464344941079617, -0.04105572775006294, -0.005058926995843649, 0.004163235425949097, 0.02225005254149437, 0.002615957288071513, -0.021004540845751762, 0.004924381151795387, 0.007400026079267263, 0.030691849067807198, 0.023372549563646317, 0.018821053206920624, -0.024864086881279945, -0.025340763852000237, 0.039333540946245193, -0.023264912888407707, 0.016975851729512215, -0.04545345902442932, -0.0076268319971859455, 0.009487410075962543, 0.004778302740305662, -0.03302910178899765, -0.007799819577485323, -0.017544789239764214, -0.004336223006248474, -0.015476626344025135, 0.014915376901626587, 0.013646801002323627, 0.04373127222061157, -0.013431527651846409, -0.0046937307342886925, -0.01049458235502243, -0.014984572306275368, -0.021465841680765152, 0.010210113599896431, 0.007607611361891031, -0.0035385580267757177, -0.00012853941007051617, 0.006419762969017029, -0.006857998203486204, 0.007461532950401306, -0.023372549563646317, -0.01875954680144787, 0.024710319936275482, -0.03189123049378395, -0.027078328654170036, 0.0007347168866544962, -0.005028173327445984, -0.006915660575032234, 0.02678617276251316, 0.02411063015460968, -0.0022738261613994837, -0.03186047449707985, 0.006550464779138565, -0.0020470202434808016, -0.014108101837337017, -0.000948068278376013, -0.04034840315580368, -0.021634984761476517, 0.036227453500032425, 0.011570950038731098, -0.014615532010793686, 0.011324922554194927, 0.017667802050709724, -0.009010733105242252, -0.001334887812845409, 0.004605314694344997, -0.0018413570942357183, -0.008095820434391499, 0.0004903718363493681, -0.006669634021818638, -0.008541744202375412, -0.01875954680144787, -0.040379155427217484, 0.0579700730741024, 0.017314139753580093, -0.009748813696205616, -0.008426419459283352, 0.03149143606424332, 0.024541176855564117, -0.006273684557527304, -0.0031522188801318407, 0.0028177760541439056, 0.039364293217659, 0.012439732439815998, -0.01563808135688305, -0.009764189831912518, 0.01829824596643448, 0.011009701527655125, -0.02560216747224331, -0.014792364090681076, 0.0075307278893888, 0.04262414947152138, -0.027062952518463135, 0.051757898181676865, 0.005481785628944635, 0.03152218833565712, -0.007561481092125177, 0.0428701788187027, 0.010448452085256577, 0.013346956111490726, -0.003215647768229246, 0.010456141084432602, -0.04569948464632034, -0.009710371494293213, -0.010271620936691761, 0.012209082022309303, -0.006727296393364668, -0.02886202372610569, 0.015945615246891975, 0.02641713246703148, 0.015945615246891975, -0.006066099274903536, -0.0260788444429636, 0.00915681105107069, -0.012124510481953621, -0.004416950512677431, -0.03352115675806999, -0.00045529380440711975, 0.0005328980041667819, 0.00834953598678112, -0.009118369780480862, 0.00443232711404562, 0.001973981037735939, 0.011117338202893734, -0.024618061259388924, -0.024310527369379997, -0.016868215054273605, 0.03336739167571068, -0.011678586713969707, -0.024833334609866142, -0.003159907180815935, 0.0031752840150147676, -0.02038947492837906, -0.029507843777537346, 0.006646568886935711, -0.016606811434030533, 0.02966161072254181, 0.009541228413581848, -0.010263931937515736, 0.0074077146127820015, -0.03152218833565712, -0.0225883387029171, 0.014061971567571163, 0.030507327988743782, 0.011901548132300377, 0.002064318861812353, 0.013446904718875885, -0.04157853499054909, 0.04656057804822922, 0.024864086881279945, -0.011978431604802608, -0.019728276878595352, -0.016391538083553314, -0.007438467815518379, 0.004578405525535345, -0.016207018867135048, -0.009272136725485325, 0.009072239510715008, -0.02827771008014679, 0.0030311276204884052, 0.010102476924657822, 0.009472033008933067, -0.03930278867483139, -0.002285358728840947, 0.009602734819054604, -0.002485255477949977, 0.02632487192749977, -0.012301341630518436, -0.05052776262164116, -0.00979494396597147, 0.00904148630797863, -0.04360825568437576, -0.028769763186573982, 0.006761894095689058, 0.027877915650606155, -0.014615532010793686, 0.0237569659948349, 0.01682208478450775, -0.009518163278698921, 0.04268565773963928, -0.013293137773871422, 0.043392982333898544, -0.009102992713451385, 0.0027293602470308542, -0.023203406482934952, -0.003457830287516117, 0.01772930845618248, 0.0179445818066597, 0.007127089891582727, 0.006419762969017029, 0.006454360205680132, 0.020927658304572105, -0.00834953598678112, 0.04360825568437576, 0.004109417088329792, -0.003707701340317726, 0.011586326174438, 0.016729824244976044, 0.01623777113854885, 0.017913829535245895, -0.01240897923707962, 0.008072755299508572, -0.0179445818066597, -0.025786688551306725, 0.004278560634702444, 0.0047821467742323875, 0.024310527369379997, -0.0015828367322683334, -0.03118390217423439, -0.024295151233673096, 0.03419772908091545, -0.014338752254843712, -0.0010754064423963428, -0.0042593395337462425, -0.013077864423394203, 0.050497010350227356, 0.005374148953706026, -0.013293137773871422, 0.007015609182417393, -0.014746233820915222, 0.025340763852000237, -0.00834953598678112, 0.008141950704157352, 0.0057970075868070126, 0.017544789239764214, -0.026386378332972527, 0.0030580367892980576, 0.0417015478014946, 0.014138855040073395, -0.04124024882912636], "id": 78}, {"title": "CUC Broadcasting", "text": "CUC Broadcasting was a Canadian media company, active from 1968 to 1995. Active primarily as a cable television distributor, the company also had some holdings in broadcast media and publishing.The company was founded in 1968 by chairman Geoffrey Conway, with shareholders including Jerry Grafstein, Michael Koerner and Ken Lefolii.", "vector": [0.03923020139336586, -0.0008029687451198697, -0.03432251885533333, -0.020537244156003, 0.018380364403128624, 0.006474546156823635, -0.051264964044094086, 0.023960119113326073, -0.05707915872335434, 0.012910017743706703, -0.026789069175720215, -0.026398329064249992, -0.044325437396764755, -0.01742696203291416, -0.009049516171216965, -0.01351175643503666, -0.021959533914923668, 0.02449152246117592, -0.003225550753995776, 0.05057726055383682, 0.04013671353459358, -0.02777373045682907, -0.024100784212350845, -0.01627037301659584, 0.02320989966392517, -0.00029647324117831886, -0.024319598451256752, 0.00419653719291091, 0.039105162024497986, -0.011948799714446068, 0.020756058394908905, 0.031806159764528275, -0.0024323505349457264, -0.024757225066423416, -0.0205216147005558, -0.024194560945034027, -0.016708001494407654, -0.009338662959635258, -0.04942067340016365, -0.07914809882640839, 0.0006520457682199776, 0.0020455189514905214, 0.013277312740683556, 0.03913642093539238, -0.001182962441816926, -0.0016577104106545448, -0.0507022999227047, -0.025632482022047043, 0.011339247226715088, 0.03335348516702652, 0.01194098498672247, -0.05189014598727226, 0.03713583946228027, 0.012714648619294167, -0.0021881386637687683, 0.028477061539888382, -0.006576138082891703, 0.06620682030916214, 0.006736340932548046, 0.01429323386400938, -0.023678787052631378, 0.021475017070770264, 0.04516943544149399, 0.004720127675682306, 0.006611304823309183, 0.04804527387022972, -0.032259415835142136, 0.009174552746117115, -0.019333768635988235, -0.02133435197174549, -0.07358397543430328, -0.03441629558801651, 0.03463510796427727, 0.0197713952511549, 0.03213438019156456, 0.033634815365076065, 0.04904556646943092, -0.0018374503124505281, 0.020646650344133377, 0.043575219810009, 0.046107206493616104, -0.022584717720746994, -0.004911589901894331, 0.008275852538645267, 0.02300671488046646, -0.007353708613663912, -0.061611734330654144, -0.08696287870407104, 0.006064270157366991, 0.041480857878923416, 0.04223107546567917, -0.017973996698856354, 0.02327241748571396, -0.06058018282055855, 0.018161550164222717, 0.012402057647705078, 0.02097487263381481, -0.013449237681925297, -0.0339786671102047, 0.019505692645907402, 0.007420134264975786, -0.021771980449557304, 0.032572004944086075, -0.037229616194963455, 0.03916768357157707, -0.01475430652499199, -0.0053609395399689674, 0.022944197058677673, 0.031040308997035027, 0.0633935034275055, 0.01170654222369194, 0.018224069848656654, 0.04238737002015114, 0.01616096682846546, -0.03613554686307907, 0.028805281966924667, -0.011159507557749748, 0.04413788393139839, -0.046513576060533524, 0.0288834311068058, -0.008775998838245869, -0.01662985421717167, -0.04395032674074173, -0.033165931701660156, -0.0060564554296433926, -0.014777750708162785, -0.032415710389614105, 0.003499068086966872, 0.030884014442563057, 0.01013577077537775, -0.06458134949207306, 0.021725090220570564, -0.018864881247282028, 0.0006510689272545278, -0.0258512943983078, -0.026851586997509003, 0.009182367473840714, 0.03754220902919769, 0.02782062068581581, -0.03375985473394394, 0.05285917967557907, 0.04470054805278778, -0.013214794918894768, 0.0207873173058033, -0.03197808191180229, -0.022053312510252, 0.007900743745267391, 0.056797828525304794, -0.004055871162563562, -0.030149424448609352, 0.014090050011873245, -0.002317082602530718, 0.01602030172944069, -0.010424917563796043, 0.00396014004945755, 0.028101952746510506, 0.013081943616271019, -0.0011214211117476225, 0.007713188882917166, 0.0033310502767562866, 0.0031063754577189684, 0.017770811915397644, -0.02930542826652527, -0.015137230977416039, 0.03757346794009209, -0.03416622057557106, 0.026585884392261505, -0.029743056744337082, -0.03050890378654003, 0.017145629972219467, 0.04185596480965614, 0.015324785374104977, -0.03654191642999649, -0.02914913184940815, -0.04279373958706856, -0.0001073311286745593, -0.040543083101511, -0.0036006602458655834, -0.007623318582773209, 0.03172801062464714, -0.018224069848656654, 0.007150524295866489, 0.03163423389196396, -0.01864606700837612, -0.008064853958785534, 0.03263452649116516, 0.03082149662077427, 0.021381240338087082, -0.04282499849796295, -0.031602974981069565, 0.010542139410972595, 0.02038094773888588, 0.037073321640491486, -0.0017466035205870867, 0.019193101674318314, 0.0031728011090308428, -0.012151984497904778, 0.03149356693029404, -0.039761606603860855, -0.02422582171857357, 0.023147381842136383, -0.01013577077537775, 0.0009719633962959051, -0.00026863309904001653, 0.029117872938513756, 0.015582673251628876, 0.025226112455129623, -0.0215375367552042, -0.01784895919263363, 0.05110866576433182, 0.006552693899720907, -0.007959354668855667, 0.0496707484126091, 0.021615684032440186, 0.0012044530594721437, -0.011347061954438686, 0.008955738507211208, 0.004079315811395645, -0.022647235542535782, 0.0056461794301867485, 0.09990415722131729, 0.011597135104238987, 0.006935617886483669, -0.03982412442564964, -0.02944609522819519, -0.030180683359503746, -0.02924291044473648, -0.016192225739359856, -0.022115830332040787, 0.003163032466545701, -0.034947700798511505, 0.049139343202114105, -0.037635985761880875, 0.011206395924091339, 0.01930250972509384, -0.02417893148958683, -0.0276174359023571, -0.02417893148958683, -0.07570959627628326, 0.0016411039978265762, -0.040480565279722214, 0.06751970946788788, -0.017192518338561058, 0.0021627405658364296, 0.015020009130239487, -0.009033886715769768, 0.03229067474603653, -0.04066811874508858, -0.014957490377128124, -0.06126788258552551, 0.00889322068542242, 0.017020592465996742, 0.046107206493616104, -0.037729762494564056, -0.01575459912419319, -0.028367655351758003, 0.029274169355630875, -0.00864314753562212, 0.0035068828146904707, 0.025929443538188934, 0.005845455918461084, 0.016536075621843338, 0.03150919824838638, -0.022850418463349342, 0.01733318343758583, -0.017973996698856354, -0.014394826255738735, -0.02260034717619419, -0.06114284694194794, 0.0071036359295248985, 0.014863713644444942, 0.016911186277866364, 0.030040018260478973, 6.996670708758757e-05, -0.05820448696613312, 0.028648987412452698, 0.00572823453694582, 0.03488518297672272, -0.05495353788137436, 0.004384092055261135, 0.0653940886259079, -0.049858301877975464, -0.040418047457933426, -0.029696166515350342, 0.007412319537252188, -0.00017668731743469834, -0.006388583220541477, 0.02255345694720745, -0.0003118586027994752, -0.013714940287172794, -0.02099050208926201, 0.0006789090693928301, 0.044106625020504, 0.024444634094834328, -0.007412319537252188, 0.005607105325907469, 0.005548494402319193, -0.010839100927114487, -0.04516943544149399, 0.010120141319930553, 0.021553166210651398, 0.009112034924328327, -0.008783813565969467, -0.05698538199067116, -0.03569791838526726, -0.016754889860749245, -0.004294222220778465, 0.04251240938901901, 0.032915856689214706, -0.0319468230009079, -0.006349509581923485, -0.02752365916967392, -0.020443467423319817, -0.021912645548582077, -0.009158923290669918, 0.0017895848723128438, 0.0597987025976181, 0.009033886715769768, 0.004513035994023085, -0.017161259427666664, 0.07183346897363663, 0.029117872938513756, -0.10734383016824722, 0.020302800461649895, 0.0344788134098053, -0.0200214684009552, 0.028977207839488983, 0.03857375681400299, 0.011831577867269516, 0.04548202455043793, 0.007599874399602413, 0.015442007221281528, 0.005020996555685997, 0.045231953263282776, 0.03369733691215515, -0.014308864250779152, -0.013089758343994617, 0.005802474915981293, -0.022240865975618362, -0.009112034924328327, 0.030649570748209953, -0.0029285892378538847, -0.010370214469730854, 0.013707125559449196, -0.01825532875955105, -0.00594314094632864, 0.035354070365428925, 0.008447778411209583, -0.004387999419122934, -0.05210895836353302, 0.0008899081731215119, 0.023381823673844337, -0.017051851376891136, 0.050764817744493484, 0.017567627131938934, 0.026070108637213707, 0.008744739927351475, -0.049545712769031525, -0.04557580128312111, 0.03529154881834984, 0.07127080112695694, -0.04288751631975174, -0.005337495356798172, 0.04798275604844093, -0.004868608433753252, 0.05739175155758858, -0.0008024803246371448, -0.006732433568686247, 0.019599471241235733, -0.0010598796652629972, 0.004372369963675737, 0.0020044913981109858, -0.029836833477020264, 0.01687992736697197, 0.037792280316352844, 0.04223107546567917, -0.04229359328746796, 0.0010227594757452607, -0.05432835593819618, 0.006474546156823635, -0.05110866576433182, 0.034447554498910904, 0.0010628101881593466, 0.010503065772354603, -0.03313467279076576, 0.01692681573331356, -0.016801778227090836, -0.02777373045682907, -0.02169383130967617, -0.01312883198261261, -0.014097864739596844, 0.019958950579166412, 0.008400889113545418, 0.017614515498280525, -5.220029561314732e-05, 0.003710067132487893, 0.006025196053087711, 0.005626642145216465, 0.02144375815987587, -0.01931813918054104, -0.020240282639861107, 0.03279082104563713, 0.014238530769944191, 0.028445802628993988, -0.024100784212350845, 0.021178055554628372, -0.027539288625121117, -0.028477061539888382, -0.017145629972219467, 0.007892929017543793, 0.01744259148836136, -0.09183930605649948, -0.03263452649116516, 0.002918820595368743, -0.0024323505349457264, 0.02869587577879429, 0.028555208817124367, -0.008674406446516514, -0.014949675649404526, 0.009385552257299423, 0.02514796517789364, 0.01966198906302452, 0.0017905617132782936, -0.03654191642999649, 0.058016933500766754, -0.015879634767770767, 0.023288046941161156, -0.039105162024497986, -0.010714064352214336, 0.015246637165546417, 0.030290091410279274, -0.014144753105938435, -0.014629269950091839, 0.054265838116407394, 0.008877591229975224, 0.011370506137609482, -0.03754220902919769, -0.01188628189265728, -0.030852755531668663, 0.017411332577466965, 0.05013963580131531, 0.010854730382561684, -0.046857427805662155, -0.021990792825818062, 0.004821719601750374, -0.022615976631641388, -0.05564124137163162, -0.05295295640826225, -0.01972450688481331, -0.0007399620953947306, -0.019943321123719215, -0.017458220943808556, -0.01244113128632307, -0.05379695072770119, -0.06520653516054153, -0.007138802204281092, 0.016582965850830078, -0.020443467423319817, 0.016801778227090836, 0.009362107142806053, -0.0037413262762129307, 0.010409288108348846, 9.273947216570377e-05, -0.025257371366024017, -0.05457843095064163, 0.01825532875955105, -0.06508149206638336, -0.04229359328746796, -0.02707040123641491, -0.013136646710336208, 0.02255345694720745, 0.008783813565969467, -0.023053603246808052, 0.010846915654838085, 0.026242034509778023, -0.041387081146240234, 0.05954863131046295, -0.061924323439598083, 0.017348812893033028, 0.04076189547777176, 0.006099436432123184, 0.010174844413995743, -0.030837126076221466, 0.04785771667957306, -0.04132455959916115, -0.039355237036943436, -0.06298713386058807, 0.007080191280692816, -0.036573175340890884, -0.02099050208926201, 0.03204060345888138, 0.064893938601017, 0.013933754526078701, 0.021521907299757004, 0.026382699608802795, -4.856764280702919e-05, -0.001554164569824934, 0.018474141135811806, -0.013675866648554802, -0.05767308175563812, -0.011401765048503876, 0.047420091927051544, 0.04641979932785034, 0.01683303713798523, -0.01803651452064514, -0.04585713520646095, 0.03610428795218468, 0.07889802753925323, -0.02300671488046646, 0.011870652437210083, 0.0048764231614768505, 0.08596259355545044, 0.036323100328445435, 0.011995689012110233, -0.006212750915437937, -0.03463510796427727, 0.013832162134349346, -0.02818010002374649, -0.0010081067448481917, -0.04951445013284683, 0.03457259014248848, 0.013292942196130753, 0.037948574870824814, 0.0273673627525568, 0.006962969899177551, -0.010159214958548546, 0.02513233572244644, 0.02336619421839714, 0.06445631384849548, -0.007166154216974974, -0.009080775082111359, -0.013832162134349346, 0.031556084752082825, -0.026898475363850594, -0.013621163554489613, 0.027132919058203697, 0.017520738765597343, 0.012738092802464962, -0.011737801134586334, -0.015957782045006752, -0.03107156977057457, 0.018208440393209457, 0.03354103863239288, -0.01429323386400938, -0.009940401650965214, 0.026038849726319313, 0.00821333471685648, 0.014730862341821194, 0.0023913229815661907, 0.004317666403949261, 0.002365924883633852, 0.017958367243409157, 0.0019146213307976723, -0.02200642228126526, 0.026382699608802795, 0.016004670411348343, 0.025960702449083328, -0.025929443538188934, -0.04038678854703903, 0.009916956536471844, 0.00933084823191166, 0.004794368054717779, 0.01474649179726839, 0.011690911836922169, -0.03741716966032982, -0.003774539101868868, 0.005802474915981293, 0.022022051736712456, -0.03713583946228027, -0.009487143717706203, -0.00396014004945755, 0.043106332421302795, 0.019021175801753998, -0.04445047304034233, 0.005231995601207018, -0.025226112455129623, 0.029868092387914658, 0.006415935233235359, -0.020896723493933678, 0.002467517042532563, 0.00876818411052227, -0.010596842505037785, 0.032665785402059555, 0.0038526870775967836, -0.004716220311820507, -0.009901327081024647, -0.011276728473603725, 0.00032187128090299666, -0.02017776481807232, -0.005204644054174423, -0.05282791703939438, -0.07164590805768967, 0.004239518661051989, -0.013300756923854351, 0.0053726620972156525, -0.01652044616639614, -0.045794617384672165, 0.0339786671102047, -0.021099908277392387, -0.00897136889398098, 0.014238530769944191, 0.05839204415678978, -0.01961510069668293, -0.06483142077922821, 0.002444072626531124, 0.01866169646382332, 0.016864297911524773, -0.02782062068581581, 0.006494082976132631, -0.03025883249938488, -0.03579169511795044, -0.003958186600357294, 0.03416622057557106, -0.0025026835501194, 0.007978891022503376, -0.023803822696208954, -0.011034470982849598, 0.022240865975618362, 0.040011677891016006, 0.01748947985470295, 0.031040308997035027, -0.038042351603507996, -0.01728629507124424, -0.025991961359977722, 0.055891312658786774, 0.015442007221281528, -0.03929271921515465, -0.0053140511736273766, -0.007478745188564062, -0.005997844506055117, 0.017301924526691437, 0.005575845949351788, 0.02691410481929779, 0.0032783006317913532, 0.025788776576519012, -0.051264964044094086, 0.010206104256212711, 0.0004625373403541744, 0.00031649862648919225, 0.001915598171763122, -0.055172353982925415, 0.010112326592206955, -0.01956821046769619, 0.02539803832769394, -0.018427252769470215, -0.03222815692424774, 0.006079899612814188, 0.001412521698512137, -0.0024655633606016636, 0.02655462548136711, -0.04641979932785034, -0.012034762650728226, 0.00182768190279603, -0.008611888624727726, -0.034041184931993484, -0.012675574980676174, 0.002789876889437437, 0.021771980449557304, -0.02352249063551426, -0.027304844930768013, -0.025413667783141136, -0.03732339292764664, 0.0041770003736019135, 0.003143495647236705, -0.015449821949005127, -0.010510880500078201, -0.0013627024600282311, -0.009854438714683056, -0.02347560226917267, -0.013113202527165413, 0.017020592465996742, 0.04982704296708107, 0.030852755531668663, -0.001197615172713995, -0.030696459114551544, 0.013730569742619991, -0.02803943306207657, 0.005739956628531218, -0.015801487490534782, -0.023710045963525772, 0.005239810794591904, -0.010362399742007256, 0.0552348718047142, -0.0011790550779551268, 0.004743571858853102, 0.00731072761118412, -0.00965125486254692, -0.02575751766562462, 0.0035166514571756124, -0.012151984497904778, 0.01090161968022585, -0.0023874156177043915, 0.03036823868751526, -1.9216424334445037e-05, -0.030524535104632378, 0.030852755531668663, -0.012683389708399773, 0.010503065772354603, -0.017598886042833328, 0.00697078462690115, -0.02985246293246746, 0.021412499248981476, -0.0028719319961965084, -0.014519862830638885, -0.010682805441319942, -0.004091037902981043, -0.0011350968852639198, -0.016645483672618866, -0.040480565279722214, -0.02397574856877327, -0.007279468234628439, -0.011104803532361984, -0.03247822821140289, -0.04395032674074173, 0.005630549509078264, -0.02038094773888588, 0.008705666288733482, -0.024616559967398643, -0.01437138207256794, -0.00858844444155693, 0.038292426615953445, 0.008572814986109734, 0.018208440393209457, 0.01176124531775713, 0.005583661142736673, 0.0010764860780909657, 0.033322226256132126, -0.02528863027691841, 0.010354585014283657, 0.004259055480360985, 0.01512941624969244, -0.0022154904436320066, -0.011425209231674671, 0.024710336700081825, 0.021318722516298294, 0.021349981427192688, -0.01784895919263363, 0.01678614877164364, 0.03400992602109909, 0.0037569559644907713, 0.016848668456077576, 0.006075992248952389, 0.010659361258149147, -0.00882288720458746, -0.014934046193957329, -0.019536951556801796, 0.0009358199895359576, 0.012347353622317314, -0.0014437807258218527, 0.018739843741059303, 0.01617659628391266, -0.00019634637283161283, -0.0076975589618086815, 0.019505692645907402, -0.011307988315820694, 0.021068649366497993, -0.0063456022180616856, -0.0038097056094557047, -0.05217147618532181, -8.950366463977844e-05, 0.020771687850356102, 0.014988750219345093, 0.01936502754688263, 0.007205227855592966, 0.010026363655924797, 0.0022174441255629063, 0.008752554655075073, 0.03269704431295395, 0.0026511643081903458, 0.005888437386602163, -0.011651838198304176, -0.013871235772967339, -0.03183741867542267, -0.03350977972149849, 0.005103052128106356, 0.00882288720458746, 0.02031842991709709, -0.05057726055383682, 0.0044661471620202065, -0.03610428795218468, -0.01972450688481331, 0.005571938585489988, 0.02539803832769394, -0.026945363730192184, 0.0030966070480644703, -0.002184231299906969, -0.0016508724074810743, 0.02327241748571396, -0.0027801082469522953, -0.013754013925790787, -0.04438795521855354, -0.013996272347867489, 0.0011526801390573382, -0.01107354462146759, -0.029883721843361855, 0.005310143809765577, 0.01972450688481331, -0.02442900463938713, -0.015176304616034031, -0.008455593138933182, 0.037792280316352844, -0.021209314465522766, -0.010745324194431305, -0.010479621589183807, 0.03782353922724724, 0.009487143717706203, -0.029946239665150642, -0.02928979881107807, -0.04535698890686035, 0.032415710389614105, 0.021381240338087082, -0.05432835593819618, 0.008658776991069317, 0.0028269970789551735, -0.016098449006676674, -0.008205519989132881, -0.02210020087659359, -0.037635985761880875, -0.0023385731037706137, 0.04035552963614464, -0.008940109051764011, -0.023022344335913658, 0.012167613953351974, -0.012488019652664661, -0.004219981841742992, 0.04216855764389038, 0.028977207839488983, -0.02767995372414589, 0.008346186019480228, 0.03329096734523773, 0.005857178475707769, -0.0029832925647497177, -0.036979544907808304, -0.00714661693200469, 0.01180813368409872, 0.006326064933091402, 0.009119849652051926, -0.027554918080568314, 0.04516943544149399, 0.030024388805031776, -0.006583952810615301, -0.05164007097482681, 0.014410455711185932, -0.047263793647289276, -0.04238737002015114, 0.0025788776110857725, -0.005009274464100599, -0.03407244384288788, -0.010776583105325699, -0.03604177013039589, -0.0026374885346740484, -0.0062674544751644135, 0.010862545110285282, 0.005614920053631067, -0.020396579056978226, -0.015629561617970467, -0.006767600309103727, 0.003540095640346408, 0.002633581170812249, -0.02306923270225525, 0.020865464583039284, 0.008627518080174923, -0.028352025896310806, -0.018536660820245743, -0.009557477198541164, 0.023178640753030777, 0.006689452566206455, 0.016848668456077576, 0.03149356693029404, 0.01941191591322422, -0.03451007232069969, 0.0021920460276305676, 0.02306923270225525, 0.001353910774923861, -0.034791406244039536, -0.02569499984383583, -0.022381532937288284, 0.03516651317477226, 0.028805281966924667, 0.028617728501558304, 0.0030184590723365545, -0.020162135362625122, -0.010510880500078201, 0.020646650344133377, 0.022522198036313057, 0.0015463497256860137, 0.00024115925771184266, 0.016754889860749245, -0.0005548494518734515, 0.017755182459950447, 0.009862253442406654, 0.041887227445840836, -0.012081651017069817, 0.0016831083921715617, -0.03111845813691616, 0.03476014360785484, -0.002977431518957019, 0.02164694294333458, 0.0010979766957461834, -0.06908266246318817, -0.027804991230368614, -0.0005216366262175143, 0.0068144891411066055, 0.017677035182714462, 0.03522903099656105, -0.0025964609812945127, -0.021068649366497993, 0.0030575329437851906, -0.008377444930374622, 0.019536951556801796, -0.021459387615323067, 0.022084571421146393, -0.008322741836309433, 0.02230338379740715, -0.006740248296409845, 0.014215086586773396, -0.017598886042833328, -0.00858844444155693, -0.03025883249938488, -0.02194390445947647, 0.042699962854385376, 0.01738007180392742, 0.002828950760886073, -0.04988956078886986, 0.03247822821140289, 0.0009529148228466511, 0.02397574856877327, 0.003723743138834834, 0.04826408624649048, 0.019193101674318314, -0.01008888240903616, -0.010151400230824947, 0.005103052128106356, 0.02331930585205555, 0.010526509955525398, -0.011925355531275272, -0.03923020139336586, 0.0102686220780015, 0.05457843095064163, -0.0012923694448545575, -0.009690328501164913, -0.0050131818279623985, -0.00988569762557745, -0.005067885387688875, 0.002688284730538726, 0.054672207683324814, -0.030790235847234726, -0.028445802628993988, -0.028414543718099594, -0.005693067796528339, -0.03694828227162361, 0.0131835350766778, -0.03161860257387161, -0.025663740932941437, -0.02899283729493618, 0.014176012948155403, -0.02266286499798298, -0.018083402886986732, -0.0027508027851581573, -0.0456070601940155, 0.0030653479043394327, -0.010526509955525398, 0.01330857165157795, -0.0028777930419892073, 0.005767308175563812, 0.02803943306207657, 0.017551997676491737, -0.02270975336432457, -0.024804115295410156, 0.05082733556628227, -0.03329096734523773, 0.03161860257387161, -0.051077406853437424, 0.05754804611206055, 0.01697370409965515, 0.015668636187911034, 0.014683973044157028, -0.008072668686509132, 0.008885405957698822, 0.01487934309989214, 0.03182178735733032, 0.01606719009578228, 0.006439379416406155, 0.046107206493616104, -0.003524466184899211, 0.051421258598566055, -0.01683303713798523, -0.00889322068542242, -0.0010061530629172921, 0.014683973044157028, -0.00996384583413601, -0.020459096878767014, 0.015426377765834332, -0.034385036677122116, 0.004376277327537537, 0.031196605414152145, 0.0037725854199379683, -0.001958579523488879, -0.015567043796181679, -0.003680761903524399, -0.0339474081993103, 0.00261013675481081, 0.007209135219454765, 0.041480857878923416, -0.005794660188257694, 0.005540679674595594, -0.034228742122650146, 0.040730636566877365, -0.004223889205604792, 0.04094945266842842, -0.00815863162279129, -0.038292426615953445, 0.022162718698382378, -0.00406759325414896, 0.02803943306207657, -0.041137006133794785, -0.03300963342189789, 0.01905243657529354, 0.06858251988887787, 0.005696975160390139, 0.003254856215789914, -0.00538438418880105, -0.007396690081804991, -0.04988956078886986, -0.022725382819771767, 0.03626058250665665, -0.04557580128312111, -0.015692079439759254, 0.00513040367513895, -0.023553749546408653, 0.04019923135638237, -0.011894096620380878, -0.025569962337613106, 0.016082819551229477, 0.008299297653138638, 0.027914397418498993, 0.003952325321733952, -0.016145337373018265, -0.001206406857818365, 0.002838719170540571, -0.026195146143436432, 0.007064561825245619, -0.00826022308319807, -0.009557477198541164, -0.020459096878767014, -0.009698143228888512, -0.04798275604844093, 0.0022994992323219776, 0.012050392106175423, -0.0047240350395441055, 0.009846623986959457, -0.025585591793060303, 0.014105679467320442, 0.025101076811552048, -0.008705666288733482, -0.03000875934958458, -0.06273706257343292, 0.019177472218871117, 0.014301048591732979, 0.01294909231364727, -0.0007145640556700528, -0.0023190362844616175, -0.002276055049151182, -0.01449641864746809, -0.007045025005936623, -0.00894792377948761, 0.02058413252234459, -0.035197772085666656, 0.013019424863159657, -0.007326357066631317, -0.0009524264023639262, -0.010885990224778652, 0.0047552939504384995, 0.007111450657248497, -0.0030575329437851906, -0.0049194046296179295, -0.01703622192144394, -0.011323617771267891, -0.0021725089754909277, 0.0021920460276305676, -0.020912352949380875, -0.007045025005936623, -0.0044075362384319305, -0.043418921530246735, -0.010979766957461834, -0.0034189666621387005, 0.04141834005713463, 0.042606186121702194, 0.002805506344884634, 0.011339247226715088, -0.002041611587628722, 0.015020009130239487, -0.0013627024600282311, -0.027836250141263008, 0.013410164043307304, -0.010323325172066689, -0.04085567593574524, 0.04826408624649048, -0.0380110926926136, -0.03232193365693092, 0.005822011735290289, 0.028805281966924667, -0.019068066030740738, -0.010596842505037785, -0.004927219357341528, 0.0030966070480644703, -0.0026023220270872116, -0.016895556822419167, -0.02803943306207657, 0.0029500797390937805, 0.0006574184517376125, -0.010299880988895893, -0.026335811242461205, -0.0046302578411996365, 0.022850418463349342, -0.027898767963051796, 0.0005484999273903668, -0.01176124531775713, 0.015074712224304676, -0.03654191642999649, 0.010096697136759758, -0.015676449984312057, -0.021756349131464958, -0.019583841785788536, -0.030805867165327072, 0.015965597704052925, -0.012769351713359356, 0.02732047438621521, -0.010417102836072445, 0.001020805793814361, -0.011839393526315689, 0.018208440393209457, 0.008299297653138638, -0.004513035994023085, 0.004348925780504942, -0.009416811168193817, -0.0044505177065730095, -0.0263514406979084, -0.005720419809222221, -0.019802654162049294, 0.004583369009196758, -0.030071277171373367, 0.012128540314733982, 0.03979286551475525, 0.0023815545719116926, -0.0018169365357607603, -0.004309851676225662, 0.028101952746510506, -0.012628685683012009, 0.019677618518471718, -0.017817700281739235, -0.004997552372515202, 0.006544879171997309, 0.0024362578988075256, 0.02655462548136711, 0.012128540314733982, 0.013199164532124996, -0.00624791719019413, 0.008580629713833332, 0.005204644054174423, 0.00722085777670145, 0.03116534650325775, 0.0261013675481081, 0.007189598400145769, -0.013472681865096092, -0.028570838272571564, 0.02352249063551426, -0.02478848583996296, -0.011487727984786034, 0.020365318283438683, 0.01891176961362362, 0.004415351431816816, -0.001217152108438313, -0.019583841785788536, -0.006251824554055929, -0.03863627836108208, -0.007463115733116865, 0.031149717047810555, 0.021256204694509506, 0.01961510069668293, 0.00021441804710775614, 9.365526784677058e-05, 0.002531989011913538, -0.05782938003540039, 0.03898012638092041, 0.0015062990132719278, 0.02185012772679329, 0.0018247513798996806, 0.016739260405302048, 0.006455008871853352, 0.03669821098446846, -0.01803651452064514, -0.0007941771182231605, 0.01866169646382332, -0.03676072880625725, 0.01738007180392742, -0.020099615678191185, -0.014308864250779152, 0.005978307221084833, 0.048639196902513504, -0.042543668299913406, 0.02352249063551426, -0.013519571162760258, 0.014668343588709831, -0.02417893148958683, 0.016911186277866364, -0.015410748310387135, -0.010299880988895893, -0.02185012772679329, -0.00017668731743469834, 0.012034762650728226, 0.009995104745030403, -0.01262087095528841, 0.008697851561009884, 0.0334472618997097, -0.014129123650491238, 0.02114679664373398, -0.02488226257264614, -0.0023874156177043915, 0.007646763231605291, 0.008650962263345718, -0.005501605570316315, 0.019443174824118614, -0.012097280472517014, -0.001388100441545248, -0.00271758995950222, -0.021412499248981476, -0.017520738765597343, 0.011620579287409782, 0.010878174565732479, 0.02033405937254429, -0.0009714749758131802, 0.014160382561385632, 0.04144959896802902, 0.0100107342004776, -0.06008003652095795, -0.004802182782441378, 0.024288339540362358, 0.002508544595912099, -0.03882383182644844, -0.01830221712589264, -0.012589612044394016, -0.0024499339051544666, 0.009377737529575825, 0.003200152888894081, -0.004579461645334959, 0.011972243897616863, 0.011300173588097095, 0.009252700954675674, -0.0022447959054261446, -0.02453841269016266, -0.005923604127019644, -0.033322226256132126, 0.011487727984786034, -0.022975455969572067, -0.00034629247966222465, -0.0506710410118103, 0.010167029686272144, -0.007236487232148647, -0.020115245133638382, 0.026898475363850594, -0.004430980887264013, 0.017661405727267265, -0.01803651452064514, 0.02038094773888588, -0.03610428795218468, -0.023491231724619865, -0.03744842857122421, 0.021006131544709206, -0.017145629972219467, 0.03622932359576225, 0.01789584755897522, 0.013902495615184307, -0.013167905621230602, 0.025585591793060303, -0.006115065887570381, -0.021834498271346092, -0.007338079158216715, 0.009252700954675674, 0.0200214684009552, -0.0007277514669112861, 0.023991378024220467, -0.026992253959178925, 0.00815863162279129, 0.009721587412059307, 0.0017348813125863671, 0.015942152589559555, -0.012894388288259506, -0.023491231724619865, 0.007607689127326012, 0.031087199226021767, -0.028305135667324066, -0.010487436316907406, -0.011644023470580578, 0.03111845813691616, -7.497305341530591e-05, -0.005458624567836523, 0.0016938537592068315, -0.0017329276306554675, 0.015301341190934181, 0.0066777304746210575, 0.04182470589876175, -0.0007165177376009524, -0.027382992208003998, 0.006681637838482857, 0.05510983616113663, -0.020396579056978226, 0.004204351920634508, 0.05104614794254303, 0.03357229754328728, 0.04345018044114113, 0.01631726324558258, -0.022319015115499496, -0.008799443021416664, -0.02447589300572872, -0.01574678346514702, 0.0105186952278018, -0.011433024890720844, 0.009244886226952076, -0.0021490647923201323, 0.04029301181435585, -0.005571938585489988, -0.029993129894137383, -0.00509523693472147, 0.02503855712711811, -0.010784397833049297, -0.020912352949380875, 0.007537356112152338, -0.006599582266062498, -0.02772684209048748, 0.012183243408799171, -0.0023014529142528772, -0.015848375856876373, 0.0005020996904931962, -0.01652044616639614, -0.03107156977057457, 0.027851879596710205, -0.032165639102458954, -0.003962093964219093, 0.012714648619294167, 0.0042551481164991856, 0.0003211386501789093, -0.00015214401355478913, 0.04413788393139839, -0.012613056227564812, 0.013269498012959957, -0.005228088237345219, 7.546148117398843e-05, 0.015926523134112358, 0.03385363146662712, -0.025663740932941437, -0.00761550385504961, 0.019708877429366112, -0.02910224348306656, -0.0002392055612290278, -0.015035638585686684, -0.014590196311473846, -0.01692681573331356, 0.013066313229501247, 0.0035107904113829136, -0.014082235284149647, -0.011550245806574821, -0.010120141319930553, -0.022272124886512756, -0.014762121252715588, 0.02306923270225525, -0.022115830332040787, -0.013191349804401398, 0.024913521483540535, 0.009135479107499123, 0.019193101674318314, 0.019990209490060806, -0.0008376468322239816, 0.016286002472043037, -0.009362107142806053, -0.00650189770385623, 0.00603301078081131, -0.02874276414513588, 0.057454269379377365, -0.03554162383079529, 0.018317846581339836, -0.04532572999596596, -0.007064561825245619, 0.0062088435515761375, 0.03797983378171921, 0.0010032225400209427, 0.014019716531038284, -0.013496126979589462, -0.016457928344607353, 0.05629768222570419, -0.013582088984549046, -0.01742696203291416, 0.0020357503090053797, 0.013714940287172794, 0.008494666777551174, 0.023350564762949944, -0.02767995372414589, 0.008017965592443943, -0.02031842991709709, -0.013292942196130753, -0.003245087806135416, -0.002002537716180086, 0.03638561815023422, -0.0026316274888813496, -0.0005362893571145833, 0.05620390549302101, 0.02417893148958683, 0.009096404537558556, -0.008432148955762386, -0.030743347480893135, 0.03097779117524624, 0.016958074644207954, 0.03416622057557106, 0.03541658818721771, 0.044981878250837326, 0.011495542712509632, -0.0025026835501194, 0.03704206272959709, -0.00727556087076664, -0.03732339292764664, -0.01814592070877552, 0.02828950621187687, 0.02291293814778328, -0.0016733399825170636, 0.01911495439708233, -0.007142709568142891, 0.020568503066897392, 0.011862837709486485, 0.015152860432863235, -0.00453648017719388, 0.012714648619294167, 0.024038266390562057, 0.04960823059082031, -0.009854438714683056, 0.04238737002015114, 0.003885899903252721, 0.023663155734539032, -0.009698143228888512, 0.014660528860986233, -0.018833622336387634, 0.0006095528951846063, -0.029258539900183678, -0.001519974903203547, 0.01269901916384697, 0.013316386379301548, 0.00038268003845587373, 0.0015336507931351662, 0.005677438341081142, 0.025585591793060303, -0.008807257749140263, -0.04210603982210159, -0.012784981168806553, -0.04776393994688988, 0.015903079882264137, -0.0011946846498176455, 0.0005992960068397224, -0.005794660188257694, 0.012628685683012009, -0.010487436316907406, 0.009877882897853851, 0.00024238030891865492, -0.028352025896310806, 0.003985538147389889, 0.02575751766562462, -0.03127475455403328, 0.03563540056347847, -0.03594799339771271, 0.001749534043483436, -0.016035931184887886, -0.02655462548136711, -0.013730569742619991, 0.007068469189107418, 0.041137006133794785, 0.007021580822765827, 0.0020064450800418854, 0.008572814986109734, -0.0030477645341306925, -0.003143495647236705, -0.027351733297109604, 0.0021588332019746304, -0.002828950760886073, 0.0273673627525568, 0.011964429169893265, 0.009940401650965214, 0.01814592070877552, -0.0015404886798933148, -0.023288046941161156, 0.02280353009700775, 0.004513035994023085, 0.03898012638092041, -0.008354000747203827, -0.011870652437210083, -0.0068301185965538025, 0.023835081607103348, -0.009299589321017265, -0.024976039305329323, -0.0020650557707995176, -0.023131752386689186, -0.040730636566877365, 0.05379695072770119, 0.003807751927524805, -0.030024388805031776, -0.027336103841662407, -0.023647526279091835, 0.018208440393209457, 0.022381532937288284, -0.007017673458904028, 0.026882845908403397, -0.006783229764550924, -0.005161662586033344, -0.01498093456029892, -0.03607302904129028, 0.039917901158332825, 0.013621163554489613, -0.01223794650286436, -0.020771687850356102, -0.0038057982455939054, 0.002893422730267048, -0.011855022981762886, -0.028305135667324066, -0.019536951556801796, -0.014199457131326199, -0.0349789597094059, -0.021053019911050797, -0.03061831183731556, 0.006892636884003878, -0.03882383182644844, 0.010143585503101349, -0.028602097183465958, 0.03572917729616165, -0.008346186019480228, -0.029696166515350342, -0.007982798852026463, 0.030071277171373367, 0.014637084677815437, 0.01697370409965515], "id": 79}, {"title": "Hardtack (game)", "text": "Hardtack is a set of rules for American Civil War miniature wargaming by Lou Zocchi. It was published as a thirty-page pamphlet by Guidon Games in 1971, with an introduction by Gary Gygax and artwork by Don Lowry. Hardtack was the first set of American Civil War rules published in the United States and had an early following.", "vector": [-0.01987696997821331, -0.048177510499954224, -0.03492619842290878, 0.007129239849746227, -0.02134193852543831, -0.005335484631359577, 0.00368323246948421, 0.0022453151177614927, -0.0007616175571456552, 0.05267230421304703, 0.034360188990831375, 0.036324579268693924, 0.029033027589321136, 0.023705866187810898, -0.0160647202283144, -0.03136365860700607, -0.006846234202384949, 0.026719041168689728, -0.027734531089663506, -0.04225104674696922, 0.1127360463142395, 0.019960206001996994, 0.008931318297982216, 0.027068637311458588, 0.042384225875139236, 0.0035105159040540457, 0.007861724123358727, -0.019011305645108223, 0.006030512508004904, -0.0106210270896554, -0.007711898069828749, 0.019460784271359444, 0.02725175768136978, 0.004086931236088276, 0.051740050315856934, -0.012410620227456093, 0.004365774802863598, 0.04488133266568184, 0.0036020763218402863, -0.018112346529960632, 0.021491764113307, -0.019643906503915787, -0.01937754824757576, 0.022823555395007133, -0.0009899988071992993, 0.00022408930817618966, -0.056501202285289764, 0.0037976831663399935, -0.014042063616216183, -0.0008089585462585092, 0.03133036568760872, -0.022906791418790817, 0.03715694695711136, 0.01802911050617695, 0.031446896493434906, -0.006679760292172432, 0.060163624584674835, 0.07011875510215759, -0.02194124460220337, -0.013825647532939911, -0.03292851522564888, -0.027434879913926125, 0.025420546531677246, -0.03912133723497391, 0.011278598569333553, -0.022723671048879623, 0.01245223917067051, 0.08423573523759842, 0.013692468404769897, -0.00603467458859086, -0.003479301929473877, 0.01166981179267168, -0.01726333051919937, 0.031097302213311195, 0.03892156854271889, -0.043849192559719086, 0.03432689234614372, -0.003479301929473877, -0.01766286790370941, 0.004715370014309883, -0.023372918367385864, -0.000756415247451514, -0.040086887776851654, 0.027684589847922325, -0.031247127801179886, -0.019061248749494553, 0.044947922229766846, -0.047511618584394455, -0.01569015346467495, 0.006521610543131828, 0.001993523444980383, 0.02680227905511856, -0.007333170156925917, -0.016780557110905647, 0.0015117899747565389, 0.028084127232432365, -0.011361835524439812, -0.004009937401860952, 0.019860321655869484, 0.0018301710952073336, -0.005564386025071144, -0.005730859935283661, 0.01576506718993187, -0.06072963401675224, -0.03675740957260132, -0.036624230444431305, -0.04521428048610687, 0.03026493266224861, 0.007029355503618717, 0.008240452036261559, -0.004461497534066439, 0.007345655467361212, 0.024638120085000992, -0.05809934809803963, -0.059863969683647156, -0.0011060101678594947, 0.006983574945479631, -0.026086442172527313, -0.005322999320924282, -0.006296870764344931, -0.050075314939022064, 0.031446896493434906, 0.020542863756418228, -0.0356253907084465, -0.0014191889204084873, -0.015473738312721252, -0.045414045453071594, 0.016855470836162567, -0.03324481472373009, -0.004109821282327175, -0.01144507247954607, 0.0029736380092799664, 0.05959761515259743, 0.0037851976230740547, 0.027218462899327278, 0.013925531879067421, 0.00710426876321435, -0.025187483057379723, -0.0019321363652125, 0.020393038168549538, 0.007766001857817173, 0.028849905356764793, -0.003075603162869811, -0.024538235738873482, -0.01287674717605114, -0.002228667726740241, -0.013267960399389267, -0.017912577837705612, -0.004902652930468321, 0.0118695804849267, -0.03892156854271889, 0.03073105961084366, 0.004311671014875174, 0.02796759456396103, -0.009305884130299091, 0.0027759503573179245, -0.04974236711859703, 0.03469313681125641, 0.015049229376018047, 0.05120733380317688, 0.014175242744386196, 0.039987001568078995, 0.010604379698634148, 0.039487581700086594, 0.03222932294011116, 0.0356253907084465, 0.018511883914470673, 0.05526929348707199, 0.010479524731636047, -0.003052712883800268, 0.011619869619607925, 0.005231438670307398, 0.028700079768896103, 0.018645063042640686, 0.012335707433521748, 0.03181314095854759, 0.03519255667924881, 0.023223092779517174, 0.05773310735821724, -0.036224693059921265, -0.020459627732634544, 0.0004307508934289217, 0.05030837655067444, -0.005909819155931473, -0.005164849106222391, -0.0023888987489044666, -0.006163691636174917, 0.016772232949733734, -0.0048901671543717384, -0.044947922229766846, -0.08137238025665283, -0.0026635804679244757, -0.062327783554792404, 0.01766286790370941, -0.03992041200399399, -0.011986112222075462, -0.03719024360179901, -0.04378260299563408, -0.002832135185599327, 0.02916620671749115, -0.015856627374887466, 0.05280548334121704, 0.04521428048610687, -0.009747039526700974, 0.015315587632358074, 0.024288523942232132, 0.0296656284481287, 0.005543577019125223, 0.04025335982441902, 0.0006991898990236223, 0.0065132868476212025, 5.6575074268039316e-05, -0.009880218654870987, -0.0024513264652341604, -0.028000889346003532, 0.010571084916591644, 0.04481474310159683, 0.00886472873389721, 0.03226261958479881, 0.03539232537150383, 0.03635787218809128, -0.023422861471772194, -0.04867693409323692, -0.017862636595964432, 0.0070335171185433865, 0.006217795889824629, -0.011278598569333553, -0.03808920085430145, -0.03232920914888382, -0.030947476625442505, 0.018461942672729492, -0.03339464217424393, -0.007840914651751518, -0.026519272476434708, -0.004034908022731543, -0.018545178696513176, -0.004390745889395475, 0.007437216117978096, 0.010562761686742306, 0.01525732222944498, -0.01082079578191042, 0.03207949921488762, -0.03136365860700607, 0.0047112079337239265, -0.023206444457173347, 0.03133036568760872, -0.006667274981737137, -0.048610344529151917, -0.01362587884068489, -0.049775660037994385, 0.01726333051919937, -0.012585417367517948, 0.0612623505294323, 0.034759726375341415, -0.024538235738873482, -0.028550254181027412, 0.0653243139386177, -0.009214323945343494, 0.05104086175560951, -0.016206221655011177, -0.03093082830309868, 0.005052479449659586, -0.035558801144361496, -0.025919968262314796, -0.05470328405499458, -0.009680449962615967, -0.037523191422224045, -0.04488133266568184, -0.026785630732774734, 0.043349772691726685, 0.02545384131371975, -0.03825567290186882, -0.029249442741274834, 0.015731772407889366, -0.020293153822422028, -0.012726920656859875, -0.002378494245931506, 0.04914306104183197, -0.022856850177049637, -0.016580788418650627, -0.021724827587604523, -0.018994659185409546, 0.0761118158698082, -0.010854090563952923, -0.051973115652799606, 0.015498708933591843, -0.019593963399529457, -0.023156503215432167, 0.014283450320363045, -0.02886655367910862, 0.01072091143578291, 0.03469313681125641, 0.044348616153001785, 0.010229813866317272, 0.018961364403367043, 0.005726697854697704, 0.016697321087121964, -0.014641368761658669, 0.02615303173661232, -0.017912577837705612, 0.001269362517632544, 0.002426355378702283, -0.05646790564060211, -0.00936415046453476, -0.036024924367666245, -0.0043824221938848495, -0.0021537544671446085, 0.028383780270814896, -0.040086887776851654, -0.07438048720359802, 0.0042325956746935844, -0.03201290965080261, -0.019610611721873283, 0.023173149675130844, -0.007607851643115282, -0.04970907047390938, 0.05407068505883217, 0.009921837598085403, -0.00849432498216629, -0.029232796281576157, 0.021974539384245872, -0.06249425560235977, -0.03449336811900139, -0.01782934181392193, 0.05616825446486473, 0.0009130046237260103, 0.03409383073449135, 0.010362992994487286, 0.0015336397336795926, 0.0010810390813276172, -0.016697321087121964, -0.02735164202749729, 0.0025054304860532284, -0.02585337869822979, -0.016073044389486313, 0.0058723627589643, 0.012984954752027988, -0.008773168548941612, 0.05417056754231453, 0.004374098498374224, 0.018961364403367043, 0.05596848577260971, 0.020609453320503235, 0.05460340157151222, 0.013184723444283009, -0.030148401856422424, -0.016247840598225594, 0.04764479771256447, -0.01912783645093441, -0.009439063258469105, 0.000940576836001128, 0.03868850693106651, -0.0031505161896348, 0.01154495682567358, 0.00926426611840725, 0.02363927662372589, 0.02259049192070961, -0.031946320086717606, 0.02299002930521965, 0.040586307644844055, 0.014175242744386196, -0.07751019299030304, -0.011411777697503567, 0.03669082000851631, -0.010304726660251617, -0.007162534631788731, -0.0009546231012791395, -0.04934282973408699, -0.0038705153856426477, -0.011112124659121037, 0.0013838133309036493, 0.004478144459426403, -0.03354446589946747, 0.013992121443152428, 0.031213833019137383, -0.012751891277730465, 0.01942748948931694, -0.03912133723497391, -0.06898673623800278, -0.01857847347855568, 0.00787004828453064, -0.01114541944116354, 0.02299002930521965, 0.011270275339484215, 0.020492922514677048, 0.007724383380264044, -0.0008448544540442526, -0.0029965280555188656, 0.031746551394462585, -0.021508412435650826, 0.009838600642979145, 0.03945428505539894, -0.06911991536617279, 0.06189495325088501, 0.03031487576663494, -0.03848873823881149, 0.030448054894804955, 0.008939642459154129, 0.007437216117978096, -0.0072041526436805725, 0.015507033094763756, 0.010013397783041, 0.003941266797482967, 0.018295468762516975, -0.0005654906271956861, 0.041185613721609116, 0.020060090348124504, -0.013575936667621136, -0.03975393995642662, -0.012868423014879227, 0.03314492851495743, 0.011519985273480415, -6.684962863801047e-05, 0.019044600427150726, 0.025137539952993393, 0.016822176054120064, -0.06306026875972748, 0.02343950793147087, -0.043649423867464066, -0.009796981699764729, -0.00789501890540123, -0.02740158513188362, -0.015107495710253716, -0.0274515263736248, -0.004798606503754854, -0.048976585268974304, 0.015973160043358803, -0.014225184917449951, 0.01792922616004944, -8.047316555348516e-07, 0.07251597940921783, -0.03818908706307411, -0.01608969084918499, 0.018045756965875626, -0.0016688996693119407, -0.0691865012049675, -0.01766286790370941, 0.04934282973408699, 0.013858942314982414, 0.016930382698774338, 0.026785630732774734, -0.045813582837581635, 0.022956734523177147, -0.028650138527154922, -0.01721338927745819, 0.015656858682632446, -0.07751019299030304, 0.01413362380117178, 0.07358141243457794, -0.005909819155931473, -0.03083094395697117, -0.024721356108784676, -0.022673729807138443, -0.00038939257501624525, 0.056900739669799805, -0.011519985273480415, -0.03895486518740654, -0.006871205288916826, 0.0023119046818464994, -0.014166918583214283, -0.012385649606585503, 0.02303997054696083, 0.03798931837081909, -0.0022390722297132015, 0.03103071264922619, 0.002692713402211666, 0.0019727142062038183, 0.03279533609747887, -0.02525407262146473, -0.02911626361310482, -0.0336277037858963, -0.06522442400455475, -0.05297195538878441, 0.009622184559702873, 0.014125300571322441, -0.015373853966593742, -0.022307487204670906, -0.0029195339884608984, -0.031247127801179886, -0.04125220328569412, 0.027834415435791016, -0.0013723681913688779, -0.006829586811363697, 0.03307833895087242, 0.011178714223206043, -0.04131879284977913, 0.00039979719440452754, -0.010121606290340424, 0.03379417583346367, 0.033111635595560074, -0.003920457325875759, 0.007054326590150595, 0.04904317483305931, -0.009455710649490356, -0.01112044882029295, 0.031197186559438705, 0.014616398140788078, 0.02209107019007206, -0.022573845461010933, 0.007907504215836525, 0.0010222530690953135, 0.02219095453619957, 0.048377279192209244, 0.055901896208524704, 0.029782159253954887, 0.03675740957260132, 0.023822398856282234, 0.0928923711180687, 0.011353511363267899, 0.0045031155459582806, 0.022657081484794617, -0.004049474839121103, 0.0036894751247018576, 0.0053105135448277, 0.028500311076641083, -0.006983574945479631, -0.000569652474950999, -0.0061845011077821255, 0.0037519028410315514, -0.009730392135679722, -0.025969909504055977, -0.013409462757408619, -0.0311305969953537, 0.010204842314124107, 0.02680227905511856, -0.0003038146533071995, 0.027434879913926125, 0.011802990920841694, 0.04478144645690918, -0.028034184128046036, 0.02299002930521965, 0.006371784023940563, 0.01992691121995449, -0.0052480860613286495, -0.018162289634346962, 0.03739001229405403, -0.009414092637598515, 0.009905190207064152, -0.009314208291471004, -0.01352599449455738, -0.025986557826399803, -0.015723448246717453, -0.005256409756839275, 0.012543799355626106, -0.029832102358341217, -0.005963923409581184, -0.024787945672869682, 0.024371761828660965, -0.008889700286090374, 0.007054326590150595, 0.019943559542298317, 0.01673893816769123, -0.012568769976496696, -0.01144507247954607, -0.0004146237624809146, 0.005539414938539267, 0.01413362380117178, 0.01736321486532688, 0.026236267760396004, 0.006113749463111162, 0.04261728748679161, 0.028983084484934807, 0.014583103358745575, -0.010804148390889168, -0.008806463330984116, 0.016922060400247574, 0.03267880156636238, 0.021508412435650826, 0.03103071264922619, 0.02801753766834736, 0.03509267419576645, 0.06109587848186493, 0.028034184128046036, 0.031596723943948746, 0.021092228591442108, 0.028933143243193626, -0.07651134580373764, -0.01706356182694435, 0.03758978098630905, 0.028150716796517372, 0.006658951286226511, -0.012726920656859875, -0.045513931661844254, -0.009114439599215984, -0.03066447004675865, 0.030497996136546135, -0.0038830009289085865, -0.020143328234553337, -0.002794678555801511, -0.018262173980474472, -0.014882756397128105, 0.03036481700837612, -0.027934299781918526, 0.020592806860804558, 0.0012350273318588734, 0.03224597126245499, -0.0075329383835196495, -0.01671396754682064, 0.023223092779517174, -0.03063117526471615, 0.015032581984996796, -0.01797916740179062, 0.036823999136686325, 0.02570355124771595, -0.027901004999876022, -0.004873519763350487, 0.031546782702207565, 0.008190509863197803, 0.02189130149781704, -0.02996527962386608, 0.02413869835436344, 0.018245525658130646, 0.028184011578559875, 0.016530847176909447, -0.034859608858823776, -0.03695717826485634, 0.005784963723272085, -0.029382621869444847, 0.006933632772415876, 0.000753814063500613, 0.056201547384262085, -0.014899403788149357, 0.027434879913926125, 0.0010399408638477325, 0.012244146317243576, -0.009663802571594715, -0.031996261328458786, 0.0005389588768593967, -0.007607851643115282, -0.02655256725847721, 0.015623563900589943, -0.0036457758396863937, -0.03053129091858864, -0.00742889242246747, 0.040686190128326416, 0.02042633295059204, 0.023472802713513374, 0.009763686917722225, 0.0035812673158943653, -0.043349772691726685, 0.02279026061296463, 0.03472642973065376, 0.01495766919106245, 0.009946808218955994, -0.017080210149288177, -0.005751668941229582, 0.05646790564060211, -0.030681118369102478, 0.022707022726535797, 0.04175162315368652, 0.011461719870567322, -0.002268205164000392, 0.04568040370941162, 0.009597213007509708, 0.008889700286090374, 0.015981482341885567, -0.01668899692595005, 0.01982702687382698, -0.011802990920841694, -0.004915138240903616, -0.027368290349841118, -0.046213120222091675, -0.006708893459290266, 0.02333962358534336, 0.03798931837081909, -0.03609151393175125, -0.00875652115792036, 0.00027572221006266773, 0.00855675246566534, -0.024987714365124702, -0.022723671048879623, 0.020060090348124504, -0.018212230876088142, 0.01897801086306572, 0.047012194991111755, -0.01164484117180109, -0.019410843029618263, 0.013983797281980515, -0.04168503358960152, -0.04111902415752411, 0.011719753965735435, -0.029149558395147324, 0.009014555253088474, -0.008290394209325314, -0.02204112894833088, -0.025287367403507233, -0.00042216709698550403, 0.011378482915461063, 0.021708181127905846, 0.003433521604165435, 0.021158818155527115, 0.033710941672325134, -0.013659173622727394, 0.047112081199884415, -0.029282737523317337, -0.013867265544831753, -0.0031713254284113646, -0.04211786761879921, -0.024371761828660965, 0.02530401386320591, -0.028533605858683586, 0.05789957940578461, 0.02037638984620571, -0.02525407262146473, 0.014250155538320541, 0.0036083192098885775, -0.014083681628108025, -0.031097302213311195, 0.010770853608846664, 4.1325816710013896e-05, -0.011278598569333553, 0.03083094395697117, 0.04684572294354439, -0.028283895924687386, -0.004798606503754854, 0.026469331234693527, -0.004553057719022036, -0.02545384131371975, -0.00833201315253973, 0.004076526500284672, -0.029049674049019814, 0.015881597995758057, 0.023705866187810898, 0.0011184957111254334, -0.00700438441708684, 0.024688061326742172, 0.012543799355626106, -0.022473961114883423, -0.012926689349114895, -0.0026365285739302635, 0.00936415046453476, -0.013667497783899307, -0.033411286771297455, 0.0005909819155931473, 0.021108875051140785, -0.017696162685751915, 0.013417786918580532, -0.009272589348256588, 0.0066839223727583885, 0.02338956668972969, 0.03352781757712364, 0.030098458752036095, -0.00991351343691349, -0.031097302213311195, 0.006817101500928402, -0.009339178912341595, -0.011278598569333553, 0.05147369205951691, 0.02550378255546093, -0.003858029842376709, -0.0002983522426802665, -0.013051544316112995, 0.0175629835575819, -0.016747262328863144, -0.03209614381194115, -0.008211319334805012, 0.013417786918580532, -0.004511439241468906, 0.004598838277161121, -0.01626448892056942, -0.008606694638729095, 0.021724827587604523, -0.03962076082825661, 0.006929471157491207, 0.02460482530295849, -0.0025408060755580664, -0.019544022157788277, 0.03888827562332153, 0.0034231171011924744, 0.0054395305924117565, -0.008606694638729095, 0.04045312851667404, 0.004461497534066439, -0.038388852030038834, -0.013168076053261757, 0.008123920299112797, 0.04288364574313164, -0.015307264402508736, -0.0160647202283144, -0.041185613721609116, -0.006775483023375273, 0.0259532630443573, -0.008548428304493427, -0.02032644860446453, 0.03394400328397751, -0.024205287918448448, -0.027218462899327278, 0.020492922514677048, -0.005876524373888969, 0.003335718298330903, 0.002426355378702283, 0.03449336811900139, -0.015482061542570591, 0.021375233307480812, 0.0469789020717144, 0.011961140669882298, -0.017279978841543198, -0.009605537168681622, 0.004786121193319559, 0.01736321486532688, 0.04208457097411156, 0.00583490589633584, 0.034759726375341415, 0.017529688775539398, 0.041385382413864136, -0.028500311076641083, -0.03868850693106651, 0.01505755353718996, -0.021758122369647026, 0.04944271221756935, 0.04115231707692146, 0.07784313708543777, 0.033910710364580154, 0.0030631176196038723, -0.042750466614961624, 0.014025416225194931, 0.013109810650348663, 0.0005259530735202134, 0.06003044545650482, 0.012835128232836723, -0.04111902415752411, 0.013867265544831753, 0.010953974910080433, 0.01393385510891676, 0.025986557826399803, 0.01591489277780056, 0.027268406003713608, -0.015232350677251816, 0.01673893816769123, -0.03975393995642662, -0.017746105790138245, -0.015507033094763756, -0.01671396754682064, -0.050175197422504425, -0.0656905546784401, 0.0351259671151638, -0.0017282059416174889, 0.034060534089803696, 0.022973380982875824, 0.03925451636314392, -0.019111189991235733, -0.03482631593942642, 0.02094240114092827, -0.0037935213185846806, -0.022457312792539597, -0.00700438441708684, -0.0009723108960315585, -0.011228656396269798, -0.06492477655410767, 0.01967720128595829, 0.04588017240166664, 0.05243924260139465, 0.03344458341598511, 0.004018261097371578, -0.001642888062633574, 0.016772232949733734, -0.01591489277780056, 0.05410397797822952, -0.01526564545929432, -0.012061025016009808, 0.028899848461151123, 0.0006102304323576391, 0.01666402630507946, 0.01776275224983692, 0.02132529206573963, -0.021525058895349503, 0.0014150271890684962, -0.022623786702752113, 0.059064898639917374, 0.015615240670740604, -0.040586307644844055, -0.012552122585475445, 0.014674663543701172, -0.0065840380266308784, -0.04121890664100647, -0.00011861256643896922, -0.019893616437911987, -0.01092068012803793, 0.0022349106147885323, 0.04131879284977913, -0.016497552394866943, -0.008598370477557182, -0.032412443310022354, 0.005289704538881779, 0.011112124659121037, -0.03595833480358124, 0.03133036568760872, 0.04441520571708679, -0.0030672794673591852, 0.03852203115820885, -0.016580788418650627, 0.005314675625413656, 0.002332713920623064, -0.006063807290047407, 0.03675740957260132, 0.022457312792539597, -0.016147956252098083, 0.0031775683164596558, -0.019993500784039497, 0.03429359942674637, 0.012718596495687962, 0.035259146243333817, 0.002619881182909012, 0.04111902415752411, 0.03479301929473877, 0.022207602858543396, 0.00603883620351553, 0.027035342529416084, 0.05706721171736717, -0.03118053823709488, -0.005277218762785196, 0.0375564843416214, -0.014624721370637417, -0.0005582073936238885, -0.024704709649086, 0.00504415575414896, -0.004061960149556398, -0.014866109006106853, 0.01473292987793684, 0.038222379982471466, -0.02343950793147087, 0.012011082842946053, -0.04894329234957695, -0.007129239849746227, 0.010296403430402279, -0.00020588123879861087, -0.011236980557441711, -0.024122050032019615, 0.028983084484934807, -0.002007049508392811, -0.002746817423030734, -0.019593963399529457, -0.01124530378729105, 0.008947965689003468, -0.04950930178165436, 0.005064964760094881, -0.01668899692595005, -0.04568040370941162, -0.013442757539451122, -0.06296038627624512, -0.009763686917722225, -0.024171993136405945, 0.020209917798638344, 0.02154170721769333, 0.017845990136265755, 0.00020210957154631615, 0.004415716975927353, -0.013059868477284908, 0.01623951643705368, 0.006271899677813053, 0.026136383414268494, 0.01827882044017315, -0.009821953251957893, -0.0038101687096059322, -0.038122497498989105, -0.022573845461010933, 0.006729702465236187, -0.019360899925231934, -0.05476987361907959, 0.0032982616685330868, -0.006463344674557447, 0.023522745817899704, -0.026619156822562218, 0.01528229285031557, -0.023256387561559677, 0.0009223687811754644, 0.005839067976921797, -0.03377753123641014, -0.01882818527519703, 0.040086887776851654, 0.005493634846061468, -0.01134518813341856, -0.007999065332114697, 0.011902875266969204, -0.02445499785244465, 0.0018228879198431969, -0.02072598598897457, 0.037623073905706406, 0.0018541017780080438, 0.03825567290186882, -0.021358586847782135, 0.013034896925091743, -0.045347459614276886, -0.011678135953843594, 0.0003272250178270042, 0.06845401972532272, -0.011311893351376057, 0.05596848577260971, -0.01535720657557249, 0.02906632237136364, -0.026186326518654823, 0.027368290349841118, -0.021674886345863342, -0.013143104501068592, 0.028650138527154922, 0.03429359942674637, -0.010804148390889168, -0.017230035737156868, 0.016880441457033157, -0.04478144645690918, 0.014616398140788078, 0.03695717826485634, -0.009114439599215984, 0.011486690491437912, -0.03056458570063114, -0.01947743259370327, 0.00044401679770089686, 0.025670256465673447, -0.0420512780547142, -0.04864363744854927, -0.02112552337348461, -0.011053859256207943, 0.008244614116847515, -0.0021121359895914793, -0.008698254823684692, 0.010013397783041, -0.013775705359876156, -0.0035146777518093586, -0.032046202570199966, 0.05230606347322464, 0.010912355966866016, 0.04930953308939934, 0.0037914402782917023, -0.0058557153679430485, -0.01972714252769947, 0.005485311150550842, -0.011403453536331654, -0.011678135953843594, 0.01277686282992363, -0.016056396067142487, 0.02715187333524227, 0.03502608463168144, -0.013351197354495525, 0.03649105131626129, -0.02941591665148735, 0.025969909504055977, -0.009131086990237236, -0.015107495710253716, 0.005689241457730532, 0.0356253907084465, -0.05350467190146446, -0.0043824221938848495, 0.022057775408029556, 0.028233952820301056, -0.034559957683086395, -0.020209917798638344, 0.031396955251693726, 0.005655946675688028, 0.04378260299563408, -0.0405530147254467, 0.007944961078464985, -0.010346345603466034, 0.018312115222215652, -0.002746817423030734, 0.02114216983318329, 0.030497996136546135, -0.012818480841815472, -0.025021009147167206, 0.009963455609977245, 0.0016043910291045904, 0.018262173980474472, -0.028333837166428566, -0.021092228591442108, -0.03768966346979141, -0.028000889346003532, 0.0055768718011677265, 0.005360455717891455, -0.048210807144641876, -0.023972224444150925, -0.004777797497808933, -0.01656414195895195, 0.00762866111472249, 0.0021912110969424248, -0.028650138527154922, -0.005759992636740208, 0.024005519226193428, -0.01051281951367855, -0.05437033623456955, 0.03629128262400627, -0.0010956055484712124, -0.04884340614080429, -0.01435836311429739, 0.018362058326601982, 0.010188194923102856, -0.011236980557441711, -0.035725273191928864, 0.004411555361002684, 0.007845076732337475, 0.013534318655729294, -0.017146799713373184, -0.014350039884448051, 0.005356294102966785, 0.02082587033510208, -0.0259532630443573, -0.014882756397128105, -0.0076702795922756195, 0.015007611364126205, 0.03715694695711136, -0.013159751892089844, 0.020992344245314598, -0.015332235023379326, -0.026785630732774734, -0.06439206004142761, 0.0212420541793108, -0.01987696997821331, 0.013575936667621136, 0.01611466147005558, -0.004923461936414242, 0.008590047247707844, -0.028184011578559875, 0.01216923352330923, 0.014166918583214283, -0.01270194910466671, 0.0023431184235960245, 0.028350485488772392, -0.018012462183833122, 0.0004934386815875769, -0.029698923230171204, 0.009513976983726025, -0.013043221086263657, 0.018095700070261955, -0.04994213581085205, -0.03935440257191658, -0.010030045174062252, -0.010953974910080433, -0.020592806860804558, -0.0023160665296018124, -0.002386817941442132, 0.003110978752374649, -0.02650262601673603, -0.029349327087402344, -0.019943559542298317, -0.01736321486532688, 0.01912783645093441, 0.008773168548941612, 0.025087598711252213, 0.014166918583214283, 0.020060090348124504, 0.029998574405908585, -0.013534318655729294, -0.049276240170001984, 0.001562772667966783, 0.03299510478973389, 0.009572242386639118, 0.006259414367377758, -0.02388898655772209, 0.00019664714636746794, 0.013684145174920559, -0.002058032201603055, 0.017130151391029358, -0.03141360357403755, 0.011003917083144188, 0.03459325060248375, 0.053637851029634476, -0.005901495460420847, -0.0173132736235857, -0.0017479746602475643, 0.0073623028583824635, 0.007087621372193098, 0.020442979410290718, 0.007025193423032761, 0.00971374474465847, 0.01802911050617695, 0.0004825138603337109, 0.012344030663371086, 0.008352821692824364, 0.03685729578137398, -0.0721830278635025, 0.0056975651532411575, 0.0013754896353930235, -0.015273969620466232, 0.004719531629234552, 0.005339646711945534, 0.056601084768772125, 0.01144507247954607, 0.005352132022380829, 0.03201290965080261, 0.016356049105525017, 0.021475117653608322, 0.007433054503053427, 0.030081812292337418, -0.011403453536331654, 0.027801120653748512, -0.025337308645248413, -0.016281135380268097, 0.024871183559298515, -0.003610400017350912, -0.0063551366329193115, 0.004894329234957695, 0.035259146243333817, 0.015273969620466232, 0.01350102387368679, 0.017479747533798218, -0.01370911579579115, -0.020343095064163208, 0.027734531089663506, 0.010138253681361675, -0.005081612151116133, -0.021724827587604523, 0.01696367748081684, 0.004765312187373638, 0.003115140600129962, -0.015124143101274967, 0.04185150936245918, -0.03294515982270241, -0.0042825378477573395, -0.0030964124016463757, -0.01648922823369503, 0.0154570909217, -0.001020172145217657, 0.0039724805392324924, -0.02670239470899105, -0.01196946483105421, 0.0004913577577099204, -0.0003373695071786642, 0.004105659667402506, -0.013967149890959263, -0.024471646174788475, -0.009214323945343494, 0.012160909362137318, -0.026485977694392204, -0.013434434309601784, -0.016156280413269997, -0.02229083888232708, -0.03046470135450363, -0.036923885345458984, 0.002084043575450778, 0.014766224659979343, 0.00040890122181735933, 0.00017973965441342443, -0.04228433966636658, -0.003914214670658112, 0.01726333051919937, -0.008889700286090374, 0.032412443310022354, 0.009014555253088474, 0.009572242386639118, -0.022906791418790817, 0.014100329019129276, 0.03063117526471615, 0.008386116474866867, 0.0009676288464106619, -0.01837870478630066, -0.04964248090982437, -0.014258479699492455, -0.001665778225287795, -0.00411606440320611, -0.007058488205075264, 0.009846923872828484, 0.038022611290216446, 0.0031838109716773033, -0.0010638715466484427, -0.020409684628248215, -0.0016012697014957666, 0.021724827587604523, 0.02358933538198471, -0.00787004828453064, 0.017046915367245674, 0.007295713294297457, 0.007745192851871252, -0.022773612290620804, 0.0016179170925170183, -0.009039525873959064, 0.015049229376018047, 0.020442979410290718, 0.05963090807199478, -0.01807905174791813, 0.012019407004117966, -0.022274192422628403, -0.030348170548677444, 0.006417564116418362, 0.010204842314124107, -0.001656414126046002, 0.031147243455052376, 0.016372695565223694, 0.005801611114293337, 0.0017167608020827174, -0.011736401356756687, -0.020060090348124504, -0.019960206001996994, -0.022407371550798416, -0.01603974960744381, -0.03675740957260132, -0.0042617288418114185, -0.00722912373021245, -0.022823555395007133, 0.0010695940582081676, -0.01518240850418806, -0.03729012608528137, 0.019943559542298317, -0.010604379698634148, -0.018212230876088142, -0.00875652115792036, 0.018911421298980713, 0.005797449499368668, 0.005693403072655201, 0.003206701250746846, 0.017646221444010735, 0.014200213365256786, 0.006467506289482117, -0.029848748818039894, -0.016081366688013077, -0.051939819008111954, -0.005560224410146475, -0.014691310934722424, 0.04881011322140694, -0.011028887704014778, 0.02996527962386608, 0.013992121443152428, 0.03825567290186882, -0.02585337869822979, -0.025220777839422226, -0.0010336980922147632, 0.01638934388756752, -0.001215258613228798, 0.01166981179267168, 0.03565868362784386, -0.01581500843167305, -0.0259532630443573, 0.041185613721609116, -0.008798139169812202, 0.004848548676818609, -0.02017662301659584, 0.010030045174062252, -0.021874655038118362, 0.017579631879925728, -0.016430962830781937, -0.02122540771961212, -0.027834415435791016, -0.01546541415154934, 0.023705866187810898, -0.001391096506267786, -0.024205287918448448, 0.007274904288351536, 0.02986539527773857, -0.027018694207072258, -0.017396509647369385, -0.02154170721769333, 0.015898246318101883, -0.009638831950724125, -0.013900560326874256, 0.008298718370497227, -0.0002905487781390548, -0.001778148114681244, 0.011703106574714184, -0.004873519763350487, -0.005468663759529591, 0.037822842597961426, -0.021408528089523315, -0.019510727375745773, -0.04311670735478401, -0.01591489277780056, 0.0020830032881349325, 0.013143104501068592, -0.0008667040965519845, 0.012135938741266727, -0.018861480057239532, 0.005780802108347416, 0.01927766390144825, 0.010288079269230366, -0.009655479341745377, 0.02801753766834736, -0.027950948104262352, -0.03469313681125641, -0.025686904788017273, -0.007990741170942783, 0.014541484415531158, -0.02981545403599739, 0.023572687059640884, 0.015581945888698101, -0.026868868619203568, -0.002426355378702283, 0.006196986418217421, -0.0008370509603992105, 0.01390888448804617, -0.018095700070261955, 0.00029653141973540187, 0.03695717826485634, 0.029232796281576157, 0.004756988491863012, 0.0036624232307076454, -0.004719531629234552, 0.045813582837581635, 0.010055016726255417, 0.032911866903305054, -0.02077592723071575, 0.01766286790370941, -0.010837443172931671, 0.019410843029618263, -0.002053870353847742, 0.006067969370633364, -0.02159164845943451, -0.019360899925231934, 0.030747707933187485, 0.006954442244023085, 0.038422148674726486, 0.02017662301659584, 0.0017552579520270228, -0.022057775408029556, -0.0016449689865112305, 0.013184723444283009, -0.005114906933158636, 0.005468663759529591, -0.02801753766834736, -0.005676755681633949, 0.0009410970960743725, 0.011911199428141117, 0.014541484415531158, 0.011561604216694832, 0.019593963399529457, 0.030747707933187485, -0.009705421514809132, -0.006309356074780226, 3.4465276257833466e-05, 0.025187483057379723, 0.01483281422406435, 0.009622184559702873, 0.011736401356756687, -0.010121606290340424, 0.0020725985523313284, -0.023705866187810898, -0.024088755249977112, 0.0014576860703527927, -0.008049007505178452, 0.0020060089882463217, 0.047611501067876816, -0.017945872619748116, 0.024971067905426025, -0.01827882044017315, -0.022723671048879623, 0.016048071905970573, 0.024787945672869682, 0.02881661057472229, -0.031197186559438705, 0.011128772050142288, -0.024671414867043495, -0.008223804645240307, 0.026768984273076057, -0.0037976831663399935, -0.034160420298576355, -0.011153743602335453, -0.002877915510907769, -0.005202305503189564, -0.00291745294816792, -0.0038330587558448315, 0.006958603858947754, 0.030098458752036095, -0.001193408970721066, -0.003354446729645133, 0.006812939420342445, -0.0006180339260026813, 0.0014254316920414567, -0.05829911679029465, -0.013059868477284908, -0.0420512780547142, 0.004665427841246128, -0.0023306328803300858, -0.024022165685892105, 0.024388408288359642, -0.018545178696513176, -0.006617332808673382, 0.023722514510154724, 0.01463304553180933, -0.0026760660111904144, 0.009722068905830383, 0.006908661685883999, -0.002049708506092429, 0.025770140811800957, -0.0031359498389065266, -0.03915463387966156, -0.0005145080504007638, -0.01837870478630066, -0.005227276589721441, 0.027035342529416084, 0.009447387419641018, 0.02142517641186714, -0.003610400017350912, -0.017796047031879425, 0.031546782702207565, 0.01124530378729105, -0.02433846704661846, -0.0036083192098885775, -0.012019407004117966, 0.002871672622859478, -0.013009926304221153, -0.006380107719451189, -0.027484821155667305, 0.02946585975587368, -0.03472642973065376, 0.0030776839703321457, 0.03519255667924881, -0.0014712120173498988, -0.018894774839282036, -0.020409684628248215, -0.025820083916187286, -0.041085727512836456, -0.0003581787459552288, -0.017146799713373184, 0.011561604216694832, -0.0003053753462154418, 0.02129199728369713, -0.009205999784171581, 0.008369469083845615, -0.024388408288359642, 0.0065840380266308784, -0.0044198790565133095, -0.02229083888232708, -0.008698254823684692, 0.008706578984856606, -0.017679516226053238, -0.0045031155459582806, 0.011611546389758587, -0.005385426804423332, -0.009597213007509708, 0.013659173622727394, 0.004960918799042702, -0.016347724944353104, 0.018062405288219452, -0.013484376482665539, 0.01932760514318943, -0.015273969620466232, -0.022573845461010933, 0.020159974694252014, 0.01776275224983692, -0.021258702501654625, -0.0027301700320094824, -0.018295468762516975, -0.00916438177227974, -0.025919968262314796, 0.0019425408681854606, -0.03982052952051163, -0.027901004999876022, 0.026719041168689728, -0.02881661057472229, 0.002193292137235403, -0.007453863508999348], "id": 80}, {"title": "Adjournment sine die", "text": "Adjournment sine die (from the Latin \"without day\") means \"without assigning a day for a further meeting or hearing\". To adjourn an assembly sine die is to adjourn it for an indefinite period.", "vector": [-0.008480370976030827, 0.004539786372333765, -0.01259988360106945, 0.05502670630812645, 0.026314949616789818, 0.031424809247255325, 0.009562263265252113, 0.025183124467730522, 0.00039634708082303405, -0.035818956792354584, -0.005621678661555052, 0.02167113497853279, -0.018025990575551987, -0.04224373400211334, -0.021787647157907486, -0.0077771409414708614, -0.03701736032962799, 0.022253692150115967, 0.04314253479242325, -0.006695248652249575, -0.04091217368841171, 0.01522971410304308, 0.018259013071656227, 0.02035621926188469, 0.042476754635572433, 0.0003061027091462165, -0.029460759833455086, -0.0015500187873840332, -0.01909123733639717, 0.003923940006643534, -0.009961731731891632, 0.0005529093905352056, 0.07157133519649506, 0.03731696307659149, -0.007960230112075806, -0.03725038468837738, 0.07729703933000565, -0.015787305310368538, -0.004606364294886589, -0.0010912548750638962, -0.04307595640420914, 0.01754329912364483, -0.051065314561128616, 0.024866878986358643, -0.04643814638257027, 0.019523994997143745, -0.019057948142290115, -0.007956069894134998, 0.000991908018477261, 0.028362222015857697, -0.008001841604709625, 0.02152133360505104, -0.006603704299777746, 0.031657833606004715, 0.006761827040463686, 0.010885501280426979, 0.029460759833455086, -0.034853577613830566, -0.05173109471797943, -0.04733694717288017, -0.016220062971115112, -0.030542651191353798, 0.016669463366270065, 0.01815914548933506, 0.0018912309315055609, 0.02668112888932228, 0.02786288782954216, -0.003499505342915654, -0.020223064348101616, -0.006021146662533283, 0.026098571717739105, -0.049966778606176376, -0.036584604531526566, 0.004240185488015413, -0.026398172602057457, -0.029444115236401558, -0.03758327290415764, 0.033854905515909195, -0.02693079598248005, -0.014239367097616196, -0.04157795384526253, -0.019074592739343643, -0.03182427957653999, -0.015953749418258667, -0.005080732516944408, -0.01248337235301733, -0.01682758703827858, -0.049101267009973526, 0.008929772302508354, -0.0003867244813591242, 0.003665950382128358, -0.0344541072845459, 0.055759064853191376, 0.007311095017939806, -0.006170947104692459, -0.02974371612071991, 0.018841570243239403, 0.021771002560853958, 0.006770148873329163, -0.08448746800422668, -0.010719056241214275, -0.049267709255218506, 0.010594221763312817, -0.011018657125532627, -0.05229700729250908, 0.025865547358989716, -0.00137005012948066, 0.00935420673340559, -0.009087895043194294, 0.041211772710084915, 0.01706060953438282, -0.010153142735362053, 0.017410144209861755, 0.0068533713929355145, -0.05938756465911865, -0.036584604531526566, -0.006187591701745987, -0.02951069362461567, -0.0029668814968317747, 0.03035956248641014, -0.003921859432011843, -0.03521975502371788, 0.028828268870711327, -0.03147474303841591, 0.007951908744871616, 0.0014740782789885998, 0.04330898076295853, 0.018192434683442116, -0.026830928400158882, 0.036584604531526566, -0.019623862579464912, -0.043475426733493805, -0.02065582014620304, -0.0038323954213410616, 0.01877499185502529, 0.006532964762300253, -0.0440080501139164, -0.009878508746623993, -0.014497356489300728, 0.02278631553053856, -0.009637163951992989, 0.02067246474325657, 0.03184092044830322, 0.03511988744139671, 0.032306969165802, -0.03904798999428749, -0.005309594329446554, 0.003703400492668152, -0.012500016950070858, 0.03215716779232025, -0.02866182290017605, 0.007128005847334862, 0.02623172663152218, -0.008384665474295616, -0.006483031436800957, -0.013357209041714668, 0.023901497945189476, -0.003366349497810006, 0.0001643644063733518, -0.03904798999428749, 0.020689109340310097, 0.03438752889633179, -0.008018486201763153, 0.04164453223347664, -0.04513987526297569, 0.0055134897120296955, -0.009420785121619701, -0.048868242651224136, 0.005534294992685318, 0.00896306149661541, -0.015595893375575542, -0.011218390427529812, -0.014189433306455612, -0.05472710356116295, 0.011800948530435562, 0.006050274707376957, 0.008680105209350586, 0.038082607090473175, 0.015263003297150135, 0.040812306106090546, -0.040046658366918564, 0.01792612299323082, 0.002727616811171174, -0.020139841362833977, 0.030642518773674965, -0.02779630944132805, 0.03335557132959366, -0.02551601268351078, 0.051531363278627396, -0.03285623714327812, -0.016078583896160126, -0.0382157638669014, 0.06464722752571106, 0.010793955996632576, 0.019707083702087402, 0.0029606397729367018, -0.029377536848187447, 0.006541287060827017, 0.0018756267381832004, 0.010793955996632576, -0.009753675200045109, -0.015471059828996658, -0.02097206562757492, 0.08954739570617676, -0.06438091397285461, -0.00046942682820372283, 0.05479368194937706, 0.01714383251965046, 0.027430130168795586, -0.021854223683476448, 0.002577816369011998, -0.011709403246641159, -0.03239019215106964, 0.03350537270307541, 0.02065582014620304, 0.0029315119609236717, -0.0579228475689888, -0.042776357382535934, 0.04783628508448601, -0.02363518625497818, -0.002844128292053938, -0.0399467907845974, -0.029061291366815567, 0.02589883655309677, -0.03412121906876564, -0.009404140524566174, 0.02348538488149643, 0.01987352967262268, -0.010785633698105812, 0.02762986533343792, -0.009995019994676113, 0.013240696862339973, 0.018275657668709755, -0.005326238926500082, -0.007331900764256716, -0.02080562151968479, 0.05439421534538269, -0.04727037250995636, 0.02340216189622879, -0.036351580172777176, -0.015346226282417774, 0.05489354953169823, -0.02348538488149643, 0.0018381766276434064, -0.01200900413095951, -0.018908148631453514, 0.023069271817803383, -0.005850540474057198, -0.010519322007894516, -0.010768989101052284, -0.017243698239326477, 0.031108563765883446, -0.002606944413855672, -0.010003342293202877, -0.0361851342022419, 0.022053958848118782, -0.012192093767225742, -0.017018998041749, -0.0077688186429440975, 0.03308925777673721, 0.007598212920129299, 0.009470718912780285, 0.0004806098295375705, -0.025782326236367226, -0.020372863858938217, 0.009312596172094345, 0.009087895043194294, 0.0028690951876342297, 0.01909123733639717, -0.03204065561294556, -0.06697745621204376, -0.01965714991092682, -0.01885821484029293, 0.005887990817427635, -0.029310958459973335, 0.005575906485319138, 0.010993690229952335, 0.025848902761936188, 0.09340891242027283, 0.053894881159067154, -0.01490514725446701, -0.042310312390327454, -0.03521975502371788, -0.046837612986564636, 0.04467383027076721, 0.00907957274466753, -0.02010655216872692, 0.004781131632626057, -0.006811760365962982, 0.00783123541623354, -0.0243342537432909, 0.004167365841567516, 0.03578566759824753, 0.0353529118001461, 0.0518309623003006, 0.017343565821647644, -0.01568743772804737, -0.021970735862851143, -0.03405464068055153, -0.034154508262872696, 0.02122173272073269, 0.04800272732973099, 0.013581909239292145, 0.02559923566877842, 0.01291612908244133, -0.01181759312748909, 0.016877518966794014, 0.033072616904973984, -0.006025307811796665, -0.042310312390327454, 0.04244346544146538, -0.0573236458003521, 0.06691087782382965, -0.021621201187372208, 0.0067743100225925446, -0.015637503936886787, 0.0009846260072663426, -0.027263686060905457, 0.03077567368745804, -0.0234687402844429, 0.0097786420956254, 0.01225034985691309, 6.607409886782989e-06, -0.027646509930491447, 0.04940086603164673, -0.048801664263010025, -0.002569494303315878, -0.007743852213025093, 0.06870847940444946, -0.01784290000796318, -0.017709745094180107, -0.019290972501039505, 0.005771479103714228, 0.006840887945145369, -0.02991016022861004, 0.0013336403062567115, -0.0010491234716027975, 0.011642825789749622, 0.04513987526297569, -0.04357529431581497, 0.028711756691336632, -0.03442081809043884, 0.07723046839237213, -0.022320270538330078, 0.04540618881583214, 0.04737023636698723, -0.018675126135349274, -0.005754834972321987, 0.026664484292268753, 0.02065582014620304, 0.0006897063576616347, -0.027962755411863327, -0.005022476892918348, 0.007473378907889128, 0.006391486618667841, -0.04021310433745384, -0.017010675743222237, -0.03179099038243294, 0.018758347257971764, -0.01216712687164545, -0.0005425065755844116, 0.000173856969922781, 0.041677821427583694, -0.013756676577031612, -0.0019713325891643763, -0.045739077031612396, -0.01800934597849846, -0.0015760257374495268, 0.03615184873342514, 0.06644482910633087, -0.02574903704226017, -0.016919130459427834, 0.04467383027076721, 0.002650636015459895, 0.026031993329524994, 0.012266994453966618, 0.039247725158929825, -0.025449436157941818, 0.01925768330693245, -0.006229202728718519, 0.02528299018740654, 0.06567918509244919, -0.023335585370659828, 0.03277301415801048, -0.01784290000796318, -0.06448078155517578, 0.012075582519173622, 0.004477369599044323, -0.006557931657880545, -0.022187113761901855, 0.0015312937321141362, 0.024983389303088188, 0.017743034288287163, -0.04037955030798912, 0.006170947104692459, 0.016919130459427834, -0.013523654080927372, 0.015121525153517723, 0.056624576449394226, 0.006757665891200304, 0.008459565229713917, -0.04357529431581497, -0.0012493774993345141, 0.006899144034832716, -0.015188103541731834, 0.025233056396245956, -0.018192434683442116, -0.01240847259759903, -0.009920120239257812, -0.028828268870711327, -0.0144058121368289, 0.033372215926647186, 0.022719739004969597, -0.033788327127695084, -0.01754329912364483, 0.0023323101922869682, -0.002054555108770728, 0.007194583769887686, 0.02261987142264843, -0.0005539496778510511, -0.013665132224559784, -0.03848207741975784, -0.03701736032962799, -0.005704901181161404, 0.08209066092967987, 0.007552440278232098, -0.0030168150551617146, 0.016503019258379936, -0.011676114052534103, -0.013465397991240025, -0.07257000356912613, 0.0804927870631218, 0.06970715522766113, 0.04553934186697006, -0.0010787714272737503, -0.01060254406183958, -0.046071965247392654, 0.03167447820305824, -0.025382857769727707, 0.08242354542016983, -0.04107861965894699, -0.04900139942765236, 0.0063706813380122185, 0.014139500446617603, 0.02363518625497818, -0.03571908921003342, -0.015096558257937431, -0.02027299627661705, 0.07190422713756561, 0.015654148533940315, -0.0040820627473294735, -0.034853577613830566, 0.03428766503930092, 0.012075582519173622, 0.10166458785533905, 0.025765681639313698, 0.012308605015277863, -0.06671114265918732, 0.0440080501139164, 0.0007760496810078621, 0.006487192586064339, 0.037982743233442307, 0.01775967888534069, -0.015096558257937431, 0.06754336506128311, 0.004835226107388735, 0.026647839695215225, -0.01593710482120514, 0.022503359243273735, 0.016944097355008125, -0.028145844116806984, -0.016810942441225052, -0.08029305189847946, 0.022436780855059624, 0.012017326429486275, -0.008243187330663204, -0.08262328058481216, -0.005942085292190313, -0.010860534384846687, 0.02261987142264843, 0.02714717388153076, -0.027646509930491447, -0.04600539058446884, -0.020289640873670578, -0.025948770344257355, 0.04940086603164673, 0.0195572841912508, -0.018259013071656227, -0.03758327290415764, 0.00896306149661541, 0.05266318842768669, 0.01925768330693245, 0.044640541076660156, 0.0008545909076929092, 0.013065929524600506, -0.011201746761798859, 0.016369862481951714, 0.018958082422614098, 0.03891483321785927, 0.048868242651224136, -0.01714383251965046, 0.04161124303936958, 0.0440080501139164, 0.02872840128839016, -0.0175266545265913, 0.0033205770887434483, -0.015104880556464195, -0.02458392083644867, -0.031041987240314484, 0.036984071135520935, -0.040512703359127045, -0.026880862191319466, -0.004385824780911207, -0.009920120239257812, 0.03748340532183647, 0.010402810759842396, -0.02536621317267418, -0.03961390256881714, -0.020456086844205856, 0.03328899294137955, 0.0003867244813591242, 0.0015770660247653723, 0.01784290000796318, 0.02255329303443432, -0.021421467885375023, 0.01676100865006447, 0.040412839502096176, -0.005247177556157112, -0.024450765922665596, 0.008621849119663239, -0.007548279128968716, -0.029077935963869095, 0.034786999225616455, 0.02481694519519806, -0.006911627482622862, 0.03465384244918823, -0.07456734776496887, 0.043242402374744415, 0.01644476316869259, 0.004369180183857679, 1.5157220332184806e-05, 0.013065929524600506, 0.0004051894648000598, -0.009970053099095821, -0.007244517095386982, -0.009853541851043701, 0.014056277461349964, -0.0011328660184517503, 0.01357358694076538, -0.0019297213293612003, 0.05432763695716858, -0.045905523002147675, -0.0280959103256464, 0.027529997751116753, -0.02018977515399456, -0.012025648728013039, -0.046604592353105545, 0.006840887945145369, 0.01365680992603302, 0.03531962260603905, 0.010377843864262104, 0.017826255410909653, 0.027979398146271706, 0.006208397448062897, -0.006915788631886244, 0.011434769257903099, -0.0048685153014957905, 0.008263993076980114, 0.006129336077719927, -0.04134492948651314, 0.015446092933416367, -0.020139841362833977, -0.0077688186429440975, 0.0006111651309765875, 0.06364855915307999, 0.03253998979926109, 0.0055842287838459015, -0.01722705364227295, -0.02363518625497818, -0.027896177023649216, 0.028611889109015465, -0.03608527034521103, -0.0007235154625959694, 0.020639175549149513, -0.05369514599442482, 0.023219073191285133, 0.02223704755306244, -0.05319581180810928, -0.006299941800534725, 0.04037955030798912, 0.014730379916727543, -7.659069524379447e-05, 0.045605920255184174, 0.01123503502458334, 0.017826255410909653, -0.010261332616209984, -0.023968074470758438, -0.002517480170354247, -0.000666300009470433, 0.03661789372563362, -0.01566247083246708, 0.03515317663550377, -0.04211057722568512, -0.03591882437467575, -0.04194413125514984, 0.011060267686843872, 0.06334895640611649, -0.013207408599555492, -0.02082226611673832, 0.0014563935110345483, -0.04710392653942108, -0.012300282716751099, -0.019157815724611282, -0.037450116127729416, -0.0020732800476253033, -0.02558259107172489, 0.02137153409421444, 0.00516395503655076, -0.013598553836345673, 0.002746341982856393, -0.03452068567276001, 0.01887485943734646, 0.015754016116261482, 0.021338244900107384, -0.009820252656936646, -0.0021200927440077066, 0.016145162284374237, 0.01785954460501671, 0.010003342293202877, 0.019224394112825394, 0.02543279156088829, 0.015803949907422066, -0.008971383795142174, 0.04314253479242325, 0.02316913940012455, -0.008596882224082947, 0.029211092740297318, -0.017809610813856125, -0.008209898136556149, -0.014930113218724728, 0.0056508067063987255, 0.006266653072088957, 0.02168777957558632, 0.017909478396177292, -0.009445752017199993, -0.005742351524531841, 0.064014732837677, 0.040113236755132675, 0.03262321278452873, 0.017193764448165894, 0.015163136646151543, 0.00706558907404542, 0.0049309320747852325, 0.03060922957956791, 0.05535959452390671, -0.002513319021090865, 0.0076356627978384495, -0.019507350400090218, 0.012441761791706085, 0.00672853784635663, -0.012275316752493382, -0.058522049337625504, -0.052629899233579636, 0.010768989101052284, 0.03263985738158226, -0.07117186486721039, -0.01767645590007305, 0.0012358538806438446, -0.014497356489300728, -0.007806268986314535, -0.010061598382890224, -0.02473372220993042, -0.02270309440791607, -0.049267709255218506, 0.021721068769693375, -0.03052600659430027, -0.013149152509868145, -0.015554281882941723, 0.01036952156573534, -0.0008384665125049651, -0.004643814638257027, 0.013215729966759682, -0.048102594912052155, -0.035186465829610825, -0.003326818812638521, 0.02435089834034443, -0.002663119463250041, 0.02080562151968479, -0.016885841265320778, -0.0047353594563901424, -0.015329581685364246, 0.03605198115110397, -0.020023329183459282, -0.008588559925556183, -0.021105222404003143, -0.010194754227995872, 0.003372591221705079, -0.00025655931676737964, -0.01832559145987034, -0.00812667515128851, -0.012375183403491974, 0.060685835778713226, 0.042310312390327454, 0.009221050888299942, 0.0385153666138649, 0.04061257094144821, 0.018641836941242218, 0.031724411994218826, -0.0021367373410612345, 0.0009669412393122911, -0.01678597554564476, -0.02684757299721241, -0.004814420826733112, 0.006254169624298811, 0.05955401062965393, -0.0023614380042999983, -0.00022327032638713717, -0.06048610061407089, -0.02120508812367916, -0.015371193177998066, -0.01240847259759903, -0.005946246441453695, -0.009903475642204285, 0.029294313862919807, 0.024950100108981133, -0.013049285858869553, -0.0555926188826561, 0.003399638459086418, -0.01608690619468689, 0.0032748046796768904, -0.018425457179546356, 0.022270336747169495, 0.0204227976500988, 0.006820082664489746, 0.028512023389339447, -0.03954732418060303, 0.007435929030179977, 0.001392936334013939, -0.003626419696956873, -0.006974044255912304, -0.01699403114616871, -0.03328899294137955, -0.008409632369875908, 0.012192093767225742, 0.004880998749285936, -0.04484027251601219, 0.02230362594127655, 0.023502029478549957, -0.043475426733493805, -0.0020847232080996037, -0.007723046466708183, -0.003626419696956873, 0.019124526530504227, -0.001357566798105836, -0.009737030602991581, -0.04314253479242325, 0.007057266775518656, -0.02653132751584053, 0.022270336747169495, 0.051930829882621765, 0.0011536716483533382, 0.009029639884829521, -0.019191104918718338, 0.0031728572212159634, 0.002700569573789835, 0.022087248042225838, -0.022170469164848328, 0.013556942343711853, 0.002079521771520376, 0.06581234186887741, 0.015421126037836075, -0.01769310049712658, 0.0013981377705931664, 0.01581227220594883, -0.021737713366746902, 0.021721068769693375, -0.014355878345668316, -0.001783041749149561, -0.004743681754916906, -0.013590231537818909, -0.021771002560853958, -0.0385153666138649, -0.007981035858392715, 0.012691428884863853, -0.004581397864967585, -0.01900801621377468, 0.013856543228030205, -0.001703980378806591, 0.026980729773640633, -0.009196084924042225, 0.03904798999428749, 0.019690439105033875, 0.040978752076625824, -0.018275657668709755, 0.013215729966759682, -0.026265015825629234, -0.0032331934198737144, -0.033155836164951324, -0.08382168412208557, -0.05579235404729843, 0.017426788806915283, -0.014181111007928848, 0.0460386797785759, 0.024517344310879707, -0.021854223683476448, -0.019124526530504227, 0.009728708304464817, -0.0014636754058301449, -0.0008504297584295273, -0.01785954460501671, 0.0157040823251009, -0.023918142542243004, 0.04627170041203499, -0.004926770925521851, 0.015629181638360023, 0.005209727678447962, -0.019590573385357857, -0.008189092390239239, -0.0212883111089468, 0.04737023636698723, -0.004298441112041473, 0.006624509580433369, -0.0024987549986690283, -0.02300269529223442, -0.011792626231908798, -0.011559602804481983, 0.036285001784563065, 0.001668610842898488, 0.02739684097468853, 0.030476072803139687, -0.017709745094180107, -0.002511238446459174, -0.022436780855059624, 0.046837612986564636, -0.02033957466483116, -0.010186431929469109, 0.014056277461349964, 0.009745352901518345, -0.009528974071145058, 0.04404133930802345, -0.0009924281621351838, 0.014222722500562668, -0.022653160616755486, -0.045605920255184174, 0.002507077297195792, 0.009462396614253521, 0.002373921452090144, -0.07203738391399384, 0.008696749806404114, -0.01879163645207882, 0.0347537100315094, -0.021654490381479263, 0.012633172795176506, 0.013015996664762497, 0.0020389507990330458, 0.034553974866867065, -0.014181111007928848, 0.01145973615348339, 0.001737269340083003, -0.006170947104692459, 0.02300269529223442, 0.05456066131591797, -0.038781676441431046, -0.009037962183356285, 0.015562604181468487, 0.01847539097070694, 0.01284122932702303, -0.05049940198659897, 0.028711756691336632, -0.03811589628458023, 0.00354111660271883, -0.01617012917995453, 0.015512671321630478, 0.004331730306148529, 0.007390156388282776, 0.00023627383052371442, 0.0037949453108012676, 0.006445581559091806, 0.025798970833420753, 0.02010655216872692, -0.007311095017939806, 0.002606944413855672, -0.048102594912052155, -0.04181097447872162, 0.045040007680654526, 0.02693079598248005, 0.007073910906910896, 0.0010382004547864199, -0.014588901773095131, -0.02316913940012455, 0.022969406098127365, -0.02849537879228592, -0.0006590180564671755, 0.011160135269165039, 0.04117848351597786, -0.010635833255946636, 0.012616528198122978, 0.004623008891940117, 0.0007625260041095316, -0.016369862481951714, -0.012466727755963802, -0.02230362594127655, 0.031275007873773575, -0.007881169207394123, -0.000979944714345038, 0.015795627608895302, 0.009645486250519753, -0.015587571077048779, -0.01924103870987892, -0.008159964345395565, -0.04513987526297569, -0.02230362594127655, -0.013365531340241432, 0.027430130168795586, 0.03585224598646164, -0.025715747848153114, -0.04753668233752251, 0.04374173656105995, -0.00034875422716140747, 0.015554281882941723, -0.008521982468664646, -0.0023531157057732344, -0.03234025835990906, -0.0019130768487229943, 0.009703741408884525, -0.0021325761917978525, 0.02942747063934803, -0.00496838241815567, 0.02167113497853279, 0.0047353594563901424, -0.012549950741231441, 0.03149138763546944, 0.04530632123351097, -0.02543279156088829, 0.036351580172777176, -0.031657833606004715, -0.021554622799158096, -0.0014199836878105998, -0.014996691606938839, 0.008168286643922329, -0.011326580308377743, 0.0489681102335453, -0.008563593961298466, 0.019207749515771866, 0.006254169624298811, -0.003522391663864255, -0.04171111062169075, 0.018641836941242218, -0.024217743426561356, -0.009204406291246414, -0.04091217368841171, 0.035020019859075546, 0.008779971860349178, -0.010860534384846687, 0.01365680992603302, -0.05079900473356247, -0.02691415138542652, 0.004585559014230967, -0.001785122323781252, 0.006483031436800957, -0.028079265728592873, -0.01032791007310152, 0.03938087821006775, 0.00528462789952755, 0.03951403498649597, 0.01678597554564476, 0.006516320630908012, 0.0015042463783174753, -0.0028316450770944357, 0.0144807118922472, 0.02769644185900688, -0.004071659874171019, 0.017260342836380005, -0.001238974742591381, -0.04194413125514984, -0.00508489366620779, -0.0009216890321113169, -0.004019645974040031, 0.020239708945155144, -0.017559943720698357, 0.013948088511824608, 0.031807634979486465, 0.02604863792657852, -0.02027299627661705, 0.009820252656936646, -0.005542617291212082, -0.021088577806949615, 0.019906818866729736, -0.017809610813856125, 0.012782973237335682, -0.011284968815743923, -0.03804931789636612, 0.018924793228507042, -0.02676435001194477, 0.005059927236288786, 0.011984037235379219, 0.005800607148557901, -0.008438759483397007, -0.020705753937363625, 0.015795627608895302, -0.021820934489369392, 0.023851564154028893, -0.022270336747169495, -0.02175435796380043, 0.020223064348101616, -0.0296771377325058, 0.0012171288253739476, 0.019191104918718338, 0.005159793887287378, -0.014921790920197964, 0.03764985129237175, -0.010419455356895924, -0.024633854627609253, 0.0347537100315094, -0.031341586261987686, -0.022819604724645615, 0.0010558852227404714, -0.01870841346681118, -0.028978068381547928, 0.012891163118183613, 0.017043964937329292, 0.047470103949308395, -0.016669463366270065, 0.01549602672457695, -0.004776970483362675, 0.016802620142698288, 0.03788287565112114, -0.005313755478709936, 0.028129199519753456, -0.02684757299721241, -0.006112691480666399, 0.02904464676976204, -0.014738702215254307, 0.0016207578592002392, -0.008971383795142174, -0.02395143173635006, -0.006915788631886244, 0.026947440579533577, 0.004772809334099293, 0.030476072803139687, -0.013507009483873844, 0.02316913940012455, -0.009429107420146465, 0.028512023389339447, 0.00027411404880695045, 0.008929772302508354, 2.145579674106557e-05, -0.024833589792251587, -0.011351547203958035, 0.006657798774540424, -0.02153797820210457, -0.0037283673882484436, 0.0067826323211193085, -0.027729731053113937, -0.02245342545211315, 0.001668610842898488, -0.0011880010133609176, -0.0021065690089017153, -0.025166479870676994, -0.0408455953001976, 0.016652818769216537, -0.02691415138542652, 0.0263648834079504, -0.01900801621377468, -0.005267983302474022, 0.002604863839223981, 0.06098543480038643, 0.0263648834079504, 0.016536308452486992, 0.00034693372435867786, -0.00916279572993517, -0.01522971410304308, -0.00823486503213644, -0.0011827995767816901, 0.009012995287775993, 0.0007438009488396347, -0.006695248652249575, 0.004764487035572529, 0.0031000375747680664, 0.02137153409421444, 0.011517991311848164, 0.003613936249166727, -0.028828268870711327, -0.011984037235379219, -0.01025301031768322, 0.027513353154063225, -0.006803438067436218, -0.0021429790649563074, -0.015737371519207954, -0.0033143353648483753, -0.02606528252363205, 0.001851700246334076, -0.01676100865006447, 0.027430130168795586, -0.007344384212046862, -0.012633172795176506, 0.019707083702087402, 0.0018402572022750974, -0.01052764430642128, 0.022270336747169495, -0.013640165328979492, -0.010311265476047993, -0.009595552459359169, 0.030076606199145317, 0.016652818769216537, -0.009404140524566174, -0.0312916524708271, 0.021404823288321495, 0.023385517299175262, -0.004369180183857679, -0.014996691606938839, -0.032140523195266724, -0.0002551289217080921, -4.557731517706998e-05, -0.0010766908526420593, 0.004323408007621765, 0.003412121906876564, -0.02866182290017605, -0.004993348848074675, -0.00530127203091979, 0.01987352967262268, 0.017160475254058838, -0.0036825949791818857, 0.02832893282175064, -0.013548620045185089, -0.0361851342022419, -0.002802517032250762, -0.0015021658036857843, 0.02395143173635006, -0.0020909649319946766, 0.009570585563778877, -0.018808281049132347, -0.0064330981113016605, -0.01995675079524517, 0.03249005600810051, 0.004208977334201336, 0.02559923566877842, -0.004406630527228117, -0.006166785955429077, -0.001205685781314969, -0.010436099022626877, -0.02308591641485691, 0.005679934751242399, 0.006969883106648922, -0.019074592739343643, 0.01648637466132641, 0.02676435001194477, 0.006050274707376957, 0.01173437014222145, 0.0005183200119063258, 0.026564616709947586, -0.02982693910598755, -0.0020285481587052345, -0.006607864983379841, 0.017276987433433533, -0.02621508203446865, -0.014489034190773964, -0.0028919812757521868, -0.01373170968145132, -0.0003162454522680491, -0.056458134204149246, 0.010577578097581863, 0.009104539640247822, 0.03974705934524536, 0.013348886743187904, -0.01259988360106945, -0.019307617098093033, -0.006037791259586811, -0.029061291366815567, 0.0032061461824923754, 0.03521975502371788, 0.029477404430508614, 0.01490514725446701, -0.0017570346826687455, 0.010003342293202877, -0.053661856800317764, 0.0009752634796313941, -0.014097888953983784, 0.013798288069665432, 0.03144145384430885, 0.007227872498333454, 0.02589883655309677, 0.01275800634175539, -0.0391145683825016, 0.004142398945987225, 0.006957399658858776, -0.01474702451378107, 0.015970394015312195, -0.03725038468837738, -0.002413452137261629, 0.002881578402593732, 0.0110769122838974, -0.017942767590284348, 0.025549301877617836, -0.007956069894134998, 0.007956069894134998, 0.015196425840258598, 0.018675126135349274, -0.008322248235344887, 0.014372522942721844, 0.02120508812367916, -0.02701401896774769, 0.016752686351537704, 0.005209727678447962, -0.03515317663550377, -0.004843548405915499, 0.022603226825594902, -0.01232524961233139, 0.003605614183470607, 0.011326580308377743, -0.004851870704442263, 0.008114192634820938, -0.008338892832398415, -0.005600873380899429, 0.016353217884898186, -0.03954732418060303, -0.01989017426967621, -0.020023329183459282, 0.008954739198088646, -0.010294620878994465, 0.011401480063796043, -0.030625874176621437, 0.0023926463909447193, 0.008613526821136475, 0.004897643346339464, 0.005742351524531841, -0.0011276646982878447, -0.014771990478038788, 0.011476380750536919, -0.03741682693362236, -0.03402135148644447, 0.037683140486478806, -0.02559923566877842, -0.036285001784563065, 0.04454067349433899, 0.007132166996598244, -0.014280978590250015, -0.0031146013643592596, -0.0030563457403331995, -0.004414952825754881, 0.037283673882484436, -0.024717077612876892, -0.001762236119247973, 0.016095228493213654, -0.022669805213809013, -0.0037554146256297827, 0.01621174067258835, -0.019474061205983162, 0.000944575178436935, -0.018641836941242218, -0.013049285858869553, 0.0006049234070815146, -0.02959391474723816, 0.006141819525510073, -0.012974385172128677, -0.0337383933365345, -0.035253044217824936, 0.027663154527544975, 0.009071250446140766, -0.00841379351913929, -0.033455438911914825, 0.0334387943148613, 0.008355537429451942, 0.038948122411966324, -0.052163854241371155, 0.019191104918718338, 0.016902485862374306, 0.01900801621377468, -0.017160475254058838, 0.03661789372563362, -0.00848869327455759, 0.057889558374881744, 0.0023260684683918953, -0.026015348732471466, 0.02613185904920101, 0.004914287477731705, -0.034320950508117676, 0.0030272179283201694, 0.014297622255980968, 0.0002237904554931447, 0.007057266775518656, -0.010194754227995872, -0.018209079280495644, 0.04314253479242325, -0.01593710482120514, -0.023219073191285133, -0.017643166705965996, 0.012733040377497673, 0.022669805213809013, 0.009320918470621109, -0.013939766213297844, -0.023701762780547142, 0.002783792093396187, -0.011368190869688988, -0.015620860271155834, 0.004581397864967585, -0.0021679457277059555, -0.01432258915156126, -0.01041113305836916, 0.01393144391477108, 0.006012824364006519, 0.029610559344291687, -0.0361851342022419, 0.01393144391477108, -0.04064586013555527, -0.00183505576569587, -0.03257327899336815, -0.012991029769182205, -0.02010655216872692, -0.0031707766465842724, 0.002373921452090144, 0.0029731232207268476, 0.010719056241214275, 0.04157795384526253, 0.01416446641087532, 0.004764487035572529, 0.06304935365915298, 0.018891504034399986, 0.0032103073317557573, -0.02754664234817028, -0.008051775395870209, -0.04294280335307121, 0.0074276067316532135, 0.02401800826191902, -0.01236686110496521, 0.01150134764611721, -0.010469388216733932, -0.03605198115110397, -0.002673522336408496, 0.0428762249648571, 0.001795525080524385, 0.011268324218690395, -0.009387495927512646, 0.02088884264230728, 0.019474061205983162, -0.0320073664188385, -0.02065582014620304, -0.023368872702121735, 0.0066453153267502785, 0.01934090442955494, -0.0042214603163301945, 0.0011131006758660078, -0.00037866231286898255, 0.019374193623661995, -0.01721040904521942, 0.002648555440828204, 0.023435451090335846, 0.019124526530504227, 0.0331391915678978, -0.011576247401535511, -0.03387155011296272, -0.0041486406698822975, -0.0008285838412120938, 0.029926804825663567, -0.03237354755401611, 0.009212728589773178, 0.031041987240314484, 0.02488352358341217, -0.02982693910598755, 0.004163204692304134, 0.004000920802354813, 0.025632524862885475, 0.026398172602057457, 0.0019172379979863763, -0.004856031853705645, -0.025848902761936188, 0.0019942186772823334, -0.008014325052499771, -0.0003568163956515491, 0.0010985367698594928, -0.0022366042248904705, -0.011800948530435562, 0.015446092933416367, -0.02583225816488266, 0.009112861938774586, -0.014397489838302135, 0.021820934489369392, -0.0019234796054661274, -0.030176471918821335, -0.019141171127557755, 0.029460759833455086, -0.004427436273545027, 0.015762338414788246, 0.036584604531526566, -0.037050649523735046, 0.0651465579867363, 0.03402135148644447, -0.009454074315726757, -0.023285651579499245, 0.006200075149536133, 0.011176779866218567, -0.046837612986564636, -0.001363808405585587, 0.02152133360505104, -0.00951232947409153, -0.001845458522439003, -0.0013606876600533724, -0.014330911450088024, 0.013174119405448437, 0.02175435796380043, 0.0067118932493031025, 0.03928101062774658, 0.016794297844171524, 0.03124172054231167, -0.008226542733609676, -0.014014665968716145, -0.008738360367715359, 0.015079913660883904, 0.006158463656902313, 0.0022282819263637066, 0.013507009483873844, 0.0005060967523604631, 0.011476380750536919, 0.004485691897571087, -0.02503332309424877, 0.007802107837051153, -0.012932773679494858, 0.04367515817284584, -0.011151812970638275, -0.018175790086388588, 0.0033205770887434483, -0.023818274959921837, -0.008713394403457642, -0.02308591641485691, 0.004552269820123911, 0.012491694651544094, 0.007090555503964424, -0.021970735862851143, 0.03258992359042168, -0.0022532488219439983, -0.0015021658036857843, -0.0022324430756270885, 0.04154466465115547, -0.03685091435909271, 0.03255663439631462, 0.0599534772336483, 0.003990517929196358, -0.0021658651530742645, 0.012316927313804626, -0.035818956792354584, 0.03154132142663002, -0.015504349023103714, 0.006408131215721369, -0.012807940132915974, -0.018575258553028107, -0.0006756625371053815, 0.003705481067299843, -0.00993676483631134, 0.003570244647562504, 0.016686107963323593, 0.027996042743325233, -0.01236686110496521, -0.03152467682957649, 0.007839557714760303, 0.004344213753938675, -0.0003383514122106135, 0.010044953785836697, 0.0030501040164381266, 0.03492015600204468, -0.011135168373584747, 0.028195777907967567, 0.012042293325066566, -0.0037491729017347097, -0.012433439493179321, -0.0036430642940104008, 0.020838910713791847, 0.0015583409694954753, -0.01815914548933506, -0.016353217884898186, 0.01942412741482258, 0.013748354278504848, 0.004319246858358383, -0.018458746373653412, -0.011251679621636868, -0.011101879179477692, -0.037916164845228195, 0.0012733039911836386, -0.001184880151413381, -0.003466216381639242, -0.030426140874624252, -0.032140523195266724, -0.0011505507864058018, -0.025865547358989716, -0.021504689007997513, -0.010968723334372044, 0.0131824417039752, 0.03961390256881714, 0.006133497226983309, 0.0057257069274783134, 0.021071933209896088, 0.01847539097070694, 0.01295774057507515, -0.04350871592760086, 0.01400634367018938, 0.01413117814809084, -0.02480030059814453, 0.0005752753932029009, -0.02067246474325657, -0.008813261054456234, -0.019856885075569153, 0.010244688019156456, 0.0050765713676810265, -0.0033122547902166843, -0.026647839695215225, 0.019474061205983162, 0.015828916803002357, -0.041378218680620193, 0.015412803739309311, -0.0334387943148613, -0.02817913331091404, -0.018741702660918236, -0.011218390427529812, -0.017792966216802597, 0.007444251328706741, 0.04307595640420914, -0.029876871034502983, 0.032839592546224594, -0.02629830501973629, 0.02942747063934803, -0.006299941800534725, -0.01784290000796318, 0.0042901188135147095, -0.010885501280426979, 0.0011443091789260507, 0.013507009483873844, -0.004389985930174589, -0.02644810453057289, -0.021321600303053856, 0.01847539097070694, -0.03638486936688423, 0.007119683548808098, -0.015246358700096607, -0.0038719261065125465, -0.03811589628458023, 0.0015250520082190633, 0.02646474912762642], "id": 81}, {"title": "BATRAL-class landing ship", "text": "The B\u00e2timent de Transport L\u00e9ger \"\\Light ferry ship\") are small landing ships of the French Navy. They have been used for regional transport and patrol needs in French Overseas Departments and Territories since the 1970s. On 9 January 2014 it was announced that the two remaining Batrals in French service would be replaced in 2015/16 by three 1500-tonne B\u00e2timents Multimission (B2M) at a cost of ~\u20ac100m (US$136m).", "vector": [-0.047751978039741516, 0.010834340937435627, -0.013125896453857422, -0.0066219219006598, -0.026049597188830376, 0.006436575669795275, -0.013985229656100273, 0.0018176586600020528, -0.026369741186499596, 0.005151787772774696, 0.03194698318839073, 0.0035573875065892935, -0.007881435565650463, -0.007308546453714371, 0.012687805108726025, -0.024549975991249084, -0.032283976674079895, -0.0019324470777064562, 0.020169060677289963, -0.0037616898771375418, 0.015282654203474522, -0.01786065474152565, 0.007986745797097683, 0.006411300972104073, -0.02047235518693924, -0.0005544595769606531, 0.009216771461069584, -0.009924458339810371, 0.003178269835188985, -0.051795899868011475, 0.042629677802324295, 0.019343426451086998, -0.006874667014926672, -0.01559437345713377, 0.0015912411035969853, -0.050346825271844864, 0.017658459022641182, -0.012005393393337727, -0.05735629051923752, -0.01658007875084877, 0.008311102166771889, -0.03214917704463005, -0.012114915996789932, 0.04225898161530495, 0.0031508891843259335, -0.007607628125697374, -0.026740433648228645, 0.049403246492147446, 0.013858857564628124, -0.007738213054835796, -0.04020332172513008, 0.03341290354728699, -0.011264007538557053, 0.06530933827161789, 0.01652953028678894, 0.02165183238685131, 0.0517285019159317, 0.11821731179952621, -0.040978409349918365, -0.005236036144196987, -0.01973096840083599, -0.06116431951522827, 0.03545171394944191, -0.03418798744678497, -0.0099160335958004, 0.027212224900722504, 0.02158443257212639, 0.04947064444422722, -0.026049597188830376, 0.009562190622091293, -0.0010588967707008123, -0.029975570738315582, -0.0016628522425889969, -0.004473588429391384, 0.00903984997421503, 0.03535061702132225, 0.04967283830046654, -0.013496588915586472, -0.018315596505999565, 0.024870119988918304, 0.026150694116950035, 0.043101467192173004, 0.008736556395888329, 0.0069715529680252075, -0.0013985229888930917, 0.04306776821613312, -0.038686852902173996, -0.05068381875753403, -0.038417257368564606, -0.017523661255836487, -0.003631104715168476, 0.026689883321523666, 0.0364626944065094, 0.018163949251174927, -0.005526693072170019, 0.032115478068590164, 0.04124800115823746, -0.0008977717370726168, 0.007464405614882708, -0.005914235487580299, -0.03454183414578438, 0.013555563054978848, -0.034086890518665314, -0.00012874204549007118, 0.06756719201803207, 0.012173890136182308, -0.028374850749969482, 0.03636159747838974, -0.01961302012205124, 0.06611812114715576, -0.044921230524778366, -0.0517285019159317, -0.06062512844800949, -0.011213458143174648, -0.02591479942202568, -0.013210144825279713, -0.01279732771217823, -0.029891321435570717, 0.032873716205358505, 0.064803846180439, 0.015088883228600025, -0.015333203598856926, -0.01636945828795433, -0.01007610559463501, -0.013446040451526642, -0.05927715450525284, -0.013917830772697926, 0.04047291725873947, 0.02606644667685032, 0.035586513578891754, -0.055098436772823334, -0.05428965017199516, 0.0027612403500825167, -0.013597686775028706, -0.03235137462615967, 0.02655508741736412, -0.005412958096712828, -0.03157629072666168, -0.05853576958179474, 0.006377601530402899, -0.005252886097878218, -0.0546940416097641, 0.013151170685887337, 0.018905334174633026, 0.0028475949075073004, -0.027970459312200546, -0.003548962762579322, 0.015400602482259274, -0.003631104715168476, 0.005324496887624264, 0.06719650328159332, -0.00866073276847601, 0.07508214563131332, 5.1305942179169506e-05, 0.006276503670960665, 0.011078661307692528, -0.0721840038895607, 0.05698559805750847, 0.010994412936270237, -0.006786206271499395, 0.005821562372148037, -0.007809823844581842, -0.04205678775906563, -0.037675872445106506, -0.0033804660197347403, -0.009056700393557549, 0.043910250067710876, 0.03508102148771286, 0.022511165589094162, 0.010775366798043251, 0.015872392803430557, 0.004311410244554281, -0.026774132624268532, -0.03963043540716171, 0.04542672261595726, 0.011668399907648563, 0.024819569662213326, 0.07663232088088989, -0.04047291725873947, -0.008669157512485981, -0.010615294799208641, -0.023656941950321198, -0.013285968452692032, 0.022005675360560417, -0.057929180562496185, 0.0011900082463398576, 0.07737370580434799, 0.030312564224004745, -0.017877504229545593, -0.008871353231370449, -0.004802157171070576, -0.009216771461069584, -0.015821844339370728, -0.004650509916245937, -0.0029044626280665398, 0.050144631415605545, 0.0061290692538022995, -0.003018197836354375, 0.021095791831612587, -0.0046252356842160225, 0.01578814536333084, -0.04677469655871391, -0.047111690044403076, 0.012561432085931301, 0.047381285578012466, -0.04239378124475479, -0.014566543512046337, 0.03808026388287544, 0.012274987995624542, -0.030211465433239937, -0.026942629367113113, -0.02197197452187538, 0.014457020908594131, 0.03925974294543266, -0.013269118964672089, -0.008677582256495953, -0.0033657224848866463, -0.04697689041495323, 0.06237749382853508, -0.028341151773929596, 0.014482295140624046, 0.016596930101513863, -0.04111320525407791, 0.0046757846139371395, -0.04027072340250015, 0.026302341371774673, 0.005092814099043608, 0.02729647234082222, 0.0023231487721204758, -0.009267320856451988, -0.014347497373819351, 0.04178719222545624, -0.022999806329607964, -0.06541043519973755, -0.06692690402269363, -0.020725099369883537, 0.020219609141349792, -0.02352214604616165, -0.0009172541322186589, 0.022157322615385056, 0.009309445507824421, 0.027953609824180603, -0.020034262910485268, -0.0028497010935097933, 0.04229268431663513, -0.005193911958485842, -0.0001318355352850631, 0.010564745403826237, -0.02288185805082321, 0.0019514028681442142, 0.03471032902598381, -0.020910445600748062, 0.0021672893781214952, 0.022426916286349297, -0.0174899622797966, -0.002074616262689233, 0.011761073023080826, 0.05449184775352478, 0.04616810753941536, -0.0005828934372402728, -0.0026390801649540663, -0.03267151862382889, -0.026689883321523666, -0.01554382499307394, 0.023977085947990417, -0.0018650483107194304, -0.024297229945659637, -0.04296667128801346, -0.012443484738469124, -0.057389989495277405, -0.10507456958293915, -0.060490332543849945, -0.00410500168800354, 0.01897273398935795, -0.03538431599736214, 0.014313798397779465, 0.013606112450361252, 0.012418209575116634, -0.0022241570986807346, 0.03626050055027008, 0.015577523969113827, 0.01421270053833723, -0.011727373115718365, -0.006352327298372984, -0.029453231021761894, 0.07076863199472427, 0.028138956055045128, -0.033935245126485825, 0.03481142595410347, 0.00036147815990261734, -0.04077621176838875, 0.0428655706346035, 0.012965824455022812, -0.05594091862440109, 0.03653009235858917, -0.021786628291010857, 0.030936002731323242, -0.01319329533725977, -0.04552781954407692, -0.007430706173181534, -0.04549412056803703, 0.014010503888130188, -0.0187199879437685, -0.03182903304696083, 0.04920104891061783, 0.007498105056583881, 0.022915557026863098, 0.029133087024092674, -0.007388581987470388, 0.030481060966849327, 0.014305373653769493, -0.026959478855133057, -0.025527257472276688, -0.05799657851457596, 0.000583419983740896, 0.01437277253717184, 0.018046000972390175, -0.0333792045712471, -0.024617373943328857, 0.043371062725782394, -0.041450198739767075, -0.006183830555528402, -0.06814008206129074, 0.0032477746717631817, 0.026976328343153, -0.05071752145886421, 0.017607910558581352, -0.012965824455022812, -0.00906512513756752, -0.0005439285305328667, 0.01711084507405758, -0.03774327039718628, 0.021517034620046616, 0.006613497156649828, -0.0588727630674839, 0.013387066312134266, 0.0024389903992414474, -0.003885956248268485, -0.012308686971664429, 0.003744840156286955, 0.012148614972829819, -0.03760847449302673, -0.0017007640562951565, 0.010632144287228584, -0.004722121171653271, 0.03454183414578438, 0.01389255654066801, 0.01044679805636406, 0.007236935198307037, -0.04448314011096954, 0.0008519616676494479, 0.047583479434251785, 0.013757758773863316, -0.015653347596526146, 0.07824988663196564, -0.042461179196834564, 0.021601282060146332, -0.025678902864456177, 0.007034739013761282, -0.01759105920791626, -0.023640092462301254, -0.03545171394944191, -0.03551911190152168, 0.024920668452978134, 0.032115478068590164, 0.008728131651878357, 0.010632144287228584, 0.014836138114333153, -0.04596590995788574, -0.00914094876497984, 0.01828189752995968, 0.004317729268223047, -0.011558876372873783, 0.046033311635255814, 0.022528015077114105, 0.0016228342428803444, 0.028408551588654518, -0.0052865855395793915, -0.02276390977203846, -0.003319385927170515, 0.0293184332549572, 0.01554382499307394, -0.03642899543046951, -0.038046564906835556, 0.042629677802324295, 0.0316605381667614, 0.0014596030814573169, 0.007965683937072754, 0.007060013711452484, 0.010868039913475513, 0.07959786057472229, -0.021769778802990913, 0.04498863220214844, 0.010960713028907776, -0.02953747846186161, -0.0324019230902195, 0.001092069549486041, -0.04128170385956764, -0.011895869858562946, -0.0013616642681881785, -0.002626443048939109, -0.011339831165969372, 0.00860597100108862, 0.026622485369443893, -0.0008972451323643327, -0.015105732716619968, 0.013210144825279713, -0.007156899198889732, -0.01930972747504711, -0.042730774730443954, -0.04229268431663513, -0.01978151686489582, 0.019208628684282303, -0.017304616048932076, -0.027582917362451553, -0.038518354296684265, 0.00534555921331048, 0.009309445507824421, -0.048864055424928665, -0.0034583956003189087, -0.009536915458738804, 0.027010027319192886, -0.057558488100767136, 0.07285799086093903, 0.050784919410943985, -0.017978603020310402, 0.031171897426247597, -0.017093993723392487, -0.018433542922139168, -0.007266422268003225, 0.05530063062906265, -0.021500185132026672, -0.04495492950081825, -0.022477464750409126, 0.032385073602199554, -0.00670617027208209, 0.04714538902044296, -0.006432363297790289, 0.002014589263126254, 0.01117133442312479, -0.02330309897661209, 0.03113819845020771, -0.03433963656425476, 0.006878879386931658, -0.026740433648228645, -0.014600242488086224, 0.03417113795876503, 0.010244602337479591, 0.022999806329607964, 0.009326294995844364, 0.0027633465360850096, 0.03727148100733757, -0.031475190073251724, -0.022207871079444885, -0.010943863540887833, -0.005985846742987633, 0.008277402259409428, -0.003563706064596772, -0.04677469655871391, 0.034845124930143356, -0.015569099225103855, -0.009772811084985733, 0.006554523482918739, -0.00845432374626398, 0.00667668366804719, -0.02409503422677517, -0.056749701499938965, -0.043371062725782394, 0.0022747060284018517, 0.002367379143834114, -0.0357213094830513, -0.03428908810019493, -0.05688450112938881, 0.03437333554029465, -0.01609986461699009, -0.012940550222992897, -0.03471032902598381, 0.03278946503996849, -0.015813419595360756, -0.02222472056746483, 0.03619309887290001, -0.024549975991249084, 0.02761661633849144, -0.013606112450361252, 0.0036858662497252226, 0.01668117754161358, -0.03102025017142296, 0.016226235777139664, -0.012401360087096691, -0.004401977639645338, 0.03642899543046951, -0.025443008169531822, 0.0007845629588700831, -0.009545340202748775, -0.005236036144196987, -0.04030442237854004, -0.033177006989717484, 0.004511500243097544, -0.03086860291659832, 0.009932883083820343, -0.03471032902598381, -0.017776407301425934, 0.05577242374420166, 0.0246342234313488, -0.01961302012205124, 0.020590301603078842, -0.030986551195383072, 0.03791176900267601, 0.013538713566958904, -0.00706422608345747, -0.0021988824009895325, -0.03555281460285187, -0.01929287798702717, -0.021685531362891197, 0.0085006607696414, 0.0068915169686079025, 0.03551911190152168, -0.029823923483490944, -0.06231009587645531, 0.0020998907275497913, -0.006108006928116083, -0.002236794214695692, -0.03939453884959221, -0.013900981284677982, -0.007384369615465403, 0.018248196691274643, 0.011238732375204563, 0.020135361701250076, 0.056817103177309036, -0.04930214583873749, 0.025173412635922432, 0.03460923209786415, -0.019983714446425438, 0.03882164880633354, -0.00927574560046196, 0.04377545416355133, -0.03528321906924248, -0.006815693341195583, -0.04792047291994095, 0.022426916286349297, 0.019899465143680573, -0.006710382644087076, 0.05405375361442566, -0.008504873141646385, -0.0045957486145198345, -0.00557302962988615, 0.06335477530956268, 0.011415654793381691, -0.03359825164079666, -0.041820891201496124, -0.018534641712903976, -0.02532505989074707, -0.0023736979346722364, 0.023100903257727623, -0.007447556126862764, 0.0008166826446540654, 0.026083296164870262, -0.019174929708242416, 0.021634981036186218, 0.020708249881863594, -0.01319329533725977, 0.010868039913475513, 0.006529248785227537, 0.01743941381573677, 0.0018208179390057921, -0.004734758287668228, 0.00090303726028651, 0.021180041134357452, -9.319976379629225e-05, 0.02101154439151287, 0.002466371050104499, 0.019596170634031296, 0.0017039233352988958, -0.044011350721120834, -0.020236458629369736, 0.010960713028907776, 0.008761830627918243, 0.0174899622797966, -0.018046000972390175, 0.005787862930446863, -0.0024979643058031797, -0.04030442237854004, 0.012595131993293762, 0.02121374011039734, 0.028172655031085014, -0.0010910164564847946, -0.025813700631260872, -0.021028393879532814, 0.0485270619392395, -0.04111320525407791, -0.029031988233327866, 0.0010836446890607476, 0.029503779485821724, -0.040607716888189316, 0.03501362353563309, 0.028138956055045128, -0.022089922800660133, 0.025341909378767014, 0.03693448752164841, -0.002132536843419075, -0.013757758773863316, 0.04714538902044296, 0.019865766167640686, 0.0406414158642292, 0.025830550119280815, 0.016765426844358444, -0.006794631015509367, 0.0046757846139371395, -0.012831026688218117, 0.00807520654052496, -0.03167738765478134, 0.013446040451526642, 0.0054087452590465546, 0.04984133690595627, 0.0032456684857606888, 0.04222528263926506, 0.008012020029127598, -0.007468617986887693, 0.006916791200637817, -0.04808897152543068, 0.022359518334269524, -0.01242663525044918, 0.04397765174508095, -0.01335336733609438, -0.03390154615044594, -0.03245247155427933, 0.010295150801539421, 0.026201244443655014, 0.013395491056144238, 0.02271336130797863, 0.04057401418685913, 0.0470442920923233, 0.009461091831326485, -0.01802915148437023, 0.0023062992841005325, -0.04151759669184685, -0.011727373115718365, -0.01818079873919487, 0.034575533121824265, -0.004418827127665281, -0.003597405506297946, -0.044550538063049316, 0.025560956448316574, -0.04330366477370262, -0.027060577645897865, -0.0205734521150589, -0.00154911691788584, -0.002145174192264676, 0.013707210309803486, 0.03824876248836517, -0.03491252660751343, 0.03310960903763771, 0.020708249881863594, 0.007384369615465403, 0.04124800115823746, 0.005299222655594349, -0.012544582597911358, 0.00593108544126153, 0.013681935146450996, -0.010775366798043251, -0.04525822401046753, -0.04084360972046852, -0.04178719222545624, -0.011954843997955322, 0.005248673725873232, -0.022511165589094162, -0.017557360231876373, -0.0037174595054239035, -0.011120785027742386, -0.010312000289559364, 0.03545171394944191, -0.011137634515762329, -0.014794014394283295, -0.03481142595410347, -0.007847735658288002, 0.029655426740646362, -0.020910445600748062, -0.019916314631700516, 0.00508017698302865, -0.012005393393337727, 0.006899941712617874, -0.03149203956127167, 0.0036879724357277155, 0.00028670774190686643, -0.003083490300923586, -0.02643713913857937, -0.02399393543601036, -0.010092955082654953, -0.010859615169465542, -0.023235701024532318, -0.0023715917486697435, -0.003142464207485318, -0.008222641423344612, 0.024769021198153496, 0.0333792045712471, 0.016824400052428246, 0.00603639567270875, 0.011718948371708393, 0.0009930776432156563, -0.013285968452692032, 0.021146342158317566, 0.002685416955500841, -0.030295714735984802, 0.0016007190570235252, 0.004035497084259987, 0.002546407049521804, -0.002091465750709176, -0.059614147990942, 0.014296948909759521, 0.02224157005548477, -0.0008930327603593469, -0.0043851276859641075, 0.04158499464392662, 0.01866943947970867, -0.0182313472032547, 0.023640092462301254, -0.004054452758282423, 0.03700188547372818, -0.03096970170736313, 0.011685249395668507, -0.007835098542273045, 0.04165239632129669, 0.01433907262980938, 0.004612598568201065, -0.01626836135983467, 0.02069140039384365, -0.006929428782314062, -0.010472072288393974, -0.005349771585315466, 0.0006945225177332759, -0.02766716480255127, 0.0025864250492304564, -0.0039407177828252316, 0.028273753821849823, 0.021078942343592644, 0.047313883900642395, -0.022679662331938744, 0.0031319332774728537, -0.0033909969497472048, 0.004248224198818207, -0.0014006291748955846, 0.02793676033616066, -0.0475497804582119, -0.004031284712255001, -0.03747367486357689, 0.006124856416136026, 0.007889860309660435, -0.0026980540715157986, 0.007902497425675392, 0.02335364930331707, -0.012687805108726025, -0.04158499464392662, 0.019714118912816048, -0.03273891657590866, -0.024600524455308914, 0.016445282846689224, 0.022157322615385056, -0.027380721643567085, 0.005926873069256544, 0.04168609529733658, -0.0035363254137337208, 0.033025361597537994, 0.045831114053726196, 0.012519308365881443, 0.02190457656979561, -0.03221657872200012, 0.01545957662165165, -0.051357805728912354, 0.0014827713603153825, 0.012788902968168259, 0.0045746867544949055, 0.009907608851790428, 0.04404504969716072, -0.05698559805750847, 0.02805470861494541, 0.027212224900722504, 0.013614537194371223, 0.015602798201143742, -0.0023905476555228233, 0.019663570448756218, 0.02761661633849144, 0.022578563541173935, -0.006255441810935736, -0.021988825872540474, 0.01652110554277897, 0.01865258999168873, 0.007455980870872736, -0.028644446283578873, -0.0011447247816249728, -0.02015221118927002, 0.060692526400089264, 0.003928080201148987, 0.006836755201220512, 0.004869556054472923, 0.02089359611272812, 0.014010503888130188, 0.034036342054605484, 0.01578814536333084, -0.054087456315755844, 0.0059395101852715015, 0.036867085844278336, -0.014204275794327259, -0.03081805445253849, 0.018062850460410118, 0.018315596505999565, 0.0008351120050065219, 0.0006466062623076141, -0.02293240651488304, -0.00989075843244791, 0.0026348677929490805, 0.008778680115938187, -0.005800500512123108, 0.0015312141040340066, 0.0027043726295232773, -0.006908366456627846, -0.0014975147787481546, -0.009326294995844364, -0.06116431951522827, 0.022477464750409126, 0.00716953631490469, 0.004237693268805742, 0.020506054162979126, 0.024330928921699524, 0.00844589900225401, -0.04377545416355133, -0.007418069057166576, 0.04121430218219757, 0.021196890622377396, -0.011710523627698421, 0.0021335899364203215, -0.005311859771609306, -0.00044677965342998505, 0.03290741518139839, -0.02687523141503334, -0.039967428892850876, 0.026268642395734787, 0.0013879919424653053, 0.01807969994843006, -0.012805752456188202, 0.05570502206683159, -0.0341205894947052, -0.012114915996789932, 0.027127975597977638, -0.022426916286349297, 0.00393018638715148, -0.015569099225103855, 0.026521386578679085, 0.0021588646341115236, -0.014414896257221699, 0.02357269451022148, 0.03449128195643425, 0.024769021198153496, 0.027852511033415794, 0.03108764998614788, -0.006874667014926672, -0.018534641712903976, 0.007776124868541956, 0.02714482508599758, -0.01154202688485384, 0.0025843188632279634, -0.020489204674959183, -8.082578278845176e-05, -0.0003733256016857922, 0.016032464802265167, -0.001048365724273026, 5.525508458958939e-05, -0.007211660500615835, 0.01060687005519867, 0.039158642292022705, 0.02842540107667446, 0.055536527186632156, -0.016487406566739082, -0.022966105490922928, 0.018467243760824203, 0.040978409349918365, 0.013446040451526642, 0.003580555785447359, -0.0043050916865468025, 0.0331433080136776, -0.013934680260717869, -0.022831309586763382, 0.01389255654066801, -0.03444073349237442, 0.010834340937435627, 0.0035763434134423733, 0.02234266884624958, -0.007308546453714371, 0.036327898502349854, 0.025662053376436234, -0.033345505595207214, -0.0023105116561055183, 0.041349101811647415, -0.0024179283063858747, -0.0029149935580790043, -0.014482295140624046, -0.009781235828995705, 0.04380915313959122, -0.014457020908594131, -0.03774327039718628, -0.036395296454429626, -0.004172400571405888, -0.027262773364782333, -0.014937235973775387, -0.0026011685840785503, 0.02202252484858036, 0.008702856488525867, -0.03700188547372818, 0.01578814536333084, 0.01005083043128252, 0.017287766560912132, 0.01695919781923294, -0.02000056393444538, -0.032604120671749115, -0.023067204281687737, -0.008563847281038761, -0.01178634725511074, 0.013513438403606415, -0.0016565335681661963, -0.007569716311991215, -0.021887727081775665, -0.005501418840140104, -0.005897385999560356, 0.032553572207689285, -0.03160998970270157, -0.04367435723543167, -0.021786628291010857, -0.01770900748670101, 0.032115478068590164, 0.03230082616209984, 0.0005971103091724217, 0.00771715072914958, -0.03784436732530594, 0.005282372701913118, -0.006364964414387941, -0.011339831165969372, 0.029722824692726135, 0.02616754360496998, -0.031542591750621796, -0.027094276621937752, -0.04899885132908821, -0.03535061702132225, -0.0065713729709386826, 0.02805470861494541, -0.04077621176838875, -0.0028433825355023146, -0.03460923209786415, -0.010682693682610989, 0.0110870860517025, -0.028122106567025185, 0.04640400409698486, 0.053716760128736496, -0.024920668452978134, -0.03368249908089638, 0.013917830772697926, 0.03491252660751343, -0.021230589598417282, -0.03619309887290001, -0.00922519713640213, 0.008403775282204151, 0.03059900924563408, 0.009157798252999783, 0.04394394904375076, 0.024162432178854942, -0.003464714391157031, -0.0396641343832016, -0.052436187863349915, -0.03760847449302673, 0.017085568979382515, -0.033564552664756775, 0.0006092210533097386, -0.04768458008766174, -0.022275269031524658, 0.0005644640768878162, 0.024971216917037964, -0.010194052942097187, 0.03027886524796486, 0.006925215944647789, -0.009081974625587463, -0.0035721310414373875, 0.001643896335735917, 0.000724009471014142, -0.03332865610718727, -0.020455503836274147, -0.004612598568201065, 0.004692634101957083, 0.04569631814956665, 0.028088407590985298, 0.005425595212727785, 0.03447443246841431, 0.016504256054759026, -0.01117133442312479, -0.013311242684721947, -0.0007724522729404271, -0.029790224507451057, -0.003578449599444866, -0.01053104642778635, -0.037136681377887726, 0.023387348279356956, -0.0070726508274674416, -0.008803955279290676, 0.01178634725511074, -0.0031003400217741728, -0.04417984560132027, -0.0026180180720984936, 0.024667922407388687, 0.004351428244262934, -0.019697269424796104, -0.008770255371928215, 0.0019092786824330688, 0.018163949251174927, 0.029402682557702065, 0.01535847783088684, -0.005391895771026611, -0.02815580554306507, -0.01754051074385643, 0.004210312385112047, 0.015307929366827011, -0.02436462976038456, -0.01610828936100006, 0.048021573573350906, -0.007565503939986229, -0.026571936905384064, -0.02357269451022148, 0.00011854009062517434, -0.013319667428731918, -0.0012868938501924276, -0.0205734521150589, 0.025089165195822716, 0.026571936905384064, 0.009975006803870201, -0.008761830627918243, 0.009023000486195087, 0.016917072236537933, 0.045561518520116806, -0.004789520055055618, 0.013100622221827507, 0.028004158288240433, 0.03679968789219856, -0.043842852115631104, -0.011693674139678478, 0.005353983957320452, 0.04047291725873947, -0.012595131993293762, 0.013690360821783543, 0.004814794287085533, 0.022831309586763382, -0.003959673456847668, 0.03508102148771286, 0.006495549343526363, 0.041450198739767075, -0.02222472056746483, 0.020017413422465324, 0.011685249395668507, -0.03305906057357788, 0.026251792907714844, -0.0006445000180974603, -0.0379454679787159, 0.0003462081658653915, 0.03241877257823944, 0.02458367496728897, 0.020388105884194374, -0.04471903666853905, 0.007257997058331966, 0.021921426057815552, -0.028021007776260376, 0.00020864636462647468, -0.025527257472276688, 0.023808589205145836, 0.003976522944867611, 0.018703138455748558, -0.0010467859683558345, -0.03268836811184883, -0.025207113474607468, -0.013698785565793514, -0.018147099763154984, 0.03064955770969391, 0.018736837431788445, 0.01021090243011713, -0.008492236025631428, 0.03588980808854103, 0.013799883425235748, -0.005530905444175005, 0.01444859616458416, -0.06055773049592972, 0.013673510402441025, 0.0016933922888711095, 0.0031403580214828253, -0.0001532267197035253, 0.009317870251834393, -0.03268836811184883, -0.001716560567729175, 0.062242697924375534, -0.04131540283560753, -0.027178524062037468, -0.04020332172513008, -0.033665649592876434, 0.0059689972549676895, 0.06618551909923553, -0.021618131548166275, -0.02377489022910595, -0.011693674139678478, -0.015291079878807068, -0.01924232766032219, -0.02025330811738968, -0.009023000486195087, 0.02985762245953083, 0.029925022274255753, 0.0037216718774288893, 0.027919910848140717, -0.010135078802704811, 0.013100622221827507, -0.021146342158317566, 0.009014575742185116, -0.0015501700108870864, 0.0070726508274674416, -0.012030667625367641, 0.01170209888368845, -0.01522368099540472, 0.013125896453857422, 0.02357269451022148, -0.009444242343306541, -0.009014575742185116, 0.0210620928555727, -0.015316354110836983, -0.01012665405869484, 0.0005565658211708069, -0.008306889794766903, -0.01117133442312479, -0.0008335323072969913, 0.04242748022079468, -0.0005555127281695604, 0.00619646767154336, 0.028964590281248093, 0.00577101344242692, 0.02778511308133602, -0.006398663856089115, -0.010842765681445599, 0.004616810940206051, 0.002868657000362873, 0.002999241929501295, -0.0013690360356122255, 0.032334525138139725, -0.012611981481313705, 0.020927295088768005, -0.004187143873423338, -0.008837654255330563, 0.01023617759346962, -0.025763152167201042, 0.02778511308133602, 0.03391839563846588, 0.0003032941312994808, -0.01357241254299879, 0.018416693434119225, -0.0022304756566882133, -0.003725884249433875, -0.016588503494858742, 0.013538713566958904, 0.000825634051579982, -0.03551911190152168, -0.0005128619377501309, 0.03198068216443062, 0.0014827713603153825, -0.0032140754628926516, 0.013985229656100273, -0.014920386485755444, 0.011752648279070854, -0.013547138310968876, -0.0027022664435207844, -0.00018179218750447035, 0.024381479248404503, -0.003856469178572297, -0.009671713225543499, -0.01781010627746582, -0.01234238687902689, -0.017102420330047607, 0.010345700196921825, 0.011533602140843868, 0.014010503888130188, 0.017405712977051735, -0.007316971197724342, 0.03336235508322716, -0.009292595088481903, -0.0027085852343589067, 0.022140471264719963, 0.016377883031964302, -0.015914516523480415, 0.04269707575440407, 0.01764160953462124, -0.03471032902598381, -0.011390379630029202, 0.008896628394722939, -0.011070235632359982, 0.003776433179154992, -0.006963127758353949, 0.023050354793667793, 0.00329200504347682, -0.02606644667685032, -0.003949142526835203, 0.003321492113173008, 0.028138956055045128, 0.0032646243926137686, -0.01506360899657011, 0.020067961886525154, -0.028812943026423454, 0.0006460797158069909, 0.02197197452187538, -0.020067961886525154, -0.03378359600901604, 0.015771295875310898, 0.006714595016092062, 0.011112360283732414, -0.027111126109957695, -0.012679380364716053, 0.04808897152543068, 0.039900027215480804, 0.038518354296684265, 0.00459996098652482, -0.01898958347737789, 0.03615939989686012, -0.029840772971510887, -0.0349799245595932, -0.0066514089703559875, 0.0017397288465872407, 0.029739676043391228, 0.03828246146440506, -0.0008282667840830982, 0.01845039427280426, -0.047111690044403076, -0.005581454839557409, -0.017978603020310402, -0.012283412739634514, 0.0016860205214470625, 0.03386784717440605, 0.001757631660439074, -0.01988261565566063, 0.030093519017100334, -0.035215821117162704, 0.016066163778305054, -0.0031993319280445576, 0.009562190622091293, 0.016024040058255196, -0.011803196743130684, -0.010960713028907776, -0.009503216482698917, 0.02527451142668724, 0.034356486052274704, 0.001222654478624463, 0.04546042159199715, -0.004307197872549295, -0.009949732571840286, 0.020876746624708176, 0.007995170541107655, -0.026622485369443893, 0.011432504281401634, 0.041719794273376465, -0.017557360231876373, -0.0036353173200041056, -0.013749334029853344, -0.03219972923398018, 0.013361792080104351, 0.013521864078938961, 0.02714482508599758, -0.019006432965397835, 0.0031888007652014494, -0.028408551588654518, 0.01529950462281704, 0.020303858444094658, -0.0037364151794463396, 0.0052065495401620865, -0.00014230076340027153, 0.0507512204349041, -0.009006150998175144, -0.0022978743072599173, 0.029722824692726135, 0.00935999397188425, 0.02554410696029663, 0.0006497655413113534, -0.025527257472276688, 0.007308546453714371, -0.04579741507768631, 0.03599090501666069, -0.006883091758936644, 0.0008514351211488247, -0.0282063540071249, 0.0069715529680252075, -0.01834929548203945, -0.013909406028687954, -0.004869556054472923, 0.0044651636853814125, 0.015240530483424664, 0.024027636274695396, -0.019056981429457664, 0.029807073995471, 0.004081833641976118, -0.020657701417803764, 0.02170238085091114, -0.02739757113158703, 0.013858857564628124, 0.02825690433382988, 0.022106772288680077, 0.005910023115575314, -0.012628830969333649, -0.006124856416136026, -0.007375944871455431, 0.01770900748670101, 0.0264876876026392, 0.00288550672121346, 0.019798368215560913, -0.0010520515497773886, 0.03514841943979263, 0.025560956448316574, 0.0055182683281600475, -0.011019687168300152, 0.032283976674079895, -0.01572917029261589, -0.014928811229765415, 0.010295150801539421, 0.03912494331598282, -0.01567019708454609, 0.011120785027742386, -0.009932883083820343, -0.008525935001671314, 0.013858857564628124, 0.014996210113167763, -0.008862928487360477, -0.006402876228094101, -0.009562190622091293, -0.019663570448756218, 0.012165464460849762, -0.001101547502912581, 0.004743183497339487, -0.03899014741182327, -0.0008272136910818517, 0.029874471947550774, 0.03358140215277672, 0.007055801339447498, -0.013783033937215805, 0.025493556633591652, -0.024280380457639694, 0.045932210981845856, 0.019545622169971466, -0.019697269424796104, -0.0002132536901626736, -0.013715635053813457, -3.0062847145018168e-05, -0.02222472056746483, -0.021348537877202034, 0.025257661938667297, 0.01961302012205124, 0.003586874343454838, 0.020977845415472984, -0.026453988626599312, -0.0037848581559956074, 0.027279622852802277, 0.01877053640782833, -0.010910164564847946, -0.03454183414578438, -0.023100903257727623, -5.1470487960614264e-05, -0.027582917362451553, 0.005332922097295523, 0.0029255247209221125, 0.005741526372730732, -0.015796570107340813, 0.0182313472032547, -0.0054087452590465546, 0.01904013194143772, 0.020455503836274147, 0.018163949251174927, -0.006175405811518431, 0.003955461084842682, -0.006348114926367998, 0.01599034108221531, 0.003367828670889139, -0.04670729860663414, -0.01679070107638836, -0.004321941640228033, -0.007055801339447498, -0.0028644446283578873, 0.04920104891061783, 0.02101154439151287, 0.0030582158360630274, -0.009983432479202747, 0.030615858733654022, 0.03993372991681099, -0.00807520654052496, 0.010067680850625038, -0.01117133442312479, -0.022848159074783325, 0.0023736979346722364, -0.005690977443009615, -0.015855543315410614, 0.029284734278917313, 0.004743183497339487, 0.044651638716459274, 0.012864726595580578, 0.0007882488425821066, -0.02212362177670002, -0.05203179270029068, -0.013370216824114323, 0.010059255175292492, -0.022528015077114105, 0.00015796569641679525, 0.06163610890507698, -0.010842765681445599, -0.021618131548166275, -0.0018587297527119517, 0.010312000289559364, 0.0052865855395793915, 0.026959478855133057, 0.006503974087536335, 0.007797186728566885, 0.007814036682248116, -0.021247439086437225, -0.03710298240184784, -0.0012858407571911812, -0.03855205327272415, -0.0033278106711804867, -0.0034963074140250683, -0.023808589205145836, 0.016386307775974274, 0.022157322615385056, 0.0032477746717631817, -0.02025330811738968, -0.0033446603920310736, -0.02554410696029663, 0.001370089128613472, -0.02537561021745205, 0.018298747017979622, -0.007430706173181534, 0.037237782031297684, -0.03754107281565666, 0.027279622852802277, 0.016664328053593636, -0.01106181088835001, 0.008677582256495953, -0.04417984560132027, -0.019764667376875877, -0.03378359600901604, -0.011963268741965294, -0.0012416103854775429, -0.031272996217012405, 0.018366144970059395, 0.03838355839252472, -0.03882164880633354, 0.008538572117686272, 0.013201720081269741, -0.0031235083006322384, -0.003970204386860132, -0.003108764998614788, -0.010817490518093109, -0.003382572205737233, -0.032334525138139725, 0.009646438993513584, 0.0210620928555727, -0.002321042586117983, 0.03784436732530594, -0.012114915996789932, 0.002936055650934577, -0.01663905382156372, 0.01522368099540472, 0.00975596159696579, -0.04296667128801346, 0.0068114809691905975, -0.01993316411972046, -0.0012753097107633948, 0.003907018341124058, -0.024347780272364616, 0.02618439309298992, 0.038046564906835556, -0.015392177738249302, 0.03460923209786415, 0.004460951313376427, 0.03348030149936676, 0.023016655817627907, 0.019276026636362076, -0.019916314631700516, -0.0025843188632279634, 0.0018987476360052824, 0.024769021198153496, -0.02714482508599758, -0.00667668366804719, 0.008028869517147541, 0.010741667822003365, 0.02153388410806656, -0.012940550222992897, -0.008997726254165173, 0.03219972923398018, 0.0019261284032836556, -0.033446602523326874, 0.021129490807652473, 0.001992474077269435, 0.0025527256075292826, 0.021685531362891197, -0.00786037277430296, 0.01909068040549755, -0.007826673798263073, -0.01909068040549755, 0.00017205097537953407, 0.004612598568201065, 0.0055688172578811646, -0.024971216917037964, -0.02047235518693924, 0.0011468309676274657, -0.050784919410943985, -0.02660563588142395, -0.011533602140843868, 0.021129490807652473, 0.007249572314321995, 0.014600242488086224, -0.00399969145655632, 0.0011320875491946936, 0.016512680798768997, -0.008226853795349598, -0.043910250067710876, -0.028071558102965355, 0.021314838901162148, -0.008302677422761917, 0.05479514226317406, 0.028880340978503227, 0.012013818137347698, -0.021129490807652473, -0.0063607520423829556, -0.0007608681335113943, -0.011314556002616882, -0.021196890622377396, -0.02884664200246334, 0.0006376548553816974, -0.03017776645720005, 0.03865315392613411, 0.010834340937435627, -0.034845124930143356, 0.005059114657342434, -0.010960713028907776, 0.019158080220222473, 0.0015027803601697087], "id": 82}, {"title": "Historical parks of Thailand", "text": "Historical parks in Thailand (Thai: \u0e2d\u0e38\u0e17\u0e22\u0e32\u0e19\u0e1b\u0e23\u0e30\u0e27\u0e31\u0e15\u0e34\u0e28\u0e32\u0e2a\u0e15\u0e23\u0e4c) are managed by the Fine Arts Department, a sub-division of the Ministry of Education. There are currently ten parks, with four them registered as World Heritage Sites by the UNESCO.", "vector": [0.027070073410868645, 0.0030636305455118418, -0.026276154443621635, 0.007753514684736729, 0.046072907745838165, 0.043767981231212616, 0.0015878378180786967, -0.02827375754714012, -0.018695509061217308, -0.012209705077111721, -0.012600261718034744, -0.007836747914552689, -0.0037391020450741053, -0.02617371454834938, 0.029503051191568375, -0.01740219071507454, -0.04448506981134415, -0.027607889845967293, 0.03928618133068085, -0.005637464579194784, -0.022677909582853317, 0.0053077321499586105, -0.019066859036684036, -0.03144943341612816, 0.020667502656579018, 0.032653115689754486, 0.011249318718910217, -0.010244115255773067, -0.009091651998460293, 0.028529860079288483, -0.013278934173285961, 0.004376158118247986, 0.08430906385183334, -0.011799939908087254, -0.01489238254725933, 0.016224117949604988, 0.03828737884759903, -0.0028347386978566647, -0.020321764051914215, 0.014264930039644241, 0.02993842586874962, -0.06607454270124435, 0.036008063703775406, 0.03260189667344093, 0.01866989955306053, -0.030962837859988213, -0.030348191037774086, -0.05536944046616554, -0.01975833624601364, -0.009840752929449081, -0.004126457497477531, -0.021320564672350883, -0.01791439577937126, 0.033831190317869186, -0.03431778401136398, 0.008675484918057919, 0.015571055002510548, 0.06668918579816818, 0.0191308856010437, 0.08005776256322861, 0.03703247755765915, 0.06909655779600143, -0.0532693974673748, -0.001645460957661271, 0.044305797666311264, -0.01732536032795906, 0.0039503867737948895, -0.018823562189936638, -0.028171315789222717, -0.00284594320692122, 0.0035246158950030804, -0.003777517471462488, -0.017773538827896118, 0.018311355262994766, 0.04415213689208031, -0.039439842104911804, 0.02269071526825428, 0.05900610238313675, 0.004965194500982761, 0.028581080958247185, 0.03790322691202164, -0.052910853177309036, -0.04922297224402428, 0.01756865717470646, -0.05180961266160011, -0.030732344835996628, -0.0009747915901243687, -0.03052746318280697, -0.007439788430929184, 0.01476433128118515, -0.02768472023308277, 0.019322961568832397, -0.03459949791431427, 0.008707498200237751, -0.00952062476426363, 0.0122865354642272, -0.006562636233866215, 0.03211529925465584, 0.025763949379324913, 0.0016934802988544106, 0.035751961171627045, -0.009322145022451878, -0.02088518999516964, -0.025827975943684578, -0.020040050148963928, -0.07140148431062698, -0.03475315868854523, -0.029682323336601257, 0.029298169538378716, 0.013970412313938141, 0.0016078458866104484, -0.009117262437939644, 0.041002072393894196, 0.05782802775502205, -0.03552147001028061, 0.026942022144794464, 0.021410200744867325, -0.022793155163526535, -0.03611050546169281, 0.07452593743801117, -0.020321764051914215, 0.008816341869533062, 0.02197362668812275, -0.015673495829105377, -0.023497438058257103, 0.013688698410987854, -0.025559067726135254, -0.008304135873913765, -0.010500217787921429, -0.013599062338471413, -0.00784315075725317, 0.04031059145927429, 0.009098054841160774, 0.022741936147212982, -0.035880014300346375, -0.03070673532783985, 0.0019671902991831303, 0.014777136035263538, -0.02683958224952221, -0.020910799503326416, -0.015199705958366394, 0.008361758664250374, -0.022370586171746254, -0.023010844364762306, -0.009527026675641537, -0.016211312264204025, -0.007081244606524706, 0.04947907477617264, -0.0026826777029782534, 0.043767981231212616, 0.021819965913891792, 0.01865709386765957, -0.044946055859327316, 0.030604293569922447, -0.03716052696108818, -0.01933576725423336, -0.04010571166872978, 0.028965234756469727, -0.033651918172836304, -0.023971229791641235, -0.021410200744867325, 0.008144071325659752, 0.005144466646015644, -0.0033229347318410873, -0.011044436134397984, 0.006162475328892469, 0.019643090665340424, -0.02763350121676922, 0.01310606487095356, 0.011710303835570812, 0.0029211733490228653, 0.000725891615729779, -0.029323779046535492, -0.0330628827214241, 0.007042828947305679, -0.025892000645399094, -0.02214009314775467, -0.011876771226525307, -0.026813970878720284, -0.04264112934470177, 0.006709895562380552, 0.004180879332125187, 0.042052093893289566, 0.007849553599953651, 0.010929190553724766, 0.05234742909669876, -0.028068875893950462, -0.017043646425008774, -0.046329010277986526, 0.06228422001004219, -0.01745341159403324, 0.026737140491604805, 0.05526700243353844, 0.003716693026944995, -0.016121676191687584, -0.051860831677913666, 0.05332062020897865, 0.051988884806632996, -0.020654696971178055, 0.009936791844666004, 0.0025594281032681465, -0.02214009314775467, 0.020782748237252235, 0.023433413356542587, -0.047122929245233536, -0.0019511837745085359, -0.010557841509580612, -0.007330944761633873, 0.030373800545930862, 0.08943112194538116, -0.024176111444830894, -0.026813970878720284, -0.0074782040901482105, -0.00800961721688509, -0.05941586568951607, 0.03506048396229744, 0.04189842939376831, 0.01505884900689125, 0.0648452490568161, -0.011838355101644993, 0.0020984429866075516, 0.005118856206536293, 0.02335658296942711, 0.010685892775654793, -0.014815551228821278, -0.04005448892712593, -0.019604675471782684, 0.04458751156926155, 0.02080835960805416, -0.006697090342640877, 0.04965834692120552, -0.006876362022012472, -0.012382574379444122, -0.031346991658210754, 0.006428182125091553, 0.0764210969209671, 0.01677473820745945, -0.07949433475732803, -0.006825141608715057, 0.033831190317869186, -0.0006346549489535391, 0.054959677159786224, -0.04387042298913002, -0.001497401506640017, -0.014674695208668709, 0.00333894114010036, 0.00758064491674304, -0.014700304716825485, 0.04781440645456314, 0.0625915452837944, 0.029503051191568375, -0.026788361370563507, -0.000799921341240406, 0.04136061295866966, -0.016198506578803062, 0.036853205412626266, 0.007638268172740936, 0.02558467723429203, 0.004241704009473324, -0.01224812027066946, -0.026224935427308083, 0.011543837375938892, -0.008060838095843792, -0.009021223522722721, -0.06172079220414162, 0.05227059870958328, -0.03974716737866402, 0.016877179965376854, -0.00659464905038476, 0.010916384868323803, -0.01321490854024887, -0.033651918172836304, 0.00305082555860281, 0.05577920749783516, 0.048966869711875916, 0.04484361410140991, 0.020488230511546135, -0.010052038356661797, 0.002162468619644642, 0.06090126559138298, -0.022370586171746254, -0.015378978103399277, -0.04105329141020775, 0.035495858639478683, -0.019566260278224945, 0.03234579414129257, -0.03605928644537926, 0.012363366782665253, 0.047916848212480545, -0.012517028488218784, -0.01941259764134884, -0.0485571064054966, 0.028401808813214302, -0.07780405133962631, -0.007183685898780823, -0.0053493487648665905, -0.03375435993075371, 0.012152081355452538, -0.03623855859041214, -0.015289342030882835, 0.023420607671141624, 0.008195292204618454, -0.030604293569922447, 0.0017414995236322284, -0.04202648252248764, 0.018272940069437027, -0.014405786991119385, 0.0382617712020874, 0.007606255356222391, -0.04302528500556946, 0.0036974851973354816, -0.05516456067562103, -0.06627942621707916, 0.03431778401136398, -0.015891183167696, -0.006780323572456837, -0.018964417278766632, 0.005663075018674135, 0.010180089622735977, 0.03442022576928139, -0.020360179245471954, 0.016300948336720467, -0.021487031131982803, 0.007350152358412743, 0.0301176980137825, -0.002828336087986827, 0.03915812820196152, -0.050554707646369934, 0.043767981231212616, -0.022511443123221397, 0.016006430611014366, -0.05557432398200035, -0.012645079754292965, -0.009450196288526058, 0.07027462869882584, -0.016262533143162727, -0.01224812027066946, 0.023382192477583885, -0.00045498277177102864, -0.04927419498562813, 0.011415786109864712, 0.01900283433496952, 0.003758309641852975, 0.01601923443377018, 0.02696763351559639, -0.03057868406176567, -0.02919572778046131, 0.060542721301317215, 0.024419410154223442, 0.008348953910171986, 0.000560225045774132, -0.025072472169995308, -0.03431778401136398, 0.01933576725423336, 0.03183358907699585, -0.0028587484266608953, 0.055932868272066116, 0.006287325639277697, 0.06187445670366287, 0.001317329122684896, -0.003927977755665779, -0.007811137940734625, -0.02294681780040264, 0.017338164150714874, 0.06894289702177048, 0.02642981708049774, 0.02868352271616459, 0.03662271052598953, -0.00395358819514513, 0.006626661866903305, 0.021192513406276703, -0.014162489213049412, -0.0017046848079189658, 0.02814570628106594, 0.019553454592823982, 0.02189679630100727, -0.005218096077442169, 0.01046180259436369, 0.014751525595784187, -0.041002072393894196, 0.03070673532783985, 0.009392572566866875, 0.030553072690963745, 0.03782639652490616, 0.027018854394555092, -0.02881157398223877, 0.051066912710666656, -0.0625915452837944, 0.01430334523320198, -0.020437009632587433, 0.025341380387544632, 0.03045063279569149, -0.020142491906881332, -0.04043864458799362, 0.027735941112041473, 0.010186491534113884, -0.015891183167696, -0.028068875893950462, -0.04922297224402428, -0.05654751509428024, 0.025315769016742706, -0.03703247755765915, 0.046738773584365845, 0.025763949379324913, -0.015750326216220856, -0.02005285583436489, 0.031014058738946915, 0.05301329493522644, -0.001751103438436985, 0.006428182125091553, -0.061925675719976425, 0.02490600384771824, -0.014661889523267746, 0.0020104076247662306, 0.016249727457761765, 0.016761932522058487, -0.025827975943684578, 0.03142382204532623, -0.013112467713654041, -0.0002194881672039628, -0.008880367502570152, 0.03283238783478737, -0.027121294289827347, 0.02173032984137535, -0.020232127979397774, 0.021141292527318, -0.047532692551612854, 0.015366172417998314, 0.023996839299798012, -0.02512369304895401, -0.05506211891770363, -0.00859865453094244, -0.0051316614262759686, 0.01404724270105362, -0.028657911345362663, 0.0074269832111895084, -0.039363011717796326, 0.04243624582886696, 0.04256429895758629, 0.015366172417998314, 0.004180879332125187, -0.054754793643951416, 0.029221337288618088, -0.0012300941161811352, -0.031475044786930084, 0.01815769448876381, -0.0492485836148262, -0.01769670844078064, 0.04658511281013489, 0.04177037999033928, -0.04684121534228325, 0.0036046479362994432, 0.02470112219452858, 0.05321817845106125, 0.00880993902683258, -0.007388568017631769, 0.014661889523267746, -0.0341385118663311, -0.0038991663604974747, 0.0005058031529188156, -0.0002895162906497717, 0.021064462140202522, 0.02567431330680847, -0.04282040148973465, -0.027966434136033058, -0.0498376190662384, 0.03539341688156128, 0.011979212053120136, -0.008361758664250374, 0.03741662949323654, 0.03941423445940018, 0.003244503401219845, -0.040080100297927856, 0.035547077655792236, -0.018772341310977936, -0.007170880679041147, 0.006914777681231499, 0.006434584967792034, -0.009059639647603035, -0.037262968719005585, -0.041206952184438705, 0.016621077433228493, 0.033575087785720825, 0.03810810670256615, 0.06822580844163895, -0.023932814598083496, 0.007727904245257378, 0.025687118992209435, 0.015122874639928341, 0.02906767651438713, 0.01954064890742302, -0.010455399751663208, 0.03070673532783985, 0.022319365292787552, -0.019643090665340424, -0.0051060509867966175, -0.011025228537619114, -0.0150332385674119, 0.028324978426098824, 0.009392572566866875, -0.05367916449904442, 0.022319365292787552, 0.004244904965162277, -0.010621867142617702, 0.0028811574447900057, 0.03452266752719879, 0.01136456523090601, 0.0544474720954895, 0.0015038041165098548, 0.029707932844758034, 0.0013021230697631836, -0.01063467189669609, -0.018990028649568558, 0.008252914994955063, -0.0020888391882181168, 0.05367916449904442, 0.012485015206038952, -0.0095398323610425, 0.004270515404641628, -0.006914777681231499, 0.0017879181541502476, 0.04307650402188301, -0.038773976266384125, -0.0035150120966136456, -0.027992043644189835, -0.008316940627992153, -0.056342631578445435, -0.015250925906002522, -0.051015693694353104, -0.02735178731381893, 0.014982018619775772, 0.0124594047665596, -0.010135271586477757, -0.02621212974190712, 0.01496921293437481, -0.015878377482295036, -0.03616172447800636, 0.007350152358412743, -6.127461529104039e-05, -0.03019452840089798, -0.03780078515410423, -0.03170553594827652, 0.012299340218305588, -0.018400991335511208, -0.05011933296918869, -0.02385598234832287, 0.0039087701588869095, 0.006588246673345566, -0.0008971603820100427, -0.016300948336720467, -0.017594268545508385, -0.01920771598815918, 0.00788796879351139, 0.01241458673030138, -0.015314952470362186, -0.017427800223231316, -0.009680688381195068, -0.04451068118214607, 0.016326557844877243, 0.0011356561444699764, 0.011947198770940304, 0.027992043644189835, 0.001271710847504437, -0.006946790497750044, -0.024777952581644058, -0.017299748957157135, -0.024880394339561462, -0.0022040854673832655, 0.02536698989570141, -0.011966407299041748, 0.023394998162984848, -0.017171697691082954, -0.0016806750791147351, 0.04123256355524063, -0.003188480855897069, -0.0150332385674119, -0.011697499081492424, 0.008060838095843792, -0.05921098589897156, 0.009091651998460293, -0.01318929810076952, 0.009853558614850044, 0.03257628530263901, -0.008291330188512802, 0.040489863604307175, 0.013611868023872375, 0.0038127314765006304, -0.0019527844851836562, 0.02545662596821785, 0.0012885176111012697, 0.037058085203170776, -0.004680280108004808, 0.01318929810076952, 0.04266674071550369, 0.0026378596667200327, 0.020782748237252235, -0.020437009632587433, -0.03941423445940018, 0.043255776166915894, -0.010564243420958519, 0.010103258304297924, -0.007471801247447729, -0.020795553922653198, 0.03293482959270477, -0.010807541199028492, -0.007145270239561796, 0.010269725695252419, -0.03918373957276344, -0.021883990615606308, 0.034036073833703995, 0.01874672994017601, -0.027735941112041473, 0.030143309384584427, -0.031193330883979797, 0.04381920397281647, 0.030629904940724373, 0.004600247833877802, 0.02927255816757679, 0.006108053494244814, -0.0034285772126168013, 0.023766346275806427, -0.001821531681343913, 0.026096882298588753, -0.016493026167154312, -0.0318848080933094, -0.04148866608738899, -0.0038671535439789295, -0.04381920397281647, 0.032064080238342285, -0.03418973460793495, 0.0004409771354403347, -0.003004406811669469, -0.0005130060599185526, -0.035419028252363205, -0.01031454373151064, -0.005403770599514246, -0.006837946828454733, -0.035419028252363205, -0.001927174162119627, 0.018567457795143127, 0.03175675496459007, -0.0073181395418941975, -0.006392967887222767, 0.026557868346571922, -0.016544245183467865, -0.046866826713085175, -0.009866363368928432, -0.024521850049495697, 0.0300664771348238, -0.01900283433496952, -0.06187445670366287, 0.005707893054932356, 0.007830345071852207, 0.01749182678759098, -0.02193521149456501, -0.005723899230360985, -0.004296125844120979, -0.05111813545227051, 0.023599879816174507, 0.0016182500403374434, -0.00653062341734767, 0.0113069424405694, -0.024022450670599937, 0.00653062341734767, 0.013650283217430115, 0.009059639647603035, -0.02529015950858593, 0.006044027861207724, 0.06868679076433182, 0.01911807991564274, -0.013727114535868168, -0.02479075826704502, 0.013099662028253078, 0.025533456355333328, 0.011543837375938892, -0.015327757224440575, -0.004837143234908581, -0.025469431653618813, 0.006482603959739208, -0.02490600384771824, -0.021115683019161224, -0.054959677159786224, -0.009213301353156567, -0.005259712692350149, -0.020104076713323593, 0.0011292536510154605, 0.0010948397684842348, 0.011761524714529514, -0.028401808813214302, -0.011127670295536518, -0.0027531059458851814, 0.009360560216009617, -0.037134915590286255, -0.018272940069437027, 0.02940060943365097, -0.0030972440727055073, 0.0007162877591326833, -0.015545444563031197, -0.005896768532693386, -0.010500217787921429, -0.04046425595879555, 0.011812745593488216, 0.007548632100224495, 0.018170498311519623, 0.017338164150714874, 0.017466215416789055, -0.01063467189669609, -0.015250925906002522, -0.027787161991000175, 0.03057868406176567, 0.001180474180728197, -0.014021632261574268, -0.017043646425008774, 0.033447034657001495, -0.026327375322580338, 0.011569447815418243, -0.006850752048194408, -0.03523975610733032, 0.015481418929994106, -0.003238100791350007, 0.005000408738851547, -0.011063644662499428, -0.044433850795030594, 0.005294926930218935, -0.03662271052598953, -0.015148485079407692, -0.04604729637503624, -0.010058440268039703, -0.04064352810382843, 0.013496621511876583, -0.0231516994535923, 0.028299367055296898, -0.003854348324239254, 0.03162870556116104, 0.00431853486225009, 0.02855547145009041, -0.03283238783478737, 0.0005902370903640985, -0.005227699875831604, -0.02125653810799122, -0.0008071242482401431, -0.0492485836148262, 0.0019783948082476854, 0.00978953205049038, 0.014982018619775772, 0.022280950099229813, -0.05040104687213898, -0.022050457075238228, 0.012913987971842289, -0.018183303996920586, -0.017543047666549683, -0.016467414796352386, 0.016326557844877243, -0.058237794786691666, 0.004449787549674511, 0.01845221221446991, -0.01577593758702278, 0.007164477836340666, 0.030168918892741203, 0.06904533505439758, -0.05793046951293945, 0.031193330883979797, -0.016621077433228493, 0.05086203292012215, 0.026609089225530624, -0.0162369217723608, -0.010602659545838833, -0.0023161303251981735, 0.0009411780629307032, 0.012926792725920677, 0.04374236986041069, 0.004840344190597534, 0.015878377482295036, 0.03808249905705452, -0.01035936176776886, -0.021794354543089867, 0.003220493672415614, -0.05577920749783516, -0.03926056995987892, 0.02532857470214367, 0.010929190553724766, -0.006117657292634249, -0.04235941544175148, -0.0034605900291353464, 0.01664668694138527, -0.03385680168867111, -0.02201204188168049, 0.011319747194647789, -0.02637859620153904, 0.015404587611556053, 0.03221774101257324, 0.02189679630100727, 0.024637097492814064, -0.03931179270148277, 0.00333894114010036, 0.03198724985122681, 0.0008555436506867409, 0.02788960374891758, 0.010141673497855663, -0.018093667924404144, 0.0033613501582294703, 0.02134617418050766, 0.004536222200840712, -0.04248746857047081, 0.006204092409461737, -0.02051384001970291, 0.023087674751877785, -0.0012525031343102455, 0.037852004170417786, 0.015302146784961224, -0.02453465573489666, 0.05280841141939163, 0.010109661146998405, -0.0416935496032238, 0.006908375304192305, 0.003601446747779846, -0.005615055561065674, -0.0010716305114328861, -0.010269725695252419, 0.0364946611225605, -0.033318985253572464, -0.02562309242784977, -0.007913579232990742, 0.04584241658449173, 0.037186138331890106, -0.013778334483504295, 0.017389385029673576, -0.0036654723808169365, 0.007689489051699638, -0.03908129781484604, -0.005426179617643356, 0.0049972073175013065, -0.0011076449882239103, -0.0347275510430336, 0.006908375304192305, 0.03544463962316513, 0.030296970158815384, -0.0018327361904084682, -0.0021656700409948826, -0.01486677210777998, 0.0029227740596979856, 0.004491404164582491, 0.016198506578803062, -0.015327757224440575, -0.036340996623039246, -0.015391782857477665, -0.016928400844335556, -0.032448235899209976, 0.0133173493668437, 0.018529042601585388, 0.035162925720214844, -0.007017218973487616, 0.026160908862948418, 0.04374236986041069, -0.0017703111516311765, 0.06750871986150742, -0.009418183006346226, 0.020693112164735794, 0.0054165758192539215, -0.03150065243244171, 0.015532639808952808, -0.03477877005934715, -0.01824733056128025, 0.05501089617609978, -0.011095657013356686, -0.005493406672030687, 0.009994414635002613, -0.020962020382285118, -0.032653115689754486, 0.023881593719124794, 0.022076068446040154, 0.0301176980137825, 0.02386878803372383, -0.018093667924404144, 0.011012423783540726, -0.01516128983348608, -0.012933195568621159, -0.014405786991119385, 0.03964472562074661, -0.028324978426098824, -0.0025482235942035913, -0.0324738435447216, 0.0295286625623703, 0.043050892651081085, -0.02650664746761322, 0.026685919612646103, -0.007132465019822121, -0.018132083117961884, 0.021371785551309586, 0.0053493487648665905, -0.03098844736814499, -0.04827539250254631, -0.007254113908857107, 0.03813371807336807, -0.007715099025517702, 0.038569092750549316, 0.012856364250183105, -0.01126212440431118, 0.008144071325659752, 0.011230111122131348, 0.019258936867117882, -0.023241335526108742, -0.035905621945858, -0.021397395059466362, -0.008003215305507183, -0.02512369304895401, 0.018336966633796692, 0.0025770352222025394, -0.01819610968232155, 0.0266346987336874, -0.03262750804424286, 0.01394480187445879, 0.01325332373380661, -0.03452266752719879, 0.03974716737866402, -0.03823615983128548, -0.02344621904194355, 0.009757519699633121, -0.042000871151685715, 0.002892361953854561, -0.009930389001965523, -0.001211686758324504, -0.019527845084667206, -0.006521019618958235, 0.0010100057115778327, -0.003895964939147234, 0.010877969674766064, -0.021333370357751846, 0.004766714759171009, -0.033447034657001495, -0.0388508066534996, -0.022805960848927498, 0.026199324056506157, 0.011076449416577816, 0.00011504621215863153, 0.04297406226396561, 0.020667502656579018, 0.0058359443210065365, -0.03290921822190285, -0.029707932844758034, 0.06976242363452911, -0.005851950496435165, 0.022409001365303993, 0.0007170880562625825, -0.059159763157367706, -0.014328955672681332, 0.02637859620153904, -0.00751661928370595, 0.025994442403316498, -0.07186246663331985, -0.00653062341734767, 0.028888404369354248, -0.011729511432349682, 0.02151264250278473, 0.031014058738946915, -0.012337756343185902, 0.000687076011672616, -0.04235941544175148, -0.023087674751877785, 0.02164069376885891, 0.011121267452836037, 0.0106922946870327, -0.011236513964831829, 0.022165704518556595, 0.029426220804452896, -0.03641783073544502, -0.003972795791924, 0.017286943271756172, -0.02587919495999813, 0.01727413944900036, -0.03370313718914986, 0.034240953624248505, 0.016557050868868828, -0.013739919289946556, -0.03293482959270477, 0.007190088275820017, -0.0018455414101481438, -0.002405766397714615, 0.016249727457761765, -0.032729946076869965, -0.014367371797561646, 0.023164505138993263, 0.005669477395713329, -0.018336966633796692, 0.021397395059466362, 0.01577593758702278, 0.03196163848042488, -0.0249188095331192, 0.021128486841917038, 0.02473953738808632, -0.018605874851346016, 0.013054843991994858, 0.027274956926703453, -0.028760353103280067, -0.015583859756588936, -0.011082852259278297, -0.013650283217430115, 0.04671316593885422, 0.005615055561065674, -0.016582660377025604, -0.010596256703138351, 0.024048060178756714, -0.009488611482083797, -0.017018036916851997, 0.013560647144913673, -0.014585059136152267, -0.021909601986408234, 0.05624019354581833, 0.029323779046535492, -0.034701939672231674, -0.0034221746027469635, 0.004590644035488367, -0.009027626365423203, -0.007977604866027832, 0.006159274373203516, -0.05388404428958893, 0.021499836817383766, -0.03967033699154854, -0.033523865044116974, -0.021615082398056984, -0.022959623485803604, -0.008323343470692635, 0.018042447045445442, -0.008067240938544273, 0.00952062476426363, 0.037134915590286255, -0.014367371797561646, 0.008361758664250374, -0.00039735963218845427, 0.012510625645518303, -0.0013925593812018633, 0.03091161698102951, -0.01325332373380661, -0.0014773934381082654, -0.01664668694138527, -0.029298169538378716, -0.02068030647933483, -0.011870368383824825, 0.011774329468607903, 0.0479680672287941, 0.0024889998603612185, -0.030015256255865097, -0.010384971275925636, 0.023126089945435524, -0.025354184210300446, 0.02630176581442356, 0.002871553413569927, 0.052910853177309036, 0.01874672994017601, -4.145415005041286e-06, -0.005016414914280176, 0.021064462140202522, 0.00350220687687397, 0.002836339408531785, -0.020795553922653198, 0.009219703264534473, 0.009635870344936848, 0.02130775898694992, -0.007094049826264381, 0.0226138848811388, 0.009469403885304928, 0.006972400937229395, 0.00659464905038476, 0.019809557124972343, -0.007830345071852207, 0.006780323572456837, -0.016032040119171143, 0.026942022144794464, 0.018042447045445442, -0.006268118042498827, 0.007190088275820017, -0.023676710203289986, -0.012824351899325848, 0.007900773547589779, -0.016557050868868828, -0.0020296152215451, 0.0228571817278862, 0.01516128983348608, -0.009270924143493176, -0.026352986693382263, -0.019054053351283073, 0.009315742179751396, 0.02893962524831295, -0.013983217068016529, 0.05664995685219765, -0.009206898510456085, 0.008112058974802494, -0.034292176365852356, -0.015391782857477665, 0.02520052343606949, 0.019322961568832397, -0.015993624925613403, 0.027966434136033058, 0.017466215416789055, -0.010500217787921429, 0.015583859756588936, -0.013035636395215988, 0.0006374560762196779, -0.007740709464997053, -0.0007214898359961808, 0.019386988133192062, -0.0016518635675311089, -0.012216106988489628, -0.046149738132953644, 0.04965834692120552, 0.004603449255228043, 0.0012372969649732113, -0.03283238783478737, 0.02105165645480156, -0.0369812548160553, 0.008611459285020828, 0.03967033699154854, -0.04448506981134415, -0.0014037638902664185, 0.01664668694138527, 0.02855547145009041, -0.03523975610733032, -0.018055252730846405, -0.0022857182193547487, -0.015238121151924133, -0.011524629779160023, -0.017376579344272614, 0.022255340591073036, -0.01592959836125374, 0.02034737356007099, 0.02381756715476513, 0.0022889194078743458, 0.009827948175370693, -0.029426220804452896, 0.033447034657001495, -0.005781522486358881, 0.011479811742901802, -0.015186900272965431, 0.019515039399266243, -0.009251716546714306, -0.012760326266288757, 0.012664287351071835, -0.011787135154008865, 0.006434584967792034, 0.0053077321499586105, -0.0026954826898872852, -0.008963600732386112, 0.009078847244381905, -0.047199759632349014, -0.003358148969709873, -0.010103258304297924, 0.03523975610733032, -0.006338546052575111, 0.019322961568832397, -0.01601923443377018, -0.027787161991000175, 0.0037006866186857224, -0.006181683391332626, 0.0003741502878256142, 0.013138077221810818, -0.00866268016397953, 0.03019452840089798, -0.0242785532027483, -0.01849062740802765, 0.011652681045234203, -0.012356963939964771, 0.005301329772919416, 0.00987916812300682, -0.018772341310977936, 0.014418591745197773, 0.004312132019549608, 0.038441043347120285, -0.006998010911047459, 0.00164866226259619, -0.013394180685281754, 0.008041630499064922, -0.01983516849577427, 0.025520652532577515, 0.013266129419207573, -0.016249727457761765, -0.006444188766181469, -0.027838382869958878, 0.006876362022012472, -0.0030092087108641863, -0.002258507302030921, 0.0021432610228657722, 0.012382574379444122, 0.006889167241752148, 0.0324738435447216, -0.00020188109192531556, -0.001807125867344439, 0.011454201303422451, -0.02298523299396038, 0.03493243083357811, -5.952390893071424e-06, -0.012427392415702343, -0.0051060509867966175, -0.0017735124565660954, -0.012126470915973186, -0.007439788430929184, 0.025008445605635643, -0.008528226055204868, 0.04374236986041069, 0.01685156859457493, 0.018042447045445442, 0.01576313190162182, -0.026186518371105194, 0.004555429797619581, -0.010621867142617702, -0.027018854394555092, -0.0029787966050207615, -0.013547842390835285, 0.001179673825390637, -0.024765148758888245, -0.03175675496459007, 0.03603367507457733, -0.01413687877357006, -0.005762314889580011, 0.00859865453094244, -0.015020433813333511, -0.009763922542333603, -0.009482208639383316, 0.0030844390857964754, -0.0266346987336874, 0.027479838579893112, -0.02495722472667694, 0.0013397381408140063, -0.010212101973593235, -0.008477005176246166, -0.021154098212718964, 0.00878432858735323, 0.012446600012481213, -0.003354947781190276, -0.015507029369473457, 0.039234962314367294, -0.0176582932472229, -0.005435783416032791, -0.01400882750749588, 0.037519071251153946, -0.020897993817925453, -0.03395923972129822, -0.012113666161894798, 0.017875980585813522, -0.025597482919692993, 0.00955903995782137, -0.017543047666549683, 0.022716324776411057, -0.018849171698093414, -0.010160882025957108, -0.022844376042485237, -0.00802882481366396, -0.026916412636637688, -0.007919981144368649, 0.003329337341710925, -0.02289559692144394, -0.009699896909296513, 0.013138077221810818, -0.022741936147212982, 0.023010844364762306, 0.018349770456552505, -0.017210112884640694, 0.015788741409778595, -0.015417393296957016, 0.005720697809010744, -0.02293401211500168, 0.023215726017951965, 0.0006558634340763092, -0.007119659800082445, 0.013010025955736637, -0.01924613118171692, 0.03570074215531349, -0.003402967005968094, -0.01598081924021244, -0.03854348137974739, -0.03595684468746185, -0.02482917346060276, -0.002261708490550518, -0.040028881281614304, 0.002948384266346693, 0.0015350165776908398, -0.017901591956615448, 0.0025498243048787117, -0.022165704518556595, 0.034958042204380035, -0.024304162710905075, -0.02650664746761322, -0.025315769016742706, -0.05237303674221039, -0.016825959086418152, -0.010474607348442078, 8.838550274958834e-05, 0.02914450690150261, -0.016032040119171143, -0.031193330883979797, -0.021333370357751846, -0.009187690913677216, -0.00327651621773839, 0.03280678018927574, 0.015186900272965431, -0.036084894090890884, 0.014213710092008114, -0.0009988012025132775, 0.001493399846367538, 0.009847155772149563, -0.0007182885310612619, 0.015878377482295036, -0.01423931960016489, 0.03170553594827652, -0.02893962524831295, -0.0020024043042212725, -0.05419136956334114, -0.052398648113012314, -0.003182078246027231, -0.040028881281614304, 0.02272913046181202, -0.022473027929663658, -0.012696299701929092, -0.0013813548721373081, -0.012625872157514095, -0.0011540636187419295, -0.016493026167154312, -0.003937581554055214, 0.026942022144794464, 0.007382165640592575, 0.005515815690159798, 0.03208969160914421, -0.0049299802631139755, 0.014149683527648449, -0.06335984915494919, -0.01656985655426979, -0.011883173137903214, -0.020693112164735794, -0.0022553058806806803, 0.023433413356542587, -0.0035950441379100084, -0.01153103169053793, -0.05439624935388565, -0.017709514126181602, -0.020641891285777092, 0.019386988133192062, 0.012613066472113132, -0.000375150702893734, -0.015417393296957016, -0.05629141256213188, -0.003326136153191328, 0.006780323572456837, 0.008835549466311932, -0.0001141458487836644, -0.024649901315569878, -0.05972319096326828, -0.0076958914287388325, -0.022703519091010094, -0.03539341688156128, -0.011191695928573608, -0.03882519528269768, 0.023471828550100327, 0.009744714014232159, -0.0138807762414217, -0.004187282174825668, -0.0036558685824275017, 0.02068030647933483, 0.03867153450846672, 0.006303332280367613, 0.002112848684191704, 0.014610668644309044, -0.012088055722415447, -0.005983203649520874, 0.00899561308324337, -0.015571055002510548, -0.019310157746076584, 0.035342197865247726, -0.007036426570266485, -0.016428999602794647, 0.020782748237252235, 0.031090889126062393, 0.014559448696672916, 0.012062445282936096, 0.004907571244984865, 0.0034093696158379316, 0.00166947057005018, -0.0015166092198342085, 0.0037743160501122475, -0.0009163680952042341, -0.011038034223020077, -0.022114483639597893, 0.005362153984606266, 0.009597455151379108, -9.038631105795503e-05, -0.006284124217927456, -0.016249727457761765, -0.02294681780040264, -0.021410200744867325, -0.0019367779605090618, 0.011921589262783527, 0.012638676911592484, 0.009917584247887135, 0.035675130784511566, 0.010231309570372105, -0.006463396362960339, -0.0138807762414217, 0.007471801247447729, 0.028709132224321365, -0.015302146784961224, 0.011537434533238411, 0.006383364088833332, 0.025892000645399094, 0.009418183006346226, 0.002983598504215479, 0.015596665441989899, 0.024188917130231857, 0.029477441683411598, 0.014495423063635826, -0.016044845804572105, -0.004597046412527561, -0.005563835147768259, -0.011960004456341267, -0.0005710293771699071, 0.01505884900689125, -0.021627888083457947, -0.008022422902286053, 0.013535036705434322, -0.006031222641468048, -0.03892763704061508, 0.00563106220215559, 0.0399264395236969, 0.002357747172936797, -0.0066330647096037865, 0.03229457139968872, 0.024124890565872192, -0.006044027861207724, -0.011166085489094257, 0.006521019618958235, 0.012408184818923473, 0.003777517471462488, -0.02260107919573784, 0.031270161271095276, 0.01837538182735443, 0.015148485079407692, -0.0023449419531971216, -0.0011852760799229145, -0.04056669399142265, 0.019233325496315956, -0.014687499962747097, -0.01381675060838461, -0.030015256255865097, 0.013496621511876583, 0.0049171750433743, -0.015507029369473457, 0.007330944761633873, -0.022665103897452354, -0.01832416094839573, 0.019566260278224945, 0.01983516849577427, -0.03618733584880829, -0.0088035361841321, -0.021000435575842857, -0.01715889200568199, 0.03879958763718605, 0.019028443843126297, 0.011588655412197113, 0.005320537369698286, -0.012126470915973186, 0.0014741921331733465, 0.014290540479123592, -0.003476596437394619, 0.02886279486119747, 0.0014998024562373757, -0.012081652879714966, 0.023241335526108742, 0.038902025669813156, -0.004116853699088097, -0.027531059458851814, 0.01245300192385912, -0.028965234756469727, 0.020104076713323593, -0.012913987971842289, -0.01042338740080595, -0.023305362090468407, -0.03372874855995178, 0.028529860079288483, -0.029349390417337418, 0.0231004785746336, 0.0173637755215168, -0.008336148224771023, 0.005230901297181845, -0.004280119203031063, 0.01318929810076952, -0.013035636395215988, 0.018695509061217308, -0.012241717427968979, 0.04474117234349251, 0.020667502656579018, 0.04092523828148842, 0.018106473609805107, -0.003639862174168229, 0.023164505138993263, 0.02440660446882248, 0.006028021685779095, 0.0226138848811388, -0.041795987635850906, 0.015801547095179558, 0.01423931960016489, 0.012446600012481213, 0.04333260655403137, 0.017056452110409737, 0.010429789312183857, 0.023202920332551003, -0.009757519699633121, -0.008989211171865463, 0.03572634980082512, -0.010000817477703094, 0.02919572778046131, -0.013394180685281754, -0.030373800545930862, -0.019054053351283073, 0.02239619567990303, 0.014060048386454582, -0.044689953327178955, 0.01581435278058052, 0.00305082555860281, -0.022127289324998856, 0.0071004522033035755, -0.0024121690075844526, -0.000944379367865622, 0.022421807050704956, 0.005688684992492199, 0.009962402284145355, 0.030604293569922447, -0.002466590842232108, 0.012670690193772316, 0.020078465342521667, -0.04415213689208031, 0.00950141716748476, -0.012337756343185902, 0.001500602811574936, 0.007190088275820017, -0.03951667249202728, -0.050093721598386765, -0.012856364250183105, 0.00657544145360589, -0.0009667883859947324], "id": 83}, {"title": "Bonilla observation", "text": "On August 12, 1883, the astronomer Jos\u00e9 Bonilla reported that he saw more than 300 dark, unidentified objects crossing before the Sun while observing sunspot activity at Zacatecas Observatory in Mexico. He was able to take several photographs, exposing wet plates at 1/100 second. These represent the earliest photos of an unidentified flying object.", "vector": [0.03938209265470505, -0.020690200850367546, -0.013534711673855782, -0.04537702351808548, -0.04417803883552551, -0.03200371563434601, -0.004519256297498941, 0.02880641631782055, 0.034647632390260696, 0.051433444023132324, -0.06960269808769226, 0.01139037124812603, -0.007412964012473822, -0.020367396995425224, -0.033387161791324615, 0.03314121440052986, -0.01301207672804594, 0.028883274644613266, -0.02583969384431839, -0.0472831055521965, 0.01958344504237175, -0.008277617394924164, -0.00106928835157305, 0.03304898366332054, 0.05020371451973915, 0.01393437385559082, 0.021489525213837624, 0.03861350938677788, -0.04762127995491028, 0.01337330974638462, 0.05469222739338875, 0.024825166910886765, 0.00033697474282234907, 0.028698815032839775, 0.02238108031451702, -0.01876874826848507, 0.004576900042593479, -0.04602263122797012, 0.018784120678901672, -0.011805404908955097, 0.007778040133416653, -0.02439476177096367, 0.021120605990290642, 0.0032683908939361572, -0.06274695694446564, -0.03633851185441017, -0.024732938036322594, -0.042794592678546906, -0.04835911840200424, -0.022749997675418854, 0.010306671261787415, -0.040181417018175125, -0.020505741238594055, -0.01580202579498291, -0.02102837711572647, 0.027469085529446602, 0.017262330278754234, 0.03609256446361542, 0.0222888495773077, -0.021105235442519188, 0.07575134932994843, -0.03686114773154259, -0.003443242982029915, 0.022181248292326927, -0.00011768897093134001, -0.02390287071466446, 0.00931520201265812, 0.0026093325577676296, 0.0060410466976463795, 0.018123140558600426, 0.02651604637503624, 0.006682812236249447, -0.004215667024254799, 0.0025881966575980186, 0.03317195549607277, 0.009000083431601524, 0.02822229638695717, -0.02880641631782055, -0.043194252997636795, 0.0065137241035699844, 0.02534780278801918, -0.01546385046094656, 0.023195775225758553, 0.01953732967376709, 0.030604897066950798, 0.006006460636854172, 0.013480911031365395, -0.05149492993950844, -0.044823646545410156, -0.014088090509176254, 0.00893859751522541, 0.020813174545764923, -0.008861739188432693, 0.04033513367176056, 0.009392060339450836, -0.024871282279491425, 0.05496891587972641, -0.03360236436128616, -0.004035050515085459, 0.05048040300607681, -0.030589524656534195, -0.014218749478459358, -0.03415574133396149, -0.02633158676326275, 0.03357161954045296, -0.06290066987276077, -0.02548614703118801, 0.00568365678191185, -0.034278713166713715, 0.05466148257255554, -0.016816552728414536, 0.008231502957642078, -0.015317820012569427, -0.024609964340925217, 0.00550304027274251, 0.05546080693602562, -0.012220438569784164, 0.051525671035051346, -0.017001012340188026, 0.023533951491117477, 0.036492228507995605, -0.014326350763440132, 0.0441165529191494, 0.05758209154009819, -0.014956586994230747, 0.013888259418308735, 0.043962836265563965, 0.010176013223826885, -0.021643241867423058, 0.006433023139834404, 0.007977871224284172, -0.03101992979645729, 0.03587736189365387, 0.02574746496975422, -0.018753377720713615, -0.006033360958099365, -0.01876874826848507, 0.04147263243794441, 0.02623935602605343, 0.004784416873008013, -0.04476216062903404, 0.011259712278842926, -0.019660303369164467, 0.07765742391347885, -0.047067902982234955, -0.028299152851104736, -0.004799788352102041, -0.03246486186981201, -0.013842144049704075, 0.019014695659279823, 0.03074324131011963, -0.0052378796972334385, 0.02044425532221794, -0.02147415466606617, 0.0027323055546730757, 0.04442398250102997, 0.03381756693124771, 0.004415498115122318, -0.02025979571044445, -0.014779813587665558, -0.030374322086572647, 0.020628714933991432, 0.015509964898228645, -0.0033279559575021267, -0.009553462266921997, -0.055214859545230865, 0.022949829697608948, 0.0006907621864229441, 0.01918378286063671, 0.02665439061820507, 0.0409807413816452, -0.021397296339273453, -0.01841520145535469, -0.00046282989205792546, 0.017123986035585403, -0.004976562224328518, 0.04811317101120949, 0.013357938267290592, 0.045530740171670914, -0.003310662694275379, -0.0648067519068718, -0.011490286327898502, 0.042333442717790604, -0.012858361005783081, -0.001810008310712874, 0.011943749152123928, 0.02124357968568802, 0.009099999442696571, -0.04325573891401291, 0.01008378341794014, 0.013580827042460442, -0.03809087723493576, 0.014241806231439114, 0.01773885078728199, 0.032833781093358994, -0.02786874771118164, -0.0652986466884613, -0.06203985959291458, -0.04848209023475647, -0.041718579828739166, -0.017139356583356857, -0.0020751687698066235, -0.03237263485789299, 0.01886097900569439, 0.008277617394924164, -0.028760302811861038, 0.013250336982309818, -0.006171705666929483, -0.007028673309832811, -0.0008488016901537776, 0.00893859751522541, -0.039412833750247955, -0.010652532801032066, 0.029697971418499947, -0.025870436802506447, 0.020382769405841827, 0.005768200848251581, -0.042517904192209244, 0.014864357188344002, -0.0477135106921196, 0.035938847810029984, -0.007678124587982893, -0.022135132923722267, 0.021013004705309868, 0.012912161648273468, 0.02728462591767311, 0.009491975419223309, 0.024702195078134537, -0.03643074259161949, -0.05426182225346565, -0.02809932269155979, -0.03953580930829048, -0.0048420606181025505, -0.0024786738213151693, 0.03381756693124771, 0.018430573865771294, 0.0256552342325449, 0.03507803753018379, 0.00025819518486969173, -0.016017228364944458, 0.022842228412628174, 0.05048040300607681, -0.040765538811683655, 0.008854053914546967, 0.05109526589512825, 0.019199153408408165, -0.03972026705741882, -0.0868804007768631, -0.04156486317515373, 0.03268006443977356, 0.06560607999563217, -0.002513259882107377, 0.010967651382088661, 0.0378141850233078, -0.024118073284626007, -0.05739763006567955, -0.025670606642961502, 0.014702955260872841, 0.00732841994613409, 0.003727617906406522, -0.0387057401239872, 0.007109374739229679, -0.002203906187787652, 0.00594113115221262, -0.010844678618013859, 0.004534628242254257, 0.0026881122030317783, -0.041657090187072754, 0.010975337587296963, -0.035047296434640884, -0.021489525213837624, -0.017262330278754234, 0.008362161926925182, 0.0017466003773733974, -0.04549999535083771, 0.06689729541540146, 0.005679813679307699, 0.051740873605012894, 0.002225042087957263, -0.0008396747871302068, 0.022842228412628174, -0.030866215005517006, -0.02588580921292305, -0.031096788123250008, -0.013004391454160213, 0.04749830812215805, -0.03972026705741882, -0.018445944413542747, 0.07907161861658096, -0.011628630571067333, -0.020336654037237167, 0.015071874484419823, -0.04479290172457695, 0.020136823877692223, 0.025363173335790634, 0.009584205225110054, 0.001077934866771102, -0.017170099541544914, 0.006067947018891573, -0.027884120121598244, -0.019568072631955147, 0.04577668756246567, -0.015740539878606796, 0.07286148518323898, 0.015210218727588654, 0.01152102928608656, -0.014487752690911293, -0.03390979394316673, 0.002119362121447921, -0.071139857172966, -0.09376688301563263, 0.025409288704395294, -0.005868116393685341, 0.04537702351808548, 0.0022192776668816805, -0.010952279902994633, 0.04848209023475647, -0.025317059829831123, -0.01953732967376709, -0.019998477771878242, -0.017984796315431595, -0.011597887612879276, 0.03006689064204693, -0.03430945798754692, 0.054231077432632446, 0.010913850739598274, 0.008285303600132465, -0.03907465934753418, -0.04048885032534599, -0.013811401091516018, -0.0004212784697301686, -0.07372229546308517, 0.006033360958099365, 0.03181925415992737, 0.009707177989184856, -0.005898859351873398, -0.009968495927751064, 0.041933782398700714, 0.012097465805709362, 0.01850743032991886, 0.016416890546679497, -0.009645692072808743, 0.04669898375868797, -0.007751139812171459, -0.04651452228426933, 0.03317195549607277, 0.05254019796848297, -0.011797718703746796, -0.009599576704204082, 0.029544254764914513, 0.0008276656735688448, -0.022842228412628174, -0.02809932269155979, -0.054415538907051086, 0.034463174641132355, -0.01469526905566454, 0.0056144846603274345, -0.016170945018529892, 0.014457008801400661, 0.02777651883661747, -0.028821788728237152, 0.02408733032643795, 0.019752532243728638, 0.0034336356911808252, -0.004254096187651157, 0.02719239704310894, 0.0477135106921196, 0.022396450862288475, -0.019030066207051277, 0.004957347642630339, -0.036984119564294815, 0.0454692542552948, -0.08110067248344421, 0.00558374123647809, -0.058043237775564194, 0.0024440877605229616, -0.026884963735938072, 0.01154408697038889, -0.0029071576427668333, -0.007020987570285797, -0.05558377876877785, -0.019276011735200882, 0.03390979394316673, -0.001032780739478767, 0.01729307323694229, 0.007109374739229679, -0.025455404072999954, 0.004634543787688017, -0.0076934960670769215, -0.06449931859970093, 0.03928986191749573, 0.008070101030170918, -0.004815160296857357, 0.01733918860554695, -0.010629476048052311, -0.030820099636912346, 0.00742833549156785, 0.009591891430318356, 0.019875505939126015, 0.05884256213903427, 0.03560067340731621, 0.04079627990722656, 0.03716857731342316, 0.018384458497166634, 0.013281079940497875, 0.07409121096134186, -0.004008150193840265, 0.051248982548713684, 0.02646993100643158, 0.00801630038768053, 0.02809932269155979, 0.023195775225758553, 0.039597295224666595, -0.02935979515314102, -0.0044885133393108845, 0.0004087890265509486, 0.009638005867600441, -0.02255016751587391, 0.032341890037059784, 0.013972803018987179, -0.03218817338347435, 0.03769121319055557, -0.03615405037999153, 0.02607026882469654, -0.03701486065983772, 0.021673984825611115, 0.06013378128409386, 0.00670971255749464, -0.01944510079920292, 0.004972719121724367, 0.03470911830663681, 0.05380067229270935, 0.02152026817202568, 0.008838681504130363, -0.011766975745558739, -0.02872955985367298, 0.04334796965122223, -0.016232430934906006, 0.03615405037999153, -0.02089003287255764, 3.2664695027051494e-05, 0.056475333869457245, -0.05669053643941879, -0.0027668916154652834, -0.062009118497371674, 0.001665899413637817, -0.023656923323869705, -0.021489525213837624, -0.03889020159840584, 0.0076819672249257565, -0.08528175204992294, 0.007674281485378742, 0.018246114253997803, -0.026454558596014977, 0.001323880860581994, -0.01082930713891983, -0.014433952048420906, -0.05795101076364517, 0.017446789890527725, 0.0328645259141922, 0.005376224406063557, 0.0396280363202095, 0.035539187490940094, -0.045315537601709366, -0.02980557270348072, -0.014049661345779896, -0.029498139396309853, -0.002607411239296198, 0.01039890106767416, -0.019829390570521355, 0.025778207927942276, 0.03978175297379494, -0.032126687467098236, 0.0042925248853862286, 0.04780574142932892, -0.015832768753170967, -0.06388445198535919, 0.030651012435555458, 0.022227363660931587, -0.03191148489713669, 0.02201216109097004, 0.00209822622127831, -0.027069423347711563, -0.0063407933339476585, 0.009207600727677345, 0.0027419128455221653, -0.04703715816140175, -0.02696182206273079, -0.08694188296794891, 0.051525671035051346, 0.05290911719202995, 0.025040369480848312, -0.01724695786833763, 0.024287160485982895, -0.0023883655667304993, -0.019644930958747864, -0.014787498861551285, 0.009384374134242535, -0.01922989822924137, 0.011989864520728588, -0.0032876054756343365, 0.031096788123250008, 0.01102913822978735, -0.012151266448199749, -0.02030591107904911, 0.036123309284448624, 0.014687583781778812, 0.023841382935643196, 0.038920942693948746, -0.006329264957457781, 0.011813090182840824, -0.05426182225346565, 0.027299998328089714, 0.024364018812775612, -0.017754221335053444, 0.019798647612333298, 0.03298749774694443, -0.013919002376496792, 0.009953124448657036, 0.017139356583356857, 0.008431334048509598, -0.026393072679638863, 0.03529324010014534, -0.0039927782490849495, 0.04989628121256828, -0.01675506681203842, 0.022673141211271286, 0.009899323806166649, -0.0023595436941832304, 0.03011300414800644, -0.04297905042767525, 0.010560302995145321, -0.005376224406063557, -0.044147294014692307, 0.004407812375575304, 0.03344864770770073, -0.031542565673589706, 0.034647632390260696, 0.007040202151983976, -0.04470067098736763, -0.00780878309160471, -0.032710809260606766, 0.03839830681681633, -0.014918157830834389, -0.027991721406579018, -0.02485590986907482, 0.007151646539568901, 0.012789187952876091, -0.00222888495773077, -0.03879797086119652, 0.0024613807909190655, 0.03975101187825203, -0.023195775225758553, 0.06738918274641037, -0.016447633504867554, 0.0018417122773826122, 0.006260092370212078, 0.00028797771665267646, 0.015771282836794853, 0.031634796410799026, 0.0016995248151943088, -0.0020943833515048027, -0.00127488374710083, 0.007482136134058237, -0.014111148193478584, 0.021996788680553436, -0.0315118208527565, 0.04399357736110687, 0.004707559011876583, -0.0072438763454556465, 0.0018484373576939106, 0.012881417758762836, -0.014257177710533142, 7.091360748745501e-05, 5.311015047482215e-05, -0.013027448207139969, 0.00028821788146160543, -0.06243952363729477, -0.017170099541544914, -0.022089019417762756, -0.023072803393006325, -0.015148731879889965, -0.0011730467667803168, -0.0003129566030111164, -0.02133580856025219, 7.199442916316912e-05, -0.01172854658216238, -0.03799864649772644, 0.010329728946089745, -0.028345268219709396, -0.0024421662092208862, 0.018615033477544785, 0.021089863032102585, 0.07366080582141876, 0.013296451419591904, 0.05091080814599991, 0.015863511711359024, -0.008246874436736107, 0.0019464314682409167, 0.016539864242076874, 0.019614188000559807, 0.012935218401253223, -0.009422803297638893, -0.019199153408408165, 0.024241045117378235, 0.012935218401253223, 0.04045810550451279, 0.011129053309559822, 0.00891553983092308, -0.006947972346097231, 0.017093243077397346, -0.04925067350268364, -0.03695337474346161, 0.009799407795071602, 0.01981401816010475, 0.010437330231070518, -0.011805404908955097, -0.027838004752993584, -0.008362161926925182, -0.01190531998872757, 0.002463302109390497, -0.020367396995425224, -0.014426265843212605, 0.057920265942811966, 0.004304053727537394, -0.04510033503174782, 0.02999003231525421, 0.051740873605012894, -0.0024460090789943933, 0.005034205969423056, -0.006390751339495182, -0.030543409287929535, 0.017754221335053444, -0.0028226138092577457, -0.011559458449482918, -0.018077025189995766, 0.027084795758128166, -0.05281689018011093, 0.024317903444170952, -0.062101349234580994, -0.027023309841752052, 0.022258106619119644, -0.003677660133689642, -0.023165032267570496, 0.0006691458402201533, 0.0025805109180510044, 0.0033048985060304403, -0.01652449183166027, -0.00986089464277029, 0.032926011830568314, -0.011336570605635643, -0.014833614230155945, 0.006344636436551809, 0.005372381303459406, 0.023964356631040573, -0.023211147636175156, 0.016278546303510666, 0.001258551492355764, -0.003729539457708597, -0.02553226239979267, -0.014987329952418804, -0.013173478655517101, 0.008631165139377117, -0.014587667770683765, -0.005406967364251614, 0.015786655247211456, 0.0011326962849125266, 0.010675590485334396, -0.004807474557310343, -0.044454727321863174, 0.020152194425463676, 0.008362161926925182, -0.002632390009239316, -0.048143915832042694, 0.014103461988270283, -0.01456461101770401, -0.028191551566123962, -0.00841596256941557, 0.01019906997680664, -0.028206923976540565, 0.03249560669064522, -0.03904391825199127, 0.01246638409793377, 0.011267397552728653, 0.014280235394835472, -0.017861822620034218, 0.019644930958747864, -0.01746216043829918, -0.002113597933202982, -0.02128969505429268, -0.0003607527178246528, -0.023918241262435913, -0.001357506262138486, 0.03461689129471779, 0.03341790288686752, 0.0015784732531756163, -0.01526401937007904, -0.007332263048738241, 0.04423952475190163, -0.0034528502728790045, -0.031849998980760574, 0.018538175150752068, -0.027177024632692337, -0.029744086787104607, 0.02102837711572647, -0.027653545141220093, -0.02224273420870304, -0.003873648354783654, -0.007539779879152775, -0.006775041576474905, -0.013096620328724384, -0.008185387589037418, -0.02628547139465809, 0.016862668097019196, -0.020229052752256393, -0.004280996508896351, 0.01589425653219223, -0.015402363613247871, 0.011359627358615398, 0.00668665487319231, 0.03146570920944214, 0.028191551566123962, 0.013849830254912376, 0.017216214910149574, 0.039597295224666595, -0.019199153408408165, -0.005387753248214722, 0.029329052194952965, -0.012819931842386723, 0.012297296896576881, 0.021673984825611115, 0.023165032267570496, 0.02493276819586754, 0.015071874484419823, 0.013181164860725403, -0.02997465990483761, -0.0009434332023374736, -0.014211063273251057, 0.005257094278931618, -0.051248982548713684, 0.016124829649925232, 0.025993410497903824, 0.0016995248151943088, -0.032034456729888916, -0.0171086136251688, 0.006156334187835455, 0.0002728462568484247, 0.008246874436736107, 0.014787498861551285, 0.02175084315240383, 0.044854387640953064, -0.0023595436941832304, -0.002430637599900365, -0.041257429867982864, -0.0009155721636489034, -0.03043580800294876, -0.011175167746841908, -0.00013774413673672825, 0.02733074128627777, 0.004446241073310375, 0.01172854658216238, 0.014895100146532059, -0.01629391871392727, 0.04663749784231186, -0.009230658411979675, -0.016232430934906006, 0.01687803864479065, -0.002065561478957534, 0.0068788002245128155, 0.03729155287146568, -0.026408445090055466, 0.0007118982030078769, -0.0360003337264061, -0.04928141459822655, -0.01339636743068695, -0.017231587320566177, 0.009576519951224327, -0.013880573213100433, -0.044454727321863174, -0.01918378286063671, -0.024779051542282104, 0.03606182336807251, -0.0508800633251667, 0.03507803753018379, 0.026101011782884598, 0.006859585642814636, -0.06849594414234161, -0.03876722604036331, -0.014418580569326878, -0.01211283728480339, -0.018538175150752068, 0.003942820709198713, 0.032803039997816086, -0.03246486186981201, 0.03125050291419029, 0.038828711956739426, -0.005994932260364294, -0.029636485502123833, -0.0019031987758353353, -0.01298901904374361, 0.031450334936380386, 0.028376011177897453, -0.0308354701846838, -0.0041234372183680534, -0.0025881966575980186, -0.0033625420182943344, -0.00896165519952774, -0.005522254854440689, -0.005349324084818363, -0.020229052752256393, 0.040181417018175125, 0.00095400121062994, 0.03088158555328846, 0.00044313500984571874, -0.012635472230613232, 0.018661146983504295, -0.03178851306438446, 0.038552023470401764, 0.0076627531088888645, 0.00015635820454917848, -0.021458782255649567, 0.013734542764723301, -0.02854510024189949, -0.02313428930938244, -0.019829390570521355, 0.048605065792798996, -0.02182770147919655, -0.008308361284434795, -0.0023384077940136194, -0.01670895144343376, 0.001492968644015491, 0.038521282374858856, 0.027115538716316223, 0.044362496584653854, 0.04199526831507683, 0.02224273420870304, -0.003537394106388092, -0.012205067090690136, 0.019383613020181656, 0.06492972373962402, 0.08091621100902557, 0.011159796267747879, -0.013496282510459423, -0.019245268777012825, 0.00018457953410688788, 0.05533783510327339, -0.011252026073634624, 0.022273479029536247, -0.0006902818568050861, 0.016862668097019196, 0.025363173335790634, 0.016416890546679497, 0.010521874763071537, 0.03845979645848274, 0.01245101261883974, -0.022627025842666626, -0.006694340612739325, -0.012174323201179504, -0.013165793381631374, -0.04021215811371803, 0.05057263374328613, -0.027084795758128166, -0.0007921188371255994, -0.009169171564280987, 0.010099154897034168, 0.011067566461861134, 0.008070101030170918, 0.0373530387878418, -0.016724323853850365, 0.00634847953915596, -0.0032914483454078436, 0.003794868942350149, -0.014264863915741444, -0.003954349551349878, -0.0034451645333319902, -0.01381908729672432, 0.009000083431601524, 0.0034124997910112143, 0.005752828903496265, 0.021397296339273453, -0.01733918860554695, 0.018430573865771294, 0.0085543068125844, -0.01548690814524889, -0.00501883402466774, -0.04789796844124794, -0.016678208485245705, 0.008039357140660286, -0.006717398297041655, 0.037476010620594025, 0.013165793381631374, 0.03268006443977356, -0.010921536013484001, 0.027991721406579018, 0.02065945789217949, -0.008446705527603626, 0.009530404582619667, 0.011205911636352539, -0.02773040346801281, -0.03661520034074783, -0.018830236047506332, 0.018968580290675163, 0.010322043672204018, 0.03092770092189312, 0.013942060060799122, -0.004676815588027239, -0.020859289914369583, 0.0022192776668816805, -0.0009174935985356569, 0.004757516551762819, -0.0052263508550822735, 0.011267397552728653, -0.010575675405561924, -0.004669129848480225, -0.0414111465215683, -0.02322651818394661, -0.013173478655517101, 0.0096764350309968, 0.0030493452213704586, 0.03470911830663681, 0.01881486363708973, 0.025409288704395294, -0.005034205969423056, -0.0034067353699356318, 0.003969721030443907, -0.040857765823602676, 0.02179695852100849, -0.009799407795071602, 0.025563005357980728, 0.005975717678666115, 0.0414111465215683, -0.0010702491272240877, 0.005606798455119133, -0.021551012992858887, 0.02201216109097004, 0.003812161972746253, 0.00840059109032154, 0.01809239760041237, 0.030635640025138855, -0.027484457939863205, 0.011843834072351456, 0.054323308169841766, 0.0025555319152772427, -0.05091080814599991, -0.021504897624254227, -0.010675590485334396, 0.016017228364944458, 0.028191551566123962, 0.026393072679638863, 0.0008103726431727409, -0.010091468691825867, -0.0033471703063696623, -0.0011211675591766834, 0.01764662005007267, -0.013227279298007488, 0.004730616230517626, 0.005264780018478632, -0.0060218325816094875, 0.013135049492120743, -0.004822846036404371, 0.007051730994135141, -0.0034394001122564077, -0.05893479287624359, 0.004035050515085459, -0.05001925304532051, 0.013488597236573696, 0.017892565578222275, -0.04583817347884178, -0.003195375669747591, 0.008861739188432693, 0.02021368034183979, 0.013580827042460442, 0.034862834960222244, -0.017431417480111122, 0.030358951538801193, -0.06308513134717941, 0.016601350158452988, 0.012581671588122845, -0.008123901672661304, 0.0014881649985909462, 0.005675971042364836, -0.006183234509080648, -0.03793716058135033, 0.014572296291589737, -0.033294931054115295, 0.042118240147829056, -0.0015928841894492507, 0.016401519998908043, 0.0012393369106575847, -0.002130890963599086, -0.017800336703658104, -0.0378141850233078, 0.015110302716493607, -0.03366385027766228, 0.03667668625712395, 0.0022269636392593384, -0.03354087471961975, 0.02196604572236538, 0.0011240497697144747, 0.0016831924440339208, -0.01724695786833763, 0.07027904689311981, -0.01206672191619873, -0.017277700826525688, -0.007447550073266029, -0.005798943806439638, 0.0005846019485034049, 0.02035202644765377, -0.026715876534581184, -0.02457922138273716, 0.046883441507816315, -0.0012316510546952486, 0.008116215467453003, 0.006237035151571035, 0.025147970765829086, 0.011597887612879276, -0.02291908673942089, -0.018153883516788483, 0.04002770036458969, 0.03231114521622658, -0.022765370085835457, 0.0016601349925622344, -0.01580202579498291, -0.006509881466627121, -0.011913006193935871, -0.02327263355255127, -0.015832768753170967, -0.02345709316432476, -0.017185471951961517, 0.006198605988174677, 0.01580202579498291, 0.02056722901761532, -0.03307972848415375, -0.0006888407515361905, -0.02128969505429268, 0.007140117697417736, -0.026223985478281975, 0.014457008801400661, 0.030374322086572647, 0.005456925369799137, -0.03231114521622658, -0.01228961069136858, -0.0333256721496582, 0.01855354569852352, -0.026270098984241486, 0.0071900757029652596, 0.023195775225758553, -0.015025759115815163, -0.03609256446361542, -0.019644930958747864, 0.0018811021000146866, -0.023626180365681648, 0.01858428865671158, 0.025947295129299164, 0.051740873605012894, -0.01155177317559719, -0.039996955543756485, 0.007459078915417194, 0.030266720801591873, -0.0008733001886866987, 0.045407768338918686, -0.003581587690860033, 0.0009525601053610444, 0.0014708719681948423, 0.016309289261698723, 0.018922464922070503, -0.006148648448288441, -0.01062178984284401, 0.023779897019267082, 0.0015448478516191244, 0.005433867685496807, 0.02507111243903637, 0.01909155212342739, 0.011090624146163464, -0.023257261142134666, 0.014510809443891048, -0.004154180642217398, -0.015310133807361126, -0.002225042087957263, -0.040949996560811996, 0.02467145025730133, 0.030604897066950798, 0.030820099636912346, -0.012735387310385704, 0.0032837623730301857, -0.01451849564909935, 0.029098477214574814, 0.027991721406579018, -0.021089863032102585, -0.006171705666929483, -0.013165793381631374, 0.0014285999350249767, 0.009238343685865402, -0.024517735466361046, -0.03676891699433327, -0.021720100194215775, 0.05057263374328613, 0.0477135106921196, 0.020413512364029884, -0.014149576425552368, 0.001369034987874329, -0.01864577643573284, 0.0036046451423317194, -0.023779897019267082, -0.017907937988638878, -0.009976182132959366, -0.019276011735200882, -0.00836984720081091, -0.004899703897535801, -0.0035354727879166603, -0.028376011177897453, 0.028345268219709396, -0.012543242424726486, 0.02264239639043808, 0.012866046279668808, 0.014057346619665623, -0.008285303600132465, -0.015325506217777729, -0.02359543740749359, 0.0076512242667376995, -0.0005149492644704878, -0.057428374886512756, -0.017400674521923065, -0.00896165519952774, 0.019060809165239334, -0.011866890825331211, 0.008500506170094013, -0.004669129848480225, -0.025470774620771408, -0.019706416875123978, -0.02593192458152771, -0.02065945789217949, -0.024287160485982895, 0.012366469018161297, -0.005207136273384094, -0.0048190029338002205, -0.006844214163720608, -0.008854053914546967, -0.02156638354063034, -0.033110469579696655, 0.010798563249409199, 0.012328039854764938, -0.024148816242814064, 0.017277700826525688, 0.031634796410799026, -0.004769045393913984, -0.00026708192308433354, 0.0042925248853862286, -0.01701638475060463, 0.008769509382545948, 0.021627869457006454, -0.01287373248487711, 0.00853124912828207, 0.017861822620034218, 0.021120605990290642, -0.018691889941692352, 0.01112136710435152, 0.010560302995145321, -0.010106840170919895, 0.008769509382545948, -0.027346113696694374, -0.01764662005007267, -0.020198309794068336, 0.008830996230244637, 0.014203377068042755, -0.022135132923722267, 0.012658529914915562, -0.010406587272882462, -0.029006248340010643, -0.0007964420947246253, 0.006978715769946575, 0.0337560772895813, 0.017477532848715782, -0.009353631176054478, 0.010468073189258575, -0.0012278081849217415, 0.01114442478865385, 0.011559458449482918, 0.016693580895662308, -0.0193528700619936, 0.05524560436606407, 0.012404898181557655, 0.007674281485378742, 0.0007335145492106676, 0.025455404072999954, -0.02310354635119438, 0.016170945018529892, -0.016601350158452988, 0.045530740171670914, 0.008900168351829052, 0.023779897019267082, 0.017446789890527725, -0.0041349660605192184, 0.016954896971583366, 0.023564694449305534, -0.008123901672661304, -0.0055376263335347176, -0.010491130873560905, -0.003965877927839756, 0.008223816752433777, 0.015148731879889965, -0.008977026678621769, -0.02079780213534832, 0.0027207769453525543, 0.01188226230442524, -0.05902702361345291, 0.010744762606918812, -0.00041359267197549343, -0.018876349553465843, -0.022135132923722267, 0.03793716058135033, 0.004392440430819988, -0.031942225992679596, 0.0249942559748888, 0.01967567391693592, -0.0027438343968242407, 0.02808395028114319, 0.018338343128561974, -0.002715012524276972, 0.02808395028114319, 0.02511722780764103, 0.020244425162672997, 0.00019514752784743905, -0.03307972848415375, 0.003141575027257204, 0.05835067108273506, 0.026577532291412354, -0.01395743153989315, 0.00952271930873394, 0.013496282510459423, 0.008838681504130363, -0.009484290145337582, 0.05546080693602562, -0.00817001610994339, 0.00889248214662075, -0.031849998980760574, 0.0016678208485245705, 0.015202532522380352, 0.007835683412849903, 0.017954053357243538, -0.01152102928608656, -0.01564062386751175, -0.008000928908586502, 0.0019387456122785807, -0.006260092370212078, 0.021812329068779945, -0.0027822633273899555, -0.0014872043393552303, -0.027346113696694374, -0.02196604572236538, -0.00929983053356409, 0.0013392524560913444, -0.02268851175904274, 0.01594037003815174, -0.027668917551636696, -0.016693580895662308, -0.012258867733180523, 0.020106079056859016, -0.008485134690999985, -0.019383613020181656, -0.0039927782490849495, 0.008154644630849361, -0.011913006193935871, 0.007459078915417194, 0.035416215658187866, 0.006156334187835455, 0.01850743032991886, 0.02313428930938244, -0.03729155287146568, -0.0032299617305397987, -0.005449239630252123, 0.04586891457438469, 0.0026054896879941225, 0.006552153266966343, 0.0007930795545689762, 0.007143960800021887, -0.0014420502120628953, -0.02516334317624569, 0.013173478655517101, -0.010045354254543781, 0.0002963840670417994, -0.0028360639698803425, -0.020813174545764923, 0.015679053962230682, 0.009561148472130299, -0.020244425162672997, 0.02539391815662384, -0.011444171890616417, -0.0014939294196665287, -0.0021481839939951897, 0.014257177710533142, -0.015740539878606796, -0.030466552823781967, -0.013503968715667725, 0.005499197170138359, 0.014672212302684784, -0.028698815032839775, 0.004623014945536852, 0.013711486011743546, 0.026408445090055466, -0.039505064487457275, -0.031942225992679596, 0.03928986191749573, -0.009000083431601524, 9.877467527985573e-05, 0.02733074128627777, -0.016370775178074837, -0.028191551566123962, 0.0014036211650818586, 0.04190303757786751, -0.04808242991566658, 0.022980572655797005, -0.0029744086787104607, 0.000991469481959939, 0.04033513367176056, -0.03160405158996582, -0.01697026938199997, 0.007566680200397968, 0.02002922259271145, -0.0013949745334684849, 0.0025805109180510044, -0.011044509708881378, 0.058904051780700684, -0.001545808627270162, -0.012258867733180523, -0.034370943903923035, -0.044546958059072495, 0.009868580847978592, 0.008677279576659203, -0.030420437455177307, -0.020859289914369583, 0.01692415401339531, -0.024840539321303368, 0.01139037124812603, 0.023257261142134666, -0.022473309189081192, 0.013050505891442299, 0.005176393315196037, -0.006540624424815178, -0.012573985382914543, -0.025670606642961502, -0.01492584403604269, -2.1060921426396817e-05, 0.012666215188801289, -0.014795185066759586, -0.012458698824048042, -0.030850842595100403, -0.010514188557863235, -0.008700337260961533, 0.02196604572236538, 0.008654222823679447, -0.005529940593987703, 0.022396450862288475, 0.0003571499837562442, -0.006805785000324249, 0.021858444437384605, 0.028529727831482887, 0.04070405289530754, 0.020920775830745697, 0.015425421297550201, -0.013534711673855782, -0.0027092481032013893, 0.013734542764723301, -0.02817618101835251, -0.03134273365139961, 0.023795269429683685, 0.02813006564974785, -0.0008771431166678667, -0.03483209386467934, -0.009007769636809826, -0.03772195801138878, -0.027207769453525543, -0.019260641187429428, -0.013165793381631374, -0.030374322086572647, 0.03134273365139961, -0.0007258286932483315, 0.018830236047506332, 0.01156714465469122, 0.01764662005007267, 0.0015323584666475654, -0.02494814060628414, -0.022365707904100418, 0.0036699743941426277, -0.002520945854485035, 0.015271704643964767, 0.009130742400884628, -0.01064484752714634, -0.026039525866508484, 0.00259972526691854, 0.009369002655148506, -0.013488597236573696, 0.0024037372786551714, -0.005748986266553402, 0.042425673454999924, 0.033694591373205185, 0.012904475443065166, -0.012328039854764938, 0.027761146426200867, 0.0017417967319488525, 0.025578375905752182, -0.052202023565769196, 0.03627702593803406, -0.020244425162672997, 0.0028149280697107315, 0.016124829649925232, 0.0011240497697144747, 0.006963344290852547, -0.015786655247211456, -0.0008070101030170918, -0.01318885013461113, 0.01886097900569439, -0.02224273420870304, 0.04826688766479492, 0.01022212766110897, 0.003372149309143424, -0.032218918204307556, 0.030543409287929535, 0.000530320918187499, 0.0012451012153178453, 0.017385302111506462, 0.004446241073310375, 0.0124894417822361, -0.00010784152254927903, 0.004561528563499451, 0.008830996230244637, -0.019967734813690186, -0.05466148257255554, 0.006544467527419329, 0.009491975419223309, -0.004046579357236624, 0.010714019648730755, -0.013288766145706177, 0.015356249175965786, 0.005003462545573711, -0.028376011177897453, 0.016124829649925232, -0.017354559153318405, -0.027930235490202904, -0.02390287071466446, -0.007020987570285797, -0.048420604318380356, 0.05604492872953415, 0.015271704643964767, -0.011989864520728588, 0.00556068355217576, -0.012858361005783081, 0.022442566230893135, 0.02070557326078415, -0.03137347847223282, -0.010076097212731838, 0.025639863684773445, -0.031450334936380386, -0.006732769776135683, 0.005187922157347202, -0.008592735975980759, -0.03255709260702133, 0.016370775178074837, -0.008316046558320522, 0.006479138042777777, 0.02922145090997219, -0.023518579080700874, -0.006014146376401186, 0.012743073515594006, -0.015094931237399578, 0.042118240147829056, -0.026131754741072655, -0.0014593432424589992, -0.0038313765544444323, 0.02462533675134182, 0.02822229638695717, 0.0008363122469745576, -0.00853124912828207, 0.018568918108940125, 0.002513259882107377, -0.007747296709567308, 0.019214525818824768, 0.014141891151666641, 0.012720015831291676, -0.033879052847623825, -0.001936824177391827, 0.0007637774106115103, -0.018753377720713615, -0.032249659299850464, 0.02250405214726925, 0.020582599565386772, -0.006502195727080107, -0.011236654594540596, 0.009407431818544865, 0.012443327344954014, 0.013219594024121761, 0.017185471951961517, -0.012074408121407032, -0.003620016621425748, -0.022519424557685852, -0.014387836679816246, -0.0056990282610058784, -0.03148107975721359, -0.008023985661566257, 0.0018657305045053363, -0.0028360639698803425, 0.023472465574741364, 0.007908699102699757, 0.008154644630849361, 0.020336654037237167, -0.04291756451129913, -0.012704644352197647, 0.02686959318816662, 0.0012249259743839502, 0.01629391871392727, -0.013450168073177338, -0.03799864649772644, -0.02457922138273716, 0.008408276364207268, 0.030143748968839645, -0.02660827524960041, -4.998778968001716e-05, 0.0024287160485982895, 0.012720015831291676, 0.004288682248443365, -0.0005754750454798341, -0.011421114206314087, -0.026531416922807693, 0.021135978400707245, -0.032926011830568314, -0.04669898375868797, -0.021305065602064133, 0.008454391732811928, -0.0052263508550822735, 0.009807094000279903, 0.007847212255001068, -0.0166628360748291, 0.026054896414279938, 0.0034720648545771837, 0.0024440877605229616, -0.015133360400795937], "id": 84}, {"title": "Rhodes Scholarship", "text": "The Rhodes Scholarship, named after Cecil John Rhodes, is an international postgraduate award for selected foreign students to study at the University of Oxford. It describes itself as \"perhaps the most prestigious scholarship\" in the world.", "vector": [0.02137630805373192, -0.002015131525695324, -0.025521298870444298, 0.02288626879453659, -0.015121813863515854, -0.031146641820669174, 0.047341711819171906, -0.022560590878129005, -0.010362476110458374, 0.041894011199474335, -0.05181238055229187, 0.0260098148137331, 0.0006805001175962389, -0.01773463748395443, 0.030939392745494843, 0.05344076827168465, -0.002429630607366562, 0.00839360523968935, -0.06199721619486809, 0.018075119704008102, -0.014329824596643448, -0.007101997267454863, -0.008252971805632114, -0.03541006147861481, 0.020384471863508224, 0.006809627171605825, 0.011983463540673256, -0.03342638909816742, -0.06809627264738083, -0.016180265694856644, -0.007734848186373711, 0.01946665160357952, 0.007131604012101889, -0.018933724611997604, 0.009548281319439411, -0.029592271894216537, 0.013441612012684345, -0.010925010778009892, 0.04227890446782112, -0.008334391750395298, 0.04233811795711517, -0.017349746078252792, 0.019496258348226547, 0.015706554055213928, 0.01373028103262186, -0.01373768225312233, -0.04500275477766991, -0.004244914278388023, 0.012627417221665382, 0.0011435733176767826, -0.0014026351273059845, -0.02333037555217743, 0.010776975192129612, -0.003349300241097808, -0.02383369579911232, 0.0020947004668414593, 0.02565453015267849, 0.0303768590092659, -0.0063433158211410046, -0.03792666271328926, -0.037541769444942474, 0.017201710492372513, -0.009318826720118523, -0.03917016088962555, 0.05646069347858429, -0.01065114513039589, 0.030643321573734283, 0.01369327213615179, -0.003371505532413721, 0.009644504636526108, -0.004615002777427435, 0.04035444185137749, 0.030909786000847816, -0.010340270586311817, -0.03656473755836487, 0.01485534943640232, -0.011798419058322906, -0.022205306217074394, -0.00861565861850977, 0.02130229026079178, 0.034403420984745026, 0.014588885940611362, 0.001471101539209485, 0.0031161445658653975, -0.018726475536823273, -0.01714249700307846, 0.030495287850499153, -0.04766739159822464, 0.04127226397395134, 0.0159878209233284, -0.015573320910334587, 0.04627585783600807, 0.011132259853184223, -0.0034011127427220345, 0.017246121540665627, -0.053529590368270874, 0.028008293360471725, 0.0031809101346880198, 0.026335492730140686, 0.025846976786851883, 0.01181322243064642, -0.018001101911067963, -0.03647591546177864, 0.047341711819171906, 0.008512034080922604, -0.02005879394710064, -0.029118558391928673, -0.024647889658808708, 0.03780823573470116, 0.04695682227611542, -0.0068873455747962, 0.017912279814481735, -0.025121603161096573, 0.012849470600485802, -0.00432633375748992, 0.036949630826711655, 0.026069030165672302, 0.040798548609018326, -0.028008293360471725, -0.0199847761541605, -0.04941420629620552, 0.006987269502133131, -0.0038785268552601337, -0.01808992214500904, -0.03366324305534363, -0.052345309406518936, 0.009755531325936317, 0.09717041999101639, 0.013204755261540413, 0.026779599487781525, 0.025980208069086075, 0.007623821962624788, -0.020014382898807526, -0.010910207405686378, -0.008438016287982464, 0.0520196296274662, 0.019244598224759102, 0.024070551618933678, -0.04571332409977913, 0.02855602279305458, -0.052878234535455704, -0.02978471666574478, -0.006498753093183041, -0.012960497289896011, 0.005821491125971079, -0.027371739968657494, 0.005436599254608154, -0.0207841657102108, 0.011346911080181599, -0.007079791743308306, 0.015588125213980675, -0.015440089628100395, -0.05945100635290146, 0.024248193949460983, -0.059628646820783615, 0.03597259521484375, -0.04411454126238823, -0.023093517869710922, 0.037393733859062195, 0.0031957137398421764, -0.024943960830569267, -0.00594362011179328, 0.014899760484695435, 0.029991967603564262, -0.006554265972226858, -0.013404603116214275, 0.0007702465518377721, 0.0031716579105705023, -0.013271370902657509, 0.015736160799860954, -0.012397962622344494, -0.024322211742401123, -7.62729105190374e-05, -0.029473843052983284, -0.036446310579776764, -0.002244586357846856, 0.04257497191429138, -0.004648310597985983, 0.009126381017267704, -0.037097666412591934, -0.01576576754450798, 0.06241171434521675, 0.04482511058449745, 0.0055883354507386684, -0.008008713833987713, -0.015055197291076183, 0.05569090694189072, 0.020947005599737167, -0.05394408851861954, -0.03277503326535225, 0.03170917555689812, -0.03896291181445122, 0.013560039922595024, 0.03218289092183113, 0.0607537180185318, 0.0026442818343639374, -0.03096899949014187, 0.02266421541571617, -0.00501469848677516, 0.022146092727780342, 0.06614220142364502, 0.01104343868792057, 0.021405914798378944, 0.04962145909667015, 0.0007623821729794145, 0.020399274304509163, 0.062234070152044296, -0.017823459580540657, -0.005477308761328459, -0.008489828556776047, 0.00523305032402277, -0.049887921661138535, 0.0004792645340785384, -0.005632746033370495, -0.028245149180293083, 0.0034973355941474438, -0.021169058978557587, -0.00792729388922453, -0.018430404365062714, 0.02333037555217743, -0.015107009559869766, -0.043552007526159286, 0.005854798946529627, 0.004341137129813433, 0.014374234713613987, 0.0025369562208652496, 0.017260923981666565, -0.016106247901916504, 0.009555683471262455, -0.010288458317518234, -0.01626908779144287, 0.023271160200238228, -0.0038785268552601337, 0.03612063080072403, -0.019140973687171936, 0.05237491428852081, 0.020813774317502975, -0.02121346816420555, 0.003602810902521014, 0.01946665160357952, -0.002995865885168314, 0.031797997653484344, 0.020295649766921997, -0.03253817558288574, 0.026069030165672302, 0.01050310954451561, -0.058829259127378464, -0.019140973687171936, 0.036298274993896484, -0.033248744904994965, -0.0066171810030937195, -0.005044305231422186, -0.04757856950163841, 0.04737132042646408, 0.0017616209806874394, 0.031946033239364624, -0.004078374709933996, -0.04707524925470352, 0.022856662049889565, -0.05844436585903168, 0.03395931422710419, -0.015218036249279976, 0.0063285124488174915, -0.0045964983291924, -0.05296705663204193, 0.054388195276260376, -0.021524343639612198, -0.047045640647411346, 0.03576534613966942, -0.04802267625927925, -0.01729053258895874, -0.054240159690380096, 0.04041365534067154, -0.0014562979340553284, 0.006802225485444069, 0.012212918139994144, 0.008326989598572254, -0.06054646894335747, -0.005340375937521458, 0.032005246728658676, 0.024011338129639626, -0.06211564317345619, 0.011939052492380142, 0.0036453711800277233, 0.02282705530524254, -0.0047778417356312275, -0.03191642835736275, 0.013486022129654884, 0.045150790363550186, -0.006087954621762037, -0.03697923570871353, -0.0009205949609167874, 0.02113945223391056, 0.009511272422969341, -0.010850992985069752, -0.01634310558438301, -0.04663114249706268, -0.013523031026124954, -0.011679991148412228, 0.0018088072538375854, -0.004492873791605234, 0.0559573695063591, -0.0471048578619957, 0.0027775138150900602, 0.0028348774649202824, 0.011605973355472088, -0.0027016454841941595, -0.02922218292951584, 0.010925010778009892, 0.005988030694425106, 0.017334941774606705, -0.025772958993911743, 0.06708963215351105, -0.003963646944612265, -0.003556549781933427, -0.04201243817806244, 0.0007087193662300706, 0.029103754088282585, 0.09083450585603714, -0.035854168236255646, -0.024440640583634377, -0.010843590833246708, 0.0071686129085719585, -0.043848078697919846, 0.05122023820877075, -0.0705832690000534, 0.01933342032134533, -0.03387049213051796, -0.004922176245599985, 0.004082075320184231, 0.01518842950463295, -0.02979952096939087, 0.019585080444812775, -0.02282705530524254, 0.01723131723701954, -0.00527005922049284, 0.030998608097434044, 0.04372964799404144, -0.012975300662219524, 0.006672694347798824, 0.00941505003720522, -0.006491350941359997, 0.025906190276145935, 0.03952544555068016, 0.014004146680235863, -0.001432242221198976, 0.054684266448020935, 0.023167535662651062, 0.06856998801231384, -0.037156879901885986, 0.0005505065200850368, 0.05166434496641159, -0.021095041185617447, -0.01122848317027092, 0.014263208024203777, -0.01766061969101429, 0.01446305587887764, -0.044795505702495575, 0.012960497289896011, 0.04627585783600807, 0.008719283156096935, -0.004256017040461302, -0.01933342032134533, 0.02130229026079178, -0.010236646048724651, -0.006613480392843485, 0.0171572994440794, 0.05675676092505455, 0.021983252838253975, 0.020473292097449303, -0.052730198949575424, 0.049088530242443085, 0.04470668360590935, -0.04976949095726013, 0.011176670901477337, -0.018874509260058403, -0.028437595814466476, -0.01133950985968113, -0.05696401372551918, -0.006842934992164373, 0.01708328165113926, 0.004093178082257509, 0.009170791134238243, 0.06418813765048981, -0.046187035739421844, -0.009585290215909481, 0.03641670197248459, -0.0025129003915935755, -0.01634310558438301, 0.02855602279305458, -0.01962949149310589, 0.0319756418466568, 0.06300385296344757, 0.0055698310025036335, -0.003826714353635907, -0.016683585941791534, -0.037097666412591934, 0.03173878416419029, -0.019066955894231796, 0.03366324305534363, -0.044292185455560684, -0.023345177993178368, -0.037097666412591934, 0.041094619780778885, 0.061523500829935074, -0.04361122101545334, -0.029903145506978035, -0.052345309406518936, -0.001075106905773282, 0.004851859528571367, -0.03552848845720291, 0.027934275567531586, -0.015321660786867142, 0.03387049213051796, 0.020236436277627945, 0.03925898298621178, 0.047193676233291626, -0.002557310974225402, -0.02805270254611969, 0.012768050655722618, 0.0033048896584659815, -0.028067506849765778, 0.006210084073245525, 0.03022882342338562, 0.002842279151082039, 0.021746397018432617, -0.0456245020031929, -0.014485261403024197, -0.06170114502310753, 0.006746712140738964, -0.025447281077504158, 0.04180518910288811, 0.005802986677736044, 0.060280002653598785, -0.012190712615847588, -0.010362476110458374, -0.01911136694252491, 0.0023981730919331312, 0.02028084546327591, 0.07757053524255753, -0.00617677578702569, -0.04926617071032524, -0.036239057779312134, -0.04097619280219078, -0.05382566154003143, 0.02834877371788025, -0.05252294987440109, -0.0038896293845027685, 0.028881700709462166, 0.0019152075983583927, 0.016165463253855705, -0.04461786150932312, -0.025595316663384438, -0.013486022129654884, 0.009614897891879082, -0.049384601414203644, -0.038252342492341995, 0.005251554772257805, -0.0043818471021950245, 0.014507466927170753, 0.013256567530333996, 0.07247811555862427, 0.04216047376394272, -0.08100495487451553, -0.002559161512181163, 0.03241974860429764, -0.006247092969715595, -0.046483106911182404, 0.009563085623085499, 0.0352916345000267, -0.04746014252305031, -0.002220530528575182, -0.051841989159584045, 0.023730071261525154, 0.02812672033905983, 0.058829259127378464, 0.07561647146940231, -0.003658324247226119, 0.01816393993794918, -0.0030846870504319668, 0.012227721512317657, -0.03662395104765892, 0.008593453094363213, 0.02210168167948723, -0.0043670437298715115, -0.03617984429001808, 0.00015775019710417837, 0.04257497191429138, -0.04106501117348671, 0.027194097638130188, 0.016594765707850456, 0.00482965400442481, 0.019214991480112076, -0.027194097638130188, 0.012249927036464214, 0.0013138139620423317, 0.018223155289888382, -0.007257434073835611, -0.005740071646869183, 0.018548833206295967, 0.004311530385166407, 0.03182760626077652, 0.005969526246190071, -0.009740727953612804, -0.05107220262289047, 0.037393733859062195, 0.020961808040738106, 0.00626559741795063, -0.010925010778009892, 0.010118218138813972, 0.058533187955617905, 0.0480818897485733, -0.015247643925249577, 0.023211946710944176, 0.026542741805315018, 0.0072204251773655415, -0.0017468173755332828, 0.009799941442906857, 0.020887792110443115, -0.017423763871192932, 0.003373356070369482, 0.03973269462585449, -0.04728249832987785, -0.022471770644187927, -0.0008026292780414224, -0.014337225817143917, -0.010258851572871208, 0.0047630383633077145, -0.014085565693676472, 0.0022889969404786825, -0.012338748201727867, 0.018119528889656067, 0.03395931422710419, -0.009585290215909481, -0.009215202182531357, 0.07076090574264526, 0.0223829485476017, -0.019348222762346268, 0.008164150640368462, -0.025388065725564957, 0.009481665678322315, 0.03132428601384163, -0.0019300112035125494, -0.028881700709462166, 0.022146092727780342, 0.0006157346069812775, 0.017838262021541595, -0.022782644256949425, -0.018696866929531097, 0.004337436519563198, 0.042101260274648666, -0.04526921734213829, -0.051486704498529434, -0.004300427623093128, 0.0009293846087530255, -0.0003573666326701641, -0.04482511058449745, -0.027593793347477913, -0.016328301280736923, -0.017705030739307404, 0.03493634983897209, -0.009067166596651077, 0.0002391696471022442, -7.89329205872491e-05, 0.008482427336275578, 0.023093517869710922, 0.02411496266722679, 0.007423974107950926, -0.010843590833246708, -0.0392293743789196, -0.013019710779190063, 0.015018188394606113, -0.003256778232753277, -0.013012309558689594, 0.006239690817892551, -0.03073214367032051, 0.021613163873553276, -0.0020650934893637896, -0.012242525815963745, 0.009489067830145359, -0.038548409938812256, -0.011931651271879673, -0.0044151549227535725, -0.013567442074418068, -0.01643192581832409, -0.0006629208801314235, -0.016032230108976364, -0.007227827329188585, 0.06685277819633484, -0.04645350202918053, -0.02863004058599472, -0.006372923031449318, -0.01507740281522274, 0.0010621538385748863, -0.01700926385819912, 0.03117625042796135, 0.01096942089498043, 0.008800703100860119, 0.0036490720231086016, 0.012812461704015732, 0.0029459039214998484, 0.007009475026279688, -0.0017616209806874394, 0.018918920308351517, -0.00644694035872817, 0.021820414811372757, 0.009999789297580719, -0.023300766944885254, 0.0023630147334188223, 0.01925940252840519, 0.017053674906492233, 0.0010741816367954016, -0.01391532551497221, 0.03541006147861481, -0.01569174975156784, 0.0091929966583848, -0.004067271947860718, 0.04600939527153969, -0.009163389913737774, 0.04674956947565079, 0.00348808360286057, 0.019096562638878822, -0.005973227322101593, -0.0013221409171819687, 0.036801595240831375, 0.01376728992909193, 0.003371505532413721, 0.019170580431818962, 0.018519224599003792, 0.0014655501581728458, -0.011620776727795601, -0.01771983504295349, -0.018489617854356766, 0.012087088078260422, -0.01569174975156784, -0.008260373957455158, 0.027416151016950607, 0.04026562348008156, 0.011420928873121738, -0.028023095801472664, 0.02565453015267849, 0.03973269462585449, 0.02325635775923729, 0.014685109257698059, 0.0005259881727397442, 0.000936786353122443, 0.02948864735662937, 0.0471048578619957, 0.07052405178546906, -0.02113945223391056, -0.017246121540665627, 0.01585458777844906, 0.01289388071745634, 0.01315294299274683, 0.0036860809195786715, -0.0058103883638978004, -0.04725288972258568, -0.015750963240861893, -0.013552638702094555, 0.018785689026117325, -0.01808992214500904, -0.028363578021526337, -0.015469696372747421, 0.020236436277627945, 0.03313031792640686, -0.01093241199851036, -0.01911136694252491, 0.008060526102781296, -0.004022861365228891, -0.024381425231695175, -0.0024777420330792665, -0.022723430767655373, -0.028511613607406616, 0.0017477426445111632, 0.021050630137324333, -0.017853066325187683, -0.06531320512294769, 0.004992492962628603, -0.03700884431600571, 0.040443263947963715, 0.01250158715993166, -0.06170114502310753, 0.011872436851263046, -0.05800025910139084, 0.014292815700173378, 0.006902149412781, 0.013197354041039944, 0.03831155598163605, -0.046335071325302124, 0.00904496107250452, -0.008090132847428322, 0.018489617854356766, -0.044440221041440964, 0.009666710160672665, -0.008297382853925228, 0.04754896089434624, 0.029340611770749092, -0.04586135968565941, -0.06448420882225037, -0.02740134857594967, -0.03902212530374527, -0.0030846870504319668, -0.0009057914721779525, 0.021924039348959923, 0.003132798708975315, 0.0673857033252716, 0.022175699472427368, 0.01968870498239994, -0.02994755655527115, -0.0028200738597661257, -0.01860804669559002, -0.006968765053898096, -0.025254834443330765, -0.0327158160507679, 0.005277460906654596, -0.02929620072245598, 0.0006333138444460928, -0.010081209242343903, -0.005384786520153284, 0.04026562348008156, 0.024159373715519905, -0.007398067973554134, 0.0034732799977064133, -0.0008780347998254001, 0.020310454070568085, -0.018060315400362015, -0.005162733606994152, 0.016091445460915565, 0.02137630805373192, 0.0053958892822265625, 0.0335744209587574, 0.03446263447403908, -0.02609863691031933, 0.008053123950958252, 0.03612063080072403, 0.01714249700307846, 2.4605098587926477e-05, -0.01261261384934187, -0.00430412869900465, 0.013967137783765793, -0.020695345476269722, 0.0004549774748738855, -0.001744041801430285, 0.03277503326535225, 0.01983674056828022, 0.005629044957458973, 0.011783615685999393, -0.01723131723701954, 0.010384681634604931, -0.0029921650420874357, 0.04118344187736511, 7.72559578763321e-05, -0.004429958760738373, -0.02476631850004196, -0.007838472723960876, -0.01391532551497221, 0.003993254154920578, -0.029991967603564262, -0.018356386572122574, 0.015232839621603489, 0.004270820412784815, 0.012257329188287258, -0.0033011888153851032, -0.0007831996772438288, 0.026394708082079887, 0.021257879212498665, -0.01656515896320343, 0.014026351273059845, 0.007398067973554134, -0.0015293904580175877, 0.009962780401110649, 0.001509960857219994, 0.022146092727780342, -0.03458106517791748, -0.02753457985818386, 0.018489617854356766, 0.037897054105997086, -0.021243076771497726, 0.03771941363811493, -0.024958763271570206, -0.01365626323968172, 0.03395931422710419, 0.0019004041096195579, -0.007949499413371086, -0.006639386527240276, -0.009873959235846996, -0.026054225862026215, 0.035498883575201035, -0.025269638746976852, -0.04381847009062767, -0.03925898298621178, -0.021317094564437866, 0.01496637612581253, 0.01504039391875267, 0.012198114767670631, -0.02195364609360695, 0.027889864519238472, -0.04971027746796608, -0.016032230108976364, -0.027282919734716415, 0.0038341162726283073, -0.041449904441833496, 0.005573531612753868, 0.043640829622745514, 0.016594765707850456, 0.01771983504295349, 0.013086327351629734, 0.0048111495561897755, -0.0504208467900753, 0.0043818471021950245, 0.002736804075539112, 0.005010997410863638, 0.013278773054480553, 0.019969971850514412, 0.0017209112411364913, 0.02492915652692318, 0.009074568748474121, -0.05782261863350868, 0.027445757761597633, 0.014973778277635574, -0.025980208069086075, -0.037245698273181915, -0.012161105871200562, 0.02448505163192749, -0.042249295860528946, 0.024144569411873817, -0.018652457743883133, 0.025832172483205795, -0.016816819086670876, 0.014411243610084057, 0.008660069666802883, -0.0032826843671500683, -0.027445757761597633, -0.006117561832070351, 0.034906741231679916, 0.04337436333298683, 0.015484499745070934, 0.0010945365065708756, -0.0034344205632805824, -0.011324706487357616, 0.02156875468790531, -0.023670855909585953, -0.02065093442797661, -0.048585209995508194, -0.055039551109075546, 0.027223704382777214, 0.007801464293152094, -0.0015136617003008723, 0.03771941363811493, -0.03908133879303932, 0.0027997191064059734, 0.050687313079833984, 0.015810178592801094, 0.024292604997754097, -0.023804089054465294, -0.005203443579375744, 0.04272300750017166, -0.04426257684826851, -0.04577253758907318, -0.014403841458261013, 0.026261474937200546, 0.0005107220495119691, 0.0010741816367954016, -0.007764455396682024, 0.0009770335163921118, 0.01649114117026329, -0.00849723070859909, -0.009644504636526108, -0.01692044362425804, -0.03167957067489624, 0.0003996955056209117, -0.008408409543335438, -0.033396780490875244, -0.029118558391928673, 0.01948145590722561, -0.006698600482195616, -0.009000550955533981, -0.01056972611695528, 0.045950181782245636, 0.0024037244729697704, -0.03058410808444023, 0.003654623404145241, -0.0007281489670276642, -0.03102821484208107, 0.032745424658060074, -0.00659497594460845, -0.01823795773088932, 0.05625344067811966, -0.018371189013123512, -0.020769363269209862, -0.01046610064804554, -0.022042466327548027, 0.004973988514393568, 0.017823459580540657, -0.0029051941819489002, 0.04876285046339035, -0.038696445524692535, 0.02281225100159645, -0.015588125213980675, 0.0004299964930396527, 0.024618282914161682, 0.0056031388230621815, 0.0031883118208497763, -0.022279324010014534, -0.0062878024764359, -0.024692300707101822, 0.05326312780380249, -0.004685319494456053, 0.02652793936431408, 0.00655796704813838, -0.012671828269958496, -0.009814745746552944, 0.020828576758503914, 0.010340270586311817, 0.020221631973981857, -0.007261135149747133, 0.025624923408031464, -0.048585209995508194, -0.004918475169688463, -0.0172165147960186, -0.001686678035184741, 0.04227890446782112, -0.03943662345409393, 0.014470458030700684, 0.0343145988881588, 0.01533646509051323, -0.008304784074425697, -0.012072284705936909, 0.006165673490613699, -0.003710136516019702, 0.00492587685585022, 0.0159878209233284, 0.03096899949014187, 0.037245698273181915, 0.010850992985069752, -0.03890369459986687, 0.057941045612096786, -0.008978345431387424, -0.017112888395786285, 0.04680878669023514, 0.0001761389576131478, -0.02338958904147148, -0.005255255848169327, -0.024588676169514656, -0.03372245654463768, -0.0009173566941171885, -0.047993067651987076, 0.014566680416464806, 0.0036638753954321146, -0.018134333193302155, -0.056579120457172394, 0.010436493903398514, -0.013056719675660133, -0.01307892519980669, -0.010236646048724651, 0.03508438542485237, 0.0009964631171897054, 0.05012477934360504, 0.012198114767670631, -0.0018393395002931356, 0.013685869984328747, 0.0034991861321032047, 0.021331897005438805, 0.007324050180613995, -0.06679356098175049, -0.0248403362929821, 0.007224126253277063, 0.009622299112379551, -0.03413695842027664, 0.002035486279055476, -0.007146407850086689, 0.019895954057574272, -0.012220320291817188, 0.04192361608147621, 0.0068244305439293385, -0.017482977360486984, 0.025091996416449547, -0.00045012004557065666, 0.032094068825244904, 0.05059849098324776, -0.052789416164159775, 0.028156328946352005, -0.014581484720110893, 0.013959735631942749, -0.00753870140761137, 0.03327835351228714, 0.025624923408031464, 0.013663665391504765, -0.0159286055713892, 0.011687392368912697, 0.010880599729716778, 0.002919997787103057, -0.007623821962624788, -0.026631563901901245, -0.013900521211326122, 0.027090473100543022, -0.016772408038377762, -0.008993148803710938, -0.024011338129639626, -0.023345177993178368, -0.03831155598163605, -0.013463817536830902, -0.004022861365228891, -0.06975426524877548, -0.052078843116760254, 0.05551326647400856, 0.004851859528571367, 0.024366622790694237, -0.0057437727227807045, 0.011517152190208435, -0.00528486305847764, 0.027786239981651306, -0.0336928516626358, -0.047489747405052185, 0.016298694536089897, -0.04926617071032524, 0.014307619072496891, -0.011724401265382767, -0.025254834443330765, -0.02050289884209633, -0.013019710779190063, -0.010747368447482586, -0.005421795416623354, 0.016106247901916504, -0.024647889658808708, 0.03407774493098259, 0.016609568148851395, 0.0038304151967167854, 0.005599438212811947, 0.004011758603155613, -0.007364759687334299, -0.02137630805373192, -0.009533477947115898, -0.009000550955533981, -0.03493634983897209, -0.01392272673547268, 0.003299338510259986, -0.006643087603151798, -0.001346196630038321, 0.041094619780778885, -0.010999028570950031, 0.007298144046217203, 0.0041412897408008575, -0.00666899373754859, -0.0031957137398421764, -0.014744323678314686, 0.017468174919486046, -0.00904496107250452, -0.031294677406549454, -0.037245698273181915, 0.059687864035367966, 0.01195385679602623, -0.003845218801870942, -0.004996194038540125, -0.03392970934510231, -0.04746014252305031, -0.027919471263885498, 0.003223470179364085, 0.012220320291817188, 0.001772723626345396, -0.03422577679157257, -0.0312354639172554, -0.0103920828551054, -0.019925560802221298, 0.01628389023244381, -0.0036657259333878756, -0.027519775554537773, 0.005059109069406986, 0.05610540509223938, 0.007897687144577503, -0.012346150353550911, 0.046838391572237015, -0.02179080620408058, -0.011739205569028854, -0.010133021511137486, 0.032005246728658676, 0.008682274259626865, 0.02825995348393917, 0.03212367743253708, -0.008660069666802883, 0.00789028499275446, -0.0004059407510794699, 0.035350847989320755, -0.014085565693676472, -0.01663917675614357, 0.02993275225162506, -0.00038003455847501755, -0.0019503660732880235, -0.010044200345873833, -0.021761199459433556, 0.002416677540168166, -0.005710464436560869, 0.02783065102994442, 0.012064882554113865, -0.027297722175717354, -0.01773463748395443, -0.018060315400362015, 0.014329824596643448, -0.04506196826696396, 0.019599882885813713, -0.005710464436560869, -0.0061693741008639336, 0.021761199459433556, 0.002220530528575182, 0.015232839621603489, -0.006754113826900721, -0.02521042339503765, 0.0156177319586277, -0.00047116883797571063, 0.0018967032665386796, 0.010658547282218933, 0.007050184532999992, 0.0098073435947299, 0.0180159043520689, 0.019673900678753853, -0.004241213668137789, -0.027934275567531586, 0.0012323944829404354, 0.010813984088599682, -0.02892611175775528, 0.0007952275336720049, -0.0005033202469348907, 0.016224676743149757, 0.0049813902005553246, 0.008948738686740398, 0.005421795416623354, -0.0006532060797326267, -0.013856111094355583, 0.019644293934106827, 0.012323944829404354, -0.002561012050136924, -0.02442583627998829, 0.026394708082079887, 0.011739205569028854, 0.01883010007441044, 0.01180582121014595, 0.008326989598572254, -0.005566129926592112, -0.018060315400362015, -0.021539146080613136, 0.005817790050059557, -0.0045705921947956085, -0.006087954621762037, 0.0098073435947299, -0.029459038749337196, -0.027519775554537773, 0.02768261544406414, 0.05335194990038872, 0.0049998946487903595, 0.07117541134357452, -0.011065644212067127, -0.009718522429466248, 0.016802014783024788, 0.02164277248084545, -0.015025590546429157, 0.051338668912649155, 0.0045853955671191216, -0.005617942661046982, -0.012072284705936909, -0.03188681975007057, 0.030051181092858315, 0.014692510478198528, 0.01045869942754507, 0.030288036912679672, -0.00421530706807971, 0.007860678248107433, -0.0021835218649357557, -0.010754769667983055, 0.032153282314538956, -0.003462177235633135, 0.01773463748395443, 0.04343358054757118, -0.01612105220556259, -0.019066955894231796, 0.022797446697950363, 0.00742767471820116, -0.035054776817560196, -0.011613375507295132, -0.01391532551497221, -0.022131288424134254, -0.014211395755410194, -0.003989553544670343, 0.010480904020369053, -0.023493213579058647, 0.001336019253358245, 0.02108023688197136, 0.00020493647025432438, -0.0015552965924143791, -0.003919236361980438, 0.003397411899641156, 0.008793300949037075, -0.012553399428725243, -0.04914774373173714, 0.014714716002345085, 0.026898028329014778, 0.001263851998373866, -0.008341792970895767, 0.002227932447567582, 0.0035935586784034967, 0.03268621116876602, 0.007416572421789169, 0.02331557124853134, 0.011828026734292507, 0.040295228362083435, 0.021198665723204613, 0.0006259120418690145, -0.010821386240422726, -0.014285413548350334, -0.01381170004606247, 0.007020577788352966, 0.03863723203539848, 0.0046039000153541565, -0.0075016925111413, 0.007027979474514723, 0.034906741231679916, -0.00900795217603445, -0.013352790847420692, -0.045150790363550186, -0.007631223648786545, -0.0103920828551054, -0.00017382591613568366, -0.05071691796183586, -0.0303768590092659, 0.010821386240422726, 0.03387049213051796, -0.01296789851039648, 0.0067393104545772076, -0.04503235965967178, 0.026335492730140686, 0.0260098148137331, 0.03241974860429764, 0.01293088961392641, 0.03176839277148247, -0.018726475536823273, 0.012745846062898636, -0.006047245115041733, -0.010562323965132236, 0.0005703988135792315, -0.02747536450624466, -0.007542402483522892, 0.018178744241595268, -0.007061287295073271, -0.00915598776191473, -0.0015145869692787528, -0.005806687753647566, 0.01823795773088932, 0.02441103383898735, -0.018267564475536346, -0.0003157316823489964, 0.006062048487365246, -0.036298274993896484, 0.013959735631942749, -0.008637864142656326, 0.009563085623085499, -0.0098073435947299, -0.007446179166436195, 0.01881529577076435, -0.012397962622344494, 0.010488306172192097, -0.025402870029211044, 0.011502348817884922, 0.005529121030122042, 0.029251789674162865, 0.016609568148851395, 0.048644423484802246, 0.03736412897706032, -0.006606078706681728, -0.02427780069410801, 0.002783064963296056, 0.04630546644330025, -0.02667597495019436, 0.01133950985968113, -0.022264519706368446, 0.030273234471678734, 0.01714249700307846, 0.0065690698102116585, -0.058533187955617905, 0.0009520524763502181, -0.03866684064269066, -0.008741488680243492, 0.015647338703274727, -0.002448135055601597, -0.052286095917224884, 0.008193758316338062, 0.03236053138971329, 0.014174386858940125, 0.034403420984745026, -0.021983252838253975, -0.014670305885374546, 0.010073807090520859, -0.0034214674960821867, -0.014899760484695435, 0.02863004058599472, -0.010170030407607555, -0.015528910793364048, 0.03330795839428902, 0.00019383382459636778, 0.0009659308125264943, -0.011642982251942158, 0.02259019762277603, -0.003582456149160862, -0.024470247328281403, 0.03218289092183113, -0.01976272277534008, -0.00780886597931385, -0.027712222188711166, 0.003543596714735031, 0.01042909175157547, -0.01657996140420437, -0.01526244729757309, 0.021095041185617447, -0.0028903905767947435, 0.005643848795443773, -0.014625894837081432, -0.0021224571391940117, 0.002013280987739563, -0.00455948943272233, -0.00697616720572114, -0.006006535142660141, -0.013996744528412819, 0.02084338106215, -0.00934103224426508, -0.01583978533744812, 0.013426808640360832, -0.008082731626927853, 0.015306857414543629, -0.0171572994440794, -0.0119908656924963, -0.030939392745494843, -0.022501377388834953, -0.00527005922049284, -0.02457387186586857, 0.0008678573649376631, 0.00893393438309431, 0.01773463748395443, 0.014255806803703308, 0.030184412375092506, 0.0017634714022278786, 0.004045066423714161, 0.04201243817806244, -0.0030994906555861235, 0.019377831369638443, -0.0002037799422396347, 0.010628939606249332, -0.04213086888194084, 0.015454893000423908, 0.037156879901885986, -0.01450006477534771, 0.01925940252840519, -0.00162098731379956, 0.023078715428709984, 0.001979973167181015, -9.691691229818389e-05, 0.005880705080926418, -0.0020984013099223375, 0.0032845349051058292, 0.03958465903997421, -0.0005195116391405463, 0.0035158400423824787, -0.008334391750395298, 0.002559161512181163, 0.007349956315010786, -0.008800703100860119, 0.010414288379251957, -0.021924039348959923, 0.0037434445694088936, -0.0303768590092659, 0.03102821484208107, 0.008489828556776047, 0.004681618884205818, 0.020325256511569023, 0.004629806149750948, 0.0015090355882421136, -0.019969971850514412, 0.014847948215901852, 0.005747473333030939, 0.007364759687334299, -0.027445757761597633, -0.03967348113656044, 0.00753870140761137, 0.0034991861321032047, -0.003410364966839552, 0.013123336248099804, -0.02005879394710064, 0.0076164198108017445, -0.02433701604604721, -0.015484499745070934, -0.035202812403440475, 0.0020040287636220455, -0.008141945116221905, 0.006820729933679104, -0.026764795184135437, -0.004411454312503338, 0.028156328946352005, -0.006413632538169622, -0.019022544845938683, 0.0031346490141004324, -0.001017743139527738, 0.006891046650707722, -0.007412871345877647, 0.009133782237768173, -0.008001311682164669, 0.004714926704764366, -0.00014849798753857613, -0.009755531325936317, 0.0012157404562458396, -0.036505524069070816, -0.007523898035287857, 0.007235229015350342, 0.0006675469921901822, 0.0005518943653441966, -0.01773463748395443, -0.010244048200547695, -0.0207841657102108, -0.01808992214500904, 0.01457408256828785, 0.0057918839156627655, -0.008586051873862743, -0.041745975613594055, 0.0351732037961483, -0.026838812977075577, -0.024603478610515594, -0.01591380313038826, -0.013604450970888138, 0.01976272277534008, -0.005991731770336628, -0.0006171224522404373, -0.04020640626549721, -0.009355835616588593, -0.01896333135664463, 0.006691198796033859, 0.0495622418820858, -0.0076164198108017445, -0.010991626419126987, 0.01991075836122036, 0.008956139907240868, 0.014485261403024197, 0.025832172483205795, -0.009792540222406387, -0.0327158160507679, 0.013989342376589775, -0.03606141731142998, 0.008963542059063911, 0.023582035675644875, -0.008171552792191505, 0.014633296988904476, -0.02368566021323204, 0.052878234535455704, 0.026986848562955856, 0.0183859933167696, -0.017542192712426186, -0.03890369459986687, -0.004566891118884087, 0.036002203822135925, 0.0012000116985291243, 0.004722328390926123, -0.005680857691913843, 0.02420378290116787, 0.008985747583210468, 0.007631223648786545, 0.010910207405686378, 0.01788267306983471, 0.003127247327938676, 0.02762340009212494, -0.008785899728536606, 0.001167629030533135, -0.027608597651124, 0.002226081909611821, -0.007079791743308306, 0.026942437514662743, -0.031205857172608376, 0.008452819660305977, 0.04731210693717003, 0.01671319454908371, 0.032153282314538956, 0.00753870140761137, -0.016239481046795845, -0.030613714829087257, -0.016520747914910316, 0.01261261384934187, 0.026409510523080826, 0.02993275225162506, 0.05317430570721626, -0.01464810036122799, 0.009725923649966717, -0.019747918471693993, 0.027593793347477913, -0.004859261214733124, -0.011902044527232647, -0.00178937753662467, 0.004233811516314745, -0.028955718502402306, -0.039347801357507706, 0.003676828695461154, -0.016328301280736923, -0.04278222471475601, 0.019348222762346268, 0.016091445460915565, -0.012486783787608147, 0.021420719102025032, 0.001506259897723794, 0.00988876260817051, -0.013471218757331371, -0.0030236225575208664, -0.01450006477534771, -0.010858395136892796, -0.008682274259626865, -0.0059473211877048016, -0.0014044856652617455, 0.005336675327271223, 0.033455993980169296, 0.010177431628108025, -0.002263090806081891, -0.02550649456679821, 0.0300067700445652, -0.014773930422961712, 0.023093517869710922, -0.00803091935813427, -0.0013785794144496322, -0.038341160863637924, 0.016047034412622452, -0.0016802015015855432, 0.017172103747725487, -0.022146092727780342, 0.03407774493098259, 0.03015480563044548, 0.0009881361620500684, -0.02375967800617218, -0.043048687279224396, -0.031057821586728096, -0.0027275518514215946, 0.0022704924922436476, -0.023804089054465294, 0.0006041693850420415, 0.04787464067339897, -0.015395678579807281], "id": 85}, {"title": "Savai'i", "text": "Savai\u02bbi is the largest (area 1700 km2) and highest (Mt Silisili at 1,858 m) island in Samoa and the Samoa Islands chain. The island is the fourth largest in Polynesia, behind the two main islands of New Zealand and the Island of Hawaii.The island of Savai'i is also referred to by Samoans as Salafai, a classical Samoan term used in oratory and prose.", "vector": [0.001201200415380299, -0.008997833356261253, -0.009939546696841717, 0.0025519065093249083, 0.028760071843862534, 0.023962143808603287, -0.005416572093963623, -0.03832843154668808, -0.0399506539106369, 0.005938982591032982, -0.004626082256436348, 0.007719302084296942, -0.06769339740276337, -0.0266704298555851, 0.012778435833752155, 0.04440489038825035, 0.011025610379874706, 0.048639167100191116, 0.027316570281982422, -0.0009906896157190204, -0.0015895713586360216, 0.009286534041166306, -0.023920901119709015, 0.039263270795345306, -0.013658285140991211, 0.019824102520942688, 0.006313605699688196, -0.003629378043115139, -0.05141618847846985, -0.007643690332770348, -0.0017090040491893888, -0.012682202272117138, -0.0012433025985956192, 0.05735517293214798, 0.008138605393469334, 0.042315248399972916, 0.005918360780924559, 0.002699693664908409, -0.059334833174943924, 0.00732749467715621, 0.03159208595752716, -0.009513369761407375, 0.046384550631046295, 0.02133634313941002, 0.018476834520697594, -0.056530315428972244, -0.007135027553886175, 0.055760446935892105, 0.015287380665540695, 0.005375328939408064, -0.02601054310798645, 0.012991524301469326, -0.0412704274058342, 0.03321430832147598, -0.022312426939606667, -0.0017253293190151453, -0.007925516925752163, 0.07929641008377075, 0.0218999981880188, -0.028237661346793175, -0.00949274841696024, 0.021556306630373, 0.053615812212228775, 0.033956680446863174, -0.013087757863104343, -0.03145461156964302, 0.04918907210230827, -0.008990959264338017, 0.0007690088823437691, 0.014984932728111744, 0.029254987835884094, -0.0013876528246328235, 0.011073727160692215, 0.0698380321264267, -0.021542558446526527, 0.013960733078420162, 0.01670338772237301, -0.04061054065823555, -0.03524896129965782, -0.011596137657761574, -0.02625800110399723, -0.023563463240861893, -0.01937043108046055, -0.008234838955104351, 0.022999808192253113, 0.02818267047405243, -0.027646513655781746, -0.03197702020406723, 0.020827680826187134, -0.01560357678681612, 0.016909603029489517, -0.008234838955104351, 0.007829283364117146, -0.004667325410991907, 0.02548813261091709, -0.004069302696734667, 0.005880554672330618, 0.007306872867047787, 0.030932199209928513, 0.018064403906464577, 0.02327476255595684, 0.01807815209031105, 0.06279923766851425, 0.0041999053210020065, -0.021735025569796562, 0.021954987198114395, -0.00944463163614273, -0.019356682896614075, 0.024553293362259865, -0.022546136751770973, 0.08309075981378555, -0.0038184081204235554, -0.013005271553993225, -0.00012061409506713971, 0.006176129449158907, -0.00681883143261075, 0.007183144334703684, -0.010785027407109737, -0.037503574043512344, 0.013397079892456532, -0.0070662894286215305, 0.09562861174345016, -0.011706119403243065, -0.07858153432607651, 0.012022314593195915, 0.03337927907705307, 0.025680599734187126, 0.04520225524902344, 0.058070048689842224, -0.011843595653772354, -0.02235366962850094, -0.009698962792754173, 0.03346176818013191, -0.001538876909762621, -0.021322596818208694, -0.008812240324914455, 0.007018172647804022, 0.05719020217657089, -0.01177485752850771, 0.030272312462329865, -0.008008003234863281, -0.005313464440405369, -0.003945574164390564, 0.03450658917427063, -0.004588276147842407, 0.01053069531917572, 0.010970620438456535, 0.009877682663500309, -0.020167794078588486, -0.03769604116678238, 0.03326930105686188, 0.01439378410577774, -0.021432576701045036, 0.009698962792754173, 0.0038630880881100893, 0.0786365270614624, -0.0001888153055915609, -0.017954424023628235, -0.004454236943274736, 0.02415461093187332, -0.06263426691293716, -0.04289264976978302, 0.007382485084235668, 0.011135592125356197, -0.023948395624756813, -0.009183426387608051, -0.0036465625744313, -0.051196228712797165, -0.011279942467808723, 0.004412993788719177, 0.0033183377236127853, -0.02832014672458172, 0.02056647650897503, 0.002689382992684841, 0.038905832916498184, -0.02741280198097229, -0.011554894968867302, 0.032059505581855774, -0.011974197812378407, 0.13659659028053284, -0.03480903431773186, -0.05306590721011162, 0.03984067216515541, -0.008585403673350811, -0.05147118121385574, -0.012256025336682796, 0.019535401836037636, 0.05325837433338165, 0.02811393328011036, -0.039648205041885376, -0.010578812099993229, -0.012929659336805344, 0.03511148318648338, -0.003149928990751505, 0.038245946168899536, -0.02906252071261406, -0.03860338404774666, 0.05177363008260727, 0.021611297503113747, 0.004450799897313118, 0.021858753636479378, 0.04209528863430023, -0.01737702265381813, 0.010620055720210075, 0.03920828178524971, 0.02892504446208477, 0.003271939465776086, -0.004663888365030289, 0.0015053671086207032, 0.018586814403533936, -0.0006345396977849305, -0.01765197515487671, 0.02612052485346794, -0.014421278610825539, 0.049161575734615326, 0.027261579409241676, -0.0183943472802639, -0.04566967487335205, 0.026422971859574318, 0.025226928293704987, 0.01479246560484171, -0.0011324621737003326, 0.04418493062257767, 0.00884660892188549, -0.03907080367207527, 0.0026859459467232227, -0.03720112517476082, 0.024457059800624847, 0.01866930164396763, 0.021886250004172325, 0.007045667618513107, -0.024663273245096207, -0.005151929799467325, 0.04176534339785576, -0.03109717182815075, -0.028595101088285446, 0.003024481702595949, -0.004254895728081465, -0.017954424023628235, 0.009032201953232288, -0.021886250004172325, 0.0348915196955204, 0.008599151857197285, 0.003234133357182145, -0.0023422548547387123, 0.028375137597322464, 0.019741617143154144, -0.03975818678736687, 0.055128052830696106, 0.034341614693403244, 0.031784553080797195, 0.010736910626292229, -0.00025905718212015927, 0.049409035593271255, -0.01948041282594204, 0.0013945266837254167, 0.02517193742096424, 0.007238134741783142, -0.03923577815294266, 0.022614875808358192, -0.02684914879500866, -0.05149867758154869, -0.021735025569796562, -0.016978340223431587, 0.004261769820004702, 0.032416947185993195, -0.00798738095909357, 0.03131713345646858, -0.018243124708533287, -0.026093028485774994, 0.01688210666179657, 0.03791600465774536, -0.047126926481723785, 0.022133708000183105, 0.039125796407461166, 0.048776641488075256, 0.021212615072727203, 0.030272312462329865, 0.032939355820417404, 0.02151506394147873, 0.00814547948539257, -0.03137212619185448, -0.0036981164012104273, 0.035853855311870575, 0.012049810029566288, 0.025144441053271294, -0.009726458229124546, 0.05999471992254257, 0.06131449341773987, -0.01877928152680397, -0.038245946168899536, -0.0304372850805521, 0.011699245311319828, 0.021281354129314423, -0.013204612769186497, 0.007299999240785837, -0.052323535084724426, 0.053753290325403214, 0.04883163422346115, -0.003529707668349147, 0.011816100217401981, 0.047154419124126434, -0.024127116426825523, 0.023920901119709015, 0.04047306627035141, 0.005626223515719175, -0.00767805939540267, -0.04286515340209007, 0.010434461757540703, 0.006715724244713783, 0.028842557221651077, -0.009465252980589867, 0.038493406027555466, 0.009575234726071358, 0.031179657205939293, -0.004670761991292238, -7.856563752284274e-05, -0.01479246560484171, -0.0583450011909008, -0.005323775112628937, -0.016194725409150124, -0.0070662894286215305, 0.028265157714486122, -0.008069867268204689, 0.029337473213672638, -0.01860056258738041, -0.01762448064982891, -0.05724519118666649, -0.019425421953201294, 0.0042823911644518375, 0.010922503657639027, -0.0025862755719572306, 0.0013214923674240708, 0.0023267888464033604, 0.10195253044366837, 0.002819985616952181, -0.03604632243514061, 0.0018971749814227223, -0.031152162700891495, 0.020442746579647064, 0.011279942467808723, 0.006220809184014797, 0.09199923276901245, 0.040170617401599884, 0.04355253651738167, 0.04124293476343155, -0.009726458229124546, -0.029529940336942673, 0.005169114097952843, 0.02713784947991371, 0.0005194031982682645, -0.010241994634270668, 0.016620902344584465, 0.06411901116371155, 0.01748700439929962, -0.016648396849632263, -0.030162332579493523, -0.05191110447049141, -0.013390205800533295, -0.023535966873168945, 0.016648396849632263, 0.007238134741783142, 0.006492325104773045, -0.0437999963760376, -0.008825987577438354, -0.033544253557920456, 0.036623723804950714, -0.011108096688985825, 0.010262616910040379, 0.007733049802482128, 0.044872310012578964, -0.034726548939943314, 0.012909037992358208, -0.02881506271660328, -0.026491710916161537, -0.00993267260491848, -0.015644818544387817, 0.0304372850805521, 0.00919717364013195, -0.018861768767237663, 0.0016978341154754162, 0.03629378229379654, -0.032664403319358826, -0.01642843522131443, 0.015369866043329239, -0.02429208718240261, 0.024718264117836952, -0.01796817034482956, 0.04844669997692108, 0.04773182049393654, -0.024058377370238304, 0.019040487706661224, 0.03956571966409683, -0.08584029227495193, -0.010736910626292229, -0.03505649417638779, -0.010283238254487514, -0.033626738935709, 0.006402965169399977, -0.020593971014022827, 0.050041425973176956, 0.013300846330821514, 0.0028835684061050415, 0.053120896220207214, -0.01470997929573059, 0.029887378215789795, 0.023439733311533928, 0.03183954581618309, 0.00979519635438919, -0.031784553080797195, 0.010956872254610062, 0.05697023868560791, -0.00958210788667202, -0.011183708906173706, 0.050316378474235535, -0.03005235083401203, -0.0285401102155447, 0.0009554612915962934, -0.012833425775170326, 0.019397925585508347, -0.04102297127246857, -0.016304707154631615, 0.04910658672451973, -0.030382294207811356, -0.05757513642311096, 0.07335743308067322, -0.01521864254027605, 0.03296685218811035, -0.02282108925282955, -0.003973069135099649, -0.03461656719446182, 0.0007831861148588359, 0.031894534826278687, -0.04718191549181938, -0.04858417436480522, -0.0013378176372498274, -0.051581162959337234, -0.004083050414919853, 0.029254987835884094, 0.023632200434803963, -0.02583182416856289, -0.009788323193788528, -0.01345894392579794, -0.022119959816336632, -0.06081957742571831, -0.013266476802527905, -0.042947642505168915, 0.00016421990585513413, 0.005554048344492912, 0.019466664642095566, 0.00263267382979393, 0.052213553339242935, 0.03835592791438103, -0.03057476133108139, 0.010152635164558887, -0.04390997439622879, -0.01198794599622488, 0.019782859832048416, -0.027701502665877342, 0.029639922082424164, 0.02099265344440937, -0.016414687037467957, 0.04355253651738167, -0.04995894059538841, 0.020758943632245064, 0.021212615072727203, 0.0031585213728249073, 0.02755028009414673, 0.005316901486366987, 0.016029752790927887, -0.04630206525325775, -0.0032152303028851748, -0.047154419124126434, 0.012324763461947441, -0.023384742438793182, -0.03923577815294266, 0.015576081350445747, -0.015301127918064594, 0.03497400879859924, -0.031784553080797195, 0.07445724308490753, 0.032444439828395844, -0.041545379906892776, 0.0006371173658408225, -0.004000564571470022, 0.0037977867759764194, -0.026876645162701607, 0.05180112272500992, 0.014558755792677402, -0.011877965182065964, 0.009155930951237679, 0.004382061772048473, 0.0685182586312294, -0.016125986352562904, 0.005131308455020189, 0.018724292516708374, 0.010551316663622856, 0.0018387474119663239, -0.04470733925700188, 0.059334833174943924, -0.018133142963051796, 0.05430319532752037, -0.020167794078588486, 0.04044556990265846, -0.01882052607834339, 0.028237661346793175, 0.016304707154631615, 0.047126926481723785, -0.021528810262680054, 0.006970055866986513, 0.031262144446372986, 0.040665533393621445, -0.059444814920425415, -0.03519396856427193, -0.014723727479577065, 0.030409788712859154, -0.0073343683034181595, -0.020965157076716423, -0.008262334391474724, 0.04451487213373184, -0.011417418718338013, 0.022298678755760193, -0.03923577815294266, 0.008447927422821522, 0.001993408426642418, -8.581537258578464e-05, -0.009499622508883476, 0.014215064235031605, 0.016689639538526535, 0.0009803789434954524, -0.041187942028045654, -0.05254349857568741, -0.022243687883019447, 0.024800751358270645, -0.01789943315088749, -0.027426550164818764, -0.03967570140957832, -0.02305479906499386, -0.020868923515081406, 0.05977475643157959, -0.019219206646084785, -0.018765535205602646, -0.012118548154830933, -0.046357057988643646, 0.029007529839873314, -0.02713784947991371, -0.02266986481845379, -0.0009717866196297109, -0.015411109663546085, -0.04173784703016281, 0.055018071085214615, -0.03766854479908943, -0.0034248819574713707, 0.018064403906464577, 0.025955552235245705, -0.01405696664005518, -0.005179425235837698, 0.014833708293735981, -0.016442183405160904, -0.007540583144873381, -0.0013266477035358548, 0.0405830480158329, 0.003282250137999654, -0.00028676725924015045, -0.02741280198097229, 0.03134462982416153, -0.031124666333198547, 0.052213553339242935, -0.00949274841696024, -0.051581162959337234, -0.010812521912157536, 0.013452069833874702, 0.0031739873811602592, -0.009815817698836327, 0.04481732100248337, -0.011795478872954845, -0.015466099604964256, -0.002209933940321207, -0.0387408621609211, -0.023357247933745384, 0.0225323885679245, 0.002136040246114135, -0.022037474438548088, 0.03373672068119049, 0.03478154167532921, 0.04008813202381134, -0.008599151857197285, 0.012008567340672016, -0.007904895581305027, -0.019494159147143364, 0.053478337824344635, -0.008076741360127926, 0.006427023559808731, -0.021226363256573677, 0.013603294268250465, 0.04025310277938843, -0.031069675460457802, -0.007643690332770348, -0.052598487585783005, -0.016167229041457176, -0.001263924059458077, -0.009554612450301647, -0.011094349436461926, -0.003691242542117834, 0.010132013820111752, 0.032801877707242966, 0.06208436191082001, 0.0020793313160538673, -0.04165536165237427, 0.032444439828395844, -0.045229751616716385, 0.0034970571286976337, -0.006069585215300322, -0.003149928990751505, -0.011238698847591877, 0.026601692661643028, 0.03120715357363224, -0.009293407201766968, 0.010420714505016804, -0.004261769820004702, 0.00012619908375199884, -0.026367980986833572, 0.0196866262704134, -0.000724329031072557, -0.027742747217416763, 0.026807906106114388, 0.013232107274234295, -0.02678041160106659, -0.006932249758392572, 0.04492730274796486, 0.0017416547052562237, 0.009245290420949459, 0.0071487752720713615, -8.645979687571526e-05, 0.01354830339550972, -0.02804519422352314, 0.03351675719022751, -0.00030932200024835765, -0.04729189723730087, 0.008702258579432964, -0.007794914301484823, 0.05719020217657089, 0.017322031781077385, -0.03629378229379654, 0.01019387785345316, -0.02671167254447937, -0.02481449767947197, -0.009960168041288853, -0.014517512172460556, -0.012015441432595253, 0.020937662571668625, 0.006268925964832306, 0.005145055707544088, -0.0014271773397922516, -0.008468548767268658, 0.025158189237117767, 0.03640376403927803, -0.02316478081047535, 0.008798492141067982, 0.004907908849418163, -0.02713784947991371, -0.01593351922929287, -0.04275517538189888, 0.006251741200685501, -0.027055364102125168, -0.011032484471797943, -0.01510866079479456, -0.011781731620430946, -0.023068547248840332, -0.033681727945804596, 0.008729754015803337, -0.03291185945272446, -0.0225323885679245, -0.009204047732055187, 0.030794722959399223, -0.03247193619608879, -0.012943407520651817, 0.027041615918278694, 0.0042205266654491425, 0.014215064235031605, 0.029777398332953453, -0.0380534790456295, -0.0025415958371013403, 0.026409225538372993, 0.013706400990486145, -0.010626928880810738, 0.0012630647979676723, -0.01818813383579254, 0.027811484411358833, 0.01389886811375618, 0.011706119403243065, 0.05680526793003082, 0.05009641498327255, 0.010083897039294243, 0.04237024113535881, 0.014201316982507706, -0.026134271174669266, -0.00426520686596632, 6.981225305935368e-05, 0.01825687102973461, -0.030547264963388443, 0.0013678906252607703, 0.028031446039676666, -0.019810356199741364, 0.04539472237229347, 0.015397361479699612, -0.0014151481445878744, 0.010798774659633636, 0.022161202505230904, 0.012840299867093563, 0.014187568798661232, 0.003973069135099649, -0.017541993409395218, 0.0501239113509655, -0.01898549683392048, -0.02119886688888073, 0.034699052572250366, -0.009224669076502323, -0.025859318673610687, 0.004454236943274736, 0.04426741600036621, -0.004980084020644426, -0.01242787018418312, 0.0393182635307312, 0.00629298435524106, -0.040033139288425446, -0.011699245311319828, -0.009389640763401985, -0.03464406356215477, 0.003849340369924903, -0.0006096221040934324, 0.0206352137029171, -0.024347078055143356, 0.011664876714348793, 0.002043243730440736, 0.005880554672330618, -0.04998643323779106, -0.028512613847851753, 0.024127116426825523, -0.017294537276029587, -0.008365442045032978, -0.03464406356215477, -0.01066817156970501, 0.012503482401371002, 0.026354234665632248, 0.004980084020644426, 0.027605269104242325, 0.0069253756664693356, -0.013830129988491535, -0.011218077503144741, -0.02275235205888748, 0.056915245950222015, -0.0029505882412195206, -0.018064403906464577, 0.03907080367207527, 0.01484745554625988, 0.002087923465296626, -0.008344819769263268, 0.02786647528409958, -0.0036156305577605963, 0.019920336082577705, 0.03513897955417633, -0.003184298053383827, 0.007190017960965633, 0.008551035076379776, -0.0033389590680599213, -0.04050055891275406, -0.017803199589252472, -0.011417418718338013, -0.027055364102125168, -0.011025610379874706, -0.01821562834084034, 0.056145381182432175, -0.00910781417042017, 0.045064777135849, 0.012317889370024204, -0.013190864585340023, -0.004698257427662611, -0.049299053847789764, -0.02892504446208477, 0.0007741642184555531, -0.0006633238517679274, 0.017775705084204674, 0.022202445194125175, 0.005756826139986515, -0.019012991338968277, -0.030547264963388443, -0.011403671465814114, 0.015741052106022835, -0.0019366993801668286, -0.014380035921931267, 0.004564217757433653, 0.007279377896338701, -0.027000373229384422, -0.02266986481845379, -0.022559884935617447, -0.046384550631046295, 0.018518077209591866, 0.014462522231042385, -0.004004001617431641, -0.014613745734095573, -0.008289829827845097, 0.03629378229379654, 0.0029557435773313046, 0.008894725702702999, 0.007190017960965633, 0.0010774716502055526, -0.01927419751882553, -0.00936901941895485, -0.003945574164390564, 0.02558436617255211, 0.008654141798615456, 0.02187250182032585, -0.013087757863104343, 0.009485874325037003, 0.03923577815294266, 0.037751030176877975, -0.03071223758161068, -0.014888699166476727, 0.005310027860105038, 0.028210166841745377, 0.024333329871296883, 0.009561486542224884, 0.0096714673563838, 0.011307437904179096, 0.026299243792891502, -0.005698398686945438, 0.02119886688888073, -0.009128435514867306, 0.00935527216643095, -0.018064403906464577, 0.01547984778881073, -0.028141427785158157, 0.010977493599057198, 0.0209514107555151, 0.007891148328781128, 0.03975818678736687, 0.0035846983082592487, 0.029227491468191147, 0.013472691178321838, 0.02576308511197567, -0.007526835426688194, -0.00568808801472187, 0.017473256215453148, -0.04542221873998642, -0.0030485400930047035, -0.013768265955150127, 0.007409980520606041, 0.010771279223263264, 0.004478295333683491, -0.018243124708533287, -0.048941612243652344, 0.016799621284008026, 0.02772899903357029, 0.004873539786785841, 0.03285687044262886, -0.033626738935709, -0.03923577815294266, 0.01726704090833664, 0.023370996117591858, -0.03211449831724167, 0.02618926204741001, 0.017720714211463928, -0.02463577874004841, 0.0004528130230028182, -0.01306026242673397, 0.018971748650074005, 0.0021875938400626183, 0.027082858607172966, -0.05152617022395134, -0.0317295640707016, 0.014957437291741371, -0.0021858755499124527, -0.02555687166750431, 0.002077612793073058, 0.004358003381639719, -0.009753953665494919, -0.02594180405139923, -0.02305479906499386, 0.039510730654001236, -0.014490016736090183, 0.025020712986588478, -0.021542558446526527, 0.01393323764204979, -0.00702848332002759, -0.02330225706100464, -0.05485310032963753, 6.503280019387603e-05, 0.04643954336643219, 0.051223721355199814, -0.010702541097998619, 0.005877118092030287, 0.016483426094055176, 0.03131713345646858, 0.016717135906219482, 0.049024101346731186, -0.006763841025531292, 0.03285687044262886, -0.05001392960548401, 0.02558436617255211, 0.01579604297876358, -0.03337927907705307, -0.0317295640707016, -0.017734460532665253, -0.0685732513666153, -0.012537851929664612, 0.033434271812438965, 0.016139734536409378, -0.03909830003976822, 0.023755930364131927, 0.0024866051971912384, 0.0041277301497757435, -0.005725893657654524, -0.03150960057973862, -0.026161767542362213, 0.006024905014783144, -0.006571373902261257, -0.00024359107192140073, 0.012345384806394577, 0.04731939360499382, -0.036348771303892136, 0.004880413878709078, -0.008296702988445759, 0.029749901965260506, -0.031124666333198547, 0.011816100217401981, -0.05009641498327255, 0.01645592972636223, 0.007341241929680109, -0.031399618834257126, 6.535501597682014e-05, 0.026601692661643028, 0.029529940336942673, -0.04303012788295746, -0.009575234726071358, -0.038245946168899536, -0.017858190461993217, -0.03632127493619919, -0.03601882979273796, 0.034561578184366226, 0.011403671465814114, 0.029887378215789795, 0.03480903431773186, -0.051581162959337234, -0.025983048602938652, 0.018628058955073357, -0.005983662325888872, 0.04011562466621399, -0.007258756086230278, -0.018435591831803322, 0.011108096688985825, 0.01332146767526865, 0.015644818544387817, -0.004766995552927256, 0.03821844980120659, -0.05521053820848465, -0.005712146405130625, 0.013238981366157532, -0.05303841084241867, 0.022477397695183754, -0.035606399178504944, 0.01983785070478916, 0.0010327917989343405, 0.037366095930337906, -0.0018679611384868622, -0.019824102520942688, 0.007389358710497618, -0.03986816853284836, 0.010936250910162926, -0.02194124087691307, 0.016717135906219482, 0.0088809784501791, 0.020731447264552116, -0.016620902344584465, 0.03134462982416153, 0.018793029710650444, -0.004557344131171703, -0.014173821546137333, 0.014545007608830929, -0.026601692661643028, -0.007561204489320517, -0.029887378215789795, 0.03337927907705307, -0.01898549683392048, 0.0076643116772174835, -0.0014649833319708705, 0.007946138270199299, -0.0118985865265131, -0.013507060706615448, 0.03835592791438103, 0.027605269104242325, -0.018696796149015427, -0.012269772589206696, -0.006385780870914459, -0.009747079573571682, 0.014215064235031605, -0.027756493538618088, 0.0027357812505215406, -0.040665533393621445, 0.0029608989134430885, 0.015672314912080765, -0.035826362669467926, -0.026546701788902283, -0.016277210786938667, -0.04528474062681198, 0.03714613616466522, -0.013782013207674026, 0.005804942920804024, 0.015534837730228901, -0.002600023290142417, 0.02386591024696827, -0.021363839507102966, -0.03981317952275276, -0.03703615441918373, -0.012304142117500305, 0.00568808801472187, 0.012221655808389187, -0.0020363698713481426, 0.0007187440060079098, 0.016345949843525887, -0.020099056884646416, 0.002792490180581808, -0.018050657585263252, -0.033159319311380386, 0.0027082860469818115, 0.012434744276106358, -0.016510920599102974, -0.005241289269179106, 0.012792183086276054, 0.03021732158958912, 0.017074573785066605, 0.024195853620767593, 0.009334650821983814, -0.03398417681455612, -0.022862331941723824, -0.021845007315278053, -0.016153482720255852, 0.00979519635438919, -0.01358267292380333, 0.020552728325128555, -0.013843878172338009, -0.015191147103905678, 0.022876080125570297, -0.01631845347583294, -0.01211167499423027, -0.047016944736242294, 0.005172551143914461, 0.004567654803395271, -0.017363274469971657, 0.03145461156964302, 0.015012427233159542, 0.006987240165472031, -0.0026309555396437645, -0.017294537276029587, -0.024979470297694206, 0.010028906166553497, 0.02695913054049015, 0.022367417812347412, -0.008014876395463943, 0.002512382110580802, 0.008551035076379776, 0.006808520760387182, -0.001191748888231814, -0.014015723019838333, 0.015328623354434967, -0.04074801877140999, -0.014613745734095573, 0.011135592125356197, -0.00900470744818449, -0.031152162700891495, -0.008839735761284828, 0.004883850459009409, 0.02618926204741001, 0.0200028233230114, 0.001955602318048477, 0.016222219914197922, -0.017005836591124535, 0.014929941855370998, 0.000669338449370116, -0.02264237031340599, 0.006052400451153517, 0.004110545851290226, 0.007526835426688194, -0.023247266188263893, 0.010922503657639027, 0.021473821252584457, 0.027701502665877342, 0.014998679980635643, 0.003976506181061268, 0.03288436681032181, -0.028705080971121788, 0.007616194896399975, 0.026656681671738625, 0.04616459086537361, 0.0038046606350690126, -0.0017064263811334968, -0.026161767542362213, 0.019494159147143364, -0.010558190755546093, -0.011444914154708385, 0.006086769513785839, -0.010633802972733974, 0.02194124087691307, -0.01846308633685112, 0.02524067461490631, 0.020786438137292862, -0.016332201659679413, 0.02165254019200802, 0.005639971233904362, 0.006705413572490215, -0.045119769871234894, 0.03758605942130089, 0.01959039270877838, -0.006389217916876078, -0.004962899722158909, 0.017596984282135963, 0.0070869107730686665, 0.015837285667657852, -0.010118266567587852, -0.03186703845858574, 0.008296702988445759, -0.004244585055857897, -0.0064304606057703495, -0.03337927907705307, 0.0298323892056942, -0.023494724184274673, -0.029117511585354805, -0.02930997870862484, 0.014077587984502316, 0.0017450916348025203, 0.0010499763302505016, -0.010991241782903671, 0.024333329871296883, -0.030354799702763557, -0.022559884935617447, -0.022477397695183754, -0.0077467975206673145, -0.052488505840301514, 0.013005271553993225, -0.015631072223186493, 0.009424010291695595, 0.051828619092702866, 0.005055696237832308, -0.003766854526475072, 0.03670620918273926, 0.003811534494161606, -0.011018737219274044, 0.029969865456223488, -0.008729754015803337, -0.009272785857319832, -0.040390580892562866, 0.03194952383637428, 0.009039076045155525, -0.003694679355248809, 0.01993408426642418, 0.013644536957144737, 0.007000987883657217, 0.030024854466319084, -0.02007156051695347, 0.013740770518779755, 0.007953012362122536, -0.02478700317442417, -0.018243124708533287, 0.012929659336805344, -0.02172127738595009, 0.021913744509220123, 0.006433897651731968, -0.032554421573877335, -0.05413822457194328, 0.017885684967041016, 0.02755028009414673, 0.05402824282646179, 0.004371751099824905, 0.005897739436477423, -0.009822691790759563, 0.008709132671356201, -0.019507907330989838, -0.03447909280657768, -0.03161958232522011, -0.003074317006394267, -0.012228529900312424, 0.013177117332816124, -0.053230877965688705, 0.021143877878785133, 0.03967570140957832, -0.005921797826886177, 0.006045526824891567, -0.025543123483657837, 0.04047306627035141, 0.021556306630373, -0.022614875808358192, -0.014833708293735981, -0.019425421953201294, -0.01151365227997303, 0.017074573785066605, 0.017981918528676033, -0.014737474732100964, -0.031674571335315704, 0.019741617143154144, 0.021473821252584457, 0.0051862988620996475, 0.013087757863104343, 0.0015225516399368644, -0.011238698847591877, -0.025323161855340004, -0.01629095897078514, 0.028842557221651077, -0.026766663417220116, 0.006636675447225571, 0.003218667348846793, 0.01618097722530365, 0.028031446039676666, -0.0158647820353508, 0.01484745554625988, -0.02400338649749756, 0.015961015596985817, 0.0069219390861690044, -0.002687664469704032, 0.014325045049190521, 0.014998679980635643, -0.0016600280068814754, 0.03249943256378174, -0.026161767542362213, 0.0004712864465545863, 0.03120715357363224, 0.015672314912080765, -0.015768548473715782, -0.01857306808233261, 0.010675045661628246, -0.019384179264307022, 0.008812240324914455, 0.02053898014128208, -0.008956590667366982, -0.015026175417006016, -0.0008759826887398958, -0.0031653952319175005, 0.008564782328903675, -0.015301127918064594, -0.0029213745146989822, -0.03175705671310425, 0.020305270329117775, -0.005299716722220182, -0.007636816240847111, 0.011871091090142727, 0.034836530685424805, 0.004062429070472717, 0.023151032626628876, 0.008468548767268658, -0.016730884090065956, -0.005024764221161604, 0.013507060706615448, 0.002534721978008747, -0.002854354679584503, -0.01151365227997303, -0.013823256827890873, -0.05378078296780586, 0.0012759532546624541, 0.037751030176877975, 0.022559884935617447, -0.024800751358270645, -0.03692617267370224, -0.013170243240892887, -0.03505649417638779, 0.026340486481785774, -0.030767228454351425, 0.007884274236857891, -0.0072312611155211926, 0.032801877707242966, 0.003746233182027936, -0.0002294138103025034, 0.02113012969493866, 0.007574952207505703, 0.003701553214341402, -0.007155648898333311, 0.009884556755423546, -0.004306449554860592, 0.0006311028264462948, 0.00568808801472187, -0.004828860051929951, -0.020195290446281433, -0.006303295027464628, -0.012654706835746765, 0.003359580645337701, 0.03288436681032181, -0.023989640176296234, 0.0028509178664535284, -0.031922031193971634, -0.038768358528614044, 0.0010585685959085822, 0.00603865273296833, 0.0008347397670149803, 0.0031739873811602592, 0.0013996820198372006, 0.03676120191812515, -0.014311297796666622, -0.0036396889481693506, 0.015768548473715782, -0.01783069409430027, 0.018971748650074005, -0.003397386521100998, -0.006756967399269342, -0.016730884090065956, -0.01783069409430027, -0.008626647293567657, -0.020758943632245064, -0.015562333166599274, -0.015672314912080765, -0.06279923766851425, -0.009774575009942055, -0.027825232595205307, 0.0009460097644478083, 0.0075818258337676525, -0.019535401836037636, -0.02295856550335884, 0.02169378288090229, -0.0008678200538270175, 0.0462745726108551, 0.02264237031340599, -0.03643125668168068, 0.014215064235031605, -0.01930169202387333, -0.01246223971247673, -0.016098491847515106, -0.021432576701045036, 0.0007333509274758399, -0.000859227788168937, 0.002582838758826256, -0.0008716865559108555, -0.011809226125478745, -0.012022314593195915, -0.010248868726193905, -0.0037702915724366903, 0.006354848388582468, -0.00996704213321209, 0.006237993482500315, 0.011809226125478745, -0.009630224667489529, -0.005588417407125235, 0.009204047732055187, -0.000400829769205302, -0.012414122931659222, 0.032032012939453125, -0.00023091745970305055, 0.030272312462329865, -0.0002255472936667502, 0.0016591688618063927, -0.0016729164635762572, 0.005829001311212778, -0.01607099547982216, -0.025914309546351433, -0.03541393205523491, 0.010035780258476734, 5.3835989092476666e-05, 0.0038871464785188437, -0.019384179264307022, 0.03511148318648338, 0.049931444227695465, 0.02815517596900463, 0.016937097534537315, -0.016689639538526535, -0.00252269278280437, -0.012530977837741375, -0.0387408621609211, -0.03018982708454132, -0.016304707154631615, -0.00504538556560874, -0.0033612989354878664, 0.00568808801472187, -0.007093784399330616, 0.023920901119709015, 0.020621467381715775, -0.017596984282135963, -0.01751449890434742, -0.010145762003958225, -0.03758605942130089, 0.005303153768181801, -0.0016866640653461218, -0.0029608989134430885, -0.032939355820417404, -0.02137758769094944, 0.012166664935648441, 0.03524896129965782, -0.017926927655935287, 0.007141901180148125, 0.0024230224080383778, 0.009485874325037003, 0.024470806121826172, 0.011974197812378407, 0.0017227516509592533, -0.03258191794157028, -0.004248022101819515, 0.01930169202387333, 0.007135027553886175, -0.016648396849632263, -0.0196866262704134, 0.0016299551352858543, 0.01388512086123228, 0.0387408621609211, 0.013713275082409382, 0.021212615072727203, 0.01319773867726326, 0.004430178552865982, -0.005138182081282139, 0.0006366877933032811, 0.03538643568754196, -0.00874350219964981, 0.015892276540398598, 0.0008136886754073203, -0.007836157456040382, -0.0177619569003582, -0.005402824375778437, 0.03159208595752716, 0.019631635397672653, -0.03819095715880394, -0.036101315170526505, 0.016414687037467957, -0.024718264117836952, -0.01053069531917572, 0.004237711429595947, 0.010455083101987839, 0.0006856637774035335, 0.002974646631628275, -0.02587306685745716, -0.0016643241979181767, 0.0033681727945804596, 0.02720658853650093, 0.018050657585263252, -0.015823539346456528, 0.01593351922929287, 0.029859883710741997, -0.009685215540230274, 0.019576646387577057, -0.06257927417755127, 0.002844044007360935, 0.0017253293190151453, 0.02200997807085514, 0.01961788907647133, 0.002550187986344099, -0.0023989640176296234, -0.00569496164098382, -0.01769321784377098, 0.010070149786770344, -0.022628622129559517, -0.015782296657562256, 0.00513474503532052, 0.01568606309592724, 0.007829283364117146, -0.005602165125310421, -0.020016569644212723, 0.02941995859146118, -0.032279469072818756, 0.013177117332816124, 0.01943916827440262, 0.011802352964878082, -0.010448209941387177, -0.024484554305672646, 0.0015612168936058879, -0.028760071843862534, -0.002153224777430296, 0.00209307880140841, 0.0020449620205909014, -0.010888134129345417, -0.04355253651738167, 0.029364967718720436, 0.010620055720210075, 0.008688511326909065, -0.009155930951237679, -0.0050213271751999855, -0.018023161217570305, 0.0285676047205925, -0.012063558213412762, -0.009905178099870682, 0.01246223971247673, -0.010290111415088177, 0.02777024172246456, 0.013438322581350803, -0.014008849859237671, 0.02772899903357029, -0.01263408549129963, 0.0044473628513514996, 0.010379471816122532, 0.03373672068119049, 0.0008360286010429263, 0.028980033472180367, -0.0026859459467232227, -0.010241994634270668, -0.03302184119820595, -0.026546701788902283, -0.009059697389602661, 0.017569489777088165, 0.02558436617255211, -0.008241713047027588, -0.027110354974865913, 0.0017665723571553826, -0.0012175258016213775, 0.015521090477705002, 0.017115816473960876, 0.04671449586749077, 0.013837004080414772, 0.01509491354227066, -0.001383356750011444, 0.0014323326759040356, 0.001536299241706729, 0.01803690940141678, 0.023439733311533928, -0.038273442536592484, -0.0033131823875010014, 0.0025639357045292854, -0.03222448006272316, -0.0066160536371171474, -0.04292014613747597, -0.005959603935480118, -0.031262144446372986, -0.0013300846330821514, -0.02955743484199047, 0.014737474732100964, -0.00021308848226908594, 0.014668736606836319, 0.03082221932709217, -0.020401503890752792, -0.002780460985377431, 0.025350656360387802, 0.021776268258690834, 0.019150469452142715, -0.008963463827967644, 0.008612899109721184, 0.013754517771303654, -0.016414687037467957, 0.02352221868932247, 0.012661580927670002, 0.01453126035630703, -3.305341670056805e-05, -0.047016944736242294, 0.008454801514744759, -0.013252729550004005, 0.01765197515487671], "id": 86}, {"title": "Joshua Gregory", "text": "Joshua Gregory (1790 \u2013 20 August 1838) was an early settler in colonial Western Australia. Two of his sons, Augustus Charles and Francis Thomas, became renowned Australian explorers.Joshua Gregory entered the army in 1805 as an ensign in the 78th Highlanders (Ross-shire Buffs). At the age of 16 he saw active service when his regiment was sent to Sicily at the height of the Napoleonic Wars.", "vector": [0.037484049797058105, 0.012617848813533783, -0.019056489691138268, -0.029858311638236046, -0.04968523606657982, 0.047358203679323196, 0.036855123937129974, -0.0008225186611525714, -0.035848841071128845, 0.008038473315536976, -0.07194925099611282, 0.025047019124031067, 0.03226395696401596, 0.033396024256944656, 0.025597330182790756, 0.0340563990175724, -0.031210504472255707, 0.029040705412626266, 0.014646138064563274, 0.0196854155510664, 0.040377113968133926, -0.02231118641793728, 0.022358356043696404, -0.007087221369147301, 0.10320692509412766, 0.004068371839821339, 0.007767248898744583, 0.023883504793047905, -0.03716958686709404, 0.00625389302149415, 0.030078435316681862, 0.022075338289141655, 0.03638342767953873, -0.014072242192924023, -0.012531370855867863, -0.01423733588308096, -0.008121020160615444, -0.011996783316135406, 0.0055070421658456326, -0.01704392209649086, 0.05286131799221039, -0.05191792547702789, 0.018175991252064705, 0.028333162888884544, -0.005444149486720562, 0.001307971659116447, -0.022625649347901344, -0.020361512899398804, -0.05883612483739853, -0.00017627154011279345, -0.03437086194753647, -0.0022877221927046776, -0.02176087535917759, 0.0027456595562398434, -0.012405585497617722, -0.03465387970209122, 0.02908787503838539, 0.08547118306159973, 0.01650933548808098, 0.01500777155160904, 0.0050117624923586845, 0.00325273210182786, -0.019465291872620583, 0.016808075830340385, 0.02982686460018158, -0.012452755123376846, 0.07232660800218582, 0.034024953842163086, -0.056163184344768524, -0.0011713765561580658, 0.04748399183154106, -0.016792351379990578, 0.11974770575761795, 0.04113182798027992, 0.0054520112462341785, -0.019905541092157364, 0.04732675850391388, 0.03198093920946121, -0.02349042519927025, 0.013380422256886959, 0.05556570366024971, -0.03625764325261116, -0.00842762179672718, 0.022452695295214653, 0.005943360272794962, 0.0019084004452452064, -0.01237413939088583, -0.07081718742847443, 0.012861558236181736, -0.030235666781663895, 0.013859979808330536, -0.004276704043149948, 0.02573883906006813, -0.022264016792178154, 0.012209045700728893, 0.021525027230381966, 0.049182094633579254, -0.009363151155412197, 0.001887763850390911, -0.044999729841947556, -0.07043983042240143, -0.029763972386717796, -0.022798605263233185, 0.0041116103529930115, 0.028160206973552704, -0.024135075509548187, 0.0014583246083930135, -0.01624204032123089, 0.05949649587273598, 0.06691783666610718, 0.036949463188648224, 0.009433905594050884, -0.04424501582980156, -0.0013983799144625664, 0.013797086663544178, -0.01938667520880699, -0.006293200887739658, -0.0032271817326545715, 0.045094069093465805, -0.020094219595193863, -0.01115559320896864, 0.020361512899398804, -0.012350554578006268, -0.03908781334757805, -0.004449658561497927, -0.05132044479250908, 0.010809683240950108, 0.08402465283870697, 0.04858461394906044, 0.019921263679862022, -0.03644632175564766, 0.013993626460433006, -0.03754694387316704, -0.009654030203819275, 0.02048729732632637, -0.02982686460018158, 0.036037519574165344, 0.0021678328048437834, 0.016886690631508827, 0.04088025540113449, -0.02103760838508606, -0.05128899961709976, 0.02556588314473629, 0.014119411818683147, -0.0019477084279060364, -0.033490363508462906, 0.020188556984066963, 0.0017678745789453387, -0.02628915011882782, -0.039024922996759415, -0.050439946353435516, 0.03446520119905472, 0.004394627641886473, 0.005990529898554087, 0.005841159727424383, -0.009756230749189854, -0.025219973176717758, -0.02955957129597664, -0.007759387139230967, -0.00830183643847704, 0.008710639551281929, 0.0002454289351589978, 0.0001089566940208897, 0.032672759145498276, 0.0074645779095590115, -0.009213780984282494, 0.016823798418045044, -0.03199666365981102, 0.024999849498271942, 0.023065898567438126, -0.021163394674658775, -0.004276704043149948, -0.0253929290920496, -0.017609957605600357, -0.006088799796998501, -0.03028283640742302, -0.011045531369745731, 0.037106696516275406, 0.00652511790394783, -0.02174515277147293, -0.012767218984663486, -0.03232685104012489, 0.03289288282394409, -0.013679162599146366, -0.014355259947478771, -0.013985765166580677, 0.04911920055747032, 0.02682373858988285, -0.0008696881704963744, 0.020330065861344337, 0.004280634690076113, 0.007358446251600981, -0.01114773191511631, 0.03418218344449997, 0.04613179713487625, 0.02665078267455101, 0.05128899961709976, 0.012900865636765957, -0.04405633732676506, -0.009984216652810574, 0.011965337209403515, -0.04245257377624512, -0.004669783171266317, -0.006474017631262541, 0.009245227091014385, -0.030345728620886803, 0.041823647916316986, -0.00480736093595624, -0.010754652321338654, -0.010841129347682, 0.004665852524340153, -0.020786037668585777, 0.005467734299600124, -0.008278251625597477, -0.0017767188837751746, 0.021776597946882248, 0.062326669692993164, 0.0040290639735758305, 0.03940228000283241, 0.05006259307265282, 0.006430779118090868, 0.0424211286008358, 0.03798719123005867, -0.03569160774350166, 0.02276715822517872, 0.039748188108205795, -0.03855322673916817, 0.008812840096652508, -0.0029087874572724104, -0.04786134883761406, 0.015565943904221058, 0.05610029026865959, -0.006513325497508049, 0.004378904588520527, -0.05654054135084152, 0.0270124152302742, 0.023600487038493156, 0.03933938592672348, 0.056068845093250275, -0.02476400136947632, 0.00330972857773304, 0.01500777155160904, -0.021682258695364, -0.030330006033182144, 0.04031422361731529, 0.04886763170361519, -0.03996831178665161, -0.03553437814116478, -0.009017241187393665, -0.0031682199332863092, 0.0005306571838445961, -0.026509273797273636, -0.012531370855867863, -0.0422324500977993, -0.04235823452472687, -0.006536910310387611, -0.015723176300525665, 0.04459092766046524, 0.038930583745241165, 0.012067537754774094, 0.0005915844812989235, -0.0003034081601072103, 0.01795586757361889, -0.011320686899125576, -0.025896070525050163, -0.03704380244016647, -0.025172803550958633, 0.007071498315781355, -0.0012529406230896711, -0.006713795941323042, -0.006057353690266609, -0.013529792428016663, -0.05110032111406326, -0.007252315059304237, -0.008553408086299896, -0.01822316087782383, -0.04179220274090767, -0.03166647627949715, -0.013789225369691849, -0.007126529235392809, 0.045565761625766754, -0.0612574927508831, -0.020707422867417336, -0.056603431701660156, 0.025880347937345505, 0.04028277471661568, -0.03361615166068077, 0.03977963328361511, 0.021462135016918182, -0.03600607439875603, -0.020188556984066963, -0.015652421861886978, -0.0007276882533915341, -0.009488936513662338, -0.040094099938869476, -0.0424211286008358, -0.03625764325261116, -0.03333313390612602, -0.04562865570187569, -0.03852178156375885, 0.04893052205443382, -0.014205889776349068, -0.02276715822517872, 0.01051880419254303, -0.0053969803266227245, -0.019999880343675613, -0.007578570861369371, -0.050974536687135696, 0.03465387970209122, -0.058804675936698914, 0.002049908973276615, -0.009127303957939148, -0.00718156062066555, -0.002297549042850733, -0.01345903892070055, -0.02210678532719612, 0.03238974139094353, 0.018883533775806427, -0.04207521677017212, -0.008262529037892818, 0.017091091722249985, -6.645498797297478e-05, -0.021697983145713806, -0.046823617070913315, -0.012248354032635689, -0.03117905743420124, -0.022908667102456093, -0.024701109156012535, -0.03833310306072235, 0.0006849408382549882, 0.012727910652756691, -0.022091062739491463, 0.007334861438721418, 0.005070724058896303, 0.015833238139748573, -0.027232540771365166, -0.016163425520062447, 0.08188629895448685, 0.008820701390504837, 0.0018189748516306281, 0.0013826567446812987, 0.0024252999573946, 0.023065898567438126, 0.044811051338911057, -0.01591971516609192, 0.00619100034236908, 0.06018831580877304, 0.025047019124031067, 0.02029862068593502, -0.017059646546840668, 0.0006682349485345185, 0.022625649347901344, -0.014355259947478771, 0.010251510888338089, 0.004021202214062214, -0.005927637219429016, 0.03361615166068077, -0.04015699028968811, 0.03732682019472122, 0.008954348973929882, 0.009143026545643806, -0.005554211791604757, -0.01037729624658823, 0.07251528650522232, 0.015282927080988884, -0.029119322076439857, 0.025219973176717758, -0.046006012707948685, -0.031870875507593155, -0.004040856380015612, -0.005263333208858967, 0.07547124475240707, -0.00657621817663312, -0.00723266089335084, -0.009937047027051449, -0.007716148626059294, -0.05260974541306496, 0.0007782971952110529, 0.0011576188262552023, -0.023144515231251717, 0.02783002145588398, 0.002865548711270094, -0.0031092579010874033, -0.008757809177041054, 0.03471677377820015, -0.03547148406505585, -0.05537702515721321, -0.0227357130497694, 0.021713705733418465, 0.0073466538451612, -0.015424435026943684, 0.07043983042240143, 0.058867570012807846, 0.008576991967856884, 0.017169708386063576, 0.004245257470756769, 0.005935498978942633, 0.03644632175564766, 0.007912687957286835, 0.015896130353212357, 0.012405585497617722, -0.05257830023765564, -0.0015123729826882482, 0.034307967871427536, 0.005974806845188141, 0.02122628688812256, -0.04940221831202507, 0.03798719123005867, 0.035219915211200714, -0.039936866611242294, 0.004044787026941776, 0.012940173968672752, -0.041006043553352356, 0.009638306684792042, -0.0031230158638209105, -0.01191816758364439, 0.004878115374594927, 0.047012295573949814, -0.01514141820371151, 0.026241980493068695, 0.002244483446702361, 0.013529792428016663, -0.023726271465420723, 0.019638245925307274, 0.0017560821725055575, 0.03496834263205528, 0.0135062076151371, 0.03515702113509178, 0.016029777005314827, -0.004492897540330887, 0.01849045418202877, -0.003541645361110568, -0.012971620075404644, 0.05666632577776909, -0.02157219685614109, -0.010306541807949543, -0.02600613236427307, -0.015762483701109886, -0.0018582828342914581, 0.010495220310986042, -0.029024982824921608, 0.024056458845734596, -0.040660131722688675, -0.013993626460433006, -0.02855328656733036, -0.03191804513335228, -0.07232660800218582, 0.00905654951930046, 0.010102140717208385, 0.043364517390728, 0.0030267112888395786, 0.03952806442975998, 0.02674512192606926, -0.029591016471385956, -0.01382853277027607, -0.06440212577581406, -0.006328578107059002, 0.01856907084584236, -0.04323873296380043, 0.029936926439404488, 0.015440158545970917, 0.0015516809653490782, 0.04688651114702225, -0.04062868654727936, 0.035314254462718964, -0.03814442455768585, -0.0007252314826473594, -0.0311947800219059, -0.037012357264757156, -0.0009640271891839802, -0.022091062739491463, 0.006403263192623854, -0.027877191081643105, 0.0505971796810627, 0.009764092043042183, -0.012130429968237877, -0.012680741026997566, 0.022452695295214653, 0.03751549869775772, -0.010668174363672733, 0.008647746406495571, 0.020251451060175896, 0.005133616738021374, 0.028238823637366295, 0.015927577391266823, -0.022892944514751434, 0.02248414047062397, 0.0009542002226226032, -0.054905328899621964, 0.006902473978698254, -0.04396199807524681, 0.03389916568994522, -0.024150798097252846, 0.008136743679642677, -0.020786037668585777, -0.01811309903860092, -0.018065929412841797, 0.011312824673950672, 0.025597330182790756, -0.03399350494146347, -0.019528184086084366, -0.00024555178242735565, 0.06367886066436768, -0.025958962738513947, 0.041477736085653305, -0.006529048550873995, -0.04452803358435631, 0.036572106182575226, -0.014253058470785618, -0.005786128807812929, -0.047546882182359695, 0.004575444385409355, 0.002682766877114773, -0.01205181423574686, -0.009889877401292324, -0.0030345728155225515, 0.012083260342478752, 0.06584866344928741, -0.0011291205883026123, 0.016100531443953514, -0.03509412705898285, 0.03342747315764427, -0.03808153048157692, 0.0016922068316489458, 0.012751495465636253, -0.034024953842163086, 0.026792291551828384, 0.03644632175564766, -0.06823858618736267, 0.0342450775206089, 0.016745181754231453, 0.00625389302149415, -0.03619474917650223, 0.03981108218431473, 0.019150828942656517, 0.014803370460867882, 0.012224769219756126, 0.02946523204445839, -0.01028295699506998, -0.01957535371184349, 0.0038757629226893187, -0.008136743679642677, 0.02646210417151451, -0.014473183080554008, 0.016619397327303886, 0.010809683240950108, -0.012908726930618286, -0.004669783171266317, 0.007032190449535847, -0.004744468256831169, 0.021870937198400497, -0.049465112388134, -0.02113194763660431, -0.025314312428236008, 0.04738965258002281, -0.015723176300525665, -0.032138172537088394, 0.06767255067825317, -0.00695357471704483, -0.04720097407698631, 0.0192137211561203, -0.02874196507036686, -0.02067597582936287, -0.02781429886817932, 0.007087221369147301, 0.03540859371423721, -0.0348111130297184, 0.04251546785235405, -0.0384274423122406, 0.016808075830340385, -0.01060528215020895, -0.018537623807787895, -0.01676090620458126, -0.010793960653245449, 0.007665048353374004, -0.025345759466290474, 0.032672759145498276, -0.01571531407535076, 0.015031356364488602, -0.010102140717208385, 0.00806598924100399, -0.02665078267455101, -0.008632023818790913, 0.035943180322647095, 0.002818379318341613, -0.00816032849252224, -0.006513325497508049, -0.013246775604784489, 0.04543997719883919, -0.056068845093250275, -0.08326993882656097, -0.024638216942548752, 0.03616330400109291, 0.015801791101694107, -0.0023034452460706234, 0.0174998939037323, -0.027138201519846916, 0.0032900746446102858, 0.01238200068473816, -0.006171346642076969, 0.04588022828102112, -0.00030881300335749984, 0.03081742487847805, -0.0194023996591568, -0.016792351379990578, -0.017814358696341515, 0.0030031264759600163, 0.02185521461069584, 0.008038473315536976, -0.036760784685611725, 0.019999880343675613, -0.01784580387175083, 0.0010878472821787, -0.015290788374841213, 0.008018819615244865, 0.004752330016344786, 0.015094248577952385, 0.016257762908935547, 0.040377113968133926, 0.0043278043158352375, -0.004917423240840435, -0.02937089279294014, 0.035597268491983414, -0.011139869689941406, 0.012098983861505985, 0.0013600547099485993, -0.03108471818268299, -0.019370952621102333, 0.012680741026997566, 0.031068995594978333, -0.0340563990175724, 0.0010947261471301317, -0.04154063016176224, -0.007590363267809153, -0.028804857283830643, 0.01005497109144926, 0.032861437648534775, 0.000349103647749871, 0.04025132954120636, -0.004339596722275019, -0.022264016792178154, 0.02421369031071663, -0.003954378888010979, 0.0005321312346495688, -0.009685476310551167, -0.008270390331745148, -0.016996752470731735, -0.011768797412514687, -0.009952770546078682, 0.0270124152302742, 0.005161132663488388, -0.023018728941679, 0.020597361028194427, -0.016839521005749702, -0.031399182975292206, -0.028773412108421326, -0.05147767812013626, -0.018474731594324112, 0.01948101446032524, -0.005176855716854334, -0.010911883786320686, -0.04433935508131981, -0.03009415790438652, 0.035943180322647095, -0.026446381583809853, 0.010888298973441124, -0.04415067657828331, -0.024260859936475754, 0.0458487793803215, -0.026179088279604912, 0.010125725530087948, -0.04216955602169037, -0.014292366802692413, -0.018175991252064705, 0.020235726609826088, 0.0176885724067688, -0.01814454421401024, -0.04893052205443382, -0.022547034546732903, 0.015746761113405228, 0.06572287529706955, -0.03663500025868416, -0.00852196104824543, 0.002116732532158494, -0.009858431294560432, -0.0017865458503365517, -0.0036536729894578457, -0.02374199591577053, 0.005711443722248077, 0.0015054941177368164, 0.005157201550900936, 0.04993680492043495, -0.012963758781552315, -0.003783389227464795, -0.025581607595086098, 0.02955957129597664, -0.004076233133673668, -0.035219915211200714, -0.05767260864377022, -0.05650909245014191, -0.032232511788606644, 0.019103659316897392, 0.011438610032200813, 0.002971680136397481, 0.018521901220083237, -0.0030168844386935234, -0.005251540802419186, -0.015314373187720776, -0.005841159727424383, -0.03465387970209122, -0.007417408283799887, 0.030204221606254578, -0.04525129869580269, 0.01028295699506998, -0.03254697471857071, -0.062043651938438416, 0.015613113529980183, -0.03264131397008896, -0.009748369455337524, 0.01138357911258936, 0.008922901935875416, 0.019543906673789024, 0.01776718907058239, -0.03333313390612602, 0.00015514352708123624, 0.04525129869580269, -0.01305023580789566, -0.026682229712605476, 0.017657127231359482, 0.013097405433654785, -0.0015487328637391329, -0.026760844513773918, 0.0024881926365196705, 0.001653881510719657, -0.029150767251849174, -0.006867097225040197, -0.002657216740772128, 0.005542419385164976, -0.007798695005476475, 0.003830558620393276, 0.018427561968564987, 0.02575456164777279, 0.011501503176987171, -0.06053422763943672, -0.0032763166818767786, 0.007244453299790621, 0.008797116577625275, -0.03716958686709404, -0.013946456834673882, -0.013270360417664051, -0.013608409091830254, -0.03506268188357353, -0.024732556194067, -0.01291658915579319, -0.03333313390612602, -0.0085140997543931, -0.014213751070201397, -0.026131918653845787, 0.005664274096488953, 0.01911938190460205, 0.02882058173418045, 0.010503081604838371, 0.003272386034950614, 0.0426098071038723, 0.002751555759459734, 0.0349997878074646, 0.02103760838508606, 0.000539501488674432, -0.006702003534883261, -0.018506178632378578, -0.03143062815070152, -0.022814327850937843, 0.00915875006467104, -0.006324647460132837, 0.046634938567876816, -0.006584079936146736, 0.010479496791958809, -0.001222476945258677, -0.015157141722738743, -0.02493695728480816, -0.03345891833305359, 0.014921293593943119, -0.00029480954981409013, 0.013970041647553444, 0.01621059514582157, -0.000134875372168608, 0.040188439190387726, 0.0037676659412682056, -0.025455821305513382, -0.020503021776676178, -0.001347279641777277, -0.007307345978915691, -0.0420437715947628, -0.008113158866763115, 0.023396085947752, 0.009465351700782776, 0.015251480974256992, 0.0097011998295784, -0.01580965332686901, -0.00838045310229063, 0.019166551530361176, -0.000332152092596516, -0.03628908842802048, 0.03207527846097946, -0.03371048718690872, -0.010817544534802437, -0.00348071800544858, 0.03455954045057297, -0.03327023983001709, 0.019921263679862022, 0.01759423315525055, 0.013718470931053162, 0.012499924749135971, 0.0018229057313874364, 0.005440218839794397, -0.0029009259305894375, -0.011462194845080376, 0.007043982855975628, -0.03273565322160721, -0.01913510449230671, -0.03264131397008896, 0.004952800460159779, -0.012877280823886395, -0.003848247230052948, 0.040094099938869476, 0.01260212529450655, -0.0006240135408006608, -0.011391440406441689, 0.013875702396035194, 0.0028026560321450233, -0.02194955386221409, -0.02820737659931183, -0.055156901478767395, -0.010314403101801872, 0.009127303957939148, 0.04207521677017212, -0.019103659316897392, 0.014567522332072258, 0.027436941862106323, 0.05260974541306496, -0.007224799133837223, -0.014748338609933853, 0.018364669755101204, -0.02212250791490078, -0.0176885724067688, 0.018097374588251114, 0.008081712760031223, -0.02518852800130844, -0.024795448407530785, -0.008687054738402367, 0.0059197754599153996, 0.01522789616137743, -0.021242011338472366, 0.04267269745469093, -0.0055974507704377174, -0.010660313069820404, 0.0042413268238306046, -0.001965397037565708, -0.041477736085653305, -0.018521901220083237, 0.01159584242850542, -0.004724814556539059, -0.009449629113078117, 0.011171316727995872, 0.025534437969326973, -0.03490544855594635, 0.022499864920973778, -0.017531340941786766, -0.027263985946774483, 0.0074881622567772865, 0.01776718907058239, -0.004551859572529793, -0.017201153561472893, -0.039559509605169296, 0.027311155572533607, 0.03471677377820015, -0.02338036149740219, 0.003696911735460162, 0.009473212994635105, -0.03716958686709404, -0.013616270385682583, -0.025408651679754257, -0.039748188108205795, 0.027531281113624573, 0.03232685104012489, 0.006187069695442915, 0.025896070525050163, 0.006116315256804228, 0.01427664328366518, 0.013899287208914757, -0.018474731594324112, 0.030502961948513985, -0.025958962738513947, -0.015581667423248291, -0.025628777220845222, 0.03080170229077339, 0.0023977842647582293, -0.013168159872293472, -0.027342602610588074, -0.014575383625924587, 0.001549715525470674, 0.009795538149774075, 0.010243648663163185, 0.02493695728480816, 0.021509304642677307, 0.002433161484077573, 0.059056248515844345, 0.004744468256831169, -0.00010152503818972036, 0.03045579232275486, 0.004677644930779934, 0.03528280556201935, -0.042012326419353485, 0.027625620365142822, -0.012256215326488018, -0.018521901220083237, -0.06660337001085281, 0.03018849715590477, 0.004646198358386755, 0.00711866794154048, 0.017295492812991142, -0.04025132954120636, -0.04760977625846863, 0.02094327099621296, -0.007948065176606178, -0.014205889776349068, -0.020833207294344902, -0.022877220064401627, 0.05566004291176796, 0.03465387970209122, 0.012012505903840065, 0.012492063455283642, -0.03506268188357353, -0.005279056262224913, -0.00852196104824543, -0.009143026545643806, 0.022248294204473495, 0.023962119594216347, 0.010330126620829105, 0.001905452343635261, 0.0133646996691823, -0.025817453861236572, -0.001991929719224572, -0.00842762179672718, -0.022169677540659904, 0.04349030554294586, -0.008993656374514103, 0.025408651679754257, -0.010031386278569698, 0.0008922902052290738, 0.058238644152879715, -0.001695154933258891, -0.015848960727453232, -0.0012264077086001635, -0.010676036588847637, 0.043175842612981796, -0.005231886636465788, -0.0014622553717345, 0.019559631124138832, 0.021100502461194992, -0.013616270385682583, 0.022043893113732338, -0.009882016107439995, -0.002385991858318448, 0.005381256807595491, 0.006069145631045103, -0.0036733269225806, 0.0016607604920864105, -0.03336457908153534, 0.00996849313378334, -0.011234208941459656, -0.003582918783649802, -0.014355259947478771, 0.005157201550900936, -0.0190250426530838, 0.040471453219652176, -0.016918137669563293, 0.03833310306072235, -0.009858431294560432, -0.01059742085635662, -0.0024135075509548187, 0.011312824673950672, -0.05411916971206665, 0.00929239671677351, 0.03352181240916252, 0.009654030203819275, -0.016525058075785637, 0.04452803358435631, 0.008136743679642677, 0.006823858246207237, -0.05981096252799034, 0.01590399257838726, 0.00580578250810504, -0.04742109775543213, -0.026069024577736855, -0.01831750012934208, -0.03427652269601822, 0.00016030269034672529, 0.025235697627067566, -0.007016467396169901, 0.016289209946990013, 0.05720091238617897, -0.000616151955910027, -0.043647535145282745, 0.006014114711433649, -0.013176021166145802, 0.0016882759518921375, -0.00117334199603647, -0.0006525117787532508, -0.012004644609987736, 0.03028283640742302, -0.07786116749048233, 0.016430718824267387, -0.03282999247312546, 0.010416603647172451, -0.02775140479207039, 0.023883504793047905, 0.014646138064563274, 0.007397754117846489, 0.007185491267591715, -0.009048687294125557, -0.040660131722688675, -0.005852952133864164, 0.016650842502713203, -0.032578419893980026, 0.010856852866709232, -0.03679222986102104, 0.0007468508556485176, 0.0029598877299576998, 0.04842738062143326, 0.018364669755101204, -0.007955927401781082, 0.01666656695306301, -0.005845090374350548, -0.007122598588466644, 0.02584890089929104, 0.011808104813098907, 0.00905654951930046, -0.0018258538329973817, 0.04213811084628105, 0.031682200729846954, 0.008529823273420334, -0.019559631124138832, 0.0001396660227328539, -0.060408443212509155, 0.0037696314975619316, -0.007590363267809153, 0.011242070235311985, -0.018977873027324677, -0.002627735724672675, 0.012727910652756691, -0.0004918405902571976, -0.03055012971162796, -0.026352042332291603, -0.04069158062338829, 0.04559721052646637, -0.02564449980854988, -0.03026711381971836, -0.006344301626086235, 0.00187597144395113, -0.011815967038273811, 0.019606800749897957, 0.020361512899398804, -0.027263985946774483, 0.023977842181921005, -0.013962180353701115, 0.01866341009736061, 0.012421309016644955, 0.01712253876030445, -0.013962180353701115, -0.031116165220737457, 4.382221231935546e-05, -0.042106665670871735, 0.0023800956550985575, -0.016116255894303322, 0.021006163209676743, 0.008050265721976757, -0.007499954663217068, -0.019292335957288742, -0.017877250909805298, 0.05682355910539627, -0.004477174486964941, 0.0016912240535020828, -0.03193376958370209, -0.013514069840312004, 0.03036145307123661, 0.018160268664360046, 0.0172168780118227, -0.0174998939037323, -0.008718500845134258, -0.012995204888284206, -0.011407163925468922, -0.012067537754774094, 0.013128851540386677, -0.03990542143583298, 0.008498376235365868, -0.034307967871427536, 0.04943366348743439, -0.028600456193089485, -0.03133628889918327, 0.0039976174011826515, -0.0498424656689167, -0.013655577786266804, 0.020723145455121994, 0.018631963059306145, 0.00806598924100399, -0.015416573733091354, -0.0005758613115176558, -0.04088025540113449, 0.04949655756354332, 0.0002962836006190628, 0.026996692642569542, -0.024245137348771095, -0.042012326419353485, 0.002838033251464367, 0.02529858984053135, 0.03017277456820011, -0.006143830716609955, 0.006509394850581884, -0.004595098085701466, -0.010188617743551731, -0.014245197176933289, 0.03691801801323891, 0.012091122567653656, -0.007177629973739386, -0.021792322397232056, -0.022358356043696404, -0.010565973818302155, 0.013301806524395943, 0.024182245135307312, 0.024056458845734596, -0.011957474984228611, -0.0017875285120680928, -0.007955927401781082, 0.01641499623656273, -0.00284589477814734, -0.01029081828892231, -0.0011133974185213447, -0.01282224990427494, -0.035314254462718964, -0.021918106824159622, -0.029622463509440422, -0.007818348705768585, 0.016383549198508263, -0.02347470074892044, -0.001990947173908353, -0.019622523337602615, 0.0001655847008805722, -0.04628903046250343, 0.00123033847194165, -0.0027201094198971987, 0.011572257615625858, 0.016179148107767105, 0.022342633455991745, -0.004146987572312355, 0.015322234481573105, 0.009999940171837807, -0.008309698663651943, -0.023694826290011406, 0.006859235465526581, 0.0027102823369205, 0.004532205406576395, 0.028128761798143387, -0.009937047027051449, -0.02122628688812256, 0.007586432155221701, -0.0002751555875875056, -0.06100592389702797, 0.006116315256804228, 0.02492123283445835, -0.005184717010706663, -0.017468448728322983, -0.0016145736444741488, -0.03600607439875603, 0.018003037199378014, -0.02655644342303276, -0.011815967038273811, 0.013576962053775787, 0.015793930739164352, 0.014001487754285336, -0.0032743513584136963, -0.0344337560236454, -0.036666445434093475, -0.015801791101694107, 0.014433875679969788, -0.029512401670217514, -0.0393708311021328, -0.03770417720079422, 0.009048687294125557, 0.014308090321719646, 0.008687054738402367, 0.0026336319278925657, -0.0008691968396306038, 0.01822316087782383, -0.002963818609714508, -0.03808153048157692, 0.008191774599254131, 0.011776658706367016, -0.004135195165872574, 0.018427561968564987, -0.005817574914544821, -0.014992048032581806, 0.009543967433273792, 0.014268781989812851, -0.018521901220083237, 0.011792382225394249, -0.01345903892070055, -0.022798605263233185, -0.0382387638092041, 0.01504707895219326, 0.0044968281872570515, 0.04515695944428444, 0.0025746701285243034, 0.028883473947644234, -0.0021973138209432364, 0.011242070235311985, 0.013710609637200832, -0.005617104470729828, 0.024685386568307877, 0.002128524938598275, -0.02210678532719612, -0.0012480270816013217, -0.01580965332686901, -0.011021946556866169, -0.011863135732710361, -0.01704392209649086, -0.010141448117792606, -0.03833310306072235, 0.009182334877550602, 0.02220112457871437, -0.06043988838791847, 0.004032994620501995, -0.006084869150072336, -0.007893034256994724, 0.00745278550311923, -0.05657198652625084, 0.021446412429213524, -0.009347427636384964, 0.004980315919965506, 0.0027849674224853516, 0.003586849430575967, 0.0070754289627075195, -0.015707451850175858, 0.002657216740772128, -0.0036379497032612562, 0.008333283476531506, 0.00700467498973012, -0.012083260342478752, 0.021462135016918182, -0.0022012447007000446, 0.012554955668747425, 0.019056489691138268, -0.0504085011780262, 0.008207498118281364, 0.020424405112862587, -0.0031013963744044304, 0.024811170995235443, -0.004992108326405287, 0.0003626157413236797, -0.0040565794333815575, -0.04776700958609581, -0.01459110714495182, -0.020345790311694145, -0.010251510888338089, 0.01732693985104561, 0.006293200887739658, 0.012547094374895096, -0.014952740631997585, 0.007920550182461739, -0.030408622696995735, -0.016996752470731735, 0.0063482322730124, 0.03698090836405754, -0.01913510449230671, 0.022405525669455528, -0.0044221431016922, -0.012554955668747425, -0.006792412139475346, 0.009999940171837807, 0.00750388577580452, 0.008404037915170193, 0.023537594825029373, -0.0011595842661336064, -0.02349042519927025, 0.01047163549810648, 0.03073880821466446, -0.006572287529706955, 0.022798605263233185, -0.027436941862106323, -0.011674458160996437, -0.0429871641099453, -0.019701140001416206, -0.004834876395761967, 0.005432357080280781, 0.014347397722303867, 0.022688543424010277, -0.02638348937034607, 0.01704392209649086, -0.0088442862033844, -0.01128923986107111, -0.046037457883358, 0.013207467272877693, 0.00874994695186615, 0.02077031508088112, 0.021525027230381966, -0.03654066100716591, -0.012177599593997002, 0.01051880419254303, -0.012806526385247707, 0.017814358696341515, 0.03155641257762909, -0.01784580387175083, 0.02693380042910576, -0.006859235465526581, -0.01976403221487999, 0.0012264077086001635, 0.045660100877285004, -0.015518774278461933, -0.02963818609714508, 0.03245263546705246, 0.0033647597301751375, 0.01776718907058239, -0.00111634552013129, 0.028804857283830643, -0.007220868486911058, 0.019072212278842926, -0.017169708386063576, -0.023003006353974342, -0.006497602444142103, -0.002983472542837262, -0.014504630118608475, -0.014095827005803585, 0.005341948941349983, -0.009992077946662903, -0.030691638588905334, -0.03218534216284752, -0.00011479146633064374, 0.02446526102721691, 0.012209045700728893, -0.035597268491983414, -0.00819963589310646, 0.027861466631293297, -0.00015674041060265154, 0.03355325758457184, 0.03415073826909065, 0.003262558951973915, -0.01318388245999813, 0.012790803797543049, 0.007665048353374004, -0.04198088124394417, 0.00580578250810504, 0.01273577194660902, -0.0052083018235862255, 0.011344271712005138, 0.0015713348984718323, -0.00519257877022028, 0.04103748872876167, -0.0018808848690241575, 0.0038737973663955927, 0.0020056876819580793, -0.0024980194866657257, -0.01549518946558237, -0.016116255894303322, -0.013026650995016098, 0.0113678565248847, -0.00795199628919363, 0.013899287208914757, -0.03691801801323891, 0.021509304642677307, 0.018160268664360046, 0.004316011909395456, 0.00421381089836359, -0.00919805746525526, -0.004166641738265753, -0.01327822171151638, -0.02682373858988285, 0.00452827475965023, -0.05386760085821152, 0.010990499518811703, 0.0022169677540659904, 0.022185400128364563, 0.013584824278950691, 0.022609926760196686, -0.003791250754147768, 0.009858431294560432, -0.007767248898744583, 0.0066351802088320255, 0.0307230856269598, 0.030785977840423584, -0.00348071800544858, 0.018065929412841797, -0.012759356759488583, 0.033930614590644836, -0.010526666417717934, 0.018474731594324112, 0.014638276770710945, -0.004701229743659496, 0.008655608631670475, 0.012570679187774658, -0.027421219274401665, 0.02600613236427307, -0.02718537114560604, -8.230099774664268e-05, 0.03713814169168472, -0.0462261363863945, -0.027625620365142822, 0.03506268188357353, -0.02311306819319725, 0.020534466952085495, 0.01073892880231142, -0.018459009006619453, -0.0014760131016373634, 0.010432327166199684, 0.041760753840208054, 0.02048729732632637, 0.04333307221531868, -0.03282999247312546, 0.0026021855883300304, -0.012940173968672752, 0.04521985352039337, -0.0346224345266819, -0.04352175071835518, -0.019072212278842926, 0.004433935508131981, 0.041100382804870605, -0.003791250754147768, -0.028050145134329796, -0.007558916695415974, 0.007197283674031496, 0.005330156534910202, -0.013757779262959957, -0.009724784642457962, -0.0011301032500341535, -0.0004680101410485804, 0.01713826134800911, -0.02077031508088112, -0.013215329498052597, -0.014072242192924023, -0.01913510449230671, -0.021902384236454964, 0.032767098397016525, -0.00763753242790699, 0.017153983935713768, 0.050534285604953766, -0.03135201334953308, -0.020707422867417336, -0.015817515552043915, -0.012539233081042767, 0.00829397514462471, 0.022892944514751434, 0.03209100291132927, 0.0232074074447155, -3.6666937376139686e-05, 0.015558082610368729, 0.011234208941459656, 0.05556570366024971, 0.03452809527516365, 0.013325391337275505, -0.019984155893325806, -0.0024213690776377916, -0.013396145775914192, 0.0010524700628593564, 0.01577034592628479, -0.009543967433273792, -0.002022393513470888, -0.005117893684655428, 0.012523509562015533, -0.021965276449918747, -0.030770255252718925, 0.03279854357242584, -0.002444953890517354, 0.014567522332072258, 0.0196854155510664, 0.025172803550958633, -0.00700467498973012, 0.013262499123811722, -0.0028557218611240387, -0.03355325758457184, -0.014111550524830818, 0.014182304963469505, 0.005660343449562788, -0.020157111808657646, 0.016383549198508263, -0.002385991858318448, 0.02176087535917759, 0.020817484706640244, -0.005939429625868797, -0.010188617743551731, -0.001019058283418417, 0.014315951615571976, 0.013859979808330536, 0.024323752149939537, 0.011352133005857468, -0.008474791422486305, -0.024449538439512253, -0.023458978161215782, -0.03298722207546234, -0.024622492492198944, -0.0026611476205289364, 0.01014931034296751, -0.002704386133700609, 0.022169677540659904, -0.01345903892070055, -0.0050667934119701385, -0.026965245604515076, 0.01301092840731144, 0.014669722877442837, 0.02003132551908493, -0.034590985625982285, -0.016069086268544197, -0.04402489215135574, 0.0052397483959794044, 0.0123662780970335, 0.008121020160615444, 0.006399332545697689, 0.014536076225340366, 0.012712188065052032, -0.0008593698148615658, 0.025141358375549316, -0.010841129347682, -0.007810487411916256, -0.01327822171151638, 0.022531310096383095, -0.012413447722792625, 0.007362376898527145, -0.012649294920265675, 0.010793960653245449, 0.0034335486125200987, -0.02636776491999626, -0.004123402759432793, -0.024591047316789627, -0.002820344641804695, 0.011981059797108173, -0.01949673891067505, 0.02410362847149372, -0.02455960027873516], "id": 87}, {"title": "Cynric of Wessex", "text": "Cynric was King of Wessex from 534 to 560. Everything known about him comes from the Anglo-Saxon Chronicle. There he is stated to have been the son of Cerdic, and also (in the regnal list in the preface) to have been the son of Cerdic's son, Creoda. During his reign it is said that the Saxons expanded into Wiltshire against strong resistance and captured Searobyrig or Old Sarum, near Salisbury, in 552.", "vector": [0.0034433980472385883, 0.06477025151252747, -0.021929355338215828, -0.0037375078536570072, 0.024573039263486862, 0.040580544620752335, -0.011288529261946678, -0.04845872148871422, -0.023819589987397194, 0.018479349091649055, -0.034526508301496506, -0.012458359822630882, -0.058108165860176086, -0.02717706747353077, 0.0484851598739624, 0.024202924221754074, -0.05305873230099678, -0.015848884359002113, -0.012127898633480072, -0.00563765550032258, 0.013826466165482998, 0.00533363176509738, 0.00780547596514225, -0.010931632481515408, 0.05905989184975624, 0.01290778536349535, -0.03291386365890503, -0.008241684176027775, -0.048379410058259964, -0.00652328971773386, 0.023753497749567032, 0.01587532088160515, -0.01547876838594675, 0.06027598679065704, 0.0008290426922030747, -0.04874952882528305, 0.019298890605568886, 0.02019774354994297, -0.004533917643129826, -0.020012686029076576, 0.0493575744330883, 0.015743136405944824, 0.020871883258223534, 0.03748743608593941, 0.02565694972872734, -0.00637127785012126, -0.033812712877988815, -0.005736793391406536, -0.03257018327713013, -0.018915556371212006, 0.04280123859643936, -0.01587532088160515, -0.03333685174584389, -0.025775916874408722, -0.03412995487451553, 0.03553110733628273, 0.002270263386890292, 0.03693225979804993, 0.012101462110877037, 0.04388514906167984, 0.014566697180271149, 0.027150630950927734, 0.0013928908156231046, -0.02096441201865673, 0.01170490961521864, -0.01735578291118145, -0.01681382767856121, -0.023132232949137688, 0.016060378402471542, -0.03357478231191635, -0.004335641395300627, -0.005568258929997683, -0.02543223649263382, -0.003387219738215208, -0.054829999804496765, 0.017871301621198654, 0.011942841112613678, -0.0011128255864605308, -0.0009690753067843616, 0.027203505858778954, -0.005208056885749102, -0.0007703859591856599, -0.01746153086423874, 0.024335108697414398, 0.048934586346149445, -0.012213818728923798, 0.01948394812643528, -0.049807000905275345, 0.023515567183494568, -0.016906356438994408, 0.08042085915803909, -0.05321735143661499, -0.003972134552896023, -0.06228518858551979, 0.01001295167952776, 0.00318563892506063, 0.06947600841522217, -0.009074443951249123, -0.004177020397037268, -0.011182782240211964, -0.02722994238138199, -0.026714423671364784, 0.01506899669766426, -0.009953469038009644, 0.005601305048912764, 0.028525346890091896, -0.005819408688694239, 0.024083958938717842, 0.0018538831500336528, 0.07042773067951202, 0.02717706747353077, -0.014447730965912342, 0.030111556872725487, 0.03685295209288597, -0.04444032162427902, -0.033812712877988815, -0.027705805376172066, -0.018056359142065048, -0.07793579250574112, 0.008426741696894169, -0.030983973294496536, -0.01779199205338955, 0.02897477336227894, 0.0197086613625288, 0.030375925824046135, -0.00012330306344665587, -0.006315099541097879, 0.011341403238475323, 0.008406913839280605, 0.0411621555685997, -0.014183362945914268, -0.06582772731781006, 0.011057207360863686, 0.03865065425634384, 0.0718553215265274, -0.011301747523248196, -0.005545126739889383, -0.005898719187825918, 0.03669432923197746, 0.010786229744553566, 0.027811553329229355, 0.04454607143998146, 0.009656054899096489, 0.009081053547561169, -0.020871883258223534, 0.006946278735995293, -0.001014513662084937, 0.012372439727187157, 0.01801670528948307, -0.0015746441204100847, -0.01599428616464138, -0.015637388452887535, 0.00807645358145237, 0.0124715780839324, -0.003902737982571125, -0.04956907033920288, -0.03793686255812645, -0.03717019408941269, 0.06519324332475662, 0.0411621555685997, 0.0033161707688122988, 0.05694494768977165, -0.024216143414378166, 0.004114232957363129, 0.02635752595961094, 0.013410085812211037, -0.03307248279452324, 9.412959479959682e-05, -0.050520796328783035, 0.005138660315424204, -0.004454607143998146, -0.017421875149011612, -0.0019612829200923443, -0.04208744317293167, 0.01227991096675396, 0.03510811924934387, -0.04161158204078674, 0.01356209721416235, 0.026291433721780777, 0.06233806163072586, 0.009074443951249123, -0.019364982843399048, -0.07545073330402374, 0.006295271683484316, 0.013575315475463867, 0.039813876152038574, 0.00021996274881530553, 0.029133394360542297, -0.01097128726541996, -0.0195368230342865, 0.03307248279452324, -0.03843916207551956, 0.018466129899024963, 0.047797802835702896, 0.002380967605859041, 0.010766401886940002, 0.021413838490843773, 0.048617344349622726, 0.005568258929997683, -0.006718261167407036, 0.052159879356622696, 0.03761962056159973, 0.0032979953102767467, -0.020620733499526978, 0.00604412192478776, -0.013628189451992512, 0.013152326457202435, 0.018267855048179626, -0.04153227061033249, 0.0014028046280145645, -0.0015647303080186248, -0.006321708671748638, 0.00594828836619854, -0.019893718883395195, -0.030587419867515564, 0.0334954708814621, 0.012081634253263474, 0.0277322418987751, -0.013092843815684319, 0.029054082930088043, 0.015346583910286427, -0.024810971692204475, 0.046317338943481445, 0.01964256912469864, 0.006325013004243374, -0.004999866709113121, -0.031406961381435394, 0.009292548522353172, -0.002959273522719741, 0.03730237856507301, 0.006794266868382692, 0.05768517777323723, 0.003535927040502429, 0.007831912487745285, -0.05699782073497772, 0.015809228643774986, 0.043700091540813446, -0.04803573340177536, -0.007871568202972412, 0.006847140844911337, 0.017818428575992584, 0.029556384310126305, -0.0024272319860756397, -0.058213915675878525, 0.0017828341806307435, 0.0017828341806307435, -0.015796009451150894, -0.03172420337796211, -0.0255512036383152, -0.044678255915641785, 0.012841693125665188, 0.04687251150608063, 0.008697719313204288, -0.012167554348707199, -0.03143339976668358, -0.04999205842614174, -0.01317876297980547, 0.027058102190494537, 0.01709141582250595, 0.027864426374435425, -0.017977049574255943, -0.04147939756512642, 0.020501766353845596, 0.003045193152502179, -0.03809548169374466, -0.054988618940114975, -0.015452330932021141, 0.01018479187041521, -0.005551735870540142, -0.03336328640580177, 0.03619202971458435, 0.034896623343229294, -0.026925917714834213, -0.022775335237383842, -0.027150630950927734, 0.002549502532929182, -0.015187962912023067, 0.0204092375934124, -0.023766716942191124, -0.0006943800253793597, -0.015320147387683392, 0.014209799468517303, 0.003810209222137928, -0.011956059373915195, -0.002093466930091381, 0.021387401968240738, -0.030640294775366783, -0.011149736121296883, 0.04562998190522194, -0.025366144254803658, -0.002921270439401269, 0.026463273912668228, -0.03772536665201187, 0.02614603191614151, -0.040369048714637756, -0.04280123859643936, -0.036429960280656815, -0.09184157103300095, -0.03656214475631714, -0.05213344097137451, 0.03595409914851189, 0.01768624410033226, -0.00029514249763451517, 0.024493729695677757, -0.00013796724670100957, 0.02025061659514904, 0.022312689572572708, -0.054116204380989075, -0.003787076799198985, -0.014579915441572666, -0.07471050322055817, -0.023013265803456306, 0.04679320007562637, 0.02684660814702511, -0.017183944582939148, -0.008710937574505806, 0.04142652451992035, 0.02047532983124256, -0.03598053380846977, 0.061756450682878494, 0.022907519713044167, 0.00523779820650816, 0.020435674116015434, -0.05152539536356926, -0.012075025588274002, 0.019497167319059372, 0.0054724253714084625, 0.014170144684612751, -0.005624437239021063, -0.003440093481913209, 0.04007824510335922, 0.04192882403731346, 0.003985353279858828, -0.016086814925074577, -0.01588853821158409, -0.07217256724834442, -0.012240255251526833, 0.005072568077594042, -0.04108284413814545, -0.03272880241274834, -0.02778511494398117, 0.014619571156799793, 0.005826017819344997, 0.03563685715198517, -0.02892190031707287, 0.016179343685507774, 0.018743718042969704, -2.3893840989330783e-05, -0.054988618940114975, -0.058055292814970016, 0.0005543474107980728, -0.006338231731206179, 0.024652350693941116, -0.008677891455590725, 0.03450007364153862, 0.03344259783625603, -0.026621894910931587, 0.014540260657668114, -0.024810971692204475, -0.011638817377388477, -0.01018479187041521, -0.02265636995434761, -0.012180772610008717, 0.013225027360022068, 0.00033066701143980026, -0.022233380004763603, 0.011572725139558315, 0.039338015019893646, 0.029556384310126305, 0.039390888065099716, 0.009616399183869362, 0.01296726893633604, 0.01077962014824152, -0.029027646407485008, 0.007091681472957134, 0.046264465898275375, 0.004596705082803965, 0.02881615236401558, -0.02002590335905552, 0.004666101653128862, -0.015505204908549786, 0.005750012118369341, 0.004596705082803965, 0.0015680348733440042, -0.03772536665201187, 0.016800610348582268, 0.008710937574505806, 0.04679320007562637, -0.03693225979804993, 0.008777029812335968, -0.00269490503706038, 0.007137945853173733, 0.0017068282468244433, 0.031142594292759895, 0.05578172579407692, -0.02194257453083992, 0.0038796057924628258, 0.05583459883928299, 0.1138898953795433, 0.009907204657793045, -0.05387827381491661, -0.06640933454036713, 0.03159201890230179, -0.04681963846087456, 0.056521955877542496, 0.030587419867515564, -0.027467872947454453, -0.01522761769592762, 0.0006237440975382924, -0.04161158204078674, 0.0069594974629580975, 0.04634377360343933, -4.4147451262688264e-05, 0.010977896861732006, 0.04676676541566849, 0.048775963485240936, -0.026159249246120453, 0.005968115758150816, 0.00272299419157207, 0.012273301370441914, -0.016959231346845627, -0.03973456472158432, 0.004081186838448048, 0.004471130203455687, -0.035716164857149124, 0.016575897112488747, -0.04073916748166084, 0.04065985605120659, -0.013191981241106987, 0.0347115658223629, -0.07497487217187881, 0.023383382707834244, 0.014368420466780663, 0.02794373594224453, -0.01348278671503067, -0.027547184377908707, -0.07037486135959625, -0.011592552997171879, -0.01758049614727497, 0.05157826840877533, 0.03341616317629814, 0.0008649802766740322, -0.04777136445045471, -0.0258155707269907, -0.05509436875581741, 0.04229893907904625, -0.03164489194750786, -0.0317506417632103, 0.006407628301531076, 0.00018691670265980065, -0.018426476046442986, -0.045709289610385895, 0.05020355433225632, 0.014183362945914268, 0.024929936975240707, -0.04502193257212639, 0.051604706794023514, -0.008195419795811176, -0.011724737472832203, 0.0010070782154798508, 0.027362126857042313, 0.019801190122961998, -0.044889748096466064, -0.01730290986597538, 0.019840845838189125, -0.017593715339899063, -0.02804948389530182, -0.047454122453927994, -0.023872463032603264, 0.014090834185481071, 0.0027692585717886686, 0.013033360242843628, -0.01768624410033226, -0.004785067401826382, -0.0047982861287891865, 0.041400086134672165, 0.029450636357069016, -0.019669007509946823, 0.04195525869727135, 0.02117590606212616, 0.05266217887401581, -0.018637970089912415, -0.037143755704164505, 0.06371277570724487, 0.0156109519302845, -0.0306138563901186, -0.028234541416168213, 0.017699461430311203, -0.07211969047784805, 0.03106328286230564, 0.027058102190494537, 0.0010814318666234612, 0.07434038817882538, -0.029106957837939262, -0.01654946058988571, -2.552032492530998e-05, -0.013760373927652836, 0.013158935122191906, 0.006724870298057795, 0.004081186838448048, -0.007607199717313051, 0.008492833934724331, 0.0024272319860756397, 0.002314875600859523, -0.001741526648402214, 0.06693807244300842, -0.02489028126001358, 0.043250665068626404, 0.013760373927652836, 0.03389202430844307, 0.056310463696718216, 0.010079043917357922, 0.0003688764991238713, -0.011156344786286354, 0.001260706689208746, -0.008552316576242447, -0.021625332534313202, 0.011632207781076431, -0.0008315211161971092, -0.00958335306495428, -0.01801670528948307, -0.02559085749089718, -0.02752074785530567, 0.009570134803652763, -0.0026238560676574707, 0.038624219596385956, 0.0511024072766304, -0.00144328607711941, -0.006106909364461899, 0.010581344366073608, 0.04433457553386688, -0.003516099415719509, 0.0011557855177670717, -0.025286834686994553, -0.007289957720786333, 0.001361497095786035, 0.006539812311530113, 0.009827894158661366, -0.01998624950647354, 0.05757943168282509, -0.008585362695157528, 0.007111509330570698, -0.0007435360457748175, 0.027097757905721664, 0.03159201890230179, -0.006106909364461899, -0.006344840861856937, 0.06566910445690155, 0.012101462110877037, 0.025670168921351433, 0.008254902437329292, -0.0038796057924628258, -0.04163801670074463, 0.01582244597375393, -0.0017068282468244433, 0.015452330932021141, 0.008050017058849335, -0.0039820484817028046, 0.018968431279063225, -0.015108652412891388, 0.03849203512072563, -0.017276473343372345, -0.0047751534730196, 0.022828208282589912, -0.032993171364068985, 0.02593453787267208, 0.011678473092615604, 0.0021546022035181522, -0.008942260406911373, -0.01784486509859562, 0.03978743776679039, -0.014540260657668114, 0.0021529498044401407, 0.012094852514564991, -0.0014201538870111108, 0.007111509330570698, 0.012015542015433311, -0.004834636580199003, 0.025471892207860947, 0.004203456919640303, -0.016404056921601295, 0.011506632901728153, 0.021982230246067047, 0.03973456472158432, -0.016774173825979233, -0.012015542015433311, -0.009656054899096489, 0.015452330932021141, 0.0641886368393898, -0.04245756193995476, -0.050467923283576965, 0.03997249901294708, 0.013985087163746357, 0.016298310831189156, 0.04999205842614174, -0.004907337948679924, -0.03182995319366455, 0.05921851471066475, -0.028075920417904854, 0.007441969588398933, -0.012656635604798794, 0.01632474735379219, 0.012002323754131794, -0.014857502654194832, 0.034077081829309464, -0.05726218968629837, -0.033918462693691254, -0.00815576408058405, -0.029873626306653023, 0.006741393357515335, -0.021360963582992554, -0.027097757905721664, -0.041400086134672165, -0.02091153711080551, 0.011645426973700523, -0.01039628591388464, -0.009788238443434238, 0.03320466727018356, 0.0020819008350372314, 0.007164382841438055, -0.009219846688210964, 0.04214031621813774, 0.018743718042969704, -9.474920807406306e-05, 0.03674720227718353, -0.015055778436362743, -0.008314385078847408, -0.012610371224582195, 0.015386238694190979, 0.04721619188785553, -0.017725899815559387, -0.022616714239120483, 0.0028072616551071405, -0.000620852573774755, -0.020343145355582237, 0.007329612970352173, 0.004656187724322081, -0.029292015358805656, -0.004834636580199003, -0.029952935874462128, -0.0009376815869472921, -0.02046211250126362, 0.02609315887093544, -0.014593133702874184, -0.015901757404208183, -0.001073170336894691, -0.013225027360022068, 0.04092422500252724, 0.014738536439836025, -0.016628770157694817, 0.001217746757902205, 0.02871040441095829, -0.028023047372698784, -0.017382219433784485, 0.023211542516946793, -0.02663511410355568, 0.013462958857417107, -0.010601171292364597, -0.011420713737607002, -0.006645559798926115, 0.028128795325756073, -0.03777823969721794, -0.010178182274103165, 0.021162688732147217, 0.02544545568525791, -0.028736840933561325, 0.014646007679402828, -0.021189125254750252, 0.012352611869573593, 0.007673291955143213, 0.00012196056195534766, -0.0021727774292230606, -0.005260930396616459, -0.011691691353917122, 0.0011194348335266113, -0.0011466977884992957, 0.011566116474568844, 0.0030204085633158684, 0.0019745011813938618, 0.023211542516946793, -0.02073969878256321, 0.0026155945379287004, 0.0001970370503840968, -0.011552897281944752, -0.014289109967648983, -0.0002645749191287905, -0.0114669781178236, 0.002893181284889579, 0.01154628861695528, 0.013852902688086033, 0.015624170191586018, 0.04557710513472557, 0.004930470138788223, 0.0011029117740690708, -0.00010388850932940841, -0.040527671575546265, 0.00957674439996481, 0.01871727965772152, -0.0007195776561275125, 0.0594828836619854, -0.007593981456011534, 0.04925182834267616, 0.03487018868327141, 0.010958069004118443, -0.002303309505805373, 0.013733936473727226, 0.0127756018191576, -0.0002914248325396329, 0.021546022966504097, -0.019470730796456337, -0.0156109519302845, -0.013165544718503952, -0.030983973294496536, -0.01660233363509178, -0.002410709159448743, -0.013191981241106987, 0.02614603191614151, -0.0042464169673621655, -0.011169563978910446, 0.008869558572769165, 0.017064977437257767, -0.01200893335044384, -0.0075675444677472115, 0.03722306713461876, 0.015082215890288353, -0.003483053296804428, 0.035293176770210266, -0.019933374598622322, 0.003724289359524846, 0.008591972291469574, -0.017038540914654732, 0.0493575744330883, -0.03040236234664917, 0.018466129899024963, 0.027758678421378136, -0.014368420466780663, 0.009543698281049728, 0.0013780201552435756, 0.05567597970366478, -0.04153227061033249, -0.034738004207611084, 0.0242425799369812, 0.0516311414539814, 0.020316708832979202, 0.026516146957874298, -0.0076005905866622925, -0.03399777412414551, -0.019246017560362816, -0.018519004806876183, 0.028578219935297966, 0.004553745035082102, -0.030693167820572853, 0.01958969607949257, -0.05120815336704254, 0.007012370973825455, -0.027256378903985023, 0.002257044892758131, -0.021955793723464012, 0.029609257355332375, 0.02128165401518345, -0.013654625974595547, 0.02183682657778263, -0.022008666768670082, -0.02368740551173687, 0.05757943168282509, 0.0012020498979836702, 0.014778192155063152, -0.0017580497078597546, 0.015042560175061226, 0.023753497749567032, 0.020210962742567062, -0.023819589987397194, 0.010059216059744358, -0.009841112419962883, 0.022801771759986877, 0.004884205758571625, 0.010561516508460045, -0.022828208282589912, 0.022392001003026962, -0.04525986313819885, 0.0217178612947464, -0.009669273160398006, -0.014751754701137543, 0.008433351293206215, -0.00027345604030415416, 0.032993171364068985, -0.008036798797547817, -0.02255062200129032, 0.009986515156924725, 0.036271341145038605, -0.0022256511729210615, 0.01697244867682457, -0.023013265803456306, 0.03788398578763008, -0.010944850742816925, 0.02330407127737999, 0.027150630950927734, 0.020396020263433456, -0.0002994797832798213, -0.038888588547706604, -0.011585943400859833, 0.017263254150748253, -0.018902339041233063, 0.00544598838314414, 0.014341983944177628, 0.03487018868327141, -0.020118432119488716, 0.027705805376172066, -0.0028898767195641994, -0.012623589485883713, 0.012167554348707199, 0.013720718212425709, 0.007448578719049692, 0.023185105994343758, -0.022087976336479187, -0.006880186963826418, 0.0026238560676574707, -0.0027940431609749794, 0.013231636956334114, 0.03344259783625603, -0.012973877601325512, -0.006807485595345497, -0.0021760822273790836, -0.0033756536431610584, 0.0019745011813938618, 0.019854065030813217, 0.06577485054731369, -0.06794267147779465, -0.003339302958920598, -0.0022983525414019823, -0.0013961954973638058, 0.014368420466780663, -0.02063395082950592, -0.012319565750658512, 0.0264236181974411, 0.014170144684612751, -0.0105086425319314, -0.011314965784549713, -0.0038663872983306646, -0.02794373594224453, 0.02614603191614151, 0.003489662427455187, 0.011255483143031597, -0.03693225979804993, -0.02952994592487812, 0.030746040865778923, -0.03143339976668358, 0.010462378151714802, -0.0031030236277729273, -0.0664622113108635, 0.027864426374435425, 0.011030769906938076, -0.011837094090878963, 0.009642836637794971, -0.02166498824954033, 0.002266958821564913, 0.0373288132250309, -0.006417542230337858, 0.004692538641393185, -0.04777136445045471, 0.00313772214576602, 0.024361545220017433, 0.018902339041233063, -0.015862101688981056, 0.007911222986876965, 0.016575897112488747, 0.04073916748166084, -0.011116690002381802, 0.04002537205815315, -0.025128213688731194, 0.019113833084702492, -0.011863530613481998, 0.008400305174291134, -0.04208744317293167, -0.02630465291440487, -0.05223919078707695, -0.01208824384957552, 0.0528472363948822, -0.011843702755868435, 0.013529051095247269, -0.02253740280866623, 0.02799661085009575, -0.00943795032799244, 0.016033941879868507, 0.011889967136085033, -0.00013373322144616395, 0.02482418902218342, 0.015386238694190979, 0.030375925824046135, -0.04528630152344704, 0.012431922368705273, -0.013747154735028744, -0.013535660691559315, -0.004527308512479067, 0.035451799631118774, -0.012643417343497276, 0.011757783591747284, 0.00156886107288301, -0.05530586466193199, -0.02085866406559944, 0.003661501919850707, 0.01555807888507843, -0.035716164857149124, -0.043356411159038544, -0.014738536439836025, -0.02047532983124256, 0.036456398665905, -0.00044818699825555086, -0.01047559641301632, 0.02346269227564335, -0.017818428575992584, -0.013826466165482998, -0.03833341225981712, 0.0002542480069678277, 0.015597733668982983, -0.03711731731891632, -0.05007136985659599, 0.013733936473727226, -0.0014978119870647788, 0.035187430679798126, 0.03320466727018356, 0.028075920417904854, -0.026621894910931587, 0.01643049344420433, 0.020343145355582237, 0.020488549023866653, 0.03307248279452324, -0.034579381346702576, -0.009477606043219566, -0.013158935122191906, 0.0009343769634142518, -0.008611799217760563, 0.009715537540614605, -0.04372652992606163, -0.0044083427637815475, -0.026383962482213974, -0.047189753502607346, 0.018955212086439133, 0.00253132707439363, 0.0007274260860867798, -0.010819275863468647, -0.024427637457847595, 0.01773911714553833, 0.032226502895355225, 0.03656214475631714, -0.016496585682034492, -0.019034521654248238, -0.005769839510321617, -0.01394543144851923, -0.00845978781580925, -0.012815256603062153, -0.038624219596385956, -0.0032203372102230787, -0.006946278735995293, -0.0320943184196949, 0.018637970089912415, -0.0018274463945999742, 0.007005761843174696, -0.05535873770713806, -0.03701157122850418, 0.005459206644445658, -0.015108652412891388, 0.002448712009936571, 0.003483053296804428, -0.04163801670074463, -0.023171886801719666, 0.02145349234342575, 0.01378681045025587, -0.030904661864042282, 0.011718127876520157, 0.02331729047000408, 0.05065298080444336, -0.01866440661251545, -0.040633417665958405, -0.014500604942440987, 0.043858710676431656, 0.019576476886868477, 0.031221903860569, 0.05136677250266075, 0.010376458056271076, -0.03500237315893173, -0.011281920596957207, -0.03674720227718353, 0.010911804623901844, 0.0647173747420311, 0.0788346454501152, 0.010178182274103165, 0.029027646407485008, -0.009543698281049728, -0.002569330157712102, -0.005571563262492418, -0.01576957292854786, 0.0020422455854713917, -0.01992015726864338, -0.01329111959785223, 0.011566116474568844, -0.01670808158814907, 0.04983343929052353, -0.01304657943546772, -0.013284510932862759, -0.005260930396616459, -0.005181619897484779, 0.013588533736765385, -0.009477606043219566, -0.030058683827519417, -0.0014928551390767097, -0.018241416662931442, 0.015862101688981056, 0.03666789457201958, -0.02958282083272934, -0.023158669471740723, 0.024057522416114807, 0.006070558447390795, -0.06403002142906189, 0.02717706747353077, -0.02440120093524456, -0.039655257016420364, -0.005601305048912764, -0.04896102100610733, 0.04071272909641266, 0.02222016081213951, -0.02384602651000023, -0.01285491231828928, -0.02871040441095829, -0.015320147387683392, 0.046475958079099655, -0.005627741571515799, -0.001429241499863565, 0.002324789296835661, 0.02391211874783039, 0.025630513206124306, -0.006282053422182798, 0.0044347792863845825, 0.013145716860890388, -0.017659807577729225, -0.020131651312112808, 0.004996562376618385, 0.007104899734258652, -0.0030435407534241676, 0.011863530613481998, 0.013628189451992512, -0.030904661864042282, -0.03743455931544304, -0.006635645870119333, 0.005611218512058258, -0.026027066633105278, 0.026701204478740692, 0.013681063428521156, 0.007527889218181372, -0.04105640947818756, 0.0047949813306331635, 0.008433351293206215, -0.014844284392893314, -0.01468566246330738, -0.0038432551082223654, 0.0060209897346794605, 0.010059216059744358, -0.013588533736765385, -0.007686510216444731, -0.01241209451109171, 0.0014085876755416393, -0.0016266916645690799, -0.0009748583543114364, -0.011129908263683319, 0.022180506959557533, 0.02728281542658806, -0.030111556872725487, -0.02968856878578663, -0.01015174575150013, -0.0162189994007349, 0.02095119282603264, 0.019893718883395195, 0.02570982463657856, 0.02576269768178463, 0.0025957669131457806, 0.045709289610385895, -0.0007625375292263925, -0.018360383808612823, 0.019179925322532654, -0.008823294192552567, -0.011744564399123192, 0.015465549193322659, 0.004943688400089741, -0.0017481358954682946, -0.02942419983446598, 0.029926499351859093, -0.018862683326005936, 0.010211228393018246, 0.002043897984549403, -0.008492833934724331, -0.011744564399123192, -0.0236345324665308, 0.029212703928351402, 0.002708123531192541, 0.025471892207860947, 0.03405064716935158, -0.027203505858778954, 0.0012788820313289762, -0.04346216097474098, -0.0003143505018670112, 0.008387086912989616, 0.004210066050291061, 0.002936141099780798, -0.02177073433995247, 0.006133346352726221, -0.00637127785012126, 0.013377039693295956, 0.03426213935017586, -0.03531961515545845, -0.018135670572519302, -0.008340821601450443, 0.005360068753361702, -0.029715005308389664, 0.023290853947401047, -0.03143339976668358, -0.0277322418987751, 0.0028353508096188307, 0.01206180639564991, 0.008096281439065933, 0.015280491672456264, 0.03711731731891632, -0.043700091540813446, 0.0005229536909610033, 0.022193724289536476, -0.01001295167952776, 0.007012370973825455, -0.005366677884012461, 0.006377886980772018, 0.009530480019748211, 0.023608095943927765, -0.015967849642038345, -0.017765553668141365, -0.03502880781888962, -0.030085120350122452, -0.005555040203034878, 0.04660814255475998, 0.02553798444569111, -0.003668111050501466, -0.005558345001190901, -0.0028089138213545084, -0.004930470138788223, -0.025894882157444954, -0.006149869412183762, -0.00799714308232069, 0.011281920596957207, 0.00013631493493448943, -0.010568125173449516, 0.0062357890419662, -0.005574868060648441, 0.04425526410341263, -0.017567278817296028, 0.0034995763562619686, 0.019232798367738724, 0.020713262259960175, 0.01746153086423874, 0.023185105994343758, 0.009186800569295883, 0.0005080829723738134, 0.00500647583976388, 0.034526508301496506, 0.00996007863432169, 0.009702319279313087, -0.0029724917840212584, 0.004054749850183725, -0.0013193633640184999, 0.018135670572519302, -0.010541688650846481, -0.019893718883395195, -0.040474798530340195, 0.01471209991723299, -0.004768544342368841, 0.015981068834662437, -0.0021678206976503134, 0.016496585682034492, 0.027917299419641495, 0.0036119327414780855, -0.029027646407485008, 0.018029922619462013, 0.0032203372102230787, 0.011956059373915195, 0.020396020263433456, 0.019364982843399048, 0.008129327557981014, -0.023211542516946793, -0.01789773814380169, 0.026172468438744545, -0.034420762211084366, -0.0011962668504565954, 9.578189929015934e-05, 0.02309257723391056, 0.01070030964910984, 0.014077615924179554, 0.013489396311342716, 0.027705805376172066, 0.01018479187041521, -0.014500604942440987, -0.023991430178284645, 0.01220060046762228, -0.006377886980772018, 0.0108589306473732, -0.0077592115849256516, -0.016523022204637527, 0.027203505858778954, 0.03653571009635925, 0.007983924821019173, -0.05958862975239754, 0.02128165401518345, -0.004642969463020563, 0.047084007412195206, 0.01514830719679594, 0.006394410040229559, -0.00027738025528378785, -0.006731479428708553, 0.0018505785847082734, 0.007369268219918013, -0.0016333007952198386, 0.008149155415594578, -0.008631627075374126, 0.005935070104897022, 0.011526460759341717, 0.007501452695578337, -0.030164431780576706, 0.008710937574505806, -0.0059086331166327, -0.025313271209597588, -0.03301960974931717, -0.006814094725996256, 0.0023347032256424427, 0.002597419312223792, 0.03537248820066452, 0.0043092044070363045, 0.03598053380846977, 0.010350021533668041, -0.0012458359124138951, 0.040580544620752335, 0.0030468455515801907, -0.016774173825979233, 0.0182281993329525, -0.010198010131716728, 0.011751173995435238, -0.01525405514985323, -0.004487653262913227, -0.015187962912023067, -0.0230264849960804, -0.020210962742567062, 0.0032748631201684475, 0.01873049885034561, -0.021546022966504097, -0.020752916112542152, -0.005558345001190901, -0.01845291256904602, 0.016800610348582268, -0.008241684176027775, 0.0026916004717350006, 0.0018770154565572739, 0.0001930095604620874, 0.016959231346845627, 0.025419019162654877, 0.020819008350372314, -0.028631094843149185, -0.03235868737101555, 0.011037379503250122, 0.01937820203602314, 0.010303757153451443, -0.004940384067595005, -0.0017018713988363743, -0.036112718284130096, 0.008373867720365524, 0.0004374470445327461, 0.026555802673101425, -0.002473496599122882, -0.01012530829757452, -0.025352926924824715, 0.008102890104055405, 0.021056940779089928, -0.0021298176143318415, -0.026185687631368637, 0.0008732417481951416, 0.006394410040229559, -0.007369268219918013, -0.014434512704610825, -0.017012104392051697, -0.031089719384908676, -0.023660968989133835, -0.029292015358805656, -0.014011523686349392, -0.005911937449127436, -0.023594876751303673, -0.008935650810599327, 0.016575897112488747, -0.014394857920706272, 0.029662130400538445, -0.006919842213392258, -0.010839102789759636, -0.0033905243035405874, 0.001910061459057033, -0.009589962661266327, 0.007706338074058294, 0.007005761843174696, -0.012901176698505878, -0.01746153086423874, 0.03516099229454994, -0.0077592115849256516, 0.014223018661141396, -0.0006873577367514372, -0.02762649394571781, -0.009715537540614605, -0.009259502403438091, -0.010792838409543037, 0.014196581207215786, 0.0048908148892223835, -0.006288662552833557, 0.016800610348582268, -0.005687224678695202, 0.007190819829702377, 0.019404638558626175, -0.018360383808612823, 0.024929936975240707, -0.061439208686351776, -0.006529898848384619, 0.00511883245781064, 0.004457911476492882, 0.02635752595961094, -0.01220060046762228, -0.009847722016274929, 0.020316708832979202, -5.5455395340686664e-05, -0.00303032249212265, -0.06392427533864975, -0.02303970418870449, 0.004206761717796326, 0.020660387352108955, 0.0060540358535945415, 0.005251016933470964, -0.0025676777586340904, -0.024427637457847595, 0.04346216097474098, 0.0277322418987751, -0.022722462192177773, 0.03220006823539734, 0.004847854841500521, -0.012451750226318836, -8.901778346626088e-05, 0.05316447839140892, -0.041505832225084305, -0.0014416337944567204, 0.018162107095122337, -0.01674773544073105, -0.027917299419641495, 0.004117537289857864, -0.01632474735379219, 0.0023826200049370527, 0.02358165942132473, 0.013529051095247269, 0.010158354416489601, -0.027362126857042313, 0.01665520668029785, -0.06519324332475662, -0.028208104893565178, 0.010277320630848408, -0.028366725891828537, 0.0007633636705577374, 0.018241416662931442, -0.0014639399014413357, -0.019338546320796013, -0.01604715920984745, 0.02674086019396782, 0.018690843135118484, 0.041241466999053955, -0.021678205579519272, 0.007501452695578337, 0.024599477648735046, 0.035293176770210266, -0.017778772860765457, -0.007957488298416138, -0.018254635855555534, 0.009986515156924725, -0.0032368602696806192, -0.051446083933115005, -0.038624219596385956, 0.012207209132611752, 0.010964677669107914, -0.015042560175061226, -0.00308980536647141, 0.015412676148116589, -0.0033310414291918278, 0.022140851244330406, -0.037910424172878265, 0.009715537540614605, 0.031354088336229324, 0.004937079269438982, 0.0035194039810448885, 0.03180351480841637, -0.01440807618200779, -0.059800125658512115, 0.01697244867682457, -0.04576216638088226, 0.025789134204387665, 0.019550040364265442, 0.02609315887093544, -0.03775180131196976, -0.0020323318894952536, -0.005898719187825918, -4.776186324306764e-05, 0.0019398028962314129, -0.009748583659529686, 0.015914976596832275, -0.021638551726937294, -0.011348011903464794, -0.02717706747353077, 0.03394489735364914, 0.010905195027589798, 0.018426476046442986, -0.003757335478439927, 0.014447730965912342, 0.013522442430257797, 0.018043141812086105, -0.01479141041636467, 0.028525346890091896, 0.012577325105667114, 0.0210172850638628, 0.01348278671503067, 0.004937079269438982, 0.02194257453083992, -0.02215406857430935, -0.00962961744517088, 0.006807485595345497, -0.019232798367738724, -0.01509543415158987, 0.0020719871390610933, -0.014143708162009716, -0.011671863496303558, -0.0030352792236953974, 0.0028981382492929697, -0.0017861387459561229, -0.006367973051965237, 0.027811553329229355, -0.023951774463057518, 0.05342884734272957, -0.016628770157694817, -0.030428798869252205, -0.03656214475631714, 0.007686510216444731, 0.008023579604923725, 0.03389202430844307, -0.01709141582250595, 0.027970174327492714, 0.00927932932972908, -0.0060507310554385185, 0.016800610348582268, 0.025088557973504066, -0.002944402629509568, -0.008869558572769165, -0.0169195756316185, -0.039047207683324814, -0.004143974278122187, -0.018043141812086105, 0.008578754030168056, -0.004160497337579727, -0.012326175346970558, 0.05615184083580971, 0.008439959958195686, -0.025313271209597588, -0.031909260898828506, 0.005548431072384119, 0.009867548942565918, 0.04869665205478668, -0.02844603732228279, -0.0004013029101770371, 0.008948869071900845, -0.0005270844558253884, -0.027811553329229355, 0.026648331433534622, -0.028736840933561325, 0.007045417092740536, -0.011103471741080284, 0.008611799217760563, -0.0333104133605957, -0.00239583826623857, -0.0027362126857042313, 0.014223018661141396, -0.013733936473727226, 0.024956373497843742, 0.011903185397386551, 0.00035586461308412254, 0.038729965686798096, 0.007356049958616495, 0.03481731563806534, -0.029450636357069016, 0.01479141041636467, 0.00765346409752965, -0.023832809180021286, 0.03547823429107666, -0.005366677884012461, -0.01468566246330738, -0.03116903081536293, -0.027388563379645348, -0.007898004725575447, -0.0359276607632637, 0.04711044207215309, 0.004190238658338785, 0.007772429846227169, 0.0027196896262466908, 0.0011847007554024458, -0.004322422668337822, 0.019034521654248238, -0.00125161895994097, -0.0326230563223362, -0.016417276114225388, -0.047295499593019485, -0.024163268506526947, -0.01653624139726162, 0.020594295114278793, 0.0008269773097708821, 0.048670217394828796, -0.0249431561678648, 0.020316708832979202, 0.010997723788022995, 0.011169563978910446, -0.010766401886940002, -0.013971867971122265, 0.0108589306473732, 0.009953469038009644, -0.020607514306902885, -0.025855226442217827, -0.01669486239552498, -0.016390839591622353, -0.014156926423311234, 0.007838522084057331, -0.01932532712817192, -0.019735097885131836, 0.002410709159448743, 0.02407073974609375, -0.012696291320025921, 0.03291386365890503, 0.028234541416168213], "id": 88}, {"title": "Tsq'altubo", "text": "Tsq'altubo, located in the north of Imereti region of Western Georgia, is a resort situated about 30 km northwest to the city of Kutaisi.et:Tskaltuboka:\u10ec\u10e7\u10d0\u10da\u10e2\u10e3\u10d1\u10ddfi:Tsqaltubo", "vector": [0.014487741515040398, 0.023813346400856972, -0.020972061902284622, -0.0013942692894488573, 0.04062194004654884, 0.004290059674531221, -0.004328740295022726, -0.0056368568912148476, -0.02599354088306427, 0.023166321218013763, 0.005313344299793243, -0.008544954471290112, -0.0009766918374225497, 0.011161187663674355, -0.03448926657438278, 0.014129064977169037, -0.034826844930648804, -0.01925603672862053, 0.022941268980503082, 0.013735223561525345, -0.014656530693173409, 0.008390231058001518, 0.009311539120972157, 0.032688844949007034, -0.01195590291172266, -0.020915798842906952, -0.0248964112251997, -0.007926060818135738, 0.012954573146998882, -0.02237863838672638, -0.04104391485452652, -0.017483750358223915, 0.014072801917791367, 0.006530032958835363, -0.02118304744362831, 0.020381297916173935, -0.02911614067852497, 0.006417506840080023, 0.005608725361526012, 0.016372554004192352, -0.007082114461809397, 0.03828702121973038, 0.006980137899518013, 0.05522220954298973, -0.0030680957715958357, -0.03873712569475174, -0.017638474702835083, -0.008256605826318264, 0.033898502588272095, 0.0034179817885160446, 0.010774378664791584, -0.0040825894102454185, 0.00025692005874589086, 0.00429709255695343, 0.03440487012267113, -0.008066718466579914, -0.009937465190887451, 0.1251290738582611, 0.00907945353537798, 0.016710132360458374, 0.00878407247364521, -0.004912469536066055, 0.01822923682630062, -0.0004303246096242219, 0.04529177397489548, 0.007504087407141924, 0.010830641724169254, -0.01393214426934719, -0.07083521038293839, 0.024769818410277367, 0.04565748572349548, 0.04852690175175667, 0.009065387770533562, 0.010239879600703716, 0.029256798326969147, 0.023939939215779305, -0.0011111957719549537, 0.022336440160870552, -0.005126972682774067, -0.0040192934684455395, 0.005257081240415573, -0.009199013002216816, -0.029960086569190025, 0.0025283219292759895, 0.04034062474966049, 0.03809010237455368, -0.08090630173683167, -0.05443452298641205, 0.015162898227572441, 0.009156815707683563, 0.028764497488737106, -0.02183007262647152, -0.03327960893511772, -0.005577077157795429, -0.029284929856657982, 0.04458848759531975, 0.01925603672862053, 0.016499146819114685, -0.006835963577032089, 0.06661547720432281, 0.011977002024650574, -0.034939371049404144, 0.01669606752693653, 0.011308877728879452, 0.05696636438369751, -0.009163848124444485, 0.03907470405101776, 0.017497817054390907, 0.040790729224681854, 0.03496750071644783, 0.016780462116003036, 0.013988407328724861, -0.022674018517136574, -0.042112912982702255, -0.05828854441642761, -0.014867517165839672, -0.012631060555577278, -0.025135528296232224, -0.011794147081673145, -0.0017801988869905472, -0.03316708281636238, -0.008734842762351036, 0.021154915913939476, -0.028159668669104576, 0.000808781711384654, -0.010999430902302265, 0.00126504001673311, 0.012764684855937958, 0.0037203957326710224, 0.04416651278734207, -0.0012808640021830797, -0.06504011154174805, -0.0099866958335042, -0.008256605826318264, 0.006786733400076628, -0.006132675334811211, -0.009487360715866089, 0.04306938499212265, -0.0023946971632540226, -0.01458620186895132, -0.046979665756225586, 0.020339101552963257, -0.02627485617995262, -0.004202148411422968, -0.058626122772693634, -0.02085953578352928, -0.023110058158636093, -0.028975483030080795, 0.01730089634656906, 0.0016140469815582037, 0.03944041579961777, -0.027160998433828354, -0.02692188136279583, 0.03125413879752159, 0.04093138501048088, 0.06402737647294998, -0.03763999789953232, 0.02981942892074585, 0.006487835664302111, -0.011688653379678726, -0.04301312193274498, -0.020972061902284622, 0.03688044473528862, -0.030382059514522552, 0.05257784202694893, -0.042056649923324585, -0.00936076883226633, 0.04830184951424599, 0.022350506857037544, 0.001958658220246434, 0.03854020684957504, -0.02237863838672638, 0.0009125167271122336, -0.027822090312838554, 0.015008174814283848, -0.008270671591162682, -0.0242353193461895, -0.0041810497641563416, 0.048948876559734344, 0.013116328977048397, -0.04247862100601196, -0.06661547720432281, 0.00919197965413332, -0.010253945365548134, -0.009431097656488419, -0.0050390614196658134, 0.02358829416334629, 0.01910131424665451, 0.07139784097671509, -0.03744307532906532, -0.03626155108213425, 0.01189963985234499, -0.027428248897194862, -0.021745678037405014, 0.009445163421332836, 0.01739935576915741, -0.024474438279867172, 0.07634899020195007, 0.010387570597231388, -0.02402433380484581, -0.022406769916415215, 0.02561376430094242, -0.03432047739624977, 0.006698822136968374, 0.023335110396146774, -0.00018285498663317412, -0.018355827778577805, 0.01679452694952488, -0.005235982593148947, 0.002081733662635088, -0.03960920497775078, -0.019762404263019562, -0.006628493312746286, 0.006681240163743496, 0.04509485512971878, 0.006586296018213034, 0.024333780631422997, -0.035276949405670166, 0.04180346429347992, 0.04962403327226639, 0.060820382088422775, 0.014037637040019035, 0.0021573372650891542, -0.046810876578092575, 0.038990311324596405, 0.01680859364569187, -0.014445544220507145, 0.00407555652782321, -0.003036447800695896, 0.04863942787051201, 0.02232237532734871, -0.036964841187000275, 0.007377495523542166, -0.01904505118727684, -0.02976316586136818, 0.01910131424665451, 0.005837293807417154, -0.01772286929190159, -0.0016843758057802916, 0.001625475357286632, -0.005028512328863144, 0.05043984577059746, 0.0477110855281353, 0.02429158240556717, 0.00206590979360044, 0.009796807542443275, -0.009290440008044243, 0.03398289531469345, -0.023433569818735123, -0.005285212770104408, -0.0054715839214622974, -0.0019252521451562643, 0.025909146293997765, -0.006586296018213034, -0.015134766697883606, -0.02550123818218708, 0.011196351610124111, -0.05274663120508194, -0.006994203664362431, -0.07106026262044907, -0.02298346534371376, -0.007194640580564737, 0.034995634108781815, -0.0407063327729702, 0.01441741269081831, 0.01436114963144064, 0.008741875179111958, -0.020156245678663254, -0.012307547964155674, -0.018918458372354507, -0.00037669888115487993, -0.004979282151907682, 0.023897740989923477, 0.014403346925973892, 0.013418743386864662, 0.04042501747608185, -0.03839954733848572, 0.021028324961662292, -0.011484700255095959, 0.023883674293756485, 0.020592285320162773, -0.021084588021039963, -0.00021867874602321535, 0.04526364430785179, 0.06768447905778885, -0.021900402382016182, 0.020972061902284622, 0.08158145844936371, -0.0033634768333286047, -0.04565748572349548, -0.008059685118496418, 0.026302987709641457, 0.07820567488670349, -0.0029485367704182863, 0.000345490436302498, 0.023180386051535606, -0.008080784231424332, 0.0008795501198619604, 0.0248964112251997, 0.0012369084870442748, 0.04129709675908089, 0.025838816538453102, -0.024713555350899696, -0.012687323614954948, 0.042647410184144974, 0.02970690280199051, 0.01735715940594673, 0.04230983182787895, -0.03173237293958664, -0.00418808264657855, 0.004342806059867144, 0.016020910814404488, -0.04875195398926735, 0.018651209771633148, 0.014129064977169037, 0.019002852961421013, -0.04551682621240616, -0.011618324555456638, -0.09260901808738708, -0.035642657428979874, -0.0013503137743100524, 0.03173237293958664, -0.047964271157979965, -0.03063524328172207, 0.08715150505304337, 0.03184489905834198, 0.00655113160610199, 0.006333112251013517, 0.05845733359456062, -0.0062627834267914295, -0.030128875747323036, 0.007461890112608671, -0.04450409114360809, 0.03108534961938858, 0.03989052027463913, -0.02031097002327442, 0.0017476717475801706, 0.019452957436442375, -0.004191598854959011, 0.04748603329062462, -0.01258182991296053, 0.011020530015230179, 0.044194646179676056, 0.035811446607112885, 0.014185328036546707, 0.006280365865677595, 0.028033077716827393, -0.02341950498521328, -0.00014725101937074214, -0.012068429961800575, 0.0006399924750439823, 0.026907814666628838, -0.032041821628808975, 0.058851175010204315, 0.046698350459337234, 0.007075081579387188, -0.08355066925287247, -0.028483182191848755, 0.05246531590819359, 0.01630222611129284, 0.014129064977169037, -0.017483750358223915, -0.0021801942493766546, 0.015458280220627785, -0.02275841310620308, 0.05752899497747421, 0.02709067054092884, 0.035923972725868225, -0.03676791861653328, 0.005024995654821396, -0.01569739729166031, 0.02523398958146572, -0.03457365930080414, 0.0861387699842453, 0.019284168258309364, -0.032041821628808975, 0.026077935472130775, -0.053984418511390686, 0.04155028238892555, 0.0029327126685529947, -0.028412852436304092, -0.022181717678904533, 0.0355863943696022, -0.012532600201666355, 0.04351948946714401, -0.029200535267591476, -0.014726859517395496, -0.007764304522424936, 0.022420834749937057, 0.0027252426370978355, -0.028145603835582733, 0.043857067823410034, 0.010626688599586487, -0.06616537272930145, 0.015064437873661518, 0.037246156483888626, -0.02510739676654339, -0.009529558010399342, 0.00459598982706666, -0.01061262283474207, 0.03392663225531578, 0.02796274796128273, -0.0531967356801033, 0.030466454103589058, -0.0053414758294820786, -0.025599699467420578, -0.03567079082131386, 0.017005514353513718, -0.03758373484015465, 0.01488158293068409, -0.06549021601676941, -0.06515263766050339, 0.04644516855478287, -0.004965216387063265, 0.02669682912528515, 0.012335679493844509, 0.01228644885122776, 0.017919789999723434, -0.021379968151450157, 0.0007538372883573174, -0.020761074498295784, -0.012631060555577278, -0.030382059514522552, -0.024826081469655037, 0.010753280483186245, -0.008200342766940594, 0.012328646145761013, 0.0034988599363714457, 0.05280289426445961, -0.08495724201202393, 0.028651971369981766, -0.017047710716724396, -0.05238092318177223, 0.005875974893569946, -0.02008591778576374, 0.02544497512280941, 0.024150924757122993, -0.021422166377305984, 0.0018056930275633931, 0.006421023514121771, -0.01834176294505596, -0.0015375643270090222, 0.02917240373790264, 0.0013133911415934563, 0.05992017313838005, 0.01165348943322897, 0.03688044473528862, 0.021914467215538025, 0.041015781462192535, -0.009276374243199825, 0.03983425721526146, 0.06127048656344414, -0.01817297376692295, 0.026063868775963783, -0.012272383086383343, -0.06897853314876556, 0.025979474186897278, 0.04655769467353821, 0.0602014884352684, -0.01914351060986519, -0.001329215127043426, -0.02616233006119728, -0.011562061496078968, -0.06205817312002182, -0.02822999842464924, 0.003941931761801243, -0.035642657428979874, -0.0113581083714962, -0.006438605487346649, 0.030325796455144882, 0.0023226100020110607, 0.026935946196317673, -0.035220686346292496, -0.004736647475510836, -0.03254818916320801, -0.025529369711875916, 0.0028659002855420113, -0.013742255978286266, -0.04039688780903816, 0.044841669499874115, 0.019073182716965675, -0.005914655514061451, 0.024038398638367653, -0.025037068873643875, -0.001607014099135995, 0.04745790362358093, 0.020325034856796265, 0.013728190213441849, 0.015514543280005455, -0.022730281576514244, 0.020972061902284622, 0.019523287191987038, 0.06352101266384125, -0.01800418458878994, 0.008931763470172882, 0.0030505135655403137, -0.05100247636437416, -0.05634747073054314, -0.017202435061335564, -0.024994870647788048, -0.026612434536218643, 0.05209960788488388, -0.01176601555198431, 0.004409618675708771, -0.031000955030322075, -0.019621746614575386, -0.013573466800153255, 0.01356643345206976, -0.03344839811325073, -0.024432240054011345, 0.03150732070207596, 0.02391180582344532, -0.0337015800178051, -0.04323817417025566, -0.024643227458000183, 0.012525566853582859, 0.03960920497775078, -0.028061209246516228, 0.022083256393671036, -0.035642657428979874, -0.00039406129508279264, 0.009086486883461475, -0.03769626095890999, -0.013242920860648155, -0.02665463089942932, 0.00678321672603488, -0.03139479458332062, -0.006456187926232815, 0.017554080113768578, 0.0035639142151921988, -0.036796052008867264, 0.01964987814426422, -0.0007569142035208642, 0.010999430902302265, 0.01717430353164673, 0.01910131424665451, -0.0005652680993080139, -0.060539066791534424, -0.01308116503059864, -0.007511120289564133, -0.01870747283101082, -0.0030839198734611273, -4.2334668250987306e-05, -0.0026338151656091213, -0.01343280915170908, 0.019734272733330727, 0.019002852961421013, -0.010704049840569496, -0.028862956911325455, -0.03474244847893715, 0.02090173214673996, 0.02987569198012352, 0.023222584277391434, 0.02671089395880699, 0.01575366035103798, 0.014107965864241123, -0.003825888969004154, -0.02211138792335987, 0.0005160378641448915, 0.023616425693035126, 0.009902301244437695, 0.011337009258568287, 0.03491123765707016, 0.013889946974813938, -0.01580992341041565, -0.012054364196956158, -0.03744307532906532, -0.029425587505102158, -0.03156358376145363, 0.00018483298481442034, 0.024769818410277367, 0.00244216900318861, 0.011808212846517563, -0.03758373484015465, 0.012406008318066597, 0.004497529473155737, -0.03139479458332062, -0.04689527302980423, -0.015134766697883606, -0.031704243272542953, 0.0035533648915588856, 0.018679341301321983, -0.0026742543559521437, 0.025754421949386597, 0.010879872366786003, -0.0143400514498353, -0.037949442863464355, -0.0008492207853123546, -0.06819084286689758, -0.0172305665910244, -0.017919789999723434, 0.0010654819197952747, 0.0008008697186596692, -0.0034443552140146494, -0.015317621640861034, 0.007701008580625057, 0.024446306750178337, -0.011991067789494991, -0.009789775125682354, 0.01211765967309475, -0.0015823990106582642, 0.03136666491627693, 0.01211765967309475, -0.012019199319183826, -0.03223874047398567, 0.006122125778347254, -0.00592168839648366, 0.02292720228433609, -0.023785214871168137, 0.029313061386346817, -0.0581197552382946, -0.019579550251364708, 0.030269533395767212, -0.019903061911463737, 0.011737884022295475, -0.009733512066304684, 0.008115948177874088, 0.0526341050863266, 0.013524236157536507, -0.03471431881189346, 0.01662573777139187, -0.025023002177476883, -0.0031858966685831547, 0.004986315034329891, 0.03671165555715561, -0.008537921123206615, -0.01569739729166031, -0.025965409353375435, -0.016541343182325363, -0.0003874679678119719, 0.01669606752693653, -0.012891276739537716, 0.07938719540834427, -0.04723285138607025, 0.038765259087085724, 0.015528609044849873, 0.01178711373358965, -0.027836157009005547, 0.0008122981525957584, -0.003528749803081155, 0.0033652351703494787, -0.0034355639945715666, 0.031760506331920624, -0.05980764701962471, -0.011744916439056396, -0.039215363562107086, 0.02484014816582203, 0.04745790362358093, 0.009536591358482838, 0.01422752533107996, -0.06413990259170532, 0.021211178973317146, 0.05738833546638489, 0.015387951396405697, 0.021647218614816666, 0.0026338151656091213, -0.023292912170290947, -0.00027406270965002477, 0.01543014869093895, 0.009325604885816574, -0.049595899879932404, 0.015387951396405697, 0.034995634108781815, 0.02834252454340458, -0.006125642452389002, 0.018946589902043343, 0.008931763470172882, 0.011161187663674355, -0.0016492113936692476, 1.659321060287766e-05, -0.03879338875412941, -0.01680859364569187, -0.02769549936056137, 0.02178787626326084, 0.026359250769019127, -0.005186752416193485, -0.0026742543559521437, -0.03232313692569733, -0.025796620175242424, 0.006442122161388397, 0.006723437458276749, -0.017216501757502556, -0.03471431881189346, 0.02031097002327442, -0.019931193441152573, 0.005517297890037298, -0.0006193333538249135, -0.003430289449170232, 0.04475727677345276, -0.01267325785011053, 0.037611864507198334, 0.021408099681138992, -0.02730165608227253, -0.001967449439689517, 0.007511120289564133, 0.023433569818735123, -0.03434860706329346, -0.00919197965413332, -0.02665463089942932, -0.040734466165304184, -0.010366471484303474, -0.007356396876275539, 0.021000193431973457, 0.018510552123188972, 0.020015588030219078, 0.009156815707683563, -0.0014074560021981597, -0.0022593140602111816, 0.01286314520984888, -0.01023284625262022, -0.011906673200428486, -0.027315722778439522, -0.018468353897333145, 0.04011557251214981, 0.00752518605440855, 0.026668697595596313, 0.02046569250524044, -0.05221213400363922, -0.043969593942165375, 0.05631933733820915, -0.008566053584218025, -0.009213078767061234, -0.06143927574157715, -0.03792131319642067, -0.00327029125764966, 0.03432047739624977, 0.020170312374830246, 0.051733896136283875, 0.014783122576773167, -0.0004134017217438668, 0.0012421831488609314, -0.012567764148116112, 0.02790648490190506, -0.00608696136623621, 0.04166280850768089, 0.0015015208628028631, -0.0344611331820488, -0.011055693961679935, 0.005591142922639847, -0.042703673243522644, 0.04357575252652168, -0.032913897186517715, -0.0189325250685215, 0.019438892602920532, 0.008573086000978947, 0.02385554276406765, -0.026851551607251167, -0.0005683449562638998, -0.02270215004682541, -0.013960275799036026, 0.005861909128725529, -0.03749933838844299, 0.012272383086383343, -0.013826650567352772, -0.03375784307718277, -0.004332256969064474, -0.027315722778439522, 0.00787683017551899, 0.010542294010519981, 0.014206426218152046, 0.016766395419836044, 0.011864475905895233, 0.03704923391342163, -0.004778844770044088, -0.03150732070207596, 0.018398026004433632, -0.020606352016329765, 0.026893749833106995, -0.004110720939934254, -0.028117472305893898, 0.026007605716586113, 0.0405094139277935, 0.03944041579961777, 0.021140851080417633, 0.022533360868692398, -0.020662615075707436, 0.030128875747323036, 0.0006672448944300413, -0.026992209255695343, 0.00936076883226633, 0.037611864507198334, -0.0013371271779760718, -0.002101074205711484, -0.029678771272301674, -0.03311081975698471, -0.046529561281204224, -0.0005815316108055413, -0.011266680434346199, -0.007546284701675177, 0.0420285165309906, 0.00033340268419124186, 0.007729140110313892, -0.0012342712143436074, 0.00900209229439497, -0.014347083866596222, 0.014740925282239914, 0.0401437021791935, 0.007300133816897869, 0.03583957999944687, 0.0030012833885848522, 0.014129064977169037, -0.0012448205379769206, 0.05429386720061302, -0.05691010132431984, -0.0023735985159873962, -0.05013040080666542, -0.001185920089483261, -0.048076797276735306, 0.01430488657206297, 0.03327960893511772, 0.03353279083967209, 0.03643034026026726, 0.014445544220507145, 0.02123931050300598, 0.021633151918649673, -0.008432428352534771, -0.032801371067762375, -0.025360580533742905, 0.013798519037663937, -0.0034724867437034845, -0.006072895601391792, 0.012595895677804947, 0.013249954208731651, -0.005700152833014727, -0.018510552123188972, 0.02341950498521328, 0.043041251599788666, 0.027428248897194862, -0.00791199505329132, 0.012476337142288685, -0.05851359665393829, 0.0013485555537045002, -0.023236649110913277, -0.03229500353336334, 0.0021204145159572363, -0.02599354088306427, -0.044082120060920715, 0.009965596720576286, -0.003045239020138979, 0.0010610864264890552, -0.005981468129903078, 0.006283882074058056, 0.020943930372595787, 0.00787683017551899, 0.03145105764269829, 0.044672880321741104, -0.02166128344833851, -0.021590955555438995, -0.008805171586573124, 0.004546759650111198, 0.028412852436304092, 0.025895079597830772, 0.0019270103657618165, -0.00051647744840011, 0.01575366035103798, 0.012237219139933586, -0.021379968151450157, 0.004068523645401001, 0.03536134213209152, -0.0001274710230063647, 0.04098764806985855, 0.02911614067852497, -0.0038856687024235725, -0.015303555876016617, 0.002074700780212879, -0.02173161320388317, 0.03693670779466629, -0.029088009148836136, 0.0008276825537905097, 0.03792131319642067, -0.02576848864555359, -0.049933478236198425, 0.005510265007615089, 0.021759744733572006, 0.007919027470052242, -0.0012984463246539235, -0.04427903890609741, -0.015387951396405697, -0.025754421949386597, 0.03820262849330902, 0.01772286929190159, -0.004901920445263386, 0.027512643486261368, -0.007250903639942408, -0.007630679290741682, 0.023616425693035126, -0.0401437021791935, 0.0009432855877093971, -0.018960656598210335, 0.011688653379678726, 0.00296084419824183, -0.01586618646979332, -0.0263170525431633, -0.01178711373358965, 0.015613003633916378, -0.017877591773867607, 0.000429225736297667, -0.012574797496199608, 0.005313344299793243, -0.004880821797996759, 0.006343661807477474, -0.04230983182787895, 0.01904505118727684, 0.02243490144610405, -0.01745561882853508, -0.06273332983255386, -0.010197682306170464, -0.004919502418488264, -0.026359250769019127, 0.037189893424510956, -0.023503899574279785, 0.05350618436932564, -0.031000955030322075, -0.01849648542702198, -0.020381297916173935, -0.016935184597969055, 0.03645847365260124, -0.015669265761971474, 0.019467024132609367, 0.042872462421655655, -0.008713743649423122, 0.04290059581398964, 0.0025371129158884287, 0.00911461841315031, -0.018398026004433632, -0.01630222611129284, 0.0035797380842268467, 0.02468542382121086, -0.0014426204143092036, -0.0269781444221735, 0.01663980446755886, 0.017976053059101105, 0.012110627256333828, -0.02002965472638607, -0.019678009673953056, 0.029903823509812355, -0.004603022709488869, 0.003171830903738737, 0.012525566853582859, -0.012708421796560287, -0.0018619560869410634, -0.009381867945194244, -0.02166128344833851, 0.00562279112637043, -0.027667367830872536, 0.008073750883340836, -0.020339101552963257, -0.0023384341038763523, -0.0469515360891819, 0.0412689670920372, -0.005721251480281353, -0.013207756914198399, -0.01647101528942585, -0.013868847861886024, 0.04672648385167122, -0.016386620700359344, -0.0365428663790226, 0.012314580380916595, -0.0420285165309906, -0.03353279083967209, -0.017033645883202553, 0.023827411234378815, 0.011224483139812946, 0.012363811023533344, 0.05494089424610138, -0.020015588030219078, -0.02002965472638607, 0.01652727834880352, -0.01921384036540985, 0.009691314771771431, -0.015880253165960312, 0.01184337679296732, 0.01620376482605934, 0.01898878812789917, -0.024980805814266205, -0.021112719550728798, 0.004775328561663628, -0.020817337557673454, 0.015795858576893806, -0.006582779809832573, 0.02616233006119728, 0.0006457067211158574, 0.017469685524702072, 0.002809637226164341, 0.00936076883226633, 0.020915798842906952, 0.009395933710038662, 0.005520814098417759, 0.01543014869093895, 0.0036430340260267258, 0.03195742517709732, 0.011400305666029453, 0.027104735374450684, 0.034826844930648804, -0.005380156449973583, 0.03797757625579834, 0.015950581058859825, -0.008798138238489628, -0.02709067054092884, 0.012785783968865871, 0.01620376482605934, -0.007328265346586704, -0.013123362325131893, 0.03097282350063324, -0.032970160245895386, -0.04332256689667702, -0.01575366035103798, -0.009297473356127739, 0.010654820129275322, 0.03339213505387306, -0.004304125439375639, 0.03544573858380318, -0.00043340149568393826, -0.027175065129995346, 0.02730165608227253, 0.0056368568912148476, 0.015008174814283848, -0.03108534961938858, 0.007504087407141924, 0.03508002683520317, -0.013671927154064178, -0.04596693068742752, -0.09620986133813858, -0.026823420077562332, -0.006698822136968374, 0.01680859364569187, -0.03119787573814392, -0.011773047968745232, 0.0031911712139844894, -0.022195782512426376, 0.020015588030219078, -0.0004415332805365324, -0.0012852596119046211, -0.012631060555577278, -0.01921384036540985, -0.02762516960501671, 0.0033810590393841267, -0.013151493854820728, -0.005482133477926254, 0.022899070754647255, -0.0024527183268219233, -0.022463032975792885, -0.022125454619526863, -0.00935373641550541, 0.009726478718221188, 0.03153545409440994, -0.028483182191848755, 0.06217069923877716, -0.011104924604296684, 0.03364531695842743, -0.03848394379019737, -0.004022809676826, 0.0027164516504853964, 0.01302490197122097, -0.014136097393929958, -0.024333780631422997, -0.022688085213303566, 0.0070258514024317265, 0.0038751193787902594, 0.020831404253840446, 0.007043433841317892, 0.0016553651075810194, 0.008882532827556133, 0.01482531987130642, 0.0005441694520413876, 0.009438131004571915, 0.023447636514902115, 0.012265350669622421, 0.006568714044988155, -0.004135335795581341, 0.009318571537733078, 0.007082114461809397, 0.04706406220793724, 0.024150924757122993, 0.010795477777719498, -0.030438322573900223, 0.02363049052655697, -0.009318571537733078, -0.005383673124015331, 0.02226611226797104, -0.016133436933159828, 0.021590955555438995, -0.017118040472269058, 0.003458420978859067, -0.031816769391298294, 0.013995439745485783, 0.01948108896613121, -0.009276374243199825, -0.014670596458017826, 0.0060060834512114525, -0.0065581644885241985, 0.007834632880985737, -0.024868279695510864, -0.008910664357244968, -0.015908384695649147, -0.002327884780243039, 0.026499908417463303, 0.0022083257790654898, 0.012265350669622421, 0.026415513828396797, -0.015275424346327782, -0.0053731235675513744, -0.03282950446009636, -0.013868847861886024, 0.011850410141050816, -0.0060025667771697044, 0.025698158890008926, -0.03631781414151192, -0.014178294688463211, -0.025909146293997765, -0.01877780072391033, -0.007658810820430517, -0.018299564719200134, 0.010296142660081387, 0.008038586936891079, 0.005548945628106594, -0.01178711373358965, 0.004979282151907682, 0.013165559619665146, 0.008931763470172882, 0.004617088474333286, 0.016119370236992836, 0.015373884700238705, 0.023560162633657455, -0.015627069398760796, 0.017047710716724396, 0.014572136104106903, -0.01206139661371708, 0.05254971235990524, 0.0076166135258972645, -0.013130394741892815, 0.019832734018564224, 0.0308602973818779, -0.011337009258568287, -0.01881999894976616, -0.023897740989923477, 0.01630222611129284, -0.009402966126799583, 0.0010478997137397528, 0.013911045156419277, -0.003917316440492868, -0.019073182716965675, 0.011147121898829937, 0.0024052464868873358, 0.03755560144782066, -0.0017283313209190965, 0.00024065651814453304, 0.00971241295337677, 0.0005199938896112144, -0.017990117892622948, -0.02796274796128273, -0.0012632817961275578, 0.027386052533984184, 0.021464362740516663, -0.004050941206514835, -0.009325604885816574, 0.044897932559251785, 0.020972061902284622, 0.015908384695649147, -0.005738833453506231, -0.003628968261182308, -0.013151493854820728, -0.018426157534122467, -0.008685612119734287, -0.020972061902284622, -0.02917240373790264, 0.005812678951770067, 0.006670690607279539, 0.006185421720147133, -0.009888235479593277, 0.0230959914624691, -0.010415702126920223, -0.0025986507534980774, -0.008425395004451275, -0.004086105618625879, -0.0012949298834428191, 0.014023571275174618, 0.022181717678904533, -0.006424539722502232, -0.009149782359600067, -0.01690705306828022, -0.0280190110206604, -0.029200535267591476, -0.008059685118496418, -0.0026549138128757477, -0.010464931838214397, 0.019059116020798683, 0.0014118514955043793, 0.0068922266364097595, -0.014515873044729233, -0.027315722778439522, -0.026795288547873497, -0.012933474034070969, -0.017272764816880226, -0.001803934806957841, 0.014965977519750595, 0.0053731235675513744, -0.025304317474365234, -0.0072860680520534515, 0.003115567844361067, 0.012328646145761013, 0.05384376272559166, 0.008755940943956375, -0.01223018579185009, -0.022533360868692398, -0.01821517013013363, -0.0002181293093599379, 0.018412090837955475, -0.023771148175001144, -0.0012140516191720963, 0.01009922195225954, -0.024277517572045326, -0.004690933972597122, -0.005183235742151737, 0.023222584277391434, -0.02959437668323517, -0.012954573146998882, -0.005404771771281958, 0.02424938604235649, 0.012012166902422905, -0.0013626213185489178, -0.012961605563759804, -0.0235742274671793, 0.0007485626265406609, 0.012588863261044025, 0.019115379080176353, -0.02747044712305069, 0.024474438279867172, 0.021703481674194336, -0.039749860763549805, -0.002945020329207182, 0.023166321218013763, 0.03659912943840027, 0.0003788966569118202, 0.021520625799894333, -0.034995634108781815, 0.016878921538591385, 0.024544766172766685, 0.0391872301697731, 0.015387951396405697, 0.032576318830251694, -0.004666318651288748, 0.009501426480710506, 0.02436191216111183, 0.008326934650540352, -0.009072421118617058, 0.04337882995605469, 0.007890895940363407, -0.011716784909367561, -0.030775902792811394, 0.038708996027708054, 0.03282950446009636, 0.018651209771633148, 0.016049042344093323, 0.027175065129995346, 0.03747120872139931, -0.002971393521875143, 0.004979282151907682, 0.018074512481689453, -0.013826650567352772, 0.003987645264714956, 0.019495155662298203, 0.0029344710055738688, -0.0552784726023674, 0.011533929966390133, 0.02468542382121086, 0.012223153375089169, 0.012989737093448639, -0.024826081469655037, -0.02965063974261284, 0.04124083369970322, -0.0020905248820781708, 0.009501426480710506, 0.0010276802349835634, 0.0020325034856796265, 0.02604980394244194, 0.010387570597231388, -0.010239879600703716, 0.04059380665421486, -0.010141419246792793, 0.0053379591554403305, 0.01592244952917099, 0.023517964407801628, -0.0038012738805264235, -0.0049406010657548904, -0.03356092423200607, -0.003664132673293352, 0.010647786781191826, 0.024474438279867172, -0.012553698383271694, 0.015078503638505936, -0.007335298229008913, -0.03820262849330902, 0.04185972735285759, 0.027540775015950203, 0.00752518605440855, 0.04371640831232071, 0.02845505066215992, 0.008052652701735497, 0.03769626095890999, 0.022519296035170555, 0.005953336600214243, 0.018580880016088486, -0.01078141201287508, -0.012884244322776794, -0.00787683017551899, -0.011407338082790375, 0.011161187663674355, -0.020704811438918114, 0.0033898502588272095, 0.010141419246792793, -0.0021854687947779894, -0.009529558010399342, -0.006283882074058056, 0.015303555876016617, 0.01969207637012005, 0.03944041579961777, -0.03420795127749443, -0.014150163158774376, 0.020507890731096268, -0.020015588030219078, -0.025402778759598732, -0.005014446564018726, 0.020943930372595787, 0.005510265007615089, 0.0070258514024317265, 0.028862956911325455, 0.024375976994633675, 0.018412090837955475, 0.03353279083967209, -0.01223018579185009, 0.06526516377925873, -0.0034267730079591274, 6.736184877809137e-05, -0.052887290716171265, -0.015472345985472202, -0.012940507382154465, -0.009719446301460266, -0.01223018579185009, 7.321342309296597e-06, 0.0031472158152610064, -0.008481658063828945, -1.0061695320473518e-05, -0.016456948593258858, 0.008812204003334045, -0.01970614120364189, -0.008200342766940594, -0.0344611331820488, 0.013439841568470001, 0.005130489356815815, -0.012771718204021454, 0.007869797758758068, -0.046642087399959564, 0.005594659596681595, 0.013826650567352772, 0.03156358376145363, 0.022941268980503082, -0.007036400958895683, -0.007272002287209034, -0.025473106652498245, -0.002378873061388731, -0.04155028238892555, -0.019846798852086067, 0.018046380952000618, 0.01141437143087387, -0.009775709360837936, -0.0013371271779760718, -0.02237863838672638, -0.018834063783288002, -0.007588481996208429, -0.009817906655371189, 0.01143546961247921, -0.01327105239033699, 0.005615758243948221, 0.012469303794205189, 0.009881202131509781, 0.0029344710055738688, -0.022097323089838028, -0.04540430009365082, -0.019115379080176353, 0.022519296035170555, 0.029960086569190025, 0.022969400510191917, 0.024263450875878334, 0.03848394379019737, 0.019452957436442375, 0.007008269429206848, 0.017638474702835083, -0.02232237532734871, 0.04098764806985855, -0.0026215077377855778, -0.022139519453048706, 0.017877591773867607, -0.004501046147197485, 0.0051797195337712765, -0.022252045571804047, -0.0140095055103302, -0.012919408269226551, 0.00516916997730732, -0.007567383348941803, 0.0032368849497288465, 0.017371224239468575, -0.009262308478355408, -0.004054457880556583, 0.027667367830872536, 0.02813153713941574, -0.00038856687024235725, -0.02769549936056137, 0.0023841478396207094, -0.01717430353164673, -0.012019199319183826, -0.000520433415658772, 0.011231516487896442, 0.024882344529032707, -0.014909714460372925, -0.008024521172046661, 0.02112678438425064, 0.00642805639654398, -0.06368979811668396, -0.026401447132229805, -0.005795096512883902, -0.024390043690800667, 0.007426725700497627, 0.009923399426043034, 0.012019199319183826, -0.007391561288386583, -0.02550123818218708, 0.0016711890930309892, 0.003991161938756704, 0.028469115495681763, 0.01321478933095932, 0.00888956617563963, 0.006751568987965584, 0.0012158098397776484, -0.02073294296860695, 0.039271626621484756, 0.02118304744362831, -0.004392036236822605, 0.019115379080176353, -0.016724199056625366, 0.02171754650771618, -0.002558211563155055, -0.0032966644503176212, -0.014459609985351562, 0.017469685524702072, -0.009564722888171673, -0.018524616956710815, -0.025093331933021545, -0.016724199056625366, 0.01717430353164673, 0.003625451819971204, 0.011590193025767803, -0.019452957436442375, 0.04214104264974594, -0.00039142396417446434, -0.021478429436683655, 0.017807263880968094, 0.009817906655371189, 0.03856833651661873, 0.015739595517516136, -0.01728682965040207, -0.01387588120996952, -0.02298346534371376, -0.008741875179111958, -0.03381410613656044, -0.023883674293756485, -0.0015920691657811403, -0.015500477515161037, -0.009564722888171673, 0.016006844118237495, -0.004093138501048088, -0.003486552508547902, 0.03440487012267113, 0.022842807695269585, -0.0012202054494991899, 0.005211367271840572, -0.03637407720088959, -0.01395324245095253, 0.02768143266439438, -0.014347083866596222, -0.003062821226194501, -0.013383578509092331, -0.019579550251364708, 0.021408099681138992, -0.02336324192583561, 0.01384071633219719, 0.012588863261044025, 7.763644680380821e-05, -0.022842807695269585, 0.002774472814053297, -0.009388900361955166, -0.030550848692655563, 0.02620452642440796, 0.003917316440492868, 0.003804790321737528, -0.023503899574279785, 0.0061643230728805065, 0.03536134213209152, 0.013967308215796947, 0.01876373589038849, 0.005584110040217638, -0.023321043699979782, 0.017483750358223915, 0.0049441177397966385, 0.013580499216914177, 0.008706711232662201, 0.014614333398640156, -0.006378826219588518, -0.004247861914336681, 0.021914467215538025, -0.0005903227138333023, -0.002486124634742737, 0.034179817885160446, -0.010879872366786003, -0.056881967931985855, -0.021042389795184135, -0.05021479353308678, 0.031873032450675964, 0.04683900997042656, -0.007778370287269354, 0.014951911754906178, -0.005826744716614485, 0.022899070754647255, 0.02112678438425064, -0.008390231058001518, 0.030775902792811394, 0.015387951396405697, -0.011287779547274113, -0.018355827778577805, -0.0011191077064722776, -0.0055700442753732204, -0.020339101552963257, -0.044672880321741104, 0.01680859364569187, 0.03749933838844299, 0.03004448115825653], "id": 89}, {"title": "Fernando Mezzasoma", "text": "Fernando Mezzasoma (August 3, 1907 \u2013 April 28, 1945) was an Italian fascist journalist and political figure.", "vector": [-0.01641802117228508, 0.06070755422115326, -0.025051983073353767, 0.02358151227235794, 0.0010480484925210476, 0.007831274531781673, -0.03485962748527527, -0.00838438794016838, -0.027237456291913986, 0.02827622927725315, -0.03990509733557701, 0.030893398448824883, -0.038636986166238785, -0.021719813346862793, -0.010084198787808418, -0.0015471994411200285, -0.10468680411577225, 0.00937594473361969, -0.04001302272081375, -0.041065286844968796, 0.014300001785159111, -0.021760284900665283, -0.014907076954841614, -0.008465331047773361, -0.02073500119149685, 0.026104247197508812, 0.00945014227181673, 0.012289906851947308, 0.01281603891402483, 0.012330378405749798, 0.024040190503001213, 0.003919009584933519, 0.008472076617181301, -0.009348963387310505, 0.012242689728736877, -0.03809736296534538, 0.029814153909683228, 0.038556043058633804, 0.016957642510533333, 0.03523736074566841, 0.020276322960853577, -0.007345614023506641, 0.031406041234731674, 0.009531085379421711, -0.041065286844968796, -0.024768682196736336, -0.031298115849494934, -0.033375661820173264, -0.027291417121887207, -0.0004222125862725079, 0.0425492487847805, -0.003949363715946674, -0.04621868208050728, 0.03726094588637352, 0.002170294988900423, -0.04030981659889221, 0.0382862314581871, 0.013787359930574894, -0.0465424582362175, 0.002617170102894306, 0.0037335145752876997, -0.045652080327272415, -0.020586606115102768, -0.01626962423324585, -0.019601793959736824, 0.02339264377951622, -0.007541227154433727, -0.019075661897659302, 0.04451887309551239, -0.03664037957787514, -0.005025236401706934, 0.045571137219667435, 0.056768305599689484, -0.020451700314879417, -0.011021793819963932, -0.013173539191484451, 0.012559718452394009, -0.0047958968207240105, -0.08580000698566437, -0.01057660486549139, 0.0022782194428145885, -0.043115854263305664, -0.02811434306204319, 0.03796245530247688, 0.003418172476813197, 0.0030606724321842194, -0.04732491075992584, -0.04638057202100754, -0.056768305599689484, 0.0006644104141741991, -0.024890096858143806, -0.011197171173989773, -0.011075755581259727, 0.010414717718958855, 0.03755773976445198, -0.009989765472710133, 0.028653964400291443, 0.009335472248494625, -0.01838764362037182, -0.03904170170426369, -0.04138905927538872, -0.013544529676437378, -0.024161605164408684, -0.0033051890786737204, 0.05541925132274628, 0.046407550573349, -0.01601330377161503, -0.019224058836698532, 0.043223775923252106, 0.0685320794582367, 0.05088641867041588, -0.0330788716673851, 0.004812759812921286, 0.017146511003375053, -0.010090944357216358, -0.026266135275363922, -0.022205473855137825, 0.01670132204890251, -0.0382862314581871, -0.024957548826932907, 0.05420510098338127, -0.047972455620765686, 0.054501891136169434, 0.043547552078962326, 0.017106039449572563, 0.012323632836341858, -0.04055264592170715, 0.0006011733785271645, -0.003032004926353693, -0.04055264592170715, 0.03564208000898361, 0.010097689926624298, 0.04179377853870392, -0.03723396733403206, -0.02806038036942482, 0.024390945211052895, -0.03437396511435509, 0.022353870794177055, 0.0027014859952032566, 0.028977738693356514, 0.043034911155700684, 0.01397622749209404, -0.007588444277644157, -0.006954387295991182, 0.024620285257697105, -0.02364896424114704, 0.015932360664010048, -0.0027621935587376356, -0.013767124153673649, -0.026603398844599724, 0.03744981437921524, -0.038259249180555344, 0.011966133490204811, -0.00941641628742218, 0.0044552600011229515, -0.045786984264850616, -0.05892679840326309, 0.0003859566932078451, 0.029490379616618156, -0.04451887309551239, -0.016863208264112473, 0.00401681661605835, 0.011075755581259727, 0.040714532136917114, 0.008526038378477097, -0.033672455698251724, 0.015689529478549957, 0.013780614361166954, 0.026616889983415604, 0.031513966619968414, -0.026576418429613113, -0.0040876418352127075, 0.010421463288366795, 0.005972948856651783, 0.019777171313762665, -0.0020404483657330275, -0.011547925882041454, -0.0025783847086131573, -0.045463211834430695, 0.013396133668720722, 0.033699437975883484, 0.017497265711426735, 0.007325378246605396, -0.01286325603723526, -0.04441094771027565, 0.06302793323993683, 0.031325098127126694, 0.01618868112564087, -0.0010008314857259393, -0.05876491218805313, -0.02321726642549038, 0.04969925060868263, 0.021800756454467773, 0.01872490718960762, -0.004978019278496504, 0.016795756295323372, 0.03548019379377365, -0.03569604083895683, -0.014907076954841614, -0.06281208246946335, 0.01505547296255827, 0.03345660865306854, 0.020073963329195976, 0.028842832893133163, -0.010124670341610909, 0.03326774016022682, -0.002854941412806511, 0.017807548865675926, -0.03440094739198685, 0.03005698323249817, 0.03467075899243355, -0.04457283392548561, 0.06896378099918365, 0.025078965350985527, 0.004293372854590416, -0.009915567003190517, -0.0020404483657330275, -0.011021793819963932, 0.034050192683935165, 0.04662340134382248, -0.0053523825481534, -0.004863349720835686, -0.06551019847393036, -0.008944245986640453, -0.012411321513354778, 0.008829575963318348, 0.032269436866045, 0.01420556753873825, -0.0002618013240862638, 0.05328774079680443, -0.009861604310572147, 0.016917170956730843, -0.03324075788259506, 0.04942943900823593, 0.0032866394612938166, 0.06351359188556671, -0.031190192326903343, -0.061624910682439804, -0.05185773968696594, 0.04932151362299919, -0.028600003570318222, 0.07754378020763397, -0.02362198382616043, 0.0068093640729784966, 0.00027782138204202056, -0.008795849978923798, -0.05293698608875275, -0.03232339769601822, -0.03936547413468361, -0.008674434386193752, 0.00032988653401844203, -0.04913264513015747, -0.01655292697250843, 0.003713278565555811, 0.006276486441493034, -0.019197076559066772, 0.01151419896632433, 0.0020370755810290575, -0.028896795585751534, 0.020181888714432716, -0.007993160746991634, -0.010542877949774265, 0.02846509777009487, -0.013423114083707333, -0.013611982576549053, 0.005760472267866135, -0.010266321711242199, 0.0024030073545873165, -0.022583208978176117, -0.015500661917030811, -0.02316330373287201, -0.013699671253561974, 0.04959132522344589, -0.007494010031223297, -0.02579396404325962, -0.01852254942059517, -0.04198264703154564, 0.03256623074412346, -0.001146698254160583, -0.00233049551025033, 0.030893398448824883, -0.018104340881109238, 0.007912217639386654, -0.019305001944303513, -0.002693054499104619, 0.0211397185921669, -0.02768264338374138, -0.01838764362037182, 0.02099132351577282, -0.01415160484611988, -0.0232037752866745, -0.015743492171168327, -0.024175096303224564, -0.01875188946723938, 0.0006091834511607885, 0.00017643132014200091, 0.0333486832678318, -0.017362359911203384, 0.008640708401799202, 0.029328493401408195, 0.008984717540442944, 0.047972455620765686, 0.031406041234731674, -0.031864721328020096, 0.029463399201631546, -0.024080662056803703, 0.02572651207447052, 0.03893377631902695, 0.021625379100441933, 0.0031078895553946495, -0.019331982359290123, 0.01898122765123844, -0.012586698867380619, -0.002467087469995022, -0.014731699600815773, -0.017969435080885887, 0.01590537838637829, -0.04508547484874725, -0.006117972079664469, -0.006310212891548872, -0.03021887131035328, -0.026239152997732162, -0.05806340277194977, -0.003517665434628725, -0.028600003570318222, -0.03310585394501686, -0.0014536086237058043, -0.01844160631299019, 0.018239246681332588, 0.02099132351577282, 0.036235664039850235, -0.024377455934882164, 0.03947339951992035, -0.002736898837611079, 0.010515897534787655, 0.015527643263339996, -0.02533528581261635, 0.08202265202999115, 0.0012343869311735034, -0.006667712703347206, -0.010650803335011005, 0.05104830488562584, -0.04505849629640579, 0.006134835537523031, 0.01415160484611988, 0.02364896424114704, 0.08849812299013138, 0.022421322762966156, 0.03526434302330017, 0.014313491992652416, 0.00033094047103077173, 0.004465377889573574, 0.0032208729535341263, 0.03960830718278885, -0.004563184455037117, 0.008580001071095467, -0.01663387008011341, -0.038663964718580246, -0.009348963387310505, -0.014178586192429066, -0.010367500595748425, 0.019952548667788506, 0.03904170170426369, 0.027035096660256386, 0.009510849602520466, -0.008586745709180832, 0.007865000516176224, 0.01272835023701191, -0.004155094735324383, 0.038798872381448746, 0.015864906832575798, 0.007811038289219141, -0.004779033362865448, -0.026239152997732162, 0.0473518930375576, -0.057631704956293106, 0.03286302089691162, 0.002971297362819314, -0.04260321334004402, 0.005797571502625942, 0.008559765294194221, -0.012134765274822712, -0.01536575611680746, 0.017281416803598404, -0.014596793800592422, -0.012930708937346935, -0.043088871985673904, -0.006772264838218689, -0.019709719344973564, -0.012883491814136505, -0.014259529300034046, 0.017348868772387505, 0.03790849447250366, -0.028653964400291443, -0.008640708401799202, 0.0015691216103732586, 0.027089059352874756, 0.04969925060868263, -0.01610773801803589, 0.00020225311163812876, 0.01635056734085083, -0.017092548310756683, 0.04408717527985573, 0.040741514414548874, 0.03067754954099655, -0.009133114479482174, -0.029139624908566475, 0.009902076795697212, -0.02302839793264866, 0.03024585172533989, -0.022826040163636208, -0.005743608810007572, 0.02795245498418808, -0.0040640332736074924, -0.014556322246789932, -0.019871605560183525, 0.026630379259586334, -0.004974646493792534, 0.01411113329231739, -0.043412644416093826, 0.019547831267118454, 0.0036424531135708094, -0.006573278922587633, 0.000606653920840472, 0.08277811855077744, 0.03731491044163704, -0.029274530708789825, -0.009564812295138836, -0.0062967222183942795, -0.011898680590093136, 0.008681179955601692, -0.0028836086858063936, -0.00209441059269011, 0.019210567697882652, 0.04816132411360741, -0.05844113603234291, 0.01034726481884718, -0.01277556736022234, 0.010509151965379715, -0.00806735921651125, 0.02364896424114704, -0.03245830535888672, 0.01536575611680746, 0.024283021688461304, -0.1029600128531456, -0.003337229136377573, 0.01888679340481758, -0.03197264298796654, -0.009160094894468784, 0.03793547675013542, -0.07317283749580383, -0.06351359188556671, 0.014502359554171562, 0.018050378188490868, 0.06006000563502312, -0.047648683190345764, 0.06124717369675636, 0.007689623162150383, -0.029058681800961494, 0.022758586332201958, 0.014219057746231556, 0.04522038251161575, 0.02364896424114704, -0.017186982557177544, 0.015703020617365837, -0.02590188942849636, 0.03674830496311188, 0.015864906832575798, -0.029490379616618156, 0.024768682196736336, -0.009470378048717976, 0.05833321437239647, 0.020168397575616837, -0.012438302859663963, 0.04629962518811226, 0.03526434302330017, -0.02598283253610134, 0.035965852439403534, -0.001569964806549251, 0.0039932080544531345, -0.02351405844092369, -0.006580024026334286, 0.017969435080885887, 0.036127738654613495, 0.009517595171928406, -0.04961830750107765, -0.020289814099669456, 0.009800896979868412, -0.054744720458984375, 0.019574813544750214, 0.038421135395765305, 0.04411415383219719, -0.027372360229492188, 0.004195566289126873, -0.03518339991569519, 0.06032981723546982, 0.022097548469901085, 0.005558113567531109, -0.025038493797183037, 0.005753727164119482, 0.01859000138938427, 0.035938870161771774, 0.047783590853214264, -0.02309585176408291, 0.022272925823926926, 0.0021399413235485554, 0.036019813269376755, -0.003320365911349654, -0.021733304485678673, 0.00936919916421175, 0.028438115492463112, 0.03931151330471039, 0.02833019196987152, 0.0026660733856260777, -0.029409436509013176, -0.03591189160943031, -0.006225896999239922, -0.008822831325232983, 0.01840113289654255, 0.02564556896686554, 8.278781751869246e-05, -0.015217360109090805, 0.038421135395765305, 0.0022057078313082457, 0.04209056869149208, -0.031621888279914856, -0.05158792808651924, -0.0063237035647034645, -0.036100756376981735, -0.008411368355154991, -0.02541622892022133, 0.017308397218585014, -0.010913869366049767, 0.029841134324669838, -0.016849718987941742, 0.012411321513354778, -0.03558811545372009, 0.014057171531021595, 0.01513641607016325, -0.029868116602301598, 0.015878397971391678, 0.011844717897474766, -0.01633707620203495, -0.034023210406303406, -0.006934151519089937, 0.022542737424373627, -0.009618774056434631, -0.03243132308125496, 0.027453305199742317, -0.036397550255060196, 0.02770962566137314, 0.0026003068778663874, -0.003215814009308815, 0.010198868811130524, 0.010178633034229279, -0.012330378405749798, -0.026198681443929672, 0.052316419780254364, -0.016957642510533333, 0.014003208838403225, 0.024067172780632973, -0.014569812454283237, 0.013746888376772404, 0.0018060497241094708, -0.011541180312633514, 0.03073151223361492, -0.041065286844968796, -0.020424718037247658, -0.02368943579494953, -0.049834154546260834, 0.04176679626107216, 0.01599981263279915, 0.006677830591797829, -0.019966039806604385, -0.0305426437407732, 0.022812549024820328, 0.04646151512861252, 0.012161746621131897, 0.01187844481319189, -0.03073151223361492, 0.009436652064323425, -0.059412457048892975, 0.002231002552434802, 0.04360151290893555, 0.02091037854552269, -0.0010615390492603183, -0.014124623499810696, 0.007844764739274979, 0.004836368374526501, 0.027156511321663857, 0.035750001668930054, -0.008141557686030865, 0.024458399042487144, 0.02331170067191124, 0.027520757168531418, 0.05693019554018974, -0.006576651707291603, -0.020519152283668518, 0.005436698440462351, 0.007925707846879959, 0.00027697821496985853, 0.029058681800961494, -0.005949340295046568, -0.03531830385327339, 0.036262646317481995, -0.02364896424114704, -0.012532737106084824, -0.009045425802469254, -0.014434906654059887, -0.018117832019925117, 0.0301379282027483, -0.027264436706900597, -0.01398971863090992, 0.03197264298796654, 0.0376117005944252, -0.01039448194205761, 0.0019342100713402033, -0.0042090569622814655, 0.018306700512766838, 0.007345614023506641, -0.006239387206733227, 0.004293372854590416, 0.019871605560183525, 0.016687830910086632, -0.009335472248494625, 0.019264530390501022, 0.01639103889465332, 0.03696415573358536, -0.01625613309442997, 0.019777171313762665, -0.030003022402524948, 0.028950758278369904, -0.014515850692987442, -0.012397831305861473, 0.03221547603607178, 0.0037436324637383223, 0.01834717206656933, -0.03699113428592682, 0.004910566378384829, -0.047756608575582504, 0.0032259318977594376, -0.026279624551534653, 0.001765577937476337, -0.052424345165491104, -0.019480379298329353, 0.013079104945063591, 0.006647476926445961, -0.028384152799844742, -0.033969249576330185, 0.03248528763651848, -0.0006547140656039119, -0.04678528755903244, 0.012357359752058983, 0.007190472446382046, 0.031028304249048233, -0.010219104588031769, -0.02092386968433857, 0.024175096303224564, 0.01040122751146555, 0.015622076578438282, 0.014893586747348309, -0.027547737583518028, 0.012020095251500607, 0.041065286844968796, -0.022906983271241188, 0.029625285416841507, -0.019750190898776054, 0.006256250664591789, -0.017470285296440125, -0.022920474410057068, 0.050130948424339294, -0.024323493242263794, -0.0070285857655107975, -0.0006568219978362322, -0.03329471871256828, -0.024768682196736336, 0.01639103889465332, -0.0332137756049633, -0.009301746264100075, 0.02360849268734455, 0.052856042981147766, 0.027439814060926437, 0.011224151588976383, 0.012647407129406929, -0.03952736034989357, 0.006067382637411356, -0.01837415248155594, 0.0369371734559536, 0.03299792855978012, -0.0011416393099352717, 0.0030994578264653683, -0.004610401578247547, 0.017294907942414284, 0.031163210049271584, 0.02768264338374138, -0.0028701182454824448, -0.004822877701371908, -0.061948686838150024, -0.0015902005834504962, 0.006016793195158243, 0.014421416446566582, 0.019642265513539314, -0.014839624054729939, 0.01653943583369255, 0.003456957871094346, -0.005241085309535265, 0.005433326121419668, -0.0005438384832814336, -0.02819528616964817, -0.043061889708042145, 0.0027621935587376356, -0.014407926239073277, 0.019561322405934334, -0.009922312572598457, -0.017875000834465027, -0.04039075970649719, -0.009335472248494625, -0.0127688217908144, -0.021908681839704514, 0.015810944139957428, 0.029706228524446487, 0.03906868398189545, -0.00922754779458046, -0.008175283670425415, -0.06394528597593307, 0.026859719306230545, 0.006799245718866587, -0.01639103889465332, 0.012330378405749798, 0.01397622749209404, 0.006134835537523031, 0.02565905824303627, 0.005517642013728619, 0.008930755779147148, -0.002433361019939184, 0.015176888555288315, -0.01049566175788641, -0.05191170424222946, -0.004225920420140028, -0.016876699402928352, 0.007966180332005024, 0.015082454308867455, 0.006816109176725149, -0.03995906189084053, -0.03048868291079998, 0.006667712703347206, 0.0014325296506285667, 0.004239410627633333, 0.024512359872460365, 0.02797943726181984, 0.007352359127253294, -0.019912077113986015, -0.027250945568084717, 0.008984717540442944, -0.017888491973280907, -0.03008396551012993, 0.015568114817142487, -0.061948686838150024, -0.01670132204890251, 0.03283604234457016, -0.001235230010934174, -0.014043680392205715, -0.014569812454283237, 0.05191170424222946, -0.03262019157409668, 0.015433209016919136, -0.010886888019740582, -0.057361893355846405, -0.015703020617365837, -0.0006188797997310758, -0.002495754975825548, -0.023864813148975372, 0.0284111350774765, 0.010016745887696743, 0.0024417927488684654, -0.024363964796066284, 0.029517361894249916, -0.011332076974213123, -0.009011698886752129, 0.027520757168531418, -0.06313585489988327, 0.008789104409515858, -0.048215288668870926, 0.01393575593829155, -0.033888306468725204, -0.02795245498418808, -0.013247736729681492, -0.017443303018808365, -0.009618774056434631, -0.005726745817810297, -0.02132858708500862, 0.02131509594619274, -0.007986416108906269, -0.031756795942783356, -0.01903519034385681, -0.026171701028943062, 0.004974646493792534, 0.008256226778030396, -0.020087454468011856, -0.027439814060926437, -0.04978019371628761, -0.030812455341219902, 0.04004000499844551, 0.06113925203680992, 0.031271133571863174, 0.0017419694922864437, -0.03494057059288025, 0.0029409436974674463, -0.041146229952573776, -0.023972738534212112, -0.00824273657053709, 0.03588490933179855, -0.007676132954657078, 0.036343589425086975, -0.010880142450332642, 0.033780381083488464, -0.025159908458590508, -0.02797943726181984, -0.02542972005903721, 0.015595096163451672, 0.011662594974040985, 0.011332076974213123, -0.02569952979683876, 0.033591512590646744, 0.015851415693759918, 0.022259436547756195, 0.008748632855713367, -0.02074849233031273, -0.004961156286299229, -0.016957642510533333, 0.017375851050019264, -0.014812642708420753, -0.0326741524040699, -0.03245830535888672, -0.011669340543448925, 0.03952736034989357, 0.04926755279302597, -0.0036424531135708094, 0.022475285455584526, 0.033996228128671646, -0.006849835626780987, -0.013335425406694412, -0.04888981580734253, 0.0003737308725249022, -0.00699485931545496, 0.03701811656355858, -0.020168397575616837, -0.05380038172006607, -0.022745097056031227, -0.06059962883591652, 0.024377455934882164, 0.009166840463876724, 0.0130386333912611, -0.008053869009017944, 0.020438209176063538, -0.003895401256158948, -0.008755378425121307, 0.001345684053376317, 0.03914962708950043, 0.019426416605710983, -0.0019325237954035401, 0.004610401578247547, -0.026117738336324692, -0.030974343419075012, 0.011325331404805183, -0.04357453063130379, -0.02337915264070034, -0.033699437975883484, -0.020546134561300278, -0.05072453245520592, -0.009585048072040081, -0.017173491418361664, 0.015082454308867455, -0.01590537838637829, -0.02335217222571373, 0.011952642351388931, -0.024512359872460365, -0.000516435771714896, 0.03709905967116356, 0.013504058122634888, 0.03534528613090515, 0.05908868461847305, 0.003571627661585808, -0.022272925823926926, 0.01875188946723938, 0.020532643422484398, -0.001698968349955976, 0.02370292693376541, -0.029571322724223137, 0.01635056734085083, -0.014610284008085728, 0.008775614202022552, -0.007736840285360813, -0.03429302200675011, 0.004171957727521658, 0.0009628892294131219, 0.01657990738749504, 0.0029190215282142162, -0.06448490917682648, -0.04033679515123367, -0.01403019018471241, -0.014812642708420753, 0.049834154546260834, 0.0014611970400437713, 0.033645473420619965, 0.0027605073992162943, 0.027358870953321457, -0.017524246126413345, 0.010124670341610909, -0.03583094850182533, 0.01066429354250431, -0.033834341913461685, -0.0010354010155424476, 0.010772217996418476, -0.06318981945514679, 0.033753398805856705, -0.026333587244153023, -0.0027976064011454582, 0.027291417121887207, -0.017686134204268456, 0.03029981441795826, -0.027534248307347298, 0.026832738891243935, 0.004381061531603336, -0.012148255482316017, -0.020195379853248596, 0.00023566334857605398, 0.04381736367940903, 0.019507359713315964, -0.0070960381999611855, -0.0063000950030982494, -0.003693042788654566, 0.014192076399922371, -0.0027402713894844055, -0.026266135275363922, -0.021760284900665283, -0.021436510607600212, 0.0036053541116416454, -0.007386085577309132, -0.006738538388162851, 0.022731605917215347, 0.03065056912600994, 0.03008396551012993, 0.019669247791171074, -0.00812132190912962, -0.031621888279914856, -0.031567927449941635, -0.036046795547008514, -0.022165002301335335, 0.051614910364151, -0.005338891874998808, -0.022664153948426247, -0.012269671075046062, -0.01040122751146555, 0.013962737284600735, 0.017227454110980034, -0.012134765274822712, 0.006158444099128246, 0.0425492487847805, 0.00040071201510727406, -0.009983019903302193, 0.017794057726860046, -0.021935662254691124, -0.0015733373584225774, -0.04408717527985573, -0.01614820957183838, 0.004505849443376064, -0.015176888555288315, 0.01505547296255827, 0.031190192326903343, -0.06043774262070656, 0.033753398805856705, 0.022596700116991997, -0.014839624054729939, -0.010934105142951012, -0.00470483535900712, 0.024094153195619583, 0.0321345329284668, -0.014907076954841614, 0.009483869187533855, -0.016903681680560112, 0.024620285257697105, 0.007406321354210377, 0.01633707620203495, -0.0008486409788019955, 0.015716511756181717, -0.024687739089131355, -0.012114529497921467, 0.033807363361120224, 0.013308444991707802, -0.006397901568561792, 0.031513966619968414, 0.01519037876278162, -0.00955132208764553, 0.017483774572610855, 0.007858255878090858, 0.026954153552651405, -0.0011163444723933935, -0.014124623499810696, 0.008593491278588772, -0.015203868970274925, -0.02587490901350975, -0.029517361894249916, -0.02833019196987152, -0.043196797370910645, -0.0007402948685921729, 0.007264670450240374, -0.0032175004016608, 0.006856580730527639, 0.03038075752556324, 0.001789186499081552, 0.011298350058495998, 0.02571302093565464, 0.01864396408200264, 0.020519152283668518, -0.03968925029039383, 0.014947548508644104, 0.03046170063316822, -0.0013684494188055396, 0.04424906149506569, 0.0028094106819480658, -0.011122972704470158, -0.0026036794297397137, 0.019426416605710983, -0.015851415693759918, 0.0330788716673851, -0.02822226658463478, -0.006074127741158009, -0.012101039290428162, -0.006627241149544716, 0.019251039251685143, 0.022326888516545296, 0.006016793195158243, 0.02368943579494953, -0.05860302597284317, 0.022650662809610367, -0.00465761823579669, 0.014880095608532429, -0.007851510308682919, -0.0118379732593894, -0.01036075595766306, -0.02534877508878708, -0.00838438794016838, -0.009052170440554619, 0.0080336332321167, -0.045544154942035675, -0.0037065334618091583, -0.018212266266345978, 0.022853020578622818, -0.031729813665151596, 0.0007141568930819631, 0.02111273817718029, -0.015810944139957428, -0.009780661202967167, 0.010131415911018848, 0.011399528943002224, -0.03688321262598038, -0.033915285021066666, -0.02575349248945713, 0.01643151044845581, 0.029355473816394806, -0.029949059709906578, -0.015257831662893295, -0.01892726682126522, 0.01608075574040413, 0.029706228524446487, 0.03310585394501686, 0.033780381083488464, 0.04022887349128723, -0.011851463466882706, -0.008795849978923798, -0.0020185261964797974, -0.050346795469522476, 0.014583303593099117, 0.019224058836698532, 0.0017352242721244693, -0.0010075767058879137, -0.029004719108343124, 0.012350614182651043, -0.029031701385974884, 0.07792151719331741, -0.012836274690926075, -0.03048868291079998, -0.001827971893362701, -0.004354080650955439, 0.0370720773935318, -0.013713161461055279, -0.0030286323744803667, -0.03502151370048523, -0.006357430014759302, -0.005561486352235079, 0.02541622892022133, 0.010765472427010536, -0.005625566467642784, -0.0029628658667206764, -0.00174871482886374, 0.008944245986640453, -0.05218151584267616, 0.000813649850897491, 0.027277927845716476, -0.0018347171135246754, -0.03208056837320328, 0.004205684177577496, -0.033699437975883484, 0.03065056912600994, -0.0066879489459097385, -0.0032815805170685053, -0.0008962795836851001, -0.031406041234731674, 0.02827622927725315, -0.02352754957973957, -0.002190530765801668, 0.0067823827266693115, 0.023905284702777863, -0.0047925240360200405, 0.011891935020685196, -0.004397924989461899, 0.0005750354030169547, -0.01636405847966671, 0.003229304449632764, -0.03947339951992035, -0.006279859226197004, -0.02795245498418808, -0.014259529300034046, -0.017942454665899277, -0.0016525945393368602, -0.0025395993143320084, 0.011055519804358482, -0.008856557309627533, -0.0035817455500364304, -0.028977738693356514, -0.02364896424114704, -0.005564859136939049, 0.006546297576278448, 0.056768305599689484, 0.0007440890767611563, 0.0065395524725317955, -0.03445490822196007, -0.008182029239833355, -0.00828995369374752, -0.040930382907390594, -0.019075661897659302, 0.002920707920566201, 0.04265717417001724, -0.017294907942414284, 0.029247550293803215, 0.002514304593205452, 0.029841134324669838, -0.00037562797660939395, -0.003922382369637489, 0.005288302432745695, -0.040741514414548874, 0.0026660733856260777, -0.011237642727792263, 0.014758680947124958, -0.017834529280662537, -0.011035284027457237, -0.005514269229024649, 0.0071500008925795555, -0.03817830607295036, 0.036370567977428436, 0.0017504011048004031, -0.022326888516545296, -0.005301793105900288, -0.01295094471424818, -0.014583303593099117, 0.00928151048719883, -0.033915285021066666, -0.011176935397088528, 0.001419039093889296, 0.020411228761076927, -0.019183587282896042, -0.010590095072984695, -0.01398971863090992, -0.006192170549184084, 0.0006787441670894623, -0.007757076062262058, -0.0033911913633346558, 0.0034434671979397535, -0.04678528755903244, 0.0020758609753102064, -0.01680924743413925, 0.001505884574726224, 0.01633707620203495, 0.03059660643339157, -0.0030387502629309893, -0.0324043408036232, 0.03318679705262184, 0.023837832733988762, 0.007440047804266214, 0.012647407129406929, 0.029895097017288208, -0.03491358831524849, -0.007129764650017023, -0.005773962941020727, -0.006792500615119934, -0.0010219104588031769, -0.027116039767861366, -0.04217151179909706, -0.015487171709537506, -0.010853161104023457, -0.02537575736641884, 0.03742283210158348, 0.004984764847904444, -0.011338821612298489, 0.0037706135772168636, -0.03275509923696518, -0.0007837176672182977, 0.013429859653115273, -0.031190192326903343, -0.022057076916098595, -0.024107644334435463, 0.02348707802593708, 0.010596840642392635, -0.010805943980813026, -0.040984343737363815, 0.0210722666233778, 0.020073963329195976, -0.0052781845442950726, 0.02613122947514057, 0.0026812502183020115, -0.0006972937262617052, 0.0003996580489911139, -0.052532270550727844, -0.005787453148514032, 0.01411113329231739, -0.0284111350774765, 0.0007048821425996721, -0.006222524214535952, 0.015932360664010048, -0.03771962597966194, -0.020492171868681908, -0.014246039092540741, 0.007986416108906269, -0.00802014209330082, -0.00764240650460124, -0.007757076062262058, -0.007662642281502485, -0.01896773837506771, 0.019979530945420265, -0.04894377663731575, 0.005335519555956125, -0.0017385968239977956, 0.0056221941486001015, -0.02100481279194355, 0.0003676179621834308, 0.04149698466062546, 0.002133195986971259, 0.017106039449572563, -0.017510756850242615, -0.022704625502228737, 0.03191868215799332, -0.031406041234731674, 0.010644057765603065, 0.020100945606827736, 0.010367500595748425, 0.02092386968433857, 0.026117738336324692, 0.018158303573727608, 0.04263019189238548, -0.06275811791419983, 0.021679341793060303, 0.005230967421084642, -0.007156745996326208, -0.03051566332578659, 0.012249435298144817, -0.014839624054729939, -0.01636405847966671, 0.004357453435659409, 0.04168585315346718, -4.945663022226654e-05, 0.03742283210158348, -0.04238736256957054, 0.041038304567337036, -0.0037099060136824846, 0.02073500119149685, 0.0013625472784042358, -0.0025682668201625347, 0.05612076073884964, -0.017133019864559174, -0.020006511360406876, -0.02827622927725315, -0.0058683967217803, 0.04662340134382248, 0.006209033541381359, 0.0068801892921328545, -0.011062265373766422, -0.028815852478146553, -0.006512571591883898, 0.0009561439510434866, -0.009160094894468784, 0.009295000694692135, 0.0009451828664168715, 0.009517595171928406, -0.009861604310572147, -0.004077523946762085, -0.009780661202967167, -0.01895424723625183, -0.0037099060136824846, -0.007568208035081625, 0.01844160631299019, 0.0004768072394654155, 0.006725047715008259, 0.005750354379415512, 0.029571322724223137, 0.004492358770221472, -0.02128811553120613, -0.009052170440554619, 0.025119436904788017, 0.06518641859292984, -0.013214010745286942, -0.009787406772375107, -0.004232665523886681, -0.01181773655116558, 0.027143022045493126, -0.043115854263305664, -0.027008116245269775, -0.022461794316768646, 0.004215802066028118, 0.010590095072984695, 0.03769264370203018, -0.020438209176063538, 0.01863047294318676, 0.04611076042056084, 0.031082266941666603, -0.0025615214835852385, -0.04673132672905922, 0.008863302879035473, -0.009821132756769657, -0.036127738654613495, 0.021881699562072754, -0.006023538298904896, -0.022340379655361176, -0.02065405808389187, 0.006836344953626394, -0.04648849368095398, 0.027304908260703087, -0.014542831107974052, -0.005284929648041725, 0.005649175029247999, 0.04891679808497429, -0.013827831484377384, -4.782300675287843e-05, 0.007939198985695839, -0.003952736034989357, 0.0037706135772168636, -0.008350661024451256, 0.024809153750538826, 0.003895401256158948, -0.0038245758041739464, -0.048296231776475906, -0.017942454665899277, -0.0184685867279768, -0.0016129659488797188, -0.006239387206733227, -0.014731699600815773, -0.02061358653008938, 0.020262831822037697, 0.019669247791171074, 0.02569952979683876, 0.02302839793264866, 0.00526469387114048, -0.011237642727792263, -0.007500755600631237, 0.010252831503748894, -0.007325378246605396, 0.03326774016022682, -0.0465424582362175, -0.0032664036843925714, 0.004866722039878368, -0.01531179342418909, 0.012532737106084824, -0.014664246700704098, -0.005092689301818609, -0.008128066547214985, 0.0302728321403265, 0.004195566289126873, -0.010853161104023457, 0.0008570725913159549, -0.037476796656847, 0.012316888198256493, 0.017551228404045105, 0.010785708203911781, 0.031325098127126694, 0.0058346702717244625, -0.009719953872263432, 0.005898750387132168, 0.015756983309984207, -0.036289624869823456, 0.0094029251486063, 0.013308444991707802, -0.012087548151612282, 0.012141510844230652, -0.04856604337692261, -0.024660756811499596, 0.029247550293803215, -0.004927429836243391, -0.015581605024635792, -0.003881910815834999, 0.0032647172920405865, -0.006613750476390123, -0.01621566154062748, 0.003053927095606923, 0.007898727431893349, -0.021989624947309494, 0.045840948820114136, -0.00526469387114048, -0.01617518998682499, -0.019696228206157684, 0.008404623717069626, 0.012377595528960228, -0.02142302133142948, 0.012438302859663963, -0.008526038378477097, 0.006067382637411356, 0.005854906048625708, -0.004937547724694014, 0.006117972079664469, -0.008431604132056236, 0.02564556896686554, 0.0017841275548562407, -0.02811434306204319, 0.018158303573727608, -0.006097736302763224, -0.015028491616249084, 0.027277927845716476, 0.008667689748108387, -0.03483264520764351, 0.016984624788165092, -0.0006530277896672487, 0.017659151926636696, 0.011709812097251415, 0.019426416605710983, -0.05412415415048599, 0.006010047625750303, -0.07937850058078766, -0.015487171709537506, 0.00634056655690074, -0.011945897713303566, -0.01639103889465332, -0.01160188764333725, -0.01598632149398327, 0.0010337147396057844, -0.000995772541500628, -0.005025236401706934, 0.012802548706531525, -0.025173397734761238, -0.006451863795518875, -0.029112644493579865, -0.003723396686837077, -0.03251226618885994, -0.01397622749209404, -0.013065614737570286, 0.003473821096122265, -0.002649210160598159, 0.05444793030619621, -0.0040640332736074924, 4.458210969460197e-05, 0.013497312553226948, -0.009166840463876724, 0.0011753656435757875, -0.022515757009387016, -0.005929104518145323, -0.0281413234770298, 0.008269717916846275, 0.03726094588637352, -0.036478493362665176, 0.03224245458841324, 0.02360849268734455, 0.012364105321466923, -0.0052512031979858875, -0.013106086291372776, -0.002209080383181572, 0.010468680411577225, 0.012391085736453533, 0.036262646317481995, -0.020073963329195976, -0.01401669904589653, -0.0048195053823292255, -0.022745097056031227, 0.031433023512363434, 0.006374293006956577, -0.00814830232411623, -0.0030994578264653683, -0.004205684177577496, 0.013908774591982365, -0.010954340919852257, -0.017915474250912666, 0.019291510805487633, 0.003355778520926833, 0.007433302700519562, 0.012087548151612282, -0.006883562076836824, -0.027250945568084717, -0.004829623270779848, -0.007069057319313288, 0.036154720932245255, -0.02808736078441143, 0.0016981251537799835, 0.010698019526898861, 0.012424812652170658, -0.010138161480426788, -0.0016694576479494572, 0.025038493797183037, 0.010967831127345562, -0.017348868772387505, -0.02100481279194355, -0.008613727055490017, -0.021530944854021072, 0.003155106445774436, 0.014893586747348309, 0.018266228958964348, 0.028492078185081482, -0.003723396686837077, 0.03229641914367676, 0.007446793373674154, -0.007210708223283291, 0.0016804187325760722, 0.029571322724223137, 0.027615191414952278, 0.017713114619255066, 0.021517455577850342, 0.010455189272761345, 0.022340379655361176, -0.01863047294318676, 0.019305001944303513, -0.02822226658463478, -0.0017158315749838948, -0.013659199699759483, 0.00955132208764553, 0.004603656008839607, 0.03008396551012993, -0.0040640332736074924, 0.019588302820920944, 0.024310002103447914, -0.02122066169977188], "id": 90}, {"title": "Fuzhou", "text": "Fuzhou (Chinese: \u798f\u5dde; formerly Foochow) is the capital and one of the largest cities in Fujian province, People's Republic of China. Along with the many counties of Ningde, those of Fuzhou are considered to constitute the Mindong (lit. East of Fujian) linguistic and cultural area.Fuzhou's core counties lie on the north (left) bank of the estuary of Fujian's largest river, the Min River. All along its northern border lies Ningde, and Ningde's Gutian County lies upriver.", "vector": [0.00944509543478489, 0.09612657874822617, -0.013512429781258106, -0.010648109018802643, 0.0045900726690888405, -0.0046974848955869675, -0.0004128648724872619, -0.027382899075746536, -0.04923766106367111, -0.042993441224098206, -0.011507405899465084, 0.01715727709233761, -0.05562509223818779, 0.023129383102059364, 0.007121415343135595, 0.008012935519218445, -0.022341696545481682, 0.03892610967159271, -0.025592699646949768, -0.005023301113396883, -0.006716830190271139, 0.026595210656523705, 0.0036537982523441315, -0.013727253302931786, 0.0062298960983753204, 0.04127484932541847, -0.010841450653970242, -0.02318667061626911, -0.016340944916009903, 0.024203503504395485, 0.04943816363811493, -0.012087429873645306, 0.009974994696676731, -0.029130134731531143, -0.02211255021393299, 0.031650736927986145, 0.03929847106337547, -0.004264256451278925, 0.018847225233912468, 0.044769320636987686, 0.013712931424379349, -0.013548233546316624, 0.049409519881010056, 0.028328124433755875, 0.003200877457857132, -0.04330851882696152, 0.0011331966379657388, -0.03480148687958717, -0.014414690434932709, -0.01488014217466116, 0.03497334569692612, -0.030562294647097588, -0.01405664999037981, 0.04176178574562073, -0.018116824328899384, 0.03434319794178009, 0.008285045623779297, 0.08329442143440247, -0.03786630928516388, 0.006172609515488148, 0.017415065318346024, -0.039241183549165726, 0.0003311870095785707, 0.023415815085172653, -0.019577626138925552, 0.035488925874233246, -0.013082781806588173, -0.01775878295302391, 0.006734732538461685, -0.02132486179471016, 0.0019978631753474474, 0.06324418634176254, 0.03199445456266403, 0.011915571056306362, -0.0011681055184453726, -0.007354141678661108, -0.006025813054293394, -0.025621341541409492, -0.0234731025993824, -0.024103252217173576, 0.049409519881010056, 0.02206958457827568, -0.033254753798246384, -0.006462621968239546, -0.006444720085710287, -0.030562294647097588, -0.04794871434569359, -0.03050500713288784, -0.07292558252811432, -0.009717205539345741, -0.018546471372246742, 0.007447232026606798, -0.011908410117030144, 0.02464747242629528, 0.016083156690001488, 0.0024758465588092804, 0.03637686371803284, 0.0040816557593643665, -0.019362803548574448, 0.029874857515096664, 0.00020911773026455194, 0.03374169021844864, 0.023072097450494766, 0.04316530004143715, 0.04199093207716942, 0.04193364456295967, -0.021253254264593124, -0.03995726257562637, 0.026466315612196922, 0.0257215928286314, 0.04138942435383797, 0.05917685106396675, 0.0450843945145607, 0.0411316342651844, 0.000989085528999567, 0.04972459375858307, 0.01629798114299774, -0.017500994727015495, -0.017271850258111954, 0.003480148734524846, 0.004826379008591175, 0.03772309422492981, 0.03354118764400482, -0.014300117269158363, -0.0077694677747786045, 0.022313052788376808, 0.03236681595444679, -0.020938178524374962, 0.01709998957812786, 0.00046724220737814903, -0.012832153588533401, 0.011077756993472576, 0.03219495713710785, 0.006519908085465431, -0.027526114135980606, -0.013462304137647152, 0.0234731025993824, 0.003517742967233062, -0.027984406799077988, 0.01874697394669056, 0.001644298667088151, 0.047060776501894, -0.06049443781375885, 0.0009568618843331933, 0.017443709075450897, -0.04156128317117691, 0.042563796043395996, 0.030590936541557312, 0.038496460765600204, -0.020121848210692406, -0.010877255350351334, -0.038639675825834274, 0.05556780844926834, -0.007275372743606567, 0.021725866943597794, -0.011557530611753464, -0.004471919499337673, 0.0020694711711257696, 0.023072097450494766, -0.06324418634176254, 0.015080644749104977, -0.017300492152571678, 0.029588425531983376, -0.015152252279222012, -0.024404006078839302, -0.04731856659054756, 0.011407154612243176, -0.0286288782954216, 0.007662056013941765, 0.020923856645822525, 0.04075927287340164, 0.0170570258051157, -0.011500244960188866, -0.037092942744493484, -0.028514305129647255, -0.005087748169898987, 0.027096467092633247, 0.04293615743517876, 0.02501983568072319, 0.03448641300201416, 0.00955966766923666, -0.044540174305438995, 0.041160278022289276, -0.020279385149478912, -0.049037158489227295, -0.0052810898050665855, -0.024203503504395485, -0.013627002015709877, 0.037322089076042175, -0.0037379376590251923, -0.016054512932896614, 0.007221666630357504, 0.044167812913656235, -0.04803464561700821, 0.05688539519906044, -0.010547858662903309, -0.017314814031124115, 0.04780549928545952, 0.03749394789338112, -0.009531024843454361, -0.02169722318649292, -0.0055854241363704205, -0.02815626561641693, 0.011872606351971626, -0.006691767368465662, 0.00880778394639492, -0.013004012405872345, 0.007099932990968227, -0.03866831958293915, -0.013641323894262314, 0.039899978786706924, -0.03792359679937363, 0.010884416289627552, 0.04588640481233597, -0.008199116215109825, 0.0029538299422711134, 0.002805243246257305, -0.011779516004025936, 0.02534923143684864, -0.015166574157774448, 0.009774492122232914, 0.017357779666781425, -0.023014811798930168, 0.00486218323931098, -0.05104218050837517, 0.04316530004143715, -0.04333716258406639, 0.04050148278474808, -0.019506018608808517, 0.016899487003684044, -0.003974243998527527, 0.009731527417898178, -0.044253744184970856, 0.036290932446718216, -0.013784539885818958, -0.005227384157478809, -0.024905262514948845, -0.00034103309735655785, 0.004704645369201899, 0.053963787853717804, -0.0157967247068882, 0.03259596228599548, -0.001917304121889174, 0.02877209335565567, 0.022799987345933914, -0.019563306123018265, 0.006544970907270908, -0.003603672608733177, 0.005968526937067509, -0.028557270765304565, -0.017458030954003334, -0.018431898206472397, 0.02947385236620903, 0.039155252277851105, -0.026681140065193176, 0.018589437007904053, -0.0021016946993768215, -0.02291456051170826, 0.008650246076285839, -0.026738427579402924, -0.022313052788376808, -0.01687084510922432, 0.03359847143292427, -0.002721104072406888, -0.0046581001952290535, 0.011213812977075577, -0.037092942744493484, 0.03102058544754982, -0.022613806650042534, 0.013734414242208004, 0.022141193971037865, 0.008478387258946896, 0.016283659264445305, -0.011636300012469292, -0.04989645257592201, -0.013190193101763725, -0.0026315939612686634, 0.020866570994257927, 0.032825104892253876, 0.0017848294228315353, 0.02000727504491806, 0.06158287823200226, -0.006351629737764597, -0.028170587494969368, -0.046888917684555054, -0.004908728413283825, -0.016412552446126938, 0.035775355994701385, -1.8167733287555166e-05, -0.028013048693537712, 0.002092743758112192, -0.04897987097501755, -0.005288250744342804, -0.021195968613028526, -0.012223485857248306, 0.005950624588876963, 0.014751248061656952, 0.02005023881793022, -0.005016140174120665, 0.0011645250488072634, -0.0404728427529335, -0.012259289622306824, 0.010075245052576065, 0.006641641724854708, 0.050440672785043716, 0.03182259574532509, -0.019949989393353462, -0.005556780844926834, -0.06484820693731308, -0.04686027392745018, 0.040415555238723755, -0.004504143260419369, -0.05258891358971596, 0.00504836393520236, -0.023029131814837456, -0.013784539885818958, -0.01276770606637001, -0.03904068097472191, -0.021912047639489174, -0.026366064324975014, -0.04370952397584915, -0.02174018882215023, -0.030476365238428116, -0.01565350778400898, 0.005793087184429169, 0.008220598101615906, -0.022098228335380554, 0.02060878276824951, 0.035632140934467316, 0.04840700700879097, -0.03929847106337547, -0.03631957620382309, -0.01785903424024582, -0.014565067365765572, -0.0419050008058548, 0.0037522590719163418, 0.009616954252123833, 0.019004762172698975, -0.008664567954838276, 0.07498789578676224, -0.005972106941044331, 0.014249991625547409, 0.03251003101468086, 0.020723354071378708, 0.025707270950078964, 0.029674354940652847, 0.03594721481204033, -0.023859785869717598, 0.015195216983556747, -0.05797383561730385, 0.0006731151952408254, -0.05763011798262596, 0.001617445726878941, 0.002286085393279791, 0.015152252279222012, 0.008170472458004951, -0.0329110361635685, -0.018618078902363777, -0.004786994773894548, 0.02202662080526352, -0.04325123131275177, 0.01213755551725626, -0.036290932446718216, 0.01972084306180477, 0.024618830531835556, 0.004661680664867163, -0.019949989393353462, 0.016856523230671883, 0.008764819242060184, 0.02145375683903694, 0.020837927237153053, 0.0694311186671257, -0.018102502450346947, 0.014486297965049744, 0.014937428757548332, -0.005821730475872755, 0.008313688449561596, -0.0167276281863451, 0.002474056323990226, -0.025607019662857056, 0.025750236585736275, 0.02984621375799179, 0.05350549519062042, 0.04282158240675926, 0.014471977017819881, -0.030304504558444023, -0.010948862880468369, -0.007099932990968227, -0.01639823243021965, 0.035546209663152695, -0.05430750548839569, 0.02005023881793022, 0.005538878496736288, 0.026179883629083633, 0.012968208640813828, -0.024962548166513443, -0.0835808590054512, 0.005499494262039661, 0.009409290738403797, -0.061411019414663315, 0.012717580422759056, 0.016412552446126938, 0.019190942868590355, 0.007547483313828707, 0.002354112919420004, 0.028972595930099487, -0.011399993672966957, -0.008635925129055977, -0.057716045528650284, 0.05952056869864464, 0.002805243246257305, -0.022785665467381477, 0.012638811953365803, -0.016269337385892868, -0.013720092363655567, 0.023788176476955414, -0.032080382108688354, -0.018145466223359108, 0.021969333291053772, 0.014808534644544125, 0.026136919856071472, -0.03640550747513771, 0.021826118230819702, -0.029502496123313904, 0.004629456903785467, 0.02788415551185608, 0.01164346095174551, 0.02408893033862114, -0.01396355964243412, 0.05304720625281334, -0.011772355064749718, -0.009194467216730118, 0.01377737894654274, 0.017930643633008003, 0.0072145056910812855, -0.020393958315253258, 0.037236157804727554, -0.0143430819734931, 0.017357779666781425, 0.04428238794207573, 0.02487661875784397, -0.018388934433460236, 0.020393958315253258, 0.006143966224044561, -0.033197470009326935, -0.01009672787040472, 0.01026142667979002, -0.01525250356644392, 0.006373112089931965, 0.03248138725757599, -0.029259027913212776, -0.020207777619361877, -0.035402994602918625, 0.03692108392715454, -0.0015932780224829912, 0.011349868029356003, 0.025363553315401077, 0.007884040474891663, 0.03497334569692612, -0.009710044600069523, 0.0034568761475384235, -0.014565067365765572, 0.021482400596141815, 0.0003311870095785707, 0.015309790149331093, -0.03987133502960205, 0.04531354084610939, -0.045571330934762955, -0.0327964648604393, -0.0012271821033209562, -0.011235294863581657, 0.031135158613324165, -0.029216064140200615, -0.04176178574562073, -0.031708020716905594, 0.020222099497914314, -0.02749747224152088, -0.06960297375917435, 0.04330851882696152, -0.0018528569489717484, -0.004095977637916803, -0.018961798399686813, -0.035259779542684555, -0.038725607097148895, 0.02586480975151062, 0.023888427764177322, -0.007540322374552488, -0.012187681160867214, 0.05731504410505295, 0.012574364431202412, 0.04293615743517876, -0.018116824328899384, -0.01813114620745182, 0.0015207749092951417, -0.0007720237481407821, 0.025664307177066803, -0.03102058544754982, -0.034887418150901794, -0.05270348861813545, -0.044167812913656235, 0.021568330004811287, 0.07624819874763489, 0.02300048992037773, -0.03514520451426506, -0.012388183735311031, 0.03497334569692612, -0.054049719125032425, 0.013175872154533863, -0.022656770423054695, -0.04296480119228363, 0.016369588673114777, -0.019749486818909645, 0.014479137025773525, -0.026179883629083633, -0.022098228335380554, -0.033340685069561005, 0.030476365238428116, 0.039756760001182556, 0.015811046585440636, 0.004389570560306311, -0.014586549252271652, 0.02553541213274002, -0.04834971949458122, -0.012889440171420574, 0.027296969667077065, -0.023158026859164238, -0.021711545065045357, -0.004196228925138712, -0.01818843185901642, -0.06897282600402832, -0.03666329383850098, 0.010648109018802643, 0.004421793855726719, -0.0009568618843331933, 0.08031553030014038, -0.03566078469157219, -0.0012039095163345337, -0.023401493206620216, 0.006251378450542688, -0.009960672818124294, -0.045571330934762955, -0.009710044600069523, -0.008471226319670677, 0.003045130055397749, -0.006727571599185467, -0.004618715960532427, 0.01808818057179451, -0.02638038620352745, -0.02037963643670082, 0.018388934433460236, 0.01907637156546116, 0.04743313789367676, -0.056255243718624115, 0.023315563797950745, 0.01794496364891529, -0.0011976438108831644, -0.011901249177753925, -0.00615112716332078, -0.03574671223759651, -0.008972481824457645, 0.013555394485592842, 0.042105503380298615, -0.028199229389429092, 0.022155513986945152, -0.021639937534928322, 0.023014811798930168, 0.003039759583771229, -0.03580399975180626, -0.05046931654214859, 0.030447721481323242, 0.010948862880468369, -0.02165425941348076, 0.005026881583034992, -0.01934848167002201, 0.04061605781316757, 0.007755146361887455, -0.015553257428109646, -0.04465474933385849, -0.013154389336705208, -0.01185828447341919, 0.02338717319071293, -0.0036162040196359158, 0.022842951118946075, 0.03205174207687378, 0.05193012207746506, 0.018059536814689636, 0.022928880527615547, -0.019992953166365623, 0.009366326034069061, -0.021725866943597794, -0.012345219030976295, 0.03623364865779877, -0.012080269865691662, 0.02910149097442627, 0.007461553439497948, 0.026451995596289635, -0.02159697189927101, -0.0045113037340343, -0.03210902586579323, 0.00890087429434061, 0.015639187768101692, -0.008335171267390251, -0.003447925206273794, -0.05894770473241806, -0.03419997915625572, 0.024805011227726936, -0.029445208609104156, 0.0036537982523441315, -0.01452926266938448, -0.00687436806038022, -0.023516066372394562, 0.020866570994257927, 0.027583401650190353, 0.01485149934887886, -0.010963184759020805, 0.025191694498062134, -0.0029681515879929066, 0.009495221078395844, 0.03823867067694664, -0.01833164691925049, 0.027569079771637917, -0.05783062055706978, 0.049925096333026886, 0.018202753737568855, -0.04118892177939415, -0.03293967992067337, 0.017400743439793587, -0.06335875391960144, -0.019548984244465828, -0.022241445258259773, -0.025521090254187584, 0.0008257297449745238, 0.02834244631230831, 0.009244592860341072, 0.032538674771785736, -0.004905147943645716, -0.01562486495822668, -0.04399595409631729, -0.01606883481144905, -0.026824356988072395, -0.029416566714644432, -0.0007711286307312548, 0.025735914707183838, -0.03222360089421272, 0.02343013696372509, -0.02844269759953022, -0.0417904295027256, -0.005123552400618792, 0.013698610477149487, 0.016412552446126938, 0.019463054835796356, 2.9006834665779024e-05, 0.011142204515635967, -0.010304391384124756, -0.00874333642423153, 0.011185169219970703, 0.029531138017773628, 0.0115718524903059, 0.01846054196357727, 0.02295752428472042, 0.0143430819734931, -0.022227123379707336, 0.013834665529429913, -0.012789188884198666, -0.03314018249511719, 0.0017275429563596845, -0.01926255226135254, 0.0034819389693439007, 0.01532411202788353, 0.03546028211712837, 0.010719717480242252, 0.019620591774582863, 0.026695461943745613, -0.03829595819115639, -0.03631957620382309, -0.010862933471798897, 0.016226371750235558, -0.03743666037917137, 0.010948862880468369, 0.003673490369692445, -0.021869082003831863, -0.009294718503952026, -0.0046581001952290535, -0.03130701556801796, -0.0321376696228981, 0.011450119316577911, 0.015266825444996357, -0.01443617232143879, 0.020322350785136223, 0.020222099497914314, -0.001010567881166935, -0.022986168041825294, 0.015911297872662544, 0.019477374851703644, 0.008650246076285839, 0.009337683208286762, -0.027855511754751205, -0.00046097650192677975, 0.007762307301163673, -0.043509021401405334, 0.0041890679858624935, 0.021725866943597794, -0.0003972006088588387, -0.06146830692887306, 0.010254265740513802, -0.0010794906411319971, -0.018546471372246742, 0.019291194155812263, -0.020966822281479836, -0.0030111162923276424, 0.017744462937116623, -0.058403484523296356, 0.01827436126768589, -0.013669966720044613, -0.0482637919485569, -0.02076631970703602, 0.02633742243051529, -0.05642710253596306, 0.005417145323008299, 0.03566078469157219, -0.025521090254187584, 0.00032357865711674094, 0.02506279945373535, 0.008499869145452976, -0.034658271819353104, 0.007200184278190136, 0.004360927268862724, 0.029731640592217445, -0.03480148687958717, 0.005256026983261108, -0.02000727504491806, 0.05576831102371216, -0.01645551808178425, 0.005034042522311211, -0.007293274626135826, 0.056914038956165314, -0.01934848167002201, 0.023644961416721344, 0.04010047763586044, -0.009810295887291431, 0.0030737733468413353, -0.005853953771293163, 0.041876357048749924, 0.022198479622602463, -0.0004963329411111772, -0.030247218906879425, -0.017816070467233658, 0.049581378698349, -0.01701406016945839, 0.0367492251098156, 0.004611555021256208, -0.04213414713740349, 0.029903501272201538, -0.027855511754751205, -0.014364564791321754, -0.009316200390458107, -0.01990702375769615, -0.01112788263708353, -0.021382149308919907, 0.02914445474743843, -0.007955648936331272, -0.02456154301762581, 0.02394571527838707, -0.016656020656228065, -0.0019835415296256542, -0.05476579815149307, -0.01532411202788353, -0.005485172849148512, -0.007468714378774166, -0.01311858557164669, 0.0021894145756959915, -0.01066243089735508, 0.009029768407344818, -0.04502711072564125, 0.00908705499023199, 0.010841450653970242, 0.0315934494137764, -0.026409029960632324, 0.015639187768101692, -0.0090226074680686, -0.019878380000591278, -0.002275344217196107, -0.013548233546316624, 1.6083828086266294e-05, -0.023372851312160492, -0.028499983251094818, -0.0046974848955869675, -0.02501983568072319, -0.002570727141574025, 0.035259779542684555, -0.05969242751598358, -0.0033369327429682016, -0.024346720427274704, -0.025320587679743767, 0.006007911171764135, -0.009144341573119164, 0.033111538738012314, -0.005334795918315649, 0.014579388312995434, -0.025377875193953514, 0.03703565523028374, -0.00781243247911334, 0.0025581957306712866, 0.025936417281627655, 0.06152559444308281, 0.0028840121813118458, -0.0002163904282497242, -0.023501744493842125, -0.06169745326042175, 0.017644211649894714, 0.018303005024790764, 0.004428954795002937, 0.009323361329734325, 0.07756578177213669, -0.009738687425851822, 0.014550745487213135, 0.00596136599779129, -0.013741575181484222, -0.00561048649251461, -0.028084658086299896, 0.04600097984075546, -0.011937053874135017, 0.00047574564814567566, 0.00974584836512804, -0.014300117269158363, 0.024762045592069626, 0.02126757614314556, -0.053304992616176605, -0.0067454734817147255, -0.006376692093908787, -0.016756271943449974, -0.030963297933340073, -0.023673605173826218, -0.0011296161683276296, -0.014722604304552078, -0.018546471372246742, 0.05178690329194069, -0.017558282241225243, 0.026881642639636993, 0.022155513986945152, -0.039670832455158234, -0.01916230097413063, 0.012867957353591919, 0.01485149934887886, -0.02764068730175495, -0.02287159487605095, 0.013097102753818035, -0.03368440270423889, 0.010626627132296562, -0.03846781700849533, 0.025621341541409492, 0.0157967247068882, 0.02970299869775772, 0.003567868610844016, 0.039527613669633865, 0.023258278146386147, -0.0547371543943882, -0.027239682152867317, -0.022227123379707336, -0.013311927206814289, 0.021754510700702667, 0.01565350778400898, -0.03557485342025757, -0.002545664319768548, -0.003988565411418676, -0.0008069326286204159, 0.01850350759923458, -0.02811329998075962, -0.008507030084729195, 0.014386046677827835, -0.013440821319818497, -0.04766228422522545, -0.01356255542486906, 0.005094909109175205, -0.003132849931716919, -0.03652007877826691, -0.0032277305144816637, 0.013899113051593304, 0.03242410346865654, 0.030104001984000206, 0.025463804602622986, 0.013440821319818497, 0.041074346750974655, -0.01063378807157278, -0.004622296430170536, 0.03995726257562637, -0.005324054509401321, 0.009795974008738995, 0.0193055160343647, -0.010232782922685146, 0.010254265740513802, 0.0392698273062706, 0.04995374009013176, 0.01860375888645649, -0.0004059278580825776, -0.011249616742134094, -0.0261082760989666, -0.025463804602622986, 0.021811796352267265, -0.0059255617670714855, -0.010619466193020344, -0.01488014217466116, 0.027254004031419754, -0.03293967992067337, -0.011593335308134556, 0.012624490074813366, 0.002520601497963071, 0.017930643633008003, -0.00991054717451334, 0.03660601004958153, 0.026967572048306465, 0.02408893033862114, -0.042850226163864136, -0.07859694212675095, -0.020408280193805695, -0.01424283068627119, -0.04012912139296532, 0.058317553251981735, -0.007568965665996075, 0.01977812871336937, -0.003788063069805503, 0.009180145338177681, -0.006176189985126257, -0.01785903424024582, -0.009502381086349487, -0.011722229421138763, 0.031077871099114418, 0.021009786054491997, -0.005377760622650385, 0.007662056013941765, 0.017185918986797333, 0.019520340487360954, 0.027196718379855156, 0.012388183735311031, 0.02118164673447609, -0.02033667080104351, -0.027683652937412262, -0.03351254388689995, 0.0004121935344301164, 0.016269337385892868, 0.02431807667016983, -0.0033082894515246153, 0.030762797221541405, -0.05384921655058861, -0.04007183760404587, -0.0020014436449855566, 0.0021786733996123075, 0.001600438728928566, -0.030189933255314827, 0.04935223236680031, -0.04863615334033966, -0.026638176292181015, 0.01621205173432827, -0.036806512624025345, 0.045857761055231094, -0.0010293649975210428, -0.028170587494969368, 0.019692199304699898, 0.00817763339728117, -0.015725117176771164, 0.03494470193982124, 0.030161289498209953, 0.008356653153896332, -0.0071572195738554, 0.007776628714054823, 0.005735800601541996, 0.01374873612076044, -0.04161857068538666, -0.008771980181336403, 0.007418588735163212, -0.002130337990820408, -0.011937053874135017, -0.024289432913064957, 0.015052000992000103, 0.012925243936479092, 0.010390320792794228, 0.02006456069648266, -0.006061617285013199, 0.02287159487605095, -0.014937428757548332, 0.009101376868784428, 0.03079143911600113, 0.01916230097413063, 0.005220223218202591, -0.004350185859948397, 0.025649985298514366, 0.0141497403383255, 0.0036949727218598127, -0.05837484076619148, 0.01695677451789379, -0.0011681055184453726, -0.009044090285897255, 0.03265324607491493, -0.036290932446718216, -0.01635526679456234, -0.023487424477934837, -0.04133213683962822, -0.016799235716462135, 0.0006292553152889013, -0.0032742756884545088, 0.005463690496981144, 0.0018886609468609095, -0.041446708142757416, -0.015223860740661621, -0.047404494136571884, 0.022184157744050026, -0.005646290723234415, 0.004006467759609222, -0.01752963848412037, 0.0046366178430616856, -0.01907637156546116, -0.03187987953424454, 0.009702883660793304, -0.04153263941407204, 0.02460450865328312, -0.018388934433460236, -0.005750122480094433, -0.015610544010996819, -0.00845690444111824, 0.009258913807570934, -0.02060878276824951, -0.013712931424379349, -0.03468691557645798, -0.03228088468313217, -0.006233476102352142, 0.03534570708870888, -0.0643899142742157, -3.896482303389348e-05, -0.021167324855923653, -0.03818138688802719, -0.0015136140864342451, -0.005861114710569382, 0.0008266248623840511, 0.02404596656560898, -0.04998238384723663, 0.03013264574110508, -0.047060776501894, 0.0012540350435301661, -0.014493458904325962, 0.022943202406167984, -0.013627002015709877, -0.01752963848412037, 0.004407472442835569, 0.02216983586549759, -0.010039441287517548, -0.07097785174846649, 0.0104762502014637, -0.008464065380394459, -0.009144341573119164, -0.02272837981581688, 0.04353766515851021, -0.01324031874537468, 0.01695677451789379, -0.021969333291053772, -0.01612612046301365, 0.007278953213244677, -0.018245717510581017, 0.028757771477103233, -0.005105650518089533, 0.003920537885278463, -0.026494959369301796, 0.028227873146533966, -0.008850748650729656, -0.043365802615880966, -0.005689255427569151, 0.028414053842425346, 0.015094966627657413, 0.03712158650159836, 0.007712181657552719, 0.0008378135971724987, 0.0030164869967848063, -0.03293967992067337, 0.001573585788719356, 0.0045900726690888405, 0.038124099373817444, 0.018618078902363777, -0.008285045623779297, 0.006684606894850731, -0.018589437007904053, -0.004944532178342342, 0.032166313380002975, -0.003100626403465867, 0.011256777681410313, 0.012445470318198204, 0.037178874015808105, -0.026838678866624832, 0.002259232336655259, 0.029416566714644432, 0.0012898390414193273, 0.026136919856071472, -0.012846475467085838, 0.006315825507044792, 0.0035338548477739096, 0.0025546152610331774, 0.0005706262309104204, -0.002463315147906542, -0.023559032008051872, 0.00039362022653222084, -0.031564805656671524, -0.0018815001240000129, -0.016097478568553925, -0.01775878295302391, -0.01715727709233761, -0.014994715340435505, 0.032825104892253876, 0.024633152410387993, -0.004532786551862955, -0.0247334036976099, -0.01794496364891529, -0.015209538862109184, 0.02103842981159687, 0.010583662427961826, 0.0045900726690888405, -0.000532584497705102, 0.01466531865298748, 0.01443617232143879, -0.009330522269010544, -0.01709998957812786, 0.011901249177753925, -0.00943793449550867, -0.00459365313872695, 0.021024107933044434, -0.0154386842623353, -0.0041210404597222805, -0.018589437007904053, -0.015352754853665829, -0.01145728025585413, 0.025649985298514366, 0.005216642748564482, 0.006752634420990944, -0.008335171267390251, -0.005624808371067047, 0.014937428757548332, 0.016097478568553925, 0.018589437007904053, 0.012810670770704746, 0.007221666630357504, -0.008564316667616367, -0.023115061223506927, -0.013977881520986557, 0.04485525190830231, 0.01738642156124115, 0.0030057458207011223, 0.025463804602622986, 0.025735914707183838, 0.0036233647260814905, -0.0017329135444015265, 0.05768740549683571, -0.03583264350891113, 0.017028382048010826, 0.0022950363345444202, 0.0006704299012199044, 0.016698986291885376, -0.0231437049806118, -0.006283601745963097, -0.0022771344520151615, 0.010504893027245998, -0.008163311518728733, -0.016011549159884453, 0.007841075770556927, 0.013934916816651821, -0.007096352521330118, -0.005954205058515072, -0.032452743500471115, 0.013311927206814289, -0.004876504652202129, 0.03485877439379692, -0.019334159791469574, -0.020966822281479836, -0.00017599904094822705, 0.013691449537873268, -0.0068994308821856976, 0.004400311503559351, -0.01625501550734043, 0.0030308086425065994, -0.03918389603495598, 0.012817831709980965, 0.014579388312995434, 0.011865445412695408, -0.001245979219675064, -0.017500994727015495, -0.008578638546168804, -0.028972595930099487, 0.004536366555839777, -0.014063810929656029, -0.041446708142757416, -0.02549244835972786, -0.01583968847990036, -0.00716796051710844, -0.01450061984360218, -0.009108537808060646, 0.0008172263042069972, 0.0016997948987409472, 0.0011842172825708985, -0.009638437069952488, 0.009223110042512417, -0.01668466441333294, -0.04110299050807953, 0.007468714378774166, -0.027239682152867317, -0.026409029960632324, -0.034457769244909286, 0.0033261915668845177, -0.0005607801140286028, -0.023014811798930168, 0.010404642671346664, 0.001204804633744061, -0.009237431921064854, -0.02126757614314556, -0.007053387816995382, -0.028600234538316727, 0.0078697195276618, 0.03167937695980072, 0.009215949103236198, -0.012166199274361134, -0.03116380050778389, 0.02174018882215023, 0.027382899075746536, 0.03354118764400482, 0.0327964648604393, 0.028886666521430016, 0.014751248061656952, 0.03677786886692047, 0.02076631970703602, -0.019276874139904976, 0.054479364305734634, 0.000131803477415815, -0.028013048693537712, -0.006040134932845831, -0.007776628714054823, -0.008170472458004951, -0.005252446513622999, -0.013233157806098461, 0.0457431897521019, -0.03626229241490364, -0.021353505551815033, 0.021955013275146484, 0.0143430819734931, 0.006079519167542458, -0.007099932990968227, 0.011278259567916393, 0.012159038335084915, 0.01110640075057745, 0.008786301128566265, 0.009230270981788635, 0.04104570671916008, 0.04138942435383797, 0.0035804000217467546, 0.00963127613067627, -0.017959285527467728, 0.00298784370534122, 0.005732220131903887, -0.010483411140739918, 0.03251003101468086, -0.006913752295076847, -0.01846054196357727, 0.017816070467233658, -0.027869833633303642, -0.010483411140739918, -0.014865820296108723, -0.0042105503380298615, -0.0034246526192873716, 0.014092453755438328, -0.012287932448089123, 0.044311027973890305, 0.024074608460068703, -0.039613544940948486, 0.012481274083256721, 0.035861287266016006, 0.02718239650130272, -0.0012943146284669638, 0.024776367470622063, -0.032023098319768906, 0.038639675825834274, 0.02258516289293766, 0.038782890886068344, 0.02264244854450226, -0.013927755877375603, -0.009566828608512878, -0.020737675949931145, 0.011242455802857876, 0.024489935487508774, -0.007705020718276501, -0.02357335388660431, -0.04834971949458122, -0.019004762172698975, -0.016985418274998665, -0.0019155140034854412, 0.017916321754455566, 0.027826867997646332, -0.04643062502145767, -0.013576876372098923, 0.009309039451181889, 0.004242774099111557, 0.00034729880280792713, -0.013447982259094715, 0.03468691557645798, 0.0179879292845726, -0.03789495304226875, -0.003428232856094837, 0.04385273903608322, 0.005628388840705156, 0.011894088238477707, 0.023315563797950745, 0.040701985359191895, -0.025377875193953514, 0.011185169219970703, -0.002923396648839116, -0.008242080919444561, 0.03889746591448784, 0.010196979157626629, -0.011901249177753925, -0.04855022206902504, 0.01506632287055254, -0.01084861159324646, -0.005467270500957966, -0.0074973576702177525, -0.02563566341996193, 0.020265063270926476, 0.014923106878995895, -0.0039348597638309, -0.041733141988515854, 0.0007071290165185928, 0.03228088468313217, 0.01351958978921175, -0.0027282647788524628, 0.0016720467247068882, -0.007411427795886993, -0.038353245705366135, -0.01715727709233761, -0.03958490118384361, 0.043136660009622574, 0.015811046585440636, 0.0009514912962913513, 0.0047440300695598125, -0.02103842981159687, 0.037092942744493484, -0.006928073707967997, -0.013490946963429451, 0.046029623597860336, 0.00339779956266284, 0.014142579399049282, -0.00016044666699599475, -0.03737937659025192, 0.005116391461342573, -0.005463690496981144, -0.012524238787591457, 0.020078882575035095, 0.03021857514977455, -0.01488014217466116, -0.020021596923470497, -0.0130541380494833, -0.02792711928486824, -0.029817570000886917, -0.014779890887439251, 0.022613806650042534, -0.002441832795739174, 0.00042382985702715814, -0.0006520803435705602, 0.01794496364891529, 0.002452573971822858, 0.0038525103591382504, -0.00827072374522686, 0.03583264350891113, 0.015052000992000103, 0.015682151541113853, -0.030934656038880348, -0.04803464561700821, -0.013412178494036198, 0.030676865950226784, 0.026165563613176346, -0.016140442341566086, 0.01452926266938448, -0.014020846225321293, 0.009924869053065777, 0.0068815285339951515, 0.0007044436642900109, -0.004944532178342342, -0.03646279126405716, -0.059119563549757004, 0.002706782426685095, 0.01901908405125141, -0.016741950064897537, 0.006537810433655977, 0.05164368823170662, 0.0417904295027256, 0.03485877439379692, -0.006072358228266239, 0.0009819247061386704, -0.0032169893383979797, -0.0055854241363704205, 0.001805416657589376, 0.01583968847990036, -0.04643062502145767, -0.014923106878995895, 0.02629445679485798, -0.019362803548574448, 0.0016013338463380933, 0.020723354071378708, 0.019090693444013596, 0.005134293343871832, 0.029731640592217445, -0.012495595961809158, -0.019334159791469574, -0.012481274083256721, 0.020308028906583786, -0.002581468317657709, -2.5286573873017915e-05, 0.02910149097442627, -0.001428579562343657, -0.021281898021697998, -0.0019137237686663866, 0.021582650020718575, 0.0007747090421617031, 0.014751248061656952, 0.03623364865779877, 0.028056014329195023, 0.02047988772392273, -0.0010034070583060384, 0.014937428757548332, -0.011507405899465084, -0.0329110361635685, 0.02216983586549759, 0.022155513986945152, 0.012381022796034813, -0.020694712176918983, -0.024346720427274704, -0.006741893012076616, -0.00266560772433877, -0.010490572080016136, -0.0022986168041825294, 0.013111424632370472, -0.015610544010996819, 0.02338717319071293, 0.04809193313121796, -0.011958535760641098, -0.012474113143980503, 0.03523113578557968, 0.01450061984360218, -0.012287932448089123, -0.017415065318346024, -0.023129383102059364, -0.036720581352710724, 0.0019029825925827026, 0.020179133862257004, -0.0019298355327919126, -0.03351254388689995, -0.027211040258407593, -0.0014536423841491342, -0.008721854537725449, 0.01645551808178425, 0.035173848271369934, -0.03382761776447296, 0.03205174207687378, -0.029502496123313904, -0.01860375888645649, -0.004307221155613661, 0.040186408907175064, 0.0027927120681852102, -0.02417485974729061, -0.014085293747484684, 0.010533536784350872, -0.00022892182460054755, -0.004880085121840239, -0.017372099682688713, 0.003360205329954624, -0.06708237528800964, 0.017185918986797333, -0.026494959369301796, 0.020880892872810364, -0.013462304137647152, 0.013827504590153694, -0.026867320761084557, 0.009523863904178143, 0.0010472669964656234, 0.007107093930244446, 0.028170587494969368, 0.005739381071180105, -0.00909421592950821, -0.0209525004029274, -0.014507780782878399, 0.0067239911295473576, -0.0209525004029274, 0.030333148315548897, -0.015109287574887276, 0.015667829662561417, 0.012051626108586788, 0.05273212864995003, 0.025807522237300873, 0.0007697860128246248, 0.0046366178430616856, 0.01823139563202858, -0.033569831401109695, -0.013354891911149025, -0.03302560746669769, -0.02460450865328312, 0.046029623597860336, -0.04316530004143715, 0.056856751441955566, 0.03468691557645798, 0.005997169762849808, 0.018804261460900307, -0.0005594374961219728, 0.02652360312640667, 0.029903501272201538, 0.015352754853665829, -0.024962548166513443, 0.00017778923211153597, -0.03929847106337547, 0.03079143911600113, -0.05333363637328148, -0.020465565845370293, -0.02699621580541134, -0.002089163288474083, 0.008227759040892124, -0.0007066814578138292, 0.0012415036326274276, 0.022656770423054695, 0.015682151541113853, 0.03669193759560585, 0.024518579244613647, -0.04353766515851021, 0.003195506986230612, 0.023587675765156746, -0.013791700825095177, -0.016799235716462135, 0.001075910171493888, -0.01658441312611103, -0.010433285497128963, -0.02023642137646675, -0.0329110361635685, 0.004153263755142689, 0.005066265817731619, 0.022714057937264442, -0.011206652037799358, 0.03368440270423889], "id": 91}, {"title": "Patricide", "text": "Patricide is (i) the act of killing one's father, or (ii) a person who kills his father. The word patricide derives from the Latin word pater (father) and the Latin suffix -cida (cutter or killer). Patricide is a sub-form of parricide, which is defined as an act of killing a close relative.", "vector": [-0.02162994258105755, 0.009556903503835201, -0.03192991763353348, 0.04835101589560509, -0.04882187023758888, 0.04479016736149788, -0.008497477509081364, -0.047703590244054794, -0.007471159100532532, 0.03758018836379051, 0.0345490537583828, -0.03781561553478241, -0.03966961055994034, -0.041553035378456116, -0.022571654990315437, -0.0428478866815567, -0.010358829982578754, -0.0023524402640759945, 0.023380938917398453, -0.040081609040498734, -0.014699532650411129, -0.004568773787468672, -0.009630474261939526, -0.01789252460002899, 0.08952148258686066, 0.004469452425837517, -0.00014806211402174085, -0.010027759708464146, -0.0021390835754573345, -0.014066820032894611, -0.014515604823827744, -0.0006492661777883768, 0.021747658029198647, 0.034078195691108704, 0.014110962860286236, -0.04114103317260742, -0.03602047637104988, 0.0020912622567266226, 0.06274154782295227, 0.010380901396274567, 0.027559785172343254, 0.013412036001682281, -0.0344313383102417, 0.03961075469851494, -0.01818680949509144, 0.04031703621149063, -0.013750463724136353, 0.0038514542393386364, -0.09782031178474426, -0.05915127322077751, 0.014787818305194378, -0.020187946036458015, -0.0019202092662453651, 0.03663847595453262, 0.02444036491215229, 0.005639235023409128, 0.03937532380223274, -0.013809320516884327, -0.0300759207457304, 0.04220046103000641, -0.02062937431037426, -0.018392808735370636, -0.017833666875958443, 0.012359967455267906, 0.039905037730932236, 0.012234896421432495, -0.009770260192453861, -0.0002317493926966563, -0.0013941748766228557, 0.02202722802758217, 0.04902787134051323, 0.0044473810121417046, -0.012985322624444962, -0.01815738156437874, -0.030458491295576096, 0.012212825007736683, 0.025190791115164757, 0.01250710990279913, 0.022409798577427864, -0.012926465831696987, 0.011131327599287033, -0.009704045951366425, 0.02717721462249756, 0.03581447899341583, 0.02848678268492222, -0.00645955465734005, 0.011050399392843246, -0.06486040353775024, 0.028575068339705467, 0.023792937397956848, 0.023439794778823853, -0.016936099156737328, 0.008688762784004211, 0.01206568256020546, 0.028163067996501923, 0.026794644072651863, 0.047585874795913696, 0.02318965271115303, -0.002093101618811488, -0.031135346740484238, -0.0344901941716671, 0.019216805696487427, -0.025396790355443954, -0.04955758526921272, -0.007294587790966034, 0.016950812190771103, -0.0854603499174118, 0.029369637370109558, 0.021747658029198647, 0.08234092593193054, -0.03675618767738342, -0.003139652544632554, 0.03457847982645035, 0.011815540492534637, 0.0010143633699044585, -0.05918070301413536, 0.04031703621149063, -0.011925897561013699, -0.027957068756222725, -0.012028897181153297, -0.03178277239203453, -0.04561416432261467, 0.007901550270617008, 0.007268838118761778, -0.02995820716023445, 0.022659940645098686, 0.02574993297457695, 0.003910311032086611, -0.040729034692049026, -0.003735579550266266, 0.002306458307430148, -0.051970720291137695, -0.0012277199421077967, 0.08334149420261383, 0.0343136228621006, -0.029384350404143333, -0.01877537928521633, -0.014228676445782185, 0.01880480721592903, 0.02703007124364376, 0.011668398045003414, -0.00615423358976841, -0.006573589984327555, 0.009409761056303978, 0.01316189393401146, -0.021615229547023773, 0.009409761056303978, 0.046879589557647705, 0.028148354962468147, 0.034843336790800095, 0.015317531302571297, -0.030752776190638542, 0.012396752834320068, 0.015111532062292099, 0.02669164352118969, -0.0013748625060543418, 0.007099624257534742, -0.03861018270254135, 0.009983616881072521, 0.03275391459465027, -0.024675792083144188, 0.04893958568572998, -0.00719894515350461, 0.014000605791807175, 0.020070232450962067, 0.021865371614694595, -0.039139896631240845, -0.008254692889750004, 0.018819522112607956, 0.00030233178404159844, 0.02532321959733963, -0.04361302778124809, 0.04814501479268074, -0.04620273411273956, -0.008725548163056374, -0.0517941489815712, 0.024793505668640137, 0.002484868513420224, 0.0052272360771894455, 0.02995820716023445, 0.012440895661711693, 0.037521328777074814, -0.023572223260998726, -0.004697523545473814, 0.007842693477869034, 0.0060990555211901665, 0.0037999541964381933, 0.006128483917564154, 0.043524742126464844, -0.04826273024082184, -0.027559785172343254, 0.015214531682431698, -0.01706852577626705, 0.032135915011167526, 0.026941785588860512, 0.021835941821336746, -0.006992945913225412, 0.03354848176240921, 0.017818953841924667, 0.023204367607831955, 0.010138115845620632, -0.07363009452819824, 0.0027386893052607775, 0.09581917524337769, 0.015096817165613174, 0.0019606733694672585, 0.023719366639852524, 0.00943183246999979, 0.03937532380223274, -0.021924227476119995, 0.013198679313063622, 0.010851757600903511, 0.005959270056337118, 0.040787894278764725, 0.004469452425837517, 0.012926465831696987, -0.023410366848111153, 0.02017323300242424, 0.045084454119205475, 0.011234327219426632, -0.0041898819617927074, 0.018819522112607956, 0.045231595635414124, -0.016141528263688087, 0.018142666667699814, -0.01581781543791294, -0.014339033514261246, -0.005631878040730953, -0.024822935461997986, 0.032224200665950775, 0.02703007124364376, -0.015611816197633743, -0.016582956537604332, -0.016376957297325134, -0.04184731841087341, -0.007629337254911661, -0.026132503524422646, -0.045084454119205475, -0.004186203237622976, -0.026338502764701843, -0.03343077003955841, -0.007261481136083603, -0.008004550822079182, -0.00591144897043705, 0.04052303731441498, 0.03287162631750107, -0.0052272360771894455, -0.07827979326248169, -0.04220046103000641, -0.01461124699562788, -0.029811063781380653, 0.015641244128346443, 0.04461359605193138, -0.02922249399125576, -0.010454472154378891, -0.01227903924882412, 0.029663922265172005, 0.013345821760594845, 0.018245667219161987, 0.0474681593477726, -0.03975789621472359, -0.03607933223247528, -0.0469384491443634, 0.0018834236543625593, 0.011366755701601505, -0.08075178414583206, -0.02544093318283558, -0.013463536277413368, -0.02532321959733963, -0.008975690230727196, 0.0035001514479517937, 0.011293184943497181, -0.029207780957221985, -0.05294186249375343, -0.024190222844481468, 0.007644051220268011, 0.0346079096198082, 0.04476074129343033, -0.009784974157810211, 0.030576204881072044, -0.027294928207993507, -0.04196503385901451, -0.035549622029066086, 0.023145509883761406, 0.053736429661512375, -0.01328696496784687, -0.03525533527135849, 0.005756949074566364, 0.026838786900043488, 0.023483937606215477, 0.010174902155995369, 0.03178277239203453, 0.0075704799965023994, 0.020040804520249367, -0.01544995978474617, -0.04976358264684677, -0.0013242822606116533, -0.08063407242298126, -0.01724509708583355, -0.015420530922710896, 0.02541150525212288, -0.020850088447332382, 0.032165344804525375, 0.016950812190771103, -0.021644657477736473, -0.00033130045630969107, -0.003855132730677724, 0.019496377557516098, -0.02398422174155712, -0.01305889431387186, -0.02285122498869896, -0.040699608623981476, 0.017598239704966545, 0.058032989501953125, -0.0021335657220333815, -0.04896901547908783, -0.006919374689459801, -0.013088323175907135, -0.011896468698978424, 0.00171237054746598, -0.0517352931201458, 0.02032037451863289, -0.00034739417606033385, -0.040052179247140884, 0.016980241984128952, -0.058739274740219116, -0.017200954258441925, -0.03504933789372444, -0.028810495510697365, -0.03337191045284271, -0.023763509467244148, 0.023174939677119255, 0.011830254457890987, -0.010785543359816074, -0.015832530334591866, 0.009255261160433292, -0.017171526327729225, 0.05953384190797806, 0.05488414317369461, -0.06274154782295227, -0.017863096669316292, 0.008924190886318684, 0.031311918050050735, 0.0600929856300354, -0.014361104927957058, 0.026382645592093468, -0.025602789595723152, 0.010962113738059998, -0.01968766190111637, 0.02964920736849308, 0.0005927082384005189, 0.03204762935638428, -0.041670747101306915, -0.03966961055994034, 0.014868746511638165, -0.05732670798897743, 0.02398422174155712, -0.03334248438477516, 0.04387788474559784, -0.007710265461355448, 0.0013435946311801672, -0.027809927240014076, 0.000797328248154372, -0.06509582698345184, -0.015979671850800514, -0.06427183002233505, 0.061564408242702484, 0.05509014055132866, 0.025823503732681274, 0.0383453294634819, 0.01480988971889019, -0.043230459094047546, 0.07480723410844803, 0.01286025159060955, -0.013507679104804993, 0.013882892206311226, 0.04476074129343033, 0.015302817337214947, -0.010866471566259861, 0.018701808527112007, -0.008806477300822735, -0.01602381467819214, -0.012433539144694805, 0.0030587241053581238, -0.060622699558734894, -0.019672948867082596, 0.0026890286244452, 0.0018356023356318474, -0.0030899918638169765, -0.02800121158361435, -0.015332245267927647, 0.03354848176240921, -0.031135346740484238, -0.030635062605142593, 0.01986423321068287, -0.011337327770888805, 0.0016176474746316671, 0.002551082521677017, 0.017348097637295723, -0.05785641819238663, 0.018024953082203865, -0.040081609040498734, 0.045055024325847626, 0.037462472915649414, 0.02093837410211563, -0.007673479616641998, 0.021291514858603477, -0.026588644832372665, -0.05052872374653816, 0.015096817165613174, 0.010601614601910114, 0.020702945068478584, 0.01227903924882412, 0.04190617427229881, 0.05176471918821335, -0.02096780203282833, -0.014118320308625698, 0.006838446483016014, -0.006761196535080671, 0.02882521040737629, -0.04905730113387108, 0.005436914507299662, 0.007125373929738998, 0.004657058976590633, 0.03275391459465027, 0.016582956537604332, 0.01226432528346777, 0.0047490233555436134, 0.05058757960796356, 0.019040236249566078, -0.07262952625751495, -0.019672948867082596, 0.009115476161241531, 0.10711971670389175, -0.019525805488228798, -0.04558473825454712, -0.019761234521865845, 0.002392904367297888, 0.014339033514261246, 0.03160620108246803, 0.00619469815865159, -0.06244726479053497, -0.018701808527112007, 0.026882929727435112, 0.0256910752505064, 0.005782699212431908, -0.010270544327795506, 0.003349330509081483, 0.02861921116709709, -0.023660508915781975, 0.0033107055351138115, -0.01989366114139557, -0.0258970744907856, -0.01965823397040367, 0.05158815160393715, -0.006591982673853636, -0.004462095443159342, -0.05912184342741966, -0.024263793602585793, 0.02452865056693554, -0.032135915011167526, 0.021262086927890778, -0.02976692095398903, -0.03696218878030777, 0.05423671379685402, -0.01293382328003645, 0.011727254837751389, -0.005852591712027788, -0.003932382445782423, -0.0016912188148126006, 0.011101899668574333, 0.014316962100565434, -0.04031703621149063, -0.034931622445583344, 0.02461693435907364, -0.04470188170671463, 0.02617664635181427, -0.011455041356384754, 0.009637831710278988, -0.0004575211205519736, 0.03928703814744949, 0.0030734383035451174, -0.02492593415081501, 0.025073077529668808, 0.005238271784037352, -0.0561789944767952, -0.044231027364730835, -0.02964920736849308, -0.05326557531952858, 0.011020971462130547, 0.018657665699720383, 0.0028950280975550413, -0.005859948694705963, -0.049528155475854874, 0.004693844821304083, -0.005050665233284235, -0.013721035793423653, 0.028722209855914116, 0.004234024789184332, -0.001844798680394888, 0.015758957713842392, -0.0386984683573246, 0.02065880224108696, 0.018731236457824707, 0.046879589557647705, 0.034755051136016846, 0.0017638703575357795, 0.010270544327795506, 0.007140088360756636, 0.01675952784717083, -0.023086654022336006, 0.03749190270900726, -0.040022753179073334, 0.015096817165613174, 0.006735446397215128, -0.0023303688503801823, 0.006389661692082882, -0.02182122878730297, -0.008821191266179085, -0.009777616709470749, -0.011800826527178288, -0.042494744062423706, -0.007364480756223202, -0.04228874668478966, -0.011366755701601505, 0.028207210823893547, 0.017348097637295723, 0.014706890098750591, 0.006967195775359869, -0.020467517897486687, 0.03245962783694267, 0.027692213654518127, 0.004620273597538471, 0.03089991956949234, 0.0038588112220168114, -0.011903826147317886, -0.02705950103700161, -0.030635062605142593, 0.0035130265168845654, 0.0035369370598345995, 0.01139618456363678, 0.008460692130029202, 0.026044217869639397, 0.03166506066918373, -0.015832530334591866, -0.004605559166520834, 0.018569380044937134, 0.05414842814207077, -0.03946360945701599, -0.04582016542553902, 0.008379763923585415, -0.03678561747074127, 0.01141089852899313, 0.051058437675237656, 0.04484902322292328, -0.004267131444066763, 0.009696688503026962, 0.0023653151001781225, 0.02157108671963215, -0.014912889339029789, 0.028898781165480614, 0.01834866590797901, 0.0071180169470608234, 0.004002275411039591, -0.036461904644966125, 0.023380938917398453, 0.025705790147185326, -0.017598239704966545, 0.03599104657769203, 0.010550115257501602, 0.01767181046307087, -0.02102665975689888, -0.027412641793489456, 0.01983480527997017, 0.03872789815068245, 0.00025841896422207355, -0.01681838370859623, 0.01789252460002899, 0.003950775135308504, -0.03599104657769203, -0.0193492341786623, -0.0022144941613078117, -0.03087048977613449, 0.01986423321068287, 0.008416549302637577, -0.0018218077020719647, -0.03710933029651642, 0.02779521234333515, 0.0171273835003376, 0.0014162462903186679, -0.030487919226288795, -0.02285122498869896, 0.03357791155576706, 0.017774811014533043, -0.009137547574937344, 0.0015799422981217504, -0.005959270056337118, 0.01670067012310028, 0.015744244679808617, 0.023454509675502777, 0.004822594579309225, 0.032989341765642166, 0.0009840152924880385, -0.02635321579873562, -0.002955724485218525, -0.008166407234966755, 0.0559435673058033, -0.10735514760017395, 0.003231616457924247, 0.06321240216493607, -0.0038404185324907303, -0.04193560406565666, -0.052853576838970184, -0.0343136228621006, 0.023969508707523346, 0.022601082921028137, 0.022571654990315437, -0.043230459094047546, 0.003641776042059064, -0.02413136512041092, -0.01986423321068287, 0.023910650983452797, 0.015288102440536022, -0.023483937606215477, -0.05500185489654541, -0.0024536007549613714, 0.0030624025966972113, -0.0069966246373951435, 0.004337024409323931, 0.006385983433574438, 0.015758957713842392, -0.0010474704904481769, 0.006555196829140186, 0.0016360403969883919, -0.03275391459465027, -0.02486707828938961, 0.019923090934753418, -0.037433043122291565, -0.013470892794430256, -0.002271511824801564, 0.0140447486191988, -0.008960976265370846, -0.0037742042914032936, -0.028751637786626816, -0.009623117744922638, 0.0214828010648489, -0.005587735213339329, 0.009490689262747765, 0.009380332194268703, 0.02669164352118969, -0.012713109143078327, -0.030281919986009598, 0.006069627124816179, -0.007460123393684626, 0.016965527087450027, -0.04534931108355522, -0.014236033894121647, -0.0129191093146801, 0.013522393070161343, 0.002540046814829111, -0.022983653470873833, -0.028045354411005974, -0.016833098605275154, -0.002479350659996271, -0.018760664388537407, -0.002242083428427577, -0.017789524048566818, -0.03178277239203453, -0.030752776190638542, 0.02501421980559826, -0.017833666875958443, -0.013412036001682281, 0.0016820223536342382, -0.011190185323357582, 0.0021280478686094284, 0.010631043463945389, -0.003628901205956936, -0.012448253110051155, 0.02745678462088108, 0.015001174993813038, -0.017083240672945976, -0.005264021921902895, -0.011999468319118023, -0.009174332953989506, 0.029119495302438736, -0.00944654643535614, 0.006242519244551659, -0.0004543023824226111, -0.012330538593232632, -0.03928703814744949, -0.0049807727336883545, 0.03978732228279114, 0.0010787382489070296, 0.03684447333216667, 0.016376957297325134, 0.011440327391028404, -0.009865902364253998, -0.009247904643416405, -0.012095111422240734, 0.007879478856921196, 0.03790390118956566, -0.0015422370051965117, -0.03866904228925705, 0.012161324732005596, -0.008092835545539856, 0.005183093715459108, -0.010270544327795506, -0.02245394140481949, -0.0009463099995627999, -0.026706358417868614, 0.001094372128136456, 0.044083885848522186, -0.001933084218762815, 0.0037282223347574472, 0.0029060638044029474, 0.020423375070095062, 0.010947399772703648, -0.01831923797726631, 0.013676892966032028, 0.020379232242703438, 0.0043333456851542, 0.016170958057045937, -0.011013614013791084, 0.025308504700660706, -0.004623952321708202, -0.011506541632115841, -0.04891015589237213, -0.02096780203282833, -0.006065948400646448, 0.00857840571552515, -0.018422236666083336, 0.03104706108570099, 0.025131933391094208, 0.00679430365562439, 0.015700101852416992, -0.015611816197633743, -0.009027190506458282, -0.03357791155576706, -0.05423671379685402, -0.004520952235907316, -0.026824072003364563, -0.022071370854973793, 0.0025952253490686417, -0.03793332725763321, -0.012654252350330353, -0.007232052274048328, -0.012448253110051155, 0.024881791323423386, -0.006882588844746351, 0.020040804520249367, 0.045937880873680115, 0.015582387335598469, 0.005870984401553869, -0.02273351140320301, 0.015376388095319271, -0.027927640825510025, -0.051264435052871704, -0.02355751022696495, 0.007938336580991745, -0.01776009611785412, -0.0034394552931189537, 0.005172058008611202, -0.009726117365062237, 0.011661040596663952, 0.027250785380601883, -0.044289883226156235, 0.01403003465384245, -0.02404307946562767, 0.0030679204501211643, 0.016009101644158363, 0.013853463344275951, 0.031459059566259384, 0.02102665975689888, -0.059769272804260254, -0.026927072554826736, -0.03758018836379051, -0.00472327321767807, 0.022998368367552757, 0.008696120232343674, -0.040876179933547974, 0.00879176240414381, -0.023748794570565224, -0.034755051136016846, -0.010395615361630917, 0.008585763163864613, -0.018113238736987114, 0.03369562700390816, 0.009777616709470749, -0.010093973018229008, 0.004745344631373882, 0.026309072971343994, -0.028589781373739243, -0.004167810548096895, 0.03675618767738342, -0.006669232621788979, -0.02435207925736904, -0.027074214071035385, 0.011771397665143013, -0.01621510088443756, -0.05002843961119652, 0.03849247097969055, -0.002484868513420224, -0.0025786717887967825, 0.0076881940476596355, 0.021291514858603477, 0.004355417098850012, 0.05158815160393715, -0.005304486025124788, -0.024970076978206635, -0.05423671379685402, 0.018701808527112007, 0.05511957034468651, 0.0033327769488096237, 0.026882929727435112, -0.04537873715162277, 0.00821055006235838, 0.010667828842997551, -0.03381333872675896, -0.0018236469477415085, 0.03257734328508377, -0.029487350955605507, 0.0021409229375422, 0.06650839745998383, -0.018083808943629265, -0.004164131823927164, -0.00802662130445242, 0.07056953012943268, -0.015015888959169388, 0.009829116985201836, -0.016597671434283257, 0.012757251970469952, 0.008048692718148232, 0.01798081025481224, -0.04043475165963173, 0.03084106184542179, -0.015611816197633743, 0.029781635850667953, 0.001980905421078205, -0.0007265159511007369, 0.028442639857530594, -0.0035829192493110895, -0.004719594959169626, 0.039110466837882996, -0.03087048977613449, -0.03346019610762596, -0.032253630459308624, -0.009571617469191551, -0.014912889339029789, 0.014552390202879906, -0.04496673867106438, 0.009748188778758049, -0.04702673479914665, 0.025117220357060432, 0.0256910752505064, -0.06097583845257759, -0.0013638267992064357, 0.0384041853249073, -0.0014705050271004438, -0.021924227476119995, -0.021306229755282402, -0.013051536865532398, 0.02663278765976429, -0.0473504476249218, 0.0139417489990592, -0.017259811982512474, 0.009777616709470749, 0.049469299614429474, -0.028383782133460045, 0.008519548922777176, -0.031282488256692886, 0.012801394797861576, -0.02279236912727356, 0.048557016998529434, -0.011020971462130547, -0.02051166072487831, 0.010991542600095272, 0.029178351163864136, -0.018819522112607956, 0.026809358969330788, 0.039051610976457596, -0.00620941212400794, 0.027383213862776756, -0.014508247375488281, -0.004370131529867649, 0.0070039816200733185, 0.01546467375010252, 0.04149417579174042, 0.003936061169952154, 0.03195934370160103, -0.03234191611409187, 0.014471461996436119, 0.009601046331226826, -0.006113769486546516, -0.04187674820423126, 0.011035685427486897, 0.024087222293019295, -0.008938904851675034, 0.007165838498622179, -0.016494670882821083, -0.05411900207400322, 0.006334483157843351, 0.013478250242769718, -0.04411331191658974, 0.023013083264231682, 0.0279129259288311, 0.006389661692082882, 0.03275391459465027, -0.009240547195076942, 0.0012709430884569883, 0.010211687535047531, 0.0045356666669249535, -0.017568811774253845, -0.030782204121351242, -0.01667124219238758, 0.03243020176887512, 0.015273388475179672, -0.03693275898694992, -0.019334521144628525, -0.0024168151430785656, -0.02876635268330574, 0.03805104270577431, 0.019923090934753418, -0.030487919226288795, -0.004693844821304083, -0.0002706041850615293, 0.013228108175098896, 0.04022875055670738, 0.02401365153491497, 0.030635062605142593, 0.009284690022468567, -0.014272819273173809, -0.004962379578500986, 0.011043041944503784, 0.009152261540293694, -0.003141491673886776, -0.05226500704884529, -0.017039097845554352, -0.0027442071586847305, -0.036432474851608276, -0.030664490535855293, -0.04234760254621506, 0.026618072763085365, 0.02523493394255638, -0.021777085959911346, 0.07539580017328262, 0.02626493014395237, -0.015126246027648449, -0.01675952784717083, -0.024749362841248512, -0.019643519073724747, -0.03101763315498829, -0.018966663628816605, -0.006731768138706684, -0.025279076769948006, -0.009483331814408302, -0.020452803000807762, -0.006492661312222481, -0.011741968803107738, -0.004517273977398872, -0.007379194721579552, 0.00025474041467532516, 0.04187674820423126, 0.032312486320734024, 0.005418521352112293, -0.04293617233633995, 0.00505802221596241, 0.011065113358199596, -0.03705047443509102, 0.014817247167229652, -0.003097349079325795, 0.0005076415254734457, -0.046761877834796906, 0.009012476541101933, 0.045996736735105515, -0.0013509518466889858, -0.004590845201164484, 0.010601614601910114, 0.026426788419485092, 0.0035056693013757467, 0.006382304709404707, -0.016185671091079712, 0.02617664635181427, 0.01077082846313715, 0.004031703807413578, -0.013139822520315647, 0.04387788474559784, -0.03607933223247528, 0.039228182286024094, -0.005749592091888189, 0.031341347843408585, 0.001635120715945959, 0.01031468715518713, 0.009049261920154095, -0.04896901547908783, 0.014236033894121647, -0.00645955465734005, 0.023292653262615204, 0.005179414991289377, -0.02401365153491497, -0.016259243711829185, -0.030281919986009598, 0.0022163335233926773, -0.027648070827126503, -0.0429656021296978, -0.012514467351138592, 0.007265159394592047, -0.01435374841094017, 0.007872122339904308, -0.04222988709807396, -0.02276293933391571, 0.010594258084893227, -0.001023559831082821, -0.00422666734084487, 0.021291514858603477, 0.020364517346024513, 0.030576204881072044, 0.03587333485484123, -0.03596162050962448, -0.018848950043320656, 0.058945272117853165, -0.004991808440536261, 0.04552587866783142, 0.023866508156061172, 0.044260453432798386, -0.0234692245721817, 0.04049360752105713, -0.03716818615794182, 0.008401835337281227, 0.023969508707523346, 0.014471461996436119, 0.013904963620007038, -0.015288102440536022, 0.015729529783129692, 0.01602381467819214, -0.004679130390286446, -0.021350372582674026, -0.03178277239203453, -0.03519647940993309, -0.004679130390286446, -0.006702339742332697, 0.01238939631730318, 0.016612384468317032, 0.0019202092662453651, 0.0033051876816898584, -0.01858409307897091, -0.0026375288143754005, 0.013309036381542683, -0.03192991763353348, -0.003581079887226224, -0.046820733696222305, -0.02273351140320301, -0.023145509883761406, -0.004300238564610481, 0.021247372031211853, -0.027839355170726776, 0.010035116225481033, -0.0026908679865300655, -0.006823732051998377, -0.032077059149742126, -0.013559178449213505, 0.004587166476994753, -0.005403807386755943, 0.01227903924882412, -0.00013357777788769454, 0.024646364152431488, -0.004182524513453245, 0.005337593145668507, -0.0008198594441637397, 0.003770525800064206, -0.005286093335598707, -0.010704615153372288, -0.006080662366002798, -0.00024761317763477564, -2.1051143903605407e-06, 0.01886366493999958, 0.019584663212299347, 0.00262833246961236, -0.003088152501732111, 0.02102665975689888, 0.022939510643482208, 0.004969737026840448, 0.03351905569434166, 0.008409191854298115, -0.013853463344275951, -0.03610876202583313, -0.01892252080142498, -0.0024131364189088345, -0.01260275300592184, 0.027765784412622452, -0.02444036491215229, -0.009946830570697784, 0.01645052805542946, -0.015920815989375114, 0.01642110012471676, -0.0010318366112187505, 0.02526436187326908, -0.0012222020886838436, -0.010476543568074703, -0.03169448673725128, 0.01647995598614216, -0.019143234938383102, 0.008092835545539856, 0.013735749758780003, 0.04896901547908783, 0.006385983433574438, 0.026029502972960472, -0.01901080645620823, 0.00444002402946353, -0.02677992917597294, 0.003788918722420931, 0.026103073731064796, 0.00635287631303072, -0.01789252460002899, -0.03540247678756714, 0.009056619368493557, -0.02105608768761158, -0.02157108671963215, -0.008821191266179085, 0.0007872122223488986, -0.024366792291402817, 0.02922249399125576, -0.01627395674586296, -0.005381735973060131, 0.02264522574841976, -0.006926731672137976, -0.01051332987844944, 0.002801224822178483, 0.015361674129962921, 0.01238939631730318, 0.01549410168081522, -0.01989366114139557, -0.01293382328003645, -0.02111494354903698, 0.022115513682365417, -0.007533694617450237, 0.04493730887770653, 0.027839355170726776, -0.0052198790945112705, 0.003796275705099106, -0.0473504476249218, -0.00663612550124526, 0.019878948107361794, -0.0047674160450696945, -0.020408660173416138, 0.019569948315620422, -0.012786680832505226, -0.023601653054356575, 0.022586369886994362, -0.0010437918826937675, 0.02307193912565708, -0.009696688503026962, 0.0005140790017321706, 0.010461829602718353, 0.005374378524720669, 0.01226432528346777, 0.006926731672137976, -0.01718624122440815, -0.015420530922710896, -0.0140153206884861, 0.024425650015473366, -0.03849247097969055, 0.02279236912727356, 0.0259265024214983, 0.04529045149683952, 0.013478250242769718, 0.021718228235840797, -0.03884561359882355, -0.0037558116018772125, -0.0035111871547997, -0.024690506979823112, 0.021762371063232422, 0.03357791155576706, -0.0010217205854132771, 0.00599605543538928, 0.053765859454870224, -0.03784504160284996, -0.016170958057045937, -0.001600174349732697, -0.0006170787382870913, -0.006466911640018225, 0.012242253869771957, 0.007842693477869034, 0.010925328359007835, 0.008100192993879318, -0.00012622064969036728, 0.01227903924882412, -0.003170920303091407, -0.006073305383324623, -0.004410595633089542, -0.00599605543538928, 0.0016544332029297948, 0.005142629146575928, -0.011712540872395039, -0.021865371614694595, -0.00036601690226234496, 0.012411467730998993, -0.004620273597538471, 0.02273351140320301, -0.006242519244551659, 0.009704045951366425, 0.0018622719217091799, -0.012874966487288475, 0.029237208887934685, 0.027191927656531334, -0.019113807007670403, -0.030782204121351242, -0.01684781350195408, -0.03510819375514984, 0.034078195691108704, 0.0076881940476596355, -0.0034541694913059473, -0.010719329118728638, 0.00909340474754572, -0.042671315371990204, 0.025955932214856148, -0.004925594199448824, -0.022189084440469742, 0.0021022979635745287, -0.00040992972208186984, -0.029855206608772278, 0.000574315432459116, -0.008379763923585415, -0.020526373758912086, -0.0236752238124609, -0.014699532650411129, 0.043583597987890244, -0.0012387556489557028, 0.0025731539353728294, 0.02188008464872837, 0.014206605963408947, -0.01849580928683281, 0.016465242952108383, 0.027765784412622452, -0.0025363683234900236, 0.013492964208126068, -0.024881791323423386, -0.01687724143266678, -0.007445408962666988, 0.0034063481725752354, 0.015346959233283997, 0.019981946796178818, -0.031429633498191833, 0.023969508707523346, -0.0020563160069286823, 0.009961545467376709, 0.018701808527112007, 0.000969301036093384, 0.03087048977613449, 0.01892252080142498, -0.005028593819588423, 0.024278508499264717, -0.013088323175907135, 0.008033978752791882, 0.02202722802758217, 0.025985360145568848, -1.984411574085243e-05, 0.03964018076658249, 0.035637907683849335, 0.023425081744790077, -0.03961075469851494, -0.0171273835003376, -0.04011103883385658, 0.013419393450021744, -0.001683861599303782, 0.014618604443967342, 0.019569948315620422, -0.008725548163056374, 0.008291478268802166, -0.0023873865138739347, -0.01445674803107977, 0.005473699886351824, 0.039169326424598694, -0.0015477548586204648, -0.014618604443967342, 0.0023285294882953167, 0.03610876202583313, -0.024455077946186066, -0.029443208128213882, -0.02005551941692829, -0.020585231482982635, -0.004443702753633261, -0.0129485372453928, 0.019334521144628525, 0.017289239913225174, -0.03516704961657524, 0.003593954723328352, -0.015729529783129692, -0.026529787108302116, 0.014971746131777763, -0.018113238736987114, 0.011315256357192993, 0.0024131364189088345, 0.0008198594441637397, -0.017142098397016525, -0.027162499725818634, 0.006216769572347403, 0.025882359594106674, 0.006003412883728743, -0.0071180169470608234, -0.030031777918338776, -0.0032757592853158712, 0.014037392102181911, -0.008688762784004211, -0.011455041356384754, -0.045084454119205475, -0.02635321579873562, 0.009895331226289272, 0.00020117135136388242, 0.03699161857366562, 0.002212654799222946, 0.006669232621788979, -0.04108217731118202, -0.011388827115297318, 0.015082103200256824, -0.00516470056027174, -0.0051132007502019405, -0.0024664755910634995, 0.004454738460481167, -0.007592551410198212, -0.017804238945245743, 0.0029115816578269005, 0.0007692791987210512, 0.009748188778758049, 0.012249610386788845, -0.025485076010227203, -0.014780460856854916, -0.00040602125227451324, -0.01317660789936781, 0.0017767453100532293, 0.009571617469191551, 0.00117713981308043, -0.019084379076957703, 0.0051941294223070145, 0.009137547574937344, -0.02763335593044758, -0.010498614981770515, 0.02763335593044758, 0.009063975885510445, 0.00041774666169658303, 0.004892487078905106, 0.017509954050183296, -0.01459653303027153, -0.00023531299666501582, 0.04649702087044716, 0.009843830950558186, 0.022601082921028137, 0.01217603962868452, -0.002878474537283182, 0.01815738156437874, -0.03084106184542179, -0.02745678462088108, -0.0023101367987692356, 0.001088854274712503, -0.020393947139382362, 0.002177708549425006, -0.04623216390609741, 0.01581781543791294, -0.02660335786640644, -0.018422236666083336, 0.02833963930606842, -0.032224200665950775, 0.009505403228104115, 0.04378959909081459, -0.019305091351270676, -0.00027014437364414334, 0.03204762935638428, 0.010189616121351719, -0.019981946796178818, 0.032312486320734024, 0.000429701991379261, 0.02477879263460636, 0.020761802792549133, 0.06127012521028519, -0.023351509124040604, -0.033107057213783264, -0.040729034692049026, 0.01803966611623764, -0.008983047679066658, -0.0215122289955616, -0.013669535517692566, 0.005032272543758154, 0.0096599031239748, -0.017053812742233276, -0.03275391459465027, 0.03098820336163044, 0.0058746631257236, 0.010219044983386993, -0.02956092171370983, 0.0035884371027350426, 0.013772535137832165, 0.024793505668640137, 0.021335657685995102, 0.007607265841215849, -0.04311274364590645, -0.005197807680815458, -0.002731332089751959, 0.0019294056110084057, 0.0017224865732714534, -0.01590610109269619, 0.031253062188625336, -0.028604496270418167, -0.01645052805542946, -0.0021574764978140593, -0.011506541632115841, 0.004520952235907316, 0.030370205640792847, -0.010211687535047531, 0.022689368575811386, -0.0015183263458311558, 0.003490955103188753, 0.0052198790945112705, 0.009424475021660328, 0.024749362841248512, 0.02675050124526024, 0.0046423450112342834, -0.00039153691614046693, -0.0076955510303378105, -0.00504330825060606, 0.01752466894686222, 0.03543190658092499, -0.02051166072487831, -0.00729090953245759, 0.013809320516884327, 0.028295496478676796, 0.016170958057045937, -0.0004464854428078979, 0.020908944308757782, -0.00626091193407774, 0.019599376246333122, -0.028045354411005974, 0.014110962860286236, 0.007044445723295212, -0.01142561249434948, 0.007114338222891092, 0.01971709169447422, 0.01007190253585577, 0.0027037428226321936, 0.0020305661018937826, 0.007636694237589836, -0.038374755531549454, 0.003604990430176258, 0.00941711850464344, 0.022071370854973793, 0.019040236249566078, -0.006065948400646448, -0.021615229547023773, 0.01752466894686222, -0.02404307946562767, -0.029472636058926582, 0.01424339134246111, 0.012698395177721977, -0.034931622445583344, -0.0009794171201065183, 0.008534262888133526, -0.01445674803107977, -0.012433539144694805, 0.02188008464872837, 0.007386552169919014, 0.004649701993912458, 0.018790094181895256, 0.017627667635679245, 0.01142561249434948, -0.03201820328831673, -0.01801023818552494, -0.014522962272167206, -0.008659333921968937, 0.03275391459465027, -0.03266562893986702, -0.007026053033769131, -0.017568811774253845, -0.01226432528346777, 0.00039843423292040825, 0.01706852577626705, -0.016582956537604332, -0.019820090383291245, 0.021409230306744576, 0.001914691412821412, -0.029001781716942787, 0.04222988709807396, 0.030120063573122025, 0.004016989376395941, -0.015258674509823322, 0.04376016929745674, 0.013963820412755013, 0.005197807680815458, -0.014302248135209084, -0.008909476920962334, 0.0342547670006752, 0.006963517516851425, -0.009578974917531013, -0.013095679692924023, -0.02620607428252697, 0.008725548163056374, 0.04526102542877197, 0.0005361503572203219, -0.013441464863717556, -0.023366224020719528, 0.025955932214856148, 0.03245962783694267, -0.018024953082203865, 0.0192903783172369, -0.034048765897750854, -0.0346079096198082, -0.026161931455135345, -0.006628768052905798, -0.018848950043320656, 0.008526906371116638, 0.013507679104804993, 0.013522393070161343, -0.019069664180278778, -0.057885847985744476, 0.005124236457049847, -0.0024499220307916403, -0.014221319928765297, 0.0020894231274724007, -0.017142098397016525, 0.020187946036458015, 0.0010539079084992409, 0.05673813819885254, -0.033107057213783264, -0.005631878040730953, 0.005782699212431908, -0.009608402848243713, -0.023631080985069275, -0.027339071035385132, -0.036550190299749374, -0.0006529447273351252, -0.02392536588013172, -0.008585763163864613, -0.03552019223570824, 0.003021938493475318, -3.2798113807075424e-06, 0.016656527295708656, 0.0022218513768166304, 0.017686525359749794, -0.007151124067604542], "id": 92}, {"title": "Beni Mellal", "text": "Beni-Mellal (Berber: Bni Mellal, Arabic: \u0628\u0646\u064a \u0645\u0644\u0627\u0644\u200e) is a Moroccan city located at (32\u00b020\u203222\u2033N 6\u00b021\u203239\u2033W). It is the capital city of the Tadla-Azilal Region, with a population of 489,248 (2010 census).", "vector": [0.017672881484031677, 0.031421344727277756, 0.007017173338681459, -0.010213885456323624, 0.03908825293183327, 0.0003459856379777193, -0.06684507429599762, -0.025365782901644707, -0.026197446510195732, -0.06325852125883102, -0.01639939472079277, -0.01394338347017765, -0.046391312032938004, 0.03994590789079666, 0.021376390010118484, 0.017114106565713882, -0.02446914277970791, 0.014554137364029884, 0.02910827472805977, -0.016594314947724342, -0.012364519760012627, -0.0002984735183417797, 0.036489300429821014, 0.03552768751978874, -0.019518136978149414, -0.008946896530687809, -0.009622624143958092, -0.014943980611860752, -0.013774451799690723, -0.04368840157985687, -0.012455482967197895, 0.004246039781719446, 0.016763247549533844, -0.003437115577980876, -0.0062959641218185425, -0.0059808408841490746, -0.03521581366658211, -0.014749058522284031, -0.0070106759667396545, 0.05247286334633827, 0.019959960132837296, -0.02793874591588974, -0.04160923883318901, 0.007030168082565069, 0.03508586809039116, -0.05847644433379173, 0.06596142798662186, -0.01734801195561886, 0.00348259718157351, -0.01972605474293232, 0.022870786488056183, 0.01895936205983162, -0.03446211665868759, -0.028692442923784256, 0.029758013784885406, 0.011903204955160618, 0.03355248644948006, 0.1191360130906105, -0.020635686814785004, 0.02255891263484955, -0.005964597221463919, -0.026977133005857468, 0.022039122879505157, 0.014450179412961006, 0.02228602208197117, 0.04428616166114807, -0.02307870425283909, 0.00851157121360302, 0.026405364274978638, 0.03019983507692814, -0.004938011057674885, 0.020648682489991188, -0.04761281982064247, -0.02228602208197117, -0.028562495484948158, 0.04267480969429016, 0.013839425519108772, -0.00972658209502697, 0.051199376583099365, 0.009486178867518902, -0.00754346139729023, -0.061543211340904236, 0.01625645160675049, 0.01476205326616764, -0.0011484123533591628, 0.031993113458156586, 0.002546973992139101, -0.0536423921585083, -0.037528883665800095, 0.01890738308429718, -0.030459729954600334, -0.0026103234849870205, -0.04498787969350815, 0.015749655663967133, 0.005529272835701704, 0.0065915947780013084, -0.003152854973450303, 0.005990586709231138, 0.033110663294792175, 0.019414179027080536, -0.02161029540002346, -0.00031857480644248426, -0.01271537784487009, -0.05049765855073929, 0.00784234143793583, 0.06518174707889557, 0.03599550202488899, -0.04925016313791275, 0.02895233780145645, -0.012007162906229496, 0.019089311361312866, -0.004967248998582363, 0.04015382379293442, 0.005155673250555992, -0.03004389815032482, 0.007458995562046766, -0.01841358281672001, -0.010727179236710072, 0.017724860459566116, 0.0008893292397260666, -0.04568959400057793, -0.01607452519237995, 0.019933970645070076, -0.0005908557213842869, 0.008531063795089722, 0.005607241299003363, 0.013917393982410431, -0.020856598392128944, -0.006627330556511879, -0.003375390311703086, -0.04228496551513672, -0.034722015261650085, -0.012526953592896461, 0.010311346501111984, -0.0581645704805851, -0.03295472636818886, 0.043480485677719116, -0.015580723993480206, 0.006614335812628269, -0.03165524825453758, -0.012617917731404305, -0.018595509231090546, -0.07162714749574661, 0.046781156212091446, -0.030355772003531456, -0.06253080815076828, -0.011682294309139252, 0.00957714207470417, 0.07162714749574661, 0.0210645142942667, 0.010727179236710072, -0.011974676512181759, -0.01580163463950157, -0.0003599956107791513, 0.03157728165388107, 0.03869841247797012, -0.0038821862544864416, 0.006042566150426865, -0.023585500195622444, -0.04618339613080025, 0.07329047471284866, 0.05166718736290932, 0.05754082277417183, 0.03415024280548096, -0.019933970645070076, -0.008251676335930824, -0.0036255395971238613, 0.014632105827331543, 0.001154097612015903, 0.014593121595680714, -0.038152631372213364, 0.0006793825887143612, -0.05296666547656059, -0.07516172528266907, 0.05034172162413597, -0.008602534420788288, 0.07536964118480682, 0.025989530608057976, 0.02079162560403347, 0.016620304435491562, 0.03435815870761871, -0.028068693354725838, 0.025274818763136864, -0.00866101123392582, 0.010018964298069477, -0.051823124289512634, 0.009642115794122219, -0.059983838349580765, 0.04264882206916809, -0.009356231428682804, -0.06840444356203079, 0.007666911464184523, 0.04636532440781593, 0.014177288860082626, 0.028302598744630814, 0.03817862272262573, -0.013774451799690723, 0.02073964662849903, 0.04657324030995369, 0.008082743734121323, 0.018296629190444946, 0.028380567207932472, -0.04893828555941582, 0.03927018120884895, 0.08602534979581833, 0.020063918083906174, 0.019843006506562233, -0.03337055817246437, -0.02848452515900135, 0.051277343183755875, -0.0010907481191679835, 0.005311610642820597, -0.023832399398088455, 0.012254063971340656, 0.07178308814764023, -0.013410598039627075, 0.004220050293952227, -0.028796400874853134, 0.011727775447070599, 0.028770411387085915, 0.01083113718777895, -0.03745091333985329, -0.08280264586210251, -0.0642981007695198, -0.0028799648862332106, 0.011136514134705067, 0.004986741114407778, 0.007062654942274094, -0.04870438203215599, -0.0118967080488801, -0.023559510707855225, -0.007569450885057449, -0.008303655311465263, -0.0022269778419286013, -0.03329258784651756, 0.02359849400818348, 0.031447332352399826, -0.019440168514847755, -0.021298421546816826, 0.026418358087539673, 0.015762651339173317, 0.014151299372315407, -0.024573100730776787, 0.0058021629229187965, 0.0366712287068367, -0.037476904690265656, -0.026639269664883614, -0.0018777436343953013, 0.04015382379293442, 0.011669299565255642, -0.0058508929796516895, -0.013189687393605709, 0.018725456669926643, 0.013462577015161514, -0.0017851559678092599, -0.01051926240324974, -0.009408210404217243, 0.038048673421144485, 0.019011342898011208, -0.027237027883529663, -0.014099320396780968, 0.01811470277607441, -0.01734801195561886, 0.0128778126090765, 0.020011939108371735, 0.010525760240852833, -0.05164119973778725, 0.013098723255097866, -0.04004986584186554, 0.008303655311465263, -0.05164119973778725, -0.01925824210047722, 0.022545918822288513, 0.04168720915913582, 0.02248094417154789, -0.013735467568039894, 0.008401116356253624, -0.023780420422554016, 0.0018956114072352648, -0.050133805721998215, 0.055669575929641724, 0.03942611813545227, 0.017205068841576576, 0.005610490217804909, -0.04049168899655342, 0.014060336165130138, 0.008712990209460258, -0.04095949977636337, -0.023663468658924103, -0.005084202159196138, -0.0043922308832407, 0.01069469191133976, -0.003706756979227066, 0.017140096053481102, -0.03661924973130226, 0.01967407576739788, 0.011708283796906471, 0.007088644430041313, 0.00018923627794720232, 0.02851051650941372, -0.027548903599381447, 0.0027256521862000227, -0.012546446174383163, 0.019635090604424477, -0.02496294490993023, -0.0012629288248717785, 0.04381835088133812, 0.009239278733730316, -0.02079162560403347, -0.020037928596138954, -0.01645137369632721, -0.025794610381126404, 0.024625081568956375, -0.017685875296592712, -0.03615143895149231, -0.00845959223806858, -0.022052116692066193, -0.02079162560403347, -0.03165524825453758, 0.028666453436017036, -0.016906190663576126, -0.04145330190658569, -0.001793277682736516, -0.04932812973856926, -0.036905135959386826, 0.02352052554488182, -0.0003599956107791513, 0.00867400597780943, 0.010109927505254745, -0.05858040228486061, -0.05080953240394592, 0.011052047833800316, -0.03895830735564232, -0.016243457794189453, -0.020635686814785004, 0.022169070318341255, 0.0357356034219265, -0.025443751364946365, 0.006140026729553938, 0.0026720487512648106, -8.172489469870925e-05, 0.02029782347381115, 0.028380567207932472, 0.01773785427212715, 0.05044567957520485, 0.009707089513540268, -0.01925824210047722, 0.017127100378274918, 0.02791275642812252, -0.005048466380685568, 0.0004954254254698753, -0.008914409205317497, -0.024729039520025253, 0.03739893436431885, 0.020128892734646797, -0.045247774571180344, -0.04870438203215599, -0.024975938722491264, -0.026587290689349174, 0.026483332738280296, -0.015489760786294937, -0.025105886161327362, -0.02793874591588974, 0.0017981507116928697, -0.022584902122616768, -0.005464299116283655, 0.006520123686641455, 0.008920906111598015, -0.016568325459957123, -0.011389912106096745, 0.06045164912939072, 0.04379235953092575, 0.0038432020228356123, 0.06939204782247543, -0.0028149911668151617, 0.03009587712585926, 0.03022582456469536, 0.0028734675142914057, 0.0032584373839199543, -0.01065570767968893, -0.023169666528701782, -0.0064746420830488205, -0.008056754246354103, -0.03544972091913223, -0.00859603751450777, -0.004915270023047924, 0.045195795595645905, -0.033188629895448685, -0.01816668175160885, -0.027756819501519203, 0.006497382652014494, -0.03495591878890991, 0.038646433502435684, -0.02843254618346691, 0.03955606743693352, 0.02908228524029255, -0.024923959746956825, -0.010889613069593906, 0.020830608904361725, -0.009908508509397507, -0.0007541024824604392, -0.007796859368681908, 0.004609893076121807, -0.020167876034975052, 0.02046675607562065, -0.015385802835226059, 0.014333226718008518, -0.09881220012903214, 0.024495132267475128, 0.01942717470228672, 0.011298948898911476, -0.00029360048938542604, -0.008095738478004932, 0.007270571310073137, -0.02089558355510235, -0.028692442923784256, 0.014372210949659348, 0.0038821862544864416, -0.043506473302841187, -0.026665259152650833, -0.02602851577103138, -0.037996694445610046, -0.0015869857743382454, -0.014814033173024654, -0.033630453050136566, 0.04555964842438698, -0.04787271469831467, 0.03238295391201973, -0.03009587712585926, 0.036489300429821014, -0.05073156580328941, -0.007400518748909235, -0.034280192106962204, 0.01506093330681324, 0.048574432730674744, 0.008355634286999702, 0.04389631748199463, -0.007160115987062454, 0.004847047384828329, 0.020206861197948456, 0.004434463568031788, -0.004233045037835836, -0.026314400136470795, 0.06653320044279099, -0.03378638997673988, -0.00022903273929841816, 0.02793874591588974, -0.04361043497920036, 0.004236293490976095, -0.012650404125452042, -0.0548379123210907, 0.026951143518090248, -0.023663468658924103, 0.04036174342036247, 0.01274136733263731, 0.00433050561696291, 0.02163628488779068, 0.04457204416394234, -0.0030375265050679445, 0.008173707872629166, -0.033734411001205444, -0.0057404376566410065, -0.028770411387085915, -0.01476205326616764, 0.009193796664476395, -0.027003122493624687, -0.00755645614117384, 0.05644926056265831, 0.014216273091733456, 0.030797595158219337, 0.01704913191497326, 0.06741684675216675, -0.02354651503264904, -0.020921573042869568, 0.018764441832900047, -0.028068693354725838, -0.029861971735954285, -0.0487823486328125, -0.025963541120290756, -0.020128892734646797, 0.03765882924199104, 0.002482000272721052, -0.02294875681400299, 0.012143608182668686, 0.009785058908164501, 0.02076563611626625, -0.014359216205775738, -0.010350330732762814, -0.023949353024363518, -0.013449582271277905, 0.008855932392179966, -0.018972357735037804, 0.006075053010135889, 0.033136650919914246, -0.01058423612266779, 0.01702314242720604, 0.00754346139729023, -0.0097655663266778, -0.06346643716096878, 0.01202015858143568, -0.028224630281329155, 0.006201751995831728, 0.02144136279821396, -0.00967460311949253, 0.03773679956793785, 0.042908716946840286, -0.035891544073820114, -0.032538894563913345, 0.02461208589375019, -0.015541739761829376, 0.009733079001307487, 0.03552768751978874, 0.020726650953292847, -0.02270185574889183, -0.008180204778909683, -0.026743227615952492, 0.017425980418920517, -0.030797595158219337, -0.03602148965001106, -0.006497382652014494, 0.009992974810302258, -0.01950514316558838, 0.0009664857061579823, 0.024196254089474678, -0.015008954331278801, -0.007329047657549381, -0.015775645151734352, -0.020583707839250565, -0.006243984680622816, -0.07490182667970657, 0.004307764582335949, 0.012819335795938969, -0.013709478080272675, 0.02471604384481907, 0.009375723078846931, 0.006672812160104513, -0.023754430934786797, -0.03732096776366234, -0.04641730338335037, 0.00975257158279419, -0.007647419348359108, 0.010454288683831692, 0.0354757085442543, 0.0075044771656394005, 0.02446914277970791, 0.011565341614186764, 0.03071962483227253, 0.014515153132379055, -0.009518666192889214, -0.011181996203958988, 0.04106345772743225, -0.010798649862408638, 0.023442557081580162, -0.020609697327017784, -0.04418220371007919, 0.021753236651420593, 0.004934762138873339, -0.02161029540002346, -0.02632739581167698, 0.019076315686106682, 0.028848379850387573, -0.025911562144756317, -0.007335545029491186, 0.021233446896076202, -0.026951143518090248, 0.00955115258693695, -0.00972658209502697, 0.004512432496994734, 0.017153089866042137, -0.022091101855039597, 0.010337335988879204, -0.017101110890507698, 0.03500789776444435, -0.025599688291549683, -0.0014675963902845979, -0.013748462311923504, 0.008017770014703274, -0.013371613807976246, -0.015125907026231289, 0.0003518738958518952, 0.02404031716287136, -0.021896179765462875, 0.051797136664390564, 0.004171319771558046, 0.007153618615120649, -0.003982895519584417, 0.040257785469293594, -0.005288869608193636, 0.005526023916900158, 0.012169597670435905, 0.08004775643348694, -0.02900431677699089, -0.02346854656934738, -0.00985003262758255, -0.02294875681400299, -0.0172700434923172, 0.012936289422214031, 0.010246372781693935, -0.004460453055799007, 0.005958099849522114, -0.010590733960270882, -0.01285182312130928, 0.015502755530178547, 0.001162219326943159, 0.05650123953819275, -0.007744880393147469, -0.004103097133338451, 0.019843006506562233, -0.02431320585310459, -0.000877958838827908, -0.011013063602149487, 0.021597299724817276, 0.01395637821406126, 0.0026785461232066154, -0.01945316419005394, 0.009109330363571644, -0.01095458772033453, -0.04389631748199463, -0.000756538996938616, -0.07562953233718872, -0.012474974617362022, -0.016711268573999405, 0.0074460008181631565, -0.0007134938496164978, -0.008043759502470493, -0.009992974810302258, 0.017140096053481102, -0.0010330838849768043, 0.006926210131496191, -0.03069363534450531, 0.019466158002614975, 0.021675268188118935, 0.018127698451280594, 0.0017071872716769576, -0.004743089433759451, -0.0195311326533556, -0.007465492933988571, -0.012910299934446812, -0.017412986606359482, -0.010155409574508667, 0.020427770912647247, -0.01830962486565113, 0.0013092226581647992, -0.04719698801636696, -0.008979382924735546, 0.00039227947127074003, -0.006705299019813538, -0.006536366883665323, -0.005292118061333895, -0.006624081637710333, 0.023689458146691322, -0.03724299743771553, 0.01912829466164112, 0.006429160479456186, -0.006913215387612581, 0.0014667841605842113, 0.01590559259057045, -0.012832330539822578, 0.023481542244553566, 0.011454885825514793, -0.03570961579680443, -0.016711268573999405, 0.0032600618433207273, -0.007608435116708279, 0.03617742657661438, 0.0030245317611843348, -0.0442601703107357, 0.03498191013932228, 0.033136650919914246, -0.01858251541852951, -0.040283773094415665, -0.03126540407538414, 0.005025725346058607, -0.011214482598006725, 0.006153021473437548, 0.006640325300395489, -0.06705299019813538, -0.01069469191133976, -0.0037327464669942856, 0.012721875682473183, 0.017659885808825493, -0.02436518482863903, -0.015294838696718216, 0.060503628104925156, -0.032590873539447784, 0.0017542933346703649, -0.0295500960201025, 0.00037420864100567997, 0.016802232712507248, -0.0017851559678092599, 0.051277343183755875, 0.0033851363696157932, -0.025885572656989098, -0.018348608165979385, 0.014606116339564323, -0.004847047384828329, 0.012312540784478188, -0.039218202233314514, -0.015593718737363815, -0.03734695538878441, -0.006630579009652138, -0.015762651339173317, -0.051745157688856125, -0.009278262965381145, -0.02791275642812252, 0.035813573747873306, 0.0024072802625596523, -0.032123059034347534, 0.03191514313220978, -0.02515786699950695, 0.0019443418132141232, -0.0025453497655689716, 0.05112140625715256, 0.012923294678330421, -0.022883782163262367, -0.01890738308429718, -0.0020223103929311037, 0.008803953416645527, 0.01734801195561886, 0.0069002206437289715, 0.024183258414268494, 0.04293470457196236, 0.0005027349689044058, -0.008966388180851936, -0.014956975355744362, -0.0026476834900677204, 0.008186702616512775, -0.01256593782454729, -0.022584902122616768, 0.0016430256655439734, -0.06835246831178665, 0.005152424331754446, -0.01478804275393486, 0.010129420086741447, -0.0070691523142158985, 0.011104026809334755, 0.001187396701425314, -0.012260560877621174, 0.01623046211898327, 0.01895936205983162, -0.0017299281898885965, -0.04314262047410011, 0.040777575224637985, -0.03846450522542, -0.01751694455742836, 0.023962346836924553, -0.017828818410634995, 0.012819335795938969, 0.0015082049649208784, 0.005815157666802406, 0.01304024737328291, -0.009304252453148365, 0.017776839435100555, -0.03888033702969551, -0.014476168900728226, 0.04218100756406784, 0.07703296840190887, 0.013098723255097866, 0.005958099849522114, -0.050575628876686096, -0.023286620154976845, -0.039166223257780075, 0.043558452278375626, -0.00949267577379942, -0.004986741114407778, -0.0351378470659256, -0.057800717651844025, 0.005600743927061558, -0.015424787066876888, 0.019414179027080536, 0.006672812160104513, -0.01702314242720604, 0.007166613359004259, 0.02228602208197117, 0.042986683547496796, 0.020908577367663383, 0.051771145313978195, -0.02384539507329464, -0.017412986606359482, -0.023936357349157333, 0.017893793061375618, -0.03823060169816017, 0.05473395064473152, 0.030771605670452118, 0.013566534966230392, 0.03469602391123772, -0.009447194635868073, -0.034202221781015396, -0.010590733960270882, -0.025352787226438522, -0.00851157121360302, -0.032668840140104294, -0.02485898695886135, -0.011851225979626179, -0.007907315157353878, 0.021220451220870018, -0.0007435442530550063, -0.013007760047912598, 0.012929791584610939, 0.020674671977758408, 0.004687861539423466, -0.01509991753846407, 0.029835982248187065, 0.03136936575174332, -0.0012840452836826444, 0.03326660022139549, -0.016035540029406548, 0.010148911736905575, 0.010285357013344765, -0.014892001636326313, -0.008992377668619156, -0.02044076658785343, 0.00048811588203534484, -0.0078033567406237125, 0.004876285791397095, 0.0023260631132870913, 0.0330067053437233, -0.0006107539520598948, 0.025794610381126404, 0.03352649509906769, 0.05416218191385269, -0.028900358825922012, 0.009031361900269985, -0.02595054730772972, 0.0007082147058099508, -0.010207388550043106, 0.0012669896241277456, -0.005454552825540304, -0.04020580276846886, 0.013228671625256538, -0.010012466460466385, 0.026691248640418053, -0.03882835805416107, -0.0027597632724791765, -0.019037332385778427, -0.023143677040934563, -0.057124990969896317, -0.005724193993955851, -0.0012182592181488872, 0.04883432760834694, -0.013397603295743465, 0.007627927232533693, 0.06065956503152847, -0.004704105202108622, -0.007218592334538698, 0.03136936575174332, 0.03191514313220978, -0.027081090956926346, 0.024703050032258034, -0.008284162729978561, 0.002542101079598069, 0.005698204506188631, -0.024079300463199615, -0.0127283725887537, -0.009661608375608921, -0.022350996732711792, 0.01868647336959839, 0.0028620969969779253, 0.010077441111207008, 0.031109469011425972, 0.001973580103367567, -0.0003626351826824248, -0.005210901144891977, -0.03734695538878441, -0.0033494008239358664, -0.008115231059491634, -0.03924419358372688, -0.0075629535131156445, 0.003107373369857669, 0.020999541506171227, 0.00832314696162939, -0.04329855740070343, 0.014736063778400421, 0.020583707839250565, 0.020154882222414017, -0.018231656402349472, -0.012845325283706188, 0.04010184481739998, 0.008297157473862171, 0.011552346870303154, 0.021675268188118935, 0.025937551632523537, 0.020726650953292847, -0.012949284166097641, -0.053486455231904984, 0.013917393982410431, -0.0075629535131156445, -0.025118881836533546, -0.028328588232398033, -0.045715585350990295, -0.005282372236251831, -0.03220102936029434, 0.033084671944379807, -0.001965458272024989, 0.028822390362620354, 0.019193269312381744, 0.0059808408841490746, 0.012643907219171524, -0.026366379112005234, -0.001351455575786531, 0.034176234155893326, -0.018374597653746605, 0.008667509071528912, -0.010168404318392277, 0.024923959746956825, -0.01977803371846676, 0.015125907026231289, 0.02161029540002346, 0.0011792749864980578, 0.01781582273542881, -0.005555262323468924, 0.016009550541639328, 0.01945316419005394, -0.0327468104660511, -0.01808871328830719, -0.020037928596138954, -0.009083340875804424, 0.030797595158219337, 0.006084798835217953, 0.04345449432730675, 0.03064165636897087, 0.0018143941415473819, 0.004629385191947222, -0.06253080815076828, 0.0012645531678572297, -0.002853975398465991, 0.010168404318392277, 0.03383836895227432, 0.0295500960201025, -0.003960154950618744, 0.030511708930134773, 0.009512168355286121, 0.009570645168423653, 0.005951602477580309, 0.05416218191385269, -0.01365749817341566, 0.010408807545900345, 0.016295436769723892, -0.009947492741048336, -0.0014034346677362919, 0.01923225261271, -0.024845991283655167, 0.022299017757177353, -0.01316369790583849, -0.026119478046894073, -0.01803673431277275, -0.010233378037810326, 0.0019232253544032574, -0.023910367861390114, 0.02292276732623577, -0.010486776009202003, -0.0469890721142292, -0.007679906208068132, 0.011110524646937847, 0.04654724895954132, 0.03544972091913223, -0.03282477706670761, 0.023286620154976845, -0.05265479162335396, 0.014853017404675484, 0.023104693740606308, 0.020401781424880028, -0.03191514313220978, 0.014021351933479309, 0.00493151368573308, 0.0073745292611420155, -0.0028344832826405764, -0.018023740500211716, 0.03139535337686539, -0.014229267835617065, -0.005318108014762402, 0.0366712287068367, 0.03981596231460571, 0.04181715473532677, -0.040257785469293594, 0.002548598451539874, -0.02193516492843628, 0.0140083571895957, 0.039114244282245636, 0.010727179236710072, 0.020986545830965042, -0.015918588265776634, 0.03625539690256119, -0.02218206413090229, 0.049094222486019135, 0.06372632831335068, -0.01208513230085373, -0.019466158002614975, 0.023689458146691322, 0.014242262579500675, -0.021896179765462875, -0.05473395064473152, 0.01882941462099552, -0.011792750097811222, 0.030355772003531456, 0.006029571406543255, 0.0035345761571079493, 0.0233256034553051, 0.011104026809334755, -0.009928001090884209, 0.00597434351220727, -0.006815754342824221, 0.019765038043260574, -0.015385802835226059, 0.051797136664390564, -0.0006968443049117923, -0.03134337440133095, 0.003183717606589198, 0.006744283251464367, 0.025079896673560143, 0.0008121728315018117, 0.025989530608057976, -0.0030716375913470984, 0.03555367887020111, 0.0351378470659256, 0.011136514134705067, -0.021571310237050056, 0.00987602211534977, 0.024183258414268494, 0.013085728511214256, 0.017361007630825043, 0.012637409381568432, -0.02848452515900135, 0.028744421899318695, -0.02461208589375019, 0.013878409750759602, 0.011246969923377037, -0.04589751362800598, 0.0330067053437233, -0.006455149967223406, -0.003100875997915864, 0.005288869608193636, 0.009265268221497536, 0.03745091333985329, -0.04490990936756134, -0.015528745017945766, 0.03355248644948006, 0.017711864784359932, 0.010538754984736443, -0.009798053652048111, -0.004447458311915398, 0.02084360457956791, -0.014372210949659348, 0.012585430406033993, -0.02114248275756836, -0.017724860459566116, -0.014619111083447933, -0.020986545830965042, -0.0077513777650892735, 0.01860850490629673, -0.004694358911365271, -0.014593121595680714, 0.012117618694901466, -0.0005847644642926753, 0.010018964298069477, -0.01565869338810444, -0.003159352345392108, -0.009102833457291126, -0.012487969361245632, -0.013631508685648441, 0.0007260825368575752, -0.02357250452041626, -0.03500789776444435, -0.0017802828224375844, 0.010987074114382267, 0.04228496551513672, 0.03282477706670761, 0.011305445805191994, 0.02436518482863903, 0.011039053089916706, -0.0048080631531775, -0.014671090058982372, -0.0019817017018795013, 0.002015813020989299, 0.03170722723007202, 0.0354757085442543, 0.01669827289879322, -0.0219611544162035, 0.02962806634604931, -0.02079162560403347, 0.008394618518650532, 0.0022091101855039597, 0.02193516492843628, 0.01504793856292963, 0.015749655663967133, -0.023832399398088455, 0.0005543079460039735, -0.00849857646971941, -0.028354577720165253, -0.02567765675485134, -0.008134723640978336, 0.0210645142942667, -0.030797595158219337, 0.009343236684799194, 0.014463174156844616, -0.016763247549533844, 0.02731499634683132, -0.0032389452680945396, -0.0055617596954107285, -0.0307456161826849, -0.011084535159170628, 5.908557432121597e-05, 0.023442557081580162, -0.007900817319750786, -0.016529342159628868, -0.003713254351168871, -0.028666453436017036, 0.05143328383564949, -0.028562495484948158, -0.04587152227759361, -0.02277982421219349, 0.03680117428302765, 0.04171319678425789, 0.01888139359652996, 0.010356828570365906, -0.00652662105858326, 0.015723666176199913, 0.015333822928369045, 0.008940398693084717, 0.026717238128185272, -0.0030586428474634886, 0.012799844145774841, -0.0031853418331593275, -0.008011273108422756, 0.04259684309363365, -0.02952410653233528, -0.022221049293875694, 0.02002493292093277, 0.002553471364080906, -0.018673477694392204, -0.026613280177116394, 0.008290660567581654, 0.028276609256863594, 0.02223404310643673, 0.043922308832407, -0.009557650424540043, 0.003580057993531227, 0.003924419172108173, 0.0001221304846694693, -0.01399536244571209, 0.009336738847196102, 0.024300212040543556, -0.010194393806159496, 0.021376390010118484, 0.0131766926497221, -0.011233975179493427, -0.01278035156428814, -0.0015926709165796638, -0.02796473540365696, 0.03004389815032482, 0.028744421899318695, -0.0038334557320922613, -0.0035703119356185198, 0.001139478525146842, -8.253706619143486e-05, -0.028250619769096375, 0.0012921669986099005, -0.01920626312494278, -0.06372632831335068, -0.016321426257491112, -0.011981173418462276, 0.02692515403032303, -0.008479084819555283, 0.03170722723007202, 0.004031626041978598, -0.013397603295743465, -0.010226880200207233, -0.026197446510195732, 0.0043175108730793, 0.03157728165388107, -0.017750849947333336, 0.02580760419368744, -0.025079896673560143, 0.001905357465147972, -0.01972605474293232, -0.06653320044279099, -0.023403571918606758, -0.036359354853630066, 0.0061660162173211575, -0.049588024616241455, -0.025118881836533546, 0.021155478432774544, -0.008907911367714405, 0.03456607460975647, -0.004031626041978598, -0.022325007244944572, -0.027756819501519203, 0.028328588232398033, 0.006084798835217953, -0.030433740466833115, -0.002205861499533057, 0.007523969281464815, 0.005704701878130436, 0.01650335267186165, 0.016802232712507248, 0.0007102451636455953, 0.036957114934921265, 0.028120672330260277, 0.0030212830752134323, -0.02471604384481907, -0.0034566076938062906, -0.029498117044568062, 0.024300212040543556, -0.020661676302552223, -0.018075719475746155, 0.023416567593812943, 0.008992377668619156, -0.04101147875189781, 0.020154882222414017, 0.035397741943597794, -0.032097071409225464, -0.016659289598464966, -0.0077513777650892735, -0.020037928596138954, -0.0005116689135320485, -0.020336808636784554, 0.007043162826448679, -0.006620833184570074, 0.020141886547207832, 0.013358619064092636, 0.03446211665868759, 0.002808493794873357, 0.02213008515536785, 0.024157268926501274, 0.018205666914582253, 0.004434463568031788, -0.033734411001205444, -0.029809992760419846, -0.025989530608057976, -0.010181399062275887, 0.020752640441060066, 0.017283037304878235, -0.01304024737328291, -0.005181662738323212, -0.05520176514983177, -0.008751974441111088, 0.014073330909013748, 0.03825658932328224, -0.016061529517173767, 0.011630315333604813, -0.013248163275420666, 0.010142414830625057, -0.024209247902035713, 0.020804619416594505, 0.01582762412726879, 0.06502580642700195, -0.0060393172316253185, -0.006705299019813538, -0.017335018143057823, -0.015450776554644108, 0.019881991669535637, 0.0018192671705037355, -0.006815754342824221, 0.0130272526293993, -0.001158158527687192, 0.005971094593405724, 0.020921573042869568, 0.011552346870303154, 0.01645137369632721, 0.012273555621504784, -0.009992974810302258, -0.010402309708297253, -0.023130683228373528, 0.03376040235161781, -0.02567765675485134, 0.030329782515764236, 0.015346817672252655, 0.03843851760029793, 0.029887961223721504, 0.0497179739177227, 0.03890632838010788, 0.014489163644611835, 0.0010103429667651653, -0.008699995465576649, -0.02044076658785343, 0.010051450692117214, -0.02292276732623577, 0.009525163099169731, 0.023663468658924103, -0.020960556343197823, -0.009668105281889439, -0.0025226089637726545, -0.017114106565713882, -0.027548903599381447, 0.03230498731136322, -0.042440902441740036, -0.019894985482096672, -0.011669299565255642, 0.02550872415304184, 0.02739296667277813, 0.02384539507329464, -0.04205106198787689, -0.01476205326616764, 0.02456010691821575, -0.053434476256370544, -0.01173427328467369, -0.00871948804706335, 0.03017384558916092, -0.0051979064010083675, -0.02622343599796295, 0.013209179043769836, 0.001120798522606492, 0.004986741114407778, 0.024807007983326912, 0.017880797386169434, 0.009772063232958317, -0.002361798658967018, -0.013774451799690723, -0.008303655311465263, 0.014606116339564323, -0.019037332385778427, 0.01778983324766159, 5.888253144803457e-05, 0.005227144341915846, 0.01863449439406395, -0.013111717998981476, -0.0024755029007792473, -0.005480542313307524, 0.015268849208950996, 0.0022887031082063913, -0.01072068139910698, -0.012936289422214031, -0.008687000721693039, -0.008602534420788288, -0.04568959400057793, 0.013274152763187885, 0.007523969281464815, 0.013358619064092636, -0.013222173787653446, -0.03555367887020111, 0.026288410648703575, 0.01637340523302555, -0.02572963573038578, -0.03555367887020111, 0.03986794129014015, 0.0045806546695530415, -0.008505074307322502, 0.011402906849980354, 0.016490356996655464, -0.001158158527687192, 0.011370419524610043, -0.011311943642795086, -7.91868515079841e-05, -0.0016422135522589087, 0.013865415006875992, 0.01838759332895279, 0.025612682104110718, 0.030901553109288216, -0.012150106020271778, -0.014099320396780968, 0.020882587879896164, -0.008258173242211342, -0.03113545849919319, -0.013105221092700958, -0.02845853567123413, -0.007679906208068132, -0.03508586809039116, 0.028224630281329155, 0.03186316415667534, -0.009135319851338863, 9.101411706069484e-05, -0.011656304821372032, 0.003934165462851524, 0.011558843776583672, 0.007777367252856493, -0.03012186661362648, -0.010057948529720306, -0.016737258061766624, -0.033084671944379807, -0.025794610381126404, 0.03238295391201973, 0.04436412826180458, -0.0012093253899365664, -0.01623046211898327, -0.014632105827331543, 0.027574893087148666, 0.0007727824850007892, 0.004986741114407778, -0.0345400869846344, -0.0045221783220767975, 0.04379235953092575, 0.002525857649743557, -0.0012759235687553883, 0.005022476892918348, -0.006013327743858099, 0.017231058329343796, -0.015138901770114899, -0.008056754246354103, -0.026665259152650833, 0.017906786873936653, -0.025222839787602425, 0.018478557467460632, -0.0014464798150584102, -0.05416218191385269, 0.011500367894768715, -0.026977133005857468, -0.003982895519584417, 0.026665259152650833, 0.02002493292093277, 0.004483194090425968, -0.024352191016077995, -0.008069748990237713, -0.006234238855540752, 0.00755645614117384, -0.0626867488026619, 0.0210645142942667, 0.036931123584508896, 0.026119478046894073, 0.01393038872629404, 0.030381761491298676, -0.002974177012220025, 0.014177288860082626, 0.03321462124586105, -0.002590831369161606, 0.009284759871661663, 0.00866101123392582, 0.015242859721183777, 0.0037392438389360905, -0.02376742660999298, 0.0020434269681572914, 0.008641518652439117, 0.014242262579500675, -0.002397534204646945, 0.014463174156844616, 0.023611489683389664, -0.024651071056723595, 0.003632036969065666, 0.0022367241326719522, -0.027756819501519203, -0.004421468824148178, 0.027107080444693565, 0.0008194823749363422, -0.004099848680198193, -0.004541670437902212, 0.042960695922374725, -0.010155409574508667, -0.00738102663308382, -0.008102236315608025, 0.0363333635032177, 0.004544919356703758, 0.004730094689875841, -0.022013133391737938, 0.03012186661362648, 0.011201487854123116, -0.034202221781015396, -0.00947968102991581, 0.007322550285607576, -0.03243493661284447, -0.03490393981337547, 0.002278957050293684, -0.020011939108371735, 0.00635119155049324, -0.0015187632525339723, 0.027522914111614227, 0.0017396742478013039, 0.02002493292093277, -0.021623289212584496, -0.0054935370571911335, 0.040725596249103546, 0.028822390362620354, -0.016165487468242645, -0.043012674897909164, -0.023182662203907967, -0.02736697532236576, 0.006802759598940611, -0.022870786488056183, 0.016087519004940987, -0.0018322619143873453, 0.004278526641428471, 0.023754430934786797, -0.013800441287457943, 0.026340389624238014, -0.016841216012835503, 0.006399922072887421, -0.029861971735954285, -0.00755645614117384, -0.011695289053022861, 0.015216870233416557, 0.028250619769096375, 0.03469602391123772, -0.024261226877570152, 0.0017461716197431087, 0.022883782163262367, 0.025326797738671303, -0.002413777634501457, 0.0048308041878044605, 0.0064746420830488205, -0.001591858803294599, 0.015359812416136265, -0.02161029540002346, -0.004145330283790827, 0.04966599494218826, -0.029472127556800842, 0.03771080821752548, -0.016269447281956673, 7.030371489236131e-05, 0.026262421160936356, 0.03557966649532318, -0.013222173787653446, 0.029861971735954285, 0.0025144871324300766, -0.04368840157985687, 0.009544655680656433, -0.028042703866958618, -0.007913812063634396, -0.015528745017945766, -0.02905629575252533, -0.00215875543653965, -0.001247497508302331, 0.02853650599718094, 0.016529342159628868, 0.02466406486928463, -0.022818807512521744, -0.016282441094517708, -0.006393424700945616, 0.007595440372824669, 0.046807143837213516, -0.020128892734646797, 0.016633300110697746, 0.029498117044568062, 0.008855932392179966, 0.015775645151734352, 0.0015691178850829601, -0.008589539676904678, -0.014385205693542957, -0.04976995289325714, -0.018842410296201706, -0.05385030806064606, 0.0009616126772016287, 0.002530730562284589, 0.03004389815032482, -0.007426508702337742, -0.04501386731863022, 0.02488497644662857, 0.014645100571215153, 0.028094682842493057], "id": 93}, {"title": "High-speed steel", "text": "High-speed steel (HSS or HS) is a subset of tool steels, commonly used in tool bits and cutting tools.It is often used in power-saw blades and drill bits. It is superior to the older high-carbon steel tools used extensively through the 1940s in that it can withstand higher temperatures without losing its temper (hardness). This property allows HSS to cut faster than high carbon steel, hence the name high-speed steel.", "vector": [0.025558795779943466, 0.039122700691223145, -0.023505879566073418, 0.015382200479507446, 0.037890952080488205, 0.013343948870897293, 0.0008614912512712181, -0.04448960721492767, 0.011298365890979767, -0.0006002944428473711, -0.00047519488725811243, 0.04290593042969704, 0.03111632913351059, 0.012852716259658337, -0.007456481456756592, 0.05619122460484505, 0.022068839520215988, 0.024224400520324707, 0.01000796165317297, -0.0478035993874073, 0.06475481390953064, -0.028696822002530098, -0.06311248242855072, -0.03284664452075958, -0.0020675789564847946, -0.02954731695353985, 0.004494417924433947, 0.0025038234889507294, -0.09150136262178421, -0.02145296521484852, -0.0018705357797443867, -0.007342838216573, -0.011364351958036423, -0.013167984783649445, 0.058390773832798004, 0.012647424824535847, -0.008446279913187027, 0.001985095674172044, -0.055311404168605804, 0.00019750144565477967, 0.025397494435310364, -0.05173346400260925, -0.033726464956998825, 0.038301534950733185, 0.008475607261061668, 0.001821962301619351, -0.0031141990330070257, 0.002324193250387907, 0.023344580084085464, -0.005997445434331894, -0.006279721390455961, 0.05129355564713478, 0.0037575680762529373, 0.0324360616505146, 0.00177155586425215, 0.006466683000326157, 0.06622117757797241, 0.1239960789680481, -0.016848569735884666, 0.008666235022246838, -0.04135157912969589, -0.009487401694059372, 0.006704967934638262, -0.024327045306563377, -0.007064227946102619, -0.025676105171442032, 0.010191258043050766, 0.026995835825800896, -0.033491846174001694, -0.013409935869276524, -0.06059032678604126, -0.010271907784044743, 0.08053293079137802, 0.02752372808754444, -0.007771750446408987, -0.006107422988861799, 0.02783166617155075, 0.005858140531927347, -0.0027384422719478607, -0.007254855707287788, 0.014949622564017773, 0.020807761698961258, 0.012581437826156616, -0.008160337805747986, 0.02148229256272316, -0.007144878152757883, -0.004241469781845808, -0.037568349391222, 0.014260428957641125, -0.015895429998636246, -0.02926870621740818, 0.004743700847029686, 0.043463148176670074, -0.0006552832201123238, -0.023388570174574852, 0.04217274487018585, -0.00038240128196775913, -0.012163522653281689, 0.009575383737683296, 0.030207181349396706, -0.012889374978840351, 0.013571236282587051, 0.00857092160731554, -0.017713725566864014, -0.0009256448247469962, -0.04457758739590645, -0.00646301731467247, 0.01564614661037922, 0.03613130748271942, -0.02305130660533905, -0.018564218655228615, -0.026423951610922813, 0.008717558346688747, -9.760512330103666e-05, 0.01286004763096571, -0.022318121045827866, 0.02657058835029602, -0.0031581902876496315, 0.013688545674085617, 0.02415108121931553, -0.04255400225520134, 0.06463750451803207, 0.002666956977918744, 0.007529799826443195, -0.03419570252299309, 0.028154266998171806, -0.01922408491373062, -0.008160337805747986, -0.01244946476072073, -0.048448801040649414, 0.005733498837798834, 0.005755494814366102, 0.0631711333990097, -0.0014535373775288463, 0.01970798708498478, -0.02291933260858059, 0.036424580961465836, 0.021130364388227463, 0.0093920873478055, 0.010367222130298615, -0.048888709396123886, -0.005682175979018211, -0.03838951513171196, 0.025998705998063087, 0.040765032172203064, -0.006268723402172327, -0.022992650046944618, 0.006184407044202089, -0.019620005041360855, 0.03445965051651001, 0.04047175869345665, -0.02790498360991478, -0.015734128654003143, -0.026981171220541, -0.0009998796740546823, -0.009736684150993824, -0.04789157956838608, 0.02772901952266693, -0.028095612302422523, -0.00558319641277194, 0.02291933260858059, -0.05079498887062073, -0.005744496826082468, 0.029151396825909615, -0.02469363808631897, 0.009252781979739666, -0.020133232697844505, -0.01991327852010727, -0.03319857269525528, 0.0148543082177639, 0.03170287609100342, 0.03915202617645264, 0.020103905349969864, -0.04736368730664253, 0.005586862098425627, 0.00836563017219305, -0.019356058910489082, 0.016789915040135384, 0.017904354259371758, -0.005935124587267637, -0.008328970521688461, 0.010873119346797466, 0.031028347089886665, -0.025573458522558212, 0.013101998716592789, -0.02387247234582901, 0.013497917912900448, 0.07695499807596207, -0.025353504344820976, -0.020441170781850815, -0.03011919930577278, 0.004780360031872988, 0.016921887174248695, 0.004076503217220306, -0.000938017328735441, -0.03008987195789814, -0.03762700408697128, -0.017977671697735786, 0.006899261847138405, -0.027362428605556488, -0.014385070651769638, 0.01202421821653843, 0.021057045087218285, -0.009538724087178707, 0.06721831113100052, 0.048272836953401566, 0.027860993519425392, 0.006008442956954241, -0.0508829727768898, 0.012794061563909054, 0.035632744431495667, 0.008944844827055931, -0.014927626587450504, -0.03272933512926102, -0.005487882532179356, -0.011379015631973743, 0.006133084185421467, -0.023931127041578293, -0.015602155588567257, 0.025764087215065956, -0.01819762773811817, -0.0022307124454528093, 0.02541215904057026, -0.031820185482501984, -0.022567404434084892, -0.029122069478034973, -0.012574106454849243, 0.031438931822776794, 0.024165745824575424, 0.005707837641239166, 0.062174003571271896, -0.0010521190706640482, 0.017229825258255005, 0.020235879346728325, -0.031438931822776794, 0.01523556374013424, -0.002892411081120372, -0.024869602173566818, -0.008380293846130371, -0.06287786364555359, 0.03979722782969475, 0.006041436456143856, 0.009897984564304352, -0.0009852160001173615, -0.08147140592336655, -0.025118885561823845, 0.015088927000761032, -0.04070637747645378, -0.0044724224135279655, -0.007815741933882236, 0.005605191923677921, -0.011730944737792015, 0.018564218655228615, 0.04821418225765228, 0.03504619747400284, -0.004740034695714712, -0.016335340216755867, 0.014304419979453087, 0.027567720040678978, -0.024224400520324707, 0.019751977175474167, -0.011093074455857277, -6.121800311120751e-07, 0.054460909217596054, -0.042466018348932266, 0.003728240728378296, 0.032084133476018906, -0.03988521173596382, -0.008175001479685307, 0.018490901216864586, 0.022068839520215988, -0.03794960677623749, 0.017743052914738655, 0.002098739380016923, 0.020367851480841637, -0.050736334174871445, 0.006833275314420462, 0.017699062824249268, -0.008600248955190182, 0.00877621304243803, -0.007515136152505875, -0.006287053227424622, 0.05648449808359146, 0.03794960677623749, -0.030207181349396706, -0.05243732035160065, -0.03179085999727249, 0.011899576522409916, 0.04091166704893112, -0.012750070542097092, -0.014802985824644566, -0.03275866061449051, 0.02425372786819935, 0.013820518739521503, 0.008350965566933155, 0.016027402132749557, -0.007269519381225109, -0.02572009526193142, 0.03783229738473892, -0.004439429379999638, 0.04589731991291046, 0.0327879898250103, -0.021335655823349953, -0.03387310355901718, -0.01311666239053011, 0.005253263749182224, 5.5704800615785643e-05, -0.023300588130950928, 0.014883635565638542, -0.07806943356990814, -0.010836459696292877, 0.030383145436644554, -0.01130569726228714, 0.05607391521334648, 0.020030587911605835, -0.008453612215816975, -0.0011703449999913573, -0.034166377037763596, -0.029386015608906746, -0.0022160487715154886, -0.02940068021416664, 0.006653645075857639, -0.08575320243835449, -0.005942456424236298, 0.031849514693021774, -0.0007299763383343816, -0.04135157912969589, 0.0324360616505146, 0.054050326347351074, -0.025588123127818108, 0.03445965051651001, -0.03161489591002464, -0.026687897741794586, 0.016540631651878357, 0.021335655823349953, -0.07806943356990814, -0.004762030206620693, -0.014693007804453373, -0.05437292903661728, -0.02107170969247818, 0.007859732955694199, 0.02649727091193199, 0.0062174005433917046, 0.04220207408070564, 0.053434450179338455, 0.018124308437108994, -0.050120458006858826, 0.017801707610487938, -0.002157394075766206, 0.009047490544617176, 0.0006332877092063427, -0.002492825733497739, 0.010345226153731346, 0.009890652261674404, -0.008328970521688461, -0.03193749487400055, -0.006701301783323288, -0.009700024500489235, -0.015426191501319408, 0.019268076866865158, 0.05372772365808487, -0.00804302841424942, 0.01824161782860756, -0.022068839520215988, 0.02145296521484852, -0.01068982295691967, -0.02574942260980606, 0.022054174914956093, -0.022977987304329872, -0.01865220069885254, -0.006957916542887688, -0.017772380262613297, 0.06000377982854843, -0.013175317086279392, -0.05023777112364769, -0.01670193113386631, 0.017391124740242958, -0.04220207408070564, -0.06328844279050827, 0.023784490302205086, 0.028506195172667503, 0.06064898148179054, 0.020543815568089485, 0.03149758651852608, 0.014465720392763615, -0.04314054921269417, -0.0067526246421039104, -0.011826258152723312, -0.02052915282547474, -0.006734295282512903, 0.02032386139035225, 0.0017779712798073888, -0.012838052585721016, -0.020001260563731194, 0.026805207133293152, 0.03337453678250313, -0.017713725566864014, -0.027948975563049316, 0.01246412843465805, 0.00366775318980217, -0.0007872563437558711, 0.024957584217190742, -0.018329599872231483, 0.006939586717635393, 0.005047971848398447, -0.05416763573884964, -0.013791191391646862, -0.01950269564986229, -0.039914537221193314, 0.008021033369004726, 0.01333661749958992, -0.04894736409187317, 0.04176216199994087, -0.002118901815265417, -0.00872488971799612, -0.004333117511123419, 0.03882942721247673, 0.015895429998636246, 0.02605736069381237, -0.04932862147688866, -0.03378511965274811, -0.06258458644151688, 0.019751977175474167, -0.0010832793777808547, 0.02459099143743515, 0.0440496951341629, -0.04293525591492653, 0.03422503173351288, 0.027127807959914207, -0.04627857729792595, -0.02769969217479229, -0.00707889162003994, -0.00039683585055172443, 0.07214530557394028, -0.03575005382299423, -0.003390975994989276, 0.02913673222064972, -0.004883005749434233, 0.001687239739112556, 0.046395886689424515, -0.009626706130802631, -0.04085301235318184, -0.01901879347860813, 0.009604711085557938, -0.02636529691517353, 0.0006484095938503742, -0.04572135582566261, -0.009142804890871048, 0.015499509871006012, -0.03674718365073204, -0.049739204347133636, 0.006840607151389122, -0.02497224695980549, -0.018769510090351105, 0.010968432761728764, -0.048038218170404434, 0.013923164457082748, 0.011679621413350105, 0.00788906030356884, -0.017743052914738655, 0.013380608521401882, 0.08176468312740326, 0.04434296861290932, -0.04296458512544632, 0.033726464956998825, 0.022068839520215988, 0.0006195405148901045, 0.048008888959884644, -0.002157394075766206, 0.0372164212167263, -0.0631711333990097, -0.03231875225901604, -0.04255400225520134, 0.029693953692913055, -0.01111506950110197, -0.02137964591383934, 0.02981126308441162, -0.015484846197068691, -0.0512349009513855, 0.005381570663303137, 0.015690138563513756, -0.01922408491373062, 0.008754217065870762, 0.049299292266368866, 0.01937072165310383, 0.008153006434440613, 0.04231938347220421, -0.023007314652204514, -0.025324176996946335, 0.03284664452075958, -0.006932254880666733, -0.013974487781524658, -0.03821355104446411, -0.03531014174222946, -0.004754698369652033, 0.057774901390075684, 0.011840921826660633, 0.0018668698612600565, -0.0020455834455788136, -0.002626631874591112, -0.021115699782967567, -0.02459099143743515, -0.04753965139389038, -0.013754532672464848, 0.03094036504626274, 0.026453278958797455, -0.01752309873700142, -0.04032512009143829, 0.003999518696218729, -0.005055303685367107, -0.048038218170404434, -0.037861622869968414, -0.00729151489213109, 0.009216123260557652, -0.002580807777121663, 0.03566206991672516, -0.01786036230623722, 0.0015781786059960723, 0.008783544413745403, 0.019927941262722015, 0.0016111718723550439, 0.039122700691223145, -0.02893144078552723, -0.008182333782315254, 0.023916462436318398, -0.0283448938280344, 0.01891614869236946, 0.01505959965288639, -0.00018959680164698511, -0.008182333782315254, -0.023799153044819832, -0.033081263303756714, -0.03343319147825241, 0.018388254567980766, -0.02025054208934307, 0.017464444041252136, 0.007735091261565685, 0.022992650046944618, 0.009744015522301197, 0.017127178609371185, -0.010902446694672108, 0.052202701568603516, 0.018901484087109566, -0.006437355652451515, 0.011027087457478046, 0.030001889914274216, -0.00558319641277194, -0.018505563959479332, -0.013160653412342072, -0.02940068021416664, -0.011965563520789146, 0.03959193825721741, -0.005663846619427204, -0.01467101275920868, 0.007287849206477404, -0.006048768293112516, -0.03489955887198448, -0.044694896787405014, 0.040383774787187576, 0.003647590521723032, -0.005850808694958687, 0.012310159392654896, 0.04557471722364426, -0.00826298352330923, -0.024678973481059074, 0.013849846087396145, 0.00023484800476580858, 0.018094981089234352, -0.04399104043841362, 0.009861324913799763, 0.0018448743503540754, 0.009758679196238518, 0.01272074319422245, -0.0008523264550603926, -0.040354449301958084, -0.02708381786942482, -0.0553407296538353, -0.028476867824792862, -0.005704171489924192, -0.0037868954241275787, -0.011994890868663788, -0.026731889694929123, -0.016232693567872047, -0.018021663650870323, 0.005869138054549694, 0.02608668804168701, -0.019268076866865158, -0.05126422643661499, -0.005220270249992609, 0.0011034419294446707, -0.012060876935720444, 0.024297717958688736, -0.04384440556168556, 0.02705449052155018, -0.0028869120869785547, 0.01286004763096571, -0.029723281040787697, -0.05932925269007683, -0.027245119214057922, 0.08375894278287888, 0.04237803816795349, 0.03170287609100342, 0.031820185482501984, 0.00966336578130722, -0.02212749421596527, 0.029254041612148285, -0.000954055693000555, -0.03363848477602005, -0.012838052585721016, -0.004109496250748634, 0.023095296695828438, 0.007779082283377647, 0.047422342002391815, 0.00030083456658758223, 0.03665919974446297, -0.00918679591268301, -0.00700923940166831, 0.0032223437447100878, 0.027582382783293724, -0.054460909217596054, 0.025016238912940025, 0.01786036230623722, 0.0006997325108386576, 0.01311666239053011, -0.007302512880414724, 0.0009169382974505424, 0.0028209255542606115, 0.03070574626326561, 0.04252467304468155, 0.004487086087465286, -0.018666865304112434, -0.0042707971297204494, -0.021438300609588623, -0.004857344087213278, 0.005931458901613951, 0.0010035455925390124, 0.052818577736616135, 0.014627020806074142, 0.014751662500202656, -0.0059461225755512714, 0.028784804046154022, 0.012214845977723598, 0.023520544171333313, -0.022068839520215988, -0.017743052914738655, 0.03302260860800743, 0.006188073195517063, 0.01162829902023077, -0.002558812266215682, -0.010205921716988087, -0.012163522653281689, -0.034166377037763596, -0.015719465911388397, 0.027142472565174103, -0.014832313172519207, -0.006664642598479986, -0.001512192073278129, 0.007669104728847742, 0.03410772234201431, 0.0020804095547646284, -0.0123834777623415, -0.02223013900220394, 0.020881080999970436, 0.005487882532179356, 0.01588076539337635, 0.060062434524297714, -0.014553702436387539, 0.005905797239392996, -0.02500157430768013, 0.010308567434549332, -0.03419570252299309, -0.03718709200620651, -0.0023846810217946768, 0.024224400520324707, 0.025485476478934288, -0.02063179761171341, -0.0019631001632660627, -0.0020804095547646284, 0.033139917999506, 0.024708300828933716, 0.025265522301197052, 0.005066301673650742, -0.003645757446065545, -0.025368167087435722, 0.050765663385391235, -0.04143955931067467, -0.03844816982746124, 0.008013701066374779, -0.009678029455244541, 0.01395249180495739, -0.003709911135956645, -0.006957916542887688, -0.028843458741903305, 0.03319857269525528, 0.026629243046045303, 0.02363785356283188, -0.008702894672751427, -0.04363911226391792, 0.011701617389917374, 0.008673567324876785, 0.0011813427554443479, 0.0064923446625471115, -0.0026339637115597725, -0.01203888189047575, 0.05337579548358917, 0.042055435478687286, 0.008673567324876785, -0.05721767991781235, -0.029957899823784828, -0.019458703696727753, 0.001026457641273737, 0.02844754047691822, 0.019356058910489082, -0.02530951239168644, 0.03706978261470795, 0.016657941043376923, -0.01048453152179718, 0.0035999335814267397, -0.035192832350730896, 0.038682788610458374, 0.05918261408805847, 0.024957584217190742, -0.00944341067224741, -0.006679306272417307, 0.021775566041469574, -0.01580744795501232, 0.026247987523674965, 0.01241280511021614, -0.013754532672464848, 0.0019814297556877136, 0.036453910171985626, -0.029019422829151154, -0.02746507339179516, 0.019268076866865158, 0.0032461723312735558, -0.01629134826362133, 0.00028754561208188534, -0.017889689654111862, -0.005975449923425913, 0.017801707610487938, -0.008336301892995834, -0.01916543021798134, -0.01819762773811817, -0.032260097563266754, -0.011173724196851254, 0.00810901541262865, 0.031204311177134514, 0.013138657435774803, -0.000333369622239843, 0.026614580303430557, 0.008842199109494686, -0.02469363808631897, 0.018784174695611, -0.02690785378217697, 0.005509878043085337, 0.02438570000231266, -0.03384377434849739, 0.0070862234570086, -0.001434291247278452, -0.005014978814870119, -0.031820185482501984, 0.05047238990664482, -0.04190880060195923, -0.002853918820619583, 0.030353818088769913, 0.052642613649368286, 0.02250874973833561, -0.01110040582716465, 0.0011281869374215603, 0.02947399765253067, 0.0005219353479333222, 0.04214341938495636, -0.014304419979453087, -0.0073465039022266865, 0.010132603347301483, 0.01292603462934494, 0.02572009526193142, 0.010315898805856705, -0.011679621413350105, -0.004663050174713135, 0.018872156739234924, 0.011914240196347237, -0.0036714191082865, 0.03695247322320938, 0.04633723199367523, 0.0023095295764505863, -0.033110588788986206, -0.017097851261496544, 0.039533283561468124, 0.010572513565421104, 0.053199831396341324, 0.02001592330634594, -0.0006158745964057744, 0.048243507742881775, 0.00823365617543459, -0.0009623040095902979, -0.03158556669950485, 0.02420973591506481, -0.03114565648138523, -0.015587491914629936, -0.0015974247362464666, -0.015176909044384956, 0.028183594346046448, -0.004780360031872988, 0.053199831396341324, -0.02445901930332184, -0.027685029432177544, 0.01005928497761488, 0.05023777112364769, -0.004556738771498203, -0.012933366000652313, 0.054871492087841034, 0.009824666194617748, 0.03844816982746124, -0.003077539848163724, 0.020001260563731194, -0.003775897668674588, -0.00022247552988119423, 0.02168758399784565, 0.030383145436644554, -0.03569139912724495, -0.030823055654764175, -0.0013683047145605087, -0.012845383957028389, 0.007793745957314968, 0.0416741780936718, 0.01847623661160469, -0.0044174338690936565, 0.02988458052277565, -0.010917110368609428, 0.011994890868663788, -0.03531014174222946, -0.005150617565959692, -0.020382516086101532, -0.05915328860282898, 0.026731889694929123, -0.04569202661514282, 0.06393364816904068, 0.018212290480732918, -0.016643276438117027, 0.027846328914165497, -0.03566206991672516, -0.010029957629740238, 0.028095612302422523, -0.014465720392763615, -0.006048768293112516, -0.026042696088552475, -0.004556738771498203, -0.008798208087682724, 0.022010184824466705, 0.05129355564713478, 0.0029455667827278376, 0.023608526214957237, 0.06305382400751114, -0.010645831935107708, 0.031204311177134514, 0.03111632913351059, -0.016760587692260742, 0.016437985002994537, -0.040589068084955215, 0.030823055654764175, 0.010440540499985218, -0.034166377037763596, 0.036835163831710815, 0.00021961152378935367, -0.0013472256250679493, 0.023623188957571983, 0.000476111366879195, 0.052642613649368286, 0.02988458052277565, 0.00877621304243803, 0.01156231202185154, 0.003830886445939541, -0.026995835825800896, -0.009494733065366745, -0.012889374978840351, -0.06293651461601257, -0.011892245151102543, 0.003728240728378296, 0.040794357657432556, 0.054020997136831284, 0.00025363583699800074, -0.0033488180488348007, -0.018212290480732918, 0.011261706240475178, 0.04026646539568901, -0.039973191916942596, -0.0072145308367908, 0.022156821563839912, 0.004945326130837202, -0.012933366000652313, 0.03217211365699768, 0.039738573133945465, -0.003878543386235833, 0.0024616653099656105, 0.02469363808631897, -0.0017358132172375917, 0.01137168426066637, 0.014179779216647148, -0.016115384176373482, -0.0015891763614490628, -0.011122401803731918, -0.014458389021456242, -0.0196346677839756, 0.011093074455857277, -0.01636466756463051, -0.03073507361114025, 0.017801707610487938, 0.020103905349969864, -0.008189665153622627, 0.02001592330634594, 0.04627857729792595, -0.0009659699280746281, -0.0002884620917029679, -0.0031746868044137955, 0.00415715342387557, 0.004648386500775814, 0.005553869064897299, -0.019971933215856552, -0.014685676433146, 0.042231399565935135, -0.020573142915964127, 0.0031123661901801825, 0.008614912629127502, -0.03841884434223175, 0.0016322509618476033, -0.0007826739456504583, -0.006759956479072571, 0.009414083324372768, -0.02585206925868988, -0.035574089735746384, -0.02909274213016033, 0.01991327852010727, -0.019004130735993385, -0.022626059129834175, -0.02073444426059723, -0.012016885913908482, 0.011137065477669239, -0.015660811215639114, -0.017669735476374626, 0.00041608192259445786, 0.012566774152219296, -0.018256282433867455, 0.018842829391360283, 0.010037289001047611, -0.02308063395321369, -0.044079024344682693, -0.0025826406199485064, -0.027450410649180412, 0.06950584799051285, 0.0029290702659636736, 0.04352180287241936, -0.012427468784153461, -0.01595408469438553, -0.06786351650953293, -0.014502380043268204, -0.012845383957028389, 0.01601273939013481, -0.05624987930059433, 0.014121124520897865, 0.01896013878285885, -0.036424580961465836, 0.02240610308945179, 0.025294849649071693, -0.012625428847968578, -0.02988458052277565, -0.014978949911892414, -0.04281794652342796, -0.061763420701026917, -0.007559127174317837, 0.02124767377972603, 0.01844690926373005, 0.019150767475366592, 0.03472359478473663, -0.00807968806475401, -0.010645831935107708, 0.020778434351086617, 0.025148212909698486, 0.044518932700157166, 0.016995206475257874, -0.009516729041934013, 0.03481157869100571, -0.026717225089669228, 0.017699062824249268, 0.054284945130348206, -0.013622559607028961, 0.029224714264273643, 0.005256929434835911, -0.01601273939013481, 0.02161426469683647, 0.002098739380016923, -0.017640408128499985, 0.026731889694929123, 0.0026138010434806347, -0.005850808694958687, 0.042260728776454926, -0.004912333097308874, 0.02821292169392109, -0.051146917045116425, -0.05680709704756737, 0.017567088827490807, -0.04296458512544632, -0.06745292991399765, -0.04352180287241936, 0.002054748125374317, 0.01891614869236946, -0.02944467030465603, 0.04011983051896095, -0.03821355104446411, -0.029151396825909615, 0.015924757346510887, -0.03410772234201431, -0.02394578978419304, 0.010323231108486652, -0.017332470044493675, 0.03548610582947731, -0.01205354556441307, -0.03264135122299194, 0.02261139452457428, 0.028095612302422523, 0.02001592330634594, -0.02813960239291191, -0.007225528359413147, -0.0068442728370428085, -0.011884912848472595, 0.006085427477955818, 0.002307696733623743, -0.0003842342412099242, 0.010719150304794312, -0.023388570174574852, -0.03730440139770508, 0.0022362112067639828, 0.004054507706314325, -0.061528801918029785, 0.027685029432177544, -0.00782307330518961, 0.008438948541879654, -0.009098813869059086, -0.005282591097056866, 0.0017468109726905823, -0.028462203219532967, -0.01703919656574726, 0.022274130955338478, -0.005080965347588062, 0.019590677693486214, -0.007830405607819557, 0.02258206717669964, -0.002327859168872237, 0.042260728776454926, -0.04522278904914856, 0.010425876826047897, -0.020705116912722588, 0.00763244554400444, 0.023300588130950928, -0.028872786089777946, -0.01088045071810484, -0.025148212909698486, -0.0016111718723550439, 0.006312714423984289, -0.005528207402676344, -0.015176909044384956, -0.04231938347220421, -0.0014287923695519567, -0.0011153562227264047, 0.003204014152288437, 0.01875484734773636, -0.02032386139035225, 0.0024854938965290785, 0.00015202112263068557, -0.013021348044276237, 0.012002222239971161, -0.014443725347518921, -0.0182709451764822, 0.009531392715871334, 0.003733739722520113, 0.006356705445796251, -0.02533883973956108, 0.005649182945489883, 0.0019631001632660627, 0.0032645019236952066, -0.023857807740569115, -0.005938790738582611, 0.005348577629774809, -0.011679621413350105, 0.002599137369543314, 0.019766641780734062, 0.030617764219641685, 0.01355657260864973, -0.009568051435053349, -0.00788906030356884, -0.006004777271300554, 0.017772380262613297, 0.02343256212770939, 0.01881350204348564, 0.003418470500037074, -0.006224732380360365, 0.01327063050121069, 0.057364318519830704, -0.03882942721247673, -0.0010035455925390124, -0.0034917888697236776, -0.015088927000761032, -0.03841884434223175, -0.005847142543643713, 0.0065326695330441, 0.016819242388010025, -0.00489400327205658, -0.012955361977219582, -0.03750969469547272, -0.012816056609153748, 0.034958213567733765, 0.03833086043596268, 0.01744977943599224, 0.004384440369904041, -0.0007043149089440703, -0.0040508415549993515, -0.020367851480841637, -0.01724448800086975, 0.019883951172232628, 0.04290593042969704, 0.008673567324876785, 0.006972580216825008, 0.0036329268477857113, -0.01646731235086918, 0.0013087334809824824, 0.002974894130602479, 0.016130048781633377, 0.0006117504090070724, 0.00024217984173446894, -0.0009760512039065361, -0.002976727206259966, -0.016115384176373482, 0.015411527827382088, -0.031820185482501984, -0.007042232435196638, 0.008607580326497555, -0.03152691200375557, 0.0033836441580206156, 0.002428672043606639, 0.00244700163602829, -0.006382367108017206, -0.013644554652273655, -0.002930903108790517, -0.019869286566972733, 0.018798837438225746, 0.020573142915964127, 0.0013976320624351501, 0.04727570712566376, 0.01354190893471241, 0.009824666194617748, -0.0008921932894736528, -0.013673882000148296, 0.018461573868989944, 0.031233638525009155, -0.02063179761171341, 0.005275259260088205, -0.021320991218090057, 0.030793728306889534, 0.0074711451306939125, -0.01420910656452179, 0.02769969217479229, -0.002388346940279007, 0.03261202573776245, 0.03363848477602005, -0.03572072461247444, 0.0036109313368797302, 0.02677587978541851, -0.001668910146690905, -0.010235249064862728, 0.049885839223861694, -0.004883005749434233, 0.016613949090242386, 0.008145674131810665, 0.018637537956237793, -0.021335655823349953, 0.005722501315176487, -0.018124308437108994, -0.0004871091223321855, -0.006921257358044386, 0.006184407044202089, 0.02690785378217697, 0.012346819043159485, 0.02950332500040531, -0.00034940801560878754, 0.029957899823784828, 0.016555294394493103, -0.03111632913351059, -0.019971933215856552, 0.013710541650652885, -0.015734128654003143, -0.0008940262487158179, -0.010814464651048183, -0.014495047740638256, 0.0013866343069821596, 0.04316987469792366, -0.013255966827273369, 0.00196859915740788, -0.005326582118868828, 0.0026064692065119743, -0.035808708518743515, -0.023887135088443756, 0.02217148430645466, -0.0016514969756826758, 0.006514340173453093, -0.014055137522518635, -0.014539038762450218, -0.007661772891879082, -0.028359558433294296, 0.006602322217077017, 0.0003106867370661348, 0.015015608631074429, -0.020690452307462692, -0.0060231066308915615, -0.005172613076865673, 0.02261139452457428, -0.01503027230501175, -0.060062434524297714, -0.03906404599547386, 0.028183594346046448, -0.0035559425596147776, -0.018769510090351105, -0.007669104728847742, 0.02410709112882614, -0.025382831692695618, 0.012156191281974316, -0.01347592193633318, 0.021731574088335037, -0.013659218326210976, -0.029532652348279953, -0.01355657260864973, 0.0035724390763789415, -0.010836459696292877, 8.076480298768729e-05, 0.0402957946062088, 0.003711744211614132, -0.0005411814781837165, 0.0024415028747171164, 0.006906593684107065, 0.008702894672751427, -0.033961083739995956, -0.0167312603443861, 0.01752309873700142, -0.015074263326823711, 0.053639743477106094, -0.008783544413745403, 0.021057045087218285, -0.01437773834913969, -0.007830405607819557, -0.008482939563691616, -0.013717873021960258, 0.010403880849480629, 0.03445965051651001, -0.03011919930577278, 0.05856674164533615, 0.018417581915855408, -0.0024579993914812803, 0.02896076813340187, -0.013549240306019783, 0.03730440139770508, 0.009985966607928276, -0.0283448938280344, 0.0338144488632679, -0.017640408128499985, 0.023315252736210823, -0.037451039999723434, 0.06616252660751343, -0.0024268392007797956, 0.00048481792327947915, -0.005542871076613665, 0.01775771751999855, 0.006085427477955818, -0.012955361977219582, -0.027230454608798027, -0.018769510090351105, 0.020793098956346512, 0.04487086087465286, 0.02435637265443802, -0.011144396848976612, 0.038712117820978165, -0.012354150414466858, 0.009751347824931145, -0.01629134826362133, -0.03921068087220192, 0.024165745824575424, -0.008409621194005013, 0.03487023338675499, 0.0032974951900541782, -0.0324360616505146, 0.0046447208151221275, -0.015440855175256729, 0.00831430684775114, 0.004300124477595091, 0.05745229870080948, 0.02181955613195896, -0.0033854772336781025, -0.006316380575299263, 0.02274336852133274, -0.01379852369427681, -0.007133880630135536, 0.02674655243754387, 0.01703919656574726, -0.0053962343372404575, 0.03481157869100571, -0.044929515570402145, -0.03982655704021454, -0.04073570296168327, -0.004039844032377005, -0.011093074455857277, -0.019209422171115875, 0.0317615307867527, -0.004853678401559591, -0.026893189176917076, -0.029561979696154594, 0.0082849794998765, -0.014810317195951939, -0.010095943696796894, 0.017068523913621902, 0.013204644434154034, 0.031233638525009155, -0.03445965051651001, -0.010462536476552486, 0.019561350345611572, 0.002351687755435705, -0.027333101257681847, 0.018666865304112434, -0.024327045306563377, -0.012016885913908482, 0.013681214302778244, 0.026555925607681274, -0.05504745617508888, -0.007383163087069988, 0.002344355918467045, -0.015008277259767056, 0.021878210827708244, -0.002896076999604702, -0.0039042048156261444, 0.026819871738553047, -0.02291933260858059, 0.01646731235086918, 0.021291663870215416, 0.0433751679956913, 0.03460628539323807, -0.0001539686491014436, -0.005506211891770363, 0.010557849891483784, -0.019561350345611572, -0.0010961100924760103, -0.0075737908482551575, 0.02462031878530979, 0.00565284863114357, -0.02294865995645523, -0.006979912053793669, -0.05607391521334648, 0.007053230423480272, 0.00720719899982214, 0.0002046041627181694, 0.01601273939013481, 0.011027087457478046, 0.005579530261456966, 0.020646462216973305, -0.041820816695690155, 0.017288479954004288, -0.02489892952144146, 0.014348411001265049, 0.00381622277200222, 0.007031234912574291, 0.008328970521688461, -0.009032826870679855, -0.005326582118868828, 0.013036011718213558, -0.020470498129725456, 0.002155561000108719, -0.014861640520393848, 0.014956953935325146, 0.015836775302886963, -0.01844690926373005, -0.004344115499407053, 0.009912648238241673, 0.03501686826348305, -0.029943235218524933, 0.004003184847533703, -0.004611727315932512, -0.001837542513385415, 0.0215116199105978, -0.006015774793922901, -0.01137168426066637, -0.01005928497761488, -0.006202736869454384, -0.0021757236681878567, -0.0032150119077414274, -0.005891133565455675, -0.013233971782028675, -0.013659218326210976, -0.020705116912722588, 0.01505959965288639, -0.01504493597894907, -0.03469426929950714, -0.013101998716592789, 0.0069945757277309895, 0.026101350784301758, -0.03575005382299423, -0.01314598973840475, -0.005810483358800411, -0.011921572498977184, 0.019238749518990517, 0.008013701066374779, -0.01898946613073349, 0.009678029455244541, 0.014011146500706673, -0.007522467989474535, -0.004314788151532412, -0.0093920873478055, 1.4950080185371917e-05, 0.005132288206368685, -0.0018467073095962405, 0.016144711524248123, 0.0030097204726189375, 0.017669735476374626, 0.015822110697627068, 0.01662861369550228, 0.005737164989113808, -0.011027087457478046, -0.003392809070646763, 0.009223454631865025, 0.03363848477602005, 0.021394310519099236, 0.006690304260700941, 0.011012423783540726, -0.0069945757277309895, -0.007779082283377647, -0.0012299162335693836, 0.014106460846960545, -0.00944341067224741, 0.003504619700834155, -0.0026247987989336252, 0.03337453678250313, 0.015103590674698353, 0.01205354556441307, -0.01898946613073349, -0.003966525662690401, 0.005799485836178064, 0.04463624209165573, -0.021804893389344215, 0.02217148430645466, 0.011547648347914219, -0.011943567544221878, 0.016965879127383232, 0.012632761150598526, -0.012376146391034126, 0.008380293846130371, -0.07466746121644974, -0.009098813869059086, -0.0274944007396698, -0.010924441739916801, 0.029957899823784828, -0.0060927593149244785, 0.006583992391824722, -0.0009485568152740598, -0.008849531412124634, 0.018798837438225746, 0.004351447336375713, -0.03275866061449051, -0.03610198199748993, 0.012082872912287712, -0.029122069478034973, 0.02811027504503727, -0.0022068838588893414, -0.021570274606347084, -0.022670049220323563, -0.0023828481789678335, 0.00826298352330923, 0.013365944847464561, 0.045516062527894974, 0.0047253710217773914, -0.00810901541262865, -0.01241280511021614, -0.018564218655228615, 0.01286004763096571, 0.012764734216034412, 0.021540947258472443, -0.011408342979848385, 0.01595408469438553, -0.007159541826695204, 0.01490563154220581, 0.010594509541988373, 0.048859383910894394, -0.02643861621618271, 0.01960534043610096, -0.0029895578045397997, 0.0372164212167263, 0.031820185482501984, -0.02346188947558403, -0.011723612435162067, 0.0179336816072464, 0.008123679086565971, 0.014011146500706673, -0.00674529280513525, 0.015367536805570126, -0.00826298352330923, 0.014260428957641125, 0.012251504696905613, -0.02415108121931553, -0.034342341125011444, -0.011349688284099102, -0.03366781026124954, -0.0005498880054801702, 0.013717873021960258, 0.000322371837683022, 0.01731780730187893, -0.04381507635116577, -0.01703919656574726, 0.0379202775657177, -0.01327063050121069, 0.02366718091070652, 0.014788322150707245, 0.0010209587635472417, -0.01314598973840475, -0.0021922201849520206, -0.018021663650870323, -0.01483964454382658, -0.0032205109018832445, 0.014546371065080166, -0.016027402132749557, 0.027685029432177544, -0.0009316019713878632, -0.0017532262718304992, 0.010220585390925407, -0.010931774042546749, 0.01203888189047575, -0.003077539848163724, 0.014297088608145714, -0.011745608411729336, 0.0029950567986816168, -0.051557499915361404, -0.0032571700867265463, -0.02114502713084221], "id": 94}, {"title": "Cricket poetry", "text": "The game of cricket has inspired much poetry, most of which romanticises the sport and its culture.", "vector": [-0.0013973518507555127, 0.011464058421552181, -0.027261095121502876, 0.05063745006918907, -0.027315428480505943, 0.05960223823785782, -0.02391967549920082, -0.03827691450715065, -0.023580100387334824, -0.01996702142059803, 0.012829150073230267, 0.015335215255618095, -0.00465218024328351, -0.027804415673017502, -0.0011511598713696003, -0.031648408621549606, 0.03338703140616417, 0.014085578732192516, -0.033495694398880005, -0.027274679392576218, -0.006485885940492153, 0.04588339850306511, 0.003484041430056095, -0.029420794919133186, 0.04292230308055878, 0.03254488483071327, -0.0291491337120533, -0.004587660543620586, -0.012937814928591251, 0.013046478852629662, 0.006146310828626156, 0.004356749821454287, 0.05574466288089752, -0.013746003620326519, -0.015824204310774803, 0.003579122480005026, -0.00483215507119894, 0.03412051498889923, 0.004302417393773794, -0.06470944732427597, -0.027193181216716766, -0.01688367873430252, 0.06976232677698135, 0.007103912997990847, -0.003721744054928422, -0.009732224978506565, -0.013895416632294655, -0.01231978740543127, 0.013026104308664799, -0.015158636495471, 0.08247601985931396, -0.01343359425663948, -0.004788009915500879, 0.005433203186839819, 0.00360968429595232, 0.00660813320428133, 0.021488318219780922, -0.021366070955991745, 0.03667411953210831, -0.031268082559108734, -0.042623478919267654, -0.008170179091393948, 0.02549530565738678, -0.040749020874500275, 0.02363443374633789, -0.03509848937392235, -0.009535270743072033, -0.029638122767210007, 0.008822163566946983, 0.0008820465300232172, 0.002821869682520628, 0.027166014537215233, -0.02656836248934269, 0.02966528758406639, 0.025087814778089523, -0.00793926790356636, 0.02643253281712532, 0.03259921818971634, -0.0060648126527667046, 0.016842929646372795, -0.003229360096156597, -0.004478996619582176, -0.05090911313891411, 0.027736501768231392, -0.011185606941580772, -0.018581554293632507, 0.030480269342660904, -0.03993404284119606, 0.03172990679740906, 0.06367713958024979, 0.027057351544499397, 0.03482683002948761, 0.0341748483479023, 0.01687009446322918, -0.04914332181215286, 0.018989045172929764, 0.002329485723748803, 0.015009223483502865, 0.018404975533485413, 0.005979918874800205, 0.05536433681845665, -0.016530519351363182, -0.018228396773338318, -0.04751335829496384, -0.012469200417399406, -0.014954891055822372, -0.07595618069171906, -0.0323275588452816, 0.04512275010347366, -0.029692454263567924, 0.006231204606592655, -0.026486864313483238, 0.017399832606315613, -0.03599496930837631, 0.013229848816990852, -0.01457456685602665, 0.027179596945643425, -0.00285412953235209, -0.0007165036513470113, 0.027980994433164597, -0.044552262872457504, 0.009229653514921665, -0.018703801557421684, 0.019804025068879128, 0.02800816111266613, 0.018282728269696236, -0.03528865426778793, -0.016340358182787895, 0.033441364765167236, -0.0015756288776174188, -0.01687009446322918, -0.0015467649791389704, 0.01961386203765869, 0.029040470719337463, 0.03757059946656227, 0.035859137773513794, -0.04191716015338898, -0.05574466288089752, 0.03355002775788307, -0.011185606941580772, 0.009148155339062214, 0.0032480366062372923, 0.028687311336398125, 0.024150587618350983, 0.0029543042182922363, 0.007789854891598225, -0.01572912186384201, -0.030507434159517288, -0.016340358182787895, 0.04561173915863037, -0.017182504758238792, 0.023240525275468826, 0.018133314326405525, -0.028904639184474945, -0.04995829984545708, 0.04102068394422531, 0.021379653364419937, -0.011212772689759731, 0.017033090814948082, 0.031213751062750816, -0.017535662278532982, -0.015172218903899193, 0.0017793739680200815, -0.017929568886756897, 0.05710296332836151, -0.027396926656365395, -0.06345981359481812, -0.026391783729195595, 0.004316000733524561, 0.007681190501898527, 0.0070020402781665325, 0.02879597619175911, 0.007273700553923845, 0.019708944484591484, -0.004261668771505356, -0.011178814806044102, -0.022792287170886993, -0.03297954052686691, -0.0015671395231038332, 0.04167266562581062, -0.03588630631566048, -0.03814108297228813, -0.00016671018966007978, -0.0542776994407177, -0.039173394441604614, 0.0768798217177391, 0.02118949219584465, 0.03863007202744484, 0.02836131863296032, 0.03765209764242172, 0.013155142776668072, -0.0019933064468204975, 0.0019440678879618645, -0.05161542817950249, 0.04042302817106247, 0.016421856358647346, 0.004777822643518448, -0.009229653514921665, -0.007796646095812321, -0.03322403505444527, 0.03023577481508255, 0.013345304876565933, 0.028252655640244484, -0.045204248279333115, 0.012000586837530136, 0.06889301538467407, -0.013094019144773483, 0.032273225486278534, 0.014248575083911419, -0.0020866894628852606, 0.0017284377245232463, 0.04903465509414673, -0.009100615046918392, 0.016897261142730713, -0.021855058148503304, -0.002769235521554947, 0.002156302332878113, 0.044117607176303864, -0.02449016273021698, -0.035234320908784866, 0.015253717079758644, 0.009317942894995213, -0.028850307688117027, 0.006723588798195124, -0.07579318434000015, -0.030779095366597176, -0.053598545491695404, -0.004733677953481674, -0.052185915410518646, -0.01407199539244175, 0.04343845695257187, 0.009229653514921665, -0.05196858569979668, -0.028632979840040207, 0.004261668771505356, 0.0291491337120533, 0.0020866894628852606, -0.007626858539879322, 0.027233930304646492, 0.057917945086956024, 0.03871157020330429, -0.0028592231683433056, 0.015674790367484093, -0.019858356565237045, -0.031920067965984344, -0.0007716846303083003, -0.0032259642612189054, -0.02053750678896904, -0.04281364008784294, -0.025807714089751244, 0.030561767518520355, 0.00023642921587452292, -0.02893180586397648, 0.020157182589173317, 0.02435433305799961, 0.007239743135869503, 0.06862135231494904, -0.013644130900502205, 0.007368781603872776, 0.018119731917977333, 0.02068692073225975, 0.0007534324540756643, 0.016340358182787895, -0.009759390726685524, -0.028415651991963387, 0.015158636495471, 0.031702738255262375, 0.016286026686429977, -0.02548172138631344, 0.05802660807967186, 0.014397988095879555, -0.0723702609539032, 0.003200496081262827, -0.008394298143684864, -0.025305142626166344, 0.03708161041140556, 0.010058216750621796, -0.003380470909178257, 0.023240525275468826, 0.00624818354845047, 0.04034153372049332, 0.004720095079392195, 0.11529256403446198, 0.013114393688738346, -0.05384304001927376, -0.018649470061063766, -0.02038809470832348, 0.00041237162076868117, -0.03287087753415108, -0.041319508105516434, 0.03238188847899437, 0.0038168251048773527, -0.006017272360622883, 0.007952851243317127, 0.024965567514300346, 0.02923063188791275, -0.01615019515156746, -9.773398051038384e-05, -0.007477445527911186, 0.02117590792477131, 0.00782381184399128, 0.0032123811542987823, -0.012801984325051308, 0.05237607657909393, -0.02068692073225975, -0.046997204422950745, 0.06552442908287048, 0.030561767518520355, -0.013053270056843758, -0.013121184892952442, -0.04612789303064346, -0.013121184892952442, 0.02004851959645748, -0.011864757165312767, -0.026975853368639946, 0.03297954052686691, -0.006231204606592655, 0.020741252228617668, -0.037380434572696686, -0.034229177981615067, 0.0067439633421599865, -0.014248575083911419, -0.009813723154366016, 0.019776858389377594, 0.055473003536462784, 0.008176970295608044, 0.01063549518585205, -0.04762202501296997, 0.011586305685341358, 0.012224706821143627, -0.010560788214206696, 0.004492579493671656, 0.025943543761968613, -0.03757059946656227, 0.01623169332742691, 0.04400894418358803, 0.05579899623990059, -0.05134376883506775, -0.00944019015878439, -0.026907937601208687, -0.035859137773513794, 0.032436221837997437, -0.010750950314104557, 0.03129524737596512, 0.02944795973598957, -0.0020153787918388844, 0.000795879343058914, -0.0341748483479023, 0.03425634652376175, -0.0313224159181118, 0.0006001991569064558, 0.06737171858549118, -0.06394879519939423, 0.0008578518172726035, 0.011953046545386314, 0.01902979426085949, 0.044986922293901443, -0.08611626923084259, 0.008149804547429085, -0.03504415974020958, 0.01923353783786297, -0.0161637794226408, -0.015280883759260178, -0.0788901075720787, 0.03556031361222267, -0.028415651991963387, 0.0029339296743273735, -0.03776076063513756, 0.04023286700248718, -0.017902404069900513, -0.03488116338849068, 0.026052208617329597, -0.016353940591216087, -0.03911906108260155, -0.0283069871366024, -0.030290106311440468, -0.019858356565237045, -0.009874846786260605, -0.01693801023066044, -0.00310711283236742, -0.008224510587751865, -0.034582335501909256, 0.04289513826370239, 0.007389156147837639, -0.05550016835331917, -0.002670758869498968, 0.027030184864997864, -0.007817020639777184, -0.012686529196798801, 0.016842929646372795, 0.02311827801167965, 0.025087814778089523, -0.011307853274047375, 0.004088485147804022, 0.015498211607336998, 0.05867859348654747, 0.03640246018767357, -0.013277390040457249, -0.009311151690781116, -0.02557680383324623, -0.003020521253347397, -0.003928884863853455, -0.04775785282254219, 0.00944019015878439, 0.021922973915934563, -0.025250811129808426, 0.01752207987010479, 0.019980603829026222, -0.03588630631566048, -0.003647037548944354, 0.007952851243317127, 0.0525934062898159, -0.019831189885735512, -0.0060580214485526085, 0.03360436111688614, 0.00804793182760477, -0.002565490547567606, 0.04332979395985603, 0.004862716421484947, -0.025033483281731606, 0.003431407269090414, 0.017345501109957695, -0.022357629612088203, -0.00821771938353777, -0.03892889991402626, 0.04509558528661728, -0.015430296771228313, 0.020877081900835037, 0.004353353753685951, -0.01127389632165432, -0.025549637153744698, 0.025807714089751244, 0.04544874280691147, 0.050528787076473236, 0.03322403505444527, -0.05797227472066879, -0.03604930266737938, 0.05104494094848633, 0.04134667292237282, 0.019831189885735512, 0.0024279626086354256, -0.03058893233537674, -0.01145726628601551, -0.05824393406510353, -0.02792666293680668, 0.014316489920020103, -0.01623169332742691, -0.017929568886756897, -0.03197439759969711, -0.02980111911892891, 0.05006696656346321, -0.007891727611422539, -0.0433841273188591, 0.008482588455080986, 0.03746193274855614, -0.004159796051681042, -0.0291491337120533, 0.010295920073986053, -0.033006709069013596, 0.030643263831734657, -0.030561767518520355, 0.03933639079332352, -0.014982056804001331, -0.053326886147260666, -0.058787256479263306, -0.02534589171409607, 0.025237226858735085, 0.04778502136468887, -0.014221408404409885, -0.003108810866251588, -0.03729894012212753, -0.04259631037712097, -0.09768898785114288, 0.03569614514708519, -0.015484628267586231, -0.0525934062898159, 0.0564509779214859, 0.004088485147804022, -0.02556321956217289, -0.00501212989911437, -0.002672456670552492, 0.008129430003464222, -0.026446115225553513, 0.02779083326458931, 0.02457166090607643, 0.015688372775912285, -0.015783455222845078, -0.03944505378603935, 0.004723490681499243, 0.022968865931034088, -0.03697294741868973, -0.022058803588151932, -0.00031686609145253897, -0.018948296085000038, -0.026731358841061592, 0.02284661866724491, 0.01213641744107008, -0.014289324171841145, -0.009976718574762344, 0.009847680106759071, -0.0061361235566437244, -0.04066752269864082, 0.0003612230939324945, 0.03352286294102669, -0.022276131436228752, 0.022928116843104362, 0.033278368413448334, 0.04373728483915329, -0.0311594195663929, 0.05313672497868538, 0.04946931451559067, 0.05737462267279625, -0.025468138977885246, -0.012285830453038216, -0.008489379659295082, 0.006479094736278057, 0.05998256057500839, 0.022588541731238365, 0.00611914461478591, -0.014099162071943283, -0.018703801557421684, 0.015960033982992172, 0.019573112949728966, 0.011735718697309494, -0.01593286730349064, 0.018866797909140587, 0.03871157020330429, 0.002382119884714484, -0.07209860533475876, -0.01446590293198824, -0.0009592999122105539, 0.024734657257795334, 0.03308820724487305, -0.04544874280691147, -0.02398759126663208, 0.007626858539879322, 0.0050664618611335754, -0.03879306837916374, -0.0075114029459655285, -0.011674595065414906, -0.05550016835331917, 0.01954594813287258, -0.02478898875415325, 0.00034042412880808115, 0.014099162071943283, 0.02743767574429512, -0.01037741731852293, 0.02334919013082981, -0.028035327792167664, -0.008536919951438904, 0.0017233440885320306, -0.021800726652145386, 0.014275740832090378, -0.011335019953548908, -0.022588541731238365, 0.005338122136890888, -0.054196201264858246, 0.014859810471534729, -0.0005021467804908752, -0.01681576296687126, 0.007063163910061121, 0.015212967991828918, -0.005147960036993027, 0.040830519050359726, 0.007531777489930391, 0.0035859139170497656, 0.02579413168132305, -0.02758708782494068, 0.027301844209432602, -0.04653538390994072, 0.00944019015878439, 0.0584612637758255, 0.04553024098277092, -0.01446590293198824, -0.008564086630940437, -0.023743096739053726, -0.019478032365441322, 0.023797428235411644, 0.013053270056843758, -0.015212967991828918, -0.014751145616173744, 0.01396333146840334, 0.00664548622444272, 0.0028677124064415693, -0.01708742417395115, -0.02053750678896904, 0.002494179643690586, 0.02196372300386429, -0.02398759126663208, 0.014479486271739006, -0.027166014537215233, -0.003200496081262827, -0.008244885131716728, -0.0291491337120533, 0.00624818354845047, 0.01360338181257248, 0.0044348519295454025, -0.018500056117773056, -0.0014397987397387624, -0.0252100620418787, 0.04580190032720566, 0.0007148057920858264, -0.012190748937427998, 0.029773952439427376, 0.027464840561151505, 0.007097121328115463, 0.013141559436917305, -0.010370626114308834, 0.013311346992850304, 0.02182789333164692, -0.051751259714365005, -0.022955281659960747, 0.0003085889620706439, 0.017128173261880875, -0.03477250039577484, -0.0291491337120533, -0.0036572248209267855, 0.017114588990807533, 0.004271856043487787, 0.005844088736921549, 0.027899498119950294, -0.015321631915867329, -0.016123030334711075, -0.03746193274855614, 0.054196201264858246, -0.020279429852962494, -0.006163289770483971, -0.0034976243041455746, 0.006305911112576723, 0.0075114029459655285, 0.00448578828945756, 0.02284661866724491, -0.02190939150750637, 0.02893180586397648, -0.007008831948041916, 0.013426803052425385, 0.005949357058852911, 0.000777202716562897, -0.0008052176563069224, -0.017046675086021423, -0.0020866894628852606, -0.02341710403561592, 0.002565490547567606, -0.03175707161426544, -0.021298155188560486, 0.010397791862487793, -0.018649470061063766, 0.03001844696700573, 0.02276512049138546, 0.04596489667892456, 0.0007610729080624878, 0.010533622466027737, -0.0023906093556433916, 0.022493461146950722, 0.026826439425349236, 0.049306318163871765, 0.013698463328182697, -0.02334919013082981, 0.015851369127631187, 0.0027182993944734335, 0.030697597190737724, -0.0004626711888704449, 0.009277193807065487, -0.01973610930144787, 0.0110565684735775, 0.015443879179656506, -0.032653551548719406, 0.013630547560751438, 0.024585243314504623, -0.039254892617464066, -0.007395947352051735, 0.008380715735256672, -0.004139421507716179, -0.03914622589945793, 0.03330553323030472, 0.0062651620246469975, -0.0331697054207325, -0.016612017527222633, -0.00148479244671762, 0.019763275980949402, -0.02412342093884945, -0.02233046479523182, -0.022805869579315186, -0.05617931857705116, 0.027233930304646492, -0.012034544721245766, 0.03814108297228813, -0.02743767574429512, -0.0011503109708428383, -0.013114393688738346, -0.022656455636024475, 0.019491614773869514, -0.017359083518385887, 0.04246048256754875, 0.0544406920671463, 0.03230039030313492, -0.013005729764699936, 0.003392356215044856, -0.00796643365174532, -0.001701271627098322, -0.03474533185362816, 0.0011503109708428383, 0.009745807386934757, -0.00855050329118967, -0.01213641744107008, 0.027532756328582764, -0.0034076368901878595, 0.006611528806388378, -0.012523532845079899, 0.002151208696886897, -0.0020034934859722853, 0.016136612743139267, 0.012944606132805347, 0.013189099729061127, 0.03355002775788307, -0.014289324171841145, 0.0019746297039091587, -0.00023982497805263847, -0.01688367873430252, 0.028605813160538673, 0.0033295347820967436, 0.027845164760947227, -0.02663627825677395, -0.006003689486533403, 0.007980016991496086, 0.0683496966958046, -0.0037251398898661137, -0.003776076016947627, -0.002298923907801509, -0.003360096365213394, -0.01443873718380928, -0.0010798490839079022, -0.002616426907479763, 0.014262157492339611, 0.014628899283707142, 0.013420010916888714, -0.002888086950406432, -0.0064383456483483315, -0.044552262872457504, 0.020646171644330025, -0.01623169332742691, -0.027980994433164597, -0.02685360610485077, 0.004326188005506992, 0.04588339850306511, 0.011042985133826733, 0.015769870951771736, 0.0035519564989954233, 0.001264068647287786, -0.033061038702726364, 0.005599594675004482, -0.031213751062750816, 0.0505831204354763, -0.0026435928884893656, -0.004923840053379536, 0.0025400223676115274, -0.012897065840661526, 0.012414868921041489, -0.009643935598433018, 0.019016209989786148, -0.021488318219780922, 0.05954790487885475, 0.027166014537215233, -0.006638695020228624, -0.00723295146599412, 0.018567971885204315, -0.03246338665485382, 0.02189580723643303, -0.017033090814948082, -0.005358496215194464, -0.018866797909140587, 0.016503354534506798, 0.010839239694178104, 0.03857574239373207, -0.012557490728795528, -0.03748910129070282, -0.015824204310774803, -0.030290106311440468, -0.004105464089661837, 0.0038202209398150444, -0.012815567664802074, 0.019002627581357956, -0.04433493688702583, 0.00797322578728199, -0.02398759126663208, -0.007497820071876049, 0.014031246304512024, -0.006197247188538313, -0.031186584383249283, -0.009868054650723934, 0.006954499986022711, 0.02664986066520214, -0.00339405401609838, -0.003864365629851818, 0.008102264255285263, -0.010927529074251652, 0.02569904923439026, -0.0012674643658101559, -0.025087814778089523, -0.05395170673727989, -0.044552262872457504, 0.011593096889555454, 0.022113136947155, 0.00023133559443522245, 0.013528675772249699, 0.012082085013389587, -0.04012420400977135, -0.041754163801670074, 0.014601732604205608, 0.0008701613987796009, 0.05137093365192413, 0.006030855234712362, 0.024748239666223526, -0.062373168766498566, 0.0025790734216570854, 0.02318619377911091, 0.04006987065076828, -0.0021987492218613625, 0.0267177764326334, 0.04379161447286606, 0.009935969486832619, -0.02405550703406334, 0.022031638771295547, 0.029393628239631653, -0.022574957460165024, 0.024829737842082977, 0.04107501357793808, -0.0012199238408356905, 0.0029033678583800793, -0.0006405236781574786, 0.0016112842131406069, -0.03857574239373207, 0.023539351299405098, -0.01730475202202797, 0.0040511321276426315, 0.03977104648947716, 0.033278368413448334, -0.004251481499522924, -0.00019748418708331883, -0.017780156806111336, 0.008163387887179852, 0.004923840053379536, 0.007165036629885435, -0.022778702899813652, -0.0343378409743309, 0.001136727980338037, -0.0028269633185118437, 0.011267104186117649, -0.03412051498889923, -0.0007385760545730591, -0.009073449298739433, 0.030860593542456627, 0.04797518253326416, 0.014357239007949829, -0.05169692635536194, -0.00721936859190464, 0.05884158983826637, 0.036728452891111374, 0.016027947887778282, -0.005127585493028164, -0.010289127938449383, 0.03211022913455963, 0.0026249161455780268, -0.015756288543343544, 0.02083633281290531, 0.018146898597478867, 0.05270206928253174, 0.019342202693223953, 0.01310081034898758, -0.04251481220126152, -0.0564509779214859, 0.02463957481086254, 0.006995248608291149, -0.01507713831961155, 0.024014757946133614, -0.002930533839389682, 0.03947221860289574, -0.0018303102115169168, 0.009379066526889801, -0.003193704644218087, 0.011953046545386314, -4.650588380172849e-05, -0.034799665212631226, -0.005304164253175259, -0.041618335992097855, 0.053462717682123184, -0.021814309060573578, 0.02018434926867485, -0.0030833426862955093, -0.008353549987077713, 0.005229457747191191, 0.00671679712831974, -0.018038233742117882, 0.03346852958202362, -0.038602907210588455, 0.0018303102115169168, -0.020143600180745125, -0.005643739365041256, -0.016421856358647346, -0.03431067615747452, 0.011987004429101944, -0.025373058393597603, -0.020496757701039314, -0.005487535148859024, 0.03811391815543175, -0.010248378850519657, -0.0052430410869419575, -0.010234796442091465, 0.04661688208580017, 0.0033176494762301445, -0.018554387614130974, 0.020360928028821945, 0.03455517068505287, 0.0015781756956130266, 0.036239463835954666, -0.007185410708189011, 0.010105757042765617, -0.0036809949669986963, 0.02018434926867485, 0.012761235237121582, 0.040613193064928055, -0.014452319592237473, -0.04960514232516289, 0.01346076000481844, -0.0004715850518550724, 0.01019404735416174, 0.026826439425349236, -0.019410118460655212, -0.030480269342660904, -0.018649470061063766, 0.02584846317768097, -0.0028286613523960114, 0.022737953811883926, 0.021433984860777855, -0.013134768232703209, 0.008122638799250126, 0.02485690265893936, -0.03743476793169975, -0.008598043583333492, -0.06590475142002106, -0.014778312295675278, -0.05063745006918907, 0.023376354947686195, -0.022968865931034088, 0.04892599210143089, -0.03640246018767357, 0.020632587373256683, 0.03295237571001053, -0.034500837326049805, -0.01738625019788742, -0.0030544789042323828, -0.005144563969224691, 0.00476084416732192, 0.015321631915867329, 0.0056335520930588245, 0.02844281680881977, -0.011796842329204082, -0.01923353783786297, -0.023648016154766083, 0.011824008077383041, -0.026242369785904884, -0.025468138977885246, -0.01701950840651989, 0.0007131078746169806, 0.022737953811883926, 0.045068416744470596, -0.018364226445555687, -0.010187255218625069, -0.011586305685341358, 0.015226551331579685, -6.727833533659577e-05, -0.012401285581290722, -0.05737462267279625, -0.007212576922029257, -0.016041532158851624, 0.008210928179323673, 0.0007143812836147845, -0.0028082868084311485, 0.024177752435207367, 0.018690217286348343, -0.0010017467429861426, 0.02598429284989834, -0.03914622589945793, 0.01752207987010479, 0.00916173867881298, 0.0033465134911239147, -0.020279429852962494, -0.02492481842637062, -0.001428762567229569, 0.03172990679740906, -0.04126517474651337, -0.019654611125588417, -0.01152518205344677, -0.002694529015570879, -0.027315428480505943, 0.0056301564909517765, 0.015987198799848557, 0.007491028402000666, -0.03843991085886955, -0.02988261543214321, 0.010309502482414246, 0.021922973915934563, 0.01810614950954914, 0.003928884863853455, -0.015362381003797054, 0.008380715735256672, -0.004886487033218145, 0.05998256057500839, 0.04895315691828728, 0.008210928179323673, -0.018554387614130974, 0.037516266107559204, -0.013637339696288109, 0.004010383039712906, 0.03865724056959152, -0.022996030747890472, -0.03721744194626808, -0.025033483281731606, -0.03053460083901882, 0.024150587618350983, -0.010289127938449383, -0.011844382621347904, -0.0034415945410728455, -0.01968177780508995, 0.015688372775912285, 0.01310081034898758, -0.04770352318882942, 0.009358691982924938, 0.014425153844058514, -0.007572526577860117, 0.042052991688251495, -0.012061710469424725, -0.005606386344879866, 0.016408272087574005, -0.024530911818146706, 0.012020961381494999, 0.04186283051967621, 0.011749301105737686, -0.001011934014968574, -0.010730575770139694, -0.004190357867628336, 0.01738625019788742, 0.01257107313722372, 0.008699916303157806, 0.007613275665789843, 0.0029424189124256372, 0.005175125785171986, 0.027125265449285507, -0.0025773756206035614, -0.022724371403455734, 0.00897157657891512, 0.03409335017204285, 0.017331916838884354, 0.009725432842969894, -0.02822548896074295, -0.019858356565237045, 0.016421856358647346, 0.015634041279554367, -0.011267104186117649, 0.022248966619372368, 0.010730575770139694, -0.014914141967892647, 0.0010509851854294538, -0.02261570654809475, -0.0028456400614231825, 0.004203940741717815, 0.042052991688251495, -0.0014423455577343702, 0.03140391409397125, -0.015837786719202995, 0.044063277542591095, 0.0024075880646705627, 0.02591637894511223, -0.019070541486144066, 0.024082671850919724, -0.005090232007205486, -0.012706903740763664, 0.03797809034585953, 0.037516266107559204, 0.03814108297228813, -0.022303298115730286, -0.027383342385292053, -0.0038202209398150444, -0.007334824185818434, -0.02993694879114628, -0.027451258152723312, 0.01159988809376955, -0.0012199238408356905, 0.022574957460165024, -0.0027896100655198097, -0.003647037548944354, 0.023933259770274162, 0.004709907807409763, -0.015769870951771736, 0.0005136074614711106, 0.011783258989453316, -0.04251481220126152, 0.0393635556101799, -0.03151257708668709, 0.01782090589404106, -0.00014431944873649627, -0.030072778463363647, -0.0281439907848835, 0.009786556474864483, -0.021420402452349663, 0.016353940591216087, 0.015742706134915352, -0.007538569159805775, -0.036375295370817184, -0.021719228476285934, 0.001552707515656948, 0.02262929081916809, 0.04110218212008476, 0.004244689829647541, -0.0007657420355826616, 0.014493068680167198, -0.00502571277320385, 0.019423700869083405, -0.0018914337269961834, -0.02333560585975647, -0.00448578828945756, 0.0025162522215396166, -0.008509754203259945, -0.016068696975708008, -0.05438636243343353, 0.00897157657891512, 0.00628553656861186, -0.006784712430089712, -0.03531581908464432, 0.0054501816630363464, -0.011987004429101944, 0.010255170986056328, -0.02038809470832348, 0.0323275588452816, 0.0008353549637831748, 0.01665276661515236, 0.020374510437250137, 0.022099552676081657, 0.020795583724975586, -0.014031246304512024, -0.009480939246714115, -0.014139911159873009, -0.024245668202638626, -0.005949357058852911, 0.00018305225239600986, -0.030344437807798386, 0.010166880674660206, -0.000542471359949559, -0.02190939150750637, 0.051751259714365005, -0.01504997257143259, -0.017141755670309067, -0.016476187855005264, 0.022574957460165024, 0.03303387388586998, 0.0064417412504553795, 0.0020866894628852606, -0.006013876758515835, 0.025970710441470146, -0.010547204874455929, 0.02866014651954174, 0.02089066617190838, 0.0066930269822478294, -0.0019933064468204975, 0.00037926304503344, -0.032653551548719406, 0.026622693985700607, 0.007708356715738773, -0.025318725034594536, -0.007783063221722841, -0.009895221330225468, 0.02298244833946228, -0.04126517474651337, -0.0003056176647078246, -0.02936646156013012, 0.005535075441002846, -0.028741642832756042, -0.06579608470201492, -0.04574757069349289, -0.006513052154332399, 0.0053788707591593266, -0.037597764283418655, 0.02291453257203102, 0.004696324933320284, -0.022113136947155, -0.007239743135869503, 0.00010309290519217029, -0.04224315285682678, 0.03713594377040863, 0.012109250761568546, 0.04178133234381676, 0.0021274385508149862, -0.013807127252221107, -0.003198798280209303, -0.002981470199301839, 0.009861263446509838, 0.010547204874455929, -0.01242845132946968, 0.018146898597478867, 0.022656455636024475, -0.00843504723161459, -0.026174455881118774, 0.006390804890543222, 0.005351705010980368, 0.00014325827942229807, 0.04093918576836586, 0.031186584383249283, -0.013583007268607616, -0.0037353269290179014, 0.0031139045022428036, -0.0010441937483847141, -0.008346757851541042, -0.022072387859225273, 0.006703214254230261, -0.02879597619175911, 0.0018642677459865808, 0.0011537066893652081, -0.028958972543478012, -0.043411292135715485, 0.002764142118394375, -0.028823141008615494, -0.03963521495461464, -0.027383342385292053, 0.01738625019788742, -0.016218110918998718, -0.01731833443045616, -0.014710397459566593, -0.056559644639492035, 0.00027017449610866606, 1.4604385796701536e-05, 0.036945778876543045, -0.03221889212727547, 0.037869423627853394, -0.023077528923749924, -0.043139632791280746, 0.021556232124567032, 0.010852823033928871, -0.03509848937392235, -0.025019899010658264, 0.02291453257203102, -0.002220821799710393, -0.02196372300386429, -0.006574175786226988, 0.019858356565237045, -0.009195695631206036, -0.006906959228217602, -0.005810131318867207, -0.014941307716071606, 0.004136025905609131, 0.007029206492006779, -0.018513638526201248, -0.0030833426862955093, -0.005878046620637178, 0.007681190501898527, -0.011314645409584045, 0.003864365629851818, 0.00422091968357563, -0.021012911573052406, -0.022710788995027542, -0.0031139045022428036, -0.0333327017724514, -0.019708944484591484, 0.009895221330225468, 0.009779765270650387, 0.03944505378603935, -0.016408272087574005, -0.017861654981970787, 0.011464058421552181, 0.011531973257660866, 0.00029394475859589875, 0.03425634652376175, -0.040966350585222244, -0.009650726802647114, 0.04156400263309479, 0.04710587114095688, 0.010241587646305561, -0.01030271127820015, 0.003918697591871023, -0.008747456595301628, -0.018500056117773056, -0.006930729374289513, -0.02923063188791275, 0.010499664582312107, -0.007294075097888708, 0.012652571313083172, -0.016408272087574005, 0.002760746283456683, -0.03289804235100746, -0.00423450255766511, -0.005412828642874956, 0.020714085549116135, -0.004923840053379536, 0.005341517738997936, -0.00012330824392847717, -0.024897651746869087, 0.0100514255464077, 0.007314449641853571, 0.008672750554978848, 0.002166489604860544, -0.019124874845147133, -0.019994186237454414, 0.026826439425349236, 0.03330553323030472, -0.027899498119950294, -0.0006719343946315348, 0.011857965029776096, -0.028768809512257576, 0.0033906581811606884, 0.009372275322675705, 0.019708944484591484, 0.030317272990942, 0.015090721659362316, 0.001390560413710773, 0.011464058421552181, -0.01644902117550373, -0.002601145999506116, -0.00915494654327631, -0.02857864834368229, 0.02549530565738678, -0.02226254902780056, 0.026989435777068138, -0.00013487502292264253, -0.00422091968357563, -0.007572526577860117, 0.00879499688744545, 0.015756288543343544, -0.020360928028821945, 0.02313186228275299, -0.04273214191198349, -0.014927725307643414, -0.025196479633450508, -0.018269145861268044, 0.009555645287036896, -0.03849424421787262, -0.03276221454143524, 0.006020667962729931, 0.012183957733213902, -0.010506455786526203, 0.01629960909485817, -0.014194242656230927, -0.011864757165312767, 0.00169702700804919, 1.554617665533442e-05, -0.0018557783914729953, 0.024870486930012703, 0.00538566242903471, -0.0293121300637722, 0.0033550027292221785, -0.03490832820534706, 0.030860593542456627, -0.007063163910061121, -0.005253227893263102, 0.006811878178268671, 0.008890078403055668, -0.02988261543214321, 0.016992341727018356, 0.04911615327000618, 0.013223057612776756, 0.022289715707302094, -0.013847876340150833, 0.009324735030531883, 0.01044533308595419, -0.050012633204460144, -0.013610173016786575, -0.013243432156741619, 0.019084125757217407, -0.007959642447531223, -0.012815567664802074, 0.013053270056843758, 0.009392649866640568, -0.003776076016947627, 0.016530519351363182, -0.014696814119815826, -0.03841274604201317, 0.030860593542456627, 0.005779569502919912, 0.0015977012226358056, -0.009311151690781116, -0.026038624346256256, -0.005368683487176895, 0.005643739365041256, -0.03705444559454918, 0.0025705841835588217, -0.01242845132946968, -0.005575824528932571, -0.026120122522115707, -0.012706903740763664, -0.018771715462207794, 0.009847680106759071, -0.03667411953210831, -0.0034398967400193214, -0.0011469151359051466, 0.04879016429185867, 0.009847680106759071, 0.00012171648268122226, -0.006156498100608587, -0.008054723031818867, -0.040178537368774414, 0.0023549539037048817, -0.012346954084932804, 0.003704765345901251, -0.01780732348561287, 0.005429807119071484, -0.0059357741847634315, -0.006244787480682135, -0.03642962500452995, 0.01788882166147232, -0.005236249417066574, 0.015919284895062447, 0.04881732910871506, 0.012550698593258858, -0.044416435062885284, 0.00075852609006688, -0.01730475202202797, 0.01195983774960041, 0.003701369510963559, 0.0036028926260769367, 0.009868054650723934, -0.049523644149303436, 0.07171827554702759, 0.03186573460698128, 0.023077528923749924, -0.0007296621915884316, -0.013379261828958988, -0.004804988857358694, 0.012577865272760391, 0.0206054225564003, 0.04308529943227768, 0.0010739065473899245, -0.05900458246469498, 0.0005390755832195282, 0.009277193807065487, 0.011925880797207355, 0.015837786719202995, 0.017780156806111336, 0.008835745975375175, -0.06688272953033447, 0.003596101189032197, -0.0075793182477355, -0.010764533653855324, 0.008557294495403767, -0.022670039907097816, 0.007280491758137941, -0.0033821689430624247, 0.026772107928991318, -0.000561572436708957, 0.041401006281375885, 0.03784225881099701, 0.00865916721522808, 0.00698166573420167, -0.006166685372591019, -0.02578054741024971, 0.004618222359567881, 0.0231997761875391, -0.033006709069013596, 0.0005743065266869962, -0.009134572930634022, 0.0022632686886936426, 0.0002784516545943916, 0.01213641744107008, 0.010886779986321926, 0.0180925652384758, 0.011932672001421452, 0.022276131436228752, -0.024150587618350983, 0.05463085696101189, -0.040966350585222244, 0.00734161539003253, 0.017576411366462708, -0.03197439759969711, -0.013311346992850304, -0.03268071636557579, -0.012903857044875622, 0.017399832606315613, -0.008306008763611317, -0.02857864834368229, -0.01586495339870453, -0.028469983488321304, 0.018500056117773056, -0.017494913190603256, 0.006835648324340582, 0.030616099014878273, -0.02713884972035885, -0.012951397337019444, 0.027980994433164597, -0.008523337543010712, -0.01149122416973114, -0.011015819385647774, -0.0027862144634127617, 0.008890078403055668, 0.0072533260099589825, -0.005188708659261465, -0.023933259770274162, 0.015919284895062447, 0.006115749012678862, -0.01518580224364996, -0.005657322704792023, -0.03023577481508255, 0.02262929081916809, 0.016978759318590164, -0.0016426949296146631, -0.00013338937424123287, -0.02118949219584465, -0.002723393030464649, 0.00606820872053504, 0.007884935475885868, -0.03566897660493851, -0.028334153816103935, 0.002641894854605198, 0.008815371431410313, -0.0013837688602507114, 0.006580966990441084, -0.017562828958034515, 0.026812857016921043, -0.008516545407474041, -0.0028965764213353395, 0.002081595826894045, 0.00891045294702053, -0.025957128033041954, -0.0226972047239542, 0.01837780885398388, 0.034066181629896164, 0.010968278162181377, 0.028171157464385033, -0.0005068159662187099, 0.023783845826983452, 0.0011579514248296618, 0.00709032965824008, -0.014411570504307747, 0.0030629681423306465, -0.05406036972999573, 0.0013752795057371259, 0.009827305562794209, 0.03892889991402626, 0.01923353783786297, -0.00785776972770691], "id": 95}, {"title": "Clint Stennett", "text": "W. Clinton \"Clint\" Stennett (October 1, 1956 \u2013 October 14, 2010) was a Democratic politician and a minority leader of the Idaho Senate. Stennett represented District 25, which includes Blaine, Gooding, Camas and Lincoln Counties. Stennett served in the Idaho Senate from 1994 to 2010, but was unable to fulfill his duties after the 2008 session due to poor health. He served as the minority leader from 1999 to 2009.", "vector": [0.035401877015829086, -0.027498804032802582, -0.021522914990782738, -0.010113664902746677, 0.02487524226307869, -0.007089282386004925, 0.02983085811138153, 1.987977339013014e-05, -0.019320419058203697, 0.049135081470012665, -0.007915218360722065, 0.04550744220614433, -0.019530951976776123, 0.007712782826274633, -0.01033229473978281, 0.022008759900927544, -0.02928023412823677, 0.03093210607767105, 0.021296188235282898, -0.02740163542330265, 0.04145873710513115, -0.04026032239198685, -0.041167233139276505, 0.002064839471131563, 0.06464972347021103, 0.027061544358730316, 0.009959814138710499, -0.006052813958376646, -0.029118286445736885, -0.031547509133815765, -0.011376860551536083, 0.007340302225202322, 0.04181502386927605, 0.03909429535269737, 0.024859048426151276, 0.02532869763672352, 0.004963712301105261, -0.002483880380168557, -0.012518595904111862, 0.042495205998420715, -0.019644316285848618, -0.023935943841934204, -0.019530951976776123, -0.01319068018347025, 0.013287849724292755, -0.000880087201949209, -0.010696678422391415, -0.006931382697075605, 0.012154212221503258, 0.01590331271290779, -0.026689061895012856, -0.03381478413939476, -0.024891437962651253, -0.0033280353527516127, 0.05208253860473633, 0.0272234920412302, 0.000954482180532068, 0.0782533660531044, -0.05094890296459198, -0.030219532549381256, -0.031094053760170937, 0.0064576840959489346, -0.04638196527957916, 0.02226787619292736, 0.01695597544312477, 0.022332657128572464, 0.030349092558026314, 0.001865440746769309, -0.04009837284684181, -0.011028672568500042, 0.028988726437091827, -0.0360172800719738, 0.03844650089740753, 0.03770153969526291, 0.03494841977953911, 0.0018522824393585324, -0.016891196370124817, -0.03776631876826286, -0.03588772192597389, 0.008672325871884823, -0.0034515210427343845, -0.03426823765039444, 0.005129708908498287, 0.006077106110751629, -0.0052187805995345116, -0.02612224407494068, 0.03193618357181549, -0.05732966214418411, 0.013846570625901222, 0.023482488468289375, 0.05072217434644699, 0.005639845971018076, 0.004380698781460524, -0.01805722340941429, -0.008137896656990051, -0.024664711207151413, 0.04667346924543381, -0.01695597544312477, -0.007073087617754936, -0.05072217434644699, 0.0059192064218223095, 0.03702135756611824, 0.03423584997653961, 0.0598236620426178, 0.05347529426217079, 0.033879563212394714, -0.02890775352716446, -0.024583736434578896, 0.013563161715865135, 0.07954895496368408, 0.006004229187965393, -0.017652353271842003, -0.02670525759458542, -0.0062309568747878075, 0.026915790513157845, 0.03284309431910515, -0.029863247647881508, 0.06189659982919693, 0.009109586477279663, -0.03977447748184204, -0.0152555201202631, -0.01891554892063141, -0.0330212377011776, -0.019952017813920975, -0.004032509867101908, -0.009190560318529606, -0.02532869763672352, 0.01868882216513157, -0.005745112430304289, 0.003996071871370077, -0.02702915482223034, -0.04048704728484154, -0.037410032004117966, -0.010259417816996574, -0.02602507546544075, 0.004060850944370031, 0.051661472767591476, 0.008664228953421116, 0.01910988800227642, 0.0019646340515464544, 0.03303743153810501, 0.013441700488328934, -0.05593690648674965, 0.03468930348753929, -0.015968091785907745, -0.04210653156042099, 0.04285149276256561, 0.013733207248151302, -0.015239325352013111, 0.008996222168207169, 0.010542827658355236, 0.0031539411284029484, -0.030575819313526154, -0.012745322659611702, 0.029976611956954002, -0.07838292419910431, -0.060730572789907455, 0.003489983733743429, -0.028065621852874756, 0.007486055605113506, -0.02905350551009178, 0.017247483134269714, -0.021603889763355255, 0.025458255782723427, 0.031320780515670776, -0.041167233139276505, 0.0360172800719738, 0.03179043158888817, -0.04732126370072365, 0.022105928510427475, -0.005534579511731863, -0.0539611391723156, 0.02259177342057228, -0.006097349803894758, -0.038835179060697556, -0.017668548971414566, 0.0215391106903553, -0.004538598004728556, 0.008445598185062408, -0.005809891503304243, 0.019320419058203697, 0.003390790428966284, -0.0229156706482172, 0.00151522783562541, -0.015190741047263145, -0.006405051331967115, 0.05927303805947304, -0.002747046295553446, 0.041879802942276, -0.04265715554356575, 0.027709336951375008, -0.04291627183556557, -0.004789617843925953, 0.01786288619041443, 0.03491603210568428, 0.05172625556588173, -0.01289917342364788, 0.009425384923815727, -0.011660270392894745, 0.03279450908303261, 0.020324498414993286, -0.0009651100262999535, 0.00702045438811183, 0.025539230555295944, -0.0059880344197154045, -0.01154690608382225, 0.004898932762444019, -0.0003152928838972002, -0.033199381083250046, -0.011976068839430809, -0.011093451641499996, 0.015304104425013065, -2.584212415968068e-05, 0.03504559025168419, -0.037960655987262726, 0.014275733381509781, 0.016421547159552574, 0.03702135756611824, 0.04184741526842117, 0.008024533279240131, 0.057621169835329056, -0.0007226938032545149, -0.03285928815603256, -0.019919628277420998, 0.011992263607680798, -0.025393476709723473, -0.01718270406126976, 0.02647853083908558, 0.027385439723730087, 0.008745202794671059, -0.04324016720056534, -0.019320419058203697, -0.02515055425465107, 0.04884357750415802, -0.03436540812253952, -0.01642964407801628, 0.030041391029953957, -0.004579085391014814, -0.035855330526828766, -0.016526812687516212, -0.01755518466234207, 0.05502999573945999, -0.031628482043743134, 0.03111024759709835, 0.009287728928029537, 0.017846690490841866, -0.0065427073277533054, -0.022688942030072212, -0.02813040092587471, 0.047353651374578476, -0.03689179942011833, -0.015798047184944153, 0.002599268453195691, 0.010478048585355282, 0.0002546888426877558, -0.02442178875207901, -0.050786953419446945, -0.04003359377384186, 0.01600858010351658, -0.03115883283317089, -0.015287909656763077, -0.0069435290060937405, 0.014162370003759861, 0.030672987923026085, 0.0087047154083848, 0.03423584997653961, -0.01642964407801628, 0.029474571347236633, 0.050365887582302094, -0.003724808571860194, 0.03967730700969696, -0.022688942030072212, 0.023336734622716904, 0.02757977694272995, -0.011247302405536175, 0.011012477800250053, -0.013142095878720284, -0.01901271753013134, -0.07268235087394714, 0.023352930322289467, -0.03180662542581558, -0.013636037707328796, 0.020454056560993195, -0.030122363939881325, -0.02885916829109192, 0.017717132344841957, 0.042268477380275726, -0.024891437962651253, 0.028648635372519493, -0.004575036466121674, -0.031191222369670868, 0.026365166530013084, 0.034300629049539566, 0.032697342336177826, 0.0022612016182392836, 0.019725291058421135, -0.02680242620408535, 0.02497241273522377, 0.030721573159098625, -0.0045547932386398315, -0.005020393989980221, 0.002083058701828122, 0.040389880537986755, -0.03880278766155243, 0.008720910176634789, 0.02327195554971695, 0.005307852290570736, -0.009020514786243439, 0.0004327053320594132, -0.0020709126256406307, -0.06011516973376274, 0.005020393989980221, 0.026332776993513107, 0.033879563212394714, 0.010000301524996758, -0.00504063768312335, 0.002067876048386097, 0.0015466052573174238, -0.010704775340855122, -0.009401093237102032, 0.008510377258062363, 0.0014656311832368374, 0.03676224127411842, -0.007044746540486813, 0.025004802271723747, -0.04887596517801285, -0.011538809165358543, 0.02923164889216423, -0.04732126370072365, 0.010437561199069023, -0.05405830964446068, -0.0317094586789608, 0.022300265729427338, -0.03527231886982918, -0.02923164889216423, 0.018397314473986626, -0.04320777952671051, -0.007453665602952242, 0.03728047385811806, 0.026510920375585556, -0.008405111730098724, -0.038640838116407394, -0.011109646409749985, 0.0044171372428536415, -0.010251320898532867, -0.013984226621687412, 0.0743018314242363, 0.007105477154254913, 0.01727987267076969, 0.005226877983659506, 0.000804173992946744, 0.015061181969940662, -0.01317448541522026, -0.0016984316753223538, 0.01157119870185852, 0.0248266588896513, -0.05017155036330223, -0.0011771610006690025, 0.02116663008928299, 0.055645398795604706, 0.029199259355664253, 0.02071317471563816, 0.0019869019743055105, -0.014032810926437378, 0.022462215274572372, -0.006287638563662767, 0.024227449670433998, 0.010818139649927616, -0.0379282683134079, -0.005797745659947395, 0.002263226080685854, -0.03624400496482849, 0.019984407350420952, 0.039968814700841904, 0.039385803043842316, -0.025992685928940773, -0.0003780478145927191, 0.03964491933584213, -0.025506841018795967, -0.012607666663825512, 0.0394829697906971, 0.004498111084103584, 0.018397314473986626, -0.03656790405511856, -0.017992444336414337, -0.039418190717697144, -0.011886997148394585, 0.03546665608882904, -0.022575577720999718, -0.03783109784126282, 0.0012996342265978456, -0.04145873710513115, -0.030980689451098442, 0.0006402014405466616, 0.01833253540098667, -0.030753962695598602, -0.012154212221503258, 0.011150132864713669, 0.05668186768889427, -0.04641435295343399, -0.03190379589796066, -0.07404271513223648, 0.0356609933078289, -0.008834274485707283, -0.006032570265233517, -0.023531073704361916, -0.020275915041565895, -0.012364745140075684, 0.006886846851557493, -0.030543429777026176, -0.010073177516460419, -0.010040787979960442, -0.06691699475049973, 0.028017038479447365, 0.050365887582302094, -0.01983865350484848, -0.041393958032131195, 0.03854367136955261, 0.011806023307144642, 0.01923944614827633, 0.034300629049539566, -0.02432461827993393, 0.03153131529688835, 0.01896413415670395, 0.026332776993513107, 0.0007849426474422216, -0.004202555865049362, 0.019757680594921112, 0.008931443095207214, -0.026996763423085213, -0.049361810088157654, -0.024065501987934113, -0.011976068839430809, 0.04884357750415802, -0.019628120586276054, -0.026770036667585373, -0.05483565852046013, 0.015490344725549221, -0.019579537212848663, 0.03556382283568382, -0.021846812218427658, -0.020956097170710564, -0.014470071531832218, 0.06312740594148636, -0.0434345044195652, 0.0195633415132761, -0.006069008726626635, 0.020923707634210587, -0.008510377258062363, -0.013020634651184082, -0.039742086082696915, -0.012162309139966965, 0.007271474227309227, 0.0008846420096233487, 0.01129588671028614, 0.011652172543108463, 0.013757498934864998, -0.0032875484321266413, 0.04230086877942085, -0.04609045758843422, -0.01539317611604929, -0.059953223913908005, -0.00029935111524537206, -0.0029879442881792784, -0.027741726487874985, -0.013555063866078854, 0.020648395642638206, -0.03987164422869682, -0.01174934208393097, 0.039515361189842224, 0.011619783006608486, 0.024162670597434044, -0.07494962215423584, -0.00457098800688982, 0.029085896909236908, 0.028875363990664482, -0.004518354777246714, 0.00374505203217268, 0.027919869869947433, 0.0029231649823486805, 0.008648033253848553, -0.023854969069361687, 0.0031154784373939037, -0.015263617038726807, 0.041393958032131195, 0.01841351017355919, -0.04916747286915779, -0.06335413455963135, -0.04589612036943436, -0.02890775352716446, 0.012793907895684242, 0.053540073335170746, 0.03617922589182854, -0.019822459667921066, -0.0018421607092022896, 0.024227449670433998, -0.05007438361644745, 0.009222949855029583, 0.03455974534153938, -0.0031397705897688866, 0.03336132690310478, 0.06691699475049973, 0.001359352725557983, -0.0201625507324934, -0.06464972347021103, 0.0020628152415156364, 0.04842251166701317, 0.017166508361697197, -0.004530500620603561, -0.017247483134269714, 0.02089131809771061, 0.051013682037591934, -0.00966830737888813, 0.010291808284819126, 0.042819101363420486, -0.03462452441453934, -0.004607426002621651, 0.0047693741507828236, 0.009101488627493382, -0.010388976894319057, -0.016243403777480125, -0.009206755086779594, -0.019773874431848526, 0.010704775340855122, -0.015182643197476864, 0.006959723774343729, 0.014065200462937355, -0.03536948561668396, -0.052762720733881, -0.056519921869039536, -0.003536543808877468, 0.0017227239441126585, 0.024178866297006607, 0.003971779718995094, -0.03106166422367096, 0.05447937175631523, -0.01778191141784191, -0.0014727164525538683, 0.0061054471880197525, -0.007696588058024645, 0.011101548559963703, 0.0272234920412302, 0.0038563914131373167, -0.03698896989226341, 0.029749883338809013, 0.03336132690310478, -0.043272558599710464, -0.0014484241837635636, 0.004773423075675964, -0.028551466763019562, -0.0007029564003460109, 0.0269805695861578, -0.011344471015036106, 0.00012291615712456405, -0.03101307898759842, -0.031077858060598373, 0.00517829367890954, 0.030413871631026268, 0.0047693741507828236, 0.0010971990413963795, -0.0067006065510213375, -0.030527234077453613, -0.04026032239198685, -0.019207056611776352, -0.011992263607680798, 0.010243223048746586, -0.06319218873977661, 0.030915910378098488, -0.010680483654141426, 0.005546725820749998, 0.02850288338959217, -0.021474331617355347, -1.2256820980383054e-07, 0.017522795125842094, -0.007947607897222042, 0.0379282683134079, 0.02349868416786194, -0.007060941308736801, -0.01613003946840763, 0.021409550681710243, -0.0052754622884094715, -0.0012055018451064825, 0.05736204981803894, -0.02717490680515766, -0.010308003053069115, 0.033053625375032425, 0.012834394350647926, -0.017247483134269714, 0.00800429005175829, 0.021571500226855278, -0.02753119356930256, -0.014210954308509827, 0.019628120586276054, 0.02029210887849331, 0.02534489333629608, 0.053216177970170975, -0.009619723074138165, 0.011198718100786209, -0.013579356484115124, 0.007473909296095371, 0.027110127732157707, 0.017700938507914543, 0.010243223048746586, -0.04048704728484154, 0.023887358605861664, -0.04910269379615784, -0.04984765499830246, -0.01833253540098667, 0.0016093602171167731, -0.029296427965164185, 0.048228174448013306, -0.05379918962717056, 0.01495591551065445, -0.023158591240644455, -0.0017864910187199712, -0.029312623664736748, 0.034333016723394394, 0.035401877015829086, -0.023660631850361824, -0.026996763423085213, -0.0269805695861578, -0.03909429535269737, 0.021830616518855095, 0.04055183008313179, 0.04599328711628914, 0.04064899682998657, -0.0003836147952824831, 0.007652052212506533, -0.006040667649358511, -0.016364865005016327, -0.0449892096221447, -0.034430187195539474, -0.013538869097828865, 0.015895215794444084, -0.014324317686259747, -0.019644316285848618, 0.026316581293940544, -0.00688279839232564, -0.011142035946249962, 0.009870742447674274, 0.02221929281949997, 0.03627639636397362, 0.04942658916115761, 0.016219111159443855, -0.013506479561328888, -0.011101548559963703, 0.02089131809771061, 0.04045465961098671, 0.022964254021644592, 0.010955795645713806, 0.025118164718151093, -0.0277579203248024, -0.015522734262049198, -0.006959723774343729, -0.025134360417723656, -0.03284309431910515, 0.0007545773987658322, 0.025684984400868416, 0.05959693714976311, -0.016632080078125, -0.011603588238358498, -0.024486567825078964, 0.03284309431910515, -0.014146175235509872, 0.021020876243710518, 0.051985371857881546, 0.046479132026433945, 0.016526812687516212, -0.01623530685901642, 0.026818621903657913, -0.057750727981328964, 0.039418190717697144, 0.024211255833506584, -0.0003557799500413239, 0.019401393830776215, -0.0015304104890674353, -0.04622001573443413, -0.01255098544061184, 0.024713294580578804, -0.018478289246559143, 0.022656552493572235, -0.019028913229703903, -0.017069339752197266, 0.009457774460315704, -0.03870561718940735, 0.018267756327986717, 0.0087047154083848, -0.010688580572605133, 0.020324498414993286, -0.010097470134496689, 0.00859135203063488, 0.020972291007637978, 0.005826086271554232, -0.011765536852180958, 0.018996523693203926, -0.015409370884299278, 0.024357007816433907, -0.032000962644815445, -0.00682611670345068, -0.022575577720999718, -0.00336244935169816, 0.025490645319223404, 0.023450098931789398, 0.02304522879421711, 0.009716891683638096, 0.04126439988613129, -0.01237284205853939, -0.025280114263296127, -0.013546966947615147, 0.007692539133131504, -0.006781580857932568, 0.036405954509973526, -0.009716891683638096, 0.02254318818449974, 0.0075508346781134605, 0.012996342964470387, 0.02116663008928299, -0.016162430867552757, 0.018202977254986763, -0.022332657128572464, 0.019223250448703766, 0.03179043158888817, -0.006170226261019707, -0.002961627673357725, -0.019028913229703903, 0.04907030239701271, -0.015385078266263008, 0.010810041800141335, 0.018445899710059166, 0.01993582211434841, -0.020032992586493492, -0.04417946934700012, 0.04142634943127632, -0.024033112451434135, 0.03247061371803284, -0.01647822931408882, 0.031822819262742996, -0.01723128743469715, 0.016664469614624977, -0.005328095518052578, 0.007056892849504948, -0.04252759739756584, -0.029166869819164276, 0.001460570259951055, 0.03624400496482849, -0.01695597544312477, 0.03582294285297394, 0.018866965547204018, 0.003151916665956378, -0.0008654106641188264, 0.03478647395968437, -0.04356406629085541, -0.002805752446874976, 0.002356346230953932, -0.030025195330381393, -0.03536948561668396, -0.009303923696279526, 6.838515400886536e-05, 0.04252759739756584, 0.031029274687170982, -0.010413268581032753, 0.0053240470588207245, 0.038640838116407394, 0.021425746381282806, 0.00333208404481411, 0.001055699773132801, 0.05726488307118416, 0.008785689249634743, -0.0010435536969453096, 0.033231768757104874, -0.0018158440943807364, -0.05869002640247345, -0.01484255213290453, -0.010696678422391415, -0.005239024292677641, 0.01796005479991436, -0.0016528838314116001, 0.056293193250894547, 0.028891557827591896, -0.039385803043842316, -0.05856046825647354, 0.037086136639118195, 0.00289279967546463, -0.0028361177537590265, -0.017377041280269623, -0.011878900229930878, 0.062382444739341736, 0.031223611906170845, -0.03899712488055229, -0.03394434228539467, 0.013142095878720284, 0.009344411082565784, 0.021587694063782692, -0.011142035946249962, 0.039742086082696915, 0.0019190860912203789, 0.02437320351600647, -0.0014959964901208878, -0.0005835195770487189, 0.004664108157157898, 0.051564306020736694, -0.032778315246105194, 0.015061181969940662, -0.01713411882519722, 0.06264156103134155, -0.02469710074365139, -0.007267425302416086, -0.04000120609998703, -0.005287608597427607, -0.0009549882961437106, 0.03747481107711792, -0.008526572957634926, 0.003449496580287814, -0.0001495490432716906, -0.006380758713930845, 0.0072755226865410805, -0.03669746220111847, 0.0403251014649868, -0.006522463634610176, -0.030446261167526245, -0.019579537212848663, 0.00286445883102715, 0.04919986054301262, -0.021782033145427704, -0.028017038479447365, 0.03407390043139458, 0.03669746220111847, -0.025361087173223495, -0.0008077166276052594, 0.011255399323999882, 0.004526452161371708, 0.04699736833572388, -0.03511036932468414, -0.0006290675373747945, -0.05645514279603958, 0.03676224127411842, -0.07864204049110413, -0.029668910428881645, -0.011214912869036198, 0.03899712488055229, 0.03313460201025009, -0.03349088877439499, -0.012308062985539436, -0.018947938457131386, 0.04443858563899994, 0.013822278939187527, 0.006712752860039473, -0.0026883401442319155, 0.0007702661096118391, -0.007635857444256544, 0.020227329805493355, 0.01833253540098667, -0.030964495614171028, 0.02442178875207901, 0.037086136639118195, 0.02740163542330265, 0.03028431348502636, -0.01705314591526985, 0.013854668475687504, -0.018041029572486877, 0.04175024479627609, 0.024178866297006607, -0.0017115899827331305, -0.02474568411707878, -0.012154212221503258, 0.016615884378552437, 0.004429283086210489, -0.03617922589182854, 0.012210894376039505, -0.06445538252592087, 0.03436540812253952, 0.009660209529101849, 0.012866783887147903, -0.02652711421251297, -0.0005410081939771771, 0.034754082560539246, -0.019579537212848663, 0.006008278112858534, 0.025830736383795738, 0.008324136957526207, -0.008012386970221996, -0.015036890283226967, -0.04087572544813156, -0.04081094637513161, 0.021863006055355072, -0.02226787619292736, -0.053216177970170975, -0.002866483060643077, -0.0004823019844479859, -0.00580584304407239, 0.004307821858674288, -0.007814000360667706, 0.016372961923480034, -0.04596089944243431, 0.008445598185062408, 0.018543068319559097, 0.014445778913795948, -0.007437470834702253, -0.014874941669404507, -0.03326416015625, 0.011830315925180912, -0.034851253032684326, -0.011563100852072239, 0.031175028532743454, 0.04022793099284172, -0.007660149596631527, -0.0035405925009399652, 0.008206725120544434, 0.037539590150117874, -0.01307731680572033, 0.025733567774295807, -0.049135081470012665, 1.706465809547808e-05, -0.01676163822412491, 0.04126439988613129, 0.018931744620203972, -0.01690739206969738, 0.010024593211710453, 0.020680785179138184, -0.0012915368424728513, -0.012016556225717068, 0.05020394176244736, -0.0016619933303445578, -0.01351457741111517, -0.022624162957072258, -0.028600051999092102, 0.00289279967546463, -0.033150795847177505, -0.007951656356453896, 0.03569338098168373, -0.021587694063782692, -0.019692901521921158, 0.021879201754927635, -0.014057103544473648, 0.043272558599710464, -0.0031903793569654226, 0.02562020532786846, 0.03345849737524986, -0.010413268581032753, -0.01276151742786169, 0.018931744620203972, 0.027158712968230247, -0.012891076505184174, 0.003330059815198183, 0.011579295620322227, 0.00950635876506567, -0.0010354563128203154, -0.005376680288463831, 0.010243223048746586, 3.0523438908858225e-05, 0.04485965147614479, 0.011360665783286095, -0.02396833337843418, 0.0011903191916644573, 0.014478168450295925, 0.0217172522097826, -0.013717012479901314, 0.02730446681380272, 0.0029049457516521215, -0.0028320690616965294, -0.008332234807312489, -0.019093692302703857, -0.019854849204421043, -0.004182312171906233, 0.036859408020973206, 0.016186721622943878, 0.011206815019249916, -0.0008699654717929661, -0.02642994560301304, -0.028891557827591896, -0.007769464515149593, 0.03164467588067055, -0.001584055833518505, 0.01836492493748665, -0.04728887230157852, 0.025118164718151093, -0.03345849737524986, 0.006360515486449003, 0.04511876776814461, 0.021506721153855324, 0.03478647395968437, 0.055191945284605026, 0.0021093753166496754, 0.033782392740249634, 0.025717373937368393, 0.04288388416171074, -0.002659999066963792, 0.03643834590911865, 0.04045465961098671, 0.0406813882291317, -0.03559621423482895, -0.03647073358297348, 0.017765717580914497, -0.003473788732662797, 0.009457774460315704, 0.024211255833506584, -0.06409909576177597, -0.004745081998407841, 0.02702915482223034, -0.0006032570381648839, 0.0008942576823756099, 0.03821977600455284, -0.013943740166723728, 0.011741244234144688, -0.003907000180333853, 0.003423179965466261, -0.0017298092134296894, 0.02642994560301304, -0.007805902976542711, 0.03766915202140808, 0.009733086451888084, 0.01509357150644064, 0.01961192674934864, 0.00633217440918088, 0.03143414482474327, -0.038090214133262634, -0.00043877839925698936, -0.005133757833391428, -0.01610574871301651, 0.019676705822348595, -0.0017480283277109265, -0.011814121156930923, 0.007441519759595394, 0.028470491990447044, -0.010623801499605179, -0.012777713127434254, 0.026235608384013176, 0.00014524729340337217, 0.012882978655397892, 0.01264815405011177, 0.015514637343585491, 0.0305110402405262, -0.006866603624075651, 0.019142277538776398, 0.004979907069355249, -0.018591653555631638, 0.017943860962986946, 0.05026872083544731, -0.00020357394532766193, -0.0465439110994339, 0.03582294285297394, 0.015352688729763031, -0.021312382072210312, 0.02562020532786846, -0.030980689451098442, -0.006781580857932568, -0.04252759739756584, 0.012583374977111816, -0.03133697435259819, -0.029523156583309174, -0.01319877803325653, -0.012518595904111862, -0.012955855578184128, -0.008137896656990051, 0.023288151249289513, -0.03439779579639435, 0.04311060905456543, -0.015425565652549267, -0.02204114943742752, 0.020097771659493446, -0.003611444728448987, -0.025944100692868233, 0.0187859907746315, 0.03216291218996048, 0.0006862554582767189, 0.012316159904003143, 0.0040932404808700085, 0.014089493080973625, -0.020194940268993378, -0.004400942008942366, 0.008834274485707283, -0.021231409162282944, 0.0066317785531282425, 0.012891076505184174, -0.03990403562784195, 0.029992805793881416, -0.020696979016065598, 0.02106945961713791, -0.04168546572327614, -0.022850889712572098, -0.0023158593103289604, 0.03614683821797371, -0.0330212377011776, 0.007660149596631527, 0.006858506239950657, 0.020535031333565712, 0.002060790779069066, 0.024988606572151184, -0.005380728747695684, 0.005028491374105215, -0.009749281220138073, 0.0010045849485322833, -0.016291989013552666, -0.01647822931408882, 0.006514366250485182, 0.017603768035769463, -0.012777713127434254, 0.03368522599339485, -0.043499287217855453, -0.021247602999210358, -0.0031397705897688866, -0.02996041625738144, -0.020194940268993378, -0.007016405463218689, -0.01846209354698658, 0.003864488797262311, -0.015870923176407814, 0.02863244153559208, -0.026867205277085304, -0.015644196420907974, 0.00845369603484869, 0.01838112063705921, -0.009125781245529652, 0.014834455214440823, -0.0059313527308404446, -0.013166388496756554, -0.028162790462374687, 0.00898002739995718, -0.011530711315572262, -0.0005293681751936674, -0.04732126370072365, -0.0065629505552351475, -0.00454669538885355, -0.0022105928510427475, 0.002259177388623357, -0.028373323380947113, 0.0007910157437436283, 0.0001891504361992702, 0.042268477380275726, 0.0024676856119185686, -0.03060820885002613, -0.03311840444803238, -0.004639816004782915, -0.005457654129713774, 0.001134649501182139, -0.008963832631707191, -0.018656432628631592, -0.008712813258171082, 0.02377399429678917, 0.0021923736203461885, 0.01703695021569729, -0.01681022346019745, -0.0046681566163897514, 0.013976129703223705, 0.04184741526842117, -0.00495966337621212, -0.004830104764550924, 0.01676163822412491, -0.009684502147138119, 9.672609303379431e-05, -0.0026296337600797415, -0.021571500226855278, -0.0037754173390567303, 0.0027409731410443783, 0.03815499320626259, -0.008793787099421024, 0.02639755606651306, -0.00994361937046051, -0.006846359930932522, 0.029895637184381485, -0.00980596337467432, -0.014162370003759861, -0.006878749467432499, 0.0005809891736134887, 0.006996162235736847, 0.03621161729097366, -0.02098848670721054, -0.01864023692905903, -0.00032541464315727353, -0.016121942549943924, -0.01773332804441452, 0.025166749954223633, -0.04395274072885513, -0.012518595904111862, 0.021101849153637886, -0.007226938381791115, -0.01805722340941429, 0.04126439988613129, 0.02034069411456585, -0.014210954308509827, -0.02963651902973652, -0.010567119345068932, 0.040163151919841766, -0.007858536206185818, -0.0026377311442047358, 0.005534579511731863, 0.03834933415055275, -0.019644316285848618, -0.04200936108827591, 0.01470489613711834, -0.0021761788520962, -0.024583736434578896, 0.029539350420236588, -0.029814662411808968, 0.006073057185858488, -0.03821977600455284, 0.012324257753789425, 0.013595551252365112, 0.005907060578465462, 0.007174305152148008, -0.004643864464014769, -0.012016556225717068, -0.012380939908325672, 0.009976008906960487, -0.006927334237843752, -0.029847051948308945, -0.0013370848027989268, -0.02349868416786194, 0.01509357150644064, 0.028259960934519768, -0.02694818004965782, -0.00584228103980422, 0.007036649156361818, 0.01565229333937168, 0.035531435161828995, -0.0035588114988058805, 0.0140004213899374, -0.00039803830441087484, 0.017668548971414566, -0.02051883563399315, 0.01282629743218422, -0.03812260553240776, -0.004777472000569105, -0.021296188235282898, -0.02895633690059185, 0.0014798016054555774, -0.00043599490891210735, -0.022705137729644775, 0.007818048819899559, -0.012696738354861736, -0.03245441988110542, 0.005789647810161114, -0.016891196370124817, -0.013368823565542698, -0.0036276394966989756, -0.07779991626739502, 0.015660390257835388, 0.04097289219498634, 0.0009585308725945652, 0.0152555201202631, 0.020858928561210632, 0.005077076144516468, -0.04268954321742058, -0.012704836204648018, -0.01280200481414795, 0.011903192847967148, -0.0028806535992771387, 0.002382662845775485, -0.022883279249072075, 0.019919628277420998, -0.007854487746953964, -0.00740912975743413, 0.00886666402220726, -0.02808181755244732, -0.007623711135238409, -0.006988064851611853, -0.0017945884028449655, 0.02144194208085537, -0.003973803948611021, 0.0032875484321266413, -0.006789678242057562, 0.025782153010368347, 0.032826900482177734, 0.03737764433026314, 0.023628242313861847, 0.013749402016401291, -0.04181502386927605, 0.00749010406434536, 0.021199019625782967, 0.004006193485110998, -0.025231529027223587, -0.007154061459004879, 0.018154392018914223, -0.009449677541851997, -0.024437982589006424, 0.009595430456101894, 0.0007707722252234817, 0.015765657648444176, -0.019725291058421135, 0.03909429535269737, -0.011393055319786072, 0.009214852005243301, -0.0033138650469481945, -0.018267756327986717, 0.012267575599253178, 0.004781520459800959, -0.0027652655262500048, -0.0011538808466866612, -0.009652112610638142, 0.007603467907756567, 0.011085353791713715, 0.025684984400868416, 0.004054777789860964, -0.010963892564177513, -0.019093692302703857, -0.01317448541522026, -0.0013836448779329658, -0.007133818231523037, -0.0044738189317286015, -0.004996101837605238, -0.0050811246037483215, -0.0031154784373939037, -0.035531435161828995, -0.010777652263641357, 0.00015726688434369862, -0.018543068319559097, -0.012486206367611885, 0.0023705167695879936, 0.005004199221730232, 0.014988305978477001, 0.022413630038499832, -0.02437320351600647, -0.011886997148394585, 0.0283571295440197, 0.004202555865049362, 0.008882858790457249, 0.019045107066631317, 0.00754678575322032, 0.027644557878375053, 0.00672489870339632, 0.011603588238358498, -0.026559503749012947, -0.021360967308282852, -0.020648395642638206, -0.03253539279103279, 0.003423179965466261, -0.024616125971078873, 0.011352568864822388, -0.0037187354173511267, -0.025134360417723656, 0.00037551738205365837, 0.0035021298099309206, -0.02199256420135498, -0.04113484174013138, -0.02474568411707878, 0.0034393747337162495, -0.00641314871609211, -0.009328216314315796, 0.03634117543697357, 9.46384752751328e-05, 0.0014271684922277927, 0.007562980987131596, -0.00025380318402312696, 0.04275432229042053, -0.03656790405511856, -0.004190409556031227, 0.03689179942011833, 0.001110357348807156, 0.027612168341875076, -0.034754082560539246, -0.0021964223124086857, 0.0026053416077047586, 0.028842974454164505, 0.018251562491059303, -0.029928026720881462, 0.013749402016401291, 0.0019514757441356778, -0.01781430095434189, 0.006016375496983528, -0.010429464280605316, -0.023110007867217064, 0.011085353791713715, 0.013506479561328888, -0.030770156532526016, -0.010461853817105293, -0.0004896402242593467, 0.027385439723730087, 0.025182943791151047, -0.010939600877463818, 0.0051499526016414165, -0.024859048426151276, 0.0016022749477997422, 0.005870622117072344, 0.02029210887849331, 0.010348489508032799, 0.006571047939360142, -0.0002457057707943022, -0.0217172522097826, -0.02557162009179592, -0.004898932762444019, -0.029668910428881645, -0.026267997920513153, -0.018526874482631683, 0.011789828538894653, 0.051467135548591614, 0.027968453243374825, -0.0020729368552565575, -0.00625524902716279, 0.005907060578465462, 0.014283831231296062, 0.005348339211195707, 0.030543429777026176, -0.03183901682496071, -0.011328276246786118, -0.0002316618338227272, 0.005550774279981852, -0.006360515486449003, 0.0018340633250772953, -0.004975858144462109, 0.03436540812253952, -0.023514878004789352, -0.012332355603575706, 0.008971930481493473, -0.01979007013142109, -0.025490645319223404, -0.03316698968410492, -0.019903432577848434, -0.016972171142697334, 0.0016457985620945692, -0.03724808618426323, -0.0244703721255064, -0.006320028565824032, 0.005939450114965439, -0.002704534912481904, 0.022251682355999947, 0.011344471015036106, 0.009061001241207123, 0.07015595585107803, -0.021782033145427704, 0.0025284162256866693, -0.015336493961513042, 0.01074526272714138, -0.0008072105119936168, 0.05713532492518425, 0.004842251073569059, -0.035855330526828766, -0.025863127782940865, -0.039288632571697235, 0.019547147676348686, -0.020308304578065872, -0.024357007816433907, -0.0030871375929564238, 0.0009686526609584689, -0.006344320718199015, 0.03224388509988785, 0.012931563891470432, 0.009133878163993359, -0.008834274485707283, 0.039612527936697006, -0.022802306339144707, 0.02194398082792759, -0.010113664902746677, 0.03352327644824982, 0.028292350471019745, -0.020745564252138138, -0.04336972534656525, -0.022786110639572144, 0.0114578353241086, 0.015644196420907974, 0.014883039519190788, 0.015223130583763123, 0.0014200832229107618, -0.0025182943791151047, -0.03715091571211815, 0.031596094369888306, 0.04123201221227646, 0.014065200462937355, -0.003767319954931736, 0.04022793099284172, 0.007664198521524668, -0.02029210887849331, 0.01332833617925644, -0.03352327644824982, -0.01102057471871376, -0.037636760622262955, -0.03381478413939476, -0.0023239566944539547, 0.011239204555749893, -0.031045468524098396, -0.013636037707328796, 0.005328095518052578, 0.007384837605059147, -0.0006437440752051771, 0.006012326572090387, -0.012704836204648018, -0.031677067279815674, -0.004380698781460524, -0.007320058532059193, -0.02286708541214466, -0.05098129063844681, 0.01668066345155239, -0.011814121156930923, -0.013814181089401245, -0.00043953751446679235, 0.00023710228560958058, 0.030770156532526016, -0.006259297952055931, 0.026316581293940544, 0.011352568864822388, 0.025684984400868416, -0.027158712968230247, 0.0038563914131373167, 0.014996402896940708, -0.020227329805493355, -0.02341770939528942, -0.013020634651184082, 0.0018016736721619964, -0.010761457495391369, 0.026867205277085304, -0.01319068018347025, 0.0036964674945920706, -0.0048462999984622, 0.00214783800765872, -0.027288271114230156, -0.027563583105802536, 0.038284555077552795, -0.05214731767773628, -0.0083160400390625, -0.02547445148229599, -0.014065200462937355, 0.01676163822412491, -0.009069099090993404, 0.012607666663825512, 0.003943438641726971, 0.01553083211183548, 0.014421487227082253, 0.033328939229249954, -0.02945837751030922, -0.04401751980185509, 0.011700756847858429, 0.009935521520674229, -0.02519913949072361, -0.006263346411287785, -0.017328457906842232, -0.009846450760960579, -0.06241483613848686, -0.004064899869263172, 0.02294806018471718, -0.010688580572605133, -0.006514366250485182, 0.00011254134733462706, -0.011498321779072285, 0.030397675931453705, -0.04443858563899994, -0.011838412843644619, 0.02024352364242077], "id": 96}, {"title": "Soyuz 1", "text": "Soyuz 1 (Russian: \u0421\u043e\u044e\u0437 1 , Union 1) was a manned spaceflight of the Soviet space program. Launched into orbit on 23 April 1967 carrying cosmonaut Colonel Vladimir Komarov, Soyuz 1 was the first crewed flight of the Soyuz spacecraft. The mission plan was complex, involving a rendezvous with Soyuz 2 and an exchange of crew members before returning to Earth.", "vector": [0.027997292578220367, 0.01810913160443306, 0.0026427116245031357, -0.022966979071497917, -0.04242710769176483, -0.03782796487212181, 0.0009494718397036195, 0.03363124653697014, -0.013517173007130623, -0.013783060945570469, -0.03590207174420357, -0.039006493985652924, -0.021041085943579674, 0.0021702214144170284, 0.028299111872911453, 0.07927775382995605, -0.0028044001664966345, 0.01566583663225174, -0.02280888333916664, -0.04136355593800545, 0.05001569911837578, -0.0103983785957098, 0.023872435092926025, 0.0312166940420866, 0.04403680935502052, -0.04139230027794838, 0.021889053285121918, 0.035557135939598083, -0.029980674386024475, -0.02975071594119072, 0.017289908602833748, -0.03196405619382858, -0.016715016216039658, 0.03196405619382858, 0.06657262146472931, -0.04472668096423149, 0.019014587625861168, -0.006553781218826771, -0.029161451384425163, -0.008314390666782856, -0.008515603840351105, -0.02884525991976261, 0.024116763845086098, -0.009622273035347462, -0.01609700545668602, -0.01399146020412445, -0.015536485239863396, 0.010010325349867344, 0.024418583139777184, 0.0034637306816875935, -0.0097013209015131, 0.02529529482126236, 0.014817869290709496, 0.04443923383951187, 0.021213553845882416, 0.023699967190623283, 0.013409380801022053, 0.04489915072917938, -0.044640447944402695, -0.053148865699768066, -3.208509588148445e-05, -0.0702519342303276, -0.05004444345831871, -0.010944526642560959, 0.020035022869706154, -0.012051195837557316, 0.013179423287510872, -0.009794740937650204, -0.025913305580615997, -0.0026966077275574207, 0.056282032281160355, 0.028586557134985924, 0.025453390553593636, 0.0028151795268058777, 0.017117440700531006, -0.05478730797767639, 0.07939273118972778, 0.022248361259698868, -0.03955264389514923, -0.03857532516121864, 0.03915021941065788, 0.022392084822058678, 0.014437002129852772, 0.03207903355360031, 0.031705353409051895, -0.04685378447175026, -0.008077247999608517, -0.06772240251302719, -0.0008928807801567018, -0.024375466629862785, -0.04027125984430313, 0.05458609759807587, -0.0042003123089671135, 0.01842532306909561, 0.08071498572826385, -0.06047875061631203, 0.044927895069122314, -0.01006062887609005, -0.04314572364091873, -0.0005636647110804915, -0.009765995666384697, -0.024131136015057564, -0.00966538954526186, -0.04510036110877991, 0.03848909214138985, 0.03397618234157562, 0.0395238995552063, 0.044209275394678116, 0.021716585382819176, 0.03713809326291084, -0.052401501685380936, 0.0064603607170283794, -0.0004356611461844295, -0.018008526414632797, 0.007509540766477585, -0.035442158579826355, -0.02575520984828472, -0.0047967638820409775, -0.039753854274749756, -0.014523236081004143, 0.0304980780929327, 0.011311021633446217, -0.011950589716434479, -0.014587911777198315, -0.03147539496421814, 0.022090265527367592, 0.01440825778990984, 0.009873788803815842, -0.006370533723384142, 0.016326963901519775, 0.06697504222393036, -0.01276981271803379, -0.034579817205667496, 0.03064180165529251, 0.019963162019848824, 0.01753423921763897, -0.048233527690172195, 0.031417906284332275, -0.008400624617934227, 0.033257562667131424, -0.023757455870509148, 0.002008532639592886, 0.00964383129030466, 0.08887846767902374, 0.008005386218428612, 0.03647696599364281, -0.006560967303812504, 0.0330563522875309, -0.024317976087331772, -0.03075677901506424, 0.03294137120246887, -0.06910214573144913, 0.019373895600438118, 0.003249942325055599, 0.003564337035641074, 0.011138553731143475, 0.041679747402668, -0.01605388894677162, 0.045905210077762604, 0.024763518944382668, 0.0020516496151685715, -0.029578248038887978, 0.003161911852657795, 0.0035140339750796556, -0.0025151572190225124, -0.040012557059526443, 0.003469120478257537, 0.010685824789106846, -0.013941156677901745, 0.00833594985306263, -0.0007213111384771764, -0.05967390164732933, 0.009011449292302132, -0.029405780136585236, 0.035298433154821396, 0.01031214464455843, 0.022320223972201347, 0.01566583663225174, -0.014975964091718197, 0.01655692048370838, 0.006115424912422895, 0.04556027427315712, 0.0005407587741501629, 0.030871758237481117, 0.009550411254167557, 0.015766441822052002, 0.01605388894677162, 0.01605388894677162, 0.0005057262605987489, 0.047227464616298676, 0.019086450338363647, -0.027221186086535454, 0.030843013897538185, 0.03236648067831993, -0.010858292691409588, 0.02733616530895233, 0.02194654382765293, 0.03138916194438934, 0.002497191773727536, -0.030153142288327217, 0.009543225169181824, -0.03420613706111908, -0.029089588671922684, -0.03411990404129028, -0.02582707069814205, -0.014163928106427193, 0.042513344436883926, 0.01698809117078781, 0.02493598684668541, -0.01796540804207325, 0.04265706613659859, -0.046077679842710495, 0.0603637732565403, 0.016441941261291504, 0.02553962543606758, -0.019517619162797928, -0.029262056574225426, 0.03420613706111908, -0.02302446775138378, 0.04208217188715935, -0.004674599505960941, -0.03363124653697014, 0.06640014797449112, -0.01153379213064909, -0.002213338389992714, 0.015335272997617722, 0.01734739914536476, -0.022320223972201347, 0.0020732081029564142, -0.09296020865440369, -0.08600400388240814, 0.026215124875307083, 0.021889053285121918, 0.0431169793009758, -0.009995953179895878, 0.012834487482905388, 0.027034346014261246, 0.01318661030381918, -0.025625858455896378, -0.030411843210458755, -0.019158311188220978, -0.014171114191412926, -0.028040409088134766, -0.04645135998725891, 0.033861201256513596, 0.04898088797926903, 0.06024879217147827, 0.0023211308289319277, -0.02917582355439663, 0.009248591959476471, 0.03676441311836243, 0.03535592555999756, -0.0287446528673172, 0.026387592777609825, -0.009169544093310833, -0.018410950899124146, -0.0034906789660453796, -0.017979780212044716, -0.04107610881328583, 0.008932401426136494, -0.05073431506752968, 0.05708688125014305, 0.023556243628263474, 0.003916459158062935, -0.015680208802223206, -0.05967390164732933, 0.0004913539160043001, -0.040185026824474335, 0.016010772436857224, -0.01957510970532894, 0.02515157125890255, -0.007660450413823128, -0.0016653933562338352, -0.009974394924938679, 0.0033882760908454657, 0.018669651821255684, 0.010470240376889706, 0.0588403046131134, -0.022507064044475555, -0.041765980422496796, 0.036591943353414536, -0.02040870487689972, 0.05608081817626953, -0.08186477422714233, -0.03963887691497803, -0.01770670711994171, -0.022363340482115746, -0.00038064210093580186, -0.010599590837955475, 0.018525930121541023, -0.043030746281147, 0.008343135938048363, -0.04127732291817665, -0.03205028921365738, -0.009521666914224625, 0.07099929451942444, 0.028428463265299797, 0.02374308370053768, 0.01806601509451866, -0.010175607167184353, -0.011806866154074669, 0.007739497814327478, 0.031532883644104004, 0.026646293699741364, -0.02338377572596073, 0.014199858531355858, 0.036735668778419495, -0.0681823194026947, -0.0033541417215019464, 0.019014587625861168, -0.030239375308156013, -0.002560070715844631, 0.009464177303016186, -0.025568369776010513, 0.04900963604450226, -0.01115292590111494, 0.02242082916200161, 0.027609240263700485, -0.011914659291505814, 0.01465977355837822, -0.014465746469795704, 0.011375696398317814, 0.011691887862980366, -0.05401120334863663, 0.048520974814891815, -0.008163481950759888, -0.014803496189415455, 0.034551072865724564, -0.01064989436417818, 0.0014013018226251006, 0.04725620895624161, -0.025683347135782242, 0.01695934496819973, 0.019460130482912064, 0.0287015363574028, 0.012151801958680153, 0.028974611312150955, -0.022320223972201347, 0.006981357932090759, -0.04495663940906525, 0.05329258739948273, -0.0006521443137899041, 0.006898717023432255, -0.03018188662827015, -0.02137164957821369, 0.06789486855268478, 0.03035435453057289, -0.008918028324842453, -0.00659330515190959, -0.03130292892456055, 0.0004376822616904974, 0.0222339890897274, 0.012194919399917126, -0.02500784955918789, 0.003948797006160021, -0.024519190192222595, -0.014702890068292618, -0.01445856038480997, -0.004128450993448496, -0.025137199088931084, -0.029017727822065353, -0.001185716944746673, 0.02975071594119072, 0.035298433154821396, -0.011936217546463013, -0.05205656588077545, 0.00869525782763958, -0.00833594985306263, 0.01619761250913143, 0.002392992377281189, 0.000190433333045803, 0.022176500409841537, 0.0136537104845047, -0.0031134053133428097, -0.03064180165529251, -0.04573274403810501, -0.01460228394716978, 0.003641588380560279, 0.019488874822854996, 0.017778567969799042, -0.0031026259530335665, -0.024332350119948387, -0.05990385636687279, 0.017289908602833748, -0.0003941161558032036, -0.011612839996814728, 0.02206152118742466, -0.0034978650510311127, 0.019963162019848824, -0.014465746469795704, -0.04357689619064331, -0.008364694193005562, -0.0037547703832387924, 0.028227249160408974, 0.02270827628672123, -0.03265392780303955, 0.011167298071086407, -0.01412081066519022, -0.014142369851469994, 0.06122611090540886, -0.04556027427315712, 0.01655692048370838, 0.01741925999522209, -0.034867264330387115, 0.02313944697380066, -0.0011938014067709446, -0.05452860891819, 0.001882774755358696, -0.0265456885099411, 0.024706030264496803, -0.0037152464501559734, -0.026502570137381554, 0.021615980193018913, -0.019819438457489014, 0.03107297047972679, -0.031561627984046936, 0.010132490657269955, 0.02572646550834179, -0.02946327067911625, -0.029808206483721733, -0.042513344436883926, 0.04443923383951187, 0.01451604999601841, 0.03239522501826286, 0.003999100066721439, -0.02141476608812809, 0.02069615013897419, 0.018985843285918236, -0.025237806141376495, -0.02931954711675644, 0.048233527690172195, -0.04130606725811958, 0.01379743404686451, 0.03518345579504967, -0.022478319704532623, 0.010139676742255688, 0.05645449832081795, 0.0015171787235885859, -0.0017040190286934376, 0.0116775156930089, 0.008874911814928055, 0.05564964935183525, -0.015320900827646255, -0.02338377572596073, -0.05271769315004349, -0.02884525991976261, -0.018367834389209747, 0.007304735016077757, 0.005396808497607708, -0.023656850680708885, -0.0183247160166502, -0.03958138823509216, 0.005540532059967518, 0.04216840863227844, 0.0035607439931482077, 0.0025870187673717737, -0.007459237705916166, -0.006410057656466961, -0.01839657872915268, 0.03207903355360031, 0.02543901838362217, 0.009061751887202263, 0.04282953217625618, -0.010297772474586964, 0.02565460279583931, 0.028874004259705544, 0.006424430292099714, -0.06381312757730484, 0.01445856038480997, -0.011267904192209244, -0.02043744921684265, 0.002463057404384017, -0.007531099021434784, -0.0480610616505146, 0.012741067446768284, 0.01854030229151249, -0.006995730102062225, 0.02288074418902397, -0.011095436289906502, -0.00494767352938652, -0.01064989436417818, 0.014932847581803799, 0.0011282276827841997, 0.001262968173250556, 0.05349380150437355, 0.0020678185392171144, 0.064675472676754, -0.03345877677202225, -0.028658419847488403, -0.00035818532342091203, 0.05013067647814751, 0.001404894981533289, 0.04656633734703064, 0.05481605604290962, -0.00731192110106349, -0.001782168517820537, -0.01796540804207325, 0.013718386180698872, 0.02647382579743862, 0.0011461930116638541, 0.04541655257344246, 0.006309451535344124, -0.017074324190616608, 0.012496737763285637, 0.011993707157671452, 0.021328533068299294, 0.005993260070681572, -0.02206152118742466, 0.035154711455106735, -0.02712058089673519, -0.004017065279185772, 0.014092066325247288, 0.051107995212078094, 0.05358003452420235, -0.009097683243453503, 0.015004709362983704, 0.004293732810765505, -0.029836950823664665, 0.008752747438848019, 0.030986737459897995, -0.001139006926678121, 0.006086680572479963, -0.0022887929808348417, 0.023843690752983093, 0.007617333438247442, -0.00930608157068491, 0.024691658094525337, 0.0033002456184476614, 0.04196719452738762, -0.025956422090530396, -0.009428245946764946, 0.0003878282441291958, -0.02280888333916664, -0.01904333382844925, 0.009974394924938679, 0.013610593043267727, -0.01681562326848507, -0.014480119571089745, -0.011052318848669529, -0.014034576714038849, -0.011196042411029339, 0.021386021748185158, -0.03575835004448891, 0.003298449097201228, -0.005285423249006271, 0.013337519019842148, 0.026286985725164413, -0.03662068769335747, -0.00023085549764800817, -0.011612839996814728, 0.0013599813682958484, 0.03302760794758797, -0.0388052836060524, 0.007753870449960232, 0.03998381271958351, -0.05530471354722977, 0.008450928144156933, 0.027063092216849327, -0.008436555974185467, 0.032711416482925415, 0.0005546819884330034, -0.021041085943579674, 0.018669651821255684, 0.0009041091543622315, 0.044784169644117355, 0.008422183804214, -0.015076571144163609, 0.026128889992833138, -0.02381494641304016, -0.034263625741004944, 0.006496291607618332, -0.04547404125332832, 0.02608577348291874, -0.038747791200876236, 0.018152248114347458, -0.023398147895932198, 0.023153819143772125, -0.0005708508542738855, 0.03777047619223595, -0.008982704021036625, 0.0013734555104747415, 0.011497861705720425, 0.012245221994817257, -0.016844367608428, 0.015823932364583015, 0.033717479556798935, -0.006758586503565311, 0.016154495999217033, 0.0015998196322470903, -0.005572869908064604, 0.0215584896504879, -0.03380371257662773, -0.026028282940387726, 0.008472486399114132, -0.015306527726352215, 0.022392084822058678, 0.02364247851073742, 0.03894900530576706, 0.027149325236678123, -0.018669651821255684, -0.009988767094910145, -0.012942280620336533, -0.026459453627467155, 0.0222339890897274, -0.013502800837159157, 0.026172006502747536, -0.02697685733437538, -0.001409386284649372, -0.003063102252781391, 0.00830001849681139, -0.027134953066706657, -0.0035355924628674984, 0.02252143621444702, -0.0012584768701344728, -0.020178746432065964, -0.006025597918778658, -0.015450251288712025, -0.0019043333595618606, 0.03503973409533501, 0.03268267214298248, 0.011713446117937565, 0.03248145803809166, 0.01348842866718769, 0.014774751849472523, -0.016614409163594246, 0.04639387130737305, -0.018295971676707268, 0.031245438382029533, -0.00020121257693972439, 0.015090943314135075, -0.031130459159612656, 0.012503924779593945, -0.01273388136178255, 0.018554674461483955, -0.0012117668520659208, 0.005860316101461649, 0.0423121303319931, -0.05734558403491974, -0.0006350771873258054, -0.02543901838362217, -0.02608577348291874, -0.011131366714835167, 0.009801927022635937, -0.007782614789903164, -0.012137429788708687, -0.011296648532152176, 0.010628336109220982, 0.035269688814878464, -0.03613203018903732, 0.03210777789354324, -0.0036523675080388784, 0.013589034788310528, 0.03245271369814873, 0.0019905671942979097, -0.0366494320333004, -0.014235789887607098, -0.0008017063373699784, -0.013574662618339062, 0.007595774717628956, -0.007315514143556356, 0.003436782630160451, 0.029434524476528168, 0.010743314400315285, -0.003641588380560279, -0.00046216012560762465, 0.003643384901806712, -0.011792493984103203, 0.00012441044964361936, -0.00039613727130927145, -0.0011946996673941612, 0.031015481799840927, -0.030411843210458755, 0.03633324056863785, 0.03811541199684143, -0.0009683355456218123, 0.020839873701334, -0.04193845018744469, 0.03348752111196518, 0.0022259140387177467, 0.0018558267038315535, 0.020207490772008896, -0.017936663702130318, -0.019129566848278046, 0.021041085943579674, -0.007883220911026001, -0.00297327502630651, 0.03308509662747383, -0.03782796487212181, -0.04860720783472061, 0.0029085995629429817, -0.012051195837557316, -0.00019200530368834734, 0.0008133838418871164, 0.042513344436883926, -0.006582525558769703, 0.011584095656871796, 0.002576239639893174, 0.0027990106027573347, -0.002330113435164094, 0.0018558267038315535, -0.0006781941629014909, -0.0016995276091620326, 0.020250609144568443, -0.007696380838751793, 0.015708953142166138, -0.02316819131374359, -0.008091620169579983, 0.01566583663225174, 0.016930600628256798, 0.018094759434461594, -0.019891301169991493, -0.01609700545668602, -0.05320635437965393, 0.01720367558300495, -0.03187781944870949, -0.030153142288327217, -0.022578924894332886, -0.0013734555104747415, 0.012841673567891121, -0.03483851999044418, -0.00284751714207232, 0.01810913160443306, -0.0012207494582980871, -0.0373680479824543, -0.02946327067911625, -0.006057935766875744, -0.035988304764032364, -0.003492475487291813, -0.03251020237803459, 0.006647201254963875, 0.004031437449157238, -0.010261841118335724, 0.006474733352661133, 0.03210777789354324, 0.014020204544067383, 0.0038410043343901634, -0.021587233990430832, -0.03118794970214367, 0.007854476571083069, 0.024993475526571274, 0.0409611314535141, 0.01602514460682869, -0.03742554038763046, 0.011397255584597588, -0.002238489920273423, -0.010067814961075783, 0.040328748524188995, -0.02503659389913082, -0.0287015363574028, -0.0016088023548945785, 0.004904556553810835, 0.03351626545190811, -0.0005600716103799641, -0.017491120845079422, -0.008709629997611046, -0.01609700545668602, 0.02690499648451805, 0.0062878928147256374, 0.006758586503565311, 0.025841442868113518, 0.05145293101668358, 0.0037403979804366827, -0.02438983879983425, 0.032855138182640076, 0.013071631081402302, -0.0011614636750891805, -0.0001121153763961047, -0.007408934645354748, -0.0056052072905004025, 0.009320453740656376, 0.016140123829245567, 0.01228833943605423, -0.04561776667833328, -0.029693227261304855, -0.017994152382016182, -0.020063769072294235, 0.009564783424139023, -0.0017058155499398708, -0.025266550481319427, -0.012108685448765755, 0.011691887862980366, -0.035269688814878464, -0.029262056574225426, 0.026416337117552757, -0.006769366096705198, -0.00031776315881870687, 0.026603177189826965, -0.011447558179497719, 0.0025079711340367794, 0.014199858531355858, -0.04081740975379944, -0.0013734555104747415, 0.0123745733872056, 0.026071401312947273, -0.011311021633446217, -0.03092924691736698, -0.001334829838015139, 0.003052322892472148, -0.010441495105624199, -0.010326516814529896, 0.036994367837905884, -0.04271455481648445, -0.011253532022237778, -0.022622043266892433, -0.01445856038480997, 0.003909273073077202, -0.0013204575516283512, 0.01463821530342102, -0.026387592777609825, 0.01993441767990589, -0.014990337193012238, -0.009370757266879082, 0.017304280772805214, 0.017361771315336227, -0.027249932289123535, 0.021457884460687637, 0.021529745310544968, -0.018957098945975304, 0.005795640870928764, -0.011770935729146004, 0.03751177340745926, -0.00046754974755458534, 0.010010325349867344, -0.036275751888751984, 0.05631077662110329, -0.02191779762506485, -0.014307651668787003, 0.005515380296856165, 0.015119687654078007, -0.014889730140566826, -0.002003143075853586, 0.01835346221923828, 0.023484382778406143, 2.3495385903515853e-05, 0.02230585180222988, -0.02862967550754547, 0.0731263980269432, 0.0008600939181633294, 0.018310343846678734, 0.04058745130896568, -0.012992583215236664, -0.023455636575818062, -0.033717479556798935, -0.0027181662153452635, -0.021357277408242226, 0.010189979337155819, -0.025022221729159355, 0.008867725729942322, -0.011045132763683796, -0.04716997593641281, -0.03489600867033005, 0.005766896065324545, -0.005281830206513405, 0.01455198135226965, -0.038460347801446915, 0.003212215146049857, -1.771276947692968e-05, 0.00894677359610796, 0.007516726851463318, -0.014731635339558125, 0.05978887900710106, 6.6703596530715e-06, -0.007516726851463318, -0.018195366486907005, -0.005375250242650509, -0.03633324056863785, 0.017146185040473938, -0.026172006502747536, -0.06208845227956772, 0.03411990404129028, -0.010685824789106846, 0.010182793252170086, -0.022004032507538795, 0.004793170839548111, -0.013984274119138718, -0.0008268579258583486, 0.006862786132842302, 0.001845047459937632, -0.031015481799840927, 0.02108420431613922, 0.0022115418687462807, 0.012762626633048058, -0.012856046669185162, 0.017131812870502472, 0.03075677901506424, -0.004897370468825102, 0.023843690752983093, 0.032423969358205795, 0.02582707069814205, -0.04581897705793381, 2.122163823514711e-05, 0.02977946028113365, -0.020308097824454308, -0.01140444166958332, -0.05047561228275299, -0.041047364473342896, 0.01691622845828533, 0.0459914468228817, -0.044065553694963455, -0.005845943931490183, 0.0020750046242028475, -0.00022456760052591562, -0.035729605704545975, -0.0016510210698470473, -0.03383245691657066, -0.034263625741004944, -0.007617333438247442, -0.026861878111958504, 0.013775874860584736, -0.017289908602833748, -0.012906349264085293, 0.02069615013897419, -0.03843160346150398, 0.04849223047494888, -0.031532883644104004, -0.027278676629066467, -0.006327416747808456, 0.013732758350670338, 0.02594204992055893, 0.03216526657342911, 0.01774982362985611, -0.056885670870542526, 0.0009584545623511076, 0.0051345136016607285, 0.01767796277999878, -0.06369815021753311, -0.02349875494837761, -0.013711200095713139, 0.012281153351068497, -0.020379958674311638, -0.007157418876886368, 0.018885238096117973, -0.01412081066519022, -0.035873327404260635, -0.005486635956913233, -0.02781045250594616, 0.0595589205622673, 0.03064180165529251, 0.031101714819669724, -0.03337254375219345, -0.010621149092912674, 0.018008526414632797, 0.010103745386004448, 0.020178746432065964, -0.0069310544058680534, -0.03857532516121864, 0.008795863948762417, 0.023699967190623283, 0.01703120768070221, -0.011857169680297375, -0.01287760492414236, -0.01731865294277668, -0.026631921529769897, -0.04280078783631325, 0.017002463340759277, -0.01312912069261074, -0.004886591341346502, -0.02266515977680683, -0.046365126967430115, 0.001954636536538601, 0.00758140254765749, -0.008565906435251236, -0.033430032432079315, 0.02237771265208721, 0.003564337035641074, -0.019589481875300407, -0.0337749682366848, -0.016326963901519775, -0.01153379213064909, 0.024763518944382668, -0.016226356849074364, -0.0038805282674729824, 0.05573588237166405, -0.07416120916604996, -0.0007612842018716037, -0.01501908153295517, -0.03791419789195061, 0.017548611387610435, -0.01516280509531498, 0.03613203018903732, -0.019876927137374878, -0.05234401300549507, -0.0038014804013073444, -0.06318075209856033, 0.0012827301397919655, 0.009974394924938679, -0.0222339890897274, 0.0009584545623511076, -0.02977946028113365, 0.0013527952833101153, 0.003294855821877718, -0.011167298071086407, 0.04386433959007263, 0.004002693109214306, 0.006453174632042646, 0.016010772436857224, 0.08502668887376785, 0.01806601509451866, 0.01117448415607214, 0.005996853578835726, -0.019057705998420715, -0.026631921529769897, 0.0017372550209984183, -0.0054794494062662125, 0.016571292653679848, 0.03046933375298977, 0.021098576486110687, -0.02129978872835636, -0.03618951886892319, -0.0010473832953721285, 0.007355038076639175, -0.011921845376491547, 0.009888160973787308, -0.06398560106754303, 0.001176734222099185, 0.013833364471793175, -0.018525930121541023, -0.03236648067831993, 0.07663324475288391, 0.04906712472438812, -0.015867048874497414, -0.016829995438456535, -0.022075893357396126, 0.025410274043679237, -0.008652140386402607, 0.023872435092926025, 0.04558902233839035, 0.00459914468228817, -0.005598021205514669, 0.027580495923757553, -0.000665169267449528, -0.024634167551994324, -0.0005623172619380057, -0.017907919362187386, -0.01670064404606819, -0.0015126874204725027, -0.011461930349469185, 0.015478995628654957, -0.006920275278389454, 0.0265456885099411, -0.006129797548055649, -0.01081517618149519, 0.023728711530566216, -0.00582079216837883, 0.02776733599603176, -0.039897579699754715, -0.03575835004448891, 0.006474733352661133, -0.014278906397521496, -0.00022355705732479692, -0.0025439017917960882, 0.003524813102558255, -0.015708953142166138, 0.004132044035941362, 0.004254208877682686, -0.014760379679501057, -0.04576148837804794, 0.006262741517275572, 0.040759917348623276, -0.01228833943605423, -0.03245271369814873, 0.017663588747382164, 0.02436109445989132, 0.01993441767990589, 0.02931954711675644, -0.041449788957834244, 0.004383559804409742, -0.009888160973787308, 0.02781045250594616, 0.005443518981337547, 0.026991229504346848, 0.01020435243844986, 0.02242082916200161, 0.019244546070694923, -0.02464853972196579, 0.0008780593634583056, -0.02773859165608883, -0.00704962620511651, 0.004591958597302437, 0.0028834480326622725, 0.03621826320886612, -0.009342011995613575, 0.0035122374538332224, -0.01856904663145542, 0.012712323106825352, 0.005411181133240461, -0.010283399373292923, 0.036591943353414536, 0.0015513129765167832, -0.020178746432065964, -0.006769366096705198, -0.011562536470592022, 0.014178300276398659, -0.024404210969805717, -0.020724894478917122, -0.008364694193005562, -0.015177177265286446, -0.008953959681093693, -0.030268119648098946, 0.0215584896504879, -0.00817066803574562, 0.006352568510919809, -0.02457667887210846, 0.009945650584995747, 0.018640907481312752, -0.020379958674311638, 0.020638661459088326, -0.029089588671922684, 0.02539590187370777, 0.02633010223507881, 0.006873565260320902, 0.035585880279541016, -0.011814052239060402, 0.028543440625071526, -0.004052996169775724, 0.00297686830163002, -0.00657533947378397, -0.006722656078636646, 0.013330332934856415, 0.029578248038887978, -0.03202154487371445, -0.001377048552967608, 0.0006296875653788447, 0.05151041969656944, -0.0016573088942095637, 0.01892835460603237, 0.015996400266885757, 0.003909273073077202, -0.03239522501826286, 0.019531991332769394, 0.0001857174065662548, -0.04498538374900818, 0.025568369776010513, -0.015867048874497414, 0.03909273073077202, -0.007559843827039003, 0.000790927093476057, -0.0240736473351717, -0.003397258697077632, -0.017117440700531006, 0.025352785363793373, 0.027422400191426277, -0.027508633211255074, 0.056885670870542526, -0.022751392796635628, 0.012108685448765755, -0.034579817205667496, -0.02324005216360092, -0.005296202376484871, -0.031561627984046936, 0.010089373216032982, 0.020423077046871185, -0.002152255969122052, -0.014271720312535763, 0.012604530900716782, 0.01997753418982029, -0.017692334949970245, 0.007283176761120558, -0.03308509662747383, -0.010197165422141552, -0.02338377572596073, 0.00545070506632328, -0.0036218264140188694, -0.03532717749476433, -0.03480977565050125, -0.06013381481170654, -0.030239375308156013, -0.0294201523065567, -0.024777891114354134, 0.05036063492298126, 0.02198966033756733, 0.013725572265684605, -0.020308097824454308, -0.009924091398715973, -0.0437493622303009, 0.03167660906910896, 0.00804850272834301, -0.0279829204082489, -0.033142585307359695, 0.022507064044475555, 0.011706260032951832, 0.008616209961473942, 0.03863281384110451, 0.011857169680297375, 0.023326287046074867, 0.03046933375298977, -0.005928584840148687, -0.01002469751983881, 0.02737928181886673, -0.04570399969816208, 0.0028600930236279964, -0.010599590837955475, -0.018008526414632797, -0.015910165384411812, -0.011972147971391678, -0.02237771265208721, -0.0233550313860178, 0.005914212670177221, -0.01304288674145937, -0.019991906359791756, 0.030124396085739136, 0.0020929700694978237, 0.0329701192677021, -0.0029175824020057917, -0.007811359595507383, -0.015090943314135075, -0.025597114115953445, 0.018669651821255684, -0.02367122285068035, -0.031245438382029533, -0.013452498242259026, -0.013955529779195786, 0.012511110864579678, 0.02417425438761711, 0.019158311188220978, 0.02781045250594616, 0.01248236559331417, 0.015191549435257912, -0.00909049715846777, -0.0002957555407192558, -0.0502169094979763, 0.04487040266394615, -0.03179158642888069, -0.0233119148761034, -0.015680208802223206, -0.019891301169991493, 0.005389622412621975, 0.015795188024640083, 0.02306758426129818, 0.008364694193005562, -0.033430032432079315, 0.01979069411754608, 0.01911519467830658, -0.052430249750614166, 0.007674822583794594, -0.03912147507071495, -0.012115871533751488, -0.021544117480516434, 0.006126204505562782, -0.0031044224742799997, -0.05202782154083252, -0.03092924691736698, -0.00855153426527977, 0.011828425340354443, 0.031532883644104004, 0.0002721759374253452, 0.010836734436452389, -0.014142369851469994, 0.017002463340759277, -0.034004926681518555, 0.01243206299841404, -0.05358003452420235, -0.03288388252258301, -0.005924991797655821, -0.020638661459088326, -0.004308104980736971, -0.02069615013897419, -0.02862967550754547, 0.01997753418982029, -0.0007419713656418025, 0.014537608250975609, -0.0047033438459038734, 0.020926108583807945, -0.03205028921365738, 0.015263411216437817, -0.016657527536153793, -0.0003718839434441179, -0.008041316643357277, 0.009658203460276127, -0.03782796487212181, -0.018152248114347458, 0.055132243782281876, -0.01703120768070221, 0.048635952174663544, 0.02055242657661438, 0.0026552872732281685, -0.009004263207316399, 0.00791915226727724, -0.025553997606039047, 0.009694134816527367, -0.015507740899920464, 0.01835346221923828, 0.007495168596506119, -0.007358631119132042, -0.015220293775200844, 0.02776733599603176, 0.007897594012320042, 0.0008515603840351105, -0.025783954188227654, -0.0013285420136526227, 0.005562090314924717, 0.0182815995067358, -0.0024522782769054174, -0.018295971676707268, 0.001537838950753212, 0.002777452114969492, 0.0330563522875309, -0.01681562326848507, -0.01785043068230152, 0.03825913369655609, -0.058150433003902435, -0.01106669194996357, -0.011957775801420212, -0.004056589212268591, -0.005874688737094402, 0.05386748164892197, -0.002772062551230192, 0.008724002167582512, -0.03374622389674187, -0.006715469527989626, -0.012151801958680153, 0.013617780059576035, -0.02234896831214428, -0.015090943314135075, -0.005041093565523624, -0.015263411216437817, -0.003109812270849943, 0.022435201331973076, -0.006111831869930029, 0.015565229579806328, -0.0143507681787014, 0.0037152464501559734, 0.010470240376889706, -0.0005712999845854938, -0.0040278444066643715, -0.008501231670379639, -0.023369403555989265, -0.015349645167589188, -0.013474056497216225, -0.007423306815326214, -0.02781045250594616, -0.013876481913030148, 0.02119918167591095, -0.0032768906094133854, -0.019819438457489014, -0.04222589731216431, -0.004369187168776989, -0.024734774604439735, 0.009931277483701706, -0.007229280192404985, -0.01251829694956541, -0.00011554003140190616, -0.00024994375417008996, -0.0012530871899798512, -0.013071631081402302, -0.034436095505952835, -0.0005367166013456881, 0.0226364154368639, 0.0011309224646538496, 0.02719244174659252, 0.02438983879983425, -0.02589893341064453, 0.018842119723558426, 0.020825501531362534, 0.0019438571762293577, 0.015680208802223206, 0.023153819143772125, 0.01634133607149124, -0.009794740937650204, 0.026028282940387726, 0.010836734436452389, 0.018942726776003838, -0.00631304457783699, -0.02781045250594616, 0.042484596371650696, -0.012654833495616913, 0.017663588747382164, 0.001915112603455782, -0.021472256630659103, -0.007890406996011734, 0.018727142363786697, -0.005885467864573002, 0.0010375023121014237, 0.02428923174738884, -0.03923645243048668, -0.03216526657342911, 0.006154948845505714, -0.01983381062746048, -0.02903209999203682, 0.018267227336764336, 0.006259148474782705, 0.021026713773608208, -0.0091623580083251, -0.04788859188556671, 0.03541341423988342, 0.009780368767678738, 0.0344073511660099, 0.01426453422755003, -0.020969225093722343, -0.034263625741004944, 0.007373003754764795, -0.043921831995248795, -0.011454744264483452, 0.042197152972221375, 0.0168874841183424, 0.015478995628654957, -0.004818322602659464, -0.00011408034333726391, 0.00880305003374815, -0.0027828416787087917, 0.031015481799840927, 0.01724679209291935, 0.03998381271958351, 0.028141016140580177, 0.025783954188227654, 0.01914393901824951, -0.036735668778419495, 0.0030110024381428957, -0.009629459120333195, -0.005051872693002224, 0.04639387130737305, 0.014544794335961342, -0.007495168596506119, 0.048377253115177155, 0.007365817669779062, 0.0019510433776304126, 0.002834941493347287, 0.02931954711675644, 0.004070961382240057, 0.0280260369181633, 0.017448004335165024, 0.0026534907519817352, 0.01979069411754608, -0.044209275394678116, 0.03294137120246887, 0.0011399051873013377, 0.0265888050198555, -0.03423488140106201, -0.0020372772123664618, -0.021242298185825348, 0.015924537554383278, 0.006154948845505714, -0.015407134778797626, -0.03167660906910896, -0.0008618904976174235, -0.029434524476528168, -0.0036469779442995787, 0.018454067409038544, -0.00944980513304472, -0.019560737535357475, -0.004746460821479559, -0.04489915072917938, 0.006018411833792925, -0.02194654382765293, -0.03794294223189354, 0.016729388386011124, -0.02719244174659252, 9.059899639396463e-06, 0.009528852999210358, 0.01624072901904583, -0.01474600750952959, -0.024547934532165527, -0.03420613706111908, -0.015507740899920464, 0.02148662880063057, 0.0028690756298601627, -0.012194919399917126, 0.00679811043664813, -0.02622949704527855, -0.002145069884136319, -0.032567691057920456, 0.0062878928147256374, -0.023081956431269646, 0.01273388136178255, -0.014322023838758469, 0.009974394924938679, -0.04142104461789131, -0.011612839996814728, 0.014760379679501057, 0.024131136015057564, -0.022507064044475555, 0.012022451497614384, -0.004157195333391428, -0.018640907481312752, 0.0011228380026295781, -0.013466870412230492, -0.029218940064311028, -0.002078597666695714, -0.02898898348212242, -0.03360249847173691, 0.008853353559970856, 0.0029624958988279104, -0.02446169964969158, 0.007473609875887632, -0.016643155366182327, -0.00533572630956769, 0.0013608797453343868, -0.02927643060684204, -0.027364909648895264, 0.0033002456184476614, 3.435884354985319e-05, 0.013768688775599003, 0.008429369889199734, 0.00409611314535141, 0.021860308945178986, -0.0020336841698735952, 0.007588588632643223, -0.03219401091337204, -0.03409115970134735, -0.00780417351052165, -0.006560967303812504, -0.012065568007528782, -0.0029463269747793674, -0.01648505963385105, 0.012848860584199429, -0.016298217698931694, -0.029233312234282494, 0.013624966144561768, 0.031245438382029533, -0.023728711530566216, 0.01645631343126297, -0.034292370080947876, -0.008889283984899521, -0.0032535353675484657, -0.019100822508335114, -0.03409115970134735, 0.02608577348291874, -0.019014587625861168, 0.03288388252258301, -0.005770489107817411, -0.00029081504908390343, 0.0071897562593221664, 0.011167298071086407, 0.013337519019842148, 0.001416572486050427, -0.01354591827839613, -0.0016411400865763426, 0.011483489535748959, -0.023455636575818062, -0.015723325312137604, 0.02737928181886673, 0.013143492862582207, -0.012604530900716782, 0.0233550313860178, 0.024346722289919853, -0.025712093338370323], "id": 97}, {"title": "Bob Wilson (footballer, born 1941)", "text": "Robert \"Bob\" Primrose Wilson OBE (born 30 October 1941 in Chesterfield, England) is a former Scotland international football goalkeeper and later broadcaster and is noted for creating the charity the Willow FoundationAs a player, Wilson is most noted for his career at Arsenal between 1963 and 1974. He made over 300 appearances for Arsenal and two appearances for Scotland.", "vector": [0.02003723941743374, 0.005079223774373531, -0.02599387988448143, 0.01989741250872612, 0.011102280579507351, -0.005596584174782038, -0.007173136342316866, -0.014737788587808609, 0.001047830213792622, 0.08288957178592682, -0.02238633669912815, 0.028832372277975082, -0.011864339001476765, 0.03154502063989639, -0.0036669687833637, 0.04709380492568016, 0.005110684782266617, 0.03769741579890251, -0.03450935706496239, -0.06040535867214203, 0.02656717039644718, -0.022358370944857597, -0.016583507880568504, 0.00018330474267713726, 0.025085002183914185, 0.03017471358180046, 0.020191049203276634, 0.01304587908089161, 0.0006217941408976912, -0.013835903257131577, 0.021295685321092606, 0.020554600283503532, 0.010389162227511406, 0.0019156328635290265, -0.006851533427834511, -0.002890927717089653, -0.01696104183793068, -0.018037710338830948, -0.004261234309524298, 0.022638026624917984, -0.007606600411236286, 0.009207622148096561, 0.031489089131355286, -0.02149144373834133, -0.005628045182675123, 0.009046820923686028, -0.026427343487739563, 0.021169841289520264, -0.025532448664307594, 0.0023403579834848642, 0.04723363369703293, -0.050981003791093826, 0.030118782073259354, 0.08115571737289429, 0.013136766850948334, -0.0319644995033741, -0.01580047607421875, 0.041276995092630386, 0.035711869597435, -0.036830488592386246, 0.029447611421346664, -0.06113245710730553, 0.015646666288375854, -0.011857347562909126, 0.021351614966988564, -0.003427514573559165, 0.03512459620833397, -0.010333231650292873, -0.06762044131755829, 0.0001246428582817316, 0.0046177939511835575, 0.024413831532001495, 0.030146747827529907, 0.0060335444286465645, -0.02020503208041191, 0.036438971757888794, 0.06292224675416946, -0.012738259509205818, 0.02270793914794922, 0.023043524473905563, -0.002567577175796032, -0.007319954689592123, -0.024917209520936012, -0.01086457446217537, -0.04038209840655327, -0.02100204862654209, -0.0036215248983353376, -0.06146804243326187, 0.017072902992367744, 0.027797650545835495, -0.013374472968280315, 0.05204369127750397, 0.01280118152499199, -0.02568626031279564, -0.014947528950870037, -0.01677926629781723, -0.03548814728856087, -0.01981351710855961, 0.015772510319948196, -0.00892796739935875, -0.023518936708569527, -0.003285939572378993, -0.01497549470514059, 0.005044266581535339, -0.015017443336546421, -0.021211788058280945, 0.020806290209293365, -0.011095289140939713, 0.02750401385128498, -0.004761116579174995, 0.03000692091882229, 0.01571657881140709, -0.02835696004331112, 0.032244157046079636, -0.04519215598702431, 0.020624514669179916, 0.00885805394500494, -0.014220427721738815, -0.04041006416082382, 0.00442902697250247, -0.0035603505093604326, -0.02662310190498829, -0.01610809564590454, -0.03506866469979286, 0.01633181795477867, -0.029671335592865944, -0.015828439965844154, 0.006393599323928356, -0.0003165775560773909, 0.002829753328114748, -0.022232526913285255, -0.016933076083660126, -0.05086914077401161, 0.04152868315577507, -0.05047762393951416, 0.0447726733982563, -0.01508735679090023, 0.015688613057136536, 0.049750521779060364, 0.029084060341119766, 0.01620597392320633, 4.1948165744543076e-05, 0.047289565205574036, 0.0902724489569664, 0.011332996189594269, -0.05176403373479843, 0.019114380702376366, 7.805199129506946e-05, 0.0030534768011420965, 0.00983684416860342, -0.017869917675852776, 0.003705421229824424, 0.0026357430033385754, 0.032328050583601, -0.002307149115949869, -0.03993465378880501, -0.024959158152341843, -0.04421336576342583, 0.005841281730681658, 0.016947058960795403, -0.014737788587808609, -0.0016709351912140846, -0.0003089307574555278, 0.019240224733948708, -0.03529239073395729, -0.0009281031670980155, -0.01399670448154211, 0.007236058358103037, 0.04798870161175728, 0.016569525003433228, -0.014402203261852264, -0.0031181469094008207, 0.00455137575045228, 0.012961982749402523, -0.020232997834682465, 0.0017102615674957633, -0.06454424560070038, -0.00599858770146966, 0.010109507478773594, -0.0030150243546813726, -0.01985546387732029, -0.033222947269678116, -0.01594030298292637, -0.022190578281879425, -0.016667403280735016, -0.019463948905467987, 0.028720509260892868, -0.005477731116116047, 0.006519443821161985, -0.03579576686024666, 0.026553187519311905, 0.019394034519791603, 0.008158917538821697, -0.0406058244407177, 0.036914385855197906, 0.01462592650204897, 0.006190849933773279, -0.041864268481731415, 0.007795367389917374, -0.012269837781786919, 0.05380551144480705, 0.04491250216960907, 0.01647164672613144, -0.016975024715065956, 0.003023763420060277, 0.041332926601171494, 0.0138219203799963, 0.013786963187158108, -0.01861100271344185, -0.01726866140961647, 0.0380050353705883, 0.008130952715873718, -0.03165687993168831, 0.05056152120232582, 0.01780000515282154, -0.005739907268434763, -0.014122548513114452, 0.03400597721338272, -0.008319719694554806, 0.020988065749406815, 0.00020668210345320404, 0.014346272684633732, -0.017646195366978645, -0.007487747352570295, -0.01931013911962509, 0.031321294605731964, -0.032300084829330444, 0.0010513258166611195, 0.020540617406368256, 0.0010172430193051696, -0.03512459620833397, 0.030734021216630936, -0.008515477180480957, 0.028832372277975082, 0.0058307950384914875, 0.05053355544805527, 0.03711014240980148, -0.03537628427147865, 0.006330677308142185, -0.012025140225887299, 0.02323928289115429, 0.012332760728895664, -0.033139050006866455, -0.06336969137191772, 0.0372220054268837, 0.02020503208041191, -0.024623572826385498, 0.015786493197083473, -0.05545547232031822, -0.009410372003912926, 0.05070134997367859, 0.0059111956506967545, -0.006956404075026512, -0.013675102032721043, -0.019575810059905052, -0.035851698368787766, -0.005572114605456591, 0.04376591742038727, 0.04301084950566292, 0.01571657881140709, -0.07589821517467499, -0.01395475585013628, 0.01883472502231598, 0.06734078377485275, -0.06443238258361816, -0.017016971483826637, -0.060069773346185684, -0.011207151226699352, 0.023267248645424843, -0.03862027823925018, 0.01682121306657791, 0.003375079482793808, 0.031097572296857834, 0.01714281737804413, -0.030482333153486252, -0.02319733425974846, -0.01406661793589592, 0.015171253122389317, -0.018331347033381462, -0.0003611474821809679, 0.02358885109424591, -0.03210432827472687, 0.02172914892435074, -0.053973305970430374, -0.006596348714083433, -0.022693956270813942, -0.003235252108424902, 0.02768578939139843, 0.0031618429347872734, -0.01931013911962509, -0.037054210901260376, 0.07863882929086685, 0.009927731938660145, 0.03375428915023804, 0.04910731688141823, -0.004914926830679178, 0.006627810187637806, -0.02242828533053398, 0.012283820658922195, 0.03392208367586136, 0.0030167722143232822, 0.014919564127922058, -0.03820079565048218, -0.06281038373708725, -0.04242357611656189, -0.030817918479442596, -0.005844777449965477, -0.002476689638569951, 0.03339073807001114, -0.009270544163882732, -0.07930999994277954, -0.034956805408000946, -0.020023256540298462, -0.0010137473000213504, 0.032383982092142105, 0.030817918479442596, 0.02007918804883957, 0.002868205774575472, -0.03543221578001976, 0.03341870382428169, -0.01388484239578247, 0.025406604632735252, -0.0586715005338192, -0.004079458769410849, 0.03624321520328522, -0.053749579936265945, 0.010633859783411026, -0.0197575856000185, -0.026357430964708328, -0.031125538051128387, -0.01633181795477867, -0.05738509073853493, 0.014052635058760643, 0.023295214399695396, 0.02666505053639412, 0.007134683430194855, -0.031852640211582184, 0.056322403252124786, -0.072262704372406, 0.012989948503673077, 0.030482333153486252, 0.009927731938660145, -0.026553187519311905, -0.018093641847372055, -0.05777660384774208, -0.01757628098130226, 0.07612193375825882, -0.04927511140704155, -0.026818860322237015, -0.04144478589296341, 0.0006436421535909176, 0.03339073807001114, 0.060908734798431396, 0.03702624514698982, -0.018093641847372055, -0.0038242742884904146, 0.016947058960795403, -0.03350260108709335, 0.011053341440856457, -0.056602057069540024, 0.005809820722788572, 0.011053341440856457, -0.00017817046318668872, 0.022540146484971046, -0.012871094979345798, -0.003205538960173726, 0.036215249449014664, -0.03176874294877052, -0.0074318163096904755, -0.030286574736237526, 0.013982721604406834, 0.0027336219791322947, -0.0011640615994110703, 0.029279818758368492, 0.026147689670324326, 0.02136559784412384, -0.03241194784641266, -0.04463284835219383, -0.014821684919297695, -0.005834290757775307, -0.04854800924658775, -0.003546367632225156, -0.03355853259563446, -0.008019090630114079, -0.001001512398943305, -0.042311716824769974, -0.006134918890893459, -0.05100896954536438, 0.03235601633787155, 0.022554129362106323, 0.015926320105791092, 0.045387912541627884, -0.005460252519696951, -0.08233026415109634, -0.010200395248830318, -0.019729619845747948, 0.0017967796884477139, 0.021757114678621292, 0.033055152744054794, -0.010920505039393902, 0.0018701889785006642, 0.007071761414408684, -0.022232526913285255, -0.011416892521083355, 0.013304559513926506, -0.018233468756079674, -0.024246038869023323, -0.017100868746638298, 0.01887667365372181, 0.02358885109424591, 0.005505696404725313, 0.046142980456352234, -0.035991523414850235, -0.06062908098101616, 0.025490501895546913, 0.001368558849208057, 0.0043800873681902885, -0.013765988871455193, 0.020988065749406815, -0.015325062908232212, -0.013430403545498848, -0.012528518214821815, 0.02554643154144287, 0.005019797012209892, 0.014905581250786781, 0.02554643154144287, 0.029475577175617218, 0.06219514459371567, -0.005925178062170744, -0.00938939768821001, -0.04910731688141823, 0.014695839956402779, -0.010277300141751766, 0.018932605162262917, -0.020484687760472298, -0.0481564924120903, -0.08434377610683441, -0.010710764676332474, 0.004114415962249041, 0.005309938453137875, 0.025448553264141083, 0.07405249029397964, -0.0013327281922101974, -0.027224358171224594, -0.028384923934936523, -0.0019663202110677958, 0.00872521847486496, 0.045387912541627884, 0.008774157613515854, 0.03610338643193245, 0.0010618128580972552, -0.0051456415094435215, 0.009445328265428543, 0.01798178069293499, -0.02911202609539032, -0.05212758481502533, 0.06325783580541611, 0.012885077856481075, -0.039095688611269, 0.032300084829330444, -0.05514785274863243, 0.012745250947773457, 0.049163248389959335, 0.007788375951349735, -0.01745043694972992, 0.006617323029786348, 0.0009420858696103096, -0.02177109755575657, -0.0013003931380808353, -0.023449024185538292, -0.020904168486595154, 0.0349847674369812, -0.04505232721567154, 0.00808201264590025, -0.00825679674744606, -0.0195478443056345, 0.005142145790159702, -0.018792778253555298, 0.045331984758377075, -0.030678091570734978, 0.03551611304283142, -0.036522869020700455, -0.042926955968141556, 0.0018911630613729358, 0.0670052021741867, -0.012067088857293129, -0.050142038613557816, -0.029056094586849213, 0.012234881520271301, -0.004893952514976263, 0.02030291222035885, 0.012724276632070541, -0.02862263098359108, 0.030202679336071014, 0.013807937502861023, -0.01085758302360773, -0.009724983014166355, 0.002553594531491399, 0.024861278012394905, 0.023742660880088806, 0.028287045657634735, -0.006938925478607416, 0.013982721604406834, 0.028077304363250732, 0.035460181534290314, -0.0100605683401227, 0.013276593759655952, 0.06868312507867813, 0.009578164666891098, 0.042619336396455765, 0.01606614701449871, -0.0016482132486999035, -0.0083686588332057, -0.015213200822472572, -0.019505895674228668, -0.03912365436553955, -0.02030291222035885, -0.028301028534770012, 0.023071490228176117, 0.006099962163716555, -0.014262376353144646, 0.023602833971381187, -0.001861449796706438, 0.06991361081600189, 0.03263567015528679, 0.015143287368118763, 0.013542265631258488, -0.004771603737026453, -0.09066396951675415, -0.015492855571210384, -0.009424353949725628, 0.028077304363250732, 0.02852475270628929, -0.016709351912140846, -0.024497728794813156, 0.021113909780979156, 0.026245567947626114, 0.028832372277975082, 0.012500553391873837, 0.024469763040542603, 0.050365764647722244, -0.016989005729556084, 0.010410136543214321, -0.044716741889715195, -0.012982957065105438, 0.0020135119557380676, -0.0032789481338113546, -0.004103928804397583, -0.03492883965373039, -0.028860338032245636, -0.03529239073395729, 0.011130246333777905, 0.007103222422301769, 0.017212729901075363, 0.04124902933835983, -0.0002529998600948602, -0.04793277010321617, -0.02199482172727585, -0.014821684919297695, -0.014723805710673332, 0.032244157046079636, 0.0007485125679522753, -0.023337163031101227, 0.00994870625436306, 0.031181469559669495, 0.03733386471867561, -0.01949191465973854, 0.022889714688062668, -0.034481391310691833, 0.00697737792506814, -0.011277064681053162, -0.00934744905680418, 0.029084060341119766, 0.007858289405703545, -0.053078409284353256, -0.0030062850564718246, 0.031181469559669495, 0.012046114541590214, 0.0021603305358439684, -0.020023256540298462, 0.014793719165027142, -0.024413831532001495, 0.0009045072947628796, -0.0267069973051548, -0.00200302479788661, -0.00685502914711833, 0.012724276632070541, 0.011312021873891354, -0.019338103011250496, -0.04169647395610809, -0.01195522677153349, -0.03610338643193245, 0.004684211686253548, 0.011444857344031334, 0.03476104512810707, 0.005037275608628988, 0.01075271237641573, 0.019394034519791603, -0.006858524866402149, 0.006288729142397642, 0.0030779466032981873, -0.010941479355096817, -0.016681386157870293, 0.024917209520936012, 0.0001365500211250037, 0.0015957780415192246, -0.014807702042162418, 0.02964336983859539, -0.019156329333782196, -0.017702125012874603, 0.007264023646712303, 0.016947058960795403, -0.028105270117521286, 0.020484687760472298, 0.025350674986839294, -0.014793719165027142, -0.04144478589296341, 0.027294272556900978, 0.018932605162262917, -0.002623508218675852, -0.022721922025084496, -0.0300908163189888, -0.01132600475102663, 0.016499610617756844, 0.04348626360297203, -0.01557675190269947, 0.015255149453878403, -0.06197142228484154, 0.005100197624415159, 0.009822862222790718, 0.041193097829818726, -0.008445563726127148, -0.020177066326141357, -0.015297097153961658, 0.010584920644760132, -0.0010784174082800746, 0.06079687178134918, -0.026720980182290077, 0.02105797827243805, -0.023518936708569527, 0.019352085888385773, 0.016191991046071053, -0.009731974452733994, -0.0026497256476432085, -0.02185499295592308, 0.007718462496995926, 0.006215319503098726, -0.018009744584560394, 0.0028856841381639242, -0.024134177714586258, -0.10397551953792572, -0.03227212280035019, 0.021337632089853287, -0.007424825336784124, 0.01315074972808361, 0.020624514669179916, 0.028021374717354774, -0.0008616851991973817, -0.017995761707425117, -0.0018894152017310262, -0.022498199716210365, 0.04015837609767914, 0.011060332879424095, 0.02613370679318905, -0.009906758554279804, 0.010473058559000492, -0.02732223831117153, 0.011011392809450626, 0.06560692936182022, 0.03202043101191521, 0.009193639270961285, -0.0017382270889356732, -0.02065248042345047, -0.0045758457854390144, 0.016038181260228157, 0.013528282754123211, -0.029056094586849213, -0.0003574333095457405, 0.05447668209671974, 0.003971092868596315, -0.016261905431747437, -0.02465153858065605, -0.0007174884085543454, -0.031321294605731964, 0.03635507449507713, -0.008270779624581337, -0.015283114276826382, 0.031237399205565453, 0.0032702090684324503, 0.02648327499628067, 0.0016508350381627679, -0.018261434510350227, 0.011235116980969906, -0.04203205928206444, 0.0238964706659317, 0.030286574736237526, -0.01322066318243742, -0.023756643757224083, -0.03464918211102486, 0.010899531655013561, -0.005631540901958942, 0.019785551354289055, -0.0017950318288058043, -0.02007918804883957, -0.00878814049065113, 0.011319013312458992, -0.003046485362574458, -0.012954991310834885, 0.012598431669175625, 0.0031653386540710926, -0.013828911818563938, 0.024287987500429153, -0.05109286308288574, -0.002924136584624648, 0.0319644995033741, -0.01602419838309288, 0.014255384914577007, 0.01333252526819706, 0.006019561551511288, 0.03797707334160805, -0.01266135461628437, 0.006026552990078926, -0.014989477582275867, -0.0009237335179932415, 0.02185499295592308, 0.021799063310027122, 0.010703773237764835, -0.03845248371362686, -0.02919592335820198, -0.003497428260743618, 0.0010521997464820743, 0.025532448664307594, 0.003132129553705454, 0.01905844919383526, 0.0015782996779307723, -0.01066182553768158, -0.02639937773346901, -0.004726159851998091, 0.024945175275206566, 0.0002013293415075168, 0.010640851221978664, 0.024427814409136772, 0.06661368161439896, -0.010137473233044147, -0.03241194784641266, -0.02091815136373043, -0.05542750656604767, -0.022442268207669258, -0.02323928289115429, -0.011242108419537544, 0.039822790771722794, 0.07181525975465775, 0.014150514267385006, 0.0028856841381639242, -0.0225681122392416, 0.026902755722403526, 0.004806560464203358, 0.029000164940953255, -0.017688142135739326, 0.018303383141756058, -0.005149137228727341, 0.009291518479585648, -0.0008752309950068593, -0.020890185609459877, 0.026651067659258842, 0.013367481529712677, -0.003929144702851772, -0.0022494702134281397, 0.012353734113276005, 0.03092977963387966, 0.042087990790605545, -0.010976436547935009, -0.021603304892778397, -0.013437394984066486, 0.028692545369267464, 0.01793983206152916, 0.024008333683013916, -0.030901813879609108, -0.018499139696359634, -0.02154737338423729, -0.06297817826271057, -0.03252381086349487, -0.03811689838767052, -0.027881545946002007, -0.01700298860669136, 0.01268931943923235, -0.009235587902367115, 0.007536686956882477, -0.04099734127521515, -0.03397801145911217, -0.013255620375275612, 0.03115350380539894, 0.01659749075770378, -0.0002228496305178851, 0.006841046269983053, -0.00850149430334568, 0.02474941685795784, 0.007606600411236286, -0.0007135557825677097, -0.006099962163716555, -0.011179185472428799, -0.0056909676641225815, -0.029531508684158325, -0.011367952451109886, -0.035096630454063416, -0.04161258041858673, -0.034201737493276596, -0.003946623299270868, 0.002829753328114748, -0.011123254895210266, 0.013115792535245419, 0.011668581515550613, 0.017478402704000473, -0.02096009999513626, -0.015227183699607849, 0.015059391036629677, -0.006257267668843269, 0.019743602722883224, 0.0231414046138525, -0.032915327697992325, 0.030202679336071014, -0.0068864901550114155, -0.0259519312530756, 0.030566228553652763, -0.007257032673805952, 0.02639937773346901, 0.009864809922873974, 0.011409901082515717, 0.0133534986525774, -0.02862263098359108, 0.00890000257641077, 0.021085944026708603, -0.0439896434545517, -0.0173106100410223, -0.013975730165839195, 0.060069773346185684, 0.010473058559000492, -0.03587966412305832, 0.012276829220354557, 0.009997646324336529, 0.039822790771722794, 0.004991831723600626, -0.01310880109667778, -0.025979897007346153, 0.04192019999027252, -0.0038941879756748676, 0.025182882323861122, -0.052239447832107544, -0.04384981468319893, -0.03560001030564308, -0.037725381553173065, 0.012011157348752022, -0.04494046792387962, -0.00666626263409853, -0.013989713042974472, -0.007963160052895546, -0.0028647100552916527, 0.007047291845083237, -0.01985546387732029, 0.021533390507102013, 0.025071019306778908, -0.02733622118830681, -0.017520349472761154, -0.04116513207554817, 0.002284427173435688, -0.008249805308878422, 0.03680252283811569, -0.02693072147667408, 0.00044132964103482664, -0.0511767603456974, -0.0026637085247784853, 0.02407824620604515, 0.0013711806386709213, -0.018806761130690575, -0.05635036900639534, 0.02114187553524971, -0.05288265272974968, -0.04256340488791466, 0.013059861958026886, 0.04625484347343445, 0.002567577175796032, -0.006068501155823469, -0.004047997761517763, -0.007305971812456846, -0.01284313015639782, -0.014458133839070797, -0.02585405297577381, -0.003764847759157419, 0.006536922417581081, 0.008466538041830063, 0.018219485878944397, 0.03582373261451721, -0.02888830192387104, -0.0041773379780352116, -0.02061053179204464, -0.011444857344031334, -0.026147689670324326, -0.02925185300409794, -0.02817518450319767, -0.01708688586950302, 0.013157741166651249, 0.025085002183914185, 0.024329936131834984, -0.03940330818295479, 0.024539675563573837, 0.02416214346885681, 0.017058920115232468, 0.017883900552988052, -0.013241637498140335, -0.04782090708613396, 0.011717520654201508, 0.024329936131834984, -0.0004754125257022679, 0.07092036306858063, 0.02590998262166977, 0.035991523414850235, -0.023798592388629913, 0.0009831601055338979, 0.004121406935155392, -0.021169841289520264, 0.005089710466563702, 0.03635507449507713, -0.03864824399352074, 0.015926320105791092, -0.030789952725172043, -0.02799340896308422, -0.006005578674376011, -0.016905110329389572, 0.0346212200820446, 0.02456764131784439, 0.03850841522216797, 0.011654598638415337, 0.020051222294569016, 0.006089475005865097, 0.03560001030564308, 0.004289199598133564, 0.04250747337937355, 0.009892775677144527, -0.03271956741809845, -0.039011791348457336, 0.0074667735025286674, 0.025476519018411636, -0.007683505304157734, -0.012325769290328026, 0.0068060895428061485, -0.006071996875107288, 0.004268225748091936, -0.01508735679090023, -0.012675337493419647, -0.005656010936945677, 0.05710543319582939, 0.008508485741913319, 0.014765754342079163, -0.01745043694972992, -0.029139991849660873, 0.047513287514448166, 0.0026304994244128466, 0.026902755722403526, -0.015632683411240578, -0.030062850564718246, -0.040298204869031906, -0.01816355437040329, -0.06868312507867813, 0.005778359714895487, 0.005558131728321314, -0.004166850820183754, 0.03529239073395729, -0.03506866469979286, 0.0013169975718483329, 0.0032037911005318165, 0.03744572773575783, 7.280847057700157e-05, -0.008005107752978802, -0.00257631647400558, -0.00018177538004238158, 0.001744344481267035, -0.008851062506437302, 0.009396389126777649, 0.010179420933127403, 0.008089004084467888, -0.05702153965830803, 0.016219956800341606, -0.0150454081594944, -0.013346507214009762, 0.021757114678621292, 0.00819387473165989, -0.021211788058280945, 0.04552774131298065, 0.0034956804011017084, -0.029699301347136497, -0.0707525685429573, 0.02430197037756443, 0.00400604959577322, -0.01068279892206192, 0.016317835077643394, 0.009913749992847443, -0.0007402102928608656, -0.019925378262996674, 0.006267754826694727, -0.01824745163321495, -0.014500082470476627, -0.009424353949725628, -0.008473529480397701, -0.04317864403128624, -0.01659749075770378, 0.005502200685441494, -0.030873849987983704, 0.0027248829137533903, 0.013800946064293385, -0.016038181260228157, -0.006411077920347452, 0.02658115327358246, -0.01121414266526699, 0.0008761048666201532, 0.013556248508393764, 0.0006244159303605556, -0.0074667735025286674, -0.01026331726461649, 0.020512651652097702, 0.043821848928928375, -0.01887667365372181, 0.005565123166888952, -0.015646666288375854, 0.002307149115949869, -0.02052663452923298, 0.01036818791180849, 0.0020012769382447004, -0.011556719429790974, 0.04463284835219383, 0.017841951921582222, 0.006582366302609444, -0.0010539476061239839, 0.03632710874080658, 0.0019191285828128457, -0.03940330818295479, 0.007417833898216486, -0.017296627163887024, 0.04603111743927002, -0.02919592335820198, 0.019128363579511642, 0.009934723377227783, -0.02363079972565174, -0.03459325432777405, -0.0034816977567970753, -0.04723363369703293, 0.013619170524179935, -0.029895057901740074, 0.013633153401315212, 0.01696104183793068, -0.02711249701678753, -0.020442739129066467, 0.026413360610604286, 0.012682328000664711, 0.020414773374795914, -0.017198747023940086, 0.0012724276166409254, -0.005075728055089712, 0.004317165352404118, 0.04670228809118271, 0.0077743930742144585, 0.00045924499863758683, -0.02212066575884819, -0.011298038996756077, -0.0008629960939288139, 0.04001854732632637, -0.008592382073402405, 0.023001577705144882, -0.014989477582275867, -0.002887431997805834, -0.012500553391873837, 0.007438807748258114, 0.035683903843164444, 0.0034380017314106226, -0.017953814938664436, 0.02804933860898018, 0.009927731938660145, 0.014038652181625366, -0.0071661449037492275, 0.005180598236620426, -0.002557090250775218, 0.029671335592865944, 0.006889985874295235, 0.005995091982185841, -0.017953814938664436, -0.04206002503633499, -0.03490087389945984, -0.0018090145895257592, 0.02003723941743374, 0.007138179149478674, 0.029056094586849213, -0.005033779889345169, -0.004268225748091936, 0.028035355731844902, -0.03400597721338272, 0.031405191868543625, 0.011228125542402267, -0.010088533163070679, 0.05979011580348015, -0.017282644286751747, 0.03627118095755577, -0.018862690776586533, -0.014793719165027142, -0.01217195950448513, -0.021533390507102013, 0.024847296997904778, -0.0022704442963004112, -0.002211017766967416, 0.02381257526576519, -0.05327416956424713, -0.020946117118000984, -0.01753433234989643, -0.012556483969092369, 0.014919564127922058, 0.011906287632882595, 0.045248087495565414, -0.020932134240865707, 0.008578399196267128, -0.02862263098359108, 0.0005623675533570349, -0.006274746265262365, -0.03375428915023804, -0.010277300141751766, 0.023337163031101227, 0.01820550300180912, 0.012402674183249474, 0.009018855169415474, -0.0011623137397691607, 0.017660176381468773, -0.023938419297337532, 0.02760189212858677, -0.03249584510922432, -0.01904446631669998, -0.01896057091653347, 0.005442774388939142, -0.025001106783747673, -0.024022314697504044, 0.00042341428343206644, 0.0034642191603779793, -0.03814486414194107, 0.005376356188207865, 0.0042577385902404785, -0.008795131929218769, -0.0015529560623690486, 0.024385865777730942, -0.005124667659401894, -0.019729619845747948, -0.013073844835162163, 0.02065248042345047, -0.03862027823925018, 0.01865295134484768, -0.01602419838309288, -0.014150514267385006, 0.018219485878944397, -0.0012872843071818352, 0.034425459802150726, 0.010039594024419785, 0.019925378262996674, -0.012025140225887299, -0.02509898506104946, 0.008767166174948215, 0.010361196473240852, -0.003799804486334324, -0.00917266495525837, -0.02448374591767788, -0.01793983206152916, 0.002646230161190033, 0.0030202679336071014, 0.015646666288375854, 0.00393963186070323, 0.029839128255844116, 0.011158212088048458, 0.008424589410424232, -0.02821713127195835, -0.02291768044233322, -0.021841010078787804, 0.047737009823322296, -0.023966385051608086, 0.013647136278450489, -0.020484687760472298, -0.02911202609539032, 0.0075716436840593815, -0.005229537840932608, 0.0057154372334480286, -0.012738259509205818, -0.003694934071972966, -0.003918657545000315, -0.0072290669195353985, -0.005460252519696951, -0.005659506656229496, -0.002053712261840701, -0.0024277500342577696, 0.020065205171704292, -0.0034537322353571653, -0.011857347562909126, -0.017827969044446945, -0.006306207273155451, -0.04496843367815018, 7.242612628033385e-05, 0.0012112532276660204, 0.06269852072000504, -0.009249569848179817, -0.003652985906228423, -0.0018457192927598953, -0.0028647100552916527, -0.0016237435629591346, -0.04348626360297203, -0.025826087221503258, -0.03179670870304108, -0.030146747827529907, 0.02465153858065605, -0.024637555703520775, -0.014073609374463558, 0.0001496588229201734, -0.0033296355977654457, 0.03778131306171417, -0.034117840230464935, 0.022498199716210365, -0.00012256728950887918, 0.009221605025231838, 0.022498199716210365, -0.013528282754123211, -0.015380993485450745, -0.00934744905680418, 0.002966084750369191, -0.0018369799945503473, -0.01402466930449009, -0.00981587078422308, -0.005663002375513315, -0.013073844835162163, 0.037194039672613144, -0.020191049203276634, -0.03587966412305832, 0.03979482501745224, -0.008040064945816994, -0.004911431111395359, -0.03459325432777405, -0.017030954360961914, -0.022064734250307083, -0.014003695920109749, 0.00400604959577322, 0.005767872557044029, -0.003530637128278613, -0.0026532213669270277, -0.04228375107049942, -0.04695397987961769, 0.018457192927598953, 0.03551611304283142, -0.01732459105551243, -0.0038557355292141438, -0.02813323587179184, 0.003943127579987049, 0.012150985188782215, -0.005711941514164209, -0.007347919978201389, -0.028692545369267464, 0.001232227310538292, 0.006477495655417442, 0.035320352762937546, 0.00336634018458426, 0.007844306528568268, 0.022889714688062668, -0.002158582676202059, 0.007403851021081209, 0.024385865777730942, 0.014472116716206074, -0.01838727854192257, -0.01248657051473856, -0.035236459225416183, -0.011647607199847698, 0.00040440651355311275, -0.014003695920109749, 0.0436260923743248, 0.00903283804655075, 0.03520849347114563, -0.029223887249827385, -0.009193639270961285, -0.019128363579511642, -0.00040528044337406754, -0.018988536670804024, 0.03134926036000252, 0.009669051505625248, 0.008962924592196941, 0.002689925953745842, 0.008487512357532978, 0.021910924464464188, 0.004229773301631212, 0.0055511402897536755, -0.025140933692455292, -0.01448609959334135, -0.0014105070149526, -0.0040375106036663055, 0.0087461918592453, -0.01061987690627575, -0.028776440769433975, -0.02515491656959057, 0.002191791543737054, -0.008340693078935146, -0.00028271315386518836, -0.01455601304769516, -0.013255620375275612, 0.010053576901555061, 0.025630328804254532, 0.0011448353761807084, -0.005400826223194599, -0.004467479418963194, -0.048631906509399414, 0.009361431933939457, -0.014891598373651505, -0.01740848831832409, 0.007536686956882477, -0.03266363590955734, -0.01682121306657791, -0.018009744584560394, 0.00861335638910532, 0.051484379917383194, 0.031852640211582184, -0.004411548841744661, -0.02585405297577381, -0.007564652245491743, 0.00941736251115799, 0.002751100342720747, -0.0042157904244959354, 0.024315953254699707, -0.007050787098705769, -0.006659271195530891, 0.02105797827243805, -0.005809820722788572, 0.006970386486500502, -0.05537157878279686, -0.017380522564053535, -0.0402422733604908, -0.0010915262391790748, -0.039682962000370026, -0.010515006259083748, 0.024623572826385498, -0.019156329333782196, 0.012472587637603283, -0.013877850957214832, 0.012745250947773457, -0.030118782073259354, -0.02319733425974846, -0.005540653597563505, -6.909430521773174e-05, 0.007312963251024485, 0.013542265631258488, 0.016191991046071053, -0.011144229210913181, -0.07019326090812683, -0.027406133711338043, -0.05956639349460602, 0.017156798392534256, -0.003569089574739337, -0.004068972077220678, -0.041948165744543076, 0.00757863512262702, 0.022624043747782707, 0.024581624194979668, 0.019967326894402504, -0.010403145104646683, -0.017562298104166985, -0.00865530502051115, -0.007257032673805952, 0.01873684674501419, -0.007250041235238314, -0.015786493197083473, 0.0150454081594944, -0.007928202860057354, 0.0033174005802720785, -0.027545960620045662, 0.03325091302394867, 0.01333252526819706, 0.013786963187158108, 0.023309197276830673, 0.0413888543844223, 0.010696781799197197, -0.015478872694075108, -0.011179185472428799, 0.02247023396193981, -0.0016482132486999035, 0.008550434373319149, 0.016303854063153267, 0.002506402786821127, 0.016261905431747437, -0.023155387490987778, -0.025308726355433464, -0.02862263098359108, 0.00023879866057541221, -0.002473193919286132, 0.004946387838572264, 0.017254678532481194, -0.026804877445101738, 0.0036914385855197906, 0.006117440760135651, 0.008893011137843132, -0.01567463018000126, 0.004027023911476135, -0.007865280844271183, -0.02790951170027256, -0.016583507880568504, -0.03199246525764465, -0.0293357502669096, -0.01700298860669136, 0.01838727854192257, 0.019519878551363945, 0.026511240750551224, 0.012989948503673077, 0.004096937365829945, 0.01359819620847702, 0.021868975833058357, 0.012668346054852009, -0.026818860322237015, 0.01511532161384821, -0.010046585462987423, 0.0036634730640798807, 0.031125538051128387, -0.03898382931947708, -0.0024889244232326746, 0.005547644570469856, -0.032747533172369, 0.046618394553661346, -0.012675337493419647, 0.009396389126777649, 0.004845012910664082, 0.020596548914909363, 0.03350260108709335, 0.018443210050463676, -0.04379388317465782, 0.004998823162168264, 0.008851062506437302, -0.00037338235415518284, -0.0003838693955913186, -0.003013276495039463, -0.03154502063989639, 0.016863161697983742, 0.02590998262166977, -0.0011902791447937489, -0.004236764740198851, 0.04320660978555679, 0.030789952725172043, -0.01526913233101368, -0.006473999936133623, 0.0083686588332057, 0.05042169243097305, 0.032467879354953766, -0.02030291222035885, -0.010703773237764835, 0.008634330704808235, 0.007291989400982857, 0.025029070675373077, -0.00019630430324468762, 0.02684682607650757, -0.02825907990336418, -0.010773686692118645, 0.012430639006197453, 0.0035236459225416183, -0.012290812097489834, 0.010689790360629559, 0.007047291845083237, 0.0006357768434099853, -0.0083686588332057, 0.011724512092769146, -0.009676042944192886, 0.0036599773447960615, -0.012745250947773457, -0.010088533163070679, -0.0050477623008191586, 0.02385452203452587, -0.008809114806354046, 0.028245097026228905, 0.03070605732500553, 0.021924907341599464, -0.03417377173900604, -0.005037275608628988, 0.042675264179706573, -0.020372824743390083, 0.0014061374822631478, 0.014611943624913692, -0.043598126620054245, 0.018051693215966225, -0.012773215770721436, 0.04829632118344307, 0.007739436347037554, -0.019422000274062157, 0.006687236484140158, -0.019771568477153778, 0.008459546603262424, 0.0016726830508559942, 0.03204839676618576, 0.03934737667441368, 0.021617287769913673, 0.029895057901740074, -0.021757114678621292, 0.02118382230401039, 0.014262376353144646, -0.03898382931947708, 0.019282173365354538, 0.012710293754935265, 0.008948941715061665, 0.007417833898216486, 0.03355853259563446, 0.0002971328212879598, -0.008627339266240597, 0.03154502063989639, -0.025840070098638535, 0.04281509295105934, 0.01424140203744173, -0.07310166954994202, 0.007257032673805952, -0.03115350380539894, -0.028119252994656563, 0.03308311849832535, 0.023826558142900467, -0.019883429631590843, -0.032915327697992325, -0.03711014240980148, -0.038927897810935974, -0.021127892658114433, -0.0029416149482131004, -0.008179891854524612, 0.010403145104646683, 0.008529460057616234, 0.0063411640003323555, 0.020988065749406815, -0.015353028662502766, -0.018135590478777885, 0.008844071067869663, 0.00981587078422308, 0.0029276323039084673, -0.0011981443967670202, 0.019156329333782196, -0.02140754647552967, -0.01268931943923235, 0.02332318015396595, 0.010494032874703407, -0.020708410069346428, -0.03601948916912079], "id": 98}, {"title": "University of Monastir", "text": "The University of Monastir (Arabic: \u062c\u0627\u0645\u0639\u0629 \u0627\u0644\u0645\u0646\u0633\u062a\u064a\u0631\u200e) is a university located in Monastir, Tunisia. It was founded in 2004 and is organized in 6 Faculties.", "vector": [0.01370352040976286, 0.08861248940229416, -0.023745546117424965, 0.009841619059443474, 0.026930395513772964, 0.02426552213728428, -0.06265704333782196, 0.0036425364669412374, 0.0031144365202635527, -0.0054516177624464035, -0.0017657499993219972, -0.012641903944313526, -0.01959657482802868, -0.009787455201148987, -0.0074475654400885105, 0.027970347553491592, -0.02119983360171318, 0.06798679381608963, -0.0010318263666704297, 0.03739490360021591, -0.021925631910562515, 0.019899895414710045, -0.011970268562436104, -0.028338663280010223, 0.03119852766394615, 0.024698834866285324, 0.01349769625812769, -0.03732990473508835, -0.008005456067621708, 0.028706979006528854, -0.01930408924818039, 0.011536955833435059, -0.01502512488514185, -0.023377230390906334, -0.0027258088812232018, 0.029291952028870583, -0.02024654485285282, -0.005524739157408476, -0.03654994070529938, -0.0066621857695281506, 0.04766441881656647, -0.02404886484146118, 0.05706730857491493, 0.017884990200400352, 0.005484116263687611, -0.04757775738835335, -0.019618241116404533, -0.06902674585580826, -0.04892102628946304, -0.014104334637522697, 0.03966979682445526, 0.044631227850914, 0.0036723266821354628, -0.03041856549680233, -0.04666779935359955, -0.001960740890353918, -0.013411033898591995, 0.05256085470318794, 0.011753612197935581, -0.017061695456504822, 0.027082055807113647, 0.0633070170879364, -0.0013879553880542517, -0.023918870836496353, 0.04757775738835335, 0.0024861327838152647, 0.02112400345504284, 0.0043439618311822414, 0.04983098432421684, -0.011211970821022987, 0.04541119188070297, 0.02608543634414673, -0.044457901269197464, -0.015588431619107723, -0.04402459040284157, -0.020842351019382477, -0.056114017963409424, -0.04088307172060013, -0.004693320486694574, -0.020029887557029724, -0.01140696182847023, -0.05004763975739479, 0.019271591678261757, -0.07747634500265121, -0.021513985469937325, 0.02851198799908161, 0.03509834408760071, -0.007983789779245853, -0.0047447760589420795, 0.046234484761953354, 0.010572834871709347, 0.004828730598092079, -0.02235894463956356, 0.0037941960617899895, -0.01250107679516077, -0.010188269428908825, -0.0380232073366642, 0.013291873037815094, -0.022532271221280098, -0.014981793239712715, -0.004907268565148115, 0.0008436060161329806, 0.04393792897462845, -0.016270898282527924, 0.02472050115466118, 0.011190305463969707, 0.040731411427259445, -0.010881570167839527, 0.03615996241569519, 0.02413552813231945, 0.02599877305328846, 0.04274631664156914, 0.002840907545760274, 0.038413189351558685, -0.02115650102496147, 0.02649708278477192, -0.04203135147690773, 0.03009358048439026, -0.05312415957450867, 0.020820684731006622, -0.04740443080663681, 9.732614125823602e-05, -0.003978353925049305, -0.009435388259589672, -0.024980487301945686, 0.04658113420009613, -0.02376721240580082, 0.02810034155845642, -0.006770513951778412, 0.013335204683244228, 0.04580117389559746, 0.028533654287457466, -0.04322296008467674, -0.011916104704141617, -0.004105639643967152, 0.01805831491947174, 0.024828828871250153, 0.04003811255097389, -0.0004962786915712059, 0.023983867838978767, -0.0036777432542294264, 0.040319763123989105, -0.02326890267431736, 0.004831438884139061, -0.002784035401418805, -0.04714444279670715, -0.01113614160567522, 0.02955194003880024, 0.04541119188070297, -0.012717733159661293, 0.03633328527212143, 0.03743823245167732, -0.009164568036794662, 0.006651353091001511, 0.0005944511503912508, 0.028533654287457466, -0.0021015675738453865, 0.04315796494483948, 0.02699539251625538, -0.015263446606695652, 0.00529183354228735, 0.017884990200400352, -0.005611401982605457, -0.033126771450042725, 0.011688615195453167, -0.027537034824490547, -0.02454717457294464, -0.04567117989063263, 0.042507994920015335, 0.00153419841080904, -0.010399509221315384, -0.014808468520641327, 0.0027813271153718233, -0.022618932649493217, -0.030938539654016495, -0.008650008589029312, -0.017874157056212425, 0.004335836973041296, -0.015252613462507725, -0.0016804415499791503, -0.03451337292790413, 0.0003165215312037617, 0.023333899676799774, -0.048747699707746506, 0.01539344061166048, 0.00503184599801898, 0.008476683869957924, -0.04161970317363739, -0.03241180256009102, -0.005012888461351395, -0.015653427690267563, 0.014667641371488571, 0.037178244441747665, 0.01113614160567522, 0.00441166665405035, 0.011851107701659203, 0.00958704762160778, 0.08986909687519073, -0.006413030903786421, -0.004503746051341295, 0.02732037752866745, -0.03286678344011307, 0.03379840403795242, -0.011114475317299366, 0.038456518203020096, 0.046971116214990616, 0.007555893622338772, -0.01801498420536518, -0.03245513513684273, 0.00611512828618288, 0.002352076582610607, -0.028013678267598152, -0.0033690077252686024, 0.013172712177038193, 0.018404964357614517, 0.026670409366488457, -0.019000770524144173, -0.05134757608175278, -0.024850495159626007, -0.022120622918009758, -0.06391365081071854, -0.08094284683465958, -0.007626306731253862, -0.00787546206265688, -0.009175400249660015, -0.007539644371718168, 0.010480755940079689, -0.045064542442560196, 0.0043520862236619, 0.062137067317962646, -0.07808298617601395, -0.015447604469954967, 0.008996658958494663, 0.003970229532569647, -0.04140304774045944, 0.033711742609739304, 0.023247236385941505, -0.0042654238641262054, -0.027255380526185036, 0.03405839204788208, -0.016130072996020317, 0.045194536447525024, -0.0025321722496300936, 0.0646502822637558, 0.017495008185505867, -0.0017386679537594318, 0.025738785043358803, -0.013584359548985958, 0.01518761646002531, -0.006212623789906502, -0.010724494233727455, -0.011255302466452122, 0.0013920177007094026, -0.0040731411427259445, -0.036723267287015915, -0.010637831874191761, 0.03278012201189995, -0.0332350991666317, -0.034860022366046906, -0.05078427121043205, -0.04211801290512085, -0.023117242380976677, 0.021383991464972496, -0.018534958362579346, 0.015945915132761, -0.03158850967884064, -0.02950860746204853, 0.005562654230743647, -0.03167517110705376, -0.010995314456522465, 0.009402889758348465, -0.046971116214990616, 0.0687667578458786, -0.015761757269501686, 0.05364413559436798, -0.00878000259399414, 0.001538260723464191, 0.04441457241773605, 0.02545713260769844, -0.06309035420417786, -0.014364322647452354, 0.014418486505746841, -0.05667732656002045, -0.06495360285043716, -0.0016763792373239994, 0.006033882033079863, 0.004717694129794836, 0.02294391766190529, -0.010280348360538483, -0.041814692318439484, 0.04675446078181267, -0.04740443080663681, -0.006050131283700466, 0.07041334360837936, -0.012576906941831112, -0.009554549120366573, -0.0057901437394320965, 0.03962646424770355, 0.007068416569381952, 0.012121927924454212, 0.007268823683261871, 0.024698834866285324, -0.03369007632136345, -0.030266905203461647, 0.006694684270769358, -0.0291402917355299, -0.004124597180634737, -0.0006259339861571789, -0.00029773334972560406, -0.032758455723524094, 0.0015991954132914543, -0.02732037752866745, -0.043461281806230545, 0.004335836973041296, 0.01987822912633419, 0.012371082790195942, 0.001933658728376031, -0.03382007032632828, -0.007431316189467907, 0.0026581038255244493, -0.016552552580833435, -0.02823033556342125, -0.0003014571266248822, -0.03206515312194824, 0.01864328794181347, -0.019856562837958336, 0.004579575732350349, 0.00797837320715189, -0.0007698074332438409, -0.03704825043678284, -0.009809120558202267, -0.024287188425660133, -0.02210978977382183, -0.01689920201897621, 0.03345175459980965, 0.0010975003242492676, 0.04653780534863472, -0.027623696252703667, -0.008964160457253456, -0.016801707446575165, 0.0009038636344484985, 0.04588783532381058, 0.01140696182847023, 0.03934480994939804, 0.007880878634750843, 0.03083021193742752, -0.027212049812078476, 0.026475418359041214, 0.012620237655937672, -0.038001541048288345, 0.00014835888578090817, -0.025283807888627052, -0.013129380531609058, -0.007274240255355835, 0.03466503322124481, -0.05633067712187767, 0.004089390393346548, -0.0633070170879364, 0.029768595471978188, 0.008281692862510681, -0.014440151862800121, 0.055940695106983185, 0.02736370824277401, 0.0014624310424551368, -0.03310510516166687, 0.008579595014452934, 0.015848418697714806, 0.004644572734832764, 0.002119170967489481, -0.015685927122831345, 0.00946788676083088, 0.0013425928773358464, 0.03611662983894348, 0.04493454843759537, 0.03423171862959862, -0.033625081181526184, -0.007664221804589033, 0.033993396908044815, 0.0018280387157574296, -0.038911499083042145, 0.010296597145497799, -0.05520406365394592, 0.005876806098967791, 0.004582284018397331, 0.009711625054478645, -0.016130072996020317, 0.05386079102754593, -0.04406792297959328, -0.012815228663384914, -0.04584450274705887, -0.02827366627752781, -0.029248619452118874, -0.018664952367544174, 0.02294391766190529, 0.03518500551581383, -0.030656887218356133, -0.047101110219955444, -0.053167492151260376, -0.03037523292005062, -0.01107656117528677, -0.018004151061177254, -0.01801498420536518, -0.048661038279533386, 0.013811848126351833, -0.03091687522828579, 0.027948681265115738, -0.002346660243347287, -0.003377132350578904, -0.02285725437104702, -0.02690873108804226, -0.009987861849367619, -0.017245853319764137, 0.009939114563167095, 0.06313368678092957, 0.012631070800125599, 0.03624662384390831, 0.01101698074489832, -0.01757083833217621, -0.02446051314473152, 0.030201908200979233, 0.04853104427456856, 0.024352185428142548, -0.008438768796622753, 0.045194536447525024, 0.012533575296401978, 0.051564235240221024, -0.05728396400809288, -0.03360341489315033, -0.05923387408256531, 0.02872864529490471, 0.005121216643601656, 0.00192418007645756, -0.020192380994558334, 0.0182208064943552, 0.052517522126436234, 0.010838238522410393, -0.010572834871709347, 0.03550999239087105, 0.047014448791742325, -0.033625081181526184, -0.0017467925790697336, -0.039734791964292526, 0.03871650621294975, 0.05797726660966873, -0.009494968689978123, 0.0034908768720924854, 0.00801628828048706, -0.014180164784193039, 0.0019052226562052965, 0.009641211479902267, 0.07535310834646225, 0.00440083397552371, -0.04541119188070297, -0.03685326129198074, 0.025305472314357758, -0.025023819878697395, 0.04588783532381058, 0.03228181228041649, 0.014288492500782013, 6.804366421420127e-05, -0.016758376732468605, 0.016433391720056534, -0.0147976353764534, 0.008054203353822231, -0.02968193218111992, -0.046234484761953354, -0.015761757269501686, -0.020517366006970406, -0.013021052815020084, 0.011981101706624031, -0.00692217331379652, 0.0025755034293979406, -0.03284511715173721, 0.03243346884846687, 0.003935022745281458, 0.00479352381080389, 0.007474647369235754, 0.009034574031829834, 0.01872994937002659, -0.013031885027885437, -0.0008862602990120649, 0.02290058694779873, 0.020690690726041794, 0.036224957555532455, -0.010989897884428501, 0.014905963093042374, -0.01980239897966385, 0.02500215359032154, 0.002010842552408576, 0.023290567100048065, -0.012641903944313526, -0.009153734892606735, 0.03087354265153408, 0.02454717457294464, -0.01641172543168068, 0.005178089253604412, 0.04840105026960373, 0.030635220929980278, -0.026302091777324677, 0.02309557795524597, -0.07127997279167175, -0.00787546206265688, 0.03817486763000488, -0.014905963093042374, -0.04060141742229462, 0.06478027999401093, 0.003146934788674116, 0.022878920659422874, -0.03037523292005062, 0.01029118150472641, 0.00820586271584034, 0.034903354942798615, 0.018296636641025543, 0.019520746544003487, 0.024373849853873253, 0.02495882287621498, 0.038001541048288345, 0.012576906941831112, 0.007783382665365934, 0.00797837320715189, 0.04588783532381058, 0.0010975003242492676, -0.000725122052244842, 0.010204518213868141, -0.025197144597768784, -0.024525510147213936, -0.02896696701645851, -0.034578368067741394, 0.037178244441747665, -0.02153564989566803, 0.001083959243260324, -0.0015612804563716054, 0.009169983677566051, 0.04931100830435753, -0.005925553850829601, 0.02992025576531887, -0.01504679024219513, -0.024937156587839127, -0.009104987606406212, 0.0014339948538690805, 0.001570759224705398, 0.003271512221544981, -0.005386620759963989, -0.027385374531149864, 0.0056763989850878716, -0.02115650102496147, 0.0030358985532075167, -0.010399509221315384, -0.030266905203461647, 0.019206594675779343, -0.021102337166666985, 0.05607068911194801, 0.00290861283428967, 0.0111578069627285, -0.023030580952763557, -0.0066188545897603035, -0.03054855950176716, -0.011320299468934536, -0.053254153579473495, -0.030158577486872673, 0.033581748604774475, 0.0036750349681824446, 0.04649447277188301, 0.016682546585798264, 0.01192693691700697, 0.024005534127354622, 0.0016817956930026412, 0.023983867838978767, -0.02004072070121765, 0.02513214759528637, 0.016595883294939995, 0.016151737421751022, 0.026583746075630188, 0.00028385379118844867, 0.008081285282969475, -0.010567418299615383, 0.01574009098112583, -0.006656769197434187, 0.02049569971859455, 0.010117855854332447, 0.05260418355464935, -0.010339928790926933, 0.0016872120322659612, -0.027493702247738838, 0.03650661185383797, 0.006575522944331169, -0.004747484344989061, 0.016379227861762047, -0.015512601472437382, -0.023485558107495308, 0.06547357887029648, -0.045237865298986435, -0.021524818614125252, -0.008086701855063438, 0.000903186562936753, 0.02318223938345909, 0.005381204653531313, -0.0034367127809673548, 0.011396128684282303, 0.019704904407262802, -0.03520667180418968, 0.0022261450067162514, -0.04441457241773605, 0.036809928715229034, 0.0024184274952858686, 0.03737323731184006, -0.022228950634598732, -0.02235894463956356, -0.023485558107495308, -0.047057781368494034, 0.019455749541521072, -0.033495087176561356, 0.037221577018499374, 0.02892363630235195, -0.029356949031352997, -0.03050522692501545, 0.017787493765354156, -0.015490936115384102, 0.02905363030731678, 0.029811926186084747, 0.027797022834420204, 0.02781868726015091, -0.021113170310854912, -0.004918101243674755, 0.008899163454771042, 0.028078675270080566, -0.003260679543018341, -0.027537034824490547, -0.026345424354076385, 0.006283036898821592, -0.009343309327960014, 0.019618241116404533, 0.0016587759600952268, 0.012327752076089382, -0.019748235121369362, 0.0038266945630311966, 0.013281039893627167, -0.020029887557029724, 0.010664913803339005, -0.003122560912743211, -0.010356178507208824, -0.03752489760518074, 0.024850495159626007, 0.0009221439831890166, 0.0033256765455007553, -0.00011645283666439354, -0.007079249247908592, -0.02554379589855671, -0.0063588665798306465, 0.01211109571158886, -0.03128518909215927, 0.0364416129887104, 0.019412416964769363, 0.011298634111881256, 0.0001987145806197077, -0.014700139872729778, -0.01587008498609066, 0.03345175459980965, 0.011807776056230068, -0.0332350991666317, -0.012121927924454212, 0.009922864846885204, -0.004647280555218458, -0.005359538830816746, 0.008536264300346375, 0.020755687728524208, 0.01711585931479931, -0.02781868726015091, 0.010935734026134014, 0.019065767526626587, 0.024807162582874298, -0.009771205484867096, -0.008325023576617241, 0.0111578069627285, -0.00717132817953825, -0.034361712634563446, -0.058540571480989456, 0.04311463236808777, -0.03356008231639862, -0.017050862312316895, -0.022640598937869072, -0.02723371610045433, 0.039453137665987015, 0.035726647824048996, 0.008297941647469997, -0.022077292203903198, 0.02768869325518608, 0.0028463241178542376, 0.010708244517445564, -0.05113092064857483, 0.017300017178058624, -0.006369699724018574, 0.0009167275857180357, 0.01719168946146965, 0.0042410497553646564, 0.021438155323266983, 0.02235894463956356, -0.021513985469937325, 0.043006304651498795, -0.04404625669121742, 0.021871468052268028, 0.022640598937869072, -0.03124186024069786, -0.02083151787519455, -0.0027325793635100126, -0.005169964395463467, -0.004807064775377512, 0.008530847728252411, 0.007257991004735231, 0.03295344486832619, 0.006255954969674349, -0.0020270918030291796, 0.040774744004011154, -0.016335895285010338, -0.019824065268039703, 0.002056882018223405, -0.00022224211716093123, 0.015220114961266518, 0.004801648668944836, 0.035943303257226944, 0.0320868194103241, 0.020961511880159378, -0.03046189621090889, 0.022044792771339417, 0.045237865298986435, 0.019444916397333145, 0.03821819648146629, 0.013172712177038193, 0.00769672030583024, 6.626640242757276e-05, 0.002862573368474841, 0.004414374940097332, -0.019856562837958336, 0.022965583950281143, -0.056027356535196304, 0.026973728090524673, -0.0043087550438940525, -0.026627076789736748, 0.03542332723736763, 0.028490323573350906, -0.03652827814221382, 0.03291011229157448, 0.012620237655937672, 0.03037523292005062, 0.021264830604195595, -0.019780732691287994, -0.029898589476943016, -0.0014719096943736076, 0.0005172672681510448, 0.045107871294021606, -0.05399078503251076, -0.009695376269519329, -0.03384173661470413, -0.0011164577445015311, -0.031220193952322006, 0.03148018196225166, 0.03611662983894348, 0.005232253111898899, 0.026692073792219162, -0.011049478314816952, -0.005159131716936827, -0.04261632263660431, 0.02476383186876774, 0.03884650021791458, -0.04909434914588928, -0.006250538397580385, 0.011244469322264194, -0.020398205146193504, -0.00857417844235897, 0.021633146330714226, -0.007962124422192574, -0.04662446677684784, 0.011796943843364716, 0.0037129498086869717, 0.051564235240221024, 0.05728396400809288, 0.029898589476943016, -0.040363095700740814, 0.0010873444844037294, -0.020268211141228676, -0.0019079308258369565, 0.012826061807572842, 0.022467274218797684, 0.04393792897462845, -0.030700217932462692, -0.03964813053607941, -0.0348166897892952, -0.020929012447595596, -0.029248619452118874, 0.024005534127354622, 0.015588431619107723, -0.02736370824277401, 0.010453673079609871, 0.00771838566288352, 0.01971573568880558, 0.047967735677957535, 0.019889062270522118, 0.03297511115670204, -0.007155078928917646, -0.019564077258110046, -0.005800976417958736, -0.009473303332924843, -0.027927014976739883, 0.00370482518337667, -0.020766520872712135, 0.02028987556695938, -0.03971312567591667, -0.013053551316261292, -0.016216734424233437, 0.0061476267874240875, -0.004579575732350349, 0.007886294275522232, -0.0034448374062776566, 0.030028583481907845, -0.019488247111439705, 0.03269345685839653, 0.08271943032741547, -0.04298463836312294, 0.005941803101450205, -0.02446051314473152, 0.05836724489927292, 0.006992586888372898, 0.016801707446575165, 0.03641995042562485, 0.001058908412232995, 0.014115167781710625, 0.025067150592803955, 0.02025737799704075, -0.007680471055209637, -0.0111578069627285, -0.027493702247738838, -0.019206594675779343, 0.00919706653803587, -0.01661754958331585, -0.0032444302923977375, -0.008021704852581024, -0.030440229922533035, 0.021145669743418694, -0.007182161323726177, 0.012674402445554733, -0.0016845038626343012, 0.011710280552506447, 0.00636428315192461, 0.02025737799704075, 0.005516614764928818, -0.010448257438838482, 0.014104334637522697, -0.008958743885159492, -0.02677873708307743, 0.008926245383918285, 0.021438155323266983, 0.0371132493019104, 0.05186755210161209, 0.04107806086540222, 0.04818439483642578, 0.001882202923297882, -0.04814106225967407, -0.01006369199603796, 0.0016411725664511323, -0.001005421276204288, -0.018318302929401398, 0.027493702247738838, -0.017300017178058624, -0.040688078850507736, -0.01607590913772583, -0.00613679364323616, -0.0002750521234702319, -0.023550555109977722, 0.03293177857995033, 0.0007711615180596709, 0.019000770524144173, -0.006965504959225655, 0.0040189772844314575, 0.025803782045841217, 0.00022190359595697373, -0.020571529865264893, -0.002671644790098071, -0.003821277990937233, -0.03041856549680233, 0.008633759804069996, -0.012858560308814049, 0.04148970916867256, -0.0018957438878715038, -0.026843734085559845, -0.01345436554402113, 0.013790182769298553, -0.022293947637081146, -0.010166604071855545, 0.02203396148979664, 0.036138296127319336, 0.036311618983745575, -0.03295344486832619, 9.15712007554248e-05, -0.014645976014435291, 0.011331131681799889, -0.008086701855063438, 0.005313499365001917, 0.03145851567387581, -0.01056200172752142, -0.01930408924818039, -0.0019092849688604474, -0.026627076789736748, 0.006694684270769358, -0.023377230390906334, -0.027472037822008133, -0.01192693691700697, 0.029855258762836456, -0.026930395513772964, -0.004991223104298115, -0.014960127882659435, -0.01992155984044075, 0.05035095661878586, -0.0500909686088562, -0.05585402995347977, 0.008937078528106213, 0.00851459801197052, -0.004774566274136305, 0.04170636460185051, -0.06023049354553223, 0.010502421297132969, 0.016292564570903778, -0.03100353665649891, -0.0250454843044281, 0.0005744781228713691, -0.008417102508246899, 0.012782730162143707, 0.00605554785579443, 0.03269345685839653, 0.029486943036317825, -0.02178480476140976, 0.0029438193887472153, -0.02294391766190529, 0.009863284416496754, 0.012349417433142662, 0.0473610982298851, -0.011948603205382824, -0.013519362546503544, 0.04092640429735184, 0.00637511583045125, 0.025305472314357758, 0.021503152325749397, 0.014602644369006157, 0.03243346884846687, -0.008043370209634304, -0.0018564749043434858, 0.014613477513194084, -0.02169814333319664, -0.01459181122481823, -0.013411033898591995, 0.022618932649493217, 0.029573604464530945, -0.012945222668349743, -0.024525510147213936, 0.04567117989063263, 0.027623696252703667, 0.007350069936364889, 0.021091505885124207, -0.00541370315477252, -0.023550555109977722, 0.004815189633518457, -0.00581722566857934, 0.01914159767329693, 0.01846996136009693, 0.009180816821753979, 0.0017088777385652065, 0.025262141600251198, 0.013887678273022175, -0.012067764066159725, -0.0015653427690267563, -0.006732598878443241, -0.012511909939348698, -0.007041334640234709, 0.053297486156225204, -0.019856562837958336, -0.00738798500970006, -0.008855831809341908, 0.052387528121471405, 0.004189594183117151, -0.008043370209634304, 0.008585011586546898, 0.009327059611678123, -0.014732638373970985, 0.02210978977382183, -0.0069330064579844475, 9.377161768497899e-05, -0.003742740023881197, 0.019239092245697975, -0.027667028829455376, 0.04987431317567825, -0.011363630183041096, 0.012555240653455257, -0.03319176658987999, 0.014765136875212193, 0.025500463321805, -0.016379227861762047, 0.043829597532749176, 0.02335556410253048, 0.03304010629653931, -0.037546563893556595, -0.037546563893556595, 0.009603297337889671, -0.021015675738453865, 0.018090812489390373, -0.025023819878697395, -0.002096151001751423, 0.040774744004011154, -0.0076588052324950695, 0.015295945107936859, 0.03054855950176716, -0.01624923385679722, -0.004677071236073971, 0.01165611669421196, 0.05390412360429764, -0.0037535729352384806, 0.007106331642717123, -0.014830133877694607, 0.0132052106782794, 0.023702215403318405, 0.02500215359032154, -0.015696760267019272, -0.017711663618683815, -0.0038754420820623636, 0.010285764932632446, -0.006960088387131691, -0.014017672277987003, 0.012587739154696465, -0.019856562837958336, -0.002320932224392891, -0.007268823683261871, 0.033083438873291016, -0.03195682540535927, -0.013519362546503544, 0.002832782920449972, 0.00960871297866106, 0.003886274993419647, -0.004460414405912161, -0.019694071263074875, 0.008417102508246899, -0.007490896619856358, -0.022174786776304245, -0.01384434662759304, 0.007339237257838249, -0.0014840966323390603, 0.04224800691008568, -0.016953367739915848, -0.00843335222452879, -0.0025308181066066027, 0.004457706585526466, 0.011027812957763672, 0.011087393388152122, 0.010805740021169186, 0.039084821939468384, 0.015133452601730824, -0.02905363030731678, 0.018123311921954155, -0.038369856774806976, 0.04016810655593872, -0.01751667447388172, -0.011536955833435059, -0.02203396148979664, -0.013649356551468372, 0.0007149662706069648, 0.03087354265153408, -0.011027812957763672, 0.03154517710208893, 0.00979828741401434, -0.005121216643601656, 0.05186755210161209, 0.02141648903489113, 0.007095498498529196, -0.0020338622853159904, -0.02313890866935253, 0.012316918931901455, 0.0582805834710598, 0.017083359882235527, 0.034903354942798615, 0.0006652029696851969, -0.0004783368203788996, -0.01908743381500244, -0.046927787363529205, -0.031025202944874763, 0.020690690726041794, 0.0373515710234642, -0.038456518203020096, 0.009294561110436916, 0.00686259288340807, 0.010529503226280212, -0.048877693712711334, -0.012046098709106445, -0.02181730419397354, -0.0033690077252686024, -0.00685176020488143, 0.008249194361269474, 0.010670330375432968, 0.051607564091682434, 0.03345175459980965, 0.016541719436645508, -0.028576985001564026, 0.003899815957993269, -0.02768869325518608, -0.017083359882235527, 0.005763061344623566, -0.00558973615989089, -0.007095498498529196, -0.005402870010584593, 0.010605333372950554, 0.046061161905527115, -0.02066902443766594, 0.05485741049051285, 0.004048767499625683, -0.01848079450428486, -0.016606716439127922, -0.043872930109500885, 0.00473394338041544, -0.02409219741821289, 0.006131377536803484, 0.012923557311296463, -0.012046098709106445, -0.00981453713029623, 0.04057975113391876, 0.0066621857695281506, 0.024893825873732567, -0.04207468032836914, 0.057760607451200485, 0.023052245378494263, -0.010513254441320896, -0.0034773359075188637, 0.00039946031756699085, -0.011515290476381779, 0.01347603090107441, -0.011753612197935581, 0.0419013574719429, 0.01967240497469902, 0.010491588152945042, 0.029486943036317825, -0.0021069839131087065, -0.007100915070623159, 2.5960689526982605e-05, 0.0057901437394320965, -0.011439460329711437, 0.00878000259399414, 0.00661343801766634, -0.013432699255645275, 0.04021143540740013, -0.011970268562436104, 0.020528199151158333, 0.004000019747763872, 0.011493624188005924, 0.04411125183105469, 0.03288844972848892, 0.0019526162650436163, 0.008384604007005692, 0.005156423430889845, 0.024525510147213936, -0.004761025309562683, -0.01598924584686756, 0.03466503322124481, -0.010708244517445564, -0.019542410969734192, -0.009234980680048466, -0.00439000129699707, -0.00880166795104742, 0.006023049354553223, 0.0464511401951313, -0.02459050714969635, 0.012338584288954735, 0.02099400945007801, 0.004243758041411638, -0.011482791975140572, -0.0006577554158866405, 0.00480435648933053, -0.034080058336257935, -0.015295945107936859, -0.0678567960858345, -0.006694684270769358, -0.03364674746990204, 0.02227228321135044, -0.01117947231978178, 0.006174708716571331, 0.020896514877676964, 0.0009532883414067328, -0.014310157857835293, -0.004089390393346548, 0.024893825873732567, -0.02946527674794197, 0.013129380531609058, -0.0028436158318072557, -0.028663648292422295, 0.0320868194103241, 0.008167947642505169, 0.021914798766374588, -0.0020690690726041794, -0.01950991339981556, -0.00019752974912989885, -0.010058275423943996, -0.02677873708307743, -0.015978412702679634, 0.008070453070104122, -0.0018253305461257696, 0.0127502316609025, -0.011471958830952644, 0.03124186024069786, 0.01574009098112583, -0.032628461718559265, -0.01506845559924841, -0.03743823245167732, 0.005595152731984854, -0.008178780786693096, -0.005012888461351395, -0.02968193218111992, -0.05286417156457901, -0.004966848995536566, 0.03637661784887314, -0.011959435418248177, 0.005643900483846664, 0.024070531129837036, 0.008335856720805168, 0.011233637109398842, -0.0018713700119405985, 0.03343008831143379, -0.005140174180269241, 0.0153717752546072, 0.022922251373529434, -0.0024116570129990578, 0.02376721240580082, 0.025262141600251198, -0.007653389126062393, -0.01686670444905758, 0.008601261302828789, 0.019206594675779343, 0.03501168265938759, 0.037719886749982834, -0.016888370737433434, -0.001004067249596119, -0.03637661784887314, -0.019737401977181435, -0.02950860746204853, 0.00582805834710598, 0.06179041787981987, 0.003065688768401742, -0.04757775738835335, 0.00793504249304533, -0.01186194084584713, -0.011699448339641094, -0.009229565039277077, 0.0227705929428339, -0.022922251373529434, -0.02078818529844284, -0.030591890215873718, -0.025760451331734657, 0.013270207680761814, 0.03460003435611725, -0.018004151061177254, 0.015935081988573074, -0.0025064442306756973, -0.03810986876487732, 0.008617510087788105, -0.012262755073606968, 0.0019471998093649745, -0.004078557714819908, -0.020647360011935234, 0.038868166506290436, 0.011796943843364716, 0.004035226535052061, 0.04352628067135811, 0.006640519946813583, -0.003344633849337697, 0.007593808230012655, 0.06287369877099991, 0.009597880765795708, -0.006895091384649277, 0.01863245479762554, -0.002136774128302932, 0.018773281946778297, -0.004974973853677511, -0.00137712259311229, -0.014916796237230301, 0.004874770063906908, 0.0023507224395871162, -0.028013678267598152, -0.016151737421751022, -0.025760451331734657, 0.03245513513684273, -0.009099571034312248, 0.010957399383187294, -0.015360942110419273, 0.02963860146701336, -0.004154387395828962, -0.014960127882659435, 0.014765136875212193, 0.040233101695775986, -0.014017672277987003, 0.009435388259589672, -0.0005365632241591811, 0.01661754958331585, -0.04363460838794708, 0.00607721321284771, 0.013107715174555779, -0.0075613101944327354, 0.018794946372509003, 0.005492241121828556, -0.00746923079714179, 0.005703480914235115, 0.02818700298666954, -0.007176744751632214, -0.024850495159626007, 0.023117242380976677, -0.0027312252204865217, -0.009803703986108303, 0.04057975113391876, 0.014505148865282536, -0.0016398184234276414, -0.03678826615214348, 0.018784113228321075, 0.013183544389903545, 0.002832782920449972, 0.04094806686043739, 0.014645976014435291, 0.031046869233250618, 0.004227508790791035, 0.02066902443766594, 0.0005517968675121665, -0.01926075853407383, 0.017841657623648643, -0.0307435505092144, -0.004384584724903107, 0.004040642641484737, 0.04419791325926781, -0.006878842134028673, 0.005616818554699421, 0.002792160026729107, 0.009863284416496754, 0.028620315715670586, -0.0021340660750865936, -0.04083973914384842, -0.016270898282527924, -0.05455409362912178, 0.006710933521389961, 0.04083973914384842, 0.016595883294939995, -0.0034069225657731295, 0.020777354016900063, -5.0863487558672205e-05, 0.02918362244963646, 0.036593273282051086, 0.007745468057692051, 0.02777535654604435, -0.02124316431581974, -0.01393100991845131, -0.004116472322493792, 0.02591211162507534, 0.026540415361523628, -0.00740965036675334, 0.005963468458503485, -0.002824658527970314, 0.0031144365202635527, 0.001378476619720459, -0.037589892745018005, 0.022044792771339417, -0.0023155156522989273, -0.005600569304078817, -0.008200446143746376, 0.007534227799624205, 0.016845038160681725, -0.01744084432721138, -0.012089429423213005, 0.035856641829013824, 0.010258683003485203, -0.0003447884228080511, -0.026800401508808136, 0.002203125273808837, 0.009440804831683636, -0.030028583481907845, -0.009039990603923798, -0.005272876471281052, 0.009928281418979168, 0.006023049354553223, 0.0546407550573349, 0.008525431156158447, 0.02381054311990738, -0.006071797106415033, -0.03514167666435242, -0.0043520862236619, 0.010166604071855545, -0.00975495669990778, -0.014743471518158913, 0.02157898247241974, 0.03728657588362694, -0.014331824146211147, 0.05442409962415695, -0.023485558107495308, -0.019943226128816605, -0.008612093515694141, 0.012013600207865238, -0.006938422564417124, -0.004325004294514656, -0.005995966959744692, 0.051564235240221024, -0.0018998062005266547, -0.006093462463468313, 0.013692687265574932, -0.006337201222777367, -0.0007515270262956619, 0.0009512571850791574, 0.0188924428075552, 0.05459742620587349, -0.006348033901304007, 0.007035918068140745, -0.02335556410253048, 0.016151737421751022, 0.00795670785009861, 0.029443610459566116, 0.0074583981186151505, 0.0016641922993585467, -0.02946527674794197, 0.016725877299904823, 0.02454717457294464, 0.009511218406260014, -0.011796943843364716, 0.04356960952281952, 0.03410172462463379, 0.019434083253145218, 0.03574831411242485, 0.023247236385941505, -0.0021381282713264227, -0.06668685376644135, -0.005958052352070808, -0.019737401977181435, -0.036224957555532455, 0.002234269632026553, 0.026692073792219162, 0.02992025576531887, 0.04274631664156914, -0.01921742595732212, -0.005903888028115034, -0.01846996136009693, -0.01926075853407383, -0.0026107102166861296, 0.02781868726015091, -0.017061695456504822, -0.005386620759963989, -0.0026134182699024677, 0.01004744227975607, -0.03392839804291725, 0.036809928715229034, 0.00818419735878706, -0.014537647366523743, 0.019000770524144173, -0.0031333938241004944, -0.005584320053458214, -0.0067759305238723755, -0.01484096609055996, 0.010128688998520374, -0.007756300736218691, 0.04361294209957123, -0.008736670948565006, -0.043287958949804306, 0.006006800103932619, 0.011807776056230068, -0.00425729900598526, -0.012013600207865238, -0.03158850967884064, -0.008839583024382591, 0.013779349625110626, -0.007333820685744286, 0.055940695106983185, -0.034860022366046906, -0.018448296934366226, -0.03202182427048683, -0.00979287177324295, -0.009673709981143475, -0.01880577951669693, -0.008530847728252411, 0.004173344932496548, 0.042464662343263626, 0.00872042216360569, -0.059450529515743256, 0.002840907545760274, 0.03806653618812561, 0.02099400945007801, 0.004855812527239323, -0.01270690094679594, 0.00212323316372931, 0.007490896619856358, 0.018740782514214516, 0.03206515312194824, -0.001734605641104281, -0.01454848051071167, 0.0011252594413235784, 0.003978353925049305, -0.029313616454601288, 0.02066902443766594, 0.00849293265491724, 0.011796943843364716, 0.010388677008450031, -0.014645976014435291, 0.02417885884642601, 0.016953367739915848, 0.018859943374991417, -0.018567457795143127, 0.0005277615855447948, -0.034405045211315155, -0.01025326643139124, 0.008893746882677078, -0.014830133877694607, 0.006456362083554268, 0.022922251373529434, -0.013389368541538715, -0.013887678273022175, 0.00529183354228735, -0.012414414435625076, 0.016433391720056534, -0.0211673341691494, -0.013140213675796986, 0.02313890866935253, -0.0021814596839249134, 0.012511909939348698, -0.0021922923624515533, 0.020517366006970406, 0.04558451473712921, -0.015285111963748932, 0.015350108966231346, -0.003274220507591963, 0.03050522692501545, 0.0014746179804205894, 0.015501768328249454, -0.07179994881153107, -0.020755687728524208, -0.016314230859279633, 0.02404886484146118, -0.012327752076089382, 0.000824648595880717, -0.010193686001002789, -0.016920868307352066, 0.01698586530983448, -0.007360902614891529], "id": 99}, {"title": "Jarkko Wiss", "text": "Jarkko Wiss (born 17 April 1972) is a Finnish former footballer. Wiss is currently working as a manager of the Finland national under-18 football team.", "vector": [0.006705993786454201, 0.04774228855967522, -0.008756163530051708, -0.04268447309732437, -0.011321617290377617, 0.04590042307972908, 0.04107649624347687, 0.009333573281764984, -0.03189640864729881, 0.019456516951322556, -0.03610638529062271, -0.002424755599349737, -0.027174806222319603, 0.004699677228927612, -0.0427137054502964, 0.014354846440255642, 0.0020465156994760036, 0.0397024042904377, -0.04142732545733452, -0.028402715921401978, 0.04861936718225479, 0.022935593500733376, -0.015538902021944523, -0.013046537525951862, 0.029469827190041542, -0.028037264943122864, 0.014822620898485184, 0.020640572533011436, -0.028899725526571274, 0.02362263947725296, 0.03692499175667763, 0.023798054084181786, 0.016606014221906662, -0.06198019161820412, 0.013718964532017708, 0.038416024297475815, 0.024426627904176712, 0.01893027126789093, -0.03534625098109245, 0.004436553921550512, 0.026063838973641396, -0.005565791856497526, 0.004560806322842836, 0.014917638152837753, 0.00958938803523779, 0.011818628758192062, -0.044994112104177475, -0.006124929059296846, -0.008478422649204731, -0.03572631627321243, 0.07273901998996735, 0.02276017889380455, 0.016006676480174065, -0.02898743376135826, 0.010780752636492252, -0.028621984645724297, 0.019544225186109543, 0.09068988263607025, -0.0154658118262887, 0.03449840843677521, -0.018330933526158333, -0.0025617992505431175, 0.001768774352967739, -0.029996072873473167, 0.023388750851154327, -0.011007331311702728, 0.0015586409717798233, 0.015202688053250313, 0.001157560502178967, 0.044350918382406235, -0.0006367953028529882, -0.013543548993766308, 0.020128944888710976, -0.029732950031757355, -0.03552166745066643, -0.024207357317209244, 0.05353100597858429, 0.015085744671523571, 0.04347384348511696, 0.0007290712092071772, 0.0004184393910691142, -0.05221538618206978, -0.06630711257457733, -0.0036764193791896105, -0.03414757549762726, -0.03613562136888504, 0.012695706449449062, -0.0567469596862793, -0.031194746494293213, -0.0012425273889675736, -0.016547542065382004, 0.049876511096954346, 0.011306999251246452, 0.04136885330080986, 0.008814635686576366, -0.011204673908650875, 0.006314963102340698, -0.02081598900258541, 0.001997180050238967, 0.009684405289590359, 0.02422197535634041, -0.009757494553923607, -0.012023280374705791, -0.05013963580131531, 0.018915653228759766, -0.05148448795080185, -0.006881409324705601, 0.015787407755851746, 0.031867172569036484, 0.028417332097887993, 0.051221366971731186, 0.025903042405843735, -0.03645721450448036, 0.018594058230519295, 0.017190732061862946, 0.030434612184762955, -0.005419612396508455, -0.0340891070663929, 0.002591035095974803, 0.031107040122151375, -0.010612646117806435, -0.0029016670305281878, -0.0015979268355295062, 0.024441245943307877, 0.002474091248586774, 0.03274425119161606, 0.01260799914598465, 0.015275778248906136, -0.0028340588323771954, -0.019573461264371872, -0.05329711735248566, 0.014903020113706589, -0.04414626955986023, -0.011182746849954128, 0.02138608880341053, 0.03750970959663391, -0.04233364015817642, -0.006855827756226063, -0.009077759459614754, 0.053735654801130295, 0.0737915113568306, 0.0033146245405077934, 0.03160405158996582, -0.00278837769292295, 0.023286426439881325, -0.004897019825875759, 0.02898743376135826, -0.0030515012331306934, -0.049905747175216675, -0.009340882301330566, 0.03417681157588959, -0.024061178788542747, -0.04420474171638489, -0.020158180966973305, -0.007762141991406679, 0.0223070215433836, 0.009106995537877083, -0.009720949456095695, 0.014471789821982384, 0.0154658118262887, -0.0028413678519427776, -0.007056824862957001, -0.016971463337540627, 0.00019254606741014868, -0.045666538178920746, 0.004001669120043516, -0.06127852946519852, 0.019412662833929062, 0.01933957450091839, -0.0027207694947719574, -0.012220622971653938, 0.028651220723986626, 0.014340228401124477, 0.02467513270676136, 0.02977680414915085, 0.0034352228976786137, 0.0052843960002064705, 0.0382990799844265, -0.004681404680013657, 0.012308330275118351, -0.017950866371393204, 0.01895950734615326, 0.007586726453155279, -0.018623292446136475, -0.05736091360449791, -0.023067155852913857, -0.005448848009109497, 0.014120958745479584, 0.05247851088643074, -0.04689444601535797, 0.016006676480174065, 0.03745123744010925, 0.0406087189912796, -0.017497709020972252, 0.004027250688523054, -0.005503665655851364, 0.034586116671562195, 0.014259829185903072, -0.03949775546789169, 0.003734891302883625, 0.05318017303943634, -0.03502465412020683, -0.02238011173903942, 0.011979426257312298, 0.0152903962880373, 0.025040581822395325, 0.014369464479386806, -0.04128114506602287, -0.04844395071268082, -0.017029935494065285, 0.005510974675416946, 0.013507003895938396, 0.054466553032398224, -0.021079111844301224, -0.00906314142048359, -0.03172099590301514, 0.030405376106500626, 0.006420942954719067, 0.041515033692121506, -0.015743553638458252, -0.0015211824793368578, -0.016971463337540627, 0.020640572533011436, -0.026063838973641396, 0.034206047654151917, 0.00071216921787709, 0.024441245943307877, -0.025449885055422783, -0.022175459191203117, 0.03405987098813057, 0.035697080194950104, 0.045023348182439804, 0.03025919757783413, -0.035317014902830124, -0.013119627721607685, -0.0302299614995718, 0.027145570144057274, -2.2983331291470677e-05, 0.014617969281971455, -0.04771305248141289, 0.031048567965626717, 0.011270454153418541, -0.01825784333050251, -0.011562814004719257, -0.033855218440294266, -0.011979426257312298, -0.04549112170934677, 0.013916307128965855, -0.076598159968853, 0.021824628114700317, -0.003608811181038618, 0.0010780752636492252, -0.0255668293684721, -0.03657415881752968, -0.005529247224330902, -0.006972771603614092, 0.0074551645666360855, -0.02786185033619404, 0.04245058447122574, 0.013178099878132343, -0.005653499625623226, -0.015875114127993584, -0.03020072542130947, -0.011211982928216457, -0.05285857990384102, 0.008624602109193802, -0.04686520993709564, -0.03511236235499382, 0.02786185033619404, -0.0037458548322319984, -0.008069119416177273, 0.06010909005999565, 0.00422093877568841, 0.07431776076555252, 0.03686651960015297, -0.015275778248906136, 0.0003460347361396998, 0.03435222804546356, -0.011116965673863888, 0.0822114646434784, 0.027247894555330276, 0.017497709020972252, 0.008573438972234726, 0.001554986578412354, 0.008273771032691002, 0.024952873587608337, -0.021941572427749634, -0.0019715987145900726, 0.031048567965626717, 0.031077804043889046, -0.033855218440294266, -0.013879762031137943, 0.006632903590798378, -0.018667146563529968, 0.06291574239730835, -0.06069381162524223, 0.0046777501702308655, 0.009932910092175007, -0.01358009409159422, 0.012023280374705791, 0.005364794749766588, 0.03622332960367203, -0.05455426126718521, -0.05528515949845314, -0.039146922528743744, -0.02384190820157528, -0.009026596322655678, 0.04306453838944435, 0.008734236471354961, 0.03449840843677521, -0.008851180784404278, 0.0212545283138752, -0.029835276305675507, -0.008368787355720997, -0.026794739067554474, 0.019076449796557426, 0.023958852514624596, 0.03160405158996582, -0.03403063490986824, 0.03166252374649048, 0.03327050060033798, 0.007181077729910612, -0.03484924137592316, 0.015129598788917065, 0.05046123266220093, -0.012673779390752316, 0.0059166233986616135, 0.028066501021385193, -0.04861936718225479, 0.01449371688067913, 0.03964393213391304, -0.032451894134283066, -0.03063926473259926, -0.04133961722254753, 0.024631278589367867, -0.03139939904212952, -0.08835101127624512, -0.025464503094553947, -0.049730334430933, 0.0032433620654046535, 0.004568115342408419, 0.025683771818876266, -0.006537886802107096, -0.010861151851713657, -0.028271153569221497, -0.012534908950328827, 0.04037483036518097, -0.01831631548702717, -0.007034897804260254, 0.010203342884778976, 0.0005084312288090587, -0.014734913595020771, 0.02729174867272377, 0.018520968034863472, 0.019324956461787224, 0.007623271085321903, 0.045666538178920746, -0.006033566780388355, -0.013667801395058632, -0.016430597752332687, -0.008821944706141949, 0.0151149807497859, -0.010013309307396412, 0.0022091406863182783, 0.04455557093024254, 0.014756840653717518, 0.045666538178920746, -0.013711655512452126, -0.08022341877222061, 0.01828707940876484, 0.029294410720467567, -0.008975433185696602, 0.030434612184762955, 0.0706925019621849, 0.03239342197775841, -0.04721604287624359, -0.047479163855314255, -0.006830246187746525, -0.016810664907097816, -0.003402332542464137, -0.002455818932503462, -0.02422197535634041, -0.019134921953082085, 0.037422001361846924, 0.016240565106272697, 0.00620167376473546, 0.013565476052463055, 0.0007034898153506219, 0.010298359207808971, -0.038796089589595795, -0.009925601072609425, 0.018696382641792297, -0.005942204501479864, -0.015611991286277771, -0.007871776819229126, -0.009545533917844296, 0.02923593856394291, -0.009604006074368954, -0.01969040557742119, -0.032159533351659775, -0.028753546997904778, 0.0021963499020785093, -0.0072541674599051476, -0.05832570046186447, -0.0034918675664812326, -0.024748222902417183, -0.035287778824567795, 0.01219138689339161, 0.00010301100701326504, -0.0061797467060387135, 0.0295282993465662, -0.01966116949915886, -0.027598727494478226, -0.025318322703242302, 0.002667779568582773, 0.01742462068796158, 0.03441070020198822, 0.001052493811585009, 0.00823722593486309, -0.008134899660944939, -0.008931579068303108, -0.015085744671523571, 0.015275778248906136, 0.01847711391746998, 0.01569969952106476, 0.05809181183576584, -0.020611336454749107, 0.05242003872990608, 0.031223982572555542, 0.020611336454749107, -0.035287778824567795, -0.013843216933310032, 3.2890431612031534e-05, 0.026341581717133522, -0.004897019825875759, 0.0014736740849912167, -0.030463848263025284, 0.04897020012140274, 0.0015476775588467717, -0.019734259694814682, 0.03262730687856674, -0.004199011716991663, -0.004407317843288183, 0.02289174124598503, 0.014099031686782837, 0.0156412273645401, -0.04277217760682106, 0.037714362144470215, 0.027730287984013557, 0.0840240865945816, 0.014932256191968918, -0.032130297273397446, 0.03791901469230652, -0.021590741351246834, -0.0008030746830627322, 0.009472444653511047, 0.006844864226877689, 0.02680935710668564, -0.015582755208015442, -0.039117686450481415, 0.019266484305262566, 0.02664855867624283, -0.05350176990032196, 0.004611969459801912, -0.015158834867179394, -0.03373827412724495, 0.01701531745493412, 0.043210718780756, -0.002735387533903122, -0.01650368794798851, 0.023374132812023163, -0.022833269089460373, -0.004831239115446806, 0.027817996218800545, 0.042596764862537384, 0.054788149893283844, 0.01742462068796158, 0.0005801506922580302, -0.01976349577307701, -0.03172099590301514, 0.04446786269545555, 0.01286381296813488, -0.05730244144797325, 0.03476153314113617, 0.07431776076555252, -0.020435921847820282, 0.06157088652253151, -0.027876468375325203, 0.010795370675623417, -0.011087729595601559, 0.09121613204479218, 0.010824606753885746, 0.003775090677663684, -0.005291705019772053, -0.036281801760196686, 0.005394030828028917, 0.03294890373945236, -0.013609330169856548, -0.031867172569036484, -0.010875768959522247, 0.012008662335574627, -0.01083922479301691, -0.002687879139557481, 0.07367456704378128, 0.01739538460969925, -0.030493084341287613, 0.03020072542130947, 0.018184754997491837, 0.011402016505599022, -0.01882794499397278, 0.012505672872066498, 0.010524937883019447, -0.01803857460618019, -0.034235283732414246, -0.022423965856432915, 0.008566129952669144, -0.04476022347807884, -0.0266193225979805, 0.03230571374297142, 0.002764623612165451, -0.02508443593978882, -0.00599336763843894, -0.019017977640032768, -0.010159488767385483, 0.0562499463558197, 0.01101464033126831, 0.006811973638832569, -0.04207051545381546, -0.0032908704597502947, 0.014449862763285637, -0.005598682444542646, 0.0055475193075835705, -0.006684066727757454, 0.016971463337540627, -0.06408517807722092, 0.02604922279715538, -0.011562814004719257, -0.00543423043563962, 0.017161495983600616, 0.05066588148474693, 0.04493563994765282, -0.011073111556470394, -0.015217306092381477, 0.007414964959025383, -0.00013293216761667281, 0.005887387320399284, -0.03160405158996582, -0.004728913307189941, 0.006062802858650684, 0.0205528661608696, -0.01174553856253624, -0.008990051224827766, 0.045081816613674164, -0.022833269089460373, 0.03593096882104874, -0.01602129451930523, 0.0009291546884924173, -0.02017279900610447, -0.01442793570458889, -0.04768381640315056, 0.027715669944882393, 0.010605337098240852, -0.0018491731025278568, 0.01035683136433363, 0.04031636193394661, 0.041515033692121506, -0.0560452938079834, 0.021619977429509163, -0.052653927356004715, 0.03537548705935478, 0.03517083451151848, 0.03099009580910206, -0.02221931330859661, -0.0020154525991529226, -0.014639896340668201, 0.009552842937409878, 0.014237902127206326, -0.033884454518556595, 0.03677881136536598, 0.0046448600478470325, 0.018301697447896004, -0.005912968888878822, -0.015933586284518242, 0.05326788127422333, -0.0004090747388545424, 0.046397436410188675, 0.016445215791463852, 0.028812017291784286, -0.01201597135514021, 0.014822620898485184, -0.004915292374789715, -0.036661867052316666, 0.02793494053184986, 0.03821137174963951, 0.001878409064374864, -0.016109002754092216, -0.011380089446902275, -0.010079090483486652, 0.04785923287272453, -0.002130569191649556, -0.02648776024580002, 0.012454509735107422, -0.005967786069959402, 0.019997382536530495, -0.0058033340610563755, -0.022497056052088737, 0.010539555922150612, -0.012805341742932796, -0.02694091759622097, -0.01244720071554184, 0.04835624247789383, -0.04651438072323799, 0.0115043418481946, 0.007864467799663544, -0.0005294446018524468, 0.004264792427420616, -0.020669808611273766, -0.02221931330859661, 0.010751516558229923, 0.02378343604505062, -0.01726382225751877, 0.020055854693055153, 0.001746847410686314, 0.013638565316796303, 0.03344591334462166, -0.0030350559391081333, -0.021429942920804024, -0.022497056052088737, -0.010400685481727123, -0.002167114056646824, 0.006117620505392551, 0.003722100518643856, -0.0020245888736099005, 0.00041478488128632307, -0.01841864176094532, 0.010093707591295242, 0.06613169610500336, 0.0036453562788665295, -0.015246542170643806, -0.007107987534254789, 0.044380154460668564, 0.0378020703792572, -0.029323646798729897, 0.004085722379386425, -0.05250774696469307, -0.03581402450799942, 0.023403368890285492, -0.06724265962839127, 0.017804687842726707, -0.0031921991612762213, -0.02413426712155342, 0.02202928066253662, 0.04005323722958565, 0.0219561904668808, 0.010634573176503181, -0.014866475015878677, 0.039819348603487015, 0.013382751494646072, -0.023227954283356667, -0.02243858389556408, 0.009808657690882683, -0.014946874231100082, -0.017833922058343887, 0.017293058335781097, -0.04414626955986023, 0.019061831757426262, -0.01358009409159422, 0.034966181963682175, -0.022994065657258034, -0.014501025900244713, 0.017117641866207123, -0.003537548705935478, -0.002145186997950077, -0.02202928066253662, 0.004973764065653086, -0.011730920523405075, -0.012454509735107422, -0.05584064498543739, 0.028651220723986626, -0.006022603716701269, 0.014778767712414265, -0.016942227259278297, 0.024821313098073006, -0.016927609220147133, 0.02144456095993519, 0.022263167425990105, 0.026034604758024216, 0.02192695438861847, -0.0019588079303503036, -0.012352184392511845, 0.004118612967431545, 0.019573461264371872, 0.038825325667858124, 0.030083781108260155, 0.02221931330859661, 0.008551511913537979, -0.020509012043476105, -0.04718680679798126, 0.013287734240293503, 0.005320941098034382, -0.01306846458464861, 0.035609375685453415, -0.018520968034863472, -0.0005623350152745843, 0.02049439400434494, -0.010736898519098759, -0.0015586409717798233, -0.00911430362612009, -0.01682528294622898, -0.029645241796970367, 0.020830607041716576, -0.03099009580910206, 0.01966116949915886, -0.009947528131306171, 0.04034559801220894, 0.015933586284518242, 0.0049956911243498325, 0.020421303808689117, -0.04002400115132332, 0.05794563144445419, 0.019032595679163933, 0.03692499175667763, -0.04037483036518097, -0.04932102933526039, 0.030376140028238297, -0.027788760140538216, -0.009194702841341496, 0.022555526345968246, -0.006077420897781849, -8.342520595761016e-05, -0.04999345541000366, 0.014734913595020771, -0.01742462068796158, 0.007937557063996792, -0.020918315276503563, 0.03540472313761711, -0.05399877950549126, 0.014786076731979847, -0.007126260083168745, -0.018199373036623, 0.016415979713201523, -0.045344941318035126, -0.04660208895802498, -0.033387441188097, -0.009669787250459194, -0.03938081115484238, -0.007513636257499456, 0.0013549030991271138, 0.008653838187456131, 0.04277217760682106, -0.018053192645311356, 0.013075773604214191, 0.02295021153986454, -0.004089376889169216, -0.016620632261037827, -0.021619977429509163, -0.0013265807647258043, -0.00028596402262337506, -0.00646479707211256, -0.05320940911769867, 0.01637212559580803, -0.018623292446136475, -0.0056352270767092705, 0.0005216787685640156, 0.04823929816484451, -0.00699835317209363, -0.005423266906291246, -0.0223070215433836, -0.0051455250941216946, 0.011906336061656475, 0.05622071027755737, -0.017293058335781097, 0.04160274192690849, 0.021810010075569153, -0.0014727604575455189, -0.018974125385284424, -0.018462495878338814, -0.015626609325408936, 0.002638543490320444, -0.031428635120391846, -0.05002269148826599, -0.018155518919229507, -0.05326788127422333, -0.008390714414417744, 0.022233931347727776, 0.031487107276916504, 0.048853255808353424, 0.007056824862957001, -0.027540255337953568, 0.05759480223059654, -0.013002684339880943, 0.014544880017638206, 0.007097024470567703, -0.01163590420037508, 0.008990051224827766, -0.012666470371186733, 0.013587403111159801, -0.005605991464108229, 0.03745123744010925, -0.03125321865081787, -0.013214644975960255, 0.004224593285471201, 0.0312824547290802, 0.020216651260852814, 0.006325926166027784, -0.033884454518556595, -0.015246542170643806, -0.020918315276503563, 0.043678492307662964, 0.01007178146392107, 0.025318322703242302, 0.024148885160684586, 0.0011867964640259743, 0.006899681873619556, -0.06338351964950562, -0.011847864836454391, -0.03724658489227295, 0.015392721630632877, -0.009991382248699665, -0.06993236392736435, -0.04926255717873573, 0.02387114427983761, 0.016971463337540627, -0.01863791048526764, -0.04429244622588158, -0.010035236366093159, 0.005368449259549379, -0.009852511808276176, -0.011577432043850422, -0.053706418722867966, -0.024412009865045547, 0.0166937205940485, -0.027467165142297745, -0.010210651904344559, -0.05040276050567627, -0.012169459834694862, 0.02186848223209381, 0.02292097732424736, 0.003131899982690811, 0.020406685769557953, 0.008324934169650078, -0.019222630187869072, -0.024075796827673912, 0.020976785570383072, 0.01688375510275364, -0.027744906023144722, -0.04095955193042755, -0.049876511096954346, 0.015611991286277771, -0.0418073944747448, -0.009487062692642212, -0.006205328274518251, 0.003141036257147789, 0.0026330617256462574, 0.00608107540756464, 0.017190732061862946, -0.008069119416177273, 0.00289253075607121, 0.033592093735933304, -0.010312977246940136, 0.004962800536304712, -0.0036727648694068193, -0.016620632261037827, -0.024850549176335335, 0.00958938803523779, -0.05449578911066055, 0.02071366272866726, -0.03788977861404419, -0.008916961029171944, 0.002446682658046484, 0.021751537919044495, 0.01704455353319645, -0.007586726453155279, 0.014018632471561432, -0.004728913307189941, 0.014515643939375877, -0.031867172569036484, 0.014435244724154472, -0.01898874342441559, 0.013507003895938396, 0.029996072873473167, -0.02821268141269684, -0.01425252016633749, 0.018535586073994637, -0.03786054253578186, 0.015173452906310558, 0.005923932418227196, -0.021619977429509163, 0.010371449403464794, 0.009823275730013847, 0.017146877944469452, -0.00965516921132803, -0.022263167425990105, 0.014384082518517971, 0.004111303947865963, 0.026034604758024216, -0.01672295667231083, -0.004199011716991663, -0.024909019470214844, 0.016415979713201523, -0.01192095410078764, -0.013806672766804695, 0.027876468375325203, 0.005931240972131491, -0.014201357960700989, -0.004114958457648754, 0.00318854465149343, 4.376825745566748e-05, 0.05239080265164375, -0.005843533203005791, 0.026692412793636322, -0.011774774640798569, -0.059290483593940735, 0.03443993628025055, 0.0016070629935711622, 0.014055177569389343, -0.012206004932522774, 0.0291774682700634, -0.0009323523845523596, 0.006110311485826969, 0.04806388542056084, -0.003194026416167617, 0.010407994501292706, -0.021663831546902657, 0.004951837006956339, 0.007827922701835632, 0.0003455779515206814, -0.032861195504665375, 0.014310992322862148, 0.03265654295682907, -0.055811408907175064, -0.00442924490198493, 0.02381267212331295, -0.0003805240266956389, -0.009794039651751518, 0.023037919774651527, 0.032539598643779755, 0.016299035400152206, 0.03096085973083973, -0.04405856132507324, 0.019237248227000237, 0.04970109835267067, -0.008997360244393349, 0.03604791313409805, 0.002792032202705741, -0.01104387640953064, -0.03952699154615402, -0.06192171946167946, -0.02888510748744011, 0.043210718780756, 0.06490378826856613, -0.012374111451208591, -0.007652507163584232, 0.020801370963454247, -0.016971463337540627, -0.012776105664670467, -0.005156488623470068, 0.01663525030016899, 0.014435244724154472, -0.011672448366880417, 0.002494191052392125, -0.026443907991051674, -0.04587118700146675, 0.017790069803595543, 0.001997180050238967, 0.014186739921569824, -0.051981501281261444, 0.0073418752290308475, 0.01463258732110262, 0.017833922058343887, -0.002104987623170018, 0.015407339669764042, 0.019047213718295097, 0.036691103130578995, 0.0012005007592961192, 0.024850549176335335, -0.019924292340874672, 0.0018080601003021002, 0.05119213089346886, 0.0061212750151753426, -0.004381736274808645, 0.023403368890285492, 0.005682735703885555, -0.03403063490986824, 0.0347907692193985, 0.01707378774881363, -0.0011201018933206797, 0.010539555922150612, -0.0013649528846144676, 0.011350853368639946, -0.02106449380517006, -0.02993760257959366, 0.017673125490546227, 0.0039029978215694427, -0.029513681307435036, -0.022000044584274292, 0.011928263120353222, -0.034936945885419846, 0.044672515243291855, -0.003935888409614563, 0.009004669263958931, -0.003206817200407386, -0.011511650867760181, -0.008478422649204731, 0.008807326667010784, 0.024616660550236702, -0.03262730687856674, 0.02224854938685894, -0.009004669263958931, -0.0018053192179650068, -0.003141036257147789, -0.031487107276916504, 0.019734259694814682, -0.0033529968932271004, 0.01463258732110262, -0.05984596908092499, 0.004228247795253992, 0.019237248227000237, 0.005518283694982529, 0.05142601579427719, -0.003360305679962039, -0.01931033842265606, 0.06373434513807297, 0.04516952484846115, -0.006424597464501858, 0.04335689917206764, 0.007696360815316439, -0.0015796542866155505, 0.01985120214521885, 0.021108347922563553, 0.03020072542130947, -0.03332896903157234, 0.03473229706287384, 0.015875114127993584, 0.007835231721401215, 0.006980080623179674, -0.002000834560021758, 0.017994720488786697, -0.020962169393897057, 0.007334566209465265, 0.026853209361433983, 0.013046537525951862, 0.021283764392137527, -0.00782061368227005, -0.02977680414915085, -0.012586072087287903, -0.008536893874406815, -0.0026093076448887587, 0.012140223756432533, 0.002792032202705741, -0.012235241010785103, 0.013770127668976784, 0.023198718205094337, 0.008069119416177273, -0.03335820510983467, 0.024602042511105537, 0.0028907035011798143, -0.006475760601460934, 0.03648645058274269, 0.02604922279715538, 0.007908321917057037, -0.010291050188243389, -0.024952873587608337, 0.027891086414456367, 0.012973448261618614, -0.0368957556784153, 0.026882445439696312, 0.03993629291653633, 0.027686433866620064, 0.009333573281764984, 0.006782738026231527, 0.0206551905721426, -0.006950844544917345, 0.0340891070663929, 0.058881182223558426, 0.021079111844301224, -0.019061831757426262, -0.021473797038197517, -0.01701531745493412, 0.01612362079322338, -0.01966116949915886, -0.045403413474559784, -0.02812497317790985, 0.0032671161461621523, 0.0024137923028320074, -0.00033529967186041176, 0.023768818005919456, 0.012008662335574627, 0.012132914736866951, 0.05209844559431076, -0.005364794749766588, -0.014515643939375877, 0.018433259800076485, 0.02537679485976696, 0.00043054489651694894, -0.0067352293990552425, -0.04686520993709564, -0.03593096882104874, -0.004546188749372959, 0.009172775782644749, 0.02642928995192051, -0.0291774682700634, -0.024251211434602737, 0.007184732239693403, 0.002126914681866765, 0.03099009580910206, 0.011211982928216457, 0.019705023616552353, -0.025128290057182312, 0.014237902127206326, -0.02238011173903942, 0.0354924313724041, 0.018374787643551826, -0.011928263120353222, -0.010583410039544106, 0.011862481944262981, 0.003979742061346769, -0.021561505272984505, 0.03063926473259926, -0.008661147207021713, -0.03324126452207565, 0.009172775782644749, -0.002823095303028822, -0.024207357317209244, -0.009618624113500118, -0.031837936490774155, -0.003530239686369896, 0.0018117146100848913, 0.03862067684531212, 0.006446524523198605, -0.03210106119513512, -0.01618209294974804, -0.029411355033516884, -0.032539598643779755, 0.013653183355927467, 0.02799341268837452, 0.008134899660944939, 0.005437884479761124, 0.029469827190041542, -0.0010725934989750385, 0.012184077873826027, 0.016679102554917336, -0.02384190820157528, 0.012885740026831627, 0.045403413474559784, -0.00696546258404851, -0.014062486588954926, -0.009582079015672207, -0.016240565106272697, 0.013704346492886543, -0.013178099878132343, 0.01596282236278057, 0.004231902305036783, -0.03446917235851288, 0.004202666226774454, 0.017848540097475052, 0.008244534954428673, 0.028066501021385193, -0.009903674013912678, 0.008032574318349361, -0.013229262083768845, -0.011380089446902275, -0.013879762031137943, -0.01723458617925644, -0.015041890554130077, -0.003482731292024255, 0.034556880593299866, -0.028168827295303345, 0.015875114127993584, 0.03645721450448036, 0.01189171802252531, -0.027598727494478226, -0.0025837260764092207, -0.0069910441525280476, -0.025844570249319077, -0.009501680731773376, -0.016766810789704323, 0.0007423187489621341, 0.004893365316092968, -0.02311100997030735, -0.003652665065601468, -0.027788760140538216, -0.009808657690882683, -0.007784069050103426, -0.013090391643345356, 0.014946874231100082, 0.007118951063603163, -0.053004756569862366, 0.007827922701835632, 0.01976349577307701, 0.0003293611225672066, 0.02926517464220524, -0.05072435364127159, 0.005616954993456602, -0.038386788219213486, -0.018491731956601143, 0.0003910306841135025, 0.025449885055422783, -0.009918292053043842, 0.013441222719848156, 0.0017103024292737246, -0.03613562136888504, 0.0023662839084863663, 0.010714971460402012, -0.021824628114700317, 0.01469836849719286, -0.018345551565289497, -0.008544202893972397, -0.019997382536530495, -0.007484400644898415, -0.03265654295682907, -0.008653838187456131, 0.04043330252170563, -0.005255159921944141, 0.021751537919044495, -0.008017956279218197, -0.0203043594956398, 0.05154296010732651, 0.016255183145403862, 0.021079111844301224, 0.0034443591721355915, -0.004294028505682945, -0.028709692880511284, 0.003194026416167617, -0.01330966129899025, 0.006680412217974663, -0.03482000529766083, -0.029601387679576874, 0.006015294697135687, -0.00868307426571846, 0.0210060216486454, -0.005236887838691473, -0.006475760601460934, 0.02157612331211567, 0.008463804610073566, 0.012900358065962791, -0.01077344361692667, -0.0030770825687795877, -0.002205486176535487, -0.010853842832148075, -0.027233276516199112, 0.007071442902088165, 0.014822620898485184, -0.030142253264784813, -0.038035955280065536, 0.02780337817966938, 0.02993760257959366, 0.015714317560195923, 0.005496356636285782, 0.0012388728791847825, 0.01650368794798851, 0.010371449403464794, -0.030756209045648575, 0.004491371102631092, 0.00422093877568841, -0.011467796750366688, -0.006705993786454201, -0.025391412898898125, -2.048514261332457e-06, -0.02243858389556408, -0.06157088652253151, -0.002634888980537653, -0.026692412793636322, 0.011643213219940662, -0.01976349577307701, -0.0031081459019333124, -0.0027573145925998688, -0.03467382490634918, -0.019953528419137, -0.018725618720054626, 0.0004383106715977192, 0.012666470371186733, 0.011738229542970657, 0.010583410039544106, -0.020055854693055153, -0.009070450440049171, 0.011979426257312298, 0.008734236471354961, 0.03230571374297142, -0.00015451651415787637, -0.003738545812666416, 0.030171489343047142, -0.03613562136888504, -0.0031958536710590124, -0.03125321865081787, -0.04654361680150032, -0.03581402450799942, -0.01841864176094532, -0.01777545176446438, 0.001956980675458908, -0.05771174281835556, 0.04142732545733452, -0.021488415077328682, -0.016386743634939194, 0.006819282658398151, 0.015451193787157536, 0.014859165996313095, -0.020962169393897057, 0.006885063834488392, 0.0019368809880688787, 0.02534755878150463, 0.035580139607191086, -0.021912336349487305, 0.025069817900657654, 0.010590719059109688, -0.014479098841547966, 0.0057485164143145084, -0.025610683485865593, -0.053677186369895935, 0.03555090352892876, -0.03192564472556114, 0.0021872136276215315, -0.05709778890013695, 0.01171630248427391, 0.03613562136888504, 0.015538902021944523, -0.004794694017618895, -0.018667146563529968, 0.006607322487980127, 0.013075773604214191, -0.00498838210478425, -0.003382232738658786, 0.005050508305430412, -0.008909652940928936, -0.02923593856394291, 0.0020830605644732714, 0.03555090352892876, 0.014800693839788437, 0.012052515521645546, 0.04315224662423134, -0.02403194271028042, 0.006176092196255922, 0.010393376462161541, -0.004370772745460272, -0.02575686201453209, 0.012388729490339756, -0.023900380358099937, 0.005529247224330902, 0.0028249225579202175, -0.016869137063622475, -0.009633242152631283, 0.025654537603259087, -0.0002528452023398131, 0.017439236864447594, -0.009428590536117554, 0.008990051224827766, 0.017468472942709923, -0.023885762318968773, 0.03727582097053528, -0.03028843365609646, -0.025303704664111137, -0.009326264262199402, -0.03847449645400047, -0.02604922279715538, 0.02961600571870804, 0.001576913520693779, -0.015041890554130077, 0.001594272325746715, 0.005065126344561577, 0.007422273978590965, -0.01449371688067913, -0.01857944019138813, 0.000633597606793046, -0.020187415182590485, 0.018243225291371346, -0.03821137174963951, 0.018111664801836014, -0.010488392785191536, 0.015305014327168465, -0.00478007597848773, 0.013704346492886543, 0.032861195504665375, 0.01988043822348118, -0.001184055581688881, 0.020757516846060753, -0.00010672259668353945, 0.005620609503239393, 0.017029935494065285, -0.007484400644898415, 0.0024137923028320074, -0.0002987547486554831, -0.02259938046336174, 0.0013512485893443227, 0.013704346492886543, 0.015904350206255913, -0.016240565106272697, 0.011723611503839493, 0.03329973667860031, 0.026604704558849335, 0.017600035294890404, -0.005525592714548111, 0.007444201037287712, -0.02780337817966938, -0.004016287159174681, -0.03160405158996582, -0.00047325677587650716, -0.03686651960015297, 0.015407339669764042, -0.01707378774881363, -0.00941397249698639, 0.011095038615167141, -0.03221800550818443, -0.003088046098127961, 0.02850504033267498, 0.017146877944469452, -0.01236680243164301, 0.012995375320315361, 0.004122267477214336, -0.004809312056750059, -0.035667844116687775, -0.009070450440049171, 0.006782738026231527, 0.017848540097475052, -0.02993760257959366, 0.03552166745066643, -0.02036283165216446, 0.03517083451151848, 0.032451894134283066, 0.002764623612165451, 0.03695422783493996, 0.01771697960793972, 0.007159150671213865, -0.0248651672154665, 0.033855218440294266, 0.005945859011262655, -0.010897696018218994, -0.00820068083703518, -0.013894380070269108, 0.027364838868379593, -0.002424755599349737, 0.010890386998653412, 0.013675110414624214, -0.00016399534069932997, -0.0017148705665022135, 0.0009159071487374604, 0.012827268801629543, 0.01739538460969925, -0.00896812416613102, -0.01950037106871605, -0.013821289874613285, -0.0223070215433836, 0.003972433041781187, 0.03151634335517883, 0.012695706449449062, -0.0011867964640259743, 0.020582100376486778, 0.030025308951735497, 0.004041868727654219, 0.003797017503529787, 0.008405332453548908, 0.025654537603259087, 0.012878431007266045, -0.0020958513487130404, 0.0018354688072577119, 0.029484445229172707, 0.02642928995192051, 0.004294028505682945, -0.028621984645724297, -0.0034005052875727415, -0.010459157638251781, -0.0021835591178387403, 0.0055475193075835705, -0.009399354457855225, 0.006479415111243725, 0.0023955197539180517, 0.01615285687148571, -0.010291050188243389, -0.004290373995900154, 0.0219561904668808, -0.000965699611697346, -0.010269124060869217, 0.007981411181390285, 0.018082428723573685, 0.013221953995525837, 0.027087097987532616, 0.006826591677963734, 0.010108325630426407, -0.026502378284931183, 0.02828577160835266, -0.0106784263625741, 0.018491731956601143, 0.0007633321220055223, -0.02847580425441265, 0.011255837045609951, 0.018871799111366272, 0.005529247224330902, 0.007020279765129089, 0.0017358838813379407, -0.012293712235987186, 0.03923463076353073, 0.01631365343928337, -0.0007532822201028466, 0.023988088592886925, 0.05692237243056297, -0.005269777961075306, 0.021634595468640327, 0.028519658371806145, -0.00037938199238851666, -0.0021908681374043226, 0.0031227637082338333, 0.007203004322946072, -0.01348507683724165, -0.004374427255243063, -0.005967786069959402, 0.003157481551170349, 0.0034681132528930902, -0.03347514942288399, -0.0011676102876663208, 0.0034681132528930902, -0.04163197800517082, -0.03063926473259926, 0.01602129451930523, -0.013813980855047703, -0.03376751020550728, 0.0692891776561737, -0.01094885915517807, -0.029762186110019684, -0.013221953995525837, -0.009399354457855225, 0.0002273779537063092, 0.02610769309103489, -0.0004408231470733881, 0.05037352442741394, -0.019675787538290024, 0.015348868444561958, -0.006483069621026516, 0.015407339669764042, -0.017848540097475052, -0.001891199848614633, 0.01514421682804823, 0.03201335296034813, 0.022935593500733376, 0.019573461264371872, -0.00782061368227005, -0.008039883337914944, -0.02403194271028042], "id": 100}] diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index a47da368c7302..636a2edb3eb70 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -3,6 +3,7 @@ ### 4.65.0-beta.1 (Unreleased) #### Features Added +* Added support for Hybrid Search and Full text queries and new query features `HybridSearch` and `CountIf` in CosmosDB - See [42885](https://github.com/Azure/azure-sdk-for-java/pull/42885) * Added `CosmosFullTextPolicy` in `CosmosContainerProperties` and `CosmosFullTextIndexes` in `IndexingPolicy` to support Full Text Search in Cosmos DB - See [PR 42278](https://github.com/Azure/azure-sdk-for-java/pull/42278) * Added two new properties `quantizationSizeInBytes` and `indexingSearchListSize` to the `CosmosVectorIndexSpec` to support Partitioned DiskANN for vector search in Cosmos DB - See [PR 42333](https://github.com/Azure/azure-sdk-for-java/pull/42333) * Added system property `COSMOS.LOAD_AZURE_VM_META_DATA` to allow customers to disable/enable loading Azure VM metadata for diagnostics - See [PR 42874](https://github.com/Azure/azure-sdk-for-java/pull/42874) diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Configs.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Configs.java index 8442dd1bc31dc..6b5d5be14b69a 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Configs.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Configs.java @@ -179,6 +179,10 @@ public class Configs { private static final String MAX_ITEM_COUNT_FOR_VECTOR_SEARCH = "COSMOS.MAX_ITEM_SIZE_FOR_VECTOR_SEARCH"; public static final int DEFAULT_MAX_ITEM_COUNT_FOR_VECTOR_SEARCH = 50000; + private static final String MAX_ITEM_COUNT_FOR_HYBRID_SEARCH = "COSMOS.MAX_ITEM_SIZE_FOR_HYBRID_SEARCH"; + private static final String MAX_ITEM_COUNT_FOR_HYBRID_SEARCH_VARIABLE = "COSMOS_MAX_ITEM_SIZE_FOR_HYBRID_SEARCH"; + public static final int DEFAULT_MAX_ITEM_COUNT_FOR_HYBRID_SEARCH = 1000; + private static final String AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY = "COSMOS.AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY"; private static final boolean DEFAULT_AZURE_COSMOS_DISABLE_NON_STREAMING_ORDER_BY = false; @@ -604,6 +608,19 @@ public static int getMaxItemCountForVectorSearch() { String.valueOf(DEFAULT_MAX_ITEM_COUNT_FOR_VECTOR_SEARCH)))); } + public static int getMaxItemCountForHybridSearchSearch() { + String valueFromSystemProperty = System.getProperty(MAX_ITEM_COUNT_FOR_HYBRID_SEARCH); + if (valueFromSystemProperty != null && !valueFromSystemProperty.isEmpty()) { + return Integer.parseInt(valueFromSystemProperty); + } + + String valueFromSystemVariable = System.getenv(MAX_ITEM_COUNT_FOR_HYBRID_SEARCH_VARIABLE); + if (valueFromSystemVariable != null && !valueFromSystemVariable.isEmpty()) { + return Integer.parseInt(valueFromSystemVariable); + } + return DEFAULT_MAX_ITEM_COUNT_FOR_HYBRID_SEARCH; + } + public static boolean getAzureCosmosNonStreamingOrderByDisabled() { if(logger.isTraceEnabled()) { logger.trace( diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Constants.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Constants.java index 7ba92f3bfcecb..2bb480e88dda8 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Constants.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Constants.java @@ -129,6 +129,19 @@ public static final class Properties { public static final String FULL_TEXT_POLICY = "fullTextPolicy"; public static final String FULL_TEXT_PATHS = "fullTextPaths"; + // Hybrid Search Query + public static final String GLOBAL_STATISTICS_QUERY = "globalStatisticsQuery"; + public static final String COMPONENT_QUERY_INFOS = "componentQueryInfos"; + public static final String PROJECTION_QUERY_INFO = "projectionQueryInfo"; + public static final String SKIP = "skip"; + public static final String TAKE = "take"; + public static final String REQUIRES_GLOBAL_STATISTICS = "requiresGlobalStatistics"; + public static final String TOTAL_WORD_COUNT = "totalWordCount"; + public static final String HIT_COUNTS = "hitCounts"; + public static final String DOCUMENT_COUNT = "documentCount"; + public static final String FULL_TEXT_QUERY_STATISTICS = "fullTextStatistics"; + public static final String PAYLOAD = "payload"; + public static final String COMPONENT_SCORES = "componentScores"; // Vector Embedding Policy public static final String VECTOR_EMBEDDING_POLICY = "vectorEmbeddingPolicy"; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/CosmosQueryRequestOptionsImpl.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/CosmosQueryRequestOptionsImpl.java index b7b7b3f50b0b1..3e0839a8eb41f 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/CosmosQueryRequestOptionsImpl.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/CosmosQueryRequestOptionsImpl.java @@ -29,6 +29,7 @@ public final class CosmosQueryRequestOptionsImpl extends CosmosQueryRequestOptio private boolean emptyPageDiagnosticsEnabled; private String queryName; private Integer maxItemCountForVectorSearch; + private Integer maxItemCountForHybridSearch; private List cancelledRequestDiagnosticsTracker = new ArrayList<>(); private String collectionRid; @@ -69,6 +70,7 @@ public CosmosQueryRequestOptionsImpl(CosmosQueryRequestOptionsImpl options) { this.feedRange = options.feedRange; this.cancelledRequestDiagnosticsTracker = options.cancelledRequestDiagnosticsTracker; this.maxItemCountForVectorSearch = options.maxItemCountForVectorSearch; + this.maxItemCountForHybridSearch = options.maxItemCountForHybridSearch; this.collectionRid = options.collectionRid; } @@ -235,6 +237,15 @@ public Integer getMaxItemCountForVectorSearch() { return this.maxItemCountForVectorSearch; } + /** + * Gets the maximum item size to fetch during hybrid search queries. + * + * @return the max number of items for hybrid search. + */ + public Integer getMaxItemCountForHybridSearch() { + return this.maxItemCountForHybridSearch != null ? this.maxItemCountForHybridSearch : Configs.getMaxItemCountForHybridSearchSearch(); + } + /** * Sets the maximum item size to fetch during non-streaming order by queries. * diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ImplementationBridgeHelpers.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ImplementationBridgeHelpers.java index 7b3115def5c4b..c9b374ddad8aa 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ImplementationBridgeHelpers.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ImplementationBridgeHelpers.java @@ -297,6 +297,8 @@ void setCancelledRequestDiagnosticsTracker( Integer getMaxItemCountForVectorSearch(CosmosQueryRequestOptions options); + Integer getMaxItemCountForHybridSearch(CosmosQueryRequestOptions options); + void setPartitionKeyDefinition(CosmosQueryRequestOptions options, PartitionKeyDefinition partitionKeyDefinition); PartitionKeyDefinition getPartitionKeyDefinition(CosmosQueryRequestOptions options); diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/JsonSerializable.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/JsonSerializable.java index bfc1da051b363..a390fa490a331 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/JsonSerializable.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/JsonSerializable.java @@ -384,7 +384,7 @@ public Integer getInt(String propertyName) { * @param propertyName the property to get. * @return the long value */ - protected Long getLong(String propertyName) { + public Long getLong(String propertyName) { return getWithMapping(propertyName, JsonNode::asLong); } diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/DocumentQueryExecutionContextFactory.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/DocumentQueryExecutionContextFactory.java index a1b5063917187..1149e15f43bdf 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/DocumentQueryExecutionContextFactory.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/DocumentQueryExecutionContextFactory.java @@ -16,12 +16,12 @@ import com.azure.cosmos.implementation.RxDocumentServiceRequest; import com.azure.cosmos.implementation.Utils; import com.azure.cosmos.implementation.apachecommons.lang.StringUtils; -import com.azure.cosmos.implementation.apachecommons.lang.tuple.Pair; import com.azure.cosmos.implementation.caches.RxCollectionCache; -import com.azure.cosmos.implementation.changefeed.CancellationToken; import com.azure.cosmos.implementation.feedranges.FeedRangeEpkImpl; import com.azure.cosmos.implementation.feedranges.FeedRangeInternal; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; import com.azure.cosmos.implementation.routing.PartitionKeyInternal; +import com.azure.cosmos.implementation.routing.PartitionKeyInternalHelper; import com.azure.cosmos.implementation.routing.Range; import com.azure.cosmos.models.CosmosQueryRequestOptions; import com.azure.cosmos.models.FeedRange; @@ -37,6 +37,7 @@ import java.time.Instant; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; @@ -59,6 +60,7 @@ public class DocumentQueryExecutionContextFactory { private final static int PageSizeFactorForTop = 5; private static final Logger logger = LoggerFactory.getLogger(DocumentQueryExecutionContextFactory.class); private static final ImplementationBridgeHelpers.CosmosQueryRequestOptionsHelper.CosmosQueryRequestOptionsAccessor queryRequestOptionsAccessor = ImplementationBridgeHelpers.CosmosQueryRequestOptionsHelper.getCosmosQueryRequestOptionsAccessor(); + private static Mono> resolveCollection(DiagnosticsClientContext diagnosticsClientContext, IDocumentQueryClient client, ResourceType resourceTypeEnum, @@ -75,7 +77,7 @@ private static Mono> resolveCollection(Dia return collectionCache.resolveCollectionAsync(null, request); } - private static Mono>,QueryInfo>> getPartitionKeyRangesAndQueryInfo( + private static Mono getPartitionKeyRangesAndQueryInfo( DiagnosticsClientContext diagnosticsClientContext, IDocumentQueryClient client, SqlQuerySpec query, @@ -96,11 +98,16 @@ private static Mono>,QueryInfo>> getPartitionKeyRang collection.getResourceId(), ModelBridgeInternal.getPartitionKeyRangeIdInternal(cosmosQueryRequestOptions)); - return partitionKeyRanges.map(pkRanges -> { - List> ranges = - pkRanges.stream().map(PartitionKeyRange::toRange).collect(Collectors.toList()); - return Pair.of(ranges, QueryInfo.EMPTY); - }); + Mono>> allRanges = queryExecutionContext.getTargetPartitionKeyRanges( + collection.getResourceId(), new ArrayList<>(Arrays.asList(PartitionKeyInternalHelper.FullRange)) + ).map(pkRanges -> pkRanges.stream().map(PartitionKeyRange::toRange).collect(Collectors.toList())); + + return Mono.zip(partitionKeyRanges, allRanges). + map(tuple -> { + List> targetRanges = + tuple.getT1().stream().map(PartitionKeyRange::toRange).collect(Collectors.toList()); + return new PartitionKeyRangesAndQueryInfos(QueryInfo.EMPTY, null, targetRanges, tuple.getT2()); + }); } Instant startTime = Instant.now(); @@ -155,16 +162,19 @@ private static Mono>,QueryInfo>> getPartitionKeyRang }); } - private static Mono>, QueryInfo>> getTargetRangesFromQueryPlan( + private static Mono getTargetRangesFromQueryPlan( CosmosQueryRequestOptions cosmosQueryRequestOptions, DocumentCollection collection, DefaultDocumentQueryExecutionContext queryExecutionContext, PartitionedQueryExecutionInfo partitionedQueryExecutionInfo, Instant planFetchStartTime, Instant planFetchEndTime) { + QueryInfo queryInfo = partitionedQueryExecutionInfo.getQueryInfo(); - queryInfo.setQueryPlanDiagnosticsContext(new QueryInfo.QueryPlanDiagnosticsContext(planFetchStartTime, - planFetchEndTime, - partitionedQueryExecutionInfo.getQueryPlanRequestTimeline())); + if (queryInfo != null) { + queryInfo.setQueryPlanDiagnosticsContext(new QueryInfo.QueryPlanDiagnosticsContext(planFetchStartTime, + planFetchEndTime, + partitionedQueryExecutionInfo.getQueryPlanRequestTimeline())); + } List> queryRanges = partitionedQueryExecutionInfo.getQueryRanges(); @@ -172,30 +182,49 @@ private static Mono>, QueryInfo>> getTargetRangesFro PartitionKeyInternal internalPartitionKey = BridgeInternal.getPartitionKeyInternal(cosmosQueryRequestOptions.getPartitionKey()); Range range = Range.getPointRange( - internalPartitionKey.getEffectivePartitionKeyString(internalPartitionKey,collection.getPartitionKey())); + internalPartitionKey.getEffectivePartitionKeyString(internalPartitionKey, collection.getPartitionKey())); queryRanges = Collections.singletonList(range); } if (cosmosQueryRequestOptions != null && cosmosQueryRequestOptions.getFeedRange() != null) { FeedRange userProvidedFeedRange = cosmosQueryRequestOptions.getFeedRange(); - return queryExecutionContext.getTargetRange(collection.getResourceId(), - FeedRangeInternal.convert(userProvidedFeedRange)) - .map(range -> Pair.of(Collections.singletonList(range), - partitionedQueryExecutionInfo.getQueryInfo())); + Mono> targetRange = queryExecutionContext + .getTargetRange( + collection.getResourceId(), + FeedRangeInternal.convert(userProvidedFeedRange)); + Mono>> allRanges = queryExecutionContext. + getTargetPartitionKeyRanges( + collection.getResourceId(), new ArrayList<>(Arrays.asList(PartitionKeyInternalHelper.FullRange)) + ).map(pkRanges -> pkRanges.stream().map(PartitionKeyRange::toRange).collect(Collectors.toList())); + + return Mono.zip(targetRange, allRanges) + .map(tuple -> { + if (partitionedQueryExecutionInfo.hasHybridSearchQueryInfo()) { + return new PartitionKeyRangesAndQueryInfos(null, partitionedQueryExecutionInfo.getHybridSearchQueryInfo(), Collections.singletonList(tuple.getT1()), tuple.getT2()); + } else { + return new PartitionKeyRangesAndQueryInfos(queryInfo, null, Collections.singletonList(tuple.getT1()), tuple.getT2()); + } + }); } - return - queryExecutionContext.getTargetPartitionKeyRanges(collection.getResourceId(), queryRanges) - .map(pkRanges -> { - List> ranges = - pkRanges.stream().map(PartitionKeyRange::toRange).collect(Collectors.toList()); - return Pair.of( - ranges, - partitionedQueryExecutionInfo.getQueryInfo()); - }); + Mono>> targetRanges = queryExecutionContext.getTargetPartitionKeyRanges(collection.getResourceId(), queryRanges) + .map(pkRanges -> pkRanges.stream().map(PartitionKeyRange::toRange).collect(Collectors.toList())); + + Mono>> allRanges = queryExecutionContext.getTargetPartitionKeyRanges( + collection.getResourceId(), new ArrayList<>(Arrays.asList(PartitionKeyInternalHelper.FullRange))) + .map(pkRanges -> pkRanges.stream().map(PartitionKeyRange::toRange).collect(Collectors.toList())); + + return Mono.zip(targetRanges, allRanges) + .map(tuple -> { + if (partitionedQueryExecutionInfo.hasHybridSearchQueryInfo()) { + return new PartitionKeyRangesAndQueryInfos(null, partitionedQueryExecutionInfo.getHybridSearchQueryInfo(), tuple.getT1(), tuple.getT2()); + } else { + return new PartitionKeyRangesAndQueryInfos(partitionedQueryExecutionInfo.getQueryInfo(), null, tuple.getT1(), tuple.getT2()); + } + }); } - private static Mono>, QueryInfo>> getTargetRangesFromEmptyQueryPlan( + private static Mono getTargetRangesFromEmptyQueryPlan( CosmosQueryRequestOptions cosmosQueryRequestOptions, DocumentCollection collection, DefaultDocumentQueryExecutionContext queryExecutionContext, @@ -216,14 +245,17 @@ private static Mono>, QueryInfo>> getTargetRangesFro planFetchEndTime)); FeedRange userProvidedFeedRange = cosmosQueryRequestOptions.getFeedRange(); - - return queryExecutionContext + Mono> targetRange = queryExecutionContext .getTargetRange( collection.getResourceId(), - FeedRangeInternal.convert(userProvidedFeedRange)) - .map(range -> Pair.of( - Collections.singletonList(range), - queryInfo)); + FeedRangeInternal.convert(userProvidedFeedRange)); + Mono>> allRanges = queryExecutionContext. + getTargetPartitionKeyRanges( + collection.getResourceId(), new ArrayList<>(Arrays.asList(PartitionKeyInternalHelper.FullRange)) + ).map(pkRanges -> pkRanges.stream().map(PartitionKeyRange::toRange).collect(Collectors.toList())); + + return Mono.zip(targetRange, allRanges) + .map(tuple -> new PartitionKeyRangesAndQueryInfos(queryInfo, null, Collections.singletonList(tuple.getT1()), tuple.getT2())); } synchronized private static void tryCacheQueryPlan( @@ -274,6 +306,19 @@ private static List resolveFeedRangeBasedOnPrefixContainer( return feedRanges2; } + private static List getFeedRangeEpks(List> ranges, DocumentCollection collection, CosmosQueryRequestOptions cosmosQueryRequestOptions) { + List feedRanges = ranges.stream() + .map(FeedRangeEpkImpl::new) + .collect(Collectors.toList()); + + if (collection.getPartitionKey() != null && cosmosQueryRequestOptions.getPartitionKey() != null + && collection.getPartitionKey().getKind().equals(PartitionKind.MULTI_HASH)) { + feedRanges = resolveFeedRangeBasedOnPrefixContainer(feedRanges, collection.getPartitionKey(), + cosmosQueryRequestOptions.getPartitionKey()); + } + return feedRanges; + } + public static Flux> createDocumentQueryExecutionContextAsync( DiagnosticsClientContext diagnosticsClientContext, IDocumentQueryClient client, @@ -315,7 +360,7 @@ public static Flux> createDocume queryRequestOptionsAccessor.setPartitionKeyDefinition(cosmosQueryRequestOptions, collectionValueHolder.v.getPartitionKey()); queryRequestOptionsAccessor.setCollectionRid(cosmosQueryRequestOptions, collectionValueHolder.v.getResourceId()); - Mono>, QueryInfo>> queryPlanTask = + Mono queryPlanTask = getPartitionKeyRangesAndQueryInfo(diagnosticsClientContext, client, query, @@ -335,8 +380,10 @@ public static Flux> createDocume cosmosQueryRequestOptions, resourceLink, isContinuationExpected, - queryPlan.getRight(), - queryPlan.getLeft(), + queryPlan.getQueryInfo(), + queryPlan.getHybridSearchQueryInfo(), + queryPlan.getTargetRanges(), + queryPlan.getAllRanges(), collectionValueHolder.v, correlatedActivityId, isQueryCancelledOnTimeout) @@ -344,20 +391,22 @@ public static Flux> createDocume }).flux(); } - public static Flux> createSpecializedDocumentQueryExecutionContextAsync( - DiagnosticsClientContext diagnosticsClientContext, - IDocumentQueryClient client, - ResourceType resourceTypeEnum, - Class resourceType, - SqlQuerySpec query, - CosmosQueryRequestOptions cosmosQueryRequestOptions, - String resourceLink, - boolean isContinuationExpected, - QueryInfo queryInfo, - List> targetRanges, - DocumentCollection collection, - UUID correlatedActivityId, - final AtomicBoolean isQueryCancelledOnTimeout) { + public static Flux> createSpecializedDocumentQueryExecutionContextAsync( + DiagnosticsClientContext diagnosticsClientContext, + IDocumentQueryClient client, + ResourceType resourceTypeEnum, + Class resourceType, + SqlQuerySpec query, + CosmosQueryRequestOptions cosmosQueryRequestOptions, + String resourceLink, + boolean isContinuationExpected, + QueryInfo queryInfo, + HybridSearchQueryInfo hybridSearchQueryInfo, + List> targetRanges, + List> allRanges, + DocumentCollection collection, + UUID correlatedActivityId, + final AtomicBoolean isQueryCancelledOnTimeout) { int initialPageSize = Utils.getValueOrDefault( ModelBridgeInternal.getMaxItemCountFromQueryRequestOptions(cosmosQueryRequestOptions), @@ -370,75 +419,96 @@ public static Flux> createSpecia return Flux.error(validationError); } - boolean getLazyFeedResponse = queryInfo.hasTop(); + boolean getLazyFeedResponse = Boolean.FALSE; - // We need to compute the optimal initial age size for non-streaming order-by queries - if (queryInfo.hasNonStreamingOrderBy()) { - // Validate the TOP or LIMIT for non-streaming order-by queries - if (!queryInfo.hasTop() && !queryInfo.hasLimit() && queryInfo.getTop() < 0 && queryInfo.getLimit() < 0) { - throw new NonStreamingOrderByBadRequestException(HttpConstants.StatusCodes.BADREQUEST, - "Executing a vector search query without TOP or LIMIT can consume a large number of RUs" + - "very fast and have long runtimes. Please ensure you are using one of the above two filters" + - "with you vector search query."); - } - // Validate the size of TOP or LIMIT against MaxItemSizeForVectorSearch - int maxLimit = Math.max(queryInfo.hasTop() ? queryInfo.getTop() : 0, - queryInfo.hasLimit() ? queryInfo.getLimit() : 0); - int maxItemSizeForVectorSearch = Math.max(Configs.getMaxItemCountForVectorSearch(), - qryOptAccessor.getMaxItemCountForVectorSearch(cosmosQueryRequestOptions)); - if (maxLimit > maxItemSizeForVectorSearch) { - throw new NonStreamingOrderByBadRequestException(HttpConstants.StatusCodes.BADREQUEST, - "Executing a vector search query with TOP or LIMIT larger than the maxItemSizeForVectorSearch " + - "is not allowed"); + if (hybridSearchQueryInfo!=null) { + // Validate the TOP for hybrid search queries + if (!hybridSearchQueryInfo.hasTake()) { + throw new HybridSearchBadRequestException(HttpConstants.StatusCodes.BADREQUEST, + "Executing a hybrid or full text query without Top or Limit can consume a large number of RUs " + + "very fast and have long runtimes. Please ensure you are using the above filter " + + "with your hybrid or full text search query."); } - // Set initialPageSize based on the smallest of TOP or LIMIT - if (queryInfo.hasTop() || queryInfo.hasLimit()) { - int pageSizeWithTopOrLimit = Math.min(queryInfo.hasTop() ? queryInfo.getTop() : Integer.MAX_VALUE, - queryInfo.hasLimit() && queryInfo.hasOffset() ? - queryInfo.getLimit() + queryInfo.getOffset() : Integer.MAX_VALUE); - initialPageSize = pageSizeWithTopOrLimit; + + if (hybridSearchQueryInfo.hasSkip() && hybridSearchQueryInfo.getSkip() >= hybridSearchQueryInfo.getTake()) { + throw new HybridSearchBadRequestException(HttpConstants.StatusCodes.BADREQUEST, + "Executing a hybrid or full-text query with an offset(Skip) greater than or equal to limit(Take). " + + "Please ensure limit is greater than offset."); } - } - // We need to compute the optimal initial page size for order-by queries - if (queryInfo.hasOrderBy()) { - int top; - if (queryInfo.hasTop() && (top = queryInfo.getTop()) > 0) { - int pageSizeWithTop = Math.min( - (int)Math.ceil(top / (double)targetRanges.size()) * PageSizeFactorForTop, - top); + int pageSize = hybridSearchQueryInfo.hasSkip() ? hybridSearchQueryInfo.getTake() + hybridSearchQueryInfo.getSkip() : hybridSearchQueryInfo.getTake(); + int maxitemSizeForFullTextSearch = Math.max(Configs.getMaxItemCountForHybridSearchSearch(), + qryOptAccessor.getMaxItemCountForHybridSearch(cosmosQueryRequestOptions)); - if (initialPageSize > 0) { - initialPageSize = Math.min(pageSizeWithTop, initialPageSize); + if (pageSize > maxitemSizeForFullTextSearch) { + throw new HybridSearchBadRequestException(HttpConstants.StatusCodes.BADREQUEST, + "Executing a hybrid or full text search query with TOP larger than the maxItemSizeForHybridSearch " + + "is not allowed"); + } + initialPageSize = pageSize; + } else { + + getLazyFeedResponse = queryInfo.hasTop(); + // We need to compute the optimal initial page size for non-streaming order-by queries + if (queryInfo.hasNonStreamingOrderBy()) { + // Validate the TOP or LIMIT for non-streaming order-by queries + if (!queryInfo.hasTop() && !queryInfo.hasLimit() && queryInfo.getTop() < 0 && queryInfo.getLimit() < 0) { + throw new NonStreamingOrderByBadRequestException(HttpConstants.StatusCodes.BADREQUEST, + "Executing a vector search query without TOP or LIMIT can consume a large number of RUs" + + "very fast and have long runtimes. Please ensure you are using one of the above two filters" + + "with you vector search query."); } - else { - initialPageSize = pageSizeWithTop; + // Validate the size of TOP or LIMIT against MaxItemSizeForVectorSearch + int maxLimit = Math.max(queryInfo.hasTop() ? queryInfo.getTop() : 0, + queryInfo.hasLimit() ? queryInfo.getLimit() : 0); + int maxItemSizeForVectorSearch = Math.max(Configs.getMaxItemCountForVectorSearch(), + qryOptAccessor.getMaxItemCountForVectorSearch(cosmosQueryRequestOptions)); + if (maxLimit > maxItemSizeForVectorSearch) { + throw new NonStreamingOrderByBadRequestException(HttpConstants.StatusCodes.BADREQUEST, + "Executing a vector search query with TOP or LIMIT larger than the maxItemSizeForVectorSearch " + + "is not allowed"); + } + // Set initialPageSize based on the smallest of TOP or LIMIT + if (queryInfo.hasTop() || queryInfo.hasLimit()) { + int pageSizeWithTopOrLimit = Math.min(queryInfo.hasTop() ? queryInfo.getTop() : Integer.MAX_VALUE, + queryInfo.hasLimit() && queryInfo.hasOffset() ? + queryInfo.getLimit() + queryInfo.getOffset() : Integer.MAX_VALUE); + initialPageSize = pageSizeWithTopOrLimit; } } - // TODO: do not support continuation in string format right now - // else if (isContinuationExpected) - // { - // if (initialPageSize < 0) - // { - // initialPageSize = (int)Math.Max(feedOptions.MaxBufferedItemCount, - // ParallelQueryConfig.GetConfig().DefaultMaximumBufferSize); - // } - // - // initialPageSize = Math.Min( - // (int)Math.Ceiling(initialPageSize / (double)targetRanges.Count) * PageSizeFactorForTop, - // initialPageSize); - // } - } - List feedRangeEpks = targetRanges.stream().map(FeedRangeEpkImpl::new) - .collect(Collectors.toList()); + // We need to compute the optimal initial page size for order-by queries + if (queryInfo.hasOrderBy()) { + int top; + if (queryInfo.hasTop() && (top = queryInfo.getTop()) > 0) { + int pageSizeWithTop = Math.min( + (int) Math.ceil(top / (double) targetRanges.size()) * PageSizeFactorForTop, + top); - if (collection.getPartitionKey() != null && cosmosQueryRequestOptions.getPartitionKey() != null - && collection.getPartitionKey().getKind().equals(PartitionKind.MULTI_HASH)) { - feedRangeEpks = resolveFeedRangeBasedOnPrefixContainer(feedRangeEpks, collection.getPartitionKey(), - cosmosQueryRequestOptions.getPartitionKey()); + if (initialPageSize > 0) { + initialPageSize = Math.min(pageSizeWithTop, initialPageSize); + } else { + initialPageSize = pageSizeWithTop; + } + } + // TODO: do not support continuation in string format right now + // else if (isContinuationExpected) + // { + // if (initialPageSize < 0) + // { + // initialPageSize = (int)Math.Max(feedOptions.MaxBufferedItemCount, + // ParallelQueryConfig.GetConfig().DefaultMaximumBufferSize); + // } + // + // initialPageSize = Math.Min( + // (int)Math.Ceiling(initialPageSize / (double)targetRanges.Count) * PageSizeFactorForTop, + // initialPageSize); + // } + } } + List feedRangeEpks = getFeedRangeEpks(targetRanges, collection, cosmosQueryRequestOptions); + List allFeedRangeEpks = getFeedRangeEpks(allRanges, collection, cosmosQueryRequestOptions); PipelinedDocumentQueryParams documentQueryParams = new PipelinedDocumentQueryParams<>( resourceTypeEnum, resourceType, @@ -449,9 +519,11 @@ public static Flux> createSpecia isContinuationExpected, initialPageSize, queryInfo, + hybridSearchQueryInfo, cosmosQueryRequestOptions, correlatedActivityId, feedRangeEpks, + allFeedRangeEpks, isQueryCancelledOnTimeout); return PipelinedQueryExecutionContextBase.createAsync( diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchBadRequestException.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchBadRequestException.java new file mode 100644 index 0000000000000..c7a2a2e04d077 --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchBadRequestException.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.cosmos.implementation.query; + +import com.azure.cosmos.CosmosException; + +public final class HybridSearchBadRequestException extends CosmosException { + + private static final long serialVersionUID = 1L; + + /** + * Creates a new instance of the HybridSearchBadRequestException class. + * + * @param statusCode the http status code of the response. + * @param errorMessage the error message. + */ + public HybridSearchBadRequestException(int statusCode, String errorMessage) { + super(statusCode, errorMessage); + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentProducer.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentProducer.java new file mode 100644 index 0000000000000..9895a4a565fa1 --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentProducer.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.implementation.query; + +import com.azure.cosmos.implementation.Document; +import com.azure.cosmos.implementation.DocumentClientRetryPolicy; +import com.azure.cosmos.implementation.RxDocumentServiceRequest; +import com.azure.cosmos.implementation.feedranges.FeedRangeEpkImpl; +import com.azure.cosmos.models.CosmosQueryRequestOptions; +import com.azure.cosmos.models.FeedResponse; +import reactor.core.publisher.Mono; + +import java.util.UUID; +import java.util.function.Function; +import java.util.function.Supplier; + +public class HybridSearchDocumentProducer extends DocumentProducer { + public HybridSearchDocumentProducer( + IDocumentQueryClient client, + String collectionResourceId, + CosmosQueryRequestOptions cosmosQueryRequestOptions, + TriFunction createRequestFunc, + Function>> executeRequestFunc, + FeedRangeEpkImpl feedRange, + String collectionLink, + Supplier createRetryPolicyFunc, + Class resourceType, + UUID correlatedActivityId, + int initialPageSize, + String initialContinuationToken, + int top, + Supplier operationContextTextProvider) { + super(client, collectionResourceId, cosmosQueryRequestOptions, createRequestFunc, executeRequestFunc, + collectionLink, createRetryPolicyFunc, resourceType, correlatedActivityId, initialPageSize, + initialContinuationToken, top, feedRange, operationContextTextProvider); + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentQueryExecutionContext.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentQueryExecutionContext.java new file mode 100644 index 0000000000000..60dc94f25b0fd --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/HybridSearchDocumentQueryExecutionContext.java @@ -0,0 +1,512 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.implementation.query; + +import com.azure.cosmos.BridgeInternal; +import com.azure.cosmos.CosmosException; +import com.azure.cosmos.implementation.ClientSideRequestStatistics; +import com.azure.cosmos.implementation.DiagnosticsClientContext; +import com.azure.cosmos.implementation.Document; +import com.azure.cosmos.implementation.DocumentClientRetryPolicy; +import com.azure.cosmos.implementation.DocumentCollection; +import com.azure.cosmos.implementation.HttpConstants; +import com.azure.cosmos.implementation.ImplementationBridgeHelpers; +import com.azure.cosmos.implementation.RxDocumentServiceRequest; +import com.azure.cosmos.implementation.Utils; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryResult; +import com.azure.cosmos.implementation.QueryMetrics; +import com.azure.cosmos.implementation.RequestChargeTracker; +import com.azure.cosmos.implementation.ResourceType; +import com.azure.cosmos.implementation.feedranges.FeedRangeEpkImpl; +import com.azure.cosmos.implementation.query.hybridsearch.FullTextQueryStatistics; +import com.azure.cosmos.implementation.query.hybridsearch.GlobalFullTextSearchQueryStatistics; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; +import com.azure.cosmos.models.CosmosQueryRequestOptions; +import com.azure.cosmos.models.FeedResponse; +import com.azure.cosmos.models.ModelBridgeInternal; +import com.azure.cosmos.models.SqlQuerySpec; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Comparator; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.function.Function; +import java.util.function.Supplier; +import java.util.List; +import java.util.stream.Collectors; + +public class HybridSearchDocumentQueryExecutionContext extends ParallelDocumentQueryExecutionContextBase { + + private final static + ImplementationBridgeHelpers.CosmosDiagnosticsHelper.CosmosDiagnosticsAccessor diagnosticsAccessor = + ImplementationBridgeHelpers.CosmosDiagnosticsHelper.getCosmosDiagnosticsAccessor(); + + private static final ImplementationBridgeHelpers.FeedResponseHelper.FeedResponseAccessor feedResponseAccessor = + ImplementationBridgeHelpers.FeedResponseHelper.getFeedResponseAccessor(); + + private static final String FORMATTABLE_TOTAL_DOCUMENT_COUNT = "{documentdb-formattablehybridsearchquery-totaldocumentcount}"; + private static final String FORMATTABLE_TOTAL_WORD_COUNT = "{documentdb-formattablehybridsearchquery-totalwordcount-%d}"; + private static final String FORMATTABLE_HIT_COUNTS_ARRAY = "{documentdb-formattablehybridsearchquery-hitcountsarray-%d}"; + private static final String FORMATTABLE_ORDER_BY = "{documentdb-formattableorderbyquery-filter}"; + private final static String TRUE = "true"; + private final static Integer RRF_CONSTANT = 60; + + protected IDocumentQueryClient client; + private final HybridSearchQueryInfo hybridSearchQueryInfo; + private final RequestChargeTracker tracker; + private final ConcurrentMap queryMetricMap; + private final Collection clientSideRequestStatistics; + private Flux> hybridObservable; + private Mono aggregatedGlobalStatistics; + + protected HybridSearchDocumentQueryExecutionContext( + DiagnosticsClientContext diagnosticsClientContext, + IDocumentQueryClient client, + ResourceType resourceTypeEnum, + SqlQuerySpec query, + CosmosQueryRequestOptions cosmosQueryRequestOptions, + String resourceLink, + String rewrittenQuery, + UUID correlatedActivityId, + AtomicBoolean isQueryCancelledOnTimeout, + HybridSearchQueryInfo hybridSearchQueryInfo) { + super(diagnosticsClientContext, client, resourceTypeEnum, Document.class, query, cosmosQueryRequestOptions, + resourceLink, rewrittenQuery, correlatedActivityId, Boolean.FALSE, isQueryCancelledOnTimeout); + this.hybridSearchQueryInfo = hybridSearchQueryInfo; + this.client = client; + this.tracker = new RequestChargeTracker(); + this.queryMetricMap = new ConcurrentHashMap<>(); + this.clientSideRequestStatistics = ConcurrentHashMap.newKeySet(); + } + + public static Flux> createAsync( + DiagnosticsClientContext diagnosticsClientContext, + IDocumentQueryClient client, + PipelinedDocumentQueryParams initParams, + DocumentCollection collection + ) { + HybridSearchQueryInfo hybridSearchQueryInfo = initParams.getHybridSearchQueryInfo(); + + HybridSearchDocumentQueryExecutionContext context = new HybridSearchDocumentQueryExecutionContext( + diagnosticsClientContext, + client, + initParams.getResourceTypeEnum(), + initParams.getQuery(), + initParams.getCosmosQueryRequestOptions(), + initParams.getResourceLink(), + null, + initParams.getCorrelatedActivityId(), + initParams.isQueryCancelledOnTimeout(), + hybridSearchQueryInfo); + + context.setTop(initParams.getTop()); + + try { + context.initialize( + initParams.getFeedRanges(), + initParams.getAllFeedRanges(), + initParams.getInitialPageSize(), + collection); + return Flux.just(context); + } catch (CosmosException dce) { + return Flux.error(dce); + } + } + + private void initialize( + List targetFeedRanges, + List allFeedRanges, + int initialPageSize, + DocumentCollection collection) { + + + if (hybridSearchQueryInfo.getRequiresGlobalStatistics()) { + Map partitionKeyRangeToContinuationToken = new HashMap<>(); + for (FeedRangeEpkImpl feedRangeEpk : allFeedRanges) { + partitionKeyRangeToContinuationToken.put(feedRangeEpk, null); + } + super.initialize(collection, + partitionKeyRangeToContinuationToken, + initialPageSize, + new SqlQuerySpec(hybridSearchQueryInfo.getGlobalStatisticsQuery()) + ); + + aggregatedGlobalStatistics = Flux.fromIterable(documentProducers) + .flatMap(producer -> producer.produceAsync() + .map(documentProducerFeedResponse -> { + List results = documentProducerFeedResponse.pageResult.getResults(); + return new GlobalFullTextSearchQueryStatistics(results.get(0)); + })) + .collectList() + .map(this::aggregateStatistics); + } + + hybridObservable = hybridSearch(targetFeedRanges, initialPageSize, collection); + } + + private Flux> hybridSearch(List targetFeedRanges, int initialPageSize, DocumentCollection collection) { + // Retrieve and format rewritten query infos using the global statistics. + Flux rewrittenQueryInfos = retrieveRewrittenQueryInfos(hybridSearchQueryInfo.getComponentQueryInfoList()); + + // Run component queries, and retrieve component query results. + Flux componentQueryResults = getComponentQueryResults(targetFeedRanges, initialPageSize, collection, rewrittenQueryInfos); + + // Coalesce the results on unique _rids, and sort it based on the _rid + Mono>> coalescedAndSortedResults = coalesceAndSortResults(componentQueryResults); + + // Compose component scores matrix, where each tuple is (score, index) + Mono>> componentScoresList = retrieveComponentScores(coalescedAndSortedResults); + + // Compute Ranks + Mono>> ranks = computeRanks(componentScoresList); + + // Compute the RRF scores + return computeRRFScores(ranks, coalescedAndSortedResults); + } + + @Override + protected HybridSearchDocumentProducer createDocumentProducer( + String collectionRid, + String continuationToken, + int initialPageSize, + CosmosQueryRequestOptions cosmosQueryRequestOptions, + SqlQuerySpec querySpecForInit, + Map commonRequestHeaders, + TriFunction createRequestFunc, + Function>> executeFunc, + Supplier createRetryPolicyFunc, + FeedRangeEpkImpl feedRange, + String collectionLink) { + + return new HybridSearchDocumentProducer( + client, + collectionRid, + cosmosQueryRequestOptions, + createRequestFunc, + executeFunc, + feedRange, + collectionLink, + createRetryPolicyFunc, + Document.class, + correlatedActivityId, + initialPageSize, + continuationToken, + top, + this.getOperationContextTextProvider()); + } + + + @Override + public Flux> drainAsync(int maxPageSize) { + return this.hybridObservable.transformDeferred(new HybridSearchQueryResultToPageTransformer(tracker, + maxPageSize, + this.queryMetricMap, + this.clientSideRequestStatistics)); + } + + @Override + public Flux> executeAsync() { + return drainAsync(ModelBridgeInternal.getMaxItemCountFromQueryRequestOptions(cosmosQueryRequestOptions)); + } + + private static class HybridSearchQueryResultToPageTransformer implements + Function>, Flux>> { + private final static int DEFAULT_PAGE_SIZE = 100; + private final RequestChargeTracker tracker; + private final int maxPageSize; + private final ConcurrentMap queryMetricMap; + private final Collection clientSideRequestStatistics; + + public HybridSearchQueryResultToPageTransformer(RequestChargeTracker tracker, + int maxPageSize, + ConcurrentMap queryMetricsMap, + Collection clientSideRequestStatistics) { + this.tracker = tracker; + this.maxPageSize = maxPageSize > 0 ? maxPageSize : DEFAULT_PAGE_SIZE; + this.queryMetricMap = queryMetricsMap; + this.clientSideRequestStatistics = clientSideRequestStatistics; + } + + private static Map headerResponse(double requestCharge) { + return Utils.immutableMapOf(HttpConstants.HttpHeaders.REQUEST_CHARGE, String.valueOf(requestCharge)); + } + + @Override + public Flux> apply(Flux> source) { + return source + .window(maxPageSize).map(Flux::collectList) + .flatMap(resultListObs -> resultListObs, 1) + .map(hybridSearchQueryResults -> { + FeedResponse> feedResponse = feedResponseAccessor.createFeedResponse( + hybridSearchQueryResults, + headerResponse(tracker.getAndResetCharge()), + null + ); + if (!queryMetricMap.isEmpty()) { + for (Map.Entry entry : queryMetricMap.entrySet()) { + BridgeInternal.putQueryMetricsIntoMap(feedResponse, + entry.getKey(), + entry.getValue()); + } + } + return feedResponse; + }) + .map(feedOfHybridSearchQueryResults -> { + List unwrappedResults = new ArrayList<>(); + for (HybridSearchQueryResult hybridSearchQueryResult : feedOfHybridSearchQueryResults.getResults()) { + unwrappedResults.add(hybridSearchQueryResult.getPayload()); + } + FeedResponse feedResponse = BridgeInternal.createFeedResponseWithQueryMetrics(unwrappedResults, + feedOfHybridSearchQueryResults.getResponseHeaders(), + BridgeInternal.queryMetricsFromFeedResponse(feedOfHybridSearchQueryResults), + ModelBridgeInternal.getQueryPlanDiagnosticsContext(feedOfHybridSearchQueryResults), + false, + false, + feedOfHybridSearchQueryResults.getCosmosDiagnostics()); + diagnosticsAccessor.addClientSideDiagnosticsToFeed( + feedResponse.getCosmosDiagnostics(), clientSideRequestStatistics); + return feedResponse; + }).switchIfEmpty(Flux.defer(() -> { + FeedResponse frp = BridgeInternal.createFeedResponseWithQueryMetrics(Utils.immutableListOf(), + headerResponse( + tracker.getAndResetCharge()), + queryMetricMap, + null, + false, + false, + null); + diagnosticsAccessor.addClientSideDiagnosticsToFeed( + frp.getCosmosDiagnostics(), clientSideRequestStatistics); + return Flux.just(frp); + })); + } + } + + private static Flux> computeRRFScores(Mono>> ranks, Mono>> coalescedAndSortedResults) { + return ranks.zipWith(coalescedAndSortedResults) + .map(tuple -> { + List> ranksInternal = tuple.getT1(); + List> results = tuple.getT2(); + + for (int index = 0; index < results.size(); ++index) { + double rrfScore = 0.0; + for (List integers : ranksInternal) { + rrfScore += 1.0 / (RRF_CONSTANT + integers.get(index)); + } + + results.get(index).setScore(rrfScore); + } + // Sort on the RRF scores to build the final result + results.sort(Comparator.comparing(HybridSearchQueryResult::getScore, Comparator.reverseOrder())); + return results; + }).flatMapMany(Flux::fromIterable); + } + + private static Mono>> computeRanks(Mono>> componentScoresList) { + return componentScoresList.map(componentScores -> { + // initialize ranks as an N-D list with zeros + List> ranksInternal = new ArrayList<>(); + for (int componentIndex = 0; componentIndex < componentScores.size(); componentIndex++) { + List row = new ArrayList<>(); + for (int index = 0; index < componentScores.get(0).size(); index++) { + row.add(0); + } + ranksInternal.add(row); + } + + for (int componentIndex = 0; componentIndex < componentScores.size(); componentIndex++) { + int rank = 1; // ranks are 1 based + for (int index = 0; index < componentScores.get(componentIndex).size(); index++) { + // Identical scores should have the same rank + if ((index > 0) && (componentScores.get(componentIndex).get(index).getScore() < componentScores.get(componentIndex).get(index - 1).getScore())) { + rank += 1; + } + int rankIndex = componentScores.get(componentIndex).get(index).getIndex(); + ranksInternal.get(componentIndex).set(rankIndex, rank); + } + } + return ranksInternal; + }); + } + + private static Mono>> retrieveComponentScores(Mono>> coalescedAndSortedResults) { + return coalescedAndSortedResults.map(results -> { + List> componentScoresInternal = new ArrayList<>(); + for (int i = 0; i < results.get(0).getComponentScores().size(); i++) { + componentScoresInternal.add(new ArrayList<>()); + } + List undefinedComponentScores = new ArrayList<>(); + for (int i = 0; i < componentScoresInternal.size(); i++) { + undefinedComponentScores.add(-999999.0); // Default undefined value + } + for (int i = 0; i < results.size(); i++) { + List componentScores = results.get(i).getComponentScores(); + // TODO: # Remove this small fix after the backend changes are released to deal with empty component score scenarios + if (componentScores.isEmpty()) { + componentScores = undefinedComponentScores; + } + for (int j = 0; j < componentScores.size(); j++) { + ScoreTuple scoreTuple = new ScoreTuple(componentScores.get(j), i); + componentScoresInternal.get(j).add(scoreTuple); + } + } + //Sort scores in descending order + for (List scoreTuples : componentScoresInternal) { + scoreTuples.sort(Comparator.comparing(ScoreTuple::getScore, Comparator.reverseOrder())); + } + return componentScoresInternal; + }); + } + + private Flux getComponentQueryResults(List targetFeedRanges, int initialPageSize, DocumentCollection collection, Flux rewrittenQueryInfos) { + return rewrittenQueryInfos.flatMap(queryInfo -> { + Map partitionKeyRangeToContinuationToken = new HashMap<>(); + for (FeedRangeEpkImpl feedRangeEpk : targetFeedRanges) { + partitionKeyRangeToContinuationToken.put(feedRangeEpk, + null); + } + documentProducers = new ArrayList<>(); + super.initialize(collection, + partitionKeyRangeToContinuationToken, + initialPageSize, + new SqlQuerySpec(queryInfo.getRewrittenQuery())); + + return Flux.fromIterable(documentProducers) + .flatMap(DocumentProducer::produceAsync) + .flatMap(response -> Flux.fromIterable(response.pageResult.getResults())); + }); + } + + private Flux retrieveRewrittenQueryInfos(List componentQueryInfos) { + return aggregatedGlobalStatistics.hasElement().flatMapMany(globalStatistics -> { + if (globalStatistics != null) { + List> rewrittenQueryInfosInternal = new ArrayList<>(); + for (QueryInfo queryInfo : componentQueryInfos) { + assert queryInfo.hasOrderBy(); + assert queryInfo.hasNonStreamingOrderBy(); + List> rewrittenOrderByExpressionList = queryInfo.getOrderByExpressions() + .stream() + .map(orderByExpression -> formatComponentQuery(orderByExpression, componentQueryInfos.size())) + .collect(Collectors.toList()); + + Mono> rewrittenOrderByExpression = + Mono.zip(rewrittenOrderByExpressionList, results -> Arrays.stream(results).map(Object::toString).collect(Collectors.toList())); + + Mono rewrittenQuery = formatComponentQuery(queryInfo.getRewrittenQuery(), componentQueryInfos.size()); + Mono newQueryInfo = Mono.zip(rewrittenOrderByExpression, rewrittenQuery) + .map(tuple -> { + QueryInfo newQueryInfoInternal = new QueryInfo(queryInfo.getPropertyBag()); + newQueryInfoInternal.setOrderByExpressions(tuple.getT1()); + newQueryInfoInternal.setRewrittenQuery(tuple.getT2()); + return newQueryInfoInternal; + }); + rewrittenQueryInfosInternal.add(newQueryInfo); + } + return Flux.concat(rewrittenQueryInfosInternal); + } else { + return Flux.fromIterable(componentQueryInfos); + } + }); + } + + private Mono>> coalesceAndSortResults(Flux componentQueryResults) { + return componentQueryResults.collectList() + .map(results -> { + Map> uniqueDocuments = new LinkedHashMap<>(); + for (Document document : results) { + HybridSearchQueryResult result = new HybridSearchQueryResult<>(document.toJson()); + String rid = result.getRid(); + uniqueDocuments.putIfAbsent(rid, result); + } + + // Sort by _rid + List> coalescedResults = new ArrayList<>(uniqueDocuments.values()); + coalescedResults.sort(Comparator.comparing(HybridSearchQueryResult::getRid)); + return coalescedResults; + }); + } + + private Mono formatComponentQuery(String orderByExpression, int componentCount) { + return aggregatedGlobalStatistics.map(statistics -> { + String query = orderByExpression.replace(FORMATTABLE_ORDER_BY, TRUE) + .replace(FORMATTABLE_TOTAL_DOCUMENT_COUNT, Long.toString(statistics.getDocumentCount())); + int statisticsIndex = 0; + for (int componentIndex = 0; componentIndex < componentCount; componentIndex++) { + String totalWordCountPlaceHolder = String.format(FORMATTABLE_TOTAL_WORD_COUNT, componentIndex); + String hitCountsArrayPlaceHolder = String.format(FORMATTABLE_HIT_COUNTS_ARRAY, componentIndex); + + // TODO: Workaround until the gateway fix for allowing vectorDistance as the first predicate in Order By Rank query is deployed. + if (!query.contains(totalWordCountPlaceHolder)) { + continue; + } + + FullTextQueryStatistics fullTextQueryStatistics = statistics.getFullTextQueryStatistics().get(statisticsIndex); + query = query.replace(totalWordCountPlaceHolder, Long.toString(fullTextQueryStatistics.getTotalWordCount())); + + String hit_counts_array = "[" + + fullTextQueryStatistics.getHitCounts() + .stream() + .map(Object::toString) + .collect(Collectors.joining(",")) + + "]"; + + query = query.replace(hitCountsArrayPlaceHolder, hit_counts_array); + ++statisticsIndex; + } + return query; + }); + } + + private GlobalFullTextSearchQueryStatistics aggregateStatistics(List globalFullTextSearchQueryStatistics) { + GlobalFullTextSearchQueryStatistics aggregatedStats = new GlobalFullTextSearchQueryStatistics(); + aggregatedStats.setDocumentCount(0L); + List aggregateFullTextQueryStatistics = new ArrayList<>(); + + for (GlobalFullTextSearchQueryStatistics statistics : globalFullTextSearchQueryStatistics) { + aggregatedStats.setDocumentCount(aggregatedStats.getDocumentCount() + statistics.getDocumentCount()); + if (aggregateFullTextQueryStatistics.isEmpty()) { + aggregateFullTextQueryStatistics = statistics.getFullTextQueryStatistics(); + } else { + assert statistics.getFullTextQueryStatistics().size() == aggregateFullTextQueryStatistics.size(); + for (int i = 0; i < statistics.getFullTextQueryStatistics().size(); i++) { + assert statistics.getFullTextQueryStatistics().get(i).getHitCounts().size() == aggregateFullTextQueryStatistics.get(i).getHitCounts().size(); + aggregateFullTextQueryStatistics.get(i).setTotalWordCount(aggregateFullTextQueryStatistics.get(i).getTotalWordCount() + statistics.getFullTextQueryStatistics().get(i).getTotalWordCount()); + for (int j = 0; j < statistics.getFullTextQueryStatistics().get(i).getHitCounts().size(); j++) { + aggregateFullTextQueryStatistics.get(i).getHitCounts().set(j, aggregateFullTextQueryStatistics.get(i).getHitCounts().get(j) + statistics.getFullTextQueryStatistics().get(i).getHitCounts().get(j)); + } + } + } + aggregatedStats.setFullTextQueryStatistics(aggregateFullTextQueryStatistics); + } + return aggregatedStats; + } + + public static class ScoreTuple { + private final Double score; + private final Integer index; + + public ScoreTuple(Double score, Integer index) { + this.score = Objects.requireNonNull(score); + this.index = Objects.requireNonNull(index); + } + + public Integer getIndex() { + return index; + } + + public Double getScore() { + return score; + } + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/ParallelDocumentQueryExecutionContextBase.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/ParallelDocumentQueryExecutionContextBase.java index 629e24c5ef455..2f25c348fa425 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/ParallelDocumentQueryExecutionContextBase.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/ParallelDocumentQueryExecutionContextBase.java @@ -38,7 +38,7 @@ public abstract class ParallelDocumentQueryExecutionContextBase extends DocumentQueryExecutionContextBase implements IDocumentQueryExecutionComponent { - protected final List> documentProducers; + protected List> documentProducers; protected final SqlQuerySpec querySpec; protected int top = -1; private final CosmosItemSerializer itemSerializer; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionKeyRangesAndQueryInfos.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionKeyRangesAndQueryInfos.java new file mode 100644 index 0000000000000..e3435f3011399 --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionKeyRangesAndQueryInfos.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.implementation.query; + +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; +import com.azure.cosmos.implementation.routing.Range; + +import java.util.List; + +public class PartitionKeyRangesAndQueryInfos { + QueryInfo queryInfo; + HybridSearchQueryInfo hybridSearchQueryInfo; + List> targetRanges; + List> allRanges; + + public PartitionKeyRangesAndQueryInfos(QueryInfo queryInfo, HybridSearchQueryInfo hybridSearchQueryInfo, List> targetRanges, List> allRanges) { + this.queryInfo = queryInfo; + this.hybridSearchQueryInfo = hybridSearchQueryInfo; + this.targetRanges = targetRanges; + this.allRanges = allRanges; + } + + public QueryInfo getQueryInfo() { + return queryInfo; + } + + public void setQueryInfo(QueryInfo queryInfo) { + this.queryInfo = queryInfo; + } + + public HybridSearchQueryInfo getHybridSearchQueryInfo() { + return hybridSearchQueryInfo; + } + + public void setHybridSearchQueryInfo(HybridSearchQueryInfo hybridSearchQueryInfo) { + this.hybridSearchQueryInfo = hybridSearchQueryInfo; + } + + public List> getTargetRanges() { + return targetRanges; + } + + public void setTargetRanges(List> targetRanges) { + this.targetRanges = targetRanges; + } + + public List> getAllRanges() { + return allRanges; + } + + public void setAllRanges(List> allRanges) { + this.allRanges = allRanges; + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfo.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfo.java index 9db68384f08e8..70f861f216387 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfo.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfo.java @@ -5,6 +5,7 @@ import com.azure.cosmos.CosmosItemSerializer; import com.azure.cosmos.implementation.RequestTimeline; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; import com.azure.cosmos.implementation.routing.Range; import com.azure.cosmos.implementation.JsonSerializable; import com.azure.cosmos.implementation.Constants; @@ -23,6 +24,7 @@ public final class PartitionedQueryExecutionInfo extends JsonSerializable { private QueryInfo queryInfo; private List> queryRanges; private RequestTimeline queryPlanRequestTimeline; + private HybridSearchQueryInfo hybridSearchQueryInfo; PartitionedQueryExecutionInfo(QueryInfo queryInfo, List> queryRanges) { this.queryInfo = queryInfo; @@ -63,6 +65,20 @@ public RequestTimeline getQueryPlanRequestTimeline() { return queryPlanRequestTimeline; } + public boolean hasHybridSearchQueryInfo() { + getHybridSearchQueryInfo(); + return hybridSearchQueryInfo != null; + } + + public HybridSearchQueryInfo getHybridSearchQueryInfo() { + if (hybridSearchQueryInfo == null) { + hybridSearchQueryInfo = super.getObject( + PartitionedQueryExecutionInfoInternal.HYBRID_SEARCH_QUERY_INFO_PROPERTY, HybridSearchQueryInfo.class); + } + + return this.hybridSearchQueryInfo; + } + @Override public boolean equals(Object o) { return super.equals(o); diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfoInternal.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfoInternal.java index 13d2aefd40ec2..aaa3554328bcb 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfoInternal.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PartitionedQueryExecutionInfoInternal.java @@ -4,9 +4,9 @@ package com.azure.cosmos.implementation.query; import com.azure.cosmos.CosmosItemSerializer; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; import com.azure.cosmos.implementation.routing.PartitionKeyInternal; import com.azure.cosmos.implementation.routing.Range; -import com.azure.cosmos.BridgeInternal; import com.azure.cosmos.implementation.JsonSerializable; import com.azure.cosmos.implementation.Constants; import com.azure.cosmos.implementation.Utils; @@ -19,6 +19,7 @@ public final class PartitionedQueryExecutionInfoInternal extends JsonSerializabl static final String QUERY_INFO_PROPERTY = "queryInfo"; static final String QUERY_RANGES_PROPERTY = "queryRanges"; static final String PARTITIONED_QUERY_EXECUTION_INFO_VERSION_PROPERTY = "partitionedQueryExecutionInfoVersion"; + static final String HYBRID_SEARCH_QUERY_INFO_PROPERTY = "hybridSearchQueryInfo"; @SuppressWarnings("unchecked") private static final Class> QUERY_RANGE_CLASS = (Class>) Range @@ -26,6 +27,7 @@ public final class PartitionedQueryExecutionInfoInternal extends JsonSerializabl private QueryInfo queryInfo; private List> queryRanges; + private HybridSearchQueryInfo hybridSearchQueryInfo; public PartitionedQueryExecutionInfoInternal() { this.set( @@ -64,6 +66,15 @@ public void setQueryRanges(List> queryRanges) { this.queryRanges = queryRanges; } + public HybridSearchQueryInfo getHybridSearchQueryInfo() { + if (this.hybridSearchQueryInfo == null) { + this.hybridSearchQueryInfo = super.getObject(HYBRID_SEARCH_QUERY_INFO_PROPERTY, HybridSearchQueryInfo.class); + } + return this.hybridSearchQueryInfo; + } + + public void setHybridSearchQueryInfo(HybridSearchQueryInfo hybridSearchQueryInfo) { this.hybridSearchQueryInfo = hybridSearchQueryInfo; } + public String toJson() { try { return Utils.getSimpleObjectMapper().writeValueAsString(this); diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryExecutionContext.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryExecutionContext.java index 8c21821c66b9b..668101f79cbfb 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryExecutionContext.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryExecutionContext.java @@ -9,6 +9,7 @@ import com.azure.cosmos.implementation.ImplementationBridgeHelpers; import com.azure.cosmos.implementation.Document; import com.azure.cosmos.implementation.ObjectNodeMap; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; import com.azure.cosmos.models.CosmosQueryRequestOptions; import com.azure.cosmos.models.FeedResponse; import com.azure.cosmos.models.ModelBridgeInternal; @@ -35,10 +36,11 @@ private PipelinedDocumentQueryExecutionContext( IDocumentQueryExecutionComponent pipelinedComponent, int actualPageSize, QueryInfo queryInfo, + HybridSearchQueryInfo hybridSearchQueryInfo, CosmosItemSerializer itemSerializer, Class classOfT) { - super(actualPageSize, queryInfo, itemSerializer, classOfT); + super(actualPageSize, queryInfo, hybridSearchQueryInfo, itemSerializer, classOfT); this.component = pipelinedComponent; } @@ -105,6 +107,25 @@ private static BiFunction, Flux, Flux>> createBaseHybridComponentFunction( + DiagnosticsClientContext diagnosticsClientContext, + IDocumentQueryClient client, + PipelinedDocumentQueryParams initParams, + DocumentCollection collection) { + CosmosQueryRequestOptions requestOptions = initParams.getCosmosQueryRequestOptions(); + BiFunction, Flux>> createBaseComponentFunction; + + createBaseComponentFunction = (continuationToken, documentQueryParams) -> { + CosmosQueryRequestOptions orderByCosmosQueryRequestOptions = + qryOptAccessor.clone(requestOptions); + + documentQueryParams.setCosmosQueryRequestOptions(orderByCosmosQueryRequestOptions); + return HybridSearchDocumentQueryExecutionContext.createAsync(diagnosticsClientContext, client, documentQueryParams, collection); + }; + return createBaseComponentFunction; + } + + private static BiFunction, Flux>> createDistinctPipelineComponentFunction( @@ -169,6 +190,22 @@ private static BiFunction, Flux, Flux>> createHybridPipelineComponentFunction( + DiagnosticsClientContext diagnosticsClientContext, + IDocumentQueryClient client, + PipelinedDocumentQueryParams initParams, + DocumentCollection collection + ) { + HybridSearchQueryInfo hybridSearchQueryInfo = initParams.getHybridSearchQueryInfo(); + BiFunction, Flux>> createBaseComponentFunction = createBaseHybridComponentFunction( + diagnosticsClientContext, client, initParams, collection); + return createCommonHybridPipelineComponentFunction( + createBaseComponentFunction, + hybridSearchQueryInfo + ); + + } + protected static Flux> createAsyncCore( DiagnosticsClientContext diagnosticsClientContext, IDocumentQueryClient client, @@ -190,7 +227,31 @@ protected static Flux> createAsyncCore ModelBridgeInternal.getRequestContinuationFromQueryRequestOptions(cosmosQueryRequestOptions), initParams.convertGenericType(Document.class)) .map(c -> new PipelinedDocumentQueryExecutionContext<>( - c, pageSize, queryInfo, itemSerializer, classOfT)); + c, pageSize, queryInfo, null, itemSerializer, classOfT)); + } + + protected static Flux> createHybridAsyncCore( + DiagnosticsClientContext diagnosticsClientContext, + IDocumentQueryClient client, + PipelinedDocumentQueryParams initParams, + int pageSize, + CosmosItemSerializer itemSerializer, + Class classOfT, + DocumentCollection collection + ) { + // Use nested callback pattern to unwrap the continuation token and query params at each level. + BiFunction, Flux>> createPipelineComponentFunction = + createHybridPipelineComponentFunction(diagnosticsClientContext, client, initParams.convertGenericType(Document.class), collection); + + HybridSearchQueryInfo hybridSearchQueryInfo = initParams.getHybridSearchQueryInfo(); + CosmosQueryRequestOptions cosmosQueryRequestOptions = initParams.getCosmosQueryRequestOptions(); + + return createPipelineComponentFunction + .apply( + ModelBridgeInternal.getRequestContinuationFromQueryRequestOptions(cosmosQueryRequestOptions), + initParams.convertGenericType(Document.class)) + .map(c -> new PipelinedDocumentQueryExecutionContext<>( + c, pageSize, null, hybridSearchQueryInfo, itemSerializer, classOfT)); } @Override diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryParams.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryParams.java index 7f58fb20bfa7e..4f8270688740d 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryParams.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedDocumentQueryParams.java @@ -5,6 +5,7 @@ import com.azure.cosmos.implementation.ResourceType; import com.azure.cosmos.implementation.feedranges.FeedRangeEpkImpl; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; import com.azure.cosmos.models.CosmosQueryRequestOptions; import com.azure.cosmos.models.SqlQuerySpec; @@ -25,7 +26,9 @@ public class PipelinedDocumentQueryParams { private final UUID correlatedActivityId; private CosmosQueryRequestOptions cosmosQueryRequestOptions; private final QueryInfo queryInfo; + private final HybridSearchQueryInfo hybridSearchQueryInfo; private final List feedRanges; + private final List allFeedRanges; private final AtomicBoolean isQueryCancelledOnTimeout; public PipelinedDocumentQueryParams( @@ -38,9 +41,11 @@ public PipelinedDocumentQueryParams( boolean isContinuationExpected, int initialPageSize, QueryInfo queryInfo, + HybridSearchQueryInfo hybridSearchQueryInfo, CosmosQueryRequestOptions cosmosQueryRequestOptions, UUID correlatedActivityId, List feedRanges, + List allFeedRanges, final AtomicBoolean isQueryCancelledOnTimeout) { this.resourceTypeEnum = resourceTypeEnum; @@ -52,9 +57,11 @@ public PipelinedDocumentQueryParams( this.isContinuationExpected = isContinuationExpected; this.initialPageSize = initialPageSize; this.queryInfo = queryInfo; + this.hybridSearchQueryInfo = hybridSearchQueryInfo; this.cosmosQueryRequestOptions = cosmosQueryRequestOptions; this.correlatedActivityId = correlatedActivityId; this.feedRanges = feedRanges; + this.allFeedRanges = allFeedRanges; this.isQueryCancelledOnTimeout = isQueryCancelledOnTimeout; } @@ -114,10 +121,16 @@ public QueryInfo getQueryInfo() { return queryInfo; } + public HybridSearchQueryInfo getHybridSearchQueryInfo() { return hybridSearchQueryInfo; } + public List getFeedRanges() { return feedRanges; } + public List getAllFeedRanges() { + return allFeedRanges; + } + public AtomicBoolean isQueryCancelledOnTimeout() { return isQueryCancelledOnTimeout; } @@ -133,9 +146,11 @@ public PipelinedDocumentQueryParams convertGenericType(Class this.isContinuationExpected, this.initialPageSize, this.queryInfo, + this.hybridSearchQueryInfo, this.cosmosQueryRequestOptions, this.correlatedActivityId, this.feedRanges, + this.allFeedRanges, this.isQueryCancelledOnTimeout); } } diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContext.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContext.java index 9331409aba765..7d6a14e9cd5f4 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContext.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContext.java @@ -8,6 +8,7 @@ import com.azure.cosmos.implementation.ImplementationBridgeHelpers; import com.azure.cosmos.implementation.PartitionKeyRange; import com.azure.cosmos.implementation.ResourceType; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; import com.azure.cosmos.models.CosmosQueryRequestOptions; import com.azure.cosmos.models.FeedResponse; import com.azure.cosmos.models.ModelBridgeInternal; @@ -28,10 +29,11 @@ public final class PipelinedQueryExecutionContext extends PipelinedQueryExecu private PipelinedQueryExecutionContext(IDocumentQueryExecutionComponent component, int actualPageSize, QueryInfo queryInfo, + HybridSearchQueryInfo hybridSearchQueryInfo, CosmosItemSerializer itemSerializer, Class classOfT) { - super(actualPageSize, queryInfo, itemSerializer, classOfT); + super(actualPageSize, queryInfo, hybridSearchQueryInfo, itemSerializer, classOfT); this.component = component; } @@ -95,6 +97,7 @@ static Flux> createAsyncCore( c, pageSize, queryInfo, + null, itemSerializer, classOfT)); } @@ -125,6 +128,7 @@ public static Flux> createReadManyAsyn c, -1, null, + null, itemSerializer, klass)); } diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContextBase.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContextBase.java index 39c6c27efad83..2bb1429bd9c88 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContextBase.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/PipelinedQueryExecutionContextBase.java @@ -6,6 +6,7 @@ import com.azure.cosmos.implementation.DiagnosticsClientContext; import com.azure.cosmos.implementation.DocumentCollection; import com.azure.cosmos.implementation.Utils; +import com.azure.cosmos.implementation.query.hybridsearch.HybridSearchQueryInfo; import com.azure.cosmos.models.CosmosQueryRequestOptions; import com.azure.cosmos.models.ModelBridgeInternal; import reactor.core.publisher.Flux; @@ -21,17 +22,20 @@ public abstract class PipelinedQueryExecutionContextBase protected final int actualPageSize; private final QueryInfo queryInfo; + private final HybridSearchQueryInfo hybridSearchQueryInfo; protected final CosmosItemSerializer itemSerializer; protected final Class classOfT; protected PipelinedQueryExecutionContextBase( int actualPageSize, QueryInfo queryInfo, + HybridSearchQueryInfo hybridSearchQueryInfo, CosmosItemSerializer itemSerializer, Class classOfT) { this.actualPageSize = actualPageSize; this.queryInfo = queryInfo; + this.hybridSearchQueryInfo = hybridSearchQueryInfo; this.itemSerializer = itemSerializer; this.classOfT = classOfT; } @@ -44,6 +48,8 @@ public static Flux> createAsync( DocumentCollection collection) { QueryInfo queryInfo = initParams.getQueryInfo(); + HybridSearchQueryInfo hybridSearchQueryInfo = initParams.getHybridSearchQueryInfo(); + CosmosQueryRequestOptions cosmosQueryRequestOptions = initParams.getCosmosQueryRequestOptions(); int actualPageSize = Utils.getValueOrDefault(ModelBridgeInternal.getMaxItemCountFromQueryRequestOptions(cosmosQueryRequestOptions), ParallelQueryConfig.ClientInternalPageSize); @@ -52,9 +58,22 @@ public static Flux> createAsync( actualPageSize = Integer.MAX_VALUE; } + CosmosItemSerializer candidateSerializer = client.getEffectiveItemSerializer(cosmosQueryRequestOptions); + + if (hybridSearchQueryInfo != null) { + return PipelinedDocumentQueryExecutionContext.createHybridAsyncCore( + diagnosticsClientContext, + client, + initParams, + actualPageSize, + candidateSerializer, + classOfT, + collection); + } + + int pageSize = Math.min(actualPageSize, Utils.getValueOrDefault(queryInfo.getTop(), (actualPageSize))); - CosmosItemSerializer candidateSerializer = client.getEffectiveItemSerializer(cosmosQueryRequestOptions); final CosmosItemSerializer itemSerializer = candidateSerializer != CosmosItemSerializer.DEFAULT_SERIALIZER ? candidateSerializer : ValueUnwrapCosmosItemSerializer.create(queryInfo.hasSelectValue()); @@ -127,7 +146,52 @@ protected static BiFunction, Flux BiFunction, Flux>> createCommonHybridPipelineComponentFunction( + BiFunction, Flux>> createBaseComponent, + HybridSearchQueryInfo hybridSearchQueryInfo) { + + BiFunction, Flux>> createSkipComponentFunction; + if (hybridSearchQueryInfo.hasSkip()) { + createSkipComponentFunction = + (continuationToken, documentQueryParams) -> + SkipDocumentQueryExecutionContext.createAsync(createBaseComponent, + hybridSearchQueryInfo.getSkip(), + continuationToken, + documentQueryParams); + } else { + createSkipComponentFunction = createBaseComponent; + } + + BiFunction, Flux>> createLimitComponentFunction; + if (hybridSearchQueryInfo.hasTake() && hybridSearchQueryInfo.hasSkip()) { + createLimitComponentFunction = + (continuationToken, documentQueryParams) -> + TakeDocumentQueryExecutionContext.createAsync(createSkipComponentFunction, + hybridSearchQueryInfo.getTake(), + continuationToken, + documentQueryParams, + TakeDocumentQueryExecutionContext.TakeEnum.LIMIT); + } else { + createLimitComponentFunction = createSkipComponentFunction; + } + + if (hybridSearchQueryInfo.hasTake()) { + return (continuationToken, documentQueryParams) -> + TakeDocumentQueryExecutionContext.createAsync(createLimitComponentFunction, + hybridSearchQueryInfo.getTake(), + continuationToken, + documentQueryParams, + TakeDocumentQueryExecutionContext.TakeEnum.TOP); + } else { + return createLimitComponentFunction; + } + } + public QueryInfo getQueryInfo() { return this.queryInfo; } + + public HybridSearchQueryInfo getHybridSearchQueryInfo() { + return this.hybridSearchQueryInfo; + } } diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryFeature.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryFeature.java index 1dd3e5928b92f..9834958a89a89 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryFeature.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryFeature.java @@ -15,5 +15,7 @@ public enum QueryFeature { Top, NonValueAggregate, DCount, - NonStreamingOrderBy + NonStreamingOrderBy, + HybridSearch, + CountIf } diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryInfo.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryInfo.java index 48870a5ae52de..c00cc804336c9 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryInfo.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryInfo.java @@ -3,6 +3,7 @@ package com.azure.cosmos.implementation.query; +import com.azure.cosmos.CosmosItemSerializer; import com.azure.cosmos.implementation.RequestTimeline; import com.azure.cosmos.implementation.DiagnosticsInstantSerializer; import com.azure.cosmos.implementation.query.aggregation.AggregateOperator; @@ -242,6 +243,21 @@ public RequestTimeline getRequestTimeline() { } } + public void setOrderByExpressions(List orderByExpressions) { + this.orderByExpressions = orderByExpressions; + super.set("orderByExpressions", orderByExpressions, CosmosItemSerializer.DEFAULT_SERIALIZER); + } + + public void setRewrittenQuery(String rewrittenQuery) { + this.rewrittenQuery = rewrittenQuery; + super.set("rewrittenQuery", rewrittenQuery, CosmosItemSerializer.DEFAULT_SERIALIZER); + } + + public void setOrderBy(List orderBy) { + this.orderBy = orderBy; + super.set("orderBy", orderBy, CosmosItemSerializer.DEFAULT_SERIALIZER); + } + @Override public boolean equals(Object o) { return super.equals(o); diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryPlanRetriever.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryPlanRetriever.java index 640c1c72bb748..47fd7a92cf7c3 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryPlanRetriever.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/QueryPlanRetriever.java @@ -51,7 +51,8 @@ class QueryPlanRetriever { QueryFeature.Top.name() + ", " + QueryFeature.DCount.name() + ", " + QueryFeature.NonValueAggregate.name() + ", " + - QueryFeature.NonStreamingOrderBy.name(); + QueryFeature.NonStreamingOrderBy.name() + ", " + + QueryFeature.HybridSearch.name(); private static final String OLD_SUPPORTED_QUERY_FEATURES = QueryFeature.Aggregate.name() + ", " + QueryFeature.CompositeAggregate.name() + ", " + diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/aggregation/AggregateOperator.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/aggregation/AggregateOperator.java index ff0f6d0eb9ea6..4bc6546390fc9 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/aggregation/AggregateOperator.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/aggregation/AggregateOperator.java @@ -6,6 +6,7 @@ public enum AggregateOperator { Average, Count, + CountIf, Max, Min, Sum diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/FullTextQueryStatistics.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/FullTextQueryStatistics.java new file mode 100644 index 0000000000000..ab9eb4bfc3d30 --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/FullTextQueryStatistics.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.implementation.query.hybridsearch; + +import com.azure.cosmos.implementation.Constants; +import com.azure.cosmos.implementation.JsonSerializable; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +public class FullTextQueryStatistics { + @JsonProperty(Constants.Properties.HIT_COUNTS) + private List hitCounts; + @JsonProperty(Constants.Properties.TOTAL_WORD_COUNT) + private Long totalWordCount; + + public FullTextQueryStatistics(List hitCounts, Long totalWordCount) { + this.hitCounts = hitCounts; + this.totalWordCount = totalWordCount; + } + + public FullTextQueryStatistics() {} + + public List getHitCounts() { + return hitCounts; + } + + public void setHitCounts(List hitCounts) { + this.hitCounts = hitCounts; + } + + public Long getTotalWordCount() { + return totalWordCount; + } + + public void setTotalWordCount(Long totalWordCount) { + this.totalWordCount = totalWordCount; + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/GlobalFullTextSearchQueryStatistics.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/GlobalFullTextSearchQueryStatistics.java new file mode 100644 index 0000000000000..d2332f1badce0 --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/GlobalFullTextSearchQueryStatistics.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.implementation.query.hybridsearch; + +import com.azure.cosmos.implementation.Constants; +import com.azure.cosmos.implementation.Document; +import com.azure.cosmos.implementation.JsonSerializable; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +public class GlobalFullTextSearchQueryStatistics { + @JsonProperty(Constants.Properties.DOCUMENT_COUNT) + private Long documentCount; + @JsonProperty(Constants.Properties.FULL_TEXT_QUERY_STATISTICS) + private List fullTextQueryStatistics; + + public GlobalFullTextSearchQueryStatistics(Document document) { + this.documentCount = document.getLong(Constants.Properties.DOCUMENT_COUNT); + this.fullTextQueryStatistics = document.getList(Constants.Properties.FULL_TEXT_QUERY_STATISTICS, FullTextQueryStatistics.class); + } + + public GlobalFullTextSearchQueryStatistics() {} + + public Long getDocumentCount() { + return documentCount; + } + + public void setDocumentCount(Long documentCount) { + this.documentCount = documentCount; + } + + public List getFullTextQueryStatistics() { + return fullTextQueryStatistics; + } + + public void setFullTextQueryStatistics(List fullTextQueryStatistics) { + this.fullTextQueryStatistics = fullTextQueryStatistics; + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryInfo.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryInfo.java new file mode 100644 index 0000000000000..ee1d779685402 --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryInfo.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.implementation.query.hybridsearch; + +import com.azure.cosmos.implementation.Constants; +import com.azure.cosmos.implementation.JsonSerializable; +import com.azure.cosmos.implementation.query.QueryInfo; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.node.ObjectNode; + +import java.util.List; + +/** + * Hybrid Search Query Info {@link HybridSearchQueryInfo} + */ +public class HybridSearchQueryInfo extends JsonSerializable { + @JsonProperty(Constants.Properties.GLOBAL_STATISTICS_QUERY) + private String globalStatisticsQuery; + @JsonProperty(Constants.Properties.COMPONENT_QUERY_INFOS) + private List componentQueryInfoList; + @JsonProperty(Constants.Properties.PROJECTION_QUERY_INFO) + private QueryInfo projectionQueryInfo; + @JsonProperty(Constants.Properties.SKIP) + private Integer skip; + @JsonProperty(Constants.Properties.TAKE) + private Integer take; + @JsonProperty(Constants.Properties.REQUIRES_GLOBAL_STATISTICS) + private Boolean requiresGlobalStatistics; + + /** + * Constructor + */ + public HybridSearchQueryInfo() { + } + + public HybridSearchQueryInfo(ObjectNode objectNode) { + super(objectNode); + } + + public HybridSearchQueryInfo(String jsonString) { + super(jsonString); + } + + /** + * Gets the globalStatisticsQueryInfo for hybrid search + * + * @return globalStatisticsQueryInfo + */ + public String getGlobalStatisticsQuery() { + return globalStatisticsQuery != null ? this.globalStatisticsQuery : (this.globalStatisticsQuery = super.getString(Constants.Properties.GLOBAL_STATISTICS_QUERY)); + } + + /** + * Gets the list of componentQueryInfo for hybrid search + * + * @return componentQueryInfoList + */ + public List getComponentQueryInfoList() { + + return componentQueryInfoList != null ? this.componentQueryInfoList : (this.componentQueryInfoList = super.getList(Constants.Properties.COMPONENT_QUERY_INFOS, QueryInfo.class)); + } + + /** + * Gets the projectionQueryInfo for hybrid search + * + * @return projectionQueryInfo + */ + public QueryInfo getProjectionQueryInfo() { + + return projectionQueryInfo != null ? this.projectionQueryInfo : (this.projectionQueryInfo = super.getObject(Constants.Properties.PROJECTION_QUERY_INFO, QueryInfo.class)); + } + + public boolean hasSkip() { + return this.getSkip() != null; + } + + public boolean hasTake() { + return this.getTake() != null; + } + + /** + * Gets the number of documents to skip for hybrid search + * + * @return skip + */ + public Integer getSkip() { + return this.skip != null ? this.skip : (this.skip = super.getInt(Constants.Properties.SKIP)); + } + + /** + * Gets the number of documents to take for hybrid search + * + * @return take + */ + public Integer getTake() { + return this.take != null ? this.take : (this.take = super.getInt(Constants.Properties.TAKE)); + } + + public Boolean getRequiresGlobalStatistics() { + this.requiresGlobalStatistics = Boolean.TRUE.equals(super.getBoolean(Constants.Properties.REQUIRES_GLOBAL_STATISTICS)); + return this.requiresGlobalStatistics; + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryResult.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryResult.java new file mode 100644 index 0000000000000..8634e3b2cfd6b --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/hybridsearch/HybridSearchQueryResult.java @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.cosmos.implementation.query.hybridsearch; + +import com.azure.cosmos.implementation.Constants; +import com.azure.cosmos.implementation.Document; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.node.ObjectNode; + +import java.util.ArrayList; +import java.util.List; + +public class HybridSearchQueryResult extends Document { + public String rid; + public List componentScores; + public Document payload; + public Double score; + + public HybridSearchQueryResult(String jsonString) { + super(jsonString); + // Initialize rid + this.rid = super.getResourceId(); + // Initialize componentScores + final Object outerObject = super.get(Constants.Properties.PAYLOAD); + if (outerObject instanceof ObjectNode) { + ObjectNode outerObjectNode = (ObjectNode) outerObject; + // Initialize componentScores + JsonNode componentScoresNode = outerObjectNode.get(Constants.Properties.COMPONENT_SCORES); + if (componentScoresNode != null && componentScoresNode.isArray()) { + this.componentScores = new ArrayList<>(); + for (JsonNode scoreNode : componentScoresNode) { + if (scoreNode != null && scoreNode.isNumber()) { + this.componentScores.add(scoreNode.asDouble()); + } + } + } + // Initialize payload + JsonNode innerPayloadNode = outerObjectNode.get(Constants.Properties.PAYLOAD); + if (innerPayloadNode != null && innerPayloadNode.isObject()) { + this.payload = new Document(innerPayloadNode.toString()); + } + } + + } + + public String getRid() { + return this.rid; + } + + public void setRid(String rid) { + super.setResourceId(rid); + } + + public List getComponentScores() { + return this.componentScores; + } + + public void setComponentScores(List componentScores) { + this.componentScores = componentScores; + } + + public Document getPayload() { + return this.payload; + } + + public void setPayload(Document payload) { + this.payload = payload; + } + + public Double getScore() { + return this.score; + } + + public void setScore(Double score) { + this.score = score; + } +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosQueryRequestOptions.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosQueryRequestOptions.java index c252ebfb5d3b6..3bf082a33b43e 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosQueryRequestOptions.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosQueryRequestOptions.java @@ -267,6 +267,15 @@ Integer getMaxItemCountForVectorSearch() { return this.actualRequestOptions.getMaxItemCountForVectorSearch(); } + /** + * Gets the maximum item size to fetch during hybrid search queries. + * + * @return the max number of items for full text search. + */ + Integer getMaxItemCountForHybridSearch() { + return this.actualRequestOptions.getMaxItemCountForHybridSearch(); + } + /** * Gets the request continuation token. * @@ -640,6 +649,11 @@ public Integer getMaxItemCountForVectorSearch(CosmosQueryRequestOptions options) return options.getMaxItemCountForVectorSearch(); } + @Override + public Integer getMaxItemCountForHybridSearch(CosmosQueryRequestOptions options) { + return options.getMaxItemCountForHybridSearch(); + } + @Override public void setPartitionKeyDefinition(CosmosQueryRequestOptions options, PartitionKeyDefinition partitionKeyDefinition) { options.actualRequestOptions.setPartitionKeyDefinition(partitionKeyDefinition); diff --git a/sdk/cosmos/azure-cosmos/src/main/java/module-info.java b/sdk/cosmos/azure-cosmos/src/main/java/module-info.java index 059bc624e6bc8..cc1d04d13a50b 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/module-info.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/module-info.java @@ -64,6 +64,7 @@ opens com.azure.cosmos.implementation.query.aggregation to com.fasterxml.jackson.databind; opens com.azure.cosmos.implementation.query.metrics to com.fasterxml.jackson.databind; opens com.azure.cosmos.implementation.query.orderbyquery to com.fasterxml.jackson.databind; + opens com.azure.cosmos.implementation.query.hybridsearch to com.fasterxml.jackson.databind; opens com.azure.cosmos.implementation.routing to com.fasterxml.jackson.databind; opens com.azure.cosmos.implementation.clienttelemetry to com.fasterxml.jackson.databind; opens com.azure.cosmos.util to com.fasterxml.jackson.databind; From 70ea8eebc763c04fcdc8bfa120d1b0fe7f8b011c Mon Sep 17 00:00:00 2001 From: Sameeksha Vaity Date: Tue, 19 Nov 2024 16:04:52 -0800 Subject: [PATCH 06/44] Update test region FR (#42901) --- .vscode/cspell.json | 1 + sdk/documentintelligence/test-resources.json | 4 ++++ .../documentanalysis/implementation/util/Transforms.java | 8 +++++--- .../documentanalysis/DocumentAnalysisAsyncClientTest.java | 7 +++++++ sdk/formrecognizer/test-resources.json | 4 ++-- sdk/formrecognizer/tests.yml | 2 +- 6 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 305cd07410c84..6f770af88a0da 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -148,6 +148,7 @@ "sdk/keyvault/test-resources/test-resources.json", "sdk/keyvault/test-resources-jca/test-resources.json", "sdk/formrecognizer/azure-ai-formrecognizer/**", + "sdk/formrecognizer/test-resources.json", "sdk/documentintelligence/azure-ai-documentintelligence/**", "sdk/documentintelligence/test-resources.json", "sdk/maps/azure-maps-render/**", diff --git a/sdk/documentintelligence/test-resources.json b/sdk/documentintelligence/test-resources.json index 000be3ce8d53a..bdb59ee84f353 100644 --- a/sdk/documentintelligence/test-resources.json +++ b/sdk/documentintelligence/test-resources.json @@ -34,6 +34,10 @@ "type": "string", "defaultValue": "trainingdata-batch" }, + "batchTrainingDataResultContainer": { + "type": "string", + "defaultValue": "trainingdata-batch-result" + }, "selectionMarkTrainingDataContainer": { "type": "string", "defaultValue": "selectionmark-v3" diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/util/Transforms.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/util/Transforms.java index 53cc1eb913e6d..318d608fa785d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/util/Transforms.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/documentanalysis/implementation/util/Transforms.java @@ -573,9 +573,11 @@ private static void setDocumentFieldValue( DocumentFieldHelper.setValue(documentField, null); } else { CurrencyValue currencyValue = new CurrencyValue(); - CurrencyValueHelper.setAmount(currencyValue, innerDocumentField.getValueCurrency().getAmount()); - CurrencyValueHelper.setCurrencySymbol(currencyValue, - innerDocumentField.getValueCurrency().getCurrencySymbol()); + com.azure.ai.formrecognizer.documentanalysis.implementation.models.CurrencyValue innerCurrencyValue + = innerDocumentField.getValueCurrency(); + CurrencyValueHelper.setAmount(currencyValue, innerCurrencyValue.getAmount()); + CurrencyValueHelper.setCurrencySymbol(currencyValue, innerCurrencyValue.getCurrencySymbol()); + CurrencyValueHelper.setCode(currencyValue, innerCurrencyValue.getCurrencyCode()); DocumentFieldHelper.setValue(documentField, currencyValue); } } else if (com.azure.ai.formrecognizer.documentanalysis.implementation.models.DocumentFieldType.ADDRESS diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/documentanalysis/DocumentAnalysisAsyncClientTest.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/documentanalysis/DocumentAnalysisAsyncClientTest.java index e8d842a3d7bbc..fbcbbeb8da15c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/documentanalysis/DocumentAnalysisAsyncClientTest.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/documentanalysis/DocumentAnalysisAsyncClientTest.java @@ -9,9 +9,11 @@ import com.azure.ai.formrecognizer.documentanalysis.administration.models.DocumentClassifierDetails; import com.azure.ai.formrecognizer.documentanalysis.models.AnalyzeDocumentOptions; import com.azure.ai.formrecognizer.documentanalysis.models.AnalyzeResult; +import com.azure.ai.formrecognizer.documentanalysis.models.CurrencyValue; import com.azure.ai.formrecognizer.documentanalysis.models.DocumentAnalysisFeature; import com.azure.ai.formrecognizer.documentanalysis.models.DocumentBarcode; import com.azure.ai.formrecognizer.documentanalysis.models.DocumentBarcodeKind; +import com.azure.ai.formrecognizer.documentanalysis.models.DocumentField; import com.azure.ai.formrecognizer.documentanalysis.models.DocumentFormula; import com.azure.ai.formrecognizer.documentanalysis.models.DocumentFormulaKind; import com.azure.ai.formrecognizer.documentanalysis.models.DocumentStyle; @@ -993,6 +995,11 @@ public void analyzeInvoiceWithPage(HttpClient httpClient, DocumentAnalysisServic AnalyzeResult analyzeResult = syncPoller.getFinalResult(); Assertions.assertEquals(1, analyzeResult.getPages().size()); + Map invoicePage1Fields = analyzeResult.getDocuments().get(0).getFields(); + CurrencyValue invoiceTotalField = invoicePage1Fields.get("InvoiceTotal").getValueAsCurrency(); + assertEquals(56651.49, invoiceTotalField.getAmount()); + assertEquals("$", invoiceTotalField.getSymbol()); + assertEquals("USD", invoiceTotalField.getCode()); }, INVOICE_PDF); } diff --git a/sdk/formrecognizer/test-resources.json b/sdk/formrecognizer/test-resources.json index 1851e86930844..412f034983c15 100644 --- a/sdk/formrecognizer/test-resources.json +++ b/sdk/formrecognizer/test-resources.json @@ -24,7 +24,7 @@ }, "blobStorageAccount": { "type": "string", - "defaultValue": "azuresdktrainingdata" + "defaultValue": "azuresdktrainingdatatme" }, "trainingDataContainerV3": { "type": "string", @@ -48,7 +48,7 @@ }, "blobResourceId": { "type": "string", - "defaultValue": "[resourceId(subscription().subscriptionId, 'TrainingData', 'Microsoft.Storage/storageAccounts', parameters('blobStorageAccount'))]" + "defaultValue": "[resourceId('4d042dc6-fe17-4698-a23f-ec6a8d1e98f4', 'static-test-resources', 'Microsoft.Storage/storageAccounts', parameters('blobStorageAccount'))]" }, "trainingDataSasPropertiesV3": { "type": "object", diff --git a/sdk/formrecognizer/tests.yml b/sdk/formrecognizer/tests.yml index a3c2f22e3a667..1dde237520d9a 100644 --- a/sdk/formrecognizer/tests.yml +++ b/sdk/formrecognizer/tests.yml @@ -11,4 +11,4 @@ extends: safeName: azureaiformrecognizer CloudConfig: Public: - Location: 'centraluseuap' + Location: 'eastus' From 23a749dea10298feec7fa588a7a1f72cbda7b91a Mon Sep 17 00:00:00 2001 From: Annie Liang <64233642+xinlian12@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:11:08 -0800 Subject: [PATCH 07/44] release (#43021) Co-authored-by: annie-mac --- eng/versioning/version_client.txt | 4 ++-- sdk/cosmos/azure-cosmos-benchmark/pom.xml | 4 ++-- sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml | 2 +- sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md | 9 ++------- sdk/cosmos/azure-cosmos-encryption/README.md | 2 +- sdk/cosmos/azure-cosmos-encryption/pom.xml | 4 ++-- sdk/cosmos/azure-cosmos-kafka-connect/pom.xml | 2 +- sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml | 2 +- sdk/cosmos/azure-cosmos-test/pom.xml | 2 +- sdk/cosmos/azure-cosmos-tests/pom.xml | 2 +- sdk/cosmos/azure-cosmos/CHANGELOG.md | 5 ++--- sdk/cosmos/azure-cosmos/pom.xml | 2 +- 12 files changed, 17 insertions(+), 23 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 3431696a23e64..cb3604dd1a894 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -102,11 +102,11 @@ com.azure:azure-core-test;1.27.0-beta.4;1.27.0-beta.5 com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.52;1.0.0-beta.53 com.azure:azure-core-tracing-opentelemetry-samples;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-core-version-tests;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-cosmos;4.64.0;4.65.0-beta.1 +com.azure:azure-cosmos;4.64.0;4.65.0 com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure:azure-cosmos-dotnet-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3_2-12;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-cosmos-encryption;2.15.0;2.16.0-beta.1 +com.azure:azure-cosmos-encryption;2.15.0;2.16.0 com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.34.0;4.35.0-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;4.34.0;4.35.0-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12;4.34.0;4.35.0-beta.1 diff --git a/sdk/cosmos/azure-cosmos-benchmark/pom.xml b/sdk/cosmos/azure-cosmos-benchmark/pom.xml index 67c3336070f3d..39405b927a539 100644 --- a/sdk/cosmos/azure-cosmos-benchmark/pom.xml +++ b/sdk/cosmos/azure-cosmos-benchmark/pom.xml @@ -52,13 +52,13 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0-beta.1 + 4.65.0 com.azure azure-cosmos-encryption - 2.16.0-beta.1 + 2.16.0 diff --git a/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml b/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml index 70483df29710e..4af22863e6953 100644 --- a/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml +++ b/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml @@ -51,7 +51,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0-beta.1 + 4.65.0 diff --git a/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md b/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md index fe1d88dca9a95..c5f6c8f2b852a 100644 --- a/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md @@ -1,14 +1,9 @@ ## Release History -### 2.16.0-beta.1 (Unreleased) - -#### Features Added - -#### Breaking Changes - -#### Bugs Fixed +### 2.16.0 (2024-11-19) #### Other Changes +* Updated `azure-cosmos` to version `4.65.0`. ### 2.15.0 (2024-10-10) diff --git a/sdk/cosmos/azure-cosmos-encryption/README.md b/sdk/cosmos/azure-cosmos-encryption/README.md index 35d066a79072d..88ede4c537821 100644 --- a/sdk/cosmos/azure-cosmos-encryption/README.md +++ b/sdk/cosmos/azure-cosmos-encryption/README.md @@ -12,7 +12,7 @@ The Azure Cosmos Encryption Plugin is used for encrypting data with a user-provi com.azure azure-cosmos-encryption - 2.15.0 + 2.16.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/cosmos/azure-cosmos-encryption/pom.xml b/sdk/cosmos/azure-cosmos-encryption/pom.xml index c8eab989220cc..55d2beb62d5e8 100644 --- a/sdk/cosmos/azure-cosmos-encryption/pom.xml +++ b/sdk/cosmos/azure-cosmos-encryption/pom.xml @@ -13,7 +13,7 @@ Licensed under the MIT License. com.azure azure-cosmos-encryption - 2.16.0-beta.1 + 2.16.0 Encryption Plugin for Azure Cosmos DB SDK This Package contains Encryption Plugin for Microsoft Azure Cosmos SDK jar @@ -59,7 +59,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0-beta.1 + 4.65.0 diff --git a/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml b/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml index 2f509b42cbd08..901b9aadf9e70 100644 --- a/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml +++ b/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml @@ -86,7 +86,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0-beta.1 + 4.65.0 + 4.65.0 org.scala-lang.modules diff --git a/sdk/cosmos/azure-cosmos-test/pom.xml b/sdk/cosmos/azure-cosmos-test/pom.xml index 5dc810f0925bf..1b5012beb9cf8 100644 --- a/sdk/cosmos/azure-cosmos-test/pom.xml +++ b/sdk/cosmos/azure-cosmos-test/pom.xml @@ -59,7 +59,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0-beta.1 + 4.65.0 diff --git a/sdk/cosmos/azure-cosmos-tests/pom.xml b/sdk/cosmos/azure-cosmos-tests/pom.xml index 688a26a220720..40e64ae38292e 100644 --- a/sdk/cosmos/azure-cosmos-tests/pom.xml +++ b/sdk/cosmos/azure-cosmos-tests/pom.xml @@ -100,7 +100,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0-beta.1 + 4.65.0 com.azure diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 636a2edb3eb70..5ba9edc2dacd5 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -1,6 +1,6 @@ ## Release History -### 4.65.0-beta.1 (Unreleased) +### 4.65.0 (2024-11-19) #### Features Added * Added support for Hybrid Search and Full text queries and new query features `HybridSearch` and `CountIf` in CosmosDB - See [42885](https://github.com/Azure/azure-sdk-for-java/pull/42885) @@ -8,11 +8,10 @@ * Added two new properties `quantizationSizeInBytes` and `indexingSearchListSize` to the `CosmosVectorIndexSpec` to support Partitioned DiskANN for vector search in Cosmos DB - See [PR 42333](https://github.com/Azure/azure-sdk-for-java/pull/42333) * Added system property `COSMOS.LOAD_AZURE_VM_META_DATA` to allow customers to disable/enable loading Azure VM metadata for diagnostics - See [PR 42874](https://github.com/Azure/azure-sdk-for-java/pull/42874) -#### Breaking Changes - #### Bugs Fixed * Fixed a Null Pointer Exception in `ContainerThroughputConrolGroupProperties` if defaultGroup is not set. - See [PR 42835](https://github.com/Azure/azure-sdk-for-java/pull/42835) * Fixed a Null Pointer Exception in `RoutingMapProviderHelpers#getOverlappingRanges()` in case of Routing map being null - See [PR 42874](https://github.com/Azure/azure-sdk-for-java/pull/42874) +* Fixed an issue where `continuationToken` is not being updated in the lease document if only `304` has been observed since `changeFeedProcessor` startup - See [PR 43013](https://github.com/Azure/azure-sdk-for-java/pull/43013) #### Other Changes * Enable `JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS` by default for objectMapper. - See [PR 42520](https://github.com/Azure/azure-sdk-for-java/pull/42520) diff --git a/sdk/cosmos/azure-cosmos/pom.xml b/sdk/cosmos/azure-cosmos/pom.xml index 8778254272a1b..7fbfdef204ca5 100644 --- a/sdk/cosmos/azure-cosmos/pom.xml +++ b/sdk/cosmos/azure-cosmos/pom.xml @@ -13,7 +13,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0-beta.1 + 4.65.0 Microsoft Azure SDK for SQL API of Azure Cosmos DB Service This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API jar From 53d65e209c5913a0f1dc7f9a3d5cba0bc243c127 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:46:38 -0800 Subject: [PATCH 08/44] [Automation] Generate Fluent Lite from TypeSpec terraform (#43022) --- eng/versioning/version_client.txt | 1 + pom.xml | 1 + .../CHANGELOG.md | 9 + .../azure-resourcemanager-terraform/README.md | 104 ++++++ .../azure-resourcemanager-terraform/SAMPLE.md | 56 ++++ .../azure-resourcemanager-terraform/pom.xml | 75 +++++ .../terraform/AzureTerraformManager.java | 292 +++++++++++++++++ .../fluent/AzureTerraformClient.java | 62 ++++ .../terraform/fluent/OperationsClient.java | 40 +++ .../terraform/fluent/TerraformsClient.java | 65 ++++ .../fluent/models/OperationInner.java | 159 +++++++++ .../terraform/fluent/models/package-info.java | 10 + .../terraform/fluent/package-info.java | 10 + .../AzureTerraformClientBuilder.java | 138 ++++++++ .../AzureTerraformClientImpl.java | 304 ++++++++++++++++++ .../implementation/OperationImpl.java | 51 +++ .../implementation/OperationsClientImpl.java | 235 ++++++++++++++ .../implementation/OperationsImpl.java | 45 +++ .../implementation/ResourceManagerUtils.java | 195 +++++++++++ .../implementation/TerraformsClientImpl.java | 256 +++++++++++++++ .../implementation/TerraformsImpl.java | 41 +++ .../models/OperationListResult.java | 113 +++++++ .../implementation/package-info.java | 10 + .../terraform/models/ActionType.java | 46 +++ .../terraform/models/BaseExportModel.java | 199 ++++++++++++ .../terraform/models/ExportQuery.java | 214 ++++++++++++ .../terraform/models/ExportResource.java | 241 ++++++++++++++ .../terraform/models/ExportResourceGroup.java | 184 +++++++++++ .../terraform/models/Operation.java | 58 ++++ .../terraform/models/OperationDisplay.java | 136 ++++++++ .../terraform/models/Operations.java | 35 ++ .../terraform/models/Origin.java | 57 ++++ .../terraform/models/TargetProvider.java | 51 +++ .../terraform/models/Terraforms.java | 33 ++ .../terraform/models/Type.java | 56 ++++ .../terraform/models/package-info.java | 10 + .../terraform/package-info.java | 10 + .../src/main/java/module-info.java | 16 + .../proxy-config.json | 1 + .../reflect-config.json | 1 + .../generated/OperationsListSamples.java | 23 ++ .../TerraformExportTerraformSamples.java | 25 ++ .../generated/BaseExportModelTests.java | 33 ++ .../terraform/generated/ExportQueryTests.java | 42 +++ .../generated/ExportResourceGroupTests.java | 39 +++ .../generated/ExportResourceTests.java | 46 +++ .../generated/OperationDisplayTests.java | 17 + .../generated/OperationInnerTests.java | 20 ++ .../generated/OperationListResultTests.java | 21 ++ .../generated/OperationsListMockTests.java | 39 +++ .../tsp-location.yaml | 4 + sdk/terraform/ci.yml | 46 +++ sdk/terraform/pom.xml | 15 + 53 files changed, 3990 insertions(+) create mode 100644 sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md create mode 100644 sdk/terraform/azure-resourcemanager-terraform/README.md create mode 100644 sdk/terraform/azure-resourcemanager-terraform/SAMPLE.md create mode 100644 sdk/terraform/azure-resourcemanager-terraform/pom.xml create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/AzureTerraformManager.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/AzureTerraformClient.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/OperationsClient.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/TerraformsClient.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/OperationInner.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/package-info.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/package-info.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientBuilder.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientImpl.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationImpl.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsClientImpl.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsImpl.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/ResourceManagerUtils.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsClientImpl.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsImpl.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/models/OperationListResult.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/package-info.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ActionType.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/BaseExportModel.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResource.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResourceGroup.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operation.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/OperationDisplay.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operations.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Origin.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/TargetProvider.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Terraforms.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Type.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/package-info.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/package-info.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/java/module-info.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/proxy-config.json create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/reflect-config.json create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/OperationsListSamples.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/TerraformExportTerraformSamples.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/BaseExportModelTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportQueryTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationDisplayTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java create mode 100644 sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml create mode 100644 sdk/terraform/ci.yml create mode 100644 sdk/terraform/pom.xml diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index cb3604dd1a894..a1ddf48c64601 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -475,6 +475,7 @@ com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0 com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-containerorchestratorruntime;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-terraform;1.0.0-beta.1;1.0.0-beta.1 com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1 com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1 io.clientcore:clientcore-parent;1.0.0-beta.1;1.0.0-beta.1 diff --git a/pom.xml b/pom.xml index 866c8c788a53b..9d0b20c2a60e7 100644 --- a/pom.xml +++ b/pom.xml @@ -220,6 +220,7 @@ sdk/synapse sdk/tables sdk/template + sdk/terraform sdk/textanalytics sdk/timeseriesinsights sdk/tools diff --git a/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md b/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md new file mode 100644 index 0000000000000..28d5f2c35daa6 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md @@ -0,0 +1,9 @@ +# Release History + +## 1.0.0-beta.1 (2024-11-20) + +- Azure Resource Manager Azure Terraform client library for Java. This package contains Microsoft Azure SDK for Azure Terraform Management SDK. The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform resources. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). + +### Features Added + +- Initial release for the azure-resourcemanager-terraform Java SDK. diff --git a/sdk/terraform/azure-resourcemanager-terraform/README.md b/sdk/terraform/azure-resourcemanager-terraform/README.md new file mode 100644 index 0000000000000..68125967b7b92 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/README.md @@ -0,0 +1,104 @@ +# Azure Resource Manager Azure Terraform client library for Java + +Azure Resource Manager Azure Terraform client library for Java. + +This package contains Microsoft Azure SDK for Azure Terraform Management SDK. The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform resources. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). + +## We'd love to hear your feedback + +We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better. + +If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together. + +Thank you in advance for your collaboration. We really appreciate your time! + +## Documentation + +Various documentation is available to help you get started + +- [API reference documentation][docs] + +## Getting started + +### Prerequisites + +- [Java Development Kit (JDK)][jdk] with version 8 or above +- [Azure Subscription][azure_subscription] + +### Adding the package to your product + +[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-terraform;current}) +```xml + + com.azure.resourcemanager + azure-resourcemanager-terraform + 1.0.0-beta.1 + +``` +[//]: # ({x-version-update-end}) + +### Include the recommended packages + +Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. + +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. + +### Authentication + +Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package. + +Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. + +Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: + +```java +AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +TokenCredential credential = new DefaultAzureCredentialBuilder() + .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) + .build(); +AzureTerraformManager manager = AzureTerraformManager + .authenticate(credential, profile); +``` + +The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. + +See [Authentication][authenticate] for more options. + +## Key concepts + +See [API design][design] for general introduction on design and key concepts on Azure Management Libraries. + +## Examples + +[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/terraform/azure-resourcemanager-terraform/SAMPLE.md) + + +## Troubleshooting + +## Next steps + +## Contributing + +For details on contributing to this repository, see the [contributing guide][cg]. + +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. + + +[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS +[docs]: https://azure.github.io/azure-sdk-for-java/ +[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ +[azure_subscription]: https://azure.microsoft.com/free/ +[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials +[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty +[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md +[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fterraform%2Fazure-resourcemanager-terraform%2FREADME.png) diff --git a/sdk/terraform/azure-resourcemanager-terraform/SAMPLE.md b/sdk/terraform/azure-resourcemanager-terraform/SAMPLE.md new file mode 100644 index 0000000000000..aa4df8d52cbdb --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/SAMPLE.md @@ -0,0 +1,56 @@ +# Code snippets and samples + + +## Operations + +- [List](#operations_list) + +## Terraform + +- [ExportTerraform](#terraform_exportterraform) +### Operations_List + +```java +/** + * Samples for Operations List. + */ +public final class OperationsListSamples { + /* + * x-ms-original-file: 2023-07-01-preview/ListOperations.json + */ + /** + * Sample code: Get a list of operations for a resource provider. + * + * @param manager Entry point to AzureTerraformManager. + */ + public static void + getAListOfOperationsForAResourceProvider(com.azure.resourcemanager.terraform.AzureTerraformManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } +} +``` + +### Terraform_ExportTerraform + +```java +import com.azure.resourcemanager.terraform.models.ExportResourceGroup; + +/** + * Samples for Terraform ExportTerraform. + */ +public final class TerraformExportTerraformSamples { + /* + * x-ms-original-file: 2023-07-01-preview/ExportTerraform.json + */ + /** + * Sample code: ExportTerraform. + * + * @param manager Entry point to AzureTerraformManager. + */ + public static void exportTerraform(com.azure.resourcemanager.terraform.AzureTerraformManager manager) { + manager.terraforms() + .exportTerraform(new ExportResourceGroup().withResourceGroupName("rg1"), com.azure.core.util.Context.NONE); + } +} +``` + diff --git a/sdk/terraform/azure-resourcemanager-terraform/pom.xml b/sdk/terraform/azure-resourcemanager-terraform/pom.xml new file mode 100644 index 0000000000000..53685093524c9 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/pom.xml @@ -0,0 +1,75 @@ + + + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + + + com.azure.resourcemanager + azure-resourcemanager-terraform + 1.0.0-beta.1 + jar + + Microsoft Azure SDK for Azure Terraform Management + This package contains Microsoft Azure SDK for Azure Terraform Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform resources. + https://github.com/Azure/azure-sdk-for-java + + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + microsoft + Microsoft + + + + UTF-8 + 0 + 0 + true + false + + + + com.azure + azure-core + 1.54.1 + + + com.azure + azure-core-management + 1.15.6 + + + com.azure + azure-core-test + 1.27.0-beta.4 + test + + + com.azure + azure-identity + 1.14.2 + test + + + diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/AzureTerraformManager.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/AzureTerraformManager.java new file mode 100644 index 0000000000000..ff45127c224ab --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/AzureTerraformManager.java @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform; + +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +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; +import com.azure.core.http.policy.HttpPolicyProviders; +import com.azure.core.http.policy.RequestIdPolicy; +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.profile.AzureProfile; +import com.azure.core.util.Configuration; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.terraform.fluent.AzureTerraformClient; +import com.azure.resourcemanager.terraform.implementation.AzureTerraformClientBuilder; +import com.azure.resourcemanager.terraform.implementation.OperationsImpl; +import com.azure.resourcemanager.terraform.implementation.TerraformsImpl; +import com.azure.resourcemanager.terraform.models.Operations; +import com.azure.resourcemanager.terraform.models.Terraforms; +import java.time.Duration; +import java.time.temporal.ChronoUnit; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; + +/** + * Entry point to AzureTerraformManager. + * The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform + * resources. + */ +public final class AzureTerraformManager { + private Operations operations; + + private Terraforms terraforms; + + private final AzureTerraformClient clientObject; + + private AzureTerraformManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + this.clientObject = new AzureTerraformClientBuilder().pipeline(httpPipeline) + .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) + .subscriptionId(profile.getSubscriptionId()) + .defaultPollInterval(defaultPollInterval) + .buildClient(); + } + + /** + * Creates an instance of Azure Terraform service API entry point. + * + * @param credential the credential to use. + * @param profile the Azure profile for client. + * @return the Azure Terraform service API instance. + */ + public static AzureTerraformManager authenticate(TokenCredential credential, AzureProfile profile) { + Objects.requireNonNull(credential, "'credential' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return configure().authenticate(credential, profile); + } + + /** + * Creates an instance of Azure Terraform service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the Azure Terraform service API instance. + */ + public static AzureTerraformManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new AzureTerraformManager(httpPipeline, profile, null); + } + + /** + * Gets a Configurable instance that can be used to create AzureTerraformManager with optional configuration. + * + * @return the Configurable instance allowing configurations. + */ + public static Configurable configure() { + return new AzureTerraformManager.Configurable(); + } + + /** + * The Configurable allowing configurations to be set. + */ + public static final class Configurable { + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + + private HttpClient httpClient; + private HttpLogOptions httpLogOptions; + private final List policies = new ArrayList<>(); + private final List scopes = new ArrayList<>(); + private RetryPolicy retryPolicy; + private RetryOptions retryOptions; + private Duration defaultPollInterval; + + private Configurable() { + } + + /** + * Sets the http client. + * + * @param httpClient the HTTP client. + * @return the configurable object itself. + */ + public Configurable withHttpClient(HttpClient httpClient) { + this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null."); + return this; + } + + /** + * Sets the logging options to the HTTP pipeline. + * + * @param httpLogOptions the HTTP log options. + * @return the configurable object itself. + */ + public Configurable withLogOptions(HttpLogOptions httpLogOptions) { + this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null."); + return this; + } + + /** + * Adds the pipeline policy to the HTTP pipeline. + * + * @param policy the HTTP pipeline policy. + * @return the configurable object itself. + */ + public Configurable withPolicy(HttpPipelinePolicy policy) { + this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null.")); + return this; + } + + /** + * Adds the scope to permission sets. + * + * @param scope the scope. + * @return the configurable object itself. + */ + public Configurable withScope(String scope) { + this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null.")); + return this; + } + + /** + * Sets the retry policy to the HTTP pipeline. + * + * @param retryPolicy the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null."); + return this; + } + + /** + * Sets the retry options for the HTTP pipeline retry policy. + *

+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + + /** + * Sets the default poll interval, used when service does not provide "Retry-After" header. + * + * @param defaultPollInterval the default poll interval. + * @return the configurable object itself. + */ + public Configurable withDefaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval + = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); + if (this.defaultPollInterval.isNegative()) { + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); + } + return this; + } + + /** + * Creates an instance of Azure Terraform service API entry point. + * + * @param credential the credential to use. + * @param profile the Azure profile for client. + * @return the Azure Terraform service API instance. + */ + public AzureTerraformManager authenticate(TokenCredential credential, AzureProfile profile) { + Objects.requireNonNull(credential, "'credential' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + + StringBuilder userAgentBuilder = new StringBuilder(); + userAgentBuilder.append("azsdk-java") + .append("-") + .append("com.azure.resourcemanager.terraform") + .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("; ") + .append(Configuration.getGlobalConfiguration().get("os.version")) + .append("; auto-generated)"); + } else { + userAgentBuilder.append(" (auto-generated)"); + } + + if (scopes.isEmpty()) { + scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); + } + if (retryPolicy == null) { + if (retryOptions != null) { + retryPolicy = new RetryPolicy(retryOptions); + } else { + retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + } + } + List policies = new ArrayList<>(); + policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); + policies.add(new RequestIdPolicy()); + policies.addAll(this.policies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); + HttpPolicyProviders.addBeforeRetryPolicies(policies); + policies.add(retryPolicy); + policies.add(new AddDatePolicy()); + 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())); + HttpPolicyProviders.addAfterRetryPolicies(policies); + policies.add(new HttpLoggingPolicy(httpLogOptions)); + HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient) + .policies(policies.toArray(new HttpPipelinePolicy[0])) + .build(); + return new AzureTerraformManager(httpPipeline, profile, defaultPollInterval); + } + } + + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(clientObject.getOperations(), this); + } + return operations; + } + + /** + * Gets the resource collection API of Terraforms. + * + * @return Resource collection API of Terraforms. + */ + public Terraforms terraforms() { + if (this.terraforms == null) { + this.terraforms = new TerraformsImpl(clientObject.getTerraforms(), this); + } + return terraforms; + } + + /** + * Gets wrapped service client AzureTerraformClient providing direct access to the underlying auto-generated API + * implementation, based on Azure REST API. + * + * @return Wrapped service client AzureTerraformClient. + */ + public AzureTerraformClient serviceClient() { + return this.clientObject; + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/AzureTerraformClient.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/AzureTerraformClient.java new file mode 100644 index 0000000000000..6a45872a81bff --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/AzureTerraformClient.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.fluent; + +import com.azure.core.http.HttpPipeline; +import java.time.Duration; + +/** + * The interface for AzureTerraformClient class. + */ +public interface AzureTerraformClient { + /** + * Gets Service host. + * + * @return the endpoint value. + */ + String getEndpoint(); + + /** + * Gets Version parameter. + * + * @return the apiVersion value. + */ + String getApiVersion(); + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + String getSubscriptionId(); + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + HttpPipeline getHttpPipeline(); + + /** + * Gets The default poll interval for long-running operation. + * + * @return the defaultPollInterval value. + */ + Duration getDefaultPollInterval(); + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + OperationsClient getOperations(); + + /** + * Gets the TerraformsClient object to access its operations. + * + * @return the TerraformsClient object. + */ + TerraformsClient getTerraforms(); +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/OperationsClient.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/OperationsClient.java new file mode 100644 index 0000000000000..c12ee666aa51f --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/OperationsClient.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.resourcemanager.terraform.fluent.models.OperationInner; + +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ +public interface OperationsClient { + /** + * List the operations for the provider. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/TerraformsClient.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/TerraformsClient.java new file mode 100644 index 0000000000000..72ce4aecd3aa2 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/TerraformsClient.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.terraform.models.BaseExportModel; + +/** + * An instance of this class provides access to all the operations defined in TerraformsClient. + */ +public interface TerraformsClient { + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginExportTerraform(BaseExportModel body); + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginExportTerraform(BaseExportModel body, Context context); + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void exportTerraform(BaseExportModel body); + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void exportTerraform(BaseExportModel body, Context context); +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/OperationInner.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/OperationInner.java new file mode 100644 index 0000000000000..bac169e2ddd16 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/OperationInner.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.terraform.models.ActionType; +import com.azure.resourcemanager.terraform.models.OperationDisplay; +import com.azure.resourcemanager.terraform.models.Origin; +import java.io.IOException; + +/** + * Details of a REST API operation, returned from the Resource Provider Operations API. + */ +@Immutable +public final class OperationInner implements JsonSerializable { + /* + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + */ + private String name; + + /* + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure + * Resource Manager/control-plane operations. + */ + private Boolean isDataAction; + + /* + * Localized display information for this particular operation. + */ + private OperationDisplay display; + + /* + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default + * value is "user,system" + */ + private Origin origin; + + /* + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + */ + private ActionType actionType; + + /** + * Creates an instance of OperationInner class. + */ + private OperationInner() { + } + + /** + * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane + * operations and "false" for Azure Resource Manager/control-plane operations. + * + * @return the isDataAction value. + */ + public Boolean isDataAction() { + return this.isDataAction; + } + + /** + * Get the display property: Localized display information for this particular operation. + * + * @return the display value. + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and + * audit logs UX. Default value is "user,system". + * + * @return the origin value. + */ + public Origin origin() { + return this.origin; + } + + /** + * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. + * + * @return the actionType value. + */ + public ActionType actionType() { + return this.actionType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (display() != null) { + display().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationInner. + */ + public static OperationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationInner deserializedOperationInner = new OperationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedOperationInner.name = reader.getString(); + } else if ("isDataAction".equals(fieldName)) { + deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean); + } else if ("display".equals(fieldName)) { + deserializedOperationInner.display = OperationDisplay.fromJson(reader); + } else if ("origin".equals(fieldName)) { + deserializedOperationInner.origin = Origin.fromString(reader.getString()); + } else if ("actionType".equals(fieldName)) { + deserializedOperationInner.actionType = ActionType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationInner; + }); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/package-info.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/package-info.java new file mode 100644 index 0000000000000..c05a1a2ce44cf --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/models/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the inner data models for AzureTerraform. + * The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform + * resources. + */ +package com.azure.resourcemanager.terraform.fluent.models; diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/package-info.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/package-info.java new file mode 100644 index 0000000000000..c5a82f46d9b5a --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/fluent/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the service clients for AzureTerraform. + * The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform + * resources. + */ +package com.azure.resourcemanager.terraform.fluent; diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientBuilder.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientBuilder.java new file mode 100644 index 0000000000000..0e3dd75c3cde5 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientBuilder.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerAdapter; +import java.time.Duration; + +/** + * A builder for creating a new instance of the AzureTerraformClientImpl type. + */ +@ServiceClientBuilder(serviceClients = { AzureTerraformClientImpl.class }) +public final class AzureTerraformClientBuilder { + /* + * Service host + */ + private String endpoint; + + /** + * Sets Service host. + * + * @param endpoint the endpoint value. + * @return the AzureTerraformClientBuilder. + */ + public AzureTerraformClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * The ID of the target subscription. The value must be an UUID. + */ + private String subscriptionId; + + /** + * Sets The ID of the target subscription. The value must be an UUID. + * + * @param subscriptionId the subscriptionId value. + * @return the AzureTerraformClientBuilder. + */ + public AzureTerraformClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /* + * The environment to connect to + */ + private AzureEnvironment environment; + + /** + * Sets The environment to connect to. + * + * @param environment the environment value. + * @return the AzureTerraformClientBuilder. + */ + public AzureTerraformClientBuilder environment(AzureEnvironment environment) { + this.environment = environment; + return this; + } + + /* + * The HTTP pipeline to send requests through + */ + private HttpPipeline pipeline; + + /** + * Sets The HTTP pipeline to send requests through. + * + * @param pipeline the pipeline value. + * @return the AzureTerraformClientBuilder. + */ + public AzureTerraformClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /* + * The default poll interval for long-running operation + */ + private Duration defaultPollInterval; + + /** + * Sets The default poll interval for long-running operation. + * + * @param defaultPollInterval the defaultPollInterval value. + * @return the AzureTerraformClientBuilder. + */ + public AzureTerraformClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; + return this; + } + + /* + * The serializer to serialize an object into a string + */ + private SerializerAdapter serializerAdapter; + + /** + * Sets The serializer to serialize an object into a string. + * + * @param serializerAdapter the serializerAdapter value. + * @return the AzureTerraformClientBuilder. + */ + public AzureTerraformClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + this.serializerAdapter = serializerAdapter; + return this; + } + + /** + * Builds an instance of AzureTerraformClientImpl with the provided parameters. + * + * @return an instance of AzureTerraformClientImpl. + */ + public AzureTerraformClientImpl buildClient() { + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval + = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); + AzureTerraformClientImpl client = new AzureTerraformClientImpl(localPipeline, localSerializerAdapter, + localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); + return client; + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientImpl.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientImpl.java new file mode 100644 index 0000000000000..850cc7efe3de7 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/AzureTerraformClientImpl.java @@ -0,0 +1,304 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpResponse; +import com.azure.core.http.rest.Response; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.exception.ManagementError; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.polling.AsyncPollResponse; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.serializer.SerializerAdapter; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.terraform.fluent.AzureTerraformClient; +import com.azure.resourcemanager.terraform.fluent.OperationsClient; +import com.azure.resourcemanager.terraform.fluent.TerraformsClient; +import java.io.IOException; +import java.lang.reflect.Type; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.time.Duration; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the AzureTerraformClientImpl type. + */ +@ServiceClient(builder = AzureTerraformClientBuilder.class) +public final class AzureTerraformClientImpl implements AzureTerraformClient { + /** + * Service host. + */ + private final String endpoint; + + /** + * Gets Service host. + * + * @return the endpoint value. + */ + public String getEndpoint() { + return this.endpoint; + } + + /** + * Version parameter. + */ + private final String apiVersion; + + /** + * Gets Version parameter. + * + * @return the apiVersion value. + */ + public String getApiVersion() { + return this.apiVersion; + } + + /** + * The ID of the target subscription. The value must be an UUID. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + + /** + * The HTTP pipeline to send requests through. + */ + private final HttpPipeline httpPipeline; + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + public HttpPipeline getHttpPipeline() { + return this.httpPipeline; + } + + /** + * The serializer to serialize an object into a string. + */ + private final SerializerAdapter serializerAdapter; + + /** + * Gets The serializer to serialize an object into a string. + * + * @return the serializerAdapter value. + */ + SerializerAdapter getSerializerAdapter() { + return this.serializerAdapter; + } + + /** + * The default poll interval for long-running operation. + */ + private final Duration defaultPollInterval; + + /** + * Gets The default poll interval for long-running operation. + * + * @return the defaultPollInterval value. + */ + public Duration getDefaultPollInterval() { + return this.defaultPollInterval; + } + + /** + * The OperationsClient object to access its operations. + */ + private final OperationsClient operations; + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + public OperationsClient getOperations() { + return this.operations; + } + + /** + * The TerraformsClient object to access its operations. + */ + private final TerraformsClient terraforms; + + /** + * Gets the TerraformsClient object to access its operations. + * + * @return the TerraformsClient object. + */ + public TerraformsClient getTerraforms() { + return this.terraforms; + } + + /** + * Initializes an instance of AzureTerraformClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param serializerAdapter The serializer to serialize an object into a string. + * @param defaultPollInterval The default poll interval for long-running operation. + * @param environment The Azure environment. + * @param endpoint Service host. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. + */ + AzureTerraformClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { + this.httpPipeline = httpPipeline; + this.serializerAdapter = serializerAdapter; + this.defaultPollInterval = defaultPollInterval; + this.endpoint = endpoint; + this.subscriptionId = subscriptionId; + this.apiVersion = "2023-07-01-preview"; + this.operations = new OperationsClientImpl(this); + this.terraforms = new TerraformsClientImpl(this); + } + + /** + * Gets default client context. + * + * @return the default client context. + */ + public Context getContext() { + return Context.NONE; + } + + /** + * Merges default client context with provided context. + * + * @param context the context to be merged with default client context. + * @return the merged context. + */ + public Context mergeContext(Context context) { + return CoreUtils.mergeContexts(this.getContext(), context); + } + + /** + * Gets long running operation result. + * + * @param activationResponse the response of activation operation. + * @param httpPipeline the http pipeline. + * @param pollResultType type of poll result. + * @param finalResultType type of final result. + * @param context the context shared by all requests. + * @param type of poll result. + * @param type of final result. + * @return poller flux for poll result and final result. + */ + public PollerFlux, U> getLroResult(Mono>> activationResponse, + HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) { + return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, + defaultPollInterval, activationResponse, context); + } + + /** + * Gets the final result, or an error, based on last async poll response. + * + * @param response the last async poll response. + * @param type of poll result. + * @param type of final result. + * @return the final result, or an error. + */ + public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) { + if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) { + String errorMessage; + ManagementError managementError = null; + HttpResponse errorResponse = null; + PollResult.Error lroError = response.getValue().getError(); + if (lroError != null) { + errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(), + lroError.getResponseBody()); + + errorMessage = response.getValue().getError().getMessage(); + String errorBody = response.getValue().getError().getResponseBody(); + if (errorBody != null) { + // try to deserialize error body to ManagementError + try { + managementError = this.getSerializerAdapter() + .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON); + if (managementError.getCode() == null || managementError.getMessage() == null) { + managementError = null; + } + } catch (IOException | RuntimeException ioe) { + LOGGER.logThrowableAsWarning(ioe); + } + } + } else { + // fallback to default error message + errorMessage = "Long running operation failed."; + } + if (managementError == null) { + // fallback to default ManagementError + managementError = new ManagementError(response.getStatus().toString(), errorMessage); + } + return Mono.error(new ManagementException(errorMessage, errorResponse, managementError)); + } else { + return response.getFinalResult(); + } + } + + private static final class HttpResponseImpl extends HttpResponse { + private final int statusCode; + + private final byte[] responseBody; + + private final HttpHeaders httpHeaders; + + HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) { + super(null); + this.statusCode = statusCode; + this.httpHeaders = httpHeaders; + this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8); + } + + public int getStatusCode() { + return statusCode; + } + + public String getHeaderValue(String s) { + return httpHeaders.getValue(HttpHeaderName.fromString(s)); + } + + public HttpHeaders getHeaders() { + return httpHeaders; + } + + public Flux getBody() { + return Flux.just(ByteBuffer.wrap(responseBody)); + } + + public Mono getBodyAsByteArray() { + return Mono.just(responseBody); + } + + public Mono getBodyAsString() { + return Mono.just(new String(responseBody, StandardCharsets.UTF_8)); + } + + public Mono getBodyAsString(Charset charset) { + return Mono.just(new String(responseBody, charset)); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AzureTerraformClientImpl.class); +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationImpl.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationImpl.java new file mode 100644 index 0000000000000..f4515db99f94e --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationImpl.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.resourcemanager.terraform.fluent.models.OperationInner; +import com.azure.resourcemanager.terraform.models.ActionType; +import com.azure.resourcemanager.terraform.models.Operation; +import com.azure.resourcemanager.terraform.models.OperationDisplay; +import com.azure.resourcemanager.terraform.models.Origin; + +public final class OperationImpl implements Operation { + private OperationInner innerObject; + + private final com.azure.resourcemanager.terraform.AzureTerraformManager serviceManager; + + OperationImpl(OperationInner innerObject, + com.azure.resourcemanager.terraform.AzureTerraformManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String name() { + return this.innerModel().name(); + } + + public Boolean isDataAction() { + return this.innerModel().isDataAction(); + } + + public OperationDisplay display() { + return this.innerModel().display(); + } + + public Origin origin() { + return this.innerModel().origin(); + } + + public ActionType actionType() { + return this.innerModel().actionType(); + } + + public OperationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.terraform.AzureTerraformManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsClientImpl.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsClientImpl.java new file mode 100644 index 0000000000000..026067df0767c --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsClientImpl.java @@ -0,0 +1,235 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.terraform.fluent.OperationsClient; +import com.azure.resourcemanager.terraform.fluent.models.OperationInner; +import com.azure.resourcemanager.terraform.implementation.models.OperationListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ +public final class OperationsClientImpl implements OperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final OperationsService service; + + /** + * The service client containing this operation class. + */ + private final AzureTerraformClientImpl client; + + /** + * Initializes an instance of OperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + OperationsClientImpl(AzureTerraformClientImpl client) { + this.service + = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for AzureTerraformClientOperations to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "AzureTerraformClient") + public interface OperationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/providers/Microsoft.AzureTerraform/operations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * List the operations for the provider. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List the operations for the provider. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List the operations for the provider. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsImpl.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsImpl.java new file mode 100644 index 0000000000000..fc2eaef970d48 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/OperationsImpl.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.terraform.fluent.OperationsClient; +import com.azure.resourcemanager.terraform.fluent.models.OperationInner; +import com.azure.resourcemanager.terraform.models.Operation; +import com.azure.resourcemanager.terraform.models.Operations; + +public final class OperationsImpl implements Operations { + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); + + private final OperationsClient innerClient; + + private final com.azure.resourcemanager.terraform.AzureTerraformManager serviceManager; + + public OperationsImpl(OperationsClient innerClient, + com.azure.resourcemanager.terraform.AzureTerraformManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + } + + private OperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.terraform.AzureTerraformManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/ResourceManagerUtils.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/ResourceManagerUtils.java new file mode 100644 index 0000000000000..2600ef5bd87ba --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/ResourceManagerUtils.java @@ -0,0 +1,195 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.util.CoreUtils; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.function.Function; +import java.util.stream.Collectors; +import java.util.stream.Stream; +import reactor.core.publisher.Flux; + +final class ResourceManagerUtils { + private ResourceManagerUtils() { + } + + static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterator itr = Arrays.stream(id.split("/")).iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && !part.trim().isEmpty()) { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) { + if (id == null || pathTemplate == null) { + return null; + } + String parameterNameParentheses = "{" + parameterName + "}"; + List idSegmentsReverted = Arrays.asList(id.split("/")); + List pathSegments = Arrays.asList(pathTemplate.split("/")); + Collections.reverse(idSegmentsReverted); + Iterator idItrReverted = idSegmentsReverted.iterator(); + int pathIndex = pathSegments.size(); + while (idItrReverted.hasNext() && pathIndex > 0) { + String idSegment = idItrReverted.next(); + String pathSegment = pathSegments.get(--pathIndex); + if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) { + if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) { + if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) { + List segments = new ArrayList<>(); + segments.add(idSegment); + idItrReverted.forEachRemaining(segments::add); + Collections.reverse(segments); + if (!segments.isEmpty() && segments.get(0).isEmpty()) { + segments.remove(0); + } + return String.join("/", segments); + } else { + return idSegment; + } + } + } + } + return null; + } + + static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { + return new PagedIterableImpl<>(pageIterable, mapper); + } + + private static final class PagedIterableImpl extends PagedIterable { + + private final PagedIterable pagedIterable; + private final Function mapper; + private final Function, PagedResponse> pageMapper; + + private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) { + super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux + .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); + this.pagedIterable = pagedIterable; + this.mapper = mapper; + this.pageMapper = getPageMapper(mapper); + } + + private static Function, PagedResponse> getPageMapper(Function mapper) { + return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(), + page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(), + null); + } + + @Override + public Stream stream() { + return pagedIterable.stream().map(mapper); + } + + @Override + public Stream> streamByPage() { + return pagedIterable.streamByPage().map(pageMapper); + } + + @Override + public Stream> streamByPage(String continuationToken) { + return pagedIterable.streamByPage(continuationToken).map(pageMapper); + } + + @Override + public Stream> streamByPage(int preferredPageSize) { + return pagedIterable.streamByPage(preferredPageSize).map(pageMapper); + } + + @Override + public Stream> streamByPage(String continuationToken, int preferredPageSize) { + return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper); + } + + @Override + public Iterator iterator() { + return new IteratorImpl<>(pagedIterable.iterator(), mapper); + } + + @Override + public Iterable> iterableByPage() { + return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper); + } + + @Override + public Iterable> iterableByPage(String continuationToken) { + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper); + } + + @Override + public Iterable> iterableByPage(int preferredPageSize) { + return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper); + } + + @Override + public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + } + } + + private static final class IteratorImpl implements Iterator { + + private final Iterator iterator; + private final Function mapper; + + private IteratorImpl(Iterator iterator, Function mapper) { + this.iterator = iterator; + this.mapper = mapper; + } + + @Override + public boolean hasNext() { + return iterator.hasNext(); + } + + @Override + public S next() { + return mapper.apply(iterator.next()); + } + + @Override + public void remove() { + iterator.remove(); + } + } + + private static final class IterableImpl implements Iterable { + + private final Iterable iterable; + private final Function mapper; + + private IterableImpl(Iterable iterable, Function mapper) { + this.iterable = iterable; + this.mapper = mapper; + } + + @Override + public Iterator iterator() { + return new IteratorImpl<>(iterable.iterator(), mapper); + } + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsClientImpl.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsClientImpl.java new file mode 100644 index 0000000000000..09081a699ec47 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsClientImpl.java @@ -0,0 +1,256 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.terraform.fluent.TerraformsClient; +import com.azure.resourcemanager.terraform.models.BaseExportModel; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in TerraformsClient. + */ +public final class TerraformsClientImpl implements TerraformsClient { + /** + * The proxy service used to perform REST calls. + */ + private final TerraformsService service; + + /** + * The service client containing this operation class. + */ + private final AzureTerraformClientImpl client; + + /** + * Initializes an instance of TerraformsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + TerraformsClientImpl(AzureTerraformClientImpl client) { + this.service + = RestProxy.create(TerraformsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for AzureTerraformClientTerraforms to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "AzureTerraformClient") + public interface TerraformsService { + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AzureTerraform/exportTerraform") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> exportTerraform(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") BaseExportModel body, Context context); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> exportTerraformWithResponseAsync(BaseExportModel body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.exportTerraform(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> exportTerraformWithResponseAsync(BaseExportModel body, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.exportTerraform(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), contentType, accept, body, context); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginExportTerraformAsync(BaseExportModel body) { + Mono>> mono = exportTerraformWithResponseAsync(body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginExportTerraformAsync(BaseExportModel body, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = exportTerraformWithResponseAsync(body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginExportTerraform(BaseExportModel body) { + return this.beginExportTerraformAsync(body).getSyncPoller(); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginExportTerraform(BaseExportModel body, Context context) { + return this.beginExportTerraformAsync(body, context).getSyncPoller(); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono exportTerraformAsync(BaseExportModel body) { + return beginExportTerraformAsync(body).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono exportTerraformAsync(BaseExportModel body, Context context) { + return beginExportTerraformAsync(body, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void exportTerraform(BaseExportModel body) { + exportTerraformAsync(body).block(); + } + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void exportTerraform(BaseExportModel body, Context context) { + exportTerraformAsync(body, context).block(); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsImpl.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsImpl.java new file mode 100644 index 0000000000000..d9e46602b9bbc --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/TerraformsImpl.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation; + +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.terraform.fluent.TerraformsClient; +import com.azure.resourcemanager.terraform.models.BaseExportModel; +import com.azure.resourcemanager.terraform.models.Terraforms; + +public final class TerraformsImpl implements Terraforms { + private static final ClientLogger LOGGER = new ClientLogger(TerraformsImpl.class); + + private final TerraformsClient innerClient; + + private final com.azure.resourcemanager.terraform.AzureTerraformManager serviceManager; + + public TerraformsImpl(TerraformsClient innerClient, + com.azure.resourcemanager.terraform.AzureTerraformManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public void exportTerraform(BaseExportModel body) { + this.serviceClient().exportTerraform(body); + } + + public void exportTerraform(BaseExportModel body, Context context) { + this.serviceClient().exportTerraform(body, context); + } + + private TerraformsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.terraform.AzureTerraformManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/models/OperationListResult.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/models/OperationListResult.java new file mode 100644 index 0000000000000..34df7c302fdff --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/models/OperationListResult.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.terraform.fluent.models.OperationInner; +import java.io.IOException; +import java.util.List; + +/** + * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + * results. + */ +@Immutable +public final class OperationListResult implements JsonSerializable { + /* + * The Operation items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of OperationListResult class. + */ + private OperationListResult() { + } + + /** + * Get the value property: The Operation items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the OperationListResult. + */ + public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationListResult deserializedOperationListResult = new OperationListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1)); + deserializedOperationListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedOperationListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationListResult; + }); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/package-info.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/package-info.java new file mode 100644 index 0000000000000..dbdb01a6d6b0f --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/implementation/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the implementations for AzureTerraform. + * The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform + * resources. + */ +package com.azure.resourcemanager.terraform.implementation; diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ActionType.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ActionType.java new file mode 100644 index 0000000000000..9dfc5fe90862d --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ActionType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + */ +public final class ActionType extends ExpandableStringEnum { + /** + * Actions are for internal-only APIs. + */ + public static final ActionType INTERNAL = fromString("Internal"); + + /** + * Creates a new instance of ActionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ActionType() { + } + + /** + * Creates or finds a ActionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ActionType. + */ + public static ActionType fromString(String name) { + return fromString(name, ActionType.class); + } + + /** + * Gets known ActionType values. + * + * @return known ActionType values. + */ + public static Collection values() { + return values(ActionType.class); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/BaseExportModel.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/BaseExportModel.java new file mode 100644 index 0000000000000..ea5b25d485933 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/BaseExportModel.java @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The base export parameter. + */ +@Fluent +public class BaseExportModel implements JsonSerializable { + /* + * The parameter type + */ + private Type type = Type.fromString("BaseExportModel"); + + /* + * The target Azure Terraform Provider + */ + private TargetProvider targetProvider; + + /* + * Whether to output all non-computed properties in the generated Terraform configuration? This probably needs + * manual modifications to make it valid + */ + private Boolean fullProperties; + + /* + * Mask sensitive attributes in the Terraform configuration + */ + private Boolean maskSensitive; + + /** + * Creates an instance of BaseExportModel class. + */ + public BaseExportModel() { + } + + /** + * Get the type property: The parameter type. + * + * @return the type value. + */ + public Type type() { + return this.type; + } + + /** + * Get the targetProvider property: The target Azure Terraform Provider. + * + * @return the targetProvider value. + */ + public TargetProvider targetProvider() { + return this.targetProvider; + } + + /** + * Set the targetProvider property: The target Azure Terraform Provider. + * + * @param targetProvider the targetProvider value to set. + * @return the BaseExportModel object itself. + */ + public BaseExportModel withTargetProvider(TargetProvider targetProvider) { + this.targetProvider = targetProvider; + return this; + } + + /** + * Get the fullProperties property: Whether to output all non-computed properties in the generated Terraform + * configuration? This probably needs manual modifications to make it valid. + * + * @return the fullProperties value. + */ + public Boolean fullProperties() { + return this.fullProperties; + } + + /** + * Set the fullProperties property: Whether to output all non-computed properties in the generated Terraform + * configuration? This probably needs manual modifications to make it valid. + * + * @param fullProperties the fullProperties value to set. + * @return the BaseExportModel object itself. + */ + public BaseExportModel withFullProperties(Boolean fullProperties) { + this.fullProperties = fullProperties; + return this; + } + + /** + * Get the maskSensitive property: Mask sensitive attributes in the Terraform configuration. + * + * @return the maskSensitive value. + */ + public Boolean maskSensitive() { + return this.maskSensitive; + } + + /** + * Set the maskSensitive property: Mask sensitive attributes in the Terraform configuration. + * + * @param maskSensitive the maskSensitive value to set. + * @return the BaseExportModel object itself. + */ + public BaseExportModel withMaskSensitive(Boolean maskSensitive) { + this.maskSensitive = maskSensitive; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("targetProvider", + this.targetProvider == null ? null : this.targetProvider.toString()); + jsonWriter.writeBooleanField("fullProperties", this.fullProperties); + jsonWriter.writeBooleanField("maskSensitive", this.maskSensitive); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BaseExportModel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BaseExportModel if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the BaseExportModel. + */ + public static BaseExportModel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("ExportQuery".equals(discriminatorValue)) { + return ExportQuery.fromJson(readerToUse.reset()); + } else if ("ExportResource".equals(discriminatorValue)) { + return ExportResource.fromJson(readerToUse.reset()); + } else if ("ExportResourceGroup".equals(discriminatorValue)) { + return ExportResourceGroup.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static BaseExportModel fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BaseExportModel deserializedBaseExportModel = new BaseExportModel(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedBaseExportModel.type = Type.fromString(reader.getString()); + } else if ("targetProvider".equals(fieldName)) { + deserializedBaseExportModel.targetProvider = TargetProvider.fromString(reader.getString()); + } else if ("fullProperties".equals(fieldName)) { + deserializedBaseExportModel.fullProperties = reader.getNullable(JsonReader::getBoolean); + } else if ("maskSensitive".equals(fieldName)) { + deserializedBaseExportModel.maskSensitive = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedBaseExportModel; + }); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java new file mode 100644 index 0000000000000..027be1acfee06 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportQuery.java @@ -0,0 +1,214 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Export parameter for resources queried by ARG (Azure Resource Graph). + */ +@Fluent +public final class ExportQuery extends BaseExportModel { + /* + * The parameter type + */ + private Type type = Type.EXPORT_QUERY; + + /* + * The ARG where predicate. Note that you can combine multiple conditions in one `where` predicate, e.g. + * `resourceGroup =~ "my-rg" and type =~ "microsoft.network/virtualnetworks"` + */ + private String query; + + /* + * The name pattern of the Terraform resources + */ + private String namePattern; + + /* + * Whether to recursively list child resources of the query result + */ + private Boolean recursive; + + /** + * Creates an instance of ExportQuery class. + */ + public ExportQuery() { + } + + /** + * Get the type property: The parameter type. + * + * @return the type value. + */ + @Override + public Type type() { + return this.type; + } + + /** + * Get the query property: The ARG where predicate. Note that you can combine multiple conditions in one `where` + * predicate, e.g. `resourceGroup =~ "my-rg" and type =~ "microsoft.network/virtualnetworks"`. + * + * @return the query value. + */ + public String query() { + return this.query; + } + + /** + * Set the query property: The ARG where predicate. Note that you can combine multiple conditions in one `where` + * predicate, e.g. `resourceGroup =~ "my-rg" and type =~ "microsoft.network/virtualnetworks"`. + * + * @param query the query value to set. + * @return the ExportQuery object itself. + */ + public ExportQuery withQuery(String query) { + this.query = query; + return this; + } + + /** + * Get the namePattern property: The name pattern of the Terraform resources. + * + * @return the namePattern value. + */ + public String namePattern() { + return this.namePattern; + } + + /** + * Set the namePattern property: The name pattern of the Terraform resources. + * + * @param namePattern the namePattern value to set. + * @return the ExportQuery object itself. + */ + public ExportQuery withNamePattern(String namePattern) { + this.namePattern = namePattern; + return this; + } + + /** + * Get the recursive property: Whether to recursively list child resources of the query result. + * + * @return the recursive value. + */ + public Boolean recursive() { + return this.recursive; + } + + /** + * Set the recursive property: Whether to recursively list child resources of the query result. + * + * @param recursive the recursive value to set. + * @return the ExportQuery object itself. + */ + public ExportQuery withRecursive(Boolean recursive) { + this.recursive = recursive; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportQuery withTargetProvider(TargetProvider targetProvider) { + super.withTargetProvider(targetProvider); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportQuery withFullProperties(Boolean fullProperties) { + super.withFullProperties(fullProperties); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportQuery withMaskSensitive(Boolean maskSensitive) { + super.withMaskSensitive(maskSensitive); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (query() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property query in model ExportQuery")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ExportQuery.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetProvider", targetProvider() == null ? null : targetProvider().toString()); + jsonWriter.writeBooleanField("fullProperties", fullProperties()); + jsonWriter.writeBooleanField("maskSensitive", maskSensitive()); + jsonWriter.writeStringField("query", this.query); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("namePattern", this.namePattern); + jsonWriter.writeBooleanField("recursive", this.recursive); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ExportQuery from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ExportQuery if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ExportQuery. + */ + public static ExportQuery fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ExportQuery deserializedExportQuery = new ExportQuery(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetProvider".equals(fieldName)) { + deserializedExportQuery.withTargetProvider(TargetProvider.fromString(reader.getString())); + } else if ("fullProperties".equals(fieldName)) { + deserializedExportQuery.withFullProperties(reader.getNullable(JsonReader::getBoolean)); + } else if ("maskSensitive".equals(fieldName)) { + deserializedExportQuery.withMaskSensitive(reader.getNullable(JsonReader::getBoolean)); + } else if ("query".equals(fieldName)) { + deserializedExportQuery.query = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedExportQuery.type = Type.fromString(reader.getString()); + } else if ("namePattern".equals(fieldName)) { + deserializedExportQuery.namePattern = reader.getString(); + } else if ("recursive".equals(fieldName)) { + deserializedExportQuery.recursive = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedExportQuery; + }); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResource.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResource.java new file mode 100644 index 0000000000000..fa8ed7d7961ff --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResource.java @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Export parameter for individual resources. + */ +@Fluent +public final class ExportResource extends BaseExportModel { + /* + * The parameter type + */ + private Type type = Type.EXPORT_RESOURCE; + + /* + * The id of the resource to be exported + */ + private List resourceIds; + + /* + * The Terraform resource name. Only works when `resourceIds` contains only one item. + */ + private String resourceName; + + /* + * The Terraform resource type. Only works when `resourceIds` contains only one item. + */ + private String resourceType; + + /* + * The name pattern of the Terraform resources + */ + private String namePattern; + + /** + * Creates an instance of ExportResource class. + */ + public ExportResource() { + } + + /** + * Get the type property: The parameter type. + * + * @return the type value. + */ + @Override + public Type type() { + return this.type; + } + + /** + * Get the resourceIds property: The id of the resource to be exported. + * + * @return the resourceIds value. + */ + public List resourceIds() { + return this.resourceIds; + } + + /** + * Set the resourceIds property: The id of the resource to be exported. + * + * @param resourceIds the resourceIds value to set. + * @return the ExportResource object itself. + */ + public ExportResource withResourceIds(List resourceIds) { + this.resourceIds = resourceIds; + return this; + } + + /** + * Get the resourceName property: The Terraform resource name. Only works when `resourceIds` contains only one item. + * + * @return the resourceName value. + */ + public String resourceName() { + return this.resourceName; + } + + /** + * Set the resourceName property: The Terraform resource name. Only works when `resourceIds` contains only one item. + * + * @param resourceName the resourceName value to set. + * @return the ExportResource object itself. + */ + public ExportResource withResourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * Get the resourceType property: The Terraform resource type. Only works when `resourceIds` contains only one item. + * + * @return the resourceType value. + */ + public String resourceType() { + return this.resourceType; + } + + /** + * Set the resourceType property: The Terraform resource type. Only works when `resourceIds` contains only one item. + * + * @param resourceType the resourceType value to set. + * @return the ExportResource object itself. + */ + public ExportResource withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Get the namePattern property: The name pattern of the Terraform resources. + * + * @return the namePattern value. + */ + public String namePattern() { + return this.namePattern; + } + + /** + * Set the namePattern property: The name pattern of the Terraform resources. + * + * @param namePattern the namePattern value to set. + * @return the ExportResource object itself. + */ + public ExportResource withNamePattern(String namePattern) { + this.namePattern = namePattern; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportResource withTargetProvider(TargetProvider targetProvider) { + super.withTargetProvider(targetProvider); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportResource withFullProperties(Boolean fullProperties) { + super.withFullProperties(fullProperties); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportResource withMaskSensitive(Boolean maskSensitive) { + super.withMaskSensitive(maskSensitive); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (resourceIds() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property resourceIds in model ExportResource")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ExportResource.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetProvider", targetProvider() == null ? null : targetProvider().toString()); + jsonWriter.writeBooleanField("fullProperties", fullProperties()); + jsonWriter.writeBooleanField("maskSensitive", maskSensitive()); + jsonWriter.writeArrayField("resourceIds", this.resourceIds, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("resourceName", this.resourceName); + jsonWriter.writeStringField("resourceType", this.resourceType); + jsonWriter.writeStringField("namePattern", this.namePattern); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ExportResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ExportResource if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ExportResource. + */ + public static ExportResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ExportResource deserializedExportResource = new ExportResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetProvider".equals(fieldName)) { + deserializedExportResource.withTargetProvider(TargetProvider.fromString(reader.getString())); + } else if ("fullProperties".equals(fieldName)) { + deserializedExportResource.withFullProperties(reader.getNullable(JsonReader::getBoolean)); + } else if ("maskSensitive".equals(fieldName)) { + deserializedExportResource.withMaskSensitive(reader.getNullable(JsonReader::getBoolean)); + } else if ("resourceIds".equals(fieldName)) { + List resourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedExportResource.resourceIds = resourceIds; + } else if ("type".equals(fieldName)) { + deserializedExportResource.type = Type.fromString(reader.getString()); + } else if ("resourceName".equals(fieldName)) { + deserializedExportResource.resourceName = reader.getString(); + } else if ("resourceType".equals(fieldName)) { + deserializedExportResource.resourceType = reader.getString(); + } else if ("namePattern".equals(fieldName)) { + deserializedExportResource.namePattern = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedExportResource; + }); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResourceGroup.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResourceGroup.java new file mode 100644 index 0000000000000..6c063d1be7a73 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/ExportResourceGroup.java @@ -0,0 +1,184 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Export parameter for a resource group. + */ +@Fluent +public final class ExportResourceGroup extends BaseExportModel { + /* + * The parameter type + */ + private Type type = Type.EXPORT_RESOURCE_GROUP; + + /* + * The name of the resource group to be exported + */ + private String resourceGroupName; + + /* + * The name pattern of the Terraform resources + */ + private String namePattern; + + /** + * Creates an instance of ExportResourceGroup class. + */ + public ExportResourceGroup() { + } + + /** + * Get the type property: The parameter type. + * + * @return the type value. + */ + @Override + public Type type() { + return this.type; + } + + /** + * Get the resourceGroupName property: The name of the resource group to be exported. + * + * @return the resourceGroupName value. + */ + public String resourceGroupName() { + return this.resourceGroupName; + } + + /** + * Set the resourceGroupName property: The name of the resource group to be exported. + * + * @param resourceGroupName the resourceGroupName value to set. + * @return the ExportResourceGroup object itself. + */ + public ExportResourceGroup withResourceGroupName(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + /** + * Get the namePattern property: The name pattern of the Terraform resources. + * + * @return the namePattern value. + */ + public String namePattern() { + return this.namePattern; + } + + /** + * Set the namePattern property: The name pattern of the Terraform resources. + * + * @param namePattern the namePattern value to set. + * @return the ExportResourceGroup object itself. + */ + public ExportResourceGroup withNamePattern(String namePattern) { + this.namePattern = namePattern; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportResourceGroup withTargetProvider(TargetProvider targetProvider) { + super.withTargetProvider(targetProvider); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportResourceGroup withFullProperties(Boolean fullProperties) { + super.withFullProperties(fullProperties); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ExportResourceGroup withMaskSensitive(Boolean maskSensitive) { + super.withMaskSensitive(maskSensitive); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (resourceGroupName() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property resourceGroupName in model ExportResourceGroup")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ExportResourceGroup.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetProvider", targetProvider() == null ? null : targetProvider().toString()); + jsonWriter.writeBooleanField("fullProperties", fullProperties()); + jsonWriter.writeBooleanField("maskSensitive", maskSensitive()); + jsonWriter.writeStringField("resourceGroupName", this.resourceGroupName); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("namePattern", this.namePattern); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ExportResourceGroup from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ExportResourceGroup if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ExportResourceGroup. + */ + public static ExportResourceGroup fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ExportResourceGroup deserializedExportResourceGroup = new ExportResourceGroup(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetProvider".equals(fieldName)) { + deserializedExportResourceGroup.withTargetProvider(TargetProvider.fromString(reader.getString())); + } else if ("fullProperties".equals(fieldName)) { + deserializedExportResourceGroup.withFullProperties(reader.getNullable(JsonReader::getBoolean)); + } else if ("maskSensitive".equals(fieldName)) { + deserializedExportResourceGroup.withMaskSensitive(reader.getNullable(JsonReader::getBoolean)); + } else if ("resourceGroupName".equals(fieldName)) { + deserializedExportResourceGroup.resourceGroupName = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedExportResourceGroup.type = Type.fromString(reader.getString()); + } else if ("namePattern".equals(fieldName)) { + deserializedExportResourceGroup.namePattern = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedExportResourceGroup; + }); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operation.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operation.java new file mode 100644 index 0000000000000..f81cbe59a8eac --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operation.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.resourcemanager.terraform.fluent.models.OperationInner; + +/** + * An immutable client-side representation of Operation. + */ +public interface Operation { + /** + * Gets the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". + * + * @return the name value. + */ + String name(); + + /** + * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane + * operations and "false" for Azure Resource Manager/control-plane operations. + * + * @return the isDataAction value. + */ + Boolean isDataAction(); + + /** + * Gets the display property: Localized display information for this particular operation. + * + * @return the display value. + */ + OperationDisplay display(); + + /** + * Gets the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and + * audit logs UX. Default value is "user,system". + * + * @return the origin value. + */ + Origin origin(); + + /** + * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. + * + * @return the actionType value. + */ + ActionType actionType(); + + /** + * Gets the inner com.azure.resourcemanager.terraform.fluent.models.OperationInner object. + * + * @return the inner object. + */ + OperationInner innerModel(); +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/OperationDisplay.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/OperationDisplay.java new file mode 100644 index 0000000000000..6c10fd5cc2622 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/OperationDisplay.java @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Localized display information for and operation. + */ +@Immutable +public final class OperationDisplay implements JsonSerializable { + /* + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or + * "Microsoft Compute". + */ + private String provider; + + /* + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or + * "Job Schedule Collections". + */ + private String resource; + + /* + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. + * "Create or Update Virtual Machine", "Restart Virtual Machine". + */ + private String operation; + + /* + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + */ + private String description; + + /** + * Creates an instance of OperationDisplay class. + */ + private OperationDisplay() { + } + + /** + * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring + * Insights" or "Microsoft Compute". + * + * @return the provider value. + */ + public String provider() { + return this.provider; + } + + /** + * Get the resource property: The localized friendly name of the resource type related to this operation. E.g. + * "Virtual Machines" or "Job Schedule Collections". + * + * @return the resource value. + */ + public String resource() { + return this.resource; + } + + /** + * Get the operation property: The concise, localized friendly name for the operation; suitable for dropdowns. E.g. + * "Create or Update Virtual Machine", "Restart Virtual Machine". + * + * @return the operation value. + */ + public String operation() { + return this.operation; + } + + /** + * Get the description property: The short, localized friendly description of the operation; suitable for tool tips + * and detailed views. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationDisplay from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationDisplay if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationDisplay. + */ + public static OperationDisplay fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationDisplay deserializedOperationDisplay = new OperationDisplay(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provider".equals(fieldName)) { + deserializedOperationDisplay.provider = reader.getString(); + } else if ("resource".equals(fieldName)) { + deserializedOperationDisplay.resource = reader.getString(); + } else if ("operation".equals(fieldName)) { + deserializedOperationDisplay.operation = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedOperationDisplay.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationDisplay; + }); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operations.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operations.java new file mode 100644 index 0000000000000..e6a69cdc33370 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Operations.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; + +/** + * Resource collection API of Operations. + */ +public interface Operations { + /** + * List the operations for the provider. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(Context context); +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Origin.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Origin.java new file mode 100644 index 0000000000000..50ee1e067b468 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Origin.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value + * is "user,system". + */ +public final class Origin extends ExpandableStringEnum { + /** + * Indicates the operation is initiated by a user. + */ + public static final Origin USER = fromString("user"); + + /** + * Indicates the operation is initiated by a system. + */ + public static final Origin SYSTEM = fromString("system"); + + /** + * Indicates the operation is initiated by a user or system. + */ + public static final Origin USER_SYSTEM = fromString("user,system"); + + /** + * Creates a new instance of Origin value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Origin() { + } + + /** + * Creates or finds a Origin from its string representation. + * + * @param name a name to look for. + * @return the corresponding Origin. + */ + public static Origin fromString(String name) { + return fromString(name, Origin.class); + } + + /** + * Gets known Origin values. + * + * @return known Origin values. + */ + public static Collection values() { + return values(Origin.class); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/TargetProvider.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/TargetProvider.java new file mode 100644 index 0000000000000..bd29501a6b903 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/TargetProvider.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The target Azure Terraform Provider. + */ +public final class TargetProvider extends ExpandableStringEnum { + /** + * https://registry.terraform.io/providers/hashicorp/azurerm/latest. + */ + public static final TargetProvider AZURERM = fromString("azurerm"); + + /** + * https://registry.terraform.io/providers/Azure/azapi/latest. + */ + public static final TargetProvider AZAPI = fromString("azapi"); + + /** + * Creates a new instance of TargetProvider value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public TargetProvider() { + } + + /** + * Creates or finds a TargetProvider from its string representation. + * + * @param name a name to look for. + * @return the corresponding TargetProvider. + */ + public static TargetProvider fromString(String name) { + return fromString(name, TargetProvider.class); + } + + /** + * Gets known TargetProvider values. + * + * @return known TargetProvider values. + */ + public static Collection values() { + return values(TargetProvider.class); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Terraforms.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Terraforms.java new file mode 100644 index 0000000000000..2a75650620391 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Terraforms.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.util.Context; + +/** + * Resource collection API of Terraforms. + */ +public interface Terraforms { + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void exportTerraform(BaseExportModel body); + + /** + * Exports the Terraform configuration of the specified resource(s). + * + * @param body The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void exportTerraform(BaseExportModel body, Context context); +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Type.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Type.java new file mode 100644 index 0000000000000..06f4cc92e0d4f --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/Type.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The parameter type. + */ +public final class Type extends ExpandableStringEnum { + /** + * Static value ExportResource for Type. + */ + public static final Type EXPORT_RESOURCE = fromString("ExportResource"); + + /** + * Static value ExportResourceGroup for Type. + */ + public static final Type EXPORT_RESOURCE_GROUP = fromString("ExportResourceGroup"); + + /** + * Static value ExportQuery for Type. + */ + public static final Type EXPORT_QUERY = fromString("ExportQuery"); + + /** + * Creates a new instance of Type value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Type() { + } + + /** + * Creates or finds a Type from its string representation. + * + * @param name a name to look for. + * @return the corresponding Type. + */ + public static Type fromString(String name) { + return fromString(name, Type.class); + } + + /** + * Gets known Type values. + * + * @return known Type values. + */ + public static Collection values() { + return values(Type.class); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/package-info.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/package-info.java new file mode 100644 index 0000000000000..edc5fe99e75eb --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/models/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the data models for AzureTerraform. + * The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform + * resources. + */ +package com.azure.resourcemanager.terraform.models; diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/package-info.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/package-info.java new file mode 100644 index 0000000000000..8badfdcc31fea --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/com/azure/resourcemanager/terraform/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the classes for AzureTerraform. + * The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform + * resources. + */ +package com.azure.resourcemanager.terraform; diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/java/module-info.java b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/module-info.java new file mode 100644 index 0000000000000..70aa1de4d976f --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/java/module-info.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +module com.azure.resourcemanager.terraform { + requires transitive com.azure.core.management; + + exports com.azure.resourcemanager.terraform; + exports com.azure.resourcemanager.terraform.fluent; + exports com.azure.resourcemanager.terraform.fluent.models; + exports com.azure.resourcemanager.terraform.models; + + opens com.azure.resourcemanager.terraform.fluent.models to com.azure.core; + opens com.azure.resourcemanager.terraform.models to com.azure.core; + opens com.azure.resourcemanager.terraform.implementation.models to com.azure.core; +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/proxy-config.json b/sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/proxy-config.json new file mode 100644 index 0000000000000..0790a839ed52f --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/proxy-config.json @@ -0,0 +1 @@ +[["com.azure.resourcemanager.terraform.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.terraform.implementation.TerraformsClientImpl$TerraformsService"]] \ No newline at end of file diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/reflect-config.json b/sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/reflect-config.json new file mode 100644 index 0000000000000..0637a088a01e8 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-terraform/reflect-config.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/OperationsListSamples.java b/sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/OperationsListSamples.java new file mode 100644 index 0000000000000..f307f81fda0ef --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/OperationsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +/** + * Samples for Operations List. + */ +public final class OperationsListSamples { + /* + * x-ms-original-file: 2023-07-01-preview/ListOperations.json + */ + /** + * Sample code: Get a list of operations for a resource provider. + * + * @param manager Entry point to AzureTerraformManager. + */ + public static void + getAListOfOperationsForAResourceProvider(com.azure.resourcemanager.terraform.AzureTerraformManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/TerraformExportTerraformSamples.java b/sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/TerraformExportTerraformSamples.java new file mode 100644 index 0000000000000..27bdf3bc0061e --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/samples/java/com/azure/resourcemanager/terraform/generated/TerraformExportTerraformSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.resourcemanager.terraform.models.ExportResourceGroup; + +/** + * Samples for Terraform ExportTerraform. + */ +public final class TerraformExportTerraformSamples { + /* + * x-ms-original-file: 2023-07-01-preview/ExportTerraform.json + */ + /** + * Sample code: ExportTerraform. + * + * @param manager Entry point to AzureTerraformManager. + */ + public static void exportTerraform(com.azure.resourcemanager.terraform.AzureTerraformManager manager) { + manager.terraforms() + .exportTerraform(new ExportResourceGroup().withResourceGroupName("rg1"), com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/BaseExportModelTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/BaseExportModelTests.java new file mode 100644 index 0000000000000..5cb58d8583b17 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/BaseExportModelTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.terraform.models.BaseExportModel; +import com.azure.resourcemanager.terraform.models.TargetProvider; +import org.junit.jupiter.api.Assertions; + +public final class BaseExportModelTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BaseExportModel model = BinaryData.fromString( + "{\"type\":\"BaseExportModel\",\"targetProvider\":\"azapi\",\"fullProperties\":false,\"maskSensitive\":false}") + .toObject(BaseExportModel.class); + Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider()); + Assertions.assertEquals(false, model.fullProperties()); + Assertions.assertEquals(false, model.maskSensitive()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + BaseExportModel model = new BaseExportModel().withTargetProvider(TargetProvider.AZAPI) + .withFullProperties(false) + .withMaskSensitive(false); + model = BinaryData.fromObject(model).toObject(BaseExportModel.class); + Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider()); + Assertions.assertEquals(false, model.fullProperties()); + Assertions.assertEquals(false, model.maskSensitive()); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportQueryTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportQueryTests.java new file mode 100644 index 0000000000000..2c3ec3df31772 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportQueryTests.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.terraform.models.ExportQuery; +import com.azure.resourcemanager.terraform.models.TargetProvider; +import org.junit.jupiter.api.Assertions; + +public final class ExportQueryTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ExportQuery model = BinaryData.fromString( + "{\"type\":\"ExportQuery\",\"query\":\"vg\",\"namePattern\":\"zsymglzufcyzkohd\",\"recursive\":true,\"targetProvider\":\"azurerm\",\"fullProperties\":false,\"maskSensitive\":true}") + .toObject(ExportQuery.class); + Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider()); + Assertions.assertEquals(false, model.fullProperties()); + Assertions.assertEquals(true, model.maskSensitive()); + Assertions.assertEquals("vg", model.query()); + Assertions.assertEquals("zsymglzufcyzkohd", model.namePattern()); + Assertions.assertEquals(true, model.recursive()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ExportQuery model = new ExportQuery().withTargetProvider(TargetProvider.AZURERM) + .withFullProperties(false) + .withMaskSensitive(true) + .withQuery("vg") + .withNamePattern("zsymglzufcyzkohd") + .withRecursive(true); + model = BinaryData.fromObject(model).toObject(ExportQuery.class); + Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider()); + Assertions.assertEquals(false, model.fullProperties()); + Assertions.assertEquals(true, model.maskSensitive()); + Assertions.assertEquals("vg", model.query()); + Assertions.assertEquals("zsymglzufcyzkohd", model.namePattern()); + Assertions.assertEquals(true, model.recursive()); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java new file mode 100644 index 0000000000000..f06f727717e8e --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceGroupTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.terraform.models.ExportResourceGroup; +import com.azure.resourcemanager.terraform.models.TargetProvider; +import org.junit.jupiter.api.Assertions; + +public final class ExportResourceGroupTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ExportResourceGroup model = BinaryData.fromString( + "{\"type\":\"ExportResourceGroup\",\"resourceGroupName\":\"czbysc\",\"namePattern\":\"q\",\"targetProvider\":\"azurerm\",\"fullProperties\":false,\"maskSensitive\":true}") + .toObject(ExportResourceGroup.class); + Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider()); + Assertions.assertEquals(false, model.fullProperties()); + Assertions.assertEquals(true, model.maskSensitive()); + Assertions.assertEquals("czbysc", model.resourceGroupName()); + Assertions.assertEquals("q", model.namePattern()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ExportResourceGroup model = new ExportResourceGroup().withTargetProvider(TargetProvider.AZURERM) + .withFullProperties(false) + .withMaskSensitive(true) + .withResourceGroupName("czbysc") + .withNamePattern("q"); + model = BinaryData.fromObject(model).toObject(ExportResourceGroup.class); + Assertions.assertEquals(TargetProvider.AZURERM, model.targetProvider()); + Assertions.assertEquals(false, model.fullProperties()); + Assertions.assertEquals(true, model.maskSensitive()); + Assertions.assertEquals("czbysc", model.resourceGroupName()); + Assertions.assertEquals("q", model.namePattern()); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java new file mode 100644 index 0000000000000..92387330be9a3 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/ExportResourceTests.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.terraform.models.ExportResource; +import com.azure.resourcemanager.terraform.models.TargetProvider; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ExportResourceTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ExportResource model = BinaryData.fromString( + "{\"type\":\"ExportResource\",\"resourceIds\":[\"bj\"],\"resourceName\":\"a\",\"resourceType\":\"th\",\"namePattern\":\"hab\",\"targetProvider\":\"azapi\",\"fullProperties\":true,\"maskSensitive\":false}") + .toObject(ExportResource.class); + Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider()); + Assertions.assertEquals(true, model.fullProperties()); + Assertions.assertEquals(false, model.maskSensitive()); + Assertions.assertEquals("bj", model.resourceIds().get(0)); + Assertions.assertEquals("a", model.resourceName()); + Assertions.assertEquals("th", model.resourceType()); + Assertions.assertEquals("hab", model.namePattern()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ExportResource model = new ExportResource().withTargetProvider(TargetProvider.AZAPI) + .withFullProperties(true) + .withMaskSensitive(false) + .withResourceIds(Arrays.asList("bj")) + .withResourceName("a") + .withResourceType("th") + .withNamePattern("hab"); + model = BinaryData.fromObject(model).toObject(ExportResource.class); + Assertions.assertEquals(TargetProvider.AZAPI, model.targetProvider()); + Assertions.assertEquals(true, model.fullProperties()); + Assertions.assertEquals(false, model.maskSensitive()); + Assertions.assertEquals("bj", model.resourceIds().get(0)); + Assertions.assertEquals("a", model.resourceName()); + Assertions.assertEquals("th", model.resourceType()); + Assertions.assertEquals("hab", model.namePattern()); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationDisplayTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationDisplayTests.java new file mode 100644 index 0000000000000..993962fc7dfa2 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationDisplayTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.terraform.models.OperationDisplay; + +public final class OperationDisplayTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + OperationDisplay model = BinaryData.fromString( + "{\"provider\":\"cdm\",\"resource\":\"rcryuanzwuxzdxta\",\"operation\":\"lhmwhfpmrqobm\",\"description\":\"kknryrtihf\"}") + .toObject(OperationDisplay.class); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java new file mode 100644 index 0000000000000..5f2b663705a4b --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationInnerTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.terraform.fluent.models.OperationInner; +import com.azure.resourcemanager.terraform.models.ActionType; +import org.junit.jupiter.api.Assertions; + +public final class OperationInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + OperationInner model = BinaryData.fromString( + "{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") + .toObject(OperationInner.class); + Assertions.assertEquals(ActionType.INTERNAL, model.actionType()); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java new file mode 100644 index 0000000000000..7bd4fbfcf9aae --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationListResultTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.terraform.implementation.models.OperationListResult; +import com.azure.resourcemanager.terraform.models.ActionType; +import org.junit.jupiter.api.Assertions; + +public final class OperationListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + OperationListResult model = BinaryData.fromString( + "{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}") + .toObject(OperationListResult.class); + Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType()); + Assertions.assertEquals("kfo", model.nextLink()); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java new file mode 100644 index 0000000000000..c6f79a9a05723 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/src/test/java/com/azure/resourcemanager/terraform/generated/OperationsListMockTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.terraform.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.terraform.AzureTerraformManager; +import com.azure.resourcemanager.terraform.models.ActionType; +import com.azure.resourcemanager.terraform.models.Operation; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class OperationsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"name\":\"iwbybrkxvdumjg\",\"isDataAction\":false,\"display\":{\"provider\":\"ukxgaud\",\"resource\":\"snhsjcnyejhkryh\",\"operation\":\"apcz\",\"description\":\"okjye\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + AzureTerraformManager manager = AzureTerraformManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); + + Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType()); + } +} diff --git a/sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml b/sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml new file mode 100644 index 0000000000000..3d2afc9096905 --- /dev/null +++ b/sdk/terraform/azure-resourcemanager-terraform/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/terraform/Microsoft.AzureTerraform.Management +commit: d477c7caa09bf82e22c419be0a99d170552b5892 +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/terraform/ci.yml b/sdk/terraform/ci.yml new file mode 100644 index 0000000000000..fcb7855a2dc87 --- /dev/null +++ b/sdk/terraform/ci.yml @@ -0,0 +1,46 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: + branches: + include: + - main + - hotfix/* + - release/* + paths: + include: + - sdk/terraform/ci.yml + - sdk/terraform/azure-resourcemanager-terraform/ + exclude: + - sdk/terraform/pom.xml + - sdk/terraform/azure-resourcemanager-terraform/pom.xml + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/terraform/ci.yml + - sdk/terraform/azure-resourcemanager-terraform/ + exclude: + - sdk/terraform/pom.xml + - sdk/terraform/azure-resourcemanager-terraform/pom.xml + +parameters: + - name: release_azureresourcemanagerterraform + displayName: azure-resourcemanager-terraform + type: boolean + default: false + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: terraform + Artifacts: + - name: azure-resourcemanager-terraform + groupId: com.azure.resourcemanager + safeName: azureresourcemanagerterraform + releaseInBatch: ${{ parameters.release_azureresourcemanagerterraform }} diff --git a/sdk/terraform/pom.xml b/sdk/terraform/pom.xml new file mode 100644 index 0000000000000..87c4380d39f7c --- /dev/null +++ b/sdk/terraform/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + com.azure + azure-terraform-service + pom + 1.0.0 + + + azure-resourcemanager-terraform + + From 15aefb2d259cb57b2623020bc2ad5e484bda7344 Mon Sep 17 00:00:00 2001 From: "Hong Li(MSFT)" <74638143+v-hongli1@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:20:58 +0800 Subject: [PATCH 09/44] Fix for introduce WithCapacityReservation DefinitionStage into the VirtualMachine model (#42914) * Add support for capacity reservation. --- .../CHANGELOG.md | 6 +- .../implementation/VirtualMachineImpl.java | 23 +++++ .../compute/models/VirtualMachine.java | 35 ++++++- .../VirtualMachineOperationsTests.java | 94 +++++++++++++++++++ 4 files changed, 151 insertions(+), 7 deletions(-) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md index 5bb186b5b4b55..faa9996bc4114 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md @@ -4,11 +4,7 @@ ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Supported `capacityReservationGroupId` and `withCapacityReservationGroup` methods for `VirtualMachine`. ## 2.44.0 (2024-10-25) diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImpl.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImpl.java index b233fc4178e31..c8c9d3270a8df 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImpl.java @@ -27,6 +27,7 @@ import com.azure.resourcemanager.compute.models.BillingProfile; import com.azure.resourcemanager.compute.models.BootDiagnostics; import com.azure.resourcemanager.compute.models.CachingTypes; +import com.azure.resourcemanager.compute.models.CapacityReservationProfile; import com.azure.resourcemanager.compute.models.DataDisk; import com.azure.resourcemanager.compute.models.DeleteOptions; import com.azure.resourcemanager.compute.models.DiagnosticsProfile; @@ -1993,6 +1994,15 @@ public String userData() { return this.innerModel().userData(); } + @Override + public String capacityReservationGroupId() { + if (this.innerModel().capacityReservation() != null + && this.innerModel().capacityReservation().capacityReservationGroup() != null) { + return this.innerModel().capacityReservation().capacityReservationGroup().id(); + } + return null; + } + // CreateUpdateTaskGroup.ResourceCreator.beforeGroupCreateOrUpdate implementation @Override public void beforeGroupCreateOrUpdate() { @@ -2728,6 +2738,8 @@ private void copyInnerToUpdateParameter(VirtualMachineUpdateInner updateParamete updateParameter.withPriority(this.innerModel().priority()); updateParameter.withEvictionPolicy(this.innerModel().evictionPolicy()); updateParameter.withUserData(this.innerModel().userData()); + updateParameter.withCapacityReservation(this.innerModel().capacityReservation()); + updateParameter.withApplicationProfile(this.innerModel().applicationProfile()); } RoleAssignmentHelper.IdProvider idProvider() { @@ -2866,6 +2878,17 @@ public VirtualMachineImpl withoutEncryptionAtHost() { return this; } + @Override + public VirtualMachineImpl withCapacityReservationGroup(String capacityReservationGroupId) { + if (this.innerModel().capacityReservation() == null) { + this.innerModel().withCapacityReservation(new CapacityReservationProfile()); + } + this.innerModel() + .capacityReservation() + .withCapacityReservationGroup(new SubResource().withId(capacityReservationGroupId)); + return this; + } + /** Class to manage Data disk collection. */ private class ManagedDataDiskCollection { private final Map newDisksToAttach = new HashMap<>(); diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java index fb1f87fe67b9e..eb7d6210c3cef 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java @@ -455,6 +455,13 @@ Mono runShellScriptAsync(List scriptLines, */ String userData(); + /** + * Gets resource id of capacity reservation group for the virtual machine. + * + * @return the resource id of capacity reservation group for the virtual machine. + */ + String capacityReservationGroupId(); + // Setters // @@ -1952,6 +1959,17 @@ interface WithUserData { WithCreate withUserData(String base64EncodedUserData); } + /** The stage of a virtual machine definition allowing to specify capacity reservation configurations. */ + interface WithCapacityReservation { + /** + * Specifies resource id of capacity reservation group for the virtual machine. + * + * @param capacityReservationGroupId the resource id of capacity reservation group + * @return the next stage of the definition + */ + WithCreate withCapacityReservationGroup(String capacityReservationGroupId); + } + /** * The stage of the definition which contains all the minimum required inputs for the resource to be created, * but also allows for any other optional settings to be specified. @@ -1965,7 +1983,8 @@ interface WithCreate extends Creatable, Resource.DefinitionWithT DefinitionStages.WithUserAssignedManagedServiceIdentity, DefinitionStages.WithLicenseType, DefinitionStages.WithAdditionalCapacities, DefinitionStages.WithNetworkInterfaceDeleteOptions, DefinitionStages.WithEphemeralOSDisk, DefinitionStages.WithScaleSet, DefinitionStages.WithSecurityTypes, - DefinitionStages.WithSecurityProfile, DefinitionStages.WithUserData { + DefinitionStages.WithSecurityProfile, DefinitionStages.WithUserData, + DefinitionStages.WithCapacityReservation { /** * Begins creating the virtual machine resource. @@ -2617,6 +2636,17 @@ interface WithUserData { */ Update withUserData(String base64EncodedUserData); } + + /** The stage of the virtual machine update allowing to capacity reservation configurations. */ + interface WithCapacityReservation { + /** + * Specifies resource id of capacity reservation group for the virtual machine. + * + * @param capacityReservationGroupId the resource id of capacity reservation group + * @return the next stage of the update + */ + Update withCapacityReservationGroup(String capacityReservationGroupId); + } } /** The template for an update operation, containing all the settings that can be modified. */ @@ -2626,7 +2656,8 @@ interface Update extends Appliable, Resource.UpdateWithTags Date: Tue, 19 Nov 2024 20:33:10 -0800 Subject: [PATCH 10/44] [Automation] Generate Fluent Lite from Swagger appconfiguration#package-2024-05-01 (#43023) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 162 ++++- .../README.md | 19 +- .../SAMPLE.md | 607 +++++++++++------- .../pom.xml | 8 +- .../AppConfigurationManager.java | 58 +- .../AppConfigurationManagementClient.java | 33 +- .../fluent/ConfigurationStoresClient.java | 84 +-- .../fluent/KeyValuesClient.java | 62 +- .../fluent/OperationsClient.java | 28 +- .../PrivateEndpointConnectionsClient.java | 32 +- .../fluent/PrivateLinkResourcesClient.java | 16 +- .../fluent/ReplicasClient.java | 32 +- .../fluent/SnapshotsClient.java | 125 ++++ .../fluent/models/ApiKeyInner.java | 83 ++- .../models/ConfigurationStoreInner.java | 200 +++++- .../models/ConfigurationStoreProperties.java | 163 ++++- ...rationStorePropertiesUpdateParameters.java | 125 +++- .../DeletedConfigurationStoreInner.java | 86 ++- .../DeletedConfigurationStoreProperties.java | 90 ++- .../fluent/models/KeyValueInner.java | 148 ++++- .../fluent/models/KeyValueProperties.java | 125 ++-- .../models/NameAvailabilityStatusInner.java | 66 +- .../models/OperationDefinitionInner.java | 91 ++- .../PrivateEndpointConnectionInner.java | 118 +++- .../PrivateEndpointConnectionProperties.java | 83 ++- .../models/PrivateLinkResourceInner.java | 79 ++- .../models/PrivateLinkResourceProperties.java | 69 +- .../fluent/models/ReplicaInner.java | 122 +++- .../fluent/models/ReplicaProperties.java | 62 +- .../fluent/models/SnapshotInner.java | 309 +++++++++ .../fluent/models/SnapshotProperties.java | 326 ++++++++++ .../fluent/models/package-info.java | 5 +- .../appconfiguration/fluent/package-info.java | 5 +- ...pConfigurationManagementClientBuilder.java | 20 +- .../AppConfigurationManagementClientImpl.java | 107 ++- .../ConfigurationStoreImpl.java | 19 +- .../ConfigurationStoresClientImpl.java | 358 +++++------ .../ConfigurationStoresImpl.java | 32 +- .../implementation/KeyValueImpl.java | 6 +- .../implementation/KeyValuesClientImpl.java | 171 +++-- .../implementation/KeyValuesImpl.java | 24 +- .../implementation/OperationsClientImpl.java | 122 ++-- .../implementation/OperationsImpl.java | 4 +- .../PrivateEndpointConnectionImpl.java | 7 +- .../PrivateEndpointConnectionsClientImpl.java | 108 ++-- .../PrivateEndpointConnectionsImpl.java | 32 +- .../PrivateLinkResourcesClientImpl.java | 76 +-- .../PrivateLinkResourcesImpl.java | 4 +- .../implementation/ReplicasClientImpl.java | 124 ++-- .../implementation/ReplicasImpl.java | 28 +- .../{Utils.java => ResourceManagerUtils.java} | 24 +- .../implementation/SnapshotImpl.java | 171 +++++ .../implementation/SnapshotsClientImpl.java | 500 +++++++++++++++ .../implementation/SnapshotsImpl.java | 99 +++ .../implementation/package-info.java | 5 +- .../models/ActionsRequired.java | 20 +- .../appconfiguration/models/ApiKey.java | 18 +- .../models/ApiKeyListResult.java | 68 +- .../models/AuthenticationMode.java | 52 ++ .../CheckNameAvailabilityParameters.java | 80 ++- .../models/CompositionType.java | 53 ++ .../models/ConfigurationResourceType.java | 16 +- .../models/ConfigurationStore.java | 263 +++++--- .../models/ConfigurationStoreListResult.java | 69 +- .../ConfigurationStoreUpdateParameters.java | 127 +++- .../models/ConfigurationStores.java | 70 +- .../models/ConnectionStatus.java | 28 +- .../appconfiguration/models/CreateMode.java | 27 +- .../models/DataPlaneProxyProperties.java | 133 ++++ .../models/DeletedConfigurationStore.java | 24 +- .../DeletedConfigurationStoreListResult.java | 71 +- .../models/EncryptionProperties.java | 59 +- .../appconfiguration/models/IdentityType.java | 24 +- .../appconfiguration/models/KeyValue.java | 142 ++-- .../models/KeyValueFilter.java | 129 ++++ .../appconfiguration/models/KeyValues.java | 58 +- .../models/KeyVaultProperties.java | 67 +- .../models/LogSpecification.java | 75 ++- .../models/MetricDimension.java | 75 ++- .../models/MetricSpecification.java | 116 +++- .../models/NameAvailabilityStatus.java | 12 +- .../models/OperationDefinition.java | 16 +- .../models/OperationDefinitionDisplay.java | 80 ++- .../models/OperationDefinitionListResult.java | 70 +- .../models/OperationProperties.java | 59 +- .../appconfiguration/models/Operations.java | 28 +- .../models/PrivateEndpoint.java | 59 +- .../models/PrivateEndpointConnection.java | 84 ++- .../PrivateEndpointConnectionListResult.java | 71 +- .../PrivateEndpointConnectionReference.java | 84 ++- .../models/PrivateEndpointConnections.java | 38 +- .../models/PrivateLinkDelegation.java | 52 ++ .../models/PrivateLinkResource.java | 18 +- .../models/PrivateLinkResourceListResult.java | 70 +- .../models/PrivateLinkResources.java | 16 +- .../PrivateLinkServiceConnectionState.java | 75 ++- .../models/ProvisioningState.java | 36 +- .../models/PublicNetworkAccess.java | 20 +- .../models/RegenerateKeyParameters.java | 59 +- .../appconfiguration/models/Replica.java | 58 +- .../models/ReplicaListResult.java | 68 +- .../models/ReplicaProvisioningState.java | 32 +- .../appconfiguration/models/Replicas.java | 30 +- .../models/ResourceIdentity.java | 85 ++- .../models/ServiceSpecification.java | 73 ++- .../appconfiguration/models/Sku.java | 63 +- .../appconfiguration/models/Snapshot.java | 259 ++++++++ .../models/SnapshotStatus.java | 61 ++ .../appconfiguration/models/Snapshots.java | 80 +++ .../appconfiguration/models/UserIdentity.java | 61 +- .../appconfiguration/models/package-info.java | 5 +- .../appconfiguration/package-info.java | 5 +- .../src/main/java/module-info.java | 4 +- .../proxy-config.json | 1 + .../reflect-config.json | 1 + .../ConfigurationStoresCreateSamples.java | 72 ++- .../ConfigurationStoresDeleteSamples.java | 14 +- ...rationStoresGetByResourceGroupSamples.java | 17 +- .../ConfigurationStoresGetDeletedSamples.java | 14 +- ...ationStoresListByResourceGroupSamples.java | 10 +- ...ConfigurationStoresListDeletedSamples.java | 14 +- .../ConfigurationStoresListKeysSamples.java | 14 +- .../ConfigurationStoresListSamples.java | 14 +- ...onfigurationStoresPurgeDeletedSamples.java | 14 +- ...nfigurationStoresRegenerateKeySamples.java | 24 +- .../ConfigurationStoresUpdateSamples.java | 65 +- .../KeyValuesCreateOrUpdateSamples.java | 18 +- .../generated/KeyValuesDeleteSamples.java | 10 +- .../generated/KeyValuesGetSamples.java | 13 +- ...perationsCheckNameAvailabilitySamples.java | 28 +- .../generated/OperationsListSamples.java | 10 +- ...sRegionalCheckNameAvailabilitySamples.java | 34 +- ...pointConnectionsCreateOrUpdateSamples.java | 28 +- ...ivateEndpointConnectionsDeleteSamples.java | 17 +- .../PrivateEndpointConnectionsGetSamples.java | 13 +- ...ctionsListByConfigurationStoreSamples.java | 17 +- .../PrivateLinkResourcesGetSamples.java | 17 +- ...ourcesListByConfigurationStoreSamples.java | 17 +- .../generated/ReplicasCreateSamples.java | 13 +- .../generated/ReplicasDeleteSamples.java | 10 +- .../generated/ReplicasGetSamples.java | 13 +- ...plicasListByConfigurationStoreSamples.java | 17 +- .../generated/SnapshotsCreateSamples.java | 32 + .../generated/SnapshotsGetSamples.java | 25 + .../generated/ApiKeyInnerTests.java | 2 +- .../generated/ApiKeyListResultTests.java | 11 +- .../CheckNameAvailabilityParametersTests.java | 8 +- .../ConfigurationStoreInnerTests.java | 73 --- .../ConfigurationStoreListResultTests.java | 97 --- ...nfigurationStoreUpdateParametersTests.java | 63 -- .../ConfigurationStoresCreateMockTests.java | 96 --- .../ConfigurationStoresDeleteMockTests.java | 28 +- ...tByResourceGroupWithResponseMockTests.java | 69 -- ...StoresGetDeletedWithResponseMockTests.java | 30 +- ...ionStoresListByResourceGroupMockTests.java | 70 -- ...nfigurationStoresListDeletedMockTests.java | 28 +- .../ConfigurationStoresListKeysMockTests.java | 30 +- .../ConfigurationStoresListMockTests.java | 69 -- ...figurationStoresPurgeDeletedMockTests.java | 28 +- ...resRegenerateKeyWithResponseMockTests.java | 30 +- .../DataPlaneProxyPropertiesTests.java | 32 + .../DeletedConfigurationStoreInnerTests.java | 2 +- ...etedConfigurationStoreListResultTests.java | 12 +- ...etedConfigurationStorePropertiesTests.java | 2 +- .../generated/KeyValuesDeleteMockTests.java | 28 +- .../generated/LogSpecificationTests.java | 16 +- .../generated/MetricDimensionTests.java | 19 +- .../generated/MetricSpecificationTests.java | 59 +- .../NameAvailabilityStatusInnerTests.java | 2 +- .../OperationDefinitionDisplayTests.java | 22 +- .../OperationDefinitionInnerTests.java | 98 ++- .../OperationDefinitionListResultTests.java | 79 ++- .../generated/OperationPropertiesTests.java | 124 +++- ...NameAvailabilityWithResponseMockTests.java | 30 +- .../generated/OperationsListMockTests.java | 83 ++- ...NameAvailabilityWithResponseMockTests.java | 32 +- .../PrivateEndpointConnectionInnerTests.java | 20 +- ...vateEndpointConnectionListResultTests.java | 38 +- ...vateEndpointConnectionPropertiesTests.java | 14 +- ...ivateEndpointConnectionReferenceTests.java | 19 +- ...intConnectionsCreateOrUpdateMockTests.java | 40 +- ...ateEndpointConnectionsDeleteMockTests.java | 28 +- ...ntConnectionsGetWithResponseMockTests.java | 33 +- ...ionsListByConfigurationStoreMockTests.java | 35 +- .../generated/PrivateEndpointTests.java | 8 +- .../PrivateLinkResourceInnerTests.java | 2 +- .../PrivateLinkResourceListResultTests.java | 8 +- .../PrivateLinkResourcePropertiesTests.java | 4 +- ...LinkResourcesGetWithResponseMockTests.java | 30 +- ...rcesListByConfigurationStoreMockTests.java | 30 +- ...rivateLinkServiceConnectionStateTests.java | 9 +- .../RegenerateKeyParametersTests.java | 8 +- .../generated/ReplicaInnerTests.java | 8 +- .../generated/ReplicaListResultTests.java | 16 +- .../generated/ReplicaPropertiesTests.java | 2 +- .../generated/ReplicasCreateMockTests.java | 35 +- .../generated/ReplicasDeleteMockTests.java | 28 +- .../ReplicasGetWithResponseMockTests.java | 31 +- ...icasListByConfigurationStoreMockTests.java | 31 +- .../generated/ResourceIdentityTests.java | 14 +- .../generated/ServiceSpecificationTests.java | 147 +++-- .../appconfiguration/generated/SkuTests.java | 8 +- .../generated/UserIdentityTests.java | 2 +- 204 files changed, 8434 insertions(+), 3551 deletions(-) create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/SnapshotsClient.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotInner.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotProperties.java rename sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/{Utils.java => ResourceManagerUtils.java} (88%) create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotImpl.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsClientImpl.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsImpl.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/AuthenticationMode.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CompositionType.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DataPlaneProxyProperties.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueFilter.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkDelegation.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshot.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/SnapshotStatus.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshots.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/proxy-config.json create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/reflect-config.json create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsCreateSamples.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsGetSamples.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreInnerTests.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreListResultTests.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreUpdateParametersTests.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateMockTests.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupMockTests.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListMockTests.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DataPlaneProxyPropertiesTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index a1ddf48c64601..27037fcc5ce16 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -327,7 +327,7 @@ com.azure.resourcemanager:azure-resourcemanager-automation;1.0.0-beta.3;1.0.0-be com.azure.resourcemanager:azure-resourcemanager-resourcemover;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-datafactory;1.0.0-beta.30;1.0.0-beta.31 com.azure.resourcemanager:azure-resourcemanager-advisor;1.0.0-beta.3;1.0.0-beta.4 -com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.0.0-beta.7;1.0.0-beta.8 +com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.0.0-beta.7;1.0.0 com.azure.resourcemanager:azure-resourcemanager-attestation;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-azurestack;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-azurestackhci;1.0.0-beta.5;1.0.0-beta.6 diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md index 1df8b85f1613c..a5bae941ceadf 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md @@ -1,14 +1,168 @@ # Release History -## 1.0.0-beta.8 (Unreleased) +## 1.0.0 (2024-11-20) + +- Azure Resource Manager AppConfiguration client library for Java. This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2024-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.Snapshot$DefinitionStages` was added + +* `models.AuthenticationMode` was added + +* `models.Snapshot$Definition` was added + +* `models.DataPlaneProxyProperties` was added + +* `models.Snapshots` was added + +* `models.PrivateLinkDelegation` was added + +* `models.KeyValueFilter` was added + +* `models.Snapshot` was added + +* `models.SnapshotStatus` was added + +* `models.CompositionType` was added + +#### `models.RegenerateKeyParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PrivateLinkServiceConnectionState` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ConfigurationStoreUpdateParameters` was modified + +* `dataPlaneProxy()` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `withDataPlaneProxy(models.DataPlaneProxyProperties)` was added + +#### `models.ApiKeyListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OperationDefinitionDisplay` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.PrivateLinkResourceListResult` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ServiceSpecification` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PrivateEndpoint` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ConfigurationStoreListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ResourceIdentity` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.OperationDefinitionListResult` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.MetricDimension` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ReplicaListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ConfigurationStore$Definition` was modified + +* `withDataPlaneProxy(models.DataPlaneProxyProperties)` was added + +#### `models.MetricSpecification` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.UserIdentity` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CheckNameAvailabilityParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ConfigurationStore$Update` was modified + +* `withDataPlaneProxy(models.DataPlaneProxyProperties)` was added + +#### `models.Sku` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.EncryptionProperties` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KeyVaultProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ConfigurationStore` was modified + +* `dataPlaneProxy()` was added + +#### `models.OperationProperties` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.PrivateEndpointConnectionReference` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PrivateEndpointConnectionListResult` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.LogSpecification` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `AppConfigurationManager` was modified + +* `snapshots()` was added -### Bugs Fixed +#### `models.DeletedConfigurationStoreListResult` was modified -### Other Changes +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added ## 1.0.0-beta.7 (2023-04-28) diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md index 1b36cf7e56b23..771ab49267b7e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md @@ -2,7 +2,7 @@ Azure Resource Manager AppConfiguration client library for Java. -This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2023-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2024-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-appconfiguration - 1.0.0-beta.7 + 1.0.0 ``` [//]: # ({x-version-update-end}) @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen ### Authentication -By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. +Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package. -- `AZURE_CLIENT_ID` for Azure client ID. -- `AZURE_TENANT_ID` for Azure tenant ID. -- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. +Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. - -With above configuration, `azure` client can be authenticated using the following code: +Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -94,12 +90,15 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS [docs]: https://azure.github.io/azure-sdk-for-java/ -[jdk]: https://docs.microsoft.com/java/azure/jdk/ +[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fappconfiguration%2Fazure-resourcemanager-appconfiguration%2FREADME.png) diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md index 02a9a5cc5eb82..598d916e82b5c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md @@ -45,30 +45,41 @@ - [Delete](#replicas_delete) - [Get](#replicas_get) - [ListByConfigurationStore](#replicas_listbyconfigurationstore) + +## Snapshots + +- [Create](#snapshots_create) +- [Get](#snapshots_get) ### ConfigurationStores_Create ```java +import com.azure.resourcemanager.appconfiguration.models.AuthenticationMode; +import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties; import com.azure.resourcemanager.appconfiguration.models.IdentityType; +import com.azure.resourcemanager.appconfiguration.models.PrivateLinkDelegation; import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; import com.azure.resourcemanager.appconfiguration.models.Sku; import com.azure.resourcemanager.appconfiguration.models.UserIdentity; import java.util.HashMap; import java.util.Map; -/** Samples for ConfigurationStores Create. */ +/** + * Samples for ConfigurationStores Create. + */ public final class ConfigurationStoresCreateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreate.json */ /** * Sample code: ConfigurationStores_Create. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresCreate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + public static void + configurationStoresCreate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() .define("contoso") .withRegion("westus") .withExistingResourceGroup("myResourceGroup") @@ -78,44 +89,65 @@ public final class ConfigurationStoresCreateSamples { } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateWithIdentity.json */ /** * Sample code: ConfigurationStores_Create_With_Identity. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCreateWithIdentity( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + manager.configurationStores() .define("contoso") .withRegion("westus") .withExistingResourceGroup("myResourceGroup") .withSku(new Sku().withName("Standard")) .withTags(mapOf("myTag", "myTagValue")) - .withIdentity( - new ResourceIdentity() - .withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", - new UserIdentity()))) + .withIdentity(new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", + new UserIdentity()))) .create(); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateWithDataPlaneProxy.json + */ + /** + * Sample code: ConfigurationStores_Create_With_Data_Plane_Proxy. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void configurationStoresCreateWithDataPlaneProxy( + com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() + .define("contoso") + .withRegion("westus") + .withExistingResourceGroup("myResourceGroup") + .withSku(new Sku().withName("Standard")) + .withDataPlaneProxy(new DataPlaneProxyProperties().withAuthenticationMode(AuthenticationMode.PASS_THROUGH) + .withPrivateLinkDelegation(PrivateLinkDelegation.ENABLED)) + .create(); + } + + /* + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateWithLocalAuthDisabled.json */ /** * Sample code: ConfigurationStores_Create_With_Local_Auth_Disabled. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCreateWithLocalAuthDisabled( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + manager.configurationStores() .define("contoso") .withRegion("westus") .withExistingResourceGroup("myResourceGroup") @@ -124,6 +156,7 @@ public final class ConfigurationStoresCreateSamples { .create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -140,18 +173,22 @@ public final class ConfigurationStoresCreateSamples { ### ConfigurationStores_Delete ```java -/** Samples for ConfigurationStores Delete. */ +/** + * Samples for ConfigurationStores Delete. + */ public final class ConfigurationStoresDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDelete.json */ /** * Sample code: ConfigurationStores_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresDelete( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + configurationStoresDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().delete("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } @@ -160,20 +197,23 @@ public final class ConfigurationStoresDeleteSamples { ### ConfigurationStores_GetByResourceGroup ```java -/** Samples for ConfigurationStores GetByResourceGroup. */ +/** + * Samples for ConfigurationStores GetByResourceGroup. + */ public final class ConfigurationStoresGetByResourceGroupSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGet.json */ /** * Sample code: ConfigurationStores_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresGet( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + public static void + configurationStoresGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } @@ -182,18 +222,22 @@ public final class ConfigurationStoresGetByResourceGroupSamples { ### ConfigurationStores_GetDeleted ```java -/** Samples for ConfigurationStores GetDeleted. */ +/** + * Samples for ConfigurationStores GetDeleted. + */ public final class ConfigurationStoresGetDeletedSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * DeletedConfigurationStoresGet.json */ /** * Sample code: DeletedConfigurationStores_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void deletedConfigurationStoresGet( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + deletedConfigurationStoresGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().getDeletedWithResponse("westus", "contoso", com.azure.core.util.Context.NONE); } } @@ -202,18 +246,22 @@ public final class ConfigurationStoresGetDeletedSamples { ### ConfigurationStores_List ```java -/** Samples for ConfigurationStores List. */ +/** + * Samples for ConfigurationStores List. + */ public final class ConfigurationStoresListSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresList.json */ /** * Sample code: ConfigurationStores_List. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresList( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + configurationStoresList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().list(null, com.azure.core.util.Context.NONE); } } @@ -222,14 +270,18 @@ public final class ConfigurationStoresListSamples { ### ConfigurationStores_ListByResourceGroup ```java -/** Samples for ConfigurationStores ListByResourceGroup. */ +/** + * Samples for ConfigurationStores ListByResourceGroup. + */ public final class ConfigurationStoresListByResourceGroupSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListByResourceGroup.json */ /** * Sample code: ConfigurationStores_ListByResourceGroup. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresListByResourceGroup( @@ -242,18 +294,22 @@ public final class ConfigurationStoresListByResourceGroupSamples { ### ConfigurationStores_ListDeleted ```java -/** Samples for ConfigurationStores ListDeleted. */ +/** + * Samples for ConfigurationStores ListDeleted. + */ public final class ConfigurationStoresListDeletedSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * DeletedConfigurationStoresList.json */ /** * Sample code: DeletedConfigurationStores_List. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void deletedConfigurationStoresList( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + deletedConfigurationStoresList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().listDeleted(com.azure.core.util.Context.NONE); } } @@ -262,18 +318,22 @@ public final class ConfigurationStoresListDeletedSamples { ### ConfigurationStores_ListKeys ```java -/** Samples for ConfigurationStores ListKeys. */ +/** + * Samples for ConfigurationStores ListKeys. + */ public final class ConfigurationStoresListKeysSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListKeys.json */ /** * Sample code: ConfigurationStores_ListKeys. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresListKeys( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + configurationStoresListKeys(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().listKeys("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE); } } @@ -282,18 +342,22 @@ public final class ConfigurationStoresListKeysSamples { ### ConfigurationStores_PurgeDeleted ```java -/** Samples for ConfigurationStores PurgeDeleted. */ +/** + * Samples for ConfigurationStores PurgeDeleted. + */ public final class ConfigurationStoresPurgeDeletedSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * DeletedConfigurationStoresPurge.json */ /** * Sample code: Purge a deleted configuration store. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void purgeADeletedConfigurationStore( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + purgeADeletedConfigurationStore(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().purgeDeleted("westus", "contoso", com.azure.core.util.Context.NONE); } } @@ -304,25 +368,25 @@ public final class ConfigurationStoresPurgeDeletedSamples { ```java import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters; -/** Samples for ConfigurationStores RegenerateKey. */ +/** + * Samples for ConfigurationStores RegenerateKey. + */ public final class ConfigurationStoresRegenerateKeySamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresRegenerateKey.json */ /** * Sample code: ConfigurationStores_RegenerateKey. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresRegenerateKey( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() - .regenerateKeyWithResponse( - "myResourceGroup", - "contoso", - new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), - com.azure.core.util.Context.NONE); + public static void + configurationStoresRegenerateKey(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() + .regenerateKeyWithResponse("myResourceGroup", "contoso", + new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), com.azure.core.util.Context.NONE); } } ``` @@ -338,73 +402,72 @@ import com.azure.resourcemanager.appconfiguration.models.UserIdentity; import java.util.HashMap; import java.util.Map; -/** Samples for ConfigurationStores Update. */ +/** + * Samples for ConfigurationStores Update. + */ public final class ConfigurationStoresUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdateDisableLocalAuth.json */ /** * Sample code: ConfigurationStores_Update_Disable_Local_Auth. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresUpdateDisableLocalAuth( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - ConfigurationStore resource = - manager - .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) - .getValue(); + ConfigurationStore resource = manager.configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withSku(new Sku().withName("Standard")).withDisableLocalAuth(true).apply(); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdate.json */ /** * Sample code: ConfigurationStores_Update. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresUpdate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - ConfigurationStore resource = - manager - .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) - .getValue(); + public static void + configurationStoresUpdate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + ConfigurationStore resource = manager.configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("Category", "Marketing")).withSku(new Sku().withName("Standard")).apply(); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdateWithIdentity.json */ /** * Sample code: ConfigurationStores_Update_With_Identity. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresUpdateWithIdentity( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - ConfigurationStore resource = - manager - .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + ConfigurationStore resource = manager.configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("Category", "Marketing")) - .withIdentity( - new ResourceIdentity() - .withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", - new UserIdentity()))) + .withIdentity(new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", + new UserIdentity()))) .withSku(new Sku().withName("Standard")) .apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -424,20 +487,23 @@ public final class ConfigurationStoresUpdateSamples { import java.util.HashMap; import java.util.Map; -/** Samples for KeyValues CreateOrUpdate. */ +/** + * Samples for KeyValues CreateOrUpdate. + */ public final class KeyValuesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateKeyValue.json */ /** * Sample code: KeyValues_CreateOrUpdate. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void keyValuesCreateOrUpdate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .keyValues() + public static void + keyValuesCreateOrUpdate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.keyValues() .define("myKey$myLabel") .withExistingConfigurationStore("myResourceGroup", "contoso") .withTags(mapOf("tag1", "tagValue1", "tag2", "tagValue2")) @@ -445,6 +511,7 @@ public final class KeyValuesCreateOrUpdateSamples { .create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -461,14 +528,18 @@ public final class KeyValuesCreateOrUpdateSamples { ### KeyValues_Delete ```java -/** Samples for KeyValues Delete. */ +/** + * Samples for KeyValues Delete. + */ public final class KeyValuesDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDeleteKeyValue.json */ /** * Sample code: KeyValues_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { @@ -480,19 +551,22 @@ public final class KeyValuesDeleteSamples { ### KeyValues_Get ```java -/** Samples for KeyValues Get. */ +/** + * Samples for KeyValues Get. + */ public final class KeyValuesGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetKeyValue.json */ /** * Sample code: KeyValues_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .keyValues() + manager.keyValues() .getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE); } } @@ -504,42 +578,44 @@ public final class KeyValuesGetSamples { import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; -/** Samples for Operations CheckNameAvailability. */ +/** + * Samples for Operations CheckNameAvailability. + */ public final class OperationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * CheckNameAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() + manager.operations() .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityParameters() - .withName("contoso") + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * CheckNameNotAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameNotAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameNotAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() + manager.operations() .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityParameters() - .withName("contoso") + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } @@ -549,14 +625,18 @@ public final class OperationsCheckNameAvailabilitySamples { ### Operations_List ```java -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * OperationsList.json */ /** * Sample code: Operations_List. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void operationsList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { @@ -571,44 +651,44 @@ public final class OperationsListSamples { import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; -/** Samples for Operations RegionalCheckNameAvailability. */ +/** + * Samples for Operations RegionalCheckNameAvailability. + */ public final class OperationsRegionalCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * RegionalCheckNameAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() - .regionalCheckNameAvailabilityWithResponse( - "westus", - new CheckNameAvailabilityParameters() - .withName("contoso") + manager.operations() + .regionalCheckNameAvailabilityWithResponse("westus", + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * RegionalCheckNameNotAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameNotAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameNotAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() - .regionalCheckNameAvailabilityWithResponse( - "westus", - new CheckNameAvailabilityParameters() - .withName("contoso") + manager.operations() + .regionalCheckNameAvailabilityWithResponse("westus", + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } @@ -622,28 +702,28 @@ import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; -/** Samples for PrivateEndpointConnections CreateOrUpdate. */ +/** + * Samples for PrivateEndpointConnections CreateOrUpdate. + */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdatePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_Update. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionUpdate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - PrivateEndpointConnection resource = - manager - .privateEndpointConnections() - .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + privateEndpointConnectionUpdate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + PrivateEndpointConnection resource = manager.privateEndpointConnections() + .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(ConnectionStatus.APPROVED) + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED) .withDescription("Auto-Approved")) .apply(); } @@ -653,20 +733,23 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { ### PrivateEndpointConnections_Delete ```java -/** Samples for PrivateEndpointConnections Delete. */ +/** + * Samples for PrivateEndpointConnections Delete. + */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDeletePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnections_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionsDelete( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() + public static void + privateEndpointConnectionsDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateEndpointConnections() .delete("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } @@ -675,20 +758,23 @@ public final class PrivateEndpointConnectionsDeleteSamples { ### PrivateEndpointConnections_Get ```java -/** Samples for PrivateEndpointConnections Get. */ +/** + * Samples for PrivateEndpointConnections Get. + */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetPrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_GetConnection. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void privateEndpointConnectionGetConnection( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() + manager.privateEndpointConnections() .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } @@ -697,20 +783,23 @@ public final class PrivateEndpointConnectionsGetSamples { ### PrivateEndpointConnections_ListByConfigurationStore ```java -/** Samples for PrivateEndpointConnections ListByConfigurationStore. */ +/** + * Samples for PrivateEndpointConnections ListByConfigurationStore. + */ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListPrivateEndpointConnections.json */ /** * Sample code: PrivateEndpointConnection_List. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionList( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() + public static void + privateEndpointConnectionList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateEndpointConnections() .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } @@ -719,20 +808,23 @@ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { ### PrivateLinkResources_Get ```java -/** Samples for PrivateLinkResources Get. */ +/** + * Samples for PrivateLinkResources Get. + */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * PrivateLinkResourceGet.json */ /** * Sample code: PrivateLinkResources_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateLinkResourcesGet( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateLinkResources() + public static void + privateLinkResourcesGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateLinkResources() .getWithResponse("myResourceGroup", "contoso", "configurationStores", com.azure.core.util.Context.NONE); } } @@ -741,20 +833,23 @@ public final class PrivateLinkResourcesGetSamples { ### PrivateLinkResources_ListByConfigurationStore ```java -/** Samples for PrivateLinkResources ListByConfigurationStore. */ +/** + * Samples for PrivateLinkResources ListByConfigurationStore. + */ public final class PrivateLinkResourcesListByConfigurationStoreSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * PrivateLinkResourcesListByConfigurationStore.json */ /** * Sample code: PrivateLinkResources_ListGroupIds. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateLinkResourcesListGroupIds( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateLinkResources() + public static void + privateLinkResourcesListGroupIds(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateLinkResources() .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } @@ -763,19 +858,22 @@ public final class PrivateLinkResourcesListByConfigurationStoreSamples { ### Replicas_Create ```java -/** Samples for Replicas Create. */ +/** + * Samples for Replicas Create. + */ public final class ReplicasCreateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateReplica.json */ /** * Sample code: Replicas_Create. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void replicasCreate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .replicas() + manager.replicas() .define("myReplicaEus") .withExistingConfigurationStore("myResourceGroup", "contoso") .withRegion("eastus") @@ -787,14 +885,18 @@ public final class ReplicasCreateSamples { ### Replicas_Delete ```java -/** Samples for Replicas Delete. */ +/** + * Samples for Replicas Delete. + */ public final class ReplicasDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDeleteReplica.json */ /** * Sample code: Replicas_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void replicasDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { @@ -806,19 +908,22 @@ public final class ReplicasDeleteSamples { ### Replicas_Get ```java -/** Samples for Replicas Get. */ +/** + * Samples for Replicas Get. + */ public final class ReplicasGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetReplica.json */ /** * Sample code: Replicas_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void replicasGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .replicas() + manager.replicas() .getWithResponse("myResourceGroup", "contoso", "myReplicaEus", com.azure.core.util.Context.NONE); } } @@ -827,22 +932,80 @@ public final class ReplicasGetSamples { ### Replicas_ListByConfigurationStore ```java -/** Samples for Replicas ListByConfigurationStore. */ +/** + * Samples for Replicas ListByConfigurationStore. + */ public final class ReplicasListByConfigurationStoreSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListReplicas.json */ /** * Sample code: Replicas_ListByConfigurationStore. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void replicasListByConfigurationStore( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .replicas() + public static void + replicasListByConfigurationStore(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.replicas() .listByConfigurationStore("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE); } } ``` +### Snapshots_Create + +```java +import com.azure.resourcemanager.appconfiguration.models.KeyValueFilter; +import java.util.Arrays; + +/** + * Samples for Snapshots Create. + */ +public final class SnapshotsCreateSamples { + /* + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateSnapshot.json + */ + /** + * Sample code: Snapshots_Create. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void snapshotsCreate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.snapshots() + .define("mySnapshot") + .withExistingConfigurationStore("myResourceGroup", "contoso") + .withFilters(Arrays.asList(new KeyValueFilter().withKey("fakeTokenPlaceholder").withLabel("Production"))) + .withRetentionPeriod(3600L) + .create(); + } +} +``` + +### Snapshots_Get + +```java +/** + * Samples for Snapshots Get. + */ +public final class SnapshotsGetSamples { + /* + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetSnapshot.json + */ + /** + * Sample code: Snapshots_Get. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void snapshotsGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.snapshots() + .getWithResponse("myResourceGroup", "contoso", "mySnapshot", com.azure.core.util.Context.NONE); + } +} +``` + diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml index 77e11084e4819..eb73e2ed7503a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-appconfiguration - 1.0.0-beta.8 + 1.0.0 jar Microsoft Azure SDK for AppConfiguration Management - This package contains Microsoft Azure SDK for AppConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-03-01. + This package contains Microsoft Azure SDK for AppConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-05-01. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,7 @@ UTF-8 0 0 - - + false @@ -76,8 +76,6 @@ 4.11.0 test - - net.bytebuddy byte-buddy diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java index 4d0f85878e3de..f53f5e8c88e0b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java @@ -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; @@ -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; @@ -31,12 +31,14 @@ import com.azure.resourcemanager.appconfiguration.implementation.PrivateEndpointConnectionsImpl; import com.azure.resourcemanager.appconfiguration.implementation.PrivateLinkResourcesImpl; import com.azure.resourcemanager.appconfiguration.implementation.ReplicasImpl; +import com.azure.resourcemanager.appconfiguration.implementation.SnapshotsImpl; import com.azure.resourcemanager.appconfiguration.models.ConfigurationStores; import com.azure.resourcemanager.appconfiguration.models.KeyValues; import com.azure.resourcemanager.appconfiguration.models.Operations; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnections; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkResources; import com.azure.resourcemanager.appconfiguration.models.Replicas; +import com.azure.resourcemanager.appconfiguration.models.Snapshots; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.ArrayList; @@ -44,7 +46,9 @@ import java.util.Objects; import java.util.stream.Collectors; -/** Entry point to AppConfigurationManager. */ +/** + * Entry point to AppConfigurationManager. + */ public final class AppConfigurationManager { private ConfigurationStores configurationStores; @@ -58,6 +62,8 @@ public final class AppConfigurationManager { private Replicas replicas; + private Snapshots snapshots; + private final AppConfigurationManagementClient clientObject; private AppConfigurationManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -72,7 +78,7 @@ private AppConfigurationManager(HttpPipeline httpPipeline, AzureProfile profile, /** * Creates an instance of AppConfiguration service API entry point. - * + * * @param credential the credential to use. * @param profile the Azure profile for client. * @return the AppConfiguration service API instance. @@ -85,7 +91,7 @@ public static AppConfigurationManager authenticate(TokenCredential credential, A /** * Creates an instance of AppConfiguration service API entry point. - * + * * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. * @param profile the Azure profile for client. * @return the AppConfiguration service API instance. @@ -98,14 +104,16 @@ public static AppConfigurationManager authenticate(HttpPipeline httpPipeline, Az /** * Gets a Configurable instance that can be used to create AppConfigurationManager with optional configuration. - * + * * @return the Configurable instance allowing configurations. */ public static Configurable configure() { return new AppConfigurationManager.Configurable(); } - /** The Configurable allowing configurations to be set. */ + /** + * The Configurable allowing configurations to be set. + */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); @@ -177,8 +185,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { /** * Sets the retry options for the HTTP pipeline retry policy. - * - *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + *

+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. * * @param retryOptions the retry options for the HTTP pipeline retry policy. * @return the configurable object itself. @@ -220,7 +228,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro .append("-") .append("com.azure.resourcemanager.appconfiguration") .append("/") - .append("1.0.0-beta.7"); + .append("1.0.0"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -253,7 +261,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro 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())); @@ -268,7 +276,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro /** * Gets the resource collection API of ConfigurationStores. It manages ConfigurationStore. - * + * * @return Resource collection API of ConfigurationStores. */ public ConfigurationStores configurationStores() { @@ -280,7 +288,7 @@ public ConfigurationStores configurationStores() { /** * Gets the resource collection API of Operations. - * + * * @return Resource collection API of Operations. */ public Operations operations() { @@ -292,7 +300,7 @@ public Operations operations() { /** * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection. - * + * * @return Resource collection API of PrivateEndpointConnections. */ public PrivateEndpointConnections privateEndpointConnections() { @@ -305,7 +313,7 @@ public PrivateEndpointConnections privateEndpointConnections() { /** * Gets the resource collection API of PrivateLinkResources. - * + * * @return Resource collection API of PrivateLinkResources. */ public PrivateLinkResources privateLinkResources() { @@ -317,7 +325,7 @@ public PrivateLinkResources privateLinkResources() { /** * Gets the resource collection API of KeyValues. It manages KeyValue. - * + * * @return Resource collection API of KeyValues. */ public KeyValues keyValues() { @@ -329,7 +337,7 @@ public KeyValues keyValues() { /** * Gets the resource collection API of Replicas. It manages Replica. - * + * * @return Resource collection API of Replicas. */ public Replicas replicas() { @@ -340,8 +348,22 @@ public Replicas replicas() { } /** - * @return Wrapped service client AppConfigurationManagementClient providing direct access to the underlying - * auto-generated API implementation, based on Azure REST API. + * Gets the resource collection API of Snapshots. It manages Snapshot. + * + * @return Resource collection API of Snapshots. + */ + public Snapshots snapshots() { + if (this.snapshots == null) { + this.snapshots = new SnapshotsImpl(clientObject.getSnapshots(), this); + } + return snapshots; + } + + /** + * Gets wrapped service client AppConfigurationManagementClient providing direct access to the underlying + * auto-generated API implementation, based on Azure REST API. + * + * @return Wrapped service client AppConfigurationManagementClient. */ public AppConfigurationManagementClient serviceClient() { return this.clientObject; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java index 186b77e2b62cf..f982a26056145 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/AppConfigurationManagementClient.java @@ -7,82 +7,91 @@ import com.azure.core.http.HttpPipeline; import java.time.Duration; -/** The interface for AppConfigurationManagementClient class. */ +/** + * The interface for AppConfigurationManagementClient class. + */ public interface AppConfigurationManagementClient { /** * Gets The Microsoft Azure subscription ID. - * + * * @return the subscriptionId value. */ String getSubscriptionId(); /** * Gets server parameter. - * + * * @return the endpoint value. */ String getEndpoint(); /** * Gets Api Version. - * + * * @return the apiVersion value. */ String getApiVersion(); /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ HttpPipeline getHttpPipeline(); /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ Duration getDefaultPollInterval(); /** * Gets the ConfigurationStoresClient object to access its operations. - * + * * @return the ConfigurationStoresClient object. */ ConfigurationStoresClient getConfigurationStores(); /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ OperationsClient getOperations(); /** * Gets the PrivateEndpointConnectionsClient object to access its operations. - * + * * @return the PrivateEndpointConnectionsClient object. */ PrivateEndpointConnectionsClient getPrivateEndpointConnections(); /** * Gets the PrivateLinkResourcesClient object to access its operations. - * + * * @return the PrivateLinkResourcesClient object. */ PrivateLinkResourcesClient getPrivateLinkResources(); /** * Gets the KeyValuesClient object to access its operations. - * + * * @return the KeyValuesClient object. */ KeyValuesClient getKeyValues(); /** * Gets the ReplicasClient object to access its operations. - * + * * @return the ReplicasClient object. */ ReplicasClient getReplicas(); + + /** + * Gets the SnapshotsClient object to access its operations. + * + * @return the SnapshotsClient object. + */ + SnapshotsClient getSnapshots(); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java index bcb0626105cd5..3ef77962e3ad3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java @@ -17,11 +17,13 @@ import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters; import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters; -/** An instance of this class provides access to all the operations defined in ConfigurationStoresClient. */ +/** + * An instance of this class provides access to all the operations defined in ConfigurationStoresClient. + */ public interface ConfigurationStoresClient { /** * Lists the configuration stores for a given subscription. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores as paginated response with {@link PagedIterable}. @@ -31,10 +33,10 @@ public interface ConfigurationStoresClient { /** * Lists the configuration stores for a given subscription. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -46,7 +48,7 @@ public interface ConfigurationStoresClient { /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,11 +60,11 @@ public interface ConfigurationStoresClient { /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -75,7 +77,7 @@ PagedIterable listByResourceGroup(String resourceGroupN /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -90,7 +92,7 @@ Response getByResourceGroupWithResponse(String resource /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -103,7 +105,7 @@ Response getByResourceGroupWithResponse(String resource /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -118,7 +120,7 @@ SyncPoller, ConfigurationStoreInner> beginCr /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -134,7 +136,7 @@ SyncPoller, ConfigurationStoreInner> beginCr /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -149,7 +151,7 @@ ConfigurationStoreInner create(String resourceGroupName, String configStoreName, /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -165,7 +167,7 @@ ConfigurationStoreInner create(String resourceGroupName, String configStoreName, /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -178,7 +180,7 @@ ConfigurationStoreInner create(String resourceGroupName, String configStoreName, /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -192,7 +194,7 @@ ConfigurationStoreInner create(String resourceGroupName, String configStoreName, /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -204,7 +206,7 @@ ConfigurationStoreInner create(String resourceGroupName, String configStoreName, /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -217,7 +219,7 @@ ConfigurationStoreInner create(String resourceGroupName, String configStoreName, /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -232,7 +234,7 @@ SyncPoller, ConfigurationStoreInner> beginUp /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -248,7 +250,7 @@ SyncPoller, ConfigurationStoreInner> beginUp /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -263,7 +265,7 @@ ConfigurationStoreInner update(String resourceGroupName, String configStoreName, /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -279,7 +281,7 @@ ConfigurationStoreInner update(String resourceGroupName, String configStoreName, /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -292,12 +294,12 @@ ConfigurationStoreInner update(String resourceGroupName, String configStoreName, /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -310,7 +312,7 @@ PagedIterable listKeys(String resourceGroupName, String configStore /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -326,7 +328,7 @@ Response regenerateKeyWithResponse(String resourceGroupName, String /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -341,31 +343,31 @@ ApiKeyInner regenerateKey(String resourceGroupName, String configStoreName, /** * Gets information about the deleted configuration stores in a subscription. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedIterable}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listDeleted(); /** * Gets information about the deleted configuration stores in a subscription. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedIterable}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listDeleted(Context context); /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -380,7 +382,7 @@ Response getDeletedWithResponse(String location, /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -393,7 +395,7 @@ Response getDeletedWithResponse(String location, /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -406,7 +408,7 @@ Response getDeletedWithResponse(String location, /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -420,7 +422,7 @@ Response getDeletedWithResponse(String location, /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -432,7 +434,7 @@ Response getDeletedWithResponse(String location, /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java index 25801d422e5f3..dac813fc27b7f 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java @@ -12,15 +12,19 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner; -/** An instance of this class provides access to all the operations defined in KeyValuesClient. */ +/** + * An instance of this class provides access to all the operations defined in KeyValuesClient. + */ public interface KeyValuesClient { /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -32,12 +36,14 @@ Response getWithResponse(String resourceGroupName, String configS Context context); /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -47,12 +53,13 @@ Response getWithResponse(String resourceGroupName, String configS KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName); /** - * Creates a key-value. - * + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param keyValueParameters The parameters for creating a key-value. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,12 +72,13 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str String keyValueName, KeyValueInner keyValueParameters, Context context); /** - * Creates a key-value. - * + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -80,12 +88,13 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str KeyValueInner createOrUpdate(String resourceGroupName, String configStoreName, String keyValueName); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -96,12 +105,13 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String keyValueName); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -113,12 +123,13 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String keyValueName, Context context); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -127,12 +138,13 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String configStoreName, String keyValueName); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java index f62f0f0b53747..a735e42bf8596 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java @@ -13,11 +13,13 @@ import com.azure.resourcemanager.appconfiguration.fluent.models.OperationDefinitionInner; import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public interface OperationsClient { /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -31,7 +33,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -43,34 +45,34 @@ Response checkNameAvailabilityWithResponse( /** * Lists the operations available from this provider. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedIterable}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * Lists the operations available from this provider. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedIterable}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String skipToken, Context context); /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. @@ -85,7 +87,7 @@ Response regionalCheckNameAvailabilityWithResponse( /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java index daf206f6c8edd..ccd211e04d097 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java @@ -13,11 +13,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateEndpointConnectionInner; -/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. + */ public interface PrivateEndpointConnectionsClient { /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -31,7 +33,7 @@ PagedIterable listByConfigurationStore(String re /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -46,7 +48,7 @@ PagedIterable listByConfigurationStore(String re /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -54,8 +56,8 @@ PagedIterable listByConfigurationStore(String re * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response getWithResponse(String resourceGroupName, String configStoreName, @@ -63,7 +65,7 @@ Response getWithResponse(String resourceGroupNam /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -80,7 +82,7 @@ PrivateEndpointConnectionInner get(String resourceGroupName, String configStoreN * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -99,7 +101,7 @@ SyncPoller, PrivateEndpointConnection * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -119,7 +121,7 @@ SyncPoller, PrivateEndpointConnection * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -137,7 +139,7 @@ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String c * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -155,7 +157,7 @@ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String c /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -170,7 +172,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -186,7 +188,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -199,7 +201,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java index c29284bfe4c54..3e4119b85608c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java @@ -11,25 +11,27 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateLinkResourceInner; -/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. + */ public interface PrivateLinkResourcesClient { /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName); /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -37,7 +39,7 @@ public interface PrivateLinkResourcesClient { * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName, @@ -45,7 +47,7 @@ PagedIterable listByConfigurationStore(String resource /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. @@ -61,7 +63,7 @@ Response getWithResponse(String resourceGroupName, Str /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java index 3aca694f30c4e..27a876a9c2d18 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ReplicasClient.java @@ -13,11 +13,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.appconfiguration.fluent.models.ReplicaInner; -/** An instance of this class provides access to all the operations defined in ReplicasClient. */ +/** + * An instance of this class provides access to all the operations defined in ReplicasClient. + */ public interface ReplicasClient { /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -30,12 +32,12 @@ public interface ReplicasClient { /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -48,7 +50,7 @@ PagedIterable listByConfigurationStore(String resourceGroupName, S /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -64,7 +66,7 @@ Response getWithResponse(String resourceGroupName, String configSt /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -78,7 +80,7 @@ Response getWithResponse(String resourceGroupName, String configSt /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -94,7 +96,7 @@ SyncPoller, ReplicaInner> beginCreate(String resourceGr /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -111,7 +113,7 @@ SyncPoller, ReplicaInner> beginCreate(String resourceGr /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -127,7 +129,7 @@ ReplicaInner create(String resourceGroupName, String configStoreName, String rep /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -144,7 +146,7 @@ ReplicaInner create(String resourceGroupName, String configStoreName, String rep /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -159,7 +161,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -175,7 +177,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -188,7 +190,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/SnapshotsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/SnapshotsClient.java new file mode 100644 index 0000000000000..f82a0d2476ac9 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/SnapshotsClient.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.appconfiguration.fluent.models.SnapshotInner; + +/** + * An instance of this class provides access to all the operations defined in SnapshotsClient. + */ +public interface SnapshotsClient { + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String configStoreName, String snapshotName, + Context context); + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SnapshotInner get(String resourceGroupName, String configStoreName, String snapshotName); + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, String configStoreName, + String snapshotName, SnapshotInner body); + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, String configStoreName, + String snapshotName, SnapshotInner body, Context context); + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SnapshotInner create(String resourceGroupName, String configStoreName, String snapshotName, SnapshotInner body); + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SnapshotInner create(String resourceGroupName, String configStoreName, String snapshotName, SnapshotInner body, + Context context); +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java index d5e7279b7b5fc..3e66b6eb0d55f 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java @@ -5,55 +5,58 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; -/** An API key used for authenticating with a configuration store endpoint. */ +/** + * An API key used for authenticating with a configuration store endpoint. + */ @Immutable -public final class ApiKeyInner { +public final class ApiKeyInner implements JsonSerializable { /* * The key ID. */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; /* * A name for the key describing its usage. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The value of the key that is used for authentication purposes. */ - @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private String value; /* * A connection string that can be used by supporting clients for authentication. */ - @JsonProperty(value = "connectionString", access = JsonProperty.Access.WRITE_ONLY) private String connectionString; /* * The last time any of the key's properties were modified. */ - @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; /* * Whether this key can only be used for read operations. */ - @JsonProperty(value = "readOnly", access = JsonProperty.Access.WRITE_ONLY) private Boolean readOnly; - /** Creates an instance of ApiKeyInner class. */ + /** + * Creates an instance of ApiKeyInner class. + */ public ApiKeyInner() { } /** * Get the id property: The key ID. - * + * * @return the id value. */ public String id() { @@ -62,7 +65,7 @@ public String id() { /** * Get the name property: A name for the key describing its usage. - * + * * @return the name value. */ public String name() { @@ -71,7 +74,7 @@ public String name() { /** * Get the value property: The value of the key that is used for authentication purposes. - * + * * @return the value value. */ public String value() { @@ -80,7 +83,7 @@ public String value() { /** * Get the connectionString property: A connection string that can be used by supporting clients for authentication. - * + * * @return the connectionString value. */ public String connectionString() { @@ -89,7 +92,7 @@ public String connectionString() { /** * Get the lastModified property: The last time any of the key's properties were modified. - * + * * @return the lastModified value. */ public OffsetDateTime lastModified() { @@ -98,7 +101,7 @@ public OffsetDateTime lastModified() { /** * Get the readOnly property: Whether this key can only be used for read operations. - * + * * @return the readOnly value. */ public Boolean readOnly() { @@ -107,9 +110,55 @@ public Boolean readOnly() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApiKeyInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApiKeyInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ApiKeyInner. + */ + public static ApiKeyInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApiKeyInner deserializedApiKeyInner = new ApiKeyInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedApiKeyInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedApiKeyInner.name = reader.getString(); + } else if ("value".equals(fieldName)) { + deserializedApiKeyInner.value = reader.getString(); + } else if ("connectionString".equals(fieldName)) { + deserializedApiKeyInner.connectionString = reader.getString(); + } else if ("lastModified".equals(fieldName)) { + deserializedApiKeyInner.lastModified = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("readOnly".equals(fieldName)) { + deserializedApiKeyInner.readOnly = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedApiKeyInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java index 4b00c945bf22e..1cdf66403c683 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java @@ -8,14 +8,18 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.models.CreateMode; +import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties; import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionReference; import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; import com.azure.resourcemanager.appconfiguration.models.Sku; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; @@ -29,34 +33,47 @@ public final class ConfigurationStoreInner extends Resource { /* * The managed identity information, if configured. */ - @JsonProperty(value = "identity") private ResourceIdentity identity; /* * The properties of a configuration store. */ - @JsonProperty(value = "properties") private ConfigurationStoreProperties innerProperties; /* * The sku of the configuration store. */ - @JsonProperty(value = "sku", required = true) private Sku sku; /* * Resource system metadata. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of ConfigurationStoreInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ConfigurationStoreInner class. + */ public ConfigurationStoreInner() { } /** * Get the identity property: The managed identity information, if configured. - * + * * @return the identity value. */ public ResourceIdentity identity() { @@ -65,7 +82,7 @@ public ResourceIdentity identity() { /** * Set the identity property: The managed identity information, if configured. - * + * * @param identity the identity value to set. * @return the ConfigurationStoreInner object itself. */ @@ -76,7 +93,7 @@ public ConfigurationStoreInner withIdentity(ResourceIdentity identity) { /** * Get the innerProperties property: The properties of a configuration store. - * + * * @return the innerProperties value. */ private ConfigurationStoreProperties innerProperties() { @@ -85,7 +102,7 @@ private ConfigurationStoreProperties innerProperties() { /** * Get the sku property: The sku of the configuration store. - * + * * @return the sku value. */ public Sku sku() { @@ -94,7 +111,7 @@ public Sku sku() { /** * Set the sku property: The sku of the configuration store. - * + * * @param sku the sku value to set. * @return the ConfigurationStoreInner object itself. */ @@ -105,21 +122,55 @@ public ConfigurationStoreInner withSku(Sku sku) { /** * Get the systemData property: Resource system metadata. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public ConfigurationStoreInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ConfigurationStoreInner withTags(Map tags) { super.withTags(tags); @@ -128,7 +179,7 @@ public ConfigurationStoreInner withTags(Map tags) { /** * Get the provisioningState property: The provisioning state of the configuration store. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -137,7 +188,7 @@ public ProvisioningState provisioningState() { /** * Get the creationDate property: The creation date of configuration store. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -146,7 +197,7 @@ public OffsetDateTime creationDate() { /** * Get the endpoint property: The DNS endpoint where the configuration store API will be available. - * + * * @return the endpoint value. */ public String endpoint() { @@ -155,7 +206,7 @@ public String endpoint() { /** * Get the encryption property: The encryption settings of the configuration store. - * + * * @return the encryption value. */ public EncryptionProperties encryption() { @@ -164,7 +215,7 @@ public EncryptionProperties encryption() { /** * Set the encryption property: The encryption settings of the configuration store. - * + * * @param encryption the encryption value to set. * @return the ConfigurationStoreInner object itself. */ @@ -179,7 +230,7 @@ public ConfigurationStoreInner withEncryption(EncryptionProperties encryption) { /** * Get the privateEndpointConnections property: The list of private endpoint connections that are set up for this * resource. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -189,7 +240,7 @@ public List privateEndpointConnections() { /** * Get the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @return the publicNetworkAccess value. */ public PublicNetworkAccess publicNetworkAccess() { @@ -199,7 +250,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the ConfigurationStoreInner object itself. */ @@ -213,7 +264,7 @@ public ConfigurationStoreInner withPublicNetworkAccess(PublicNetworkAccess publi /** * Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @return the disableLocalAuth value. */ public Boolean disableLocalAuth() { @@ -222,7 +273,7 @@ public Boolean disableLocalAuth() { /** * Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @param disableLocalAuth the disableLocalAuth value to set. * @return the ConfigurationStoreInner object itself. */ @@ -237,7 +288,7 @@ public ConfigurationStoreInner withDisableLocalAuth(Boolean disableLocalAuth) { /** * Get the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be * retained when it is soft deleted. - * + * * @return the softDeleteRetentionInDays value. */ public Integer softDeleteRetentionInDays() { @@ -247,7 +298,7 @@ public Integer softDeleteRetentionInDays() { /** * Set the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be * retained when it is soft deleted. - * + * * @param softDeleteRetentionInDays the softDeleteRetentionInDays value to set. * @return the ConfigurationStoreInner object itself. */ @@ -262,7 +313,7 @@ public ConfigurationStoreInner withSoftDeleteRetentionInDays(Integer softDeleteR /** * Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @return the enablePurgeProtection value. */ public Boolean enablePurgeProtection() { @@ -272,7 +323,7 @@ public Boolean enablePurgeProtection() { /** * Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @param enablePurgeProtection the enablePurgeProtection value to set. * @return the ConfigurationStoreInner object itself. */ @@ -284,9 +335,34 @@ public ConfigurationStoreInner withEnablePurgeProtection(Boolean enablePurgeProt return this; } + /** + * Get the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @return the dataPlaneProxy value. + */ + public DataPlaneProxyProperties dataPlaneProxy() { + return this.innerProperties() == null ? null : this.innerProperties().dataPlaneProxy(); + } + + /** + * Set the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @param dataPlaneProxy the dataPlaneProxy value to set. + * @return the ConfigurationStoreInner object itself. + */ + public ConfigurationStoreInner withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) { + if (this.innerProperties() == null) { + this.innerProperties = new ConfigurationStoreProperties(); + } + this.innerProperties().withDataPlaneProxy(dataPlaneProxy); + return this; + } + /** * Get the createMode property: Indicates whether the configuration store need to be recovered. - * + * * @return the createMode value. */ public CreateMode createMode() { @@ -295,7 +371,7 @@ public CreateMode createMode() { /** * Set the createMode property: Indicates whether the configuration store need to be recovered. - * + * * @param createMode the createMode value to set. * @return the ConfigurationStoreInner object itself. */ @@ -309,7 +385,7 @@ public ConfigurationStoreInner withCreateMode(CreateMode createMode) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -320,12 +396,70 @@ public void validate() { innerProperties().validate(); } if (sku() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property sku in model ConfigurationStoreInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property sku in model ConfigurationStoreInner")); } else { sku().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(ConfigurationStoreInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("sku", this.sku); + jsonWriter.writeJsonField("identity", this.identity); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigurationStoreInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigurationStoreInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConfigurationStoreInner. + */ + public static ConfigurationStoreInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigurationStoreInner deserializedConfigurationStoreInner = new ConfigurationStoreInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedConfigurationStoreInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedConfigurationStoreInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedConfigurationStoreInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedConfigurationStoreInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedConfigurationStoreInner.withTags(tags); + } else if ("sku".equals(fieldName)) { + deserializedConfigurationStoreInner.sku = Sku.fromJson(reader); + } else if ("identity".equals(fieldName)) { + deserializedConfigurationStoreInner.identity = ResourceIdentity.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedConfigurationStoreInner.innerProperties = ConfigurationStoreProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedConfigurationStoreInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigurationStoreInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java index 1a73d53100d53..eec6c2d78117a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java @@ -5,85 +5,90 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.models.CreateMode; +import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties; import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionReference; import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; -/** The properties of a configuration store. */ +/** + * The properties of a configuration store. + */ @Fluent -public final class ConfigurationStoreProperties { +public final class ConfigurationStoreProperties implements JsonSerializable { /* * The provisioning state of the configuration store. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; /* * The creation date of configuration store. */ - @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; /* * The DNS endpoint where the configuration store API will be available. */ - @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY) private String endpoint; /* * The encryption settings of the configuration store. */ - @JsonProperty(value = "encryption") private EncryptionProperties encryption; /* * The list of private endpoint connections that are set up for this resource. */ - @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; /* * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ - @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* * Disables all authentication methods other than AAD authentication. */ - @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; /* * The amount of time in days that the configuration store will be retained when it is soft deleted. */ - @JsonProperty(value = "softDeleteRetentionInDays") private Integer softDeleteRetentionInDays; /* * Property specifying whether protection against purge is enabled for this configuration store. */ - @JsonProperty(value = "enablePurgeProtection") private Boolean enablePurgeProtection; + /* + * Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM). + */ + private DataPlaneProxyProperties dataPlaneProxy; + /* * Indicates whether the configuration store need to be recovered. */ - @JsonProperty(value = "createMode") private CreateMode createMode; - /** Creates an instance of ConfigurationStoreProperties class. */ + /** + * Creates an instance of ConfigurationStoreProperties class. + */ public ConfigurationStoreProperties() { } /** * Get the provisioningState property: The provisioning state of the configuration store. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -92,7 +97,7 @@ public ProvisioningState provisioningState() { /** * Get the creationDate property: The creation date of configuration store. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -101,7 +106,7 @@ public OffsetDateTime creationDate() { /** * Get the endpoint property: The DNS endpoint where the configuration store API will be available. - * + * * @return the endpoint value. */ public String endpoint() { @@ -110,7 +115,7 @@ public String endpoint() { /** * Get the encryption property: The encryption settings of the configuration store. - * + * * @return the encryption value. */ public EncryptionProperties encryption() { @@ -119,7 +124,7 @@ public EncryptionProperties encryption() { /** * Set the encryption property: The encryption settings of the configuration store. - * + * * @param encryption the encryption value to set. * @return the ConfigurationStoreProperties object itself. */ @@ -131,7 +136,7 @@ public ConfigurationStoreProperties withEncryption(EncryptionProperties encrypti /** * Get the privateEndpointConnections property: The list of private endpoint connections that are set up for this * resource. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -141,7 +146,7 @@ public List privateEndpointConnections() { /** * Get the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @return the publicNetworkAccess value. */ public PublicNetworkAccess publicNetworkAccess() { @@ -151,7 +156,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the ConfigurationStoreProperties object itself. */ @@ -162,7 +167,7 @@ public ConfigurationStoreProperties withPublicNetworkAccess(PublicNetworkAccess /** * Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @return the disableLocalAuth value. */ public Boolean disableLocalAuth() { @@ -171,7 +176,7 @@ public Boolean disableLocalAuth() { /** * Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @param disableLocalAuth the disableLocalAuth value to set. * @return the ConfigurationStoreProperties object itself. */ @@ -183,7 +188,7 @@ public ConfigurationStoreProperties withDisableLocalAuth(Boolean disableLocalAut /** * Get the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be * retained when it is soft deleted. - * + * * @return the softDeleteRetentionInDays value. */ public Integer softDeleteRetentionInDays() { @@ -193,7 +198,7 @@ public Integer softDeleteRetentionInDays() { /** * Set the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be * retained when it is soft deleted. - * + * * @param softDeleteRetentionInDays the softDeleteRetentionInDays value to set. * @return the ConfigurationStoreProperties object itself. */ @@ -205,7 +210,7 @@ public ConfigurationStoreProperties withSoftDeleteRetentionInDays(Integer softDe /** * Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @return the enablePurgeProtection value. */ public Boolean enablePurgeProtection() { @@ -215,7 +220,7 @@ public Boolean enablePurgeProtection() { /** * Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @param enablePurgeProtection the enablePurgeProtection value to set. * @return the ConfigurationStoreProperties object itself. */ @@ -224,9 +229,31 @@ public ConfigurationStoreProperties withEnablePurgeProtection(Boolean enablePurg return this; } + /** + * Get the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @return the dataPlaneProxy value. + */ + public DataPlaneProxyProperties dataPlaneProxy() { + return this.dataPlaneProxy; + } + + /** + * Set the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @param dataPlaneProxy the dataPlaneProxy value to set. + * @return the ConfigurationStoreProperties object itself. + */ + public ConfigurationStoreProperties withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) { + this.dataPlaneProxy = dataPlaneProxy; + return this; + } + /** * Get the createMode property: Indicates whether the configuration store need to be recovered. - * + * * @return the createMode value. */ public CreateMode createMode() { @@ -235,7 +262,7 @@ public CreateMode createMode() { /** * Set the createMode property: Indicates whether the configuration store need to be recovered. - * + * * @param createMode the createMode value to set. * @return the ConfigurationStoreProperties object itself. */ @@ -246,7 +273,7 @@ public ConfigurationStoreProperties withCreateMode(CreateMode createMode) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -256,5 +283,79 @@ public void validate() { if (privateEndpointConnections() != null) { privateEndpointConnections().forEach(e -> e.validate()); } + if (dataPlaneProxy() != null) { + dataPlaneProxy().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("encryption", this.encryption); + jsonWriter.writeStringField("publicNetworkAccess", + this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString()); + jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth); + jsonWriter.writeNumberField("softDeleteRetentionInDays", this.softDeleteRetentionInDays); + jsonWriter.writeBooleanField("enablePurgeProtection", this.enablePurgeProtection); + jsonWriter.writeJsonField("dataPlaneProxy", this.dataPlaneProxy); + jsonWriter.writeStringField("createMode", this.createMode == null ? null : this.createMode.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigurationStoreProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigurationStoreProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigurationStoreProperties. + */ + public static ConfigurationStoreProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigurationStoreProperties deserializedConfigurationStoreProperties = new ConfigurationStoreProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedConfigurationStoreProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("creationDate".equals(fieldName)) { + deserializedConfigurationStoreProperties.creationDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("endpoint".equals(fieldName)) { + deserializedConfigurationStoreProperties.endpoint = reader.getString(); + } else if ("encryption".equals(fieldName)) { + deserializedConfigurationStoreProperties.encryption = EncryptionProperties.fromJson(reader); + } else if ("privateEndpointConnections".equals(fieldName)) { + List privateEndpointConnections + = reader.readArray(reader1 -> PrivateEndpointConnectionReference.fromJson(reader1)); + deserializedConfigurationStoreProperties.privateEndpointConnections = privateEndpointConnections; + } else if ("publicNetworkAccess".equals(fieldName)) { + deserializedConfigurationStoreProperties.publicNetworkAccess + = PublicNetworkAccess.fromString(reader.getString()); + } else if ("disableLocalAuth".equals(fieldName)) { + deserializedConfigurationStoreProperties.disableLocalAuth + = reader.getNullable(JsonReader::getBoolean); + } else if ("softDeleteRetentionInDays".equals(fieldName)) { + deserializedConfigurationStoreProperties.softDeleteRetentionInDays + = reader.getNullable(JsonReader::getInt); + } else if ("enablePurgeProtection".equals(fieldName)) { + deserializedConfigurationStoreProperties.enablePurgeProtection + = reader.getNullable(JsonReader::getBoolean); + } else if ("dataPlaneProxy".equals(fieldName)) { + deserializedConfigurationStoreProperties.dataPlaneProxy = DataPlaneProxyProperties.fromJson(reader); + } else if ("createMode".equals(fieldName)) { + deserializedConfigurationStoreProperties.createMode = CreateMode.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigurationStoreProperties; + }); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java index 9b3efb37cc250..4b58ad88a53f3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java @@ -5,44 +5,55 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties; import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties; import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** The properties for updating a configuration store. */ +/** + * The properties for updating a configuration store. + */ @Fluent -public final class ConfigurationStorePropertiesUpdateParameters { +public final class ConfigurationStorePropertiesUpdateParameters + implements JsonSerializable { /* * The encryption settings of the configuration store. */ - @JsonProperty(value = "encryption") private EncryptionProperties encryption; /* * Disables all authentication methods other than AAD authentication. */ - @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; /* * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ - @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* * Property specifying whether protection against purge is enabled for this configuration store. */ - @JsonProperty(value = "enablePurgeProtection") private Boolean enablePurgeProtection; - /** Creates an instance of ConfigurationStorePropertiesUpdateParameters class. */ + /* + * Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM). + */ + private DataPlaneProxyProperties dataPlaneProxy; + + /** + * Creates an instance of ConfigurationStorePropertiesUpdateParameters class. + */ public ConfigurationStorePropertiesUpdateParameters() { } /** * Get the encryption property: The encryption settings of the configuration store. - * + * * @return the encryption value. */ public EncryptionProperties encryption() { @@ -51,7 +62,7 @@ public EncryptionProperties encryption() { /** * Set the encryption property: The encryption settings of the configuration store. - * + * * @param encryption the encryption value to set. * @return the ConfigurationStorePropertiesUpdateParameters object itself. */ @@ -62,7 +73,7 @@ public ConfigurationStorePropertiesUpdateParameters withEncryption(EncryptionPro /** * Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @return the disableLocalAuth value. */ public Boolean disableLocalAuth() { @@ -71,7 +82,7 @@ public Boolean disableLocalAuth() { /** * Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @param disableLocalAuth the disableLocalAuth value to set. * @return the ConfigurationStorePropertiesUpdateParameters object itself. */ @@ -83,7 +94,7 @@ public ConfigurationStorePropertiesUpdateParameters withDisableLocalAuth(Boolean /** * Get the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @return the publicNetworkAccess value. */ public PublicNetworkAccess publicNetworkAccess() { @@ -93,7 +104,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the ConfigurationStorePropertiesUpdateParameters object itself. */ @@ -106,7 +117,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @return the enablePurgeProtection value. */ public Boolean enablePurgeProtection() { @@ -116,7 +127,7 @@ public Boolean enablePurgeProtection() { /** * Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @param enablePurgeProtection the enablePurgeProtection value to set. * @return the ConfigurationStorePropertiesUpdateParameters object itself. */ @@ -125,14 +136,94 @@ public ConfigurationStorePropertiesUpdateParameters withEnablePurgeProtection(Bo return this; } + /** + * Get the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @return the dataPlaneProxy value. + */ + public DataPlaneProxyProperties dataPlaneProxy() { + return this.dataPlaneProxy; + } + + /** + * Set the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @param dataPlaneProxy the dataPlaneProxy value to set. + * @return the ConfigurationStorePropertiesUpdateParameters object itself. + */ + public ConfigurationStorePropertiesUpdateParameters withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) { + this.dataPlaneProxy = dataPlaneProxy; + return this; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (encryption() != null) { encryption().validate(); } + if (dataPlaneProxy() != null) { + dataPlaneProxy().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("encryption", this.encryption); + jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth); + jsonWriter.writeStringField("publicNetworkAccess", + this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString()); + jsonWriter.writeBooleanField("enablePurgeProtection", this.enablePurgeProtection); + jsonWriter.writeJsonField("dataPlaneProxy", this.dataPlaneProxy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigurationStorePropertiesUpdateParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigurationStorePropertiesUpdateParameters if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigurationStorePropertiesUpdateParameters. + */ + public static ConfigurationStorePropertiesUpdateParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigurationStorePropertiesUpdateParameters deserializedConfigurationStorePropertiesUpdateParameters + = new ConfigurationStorePropertiesUpdateParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("encryption".equals(fieldName)) { + deserializedConfigurationStorePropertiesUpdateParameters.encryption + = EncryptionProperties.fromJson(reader); + } else if ("disableLocalAuth".equals(fieldName)) { + deserializedConfigurationStorePropertiesUpdateParameters.disableLocalAuth + = reader.getNullable(JsonReader::getBoolean); + } else if ("publicNetworkAccess".equals(fieldName)) { + deserializedConfigurationStorePropertiesUpdateParameters.publicNetworkAccess + = PublicNetworkAccess.fromString(reader.getString()); + } else if ("enablePurgeProtection".equals(fieldName)) { + deserializedConfigurationStorePropertiesUpdateParameters.enablePurgeProtection + = reader.getNullable(JsonReader::getBoolean); + } else if ("dataPlaneProxy".equals(fieldName)) { + deserializedConfigurationStorePropertiesUpdateParameters.dataPlaneProxy + = DataPlaneProxyProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigurationStorePropertiesUpdateParameters; + }); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java index a5b6218c397cf..b65fd96cb23b6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java @@ -5,44 +5,48 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.Map; -/** Deleted configuration store information with extended details. */ +/** + * Deleted configuration store information with extended details. + */ @Immutable -public final class DeletedConfigurationStoreInner { +public final class DeletedConfigurationStoreInner implements JsonSerializable { /* * The resource ID for the deleted configuration store. */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; /* * The name of the configuration store. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The resource type of the configuration store. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; /* * Properties of the deleted configuration store */ - @JsonProperty(value = "properties") private DeletedConfigurationStoreProperties innerProperties; - /** Creates an instance of DeletedConfigurationStoreInner class. */ + /** + * Creates an instance of DeletedConfigurationStoreInner class. + */ public DeletedConfigurationStoreInner() { } /** * Get the id property: The resource ID for the deleted configuration store. - * + * * @return the id value. */ public String id() { @@ -51,7 +55,7 @@ public String id() { /** * Get the name property: The name of the configuration store. - * + * * @return the name value. */ public String name() { @@ -60,7 +64,7 @@ public String name() { /** * Get the type property: The resource type of the configuration store. - * + * * @return the type value. */ public String type() { @@ -69,7 +73,7 @@ public String type() { /** * Get the innerProperties property: Properties of the deleted configuration store. - * + * * @return the innerProperties value. */ private DeletedConfigurationStoreProperties innerProperties() { @@ -78,7 +82,7 @@ private DeletedConfigurationStoreProperties innerProperties() { /** * Get the configurationStoreId property: The resource id of the original configuration store. - * + * * @return the configurationStoreId value. */ public String configurationStoreId() { @@ -87,7 +91,7 @@ public String configurationStoreId() { /** * Get the location property: The location of the original configuration store. - * + * * @return the location value. */ public String location() { @@ -96,7 +100,7 @@ public String location() { /** * Get the deletionDate property: The deleted date. - * + * * @return the deletionDate value. */ public OffsetDateTime deletionDate() { @@ -105,7 +109,7 @@ public OffsetDateTime deletionDate() { /** * Get the scheduledPurgeDate property: The scheduled purged date. - * + * * @return the scheduledPurgeDate value. */ public OffsetDateTime scheduledPurgeDate() { @@ -114,7 +118,7 @@ public OffsetDateTime scheduledPurgeDate() { /** * Get the tags property: Tags of the original configuration store. - * + * * @return the tags value. */ public Map tags() { @@ -123,7 +127,7 @@ public Map tags() { /** * Get the purgeProtectionEnabled property: Purge protection status of the original configuration store. - * + * * @return the purgeProtectionEnabled value. */ public Boolean purgeProtectionEnabled() { @@ -132,7 +136,7 @@ public Boolean purgeProtectionEnabled() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -140,4 +144,48 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeletedConfigurationStoreInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeletedConfigurationStoreInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DeletedConfigurationStoreInner. + */ + public static DeletedConfigurationStoreInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeletedConfigurationStoreInner deserializedDeletedConfigurationStoreInner + = new DeletedConfigurationStoreInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedDeletedConfigurationStoreInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedDeletedConfigurationStoreInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedDeletedConfigurationStoreInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedDeletedConfigurationStoreInner.innerProperties + = DeletedConfigurationStoreProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedDeletedConfigurationStoreInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java index 7bad42461fbdb..43ea594eacd5e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java @@ -5,58 +5,60 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.Map; -/** Properties of the deleted configuration store. */ +/** + * Properties of the deleted configuration store. + */ @Immutable -public final class DeletedConfigurationStoreProperties { +public final class DeletedConfigurationStoreProperties + implements JsonSerializable { /* * The resource id of the original configuration store. */ - @JsonProperty(value = "configurationStoreId", access = JsonProperty.Access.WRITE_ONLY) private String configurationStoreId; /* * The location of the original configuration store. */ - @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; /* * The deleted date. */ - @JsonProperty(value = "deletionDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime deletionDate; /* * The scheduled purged date. */ - @JsonProperty(value = "scheduledPurgeDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime scheduledPurgeDate; /* * Tags of the original configuration store. */ - @JsonProperty(value = "tags", access = JsonProperty.Access.WRITE_ONLY) - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; /* * Purge protection status of the original configuration store. */ - @JsonProperty(value = "purgeProtectionEnabled", access = JsonProperty.Access.WRITE_ONLY) private Boolean purgeProtectionEnabled; - /** Creates an instance of DeletedConfigurationStoreProperties class. */ + /** + * Creates an instance of DeletedConfigurationStoreProperties class. + */ public DeletedConfigurationStoreProperties() { } /** * Get the configurationStoreId property: The resource id of the original configuration store. - * + * * @return the configurationStoreId value. */ public String configurationStoreId() { @@ -65,7 +67,7 @@ public String configurationStoreId() { /** * Get the location property: The location of the original configuration store. - * + * * @return the location value. */ public String location() { @@ -74,7 +76,7 @@ public String location() { /** * Get the deletionDate property: The deleted date. - * + * * @return the deletionDate value. */ public OffsetDateTime deletionDate() { @@ -83,7 +85,7 @@ public OffsetDateTime deletionDate() { /** * Get the scheduledPurgeDate property: The scheduled purged date. - * + * * @return the scheduledPurgeDate value. */ public OffsetDateTime scheduledPurgeDate() { @@ -92,7 +94,7 @@ public OffsetDateTime scheduledPurgeDate() { /** * Get the tags property: Tags of the original configuration store. - * + * * @return the tags value. */ public Map tags() { @@ -101,7 +103,7 @@ public Map tags() { /** * Get the purgeProtectionEnabled property: Purge protection status of the original configuration store. - * + * * @return the purgeProtectionEnabled value. */ public Boolean purgeProtectionEnabled() { @@ -110,9 +112,59 @@ public Boolean purgeProtectionEnabled() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeletedConfigurationStoreProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeletedConfigurationStoreProperties if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DeletedConfigurationStoreProperties. + */ + public static DeletedConfigurationStoreProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeletedConfigurationStoreProperties deserializedDeletedConfigurationStoreProperties + = new DeletedConfigurationStoreProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("configurationStoreId".equals(fieldName)) { + deserializedDeletedConfigurationStoreProperties.configurationStoreId = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedDeletedConfigurationStoreProperties.location = reader.getString(); + } else if ("deletionDate".equals(fieldName)) { + deserializedDeletedConfigurationStoreProperties.deletionDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("scheduledPurgeDate".equals(fieldName)) { + deserializedDeletedConfigurationStoreProperties.scheduledPurgeDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedDeletedConfigurationStoreProperties.tags = tags; + } else if ("purgeProtectionEnabled".equals(fieldName)) { + deserializedDeletedConfigurationStoreProperties.purgeProtectionEnabled + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedDeletedConfigurationStoreProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java index ed9138c2b7e19..880786456210f 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java @@ -6,26 +6,47 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.Map; -/** The key-value resource along with all resource properties. */ +/** + * The key-value resource along with all resource properties. + */ @Fluent public final class KeyValueInner extends ProxyResource { /* * All key-value properties. */ - @JsonProperty(value = "properties") private KeyValueProperties innerProperties; - /** Creates an instance of KeyValueInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of KeyValueInner class. + */ public KeyValueInner() { } /** * Get the innerProperties property: All key-value properties. - * + * * @return the innerProperties value. */ private KeyValueProperties innerProperties() { @@ -33,9 +54,39 @@ private KeyValueProperties innerProperties() { } /** - * Get the key property: The primary identifier of a key-value. The key is used in unison with the label to uniquely - * identify a key-value. - * + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Get the key property: The primary identifier of a key-value. + * The key is used in unison with the label to uniquely identify a key-value. + * * @return the key value. */ public String key() { @@ -43,9 +94,9 @@ public String key() { } /** - * Get the label property: A value used to group key-values. The label is used in unison with the key to uniquely - * identify a key-value. - * + * Get the label property: A value used to group key-values. + * The label is used in unison with the key to uniquely identify a key-value. + * * @return the label value. */ public String label() { @@ -54,7 +105,7 @@ public String label() { /** * Get the value property: The value of the key-value. - * + * * @return the value value. */ public String value() { @@ -63,7 +114,7 @@ public String value() { /** * Set the value property: The value of the key-value. - * + * * @param value the value value to set. * @return the KeyValueInner object itself. */ @@ -76,9 +127,9 @@ public KeyValueInner withValue(String value) { } /** - * Get the contentType property: The content type of the key-value's value. Providing a proper content-type can - * enable transformations of values when they are retrieved by applications. - * + * Get the contentType property: The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by applications. + * * @return the contentType value. */ public String contentType() { @@ -86,9 +137,9 @@ public String contentType() { } /** - * Set the contentType property: The content type of the key-value's value. Providing a proper content-type can - * enable transformations of values when they are retrieved by applications. - * + * Set the contentType property: The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by applications. + * * @param contentType the contentType value to set. * @return the KeyValueInner object itself. */ @@ -102,7 +153,7 @@ public KeyValueInner withContentType(String contentType) { /** * Get the etag property: An ETag indicating the state of a key-value within a configuration store. - * + * * @return the etag value. */ public String etag() { @@ -111,7 +162,7 @@ public String etag() { /** * Get the lastModified property: The last time a modifying operation was performed on the given key-value. - * + * * @return the lastModified value. */ public OffsetDateTime lastModified() { @@ -119,9 +170,9 @@ public OffsetDateTime lastModified() { } /** - * Get the locked property: A value indicating whether the key-value is locked. A locked key-value may not be - * modified until it is unlocked. - * + * Get the locked property: A value indicating whether the key-value is locked. + * A locked key-value may not be modified until it is unlocked. + * * @return the locked value. */ public Boolean locked() { @@ -130,7 +181,7 @@ public Boolean locked() { /** * Get the tags property: A dictionary of tags that can help identify what a key-value may be applicable for. - * + * * @return the tags value. */ public Map tags() { @@ -139,7 +190,7 @@ public Map tags() { /** * Set the tags property: A dictionary of tags that can help identify what a key-value may be applicable for. - * + * * @param tags the tags value to set. * @return the KeyValueInner object itself. */ @@ -153,7 +204,7 @@ public KeyValueInner withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -161,4 +212,47 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KeyValueInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KeyValueInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KeyValueInner. + */ + public static KeyValueInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KeyValueInner deserializedKeyValueInner = new KeyValueInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedKeyValueInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedKeyValueInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedKeyValueInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedKeyValueInner.innerProperties = KeyValueProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedKeyValueInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java index 3bce903610fdb..ea65e864f75f4 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java @@ -5,75 +5,74 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.Map; -/** All key-value properties. */ +/** + * All key-value properties. + */ @Fluent -public final class KeyValueProperties { +public final class KeyValueProperties implements JsonSerializable { /* * The primary identifier of a key-value. * The key is used in unison with the label to uniquely identify a key-value. */ - @JsonProperty(value = "key", access = JsonProperty.Access.WRITE_ONLY) private String key; /* * A value used to group key-values. * The label is used in unison with the key to uniquely identify a key-value. */ - @JsonProperty(value = "label", access = JsonProperty.Access.WRITE_ONLY) private String label; /* * The value of the key-value. */ - @JsonProperty(value = "value") private String value; /* * The content type of the key-value's value. * Providing a proper content-type can enable transformations of values when they are retrieved by applications. */ - @JsonProperty(value = "contentType") private String contentType; /* * An ETag indicating the state of a key-value within a configuration store. */ - @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY) private String etag; /* * The last time a modifying operation was performed on the given key-value. */ - @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; /* * A value indicating whether the key-value is locked. * A locked key-value may not be modified until it is unlocked. */ - @JsonProperty(value = "locked", access = JsonProperty.Access.WRITE_ONLY) private Boolean locked; /* * A dictionary of tags that can help identify what a key-value may be applicable for. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of KeyValueProperties class. */ + /** + * Creates an instance of KeyValueProperties class. + */ public KeyValueProperties() { } /** - * Get the key property: The primary identifier of a key-value. The key is used in unison with the label to uniquely - * identify a key-value. - * + * Get the key property: The primary identifier of a key-value. + * The key is used in unison with the label to uniquely identify a key-value. + * * @return the key value. */ public String key() { @@ -81,9 +80,9 @@ public String key() { } /** - * Get the label property: A value used to group key-values. The label is used in unison with the key to uniquely - * identify a key-value. - * + * Get the label property: A value used to group key-values. + * The label is used in unison with the key to uniquely identify a key-value. + * * @return the label value. */ public String label() { @@ -92,7 +91,7 @@ public String label() { /** * Get the value property: The value of the key-value. - * + * * @return the value value. */ public String value() { @@ -101,7 +100,7 @@ public String value() { /** * Set the value property: The value of the key-value. - * + * * @param value the value value to set. * @return the KeyValueProperties object itself. */ @@ -111,9 +110,9 @@ public KeyValueProperties withValue(String value) { } /** - * Get the contentType property: The content type of the key-value's value. Providing a proper content-type can - * enable transformations of values when they are retrieved by applications. - * + * Get the contentType property: The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by applications. + * * @return the contentType value. */ public String contentType() { @@ -121,9 +120,9 @@ public String contentType() { } /** - * Set the contentType property: The content type of the key-value's value. Providing a proper content-type can - * enable transformations of values when they are retrieved by applications. - * + * Set the contentType property: The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by applications. + * * @param contentType the contentType value to set. * @return the KeyValueProperties object itself. */ @@ -134,7 +133,7 @@ public KeyValueProperties withContentType(String contentType) { /** * Get the etag property: An ETag indicating the state of a key-value within a configuration store. - * + * * @return the etag value. */ public String etag() { @@ -143,7 +142,7 @@ public String etag() { /** * Get the lastModified property: The last time a modifying operation was performed on the given key-value. - * + * * @return the lastModified value. */ public OffsetDateTime lastModified() { @@ -151,9 +150,9 @@ public OffsetDateTime lastModified() { } /** - * Get the locked property: A value indicating whether the key-value is locked. A locked key-value may not be - * modified until it is unlocked. - * + * Get the locked property: A value indicating whether the key-value is locked. + * A locked key-value may not be modified until it is unlocked. + * * @return the locked value. */ public Boolean locked() { @@ -162,7 +161,7 @@ public Boolean locked() { /** * Get the tags property: A dictionary of tags that can help identify what a key-value may be applicable for. - * + * * @return the tags value. */ public Map tags() { @@ -171,7 +170,7 @@ public Map tags() { /** * Set the tags property: A dictionary of tags that can help identify what a key-value may be applicable for. - * + * * @param tags the tags value to set. * @return the KeyValueProperties object itself. */ @@ -182,9 +181,63 @@ public KeyValueProperties withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("value", this.value); + jsonWriter.writeStringField("contentType", this.contentType); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KeyValueProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KeyValueProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the KeyValueProperties. + */ + public static KeyValueProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KeyValueProperties deserializedKeyValueProperties = new KeyValueProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedKeyValueProperties.key = reader.getString(); + } else if ("label".equals(fieldName)) { + deserializedKeyValueProperties.label = reader.getString(); + } else if ("value".equals(fieldName)) { + deserializedKeyValueProperties.value = reader.getString(); + } else if ("contentType".equals(fieldName)) { + deserializedKeyValueProperties.contentType = reader.getString(); + } else if ("eTag".equals(fieldName)) { + deserializedKeyValueProperties.etag = reader.getString(); + } else if ("lastModified".equals(fieldName)) { + deserializedKeyValueProperties.lastModified = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("locked".equals(fieldName)) { + deserializedKeyValueProperties.locked = reader.getNullable(JsonReader::getBoolean); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedKeyValueProperties.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedKeyValueProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java index f2e029e3cc067..3495025c5ebe4 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java @@ -5,36 +5,41 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** The result of a request to check the availability of a resource name. */ +/** + * The result of a request to check the availability of a resource name. + */ @Immutable -public final class NameAvailabilityStatusInner { +public final class NameAvailabilityStatusInner implements JsonSerializable { /* * The value indicating whether the resource name is available. */ - @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY) private Boolean nameAvailable; /* * If any, the error message that provides more detail for the reason that the name is not available. */ - @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; /* * If any, the reason that the name is not available. */ - @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY) private String reason; - /** Creates an instance of NameAvailabilityStatusInner class. */ + /** + * Creates an instance of NameAvailabilityStatusInner class. + */ public NameAvailabilityStatusInner() { } /** * Get the nameAvailable property: The value indicating whether the resource name is available. - * + * * @return the nameAvailable value. */ public Boolean nameAvailable() { @@ -44,7 +49,7 @@ public Boolean nameAvailable() { /** * Get the message property: If any, the error message that provides more detail for the reason that the name is not * available. - * + * * @return the message value. */ public String message() { @@ -53,7 +58,7 @@ public String message() { /** * Get the reason property: If any, the reason that the name is not available. - * + * * @return the reason value. */ public String reason() { @@ -62,9 +67,48 @@ public String reason() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NameAvailabilityStatusInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NameAvailabilityStatusInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NameAvailabilityStatusInner. + */ + public static NameAvailabilityStatusInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NameAvailabilityStatusInner deserializedNameAvailabilityStatusInner = new NameAvailabilityStatusInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nameAvailable".equals(fieldName)) { + deserializedNameAvailabilityStatusInner.nameAvailable = reader.getNullable(JsonReader::getBoolean); + } else if ("message".equals(fieldName)) { + deserializedNameAvailabilityStatusInner.message = reader.getString(); + } else if ("reason".equals(fieldName)) { + deserializedNameAvailabilityStatusInner.reason = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNameAvailabilityStatusInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java index 13a1b553b42e0..1fe9878ed6ab1 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java @@ -5,50 +5,53 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.models.OperationDefinitionDisplay; import com.azure.resourcemanager.appconfiguration.models.OperationProperties; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** The definition of a configuration store operation. */ +/** + * The definition of a configuration store operation. + */ @Fluent -public final class OperationDefinitionInner { +public final class OperationDefinitionInner implements JsonSerializable { /* * Operation name: {provider}/{resource}/{operation}. */ - @JsonProperty(value = "name") private String name; /* * Indicates whether the operation is a data action */ - @JsonProperty(value = "isDataAction") private Boolean isDataAction; /* * The display information for the configuration store operation. */ - @JsonProperty(value = "display") private OperationDefinitionDisplay display; /* * Origin of the operation */ - @JsonProperty(value = "origin") private String origin; /* * Properties of the operation */ - @JsonProperty(value = "properties") private OperationProperties properties; - /** Creates an instance of OperationDefinitionInner class. */ + /** + * Creates an instance of OperationDefinitionInner class. + */ public OperationDefinitionInner() { } /** * Get the name property: Operation name: {provider}/{resource}/{operation}. - * + * * @return the name value. */ public String name() { @@ -57,7 +60,7 @@ public String name() { /** * Set the name property: Operation name: {provider}/{resource}/{operation}. - * + * * @param name the name value to set. * @return the OperationDefinitionInner object itself. */ @@ -68,7 +71,7 @@ public OperationDefinitionInner withName(String name) { /** * Get the isDataAction property: Indicates whether the operation is a data action. - * + * * @return the isDataAction value. */ public Boolean isDataAction() { @@ -77,7 +80,7 @@ public Boolean isDataAction() { /** * Set the isDataAction property: Indicates whether the operation is a data action. - * + * * @param isDataAction the isDataAction value to set. * @return the OperationDefinitionInner object itself. */ @@ -88,7 +91,7 @@ public OperationDefinitionInner withIsDataAction(Boolean isDataAction) { /** * Get the display property: The display information for the configuration store operation. - * + * * @return the display value. */ public OperationDefinitionDisplay display() { @@ -97,7 +100,7 @@ public OperationDefinitionDisplay display() { /** * Set the display property: The display information for the configuration store operation. - * + * * @param display the display value to set. * @return the OperationDefinitionInner object itself. */ @@ -108,7 +111,7 @@ public OperationDefinitionInner withDisplay(OperationDefinitionDisplay display) /** * Get the origin property: Origin of the operation. - * + * * @return the origin value. */ public String origin() { @@ -117,7 +120,7 @@ public String origin() { /** * Set the origin property: Origin of the operation. - * + * * @param origin the origin value to set. * @return the OperationDefinitionInner object itself. */ @@ -128,7 +131,7 @@ public OperationDefinitionInner withOrigin(String origin) { /** * Get the properties property: Properties of the operation. - * + * * @return the properties value. */ public OperationProperties properties() { @@ -137,7 +140,7 @@ public OperationProperties properties() { /** * Set the properties property: Properties of the operation. - * + * * @param properties the properties value to set. * @return the OperationDefinitionInner object itself. */ @@ -148,7 +151,7 @@ public OperationDefinitionInner withProperties(OperationProperties properties) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -159,4 +162,52 @@ public void validate() { properties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeBooleanField("isDataAction", this.isDataAction); + jsonWriter.writeJsonField("display", this.display); + jsonWriter.writeStringField("origin", this.origin); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationDefinitionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationDefinitionInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationDefinitionInner. + */ + public static OperationDefinitionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationDefinitionInner deserializedOperationDefinitionInner = new OperationDefinitionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedOperationDefinitionInner.name = reader.getString(); + } else if ("isDataAction".equals(fieldName)) { + deserializedOperationDefinitionInner.isDataAction = reader.getNullable(JsonReader::getBoolean); + } else if ("display".equals(fieldName)) { + deserializedOperationDefinitionInner.display = OperationDefinitionDisplay.fromJson(reader); + } else if ("origin".equals(fieldName)) { + deserializedOperationDefinitionInner.origin = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedOperationDefinitionInner.properties = OperationProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationDefinitionInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java index 2f9786f740b64..a99cc3d574c26 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java @@ -6,36 +6,87 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpoint; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** A private endpoint connection. */ +/** + * A private endpoint connection. + */ @Fluent public final class PrivateEndpointConnectionInner extends ProxyResource { /* * The properties of a private endpoint. */ - @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; - /** Creates an instance of PrivateEndpointConnectionInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of PrivateEndpointConnectionInner class. + */ public PrivateEndpointConnectionInner() { } /** * Get the innerProperties property: The properties of a private endpoint. - * + * * @return the innerProperties value. */ private PrivateEndpointConnectionProperties innerProperties() { return this.innerProperties; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the provisioningState property: The provisioning status of the private endpoint connection. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -44,7 +95,7 @@ public ProvisioningState provisioningState() { /** * Get the privateEndpoint property: The resource of private endpoint. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -53,7 +104,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: The resource of private endpoint. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionInner object itself. */ @@ -68,7 +119,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat /** * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection * between service consumer and provider. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -78,7 +129,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection * between service consumer and provider. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionInner object itself. */ @@ -93,7 +144,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -101,4 +152,49 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateEndpointConnectionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateEndpointConnectionInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the PrivateEndpointConnectionInner. + */ + public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateEndpointConnectionInner deserializedPrivateEndpointConnectionInner + = new PrivateEndpointConnectionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedPrivateEndpointConnectionInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedPrivateEndpointConnectionInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedPrivateEndpointConnectionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedPrivateEndpointConnectionInner.innerProperties + = PrivateEndpointConnectionProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateEndpointConnectionInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java index d61b6dbf09fbb..bc045818a5a8e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java @@ -6,39 +6,45 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpoint; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** Properties of a private endpoint connection. */ +/** + * Properties of a private endpoint connection. + */ @Fluent -public final class PrivateEndpointConnectionProperties { +public final class PrivateEndpointConnectionProperties + implements JsonSerializable { /* * The provisioning status of the private endpoint connection. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; /* * The resource of private endpoint. */ - @JsonProperty(value = "privateEndpoint") private PrivateEndpoint privateEndpoint; /* * A collection of information about the state of the connection between service consumer and provider. */ - @JsonProperty(value = "privateLinkServiceConnectionState", required = true) private PrivateLinkServiceConnectionState privateLinkServiceConnectionState; - /** Creates an instance of PrivateEndpointConnectionProperties class. */ + /** + * Creates an instance of PrivateEndpointConnectionProperties class. + */ public PrivateEndpointConnectionProperties() { } /** * Get the provisioningState property: The provisioning status of the private endpoint connection. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -47,7 +53,7 @@ public ProvisioningState provisioningState() { /** * Get the privateEndpoint property: The resource of private endpoint. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -56,7 +62,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: The resource of private endpoint. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionProperties object itself. */ @@ -68,7 +74,7 @@ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint p /** * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection * between service consumer and provider. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -78,7 +84,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection * between service consumer and provider. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionProperties object itself. */ @@ -90,7 +96,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -98,13 +104,58 @@ public void validate() { privateEndpoint().validate(); } if (privateLinkServiceConnectionState() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property privateLinkServiceConnectionState in model" - + " PrivateEndpointConnectionProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties")); } else { privateLinkServiceConnectionState().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState); + jsonWriter.writeJsonField("privateEndpoint", this.privateEndpoint); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateEndpointConnectionProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateEndpointConnectionProperties if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the PrivateEndpointConnectionProperties. + */ + public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateEndpointConnectionProperties deserializedPrivateEndpointConnectionProperties + = new PrivateEndpointConnectionProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("privateLinkServiceConnectionState".equals(fieldName)) { + deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState + = PrivateLinkServiceConnectionState.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedPrivateEndpointConnectionProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("privateEndpoint".equals(fieldName)) { + deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateEndpointConnectionProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java index 7df32c9421853..ae4b2bca4c017 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java @@ -5,43 +5,47 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** A resource that supports private link capabilities. */ +/** + * A resource that supports private link capabilities. + */ @Immutable -public final class PrivateLinkResourceInner { +public final class PrivateLinkResourceInner implements JsonSerializable { /* * The resource ID. */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; /* * The name of the resource. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The type of the resource. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; /* * Private link resource properties. */ - @JsonProperty(value = "properties") private PrivateLinkResourceProperties innerProperties; - /** Creates an instance of PrivateLinkResourceInner class. */ + /** + * Creates an instance of PrivateLinkResourceInner class. + */ public PrivateLinkResourceInner() { } /** * Get the id property: The resource ID. - * + * * @return the id value. */ public String id() { @@ -50,7 +54,7 @@ public String id() { /** * Get the name property: The name of the resource. - * + * * @return the name value. */ public String name() { @@ -59,7 +63,7 @@ public String name() { /** * Get the type property: The type of the resource. - * + * * @return the type value. */ public String type() { @@ -68,7 +72,7 @@ public String type() { /** * Get the innerProperties property: Private link resource properties. - * + * * @return the innerProperties value. */ private PrivateLinkResourceProperties innerProperties() { @@ -77,7 +81,7 @@ private PrivateLinkResourceProperties innerProperties() { /** * Get the groupId property: The private link resource group id. - * + * * @return the groupId value. */ public String groupId() { @@ -86,7 +90,7 @@ public String groupId() { /** * Get the requiredMembers property: The private link resource required member names. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -95,7 +99,7 @@ public List requiredMembers() { /** * Get the requiredZoneNames property: The list of required DNS zone names of the private link resource. - * + * * @return the requiredZoneNames value. */ public List requiredZoneNames() { @@ -104,7 +108,7 @@ public List requiredZoneNames() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -112,4 +116,47 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateLinkResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateLinkResourceInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the PrivateLinkResourceInner. + */ + public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateLinkResourceInner deserializedPrivateLinkResourceInner = new PrivateLinkResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedPrivateLinkResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedPrivateLinkResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedPrivateLinkResourceInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedPrivateLinkResourceInner.innerProperties + = PrivateLinkResourceProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateLinkResourceInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java index b51547cb4ab33..57b1a77b06427 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java @@ -5,37 +5,42 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** Properties of a private link resource. */ +/** + * Properties of a private link resource. + */ @Immutable -public final class PrivateLinkResourceProperties { +public final class PrivateLinkResourceProperties implements JsonSerializable { /* * The private link resource group id. */ - @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY) private String groupId; /* * The private link resource required member names. */ - @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY) private List requiredMembers; /* * The list of required DNS zone names of the private link resource. */ - @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY) private List requiredZoneNames; - /** Creates an instance of PrivateLinkResourceProperties class. */ + /** + * Creates an instance of PrivateLinkResourceProperties class. + */ public PrivateLinkResourceProperties() { } /** * Get the groupId property: The private link resource group id. - * + * * @return the groupId value. */ public String groupId() { @@ -44,7 +49,7 @@ public String groupId() { /** * Get the requiredMembers property: The private link resource required member names. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -53,7 +58,7 @@ public List requiredMembers() { /** * Get the requiredZoneNames property: The list of required DNS zone names of the private link resource. - * + * * @return the requiredZoneNames value. */ public List requiredZoneNames() { @@ -62,9 +67,51 @@ public List requiredZoneNames() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateLinkResourceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateLinkResourceProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the PrivateLinkResourceProperties. + */ + public static PrivateLinkResourceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateLinkResourceProperties deserializedPrivateLinkResourceProperties + = new PrivateLinkResourceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("groupId".equals(fieldName)) { + deserializedPrivateLinkResourceProperties.groupId = reader.getString(); + } else if ("requiredMembers".equals(fieldName)) { + List requiredMembers = reader.readArray(reader1 -> reader1.getString()); + deserializedPrivateLinkResourceProperties.requiredMembers = requiredMembers; + } else if ("requiredZoneNames".equals(fieldName)) { + List requiredZoneNames = reader.readArray(reader1 -> reader1.getString()); + deserializedPrivateLinkResourceProperties.requiredZoneNames = requiredZoneNames; + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateLinkResourceProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java index 6efee8955650e..6ec61f9e5b055 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaInner.java @@ -7,37 +7,56 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.models.ReplicaProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** The replica resource. */ +/** + * The replica resource. + */ @Fluent public final class ReplicaInner extends ProxyResource { /* * The location of the replica. */ - @JsonProperty(value = "location") private String location; /* * Resource system metadata. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; /* * All replica properties. */ - @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) private ReplicaProperties innerProperties; - /** Creates an instance of ReplicaInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ReplicaInner class. + */ public ReplicaInner() { } /** * Get the location property: The location of the replica. - * + * * @return the location value. */ public String location() { @@ -46,7 +65,7 @@ public String location() { /** * Set the location property: The location of the replica. - * + * * @param location the location value to set. * @return the ReplicaInner object itself. */ @@ -57,7 +76,7 @@ public ReplicaInner withLocation(String location) { /** * Get the systemData property: Resource system metadata. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -66,16 +85,46 @@ public SystemData systemData() { /** * Get the innerProperties property: All replica properties. - * + * * @return the innerProperties value. */ private ReplicaProperties innerProperties() { return this.innerProperties; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the endpoint property: The URI of the replica where the replica API will be available. - * + * * @return the endpoint value. */ public String endpoint() { @@ -84,7 +133,7 @@ public String endpoint() { /** * Get the provisioningState property: The provisioning state of the replica. - * + * * @return the provisioningState value. */ public ReplicaProvisioningState provisioningState() { @@ -93,7 +142,7 @@ public ReplicaProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -101,4 +150,51 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", this.location); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReplicaInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReplicaInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ReplicaInner. + */ + public static ReplicaInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReplicaInner deserializedReplicaInner = new ReplicaInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedReplicaInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedReplicaInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedReplicaInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedReplicaInner.location = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedReplicaInner.systemData = SystemData.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedReplicaInner.innerProperties = ReplicaProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedReplicaInner; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java index bff2cfb3674ec..03540dc8f814d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ReplicaProperties.java @@ -5,31 +5,37 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.models.ReplicaProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** All replica properties. */ +/** + * All replica properties. + */ @Immutable -public final class ReplicaProperties { +public final class ReplicaProperties implements JsonSerializable { /* * The URI of the replica where the replica API will be available. */ - @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY) private String endpoint; /* * The provisioning state of the replica. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ReplicaProvisioningState provisioningState; - /** Creates an instance of ReplicaProperties class. */ + /** + * Creates an instance of ReplicaProperties class. + */ public ReplicaProperties() { } /** * Get the endpoint property: The URI of the replica where the replica API will be available. - * + * * @return the endpoint value. */ public String endpoint() { @@ -38,7 +44,7 @@ public String endpoint() { /** * Get the provisioningState property: The provisioning state of the replica. - * + * * @return the provisioningState value. */ public ReplicaProvisioningState provisioningState() { @@ -47,9 +53,47 @@ public ReplicaProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReplicaProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReplicaProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ReplicaProperties. + */ + public static ReplicaProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReplicaProperties deserializedReplicaProperties = new ReplicaProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("endpoint".equals(fieldName)) { + deserializedReplicaProperties.endpoint = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedReplicaProperties.provisioningState + = ReplicaProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedReplicaProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotInner.java new file mode 100644 index 0000000000000..4ab047a4eae8a --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotInner.java @@ -0,0 +1,309 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.appconfiguration.models.CompositionType; +import com.azure.resourcemanager.appconfiguration.models.KeyValueFilter; +import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; +import com.azure.resourcemanager.appconfiguration.models.SnapshotStatus; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +/** + * The snapshot resource. + */ +@Fluent +public final class SnapshotInner extends ProxyResource { + /* + * All snapshot properties. + */ + private SnapshotProperties innerProperties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of SnapshotInner class. + */ + public SnapshotInner() { + } + + /** + * Get the innerProperties property: All snapshot properties. + * + * @return the innerProperties value. + */ + private SnapshotProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Get the provisioningState property: The provisioning state of the snapshot. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the status property: The current status of the snapshot. + * + * @return the status value. + */ + public SnapshotStatus status() { + return this.innerProperties() == null ? null : this.innerProperties().status(); + } + + /** + * Get the filters property: A list of filters used to filter the key-values included in the snapshot. + * + * @return the filters value. + */ + public List filters() { + return this.innerProperties() == null ? null : this.innerProperties().filters(); + } + + /** + * Set the filters property: A list of filters used to filter the key-values included in the snapshot. + * + * @param filters the filters value to set. + * @return the SnapshotInner object itself. + */ + public SnapshotInner withFilters(List filters) { + if (this.innerProperties() == null) { + this.innerProperties = new SnapshotProperties(); + } + this.innerProperties().withFilters(filters); + return this; + } + + /** + * Get the compositionType property: The composition type describes how the key-values within the snapshot are + * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' + * composition type ensures there are no two key-values containing the same key and label. + * + * @return the compositionType value. + */ + public CompositionType compositionType() { + return this.innerProperties() == null ? null : this.innerProperties().compositionType(); + } + + /** + * Set the compositionType property: The composition type describes how the key-values within the snapshot are + * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' + * composition type ensures there are no two key-values containing the same key and label. + * + * @param compositionType the compositionType value to set. + * @return the SnapshotInner object itself. + */ + public SnapshotInner withCompositionType(CompositionType compositionType) { + if (this.innerProperties() == null) { + this.innerProperties = new SnapshotProperties(); + } + this.innerProperties().withCompositionType(compositionType); + return this; + } + + /** + * Get the created property: The time that the snapshot was created. + * + * @return the created value. + */ + public OffsetDateTime created() { + return this.innerProperties() == null ? null : this.innerProperties().created(); + } + + /** + * Get the expires property: The time that the snapshot will expire. + * + * @return the expires value. + */ + public OffsetDateTime expires() { + return this.innerProperties() == null ? null : this.innerProperties().expires(); + } + + /** + * Get the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived + * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the + * default lifetime of key-value revisions will be used. + * + * @return the retentionPeriod value. + */ + public Long retentionPeriod() { + return this.innerProperties() == null ? null : this.innerProperties().retentionPeriod(); + } + + /** + * Set the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived + * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the + * default lifetime of key-value revisions will be used. + * + * @param retentionPeriod the retentionPeriod value to set. + * @return the SnapshotInner object itself. + */ + public SnapshotInner withRetentionPeriod(Long retentionPeriod) { + if (this.innerProperties() == null) { + this.innerProperties = new SnapshotProperties(); + } + this.innerProperties().withRetentionPeriod(retentionPeriod); + return this; + } + + /** + * Get the size property: The size in bytes of the snapshot. + * + * @return the size value. + */ + public Long size() { + return this.innerProperties() == null ? null : this.innerProperties().size(); + } + + /** + * Get the itemsCount property: The amount of key-values in the snapshot. + * + * @return the itemsCount value. + */ + public Long itemsCount() { + return this.innerProperties() == null ? null : this.innerProperties().itemsCount(); + } + + /** + * Get the tags property: The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager + * (ARM) tags. + * + * @return the tags value. + */ + public Map tags() { + return this.innerProperties() == null ? null : this.innerProperties().tags(); + } + + /** + * Set the tags property: The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager + * (ARM) tags. + * + * @param tags the tags value to set. + * @return the SnapshotInner object itself. + */ + public SnapshotInner withTags(Map tags) { + if (this.innerProperties() == null) { + this.innerProperties = new SnapshotProperties(); + } + this.innerProperties().withTags(tags); + return this; + } + + /** + * Get the etag property: A value representing the current state of the snapshot. + * + * @return the etag value. + */ + public String etag() { + return this.innerProperties() == null ? null : this.innerProperties().etag(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SnapshotInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SnapshotInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SnapshotInner. + */ + public static SnapshotInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SnapshotInner deserializedSnapshotInner = new SnapshotInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSnapshotInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSnapshotInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSnapshotInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedSnapshotInner.innerProperties = SnapshotProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSnapshotInner; + }); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotProperties.java new file mode 100644 index 0000000000000..5bd1217f638ee --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/SnapshotProperties.java @@ -0,0 +1,326 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.appconfiguration.models.CompositionType; +import com.azure.resourcemanager.appconfiguration.models.KeyValueFilter; +import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; +import com.azure.resourcemanager.appconfiguration.models.SnapshotStatus; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +/** + * All snapshot properties. + */ +@Fluent +public final class SnapshotProperties implements JsonSerializable { + /* + * The provisioning state of the snapshot. + */ + private ProvisioningState provisioningState; + + /* + * The current status of the snapshot. + */ + private SnapshotStatus status; + + /* + * A list of filters used to filter the key-values included in the snapshot. + */ + private List filters; + + /* + * The composition type describes how the key-values within the snapshot are composed. The 'key' composition type + * ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are + * no two key-values containing the same key and label. + */ + private CompositionType compositionType; + + /* + * The time that the snapshot was created. + */ + private OffsetDateTime created; + + /* + * The time that the snapshot will expire. + */ + private OffsetDateTime expires; + + /* + * The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property + * is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions + * will be used. + */ + private Long retentionPeriod; + + /* + * The size in bytes of the snapshot. + */ + private Long size; + + /* + * The amount of key-values in the snapshot. + */ + private Long itemsCount; + + /* + * The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager (ARM) tags. + */ + private Map tags; + + /* + * A value representing the current state of the snapshot. + */ + private String etag; + + /** + * Creates an instance of SnapshotProperties class. + */ + public SnapshotProperties() { + } + + /** + * Get the provisioningState property: The provisioning state of the snapshot. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the status property: The current status of the snapshot. + * + * @return the status value. + */ + public SnapshotStatus status() { + return this.status; + } + + /** + * Get the filters property: A list of filters used to filter the key-values included in the snapshot. + * + * @return the filters value. + */ + public List filters() { + return this.filters; + } + + /** + * Set the filters property: A list of filters used to filter the key-values included in the snapshot. + * + * @param filters the filters value to set. + * @return the SnapshotProperties object itself. + */ + public SnapshotProperties withFilters(List filters) { + this.filters = filters; + return this; + } + + /** + * Get the compositionType property: The composition type describes how the key-values within the snapshot are + * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' + * composition type ensures there are no two key-values containing the same key and label. + * + * @return the compositionType value. + */ + public CompositionType compositionType() { + return this.compositionType; + } + + /** + * Set the compositionType property: The composition type describes how the key-values within the snapshot are + * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' + * composition type ensures there are no two key-values containing the same key and label. + * + * @param compositionType the compositionType value to set. + * @return the SnapshotProperties object itself. + */ + public SnapshotProperties withCompositionType(CompositionType compositionType) { + this.compositionType = compositionType; + return this; + } + + /** + * Get the created property: The time that the snapshot was created. + * + * @return the created value. + */ + public OffsetDateTime created() { + return this.created; + } + + /** + * Get the expires property: The time that the snapshot will expire. + * + * @return the expires value. + */ + public OffsetDateTime expires() { + return this.expires; + } + + /** + * Get the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived + * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the + * default lifetime of key-value revisions will be used. + * + * @return the retentionPeriod value. + */ + public Long retentionPeriod() { + return this.retentionPeriod; + } + + /** + * Set the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived + * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the + * default lifetime of key-value revisions will be used. + * + * @param retentionPeriod the retentionPeriod value to set. + * @return the SnapshotProperties object itself. + */ + public SnapshotProperties withRetentionPeriod(Long retentionPeriod) { + this.retentionPeriod = retentionPeriod; + return this; + } + + /** + * Get the size property: The size in bytes of the snapshot. + * + * @return the size value. + */ + public Long size() { + return this.size; + } + + /** + * Get the itemsCount property: The amount of key-values in the snapshot. + * + * @return the itemsCount value. + */ + public Long itemsCount() { + return this.itemsCount; + } + + /** + * Get the tags property: The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager + * (ARM) tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager + * (ARM) tags. + * + * @param tags the tags value to set. + * @return the SnapshotProperties object itself. + */ + public SnapshotProperties withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the etag property: A value representing the current state of the snapshot. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (filters() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property filters in model SnapshotProperties")); + } else { + filters().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SnapshotProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("filters", this.filters, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("compositionType", + this.compositionType == null ? null : this.compositionType.toString()); + jsonWriter.writeNumberField("retentionPeriod", this.retentionPeriod); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SnapshotProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SnapshotProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SnapshotProperties. + */ + public static SnapshotProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SnapshotProperties deserializedSnapshotProperties = new SnapshotProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("filters".equals(fieldName)) { + List filters = reader.readArray(reader1 -> KeyValueFilter.fromJson(reader1)); + deserializedSnapshotProperties.filters = filters; + } else if ("provisioningState".equals(fieldName)) { + deserializedSnapshotProperties.provisioningState = ProvisioningState.fromString(reader.getString()); + } else if ("status".equals(fieldName)) { + deserializedSnapshotProperties.status = SnapshotStatus.fromString(reader.getString()); + } else if ("compositionType".equals(fieldName)) { + deserializedSnapshotProperties.compositionType = CompositionType.fromString(reader.getString()); + } else if ("created".equals(fieldName)) { + deserializedSnapshotProperties.created = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("expires".equals(fieldName)) { + deserializedSnapshotProperties.expires = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("retentionPeriod".equals(fieldName)) { + deserializedSnapshotProperties.retentionPeriod = reader.getNullable(JsonReader::getLong); + } else if ("size".equals(fieldName)) { + deserializedSnapshotProperties.size = reader.getNullable(JsonReader::getLong); + } else if ("itemsCount".equals(fieldName)) { + deserializedSnapshotProperties.itemsCount = reader.getNullable(JsonReader::getLong); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedSnapshotProperties.tags = tags; + } else if ("etag".equals(fieldName)) { + deserializedSnapshotProperties.etag = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSnapshotProperties; + }); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java index 0a03fa178fa24..e24a7869d77eb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the inner data models for AppConfigurationManagementClient. null. */ +/** + * Package containing the inner data models for AppConfigurationManagementClient. + * null. + */ package com.azure.resourcemanager.appconfiguration.fluent.models; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java index 6f2e40677ff07..27f4d1f4ae436 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the service clients for AppConfigurationManagementClient. null. */ +/** + * Package containing the service clients for AppConfigurationManagementClient. + * null. + */ package com.azure.resourcemanager.appconfiguration.fluent; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java index 82d027a3e294f..b58f725625edc 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java @@ -14,7 +14,9 @@ import com.azure.core.util.serializer.SerializerAdapter; import java.time.Duration; -/** A builder for creating a new instance of the AppConfigurationManagementClientImpl type. */ +/** + * A builder for creating a new instance of the AppConfigurationManagementClientImpl type. + */ @ServiceClientBuilder(serviceClients = { AppConfigurationManagementClientImpl.class }) public final class AppConfigurationManagementClientBuilder { /* @@ -24,7 +26,7 @@ public final class AppConfigurationManagementClientBuilder { /** * Sets The Microsoft Azure subscription ID. - * + * * @param subscriptionId the subscriptionId value. * @return the AppConfigurationManagementClientBuilder. */ @@ -40,7 +42,7 @@ public AppConfigurationManagementClientBuilder subscriptionId(String subscriptio /** * Sets server parameter. - * + * * @param endpoint the endpoint value. * @return the AppConfigurationManagementClientBuilder. */ @@ -56,7 +58,7 @@ public AppConfigurationManagementClientBuilder endpoint(String endpoint) { /** * Sets The environment to connect to. - * + * * @param environment the environment value. * @return the AppConfigurationManagementClientBuilder. */ @@ -72,7 +74,7 @@ public AppConfigurationManagementClientBuilder environment(AzureEnvironment envi /** * Sets The HTTP pipeline to send requests through. - * + * * @param pipeline the pipeline value. * @return the AppConfigurationManagementClientBuilder. */ @@ -88,7 +90,7 @@ public AppConfigurationManagementClientBuilder pipeline(HttpPipeline pipeline) { /** * Sets The default poll interval for long-running operation. - * + * * @param defaultPollInterval the defaultPollInterval value. * @return the AppConfigurationManagementClientBuilder. */ @@ -104,7 +106,7 @@ public AppConfigurationManagementClientBuilder defaultPollInterval(Duration defa /** * Sets The serializer to serialize an object into a string. - * + * * @param serializerAdapter the serializerAdapter value. * @return the AppConfigurationManagementClientBuilder. */ @@ -115,7 +117,7 @@ public AppConfigurationManagementClientBuilder serializerAdapter(SerializerAdapt /** * Builds an instance of AppConfigurationManagementClientImpl with the provided parameters. - * + * * @return an instance of AppConfigurationManagementClientImpl. */ public AppConfigurationManagementClientImpl buildClient() { @@ -130,7 +132,7 @@ public AppConfigurationManagementClientImpl buildClient() { ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); AppConfigurationManagementClientImpl client = new AppConfigurationManagementClientImpl(localPipeline, - localSerializerAdapter, localDefaultPollInterval, localEnvironment, subscriptionId, localEndpoint); + localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); return client; } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java index 5ddeed573ac43..1a62618ee5df5 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientImpl.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.appconfiguration.implementation; import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpResponse; @@ -29,6 +30,7 @@ import com.azure.resourcemanager.appconfiguration.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.appconfiguration.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.appconfiguration.fluent.ReplicasClient; +import com.azure.resourcemanager.appconfiguration.fluent.SnapshotsClient; import java.io.IOException; import java.lang.reflect.Type; import java.nio.ByteBuffer; @@ -38,156 +40,196 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** Initializes a new instance of the AppConfigurationManagementClientImpl type. */ +/** + * Initializes a new instance of the AppConfigurationManagementClientImpl type. + */ @ServiceClient(builder = AppConfigurationManagementClientBuilder.class) public final class AppConfigurationManagementClientImpl implements AppConfigurationManagementClient { - /** The Microsoft Azure subscription ID. */ + /** + * The Microsoft Azure subscription ID. + */ private final String subscriptionId; /** * Gets The Microsoft Azure subscription ID. - * + * * @return the subscriptionId value. */ public String getSubscriptionId() { return this.subscriptionId; } - /** server parameter. */ + /** + * server parameter. + */ private final String endpoint; /** * Gets server parameter. - * + * * @return the endpoint value. */ public String getEndpoint() { return this.endpoint; } - /** Api Version. */ + /** + * Api Version. + */ private final String apiVersion; /** * Gets Api Version. - * + * * @return the apiVersion value. */ public String getApiVersion() { return this.apiVersion; } - /** The HTTP pipeline to send requests through. */ + /** + * The HTTP pipeline to send requests through. + */ private final HttpPipeline httpPipeline; /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { return this.httpPipeline; } - /** The serializer to serialize an object into a string. */ + /** + * The serializer to serialize an object into a string. + */ private final SerializerAdapter serializerAdapter; /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } - /** The default poll interval for long-running operation. */ + /** + * The default poll interval for long-running operation. + */ private final Duration defaultPollInterval; /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } - /** The ConfigurationStoresClient object to access its operations. */ + /** + * The ConfigurationStoresClient object to access its operations. + */ private final ConfigurationStoresClient configurationStores; /** * Gets the ConfigurationStoresClient object to access its operations. - * + * * @return the ConfigurationStoresClient object. */ public ConfigurationStoresClient getConfigurationStores() { return this.configurationStores; } - /** The OperationsClient object to access its operations. */ + /** + * The OperationsClient object to access its operations. + */ private final OperationsClient operations; /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ public OperationsClient getOperations() { return this.operations; } - /** The PrivateEndpointConnectionsClient object to access its operations. */ + /** + * The PrivateEndpointConnectionsClient object to access its operations. + */ private final PrivateEndpointConnectionsClient privateEndpointConnections; /** * Gets the PrivateEndpointConnectionsClient object to access its operations. - * + * * @return the PrivateEndpointConnectionsClient object. */ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { return this.privateEndpointConnections; } - /** The PrivateLinkResourcesClient object to access its operations. */ + /** + * The PrivateLinkResourcesClient object to access its operations. + */ private final PrivateLinkResourcesClient privateLinkResources; /** * Gets the PrivateLinkResourcesClient object to access its operations. - * + * * @return the PrivateLinkResourcesClient object. */ public PrivateLinkResourcesClient getPrivateLinkResources() { return this.privateLinkResources; } - /** The KeyValuesClient object to access its operations. */ + /** + * The KeyValuesClient object to access its operations. + */ private final KeyValuesClient keyValues; /** * Gets the KeyValuesClient object to access its operations. - * + * * @return the KeyValuesClient object. */ public KeyValuesClient getKeyValues() { return this.keyValues; } - /** The ReplicasClient object to access its operations. */ + /** + * The ReplicasClient object to access its operations. + */ private final ReplicasClient replicas; /** * Gets the ReplicasClient object to access its operations. - * + * * @return the ReplicasClient object. */ public ReplicasClient getReplicas() { return this.replicas; } + /** + * The SnapshotsClient object to access its operations. + */ + private final SnapshotsClient snapshots; + + /** + * Gets the SnapshotsClient object to access its operations. + * + * @return the SnapshotsClient object. + */ + public SnapshotsClient getSnapshots() { + return this.snapshots; + } + /** * Initializes an instance of AppConfigurationManagementClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. @@ -202,18 +244,19 @@ public ReplicasClient getReplicas() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-03-01"; + this.apiVersion = "2024-05-01"; this.configurationStores = new ConfigurationStoresClientImpl(this); this.operations = new OperationsClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); this.keyValues = new KeyValuesClientImpl(this); this.replicas = new ReplicasClientImpl(this); + this.snapshots = new SnapshotsClientImpl(this); } /** * Gets default client context. - * + * * @return the default client context. */ public Context getContext() { @@ -222,7 +265,7 @@ public Context getContext() { /** * Merges default client context with provided context. - * + * * @param context the context to be merged with default client context. * @return the merged context. */ @@ -232,7 +275,7 @@ public Context mergeContext(Context context) { /** * Gets long running operation result. - * + * * @param activationResponse the response of activation operation. * @param httpPipeline the http pipeline. * @param pollResultType type of poll result. @@ -250,7 +293,7 @@ public PollerFlux, U> getLroResult(Mono type of poll result. * @param type of final result. @@ -313,7 +356,7 @@ public int getStatusCode() { } public String getHeaderValue(String s) { - return httpHeaders.getValue(s); + return httpHeaders.getValue(HttpHeaderName.fromString(s)); } public HttpHeaders getHeaders() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java index 0b77fd3291cc1..467233e102fd4 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore; import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters; import com.azure.resourcemanager.appconfiguration.models.CreateMode; +import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties; import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionReference; import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; @@ -110,6 +111,10 @@ public Boolean enablePurgeProtection() { return this.innerModel().enablePurgeProtection(); } + public DataPlaneProxyProperties dataPlaneProxy() { + return this.innerModel().dataPlaneProxy(); + } + public CreateMode createMode() { return this.innerModel().createMode(); } @@ -189,8 +194,8 @@ public ConfigurationStore apply(Context context) { com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.configStoreName = Utils.getValueFromIdByName(innerObject.id(), "configurationStores"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.configStoreName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configurationStores"); } public ConfigurationStore refresh() { @@ -313,6 +318,16 @@ public ConfigurationStoreImpl withEnablePurgeProtection(Boolean enablePurgeProte } } + public ConfigurationStoreImpl withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) { + if (isInCreateMode()) { + this.innerModel().withDataPlaneProxy(dataPlaneProxy); + return this; + } else { + this.updateConfigStoreUpdateParameters.withDataPlaneProxy(dataPlaneProxy); + return this; + } + } + public ConfigurationStoreImpl withCreateMode(CreateMode createMode) { this.innerModel().withCreateMode(createMode); return this; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java index 060f20b4e1a7b..5e739dabcc602 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java @@ -46,17 +46,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in ConfigurationStoresClient. */ +/** + * An instance of this class provides access to all the operations defined in ConfigurationStoresClient. + */ public final class ConfigurationStoresClientImpl implements ConfigurationStoresClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final ConfigurationStoresService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final AppConfigurationManagementClientImpl client; /** * Initializes an instance of ConfigurationStoresClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ConfigurationStoresClientImpl(AppConfigurationManagementClientImpl client) { @@ -212,15 +218,15 @@ Mono> listDeletedNext( /** * Lists the configuration stores for a given subscription. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String skipToken) { @@ -243,16 +249,16 @@ private Mono> listSinglePageAsync(String /** * Lists the configuration stores for a given subscription. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String skipToken, Context context) { @@ -275,10 +281,10 @@ private Mono> listSinglePageAsync(String /** * Lists the configuration stores for a given subscription. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -291,7 +297,7 @@ private PagedFlux listAsync(String skipToken) { /** * Lists the configuration stores for a given subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores as paginated response with {@link PagedFlux}. @@ -304,10 +310,10 @@ private PagedFlux listAsync() { /** * Lists the configuration stores for a given subscription. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -322,7 +328,7 @@ private PagedFlux listAsync(String skipToken, Context c /** * Lists the configuration stores for a given subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores as paginated response with {@link PagedIterable}. @@ -335,10 +341,10 @@ public PagedIterable list() { /** * Lists the configuration stores for a given subscription. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -352,16 +358,16 @@ public PagedIterable list(String skipToken, Context con /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -390,17 +396,17 @@ private Mono> listByResourceGroupSinglePa /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -428,11 +434,11 @@ private Mono> listByResourceGroupSinglePa /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -446,7 +452,7 @@ private PagedFlux listByResourceGroupAsync(String resou /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -462,11 +468,11 @@ private PagedFlux listByResourceGroupAsync(String resou /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -482,7 +488,7 @@ private PagedFlux listByResourceGroupAsync(String resou /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -497,11 +503,11 @@ public PagedIterable listByResourceGroup(String resourc /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -516,14 +522,14 @@ public PagedIterable listByResourceGroup(String resourc /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of the specified configuration store along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -554,7 +560,7 @@ private Mono> getByResourceGroupWithResponseAs /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -562,7 +568,7 @@ private Mono> getByResourceGroupWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of the specified configuration store along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -591,7 +597,7 @@ private Mono> getByResourceGroupWithResponseAs /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -607,7 +613,7 @@ private Mono getByResourceGroupAsync(String resourceGro /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -624,7 +630,7 @@ public Response getByResourceGroupWithResponse(String r /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -639,7 +645,7 @@ public ConfigurationStoreInner getByResourceGroup(String resourceGroupName, Stri /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -647,7 +653,7 @@ public ConfigurationStoreInner getByResourceGroup(String resourceGroupName, Stri * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the configuration store along with all resource properties along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync(String resourceGroupName, String configStoreName, @@ -684,7 +690,7 @@ private Mono>> createWithResponseAsync(String resource /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -693,7 +699,7 @@ private Mono>> createWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the configuration store along with all resource properties along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createWithResponseAsync(String resourceGroupName, String configStoreName, @@ -728,7 +734,7 @@ private Mono>> createWithResponseAsync(String resource /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -749,7 +755,7 @@ private PollerFlux, ConfigurationStoreInner> /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -772,7 +778,7 @@ private PollerFlux, ConfigurationStoreInner> /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -789,7 +795,7 @@ public SyncPoller, ConfigurationStoreInner> /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -809,7 +815,7 @@ public SyncPoller, ConfigurationStoreInner> /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -827,7 +833,7 @@ private Mono createAsync(String resourceGroupName, Stri /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -846,7 +852,7 @@ private Mono createAsync(String resourceGroupName, Stri /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -863,7 +869,7 @@ public ConfigurationStoreInner create(String resourceGroupName, String configSto /** * Creates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreCreationParameters The parameters for creating a configuration store. @@ -881,7 +887,7 @@ public ConfigurationStoreInner create(String resourceGroupName, String configSto /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -916,7 +922,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -952,7 +958,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -969,7 +975,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -989,7 +995,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1004,7 +1010,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -1021,7 +1027,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1037,7 +1043,7 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName) /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -1054,7 +1060,7 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName, /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1068,7 +1074,7 @@ public void delete(String resourceGroupName, String configStoreName) { /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -1083,7 +1089,7 @@ public void delete(String resourceGroupName, String configStoreName, Context con /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1091,7 +1097,7 @@ public void delete(String resourceGroupName, String configStoreName, Context con * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the configuration store along with all resource properties along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String configStoreName, @@ -1128,7 +1134,7 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1137,7 +1143,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the configuration store along with all resource properties along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String configStoreName, @@ -1172,7 +1178,7 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1194,7 +1200,7 @@ private PollerFlux, ConfigurationStoreInner> /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1217,7 +1223,7 @@ private PollerFlux, ConfigurationStoreInner> /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1235,7 +1241,7 @@ public SyncPoller, ConfigurationStoreInner> /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1255,7 +1261,7 @@ public SyncPoller, ConfigurationStoreInner> /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1273,7 +1279,7 @@ private Mono updateAsync(String resourceGroupName, Stri /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1292,7 +1298,7 @@ private Mono updateAsync(String resourceGroupName, Stri /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1309,7 +1315,7 @@ public ConfigurationStoreInner update(String resourceGroupName, String configSto /** * Updates a configuration store with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param configStoreUpdateParameters The parameters for updating a configuration store. @@ -1327,17 +1333,17 @@ public ConfigurationStoreInner update(String resourceGroupName, String configSto /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list API keys along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeysSinglePageAsync(String resourceGroupName, String configStoreName, @@ -1369,18 +1375,18 @@ private Mono> listKeysSinglePageAsync(String resource /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list API keys along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeysSinglePageAsync(String resourceGroupName, String configStoreName, @@ -1412,12 +1418,12 @@ private Mono> listKeysSinglePageAsync(String resource /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1431,7 +1437,7 @@ private PagedFlux listKeysAsync(String resourceGroupName, String co /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1448,12 +1454,12 @@ private PagedFlux listKeysAsync(String resourceGroupName, String co /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1469,7 +1475,7 @@ private PagedFlux listKeysAsync(String resourceGroupName, String co /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1485,12 +1491,12 @@ public PagedIterable listKeys(String resourceGroupName, String conf /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1505,7 +1511,7 @@ public PagedIterable listKeys(String resourceGroupName, String conf /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -1513,7 +1519,7 @@ public PagedIterable listKeys(String resourceGroupName, String conf * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an API key used for authenticating with a configuration store endpoint along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateKeyWithResponseAsync(String resourceGroupName, String configStoreName, @@ -1550,7 +1556,7 @@ private Mono> regenerateKeyWithResponseAsync(String resour /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -1559,7 +1565,7 @@ private Mono> regenerateKeyWithResponseAsync(String resour * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an API key used for authenticating with a configuration store endpoint along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regenerateKeyWithResponseAsync(String resourceGroupName, String configStoreName, @@ -1594,15 +1600,15 @@ private Mono> regenerateKeyWithResponseAsync(String resour /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an API key used for authenticating with a configuration store endpoint on successful completion of {@link - * Mono}. + * @return an API key used for authenticating with a configuration store endpoint on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono regenerateKeyAsync(String resourceGroupName, String configStoreName, @@ -1613,7 +1619,7 @@ private Mono regenerateKeyAsync(String resourceGroupName, String co /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -1632,7 +1638,7 @@ public Response regenerateKeyWithResponse(String resourceGroupName, /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -1650,11 +1656,11 @@ public ApiKeyInner regenerateKey(String resourceGroupName, String configStoreNam /** * Gets information about the deleted configuration stores in a subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about the deleted configuration stores in a subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDeletedSinglePageAsync() { @@ -1677,13 +1683,13 @@ private Mono> listDeletedSinglePag /** * Gets information about the deleted configuration stores in a subscription. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about the deleted configuration stores in a subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDeletedSinglePageAsync(Context context) { @@ -1706,11 +1712,11 @@ private Mono> listDeletedSinglePag /** * Gets information about the deleted configuration stores in a subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedFlux}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listDeletedAsync() { @@ -1720,13 +1726,13 @@ private PagedFlux listDeletedAsync() { /** * Gets information about the deleted configuration stores in a subscription. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedFlux}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listDeletedAsync(Context context) { @@ -1736,11 +1742,11 @@ private PagedFlux listDeletedAsync(Context conte /** * Gets information about the deleted configuration stores in a subscription. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedIterable}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDeleted() { @@ -1749,13 +1755,13 @@ public PagedIterable listDeleted() { /** * Gets information about the deleted configuration stores in a subscription. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedIterable}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listDeleted(Context context) { @@ -1764,14 +1770,14 @@ public PagedIterable listDeleted(Context context /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store along with {@link Response} on successful completion of {@link - * Mono}. + * @return a deleted Azure app configuration store along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getDeletedWithResponseAsync(String location, @@ -1800,15 +1806,15 @@ private Mono> getDeletedWithResponseAsy /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store along with {@link Response} on successful completion of {@link - * Mono}. + * @return a deleted Azure app configuration store along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getDeletedWithResponseAsync(String location, @@ -1836,7 +1842,7 @@ private Mono> getDeletedWithResponseAsy /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1851,7 +1857,7 @@ private Mono getDeletedAsync(String location, St /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -1868,7 +1874,7 @@ public Response getDeletedWithResponse(String lo /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1883,7 +1889,7 @@ public DeletedConfigurationStoreInner getDeleted(String location, String configS /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1917,7 +1923,7 @@ private Mono>> purgeDeletedWithResponseAsync(String lo /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -1952,7 +1958,7 @@ private Mono>> purgeDeletedWithResponseAsync(String lo /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1969,7 +1975,7 @@ private PollerFlux, Void> beginPurgeDeletedAsync(String locatio /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -1989,7 +1995,7 @@ private PollerFlux, Void> beginPurgeDeletedAsync(String locatio /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2004,7 +2010,7 @@ public SyncPoller, Void> beginPurgeDeleted(String location, Str /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -2021,7 +2027,7 @@ public SyncPoller, Void> beginPurgeDeleted(String location, Str /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2036,7 +2042,7 @@ private Mono purgeDeletedAsync(String location, String configStoreName) { /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -2053,7 +2059,7 @@ private Mono purgeDeletedAsync(String location, String configStoreName, Co /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2067,7 +2073,7 @@ public void purgeDeleted(String location, String configStoreName) { /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -2082,14 +2088,13 @@ public void purgeDeleted(String location, String configStoreName, Context contex /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -2109,15 +2114,14 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -2137,14 +2141,13 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2166,15 +2169,14 @@ private Mono> listByResourceGroupNextSing /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, @@ -2195,14 +2197,13 @@ private Mono> listByResourceGroupNextSing /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list API keys along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeysNextSinglePageAsync(String nextLink) { @@ -2223,15 +2224,14 @@ private Mono> listKeysNextSinglePageAsync(String next /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list API keys along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listKeysNextSinglePageAsync(String nextLink, Context context) { @@ -2251,14 +2251,13 @@ private Mono> listKeysNextSinglePageAsync(String next /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of deleted configuration stores along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of deleted configuration stores along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDeletedNextSinglePageAsync(String nextLink) { @@ -2279,15 +2278,14 @@ private Mono> listDeletedNextSingl /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of deleted configuration stores along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of deleted configuration stores along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listDeletedNextSinglePageAsync(String nextLink, diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java index 49d2b2c3238d7..b4900aaed4ecf 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java @@ -34,24 +34,24 @@ public ConfigurationStoresImpl(ConfigurationStoresClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); } public PagedIterable list(String skipToken, Context context) { PagedIterable inner = this.serviceClient().list(skipToken, context); - return Utils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, String skipToken, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, skipToken, context); - return Utils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String configStoreName, @@ -85,14 +85,14 @@ public void delete(String resourceGroupName, String configStoreName, Context con public PagedIterable listKeys(String resourceGroupName, String configStoreName) { PagedIterable inner = this.serviceClient().listKeys(resourceGroupName, configStoreName); - return Utils.mapPage(inner, inner1 -> new ApiKeyImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ApiKeyImpl(inner1, this.manager())); } public PagedIterable listKeys(String resourceGroupName, String configStoreName, String skipToken, Context context) { PagedIterable inner = this.serviceClient().listKeys(resourceGroupName, configStoreName, skipToken, context); - return Utils.mapPage(inner, inner1 -> new ApiKeyImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ApiKeyImpl(inner1, this.manager())); } public Response regenerateKeyWithResponse(String resourceGroupName, String configStoreName, @@ -120,12 +120,12 @@ public ApiKey regenerateKey(String resourceGroupName, String configStoreName, public PagedIterable listDeleted() { PagedIterable inner = this.serviceClient().listDeleted(); - return Utils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager())); } public PagedIterable listDeleted(Context context) { PagedIterable inner = this.serviceClient().listDeleted(context); - return Utils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager())); } public Response getDeletedWithResponse(String location, String configStoreName, @@ -158,12 +158,12 @@ public void purgeDeleted(String location, String configStoreName, Context contex } public ConfigurationStore 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); @@ -172,12 +172,12 @@ public ConfigurationStore getById(String id) { } public Response 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); @@ -186,12 +186,12 @@ public Response getByIdWithResponse(String id, Context conte } 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); @@ -200,12 +200,12 @@ 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValueImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValueImpl.java index 954edfc762c9f..6176ba68daa95 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValueImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValueImpl.java @@ -137,9 +137,9 @@ public KeyValue apply(Context context) { com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.configStoreName = Utils.getValueFromIdByName(innerObject.id(), "configurationStores"); - this.keyValueName = Utils.getValueFromIdByName(innerObject.id(), "keyValues"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.configStoreName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configurationStores"); + this.keyValueName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "keyValues"); } public KeyValue refresh() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java index 89f6929de3fb2..2cba097a990d6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java @@ -33,17 +33,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KeyValuesClient. */ +/** + * An instance of this class provides access to all the operations defined in KeyValuesClient. + */ public final class KeyValuesClientImpl implements KeyValuesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KeyValuesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final AppConfigurationManagementClientImpl client; /** * Initializes an instance of KeyValuesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KeyValuesClientImpl(AppConfigurationManagementClientImpl client) { @@ -93,17 +99,19 @@ Mono>> delete(@HostParam("$host") String endpoint, } /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified key-value along with {@link Response} on successful completion of {@link - * Mono}. + * @return the properties of the specified key-value along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String configStoreName, @@ -135,18 +143,20 @@ private Mono> getWithResponseAsync(String resourceGroupN } /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified key-value along with {@link Response} on successful completion of {@link - * Mono}. + * @return the properties of the specified key-value along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String configStoreName, @@ -177,12 +187,14 @@ private Mono> getWithResponseAsync(String resourceGroupN } /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -195,12 +207,14 @@ private Mono getAsync(String resourceGroupName, String configStor } /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -214,12 +228,14 @@ public Response getWithResponse(String resourceGroupName, String } /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -231,18 +247,19 @@ public KeyValueInner get(String resourceGroupName, String configStoreName, Strin } /** - * Creates a key-value. - * + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param keyValueParameters The parameters for creating a key-value. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the key-value resource along with all resource properties along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -278,19 +295,20 @@ private Mono> createOrUpdateWithResponseAsync(String res } /** - * Creates a key-value. - * + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param keyValueParameters The parameters for creating a key-value. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the key-value resource along with all resource properties along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -324,12 +342,13 @@ private Mono> createOrUpdateWithResponseAsync(String res } /** - * Creates a key-value. - * + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -344,12 +363,13 @@ private Mono createOrUpdateAsync(String resourceGroupName, String } /** - * Creates a key-value. - * + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param keyValueParameters The parameters for creating a key-value. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -365,12 +385,13 @@ public Response createOrUpdateWithResponse(String resourceGroupNa } /** - * Creates a key-value. - * + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -384,12 +405,13 @@ public KeyValueInner createOrUpdate(String resourceGroupName, String configStore } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -425,12 +447,13 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -466,12 +489,13 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -487,12 +511,13 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -510,12 +535,13 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -528,12 +554,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -547,12 +574,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -565,12 +593,13 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName, } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -585,12 +614,13 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName, } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -601,12 +631,13 @@ public void delete(String resourceGroupName, String configStoreName, String keyV } /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java index 147c7274c3521..91eba150cff60 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java @@ -56,17 +56,17 @@ public void delete(String resourceGroupName, String configStoreName, String keyV } public KeyValue 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String keyValueName = Utils.getValueFromIdByName(id, "keyValues"); + String keyValueName = ResourceManagerUtils.getValueFromIdByName(id, "keyValues"); if (keyValueName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keyValues'.", id))); @@ -75,17 +75,17 @@ public KeyValue getById(String id) { } public Response 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String keyValueName = Utils.getValueFromIdByName(id, "keyValues"); + String keyValueName = ResourceManagerUtils.getValueFromIdByName(id, "keyValues"); if (keyValueName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keyValues'.", id))); @@ -94,17 +94,17 @@ public Response getByIdWithResponse(String id, Context context) { } 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String keyValueName = Utils.getValueFromIdByName(id, "keyValues"); + String keyValueName = ResourceManagerUtils.getValueFromIdByName(id, "keyValues"); if (keyValueName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keyValues'.", id))); @@ -113,17 +113,17 @@ 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String keyValueName = Utils.getValueFromIdByName(id, "keyValues"); + String keyValueName = ResourceManagerUtils.getValueFromIdByName(id, "keyValues"); if (keyValueName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'keyValues'.", id))); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java index 49515a7737ab2..018c903303d91 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java @@ -34,17 +34,23 @@ import com.azure.resourcemanager.appconfiguration.models.OperationDefinitionListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public final class OperationsClientImpl implements OperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final OperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final AppConfigurationManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ OperationsClientImpl(AppConfigurationManagementClientImpl client) { @@ -98,13 +104,13 @@ Mono> listNext( /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to check the availability of a resource name along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -133,14 +139,14 @@ Mono> listNext( /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to check the availability of a resource name along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> checkNameAvailabilityWithResponseAsync( @@ -167,13 +173,13 @@ private Mono> checkNameAvailabilityWithRes /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name on successful completion of {@link - * Mono}. + * @return the result of a request to check the availability of a resource name on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono @@ -184,7 +190,7 @@ private Mono> checkNameAvailabilityWithRes /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -200,7 +206,7 @@ public Response checkNameAvailabilityWithResponse( /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -215,15 +221,15 @@ public Response checkNameAvailabilityWithResponse( /** * Lists the operations available from this provider. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration store operations along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String skipToken) { @@ -241,16 +247,16 @@ private Mono> listSinglePageAsync(String /** * Lists the operations available from this provider. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration store operations along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String skipToken, Context context) { @@ -267,15 +273,15 @@ private Mono> listSinglePageAsync(String /** * Lists the operations available from this provider. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedFlux}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String skipToken) { @@ -284,11 +290,11 @@ private PagedFlux listAsync(String skipToken) { /** * Lists the operations available from this provider. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedFlux}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -298,16 +304,16 @@ private PagedFlux listAsync() { /** * Lists the operations available from this provider. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedFlux}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String skipToken, Context context) { @@ -317,11 +323,11 @@ private PagedFlux listAsync(String skipToken, Context /** * Lists the operations available from this provider. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedIterable}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -331,16 +337,16 @@ public PagedIterable list() { /** * Lists the operations available from this provider. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedIterable}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String skipToken, Context context) { @@ -349,14 +355,14 @@ public PagedIterable list(String skipToken, Context co /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to check the availability of a resource name along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regionalCheckNameAvailabilityWithResponseAsync(String location, @@ -388,7 +394,7 @@ private Mono> regionalCheckNameAvailabilit /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. @@ -396,7 +402,7 @@ private Mono> regionalCheckNameAvailabilit * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to check the availability of a resource name along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> regionalCheckNameAvailabilityWithResponseAsync(String location, @@ -426,14 +432,14 @@ private Mono> regionalCheckNameAvailabilit /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name on successful completion of {@link - * Mono}. + * @return the result of a request to check the availability of a resource name on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono regionalCheckNameAvailabilityAsync(String location, @@ -444,7 +450,7 @@ private Mono regionalCheckNameAvailabilityAsync(Str /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. @@ -462,7 +468,7 @@ public Response regionalCheckNameAvailabilityWithRe /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -479,14 +485,13 @@ public NameAvailabilityStatusInner regionalCheckNameAvailability(String location /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration store operations along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -506,15 +511,14 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration store operations along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java index 85f8fd216bd14..e176f905b9bde 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java @@ -54,12 +54,12 @@ public Response checkNameAvailabilityWithResponse( public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager())); } public PagedIterable list(String skipToken, Context context) { PagedIterable inner = this.serviceClient().list(skipToken, context); - return Utils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager())); } public Response regionalCheckNameAvailabilityWithResponse(String location, diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionImpl.java index 2ed879f38f09e..81426dfc53125 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionImpl.java @@ -113,9 +113,10 @@ public PrivateEndpointConnection apply(Context context) { com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.configStoreName = Utils.getValueFromIdByName(innerObject.id(), "configurationStores"); - this.privateEndpointConnectionName = Utils.getValueFromIdByName(innerObject.id(), "privateEndpointConnections"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.configStoreName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "configurationStores"); + this.privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateEndpointConnections"); } public PrivateEndpointConnection refresh() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java index 44c88475f6457..194b25087c652 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java @@ -38,17 +38,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. + */ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PrivateEndpointConnectionsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final AppConfigurationManagementClientImpl client; /** * Initializes an instance of PrivateEndpointConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateEndpointConnectionsClientImpl(AppConfigurationManagementClientImpl client) { @@ -119,14 +125,14 @@ Mono> listByConfigurationStoreNext /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -159,7 +165,7 @@ Mono> listByConfigurationStoreNext /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -167,7 +173,7 @@ Mono> listByConfigurationStoreNext * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -199,7 +205,7 @@ Mono> listByConfigurationStoreNext /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -216,7 +222,7 @@ private PagedFlux listByConfigurationStoreAsync( /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -235,7 +241,7 @@ private PagedFlux listByConfigurationStoreAsync( /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -251,7 +257,7 @@ public PagedIterable listByConfigurationStore(St /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -268,15 +274,15 @@ public PagedIterable listByConfigurationStore(St /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response} on successful completion of {@link Mono}. + * @return the specified private endpoint connection associated with the configuration store along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -311,7 +317,7 @@ private Mono> getWithResponseAsync(Stri /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -319,8 +325,8 @@ private Mono> getWithResponseAsync(Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response} on successful completion of {@link Mono}. + * @return the specified private endpoint connection associated with the configuration store along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -353,7 +359,7 @@ private Mono> getWithResponseAsync(Stri /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -361,7 +367,7 @@ private Mono> getWithResponseAsync(Stri * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified private endpoint connection associated with the configuration store on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String configStoreName, @@ -372,7 +378,7 @@ private Mono getAsync(String resourceGroupName, /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -380,8 +386,8 @@ private Mono getAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getWithResponse(String resourceGroupName, String configStoreName, @@ -391,7 +397,7 @@ public Response getWithResponse(String resourceG /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -411,7 +417,7 @@ public PrivateEndpointConnectionInner get(String resourceGroupName, String confi * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -463,7 +469,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -515,7 +521,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -540,7 +546,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -567,7 +573,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -591,7 +597,7 @@ public SyncPoller, PrivateEndpointCon * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -616,7 +622,7 @@ public SyncPoller, PrivateEndpointCon * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -637,7 +643,7 @@ private Mono createOrUpdateAsync(String resource * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -660,7 +666,7 @@ private Mono createOrUpdateAsync(String resource * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -681,7 +687,7 @@ public PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, S * Update the state of the specified private endpoint connection associated with the configuration store. This * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created * with the Network resource provider. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -702,7 +708,7 @@ public PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, S /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -744,7 +750,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -785,7 +791,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -805,7 +811,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -827,7 +833,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -844,7 +850,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -863,7 +869,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -881,7 +887,7 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -900,7 +906,7 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -915,7 +921,7 @@ public void delete(String resourceGroupName, String configStoreName, String priv /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -932,14 +938,13 @@ public void delete(String resourceGroupName, String configStoreName, String priv /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -962,15 +967,14 @@ public void delete(String resourceGroupName, String configStoreName, String priv /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java index 8190bf31c934a..46d613eb65e7f 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java @@ -31,14 +31,14 @@ public PagedIterable listByConfigurationStore(String String configStoreName) { PagedIterable inner = this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); } public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName, Context context) { PagedIterable inner = this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName, context); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String configStoreName, @@ -74,17 +74,18 @@ public void delete(String resourceGroupName, String configStoreName, String priv } public PrivateEndpointConnection 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); @@ -94,17 +95,18 @@ public PrivateEndpointConnection getById(String id) { } public Response 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); @@ -113,17 +115,18 @@ public Response getByIdWithResponse(String id, Contex } 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); @@ -132,17 +135,18 @@ 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java index 9aa3675cda730..beace945f5205 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java @@ -30,17 +30,23 @@ import com.azure.resourcemanager.appconfiguration.models.PrivateLinkResourceListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. + */ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PrivateLinkResourcesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final AppConfigurationManagementClientImpl client; /** * Initializes an instance of PrivateLinkResourcesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateLinkResourcesClientImpl(AppConfigurationManagementClientImpl client) { @@ -87,14 +93,14 @@ Mono> listByConfigurationStoreNext( /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a configuration store along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return the private link resources that need to be created for a configuration store along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -127,15 +133,15 @@ Mono> listByConfigurationStoreNext( /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the private link resources that need to be created for a configuration store along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return the private link resources that need to be created for a configuration store along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -167,14 +173,14 @@ Mono> listByConfigurationStoreNext( /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByConfigurationStoreAsync(String resourceGroupName, @@ -185,7 +191,7 @@ private PagedFlux listByConfigurationStoreAsync(String /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -193,7 +199,7 @@ private PagedFlux listByConfigurationStoreAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByConfigurationStoreAsync(String resourceGroupName, @@ -205,14 +211,14 @@ private PagedFlux listByConfigurationStoreAsync(String /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByConfigurationStore(String resourceGroupName, @@ -222,7 +228,7 @@ public PagedIterable listByConfigurationStore(String r /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -230,7 +236,7 @@ public PagedIterable listByConfigurationStore(String r * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByConfigurationStore(String resourceGroupName, @@ -240,7 +246,7 @@ public PagedIterable listByConfigurationStore(String r /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. @@ -248,7 +254,7 @@ public PagedIterable listByConfigurationStore(String r * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private link resource that need to be created for a configuration store along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -281,7 +287,7 @@ private Mono> getWithResponseAsync(String res /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. @@ -290,7 +296,7 @@ private Mono> getWithResponseAsync(String res * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private link resource that need to be created for a configuration store along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -322,7 +328,7 @@ private Mono> getWithResponseAsync(String res /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. @@ -330,7 +336,7 @@ private Mono> getWithResponseAsync(String res * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private link resource that need to be created for a configuration store on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String configStoreName, @@ -341,7 +347,7 @@ private Mono getAsync(String resourceGroupName, String /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. @@ -359,7 +365,7 @@ public Response getWithResponse(String resourceGroupNa /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. @@ -375,14 +381,13 @@ public PrivateLinkResourceInner get(String resourceGroupName, String configStore /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByConfigurationStoreNextSinglePageAsync(String nextLink) { @@ -404,15 +409,14 @@ private Mono> listByConfigurationStoreNe /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByConfigurationStoreNextSinglePageAsync(String nextLink, diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java index 9399f28921fd5..dd73be05fcede 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java @@ -31,14 +31,14 @@ public PagedIterable listByConfigurationStore(String resour String configStoreName) { PagedIterable inner = this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName, Context context) { PagedIterable inner = this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName, context); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String configStoreName, diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasClientImpl.java index 6a7476b045362..42bc3ccc00bd6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasClientImpl.java @@ -38,17 +38,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in ReplicasClient. */ +/** + * An instance of this class provides access to all the operations defined in ReplicasClient. + */ public final class ReplicasClientImpl implements ReplicasClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final ReplicasService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final AppConfigurationManagementClientImpl client; /** * Initializes an instance of ReplicasClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ReplicasClientImpl(AppConfigurationManagementClientImpl client) { @@ -116,17 +122,17 @@ Mono> listByConfigurationStoreNext( /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list replicas along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByConfigurationStoreSinglePageAsync(String resourceGroupName, @@ -159,18 +165,18 @@ private Mono> listByConfigurationStoreSinglePageAsyn /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list replicas along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByConfigurationStoreSinglePageAsync(String resourceGroupName, @@ -202,12 +208,12 @@ private Mono> listByConfigurationStoreSinglePageAsyn /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -223,7 +229,7 @@ private PagedFlux listByConfigurationStoreAsync(String resourceGro /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -241,12 +247,12 @@ private PagedFlux listByConfigurationStoreAsync(String resourceGro /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -263,7 +269,7 @@ private PagedFlux listByConfigurationStoreAsync(String resourceGro /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -279,12 +285,12 @@ public PagedIterable listByConfigurationStore(String resourceGroup /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -300,15 +306,15 @@ public PagedIterable listByConfigurationStore(String resourceGroup /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified replica along with {@link Response} on successful completion of {@link - * Mono}. + * @return the properties of the specified replica along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String configStoreName, @@ -341,7 +347,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -349,8 +355,8 @@ private Mono> getWithResponseAsync(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified replica along with {@link Response} on successful completion of {@link - * Mono}. + * @return the properties of the specified replica along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String configStoreName, @@ -382,7 +388,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -399,7 +405,7 @@ private Mono getAsync(String resourceGroupName, String configStore /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -417,7 +423,7 @@ public Response getWithResponse(String resourceGroupName, String c /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -433,7 +439,7 @@ public ReplicaInner get(String resourceGroupName, String configStoreName, String /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -481,7 +487,7 @@ private Mono>> createWithResponseAsync(String resource /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -528,7 +534,7 @@ private Mono>> createWithResponseAsync(String resource /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -549,7 +555,7 @@ private PollerFlux, ReplicaInner> beginCreateAsync(Stri /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -572,7 +578,7 @@ private PollerFlux, ReplicaInner> beginCreateAsync(Stri /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -591,7 +597,7 @@ public SyncPoller, ReplicaInner> beginCreate(String res /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -612,7 +618,7 @@ public SyncPoller, ReplicaInner> beginCreate(String res /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -631,7 +637,7 @@ private Mono createAsync(String resourceGroupName, String configSt /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -652,7 +658,7 @@ private Mono createAsync(String resourceGroupName, String configSt /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -670,7 +676,7 @@ public ReplicaInner create(String resourceGroupName, String configStoreName, Str /** * Creates a replica with the specified parameters. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -689,7 +695,7 @@ public ReplicaInner create(String resourceGroupName, String configStoreName, Str /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -729,7 +735,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -769,7 +775,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -789,7 +795,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -811,7 +817,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -828,7 +834,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -846,7 +852,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -863,7 +869,7 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName, /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -882,7 +888,7 @@ private Mono deleteAsync(String resourceGroupName, String configStoreName, /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -897,7 +903,7 @@ public void delete(String resourceGroupName, String configStoreName, String repl /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -913,14 +919,13 @@ public void delete(String resourceGroupName, String configStoreName, String repl /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list replicas along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByConfigurationStoreNextSinglePageAsync(String nextLink) { @@ -942,15 +947,14 @@ private Mono> listByConfigurationStoreNextSinglePage /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list replicas along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByConfigurationStoreNextSinglePageAsync(String nextLink, diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasImpl.java index 8efd4a6db3812..a75faa7e1f2e4 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ReplicasImpl.java @@ -30,14 +30,14 @@ public ReplicasImpl(ReplicasClient innerClient, public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName) { PagedIterable inner = this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName); - return Utils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); } public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName, String skipToken, Context context) { PagedIterable inner = this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName, skipToken, context); - return Utils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicaImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String configStoreName, String replicaName, @@ -70,17 +70,17 @@ public void delete(String resourceGroupName, String configStoreName, String repl } public Replica 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); @@ -89,17 +89,17 @@ public Replica getById(String id) { } public Response 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); @@ -108,17 +108,17 @@ public Response getByIdWithResponse(String id, Context context) { } 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); @@ -127,17 +127,17 @@ 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 configStoreName = Utils.getValueFromIdByName(id, "configurationStores"); + String configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); if (configStoreName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); } - String replicaName = Utils.getValueFromIdByName(id, "replicas"); + String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); if (replicaName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/Utils.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ResourceManagerUtils.java similarity index 88% rename from sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/Utils.java rename to sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ResourceManagerUtils.java index b2b27998bb97d..466b110331b1c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/Utils.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ResourceManagerUtils.java @@ -19,7 +19,10 @@ import java.util.stream.Stream; import reactor.core.publisher.Flux; -final class Utils { +final class ResourceManagerUtils { + private ResourceManagerUtils() { + } + static String getValueFromIdByName(String id, String name) { if (id == null) { return null; @@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri segments.add(idSegment); idItrReverted.forEachRemaining(segments::add); Collections.reverse(segments); - if (segments.size() > 0 && segments.get(0).isEmpty()) { + if (!segments.isEmpty() && segments.get(0).isEmpty()) { segments.remove(0); } return String.join("/", segments); @@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri } static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { - return new PagedIterableImpl(pageIterable, mapper); + return new PagedIterableImpl<>(pageIterable, mapper); } private static final class PagedIterableImpl extends PagedIterable { @@ -124,30 +127,27 @@ public Stream> streamByPage(String continuationToken, int prefe @Override public Iterator iterator() { - return new IteratorImpl(pagedIterable.iterator(), mapper); + return new IteratorImpl<>(pagedIterable.iterator(), mapper); } @Override public Iterable> iterableByPage() { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken) { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(continuationToken), - pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper); } @Override public Iterable> iterableByPage(int preferredPageSize) { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(preferredPageSize), - pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); } } @@ -189,7 +189,7 @@ private IterableImpl(Iterable iterable, Function mapper) { @Override public Iterator iterator() { - return new IteratorImpl(iterable.iterator(), mapper); + return new IteratorImpl<>(iterable.iterator(), mapper); } } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotImpl.java new file mode 100644 index 0000000000000..7359dfd0e5a38 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotImpl.java @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.implementation; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.appconfiguration.fluent.models.SnapshotInner; +import com.azure.resourcemanager.appconfiguration.models.CompositionType; +import com.azure.resourcemanager.appconfiguration.models.KeyValueFilter; +import com.azure.resourcemanager.appconfiguration.models.ProvisioningState; +import com.azure.resourcemanager.appconfiguration.models.Snapshot; +import com.azure.resourcemanager.appconfiguration.models.SnapshotStatus; +import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public final class SnapshotImpl implements Snapshot, Snapshot.Definition { + private SnapshotInner innerObject; + + private final com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager; + + SnapshotImpl(SnapshotInner innerObject, + com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public SnapshotStatus status() { + return this.innerModel().status(); + } + + public List filters() { + List inner = this.innerModel().filters(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public CompositionType compositionType() { + return this.innerModel().compositionType(); + } + + public OffsetDateTime created() { + return this.innerModel().created(); + } + + public OffsetDateTime expires() { + return this.innerModel().expires(); + } + + public Long retentionPeriod() { + return this.innerModel().retentionPeriod(); + } + + public Long size() { + return this.innerModel().size(); + } + + public Long itemsCount() { + return this.innerModel().itemsCount(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public String etag() { + return this.innerModel().etag(); + } + + public SnapshotInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String configStoreName; + + private String snapshotName; + + public SnapshotImpl withExistingConfigurationStore(String resourceGroupName, String configStoreName) { + this.resourceGroupName = resourceGroupName; + this.configStoreName = configStoreName; + return this; + } + + public Snapshot create() { + this.innerObject = serviceManager.serviceClient() + .getSnapshots() + .create(resourceGroupName, configStoreName, snapshotName, this.innerModel(), Context.NONE); + return this; + } + + public Snapshot create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSnapshots() + .create(resourceGroupName, configStoreName, snapshotName, this.innerModel(), context); + return this; + } + + SnapshotImpl(String name, com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) { + this.innerObject = new SnapshotInner(); + this.serviceManager = serviceManager; + this.snapshotName = name; + } + + public Snapshot refresh() { + this.innerObject = serviceManager.serviceClient() + .getSnapshots() + .getWithResponse(resourceGroupName, configStoreName, snapshotName, Context.NONE) + .getValue(); + return this; + } + + public Snapshot refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getSnapshots() + .getWithResponse(resourceGroupName, configStoreName, snapshotName, context) + .getValue(); + return this; + } + + public SnapshotImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public SnapshotImpl withFilters(List filters) { + this.innerModel().withFilters(filters); + return this; + } + + public SnapshotImpl withCompositionType(CompositionType compositionType) { + this.innerModel().withCompositionType(compositionType); + return this; + } + + public SnapshotImpl withRetentionPeriod(Long retentionPeriod) { + this.innerModel().withRetentionPeriod(retentionPeriod); + return this; + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsClientImpl.java new file mode 100644 index 0000000000000..b9c070f051fdb --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsClientImpl.java @@ -0,0 +1,500 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.appconfiguration.fluent.SnapshotsClient; +import com.azure.resourcemanager.appconfiguration.fluent.models.SnapshotInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in SnapshotsClient. + */ +public final class SnapshotsClientImpl implements SnapshotsClient { + /** + * The proxy service used to perform REST calls. + */ + private final SnapshotsService service; + + /** + * The service client containing this operation class. + */ + private final AppConfigurationManagementClientImpl client; + + /** + * Initializes an instance of SnapshotsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + SnapshotsClientImpl(AppConfigurationManagementClientImpl client) { + this.service + = RestProxy.create(SnapshotsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for AppConfigurationManagementClientSnapshots to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "AppConfigurationMana") + public interface SnapshotsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configStoreName") String configStoreName, @PathParam("snapshotName") String snapshotName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/snapshots/{snapshotName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> create(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("configStoreName") String configStoreName, @PathParam("snapshotName") String snapshotName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") SnapshotInner body, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String configStoreName, + String snapshotName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (configStoreName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, configStoreName, snapshotName, this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String configStoreName, + String snapshotName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (configStoreName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + configStoreName, snapshotName, this.client.getApiVersion(), accept, context); + } + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String configStoreName, String snapshotName) { + return getWithResponseAsync(resourceGroupName, configStoreName, snapshotName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String configStoreName, + String snapshotName, Context context) { + return getWithResponseAsync(resourceGroupName, configStoreName, snapshotName, context).block(); + } + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SnapshotInner get(String resourceGroupName, String configStoreName, String snapshotName) { + return getWithResponse(resourceGroupName, configStoreName, snapshotName, Context.NONE).getValue(); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync(String resourceGroupName, String configStoreName, + String snapshotName, SnapshotInner body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (configStoreName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, configStoreName, snapshotName, this.client.getApiVersion(), body, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createWithResponseAsync(String resourceGroupName, String configStoreName, + String snapshotName, SnapshotInner body, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (configStoreName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null.")); + } + if (snapshotName == null) { + return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.create(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + configStoreName, snapshotName, this.client.getApiVersion(), body, accept, context); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SnapshotInner> beginCreateAsync(String resourceGroupName, + String configStoreName, String snapshotName, SnapshotInner body) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, configStoreName, snapshotName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotInner.class, SnapshotInner.class, this.client.getContext()); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, SnapshotInner> beginCreateAsync(String resourceGroupName, + String configStoreName, String snapshotName, SnapshotInner body, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createWithResponseAsync(resourceGroupName, configStoreName, snapshotName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SnapshotInner.class, SnapshotInner.class, context); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, + String configStoreName, String snapshotName, SnapshotInner body) { + return this.beginCreateAsync(resourceGroupName, configStoreName, snapshotName, body).getSyncPoller(); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, SnapshotInner> beginCreate(String resourceGroupName, + String configStoreName, String snapshotName, SnapshotInner body, Context context) { + return this.beginCreateAsync(resourceGroupName, configStoreName, snapshotName, body, context).getSyncPoller(); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync(String resourceGroupName, String configStoreName, String snapshotName, + SnapshotInner body) { + return beginCreateAsync(resourceGroupName, configStoreName, snapshotName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createAsync(String resourceGroupName, String configStoreName, String snapshotName, + SnapshotInner body, Context context) { + return beginCreateAsync(resourceGroupName, configStoreName, snapshotName, body, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SnapshotInner create(String resourceGroupName, String configStoreName, String snapshotName, + SnapshotInner body) { + return createAsync(resourceGroupName, configStoreName, snapshotName, body).block(); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template + * deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used + * instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SnapshotInner create(String resourceGroupName, String configStoreName, String snapshotName, + SnapshotInner body, Context context) { + return createAsync(resourceGroupName, configStoreName, snapshotName, body, context).block(); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsImpl.java new file mode 100644 index 0000000000000..5630017555053 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/SnapshotsImpl.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.appconfiguration.fluent.SnapshotsClient; +import com.azure.resourcemanager.appconfiguration.fluent.models.SnapshotInner; +import com.azure.resourcemanager.appconfiguration.models.Snapshot; +import com.azure.resourcemanager.appconfiguration.models.Snapshots; + +public final class SnapshotsImpl implements Snapshots { + private static final ClientLogger LOGGER = new ClientLogger(SnapshotsImpl.class); + + private final SnapshotsClient innerClient; + + private final com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager; + + public SnapshotsImpl(SnapshotsClient innerClient, + com.azure.resourcemanager.appconfiguration.AppConfigurationManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String configStoreName, String snapshotName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, configStoreName, snapshotName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new SnapshotImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public Snapshot get(String resourceGroupName, String configStoreName, String snapshotName) { + SnapshotInner inner = this.serviceClient().get(resourceGroupName, configStoreName, snapshotName); + if (inner != null) { + return new SnapshotImpl(inner, this.manager()); + } else { + return null; + } + } + + public Snapshot getById(String id) { + 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 configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); + if (configStoreName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); + } + String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "snapshots"); + if (snapshotName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); + } + return this.getWithResponse(resourceGroupName, configStoreName, snapshotName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 configStoreName = ResourceManagerUtils.getValueFromIdByName(id, "configurationStores"); + if (configStoreName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'configurationStores'.", id))); + } + String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "snapshots"); + if (snapshotName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'snapshots'.", id))); + } + return this.getWithResponse(resourceGroupName, configStoreName, snapshotName, context); + } + + private SnapshotsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager() { + return this.serviceManager; + } + + public SnapshotImpl define(String name) { + return new SnapshotImpl(name, this.manager()); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/package-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/package-info.java index 2d209b3d90973..d4bce959d662d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/package-info.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the implementations for AppConfigurationManagementClient. null. */ +/** + * Package containing the implementations for AppConfigurationManagementClient. + * null. + */ package com.azure.resourcemanager.appconfiguration.implementation; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java index d5c22ce64f3c1..862f5ba6cb3ff 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Any action that is required beyond basic workflow (approve/ reject/ disconnect). */ +/** + * Any action that is required beyond basic workflow (approve/ reject/ disconnect). + */ public final class ActionsRequired extends ExpandableStringEnum { - /** Static value None for ActionsRequired. */ + /** + * Static value None for ActionsRequired. + */ public static final ActionsRequired NONE = fromString("None"); - /** Static value Recreate for ActionsRequired. */ + /** + * Static value Recreate for ActionsRequired. + */ public static final ActionsRequired RECREATE = fromString("Recreate"); /** * Creates a new instance of ActionsRequired value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ActionsRequired() { /** * Creates or finds a ActionsRequired from its string representation. - * + * * @param name a name to look for. * @return the corresponding ActionsRequired. */ - @JsonCreator public static ActionsRequired fromString(String name) { return fromString(name, ActionsRequired.class); } /** * Gets known ActionsRequired values. - * + * * @return known ActionsRequired values. */ public static Collection values() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKey.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKey.java index da78257a0276b..1c4be0790ca7c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKey.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKey.java @@ -7,25 +7,27 @@ import com.azure.resourcemanager.appconfiguration.fluent.models.ApiKeyInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of ApiKey. */ +/** + * An immutable client-side representation of ApiKey. + */ public interface ApiKey { /** * Gets the id property: The key ID. - * + * * @return the id value. */ String id(); /** * Gets the name property: A name for the key describing its usage. - * + * * @return the name value. */ String name(); /** * Gets the value property: The value of the key that is used for authentication purposes. - * + * * @return the value value. */ String value(); @@ -33,28 +35,28 @@ public interface ApiKey { /** * Gets the connectionString property: A connection string that can be used by supporting clients for * authentication. - * + * * @return the connectionString value. */ String connectionString(); /** * Gets the lastModified property: The last time any of the key's properties were modified. - * + * * @return the lastModified value. */ OffsetDateTime lastModified(); /** * Gets the readOnly property: Whether this key can only be used for read operations. - * + * * @return the readOnly value. */ Boolean readOnly(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.ApiKeyInner object. - * + * * @return the inner object. */ ApiKeyInner innerModel(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java index fd657aa841c91..97c6de969edb0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.ApiKeyInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** The result of a request to list API keys. */ +/** + * The result of a request to list API keys. + */ @Fluent -public final class ApiKeyListResult { +public final class ApiKeyListResult implements JsonSerializable { /* * The collection value. */ - @JsonProperty(value = "value") private List value; /* * The URI that can be used to request the next set of paged results. */ - @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of ApiKeyListResult class. */ + /** + * Creates an instance of ApiKeyListResult class. + */ public ApiKeyListResult() { } /** * Get the value property: The collection value. - * + * * @return the value value. */ public List value() { @@ -39,7 +45,7 @@ public List value() { /** * Set the value property: The collection value. - * + * * @param value the value value to set. * @return the ApiKeyListResult object itself. */ @@ -50,7 +56,7 @@ public ApiKeyListResult withValue(List value) { /** * Get the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +65,7 @@ public String nextLink() { /** * Set the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @param nextLink the nextLink value to set. * @return the ApiKeyListResult object itself. */ @@ -70,7 +76,7 @@ public ApiKeyListResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApiKeyListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApiKeyListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ApiKeyListResult. + */ + public static ApiKeyListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApiKeyListResult deserializedApiKeyListResult = new ApiKeyListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ApiKeyInner.fromJson(reader1)); + deserializedApiKeyListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedApiKeyListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedApiKeyListResult; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/AuthenticationMode.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/AuthenticationMode.java new file mode 100644 index 0000000000000..8ce4644342fc4 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/AuthenticationMode.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The data plane proxy authentication mode. This property manages the authentication mode of request to the data plane + * resources. + */ +public final class AuthenticationMode extends ExpandableStringEnum { + /** + * Static value Local for AuthenticationMode. + */ + public static final AuthenticationMode LOCAL = fromString("Local"); + + /** + * Static value Pass-through for AuthenticationMode. + */ + public static final AuthenticationMode PASS_THROUGH = fromString("Pass-through"); + + /** + * Creates a new instance of AuthenticationMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AuthenticationMode() { + } + + /** + * Creates or finds a AuthenticationMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding AuthenticationMode. + */ + public static AuthenticationMode fromString(String name) { + return fromString(name, AuthenticationMode.class); + } + + /** + * Gets known AuthenticationMode values. + * + * @return known AuthenticationMode values. + */ + public static Collection values() { + return values(AuthenticationMode.class); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java index 0ba15aa063505..1da4bd3cdc5ab 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java @@ -6,30 +6,36 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Parameters used for checking whether a resource name is available. */ +/** + * Parameters used for checking whether a resource name is available. + */ @Fluent -public final class CheckNameAvailabilityParameters { +public final class CheckNameAvailabilityParameters implements JsonSerializable { /* * The name to check for availability. */ - @JsonProperty(value = "name", required = true) private String name; /* * The resource type to check for name availability. */ - @JsonProperty(value = "type", required = true) private ConfigurationResourceType type; - /** Creates an instance of CheckNameAvailabilityParameters class. */ + /** + * Creates an instance of CheckNameAvailabilityParameters class. + */ public CheckNameAvailabilityParameters() { } /** * Get the name property: The name to check for availability. - * + * * @return the name value. */ public String name() { @@ -38,7 +44,7 @@ public String name() { /** * Set the name property: The name to check for availability. - * + * * @param name the name value to set. * @return the CheckNameAvailabilityParameters object itself. */ @@ -49,7 +55,7 @@ public CheckNameAvailabilityParameters withName(String name) { /** * Get the type property: The resource type to check for name availability. - * + * * @return the type value. */ public ConfigurationResourceType type() { @@ -58,7 +64,7 @@ public ConfigurationResourceType type() { /** * Set the type property: The resource type to check for name availability. - * + * * @param type the type value to set. * @return the CheckNameAvailabilityParameters object itself. */ @@ -69,19 +75,63 @@ public CheckNameAvailabilityParameters withType(ConfigurationResourceType type) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property name in model CheckNameAvailabilityParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model CheckNameAvailabilityParameters")); } if (type() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property type in model CheckNameAvailabilityParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property type in model CheckNameAvailabilityParameters")); } } private static final ClientLogger LOGGER = new ClientLogger(CheckNameAvailabilityParameters.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CheckNameAvailabilityParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CheckNameAvailabilityParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CheckNameAvailabilityParameters. + */ + public static CheckNameAvailabilityParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CheckNameAvailabilityParameters deserializedCheckNameAvailabilityParameters + = new CheckNameAvailabilityParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedCheckNameAvailabilityParameters.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCheckNameAvailabilityParameters.type + = ConfigurationResourceType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCheckNameAvailabilityParameters; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CompositionType.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CompositionType.java new file mode 100644 index 0000000000000..5692b82df81fb --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CompositionType.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The composition type describes how the key-values within the snapshot are composed. The 'key' composition type + * ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no + * two key-values containing the same key and label. + */ +public final class CompositionType extends ExpandableStringEnum { + /** + * Static value Key for CompositionType. + */ + public static final CompositionType KEY = fromString("Key"); + + /** + * Static value Key_Label for CompositionType. + */ + public static final CompositionType KEY_LABEL = fromString("Key_Label"); + + /** + * Creates a new instance of CompositionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CompositionType() { + } + + /** + * Creates or finds a CompositionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding CompositionType. + */ + public static CompositionType fromString(String name) { + return fromString(name, CompositionType.class); + } + + /** + * Gets known CompositionType values. + * + * @return known CompositionType values. + */ + public static Collection values() { + return values(CompositionType.class); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java index 82081f7f85fb9..a1c0a6e1d60fc 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java @@ -5,18 +5,21 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The resource type to check for name availability. */ +/** + * The resource type to check for name availability. + */ public final class ConfigurationResourceType extends ExpandableStringEnum { - /** Static value Microsoft.AppConfiguration/configurationStores for ConfigurationResourceType. */ + /** + * Static value Microsoft.AppConfiguration/configurationStores for ConfigurationResourceType. + */ public static final ConfigurationResourceType MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES = fromString("Microsoft.AppConfiguration/configurationStores"); /** * Creates a new instance of ConfigurationResourceType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -25,18 +28,17 @@ public ConfigurationResourceType() { /** * Creates or finds a ConfigurationResourceType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ConfigurationResourceType. */ - @JsonCreator public static ConfigurationResourceType fromString(String name) { return fromString(name, ConfigurationResourceType.class); } /** * Gets known ConfigurationResourceType values. - * + * * @return known ConfigurationResourceType values. */ public static Collection values() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java index fed98056322a1..f98d64da3bfb5 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java @@ -14,88 +14,90 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of ConfigurationStore. */ +/** + * An immutable client-side representation of ConfigurationStore. + */ public interface ConfigurationStore { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the identity property: The managed identity information, if configured. - * + * * @return the identity value. */ ResourceIdentity identity(); /** * Gets the sku property: The sku of the configuration store. - * + * * @return the sku value. */ Sku sku(); /** * Gets the systemData property: Resource system metadata. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: The provisioning state of the configuration store. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the creationDate property: The creation date of configuration store. - * + * * @return the creationDate value. */ OffsetDateTime creationDate(); /** * Gets the endpoint property: The DNS endpoint where the configuration store API will be available. - * + * * @return the endpoint value. */ String endpoint(); /** * Gets the encryption property: The encryption settings of the configuration store. - * + * * @return the encryption value. */ EncryptionProperties encryption(); @@ -103,7 +105,7 @@ public interface ConfigurationStore { /** * Gets the privateEndpointConnections property: The list of private endpoint connections that are set up for this * resource. - * + * * @return the privateEndpointConnections value. */ List privateEndpointConnections(); @@ -111,14 +113,14 @@ public interface ConfigurationStore { /** * Gets the publicNetworkAccess property: Control permission for data plane traffic coming from public networks * while private endpoint is enabled. - * + * * @return the publicNetworkAccess value. */ PublicNetworkAccess publicNetworkAccess(); /** * Gets the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @return the disableLocalAuth value. */ Boolean disableLocalAuth(); @@ -126,7 +128,7 @@ public interface ConfigurationStore { /** * Gets the softDeleteRetentionInDays property: The amount of time in days that the configuration store will be * retained when it is soft deleted. - * + * * @return the softDeleteRetentionInDays value. */ Integer softDeleteRetentionInDays(); @@ -134,62 +136,78 @@ public interface ConfigurationStore { /** * Gets the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @return the enablePurgeProtection value. */ Boolean enablePurgeProtection(); + /** + * Gets the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @return the dataPlaneProxy value. + */ + DataPlaneProxyProperties dataPlaneProxy(); + /** * Gets the createMode property: Indicates whether the configuration store need to be recovered. - * + * * @return the createMode value. */ CreateMode createMode(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStoreInner object. - * + * * @return the inner object. */ ConfigurationStoreInner innerModel(); - /** The entirety of the ConfigurationStore definition. */ + /** + * The entirety of the ConfigurationStore definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithSku, DefinitionStages.WithCreate { } - /** The ConfigurationStore definition stages. */ + /** + * The ConfigurationStore definition stages. + */ interface DefinitionStages { - /** The first stage of the ConfigurationStore definition. */ + /** + * The first stage of the ConfigurationStore definition. + */ interface Blank extends WithLocation { } - /** The stage of the ConfigurationStore definition allowing to specify location. */ + /** + * The stage of the ConfigurationStore definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -197,29 +215,33 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the ConfigurationStore definition allowing to specify parent resource. */ + /** + * The stage of the ConfigurationStore definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @return the next definition stage. */ WithSku withExistingResourceGroup(String resourceGroupName); } - /** The stage of the ConfigurationStore definition allowing to specify sku. */ + /** + * The stage of the ConfigurationStore definition allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The sku of the configuration store.. - * + * * @param sku The sku of the configuration store. * @return the next definition stage. */ @@ -230,115 +252,147 @@ interface WithSku { * The stage of the ConfigurationStore definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithEncryption, DefinitionStages.WithPublicNetworkAccess, - DefinitionStages.WithDisableLocalAuth, DefinitionStages.WithSoftDeleteRetentionInDays, - DefinitionStages.WithEnablePurgeProtection, DefinitionStages.WithCreateMode { + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithEncryption, + DefinitionStages.WithPublicNetworkAccess, DefinitionStages.WithDisableLocalAuth, + DefinitionStages.WithSoftDeleteRetentionInDays, DefinitionStages.WithEnablePurgeProtection, + DefinitionStages.WithDataPlaneProxy, DefinitionStages.WithCreateMode { /** * Executes the create request. - * + * * @return the created resource. */ ConfigurationStore create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ConfigurationStore create(Context context); } - /** The stage of the ConfigurationStore definition allowing to specify tags. */ + /** + * The stage of the ConfigurationStore definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the ConfigurationStore definition allowing to specify identity. */ + /** + * The stage of the ConfigurationStore definition allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: The managed identity information, if configured.. - * + * * @param identity The managed identity information, if configured. * @return the next definition stage. */ WithCreate withIdentity(ResourceIdentity identity); } - /** The stage of the ConfigurationStore definition allowing to specify encryption. */ + /** + * The stage of the ConfigurationStore definition allowing to specify encryption. + */ interface WithEncryption { /** * Specifies the encryption property: The encryption settings of the configuration store.. - * + * * @param encryption The encryption settings of the configuration store. * @return the next definition stage. */ WithCreate withEncryption(EncryptionProperties encryption); } - /** The stage of the ConfigurationStore definition allowing to specify publicNetworkAccess. */ + /** + * The stage of the ConfigurationStore definition allowing to specify publicNetworkAccess. + */ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: Control permission for data plane traffic coming from public * networks while private endpoint is enabled.. - * + * * @param publicNetworkAccess Control permission for data plane traffic coming from public networks while - * private endpoint is enabled. + * private endpoint is enabled. * @return the next definition stage. */ WithCreate withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess); } - /** The stage of the ConfigurationStore definition allowing to specify disableLocalAuth. */ + /** + * The stage of the ConfigurationStore definition allowing to specify disableLocalAuth. + */ interface WithDisableLocalAuth { /** * Specifies the disableLocalAuth property: Disables all authentication methods other than AAD * authentication.. - * + * * @param disableLocalAuth Disables all authentication methods other than AAD authentication. * @return the next definition stage. */ WithCreate withDisableLocalAuth(Boolean disableLocalAuth); } - /** The stage of the ConfigurationStore definition allowing to specify softDeleteRetentionInDays. */ + /** + * The stage of the ConfigurationStore definition allowing to specify softDeleteRetentionInDays. + */ interface WithSoftDeleteRetentionInDays { /** * Specifies the softDeleteRetentionInDays property: The amount of time in days that the configuration store * will be retained when it is soft deleted.. - * + * * @param softDeleteRetentionInDays The amount of time in days that the configuration store will be retained - * when it is soft deleted. + * when it is soft deleted. * @return the next definition stage. */ WithCreate withSoftDeleteRetentionInDays(Integer softDeleteRetentionInDays); } - /** The stage of the ConfigurationStore definition allowing to specify enablePurgeProtection. */ + /** + * The stage of the ConfigurationStore definition allowing to specify enablePurgeProtection. + */ interface WithEnablePurgeProtection { /** * Specifies the enablePurgeProtection property: Property specifying whether protection against purge is * enabled for this configuration store.. - * + * * @param enablePurgeProtection Property specifying whether protection against purge is enabled for this - * configuration store. + * configuration store. * @return the next definition stage. */ WithCreate withEnablePurgeProtection(Boolean enablePurgeProtection); } - /** The stage of the ConfigurationStore definition allowing to specify createMode. */ + /** + * The stage of the ConfigurationStore definition allowing to specify dataPlaneProxy. + */ + interface WithDataPlaneProxy { + /** + * Specifies the dataPlaneProxy property: Property specifying the configuration of data plane proxy for + * Azure Resource Manager (ARM).. + * + * @param dataPlaneProxy Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * @return the next definition stage. + */ + WithCreate withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy); + } + + /** + * The stage of the ConfigurationStore definition allowing to specify createMode. + */ interface WithCreateMode { /** * Specifies the createMode property: Indicates whether the configuration store need to be recovered.. - * + * * @param createMode Indicates whether the configuration store need to be recovered. * @return the next definition stage. */ @@ -348,126 +402,159 @@ interface WithCreateMode { /** * Begins update for the ConfigurationStore resource. - * + * * @return the stage of resource update. */ ConfigurationStore.Update update(); - /** The template for ConfigurationStore update. */ + /** + * The template for ConfigurationStore update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithSku, UpdateStages.WithEncryption, UpdateStages.WithDisableLocalAuth, UpdateStages.WithPublicNetworkAccess, - UpdateStages.WithEnablePurgeProtection { + UpdateStages.WithEnablePurgeProtection, UpdateStages.WithDataPlaneProxy { /** * Executes the update request. - * + * * @return the updated resource. */ ConfigurationStore apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ConfigurationStore apply(Context context); } - /** The ConfigurationStore update stages. */ + /** + * The ConfigurationStore update stages. + */ interface UpdateStages { - /** The stage of the ConfigurationStore update allowing to specify tags. */ + /** + * The stage of the ConfigurationStore update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The ARM resource tags.. - * + * * @param tags The ARM resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the ConfigurationStore update allowing to specify identity. */ + /** + * The stage of the ConfigurationStore update allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: The managed identity information for the configuration store.. - * + * * @param identity The managed identity information for the configuration store. * @return the next definition stage. */ Update withIdentity(ResourceIdentity identity); } - /** The stage of the ConfigurationStore update allowing to specify sku. */ + /** + * The stage of the ConfigurationStore update allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The SKU of the configuration store.. - * + * * @param sku The SKU of the configuration store. * @return the next definition stage. */ Update withSku(Sku sku); } - /** The stage of the ConfigurationStore update allowing to specify encryption. */ + /** + * The stage of the ConfigurationStore update allowing to specify encryption. + */ interface WithEncryption { /** * Specifies the encryption property: The encryption settings of the configuration store.. - * + * * @param encryption The encryption settings of the configuration store. * @return the next definition stage. */ Update withEncryption(EncryptionProperties encryption); } - /** The stage of the ConfigurationStore update allowing to specify disableLocalAuth. */ + /** + * The stage of the ConfigurationStore update allowing to specify disableLocalAuth. + */ interface WithDisableLocalAuth { /** * Specifies the disableLocalAuth property: Disables all authentication methods other than AAD * authentication.. - * + * * @param disableLocalAuth Disables all authentication methods other than AAD authentication. * @return the next definition stage. */ Update withDisableLocalAuth(Boolean disableLocalAuth); } - /** The stage of the ConfigurationStore update allowing to specify publicNetworkAccess. */ + /** + * The stage of the ConfigurationStore update allowing to specify publicNetworkAccess. + */ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: Control permission for data plane traffic coming from public * networks while private endpoint is enabled.. - * + * * @param publicNetworkAccess Control permission for data plane traffic coming from public networks while - * private endpoint is enabled. + * private endpoint is enabled. * @return the next definition stage. */ Update withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess); } - /** The stage of the ConfigurationStore update allowing to specify enablePurgeProtection. */ + /** + * The stage of the ConfigurationStore update allowing to specify enablePurgeProtection. + */ interface WithEnablePurgeProtection { /** * Specifies the enablePurgeProtection property: Property specifying whether protection against purge is * enabled for this configuration store.. - * + * * @param enablePurgeProtection Property specifying whether protection against purge is enabled for this - * configuration store. + * configuration store. * @return the next definition stage. */ Update withEnablePurgeProtection(Boolean enablePurgeProtection); } + + /** + * The stage of the ConfigurationStore update allowing to specify dataPlaneProxy. + */ + interface WithDataPlaneProxy { + /** + * Specifies the dataPlaneProxy property: Property specifying the configuration of data plane proxy for + * Azure Resource Manager (ARM).. + * + * @param dataPlaneProxy Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * @return the next definition stage. + */ + Update withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy); + } } /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ConfigurationStore refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -475,7 +562,7 @@ interface WithEnablePurgeProtection { /** * Lists the access key for the specified configuration store. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list API keys as paginated response with {@link PagedIterable}. @@ -484,10 +571,10 @@ interface WithEnablePurgeProtection { /** * Lists the access key for the specified configuration store. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -498,7 +585,7 @@ interface WithEnablePurgeProtection { /** * Regenerates an access key for the specified configuration store. - * + * * @param regenerateKeyParameters The parameters for regenerating an access key. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -510,7 +597,7 @@ interface WithEnablePurgeProtection { /** * Regenerates an access key for the specified configuration store. - * + * * @param regenerateKeyParameters The parameters for regenerating an access key. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java index 5b6225407ae6e..bbeddca7905ba 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStoreInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** The result of a request to list configuration stores. */ +/** + * The result of a request to list configuration stores. + */ @Fluent -public final class ConfigurationStoreListResult { +public final class ConfigurationStoreListResult implements JsonSerializable { /* * The collection value. */ - @JsonProperty(value = "value") private List value; /* * The URI that can be used to request the next set of paged results. */ - @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of ConfigurationStoreListResult class. */ + /** + * Creates an instance of ConfigurationStoreListResult class. + */ public ConfigurationStoreListResult() { } /** * Get the value property: The collection value. - * + * * @return the value value. */ public List value() { @@ -39,7 +45,7 @@ public List value() { /** * Set the value property: The collection value. - * + * * @param value the value value to set. * @return the ConfigurationStoreListResult object itself. */ @@ -50,7 +56,7 @@ public ConfigurationStoreListResult withValue(List valu /** * Get the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +65,7 @@ public String nextLink() { /** * Set the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @param nextLink the nextLink value to set. * @return the ConfigurationStoreListResult object itself. */ @@ -70,7 +76,7 @@ public ConfigurationStoreListResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigurationStoreListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigurationStoreListResult if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigurationStoreListResult. + */ + public static ConfigurationStoreListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigurationStoreListResult deserializedConfigurationStoreListResult = new ConfigurationStoreListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ConfigurationStoreInner.fromJson(reader1)); + deserializedConfigurationStoreListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedConfigurationStoreListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigurationStoreListResult; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java index e2a99b4350c4c..9c4cd1368ee25 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java @@ -5,46 +5,48 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStorePropertiesUpdateParameters; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** The parameters for updating a configuration store. */ +/** + * The parameters for updating a configuration store. + */ @Fluent -public final class ConfigurationStoreUpdateParameters { +public final class ConfigurationStoreUpdateParameters implements JsonSerializable { /* * The properties for updating a configuration store. */ - @JsonProperty(value = "properties") private ConfigurationStorePropertiesUpdateParameters innerProperties; /* * The managed identity information for the configuration store. */ - @JsonProperty(value = "identity") private ResourceIdentity identity; /* * The SKU of the configuration store. */ - @JsonProperty(value = "sku") private Sku sku; /* * The ARM resource tags. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of ConfigurationStoreUpdateParameters class. */ + /** + * Creates an instance of ConfigurationStoreUpdateParameters class. + */ public ConfigurationStoreUpdateParameters() { } /** * Get the innerProperties property: The properties for updating a configuration store. - * + * * @return the innerProperties value. */ private ConfigurationStorePropertiesUpdateParameters innerProperties() { @@ -53,7 +55,7 @@ private ConfigurationStorePropertiesUpdateParameters innerProperties() { /** * Get the identity property: The managed identity information for the configuration store. - * + * * @return the identity value. */ public ResourceIdentity identity() { @@ -62,7 +64,7 @@ public ResourceIdentity identity() { /** * Set the identity property: The managed identity information for the configuration store. - * + * * @param identity the identity value to set. * @return the ConfigurationStoreUpdateParameters object itself. */ @@ -73,7 +75,7 @@ public ConfigurationStoreUpdateParameters withIdentity(ResourceIdentity identity /** * Get the sku property: The SKU of the configuration store. - * + * * @return the sku value. */ public Sku sku() { @@ -82,7 +84,7 @@ public Sku sku() { /** * Set the sku property: The SKU of the configuration store. - * + * * @param sku the sku value to set. * @return the ConfigurationStoreUpdateParameters object itself. */ @@ -93,7 +95,7 @@ public ConfigurationStoreUpdateParameters withSku(Sku sku) { /** * Get the tags property: The ARM resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -102,7 +104,7 @@ public Map tags() { /** * Set the tags property: The ARM resource tags. - * + * * @param tags the tags value to set. * @return the ConfigurationStoreUpdateParameters object itself. */ @@ -113,7 +115,7 @@ public ConfigurationStoreUpdateParameters withTags(Map tags) { /** * Get the encryption property: The encryption settings of the configuration store. - * + * * @return the encryption value. */ public EncryptionProperties encryption() { @@ -122,7 +124,7 @@ public EncryptionProperties encryption() { /** * Set the encryption property: The encryption settings of the configuration store. - * + * * @param encryption the encryption value to set. * @return the ConfigurationStoreUpdateParameters object itself. */ @@ -136,7 +138,7 @@ public ConfigurationStoreUpdateParameters withEncryption(EncryptionProperties en /** * Get the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @return the disableLocalAuth value. */ public Boolean disableLocalAuth() { @@ -145,7 +147,7 @@ public Boolean disableLocalAuth() { /** * Set the disableLocalAuth property: Disables all authentication methods other than AAD authentication. - * + * * @param disableLocalAuth the disableLocalAuth value to set. * @return the ConfigurationStoreUpdateParameters object itself. */ @@ -160,7 +162,7 @@ public ConfigurationStoreUpdateParameters withDisableLocalAuth(Boolean disableLo /** * Get the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @return the publicNetworkAccess value. */ public PublicNetworkAccess publicNetworkAccess() { @@ -170,7 +172,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Control permission for data plane traffic coming from public networks while * private endpoint is enabled. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the ConfigurationStoreUpdateParameters object itself. */ @@ -185,7 +187,7 @@ public ConfigurationStoreUpdateParameters withPublicNetworkAccess(PublicNetworkA /** * Get the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @return the enablePurgeProtection value. */ public Boolean enablePurgeProtection() { @@ -195,7 +197,7 @@ public Boolean enablePurgeProtection() { /** * Set the enablePurgeProtection property: Property specifying whether protection against purge is enabled for this * configuration store. - * + * * @param enablePurgeProtection the enablePurgeProtection value to set. * @return the ConfigurationStoreUpdateParameters object itself. */ @@ -207,9 +209,34 @@ public ConfigurationStoreUpdateParameters withEnablePurgeProtection(Boolean enab return this; } + /** + * Get the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @return the dataPlaneProxy value. + */ + public DataPlaneProxyProperties dataPlaneProxy() { + return this.innerProperties() == null ? null : this.innerProperties().dataPlaneProxy(); + } + + /** + * Set the dataPlaneProxy property: Property specifying the configuration of data plane proxy for Azure Resource + * Manager (ARM). + * + * @param dataPlaneProxy the dataPlaneProxy value to set. + * @return the ConfigurationStoreUpdateParameters object itself. + */ + public ConfigurationStoreUpdateParameters withDataPlaneProxy(DataPlaneProxyProperties dataPlaneProxy) { + if (this.innerProperties() == null) { + this.innerProperties = new ConfigurationStorePropertiesUpdateParameters(); + } + this.innerProperties().withDataPlaneProxy(dataPlaneProxy); + return this; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -223,4 +250,52 @@ public void validate() { sku().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("identity", this.identity); + jsonWriter.writeJsonField("sku", this.sku); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigurationStoreUpdateParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigurationStoreUpdateParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConfigurationStoreUpdateParameters. + */ + public static ConfigurationStoreUpdateParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConfigurationStoreUpdateParameters deserializedConfigurationStoreUpdateParameters + = new ConfigurationStoreUpdateParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedConfigurationStoreUpdateParameters.innerProperties + = ConfigurationStorePropertiesUpdateParameters.fromJson(reader); + } else if ("identity".equals(fieldName)) { + deserializedConfigurationStoreUpdateParameters.identity = ResourceIdentity.fromJson(reader); + } else if ("sku".equals(fieldName)) { + deserializedConfigurationStoreUpdateParameters.sku = Sku.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedConfigurationStoreUpdateParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedConfigurationStoreUpdateParameters; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java index 434c9105b560e..29b6954cb2e59 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of ConfigurationStores. */ +/** + * Resource collection API of ConfigurationStores. + */ public interface ConfigurationStores { /** * Lists the configuration stores for a given subscription. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of a request to list configuration stores as paginated response with {@link PagedIterable}. @@ -21,10 +23,10 @@ public interface ConfigurationStores { /** * Lists the configuration stores for a given subscription. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -35,7 +37,7 @@ public interface ConfigurationStores { /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -46,11 +48,11 @@ public interface ConfigurationStores { /** * Lists the configuration stores for a given resource group. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -61,7 +63,7 @@ public interface ConfigurationStores { /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -75,7 +77,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Gets the properties of the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -87,7 +89,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -98,7 +100,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Deletes a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -110,7 +112,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,12 +124,12 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Lists the access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -138,7 +140,7 @@ Response getByResourceGroupWithResponse(String resourceGroup /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -153,7 +155,7 @@ Response regenerateKeyWithResponse(String resourceGroupName, String conf /** * Regenerates an access key for the specified configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. @@ -167,29 +169,29 @@ ApiKey regenerateKey(String resourceGroupName, String configStoreName, /** * Gets information about the deleted configuration stores in a subscription. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedIterable}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable listDeleted(); /** * Gets information about the deleted configuration stores in a subscription. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about the deleted configuration stores in a subscription as paginated response with {@link - * PagedIterable}. + * @return information about the deleted configuration stores in a subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable listDeleted(Context context); /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -203,7 +205,7 @@ Response getDeletedWithResponse(String location, Stri /** * Gets a deleted Azure app configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -215,7 +217,7 @@ Response getDeletedWithResponse(String location, Stri /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -226,7 +228,7 @@ Response getDeletedWithResponse(String location, Stri /** * Permanently deletes the specified configuration store. - * + * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -238,7 +240,7 @@ Response getDeletedWithResponse(String location, Stri /** * Gets the properties of the specified configuration store. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -249,7 +251,7 @@ Response getDeletedWithResponse(String location, Stri /** * Gets the properties of the specified configuration store. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -261,7 +263,7 @@ Response getDeletedWithResponse(String location, Stri /** * Deletes a configuration store. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -271,7 +273,7 @@ Response getDeletedWithResponse(String location, Stri /** * Deletes a configuration store. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -282,7 +284,7 @@ Response getDeletedWithResponse(String location, Stri /** * Begins definition for a new ConfigurationStore resource. - * + * * @param name resource name. * @return the first stage of the new ConfigurationStore definition. */ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java index 34120f28e73dc..64b266239ee3c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java @@ -5,26 +5,35 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The private link service connection status. */ +/** + * The private link service connection status. + */ public final class ConnectionStatus extends ExpandableStringEnum { - /** Static value Pending for ConnectionStatus. */ + /** + * Static value Pending for ConnectionStatus. + */ public static final ConnectionStatus PENDING = fromString("Pending"); - /** Static value Approved for ConnectionStatus. */ + /** + * Static value Approved for ConnectionStatus. + */ public static final ConnectionStatus APPROVED = fromString("Approved"); - /** Static value Rejected for ConnectionStatus. */ + /** + * Static value Rejected for ConnectionStatus. + */ public static final ConnectionStatus REJECTED = fromString("Rejected"); - /** Static value Disconnected for ConnectionStatus. */ + /** + * Static value Disconnected for ConnectionStatus. + */ public static final ConnectionStatus DISCONNECTED = fromString("Disconnected"); /** * Creates a new instance of ConnectionStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,18 +42,17 @@ public ConnectionStatus() { /** * Creates or finds a ConnectionStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ConnectionStatus. */ - @JsonCreator public static ConnectionStatus fromString(String name) { return fromString(name, ConnectionStatus.class); } /** * Gets known ConnectionStatus values. - * + * * @return known ConnectionStatus values. */ public static Collection values() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CreateMode.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CreateMode.java index e6934c6dad827..226da02844fc0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CreateMode.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CreateMode.java @@ -4,18 +4,23 @@ package com.azure.resourcemanager.appconfiguration.models; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Indicates whether the configuration store need to be recovered. */ +/** + * Indicates whether the configuration store need to be recovered. + */ public enum CreateMode { - /** Enum value Recover. */ + /** + * Enum value Recover. + */ RECOVER("Recover"), - /** Enum value Default. */ + /** + * Enum value Default. + */ DEFAULT("Default"); - /** The actual serialized value for a CreateMode instance. */ + /** + * The actual serialized value for a CreateMode instance. + */ private final String value; CreateMode(String value) { @@ -24,11 +29,10 @@ public enum CreateMode { /** * Parses a serialized value to a CreateMode instance. - * + * * @param value the serialized value to parse. * @return the parsed CreateMode object, or null if unable to parse. */ - @JsonCreator public static CreateMode fromString(String value) { if (value == null) { return null; @@ -42,8 +46,9 @@ public static CreateMode fromString(String value) { return null; } - /** {@inheritDoc} */ - @JsonValue + /** + * {@inheritDoc} + */ @Override public String toString() { return this.value; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DataPlaneProxyProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DataPlaneProxyProperties.java new file mode 100644 index 0000000000000..114fbf8d9f5ee --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DataPlaneProxyProperties.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The data plane proxy settings for a configuration store. + */ +@Fluent +public final class DataPlaneProxyProperties implements JsonSerializable { + /* + * The data plane proxy authentication mode. This property manages the authentication mode of request to the data + * plane resources. + */ + private AuthenticationMode authenticationMode; + + /* + * The data plane proxy private link delegation. This property manages if a request from delegated Azure Resource + * Manager (ARM) private link is allowed when the data plane resource requires private link. + */ + private PrivateLinkDelegation privateLinkDelegation; + + /** + * Creates an instance of DataPlaneProxyProperties class. + */ + public DataPlaneProxyProperties() { + } + + /** + * Get the authenticationMode property: The data plane proxy authentication mode. This property manages the + * authentication mode of request to the data plane resources. + * + * @return the authenticationMode value. + */ + public AuthenticationMode authenticationMode() { + return this.authenticationMode; + } + + /** + * Set the authenticationMode property: The data plane proxy authentication mode. This property manages the + * authentication mode of request to the data plane resources. + * + * @param authenticationMode the authenticationMode value to set. + * @return the DataPlaneProxyProperties object itself. + */ + public DataPlaneProxyProperties withAuthenticationMode(AuthenticationMode authenticationMode) { + this.authenticationMode = authenticationMode; + return this; + } + + /** + * Get the privateLinkDelegation property: The data plane proxy private link delegation. This property manages if a + * request from delegated Azure Resource Manager (ARM) private link is allowed when the data plane resource requires + * private link. + * + * @return the privateLinkDelegation value. + */ + public PrivateLinkDelegation privateLinkDelegation() { + return this.privateLinkDelegation; + } + + /** + * Set the privateLinkDelegation property: The data plane proxy private link delegation. This property manages if a + * request from delegated Azure Resource Manager (ARM) private link is allowed when the data plane resource requires + * private link. + * + * @param privateLinkDelegation the privateLinkDelegation value to set. + * @return the DataPlaneProxyProperties object itself. + */ + public DataPlaneProxyProperties withPrivateLinkDelegation(PrivateLinkDelegation privateLinkDelegation) { + this.privateLinkDelegation = privateLinkDelegation; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("authenticationMode", + this.authenticationMode == null ? null : this.authenticationMode.toString()); + jsonWriter.writeStringField("privateLinkDelegation", + this.privateLinkDelegation == null ? null : this.privateLinkDelegation.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataPlaneProxyProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataPlaneProxyProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DataPlaneProxyProperties. + */ + public static DataPlaneProxyProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataPlaneProxyProperties deserializedDataPlaneProxyProperties = new DataPlaneProxyProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("authenticationMode".equals(fieldName)) { + deserializedDataPlaneProxyProperties.authenticationMode + = AuthenticationMode.fromString(reader.getString()); + } else if ("privateLinkDelegation".equals(fieldName)) { + deserializedDataPlaneProxyProperties.privateLinkDelegation + = PrivateLinkDelegation.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedDataPlaneProxyProperties; + }); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStore.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStore.java index 5a16f89f072b5..a59f2721d7b9b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStore.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStore.java @@ -8,74 +8,76 @@ import java.time.OffsetDateTime; import java.util.Map; -/** An immutable client-side representation of DeletedConfigurationStore. */ +/** + * An immutable client-side representation of DeletedConfigurationStore. + */ public interface DeletedConfigurationStore { /** * Gets the id property: The resource ID for the deleted configuration store. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the configuration store. - * + * * @return the name value. */ String name(); /** * Gets the type property: The resource type of the configuration store. - * + * * @return the type value. */ String type(); /** * Gets the configurationStoreId property: The resource id of the original configuration store. - * + * * @return the configurationStoreId value. */ String configurationStoreId(); /** * Gets the location property: The location of the original configuration store. - * + * * @return the location value. */ String location(); /** * Gets the deletionDate property: The deleted date. - * + * * @return the deletionDate value. */ OffsetDateTime deletionDate(); /** * Gets the scheduledPurgeDate property: The scheduled purged date. - * + * * @return the scheduledPurgeDate value. */ OffsetDateTime scheduledPurgeDate(); /** * Gets the tags property: Tags of the original configuration store. - * + * * @return the tags value. */ Map tags(); /** * Gets the purgeProtectionEnabled property: Purge protection status of the original configuration store. - * + * * @return the purgeProtectionEnabled value. */ Boolean purgeProtectionEnabled(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.DeletedConfigurationStoreInner object. - * + * * @return the inner object. */ DeletedConfigurationStoreInner innerModel(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStoreListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStoreListResult.java index 914e38a4b2009..884a0ef6e3c2e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStoreListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/DeletedConfigurationStoreListResult.java @@ -5,32 +5,39 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.DeletedConfigurationStoreInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** List of deleted configuration stores. */ +/** + * List of deleted configuration stores. + */ @Fluent -public final class DeletedConfigurationStoreListResult { +public final class DeletedConfigurationStoreListResult + implements JsonSerializable { /* * The list of deleted configuration store. */ - @JsonProperty(value = "value") private List value; /* * The URL to get the next set of deleted configuration stores. */ - @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of DeletedConfigurationStoreListResult class. */ + /** + * Creates an instance of DeletedConfigurationStoreListResult class. + */ public DeletedConfigurationStoreListResult() { } /** * Get the value property: The list of deleted configuration store. - * + * * @return the value value. */ public List value() { @@ -39,7 +46,7 @@ public List value() { /** * Set the value property: The list of deleted configuration store. - * + * * @param value the value value to set. * @return the DeletedConfigurationStoreListResult object itself. */ @@ -50,7 +57,7 @@ public DeletedConfigurationStoreListResult withValue(List e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeletedConfigurationStoreListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeletedConfigurationStoreListResult if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DeletedConfigurationStoreListResult. + */ + public static DeletedConfigurationStoreListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeletedConfigurationStoreListResult deserializedDeletedConfigurationStoreListResult + = new DeletedConfigurationStoreListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> DeletedConfigurationStoreInner.fromJson(reader1)); + deserializedDeletedConfigurationStoreListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedDeletedConfigurationStoreListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDeletedConfigurationStoreListResult; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/EncryptionProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/EncryptionProperties.java index 10c231ae710c3..2f0c238819d92 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/EncryptionProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/EncryptionProperties.java @@ -5,24 +5,31 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** The encryption settings for a configuration store. */ +/** + * The encryption settings for a configuration store. + */ @Fluent -public final class EncryptionProperties { +public final class EncryptionProperties implements JsonSerializable { /* * Key vault properties. */ - @JsonProperty(value = "keyVaultProperties") private KeyVaultProperties keyVaultProperties; - /** Creates an instance of EncryptionProperties class. */ + /** + * Creates an instance of EncryptionProperties class. + */ public EncryptionProperties() { } /** * Get the keyVaultProperties property: Key vault properties. - * + * * @return the keyVaultProperties value. */ public KeyVaultProperties keyVaultProperties() { @@ -31,7 +38,7 @@ public KeyVaultProperties keyVaultProperties() { /** * Set the keyVaultProperties property: Key vault properties. - * + * * @param keyVaultProperties the keyVaultProperties value to set. * @return the EncryptionProperties object itself. */ @@ -42,7 +49,7 @@ public EncryptionProperties withKeyVaultProperties(KeyVaultProperties keyVaultPr /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -50,4 +57,40 @@ public void validate() { keyVaultProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("keyVaultProperties", this.keyVaultProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EncryptionProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EncryptionProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the EncryptionProperties. + */ + public static EncryptionProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EncryptionProperties deserializedEncryptionProperties = new EncryptionProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyVaultProperties".equals(fieldName)) { + deserializedEncryptionProperties.keyVaultProperties = KeyVaultProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEncryptionProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/IdentityType.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/IdentityType.java index f7d062ca7f909..0221fe7b5e93a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/IdentityType.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/IdentityType.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -13,21 +12,29 @@ * identity and a set of user-assigned identities. The type 'None' will remove any identities. */ public final class IdentityType extends ExpandableStringEnum { - /** Static value None for IdentityType. */ + /** + * Static value None for IdentityType. + */ public static final IdentityType NONE = fromString("None"); - /** Static value SystemAssigned for IdentityType. */ + /** + * Static value SystemAssigned for IdentityType. + */ public static final IdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); - /** Static value UserAssigned for IdentityType. */ + /** + * Static value UserAssigned for IdentityType. + */ public static final IdentityType USER_ASSIGNED = fromString("UserAssigned"); - /** Static value SystemAssigned, UserAssigned for IdentityType. */ + /** + * Static value SystemAssigned, UserAssigned for IdentityType. + */ public static final IdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned, UserAssigned"); /** * Creates a new instance of IdentityType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +43,17 @@ public IdentityType() { /** * Creates or finds a IdentityType from its string representation. - * + * * @param name a name to look for. * @return the corresponding IdentityType. */ - @JsonCreator public static IdentityType fromString(String name) { return fromString(name, IdentityType.class); } /** * Gets known IdentityType values. - * + * * @return known IdentityType values. */ public static Collection values() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValue.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValue.java index faa14ce61767a..111ce6b7f51cb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValue.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValue.java @@ -9,119 +9,129 @@ import java.time.OffsetDateTime; import java.util.Map; -/** An immutable client-side representation of KeyValue. */ +/** + * An immutable client-side representation of KeyValue. + */ public interface KeyValue { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** - * Gets the key property: The primary identifier of a key-value. The key is used in unison with the label to - * uniquely identify a key-value. - * + * Gets the key property: The primary identifier of a key-value. + * The key is used in unison with the label to uniquely identify a key-value. + * * @return the key value. */ String key(); /** - * Gets the label property: A value used to group key-values. The label is used in unison with the key to uniquely - * identify a key-value. - * + * Gets the label property: A value used to group key-values. + * The label is used in unison with the key to uniquely identify a key-value. + * * @return the label value. */ String label(); /** * Gets the value property: The value of the key-value. - * + * * @return the value value. */ String value(); /** - * Gets the contentType property: The content type of the key-value's value. Providing a proper content-type can - * enable transformations of values when they are retrieved by applications. - * + * Gets the contentType property: The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by applications. + * * @return the contentType value. */ String contentType(); /** * Gets the etag property: An ETag indicating the state of a key-value within a configuration store. - * + * * @return the etag value. */ String etag(); /** * Gets the lastModified property: The last time a modifying operation was performed on the given key-value. - * + * * @return the lastModified value. */ OffsetDateTime lastModified(); /** - * Gets the locked property: A value indicating whether the key-value is locked. A locked key-value may not be - * modified until it is unlocked. - * + * Gets the locked property: A value indicating whether the key-value is locked. + * A locked key-value may not be modified until it is unlocked. + * * @return the locked value. */ Boolean locked(); /** * Gets the tags property: A dictionary of tags that can help identify what a key-value may be applicable for. - * + * * @return the tags value. */ Map tags(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner object. - * + * * @return the inner object. */ KeyValueInner innerModel(); - /** The entirety of the KeyValue definition. */ + /** + * The entirety of the KeyValue definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The KeyValue definition stages. */ + /** + * The KeyValue definition stages. + */ interface DefinitionStages { - /** The first stage of the KeyValue definition. */ + /** + * The first stage of the KeyValue definition. + */ interface Blank extends WithParentResource { } - /** The stage of the KeyValue definition allowing to specify parent resource. */ + /** + * The stage of the KeyValue definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, configStoreName. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @return the next definition stage. @@ -137,51 +147,59 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithValue, DefinitionStages.WithContentType { /** * Executes the create request. - * + * * @return the created resource. */ KeyValue create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ KeyValue create(Context context); } - /** The stage of the KeyValue definition allowing to specify tags. */ + /** + * The stage of the KeyValue definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: A dictionary of tags that can help identify what a key-value may be * applicable for.. - * + * * @param tags A dictionary of tags that can help identify what a key-value may be applicable for. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the KeyValue definition allowing to specify value. */ + /** + * The stage of the KeyValue definition allowing to specify value. + */ interface WithValue { /** * Specifies the value property: The value of the key-value.. - * + * * @param value The value of the key-value. * @return the next definition stage. */ WithCreate withValue(String value); } - /** The stage of the KeyValue definition allowing to specify contentType. */ + /** + * The stage of the KeyValue definition allowing to specify contentType. + */ interface WithContentType { /** - * Specifies the contentType property: The content type of the key-value's value. Providing a proper - * content-type can enable transformations of values when they are retrieved by applications.. - * - * @param contentType The content type of the key-value's value. Providing a proper content-type can enable - * transformations of values when they are retrieved by applications. + * Specifies the contentType property: The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by + * applications.. + * + * @param contentType The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by + * applications. * @return the next definition stage. */ WithCreate withContentType(String contentType); @@ -190,62 +208,74 @@ interface WithContentType { /** * Begins update for the KeyValue resource. - * + * * @return the stage of resource update. */ KeyValue.Update update(); - /** The template for KeyValue update. */ + /** + * The template for KeyValue update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithValue, UpdateStages.WithContentType { /** * Executes the update request. - * + * * @return the updated resource. */ KeyValue apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ KeyValue apply(Context context); } - /** The KeyValue update stages. */ + /** + * The KeyValue update stages. + */ interface UpdateStages { - /** The stage of the KeyValue update allowing to specify tags. */ + /** + * The stage of the KeyValue update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: A dictionary of tags that can help identify what a key-value may be * applicable for.. - * + * * @param tags A dictionary of tags that can help identify what a key-value may be applicable for. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the KeyValue update allowing to specify value. */ + /** + * The stage of the KeyValue update allowing to specify value. + */ interface WithValue { /** * Specifies the value property: The value of the key-value.. - * + * * @param value The value of the key-value. * @return the next definition stage. */ Update withValue(String value); } - /** The stage of the KeyValue update allowing to specify contentType. */ + /** + * The stage of the KeyValue update allowing to specify contentType. + */ interface WithContentType { /** - * Specifies the contentType property: The content type of the key-value's value. Providing a proper - * content-type can enable transformations of values when they are retrieved by applications.. - * - * @param contentType The content type of the key-value's value. Providing a proper content-type can enable - * transformations of values when they are retrieved by applications. + * Specifies the contentType property: The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by + * applications.. + * + * @param contentType The content type of the key-value's value. + * Providing a proper content-type can enable transformations of values when they are retrieved by + * applications. * @return the next definition stage. */ Update withContentType(String contentType); @@ -254,14 +284,14 @@ interface WithContentType { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ KeyValue refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueFilter.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueFilter.java new file mode 100644 index 0000000000000..027e82b4f5fbb --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueFilter.java @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Enables filtering of key-values. + */ +@Fluent +public final class KeyValueFilter implements JsonSerializable { + /* + * Filters key-values by their key field. + */ + private String key; + + /* + * Filters key-values by their label field. + */ + private String label; + + /** + * Creates an instance of KeyValueFilter class. + */ + public KeyValueFilter() { + } + + /** + * Get the key property: Filters key-values by their key field. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: Filters key-values by their key field. + * + * @param key the key value to set. + * @return the KeyValueFilter object itself. + */ + public KeyValueFilter withKey(String key) { + this.key = key; + return this; + } + + /** + * Get the label property: Filters key-values by their label field. + * + * @return the label value. + */ + public String label() { + return this.label; + } + + /** + * Set the label property: Filters key-values by their label field. + * + * @param label the label value to set. + * @return the KeyValueFilter object itself. + */ + public KeyValueFilter withLabel(String label) { + this.label = label; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (key() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property key in model KeyValueFilter")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(KeyValueFilter.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("label", this.label); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KeyValueFilter from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KeyValueFilter if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KeyValueFilter. + */ + public static KeyValueFilter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KeyValueFilter deserializedKeyValueFilter = new KeyValueFilter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedKeyValueFilter.key = reader.getString(); + } else if ("label".equals(fieldName)) { + deserializedKeyValueFilter.label = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKeyValueFilter; + }); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java index 02e9258a01849..22390f085638c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java @@ -7,15 +7,19 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of KeyValues. */ +/** + * Resource collection API of KeyValues. + */ public interface KeyValues { /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -26,12 +30,14 @@ Response getWithResponse(String resourceGroupName, String configStoreN Context context); /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -40,12 +46,13 @@ Response getWithResponse(String resourceGroupName, String configStoreN KeyValue get(String resourceGroupName, String configStoreName, String keyValueName); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -53,12 +60,13 @@ Response getWithResponse(String resourceGroupName, String configStoreN void delete(String resourceGroupName, String configStoreName, String keyValueName); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. + * optional. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -67,8 +75,10 @@ Response getWithResponse(String resourceGroupName, String configStoreN void delete(String resourceGroupName, String configStoreName, String keyValueName, Context context); /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -78,8 +88,10 @@ Response getWithResponse(String resourceGroupName, String configStoreN KeyValue getById(String id); /** - * Gets the properties of the specified key-value. - * + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template + * deployments. For all other scenarios involving App Configuration key-values the data plane API should be used + * instead. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -90,8 +102,9 @@ Response getWithResponse(String resourceGroupName, String configStoreN Response getByIdWithResponse(String id, Context context); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -100,8 +113,9 @@ Response getWithResponse(String resourceGroupName, String configStoreN void deleteById(String id); /** - * Deletes a key-value. - * + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other + * scenarios involving App Configuration key-values the data plane API should be used instead. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -112,7 +126,7 @@ Response getWithResponse(String resourceGroupName, String configStoreN /** * Begins definition for a new KeyValue resource. - * + * * @param name resource name. * @return the first stage of the new KeyValue definition. */ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java index cc359b18b6685..65d4214b05a13 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java @@ -5,30 +5,36 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Settings concerning key vault encryption for a configuration store. */ +/** + * Settings concerning key vault encryption for a configuration store. + */ @Fluent -public final class KeyVaultProperties { +public final class KeyVaultProperties implements JsonSerializable { /* * The URI of the key vault key used to encrypt data. */ - @JsonProperty(value = "keyIdentifier") private String keyIdentifier; /* * The client id of the identity which will be used to access key vault. */ - @JsonProperty(value = "identityClientId") private String identityClientId; - /** Creates an instance of KeyVaultProperties class. */ + /** + * Creates an instance of KeyVaultProperties class. + */ public KeyVaultProperties() { } /** * Get the keyIdentifier property: The URI of the key vault key used to encrypt data. - * + * * @return the keyIdentifier value. */ public String keyIdentifier() { @@ -37,7 +43,7 @@ public String keyIdentifier() { /** * Set the keyIdentifier property: The URI of the key vault key used to encrypt data. - * + * * @param keyIdentifier the keyIdentifier value to set. * @return the KeyVaultProperties object itself. */ @@ -48,7 +54,7 @@ public KeyVaultProperties withKeyIdentifier(String keyIdentifier) { /** * Get the identityClientId property: The client id of the identity which will be used to access key vault. - * + * * @return the identityClientId value. */ public String identityClientId() { @@ -57,7 +63,7 @@ public String identityClientId() { /** * Set the identityClientId property: The client id of the identity which will be used to access key vault. - * + * * @param identityClientId the identityClientId value to set. * @return the KeyVaultProperties object itself. */ @@ -68,9 +74,48 @@ public KeyVaultProperties withIdentityClientId(String identityClientId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("keyIdentifier", this.keyIdentifier); + jsonWriter.writeStringField("identityClientId", this.identityClientId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KeyVaultProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KeyVaultProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the KeyVaultProperties. + */ + public static KeyVaultProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KeyVaultProperties deserializedKeyVaultProperties = new KeyVaultProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyIdentifier".equals(fieldName)) { + deserializedKeyVaultProperties.keyIdentifier = reader.getString(); + } else if ("identityClientId".equals(fieldName)) { + deserializedKeyVaultProperties.identityClientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKeyVaultProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java index c610779ce22e0..2caba17a20532 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java @@ -5,36 +5,41 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Specifications of the Log for Azure Monitoring. */ +/** + * Specifications of the Log for Azure Monitoring. + */ @Fluent -public final class LogSpecification { +public final class LogSpecification implements JsonSerializable { /* * Name of the log */ - @JsonProperty(value = "name") private String name; /* * Localized friendly display name of the log */ - @JsonProperty(value = "displayName") private String displayName; /* * Blob duration of the log */ - @JsonProperty(value = "blobDuration") private String blobDuration; - /** Creates an instance of LogSpecification class. */ + /** + * Creates an instance of LogSpecification class. + */ public LogSpecification() { } /** * Get the name property: Name of the log. - * + * * @return the name value. */ public String name() { @@ -43,7 +48,7 @@ public String name() { /** * Set the name property: Name of the log. - * + * * @param name the name value to set. * @return the LogSpecification object itself. */ @@ -54,7 +59,7 @@ public LogSpecification withName(String name) { /** * Get the displayName property: Localized friendly display name of the log. - * + * * @return the displayName value. */ public String displayName() { @@ -63,7 +68,7 @@ public String displayName() { /** * Set the displayName property: Localized friendly display name of the log. - * + * * @param displayName the displayName value to set. * @return the LogSpecification object itself. */ @@ -74,7 +79,7 @@ public LogSpecification withDisplayName(String displayName) { /** * Get the blobDuration property: Blob duration of the log. - * + * * @return the blobDuration value. */ public String blobDuration() { @@ -83,7 +88,7 @@ public String blobDuration() { /** * Set the blobDuration property: Blob duration of the log. - * + * * @param blobDuration the blobDuration value to set. * @return the LogSpecification object itself. */ @@ -94,9 +99,51 @@ public LogSpecification withBlobDuration(String blobDuration) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeStringField("blobDuration", this.blobDuration); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogSpecification from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogSpecification if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the LogSpecification. + */ + public static LogSpecification fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogSpecification deserializedLogSpecification = new LogSpecification(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedLogSpecification.name = reader.getString(); + } else if ("displayName".equals(fieldName)) { + deserializedLogSpecification.displayName = reader.getString(); + } else if ("blobDuration".equals(fieldName)) { + deserializedLogSpecification.blobDuration = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedLogSpecification; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java index 6fa515df4a3c3..ccbc6748b3d56 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java @@ -5,36 +5,41 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Specifications of the Dimension of metrics. */ +/** + * Specifications of the Dimension of metrics. + */ @Fluent -public final class MetricDimension { +public final class MetricDimension implements JsonSerializable { /* * Name of the dimension */ - @JsonProperty(value = "name") private String name; /* * Localized friendly display name of the dimension */ - @JsonProperty(value = "displayName") private String displayName; /* * Internal name of the dimension. */ - @JsonProperty(value = "internalName") private String internalName; - /** Creates an instance of MetricDimension class. */ + /** + * Creates an instance of MetricDimension class. + */ public MetricDimension() { } /** * Get the name property: Name of the dimension. - * + * * @return the name value. */ public String name() { @@ -43,7 +48,7 @@ public String name() { /** * Set the name property: Name of the dimension. - * + * * @param name the name value to set. * @return the MetricDimension object itself. */ @@ -54,7 +59,7 @@ public MetricDimension withName(String name) { /** * Get the displayName property: Localized friendly display name of the dimension. - * + * * @return the displayName value. */ public String displayName() { @@ -63,7 +68,7 @@ public String displayName() { /** * Set the displayName property: Localized friendly display name of the dimension. - * + * * @param displayName the displayName value to set. * @return the MetricDimension object itself. */ @@ -74,7 +79,7 @@ public MetricDimension withDisplayName(String displayName) { /** * Get the internalName property: Internal name of the dimension. - * + * * @return the internalName value. */ public String internalName() { @@ -83,7 +88,7 @@ public String internalName() { /** * Set the internalName property: Internal name of the dimension. - * + * * @param internalName the internalName value to set. * @return the MetricDimension object itself. */ @@ -94,9 +99,51 @@ public MetricDimension withInternalName(String internalName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeStringField("internalName", this.internalName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MetricDimension from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MetricDimension if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the MetricDimension. + */ + public static MetricDimension fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MetricDimension deserializedMetricDimension = new MetricDimension(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedMetricDimension.name = reader.getString(); + } else if ("displayName".equals(fieldName)) { + deserializedMetricDimension.displayName = reader.getString(); + } else if ("internalName".equals(fieldName)) { + deserializedMetricDimension.internalName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMetricDimension; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java index b27167f4cb320..a5baafcd1be8b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java @@ -5,67 +5,67 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** Specifications of the Metrics for Azure Monitoring. */ +/** + * Specifications of the Metrics for Azure Monitoring. + */ @Fluent -public final class MetricSpecification { +public final class MetricSpecification implements JsonSerializable { /* * Name of the metric */ - @JsonProperty(value = "name") private String name; /* * Localized friendly display name of the metric */ - @JsonProperty(value = "displayName") private String displayName; /* * Localized friendly description of the metric */ - @JsonProperty(value = "displayDescription") private String displayDescription; /* * Unit that makes sense for the metric */ - @JsonProperty(value = "unit") private String unit; /* * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. */ - @JsonProperty(value = "aggregationType") private String aggregationType; /* * Internal metric name. */ - @JsonProperty(value = "internalMetricName") private String internalMetricName; /* * Dimensions of the metric */ - @JsonProperty(value = "dimensions") private List dimensions; /* * Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. */ - @JsonProperty(value = "fillGapWithZero") private Boolean fillGapWithZero; - /** Creates an instance of MetricSpecification class. */ + /** + * Creates an instance of MetricSpecification class. + */ public MetricSpecification() { } /** * Get the name property: Name of the metric. - * + * * @return the name value. */ public String name() { @@ -74,7 +74,7 @@ public String name() { /** * Set the name property: Name of the metric. - * + * * @param name the name value to set. * @return the MetricSpecification object itself. */ @@ -85,7 +85,7 @@ public MetricSpecification withName(String name) { /** * Get the displayName property: Localized friendly display name of the metric. - * + * * @return the displayName value. */ public String displayName() { @@ -94,7 +94,7 @@ public String displayName() { /** * Set the displayName property: Localized friendly display name of the metric. - * + * * @param displayName the displayName value to set. * @return the MetricSpecification object itself. */ @@ -105,7 +105,7 @@ public MetricSpecification withDisplayName(String displayName) { /** * Get the displayDescription property: Localized friendly description of the metric. - * + * * @return the displayDescription value. */ public String displayDescription() { @@ -114,7 +114,7 @@ public String displayDescription() { /** * Set the displayDescription property: Localized friendly description of the metric. - * + * * @param displayDescription the displayDescription value to set. * @return the MetricSpecification object itself. */ @@ -125,7 +125,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { /** * Get the unit property: Unit that makes sense for the metric. - * + * * @return the unit value. */ public String unit() { @@ -134,7 +134,7 @@ public String unit() { /** * Set the unit property: Unit that makes sense for the metric. - * + * * @param unit the unit value to set. * @return the MetricSpecification object itself. */ @@ -146,7 +146,7 @@ public MetricSpecification withUnit(String unit) { /** * Get the aggregationType property: Only provide one value for this field. Valid values: Average, Minimum, Maximum, * Total, Count. - * + * * @return the aggregationType value. */ public String aggregationType() { @@ -156,7 +156,7 @@ public String aggregationType() { /** * Set the aggregationType property: Only provide one value for this field. Valid values: Average, Minimum, Maximum, * Total, Count. - * + * * @param aggregationType the aggregationType value to set. * @return the MetricSpecification object itself. */ @@ -167,7 +167,7 @@ public MetricSpecification withAggregationType(String aggregationType) { /** * Get the internalMetricName property: Internal metric name. - * + * * @return the internalMetricName value. */ public String internalMetricName() { @@ -176,7 +176,7 @@ public String internalMetricName() { /** * Set the internalMetricName property: Internal metric name. - * + * * @param internalMetricName the internalMetricName value to set. * @return the MetricSpecification object itself. */ @@ -187,7 +187,7 @@ public MetricSpecification withInternalMetricName(String internalMetricName) { /** * Get the dimensions property: Dimensions of the metric. - * + * * @return the dimensions value. */ public List dimensions() { @@ -196,7 +196,7 @@ public List dimensions() { /** * Set the dimensions property: Dimensions of the metric. - * + * * @param dimensions the dimensions value to set. * @return the MetricSpecification object itself. */ @@ -208,7 +208,7 @@ public MetricSpecification withDimensions(List dimensions) { /** * Get the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no * metric is emitted/published. - * + * * @return the fillGapWithZero value. */ public Boolean fillGapWithZero() { @@ -218,7 +218,7 @@ public Boolean fillGapWithZero() { /** * Set the fillGapWithZero property: Optional. If set to true, then zero will be returned for time duration where no * metric is emitted/published. - * + * * @param fillGapWithZero the fillGapWithZero value to set. * @return the MetricSpecification object itself. */ @@ -229,7 +229,7 @@ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -237,4 +237,62 @@ public void validate() { dimensions().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeStringField("displayDescription", this.displayDescription); + jsonWriter.writeStringField("unit", this.unit); + jsonWriter.writeStringField("aggregationType", this.aggregationType); + jsonWriter.writeStringField("internalMetricName", this.internalMetricName); + jsonWriter.writeArrayField("dimensions", this.dimensions, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeBooleanField("fillGapWithZero", this.fillGapWithZero); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MetricSpecification from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MetricSpecification if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the MetricSpecification. + */ + public static MetricSpecification fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MetricSpecification deserializedMetricSpecification = new MetricSpecification(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedMetricSpecification.name = reader.getString(); + } else if ("displayName".equals(fieldName)) { + deserializedMetricSpecification.displayName = reader.getString(); + } else if ("displayDescription".equals(fieldName)) { + deserializedMetricSpecification.displayDescription = reader.getString(); + } else if ("unit".equals(fieldName)) { + deserializedMetricSpecification.unit = reader.getString(); + } else if ("aggregationType".equals(fieldName)) { + deserializedMetricSpecification.aggregationType = reader.getString(); + } else if ("internalMetricName".equals(fieldName)) { + deserializedMetricSpecification.internalMetricName = reader.getString(); + } else if ("dimensions".equals(fieldName)) { + List dimensions = reader.readArray(reader1 -> MetricDimension.fromJson(reader1)); + deserializedMetricSpecification.dimensions = dimensions; + } else if ("fillGapWithZero".equals(fieldName)) { + deserializedMetricSpecification.fillGapWithZero = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedMetricSpecification; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/NameAvailabilityStatus.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/NameAvailabilityStatus.java index b30da4778e2f2..0b34b3e833b9d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/NameAvailabilityStatus.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/NameAvailabilityStatus.java @@ -6,11 +6,13 @@ import com.azure.resourcemanager.appconfiguration.fluent.models.NameAvailabilityStatusInner; -/** An immutable client-side representation of NameAvailabilityStatus. */ +/** + * An immutable client-side representation of NameAvailabilityStatus. + */ public interface NameAvailabilityStatus { /** * Gets the nameAvailable property: The value indicating whether the resource name is available. - * + * * @return the nameAvailable value. */ Boolean nameAvailable(); @@ -18,21 +20,21 @@ public interface NameAvailabilityStatus { /** * Gets the message property: If any, the error message that provides more detail for the reason that the name is * not available. - * + * * @return the message value. */ String message(); /** * Gets the reason property: If any, the reason that the name is not available. - * + * * @return the reason value. */ String reason(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.NameAvailabilityStatusInner object. - * + * * @return the inner object. */ NameAvailabilityStatusInner innerModel(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinition.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinition.java index fd8968790487c..c4562846be7a1 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinition.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinition.java @@ -6,46 +6,48 @@ import com.azure.resourcemanager.appconfiguration.fluent.models.OperationDefinitionInner; -/** An immutable client-side representation of OperationDefinition. */ +/** + * An immutable client-side representation of OperationDefinition. + */ public interface OperationDefinition { /** * Gets the name property: Operation name: {provider}/{resource}/{operation}. - * + * * @return the name value. */ String name(); /** * Gets the isDataAction property: Indicates whether the operation is a data action. - * + * * @return the isDataAction value. */ Boolean isDataAction(); /** * Gets the display property: The display information for the configuration store operation. - * + * * @return the display value. */ OperationDefinitionDisplay display(); /** * Gets the origin property: Origin of the operation. - * + * * @return the origin value. */ String origin(); /** * Gets the properties property: Properties of the operation. - * + * * @return the properties value. */ OperationProperties properties(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.OperationDefinitionInner object. - * + * * @return the inner object. */ OperationDefinitionInner innerModel(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java index 5cd85d86ad3f5..f712f3472f2c5 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java @@ -5,42 +5,46 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** The display information for a configuration store operation. */ +/** + * The display information for a configuration store operation. + */ @Fluent -public final class OperationDefinitionDisplay { +public final class OperationDefinitionDisplay implements JsonSerializable { /* * The resource provider name: Microsoft App Configuration." */ - @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) private String provider; /* * The resource on which the operation is performed. */ - @JsonProperty(value = "resource") private String resource; /* * The operation that users can perform. */ - @JsonProperty(value = "operation") private String operation; /* * The description for the operation. */ - @JsonProperty(value = "description") private String description; - /** Creates an instance of OperationDefinitionDisplay class. */ + /** + * Creates an instance of OperationDefinitionDisplay class. + */ public OperationDefinitionDisplay() { } /** * Get the provider property: The resource provider name: Microsoft App Configuration.". - * + * * @return the provider value. */ public String provider() { @@ -49,7 +53,7 @@ public String provider() { /** * Get the resource property: The resource on which the operation is performed. - * + * * @return the resource value. */ public String resource() { @@ -58,7 +62,7 @@ public String resource() { /** * Set the resource property: The resource on which the operation is performed. - * + * * @param resource the resource value to set. * @return the OperationDefinitionDisplay object itself. */ @@ -69,7 +73,7 @@ public OperationDefinitionDisplay withResource(String resource) { /** * Get the operation property: The operation that users can perform. - * + * * @return the operation value. */ public String operation() { @@ -78,7 +82,7 @@ public String operation() { /** * Set the operation property: The operation that users can perform. - * + * * @param operation the operation value to set. * @return the OperationDefinitionDisplay object itself. */ @@ -89,7 +93,7 @@ public OperationDefinitionDisplay withOperation(String operation) { /** * Get the description property: The description for the operation. - * + * * @return the description value. */ public String description() { @@ -98,7 +102,7 @@ public String description() { /** * Set the description property: The description for the operation. - * + * * @param description the description value to set. * @return the OperationDefinitionDisplay object itself. */ @@ -109,9 +113,53 @@ public OperationDefinitionDisplay withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resource", this.resource); + jsonWriter.writeStringField("operation", this.operation); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationDefinitionDisplay from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationDefinitionDisplay if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationDefinitionDisplay. + */ + public static OperationDefinitionDisplay fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationDefinitionDisplay deserializedOperationDefinitionDisplay = new OperationDefinitionDisplay(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provider".equals(fieldName)) { + deserializedOperationDefinitionDisplay.provider = reader.getString(); + } else if ("resource".equals(fieldName)) { + deserializedOperationDefinitionDisplay.resource = reader.getString(); + } else if ("operation".equals(fieldName)) { + deserializedOperationDefinitionDisplay.operation = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedOperationDefinitionDisplay.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationDefinitionDisplay; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java index c055051163fe1..9ead4b05f3774 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.OperationDefinitionInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** The result of a request to list configuration store operations. */ +/** + * The result of a request to list configuration store operations. + */ @Fluent -public final class OperationDefinitionListResult { +public final class OperationDefinitionListResult implements JsonSerializable { /* * The collection value. */ - @JsonProperty(value = "value") private List value; /* * The URI that can be used to request the next set of paged results. */ - @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of OperationDefinitionListResult class. */ + /** + * Creates an instance of OperationDefinitionListResult class. + */ public OperationDefinitionListResult() { } /** * Get the value property: The collection value. - * + * * @return the value value. */ public List value() { @@ -39,7 +45,7 @@ public List value() { /** * Set the value property: The collection value. - * + * * @param value the value value to set. * @return the OperationDefinitionListResult object itself. */ @@ -50,7 +56,7 @@ public OperationDefinitionListResult withValue(List va /** * Get the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +65,7 @@ public String nextLink() { /** * Set the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @param nextLink the nextLink value to set. * @return the OperationDefinitionListResult object itself. */ @@ -70,7 +76,7 @@ public OperationDefinitionListResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,46 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationDefinitionListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationDefinitionListResult if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationDefinitionListResult. + */ + public static OperationDefinitionListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationDefinitionListResult deserializedOperationDefinitionListResult + = new OperationDefinitionListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> OperationDefinitionInner.fromJson(reader1)); + deserializedOperationDefinitionListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedOperationDefinitionListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationDefinitionListResult; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java index 4e7673de43e71..1429288df9783 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java @@ -5,24 +5,31 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Extra Operation properties. */ +/** + * Extra Operation properties. + */ @Fluent -public final class OperationProperties { +public final class OperationProperties implements JsonSerializable { /* * Service specifications of the operation */ - @JsonProperty(value = "serviceSpecification") private ServiceSpecification serviceSpecification; - /** Creates an instance of OperationProperties class. */ + /** + * Creates an instance of OperationProperties class. + */ public OperationProperties() { } /** * Get the serviceSpecification property: Service specifications of the operation. - * + * * @return the serviceSpecification value. */ public ServiceSpecification serviceSpecification() { @@ -31,7 +38,7 @@ public ServiceSpecification serviceSpecification() { /** * Set the serviceSpecification property: Service specifications of the operation. - * + * * @param serviceSpecification the serviceSpecification value to set. * @return the OperationProperties object itself. */ @@ -42,7 +49,7 @@ public OperationProperties withServiceSpecification(ServiceSpecification service /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -50,4 +57,40 @@ public void validate() { serviceSpecification().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("serviceSpecification", this.serviceSpecification); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationProperties. + */ + public static OperationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationProperties deserializedOperationProperties = new OperationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("serviceSpecification".equals(fieldName)) { + deserializedOperationProperties.serviceSpecification = ServiceSpecification.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationProperties; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java index d7701d792555c..17dd434a001c5 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Operations. */ +/** + * Resource collection API of Operations. + */ public interface Operations { /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -25,7 +27,7 @@ Response checkNameAvailabilityWithResponse( /** * Checks whether the configuration store name is available for use. - * + * * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,32 +38,32 @@ Response checkNameAvailabilityWithResponse( /** * Lists the operations available from this provider. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedIterable}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** * Lists the operations available from this provider. - * + * * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list configuration store operations as paginated response with {@link - * PagedIterable}. + * @return the result of a request to list configuration store operations as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String skipToken, Context context); /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @param context The context to associate with this operation. @@ -75,7 +77,7 @@ Response regionalCheckNameAvailabilityWithResponse(Strin /** * Checks whether the configuration store name is available for use. - * + * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java index 7a62f227e538d..d4fff81800b8a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java @@ -5,24 +5,31 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Private endpoint which a connection belongs to. */ +/** + * Private endpoint which a connection belongs to. + */ @Fluent -public final class PrivateEndpoint { +public final class PrivateEndpoint implements JsonSerializable { /* * The resource Id for private endpoint */ - @JsonProperty(value = "id") private String id; - /** Creates an instance of PrivateEndpoint class. */ + /** + * Creates an instance of PrivateEndpoint class. + */ public PrivateEndpoint() { } /** * Get the id property: The resource Id for private endpoint. - * + * * @return the id value. */ public String id() { @@ -31,7 +38,7 @@ public String id() { /** * Set the id property: The resource Id for private endpoint. - * + * * @param id the id value to set. * @return the PrivateEndpoint object itself. */ @@ -42,9 +49,45 @@ public PrivateEndpoint withId(String id) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateEndpoint from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateEndpoint if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the PrivateEndpoint. + */ + public static PrivateEndpoint fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateEndpoint deserializedPrivateEndpoint = new PrivateEndpoint(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedPrivateEndpoint.id = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateEndpoint; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnection.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnection.java index 578aeea5bd00a..4f444388927f3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnection.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnection.java @@ -7,39 +7,41 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateEndpointConnectionInner; -/** An immutable client-side representation of PrivateEndpointConnection. */ +/** + * An immutable client-side representation of PrivateEndpointConnection. + */ public interface PrivateEndpointConnection { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the provisioningState property: The provisioning status of the private endpoint connection. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the privateEndpoint property: The resource of private endpoint. - * + * * @return the privateEndpoint value. */ PrivateEndpoint privateEndpoint(); @@ -47,41 +49,49 @@ public interface PrivateEndpointConnection { /** * Gets the privateLinkServiceConnectionState property: A collection of information about the state of the * connection between service consumer and provider. - * + * * @return the privateLinkServiceConnectionState value. */ PrivateLinkServiceConnectionState privateLinkServiceConnectionState(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.PrivateEndpointConnectionInner object. - * + * * @return the inner object. */ PrivateEndpointConnectionInner innerModel(); - /** The entirety of the PrivateEndpointConnection definition. */ + /** + * The entirety of the PrivateEndpointConnection definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The PrivateEndpointConnection definition stages. */ + /** + * The PrivateEndpointConnection definition stages. + */ interface DefinitionStages { - /** The first stage of the PrivateEndpointConnection definition. */ + /** + * The first stage of the PrivateEndpointConnection definition. + */ interface Blank extends WithParentResource { } - /** The stage of the PrivateEndpointConnection definition allowing to specify parent resource. */ + /** + * The stage of the PrivateEndpointConnection definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, configStoreName. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @return the next definition stage. @@ -97,25 +107,27 @@ interface WithCreate extends DefinitionStages.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState { /** * Executes the create request. - * + * * @return the created resource. */ PrivateEndpointConnection create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ PrivateEndpointConnection create(Context context); } - /** The stage of the PrivateEndpointConnection definition allowing to specify privateEndpoint. */ + /** + * The stage of the PrivateEndpointConnection definition allowing to specify privateEndpoint. + */ interface WithPrivateEndpoint { /** * Specifies the privateEndpoint property: The resource of private endpoint.. - * + * * @param privateEndpoint The resource of private endpoint. * @return the next definition stage. */ @@ -129,9 +141,9 @@ interface WithPrivateLinkServiceConnectionState { /** * Specifies the privateLinkServiceConnectionState property: A collection of information about the state of * the connection between service consumer and provider.. - * + * * @param privateLinkServiceConnectionState A collection of information about the state of the connection - * between service consumer and provider. + * between service consumer and provider. * @return the next definition stage. */ WithCreate withPrivateLinkServiceConnectionState( @@ -141,50 +153,58 @@ WithCreate withPrivateLinkServiceConnectionState( /** * Begins update for the PrivateEndpointConnection resource. - * + * * @return the stage of resource update. */ PrivateEndpointConnection.Update update(); - /** The template for PrivateEndpointConnection update. */ + /** + * The template for PrivateEndpointConnection update. + */ interface Update extends UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState { /** * Executes the update request. - * + * * @return the updated resource. */ PrivateEndpointConnection apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ PrivateEndpointConnection apply(Context context); } - /** The PrivateEndpointConnection update stages. */ + /** + * The PrivateEndpointConnection update stages. + */ interface UpdateStages { - /** The stage of the PrivateEndpointConnection update allowing to specify privateEndpoint. */ + /** + * The stage of the PrivateEndpointConnection update allowing to specify privateEndpoint. + */ interface WithPrivateEndpoint { /** * Specifies the privateEndpoint property: The resource of private endpoint.. - * + * * @param privateEndpoint The resource of private endpoint. * @return the next definition stage. */ Update withPrivateEndpoint(PrivateEndpoint privateEndpoint); } - /** The stage of the PrivateEndpointConnection update allowing to specify privateLinkServiceConnectionState. */ + /** + * The stage of the PrivateEndpointConnection update allowing to specify privateLinkServiceConnectionState. + */ interface WithPrivateLinkServiceConnectionState { /** * Specifies the privateLinkServiceConnectionState property: A collection of information about the state of * the connection between service consumer and provider.. - * + * * @param privateLinkServiceConnectionState A collection of information about the state of the connection - * between service consumer and provider. + * between service consumer and provider. * @return the next definition stage. */ Update withPrivateLinkServiceConnectionState( @@ -194,14 +214,14 @@ Update withPrivateLinkServiceConnectionState( /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ PrivateEndpointConnection refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java index 7f78bca1336b0..93e87695f2b3a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java @@ -5,32 +5,39 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateEndpointConnectionInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** A list of private endpoint connections. */ +/** + * A list of private endpoint connections. + */ @Fluent -public final class PrivateEndpointConnectionListResult { +public final class PrivateEndpointConnectionListResult + implements JsonSerializable { /* * The collection value. */ - @JsonProperty(value = "value") private List value; /* * The URI that can be used to request the next set of paged results. */ - @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of PrivateEndpointConnectionListResult class. */ + /** + * Creates an instance of PrivateEndpointConnectionListResult class. + */ public PrivateEndpointConnectionListResult() { } /** * Get the value property: The collection value. - * + * * @return the value value. */ public List value() { @@ -39,7 +46,7 @@ public List value() { /** * Set the value property: The collection value. - * + * * @param value the value value to set. * @return the PrivateEndpointConnectionListResult object itself. */ @@ -50,7 +57,7 @@ public PrivateEndpointConnectionListResult withValue(List e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateEndpointConnectionListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateEndpointConnectionListResult if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the PrivateEndpointConnectionListResult. + */ + public static PrivateEndpointConnectionListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateEndpointConnectionListResult deserializedPrivateEndpointConnectionListResult + = new PrivateEndpointConnectionListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1)); + deserializedPrivateEndpointConnectionListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedPrivateEndpointConnectionListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateEndpointConnectionListResult; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java index 449dad8b5b995..274d659ac0001 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java @@ -5,43 +5,47 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateEndpointConnectionProperties; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** A reference to a related private endpoint connection. */ +/** + * A reference to a related private endpoint connection. + */ @Fluent -public final class PrivateEndpointConnectionReference { +public final class PrivateEndpointConnectionReference implements JsonSerializable { /* * The resource ID. */ - @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; /* * The name of the resource. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The type of the resource. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type; /* * The properties of a private endpoint connection. */ - @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; - /** Creates an instance of PrivateEndpointConnectionReference class. */ + /** + * Creates an instance of PrivateEndpointConnectionReference class. + */ public PrivateEndpointConnectionReference() { } /** * Get the id property: The resource ID. - * + * * @return the id value. */ public String id() { @@ -50,7 +54,7 @@ public String id() { /** * Get the name property: The name of the resource. - * + * * @return the name value. */ public String name() { @@ -59,7 +63,7 @@ public String name() { /** * Get the type property: The type of the resource. - * + * * @return the type value. */ public String type() { @@ -68,7 +72,7 @@ public String type() { /** * Get the innerProperties property: The properties of a private endpoint connection. - * + * * @return the innerProperties value. */ private PrivateEndpointConnectionProperties innerProperties() { @@ -77,7 +81,7 @@ private PrivateEndpointConnectionProperties innerProperties() { /** * Get the provisioningState property: The provisioning status of the private endpoint connection. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -86,7 +90,7 @@ public ProvisioningState provisioningState() { /** * Get the privateEndpoint property: The resource of private endpoint. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -95,7 +99,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: The resource of private endpoint. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionReference object itself. */ @@ -110,7 +114,7 @@ public PrivateEndpointConnectionReference withPrivateEndpoint(PrivateEndpoint pr /** * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection * between service consumer and provider. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -120,7 +124,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection * between service consumer and provider. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionReference object itself. */ @@ -135,7 +139,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -143,4 +147,48 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateEndpointConnectionReference from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateEndpointConnectionReference if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the PrivateEndpointConnectionReference. + */ + public static PrivateEndpointConnectionReference fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateEndpointConnectionReference deserializedPrivateEndpointConnectionReference + = new PrivateEndpointConnectionReference(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedPrivateEndpointConnectionReference.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedPrivateEndpointConnectionReference.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedPrivateEndpointConnectionReference.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedPrivateEndpointConnectionReference.innerProperties + = PrivateEndpointConnectionProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateEndpointConnectionReference; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java index 9fe6048672a21..1fbdb4aeb9b8d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of PrivateEndpointConnections. */ +/** + * Resource collection API of PrivateEndpointConnections. + */ public interface PrivateEndpointConnections { /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +26,7 @@ public interface PrivateEndpointConnections { /** * Lists all private endpoint connections for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -38,7 +40,7 @@ PagedIterable listByConfigurationStore(String resourc /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -46,15 +48,15 @@ PagedIterable listByConfigurationStore(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store along with + * {@link Response}. */ Response getWithResponse(String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context); /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -68,7 +70,7 @@ PrivateEndpointConnection get(String resourceGroupName, String configStoreName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -80,7 +82,7 @@ PrivateEndpointConnection get(String resourceGroupName, String configStoreName, /** * Deletes a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. @@ -94,32 +96,32 @@ void delete(String resourceGroupName, String configStoreName, String privateEndp /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store along with + * {@link Response}. */ PrivateEndpointConnection getById(String id); /** * Gets the specified private endpoint connection associated with the configuration store. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store along with + * {@link Response}. */ Response getByIdWithResponse(String id, Context context); /** * Deletes a private endpoint connection. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -129,7 +131,7 @@ void delete(String resourceGroupName, String configStoreName, String privateEndp /** * Deletes a private endpoint connection. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,7 +142,7 @@ void delete(String resourceGroupName, String configStoreName, String privateEndp /** * Begins definition for a new PrivateEndpointConnection resource. - * + * * @param name resource name. * @return the first stage of the new PrivateEndpointConnection definition. */ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkDelegation.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkDelegation.java new file mode 100644 index 0000000000000..753173f3e532c --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkDelegation.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The data plane proxy private link delegation. This property manages if a request from delegated Azure Resource + * Manager (ARM) private link is allowed when the data plane resource requires private link. + */ +public final class PrivateLinkDelegation extends ExpandableStringEnum { + /** + * Static value Enabled for PrivateLinkDelegation. + */ + public static final PrivateLinkDelegation ENABLED = fromString("Enabled"); + + /** + * Static value Disabled for PrivateLinkDelegation. + */ + public static final PrivateLinkDelegation DISABLED = fromString("Disabled"); + + /** + * Creates a new instance of PrivateLinkDelegation value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PrivateLinkDelegation() { + } + + /** + * Creates or finds a PrivateLinkDelegation from its string representation. + * + * @param name a name to look for. + * @return the corresponding PrivateLinkDelegation. + */ + public static PrivateLinkDelegation fromString(String name) { + return fromString(name, PrivateLinkDelegation.class); + } + + /** + * Gets known PrivateLinkDelegation values. + * + * @return known PrivateLinkDelegation values. + */ + public static Collection values() { + return values(PrivateLinkDelegation.class); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResource.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResource.java index 0f299272305cc..bfe807b688873 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResource.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResource.java @@ -7,53 +7,55 @@ import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateLinkResourceInner; import java.util.List; -/** An immutable client-side representation of PrivateLinkResource. */ +/** + * An immutable client-side representation of PrivateLinkResource. + */ public interface PrivateLinkResource { /** * Gets the id property: The resource ID. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the groupId property: The private link resource group id. - * + * * @return the groupId value. */ String groupId(); /** * Gets the requiredMembers property: The private link resource required member names. - * + * * @return the requiredMembers value. */ List requiredMembers(); /** * Gets the requiredZoneNames property: The list of required DNS zone names of the private link resource. - * + * * @return the requiredZoneNames value. */ List requiredZoneNames(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.PrivateLinkResourceInner object. - * + * * @return the inner object. */ PrivateLinkResourceInner innerModel(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java index 8780076621e70..aa5da08becbc6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateLinkResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** A list of private link resources. */ +/** + * A list of private link resources. + */ @Fluent -public final class PrivateLinkResourceListResult { +public final class PrivateLinkResourceListResult implements JsonSerializable { /* * The collection value. */ - @JsonProperty(value = "value") private List value; /* * The URI that can be used to request the next set of paged results. */ - @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of PrivateLinkResourceListResult class. */ + /** + * Creates an instance of PrivateLinkResourceListResult class. + */ public PrivateLinkResourceListResult() { } /** * Get the value property: The collection value. - * + * * @return the value value. */ public List value() { @@ -39,7 +45,7 @@ public List value() { /** * Set the value property: The collection value. - * + * * @param value the value value to set. * @return the PrivateLinkResourceListResult object itself. */ @@ -50,7 +56,7 @@ public PrivateLinkResourceListResult withValue(List va /** * Get the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +65,7 @@ public String nextLink() { /** * Set the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @param nextLink the nextLink value to set. * @return the PrivateLinkResourceListResult object itself. */ @@ -70,7 +76,7 @@ public PrivateLinkResourceListResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,46 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateLinkResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateLinkResourceListResult if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the PrivateLinkResourceListResult. + */ + public static PrivateLinkResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateLinkResourceListResult deserializedPrivateLinkResourceListResult + = new PrivateLinkResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> PrivateLinkResourceInner.fromJson(reader1)); + deserializedPrivateLinkResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedPrivateLinkResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateLinkResourceListResult; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java index 33c039c7acee1..c77f24ca64cea 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java @@ -8,24 +8,26 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of PrivateLinkResources. */ +/** + * Resource collection API of PrivateLinkResources. + */ public interface PrivateLinkResources { /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName); /** * Gets the private link resources that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param context The context to associate with this operation. @@ -33,14 +35,14 @@ public interface PrivateLinkResources { * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the private link resources that need to be created for a configuration store as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName, Context context); /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. @@ -55,7 +57,7 @@ Response getWithResponse(String resourceGroupName, String c /** * Gets a private link resource that need to be created for a configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java index 95a645e6ab25a..b2b0d0af80f61 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java @@ -5,36 +5,41 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** The state of a private link service connection. */ +/** + * The state of a private link service connection. + */ @Fluent -public final class PrivateLinkServiceConnectionState { +public final class PrivateLinkServiceConnectionState implements JsonSerializable { /* * The private link service connection status. */ - @JsonProperty(value = "status") private ConnectionStatus status; /* * The private link service connection description. */ - @JsonProperty(value = "description") private String description; /* * Any action that is required beyond basic workflow (approve/ reject/ disconnect) */ - @JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY) private ActionsRequired actionsRequired; - /** Creates an instance of PrivateLinkServiceConnectionState class. */ + /** + * Creates an instance of PrivateLinkServiceConnectionState class. + */ public PrivateLinkServiceConnectionState() { } /** * Get the status property: The private link service connection status. - * + * * @return the status value. */ public ConnectionStatus status() { @@ -43,7 +48,7 @@ public ConnectionStatus status() { /** * Set the status property: The private link service connection status. - * + * * @param status the status value to set. * @return the PrivateLinkServiceConnectionState object itself. */ @@ -54,7 +59,7 @@ public PrivateLinkServiceConnectionState withStatus(ConnectionStatus status) { /** * Get the description property: The private link service connection description. - * + * * @return the description value. */ public String description() { @@ -63,7 +68,7 @@ public String description() { /** * Set the description property: The private link service connection description. - * + * * @param description the description value to set. * @return the PrivateLinkServiceConnectionState object itself. */ @@ -75,7 +80,7 @@ public PrivateLinkServiceConnectionState withDescription(String description) { /** * Get the actionsRequired property: Any action that is required beyond basic workflow (approve/ reject/ * disconnect). - * + * * @return the actionsRequired value. */ public ActionsRequired actionsRequired() { @@ -84,9 +89,53 @@ public ActionsRequired actionsRequired() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateLinkServiceConnectionState from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateLinkServiceConnectionState if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the PrivateLinkServiceConnectionState. + */ + public static PrivateLinkServiceConnectionState fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateLinkServiceConnectionState deserializedPrivateLinkServiceConnectionState + = new PrivateLinkServiceConnectionState(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("status".equals(fieldName)) { + deserializedPrivateLinkServiceConnectionState.status + = ConnectionStatus.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + deserializedPrivateLinkServiceConnectionState.description = reader.getString(); + } else if ("actionsRequired".equals(fieldName)) { + deserializedPrivateLinkServiceConnectionState.actionsRequired + = ActionsRequired.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateLinkServiceConnectionState; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java index 9006ba2c82329..09944213f4e19 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java @@ -5,32 +5,45 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the configuration store. */ +/** + * The provisioning state of the configuration store. + */ public final class ProvisioningState extends ExpandableStringEnum { - /** Static value Creating for ProvisioningState. */ + /** + * Static value Creating for ProvisioningState. + */ public static final ProvisioningState CREATING = fromString("Creating"); - /** Static value Updating for ProvisioningState. */ + /** + * Static value Updating for ProvisioningState. + */ public static final ProvisioningState UPDATING = fromString("Updating"); - /** Static value Deleting for ProvisioningState. */ + /** + * Static value Deleting for ProvisioningState. + */ public static final ProvisioningState DELETING = fromString("Deleting"); - /** Static value Succeeded for ProvisioningState. */ + /** + * Static value Succeeded for ProvisioningState. + */ public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ProvisioningState. */ + /** + * Static value Failed for ProvisioningState. + */ public static final ProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for ProvisioningState. */ + /** + * Static value Canceled for ProvisioningState. + */ public static final ProvisioningState CANCELED = fromString("Canceled"); /** * Creates a new instance of ProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -39,18 +52,17 @@ public ProvisioningState() { /** * Creates or finds a ProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ProvisioningState. */ - @JsonCreator public static ProvisioningState fromString(String name) { return fromString(name, ProvisioningState.class); } /** * Gets known ProvisioningState values. - * + * * @return known ProvisioningState values. */ public static Collection values() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PublicNetworkAccess.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PublicNetworkAccess.java index d609588c0c57c..eaed72764a8fb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PublicNetworkAccess.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PublicNetworkAccess.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ +/** + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. + */ public final class PublicNetworkAccess extends ExpandableStringEnum { - /** Static value Enabled for PublicNetworkAccess. */ + /** + * Static value Enabled for PublicNetworkAccess. + */ public static final PublicNetworkAccess ENABLED = fromString("Enabled"); - /** Static value Disabled for PublicNetworkAccess. */ + /** + * Static value Disabled for PublicNetworkAccess. + */ public static final PublicNetworkAccess DISABLED = fromString("Disabled"); /** * Creates a new instance of PublicNetworkAccess value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public PublicNetworkAccess() { /** * Creates or finds a PublicNetworkAccess from its string representation. - * + * * @param name a name to look for. * @return the corresponding PublicNetworkAccess. */ - @JsonCreator public static PublicNetworkAccess fromString(String name) { return fromString(name, PublicNetworkAccess.class); } /** * Gets known PublicNetworkAccess values. - * + * * @return known PublicNetworkAccess values. */ public static Collection values() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/RegenerateKeyParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/RegenerateKeyParameters.java index ae7940c14a14b..e0ef133d214f6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/RegenerateKeyParameters.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/RegenerateKeyParameters.java @@ -5,24 +5,31 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** The parameters used to regenerate an API key. */ +/** + * The parameters used to regenerate an API key. + */ @Fluent -public final class RegenerateKeyParameters { +public final class RegenerateKeyParameters implements JsonSerializable { /* * The id of the key to regenerate. */ - @JsonProperty(value = "id") private String id; - /** Creates an instance of RegenerateKeyParameters class. */ + /** + * Creates an instance of RegenerateKeyParameters class. + */ public RegenerateKeyParameters() { } /** * Get the id property: The id of the key to regenerate. - * + * * @return the id value. */ public String id() { @@ -31,7 +38,7 @@ public String id() { /** * Set the id property: The id of the key to regenerate. - * + * * @param id the id value to set. * @return the RegenerateKeyParameters object itself. */ @@ -42,9 +49,45 @@ public RegenerateKeyParameters withId(String id) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RegenerateKeyParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RegenerateKeyParameters if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the RegenerateKeyParameters. + */ + public static RegenerateKeyParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RegenerateKeyParameters deserializedRegenerateKeyParameters = new RegenerateKeyParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRegenerateKeyParameters.id = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedRegenerateKeyParameters; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replica.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replica.java index 5e4b5caa1debc..24feec7801447 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replica.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replica.java @@ -9,94 +9,104 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.fluent.models.ReplicaInner; -/** An immutable client-side representation of Replica. */ +/** + * An immutable client-side representation of Replica. + */ public interface Replica { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The location of the replica. - * + * * @return the location value. */ String location(); /** * Gets the systemData property: Resource system metadata. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the endpoint property: The URI of the replica where the replica API will be available. - * + * * @return the endpoint value. */ String endpoint(); /** * Gets the provisioningState property: The provisioning state of the replica. - * + * * @return the provisioningState value. */ ReplicaProvisioningState provisioningState(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.ReplicaInner object. - * + * * @return the inner object. */ ReplicaInner innerModel(); - /** The entirety of the Replica definition. */ + /** + * The entirety of the Replica definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The Replica definition stages. */ + /** + * The Replica definition stages. + */ interface DefinitionStages { - /** The first stage of the Replica definition. */ + /** + * The first stage of the Replica definition. + */ interface Blank extends WithParentResource { } - /** The stage of the Replica definition allowing to specify parent resource. */ + /** + * The stage of the Replica definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, configStoreName. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @return the next definition stage. @@ -111,25 +121,27 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithLocation { /** * Executes the create request. - * + * * @return the created resource. */ Replica create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Replica create(Context context); } - /** The stage of the Replica definition allowing to specify location. */ + /** + * The stage of the Replica definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The location of the replica. * @return the next definition stage. */ @@ -137,7 +149,7 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The location of the replica. * @return the next definition stage. */ @@ -147,14 +159,14 @@ interface WithLocation { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Replica refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaListResult.java index 7040be3d80ef1..e8e0a3ef09b21 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaListResult.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.appconfiguration.fluent.models.ReplicaInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** The result of a request to list replicas. */ +/** + * The result of a request to list replicas. + */ @Fluent -public final class ReplicaListResult { +public final class ReplicaListResult implements JsonSerializable { /* * The collection value. */ - @JsonProperty(value = "value") private List value; /* * The URI that can be used to request the next set of paged results. */ - @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of ReplicaListResult class. */ + /** + * Creates an instance of ReplicaListResult class. + */ public ReplicaListResult() { } /** * Get the value property: The collection value. - * + * * @return the value value. */ public List value() { @@ -39,7 +45,7 @@ public List value() { /** * Set the value property: The collection value. - * + * * @param value the value value to set. * @return the ReplicaListResult object itself. */ @@ -50,7 +56,7 @@ public ReplicaListResult withValue(List value) { /** * Get the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +65,7 @@ public String nextLink() { /** * Set the nextLink property: The URI that can be used to request the next set of paged results. - * + * * @param nextLink the nextLink value to set. * @return the ReplicaListResult object itself. */ @@ -70,7 +76,7 @@ public ReplicaListResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReplicaListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReplicaListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ReplicaListResult. + */ + public static ReplicaListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReplicaListResult deserializedReplicaListResult = new ReplicaListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ReplicaInner.fromJson(reader1)); + deserializedReplicaListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedReplicaListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedReplicaListResult; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaProvisioningState.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaProvisioningState.java index 5247d2a26f6f7..3be16c1941e2e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaProvisioningState.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ReplicaProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the replica. */ +/** + * The provisioning state of the replica. + */ public final class ReplicaProvisioningState extends ExpandableStringEnum { - /** Static value Creating for ReplicaProvisioningState. */ + /** + * Static value Creating for ReplicaProvisioningState. + */ public static final ReplicaProvisioningState CREATING = fromString("Creating"); - /** Static value Succeeded for ReplicaProvisioningState. */ + /** + * Static value Succeeded for ReplicaProvisioningState. + */ public static final ReplicaProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Deleting for ReplicaProvisioningState. */ + /** + * Static value Deleting for ReplicaProvisioningState. + */ public static final ReplicaProvisioningState DELETING = fromString("Deleting"); - /** Static value Failed for ReplicaProvisioningState. */ + /** + * Static value Failed for ReplicaProvisioningState. + */ public static final ReplicaProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for ReplicaProvisioningState. */ + /** + * Static value Canceled for ReplicaProvisioningState. + */ public static final ReplicaProvisioningState CANCELED = fromString("Canceled"); /** * Creates a new instance of ReplicaProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public ReplicaProvisioningState() { /** * Creates or finds a ReplicaProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ReplicaProvisioningState. */ - @JsonCreator public static ReplicaProvisioningState fromString(String name) { return fromString(name, ReplicaProvisioningState.class); } /** * Gets known ReplicaProvisioningState values. - * + * * @return known ReplicaProvisioningState values. */ public static Collection values() { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replicas.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replicas.java index ada9f08c0cda3..febb0e4bea0f7 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replicas.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Replicas.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Replicas. */ +/** + * Resource collection API of Replicas. + */ public interface Replicas { /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,12 +26,12 @@ public interface Replicas { /** * Lists the replicas for a given configuration store. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken + * parameter that specifies a starting point to use for subsequent calls. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -41,7 +43,7 @@ PagedIterable listByConfigurationStore(String resourceGroupName, String /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -56,7 +58,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Gets the properties of the specified replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -69,7 +71,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -81,7 +83,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Deletes a replica. - * + * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param replicaName The name of the replica. @@ -94,7 +96,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Gets the properties of the specified replica. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -105,7 +107,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Gets the properties of the specified replica. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -117,7 +119,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Deletes a replica. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -127,7 +129,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Deletes a replica. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,7 +140,7 @@ Response getWithResponse(String resourceGroupName, String configStoreNa /** * Begins definition for a new Replica resource. - * + * * @param name resource name. * @return the first stage of the new Replica definition. */ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ResourceIdentity.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ResourceIdentity.java index 810e36a7a30a3..f70a048e1cd4b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ResourceIdentity.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ResourceIdentity.java @@ -5,50 +5,53 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.Map; -/** An identity that can be associated with a resource. */ +/** + * An identity that can be associated with a resource. + */ @Fluent -public final class ResourceIdentity { +public final class ResourceIdentity implements JsonSerializable { /* * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created * identity and a set of user-assigned identities. The type 'None' will remove any identities. */ - @JsonProperty(value = "type") private IdentityType type; /* * The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys * will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/ + * userAssignedIdentities/{identityName}'. */ - @JsonProperty(value = "userAssignedIdentities") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; /* * The principal id of the identity. This property will only be provided for a system-assigned identity. */ - @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private String principalId; /* * The tenant id associated with the resource's identity. This property will only be provided for a system-assigned * identity. */ - @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private String tenantId; - /** Creates an instance of ResourceIdentity class. */ + /** + * Creates an instance of ResourceIdentity class. + */ public ResourceIdentity() { } /** * Get the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. - * + * * @return the type value. */ public IdentityType type() { @@ -58,7 +61,7 @@ public IdentityType type() { /** * Set the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. - * + * * @param type the type value to set. * @return the ResourceIdentity object itself. */ @@ -71,7 +74,7 @@ public ResourceIdentity withType(IdentityType type) { * Get the userAssignedIdentities property: The list of user-assigned identities associated with the resource. The * user-assigned identity dictionary keys will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - * + * * @return the userAssignedIdentities value. */ public Map userAssignedIdentities() { @@ -82,7 +85,7 @@ public Map userAssignedIdentities() { * Set the userAssignedIdentities property: The list of user-assigned identities associated with the resource. The * user-assigned identity dictionary keys will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - * + * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ResourceIdentity object itself. */ @@ -94,7 +97,7 @@ public ResourceIdentity withUserAssignedIdentities(Map use /** * Get the principalId property: The principal id of the identity. This property will only be provided for a * system-assigned identity. - * + * * @return the principalId value. */ public String principalId() { @@ -104,7 +107,7 @@ public String principalId() { /** * Get the tenantId property: The tenant id associated with the resource's identity. This property will only be * provided for a system-assigned identity. - * + * * @return the tenantId value. */ public String tenantId() { @@ -113,7 +116,7 @@ public String tenantId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -125,4 +128,50 @@ public void validate() { }); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceIdentity if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ResourceIdentity. + */ + public static ResourceIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceIdentity deserializedResourceIdentity = new ResourceIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedResourceIdentity.type = IdentityType.fromString(reader.getString()); + } else if ("userAssignedIdentities".equals(fieldName)) { + Map userAssignedIdentities + = reader.readMap(reader1 -> UserIdentity.fromJson(reader1)); + deserializedResourceIdentity.userAssignedIdentities = userAssignedIdentities; + } else if ("principalId".equals(fieldName)) { + deserializedResourceIdentity.principalId = reader.getString(); + } else if ("tenantId".equals(fieldName)) { + deserializedResourceIdentity.tenantId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceIdentity; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java index ddf7c1f1edab7..ff4db5c62bab6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java @@ -5,31 +5,37 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** Service specification payload. */ +/** + * Service specification payload. + */ @Fluent -public final class ServiceSpecification { +public final class ServiceSpecification implements JsonSerializable { /* * Specifications of the Log for Azure Monitoring */ - @JsonProperty(value = "logSpecifications") private List logSpecifications; /* * Specifications of the Metrics for Azure Monitoring */ - @JsonProperty(value = "metricSpecifications") private List metricSpecifications; - /** Creates an instance of ServiceSpecification class. */ + /** + * Creates an instance of ServiceSpecification class. + */ public ServiceSpecification() { } /** * Get the logSpecifications property: Specifications of the Log for Azure Monitoring. - * + * * @return the logSpecifications value. */ public List logSpecifications() { @@ -38,7 +44,7 @@ public List logSpecifications() { /** * Set the logSpecifications property: Specifications of the Log for Azure Monitoring. - * + * * @param logSpecifications the logSpecifications value to set. * @return the ServiceSpecification object itself. */ @@ -49,7 +55,7 @@ public ServiceSpecification withLogSpecifications(List logSpec /** * Get the metricSpecifications property: Specifications of the Metrics for Azure Monitoring. - * + * * @return the metricSpecifications value. */ public List metricSpecifications() { @@ -58,7 +64,7 @@ public List metricSpecifications() { /** * Set the metricSpecifications property: Specifications of the Metrics for Azure Monitoring. - * + * * @param metricSpecifications the metricSpecifications value to set. * @return the ServiceSpecification object itself. */ @@ -69,7 +75,7 @@ public ServiceSpecification withMetricSpecifications(List m /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -80,4 +86,49 @@ public void validate() { metricSpecifications().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("logSpecifications", this.logSpecifications, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("metricSpecifications", this.metricSpecifications, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServiceSpecification from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServiceSpecification if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ServiceSpecification. + */ + public static ServiceSpecification fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServiceSpecification deserializedServiceSpecification = new ServiceSpecification(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("logSpecifications".equals(fieldName)) { + List logSpecifications + = reader.readArray(reader1 -> LogSpecification.fromJson(reader1)); + deserializedServiceSpecification.logSpecifications = logSpecifications; + } else if ("metricSpecifications".equals(fieldName)) { + List metricSpecifications + = reader.readArray(reader1 -> MetricSpecification.fromJson(reader1)); + deserializedServiceSpecification.metricSpecifications = metricSpecifications; + } else { + reader.skipChildren(); + } + } + + return deserializedServiceSpecification; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java index 22920fc8122fb..73dae1c00e094 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java @@ -6,24 +6,31 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Describes a configuration store SKU. */ +/** + * Describes a configuration store SKU. + */ @Fluent -public final class Sku { +public final class Sku implements JsonSerializable { /* * The SKU name of the configuration store. */ - @JsonProperty(value = "name", required = true) private String name; - /** Creates an instance of Sku class. */ + /** + * Creates an instance of Sku class. + */ public Sku() { } /** * Get the name property: The SKU name of the configuration store. - * + * * @return the name value. */ public String name() { @@ -32,7 +39,7 @@ public String name() { /** * Set the name property: The SKU name of the configuration store. - * + * * @param name the name value to set. * @return the Sku object itself. */ @@ -43,15 +50,51 @@ public Sku withName(String name) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER - .logExceptionAsError(new IllegalArgumentException("Missing required property name in model Sku")); + throw LOGGER.atError().log(new IllegalArgumentException("Missing required property name in model Sku")); } } private static final ClientLogger LOGGER = new ClientLogger(Sku.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Sku from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Sku if the JsonReader was pointing to an instance of it, or null if it was pointing to + * JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the Sku. + */ + public static Sku fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Sku deserializedSku = new Sku(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedSku.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSku; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshot.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshot.java new file mode 100644 index 0000000000000..a3231e0b62788 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshot.java @@ -0,0 +1,259 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.util.Context; +import com.azure.resourcemanager.appconfiguration.fluent.models.SnapshotInner; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +/** + * An immutable client-side representation of Snapshot. + */ +public interface Snapshot { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the provisioningState property: The provisioning state of the snapshot. + * + * @return the provisioningState value. + */ + ProvisioningState provisioningState(); + + /** + * Gets the status property: The current status of the snapshot. + * + * @return the status value. + */ + SnapshotStatus status(); + + /** + * Gets the filters property: A list of filters used to filter the key-values included in the snapshot. + * + * @return the filters value. + */ + List filters(); + + /** + * Gets the compositionType property: The composition type describes how the key-values within the snapshot are + * composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' + * composition type ensures there are no two key-values containing the same key and label. + * + * @return the compositionType value. + */ + CompositionType compositionType(); + + /** + * Gets the created property: The time that the snapshot was created. + * + * @return the created value. + */ + OffsetDateTime created(); + + /** + * Gets the expires property: The time that the snapshot will expire. + * + * @return the expires value. + */ + OffsetDateTime expires(); + + /** + * Gets the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in the archived + * state before expiring. This property is only writable during the creation of a snapshot. If not specified, the + * default lifetime of key-value revisions will be used. + * + * @return the retentionPeriod value. + */ + Long retentionPeriod(); + + /** + * Gets the size property: The size in bytes of the snapshot. + * + * @return the size value. + */ + Long size(); + + /** + * Gets the itemsCount property: The amount of key-values in the snapshot. + * + * @return the itemsCount value. + */ + Long itemsCount(); + + /** + * Gets the tags property: The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager + * (ARM) tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the etag property: A value representing the current state of the snapshot. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the inner com.azure.resourcemanager.appconfiguration.fluent.models.SnapshotInner object. + * + * @return the inner object. + */ + SnapshotInner innerModel(); + + /** + * The entirety of the Snapshot definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The Snapshot definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the Snapshot definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the Snapshot definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, configStoreName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @return the next definition stage. + */ + WithCreate withExistingConfigurationStore(String resourceGroupName, String configStoreName); + } + + /** + * The stage of the Snapshot definition which contains all the minimum required properties for the resource to + * be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithFilters, + DefinitionStages.WithCompositionType, DefinitionStages.WithRetentionPeriod { + /** + * Executes the create request. + * + * @return the created resource. + */ + Snapshot create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + Snapshot create(Context context); + } + + /** + * The stage of the Snapshot definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: The tags of the snapshot. NOTE: These are data plane tags, not Azure + * Resource Manager (ARM) tags.. + * + * @param tags The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager (ARM) + * tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the Snapshot definition allowing to specify filters. + */ + interface WithFilters { + /** + * Specifies the filters property: A list of filters used to filter the key-values included in the + * snapshot.. + * + * @param filters A list of filters used to filter the key-values included in the snapshot. + * @return the next definition stage. + */ + WithCreate withFilters(List filters); + } + + /** + * The stage of the Snapshot definition allowing to specify compositionType. + */ + interface WithCompositionType { + /** + * Specifies the compositionType property: The composition type describes how the key-values within the + * snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same + * key. The 'key_label' composition type ensures there are no two key-values containing the same key and + * label.. + * + * @param compositionType The composition type describes how the key-values within the snapshot are + * composed. The 'key' composition type ensures there are no two key-values containing the same key. The + * 'key_label' composition type ensures there are no two key-values containing the same key and label. + * @return the next definition stage. + */ + WithCreate withCompositionType(CompositionType compositionType); + } + + /** + * The stage of the Snapshot definition allowing to specify retentionPeriod. + */ + interface WithRetentionPeriod { + /** + * Specifies the retentionPeriod property: The amount of time, in seconds, that a snapshot will remain in + * the archived state before expiring. This property is only writable during the creation of a snapshot. If + * not specified, the default lifetime of key-value revisions will be used.. + * + * @param retentionPeriod The amount of time, in seconds, that a snapshot will remain in the archived state + * before expiring. This property is only writable during the creation of a snapshot. If not specified, the + * default lifetime of key-value revisions will be used. + * @return the next definition stage. + */ + WithCreate withRetentionPeriod(Long retentionPeriod); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + Snapshot refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + Snapshot refresh(Context context); +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/SnapshotStatus.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/SnapshotStatus.java new file mode 100644 index 0000000000000..154657d052225 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/SnapshotStatus.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The current status of the snapshot. + */ +public final class SnapshotStatus extends ExpandableStringEnum { + /** + * Static value Provisioning for SnapshotStatus. + */ + public static final SnapshotStatus PROVISIONING = fromString("Provisioning"); + + /** + * Static value Ready for SnapshotStatus. + */ + public static final SnapshotStatus READY = fromString("Ready"); + + /** + * Static value Archived for SnapshotStatus. + */ + public static final SnapshotStatus ARCHIVED = fromString("Archived"); + + /** + * Static value Failed for SnapshotStatus. + */ + public static final SnapshotStatus FAILED = fromString("Failed"); + + /** + * Creates a new instance of SnapshotStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SnapshotStatus() { + } + + /** + * Creates or finds a SnapshotStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding SnapshotStatus. + */ + public static SnapshotStatus fromString(String name) { + return fromString(name, SnapshotStatus.class); + } + + /** + * Gets known SnapshotStatus values. + * + * @return known SnapshotStatus values. + */ + public static Collection values() { + return values(SnapshotStatus.class); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshots.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshots.java new file mode 100644 index 0000000000000..7802c2870b5a7 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Snapshots.java @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of Snapshots. + */ +public interface Snapshots { + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String configStoreName, String snapshotName, + Context context); + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot. + */ + Snapshot get(String resourceGroupName, String configStoreName, String snapshotName); + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot along with {@link Response}. + */ + Snapshot getById(String id); + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager + * (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API + * should be used instead. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the properties of the specified snapshot along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new Snapshot resource. + * + * @param name resource name. + * @return the first stage of the new Snapshot definition. + */ + Snapshot.DefinitionStages.Blank define(String name); +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java index 65969b7c5338d..d813a8211cf3a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java @@ -5,30 +5,36 @@ package com.azure.resourcemanager.appconfiguration.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** A resource identity that is managed by the user of the service. */ +/** + * A resource identity that is managed by the user of the service. + */ @Immutable -public final class UserIdentity { +public final class UserIdentity implements JsonSerializable { /* * The principal ID of the user-assigned identity. */ - @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private String principalId; /* * The client ID of the user-assigned identity. */ - @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private String clientId; - /** Creates an instance of UserIdentity class. */ + /** + * Creates an instance of UserIdentity class. + */ public UserIdentity() { } /** * Get the principalId property: The principal ID of the user-assigned identity. - * + * * @return the principalId value. */ public String principalId() { @@ -37,7 +43,7 @@ public String principalId() { /** * Get the clientId property: The client ID of the user-assigned identity. - * + * * @return the clientId value. */ public String clientId() { @@ -46,9 +52,46 @@ public String clientId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UserIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UserIdentity if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the UserIdentity. + */ + public static UserIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UserIdentity deserializedUserIdentity = new UserIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("principalId".equals(fieldName)) { + deserializedUserIdentity.principalId = reader.getString(); + } else if ("clientId".equals(fieldName)) { + deserializedUserIdentity.clientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUserIdentity; + }); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/package-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/package-info.java index 5254e86a43798..2b374f6bd33eb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/package-info.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the data models for AppConfigurationManagementClient. null. */ +/** + * Package containing the data models for AppConfigurationManagementClient. + * null. + */ package com.azure.resourcemanager.appconfiguration.models; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/package-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/package-info.java index 41ab7f252f7c0..4a0a4425ccb22 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/package-info.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the classes for AppConfigurationManagementClient. null. */ +/** + * Package containing the classes for AppConfigurationManagementClient. + * null. + */ package com.azure.resourcemanager.appconfiguration; diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/module-info.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/module-info.java index f337364b5aa72..b26183545ee20 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/module-info.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/module-info.java @@ -10,6 +10,6 @@ exports com.azure.resourcemanager.appconfiguration.fluent.models; exports com.azure.resourcemanager.appconfiguration.models; - opens com.azure.resourcemanager.appconfiguration.fluent.models to com.azure.core, com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.appconfiguration.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.appconfiguration.fluent.models to com.azure.core; + opens com.azure.resourcemanager.appconfiguration.models to com.azure.core; } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/proxy-config.json b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/proxy-config.json new file mode 100644 index 0000000000000..9d68fb162577e --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/proxy-config.json @@ -0,0 +1 @@ +[["com.azure.resourcemanager.appconfiguration.implementation.ConfigurationStoresClientImpl$ConfigurationStoresService"],["com.azure.resourcemanager.appconfiguration.implementation.KeyValuesClientImpl$KeyValuesService"],["com.azure.resourcemanager.appconfiguration.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.appconfiguration.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.appconfiguration.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.appconfiguration.implementation.ReplicasClientImpl$ReplicasService"],["com.azure.resourcemanager.appconfiguration.implementation.SnapshotsClientImpl$SnapshotsService"]] \ No newline at end of file diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/reflect-config.json b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/reflect-config.json new file mode 100644 index 0000000000000..0637a088a01e8 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-appconfiguration/reflect-config.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateSamples.java index 4819d70575fcc..a2e028d545709 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateSamples.java @@ -4,27 +4,33 @@ package com.azure.resourcemanager.appconfiguration.generated; +import com.azure.resourcemanager.appconfiguration.models.AuthenticationMode; +import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties; import com.azure.resourcemanager.appconfiguration.models.IdentityType; +import com.azure.resourcemanager.appconfiguration.models.PrivateLinkDelegation; import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; import com.azure.resourcemanager.appconfiguration.models.Sku; import com.azure.resourcemanager.appconfiguration.models.UserIdentity; import java.util.HashMap; import java.util.Map; -/** Samples for ConfigurationStores Create. */ +/** + * Samples for ConfigurationStores Create. + */ public final class ConfigurationStoresCreateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreate.json */ /** * Sample code: ConfigurationStores_Create. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresCreate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + public static void + configurationStoresCreate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() .define("contoso") .withRegion("westus") .withExistingResourceGroup("myResourceGroup") @@ -34,44 +40,65 @@ public static void configurationStoresCreate( } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateWithIdentity.json */ /** * Sample code: ConfigurationStores_Create_With_Identity. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCreateWithIdentity( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + manager.configurationStores() .define("contoso") .withRegion("westus") .withExistingResourceGroup("myResourceGroup") .withSku(new Sku().withName("Standard")) .withTags(mapOf("myTag", "myTagValue")) - .withIdentity( - new ResourceIdentity() - .withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", - new UserIdentity()))) + .withIdentity(new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", + new UserIdentity()))) + .create(); + } + + /* + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateWithDataPlaneProxy.json + */ + /** + * Sample code: ConfigurationStores_Create_With_Data_Plane_Proxy. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void configurationStoresCreateWithDataPlaneProxy( + com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() + .define("contoso") + .withRegion("westus") + .withExistingResourceGroup("myResourceGroup") + .withSku(new Sku().withName("Standard")) + .withDataPlaneProxy(new DataPlaneProxyProperties().withAuthenticationMode(AuthenticationMode.PASS_THROUGH) + .withPrivateLinkDelegation(PrivateLinkDelegation.ENABLED)) .create(); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateWithLocalAuthDisabled.json */ /** * Sample code: ConfigurationStores_Create_With_Local_Auth_Disabled. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCreateWithLocalAuthDisabled( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + manager.configurationStores() .define("contoso") .withRegion("westus") .withExistingResourceGroup("myResourceGroup") @@ -80,6 +107,7 @@ public static void configurationStoresCreateWithLocalAuthDisabled( .create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java index 2f9bec3a55231..b986c7fd81cab 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores Delete. */ +/** + * Samples for ConfigurationStores Delete. + */ public final class ConfigurationStoresDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDelete.json */ /** * Sample code: ConfigurationStores_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresDelete( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + configurationStoresDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().delete("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java index a7c5415720a54..c829dc298f48f 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores GetByResourceGroup. */ +/** + * Samples for ConfigurationStores GetByResourceGroup. + */ public final class ConfigurationStoresGetByResourceGroupSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGet.json */ /** * Sample code: ConfigurationStores_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresGet( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() + public static void + configurationStoresGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java index 9d9d6e857d4e2..f81467033ebef 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores GetDeleted. */ +/** + * Samples for ConfigurationStores GetDeleted. + */ public final class ConfigurationStoresGetDeletedSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * DeletedConfigurationStoresGet.json */ /** * Sample code: DeletedConfigurationStores_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void deletedConfigurationStoresGet( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + deletedConfigurationStoresGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().getDeletedWithResponse("westus", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java index 4005824bb117e..d7c5cbe1518a8 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores ListByResourceGroup. */ +/** + * Samples for ConfigurationStores ListByResourceGroup. + */ public final class ConfigurationStoresListByResourceGroupSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListByResourceGroup.json */ /** * Sample code: ConfigurationStores_ListByResourceGroup. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresListByResourceGroup( diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java index 67c20b5927a2e..b69bd92678f8e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores ListDeleted. */ +/** + * Samples for ConfigurationStores ListDeleted. + */ public final class ConfigurationStoresListDeletedSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * DeletedConfigurationStoresList.json */ /** * Sample code: DeletedConfigurationStores_List. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void deletedConfigurationStoresList( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + deletedConfigurationStoresList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().listDeleted(com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java index 3fb1ea65d6946..78a6446af084b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores ListKeys. */ +/** + * Samples for ConfigurationStores ListKeys. + */ public final class ConfigurationStoresListKeysSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListKeys.json */ /** * Sample code: ConfigurationStores_ListKeys. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresListKeys( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + configurationStoresListKeys(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().listKeys("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java index 3d02a661693d4..35d1e973497b4 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores List. */ +/** + * Samples for ConfigurationStores List. + */ public final class ConfigurationStoresListSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresList.json */ /** * Sample code: ConfigurationStores_List. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresList( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + configurationStoresList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().list(null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java index 67b10663c14ca..a01fa19c4e3d7 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for ConfigurationStores PurgeDeleted. */ +/** + * Samples for ConfigurationStores PurgeDeleted. + */ public final class ConfigurationStoresPurgeDeletedSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * DeletedConfigurationStoresPurge.json */ /** * Sample code: Purge a deleted configuration store. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void purgeADeletedConfigurationStore( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + public static void + purgeADeletedConfigurationStore(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager.configurationStores().purgeDeleted("westus", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java index 7808059d3daca..9103f7620001a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java @@ -6,24 +6,24 @@ import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters; -/** Samples for ConfigurationStores RegenerateKey. */ +/** + * Samples for ConfigurationStores RegenerateKey. + */ public final class ConfigurationStoresRegenerateKeySamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresRegenerateKey.json */ /** * Sample code: ConfigurationStores_RegenerateKey. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresRegenerateKey( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .configurationStores() - .regenerateKeyWithResponse( - "myResourceGroup", - "contoso", - new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), - com.azure.core.util.Context.NONE); + public static void + configurationStoresRegenerateKey(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.configurationStores() + .regenerateKeyWithResponse("myResourceGroup", "contoso", + new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java index 5037b6fcb250c..4bb1053007787 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java @@ -12,73 +12,72 @@ import java.util.HashMap; import java.util.Map; -/** Samples for ConfigurationStores Update. */ +/** + * Samples for ConfigurationStores Update. + */ public final class ConfigurationStoresUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdateDisableLocalAuth.json */ /** * Sample code: ConfigurationStores_Update_Disable_Local_Auth. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresUpdateDisableLocalAuth( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - ConfigurationStore resource = - manager - .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) - .getValue(); + ConfigurationStore resource = manager.configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withSku(new Sku().withName("Standard")).withDisableLocalAuth(true).apply(); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdate.json */ /** * Sample code: ConfigurationStores_Update. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void configurationStoresUpdate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - ConfigurationStore resource = - manager - .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) - .getValue(); + public static void + configurationStoresUpdate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + ConfigurationStore resource = manager.configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("Category", "Marketing")).withSku(new Sku().withName("Standard")).apply(); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdateWithIdentity.json */ /** * Sample code: ConfigurationStores_Update_With_Identity. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresUpdateWithIdentity( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - ConfigurationStore resource = - manager - .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + ConfigurationStore resource = manager.configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("Category", "Marketing")) - .withIdentity( - new ResourceIdentity() - .withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", - new UserIdentity()))) + .withIdentity(new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2", + new UserIdentity()))) .withSku(new Sku().withName("Standard")) .apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesCreateOrUpdateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesCreateOrUpdateSamples.java index 0682aeb0dd5e5..d980c9b0d1956 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesCreateOrUpdateSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesCreateOrUpdateSamples.java @@ -7,20 +7,23 @@ import java.util.HashMap; import java.util.Map; -/** Samples for KeyValues CreateOrUpdate. */ +/** + * Samples for KeyValues CreateOrUpdate. + */ public final class KeyValuesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateKeyValue.json */ /** * Sample code: KeyValues_CreateOrUpdate. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void keyValuesCreateOrUpdate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .keyValues() + public static void + keyValuesCreateOrUpdate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.keyValues() .define("myKey$myLabel") .withExistingConfigurationStore("myResourceGroup", "contoso") .withTags(mapOf("tag1", "tagValue1", "tag2", "tagValue2")) @@ -28,6 +31,7 @@ public static void keyValuesCreateOrUpdate( .create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java index 4741d59e1e2aa..3d716a8a4b8e6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for KeyValues Delete. */ +/** + * Samples for KeyValues Delete. + */ public final class KeyValuesDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDeleteKeyValue.json */ /** * Sample code: KeyValues_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java index 6ffb8d1bde963..ccdac75fdeae9 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for KeyValues Get. */ +/** + * Samples for KeyValues Get. + */ public final class KeyValuesGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetKeyValue.json */ /** * Sample code: KeyValues_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .keyValues() + manager.keyValues() .getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java index c0afedd410c56..040edc785886d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java @@ -7,42 +7,44 @@ import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; -/** Samples for Operations CheckNameAvailability. */ +/** + * Samples for Operations CheckNameAvailability. + */ public final class OperationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * CheckNameAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() + manager.operations() .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityParameters() - .withName("contoso") + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * CheckNameNotAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameNotAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameNotAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() + manager.operations() .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityParameters() - .withName("contoso") + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java index 6dc48a46464ce..df85019abdeb3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * OperationsList.json */ /** * Sample code: Operations_List. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void operationsList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java index 8db1fd1bae728..15b28ec529472 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java @@ -7,44 +7,44 @@ import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; -/** Samples for Operations RegionalCheckNameAvailability. */ +/** + * Samples for Operations RegionalCheckNameAvailability. + */ public final class OperationsRegionalCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * RegionalCheckNameAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() - .regionalCheckNameAvailabilityWithResponse( - "westus", - new CheckNameAvailabilityParameters() - .withName("contoso") + manager.operations() + .regionalCheckNameAvailabilityWithResponse("westus", + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * RegionalCheckNameNotAvailable.json */ /** * Sample code: ConfigurationStores_CheckNameNotAvailable. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void configurationStoresCheckNameNotAvailable( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .operations() - .regionalCheckNameAvailabilityWithResponse( - "westus", - new CheckNameAvailabilityParameters() - .withName("contoso") + manager.operations() + .regionalCheckNameAvailabilityWithResponse("westus", + new CheckNameAvailabilityParameters().withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index c38f2c7eddad3..878526dc19003 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -8,28 +8,28 @@ import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; -/** Samples for PrivateEndpointConnections CreateOrUpdate. */ +/** + * Samples for PrivateEndpointConnections CreateOrUpdate. + */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresUpdatePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_Update. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionUpdate( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - PrivateEndpointConnection resource = - manager - .privateEndpointConnections() - .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + privateEndpointConnectionUpdate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + PrivateEndpointConnection resource = manager.privateEndpointConnections() + .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus(ConnectionStatus.APPROVED) + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED) .withDescription("Auto-Approved")) .apply(); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java index f306db44b32ac..d4752e1243ae8 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for PrivateEndpointConnections Delete. */ +/** + * Samples for PrivateEndpointConnections Delete. + */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDeletePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnections_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionsDelete( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() + public static void + privateEndpointConnectionsDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateEndpointConnections() .delete("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java index c474f43ee8f6e..4a64d058ee02d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for PrivateEndpointConnections Get. */ +/** + * Samples for PrivateEndpointConnections Get. + */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetPrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnection_GetConnection. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void privateEndpointConnectionGetConnection( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() + manager.privateEndpointConnections() .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java index 91e7087c469b6..ab3de9653bdb6 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for PrivateEndpointConnections ListByConfigurationStore. */ +/** + * Samples for PrivateEndpointConnections ListByConfigurationStore. + */ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListPrivateEndpointConnections.json */ /** * Sample code: PrivateEndpointConnection_List. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionList( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() + public static void + privateEndpointConnectionList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateEndpointConnections() .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java index b9e2d65acb20a..68f17ba48f671 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for PrivateLinkResources Get. */ +/** + * Samples for PrivateLinkResources Get. + */ public final class PrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * PrivateLinkResourceGet.json */ /** * Sample code: PrivateLinkResources_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateLinkResourcesGet( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateLinkResources() + public static void + privateLinkResourcesGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateLinkResources() .getWithResponse("myResourceGroup", "contoso", "configurationStores", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java index 45b8563557ba9..14c1f5bd5a9cc 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for PrivateLinkResources ListByConfigurationStore. */ +/** + * Samples for PrivateLinkResources ListByConfigurationStore. + */ public final class PrivateLinkResourcesListByConfigurationStoreSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * PrivateLinkResourcesListByConfigurationStore.json */ /** * Sample code: PrivateLinkResources_ListGroupIds. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void privateLinkResourcesListGroupIds( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateLinkResources() + public static void + privateLinkResourcesListGroupIds(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.privateLinkResources() .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateSamples.java index 5350b50ba5527..70a8f3914411a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for Replicas Create. */ +/** + * Samples for Replicas Create. + */ public final class ReplicasCreateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateReplica.json */ /** * Sample code: Replicas_Create. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void replicasCreate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .replicas() + manager.replicas() .define("myReplicaEus") .withExistingConfigurationStore("myResourceGroup", "contoso") .withRegion("eastus") diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteSamples.java index 7f9ecd35328da..1d9c278efb069 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for Replicas Delete. */ +/** + * Samples for Replicas Delete. + */ public final class ReplicasDeleteSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresDeleteReplica.json */ /** * Sample code: Replicas_Delete. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void replicasDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetSamples.java index 00403f70e85f0..59093131f6e3a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for Replicas Get. */ +/** + * Samples for Replicas Get. + */ public final class ReplicasGetSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetReplica.json */ /** * Sample code: Replicas_Get. - * + * * @param manager Entry point to AppConfigurationManager. */ public static void replicasGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .replicas() + manager.replicas() .getWithResponse("myResourceGroup", "contoso", "myReplicaEus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreSamples.java index d7d201355ef55..84958d71a7dbd 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.appconfiguration.generated; -/** Samples for Replicas ListByConfigurationStore. */ +/** + * Samples for Replicas ListByConfigurationStore. + */ public final class ReplicasListByConfigurationStoreSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresListReplicas.json */ /** * Sample code: Replicas_ListByConfigurationStore. - * + * * @param manager Entry point to AppConfigurationManager. */ - public static void replicasListByConfigurationStore( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .replicas() + public static void + replicasListByConfigurationStore(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.replicas() .listByConfigurationStore("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsCreateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsCreateSamples.java new file mode 100644 index 0000000000000..c6a06799b083f --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsCreateSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.generated; + +import com.azure.resourcemanager.appconfiguration.models.KeyValueFilter; +import java.util.Arrays; + +/** + * Samples for Snapshots Create. + */ +public final class SnapshotsCreateSamples { + /* + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresCreateSnapshot.json + */ + /** + * Sample code: Snapshots_Create. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void snapshotsCreate(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.snapshots() + .define("mySnapshot") + .withExistingConfigurationStore("myResourceGroup", "contoso") + .withFilters(Arrays.asList(new KeyValueFilter().withKey("fakeTokenPlaceholder").withLabel("Production"))) + .withRetentionPeriod(3600L) + .create(); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsGetSamples.java new file mode 100644 index 0000000000000..76e643fb276f8 --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/SnapshotsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.generated; + +/** + * Samples for Snapshots Get. + */ +public final class SnapshotsGetSamples { + /* + * x-ms-original-file: + * specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ + * ConfigurationStoresGetSnapshot.json + */ + /** + * Sample code: Snapshots_Get. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void snapshotsGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.snapshots() + .getWithResponse("myResourceGroup", "contoso", "mySnapshot", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyInnerTests.java index bc55a9e432ac3..43f1a88c60a28 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyInnerTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyInnerTests.java @@ -11,7 +11,7 @@ public final class ApiKeyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApiKeyInner model = BinaryData.fromString( - "{\"id\":\"fqpte\",\"name\":\"zzvypyqrimzinp\",\"value\":\"wjdk\",\"connectionString\":\"soodqxhcrmnoh\",\"lastModified\":\"2021-01-19T09:55:19Z\",\"readOnly\":true}") + "{\"id\":\"jqul\",\"name\":\"sntnbybkzgcw\",\"value\":\"clxxwrljdo\",\"connectionString\":\"kcqvkocrc\",\"lastModified\":\"2021-02-11T18:18:15Z\",\"readOnly\":false}") .toObject(ApiKeyInner.class); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyListResultTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyListResultTests.java index 22e59168bfa59..cdfb4bda98180 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyListResultTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ApiKeyListResultTests.java @@ -14,16 +14,17 @@ public final class ApiKeyListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApiKeyListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"kyfi\",\"name\":\"fidfvzw\",\"value\":\"uht\",\"connectionString\":\"wisdkft\",\"lastModified\":\"2021-06-08T12:42:14Z\",\"readOnly\":true},{\"id\":\"eiwaopvkmi\",\"name\":\"mmxdcu\",\"value\":\"fsrpymzidnse\",\"connectionString\":\"xtbzsgfyccsne\",\"lastModified\":\"2021-01-16T10:20:52Z\",\"readOnly\":false}],\"nextLink\":\"eiachboosflnr\"}") + "{\"value\":[{\"id\":\"ojakhmsbzjhcrze\",\"name\":\"phlxa\",\"value\":\"thqt\",\"connectionString\":\"qjbpfzfsin\",\"lastModified\":\"2021-11-15T02:44:36Z\",\"readOnly\":true},{\"id\":\"rwzoxxjtfelluwf\",\"name\":\"tonpe\",\"value\":\"pjkjlxofpdv\",\"connectionString\":\"fxxypininmayhuy\",\"lastModified\":\"2021-05-05T04:33:07Z\",\"readOnly\":true},{\"id\":\"epoo\",\"name\":\"nuvamiheogna\",\"value\":\"zxtheotusivyevcc\",\"connectionString\":\"ihnhun\",\"lastModified\":\"2021-08-15T16:10:49Z\",\"readOnly\":false},{\"id\":\"nfygxgispemvtz\",\"name\":\"ufubl\",\"value\":\"fxqeof\",\"connectionString\":\"e\",\"lastModified\":\"2021-01-23T13:20:17Z\",\"readOnly\":true}],\"nextLink\":\"asvm\"}") .toObject(ApiKeyListResult.class); - Assertions.assertEquals("eiachboosflnr", model.nextLink()); + Assertions.assertEquals("asvm", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ApiKeyListResult model = new ApiKeyListResult().withValue(Arrays.asList(new ApiKeyInner(), new ApiKeyInner())) - .withNextLink("eiachboosflnr"); + ApiKeyListResult model = new ApiKeyListResult() + .withValue(Arrays.asList(new ApiKeyInner(), new ApiKeyInner(), new ApiKeyInner(), new ApiKeyInner())) + .withNextLink("asvm"); model = BinaryData.fromObject(model).toObject(ApiKeyListResult.class); - Assertions.assertEquals("eiachboosflnr", model.nextLink()); + Assertions.assertEquals("asvm", model.nextLink()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/CheckNameAvailabilityParametersTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/CheckNameAvailabilityParametersTests.java index ca27659092ff0..8e9f6cf42e3a3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/CheckNameAvailabilityParametersTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/CheckNameAvailabilityParametersTests.java @@ -13,19 +13,19 @@ public final class CheckNameAvailabilityParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckNameAvailabilityParameters model = BinaryData - .fromString("{\"name\":\"hmuouqfprwzwbn\",\"type\":\"Microsoft.AppConfiguration/configurationStores\"}") + .fromString("{\"name\":\"yoqpsoaccta\",\"type\":\"Microsoft.AppConfiguration/configurationStores\"}") .toObject(CheckNameAvailabilityParameters.class); - Assertions.assertEquals("hmuouqfprwzwbn", model.name()); + Assertions.assertEquals("yoqpsoaccta", model.name()); Assertions.assertEquals(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckNameAvailabilityParameters model = new CheckNameAvailabilityParameters().withName("hmuouqfprwzwbn") + CheckNameAvailabilityParameters model = new CheckNameAvailabilityParameters().withName("yoqpsoaccta") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES); model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityParameters.class); - Assertions.assertEquals("hmuouqfprwzwbn", model.name()); + Assertions.assertEquals("yoqpsoaccta", model.name()); Assertions.assertEquals(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES, model.type()); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreInnerTests.java deleted file mode 100644 index 278c9451933aa..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreInnerTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStoreInner; -import com.azure.resourcemanager.appconfiguration.models.CreateMode; -import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties; -import com.azure.resourcemanager.appconfiguration.models.IdentityType; -import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; -import com.azure.resourcemanager.appconfiguration.models.Sku; -import com.azure.resourcemanager.appconfiguration.models.UserIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ConfigurationStoreInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConfigurationStoreInner model = BinaryData.fromString( - "{\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"o\":{\"principalId\":\"pjoxzjnch\",\"clientId\":\"jspodmailzyde\"}},\"principalId\":\"yahux\",\"tenantId\":\"pmqnja\"},\"properties\":{\"provisioningState\":\"Deleting\",\"creationDate\":\"2021-08-22T00:38:37Z\",\"endpoint\":\"r\",\"encryption\":{},\"privateEndpointConnections\":[{\"id\":\"tegjvwmf\",\"name\":\"t\",\"type\":\"mdvpjhulsu\"},{\"id\":\"kjozkrwfnd\",\"name\":\"djpslw\",\"type\":\"dpvwryoqpsoaccta\"},{\"id\":\"ljlahbcryf\",\"name\":\"fdosyg\",\"type\":\"paojakhmsbzjh\"}],\"publicNetworkAccess\":\"Disabled\",\"disableLocalAuth\":true,\"softDeleteRetentionInDays\":656929943,\"enablePurgeProtection\":false,\"createMode\":\"Default\"},\"sku\":{\"name\":\"lthqtrgqjbp\"},\"location\":\"fsinzgvfcjrwzoxx\",\"tags\":{\"eqfpj\":\"elluwfziton\",\"ninmayhuyb\":\"jlxofpdvhpfxxyp\",\"ooginuvamih\":\"kpode\",\"vyevcciqi\":\"ognarxzxtheotus\"},\"id\":\"nhungbw\",\"name\":\"zrnf\",\"type\":\"gxg\"}") - .toObject(ConfigurationStoreInner.class); - Assertions.assertEquals("fsinzgvfcjrwzoxx", model.location()); - Assertions.assertEquals("elluwfziton", model.tags().get("eqfpj")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("lthqtrgqjbp", model.sku().name()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - Assertions.assertEquals(true, model.disableLocalAuth()); - Assertions.assertEquals(656929943, model.softDeleteRetentionInDays()); - Assertions.assertEquals(false, model.enablePurgeProtection()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConfigurationStoreInner model = new ConfigurationStoreInner().withLocation("fsinzgvfcjrwzoxx") - .withTags(mapOf("eqfpj", "elluwfziton", "ninmayhuyb", "jlxofpdvhpfxxyp", "ooginuvamih", "kpode", - "vyevcciqi", "ognarxzxtheotus")) - .withIdentity(new ResourceIdentity().withType(IdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("o", new UserIdentity()))) - .withSku(new Sku().withName("lthqtrgqjbp")) - .withEncryption(new EncryptionProperties()) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED) - .withDisableLocalAuth(true) - .withSoftDeleteRetentionInDays(656929943) - .withEnablePurgeProtection(false) - .withCreateMode(CreateMode.DEFAULT); - model = BinaryData.fromObject(model).toObject(ConfigurationStoreInner.class); - Assertions.assertEquals("fsinzgvfcjrwzoxx", model.location()); - Assertions.assertEquals("elluwfziton", model.tags().get("eqfpj")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identity().type()); - Assertions.assertEquals("lthqtrgqjbp", model.sku().name()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - Assertions.assertEquals(true, model.disableLocalAuth()); - Assertions.assertEquals(656929943, model.softDeleteRetentionInDays()); - Assertions.assertEquals(false, model.enablePurgeProtection()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreListResultTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreListResultTests.java deleted file mode 100644 index fccda59a3a152..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreListResultTests.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appconfiguration.fluent.models.ConfigurationStoreInner; -import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreListResult; -import com.azure.resourcemanager.appconfiguration.models.CreateMode; -import com.azure.resourcemanager.appconfiguration.models.IdentityType; -import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; -import com.azure.resourcemanager.appconfiguration.models.Sku; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ConfigurationStoreListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConfigurationStoreListResult model = BinaryData.fromString( - "{\"value\":[{\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{},\"principalId\":\"jxpybczmeh\",\"tenantId\":\"zopbsphrupidgs\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"creationDate\":\"2021-10-09T17:42:33Z\",\"endpoint\":\"hoycm\",\"privateEndpointConnections\":[],\"publicNetworkAccess\":\"Enabled\",\"disableLocalAuth\":true,\"softDeleteRetentionInDays\":1615603178,\"enablePurgeProtection\":false,\"createMode\":\"Recover\"},\"sku\":{\"name\":\"oqjzehtbmufpowno\"},\"location\":\"hwlrx\",\"tags\":{\"dmbpazlobcufpdz\":\"soqijg\",\"qqjnqgl\":\"rbt\",\"foooj\":\"qgn\"},\"id\":\"wifsq\",\"name\":\"saagdf\",\"type\":\"glzlhjxrifkwmrv\"},{\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{},\"principalId\":\"to\",\"tenantId\":\"pa\"},\"properties\":{\"provisioningState\":\"Failed\",\"creationDate\":\"2021-05-16T08:34:45Z\",\"endpoint\":\"ucmpoyfd\",\"privateEndpointConnections\":[],\"publicNetworkAccess\":\"Disabled\",\"disableLocalAuth\":false,\"softDeleteRetentionInDays\":1139572680,\"enablePurgeProtection\":false,\"createMode\":\"Default\"},\"sku\":{\"name\":\"deqsrdeupewn\"},\"location\":\"eitjz\",\"tags\":{\"hs\":\"usarhmofc\",\"xukcdmpar\":\"yurkdtmlxhekuksj\"},\"id\":\"ryuanzwuxzdxtay\",\"name\":\"lhmwhfpmrqobm\",\"type\":\"u\"},{\"identity\":{\"type\":\"SystemAssigned," - + " UserAssigned\",\"userAssignedIdentities\":{},\"principalId\":\"tihfx\",\"tenantId\":\"jbpzvgnwzsymg\"},\"properties\":{\"provisioningState\":\"Deleting\",\"creationDate\":\"2021-01-28T09:29:32Z\",\"endpoint\":\"kohdbiha\",\"privateEndpointConnections\":[],\"publicNetworkAccess\":\"Disabled\",\"disableLocalAuth\":false,\"softDeleteRetentionInDays\":43632750,\"enablePurgeProtection\":false,\"createMode\":\"Default\"},\"sku\":{\"name\":\"th\"},\"location\":\"hab\",\"tags\":{\"byscnp\":\"ikxwc\",\"hiv\":\"x\",\"rtfw\":\"qniwbybrkxvdumj\",\"cs\":\"ukxgaud\"},\"id\":\"h\",\"name\":\"jcny\",\"type\":\"j\"}],\"nextLink\":\"ryhtnapczwlokjy\"}") - .toObject(ConfigurationStoreListResult.class); - Assertions.assertEquals("hwlrx", model.value().get(0).location()); - Assertions.assertEquals("soqijg", model.value().get(0).tags().get("dmbpazlobcufpdz")); - Assertions.assertEquals(IdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("oqjzehtbmufpowno", model.value().get(0).sku().name()); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.value().get(0).publicNetworkAccess()); - Assertions.assertEquals(true, model.value().get(0).disableLocalAuth()); - Assertions.assertEquals(1615603178, model.value().get(0).softDeleteRetentionInDays()); - Assertions.assertEquals(false, model.value().get(0).enablePurgeProtection()); - Assertions.assertEquals(CreateMode.RECOVER, model.value().get(0).createMode()); - Assertions.assertEquals("ryhtnapczwlokjy", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConfigurationStoreListResult model - = new ConfigurationStoreListResult().withValue(Arrays.asList( - new ConfigurationStoreInner().withLocation("hwlrx") - .withTags(mapOf("dmbpazlobcufpdz", "soqijg", "qqjnqgl", "rbt", "foooj", "qgn")) - .withIdentity( - new ResourceIdentity().withType(IdentityType.NONE).withUserAssignedIdentities(mapOf())) - .withSku(new Sku().withName("oqjzehtbmufpowno")) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) - .withDisableLocalAuth(true) - .withSoftDeleteRetentionInDays(1615603178) - .withEnablePurgeProtection(false) - .withCreateMode(CreateMode.RECOVER), - new ConfigurationStoreInner().withLocation("eitjz") - .withTags(mapOf("hs", "usarhmofc", "xukcdmpar", "yurkdtmlxhekuksj")) - .withIdentity( - new ResourceIdentity().withType(IdentityType.USER_ASSIGNED).withUserAssignedIdentities(mapOf())) - .withSku(new Sku().withName("deqsrdeupewn")) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED) - .withDisableLocalAuth(false) - .withSoftDeleteRetentionInDays(1139572680) - .withEnablePurgeProtection(false) - .withCreateMode(CreateMode.DEFAULT), - new ConfigurationStoreInner().withLocation("hab") - .withTags(mapOf("byscnp", "ikxwc", "hiv", "x", "rtfw", "qniwbybrkxvdumj", "cs", "ukxgaud")) - .withIdentity(new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf())) - .withSku(new Sku().withName("th")) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED) - .withDisableLocalAuth(false) - .withSoftDeleteRetentionInDays(43632750) - .withEnablePurgeProtection(false) - .withCreateMode(CreateMode.DEFAULT))) - .withNextLink("ryhtnapczwlokjy"); - model = BinaryData.fromObject(model).toObject(ConfigurationStoreListResult.class); - Assertions.assertEquals("hwlrx", model.value().get(0).location()); - Assertions.assertEquals("soqijg", model.value().get(0).tags().get("dmbpazlobcufpdz")); - Assertions.assertEquals(IdentityType.NONE, model.value().get(0).identity().type()); - Assertions.assertEquals("oqjzehtbmufpowno", model.value().get(0).sku().name()); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, model.value().get(0).publicNetworkAccess()); - Assertions.assertEquals(true, model.value().get(0).disableLocalAuth()); - Assertions.assertEquals(1615603178, model.value().get(0).softDeleteRetentionInDays()); - Assertions.assertEquals(false, model.value().get(0).enablePurgeProtection()); - Assertions.assertEquals(CreateMode.RECOVER, model.value().get(0).createMode()); - Assertions.assertEquals("ryhtnapczwlokjy", model.nextLink()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreUpdateParametersTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreUpdateParametersTests.java deleted file mode 100644 index bb6cfef45e4b3..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoreUpdateParametersTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.appconfiguration.models.ConfigurationStoreUpdateParameters; -import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties; -import com.azure.resourcemanager.appconfiguration.models.IdentityType; -import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; -import com.azure.resourcemanager.appconfiguration.models.Sku; -import com.azure.resourcemanager.appconfiguration.models.UserIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ConfigurationStoreUpdateParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConfigurationStoreUpdateParameters model = BinaryData.fromString( - "{\"properties\":{\"encryption\":{},\"disableLocalAuth\":false,\"publicNetworkAccess\":\"Disabled\",\"enablePurgeProtection\":true},\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{\"uqktap\":{\"principalId\":\"mmnkzsmodmgl\",\"clientId\":\"gpbkwtmut\"},\"gbbjfddgmbmbe\":{\"principalId\":\"wgcu\",\"clientId\":\"tumkdosvqwhbm\"}},\"principalId\":\"pbhtqqrolfpfpsa\",\"tenantId\":\"bquxigjy\"},\"sku\":{\"name\":\"zjaoyfhrtxil\"},\"tags\":{\"wrlyxwjkcprb\":\"kujysvlejuvfq\",\"vpys\":\"wbxgjvt\"}}") - .toObject(ConfigurationStoreUpdateParameters.class); - Assertions.assertEquals(IdentityType.NONE, model.identity().type()); - Assertions.assertEquals("zjaoyfhrtxil", model.sku().name()); - Assertions.assertEquals("kujysvlejuvfq", model.tags().get("wrlyxwjkcprb")); - Assertions.assertEquals(false, model.disableLocalAuth()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - Assertions.assertEquals(true, model.enablePurgeProtection()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConfigurationStoreUpdateParameters model = new ConfigurationStoreUpdateParameters() - .withIdentity(new ResourceIdentity().withType(IdentityType.NONE) - .withUserAssignedIdentities(mapOf("uqktap", new UserIdentity(), "gbbjfddgmbmbe", new UserIdentity()))) - .withSku(new Sku().withName("zjaoyfhrtxil")) - .withTags(mapOf("wrlyxwjkcprb", "kujysvlejuvfq", "vpys", "wbxgjvt")) - .withEncryption(new EncryptionProperties()) - .withDisableLocalAuth(false) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED) - .withEnablePurgeProtection(true); - model = BinaryData.fromObject(model).toObject(ConfigurationStoreUpdateParameters.class); - Assertions.assertEquals(IdentityType.NONE, model.identity().type()); - Assertions.assertEquals("zjaoyfhrtxil", model.sku().name()); - Assertions.assertEquals("kujysvlejuvfq", model.tags().get("wrlyxwjkcprb")); - Assertions.assertEquals(false, model.disableLocalAuth()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, model.publicNetworkAccess()); - Assertions.assertEquals(true, model.enablePurgeProtection()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateMockTests.java deleted file mode 100644 index bf82d38c36346..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresCreateMockTests.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore; -import com.azure.resourcemanager.appconfiguration.models.CreateMode; -import com.azure.resourcemanager.appconfiguration.models.EncryptionProperties; -import com.azure.resourcemanager.appconfiguration.models.IdentityType; -import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; -import com.azure.resourcemanager.appconfiguration.models.Sku; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConfigurationStoresCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{},\"principalId\":\"nxknalaulp\",\"tenantId\":\"gdtpnapnyiro\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"creationDate\":\"2020-12-20T18:46:56Z\",\"endpoint\":\"pgylg\",\"encryption\":{},\"privateEndpointConnections\":[],\"publicNetworkAccess\":\"Disabled\",\"disableLocalAuth\":false,\"softDeleteRetentionInDays\":119641642,\"enablePurgeProtection\":true,\"createMode\":\"Recover\"},\"sku\":{\"name\":\"qwwncw\"},\"location\":\"hxg\",\"tags\":{\"kteo\":\"mgucna\",\"pfqbuaceopzf\":\"llwptfdy\"},\"id\":\"rhhuaopppcqeqx\",\"name\":\"lzdahzxctobgbkdm\",\"type\":\"izpost\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - AppConfigurationManager manager = AppConfigurationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ConfigurationStore response = manager.configurationStores() - .define("vawjvzunlu") - .withRegion("ttouwaboekqvkel") - .withExistingResourceGroup("zlmwlxkvugfhz") - .withSku(new Sku().withName("luu")) - .withTags(mapOf("aalnjixi", "vbxwyjsflhh")) - .withIdentity(new ResourceIdentity().withType(IdentityType.NONE).withUserAssignedIdentities(mapOf())) - .withEncryption(new EncryptionProperties()) - .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) - .withDisableLocalAuth(false) - .withSoftDeleteRetentionInDays(820009390) - .withEnablePurgeProtection(false) - .withCreateMode(CreateMode.RECOVER) - .create(); - - Assertions.assertEquals("hxg", response.location()); - Assertions.assertEquals("mgucna", response.tags().get("kteo")); - Assertions.assertEquals(IdentityType.NONE, response.identity().type()); - Assertions.assertEquals("qwwncw", response.sku().name()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, response.publicNetworkAccess()); - Assertions.assertEquals(false, response.disableLocalAuth()); - Assertions.assertEquals(119641642, response.softDeleteRetentionInDays()); - Assertions.assertEquals(true, response.enablePurgeProtection()); - Assertions.assertEquals(CreateMode.RECOVER, response.createMode()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteMockTests.java index 3ce0b59edf219..f8952559fa02e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteMockTests.java @@ -6,46 +6,28 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ConfigurationStoresDeleteMockTests { @Test public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr = "{}"; - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.configurationStores().delete("uhcdhm", "ualaexqpvfadmw", com.azure.core.util.Context.NONE); + manager.configurationStores().delete("iiswacffgdkzze", "kfvhqcrailvpn", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index d982faacf4d73..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore; -import com.azure.resourcemanager.appconfiguration.models.CreateMode; -import com.azure.resourcemanager.appconfiguration.models.IdentityType; -import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConfigurationStoresGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{},\"principalId\":\"obglaocqxtcc\",\"tenantId\":\"yudxytlmoy\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"creationDate\":\"2021-03-16T12:34:31Z\",\"endpoint\":\"wpzntxhdzh\",\"encryption\":{},\"privateEndpointConnections\":[],\"publicNetworkAccess\":\"Enabled\",\"disableLocalAuth\":false,\"softDeleteRetentionInDays\":869075022,\"enablePurgeProtection\":false,\"createMode\":\"Default\"},\"sku\":{\"name\":\"bkyvp\"},\"location\":\"anuzbpzkafkuw\",\"tags\":{\"seyvj\":\"nwbmeh\"},\"id\":\"srtslhspkdeem\",\"name\":\"ofmxagkvtmelmqkr\",\"type\":\"ahvljuaha\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - AppConfigurationManager manager = AppConfigurationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ConfigurationStore response = manager.configurationStores() - .getByResourceGroupWithResponse("azqugxywpmueefj", "wfqkquj", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("anuzbpzkafkuw", response.location()); - Assertions.assertEquals("nwbmeh", response.tags().get("seyvj")); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, response.identity().type()); - Assertions.assertEquals("bkyvp", response.sku().name()); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, response.publicNetworkAccess()); - Assertions.assertEquals(false, response.disableLocalAuth()); - Assertions.assertEquals(869075022, response.softDeleteRetentionInDays()); - Assertions.assertEquals(false, response.enablePurgeProtection()); - Assertions.assertEquals(CreateMode.DEFAULT, response.createMode()); - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedWithResponseMockTests.java index 35d1ec3a26e80..ef73ad08dd491 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedWithResponseMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedWithResponseMockTests.java @@ -6,50 +6,32 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.DeletedConfigurationStore; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ConfigurationStoresGetDeletedWithResponseMockTests { @Test public void testGetDeletedWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"id\":\"zjuzgwyz\",\"name\":\"txon\",\"type\":\"ts\",\"properties\":{\"configurationStoreId\":\"cbpwxqpsrknft\",\"location\":\"vriuhprwmdyvx\",\"deletionDate\":\"2021-05-28T21:07:01Z\",\"scheduledPurgeDate\":\"2021-09-21T09:24:54Z\",\"tags\":{\"bycnojvkn\":\"wroyqbexrmcq\"},\"purgeProtectionEnabled\":true}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"id\":\"qyib\",\"name\":\"wfluszdt\",\"type\":\"rkwofyyvoqa\",\"properties\":{\"configurationStoreId\":\"expbtg\",\"location\":\"bwoenwashrt\",\"deletionDate\":\"2021-03-25T05:20:51Z\",\"scheduledPurgeDate\":\"2021-10-02T00:32Z\",\"tags\":{\"qiiobyuqer\":\"wbpokulpiujwaasi\",\"bdbutauvf\":\"qlpqwcciuq\",\"afnn\":\"tkuwhhmhykojo\"},\"purgeProtectionEnabled\":true}}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); DeletedConfigurationStore response = manager.configurationStores() - .getDeletedWithResponse("jkbegibtnmxiebww", "loayqcgw", com.azure.core.util.Context.NONE) + .getDeletedWithResponse("jrjxgciqibrhosx", "dqrhzoymib", com.azure.core.util.Context.NONE) .getValue(); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupMockTests.java deleted file mode 100644 index faa0e77ff1150..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore; -import com.azure.resourcemanager.appconfiguration.models.CreateMode; -import com.azure.resourcemanager.appconfiguration.models.IdentityType; -import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConfigurationStoresListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[{\"identity\":{\"type\":\"SystemAssigned," - + " UserAssigned\",\"userAssignedIdentities\":{},\"principalId\":\"apskrdqm\",\"tenantId\":\"jdhtldwkyzxu\"},\"properties\":{\"provisioningState\":\"Creating\",\"creationDate\":\"2021-06-12T03:44:06Z\",\"endpoint\":\"cwsvlxotog\",\"encryption\":{},\"privateEndpointConnections\":[],\"publicNetworkAccess\":\"Enabled\",\"disableLocalAuth\":false,\"softDeleteRetentionInDays\":1364621442,\"enablePurgeProtection\":false,\"createMode\":\"Default\"},\"sku\":{\"name\":\"vce\"},\"location\":\"eil\",\"tags\":{\"jfcn\":\"oty\",\"x\":\"bkc\",\"nv\":\"hbttkphyw\",\"qnermclfplphoxu\":\"t\"},\"id\":\"crpab\",\"name\":\"ye\",\"type\":\"sbj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - AppConfigurationManager manager = AppConfigurationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.configurationStores().listByResourceGroup("a", "ckhsmtxpsieb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("eil", response.iterator().next().location()); - Assertions.assertEquals("oty", response.iterator().next().tags().get("jfcn")); - Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, - response.iterator().next().identity().type()); - Assertions.assertEquals("vce", response.iterator().next().sku().name()); - Assertions.assertEquals(PublicNetworkAccess.ENABLED, response.iterator().next().publicNetworkAccess()); - Assertions.assertEquals(false, response.iterator().next().disableLocalAuth()); - Assertions.assertEquals(1364621442, response.iterator().next().softDeleteRetentionInDays()); - Assertions.assertEquals(false, response.iterator().next().enablePurgeProtection()); - Assertions.assertEquals(CreateMode.DEFAULT, response.iterator().next().createMode()); - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedMockTests.java index dfa92459a4597..1af3b8e2fab52 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedMockTests.java @@ -6,44 +6,25 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.DeletedConfigurationStore; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ConfigurationStoresListDeletedMockTests { @Test public void testListDeleted() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"id\":\"ni\",\"name\":\"x\",\"type\":\"kpycgklwndnhjd\",\"properties\":{\"configurationStoreId\":\"hvylwzbt\",\"location\":\"xujznbmpowu\",\"deletionDate\":\"2020-12-27T11:29:17Z\",\"scheduledPurgeDate\":\"2021-07-21T15:39:33Z\",\"tags\":{\"obbc\":\"eualupjmkhf\",\"tghfgblcgwxzvl\":\"wsrtjriplrbpbe\"},\"purgeProtectionEnabled\":true}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"id\":\"cpwi\",\"name\":\"vqtmnub\",\"type\":\"kpzksmondjmq\",\"properties\":{\"configurationStoreId\":\"ypomgkopkwho\",\"location\":\"pajqgxysm\",\"deletionDate\":\"2020-12-21T19:48:14Z\",\"scheduledPurgeDate\":\"2021-03-21T23:12:31Z\",\"tags\":{\"zapvhelx\":\"vmkcx\",\"tddckcb\":\"rgly\"},\"purgeProtectionEnabled\":true}}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -51,5 +32,6 @@ public void testListDeleted() throws Exception { PagedIterable response = manager.configurationStores().listDeleted(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysMockTests.java index 5104e23ebf903..c5ad189516587 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysMockTests.java @@ -6,50 +6,32 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.ApiKey; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ConfigurationStoresListKeysMockTests { @Test public void testListKeys() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"id\":\"nbbelda\",\"name\":\"zbaliourqha\",\"value\":\"uhashsfwx\",\"connectionString\":\"owzxcu\",\"lastModified\":\"2021-06-04T05:08:46Z\",\"readOnly\":true}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"id\":\"agafcnihgwqap\",\"name\":\"dgfbcvkcvqvpke\",\"value\":\"cvdrhvoodsot\",\"connectionString\":\"bzdopcj\",\"lastModified\":\"2021-09-30T23:37:37Z\",\"readOnly\":false}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.configurationStores().listKeys("rcrgvx", "vgomz", "fmisg", com.azure.core.util.Context.NONE); + = manager.configurationStores().listKeys("pfuflrw", "mh", "lxyjr", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListMockTests.java deleted file mode 100644 index 7c43be9bcc7a9..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore; -import com.azure.resourcemanager.appconfiguration.models.CreateMode; -import com.azure.resourcemanager.appconfiguration.models.IdentityType; -import com.azure.resourcemanager.appconfiguration.models.PublicNetworkAccess; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConfigurationStoresListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"value\":[{\"identity\":{\"type\":\"None\",\"userAssignedIdentities\":{},\"principalId\":\"cuh\",\"tenantId\":\"tcty\"},\"properties\":{\"provisioningState\":\"Creating\",\"creationDate\":\"2021-09-08T21:14:09Z\",\"endpoint\":\"vplwzbhv\",\"encryption\":{},\"privateEndpointConnections\":[],\"publicNetworkAccess\":\"Disabled\",\"disableLocalAuth\":true,\"softDeleteRetentionInDays\":1013735837,\"enablePurgeProtection\":false,\"createMode\":\"Recover\"},\"sku\":{\"name\":\"ukkfplgmgs\"},\"location\":\"kjz\",\"tags\":{\"i\":\"slpvlop\"},\"id\":\"ighxpk\",\"name\":\"wzbaiue\",\"type\":\"baumnyqupedeoj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - AppConfigurationManager manager = AppConfigurationManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.configurationStores().list("gnxytxhpzxbz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kjz", response.iterator().next().location()); - Assertions.assertEquals("slpvlop", response.iterator().next().tags().get("i")); - Assertions.assertEquals(IdentityType.NONE, response.iterator().next().identity().type()); - Assertions.assertEquals("ukkfplgmgs", response.iterator().next().sku().name()); - Assertions.assertEquals(PublicNetworkAccess.DISABLED, response.iterator().next().publicNetworkAccess()); - Assertions.assertEquals(true, response.iterator().next().disableLocalAuth()); - Assertions.assertEquals(1013735837, response.iterator().next().softDeleteRetentionInDays()); - Assertions.assertEquals(false, response.iterator().next().enablePurgeProtection()); - Assertions.assertEquals(CreateMode.RECOVER, response.iterator().next().createMode()); - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedMockTests.java index 0b9a896aa3a4b..dc48c83c9cc71 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedMockTests.java @@ -6,46 +6,28 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ConfigurationStoresPurgeDeletedMockTests { @Test public void testPurgeDeleted() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr = "{}"; - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.configurationStores().purgeDeleted("qsgzvahapj", "zhpvgqzcjrvxd", com.azure.core.util.Context.NONE); + manager.configurationStores().purgeDeleted("ichkoymkcdyhb", "kkpwdreqnovvq", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeyWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeyWithResponseMockTests.java index eccff8131fc49..e0fd1c1a8f3e8 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeyWithResponseMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeyWithResponseMockTests.java @@ -6,52 +6,34 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.ApiKey; import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ConfigurationStoresRegenerateKeyWithResponseMockTests { @Test public void testRegenerateKeyWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"id\":\"uojgj\",\"name\":\"jueiotwmcdytd\",\"value\":\"it\",\"connectionString\":\"rjaw\",\"lastModified\":\"2021-05-13T06:47:58Z\",\"readOnly\":true}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"id\":\"wniyqsluicpd\",\"name\":\"kzzlvmbmpaxmodf\",\"value\":\"efyw\",\"connectionString\":\"pfvmwyhrfou\",\"lastModified\":\"2021-03-05T05:10:55Z\",\"readOnly\":false}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); ApiKey response = manager.configurationStores() - .regenerateKeyWithResponse("oxdjebwpuc", "wfvovbv", new RegenerateKeyParameters().withId("uecivyhz"), + .regenerateKeyWithResponse("ld", "mgxcxrslpm", new RegenerateKeyParameters().withId("wuoegrpk"), com.azure.core.util.Context.NONE) .getValue(); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DataPlaneProxyPropertiesTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DataPlaneProxyPropertiesTests.java new file mode 100644 index 0000000000000..ad69602e0954a --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DataPlaneProxyPropertiesTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.appconfiguration.models.AuthenticationMode; +import com.azure.resourcemanager.appconfiguration.models.DataPlaneProxyProperties; +import com.azure.resourcemanager.appconfiguration.models.PrivateLinkDelegation; +import org.junit.jupiter.api.Assertions; + +public final class DataPlaneProxyPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DataPlaneProxyProperties model + = BinaryData.fromString("{\"authenticationMode\":\"Pass-through\",\"privateLinkDelegation\":\"Enabled\"}") + .toObject(DataPlaneProxyProperties.class); + Assertions.assertEquals(AuthenticationMode.PASS_THROUGH, model.authenticationMode()); + Assertions.assertEquals(PrivateLinkDelegation.ENABLED, model.privateLinkDelegation()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DataPlaneProxyProperties model + = new DataPlaneProxyProperties().withAuthenticationMode(AuthenticationMode.PASS_THROUGH) + .withPrivateLinkDelegation(PrivateLinkDelegation.ENABLED); + model = BinaryData.fromObject(model).toObject(DataPlaneProxyProperties.class); + Assertions.assertEquals(AuthenticationMode.PASS_THROUGH, model.authenticationMode()); + Assertions.assertEquals(PrivateLinkDelegation.ENABLED, model.privateLinkDelegation()); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreInnerTests.java index a251ffd6a5fcc..f36f875dbc143 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreInnerTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreInnerTests.java @@ -11,7 +11,7 @@ public final class DeletedConfigurationStoreInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeletedConfigurationStoreInner model = BinaryData.fromString( - "{\"id\":\"uko\",\"name\":\"yaxuconuqszfkb\",\"type\":\"pewr\",\"properties\":{\"configurationStoreId\":\"wv\",\"location\":\"ektcxsen\",\"deletionDate\":\"2021-11-28T07:09:02Z\",\"scheduledPurgeDate\":\"2021-08-04T00:26:01Z\",\"tags\":{\"lihkaetcktvfc\":\"rzpwvlqdqgbiq\",\"nkymuctqhjfbebrj\":\"vf\",\"wutttxfvjrbi\":\"xerf\"},\"purgeProtectionEnabled\":true}}") + "{\"id\":\"uzgwyzmhtx\",\"name\":\"gmtsavjcbpwxqpsr\",\"type\":\"ftguv\",\"properties\":{\"configurationStoreId\":\"hprwmdyv\",\"location\":\"tayriwwroyqbex\",\"deletionDate\":\"2021-05-05T17:55:38Z\",\"scheduledPurgeDate\":\"2021-02-15T11:45:28Z\",\"tags\":{\"vah\":\"cnojvknmefqsg\",\"qzcjrvxdj\":\"pjyzhpv\",\"awjvzunluthnnp\":\"lmwlxkvugfhzo\",\"jzuaejxdultskzbb\":\"nxipeil\"},\"purgeProtectionEnabled\":true}}") .toObject(DeletedConfigurationStoreInner.class); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreListResultTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreListResultTests.java index 1a8f7c38b8dcd..e75f136e5da69 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreListResultTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStoreListResultTests.java @@ -14,17 +14,17 @@ public final class DeletedConfigurationStoreListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeletedConfigurationStoreListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"de\",\"name\":\"jzicwifsjt\",\"type\":\"zfbishcbkhaj\",\"properties\":{\"configurationStoreId\":\"eamdp\",\"location\":\"g\",\"deletionDate\":\"2021-05-30T00:59:07Z\",\"scheduledPurgeDate\":\"2021-01-24T10:22:55Z\",\"tags\":{},\"purgeProtectionEnabled\":true}},{\"id\":\"pwhonowkg\",\"name\":\"wankixzbi\",\"type\":\"eputtmrywnuzoqf\",\"properties\":{\"configurationStoreId\":\"qzrnkcqvyxlwhz\",\"location\":\"icohoqqnwvl\",\"deletionDate\":\"2021-02-08T19:31:14Z\",\"scheduledPurgeDate\":\"2021-11-09T22:07:11Z\",\"tags\":{},\"purgeProtectionEnabled\":false}}],\"nextLink\":\"nmmqhgyxzkon\"}") + "{\"value\":[{\"id\":\"ndnhj\",\"name\":\"uwhvylwzbtdhxujz\",\"type\":\"mpowuwpr\",\"properties\":{\"configurationStoreId\":\"veual\",\"location\":\"j\",\"deletionDate\":\"2021-04-21T08:53:38Z\",\"scheduledPurgeDate\":\"2021-04-26T22:12:21Z\",\"tags\":{\"riplrbpbewtg\":\"bcswsrt\",\"c\":\"fgb\",\"gibtnm\":\"wxzvlvqhjkb\"},\"purgeProtectionEnabled\":true}}],\"nextLink\":\"wwaloayqcgwrt\"}") .toObject(DeletedConfigurationStoreListResult.class); - Assertions.assertEquals("nmmqhgyxzkon", model.nextLink()); + Assertions.assertEquals("wwaloayqcgwrt", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DeletedConfigurationStoreListResult model = new DeletedConfigurationStoreListResult() - .withValue(Arrays.asList(new DeletedConfigurationStoreInner(), new DeletedConfigurationStoreInner())) - .withNextLink("nmmqhgyxzkon"); + DeletedConfigurationStoreListResult model + = new DeletedConfigurationStoreListResult().withValue(Arrays.asList(new DeletedConfigurationStoreInner())) + .withNextLink("wwaloayqcgwrt"); model = BinaryData.fromObject(model).toObject(DeletedConfigurationStoreListResult.class); - Assertions.assertEquals("nmmqhgyxzkon", model.nextLink()); + Assertions.assertEquals("wwaloayqcgwrt", model.nextLink()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStorePropertiesTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStorePropertiesTests.java index d41f23725b4bc..8a82e51c40f0b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStorePropertiesTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/DeletedConfigurationStorePropertiesTests.java @@ -11,7 +11,7 @@ public final class DeletedConfigurationStorePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeletedConfigurationStoreProperties model = BinaryData.fromString( - "{\"configurationStoreId\":\"epcyvahfnlj\",\"location\":\"qxj\",\"deletionDate\":\"2021-01-29T11:34:22Z\",\"scheduledPurgeDate\":\"2021-01-04T05:40:41Z\",\"tags\":{\"yoxgvcltbgsnc\":\"dokgjl\",\"htxfvgxbfsmxnehm\":\"hkjeszzhbi\"},\"purgeProtectionEnabled\":false}") + "{\"configurationStoreId\":\"mv\",\"location\":\"kgpwoz\",\"deletionDate\":\"2021-12-04T01:13:33Z\",\"scheduledPurgeDate\":\"2021-08-14T18:03:09Z\",\"tags\":{\"waboe\":\"jyofdxluusdtto\",\"bxwyjsflhhcaa\":\"qvkelnsm\"},\"purgeProtectionEnabled\":true}") .toObject(DeletedConfigurationStoreProperties.class); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteMockTests.java index fd49facafe5c9..d352e9177ac7c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteMockTests.java @@ -6,46 +6,28 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class KeyValuesDeleteMockTests { @Test public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr = "{}"; - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.keyValues().delete("bcvkcvqvpkeq", "cvdrhvoodsot", "obzdopcjwvnhdl", com.azure.core.util.Context.NONE); + manager.keyValues().delete("jcntuj", "tcje", "ftwwaezkojvdc", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/LogSpecificationTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/LogSpecificationTests.java index d52ca6b1ffd2a..b5b80d276aa29 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/LogSpecificationTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/LogSpecificationTests.java @@ -12,20 +12,20 @@ public final class LogSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogSpecification model - = BinaryData.fromString("{\"name\":\"jj\",\"displayName\":\"v\",\"blobDuration\":\"dgwdslfhot\"}") + = BinaryData.fromString("{\"name\":\"yxzk\",\"displayName\":\"ocukoklyax\",\"blobDuration\":\"onuq\"}") .toObject(LogSpecification.class); - Assertions.assertEquals("jj", model.name()); - Assertions.assertEquals("v", model.displayName()); - Assertions.assertEquals("dgwdslfhot", model.blobDuration()); + Assertions.assertEquals("yxzk", model.name()); + Assertions.assertEquals("ocukoklyax", model.displayName()); + Assertions.assertEquals("onuq", model.blobDuration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LogSpecification model - = new LogSpecification().withName("jj").withDisplayName("v").withBlobDuration("dgwdslfhot"); + = new LogSpecification().withName("yxzk").withDisplayName("ocukoklyax").withBlobDuration("onuq"); model = BinaryData.fromObject(model).toObject(LogSpecification.class); - Assertions.assertEquals("jj", model.name()); - Assertions.assertEquals("v", model.displayName()); - Assertions.assertEquals("dgwdslfhot", model.blobDuration()); + Assertions.assertEquals("yxzk", model.name()); + Assertions.assertEquals("ocukoklyax", model.displayName()); + Assertions.assertEquals("onuq", model.blobDuration()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricDimensionTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricDimensionTests.java index 766364dc60d8c..c623884170069 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricDimensionTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricDimensionTests.java @@ -12,20 +12,21 @@ public final class MetricDimensionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MetricDimension model = BinaryData - .fromString("{\"name\":\"ectehf\",\"displayName\":\"scjeypv\",\"internalName\":\"zrkgqhcjrefovg\"}") + .fromString("{\"name\":\"hmpvecx\",\"displayName\":\"debfqkkrbmpukgri\",\"internalName\":\"lzlfbxzpuz\"}") .toObject(MetricDimension.class); - Assertions.assertEquals("ectehf", model.name()); - Assertions.assertEquals("scjeypv", model.displayName()); - Assertions.assertEquals("zrkgqhcjrefovg", model.internalName()); + Assertions.assertEquals("hmpvecx", model.name()); + Assertions.assertEquals("debfqkkrbmpukgri", model.displayName()); + Assertions.assertEquals("lzlfbxzpuz", model.internalName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MetricDimension model - = new MetricDimension().withName("ectehf").withDisplayName("scjeypv").withInternalName("zrkgqhcjrefovg"); + MetricDimension model = new MetricDimension().withName("hmpvecx") + .withDisplayName("debfqkkrbmpukgri") + .withInternalName("lzlfbxzpuz"); model = BinaryData.fromObject(model).toObject(MetricDimension.class); - Assertions.assertEquals("ectehf", model.name()); - Assertions.assertEquals("scjeypv", model.displayName()); - Assertions.assertEquals("zrkgqhcjrefovg", model.internalName()); + Assertions.assertEquals("hmpvecx", model.name()); + Assertions.assertEquals("debfqkkrbmpukgri", model.displayName()); + Assertions.assertEquals("lzlfbxzpuz", model.internalName()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricSpecificationTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricSpecificationTests.java index d395bf971bf14..57bdcfe68c62d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricSpecificationTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/MetricSpecificationTests.java @@ -14,44 +14,45 @@ public final class MetricSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MetricSpecification model = BinaryData.fromString( - "{\"name\":\"cynpwlbjnp\",\"displayName\":\"cftadeh\",\"displayDescription\":\"ltyfsop\",\"unit\":\"suesnzw\",\"aggregationType\":\"jbavorxzdm\",\"internalMetricName\":\"ctbqvudwx\",\"dimensions\":[{\"name\":\"vo\",\"displayName\":\"ujjugwdkcglh\",\"internalName\":\"azjdyggd\"},{\"name\":\"ixhbkuofqweykhm\",\"displayName\":\"evfyexfwhybcib\",\"internalName\":\"vdcsitynn\"}],\"fillGapWithZero\":true}") + "{\"name\":\"fkbey\",\"displayName\":\"wrmjmwvvjektc\",\"displayDescription\":\"enhwlrs\",\"unit\":\"rzpwvlqdqgbiq\",\"aggregationType\":\"ihkaetcktvfc\",\"internalMetricName\":\"fsnkymuctq\",\"dimensions\":[{\"name\":\"ebrjcxe\",\"displayName\":\"uwutttxfvjrbi\",\"internalName\":\"hxepcyvahfnlj\"},{\"name\":\"qxj\",\"displayName\":\"ujqgidok\",\"internalName\":\"ljyoxgvcltb\"},{\"name\":\"ncghkje\",\"displayName\":\"zhbijhtxfv\",\"internalName\":\"bfs\"}],\"fillGapWithZero\":true}") .toObject(MetricSpecification.class); - Assertions.assertEquals("cynpwlbjnp", model.name()); - Assertions.assertEquals("cftadeh", model.displayName()); - Assertions.assertEquals("ltyfsop", model.displayDescription()); - Assertions.assertEquals("suesnzw", model.unit()); - Assertions.assertEquals("jbavorxzdm", model.aggregationType()); - Assertions.assertEquals("ctbqvudwx", model.internalMetricName()); - Assertions.assertEquals("vo", model.dimensions().get(0).name()); - Assertions.assertEquals("ujjugwdkcglh", model.dimensions().get(0).displayName()); - Assertions.assertEquals("azjdyggd", model.dimensions().get(0).internalName()); + Assertions.assertEquals("fkbey", model.name()); + Assertions.assertEquals("wrmjmwvvjektc", model.displayName()); + Assertions.assertEquals("enhwlrs", model.displayDescription()); + Assertions.assertEquals("rzpwvlqdqgbiq", model.unit()); + Assertions.assertEquals("ihkaetcktvfc", model.aggregationType()); + Assertions.assertEquals("fsnkymuctq", model.internalMetricName()); + Assertions.assertEquals("ebrjcxe", model.dimensions().get(0).name()); + Assertions.assertEquals("uwutttxfvjrbi", model.dimensions().get(0).displayName()); + Assertions.assertEquals("hxepcyvahfnlj", model.dimensions().get(0).internalName()); Assertions.assertEquals(true, model.fillGapWithZero()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MetricSpecification model = new MetricSpecification().withName("cynpwlbjnp") - .withDisplayName("cftadeh") - .withDisplayDescription("ltyfsop") - .withUnit("suesnzw") - .withAggregationType("jbavorxzdm") - .withInternalMetricName("ctbqvudwx") + MetricSpecification model = new MetricSpecification().withName("fkbey") + .withDisplayName("wrmjmwvvjektc") + .withDisplayDescription("enhwlrs") + .withUnit("rzpwvlqdqgbiq") + .withAggregationType("ihkaetcktvfc") + .withInternalMetricName("fsnkymuctq") .withDimensions(Arrays.asList( - new MetricDimension().withName("vo").withDisplayName("ujjugwdkcglh").withInternalName("azjdyggd"), - new MetricDimension().withName("ixhbkuofqweykhm") - .withDisplayName("evfyexfwhybcib") - .withInternalName("vdcsitynn"))) + new MetricDimension().withName("ebrjcxe") + .withDisplayName("uwutttxfvjrbi") + .withInternalName("hxepcyvahfnlj"), + new MetricDimension().withName("qxj").withDisplayName("ujqgidok").withInternalName("ljyoxgvcltb"), + new MetricDimension().withName("ncghkje").withDisplayName("zhbijhtxfv").withInternalName("bfs"))) .withFillGapWithZero(true); model = BinaryData.fromObject(model).toObject(MetricSpecification.class); - Assertions.assertEquals("cynpwlbjnp", model.name()); - Assertions.assertEquals("cftadeh", model.displayName()); - Assertions.assertEquals("ltyfsop", model.displayDescription()); - Assertions.assertEquals("suesnzw", model.unit()); - Assertions.assertEquals("jbavorxzdm", model.aggregationType()); - Assertions.assertEquals("ctbqvudwx", model.internalMetricName()); - Assertions.assertEquals("vo", model.dimensions().get(0).name()); - Assertions.assertEquals("ujjugwdkcglh", model.dimensions().get(0).displayName()); - Assertions.assertEquals("azjdyggd", model.dimensions().get(0).internalName()); + Assertions.assertEquals("fkbey", model.name()); + Assertions.assertEquals("wrmjmwvvjektc", model.displayName()); + Assertions.assertEquals("enhwlrs", model.displayDescription()); + Assertions.assertEquals("rzpwvlqdqgbiq", model.unit()); + Assertions.assertEquals("ihkaetcktvfc", model.aggregationType()); + Assertions.assertEquals("fsnkymuctq", model.internalMetricName()); + Assertions.assertEquals("ebrjcxe", model.dimensions().get(0).name()); + Assertions.assertEquals("uwutttxfvjrbi", model.dimensions().get(0).displayName()); + Assertions.assertEquals("hxepcyvahfnlj", model.dimensions().get(0).internalName()); Assertions.assertEquals(true, model.fillGapWithZero()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/NameAvailabilityStatusInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/NameAvailabilityStatusInnerTests.java index c848492fe09c4..2a3f5381121f7 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/NameAvailabilityStatusInnerTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/NameAvailabilityStatusInnerTests.java @@ -11,7 +11,7 @@ public final class NameAvailabilityStatusInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NameAvailabilityStatusInner model - = BinaryData.fromString("{\"nameAvailable\":false,\"message\":\"wu\",\"reason\":\"gazxuf\"}") + = BinaryData.fromString("{\"nameAvailable\":true,\"message\":\"lahbcryff\",\"reason\":\"dosyg\"}") .toObject(NameAvailabilityStatusInner.class); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionDisplayTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionDisplayTests.java index b560429c9b115..3afaa3c9d1749 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionDisplayTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionDisplayTests.java @@ -11,22 +11,22 @@ public final class OperationDefinitionDisplayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - OperationDefinitionDisplay model = BinaryData - .fromString( - "{\"provider\":\"fcyddg\",\"resource\":\"jthjqkwpyei\",\"operation\":\"mqc\",\"description\":\"q\"}") + OperationDefinitionDisplay model = BinaryData.fromString( + "{\"provider\":\"h\",\"resource\":\"osfln\",\"operation\":\"sfqpteehz\",\"description\":\"ypyqrimzinp\"}") .toObject(OperationDefinitionDisplay.class); - Assertions.assertEquals("jthjqkwpyei", model.resource()); - Assertions.assertEquals("mqc", model.operation()); - Assertions.assertEquals("q", model.description()); + Assertions.assertEquals("osfln", model.resource()); + Assertions.assertEquals("sfqpteehz", model.operation()); + Assertions.assertEquals("ypyqrimzinp", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OperationDefinitionDisplay model - = new OperationDefinitionDisplay().withResource("jthjqkwpyei").withOperation("mqc").withDescription("q"); + OperationDefinitionDisplay model = new OperationDefinitionDisplay().withResource("osfln") + .withOperation("sfqpteehz") + .withDescription("ypyqrimzinp"); model = BinaryData.fromObject(model).toObject(OperationDefinitionDisplay.class); - Assertions.assertEquals("jthjqkwpyei", model.resource()); - Assertions.assertEquals("mqc", model.operation()); - Assertions.assertEquals("q", model.description()); + Assertions.assertEquals("osfln", model.resource()); + Assertions.assertEquals("sfqpteehz", model.operation()); + Assertions.assertEquals("ypyqrimzinp", model.description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionInnerTests.java index 9f7e03852c558..4ca613865ca34 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionInnerTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionInnerTests.java @@ -6,6 +6,9 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appconfiguration.fluent.models.OperationDefinitionInner; +import com.azure.resourcemanager.appconfiguration.models.LogSpecification; +import com.azure.resourcemanager.appconfiguration.models.MetricDimension; +import com.azure.resourcemanager.appconfiguration.models.MetricSpecification; import com.azure.resourcemanager.appconfiguration.models.OperationDefinitionDisplay; import com.azure.resourcemanager.appconfiguration.models.OperationProperties; import com.azure.resourcemanager.appconfiguration.models.ServiceSpecification; @@ -16,33 +19,90 @@ public final class OperationDefinitionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationDefinitionInner model = BinaryData.fromString( - "{\"name\":\"axcfjpgddtocjjx\",\"isDataAction\":true,\"display\":{\"provider\":\"uexhdzx\",\"resource\":\"qeojnxqbzvddntw\",\"operation\":\"eic\",\"description\":\"w\"},\"origin\":\"zao\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[],\"metricSpecifications\":[]}}}") + "{\"name\":\"mmnkzsmodmgl\",\"isDataAction\":true,\"display\":{\"provider\":\"kwtmutduqktapspw\",\"resource\":\"uertumk\",\"operation\":\"svqwhbmdgbbjfd\",\"description\":\"mbmbexppbh\"},\"origin\":\"qrolfpf\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"qux\",\"displayName\":\"jyj\",\"blobDuration\":\"jaoyfhrtx\"},{\"name\":\"n\",\"displayName\":\"kujysvlejuvfq\",\"blobDuration\":\"rlyxwjkcprbnw\"}],\"metricSpecifications\":[{\"name\":\"vtb\",\"displayName\":\"ysszdnrujqguh\",\"displayDescription\":\"ouqfprwz\",\"unit\":\"nguitnwuizgazxu\",\"aggregationType\":\"zuckyfi\",\"internalMetricName\":\"fidfvzw\",\"dimensions\":[{}],\"fillGapWithZero\":false},{\"name\":\"mwisdkfthwxmnt\",\"displayName\":\"waopvkmijcmmxd\",\"displayDescription\":\"fufsrpymzi\",\"unit\":\"sezcxtb\",\"aggregationType\":\"gfycc\",\"internalMetricName\":\"ewmdw\",\"dimensions\":[{},{},{},{}],\"fillGapWithZero\":false}]}}}") .toObject(OperationDefinitionInner.class); - Assertions.assertEquals("axcfjpgddtocjjx", model.name()); + Assertions.assertEquals("mmnkzsmodmgl", model.name()); Assertions.assertEquals(true, model.isDataAction()); - Assertions.assertEquals("qeojnxqbzvddntw", model.display().resource()); - Assertions.assertEquals("eic", model.display().operation()); - Assertions.assertEquals("w", model.display().description()); - Assertions.assertEquals("zao", model.origin()); + Assertions.assertEquals("uertumk", model.display().resource()); + Assertions.assertEquals("svqwhbmdgbbjfd", model.display().operation()); + Assertions.assertEquals("mbmbexppbh", model.display().description()); + Assertions.assertEquals("qrolfpf", model.origin()); + Assertions.assertEquals("qux", model.properties().serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("jyj", + model.properties().serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("jaoyfhrtx", + model.properties().serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("vtb", model.properties().serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("ysszdnrujqguh", + model.properties().serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("ouqfprwz", + model.properties().serviceSpecification().metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("nguitnwuizgazxu", + model.properties().serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("zuckyfi", + model.properties().serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("fidfvzw", + model.properties().serviceSpecification().metricSpecifications().get(0).internalMetricName()); + Assertions.assertEquals(false, + model.properties().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OperationDefinitionInner model = new OperationDefinitionInner().withName("axcfjpgddtocjjx") + OperationDefinitionInner model = new OperationDefinitionInner().withName("mmnkzsmodmgl") .withIsDataAction(true) - .withDisplay(new OperationDefinitionDisplay().withResource("qeojnxqbzvddntw") - .withOperation("eic") - .withDescription("w")) - .withOrigin("zao") - .withProperties(new OperationProperties() - .withServiceSpecification(new ServiceSpecification().withLogSpecifications(Arrays.asList()) - .withMetricSpecifications(Arrays.asList()))); + .withDisplay(new OperationDefinitionDisplay().withResource("uertumk") + .withOperation("svqwhbmdgbbjfd") + .withDescription("mbmbexppbh")) + .withOrigin("qrolfpf") + .withProperties(new OperationProperties().withServiceSpecification(new ServiceSpecification() + .withLogSpecifications(Arrays.asList( + new LogSpecification().withName("qux").withDisplayName("jyj").withBlobDuration("jaoyfhrtx"), + new LogSpecification().withName("n") + .withDisplayName("kujysvlejuvfq") + .withBlobDuration("rlyxwjkcprbnw"))) + .withMetricSpecifications(Arrays.asList( + new MetricSpecification().withName("vtb") + .withDisplayName("ysszdnrujqguh") + .withDisplayDescription("ouqfprwz") + .withUnit("nguitnwuizgazxu") + .withAggregationType("zuckyfi") + .withInternalMetricName("fidfvzw") + .withDimensions(Arrays.asList(new MetricDimension())) + .withFillGapWithZero(false), + new MetricSpecification().withName("mwisdkfthwxmnt") + .withDisplayName("waopvkmijcmmxd") + .withDisplayDescription("fufsrpymzi") + .withUnit("sezcxtb") + .withAggregationType("gfycc") + .withInternalMetricName("ewmdw") + .withDimensions(Arrays.asList(new MetricDimension(), new MetricDimension(), + new MetricDimension(), new MetricDimension())) + .withFillGapWithZero(false))))); model = BinaryData.fromObject(model).toObject(OperationDefinitionInner.class); - Assertions.assertEquals("axcfjpgddtocjjx", model.name()); + Assertions.assertEquals("mmnkzsmodmgl", model.name()); Assertions.assertEquals(true, model.isDataAction()); - Assertions.assertEquals("qeojnxqbzvddntw", model.display().resource()); - Assertions.assertEquals("eic", model.display().operation()); - Assertions.assertEquals("w", model.display().description()); - Assertions.assertEquals("zao", model.origin()); + Assertions.assertEquals("uertumk", model.display().resource()); + Assertions.assertEquals("svqwhbmdgbbjfd", model.display().operation()); + Assertions.assertEquals("mbmbexppbh", model.display().description()); + Assertions.assertEquals("qrolfpf", model.origin()); + Assertions.assertEquals("qux", model.properties().serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("jyj", + model.properties().serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("jaoyfhrtx", + model.properties().serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("vtb", model.properties().serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("ysszdnrujqguh", + model.properties().serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("ouqfprwz", + model.properties().serviceSpecification().metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("nguitnwuizgazxu", + model.properties().serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("zuckyfi", + model.properties().serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("fidfvzw", + model.properties().serviceSpecification().metricSpecifications().get(0).internalMetricName()); + Assertions.assertEquals(false, + model.properties().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionListResultTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionListResultTests.java index 0bfd40dc62018..3abc5e06c09a0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionListResultTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationDefinitionListResultTests.java @@ -6,9 +6,12 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appconfiguration.fluent.models.OperationDefinitionInner; +import com.azure.resourcemanager.appconfiguration.models.LogSpecification; +import com.azure.resourcemanager.appconfiguration.models.MetricSpecification; import com.azure.resourcemanager.appconfiguration.models.OperationDefinitionDisplay; import com.azure.resourcemanager.appconfiguration.models.OperationDefinitionListResult; import com.azure.resourcemanager.appconfiguration.models.OperationProperties; +import com.azure.resourcemanager.appconfiguration.models.ServiceSpecification; import java.util.Arrays; import org.junit.jupiter.api.Assertions; @@ -16,49 +19,59 @@ public final class OperationDefinitionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationDefinitionListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"pgrjbz\",\"isDataAction\":true,\"display\":{\"provider\":\"xv\",\"resource\":\"byxqabn\",\"operation\":\"cpc\",\"description\":\"hurzafblj\"},\"origin\":\"pbtoqcjmkl\",\"properties\":{}},{\"name\":\"qidtqajzyu\",\"isDataAction\":true,\"display\":{\"provider\":\"jkrlkhbzhfepg\",\"resource\":\"qex\",\"operation\":\"ocxscpaierhhbcs\",\"description\":\"ummajtjaod\"},\"origin\":\"bnbdxkqpxokajion\",\"properties\":{}},{\"name\":\"xg\",\"isDataAction\":false,\"display\":{\"provider\":\"po\",\"resource\":\"maajrmvdjwzrlo\",\"operation\":\"clwhijcoejctbz\",\"description\":\"s\"},\"origin\":\"y\",\"properties\":{}}],\"nextLink\":\"fkgukdkexxppof\"}") + "{\"value\":[{\"name\":\"inqpjwnzll\",\"isDataAction\":true,\"display\":{\"provider\":\"eebvmgxsab\",\"resource\":\"qduujitcjczdz\",\"operation\":\"ndhkrw\",\"description\":\"appd\"},\"origin\":\"dkvwrwjfe\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{},{}],\"metricSpecifications\":[{}]}}},{\"name\":\"ltmrldh\",\"isDataAction\":false,\"display\":{\"provider\":\"datqxhocdgeabl\",\"resource\":\"huticndvkao\",\"operation\":\"yiftyhxhuro\",\"description\":\"tyxolniwpwc\"},\"origin\":\"jfkgiawxk\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{},{}],\"metricSpecifications\":[{},{},{}]}}},{\"name\":\"basyy\",\"isDataAction\":true,\"display\":{\"provider\":\"sgcbac\",\"resource\":\"ejk\",\"operation\":\"ynqgoulzndlikwyq\",\"description\":\"fgibmadgakeq\"},\"origin\":\"xybz\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{}],\"metricSpecifications\":[{},{},{}]}}}],\"nextLink\":\"ciqfou\"}") .toObject(OperationDefinitionListResult.class); - Assertions.assertEquals("pgrjbz", model.value().get(0).name()); + Assertions.assertEquals("inqpjwnzll", model.value().get(0).name()); Assertions.assertEquals(true, model.value().get(0).isDataAction()); - Assertions.assertEquals("byxqabn", model.value().get(0).display().resource()); - Assertions.assertEquals("cpc", model.value().get(0).display().operation()); - Assertions.assertEquals("hurzafblj", model.value().get(0).display().description()); - Assertions.assertEquals("pbtoqcjmkl", model.value().get(0).origin()); - Assertions.assertEquals("fkgukdkexxppof", model.nextLink()); + Assertions.assertEquals("qduujitcjczdz", model.value().get(0).display().resource()); + Assertions.assertEquals("ndhkrw", model.value().get(0).display().operation()); + Assertions.assertEquals("appd", model.value().get(0).display().description()); + Assertions.assertEquals("dkvwrwjfe", model.value().get(0).origin()); + Assertions.assertEquals("ciqfou", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OperationDefinitionListResult model = new OperationDefinitionListResult().withValue(Arrays.asList( - new OperationDefinitionInner().withName("pgrjbz") + new OperationDefinitionInner().withName("inqpjwnzll") .withIsDataAction(true) - .withDisplay(new OperationDefinitionDisplay().withResource("byxqabn") - .withOperation("cpc") - .withDescription("hurzafblj")) - .withOrigin("pbtoqcjmkl") - .withProperties(new OperationProperties()), - new OperationDefinitionInner().withName("qidtqajzyu") - .withIsDataAction(true) - .withDisplay(new OperationDefinitionDisplay().withResource("qex") - .withOperation("ocxscpaierhhbcs") - .withDescription("ummajtjaod")) - .withOrigin("bnbdxkqpxokajion") - .withProperties(new OperationProperties()), - new OperationDefinitionInner().withName("xg") + .withDisplay(new OperationDefinitionDisplay().withResource("qduujitcjczdz") + .withOperation("ndhkrw") + .withDescription("appd")) + .withOrigin("dkvwrwjfe") + .withProperties(new OperationProperties().withServiceSpecification(new ServiceSpecification() + .withLogSpecifications(Arrays.asList(new LogSpecification(), new LogSpecification(), + new LogSpecification(), new LogSpecification())) + .withMetricSpecifications(Arrays.asList(new MetricSpecification())))), + new OperationDefinitionInner().withName("ltmrldh") .withIsDataAction(false) - .withDisplay(new OperationDefinitionDisplay().withResource("maajrmvdjwzrlo") - .withOperation("clwhijcoejctbz") - .withDescription("s")) - .withOrigin("y") - .withProperties(new OperationProperties()))) - .withNextLink("fkgukdkexxppof"); + .withDisplay(new OperationDefinitionDisplay().withResource("huticndvkao") + .withOperation("yiftyhxhuro") + .withDescription("tyxolniwpwc")) + .withOrigin("jfkgiawxk") + .withProperties(new OperationProperties().withServiceSpecification(new ServiceSpecification() + .withLogSpecifications(Arrays.asList(new LogSpecification(), new LogSpecification(), + new LogSpecification(), new LogSpecification())) + .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification(), + new MetricSpecification())))), + new OperationDefinitionInner().withName("basyy") + .withIsDataAction(true) + .withDisplay(new OperationDefinitionDisplay().withResource("ejk") + .withOperation("ynqgoulzndlikwyq") + .withDescription("fgibmadgakeq")) + .withOrigin("xybz") + .withProperties(new OperationProperties().withServiceSpecification(new ServiceSpecification() + .withLogSpecifications(Arrays.asList(new LogSpecification(), new LogSpecification())) + .withMetricSpecifications(Arrays.asList(new MetricSpecification(), new MetricSpecification(), + new MetricSpecification())))))) + .withNextLink("ciqfou"); model = BinaryData.fromObject(model).toObject(OperationDefinitionListResult.class); - Assertions.assertEquals("pgrjbz", model.value().get(0).name()); + Assertions.assertEquals("inqpjwnzll", model.value().get(0).name()); Assertions.assertEquals(true, model.value().get(0).isDataAction()); - Assertions.assertEquals("byxqabn", model.value().get(0).display().resource()); - Assertions.assertEquals("cpc", model.value().get(0).display().operation()); - Assertions.assertEquals("hurzafblj", model.value().get(0).display().description()); - Assertions.assertEquals("pbtoqcjmkl", model.value().get(0).origin()); - Assertions.assertEquals("fkgukdkexxppof", model.nextLink()); + Assertions.assertEquals("qduujitcjczdz", model.value().get(0).display().resource()); + Assertions.assertEquals("ndhkrw", model.value().get(0).display().operation()); + Assertions.assertEquals("appd", model.value().get(0).display().description()); + Assertions.assertEquals("dkvwrwjfe", model.value().get(0).origin()); + Assertions.assertEquals("ciqfou", model.nextLink()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationPropertiesTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationPropertiesTests.java index 0d3d779fa9ec0..32ae0a34ff491 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationPropertiesTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationPropertiesTests.java @@ -6,6 +6,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appconfiguration.models.LogSpecification; +import com.azure.resourcemanager.appconfiguration.models.MetricDimension; import com.azure.resourcemanager.appconfiguration.models.MetricSpecification; import com.azure.resourcemanager.appconfiguration.models.OperationProperties; import com.azure.resourcemanager.appconfiguration.models.ServiceSpecification; @@ -16,49 +17,106 @@ public final class OperationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationProperties model = BinaryData.fromString( - "{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"xuigdtopbobj\",\"displayName\":\"hm\",\"blobDuration\":\"u\"}],\"metricSpecifications\":[{\"name\":\"hrzayvvtpgvdf\",\"displayName\":\"otkftutqxlngx\",\"displayDescription\":\"fgugnxkrxdqmid\",\"unit\":\"hzrvqd\",\"aggregationType\":\"bhj\",\"internalMetricName\":\"igeho\",\"dimensions\":[],\"fillGapWithZero\":true}]}}") + "{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"kirsoodqxhc\",\"displayName\":\"nohjt\",\"blobDuration\":\"whdsoifiyip\"},{\"name\":\"sqwpgrjb\",\"displayName\":\"orcjxvsnby\",\"blobDuration\":\"abnmocpcyshu\"},{\"name\":\"afbljjgpbtoqcjmk\",\"displayName\":\"a\",\"blobDuration\":\"qidtqajzyu\"}],\"metricSpecifications\":[{\"name\":\"dj\",\"displayName\":\"lkhbz\",\"displayDescription\":\"epgzgqexz\",\"unit\":\"c\",\"aggregationType\":\"c\",\"internalMetricName\":\"ierhhbcsglummaj\",\"dimensions\":[{\"name\":\"dxob\",\"displayName\":\"dxkqpx\",\"internalName\":\"ajionpimexgstxg\"},{\"name\":\"odgmaajrmvdjwz\",\"displayName\":\"ovmclwhijcoejct\",\"internalName\":\"aqsqsycbkbfk\"}],\"fillGapWithZero\":false},{\"name\":\"kexxppof\",\"displayName\":\"axcfjpgddtocjjx\",\"displayDescription\":\"pmouexhdz\",\"unit\":\"bqe\",\"aggregationType\":\"nxqbzvddn\",\"internalMetricName\":\"ndei\",\"dimensions\":[{\"name\":\"npzaoq\",\"displayName\":\"hrhcffcyddglmjth\",\"internalName\":\"kw\"},{\"name\":\"eicxmqciwqvhkhi\",\"displayName\":\"igdtopbob\",\"internalName\":\"ghmewuam\"},{\"name\":\"hrzayvvtpgvdf\",\"displayName\":\"otkftutqxlngx\",\"internalName\":\"fgugnxkrxdqmid\"},{\"name\":\"hzrvqd\",\"displayName\":\"bhj\",\"internalName\":\"igeho\"}],\"fillGapWithZero\":false},{\"name\":\"wska\",\"displayName\":\"ktzlcuiywg\",\"displayDescription\":\"wgndrvynhzgpp\",\"unit\":\"cgyncocpecf\",\"aggregationType\":\"mcoo\",\"internalMetricName\":\"xlzevgbmqjqabcy\",\"dimensions\":[{\"name\":\"kwlzuvccfwnfn\",\"displayName\":\"cfionl\",\"internalName\":\"x\"},{\"name\":\"qgtz\",\"displayName\":\"pnqbqqwxrjfe\",\"internalName\":\"lnwsubisn\"},{\"name\":\"mpmngnzscxaqwoo\",\"displayName\":\"cbonqvpk\",\"internalName\":\"rxnjeaseipheofl\"},{\"name\":\"eyy\",\"displayName\":\"nj\",\"internalName\":\"lwtgrhpdj\"}],\"fillGapWithZero\":true}]}}") .toObject(OperationProperties.class); - Assertions.assertEquals("xuigdtopbobj", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("hm", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("u", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hrzayvvtpgvdf", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("otkftutqxlngx", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("fgugnxkrxdqmid", + Assertions.assertEquals("kirsoodqxhc", model.serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("nohjt", model.serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("whdsoifiyip", model.serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("dj", model.serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("lkhbz", model.serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("epgzgqexz", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("hzrvqd", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("bhj", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("igeho", + Assertions.assertEquals("c", model.serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("c", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("ierhhbcsglummaj", model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); + Assertions.assertEquals("dxob", + model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); + Assertions.assertEquals("dxkqpx", + model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); + Assertions.assertEquals("ajionpimexgstxg", + model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).internalName()); + Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OperationProperties model = new OperationProperties().withServiceSpecification(new ServiceSpecification() - .withLogSpecifications(Arrays - .asList(new LogSpecification().withName("xuigdtopbobj").withDisplayName("hm").withBlobDuration("u"))) - .withMetricSpecifications(Arrays.asList(new MetricSpecification().withName("hrzayvvtpgvdf") - .withDisplayName("otkftutqxlngx") - .withDisplayDescription("fgugnxkrxdqmid") - .withUnit("hzrvqd") - .withAggregationType("bhj") - .withInternalMetricName("igeho") - .withDimensions(Arrays.asList()) - .withFillGapWithZero(true)))); + .withLogSpecifications(Arrays.asList( + new LogSpecification().withName("kirsoodqxhc").withDisplayName("nohjt").withBlobDuration("whdsoifiyip"), + new LogSpecification().withName("sqwpgrjb") + .withDisplayName("orcjxvsnby") + .withBlobDuration("abnmocpcyshu"), + new LogSpecification().withName("afbljjgpbtoqcjmk") + .withDisplayName("a") + .withBlobDuration("qidtqajzyu"))) + .withMetricSpecifications(Arrays.asList( + new MetricSpecification().withName("dj") + .withDisplayName("lkhbz") + .withDisplayDescription("epgzgqexz") + .withUnit("c") + .withAggregationType("c") + .withInternalMetricName("ierhhbcsglummaj") + .withDimensions(Arrays.asList( + new MetricDimension().withName("dxob") + .withDisplayName("dxkqpx") + .withInternalName("ajionpimexgstxg"), + new MetricDimension().withName("odgmaajrmvdjwz") + .withDisplayName("ovmclwhijcoejct") + .withInternalName("aqsqsycbkbfk"))) + .withFillGapWithZero(false), + new MetricSpecification().withName("kexxppof") + .withDisplayName("axcfjpgddtocjjx") + .withDisplayDescription("pmouexhdz") + .withUnit("bqe") + .withAggregationType("nxqbzvddn") + .withInternalMetricName("ndei") + .withDimensions(Arrays.asList( + new MetricDimension().withName("npzaoq") + .withDisplayName("hrhcffcyddglmjth") + .withInternalName("kw"), + new MetricDimension().withName("eicxmqciwqvhkhi") + .withDisplayName("igdtopbob") + .withInternalName("ghmewuam"), + new MetricDimension().withName("hrzayvvtpgvdf") + .withDisplayName("otkftutqxlngx") + .withInternalName("fgugnxkrxdqmid"), + new MetricDimension().withName("hzrvqd").withDisplayName("bhj").withInternalName("igeho"))) + .withFillGapWithZero(false), + new MetricSpecification().withName("wska") + .withDisplayName("ktzlcuiywg") + .withDisplayDescription("wgndrvynhzgpp") + .withUnit("cgyncocpecf") + .withAggregationType("mcoo") + .withInternalMetricName("xlzevgbmqjqabcy") + .withDimensions(Arrays.asList( + new MetricDimension().withName("kwlzuvccfwnfn").withDisplayName("cfionl").withInternalName("x"), + new MetricDimension().withName("qgtz") + .withDisplayName("pnqbqqwxrjfe") + .withInternalName("lnwsubisn"), + new MetricDimension().withName("mpmngnzscxaqwoo") + .withDisplayName("cbonqvpk") + .withInternalName("rxnjeaseipheofl"), + new MetricDimension().withName("eyy").withDisplayName("nj").withInternalName("lwtgrhpdj"))) + .withFillGapWithZero(true)))); model = BinaryData.fromObject(model).toObject(OperationProperties.class); - Assertions.assertEquals("xuigdtopbobj", model.serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("hm", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("u", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hrzayvvtpgvdf", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("otkftutqxlngx", - model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("fgugnxkrxdqmid", + Assertions.assertEquals("kirsoodqxhc", model.serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("nohjt", model.serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("whdsoifiyip", model.serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("dj", model.serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("lkhbz", model.serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("epgzgqexz", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("hzrvqd", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions.assertEquals("bhj", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("igeho", + Assertions.assertEquals("c", model.serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("c", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("ierhhbcsglummaj", model.serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); + Assertions.assertEquals("dxob", + model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).name()); + Assertions.assertEquals("dxkqpx", + model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).displayName()); + Assertions.assertEquals("ajionpimexgstxg", + model.serviceSpecification().metricSpecifications().get(0).dimensions().get(0).internalName()); + Assertions.assertEquals(false, model.serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java index ce7ef9eaf7e96..529468941f769 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java @@ -6,44 +6,25 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; import com.azure.resourcemanager.appconfiguration.models.NameAvailabilityStatus; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class OperationsCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"nameAvailable\":true,\"message\":\"qjhhkxbpv\",\"reason\":\"mjh\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + String responseStr = "{\"nameAvailable\":false,\"message\":\"mnzgmwznmabi\",\"reason\":\"sorgj\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -51,9 +32,10 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { NameAvailabilityStatus response = manager.operations() .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityParameters().withName("grcfb") + new CheckNameAvailabilityParameters().withName("itsmypyyn") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE) .getValue(); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListMockTests.java index 22cea16bbdffa..c142822ecf3e8 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListMockTests.java @@ -6,58 +6,83 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.OperationDefinition; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class OperationsListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"name\":\"swbxqz\",\"isDataAction\":false,\"display\":{\"provider\":\"auvjfdxxivet\",\"resource\":\"cqaqtdoqmcbx\",\"operation\":\"vxysl\",\"description\":\"hsfxoblytkb\"},\"origin\":\"pe\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[],\"metricSpecifications\":[]}}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"name\":\"ok\",\"isDataAction\":false,\"display\":{\"provider\":\"d\",\"resource\":\"gsyocogj\",\"operation\":\"dtbnnha\",\"description\":\"ocrkvcikh\"},\"origin\":\"p\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"queziky\",\"displayName\":\"gxk\",\"blobDuration\":\"la\"}],\"metricSpecifications\":[{\"name\":\"wuipiccjzkzivg\",\"displayName\":\"c\",\"displayDescription\":\"y\",\"unit\":\"yrnxxmueedn\",\"aggregationType\":\"dvstkw\",\"internalMetricName\":\"tchealmf\",\"dimensions\":[{}],\"fillGapWithZero\":true},{\"name\":\"gdv\",\"displayName\":\"gpiohgwxrtfudxe\",\"displayDescription\":\"gyqagvrvmnpkuk\",\"unit\":\"i\",\"aggregationType\":\"blxgwimf\",\"internalMetricName\":\"hfjx\",\"dimensions\":[{},{},{}],\"fillGapWithZero\":false}]}}}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.operations().list("xjyngudivk", com.azure.core.util.Context.NONE); + = manager.operations().list("xbldtlwwrlkdmtn", com.azure.core.util.Context.NONE); - Assertions.assertEquals("swbxqz", response.iterator().next().name()); + Assertions.assertEquals("ok", response.iterator().next().name()); Assertions.assertEquals(false, response.iterator().next().isDataAction()); - Assertions.assertEquals("cqaqtdoqmcbx", response.iterator().next().display().resource()); - Assertions.assertEquals("vxysl", response.iterator().next().display().operation()); - Assertions.assertEquals("hsfxoblytkb", response.iterator().next().display().description()); - Assertions.assertEquals("pe", response.iterator().next().origin()); + Assertions.assertEquals("gsyocogj", response.iterator().next().display().resource()); + Assertions.assertEquals("dtbnnha", response.iterator().next().display().operation()); + Assertions.assertEquals("ocrkvcikh", response.iterator().next().display().description()); + Assertions.assertEquals("p", response.iterator().next().origin()); + Assertions.assertEquals("queziky", + response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).name()); + Assertions.assertEquals("gxk", + response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).displayName()); + Assertions.assertEquals("la", + response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("wuipiccjzkzivg", + response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).name()); + Assertions.assertEquals("c", + response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).displayName()); + Assertions.assertEquals("y", + response.iterator() + .next() + .properties() + .serviceSpecification() + .metricSpecifications() + .get(0) + .displayDescription()); + Assertions.assertEquals("yrnxxmueedn", + response.iterator().next().properties().serviceSpecification().metricSpecifications().get(0).unit()); + Assertions.assertEquals("dvstkw", + response.iterator() + .next() + .properties() + .serviceSpecification() + .metricSpecifications() + .get(0) + .aggregationType()); + Assertions.assertEquals("tchealmf", + response.iterator() + .next() + .properties() + .serviceSpecification() + .metricSpecifications() + .get(0) + .internalMetricName()); + Assertions.assertEquals(true, + response.iterator() + .next() + .properties() + .serviceSpecification() + .metricSpecifications() + .get(0) + .fillGapWithZero()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilityWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilityWithResponseMockTests.java index 82278189e352a..6001317f12dac 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilityWithResponseMockTests.java @@ -6,54 +6,36 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; import com.azure.resourcemanager.appconfiguration.models.NameAvailabilityStatus; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class OperationsRegionalCheckNameAvailabilityWithResponseMockTests { @Test public void testRegionalCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"nameAvailable\":true,\"message\":\"ruvw\",\"reason\":\"sqfsubcgjbirxb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + String responseStr = "{\"nameAvailable\":false,\"message\":\"lpcirelsf\",\"reason\":\"enwabfatk\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); NameAvailabilityStatus response = manager.operations() - .regionalCheckNameAvailabilityWithResponse("krvrns", - new CheckNameAvailabilityParameters().withName("shqjohxcrsbf") + .regionalCheckNameAvailabilityWithResponse("kfoqreyfkzikfj", + new CheckNameAvailabilityParameters().withName("wneaiv") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), com.azure.core.util.Context.NONE) .getValue(); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionInnerTests.java index c60b73725149c..064373800439c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionInnerTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionInnerTests.java @@ -15,23 +15,23 @@ public final class PrivateEndpointConnectionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{\"id\":\"nqecanoaeup\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"ltrpmopj\",\"actionsRequired\":\"None\"}},\"id\":\"atuokthfuiu\",\"name\":\"odsfcpkvxodpuozm\",\"type\":\"zydagfuaxbezyiuo\"}") + "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"qik\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"vplwzbhv\",\"actionsRequired\":\"None\"}},\"id\":\"gu\",\"name\":\"svmkfssxquk\",\"type\":\"fpl\"}") .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("nqecanoaeup", model.privateEndpoint().id()); - Assertions.assertEquals(ConnectionStatus.DISCONNECTED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ltrpmopj", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("qik", model.privateEndpoint().id()); + Assertions.assertEquals(ConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("vplwzbhv", model.privateLinkServiceConnectionState().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionInner model - = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("nqecanoaeup")) + = new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("qik")) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.DISCONNECTED) - .withDescription("ltrpmopj")); + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED) + .withDescription("vplwzbhv")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("nqecanoaeup", model.privateEndpoint().id()); - Assertions.assertEquals(ConnectionStatus.DISCONNECTED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ltrpmopj", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("qik", model.privateEndpoint().id()); + Assertions.assertEquals(ConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("vplwzbhv", model.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionListResultTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionListResultTests.java index 64470a3e18dc3..6fc5d19e80e8d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionListResultTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionListResultTests.java @@ -6,7 +6,10 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appconfiguration.fluent.models.PrivateEndpointConnectionInner; +import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus; +import com.azure.resourcemanager.appconfiguration.models.PrivateEndpoint; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnectionListResult; +import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; import java.util.Arrays; import org.junit.jupiter.api.Assertions; @@ -14,17 +17,40 @@ public final class PrivateEndpointConnectionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"yvxyqjp\",\"name\":\"cattpngjcrcczsq\",\"type\":\"jh\"}],\"nextLink\":\"daj\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"ahmgkbrp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ibnuqqkpik\",\"actionsRequired\":\"None\"}},\"id\":\"gvtqagnbuynh\",\"name\":\"jggmebfsiarbu\",\"type\":\"rcvpnazzmhjrunmp\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"rbnlankxmyskp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"btkcxywnytnrsyn\",\"actionsRequired\":\"Recreate\"}},\"id\":\"dybyxczfclhaa\",\"name\":\"dbabp\",\"type\":\"lwrq\"},{\"properties\":{\"provisioningState\":\"Failed\",\"privateEndpoint\":{\"id\":\"hsucoc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"azt\",\"actionsRequired\":\"None\"}},\"id\":\"wwrq\",\"name\":\"uedck\",\"type\":\"ywbiexzfeyueax\"},{\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"bhqwalmuzyoxa\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"zjancuxr\",\"actionsRequired\":\"Recreate\"}},\"id\":\"bavxbniwdjswzt\",\"name\":\"dbpgnxytxhp\",\"type\":\"xbzpfzab\"}],\"nextLink\":\"cuh\"}") .toObject(PrivateEndpointConnectionListResult.class); - Assertions.assertEquals("daj", model.nextLink()); + Assertions.assertEquals("ahmgkbrp", model.value().get(0).privateEndpoint().id()); + Assertions.assertEquals(ConnectionStatus.APPROVED, + model.value().get(0).privateLinkServiceConnectionState().status()); + Assertions.assertEquals("ibnuqqkpik", model.value().get(0).privateLinkServiceConnectionState().description()); + Assertions.assertEquals("cuh", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateEndpointConnectionListResult model - = new PrivateEndpointConnectionListResult().withValue(Arrays.asList(new PrivateEndpointConnectionInner())) - .withNextLink("daj"); + PrivateEndpointConnectionListResult model = new PrivateEndpointConnectionListResult().withValue(Arrays.asList( + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("ahmgkbrp")) + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED) + .withDescription("ibnuqqkpik")), + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("rbnlankxmyskp")) + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.REJECTED) + .withDescription("btkcxywnytnrsyn")), + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("hsucoc")) + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED) + .withDescription("azt")), + new PrivateEndpointConnectionInner().withPrivateEndpoint(new PrivateEndpoint().withId("bhqwalmuzyoxa")) + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.REJECTED) + .withDescription("zjancuxr")))) + .withNextLink("cuh"); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResult.class); - Assertions.assertEquals("daj", model.nextLink()); + Assertions.assertEquals("ahmgkbrp", model.value().get(0).privateEndpoint().id()); + Assertions.assertEquals(ConnectionStatus.APPROVED, + model.value().get(0).privateLinkServiceConnectionState().status()); + Assertions.assertEquals("ibnuqqkpik", model.value().get(0).privateLinkServiceConnectionState().description()); + Assertions.assertEquals("cuh", model.nextLink()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionPropertiesTests.java index 6d66d4d14816e..e751206805247 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionPropertiesTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionPropertiesTests.java @@ -15,23 +15,23 @@ public final class PrivateEndpointConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"ypnddhsgcb\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"ejk\",\"actionsRequired\":\"Recreate\"}}") + "{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"chgejspodm\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"ydehoj\",\"actionsRequired\":\"None\"}}") .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("ypnddhsgcb", model.privateEndpoint().id()); + Assertions.assertEquals("chgejspodm", model.privateEndpoint().id()); Assertions.assertEquals(ConnectionStatus.DISCONNECTED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ejk", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("ydehoj", model.privateLinkServiceConnectionState().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionProperties model - = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint().withId("ypnddhsgcb")) + = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint().withId("chgejspodm")) .withPrivateLinkServiceConnectionState( new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.DISCONNECTED) - .withDescription("ejk")); + .withDescription("ydehoj")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("ypnddhsgcb", model.privateEndpoint().id()); + Assertions.assertEquals("chgejspodm", model.privateEndpoint().id()); Assertions.assertEquals(ConnectionStatus.DISCONNECTED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ejk", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("ydehoj", model.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionReferenceTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionReferenceTests.java index 451fb9bc2bec1..8e7d1a92e0c50 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionReferenceTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionReferenceTests.java @@ -15,23 +15,22 @@ public final class PrivateEndpointConnectionReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionReference model = BinaryData.fromString( - "{\"id\":\"qxhocdgeablgphut\",\"name\":\"ndv\",\"type\":\"ozwyiftyhxhuro\",\"properties\":{\"provisioningState\":\"Updating\",\"privateEndpoint\":{\"id\":\"lniwpwcukjfkgiaw\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"ypl\",\"actionsRequired\":\"None\"}}}") + "{\"id\":\"fwvuk\",\"name\":\"audccsnhs\",\"type\":\"nyejhkryhtnap\",\"properties\":{\"provisioningState\":\"Creating\",\"privateEndpoint\":{\"id\":\"jye\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ni\",\"actionsRequired\":\"Recreate\"}}}") .toObject(PrivateEndpointConnectionReference.class); - Assertions.assertEquals("lniwpwcukjfkgiaw", model.privateEndpoint().id()); - Assertions.assertEquals(ConnectionStatus.DISCONNECTED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ypl", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("jye", model.privateEndpoint().id()); + Assertions.assertEquals(ConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("ni", model.privateLinkServiceConnectionState().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionReference model = new PrivateEndpointConnectionReference() - .withPrivateEndpoint(new PrivateEndpoint().withId("lniwpwcukjfkgiaw")) + .withPrivateEndpoint(new PrivateEndpoint().withId("jye")) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.DISCONNECTED) - .withDescription("ypl")); + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.REJECTED).withDescription("ni")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionReference.class); - Assertions.assertEquals("lniwpwcukjfkgiaw", model.privateEndpoint().id()); - Assertions.assertEquals(ConnectionStatus.DISCONNECTED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ypl", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("jye", model.privateEndpoint().id()); + Assertions.assertEquals(ConnectionStatus.REJECTED, model.privateLinkServiceConnectionState().status()); + Assertions.assertEquals("ni", model.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java index 299e8e13914da..4c6c7dbcadc5c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java @@ -6,63 +6,43 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpoint; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class PrivateEndpointConnectionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"tfz\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"v\",\"actionsRequired\":\"None\"}},\"id\":\"r\",\"name\":\"odkwobd\",\"type\":\"gxtibqdxbxw\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"xleptramx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"lwnwxuqlcvydyp\",\"actionsRequired\":\"Recreate\"}},\"id\":\"ooaojkniodkooebw\",\"name\":\"ujhemmsbvdkcrodt\",\"type\":\"infwjlfltkacjve\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .define("tmweriofzpyq") - .withExistingConfigurationStore("erscdntne", "fiwjmygtdssls") - .withPrivateEndpoint(new PrivateEndpoint().withId("n")) + .define("judpfrxt") + .withExistingConfigurationStore("mewzsyyc", "uzsoi") + .withPrivateEndpoint(new PrivateEndpoint().withId("ytdw")) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.DISCONNECTED) - .withDescription("hszhedplvwiwu")) + new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.APPROVED).withDescription("qu")) .create(); - Assertions.assertEquals("tfz", response.privateEndpoint().id()); + Assertions.assertEquals("xleptramx", response.privateEndpoint().id()); Assertions.assertEquals(ConnectionStatus.PENDING, response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("v", response.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("lwnwxuqlcvydyp", response.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteMockTests.java index f02be520f844b..d9f3735816a14 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteMockTests.java @@ -6,47 +6,29 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class PrivateEndpointConnectionsDeleteMockTests { @Test public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr = "{}"; - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); manager.privateEndpointConnections() - .delete("mnvdfzn", "daodvxzbncblyl", "stdbhhxsrzdzu", com.azure.core.util.Context.NONE); + .delete("nbyxbaaabjyv", "yffimrzrtuzqogs", "xnevfdnwn", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 1ce187caa3f07..4c77ee5c72a57 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -6,56 +6,37 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"avhqlkth\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"olbgycduiertgccy\",\"actionsRequired\":\"None\"}},\"id\":\"olpsslqlf\",\"name\":\"mdnbbglzpswiy\",\"type\":\"mcwyhzdxssadb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"properties\":{\"provisioningState\":\"Failed\",\"privateEndpoint\":{\"id\":\"hp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"ymareqnajxqugj\",\"actionsRequired\":\"Recreate\"}},\"id\":\"cubeddgssofw\",\"name\":\"mzqa\",\"type\":\"krmnjijpxacqqud\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("mifthnzdnd", "l", "nayqi", com.azure.core.util.Context.NONE) + .getWithResponse("moadsuvarmy", "dmjsjqb", "hhyxxrw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("avhqlkth", response.privateEndpoint().id()); + Assertions.assertEquals("hp", response.privateEndpoint().id()); Assertions.assertEquals(ConnectionStatus.DISCONNECTED, response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("olbgycduiertgccy", response.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("ymareqnajxqugj", response.privateLinkServiceConnectionState().description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreMockTests.java index 77ce4225b28f3..00069b98e94e3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreMockTests.java @@ -6,58 +6,39 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus; import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class PrivateEndpointConnectionsListByConfigurationStoreMockTests { @Test public void testListByConfigurationStore() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"bexilzznfqqnv\"},\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"taruoujmkcj\",\"actionsRequired\":\"Recreate\"}},\"id\":\"ytjrybnwjewgdr\",\"name\":\"ervnaenqpehi\",\"type\":\"doy\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"privateEndpoint\":{\"id\":\"glrvimjwosytxi\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"fcktqumiekke\",\"actionsRequired\":\"None\"}},\"id\":\"khly\",\"name\":\"jhdgqggebdunyga\",\"type\":\"qidbqfatpxllrxcy\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.privateEndpointConnections() - .listByConfigurationStore("ybsrfbjfdtwss", "t", com.azure.core.util.Context.NONE); + .listByConfigurationStore("ddxbjhwuaanoz", "osphyoul", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bexilzznfqqnv", response.iterator().next().privateEndpoint().id()); - Assertions.assertEquals(ConnectionStatus.DISCONNECTED, + Assertions.assertEquals("glrvimjwosytxi", response.iterator().next().privateEndpoint().id()); + Assertions.assertEquals(ConnectionStatus.PENDING, response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("taruoujmkcj", + Assertions.assertEquals("fcktqumiekke", response.iterator().next().privateLinkServiceConnectionState().description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointTests.java index e02d2d7241e5f..928f1b196ad94 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointTests.java @@ -11,14 +11,14 @@ public final class PrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"qgoulznd\"}").toObject(PrivateEndpoint.class); - Assertions.assertEquals("qgoulznd", model.id()); + PrivateEndpoint model = BinaryData.fromString("{\"id\":\"uxinpmqnjaq\"}").toObject(PrivateEndpoint.class); + Assertions.assertEquals("uxinpmqnjaq", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("qgoulznd"); + PrivateEndpoint model = new PrivateEndpoint().withId("uxinpmqnjaq"); model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("qgoulznd", model.id()); + Assertions.assertEquals("uxinpmqnjaq", model.id()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceInnerTests.java index e07433d45227e..d06c1a05d2196 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceInnerTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceInnerTests.java @@ -11,7 +11,7 @@ public final class PrivateLinkResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceInner model = BinaryData.fromString( - "{\"id\":\"gidyjrrf\",\"name\":\"aos\",\"type\":\"xc\",\"properties\":{\"groupId\":\"pclhocohslk\",\"requiredMembers\":[\"eggzfb\",\"hfmvfaxkffe\"],\"requiredZoneNames\":[\"hl\"]}}") + "{\"id\":\"nbbelda\",\"name\":\"zbaliourqha\",\"type\":\"uhashsfwx\",\"properties\":{\"groupId\":\"w\",\"requiredMembers\":[\"ugicjooxdjebw\",\"ucww\",\"vo\"],\"requiredZoneNames\":[\"meue\",\"ivyhzceuojgjrwju\"]}}") .toObject(PrivateLinkResourceInner.class); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceListResultTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceListResultTests.java index 99745c65b6644..0b9f2e1902666 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceListResultTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourceListResultTests.java @@ -14,9 +14,9 @@ public final class PrivateLinkResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"hrdxwzywqsmbs\",\"name\":\"exim\",\"type\":\"yocf\",\"properties\":{\"groupId\":\"s\",\"requiredMembers\":[],\"requiredZoneNames\":[]}},{\"id\":\"ys\",\"name\":\"i\",\"type\":\"xhqyudxorrqnb\",\"properties\":{\"groupId\":\"zvyifqrvkdvj\",\"requiredMembers\":[],\"requiredZoneNames\":[]}},{\"id\":\"mvvd\",\"name\":\"atkpnp\",\"type\":\"exxbczwtr\",\"properties\":{\"groupId\":\"qzbqjvsov\",\"requiredMembers\":[],\"requiredZoneNames\":[]}},{\"id\":\"acspkwl\",\"name\":\"dobpxjmflbvvn\",\"type\":\"rkcciwwzjuqk\",\"properties\":{\"groupId\":\"ajiwkuo\",\"requiredMembers\":[],\"requiredZoneNames\":[]}}],\"nextLink\":\"ghsauuimjmvxied\"}") + "{\"value\":[{\"id\":\"xnkjzkdesl\",\"name\":\"lopwiyig\",\"type\":\"pkdwzbai\",\"properties\":{\"groupId\":\"baumnyqupedeoj\",\"requiredMembers\":[\"ckhsmtxpsieb\",\"fhvpesaps\",\"rdqmhjjdhtldwkyz\"],\"requiredZoneNames\":[\"tkncwsc\",\"svlxotogtwrup\"]}},{\"id\":\"xvnmicykvceov\",\"name\":\"lo\",\"type\":\"oty\",\"properties\":{\"groupId\":\"cnjbkcnxdhbt\",\"requiredMembers\":[\"h\",\"wpn\"],\"requiredZoneNames\":[\"oqnermclfpl\"]}},{\"id\":\"oxuscrpabgyepsbj\",\"name\":\"zq\",\"type\":\"xywpmueefjzwfqkq\",\"properties\":{\"groupId\":\"dsuyonobgla\",\"requiredMembers\":[\"xtccmg\",\"udxytlmoyrx\",\"wfudwpzntxhdzhl\"],\"requiredZoneNames\":[\"bh\",\"kfrlhrxsbky\",\"pycanuzbpz\"]}},{\"id\":\"fkuwbcrnwbmehhse\",\"name\":\"jusrtslhspk\",\"type\":\"emaofmxagkvt\",\"properties\":{\"groupId\":\"mqkrhahvljuahaqu\",\"requiredMembers\":[\"hmdua\",\"aex\"],\"requiredZoneNames\":[\"fadmws\",\"crgvxpvgom\"]}}],\"nextLink\":\"fmisg\"}") .toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("ghsauuimjmvxied", model.nextLink()); + Assertions.assertEquals("fmisg", model.nextLink()); } @org.junit.jupiter.api.Test @@ -24,8 +24,8 @@ public void testSerialize() throws Exception { PrivateLinkResourceListResult model = new PrivateLinkResourceListResult() .withValue(Arrays.asList(new PrivateLinkResourceInner(), new PrivateLinkResourceInner(), new PrivateLinkResourceInner(), new PrivateLinkResourceInner())) - .withNextLink("ghsauuimjmvxied"); + .withNextLink("fmisg"); model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResult.class); - Assertions.assertEquals("ghsauuimjmvxied", model.nextLink()); + Assertions.assertEquals("fmisg", model.nextLink()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcePropertiesTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcePropertiesTests.java index 99add63187751..2bfc07a02f5f4 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcePropertiesTests.java @@ -10,8 +10,8 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"ez\",\"requiredMembers\":[\"hxmzsbbzoggig\",\"xwburvjxxjns\",\"ydptkoen\",\"ou\"],\"requiredZoneNames\":[\"udwtiukbl\",\"ngkpocipazy\",\"o\",\"gukgjnpiucgygevq\"]}") + PrivateLinkResourceProperties model = BinaryData + .fromString("{\"groupId\":\"otwmcdyt\",\"requiredMembers\":[\"it\"],\"requiredZoneNames\":[\"jawgqwg\"]}") .toObject(PrivateLinkResourceProperties.class); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetWithResponseMockTests.java index eba6e3e8708cf..83ab5b8611de3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetWithResponseMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetWithResponseMockTests.java @@ -6,50 +6,32 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkResource; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class PrivateLinkResourcesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"id\":\"ikdowwquuvx\",\"name\":\"clvit\",\"type\":\"qzonosggbhcohf\",\"properties\":{\"groupId\":\"jnkaljutiiswacff\",\"requiredMembers\":[\"zzewkfvhqcrai\"],\"requiredZoneNames\":[\"n\",\"pfuflrw\"]}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"id\":\"cwsobqwcs\",\"name\":\"nwdcfhu\",\"type\":\"dpfuvg\",\"properties\":{\"groupId\":\"jjcanvxbvtv\",\"requiredMembers\":[\"tncormrlxqtvco\",\"udflvkgjubgdknn\"],\"requiredZoneNames\":[\"aznqntoru\",\"sgsahmkycgr\",\"uwjuetaeburuvdmo\"]}}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateLinkResource response = manager.privateLinkResources() - .getWithResponse("hjpglkf", "ohdneuel", "phsdyhto", com.azure.core.util.Context.NONE) + .getWithResponse("feqztppriol", "or", "altol", com.azure.core.util.Context.NONE) .getValue(); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreMockTests.java index 7c7213136b625..104c0a55eba1b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreMockTests.java @@ -6,50 +6,32 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkResource; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class PrivateLinkResourcesListByConfigurationStoreMockTests { @Test public void testListByConfigurationStore() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"id\":\"xmubyyntwlrbq\",\"name\":\"oievseotgqrlltm\",\"type\":\"lauwzizxbmpgcjef\",\"properties\":{\"groupId\":\"uvpb\",\"requiredMembers\":[\"um\"],\"requiredZoneNames\":[\"pxebmnzbt\"]}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"id\":\"blylsyxkqjnsj\",\"name\":\"vti\",\"type\":\"xsdszuempsb\",\"properties\":{\"groupId\":\"z\",\"requiredMembers\":[\"v\",\"nqicvinvkjjxdxrb\",\"ukzclewyhmlwpaz\",\"zpof\"],\"requiredZoneNames\":[\"kwyfzqwhxxbuyqax\"]}}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.privateLinkResources() - .listByConfigurationStore("kbogqxndlkzgx", "uriplbpodxunkb", com.azure.core.util.Context.NONE); + .listByConfigurationStore("kdlfoa", "ggkfpagaowpul", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkServiceConnectionStateTests.java index 643878c35a51e..9bd17a187de3e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkServiceConnectionStateTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkServiceConnectionStateTests.java @@ -13,18 +13,19 @@ public final class PrivateLinkServiceConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkServiceConnectionState model = BinaryData - .fromString("{\"status\":\"Pending\",\"description\":\"yqkgfg\",\"actionsRequired\":\"Recreate\"}") + .fromString("{\"status\":\"Pending\",\"description\":\"sprozvcput\",\"actionsRequired\":\"None\"}") .toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(ConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("yqkgfg", model.description()); + Assertions.assertEquals("sprozvcput", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkServiceConnectionState model - = new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.PENDING).withDescription("yqkgfg"); + = new PrivateLinkServiceConnectionState().withStatus(ConnectionStatus.PENDING) + .withDescription("sprozvcput"); model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); Assertions.assertEquals(ConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("yqkgfg", model.description()); + Assertions.assertEquals("sprozvcput", model.description()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/RegenerateKeyParametersTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/RegenerateKeyParametersTests.java index 9e4ea4ea2268e..4f9d56acb3783 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/RegenerateKeyParametersTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/RegenerateKeyParametersTests.java @@ -12,14 +12,14 @@ public final class RegenerateKeyParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegenerateKeyParameters model - = BinaryData.fromString("{\"id\":\"dsoifiyipj\"}").toObject(RegenerateKeyParameters.class); - Assertions.assertEquals("dsoifiyipj", model.id()); + = BinaryData.fromString("{\"id\":\"hxbnjbiksqrg\"}").toObject(RegenerateKeyParameters.class); + Assertions.assertEquals("hxbnjbiksqrg", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RegenerateKeyParameters model = new RegenerateKeyParameters().withId("dsoifiyipj"); + RegenerateKeyParameters model = new RegenerateKeyParameters().withId("hxbnjbiksqrg"); model = BinaryData.fromObject(model).toObject(RegenerateKeyParameters.class); - Assertions.assertEquals("dsoifiyipj", model.id()); + Assertions.assertEquals("hxbnjbiksqrg", model.id()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaInnerTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaInnerTests.java index 6d5f4f5d31f53..549656b594a4e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaInnerTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaInnerTests.java @@ -12,15 +12,15 @@ public final class ReplicaInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicaInner model = BinaryData.fromString( - "{\"location\":\"eyueaxibxujwb\",\"properties\":{\"endpoint\":\"lmuzy\",\"provisioningState\":\"Succeeded\"},\"id\":\"epdkzja\",\"name\":\"cuxrhdwbavx\",\"type\":\"niwdjsw\"}") + "{\"location\":\"aqtdoqmcbx\",\"properties\":{\"endpoint\":\"yslqbhsfx\",\"provisioningState\":\"Deleting\"},\"id\":\"ytkblmpew\",\"name\":\"wfbkrvrns\",\"type\":\"shqjohxcrsbf\"}") .toObject(ReplicaInner.class); - Assertions.assertEquals("eyueaxibxujwb", model.location()); + Assertions.assertEquals("aqtdoqmcbx", model.location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ReplicaInner model = new ReplicaInner().withLocation("eyueaxibxujwb"); + ReplicaInner model = new ReplicaInner().withLocation("aqtdoqmcbx"); model = BinaryData.fromObject(model).toObject(ReplicaInner.class); - Assertions.assertEquals("eyueaxibxujwb", model.location()); + Assertions.assertEquals("aqtdoqmcbx", model.location()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaListResultTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaListResultTests.java index a145e87e663b1..c69ddd4b0deff 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaListResultTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaListResultTests.java @@ -14,20 +14,20 @@ public final class ReplicaListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplicaListResult model = BinaryData.fromString( - "{\"value\":[{\"location\":\"odebfqkkrbmpu\",\"properties\":{\"endpoint\":\"wflzlfbxzpuzy\",\"provisioningState\":\"Deleting\"},\"id\":\"pnq\",\"name\":\"ahmgkbrp\",\"type\":\"y\"},{\"location\":\"ibnuqqkpik\",\"properties\":{\"endpoint\":\"vtq\",\"provisioningState\":\"Canceled\"},\"id\":\"buynhijggm\",\"name\":\"bfs\",\"type\":\"arbu\"},{\"location\":\"cvpnazzmhjrunmpx\",\"properties\":{\"endpoint\":\"hrbnlankxmyskpbh\",\"provisioningState\":\"Canceled\"},\"id\":\"tkcxywnytnrsy\",\"name\":\"lqidyby\",\"type\":\"czfc\"},{\"location\":\"aaxdbabphlwrq\",\"properties\":{\"endpoint\":\"sthsu\",\"provisioningState\":\"Canceled\"},\"id\":\"mnyyazt\",\"name\":\"bt\",\"type\":\"wrqpue\"}],\"nextLink\":\"kzywbiex\"}") + "{\"value\":[{\"location\":\"sxyawjoyaqcs\",\"properties\":{\"endpoint\":\"kiidzyex\",\"provisioningState\":\"Creating\"},\"id\":\"lixhnrztfol\",\"name\":\"bnxknalaulppg\",\"type\":\"dtpnapnyiropuhp\"},{\"location\":\"vpgylgqgitxmed\",\"properties\":{\"endpoint\":\"lynqwwncwzzh\",\"provisioningState\":\"Succeeded\"},\"id\":\"trmgucnapkte\",\"name\":\"ellwptfdy\",\"type\":\"pfqbuaceopzf\"},{\"location\":\"hhuao\",\"properties\":{\"endpoint\":\"qeqxo\",\"provisioningState\":\"Deleting\"},\"id\":\"ahzxctobgbk\",\"name\":\"moizpos\",\"type\":\"mgrcfbu\"},{\"location\":\"mfqjhhkxbp\",\"properties\":{\"endpoint\":\"jhxxjyn\",\"provisioningState\":\"Succeeded\"},\"id\":\"ivkrtsw\",\"name\":\"xqzvszjfa\",\"type\":\"vjfdx\"}],\"nextLink\":\"vetvt\"}") .toObject(ReplicaListResult.class); - Assertions.assertEquals("odebfqkkrbmpu", model.value().get(0).location()); - Assertions.assertEquals("kzywbiex", model.nextLink()); + Assertions.assertEquals("sxyawjoyaqcs", model.value().get(0).location()); + Assertions.assertEquals("vetvt", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ReplicaListResult model - = new ReplicaListResult().withValue(Arrays.asList(new ReplicaInner().withLocation("odebfqkkrbmpu"), - new ReplicaInner().withLocation("ibnuqqkpik"), new ReplicaInner().withLocation("cvpnazzmhjrunmpx"), - new ReplicaInner().withLocation("aaxdbabphlwrq"))).withNextLink("kzywbiex"); + = new ReplicaListResult().withValue(Arrays.asList(new ReplicaInner().withLocation("sxyawjoyaqcs"), + new ReplicaInner().withLocation("vpgylgqgitxmed"), new ReplicaInner().withLocation("hhuao"), + new ReplicaInner().withLocation("mfqjhhkxbp"))).withNextLink("vetvt"); model = BinaryData.fromObject(model).toObject(ReplicaListResult.class); - Assertions.assertEquals("odebfqkkrbmpu", model.value().get(0).location()); - Assertions.assertEquals("kzywbiex", model.nextLink()); + Assertions.assertEquals("sxyawjoyaqcs", model.value().get(0).location()); + Assertions.assertEquals("vetvt", model.nextLink()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaPropertiesTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaPropertiesTests.java index 4b7adf7d55a0b..e073bd1e24335 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaPropertiesTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicaPropertiesTests.java @@ -10,7 +10,7 @@ public final class ReplicaPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ReplicaProperties model = BinaryData.fromString("{\"endpoint\":\"s\",\"provisioningState\":\"Deleting\"}") + ReplicaProperties model = BinaryData.fromString("{\"endpoint\":\"asrru\",\"provisioningState\":\"Canceled\"}") .toObject(ReplicaProperties.class); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateMockTests.java index 42d252be0a2d1..cd90b4ca8c325 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasCreateMockTests.java @@ -6,55 +6,36 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.Replica; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ReplicasCreateMockTests { @Test public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"location\":\"uvfbtkuwh\",\"properties\":{\"endpoint\":\"k\",\"provisioningState\":\"Succeeded\"},\"id\":\"xafnndlpichko\",\"name\":\"mkcdyhbpkkpwdre\",\"type\":\"novvqfovljxy\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"location\":\"brgz\",\"properties\":{\"endpoint\":\"weyp\",\"provisioningState\":\"Succeeded\"},\"id\":\"xggicccnxqhuexmk\",\"name\":\"tlstvlzywem\",\"type\":\"zrncsdt\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); Replica response = manager.replicas() - .define("kcnqxwbpo") - .withExistingConfigurationStore("wo", "nwashrtd") - .withRegion("lpiujwaa") + .define("zqhof") + .withExistingConfigurationStore("hziuiefozbhdms", "l") + .withRegion("maequiahxicslfa") .create(); - Assertions.assertEquals("uvfbtkuwh", response.location()); + Assertions.assertEquals("brgz", response.location()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteMockTests.java index 04c52be94dc9b..c1082c0e1399f 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasDeleteMockTests.java @@ -6,46 +6,28 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ReplicasDeleteMockTests { @Test public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr = "{}"; - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.replicas().delete("luszdtmhrkwof", "yvoqa", "piexpbtgiw", com.azure.core.util.Context.NONE); + manager.replicas().delete("u", "zkopb", "inrfdwoyu", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetWithResponseMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetWithResponseMockTests.java index ef09a509fce8f..8e2aeaa5d9e81 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetWithResponseMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasGetWithResponseMockTests.java @@ -6,53 +6,34 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.Replica; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ReplicasGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"location\":\"pvhelxprg\",\"properties\":{\"endpoint\":\"dd\",\"provisioningState\":\"Deleting\"},\"id\":\"bcuejrjxgci\",\"name\":\"ibrhosxsdqr\",\"type\":\"zoymibmrqyibahw\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"location\":\"kzevdlhewpusds\",\"properties\":{\"endpoint\":\"ogvbbejdcngq\",\"provisioningState\":\"Failed\"},\"id\":\"akufgmjz\",\"name\":\"wr\",\"type\":\"grtwae\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); Replica response = manager.replicas() - .getWithResponse("gkopkwhojvpajqgx", "smocmbq", "qvmkcxo", com.azure.core.util.Context.NONE) + .getWithResponse("znkbykutwpfhpagm", "r", "kdsnfdsdoakgtdl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pvhelxprg", response.location()); + Assertions.assertEquals("kzevdlhewpusds", response.location()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreMockTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreMockTests.java index 0692bf8f21435..805a059175a91 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreMockTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ReplicasListByConfigurationStoreMockTests.java @@ -6,53 +6,34 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.appconfiguration.AppConfigurationManager; import com.azure.resourcemanager.appconfiguration.models.Replica; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ReplicasListByConfigurationStoreMockTests { @Test public void testListByConfigurationStore() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"location\":\"fouyf\",\"properties\":{\"endpoint\":\"cpwi\",\"provisioningState\":\"Succeeded\"},\"id\":\"qtmnubexkpzk\",\"name\":\"mond\",\"type\":\"mquxvypo\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"location\":\"bt\",\"properties\":{\"endpoint\":\"ra\",\"provisioningState\":\"Succeeded\"},\"id\":\"koowtl\",\"name\":\"nguxawqaldsy\",\"type\":\"uximerqfobw\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); AppConfigurationManager manager = AppConfigurationManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.replicas() - .listByConfigurationStore("vmbmp", "xmodf", "uefywsbpfvmwy", com.azure.core.util.Context.NONE); + .listByConfigurationStore("khnzbonlw", "toego", "dwbwhkszzcmrvexz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fouyf", response.iterator().next().location()); + Assertions.assertEquals("bt", response.iterator().next().location()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ResourceIdentityTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ResourceIdentityTests.java index df633975336ae..66e4888890a8e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ResourceIdentityTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ResourceIdentityTests.java @@ -15,21 +15,21 @@ public final class ResourceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceIdentity model = BinaryData.fromString("{\"type\":\"SystemAssigned," - + " UserAssigned\",\"userAssignedIdentities\":{\"aeqjhqjbasvms\":{\"principalId\":\"tzfkufubl\",\"clientId\":\"fxqeof\"},\"douskcqvkocrcjdk\":{\"principalId\":\"qulngsntnbybkzgc\",\"clientId\":\"wclxxwrl\"},\"p\":{\"principalId\":\"nh\",\"clientId\":\"njbiksqrglssain\"}},\"principalId\":\"nzl\",\"tenantId\":\"fmppe\"}") + ResourceIdentity model = BinaryData.fromString( + "{\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"rtihfxtijbpz\":{\"principalId\":\"xzdxtayrlhmwh\",\"clientId\":\"mrqobmtukknr\"}},\"principalId\":\"nwzsymg\",\"tenantId\":\"uf\"}") .toObject(ResourceIdentity.class); - Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceIdentity model = new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("aeqjhqjbasvms", new UserIdentity(), "douskcqvkocrcjdk", - new UserIdentity(), "p", new UserIdentity())); + ResourceIdentity model = new ResourceIdentity().withType(IdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("rtihfxtijbpz", new UserIdentity())); model = BinaryData.fromObject(model).toObject(ResourceIdentity.class); - Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); + Assertions.assertEquals(IdentityType.SYSTEM_ASSIGNED, model.type()); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ServiceSpecificationTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ServiceSpecificationTests.java index e5d731faf623b..defa4cd3557d3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ServiceSpecificationTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/ServiceSpecificationTests.java @@ -6,6 +6,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.appconfiguration.models.LogSpecification; +import com.azure.resourcemanager.appconfiguration.models.MetricDimension; import com.azure.resourcemanager.appconfiguration.models.MetricSpecification; import com.azure.resourcemanager.appconfiguration.models.ServiceSpecification; import java.util.Arrays; @@ -15,57 +16,115 @@ public final class ServiceSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceSpecification model = BinaryData.fromString( - "{\"logSpecifications\":[{\"name\":\"anyktzlcuiywg\",\"displayName\":\"wgndrvynhzgpp\",\"blobDuration\":\"cgyncocpecf\"},{\"name\":\"mcoo\",\"displayName\":\"xlzevgbmqjqabcy\",\"blobDuration\":\"ivkwlzuvccfwnfnb\"}],\"metricSpecifications\":[{\"name\":\"onlebxetqgtzxdpn\",\"displayName\":\"qqwx\",\"displayDescription\":\"feallnwsu\",\"unit\":\"snjampmng\",\"aggregationType\":\"scxaq\",\"internalMetricName\":\"ochcbonqvpkvl\",\"dimensions\":[],\"fillGapWithZero\":false},{\"name\":\"seiphe\",\"displayName\":\"lokeyy\",\"displayDescription\":\"nj\",\"unit\":\"lwtgrhpdj\",\"aggregationType\":\"umasxazjpq\",\"internalMetricName\":\"gual\",\"dimensions\":[],\"fillGapWithZero\":false}]}") + "{\"logSpecifications\":[{\"name\":\"xazjpqyegual\",\"displayName\":\"xxhejjzzvd\",\"blobDuration\":\"gwdslfhotwm\"},{\"name\":\"npwlbjnpg\",\"displayName\":\"ftadehxnltyfs\",\"blobDuration\":\"pusuesn\"},{\"name\":\"dejbavo\",\"displayName\":\"zdmohctbqvu\",\"blobDuration\":\"xdn\"},{\"name\":\"vo\",\"displayName\":\"ujjugwdkcglh\",\"blobDuration\":\"azjdyggd\"}],\"metricSpecifications\":[{\"name\":\"hbkuofqwey\",\"displayName\":\"menevfyexfwh\",\"displayDescription\":\"cibvyvdcsitynn\",\"unit\":\"mdectehfiqscjey\",\"aggregationType\":\"hezrkgq\",\"internalMetricName\":\"jrefovgmkqsle\",\"dimensions\":[{\"name\":\"yqjpkcatt\",\"displayName\":\"gjcrcczsqpjhvm\",\"internalName\":\"jvnysounqe\"},{\"name\":\"noae\",\"displayName\":\"fhyhltrpmopjmcma\",\"internalName\":\"okth\"},{\"name\":\"iuaod\",\"displayName\":\"cpkvxodp\",\"internalName\":\"zmyzydagf\"},{\"name\":\"xbezyiuokktwh\",\"displayName\":\"xw\",\"internalName\":\"wqsmbsur\"}],\"fillGapWithZero\":true},{\"name\":\"o\",\"displayName\":\"ocfs\",\"displayDescription\":\"s\",\"unit\":\"ddystkiiuxhqy\",\"aggregationType\":\"xorrqnb\",\"internalMetricName\":\"czvyifq\",\"dimensions\":[{\"name\":\"vjsllrmvvdfw\",\"displayName\":\"kpnpulexxbczwtr\",\"internalName\":\"iqzbq\"},{\"name\":\"sovmyokacspkwl\",\"displayName\":\"dobpxjmflbvvn\",\"internalName\":\"rkcciwwzjuqk\"}],\"fillGapWithZero\":false},{\"name\":\"jiwkuofoskghsau\",\"displayName\":\"mjmvxieduugidyjr\",\"displayDescription\":\"byao\",\"unit\":\"e\",\"aggregationType\":\"sonpclhocohs\",\"internalMetricName\":\"ev\",\"dimensions\":[{\"name\":\"zfbuhf\",\"displayName\":\"faxkffeii\",\"internalName\":\"lvmezyvshxmzsbbz\"},{\"name\":\"gigr\",\"displayName\":\"burvjxxjnspy\",\"internalName\":\"tko\"}],\"fillGapWithZero\":true},{\"name\":\"uknvudwti\",\"displayName\":\"bldngkpoc\",\"displayDescription\":\"azyxoegukg\",\"unit\":\"piu\",\"aggregationType\":\"ygevqzntypmrbpiz\",\"internalMetricName\":\"r\",\"dimensions\":[{\"name\":\"pyd\",\"displayName\":\"yhxdeoejzicwi\",\"internalName\":\"jttgzf\"},{\"name\":\"shcbkhajdeyeamdp\",\"displayName\":\"g\",\"internalName\":\"pbuxwgipwhon\"},{\"name\":\"kgshwa\",\"displayName\":\"ixzbinjeputtmryw\",\"internalName\":\"zoqftiyqzrnkcqvy\"},{\"name\":\"whzlsicohoq\",\"displayName\":\"wvl\",\"internalName\":\"avwhheunm\"}],\"fillGapWithZero\":true}]}") .toObject(ServiceSpecification.class); - Assertions.assertEquals("anyktzlcuiywg", model.logSpecifications().get(0).name()); - Assertions.assertEquals("wgndrvynhzgpp", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("cgyncocpecf", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("onlebxetqgtzxdpn", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("qqwx", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("feallnwsu", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("snjampmng", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("scxaq", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("ochcbonqvpkvl", model.metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).fillGapWithZero()); + Assertions.assertEquals("xazjpqyegual", model.logSpecifications().get(0).name()); + Assertions.assertEquals("xxhejjzzvd", model.logSpecifications().get(0).displayName()); + Assertions.assertEquals("gwdslfhotwm", model.logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("hbkuofqwey", model.metricSpecifications().get(0).name()); + Assertions.assertEquals("menevfyexfwh", model.metricSpecifications().get(0).displayName()); + Assertions.assertEquals("cibvyvdcsitynn", model.metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("mdectehfiqscjey", model.metricSpecifications().get(0).unit()); + Assertions.assertEquals("hezrkgq", model.metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("jrefovgmkqsle", model.metricSpecifications().get(0).internalMetricName()); + Assertions.assertEquals("yqjpkcatt", model.metricSpecifications().get(0).dimensions().get(0).name()); + Assertions.assertEquals("gjcrcczsqpjhvm", + model.metricSpecifications().get(0).dimensions().get(0).displayName()); + Assertions.assertEquals("jvnysounqe", model.metricSpecifications().get(0).dimensions().get(0).internalName()); + Assertions.assertEquals(true, model.metricSpecifications().get(0).fillGapWithZero()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceSpecification model = new ServiceSpecification() - .withLogSpecifications(Arrays.asList( - new LogSpecification().withName("anyktzlcuiywg") - .withDisplayName("wgndrvynhzgpp") - .withBlobDuration("cgyncocpecf"), - new LogSpecification().withName("mcoo") - .withDisplayName("xlzevgbmqjqabcy") - .withBlobDuration("ivkwlzuvccfwnfnb"))) + ServiceSpecification model = new ServiceSpecification().withLogSpecifications(Arrays.asList( + new LogSpecification().withName("xazjpqyegual") + .withDisplayName("xxhejjzzvd") + .withBlobDuration("gwdslfhotwm"), + new LogSpecification().withName("npwlbjnpg").withDisplayName("ftadehxnltyfs").withBlobDuration("pusuesn"), + new LogSpecification().withName("dejbavo").withDisplayName("zdmohctbqvu").withBlobDuration("xdn"), + new LogSpecification().withName("vo").withDisplayName("ujjugwdkcglh").withBlobDuration("azjdyggd"))) .withMetricSpecifications(Arrays.asList( - new MetricSpecification().withName("onlebxetqgtzxdpn") - .withDisplayName("qqwx") - .withDisplayDescription("feallnwsu") - .withUnit("snjampmng") - .withAggregationType("scxaq") - .withInternalMetricName("ochcbonqvpkvl") - .withDimensions(Arrays.asList()) + new MetricSpecification().withName("hbkuofqwey") + .withDisplayName("menevfyexfwh") + .withDisplayDescription("cibvyvdcsitynn") + .withUnit("mdectehfiqscjey") + .withAggregationType("hezrkgq") + .withInternalMetricName("jrefovgmkqsle") + .withDimensions(Arrays.asList(new MetricDimension() + .withName("yqjpkcatt") + .withDisplayName("gjcrcczsqpjhvm") + .withInternalName("jvnysounqe"), + new MetricDimension().withName("noae") + .withDisplayName("fhyhltrpmopjmcma") + .withInternalName("okth"), + new MetricDimension() + .withName("iuaod") + .withDisplayName("cpkvxodp") + .withInternalName("zmyzydagf"), + new MetricDimension().withName("xbezyiuokktwh") + .withDisplayName("xw") + .withInternalName("wqsmbsur"))) + .withFillGapWithZero(true), + new MetricSpecification().withName("o") + .withDisplayName("ocfs") + .withDisplayDescription("s") + .withUnit("ddystkiiuxhqy") + .withAggregationType("xorrqnb") + .withInternalMetricName("czvyifq") + .withDimensions(Arrays.asList( + new MetricDimension().withName("vjsllrmvvdfw") + .withDisplayName("kpnpulexxbczwtr") + .withInternalName("iqzbq"), + new MetricDimension().withName("sovmyokacspkwl") + .withDisplayName("dobpxjmflbvvn") + .withInternalName("rkcciwwzjuqk"))) .withFillGapWithZero(false), - new MetricSpecification().withName("seiphe") - .withDisplayName("lokeyy") - .withDisplayDescription("nj") - .withUnit("lwtgrhpdj") - .withAggregationType("umasxazjpq") - .withInternalMetricName("gual") - .withDimensions(Arrays.asList()) - .withFillGapWithZero(false))); + new MetricSpecification().withName("jiwkuofoskghsau") + .withDisplayName("mjmvxieduugidyjr") + .withDisplayDescription("byao") + .withUnit("e") + .withAggregationType("sonpclhocohs") + .withInternalMetricName("ev") + .withDimensions(Arrays.asList( + new MetricDimension().withName("zfbuhf") + .withDisplayName("faxkffeii") + .withInternalName("lvmezyvshxmzsbbz"), + new MetricDimension().withName("gigr").withDisplayName("burvjxxjnspy").withInternalName("tko"))) + .withFillGapWithZero(true), + new MetricSpecification().withName("uknvudwti") + .withDisplayName("bldngkpoc") + .withDisplayDescription("azyxoegukg") + .withUnit("piu") + .withAggregationType("ygevqzntypmrbpiz") + .withInternalMetricName("r") + .withDimensions(Arrays.asList( + new MetricDimension().withName("pyd") + .withDisplayName("yhxdeoejzicwi") + .withInternalName("jttgzf"), + new MetricDimension().withName("shcbkhajdeyeamdp") + .withDisplayName("g") + .withInternalName("pbuxwgipwhon"), + new MetricDimension().withName("kgshwa") + .withDisplayName("ixzbinjeputtmryw") + .withInternalName("zoqftiyqzrnkcqvy"), + new MetricDimension().withName("whzlsicohoq") + .withDisplayName("wvl") + .withInternalName("avwhheunm"))) + .withFillGapWithZero(true))); model = BinaryData.fromObject(model).toObject(ServiceSpecification.class); - Assertions.assertEquals("anyktzlcuiywg", model.logSpecifications().get(0).name()); - Assertions.assertEquals("wgndrvynhzgpp", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("cgyncocpecf", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("onlebxetqgtzxdpn", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("qqwx", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("feallnwsu", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("snjampmng", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals("scxaq", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("ochcbonqvpkvl", model.metricSpecifications().get(0).internalMetricName()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).fillGapWithZero()); + Assertions.assertEquals("xazjpqyegual", model.logSpecifications().get(0).name()); + Assertions.assertEquals("xxhejjzzvd", model.logSpecifications().get(0).displayName()); + Assertions.assertEquals("gwdslfhotwm", model.logSpecifications().get(0).blobDuration()); + Assertions.assertEquals("hbkuofqwey", model.metricSpecifications().get(0).name()); + Assertions.assertEquals("menevfyexfwh", model.metricSpecifications().get(0).displayName()); + Assertions.assertEquals("cibvyvdcsitynn", model.metricSpecifications().get(0).displayDescription()); + Assertions.assertEquals("mdectehfiqscjey", model.metricSpecifications().get(0).unit()); + Assertions.assertEquals("hezrkgq", model.metricSpecifications().get(0).aggregationType()); + Assertions.assertEquals("jrefovgmkqsle", model.metricSpecifications().get(0).internalMetricName()); + Assertions.assertEquals("yqjpkcatt", model.metricSpecifications().get(0).dimensions().get(0).name()); + Assertions.assertEquals("gjcrcczsqpjhvm", + model.metricSpecifications().get(0).dimensions().get(0).displayName()); + Assertions.assertEquals("jvnysounqe", model.metricSpecifications().get(0).dimensions().get(0).internalName()); + Assertions.assertEquals(true, model.metricSpecifications().get(0).fillGapWithZero()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/SkuTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/SkuTests.java index ef4d3719aa53f..ba509821738fa 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/SkuTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/SkuTests.java @@ -11,14 +11,14 @@ public final class SkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Sku model = BinaryData.fromString("{\"name\":\"adgakeqsrxybz\"}").toObject(Sku.class); - Assertions.assertEquals("adgakeqsrxybz", model.name()); + Sku model = BinaryData.fromString("{\"name\":\"datscmd\"}").toObject(Sku.class); + Assertions.assertEquals("datscmd", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Sku model = new Sku().withName("adgakeqsrxybz"); + Sku model = new Sku().withName("datscmd"); model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals("adgakeqsrxybz", model.name()); + Assertions.assertEquals("datscmd", model.name()); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/UserIdentityTests.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/UserIdentityTests.java index 8866e13698a3d..6abceb6522178 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/UserIdentityTests.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/test/java/com/azure/resourcemanager/appconfiguration/generated/UserIdentityTests.java @@ -10,7 +10,7 @@ public final class UserIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserIdentity model = BinaryData.fromString("{\"principalId\":\"vmgxsab\",\"clientId\":\"qduujitcjczdz\"}") + UserIdentity model = BinaryData.fromString("{\"principalId\":\"zk\",\"clientId\":\"dbihanufhfcbj\"}") .toObject(UserIdentity.class); } From f5abb4ca45f6c43b5dc1d45c27947d595322946c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:54:53 -0800 Subject: [PATCH 11/44] Increment package versions for terraform releases (#43024) --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-terraform/CHANGELOG.md | 10 ++++++++++ sdk/terraform/azure-resourcemanager-terraform/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 27037fcc5ce16..6bfa2b0d78251 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -475,7 +475,7 @@ com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0 com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-containerorchestratorruntime;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-terraform;1.0.0-beta.1;1.0.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-terraform;1.0.0-beta.1;1.0.0-beta.2 com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1 com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1 io.clientcore:clientcore-parent;1.0.0-beta.1;1.0.0-beta.1 diff --git a/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md b/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md index 28d5f2c35daa6..024cc8c563dd2 100644 --- a/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md +++ b/sdk/terraform/azure-resourcemanager-terraform/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.1 (2024-11-20) - Azure Resource Manager Azure Terraform client library for Java. This package contains Microsoft Azure SDK for Azure Terraform Management SDK. The Azure Terraform management API provides a RESTful set of web services that used to manage your Azure Terraform resources. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/terraform/azure-resourcemanager-terraform/pom.xml b/sdk/terraform/azure-resourcemanager-terraform/pom.xml index 53685093524c9..67b02dabb7988 100644 --- a/sdk/terraform/azure-resourcemanager-terraform/pom.xml +++ b/sdk/terraform/azure-resourcemanager-terraform/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-terraform - 1.0.0-beta.1 + 1.0.0-beta.2 jar Microsoft Azure SDK for Azure Terraform Management From a2c2408e80d7ec24249419704ad3dba774c444a7 Mon Sep 17 00:00:00 2001 From: "Hong Li(MSFT)" <74638143+v-hongli1@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:16:35 +0800 Subject: [PATCH 12/44] mgmt, local generation for Container Service - 2024-09-01 (#42915) * mgmt, local generation for containerservice --- sdk/resourcemanager/api-specs.json | 2 +- .../CHANGELOG.md | 8 +- .../assets.json | 2 +- .../fluent/AgentPoolsClient.java | 64 ++- .../fluent/ManagedClustersClient.java | 126 +++++- .../fluent/models/AgentPoolInner.java | 11 + ...agedClusterAgentPoolProfileProperties.java | 35 +- .../fluent/models/ManagedClusterInner.java | 55 ++- .../models/ManagedClusterProperties.java | 48 ++- .../implementation/AgentPoolsClientImpl.java | 223 +++++++---- .../implementation/KubernetesClusterImpl.java | 3 +- .../implementation/MachinesClientImpl.java | 8 +- .../MaintenanceConfigurationsClientImpl.java | 16 +- .../ManagedClustersClientImpl.java | 379 +++++++++++++----- .../implementation/OperationsClientImpl.java | 4 +- .../PrivateEndpointConnectionsClientImpl.java | 16 +- .../PrivateLinkResourcesClientImpl.java | 4 +- ...esolvePrivateLinkServiceIdsClientImpl.java | 4 +- .../implementation/SnapshotsClientImpl.java | 24 +- .../TrustedAccessRoleBindingsClientImpl.java | 16 +- .../TrustedAccessRolesClientImpl.java | 4 +- .../models/AdvancedNetworking.java | 164 ++++++++ .../AdvancedNetworkingObservability.java | 96 +++++ .../models/AdvancedNetworkingSecurity.java | 96 +++++ .../ContainerServiceNetworkProfile.java | 34 ++ .../ManagedClusterAgentPoolProfile.java | 23 +- ...anagedClusterNodeResourceGroupProfile.java | 100 +++++ .../models/RestrictionLevel.java | 51 +++ ...AgentPoolsAbortLatestOperationSamples.java | 2 +- .../AgentPoolsCreateOrUpdateSamples.java | 76 ++-- .../AgentPoolsDeleteMachinesSamples.java | 2 +- .../generated/AgentPoolsDeleteSamples.java | 4 +- ...sGetAvailableAgentPoolVersionsSamples.java | 2 +- .../generated/AgentPoolsGetSamples.java | 2 +- .../AgentPoolsGetUpgradeProfileSamples.java | 2 +- .../generated/AgentPoolsListSamples.java | 2 +- ...ntPoolsUpgradeNodeImageVersionSamples.java | 2 +- .../generated/MachinesGetSamples.java | 2 +- .../generated/MachinesListSamples.java | 2 +- ...ceConfigurationsCreateOrUpdateSamples.java | 4 +- ...aintenanceConfigurationsDeleteSamples.java | 4 +- .../MaintenanceConfigurationsGetSamples.java | 4 +- ...igurationsListByManagedClusterSamples.java | 4 +- ...edClustersAbortLatestOperationSamples.java | 2 +- .../ManagedClustersCreateOrUpdateSamples.java | 108 ++--- .../ManagedClustersDeleteSamples.java | 4 +- ...anagedClustersGetAccessProfileSamples.java | 2 +- ...agedClustersGetByResourceGroupSamples.java | 2 +- ...anagedClustersGetCommandResultSamples.java | 4 +- ...ClustersGetMeshRevisionProfileSamples.java | 2 +- ...dClustersGetMeshUpgradeProfileSamples.java | 2 +- ...nagedClustersGetUpgradeProfileSamples.java | 2 +- ...gedClustersListByResourceGroupSamples.java | 2 +- ...ersListClusterAdminCredentialsSamples.java | 2 +- ...usterMonitoringUserCredentialsSamples.java | 2 +- ...tersListClusterUserCredentialsSamples.java | 2 +- ...ClustersListKubernetesVersionsSamples.java | 2 +- ...ustersListMeshRevisionProfilesSamples.java | 2 +- ...lustersListMeshUpgradeProfilesSamples.java | 2 +- ...ndNetworkDependenciesEndpointsSamples.java | 2 +- .../generated/ManagedClustersListSamples.java | 2 +- ...ManagedClustersResetAadProfileSamples.java | 2 +- ...rsResetServicePrincipalProfileSamples.java | 2 +- ...stersRotateClusterCertificatesSamples.java | 2 +- ...otateServiceAccountSigningKeysSamples.java | 2 +- .../ManagedClustersRunCommandSamples.java | 2 +- .../ManagedClustersStartSamples.java | 2 +- .../generated/ManagedClustersStopSamples.java | 2 +- .../ManagedClustersUpdateTagsSamples.java | 4 +- .../generated/OperationsListSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- ...ivateEndpointConnectionsUpdateSamples.java | 2 +- .../PrivateLinkResourcesListSamples.java | 2 +- ...esolvePrivateLinkServiceIdPostSamples.java | 2 +- .../SnapshotsCreateOrUpdateSamples.java | 2 +- .../generated/SnapshotsDeleteSamples.java | 2 +- .../SnapshotsGetByResourceGroupSamples.java | 2 +- .../SnapshotsListByResourceGroupSamples.java | 2 +- .../generated/SnapshotsListSamples.java | 2 +- .../generated/SnapshotsUpdateTagsSamples.java | 2 +- ...cessRoleBindingsCreateOrUpdateSamples.java | 2 +- ...rustedAccessRoleBindingsDeleteSamples.java | 2 +- .../TrustedAccessRoleBindingsGetSamples.java | 2 +- .../TrustedAccessRoleBindingsListSamples.java | 2 +- .../TrustedAccessRolesListSamples.java | 2 +- 87 files changed, 1521 insertions(+), 409 deletions(-) create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index e07726d013c72..9b923d0bf874b 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -70,7 +70,7 @@ "dir": "azure-resourcemanager-containerservice", "source": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", "package": "com.azure.resourcemanager.containerservice", - "args": "--tag=package-2024-08 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" + "args": "--tag=package-2024-09 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" }, "containerservice-hybrid": { "dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice", diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md index 08ee96f2d8bb0..60b50cb0be449 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md @@ -2,13 +2,11 @@ ## 2.45.0-beta.1 (Unreleased) -### Features Added - -### Breaking Changes +### Other Changes -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Updated `api-version` to `2024-09-01`. ## 2.44.0 (2024-10-25) diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json index 9654394251d3f..7a80721303494 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/resourcemanager/azure-resourcemanager-containerservice", - "Tag": "java/resourcemanager/azure-resourcemanager-containerservice_11db77097a" + "Tag": "java/resourcemanager/azure-resourcemanager-containerservice_ac00fa0812" } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java index 74eaf0c6547f0..f1ec76e42adb5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java @@ -262,6 +262,8 @@ Response getWithResponse(String resourceGroupName, String resour * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -269,7 +271,25 @@ Response getWithResponse(String resourceGroupName, String resour */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, AgentPoolInner parameters); + String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch); + + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates an agent pool in the specified managed cluster. @@ -310,6 +330,8 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -318,7 +340,26 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AgentPoolInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context); + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context); + + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates an agent pool in the specified managed cluster. @@ -359,6 +400,8 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -367,7 +410,7 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, - AgentPoolInner parameters, Context context); + AgentPoolInner parameters, String ifMatch, String ifNoneMatch, Context context); /** * Deletes an agent pool in the specified managed cluster. @@ -377,6 +420,7 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -384,7 +428,7 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget); + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch); /** * Deletes an agent pool in the specified managed cluster. @@ -394,6 +438,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -401,7 +446,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget); + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch); /** * Deletes an agent pool in the specified managed cluster. @@ -440,6 +485,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -448,7 +494,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget, Context context); + Boolean ignorePodDisruptionBudget, String ifMatch, Context context); /** * Deletes an agent pool in the specified managed cluster. @@ -458,6 +504,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -465,7 +512,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget); + Boolean ignorePodDisruptionBudget, String ifMatch); /** * Deletes an agent pool in the specified managed cluster. @@ -502,6 +549,7 @@ Mono deleteAsync(String resourceGroupName, String resourceName, String age * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -509,7 +557,7 @@ Mono deleteAsync(String resourceGroupName, String resourceName, String age */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String resourceName, String agentPoolName, Boolean ignorePodDisruptionBudget, - Context context); + String ifMatch, Context context); /** * Gets the upgrade profile for an agent pool. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java index f8907436dddef..1e03332b8dffe 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java @@ -552,6 +552,8 @@ Response getByResourceGroupWithResponse(String resourceGrou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -559,7 +561,24 @@ Response getByResourceGroupWithResponse(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - ManagedClusterInner parameters); + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch); + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates a managed cluster. @@ -597,6 +616,8 @@ SyncPoller, ManagedClusterInner> beginCreateOrUp * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -605,7 +626,24 @@ SyncPoller, ManagedClusterInner> beginCreateOrUp */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedClusterInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, ManagedClusterInner parameters, Context context); + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context); + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates a managed cluster. @@ -642,6 +680,8 @@ Mono createOrUpdateAsync(String resourceGroupName, String r * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -650,7 +690,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String r */ @ServiceMethod(returns = ReturnType.SINGLE) ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName, ManagedClusterInner parameters, - Context context); + String ifMatch, String ifNoneMatch, Context context); /** * Updates tags on a managed cluster. @@ -658,6 +698,7 @@ ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -665,7 +706,23 @@ ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, - TagsObject parameters); + TagsObject parameters, String ifMatch); + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ManagedClusterInner> beginUpdateTagsAsync(String resourceGroupName, + String resourceName, TagsObject parameters, String ifMatch); /** * Updates tags on a managed cluster. @@ -703,6 +760,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -711,7 +769,23 @@ SyncPoller, ManagedClusterInner> beginUpdateTags */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedClusterInner> beginUpdateTags(String resourceGroupName, - String resourceName, TagsObject parameters, Context context); + String resourceName, TagsObject parameters, String ifMatch, Context context); + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters, + String ifMatch); /** * Updates tags on a managed cluster. @@ -747,6 +821,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -754,7 +829,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags * @return managed cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters, + ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters, String ifMatch, Context context); /** @@ -762,13 +837,29 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName); + Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String ifMatch); + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String ifMatch); /** * Deletes a managed cluster. @@ -801,6 +892,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -808,7 +900,22 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, + Context context); + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch); /** * Deletes a managed cluster. @@ -840,13 +947,14 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String resourceName, Context context); + void delete(String resourceGroupName, String resourceName, String ifMatch, Context context); /** * Reset the Service Principal Profile of a managed cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java index 3f30ffb77a536..c9507d7356dff 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java @@ -95,6 +95,17 @@ public AgentPoolInner withId(String id) { return this; } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + public String etag() { + return this.innerProperties() == null ? null : this.innerProperties().etag(); + } + /** * Get the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java index 9821d875ef72d..fc45544e8e1aa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java @@ -38,6 +38,13 @@ @Fluent public class ManagedClusterAgentPoolProfileProperties implements JsonSerializable { + /* + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is + * updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable + * optimistic concurrency per the normal etag convention. + */ + private String etag; + /* * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) * for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. @@ -309,6 +316,30 @@ public class ManagedClusterAgentPoolProfileProperties public ManagedClusterAgentPoolProfileProperties() { } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Set the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @param etag the etag value to set. + * @return the ManagedClusterAgentPoolProfileProperties object itself. + */ + ManagedClusterAgentPoolProfileProperties withEtag(String etag) { + this.etag = etag; + return this; + } + /** * Get the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default @@ -1415,7 +1446,9 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR String fieldName = reader.getFieldName(); reader.nextToken(); - if ("count".equals(fieldName)) { + if ("eTag".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.etag = reader.getString(); + } else if ("count".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.count = reader.getNullable(JsonReader::getInt); } else if ("vmSize".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.vmSize = reader.getString(); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java index 7af65f6056f28..bc6ad097e1a52 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java @@ -25,6 +25,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterNodeResourceGroupProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; @@ -47,6 +48,13 @@ */ @Fluent public final class ManagedClusterInner extends Resource { + /* + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is + * updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable + * optimistic concurrency per the normal etag convention. + */ + private String etag; + /* * The managed cluster SKU. */ @@ -93,6 +101,17 @@ public final class ManagedClusterInner extends Resource { public ManagedClusterInner() { } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + /** * Get the sku property: The managed cluster SKU. * @@ -560,6 +579,30 @@ public ManagedClusterInner withNodeResourceGroup(String nodeResourceGroup) { return this; } + /** + * Get the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @return the nodeResourceGroupProfile value. + */ + public ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile() { + return this.innerProperties() == null ? null : this.innerProperties().nodeResourceGroupProfile(); + } + + /** + * Set the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @param nodeResourceGroupProfile the nodeResourceGroupProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner + withNodeResourceGroupProfile(ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withNodeResourceGroupProfile(nodeResourceGroupProfile); + return this; + } + /** * Get the enableRbac property: Whether to enable Kubernetes Role-Based Access Control. * @@ -799,7 +842,10 @@ public ManagedClusterInner withDiskEncryptionSetId(String diskEncryptionSetId) { } /** - * Get the identityProfile property: Identities associated with the cluster. + * Get the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @return the identityProfile value. */ @@ -808,7 +854,10 @@ public Map identityProfile() { } /** - * Set the identityProfile property: Identities associated with the cluster. + * Set the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @param identityProfile the identityProfile value to set. * @return the ManagedClusterInner object itself. @@ -1151,6 +1200,8 @@ public static ManagedClusterInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedManagedClusterInner.withTags(tags); + } else if ("eTag".equals(fieldName)) { + deserializedManagedClusterInner.etag = reader.getString(); } else if ("sku".equals(fieldName)) { deserializedManagedClusterInner.sku = ManagedClusterSku.fromJson(reader); } else if ("extendedLocation".equals(fieldName)) { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java index f7a59a636dafd..bf7221e10ef51 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java @@ -22,6 +22,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterNodeResourceGroupProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; @@ -143,6 +144,11 @@ public final class ManagedClusterProperties implements JsonSerializable identityProfile; @@ -579,6 +587,27 @@ public ManagedClusterProperties withNodeResourceGroup(String nodeResourceGroup) return this; } + /** + * Get the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @return the nodeResourceGroupProfile value. + */ + public ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile() { + return this.nodeResourceGroupProfile; + } + + /** + * Set the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @param nodeResourceGroupProfile the nodeResourceGroupProfile value to set. + * @return the ManagedClusterProperties object itself. + */ + public ManagedClusterProperties + withNodeResourceGroupProfile(ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile) { + this.nodeResourceGroupProfile = nodeResourceGroupProfile; + return this; + } + /** * Get the enableRbac property: Whether to enable Kubernetes Role-Based Access Control. * @@ -789,7 +818,10 @@ public ManagedClusterProperties withDiskEncryptionSetId(String diskEncryptionSet } /** - * Get the identityProfile property: Identities associated with the cluster. + * Get the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @return the identityProfile value. */ @@ -798,7 +830,10 @@ public Map identityProfile() { } /** - * Set the identityProfile property: Identities associated with the cluster. + * Set the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @param identityProfile the identityProfile value to set. * @return the ManagedClusterProperties object itself. @@ -1077,6 +1112,9 @@ public void validate() { if (oidcIssuerProfile() != null) { oidcIssuerProfile().validate(); } + if (nodeResourceGroupProfile() != null) { + nodeResourceGroupProfile().validate(); + } if (networkProfile() != null) { networkProfile().validate(); } @@ -1149,6 +1187,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("podIdentityProfile", this.podIdentityProfile); jsonWriter.writeJsonField("oidcIssuerProfile", this.oidcIssuerProfile); jsonWriter.writeStringField("nodeResourceGroup", this.nodeResourceGroup); + jsonWriter.writeJsonField("nodeResourceGroupProfile", this.nodeResourceGroupProfile); jsonWriter.writeBooleanField("enableRBAC", this.enableRbac); jsonWriter.writeStringField("supportPlan", this.supportPlan == null ? null : this.supportPlan.toString()); jsonWriter.writeBooleanField("enablePodSecurityPolicy", this.enablePodSecurityPolicy); @@ -1235,6 +1274,9 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO = ManagedClusterOidcIssuerProfile.fromJson(reader); } else if ("nodeResourceGroup".equals(fieldName)) { deserializedManagedClusterProperties.nodeResourceGroup = reader.getString(); + } else if ("nodeResourceGroupProfile".equals(fieldName)) { + deserializedManagedClusterProperties.nodeResourceGroupProfile + = ManagedClusterNodeResourceGroupProfile.fromJson(reader); } else if ("enableRBAC".equals(fieldName)) { deserializedManagedClusterProperties.enableRbac = reader.getNullable(JsonReader::getBoolean); } else if ("supportPlan".equals(fieldName)) { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java index 5643dcb2b12a3..7c0c5af65af9e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java @@ -108,7 +108,8 @@ Mono> get(@HostParam("$host") String endpoint, Mono>> createOrUpdate(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("agentPoolName") String agentPoolName, @BodyParam("application/json") AgentPoolInner parameters, + @PathParam("agentPoolName") String agentPoolName, @HeaderParam("If-Match") String ifMatch, + @HeaderParam("If-None-Match") String ifNoneMatch, @BodyParam("application/json") AgentPoolInner parameters, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -120,7 +121,7 @@ Mono>> delete(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("agentPoolName") String agentPoolName, @QueryParam("ignore-pod-disruption-budget") Boolean ignorePodDisruptionBudget, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("If-Match") String ifMatch, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default") @@ -205,7 +206,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, @@ -250,7 +251,7 @@ private Mono>> abortLatestOperationWithResponseAsync(S if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -463,7 +464,7 @@ private Mono> listSinglePageAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -503,7 +504,7 @@ private Mono> listSinglePageAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -610,7 +611,7 @@ public Mono> getWithResponseAsync(String resourceGroupN if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -652,7 +653,7 @@ private Mono> getWithResponseAsync(String resourceGroup if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -717,6 +718,8 @@ public AgentPoolInner get(String resourceGroupName, String resourceName, String * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -724,7 +727,7 @@ public AgentPoolInner get(String resourceGroupName, String resourceName, String */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters) { + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -748,12 +751,12 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, parameters, accept, - context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, ifMatch, ifNoneMatch, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -764,6 +767,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -772,7 +777,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context) { + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -796,11 +802,34 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, agentPoolName, parameters, accept, context); + resourceGroupName, resourceName, agentPoolName, ifMatch, ifNoneMatch, parameters, accept, context); + } + + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + AgentPoolInner.class, AgentPoolInner.class, this.client.getContext()); } /** @@ -818,8 +847,10 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, agentPoolName, parameters); + final String ifMatch = null; + final String ifNoneMatch = null; + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, parameters, ifMatch, ifNoneMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, this.client.getContext()); } @@ -831,6 +862,8 @@ public PollerFlux, AgentPoolInner> beginCreateOrUpdat * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -839,10 +872,11 @@ public PollerFlux, AgentPoolInner> beginCreateOrUpdat */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context) { + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, agentPoolName, parameters, context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, parameters, ifMatch, ifNoneMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, context); } @@ -862,7 +896,10 @@ private PollerFlux, AgentPoolInner> beginCreateOrUpda @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AgentPoolInner> beginCreateOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters) + final String ifMatch = null; + final String ifNoneMatch = null; + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch) .getSyncPoller(); } @@ -873,6 +910,8 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -881,11 +920,35 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AgentPoolInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, context) + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch, + context) .getSyncPoller(); } + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolInner parameters, String ifMatch, String ifNoneMatch) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); + } + /** * Creates or updates an agent pool in the specified managed cluster. * @@ -901,8 +964,10 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat @ServiceMethod(returns = ReturnType.SINGLE) public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + final String ifMatch = null; + final String ifNoneMatch = null; + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -912,6 +977,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, String * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -920,9 +987,9 @@ public Mono createOrUpdateAsync(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String agentPoolName, AgentPoolInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); + String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, + ifNoneMatch, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -940,7 +1007,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters).block(); + final String ifMatch = null; + final String ifNoneMatch = null; + return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch) + .block(); } /** @@ -950,6 +1020,8 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -958,8 +1030,9 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa */ @ServiceMethod(returns = ReturnType.SINGLE) public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, - AgentPoolInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, context).block(); + AgentPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch, + context).block(); } /** @@ -970,6 +1043,7 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -977,7 +1051,7 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget) { + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -996,12 +1070,12 @@ public Mono>> deleteWithResponseAsync(String resourceG if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, + ignorePodDisruptionBudget, ifMatch, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1013,6 +1087,7 @@ public Mono>> deleteWithResponseAsync(String resourceG * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1021,7 +1096,7 @@ public Mono>> deleteWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget, Context context) { + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1040,11 +1115,11 @@ private Mono>> deleteWithResponseAsync(String resource if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, agentPoolName, ignorePodDisruptionBudget, accept, context); + resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, accept, context); } /** @@ -1055,6 +1130,7 @@ private Mono>> deleteWithResponseAsync(String resource * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1062,9 +1138,9 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget); + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, + ignorePodDisruptionBudget, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1084,8 +1160,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget); + final String ifMatch = null; + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, + ignorePodDisruptionBudget, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1098,6 +1175,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1106,10 +1184,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget, Context context) { + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, - ignorePodDisruptionBudget, context); + ignorePodDisruptionBudget, ifMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1129,7 +1207,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - return this.beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget) + final String ifMatch = null; + return this.beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch) .getSyncPoller(); } @@ -1141,6 +1220,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1149,8 +1229,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, context) + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { + return this + .beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, + context) .getSyncPoller(); } @@ -1162,6 +1244,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1169,8 +1252,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget) { - return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget).last() + Boolean ignorePodDisruptionBudget, String ifMatch) { + return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1188,7 +1272,9 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget).last() + final String ifMatch = null; + return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1200,6 +1286,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1208,10 +1295,9 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -1227,7 +1313,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget).block(); + final String ifMatch = null; + deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch).block(); } /** @@ -1238,6 +1325,7 @@ public void delete(String resourceGroupName, String resourceName, String agentPo * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1245,8 +1333,9 @@ public void delete(String resourceGroupName, String resourceName, String agentPo */ @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget, Context context) { - deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, context).block(); + Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { + deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, context) + .block(); } /** @@ -1282,7 +1371,7 @@ public Mono> getUpgradeProfileWithRespons if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -1324,7 +1413,7 @@ private Mono> getUpgradeProfileWithRespon if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1422,7 +1511,7 @@ public Mono>> deleteMachinesWithResponseAsync(String r } else { machines.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.deleteMachines(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, machines, accept, context)) @@ -1468,7 +1557,7 @@ private Mono>> deleteMachinesWithResponseAsync(String } else { machines.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.deleteMachines(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1663,7 +1752,7 @@ public void deleteMachines(String resourceGroupName, String resourceName, String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -1704,7 +1793,7 @@ public void deleteMachines(String resourceGroupName, String resourceName, String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -1806,7 +1895,7 @@ public Mono>> upgradeNodeImageVersionWithResponseAsync if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, @@ -1851,7 +1940,7 @@ private Mono>> upgradeNodeImageVersionWithResponseAsyn if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java index 529ba97817bea..cddd98a137f9b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java @@ -323,7 +323,8 @@ public Accepted beginCreateAgentPool(String agentPoolName, AgentPoolD () -> this.manager() .serviceClient() .getAgentPools() - .createOrUpdateWithResponseAsync(resourceGroupName(), name(), agentPoolName, agentPool.innerModel()) + .createOrUpdateWithResponseAsync(resourceGroupName(), name(), agentPoolName, agentPool.innerModel(), + null, null) .block(), AgentPoolDataImpl::new, AgentPoolInner.class, null, Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java index 3d8aa9abf87d5..101145a924dcc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java @@ -121,7 +121,7 @@ private Mono> listSinglePageAsync(String resourceGro if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -165,7 +165,7 @@ private Mono> listSinglePageAsync(String resourceGro if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -282,7 +282,7 @@ public Mono> getWithResponseAsync(String resourceGroupNam if (machineName == null) { return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -328,7 +328,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa if (machineName == null) { return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java index 71a92d360881e..0fb94a5337e00 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java @@ -141,7 +141,7 @@ Mono> listByManagedClusterNext( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, @@ -181,7 +181,7 @@ Mono> listByManagedClusterNext( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -296,7 +296,7 @@ public Mono> getWithResponseAsync(String if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -338,7 +338,7 @@ private Mono> getWithResponseAsync(Strin if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -436,7 +436,7 @@ public Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, configName, parameters, accept, context)) @@ -483,7 +483,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -582,7 +582,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -623,7 +623,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java index d43c0c08d49fc..2ac99e9f55767 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java @@ -180,6 +180,7 @@ Mono> getByResourceGroup(@HostParam("$host") Strin Mono>> createOrUpdate(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @BodyParam("application/json") ManagedClusterInner parameters, @HeaderParam("Accept") String accept, Context context); @@ -190,8 +191,8 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo Mono>> updateTags(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") TagsObject parameters, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}") @@ -200,7 +201,7 @@ Mono>> updateTags(@HostParam("$host") String endpoint, Mono>> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("If-Match") String ifMatch, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile") @@ -398,7 +399,7 @@ public Mono> listKubernetesVersionsWi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, @@ -434,7 +435,7 @@ private Mono> listKubernetesVersionsW if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -512,7 +513,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -542,7 +543,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -629,7 +630,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -665,7 +666,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -764,7 +765,7 @@ public PagedIterable listByResourceGroup(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -802,7 +803,7 @@ public PagedIterable listByResourceGroup(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -896,7 +897,7 @@ public Mono> getAccessProfileWithResp if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAccessProfile(this.client.getEndpoint(), apiVersion, @@ -943,7 +944,7 @@ private Mono> getAccessProfileWithRes if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAccessProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1050,7 +1051,7 @@ public Mono> listClusterAdminCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1088,7 +1089,7 @@ private Mono> listClusterAdminCredentialsWithRe if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1181,7 +1182,7 @@ public Mono> listClusterUserCredentialsWithResp if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1222,7 +1223,7 @@ private Mono> listClusterUserCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1316,7 +1317,7 @@ public Mono> listClusterMonitoringUserCredentia if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1354,7 +1355,7 @@ private Mono> listClusterMonitoringUserCredenti if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1443,7 +1444,7 @@ public Mono> getByResourceGroupWithResponseAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1480,7 +1481,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1541,6 +1542,8 @@ public ManagedClusterInner getByResourceGroup(String resourceGroupName, String r * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1548,7 +1551,7 @@ public ManagedClusterInner getByResourceGroup(String resourceGroupName, String r */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, ManagedClusterInner parameters) { + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1569,11 +1572,12 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, ifNoneMatch, parameters, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1583,6 +1587,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1591,7 +1597,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, ManagedClusterInner parameters, Context context) { + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1612,11 +1618,34 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, parameters, accept, context); + resourceGroupName, resourceName, ifMatch, ifNoneMatch, parameters, accept, context); + } + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, ManagedClusterInner parameters, String ifMatch, + String ifNoneMatch) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } /** @@ -1633,8 +1662,10 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { + final String ifMatch = null; + final String ifNoneMatch = null; Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters); + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } @@ -1645,6 +1676,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1653,10 +1686,11 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, ManagedClusterInner parameters, Context context) { + String resourceGroupName, String resourceName, ManagedClusterInner parameters, String ifMatch, + String ifNoneMatch, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + parameters, ifMatch, ifNoneMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, context); } @@ -1675,7 +1709,10 @@ private PollerFlux, ManagedClusterInner> beginCr @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginCreateOrUpdate(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); + final String ifMatch = null; + final String ifNoneMatch = null; + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch) + .getSyncPoller(); } /** @@ -1684,6 +1721,8 @@ private PollerFlux, ManagedClusterInner> beginCr * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1692,8 +1731,30 @@ private PollerFlux, ManagedClusterInner> beginCr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, ManagedClusterInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, context).getSyncPoller(); + String resourceGroupName, String resourceName, ManagedClusterInner parameters, String ifMatch, + String ifNoneMatch, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch, context) + .getSyncPoller(); + } + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1710,7 +1771,9 @@ public SyncPoller, ManagedClusterInner> beginCre @ServiceMethod(returns = ReturnType.SINGLE) public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).last() + final String ifMatch = null; + final String ifNoneMatch = null; + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1720,6 +1783,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, S * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1728,8 +1793,9 @@ public Mono createOrUpdateAsync(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - ManagedClusterInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, context).last() + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch, context) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1747,7 +1813,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { - return createOrUpdateAsync(resourceGroupName, resourceName, parameters).block(); + final String ifMatch = null; + final String ifNoneMatch = null; + return createOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch).block(); } /** @@ -1756,6 +1824,8 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1764,8 +1834,8 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName, - ManagedClusterInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, parameters, context).block(); + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch, context).block(); } /** @@ -1774,6 +1844,7 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1781,7 +1852,7 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, - TagsObject parameters) { + TagsObject parameters, String ifMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1802,11 +1873,11 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1816,6 +1887,7 @@ public Mono>> updateTagsWithResponseAsync(String resou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1824,7 +1896,7 @@ public Mono>> updateTagsWithResponseAsync(String resou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, - TagsObject parameters, Context context) { + TagsObject parameters, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1845,11 +1917,32 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, parameters, accept, context); + resourceGroupName, resourceName, ifMatch, parameters, accept, context); + } + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ManagedClusterInner> + beginUpdateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters, String ifMatch) { + Mono>> mono + = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } /** @@ -1866,8 +1959,9 @@ private Mono>> updateTagsWithResponseAsync(String reso @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, ManagedClusterInner> beginUpdateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters) { + final String ifMatch = null; Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters); + = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } @@ -1878,6 +1972,7 @@ private Mono>> updateTagsWithResponseAsync(String reso * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1885,11 +1980,11 @@ private Mono>> updateTagsWithResponseAsync(String reso * @return the {@link PollerFlux} for polling of managed cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ManagedClusterInner> - beginUpdateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters, Context context) { + private PollerFlux, ManagedClusterInner> beginUpdateTagsAsync( + String resourceGroupName, String resourceName, TagsObject parameters, String ifMatch, Context context) { context = this.client.mergeContext(context); Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, context); + = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, context); } @@ -1908,7 +2003,8 @@ private Mono>> updateTagsWithResponseAsync(String reso @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginUpdateTags(String resourceGroupName, String resourceName, TagsObject parameters) { - return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); + final String ifMatch = null; + return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).getSyncPoller(); } /** @@ -1917,6 +2013,7 @@ public SyncPoller, ManagedClusterInner> beginUpd * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1925,8 +2022,27 @@ public SyncPoller, ManagedClusterInner> beginUpd */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginUpdateTags(String resourceGroupName, - String resourceName, TagsObject parameters, Context context) { - return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, context).getSyncPoller(); + String resourceName, TagsObject parameters, String ifMatch, Context context) { + return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch, context).getSyncPoller(); + } + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String resourceName, + TagsObject parameters, String ifMatch) { + return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1943,7 +2059,8 @@ public SyncPoller, ManagedClusterInner> beginUpd @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters).last() + final String ifMatch = null; + return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1953,6 +2070,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1961,8 +2079,8 @@ public Mono updateTagsAsync(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateTagsAsync(String resourceGroupName, String resourceName, - TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, context).last() + TagsObject parameters, String ifMatch, Context context) { + return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1979,7 +2097,8 @@ private Mono updateTagsAsync(String resourceGroupName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, resourceName, parameters).block(); + final String ifMatch = null; + return updateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).block(); } /** @@ -1988,6 +2107,7 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1996,8 +2116,8 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters, - Context context) { - return updateTagsAsync(resourceGroupName, resourceName, parameters, context).block(); + String ifMatch, Context context) { + return updateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch, context).block(); } /** @@ -2005,13 +2125,15 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String ifMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2027,11 +2149,11 @@ public Mono>> deleteWithResponseAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2040,6 +2162,7 @@ public Mono>> deleteWithResponseAsync(String resourceG * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2048,7 +2171,7 @@ public Mono>> deleteWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - Context context) { + String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2064,11 +2187,30 @@ private Mono>> deleteWithResponseAsync(String resource if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, accept, context); + resourceName, ifMatch, accept, context); + } + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String ifMatch) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -2083,7 +2225,8 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName); + final String ifMatch = null; + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -2093,6 +2236,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2101,9 +2245,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - Context context) { + String ifMatch, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -2120,7 +2265,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName) { - return this.beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller(); + final String ifMatch = null; + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch).getSyncPoller(); } /** @@ -2128,6 +2274,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2135,9 +2282,26 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).getSyncPoller(); + } + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2152,7 +2316,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName) { - return beginDeleteAsync(resourceGroupName, resourceName).last().flatMap(this.client::getLroFinalResultOrError); + final String ifMatch = null; + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2160,6 +2326,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2167,8 +2334,8 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, context).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2183,7 +2350,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, Co */ @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName) { - deleteAsync(resourceGroupName, resourceName).block(); + final String ifMatch = null; + deleteAsync(resourceGroupName, resourceName, ifMatch).block(); } /** @@ -2191,14 +2359,15 @@ public void delete(String resourceGroupName, String resourceName) { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String resourceName, Context context) { - deleteAsync(resourceGroupName, resourceName, context).block(); + public void delete(String resourceGroupName, String resourceName, String ifMatch, Context context) { + deleteAsync(resourceGroupName, resourceName, ifMatch, context).block(); } /** @@ -2237,7 +2406,7 @@ public Mono>> resetServicePrincipalProfileWithResponse } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2282,7 +2451,7 @@ private Mono>> resetServicePrincipalProfileWithRespons } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2490,7 +2659,7 @@ public Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetAadProfile(this.client.getEndpoint(), apiVersion, @@ -2536,7 +2705,7 @@ private Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetAadProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2744,7 +2913,7 @@ public Mono>> rotateClusterCertificatesWithResponseAsy if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, @@ -2784,7 +2953,7 @@ private Mono>> rotateClusterCertificatesWithResponseAs if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2982,7 +3151,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, @@ -3023,7 +3192,7 @@ private Mono>> abortLatestOperationWithResponseAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3223,7 +3392,7 @@ public Mono>> rotateServiceAccountSigningKeysWithRespo if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3260,7 +3429,7 @@ private Mono>> rotateServiceAccountSigningKeysWithResp if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3435,7 +3604,7 @@ public Mono>> stopWithResponseAsync(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3477,7 +3646,7 @@ private Mono>> stopWithResponseAsync(String resourceGr if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -3684,7 +3853,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, @@ -3724,7 +3893,7 @@ private Mono>> startWithResponseAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -3922,7 +4091,7 @@ public Mono>> runCommandWithResponseAsync(String resou } else { requestPayload.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.runCommand(this.client.getEndpoint(), apiVersion, @@ -3968,7 +4137,7 @@ private Mono>> runCommandWithResponseAsync(String reso } else { requestPayload.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.runCommand(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4182,7 +4351,7 @@ public Mono getCommandResultWithRespons if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getCommandResult(this.client.getEndpoint(), apiVersion, @@ -4224,7 +4393,7 @@ private Mono getCommandResultWithRespon if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getCommandResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4317,7 +4486,7 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), @@ -4362,7 +4531,7 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4489,7 +4658,7 @@ private Mono> listMeshRevisionProfilesSi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listMeshRevisionProfiles(this.client.getEndpoint(), apiVersion, @@ -4527,7 +4696,7 @@ private Mono> listMeshRevisionProfilesSi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4639,7 +4808,7 @@ public Mono> getMeshRevisionProfileWithRespon if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, @@ -4678,7 +4847,7 @@ private Mono> getMeshRevisionProfileWithRespo if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4770,7 +4939,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listMeshUpgradeProfiles(this.client.getEndpoint(), apiVersion, @@ -4810,7 +4979,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4921,7 +5090,7 @@ public Mono> getMeshUpgradeProfileWithResponse if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -4963,7 +5132,7 @@ private Mono> getMeshUpgradeProfileWithRespons if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java index 8a9e083280c9b..51d89d154313a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java @@ -82,7 +82,7 @@ private Mono> listSinglePageAsync() { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -105,7 +105,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java index 0e274bbb6f17a..3350566d21670 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java @@ -138,7 +138,7 @@ public Mono> listWithResponse if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -178,7 +178,7 @@ private Mono> listWithRespons if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -273,7 +273,7 @@ public Mono> getWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -317,7 +317,7 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -422,7 +422,7 @@ public Mono> updateWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -472,7 +472,7 @@ private Mono> updateWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -570,7 +570,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -613,7 +613,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java index 70c4f450be44a..e7922db2a4013 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java @@ -97,7 +97,7 @@ public Mono> listWithResponseAsync if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -136,7 +136,7 @@ private Mono> listWithResponseAsyn if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java index b91f06987b872..851dc921c25cb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java @@ -104,7 +104,7 @@ public Mono> postWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -148,7 +148,7 @@ private Mono> postWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java index 21bd014d6c0b7..b3271173e588e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java @@ -160,7 +160,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -190,7 +190,7 @@ private Mono> listSinglePageAsync(Context context) return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -275,7 +275,7 @@ private Mono> listByResourceGroupSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -311,7 +311,7 @@ private Mono> listByResourceGroupSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -409,7 +409,7 @@ public Mono> getByResourceGroupWithResponseAsync(String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -446,7 +446,7 @@ private Mono> getByResourceGroupWithResponseAsync(String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -535,7 +535,7 @@ public Mono> createOrUpdateWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -578,7 +578,7 @@ private Mono> createOrUpdateWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -671,7 +671,7 @@ public Mono> updateTagsWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, @@ -714,7 +714,7 @@ private Mono> updateTagsWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -799,7 +799,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -836,7 +836,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java index e40e89797d793..91d533d298843 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java @@ -148,7 +148,7 @@ private Mono> listSinglePageAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -188,7 +188,7 @@ private Mono> listSinglePageAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -297,7 +297,7 @@ public Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -339,7 +339,7 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -441,7 +441,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { trustedAccessRoleBinding.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -493,7 +493,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { trustedAccessRoleBinding.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -704,7 +704,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -747,7 +747,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java index bea2e27c9c24b..05c82641a57fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java @@ -101,7 +101,7 @@ private Mono> listSinglePageAsync(String l if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -134,7 +134,7 @@ private Mono> listSinglePageAsync(String l if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java new file mode 100644 index 0000000000000..6132ead8e9b42 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information + * see aka.ms/aksadvancednetworking. + */ +@Fluent +public final class AdvancedNetworking implements JsonSerializable { + /* + * Indicates the enablement of Advanced Networking functionalities of observability and security on AKS clusters. + * When this is set to true, all observability and security features will be set to enabled unless explicitly + * disabled. If not specified, the default is false. + */ + private Boolean enabled; + + /* + * Observability profile to enable advanced network metrics and flow logs with historical contexts. + */ + private AdvancedNetworkingObservability observability; + + /* + * Security profile to enable security features on cilium based cluster. + */ + private AdvancedNetworkingSecurity security; + + /** + * Creates an instance of AdvancedNetworking class. + */ + public AdvancedNetworking() { + } + + /** + * Get the enabled property: Indicates the enablement of Advanced Networking functionalities of observability and + * security on AKS clusters. When this is set to true, all observability and security features will be set to + * enabled unless explicitly disabled. If not specified, the default is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Indicates the enablement of Advanced Networking functionalities of observability and + * security on AKS clusters. When this is set to true, all observability and security features will be set to + * enabled unless explicitly disabled. If not specified, the default is false. + * + * @param enabled the enabled value to set. + * @return the AdvancedNetworking object itself. + */ + public AdvancedNetworking withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the observability property: Observability profile to enable advanced network metrics and flow logs with + * historical contexts. + * + * @return the observability value. + */ + public AdvancedNetworkingObservability observability() { + return this.observability; + } + + /** + * Set the observability property: Observability profile to enable advanced network metrics and flow logs with + * historical contexts. + * + * @param observability the observability value to set. + * @return the AdvancedNetworking object itself. + */ + public AdvancedNetworking withObservability(AdvancedNetworkingObservability observability) { + this.observability = observability; + return this; + } + + /** + * Get the security property: Security profile to enable security features on cilium based cluster. + * + * @return the security value. + */ + public AdvancedNetworkingSecurity security() { + return this.security; + } + + /** + * Set the security property: Security profile to enable security features on cilium based cluster. + * + * @param security the security value to set. + * @return the AdvancedNetworking object itself. + */ + public AdvancedNetworking withSecurity(AdvancedNetworkingSecurity security) { + this.security = security; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (observability() != null) { + observability().validate(); + } + if (security() != null) { + security().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeJsonField("observability", this.observability); + jsonWriter.writeJsonField("security", this.security); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdvancedNetworking from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdvancedNetworking if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the AdvancedNetworking. + */ + public static AdvancedNetworking fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdvancedNetworking deserializedAdvancedNetworking = new AdvancedNetworking(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedAdvancedNetworking.enabled = reader.getNullable(JsonReader::getBoolean); + } else if ("observability".equals(fieldName)) { + deserializedAdvancedNetworking.observability = AdvancedNetworkingObservability.fromJson(reader); + } else if ("security".equals(fieldName)) { + deserializedAdvancedNetworking.security = AdvancedNetworkingSecurity.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAdvancedNetworking; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java new file mode 100644 index 0000000000000..d5296ad62ccd6 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Observability profile to enable advanced network metrics and flow logs with historical contexts. + */ +@Fluent +public final class AdvancedNetworkingObservability implements JsonSerializable { + /* + * Indicates the enablement of Advanced Networking observability functionalities on clusters. + */ + private Boolean enabled; + + /** + * Creates an instance of AdvancedNetworkingObservability class. + */ + public AdvancedNetworkingObservability() { + } + + /** + * Get the enabled property: Indicates the enablement of Advanced Networking observability functionalities on + * clusters. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Indicates the enablement of Advanced Networking observability functionalities on + * clusters. + * + * @param enabled the enabled value to set. + * @return the AdvancedNetworkingObservability object itself. + */ + public AdvancedNetworkingObservability withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdvancedNetworkingObservability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdvancedNetworkingObservability if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdvancedNetworkingObservability. + */ + public static AdvancedNetworkingObservability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdvancedNetworkingObservability deserializedAdvancedNetworkingObservability + = new AdvancedNetworkingObservability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedAdvancedNetworkingObservability.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedAdvancedNetworkingObservability; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java new file mode 100644 index 0000000000000..7d14b493eb6c4 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Security profile to enable security features on cilium based cluster. + */ +@Fluent +public final class AdvancedNetworkingSecurity implements JsonSerializable { + /* + * This feature allows user to configure network policy based on DNS (FQDN) names. It can be enabled only on cilium + * based clusters. If not specified, the default is false. + */ + private Boolean enabled; + + /** + * Creates an instance of AdvancedNetworkingSecurity class. + */ + public AdvancedNetworkingSecurity() { + } + + /** + * Get the enabled property: This feature allows user to configure network policy based on DNS (FQDN) names. It can + * be enabled only on cilium based clusters. If not specified, the default is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: This feature allows user to configure network policy based on DNS (FQDN) names. It can + * be enabled only on cilium based clusters. If not specified, the default is false. + * + * @param enabled the enabled value to set. + * @return the AdvancedNetworkingSecurity object itself. + */ + public AdvancedNetworkingSecurity withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdvancedNetworkingSecurity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdvancedNetworkingSecurity if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdvancedNetworkingSecurity. + */ + public static AdvancedNetworkingSecurity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdvancedNetworkingSecurity deserializedAdvancedNetworkingSecurity = new AdvancedNetworkingSecurity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedAdvancedNetworkingSecurity.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedAdvancedNetworkingSecurity; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java index 0b8b753f82c66..fdbd06c52590f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java @@ -42,6 +42,12 @@ public final class ContainerServiceNetworkProfile implements JsonSerializable ipFamilies) * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (advancedNetworking() != null) { + advancedNetworking().validate(); + } if (loadBalancerProfile() != null) { loadBalancerProfile().validate(); } @@ -448,6 +479,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("networkMode", this.networkMode == null ? null : this.networkMode.toString()); jsonWriter.writeStringField("networkDataplane", this.networkDataplane == null ? null : this.networkDataplane.toString()); + jsonWriter.writeJsonField("advancedNetworking", this.advancedNetworking); jsonWriter.writeStringField("podCidr", this.podCidr); jsonWriter.writeStringField("serviceCidr", this.serviceCidr); jsonWriter.writeStringField("dnsServiceIP", this.dnsServiceIp); @@ -493,6 +525,8 @@ public static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader) thr } else if ("networkDataplane".equals(fieldName)) { deserializedContainerServiceNetworkProfile.networkDataplane = NetworkDataplane.fromString(reader.getString()); + } else if ("advancedNetworking".equals(fieldName)) { + deserializedContainerServiceNetworkProfile.advancedNetworking = AdvancedNetworking.fromJson(reader); } else if ("podCidr".equals(fieldName)) { deserializedContainerServiceNetworkProfile.podCidr = reader.getString(); } else if ("serviceCidr".equals(fieldName)) { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java index 7fb575f11cdf0..ab334e24ccec3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java @@ -40,6 +40,13 @@ public final class ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoo */ private String currentOrchestratorVersion; + /* + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is + * updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable + * optimistic concurrency per the normal etag convention. + */ + private String etag; + /** * Creates an instance of ManagedClusterAgentPoolProfile class. */ @@ -98,6 +105,18 @@ public String currentOrchestratorVersion() { return this.currentOrchestratorVersion; } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + @Override + public String etag() { + return this.etag; + } + /** * {@inheritDoc} */ @@ -589,7 +608,9 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr String fieldName = reader.getFieldName(); reader.nextToken(); - if ("count".equals(fieldName)) { + if ("eTag".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfile.etag = reader.getString(); + } else if ("count".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withCount(reader.getNullable(JsonReader::getInt)); } else if ("vmSize".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withVmSize(reader.getString()); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java new file mode 100644 index 0000000000000..e3485eccdee3c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Node resource group lockdown profile for a managed cluster. + */ +@Fluent +public final class ManagedClusterNodeResourceGroupProfile + implements JsonSerializable { + /* + * The restriction level applied to the cluster's node resource group. If not specified, the default is + * 'Unrestricted' + */ + private RestrictionLevel restrictionLevel; + + /** + * Creates an instance of ManagedClusterNodeResourceGroupProfile class. + */ + public ManagedClusterNodeResourceGroupProfile() { + } + + /** + * Get the restrictionLevel property: The restriction level applied to the cluster's node resource group. If not + * specified, the default is 'Unrestricted'. + * + * @return the restrictionLevel value. + */ + public RestrictionLevel restrictionLevel() { + return this.restrictionLevel; + } + + /** + * Set the restrictionLevel property: The restriction level applied to the cluster's node resource group. If not + * specified, the default is 'Unrestricted'. + * + * @param restrictionLevel the restrictionLevel value to set. + * @return the ManagedClusterNodeResourceGroupProfile object itself. + */ + public ManagedClusterNodeResourceGroupProfile withRestrictionLevel(RestrictionLevel restrictionLevel) { + this.restrictionLevel = restrictionLevel; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("restrictionLevel", + this.restrictionLevel == null ? null : this.restrictionLevel.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterNodeResourceGroupProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterNodeResourceGroupProfile if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ManagedClusterNodeResourceGroupProfile. + */ + public static ManagedClusterNodeResourceGroupProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterNodeResourceGroupProfile deserializedManagedClusterNodeResourceGroupProfile + = new ManagedClusterNodeResourceGroupProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("restrictionLevel".equals(fieldName)) { + deserializedManagedClusterNodeResourceGroupProfile.restrictionLevel + = RestrictionLevel.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterNodeResourceGroupProfile; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java new file mode 100644 index 0000000000000..70664c2e4cace --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The restriction level applied to the cluster's node resource group. If not specified, the default is 'Unrestricted'. + */ +public final class RestrictionLevel extends ExpandableStringEnum { + /** + * Static value Unrestricted for RestrictionLevel. + */ + public static final RestrictionLevel UNRESTRICTED = fromString("Unrestricted"); + + /** + * Static value ReadOnly for RestrictionLevel. + */ + public static final RestrictionLevel READ_ONLY = fromString("ReadOnly"); + + /** + * Creates a new instance of RestrictionLevel value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RestrictionLevel() { + } + + /** + * Creates or finds a RestrictionLevel from its string representation. + * + * @param name a name to look for. + * @return the corresponding RestrictionLevel. + */ + public static RestrictionLevel fromString(String name) { + return fromString(name, RestrictionLevel.class); + } + + /** + * Gets known RestrictionLevel values. + * + * @return known RestrictionLevel values. + */ + public static Collection values() { + return values(RestrictionLevel.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java index 4027adb9bfe1c..72da8929c11e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsAbortLatestOperationSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsAbortOperation.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java index 7f0a419eb17c9..339eeb8f860c9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java @@ -30,7 +30,7 @@ public final class AgentPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_EnableFIPS.json */ /** @@ -49,12 +49,12 @@ public static void createAgentPoolWithFIPSEnabledOS(com.azure.resourcemanager.Az .withOsType(OSType.LINUX) .withOrchestratorVersion("") .withEnableFips(true), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPools_Update.json */ /** @@ -78,12 +78,12 @@ public static void updateAgentPool(com.azure.resourcemanager.AzureResourceManage .withScaleSetPriority(ScaleSetPriority.SPOT) .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_GPUMIG.json */ /** @@ -118,12 +118,12 @@ public static void createAgentPoolWithGPUMIG(com.azure.resourcemanager.AzureReso .withTransparentHugePageDefrag("madvise") .withSwapFileSizeMB(1500)) .withGpuInstanceProfile(GpuInstanceProfile.MIG2G), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_WindowsOSSKU.json */ /** @@ -142,12 +142,12 @@ public static void createAgentPoolWithWindowsOSSKU(com.azure.resourcemanager.Azu .withOsType(OSType.WINDOWS) .withOsSku(OSSku.WINDOWS2022) .withOrchestratorVersion("1.23.3"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_DedicatedHostGroup.json */ /** @@ -166,12 +166,12 @@ public static void createAgentPoolWithDedicatedHostGroup(com.azure.resourcemanag .withOrchestratorVersion("") .withHostGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Update.json */ /** @@ -195,12 +195,12 @@ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResource .withTags(mapOf("name1", "val1")) .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_WindowsDisableOutboundNAT.json */ /** @@ -221,12 +221,12 @@ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResource .withOsSku(OSSku.WINDOWS2022) .withOrchestratorVersion("1.23.8") .withWindowsProfile(new AgentPoolWindowsProfile().withDisableOutboundNat(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPools_Start.json */ /** @@ -240,13 +240,13 @@ public static void startAgentPool(com.azure.resourcemanager.AzureResourceManager .serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Spot.json */ /** @@ -269,12 +269,12 @@ public static void createSpotAgentPool(com.azure.resourcemanager.AzureResourceMa .withTags(mapOf("name1", "val1")) .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Ephemeral.json */ /** @@ -294,12 +294,12 @@ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager. .withOsDiskType(OSDiskType.EPHEMERAL) .withOsType(OSType.LINUX) .withOrchestratorVersion(""), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_EnableEncryptionAtHost.json */ /** @@ -319,12 +319,12 @@ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager. .withOsType(OSType.LINUX) .withOrchestratorVersion("") .withEnableEncryptionAtHost(true), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_EnableUltraSSD.json */ /** @@ -343,12 +343,12 @@ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager. .withOsType(OSType.LINUX) .withOrchestratorVersion("") .withEnableUltraSsd(true), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_WasmWasi.json */ /** @@ -370,12 +370,12 @@ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager. .withOsType(OSType.LINUX) .withMode(AgentPoolMode.USER) .withOrchestratorVersion(""), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Snapshot.json */ /** @@ -395,12 +395,12 @@ public static void createAgentPoolUsingAnAgentPoolSnapshot(com.azure.resourceman .withEnableFips(true) .withCreationData(new CreationData().withSourceResourceId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_PPG.json */ /** @@ -419,12 +419,12 @@ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourc .withOrchestratorVersion("") .withProximityPlacementGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/proximityPlacementGroups/ppg1"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_CustomNodeConfig.json */ /** @@ -459,12 +459,12 @@ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourc .withTransparentHugePageEnabled("always") .withTransparentHugePageDefrag("madvise") .withSwapFileSizeMB(1500)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPools_Stop.json */ /** @@ -478,13 +478,13 @@ public static void stopAgentPool(com.azure.resourcemanager.AzureResourceManager .serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_CRG.json */ /** @@ -504,12 +504,12 @@ public static void stopAgentPool(com.azure.resourcemanager.AzureResourceManager .withOrchestratorVersion("") .withCapacityReservationGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/CapacityReservationGroups/crg1"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_OSSKU.json */ /** @@ -544,7 +544,7 @@ public static void createAgentPoolWithOSSKU(com.azure.resourcemanager.AzureResou .withTransparentHugePageEnabled("always") .withTransparentHugePageDefrag("madvise") .withSwapFileSizeMB(1500)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java index a8d67e24a29e9..816975f7c68b2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java @@ -13,7 +13,7 @@ public final class AgentPoolsDeleteMachinesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsDeleteMachines.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java index 4966ca1c168ac..7c5005a152945 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsDelete.json */ /** @@ -23,6 +23,6 @@ public static void deleteAgentPool(com.azure.resourcemanager.AzureResourceManage .manager() .serviceClient() .getAgentPools() - .delete("rg1", "clustername1", "agentpool1", null, com.azure.core.util.Context.NONE); + .delete("rg1", "clustername1", "agentpool1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java index 5181dd14fd029..2ef94ee80e0d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetAvailableAgentPoolVersionsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsGetAgentPoolAvailableVersions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java index cdc286bda2b88..25ab08618dcc3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java index d567a3c7f778f..d4030a60868e0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsGetUpgradeProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java index 7e98f287c3db9..384f07cde231f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java index 802da0d86b0c5..96a8e78b1f179 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsUpgradeNodeImageVersionSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsUpgradeNodeImageVersion.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java index 5d040c747f3b8..a8efcc9f0b1a4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java @@ -10,7 +10,7 @@ public final class MachinesGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MachineGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java index ad1fe7eef86f5..e89f4362fc859 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java @@ -10,7 +10,7 @@ public final class MachinesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MachineList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java index 6093bc185616d..6d036189c04ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java @@ -23,7 +23,7 @@ public final class MaintenanceConfigurationsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsCreate_Update.json */ /** @@ -46,7 +46,7 @@ public static void createUpdateMaintenanceConfiguration(com.azure.resourcemanage /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java index 4a8e549adce03..07849aa482c76 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsDelete.json */ /** @@ -28,7 +28,7 @@ public static void deleteMaintenanceConfiguration(com.azure.resourcemanager.Azur /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsDelete_MaintenanceWindow.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java index 8d755b5faf478..260fe0302e5ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsGet.json */ /** @@ -28,7 +28,7 @@ public static void getMaintenanceConfiguration(com.azure.resourcemanager.AzureRe /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsGet_MaintenanceWindow.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java index a63990ebf216a..f6f4b267c651e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsListByManagedClusterSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsList_MaintenanceWindow.json */ /** @@ -29,7 +29,7 @@ public static void listMaintenanceConfigurationsConfiguredWithMaintenanceWindowB /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java index 86ac5844f16df..6eb9a4a283083 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersAbortLatestOperationSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersAbortOperation.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java index 9d89c2247024b..4df4a54f404c6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java @@ -70,7 +70,7 @@ public final class ManagedClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_CRG.json */ /** @@ -117,12 +117,12 @@ public final class ManagedClustersCreateOrUpdateSamples { .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_DualStackNetworking.json */ /** @@ -180,12 +180,12 @@ public final class ManagedClustersCreateOrUpdateSamples { .withSkipNodesWithSystemPods("false")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PodIdentity.json */ /** @@ -232,12 +232,12 @@ public final class ManagedClustersCreateOrUpdateSamples { .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UserAssignedNATGateway.json */ /** @@ -281,12 +281,12 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_Update.json */ /** @@ -345,12 +345,12 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes .withSkipNodesWithSystemPods("false")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ /** @@ -397,12 +397,12 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true) .withPrivateDnsZone( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Network/privateDnsZones/privatelink.location1.azmk8s.io")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_ManagedNATGateway.json */ /** @@ -448,12 +448,12 @@ public static void createManagedClusterWithAKSManagedNATGatewayAsOutboundType( .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_Premium.json */ /** @@ -498,12 +498,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withDisableRunCommand(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_NodePublicIPPrefix.json */ /** @@ -550,12 +550,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_EnableEncryptionAtHost.json */ /** @@ -601,12 +601,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PrivateClusterPublicFQDN.json */ /** @@ -652,12 +652,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true) .withEnablePrivateClusterPublicFqdn(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_HTTPProxy.json */ /** @@ -706,12 +706,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_DedicatedHostGroup.json */ /** @@ -757,12 +757,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_EnabledFIPS.json */ /** @@ -807,12 +807,12 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_SecurityProfile.json */ /** @@ -852,12 +852,12 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag .withSecurityMonitoring( new ManagedClusterSecurityProfileDefenderSecurityMonitoring().withEnabled(true))) .withWorkloadIdentity(new ManagedClusterSecurityProfileWorkloadIdentity().withEnabled(true))), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PPG.json */ /** @@ -903,12 +903,12 @@ public static void createManagedClusterWithPPG(com.azure.resourcemanager.AzureRe .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_IngressProfile_WebAppRouting.json */ /** @@ -946,12 +946,12 @@ public static void createManagedClusterWithWebAppRoutingIngressProfileConfigured .withWebAppRouting(new ManagedClusterIngressProfileWebAppRouting().withEnabled(true) .withDnsZoneResourceIds(Arrays.asList( "/subscriptions/SUB_ID/resourceGroups/RG_NAME/providers/Microsoft.Network/dnszones/DNS_ZONE_NAME")))), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UpdateWithAHUB.json */ /** @@ -1001,12 +1001,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_DisableRunCommand.json */ /** @@ -1051,12 +1051,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withDisableRunCommand(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_Snapshot.json */ /** @@ -1104,12 +1104,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_AzureServiceMesh.json */ /** @@ -1174,12 +1174,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withKeyObjectName("fakeTokenPlaceholder") .withRootCertObjectName("root-cert") .withCertChainObjectName("cert-chain"))))), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ /** @@ -1231,12 +1231,12 @@ public static void createManagedClusterWithAzureKeyVaultSecretsProviderAddon( .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_OSSKU.json */ /** @@ -1285,12 +1285,12 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ /** @@ -1337,12 +1337,12 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_EnableUltraSSD.json */ /** @@ -1387,12 +1387,12 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UpdateWindowsGmsa.json */ /** @@ -1443,12 +1443,12 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_GPUMIG.json */ /** @@ -1497,7 +1497,7 @@ public static void createManagedClusterWithGPUMIG(com.azure.resourcemanager.Azur .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java index 97b8a54b25b93..81a5ebf6a0fed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersDelete.json */ /** @@ -23,6 +23,6 @@ public static void deleteManagedCluster(com.azure.resourcemanager.AzureResourceM .manager() .serviceClient() .getManagedClusters() - .delete("rg1", "clustername1", com.azure.core.util.Context.NONE); + .delete("rg1", "clustername1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java index 6ba6671e6fa93..4dc3f8e193fbc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetAccessProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGetAccessProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java index 03e1137eef1c5..1d1ad7d9c382d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java index 998faf870f807..bd3db16b3f596 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetCommandResultSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * RunCommandResultFailed.json */ /** @@ -29,7 +29,7 @@ public static void commandFailedResult(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * RunCommandResultSucceed.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java index 4c247ba34e5ff..e1e28d929c4cf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetMeshRevisionProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGet_MeshRevisionProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java index f0f414766803b..9ac93273e3c69 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetMeshUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGet_MeshUpgradeProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java index bbc056572d8e3..f181ad4900b59 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGetUpgradeProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java index 979d34485df97..a2d6d7e454383 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java index 24d07a768845f..c7a560daf64eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterAdminCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListClusterAdminCredentials.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java index 5c6f85b9db0fb..2c8dcdd79427e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterMonitoringUserCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListClusterMonitoringUserCredentials.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java index aac8be121a002..74d871a5a2888 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterUserCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListClusterUserCredentials.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java index eafb149a70d03..7810058415d1c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListKubernetesVersionsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * KubernetesVersions_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java index ff7dac1160aa1..a532bcf6ea1b0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListMeshRevisionProfilesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersList_MeshRevisionProfiles.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java index d4e4b6af8d2cf..783fe1bf2187e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListMeshUpgradeProfilesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersList_MeshUpgradeProfiles.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java index 60378001fd961..e9a6c6d8627b1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListOutboundNetworkDependenciesEndpointsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * OutboundNetworkDependenciesEndpointsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java index 7f0e064267dc6..d9f45d51ae1ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java index 0bc3d3aeff82e..4d9fb57d77fd8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersResetAadProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersResetAADProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java index 108a5441bc033..1b90264fb075a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersResetServicePrincipalProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersResetServicePrincipalProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java index 4519b2ec6c860..4c7b02023f95b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersRotateClusterCertificatesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersRotateClusterCertificates.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java index 31071de33de2a..db1c82319e755 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersRotateServiceAccountSigningKeysSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersRotateServiceAccountSigningKeys.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java index a9078f9b454bc..78d3833d15139 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersRunCommandSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * RunCommandRequest.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java index e63d7d6154885..279382dbdfc4e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersStartSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersStart.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java index 756c5bd192c5e..a435296c2ef66 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersStopSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersStop.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java index 992b43554b50d..20aa10d8d93af 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java @@ -14,7 +14,7 @@ public final class ManagedClustersUpdateTagsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersUpdateTags.json */ /** @@ -27,7 +27,7 @@ public static void updateManagedClusterTags(com.azure.resourcemanager.AzureResou .manager() .serviceClient() .getManagedClusters() - .updateTags("rg1", "clustername1", new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), + .updateTags("rg1", "clustername1", new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), null, com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java index dd0eba542a768..ef39d3ccd9e0e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * Operation_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java index 09372c00894e6..45ac4eadafe69 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsDelete.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java index 4e027ff081130..47524bb2e409e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java index 021b21e078a20..70b86fc4f9d6f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java index 0bc240502ac3c..1c65964e411fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -14,7 +14,7 @@ public final class PrivateEndpointConnectionsUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsUpdate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java index 66ea70e3275d8..f11bebc54c464 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java @@ -10,7 +10,7 @@ public final class PrivateLinkResourcesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateLinkResourcesList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java index 3ee9317559a2b..e0082224da82b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java @@ -12,7 +12,7 @@ public final class ResolvePrivateLinkServiceIdPostSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ResolvePrivateLinkServiceId.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java index 7bdaec3e795e8..76fe160b9a57a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class SnapshotsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsCreate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java index 1cd4b3a3bc404..ddc08c7565a60 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsDelete.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java index f4aabc7a6d5e7..9f483827aba2c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java index dde5cc6c7dcd8..09ed427940b29 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsListByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java index 2e0b48d707868..cdf59b996f611 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java index 1ff1ddce00617..d921720f9c3f7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java @@ -14,7 +14,7 @@ public final class SnapshotsUpdateTagsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsUpdateTags.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java index f5d8b1d5d4c48..28718c552c78e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ public final class TrustedAccessRoleBindingsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_CreateOrUpdate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java index 21730e4167edc..2c2fb172453b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_Delete.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java index 1fc705dbca37b..2a241bf8d10ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_Get.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java index fb44d85aaefda..fa9f4c246a675 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java index 6ee46c7bb2742..1b8b07d9ba9fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRolesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoles_List.json */ /** From 3de0af2f6e7a7de4baa3f9ba9fb19836c3611a3b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 20 Nov 2024 00:31:18 -0800 Subject: [PATCH 13/44] Increment package versions for appconfiguration releases (#43025) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-appconfiguration/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 6bfa2b0d78251..d9b3cbea02186 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -327,7 +327,7 @@ com.azure.resourcemanager:azure-resourcemanager-automation;1.0.0-beta.3;1.0.0-be com.azure.resourcemanager:azure-resourcemanager-resourcemover;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-datafactory;1.0.0-beta.30;1.0.0-beta.31 com.azure.resourcemanager:azure-resourcemanager-advisor;1.0.0-beta.3;1.0.0-beta.4 -com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.0.0-beta.7;1.0.0 +com.azure.resourcemanager:azure-resourcemanager-appconfiguration;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-attestation;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-azurestack;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-azurestackhci;1.0.0-beta.5;1.0.0-beta.6 diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md index a5bae941ceadf..e36affd5a95d4 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2024-11-20) - Azure Resource Manager AppConfiguration client library for Java. This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2024-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml index eb73e2ed7503a..bcca1959d9e2e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-appconfiguration - 1.0.0 + 1.1.0-beta.1 jar Microsoft Azure SDK for AppConfiguration Management From 52cefcbf85350c56febb0b3b7bb3353c5a9b0760 Mon Sep 17 00:00:00 2001 From: "Hong Li(MSFT)" <74638143+v-hongli1@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:40:42 +0800 Subject: [PATCH 14/44] mgmt, local generation for App Services (DNL GA) API 2024-04-01 Version (#42916) * mgmt, local generation for App Services --- sdk/resourcemanager/api-specs.json | 2 +- .../CHANGELOG.md | 8 +- .../assets.json | 2 +- .../appservice/fluent/StaticSitesClient.java | 4 +- .../appservice/fluent/WebAppsClient.java | 61 ++++++++- .../fluent/WebSiteManagementClient.java | 14 +- .../fluent/models/AddressResponseInner.java | 25 ++-- .../models/AnalysisDefinitionInner.java | 25 ++-- .../fluent/models/ApiKVReferenceInner.java | 25 ++-- .../AppServiceCertificateOrderInner.java | 36 +++-- ...pServiceCertificatePatchResourceInner.java | 25 ++-- .../AppServiceCertificateResourceInner.java | 36 +++-- ...pServiceEnvironmentPatchResourceInner.java | 25 ++-- .../AppServiceEnvironmentResourceInner.java | 36 +++-- .../fluent/models/AppServicePlanInner.java | 36 +++-- .../models/ApplicationStackResourceInner.java | 25 ++-- .../fluent/models/AseRegionInner.java | 25 ++-- .../AseV3NetworkingConfigurationInner.java | 25 ++-- ...toragePropertyDictionaryResourceInner.java | 25 ++-- .../fluent/models/BackupItemInner.java | 25 ++-- .../fluent/models/BackupRequestInner.java | 25 ++-- .../fluent/models/BillingMeterInner.java | 25 ++-- .../fluent/models/CertificateInner.java | 36 +++-- .../ConnectionStringDictionaryInner.java | 25 ++-- .../fluent/models/ContainerAppInner.java | 36 +++-- .../fluent/models/ContinuousWebJobInner.java | 25 ++-- ...lishingCredentialsPoliciesEntityInner.java | 25 ++-- .../CustomDnsSuffixConfigurationInner.java | 25 ++-- .../CustomHostnameAnalysisResultInner.java | 25 ++-- .../models/CustomHostnameSitesInner.java | 25 ++-- .../models/DatabaseConnectionInner.java | 25 ++-- .../fluent/models/DeletedSiteInner.java | 25 ++-- .../fluent/models/DeploymentInner.java | 25 ++-- .../DetectorDefinitionResourceInner.java | 25 ++-- .../fluent/models/DetectorResponseInner.java | 25 ++-- .../models/DiagnosticAnalysisInner.java | 25 ++-- .../models/DiagnosticCategoryInner.java | 25 ++-- .../DiagnosticDetectorResponseInner.java | 25 ++-- .../appservice/fluent/models/DomainInner.java | 36 +++-- .../DomainOwnershipIdentifierInner.java | 25 ++-- .../fluent/models/FunctionAppStackInner.java | 25 ++-- .../fluent/models/FunctionEnvelopeInner.java | 25 ++-- .../fluent/models/GeoRegionInner.java | 25 ++-- .../fluent/models/HostnameBindingInner.java | 25 ++-- .../fluent/models/HybridConnectionInner.java | 25 ++-- .../models/HybridConnectionKeyInner.java | 25 ++-- .../models/HybridConnectionLimitsInner.java | 25 ++-- .../fluent/models/IdentifierInner.java | 25 ++-- .../fluent/models/KubeEnvironmentInner.java | 36 +++-- .../fluent/models/MSDeployLogInner.java | 25 ++-- .../fluent/models/MSDeployProperties.java | 1 - .../fluent/models/MSDeployStatusInner.java | 25 ++-- .../models/MigrateMySqlStatusInner.java | 25 ++-- .../fluent/models/NetworkFeaturesInner.java | 25 ++-- .../fluent/models/PremierAddOnInner.java | 36 +++-- .../fluent/models/PremierAddOnOfferInner.java | 25 ++-- .../fluent/models/PrivateAccessInner.java | 25 ++-- .../fluent/models/ProcessInfoInner.java | 25 ++-- .../fluent/models/ProcessModuleInfoInner.java | 25 ++-- .../fluent/models/ProcessThreadInfoInner.java | 25 ++-- .../fluent/models/PublicCertificateInner.java | 25 ++-- .../fluent/models/PushSettingsInner.java | 25 ++-- .../fluent/models/RecommendationInner.java | 25 ++-- .../models/RecommendationRuleInner.java | 25 ++-- .../RelayServiceConnectionEntityInner.java | 25 ++-- ...ateEndpointConnectionArmResourceInner.java | 25 ++-- .../fluent/models/RequestHistoryInner.java | 25 ++-- .../models/ResourceHealthMetadataInner.java | 25 ++-- .../models/ResourceMetricDefinitionInner.java | 25 ++-- .../fluent/models/RestoreRequestInner.java | 25 ++-- .../fluent/models/RevisionInner.java | 36 +++-- .../fluent/models/SiteAuthSettingsInner.java | 25 ++-- .../models/SiteAuthSettingsV2Inner.java | 25 ++-- .../models/SiteConfigResourceInner.java | 25 ++-- .../SiteConfigurationSnapshotInfoInner.java | 25 ++-- .../fluent/models/SiteContainerInner.java | 25 ++-- .../fluent/models/SiteExtensionInfoInner.java | 25 ++-- .../appservice/fluent/models/SiteInner.java | 122 +++++++++++++++-- .../fluent/models/SiteLogsConfigInner.java | 25 ++-- .../fluent/models/SitePatchResourceInner.java | 25 ++-- .../models/SitePhpErrorLogFlagInner.java | 25 ++-- .../fluent/models/SitePropertiesInner.java | 112 +++++++++++++++ .../fluent/models/SiteSourceControlInner.java | 25 ++-- .../models/SlotConfigNamesResourceInner.java | 25 ++-- .../fluent/models/SlotDifferenceInner.java | 25 ++-- .../fluent/models/SnapshotInner.java | 25 ++-- .../fluent/models/SourceControlInner.java | 25 ++-- .../models/StaticSiteArmResourceInner.java | 36 +++-- ...teBasicAuthPropertiesArmResourceInner.java | 25 ++-- .../StaticSiteBuildArmResourceInner.java | 25 ++-- ...eCustomDomainOverviewArmResourceInner.java | 25 ++-- ...cSiteFunctionOverviewArmResourceInner.java | 25 ++-- ...aticSiteLinkedBackendArmResourceInner.java | 25 ++-- .../StaticSiteUserArmResourceInner.java | 25 ++-- ...teUserInvitationResponseResourceInner.java | 25 ++-- ...erProvidedFunctionAppArmResourceInner.java | 25 ++-- .../StaticSitesWorkflowPreviewInner.java | 25 ++-- .../models/StorageMigrationResponseInner.java | 25 ++-- .../fluent/models/StringDictionaryInner.java | 25 ++-- .../fluent/models/StringListInner.java | 25 ++-- .../models/SwiftVirtualNetworkInner.java | 25 ++-- .../fluent/models/TopLevelDomainInner.java | 25 ++-- .../models/TriggeredJobHistoryInner.java | 25 ++-- .../fluent/models/TriggeredWebJobInner.java | 25 ++-- .../appservice/fluent/models/UsageInner.java | 25 ++-- .../appservice/fluent/models/UserInner.java | 25 ++-- .../fluent/models/VnetGatewayInner.java | 25 ++-- .../fluent/models/VnetInfoResourceInner.java | 25 ++-- .../fluent/models/VnetRouteInner.java | 25 ++-- .../VnetValidationFailureDetailsInner.java | 25 ++-- .../fluent/models/WebAppStackInner.java | 25 ++-- .../appservice/fluent/models/WebJobInner.java | 25 ++-- .../models/WebSiteInstanceStatusInner.java | 48 +++++-- .../WebSiteInstanceStatusProperties.java | 28 ++++ .../models/WorkerPoolResourceInner.java | 25 ++-- ...lowRunActionRepetitionDefinitionInner.java | 25 ++-- ...WorkflowRunActionRepetitionProperties.java | 85 +++++++----- .../fluent/models/WorkflowVersionInner.java | 25 ++-- .../implementation/StaticSitesClientImpl.java | 4 +- .../implementation/WebAppsClientImpl.java | 129 +++++++++++++++++- .../WebSiteManagementClientImpl.java | 36 ++--- ...pServiceCertificateOrderPatchResource.java | 25 ++-- .../models/AppServicePlanPatchResource.java | 25 ++-- .../AutoGeneratedDomainNameLabelScope.java | 66 +++++++++ .../models/AzureResourceErrorInfo.java | 5 +- .../models/CertificatePatchResource.java | 25 ++-- .../models/CsmDeploymentStatus.java | 25 ++-- .../models/DefaultErrorResponseError.java | 48 +++---- .../models/DeletedAppRestoreRequest.java | 25 ++-- .../models/DomainPatchResource.java | 25 ++-- .../appservice/models/ExpressionRoot.java | 7 +- .../appservice/models/IpMode.java | 61 +++++++++ .../models/KubeEnvironmentPatchResource.java | 25 ++-- .../appservice/models/MSDeploy.java | 25 ++-- .../models/MigrateMySqlRequest.java | 25 ++-- .../appservice/models/OperationResult.java | 4 +- .../models/PremierAddOnPatchResource.java | 25 ++-- ...LinkConnectionApprovalRequestResource.java | 25 ++-- .../appservice/models/ProxyOnlyResource.java | 24 ++-- .../ReissueCertificateOrderRequest.java | 25 ++-- .../RemotePrivateEndpointConnection.java | 25 ++-- .../models/RenewCertificateOrderRequest.java | 25 ++-- .../models/RunActionCorrelation.java | 1 - .../appservice/models/SiteLoadBalancing.java | 7 +- .../models/SnapshotRestoreRequest.java | 25 ++-- ...tomDomainRequestPropertiesArmResource.java | 25 ++-- .../models/StaticSitePatchResource.java | 25 ++-- .../StaticSiteResetPropertiesArmResource.java | 25 ++-- ...aticSiteUserInvitationRequestResource.java | 25 ++-- .../StaticSiteUserProvidedFunctionApp.java | 25 ++-- .../StaticSiteZipDeploymentArmResource.java | 25 ++-- .../StaticSitesWorkflowPreviewRequest.java | 25 ++-- .../models/StorageMigrationOptions.java | 25 ++-- .../appservice/models/VnetParameters.java | 25 ++-- .../models/VnetValidationTestFailure.java | 25 ++-- .../appservice/models/Workflow.java | 25 ++-- .../models/WorkflowOutputParameter.java | 1 - .../appservice/models/WorkflowResource.java | 24 ++-- .../src/main/java/module-info.java | 1 + .../appservice/FunctionAppsTests.java | 2 +- .../appservice/WebAppsMsiTests.java | 4 +- .../appservice/WebAppsTests.java | 8 +- ...rdersCreateOrUpdateCertificateSamples.java | 2 +- ...ertificateOrdersCreateOrUpdateSamples.java | 2 +- ...ificateOrdersDeleteCertificateSamples.java | 2 +- ...ServiceCertificateOrdersDeleteSamples.java | 2 +- ...ficateOrdersGetByResourceGroupSamples.java | 2 +- ...ertificateOrdersGetCertificateSamples.java | 2 +- ...icateOrdersListByResourceGroupSamples.java | 2 +- ...tificateOrdersListCertificatesSamples.java | 2 +- ...ppServiceCertificateOrdersListSamples.java | 2 +- ...erviceCertificateOrdersReissueSamples.java | 2 +- ...pServiceCertificateOrdersRenewSamples.java | 2 +- ...ceCertificateOrdersResendEmailSamples.java | 2 +- ...icateOrdersResendRequestEmailsSamples.java | 2 +- ...dersRetrieveCertificateActionsSamples.java | 2 +- ...etrieveCertificateEmailHistorySamples.java | 2 +- ...tificateOrdersRetrieveSiteSealSamples.java | 2 +- ...ificateOrdersUpdateCertificateSamples.java | 2 +- ...ServiceCertificateOrdersUpdateSamples.java | 2 +- ...ersValidatePurchaseInformationSamples.java | 2 +- ...ateOrdersVerifyDomainOwnershipSamples.java | 2 +- ...ejectPrivateEndpointConnectionSamples.java | 2 +- ...pServiceEnvironmentsChangeVnetSamples.java | 2 +- ...ntsCreateOrUpdateMultiRolePoolSamples.java | 2 +- ...viceEnvironmentsCreateOrUpdateSamples.java | 2 +- ...nmentsCreateOrUpdateWorkerPoolSamples.java | 2 +- ...seCustomDnsSuffixConfigurationSamples.java | 2 +- ...eletePrivateEndpointConnectionSamples.java | 2 +- .../AppServiceEnvironmentsDeleteSamples.java | 2 +- ...seCustomDnsSuffixConfigurationSamples.java | 2 +- ...etAseV3NetworkingConfigurationSamples.java | 2 +- ...EnvironmentsGetByResourceGroupSamples.java | 2 +- ...EnvironmentsGetDiagnosticsItemSamples.java | 2 +- ...ndNetworkDependenciesEndpointsSamples.java | 2 +- ...ceEnvironmentsGetMultiRolePoolSamples.java | 2 +- ...ndNetworkDependenciesEndpointsSamples.java | 2 +- ...tPrivateEndpointConnectionListSamples.java | 2 +- ...tsGetPrivateEndpointConnectionSamples.java | 2 +- ...onmentsGetPrivateLinkResourcesSamples.java | 2 +- ...pServiceEnvironmentsGetVipInfoSamples.java | 2 +- ...rviceEnvironmentsGetWorkerPoolSamples.java | 2 +- ...nvironmentsListAppServicePlansSamples.java | 2 +- ...nvironmentsListByResourceGroupSamples.java | 2 +- ...viceEnvironmentsListCapacitiesSamples.java | 2 +- ...iceEnvironmentsListDiagnosticsSamples.java | 2 +- ...ListMultiRoleMetricDefinitionsSamples.java | 2 +- ...ePoolInstanceMetricDefinitionsSamples.java | 2 +- ...ironmentsListMultiRolePoolSkusSamples.java | 2 +- ...EnvironmentsListMultiRolePoolsSamples.java | 2 +- ...nvironmentsListMultiRoleUsagesSamples.java | 2 +- ...viceEnvironmentsListOperationsSamples.java | 2 +- .../AppServiceEnvironmentsListSamples.java | 2 +- ...pServiceEnvironmentsListUsagesSamples.java | 2 +- ...ServiceEnvironmentsListWebAppsSamples.java | 2 +- ...ListWebWorkerMetricDefinitionsSamples.java | 2 +- ...nvironmentsListWebWorkerUsagesSamples.java | 2 +- ...rPoolInstanceMetricDefinitionsSamples.java | 2 +- ...EnvironmentsListWorkerPoolSkusSamples.java | 2 +- ...iceEnvironmentsListWorkerPoolsSamples.java | 2 +- .../AppServiceEnvironmentsRebootSamples.java | 2 +- .../AppServiceEnvironmentsResumeSamples.java | 2 +- .../AppServiceEnvironmentsSuspendSamples.java | 2 +- ...stUpgradeAvailableNotificationSamples.java | 2 +- ...seCustomDnsSuffixConfigurationSamples.java | 2 +- ...dateAseNetworkingConfigurationSamples.java | 2 +- ...nvironmentsUpdateMultiRolePoolSamples.java | 2 +- .../AppServiceEnvironmentsUpdateSamples.java | 2 +- ...ceEnvironmentsUpdateWorkerPoolSamples.java | 2 +- .../AppServiceEnvironmentsUpgradeSamples.java | 2 +- .../AppServicePlansCreateOrUpdateSamples.java | 2 +- .../AppServicePlansDeleteSamples.java | 2 +- ...ServicePlansGetByResourceGroupSamples.java | 2 +- ...ervicePlansListByResourceGroupSamples.java | 2 +- .../generated/AppServicePlansListSamples.java | 2 +- .../AppServicePlansUpdateSamples.java | 2 +- ...rtificateOrderDetectorResponseSamples.java | 2 +- ...rtificateOrderDetectorResponseSamples.java | 2 +- ...strationProviderListOperationsSamples.java | 2 +- .../CertificatesCreateOrUpdateSamples.java | 2 +- .../generated/CertificatesDeleteSamples.java | 2 +- ...CertificatesGetByResourceGroupSamples.java | 2 +- ...ertificatesListByResourceGroupSamples.java | 2 +- .../generated/CertificatesListSamples.java | 2 +- .../generated/CertificatesUpdateSamples.java | 2 +- .../ContainerAppsCreateOrUpdateSamples.java | 2 +- .../generated/ContainerAppsDeleteSamples.java | 2 +- ...ontainerAppsGetByResourceGroupSamples.java | 2 +- ...ntainerAppsListByResourceGroupSamples.java | 2 +- .../generated/ContainerAppsListSamples.java | 2 +- .../ContainerAppsListSecretsSamples.java | 2 +- ...rAppsRevisionsActivateRevisionSamples.java | 2 +- ...ppsRevisionsDeactivateRevisionSamples.java | 2 +- ...tainerAppsRevisionsGetRevisionSamples.java | 2 +- ...inerAppsRevisionsListRevisionsSamples.java | 2 +- ...erAppsRevisionsRestartRevisionSamples.java | 2 +- ...AppsGetDeletedWebAppByLocationSamples.java | 2 +- .../DeletedWebAppsListByLocationSamples.java | 2 +- ...DiagnosticsExecuteSiteAnalysisSamples.java | 4 +- ...nosticsExecuteSiteAnalysisSlotSamples.java | 4 +- ...DiagnosticsExecuteSiteDetectorSamples.java | 4 +- ...nosticsExecuteSiteDetectorSlotSamples.java | 4 +- ...ingEnvironmentDetectorResponseSamples.java | 2 +- .../DiagnosticsGetSiteAnalysisSamples.java | 4 +- ...DiagnosticsGetSiteAnalysisSlotSamples.java | 4 +- ...nosticsGetSiteDetectorResponseSamples.java | 4 +- ...icsGetSiteDetectorResponseSlotSamples.java | 4 +- .../DiagnosticsGetSiteDetectorSamples.java | 4 +- ...DiagnosticsGetSiteDetectorSlotSamples.java | 4 +- ...sticsGetSiteDiagnosticCategorySamples.java | 4 +- ...sGetSiteDiagnosticCategorySlotSamples.java | 4 +- ...ngEnvironmentDetectorResponsesSamples.java | 2 +- .../DiagnosticsListSiteAnalysesSamples.java | 4 +- ...iagnosticsListSiteAnalysesSlotSamples.java | 4 +- ...sticsListSiteDetectorResponsesSamples.java | 4 +- ...sListSiteDetectorResponsesSlotSamples.java | 4 +- .../DiagnosticsListSiteDetectorsSamples.java | 4 +- ...agnosticsListSiteDetectorsSlotSamples.java | 4 +- ...csListSiteDiagnosticCategoriesSamples.java | 4 +- ...stSiteDiagnosticCategoriesSlotSamples.java | 4 +- ...strationProviderListOperationsSamples.java | 2 +- .../DomainsCheckAvailabilitySamples.java | 2 +- ...ateOrUpdateOwnershipIdentifierSamples.java | 2 +- .../DomainsCreateOrUpdateSamples.java | 2 +- ...mainsDeleteOwnershipIdentifierSamples.java | 2 +- .../generated/DomainsDeleteSamples.java | 2 +- .../DomainsGetByResourceGroupSamples.java | 2 +- ...ainsGetControlCenterSsoRequestSamples.java | 2 +- .../DomainsGetOwnershipIdentifierSamples.java | 2 +- .../DomainsListByResourceGroupSamples.java | 2 +- ...omainsListOwnershipIdentifiersSamples.java | 2 +- .../DomainsListRecommendationsSamples.java | 2 +- .../generated/DomainsListSamples.java | 2 +- .../generated/DomainsRenewSamples.java | 2 +- .../generated/DomainsTransferOutSamples.java | 2 +- ...mainsUpdateOwnershipIdentifierSamples.java | 2 +- .../generated/DomainsUpdateSamples.java | 2 +- .../GetUsagesInLocationListSamples.java | 2 +- .../GlobalGetDeletedWebAppSamples.java | 2 +- ...lobalGetDeletedWebAppSnapshotsSamples.java | 2 +- ...tionOperationWithAsyncResponseSamples.java | 2 +- ...KubeEnvironmentsCreateOrUpdateSamples.java | 2 +- .../KubeEnvironmentsDeleteSamples.java | 2 +- ...EnvironmentsGetByResourceGroupSamples.java | 2 +- ...nvironmentsListByResourceGroupSamples.java | 2 +- .../KubeEnvironmentsListSamples.java | 2 +- .../KubeEnvironmentsUpdateSamples.java | 2 +- ...etFunctionAppStacksForLocationSamples.java | 2 +- .../ProviderGetFunctionAppStacksSamples.java | 2 +- ...iderGetWebAppStacksForLocationSamples.java | 2 +- .../ProviderGetWebAppStacksSamples.java | 2 +- .../ProviderListOperationsSamples.java | 2 +- ...esourceHealthMetadataGetBySiteSamples.java | 2 +- ...rceHealthMetadataGetBySiteSlotSamples.java | 2 +- ...lthMetadataListByResourceGroupSamples.java | 2 +- ...sourceHealthMetadataListBySiteSamples.java | 2 +- ...ceHealthMetadataListBySiteSlotSamples.java | 2 +- .../ResourceHealthMetadataListSamples.java | 2 +- ...ResourceProviderListAseRegionsSamples.java | 2 +- ...roviderListCustomHostnameSitesSamples.java | 4 +- ...erVerifyHostingEnvironmentVnetSamples.java | 2 +- ...ejectPrivateEndpointConnectionSamples.java | 2 +- ...icSitesCreateOrUpdateBasicAuthSamples.java | 2 +- ...rUpdateBuildDatabaseConnectionSamples.java | 2 +- ...eateOrUpdateDatabaseConnectionSamples.java | 2 +- ...eOrUpdateStaticSiteAppSettingsSamples.java | 2 +- ...dateStaticSiteBuildAppSettingsSamples.java | 2 +- ...icSiteBuildFunctionAppSettingsSamples.java | 2 +- ...OrUpdateStaticSiteCustomDomainSamples.java | 2 +- ...eStaticSiteFunctionAppSettingsSamples.java | 2 +- ...cSitesCreateOrUpdateStaticSiteSamples.java | 2 +- ...sCreateUserRolesInvitationLinkSamples.java | 2 +- ...ipDeploymentForStaticSiteBuildSamples.java | 2 +- ...eateZipDeploymentForStaticSiteSamples.java | 2 +- ...sDeleteBuildDatabaseConnectionSamples.java | 2 +- ...cSitesDeleteDatabaseConnectionSamples.java | 2 +- ...eletePrivateEndpointConnectionSamples.java | 2 +- .../generated/StaticSitesDeleteSamples.java | 2 +- ...aticSitesDeleteStaticSiteBuildSamples.java | 2 +- ...esDeleteStaticSiteCustomDomainSamples.java | 2 +- ...taticSitesDeleteStaticSiteUserSamples.java | 2 +- .../StaticSitesDetachStaticSiteSamples.java | 2 +- ...FunctionAppFromStaticSiteBuildSamples.java | 2 +- ...videdFunctionAppFromStaticSiteSamples.java | 2 +- .../StaticSitesGetBasicAuthSamples.java | 2 +- ...itesGetBuildDatabaseConnectionSamples.java | 2 +- ...dDatabaseConnectionWithDetailsSamples.java | 2 +- ...tesGetBuildDatabaseConnectionsSamples.java | 2 +- ...DatabaseConnectionsWithDetailsSamples.java | 2 +- .../StaticSitesGetByResourceGroupSamples.java | 2 +- ...aticSitesGetDatabaseConnectionSamples.java | 2 +- ...tDatabaseConnectionWithDetailsSamples.java | 2 +- ...ticSitesGetDatabaseConnectionsSamples.java | 2 +- ...DatabaseConnectionsWithDetailsSamples.java | 2 +- ...cSitesGetLinkedBackendForBuildSamples.java | 2 +- .../StaticSitesGetLinkedBackendSamples.java | 2 +- ...SitesGetLinkedBackendsForBuildSamples.java | 2 +- .../StaticSitesGetLinkedBackendsSamples.java | 2 +- ...tPrivateEndpointConnectionListSamples.java | 2 +- ...esGetPrivateEndpointConnectionSamples.java | 2 +- ...icSitesGetPrivateLinkResourcesSamples.java | 2 +- .../StaticSitesGetStaticSiteBuildSamples.java | 2 +- ...StaticSitesGetStaticSiteBuildsSamples.java | 2 +- ...SitesGetStaticSiteCustomDomainSamples.java | 2 +- ...dFunctionAppForStaticSiteBuildSamples.java | 2 +- ...ovidedFunctionAppForStaticSiteSamples.java | 2 +- ...FunctionAppsForStaticSiteBuildSamples.java | 2 +- ...videdFunctionAppsForStaticSiteSamples.java | 2 +- .../StaticSitesLinkBackendSamples.java | 2 +- .../StaticSitesLinkBackendToBuildSamples.java | 2 +- .../StaticSitesListBasicAuthSamples.java | 2 +- ...StaticSitesListByResourceGroupSamples.java | 2 +- .../generated/StaticSitesListSamples.java | 2 +- ...SitesListStaticSiteAppSettingsSamples.java | 2 +- ...ListStaticSiteBuildAppSettingsSamples.java | 2 +- ...icSiteBuildFunctionAppSettingsSamples.java | 2 +- ...esListStaticSiteBuildFunctionsSamples.java | 2 +- ...sListStaticSiteConfiguredRolesSamples.java | 2 +- ...tesListStaticSiteCustomDomainsSamples.java | 2 +- ...tStaticSiteFunctionAppSettingsSamples.java | 2 +- ...icSitesListStaticSiteFunctionsSamples.java | 2 +- ...aticSitesListStaticSiteSecretsSamples.java | 2 +- ...StaticSitesListStaticSiteUsersSamples.java | 2 +- .../StaticSitesPreviewWorkflowSamples.java | 2 +- ...FunctionAppWithStaticSiteBuildSamples.java | 2 +- ...videdFunctionAppWithStaticSiteSamples.java | 2 +- ...aticSitesResetStaticSiteApiKeySamples.java | 2 +- ...ticSitesUnlinkBackendFromBuildSamples.java | 2 +- .../StaticSitesUnlinkBackendSamples.java | 2 +- ...sUpdateBuildDatabaseConnectionSamples.java | 2 +- ...cSitesUpdateDatabaseConnectionSamples.java | 2 +- .../StaticSitesUpdateStaticSiteSamples.java | 2 +- ...taticSitesUpdateStaticSiteUserSamples.java | 2 +- ...icSitesValidateBackendForBuildSamples.java | 2 +- .../StaticSitesValidateBackendSamples.java | 2 +- ...omDomainCanBeAddedToStaticSiteSamples.java | 2 +- .../generated/TopLevelDomainsGetSamples.java | 2 +- .../TopLevelDomainsListAgreementsSamples.java | 2 +- .../generated/TopLevelDomainsListSamples.java | 2 +- .../WebAppsAnalyzeCustomHostnameSamples.java | 2 +- ...bAppsAnalyzeCustomHostnameSlotSamples.java | 2 +- ...ppsApplySlotConfigToProductionSamples.java | 2 +- ...ejectPrivateEndpointConnectionSamples.java | 2 +- ...tPrivateEndpointConnectionSlotSamples.java | 2 +- .../generated/WebAppsBackupSamples.java | 2 +- ...ppsCreateOrUpdateConfigurationSamples.java | 2 +- .../WebAppsCreateOrUpdateSamples.java | 8 +- .../WebAppsCreateOrUpdateSlotSamples.java | 4 +- .../generated/WebAppsDeleteBackupSamples.java | 2 +- ...eletePrivateEndpointConnectionSamples.java | 2 +- ...ePrivateEndpointConnectionSlotSamples.java | 2 +- .../generated/WebAppsDeleteSamples.java | 2 +- .../generated/WebAppsDeleteSlotSamples.java | 2 +- ...WebAppsDeployWorkflowArtifactsSamples.java | 4 +- ...ppsDeployWorkflowArtifactsSlotSamples.java | 2 +- ...GetAppSettingKeyVaultReferenceSamples.java | 2 +- ...ppSettingKeyVaultReferenceSlotSamples.java | 2 +- ...tAppSettingsKeyVaultReferencesSamples.java | 2 +- ...SettingsKeyVaultReferencesSlotSamples.java | 2 +- .../WebAppsGetAuthSettingsSamples.java | 2 +- .../WebAppsGetAuthSettingsV2Samples.java | 2 +- ...etAuthSettingsV2WithoutSecretsSamples.java | 2 +- .../WebAppsGetBackupStatusSamples.java | 2 +- .../WebAppsGetByResourceGroupSamples.java | 2 +- .../WebAppsGetConfigurationSamples.java | 2 +- .../WebAppsGetFtpAllowedSamples.java | 2 +- .../WebAppsGetFtpAllowedSlotSamples.java | 2 +- .../WebAppsGetInstanceInfoSamples.java | 2 +- .../WebAppsGetInstanceInfoSlotSamples.java | 2 +- ...WebAppsGetInstanceWorkflowSlotSamples.java | 2 +- ...ebAppsGetNetworkTraceOperationSamples.java | 2 +- ...psGetNetworkTraceOperationSlotSamples.java | 2 +- ...GetNetworkTraceOperationSlotV2Samples.java | 2 +- ...AppsGetNetworkTraceOperationV2Samples.java | 2 +- .../WebAppsGetNetworkTracesSamples.java | 2 +- .../WebAppsGetNetworkTracesSlotSamples.java | 2 +- .../WebAppsGetNetworkTracesSlotV2Samples.java | 2 +- .../WebAppsGetNetworkTracesV2Samples.java | 2 +- ...psGetPrivateEndpointConnectionSamples.java | 2 +- ...tPrivateEndpointConnectionSlotSamples.java | 2 +- ...WebAppsGetPrivateLinkResourcesSamples.java | 2 +- ...ppsGetPrivateLinkResourcesSlotSamples.java | 2 +- ...ProductionSiteDeploymentStatusSamples.java | 2 +- .../WebAppsGetScmAllowedSamples.java | 2 +- .../WebAppsGetScmAllowedSlotSamples.java | 2 +- .../generated/WebAppsGetSlotSamples.java | 2 +- ...etSlotSiteDeploymentStatusSlotSamples.java | 2 +- .../generated/WebAppsGetWorkflowSamples.java | 2 +- ...WebAppsListApplicationSettingsSamples.java | 2 +- ...WebAppsListBackupStatusSecretsSamples.java | 2 +- .../generated/WebAppsListBackupsSamples.java | 2 +- ...cPublishingCredentialsPoliciesSamples.java | 2 +- ...lishingCredentialsPoliciesSlotSamples.java | 2 +- .../WebAppsListByResourceGroupSamples.java | 2 +- .../WebAppsListConfigurationsSamples.java | 2 +- ...bAppsListInstanceWorkflowsSlotSamples.java | 2 +- ...oductionSiteDeploymentStatusesSamples.java | 2 +- .../generated/WebAppsListSamples.java | 2 +- .../WebAppsListSiteBackupsSamples.java | 2 +- .../WebAppsListSiteBackupsSlotSamples.java | 2 +- ...SlotSiteDeploymentStatusesSlotSamples.java | 2 +- .../generated/WebAppsListSlotsSamples.java | 2 +- ...ebAppsListWorkflowsConnectionsSamples.java | 2 +- ...psListWorkflowsConnectionsSlotSamples.java | 2 +- .../WebAppsListWorkflowsSamples.java | 2 +- .../generated/WebAppsRestoreSamples.java | 2 +- .../WebAppsStartNetworkTraceSamples.java | 2 +- .../WebAppsStartNetworkTraceSlotSamples.java | 2 +- ...rtWebSiteNetworkTraceOperationSamples.java | 2 +- ...bSiteNetworkTraceOperationSlotSamples.java | 2 +- .../WebAppsStopNetworkTraceSamples.java | 2 +- .../WebAppsStopNetworkTraceSlotSamples.java | 2 +- ...WebAppsStopWebSiteNetworkTraceSamples.java | 2 +- ...ppsStopWebSiteNetworkTraceSlotSamples.java | 2 +- ...bAppsUpdateApplicationSettingsSamples.java | 2 +- .../WebAppsUpdateAuthSettingsSamples.java | 2 +- .../WebAppsUpdateAuthSettingsV2Samples.java | 2 +- ...AppsUpdateAzureStorageAccountsSamples.java | 2 +- .../WebAppsUpdateFtpAllowedSamples.java | 2 +- .../WebAppsUpdateFtpAllowedSlotSamples.java | 2 +- .../WebAppsUpdateMachineKeySamples.java | 27 ++++ .../generated/WebAppsUpdateSamples.java | 2 +- .../WebAppsUpdateScmAllowedSamples.java | 2 +- .../WebAppsUpdateScmAllowedSlotSamples.java | 2 +- .../generated/WebAppsUpdateSlotSamples.java | 2 +- ...orkflowRunActionRepetitionsGetSamples.java | 2 +- ...epetitionsListExpressionTracesSamples.java | 2 +- ...rkflowRunActionRepetitionsListSamples.java | 2 +- ...RepetitionsRequestHistoriesGetSamples.java | 2 +- ...epetitionsRequestHistoriesListSamples.java | 2 +- ...owRunActionScopeRepetitionsGetSamples.java | 2 +- ...wRunActionScopeRepetitionsListSamples.java | 2 +- .../WorkflowRunActionsGetSamples.java | 2 +- ...RunActionsListExpressionTracesSamples.java | 2 +- .../WorkflowRunActionsListSamples.java | 2 +- .../generated/WorkflowRunsCancelSamples.java | 2 +- .../generated/WorkflowRunsGetSamples.java | 2 +- .../generated/WorkflowRunsListSamples.java | 2 +- .../WorkflowTriggerHistoriesGetSamples.java | 2 +- .../WorkflowTriggerHistoriesListSamples.java | 2 +- ...rkflowTriggerHistoriesResubmitSamples.java | 2 +- .../generated/WorkflowTriggersGetSamples.java | 2 +- .../WorkflowTriggersGetSchemaJsonSamples.java | 2 +- ...orkflowTriggersListCallbackUrlSamples.java | 2 +- .../WorkflowTriggersListSamples.java | 2 +- .../generated/WorkflowTriggersRunSamples.java | 2 +- .../generated/WorkflowVersionsGetSamples.java | 2 +- .../WorkflowVersionsListSamples.java | 2 +- .../WorkflowsRegenerateAccessKeySamples.java | 2 +- .../generated/WorkflowsValidateSamples.java | 2 +- 510 files changed, 2835 insertions(+), 2278 deletions(-) create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoGeneratedDomainNameLabelScope.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IpMode.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateMachineKeySamples.java diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index 9b923d0bf874b..59428d38f9968 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -9,7 +9,7 @@ "dir": "azure-resourcemanager-appservice", "source": "specification/web/resource-manager/readme.md", "package": "com.azure.resourcemanager.appservice", - "args": "--tag=package-2023-12 --add-inner=AppServiceCertificate --remove-inner=CsmDeploymentStatus --name-for-ungrouped-operations=ResourceProvider" + "args": "--tag=package-2024-04 --add-inner=AppServiceCertificate --remove-inner=CsmDeploymentStatus --name-for-ungrouped-operations=ResourceProvider" }, "appservice-hybrid": { "dir": "../resourcemanagerhybrid/azure-resourcemanager-appservice", diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md index 7de0a5efdea1f..e1bcfe666b48a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md @@ -2,13 +2,11 @@ ## 2.45.0-beta.1 (Unreleased) -### Features Added - -### Breaking Changes +### Other Changes -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Updated `api-version` to `2024-04-01`. ## 2.44.0 (2024-10-25) diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/assets.json b/sdk/resourcemanager/azure-resourcemanager-appservice/assets.json index 55e46f304fb5a..7c23f9844ef4d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/assets.json +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/resourcemanager/azure-resourcemanager-appservice", - "Tag": "java/resourcemanager/azure-resourcemanager-appservice_408105378c" + "Tag": "java/resourcemanager/azure-resourcemanager-appservice_cc88df4aa7" } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/StaticSitesClient.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/StaticSitesClient.java index 031c8cba7ebf7..e3112fa42f6e1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/StaticSitesClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/StaticSitesClient.java @@ -22,10 +22,10 @@ import com.azure.resourcemanager.appservice.fluent.models.StaticSiteCustomDomainOverviewArmResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteFunctionOverviewArmResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteLinkedBackendArmResourceInner; -import com.azure.resourcemanager.appservice.fluent.models.StaticSitesWorkflowPreviewInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteUserArmResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteUserInvitationResponseResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteUserProvidedFunctionAppArmResourceInner; +import com.azure.resourcemanager.appservice.fluent.models.StaticSitesWorkflowPreviewInner; import com.azure.resourcemanager.appservice.fluent.models.StringDictionaryInner; import com.azure.resourcemanager.appservice.fluent.models.StringListInner; import com.azure.resourcemanager.appservice.models.BasicAuthName; @@ -33,9 +33,9 @@ import com.azure.resourcemanager.appservice.models.StaticSiteCustomDomainRequestPropertiesArmResource; import com.azure.resourcemanager.appservice.models.StaticSitePatchResource; import com.azure.resourcemanager.appservice.models.StaticSiteResetPropertiesArmResource; -import com.azure.resourcemanager.appservice.models.StaticSitesWorkflowPreviewRequest; import com.azure.resourcemanager.appservice.models.StaticSiteUserInvitationRequestResource; import com.azure.resourcemanager.appservice.models.StaticSiteZipDeploymentArmResource; +import com.azure.resourcemanager.appservice.models.StaticSitesWorkflowPreviewRequest; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java index a04172742b57c..ba95d1a44305d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebAppsClient.java @@ -31,9 +31,9 @@ import com.azure.resourcemanager.appservice.fluent.models.HybridConnectionInner; import com.azure.resourcemanager.appservice.fluent.models.IdentifierInner; import com.azure.resourcemanager.appservice.fluent.models.KeyInfoInner; -import com.azure.resourcemanager.appservice.fluent.models.MigrateMySqlStatusInner; import com.azure.resourcemanager.appservice.fluent.models.MSDeployLogInner; import com.azure.resourcemanager.appservice.fluent.models.MSDeployStatusInner; +import com.azure.resourcemanager.appservice.fluent.models.MigrateMySqlStatusInner; import com.azure.resourcemanager.appservice.fluent.models.NetworkFeaturesInner; import com.azure.resourcemanager.appservice.fluent.models.NetworkTraceInner; import com.azure.resourcemanager.appservice.fluent.models.OperationInner; @@ -79,8 +79,8 @@ import com.azure.resourcemanager.appservice.models.CsmPublishingProfileOptions; import com.azure.resourcemanager.appservice.models.CsmSlotEntity; import com.azure.resourcemanager.appservice.models.DeletedAppRestoreRequest; -import com.azure.resourcemanager.appservice.models.MigrateMySqlRequest; import com.azure.resourcemanager.appservice.models.MSDeploy; +import com.azure.resourcemanager.appservice.models.MigrateMySqlRequest; import com.azure.resourcemanager.appservice.models.PremierAddOnPatchResource; import com.azure.resourcemanager.appservice.models.SnapshotRestoreRequest; import com.azure.resourcemanager.appservice.models.StorageMigrationOptions; @@ -9180,6 +9180,63 @@ Response listSyncFunctionTriggersWithResponse(String resou @ServiceMethod(returns = ReturnType.SINGLE) FunctionSecretsInner listSyncFunctionTriggers(String resourceGroupName, String name); + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> updateMachineKeyWithResponseAsync(String resourceGroupName, String name); + + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateMachineKeyAsync(String resourceGroupName, String name); + + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateMachineKeyWithResponse(String resourceGroupName, String name, Context context); + + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.appservice.models.DefaultErrorResponseErrorException thrown if the request is + * rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Object updateMachineKey(String resourceGroupName, String name); + /** * Restores a web app. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java index 9fe47bca2e099..f44629d8f60e5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/WebSiteManagementClient.java @@ -67,6 +67,13 @@ public interface WebSiteManagementClient { */ CertificateRegistrationProvidersClient getCertificateRegistrationProviders(); + /** + * Gets the DomainRegistrationProvidersClient object to access its operations. + * + * @return the DomainRegistrationProvidersClient object. + */ + DomainRegistrationProvidersClient getDomainRegistrationProviders(); + /** * Gets the DomainsClient object to access its operations. * @@ -81,13 +88,6 @@ public interface WebSiteManagementClient { */ TopLevelDomainsClient getTopLevelDomains(); - /** - * Gets the DomainRegistrationProvidersClient object to access its operations. - * - * @return the DomainRegistrationProvidersClient object. - */ - DomainRegistrationProvidersClient getDomainRegistrationProviders(); - /** * Gets the AppServiceEnvironmentsClient object to access its operations. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AddressResponseInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AddressResponseInner.java index b851005be1b10..b69b2d7ed8271 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AddressResponseInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AddressResponseInner.java @@ -24,9 +24,9 @@ public final class AddressResponseInner extends ProxyOnlyResource { private AddressResponseProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class AddressResponseInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AddressResponseInner class. @@ -54,13 +54,13 @@ private AddressResponseProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -193,7 +193,6 @@ public AddressResponseInner withVipMappings(List vipMappings) */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AnalysisDefinitionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AnalysisDefinitionInner.java index 2149f19ebb972..29cdf0247fd90 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AnalysisDefinitionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AnalysisDefinitionInner.java @@ -22,9 +22,9 @@ public final class AnalysisDefinitionInner extends ProxyOnlyResource { private AnalysisDefinitionProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class AnalysisDefinitionInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AnalysisDefinitionInner class. @@ -52,13 +52,13 @@ private AnalysisDefinitionProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -106,7 +106,6 @@ public String description() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApiKVReferenceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApiKVReferenceInner.java index c52c73639e878..d14b3caecac89 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApiKVReferenceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApiKVReferenceInner.java @@ -25,9 +25,9 @@ public final class ApiKVReferenceInner extends ProxyOnlyResource { private ApiKVReferenceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class ApiKVReferenceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ApiKVReferenceInner class. @@ -55,13 +55,13 @@ private ApiKVReferenceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -307,7 +307,6 @@ public ApiKVReferenceInner withActiveVersion(String activeVersion) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateOrderInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateOrderInner.java index 5f76bdd6be01f..0e3c027b0b9d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateOrderInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateOrderInner.java @@ -31,14 +31,16 @@ public final class AppServiceCertificateOrderInner extends Resource { private AppServiceCertificateOrderProperties innerProperties; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -46,9 +48,9 @@ public final class AppServiceCertificateOrderInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServiceCertificateOrderInner class. @@ -66,7 +68,9 @@ private AppServiceCertificateOrderProperties innerProperties() { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -75,7 +79,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the AppServiceCertificateOrderInner object itself. @@ -86,13 +92,13 @@ public AppServiceCertificateOrderInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -106,13 +112,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificatePatchResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificatePatchResourceInner.java index 78da64c42aaca..1c669b22f480c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificatePatchResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificatePatchResourceInner.java @@ -23,9 +23,9 @@ public final class AppServiceCertificatePatchResourceInner extends ProxyOnlyReso private AppServiceCertificateInner innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class AppServiceCertificatePatchResourceInner extends ProxyOnlyReso private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServiceCertificatePatchResourceInner class. @@ -53,13 +53,13 @@ private AppServiceCertificateInner innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -153,7 +153,6 @@ public KeyVaultSecretStatus provisioningState() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateResourceInner.java index 5fad726b0a914..a2557e296691c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceCertificateResourceInner.java @@ -24,14 +24,16 @@ public final class AppServiceCertificateResourceInner extends Resource { private AppServiceCertificateInner innerProperties; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +41,9 @@ public final class AppServiceCertificateResourceInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServiceCertificateResourceInner class. @@ -59,7 +61,9 @@ private AppServiceCertificateInner innerProperties() { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -68,7 +72,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the AppServiceCertificateResourceInner object itself. @@ -79,13 +85,13 @@ public AppServiceCertificateResourceInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -99,13 +105,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentPatchResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentPatchResourceInner.java index 63a161f409501..3204f5a70fda2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentPatchResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentPatchResourceInner.java @@ -30,9 +30,9 @@ public final class AppServiceEnvironmentPatchResourceInner extends ProxyOnlyReso private AppServiceEnvironmentInner innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -40,9 +40,9 @@ public final class AppServiceEnvironmentPatchResourceInner extends ProxyOnlyReso private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServiceEnvironmentPatchResourceInner class. @@ -60,13 +60,13 @@ private AppServiceEnvironmentInner innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -80,13 +80,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -475,7 +475,6 @@ public UpgradeAvailability upgradeAvailability() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentResourceInner.java index 349a314a2c2e1..86584659845f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServiceEnvironmentResourceInner.java @@ -31,14 +31,16 @@ public final class AppServiceEnvironmentResourceInner extends Resource { private AppServiceEnvironmentInner innerProperties; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -46,9 +48,9 @@ public final class AppServiceEnvironmentResourceInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServiceEnvironmentResourceInner class. @@ -66,7 +68,9 @@ private AppServiceEnvironmentInner innerProperties() { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -75,7 +79,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the AppServiceEnvironmentResourceInner object itself. @@ -86,13 +92,13 @@ public AppServiceEnvironmentResourceInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -106,13 +112,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java index 64ee2a80c3a15..ad3d0412ef96f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AppServicePlanInner.java @@ -40,14 +40,16 @@ public final class AppServicePlanInner extends Resource { private ExtendedLocation extendedLocation; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -55,9 +57,9 @@ public final class AppServicePlanInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServicePlanInner class. @@ -115,7 +117,9 @@ public AppServicePlanInner withExtendedLocation(ExtendedLocation extendedLocatio } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -124,7 +128,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the AppServicePlanInner object itself. @@ -135,13 +141,13 @@ public AppServicePlanInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -155,13 +161,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApplicationStackResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApplicationStackResourceInner.java index 0f19acd183fbc..c83e2f09950de 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApplicationStackResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ApplicationStackResourceInner.java @@ -24,9 +24,9 @@ public final class ApplicationStackResourceInner extends ProxyOnlyResource { private ApplicationStack innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class ApplicationStackResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ApplicationStackResourceInner class. @@ -54,13 +54,13 @@ private ApplicationStack innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -239,7 +239,6 @@ public ApplicationStackResourceInner withIsDeprecated(List isD */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseRegionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseRegionInner.java index 408e0d2e65302..c5e7a4c550b98 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseRegionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseRegionInner.java @@ -23,9 +23,9 @@ public final class AseRegionInner extends ProxyOnlyResource { private AseRegionProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class AseRegionInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AseRegionInner class. @@ -53,13 +53,13 @@ private AseRegionProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -180,7 +180,6 @@ public AseRegionInner withAvailableOS(List availableOS) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseV3NetworkingConfigurationInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseV3NetworkingConfigurationInner.java index ad25a313285d5..bd5dba8e71a48 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseV3NetworkingConfigurationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AseV3NetworkingConfigurationInner.java @@ -23,9 +23,9 @@ public final class AseV3NetworkingConfigurationInner extends ProxyOnlyResource { private AseV3NetworkingConfigurationProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class AseV3NetworkingConfigurationInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AseV3NetworkingConfigurationInner class. @@ -53,13 +53,13 @@ private AseV3NetworkingConfigurationProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -231,7 +231,6 @@ public AseV3NetworkingConfigurationInner withInboundIpAddressOverride(String inb */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AzureStoragePropertyDictionaryResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AzureStoragePropertyDictionaryResourceInner.java index 178b8253c43e3..49e87d94b0fd8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AzureStoragePropertyDictionaryResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/AzureStoragePropertyDictionaryResourceInner.java @@ -24,9 +24,9 @@ public final class AzureStoragePropertyDictionaryResourceInner extends ProxyOnly private Map properties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class AzureStoragePropertyDictionaryResourceInner extends ProxyOnly private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AzureStoragePropertyDictionaryResourceInner class. @@ -65,13 +65,13 @@ public AzureStoragePropertyDictionaryResourceInner withProperties(Map { if (e != null) { diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupItemInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupItemInner.java index 7a30b0cc2cc96..e13454c2f8f38 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupItemInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupItemInner.java @@ -26,9 +26,9 @@ public final class BackupItemInner extends ProxyOnlyResource { private BackupItemProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -36,9 +36,9 @@ public final class BackupItemInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of BackupItemInner class. @@ -56,13 +56,13 @@ private BackupItemProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -76,13 +76,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -228,7 +228,6 @@ public Long websiteSizeInBytes() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupRequestInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupRequestInner.java index 6a6742c1ad3c2..9d24e718642e6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupRequestInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BackupRequestInner.java @@ -25,9 +25,9 @@ public final class BackupRequestInner extends ProxyOnlyResource { private BackupRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class BackupRequestInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of BackupRequestInner class. @@ -55,13 +55,13 @@ private BackupRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -217,7 +217,6 @@ public BackupRequestInner withDatabases(List databases) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BillingMeterInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BillingMeterInner.java index 0e1f12366b10a..8b635b39cf2f6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BillingMeterInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/BillingMeterInner.java @@ -23,9 +23,9 @@ public final class BillingMeterInner extends ProxyOnlyResource { private BillingMeterProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class BillingMeterInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of BillingMeterInner class. @@ -53,13 +53,13 @@ private BillingMeterProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -259,7 +259,6 @@ public BillingMeterInner withMultiplier(Double multiplier) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java index e2ff8dfce87f5..a7860a3c7ed4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CertificateInner.java @@ -29,14 +29,16 @@ public final class CertificateInner extends Resource { private CertificateProperties innerProperties; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -44,9 +46,9 @@ public final class CertificateInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CertificateInner class. @@ -64,7 +66,9 @@ private CertificateProperties innerProperties() { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -73,7 +77,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the CertificateInner object itself. @@ -84,13 +90,13 @@ public CertificateInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -104,13 +110,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ConnectionStringDictionaryInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ConnectionStringDictionaryInner.java index cdcbda5e88f6b..7a55bbc66ca3d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ConnectionStringDictionaryInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ConnectionStringDictionaryInner.java @@ -24,9 +24,9 @@ public final class ConnectionStringDictionaryInner extends ProxyOnlyResource { private Map properties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class ConnectionStringDictionaryInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ConnectionStringDictionaryInner class. @@ -65,13 +65,13 @@ public ConnectionStringDictionaryInner withProperties(Map { if (e != null) { diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContainerAppInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContainerAppInner.java index 3112c775f4b2d..f5eef9cca7982 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContainerAppInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContainerAppInner.java @@ -26,14 +26,16 @@ public final class ContainerAppInner extends Resource { private ContainerAppProperties innerProperties; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -41,9 +43,9 @@ public final class ContainerAppInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ContainerAppInner class. @@ -61,7 +63,9 @@ private ContainerAppProperties innerProperties() { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -70,7 +74,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the ContainerAppInner object itself. @@ -81,13 +87,13 @@ public ContainerAppInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -101,13 +107,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContinuousWebJobInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContinuousWebJobInner.java index 29101ba8dfc57..980745520db90 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContinuousWebJobInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ContinuousWebJobInner.java @@ -25,9 +25,9 @@ public final class ContinuousWebJobInner extends ProxyOnlyResource { private ContinuousWebJobProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class ContinuousWebJobInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ContinuousWebJobInner class. @@ -55,13 +55,13 @@ private ContinuousWebJobProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -330,7 +330,6 @@ public ContinuousWebJobInner withSettings(Map settings) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmPublishingCredentialsPoliciesEntityInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmPublishingCredentialsPoliciesEntityInner.java index 485712c8cbea8..c2bbdfdd045cf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmPublishingCredentialsPoliciesEntityInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CsmPublishingCredentialsPoliciesEntityInner.java @@ -22,9 +22,9 @@ public final class CsmPublishingCredentialsPoliciesEntityInner extends ProxyOnly private CsmPublishingCredentialsPoliciesEntityProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class CsmPublishingCredentialsPoliciesEntityInner extends ProxyOnly private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CsmPublishingCredentialsPoliciesEntityInner class. @@ -52,13 +52,13 @@ private CsmPublishingCredentialsPoliciesEntityProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -122,7 +122,6 @@ public CsmPublishingCredentialsPoliciesEntityInner withAllow(Boolean allow) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomDnsSuffixConfigurationInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomDnsSuffixConfigurationInner.java index 825e35225eadf..e8e2a0dba5efa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomDnsSuffixConfigurationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomDnsSuffixConfigurationInner.java @@ -23,9 +23,9 @@ public final class CustomDnsSuffixConfigurationInner extends ProxyOnlyResource { private CustomDnsSuffixConfigurationProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class CustomDnsSuffixConfigurationInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CustomDnsSuffixConfigurationInner class. @@ -53,13 +53,13 @@ private CustomDnsSuffixConfigurationProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -189,7 +189,6 @@ public CustomDnsSuffixConfigurationInner withKeyVaultReferenceIdentity(String ke */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameAnalysisResultInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameAnalysisResultInner.java index b34e5c6be6adf..6d0109180b301 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameAnalysisResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameAnalysisResultInner.java @@ -25,9 +25,9 @@ public final class CustomHostnameAnalysisResultInner extends ProxyOnlyResource { private CustomHostnameAnalysisResultProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class CustomHostnameAnalysisResultInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CustomHostnameAnalysisResultInner class. @@ -55,13 +55,13 @@ private CustomHostnameAnalysisResultProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -273,7 +273,6 @@ public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List al */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameSitesInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameSitesInner.java index b648e368ab8b4..9a438a90c9569 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameSitesInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/CustomHostnameSitesInner.java @@ -23,9 +23,9 @@ public final class CustomHostnameSitesInner extends ProxyOnlyResource { private CustomHostnameSitesProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class CustomHostnameSitesInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CustomHostnameSitesInner class. @@ -53,13 +53,13 @@ private CustomHostnameSitesProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -167,7 +167,6 @@ public CustomHostnameSitesInner withSiteResourceIds(List siteRe */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DatabaseConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DatabaseConnectionInner.java index b2e576eacc127..6cf2d64d6331a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DatabaseConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DatabaseConnectionInner.java @@ -24,9 +24,9 @@ public final class DatabaseConnectionInner extends ProxyOnlyResource { private DatabaseConnectionProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class DatabaseConnectionInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DatabaseConnectionInner class. @@ -54,13 +54,13 @@ private DatabaseConnectionProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -206,7 +206,6 @@ public List configuration */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeletedSiteInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeletedSiteInner.java index 77e28801cc878..92ddbf736d597 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeletedSiteInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeletedSiteInner.java @@ -22,9 +22,9 @@ public final class DeletedSiteInner extends ProxyOnlyResource { private DeletedSiteProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class DeletedSiteInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DeletedSiteInner class. @@ -52,13 +52,13 @@ private DeletedSiteProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -169,7 +169,6 @@ public String geoRegionName() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeploymentInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeploymentInner.java index 9dec0d3756246..1c0b11021aea7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeploymentInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DeploymentInner.java @@ -23,9 +23,9 @@ public final class DeploymentInner extends ProxyOnlyResource { private DeploymentProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class DeploymentInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DeploymentInner class. @@ -53,13 +53,13 @@ private DeploymentProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -305,7 +305,6 @@ public DeploymentInner withDetails(String details) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorDefinitionResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorDefinitionResourceInner.java index 33a2864f96473..41e1e9260585f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorDefinitionResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorDefinitionResourceInner.java @@ -22,9 +22,9 @@ public final class DetectorDefinitionResourceInner extends ProxyOnlyResource { private DetectorDefinition innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class DetectorDefinitionResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DetectorDefinitionResourceInner class. @@ -52,13 +52,13 @@ private DetectorDefinition innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -133,7 +133,6 @@ public Boolean isEnabled() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorResponseInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorResponseInner.java index f6055c4897c3a..8431fa8a412e5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorResponseInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DetectorResponseInner.java @@ -28,9 +28,9 @@ public final class DetectorResponseInner extends ProxyOnlyResource { private DetectorResponseProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -38,9 +38,9 @@ public final class DetectorResponseInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DetectorResponseInner class. @@ -58,13 +58,13 @@ private DetectorResponseProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -78,13 +78,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -220,7 +220,6 @@ public DetectorResponseInner withSuggestedUtterances(QueryUtterancesResults sugg */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DiagnosticAnalysisInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DiagnosticAnalysisInner.java index 9560a83d0b7ae..2bae754e6cffc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DiagnosticAnalysisInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/DiagnosticAnalysisInner.java @@ -26,9 +26,9 @@ public final class DiagnosticAnalysisInner extends ProxyOnlyResource { private DiagnosticAnalysisProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -36,9 +36,9 @@ public final class DiagnosticAnalysisInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DiagnosticAnalysisInner class. @@ -56,13 +56,13 @@ private DiagnosticAnalysisProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -76,13 +76,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -216,7 +216,6 @@ public DiagnosticAnalysisInner withNonCorrelatedDetectors(List entries() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployProperties.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployProperties.java index d9cfc08a6fe23..7f0a3a1b86096 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployProperties.java @@ -121,7 +121,6 @@ public MSDeployProperties withAppOffline(Boolean appOffline) { */ @Override public void validate() { - super.validate(); if (addOnPackages() != null) { addOnPackages().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployStatusInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployStatusInner.java index b8ed3353d7430..08bf8ee52c91a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployStatusInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MSDeployStatusInner.java @@ -24,9 +24,9 @@ public final class MSDeployStatusInner extends ProxyOnlyResource { private MSDeployStatusProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class MSDeployStatusInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of MSDeployStatusInner class. @@ -54,13 +54,13 @@ private MSDeployStatusProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -144,7 +144,6 @@ public Boolean complete() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MigrateMySqlStatusInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MigrateMySqlStatusInner.java index 67ed4c3a975e1..c40240ad60eeb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MigrateMySqlStatusInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MigrateMySqlStatusInner.java @@ -23,9 +23,9 @@ public final class MigrateMySqlStatusInner extends ProxyOnlyResource { private MigrateMySqlStatusProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class MigrateMySqlStatusInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of MigrateMySqlStatusInner class. @@ -53,13 +53,13 @@ private MigrateMySqlStatusProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -125,7 +125,6 @@ public Boolean localMySqlEnabled() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/NetworkFeaturesInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/NetworkFeaturesInner.java index 9c2200c64e8b6..da8801fd5c126 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/NetworkFeaturesInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/NetworkFeaturesInner.java @@ -23,9 +23,9 @@ public final class NetworkFeaturesInner extends ProxyOnlyResource { private NetworkFeaturesProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class NetworkFeaturesInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of NetworkFeaturesInner class. @@ -53,13 +53,13 @@ private NetworkFeaturesProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -134,7 +134,6 @@ public List hybridConnectionsV2() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnInner.java index 5b2fd09499e4f..d598b0afc2ff7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnInner.java @@ -23,14 +23,16 @@ public final class PremierAddOnInner extends Resource { private PremierAddOnProperties innerProperties; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -38,9 +40,9 @@ public final class PremierAddOnInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PremierAddOnInner class. @@ -58,7 +60,9 @@ private PremierAddOnProperties innerProperties() { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -67,7 +71,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the PremierAddOnInner object itself. @@ -78,13 +84,13 @@ public PremierAddOnInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -98,13 +104,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnOfferInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnOfferInner.java index 80d81ec344381..b6606a3b6a0bf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnOfferInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PremierAddOnOfferInner.java @@ -23,9 +23,9 @@ public final class PremierAddOnOfferInner extends ProxyOnlyResource { private PremierAddOnOfferProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class PremierAddOnOfferInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PremierAddOnOfferInner class. @@ -53,13 +53,13 @@ private PremierAddOnOfferProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -331,7 +331,6 @@ public PremierAddOnOfferInner withMarketplaceOffer(String marketplaceOffer) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PrivateAccessInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PrivateAccessInner.java index a26ef616d87fd..28704f8376cb1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PrivateAccessInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PrivateAccessInner.java @@ -24,9 +24,9 @@ public final class PrivateAccessInner extends ProxyOnlyResource { private PrivateAccessProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class PrivateAccessInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PrivateAccessInner class. @@ -54,13 +54,13 @@ private PrivateAccessProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -145,7 +145,6 @@ public PrivateAccessInner withVirtualNetworks(List */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessInfoInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessInfoInner.java index 8471cfd60480d..d302a9ae4309a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessInfoInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessInfoInner.java @@ -25,9 +25,9 @@ public final class ProcessInfoInner extends ProxyOnlyResource { private ProcessInfoProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class ProcessInfoInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ProcessInfoInner class. @@ -55,13 +55,13 @@ private ProcessInfoProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -914,7 +914,6 @@ public ProcessInfoInner withDescription(String description) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessModuleInfoInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessModuleInfoInner.java index 1062c3b968dd2..9887edc7eb375 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessModuleInfoInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessModuleInfoInner.java @@ -22,9 +22,9 @@ public final class ProcessModuleInfoInner extends ProxyOnlyResource { private ProcessModuleInfoProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class ProcessModuleInfoInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ProcessModuleInfoInner class. @@ -52,13 +52,13 @@ private ProcessModuleInfoProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -350,7 +350,6 @@ public ProcessModuleInfoInner withLanguage(String language) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessThreadInfoInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessThreadInfoInner.java index 6862265d11ee6..8fd6918ee2539 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessThreadInfoInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ProcessThreadInfoInner.java @@ -23,9 +23,9 @@ public final class ProcessThreadInfoInner extends ProxyOnlyResource { private ProcessThreadInfoProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class ProcessThreadInfoInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ProcessThreadInfoInner class. @@ -53,13 +53,13 @@ private ProcessThreadInfoProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -360,7 +360,6 @@ public ProcessThreadInfoInner withWaitReason(String waitReason) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PublicCertificateInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PublicCertificateInner.java index b9a31547a72ad..be619ff0e6f4e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PublicCertificateInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PublicCertificateInner.java @@ -25,9 +25,9 @@ public final class PublicCertificateInner extends ProxyOnlyResource { private PublicCertificateProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class PublicCertificateInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PublicCertificateInner class. @@ -55,13 +55,13 @@ private PublicCertificateProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -155,7 +155,6 @@ public String thumbprint() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PushSettingsInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PushSettingsInner.java index a6e979abf6c0d..92a1ae27bd08e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PushSettingsInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/PushSettingsInner.java @@ -22,9 +22,9 @@ public final class PushSettingsInner extends ProxyOnlyResource { private PushSettingsProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class PushSettingsInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PushSettingsInner class. @@ -52,13 +52,13 @@ private PushSettingsProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -201,7 +201,6 @@ public PushSettingsInner withDynamicTagsJson(String dynamicTagsJson) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationInner.java index 665a3e90268e1..983870b95b8ee 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationInner.java @@ -28,9 +28,9 @@ public final class RecommendationInner extends ProxyOnlyResource { private RecommendationProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -38,9 +38,9 @@ public final class RecommendationInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RecommendationInner class. @@ -58,13 +58,13 @@ private RecommendationProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -78,13 +78,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -626,7 +626,6 @@ public RecommendationInner withForwardLink(String forwardLink) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationRuleInner.java index 3a05c0f94d83a..3c4d424994dca 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationRuleInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RecommendationRuleInner.java @@ -26,9 +26,9 @@ public final class RecommendationRuleInner extends ProxyOnlyResource { private RecommendationRuleProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -36,9 +36,9 @@ public final class RecommendationRuleInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RecommendationRuleInner class. @@ -56,13 +56,13 @@ private RecommendationRuleProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -76,13 +76,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -392,7 +392,6 @@ public RecommendationRuleInner withForwardLink(String forwardLink) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RelayServiceConnectionEntityInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RelayServiceConnectionEntityInner.java index 7cfaeaf1ce147..4411004b68f27 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RelayServiceConnectionEntityInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RelayServiceConnectionEntityInner.java @@ -22,9 +22,9 @@ public final class RelayServiceConnectionEntityInner extends ProxyOnlyResource { private RelayServiceConnectionEntityProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class RelayServiceConnectionEntityInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RelayServiceConnectionEntityInner class. @@ -52,13 +52,13 @@ private RelayServiceConnectionEntityProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -258,7 +258,6 @@ public RelayServiceConnectionEntityInner withBiztalkUri(String biztalkUri) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RemotePrivateEndpointConnectionArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RemotePrivateEndpointConnectionArmResourceInner.java index 4e0ec5c1b6957..a6a87216202d6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RemotePrivateEndpointConnectionArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RemotePrivateEndpointConnectionArmResourceInner.java @@ -25,9 +25,9 @@ public final class RemotePrivateEndpointConnectionArmResourceInner extends Proxy private RemotePrivateEndpointConnectionArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class RemotePrivateEndpointConnectionArmResourceInner extends Proxy private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RemotePrivateEndpointConnectionArmResourceInner class. @@ -55,13 +55,13 @@ private RemotePrivateEndpointConnectionArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -179,7 +179,6 @@ public RemotePrivateEndpointConnectionArmResourceInner withIpAddresses(List tags) { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceHealthMetadataInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceHealthMetadataInner.java index c3a0f052b4f7b..b47b60f371ae3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceHealthMetadataInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceHealthMetadataInner.java @@ -22,9 +22,9 @@ public final class ResourceHealthMetadataInner extends ProxyOnlyResource { private ResourceHealthMetadataProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class ResourceHealthMetadataInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ResourceHealthMetadataInner class. @@ -52,13 +52,13 @@ private ResourceHealthMetadataProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -143,7 +143,6 @@ public ResourceHealthMetadataInner withSignalAvailability(Boolean signalAvailabi */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceMetricDefinitionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceMetricDefinitionInner.java index ea2ea9b0bc1d7..2da87582a1f89 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceMetricDefinitionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/ResourceMetricDefinitionInner.java @@ -25,9 +25,9 @@ public final class ResourceMetricDefinitionInner extends ProxyOnlyResource { private ResourceMetricDefinitionProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class ResourceMetricDefinitionInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ResourceMetricDefinitionInner class. @@ -55,13 +55,13 @@ private ResourceMetricDefinitionProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -146,7 +146,6 @@ public Map properties() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RestoreRequestInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RestoreRequestInner.java index b1c80cc1cec99..e2c7b0fc5dbca 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RestoreRequestInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RestoreRequestInner.java @@ -25,9 +25,9 @@ public final class RestoreRequestInner extends ProxyOnlyResource { private RestoreRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class RestoreRequestInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RestoreRequestInner class. @@ -55,13 +55,13 @@ private RestoreRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -369,7 +369,6 @@ public RestoreRequestInner withHostingEnvironment(String hostingEnvironment) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RevisionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RevisionInner.java index 41bc9a5d730bf..6cf8df87da93b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RevisionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/RevisionInner.java @@ -27,14 +27,16 @@ public final class RevisionInner extends Resource { private RevisionProperties innerProperties; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -42,9 +44,9 @@ public final class RevisionInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RevisionInner class. @@ -62,7 +64,9 @@ private RevisionProperties innerProperties() { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -71,7 +75,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the RevisionInner object itself. @@ -82,13 +88,13 @@ public RevisionInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -102,13 +108,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java index d0a47cb4b8c51..3a4f2fe2e4897 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsInner.java @@ -25,9 +25,9 @@ public final class SiteAuthSettingsInner extends ProxyOnlyResource { private SiteAuthSettingsProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class SiteAuthSettingsInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteAuthSettingsInner class. @@ -55,13 +55,13 @@ private SiteAuthSettingsProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -1138,7 +1138,6 @@ public SiteAuthSettingsInner withConfigVersion(String configVersion) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java index b9d1681727962..6876946c5fa40 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteAuthSettingsV2Inner.java @@ -27,9 +27,9 @@ public final class SiteAuthSettingsV2Inner extends ProxyOnlyResource { private SiteAuthSettingsV2Properties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -37,9 +37,9 @@ public final class SiteAuthSettingsV2Inner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteAuthSettingsV2Inner class. @@ -57,13 +57,13 @@ private SiteAuthSettingsV2Properties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -77,13 +77,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -227,7 +227,6 @@ public SiteAuthSettingsV2Inner withHttpSettings(HttpSettings httpSettings) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java index 488f2b607e73d..2c7bc362c2fe8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigResourceInner.java @@ -45,9 +45,9 @@ public final class SiteConfigResourceInner extends ProxyOnlyResource { private SiteConfigInner innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -55,9 +55,9 @@ public final class SiteConfigResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteConfigResourceInner class. @@ -75,13 +75,13 @@ private SiteConfigInner innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -95,13 +95,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -1816,7 +1816,6 @@ public SiteConfigResourceInner withPublicNetworkAccess(String publicNetworkAcces */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigurationSnapshotInfoInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigurationSnapshotInfoInner.java index 70aeb5948707e..cbd86043bfa3f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigurationSnapshotInfoInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteConfigurationSnapshotInfoInner.java @@ -23,9 +23,9 @@ public final class SiteConfigurationSnapshotInfoInner extends ProxyOnlyResource private SiteConfigurationSnapshotInfoProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class SiteConfigurationSnapshotInfoInner extends ProxyOnlyResource private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteConfigurationSnapshotInfoInner class. @@ -53,13 +53,13 @@ private SiteConfigurationSnapshotInfoProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -116,7 +116,6 @@ public Integer snapshotId() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteContainerInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteContainerInner.java index ee491aafa8029..d423c744c9699 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteContainerInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteContainerInner.java @@ -27,9 +27,9 @@ public final class SiteContainerInner extends ProxyOnlyResource { private SiteContainerProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -37,9 +37,9 @@ public final class SiteContainerInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteContainerInner class. @@ -57,13 +57,13 @@ private SiteContainerProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -77,13 +77,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -352,7 +352,6 @@ public SiteContainerInner withEnvironmentVariables(List env */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteExtensionInfoInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteExtensionInfoInner.java index ac99a82b4d0b8..37b994901e938 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteExtensionInfoInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteExtensionInfoInner.java @@ -25,9 +25,9 @@ public final class SiteExtensionInfoInner extends ProxyOnlyResource { private SiteExtensionInfoProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class SiteExtensionInfoInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteExtensionInfoInner class. @@ -55,13 +55,13 @@ private SiteExtensionInfoProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -562,7 +562,6 @@ public SiteExtensionInfoInner withComment(String comment) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java index 9ab895ad5bc64..f8d3c22488d46 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteInner.java @@ -9,6 +9,7 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.appservice.models.AutoGeneratedDomainNameLabelScope; import com.azure.resourcemanager.appservice.models.ClientCertMode; import com.azure.resourcemanager.appservice.models.CloningInfo; import com.azure.resourcemanager.appservice.models.DaprConfig; @@ -16,6 +17,7 @@ import com.azure.resourcemanager.appservice.models.FunctionAppConfig; import com.azure.resourcemanager.appservice.models.HostingEnvironmentProfile; import com.azure.resourcemanager.appservice.models.HostnameSslState; +import com.azure.resourcemanager.appservice.models.IpMode; import com.azure.resourcemanager.appservice.models.ManagedServiceIdentity; import com.azure.resourcemanager.appservice.models.RedundancyMode; import com.azure.resourcemanager.appservice.models.ResourceConfig; @@ -50,14 +52,16 @@ public final class SiteInner extends Resource { private ExtendedLocation extendedLocation; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -65,9 +69,9 @@ public final class SiteInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteInner class. @@ -125,7 +129,9 @@ public SiteInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -134,7 +140,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the SiteInner object itself. @@ -145,13 +153,13 @@ public SiteInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -165,13 +173,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -803,6 +811,54 @@ public SiteInner withClientCertExclusionPaths(String clientCertExclusionPaths) { return this; } + /** + * Get the ipMode property: Specifies the IP mode of the app. + * + * @return the ipMode value. + */ + public IpMode ipMode() { + return this.innerProperties() == null ? null : this.innerProperties().ipMode(); + } + + /** + * Set the ipMode property: Specifies the IP mode of the app. + * + * @param ipMode the ipMode value to set. + * @return the SiteInner object itself. + */ + public SiteInner withIpMode(IpMode ipMode) { + if (this.innerProperties() == null) { + this.innerProperties = new SitePropertiesInner(); + } + this.innerProperties().withIpMode(ipMode); + return this; + } + + /** + * Get the endToEndEncryptionEnabled property: Whether to use end to end encryption between the FrontEnd and the + * Worker. + * + * @return the endToEndEncryptionEnabled value. + */ + public Boolean endToEndEncryptionEnabled() { + return this.innerProperties() == null ? null : this.innerProperties().endToEndEncryptionEnabled(); + } + + /** + * Set the endToEndEncryptionEnabled property: Whether to use end to end encryption between the FrontEnd and the + * Worker. + * + * @param endToEndEncryptionEnabled the endToEndEncryptionEnabled value to set. + * @return the SiteInner object itself. + */ + public SiteInner withEndToEndEncryptionEnabled(Boolean endToEndEncryptionEnabled) { + if (this.innerProperties() == null) { + this.innerProperties = new SitePropertiesInner(); + } + this.innerProperties().withEndToEndEncryptionEnabled(endToEndEncryptionEnabled); + return this; + } + /** * Get the hostNamesDisabled property: <code>true</code> to disable the public hostnames of the app; * otherwise, <code>false</code>. @@ -1128,6 +1184,32 @@ public SiteInner withKeyVaultReferenceIdentity(String keyVaultReferenceIdentity) return this; } + /** + * Get the autoGeneratedDomainNameLabelScope property: Specifies the scope of uniqueness for the default hostname + * during resource creation. + * + * @return the autoGeneratedDomainNameLabelScope value. + */ + public AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope() { + return this.innerProperties() == null ? null : this.innerProperties().autoGeneratedDomainNameLabelScope(); + } + + /** + * Set the autoGeneratedDomainNameLabelScope property: Specifies the scope of uniqueness for the default hostname + * during resource creation. + * + * @param autoGeneratedDomainNameLabelScope the autoGeneratedDomainNameLabelScope value to set. + * @return the SiteInner object itself. + */ + public SiteInner + withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope) { + if (this.innerProperties() == null) { + this.innerProperties = new SitePropertiesInner(); + } + this.innerProperties().withAutoGeneratedDomainNameLabelScope(autoGeneratedDomainNameLabelScope); + return this; + } + /** * Get the virtualNetworkSubnetId property: Azure Resource Manager ID of the Virtual network and subnet to be joined * by Regional VNET Integration. @@ -1184,6 +1266,16 @@ public SiteInner withManagedEnvironmentId(String managedEnvironmentId) { return this; } + /** + * Get the sku property: Current SKU of application based on associated App Service Plan. Some valid SKU values are + * Free, Shared, Basic, Dynamic, FlexConsumption, Standard, Premium, PremiumV2, PremiumV3, Isolated, IsolatedV2. + * + * @return the sku value. + */ + public String sku() { + return this.innerProperties() == null ? null : this.innerProperties().sku(); + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteLogsConfigInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteLogsConfigInner.java index ded8277df8fa1..6b7fd3be569af 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteLogsConfigInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SiteLogsConfigInner.java @@ -25,9 +25,9 @@ public final class SiteLogsConfigInner extends ProxyOnlyResource { private SiteLogsConfigProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class SiteLogsConfigInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SiteLogsConfigInner class. @@ -55,13 +55,13 @@ private SiteLogsConfigProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -192,7 +192,6 @@ public SiteLogsConfigInner withDetailedErrorMessages(EnabledConfig detailedError */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java index e00c2c1d4a827..a1557e03b5d20 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePatchResourceInner.java @@ -40,9 +40,9 @@ public final class SitePatchResourceInner extends ProxyOnlyResource { private ManagedServiceIdentity identity; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -50,9 +50,9 @@ public final class SitePatchResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SitePatchResourceInner class. @@ -90,13 +90,13 @@ public SitePatchResourceInner withIdentity(ManagedServiceIdentity identity) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -110,13 +110,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -889,7 +889,6 @@ public SitePatchResourceInner withVirtualNetworkSubnetId(String virtualNetworkSu */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePhpErrorLogFlagInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePhpErrorLogFlagInner.java index 60f9016aabf75..4bcff33c392a1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePhpErrorLogFlagInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePhpErrorLogFlagInner.java @@ -22,9 +22,9 @@ public final class SitePhpErrorLogFlagInner extends ProxyOnlyResource { private SitePhpErrorLogFlagProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class SitePhpErrorLogFlagInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SitePhpErrorLogFlagInner class. @@ -52,13 +52,13 @@ private SitePhpErrorLogFlagProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -189,7 +189,6 @@ public SitePhpErrorLogFlagInner withMasterLogErrorsMaxLength(String masterLogErr */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePropertiesInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePropertiesInner.java index 8a26ac1fb60a5..1fe2b0f13a987 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePropertiesInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SitePropertiesInner.java @@ -10,12 +10,14 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.appservice.models.AutoGeneratedDomainNameLabelScope; import com.azure.resourcemanager.appservice.models.ClientCertMode; import com.azure.resourcemanager.appservice.models.CloningInfo; import com.azure.resourcemanager.appservice.models.DaprConfig; import com.azure.resourcemanager.appservice.models.FunctionAppConfig; import com.azure.resourcemanager.appservice.models.HostingEnvironmentProfile; import com.azure.resourcemanager.appservice.models.HostnameSslState; +import com.azure.resourcemanager.appservice.models.IpMode; import com.azure.resourcemanager.appservice.models.RedundancyMode; import com.azure.resourcemanager.appservice.models.ResourceConfig; import com.azure.resourcemanager.appservice.models.SiteAvailabilityState; @@ -197,6 +199,16 @@ public final class SitePropertiesInner implements JsonSerializabletrue to disable the public hostnames of the app; otherwise, false. * If true, the app is only accessible via API management process. @@ -298,6 +310,11 @@ public final class SitePropertiesInner implements JsonSerializable azu */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SlotDifferenceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SlotDifferenceInner.java index d791866f66f14..5a3e701db5374 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SlotDifferenceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SlotDifferenceInner.java @@ -22,9 +22,9 @@ public final class SlotDifferenceInner extends ProxyOnlyResource { private SlotDifferenceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class SlotDifferenceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SlotDifferenceInner class. @@ -52,13 +52,13 @@ private SlotDifferenceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -160,7 +160,6 @@ public String description() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SnapshotInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SnapshotInner.java index 7039ed7aed2b5..59375994fc942 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SnapshotInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SnapshotInner.java @@ -22,9 +22,9 @@ public final class SnapshotInner extends ProxyOnlyResource { private SnapshotProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class SnapshotInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SnapshotInner class. @@ -52,13 +52,13 @@ private SnapshotProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -106,7 +106,6 @@ public String time() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SourceControlInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SourceControlInner.java index a7d824126d51c..049ea786e8066 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SourceControlInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SourceControlInner.java @@ -23,9 +23,9 @@ public final class SourceControlInner extends ProxyOnlyResource { private SourceControlProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class SourceControlInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SourceControlInner class. @@ -53,13 +53,13 @@ private SourceControlProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -190,7 +190,6 @@ public SourceControlInner withExpirationTime(OffsetDateTime expirationTime) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java index 4a3691ba1d3d6..15947be4cc9fd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteArmResourceInner.java @@ -44,14 +44,16 @@ public final class StaticSiteArmResourceInner extends Resource { private ManagedServiceIdentity identity; /* - * Kind of resource. + * Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service- + * resource-kind-reference for details supported values for kind. */ private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -59,9 +61,9 @@ public final class StaticSiteArmResourceInner extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteArmResourceInner class. @@ -119,7 +121,9 @@ public StaticSiteArmResourceInner withIdentity(ManagedServiceIdentity identity) } /** - * Get the kind property: Kind of resource. + * Get the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @return the kind value. */ @@ -128,7 +132,9 @@ public String kind() { } /** - * Set the kind property: Kind of resource. + * Set the kind property: Kind of resource. If the resource is an app, you can refer to + * https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference + * for details supported values for kind. * * @param kind the kind value to set. * @return the StaticSiteArmResourceInner object itself. @@ -139,13 +145,13 @@ public StaticSiteArmResourceInner withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -159,13 +165,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBasicAuthPropertiesArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBasicAuthPropertiesArmResourceInner.java index 5887edb978028..342b5da7c284c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBasicAuthPropertiesArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBasicAuthPropertiesArmResourceInner.java @@ -23,9 +23,9 @@ public final class StaticSiteBasicAuthPropertiesArmResourceInner extends ProxyOn private StaticSiteBasicAuthPropertiesArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StaticSiteBasicAuthPropertiesArmResourceInner extends ProxyOn private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteBasicAuthPropertiesArmResourceInner class. @@ -53,13 +53,13 @@ private StaticSiteBasicAuthPropertiesArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -204,7 +204,6 @@ public String secretState() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBuildArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBuildArmResourceInner.java index a8fe7140c6710..414bd74ccd722 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBuildArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteBuildArmResourceInner.java @@ -28,9 +28,9 @@ public final class StaticSiteBuildArmResourceInner extends ProxyOnlyResource { private StaticSiteBuildArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -38,9 +38,9 @@ public final class StaticSiteBuildArmResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteBuildArmResourceInner class. @@ -58,13 +58,13 @@ private StaticSiteBuildArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -78,13 +78,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -193,7 +193,6 @@ public List databaseConnections() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteCustomDomainOverviewArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteCustomDomainOverviewArmResourceInner.java index fe950a18f4c4d..e39386038aa47 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteCustomDomainOverviewArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteCustomDomainOverviewArmResourceInner.java @@ -24,9 +24,9 @@ public final class StaticSiteCustomDomainOverviewArmResourceInner extends ProxyO private StaticSiteCustomDomainOverviewArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class StaticSiteCustomDomainOverviewArmResourceInner extends ProxyO private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteCustomDomainOverviewArmResourceInner class. @@ -54,13 +54,13 @@ private StaticSiteCustomDomainOverviewArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -144,7 +144,6 @@ public String errorMessage() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteFunctionOverviewArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteFunctionOverviewArmResourceInner.java index afa231c976250..ef80dfd99c091 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteFunctionOverviewArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteFunctionOverviewArmResourceInner.java @@ -23,9 +23,9 @@ public final class StaticSiteFunctionOverviewArmResourceInner extends ProxyOnlyR private StaticSiteFunctionOverviewArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StaticSiteFunctionOverviewArmResourceInner extends ProxyOnlyR private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteFunctionOverviewArmResourceInner class. @@ -53,13 +53,13 @@ private StaticSiteFunctionOverviewArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -116,7 +116,6 @@ public TriggerTypes triggerType() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteLinkedBackendArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteLinkedBackendArmResourceInner.java index b2f77f1f16fed..ce7e5ec82128e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteLinkedBackendArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteLinkedBackendArmResourceInner.java @@ -23,9 +23,9 @@ public final class StaticSiteLinkedBackendArmResourceInner extends ProxyOnlyReso private StaticSiteLinkedBackendArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StaticSiteLinkedBackendArmResourceInner extends ProxyOnlyReso private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteLinkedBackendArmResourceInner class. @@ -53,13 +53,13 @@ private StaticSiteLinkedBackendArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -162,7 +162,6 @@ public String provisioningState() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserArmResourceInner.java index 1191be6f173fd..4b20818d425b3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserArmResourceInner.java @@ -22,9 +22,9 @@ public final class StaticSiteUserArmResourceInner extends ProxyOnlyResource { private StaticSiteUserArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StaticSiteUserArmResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteUserArmResourceInner class. @@ -52,13 +52,13 @@ private StaticSiteUserArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -147,7 +147,6 @@ public StaticSiteUserArmResourceInner withRoles(String roles) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserInvitationResponseResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserInvitationResponseResourceInner.java index 080a95a8b7f34..0395ba8819a8c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserInvitationResponseResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserInvitationResponseResourceInner.java @@ -23,9 +23,9 @@ public final class StaticSiteUserInvitationResponseResourceInner extends ProxyOn private StaticSiteUserInvitationResponseResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StaticSiteUserInvitationResponseResourceInner extends ProxyOn private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteUserInvitationResponseResourceInner class. @@ -53,13 +53,13 @@ private StaticSiteUserInvitationResponseResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -116,7 +116,6 @@ public String invitationUrl() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserProvidedFunctionAppArmResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserProvidedFunctionAppArmResourceInner.java index 0b8cbc1c36bcc..ac0666ae60d6a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserProvidedFunctionAppArmResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSiteUserProvidedFunctionAppArmResourceInner.java @@ -23,9 +23,9 @@ public final class StaticSiteUserProvidedFunctionAppArmResourceInner extends Pro private StaticSiteUserProvidedFunctionAppArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StaticSiteUserProvidedFunctionAppArmResourceInner extends Pro private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteUserProvidedFunctionAppArmResourceInner class. @@ -53,13 +53,13 @@ private StaticSiteUserProvidedFunctionAppArmResourceProperties innerProperties() } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -153,7 +153,6 @@ public OffsetDateTime createdOn() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSitesWorkflowPreviewInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSitesWorkflowPreviewInner.java index 0632eea616dd3..ec1428e263e91 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSitesWorkflowPreviewInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StaticSitesWorkflowPreviewInner.java @@ -22,9 +22,9 @@ public final class StaticSitesWorkflowPreviewInner extends ProxyOnlyResource { private StaticSitesWorkflowPreviewProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StaticSitesWorkflowPreviewInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSitesWorkflowPreviewInner class. @@ -52,13 +52,13 @@ private StaticSitesWorkflowPreviewProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -115,7 +115,6 @@ public String contents() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StorageMigrationResponseInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StorageMigrationResponseInner.java index d0e72b48d5c2c..32b5957d9138f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StorageMigrationResponseInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StorageMigrationResponseInner.java @@ -22,9 +22,9 @@ public final class StorageMigrationResponseInner extends ProxyOnlyResource { private StorageMigrationResponseProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StorageMigrationResponseInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StorageMigrationResponseInner class. @@ -52,13 +52,13 @@ private StorageMigrationResponseProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -107,7 +107,6 @@ public String operationId() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringDictionaryInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringDictionaryInner.java index b7ab284c48b23..bcb8d2f4f264c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringDictionaryInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringDictionaryInner.java @@ -23,9 +23,9 @@ public final class StringDictionaryInner extends ProxyOnlyResource { private Map properties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StringDictionaryInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StringDictionaryInner class. @@ -64,13 +64,13 @@ public StringDictionaryInner withProperties(Map properties) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -84,13 +84,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -109,7 +109,6 @@ public StringDictionaryInner withKind(String kind) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringListInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringListInner.java index 7ec420ec31401..8f095c3b69be0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringListInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/StringListInner.java @@ -23,9 +23,9 @@ public final class StringListInner extends ProxyOnlyResource { private List properties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StringListInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StringListInner class. @@ -64,13 +64,13 @@ public StringListInner withProperties(List properties) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -84,13 +84,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -109,7 +109,6 @@ public StringListInner withKind(String kind) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SwiftVirtualNetworkInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SwiftVirtualNetworkInner.java index 4e5a56298adaa..48dbd8b90374d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SwiftVirtualNetworkInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/SwiftVirtualNetworkInner.java @@ -22,9 +22,9 @@ public final class SwiftVirtualNetworkInner extends ProxyOnlyResource { private SwiftVirtualNetworkProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class SwiftVirtualNetworkInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SwiftVirtualNetworkInner class. @@ -52,13 +52,13 @@ private SwiftVirtualNetworkProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -147,7 +147,6 @@ public SwiftVirtualNetworkInner withSwiftSupported(Boolean swiftSupported) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TopLevelDomainInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TopLevelDomainInner.java index bcc74d6edbb40..2bf6d68c27b5c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TopLevelDomainInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TopLevelDomainInner.java @@ -22,9 +22,9 @@ public final class TopLevelDomainInner extends ProxyOnlyResource { private TopLevelDomainProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class TopLevelDomainInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of TopLevelDomainInner class. @@ -52,13 +52,13 @@ private TopLevelDomainProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -122,7 +122,6 @@ public TopLevelDomainInner withPrivacy(Boolean privacy) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredJobHistoryInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredJobHistoryInner.java index 208815ec6eced..a1716056a4c03 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredJobHistoryInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredJobHistoryInner.java @@ -24,9 +24,9 @@ public final class TriggeredJobHistoryInner extends ProxyOnlyResource { private TriggeredJobHistoryProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class TriggeredJobHistoryInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of TriggeredJobHistoryInner class. @@ -54,13 +54,13 @@ private TriggeredJobHistoryProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -122,7 +122,6 @@ public TriggeredJobHistoryInner withRuns(List runs) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredWebJobInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredWebJobInner.java index 3c59ac130b150..8c73232fffcd3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredWebJobInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/TriggeredWebJobInner.java @@ -25,9 +25,9 @@ public final class TriggeredWebJobInner extends ProxyOnlyResource { private TriggeredWebJobProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class TriggeredWebJobInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of TriggeredWebJobInner class. @@ -55,13 +55,13 @@ private TriggeredWebJobProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -378,7 +378,6 @@ public TriggeredWebJobInner withSettings(Map settings) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UsageInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UsageInner.java index 4c40163e887c6..f5f20eb7d29b7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UsageInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UsageInner.java @@ -24,9 +24,9 @@ public final class UsageInner extends ProxyOnlyResource { private UsageProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class UsageInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of UsageInner class. @@ -54,13 +54,13 @@ private UsageProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -171,7 +171,6 @@ public String siteMode() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UserInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UserInner.java index 355c0e214f75b..26d83e31d3a21 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UserInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/UserInner.java @@ -22,9 +22,9 @@ public final class UserInner extends ProxyOnlyResource { private UserProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class UserInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of UserInner class. @@ -52,13 +52,13 @@ private UserProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -212,7 +212,6 @@ public UserInner withScmUri(String scmUri) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetGatewayInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetGatewayInner.java index 1a1beaa8374d6..aa68949c2a172 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetGatewayInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetGatewayInner.java @@ -22,9 +22,9 @@ public final class VnetGatewayInner extends ProxyOnlyResource { private VnetGatewayProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class VnetGatewayInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VnetGatewayInner class. @@ -52,13 +52,13 @@ private VnetGatewayProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -143,7 +143,6 @@ public VnetGatewayInner withVpnPackageUri(String vpnPackageUri) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetInfoResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetInfoResourceInner.java index d7ae9f2bc3118..e5f20fb6a0d0a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetInfoResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetInfoResourceInner.java @@ -23,9 +23,9 @@ public final class VnetInfoResourceInner extends ProxyOnlyResource { private VnetInfo innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class VnetInfoResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VnetInfoResourceInner class. @@ -53,13 +53,13 @@ private VnetInfo innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -224,7 +224,6 @@ public VnetInfoResourceInner withIsSwift(Boolean isSwift) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetRouteInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetRouteInner.java index dea68dd830c3e..fd2972981a169 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetRouteInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetRouteInner.java @@ -23,9 +23,9 @@ public final class VnetRouteInner extends ProxyOnlyResource { private VnetRouteProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class VnetRouteInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VnetRouteInner class. @@ -53,13 +53,13 @@ private VnetRouteProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -181,7 +181,6 @@ public VnetRouteInner withRouteType(RouteType routeType) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetValidationFailureDetailsInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetValidationFailureDetailsInner.java index fe29c6cdc685d..0101dbc674422 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetValidationFailureDetailsInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/VnetValidationFailureDetailsInner.java @@ -24,9 +24,9 @@ public final class VnetValidationFailureDetailsInner extends ProxyOnlyResource { private VnetValidationFailureDetailsProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class VnetValidationFailureDetailsInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VnetValidationFailureDetailsInner class. @@ -54,13 +54,13 @@ private VnetValidationFailureDetailsProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -191,7 +191,6 @@ public VnetValidationFailureDetailsInner withWarnings(List settings) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusInner.java index 0bffc4256ed1c..73b7dd165d1fe 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusInner.java @@ -25,9 +25,9 @@ public final class WebSiteInstanceStatusInner extends ProxyOnlyResource { private WebSiteInstanceStatusProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public final class WebSiteInstanceStatusInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of WebSiteInstanceStatusInner class. @@ -55,13 +55,13 @@ private WebSiteInstanceStatusProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -75,13 +75,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -231,6 +231,29 @@ public WebSiteInstanceStatusInner withContainers(Map cont return this; } + /** + * Get the physicalZone property: The physical zone that the instance is in. + * + * @return the physicalZone value. + */ + public String physicalZone() { + return this.innerProperties() == null ? null : this.innerProperties().physicalZone(); + } + + /** + * Set the physicalZone property: The physical zone that the instance is in. + * + * @param physicalZone the physicalZone value to set. + * @return the WebSiteInstanceStatusInner object itself. + */ + public WebSiteInstanceStatusInner withPhysicalZone(String physicalZone) { + if (this.innerProperties() == null) { + this.innerProperties = new WebSiteInstanceStatusProperties(); + } + this.innerProperties().withPhysicalZone(physicalZone); + return this; + } + /** * Validates the instance. * @@ -238,7 +261,6 @@ public WebSiteInstanceStatusInner withContainers(Map cont */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusProperties.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusProperties.java index 7eb09e3eb51d6..f9447bb4142e4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WebSiteInstanceStatusProperties.java @@ -49,6 +49,11 @@ public final class WebSiteInstanceStatusProperties implements JsonSerializable containers; + /* + * The physical zone that the instance is in + */ + private String physicalZone; + /** * Creates an instance of WebSiteInstanceStatusProperties class. */ @@ -175,6 +180,26 @@ public WebSiteInstanceStatusProperties withContainers(Map return this; } + /** + * Get the physicalZone property: The physical zone that the instance is in. + * + * @return the physicalZone value. + */ + public String physicalZone() { + return this.physicalZone; + } + + /** + * Set the physicalZone property: The physical zone that the instance is in. + * + * @param physicalZone the physicalZone value to set. + * @return the WebSiteInstanceStatusProperties object itself. + */ + public WebSiteInstanceStatusProperties withPhysicalZone(String physicalZone) { + this.physicalZone = physicalZone; + return this; + } + /** * Validates the instance. * @@ -202,6 +227,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("consoleUrl", this.consoleUrl); jsonWriter.writeStringField("healthCheckUrl", this.healthCheckUrl); jsonWriter.writeMapField("containers", this.containers, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("physicalZone", this.physicalZone); return jsonWriter.writeEndObject(); } @@ -234,6 +260,8 @@ public static WebSiteInstanceStatusProperties fromJson(JsonReader jsonReader) th } else if ("containers".equals(fieldName)) { Map containers = reader.readMap(reader1 -> ContainerInfo.fromJson(reader1)); deserializedWebSiteInstanceStatusProperties.containers = containers; + } else if ("physicalZone".equals(fieldName)) { + deserializedWebSiteInstanceStatusProperties.physicalZone = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkerPoolResourceInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkerPoolResourceInner.java index 03bf9982b42a7..20a7e72821fe2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkerPoolResourceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkerPoolResourceInner.java @@ -30,9 +30,9 @@ public final class WorkerPoolResourceInner extends ProxyOnlyResource { private SkuDescription sku; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -40,9 +40,9 @@ public final class WorkerPoolResourceInner extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of WorkerPoolResourceInner class. @@ -80,13 +80,13 @@ public WorkerPoolResourceInner withSku(SkuDescription sku) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -100,13 +100,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -226,7 +226,6 @@ public List instanceNames() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java index b5b8f1974a2f3..16acd8dba91a4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionDefinitionInner.java @@ -31,9 +31,9 @@ public final class WorkflowRunActionRepetitionDefinitionInner extends WorkflowRe private WorkflowRunActionRepetitionProperties innerProperties = new WorkflowRunActionRepetitionProperties(); /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -41,9 +41,9 @@ public final class WorkflowRunActionRepetitionDefinitionInner extends WorkflowRe private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of WorkflowRunActionRepetitionDefinitionInner class. @@ -61,13 +61,13 @@ private WorkflowRunActionRepetitionProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -81,13 +81,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -376,7 +376,6 @@ public WorkflowRunActionRepetitionDefinitionInner withError(Object error) { */ @Override public void validate() { - super.validate(); if (innerProperties() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionProperties.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionProperties.java index a39f04d52fa66..04318353a4f36 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowRunActionRepetitionProperties.java @@ -31,34 +31,34 @@ public final class WorkflowRunActionRepetitionProperties extends OperationResult private List repetitionIndexes; /* - * Gets the tracking id. + * Gets the tracked properties. */ - private String trackingId; + private Object trackedProperties; /* - * Gets the inputs. + * Gets the link to outputs. */ - private Object inputs; + private ContentLink outputsLink; /* - * Gets the link to inputs. + * Gets the outputs. */ - private ContentLink inputsLink; + private Object outputs; /* - * Gets the outputs. + * Gets the link to inputs. */ - private Object outputs; + private ContentLink inputsLink; /* - * Gets the link to outputs. + * Gets the inputs. */ - private ContentLink outputsLink; + private Object inputs; /* - * Gets the tracked properties. + * Gets the tracking id. */ - private Object trackedProperties; + private String trackingId; /** * Creates an instance of WorkflowRunActionRepetitionProperties class. @@ -87,63 +87,63 @@ public WorkflowRunActionRepetitionProperties withRepetitionIndexes(List e.validate()); } + if (correlation() != null) { + correlation().validate(); + } + if (inputsLink() != null) { + inputsLink().validate(); + } + if (outputsLink() != null) { + outputsLink().validate(); + } + if (retryHistory() != null) { + retryHistory().forEach(e -> e.validate()); + } } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowVersionInner.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowVersionInner.java index e054bd5df67e7..39b752f497f9c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowVersionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/WorkflowVersionInner.java @@ -31,9 +31,9 @@ public final class WorkflowVersionInner extends WorkflowResource { private WorkflowVersionProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -41,9 +41,9 @@ public final class WorkflowVersionInner extends WorkflowResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of WorkflowVersionInner class. @@ -61,13 +61,13 @@ private WorkflowVersionProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -81,13 +81,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -307,7 +307,6 @@ public WorkflowVersionInner withParameters(Map parame */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/StaticSitesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/StaticSitesClientImpl.java index e6a520c7cbe57..77ddc4fd57196 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/StaticSitesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/StaticSitesClientImpl.java @@ -42,10 +42,10 @@ import com.azure.resourcemanager.appservice.fluent.models.StaticSiteCustomDomainOverviewArmResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteFunctionOverviewArmResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteLinkedBackendArmResourceInner; -import com.azure.resourcemanager.appservice.fluent.models.StaticSitesWorkflowPreviewInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteUserArmResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteUserInvitationResponseResourceInner; import com.azure.resourcemanager.appservice.fluent.models.StaticSiteUserProvidedFunctionAppArmResourceInner; +import com.azure.resourcemanager.appservice.fluent.models.StaticSitesWorkflowPreviewInner; import com.azure.resourcemanager.appservice.fluent.models.StringDictionaryInner; import com.azure.resourcemanager.appservice.fluent.models.StringListInner; import com.azure.resourcemanager.appservice.models.BasicAuthName; @@ -62,11 +62,11 @@ import com.azure.resourcemanager.appservice.models.StaticSiteLinkedBackendsCollection; import com.azure.resourcemanager.appservice.models.StaticSitePatchResource; import com.azure.resourcemanager.appservice.models.StaticSiteResetPropertiesArmResource; -import com.azure.resourcemanager.appservice.models.StaticSitesWorkflowPreviewRequest; import com.azure.resourcemanager.appservice.models.StaticSiteUserCollection; import com.azure.resourcemanager.appservice.models.StaticSiteUserInvitationRequestResource; import com.azure.resourcemanager.appservice.models.StaticSiteUserProvidedFunctionAppsCollection; import com.azure.resourcemanager.appservice.models.StaticSiteZipDeploymentArmResource; +import com.azure.resourcemanager.appservice.models.StaticSitesWorkflowPreviewRequest; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java index 7c8da3aae7a0b..0791cd52c8140 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppsClientImpl.java @@ -52,9 +52,9 @@ import com.azure.resourcemanager.appservice.fluent.models.HybridConnectionInner; import com.azure.resourcemanager.appservice.fluent.models.IdentifierInner; import com.azure.resourcemanager.appservice.fluent.models.KeyInfoInner; -import com.azure.resourcemanager.appservice.fluent.models.MigrateMySqlStatusInner; import com.azure.resourcemanager.appservice.fluent.models.MSDeployLogInner; import com.azure.resourcemanager.appservice.fluent.models.MSDeployStatusInner; +import com.azure.resourcemanager.appservice.fluent.models.MigrateMySqlStatusInner; import com.azure.resourcemanager.appservice.fluent.models.NetworkFeaturesInner; import com.azure.resourcemanager.appservice.fluent.models.NetworkTraceInner; import com.azure.resourcemanager.appservice.fluent.models.OperationInner; @@ -110,8 +110,8 @@ import com.azure.resourcemanager.appservice.models.FunctionEnvelopeCollection; import com.azure.resourcemanager.appservice.models.HostnameBindingCollection; import com.azure.resourcemanager.appservice.models.IdentifierCollection; -import com.azure.resourcemanager.appservice.models.MigrateMySqlRequest; import com.azure.resourcemanager.appservice.models.MSDeploy; +import com.azure.resourcemanager.appservice.models.MigrateMySqlRequest; import com.azure.resourcemanager.appservice.models.PerfMonCounterCollection; import com.azure.resourcemanager.appservice.models.PremierAddOnPatchResource; import com.azure.resourcemanager.appservice.models.PrivateEndpointConnectionCollection; @@ -1347,6 +1347,15 @@ Mono> listSyncFunctionTriggers(@HostParam("$host" @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/updatemachinekey") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(DefaultErrorResponseErrorException.class) + Mono> updateMachineKey(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("name") String name, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migrate") @ExpectedResponses({ 200 }) @@ -23705,6 +23714,122 @@ public FunctionSecretsInner listSyncFunctionTriggers(String resourceGroupName, S return listSyncFunctionTriggersWithResponse(resourceGroupName, name, Context.NONE).getValue(); } + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateMachineKeyWithResponseAsync(String resourceGroupName, String name) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.updateMachineKey(this.client.getEndpoint(), resourceGroupName, name, + this.client.getSubscriptionId(), this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateMachineKeyWithResponseAsync(String resourceGroupName, String name, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (name == null) { + return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateMachineKey(this.client.getEndpoint(), resourceGroupName, name, + this.client.getSubscriptionId(), this.client.getApiVersion(), accept, context); + } + + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateMachineKeyAsync(String resourceGroupName, String name) { + return updateMachineKeyWithResponseAsync(resourceGroupName, name) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateMachineKeyWithResponse(String resourceGroupName, String name, Context context) { + return updateMachineKeyWithResponseAsync(resourceGroupName, name, context).block(); + } + + /** + * Updates the machine key of an app. + * + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws DefaultErrorResponseErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return any object. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Object updateMachineKey(String resourceGroupName, String name) { + return updateMachineKeyWithResponse(resourceGroupName, name, Context.NONE).getValue(); + } + /** * Restores a web app. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java index a7f9d491d9a66..8f36544e0b732 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebSiteManagementClientImpl.java @@ -33,13 +33,13 @@ import com.azure.resourcemanager.appservice.fluent.WebSiteManagementClient; import com.azure.resourcemanager.appservice.fluent.WorkflowRunActionRepetitionsClient; import com.azure.resourcemanager.appservice.fluent.WorkflowRunActionRepetitionsRequestHistoriesClient; -import com.azure.resourcemanager.appservice.fluent.WorkflowRunActionsClient; import com.azure.resourcemanager.appservice.fluent.WorkflowRunActionScopeRepetitionsClient; +import com.azure.resourcemanager.appservice.fluent.WorkflowRunActionsClient; import com.azure.resourcemanager.appservice.fluent.WorkflowRunsClient; -import com.azure.resourcemanager.appservice.fluent.WorkflowsClient; import com.azure.resourcemanager.appservice.fluent.WorkflowTriggerHistoriesClient; import com.azure.resourcemanager.appservice.fluent.WorkflowTriggersClient; import com.azure.resourcemanager.appservice.fluent.WorkflowVersionsClient; +import com.azure.resourcemanager.appservice.fluent.WorkflowsClient; import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient; import java.time.Duration; @@ -174,6 +174,20 @@ public CertificateRegistrationProvidersClient getCertificateRegistrationProvider return this.certificateRegistrationProviders; } + /** + * The DomainRegistrationProvidersClient object to access its operations. + */ + private final DomainRegistrationProvidersClient domainRegistrationProviders; + + /** + * Gets the DomainRegistrationProvidersClient object to access its operations. + * + * @return the DomainRegistrationProvidersClient object. + */ + public DomainRegistrationProvidersClient getDomainRegistrationProviders() { + return this.domainRegistrationProviders; + } + /** * The DomainsClient object to access its operations. */ @@ -202,20 +216,6 @@ public TopLevelDomainsClient getTopLevelDomains() { return this.topLevelDomains; } - /** - * The DomainRegistrationProvidersClient object to access its operations. - */ - private final DomainRegistrationProvidersClient domainRegistrationProviders; - - /** - * Gets the DomainRegistrationProvidersClient object to access its operations. - * - * @return the DomainRegistrationProvidersClient object. - */ - public DomainRegistrationProvidersClient getDomainRegistrationProviders() { - return this.domainRegistrationProviders; - } - /** * The AppServiceEnvironmentsClient object to access its operations. */ @@ -585,13 +585,13 @@ public WorkflowVersionsClient getWorkflowVersions() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-12-01"; + this.apiVersion = "2024-04-01"; this.appServiceCertificateOrders = new AppServiceCertificateOrdersClientImpl(this); this.certificateOrdersDiagnostics = new CertificateOrdersDiagnosticsClientImpl(this); this.certificateRegistrationProviders = new CertificateRegistrationProvidersClientImpl(this); + this.domainRegistrationProviders = new DomainRegistrationProvidersClientImpl(this); this.domains = new DomainsClientImpl(this); this.topLevelDomains = new TopLevelDomainsClientImpl(this); - this.domainRegistrationProviders = new DomainRegistrationProvidersClientImpl(this); this.appServiceEnvironments = new AppServiceEnvironmentsClientImpl(this); this.appServicePlans = new AppServicePlansClientImpl(this); this.certificates = new CertificatesClientImpl(this); diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServiceCertificateOrderPatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServiceCertificateOrderPatchResource.java index e51047d1de1a8..23f81bee528e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServiceCertificateOrderPatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServiceCertificateOrderPatchResource.java @@ -26,9 +26,9 @@ public final class AppServiceCertificateOrderPatchResource extends ProxyOnlyReso private AppServiceCertificateOrderPatchResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -36,9 +36,9 @@ public final class AppServiceCertificateOrderPatchResource extends ProxyOnlyReso private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServiceCertificateOrderPatchResource class. @@ -56,13 +56,13 @@ private AppServiceCertificateOrderPatchResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -76,13 +76,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -386,7 +386,6 @@ public CertificateOrderContact contact() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java index c33929de36117..d76d296fe2510 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AppServicePlanPatchResource.java @@ -23,9 +23,9 @@ public final class AppServicePlanPatchResource extends ProxyOnlyResource { private AppServicePlanPatchResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class AppServicePlanPatchResource extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of AppServicePlanPatchResource class. @@ -53,13 +53,13 @@ private AppServicePlanPatchResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -543,7 +543,6 @@ public AppServicePlanPatchResource withZoneRedundant(Boolean zoneRedundant) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoGeneratedDomainNameLabelScope.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoGeneratedDomainNameLabelScope.java new file mode 100644 index 0000000000000..a87d2f8add527 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AutoGeneratedDomainNameLabelScope.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +/** + * Specifies the scope of uniqueness for the default hostname during resource creation. + */ +public enum AutoGeneratedDomainNameLabelScope { + /** + * Enum value TenantReuse. + */ + TENANT_REUSE("TenantReuse"), + + /** + * Enum value SubscriptionReuse. + */ + SUBSCRIPTION_REUSE("SubscriptionReuse"), + + /** + * Enum value ResourceGroupReuse. + */ + RESOURCE_GROUP_REUSE("ResourceGroupReuse"), + + /** + * Enum value NoReuse. + */ + NO_REUSE("NoReuse"); + + /** + * The actual serialized value for a AutoGeneratedDomainNameLabelScope instance. + */ + private final String value; + + AutoGeneratedDomainNameLabelScope(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AutoGeneratedDomainNameLabelScope instance. + * + * @param value the serialized value to parse. + * @return the parsed AutoGeneratedDomainNameLabelScope object, or null if unable to parse. + */ + public static AutoGeneratedDomainNameLabelScope fromString(String value) { + if (value == null) { + return null; + } + AutoGeneratedDomainNameLabelScope[] items = AutoGeneratedDomainNameLabelScope.values(); + for (AutoGeneratedDomainNameLabelScope item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureResourceErrorInfo.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureResourceErrorInfo.java index 8db8e5687e9aa..0187ae2b8810f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureResourceErrorInfo.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/AzureResourceErrorInfo.java @@ -89,7 +89,6 @@ public AzureResourceErrorInfo withCode(String code) { */ @Override public void validate() { - super.validate(); if (message() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property message in model AzureResourceErrorInfo")); @@ -97,6 +96,10 @@ public void validate() { if (details() != null) { details().forEach(e -> e.validate()); } + if (code() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property code in model AzureResourceErrorInfo")); + } } private static final ClientLogger LOGGER = new ClientLogger(AzureResourceErrorInfo.class); diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java index 1a545fa460ee5..31a13f41daa58 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CertificatePatchResource.java @@ -26,9 +26,9 @@ public final class CertificatePatchResource extends ProxyOnlyResource { private CertificatePatchResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -36,9 +36,9 @@ public final class CertificatePatchResource extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CertificatePatchResource class. @@ -56,13 +56,13 @@ private CertificatePatchResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -76,13 +76,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -405,7 +405,6 @@ public CertificatePatchResource withDomainValidationMethod(String domainValidati */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CsmDeploymentStatus.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CsmDeploymentStatus.java index dd6fd7fb58ac2..bee267a25c810 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CsmDeploymentStatus.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/CsmDeploymentStatus.java @@ -23,9 +23,9 @@ public final class CsmDeploymentStatus extends ProxyOnlyResource { private CsmDeploymentStatusProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class CsmDeploymentStatus extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of CsmDeploymentStatus class. @@ -53,13 +53,13 @@ private CsmDeploymentStatusProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -259,7 +259,6 @@ public CsmDeploymentStatus withErrors(List errors) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DefaultErrorResponseError.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DefaultErrorResponseError.java index a38f7d43b2efe..c0ce6c285c52f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DefaultErrorResponseError.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DefaultErrorResponseError.java @@ -24,14 +24,14 @@ public final class DefaultErrorResponseError extends ManagementError { private String innererror; /* - * The error code parsed from the body of the http error response. + * Additional info for the error. */ - private String code; + private List additionalInfo; /* - * The error message parsed from the body of the http error response. + * Details for the error. */ - private String message; + private List details; /* * The target of the error. @@ -39,14 +39,14 @@ public final class DefaultErrorResponseError extends ManagementError { private String target; /* - * Details for the error. + * The error message parsed from the body of the http error response. */ - private List details; + private String message; /* - * Additional info for the error. + * The error code parsed from the body of the http error response. */ - private List additionalInfo; + private String code; /** * Creates an instance of DefaultErrorResponseError class. @@ -64,23 +64,23 @@ public String getInnererror() { } /** - * Get the code property: The error code parsed from the body of the http error response. + * Get the additionalInfo property: Additional info for the error. * - * @return the code value. + * @return the additionalInfo value. */ @Override - public String getCode() { - return this.code; + public List getAdditionalInfo() { + return this.additionalInfo; } /** - * Get the message property: The error message parsed from the body of the http error response. + * Get the details property: Details for the error. * - * @return the message value. + * @return the details value. */ @Override - public String getMessage() { - return this.message; + public List getDetails() { + return this.details; } /** @@ -94,23 +94,23 @@ public String getTarget() { } /** - * Get the details property: Details for the error. + * Get the message property: The error message parsed from the body of the http error response. * - * @return the details value. + * @return the message value. */ @Override - public List getDetails() { - return this.details; + public String getMessage() { + return this.message; } /** - * Get the additionalInfo property: Additional info for the error. + * Get the code property: The error code parsed from the body of the http error response. * - * @return the additionalInfo value. + * @return the code value. */ @Override - public List getAdditionalInfo() { - return this.additionalInfo; + public String getCode() { + return this.code; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DeletedAppRestoreRequest.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DeletedAppRestoreRequest.java index da843bf9e5642..42f67b58cdd34 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DeletedAppRestoreRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DeletedAppRestoreRequest.java @@ -22,9 +22,9 @@ public final class DeletedAppRestoreRequest extends ProxyOnlyResource { private DeletedAppRestoreRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class DeletedAppRestoreRequest extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DeletedAppRestoreRequest class. @@ -52,13 +52,13 @@ private DeletedAppRestoreRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -195,7 +195,6 @@ public DeletedAppRestoreRequest withUseDRSecondary(Boolean useDRSecondary) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DomainPatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DomainPatchResource.java index 16e44d4afae34..8ad1ad3021e31 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DomainPatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DomainPatchResource.java @@ -24,9 +24,9 @@ public final class DomainPatchResource extends ProxyOnlyResource { private DomainPatchResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class DomainPatchResource extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DomainPatchResource class. @@ -54,13 +54,13 @@ private DomainPatchResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -440,7 +440,6 @@ public DomainPatchResource withAuthCode(String authCode) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExpressionRoot.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExpressionRoot.java index 51d26710ebbea..7e9f13bbdcd81 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExpressionRoot.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ExpressionRoot.java @@ -90,7 +90,12 @@ public ExpressionRoot withError(AzureResourceErrorInfo error) { */ @Override public void validate() { - super.validate(); + if (subexpressions() != null) { + subexpressions().forEach(e -> e.validate()); + } + if (error() != null) { + error().validate(); + } } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IpMode.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IpMode.java new file mode 100644 index 0000000000000..8db74573b0a91 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/IpMode.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.models; + +/** + * Specifies the IP mode of the app. + */ +public enum IpMode { + /** + * Enum value IPv4. + */ + IPV4("IPv4"), + + /** + * Enum value IPv6. + */ + IPV6("IPv6"), + + /** + * Enum value IPv4AndIPv6. + */ + IPV4AND_IPV6("IPv4AndIPv6"); + + /** + * The actual serialized value for a IpMode instance. + */ + private final String value; + + IpMode(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a IpMode instance. + * + * @param value the serialized value to parse. + * @return the parsed IpMode object, or null if unable to parse. + */ + public static IpMode fromString(String value) { + if (value == null) { + return null; + } + IpMode[] items = IpMode.values(); + for (IpMode item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java index f68e75f1f3a8c..f9cdcceaf4db3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/KubeEnvironmentPatchResource.java @@ -22,9 +22,9 @@ public final class KubeEnvironmentPatchResource extends ProxyOnlyResource { private KubeEnvironmentPatchResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class KubeEnvironmentPatchResource extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of KubeEnvironmentPatchResource class. @@ -52,13 +52,13 @@ private KubeEnvironmentPatchResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -273,7 +273,6 @@ public KubeEnvironmentPatchResource withAksResourceId(String aksResourceId) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MSDeploy.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MSDeploy.java index 4c466d1bf5188..33b1da1f3e522 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MSDeploy.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MSDeploy.java @@ -24,9 +24,9 @@ public final class MSDeploy extends ProxyOnlyResource { private MSDeployProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -34,9 +34,9 @@ public final class MSDeploy extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of MSDeploy class. @@ -54,13 +54,13 @@ private MSDeployProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -74,13 +74,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -295,7 +295,6 @@ public MSDeploy withAppOffline(Boolean appOffline) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MigrateMySqlRequest.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MigrateMySqlRequest.java index 202ced98e19fd..460f758807e20 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MigrateMySqlRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/MigrateMySqlRequest.java @@ -22,9 +22,9 @@ public final class MigrateMySqlRequest extends ProxyOnlyResource { private MigrateMySqlRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class MigrateMySqlRequest extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of MigrateMySqlRequest class. @@ -52,13 +52,13 @@ private MigrateMySqlRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -143,7 +143,6 @@ public MigrateMySqlRequest withMigrationType(MySqlMigrationType migrationType) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OperationResult.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OperationResult.java index 6b1611f0df2db..dd390f3529a4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OperationResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/OperationResult.java @@ -286,7 +286,6 @@ public OperationResult withError(Object error) { */ @Override public void validate() { - super.validate(); if (inputsLink() != null) { inputsLink().validate(); } @@ -296,6 +295,9 @@ public void validate() { if (retryHistory() != null) { retryHistory().forEach(e -> e.validate()); } + if (correlation() != null) { + correlation().validate(); + } } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PremierAddOnPatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PremierAddOnPatchResource.java index 7d9d7e073ff01..07f9a02297acc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PremierAddOnPatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PremierAddOnPatchResource.java @@ -22,9 +22,9 @@ public final class PremierAddOnPatchResource extends ProxyOnlyResource { private PremierAddOnPatchResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class PremierAddOnPatchResource extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PremierAddOnPatchResource class. @@ -52,13 +52,13 @@ private PremierAddOnPatchResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -212,7 +212,6 @@ public PremierAddOnPatchResource withMarketplaceOffer(String marketplaceOffer) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PrivateLinkConnectionApprovalRequestResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PrivateLinkConnectionApprovalRequestResource.java index 2d642c5889058..1f148ac7229e7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PrivateLinkConnectionApprovalRequestResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PrivateLinkConnectionApprovalRequestResource.java @@ -22,9 +22,9 @@ public final class PrivateLinkConnectionApprovalRequestResource extends ProxyOnl private PrivateLinkConnectionApprovalRequest innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class PrivateLinkConnectionApprovalRequestResource extends ProxyOnl private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of PrivateLinkConnectionApprovalRequestResource class. @@ -52,13 +52,13 @@ private PrivateLinkConnectionApprovalRequest innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -121,7 +121,6 @@ public PrivateLinkConnectionState privateLinkServiceConnectionState() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ProxyOnlyResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ProxyOnlyResource.java index 8aafbcba67ae3..f4177152b4d54 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ProxyOnlyResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ProxyOnlyResource.java @@ -22,9 +22,9 @@ public class ProxyOnlyResource extends ProxyResource { private String kind; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public class ProxyOnlyResource extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ProxyOnlyResource class. @@ -63,13 +63,13 @@ public ProxyOnlyResource withKind(String kind) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -83,13 +83,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ReissueCertificateOrderRequest.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ReissueCertificateOrderRequest.java index ab7e78f04152b..0d7beb01eeb5e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ReissueCertificateOrderRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/ReissueCertificateOrderRequest.java @@ -22,9 +22,9 @@ public final class ReissueCertificateOrderRequest extends ProxyOnlyResource { private ReissueCertificateOrderRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class ReissueCertificateOrderRequest extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of ReissueCertificateOrderRequest class. @@ -52,13 +52,13 @@ private ReissueCertificateOrderRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -193,7 +193,6 @@ public ReissueCertificateOrderRequest withIsPrivateKeyExternal(Boolean isPrivate */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RemotePrivateEndpointConnection.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RemotePrivateEndpointConnection.java index b7b3350c39875..52075462495e7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RemotePrivateEndpointConnection.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RemotePrivateEndpointConnection.java @@ -23,9 +23,9 @@ public final class RemotePrivateEndpointConnection extends ProxyOnlyResource { private RemotePrivateEndpointConnectionProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class RemotePrivateEndpointConnection extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RemotePrivateEndpointConnection class. @@ -53,13 +53,13 @@ private RemotePrivateEndpointConnectionProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -177,7 +177,6 @@ public RemotePrivateEndpointConnection withIpAddresses(List ipAddresses) */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RenewCertificateOrderRequest.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RenewCertificateOrderRequest.java index 8a765596a172a..00061143fad6f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RenewCertificateOrderRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RenewCertificateOrderRequest.java @@ -22,9 +22,9 @@ public final class RenewCertificateOrderRequest extends ProxyOnlyResource { private RenewCertificateOrderRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class RenewCertificateOrderRequest extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of RenewCertificateOrderRequest class. @@ -52,13 +52,13 @@ private RenewCertificateOrderRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -168,7 +168,6 @@ public RenewCertificateOrderRequest withIsPrivateKeyExternal(Boolean isPrivateKe */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RunActionCorrelation.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RunActionCorrelation.java index 493babe0e463d..07200d0b52e20 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RunActionCorrelation.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/RunActionCorrelation.java @@ -72,7 +72,6 @@ public RunActionCorrelation withClientKeywords(List clientKeywords) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SiteLoadBalancing.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SiteLoadBalancing.java index 5ce53e602fa7a..d25fd9cf4163f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SiteLoadBalancing.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SiteLoadBalancing.java @@ -36,7 +36,12 @@ public enum SiteLoadBalancing { /** * Enum value PerSiteRoundRobin. */ - PER_SITE_ROUND_ROBIN("PerSiteRoundRobin"); + PER_SITE_ROUND_ROBIN("PerSiteRoundRobin"), + + /** + * Enum value LeastRequestsWithTieBreaker. + */ + LEAST_REQUESTS_WITH_TIE_BREAKER("LeastRequestsWithTieBreaker"); /** * The actual serialized value for a SiteLoadBalancing instance. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SnapshotRestoreRequest.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SnapshotRestoreRequest.java index 06994f2f40688..6f5c385752674 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SnapshotRestoreRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SnapshotRestoreRequest.java @@ -22,9 +22,9 @@ public final class SnapshotRestoreRequest extends ProxyOnlyResource { private SnapshotRestoreRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class SnapshotRestoreRequest extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of SnapshotRestoreRequest class. @@ -52,13 +52,13 @@ private SnapshotRestoreRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -245,7 +245,6 @@ public SnapshotRestoreRequest withUseDRSecondary(Boolean useDRSecondary) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteCustomDomainRequestPropertiesArmResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteCustomDomainRequestPropertiesArmResource.java index 9d37f5aacb712..4a1aad0c31756 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteCustomDomainRequestPropertiesArmResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteCustomDomainRequestPropertiesArmResource.java @@ -22,9 +22,9 @@ public final class StaticSiteCustomDomainRequestPropertiesArmResource extends Pr private StaticSiteCustomDomainRequestPropertiesArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StaticSiteCustomDomainRequestPropertiesArmResource extends Pr private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteCustomDomainRequestPropertiesArmResource class. @@ -53,13 +53,13 @@ private StaticSiteCustomDomainRequestPropertiesArmResourceProperties innerProper } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -121,7 +121,6 @@ public StaticSiteCustomDomainRequestPropertiesArmResource withValidationMethod(S */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java index d468b67b0462b..23dc33b70c83a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitePatchResource.java @@ -23,9 +23,9 @@ public final class StaticSitePatchResource extends ProxyOnlyResource { private StaticSite innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StaticSitePatchResource extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSitePatchResource class. @@ -53,13 +53,13 @@ private StaticSite innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -412,7 +412,6 @@ public List databaseConnections() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteResetPropertiesArmResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteResetPropertiesArmResource.java index be3495e534021..b3d4503a9c025 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteResetPropertiesArmResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteResetPropertiesArmResource.java @@ -22,9 +22,9 @@ public final class StaticSiteResetPropertiesArmResource extends ProxyOnlyResourc private StaticSiteResetPropertiesArmResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StaticSiteResetPropertiesArmResource extends ProxyOnlyResourc private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteResetPropertiesArmResource class. @@ -52,13 +52,13 @@ private StaticSiteResetPropertiesArmResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -145,7 +145,6 @@ public StaticSiteResetPropertiesArmResource withShouldUpdateRepository(Boolean s */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserInvitationRequestResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserInvitationRequestResource.java index 0df64a8e8662e..fd3b46be14e11 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserInvitationRequestResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserInvitationRequestResource.java @@ -22,9 +22,9 @@ public final class StaticSiteUserInvitationRequestResource extends ProxyOnlyReso private StaticSiteUserInvitationRequestResourceProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StaticSiteUserInvitationRequestResource extends ProxyOnlyReso private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteUserInvitationRequestResource class. @@ -52,13 +52,13 @@ private StaticSiteUserInvitationRequestResourceProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -212,7 +212,6 @@ public StaticSiteUserInvitationRequestResource withNumHoursToExpiration(Integer */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserProvidedFunctionApp.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserProvidedFunctionApp.java index 3c2b12fc7dff4..f1abdfc86f120 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserProvidedFunctionApp.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteUserProvidedFunctionApp.java @@ -23,9 +23,9 @@ public final class StaticSiteUserProvidedFunctionApp extends ProxyOnlyResource { private StaticSiteUserProvidedFunctionAppProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -33,9 +33,9 @@ public final class StaticSiteUserProvidedFunctionApp extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteUserProvidedFunctionApp class. @@ -53,13 +53,13 @@ private StaticSiteUserProvidedFunctionAppProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -73,13 +73,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -153,7 +153,6 @@ public OffsetDateTime createdOn() { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteZipDeploymentArmResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteZipDeploymentArmResource.java index c05d603a540a4..4a4d5b8e11efa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteZipDeploymentArmResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSiteZipDeploymentArmResource.java @@ -22,9 +22,9 @@ public final class StaticSiteZipDeploymentArmResource extends ProxyOnlyResource private StaticSiteZipDeployment innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StaticSiteZipDeploymentArmResource extends ProxyOnlyResource private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSiteZipDeploymentArmResource class. @@ -52,13 +52,13 @@ private StaticSiteZipDeployment innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -212,7 +212,6 @@ public StaticSiteZipDeploymentArmResource withFunctionLanguage(String functionLa */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitesWorkflowPreviewRequest.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitesWorkflowPreviewRequest.java index cc481a3390883..fc0087f2716e2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitesWorkflowPreviewRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StaticSitesWorkflowPreviewRequest.java @@ -22,9 +22,9 @@ public final class StaticSitesWorkflowPreviewRequest extends ProxyOnlyResource { private StaticSitesWorkflowPreviewRequestProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StaticSitesWorkflowPreviewRequest extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StaticSitesWorkflowPreviewRequest class. @@ -52,13 +52,13 @@ private StaticSitesWorkflowPreviewRequestProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -166,7 +166,6 @@ public StaticSitesWorkflowPreviewRequest withBuildProperties(StaticSiteBuildProp */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageMigrationOptions.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageMigrationOptions.java index 4f1697a4f24d7..5d67597e04293 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageMigrationOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/StorageMigrationOptions.java @@ -22,9 +22,9 @@ public final class StorageMigrationOptions extends ProxyOnlyResource { private StorageMigrationOptionsProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class StorageMigrationOptions extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of StorageMigrationOptions class. @@ -52,13 +52,13 @@ private StorageMigrationOptionsProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -193,7 +193,6 @@ public StorageMigrationOptions withBlockWriteAccessToSite(Boolean blockWriteAcce */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetParameters.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetParameters.java index d5c9411040502..823c1aeeed045 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetParameters.java @@ -22,9 +22,9 @@ public final class VnetParameters extends ProxyOnlyResource { private VnetParametersProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class VnetParameters extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VnetParameters class. @@ -52,13 +52,13 @@ private VnetParametersProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -189,7 +189,6 @@ public VnetParameters withSubnetResourceId(String subnetResourceId) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetValidationTestFailure.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetValidationTestFailure.java index f016efe580961..8080def04ed4b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetValidationTestFailure.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/VnetValidationTestFailure.java @@ -22,9 +22,9 @@ public final class VnetValidationTestFailure extends ProxyOnlyResource { private VnetValidationTestFailureProperties innerProperties; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -32,9 +32,9 @@ public final class VnetValidationTestFailure extends ProxyOnlyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of VnetValidationTestFailure class. @@ -52,13 +52,13 @@ private VnetValidationTestFailureProperties innerProperties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -72,13 +72,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -143,7 +143,6 @@ public VnetValidationTestFailure withDetails(String details) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Workflow.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Workflow.java index aeadbed660f28..462ba59dc8f8d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Workflow.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/Workflow.java @@ -29,9 +29,9 @@ public final class Workflow extends WorkflowResource { private ManagedServiceIdentity identity; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public final class Workflow extends WorkflowResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of Workflow class. @@ -79,13 +79,13 @@ public Workflow withIdentity(ManagedServiceIdentity identity) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -99,13 +99,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** @@ -371,7 +371,6 @@ public Workflow withKind(Kind kind) { */ @Override public void validate() { - super.validate(); if (innerProperties() != null) { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowOutputParameter.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowOutputParameter.java index 8f1e0dc0213ee..e18302c99af10 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowOutputParameter.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowOutputParameter.java @@ -78,7 +78,6 @@ public WorkflowOutputParameter withDescription(String description) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowResource.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowResource.java index 6353d0df8ed01..d8f57215d702f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowResource.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WorkflowResource.java @@ -18,9 +18,9 @@ @Fluent public class WorkflowResource extends Resource { /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -28,9 +28,9 @@ public class WorkflowResource extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of WorkflowResource class. @@ -39,13 +39,13 @@ public WorkflowResource() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -59,13 +59,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/module-info.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/module-info.java index e80987fd255ee..b950d9e5991bf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/module-info.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/module-info.java @@ -7,6 +7,7 @@ requires transitive com.azure.resourcemanager.keyvault; requires transitive com.azure.resourcemanager.msi; requires transitive com.azure.resourcemanager.storage; + requires transitive com.azure.core.management; // export public APIs of appservice exports com.azure.resourcemanager.appservice; diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionAppsTests.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionAppsTests.java index 2689dece0fe07..b32fcfca63c51 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionAppsTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionAppsTests.java @@ -325,7 +325,7 @@ public void canCRUDLinuxFunctionAppPremium() { .withAppSetting("WEBSITE_RUN_FROM_PACKAGE", FUNCTION_APP_PACKAGE_URL) .create(); Assertions.assertNotNull(functionApp1); - Assertions.assertFalse(functionApp1.alwaysOn()); + Assertions.assertTrue(functionApp1.alwaysOn()); AppServicePlan plan1 = appServiceManager.appServicePlans().getById(functionApp1.appServicePlanId()); Assertions.assertNotNull(plan1); Assertions.assertEquals(new PricingTier(SkuName.ELASTIC_PREMIUM.toString(), "EP1"), plan1.pricingTier()); diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsMsiTests.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsMsiTests.java index 6fa9ba8498574..396bbb2099b8f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsMsiTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsMsiTests.java @@ -58,7 +58,7 @@ public void canCRUDWebAppWithMsi() throws Exception { .withRegion(Region.US_WEST) .withNewResourceGroup(rgName1) .withNewWindowsPlan(PricingTier.BASIC_B1) - .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2019) + .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.fromString("VS2022")) .withSystemAssignedManagedServiceIdentity() .withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(BuiltInRole.CONTRIBUTOR) .withJavaVersion(JavaVersion.JAVA_8_NEWEST) @@ -125,7 +125,7 @@ public void canCRUDWebAppWithUserAssignedMsi() throws Exception { .withRegion(Region.US_WEST) .withNewResourceGroup(rgName1) .withNewWindowsPlan(PricingTier.BASIC_B1) - .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2019) + .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.fromString("VS2022")) .withSystemAssignedManagedServiceIdentity() .withSystemAssignedIdentityBasedAccessToCurrentResourceGroup(BuiltInRole.CONTRIBUTOR) .withJavaVersion(JavaVersion.JAVA_8_NEWEST) diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java index 9d660167d8dfa..8e7141bf7fe64 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java @@ -61,7 +61,7 @@ public void canCRUDWebApp() throws Exception { .withRegion(Region.US_WEST) .withNewResourceGroup(rgName1) .withNewWindowsPlan(appServicePlanName1, PricingTier.BASIC_B1) - .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2019) + .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.fromString("VS2022")) .create(); Assertions.assertNotNull(webApp1); Assertions.assertEquals(Region.US_WEST, webApp1.region()); @@ -134,7 +134,7 @@ public void canListWebApp() throws Exception { .withRegion(Region.US_WEST) .withNewResourceGroup(rgName1) .withNewWindowsPlan(appServicePlanName1, PricingTier.BASIC_B1) - .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2019) + .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.fromString("VS2022")) .withHttpsOnly(true) .defineDiagnosticLogsConfiguration() .withApplicationLogging() @@ -275,7 +275,7 @@ public void canCreateWebAppWithDisablePublicNetworkAccess() { .withExistingResourceGroup(rgName1) .withNewWindowsPlan(appServicePlanName1, PricingTier.BASIC_B1) .disablePublicNetworkAccess() - .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2019) + .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.fromString("VS2022")) .create(); webApp.refresh(); Assertions.assertEquals(PublicNetworkAccess.DISABLED, webApp.publicNetworkAccess()); @@ -290,7 +290,7 @@ public void canUpdatePublicNetworkAccess() { .withRegion(Region.US_WEST) .withExistingResourceGroup(rgName1) .withNewWindowsPlan(appServicePlanName1, PricingTier.BASIC_B1) - .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2019) + .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.fromString("VS2022")) .create(); webApp.update().disablePublicNetworkAccess().apply(); diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateCertificateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateCertificateSamples.java index c4ff1dee14831..e7a83587be0ae 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateCertificateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateCertificateSamples.java @@ -12,7 +12,7 @@ public final class AppServiceCertificateOrdersCreateOrUpdateCertificateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * CreateAppServiceCertificate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateSamples.java index 86e86dc564e71..8f6492b8c201d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ public final class AppServiceCertificateOrdersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * CreateAppServiceCertificateOrder.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteCertificateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteCertificateSamples.java index 858055c1f6be5..3539cde736efc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteCertificateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteCertificateSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersDeleteCertificateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * DeleteAppServiceCertificate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteSamples.java index 00a1d49cebf2c..1828569e34d7b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersDeleteSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * DeleteAppServiceCertificateOrder.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetByResourceGroupSamples.java index 39fefdb3c9b54..75a9d06379de0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * GetAppServiceCertificateOrder.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetCertificateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetCertificateSamples.java index f2a6f8890d094..5b4de75a482a7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetCertificateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersGetCertificateSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersGetCertificateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * GetAppServiceCertificate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListByResourceGroupSamples.java index cf463239a2f1a..0181e53578476 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * ListAppServiceCertificateOrdersByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListCertificatesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListCertificatesSamples.java index fab42e0e01d47..6952dde7a9e46 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListCertificatesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListCertificatesSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersListCertificatesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * ListCertificatesByAppServiceCertificateOrder.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListSamples.java index fbbff454d6d39..0d99ce5334d1f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersListSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * ListAppServiceCertificateOrdersBySubscription.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersReissueSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersReissueSamples.java index 80f67c515d512..cb7f5e1a05c4f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersReissueSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersReissueSamples.java @@ -12,7 +12,7 @@ public final class AppServiceCertificateOrdersReissueSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * ReissueAppServiceCertificateOrder.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRenewSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRenewSamples.java index 0b3c70e0d7131..32bba0c262e78 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRenewSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRenewSamples.java @@ -12,7 +12,7 @@ public final class AppServiceCertificateOrdersRenewSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * RenewAppServiceCertificateOrder.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendEmailSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendEmailSamples.java index fcd6e52f184f8..95a9f3c14bce1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendEmailSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendEmailSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersResendEmailSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * ResendAppServiceCertificateOrderEmail.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendRequestEmailsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendRequestEmailsSamples.java index d06d78a0024f6..15824d662b3d7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendRequestEmailsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersResendRequestEmailsSamples.java @@ -12,7 +12,7 @@ public final class AppServiceCertificateOrdersResendRequestEmailsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * ResendDomainOwnershipVerificationEmail.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateActionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateActionsSamples.java index eb3ceb9bc5492..2be92397e0f9b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateActionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateActionsSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersRetrieveCertificateActionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * RetrieveCertificateOrderActions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateEmailHistorySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateEmailHistorySamples.java index 247d61329875f..a63e445338b0e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateEmailHistorySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveCertificateEmailHistorySamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersRetrieveCertificateEmailHistorySamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * RetrieveCertificateEmailHistory.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveSiteSealSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveSiteSealSamples.java index b24be3e8d3a10..2fd3fa148bbe4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveSiteSealSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersRetrieveSiteSealSamples.java @@ -12,7 +12,7 @@ public final class AppServiceCertificateOrdersRetrieveSiteSealSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/RetrieveSiteSeal. + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/RetrieveSiteSeal. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateCertificateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateCertificateSamples.java index ee3eee6d75699..1bf02f4a89c8d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateCertificateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateCertificateSamples.java @@ -12,7 +12,7 @@ public final class AppServiceCertificateOrdersUpdateCertificateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * UpdateAppServiceCertificate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateSamples.java index 0400959a770aa..3fd8b3f98fffa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersUpdateSamples.java @@ -16,7 +16,7 @@ public final class AppServiceCertificateOrdersUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * UpdateAppServiceCertificateOrder.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersValidatePurchaseInformationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersValidatePurchaseInformationSamples.java index 2f02ed4cd1d65..daeb58fc9a597 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersValidatePurchaseInformationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersValidatePurchaseInformationSamples.java @@ -16,7 +16,7 @@ public final class AppServiceCertificateOrdersValidatePurchaseInformationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * ValidateAppServiceCertificatePurchaseInformationBySubscription.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersVerifyDomainOwnershipSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersVerifyDomainOwnershipSamples.java index ffc411264cc55..4ce82a4a57a7a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersVerifyDomainOwnershipSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceCertificateOrdersVerifyDomainOwnershipSamples.java @@ -10,7 +10,7 @@ public final class AppServiceCertificateOrdersVerifyDomainOwnershipSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * VerifyDomainOwnership.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionSamples.java index f916241def1ac..a47e699f5b1af 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionSamples.java @@ -12,7 +12,7 @@ */ public final class AppServiceEnvironmentsApproveOrRejectPrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ApproveOrRejectPrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsChangeVnetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsChangeVnetSamples.java index b2109ec008533..9ac7303d32530 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsChangeVnetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsChangeVnetSamples.java @@ -12,7 +12,7 @@ public final class AppServiceEnvironmentsChangeVnetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ChangeVnet. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_ChangeVnet. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateMultiRolePoolSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateMultiRolePoolSamples.java index e3355de45fe16..005e604481e85 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateMultiRolePoolSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateMultiRolePoolSamples.java @@ -11,7 +11,7 @@ */ public final class AppServiceEnvironmentsCreateOrUpdateMultiRolePoolSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_CreateOrUpdateMultiRolePool.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateSamples.java index 5c212b4ba4076..8adf5fc812edf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ public final class AppServiceEnvironmentsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_CreateOrUpdate + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_CreateOrUpdate * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateWorkerPoolSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateWorkerPoolSamples.java index d8fea4718221e..17ab29a95b11e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateWorkerPoolSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsCreateOrUpdateWorkerPoolSamples.java @@ -11,7 +11,7 @@ */ public final class AppServiceEnvironmentsCreateOrUpdateWorkerPoolSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_CreateOrUpdateWorkerPool.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationSamples.java index d784cd6e8496c..967e1d8761a38 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsDeleteAseCustomDnsSuffixConfigurationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteAseCustomDnsSuffixConfiguration + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteAseCustomDnsSuffixConfiguration * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeletePrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeletePrivateEndpointConnectionSamples.java index 29c57ffd01fad..abbbf700213a6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeletePrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeletePrivateEndpointConnectionSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsDeletePrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_DeletePrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteSamples.java index cf17f1d0e948a..97e7aec211b0d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Delete.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_Delete.json */ /** * Sample code: Delete an App Service Environment. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationSamples.java index 0cf07c6e9d0e7..288ee9118df4d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAseCustomDnsSuffixConfiguration. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetAseCustomDnsSuffixConfiguration. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseV3NetworkingConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseV3NetworkingConfigurationSamples.java index fba3c7b6b98a8..9d5c8f024e200 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseV3NetworkingConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetAseV3NetworkingConfigurationSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetAseV3NetworkingConfigurationSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_GetAseV3NetworkingConfiguration.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetByResourceGroupSamples.java index babacba09dd0a..d49653267e7b4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_Get.json */ /** * Sample code: Get the properties of an App Service Environment. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetDiagnosticsItemSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetDiagnosticsItemSamples.java index 1072a7e12d13e..84e667ef912de 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetDiagnosticsItemSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetDiagnosticsItemSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetDiagnosticsItemSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_GetDiagnosticsItem.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSamples.java index 142c2c219d511..65c33b12cdcbe 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetInboundNetworkDependenciesEndpoints.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetMultiRolePoolSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetMultiRolePoolSamples.java index 355e427d18e83..468551ce10529 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetMultiRolePoolSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetMultiRolePoolSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetMultiRolePoolSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_GetMultiRolePool.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSamples.java index 36d45914d656c..3ade2031fb5d6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetOutboundNetworkDependenciesEndpoints.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionListSamples.java index 056961e62631d..51cd6928ce796 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionListSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetPrivateEndpointConnectionListSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_GetPrivateEndpointConnectionList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionSamples.java index f457ebf596777..561cf43eddaea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateEndpointConnectionSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetPrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_GetPrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateLinkResourcesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateLinkResourcesSamples.java index 780d6c290b5c0..442d6d311eabd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateLinkResourcesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetPrivateLinkResourcesSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsGetPrivateLinkResourcesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_GetPrivateLinkResources.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetVipInfoSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetVipInfoSamples.java index a7269fbe33ee1..15a04124fc5a5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetVipInfoSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetVipInfoSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsGetVipInfoSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetVipInfo. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_GetVipInfo. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetWorkerPoolSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetWorkerPoolSamples.java index e103649aa2838..377b55807fa6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetWorkerPoolSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsGetWorkerPoolSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsGetWorkerPoolSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_GetWorkerPool. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_GetWorkerPool. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListAppServicePlansSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListAppServicePlansSamples.java index df503937d772f..70fa0133b653d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListAppServicePlansSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListAppServicePlansSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListAppServicePlansSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListAppServicePlans.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListByResourceGroupSamples.java index abefb43616596..9ce07893fa285 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListByResourceGroupSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListCapacitiesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListCapacitiesSamples.java index 6b97099197b51..1adfefe135c3e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListCapacitiesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListCapacitiesSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsListCapacitiesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListCapacities + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_ListCapacities * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListDiagnosticsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListDiagnosticsSamples.java index c4a2a7c0d18c2..229a2ca4044c4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListDiagnosticsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListDiagnosticsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListDiagnosticsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListDiagnostics.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleMetricDefinitionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleMetricDefinitionsSamples.java index 30f23e3a3dc87..7053fd2a02183 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleMetricDefinitionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleMetricDefinitionsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListMultiRoleMetricDefinitionsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListMultiRoleMetricDefinitions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsSamples.java index d74368d9c882d..3c6c8b56d3264 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListMultiRolePoolInstanceMetricDefinitions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolSkusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolSkusSamples.java index 9c42a52c2c220..c01eae00e31c1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolSkusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolSkusSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListMultiRolePoolSkusSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListMultiRolePoolSkus.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolsSamples.java index 2b77d23ca48c9..46e9531270de2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRolePoolsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListMultiRolePoolsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListMultiRolePools.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleUsagesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleUsagesSamples.java index a91d1a70efb71..65f8579b607fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleUsagesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListMultiRoleUsagesSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListMultiRoleUsagesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListMultiRoleUsages.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListOperationsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListOperationsSamples.java index 0122e1d468d99..33c0e7cdf8371 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListOperationsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListOperationsSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsListOperationsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListOperations + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_ListOperations * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListSamples.java index d5738be764e9e..8e0e33b1f6fa2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_List.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_List.json */ /** * Sample code: Get all App Service Environments for a subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListUsagesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListUsagesSamples.java index 5ef254e1bcdb8..a0c561d0116e4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListUsagesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListUsagesSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsListUsagesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListUsages. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_ListUsages. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebAppsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebAppsSamples.java index 2779cde98df93..4422fa1ccd0c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebAppsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebAppsSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsListWebAppsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_ListWebApps. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_ListWebApps. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerMetricDefinitionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerMetricDefinitionsSamples.java index 0ac17da7137c4..2421ff476c6b2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerMetricDefinitionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerMetricDefinitionsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListWebWorkerMetricDefinitionsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListWebWorkerMetricDefinitions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerUsagesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerUsagesSamples.java index c9b2cbac6b337..4bbae84921d74 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerUsagesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWebWorkerUsagesSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListWebWorkerUsagesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListWebWorkerUsages.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsSamples.java index 4a1815ca1ec81..4ce382da860d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListWorkerPoolInstanceMetricDefinitions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolSkusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolSkusSamples.java index 88907d3580018..6555121ec4a5a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolSkusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolSkusSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListWorkerPoolSkusSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListWorkerPoolSkus.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolsSamples.java index 3630925930fed..af39ee6122606 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsListWorkerPoolsSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsListWorkerPoolsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_ListWorkerPools.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsRebootSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsRebootSamples.java index c5fe2297cf0f3..ab4b71a3bb084 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsRebootSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsRebootSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsRebootSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Reboot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_Reboot.json */ /** * Sample code: Reboot all machines in an App Service Environment. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsResumeSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsResumeSamples.java index af7b4df4c73f6..cb32d3b10b2eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsResumeSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsResumeSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsResumeSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Resume.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_Resume.json */ /** * Sample code: Resume an App Service Environment. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsSuspendSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsSuspendSamples.java index 478230968a0e6..3315c1d149c5c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsSuspendSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsSuspendSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsSuspendSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Suspend.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_Suspend.json */ /** * Sample code: Suspend an App Service Environment. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsTestUpgradeAvailableNotificationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsTestUpgradeAvailableNotificationSamples.java index 2ad2ed174829f..3826cc7b044a3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsTestUpgradeAvailableNotificationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsTestUpgradeAvailableNotificationSamples.java @@ -9,7 +9,7 @@ */ public final class AppServiceEnvironmentsTestUpgradeAvailableNotificationSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_TestUpgradeAvailableNotification.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationSamples.java index 2e1c9c11d5148..a45c3868c9a60 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationSamples.java @@ -12,7 +12,7 @@ public final class AppServiceEnvironmentsUpdateAseCustomDnsSuffixConfigurationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAseCustomDnsSuffixConfiguration + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAseCustomDnsSuffixConfiguration * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseNetworkingConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseNetworkingConfigurationSamples.java index bac444503dece..49fc9a23f4ba1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseNetworkingConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateAseNetworkingConfigurationSamples.java @@ -11,7 +11,7 @@ */ public final class AppServiceEnvironmentsUpdateAseNetworkingConfigurationSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_UpdateAseNetworkingConfiguration.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateMultiRolePoolSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateMultiRolePoolSamples.java index 5d39a6771b811..665d1c13ab931 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateMultiRolePoolSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateMultiRolePoolSamples.java @@ -11,7 +11,7 @@ */ public final class AppServiceEnvironmentsUpdateMultiRolePoolSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_CreateOrUpdateMultiRolePool.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateSamples.java index 8fe3d170e5a02..9eb8f43c3b082 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateSamples.java @@ -13,7 +13,7 @@ public final class AppServiceEnvironmentsUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Update.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_Update.json */ /** * Sample code: Create or update an App Service Environment. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateWorkerPoolSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateWorkerPoolSamples.java index e633b77708a0b..048a100005d92 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateWorkerPoolSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpdateWorkerPoolSamples.java @@ -11,7 +11,7 @@ */ public final class AppServiceEnvironmentsUpdateWorkerPoolSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * AppServiceEnvironments_CreateOrUpdateWorkerPool.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpgradeSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpgradeSamples.java index a7dc2de07d70d..3de420f0347c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpgradeSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServiceEnvironmentsUpgradeSamples.java @@ -10,7 +10,7 @@ public final class AppServiceEnvironmentsUpgradeSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AppServiceEnvironments_Upgrade.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_Upgrade.json */ /** * Sample code: Initiate an upgrade on an App Service Environment. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansCreateOrUpdateSamples.java index a104640694c2f..e7b0ec1b903a8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ public final class AppServicePlansCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateAppServicePlan.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateAppServicePlan.json */ /** * Sample code: Create Or Update App Service plan. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansDeleteSamples.java index 64367e97e3997..74ec2300e4ca9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansDeleteSamples.java @@ -10,7 +10,7 @@ public final class AppServicePlansDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteAppServicePlan.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteAppServicePlan.json */ /** * Sample code: Delete App Service plan. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansGetByResourceGroupSamples.java index eff32e80bacac..2f263ec75ff83 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AppServicePlansGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAppServicePlan.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetAppServicePlan.json */ /** * Sample code: Get App Service plan. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListByResourceGroupSamples.java index 89338e42bf247..f68b2b0042f9c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AppServicePlansListByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAppServicePlansByResourceGroup. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAppServicePlansByResourceGroup. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListSamples.java index 8622f599e28b8..33aa04a582037 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansListSamples.java @@ -10,7 +10,7 @@ public final class AppServicePlansListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAppServicePlans.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAppServicePlans.json */ /** * Sample code: List App Service plans. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansUpdateSamples.java index 4521621a2ce5d..207b5e571aba2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/AppServicePlansUpdateSamples.java @@ -12,7 +12,7 @@ public final class AppServicePlansUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchAppServicePlan.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PatchAppServicePlan.json */ /** * Sample code: Patch Service plan. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseSamples.java index 5e1794130228d..f3724c6b57e20 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseSamples.java @@ -10,7 +10,7 @@ public final class CertificateOrdersDiagnosticsGetAppServiceCertificateOrderDetectorResponseSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * Diagnostics_GetAppServiceCertificateOrderDetectorResponse.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseSamples.java index 2744b5bde1e2d..1a787aa785db5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseSamples.java @@ -10,7 +10,7 @@ public final class CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ * Diagnostics_ListAppServiceCertificateOrderDetectorResponse.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateRegistrationProviderListOperationsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateRegistrationProviderListOperationsSamples.java index e38bd9466ae9f..0c69a27901c3c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateRegistrationProviderListOperationsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificateRegistrationProviderListOperationsSamples.java @@ -10,7 +10,7 @@ public final class CertificateRegistrationProviderListOperationsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-12-01/examples/ListOperations. + * specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2024-04-01/examples/ListOperations. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesCreateOrUpdateSamples.java index c29c13ee5a2ff..68df4593581be 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ public final class CertificatesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateCertificate.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateCertificate.json */ /** * Sample code: Create Or Update Certificate. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesDeleteSamples.java index 9729a23d19b9a..6578543125711 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesDeleteSamples.java @@ -10,7 +10,7 @@ public final class CertificatesDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteCertificate.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteCertificate.json */ /** * Sample code: Delete Certificate. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesGetByResourceGroupSamples.java index 1cad80cc545b9..a00076cef12a8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class CertificatesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetCertificate.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetCertificate.json */ /** * Sample code: Get Certificate. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListByResourceGroupSamples.java index f5aab5cf63bf7..57060dc13b58d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class CertificatesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCertificatesByResourceGroup.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListCertificatesByResourceGroup.json */ /** * Sample code: List Certificates by resource group. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListSamples.java index 4a55e34c0ab8b..04c6506f14c81 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesListSamples.java @@ -10,7 +10,7 @@ public final class CertificatesListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCertificates.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListCertificates.json */ /** * Sample code: List Certificates for subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesUpdateSamples.java index ba8805c6d8cd0..5329d8774be9a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/CertificatesUpdateSamples.java @@ -12,7 +12,7 @@ public final class CertificatesUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchCertificate.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PatchCertificate.json */ /** * Sample code: Patch Certificate. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsCreateOrUpdateSamples.java index 619034f7fb6bb..0a2d542336a14 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsCreateOrUpdateSamples.java @@ -23,7 +23,7 @@ public final class ContainerAppsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateContainerApp.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateContainerApp.json */ /** * Sample code: Create or Update Container App. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsDeleteSamples.java index 856ecdc60bcca..6e64d2b9313c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsDeleteSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteContainerApp.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteContainerApp.json */ /** * Sample code: Delete Container App. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsGetByResourceGroupSamples.java index 5e5c4d7d04e1d..8598ffdf126e8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetContainerApp.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetContainerApp.json */ /** * Sample code: Get Container App. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListByResourceGroupSamples.java index cdc8878b6de36..b7521b3f64d66 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListContainerAppsByResourceGroup.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListContainerAppsByResourceGroup.json */ /** * Sample code: List Container Apps by resource group. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSamples.java index 7cec2bf46563f..2ce92f1300b0e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListContainerAppsBySubscription.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListContainerAppsBySubscription.json */ /** * Sample code: List Container Apps by resource group. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSecretsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSecretsSamples.java index feeb72f51c3eb..88b19233fb571 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSecretsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsListSecretsSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsListSecretsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListContainerAppSecrets.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListContainerAppSecrets.json */ /** * Sample code: List Container Apps Secrets. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsActivateRevisionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsActivateRevisionSamples.java index 6832e686cedd2..6e19ea2087dbd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsActivateRevisionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsActivateRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsActivateRevisionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ActivateRevision.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ActivateRevision.json */ /** * Sample code: Activate Container App's revision. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java index db0e28285bc82..2fff1965d3ef8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsDeactivateRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsDeactivateRevisionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeactivateRevision.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeactivateRevision.json */ /** * Sample code: Deactivate Container App's revision. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsGetRevisionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsGetRevisionSamples.java index 34f620b756071..36d999f52c484 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsGetRevisionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsGetRevisionSamples.java @@ -9,7 +9,7 @@ */ public final class ContainerAppsRevisionsGetRevisionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetRevision.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetRevision.json */ /** * Sample code: Get Container App's revision. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsListRevisionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsListRevisionsSamples.java index 0328dafed84f3..1be209ab2e25c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsListRevisionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsListRevisionsSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsListRevisionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListRevisions.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListRevisions.json */ /** * Sample code: List Container App's revisions. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsRestartRevisionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsRestartRevisionSamples.java index 5ba95211590e2..224bc8cb6dc61 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsRestartRevisionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ContainerAppsRevisionsRestartRevisionSamples.java @@ -10,7 +10,7 @@ public final class ContainerAppsRevisionsRestartRevisionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/RestartRevision.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/RestartRevision.json */ /** * Sample code: Restart Container App's revision. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsGetDeletedWebAppByLocationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsGetDeletedWebAppByLocationSamples.java index 082cd565c32ed..1279ad8f180fe 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsGetDeletedWebAppByLocationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsGetDeletedWebAppByLocationSamples.java @@ -10,7 +10,7 @@ public final class DeletedWebAppsGetDeletedWebAppByLocationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetDeletedWebAppByLocation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetDeletedWebAppByLocation.json */ /** * Sample code: Get Deleted Web App by Location. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsListByLocationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsListByLocationSamples.java index b2e164df61130..1ee09285761b0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsListByLocationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DeletedWebAppsListByLocationSamples.java @@ -10,7 +10,7 @@ public final class DeletedWebAppsListByLocationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListDeletedWebAppsByLocation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListDeletedWebAppsByLocation.json */ /** * Sample code: List Deleted Web App by Location. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSamples.java index a7b2586f5508c..8bb3f16b538a4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsExecuteSiteAnalysisSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysis.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteAnalysis.json */ /** * Sample code: Execute site analysis. @@ -28,7 +28,7 @@ public static void executeSiteAnalysis(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysisSlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteAnalysisSlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSlotSamples.java index 7445781b9aab8..e45b72a5a6c95 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteAnalysisSlotSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsExecuteSiteAnalysisSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysis.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteAnalysis.json */ /** * Sample code: Execute site analysis. @@ -28,7 +28,7 @@ public static void executeSiteAnalysis(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteAnalysisSlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteAnalysisSlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSamples.java index 4abc7b17dc94a..e90a476e7d1a7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsExecuteSiteDetectorSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetector.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteDetector.json */ /** * Sample code: Execute site detector. @@ -28,7 +28,7 @@ public static void executeSiteDetector(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetectorSlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteDetectorSlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSlotSamples.java index 7cb4b22a2ccf9..79de14a953182 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsExecuteSiteDetectorSlotSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsExecuteSiteDetectorSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetector.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteDetector.json */ /** * Sample code: Execute site detector. @@ -28,7 +28,7 @@ public static void executeSiteDetector(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ExecuteSiteDetectorSlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ExecuteSiteDetectorSlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetHostingEnvironmentDetectorResponseSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetHostingEnvironmentDetectorResponseSamples.java index 4d9165a33ff88..13d00436137fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetHostingEnvironmentDetectorResponseSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetHostingEnvironmentDetectorResponseSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsGetHostingEnvironmentDetectorResponseSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_GetHostingEnvironmentDetectorResponse.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSamples.java index a60014bd49a6a..d33b49e0fbdc1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsGetSiteAnalysisSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysisSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteAnalysisSlot.json */ /** * Sample code: Get App Slot Analysis. @@ -28,7 +28,7 @@ public static void getAppSlotAnalysis(com.azure.resourcemanager.AzureResourceMan /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysis.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteAnalysis.json */ /** * Sample code: Get App Analysis. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSlotSamples.java index 72eaab9ced7a9..3186864db3a57 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteAnalysisSlotSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsGetSiteAnalysisSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysisSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteAnalysisSlot.json */ /** * Sample code: Get App Slot Analysis. @@ -28,7 +28,7 @@ public static void getAppSlotAnalysis(com.azure.resourcemanager.AzureResourceMan /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteAnalysis.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteAnalysis.json */ /** * Sample code: Get App Analysis. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSamples.java index e677248f6eb49..940370b3027df 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsGetSiteDetectorResponseSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_GetSiteDetectorResponseSlot.json */ /** @@ -28,7 +28,7 @@ public static void getAppSlotDetectorResponse(com.azure.resourcemanager.AzureRes /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorResponse. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetectorResponse. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSlotSamples.java index 0adffa7ede766..b43f21163dfd6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorResponseSlotSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsGetSiteDetectorResponseSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_GetSiteDetectorResponseSlot.json */ /** @@ -28,7 +28,7 @@ public static void getAppSlotDetectorResponse(com.azure.resourcemanager.AzureRes /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorResponse. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetectorResponse. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSamples.java index 64b7941e59760..04c105d7d9d86 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsGetSiteDetectorSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetector.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetector.json */ /** * Sample code: Get App Detector. @@ -28,7 +28,7 @@ public static void getAppDetector(com.azure.resourcemanager.AzureResourceManager /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetectorSlot.json */ /** * Sample code: Get App Slot Detector. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSlotSamples.java index a73bfa0fe77e7..06dfa54b08e46 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDetectorSlotSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsGetSiteDetectorSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetector.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetector.json */ /** * Sample code: Get App Detector. @@ -28,7 +28,7 @@ public static void getAppDetector(com.azure.resourcemanager.AzureResourceManager /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDetectorSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDetectorSlot.json */ /** * Sample code: Get App Slot Detector. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySamples.java index f4abcf52007d7..85b472906dacc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsGetSiteDiagnosticCategorySamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDiagnosticCategory + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDiagnosticCategory * .json */ /** @@ -28,7 +28,7 @@ public static void getAppDiagnosticCategory(com.azure.resourcemanager.AzureResou } /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_GetSiteDiagnosticCategorySlot.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySlotSamples.java index 8815373c3a709..4cc69f99deef4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsGetSiteDiagnosticCategorySlotSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsGetSiteDiagnosticCategorySlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_GetSiteDiagnosticCategory + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_GetSiteDiagnosticCategory * .json */ /** @@ -28,7 +28,7 @@ public static void getAppDiagnosticCategory(com.azure.resourcemanager.AzureResou } /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_GetSiteDiagnosticCategorySlot.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListHostingEnvironmentDetectorResponsesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListHostingEnvironmentDetectorResponsesSamples.java index 956a9188e4420..c27c593478bf0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListHostingEnvironmentDetectorResponsesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListHostingEnvironmentDetectorResponsesSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsListHostingEnvironmentDetectorResponsesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_ListHostingEnvironmentDetectorResponses.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSamples.java index 5cae034d2782d..33b699183cf66 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsListSiteAnalysesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalyses.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteAnalyses.json */ /** * Sample code: List App Analyses. @@ -28,7 +28,7 @@ public static void listAppAnalyses(com.azure.resourcemanager.AzureResourceManage /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalysesSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteAnalysesSlot.json */ /** * Sample code: List App Slot Analyses. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSlotSamples.java index f529e102a32fb..fc1f0abcf10ad 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteAnalysesSlotSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsListSiteAnalysesSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalyses.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteAnalyses.json */ /** * Sample code: List App Analyses. @@ -28,7 +28,7 @@ public static void listAppAnalyses(com.azure.resourcemanager.AzureResourceManage /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteAnalysesSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteAnalysesSlot.json */ /** * Sample code: List App Slot Analyses. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSamples.java index c316f35b87eff..a0ce52e68355f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsListSiteDetectorResponsesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_ListSiteDetectorResponsesSlot.json */ /** @@ -27,7 +27,7 @@ public static void getAppSlotDetectorResponses(com.azure.resourcemanager.AzureRe /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectorResponses * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSlotSamples.java index 6e9552e7a7d0b..c119c476196c7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorResponsesSlotSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsListSiteDetectorResponsesSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_ListSiteDetectorResponsesSlot.json */ /** @@ -28,7 +28,7 @@ public static void getAppSlotDetectorResponses(com.azure.resourcemanager.AzureRe /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorResponses + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectorResponses * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSamples.java index 08d6d762c19ad..11d3f33845016 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsListSiteDetectorsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectors.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectors.json */ /** * Sample code: List App Detectors. @@ -28,7 +28,7 @@ public static void listAppDetectors(com.azure.resourcemanager.AzureResourceManag /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorsSlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectorsSlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSlotSamples.java index 7b2f58fd56c32..4473bf453ba8f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDetectorsSlotSamples.java @@ -10,7 +10,7 @@ public final class DiagnosticsListSiteDetectorsSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectors.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectors.json */ /** * Sample code: List App Detectors. @@ -28,7 +28,7 @@ public static void listAppDetectors(com.azure.resourcemanager.AzureResourceManag /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Diagnostics_ListSiteDetectorsSlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Diagnostics_ListSiteDetectorsSlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSamples.java index cd19fcba82589..8a69e453f99fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsListSiteDiagnosticCategoriesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_ListSiteDiagnosticCategoriesSlot.json */ /** @@ -26,7 +26,7 @@ public static void listAppSlotDiagnosticCategories(com.azure.resourcemanager.Azu } /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_ListSiteDiagnosticCategories.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSlotSamples.java index 0d855fb3770f8..3c0ff03f13626 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DiagnosticsListSiteDiagnosticCategoriesSlotSamples.java @@ -9,7 +9,7 @@ */ public final class DiagnosticsListSiteDiagnosticCategoriesSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_ListSiteDiagnosticCategoriesSlot.json */ /** @@ -27,7 +27,7 @@ public static void listAppSlotDiagnosticCategories(com.azure.resourcemanager.Azu } /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * Diagnostics_ListSiteDiagnosticCategories.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainRegistrationProviderListOperationsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainRegistrationProviderListOperationsSamples.java index 9aa8cbe7cb674..57be2d78d295c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainRegistrationProviderListOperationsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainRegistrationProviderListOperationsSamples.java @@ -10,7 +10,7 @@ public final class DomainRegistrationProviderListOperationsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListOperations.json + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ListOperations.json */ /** * Sample code: List operations. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCheckAvailabilitySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCheckAvailabilitySamples.java index 92a59857f16cb..f241b5a03e56a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCheckAvailabilitySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCheckAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class DomainsCheckAvailabilitySamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * CheckDomainAvailability.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateOwnershipIdentifierSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateOwnershipIdentifierSamples.java index 0f29bd6e06420..72441a79f7456 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateOwnershipIdentifierSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateOwnershipIdentifierSamples.java @@ -11,7 +11,7 @@ */ public final class DomainsCreateOrUpdateOwnershipIdentifierSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * CreateAppServiceDomainOwnershipIdentifier.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateSamples.java index fbeab407aebc3..b988e3ee122fa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsCreateOrUpdateSamples.java @@ -20,7 +20,7 @@ public final class DomainsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/CreateAppServiceDomain + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/CreateAppServiceDomain * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteOwnershipIdentifierSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteOwnershipIdentifierSamples.java index 7361591996726..e865dd2bc0756 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteOwnershipIdentifierSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteOwnershipIdentifierSamples.java @@ -9,7 +9,7 @@ */ public final class DomainsDeleteOwnershipIdentifierSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * DeleteAppServiceDomainOwnershipIdentifier.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteSamples.java index d7147f14994cd..2e82c53c3df5e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsDeleteSamples.java @@ -10,7 +10,7 @@ public final class DomainsDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/DeleteAppServiceDomain + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/DeleteAppServiceDomain * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetByResourceGroupSamples.java index 7abab0b3330ba..3ff71dcdebdad 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class DomainsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/GetDomain.json + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/GetDomain.json */ /** * Sample code: Get Domain. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetControlCenterSsoRequestSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetControlCenterSsoRequestSamples.java index c2232b64c31d4..36eef4238afee 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetControlCenterSsoRequestSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetControlCenterSsoRequestSamples.java @@ -9,7 +9,7 @@ */ public final class DomainsGetControlCenterSsoRequestSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * GetDomainControlCenterSsoRequest.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetOwnershipIdentifierSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetOwnershipIdentifierSamples.java index 934690745de91..0a049f6e43a12 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetOwnershipIdentifierSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsGetOwnershipIdentifierSamples.java @@ -9,7 +9,7 @@ */ public final class DomainsGetOwnershipIdentifierSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * GetDomainOwnershipIdentifier.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListByResourceGroupSamples.java index f4626f2196565..857fbb93b7500 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class DomainsListByResourceGroupSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * ListDomainsByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListOwnershipIdentifiersSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListOwnershipIdentifiersSamples.java index 88fade51f3c0c..d975f14b3b148 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListOwnershipIdentifiersSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListOwnershipIdentifiersSamples.java @@ -9,7 +9,7 @@ */ public final class DomainsListOwnershipIdentifiersSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * ListDomainOwnershipIdentifiers.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListRecommendationsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListRecommendationsSamples.java index 28a0f657e6603..9345e808c67c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListRecommendationsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListRecommendationsSamples.java @@ -11,7 +11,7 @@ */ public final class DomainsListRecommendationsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * ListDomainRecommendations.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListSamples.java index 983a11a5fba81..ac3357c74b328 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsListSamples.java @@ -9,7 +9,7 @@ */ public final class DomainsListSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * ListDomainsBySubscription.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsRenewSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsRenewSamples.java index ee3708980afb2..c4e9b52add762 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsRenewSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsRenewSamples.java @@ -10,7 +10,7 @@ public final class DomainsRenewSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/RenewDomain.json + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/RenewDomain.json */ /** * Sample code: Renew an existing domain. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsTransferOutSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsTransferOutSamples.java index f060f20ee29d3..44d93ffe5acfe 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsTransferOutSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsTransferOutSamples.java @@ -10,7 +10,7 @@ public final class DomainsTransferOutSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/TransferOutDomain.json + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/TransferOutDomain.json */ /** * Sample code: Transfer out domain. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateOwnershipIdentifierSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateOwnershipIdentifierSamples.java index 4f06411e7d1ee..c5b6c1b0d9b42 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateOwnershipIdentifierSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateOwnershipIdentifierSamples.java @@ -11,7 +11,7 @@ */ public final class DomainsUpdateOwnershipIdentifierSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * UpdateAppServiceDomainOwnershipIdentifier.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateSamples.java index 6dc53c89e61be..6acdcda42fd73 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/DomainsUpdateSamples.java @@ -18,7 +18,7 @@ public final class DomainsUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/UpdateAppServiceDomain + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/UpdateAppServiceDomain * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GetUsagesInLocationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GetUsagesInLocationListSamples.java index 39ef92dae6eff..bf2759bab8713 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GetUsagesInLocationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GetUsagesInLocationListSamples.java @@ -10,7 +10,7 @@ public final class GetUsagesInLocationListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetUsagesInLocation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetUsagesInLocation.json */ /** * Sample code: Get usages in location for subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSamples.java index 84db36507511a..dea701ed49769 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSamples.java @@ -10,7 +10,7 @@ public final class GlobalGetDeletedWebAppSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetDeletedWebApp.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetDeletedWebApp.json */ /** * Sample code: Get Deleted Web App. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSnapshotsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSnapshotsSamples.java index c0c6705b40348..42a70bf3f692a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSnapshotsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetDeletedWebAppSnapshotsSamples.java @@ -10,7 +10,7 @@ public final class GlobalGetDeletedWebAppSnapshotsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetDeletedWebAppSnapshots.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetDeletedWebAppSnapshots.json */ /** * Sample code: Get Deleted Web App Snapshots. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetSubscriptionOperationWithAsyncResponseSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetSubscriptionOperationWithAsyncResponseSamples.java index fa4802679cae4..3048b5b3747d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetSubscriptionOperationWithAsyncResponseSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/GlobalGetSubscriptionOperationWithAsyncResponseSamples.java @@ -9,7 +9,7 @@ */ public final class GlobalGetSubscriptionOperationWithAsyncResponseSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetSubscriptionOperationWithAsyncResponse.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsCreateOrUpdateSamples.java index 057cf0dfe77b1..625b6c1f76175 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ public final class KubeEnvironmentsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_CreateOrUpdate.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/KubeEnvironments_CreateOrUpdate.json */ /** * Sample code: Create kube environments. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsDeleteSamples.java index f22937437627c..5bedbb74d0484 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class KubeEnvironmentsDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_Delete.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/KubeEnvironments_Delete.json */ /** * Sample code: Delete kube environment by name. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsGetByResourceGroupSamples.java index 105d5900d22f2..74bc1e14041f1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class KubeEnvironmentsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/KubeEnvironments_Get.json */ /** * Sample code: Get kube environments by name. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListByResourceGroupSamples.java index 8d34d7267ed2c..4df07c703c65b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class KubeEnvironmentsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_ListByResourceGroup. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/KubeEnvironments_ListByResourceGroup. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListSamples.java index 40a0fe225ddc6..19976a233e65c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsListSamples.java @@ -10,7 +10,7 @@ public final class KubeEnvironmentsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_ListBySubscription. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/KubeEnvironments_ListBySubscription. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsUpdateSamples.java index f992a8d11675f..818c7a68e307e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/KubeEnvironmentsUpdateSamples.java @@ -12,7 +12,7 @@ public final class KubeEnvironmentsUpdateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/KubeEnvironments_Update.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/KubeEnvironments_Update.json */ /** * Sample code: Update kube environments. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksForLocationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksForLocationSamples.java index 57fb53f925aff..0bf9b470539c7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksForLocationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksForLocationSamples.java @@ -10,7 +10,7 @@ public final class ProviderGetFunctionAppStacksForLocationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetFunctionAppStacksForLocation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetFunctionAppStacksForLocation.json */ /** * Sample code: Get Locations Function App Stacks. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksSamples.java index e9ba0b1130b45..b31e05caf89f7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetFunctionAppStacksSamples.java @@ -10,7 +10,7 @@ public final class ProviderGetFunctionAppStacksSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetFunctionAppStacks.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetFunctionAppStacks.json */ /** * Sample code: Get Function App Stacks. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksForLocationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksForLocationSamples.java index 9c8376eeb5033..5a8a69eea075e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksForLocationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksForLocationSamples.java @@ -10,7 +10,7 @@ public final class ProviderGetWebAppStacksForLocationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppStacksForLocation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppStacksForLocation.json */ /** * Sample code: Get Locations Web App Stacks. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksSamples.java index 9daf9a8664e59..db902485126ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderGetWebAppStacksSamples.java @@ -10,7 +10,7 @@ public final class ProviderGetWebAppStacksSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppStacks.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppStacks.json */ /** * Sample code: Get Web App Stacks. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderListOperationsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderListOperationsSamples.java index 650d93fef9e08..05dcfd9a05782 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderListOperationsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ProviderListOperationsSamples.java @@ -10,7 +10,7 @@ public final class ProviderListOperationsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListOperations.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListOperations.json */ /** * Sample code: List operations. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSamples.java index 18e0c9837aa5e..e5f611a74154e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSamples.java @@ -10,7 +10,7 @@ public final class ResourceHealthMetadataGetBySiteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetResourceHealthMetadataBySite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetResourceHealthMetadataBySite.json */ /** * Sample code: Get ResourceHealthMetadata. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSlotSamples.java index 5996bfd0db97c..93151ccd9603e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataGetBySiteSlotSamples.java @@ -10,7 +10,7 @@ public final class ResourceHealthMetadataGetBySiteSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetResourceHealthMetadataBySite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetResourceHealthMetadataBySite.json */ /** * Sample code: Get ResourceHealthMetadata. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListByResourceGroupSamples.java index 5f8b4dd66063e..e4deb01d62e20 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceHealthMetadataListByResourceGroupSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * ListResourceHealthMetadataByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSamples.java index 821b7fe83b6b3..7eb03b61f9168 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSamples.java @@ -10,7 +10,7 @@ public final class ResourceHealthMetadataListBySiteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListResourceHealthMetadataBySite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListResourceHealthMetadataBySite.json */ /** * Sample code: List ResourceHealthMetadata for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSlotSamples.java index 14a5b74ad8e66..36f94ce522816 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListBySiteSlotSamples.java @@ -10,7 +10,7 @@ public final class ResourceHealthMetadataListBySiteSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListResourceHealthMetadataBySite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListResourceHealthMetadataBySite.json */ /** * Sample code: List ResourceHealthMetadata for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListSamples.java index c878f6da14432..f364aef8124bc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceHealthMetadataListSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceHealthMetadataListSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * ListResourceHealthMetadataBySubscription.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListAseRegionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListAseRegionsSamples.java index c9addba9727d2..f4a472c9a6949 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListAseRegionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListAseRegionsSamples.java @@ -10,7 +10,7 @@ public final class ResourceProviderListAseRegionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAseRegions.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAseRegions.json */ /** * Sample code: List aseregions. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListCustomHostnameSitesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListCustomHostnameSitesSamples.java index a4c40896cb080..c7be6312dde32 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListCustomHostnameSitesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderListCustomHostnameSitesSamples.java @@ -10,7 +10,7 @@ public final class ResourceProviderListCustomHostnameSitesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCustomSpecificHostNameSites.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListCustomSpecificHostNameSites.json */ /** * Sample code: Get specific custom hostname under subscription. @@ -28,7 +28,7 @@ public final class ResourceProviderListCustomHostnameSitesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListCustomHostNameSites.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListCustomHostNameSites.json */ /** * Sample code: Get custom hostnames under subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderVerifyHostingEnvironmentVnetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderVerifyHostingEnvironmentVnetSamples.java index 0c9fde8349514..fef7bdf7427c2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderVerifyHostingEnvironmentVnetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/ResourceProviderVerifyHostingEnvironmentVnetSamples.java @@ -12,7 +12,7 @@ public final class ResourceProviderVerifyHostingEnvironmentVnetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/VerifyHostingEnvironmentVnet.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/VerifyHostingEnvironmentVnet.json */ /** * Sample code: VerifyHostingEnvironmentVnet. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesApproveOrRejectPrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesApproveOrRejectPrivateEndpointConnectionSamples.java index ff37bf77b1b4c..46b69d0154230 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesApproveOrRejectPrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesApproveOrRejectPrivateEndpointConnectionSamples.java @@ -12,7 +12,7 @@ */ public final class StaticSitesApproveOrRejectPrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * ApproveRejectSitePrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBasicAuthSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBasicAuthSamples.java index e9f10115f77cf..c5aea0b7a5504 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBasicAuthSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBasicAuthSamples.java @@ -13,7 +13,7 @@ public final class StaticSitesCreateOrUpdateBasicAuthSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteBasicAuth. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateStaticSiteBasicAuth. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBuildDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBuildDatabaseConnectionSamples.java index 10e6e67e3d909..bd50a089d23ab 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBuildDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateBuildDatabaseConnectionSamples.java @@ -11,7 +11,7 @@ */ public final class StaticSitesCreateOrUpdateBuildDatabaseConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * CreateOrUpdateStaticSiteBuildDatabaseConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateDatabaseConnectionSamples.java index f98cff3285700..288b5f9c37aef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateDatabaseConnectionSamples.java @@ -11,7 +11,7 @@ */ public final class StaticSitesCreateOrUpdateDatabaseConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * CreateOrUpdateStaticSiteDatabaseConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteAppSettingsSamples.java index 1c1028e52c0cd..c7b7ddabe9cdd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteAppSettingsSamples.java @@ -14,7 +14,7 @@ public final class StaticSitesCreateOrUpdateStaticSiteAppSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteAppSettings. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateStaticSiteAppSettings. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsSamples.java index ec1799943ec56..f73e4d1b4aa01 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsSamples.java @@ -13,7 +13,7 @@ */ public final class StaticSitesCreateOrUpdateStaticSiteBuildAppSettingsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * CreateOrUpdateStaticSiteBuildAppSettings.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsSamples.java index 42b0202d3581f..1bfbc4c8e4634 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsSamples.java @@ -13,7 +13,7 @@ */ public final class StaticSitesCreateOrUpdateStaticSiteBuildFunctionAppSettingsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * CreateOrUpdateStaticSiteBuildFunctionAppSettings.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteCustomDomainSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteCustomDomainSamples.java index fe1144ca92d18..bfd2d7a94b64c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteCustomDomainSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteCustomDomainSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesCreateOrUpdateStaticSiteCustomDomainSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSiteCustomDomain. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateStaticSiteCustomDomain. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsSamples.java index 6ee42abed3fe7..b97b9274070c5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsSamples.java @@ -13,7 +13,7 @@ */ public final class StaticSitesCreateOrUpdateStaticSiteFunctionAppSettingsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * CreateOrUpdateStaticSiteFunctionAppSettings.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteSamples.java index 53e819b577eae..6320fdbecf610 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateOrUpdateStaticSiteSamples.java @@ -14,7 +14,7 @@ public final class StaticSitesCreateOrUpdateStaticSiteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateStaticSite.json */ /** * Sample code: Create or update a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateUserRolesInvitationLinkSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateUserRolesInvitationLinkSamples.java index 44495b147b61c..c929f9bd1eb61 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateUserRolesInvitationLinkSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateUserRolesInvitationLinkSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesCreateUserRolesInvitationLinkSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateUserRolesInvitationLink.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateUserRolesInvitationLink.json */ /** * Sample code: Create an invitation link for a user for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteBuildSamples.java index c78d7c3509c72..583b719d3b334 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteBuildSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesCreateZipDeploymentForStaticSiteBuildSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StaticSiteBuildZipDeploy.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StaticSiteBuildZipDeploy.json */ /** * Sample code: Deploy a site from a zipped package to a particular static site build. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteSamples.java index 496ac19767c82..50b5b07cb4353 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesCreateZipDeploymentForStaticSiteSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesCreateZipDeploymentForStaticSiteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StaticSiteZipDeploy.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StaticSiteZipDeploy.json */ /** * Sample code: Deploy a site from a zipped package. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteBuildDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteBuildDatabaseConnectionSamples.java index 98bf0307f48e5..dc57951f94361 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteBuildDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteBuildDatabaseConnectionSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesDeleteBuildDatabaseConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * DeleteStaticSiteBuildDatabaseConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteDatabaseConnectionSamples.java index 44faf2208d387..bf62fba3114e2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteDatabaseConnectionSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesDeleteDatabaseConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteDatabaseConnection. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteStaticSiteDatabaseConnection. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeletePrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeletePrivateEndpointConnectionSamples.java index dd1fb94361692..5b9223dad3ede 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeletePrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeletePrivateEndpointConnectionSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesDeletePrivateEndpointConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteSitePrivateEndpointConnection. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteSitePrivateEndpointConnection. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteSamples.java index a2bce47592f6f..f2005a57b2b7f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesDeleteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteStaticSite.json */ /** * Sample code: Delete a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteBuildSamples.java index 0ec499ea3d309..b833476558f11 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteBuildSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesDeleteStaticSiteBuildSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteBuild.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteStaticSiteBuild.json */ /** * Sample code: Delete a static site build. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteCustomDomainSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteCustomDomainSamples.java index 6f01f8fda2013..eb4bfe93bde0d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteCustomDomainSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteCustomDomainSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesDeleteStaticSiteCustomDomainSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteCustomDomain.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteStaticSiteCustomDomain.json */ /** * Sample code: Delete a custom domain for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteUserSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteUserSamples.java index 6b1c5411c9bf6..3783418ba2992 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteUserSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDeleteStaticSiteUserSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesDeleteStaticSiteUserSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteStaticSiteUser.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteStaticSiteUser.json */ /** * Sample code: Delete a user for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachStaticSiteSamples.java index b4d48e2e65cb4..2155db1974055 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachStaticSiteSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesDetachStaticSiteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DetachStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DetachStaticSite.json */ /** * Sample code: Detach a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildSamples.java index f8049cbc032c9..938a8c577084b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesDetachUserProvidedFunctionAppFromStaticSiteBuildSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * DetachUserProvidedFunctionAppFromStaticSiteBuild.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteSamples.java index d739581fb9044..8ade0552f2c90 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesDetachUserProvidedFunctionAppFromStaticSiteSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesDetachUserProvidedFunctionAppFromStaticSiteSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * DetachUserProvidedFunctionAppFromStaticSite.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBasicAuthSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBasicAuthSamples.java index efc34e54f7bf6..2839caaab9620 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBasicAuthSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBasicAuthSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesGetBasicAuthSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBasicAuth.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBasicAuth.json */ /** * Sample code: Gets the basic auth properties for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionSamples.java index 7ed81bfa053b6..23a3d6f1877df 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetBuildDatabaseConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuildDatabaseConnection. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuildDatabaseConnection. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionWithDetailsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionWithDetailsSamples.java index b6fbf15bb8745..1769746d2c872 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionWithDetailsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionWithDetailsSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetBuildDatabaseConnectionWithDetailsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetStaticSiteBuildDatabaseConnectionWithDetails.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsSamples.java index 9e21578bd28e0..a5cf21e4b89a4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetBuildDatabaseConnectionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuildDatabaseConnections + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuildDatabaseConnections * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsWithDetailsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsWithDetailsSamples.java index 052b6b5d748b8..08d34214488a8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsWithDetailsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetBuildDatabaseConnectionsWithDetailsSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetBuildDatabaseConnectionsWithDetailsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetStaticSiteBuildDatabaseConnectionsWithDetails.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetByResourceGroupSamples.java index 246f82563989b..ca38bf843f70a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSite.json */ /** * Sample code: Get details for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionSamples.java index 71c84efc383bc..082681f9ec60f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetDatabaseConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteDatabaseConnection.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteDatabaseConnection.json */ /** * Sample code: Get overview of database connections for the static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionWithDetailsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionWithDetailsSamples.java index 2dede3c3eb9dd..74f527fb7cab7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionWithDetailsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionWithDetailsSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetDatabaseConnectionWithDetailsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetStaticSiteDatabaseConnectionWithDetails.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsSamples.java index 8fd21acc41af0..235a365a4bb58 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetDatabaseConnectionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteDatabaseConnections.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteDatabaseConnections.json */ /** * Sample code: List overviews of database connections for the static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsWithDetailsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsWithDetailsSamples.java index 150f7c8c86ef6..27471ba058268 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsWithDetailsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetDatabaseConnectionsWithDetailsSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetDatabaseConnectionsWithDetailsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetStaticSiteDatabaseConnectionsWithDetails.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendForBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendForBuildSamples.java index 25c9adcc970f7..d79f88b235800 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendForBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendForBuildSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetLinkedBackendForBuildSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendForStaticSiteBuild. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetLinkedBackendForStaticSiteBuild. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendSamples.java index 9541170c080dc..68ed6e1b867b1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetLinkedBackendSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendForStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetLinkedBackendForStaticSite.json */ /** * Sample code: Get details of the linked backend registered with a static site by name. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsForBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsForBuildSamples.java index 44d29821406d4..3dde807a0f405 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsForBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsForBuildSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetLinkedBackendsForBuildSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendsForStaticSiteBuild. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetLinkedBackendsForStaticSiteBuild. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsSamples.java index fabdbeff4af89..e9391b6f60292 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetLinkedBackendsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetLinkedBackendsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetLinkedBackendsForStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetLinkedBackendsForStaticSite.json */ /** * Sample code: Get details of the linked backends registered with a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionListSamples.java index e62cb2fb920b5..c7a91ec0a6e6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionListSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetPrivateEndpointConnectionListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnectionList. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSitePrivateEndpointConnectionList. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionSamples.java index 38531ce0794ab..442b50dc23bbf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateEndpointConnectionSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetPrivateEndpointConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnection.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSitePrivateEndpointConnection.json */ /** * Sample code: Get a private endpoint connection for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateLinkResourcesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateLinkResourcesSamples.java index 24900cc0e4ff4..a6f8bca067799 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateLinkResourcesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetPrivateLinkResourcesSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetPrivateLinkResourcesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateLinkResources.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSitePrivateLinkResources.json */ /** * Sample code: Get private link resources of a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildSamples.java index 34540aa02ed73..3bae89393ffdf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetStaticSiteBuildSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuild.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuild.json */ /** * Sample code: Get a static site build. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildsSamples.java index fb3e130193af8..db32ceacb45d2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteBuildsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetStaticSiteBuildsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteBuilds.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteBuilds.json */ /** * Sample code: Get all builds for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteCustomDomainSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteCustomDomainSamples.java index 7065b3b834e48..46ec8ab208876 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteCustomDomainSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetStaticSiteCustomDomainSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesGetStaticSiteCustomDomainSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteCustomDomain.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteCustomDomain.json */ /** * Sample code: Get custom domain for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildSamples.java index 556ff1b6e6e9e..75b70c759e163 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetUserProvidedFunctionAppForStaticSiteBuildSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetUserProvidedFunctionAppForStaticSiteBuild.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteSamples.java index 4203e1a803e22..fb6acfc1d3f5f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppForStaticSiteSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetUserProvidedFunctionAppForStaticSiteSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetUserProvidedFunctionAppForStaticSite.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildSamples.java index 7448eeadb9c09..6413bf1344932 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetUserProvidedFunctionAppsForStaticSiteBuildSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetUserProvidedFunctionAppsForStaticSiteBuild.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteSamples.java index 6c732055b9034..c82a568bcd00c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesGetUserProvidedFunctionAppsForStaticSiteSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesGetUserProvidedFunctionAppsForStaticSiteSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetUserProvidedFunctionAppsForStaticSite.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendSamples.java index 10e12873bab64..51fa923250ee5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesLinkBackendSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/LinkBackendToStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/LinkBackendToStaticSite.json */ /** * Sample code: Link a backend to a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendToBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendToBuildSamples.java index b95affb538967..e8dcb1e0b9bdd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendToBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesLinkBackendToBuildSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesLinkBackendToBuildSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/LinkBackendToStaticSiteBuild.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/LinkBackendToStaticSiteBuild.json */ /** * Sample code: Link a backend to a static site build. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListBasicAuthSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListBasicAuthSamples.java index b66d46be15ef9..76640e249d49c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListBasicAuthSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListBasicAuthSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListBasicAuthSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteBasicAuth.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteBasicAuth.json */ /** * Sample code: Lists the basic auth properties for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListByResourceGroupSamples.java index df711787f2d8d..855e8f4356c72 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSites.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSites.json */ /** * Sample code: Get static sites for a resource group. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListSamples.java index 3e893054e098c..4a66c4f433e82 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAllStaticSites.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetAllStaticSites.json */ /** * Sample code: Get all static sites in a subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteAppSettingsSamples.java index 9c80358bf359b..7298bc5b9b01a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteAppSettingsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteAppSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteAppSettings.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteAppSettings.json */ /** * Sample code: Get app settings of a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildAppSettingsSamples.java index 78807b8b7df82..d914acc25ed49 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildAppSettingsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteBuildAppSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteBuildAppSettings.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteBuildAppSettings.json */ /** * Sample code: Get app settings of a static site build. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionAppSettingsSamples.java index c1c2a53869cde..53419886ef58f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionAppSettingsSamples.java @@ -9,7 +9,7 @@ */ public final class StaticSitesListStaticSiteBuildFunctionAppSettingsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * ListStaticSiteBuildFunctionAppSettings.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionsSamples.java index f9c8fd07b80f8..8498e3247b223 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteBuildFunctionsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteBuildFunctionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteBuildFunctions.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteBuildFunctions.json */ /** * Sample code: Gets the functions of a particular static site build. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteConfiguredRolesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteConfiguredRolesSamples.java index 21f0519dda768..8ff0017b04a87 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteConfiguredRolesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteConfiguredRolesSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteConfiguredRolesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteConfiguredRoles.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteConfiguredRoles.json */ /** * Sample code: Lists the configured roles for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteCustomDomainsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteCustomDomainsSamples.java index 16401fb57839e..3523a9a2d7625 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteCustomDomainsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteCustomDomainsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteCustomDomainsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetStaticSiteCustomDomains.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetStaticSiteCustomDomains.json */ /** * Sample code: List custom domains for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionAppSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionAppSettingsSamples.java index 7597d6a900a86..4e303c675cb75 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionAppSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionAppSettingsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteFunctionAppSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteFunctionAppSettings. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteFunctionAppSettings. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionsSamples.java index e4bca3017253c..f7552375455b5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteFunctionsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteFunctionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteFunctions.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteFunctions.json */ /** * Sample code: Gets the functions of a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteSecretsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteSecretsSamples.java index 3ef32d026a782..3a32fb995d132 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteSecretsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteSecretsSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteSecretsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteSecrets.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteSecrets.json */ /** * Sample code: List secrets for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteUsersSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteUsersSamples.java index 035b3c446405c..c206bf031579a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteUsersSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesListStaticSiteUsersSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesListStaticSiteUsersSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListStaticSiteUsers.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListStaticSiteUsers.json */ /** * Sample code: List users for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesPreviewWorkflowSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesPreviewWorkflowSamples.java index 98a3e8161b5bb..dcc704389571c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesPreviewWorkflowSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesPreviewWorkflowSamples.java @@ -13,7 +13,7 @@ public final class StaticSitesPreviewWorkflowSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GenerateStaticSiteWorkflowPreview. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GenerateStaticSiteWorkflowPreview. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildSamples.java index ae6e497d38d94..ca1b1491dfa90 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildSamples.java @@ -11,7 +11,7 @@ */ public final class StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteBuildSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * RegisterUserProvidedFunctionAppWithStaticSiteBuild.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteSamples.java index 23498852f134f..9f4813a488e29 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteSamples.java @@ -11,7 +11,7 @@ */ public final class StaticSitesRegisterUserProvidedFunctionAppWithStaticSiteSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * RegisterUserProvidedFunctionAppWithStaticSite.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesResetStaticSiteApiKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesResetStaticSiteApiKeySamples.java index 2828b090f7303..05816cec0f870 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesResetStaticSiteApiKeySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesResetStaticSiteApiKeySamples.java @@ -12,7 +12,7 @@ public final class StaticSitesResetStaticSiteApiKeySamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ResetStaticSiteApiKey.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ResetStaticSiteApiKey.json */ /** * Sample code: Reset the api key for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendFromBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendFromBuildSamples.java index 767f4aba8119c..03a5eeca68f61 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendFromBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendFromBuildSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesUnlinkBackendFromBuildSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UnlinkBackendFromStaticSiteBuild.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UnlinkBackendFromStaticSiteBuild.json */ /** * Sample code: Unlink a backend from a static site build. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendSamples.java index 842e9b2b3969a..5ca7c4d1aaeb7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUnlinkBackendSamples.java @@ -10,7 +10,7 @@ public final class StaticSitesUnlinkBackendSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UnlinkBackendFromStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UnlinkBackendFromStaticSite.json */ /** * Sample code: Unlink a backend from a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateBuildDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateBuildDatabaseConnectionSamples.java index d795ff7dd5bca..82c377180aa23 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateBuildDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateBuildDatabaseConnectionSamples.java @@ -11,7 +11,7 @@ */ public final class StaticSitesUpdateBuildDatabaseConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * PatchStaticSiteBuildDatabaseConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateDatabaseConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateDatabaseConnectionSamples.java index a6d0bc591b49c..5aa0443fadfc7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateDatabaseConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateDatabaseConnectionSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesUpdateDatabaseConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchStaticSiteDatabaseConnection. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PatchStaticSiteDatabaseConnection. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteSamples.java index 25217c6efd201..263e7ac5e3290 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesUpdateStaticSiteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PatchStaticSite.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PatchStaticSite.json */ /** * Sample code: Patch a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteUserSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteUserSamples.java index 9f1bf5d5dae40..85727ddfc15d2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteUserSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesUpdateStaticSiteUserSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesUpdateStaticSiteUserSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateStaticSiteUser.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateStaticSiteUser.json */ /** * Sample code: Create or update a user for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendForBuildSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendForBuildSamples.java index dbc2a0ed22516..a26f21ad4581f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendForBuildSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendForBuildSamples.java @@ -11,7 +11,7 @@ */ public final class StaticSitesValidateBackendForBuildSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * ValidateLinkedBackendForStaticSiteBuild.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendSamples.java index 783f4d5fe16f7..bbe348dc9344c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateBackendSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesValidateBackendSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ValidateLinkedBackendForStaticSite. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ValidateLinkedBackendForStaticSite. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateCustomDomainCanBeAddedToStaticSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateCustomDomainCanBeAddedToStaticSiteSamples.java index 2a9b55b6d56c7..072a63c265da2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateCustomDomainCanBeAddedToStaticSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/StaticSitesValidateCustomDomainCanBeAddedToStaticSiteSamples.java @@ -12,7 +12,7 @@ public final class StaticSitesValidateCustomDomainCanBeAddedToStaticSiteSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ValidateStaticSiteCustomDomain.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ValidateStaticSiteCustomDomain.json */ /** * Sample code: Validate a custom domain for a static site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsGetSamples.java index b4ab988f977b7..6d0b9bd4cc258 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsGetSamples.java @@ -10,7 +10,7 @@ public final class TopLevelDomainsGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/GetTopLevelDomain.json + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/GetTopLevelDomain.json */ /** * Sample code: Get Top Level Domain. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListAgreementsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListAgreementsSamples.java index c50f3b74d459c..e7f60d2899ba8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListAgreementsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListAgreementsSamples.java @@ -11,7 +11,7 @@ */ public final class TopLevelDomainsListAgreementsSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ * ListTopLevelDomainAgreements.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListSamples.java index cfc4c1fc50451..2eb8426977e96 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/TopLevelDomainsListSamples.java @@ -10,7 +10,7 @@ public final class TopLevelDomainsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2023-12-01/examples/ListTopLevelDomains. + * specification/web/resource-manager/Microsoft.DomainRegistration/stable/2024-04-01/examples/ListTopLevelDomains. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSamples.java index 7b316864dcdd6..bfb9e1e1d47ab 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSamples.java @@ -10,7 +10,7 @@ public final class WebAppsAnalyzeCustomHostnameSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AnalyzeCustomHostName.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AnalyzeCustomHostName.json */ /** * Sample code: Analyze custom hostname for webapp. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSlotSamples.java index 5fcb12c4c9348..b1088334ded65 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsAnalyzeCustomHostnameSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsAnalyzeCustomHostnameSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/AnalyzeCustomHostNameSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AnalyzeCustomHostNameSlot.json */ /** * Sample code: Analyze custom hostname for slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApplySlotConfigToProductionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApplySlotConfigToProductionSamples.java index 4433ae079f70f..ebc71ffdf8432 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApplySlotConfigToProductionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApplySlotConfigToProductionSamples.java @@ -12,7 +12,7 @@ public final class WebAppsApplySlotConfigToProductionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ApplySlotConfig.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ApplySlotConfig.json */ /** * Sample code: Apply web app slot config. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSamples.java index bfbf887b5ffda..943c3c0debe34 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSamples.java @@ -12,7 +12,7 @@ */ public final class WebAppsApproveOrRejectPrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * ApproveRejectSitePrivateEndpointConnection.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSlotSamples.java index fc754e2eaf6bd..2f5f64d6d78da 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsApproveOrRejectPrivateEndpointConnectionSlotSamples.java @@ -12,7 +12,7 @@ */ public final class WebAppsApproveOrRejectPrivateEndpointConnectionSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * ApproveRejectSitePrivateEndpointConnectionSlot.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsBackupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsBackupSamples.java index 54104a2134e22..5dcbaccafc656 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsBackupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsBackupSamples.java @@ -17,7 +17,7 @@ */ public final class WebAppsBackupSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/BackupWebApp.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/BackupWebApp.json */ /** * Sample code: Backup web app. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateConfigurationSamples.java index e8508b6f60b80..3bd1d0f82b3ff 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateConfigurationSamples.java @@ -20,7 +20,7 @@ public final class WebAppsCreateOrUpdateConfigurationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateSiteConfig.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateSiteConfig.json */ /** * Sample code: Update Site Config. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSamples.java index 31df3aa83bb72..984d7ee37b46d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSamples.java @@ -29,7 +29,7 @@ */ public final class WebAppsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * CreateOrUpdateFunctionAppFlexConsumptionWithDetails.json */ /** @@ -70,7 +70,7 @@ public final class WebAppsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * CreateOrUpdateFunctionAppFlexConsumption.json */ /** @@ -106,7 +106,7 @@ public static void createOrUpdateFlexConsumptionFunctionApp(com.azure.resourcema /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateWebApp.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateWebApp.json */ /** * Sample code: Create or Update web app. @@ -126,7 +126,7 @@ public static void createOrUpdateWebApp(com.azure.resourcemanager.AzureResourceM } /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CloneWebApp.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CloneWebApp.json */ /** * Sample code: Clone web app. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSlotSamples.java index 9d8b283136233..5500921375510 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsCreateOrUpdateSlotSamples.java @@ -15,7 +15,7 @@ public final class WebAppsCreateOrUpdateSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CloneWebAppSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CloneWebAppSlot.json */ /** * Sample code: Clone web app slot. @@ -44,7 +44,7 @@ public static void cloneWebAppSlot(com.azure.resourcemanager.AzureResourceManage /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/CreateOrUpdateWebAppSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/CreateOrUpdateWebAppSlot.json */ /** * Sample code: Create or Update Web App Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteBackupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteBackupSamples.java index cb4540bdfa99b..76ebef0959b95 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteBackupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteBackupSamples.java @@ -10,7 +10,7 @@ public final class WebAppsDeleteBackupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteWebAppBackup.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteWebAppBackup.json */ /** * Sample code: Delete web app backup. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSamples.java index bf9ae2d1e868d..3823ea84121de 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSamples.java @@ -10,7 +10,7 @@ public final class WebAppsDeletePrivateEndpointConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteSitePrivateEndpointConnection. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteSitePrivateEndpointConnection. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSlotSamples.java index ba76e2a1e5d16..ee8e6e920ced3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeletePrivateEndpointConnectionSlotSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsDeletePrivateEndpointConnectionSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * DeleteSitePrivateEndpointConnectionSlot.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSamples.java index 0c30819ea7b74..1d085b2f61737 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsDeleteSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteWebApp.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteWebApp.json */ /** * Sample code: Delete Web app. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSlotSamples.java index bebaaacae37e4..95c9234583022 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeleteSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsDeleteSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteWebAppSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteWebAppSlot.json */ /** * Sample code: Delete Web App Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSamples.java index d534cef0f9d1e..a9937eaed52cd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSamples.java @@ -18,7 +18,7 @@ public final class WebAppsDeployWorkflowArtifactsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PostDeployWorkflowArtifacts.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PostDeployWorkflowArtifacts.json */ /** * Sample code: Deploys workflow artifacts. @@ -50,7 +50,7 @@ public static void deploysWorkflowArtifacts(com.azure.resourcemanager.AzureResou /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/DeleteDeployWorkflowArtifacts.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/DeleteDeployWorkflowArtifacts.json */ /** * Sample code: Delete workflow artifacts. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSlotSamples.java index f64effcb88fd4..8c55503420977 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsDeployWorkflowArtifactsSlotSamples.java @@ -17,7 +17,7 @@ public final class WebAppsDeployWorkflowArtifactsSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/PostDeployWorkflowArtifactsSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/PostDeployWorkflowArtifactsSlot.json */ /** * Sample code: Deploys workflow artifacts slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSamples.java index ba18051bd451a..388e8cb6e0ac9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetAppSettingKeyVaultReferenceSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetKeyVaultReferencesForAppSetting. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetKeyVaultReferencesForAppSetting. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSlotSamples.java index 0ea5339691621..8e54db8dd3964 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingKeyVaultReferenceSlotSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsGetAppSettingKeyVaultReferenceSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetKeyVaultReferencesForAppSettingSlot.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSamples.java index 734d2b0744c22..9e7fbe6214f36 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetAppSettingsKeyVaultReferencesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetKeyVaultReferencesForAppSettings. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetKeyVaultReferencesForAppSettings. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSlotSamples.java index 04ddb7d014289..adb1de32f876d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAppSettingsKeyVaultReferencesSlotSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsGetAppSettingsKeyVaultReferencesSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * GetKeyVaultReferencesForAppSettingsSlot.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsSamples.java index fc2e257f4b5ba..27535ff4177fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetAuthSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAuthSettings.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAuthSettings.json */ /** * Sample code: List Auth Settings. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2Samples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2Samples.java index 0a6bc4e633e07..145713274bbc9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2Samples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2Samples.java @@ -10,7 +10,7 @@ public final class WebAppsGetAuthSettingsV2Samples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAuthSettingsV2.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAuthSettingsV2.json */ /** * Sample code: List Auth Settings V2. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2WithoutSecretsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2WithoutSecretsSamples.java index 08d72d3297e3f..7c7e0e60ccc5d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2WithoutSecretsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetAuthSettingsV2WithoutSecretsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetAuthSettingsV2WithoutSecretsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetAuthSettingsV2WithoutSecrets.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetAuthSettingsV2WithoutSecrets.json */ /** * Sample code: List Auth Settings without Secrets. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetBackupStatusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetBackupStatusSamples.java index d380c8223073c..50eeef302b91a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetBackupStatusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetBackupStatusSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetBackupStatusSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppBackup.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppBackup.json */ /** * Sample code: Get web app backup. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetByResourceGroupSamples.java index 11e345390de2f..ead0e3b145266 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebApp.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebApp.json */ /** * Sample code: Get Web App. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetConfigurationSamples.java index 9213d702517b5..46e43ebb8e35f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetConfigurationSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetConfigurationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteConfig.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSiteConfig.json */ /** * Sample code: Get Site Config. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSamples.java index b45c28361921f..e4b7275ed1231 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetFtpAllowedSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicy.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetPublishingCredentialsPolicy.json */ /** * Sample code: Get FTP Allowed. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSlotSamples.java index e4ae9f4053a87..cf321e6c032f1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetFtpAllowedSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetFtpAllowedSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicySlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetPublishingCredentialsPolicySlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSamples.java index 4a653efd397eb..c8a0ada523d3e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetInstanceInfoSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteInstanceInfo.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSiteInstanceInfo.json */ /** * Sample code: Get site instance info. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSlotSamples.java index 379865307c159..bdc853db4325a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceInfoSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetInstanceInfoSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteInstanceInfo.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSiteInstanceInfo.json */ /** * Sample code: Get site instance info. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceWorkflowSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceWorkflowSlotSamples.java index a2a1661912e55..73aab5abdd153 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceWorkflowSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetInstanceWorkflowSlotSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsGetInstanceWorkflowSlotSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWorkflow.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWorkflow.json */ /** * Sample code: GET a workflow Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSamples.java index 02f9fd4596801..5df40a6e69096 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTraceOperationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraceOperation.json */ /** * Sample code: Get the current status of a network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotSamples.java index 9a49de9270ea9..c9293a88f23e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTraceOperationSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraceOperation.json */ /** * Sample code: Get the current status of a network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotV2Samples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotV2Samples.java index 6a33b59024390..2a1873f0b6f6f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotV2Samples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationSlotV2Samples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTraceOperationSlotV2Samples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraceOperation.json */ /** * Sample code: Get the current status of a network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationV2Samples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationV2Samples.java index ded681cdf5bbd..64f58d95db26e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationV2Samples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTraceOperationV2Samples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTraceOperationV2Samples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraceOperation.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraceOperation.json */ /** * Sample code: Get the current status of a network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSamples.java index 22f4f9cf4e63f..d5054cea2384b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTracesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraces.json */ /** * Sample code: Get NetworkTraces for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotSamples.java index 9d7686efa8505..72fd10755de2b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTracesSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraces.json */ /** * Sample code: Get NetworkTraces for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotV2Samples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotV2Samples.java index 90414f0d44d64..1d660c946a22e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotV2Samples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesSlotV2Samples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTracesSlotV2Samples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraces.json */ /** * Sample code: Get NetworkTraces for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesV2Samples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesV2Samples.java index e7cbaa3b830ad..c3d47cdb5486a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesV2Samples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetNetworkTracesV2Samples.java @@ -10,7 +10,7 @@ public final class WebAppsGetNetworkTracesV2Samples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebSiteNetworkTraces.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebSiteNetworkTraces.json */ /** * Sample code: Get NetworkTraces for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSamples.java index 306bb3cf53eb7..d2d77d4ea5037 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetPrivateEndpointConnectionSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnection.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSitePrivateEndpointConnection.json */ /** * Sample code: Get a private endpoint connection for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSlotSamples.java index ef4f54c1ab036..0fe90f38fc530 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateEndpointConnectionSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetPrivateEndpointConnectionSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateEndpointConnectionSlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSitePrivateEndpointConnectionSlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSamples.java index 3be0386ed3102..0158ad1d88b2a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetPrivateLinkResourcesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateLinkResources.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSitePrivateLinkResources.json */ /** * Sample code: Get private link resources of a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSlotSamples.java index ab8c73b6db29f..d2a9362486199 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetPrivateLinkResourcesSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetPrivateLinkResourcesSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSitePrivateLinkResourcesSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSitePrivateLinkResourcesSlot.json */ /** * Sample code: Get private link resources of a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetProductionSiteDeploymentStatusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetProductionSiteDeploymentStatusSamples.java index fb9855e2e3cc2..d7ca4f6e46fa4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetProductionSiteDeploymentStatusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetProductionSiteDeploymentStatusSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetProductionSiteDeploymentStatusSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteDeploymentStatus.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSiteDeploymentStatus.json */ /** * Sample code: Get Deployment Status. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSamples.java index f8da2697302ff..c41e5dfff2bac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetScmAllowedSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicy.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetPublishingCredentialsPolicy.json */ /** * Sample code: Get SCM Allowed. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSlotSamples.java index d6c668470573a..92f085fdf777f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetScmAllowedSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetScmAllowedSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetPublishingCredentialsPolicySlot. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetPublishingCredentialsPolicySlot. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSamples.java index 29e26e0d06944..f83505ae50e33 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppSlot.json */ /** * Sample code: Get Web App Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSiteDeploymentStatusSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSiteDeploymentStatusSlotSamples.java index ea0d6f5e640ea..d7c3337e1bbef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSiteDeploymentStatusSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetSlotSiteDeploymentStatusSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsGetSlotSiteDeploymentStatusSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetSiteDeploymentStatusSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetSiteDeploymentStatusSlot.json */ /** * Sample code: Get Deployment Status Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetWorkflowSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetWorkflowSamples.java index 27b3b86f16ec0..be81f12068c90 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetWorkflowSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsGetWorkflowSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsGetWorkflowSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWorkflow.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWorkflow.json */ /** * Sample code: GET a workflow. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListApplicationSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListApplicationSettingsSamples.java index 2f0f581b9e723..1962180589bcc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListApplicationSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListApplicationSettingsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListApplicationSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListAppSettings.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListAppSettings.json */ /** * Sample code: List App Settings. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupStatusSecretsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupStatusSecretsSamples.java index bd559646b5899..7a96030702dce 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupStatusSecretsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupStatusSecretsSamples.java @@ -18,7 +18,7 @@ public final class WebAppsListBackupStatusSecretsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/GetWebAppBackupWithSecrets.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/GetWebAppBackupWithSecrets.json */ /** * Sample code: Get web app backup with secrets. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupsSamples.java index 3be06a7ca0915..a5d3c22def9ef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBackupsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListBackupsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppBackups.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppBackups.json */ /** * Sample code: List web app backups. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSamples.java index 0fe8f2d553821..96167c7fb321e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListBasicPublishingCredentialsPoliciesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListPublishingCredentialsPolicies. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListPublishingCredentialsPolicies. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSlotSamples.java index 76f33a0b75218..f686edc89eddb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListBasicPublishingCredentialsPoliciesSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListBasicPublishingCredentialsPoliciesSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListPublishingCredentialsPoliciesSlot + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListPublishingCredentialsPoliciesSlot * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListByResourceGroupSamples.java index eb188fde09525..bb6bac9a4ce59 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppsByResourceGroup.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppsByResourceGroup.json */ /** * Sample code: List Web Apps by Resource group. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListConfigurationsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListConfigurationsSamples.java index 502adec629b70..9985cc8b262bf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListConfigurationsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListConfigurationsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListConfigurationsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppConfigurations.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppConfigurations.json */ /** * Sample code: List web app configurations. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListInstanceWorkflowsSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListInstanceWorkflowsSlotSamples.java index 1ba45644b58db..94ce383ae83a2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListInstanceWorkflowsSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListInstanceWorkflowsSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListInstanceWorkflowsSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflows.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWorkflows.json */ /** * Sample code: List the workflows Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListProductionSiteDeploymentStatusesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListProductionSiteDeploymentStatusesSamples.java index 65ba05159fec7..ca1791d9834ec 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListProductionSiteDeploymentStatusesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListProductionSiteDeploymentStatusesSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListProductionSiteDeploymentStatusesSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSiteDeploymentStatus.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListSiteDeploymentStatus.json */ /** * Sample code: List Deployment Status. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSamples.java index fc7074395e92c..2b99574475f4f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSamples.java @@ -9,7 +9,7 @@ */ public final class WebAppsListSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebApps.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebApps.json */ /** * Sample code: List Web apps for subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSamples.java index 2891e9720a4f6..70bc90d8febb3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListSiteBackupsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSlotBackups.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListSlotBackups.json */ /** * Sample code: List backups. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSlotSamples.java index 2b47ae73b2537..0c50a65b9547d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSiteBackupsSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListSiteBackupsSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSlotBackups.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListSlotBackups.json */ /** * Sample code: List backups. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotSiteDeploymentStatusesSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotSiteDeploymentStatusesSlotSamples.java index 61d243cdd0db4..498119ea19e24 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotSiteDeploymentStatusesSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotSiteDeploymentStatusesSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListSlotSiteDeploymentStatusesSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListSiteDeploymentStatusSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListSiteDeploymentStatusSlot.json */ /** * Sample code: List Deployment Status Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotsSamples.java index e45fb5a72c738..5bf24260226ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListSlotsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListSlotsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWebAppSlots.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWebAppSlots.json */ /** * Sample code: List Web App Slots. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSamples.java index c63f28931425f..8bd5052f42d74 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListWorkflowsConnectionsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflowsConfigurationConnections + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWorkflowsConfigurationConnections * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSlotSamples.java index 5323da2b71b60..5c0a148601f57 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsConnectionsSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListWorkflowsConnectionsSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflowsConfigurationConnections + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWorkflowsConfigurationConnections * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsSamples.java index 710ce0de1785c..012c407b0c9c1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsListWorkflowsSamples.java @@ -10,7 +10,7 @@ public final class WebAppsListWorkflowsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ListWorkflows.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ListWorkflows.json */ /** * Sample code: List the workflows. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsRestoreSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsRestoreSamples.java index 6c1a590d57c13..09474c5003da9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsRestoreSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsRestoreSamples.java @@ -15,7 +15,7 @@ public final class WebAppsRestoreSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/RestoreWebAppBackup.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/RestoreWebAppBackup.json */ /** * Sample code: Restore web app from backup. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSamples.java index bd20d0a9ea15c..502c4affb10d7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStartNetworkTraceSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StartWebSiteNetworkTraceOperation. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSlotSamples.java index 94cbb9a2ff033..292f493483324 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartNetworkTraceSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStartNetworkTraceSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StartWebSiteNetworkTraceOperation. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSamples.java index 72cc547caaf54..9a87b688c8dee 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStartWebSiteNetworkTraceOperationSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StartWebSiteNetworkTraceOperation. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSlotSamples.java index 228d24940c6c4..9bd126a02db2e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStartWebSiteNetworkTraceOperationSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStartWebSiteNetworkTraceOperationSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StartWebSiteNetworkTraceOperation. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StartWebSiteNetworkTraceOperation. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSamples.java index dccde6fbd58fa..5b579c7c0566b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStopNetworkTraceSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StopWebSiteNetworkTrace.json */ /** * Sample code: Stop a currently running network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSlotSamples.java index f6459d98e2883..0a4dc488e1b9c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopNetworkTraceSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStopNetworkTraceSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StopWebSiteNetworkTrace.json */ /** * Sample code: Stop a currently running network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSamples.java index fa39d8598eb4b..9b67b216c440b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStopWebSiteNetworkTraceSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StopWebSiteNetworkTrace.json */ /** * Sample code: Stop a currently running network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSlotSamples.java index 993315d883373..725276216be05 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsStopWebSiteNetworkTraceSlotSamples.java @@ -10,7 +10,7 @@ public final class WebAppsStopWebSiteNetworkTraceSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/StopWebSiteNetworkTrace.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/StopWebSiteNetworkTrace.json */ /** * Sample code: Stop a currently running network trace operation for a site. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateApplicationSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateApplicationSettingsSamples.java index ad93bf64e0c86..c86e8754bfc36 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateApplicationSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateApplicationSettingsSamples.java @@ -14,7 +14,7 @@ public final class WebAppsUpdateApplicationSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAppSettings.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAppSettings.json */ /** * Sample code: Update App Settings. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsSamples.java index 495837fa672ae..4b62246b8219e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsSamples.java @@ -15,7 +15,7 @@ public final class WebAppsUpdateAuthSettingsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAuthSettings.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAuthSettings.json */ /** * Sample code: Update Auth Settings. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsV2Samples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsV2Samples.java index e8afad892562a..931f6c055935e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsV2Samples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAuthSettingsV2Samples.java @@ -32,7 +32,7 @@ public final class WebAppsUpdateAuthSettingsV2Samples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAuthSettingsV2.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAuthSettingsV2.json */ /** * Sample code: Update Auth Settings V2. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAzureStorageAccountsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAzureStorageAccountsSamples.java index 7b1e97f13536d..cf3f00fbbec98 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAzureStorageAccountsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateAzureStorageAccountsSamples.java @@ -16,7 +16,7 @@ public final class WebAppsUpdateAzureStorageAccountsSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateAzureStorageAccounts.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateAzureStorageAccounts.json */ /** * Sample code: Update Azure Storage Accounts. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSamples.java index 63b1c6457f13b..316f623c3df33 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSamples.java @@ -12,7 +12,7 @@ public final class WebAppsUpdateFtpAllowedSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicy. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdatePublishingCredentialsPolicy. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSlotSamples.java index 38bf7e4b1fd12..38a4ff8b7af56 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateFtpAllowedSlotSamples.java @@ -12,7 +12,7 @@ public final class WebAppsUpdateFtpAllowedSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicySlot + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdatePublishingCredentialsPolicySlot * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateMachineKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateMachineKeySamples.java new file mode 100644 index 0000000000000..6d7cc1446b71f --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateMachineKeySamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appservice.generated; + +/** + * Samples for WebApps UpdateMachineKey. + */ +public final class WebAppsUpdateMachineKeySamples { + /* + * x-ms-original-file: + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json + */ + /** + * Sample code: Updates the machine key for a site. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void updatesTheMachineKeyForASite(com.azure.resourcemanager.AzureResourceManager azure) { + azure.webApps() + .manager() + .serviceClient() + .getWebApps() + .updateMachineKeyWithResponse("rg", "contoso", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSamples.java index 59894eacbb9bb..88126b81da44f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class WebAppsUpdateSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateWebApp.json + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateWebApp.json */ /** * Sample code: Update web app. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSamples.java index 4b6779d795a6e..9fcfe5fb7c69a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSamples.java @@ -12,7 +12,7 @@ public final class WebAppsUpdateScmAllowedSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicy. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdatePublishingCredentialsPolicy. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSlotSamples.java index 4198083f6a2d7..b691e6da8a941 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateScmAllowedSlotSamples.java @@ -12,7 +12,7 @@ public final class WebAppsUpdateScmAllowedSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdatePublishingCredentialsPolicySlot + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdatePublishingCredentialsPolicySlot * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSlotSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSlotSamples.java index bd23ffe30ccc9..6c84619ac982d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSlotSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WebAppsUpdateSlotSamples.java @@ -12,7 +12,7 @@ public final class WebAppsUpdateSlotSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/UpdateWebAppSlot.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateWebAppSlot.json */ /** * Sample code: Update Web App Slot. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsGetSamples.java index 96741ee18be19..544e0dae4855d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsGetSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunActionRepetitionsGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionRepetitions_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRunActionRepetitions_Get.json */ /** * Sample code: Get a repetition. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java index 7b3112fbe0e5a..4bdb0c4531f88 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListExpressionTracesSamples.java @@ -9,7 +9,7 @@ */ public final class WorkflowRunActionRepetitionsListExpressionTracesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * WorkflowRunActionRepetitions_ListExpressionTraces.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListSamples.java index 581557cf73332..204b1ae126386 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsListSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunActionRepetitionsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionRepetitions_List. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRunActionRepetitions_List. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java index 892d458255c1e..ff43507344917 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesGetSamples.java @@ -9,7 +9,7 @@ */ public final class WorkflowRunActionRepetitionsRequestHistoriesGetSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * WorkflowRunActionRepetitionsRequestHistories_Get.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java index 226c75495ae41..d91ed95d2b957 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionRepetitionsRequestHistoriesListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkflowRunActionRepetitionsRequestHistoriesListSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * WorkflowRunActionRepetitionsRequestHistories_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsGetSamples.java index e537590516f1c..a4342ccda3d5e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsGetSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunActionScopeRepetitionsGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActionScopeRepetitions_Get + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRunActionScopeRepetitions_Get * .json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsListSamples.java index d6bf4c6e08d6c..89e0e94fa4041 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionScopeRepetitionsListSamples.java @@ -9,7 +9,7 @@ */ public final class WorkflowRunActionScopeRepetitionsListSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * WorkflowRunActionScopeRepetitions_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsGetSamples.java index 2adc8caa772f0..f52e2af3f3b97 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsGetSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunActionsGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActions_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRunActions_Get.json */ /** * Sample code: Get a workflow run action. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListExpressionTracesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListExpressionTracesSamples.java index 76d674a678427..6e848d7aef96a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListExpressionTracesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListExpressionTracesSamples.java @@ -9,7 +9,7 @@ */ public final class WorkflowRunActionsListExpressionTracesSamples { /* - * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/ + * x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/ * WorkflowRunActions_ListExpressionTraces.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListSamples.java index 968cacc897c49..f847e9282a6e1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunActionsListSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunActionsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRunActions_List.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRunActions_List.json */ /** * Sample code: List a workflow run actions. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsCancelSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsCancelSamples.java index 3946491c09343..75ef26ee58f11 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsCancelSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsCancelSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunsCancelSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRuns_Cancel.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRuns_Cancel.json */ /** * Sample code: Cancel a workflow run. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsGetSamples.java index a96fef5276b7f..a636a0be87f1d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsGetSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunsGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRuns_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRuns_Get.json */ /** * Sample code: Get a run for a workflow. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsListSamples.java index f63bf7d18f402..a257ec517711d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowRunsListSamples.java @@ -10,7 +10,7 @@ public final class WorkflowRunsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowRuns_List.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowRuns_List.json */ /** * Sample code: List workflow runs. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesGetSamples.java index 30a107c4b8193..f5c17854ebc84 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesGetSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggerHistoriesGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggerHistories_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggerHistories_Get.json */ /** * Sample code: Get a workflow trigger history. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesListSamples.java index 6eb6912884a12..8596e3eb0e85e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesListSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggerHistoriesListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggerHistories_List.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggerHistories_List.json */ /** * Sample code: List a workflow trigger history. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesResubmitSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesResubmitSamples.java index b18819d17cf77..a876c7e9d3aac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesResubmitSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggerHistoriesResubmitSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggerHistoriesResubmitSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggerHistories_Resubmit. + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggerHistories_Resubmit. * json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSamples.java index e9b0e822529c7..d46308fd43f80 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggersGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggers_Get.json */ /** * Sample code: Get a workflow trigger. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSchemaJsonSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSchemaJsonSamples.java index 7fde31330674d..ef0604e076f8c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSchemaJsonSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersGetSchemaJsonSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggersGetSchemaJsonSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_GetSchemaJson.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggers_GetSchemaJson.json */ /** * Sample code: Get trigger schema. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListCallbackUrlSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListCallbackUrlSamples.java index 50e10b1f646bb..700f8ca6685a1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListCallbackUrlSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListCallbackUrlSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggersListCallbackUrlSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_ListCallbackUrl.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggers_ListCallbackUrl.json */ /** * Sample code: Get the callback URL for a trigger. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListSamples.java index dd94dbe4d43a4..4f6749cec9b9f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersListSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggersListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_List.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggers_List.json */ /** * Sample code: List workflow triggers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersRunSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersRunSamples.java index 5ec69129c76dc..28dde49eac7d8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersRunSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowTriggersRunSamples.java @@ -10,7 +10,7 @@ public final class WorkflowTriggersRunSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowTriggers_Run.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowTriggers_Run.json */ /** * Sample code: Run a workflow trigger. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsGetSamples.java index d43c430fe5778..1269df840c3a8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsGetSamples.java @@ -10,7 +10,7 @@ public final class WorkflowVersionsGetSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowVersions_Get.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowVersions_Get.json */ /** * Sample code: Get a workflow version. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsListSamples.java index 6b5afc6445c35..ee34b8addd835 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowVersionsListSamples.java @@ -10,7 +10,7 @@ public final class WorkflowVersionsListSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/WorkflowVersions_List.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/WorkflowVersions_List.json */ /** * Sample code: List a workflows versions. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsRegenerateAccessKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsRegenerateAccessKeySamples.java index d2e2600b4ca4e..9d14d917eedad 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsRegenerateAccessKeySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsRegenerateAccessKeySamples.java @@ -13,7 +13,7 @@ public final class WorkflowsRegenerateAccessKeySamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Workflows_RegenerateAccessKey.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Workflows_RegenerateAccessKey.json */ /** * Sample code: Regenerate the callback URL access key for request triggers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsValidateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsValidateSamples.java index 4e2b7a38f410c..5b2163a532943 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsValidateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/appservice/generated/WorkflowsValidateSamples.java @@ -16,7 +16,7 @@ public final class WorkflowsValidateSamples { /* * x-ms-original-file: - * specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/examples/Workflows_Validate.json + * specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/Workflows_Validate.json */ /** * Sample code: Validate a workflow. From 551a603741d390051ffbbf28def77597f8310b33 Mon Sep 17 00:00:00 2001 From: Fabian Meiswinkel Date: Wed, 20 Nov 2024 15:55:28 +0000 Subject: [PATCH 15/44] Remove IndexProperty enum for queries from public surface area (#43026) --- .../azure/cosmos/implementation/query/IndexProperty.java | 8 ++++++++ .../com/azure/cosmos/models/CosmosVectorIndexSpec.java | 6 +----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/IndexProperty.java diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/IndexProperty.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/IndexProperty.java new file mode 100644 index 0000000000000..69e5d0910a706 --- /dev/null +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/query/IndexProperty.java @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.cosmos.implementation.query; + +public enum IndexProperty { + INDEXING_SEARCH_LIST_SIZE, + QUANTIZATION_SIZE_IN_BYTES; +} diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosVectorIndexSpec.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosVectorIndexSpec.java index 20734445103fe..bfc4da5af3488 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosVectorIndexSpec.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosVectorIndexSpec.java @@ -6,6 +6,7 @@ import com.azure.cosmos.CosmosItemSerializer; import com.azure.cosmos.implementation.Constants; import com.azure.cosmos.implementation.JsonSerializable; +import com.azure.cosmos.implementation.query.IndexProperty; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -163,9 +164,4 @@ private Boolean validateIndexType(IndexProperty indexProperty) { } return vectorIndexType.equals(CosmosVectorIndexType.DISK_ANN.toString()); } - - public enum IndexProperty { - INDEXING_SEARCH_LIST_SIZE, - QUANTIZATION_SIZE_IN_BYTES; - } } From 5ac733ca404e2d38755a1f5e12ee50b429b91d51 Mon Sep 17 00:00:00 2001 From: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:33:29 -0500 Subject: [PATCH 16/44] Fix SearchOptions missing Debug, Speller, and QueryLanguage (#43028) Fix SearchOptions missing Debug, Speller, and QueryLanguage --- .../azure-search-documents/CHANGELOG.md | 8 +- sdk/search/azure-search-documents/README.md | 2 +- .../search/documents/SearchAsyncClient.java | 5 +- .../documents/models/SearchOptions.java | 177 ++++++++++++------ .../src/samples/README.md | 2 +- 5 files changed, 123 insertions(+), 71 deletions(-) diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index 362b0beaa1446..6f6518169fd75 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 11.8.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes +## 11.8.0-beta.3 (2024-11-20) ### Bugs Fixed -### Other Changes +- Fixed a bug where `SearchOptions` was missing setters for `QueryDebugMode`, `QueryLanguage`, and `QuerySpellerType`. ## 11.8.0-beta.2 (2024-11-18) diff --git a/sdk/search/azure-search-documents/README.md b/sdk/search/azure-search-documents/README.md index a6e22f237c7ea..7cf96f1bcb05f 100644 --- a/sdk/search/azure-search-documents/README.md +++ b/sdk/search/azure-search-documents/README.md @@ -75,7 +75,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.8.0-beta.2 + 11.8.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java index 79a407558868a..daa7f5fb344fa 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java @@ -1321,7 +1321,10 @@ static SearchRequest createSearchRequest(String searchText, SearchOptions option .setSessionId(options.getSessionId()) .setSelect(nullSafeStringJoin(options.getSelect())) .setSkip(options.getSkip()) - .setTop(options.getTop()); + .setTop(options.getTop()) + .setQueryLanguage(options.getQueryLanguage()) + .setSpeller(options.getSpeller()) + .setDebug(options.getDebug()); SemanticSearchOptions semanticSearchOptions = options.getSemanticSearchOptions(); if (semanticSearchOptions != null) { diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SearchOptions.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SearchOptions.java index 44e14c006ab5f..98cae7068f55f 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SearchOptions.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SearchOptions.java @@ -4,7 +4,6 @@ package com.azure.search.documents.models; import com.azure.core.annotation.Fluent; -import com.azure.search.documents.implementation.models.SearchRequest; import java.util.Arrays; import java.util.List; @@ -15,16 +14,14 @@ @Fluent public final class SearchOptions { /* - * A value that specifies whether to fetch the total count of results. - * Default is false. Setting this value to true may have a performance - * impact. Note that the count returned is an approximation. + * A value that specifies whether to fetch the total count of results. Default is false. Setting this value to true + * may have a performance impact. Note that the count returned is an approximation. */ private Boolean includeTotalCount; /* - * The list of facet expressions to apply to the search query. Each facet - * expression contains a field name, optionally followed by a - * comma-separated list of name:value pairs. + * The list of facet expressions to apply to the search query. Each facet expression contains a field name, + * optionally followed by a comma-separated list of name:value pairs. */ private List facets; @@ -34,120 +31,116 @@ public final class SearchOptions { private String filter; /* - * The list of field names to use for hit highlights. Only searchable - * fields can be used for hit highlighting. + * The list of field names to use for hit highlights. Only searchable fields can be used for hit highlighting. */ private List highlightFields; /* - * A string tag that is appended to hit highlights. Must be set with - * highlightPreTag. Default is </em>. + * A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is </em>. */ private String highlightPostTag; /* - * A string tag that is prepended to hit highlights. Must be set with - * highlightPostTag. Default is <em>. + * A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default is <em>. */ private String highlightPreTag; /* - * A number between 0 and 100 indicating the percentage of the index that - * must be covered by a search query in order for the query to be reported - * as a success. This parameter can be useful for ensuring search - * availability even for services with only one replica. The default is - * 100. + * A number between 0 and 100 indicating the percentage of the index that must be covered by a search query in order + * for the query to be reported as a success. This parameter can be useful for ensuring search availability even for + * services with only one replica. The default is 100. */ private Double minimumCoverage; /* - * The list of OData $orderby expressions by which to sort the results. - * Each expression can be either a field name or a call to either the - * geo.distance() or the search.score() functions. Each expression can be - * followed by asc to indicate ascending, and desc to indicate descending. - * The default is ascending order. Ties will be broken by the match scores - * of documents. If no OrderBy is specified, the default sort order is - * descending by document match score. There can be at most 32 $orderby - * clauses. + * The list of OData $orderby expressions by which to sort the results. Each expression can be either a field name + * or a call to either the geo.distance() or the search.score() functions. Each expression can be followed by asc to + * indicate ascending, and desc to indicate descending. The default is ascending order. Ties will be broken by the + * match scores of documents. If no OrderBy is specified, the default sort order is descending by document match + * score. There can be at most 32 $orderby clauses. */ private List orderBy; /* - * A value that specifies the syntax of the search query. The default is - * 'simple'. Use 'full' if your query uses the Lucene query syntax. + * A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if your query uses the + * Lucene query syntax. */ private QueryType queryType; /* - * The list of parameter values to be used in scoring functions (for - * example, referencePointParameter) using the format name-values. For - * example, if the scoring profile defines a function with a parameter - * called 'mylocation' the parameter string would be - * "mylocation--122.2,44.8" (without the quotes). + * The list of parameter values to be used in scoring functions (for example, referencePointParameter) using the + * format name-values. For example, if the scoring profile defines a function with a parameter called 'mylocation' + * the parameter string would be "mylocation--122.2,44.8" (without the quotes). */ private List scoringParameters; /* - * The name of a scoring profile to evaluate match scores for matching - * documents in order to sort the results. + * The name of a scoring profile to evaluate match scores for matching documents in order to sort the results. */ private String scoringProfile; /* - * The list of field names to which to scope the full-text search. When - * using fielded search (fieldName:searchExpression) in a full Lucene - * query, the field names of each fielded search expression take precedence - * over any field names listed in this parameter. + * The list of field names to which to scope the full-text search. When using fielded + * search (fieldName:searchExpression) in a full Lucene query, the field names of each fielded search expression + * take precedence over any field names listed in this parameter. */ private List searchFields; /* - * A value that specifies whether any or all of the search terms must be - * matched in order to count the document as a match. + * A value that specifies whether any or all of the search terms must be matched in order to count the document as a + * match. */ private SearchMode searchMode; /* - * A value that specifies whether we want to calculate scoring statistics - * (such as document frequency) globally for more consistent scoring, or - * locally, for lower latency. + * A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for + * more consistent scoring, or locally, for lower latency. */ private ScoringStatistics scoringStatistics; /* - * A value to be used to create a sticky session, which can help to get - * more consistent results. As long as the same sessionId is used, a - * best-effort attempt will be made to target the same replica set. Be wary - * that reusing the same sessionID values repeatedly can interfere with the - * load balancing of the requests across replicas and adversely affect the - * performance of the search service. The value used as sessionId cannot - * start with a '_' character. + * A value to be used to create a sticky session, which can help to get more consistent results. As long as the same + * sessionId is used, a best-effort attempt will be made to target the same replica set. Be wary that reusing the + * same sessionID values repeatedly can interfere with the load balancing of the requests across replicas and + * adversely affect the performance of the search service. The value used as sessionId cannot start with a '_' + * character. */ private String sessionId; /* - * The list of fields to retrieve. If unspecified, all fields marked as - * retrievable in the schema are included. + * The list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included. */ private List select; /* - * The number of search results to skip. This value cannot be greater than - * 100,000. If you need to scan documents in sequence, but cannot use $skip - * due to this limitation, consider using $orderby on a totally-ordered key - * and $filter with a range query instead. + * The number of search results to skip. This value cannot be greater than 100,000. If you need to scan documents in + * sequence, but cannot use $skip due to this limitation, consider using $orderby on a totally-ordered key and + * $filter with a range query instead. */ private Integer skip; /* - * The number of search results to retrieve. This can be used in - * conjunction with $skip to implement client-side paging of search - * results. If results are truncated due to server-side paging, the - * response will include a continuation token that can be used to issue - * another Search request for the next page of results. + * The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side + * paging of search results. If results are truncated due to server-side paging, the response will include a + * continuation token that can be used to issue another Search request for the next page of results. */ private Integer top; + /* + * Enables a debugging tool that can be used to further explore your search results. + */ + private QueryDebugMode debug; + + /* + * The language of the query. + */ + private QueryLanguage queryLanguage; + + /* + * Improve search recall by spell-correcting individual search query terms. + */ + private QuerySpellerType speller; + private SemanticSearchOptions semanticSearchOptions; private VectorSearchOptions vectorSearchOptions; @@ -577,6 +570,66 @@ public SearchOptions setTop(Integer top) { return this; } + /** + * Get the debug property: Enables a debugging tool that can be used to further explore your search results. + * + * @return the debug value. + */ + public QueryDebugMode getDebug() { + return this.debug; + } + + /** + * Set the debug property: Enables a debugging tool that can be used to further explore your search results. + * + * @param debug the debug value to set. + * @return the SearchOptions object itself. + */ + public SearchOptions setDebug(QueryDebugMode debug) { + this.debug = debug; + return this; + } + + /** + * Get the queryLanguage property: The language of the query. + * + * @return the queryLanguage value. + */ + public QueryLanguage getQueryLanguage() { + return this.queryLanguage; + } + + /** + * Set the queryLanguage property: The language of the query. + * + * @param queryLanguage the queryLanguage value to set. + * @return the SearchOptions object itself. + */ + public SearchOptions setQueryLanguage(QueryLanguage queryLanguage) { + this.queryLanguage = queryLanguage; + return this; + } + + /** + * Get the speller property: Improve search recall by spell-correcting individual search query terms. + * + * @return the speller value. + */ + public QuerySpellerType getSpeller() { + return this.speller; + } + + /** + * Set the speller property: Improve search recall by spell-correcting individual search query terms. + * + * @param speller the speller value to set. + * @return the SearchOptions object itself. + */ + public SearchOptions setSpeller(QuerySpellerType speller) { + this.speller = speller; + return this; + } + /** * Gets the semantic search options. * diff --git a/sdk/search/azure-search-documents/src/samples/README.md b/sdk/search/azure-search-documents/src/samples/README.md index 02e9dbb1d6ee6..622865d557eff 100644 --- a/sdk/search/azure-search-documents/src/samples/README.md +++ b/sdk/search/azure-search-documents/src/samples/README.md @@ -61,7 +61,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.8.0-beta.2 + 11.8.0-beta.3 ``` [//]: # ({x-version-update-end}) From 1eb95c23a101a58f03ae570627325e60e43905c4 Mon Sep 17 00:00:00 2001 From: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:48:48 -0500 Subject: [PATCH 17/44] Migrate Communication to new Checkstyle and Spotbugs pattern (#42996) Migrate Communication to new Checkstyle and Spotbugs pattern --- .../checkstyle/checkstyle-suppressions.xml | 15 --- .../checkstyle-suppressions.xml | 26 ++++ .../pom.xml | 5 +- .../spotbugs-exclude.xml | 126 ++++++++++++++++++ .../CallAutomationEventParser.java | 6 + .../accesshelpers/package-info.java | 7 + .../models/AnswerCallEventResult.java | 3 +- .../models/CallIntelligenceOptions.java | 6 + .../models/CallLocatorKind.java | 15 ++- .../models/CallMediaRecognitionType.java | 14 +- .../models/CallRejectReason.java | 14 +- .../models/ChannelAffinity.java | 6 + .../callautomation/models/ChoiceResult.java | 6 + .../models/CreateCallEventResult.java | 3 +- .../models/DownloadToFileOptions.java | 6 + .../callautomation/models/DtmfResult.java | 6 + .../callautomation/models/DtmfTone.java | 19 ++- .../callautomation/models/FileSource.java | 6 + .../models/MediaStreamingAudioChannel.java | 14 +- .../models/MediaStreamingContent.java | 15 ++- .../models/MediaStreamingTransport.java | 15 ++- .../models/ParallelDownloadOptions.java | 2 + .../callautomation/models/PlaySource.java | 6 + .../callautomation/models/PlaySourceType.java | 14 +- .../models/RecognitionChoice.java | 6 + .../models/RecognizeInputType.java | 15 ++- .../models/RecognizeResult.java | 6 +- .../models/RecordingChannel.java | 14 +- .../models/RecordingContent.java | 14 +- .../models/RecordingFormat.java | 14 +- .../callautomation/models/RecordingState.java | 14 +- .../models/RecordingStorageType.java | 9 ++ .../models/ResultWithEventHandling.java | 8 ++ .../callautomation/models/SsmlSource.java | 6 + .../models/StartTranscriptionOptions.java | 6 + .../models/StopTranscriptionOptions.java | 6 + .../callautomation/models/TextSource.java | 6 + .../callautomation/models/VoiceKind.java | 9 ++ .../models/events/MediaStreamingStatus.java | 15 ++- .../events/MediaStreamingStatusDetails.java | 15 ++- .../models/events/MediaStreamingUpdate.java | 6 + .../models/events/PlayCanceled.java | 6 + .../models/events/ReasonCode.java | 27 ++++ .../models/events/RecognizeCanceled.java | 6 + .../models/events/RecognizeCompleted.java | 6 + .../models/events/RecognizeFailed.java | 6 + .../models/streaming/StreamingData.java | 5 + .../models/streaming/StreamingDataParser.java | 6 + .../models/streaming/transcription/Word.java | 6 + .../checkstyle-suppressions.xml | 20 +++ .../azure-communication-callingserver/pom.xml | 5 +- .../spotbugs-exclude.xml | 71 ++++++++++ .../callingserver/EventHandler.java | 6 + .../accesshelpers/package-info.java | 7 + .../callingserver/models/CallLocatorKind.java | 14 +- .../models/CallRejectReason.java | 14 +- .../models/DownloadToFileOptions.java | 6 + .../models/DtmfConfigurations.java | 6 + .../callingserver/models/FileSource.java | 6 + .../MediaStreamingAudioChannelType.java | 5 +- .../models/MediaStreamingContentType.java | 5 +- .../models/MediaStreamingTransportType.java | 5 +- .../models/ParallelDownloadOptions.java | 2 + .../callingserver/models/PlayOptions.java | 6 + .../callingserver/models/PlaySource.java | 6 + .../callingserver/models/PlaySourceType.java | 14 +- .../models/RecognizeConfigurations.java | 6 + .../models/RecognizeInputType.java | 5 +- .../models/RecordingChannel.java | 14 +- .../models/RecordingContent.java | 14 +- .../callingserver/models/RecordingFormat.java | 14 +- .../callingserver/models/RecordingState.java | 5 +- .../callingserver/models/StopTones.java | 5 +- .../checkstyle-suppressions.xml | 25 ++++ .../azure-communication-chat/pom.xml | 5 +- .../spotbugs-exclude.xml | 65 +++++++++ .../communication/chat/ChatClientBuilder.java | 6 + .../chat/ChatThreadClientBuilder.java | 6 + .../converters/package-info.java | 7 + .../models/AddChatParticipantsResult.java | 1 + .../chat/models/ChatAttachmentType.java | 14 +- .../chat/models/ChatMessage.java | 6 + .../chat/models/ChatMessageReadReceipt.java | 6 + .../chat/models/ChatParticipant.java | 6 + .../chat/models/ChatThreadProperties.java | 6 + .../chat/models/ListChatMessagesOptions.java | 6 + .../chat/models/ListChatThreadsOptions.java | 6 + .../chat/models/ListParticipantsOptions.java | 6 + .../chat/models/ListReadReceiptOptions.java | 6 + .../checkstyle-suppressions.xml | 7 + .../azure-communication-common/pom.xml | 5 +- .../spotbugs-exclude.xml | 9 ++ .../common/CommunicationIdentifier.java | 6 + .../CommunicationTokenRefreshOptions.java | 36 +++-- .../common/MicrosoftTeamsUserIdentifier.java | 2 + .../common/PhoneNumberIdentifier.java | 2 + .../common/implementation/package-info.java | 7 + .../checkstyle-suppressions.xml | 8 ++ .../azure-communication-email/pom.xml | 5 +- .../spotbugs-exclude.xml | 32 +++++ .../email/models/EmailMessage.java | 6 + .../checkstyle-suppressions.xml | 7 + .../azure-communication-identity/pom.xml | 5 +- .../spotbugs-exclude.xml | 26 ++++ .../CommunicationIdentityClientBuilder.java | 6 + .../converters/package-info.java | 7 + .../checkstyle-suppressions.xml | 14 ++ .../azure-communication-jobrouter/pom.xml | 4 + .../spotbugs-exclude.xml | 88 ++++++++++++ .../converters/package-info.java | 7 + .../implementation/utils/package-info.java | 7 + .../checkstyle-suppressions.xml | 8 ++ .../azure-communication-messages/pom.xml | 4 + .../spotbugs-exclude.xml | 28 ++++ .../checkstyle-suppressions.xml | 13 ++ .../azure-communication-phonenumbers/pom.xml | 5 +- .../spotbugs-exclude.xml | 40 ++++++ .../phonenumbers/CodeCoverageAnnotation.java | 6 + .../PhoneNumbersClientBuilder.java | 6 + .../converters/package-info.java | 7 + .../models/PhoneNumberSearchOptions.java | 6 + .../models/PurchasePhoneNumbersResult.java | 5 + .../models/ReleasePhoneNumberResult.java | 10 +- .../siprouting/SipRoutingClientBuilder.java | 6 + .../checkstyle-suppressions.xml | 14 ++ .../azure-communication-rooms/pom.xml | 5 +- .../spotbugs-exclude.xml | 27 ++++ .../rooms/RoomsClientBuilder.java | 6 + .../converters/package-info.java | 7 + .../models/AddOrUpdateParticipantsResult.java | 6 +- .../rooms/models/ParticipantRole.java | 9 ++ .../models/RemoveParticipantsResult.java | 8 +- .../checkstyle-suppressions.xml | 8 ++ .../azure-communication-sms/pom.xml | 5 +- .../spotbugs-exclude.xml | 21 +++ .../communication/sms/SmsClientBuilder.java | 6 + 136 files changed, 1516 insertions(+), 76 deletions(-) create mode 100644 sdk/communication/azure-communication-callautomation/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-callautomation/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/package-info.java create mode 100644 sdk/communication/azure-communication-callingserver/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-callingserver/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/accesshelpers/package-info.java create mode 100644 sdk/communication/azure-communication-chat/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-chat/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/converters/package-info.java create mode 100644 sdk/communication/azure-communication-common/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-common/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/implementation/package-info.java create mode 100644 sdk/communication/azure-communication-email/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-email/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-identity/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-identity/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/implementation/converters/package-info.java create mode 100644 sdk/communication/azure-communication-jobrouter/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-jobrouter/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/converters/package-info.java create mode 100644 sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/utils/package-info.java create mode 100644 sdk/communication/azure-communication-messages/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-messages/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-phonenumbers/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-phonenumbers/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/implementation/converters/package-info.java create mode 100644 sdk/communication/azure-communication-rooms/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-rooms/spotbugs-exclude.xml create mode 100644 sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/converters/package-info.java create mode 100644 sdk/communication/azure-communication-sms/checkstyle-suppressions.xml create mode 100644 sdk/communication/azure-communication-sms/spotbugs-exclude.xml diff --git a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml index c7946a353713a..7d8d0e625df29 100644 --- a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml +++ b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml @@ -88,13 +88,6 @@ - - - - - - @@ -170,14 +163,6 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-callautomation/pom.xml b/sdk/communication/azure-communication-callautomation/pom.xml index 68b530da37837..bf3231b4e8d3c 100644 --- a/sdk/communication/azure-communication-callautomation/pom.xml +++ b/sdk/communication/azure-communication-callautomation/pom.xml @@ -49,7 +49,10 @@ --add-opens com.azure.communication.common/com.azure.communication.common.implementation=ALL-UNNAMED --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-callautomation/spotbugs-exclude.xml b/sdk/communication/azure-communication-callautomation/spotbugs-exclude.xml new file mode 100644 index 0000000000000..7bfd64e9165bc --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/spotbugs-exclude.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java index 1cde2aa03e7d1..c320e021eba19 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/CallAutomationEventParser.java @@ -64,6 +64,12 @@ public final class CallAutomationEventParser { private static final ClientLogger LOGGER = new ClientLogger(CallAutomationEventParser.class); + /** + * Initializes a new instance of CallAutomationEventParser. + */ + public CallAutomationEventParser() { + } + /*** * Returns a list of events from request's body. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/package-info.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/package-info.java new file mode 100644 index 0000000000000..944e60aa5d10f --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/implementation/accesshelpers/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing access helpers for Azure Communication Call Automation SDK. + */ +package com.azure.communication.callautomation.implementation.accesshelpers; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java index 270bb184f2742..74fd35fe0e343 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/AnswerCallEventResult.java @@ -47,7 +47,8 @@ public CallConnected getSuccessResult() { } /** - * + * Gets the answer failed failure event. + * * @return the answer failed failure event. */ public AnswerFailed getFailureResult() { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java index 82a03af6e7f9a..8a17215b4930a 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallIntelligenceOptions.java @@ -16,6 +16,12 @@ public final class CallIntelligenceOptions { */ private String cognitiveServicesEndpoint; + /** + * Creates an instance of {@link CallIntelligenceOptions}. + */ + public CallIntelligenceOptions() { + } + /** * Get the cognitiveServicesEndpoint property: The endpoint URL of the Azure Cognitive Services resource * attached. diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallLocatorKind.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallLocatorKind.java index ae77e5ebe2ecc..b1c19cce0c9fa 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallLocatorKind.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallLocatorKind.java @@ -15,6 +15,15 @@ public final class CallLocatorKind extends ExpandableStringEnum /** Static value serverCallLocator for CallLocatorKind. */ public static final CallLocatorKind SERVER_CALL_LOCATOR = fromString("serverCallLocator"); + /** + * Creates an instance of {@link CallLocatorKind} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of CallLocatorKind. + */ + @Deprecated + public CallLocatorKind() { + } + /** * Creates or finds a CallLocatorKind from its string representation. * @@ -25,7 +34,11 @@ public static CallLocatorKind fromString(String name) { return fromString(name, CallLocatorKind.class); } - /** @return known CallLocatorKind values. */ + /** + * Get the collection of CallLocatorKind values. + * + * @return known CallLocatorKind values. + */ public static Collection values() { return values(CallLocatorKind.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallMediaRecognitionType.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallMediaRecognitionType.java index a9194c0c1bdf7..e197bdd2bfcbd 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallMediaRecognitionType.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallMediaRecognitionType.java @@ -15,6 +15,15 @@ public final class CallMediaRecognitionType extends ExpandableStringEnum values() { return values(CallMediaRecognitionType.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallRejectReason.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallRejectReason.java index a8527333a25e9..f88d2ff23acfa 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallRejectReason.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CallRejectReason.java @@ -17,6 +17,15 @@ public final class CallRejectReason extends ExpandableStringEnum values() { return values(CallRejectReason.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChannelAffinity.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChannelAffinity.java index 59558f044fd38..b05306625f6e4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChannelAffinity.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChannelAffinity.java @@ -22,6 +22,12 @@ public final class ChannelAffinity { */ private CommunicationIdentifier participant; + /** + * Creates an instance of {@link ChannelAffinity}. + */ + public ChannelAffinity() { + } + /** * Get the channel property: Channel number to which bitstream from a particular participant will be written. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java index 85e6125c57589..2e8cb2843c2c9 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ChoiceResult.java @@ -25,6 +25,12 @@ public final class ChoiceResult extends RecognizeResult { */ private String recognizedPhrase; + /** + * Creates an instance of {@link ChoiceResult}. + */ + public ChoiceResult() { + } + /** * Get the label property: Label is the primary identifier for the choice detected. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java index 6086de965df6d..10cf91ecbdfc6 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/CreateCallEventResult.java @@ -47,7 +47,8 @@ public CallConnected getSuccessResult() { } /** - * + * Gets the create call failure event. + * * @return the create call failure event. */ public CreateCallFailed getFailureResult() { diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DownloadToFileOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DownloadToFileOptions.java index e9e228aaf8eb7..aa12a023d4eab 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DownloadToFileOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DownloadToFileOptions.java @@ -21,6 +21,12 @@ public final class DownloadToFileOptions { */ private boolean overwrite; + /** + * Creates an instance of {@link DownloadToFileOptions}. + */ + public DownloadToFileOptions() { + } + /** * Get the ParallelDownloadOptions * @return ParallelDownloadOptions diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfResult.java index 4b5fa75ac2a0d..755e31d6d5c1d 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfResult.java @@ -21,6 +21,12 @@ public final class DtmfResult extends RecognizeResult { */ private List dtmfTones; + /** + * Creates an instance of {@link DtmfResult}. + */ + public DtmfResult() { + } + /** * Get the tones property: The tones property. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfTone.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfTone.java index a54d5a867e438..cef809bb1a936 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfTone.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/DtmfTone.java @@ -57,6 +57,15 @@ public final class DtmfTone extends ExpandableStringEnum { /** Static value asterisk for Tone. */ public static final DtmfTone ASTERISK = fromString("asterisk"); + /** + * Creates an instance of {@link DtmfTone} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of DtmfTone. + */ + @Deprecated + public DtmfTone() { + } + /** * Creates or finds a Tone from its string representation. * @@ -67,12 +76,18 @@ public static DtmfTone fromString(String name) { return fromString(name, DtmfTone.class); } - /** @return known Tone values. */ + /** + * Get the collection of Tone values. + * @return known Tone values. + */ public static Collection values() { return values(DtmfTone.class); } - /** @return known Tone values in char. */ + /** + * Get the string representation of the Tone. + * @return known Tone values in char. + */ public String convertToString() { String toneValue = this.toString().toLowerCase(Locale.getDefault()); String toneStringValue = ""; diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/FileSource.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/FileSource.java index bb43b453f8181..4d735e1e4af08 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/FileSource.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/FileSource.java @@ -18,6 +18,12 @@ public final class FileSource extends PlaySource { */ private String url; + /** + * Creates an instance of {@link FileSource}. + */ + public FileSource() { + } + /** * Get the uri property: Uri for the audio file to be played. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingAudioChannel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingAudioChannel.java index bf5198739f291..503682ef88064 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingAudioChannel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingAudioChannel.java @@ -15,6 +15,15 @@ public final class MediaStreamingAudioChannel extends ExpandableStringEnum values() { return values(MediaStreamingAudioChannel.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContent.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContent.java index 2c6abeeb3bdc0..bbc5f310f95a8 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContent.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingContent.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.models; import com.azure.core.util.ExpandableStringEnum; + import java.util.Collection; /** Defines values for MediaStreamingContentType. */ @@ -12,6 +13,15 @@ public final class MediaStreamingContent extends ExpandableStringEnum values() { return values(MediaStreamingContent.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingTransport.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingTransport.java index 9b0d3da88339c..cb5b80ff9c041 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingTransport.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/MediaStreamingTransport.java @@ -5,6 +5,7 @@ package com.azure.communication.callautomation.models; import com.azure.core.util.ExpandableStringEnum; + import java.util.Collection; /** Defines values for MediaStreamingTransportType. */ @@ -12,6 +13,15 @@ public final class MediaStreamingTransport extends ExpandableStringEnum values() { return values(MediaStreamingTransport.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ParallelDownloadOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ParallelDownloadOptions.java index 4d94b4a0fac94..c060096e1931b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ParallelDownloadOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/ParallelDownloadOptions.java @@ -80,6 +80,8 @@ public int getMaxConcurrency() { } /** + * Sets the maximum number of parallel requests that will be issued at any given time. + * * @param maxConcurrency The maximum number of parallel requests that will be issued at any given time as a part of * a single parallel transfer. This value applies per api. For example, if two calls to downloadTo are made at * the same time, and each specifies a maxConcurrency of 5, there may be up to 10 outstanding, concurrent requests, diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySource.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySource.java index 62d242f4555de..42d7bfd461c21 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySource.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySource.java @@ -14,6 +14,12 @@ public abstract class PlaySource implements JsonSerializable { */ private String playSourceCacheId; + /** + * Creates an instance of {@link PlaySource}. + */ + public PlaySource() { + } + /** * Get the playSourceCacheId property: Defines the identifier to be used for caching related media. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySourceType.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySourceType.java index bd38a8849f2c1..a1dac482ab124 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySourceType.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/PlaySourceType.java @@ -12,6 +12,15 @@ public final class PlaySourceType extends ExpandableStringEnum { /** Static value file for PlaySourceType. */ public static final PlaySourceType FILE = fromString("file"); + /** + * Creates an instance of {@link PlaySourceType} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of PlaySourceType. + */ + @Deprecated + public PlaySourceType() { + } + /** * Creates or finds a PlaySourceType from its string representation. * @@ -22,7 +31,10 @@ public static PlaySourceType fromString(String name) { return fromString(name, PlaySourceType.class); } - /** @return known PlaySourceType values. */ + /** + * Get the collection of PlaySourceType values. + * @return known PlaySourceType values. + */ public static Collection values() { return values(PlaySourceType.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognitionChoice.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognitionChoice.java index 70b7fb7cd04a9..faf6e625b57d4 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognitionChoice.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognitionChoice.java @@ -28,6 +28,12 @@ public final class RecognitionChoice implements JsonSerializable values() { return values(RecognizeInputType.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognizeResult.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognizeResult.java index abe065d0cf4f1..a69a31a8f66be 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognizeResult.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecognizeResult.java @@ -7,5 +7,9 @@ /** Defines the absract for Recognize Result. */ public abstract class RecognizeResult implements JsonSerializable { - + /** + * Creates an instance of {@link RecognizeResult}. + */ + public RecognizeResult() { + } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingChannel.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingChannel.java index 04c07477dcc05..7e21f63791b9f 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingChannel.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingChannel.java @@ -14,6 +14,15 @@ public final class RecordingChannel extends ExpandableStringEnum values() { return values(RecordingChannel.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingContent.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingContent.java index a71e4dc032295..cc41ce38656ee 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingContent.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingContent.java @@ -15,6 +15,15 @@ public final class RecordingContent extends ExpandableStringEnum values() { return values(RecordingContent.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingFormat.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingFormat.java index 2ee6bb38fe753..5352bb33c84ce 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingFormat.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingFormat.java @@ -18,6 +18,15 @@ public final class RecordingFormat extends ExpandableStringEnum /** Static value mp4 for RecordingFormat. */ public static final RecordingFormat MP4 = fromString("mp4"); + /** + * Creates an instance of {@link RecordingFormat} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of RecordingFormat. + */ + @Deprecated + public RecordingFormat() { + } + /** * Creates or finds a RecordingFormat from its string representation. * @@ -28,7 +37,10 @@ public static RecordingFormat fromString(String name) { return fromString(name, RecordingFormat.class); } - /** @return known RecordingFormat values. */ + /** + * Get the collection of RecordingFormat values. + * @return known RecordingFormat values. + */ public static Collection values() { return values(RecordingFormat.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingState.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingState.java index 1e18c94ab7c14..33bd39d6e17a3 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingState.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingState.java @@ -14,6 +14,15 @@ public final class RecordingState extends ExpandableStringEnum { /** Static value inactive for RecordingStateInternal. */ public static final RecordingState INACTIVE = fromString("inactive"); + /** + * Creates an instance of {@link RecordingState} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of RecordingState. + */ + @Deprecated + public RecordingState() { + } + /** * Creates or finds a RecordingStateInternal from its string representation. * @@ -24,7 +33,10 @@ public static RecordingState fromString(String name) { return fromString(name, RecordingState.class); } - /** @return known RecordingStateInternal values. */ + /** + * Get the collection of RecordingStateInternal values. + * @return known RecordingStateInternal values. + */ public static Collection values() { return values(RecordingState.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingStorageType.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingStorageType.java index 18dcce011044f..8b26252163668 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingStorageType.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/RecordingStorageType.java @@ -16,6 +16,15 @@ public final class RecordingStorageType extends ExpandableStringEnum the type of the event result */ public abstract class ResultWithEventHandling { /** @@ -26,6 +28,12 @@ public abstract class ResultWithEventHandling { */ protected String operationContextFromRequest; + /** + * Creates a new instance of {@link ResultWithEventHandling}. + */ + public ResultWithEventHandling() { + } + /** * Sets the event processor * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SsmlSource.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SsmlSource.java index 44dcc92233e39..342565e3cff5c 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SsmlSource.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/SsmlSource.java @@ -23,6 +23,12 @@ public final class SsmlSource extends PlaySource { */ private String customVoiceEndpointId; + /** + * Initializes a new instance of {@link SsmlSource}. + */ + public SsmlSource() { + } + /** * Get the ssmlText property: Ssml string for the cognitive service to be played. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartTranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartTranscriptionOptions.java index b700482bdb6b7..7390c6eda6af5 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartTranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StartTranscriptionOptions.java @@ -18,6 +18,12 @@ public class StartTranscriptionOptions { */ private String operationContext; + /** + * Creates an instance of {@link StartTranscriptionOptions}. + */ + public StartTranscriptionOptions() { + } + /** * Get the locale. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StopTranscriptionOptions.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StopTranscriptionOptions.java index 6425be5f63f16..453148480cdce 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StopTranscriptionOptions.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/StopTranscriptionOptions.java @@ -13,6 +13,12 @@ public class StopTranscriptionOptions { */ private String operationContext; + /** + * Creates an instance of {@link StopTranscriptionOptions}. + */ + public StopTranscriptionOptions() { + } + /** * Get the operation context. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TextSource.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TextSource.java index b15bff582d34c..a88aa062b053f 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TextSource.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/TextSource.java @@ -38,6 +38,12 @@ public final class TextSource extends PlaySource { */ private String customVoiceEndpointId; + /** + * Creates a new instance of {@link TextSource}. + */ + public TextSource() { + } + /** * Get the text property: Text for the cognitive service to be played. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/VoiceKind.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/VoiceKind.java index 3bca53464c868..a8e78583193ca 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/VoiceKind.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/VoiceKind.java @@ -15,6 +15,15 @@ public final class VoiceKind extends ExpandableStringEnum { /** Static value female for VoiceKind. */ public static final VoiceKind FEMALE = fromString("female"); + /** + * Creates an instance of {@link VoiceKind} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of VoiceKind. + */ + @Deprecated + public VoiceKind() { + } + /** * Creates or finds a VoiceKind from its string representation. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatus.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatus.java index 82d0e0b0940a9..58e32b9ba598e 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatus.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatus.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.models.events; import com.azure.core.util.ExpandableStringEnum; + import java.util.Collection; /** Defines values for MediaStreamingStatus. */ @@ -20,6 +21,15 @@ public final class MediaStreamingStatus extends ExpandableStringEnum values() { return values(MediaStreamingStatus.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatusDetails.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatusDetails.java index dedb090bff321..34130feb48374 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatusDetails.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingStatusDetails.java @@ -4,6 +4,7 @@ package com.azure.communication.callautomation.models.events; import com.azure.core.util.ExpandableStringEnum; + import java.util.Collection; /** Defines values for MediaStreamingStatusDetails. */ @@ -58,6 +59,15 @@ public final class MediaStreamingStatusDetails extends ExpandableStringEnum values() { return values(MediaStreamingStatusDetails.class); } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdate.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdate.java index 8ccd6b9931b19..ae8e47cd7f6ef 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdate.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/MediaStreamingUpdate.java @@ -29,6 +29,12 @@ public final class MediaStreamingUpdate implements JsonSerializable { public static final ReasonCode SPEECH_NOT_RECOGNIZED = fromReasonCode(8563); /** Recognize with choice cognitive service connection error. */ public static final ReasonCode SPEECH_COGNITIVE_SERVICE_CONNECTION_ERROR = fromReasonCode(8564); + + /** + * Creates an instance of {@link Recognize} with no string value. + * + * @deprecated Please use constants instead. + */ + @Deprecated + public Recognize() { + } } /** Reason code names for the Play operation */ @@ -49,6 +58,15 @@ public static class Play extends ExpandableStringEnum { public static final ReasonCode TEXT_OR_SSML_SOURCE_EMPTY = fromReasonCode(8582); /** Action failed, cognitive services error. */ public static final ReasonCode COGNITIVE_SERVICES_ERROR = fromReasonCode(8565); + + /** + * Creates an instance of {@link Play} with no string value. + * + * @deprecated Please use constants instead. + */ + @Deprecated + public Play() { + } } /** Action completed successfully. */ @@ -56,6 +74,15 @@ public static class Play extends ExpandableStringEnum { /** Unknown internal server error. */ public static final ReasonCode UNSPECIFIED_ERROR = fromReasonCode(9999); + /** + * Creates an instance of {@link ReasonCode} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of ReasonCode. + */ + @Deprecated + public ReasonCode() { + } + /** * Creates or finds a ReasonCode from its string representation. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCanceled.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCanceled.java index 6cd81e1858f38..bf6d770dc450b 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCanceled.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCanceled.java @@ -13,6 +13,12 @@ /** The RecognizeCanceled model. */ @Fluent public final class RecognizeCanceled extends CallAutomationEventBase { + /** + * Creates an instance of {@link RecognizeCanceled}. + */ + public RecognizeCanceled() { + } + /** * {@inheritDoc} */ diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCompleted.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCompleted.java index 24dc5ebe9ce42..dc6c11cedfb7f 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCompleted.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeCompleted.java @@ -42,6 +42,12 @@ public final class RecognizeCompleted extends CallAutomationEventBaseWithReasonC */ private ChoiceResult collectChoiceResult; + /** + * Creates an instance of {@link RecognizeCompleted}. + */ + public RecognizeCompleted() { + } + /** * Get the collectToneResult or choiceResult property. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeFailed.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeFailed.java index 4bf259535ffcf..df6baeac067df 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeFailed.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/events/RecognizeFailed.java @@ -13,6 +13,12 @@ /** The RecognizeFailed model. */ @Fluent public final class RecognizeFailed extends CallAutomationEventBaseWithReasonCode { + /** + * Creates an instance of {@link RecognizeFailed}. + */ + public RecognizeFailed() { + } + /** * {@inheritDoc} */ diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingData.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingData.java index 09374d3615d53..a1c2b792475ad 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingData.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingData.java @@ -5,4 +5,9 @@ /** The abstract classed used as parent of Streaming data such as Audio, Transcription or Captions. */ public abstract class StreamingData { + /** + * Creates an instance of {@link StreamingData}. + */ + public StreamingData() { + } } diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingDataParser.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingDataParser.java index aa1405063d6b5..c444306d40d00 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingDataParser.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/StreamingDataParser.java @@ -27,6 +27,12 @@ public final class StreamingDataParser { private static final ClientLogger LOGGER = new ClientLogger(StreamingDataParser.class); + /** + * Creates an instance of {@link StreamingDataParser}. + */ + public StreamingDataParser() { + } + /*** * Parses StreamingData such as Audio, Transcription or Captions from BinaryData. * diff --git a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/transcription/Word.java b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/transcription/Word.java index e3b8103db7e1d..f012d148022da 100644 --- a/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/transcription/Word.java +++ b/sdk/communication/azure-communication-callautomation/src/main/java/com/azure/communication/callautomation/models/streaming/transcription/Word.java @@ -30,6 +30,12 @@ public class Word implements JsonSerializable { */ private long duration; + /** + * Creates a new instance of {@link Word}. + */ + public Word() { + } + /** * Get the text property. * diff --git a/sdk/communication/azure-communication-callingserver/checkstyle-suppressions.xml b/sdk/communication/azure-communication-callingserver/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..78b067b9d7eea --- /dev/null +++ b/sdk/communication/azure-communication-callingserver/checkstyle-suppressions.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-callingserver/pom.xml b/sdk/communication/azure-communication-callingserver/pom.xml index b904fbc043976..07b96b4da9087 100644 --- a/sdk/communication/azure-communication-callingserver/pom.xml +++ b/sdk/communication/azure-communication-callingserver/pom.xml @@ -48,7 +48,10 @@ --add-opens com.azure.communication.callingserver/com.azure.communication.callingserver.implementation=ALL-UNNAMED --add-opens com.azure.communication.common/com.azure.communication.common.implementation=ALL-UNNAMED - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-callingserver/spotbugs-exclude.xml b/sdk/communication/azure-communication-callingserver/spotbugs-exclude.xml new file mode 100644 index 0000000000000..2837d01f835a1 --- /dev/null +++ b/sdk/communication/azure-communication-callingserver/spotbugs-exclude.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/EventHandler.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/EventHandler.java index 78a5fe9715716..5ff392f11416a 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/EventHandler.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/EventHandler.java @@ -30,6 +30,12 @@ public final class EventHandler { private static final ClientLogger LOGGER = new ClientLogger(EventHandler.class); + /** + * Initializes a new instance of EventHandler. + */ + public EventHandler() { + } + /*** * Returns a list of events from request's body. * diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/accesshelpers/package-info.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/accesshelpers/package-info.java new file mode 100644 index 0000000000000..bdf936a86693f --- /dev/null +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/accesshelpers/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing access helpers for Azure Communication Calling Server SDK. + */ +package com.azure.communication.callingserver.implementation.accesshelpers; diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallLocatorKind.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallLocatorKind.java index e01becbeaf7db..779da106cb172 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallLocatorKind.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallLocatorKind.java @@ -15,6 +15,15 @@ public final class CallLocatorKind extends ExpandableStringEnum /** Static value serverCallLocator for CallLocatorKind. */ public static final CallLocatorKind SERVER_CALL_LOCATOR = fromString("serverCallLocator"); + /** + * Creates an instance of {@link CallLocatorKind} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of CallLocatorKind. + */ + @Deprecated + public CallLocatorKind() { + } + /** * Creates or finds a CallLocatorKind from its string representation. * @@ -25,7 +34,10 @@ public static CallLocatorKind fromString(String name) { return fromString(name, CallLocatorKind.class); } - /** @return known CallLocatorKind values. */ + /** + * Get the collection of CallLocatorKind values. + * @return known CallLocatorKind values. + */ public static Collection values() { return values(CallLocatorKind.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallRejectReason.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallRejectReason.java index 496723591479b..43156eb8d4c50 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallRejectReason.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/CallRejectReason.java @@ -17,6 +17,15 @@ public final class CallRejectReason extends ExpandableStringEnum values() { return values(CallRejectReason.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DownloadToFileOptions.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DownloadToFileOptions.java index 85e4ade0e7779..77e6031ea61dd 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DownloadToFileOptions.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DownloadToFileOptions.java @@ -21,6 +21,12 @@ public class DownloadToFileOptions { */ private boolean overwrite; + /** + * Creates a new instance of {@link DownloadToFileOptions}. + */ + public DownloadToFileOptions() { + } + /** * Get the ParallelDownloadOptions * @return ParallelDownloadOptions diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DtmfConfigurations.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DtmfConfigurations.java index b431efd934b77..edfdde1b8d848 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DtmfConfigurations.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/DtmfConfigurations.java @@ -33,6 +33,12 @@ public final class DtmfConfigurations implements JsonSerializable stopTones; + /** + * Creates a new instance of {@link DtmfConfigurations}. + */ + public DtmfConfigurations() { + } + /** * Get the interToneTimeoutInSeconds property: Time to wait between DTMF inputs to stop recognizing. * diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/FileSource.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/FileSource.java index 670ab33699544..88238f646cdfb 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/FileSource.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/FileSource.java @@ -18,6 +18,12 @@ public final class FileSource extends PlaySource { */ private String uri; + /** + * Creates a new instance of {@link FileSource}. + */ + public FileSource() { + } + /** * Get the uri property: Uri for the audio file to be played. * diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingAudioChannelType.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingAudioChannelType.java index cbbd831c20bb5..53bad9b3d2b07 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingAudioChannelType.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingAudioChannelType.java @@ -36,7 +36,10 @@ public static MediaStreamingAudioChannelType fromString(String name) { return fromString(name, MediaStreamingAudioChannelType.class); } - /** @return known MediaStreamingAudioChannelType values. */ + /** + * Get the collection of MediaStreamingAudioChannelType values. + * @return known MediaStreamingAudioChannelType values. + */ public static Collection values() { return values(MediaStreamingAudioChannelType.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingContentType.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingContentType.java index 5f88a6fb94588..e0c8ef8d702f7 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingContentType.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingContentType.java @@ -33,7 +33,10 @@ public static MediaStreamingContentType fromString(String name) { return fromString(name, MediaStreamingContentType.class); } - /** @return known MediaStreamingContentType values. */ + /** + * Get the collection of MediaStreamingContentType values. + * @return known MediaStreamingContentType values. + */ public static Collection values() { return values(MediaStreamingContentType.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingTransportType.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingTransportType.java index 349a67619ff49..6af7e0d8440a8 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingTransportType.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/MediaStreamingTransportType.java @@ -33,7 +33,10 @@ public static MediaStreamingTransportType fromString(String name) { return fromString(name, MediaStreamingTransportType.class); } - /** @return known MediaStreamingTransportType values. */ + /** + * Get the collection of MediaStreamingTransportType values. + * @return known MediaStreamingTransportType values. + */ public static Collection values() { return values(MediaStreamingTransportType.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java index a2738226d04e2..bac92c36a6d27 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/ParallelDownloadOptions.java @@ -80,6 +80,8 @@ public int getMaxConcurrency() { } /** + * Sets the maximum number of parallel requests that will be issued at any given time. + * * @param maxConcurrency The maximum number of parallel requests that will be issued at any given time as a part of * a single parallel transfer. This value applies per api. For example, if two calls to downloadTo are made at * the same time, and each specifies a maxConcurrency of 5, there may be up to 10 outstanding, concurrent requests, diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlayOptions.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlayOptions.java index 8c0ca662626f5..c978131fd92f9 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlayOptions.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlayOptions.java @@ -18,6 +18,12 @@ public final class PlayOptions { */ private String operationContext; + /** + * Creates a new instance of {@link PlayOptions}. + */ + public PlayOptions() { + } + /** * Get the loop property: The option to play the provided audio source in loop when set to true. * diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySource.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySource.java index a3c2158689cb8..02cfa7d0cb2bb 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySource.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySource.java @@ -19,6 +19,12 @@ public abstract class PlaySource implements JsonSerializable { */ private String playSourceId; + /** + * Creates a new instance of {@link PlaySource}. + */ + public PlaySource() { + } + /** * Get the playSourceId property: Defines the identifier to be used for caching related media. * diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySourceType.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySourceType.java index 6dd4c902ef41b..937b83158c1fc 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySourceType.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/PlaySourceType.java @@ -12,6 +12,15 @@ public final class PlaySourceType extends ExpandableStringEnum { /** Static value file for PlaySourceType. */ public static final PlaySourceType FILE = fromString("file"); + /** + * Creates an instance of {@link PlaySourceType} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of PlaySourceType. + */ + @Deprecated + public PlaySourceType() { + } + /** * Creates or finds a PlaySourceType from its string representation. * @@ -22,7 +31,10 @@ public static PlaySourceType fromString(String name) { return fromString(name, PlaySourceType.class); } - /** @return known PlaySourceType values. */ + /** + * Get the collection of PlaySourceType values. + * @return known PlaySourceType values. + */ public static Collection values() { return values(PlaySourceType.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecognizeConfigurations.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecognizeConfigurations.java index 4b949b50c6827..127a84620904a 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecognizeConfigurations.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecognizeConfigurations.java @@ -39,6 +39,12 @@ public final class RecognizeConfigurations implements JsonSerializable values() { return values(RecognizeInputType.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingChannel.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingChannel.java index 0b1c2343ac984..2f4caec881f81 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingChannel.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingChannel.java @@ -14,6 +14,15 @@ public final class RecordingChannel extends ExpandableStringEnum values() { return values(RecordingChannel.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingContent.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingContent.java index 67b35b0e505a6..21fdf9c0ba9b1 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingContent.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingContent.java @@ -15,6 +15,15 @@ public final class RecordingContent extends ExpandableStringEnum values() { return values(RecordingContent.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingFormat.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingFormat.java index ba01a615fa731..57f9f1831c887 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingFormat.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingFormat.java @@ -18,6 +18,15 @@ public final class RecordingFormat extends ExpandableStringEnum /** Static value mp4 for RecordingFormat. */ public static final RecordingFormat MP4 = fromString("mp4"); + /** + * Creates an instance of {@link RecordingFormat} with no string value. + * + * @deprecated Please use {@link #fromString(String)} to create an instance of RecordingFormat. + */ + @Deprecated + public RecordingFormat() { + } + /** * Creates or finds a RecordingFormat from its string representation. * @@ -28,7 +37,10 @@ public static RecordingFormat fromString(String name) { return fromString(name, RecordingFormat.class); } - /** @return known RecordingFormat values. */ + /** + * Get the collection of RecordingFormat values. + * @return known RecordingFormat values. + */ public static Collection values() { return values(RecordingFormat.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingState.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingState.java index 0a1083b95dd83..eb985a597f972 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingState.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/RecordingState.java @@ -33,7 +33,10 @@ public static RecordingState fromString(String name) { return fromString(name, RecordingState.class); } - /** @return known RecordingStateInternal values. */ + /** + * Get the collection of RecordingStateInternal values. + * @return known RecordingStateInternal values. + */ public static Collection values() { return values(RecordingState.class); } diff --git a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/StopTones.java b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/StopTones.java index c0ce082f77c87..fd5a6b7af7104 100644 --- a/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/StopTones.java +++ b/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/models/StopTones.java @@ -76,7 +76,10 @@ public static StopTones fromString(String name) { return fromString(name, StopTones.class); } - /** @return known StopTones values. */ + /** + * Get the collection of StopTones values. + * @return known StopTones values. + */ public static Collection values() { return values(StopTones.class); } diff --git a/sdk/communication/azure-communication-chat/checkstyle-suppressions.xml b/sdk/communication/azure-communication-chat/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..019a62601ceec --- /dev/null +++ b/sdk/communication/azure-communication-chat/checkstyle-suppressions.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-chat/pom.xml b/sdk/communication/azure-communication-chat/pom.xml index c02cf1355dd6b..d860fed86662b 100644 --- a/sdk/communication/azure-communication-chat/pom.xml +++ b/sdk/communication/azure-communication-chat/pom.xml @@ -44,7 +44,10 @@ --add-opens com.azure.communication.common/com.azure.communication.common.implementation=ALL-UNNAMED --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-chat/spotbugs-exclude.xml b/sdk/communication/azure-communication-chat/spotbugs-exclude.xml new file mode 100644 index 0000000000000..e3033dfef9f82 --- /dev/null +++ b/sdk/communication/azure-communication-chat/spotbugs-exclude.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatClientBuilder.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatClientBuilder.java index f6058067a90af..bd64115843cf9 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatClientBuilder.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatClientBuilder.java @@ -58,6 +58,12 @@ public final class ChatClientBuilder private static final String SDK_NAME = "name"; private static final String SDK_VERSION = "version"; + /** + * Creates a new instance of {@link ChatClientBuilder}. + */ + public ChatClientBuilder() { + } + /** * Set endpoint of the service * diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatThreadClientBuilder.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatThreadClientBuilder.java index 7a475d512b604..03db6f6d15cea 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatThreadClientBuilder.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatThreadClientBuilder.java @@ -58,6 +58,12 @@ public final class ChatThreadClientBuilder implements ConfigurationTrait invalidParticipants; /** + * Creates a new instance of {@link AddChatParticipantsResult}. * * @param invalidParticipants List of errors relating to invalid participants */ diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatAttachmentType.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatAttachmentType.java index c174bd36e29fa..b2498a24e69ef 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatAttachmentType.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatAttachmentType.java @@ -16,6 +16,15 @@ public final class ChatAttachmentType extends ExpandableStringEnum values() { return values(ChatAttachmentType.class); } diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java index d7bb01b076fc4..2979def1f0611 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java @@ -80,6 +80,12 @@ public final class ChatMessage implements JsonSerializable { */ private Map metadata; + /** + * Creates a new instance of {@link ChatMessage}. + */ + public ChatMessage() { + } + /** * Get the id property: The id of the chat message. This id is server generated. * diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessageReadReceipt.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessageReadReceipt.java index 35ca15d41a7ba..acdec1ee31894 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessageReadReceipt.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessageReadReceipt.java @@ -41,6 +41,12 @@ public final class ChatMessageReadReceipt implements JsonSerializable */ private OffsetDateTime shareHistoryTime; + /** + * Creates a new instance of {@link ChatParticipant}. + */ + public ChatParticipant() { + } + /** * Get the communicationIdentifier property: Identifies a participant in Azure Communication services. A participant * is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatThreadProperties.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatThreadProperties.java index 49f0f52304382..f73e2c4a7de1a 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatThreadProperties.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatThreadProperties.java @@ -30,6 +30,12 @@ public final class ChatThreadProperties implements JsonSerializable + + + + + + diff --git a/sdk/communication/azure-communication-common/pom.xml b/sdk/communication/azure-communication-common/pom.xml index 20ad1d85171d7..e34a1b033c977 100644 --- a/sdk/communication/azure-communication-common/pom.xml +++ b/sdk/communication/azure-communication-common/pom.xml @@ -40,7 +40,10 @@ src/test 0.70 0.70 - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-common/spotbugs-exclude.xml b/sdk/communication/azure-communication-common/spotbugs-exclude.xml new file mode 100644 index 0000000000000..4fd8a4a92fa4e --- /dev/null +++ b/sdk/communication/azure-communication-common/spotbugs-exclude.xml @@ -0,0 +1,9 @@ + + + + + + + + diff --git a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationIdentifier.java b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationIdentifier.java index 402a523054556..1215217d084a3 100644 --- a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationIdentifier.java +++ b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationIdentifier.java @@ -35,6 +35,12 @@ public abstract class CommunicationIdentifier { private String rawId; + /** + * Creates a new instance of {@link CommunicationIdentifier}. + */ + public CommunicationIdentifier() { + } + /** * When storing rawIds, use this function to restore the identifier that was encoded in the rawId. * diff --git a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationTokenRefreshOptions.java b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationTokenRefreshOptions.java index a2ee37939bb02..768526de57523 100644 --- a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationTokenRefreshOptions.java +++ b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/CommunicationTokenRefreshOptions.java @@ -21,12 +21,12 @@ public final class CommunicationTokenRefreshOptions { * Creates a CommunicationTokenRefreshOptions object * * @param tokenRefresher The asynchronous callback function that acquires a fresh token - * from the Communication Identity API, e.g. by - * calling the CommunicationIdentityClient + * from the Communication Identity API, e.g. by + * calling the CommunicationIdentityClient * @param refreshProactively Determines whether the token should be proactively - * renewed prior to its expiry or on demand. + * renewed prior to its expiry or on demand. * @deprecated Use {@link #CommunicationTokenRefreshOptions(Supplier)} instead - * and chain fluent setter {@link #setRefreshProactively(boolean)} + * and chain fluent setter {@link #setRefreshProactively(boolean)} */ @Deprecated public CommunicationTokenRefreshOptions(Supplier> tokenRefresher, boolean refreshProactively) { @@ -37,14 +37,14 @@ public CommunicationTokenRefreshOptions(Supplier> tokenRefresher, b * Creates a CommunicationTokenRefreshOptions object * * @param tokenRefresher The asynchronous callback function that acquires a fresh token - * from the Communication Identity API, e.g. by - * calling the CommunicationIdentityClient + * from the Communication Identity API, e.g. by + * calling the CommunicationIdentityClient * @param refreshProactively Determines whether the token should be proactively - * renewed prior to its expiry or on demand. + * renewed prior to its expiry or on demand. * @param initialToken The optional serialized JWT token * @deprecated Use {@link #CommunicationTokenRefreshOptions(Supplier)} instead - * and chain fluent setters {@link #setRefreshProactively(boolean)}, - * {@link #setInitialToken(String)} + * and chain fluent setters {@link #setRefreshProactively(boolean)}, + * {@link #setInitialToken(String)} */ @Deprecated public CommunicationTokenRefreshOptions(Supplier> tokenRefresher, boolean refreshProactively, @@ -60,10 +60,10 @@ public CommunicationTokenRefreshOptions(Supplier> tokenRefresher, b * Creates a CommunicationTokenRefreshOptions object * * @param tokenRefresher The synchronous callback function that acquires a fresh token from - * the Communication Identity API, e.g. by calling the - * CommunicationIdentityClient - * The returned token must be valid (its expiration date - * must be set in the future). + * the Communication Identity API, e.g. by calling the + * CommunicationIdentityClient + * The returned token must be valid (its expiration date + * must be set in the future). */ public CommunicationTokenRefreshOptions(Supplier tokenRefresher) { Objects.requireNonNull(tokenRefresher, "'tokenRefresher' cannot be null."); @@ -74,6 +74,8 @@ public CommunicationTokenRefreshOptions(Supplier tokenRefresher) { } /** + * Gets the asynchronous token refresher to provide capacity to fetch fresh token + * * @return The asynchronous token refresher to provide capacity to fetch fresh token * @deprecated Use synchronous token refresher instead. */ @@ -83,6 +85,8 @@ public Supplier> getTokenRefresher() { } /** + * Gets the synchronous token refresher to provide capacity to fetch fresh token + * * @return The synchronous token refresher to provide capacity to fetch fresh token */ public Supplier getTokenRefresherSync() { @@ -90,7 +94,9 @@ public Supplier getTokenRefresherSync() { } /** - * @return Whether or not to refresh token proactively + * Whether to refresh token proactively + * + * @return Whether to refresh token proactively */ public boolean isRefreshProactively() { return refreshProactively; @@ -109,6 +115,8 @@ public CommunicationTokenRefreshOptions setRefreshProactively(boolean refreshPro } /** + * Gets the initial token + * * @return The initial token */ public String getInitialToken() { diff --git a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/MicrosoftTeamsUserIdentifier.java b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/MicrosoftTeamsUserIdentifier.java index b335484addb32..bad00f86ce60e 100644 --- a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/MicrosoftTeamsUserIdentifier.java +++ b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/MicrosoftTeamsUserIdentifier.java @@ -52,6 +52,8 @@ public String getUserId() { } /** + * Get if the user is anonymous + * * @return True if the user is anonymous, for example when joining a meeting with a share link. */ public boolean isAnonymous() { diff --git a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/PhoneNumberIdentifier.java b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/PhoneNumberIdentifier.java index 408291011fc02..f530ab01ccc6c 100644 --- a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/PhoneNumberIdentifier.java +++ b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/PhoneNumberIdentifier.java @@ -27,6 +27,8 @@ public PhoneNumberIdentifier(String phoneNumber) { } /** + * Gets the string identifier representing the object identity + * * @return the string identifier representing the object identity */ public String getPhoneNumber() { diff --git a/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/implementation/package-info.java b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/implementation/package-info.java new file mode 100644 index 0000000000000..abf0eadaf266d --- /dev/null +++ b/sdk/communication/azure-communication-common/src/main/java/com/azure/communication/common/implementation/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing implementation classes for Azure Communication Services. + */ +package com.azure.communication.common.implementation; diff --git a/sdk/communication/azure-communication-email/checkstyle-suppressions.xml b/sdk/communication/azure-communication-email/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..59bc4a0fc5b18 --- /dev/null +++ b/sdk/communication/azure-communication-email/checkstyle-suppressions.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/sdk/communication/azure-communication-email/pom.xml b/sdk/communication/azure-communication-email/pom.xml index 0e1239327ddfc..ee828d0832aa6 100644 --- a/sdk/communication/azure-communication-email/pom.xml +++ b/sdk/communication/azure-communication-email/pom.xml @@ -49,7 +49,10 @@ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-email/spotbugs-exclude.xml b/sdk/communication/azure-communication-email/spotbugs-exclude.xml new file mode 100644 index 0000000000000..de951d51d3707 --- /dev/null +++ b/sdk/communication/azure-communication-email/spotbugs-exclude.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-email/src/main/java/com/azure/communication/email/models/EmailMessage.java b/sdk/communication/azure-communication-email/src/main/java/com/azure/communication/email/models/EmailMessage.java index 9da763d086adb..929676791aed8 100644 --- a/sdk/communication/azure-communication-email/src/main/java/com/azure/communication/email/models/EmailMessage.java +++ b/sdk/communication/azure-communication-email/src/main/java/com/azure/communication/email/models/EmailMessage.java @@ -67,6 +67,12 @@ public final class EmailMessage { */ private Boolean userEngagementTrackingDisabled; + /** + * Creates a new isntance of {@link EmailMessage}. + */ + public EmailMessage() { + } + /** * Get the headers property: Custom email headers to be passed. * diff --git a/sdk/communication/azure-communication-identity/checkstyle-suppressions.xml b/sdk/communication/azure-communication-identity/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..77ed74268687b --- /dev/null +++ b/sdk/communication/azure-communication-identity/checkstyle-suppressions.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sdk/communication/azure-communication-identity/pom.xml b/sdk/communication/azure-communication-identity/pom.xml index a14325bcebb23..ad34fbc0f755c 100644 --- a/sdk/communication/azure-communication-identity/pom.xml +++ b/sdk/communication/azure-communication-identity/pom.xml @@ -57,7 +57,10 @@ --add-opens com.azure.communication.identity/com.azure.communication.identity=ALL-UNNAMED --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-identity/spotbugs-exclude.xml b/sdk/communication/azure-communication-identity/spotbugs-exclude.xml new file mode 100644 index 0000000000000..d770108994b38 --- /dev/null +++ b/sdk/communication/azure-communication-identity/spotbugs-exclude.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/CommunicationIdentityClientBuilder.java b/sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/CommunicationIdentityClientBuilder.java index 8e8a620b8005d..67dd22d70c8d6 100644 --- a/sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/CommunicationIdentityClientBuilder.java +++ b/sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/CommunicationIdentityClientBuilder.java @@ -104,6 +104,12 @@ public final class CommunicationIdentityClientBuilder implements private final List customPolicies = new ArrayList(); private CommunicationIdentityServiceVersion serviceVersion; + /** + * Creates a new instance of {@link CommunicationIdentityClientBuilder}. + */ + public CommunicationIdentityClientBuilder() { + } + /** * Set endpoint of the service * diff --git a/sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/implementation/converters/package-info.java b/sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/implementation/converters/package-info.java new file mode 100644 index 0000000000000..806f312de59ad --- /dev/null +++ b/sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/implementation/converters/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing converters for Azure Communication Identity Service. + */ +package com.azure.communication.identity.implementation.converters; diff --git a/sdk/communication/azure-communication-jobrouter/checkstyle-suppressions.xml b/sdk/communication/azure-communication-jobrouter/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..9e80e26d82b05 --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/checkstyle-suppressions.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-jobrouter/pom.xml b/sdk/communication/azure-communication-jobrouter/pom.xml index 39b96a9b2021f..db221381ca432 100644 --- a/sdk/communication/azure-communication-jobrouter/pom.xml +++ b/sdk/communication/azure-communication-jobrouter/pom.xml @@ -45,6 +45,10 @@ --add-opens com.azure.communication.common/com.azure.communication.common.implementation=ALL-UNNAMED --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-jobrouter/spotbugs-exclude.xml b/sdk/communication/azure-communication-jobrouter/spotbugs-exclude.xml new file mode 100644 index 0000000000000..25bd71c7cce14 --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/spotbugs-exclude.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/converters/package-info.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/converters/package-info.java new file mode 100644 index 0000000000000..7baf655b7387a --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/converters/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing converters for Azure Communication JobRouter Service. + */ +package com.azure.communication.jobrouter.implementation.converters; diff --git a/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/utils/package-info.java b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/utils/package-info.java new file mode 100644 index 0000000000000..35db69ec50ea2 --- /dev/null +++ b/sdk/communication/azure-communication-jobrouter/src/main/java/com/azure/communication/jobrouter/implementation/utils/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing utility classes for Azure Communication JobRouter Service. + */ +package com.azure.communication.jobrouter.implementation.utils; diff --git a/sdk/communication/azure-communication-messages/checkstyle-suppressions.xml b/sdk/communication/azure-communication-messages/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..213dcae61af37 --- /dev/null +++ b/sdk/communication/azure-communication-messages/checkstyle-suppressions.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/sdk/communication/azure-communication-messages/pom.xml b/sdk/communication/azure-communication-messages/pom.xml index adc835f58615b..046b81a0355b9 100644 --- a/sdk/communication/azure-communication-messages/pom.xml +++ b/sdk/communication/azure-communication-messages/pom.xml @@ -46,6 +46,10 @@ 0.6 0.6 true + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-messages/spotbugs-exclude.xml b/sdk/communication/azure-communication-messages/spotbugs-exclude.xml new file mode 100644 index 0000000000000..fce2f373c5681 --- /dev/null +++ b/sdk/communication/azure-communication-messages/spotbugs-exclude.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-phonenumbers/checkstyle-suppressions.xml b/sdk/communication/azure-communication-phonenumbers/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..a1376d31584b9 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/checkstyle-suppressions.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-phonenumbers/pom.xml b/sdk/communication/azure-communication-phonenumbers/pom.xml index 77fc65fb08cdd..5e336bde0280a 100644 --- a/sdk/communication/azure-communication-phonenumbers/pom.xml +++ b/sdk/communication/azure-communication-phonenumbers/pom.xml @@ -57,7 +57,10 @@ --add-opens com.azure.communication.phonenumbers/com.azure.communication.phonenumbers=ALL-UNNAMED --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-phonenumbers/spotbugs-exclude.xml b/sdk/communication/azure-communication-phonenumbers/spotbugs-exclude.xml new file mode 100644 index 0000000000000..d32216e096002 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/spotbugs-exclude.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/CodeCoverageAnnotation.java b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/CodeCoverageAnnotation.java index b87d03ccda8a4..d9fbead0e9f42 100644 --- a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/CodeCoverageAnnotation.java +++ b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/CodeCoverageAnnotation.java @@ -17,4 +17,10 @@ public class CodeCoverageAnnotation { @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR }) public @interface Generated { } + + /** + * Creates a new instance of {@link CodeCoverageAnnotation}. + */ + public CodeCoverageAnnotation() { + } } diff --git a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/PhoneNumbersClientBuilder.java b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/PhoneNumbersClientBuilder.java index 919f874148552..dbcfe1e1bf198 100644 --- a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/PhoneNumbersClientBuilder.java +++ b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/PhoneNumbersClientBuilder.java @@ -95,6 +95,12 @@ public final class PhoneNumbersClientBuilder private final List additionalPolicies = new ArrayList<>(); private String acceptLanguage; + /** + * Creates a new instance of {@link PhoneNumbersClientBuilder}. + */ + public PhoneNumbersClientBuilder() { + } + /** * Set endpoint of the service * diff --git a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/implementation/converters/package-info.java b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/implementation/converters/package-info.java new file mode 100644 index 0000000000000..42a119780a717 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/implementation/converters/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing converters for Azure Communication Phone Numbers Service. + */ +package com.azure.communication.phonenumbers.implementation.converters; diff --git a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PhoneNumberSearchOptions.java b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PhoneNumberSearchOptions.java index 6bc8bfd5ec8d3..d595d2b459d00 100644 --- a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PhoneNumberSearchOptions.java +++ b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PhoneNumberSearchOptions.java @@ -13,6 +13,12 @@ public final class PhoneNumberSearchOptions { private String locality; private String administrativeDivision; + /** + * Creates a new instance of {@link PhoneNumberSearchOptions}. + */ + public PhoneNumberSearchOptions() { + } + /** * Sets the area code property. * @param areaCode the areaCode value to set. diff --git a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PurchasePhoneNumbersResult.java b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PurchasePhoneNumbersResult.java index b03250d39cd15..7a57c012914ef 100644 --- a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PurchasePhoneNumbersResult.java +++ b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/PurchasePhoneNumbersResult.java @@ -7,4 +7,9 @@ * The PurchasePhoneNumbersResult model. */ public final class PurchasePhoneNumbersResult { + /** + * Creates a new instance of {@link PurchasePhoneNumbersResult}. + */ + public PurchasePhoneNumbersResult() { + } } diff --git a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/ReleasePhoneNumberResult.java b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/ReleasePhoneNumberResult.java index 177099a3a36ab..a00eba6593b03 100644 --- a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/ReleasePhoneNumberResult.java +++ b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/models/ReleasePhoneNumberResult.java @@ -3,9 +3,13 @@ package com.azure.communication.phonenumbers.models; -/** - * The ReleasePhoneNumberResult model. +/** + * The ReleasePhoneNumberResult model. */ public final class ReleasePhoneNumberResult { - + /** + * Creates a new instance of {@link ReleasePhoneNumberResult}. + */ + public ReleasePhoneNumberResult() { + } } diff --git a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/siprouting/SipRoutingClientBuilder.java b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/siprouting/SipRoutingClientBuilder.java index 7912c0f7d21da..d7b682f83fa17 100644 --- a/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/siprouting/SipRoutingClientBuilder.java +++ b/sdk/communication/azure-communication-phonenumbers/src/main/java/com/azure/communication/phonenumbers/siprouting/SipRoutingClientBuilder.java @@ -92,6 +92,12 @@ public final class SipRoutingClientBuilder private final List perCallPolicies = new ArrayList<>(); private final List perRetryPolicies = new ArrayList<>(); + /** + * Creates a new instance of {@link SipRoutingClientBuilder}. + */ + public SipRoutingClientBuilder() { + } + /** * Sets endpoint of the service * diff --git a/sdk/communication/azure-communication-rooms/checkstyle-suppressions.xml b/sdk/communication/azure-communication-rooms/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..3f2a34432fe55 --- /dev/null +++ b/sdk/communication/azure-communication-rooms/checkstyle-suppressions.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-rooms/pom.xml b/sdk/communication/azure-communication-rooms/pom.xml index 3e6303cd2f4d1..1bc303c782869 100644 --- a/sdk/communication/azure-communication-rooms/pom.xml +++ b/sdk/communication/azure-communication-rooms/pom.xml @@ -51,7 +51,10 @@ com.azure.communication.common/com.azure.communication.common.implementation=ALL-UNNAMED false - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-rooms/spotbugs-exclude.xml b/sdk/communication/azure-communication-rooms/spotbugs-exclude.xml new file mode 100644 index 0000000000000..fc768194fd75c --- /dev/null +++ b/sdk/communication/azure-communication-rooms/spotbugs-exclude.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/RoomsClientBuilder.java b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/RoomsClientBuilder.java index 3134ccfbc02b7..d56bc6024c4e2 100644 --- a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/RoomsClientBuilder.java +++ b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/RoomsClientBuilder.java @@ -93,6 +93,12 @@ public final class RoomsClientBuilder implements HttpTrait, private RetryOptions retryOptions; private RoomsServiceVersion serviceVersion; + /** + * Creates a new instance of the {@link RoomsClientBuilder}. + */ + public RoomsClientBuilder() { + } + /** * Set endpoint of the service * diff --git a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/converters/package-info.java b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/converters/package-info.java new file mode 100644 index 0000000000000..e890c4eafdf7b --- /dev/null +++ b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/implementation/converters/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing converters for Azure Communication Room Service. + */ +package com.azure.communication.rooms.implementation.converters; diff --git a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/AddOrUpdateParticipantsResult.java b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/AddOrUpdateParticipantsResult.java index 6030b23c4c3f1..ced97220ce2ba 100644 --- a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/AddOrUpdateParticipantsResult.java +++ b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/AddOrUpdateParticipantsResult.java @@ -7,5 +7,9 @@ * Represents the result of an addOrUpdate operation for participants in a room. */ public final class AddOrUpdateParticipantsResult { - + /** + * Creates an instance of {@link AddOrUpdateParticipantsResult}. + */ + public AddOrUpdateParticipantsResult() { + } } diff --git a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/ParticipantRole.java b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/ParticipantRole.java index ea77fa7c2bad0..efcb5524aa9a3 100644 --- a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/ParticipantRole.java +++ b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/ParticipantRole.java @@ -19,6 +19,15 @@ public final class ParticipantRole extends ExpandableStringEnum /** Static value Consumer for ParticipantRole. */ public static final ParticipantRole CONSUMER = fromString("Consumer"); + /** + * Creates a new instance of {@link ParticipantRole} with no string value. + * + * @deprecated Please use {@link #fromString(String)} instead. + */ + @Deprecated + public ParticipantRole() { + } + /** * Creates or finds a ParticipantRole from its string representation. * diff --git a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/RemoveParticipantsResult.java b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/RemoveParticipantsResult.java index 06b57e820b3a2..77a0ff3b7494e 100644 --- a/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/RemoveParticipantsResult.java +++ b/sdk/communication/azure-communication-rooms/src/main/java/com/azure/communication/rooms/models/RemoveParticipantsResult.java @@ -4,8 +4,12 @@ package com.azure.communication.rooms.models; /** - * Represents the result of an remove operation for participants in a room. + * Represents the result of a remove operation for participants in a room. */ public final class RemoveParticipantsResult { - + /** + * Creates an instance of {@link RemoveParticipantsResult}. + */ + public RemoveParticipantsResult() { + } } diff --git a/sdk/communication/azure-communication-sms/checkstyle-suppressions.xml b/sdk/communication/azure-communication-sms/checkstyle-suppressions.xml new file mode 100644 index 0000000000000..61bff17309252 --- /dev/null +++ b/sdk/communication/azure-communication-sms/checkstyle-suppressions.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/sdk/communication/azure-communication-sms/pom.xml b/sdk/communication/azure-communication-sms/pom.xml index 1ab5c4fb63e0e..1bc551c76ca33 100644 --- a/sdk/communication/azure-communication-sms/pom.xml +++ b/sdk/communication/azure-communication-sms/pom.xml @@ -48,7 +48,10 @@ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED false - - + + checkstyle-suppressions.xml + false + spotbugs-exclude.xml diff --git a/sdk/communication/azure-communication-sms/spotbugs-exclude.xml b/sdk/communication/azure-communication-sms/spotbugs-exclude.xml new file mode 100644 index 0000000000000..e638ab2a5f58a --- /dev/null +++ b/sdk/communication/azure-communication-sms/spotbugs-exclude.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/communication/azure-communication-sms/src/main/java/com/azure/communication/sms/SmsClientBuilder.java b/sdk/communication/azure-communication-sms/src/main/java/com/azure/communication/sms/SmsClientBuilder.java index ae03ebd91f086..3b7f953d3669d 100644 --- a/sdk/communication/azure-communication-sms/src/main/java/com/azure/communication/sms/SmsClientBuilder.java +++ b/sdk/communication/azure-communication-sms/src/main/java/com/azure/communication/sms/SmsClientBuilder.java @@ -66,6 +66,12 @@ public final class SmsClientBuilder implements AzureKeyCredentialTrait Date: Wed, 20 Nov 2024 11:49:01 -0800 Subject: [PATCH 18/44] Increment package versions for search releases (#43031) --- eng/versioning/version_client.txt | 2 +- sdk/search/azure-search-documents/CHANGELOG.md | 10 ++++++++++ sdk/search/azure-search-documents/pom.xml | 2 +- sdk/search/azure-search-perf/pom.xml | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index d9b3cbea02186..3ebf7cebd8c31 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -172,7 +172,7 @@ com.azure:azure-monitor-query;1.5.3;1.6.0-beta.1 com.azure:azure-monitor-query-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-perf-test-parent;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-quantum-jobs;1.0.0-beta.1;1.0.0-beta.2 -com.azure:azure-search-documents;11.7.3;11.8.0-beta.3 +com.azure:azure-search-documents;11.7.3;11.8.0-beta.4 com.azure:azure-search-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-security-attestation;1.1.29;1.2.0-beta.1 com.azure:azure-security-confidentialledger;1.0.25;1.1.0-beta.1 diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index 6f6518169fd75..efd6163f1e796 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 11.8.0-beta.4 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 11.8.0-beta.3 (2024-11-20) ### Bugs Fixed diff --git a/sdk/search/azure-search-documents/pom.xml b/sdk/search/azure-search-documents/pom.xml index 780ddc9f4b2b3..5b009992824e0 100644 --- a/sdk/search/azure-search-documents/pom.xml +++ b/sdk/search/azure-search-documents/pom.xml @@ -16,7 +16,7 @@ com.azure azure-search-documents - 11.8.0-beta.3 + 11.8.0-beta.4 jar diff --git a/sdk/search/azure-search-perf/pom.xml b/sdk/search/azure-search-perf/pom.xml index 5fe742d3fb035..50063d6d644d3 100644 --- a/sdk/search/azure-search-perf/pom.xml +++ b/sdk/search/azure-search-perf/pom.xml @@ -29,7 +29,7 @@ com.azure azure-search-documents - 11.8.0-beta.3 + 11.8.0-beta.4 From 266f5cb1fc938ee4d68475ccfb7800c6afa36c15 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:30:03 -0800 Subject: [PATCH 19/44] Bump powershell yaml versions to 0.4.7 (#42948) Co-authored-by: Ben Broderick Phillips --- eng/common/scripts/Cadl-Project-Generate.ps1 | 2 +- eng/common/scripts/Cadl-Project-Sync.ps1 | 2 +- eng/common/scripts/Helpers/Package-Helpers.ps1 | 2 +- eng/common/scripts/TypeSpec-Project-Generate.ps1 | 2 +- eng/common/scripts/TypeSpec-Project-Process.ps1 | 4 ++-- eng/common/scripts/TypeSpec-Project-Sync.ps1 | 2 +- eng/common/scripts/Update-DocsMsToc.ps1 | 2 +- eng/common/scripts/Verify-Resource-Ref.ps1 | 4 ++-- eng/common/scripts/Verify-RestApiSpecLocation.ps1 | 2 +- eng/common/scripts/job-matrix/job-matrix-functions.ps1 | 2 +- .../scripts/stress-testing/stress-test-deployment-lib.ps1 | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/eng/common/scripts/Cadl-Project-Generate.ps1 b/eng/common/scripts/Cadl-Project-Generate.ps1 index bd4a2377e8b0c..e989042e5687b 100644 --- a/eng/common/scripts/Cadl-Project-Generate.ps1 +++ b/eng/common/scripts/Cadl-Project-Generate.ps1 @@ -12,7 +12,7 @@ param ( $ErrorActionPreference = "Stop" . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 . $PSScriptRoot/common.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module function NpmInstallForProject([string]$workingDirectory) { Push-Location $workingDirectory diff --git a/eng/common/scripts/Cadl-Project-Sync.ps1 b/eng/common/scripts/Cadl-Project-Sync.ps1 index c6e8cf5ce5315..5d661e90ee230 100644 --- a/eng/common/scripts/Cadl-Project-Sync.ps1 +++ b/eng/common/scripts/Cadl-Project-Sync.ps1 @@ -9,7 +9,7 @@ param ( $ErrorActionPreference = "Stop" . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module $sparseCheckoutFile = ".git/info/sparse-checkout" function AddSparseCheckoutPath([string]$subDirectory) { diff --git a/eng/common/scripts/Helpers/Package-Helpers.ps1 b/eng/common/scripts/Helpers/Package-Helpers.ps1 index e83be6643cbf8..f1ea6ef91f279 100644 --- a/eng/common/scripts/Helpers/Package-Helpers.ps1 +++ b/eng/common/scripts/Helpers/Package-Helpers.ps1 @@ -80,7 +80,7 @@ function CompatibleConvertFrom-Yaml { $yqPresent = Get-Command 'yq' -ErrorAction SilentlyContinue if (-not $yqPresent) { . (Join-Path $PSScriptRoot PSModule-Helpers.ps1) - Install-ModuleIfNotInstalled -WhatIf:$false "powershell-yaml" "0.4.1" | Import-Module + Install-ModuleIfNotInstalled -WhatIf:$false "powershell-yaml" "0.4.7" | Import-Module } # Process the content (for example, you could convert from YAML here) diff --git a/eng/common/scripts/TypeSpec-Project-Generate.ps1 b/eng/common/scripts/TypeSpec-Project-Generate.ps1 index e0ca0a55f6ef2..4f8fa144bb27b 100644 --- a/eng/common/scripts/TypeSpec-Project-Generate.ps1 +++ b/eng/common/scripts/TypeSpec-Project-Generate.ps1 @@ -13,7 +13,7 @@ $ErrorActionPreference = "Stop" . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 . $PSScriptRoot/Helpers/CommandInvocation-Helpers.ps1 . $PSScriptRoot/common.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module function NpmInstallForProject([string]$workingDirectory) { Push-Location $workingDirectory diff --git a/eng/common/scripts/TypeSpec-Project-Process.ps1 b/eng/common/scripts/TypeSpec-Project-Process.ps1 index 7b894379e9250..e4b933479f806 100644 --- a/eng/common/scripts/TypeSpec-Project-Process.ps1 +++ b/eng/common/scripts/TypeSpec-Project-Process.ps1 @@ -14,7 +14,7 @@ param ( . $PSScriptRoot/common.ps1 . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module function CreateUpdate-TspLocation([System.Object]$tspConfig, [string]$TypeSpecProjectDirectory, [string]$CommitHash, [string]$repo, [string]$repoRoot, [ref]$isNewSdkProject) { $additionalDirs = @() @@ -225,4 +225,4 @@ if ($SkipSyncAndGenerate -and !$isNewSdkProject) { } } -return $sdkProjectFolder \ No newline at end of file +return $sdkProjectFolder diff --git a/eng/common/scripts/TypeSpec-Project-Sync.ps1 b/eng/common/scripts/TypeSpec-Project-Sync.ps1 index 0c7427af4ce53..ce45148934ab8 100644 --- a/eng/common/scripts/TypeSpec-Project-Sync.ps1 +++ b/eng/common/scripts/TypeSpec-Project-Sync.ps1 @@ -11,7 +11,7 @@ param ( $ErrorActionPreference = "Stop" . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module $sparseCheckoutFile = ".git/info/sparse-checkout" function AddSparseCheckoutPath([string]$subDirectory) { diff --git a/eng/common/scripts/Update-DocsMsToc.ps1 b/eng/common/scripts/Update-DocsMsToc.ps1 index 61596d81cccd6..aa84b1c6b8c37 100644 --- a/eng/common/scripts/Update-DocsMsToc.ps1 +++ b/eng/common/scripts/Update-DocsMsToc.ps1 @@ -55,7 +55,7 @@ param( . $PSScriptRoot/common.ps1 . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module Set-StrictMode -Version 3 diff --git a/eng/common/scripts/Verify-Resource-Ref.ps1 b/eng/common/scripts/Verify-Resource-Ref.ps1 index f806290e9815b..8669a29883422 100644 --- a/eng/common/scripts/Verify-Resource-Ref.ps1 +++ b/eng/common/scripts/Verify-Resource-Ref.ps1 @@ -1,5 +1,5 @@ . (Join-Path $PSScriptRoot common.ps1) -Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser +Install-Module -Name powershell-yaml -RequiredVersion 0.4.7 -Force -Scope CurrentUser $ymlfiles = Get-ChildItem $RepoRoot -recurse | Where-Object {$_ -like '*.yml'} $affectedRepos = [System.Collections.ArrayList]::new() @@ -48,4 +48,4 @@ if ($affectedRepos.Count -gt 0) exit 1 } -Write-Output "All repository resources in yaml files reference a valid tag" \ No newline at end of file +Write-Output "All repository resources in yaml files reference a valid tag" diff --git a/eng/common/scripts/Verify-RestApiSpecLocation.ps1 b/eng/common/scripts/Verify-RestApiSpecLocation.ps1 index 8a420bd769f9d..7182db193d4e4 100644 --- a/eng/common/scripts/Verify-RestApiSpecLocation.ps1 +++ b/eng/common/scripts/Verify-RestApiSpecLocation.ps1 @@ -50,7 +50,7 @@ if (-not $GitHubPat) { Write-Host "The spec used to release SDK should be from the main branch of Azure/azure-rest-api-specs repository." Write-Host "ServiceDir:$ServiceDirectory, PackageName:$PackageName, ArtifactLocation:$ArtifactLocation, PackageInfoDirectory:$PackageInfoDirectory." -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module # This function is used to verify the 'require' and 'input-file' settings in autorest.md point to the main branch of Azure/azure-rest-api-specs repository # input-file may be: diff --git a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 index e271d0f21e3c8..e327763bd7243 100644 --- a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 +++ b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 @@ -213,7 +213,7 @@ function GetMatrixConfigFromFile([String] $config) { } function GetMatrixConfigFromYaml([String] $yamlConfig) { - Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module + Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module # ConvertTo then from json is to make sure the nested values are in PSCustomObject [MatrixConfig]$config = ConvertFrom-Yaml $yamlConfig -Ordered | ConvertTo-Json -Depth 100 | ConvertFrom-Json return GetMatrixConfig $config diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index 48bab2c49ebe7..56876ba0e1bec 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -414,7 +414,7 @@ function CheckDependencies() } ) - Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module + Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module $shouldError = $false foreach ($dep in $deps) { From 6aa2ccf2c9853d0d935c5beca29013dc94b08b6b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:36:38 -0800 Subject: [PATCH 20/44] add rerun pipeline (#43012) Co-authored-by: Mariana Rios Flores --- eng/common/scripts/Helpers/ApiView-Helpers.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 index 58ee8ee19ca1c..00be7d3b44bb4 100644 --- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 +++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 @@ -74,6 +74,7 @@ function Process-ReviewStatusCode($statusCode, $packageName, $apiApprovalStatus, { $apiApproved = $false $apiApprovalDetails = "API Review is not approved for package $($packageName). Release pipeline will fail if API review is not approved for a GA version release. You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + $apiApprovalDetails += " Once your API is approved, re-trigger the release pipeline again." $packageNameApproved = $false $packageNameApprovalDetails = "" @@ -115,4 +116,4 @@ function Process-ReviewStatusCode($statusCode, $packageName, $apiApprovalStatus, $packageNameStatus.IsApproved = $packageNameApproved $packageNameStatus.Details = $packageNameApprovalDetails -} \ No newline at end of file +} From efdbd96727ea16106e2a71a004731eb5823a2f9b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:38:20 -0800 Subject: [PATCH 21/44] [Automation] Generate Fluent Lite from TypeSpec connectedcache (#43042) --- eng/versioning/version_client.txt | 1 + pom.xml | 1 + .../CHANGELOG.md | 9 + .../README.md | 104 ++ .../SAMPLE.md | 1329 +++++++++++++++ .../pom.xml | 75 + .../connectedcache/ConnectedCacheManager.java | 375 +++++ .../fluent/CacheNodesOperationsClient.java | 222 +++ .../ConnectedCacheManagementClient.java | 97 ++ .../EnterpriseCustomerOperationsClient.java | 219 +++ ...terpriseMccCacheNodesOperationsClient.java | 276 ++++ .../fluent/EnterpriseMccCustomersClient.java | 250 +++ .../fluent/IspCacheNodesOperationsClient.java | 305 ++++ .../fluent/IspCustomersClient.java | 243 +++ .../fluent/OperationsClient.java | 40 + .../models/CacheNodePreviewResourceInner.java | 193 +++ .../EnterpriseMccCacheNodeResourceInner.java | 193 +++ .../EnterpriseMccCustomerResourceInner.java | 193 +++ .../EnterprisePreviewResourceInner.java | 194 +++ .../models/IspCacheNodeResourceInner.java | 192 +++ .../models/IspCustomerResourceInner.java | 192 +++ .../MccCacheNodeBgpCidrDetailsInner.java | 164 ++ .../MccCacheNodeInstallDetailsInner.java | 165 ++ .../fluent/models/OperationInner.java | 159 ++ .../fluent/models/package-info.java | 9 + .../connectedcache/fluent/package-info.java | 9 + .../CacheNodePreviewResourceImpl.java | 181 ++ .../CacheNodesOperationsClientImpl.java | 1140 +++++++++++++ .../CacheNodesOperationsImpl.java | 150 ++ ...ConnectedCacheManagementClientBuilder.java | 138 ++ .../ConnectedCacheManagementClientImpl.java | 384 +++++ ...nterpriseCustomerOperationsClientImpl.java | 1126 +++++++++++++ .../EnterpriseCustomerOperationsImpl.java | 150 ++ .../EnterpriseMccCacheNodeResourceImpl.java | 204 +++ ...riseMccCacheNodesOperationsClientImpl.java | 1309 +++++++++++++++ ...EnterpriseMccCacheNodesOperationsImpl.java | 192 +++ .../EnterpriseMccCustomerResourceImpl.java | 182 +++ .../EnterpriseMccCustomersClientImpl.java | 1242 ++++++++++++++ .../EnterpriseMccCustomersImpl.java | 153 ++ .../EnterprisePreviewResourceImpl.java | 181 ++ .../IspCacheNodeResourceImpl.java | 212 +++ .../IspCacheNodesOperationsClientImpl.java | 1454 +++++++++++++++++ .../IspCacheNodesOperationsImpl.java | 215 +++ .../IspCustomerResourceImpl.java | 181 ++ .../IspCustomersClientImpl.java | 1215 ++++++++++++++ .../implementation/IspCustomersImpl.java | 148 ++ .../MccCacheNodeBgpCidrDetailsImpl.java | 65 + .../MccCacheNodeInstallDetailsImpl.java | 65 + .../implementation/OperationImpl.java | 51 + .../implementation/OperationsClientImpl.java | 235 +++ .../implementation/OperationsImpl.java | 45 + .../implementation/ResourceManagerUtils.java | 195 +++ .../CacheNodePreviewResourceListResult.java | 115 ++ ...erpriseMccCacheNodeResourceListResult.java | 116 ++ ...terpriseMccCustomerResourceListResult.java | 116 ++ .../EnterprisePreviewResourceListResult.java | 116 ++ .../IspCacheNodeResourceListResult.java | 115 ++ .../models/IspCustomerResourceListResult.java | 115 ++ .../models/OperationListResult.java | 113 ++ .../implementation/package-info.java | 9 + .../connectedcache/models/ActionType.java | 46 + .../models/AdditionalCacheNodeProperties.java | 795 +++++++++ .../models/AdditionalCustomerProperties.java | 743 +++++++++ .../models/AutoUpdateRingType.java | 56 + .../models/BgpCidrsConfiguration.java | 83 + .../models/BgpConfiguration.java | 93 ++ .../models/BgpReviewStateEnum.java | 61 + .../models/CacheNodeDriveConfiguration.java | 177 ++ .../models/CacheNodeEntity.java | 1130 +++++++++++++ .../models/CacheNodeInstallProperties.java | 147 ++ .../models/CacheNodeOldResponse.java | 211 +++ .../models/CacheNodePreviewResource.java | 252 +++ .../models/CacheNodeProperty.java | 274 ++++ .../models/CacheNodesOperations.java | 168 ++ .../models/ConfigurationState.java | 51 + .../models/ConnectedCachePatchResource.java | 95 ++ .../connectedcache/models/CustomerEntity.java | 512 ++++++ .../models/CustomerProperty.java | 226 +++ .../models/CustomerTransitState.java | 56 + .../connectedcache/models/CycleType.java | 56 + .../models/EnterpriseCustomerOperations.java | 165 ++ .../EnterpriseMccCacheNodeResource.java | 274 ++++ .../EnterpriseMccCacheNodesOperations.java | 178 ++ .../models/EnterpriseMccCustomerResource.java | 252 +++ .../models/EnterpriseMccCustomers.java | 164 ++ .../models/EnterprisePreviewResource.java | 252 +++ .../models/IspCacheNodeResource.java | 295 ++++ .../models/IspCacheNodesOperations.java | 205 +++ .../models/IspCustomerResource.java | 252 +++ .../connectedcache/models/IspCustomers.java | 158 ++ .../models/MccCacheNodeBgpCidrDetails.java | 70 + .../models/MccCacheNodeInstallDetails.java | 70 + .../connectedcache/models/Operation.java | 58 + .../models/OperationDisplay.java | 136 ++ .../connectedcache/models/Operations.java | 35 + .../connectedcache/models/Origin.java | 57 + .../connectedcache/models/OsType.java | 56 + .../models/ProvisioningState.java | 76 + .../connectedcache/models/ProxyRequired.java | 51 + .../models/ProxyUrlConfiguration.java | 96 ++ .../connectedcache/models/package-info.java | 9 + .../connectedcache/package-info.java | 9 + .../src/main/java/module-info.java | 16 + .../proxy-config.json | 1 + .../reflect-config.json | 1 + ...eNodesOperationsCreateorUpdateSamples.java | 49 + .../CacheNodesOperationsDeleteSamples.java | 26 + ...esOperationsGetByResourceGroupSamples.java | 24 + ...sOperationsListByResourceGroupSamples.java | 24 + .../CacheNodesOperationsListSamples.java | 23 + .../CacheNodesOperationsUpdateSamples.java | 42 + ...stomerOperationsCreateOrUpdateSamples.java | 49 + ...rpriseCustomerOperationsDeleteSamples.java | 26 + ...erOperationsGetByResourceGroupSamples.java | 24 + ...rOperationsListByResourceGroupSamples.java | 24 + ...terpriseCustomerOperationsListSamples.java | 23 + ...rpriseCustomerOperationsUpdateSamples.java | 42 + ...eNodesOperationsCreateOrUpdateSamples.java | 84 + ...eMccCacheNodesOperationsDeleteSamples.java | 25 + ...ionsGetCacheNodeInstallDetailsSamples.java | 28 + ...riseMccCacheNodesOperationsGetSamples.java | 27 + ...yEnterpriseMccCustomerResourceSamples.java | 25 + ...eMccCacheNodesOperationsUpdateSamples.java | 43 + ...riseMccCustomersCreateOrUpdateSamples.java | 75 + .../EnterpriseMccCustomersDeleteSamples.java | 23 + ...MccCustomersGetByResourceGroupSamples.java | 25 + ...ccCustomersListByResourceGroupSamples.java | 23 + .../EnterpriseMccCustomersListSamples.java | 23 + .../EnterpriseMccCustomersUpdateSamples.java | 42 + ...eNodesOperationsCreateOrUpdateSamples.java | 83 + .../IspCacheNodesOperationsDeleteSamples.java | 26 + ...acheNodesOperationsGetBgpCidrsSamples.java | 25 + ...ionsGetCacheNodeInstallDetailsSamples.java | 25 + .../IspCacheNodesOperationsGetSamples.java | 26 + ...tionsListByIspCustomerResourceSamples.java | 24 + .../IspCacheNodesOperationsUpdateSamples.java | 42 + .../IspCustomersCreateOrUpdateSamples.java | 75 + .../generated/IspCustomersDeleteSamples.java | 25 + ...IspCustomersGetByResourceGroupSamples.java | 25 + ...spCustomersListByResourceGroupSamples.java | 23 + .../generated/IspCustomersListSamples.java | 23 + .../generated/IspCustomersUpdateSamples.java | 42 + .../generated/OperationsListSamples.java | 23 + .../generated/BgpCidrsConfigurationTests.java | 16 + .../generated/BgpConfigurationTests.java | 25 + .../CacheNodeDriveConfigurationTests.java | 35 + .../generated/CacheNodeEntityTests.java | 79 + ...eByResourceGroupWithResponseMockTests.java | 34 + .../ConnectedCachePatchResourceTests.java | 41 + ...eByResourceGroupWithResponseMockTests.java | 34 + ...tionsGetBgpCidrsWithResponseMockTests.java | 40 + .../MccCacheNodeBgpCidrDetailsInnerTests.java | 20 + .../generated/OperationDisplayTests.java | 17 + .../generated/OperationInnerTests.java | 20 + .../generated/OperationListResultTests.java | 21 + .../generated/OperationsListMockTests.java | 39 + .../generated/ProxyUrlConfigurationTests.java | 25 + .../tsp-location.yaml | 4 + sdk/connectedcache/ci.yml | 46 + sdk/connectedcache/pom.xml | 15 + 160 files changed, 26822 insertions(+) create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/README.md create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/CacheNodesOperationsClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseCustomerOperationsClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCustomersClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCustomersClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/OperationsClient.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/CacheNodePreviewResourceInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCacheNodeResourceInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCustomerResourceInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterprisePreviewResourceInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCacheNodeResourceInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCustomerResourceInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeBgpCidrDetailsInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeInstallDetailsInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/OperationInner.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/package-info.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/package-info.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodePreviewResourceImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientBuilder.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomerResourceImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterprisePreviewResourceImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomerResourceImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeBgpCidrDetailsImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeInstallDetailsImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsClientImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsImpl.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ResourceManagerUtils.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/CacheNodePreviewResourceListResult.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCacheNodeResourceListResult.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCustomerResourceListResult.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterprisePreviewResourceListResult.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCacheNodeResourceListResult.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCustomerResourceListResult.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/OperationListResult.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/package-info.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ActionType.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AutoUpdateRingType.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpCidrsConfiguration.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpConfiguration.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpReviewStateEnum.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeDriveConfiguration.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeEntity.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeOldResponse.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodePreviewResource.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeProperty.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodesOperations.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConfigurationState.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConnectedCachePatchResource.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerEntity.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerProperty.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerTransitState.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CycleType.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseCustomerOperations.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomerResource.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomers.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterprisePreviewResource.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomerResource.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomers.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeBgpCidrDetails.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeInstallDetails.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operation.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OperationDisplay.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operations.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Origin.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OsType.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProvisioningState.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyRequired.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyUrlConfiguration.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/package-info.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/package-info.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/module-info.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/reflect-config.json create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsCreateorUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsGetByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsCreateOrUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsGetByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationDisplayTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationInnerTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationListResultTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java create mode 100644 sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml create mode 100644 sdk/connectedcache/ci.yml create mode 100644 sdk/connectedcache/pom.xml diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 3ebf7cebd8c31..191ff5866a10b 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -476,6 +476,7 @@ com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.1;1.0. com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-containerorchestratorruntime;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-terraform;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-connectedcache;1.0.0-beta.1;1.0.0-beta.1 com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1 com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1 io.clientcore:clientcore-parent;1.0.0-beta.1;1.0.0-beta.1 diff --git a/pom.xml b/pom.xml index 9d0b20c2a60e7..45b98197a94e3 100644 --- a/pom.xml +++ b/pom.xml @@ -49,6 +49,7 @@ sdk/computeschedule sdk/confidentialledger sdk/confluent + sdk/connectedcache sdk/connectedvmware sdk/consumption sdk/containerorchestratorruntime diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md b/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md new file mode 100644 index 0000000000000..62cc988d64527 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md @@ -0,0 +1,9 @@ +# Release History + +## 1.0.0-beta.1 (2024-11-21) + +- Azure Resource Manager Connected Cache client library for Java. This package contains Microsoft Azure SDK for Connected Cache Management SDK. Microsoft Connected Cache Rest Api version 2023-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). + +### Features Added + +- Initial release for the azure-resourcemanager-connectedcache Java SDK. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/README.md b/sdk/connectedcache/azure-resourcemanager-connectedcache/README.md new file mode 100644 index 0000000000000..59a5e2e3c07d8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/README.md @@ -0,0 +1,104 @@ +# Azure Resource Manager Connected Cache client library for Java + +Azure Resource Manager Connected Cache client library for Java. + +This package contains Microsoft Azure SDK for Connected Cache Management SDK. Microsoft Connected Cache Rest Api version 2023-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). + +## We'd love to hear your feedback + +We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better. + +If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together. + +Thank you in advance for your collaboration. We really appreciate your time! + +## Documentation + +Various documentation is available to help you get started + +- [API reference documentation][docs] + +## Getting started + +### Prerequisites + +- [Java Development Kit (JDK)][jdk] with version 8 or above +- [Azure Subscription][azure_subscription] + +### Adding the package to your product + +[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-connectedcache;current}) +```xml + + com.azure.resourcemanager + azure-resourcemanager-connectedcache + 1.0.0-beta.1 + +``` +[//]: # ({x-version-update-end}) + +### Include the recommended packages + +Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. + +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. + +### Authentication + +Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package. + +Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. + +Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: + +```java +AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +TokenCredential credential = new DefaultAzureCredentialBuilder() + .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) + .build(); +ConnectedCacheManager manager = ConnectedCacheManager + .authenticate(credential, profile); +``` + +The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. + +See [Authentication][authenticate] for more options. + +## Key concepts + +See [API design][design] for general introduction on design and key concepts on Azure Management Libraries. + +## Examples + +[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md) + + +## Troubleshooting + +## Next steps + +## Contributing + +For details on contributing to this repository, see the [contributing guide][cg]. + +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. + + +[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS +[docs]: https://azure.github.io/azure-sdk-for-java/ +[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ +[azure_subscription]: https://azure.microsoft.com/free/ +[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials +[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty +[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md +[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fconnectedcache%2Fazure-resourcemanager-connectedcache%2FREADME.png) diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md b/sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md new file mode 100644 index 0000000000000..3bcca7bd45a13 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md @@ -0,0 +1,1329 @@ +# Code snippets and samples + + +## CacheNodesOperations + +- [CreateorUpdate](#cachenodesoperations_createorupdate) +- [Delete](#cachenodesoperations_delete) +- [GetByResourceGroup](#cachenodesoperations_getbyresourcegroup) +- [List](#cachenodesoperations_list) +- [ListByResourceGroup](#cachenodesoperations_listbyresourcegroup) +- [Update](#cachenodesoperations_update) + +## EnterpriseCustomerOperations + +- [CreateOrUpdate](#enterprisecustomeroperations_createorupdate) +- [Delete](#enterprisecustomeroperations_delete) +- [GetByResourceGroup](#enterprisecustomeroperations_getbyresourcegroup) +- [List](#enterprisecustomeroperations_list) +- [ListByResourceGroup](#enterprisecustomeroperations_listbyresourcegroup) +- [Update](#enterprisecustomeroperations_update) + +## EnterpriseMccCacheNodesOperations + +- [CreateOrUpdate](#enterprisemcccachenodesoperations_createorupdate) +- [Delete](#enterprisemcccachenodesoperations_delete) +- [Get](#enterprisemcccachenodesoperations_get) +- [GetCacheNodeInstallDetails](#enterprisemcccachenodesoperations_getcachenodeinstalldetails) +- [ListByEnterpriseMccCustomerResource](#enterprisemcccachenodesoperations_listbyenterprisemcccustomerresource) +- [Update](#enterprisemcccachenodesoperations_update) + +## EnterpriseMccCustomers + +- [CreateOrUpdate](#enterprisemcccustomers_createorupdate) +- [Delete](#enterprisemcccustomers_delete) +- [GetByResourceGroup](#enterprisemcccustomers_getbyresourcegroup) +- [List](#enterprisemcccustomers_list) +- [ListByResourceGroup](#enterprisemcccustomers_listbyresourcegroup) +- [Update](#enterprisemcccustomers_update) + +## IspCacheNodesOperations + +- [CreateOrUpdate](#ispcachenodesoperations_createorupdate) +- [Delete](#ispcachenodesoperations_delete) +- [Get](#ispcachenodesoperations_get) +- [GetBgpCidrs](#ispcachenodesoperations_getbgpcidrs) +- [GetCacheNodeInstallDetails](#ispcachenodesoperations_getcachenodeinstalldetails) +- [ListByIspCustomerResource](#ispcachenodesoperations_listbyispcustomerresource) +- [Update](#ispcachenodesoperations_update) + +## IspCustomers + +- [CreateOrUpdate](#ispcustomers_createorupdate) +- [Delete](#ispcustomers_delete) +- [GetByResourceGroup](#ispcustomers_getbyresourcegroup) +- [List](#ispcustomers_list) +- [ListByResourceGroup](#ispcustomers_listbyresourcegroup) +- [Update](#ispcustomers_update) + +## Operations + +- [List](#operations_list) +### CacheNodesOperations_CreateorUpdate + +```java +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for CacheNodesOperations CreateorUpdate. + */ +public final class CacheNodesOperationsCreateorUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodesOperations_CreateorUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + cacheNodesOperationsCreateorUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations() + .define("lwrsyhvfpcfrwrim") + .withRegion("westus") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key8256", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") + .withStatusText("bjnsrpzaofjntleoesjwammgbi") + .withStatusDetails("quuziibkwtgf") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### CacheNodesOperations_Delete + +```java +/** + * Samples for CacheNodesOperations Delete. + */ +public final class CacheNodesOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodesOperations_Delete. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + cacheNodesOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations() + .deleteByResourceGroupWithResponse("rgConnectedCache", + "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw", + com.azure.core.util.Context.NONE); + } +} +``` + +### CacheNodesOperations_GetByResourceGroup + +```java +/** + * Samples for CacheNodesOperations GetByResourceGroup. + */ +public final class CacheNodesOperationsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodesOperations_Get. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "nqoxkgorhuzbhjwcegymzqbeydzjupemekt", + com.azure.core.util.Context.NONE); + } +} +``` + +### CacheNodesOperations_List + +```java +/** + * Samples for CacheNodesOperations List. + */ +public final class CacheNodesOperationsListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodes Private Preview(Legacy) resource List by Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations().list(com.azure.core.util.Context.NONE); + } +} +``` + +### CacheNodesOperations_ListByResourceGroup + +```java +/** + * Samples for CacheNodesOperations ListByResourceGroup. + */ +public final class CacheNodesOperationsListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodes Private Preview(Legacy) Get Operation List by Resource group - generated by [MaximumSet] + * rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} +``` + +### CacheNodesOperations_Update + +```java +import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for CacheNodesOperations Update. + */ +public final class CacheNodesOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodes Private Preview(Legacy) Update Operation - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + CacheNodePreviewResource resource = manager.cacheNodesOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "wlrwpdbcv", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key5032", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### EnterpriseCustomerOperations_CreateOrUpdate + +```java +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseCustomerOperations CreateOrUpdate. + */ +public final class EnterpriseCustomerOperationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_CreateOrUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseCustomerOperationsCreateOrUpdate( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .define("l") + .withRegion("zdzhhkjyogrqxwihkifnmeyhwpujbr") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key4215", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") + .withStatusText("bs") + .withStatusDetails("lhwvcz") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### EnterpriseCustomerOperations_Delete + +```java +/** + * Samples for EnterpriseCustomerOperations Delete. + */ +public final class EnterpriseCustomerOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_Delete. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseCustomerOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .deleteByResourceGroupWithResponse("rgConnectedCache", + "jeubxmhiaihcusgnahblvvckbdcetacvqgwbohlrqucodtlwuyefpejskvamgrdnwgucziodcfpjhqy", + com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseCustomerOperations_GetByResourceGroup + +```java +/** + * Samples for EnterpriseCustomerOperations GetByResourceGroup. + */ +public final class EnterpriseCustomerOperationsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_Get. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseCustomerOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseCustomerOperations_List + +```java +/** + * Samples for EnterpriseCustomerOperations List. + */ +public final class EnterpriseCustomerOperationsListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_ListBySubscription. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseCustomerOperationsListBySubscription( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations().list(com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseCustomerOperations_ListByResourceGroup + +```java +/** + * Samples for EnterpriseCustomerOperations ListByResourceGroup. + */ +public final class EnterpriseCustomerOperationsListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_ListByResourceGroup. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseCustomerOperationsListByResourceGroup( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseCustomerOperations_Update + +```java +import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseCustomerOperations Update. + */ +public final class EnterpriseCustomerOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_Update. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseCustomerOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + EnterprisePreviewResource resource = manager.enterpriseCustomerOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### EnterpriseMccCacheNodesOperations_CreateOrUpdate + +```java +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.AdditionalCacheNodeProperties; +import com.azure.resourcemanager.connectedcache.models.BgpConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeDriveConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeEntity; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import com.azure.resourcemanager.connectedcache.models.ProxyUrlConfiguration; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCacheNodesOperations CreateOrUpdate. + */ +public final class EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: Creates an enterpriseMccCacheNode resource - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .define("fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr") + .withRegion("westus") + .withExistingEnterpriseMccCustomer("rgConnectedCache", "nhdkvstdrrtsxxuz") + .withTags(mapOf("key259", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeProperty() + .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("yeinlleavzbehelhsucb") + .withCustomerName("zsklcocjfjhkcpmzyefzkwamdzc") + .withIpAddress("gbfkdhloyphnpnhemwrcrxlk") + .withCustomerIndex("vafvezmelfgmjsrccjukrhppljvipg") + .withCacheNodeId("fmrjefyddfn") + .withCacheNodeName("qppvqxliajjfoalzjbgmxggr") + .withCustomerAsn(25) + .withIsEnabled(true) + .withMaxAllowableEgressInMbps(27) + .withIsEnterpriseManaged(true) + .withCidrCsv(Arrays.asList("nlqlvrthafvvljuupcbcw")) + .withShouldMigrate(true) + .withCidrSelectionType(11)) + .withAdditionalCacheNodeProperties(new AdditionalCacheNodeProperties() + .withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ennbzfpuszgalzpawmwicaofqcwcj")) + .withDriveConfiguration( + Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("pcbkezoofhamkycot") + .withSizeInGb(14) + .withCacheNumber(11) + .withNginxMapping("cirlpkpuxg"))) + .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("fjbggfvumrn")) + .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) + .withProxyUrl("ihkzxlzvpcywtzrogupqozkdud") + .withOptionalProperty1("ph") + .withOptionalProperty2("soqqgpgcbhb") + .withOptionalProperty3("fpnycrbagptsujiotnjfuhlm") + .withOptionalProperty4("gesqugrxvhxlxxyvatgrautxwlmxsf") + .withOptionalProperty5("zknjgzpaqtvdqjydd")) + .withStatusCode("fakeTokenPlaceholder") + .withStatusText("Success") + .withStatusDetails("lgljxmyyoakw") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### EnterpriseMccCacheNodesOperations_Delete + +```java +/** + * Samples for EnterpriseMccCacheNodesOperations Delete. + */ +public final class EnterpriseMccCacheNodesOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations Delete Operation - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .delete("rgConnectedCache", "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", + "vwtrhdoxvkrunpliwcao", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCacheNodesOperations_Get + +```java +/** + * Samples for EnterpriseMccCacheNodesOperations Get. + */ +public final class EnterpriseMccCacheNodesOperationsGetSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Gets enterpriseMccCacheNode resource information of an enterprise mcc customer parent resource - + * generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getWithResponse("rgConnectedCache", "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", + "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails + +```java +/** + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeInstallDetails. + */ +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples { + /* + * x-ms-original-file: + * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ + /** + * Sample code: Gets required properties for enterprise Mcc CacheNode resource install key details - generated by + * [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "fzwxcjmdpxxzayecabqqlh", + "ccexmqqttritxvtctivraso", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource + +```java +/** + * Samples for EnterpriseMccCacheNodesOperations ListByEnterpriseMccCustomerResource. + */ +public final class EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples { + /* + * x-ms-original-file: + * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .listByEnterpriseMccCustomerResource("rgConnectedCache", "syjjjzk", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCacheNodesOperations_Update + +```java +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCacheNodesOperations Update. + */ +public final class EnterpriseMccCacheNodesOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations Update - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + EnterpriseMccCacheNodeResource resource = manager.enterpriseMccCacheNodesOperations() + .getWithResponse("rgConnectedCache", "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", + "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### EnterpriseMccCustomers_CreateOrUpdate + +```java +import com.azure.resourcemanager.connectedcache.models.AdditionalCustomerProperties; +import com.azure.resourcemanager.connectedcache.models.CustomerEntity; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import com.azure.resourcemanager.connectedcache.models.CustomerTransitState; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCustomers CreateOrUpdate. + */ +public final class EnterpriseMccCustomersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_CreateOrUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers() + .define("MccRPTest1") + .withRegion("westus") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key3379", "fakeTokenPlaceholder")) + .withProperties(new CustomerProperty() + .withCustomer(new CustomerEntity().withFullyQualifiedResourceId("uqsbtgae") + .withCustomerName("mkpzynfqihnjfdbaqbqwyhd") + .withContactEmail("xquos") + .withContactPhone("vue") + .withContactName("wxyqjoyoscmvimgwhpitxky") + .withIsEntitled(true) + .withReleaseVersion(20) + .withClientTenantId("fproidkpgvpdnac") + .withIsEnterpriseManaged(true) + .withShouldMigrate(true) + .withResendSignupCode(true) + .withVerifySignupCode(true) + .withVerifySignupPhrase("tprjvttkgmrqlsyicnidhm")) + .withAdditionalCustomerProperties(new AdditionalCustomerProperties().withCustomerEmail("zdjgibsidydyzm") + .withCustomerTransitAsn("habgklnxqzmozqpazoyejwiphezpi") + .withCustomerTransitState(CustomerTransitState.fromString("voblixkxfejbmhxilb")) + .withCustomerAsn("hgrelgnrtdkleisnepfolu") + .withCustomerEntitlementSkuId("b") + .withCustomerEntitlementSkuGuid("rvzmdpxyflgqetvpwupnfaxsweiiz") + .withCustomerEntitlementSkuName("waaqfijr") + .withCustomerEntitlementExpiration(OffsetDateTime.parse("2024-01-30T00:54:04.773Z")) + .withOptionalProperty1("qhmwxza") + .withOptionalProperty2("l") + .withOptionalProperty3("mblwwvbie") + .withOptionalProperty4("vzuek") + .withOptionalProperty5("fzjodscdfcdr"))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### EnterpriseMccCustomers_Delete + +```java +/** + * Samples for EnterpriseMccCustomers Delete. + */ +public final class EnterpriseMccCustomersDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_Delete. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().delete("rgConnectedCache", "zktb", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCustomers_GetByResourceGroup + +```java +/** + * Samples for EnterpriseMccCustomers GetByResourceGroup. + */ +public final class EnterpriseMccCustomersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_Get. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "pvilvqkofbjbykupeewgvzlmjao", + com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCustomers_List + +```java +/** + * Samples for EnterpriseMccCustomers List. + */ +public final class EnterpriseMccCustomersListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_ListBySubscription. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCustomersListBySubscription( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().list(com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCustomers_ListByResourceGroup + +```java +/** + * Samples for EnterpriseMccCustomers ListByResourceGroup. + */ +public final class EnterpriseMccCustomersListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_ListByResourceGroup. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCustomersListByResourceGroup( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} +``` + +### EnterpriseMccCustomers_Update + +```java +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomerResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCustomers Update. + */ +public final class EnterpriseMccCustomersUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_Update. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + EnterpriseMccCustomerResource resource = manager.enterpriseMccCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1878", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IspCacheNodesOperations_CreateOrUpdate + +```java +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.AdditionalCacheNodeProperties; +import com.azure.resourcemanager.connectedcache.models.BgpConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeDriveConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeEntity; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import com.azure.resourcemanager.connectedcache.models.ProxyUrlConfiguration; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCacheNodesOperations CreateOrUpdate. + */ +public final class IspCacheNodesOperationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_CreateOrUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + ispCacheNodesOperationsCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .define("cabakm") + .withRegion("westus") + .withExistingIspCustomer("rgConnectedCache", "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq") + .withTags(mapOf("key4171", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeProperty() + .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("hskxkpbiqbrbjiwdzrxndru") + .withCustomerName("xwyqk") + .withIpAddress("voctagljcwqgcpnionqdcbjk") + .withCustomerIndex("qtoiglqaswivmkjhzogburcxtszmek") + .withCacheNodeId("xjzffjftwcgsehanoxsl") + .withCacheNodeName("mfjxb") + .withCustomerAsn(4) + .withIsEnabled(true) + .withMaxAllowableEgressInMbps(29) + .withIsEnterpriseManaged(true) + .withCidrCsv(Arrays.asList("nlqlvrthafvvljuupcbcw")) + .withShouldMigrate(true) + .withCidrSelectionType(4)) + .withAdditionalCacheNodeProperties( + new AdditionalCacheNodeProperties().withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ex")) + .withDriveConfiguration(Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("/mcc") + .withSizeInGb(500) + .withCacheNumber(1) + .withNginxMapping("lijygenjq"))) + .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("pafcimhoog")) + .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) + .withProxyUrl("qhux") + .withOptionalProperty1("hvpmt") + .withOptionalProperty2("talanelmsgxvksrzoeeontqkjzbpv") + .withOptionalProperty3("bxkoxq") + .withOptionalProperty4("pqlkcekupusoc") + .withOptionalProperty5("nyvvmrjigqdufzjdvazdca")) + .withStatusCode("fakeTokenPlaceholder") + .withStatusText("Success") + .withStatusDetails("djruqvptzxak") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IspCacheNodesOperations_Delete + +```java +/** + * Samples for IspCacheNodesOperations Delete. + */ +public final class IspCacheNodesOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodes delete Operation - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesDeleteOperationGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .delete("rgConnectedCache", "lvpcosvbfxtpzscakewx", + "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", + com.azure.core.util.Context.NONE); + } +} +``` + +### IspCacheNodesOperations_Get + +```java +/** + * Samples for IspCacheNodesOperations Get. + */ +public final class IspCacheNodesOperationsGetSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodes Get resource - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesGetResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getWithResponse("rgConnectedCache", + "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", "lbsziwmudcjnwnwy", + com.azure.core.util.Context.NONE); + } +} +``` + +### IspCacheNodesOperations_GetBgpCidrs + +```java +/** + * Samples for IspCacheNodesOperations GetBgpCidrs. + */ +public final class IspCacheNodesOperationsGetBgpCidrsSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodes resource BgpCidrs details - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getBgpCidrsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} +``` + +### IspCacheNodesOperations_GetCacheNodeInstallDetails + +```java +/** + * Samples for IspCacheNodesOperations GetCacheNodeInstallDetails. + */ +public final class IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ + /** + * Sample code: ispCacheNode resource get install details - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} +``` + +### IspCacheNodesOperations_ListByIspCustomerResource + +```java +/** + * Samples for IspCacheNodesOperations ListByIspCustomerResource. + */ +public final class IspCacheNodesOperationsListByIspCustomerResourceSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_ListByIspCustomerResource. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesOperationsListByIspCustomerResource( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .listByIspCustomerResource("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE); + } +} +``` + +### IspCacheNodesOperations_Update + +```java +import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCacheNodesOperations Update. + */ +public final class IspCacheNodesOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_Update. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + ispCacheNodesOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + IspCacheNodeResource resource = manager.ispCacheNodesOperations() + .getWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IspCustomers_CreateOrUpdate + +```java +import com.azure.resourcemanager.connectedcache.models.AdditionalCustomerProperties; +import com.azure.resourcemanager.connectedcache.models.CustomerEntity; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import com.azure.resourcemanager.connectedcache.models.CustomerTransitState; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCustomers CreateOrUpdate. + */ +public final class IspCustomersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: ispCustomer CreateOrUpdate - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomerCreateOrUpdateGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .define("MccRPTest2") + .withRegion("westus") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key1878", "fakeTokenPlaceholder")) + .withProperties(new CustomerProperty() + .withCustomer(new CustomerEntity().withFullyQualifiedResourceId("uqsbtgae") + .withCustomerName("mkpzynfqihnjfdbaqbqwyhd") + .withContactEmail("xquos") + .withContactPhone("vue") + .withContactName("wxyqjoyoscmvimgwhpitxky") + .withIsEntitled(true) + .withReleaseVersion(20) + .withClientTenantId("fproidkpgvpdnac") + .withIsEnterpriseManaged(true) + .withShouldMigrate(true) + .withResendSignupCode(true) + .withVerifySignupCode(true) + .withVerifySignupPhrase("tprjvttkgmrqlsyicnidhm")) + .withAdditionalCustomerProperties(new AdditionalCustomerProperties().withCustomerEmail("zdjgibsidydyzm") + .withCustomerTransitAsn("habgklnxqzmozqpazoyejwiphezpi") + .withCustomerTransitState(CustomerTransitState.fromString("voblixkxfejbmhxilb")) + .withCustomerAsn("hgrelgnrtdkleisnepfolu") + .withCustomerEntitlementSkuId("b") + .withCustomerEntitlementSkuGuid("rvzmdpxyflgqetvpwupnfaxsweiiz") + .withCustomerEntitlementSkuName("waaqfijr") + .withCustomerEntitlementExpiration(OffsetDateTime.parse("2024-01-30T00:54:04.773Z")) + .withOptionalProperty1("qhmwxza") + .withOptionalProperty2("l") + .withOptionalProperty3("mblwwvbie") + .withOptionalProperty4("vzuek") + .withOptionalProperty5("fzjodscdfcdr"))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### IspCustomers_Delete + +```java +/** + * Samples for IspCustomers Delete. + */ +public final class IspCustomersDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: IspCustomers Delete - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomersDeleteGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .delete("rgConnectedCache", "hdontfoythjsaeyjhrakckgimgchxwzttbcnvntpvdsgeumxpgnjurptd", + com.azure.core.util.Context.NONE); + } +} +``` + +### IspCustomers_GetByResourceGroup + +```java +/** + * Samples for IspCustomers GetByResourceGroup. + */ +public final class IspCustomersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json + */ + /** + * Sample code: IspCustomers Get - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomersGetGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "cmcjfueweicolcjkwmsuvcj", + com.azure.core.util.Context.NONE); + } +} +``` + +### IspCustomers_List + +```java +/** + * Samples for IspCustomers List. + */ +public final class IspCustomersListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: ispCustomer List by Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomerListBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers().list(com.azure.core.util.Context.NONE); + } +} +``` + +### IspCustomers_ListByResourceGroup + +```java +/** + * Samples for IspCustomers ListByResourceGroup. + */ +public final class IspCustomersListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: IspCustomers resource List by Resource group - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} +``` + +### IspCustomers_Update + +```java +import com.azure.resourcemanager.connectedcache.models.IspCustomerResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCustomers Update. + */ +public final class IspCustomersUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json + */ + /** + * Sample code: ispCustomer Update details - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomerUpdateDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + IspCustomerResource resource = manager.ispCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest2", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### Operations_List + +```java +/** + * Samples for Operations List. + */ +public final class OperationsListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json + */ + /** + * Sample code: List the operations for the provider - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void listTheOperationsForTheProviderGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } +} +``` + diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml b/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml new file mode 100644 index 0000000000000..356b3e4e06ebc --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml @@ -0,0 +1,75 @@ + + + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + + + com.azure.resourcemanager + azure-resourcemanager-connectedcache + 1.0.0-beta.1 + jar + + Microsoft Azure SDK for Connected Cache Management + This package contains Microsoft Azure SDK for Connected Cache Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Connected Cache Rest Api version 2023-05-01-preview. + https://github.com/Azure/azure-sdk-for-java + + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + + + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + microsoft + Microsoft + + + + UTF-8 + 0 + 0 + true + false + + + + com.azure + azure-core + 1.54.1 + + + com.azure + azure-core-management + 1.15.6 + + + com.azure + azure-core-test + 1.27.0-beta.4 + test + + + com.azure + azure-identity + 1.14.2 + test + + + diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java new file mode 100644 index 0000000000000..859eaf0ee41db --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java @@ -0,0 +1,375 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache; + +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +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; +import com.azure.core.http.policy.HttpPolicyProviders; +import com.azure.core.http.policy.RequestIdPolicy; +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.profile.AzureProfile; +import com.azure.core.util.Configuration; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.ConnectedCacheManagementClient; +import com.azure.resourcemanager.connectedcache.implementation.CacheNodesOperationsImpl; +import com.azure.resourcemanager.connectedcache.implementation.ConnectedCacheManagementClientBuilder; +import com.azure.resourcemanager.connectedcache.implementation.EnterpriseCustomerOperationsImpl; +import com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCacheNodesOperationsImpl; +import com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCustomersImpl; +import com.azure.resourcemanager.connectedcache.implementation.IspCacheNodesOperationsImpl; +import com.azure.resourcemanager.connectedcache.implementation.IspCustomersImpl; +import com.azure.resourcemanager.connectedcache.implementation.OperationsImpl; +import com.azure.resourcemanager.connectedcache.models.CacheNodesOperations; +import com.azure.resourcemanager.connectedcache.models.EnterpriseCustomerOperations; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodesOperations; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomers; +import com.azure.resourcemanager.connectedcache.models.IspCacheNodesOperations; +import com.azure.resourcemanager.connectedcache.models.IspCustomers; +import com.azure.resourcemanager.connectedcache.models.Operations; +import java.time.Duration; +import java.time.temporal.ChronoUnit; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; + +/** + * Entry point to ConnectedCacheManager. + * Microsoft Connected Cache Rest Api version 2023-05-01-preview. + */ +public final class ConnectedCacheManager { + private Operations operations; + + private EnterpriseCustomerOperations enterpriseCustomerOperations; + + private CacheNodesOperations cacheNodesOperations; + + private IspCustomers ispCustomers; + + private IspCacheNodesOperations ispCacheNodesOperations; + + private EnterpriseMccCustomers enterpriseMccCustomers; + + private EnterpriseMccCacheNodesOperations enterpriseMccCacheNodesOperations; + + private final ConnectedCacheManagementClient clientObject; + + private ConnectedCacheManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + this.clientObject = new ConnectedCacheManagementClientBuilder().pipeline(httpPipeline) + .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) + .subscriptionId(profile.getSubscriptionId()) + .defaultPollInterval(defaultPollInterval) + .buildClient(); + } + + /** + * Creates an instance of Connected Cache service API entry point. + * + * @param credential the credential to use. + * @param profile the Azure profile for client. + * @return the Connected Cache service API instance. + */ + public static ConnectedCacheManager authenticate(TokenCredential credential, AzureProfile profile) { + Objects.requireNonNull(credential, "'credential' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return configure().authenticate(credential, profile); + } + + /** + * Creates an instance of Connected Cache service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the Connected Cache service API instance. + */ + public static ConnectedCacheManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new ConnectedCacheManager(httpPipeline, profile, null); + } + + /** + * Gets a Configurable instance that can be used to create ConnectedCacheManager with optional configuration. + * + * @return the Configurable instance allowing configurations. + */ + public static Configurable configure() { + return new ConnectedCacheManager.Configurable(); + } + + /** + * The Configurable allowing configurations to be set. + */ + public static final class Configurable { + private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); + + private HttpClient httpClient; + private HttpLogOptions httpLogOptions; + private final List policies = new ArrayList<>(); + private final List scopes = new ArrayList<>(); + private RetryPolicy retryPolicy; + private RetryOptions retryOptions; + private Duration defaultPollInterval; + + private Configurable() { + } + + /** + * Sets the http client. + * + * @param httpClient the HTTP client. + * @return the configurable object itself. + */ + public Configurable withHttpClient(HttpClient httpClient) { + this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null."); + return this; + } + + /** + * Sets the logging options to the HTTP pipeline. + * + * @param httpLogOptions the HTTP log options. + * @return the configurable object itself. + */ + public Configurable withLogOptions(HttpLogOptions httpLogOptions) { + this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null."); + return this; + } + + /** + * Adds the pipeline policy to the HTTP pipeline. + * + * @param policy the HTTP pipeline policy. + * @return the configurable object itself. + */ + public Configurable withPolicy(HttpPipelinePolicy policy) { + this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null.")); + return this; + } + + /** + * Adds the scope to permission sets. + * + * @param scope the scope. + * @return the configurable object itself. + */ + public Configurable withScope(String scope) { + this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null.")); + return this; + } + + /** + * Sets the retry policy to the HTTP pipeline. + * + * @param retryPolicy the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryPolicy(RetryPolicy retryPolicy) { + this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null."); + return this; + } + + /** + * Sets the retry options for the HTTP pipeline retry policy. + *

+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + + /** + * Sets the default poll interval, used when service does not provide "Retry-After" header. + * + * @param defaultPollInterval the default poll interval. + * @return the configurable object itself. + */ + public Configurable withDefaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval + = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); + if (this.defaultPollInterval.isNegative()) { + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); + } + return this; + } + + /** + * Creates an instance of Connected Cache service API entry point. + * + * @param credential the credential to use. + * @param profile the Azure profile for client. + * @return the Connected Cache service API instance. + */ + public ConnectedCacheManager authenticate(TokenCredential credential, AzureProfile profile) { + Objects.requireNonNull(credential, "'credential' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + + StringBuilder userAgentBuilder = new StringBuilder(); + userAgentBuilder.append("azsdk-java") + .append("-") + .append("com.azure.resourcemanager.connectedcache") + .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("; ") + .append(Configuration.getGlobalConfiguration().get("os.version")) + .append("; auto-generated)"); + } else { + userAgentBuilder.append(" (auto-generated)"); + } + + if (scopes.isEmpty()) { + scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); + } + if (retryPolicy == null) { + if (retryOptions != null) { + retryPolicy = new RetryPolicy(retryOptions); + } else { + retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + } + } + List policies = new ArrayList<>(); + policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); + policies.add(new RequestIdPolicy()); + policies.addAll(this.policies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); + HttpPolicyProviders.addBeforeRetryPolicies(policies); + policies.add(retryPolicy); + policies.add(new AddDatePolicy()); + 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())); + HttpPolicyProviders.addAfterRetryPolicies(policies); + policies.add(new HttpLoggingPolicy(httpLogOptions)); + HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient) + .policies(policies.toArray(new HttpPipelinePolicy[0])) + .build(); + return new ConnectedCacheManager(httpPipeline, profile, defaultPollInterval); + } + } + + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(clientObject.getOperations(), this); + } + return operations; + } + + /** + * Gets the resource collection API of EnterpriseCustomerOperations. It manages EnterprisePreviewResource. + * + * @return Resource collection API of EnterpriseCustomerOperations. + */ + public EnterpriseCustomerOperations enterpriseCustomerOperations() { + if (this.enterpriseCustomerOperations == null) { + this.enterpriseCustomerOperations + = new EnterpriseCustomerOperationsImpl(clientObject.getEnterpriseCustomerOperations(), this); + } + return enterpriseCustomerOperations; + } + + /** + * Gets the resource collection API of CacheNodesOperations. It manages CacheNodePreviewResource. + * + * @return Resource collection API of CacheNodesOperations. + */ + public CacheNodesOperations cacheNodesOperations() { + if (this.cacheNodesOperations == null) { + this.cacheNodesOperations = new CacheNodesOperationsImpl(clientObject.getCacheNodesOperations(), this); + } + return cacheNodesOperations; + } + + /** + * Gets the resource collection API of IspCustomers. It manages IspCustomerResource. + * + * @return Resource collection API of IspCustomers. + */ + public IspCustomers ispCustomers() { + if (this.ispCustomers == null) { + this.ispCustomers = new IspCustomersImpl(clientObject.getIspCustomers(), this); + } + return ispCustomers; + } + + /** + * Gets the resource collection API of IspCacheNodesOperations. It manages IspCacheNodeResource. + * + * @return Resource collection API of IspCacheNodesOperations. + */ + public IspCacheNodesOperations ispCacheNodesOperations() { + if (this.ispCacheNodesOperations == null) { + this.ispCacheNodesOperations + = new IspCacheNodesOperationsImpl(clientObject.getIspCacheNodesOperations(), this); + } + return ispCacheNodesOperations; + } + + /** + * Gets the resource collection API of EnterpriseMccCustomers. It manages EnterpriseMccCustomerResource. + * + * @return Resource collection API of EnterpriseMccCustomers. + */ + public EnterpriseMccCustomers enterpriseMccCustomers() { + if (this.enterpriseMccCustomers == null) { + this.enterpriseMccCustomers + = new EnterpriseMccCustomersImpl(clientObject.getEnterpriseMccCustomers(), this); + } + return enterpriseMccCustomers; + } + + /** + * Gets the resource collection API of EnterpriseMccCacheNodesOperations. It manages EnterpriseMccCacheNodeResource. + * + * @return Resource collection API of EnterpriseMccCacheNodesOperations. + */ + public EnterpriseMccCacheNodesOperations enterpriseMccCacheNodesOperations() { + if (this.enterpriseMccCacheNodesOperations == null) { + this.enterpriseMccCacheNodesOperations + = new EnterpriseMccCacheNodesOperationsImpl(clientObject.getEnterpriseMccCacheNodesOperations(), this); + } + return enterpriseMccCacheNodesOperations; + } + + /** + * Gets wrapped service client ConnectedCacheManagementClient providing direct access to the underlying + * auto-generated API implementation, based on Azure REST API. + * + * @return Wrapped service client ConnectedCacheManagementClient. + */ + public ConnectedCacheManagementClient serviceClient() { + return this.clientObject; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/CacheNodesOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/CacheNodesOperationsClient.java new file mode 100644 index 0000000000000..b94dbd4ac4bc4 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/CacheNodesOperationsClient.java @@ -0,0 +1,222 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; + +/** + * An instance of this class provides access to all the operations defined in CacheNodesOperationsClient. + */ +public interface CacheNodesOperationsClient { + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context); + + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CacheNodePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this + * type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( + String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this + * type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( + String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource, Context context); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, + CacheNodePreviewResourceInner resource); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, + CacheNodePreviewResourceInner resource, Context context); + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context); + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName); + + /** + * updates an existing Cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties, Context context); + + /** + * updates an existing Cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CacheNodePreviewResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties); + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java new file mode 100644 index 0000000000000..4a115fe922c09 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.http.HttpPipeline; +import java.time.Duration; + +/** + * The interface for ConnectedCacheManagementClient class. + */ +public interface ConnectedCacheManagementClient { + /** + * Gets Service host. + * + * @return the endpoint value. + */ + String getEndpoint(); + + /** + * Gets Version parameter. + * + * @return the apiVersion value. + */ + String getApiVersion(); + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + String getSubscriptionId(); + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + HttpPipeline getHttpPipeline(); + + /** + * Gets The default poll interval for long-running operation. + * + * @return the defaultPollInterval value. + */ + Duration getDefaultPollInterval(); + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + OperationsClient getOperations(); + + /** + * Gets the EnterpriseCustomerOperationsClient object to access its operations. + * + * @return the EnterpriseCustomerOperationsClient object. + */ + EnterpriseCustomerOperationsClient getEnterpriseCustomerOperations(); + + /** + * Gets the CacheNodesOperationsClient object to access its operations. + * + * @return the CacheNodesOperationsClient object. + */ + CacheNodesOperationsClient getCacheNodesOperations(); + + /** + * Gets the IspCustomersClient object to access its operations. + * + * @return the IspCustomersClient object. + */ + IspCustomersClient getIspCustomers(); + + /** + * Gets the IspCacheNodesOperationsClient object to access its operations. + * + * @return the IspCacheNodesOperationsClient object. + */ + IspCacheNodesOperationsClient getIspCacheNodesOperations(); + + /** + * Gets the EnterpriseMccCustomersClient object to access its operations. + * + * @return the EnterpriseMccCustomersClient object. + */ + EnterpriseMccCustomersClient getEnterpriseMccCustomers(); + + /** + * Gets the EnterpriseMccCacheNodesOperationsClient object to access its operations. + * + * @return the EnterpriseMccCacheNodesOperationsClient object. + */ + EnterpriseMccCacheNodesOperationsClient getEnterpriseMccCacheNodesOperations(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseCustomerOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseCustomerOperationsClient.java new file mode 100644 index 0000000000000..192d69d7a1e07 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseCustomerOperationsClient.java @@ -0,0 +1,219 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; + +/** + * An instance of this class provides access to all the operations defined in EnterpriseCustomerOperationsClient. + */ +public interface EnterpriseCustomerOperationsClient { + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context); + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterprisePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource, + Context context); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterprisePreviewResourceInner resource); + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterprisePreviewResourceInner resource, Context context); + + /** + * updates an existing enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties, Context context); + + /** + * updates an existing enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterprisePreviewResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties); + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context); + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName); + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java new file mode 100644 index 0000000000000..57c4e3e1d6b15 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; + +/** + * An instance of this class provides access to all the operations defined in EnterpriseMccCacheNodesOperationsClient. + */ +public interface EnterpriseMccCacheNodesOperationsClient { + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCacheNodeResourceInner get(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, EnterpriseMccCacheNodeResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + EnterpriseMccCacheNodeResourceInner resource); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, EnterpriseMccCacheNodeResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + EnterpriseMccCacheNodeResourceInner resource, Context context); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource, Context context); + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, ConnectedCachePatchResource properties, + Context context); + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCacheNodeResourceInner update(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByEnterpriseMccCustomerResource(String resourceGroupName, + String customerResourceName); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByEnterpriseMccCustomerResource(String resourceGroupName, + String customerResourceName, Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCustomersClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCustomersClient.java new file mode 100644 index 0000000000000..dd314f68a0c8c --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCustomersClient.java @@ -0,0 +1,250 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; + +/** + * An instance of this class provides access to all the operations defined in EnterpriseMccCustomersClient. + */ +public interface EnterpriseMccCustomersClient { + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context); + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCustomerResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, EnterpriseMccCustomerResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, EnterpriseMccCustomerResourceInner resource); + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, EnterpriseMccCustomerResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, EnterpriseMccCustomerResourceInner resource, + Context context); + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource); + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource, Context context); + + /** + * This api updates an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context); + + /** + * This api updates an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EnterpriseMccCustomerResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + Context context); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName, Context context); + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java new file mode 100644 index 0000000000000..03d473d54b84f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java @@ -0,0 +1,305 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; + +/** + * An instance of this class provides access to all the operations defined in IspCacheNodesOperationsClient. + */ +public interface IspCacheNodesOperationsClient { + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCacheNodeResourceInner get(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IspCacheNodeResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + IspCacheNodeResourceInner resource); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IspCacheNodeResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + IspCacheNodeResourceInner resource, Context context); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, IspCacheNodeResourceInner resource); + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, IspCacheNodeResourceInner resource, Context context); + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties, Context context); + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCacheNodeResourceInner update(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByIspCustomerResource(String resourceGroupName, + String customerResourceName); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByIspCustomerResource(String resourceGroupName, + String customerResourceName, Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getBgpCidrsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeBgpCidrDetailsInner getBgpCidrs(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCustomersClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCustomersClient.java new file mode 100644 index 0000000000000..bc48107d65a46 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCustomersClient.java @@ -0,0 +1,243 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; + +/** + * An instance of this class provides access to all the operations defined in IspCustomersClient. + */ +public interface IspCustomersClient { + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context); + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCustomerResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision isp customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IspCustomerResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, IspCustomerResourceInner resource); + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision isp customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IspCustomerResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, IspCustomerResourceInner resource, Context context); + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + IspCustomerResourceInner resource); + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + IspCustomerResourceInner resource, Context context); + + /** + * This api updates an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties, Context context); + + /** + * This api updates an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IspCustomerResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + Context context); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String customerResourceName, Context context); + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/OperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/OperationsClient.java new file mode 100644 index 0000000000000..affb04118bf10 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/OperationsClient.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.OperationInner; + +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ +public interface OperationsClient { + /** + * List the operations for the provider. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/CacheNodePreviewResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/CacheNodePreviewResourceInner.java new file mode 100644 index 0000000000000..7a83c447e94f5 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/CacheNodePreviewResourceInner.java @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import java.io.IOException; +import java.util.Map; + +/** + * Concrete tracked resource types can be created by aliasing this type using a specific property type. + */ +@Fluent +public final class CacheNodePreviewResourceInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private CacheNodeOldResponse properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of CacheNodePreviewResourceInner class. + */ + public CacheNodePreviewResourceInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CacheNodeOldResponse properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the CacheNodePreviewResourceInner object itself. + */ + public CacheNodePreviewResourceInner withProperties(CacheNodeOldResponse properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public CacheNodePreviewResourceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public CacheNodePreviewResourceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CacheNodePreviewResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CacheNodePreviewResourceInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CacheNodePreviewResourceInner. + */ + public static CacheNodePreviewResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CacheNodePreviewResourceInner deserializedCacheNodePreviewResourceInner + = new CacheNodePreviewResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedCacheNodePreviewResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedCacheNodePreviewResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCacheNodePreviewResourceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedCacheNodePreviewResourceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedCacheNodePreviewResourceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedCacheNodePreviewResourceInner.properties = CacheNodeOldResponse.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedCacheNodePreviewResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCacheNodePreviewResourceInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCacheNodeResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCacheNodeResourceInner.java new file mode 100644 index 0000000000000..7946e0abe0fe4 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCacheNodeResourceInner.java @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import java.io.IOException; +import java.util.Map; + +/** + * Represents the high level Nodes needed to provision cache node resources. + */ +@Fluent +public final class EnterpriseMccCacheNodeResourceInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private CacheNodeProperty properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of EnterpriseMccCacheNodeResourceInner class. + */ + public EnterpriseMccCacheNodeResourceInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CacheNodeProperty properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the EnterpriseMccCacheNodeResourceInner object itself. + */ + public EnterpriseMccCacheNodeResourceInner withProperties(CacheNodeProperty properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public EnterpriseMccCacheNodeResourceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public EnterpriseMccCacheNodeResourceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EnterpriseMccCacheNodeResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EnterpriseMccCacheNodeResourceInner if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EnterpriseMccCacheNodeResourceInner. + */ + public static EnterpriseMccCacheNodeResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EnterpriseMccCacheNodeResourceInner deserializedEnterpriseMccCacheNodeResourceInner + = new EnterpriseMccCacheNodeResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedEnterpriseMccCacheNodeResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedEnterpriseMccCacheNodeResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedEnterpriseMccCacheNodeResourceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedEnterpriseMccCacheNodeResourceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedEnterpriseMccCacheNodeResourceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedEnterpriseMccCacheNodeResourceInner.properties = CacheNodeProperty.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedEnterpriseMccCacheNodeResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEnterpriseMccCacheNodeResourceInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCustomerResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCustomerResourceInner.java new file mode 100644 index 0000000000000..50a19885a93c3 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterpriseMccCustomerResourceInner.java @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import java.io.IOException; +import java.util.Map; + +/** + * Represents the high level Nodes needed to provision customer resources. + */ +@Fluent +public final class EnterpriseMccCustomerResourceInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private CustomerProperty properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of EnterpriseMccCustomerResourceInner class. + */ + public EnterpriseMccCustomerResourceInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CustomerProperty properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the EnterpriseMccCustomerResourceInner object itself. + */ + public EnterpriseMccCustomerResourceInner withProperties(CustomerProperty properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public EnterpriseMccCustomerResourceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public EnterpriseMccCustomerResourceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EnterpriseMccCustomerResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EnterpriseMccCustomerResourceInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EnterpriseMccCustomerResourceInner. + */ + public static EnterpriseMccCustomerResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EnterpriseMccCustomerResourceInner deserializedEnterpriseMccCustomerResourceInner + = new EnterpriseMccCustomerResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedEnterpriseMccCustomerResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedEnterpriseMccCustomerResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedEnterpriseMccCustomerResourceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedEnterpriseMccCustomerResourceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedEnterpriseMccCustomerResourceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedEnterpriseMccCustomerResourceInner.properties = CustomerProperty.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedEnterpriseMccCustomerResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEnterpriseMccCustomerResourceInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterprisePreviewResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterprisePreviewResourceInner.java new file mode 100644 index 0000000000000..a650e300f0e30 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterprisePreviewResourceInner.java @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import java.io.IOException; +import java.util.Map; + +/** + * ConnectedCache Resource. Represents the high level Nodes needed to provision CacheNode and customer resources used in + * private preview. + */ +@Fluent +public final class EnterprisePreviewResourceInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private CacheNodeOldResponse properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of EnterprisePreviewResourceInner class. + */ + public EnterprisePreviewResourceInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CacheNodeOldResponse properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the EnterprisePreviewResourceInner object itself. + */ + public EnterprisePreviewResourceInner withProperties(CacheNodeOldResponse properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public EnterprisePreviewResourceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public EnterprisePreviewResourceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EnterprisePreviewResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EnterprisePreviewResourceInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EnterprisePreviewResourceInner. + */ + public static EnterprisePreviewResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EnterprisePreviewResourceInner deserializedEnterprisePreviewResourceInner + = new EnterprisePreviewResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedEnterprisePreviewResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedEnterprisePreviewResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedEnterprisePreviewResourceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedEnterprisePreviewResourceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedEnterprisePreviewResourceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedEnterprisePreviewResourceInner.properties = CacheNodeOldResponse.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedEnterprisePreviewResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEnterprisePreviewResourceInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCacheNodeResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCacheNodeResourceInner.java new file mode 100644 index 0000000000000..462cd9d92e166 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCacheNodeResourceInner.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import java.io.IOException; +import java.util.Map; + +/** + * Represents the high level Nodes needed to provision cache node resources. + */ +@Fluent +public final class IspCacheNodeResourceInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private CacheNodeProperty properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of IspCacheNodeResourceInner class. + */ + public IspCacheNodeResourceInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CacheNodeProperty properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the IspCacheNodeResourceInner object itself. + */ + public IspCacheNodeResourceInner withProperties(CacheNodeProperty properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public IspCacheNodeResourceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public IspCacheNodeResourceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IspCacheNodeResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IspCacheNodeResourceInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the IspCacheNodeResourceInner. + */ + public static IspCacheNodeResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IspCacheNodeResourceInner deserializedIspCacheNodeResourceInner = new IspCacheNodeResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedIspCacheNodeResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedIspCacheNodeResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedIspCacheNodeResourceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedIspCacheNodeResourceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedIspCacheNodeResourceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedIspCacheNodeResourceInner.properties = CacheNodeProperty.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedIspCacheNodeResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedIspCacheNodeResourceInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCustomerResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCustomerResourceInner.java new file mode 100644 index 0000000000000..b0a53a0c13655 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/IspCustomerResourceInner.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import java.io.IOException; +import java.util.Map; + +/** + * Represents the high level Nodes needed to provision isp customer resources. + */ +@Fluent +public final class IspCustomerResourceInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private CustomerProperty properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of IspCustomerResourceInner class. + */ + public IspCustomerResourceInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CustomerProperty properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the IspCustomerResourceInner object itself. + */ + public IspCustomerResourceInner withProperties(CustomerProperty properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public IspCustomerResourceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public IspCustomerResourceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IspCustomerResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IspCustomerResourceInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the IspCustomerResourceInner. + */ + public static IspCustomerResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IspCustomerResourceInner deserializedIspCustomerResourceInner = new IspCustomerResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedIspCustomerResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedIspCustomerResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedIspCustomerResourceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedIspCustomerResourceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedIspCustomerResourceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedIspCustomerResourceInner.properties = CustomerProperty.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedIspCustomerResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedIspCustomerResourceInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeBgpCidrDetailsInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeBgpCidrDetailsInner.java new file mode 100644 index 0000000000000..6254955448be7 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeBgpCidrDetailsInner.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.BgpCidrsConfiguration; +import java.io.IOException; +import java.util.Map; + +/** + * Represents all Cidr details of the Bgp request for a specific cache node resource. + */ +@Immutable +public final class MccCacheNodeBgpCidrDetailsInner extends Resource { + /* + * Mcc cache node resource Bgp Cidr properties. + */ + private BgpCidrsConfiguration properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MccCacheNodeBgpCidrDetailsInner class. + */ + private MccCacheNodeBgpCidrDetailsInner() { + } + + /** + * Get the properties property: Mcc cache node resource Bgp Cidr properties. + * + * @return the properties value. + */ + public BgpCidrsConfiguration properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeBgpCidrDetailsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeBgpCidrDetailsInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the MccCacheNodeBgpCidrDetailsInner. + */ + public static MccCacheNodeBgpCidrDetailsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeBgpCidrDetailsInner deserializedMccCacheNodeBgpCidrDetailsInner + = new MccCacheNodeBgpCidrDetailsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMccCacheNodeBgpCidrDetailsInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMccCacheNodeBgpCidrDetailsInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMccCacheNodeBgpCidrDetailsInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedMccCacheNodeBgpCidrDetailsInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedMccCacheNodeBgpCidrDetailsInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedMccCacheNodeBgpCidrDetailsInner.properties = BgpCidrsConfiguration.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMccCacheNodeBgpCidrDetailsInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeBgpCidrDetailsInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeInstallDetailsInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeInstallDetailsInner.java new file mode 100644 index 0000000000000..7a920854a0f57 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeInstallDetailsInner.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.CacheNodeInstallProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Mcc cache node resource all install details. + */ +@Immutable +public final class MccCacheNodeInstallDetailsInner extends Resource { + /* + * Mcc cache node resource install script details. + */ + private CacheNodeInstallProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MccCacheNodeInstallDetailsInner class. + */ + private MccCacheNodeInstallDetailsInner() { + } + + /** + * Get the properties property: Mcc cache node resource install script details. + * + * @return the properties value. + */ + public CacheNodeInstallProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeInstallDetailsInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeInstallDetailsInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the MccCacheNodeInstallDetailsInner. + */ + public static MccCacheNodeInstallDetailsInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeInstallDetailsInner deserializedMccCacheNodeInstallDetailsInner + = new MccCacheNodeInstallDetailsInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMccCacheNodeInstallDetailsInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMccCacheNodeInstallDetailsInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMccCacheNodeInstallDetailsInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedMccCacheNodeInstallDetailsInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedMccCacheNodeInstallDetailsInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedMccCacheNodeInstallDetailsInner.properties + = CacheNodeInstallProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMccCacheNodeInstallDetailsInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeInstallDetailsInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/OperationInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/OperationInner.java new file mode 100644 index 0000000000000..295aee7428ddb --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/OperationInner.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.ActionType; +import com.azure.resourcemanager.connectedcache.models.OperationDisplay; +import com.azure.resourcemanager.connectedcache.models.Origin; +import java.io.IOException; + +/** + * Details of a REST API operation, returned from the Resource Provider Operations API. + */ +@Immutable +public final class OperationInner implements JsonSerializable { + /* + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + */ + private String name; + + /* + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure + * Resource Manager/control-plane operations. + */ + private Boolean isDataAction; + + /* + * Localized display information for this particular operation. + */ + private OperationDisplay display; + + /* + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default + * value is "user,system" + */ + private Origin origin; + + /* + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + */ + private ActionType actionType; + + /** + * Creates an instance of OperationInner class. + */ + private OperationInner() { + } + + /** + * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane + * operations and "false" for Azure Resource Manager/control-plane operations. + * + * @return the isDataAction value. + */ + public Boolean isDataAction() { + return this.isDataAction; + } + + /** + * Get the display property: Localized display information for this particular operation. + * + * @return the display value. + */ + public OperationDisplay display() { + return this.display; + } + + /** + * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and + * audit logs UX. Default value is "user,system". + * + * @return the origin value. + */ + public Origin origin() { + return this.origin; + } + + /** + * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. + * + * @return the actionType value. + */ + public ActionType actionType() { + return this.actionType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (display() != null) { + display().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationInner. + */ + public static OperationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationInner deserializedOperationInner = new OperationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedOperationInner.name = reader.getString(); + } else if ("isDataAction".equals(fieldName)) { + deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean); + } else if ("display".equals(fieldName)) { + deserializedOperationInner.display = OperationDisplay.fromJson(reader); + } else if ("origin".equals(fieldName)) { + deserializedOperationInner.origin = Origin.fromString(reader.getString()); + } else if ("actionType".equals(fieldName)) { + deserializedOperationInner.actionType = ActionType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/package-info.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/package-info.java new file mode 100644 index 0000000000000..1c4f3b89ec140 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/package-info.java @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the inner data models for ConnectedCache. + * Microsoft Connected Cache Rest Api version 2023-05-01-preview. + */ +package com.azure.resourcemanager.connectedcache.fluent.models; diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/package-info.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/package-info.java new file mode 100644 index 0000000000000..1eb63235e20a7 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/package-info.java @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the service clients for ConnectedCache. + * Microsoft Connected Cache Rest Api version 2023-05-01-preview. + */ +package com.azure.resourcemanager.connectedcache.fluent; diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodePreviewResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodePreviewResourceImpl.java new file mode 100644 index 0000000000000..c7222d6852dcf --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodePreviewResourceImpl.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.util.Collections; +import java.util.Map; + +public final class CacheNodePreviewResourceImpl + implements CacheNodePreviewResource, CacheNodePreviewResource.Definition, CacheNodePreviewResource.Update { + private CacheNodePreviewResourceInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public CacheNodeOldResponse properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public CacheNodePreviewResourceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String customerResourceName; + + private ConnectedCachePatchResource updateProperties; + + public CacheNodePreviewResourceImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public CacheNodePreviewResource create() { + this.innerObject = serviceManager.serviceClient() + .getCacheNodesOperations() + .createorUpdate(resourceGroupName, customerResourceName, this.innerModel(), Context.NONE); + return this; + } + + public CacheNodePreviewResource create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getCacheNodesOperations() + .createorUpdate(resourceGroupName, customerResourceName, this.innerModel(), context); + return this; + } + + CacheNodePreviewResourceImpl(String name, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = new CacheNodePreviewResourceInner(); + this.serviceManager = serviceManager; + this.customerResourceName = name; + } + + public CacheNodePreviewResourceImpl update() { + this.updateProperties = new ConnectedCachePatchResource(); + return this; + } + + public CacheNodePreviewResource apply() { + this.innerObject = serviceManager.serviceClient() + .getCacheNodesOperations() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, Context.NONE) + .getValue(); + return this; + } + + public CacheNodePreviewResource apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getCacheNodesOperations() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, context) + .getValue(); + return this; + } + + CacheNodePreviewResourceImpl(CacheNodePreviewResourceInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.customerResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "cacheNodes"); + } + + public CacheNodePreviewResource refresh() { + this.innerObject = serviceManager.serviceClient() + .getCacheNodesOperations() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE) + .getValue(); + return this; + } + + public CacheNodePreviewResource refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getCacheNodesOperations() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context) + .getValue(); + return this; + } + + public CacheNodePreviewResourceImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public CacheNodePreviewResourceImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public CacheNodePreviewResourceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public CacheNodePreviewResourceImpl withProperties(CacheNodeOldResponse properties) { + this.innerModel().withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsClientImpl.java new file mode 100644 index 0000000000000..ee08b41b95d94 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsClientImpl.java @@ -0,0 +1,1140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.CacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.implementation.models.CacheNodePreviewResourceListResult; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in CacheNodesOperationsClient. + */ +public final class CacheNodesOperationsClientImpl implements CacheNodesOperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final CacheNodesOperationsService service; + + /** + * The service client containing this operation class. + */ + private final ConnectedCacheManagementClientImpl client; + + /** + * Initializes an instance of CacheNodesOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + CacheNodesOperationsClientImpl(ConnectedCacheManagementClientImpl client) { + this.service = RestProxy.create(CacheNodesOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ConnectedCacheManagementClientCacheNodesOperations to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ConnectedCacheManage") + public interface CacheNodesOperationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createorUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") CacheNodePreviewResourceInner resource, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") + @ExpectedResponses({ 200, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/cacheNodes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context); + } + + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, + String customerResourceName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CacheNodePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName) { + return getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createorUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, CacheNodePreviewResourceInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createorUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createorUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, CacheNodePreviewResourceInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createorUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this + * type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, CacheNodePreviewResourceInner> + beginCreateorUpdateAsync(String resourceGroupName, String customerResourceName, + CacheNodePreviewResourceInner resource) { + Mono>> mono + = createorUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), CacheNodePreviewResourceInner.class, CacheNodePreviewResourceInner.class, + this.client.getContext()); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this + * type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, CacheNodePreviewResourceInner> + beginCreateorUpdateAsync(String resourceGroupName, String customerResourceName, + CacheNodePreviewResourceInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createorUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), CacheNodePreviewResourceInner.class, CacheNodePreviewResourceInner.class, + context); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this + * type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( + String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource) { + return this.beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource).getSyncPoller(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this + * type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( + String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource, + Context context) { + return this.beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource, context) + .getSyncPoller(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createorUpdateAsync(String resourceGroupName, + String customerResourceName, CacheNodePreviewResourceInner resource) { + return beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createorUpdateAsync(String resourceGroupName, + String customerResourceName, CacheNodePreviewResourceInner resource, Context context) { + return beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, + CacheNodePreviewResourceInner resource) { + return createorUpdateAsync(resourceGroupName, customerResourceName, resource).block(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, + CacheNodePreviewResourceInner resource, Context context) { + return createorUpdateAsync(resourceGroupName, customerResourceName, resource, context).block(); + } + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, accept, context); + } + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName) { + return deleteWithResponseAsync(resourceGroupName, customerResourceName).flatMap(ignored -> Mono.empty()); + } + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context) { + return deleteWithResponseAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName) { + deleteWithResponse(resourceGroupName, customerResourceName, Context.NONE); + } + + /** + * updates an existing Cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * updates an existing Cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, contentType, accept, properties, context); + } + + /** + * updates an existing Cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * updates an existing Cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties, context).block(); + } + + /** + * updates an existing Cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CacheNodePreviewResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponse(resourceGroupName, customerResourceName, properties, Context.NONE).getValue(); + } + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsImpl.java new file mode 100644 index 0000000000000..3be4246de9551 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsImpl.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.CacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; +import com.azure.resourcemanager.connectedcache.models.CacheNodesOperations; + +public final class CacheNodesOperationsImpl implements CacheNodesOperations { + private static final ClientLogger LOGGER = new ClientLogger(CacheNodesOperationsImpl.class); + + private final CacheNodesOperationsClient innerClient; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public CacheNodesOperationsImpl(CacheNodesOperationsClient innerClient, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new CacheNodePreviewResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public CacheNodePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName) { + CacheNodePreviewResourceInner inner + = this.serviceClient().getByResourceGroup(resourceGroupName, customerResourceName); + if (inner != null) { + return new CacheNodePreviewResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, + Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, customerResourceName, context); + } + + public void deleteByResourceGroup(String resourceGroupName, String customerResourceName) { + this.serviceClient().delete(resourceGroupName, customerResourceName); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); + } + + public CacheNodePreviewResource getById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + } + + public void deleteById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); + } + this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE); + } + + public Response deleteByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); + } + return this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + } + + private CacheNodesOperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + public CacheNodePreviewResourceImpl define(String name) { + return new CacheNodePreviewResourceImpl(name, this.manager()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientBuilder.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientBuilder.java new file mode 100644 index 0000000000000..a77b42b0adfd3 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientBuilder.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerAdapter; +import java.time.Duration; + +/** + * A builder for creating a new instance of the ConnectedCacheManagementClientImpl type. + */ +@ServiceClientBuilder(serviceClients = { ConnectedCacheManagementClientImpl.class }) +public final class ConnectedCacheManagementClientBuilder { + /* + * Service host + */ + private String endpoint; + + /** + * Sets Service host. + * + * @param endpoint the endpoint value. + * @return the ConnectedCacheManagementClientBuilder. + */ + public ConnectedCacheManagementClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * The ID of the target subscription. The value must be an UUID. + */ + private String subscriptionId; + + /** + * Sets The ID of the target subscription. The value must be an UUID. + * + * @param subscriptionId the subscriptionId value. + * @return the ConnectedCacheManagementClientBuilder. + */ + public ConnectedCacheManagementClientBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /* + * The environment to connect to + */ + private AzureEnvironment environment; + + /** + * Sets The environment to connect to. + * + * @param environment the environment value. + * @return the ConnectedCacheManagementClientBuilder. + */ + public ConnectedCacheManagementClientBuilder environment(AzureEnvironment environment) { + this.environment = environment; + return this; + } + + /* + * The HTTP pipeline to send requests through + */ + private HttpPipeline pipeline; + + /** + * Sets The HTTP pipeline to send requests through. + * + * @param pipeline the pipeline value. + * @return the ConnectedCacheManagementClientBuilder. + */ + public ConnectedCacheManagementClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /* + * The default poll interval for long-running operation + */ + private Duration defaultPollInterval; + + /** + * Sets The default poll interval for long-running operation. + * + * @param defaultPollInterval the defaultPollInterval value. + * @return the ConnectedCacheManagementClientBuilder. + */ + public ConnectedCacheManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; + return this; + } + + /* + * The serializer to serialize an object into a string + */ + private SerializerAdapter serializerAdapter; + + /** + * Sets The serializer to serialize an object into a string. + * + * @param serializerAdapter the serializerAdapter value. + * @return the ConnectedCacheManagementClientBuilder. + */ + public ConnectedCacheManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + this.serializerAdapter = serializerAdapter; + return this; + } + + /** + * Builds an instance of ConnectedCacheManagementClientImpl with the provided parameters. + * + * @return an instance of ConnectedCacheManagementClientImpl. + */ + public ConnectedCacheManagementClientImpl buildClient() { + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval + = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); + ConnectedCacheManagementClientImpl client = new ConnectedCacheManagementClientImpl(localPipeline, + localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); + return client; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java new file mode 100644 index 0000000000000..19432e4ef9120 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java @@ -0,0 +1,384 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpResponse; +import com.azure.core.http.rest.Response; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.exception.ManagementError; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; +import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.logging.ClientLogger; +import com.azure.core.util.polling.AsyncPollResponse; +import com.azure.core.util.polling.LongRunningOperationStatus; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.serializer.SerializerAdapter; +import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.connectedcache.fluent.CacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.ConnectedCacheManagementClient; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseCustomerOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCustomersClient; +import com.azure.resourcemanager.connectedcache.fluent.IspCacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.IspCustomersClient; +import com.azure.resourcemanager.connectedcache.fluent.OperationsClient; +import java.io.IOException; +import java.lang.reflect.Type; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.time.Duration; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the ConnectedCacheManagementClientImpl type. + */ +@ServiceClient(builder = ConnectedCacheManagementClientBuilder.class) +public final class ConnectedCacheManagementClientImpl implements ConnectedCacheManagementClient { + /** + * Service host. + */ + private final String endpoint; + + /** + * Gets Service host. + * + * @return the endpoint value. + */ + public String getEndpoint() { + return this.endpoint; + } + + /** + * Version parameter. + */ + private final String apiVersion; + + /** + * Gets Version parameter. + * + * @return the apiVersion value. + */ + public String getApiVersion() { + return this.apiVersion; + } + + /** + * The ID of the target subscription. The value must be an UUID. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. The value must be an UUID. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + + /** + * The HTTP pipeline to send requests through. + */ + private final HttpPipeline httpPipeline; + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + public HttpPipeline getHttpPipeline() { + return this.httpPipeline; + } + + /** + * The serializer to serialize an object into a string. + */ + private final SerializerAdapter serializerAdapter; + + /** + * Gets The serializer to serialize an object into a string. + * + * @return the serializerAdapter value. + */ + SerializerAdapter getSerializerAdapter() { + return this.serializerAdapter; + } + + /** + * The default poll interval for long-running operation. + */ + private final Duration defaultPollInterval; + + /** + * Gets The default poll interval for long-running operation. + * + * @return the defaultPollInterval value. + */ + public Duration getDefaultPollInterval() { + return this.defaultPollInterval; + } + + /** + * The OperationsClient object to access its operations. + */ + private final OperationsClient operations; + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + public OperationsClient getOperations() { + return this.operations; + } + + /** + * The EnterpriseCustomerOperationsClient object to access its operations. + */ + private final EnterpriseCustomerOperationsClient enterpriseCustomerOperations; + + /** + * Gets the EnterpriseCustomerOperationsClient object to access its operations. + * + * @return the EnterpriseCustomerOperationsClient object. + */ + public EnterpriseCustomerOperationsClient getEnterpriseCustomerOperations() { + return this.enterpriseCustomerOperations; + } + + /** + * The CacheNodesOperationsClient object to access its operations. + */ + private final CacheNodesOperationsClient cacheNodesOperations; + + /** + * Gets the CacheNodesOperationsClient object to access its operations. + * + * @return the CacheNodesOperationsClient object. + */ + public CacheNodesOperationsClient getCacheNodesOperations() { + return this.cacheNodesOperations; + } + + /** + * The IspCustomersClient object to access its operations. + */ + private final IspCustomersClient ispCustomers; + + /** + * Gets the IspCustomersClient object to access its operations. + * + * @return the IspCustomersClient object. + */ + public IspCustomersClient getIspCustomers() { + return this.ispCustomers; + } + + /** + * The IspCacheNodesOperationsClient object to access its operations. + */ + private final IspCacheNodesOperationsClient ispCacheNodesOperations; + + /** + * Gets the IspCacheNodesOperationsClient object to access its operations. + * + * @return the IspCacheNodesOperationsClient object. + */ + public IspCacheNodesOperationsClient getIspCacheNodesOperations() { + return this.ispCacheNodesOperations; + } + + /** + * The EnterpriseMccCustomersClient object to access its operations. + */ + private final EnterpriseMccCustomersClient enterpriseMccCustomers; + + /** + * Gets the EnterpriseMccCustomersClient object to access its operations. + * + * @return the EnterpriseMccCustomersClient object. + */ + public EnterpriseMccCustomersClient getEnterpriseMccCustomers() { + return this.enterpriseMccCustomers; + } + + /** + * The EnterpriseMccCacheNodesOperationsClient object to access its operations. + */ + private final EnterpriseMccCacheNodesOperationsClient enterpriseMccCacheNodesOperations; + + /** + * Gets the EnterpriseMccCacheNodesOperationsClient object to access its operations. + * + * @return the EnterpriseMccCacheNodesOperationsClient object. + */ + public EnterpriseMccCacheNodesOperationsClient getEnterpriseMccCacheNodesOperations() { + return this.enterpriseMccCacheNodesOperations; + } + + /** + * Initializes an instance of ConnectedCacheManagementClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + * @param serializerAdapter The serializer to serialize an object into a string. + * @param defaultPollInterval The default poll interval for long-running operation. + * @param environment The Azure environment. + * @param endpoint Service host. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. + */ + ConnectedCacheManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { + this.httpPipeline = httpPipeline; + this.serializerAdapter = serializerAdapter; + this.defaultPollInterval = defaultPollInterval; + this.endpoint = endpoint; + this.subscriptionId = subscriptionId; + this.apiVersion = "2023-05-01-preview"; + this.operations = new OperationsClientImpl(this); + this.enterpriseCustomerOperations = new EnterpriseCustomerOperationsClientImpl(this); + this.cacheNodesOperations = new CacheNodesOperationsClientImpl(this); + this.ispCustomers = new IspCustomersClientImpl(this); + this.ispCacheNodesOperations = new IspCacheNodesOperationsClientImpl(this); + this.enterpriseMccCustomers = new EnterpriseMccCustomersClientImpl(this); + this.enterpriseMccCacheNodesOperations = new EnterpriseMccCacheNodesOperationsClientImpl(this); + } + + /** + * Gets default client context. + * + * @return the default client context. + */ + public Context getContext() { + return Context.NONE; + } + + /** + * Merges default client context with provided context. + * + * @param context the context to be merged with default client context. + * @return the merged context. + */ + public Context mergeContext(Context context) { + return CoreUtils.mergeContexts(this.getContext(), context); + } + + /** + * Gets long running operation result. + * + * @param activationResponse the response of activation operation. + * @param httpPipeline the http pipeline. + * @param pollResultType type of poll result. + * @param finalResultType type of final result. + * @param context the context shared by all requests. + * @param type of poll result. + * @param type of final result. + * @return poller flux for poll result and final result. + */ + public PollerFlux, U> getLroResult(Mono>> activationResponse, + HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) { + return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, + defaultPollInterval, activationResponse, context); + } + + /** + * Gets the final result, or an error, based on last async poll response. + * + * @param response the last async poll response. + * @param type of poll result. + * @param type of final result. + * @return the final result, or an error. + */ + public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) { + if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) { + String errorMessage; + ManagementError managementError = null; + HttpResponse errorResponse = null; + PollResult.Error lroError = response.getValue().getError(); + if (lroError != null) { + errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(), + lroError.getResponseBody()); + + errorMessage = response.getValue().getError().getMessage(); + String errorBody = response.getValue().getError().getResponseBody(); + if (errorBody != null) { + // try to deserialize error body to ManagementError + try { + managementError = this.getSerializerAdapter() + .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON); + if (managementError.getCode() == null || managementError.getMessage() == null) { + managementError = null; + } + } catch (IOException | RuntimeException ioe) { + LOGGER.logThrowableAsWarning(ioe); + } + } + } else { + // fallback to default error message + errorMessage = "Long running operation failed."; + } + if (managementError == null) { + // fallback to default ManagementError + managementError = new ManagementError(response.getStatus().toString(), errorMessage); + } + return Mono.error(new ManagementException(errorMessage, errorResponse, managementError)); + } else { + return response.getFinalResult(); + } + } + + private static final class HttpResponseImpl extends HttpResponse { + private final int statusCode; + + private final byte[] responseBody; + + private final HttpHeaders httpHeaders; + + HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) { + super(null); + this.statusCode = statusCode; + this.httpHeaders = httpHeaders; + this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8); + } + + public int getStatusCode() { + return statusCode; + } + + public String getHeaderValue(String s) { + return httpHeaders.getValue(HttpHeaderName.fromString(s)); + } + + public HttpHeaders getHeaders() { + return httpHeaders; + } + + public Flux getBody() { + return Flux.just(ByteBuffer.wrap(responseBody)); + } + + public Mono getBodyAsByteArray() { + return Mono.just(responseBody); + } + + public Mono getBodyAsString() { + return Mono.just(new String(responseBody, StandardCharsets.UTF_8)); + } + + public Mono getBodyAsString(Charset charset) { + return Mono.just(new String(responseBody, charset)); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ConnectedCacheManagementClientImpl.class); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsClientImpl.java new file mode 100644 index 0000000000000..bb3bffc86700e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsClientImpl.java @@ -0,0 +1,1126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseCustomerOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.implementation.models.EnterprisePreviewResourceListResult; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in EnterpriseCustomerOperationsClient. + */ +public final class EnterpriseCustomerOperationsClientImpl implements EnterpriseCustomerOperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final EnterpriseCustomerOperationsService service; + + /** + * The service client containing this operation class. + */ + private final ConnectedCacheManagementClientImpl client; + + /** + * Initializes an instance of EnterpriseCustomerOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + EnterpriseCustomerOperationsClientImpl(ConnectedCacheManagementClientImpl client) { + this.service = RestProxy.create(EnterpriseCustomerOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ConnectedCacheManagementClientEnterpriseCustomerOperations to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ConnectedCacheManage") + public interface EnterpriseCustomerOperationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") EnterprisePreviewResourceInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") + @ExpectedResponses({ 200, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseCustomers") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context); + } + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, + String customerResourceName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterprisePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName) { + return getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, EnterprisePreviewResourceInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, EnterprisePreviewResourceInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, EnterprisePreviewResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, + EnterprisePreviewResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EnterprisePreviewResourceInner.class, EnterprisePreviewResourceInner.class, + this.client.getContext()); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, EnterprisePreviewResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, + EnterprisePreviewResourceInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EnterprisePreviewResourceInner.class, EnterprisePreviewResourceInner.class, + context); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).getSyncPoller(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource, + Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context) + .getSyncPoller(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String customerResourceName, EnterprisePreviewResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String customerResourceName, EnterprisePreviewResourceInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterprisePreviewResourceInner resource) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, resource).block(); + } + + /** + * Creates a cacheNodes with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterprisePreviewResourceInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).block(); + } + + /** + * updates an existing enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * updates an existing enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, contentType, accept, properties, context); + } + + /** + * updates an existing enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * updates an existing enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties, context).block(); + } + + /** + * updates an existing enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterprisePreviewResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponse(resourceGroupName, customerResourceName, properties, Context.NONE).getValue(); + } + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, accept, context); + } + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName) { + return deleteWithResponseAsync(resourceGroupName, customerResourceName).flatMap(ignored -> Mono.empty()); + } + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context) { + return deleteWithResponseAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName) { + deleteWithResponse(resourceGroupName, customerResourceName, Context.NONE); + } + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, + Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsImpl.java new file mode 100644 index 0000000000000..faa777dceeb70 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsImpl.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseCustomerOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.models.EnterpriseCustomerOperations; +import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; + +public final class EnterpriseCustomerOperationsImpl implements EnterpriseCustomerOperations { + private static final ClientLogger LOGGER = new ClientLogger(EnterpriseCustomerOperationsImpl.class); + + private final EnterpriseCustomerOperationsClient innerClient; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public EnterpriseCustomerOperationsImpl(EnterpriseCustomerOperationsClient innerClient, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new EnterprisePreviewResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public EnterprisePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName) { + EnterprisePreviewResourceInner inner + = this.serviceClient().getByResourceGroup(resourceGroupName, customerResourceName); + if (inner != null) { + return new EnterprisePreviewResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, + Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, customerResourceName, context); + } + + public void deleteByResourceGroup(String resourceGroupName, String customerResourceName) { + this.serviceClient().delete(resourceGroupName, customerResourceName); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); + } + + public EnterprisePreviewResource getById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + } + + public void deleteById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); + } + this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE); + } + + public Response deleteByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); + } + return this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + } + + private EnterpriseCustomerOperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + public EnterprisePreviewResourceImpl define(String name) { + return new EnterprisePreviewResourceImpl(name, this.manager()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java new file mode 100644 index 0000000000000..055a253cd86c0 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java @@ -0,0 +1,204 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; +import java.util.Collections; +import java.util.Map; + +public final class EnterpriseMccCacheNodeResourceImpl implements EnterpriseMccCacheNodeResource, + EnterpriseMccCacheNodeResource.Definition, EnterpriseMccCacheNodeResource.Update { + private EnterpriseMccCacheNodeResourceInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public CacheNodeProperty properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public EnterpriseMccCacheNodeResourceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String customerResourceName; + + private String cacheNodeResourceName; + + private ConnectedCachePatchResource updateProperties; + + public EnterpriseMccCacheNodeResourceImpl withExistingEnterpriseMccCustomer(String resourceGroupName, + String customerResourceName) { + this.resourceGroupName = resourceGroupName; + this.customerResourceName = customerResourceName; + return this; + } + + public EnterpriseMccCacheNodeResource create() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCacheNodesOperations() + .createOrUpdate(resourceGroupName, customerResourceName, cacheNodeResourceName, this.innerModel(), + Context.NONE); + return this; + } + + public EnterpriseMccCacheNodeResource create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCacheNodesOperations() + .createOrUpdate(resourceGroupName, customerResourceName, cacheNodeResourceName, this.innerModel(), context); + return this; + } + + EnterpriseMccCacheNodeResourceImpl(String name, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = new EnterpriseMccCacheNodeResourceInner(); + this.serviceManager = serviceManager; + this.cacheNodeResourceName = name; + } + + public EnterpriseMccCacheNodeResourceImpl update() { + this.updateProperties = new ConnectedCachePatchResource(); + return this; + } + + public EnterpriseMccCacheNodeResource apply() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCacheNodesOperations() + .updateWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, updateProperties, + Context.NONE) + .getValue(); + return this; + } + + public EnterpriseMccCacheNodeResource apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCacheNodesOperations() + .updateWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, updateProperties, + context) + .getValue(); + return this; + } + + EnterpriseMccCacheNodeResourceImpl(EnterpriseMccCacheNodeResourceInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.customerResourceName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "enterpriseMccCustomers"); + this.cacheNodeResourceName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "enterpriseMccCacheNodes"); + } + + public EnterpriseMccCacheNodeResource refresh() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCacheNodesOperations() + .getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE) + .getValue(); + return this; + } + + public EnterpriseMccCacheNodeResource refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCacheNodesOperations() + .getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context) + .getValue(); + return this; + } + + public Response getCacheNodeInstallDetailsWithResponse(Context context) { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + } + + public MccCacheNodeInstallDetails getCacheNodeInstallDetails() { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeInstallDetails(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public EnterpriseMccCacheNodeResourceImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public EnterpriseMccCacheNodeResourceImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public EnterpriseMccCacheNodeResourceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public EnterpriseMccCacheNodeResourceImpl withProperties(CacheNodeProperty properties) { + this.innerModel().withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java new file mode 100644 index 0000000000000..9caac8b8afd03 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java @@ -0,0 +1,1309 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.implementation.models.EnterpriseMccCacheNodeResourceListResult; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in EnterpriseMccCacheNodesOperationsClient. + */ +public final class EnterpriseMccCacheNodesOperationsClientImpl implements EnterpriseMccCacheNodesOperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final EnterpriseMccCacheNodesOperationsService service; + + /** + * The service client containing this operation class. + */ + private final ConnectedCacheManagementClientImpl client; + + /** + * Initializes an instance of EnterpriseMccCacheNodesOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + EnterpriseMccCacheNodesOperationsClientImpl(ConnectedCacheManagementClientImpl client) { + this.service = RestProxy.create(EnterpriseMccCacheNodesOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ConnectedCacheManagementClientEnterpriseMccCacheNodesOperations to be + * used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ConnectedCacheManage") + public interface EnterpriseMccCacheNodesOperationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") EnterpriseMccCacheNodeResourceInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByEnterpriseMccCustomerResource( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getCacheNodeInstallDetails( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByEnterpriseMccCustomerResourceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, cacheNodeResourceName, accept, context); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return getWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + return getWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context).block(); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCacheNodeResourceInner get(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE).getValue(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, + contentType, accept, resource, context); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, EnterpriseMccCacheNodeResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + EnterpriseMccCacheNodeResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EnterpriseMccCacheNodeResourceInner.class, + EnterpriseMccCacheNodeResourceInner.class, this.client.getContext()); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, EnterpriseMccCacheNodeResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + EnterpriseMccCacheNodeResourceInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EnterpriseMccCacheNodeResourceInner.class, + EnterpriseMccCacheNodeResourceInner.class, context); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, EnterpriseMccCacheNodeResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + EnterpriseMccCacheNodeResourceInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource) + .getSyncPoller(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, EnterpriseMccCacheNodeResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + EnterpriseMccCacheNodeResourceInner resource, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource, context) + .getSyncPoller(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource, + Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource, + context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource).block(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, EnterpriseMccCacheNodeResourceInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource, context) + .block(); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, ConnectedCachePatchResource properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, ConnectedCachePatchResource properties, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, cacheNodeResourceName, contentType, accept, properties, context); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, ConnectedCachePatchResource properties, + Context context) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, properties, + context).block(); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCacheNodeResourceInner update(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties) { + return updateWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, properties, + Context.NONE).getValue(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, cacheNodeResourceName, accept, context); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName).getSyncPoller(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context) + .getSyncPoller(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + Context context) { + return beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + deleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName).block(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + Context context) { + deleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context).block(); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByEnterpriseMccCustomerResourceSinglePageAsync(String resourceGroupName, String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByEnterpriseMccCustomerResource(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByEnterpriseMccCustomerResourceSinglePageAsync( + String resourceGroupName, String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByEnterpriseMccCustomerResource(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux + listByEnterpriseMccCustomerResourceAsync(String resourceGroupName, String customerResourceName) { + return new PagedFlux<>( + () -> listByEnterpriseMccCustomerResourceSinglePageAsync(resourceGroupName, customerResourceName), + nextLink -> listByEnterpriseMccCustomerResourceNextSinglePageAsync(nextLink)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByEnterpriseMccCustomerResourceAsync( + String resourceGroupName, String customerResourceName, Context context) { + return new PagedFlux<>( + () -> listByEnterpriseMccCustomerResourceSinglePageAsync(resourceGroupName, customerResourceName, context), + nextLink -> listByEnterpriseMccCustomerResourceNextSinglePageAsync(nextLink, context)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable + listByEnterpriseMccCustomerResource(String resourceGroupName, String customerResourceName) { + return new PagedIterable<>(listByEnterpriseMccCustomerResourceAsync(resourceGroupName, customerResourceName)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable + listByEnterpriseMccCustomerResource(String resourceGroupName, String customerResourceName, Context context) { + return new PagedIterable<>( + listByEnterpriseMccCustomerResourceAsync(resourceGroupName, customerResourceName, context)); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeInstallDetailsWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getCacheNodeInstallDetails(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + cacheNodeResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeInstallDetailsWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getCacheNodeInstallDetails(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getCacheNodeInstallDetailsAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeInstallDetailsWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + return getCacheNodeInstallDetailsWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, context).block(); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeInstallDetailsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByEnterpriseMccCustomerResourceNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByEnterpriseMccCustomerResourceNext(nextLink, this.client.getEndpoint(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByEnterpriseMccCustomerResourceNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByEnterpriseMccCustomerResourceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java new file mode 100644 index 0000000000000..7650a2f61b760 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodesOperations; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; + +public final class EnterpriseMccCacheNodesOperationsImpl implements EnterpriseMccCacheNodesOperations { + private static final ClientLogger LOGGER = new ClientLogger(EnterpriseMccCacheNodesOperationsImpl.class); + + private final EnterpriseMccCacheNodesOperationsClient innerClient; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public EnterpriseMccCacheNodesOperationsImpl(EnterpriseMccCacheNodesOperationsClient innerClient, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new EnterpriseMccCacheNodeResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public EnterpriseMccCacheNodeResource get(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + EnterpriseMccCacheNodeResourceInner inner + = this.serviceClient().get(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new EnterpriseMccCacheNodeResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + this.serviceClient().delete(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + Context context) { + this.serviceClient().delete(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + } + + public PagedIterable listByEnterpriseMccCustomerResource(String resourceGroupName, + String customerResourceName) { + PagedIterable inner + = this.serviceClient().listByEnterpriseMccCustomerResource(resourceGroupName, customerResourceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new EnterpriseMccCacheNodeResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByEnterpriseMccCustomerResource(String resourceGroupName, + String customerResourceName, Context context) { + PagedIterable inner = this.serviceClient() + .listByEnterpriseMccCustomerResource(resourceGroupName, customerResourceName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new EnterpriseMccCacheNodeResourceImpl(inner1, this.manager())); + } + + public Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getCacheNodeInstallDetailsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeInstallDetailsImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + MccCacheNodeInstallDetailsInner inner = this.serviceClient() + .getCacheNodeInstallDetails(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeInstallDetailsImpl(inner, this.manager()); + } else { + return null; + } + } + + public EnterpriseMccCacheNodeResource getById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCacheNodes'.", id))); + } + return this.getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCacheNodes'.", id))); + } + return this.getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + } + + public void deleteById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCacheNodes'.", id))); + } + this.delete(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCacheNodes'.", id))); + } + this.delete(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + } + + private EnterpriseMccCacheNodesOperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + public EnterpriseMccCacheNodeResourceImpl define(String name) { + return new EnterpriseMccCacheNodeResourceImpl(name, this.manager()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomerResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomerResourceImpl.java new file mode 100644 index 0000000000000..aafe688d8cf66 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomerResourceImpl.java @@ -0,0 +1,182 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomerResource; +import java.util.Collections; +import java.util.Map; + +public final class EnterpriseMccCustomerResourceImpl implements EnterpriseMccCustomerResource, + EnterpriseMccCustomerResource.Definition, EnterpriseMccCustomerResource.Update { + private EnterpriseMccCustomerResourceInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public CustomerProperty properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public EnterpriseMccCustomerResourceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String customerResourceName; + + private ConnectedCachePatchResource updateProperties; + + public EnterpriseMccCustomerResourceImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public EnterpriseMccCustomerResource create() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCustomers() + .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), Context.NONE); + return this; + } + + public EnterpriseMccCustomerResource create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCustomers() + .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), context); + return this; + } + + EnterpriseMccCustomerResourceImpl(String name, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = new EnterpriseMccCustomerResourceInner(); + this.serviceManager = serviceManager; + this.customerResourceName = name; + } + + public EnterpriseMccCustomerResourceImpl update() { + this.updateProperties = new ConnectedCachePatchResource(); + return this; + } + + public EnterpriseMccCustomerResource apply() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCustomers() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, Context.NONE) + .getValue(); + return this; + } + + public EnterpriseMccCustomerResource apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCustomers() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, context) + .getValue(); + return this; + } + + EnterpriseMccCustomerResourceImpl(EnterpriseMccCustomerResourceInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.customerResourceName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "enterpriseMccCustomers"); + } + + public EnterpriseMccCustomerResource refresh() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCustomers() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE) + .getValue(); + return this; + } + + public EnterpriseMccCustomerResource refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseMccCustomers() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context) + .getValue(); + return this; + } + + public EnterpriseMccCustomerResourceImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public EnterpriseMccCustomerResourceImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public EnterpriseMccCustomerResourceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public EnterpriseMccCustomerResourceImpl withProperties(CustomerProperty properties) { + this.innerModel().withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersClientImpl.java new file mode 100644 index 0000000000000..bdc5d947d60de --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersClientImpl.java @@ -0,0 +1,1242 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCustomersClient; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.implementation.models.EnterpriseMccCustomerResourceListResult; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in EnterpriseMccCustomersClient. + */ +public final class EnterpriseMccCustomersClientImpl implements EnterpriseMccCustomersClient { + /** + * The proxy service used to perform REST calls. + */ + private final EnterpriseMccCustomersService service; + + /** + * The service client containing this operation class. + */ + private final ConnectedCacheManagementClientImpl client; + + /** + * Initializes an instance of EnterpriseMccCustomersClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + EnterpriseMccCustomersClientImpl(ConnectedCacheManagementClientImpl client) { + this.service = RestProxy.create(EnterpriseMccCustomersService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ConnectedCacheManagementClientEnterpriseMccCustomers to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ConnectedCacheManage") + public interface EnterpriseMccCustomersService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") EnterpriseMccCustomerResourceInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + getByResourceGroupWithResponseAsync(String resourceGroupName, String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + getByResourceGroupWithResponseAsync(String resourceGroupName, String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context); + } + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, + String customerResourceName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCustomerResourceInner getByResourceGroup(String resourceGroupName, + String customerResourceName) { + return getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, EnterpriseMccCustomerResourceInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, EnterpriseMccCustomerResourceInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, EnterpriseMccCustomerResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EnterpriseMccCustomerResourceInner.class, + EnterpriseMccCustomerResourceInner.class, this.client.getContext()); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, EnterpriseMccCustomerResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EnterpriseMccCustomerResourceInner.class, + EnterpriseMccCustomerResourceInner.class, context); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, EnterpriseMccCustomerResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).getSyncPoller(); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, EnterpriseMccCustomerResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context) + .getSyncPoller(); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String customerResourceName, EnterpriseMccCustomerResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String customerResourceName, EnterpriseMccCustomerResourceInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, resource).block(); + } + + /** + * This api creates an enterprise mcc customer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + EnterpriseMccCustomerResourceInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).block(); + } + + /** + * This api updates an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api updates an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, contentType, accept, properties, context); + } + + /** + * This api updates an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api updates an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties, context).block(); + } + + /** + * This api updates an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EnterpriseMccCustomerResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponse(resourceGroupName, customerResourceName, properties, Context.NONE).getValue(); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, accept, context); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, customerResourceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, customerResourceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName).getSyncPoller(); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName, context).getSyncPoller(); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName) { + return beginDeleteAsync(resourceGroupName, customerResourceName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName, Context context) { + return beginDeleteAsync(resourceGroupName, customerResourceName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName) { + deleteAsync(resourceGroupName, customerResourceName).block(); + } + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName, Context context) { + deleteAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, + Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersImpl.java new file mode 100644 index 0000000000000..9e80b81119d84 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCustomersImpl.java @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCustomersClient; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomerResource; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomers; + +public final class EnterpriseMccCustomersImpl implements EnterpriseMccCustomers { + private static final ClientLogger LOGGER = new ClientLogger(EnterpriseMccCustomersImpl.class); + + private final EnterpriseMccCustomersClient innerClient; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public EnterpriseMccCustomersImpl(EnterpriseMccCustomersClient innerClient, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new EnterpriseMccCustomerResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public EnterpriseMccCustomerResource getByResourceGroup(String resourceGroupName, String customerResourceName) { + EnterpriseMccCustomerResourceInner inner + = this.serviceClient().getByResourceGroup(resourceGroupName, customerResourceName); + if (inner != null) { + return new EnterpriseMccCustomerResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String customerResourceName) { + this.serviceClient().delete(resourceGroupName, customerResourceName); + } + + public void delete(String resourceGroupName, String customerResourceName, Context context) { + this.serviceClient().delete(resourceGroupName, customerResourceName, context); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new EnterpriseMccCustomerResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new EnterpriseMccCustomerResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new EnterpriseMccCustomerResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new EnterpriseMccCustomerResourceImpl(inner1, this.manager())); + } + + public EnterpriseMccCustomerResource getById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + } + + public void deleteById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + this.delete(resourceGroupName, customerResourceName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseMccCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'enterpriseMccCustomers'.", id))); + } + this.delete(resourceGroupName, customerResourceName, context); + } + + private EnterpriseMccCustomersClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + public EnterpriseMccCustomerResourceImpl define(String name) { + return new EnterpriseMccCustomerResourceImpl(name, this.manager()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterprisePreviewResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterprisePreviewResourceImpl.java new file mode 100644 index 0000000000000..36f68913a31c1 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterprisePreviewResourceImpl.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; +import java.util.Collections; +import java.util.Map; + +public final class EnterprisePreviewResourceImpl + implements EnterprisePreviewResource, EnterprisePreviewResource.Definition, EnterprisePreviewResource.Update { + private EnterprisePreviewResourceInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public CacheNodeOldResponse properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public EnterprisePreviewResourceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String customerResourceName; + + private ConnectedCachePatchResource updateProperties; + + public EnterprisePreviewResourceImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public EnterprisePreviewResource create() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseCustomerOperations() + .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), Context.NONE); + return this; + } + + public EnterprisePreviewResource create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseCustomerOperations() + .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), context); + return this; + } + + EnterprisePreviewResourceImpl(String name, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = new EnterprisePreviewResourceInner(); + this.serviceManager = serviceManager; + this.customerResourceName = name; + } + + public EnterprisePreviewResourceImpl update() { + this.updateProperties = new ConnectedCachePatchResource(); + return this; + } + + public EnterprisePreviewResource apply() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseCustomerOperations() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, Context.NONE) + .getValue(); + return this; + } + + public EnterprisePreviewResource apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseCustomerOperations() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, context) + .getValue(); + return this; + } + + EnterprisePreviewResourceImpl(EnterprisePreviewResourceInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.customerResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "enterpriseCustomers"); + } + + public EnterprisePreviewResource refresh() { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseCustomerOperations() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE) + .getValue(); + return this; + } + + public EnterprisePreviewResource refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEnterpriseCustomerOperations() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context) + .getValue(); + return this; + } + + public EnterprisePreviewResourceImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public EnterprisePreviewResourceImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public EnterprisePreviewResourceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public EnterprisePreviewResourceImpl withProperties(CacheNodeOldResponse properties) { + this.innerModel().withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java new file mode 100644 index 0000000000000..8e8087626dec8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeBgpCidrDetails; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; +import java.util.Collections; +import java.util.Map; + +public final class IspCacheNodeResourceImpl + implements IspCacheNodeResource, IspCacheNodeResource.Definition, IspCacheNodeResource.Update { + private IspCacheNodeResourceInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public CacheNodeProperty properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public IspCacheNodeResourceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String customerResourceName; + + private String cacheNodeResourceName; + + private ConnectedCachePatchResource updateProperties; + + public IspCacheNodeResourceImpl withExistingIspCustomer(String resourceGroupName, String customerResourceName) { + this.resourceGroupName = resourceGroupName; + this.customerResourceName = customerResourceName; + return this; + } + + public IspCacheNodeResource create() { + this.innerObject = serviceManager.serviceClient() + .getIspCacheNodesOperations() + .createOrUpdate(resourceGroupName, customerResourceName, cacheNodeResourceName, this.innerModel(), + Context.NONE); + return this; + } + + public IspCacheNodeResource create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIspCacheNodesOperations() + .createOrUpdate(resourceGroupName, customerResourceName, cacheNodeResourceName, this.innerModel(), context); + return this; + } + + IspCacheNodeResourceImpl(String name, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = new IspCacheNodeResourceInner(); + this.serviceManager = serviceManager; + this.cacheNodeResourceName = name; + } + + public IspCacheNodeResourceImpl update() { + this.updateProperties = new ConnectedCachePatchResource(); + return this; + } + + public IspCacheNodeResource apply() { + this.innerObject = serviceManager.serviceClient() + .getIspCacheNodesOperations() + .updateWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, updateProperties, + Context.NONE) + .getValue(); + return this; + } + + public IspCacheNodeResource apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIspCacheNodesOperations() + .updateWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, updateProperties, + context) + .getValue(); + return this; + } + + IspCacheNodeResourceImpl(IspCacheNodeResourceInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.customerResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "ispCustomers"); + this.cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "ispCacheNodes"); + } + + public IspCacheNodeResource refresh() { + this.innerObject = serviceManager.serviceClient() + .getIspCacheNodesOperations() + .getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE) + .getValue(); + return this; + } + + public IspCacheNodeResource refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIspCacheNodesOperations() + .getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context) + .getValue(); + return this; + } + + public Response getBgpCidrsWithResponse(Context context) { + return serviceManager.ispCacheNodesOperations() + .getBgpCidrsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + } + + public MccCacheNodeBgpCidrDetails getBgpCidrs() { + return serviceManager.ispCacheNodesOperations() + .getBgpCidrs(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public Response getCacheNodeInstallDetailsWithResponse(Context context) { + return serviceManager.ispCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + } + + public MccCacheNodeInstallDetails getCacheNodeInstallDetails() { + return serviceManager.ispCacheNodesOperations() + .getCacheNodeInstallDetails(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public IspCacheNodeResourceImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public IspCacheNodeResourceImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public IspCacheNodeResourceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public IspCacheNodeResourceImpl withProperties(CacheNodeProperty properties) { + this.innerModel().withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java new file mode 100644 index 0000000000000..6c511eb0a5487 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java @@ -0,0 +1,1454 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.IspCacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.implementation.models.IspCacheNodeResourceListResult; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in IspCacheNodesOperationsClient. + */ +public final class IspCacheNodesOperationsClientImpl implements IspCacheNodesOperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final IspCacheNodesOperationsService service; + + /** + * The service client containing this operation class. + */ + private final ConnectedCacheManagementClientImpl client; + + /** + * Initializes an instance of IspCacheNodesOperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + IspCacheNodesOperationsClientImpl(ConnectedCacheManagementClientImpl client) { + this.service = RestProxy.create(IspCacheNodesOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ConnectedCacheManagementClientIspCacheNodesOperations to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ConnectedCacheManage") + public interface IspCacheNodesOperationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") IspCacheNodeResourceInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByIspCustomerResource(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getBgpCidrs") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getBgpCidrs(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getCacheNodeInstallDetails( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByIspCustomerResourceNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, cacheNodeResourceName, accept, context); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return getWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context) { + return getWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context).block(); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCacheNodeResourceInner get(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE).getValue(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, IspCacheNodeResourceInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, IspCacheNodeResourceInner resource, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, + contentType, accept, resource, context); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, IspCacheNodeResourceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + IspCacheNodeResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IspCacheNodeResourceInner.class, IspCacheNodeResourceInner.class, + this.client.getContext()); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, IspCacheNodeResourceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + IspCacheNodeResourceInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IspCacheNodeResourceInner.class, IspCacheNodeResourceInner.class, context); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, IspCacheNodeResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + IspCacheNodeResourceInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource) + .getSyncPoller(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision cache node + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, IspCacheNodeResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + IspCacheNodeResourceInner resource, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource, context) + .getSyncPoller(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, IspCacheNodeResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, IspCacheNodeResourceInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource, + context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, IspCacheNodeResourceInner resource) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource).block(); + } + + /** + * This api creates an ispCacheNode with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCacheNodeResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, IspCacheNodeResourceInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, resource, context) + .block(); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, ConnectedCachePatchResource properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, ConnectedCachePatchResource properties, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, cacheNodeResourceName, contentType, accept, properties, context); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties, Context context) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, properties, + context).block(); + } + + /** + * This api updates an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCacheNodeResourceInner update(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, ConnectedCachePatchResource properties) { + return updateWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, properties, + Context.NONE).getValue(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, cacheNodeResourceName, accept, context); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName).getSyncPoller(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context) + .getSyncPoller(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + Context context) { + return beginDeleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + deleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName).block(); + } + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + Context context) { + deleteAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context).block(); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByIspCustomerResourceSinglePageAsync(String resourceGroupName, String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByIspCustomerResource(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByIspCustomerResourceSinglePageAsync( + String resourceGroupName, String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByIspCustomerResource(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByIspCustomerResourceAsync(String resourceGroupName, + String customerResourceName) { + return new PagedFlux<>(() -> listByIspCustomerResourceSinglePageAsync(resourceGroupName, customerResourceName), + nextLink -> listByIspCustomerResourceNextSinglePageAsync(nextLink)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByIspCustomerResourceAsync(String resourceGroupName, + String customerResourceName, Context context) { + return new PagedFlux<>( + () -> listByIspCustomerResourceSinglePageAsync(resourceGroupName, customerResourceName, context), + nextLink -> listByIspCustomerResourceNextSinglePageAsync(nextLink, context)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByIspCustomerResource(String resourceGroupName, + String customerResourceName) { + return new PagedIterable<>(listByIspCustomerResourceAsync(resourceGroupName, customerResourceName)); + } + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByIspCustomerResource(String resourceGroupName, + String customerResourceName, Context context) { + return new PagedIterable<>(listByIspCustomerResourceAsync(resourceGroupName, customerResourceName, context)); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getBgpCidrsWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getBgpCidrs(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getBgpCidrsWithResponseAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getBgpCidrs(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getBgpCidrsAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getBgpCidrsWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getBgpCidrsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + return getBgpCidrsWithResponseAsync(resourceGroupName, customerResourceName, cacheNodeResourceName, context) + .block(); + } + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeBgpCidrDetailsInner getBgpCidrs(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + return getBgpCidrsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE) + .getValue(); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeInstallDetailsWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getCacheNodeInstallDetails(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + cacheNodeResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeInstallDetailsWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getCacheNodeInstallDetails(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getCacheNodeInstallDetailsAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeInstallDetailsWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + return getCacheNodeInstallDetailsWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, context).block(); + } + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeInstallDetailsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByIspCustomerResourceNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByIspCustomerResourceNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByIspCustomerResourceNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByIspCustomerResourceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java new file mode 100644 index 0000000000000..582fbdbd96a97 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java @@ -0,0 +1,215 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.IspCacheNodesOperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; +import com.azure.resourcemanager.connectedcache.models.IspCacheNodesOperations; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeBgpCidrDetails; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; + +public final class IspCacheNodesOperationsImpl implements IspCacheNodesOperations { + private static final ClientLogger LOGGER = new ClientLogger(IspCacheNodesOperationsImpl.class); + + private final IspCacheNodesOperationsClient innerClient; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public IspCacheNodesOperationsImpl(IspCacheNodesOperationsClient innerClient, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new IspCacheNodeResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public IspCacheNodeResource get(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + IspCacheNodeResourceInner inner + = this.serviceClient().get(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new IspCacheNodeResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + this.serviceClient().delete(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, + Context context) { + this.serviceClient().delete(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + } + + public PagedIterable listByIspCustomerResource(String resourceGroupName, + String customerResourceName) { + PagedIterable inner + = this.serviceClient().listByIspCustomerResource(resourceGroupName, customerResourceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IspCacheNodeResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByIspCustomerResource(String resourceGroupName, + String customerResourceName, Context context) { + PagedIterable inner + = this.serviceClient().listByIspCustomerResource(resourceGroupName, customerResourceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IspCacheNodeResourceImpl(inner1, this.manager())); + } + + public Response getBgpCidrsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getBgpCidrsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeBgpCidrDetailsImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeBgpCidrDetails getBgpCidrs(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + MccCacheNodeBgpCidrDetailsInner inner + = this.serviceClient().getBgpCidrs(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeBgpCidrDetailsImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getCacheNodeInstallDetailsWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeInstallDetailsImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName) { + MccCacheNodeInstallDetailsInner inner = this.serviceClient() + .getCacheNodeInstallDetails(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeInstallDetailsImpl(inner, this.manager()); + } else { + return null; + } + } + + public IspCacheNodeResource getById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCacheNodes'.", id))); + } + return this.getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCacheNodes'.", id))); + } + return this.getWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + } + + public void deleteById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCacheNodes'.", id))); + } + this.delete(resourceGroupName, customerResourceName, cacheNodeResourceName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + String cacheNodeResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCacheNodes"); + if (cacheNodeResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCacheNodes'.", id))); + } + this.delete(resourceGroupName, customerResourceName, cacheNodeResourceName, context); + } + + private IspCacheNodesOperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + public IspCacheNodeResourceImpl define(String name) { + return new IspCacheNodeResourceImpl(name, this.manager()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomerResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomerResourceImpl.java new file mode 100644 index 0000000000000..626de5b0ddc14 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomerResourceImpl.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import com.azure.resourcemanager.connectedcache.models.IspCustomerResource; +import java.util.Collections; +import java.util.Map; + +public final class IspCustomerResourceImpl + implements IspCustomerResource, IspCustomerResource.Definition, IspCustomerResource.Update { + private IspCustomerResourceInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public CustomerProperty properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public IspCustomerResourceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String customerResourceName; + + private ConnectedCachePatchResource updateProperties; + + public IspCustomerResourceImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public IspCustomerResource create() { + this.innerObject = serviceManager.serviceClient() + .getIspCustomers() + .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), Context.NONE); + return this; + } + + public IspCustomerResource create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIspCustomers() + .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), context); + return this; + } + + IspCustomerResourceImpl(String name, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = new IspCustomerResourceInner(); + this.serviceManager = serviceManager; + this.customerResourceName = name; + } + + public IspCustomerResourceImpl update() { + this.updateProperties = new ConnectedCachePatchResource(); + return this; + } + + public IspCustomerResource apply() { + this.innerObject = serviceManager.serviceClient() + .getIspCustomers() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, Context.NONE) + .getValue(); + return this; + } + + public IspCustomerResource apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIspCustomers() + .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, context) + .getValue(); + return this; + } + + IspCustomerResourceImpl(IspCustomerResourceInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.customerResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "ispCustomers"); + } + + public IspCustomerResource refresh() { + this.innerObject = serviceManager.serviceClient() + .getIspCustomers() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE) + .getValue(); + return this; + } + + public IspCustomerResource refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIspCustomers() + .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context) + .getValue(); + return this; + } + + public IspCustomerResourceImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public IspCustomerResourceImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public IspCustomerResourceImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public IspCustomerResourceImpl withProperties(CustomerProperty properties) { + this.innerModel().withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersClientImpl.java new file mode 100644 index 0000000000000..7a1a09015b2c9 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersClientImpl.java @@ -0,0 +1,1215 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.connectedcache.fluent.IspCustomersClient; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.implementation.models.IspCustomerResourceListResult; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in IspCustomersClient. + */ +public final class IspCustomersClientImpl implements IspCustomersClient { + /** + * The proxy service used to perform REST calls. + */ + private final IspCustomersService service; + + /** + * The service client containing this operation class. + */ + private final ConnectedCacheManagementClientImpl client; + + /** + * Initializes an instance of IspCustomersClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + IspCustomersClientImpl(ConnectedCacheManagementClientImpl client) { + this.service + = RestProxy.create(IspCustomersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ConnectedCacheManagementClientIspCustomers to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ConnectedCacheManage") + public interface IspCustomersService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") IspCustomerResourceInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/ispCustomers") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context); + } + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, + String customerResourceName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCustomerResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName) { + return getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, IspCustomerResourceInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String customerResourceName, IspCustomerResourceInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, + context); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision isp customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, IspCustomerResourceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String customerResourceName, IspCustomerResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IspCustomerResourceInner.class, IspCustomerResourceInner.class, + this.client.getContext()); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the high level Nodes needed to provision isp customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, IspCustomerResourceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String customerResourceName, IspCustomerResourceInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IspCustomerResourceInner.class, IspCustomerResourceInner.class, context); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision isp customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, IspCustomerResourceInner> + beginCreateOrUpdate(String resourceGroupName, String customerResourceName, IspCustomerResourceInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).getSyncPoller(); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the high level Nodes needed to provision isp customer + * resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, IspCustomerResourceInner> beginCreateOrUpdate( + String resourceGroupName, String customerResourceName, IspCustomerResourceInner resource, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context) + .getSyncPoller(); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String customerResourceName, + IspCustomerResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String customerResourceName, + IspCustomerResourceInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + IspCustomerResourceInner resource) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, resource).block(); + } + + /** + * This api creates an ispCustomer with the specified create parameters. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCustomerResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, + IspCustomerResourceInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).block(); + } + + /** + * This api updates an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api updates an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String customerResourceName, ConnectedCachePatchResource properties, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, contentType, accept, properties, context); + } + + /** + * This api updates an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api updates an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties, Context context) { + return updateWithResponseAsync(resourceGroupName, customerResourceName, properties, context).block(); + } + + /** + * This api updates an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision isp customer resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IspCustomerResourceInner update(String resourceGroupName, String customerResourceName, + ConnectedCachePatchResource properties) { + return updateWithResponse(resourceGroupName, customerResourceName, properties, Context.NONE).getValue(); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String customerResourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, customerResourceName, accept, context); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, customerResourceName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String customerResourceName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, customerResourceName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName).getSyncPoller(); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String customerResourceName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, customerResourceName, context).getSyncPoller(); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName) { + return beginDeleteAsync(resourceGroupName, customerResourceName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String customerResourceName, Context context) { + return beginDeleteAsync(resourceGroupName, customerResourceName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName) { + deleteAsync(resourceGroupName, customerResourceName).block(); + } + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String customerResourceName, Context context) { + deleteAsync(resourceGroupName, customerResourceName, context).block(); + } + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersImpl.java new file mode 100644 index 0000000000000..de41235cb62c8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCustomersImpl.java @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.IspCustomersClient; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCustomerResourceInner; +import com.azure.resourcemanager.connectedcache.models.IspCustomerResource; +import com.azure.resourcemanager.connectedcache.models.IspCustomers; + +public final class IspCustomersImpl implements IspCustomers { + private static final ClientLogger LOGGER = new ClientLogger(IspCustomersImpl.class); + + private final IspCustomersClient innerClient; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public IspCustomersImpl(IspCustomersClient innerClient, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new IspCustomerResourceImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public IspCustomerResource getByResourceGroup(String resourceGroupName, String customerResourceName) { + IspCustomerResourceInner inner + = this.serviceClient().getByResourceGroup(resourceGroupName, customerResourceName); + if (inner != null) { + return new IspCustomerResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String customerResourceName) { + this.serviceClient().delete(resourceGroupName, customerResourceName); + } + + public void delete(String resourceGroupName, String customerResourceName, Context context) { + this.serviceClient().delete(resourceGroupName, customerResourceName, context); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IspCustomerResourceImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IspCustomerResourceImpl(inner1, this.manager())); + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IspCustomerResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IspCustomerResourceImpl(inner1, this.manager())); + } + + public IspCustomerResource getById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); + } + + public void deleteById(String id) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + this.delete(resourceGroupName, customerResourceName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "ispCustomers"); + if (customerResourceName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'ispCustomers'.", id))); + } + this.delete(resourceGroupName, customerResourceName, context); + } + + private IspCustomersClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } + + public IspCustomerResourceImpl define(String name) { + return new IspCustomerResourceImpl(name, this.manager()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeBgpCidrDetailsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeBgpCidrDetailsImpl.java new file mode 100644 index 0000000000000..32f52a19e118e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeBgpCidrDetailsImpl.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; +import com.azure.resourcemanager.connectedcache.models.BgpCidrsConfiguration; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeBgpCidrDetails; +import java.util.Collections; +import java.util.Map; + +public final class MccCacheNodeBgpCidrDetailsImpl implements MccCacheNodeBgpCidrDetails { + private MccCacheNodeBgpCidrDetailsInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + MccCacheNodeBgpCidrDetailsImpl(MccCacheNodeBgpCidrDetailsInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public BgpCidrsConfiguration properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MccCacheNodeBgpCidrDetailsInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeInstallDetailsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeInstallDetailsImpl.java new file mode 100644 index 0000000000000..c1707ec639a1d --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeInstallDetailsImpl.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.models.CacheNodeInstallProperties; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; +import java.util.Collections; +import java.util.Map; + +public final class MccCacheNodeInstallDetailsImpl implements MccCacheNodeInstallDetails { + private MccCacheNodeInstallDetailsInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + MccCacheNodeInstallDetailsImpl(MccCacheNodeInstallDetailsInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public CacheNodeInstallProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MccCacheNodeInstallDetailsInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationImpl.java new file mode 100644 index 0000000000000..34ba671831d02 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationImpl.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.resourcemanager.connectedcache.fluent.models.OperationInner; +import com.azure.resourcemanager.connectedcache.models.ActionType; +import com.azure.resourcemanager.connectedcache.models.Operation; +import com.azure.resourcemanager.connectedcache.models.OperationDisplay; +import com.azure.resourcemanager.connectedcache.models.Origin; + +public final class OperationImpl implements Operation { + private OperationInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + OperationImpl(OperationInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String name() { + return this.innerModel().name(); + } + + public Boolean isDataAction() { + return this.innerModel().isDataAction(); + } + + public OperationDisplay display() { + return this.innerModel().display(); + } + + public Origin origin() { + return this.innerModel().origin(); + } + + public ActionType actionType() { + return this.innerModel().actionType(); + } + + public OperationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsClientImpl.java new file mode 100644 index 0000000000000..d71b8f7c18ddb --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsClientImpl.java @@ -0,0 +1,235 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.connectedcache.fluent.OperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.OperationInner; +import com.azure.resourcemanager.connectedcache.implementation.models.OperationListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ +public final class OperationsClientImpl implements OperationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final OperationsService service; + + /** + * The service client containing this operation class. + */ + private final ConnectedCacheManagementClientImpl client; + + /** + * Initializes an instance of OperationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + OperationsClientImpl(ConnectedCacheManagementClientImpl client) { + this.service + = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ConnectedCacheManagementClientOperations to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ConnectedCacheManage") + public interface OperationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/providers/Microsoft.ConnectedCache/operations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * List the operations for the provider. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List the operations for the provider. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List the operations for the provider. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsImpl.java new file mode 100644 index 0000000000000..e2be440170d6b --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/OperationsImpl.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.connectedcache.fluent.OperationsClient; +import com.azure.resourcemanager.connectedcache.fluent.models.OperationInner; +import com.azure.resourcemanager.connectedcache.models.Operation; +import com.azure.resourcemanager.connectedcache.models.Operations; + +public final class OperationsImpl implements Operations { + private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class); + + private final OperationsClient innerClient; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + public OperationsImpl(OperationsClient innerClient, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + } + + private OperationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ResourceManagerUtils.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ResourceManagerUtils.java new file mode 100644 index 0000000000000..640ddb9f60113 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ResourceManagerUtils.java @@ -0,0 +1,195 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.util.CoreUtils; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; +import java.util.function.Function; +import java.util.stream.Collectors; +import java.util.stream.Stream; +import reactor.core.publisher.Flux; + +final class ResourceManagerUtils { + private ResourceManagerUtils() { + } + + static String getValueFromIdByName(String id, String name) { + if (id == null) { + return null; + } + Iterator itr = Arrays.stream(id.split("/")).iterator(); + while (itr.hasNext()) { + String part = itr.next(); + if (part != null && !part.trim().isEmpty()) { + if (part.equalsIgnoreCase(name)) { + if (itr.hasNext()) { + return itr.next(); + } else { + return null; + } + } + } + } + return null; + } + + static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) { + if (id == null || pathTemplate == null) { + return null; + } + String parameterNameParentheses = "{" + parameterName + "}"; + List idSegmentsReverted = Arrays.asList(id.split("/")); + List pathSegments = Arrays.asList(pathTemplate.split("/")); + Collections.reverse(idSegmentsReverted); + Iterator idItrReverted = idSegmentsReverted.iterator(); + int pathIndex = pathSegments.size(); + while (idItrReverted.hasNext() && pathIndex > 0) { + String idSegment = idItrReverted.next(); + String pathSegment = pathSegments.get(--pathIndex); + if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) { + if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) { + if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) { + List segments = new ArrayList<>(); + segments.add(idSegment); + idItrReverted.forEachRemaining(segments::add); + Collections.reverse(segments); + if (!segments.isEmpty() && segments.get(0).isEmpty()) { + segments.remove(0); + } + return String.join("/", segments); + } else { + return idSegment; + } + } + } + } + return null; + } + + static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { + return new PagedIterableImpl<>(pageIterable, mapper); + } + + private static final class PagedIterableImpl extends PagedIterable { + + private final PagedIterable pagedIterable; + private final Function mapper; + private final Function, PagedResponse> pageMapper; + + private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) { + super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux + .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); + this.pagedIterable = pagedIterable; + this.mapper = mapper; + this.pageMapper = getPageMapper(mapper); + } + + private static Function, PagedResponse> getPageMapper(Function mapper) { + return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(), + page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(), + null); + } + + @Override + public Stream stream() { + return pagedIterable.stream().map(mapper); + } + + @Override + public Stream> streamByPage() { + return pagedIterable.streamByPage().map(pageMapper); + } + + @Override + public Stream> streamByPage(String continuationToken) { + return pagedIterable.streamByPage(continuationToken).map(pageMapper); + } + + @Override + public Stream> streamByPage(int preferredPageSize) { + return pagedIterable.streamByPage(preferredPageSize).map(pageMapper); + } + + @Override + public Stream> streamByPage(String continuationToken, int preferredPageSize) { + return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper); + } + + @Override + public Iterator iterator() { + return new IteratorImpl<>(pagedIterable.iterator(), mapper); + } + + @Override + public Iterable> iterableByPage() { + return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper); + } + + @Override + public Iterable> iterableByPage(String continuationToken) { + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper); + } + + @Override + public Iterable> iterableByPage(int preferredPageSize) { + return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper); + } + + @Override + public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + } + } + + private static final class IteratorImpl implements Iterator { + + private final Iterator iterator; + private final Function mapper; + + private IteratorImpl(Iterator iterator, Function mapper) { + this.iterator = iterator; + this.mapper = mapper; + } + + @Override + public boolean hasNext() { + return iterator.hasNext(); + } + + @Override + public S next() { + return mapper.apply(iterator.next()); + } + + @Override + public void remove() { + iterator.remove(); + } + } + + private static final class IterableImpl implements Iterable { + + private final Iterable iterable; + private final Function mapper; + + private IterableImpl(Iterable iterable, Function mapper) { + this.iterable = iterable; + this.mapper = mapper; + } + + @Override + public Iterator iterator() { + return new IteratorImpl<>(iterable.iterator(), mapper); + } + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/CacheNodePreviewResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/CacheNodePreviewResourceListResult.java new file mode 100644 index 0000000000000..63738274974c8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/CacheNodePreviewResourceListResult.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a CacheNodePreviewResource list operation. + */ +@Immutable +public final class CacheNodePreviewResourceListResult implements JsonSerializable { + /* + * The CacheNodePreviewResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of CacheNodePreviewResourceListResult class. + */ + private CacheNodePreviewResourceListResult() { + } + + /** + * Get the value property: The CacheNodePreviewResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model CacheNodePreviewResourceListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(CacheNodePreviewResourceListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CacheNodePreviewResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CacheNodePreviewResourceListResult if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CacheNodePreviewResourceListResult. + */ + public static CacheNodePreviewResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CacheNodePreviewResourceListResult deserializedCacheNodePreviewResourceListResult + = new CacheNodePreviewResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> CacheNodePreviewResourceInner.fromJson(reader1)); + deserializedCacheNodePreviewResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedCacheNodePreviewResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCacheNodePreviewResourceListResult; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCacheNodeResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCacheNodeResourceListResult.java new file mode 100644 index 0000000000000..ed203c86e08a9 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCacheNodeResourceListResult.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a EnterpriseMccCacheNodeResource list operation. + */ +@Immutable +public final class EnterpriseMccCacheNodeResourceListResult + implements JsonSerializable { + /* + * The EnterpriseMccCacheNodeResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of EnterpriseMccCacheNodeResourceListResult class. + */ + private EnterpriseMccCacheNodeResourceListResult() { + } + + /** + * Get the value property: The EnterpriseMccCacheNodeResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model EnterpriseMccCacheNodeResourceListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(EnterpriseMccCacheNodeResourceListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EnterpriseMccCacheNodeResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EnterpriseMccCacheNodeResourceListResult if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EnterpriseMccCacheNodeResourceListResult. + */ + public static EnterpriseMccCacheNodeResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EnterpriseMccCacheNodeResourceListResult deserializedEnterpriseMccCacheNodeResourceListResult + = new EnterpriseMccCacheNodeResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> EnterpriseMccCacheNodeResourceInner.fromJson(reader1)); + deserializedEnterpriseMccCacheNodeResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedEnterpriseMccCacheNodeResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedEnterpriseMccCacheNodeResourceListResult; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCustomerResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCustomerResourceListResult.java new file mode 100644 index 0000000000000..2c95916e769b9 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterpriseMccCustomerResourceListResult.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCustomerResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a EnterpriseMccCustomerResource list operation. + */ +@Immutable +public final class EnterpriseMccCustomerResourceListResult + implements JsonSerializable { + /* + * The EnterpriseMccCustomerResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of EnterpriseMccCustomerResourceListResult class. + */ + private EnterpriseMccCustomerResourceListResult() { + } + + /** + * Get the value property: The EnterpriseMccCustomerResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model EnterpriseMccCustomerResourceListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(EnterpriseMccCustomerResourceListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EnterpriseMccCustomerResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EnterpriseMccCustomerResourceListResult if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EnterpriseMccCustomerResourceListResult. + */ + public static EnterpriseMccCustomerResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EnterpriseMccCustomerResourceListResult deserializedEnterpriseMccCustomerResourceListResult + = new EnterpriseMccCustomerResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> EnterpriseMccCustomerResourceInner.fromJson(reader1)); + deserializedEnterpriseMccCustomerResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedEnterpriseMccCustomerResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedEnterpriseMccCustomerResourceListResult; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterprisePreviewResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterprisePreviewResourceListResult.java new file mode 100644 index 0000000000000..3ea5e4a5176d9 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterprisePreviewResourceListResult.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a EnterprisePreviewResource list operation. + */ +@Immutable +public final class EnterprisePreviewResourceListResult + implements JsonSerializable { + /* + * The EnterprisePreviewResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of EnterprisePreviewResourceListResult class. + */ + private EnterprisePreviewResourceListResult() { + } + + /** + * Get the value property: The EnterprisePreviewResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model EnterprisePreviewResourceListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(EnterprisePreviewResourceListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EnterprisePreviewResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EnterprisePreviewResourceListResult if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EnterprisePreviewResourceListResult. + */ + public static EnterprisePreviewResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EnterprisePreviewResourceListResult deserializedEnterprisePreviewResourceListResult + = new EnterprisePreviewResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> EnterprisePreviewResourceInner.fromJson(reader1)); + deserializedEnterprisePreviewResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedEnterprisePreviewResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedEnterprisePreviewResourceListResult; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCacheNodeResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCacheNodeResourceListResult.java new file mode 100644 index 0000000000000..a097e5ffe3c2f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCacheNodeResourceListResult.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a IspCacheNodeResource list operation. + */ +@Immutable +public final class IspCacheNodeResourceListResult implements JsonSerializable { + /* + * The IspCacheNodeResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of IspCacheNodeResourceListResult class. + */ + private IspCacheNodeResourceListResult() { + } + + /** + * Get the value property: The IspCacheNodeResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model IspCacheNodeResourceListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(IspCacheNodeResourceListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IspCacheNodeResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IspCacheNodeResourceListResult if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the IspCacheNodeResourceListResult. + */ + public static IspCacheNodeResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IspCacheNodeResourceListResult deserializedIspCacheNodeResourceListResult + = new IspCacheNodeResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> IspCacheNodeResourceInner.fromJson(reader1)); + deserializedIspCacheNodeResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedIspCacheNodeResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedIspCacheNodeResourceListResult; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCustomerResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCustomerResourceListResult.java new file mode 100644 index 0000000000000..e33c97a69ec1f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/IspCustomerResourceListResult.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCustomerResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a IspCustomerResource list operation. + */ +@Immutable +public final class IspCustomerResourceListResult implements JsonSerializable { + /* + * The IspCustomerResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of IspCustomerResourceListResult class. + */ + private IspCustomerResourceListResult() { + } + + /** + * Get the value property: The IspCustomerResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model IspCustomerResourceListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(IspCustomerResourceListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IspCustomerResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IspCustomerResourceListResult if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the IspCustomerResourceListResult. + */ + public static IspCustomerResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IspCustomerResourceListResult deserializedIspCustomerResourceListResult + = new IspCustomerResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> IspCustomerResourceInner.fromJson(reader1)); + deserializedIspCustomerResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedIspCustomerResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedIspCustomerResourceListResult; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/OperationListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/OperationListResult.java new file mode 100644 index 0000000000000..172bcc981e43e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/OperationListResult.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.fluent.models.OperationInner; +import java.io.IOException; +import java.util.List; + +/** + * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + * results. + */ +@Immutable +public final class OperationListResult implements JsonSerializable { + /* + * The Operation items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of OperationListResult class. + */ + private OperationListResult() { + } + + /** + * Get the value property: The Operation items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model OperationListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(OperationListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the OperationListResult. + */ + public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationListResult deserializedOperationListResult = new OperationListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1)); + deserializedOperationListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedOperationListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationListResult; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/package-info.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/package-info.java new file mode 100644 index 0000000000000..93112f295fae4 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/package-info.java @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the implementations for ConnectedCache. + * Microsoft Connected Cache Rest Api version 2023-05-01-preview. + */ +package com.azure.resourcemanager.connectedcache.implementation; diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ActionType.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ActionType.java new file mode 100644 index 0000000000000..49afcf7c77983 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ActionType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + */ +public final class ActionType extends ExpandableStringEnum { + /** + * Actions are for internal-only APIs. + */ + public static final ActionType INTERNAL = fromString("Internal"); + + /** + * Creates a new instance of ActionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ActionType() { + } + + /** + * Creates or finds a ActionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ActionType. + */ + public static ActionType fromString(String name) { + return fromString(name, ActionType.class); + } + + /** + * Gets known ActionType values. + * + * @return known ActionType values. + */ + public static Collection values() { + return values(ActionType.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java new file mode 100644 index 0000000000000..d9f350d264835 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java @@ -0,0 +1,795 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.List; + +/** + * Model representing cache node for connected cache resource. + */ +@Fluent +public final class AdditionalCacheNodeProperties implements JsonSerializable { + /* + * issues list to return the issues as part of the additional cache node properties + */ + private List cacheNodePropertiesDetailsIssuesList; + + /* + * Cache node resource aggregated status details. + */ + private String aggregatedStatusDetails; + + /* + * Cache node resource aggregated status text. + */ + private String aggregatedStatusText; + + /* + * Cache node resource aggregated status code. + */ + private Integer aggregatedStatusCode; + + /* + * Cache node resource Mcc product version. + */ + private String productVersion; + + /* + * Cache node resource flag indicating if cache node has been physically installed or provisioned on their physical + * lab. + */ + private Boolean isProvisioned; + + /* + * Cache node resource detailed state text. + */ + private String cacheNodeStateDetailedText; + + /* + * Cache node resource short state text. + */ + private String cacheNodeStateShortText; + + /* + * Cache node resource state as integer. + */ + private Integer cacheNodeState; + + /* + * Cache node resource drive configurations. + */ + private List driveConfiguration; + + /* + * Cache node resource Bgp configuration. + */ + private BgpConfiguration bgpConfiguration; + + /* + * proxyUrl configuration of the cache node + */ + private ProxyUrlConfiguration proxyUrlConfiguration; + + /* + * Cache node resource Mcc proxy Url + */ + private String proxyUrl; + + /* + * Cache node resource requires a proxy + */ + private ProxyRequired isProxyRequired; + + /* + * Operating system of the cache node + */ + private OsType osType; + + /* + * Update Cycle Type + */ + private CycleType updateCycleType; + + /* + * Auto update or fast update version + */ + private String autoUpdateVersion; + + /* + * Update related information details + */ + private String updateInfoDetails; + + /* + * customer requested date time for mcc install of update cycle + */ + private OffsetDateTime updateRequestedDateTime; + + /* + * Auto update version that is the Next available version to update on mcc cache node + */ + private String autoUpdateNextAvailableVersion; + + /* + * Auto update last applied date time of mcc install + */ + private OffsetDateTime autoUpdateNextAvailableDateTime; + + /* + * Auto update version that is the applied to update on mcc cache node + */ + private String autoUpdateAppliedVersion; + + /* + * Auto Update status details from the backend after applying the new version details + */ + private String autoUpdateLastAppliedDetails; + + /* + * Last applied auto update state for mcc install of auto update cycle + */ + private String autoUpdateLastAppliedState; + + /* + * Auto update last applied date time of mcc install + */ + private OffsetDateTime autoUpdateLastAppliedDateTime; + + /* + * Auto update last triggered date time of mcc install + */ + private OffsetDateTime autoUpdateLastTriggeredDateTime; + + /* + * Optional property #1 of Mcc response object + */ + private String optionalProperty1; + + /* + * Optional property #2 of Mcc response object + */ + private String optionalProperty2; + + /* + * Optional property #3 of Mcc response object + */ + private String optionalProperty3; + + /* + * Optional property #4 of Mcc response object + */ + private String optionalProperty4; + + /* + * Optional property #5 of Mcc response object + */ + private String optionalProperty5; + + /** + * Creates an instance of AdditionalCacheNodeProperties class. + */ + public AdditionalCacheNodeProperties() { + } + + /** + * Get the cacheNodePropertiesDetailsIssuesList property: issues list to return the issues as part of the additional + * cache node properties. + * + * @return the cacheNodePropertiesDetailsIssuesList value. + */ + public List cacheNodePropertiesDetailsIssuesList() { + return this.cacheNodePropertiesDetailsIssuesList; + } + + /** + * Set the cacheNodePropertiesDetailsIssuesList property: issues list to return the issues as part of the additional + * cache node properties. + * + * @param cacheNodePropertiesDetailsIssuesList the cacheNodePropertiesDetailsIssuesList value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties + withCacheNodePropertiesDetailsIssuesList(List cacheNodePropertiesDetailsIssuesList) { + this.cacheNodePropertiesDetailsIssuesList = cacheNodePropertiesDetailsIssuesList; + return this; + } + + /** + * Get the aggregatedStatusDetails property: Cache node resource aggregated status details. + * + * @return the aggregatedStatusDetails value. + */ + public String aggregatedStatusDetails() { + return this.aggregatedStatusDetails; + } + + /** + * Get the aggregatedStatusText property: Cache node resource aggregated status text. + * + * @return the aggregatedStatusText value. + */ + public String aggregatedStatusText() { + return this.aggregatedStatusText; + } + + /** + * Get the aggregatedStatusCode property: Cache node resource aggregated status code. + * + * @return the aggregatedStatusCode value. + */ + public Integer aggregatedStatusCode() { + return this.aggregatedStatusCode; + } + + /** + * Get the productVersion property: Cache node resource Mcc product version. + * + * @return the productVersion value. + */ + public String productVersion() { + return this.productVersion; + } + + /** + * Get the isProvisioned property: Cache node resource flag indicating if cache node has been physically installed + * or provisioned on their physical lab. + * + * @return the isProvisioned value. + */ + public Boolean isProvisioned() { + return this.isProvisioned; + } + + /** + * Get the cacheNodeStateDetailedText property: Cache node resource detailed state text. + * + * @return the cacheNodeStateDetailedText value. + */ + public String cacheNodeStateDetailedText() { + return this.cacheNodeStateDetailedText; + } + + /** + * Get the cacheNodeStateShortText property: Cache node resource short state text. + * + * @return the cacheNodeStateShortText value. + */ + public String cacheNodeStateShortText() { + return this.cacheNodeStateShortText; + } + + /** + * Get the cacheNodeState property: Cache node resource state as integer. + * + * @return the cacheNodeState value. + */ + public Integer cacheNodeState() { + return this.cacheNodeState; + } + + /** + * Get the driveConfiguration property: Cache node resource drive configurations. + * + * @return the driveConfiguration value. + */ + public List driveConfiguration() { + return this.driveConfiguration; + } + + /** + * Set the driveConfiguration property: Cache node resource drive configurations. + * + * @param driveConfiguration the driveConfiguration value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withDriveConfiguration(List driveConfiguration) { + this.driveConfiguration = driveConfiguration; + return this; + } + + /** + * Get the bgpConfiguration property: Cache node resource Bgp configuration. + * + * @return the bgpConfiguration value. + */ + public BgpConfiguration bgpConfiguration() { + return this.bgpConfiguration; + } + + /** + * Set the bgpConfiguration property: Cache node resource Bgp configuration. + * + * @param bgpConfiguration the bgpConfiguration value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withBgpConfiguration(BgpConfiguration bgpConfiguration) { + this.bgpConfiguration = bgpConfiguration; + return this; + } + + /** + * Get the proxyUrlConfiguration property: proxyUrl configuration of the cache node. + * + * @return the proxyUrlConfiguration value. + */ + public ProxyUrlConfiguration proxyUrlConfiguration() { + return this.proxyUrlConfiguration; + } + + /** + * Set the proxyUrlConfiguration property: proxyUrl configuration of the cache node. + * + * @param proxyUrlConfiguration the proxyUrlConfiguration value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withProxyUrlConfiguration(ProxyUrlConfiguration proxyUrlConfiguration) { + this.proxyUrlConfiguration = proxyUrlConfiguration; + return this; + } + + /** + * Get the proxyUrl property: Cache node resource Mcc proxy Url. + * + * @return the proxyUrl value. + */ + public String proxyUrl() { + return this.proxyUrl; + } + + /** + * Set the proxyUrl property: Cache node resource Mcc proxy Url. + * + * @param proxyUrl the proxyUrl value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withProxyUrl(String proxyUrl) { + this.proxyUrl = proxyUrl; + return this; + } + + /** + * Get the isProxyRequired property: Cache node resource requires a proxy. + * + * @return the isProxyRequired value. + */ + public ProxyRequired isProxyRequired() { + return this.isProxyRequired; + } + + /** + * Set the isProxyRequired property: Cache node resource requires a proxy. + * + * @param isProxyRequired the isProxyRequired value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withIsProxyRequired(ProxyRequired isProxyRequired) { + this.isProxyRequired = isProxyRequired; + return this; + } + + /** + * Get the osType property: Operating system of the cache node. + * + * @return the osType value. + */ + public OsType osType() { + return this.osType; + } + + /** + * Set the osType property: Operating system of the cache node. + * + * @param osType the osType value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withOsType(OsType osType) { + this.osType = osType; + return this; + } + + /** + * Get the updateCycleType property: Update Cycle Type. + * + * @return the updateCycleType value. + */ + public CycleType updateCycleType() { + return this.updateCycleType; + } + + /** + * Set the updateCycleType property: Update Cycle Type. + * + * @param updateCycleType the updateCycleType value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withUpdateCycleType(CycleType updateCycleType) { + this.updateCycleType = updateCycleType; + return this; + } + + /** + * Get the autoUpdateVersion property: Auto update or fast update version. + * + * @return the autoUpdateVersion value. + */ + public String autoUpdateVersion() { + return this.autoUpdateVersion; + } + + /** + * Set the autoUpdateVersion property: Auto update or fast update version. + * + * @param autoUpdateVersion the autoUpdateVersion value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withAutoUpdateVersion(String autoUpdateVersion) { + this.autoUpdateVersion = autoUpdateVersion; + return this; + } + + /** + * Get the updateInfoDetails property: Update related information details. + * + * @return the updateInfoDetails value. + */ + public String updateInfoDetails() { + return this.updateInfoDetails; + } + + /** + * Set the updateInfoDetails property: Update related information details. + * + * @param updateInfoDetails the updateInfoDetails value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withUpdateInfoDetails(String updateInfoDetails) { + this.updateInfoDetails = updateInfoDetails; + return this; + } + + /** + * Get the updateRequestedDateTime property: customer requested date time for mcc install of update cycle. + * + * @return the updateRequestedDateTime value. + */ + public OffsetDateTime updateRequestedDateTime() { + return this.updateRequestedDateTime; + } + + /** + * Set the updateRequestedDateTime property: customer requested date time for mcc install of update cycle. + * + * @param updateRequestedDateTime the updateRequestedDateTime value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withUpdateRequestedDateTime(OffsetDateTime updateRequestedDateTime) { + this.updateRequestedDateTime = updateRequestedDateTime; + return this; + } + + /** + * Get the autoUpdateNextAvailableVersion property: Auto update version that is the Next available version to update + * on mcc cache node. + * + * @return the autoUpdateNextAvailableVersion value. + */ + public String autoUpdateNextAvailableVersion() { + return this.autoUpdateNextAvailableVersion; + } + + /** + * Get the autoUpdateNextAvailableDateTime property: Auto update last applied date time of mcc install. + * + * @return the autoUpdateNextAvailableDateTime value. + */ + public OffsetDateTime autoUpdateNextAvailableDateTime() { + return this.autoUpdateNextAvailableDateTime; + } + + /** + * Get the autoUpdateAppliedVersion property: Auto update version that is the applied to update on mcc cache node. + * + * @return the autoUpdateAppliedVersion value. + */ + public String autoUpdateAppliedVersion() { + return this.autoUpdateAppliedVersion; + } + + /** + * Get the autoUpdateLastAppliedDetails property: Auto Update status details from the backend after applying the new + * version details. + * + * @return the autoUpdateLastAppliedDetails value. + */ + public String autoUpdateLastAppliedDetails() { + return this.autoUpdateLastAppliedDetails; + } + + /** + * Get the autoUpdateLastAppliedState property: Last applied auto update state for mcc install of auto update cycle. + * + * @return the autoUpdateLastAppliedState value. + */ + public String autoUpdateLastAppliedState() { + return this.autoUpdateLastAppliedState; + } + + /** + * Get the autoUpdateLastAppliedDateTime property: Auto update last applied date time of mcc install. + * + * @return the autoUpdateLastAppliedDateTime value. + */ + public OffsetDateTime autoUpdateLastAppliedDateTime() { + return this.autoUpdateLastAppliedDateTime; + } + + /** + * Get the autoUpdateLastTriggeredDateTime property: Auto update last triggered date time of mcc install. + * + * @return the autoUpdateLastTriggeredDateTime value. + */ + public OffsetDateTime autoUpdateLastTriggeredDateTime() { + return this.autoUpdateLastTriggeredDateTime; + } + + /** + * Get the optionalProperty1 property: Optional property #1 of Mcc response object. + * + * @return the optionalProperty1 value. + */ + public String optionalProperty1() { + return this.optionalProperty1; + } + + /** + * Set the optionalProperty1 property: Optional property #1 of Mcc response object. + * + * @param optionalProperty1 the optionalProperty1 value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withOptionalProperty1(String optionalProperty1) { + this.optionalProperty1 = optionalProperty1; + return this; + } + + /** + * Get the optionalProperty2 property: Optional property #2 of Mcc response object. + * + * @return the optionalProperty2 value. + */ + public String optionalProperty2() { + return this.optionalProperty2; + } + + /** + * Set the optionalProperty2 property: Optional property #2 of Mcc response object. + * + * @param optionalProperty2 the optionalProperty2 value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withOptionalProperty2(String optionalProperty2) { + this.optionalProperty2 = optionalProperty2; + return this; + } + + /** + * Get the optionalProperty3 property: Optional property #3 of Mcc response object. + * + * @return the optionalProperty3 value. + */ + public String optionalProperty3() { + return this.optionalProperty3; + } + + /** + * Set the optionalProperty3 property: Optional property #3 of Mcc response object. + * + * @param optionalProperty3 the optionalProperty3 value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withOptionalProperty3(String optionalProperty3) { + this.optionalProperty3 = optionalProperty3; + return this; + } + + /** + * Get the optionalProperty4 property: Optional property #4 of Mcc response object. + * + * @return the optionalProperty4 value. + */ + public String optionalProperty4() { + return this.optionalProperty4; + } + + /** + * Set the optionalProperty4 property: Optional property #4 of Mcc response object. + * + * @param optionalProperty4 the optionalProperty4 value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withOptionalProperty4(String optionalProperty4) { + this.optionalProperty4 = optionalProperty4; + return this; + } + + /** + * Get the optionalProperty5 property: Optional property #5 of Mcc response object. + * + * @return the optionalProperty5 value. + */ + public String optionalProperty5() { + return this.optionalProperty5; + } + + /** + * Set the optionalProperty5 property: Optional property #5 of Mcc response object. + * + * @param optionalProperty5 the optionalProperty5 value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withOptionalProperty5(String optionalProperty5) { + this.optionalProperty5 = optionalProperty5; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (driveConfiguration() != null) { + driveConfiguration().forEach(e -> e.validate()); + } + if (bgpConfiguration() != null) { + bgpConfiguration().validate(); + } + if (proxyUrlConfiguration() != null) { + proxyUrlConfiguration().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("cacheNodePropertiesDetailsIssuesList", this.cacheNodePropertiesDetailsIssuesList, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("driveConfiguration", this.driveConfiguration, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("bgpConfiguration", this.bgpConfiguration); + jsonWriter.writeJsonField("proxyUrlConfiguration", this.proxyUrlConfiguration); + jsonWriter.writeStringField("proxyUrl", this.proxyUrl); + jsonWriter.writeStringField("isProxyRequired", + this.isProxyRequired == null ? null : this.isProxyRequired.toString()); + jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); + jsonWriter.writeStringField("updateCycleType", + this.updateCycleType == null ? null : this.updateCycleType.toString()); + jsonWriter.writeStringField("autoUpdateVersion", this.autoUpdateVersion); + jsonWriter.writeStringField("updateInfoDetails", this.updateInfoDetails); + jsonWriter.writeStringField("updateRequestedDateTime", + this.updateRequestedDateTime == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.updateRequestedDateTime)); + jsonWriter.writeStringField("optionalProperty1", this.optionalProperty1); + jsonWriter.writeStringField("optionalProperty2", this.optionalProperty2); + jsonWriter.writeStringField("optionalProperty3", this.optionalProperty3); + jsonWriter.writeStringField("optionalProperty4", this.optionalProperty4); + jsonWriter.writeStringField("optionalProperty5", this.optionalProperty5); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdditionalCacheNodeProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdditionalCacheNodeProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdditionalCacheNodeProperties. + */ + public static AdditionalCacheNodeProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdditionalCacheNodeProperties deserializedAdditionalCacheNodeProperties + = new AdditionalCacheNodeProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cacheNodePropertiesDetailsIssuesList".equals(fieldName)) { + List cacheNodePropertiesDetailsIssuesList + = reader.readArray(reader1 -> reader1.getString()); + deserializedAdditionalCacheNodeProperties.cacheNodePropertiesDetailsIssuesList + = cacheNodePropertiesDetailsIssuesList; + } else if ("aggregatedStatusDetails".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.aggregatedStatusDetails = reader.getString(); + } else if ("aggregatedStatusText".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.aggregatedStatusText = reader.getString(); + } else if ("aggregatedStatusCode".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.aggregatedStatusCode + = reader.getNullable(JsonReader::getInt); + } else if ("productVersion".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.productVersion = reader.getString(); + } else if ("isProvisioned".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.isProvisioned + = reader.getNullable(JsonReader::getBoolean); + } else if ("cacheNodeStateDetailedText".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.cacheNodeStateDetailedText = reader.getString(); + } else if ("cacheNodeStateShortText".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.cacheNodeStateShortText = reader.getString(); + } else if ("cacheNodeState".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.cacheNodeState = reader.getNullable(JsonReader::getInt); + } else if ("driveConfiguration".equals(fieldName)) { + List driveConfiguration + = reader.readArray(reader1 -> CacheNodeDriveConfiguration.fromJson(reader1)); + deserializedAdditionalCacheNodeProperties.driveConfiguration = driveConfiguration; + } else if ("bgpConfiguration".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.bgpConfiguration = BgpConfiguration.fromJson(reader); + } else if ("proxyUrlConfiguration".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.proxyUrlConfiguration + = ProxyUrlConfiguration.fromJson(reader); + } else if ("proxyUrl".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.proxyUrl = reader.getString(); + } else if ("isProxyRequired".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.isProxyRequired + = ProxyRequired.fromString(reader.getString()); + } else if ("osType".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.osType = OsType.fromString(reader.getString()); + } else if ("updateCycleType".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.updateCycleType + = CycleType.fromString(reader.getString()); + } else if ("autoUpdateVersion".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateVersion = reader.getString(); + } else if ("updateInfoDetails".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.updateInfoDetails = reader.getString(); + } else if ("updateRequestedDateTime".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.updateRequestedDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("autoUpdateNextAvailableVersion".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateNextAvailableVersion = reader.getString(); + } else if ("autoUpdateNextAvailableDateTime".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateNextAvailableDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("autoUpdateAppliedVersion".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateAppliedVersion = reader.getString(); + } else if ("autoUpdateLastAppliedDetails".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateLastAppliedDetails = reader.getString(); + } else if ("autoUpdateLastAppliedState".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateLastAppliedState = reader.getString(); + } else if ("autoUpdateLastAppliedDateTime".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateLastAppliedDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("autoUpdateLastTriggeredDateTime".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.autoUpdateLastTriggeredDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("optionalProperty1".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.optionalProperty1 = reader.getString(); + } else if ("optionalProperty2".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.optionalProperty2 = reader.getString(); + } else if ("optionalProperty3".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.optionalProperty3 = reader.getString(); + } else if ("optionalProperty4".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.optionalProperty4 = reader.getString(); + } else if ("optionalProperty5".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.optionalProperty5 = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAdditionalCacheNodeProperties; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java new file mode 100644 index 0000000000000..f35a3970d6a1c --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java @@ -0,0 +1,743 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * Model representing customer for connected cache resource. + */ +@Fluent +public final class AdditionalCustomerProperties implements JsonSerializable { + /* + * Customer resource last PeeringDB update timestamp. + */ + private OffsetDateTime peeringDbLastUpdateTime; + + /* + * Customer resource cache efficiency. + */ + private Double customerPropertiesOverviewCacheEfficiency; + + /* + * Customer resource average egress in Mbps. + */ + private Double customerPropertiesOverviewAverageEgressMbps; + + /* + * Customer resource average cache miss throughput in Mbps. + */ + private Double customerPropertiesOverviewAverageMissMbps; + + /* + * Customer resource maximum egress in Mbps. + */ + private Double customerPropertiesOverviewEgressMbpsMax; + + /* + * Customer resource peak egress timestamp. + */ + private OffsetDateTime customerPropertiesOverviewEgressMbpsMaxDateTime; + + /* + * Customer resource maximum cache miss throughput in Mbps. + */ + private Double customerPropertiesOverviewMissMbpsMax; + + /* + * Customer resource peak cache miss throughput timestamp. + */ + private OffsetDateTime customerPropertiesOverviewMissMbpsMaxDateTime; + + /* + * Customer resource total healthy cache nodes. + */ + private Integer customerPropertiesOverviewCacheNodesHealthyCount; + + /* + * Customer resource total unhealthy cache nodes. + */ + private Integer customerPropertiesOverviewCacheNodesUnhealthyCount; + + /* + * Customer resource signup status as boolean. + */ + private Boolean signupStatus; + + /* + * Customer resource signup status as integer code. + */ + private Integer signupStatusCode; + + /* + * Customer resource signup status as string text. + */ + private String signupStatusText; + + /* + * Customer resource signup phase status code as integer. + */ + private Integer signupPhaseStatusCode; + + /* + * Customer resource signup phase status as string text. + */ + private String signupPhaseStatusText; + + /* + * Customer resource last PeeringDB update timestamp. + */ + private OffsetDateTime peeringDbLastUpdateDate; + + /* + * Customer resource owner organization name. + */ + private String customerOrgName; + + /* + * Customer resource contact email. + */ + private String customerEmail; + + /* + * Customer resource transit Asn (autonomous system number). + */ + private String customerTransitAsn; + + /* + * Customer resource transit state. + */ + private CustomerTransitState customerTransitState; + + /* + * Customer resource Asn (autonomous system number). + */ + private String customerAsn; + + /* + * Customer resource estimated Asn peering peak in Gbps. + */ + private Double customerAsnEstimatedEgressPeekGbps; + + /* + * Customer resource entitlement Sku Id. + */ + private String customerEntitlementSkuId; + + /* + * Customer resource entitlement Sku Guid. + */ + private String customerEntitlementSkuGuid; + + /* + * Customer resource entitlement Sku name. + */ + private String customerEntitlementSkuName; + + /* + * Customer resource entitlement expiration date string. + */ + private OffsetDateTime customerEntitlementExpiration; + + /* + * Optional property #1 of Mcc response object. + */ + private String optionalProperty1; + + /* + * Optional property #2 of Mcc response object. + */ + private String optionalProperty2; + + /* + * Optional property #3 of Mcc response object. + */ + private String optionalProperty3; + + /* + * Optional property #4 of Mcc response object. + */ + private String optionalProperty4; + + /* + * Optional property #5 of Mcc response object. + */ + private String optionalProperty5; + + /** + * Creates an instance of AdditionalCustomerProperties class. + */ + public AdditionalCustomerProperties() { + } + + /** + * Get the peeringDbLastUpdateTime property: Customer resource last PeeringDB update timestamp. + * + * @return the peeringDbLastUpdateTime value. + */ + public OffsetDateTime peeringDbLastUpdateTime() { + return this.peeringDbLastUpdateTime; + } + + /** + * Get the customerPropertiesOverviewCacheEfficiency property: Customer resource cache efficiency. + * + * @return the customerPropertiesOverviewCacheEfficiency value. + */ + public Double customerPropertiesOverviewCacheEfficiency() { + return this.customerPropertiesOverviewCacheEfficiency; + } + + /** + * Get the customerPropertiesOverviewAverageEgressMbps property: Customer resource average egress in Mbps. + * + * @return the customerPropertiesOverviewAverageEgressMbps value. + */ + public Double customerPropertiesOverviewAverageEgressMbps() { + return this.customerPropertiesOverviewAverageEgressMbps; + } + + /** + * Get the customerPropertiesOverviewAverageMissMbps property: Customer resource average cache miss throughput in + * Mbps. + * + * @return the customerPropertiesOverviewAverageMissMbps value. + */ + public Double customerPropertiesOverviewAverageMissMbps() { + return this.customerPropertiesOverviewAverageMissMbps; + } + + /** + * Get the customerPropertiesOverviewEgressMbpsMax property: Customer resource maximum egress in Mbps. + * + * @return the customerPropertiesOverviewEgressMbpsMax value. + */ + public Double customerPropertiesOverviewEgressMbpsMax() { + return this.customerPropertiesOverviewEgressMbpsMax; + } + + /** + * Get the customerPropertiesOverviewEgressMbpsMaxDateTime property: Customer resource peak egress timestamp. + * + * @return the customerPropertiesOverviewEgressMbpsMaxDateTime value. + */ + public OffsetDateTime customerPropertiesOverviewEgressMbpsMaxDateTime() { + return this.customerPropertiesOverviewEgressMbpsMaxDateTime; + } + + /** + * Get the customerPropertiesOverviewMissMbpsMax property: Customer resource maximum cache miss throughput in Mbps. + * + * @return the customerPropertiesOverviewMissMbpsMax value. + */ + public Double customerPropertiesOverviewMissMbpsMax() { + return this.customerPropertiesOverviewMissMbpsMax; + } + + /** + * Get the customerPropertiesOverviewMissMbpsMaxDateTime property: Customer resource peak cache miss throughput + * timestamp. + * + * @return the customerPropertiesOverviewMissMbpsMaxDateTime value. + */ + public OffsetDateTime customerPropertiesOverviewMissMbpsMaxDateTime() { + return this.customerPropertiesOverviewMissMbpsMaxDateTime; + } + + /** + * Get the customerPropertiesOverviewCacheNodesHealthyCount property: Customer resource total healthy cache nodes. + * + * @return the customerPropertiesOverviewCacheNodesHealthyCount value. + */ + public Integer customerPropertiesOverviewCacheNodesHealthyCount() { + return this.customerPropertiesOverviewCacheNodesHealthyCount; + } + + /** + * Get the customerPropertiesOverviewCacheNodesUnhealthyCount property: Customer resource total unhealthy cache + * nodes. + * + * @return the customerPropertiesOverviewCacheNodesUnhealthyCount value. + */ + public Integer customerPropertiesOverviewCacheNodesUnhealthyCount() { + return this.customerPropertiesOverviewCacheNodesUnhealthyCount; + } + + /** + * Get the signupStatus property: Customer resource signup status as boolean. + * + * @return the signupStatus value. + */ + public Boolean signupStatus() { + return this.signupStatus; + } + + /** + * Get the signupStatusCode property: Customer resource signup status as integer code. + * + * @return the signupStatusCode value. + */ + public Integer signupStatusCode() { + return this.signupStatusCode; + } + + /** + * Get the signupStatusText property: Customer resource signup status as string text. + * + * @return the signupStatusText value. + */ + public String signupStatusText() { + return this.signupStatusText; + } + + /** + * Get the signupPhaseStatusCode property: Customer resource signup phase status code as integer. + * + * @return the signupPhaseStatusCode value. + */ + public Integer signupPhaseStatusCode() { + return this.signupPhaseStatusCode; + } + + /** + * Get the signupPhaseStatusText property: Customer resource signup phase status as string text. + * + * @return the signupPhaseStatusText value. + */ + public String signupPhaseStatusText() { + return this.signupPhaseStatusText; + } + + /** + * Get the peeringDbLastUpdateDate property: Customer resource last PeeringDB update timestamp. + * + * @return the peeringDbLastUpdateDate value. + */ + public OffsetDateTime peeringDbLastUpdateDate() { + return this.peeringDbLastUpdateDate; + } + + /** + * Get the customerOrgName property: Customer resource owner organization name. + * + * @return the customerOrgName value. + */ + public String customerOrgName() { + return this.customerOrgName; + } + + /** + * Get the customerEmail property: Customer resource contact email. + * + * @return the customerEmail value. + */ + public String customerEmail() { + return this.customerEmail; + } + + /** + * Set the customerEmail property: Customer resource contact email. + * + * @param customerEmail the customerEmail value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withCustomerEmail(String customerEmail) { + this.customerEmail = customerEmail; + return this; + } + + /** + * Get the customerTransitAsn property: Customer resource transit Asn (autonomous system number). + * + * @return the customerTransitAsn value. + */ + public String customerTransitAsn() { + return this.customerTransitAsn; + } + + /** + * Set the customerTransitAsn property: Customer resource transit Asn (autonomous system number). + * + * @param customerTransitAsn the customerTransitAsn value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withCustomerTransitAsn(String customerTransitAsn) { + this.customerTransitAsn = customerTransitAsn; + return this; + } + + /** + * Get the customerTransitState property: Customer resource transit state. + * + * @return the customerTransitState value. + */ + public CustomerTransitState customerTransitState() { + return this.customerTransitState; + } + + /** + * Set the customerTransitState property: Customer resource transit state. + * + * @param customerTransitState the customerTransitState value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withCustomerTransitState(CustomerTransitState customerTransitState) { + this.customerTransitState = customerTransitState; + return this; + } + + /** + * Get the customerAsn property: Customer resource Asn (autonomous system number). + * + * @return the customerAsn value. + */ + public String customerAsn() { + return this.customerAsn; + } + + /** + * Set the customerAsn property: Customer resource Asn (autonomous system number). + * + * @param customerAsn the customerAsn value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withCustomerAsn(String customerAsn) { + this.customerAsn = customerAsn; + return this; + } + + /** + * Get the customerAsnEstimatedEgressPeekGbps property: Customer resource estimated Asn peering peak in Gbps. + * + * @return the customerAsnEstimatedEgressPeekGbps value. + */ + public Double customerAsnEstimatedEgressPeekGbps() { + return this.customerAsnEstimatedEgressPeekGbps; + } + + /** + * Get the customerEntitlementSkuId property: Customer resource entitlement Sku Id. + * + * @return the customerEntitlementSkuId value. + */ + public String customerEntitlementSkuId() { + return this.customerEntitlementSkuId; + } + + /** + * Set the customerEntitlementSkuId property: Customer resource entitlement Sku Id. + * + * @param customerEntitlementSkuId the customerEntitlementSkuId value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withCustomerEntitlementSkuId(String customerEntitlementSkuId) { + this.customerEntitlementSkuId = customerEntitlementSkuId; + return this; + } + + /** + * Get the customerEntitlementSkuGuid property: Customer resource entitlement Sku Guid. + * + * @return the customerEntitlementSkuGuid value. + */ + public String customerEntitlementSkuGuid() { + return this.customerEntitlementSkuGuid; + } + + /** + * Set the customerEntitlementSkuGuid property: Customer resource entitlement Sku Guid. + * + * @param customerEntitlementSkuGuid the customerEntitlementSkuGuid value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withCustomerEntitlementSkuGuid(String customerEntitlementSkuGuid) { + this.customerEntitlementSkuGuid = customerEntitlementSkuGuid; + return this; + } + + /** + * Get the customerEntitlementSkuName property: Customer resource entitlement Sku name. + * + * @return the customerEntitlementSkuName value. + */ + public String customerEntitlementSkuName() { + return this.customerEntitlementSkuName; + } + + /** + * Set the customerEntitlementSkuName property: Customer resource entitlement Sku name. + * + * @param customerEntitlementSkuName the customerEntitlementSkuName value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withCustomerEntitlementSkuName(String customerEntitlementSkuName) { + this.customerEntitlementSkuName = customerEntitlementSkuName; + return this; + } + + /** + * Get the customerEntitlementExpiration property: Customer resource entitlement expiration date string. + * + * @return the customerEntitlementExpiration value. + */ + public OffsetDateTime customerEntitlementExpiration() { + return this.customerEntitlementExpiration; + } + + /** + * Set the customerEntitlementExpiration property: Customer resource entitlement expiration date string. + * + * @param customerEntitlementExpiration the customerEntitlementExpiration value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties + withCustomerEntitlementExpiration(OffsetDateTime customerEntitlementExpiration) { + this.customerEntitlementExpiration = customerEntitlementExpiration; + return this; + } + + /** + * Get the optionalProperty1 property: Optional property #1 of Mcc response object. + * + * @return the optionalProperty1 value. + */ + public String optionalProperty1() { + return this.optionalProperty1; + } + + /** + * Set the optionalProperty1 property: Optional property #1 of Mcc response object. + * + * @param optionalProperty1 the optionalProperty1 value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withOptionalProperty1(String optionalProperty1) { + this.optionalProperty1 = optionalProperty1; + return this; + } + + /** + * Get the optionalProperty2 property: Optional property #2 of Mcc response object. + * + * @return the optionalProperty2 value. + */ + public String optionalProperty2() { + return this.optionalProperty2; + } + + /** + * Set the optionalProperty2 property: Optional property #2 of Mcc response object. + * + * @param optionalProperty2 the optionalProperty2 value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withOptionalProperty2(String optionalProperty2) { + this.optionalProperty2 = optionalProperty2; + return this; + } + + /** + * Get the optionalProperty3 property: Optional property #3 of Mcc response object. + * + * @return the optionalProperty3 value. + */ + public String optionalProperty3() { + return this.optionalProperty3; + } + + /** + * Set the optionalProperty3 property: Optional property #3 of Mcc response object. + * + * @param optionalProperty3 the optionalProperty3 value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withOptionalProperty3(String optionalProperty3) { + this.optionalProperty3 = optionalProperty3; + return this; + } + + /** + * Get the optionalProperty4 property: Optional property #4 of Mcc response object. + * + * @return the optionalProperty4 value. + */ + public String optionalProperty4() { + return this.optionalProperty4; + } + + /** + * Set the optionalProperty4 property: Optional property #4 of Mcc response object. + * + * @param optionalProperty4 the optionalProperty4 value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withOptionalProperty4(String optionalProperty4) { + this.optionalProperty4 = optionalProperty4; + return this; + } + + /** + * Get the optionalProperty5 property: Optional property #5 of Mcc response object. + * + * @return the optionalProperty5 value. + */ + public String optionalProperty5() { + return this.optionalProperty5; + } + + /** + * Set the optionalProperty5 property: Optional property #5 of Mcc response object. + * + * @param optionalProperty5 the optionalProperty5 value to set. + * @return the AdditionalCustomerProperties object itself. + */ + public AdditionalCustomerProperties withOptionalProperty5(String optionalProperty5) { + this.optionalProperty5 = optionalProperty5; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("customerEmail", this.customerEmail); + jsonWriter.writeStringField("customerTransitAsn", this.customerTransitAsn); + jsonWriter.writeStringField("customerTransitState", + this.customerTransitState == null ? null : this.customerTransitState.toString()); + jsonWriter.writeStringField("customerAsn", this.customerAsn); + jsonWriter.writeStringField("customerEntitlementSkuId", this.customerEntitlementSkuId); + jsonWriter.writeStringField("customerEntitlementSkuGuid", this.customerEntitlementSkuGuid); + jsonWriter.writeStringField("customerEntitlementSkuName", this.customerEntitlementSkuName); + jsonWriter.writeStringField("customerEntitlementExpiration", + this.customerEntitlementExpiration == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.customerEntitlementExpiration)); + jsonWriter.writeStringField("optionalProperty1", this.optionalProperty1); + jsonWriter.writeStringField("optionalProperty2", this.optionalProperty2); + jsonWriter.writeStringField("optionalProperty3", this.optionalProperty3); + jsonWriter.writeStringField("optionalProperty4", this.optionalProperty4); + jsonWriter.writeStringField("optionalProperty5", this.optionalProperty5); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdditionalCustomerProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdditionalCustomerProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdditionalCustomerProperties. + */ + public static AdditionalCustomerProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdditionalCustomerProperties deserializedAdditionalCustomerProperties = new AdditionalCustomerProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("peeringDbLastUpdateTime".equals(fieldName)) { + deserializedAdditionalCustomerProperties.peeringDbLastUpdateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("customerPropertiesOverviewCacheEfficiency".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewCacheEfficiency + = reader.getNullable(JsonReader::getDouble); + } else if ("customerPropertiesOverviewAverageEgressMbps".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewAverageEgressMbps + = reader.getNullable(JsonReader::getDouble); + } else if ("customerPropertiesOverviewAverageMissMbps".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewAverageMissMbps + = reader.getNullable(JsonReader::getDouble); + } else if ("customerPropertiesOverviewEgressMbpsMax".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewEgressMbpsMax + = reader.getNullable(JsonReader::getDouble); + } else if ("customerPropertiesOverviewEgressMbpsMaxDateTime".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewEgressMbpsMaxDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("customerPropertiesOverviewMissMbpsMax".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewMissMbpsMax + = reader.getNullable(JsonReader::getDouble); + } else if ("customerPropertiesOverviewMissMbpsMaxDateTime".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewMissMbpsMaxDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("customerPropertiesOverviewCacheNodesHealthyCount".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewCacheNodesHealthyCount + = reader.getNullable(JsonReader::getInt); + } else if ("customerPropertiesOverviewCacheNodesUnhealthyCount".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerPropertiesOverviewCacheNodesUnhealthyCount + = reader.getNullable(JsonReader::getInt); + } else if ("signupStatus".equals(fieldName)) { + deserializedAdditionalCustomerProperties.signupStatus = reader.getNullable(JsonReader::getBoolean); + } else if ("signupStatusCode".equals(fieldName)) { + deserializedAdditionalCustomerProperties.signupStatusCode = reader.getNullable(JsonReader::getInt); + } else if ("signupStatusText".equals(fieldName)) { + deserializedAdditionalCustomerProperties.signupStatusText = reader.getString(); + } else if ("signupPhaseStatusCode".equals(fieldName)) { + deserializedAdditionalCustomerProperties.signupPhaseStatusCode + = reader.getNullable(JsonReader::getInt); + } else if ("signupPhaseStatusText".equals(fieldName)) { + deserializedAdditionalCustomerProperties.signupPhaseStatusText = reader.getString(); + } else if ("peeringDbLastUpdateDate".equals(fieldName)) { + deserializedAdditionalCustomerProperties.peeringDbLastUpdateDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("customerOrgName".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerOrgName = reader.getString(); + } else if ("customerEmail".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerEmail = reader.getString(); + } else if ("customerTransitAsn".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerTransitAsn = reader.getString(); + } else if ("customerTransitState".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerTransitState + = CustomerTransitState.fromString(reader.getString()); + } else if ("customerAsn".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerAsn = reader.getString(); + } else if ("customerAsnEstimatedEgressPeekGbps".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerAsnEstimatedEgressPeekGbps + = reader.getNullable(JsonReader::getDouble); + } else if ("customerEntitlementSkuId".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerEntitlementSkuId = reader.getString(); + } else if ("customerEntitlementSkuGuid".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerEntitlementSkuGuid = reader.getString(); + } else if ("customerEntitlementSkuName".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerEntitlementSkuName = reader.getString(); + } else if ("customerEntitlementExpiration".equals(fieldName)) { + deserializedAdditionalCustomerProperties.customerEntitlementExpiration = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("optionalProperty1".equals(fieldName)) { + deserializedAdditionalCustomerProperties.optionalProperty1 = reader.getString(); + } else if ("optionalProperty2".equals(fieldName)) { + deserializedAdditionalCustomerProperties.optionalProperty2 = reader.getString(); + } else if ("optionalProperty3".equals(fieldName)) { + deserializedAdditionalCustomerProperties.optionalProperty3 = reader.getString(); + } else if ("optionalProperty4".equals(fieldName)) { + deserializedAdditionalCustomerProperties.optionalProperty4 = reader.getString(); + } else if ("optionalProperty5".equals(fieldName)) { + deserializedAdditionalCustomerProperties.optionalProperty5 = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAdditionalCustomerProperties; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AutoUpdateRingType.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AutoUpdateRingType.java new file mode 100644 index 0000000000000..da377523a73e1 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AutoUpdateRingType.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Auto update Ring type. + */ +public final class AutoUpdateRingType extends ExpandableStringEnum { + /** + * customer selection of preview update install mcc on their physical vm. + */ + public static final AutoUpdateRingType PREVIEW = fromString("Preview"); + + /** + * customer selection of slow update to install mcc on their physical vm. + */ + public static final AutoUpdateRingType SLOW = fromString("Slow"); + + /** + * customer selection of fast / auto update to install mcc on their physical vm. + */ + public static final AutoUpdateRingType FAST = fromString("Fast"); + + /** + * Creates a new instance of AutoUpdateRingType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AutoUpdateRingType() { + } + + /** + * Creates or finds a AutoUpdateRingType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AutoUpdateRingType. + */ + public static AutoUpdateRingType fromString(String name) { + return fromString(name, AutoUpdateRingType.class); + } + + /** + * Gets known AutoUpdateRingType values. + * + * @return known AutoUpdateRingType values. + */ + public static Collection values() { + return values(AutoUpdateRingType.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpCidrsConfiguration.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpCidrsConfiguration.java new file mode 100644 index 0000000000000..8c9b964754eb0 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpCidrsConfiguration.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Mcc cache node Bgp Cidr details. + */ +@Immutable +public final class BgpCidrsConfiguration implements JsonSerializable { + /* + * Mcc cache node Bgp Cidr details. + */ + private List bgpCidrs; + + /** + * Creates an instance of BgpCidrsConfiguration class. + */ + private BgpCidrsConfiguration() { + } + + /** + * Get the bgpCidrs property: Mcc cache node Bgp Cidr details. + * + * @return the bgpCidrs value. + */ + public List bgpCidrs() { + return this.bgpCidrs; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BgpCidrsConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BgpCidrsConfiguration if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the BgpCidrsConfiguration. + */ + public static BgpCidrsConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BgpCidrsConfiguration deserializedBgpCidrsConfiguration = new BgpCidrsConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("bgpCidrs".equals(fieldName)) { + List bgpCidrs = reader.readArray(reader1 -> reader1.getString()); + deserializedBgpCidrsConfiguration.bgpCidrs = bgpCidrs; + } else { + reader.skipChildren(); + } + } + + return deserializedBgpCidrsConfiguration; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpConfiguration.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpConfiguration.java new file mode 100644 index 0000000000000..517260a7ce870 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpConfiguration.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Bgp configuration of cache node. + */ +@Fluent +public final class BgpConfiguration implements JsonSerializable { + /* + * Asn to ip address mapping + */ + private String asnToIpAddressMapping; + + /** + * Creates an instance of BgpConfiguration class. + */ + public BgpConfiguration() { + } + + /** + * Get the asnToIpAddressMapping property: Asn to ip address mapping. + * + * @return the asnToIpAddressMapping value. + */ + public String asnToIpAddressMapping() { + return this.asnToIpAddressMapping; + } + + /** + * Set the asnToIpAddressMapping property: Asn to ip address mapping. + * + * @param asnToIpAddressMapping the asnToIpAddressMapping value to set. + * @return the BgpConfiguration object itself. + */ + public BgpConfiguration withAsnToIpAddressMapping(String asnToIpAddressMapping) { + this.asnToIpAddressMapping = asnToIpAddressMapping; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("asnToIpAddressMapping", this.asnToIpAddressMapping); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BgpConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BgpConfiguration if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the BgpConfiguration. + */ + public static BgpConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BgpConfiguration deserializedBgpConfiguration = new BgpConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("asnToIpAddressMapping".equals(fieldName)) { + deserializedBgpConfiguration.asnToIpAddressMapping = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBgpConfiguration; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpReviewStateEnum.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpReviewStateEnum.java new file mode 100644 index 0000000000000..0a52dade2a04b --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/BgpReviewStateEnum.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Cache node resource Bgp review state as integer. + */ +public final class BgpReviewStateEnum extends ExpandableStringEnum { + /** + * bgp not configured. + */ + public static final BgpReviewStateEnum NOT_CONFIGURED = fromString("NotConfigured"); + + /** + * bgp is in review state. + */ + public static final BgpReviewStateEnum IN_REVIEW = fromString("InReview"); + + /** + * bgp is in Approved state. + */ + public static final BgpReviewStateEnum APPROVED = fromString("Approved"); + + /** + * bgp is setup need an attention for more troubleshoot. + */ + public static final BgpReviewStateEnum ATTENTION_REQUIRED = fromString("AttentionRequired"); + + /** + * Creates a new instance of BgpReviewStateEnum value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public BgpReviewStateEnum() { + } + + /** + * Creates or finds a BgpReviewStateEnum from its string representation. + * + * @param name a name to look for. + * @return the corresponding BgpReviewStateEnum. + */ + public static BgpReviewStateEnum fromString(String name) { + return fromString(name, BgpReviewStateEnum.class); + } + + /** + * Gets known BgpReviewStateEnum values. + * + * @return known BgpReviewStateEnum values. + */ + public static Collection values() { + return values(BgpReviewStateEnum.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeDriveConfiguration.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeDriveConfiguration.java new file mode 100644 index 0000000000000..c13f71700d333 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeDriveConfiguration.java @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Drive configuration for cache node. + */ +@Fluent +public final class CacheNodeDriveConfiguration implements JsonSerializable { + /* + * physical path location of the folder used for caching content + */ + private String physicalPath; + + /* + * physical size of the drive used for caching content + */ + private Integer sizeInGb; + + /* + * corresponding nginx cache number. Valid cache numbers are 1 - 20 + */ + private Integer cacheNumber; + + /* + * full binding for corresponding nginx cache drive + */ + private String nginxMapping; + + /** + * Creates an instance of CacheNodeDriveConfiguration class. + */ + public CacheNodeDriveConfiguration() { + } + + /** + * Get the physicalPath property: physical path location of the folder used for caching content. + * + * @return the physicalPath value. + */ + public String physicalPath() { + return this.physicalPath; + } + + /** + * Set the physicalPath property: physical path location of the folder used for caching content. + * + * @param physicalPath the physicalPath value to set. + * @return the CacheNodeDriveConfiguration object itself. + */ + public CacheNodeDriveConfiguration withPhysicalPath(String physicalPath) { + this.physicalPath = physicalPath; + return this; + } + + /** + * Get the sizeInGb property: physical size of the drive used for caching content. + * + * @return the sizeInGb value. + */ + public Integer sizeInGb() { + return this.sizeInGb; + } + + /** + * Set the sizeInGb property: physical size of the drive used for caching content. + * + * @param sizeInGb the sizeInGb value to set. + * @return the CacheNodeDriveConfiguration object itself. + */ + public CacheNodeDriveConfiguration withSizeInGb(Integer sizeInGb) { + this.sizeInGb = sizeInGb; + return this; + } + + /** + * Get the cacheNumber property: corresponding nginx cache number. Valid cache numbers are 1 - 20. + * + * @return the cacheNumber value. + */ + public Integer cacheNumber() { + return this.cacheNumber; + } + + /** + * Set the cacheNumber property: corresponding nginx cache number. Valid cache numbers are 1 - 20. + * + * @param cacheNumber the cacheNumber value to set. + * @return the CacheNodeDriveConfiguration object itself. + */ + public CacheNodeDriveConfiguration withCacheNumber(Integer cacheNumber) { + this.cacheNumber = cacheNumber; + return this; + } + + /** + * Get the nginxMapping property: full binding for corresponding nginx cache drive. + * + * @return the nginxMapping value. + */ + public String nginxMapping() { + return this.nginxMapping; + } + + /** + * Set the nginxMapping property: full binding for corresponding nginx cache drive. + * + * @param nginxMapping the nginxMapping value to set. + * @return the CacheNodeDriveConfiguration object itself. + */ + public CacheNodeDriveConfiguration withNginxMapping(String nginxMapping) { + this.nginxMapping = nginxMapping; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("physicalPath", this.physicalPath); + jsonWriter.writeNumberField("sizeInGb", this.sizeInGb); + jsonWriter.writeNumberField("cacheNumber", this.cacheNumber); + jsonWriter.writeStringField("nginxMapping", this.nginxMapping); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CacheNodeDriveConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CacheNodeDriveConfiguration if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CacheNodeDriveConfiguration. + */ + public static CacheNodeDriveConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CacheNodeDriveConfiguration deserializedCacheNodeDriveConfiguration = new CacheNodeDriveConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("physicalPath".equals(fieldName)) { + deserializedCacheNodeDriveConfiguration.physicalPath = reader.getString(); + } else if ("sizeInGb".equals(fieldName)) { + deserializedCacheNodeDriveConfiguration.sizeInGb = reader.getNullable(JsonReader::getInt); + } else if ("cacheNumber".equals(fieldName)) { + deserializedCacheNodeDriveConfiguration.cacheNumber = reader.getNullable(JsonReader::getInt); + } else if ("nginxMapping".equals(fieldName)) { + deserializedCacheNodeDriveConfiguration.nginxMapping = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCacheNodeDriveConfiguration; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeEntity.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeEntity.java new file mode 100644 index 0000000000000..b1f7d9ece2faf --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeEntity.java @@ -0,0 +1,1130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.List; + +/** + * Model representing Cache Node for ConnectedCache resource. + */ +@Fluent +public final class CacheNodeEntity implements JsonSerializable { + /* + * Cache node resource Azure fully qualified resource Id. + */ + private String fullyQualifiedResourceId; + + /* + * Cache node resource customer resource GUID Id. + */ + private String customerId; + + /* + * Cache node resource customer resource name. + */ + private String customerName; + + /* + * Cache node resource Ip address. + */ + private String ipAddress; + + /* + * Cache node resource customer index as string. + */ + private String customerIndex; + + /* + * Cache node resource identifier of the cache node + */ + private String cacheNodeId; + + /* + * Cache node resource name. + */ + private String cacheNodeName; + + /* + * Cache node resource customer resource Asn (autonomous system number) + */ + private Integer customerAsn; + + /* + * Cache node resource flag for indicating if cache node is enabled. + */ + private Boolean isEnabled; + + /* + * Cache node resource maximum allowed egress in Mbps. + */ + private Integer maxAllowableEgressInMbps; + + /* + * Cache node resource maximum allowed probability of egress. + */ + private Double maxAllowableProbability; + + /* + * Cache node resource Azure XCid. + */ + private String xCid; + + /* + * Cache node resource flag for determining if managed by enterprise as boolean. + */ + private Boolean isEnterpriseManaged; + + /* + * Cache node resource create async operation Id. + */ + private String createAsyncOperationId; + + /* + * Cache node resource deletion async operation Id. + */ + private String deleteAsyncOperationId; + + /* + * Cache node resource customer resource client tenant Id of subscription. + */ + private String clientTenantId; + + /* + * Cache node resource category. + */ + private String category; + + /* + * Cache node resource release version. + */ + private Integer releaseVersion; + + /* + * Cache node resource last sync timestamp. + */ + private OffsetDateTime lastSyncWithAzureTimestamp; + + /* + * Cache node resource last backend updated timestamp. + */ + private OffsetDateTime lastUpdatedTimestamp; + + /* + * Cache node resource attempts to sync with Azure. + */ + private Integer synchWithAzureAttemptsCount; + + /* + * Cache node resource container configuration details. + */ + private String containerConfigurations; + + /* + * Cache node resource comma separated values of Cidrs. + */ + private List cidrCsv; + + /* + * Cache node resource last Cidr Csv update timestamp + */ + private OffsetDateTime cidrCsvLastUpdateTime; + + /* + * Cache node resource last Bgp Cidr Csv update timestamp + */ + private OffsetDateTime bgpCidrCsvLastUpdateTime; + + /* + * Cache node resource last Bgp report timestamp. + */ + private OffsetDateTime bgpLastReportedTime; + + /* + * Cache node resource Bgp review state string text in detail. + */ + private String bgpReviewStateText; + + /* + * Cache node resource Bgp review state string text. + */ + private BgpReviewStateEnum bgpReviewState; + + /* + * Cache node resource Bgp review feedback text. + */ + private String bgpReviewFeedback; + + /* + * Cache node resource Bgp update count. + */ + private Integer bgpNumberOfTimesUpdated; + + /* + * Cache node resource Bgp record count. + */ + private Integer bgpNumberOfRecords; + + /* + * Cache node resource Bgp block count. + */ + private Integer bgpCidrBlocksCount; + + /* + * Cache node resource total addressable space defined by Bgp and Cidr Csv blocks. + */ + private Integer bgpAddressSpace; + + /* + * Cache node resource flag for determining if customer will be migrated. + */ + private Boolean shouldMigrate; + + /* + * Cache node resource bytes truncated from Bgp output file. + */ + private Integer bgpFileBytesTruncated; + + /* + * Cache node resource current Cidr range precedence selection type. + */ + private Integer cidrSelectionType; + + /* + * Cache node resource flag for indicating the cache node resource is frozen (not selectable, not editable in UI). + */ + private Boolean isFrozen; + + /* + * Cache node resource review process state as integer + */ + private Integer reviewState; + + /* + * Cache node resource review state text. + */ + private String reviewStateText; + + /* + * Cache node resource review feedback text. + */ + private String reviewFeedback; + + /* + * Cache node resource configuration state. + */ + private ConfigurationState configurationState; + + /* + * Cache node resource configuration state text. + */ + private String configurationStateText; + + /* + * Cache node resource total addressable space defined by the Cidr Csv block. + */ + private Integer addressSpace; + + /* + * Cache node resource Mcc container deployment worker connection count. + */ + private Integer workerConnections; + + /* + * Cache node resource last updated Mcc container deployment worker connection count timestamp. + */ + private OffsetDateTime workerConnectionsLastUpdatedDateTime; + + /* + * Cache node resource Mcc container configuration details re-sync trigger. + */ + private Integer containerResyncTrigger; + + /* + * Cache node resource Mcc Container Id Uri. + */ + private String imageUri; + + /* + * FQDN(fully qualified domain name) value of the mcc cache node + */ + private String fullyQualifiedDomainName; + + /* + * Auto Update Ring Type which is slow or fast etc. + */ + private AutoUpdateRingType autoUpdateRingType; + + /* + * Customer requested week of month for mcc install of auto update cycle + */ + private Integer autoUpdateRequestedWeek; + + /* + * Customer requested day of week for mcc install of auto update cycle + */ + private Integer autoUpdateRequestedDay; + + /* + * Customer requested time of the day for mcc install of auto update cycle, should be hh:mm + */ + private String autoUpdateRequestedTime; + + /** + * Creates an instance of CacheNodeEntity class. + */ + public CacheNodeEntity() { + } + + /** + * Get the fullyQualifiedResourceId property: Cache node resource Azure fully qualified resource Id. + * + * @return the fullyQualifiedResourceId value. + */ + public String fullyQualifiedResourceId() { + return this.fullyQualifiedResourceId; + } + + /** + * Set the fullyQualifiedResourceId property: Cache node resource Azure fully qualified resource Id. + * + * @param fullyQualifiedResourceId the fullyQualifiedResourceId value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withFullyQualifiedResourceId(String fullyQualifiedResourceId) { + this.fullyQualifiedResourceId = fullyQualifiedResourceId; + return this; + } + + /** + * Get the customerId property: Cache node resource customer resource GUID Id. + * + * @return the customerId value. + */ + public String customerId() { + return this.customerId; + } + + /** + * Get the customerName property: Cache node resource customer resource name. + * + * @return the customerName value. + */ + public String customerName() { + return this.customerName; + } + + /** + * Set the customerName property: Cache node resource customer resource name. + * + * @param customerName the customerName value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withCustomerName(String customerName) { + this.customerName = customerName; + return this; + } + + /** + * Get the ipAddress property: Cache node resource Ip address. + * + * @return the ipAddress value. + */ + public String ipAddress() { + return this.ipAddress; + } + + /** + * Set the ipAddress property: Cache node resource Ip address. + * + * @param ipAddress the ipAddress value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Get the customerIndex property: Cache node resource customer index as string. + * + * @return the customerIndex value. + */ + public String customerIndex() { + return this.customerIndex; + } + + /** + * Set the customerIndex property: Cache node resource customer index as string. + * + * @param customerIndex the customerIndex value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withCustomerIndex(String customerIndex) { + this.customerIndex = customerIndex; + return this; + } + + /** + * Get the cacheNodeId property: Cache node resource identifier of the cache node. + * + * @return the cacheNodeId value. + */ + public String cacheNodeId() { + return this.cacheNodeId; + } + + /** + * Set the cacheNodeId property: Cache node resource identifier of the cache node. + * + * @param cacheNodeId the cacheNodeId value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withCacheNodeId(String cacheNodeId) { + this.cacheNodeId = cacheNodeId; + return this; + } + + /** + * Get the cacheNodeName property: Cache node resource name. + * + * @return the cacheNodeName value. + */ + public String cacheNodeName() { + return this.cacheNodeName; + } + + /** + * Set the cacheNodeName property: Cache node resource name. + * + * @param cacheNodeName the cacheNodeName value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withCacheNodeName(String cacheNodeName) { + this.cacheNodeName = cacheNodeName; + return this; + } + + /** + * Get the customerAsn property: Cache node resource customer resource Asn (autonomous system number). + * + * @return the customerAsn value. + */ + public Integer customerAsn() { + return this.customerAsn; + } + + /** + * Set the customerAsn property: Cache node resource customer resource Asn (autonomous system number). + * + * @param customerAsn the customerAsn value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withCustomerAsn(Integer customerAsn) { + this.customerAsn = customerAsn; + return this; + } + + /** + * Get the isEnabled property: Cache node resource flag for indicating if cache node is enabled. + * + * @return the isEnabled value. + */ + public Boolean isEnabled() { + return this.isEnabled; + } + + /** + * Set the isEnabled property: Cache node resource flag for indicating if cache node is enabled. + * + * @param isEnabled the isEnabled value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withIsEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * Get the maxAllowableEgressInMbps property: Cache node resource maximum allowed egress in Mbps. + * + * @return the maxAllowableEgressInMbps value. + */ + public Integer maxAllowableEgressInMbps() { + return this.maxAllowableEgressInMbps; + } + + /** + * Set the maxAllowableEgressInMbps property: Cache node resource maximum allowed egress in Mbps. + * + * @param maxAllowableEgressInMbps the maxAllowableEgressInMbps value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withMaxAllowableEgressInMbps(Integer maxAllowableEgressInMbps) { + this.maxAllowableEgressInMbps = maxAllowableEgressInMbps; + return this; + } + + /** + * Get the maxAllowableProbability property: Cache node resource maximum allowed probability of egress. + * + * @return the maxAllowableProbability value. + */ + public Double maxAllowableProbability() { + return this.maxAllowableProbability; + } + + /** + * Get the xCid property: Cache node resource Azure XCid. + * + * @return the xCid value. + */ + public String xCid() { + return this.xCid; + } + + /** + * Get the isEnterpriseManaged property: Cache node resource flag for determining if managed by enterprise as + * boolean. + * + * @return the isEnterpriseManaged value. + */ + public Boolean isEnterpriseManaged() { + return this.isEnterpriseManaged; + } + + /** + * Set the isEnterpriseManaged property: Cache node resource flag for determining if managed by enterprise as + * boolean. + * + * @param isEnterpriseManaged the isEnterpriseManaged value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withIsEnterpriseManaged(Boolean isEnterpriseManaged) { + this.isEnterpriseManaged = isEnterpriseManaged; + return this; + } + + /** + * Get the createAsyncOperationId property: Cache node resource create async operation Id. + * + * @return the createAsyncOperationId value. + */ + public String createAsyncOperationId() { + return this.createAsyncOperationId; + } + + /** + * Get the deleteAsyncOperationId property: Cache node resource deletion async operation Id. + * + * @return the deleteAsyncOperationId value. + */ + public String deleteAsyncOperationId() { + return this.deleteAsyncOperationId; + } + + /** + * Get the clientTenantId property: Cache node resource customer resource client tenant Id of subscription. + * + * @return the clientTenantId value. + */ + public String clientTenantId() { + return this.clientTenantId; + } + + /** + * Get the category property: Cache node resource category. + * + * @return the category value. + */ + public String category() { + return this.category; + } + + /** + * Get the releaseVersion property: Cache node resource release version. + * + * @return the releaseVersion value. + */ + public Integer releaseVersion() { + return this.releaseVersion; + } + + /** + * Get the lastSyncWithAzureTimestamp property: Cache node resource last sync timestamp. + * + * @return the lastSyncWithAzureTimestamp value. + */ + public OffsetDateTime lastSyncWithAzureTimestamp() { + return this.lastSyncWithAzureTimestamp; + } + + /** + * Get the lastUpdatedTimestamp property: Cache node resource last backend updated timestamp. + * + * @return the lastUpdatedTimestamp value. + */ + public OffsetDateTime lastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * Get the synchWithAzureAttemptsCount property: Cache node resource attempts to sync with Azure. + * + * @return the synchWithAzureAttemptsCount value. + */ + public Integer synchWithAzureAttemptsCount() { + return this.synchWithAzureAttemptsCount; + } + + /** + * Get the containerConfigurations property: Cache node resource container configuration details. + * + * @return the containerConfigurations value. + */ + public String containerConfigurations() { + return this.containerConfigurations; + } + + /** + * Get the cidrCsv property: Cache node resource comma separated values of Cidrs. + * + * @return the cidrCsv value. + */ + public List cidrCsv() { + return this.cidrCsv; + } + + /** + * Set the cidrCsv property: Cache node resource comma separated values of Cidrs. + * + * @param cidrCsv the cidrCsv value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withCidrCsv(List cidrCsv) { + this.cidrCsv = cidrCsv; + return this; + } + + /** + * Get the cidrCsvLastUpdateTime property: Cache node resource last Cidr Csv update timestamp. + * + * @return the cidrCsvLastUpdateTime value. + */ + public OffsetDateTime cidrCsvLastUpdateTime() { + return this.cidrCsvLastUpdateTime; + } + + /** + * Get the bgpCidrCsvLastUpdateTime property: Cache node resource last Bgp Cidr Csv update timestamp. + * + * @return the bgpCidrCsvLastUpdateTime value. + */ + public OffsetDateTime bgpCidrCsvLastUpdateTime() { + return this.bgpCidrCsvLastUpdateTime; + } + + /** + * Get the bgpLastReportedTime property: Cache node resource last Bgp report timestamp. + * + * @return the bgpLastReportedTime value. + */ + public OffsetDateTime bgpLastReportedTime() { + return this.bgpLastReportedTime; + } + + /** + * Get the bgpReviewStateText property: Cache node resource Bgp review state string text in detail. + * + * @return the bgpReviewStateText value. + */ + public String bgpReviewStateText() { + return this.bgpReviewStateText; + } + + /** + * Get the bgpReviewState property: Cache node resource Bgp review state string text. + * + * @return the bgpReviewState value. + */ + public BgpReviewStateEnum bgpReviewState() { + return this.bgpReviewState; + } + + /** + * Get the bgpReviewFeedback property: Cache node resource Bgp review feedback text. + * + * @return the bgpReviewFeedback value. + */ + public String bgpReviewFeedback() { + return this.bgpReviewFeedback; + } + + /** + * Get the bgpNumberOfTimesUpdated property: Cache node resource Bgp update count. + * + * @return the bgpNumberOfTimesUpdated value. + */ + public Integer bgpNumberOfTimesUpdated() { + return this.bgpNumberOfTimesUpdated; + } + + /** + * Get the bgpNumberOfRecords property: Cache node resource Bgp record count. + * + * @return the bgpNumberOfRecords value. + */ + public Integer bgpNumberOfRecords() { + return this.bgpNumberOfRecords; + } + + /** + * Get the bgpCidrBlocksCount property: Cache node resource Bgp block count. + * + * @return the bgpCidrBlocksCount value. + */ + public Integer bgpCidrBlocksCount() { + return this.bgpCidrBlocksCount; + } + + /** + * Get the bgpAddressSpace property: Cache node resource total addressable space defined by Bgp and Cidr Csv blocks. + * + * @return the bgpAddressSpace value. + */ + public Integer bgpAddressSpace() { + return this.bgpAddressSpace; + } + + /** + * Get the shouldMigrate property: Cache node resource flag for determining if customer will be migrated. + * + * @return the shouldMigrate value. + */ + public Boolean shouldMigrate() { + return this.shouldMigrate; + } + + /** + * Set the shouldMigrate property: Cache node resource flag for determining if customer will be migrated. + * + * @param shouldMigrate the shouldMigrate value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withShouldMigrate(Boolean shouldMigrate) { + this.shouldMigrate = shouldMigrate; + return this; + } + + /** + * Get the bgpFileBytesTruncated property: Cache node resource bytes truncated from Bgp output file. + * + * @return the bgpFileBytesTruncated value. + */ + public Integer bgpFileBytesTruncated() { + return this.bgpFileBytesTruncated; + } + + /** + * Get the cidrSelectionType property: Cache node resource current Cidr range precedence selection type. + * + * @return the cidrSelectionType value. + */ + public Integer cidrSelectionType() { + return this.cidrSelectionType; + } + + /** + * Set the cidrSelectionType property: Cache node resource current Cidr range precedence selection type. + * + * @param cidrSelectionType the cidrSelectionType value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withCidrSelectionType(Integer cidrSelectionType) { + this.cidrSelectionType = cidrSelectionType; + return this; + } + + /** + * Get the isFrozen property: Cache node resource flag for indicating the cache node resource is frozen (not + * selectable, not editable in UI). + * + * @return the isFrozen value. + */ + public Boolean isFrozen() { + return this.isFrozen; + } + + /** + * Get the reviewState property: Cache node resource review process state as integer. + * + * @return the reviewState value. + */ + public Integer reviewState() { + return this.reviewState; + } + + /** + * Get the reviewStateText property: Cache node resource review state text. + * + * @return the reviewStateText value. + */ + public String reviewStateText() { + return this.reviewStateText; + } + + /** + * Get the reviewFeedback property: Cache node resource review feedback text. + * + * @return the reviewFeedback value. + */ + public String reviewFeedback() { + return this.reviewFeedback; + } + + /** + * Get the configurationState property: Cache node resource configuration state. + * + * @return the configurationState value. + */ + public ConfigurationState configurationState() { + return this.configurationState; + } + + /** + * Get the configurationStateText property: Cache node resource configuration state text. + * + * @return the configurationStateText value. + */ + public String configurationStateText() { + return this.configurationStateText; + } + + /** + * Get the addressSpace property: Cache node resource total addressable space defined by the Cidr Csv block. + * + * @return the addressSpace value. + */ + public Integer addressSpace() { + return this.addressSpace; + } + + /** + * Get the workerConnections property: Cache node resource Mcc container deployment worker connection count. + * + * @return the workerConnections value. + */ + public Integer workerConnections() { + return this.workerConnections; + } + + /** + * Get the workerConnectionsLastUpdatedDateTime property: Cache node resource last updated Mcc container deployment + * worker connection count timestamp. + * + * @return the workerConnectionsLastUpdatedDateTime value. + */ + public OffsetDateTime workerConnectionsLastUpdatedDateTime() { + return this.workerConnectionsLastUpdatedDateTime; + } + + /** + * Get the containerResyncTrigger property: Cache node resource Mcc container configuration details re-sync trigger. + * + * @return the containerResyncTrigger value. + */ + public Integer containerResyncTrigger() { + return this.containerResyncTrigger; + } + + /** + * Get the imageUri property: Cache node resource Mcc Container Id Uri. + * + * @return the imageUri value. + */ + public String imageUri() { + return this.imageUri; + } + + /** + * Get the fullyQualifiedDomainName property: FQDN(fully qualified domain name) value of the mcc cache node. + * + * @return the fullyQualifiedDomainName value. + */ + public String fullyQualifiedDomainName() { + return this.fullyQualifiedDomainName; + } + + /** + * Set the fullyQualifiedDomainName property: FQDN(fully qualified domain name) value of the mcc cache node. + * + * @param fullyQualifiedDomainName the fullyQualifiedDomainName value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withFullyQualifiedDomainName(String fullyQualifiedDomainName) { + this.fullyQualifiedDomainName = fullyQualifiedDomainName; + return this; + } + + /** + * Get the autoUpdateRingType property: Auto Update Ring Type which is slow or fast etc. + * + * @return the autoUpdateRingType value. + */ + public AutoUpdateRingType autoUpdateRingType() { + return this.autoUpdateRingType; + } + + /** + * Set the autoUpdateRingType property: Auto Update Ring Type which is slow or fast etc. + * + * @param autoUpdateRingType the autoUpdateRingType value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withAutoUpdateRingType(AutoUpdateRingType autoUpdateRingType) { + this.autoUpdateRingType = autoUpdateRingType; + return this; + } + + /** + * Get the autoUpdateRequestedWeek property: Customer requested week of month for mcc install of auto update cycle. + * + * @return the autoUpdateRequestedWeek value. + */ + public Integer autoUpdateRequestedWeek() { + return this.autoUpdateRequestedWeek; + } + + /** + * Set the autoUpdateRequestedWeek property: Customer requested week of month for mcc install of auto update cycle. + * + * @param autoUpdateRequestedWeek the autoUpdateRequestedWeek value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withAutoUpdateRequestedWeek(Integer autoUpdateRequestedWeek) { + this.autoUpdateRequestedWeek = autoUpdateRequestedWeek; + return this; + } + + /** + * Get the autoUpdateRequestedDay property: Customer requested day of week for mcc install of auto update cycle. + * + * @return the autoUpdateRequestedDay value. + */ + public Integer autoUpdateRequestedDay() { + return this.autoUpdateRequestedDay; + } + + /** + * Set the autoUpdateRequestedDay property: Customer requested day of week for mcc install of auto update cycle. + * + * @param autoUpdateRequestedDay the autoUpdateRequestedDay value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withAutoUpdateRequestedDay(Integer autoUpdateRequestedDay) { + this.autoUpdateRequestedDay = autoUpdateRequestedDay; + return this; + } + + /** + * Get the autoUpdateRequestedTime property: Customer requested time of the day for mcc install of auto update + * cycle, should be hh:mm. + * + * @return the autoUpdateRequestedTime value. + */ + public String autoUpdateRequestedTime() { + return this.autoUpdateRequestedTime; + } + + /** + * Set the autoUpdateRequestedTime property: Customer requested time of the day for mcc install of auto update + * cycle, should be hh:mm. + * + * @param autoUpdateRequestedTime the autoUpdateRequestedTime value to set. + * @return the CacheNodeEntity object itself. + */ + public CacheNodeEntity withAutoUpdateRequestedTime(String autoUpdateRequestedTime) { + this.autoUpdateRequestedTime = autoUpdateRequestedTime; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("fullyQualifiedResourceId", this.fullyQualifiedResourceId); + jsonWriter.writeStringField("customerName", this.customerName); + jsonWriter.writeStringField("ipAddress", this.ipAddress); + jsonWriter.writeStringField("customerIndex", this.customerIndex); + jsonWriter.writeStringField("cacheNodeId", this.cacheNodeId); + jsonWriter.writeStringField("cacheNodeName", this.cacheNodeName); + jsonWriter.writeNumberField("customerAsn", this.customerAsn); + jsonWriter.writeBooleanField("isEnabled", this.isEnabled); + jsonWriter.writeNumberField("maxAllowableEgressInMbps", this.maxAllowableEgressInMbps); + jsonWriter.writeBooleanField("isEnterpriseManaged", this.isEnterpriseManaged); + jsonWriter.writeArrayField("cidrCsv", this.cidrCsv, (writer, element) -> writer.writeString(element)); + jsonWriter.writeBooleanField("shouldMigrate", this.shouldMigrate); + jsonWriter.writeNumberField("cidrSelectionType", this.cidrSelectionType); + jsonWriter.writeStringField("fullyQualifiedDomainName", this.fullyQualifiedDomainName); + jsonWriter.writeStringField("autoUpdateRingType", + this.autoUpdateRingType == null ? null : this.autoUpdateRingType.toString()); + jsonWriter.writeNumberField("autoUpdateRequestedWeek", this.autoUpdateRequestedWeek); + jsonWriter.writeNumberField("autoUpdateRequestedDay", this.autoUpdateRequestedDay); + jsonWriter.writeStringField("autoUpdateRequestedTime", this.autoUpdateRequestedTime); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CacheNodeEntity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CacheNodeEntity if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the CacheNodeEntity. + */ + public static CacheNodeEntity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CacheNodeEntity deserializedCacheNodeEntity = new CacheNodeEntity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("fullyQualifiedResourceId".equals(fieldName)) { + deserializedCacheNodeEntity.fullyQualifiedResourceId = reader.getString(); + } else if ("customerId".equals(fieldName)) { + deserializedCacheNodeEntity.customerId = reader.getString(); + } else if ("customerName".equals(fieldName)) { + deserializedCacheNodeEntity.customerName = reader.getString(); + } else if ("ipAddress".equals(fieldName)) { + deserializedCacheNodeEntity.ipAddress = reader.getString(); + } else if ("customerIndex".equals(fieldName)) { + deserializedCacheNodeEntity.customerIndex = reader.getString(); + } else if ("cacheNodeId".equals(fieldName)) { + deserializedCacheNodeEntity.cacheNodeId = reader.getString(); + } else if ("cacheNodeName".equals(fieldName)) { + deserializedCacheNodeEntity.cacheNodeName = reader.getString(); + } else if ("customerAsn".equals(fieldName)) { + deserializedCacheNodeEntity.customerAsn = reader.getNullable(JsonReader::getInt); + } else if ("isEnabled".equals(fieldName)) { + deserializedCacheNodeEntity.isEnabled = reader.getNullable(JsonReader::getBoolean); + } else if ("maxAllowableEgressInMbps".equals(fieldName)) { + deserializedCacheNodeEntity.maxAllowableEgressInMbps = reader.getNullable(JsonReader::getInt); + } else if ("maxAllowableProbability".equals(fieldName)) { + deserializedCacheNodeEntity.maxAllowableProbability = reader.getNullable(JsonReader::getDouble); + } else if ("xCid".equals(fieldName)) { + deserializedCacheNodeEntity.xCid = reader.getString(); + } else if ("isEnterpriseManaged".equals(fieldName)) { + deserializedCacheNodeEntity.isEnterpriseManaged = reader.getNullable(JsonReader::getBoolean); + } else if ("createAsyncOperationId".equals(fieldName)) { + deserializedCacheNodeEntity.createAsyncOperationId = reader.getString(); + } else if ("deleteAsyncOperationId".equals(fieldName)) { + deserializedCacheNodeEntity.deleteAsyncOperationId = reader.getString(); + } else if ("clientTenantId".equals(fieldName)) { + deserializedCacheNodeEntity.clientTenantId = reader.getString(); + } else if ("category".equals(fieldName)) { + deserializedCacheNodeEntity.category = reader.getString(); + } else if ("releaseVersion".equals(fieldName)) { + deserializedCacheNodeEntity.releaseVersion = reader.getNullable(JsonReader::getInt); + } else if ("lastSyncWithAzureTimestamp".equals(fieldName)) { + deserializedCacheNodeEntity.lastSyncWithAzureTimestamp = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("lastUpdatedTimestamp".equals(fieldName)) { + deserializedCacheNodeEntity.lastUpdatedTimestamp = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("synchWithAzureAttemptsCount".equals(fieldName)) { + deserializedCacheNodeEntity.synchWithAzureAttemptsCount = reader.getNullable(JsonReader::getInt); + } else if ("containerConfigurations".equals(fieldName)) { + deserializedCacheNodeEntity.containerConfigurations = reader.getString(); + } else if ("cidrCsv".equals(fieldName)) { + List cidrCsv = reader.readArray(reader1 -> reader1.getString()); + deserializedCacheNodeEntity.cidrCsv = cidrCsv; + } else if ("cidrCsvLastUpdateTime".equals(fieldName)) { + deserializedCacheNodeEntity.cidrCsvLastUpdateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("bgpCidrCsvLastUpdateTime".equals(fieldName)) { + deserializedCacheNodeEntity.bgpCidrCsvLastUpdateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("bgpLastReportedTime".equals(fieldName)) { + deserializedCacheNodeEntity.bgpLastReportedTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("bgpReviewStateText".equals(fieldName)) { + deserializedCacheNodeEntity.bgpReviewStateText = reader.getString(); + } else if ("bgpReviewState".equals(fieldName)) { + deserializedCacheNodeEntity.bgpReviewState = BgpReviewStateEnum.fromString(reader.getString()); + } else if ("bgpReviewFeedback".equals(fieldName)) { + deserializedCacheNodeEntity.bgpReviewFeedback = reader.getString(); + } else if ("bgpNumberOfTimesUpdated".equals(fieldName)) { + deserializedCacheNodeEntity.bgpNumberOfTimesUpdated = reader.getNullable(JsonReader::getInt); + } else if ("bgpNumberOfRecords".equals(fieldName)) { + deserializedCacheNodeEntity.bgpNumberOfRecords = reader.getNullable(JsonReader::getInt); + } else if ("bgpCidrBlocksCount".equals(fieldName)) { + deserializedCacheNodeEntity.bgpCidrBlocksCount = reader.getNullable(JsonReader::getInt); + } else if ("bgpAddressSpace".equals(fieldName)) { + deserializedCacheNodeEntity.bgpAddressSpace = reader.getNullable(JsonReader::getInt); + } else if ("shouldMigrate".equals(fieldName)) { + deserializedCacheNodeEntity.shouldMigrate = reader.getNullable(JsonReader::getBoolean); + } else if ("bgpFileBytesTruncated".equals(fieldName)) { + deserializedCacheNodeEntity.bgpFileBytesTruncated = reader.getNullable(JsonReader::getInt); + } else if ("cidrSelectionType".equals(fieldName)) { + deserializedCacheNodeEntity.cidrSelectionType = reader.getNullable(JsonReader::getInt); + } else if ("isFrozen".equals(fieldName)) { + deserializedCacheNodeEntity.isFrozen = reader.getNullable(JsonReader::getBoolean); + } else if ("reviewState".equals(fieldName)) { + deserializedCacheNodeEntity.reviewState = reader.getNullable(JsonReader::getInt); + } else if ("reviewStateText".equals(fieldName)) { + deserializedCacheNodeEntity.reviewStateText = reader.getString(); + } else if ("reviewFeedback".equals(fieldName)) { + deserializedCacheNodeEntity.reviewFeedback = reader.getString(); + } else if ("configurationState".equals(fieldName)) { + deserializedCacheNodeEntity.configurationState = ConfigurationState.fromString(reader.getString()); + } else if ("configurationStateText".equals(fieldName)) { + deserializedCacheNodeEntity.configurationStateText = reader.getString(); + } else if ("addressSpace".equals(fieldName)) { + deserializedCacheNodeEntity.addressSpace = reader.getNullable(JsonReader::getInt); + } else if ("workerConnections".equals(fieldName)) { + deserializedCacheNodeEntity.workerConnections = reader.getNullable(JsonReader::getInt); + } else if ("workerConnectionsLastUpdatedDateTime".equals(fieldName)) { + deserializedCacheNodeEntity.workerConnectionsLastUpdatedDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("containerResyncTrigger".equals(fieldName)) { + deserializedCacheNodeEntity.containerResyncTrigger = reader.getNullable(JsonReader::getInt); + } else if ("imageUri".equals(fieldName)) { + deserializedCacheNodeEntity.imageUri = reader.getString(); + } else if ("fullyQualifiedDomainName".equals(fieldName)) { + deserializedCacheNodeEntity.fullyQualifiedDomainName = reader.getString(); + } else if ("autoUpdateRingType".equals(fieldName)) { + deserializedCacheNodeEntity.autoUpdateRingType = AutoUpdateRingType.fromString(reader.getString()); + } else if ("autoUpdateRequestedWeek".equals(fieldName)) { + deserializedCacheNodeEntity.autoUpdateRequestedWeek = reader.getNullable(JsonReader::getInt); + } else if ("autoUpdateRequestedDay".equals(fieldName)) { + deserializedCacheNodeEntity.autoUpdateRequestedDay = reader.getNullable(JsonReader::getInt); + } else if ("autoUpdateRequestedTime".equals(fieldName)) { + deserializedCacheNodeEntity.autoUpdateRequestedTime = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCacheNodeEntity; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java new file mode 100644 index 0000000000000..91ebf57083f5c --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Mcc cache node resource install script properties. + */ +@Immutable +public final class CacheNodeInstallProperties implements JsonSerializable { + /* + * Mcc customer resource Id. + */ + private String customerId; + + /* + * Mcc cache node resource Id. + */ + private String cacheNodeId; + + /* + * Mcc primary account key. Internal to Mcc. + */ + private String primaryAccountKey; + + /* + * Mcc secondary account key. Internal to Mcc. + */ + private String secondaryAccountKey; + + /* + * Mcc Iot Central temporary device registration key, used once. + */ + private String registrationKey; + + /** + * Creates an instance of CacheNodeInstallProperties class. + */ + private CacheNodeInstallProperties() { + } + + /** + * Get the customerId property: Mcc customer resource Id. + * + * @return the customerId value. + */ + public String customerId() { + return this.customerId; + } + + /** + * Get the cacheNodeId property: Mcc cache node resource Id. + * + * @return the cacheNodeId value. + */ + public String cacheNodeId() { + return this.cacheNodeId; + } + + /** + * Get the primaryAccountKey property: Mcc primary account key. Internal to Mcc. + * + * @return the primaryAccountKey value. + */ + public String primaryAccountKey() { + return this.primaryAccountKey; + } + + /** + * Get the secondaryAccountKey property: Mcc secondary account key. Internal to Mcc. + * + * @return the secondaryAccountKey value. + */ + public String secondaryAccountKey() { + return this.secondaryAccountKey; + } + + /** + * Get the registrationKey property: Mcc Iot Central temporary device registration key, used once. + * + * @return the registrationKey value. + */ + public String registrationKey() { + return this.registrationKey; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("customerId", this.customerId); + jsonWriter.writeStringField("cacheNodeId", this.cacheNodeId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CacheNodeInstallProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CacheNodeInstallProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CacheNodeInstallProperties. + */ + public static CacheNodeInstallProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CacheNodeInstallProperties deserializedCacheNodeInstallProperties = new CacheNodeInstallProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("customerId".equals(fieldName)) { + deserializedCacheNodeInstallProperties.customerId = reader.getString(); + } else if ("cacheNodeId".equals(fieldName)) { + deserializedCacheNodeInstallProperties.cacheNodeId = reader.getString(); + } else if ("primaryAccountKey".equals(fieldName)) { + deserializedCacheNodeInstallProperties.primaryAccountKey = reader.getString(); + } else if ("secondaryAccountKey".equals(fieldName)) { + deserializedCacheNodeInstallProperties.secondaryAccountKey = reader.getString(); + } else if ("registrationKey".equals(fieldName)) { + deserializedCacheNodeInstallProperties.registrationKey = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCacheNodeInstallProperties; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeOldResponse.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeOldResponse.java new file mode 100644 index 0000000000000..429e10dd89ec0 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeOldResponse.java @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.exception.ManagementError; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Model representing Cache Node for ConnectedCache resource. + */ +@Fluent +public final class CacheNodeOldResponse implements JsonSerializable { + /* + * The provisioned state of the resource + */ + private ProvisioningState provisioningState; + + /* + * statusCode used to get code details of Mcc response object + */ + private String statusCode; + + /* + * statusText used to get status details in string format of Mcc response object + */ + private String statusText; + + /* + * statusDetails used to get inner details of Mcc response object + */ + private String statusDetails; + + /* + * status of the HTTP error code + */ + private String status; + + /* + * The error details + */ + private ManagementError error; + + /** + * Creates an instance of CacheNodeOldResponse class. + */ + public CacheNodeOldResponse() { + } + + /** + * Get the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the statusCode property: statusCode used to get code details of Mcc response object. + * + * @return the statusCode value. + */ + public String statusCode() { + return this.statusCode; + } + + /** + * Set the statusCode property: statusCode used to get code details of Mcc response object. + * + * @param statusCode the statusCode value to set. + * @return the CacheNodeOldResponse object itself. + */ + public CacheNodeOldResponse withStatusCode(String statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Get the statusText property: statusText used to get status details in string format of Mcc response object. + * + * @return the statusText value. + */ + public String statusText() { + return this.statusText; + } + + /** + * Set the statusText property: statusText used to get status details in string format of Mcc response object. + * + * @param statusText the statusText value to set. + * @return the CacheNodeOldResponse object itself. + */ + public CacheNodeOldResponse withStatusText(String statusText) { + this.statusText = statusText; + return this; + } + + /** + * Get the statusDetails property: statusDetails used to get inner details of Mcc response object. + * + * @return the statusDetails value. + */ + public String statusDetails() { + return this.statusDetails; + } + + /** + * Set the statusDetails property: statusDetails used to get inner details of Mcc response object. + * + * @param statusDetails the statusDetails value to set. + * @return the CacheNodeOldResponse object itself. + */ + public CacheNodeOldResponse withStatusDetails(String statusDetails) { + this.statusDetails = statusDetails; + return this; + } + + /** + * Get the status property: status of the HTTP error code. + * + * @return the status value. + */ + public String status() { + return this.status; + } + + /** + * Get the error property: The error details. + * + * @return the error value. + */ + public ManagementError error() { + return this.error; + } + + /** + * Set the error property: The error details. + * + * @param error the error value to set. + * @return the CacheNodeOldResponse object itself. + */ + public CacheNodeOldResponse withError(ManagementError error) { + this.error = error; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("statusCode", this.statusCode); + jsonWriter.writeStringField("statusText", this.statusText); + jsonWriter.writeStringField("statusDetails", this.statusDetails); + jsonWriter.writeJsonField("error", this.error); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CacheNodeOldResponse from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CacheNodeOldResponse if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the CacheNodeOldResponse. + */ + public static CacheNodeOldResponse fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CacheNodeOldResponse deserializedCacheNodeOldResponse = new CacheNodeOldResponse(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedCacheNodeOldResponse.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("statusCode".equals(fieldName)) { + deserializedCacheNodeOldResponse.statusCode = reader.getString(); + } else if ("statusText".equals(fieldName)) { + deserializedCacheNodeOldResponse.statusText = reader.getString(); + } else if ("statusDetails".equals(fieldName)) { + deserializedCacheNodeOldResponse.statusDetails = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedCacheNodeOldResponse.status = reader.getString(); + } else if ("error".equals(fieldName)) { + deserializedCacheNodeOldResponse.error = ManagementError.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCacheNodeOldResponse; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodePreviewResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodePreviewResource.java new file mode 100644 index 0000000000000..10e1adb6b071b --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodePreviewResource.java @@ -0,0 +1,252 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; +import java.util.Map; + +/** + * An immutable client-side representation of CacheNodePreviewResource. + */ +public interface CacheNodePreviewResource { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CacheNodeOldResponse properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner object. + * + * @return the inner object. + */ + CacheNodePreviewResourceInner innerModel(); + + /** + * The entirety of the CacheNodePreviewResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The CacheNodePreviewResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the CacheNodePreviewResource definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the CacheNodePreviewResource definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the CacheNodePreviewResource definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the CacheNodePreviewResource definition which contains all the minimum required properties for + * the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + CacheNodePreviewResource create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + CacheNodePreviewResource create(Context context); + } + + /** + * The stage of the CacheNodePreviewResource definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the CacheNodePreviewResource definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(CacheNodeOldResponse properties); + } + } + + /** + * Begins update for the CacheNodePreviewResource resource. + * + * @return the stage of resource update. + */ + CacheNodePreviewResource.Update update(); + + /** + * The template for CacheNodePreviewResource update. + */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + CacheNodePreviewResource apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + CacheNodePreviewResource apply(Context context); + } + + /** + * The CacheNodePreviewResource update stages. + */ + interface UpdateStages { + /** + * The stage of the CacheNodePreviewResource update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + CacheNodePreviewResource refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + CacheNodePreviewResource refresh(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeProperty.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeProperty.java new file mode 100644 index 0000000000000..b5b65fb33bb30 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeProperty.java @@ -0,0 +1,274 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.exception.ManagementError; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Model representing an Mcc cache node connectedCache resource. + */ +@Fluent +public final class CacheNodeProperty implements JsonSerializable { + /* + * The provisioned state of the resource + */ + private ProvisioningState provisioningState; + + /* + * Mcc cache node resource (cache node entity). + */ + private CacheNodeEntity cacheNode; + + /* + * Mcc cache node resource additional properties. + */ + private AdditionalCacheNodeProperties additionalCacheNodeProperties; + + /* + * Mcc response status code. + */ + private String statusCode; + + /* + * Mcc response status text as string for retrieving status details. + */ + private String statusText; + + /* + * Mcc response status details for retrieving response inner details. + */ + private String statusDetails; + + /* + * HTTP error status code. + */ + private String status; + + /* + * Mcc response error details. + */ + private ManagementError error; + + /** + * Creates an instance of CacheNodeProperty class. + */ + public CacheNodeProperty() { + } + + /** + * Get the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the cacheNode property: Mcc cache node resource (cache node entity). + * + * @return the cacheNode value. + */ + public CacheNodeEntity cacheNode() { + return this.cacheNode; + } + + /** + * Set the cacheNode property: Mcc cache node resource (cache node entity). + * + * @param cacheNode the cacheNode value to set. + * @return the CacheNodeProperty object itself. + */ + public CacheNodeProperty withCacheNode(CacheNodeEntity cacheNode) { + this.cacheNode = cacheNode; + return this; + } + + /** + * Get the additionalCacheNodeProperties property: Mcc cache node resource additional properties. + * + * @return the additionalCacheNodeProperties value. + */ + public AdditionalCacheNodeProperties additionalCacheNodeProperties() { + return this.additionalCacheNodeProperties; + } + + /** + * Set the additionalCacheNodeProperties property: Mcc cache node resource additional properties. + * + * @param additionalCacheNodeProperties the additionalCacheNodeProperties value to set. + * @return the CacheNodeProperty object itself. + */ + public CacheNodeProperty + withAdditionalCacheNodeProperties(AdditionalCacheNodeProperties additionalCacheNodeProperties) { + this.additionalCacheNodeProperties = additionalCacheNodeProperties; + return this; + } + + /** + * Get the statusCode property: Mcc response status code. + * + * @return the statusCode value. + */ + public String statusCode() { + return this.statusCode; + } + + /** + * Set the statusCode property: Mcc response status code. + * + * @param statusCode the statusCode value to set. + * @return the CacheNodeProperty object itself. + */ + public CacheNodeProperty withStatusCode(String statusCode) { + this.statusCode = statusCode; + return this; + } + + /** + * Get the statusText property: Mcc response status text as string for retrieving status details. + * + * @return the statusText value. + */ + public String statusText() { + return this.statusText; + } + + /** + * Set the statusText property: Mcc response status text as string for retrieving status details. + * + * @param statusText the statusText value to set. + * @return the CacheNodeProperty object itself. + */ + public CacheNodeProperty withStatusText(String statusText) { + this.statusText = statusText; + return this; + } + + /** + * Get the statusDetails property: Mcc response status details for retrieving response inner details. + * + * @return the statusDetails value. + */ + public String statusDetails() { + return this.statusDetails; + } + + /** + * Set the statusDetails property: Mcc response status details for retrieving response inner details. + * + * @param statusDetails the statusDetails value to set. + * @return the CacheNodeProperty object itself. + */ + public CacheNodeProperty withStatusDetails(String statusDetails) { + this.statusDetails = statusDetails; + return this; + } + + /** + * Get the status property: HTTP error status code. + * + * @return the status value. + */ + public String status() { + return this.status; + } + + /** + * Get the error property: Mcc response error details. + * + * @return the error value. + */ + public ManagementError error() { + return this.error; + } + + /** + * Set the error property: Mcc response error details. + * + * @param error the error value to set. + * @return the CacheNodeProperty object itself. + */ + public CacheNodeProperty withError(ManagementError error) { + this.error = error; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (cacheNode() != null) { + cacheNode().validate(); + } + if (additionalCacheNodeProperties() != null) { + additionalCacheNodeProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("cacheNode", this.cacheNode); + jsonWriter.writeJsonField("additionalCacheNodeProperties", this.additionalCacheNodeProperties); + jsonWriter.writeStringField("statusCode", this.statusCode); + jsonWriter.writeStringField("statusText", this.statusText); + jsonWriter.writeStringField("statusDetails", this.statusDetails); + jsonWriter.writeJsonField("error", this.error); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CacheNodeProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CacheNodeProperty if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the CacheNodeProperty. + */ + public static CacheNodeProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CacheNodeProperty deserializedCacheNodeProperty = new CacheNodeProperty(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedCacheNodeProperty.provisioningState = ProvisioningState.fromString(reader.getString()); + } else if ("cacheNode".equals(fieldName)) { + deserializedCacheNodeProperty.cacheNode = CacheNodeEntity.fromJson(reader); + } else if ("additionalCacheNodeProperties".equals(fieldName)) { + deserializedCacheNodeProperty.additionalCacheNodeProperties + = AdditionalCacheNodeProperties.fromJson(reader); + } else if ("statusCode".equals(fieldName)) { + deserializedCacheNodeProperty.statusCode = reader.getString(); + } else if ("statusText".equals(fieldName)) { + deserializedCacheNodeProperty.statusText = reader.getString(); + } else if ("statusDetails".equals(fieldName)) { + deserializedCacheNodeProperty.statusDetails = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedCacheNodeProperty.status = reader.getString(); + } else if ("error".equals(fieldName)) { + deserializedCacheNodeProperty.error = ManagementError.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCacheNodeProperty; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodesOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodesOperations.java new file mode 100644 index 0000000000000..4912e3212017c --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodesOperations.java @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of CacheNodesOperations. + */ +public interface CacheNodesOperations { + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context); + + /** + * Retrieves the properties of a cacheNodes. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type. + */ + CacheNodePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, + Context context); + + /** + * Deletes an existing cache Node. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Retrieves the properties of all ConnectedCache. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a CacheNodePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Retrieves the properties of a cacheNodes. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. + */ + CacheNodePreviewResource getById(String id); + + /** + * Retrieves the properties of a cacheNodes. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return concrete tracked resource types can be created by aliasing this type using a specific property type along + * with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes an existing cache Node. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes an existing cache Node. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new CacheNodePreviewResource resource. + * + * @param name resource name. + * @return the first stage of the new CacheNodePreviewResource definition. + */ + CacheNodePreviewResource.DefinitionStages.Blank define(String name); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConfigurationState.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConfigurationState.java new file mode 100644 index 0000000000000..c59aa1a91df9f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConfigurationState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Cache node configuration setup state. + */ +public final class ConfigurationState extends ExpandableStringEnum { + /** + * connected cache setup configured. + */ + public static final ConfigurationState CONFIGURED = fromString("Configured"); + + /** + * connected cache setup not configured. + */ + public static final ConfigurationState NOT_CONFIGURED_IP = fromString("NotConfigured_Ip"); + + /** + * Creates a new instance of ConfigurationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ConfigurationState() { + } + + /** + * Creates or finds a ConfigurationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ConfigurationState. + */ + public static ConfigurationState fromString(String name) { + return fromString(name, ConfigurationState.class); + } + + /** + * Gets known ConfigurationState values. + * + * @return known ConfigurationState values. + */ + public static Collection values() { + return values(ConfigurationState.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConnectedCachePatchResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConnectedCachePatchResource.java new file mode 100644 index 0000000000000..e4b0a69a9a1d3 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ConnectedCachePatchResource.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Mcc PATCH operation properties. + */ +@Fluent +public final class ConnectedCachePatchResource implements JsonSerializable { + /* + * Resource tags. + */ + private Map tags; + + /** + * Creates an instance of ConnectedCachePatchResource class. + */ + public ConnectedCachePatchResource() { + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the ConnectedCachePatchResource object itself. + */ + public ConnectedCachePatchResource withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConnectedCachePatchResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConnectedCachePatchResource if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConnectedCachePatchResource. + */ + public static ConnectedCachePatchResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConnectedCachePatchResource deserializedConnectedCachePatchResource = new ConnectedCachePatchResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedConnectedCachePatchResource.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedConnectedCachePatchResource; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerEntity.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerEntity.java new file mode 100644 index 0000000000000..2557dbf518af8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerEntity.java @@ -0,0 +1,512 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Model representing Customer resource for ConnectedCache resource. + */ +@Fluent +public final class CustomerEntity implements JsonSerializable { + /* + * Customer resource Azure fully qualified resource Id. + */ + private String fullyQualifiedResourceId; + + /* + * Customer resource Guid Id. + */ + private String customerId; + + /* + * Customer resource name. + */ + private String customerName; + + /* + * Customer resource contact email. + */ + private String contactEmail; + + /* + * Customer resource contact phone. + */ + private String contactPhone; + + /* + * Customer resource contact full name. + */ + private String contactName; + + /* + * Customer resource entitlement flag as boolean. + */ + private Boolean isEntitled; + + /* + * Customer resource Mcc release version. + */ + private Integer releaseVersion; + + /* + * Customer resource create async operation Id. + */ + private String createAsyncOperationId; + + /* + * Customer resource deletion async operation Id. + */ + private String deleteAsyncOperationId; + + /* + * Customer resource client tenant Id of subscription. + */ + private String clientTenantId; + + /* + * Customer resource sync attempts. + */ + private Integer synchWithAzureAttemptsCount; + + /* + * Customer resource last Azure sync timestamp. + */ + private OffsetDateTime lastSyncWithAzureTimestamp; + + /* + * Customer resource flag for enterprise management as boolean. + */ + private Boolean isEnterpriseManaged; + + /* + * Customer resource flag for migration. + */ + private Boolean shouldMigrate; + + /* + * Customer resource flag for resending signup code as boolean. + */ + private Boolean resendSignupCode; + + /* + * Customer resource flag for requiring verification of signup code as boolean. + */ + private Boolean verifySignupCode; + + /* + * Customer resource phrase for verifying signup. + */ + private String verifySignupPhrase; + + /** + * Creates an instance of CustomerEntity class. + */ + public CustomerEntity() { + } + + /** + * Get the fullyQualifiedResourceId property: Customer resource Azure fully qualified resource Id. + * + * @return the fullyQualifiedResourceId value. + */ + public String fullyQualifiedResourceId() { + return this.fullyQualifiedResourceId; + } + + /** + * Set the fullyQualifiedResourceId property: Customer resource Azure fully qualified resource Id. + * + * @param fullyQualifiedResourceId the fullyQualifiedResourceId value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withFullyQualifiedResourceId(String fullyQualifiedResourceId) { + this.fullyQualifiedResourceId = fullyQualifiedResourceId; + return this; + } + + /** + * Get the customerId property: Customer resource Guid Id. + * + * @return the customerId value. + */ + public String customerId() { + return this.customerId; + } + + /** + * Get the customerName property: Customer resource name. + * + * @return the customerName value. + */ + public String customerName() { + return this.customerName; + } + + /** + * Set the customerName property: Customer resource name. + * + * @param customerName the customerName value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withCustomerName(String customerName) { + this.customerName = customerName; + return this; + } + + /** + * Get the contactEmail property: Customer resource contact email. + * + * @return the contactEmail value. + */ + public String contactEmail() { + return this.contactEmail; + } + + /** + * Set the contactEmail property: Customer resource contact email. + * + * @param contactEmail the contactEmail value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withContactEmail(String contactEmail) { + this.contactEmail = contactEmail; + return this; + } + + /** + * Get the contactPhone property: Customer resource contact phone. + * + * @return the contactPhone value. + */ + public String contactPhone() { + return this.contactPhone; + } + + /** + * Set the contactPhone property: Customer resource contact phone. + * + * @param contactPhone the contactPhone value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withContactPhone(String contactPhone) { + this.contactPhone = contactPhone; + return this; + } + + /** + * Get the contactName property: Customer resource contact full name. + * + * @return the contactName value. + */ + public String contactName() { + return this.contactName; + } + + /** + * Set the contactName property: Customer resource contact full name. + * + * @param contactName the contactName value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withContactName(String contactName) { + this.contactName = contactName; + return this; + } + + /** + * Get the isEntitled property: Customer resource entitlement flag as boolean. + * + * @return the isEntitled value. + */ + public Boolean isEntitled() { + return this.isEntitled; + } + + /** + * Set the isEntitled property: Customer resource entitlement flag as boolean. + * + * @param isEntitled the isEntitled value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withIsEntitled(Boolean isEntitled) { + this.isEntitled = isEntitled; + return this; + } + + /** + * Get the releaseVersion property: Customer resource Mcc release version. + * + * @return the releaseVersion value. + */ + public Integer releaseVersion() { + return this.releaseVersion; + } + + /** + * Set the releaseVersion property: Customer resource Mcc release version. + * + * @param releaseVersion the releaseVersion value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withReleaseVersion(Integer releaseVersion) { + this.releaseVersion = releaseVersion; + return this; + } + + /** + * Get the createAsyncOperationId property: Customer resource create async operation Id. + * + * @return the createAsyncOperationId value. + */ + public String createAsyncOperationId() { + return this.createAsyncOperationId; + } + + /** + * Get the deleteAsyncOperationId property: Customer resource deletion async operation Id. + * + * @return the deleteAsyncOperationId value. + */ + public String deleteAsyncOperationId() { + return this.deleteAsyncOperationId; + } + + /** + * Get the clientTenantId property: Customer resource client tenant Id of subscription. + * + * @return the clientTenantId value. + */ + public String clientTenantId() { + return this.clientTenantId; + } + + /** + * Set the clientTenantId property: Customer resource client tenant Id of subscription. + * + * @param clientTenantId the clientTenantId value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withClientTenantId(String clientTenantId) { + this.clientTenantId = clientTenantId; + return this; + } + + /** + * Get the synchWithAzureAttemptsCount property: Customer resource sync attempts. + * + * @return the synchWithAzureAttemptsCount value. + */ + public Integer synchWithAzureAttemptsCount() { + return this.synchWithAzureAttemptsCount; + } + + /** + * Get the lastSyncWithAzureTimestamp property: Customer resource last Azure sync timestamp. + * + * @return the lastSyncWithAzureTimestamp value. + */ + public OffsetDateTime lastSyncWithAzureTimestamp() { + return this.lastSyncWithAzureTimestamp; + } + + /** + * Get the isEnterpriseManaged property: Customer resource flag for enterprise management as boolean. + * + * @return the isEnterpriseManaged value. + */ + public Boolean isEnterpriseManaged() { + return this.isEnterpriseManaged; + } + + /** + * Set the isEnterpriseManaged property: Customer resource flag for enterprise management as boolean. + * + * @param isEnterpriseManaged the isEnterpriseManaged value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withIsEnterpriseManaged(Boolean isEnterpriseManaged) { + this.isEnterpriseManaged = isEnterpriseManaged; + return this; + } + + /** + * Get the shouldMigrate property: Customer resource flag for migration. + * + * @return the shouldMigrate value. + */ + public Boolean shouldMigrate() { + return this.shouldMigrate; + } + + /** + * Set the shouldMigrate property: Customer resource flag for migration. + * + * @param shouldMigrate the shouldMigrate value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withShouldMigrate(Boolean shouldMigrate) { + this.shouldMigrate = shouldMigrate; + return this; + } + + /** + * Get the resendSignupCode property: Customer resource flag for resending signup code as boolean. + * + * @return the resendSignupCode value. + */ + public Boolean resendSignupCode() { + return this.resendSignupCode; + } + + /** + * Set the resendSignupCode property: Customer resource flag for resending signup code as boolean. + * + * @param resendSignupCode the resendSignupCode value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withResendSignupCode(Boolean resendSignupCode) { + this.resendSignupCode = resendSignupCode; + return this; + } + + /** + * Get the verifySignupCode property: Customer resource flag for requiring verification of signup code as boolean. + * + * @return the verifySignupCode value. + */ + public Boolean verifySignupCode() { + return this.verifySignupCode; + } + + /** + * Set the verifySignupCode property: Customer resource flag for requiring verification of signup code as boolean. + * + * @param verifySignupCode the verifySignupCode value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withVerifySignupCode(Boolean verifySignupCode) { + this.verifySignupCode = verifySignupCode; + return this; + } + + /** + * Get the verifySignupPhrase property: Customer resource phrase for verifying signup. + * + * @return the verifySignupPhrase value. + */ + public String verifySignupPhrase() { + return this.verifySignupPhrase; + } + + /** + * Set the verifySignupPhrase property: Customer resource phrase for verifying signup. + * + * @param verifySignupPhrase the verifySignupPhrase value to set. + * @return the CustomerEntity object itself. + */ + public CustomerEntity withVerifySignupPhrase(String verifySignupPhrase) { + this.verifySignupPhrase = verifySignupPhrase; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("fullyQualifiedResourceId", this.fullyQualifiedResourceId); + jsonWriter.writeStringField("customerName", this.customerName); + jsonWriter.writeStringField("contactEmail", this.contactEmail); + jsonWriter.writeStringField("contactPhone", this.contactPhone); + jsonWriter.writeStringField("contactName", this.contactName); + jsonWriter.writeBooleanField("isEntitled", this.isEntitled); + jsonWriter.writeNumberField("releaseVersion", this.releaseVersion); + jsonWriter.writeStringField("clientTenantId", this.clientTenantId); + jsonWriter.writeBooleanField("isEnterpriseManaged", this.isEnterpriseManaged); + jsonWriter.writeBooleanField("shouldMigrate", this.shouldMigrate); + jsonWriter.writeBooleanField("resendSignupCode", this.resendSignupCode); + jsonWriter.writeBooleanField("verifySignupCode", this.verifySignupCode); + jsonWriter.writeStringField("verifySignupPhrase", this.verifySignupPhrase); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CustomerEntity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CustomerEntity if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the CustomerEntity. + */ + public static CustomerEntity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CustomerEntity deserializedCustomerEntity = new CustomerEntity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("fullyQualifiedResourceId".equals(fieldName)) { + deserializedCustomerEntity.fullyQualifiedResourceId = reader.getString(); + } else if ("customerId".equals(fieldName)) { + deserializedCustomerEntity.customerId = reader.getString(); + } else if ("customerName".equals(fieldName)) { + deserializedCustomerEntity.customerName = reader.getString(); + } else if ("contactEmail".equals(fieldName)) { + deserializedCustomerEntity.contactEmail = reader.getString(); + } else if ("contactPhone".equals(fieldName)) { + deserializedCustomerEntity.contactPhone = reader.getString(); + } else if ("contactName".equals(fieldName)) { + deserializedCustomerEntity.contactName = reader.getString(); + } else if ("isEntitled".equals(fieldName)) { + deserializedCustomerEntity.isEntitled = reader.getNullable(JsonReader::getBoolean); + } else if ("releaseVersion".equals(fieldName)) { + deserializedCustomerEntity.releaseVersion = reader.getNullable(JsonReader::getInt); + } else if ("createAsyncOperationId".equals(fieldName)) { + deserializedCustomerEntity.createAsyncOperationId = reader.getString(); + } else if ("deleteAsyncOperationId".equals(fieldName)) { + deserializedCustomerEntity.deleteAsyncOperationId = reader.getString(); + } else if ("clientTenantId".equals(fieldName)) { + deserializedCustomerEntity.clientTenantId = reader.getString(); + } else if ("synchWithAzureAttemptsCount".equals(fieldName)) { + deserializedCustomerEntity.synchWithAzureAttemptsCount = reader.getNullable(JsonReader::getInt); + } else if ("lastSyncWithAzureTimestamp".equals(fieldName)) { + deserializedCustomerEntity.lastSyncWithAzureTimestamp = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("isEnterpriseManaged".equals(fieldName)) { + deserializedCustomerEntity.isEnterpriseManaged = reader.getNullable(JsonReader::getBoolean); + } else if ("shouldMigrate".equals(fieldName)) { + deserializedCustomerEntity.shouldMigrate = reader.getNullable(JsonReader::getBoolean); + } else if ("resendSignupCode".equals(fieldName)) { + deserializedCustomerEntity.resendSignupCode = reader.getNullable(JsonReader::getBoolean); + } else if ("verifySignupCode".equals(fieldName)) { + deserializedCustomerEntity.verifySignupCode = reader.getNullable(JsonReader::getBoolean); + } else if ("verifySignupPhrase".equals(fieldName)) { + deserializedCustomerEntity.verifySignupPhrase = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCustomerEntity; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerProperty.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerProperty.java new file mode 100644 index 0000000000000..09f658b70cc22 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerProperty.java @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.exception.ManagementError; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Model representing customer for connectedCache resource. + */ +@Fluent +public final class CustomerProperty implements JsonSerializable { + /* + * The provisioned state of the resource + */ + private ProvisioningState provisioningState; + + /* + * Mcc customer resource (customer entity). + */ + private CustomerEntity customer; + + /* + * Mcc customer resource additional properties. + */ + private AdditionalCustomerProperties additionalCustomerProperties; + + /* + * Mcc response status code. + */ + private String statusCode; + + /* + * Mcc response status text as string for retrieving status details. + */ + private String statusText; + + /* + * Mcc response status details for retrieving response inner details. + */ + private String statusDetails; + + /* + * HTTP error status code. + */ + private String status; + + /* + * Mcc response error details. + */ + private ManagementError error; + + /** + * Creates an instance of CustomerProperty class. + */ + public CustomerProperty() { + } + + /** + * Get the provisioningState property: The provisioned state of the resource. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the customer property: Mcc customer resource (customer entity). + * + * @return the customer value. + */ + public CustomerEntity customer() { + return this.customer; + } + + /** + * Set the customer property: Mcc customer resource (customer entity). + * + * @param customer the customer value to set. + * @return the CustomerProperty object itself. + */ + public CustomerProperty withCustomer(CustomerEntity customer) { + this.customer = customer; + return this; + } + + /** + * Get the additionalCustomerProperties property: Mcc customer resource additional properties. + * + * @return the additionalCustomerProperties value. + */ + public AdditionalCustomerProperties additionalCustomerProperties() { + return this.additionalCustomerProperties; + } + + /** + * Set the additionalCustomerProperties property: Mcc customer resource additional properties. + * + * @param additionalCustomerProperties the additionalCustomerProperties value to set. + * @return the CustomerProperty object itself. + */ + public CustomerProperty + withAdditionalCustomerProperties(AdditionalCustomerProperties additionalCustomerProperties) { + this.additionalCustomerProperties = additionalCustomerProperties; + return this; + } + + /** + * Get the statusCode property: Mcc response status code. + * + * @return the statusCode value. + */ + public String statusCode() { + return this.statusCode; + } + + /** + * Get the statusText property: Mcc response status text as string for retrieving status details. + * + * @return the statusText value. + */ + public String statusText() { + return this.statusText; + } + + /** + * Get the statusDetails property: Mcc response status details for retrieving response inner details. + * + * @return the statusDetails value. + */ + public String statusDetails() { + return this.statusDetails; + } + + /** + * Get the status property: HTTP error status code. + * + * @return the status value. + */ + public String status() { + return this.status; + } + + /** + * Get the error property: Mcc response error details. + * + * @return the error value. + */ + public ManagementError error() { + return this.error; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (customer() != null) { + customer().validate(); + } + if (additionalCustomerProperties() != null) { + additionalCustomerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("customer", this.customer); + jsonWriter.writeJsonField("additionalCustomerProperties", this.additionalCustomerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CustomerProperty from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CustomerProperty if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the CustomerProperty. + */ + public static CustomerProperty fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CustomerProperty deserializedCustomerProperty = new CustomerProperty(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedCustomerProperty.provisioningState = ProvisioningState.fromString(reader.getString()); + } else if ("customer".equals(fieldName)) { + deserializedCustomerProperty.customer = CustomerEntity.fromJson(reader); + } else if ("additionalCustomerProperties".equals(fieldName)) { + deserializedCustomerProperty.additionalCustomerProperties + = AdditionalCustomerProperties.fromJson(reader); + } else if ("statusCode".equals(fieldName)) { + deserializedCustomerProperty.statusCode = reader.getString(); + } else if ("statusText".equals(fieldName)) { + deserializedCustomerProperty.statusText = reader.getString(); + } else if ("statusDetails".equals(fieldName)) { + deserializedCustomerProperty.statusDetails = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedCustomerProperty.status = reader.getString(); + } else if ("error".equals(fieldName)) { + deserializedCustomerProperty.error = ManagementError.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCustomerProperty; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerTransitState.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerTransitState.java new file mode 100644 index 0000000000000..381d7fab4394b --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CustomerTransitState.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Customer resource transit states. + */ +public final class CustomerTransitState extends ExpandableStringEnum { + /** + * do not have transit. + */ + public static final CustomerTransitState NO_TRANSIT = fromString("NoTransit"); + + /** + * transit provider and have own subscribers. + */ + public static final CustomerTransitState COMBINED_TRANSIT = fromString("CombinedTransit"); + + /** + * pure transit provider or network service provider. + */ + public static final CustomerTransitState TRANSIT_ONLY = fromString("TransitOnly"); + + /** + * Creates a new instance of CustomerTransitState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CustomerTransitState() { + } + + /** + * Creates or finds a CustomerTransitState from its string representation. + * + * @param name a name to look for. + * @return the corresponding CustomerTransitState. + */ + public static CustomerTransitState fromString(String name) { + return fromString(name, CustomerTransitState.class); + } + + /** + * Gets known CustomerTransitState values. + * + * @return known CustomerTransitState values. + */ + public static Collection values() { + return values(CustomerTransitState.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CycleType.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CycleType.java new file mode 100644 index 0000000000000..49101a5392c98 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CycleType.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Update Cycle type. + */ +public final class CycleType extends ExpandableStringEnum { + /** + * customer selection of preview update install mcc on their physical vm. + */ + public static final CycleType PREVIEW = fromString("Preview"); + + /** + * customer selection of slow update to install mcc on their physical vm. + */ + public static final CycleType SLOW = fromString("Slow"); + + /** + * customer selection of fast / auto update to install mcc on their physical vm. + */ + public static final CycleType FAST = fromString("Fast"); + + /** + * Creates a new instance of CycleType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CycleType() { + } + + /** + * Creates or finds a CycleType from its string representation. + * + * @param name a name to look for. + * @return the corresponding CycleType. + */ + public static CycleType fromString(String name) { + return fromString(name, CycleType.class); + } + + /** + * Gets known CycleType values. + * + * @return known CycleType values. + */ + public static Collection values() { + return values(CycleType.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseCustomerOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseCustomerOperations.java new file mode 100644 index 0000000000000..44d16fefab10a --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseCustomerOperations.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of EnterpriseCustomerOperations. + */ +public interface EnterpriseCustomerOperations { + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context); + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource. + */ + EnterprisePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, + Context context); + + /** + * Deletes an existing customer Enterprise resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Retrieves the properties of all ConnectedCache enterpriseCustomers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * Retrieves the properties of all ConnectedCaches. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterprisePreviewResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response}. + */ + EnterprisePreviewResource getById(String id); + + /** + * Retrieves the properties of a Enterprise customer. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connectedCache Resource along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes an existing customer Enterprise resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes an existing customer Enterprise resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new EnterprisePreviewResource resource. + * + * @param name resource name. + * @return the first stage of the new EnterprisePreviewResource definition. + */ + EnterprisePreviewResource.DefinitionStages.Blank define(String name); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java new file mode 100644 index 0000000000000..e835e4a675c7e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java @@ -0,0 +1,274 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import java.util.Map; + +/** + * An immutable client-side representation of EnterpriseMccCacheNodeResource. + */ +public interface EnterpriseMccCacheNodeResource { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CacheNodeProperty properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner object. + * + * @return the inner object. + */ + EnterpriseMccCacheNodeResourceInner innerModel(); + + /** + * The entirety of the EnterpriseMccCacheNodeResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The EnterpriseMccCacheNodeResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the EnterpriseMccCacheNodeResource definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the EnterpriseMccCacheNodeResource definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(String location); + } + + /** + * The stage of the EnterpriseMccCacheNodeResource definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, customerResourceName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @return the next definition stage. + */ + WithCreate withExistingEnterpriseMccCustomer(String resourceGroupName, String customerResourceName); + } + + /** + * The stage of the EnterpriseMccCacheNodeResource definition which contains all the minimum required properties + * for the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + EnterpriseMccCacheNodeResource create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + EnterpriseMccCacheNodeResource create(Context context); + } + + /** + * The stage of the EnterpriseMccCacheNodeResource definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the EnterpriseMccCacheNodeResource definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(CacheNodeProperty properties); + } + } + + /** + * Begins update for the EnterpriseMccCacheNodeResource resource. + * + * @return the stage of resource update. + */ + EnterpriseMccCacheNodeResource.Update update(); + + /** + * The template for EnterpriseMccCacheNodeResource update. + */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + EnterpriseMccCacheNodeResource apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + EnterpriseMccCacheNodeResource apply(Context context); + } + + /** + * The EnterpriseMccCacheNodeResource update stages. + */ + interface UpdateStages { + /** + * The stage of the EnterpriseMccCacheNodeResource update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + EnterpriseMccCacheNodeResource refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + EnterpriseMccCacheNodeResource refresh(Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + Response getCacheNodeInstallDetailsWithResponse(Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + MccCacheNodeInstallDetails getCacheNodeInstallDetails(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java new file mode 100644 index 0000000000000..40e26622e79e8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of EnterpriseMccCacheNodesOperations. + */ +public interface EnterpriseMccCacheNodesOperations { + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + EnterpriseMccCacheNodeResource get(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByEnterpriseMccCustomerResource(String resourceGroupName, + String customerResourceName); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCacheNodeResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByEnterpriseMccCustomerResource(String resourceGroupName, + String customerResourceName, Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource information. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + EnterpriseMccCacheNodeResource getById(String id); + + /** + * This api gets ispCacheNode resource information. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new EnterpriseMccCacheNodeResource resource. + * + * @param name resource name. + * @return the first stage of the new EnterpriseMccCacheNodeResource definition. + */ + EnterpriseMccCacheNodeResource.DefinitionStages.Blank define(String name); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomerResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomerResource.java new file mode 100644 index 0000000000000..66ba7079e1469 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomerResource.java @@ -0,0 +1,252 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCustomerResourceInner; +import java.util.Map; + +/** + * An immutable client-side representation of EnterpriseMccCustomerResource. + */ +public interface EnterpriseMccCustomerResource { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CustomerProperty properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCustomerResourceInner object. + * + * @return the inner object. + */ + EnterpriseMccCustomerResourceInner innerModel(); + + /** + * The entirety of the EnterpriseMccCustomerResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The EnterpriseMccCustomerResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the EnterpriseMccCustomerResource definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the EnterpriseMccCustomerResource definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the EnterpriseMccCustomerResource definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the EnterpriseMccCustomerResource definition which contains all the minimum required properties + * for the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + EnterpriseMccCustomerResource create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + EnterpriseMccCustomerResource create(Context context); + } + + /** + * The stage of the EnterpriseMccCustomerResource definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the EnterpriseMccCustomerResource definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(CustomerProperty properties); + } + } + + /** + * Begins update for the EnterpriseMccCustomerResource resource. + * + * @return the stage of resource update. + */ + EnterpriseMccCustomerResource.Update update(); + + /** + * The template for EnterpriseMccCustomerResource update. + */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + EnterpriseMccCustomerResource apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + EnterpriseMccCustomerResource apply(Context context); + } + + /** + * The EnterpriseMccCustomerResource update stages. + */ + interface UpdateStages { + /** + * The stage of the EnterpriseMccCustomerResource update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + EnterpriseMccCustomerResource refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + EnterpriseMccCustomerResource refresh(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomers.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomers.java new file mode 100644 index 0000000000000..ebf746aec79dc --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCustomers.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of EnterpriseMccCustomers. + */ +public interface EnterpriseMccCustomers { + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, + String customerResourceName, Context context); + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call. + */ + EnterpriseMccCustomerResource getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String customerResourceName, Context context); + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * This api gets the information about all enterprise mcc customer resources under the given subscription and + * resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * This api gets information about all enterpriseMccCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a EnterpriseMccCustomerResource list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call along with {@link Response}. + */ + EnterpriseMccCustomerResource getById(String id); + + /** + * Gets the enterprise mcc customer resource information using this get call. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the enterprise mcc customer resource information using this get call along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * This api deletes an existing enterprise mcc customer resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new EnterpriseMccCustomerResource resource. + * + * @param name resource name. + * @return the first stage of the new EnterpriseMccCustomerResource definition. + */ + EnterpriseMccCustomerResource.DefinitionStages.Blank define(String name); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterprisePreviewResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterprisePreviewResource.java new file mode 100644 index 0000000000000..68c2bbe0fa71d --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterprisePreviewResource.java @@ -0,0 +1,252 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; +import java.util.Map; + +/** + * An immutable client-side representation of EnterprisePreviewResource. + */ +public interface EnterprisePreviewResource { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CacheNodeOldResponse properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner object. + * + * @return the inner object. + */ + EnterprisePreviewResourceInner innerModel(); + + /** + * The entirety of the EnterprisePreviewResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The EnterprisePreviewResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the EnterprisePreviewResource definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the EnterprisePreviewResource definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the EnterprisePreviewResource definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the EnterprisePreviewResource definition which contains all the minimum required properties for + * the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + EnterprisePreviewResource create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + EnterprisePreviewResource create(Context context); + } + + /** + * The stage of the EnterprisePreviewResource definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the EnterprisePreviewResource definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(CacheNodeOldResponse properties); + } + } + + /** + * Begins update for the EnterprisePreviewResource resource. + * + * @return the stage of resource update. + */ + EnterprisePreviewResource.Update update(); + + /** + * The template for EnterprisePreviewResource update. + */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + EnterprisePreviewResource apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + EnterprisePreviewResource apply(Context context); + } + + /** + * The EnterprisePreviewResource update stages. + */ + interface UpdateStages { + /** + * The stage of the EnterprisePreviewResource update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + EnterprisePreviewResource refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + EnterprisePreviewResource refresh(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java new file mode 100644 index 0000000000000..ea587816adcd7 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java @@ -0,0 +1,295 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import java.util.Map; + +/** + * An immutable client-side representation of IspCacheNodeResource. + */ +public interface IspCacheNodeResource { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CacheNodeProperty properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner object. + * + * @return the inner object. + */ + IspCacheNodeResourceInner innerModel(); + + /** + * The entirety of the IspCacheNodeResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The IspCacheNodeResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the IspCacheNodeResource definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the IspCacheNodeResource definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(String location); + } + + /** + * The stage of the IspCacheNodeResource definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, customerResourceName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @return the next definition stage. + */ + WithCreate withExistingIspCustomer(String resourceGroupName, String customerResourceName); + } + + /** + * The stage of the IspCacheNodeResource definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + IspCacheNodeResource create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + IspCacheNodeResource create(Context context); + } + + /** + * The stage of the IspCacheNodeResource definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the IspCacheNodeResource definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(CacheNodeProperty properties); + } + } + + /** + * Begins update for the IspCacheNodeResource resource. + * + * @return the stage of resource update. + */ + IspCacheNodeResource.Update update(); + + /** + * The template for IspCacheNodeResource update. + */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + IspCacheNodeResource apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + IspCacheNodeResource apply(Context context); + } + + /** + * The IspCacheNodeResource update stages. + */ + interface UpdateStages { + /** + * The stage of the IspCacheNodeResource update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + IspCacheNodeResource refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + IspCacheNodeResource refresh(Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource along with + * {@link Response}. + */ + Response getBgpCidrsWithResponse(Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource. + */ + MccCacheNodeBgpCidrDetails getBgpCidrs(); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + Response getCacheNodeInstallDetailsWithResponse(Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + MccCacheNodeInstallDetails getCacheNodeInstallDetails(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java new file mode 100644 index 0000000000000..399bfbb3d5954 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of IspCacheNodesOperations. + */ +public interface IspCacheNodesOperations { + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources. + */ + IspCacheNodeResource get(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByIspCustomerResource(String resourceGroupName, + String customerResourceName); + + /** + * This api retrieves information about all ispCacheNode resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCacheNodeResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByIspCustomerResource(String resourceGroupName, String customerResourceName, + Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource along with + * {@link Response}. + */ + Response getBgpCidrsWithResponse(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents all Cidr details of the Bgp request for a specific cache node resource. + */ + MccCacheNodeBgpCidrDetails getBgpCidrs(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details along with {@link Response}. + */ + Response getCacheNodeInstallDetailsWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets secrets of the ispCacheNode resource install details. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource all install details. + */ + MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource information. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + IspCacheNodeResource getById(String id); + + /** + * This api gets ispCacheNode resource information. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the high level Nodes needed to provision cache node resources along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * This api deletes an existing ispCacheNode resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new IspCacheNodeResource resource. + * + * @param name resource name. + * @return the first stage of the new IspCacheNodeResource definition. + */ + IspCacheNodeResource.DefinitionStages.Blank define(String name); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomerResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomerResource.java new file mode 100644 index 0000000000000..27c7eeed13696 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomerResource.java @@ -0,0 +1,252 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.connectedcache.fluent.models.IspCustomerResourceInner; +import java.util.Map; + +/** + * An immutable client-side representation of IspCustomerResource. + */ +public interface IspCustomerResource { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CustomerProperty properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.IspCustomerResourceInner object. + * + * @return the inner object. + */ + IspCustomerResourceInner innerModel(); + + /** + * The entirety of the IspCustomerResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The IspCustomerResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the IspCustomerResource definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the IspCustomerResource definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the IspCustomerResource definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the IspCustomerResource definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + IspCustomerResource create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + IspCustomerResource create(Context context); + } + + /** + * The stage of the IspCustomerResource definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the IspCustomerResource definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(CustomerProperty properties); + } + } + + /** + * Begins update for the IspCustomerResource resource. + * + * @return the stage of resource update. + */ + IspCustomerResource.Update update(); + + /** + * The template for IspCustomerResource update. + */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + IspCustomerResource apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + IspCustomerResource apply(Context context); + } + + /** + * The IspCustomerResource update stages. + */ + interface UpdateStages { + /** + * The stage of the IspCustomerResource update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + IspCustomerResource refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + IspCustomerResource refresh(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomers.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomers.java new file mode 100644 index 0000000000000..be60b795d8d50 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCustomers.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of IspCustomers. + */ +public interface IspCustomers { + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, + Context context); + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call. + */ + IspCustomerResource getByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String customerResourceName); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String customerResourceName, Context context); + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * This api gets the information about all ispCustomer resources under the given subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * This api gets information about all ispCustomer resources under the given subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IspCustomerResource list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call along with {@link Response}. + */ + IspCustomerResource getById(String id); + + /** + * Gets the ispCustomer resource information using this get call. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the ispCustomer resource information using this get call along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * This api deletes an existing ispCustomer resource. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new IspCustomerResource resource. + * + * @param name resource name. + * @return the first stage of the new IspCustomerResource definition. + */ + IspCustomerResource.DefinitionStages.Blank define(String name); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeBgpCidrDetails.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeBgpCidrDetails.java new file mode 100644 index 0000000000000..873e1c9765218 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeBgpCidrDetails.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; +import java.util.Map; + +/** + * An immutable client-side representation of MccCacheNodeBgpCidrDetails. + */ +public interface MccCacheNodeBgpCidrDetails { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Mcc cache node resource Bgp Cidr properties. + * + * @return the properties value. + */ + BgpCidrsConfiguration properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner object. + * + * @return the inner object. + */ + MccCacheNodeBgpCidrDetailsInner innerModel(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeInstallDetails.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeInstallDetails.java new file mode 100644 index 0000000000000..770106a28873c --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeInstallDetails.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import java.util.Map; + +/** + * An immutable client-side representation of MccCacheNodeInstallDetails. + */ +public interface MccCacheNodeInstallDetails { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Mcc cache node resource install script details. + * + * @return the properties value. + */ + CacheNodeInstallProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner object. + * + * @return the inner object. + */ + MccCacheNodeInstallDetailsInner innerModel(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operation.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operation.java new file mode 100644 index 0000000000000..be3dcd178a6ac --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operation.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.resourcemanager.connectedcache.fluent.models.OperationInner; + +/** + * An immutable client-side representation of Operation. + */ +public interface Operation { + /** + * Gets the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". + * + * @return the name value. + */ + String name(); + + /** + * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane + * operations and "false" for Azure Resource Manager/control-plane operations. + * + * @return the isDataAction value. + */ + Boolean isDataAction(); + + /** + * Gets the display property: Localized display information for this particular operation. + * + * @return the display value. + */ + OperationDisplay display(); + + /** + * Gets the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and + * audit logs UX. Default value is "user,system". + * + * @return the origin value. + */ + Origin origin(); + + /** + * Gets the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are + * for internal only APIs. + * + * @return the actionType value. + */ + ActionType actionType(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.OperationInner object. + * + * @return the inner object. + */ + OperationInner innerModel(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OperationDisplay.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OperationDisplay.java new file mode 100644 index 0000000000000..18ca592319a73 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OperationDisplay.java @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Localized display information for and operation. + */ +@Immutable +public final class OperationDisplay implements JsonSerializable { + /* + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or + * "Microsoft Compute". + */ + private String provider; + + /* + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or + * "Job Schedule Collections". + */ + private String resource; + + /* + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. + * "Create or Update Virtual Machine", "Restart Virtual Machine". + */ + private String operation; + + /* + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + */ + private String description; + + /** + * Creates an instance of OperationDisplay class. + */ + private OperationDisplay() { + } + + /** + * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring + * Insights" or "Microsoft Compute". + * + * @return the provider value. + */ + public String provider() { + return this.provider; + } + + /** + * Get the resource property: The localized friendly name of the resource type related to this operation. E.g. + * "Virtual Machines" or "Job Schedule Collections". + * + * @return the resource value. + */ + public String resource() { + return this.resource; + } + + /** + * Get the operation property: The concise, localized friendly name for the operation; suitable for dropdowns. E.g. + * "Create or Update Virtual Machine", "Restart Virtual Machine". + * + * @return the operation value. + */ + public String operation() { + return this.operation; + } + + /** + * Get the description property: The short, localized friendly description of the operation; suitable for tool tips + * and detailed views. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationDisplay from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationDisplay if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationDisplay. + */ + public static OperationDisplay fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationDisplay deserializedOperationDisplay = new OperationDisplay(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provider".equals(fieldName)) { + deserializedOperationDisplay.provider = reader.getString(); + } else if ("resource".equals(fieldName)) { + deserializedOperationDisplay.resource = reader.getString(); + } else if ("operation".equals(fieldName)) { + deserializedOperationDisplay.operation = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedOperationDisplay.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationDisplay; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operations.java new file mode 100644 index 0000000000000..53c2ec4aef746 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Operations.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; + +/** + * Resource collection API of Operations. + */ +public interface Operations { + /** + * List the operations for the provider. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * List the operations for the provider. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(Context context); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Origin.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Origin.java new file mode 100644 index 0000000000000..ffa27da7ed440 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/Origin.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value + * is "user,system". + */ +public final class Origin extends ExpandableStringEnum { + /** + * Indicates the operation is initiated by a user. + */ + public static final Origin USER = fromString("user"); + + /** + * Indicates the operation is initiated by a system. + */ + public static final Origin SYSTEM = fromString("system"); + + /** + * Indicates the operation is initiated by a user or system. + */ + public static final Origin USER_SYSTEM = fromString("user,system"); + + /** + * Creates a new instance of Origin value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Origin() { + } + + /** + * Creates or finds a Origin from its string representation. + * + * @param name a name to look for. + * @return the corresponding Origin. + */ + public static Origin fromString(String name) { + return fromString(name, Origin.class); + } + + /** + * Gets known Origin values. + * + * @return known Origin values. + */ + public static Collection values() { + return values(Origin.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OsType.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OsType.java new file mode 100644 index 0000000000000..87c76c94f3895 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/OsType.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Operating System of the cache node. + */ +public final class OsType extends ExpandableStringEnum { + /** + * cache node installs on windows operating system. + */ + public static final OsType WINDOWS = fromString("Windows"); + + /** + * cache node installs on Linux Operating system. + */ + public static final OsType LINUX = fromString("Linux"); + + /** + * cache node installs on Azure Eflow. + */ + public static final OsType EFLOW = fromString("Eflow"); + + /** + * Creates a new instance of OsType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public OsType() { + } + + /** + * Creates or finds a OsType from its string representation. + * + * @param name a name to look for. + * @return the corresponding OsType. + */ + public static OsType fromString(String name) { + return fromString(name, OsType.class); + } + + /** + * Gets known OsType values. + * + * @return known OsType values. + */ + public static Collection values() { + return values(OsType.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProvisioningState.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProvisioningState.java new file mode 100644 index 0000000000000..6fa704887e51e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProvisioningState.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * provisioning state of the resource. + */ +public final class ProvisioningState extends ExpandableStringEnum { + /** + * Resource has been created. + */ + public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Resource creation failed. + */ + public static final ProvisioningState FAILED = fromString("Failed"); + + /** + * Resource creation was canceled. + */ + public static final ProvisioningState CANCELED = fromString("Canceled"); + + /** + * unknown state of the provisioning state. + */ + public static final ProvisioningState UNKNOWN = fromString("Unknown"); + + /** + * Accepted state of the provisioning state during the Async Operations. + */ + public static final ProvisioningState ACCEPTED = fromString("Accepted"); + + /** + * Upgrading state of the provisioning state. + */ + public static final ProvisioningState UPGRADING = fromString("Upgrading"); + + /** + * Deleting state of the provisioning state. + */ + public static final ProvisioningState DELETING = fromString("Deleting"); + + /** + * Creates a new instance of ProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ProvisioningState() { + } + + /** + * Creates or finds a ProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ProvisioningState. + */ + public static ProvisioningState fromString(String name) { + return fromString(name, ProvisioningState.class); + } + + /** + * Gets known ProvisioningState values. + * + * @return known ProvisioningState values. + */ + public static Collection values() { + return values(ProvisioningState.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyRequired.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyRequired.java new file mode 100644 index 0000000000000..aeaa5cbf1abbc --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyRequired.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Proxy details enum. + */ +public final class ProxyRequired extends ExpandableStringEnum { + /** + * Proxy is not required in setup. + */ + public static final ProxyRequired NONE = fromString("None"); + + /** + * proxy is required in setup. + */ + public static final ProxyRequired REQUIRED = fromString("Required"); + + /** + * Creates a new instance of ProxyRequired value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ProxyRequired() { + } + + /** + * Creates or finds a ProxyRequired from its string representation. + * + * @param name a name to look for. + * @return the corresponding ProxyRequired. + */ + public static ProxyRequired fromString(String name) { + return fromString(name, ProxyRequired.class); + } + + /** + * Gets known ProxyRequired values. + * + * @return known ProxyRequired values. + */ + public static Collection values() { + return values(ProxyRequired.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyUrlConfiguration.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyUrlConfiguration.java new file mode 100644 index 0000000000000..c077fa47975ba --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/ProxyUrlConfiguration.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * ProxyUrl configuration of cache node. + */ +@Fluent +public final class ProxyUrlConfiguration implements JsonSerializable { + /* + * Host Proxy Address configuration along with port number. This can be a proxy or ip address. ex: xx.xx.xx.xxxx:80 + * or host name http://exampleproxy.com:80 + */ + private String proxyUrl; + + /** + * Creates an instance of ProxyUrlConfiguration class. + */ + public ProxyUrlConfiguration() { + } + + /** + * Get the proxyUrl property: Host Proxy Address configuration along with port number. This can be a proxy or ip + * address. ex: xx.xx.xx.xxxx:80 or host name http://exampleproxy.com:80. + * + * @return the proxyUrl value. + */ + public String proxyUrl() { + return this.proxyUrl; + } + + /** + * Set the proxyUrl property: Host Proxy Address configuration along with port number. This can be a proxy or ip + * address. ex: xx.xx.xx.xxxx:80 or host name http://exampleproxy.com:80. + * + * @param proxyUrl the proxyUrl value to set. + * @return the ProxyUrlConfiguration object itself. + */ + public ProxyUrlConfiguration withProxyUrl(String proxyUrl) { + this.proxyUrl = proxyUrl; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("proxyUrl", this.proxyUrl); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProxyUrlConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProxyUrlConfiguration if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ProxyUrlConfiguration. + */ + public static ProxyUrlConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProxyUrlConfiguration deserializedProxyUrlConfiguration = new ProxyUrlConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("proxyUrl".equals(fieldName)) { + deserializedProxyUrlConfiguration.proxyUrl = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedProxyUrlConfiguration; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/package-info.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/package-info.java new file mode 100644 index 0000000000000..e5fd46f3c1f59 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/package-info.java @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the data models for ConnectedCache. + * Microsoft Connected Cache Rest Api version 2023-05-01-preview. + */ +package com.azure.resourcemanager.connectedcache.models; diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/package-info.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/package-info.java new file mode 100644 index 0000000000000..5beecc7feafd1 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/package-info.java @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +/** + * Package containing the classes for ConnectedCache. + * Microsoft Connected Cache Rest Api version 2023-05-01-preview. + */ +package com.azure.resourcemanager.connectedcache; diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/module-info.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/module-info.java new file mode 100644 index 0000000000000..38fb3b0103750 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/module-info.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +module com.azure.resourcemanager.connectedcache { + requires transitive com.azure.core.management; + + exports com.azure.resourcemanager.connectedcache; + exports com.azure.resourcemanager.connectedcache.fluent; + exports com.azure.resourcemanager.connectedcache.fluent.models; + exports com.azure.resourcemanager.connectedcache.models; + + opens com.azure.resourcemanager.connectedcache.fluent.models to com.azure.core; + opens com.azure.resourcemanager.connectedcache.models to com.azure.core; + opens com.azure.resourcemanager.connectedcache.implementation.models to com.azure.core; +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json new file mode 100644 index 0000000000000..9e528bbbac339 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json @@ -0,0 +1 @@ +[["com.azure.resourcemanager.connectedcache.implementation.CacheNodesOperationsClientImpl$CacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.EnterpriseCustomerOperationsClientImpl$EnterpriseCustomerOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCacheNodesOperationsClientImpl$EnterpriseMccCacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCustomersClientImpl$EnterpriseMccCustomersService"],["com.azure.resourcemanager.connectedcache.implementation.IspCacheNodesOperationsClientImpl$IspCacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.IspCustomersClientImpl$IspCustomersService"],["com.azure.resourcemanager.connectedcache.implementation.OperationsClientImpl$OperationsService"]] \ No newline at end of file diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/reflect-config.json b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/reflect-config.json new file mode 100644 index 0000000000000..0637a088a01e8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/reflect-config.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsCreateorUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsCreateorUpdateSamples.java new file mode 100644 index 0000000000000..591a293e1cd7e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsCreateorUpdateSamples.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for CacheNodesOperations CreateorUpdate. + */ +public final class CacheNodesOperationsCreateorUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodesOperations_CreateorUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + cacheNodesOperationsCreateorUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations() + .define("lwrsyhvfpcfrwrim") + .withRegion("westus") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key8256", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") + .withStatusText("bjnsrpzaofjntleoesjwammgbi") + .withStatusDetails("quuziibkwtgf") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteSamples.java new file mode 100644 index 0000000000000..15ca5f9ef2361 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for CacheNodesOperations Delete. + */ +public final class CacheNodesOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodesOperations_Delete. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + cacheNodesOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations() + .deleteByResourceGroupWithResponse("rgConnectedCache", + "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..725f4c8a0bdfc --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for CacheNodesOperations GetByResourceGroup. + */ +public final class CacheNodesOperationsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodesOperations_Get. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "nqoxkgorhuzbhjwcegymzqbeydzjupemekt", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListByResourceGroupSamples.java new file mode 100644 index 0000000000000..9233eed9b43e0 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for CacheNodesOperations ListByResourceGroup. + */ +public final class CacheNodesOperationsListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodes Private Preview(Legacy) Get Operation List by Resource group - generated by [MaximumSet] + * rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListSamples.java new file mode 100644 index 0000000000000..0b506b4251803 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for CacheNodesOperations List. + */ +public final class CacheNodesOperationsListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodes Private Preview(Legacy) resource List by Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.cacheNodesOperations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsUpdateSamples.java new file mode 100644 index 0000000000000..ddd1cbc83c29e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsUpdateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for CacheNodesOperations Update. + */ +public final class CacheNodesOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: CacheNodes Private Preview(Legacy) Update Operation - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + CacheNodePreviewResource resource = manager.cacheNodesOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "wlrwpdbcv", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key5032", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..6a993fcf502e0 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsCreateOrUpdateSamples.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseCustomerOperations CreateOrUpdate. + */ +public final class EnterpriseCustomerOperationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_CreateOrUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseCustomerOperationsCreateOrUpdate( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .define("l") + .withRegion("zdzhhkjyogrqxwihkifnmeyhwpujbr") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key4215", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") + .withStatusText("bs") + .withStatusDetails("lhwvcz") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteSamples.java new file mode 100644 index 0000000000000..0727ed9efe47f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseCustomerOperations Delete. + */ +public final class EnterpriseCustomerOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_Delete. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseCustomerOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .deleteByResourceGroupWithResponse("rgConnectedCache", + "jeubxmhiaihcusgnahblvvckbdcetacvqgwbohlrqucodtlwuyefpejskvamgrdnwgucziodcfpjhqy", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..48a6c8f8c927f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseCustomerOperations GetByResourceGroup. + */ +public final class EnterpriseCustomerOperationsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_Get. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseCustomerOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListByResourceGroupSamples.java new file mode 100644 index 0000000000000..1a9058c03e726 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseCustomerOperations ListByResourceGroup. + */ +public final class EnterpriseCustomerOperationsListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_ListByResourceGroup. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseCustomerOperationsListByResourceGroup( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations() + .listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListSamples.java new file mode 100644 index 0000000000000..3df596fc81b87 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseCustomerOperations List. + */ +public final class EnterpriseCustomerOperationsListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_ListBySubscription. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseCustomerOperationsListBySubscription( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseCustomerOperations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsUpdateSamples.java new file mode 100644 index 0000000000000..ae65216672ff4 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsUpdateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseCustomerOperations Update. + */ +public final class EnterpriseCustomerOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseCustomerOperations_Update. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseCustomerOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + EnterprisePreviewResource resource = manager.enterpriseCustomerOperations() + .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..9de2a6406669a --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.AdditionalCacheNodeProperties; +import com.azure.resourcemanager.connectedcache.models.BgpConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeDriveConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeEntity; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import com.azure.resourcemanager.connectedcache.models.ProxyUrlConfiguration; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCacheNodesOperations CreateOrUpdate. + */ +public final class EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: Creates an enterpriseMccCacheNode resource - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .define("fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr") + .withRegion("westus") + .withExistingEnterpriseMccCustomer("rgConnectedCache", "nhdkvstdrrtsxxuz") + .withTags(mapOf("key259", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeProperty() + .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("yeinlleavzbehelhsucb") + .withCustomerName("zsklcocjfjhkcpmzyefzkwamdzc") + .withIpAddress("gbfkdhloyphnpnhemwrcrxlk") + .withCustomerIndex("vafvezmelfgmjsrccjukrhppljvipg") + .withCacheNodeId("fmrjefyddfn") + .withCacheNodeName("qppvqxliajjfoalzjbgmxggr") + .withCustomerAsn(25) + .withIsEnabled(true) + .withMaxAllowableEgressInMbps(27) + .withIsEnterpriseManaged(true) + .withCidrCsv(Arrays.asList("nlqlvrthafvvljuupcbcw")) + .withShouldMigrate(true) + .withCidrSelectionType(11)) + .withAdditionalCacheNodeProperties(new AdditionalCacheNodeProperties() + .withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ennbzfpuszgalzpawmwicaofqcwcj")) + .withDriveConfiguration( + Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("pcbkezoofhamkycot") + .withSizeInGb(14) + .withCacheNumber(11) + .withNginxMapping("cirlpkpuxg"))) + .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("fjbggfvumrn")) + .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) + .withProxyUrl("ihkzxlzvpcywtzrogupqozkdud") + .withOptionalProperty1("ph") + .withOptionalProperty2("soqqgpgcbhb") + .withOptionalProperty3("fpnycrbagptsujiotnjfuhlm") + .withOptionalProperty4("gesqugrxvhxlxxyvatgrautxwlmxsf") + .withOptionalProperty5("zknjgzpaqtvdqjydd")) + .withStatusCode("fakeTokenPlaceholder") + .withStatusText("Success") + .withStatusDetails("lgljxmyyoakw") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java new file mode 100644 index 0000000000000..e20ae75b5dec5 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCacheNodesOperations Delete. + */ +public final class EnterpriseMccCacheNodesOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations Delete Operation - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .delete("rgConnectedCache", "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", + "vwtrhdoxvkrunpliwcao", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java new file mode 100644 index 0000000000000..28b4c4b982e88 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeInstallDetails. + */ +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples { + /* + * x-ms-original-file: + * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ + /** + * Sample code: Gets required properties for enterprise Mcc CacheNode resource install key details - generated by + * [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "fzwxcjmdpxxzayecabqqlh", + "ccexmqqttritxvtctivraso", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java new file mode 100644 index 0000000000000..7bebee30a71a5 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCacheNodesOperations Get. + */ +public final class EnterpriseMccCacheNodesOperationsGetSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Gets enterpriseMccCacheNode resource information of an enterprise mcc customer parent resource - + * generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getWithResponse("rgConnectedCache", "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", + "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java new file mode 100644 index 0000000000000..f3583c90862f5 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCacheNodesOperations ListByEnterpriseMccCustomerResource. + */ +public final class EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples { + /* + * x-ms-original-file: + * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .listByEnterpriseMccCustomerResource("rgConnectedCache", "syjjjzk", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java new file mode 100644 index 0000000000000..53e6202e4c587 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCacheNodesOperations Update. + */ +public final class EnterpriseMccCacheNodesOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations Update - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + EnterpriseMccCacheNodeResource resource = manager.enterpriseMccCacheNodesOperations() + .getWithResponse("rgConnectedCache", "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", + "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..77264103e2ee2 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.AdditionalCustomerProperties; +import com.azure.resourcemanager.connectedcache.models.CustomerEntity; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import com.azure.resourcemanager.connectedcache.models.CustomerTransitState; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCustomers CreateOrUpdate. + */ +public final class EnterpriseMccCustomersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_CreateOrUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers() + .define("MccRPTest1") + .withRegion("westus") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key3379", "fakeTokenPlaceholder")) + .withProperties(new CustomerProperty() + .withCustomer(new CustomerEntity().withFullyQualifiedResourceId("uqsbtgae") + .withCustomerName("mkpzynfqihnjfdbaqbqwyhd") + .withContactEmail("xquos") + .withContactPhone("vue") + .withContactName("wxyqjoyoscmvimgwhpitxky") + .withIsEntitled(true) + .withReleaseVersion(20) + .withClientTenantId("fproidkpgvpdnac") + .withIsEnterpriseManaged(true) + .withShouldMigrate(true) + .withResendSignupCode(true) + .withVerifySignupCode(true) + .withVerifySignupPhrase("tprjvttkgmrqlsyicnidhm")) + .withAdditionalCustomerProperties(new AdditionalCustomerProperties().withCustomerEmail("zdjgibsidydyzm") + .withCustomerTransitAsn("habgklnxqzmozqpazoyejwiphezpi") + .withCustomerTransitState(CustomerTransitState.fromString("voblixkxfejbmhxilb")) + .withCustomerAsn("hgrelgnrtdkleisnepfolu") + .withCustomerEntitlementSkuId("b") + .withCustomerEntitlementSkuGuid("rvzmdpxyflgqetvpwupnfaxsweiiz") + .withCustomerEntitlementSkuName("waaqfijr") + .withCustomerEntitlementExpiration(OffsetDateTime.parse("2024-01-30T00:54:04.773Z")) + .withOptionalProperty1("qhmwxza") + .withOptionalProperty2("l") + .withOptionalProperty3("mblwwvbie") + .withOptionalProperty4("vzuek") + .withOptionalProperty5("fzjodscdfcdr"))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java new file mode 100644 index 0000000000000..08e7bb01569f6 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCustomers Delete. + */ +public final class EnterpriseMccCustomersDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_Delete. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().delete("rgConnectedCache", "zktb", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..fa2fce903c6f9 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCustomers GetByResourceGroup. + */ +public final class EnterpriseMccCustomersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_Get. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "pvilvqkofbjbykupeewgvzlmjao", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java new file mode 100644 index 0000000000000..e8d83e783c065 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCustomers ListByResourceGroup. + */ +public final class EnterpriseMccCustomersListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_ListByResourceGroup. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCustomersListByResourceGroup( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java new file mode 100644 index 0000000000000..9f24dec58dc04 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCustomers List. + */ +public final class EnterpriseMccCustomersListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_ListBySubscription. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCustomersListBySubscription( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java new file mode 100644 index 0000000000000..a24ece9768d88 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomerResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for EnterpriseMccCustomers Update. + */ +public final class EnterpriseMccCustomersUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCustomers_Update. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + enterpriseMccCustomersUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + EnterpriseMccCustomerResource resource = manager.enterpriseMccCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1878", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..14da67f1ee843 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.connectedcache.models.AdditionalCacheNodeProperties; +import com.azure.resourcemanager.connectedcache.models.BgpConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeDriveConfiguration; +import com.azure.resourcemanager.connectedcache.models.CacheNodeEntity; +import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; +import com.azure.resourcemanager.connectedcache.models.ProxyUrlConfiguration; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCacheNodesOperations CreateOrUpdate. + */ +public final class IspCacheNodesOperationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_CreateOrUpdate. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + ispCacheNodesOperationsCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .define("cabakm") + .withRegion("westus") + .withExistingIspCustomer("rgConnectedCache", "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq") + .withTags(mapOf("key4171", "fakeTokenPlaceholder")) + .withProperties(new CacheNodeProperty() + .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("hskxkpbiqbrbjiwdzrxndru") + .withCustomerName("xwyqk") + .withIpAddress("voctagljcwqgcpnionqdcbjk") + .withCustomerIndex("qtoiglqaswivmkjhzogburcxtszmek") + .withCacheNodeId("xjzffjftwcgsehanoxsl") + .withCacheNodeName("mfjxb") + .withCustomerAsn(4) + .withIsEnabled(true) + .withMaxAllowableEgressInMbps(29) + .withIsEnterpriseManaged(true) + .withCidrCsv(Arrays.asList("nlqlvrthafvvljuupcbcw")) + .withShouldMigrate(true) + .withCidrSelectionType(4)) + .withAdditionalCacheNodeProperties( + new AdditionalCacheNodeProperties().withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ex")) + .withDriveConfiguration(Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("/mcc") + .withSizeInGb(500) + .withCacheNumber(1) + .withNginxMapping("lijygenjq"))) + .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("pafcimhoog")) + .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) + .withProxyUrl("qhux") + .withOptionalProperty1("hvpmt") + .withOptionalProperty2("talanelmsgxvksrzoeeontqkjzbpv") + .withOptionalProperty3("bxkoxq") + .withOptionalProperty4("pqlkcekupusoc") + .withOptionalProperty5("nyvvmrjigqdufzjdvazdca")) + .withStatusCode("fakeTokenPlaceholder") + .withStatusText("Success") + .withStatusDetails("djruqvptzxak") + .withError(new ManagementError())) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java new file mode 100644 index 0000000000000..1eb990dbce283 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCacheNodesOperations Delete. + */ +public final class IspCacheNodesOperationsDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodes delete Operation - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesDeleteOperationGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .delete("rgConnectedCache", "lvpcosvbfxtpzscakewx", + "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java new file mode 100644 index 0000000000000..de8e6e2e888ac --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCacheNodesOperations GetBgpCidrs. + */ +public final class IspCacheNodesOperationsGetBgpCidrsSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodes resource BgpCidrs details - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getBgpCidrsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java new file mode 100644 index 0000000000000..174a87de94585 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCacheNodesOperations GetCacheNodeInstallDetails. + */ +public final class IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ + /** + * Sample code: ispCacheNode resource get install details - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java new file mode 100644 index 0000000000000..6e26135f06069 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCacheNodesOperations Get. + */ +public final class IspCacheNodesOperationsGetSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodes Get resource - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesGetResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getWithResponse("rgConnectedCache", + "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", "lbsziwmudcjnwnwy", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java new file mode 100644 index 0000000000000..c3d3569dc047e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCacheNodesOperations ListByIspCustomerResource. + */ +public final class IspCacheNodesOperationsListByIspCustomerResourceSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_ListByIspCustomerResource. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesOperationsListByIspCustomerResource( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .listByIspCustomerResource("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java new file mode 100644 index 0000000000000..3aef46f9ca0cd --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCacheNodesOperations Update. + */ +public final class IspCacheNodesOperationsUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_Update. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void + ispCacheNodesOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + IspCacheNodeResource resource = manager.ispCacheNodesOperations() + .getWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..aa95ff0b50ad8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.AdditionalCustomerProperties; +import com.azure.resourcemanager.connectedcache.models.CustomerEntity; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import com.azure.resourcemanager.connectedcache.models.CustomerTransitState; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCustomers CreateOrUpdate. + */ +public final class IspCustomersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: ispCustomer CreateOrUpdate - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomerCreateOrUpdateGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .define("MccRPTest2") + .withRegion("westus") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key1878", "fakeTokenPlaceholder")) + .withProperties(new CustomerProperty() + .withCustomer(new CustomerEntity().withFullyQualifiedResourceId("uqsbtgae") + .withCustomerName("mkpzynfqihnjfdbaqbqwyhd") + .withContactEmail("xquos") + .withContactPhone("vue") + .withContactName("wxyqjoyoscmvimgwhpitxky") + .withIsEntitled(true) + .withReleaseVersion(20) + .withClientTenantId("fproidkpgvpdnac") + .withIsEnterpriseManaged(true) + .withShouldMigrate(true) + .withResendSignupCode(true) + .withVerifySignupCode(true) + .withVerifySignupPhrase("tprjvttkgmrqlsyicnidhm")) + .withAdditionalCustomerProperties(new AdditionalCustomerProperties().withCustomerEmail("zdjgibsidydyzm") + .withCustomerTransitAsn("habgklnxqzmozqpazoyejwiphezpi") + .withCustomerTransitState(CustomerTransitState.fromString("voblixkxfejbmhxilb")) + .withCustomerAsn("hgrelgnrtdkleisnepfolu") + .withCustomerEntitlementSkuId("b") + .withCustomerEntitlementSkuGuid("rvzmdpxyflgqetvpwupnfaxsweiiz") + .withCustomerEntitlementSkuName("waaqfijr") + .withCustomerEntitlementExpiration(OffsetDateTime.parse("2024-01-30T00:54:04.773Z")) + .withOptionalProperty1("qhmwxza") + .withOptionalProperty2("l") + .withOptionalProperty3("mblwwvbie") + .withOptionalProperty4("vzuek") + .withOptionalProperty5("fzjodscdfcdr"))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java new file mode 100644 index 0000000000000..48a9c03ec1030 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCustomers Delete. + */ +public final class IspCustomersDeleteSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: IspCustomers Delete - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomersDeleteGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .delete("rgConnectedCache", "hdontfoythjsaeyjhrakckgimgchxwzttbcnvntpvdsgeumxpgnjurptd", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..26647ec7979fe --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCustomers GetByResourceGroup. + */ +public final class IspCustomersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json + */ + /** + * Sample code: IspCustomers Get - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomersGetGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "cmcjfueweicolcjkwmsuvcj", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java new file mode 100644 index 0000000000000..367cc46e6dc57 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCustomers ListByResourceGroup. + */ +public final class IspCustomersListByResourceGroupSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: IspCustomers resource List by Resource group - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java new file mode 100644 index 0000000000000..3cce6d9bad799 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCustomers List. + */ +public final class IspCustomersListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: ispCustomer List by Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomerListBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java new file mode 100644 index 0000000000000..df85a8c8cfd9e --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.resourcemanager.connectedcache.models.IspCustomerResource; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for IspCustomers Update. + */ +public final class IspCustomersUpdateSamples { + /* + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json + */ + /** + * Sample code: ispCustomer Update details - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCustomerUpdateDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + IspCustomerResource resource = manager.ispCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest2", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java new file mode 100644 index 0000000000000..14df17e50d8d6 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for Operations List. + */ +public final class OperationsListSamples { + /* + * x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json + */ + /** + * Sample code: List the operations for the provider - generated by [MaximumSet] rule. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void listTheOperationsForTheProviderGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java new file mode 100644 index 0000000000000..0628347370483 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.BgpCidrsConfiguration; + +public final class BgpCidrsConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BgpCidrsConfiguration model + = BinaryData.fromString("{\"bgpCidrs\":[\"aos\"]}").toObject(BgpCidrsConfiguration.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java new file mode 100644 index 0000000000000..3d157336bde8a --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.BgpConfiguration; +import org.junit.jupiter.api.Assertions; + +public final class BgpConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BgpConfiguration model + = BinaryData.fromString("{\"asnToIpAddressMapping\":\"yegu\"}").toObject(BgpConfiguration.class); + Assertions.assertEquals("yegu", model.asnToIpAddressMapping()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + BgpConfiguration model = new BgpConfiguration().withAsnToIpAddressMapping("yegu"); + model = BinaryData.fromObject(model).toObject(BgpConfiguration.class); + Assertions.assertEquals("yegu", model.asnToIpAddressMapping()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java new file mode 100644 index 0000000000000..0bda663ed61f9 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.CacheNodeDriveConfiguration; +import org.junit.jupiter.api.Assertions; + +public final class CacheNodeDriveConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CacheNodeDriveConfiguration model = BinaryData.fromString( + "{\"physicalPath\":\"bdlwtgrhpdjpj\",\"sizeInGb\":1984471736,\"cacheNumber\":1012728769,\"nginxMapping\":\"zj\"}") + .toObject(CacheNodeDriveConfiguration.class); + Assertions.assertEquals("bdlwtgrhpdjpj", model.physicalPath()); + Assertions.assertEquals(1984471736, model.sizeInGb()); + Assertions.assertEquals(1012728769, model.cacheNumber()); + Assertions.assertEquals("zj", model.nginxMapping()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CacheNodeDriveConfiguration model = new CacheNodeDriveConfiguration().withPhysicalPath("bdlwtgrhpdjpj") + .withSizeInGb(1984471736) + .withCacheNumber(1012728769) + .withNginxMapping("zj"); + model = BinaryData.fromObject(model).toObject(CacheNodeDriveConfiguration.class); + Assertions.assertEquals("bdlwtgrhpdjpj", model.physicalPath()); + Assertions.assertEquals(1984471736, model.sizeInGb()); + Assertions.assertEquals(1012728769, model.cacheNumber()); + Assertions.assertEquals("zj", model.nginxMapping()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java new file mode 100644 index 0000000000000..1df8b19080cc8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.AutoUpdateRingType; +import com.azure.resourcemanager.connectedcache.models.CacheNodeEntity; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class CacheNodeEntityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CacheNodeEntity model = BinaryData.fromString( + "{\"fullyQualifiedResourceId\":\"xaxcfjpgddtocjjx\",\"customerId\":\"pmouexhdz\",\"customerName\":\"bqe\",\"ipAddress\":\"nxqbzvddn\",\"customerIndex\":\"ndei\",\"cacheNodeId\":\"twnpzaoqvuhrhcf\",\"cacheNodeName\":\"yd\",\"customerAsn\":1726993489,\"isEnabled\":true,\"maxAllowableEgressInMbps\":553941063,\"maxAllowableProbability\":74.24029426474767,\"xCid\":\"pyeicxm\",\"isEnterpriseManaged\":false,\"createAsyncOperationId\":\"q\",\"deleteAsyncOperationId\":\"khixuigdtopbo\",\"clientTenantId\":\"og\",\"category\":\"e\",\"releaseVersion\":35431541,\"lastSyncWithAzureTimestamp\":\"2021-01-02T08:53:50Z\",\"lastUpdatedTimestamp\":\"2021-01-27T21:23:24Z\",\"synchWithAzureAttemptsCount\":247953507,\"containerConfigurations\":\"yvvtpgvdfgio\",\"cidrCsv\":[\"tutqxlngxlefgug\",\"xkrxdqmi\",\"tthzrvqd\",\"abhjybi\"],\"cidrCsvLastUpdateTime\":\"2021-05-29T13:44:30Z\",\"bgpCidrCsvLastUpdateTime\":\"2021-09-28T08:30:32Z\",\"bgpLastReportedTime\":\"2021-05-21T18:09:19Z\",\"bgpReviewStateText\":\"wska\",\"bgpReviewState\":\"Approved\",\"bgpReviewFeedback\":\"zlcuiywgqywgndrv\",\"bgpNumberOfTimesUpdated\":2138839355,\"bgpNumberOfRecords\":19075135,\"bgpCidrBlocksCount\":523315995,\"bgpAddressSpace\":1097246502,\"shouldMigrate\":true,\"bgpFileBytesTruncated\":485990541,\"cidrSelectionType\":776269865,\"isFrozen\":false,\"reviewState\":1827981696,\"reviewStateText\":\"vmmcoofs\",\"reviewFeedback\":\"zevgb\",\"configurationState\":\"NotConfigured_Ip\",\"configurationStateText\":\"abcypmivk\",\"addressSpace\":1951754582,\"workerConnections\":1120920412,\"workerConnectionsLastUpdatedDateTime\":\"2021-05-22T10:28:24Z\",\"containerResyncTrigger\":1916526415,\"imageUri\":\"fnba\",\"fullyQualifiedDomainName\":\"ionle\",\"autoUpdateRingType\":\"Fast\",\"autoUpdateRequestedWeek\":1013324715,\"autoUpdateRequestedDay\":853562932,\"autoUpdateRequestedTime\":\"xdpnqbqq\"}") + .toObject(CacheNodeEntity.class); + Assertions.assertEquals("xaxcfjpgddtocjjx", model.fullyQualifiedResourceId()); + Assertions.assertEquals("bqe", model.customerName()); + Assertions.assertEquals("nxqbzvddn", model.ipAddress()); + Assertions.assertEquals("ndei", model.customerIndex()); + Assertions.assertEquals("twnpzaoqvuhrhcf", model.cacheNodeId()); + Assertions.assertEquals("yd", model.cacheNodeName()); + Assertions.assertEquals(1726993489, model.customerAsn()); + Assertions.assertEquals(true, model.isEnabled()); + Assertions.assertEquals(553941063, model.maxAllowableEgressInMbps()); + Assertions.assertEquals(false, model.isEnterpriseManaged()); + Assertions.assertEquals("tutqxlngxlefgug", model.cidrCsv().get(0)); + Assertions.assertEquals(true, model.shouldMigrate()); + Assertions.assertEquals(776269865, model.cidrSelectionType()); + Assertions.assertEquals("ionle", model.fullyQualifiedDomainName()); + Assertions.assertEquals(AutoUpdateRingType.FAST, model.autoUpdateRingType()); + Assertions.assertEquals(1013324715, model.autoUpdateRequestedWeek()); + Assertions.assertEquals(853562932, model.autoUpdateRequestedDay()); + Assertions.assertEquals("xdpnqbqq", model.autoUpdateRequestedTime()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CacheNodeEntity model = new CacheNodeEntity().withFullyQualifiedResourceId("xaxcfjpgddtocjjx") + .withCustomerName("bqe") + .withIpAddress("nxqbzvddn") + .withCustomerIndex("ndei") + .withCacheNodeId("twnpzaoqvuhrhcf") + .withCacheNodeName("yd") + .withCustomerAsn(1726993489) + .withIsEnabled(true) + .withMaxAllowableEgressInMbps(553941063) + .withIsEnterpriseManaged(false) + .withCidrCsv(Arrays.asList("tutqxlngxlefgug", "xkrxdqmi", "tthzrvqd", "abhjybi")) + .withShouldMigrate(true) + .withCidrSelectionType(776269865) + .withFullyQualifiedDomainName("ionle") + .withAutoUpdateRingType(AutoUpdateRingType.FAST) + .withAutoUpdateRequestedWeek(1013324715) + .withAutoUpdateRequestedDay(853562932) + .withAutoUpdateRequestedTime("xdpnqbqq"); + model = BinaryData.fromObject(model).toObject(CacheNodeEntity.class); + Assertions.assertEquals("xaxcfjpgddtocjjx", model.fullyQualifiedResourceId()); + Assertions.assertEquals("bqe", model.customerName()); + Assertions.assertEquals("nxqbzvddn", model.ipAddress()); + Assertions.assertEquals("ndei", model.customerIndex()); + Assertions.assertEquals("twnpzaoqvuhrhcf", model.cacheNodeId()); + Assertions.assertEquals("yd", model.cacheNodeName()); + Assertions.assertEquals(1726993489, model.customerAsn()); + Assertions.assertEquals(true, model.isEnabled()); + Assertions.assertEquals(553941063, model.maxAllowableEgressInMbps()); + Assertions.assertEquals(false, model.isEnterpriseManaged()); + Assertions.assertEquals("tutqxlngxlefgug", model.cidrCsv().get(0)); + Assertions.assertEquals(true, model.shouldMigrate()); + Assertions.assertEquals(776269865, model.cidrSelectionType()); + Assertions.assertEquals("ionle", model.fullyQualifiedDomainName()); + Assertions.assertEquals(AutoUpdateRingType.FAST, model.autoUpdateRingType()); + Assertions.assertEquals(1013324715, model.autoUpdateRequestedWeek()); + Assertions.assertEquals(853562932, model.autoUpdateRequestedDay()); + Assertions.assertEquals("xdpnqbqq", model.autoUpdateRequestedTime()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests.java new file mode 100644 index 0000000000000..5cb93f18f724c --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests { + @Test + public void testDeleteWithResponse() throws Exception { + String responseStr = "{}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + manager.cacheNodesOperations() + .deleteByResourceGroupWithResponse("wpucwwfvovbv", "euecivyhzceuoj", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java new file mode 100644 index 0000000000000..663349bf533ee --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ConnectedCachePatchResourceTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConnectedCachePatchResource model + = BinaryData.fromString("{\"tags\":{\"ifpikxwczby\":\"fcbjysagithxqha\",\"rkxvdum\":\"cnpqxuhivyqniwby\"}}") + .toObject(ConnectedCachePatchResource.class); + Assertions.assertEquals("fcbjysagithxqha", model.tags().get("ifpikxwczby")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConnectedCachePatchResource model = new ConnectedCachePatchResource() + .withTags(mapOf("ifpikxwczby", "fcbjysagithxqha", "rkxvdum", "cnpqxuhivyqniwby")); + model = BinaryData.fromObject(model).toObject(ConnectedCachePatchResource.class); + Assertions.assertEquals("fcbjysagithxqha", model.tags().get("ifpikxwczby")); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests.java new file mode 100644 index 0000000000000..05f323a88f853 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests { + @Test + public void testDeleteWithResponse() throws Exception { + String responseStr = "{}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + manager.enterpriseCustomerOperations() + .deleteByResourceGroupWithResponse("aofmxagkvtme", "mqkrhahvljuahaqu", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java new file mode 100644 index 0000000000000..73c8a51b5f59f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeBgpCidrDetails; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests { + @Test + public void testGetBgpCidrsWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"bgpCidrs\":[\"luicpdggkzzlvmbm\",\"axmodfvuef\",\"wsbpfvm\"]},\"location\":\"hrfou\",\"tags\":{\"wiyzvqtmnubexkp\":\"aakc\",\"mquxvypo\":\"ksmond\"},\"id\":\"gkopkwhojvpajqgx\",\"name\":\"smocmbq\",\"type\":\"qvmkcxo\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + MccCacheNodeBgpCidrDetails response = manager.ispCacheNodesOperations() + .getBgpCidrsWithResponse("xcxrsl", "mutwuoe", "rpkhjwn", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("hrfou", response.location()); + Assertions.assertEquals("aakc", response.tags().get("wiyzvqtmnubexkp")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java new file mode 100644 index 0000000000000..5db90b9e1c16d --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; +import org.junit.jupiter.api.Assertions; + +public final class MccCacheNodeBgpCidrDetailsInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeBgpCidrDetailsInner model = BinaryData.fromString( + "{\"properties\":{\"bgpCidrs\":[\"t\",\"pnpulexxbczwtru\"]},\"location\":\"qzbqjvsov\",\"tags\":{\"hzdobpxjmflbvvnc\":\"kacspkw\",\"rsa\":\"rkcciwwzjuqk\"},\"id\":\"iwkuofos\",\"name\":\"ghsauuimjmvxied\",\"type\":\"ugidyjrr\"}") + .toObject(MccCacheNodeBgpCidrDetailsInner.class); + Assertions.assertEquals("qzbqjvsov", model.location()); + Assertions.assertEquals("kacspkw", model.tags().get("hzdobpxjmflbvvnc")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationDisplayTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationDisplayTests.java new file mode 100644 index 0000000000000..57efe4851a328 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationDisplayTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.OperationDisplay; + +public final class OperationDisplayTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + OperationDisplay model = BinaryData.fromString( + "{\"provider\":\"cdm\",\"resource\":\"rcryuanzwuxzdxta\",\"operation\":\"lhmwhfpmrqobm\",\"description\":\"kknryrtihf\"}") + .toObject(OperationDisplay.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationInnerTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationInnerTests.java new file mode 100644 index 0000000000000..30d3ca107a6bb --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationInnerTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.fluent.models.OperationInner; +import com.azure.resourcemanager.connectedcache.models.ActionType; +import org.junit.jupiter.api.Assertions; + +public final class OperationInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + OperationInner model = BinaryData.fromString( + "{\"name\":\"nygj\",\"isDataAction\":true,\"display\":{\"provider\":\"eqsrdeupewnwreit\",\"resource\":\"yflusarhmofc\",\"operation\":\"smy\",\"description\":\"kdtmlxhekuk\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") + .toObject(OperationInner.class); + Assertions.assertEquals(ActionType.INTERNAL, model.actionType()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationListResultTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationListResultTests.java new file mode 100644 index 0000000000000..16e8dfc2a841a --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationListResultTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.implementation.models.OperationListResult; +import com.azure.resourcemanager.connectedcache.models.ActionType; +import org.junit.jupiter.api.Assertions; + +public final class OperationListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + OperationListResult model = BinaryData.fromString( + "{\"value\":[{\"name\":\"hq\",\"isDataAction\":true,\"display\":{\"provider\":\"pybczmehmtzopb\",\"resource\":\"h\",\"operation\":\"pidgsybbejhphoyc\",\"description\":\"xaobhdxbmtqioqjz\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"fpownoizhwlr\",\"isDataAction\":false,\"display\":{\"provider\":\"oqijgkdmbpaz\",\"resource\":\"bc\",\"operation\":\"pdznrbtcqqjnqgl\",\"description\":\"gnufoooj\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"esaagdfm\",\"isDataAction\":true,\"display\":{\"provider\":\"j\",\"resource\":\"ifkwmrvktsizntoc\",\"operation\":\"a\",\"description\":\"ajpsquc\"},\"origin\":\"system\",\"actionType\":\"Internal\"}],\"nextLink\":\"kfo\"}") + .toObject(OperationListResult.class); + Assertions.assertEquals(ActionType.INTERNAL, model.value().get(0).actionType()); + Assertions.assertEquals("kfo", model.nextLink()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java new file mode 100644 index 0000000000000..eee14db550b00 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import com.azure.resourcemanager.connectedcache.models.ActionType; +import com.azure.resourcemanager.connectedcache.models.Operation; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class OperationsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"name\":\"mgyudxytlmoyrxv\",\"isDataAction\":false,\"display\":{\"provider\":\"pz\",\"resource\":\"xhdzhlrqjbhckf\",\"operation\":\"hrxsbk\",\"description\":\"pycanuzbpz\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); + + Assertions.assertEquals(ActionType.INTERNAL, response.iterator().next().actionType()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java new file mode 100644 index 0000000000000..09bb88ed8cab2 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.ProxyUrlConfiguration; +import org.junit.jupiter.api.Assertions; + +public final class ProxyUrlConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ProxyUrlConfiguration model + = BinaryData.fromString("{\"proxyUrl\":\"hb\"}").toObject(ProxyUrlConfiguration.class); + Assertions.assertEquals("hb", model.proxyUrl()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ProxyUrlConfiguration model = new ProxyUrlConfiguration().withProxyUrl("hb"); + model = BinaryData.fromObject(model).toObject(ProxyUrlConfiguration.class); + Assertions.assertEquals("hb", model.proxyUrl()); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml b/sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml new file mode 100644 index 0000000000000..a7bafa31d7462 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/connectedcache/ConnectedCache.Management +commit: 48777d9eec339e02f463acc12bc8622949e93523 +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/connectedcache/ci.yml b/sdk/connectedcache/ci.yml new file mode 100644 index 0000000000000..e85237480f227 --- /dev/null +++ b/sdk/connectedcache/ci.yml @@ -0,0 +1,46 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: + branches: + include: + - main + - hotfix/* + - release/* + paths: + include: + - sdk/connectedcache/ci.yml + - sdk/connectedcache/azure-resourcemanager-connectedcache/ + exclude: + - sdk/connectedcache/pom.xml + - sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/connectedcache/ci.yml + - sdk/connectedcache/azure-resourcemanager-connectedcache/ + exclude: + - sdk/connectedcache/pom.xml + - sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml + +parameters: + - name: release_azureresourcemanagerconnectedcache + displayName: azure-resourcemanager-connectedcache + type: boolean + default: false + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: connectedcache + Artifacts: + - name: azure-resourcemanager-connectedcache + groupId: com.azure.resourcemanager + safeName: azureresourcemanagerconnectedcache + releaseInBatch: ${{ parameters.release_azureresourcemanagerconnectedcache }} diff --git a/sdk/connectedcache/pom.xml b/sdk/connectedcache/pom.xml new file mode 100644 index 0000000000000..ae749ea53ecfb --- /dev/null +++ b/sdk/connectedcache/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + com.azure + azure-connectedcache-service + pom + 1.0.0 + + + azure-resourcemanager-connectedcache + + From 6405e82fec45fd64ac15724ddbf2b44d57f6c3ac Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:49:02 -0800 Subject: [PATCH 22/44] [Automation] Generate Fluent Lite from TypeSpec healthdataaiservices (#43043) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 10 +- .../README.md | 2 +- .../SAMPLE.md | 104 +++++++----------- .../pom.xml | 13 ++- .../HealthDataAIServicesClientImpl.java | 2 +- .../generated/DeidServicesCreateSamples.java | 6 +- .../generated/DeidServicesDeleteSamples.java | 6 +- ...DeidServicesGetByResourceGroupSamples.java | 6 +- ...eidServicesListByResourceGroupSamples.java | 6 +- .../generated/DeidServicesListSamples.java | 6 +- .../generated/DeidServicesUpdateSamples.java | 6 +- .../generated/OperationsListSamples.java | 12 +- ...ivateEndpointConnectionsCreateSamples.java | 6 +- ...ivateEndpointConnectionsDeleteSamples.java | 6 +- .../PrivateEndpointConnectionsGetSamples.java | 6 +- ...ntConnectionsListByDeidServiceSamples.java | 6 +- .../PrivateLinksListByDeidServiceSamples.java | 6 +- .../tsp-location.yaml | 4 +- 19 files changed, 94 insertions(+), 121 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 191ff5866a10b..468770651e12b 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -468,7 +468,7 @@ com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0; com.azure.resourcemanager:azure-resourcemanager-mongocluster;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-computefleet;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-servicefabricmanagedclusters;1.0.0-beta.2;1.0.0-beta.3 -com.azure.resourcemanager:azure-resourcemanager-healthdataaiservices;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-healthdataaiservices;1.0.0-beta.1;1.0.0 com.azure.resourcemanager:azure-resourcemanager-redhatopenshift;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-fabric;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0.0-beta.2 diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md index 6022152f29301..9b873c393f899 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2024-11-21) -### Features Added - -### Breaking Changes +- Azure Resource Manager Health Data AI Services client library for Java. This package contains Microsoft Azure SDK for Health Data AI Services Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). -### Bugs Fixed +### Features Added -### Other Changes +- The first stable release for the azure-resourcemanager-healthdataaiservices Java SDK. ## 1.0.0-beta.1 (2024-08-14) diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/README.md b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/README.md index 72c75b03f8f55..3f169363efd90 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/README.md +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-healthdataaiservices - 1.0.0-beta.1 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/SAMPLE.md b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/SAMPLE.md index 36aa8c751fb22..ae34f2a055f0c 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/SAMPLE.md +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/SAMPLE.md @@ -39,16 +39,14 @@ import java.util.Map; */ public final class DeidServicesCreateSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * DeidServices_Create_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Create - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Create - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesCreateGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesCreateGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices() .define("deidTest") @@ -83,16 +81,14 @@ public final class DeidServicesCreateSamples { */ public final class DeidServicesDeleteSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * DeidServices_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Delete - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesDeleteGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesDeleteGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices().delete("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); } @@ -107,16 +103,14 @@ public final class DeidServicesDeleteSamples { */ public final class DeidServicesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * DeidServices_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Get - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesGetGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesGetGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices() .getByResourceGroupWithResponse("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); @@ -132,16 +126,14 @@ public final class DeidServicesGetByResourceGroupSamples { */ public final class DeidServicesListSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * DeidServices_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_ListBySubscription - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_ListBySubscription - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesListBySubscriptionGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices().list(com.azure.core.util.Context.NONE); } @@ -156,16 +148,14 @@ public final class DeidServicesListSamples { */ public final class DeidServicesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * DeidServices_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_ListByResourceGroup - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_ListByResourceGroup - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesListByResourceGroupGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); } @@ -188,16 +178,14 @@ import java.util.Map; */ public final class DeidServicesUpdateSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * DeidServices_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Update - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Update - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesUpdateGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesUpdateGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { DeidService resource = manager.deidServices() .getByResourceGroupWithResponse("rgopenapi", "deidTest", com.azure.core.util.Context.NONE) @@ -232,31 +220,27 @@ public final class DeidServicesUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2024-09-20/Operations_List_MaximumSet_Gen.json */ /** - * Sample code: Operations_List_MaximumSet - generated by [MaximumSet] rule - generated by [MinimumSet] rule. + * Sample code: Operations_List_MaximumSet - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void operationsListMaximumSetGeneratedByMaximumSetRuleGeneratedByMinimumSetRule( + public static void operationsListMaximumSetGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/Operations_List_MinimumSet_Gen.json */ /** - * Sample code: Operations_List_MaximumSet - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: Operations_List_MinimumSet - generated by [MinimumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void operationsListMaximumSetGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void operationsListMinimumSetGeneratedByMinimumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } @@ -276,16 +260,14 @@ import com.azure.resourcemanager.healthdataaiservices.models.PrivateLinkServiceC */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * PrivateEndpointConnections_Create_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_Create - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_Create - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsCreateGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .define("kgwgrrpabvrsrrvpcgcnfmyfgyrl") @@ -309,16 +291,14 @@ public final class PrivateEndpointConnectionsCreateSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * PrivateEndpointConnections_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_Delete - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .delete("rgopenapi", "deidTest", "kgwgrrpabvrsrrvpcgcnfmyfgyrl", com.azure.core.util.Context.NONE); @@ -334,16 +314,14 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * PrivateEndpointConnections_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsGetGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .getWithResponse("rgopenapi", "deidTest", "kgwgrrpabvrsrrvpcgcnfmyfgyrl", com.azure.core.util.Context.NONE); @@ -359,16 +337,14 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListByDeidServiceSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_ListByDeidService - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_ListByDeidService - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .listByDeidService("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); @@ -384,16 +360,14 @@ public final class PrivateEndpointConnectionsListByDeidServiceSamples { */ public final class PrivateLinksListByDeidServiceSamples { /* - * x-ms-original-file: - * specification/healthdataaiservices/HealthDataAIServices.Management/examples/2024-02-28-preview/ - * PrivateLinks_ListByDeidService_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json */ /** - * Sample code: PrivateLinks_ListByDeidService - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateLinks_ListByDeidService - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateLinksListByDeidServiceGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateLinks().listByDeidService("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); } diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml index 0f2c54a23f10a..427888bcade0a 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-healthdataaiservices - 1.0.0-beta.2 + 1.0.0 jar Microsoft Azure SDK for Health Data AI Services Management @@ -46,13 +46,9 @@ 0 0 true + false - - com.azure - azure-json - 1.3.0 - com.azure azure-core @@ -75,5 +71,10 @@ 1.14.2 test + + com.azure + azure-json + 1.3.0 + diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/main/java/com/azure/resourcemanager/healthdataaiservices/implementation/HealthDataAIServicesClientImpl.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/main/java/com/azure/resourcemanager/healthdataaiservices/implementation/HealthDataAIServicesClientImpl.java index 0cdab587ab891..48c647b82c5e7 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/main/java/com/azure/resourcemanager/healthdataaiservices/implementation/HealthDataAIServicesClientImpl.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/main/java/com/azure/resourcemanager/healthdataaiservices/implementation/HealthDataAIServicesClientImpl.java @@ -199,7 +199,7 @@ public PrivateLinksClient getPrivateLinks() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2024-02-28-preview"; + this.apiVersion = "2024-09-20"; this.operations = new OperationsClientImpl(this); this.deidServices = new DeidServicesClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesCreateSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesCreateSamples.java index 02a48b7c2219a..b3671907a17d6 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesCreateSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesCreateSamples.java @@ -16,14 +16,14 @@ */ public final class DeidServicesCreateSamples { /* - * x-ms-original-file: 2024-02-28-preview/DeidServices_Create_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Create - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Create - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesCreateGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesCreateGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices() .define("deidTest") diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesDeleteSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesDeleteSamples.java index 0dd284c4de187..41a4a0d0e6aa9 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesDeleteSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class DeidServicesDeleteSamples { /* - * x-ms-original-file: 2024-02-28-preview/DeidServices_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Delete - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesDeleteGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesDeleteGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices().delete("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); } diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesGetByResourceGroupSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesGetByResourceGroupSamples.java index 0d9d68277139a..88a5f2b24dd90 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesGetByResourceGroupSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesGetByResourceGroupSamples.java @@ -9,14 +9,14 @@ */ public final class DeidServicesGetByResourceGroupSamples { /* - * x-ms-original-file: 2024-02-28-preview/DeidServices_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Get - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesGetGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesGetGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices() .getByResourceGroupWithResponse("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListByResourceGroupSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListByResourceGroupSamples.java index 4083ad058eb54..60489aecd67ec 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListByResourceGroupSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListByResourceGroupSamples.java @@ -9,14 +9,14 @@ */ public final class DeidServicesListByResourceGroupSamples { /* - * x-ms-original-file: 2024-02-28-preview/DeidServices_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_ListByResourceGroup - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_ListByResourceGroup - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesListByResourceGroupGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); } diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListSamples.java index 2d8161cfc7b48..007e20ec66be9 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesListSamples.java @@ -9,14 +9,14 @@ */ public final class DeidServicesListSamples { /* - * x-ms-original-file: 2024-02-28-preview/DeidServices_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_ListBySubscription - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_ListBySubscription - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesListBySubscriptionGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.deidServices().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesUpdateSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesUpdateSamples.java index 703f4d53e4baf..5d5c1d8a62eab 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesUpdateSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/DeidServicesUpdateSamples.java @@ -17,14 +17,14 @@ */ public final class DeidServicesUpdateSamples { /* - * x-ms-original-file: 2024-02-28-preview/DeidServices_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json */ /** - * Sample code: DeidServices_Update - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: DeidServices_Update - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void deidServicesUpdateGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void deidServicesUpdateGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { DeidService resource = manager.deidServices() .getByResourceGroupWithResponse("rgopenapi", "deidTest", com.azure.core.util.Context.NONE) diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/OperationsListSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/OperationsListSamples.java index 3f8f5017c822f..d8ffbe2537f38 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/OperationsListSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/OperationsListSamples.java @@ -9,27 +9,27 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2024-02-28-preview/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2024-09-20/Operations_List_MaximumSet_Gen.json */ /** - * Sample code: Operations_List_MaximumSet - generated by [MaximumSet] rule - generated by [MinimumSet] rule. + * Sample code: Operations_List_MaximumSet - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void operationsListMaximumSetGeneratedByMaximumSetRuleGeneratedByMinimumSetRule( + public static void operationsListMaximumSetGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2024-02-28-preview/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/Operations_List_MinimumSet_Gen.json */ /** - * Sample code: Operations_List_MaximumSet - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: Operations_List_MinimumSet - generated by [MinimumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void operationsListMaximumSetGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void operationsListMinimumSetGeneratedByMinimumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsCreateSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsCreateSamples.java index 0de87f03f2d15..6a54e5c2a2498 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsCreateSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsCreateSamples.java @@ -14,14 +14,14 @@ */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: 2024-02-28-preview/PrivateEndpointConnections_Create_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_Create - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_Create - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsCreateGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .define("kgwgrrpabvrsrrvpcgcnfmyfgyrl") diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsDeleteSamples.java index 851eeb771d0e2..0f1b970c35149 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,14 +9,14 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2024-02-28-preview/PrivateEndpointConnections_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_Delete - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .delete("rgopenapi", "deidTest", "kgwgrrpabvrsrrvpcgcnfmyfgyrl", com.azure.core.util.Context.NONE); diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsGetSamples.java index 479361c183494..8bdf63f57dd83 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,14 +9,14 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2024-02-28-preview/PrivateEndpointConnections_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsGetGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .getWithResponse("rgopenapi", "deidTest", "kgwgrrpabvrsrrvpcgcnfmyfgyrl", com.azure.core.util.Context.NONE); diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsListByDeidServiceSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsListByDeidServiceSamples.java index e5f7a52a05144..f2ecec979ea8d 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsListByDeidServiceSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateEndpointConnectionsListByDeidServiceSamples.java @@ -9,14 +9,14 @@ */ public final class PrivateEndpointConnectionsListByDeidServiceSamples { /* - * x-ms-original-file: 2024-02-28-preview/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json */ /** - * Sample code: PrivateEndpointConnections_ListByDeidService - generated by [MaximumSet] rule. + * Sample code: PrivateEndpointConnections_ListByDeidService - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRule( + public static void privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateEndpointConnections() .listByDeidService("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateLinksListByDeidServiceSamples.java b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateLinksListByDeidServiceSamples.java index 576dd737b9ab1..3350b95f29548 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateLinksListByDeidServiceSamples.java +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/src/samples/java/com/azure/resourcemanager/healthdataaiservices/generated/PrivateLinksListByDeidServiceSamples.java @@ -9,14 +9,14 @@ */ public final class PrivateLinksListByDeidServiceSamples { /* - * x-ms-original-file: 2024-02-28-preview/PrivateLinks_ListByDeidService_MaximumSet_Gen.json + * x-ms-original-file: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json */ /** - * Sample code: PrivateLinks_ListByDeidService - generated by [MaximumSet] rule - generated by [MaximumSet] rule. + * Sample code: PrivateLinks_ListByDeidService - generated by [MaximumSet] rule. [stable]. * * @param manager Entry point to HealthDataAIServicesManager. */ - public static void privateLinksListByDeidServiceGeneratedByMaximumSetRuleGeneratedByMaximumSetRule( + public static void privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable( com.azure.resourcemanager.healthdataaiservices.HealthDataAIServicesManager manager) { manager.privateLinks().listByDeidService("rgopenapi", "deidTest", com.azure.core.util.Context.NONE); } diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/tsp-location.yaml b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/tsp-location.yaml index 5f15e2c017e48..494d198dc54ae 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/tsp-location.yaml +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/healthdataaiservices/HealthDataAIServices.Management -commit: ca8c67a5ab25b82cb1fae403d5cb8faf07397463 +commit: 48777d9eec339e02f463acc12bc8622949e93523 repo: Azure/azure-rest-api-specs -additionalDirectories: \ No newline at end of file +additionalDirectories: From 7afd7bf01e66cc89b3df7ff6579805ec9f05f5aa Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:29:37 -0800 Subject: [PATCH 23/44] Increment package versions for connectedcache releases (#43044) --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-connectedcache/CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-connectedcache/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 468770651e12b..8adaae88fc164 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -476,7 +476,7 @@ com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.1;1.0. com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-containerorchestratorruntime;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-terraform;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-connectedcache;1.0.0-beta.1;1.0.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-connectedcache;1.0.0-beta.1;1.0.0-beta.2 com.azure.tools:azure-sdk-archetype;1.0.0;1.2.0-beta.1 com.azure.tools:azure-sdk-build-tool;1.0.0;1.1.0-beta.1 io.clientcore:clientcore-parent;1.0.0-beta.1;1.0.0-beta.1 diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md b/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md index 62cc988d64527..d6508a1260fa4 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.1 (2024-11-21) - Azure Resource Manager Connected Cache client library for Java. This package contains Microsoft Azure SDK for Connected Cache Management SDK. Microsoft Connected Cache Rest Api version 2023-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml b/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml index 356b3e4e06ebc..4c148d481fdac 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-connectedcache - 1.0.0-beta.1 + 1.0.0-beta.2 jar Microsoft Azure SDK for Connected Cache Management From 84f09d527c6b493c512572ed11387e2e5d125652 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:49:51 -0800 Subject: [PATCH 24/44] Increment package versions for healthdataaiservices releases (#43045) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-healthdataaiservices/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 8adaae88fc164..b35ee80e86d46 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -468,7 +468,7 @@ com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0; com.azure.resourcemanager:azure-resourcemanager-mongocluster;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-computefleet;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-servicefabricmanagedclusters;1.0.0-beta.2;1.0.0-beta.3 -com.azure.resourcemanager:azure-resourcemanager-healthdataaiservices;1.0.0-beta.1;1.0.0 +com.azure.resourcemanager:azure-resourcemanager-healthdataaiservices;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-redhatopenshift;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-fabric;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0.0-beta.2 diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md index 9b873c393f899..9bed38ad115f6 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2024-11-21) - Azure Resource Manager Health Data AI Services client library for Java. This package contains Microsoft Azure SDK for Health Data AI Services Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml index 427888bcade0a..492080dc0cf8b 100644 --- a/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml +++ b/sdk/healthdataaiservices/azure-resourcemanager-healthdataaiservices/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-healthdataaiservices - 1.0.0 + 1.1.0-beta.1 jar Microsoft Azure SDK for Health Data AI Services Management From d561c8d0c38efcee8c0a72ecd902ca9beafc2297 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 21 Nov 2024 00:03:07 -0800 Subject: [PATCH 25/44] [Automation] Generate Fluent Lite from Swagger networkcloud#package-2024-06-01-preview (#43046) --- .../CHANGELOG.md | 800 +++- .../README.md | 17 +- .../SAMPLE.md | 3213 ++++++++++------- .../pom.xml | 6 +- .../networkcloud/NetworkCloudManager.java | 82 +- .../networkcloud/fluent/AgentPoolsClient.java | 128 +- .../fluent/BareMetalMachineKeySetsClient.java | 136 +- .../fluent/BareMetalMachinesClient.java | 413 +-- .../networkcloud/fluent/BmcKeySetsClient.java | 123 +- .../fluent/CloudServicesNetworksClient.java | 170 +- .../fluent/ClusterManagersClient.java | 138 +- .../networkcloud/fluent/ClustersClient.java | 342 +- .../networkcloud/fluent/ConsolesClient.java | 128 +- .../KubernetesClusterFeaturesClient.java | 309 ++ .../fluent/KubernetesClustersClient.java | 177 +- .../networkcloud/fluent/L2NetworksClient.java | 139 +- .../networkcloud/fluent/L3NetworksClient.java | 139 +- .../fluent/MetricsConfigurationsClient.java | 136 +- .../networkcloud/fluent/NetworkCloud.java | 59 +- .../networkcloud/fluent/OperationsClient.java | 18 +- .../networkcloud/fluent/RackSkusClient.java | 28 +- .../networkcloud/fluent/RacksClient.java | 153 +- .../fluent/StorageAppliancesClient.java | 217 +- .../fluent/TrunkedNetworksClient.java | 138 +- .../fluent/VirtualMachinesClient.java | 241 +- .../networkcloud/fluent/VolumesClient.java | 125 +- .../fluent/models/AgentPoolInner.java | 249 +- .../models/AgentPoolPatchProperties.java | 113 +- .../fluent/models/AgentPoolProperties.java | 221 +- .../fluent/models/BareMetalMachineInner.java | 318 +- .../models/BareMetalMachineKeySetInner.java | 198 +- ...BareMetalMachineKeySetPatchProperties.java | 80 +- .../BareMetalMachineKeySetProperties.java | 165 +- .../BareMetalMachinePatchProperties.java | 68 +- .../models/BareMetalMachineProperties.java | 406 ++- .../fluent/models/BmcKeySetInner.java | 188 +- .../models/BmcKeySetPatchProperties.java | 72 +- .../fluent/models/BmcKeySetProperties.java | 139 +- .../models/CloudServicesNetworkInner.java | 191 +- .../CloudServicesNetworkPatchProperties.java | 71 +- .../CloudServicesNetworkProperties.java | 127 +- .../fluent/models/ClusterInner.java | 430 ++- .../fluent/models/ClusterManagerInner.java | 219 +- .../models/ClusterManagerProperties.java | 153 +- .../ClusterMetricsConfigurationInner.java | 181 +- ...erMetricsConfigurationPatchProperties.java | 68 +- ...ClusterMetricsConfigurationProperties.java | 95 +- .../fluent/models/ClusterPatchProperties.java | 277 +- .../fluent/models/ClusterProperties.java | 451 ++- .../fluent/models/ConsoleInner.java | 198 +- .../fluent/models/ConsolePatchProperties.java | 103 +- .../fluent/models/ConsoleProperties.java | 130 +- .../models/KubernetesClusterFeatureInner.java | 266 ++ ...bernetesClusterFeaturePatchProperties.java | 102 + .../KubernetesClusterFeatureProperties.java | 207 ++ .../fluent/models/KubernetesClusterInner.java | 277 +- .../KubernetesClusterPatchProperties.java | 127 +- .../models/KubernetesClusterProperties.java | 286 +- .../fluent/models/L2NetworkInner.java | 187 +- .../fluent/models/L2NetworkProperties.java | 123 +- .../fluent/models/L3NetworkInner.java | 219 +- .../fluent/models/L3NetworkProperties.java | 182 +- .../fluent/models/MachineSkuProperties.java | 114 +- .../fluent/models/OperationInner.java | 79 +- .../models/OperationStatusResultInner.java | 304 +- .../OperationStatusResultProperties.java | 132 + .../networkcloud/fluent/models/RackInner.java | 184 +- .../fluent/models/RackProperties.java | 122 +- .../fluent/models/RackSkuInner.java | 139 +- .../fluent/models/RackSkuProperties.java | 95 +- .../fluent/models/RacksPatchProperties.java | 67 +- .../fluent/models/StorageApplianceInner.java | 250 +- .../StorageAppliancePatchProperties.java | 60 +- .../models/StorageApplianceProperties.java | 248 +- .../models/StorageApplianceSkuProperties.java | 66 +- .../fluent/models/TrunkedNetworkInner.java | 188 +- .../models/TrunkedNetworkProperties.java | 139 +- .../fluent/models/VirtualMachineInner.java | 280 +- .../models/VirtualMachinePatchProperties.java | 75 +- .../models/VirtualMachineProperties.java | 307 +- .../fluent/models/VolumeInner.java | 174 +- .../fluent/models/VolumeProperties.java | 87 +- .../fluent/models/package-info.java | 6 +- .../networkcloud/fluent/package-info.java | 5 +- .../implementation/AgentPoolImpl.java | 13 +- .../implementation/AgentPoolsClientImpl.java | 371 +- .../implementation/AgentPoolsImpl.java | 59 +- .../implementation/BareMetalMachineImpl.java | 37 +- .../BareMetalMachineKeySetImpl.java | 7 +- .../BareMetalMachineKeySetsClientImpl.java | 428 +-- .../BareMetalMachineKeySetsImpl.java | 59 +- .../BareMetalMachinesClientImpl.java | 1240 +++---- .../implementation/BareMetalMachinesImpl.java | 51 +- .../implementation/BmcKeySetImpl.java | 6 +- .../implementation/BmcKeySetsClientImpl.java | 398 +- .../implementation/BmcKeySetsImpl.java | 58 +- .../CloudServicesNetworkImpl.java | 5 +- .../CloudServicesNetworksClientImpl.java | 505 +-- .../CloudServicesNetworksImpl.java | 53 +- .../implementation/ClusterImpl.java | 104 +- .../implementation/ClusterManagerImpl.java | 19 +- .../ClusterManagersClientImpl.java | 413 +-- .../implementation/ClusterManagersImpl.java | 52 +- .../ClusterMetricsConfigurationImpl.java | 7 +- .../implementation/ClustersClientImpl.java | 1217 +++++-- .../implementation/ClustersImpl.java | 94 +- .../implementation/ConsoleImpl.java | 6 +- .../implementation/ConsolesClientImpl.java | 398 +- .../implementation/ConsolesImpl.java | 59 +- .../KubernetesClusterFeatureImpl.java | 225 ++ .../KubernetesClusterFeaturesClientImpl.java | 1389 +++++++ .../KubernetesClusterFeaturesImpl.java | 176 + .../implementation/KubernetesClusterImpl.java | 11 +- .../KubernetesClustersClientImpl.java | 533 +-- .../KubernetesClustersImpl.java | 51 +- .../implementation/L2NetworkImpl.java | 4 +- .../implementation/L2NetworksClientImpl.java | 417 +-- .../implementation/L2NetworksImpl.java | 52 +- .../implementation/L3NetworkImpl.java | 4 +- .../implementation/L3NetworksClientImpl.java | 417 +-- .../implementation/L3NetworksImpl.java | 52 +- .../MetricsConfigurationsClientImpl.java | 399 +- .../MetricsConfigurationsImpl.java | 61 +- .../implementation/NetworkCloudBuilder.java | 18 +- .../implementation/NetworkCloudImpl.java | 185 +- .../OperationStatusResultImpl.java | 54 +- .../implementation/OperationsClientImpl.java | 74 +- .../implementation/OperationsImpl.java | 4 +- .../networkcloud/implementation/RackImpl.java | 4 +- .../implementation/RackSkusClientImpl.java | 106 +- .../implementation/RackSkusImpl.java | 4 +- .../implementation/RacksClientImpl.java | 481 +-- .../implementation/RacksImpl.java | 52 +- .../{Utils.java => ResourceManagerUtils.java} | 24 +- .../implementation/StorageApplianceImpl.java | 27 +- .../StorageAppliancesClientImpl.java | 646 ++-- .../implementation/StorageAppliancesImpl.java | 51 +- .../implementation/TrunkedNetworkImpl.java | 4 +- .../TrunkedNetworksClientImpl.java | 403 ++- .../implementation/TrunkedNetworksImpl.java | 52 +- .../implementation/VirtualMachineImpl.java | 4 +- .../VirtualMachinesClientImpl.java | 742 ++-- .../implementation/VirtualMachinesImpl.java | 50 +- .../implementation/VolumeImpl.java | 4 +- .../implementation/VolumesClientImpl.java | 390 +- .../implementation/VolumesImpl.java | 52 +- .../implementation/package-info.java | 5 +- .../networkcloud/models/AadConfiguration.java | 67 +- .../networkcloud/models/ActionType.java | 16 +- .../models/AdministrativeCredentials.java | 74 +- .../models/AdministratorConfiguration.java | 64 +- .../AdministratorConfigurationPatch.java | 101 + .../models/AdvertiseToFabric.java | 16 +- .../networkcloud/models/AgentOptions.java | 68 +- .../networkcloud/models/AgentPool.java | 305 +- .../models/AgentPoolDetailedStatus.java | 24 +- .../networkcloud/models/AgentPoolList.java | 68 +- .../networkcloud/models/AgentPoolMode.java | 20 +- .../models/AgentPoolPatchParameters.java | 117 +- .../models/AgentPoolProvisioningState.java | 40 +- .../models/AgentPoolUpgradeSettings.java | 139 +- .../networkcloud/models/AgentPools.java | 87 +- .../models/AttachedNetworkConfiguration.java | 82 +- .../models/AvailabilityLifecycle.java | 20 +- .../networkcloud/models/AvailableUpgrade.java | 62 +- .../networkcloud/models/BareMetalMachine.java | 442 ++- .../BareMetalMachineCommandSpecification.java | 72 +- .../BareMetalMachineConfigurationData.java | 150 +- .../BareMetalMachineCordonParameters.java | 57 +- .../models/BareMetalMachineCordonStatus.java | 20 +- .../BareMetalMachineDetailedStatus.java | 36 +- .../models/BareMetalMachineEvacuate.java | 20 +- ...eMetalMachineHardwareValidationResult.java | 20 +- .../models/BareMetalMachineKeySet.java | 195 +- .../BareMetalMachineKeySetDetailedStatus.java | 28 +- .../models/BareMetalMachineKeySetList.java | 69 +- ...BareMetalMachineKeySetPatchParameters.java | 91 +- .../BareMetalMachineKeySetPrivilegeLevel.java | 20 +- ...reMetalMachineKeySetProvisioningState.java | 32 +- ...BareMetalMachineKeySetUserSetupStatus.java | 20 +- .../models/BareMetalMachineKeySets.java | 87 +- .../models/BareMetalMachineList.java | 69 +- .../BareMetalMachinePatchParameters.java | 89 +- .../BareMetalMachinePowerOffParameters.java | 61 +- .../models/BareMetalMachinePowerState.java | 20 +- .../BareMetalMachineProvisioningState.java | 32 +- .../models/BareMetalMachineReadyState.java | 20 +- .../BareMetalMachineReplaceParameters.java | 104 +- .../BareMetalMachineRunCommandParameters.java | 92 +- ...MetalMachineRunDataExtractsParameters.java | 85 +- ...MetalMachineRunReadCommandsParameters.java | 85 +- .../models/BareMetalMachineSkipShutdown.java | 20 +- .../models/BareMetalMachines.java | 240 +- .../networkcloud/models/BfdEnabled.java | 20 +- .../networkcloud/models/BgpAdvertisement.java | 98 +- .../networkcloud/models/BgpMultiHop.java | 20 +- .../BgpServiceLoadBalancerConfiguration.java | 100 +- .../networkcloud/models/BmcKeySet.java | 167 +- .../models/BmcKeySetDetailedStatus.java | 28 +- .../networkcloud/models/BmcKeySetList.java | 68 +- .../models/BmcKeySetPatchParameters.java | 84 +- .../models/BmcKeySetPrivilegeLevel.java | 20 +- .../models/BmcKeySetProvisioningState.java | 32 +- .../networkcloud/models/BmcKeySets.java | 82 +- .../models/BootstrapProtocol.java | 16 +- .../models/CloudServicesNetwork.java | 161 +- .../CloudServicesNetworkDetailedStatus.java | 24 +- ...esNetworkEnableDefaultEgressEndpoints.java | 20 +- .../models/CloudServicesNetworkList.java | 69 +- .../CloudServicesNetworkPatchParameters.java | 87 +- ...CloudServicesNetworkProvisioningState.java | 32 +- .../models/CloudServicesNetworks.java | 106 +- .../networkcloud/models/Cluster.java | 665 ++-- .../ClusterAvailableUpgradeVersion.java | 86 +- .../models/ClusterAvailableVersion.java | 57 +- .../networkcloud/models/ClusterCapacity.java | 153 +- .../models/ClusterConnectionStatus.java | 29 +- ...pdateVersionMachineGroupTargetingMode.java | 47 + ...lusterContinueUpdateVersionParameters.java | 101 + .../models/ClusterDeployParameters.java | 61 +- .../models/ClusterDetailedStatus.java | 49 +- .../networkcloud/models/ClusterList.java | 68 +- .../networkcloud/models/ClusterManager.java | 212 +- .../ClusterManagerConnectionStatus.java | 20 +- .../models/ClusterManagerDetailedStatus.java | 36 +- .../models/ClusterManagerList.java | 69 +- .../models/ClusterManagerPatchParameters.java | 94 +- .../ClusterManagerProvisioningState.java | 36 +- .../networkcloud/models/ClusterManagers.java | 98 +- .../models/ClusterMetricsConfiguration.java | 147 +- ...terMetricsConfigurationDetailedStatus.java | 24 +- .../ClusterMetricsConfigurationList.java | 70 +- ...erMetricsConfigurationPatchParameters.java | 83 +- ...MetricsConfigurationProvisioningState.java | 32 +- .../models/ClusterPatchParameters.java | 260 +- .../models/ClusterProvisioningState.java | 36 +- .../models/ClusterScanRuntimeParameters.java | 94 + ...sterScanRuntimeParametersScanActivity.java | 52 + .../models/ClusterSecretArchive.java | 133 + .../models/ClusterSecretArchiveEnabled.java | 51 + .../networkcloud/models/ClusterType.java | 20 +- .../models/ClusterUpdateStrategy.java | 226 ++ .../models/ClusterUpdateStrategyType.java | 51 + .../ClusterUpdateVersionParameters.java | 66 +- .../networkcloud/models/Clusters.java | 186 +- .../models/CommandOutputSettings.java | 130 + .../networkcloud/models/Console.java | 202 +- .../models/ConsoleDetailedStatus.java | 20 +- .../networkcloud/models/ConsoleEnabled.java | 20 +- .../networkcloud/models/ConsoleList.java | 68 +- .../models/ConsolePatchParameters.java | 107 +- .../models/ConsoleProvisioningState.java | 32 +- .../networkcloud/models/Consoles.java | 79 +- .../networkcloud/models/ControlImpact.java | 20 +- .../models/ControlPlaneNodeConfiguration.java | 104 +- .../ControlPlaneNodePatchConfiguration.java | 91 +- .../networkcloud/models/DefaultGateway.java | 21 +- .../models/DeviceConnectionType.java | 16 +- .../networkcloud/models/DiskType.java | 20 +- .../networkcloud/models/EgressEndpoint.java | 74 +- .../models/EndpointDependency.java | 72 +- .../networkcloud/models/ExtendedLocation.java | 76 +- .../models/FabricPeeringEnabled.java | 20 +- .../models/FeatureDetailedStatus.java | 24 +- .../networkcloud/models/FeatureStatus.java | 71 +- .../models/HardwareInventory.java | 65 +- .../HardwareInventoryNetworkInterface.java | 72 +- .../models/HardwareValidationStatus.java | 64 +- .../networkcloud/models/HugepagesSize.java | 20 +- .../models/HybridAksIpamEnabled.java | 16 +- .../models/HybridAksPluginType.java | 20 +- .../networkcloud/models/IdentitySelector.java | 124 + .../models/ImageRepositoryCredentials.java | 91 +- .../models/InitialAgentPoolConfiguration.java | 212 +- .../networkcloud/models/IpAddressPool.java | 107 +- .../networkcloud/models/IpAllocationType.java | 24 +- .../networkcloud/models/KeySetUser.java | 130 +- .../networkcloud/models/KeySetUserStatus.java | 67 +- .../models/KubernetesCluster.java | 347 +- .../KubernetesClusterDetailedStatus.java | 24 +- .../models/KubernetesClusterFeature.java | 310 ++ ...esClusterFeatureAvailabilityLifecycle.java | 53 + ...ubernetesClusterFeatureDetailedStatus.java | 57 + .../models/KubernetesClusterFeatureList.java | 128 + ...bernetesClusterFeaturePatchParameters.java | 143 + ...rnetesClusterFeatureProvisioningState.java | 72 + .../KubernetesClusterFeatureRequired.java | 52 + .../models/KubernetesClusterFeatures.java | 171 + .../models/KubernetesClusterList.java | 69 +- .../models/KubernetesClusterNode.java | 156 +- .../KubernetesClusterNodeDetailedStatus.java | 44 +- .../KubernetesClusterPatchParameters.java | 127 +- .../KubernetesClusterProvisioningState.java | 44 +- ...ubernetesClusterRestartNodeParameters.java | 63 +- .../models/KubernetesClusters.java | 118 +- .../networkcloud/models/KubernetesLabel.java | 76 +- .../models/KubernetesNodePowerState.java | 24 +- .../models/KubernetesNodeRole.java | 20 +- .../models/KubernetesPluginType.java | 32 +- .../networkcloud/models/L2Network.java | 149 +- .../L2NetworkAttachmentConfiguration.java | 75 +- .../models/L2NetworkDetailedStatus.java | 24 +- .../networkcloud/models/L2NetworkList.java | 68 +- .../models/L2NetworkPatchParameters.java | 62 +- .../models/L2NetworkProvisioningState.java | 32 +- .../networkcloud/models/L2Networks.java | 106 +- .../L2ServiceLoadBalancerConfiguration.java | 102 + .../networkcloud/models/L3Network.java | 211 +- .../L3NetworkAttachmentConfiguration.java | 84 +- .../L3NetworkConfigurationIpamEnabled.java | 16 +- .../models/L3NetworkDetailedStatus.java | 24 +- .../networkcloud/models/L3NetworkList.java | 68 +- .../models/L3NetworkPatchParameters.java | 62 +- .../models/L3NetworkProvisioningState.java | 32 +- .../networkcloud/models/L3Networks.java | 106 +- .../networkcloud/models/LldpNeighbor.java | 67 +- .../networkcloud/models/MachineDisk.java | 70 +- .../models/MachineSkuDiskConnectionType.java | 28 +- .../networkcloud/models/MachineSkuSlot.java | 92 +- .../ManagedResourceGroupConfiguration.java | 68 +- .../models/ManagedServiceIdentity.java | 190 + .../ManagedServiceIdentitySelectorType.java | 52 + .../models/ManagedServiceIdentityType.java | 62 + .../models/MetricsConfigurations.java | 87 +- .../models/NetworkAttachment.java | 230 +- .../models/NetworkConfiguration.java | 191 +- .../networkcloud/models/NetworkInterface.java | 95 +- .../networkcloud/models/Nic.java | 74 +- ...dePoolAdministratorConfigurationPatch.java | 102 + .../networkcloud/models/Operation.java | 16 +- .../networkcloud/models/OperationDisplay.java | 83 +- .../models/OperationListResult.java | 58 +- .../models/OperationStatusResult.java | 92 +- .../networkcloud/models/Operations.java | 18 +- .../networkcloud/models/Origin.java | 20 +- .../networkcloud/models/OsDisk.java | 84 +- .../models/OsDiskCreateOption.java | 16 +- .../models/OsDiskDeleteOption.java | 16 +- .../networkcloud/models/Rack.java | 167 +- .../networkcloud/models/RackDefinition.java | 127 +- .../models/RackDetailedStatus.java | 24 +- .../networkcloud/models/RackList.java | 68 +- .../models/RackPatchParameters.java | 82 +- .../models/RackProvisioningState.java | 32 +- .../networkcloud/models/RackSku.java | 30 +- .../networkcloud/models/RackSkuList.java | 68 +- .../models/RackSkuProvisioningState.java | 26 +- .../networkcloud/models/RackSkuType.java | 24 +- .../networkcloud/models/RackSkus.java | 28 +- .../networkcloud/models/Racks.java | 98 +- .../models/RemoteVendorManagementFeature.java | 20 +- .../models/RemoteVendorManagementStatus.java | 20 +- .../RuntimeProtectionConfiguration.java | 96 + .../RuntimeProtectionEnforcementLevel.java | 66 + .../models/RuntimeProtectionStatus.java | 154 + .../models/SecretArchiveReference.java | 113 + .../models/SecretRotationStatus.java | 151 + .../models/ServiceLoadBalancerBgpPeer.java | 152 +- .../models/ServicePrincipalInformation.java | 100 +- .../networkcloud/models/SkipShutdown.java | 20 +- .../networkcloud/models/SshPublicKey.java | 64 +- .../networkcloud/models/StorageAppliance.java | 241 +- .../StorageApplianceConfigurationData.java | 111 +- .../StorageApplianceDetailedStatus.java | 24 +- ...nableRemoteVendorManagementParameters.java | 65 +- .../models/StorageApplianceList.java | 69 +- .../StorageAppliancePatchParameters.java | 81 +- .../StorageApplianceProvisioningState.java | 32 +- .../models/StorageApplianceSkuSlot.java | 76 +- .../models/StorageAppliances.java | 138 +- .../networkcloud/models/StorageProfile.java | 84 +- .../models/StringKeyValuePair.java | 133 + .../networkcloud/models/TrunkedNetwork.java | 161 +- ...TrunkedNetworkAttachmentConfiguration.java | 76 +- .../models/TrunkedNetworkDetailedStatus.java | 24 +- .../models/TrunkedNetworkList.java | 69 +- .../models/TrunkedNetworkPatchParameters.java | 63 +- .../TrunkedNetworkProvisioningState.java | 32 +- .../networkcloud/models/TrunkedNetworks.java | 98 +- .../models/UserAssignedIdentity.java | 100 + .../models/ValidationThreshold.java | 85 +- .../models/ValidationThresholdGrouping.java | 20 +- .../models/ValidationThresholdType.java | 20 +- .../networkcloud/models/VirtualMachine.java | 385 +- .../models/VirtualMachineBootMethod.java | 20 +- .../models/VirtualMachineDetailedStatus.java | 44 +- .../models/VirtualMachineDeviceModelType.java | 20 +- .../VirtualMachineIpAllocationMethod.java | 25 +- .../VirtualMachineIsolateEmulatorThread.java | 16 +- .../models/VirtualMachineList.java | 69 +- .../models/VirtualMachinePatchParameters.java | 93 +- .../models/VirtualMachinePlacementHint.java | 110 +- ...lMachinePlacementHintPodAffinityScope.java | 16 +- .../VirtualMachinePlacementHintType.java | 20 +- .../VirtualMachinePowerOffParameters.java | 61 +- .../models/VirtualMachinePowerState.java | 24 +- .../VirtualMachineProvisioningState.java | 32 +- .../VirtualMachineSchedulingExecution.java | 20 +- .../VirtualMachineVirtioInterfaceType.java | 20 +- .../networkcloud/models/VirtualMachines.java | 146 +- .../networkcloud/models/Volume.java | 125 +- .../models/VolumeDetailedStatus.java | 24 +- .../networkcloud/models/VolumeList.java | 68 +- .../models/VolumePatchParameters.java | 62 +- .../models/VolumeProvisioningState.java | 32 +- .../networkcloud/models/Volumes.java | 90 +- .../networkcloud/models/WorkloadImpact.java | 20 +- .../networkcloud/models/package-info.java | 5 +- .../networkcloud/package-info.java | 5 +- .../src/main/java/module-info.java | 4 +- .../proxy-config.json | 1 + .../reflect-config.json | 1 + .../AgentPoolsCreateOrUpdateSamples.java | 69 +- .../generated/AgentPoolsDeleteSamples.java | 17 +- .../generated/AgentPoolsGetSamples.java | 21 +- ...ntPoolsListByKubernetesClusterSamples.java | 17 +- .../generated/AgentPoolsUpdateSamples.java | 35 +- ...alMachineKeySetsCreateOrUpdateSamples.java | 41 +- .../BareMetalMachineKeySetsDeleteSamples.java | 17 +- .../BareMetalMachineKeySetsGetSamples.java | 21 +- ...talMachineKeySetsListByClusterSamples.java | 17 +- .../BareMetalMachineKeySetsUpdateSamples.java | 47 +- .../BareMetalMachinesCordonSamples.java | 17 +- ...areMetalMachinesCreateOrUpdateSamples.java | 25 +- .../BareMetalMachinesDeleteSamples.java | 13 +- ...etalMachinesGetByResourceGroupSamples.java | 17 +- ...talMachinesListByResourceGroupSamples.java | 14 +- .../BareMetalMachinesListSamples.java | 14 +- .../BareMetalMachinesPowerOffSamples.java | 17 +- .../BareMetalMachinesReimageSamples.java | 13 +- .../BareMetalMachinesReplaceSamples.java | 17 +- .../BareMetalMachinesRestartSamples.java | 13 +- .../BareMetalMachinesRunCommandSamples.java | 24 +- ...reMetalMachinesRunDataExtractsSamples.java | 31 +- ...reMetalMachinesRunReadCommandsSamples.java | 32 +- .../BareMetalMachinesStartSamples.java | 13 +- .../BareMetalMachinesUncordonSamples.java | 13 +- .../BareMetalMachinesUpdateSamples.java | 23 +- .../BmcKeySetsCreateOrUpdateSamples.java | 41 +- .../generated/BmcKeySetsDeleteSamples.java | 13 +- .../generated/BmcKeySetsGetSamples.java | 13 +- .../BmcKeySetsListByClusterSamples.java | 10 +- .../generated/BmcKeySetsUpdateSamples.java | 41 +- ...ServicesNetworksCreateOrUpdateSamples.java | 39 +- .../CloudServicesNetworksDeleteSamples.java | 13 +- ...icesNetworksGetByResourceGroupSamples.java | 17 +- ...cesNetworksListByResourceGroupSamples.java | 14 +- .../CloudServicesNetworksListSamples.java | 14 +- .../CloudServicesNetworksUpdateSamples.java | 37 +- .../ClusterManagersCreateOrUpdateSamples.java | 49 +- .../ClusterManagersDeleteSamples.java | 10 +- ...sterManagersGetByResourceGroupSamples.java | 17 +- ...terManagersListByResourceGroupSamples.java | 14 +- .../generated/ClusterManagersListSamples.java | 14 +- .../ClusterManagersUpdateSamples.java | 32 +- .../ClustersContinueUpdateVersionSamples.java | 32 + .../ClustersCreateOrUpdateSamples.java | 209 +- .../generated/ClustersDeleteSamples.java | 10 +- .../generated/ClustersDeploySamples.java | 34 +- .../ClustersGetByResourceGroupSamples.java | 13 +- .../ClustersListByResourceGroupSamples.java | 14 +- .../generated/ClustersListSamples.java | 10 +- .../generated/ClustersScanRuntimeSamples.java | 31 + .../generated/ClustersUpdateSamples.java | 213 +- .../ClustersUpdateVersionSamples.java | 20 +- .../ConsolesCreateOrUpdateSamples.java | 25 +- .../generated/ConsolesDeleteSamples.java | 13 +- .../generated/ConsolesGetSamples.java | 13 +- .../ConsolesListByVirtualMachineSamples.java | 17 +- .../generated/ConsolesUpdateSamples.java | 21 +- ...sClusterFeaturesCreateOrUpdateSamples.java | 49 + ...ubernetesClusterFeaturesDeleteSamples.java | 26 + .../KubernetesClusterFeaturesGetSamples.java | 26 + ...eaturesListByKubernetesClusterSamples.java | 26 + ...ubernetesClusterFeaturesUpdateSamples.java | 51 + ...bernetesClustersCreateOrUpdateSamples.java | 306 +- .../KubernetesClustersDeleteSamples.java | 13 +- ...etesClustersGetByResourceGroupSamples.java | 17 +- ...tesClustersListByResourceGroupSamples.java | 14 +- .../KubernetesClustersListSamples.java | 14 +- .../KubernetesClustersRestartNodeSamples.java | 21 +- .../KubernetesClustersUpdateSamples.java | 35 +- .../L2NetworksCreateOrUpdateSamples.java | 21 +- .../generated/L2NetworksDeleteSamples.java | 10 +- .../L2NetworksGetByResourceGroupSamples.java | 13 +- .../L2NetworksListByResourceGroupSamples.java | 14 +- .../generated/L2NetworksListSamples.java | 14 +- .../generated/L2NetworksUpdateSamples.java | 18 +- .../L3NetworksCreateOrUpdateSamples.java | 21 +- .../generated/L3NetworksDeleteSamples.java | 10 +- .../L3NetworksGetByResourceGroupSamples.java | 13 +- .../L3NetworksListByResourceGroupSamples.java | 14 +- .../generated/L3NetworksListSamples.java | 14 +- .../generated/L3NetworksUpdateSamples.java | 18 +- ...csConfigurationsCreateOrUpdateSamples.java | 21 +- .../MetricsConfigurationsDeleteSamples.java | 17 +- .../MetricsConfigurationsGetSamples.java | 17 +- ...icsConfigurationsListByClusterSamples.java | 17 +- .../MetricsConfigurationsUpdateSamples.java | 25 +- .../generated/OperationsListSamples.java | 14 +- .../generated/RackSkusGetSamples.java | 10 +- .../generated/RackSkusListSamples.java | 10 +- .../generated/RacksCreateOrUpdateSamples.java | 24 +- .../generated/RacksDeleteSamples.java | 10 +- .../RacksGetByResourceGroupSamples.java | 13 +- .../RacksListByResourceGroupSamples.java | 10 +- .../generated/RacksListSamples.java | 10 +- .../generated/RacksUpdateSamples.java | 21 +- ...torageAppliancesCreateOrUpdateSamples.java | 25 +- .../StorageAppliancesDeleteSamples.java | 13 +- ...sDisableRemoteVendorManagementSamples.java | 17 +- ...esEnableRemoteVendorManagementSamples.java | 17 +- ...geAppliancesGetByResourceGroupSamples.java | 17 +- ...eAppliancesListByResourceGroupSamples.java | 14 +- .../StorageAppliancesListSamples.java | 14 +- .../StorageAppliancesUpdateSamples.java | 23 +- .../TrunkedNetworksCreateOrUpdateSamples.java | 33 +- .../TrunkedNetworksDeleteSamples.java | 10 +- ...nkedNetworksGetByResourceGroupSamples.java | 17 +- ...kedNetworksListByResourceGroupSamples.java | 14 +- .../generated/TrunkedNetworksListSamples.java | 14 +- .../TrunkedNetworksUpdateSamples.java | 19 +- .../VirtualMachinesCreateOrUpdateSamples.java | 91 +- .../VirtualMachinesDeleteSamples.java | 10 +- ...tualMachinesGetByResourceGroupSamples.java | 17 +- ...ualMachinesListByResourceGroupSamples.java | 14 +- .../generated/VirtualMachinesListSamples.java | 14 +- .../VirtualMachinesPowerOffSamples.java | 17 +- .../VirtualMachinesReimageSamples.java | 10 +- .../VirtualMachinesRestartSamples.java | 10 +- .../VirtualMachinesStartSamples.java | 10 +- .../VirtualMachinesUpdateSamples.java | 30 +- .../VolumesCreateOrUpdateSamples.java | 21 +- .../generated/VolumesDeleteSamples.java | 10 +- .../VolumesGetByResourceGroupSamples.java | 13 +- .../VolumesListByResourceGroupSamples.java | 10 +- .../generated/VolumesListSamples.java | 10 +- .../generated/VolumesUpdateSamples.java | 18 +- .../generated/AadConfigurationTests.java | 9 +- .../generated/AgentOptionsTests.java | 12 +- .../AgentPoolPatchParametersTests.java | 48 - .../AgentPoolPatchPropertiesTests.java | 30 - .../AgentPoolUpgradeSettingsTests.java | 18 +- .../generated/AgentPoolsDeleteMockTests.java | 51 - .../AttachedNetworkConfigurationTests.java | 56 +- .../generated/AvailableUpgradeTests.java | 6 +- ...MetalMachineCommandSpecificationTests.java | 12 +- ...areMetalMachineKeySetsDeleteMockTests.java | 52 - .../BareMetalMachinePatchParametersTests.java | 15 +- .../BareMetalMachinePatchPropertiesTests.java | 8 +- ...MetalMachineRunCommandParametersTests.java | 20 +- ...MachineRunDataExtractsParametersTests.java | 30 +- ...MachineRunReadCommandsParametersTests.java | 29 +- .../BareMetalMachinesCordonMockTests.java | 82 - .../BareMetalMachinesDeleteMockTests.java | 51 - .../BareMetalMachinesPowerOffMockTests.java | 82 - .../BareMetalMachinesReimageMockTests.java | 78 - .../BareMetalMachinesRestartMockTests.java | 77 - .../BareMetalMachinesRunCommandMockTests.java | 84 - ...MetalMachinesRunDataExtractsMockTests.java | 95 - ...MetalMachinesRunReadCommandsMockTests.java | 93 - .../BareMetalMachinesStartMockTests.java | 78 - .../BareMetalMachinesUncordonMockTests.java | 77 - .../generated/BgpAdvertisementTests.java | 20 +- .../generated/BmcKeySetsDeleteMockTests.java | 51 - .../CloudServicesNetworkInnerTests.java | 79 +- .../CloudServicesNetworkListTests.java | 109 +- ...udServicesNetworkPatchParametersTests.java | 62 +- ...udServicesNetworkPatchPropertiesTests.java | 63 +- .../CloudServicesNetworkPropertiesTests.java | 43 +- ...rvicesNetworksCreateOrUpdateMockTests.java | 72 +- .../CloudServicesNetworksDeleteMockTests.java | 51 - ...tByResourceGroupWithResponseMockTests.java | 44 +- ...sNetworksListByResourceGroupMockTests.java | 43 +- .../CloudServicesNetworksListMockTests.java | 39 +- .../ClusterAvailableUpgradeVersionTests.java | 2 +- .../ClusterAvailableVersionTests.java | 6 +- .../generated/ClusterCapacityTests.java | 50 +- ...rContinueUpdateVersionParametersTests.java | 30 + .../ClusterDeployParametersTests.java | 8 +- .../generated/ClusterManagerInnerTests.java | 56 +- .../generated/ClusterManagerListTests.java | 103 +- .../ClusterManagerPatchParametersTests.java | 18 +- .../ClusterManagerPropertiesTests.java | 36 +- ...lusterManagersCreateOrUpdateMockTests.java | 71 +- .../ClusterManagersDeleteMockTests.java | 51 - ...tByResourceGroupWithResponseMockTests.java | 47 +- ...rManagersListByResourceGroupMockTests.java | 50 +- .../ClusterManagersListMockTests.java | 47 +- ...ClusterMetricsConfigurationInnerTests.java | 36 +- .../ClusterMetricsConfigurationListTests.java | 58 +- ...ricsConfigurationPatchParametersTests.java | 20 +- ...ricsConfigurationPatchPropertiesTests.java | 14 +- ...erMetricsConfigurationPropertiesTests.java | 14 +- .../ClusterScanRuntimeParametersTests.java | 27 + .../generated/ClusterUpdateStrategyTests.java | 40 + .../ClusterUpdateVersionParametersTests.java | 8 +- .../generated/ClustersDeleteMockTests.java | 51 - .../generated/ClustersDeployMockTests.java | 81 - .../ClustersUpdateVersionMockTests.java | 80 - .../generated/CommandOutputSettingsTests.java | 39 + .../generated/ConsolesDeleteMockTests.java | 51 - ...ntrolPlaneNodePatchConfigurationTests.java | 26 - .../generated/EgressEndpointTests.java | 26 +- .../generated/EndpointDependencyTests.java | 12 +- .../generated/FeatureStatusTests.java | 2 +- .../generated/IdentitySelectorTests.java | 31 + .../generated/IpAddressPoolTests.java | 23 +- .../generated/KeySetUserStatusTests.java | 2 +- ...KubernetesClusterPatchParametersTests.java | 49 - ...KubernetesClusterPatchPropertiesTests.java | 31 - ...etesClusterRestartNodeParametersTests.java | 10 +- .../KubernetesClustersDeleteMockTests.java | 51 - ...ubernetesClustersRestartNodeMockTests.java | 81 - ...L2NetworkAttachmentConfigurationTests.java | 14 +- .../generated/L2NetworkInnerTests.java | 37 +- .../generated/L2NetworkListTests.java | 85 +- .../L2NetworkPatchParametersTests.java | 13 +- .../generated/L2NetworkPropertiesTests.java | 14 +- .../L2NetworksCreateOrUpdateMockTests.java | 55 +- .../generated/L2NetworksDeleteMockTests.java | 51 - ...tByResourceGroupWithResponseMockTests.java | 41 +- ...2NetworksListByResourceGroupMockTests.java | 45 +- .../generated/L2NetworksListMockTests.java | 39 +- ...ServiceLoadBalancerConfigurationTests.java | 44 + ...L3NetworkAttachmentConfigurationTests.java | 14 +- .../generated/L3NetworkInnerTests.java | 60 +- .../generated/L3NetworkListTests.java | 114 +- .../L3NetworkPatchParametersTests.java | 11 +- .../generated/L3NetworkPropertiesTests.java | 44 +- .../L3NetworksCreateOrUpdateMockTests.java | 71 +- .../generated/L3NetworksDeleteMockTests.java | 51 - ...tByResourceGroupWithResponseMockTests.java | 51 +- ...3NetworksListByResourceGroupMockTests.java | 49 +- .../generated/L3NetworksListMockTests.java | 49 +- .../generated/MachineDiskTests.java | 2 +- .../generated/MachineSkuPropertiesTests.java | 2 +- .../generated/MachineSkuSlotTests.java | 2 +- ...anagedResourceGroupConfigurationTests.java | 15 +- .../ManagedServiceIdentityTests.java | 45 + ...ConfigurationsCreateOrUpdateMockTests.java | 53 +- .../MetricsConfigurationsDeleteMockTests.java | 51 - ...onfigurationsGetWithResponseMockTests.java | 41 +- ...sConfigurationsListByClusterMockTests.java | 43 +- .../generated/NetworkAttachmentTests.java | 32 +- .../generated/NetworkInterfaceTests.java | 2 +- .../OperationStatusResultInnerTests.java | 161 - .../generated/OperationsListMockTests.java | 28 +- .../networkcloud/generated/OsDiskTests.java | 8 +- .../generated/RackInnerTests.java | 48 +- .../networkcloud/generated/RackListTests.java | 97 +- .../generated/RackPatchParametersTests.java | 22 +- .../generated/RackPropertiesTests.java | 26 +- .../generated/RackSkuInnerTests.java | 2 +- .../generated/RackSkuListTests.java | 10 +- .../generated/RackSkuPropertiesTests.java | 2 +- .../RackSkusGetWithResponseMockTests.java | 30 +- .../generated/RackSkusListMockTests.java | 28 +- .../RacksCreateOrUpdateMockTests.java | 62 +- .../generated/RacksDeleteMockTests.java | 51 - ...tByResourceGroupWithResponseMockTests.java | 45 +- .../RacksListByResourceGroupMockTests.java | 45 +- .../generated/RacksListMockTests.java | 43 +- .../generated/RacksPatchPropertiesTests.java | 16 +- .../RuntimeProtectionConfigurationTests.java | 27 + .../RuntimeProtectionStatusTests.java | 23 + ...RemoteVendorManagementParametersTests.java | 9 +- .../StorageAppliancePatchParametersTests.java | 19 +- .../StorageAppliancePatchPropertiesTests.java | 8 +- .../StorageApplianceSkuPropertiesTests.java | 2 +- .../StorageApplianceSkuSlotTests.java | 2 +- .../StorageAppliancesDeleteMockTests.java | 51 - ...isableRemoteVendorManagementMockTests.java | 78 - ...EnableRemoteVendorManagementMockTests.java | 83 - .../generated/StorageProfileTests.java | 14 +- ...edNetworkAttachmentConfigurationTests.java | 8 +- .../generated/TrunkedNetworkInnerTests.java | 48 +- .../generated/TrunkedNetworkListTests.java | 75 +- .../TrunkedNetworkPatchParametersTests.java | 10 +- .../TrunkedNetworkPropertiesTests.java | 25 +- ...runkedNetworksCreateOrUpdateMockTests.java | 59 +- .../TrunkedNetworksDeleteMockTests.java | 51 - ...tByResourceGroupWithResponseMockTests.java | 45 +- ...dNetworksListByResourceGroupMockTests.java | 47 +- .../TrunkedNetworksListMockTests.java | 43 +- .../generated/UserAssignedIdentityTests.java | 23 + .../generated/ValidationThresholdTests.java | 14 +- .../VirtualMachinePlacementHintTests.java | 14 +- ...VirtualMachinePowerOffParametersTests.java | 8 +- .../VirtualMachinesDeleteMockTests.java | 51 - .../VirtualMachinesPowerOffMockTests.java | 80 - .../VirtualMachinesReimageMockTests.java | 77 - .../VirtualMachinesRestartMockTests.java | 77 - .../VirtualMachinesStartMockTests.java | 78 - .../generated/VolumeInnerTests.java | 30 +- .../generated/VolumeListTests.java | 54 +- .../generated/VolumePatchParametersTests.java | 12 +- .../generated/VolumePropertiesTests.java | 8 +- .../VolumesCreateOrUpdateMockTests.java | 49 +- .../generated/VolumesDeleteMockTests.java | 51 - ...tByResourceGroupWithResponseMockTests.java | 39 +- .../VolumesListByResourceGroupMockTests.java | 40 +- .../generated/VolumesListMockTests.java | 37 +- 703 files changed, 39536 insertions(+), 21706 deletions(-) create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClusterFeaturesClient.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureInner.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeaturePatchProperties.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureProperties.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultProperties.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeatureImpl.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesClientImpl.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesImpl.java rename sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/{Utils.java => ResourceManagerUtils.java} (88%) create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfigurationPatch.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionMachineGroupTargetingMode.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionParameters.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParameters.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParametersScanActivity.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchive.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchiveEnabled.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategy.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategyType.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CommandOutputSettings.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IdentitySelector.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeature.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureAvailabilityLifecycle.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureDetailedStatus.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureList.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeaturePatchParameters.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureProvisioningState.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureRequired.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatures.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2ServiceLoadBalancerConfiguration.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentity.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentitySelectorType.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentityType.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NodePoolAdministratorConfigurationPatch.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionConfiguration.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionEnforcementLevel.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionStatus.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretArchiveReference.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretRotationStatus.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StringKeyValuePair.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/UserAssignedIdentity.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/proxy-config.json create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/reflect-config.json create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteMockTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteMockTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeployMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionMockTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ControlPlaneNodePatchConfigurationTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchParametersTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchPropertiesTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteMockTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteMockTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationStatusResultInnerTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteMockTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteMockTests.java create mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartMockTests.java delete mode 100644 sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteMockTests.java diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md index 9abe365c4653d..75a39684b94f4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md @@ -1,14 +1,806 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2024-11-21) -### Features Added +- Azure Resource Manager NetworkCloud client library for Java. This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview. 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.BareMetalMachineKeySets` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.Racks` was modified + +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.StorageAppliances` was modified + +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.Clusters` was modified + +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` + +#### `models.MetricsConfigurations` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.Volumes` was modified + +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` + +#### `models.KubernetesClusters` was modified + +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.Consoles` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.L3Networks` was modified + +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` + +#### `models.CloudServicesNetworks` was modified + +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` + +#### `models.ClusterManagers` was modified + +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.AgentPools` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +#### `models.BmcKeySets` was modified + +* `void delete(java.lang.String,java.lang.String,java.lang.String)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String)` +* `void delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` + +#### `models.BareMetalMachines` was modified + +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` + +#### `models.VirtualMachines` was modified + +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` + +#### `models.TrunkedNetworks` was modified + +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` + +#### `models.L2Networks` was modified + +* `void deleteByResourceGroup(java.lang.String,java.lang.String)` -> `models.OperationStatusResult deleteByResourceGroup(java.lang.String,java.lang.String)` +* `void deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` +* `void delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.OperationStatusResult delete(java.lang.String,java.lang.String,com.azure.core.util.Context)` +* `void deleteById(java.lang.String)` -> `models.OperationStatusResult deleteById(java.lang.String)` + +### Features Added + +* `models.ClusterContinueUpdateVersionParameters` was added + +* `models.KubernetesClusterFeatureProvisioningState` was added + +* `models.ClusterUpdateStrategyType` was added + +* `models.RuntimeProtectionConfiguration` was added + +* `models.NodePoolAdministratorConfigurationPatch` was added + +* `models.KubernetesClusterFeature$Update` was added + +* `models.UserAssignedIdentity` was added + +* `models.KubernetesClusterFeatureAvailabilityLifecycle` was added + +* `models.AdministratorConfigurationPatch` was added + +* `models.IdentitySelector` was added + +* `models.ClusterScanRuntimeParametersScanActivity` was added + +* `models.L2ServiceLoadBalancerConfiguration` was added + +* `models.KubernetesClusterFeatureRequired` was added + +* `models.KubernetesClusterFeatureDetailedStatus` was added + +* `models.KubernetesClusterFeatures` was added + +* `models.ClusterUpdateStrategy` was added + +* `models.KubernetesClusterFeaturePatchParameters` was added + +* `models.KubernetesClusterFeature$Definition` was added + +* `models.KubernetesClusterFeature$UpdateStages` was added + +* `models.KubernetesClusterFeature$DefinitionStages` was added + +* `models.ManagedServiceIdentitySelectorType` was added + +* `models.ManagedServiceIdentity` was added + +* `models.RuntimeProtectionEnforcementLevel` was added + +* `models.ClusterScanRuntimeParameters` was added + +* `models.SecretRotationStatus` was added + +* `models.KubernetesClusterFeature` was added + +* `models.StringKeyValuePair` was added + +* `models.SecretArchiveReference` was added + +* `models.KubernetesClusterFeatureList` was added + +* `models.CommandOutputSettings` was added + +* `models.ClusterContinueUpdateVersionMachineGroupTargetingMode` was added + +* `models.RuntimeProtectionStatus` was added + +* `models.ClusterSecretArchive` was added + +* `models.ManagedServiceIdentityType` was added + +* `models.ClusterSecretArchiveEnabled` was added + +#### `models.VirtualMachinePatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.EndpointDependency` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachineKeySetList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachinePowerOffParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachineCordonParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Nic` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AgentPool$Update` was modified + +* `withAdministratorConfiguration(models.NodePoolAdministratorConfigurationPatch)` was added + +#### `models.ServicePrincipalInformation` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterMetricsConfigurationList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachine` was modified + +* `runtimeProtectionStatus()` was added +* `machineRoles()` was added +* `secretRotationStatus()` was added +* `machineClusterVersion()` was added + +#### `models.TrunkedNetworkAttachmentConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BmcKeySetList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.StorageApplianceEnableRemoteVendorManagementParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterManagerList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.KeySetUserStatus` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterDeployParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterCapacity` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterAvailableUpgradeVersion` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.StorageProfile` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.MachineDisk` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.KubernetesClusterList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CloudServicesNetworkList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineKeySetPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.NetworkConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `l2ServiceLoadBalancerConfiguration()` was added +* `withL2ServiceLoadBalancerConfiguration(models.L2ServiceLoadBalancerConfiguration)` was added + +#### `models.IpAddressPool` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AgentOptions` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.RackPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterManagerPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `identity()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.BareMetalMachineCommandSpecification` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Cluster` was modified + +* `continueUpdateVersion(models.ClusterContinueUpdateVersionParameters)` was added +* `updateStrategy()` was added +* `continueUpdateVersion(models.ClusterContinueUpdateVersionParameters,com.azure.core.util.Context)` was added +* `runtimeProtectionConfiguration()` was added +* `scanRuntime(models.ClusterScanRuntimeParameters,com.azure.core.util.Context)` was added +* `scanRuntime()` was added +* `identity()` was added +* `commandOutputSettings()` was added +* `secretArchive()` was added + +#### `models.AadConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachineRunReadCommandsParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ConsolePatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Clusters` was modified + +* `continueUpdateVersion(java.lang.String,java.lang.String,models.ClusterContinueUpdateVersionParameters,com.azure.core.util.Context)` was added +* `scanRuntime(java.lang.String,java.lang.String,models.ClusterScanRuntimeParameters,com.azure.core.util.Context)` was added +* `continueUpdateVersion(java.lang.String,java.lang.String,models.ClusterContinueUpdateVersionParameters)` was added +* `scanRuntime(java.lang.String,java.lang.String)` was added + +#### `models.HardwareValidationStatus` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ControlPlaneNodeConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BgpAdvertisement` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesLabel` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineReplaceParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OperationStatusResult` was modified + +* `outputHead()` was added +* `resultUrl()` was added +* `exitCode()` was added +* `resultRef()` was added + +#### `models.BareMetalMachineList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.LldpNeighbor` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.StorageAppliance` was modified + +* `version()` was added +* `manufacturer()` was added +* `model()` was added +* `secretRotationStatus()` was added + +#### `models.AgentPoolPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `administratorConfiguration()` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `withAdministratorConfiguration(models.NodePoolAdministratorConfigurationPatch)` was added + +#### `models.VirtualMachinePowerOffParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CloudServicesNetworkPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.StorageApplianceList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ValidationThreshold` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.OperationListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.FeatureStatus` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachinePatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ExtendedLocation` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.BareMetalMachine$Definition` was modified + +* `withMachineClusterVersion(java.lang.String)` was added + +#### `models.TrunkedNetworkList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ManagedResourceGroupConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.TrunkedNetworkPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.HardwareInventory` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ImageRepositoryCredentials` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineRunDataExtractsParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineRunCommandParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterPatchParameters` was modified + +* `runtimeProtectionConfiguration()` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `identity()` was added +* `withRuntimeProtectionConfiguration(models.RuntimeProtectionConfiguration)` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `commandOutputSettings()` was added +* `withSecretArchive(models.ClusterSecretArchive)` was added +* `withUpdateStrategy(models.ClusterUpdateStrategy)` was added +* `secretArchive()` was added +* `withIdentity(models.ManagedServiceIdentity)` was added +* `updateStrategy()` was added +* `withCommandOutputSettings(models.CommandOutputSettings)` was added + +#### `models.OsDisk` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterManager$Update` was modified + +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.ControlPlaneNodePatchConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `administratorConfiguration()` was added +* `withAdministratorConfiguration(models.AdministratorConfigurationPatch)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.RackList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.L3NetworkPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `NetworkCloudManager` was modified + +* `kubernetesClusterFeatures()` was added + +#### `models.BgpServiceLoadBalancerConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AdministratorConfiguration` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.VolumeList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterAvailableVersion` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.StorageApplianceSkuSlot` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AdministrativeCredentials` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.VirtualMachineList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BareMetalMachineConfigurationData` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.BmcKeySetPatchParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.SshPublicKey` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.RackSkuList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterUpdateVersionParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ConsoleList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AgentPoolUpgradeSettings` was modified + +* `withMaxUnavailable(java.lang.String)` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `withDrainTimeout(java.lang.Long)` was added +* `drainTimeout()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `maxUnavailable()` was added + +#### `models.ClusterManager$Definition` was modified + +* `withIdentity(models.ManagedServiceIdentity)` was added + +#### `models.KeySetUser` was modified + +* `userPrincipalName()` was added +* `withUserPrincipalName(java.lang.String)` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.VolumePatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AgentPoolList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.NetworkAttachment` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.HardwareInventoryNetworkInterface` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesCluster$Update` was modified + +* `withAdministratorConfiguration(models.AdministratorConfigurationPatch)` was added + +#### `models.AvailableUpgrade` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Cluster$Definition` was modified + +* `withSecretArchive(models.ClusterSecretArchive)` was added +* `withCommandOutputSettings(models.CommandOutputSettings)` was added +* `withIdentity(models.ManagedServiceIdentity)` was added +* `withUpdateStrategy(models.ClusterUpdateStrategy)` was added +* `withRuntimeProtectionConfiguration(models.RuntimeProtectionConfiguration)` was added + +#### `models.KubernetesClusterRestartNodeParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.EgressEndpoint` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.L3NetworkAttachmentConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Cluster$Update` was modified + +* `withSecretArchive(models.ClusterSecretArchive)` was added +* `withCommandOutputSettings(models.CommandOutputSettings)` was added +* `withUpdateStrategy(models.ClusterUpdateStrategy)` was added +* `withIdentity(models.ManagedServiceIdentity)` was added +* `withRuntimeProtectionConfiguration(models.RuntimeProtectionConfiguration)` was added + +#### `models.StorageApplianceConfigurationData` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AttachedNetworkConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.L3NetworkList` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.MachineSkuSlot` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.L2NetworkPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.StorageAppliancePatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesClusterPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `administratorConfiguration()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `withAdministratorConfiguration(models.AdministratorConfigurationPatch)` was added + +#### `models.RackDefinition` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.VirtualMachinePlacementHint` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ClusterMetricsConfigurationPatchParameters` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.L2NetworkAttachmentConfiguration` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.L2NetworkList` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.KubernetesClusterNode` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.NetworkInterface` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OperationDisplay` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ClusterManager` was modified + +* `identity()` was added + +#### `models.ServiceLoadBalancerBgpPeer` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.InitialAgentPoolConfiguration` was modified -### Other Changes +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added ## 1.0.0 (2023-08-25) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md index b475ca1675701..05e54f25f52a8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/README.md @@ -2,7 +2,7 @@ Azure Resource Manager NetworkCloud client library for Java. -This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the on-premises clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. Package tag package-2023-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-networkcloud - 1.0.0 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen ### Authentication -By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. +Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package. -- `AZURE_CLIENT_ID` for Azure client ID. -- `AZURE_TENANT_ID` for Azure tenant ID. -- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. +Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. - -With above configuration, `azure` client can be authenticated using the following code: +Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -94,9 +90,10 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS [docs]: https://azure.github.io/azure-sdk-for-java/ -[jdk]: https://docs.microsoft.com/java/azure/jdk/ +[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md index 73e1682809540..cf82527d4cc03 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md @@ -64,12 +64,14 @@ ## Clusters +- [ContinueUpdateVersion](#clusters_continueupdateversion) - [CreateOrUpdate](#clusters_createorupdate) - [Delete](#clusters_delete) - [Deploy](#clusters_deploy) - [GetByResourceGroup](#clusters_getbyresourcegroup) - [List](#clusters_list) - [ListByResourceGroup](#clusters_listbyresourcegroup) +- [ScanRuntime](#clusters_scanruntime) - [Update](#clusters_update) - [UpdateVersion](#clusters_updateversion) @@ -81,6 +83,14 @@ - [ListByVirtualMachine](#consoles_listbyvirtualmachine) - [Update](#consoles_update) +## KubernetesClusterFeatures + +- [CreateOrUpdate](#kubernetesclusterfeatures_createorupdate) +- [Delete](#kubernetesclusterfeatures_delete) +- [Get](#kubernetesclusterfeatures_get) +- [ListByKubernetesCluster](#kubernetesclusterfeatures_listbykubernetescluster) +- [Update](#kubernetesclusterfeatures_update) + ## KubernetesClusters - [CreateOrUpdate](#kubernetesclusters_createorupdate) @@ -197,61 +207,48 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for AgentPools CreateOrUpdate. */ +/** + * Samples for AgentPools CreateOrUpdate. + */ public final class AgentPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Create.json */ /** * Sample code: Create or update Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() + public static void + createOrUpdateKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() .define("agentPoolName") .withRegion("location") .withExistingKubernetesCluster("resourceGroupName", "kubernetesClusterName") .withCount(3L) .withMode(AgentPoolMode.SYSTEM) - .withVmSkuName("NC_M16_v1") + .withVmSkuName("NC_XXXX") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") - .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withAgentOptions(new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) - .withAttachedNetworkConfiguration( - new AttachedNetworkConfiguration() - .withL2Networks( - Arrays - .asList( - new L2NetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") - .withPluginType(KubernetesPluginType.DPDK))) - .withL3Networks( - Arrays - .asList( - new L3NetworkAttachmentConfiguration() - .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withPluginType(KubernetesPluginType.SRIOV))) - .withTrunkedNetworks( - Arrays - .asList( - new TrunkedNetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") - .withPluginType(KubernetesPluginType.MACVLAN)))) + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) @@ -276,20 +273,23 @@ public final class AgentPoolsCreateOrUpdateSamples { ### AgentPools_Delete ```java -/** Samples for AgentPools Delete. */ +/** + * Samples for AgentPools Delete. + */ public final class AgentPoolsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Delete.json */ /** * Sample code: Delete Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deleteKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() + public static void + deleteKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() .delete("resourceGroupName", "kubernetesClusterName", "agentPoolName", com.azure.core.util.Context.NONE); } } @@ -298,22 +298,25 @@ public final class AgentPoolsDeleteSamples { ### AgentPools_Get ```java -/** Samples for AgentPools Get. */ +/** + * Samples for AgentPools Get. + */ public final class AgentPoolsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Get.json */ /** * Sample code: Get Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void getKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() - .getWithResponse( - "resourceGroupName", "kubernetesClusterName", "agentPoolName", com.azure.core.util.Context.NONE); + public static void + getKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "agentPoolName", + com.azure.core.util.Context.NONE); } } ``` @@ -321,20 +324,23 @@ public final class AgentPoolsGetSamples { ### AgentPools_ListByKubernetesCluster ```java -/** Samples for AgentPools ListByKubernetesCluster. */ +/** + * Samples for AgentPools ListByKubernetesCluster. + */ public final class AgentPoolsListByKubernetesClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_ListByKubernetesCluster.json */ /** * Sample code: List agent pools of the Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listAgentPoolsOfTheKubernetesCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() + public static void + listAgentPoolsOfTheKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() .listByKubernetesCluster("resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); } } @@ -345,32 +351,39 @@ public final class AgentPoolsListByKubernetesClusterSamples { ```java import com.azure.resourcemanager.networkcloud.models.AgentPool; import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings; +import com.azure.resourcemanager.networkcloud.models.NodePoolAdministratorConfigurationPatch; +import com.azure.resourcemanager.networkcloud.models.SshPublicKey; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for AgentPools Update. */ +/** + * Samples for AgentPools Update. + */ public final class AgentPoolsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Patch.json */ /** * Sample code: Patch Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void patchKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - AgentPool resource = - manager - .agentPools() - .getWithResponse( - "resourceGroupName", "kubernetesClusterName", "agentPoolName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + patchKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + AgentPool resource = manager.agentPools() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "agentPoolName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withAdministratorConfiguration(new NodePoolAdministratorConfigurationPatch() + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withCount(3L) - .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) + .withUpgradeSettings( + new AgentPoolUpgradeSettings().withDrainTimeout(1800L).withMaxSurge("1").withMaxUnavailable("0")) .apply(); } @@ -400,43 +413,42 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachineKeySets CreateOrUpdate. */ +/** + * Samples for BareMetalMachineKeySets CreateOrUpdate. + */ public final class BareMetalMachineKeySetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Create.json */ /** * Sample code: Create or update bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateBareMetalMachineKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() + manager.bareMetalMachineKeySets() .define("bareMetalMachineKeySetName") .withRegion("location") .withExistingCluster("resourceGroupName", "clusterName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAzureGroupId("f110271b-XXXX-4163-9b99-214d91660f0e") .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) .withJumpHostsAllowed(Arrays.asList("192.0.2.1", "192.0.2.5")) .withPrivilegeLevel(BareMetalMachineKeySetPrivilegeLevel.STANDARD) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withOsGroupName("standardAccessGroup") .create(); @@ -459,20 +471,23 @@ public final class BareMetalMachineKeySetsCreateOrUpdateSamples { ### BareMetalMachineKeySets_Delete ```java -/** Samples for BareMetalMachineKeySets Delete. */ +/** + * Samples for BareMetalMachineKeySets Delete. + */ public final class BareMetalMachineKeySetsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Delete.json */ /** * Sample code: Delete bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deleteBareMetalMachineKeySetOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() + public static void + deleteBareMetalMachineKeySetOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachineKeySets() .delete("resourceGroupName", "clusterName", "bareMetalMachineKeySetName", com.azure.core.util.Context.NONE); } } @@ -481,22 +496,25 @@ public final class BareMetalMachineKeySetsDeleteSamples { ### BareMetalMachineKeySets_Get ```java -/** Samples for BareMetalMachineKeySets Get. */ +/** + * Samples for BareMetalMachineKeySets Get. + */ public final class BareMetalMachineKeySetsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Get.json */ /** * Sample code: Get bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void getBareMetalMachineKeySetOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() - .getWithResponse( - "resourceGroupName", "clusterName", "bareMetalMachineKeySetName", com.azure.core.util.Context.NONE); + public static void + getBareMetalMachineKeySetOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachineKeySets() + .getWithResponse("resourceGroupName", "clusterName", "bareMetalMachineKeySetName", + com.azure.core.util.Context.NONE); } } ``` @@ -504,20 +522,23 @@ public final class BareMetalMachineKeySetsGetSamples { ### BareMetalMachineKeySets_ListByCluster ```java -/** Samples for BareMetalMachineKeySets ListByCluster. */ +/** + * Samples for BareMetalMachineKeySets ListByCluster. + */ public final class BareMetalMachineKeySetsListByClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_ListByCluster.json */ /** * Sample code: List bare metal machine key sets of the cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listBareMetalMachineKeySetsOfTheCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() + public static void + listBareMetalMachineKeySetsOfTheCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachineKeySets() .listByCluster("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE); } } @@ -534,40 +555,39 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachineKeySets Update. */ +/** + * Samples for BareMetalMachineKeySets Update. + */ public final class BareMetalMachineKeySetsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Patch.json */ /** * Sample code: Patch bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void patchBareMetalMachineKeySetOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - BareMetalMachineKeySet resource = - manager - .bareMetalMachineKeySets() - .getWithResponse( - "resourceGroupName", "clusterName", "bareMetalMachineKeySetName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + patchBareMetalMachineKeySetOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + BareMetalMachineKeySet resource = manager.bareMetalMachineKeySets() + .getWithResponse("resourceGroupName", "clusterName", "bareMetalMachineKeySetName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) .withJumpHostsAllowed(Arrays.asList("192.0.2.1", "192.0.2.5")) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .apply(); } @@ -591,22 +611,23 @@ public final class BareMetalMachineKeySetsUpdateSamples { import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCordonParameters; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineEvacuate; -/** Samples for BareMetalMachines Cordon. */ +/** + * Samples for BareMetalMachines Cordon. + */ public final class BareMetalMachinesCordonSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Cordon.json */ /** * Sample code: Cordon bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void cordonBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .cordon( - "resourceGroupName", - "bareMetalMachineName", + manager.bareMetalMachines() + .cordon("resourceGroupName", "bareMetalMachineName", new BareMetalMachineCordonParameters().withEvacuate(BareMetalMachineEvacuate.TRUE), com.azure.core.util.Context.NONE); } @@ -621,28 +642,29 @@ import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachines CreateOrUpdate. */ +/** + * Samples for BareMetalMachines CreateOrUpdate. + */ public final class BareMetalMachinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Create.json */ /** * Sample code: Create or update bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateBareMetalMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + public static void + createOrUpdateBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachines() .define("bareMetalMachineName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withBmcConnectionString("bmcconnectionstring") .withBmcCredentials( new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("bmcuser")) @@ -676,19 +698,22 @@ public final class BareMetalMachinesCreateOrUpdateSamples { ### BareMetalMachines_Delete ```java -/** Samples for BareMetalMachines Delete. */ +/** + * Samples for BareMetalMachines Delete. + */ public final class BareMetalMachinesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Delete.json */ /** * Sample code: Delete bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .delete("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } @@ -697,21 +722,24 @@ public final class BareMetalMachinesDeleteSamples { ### BareMetalMachines_GetByResourceGroup ```java -/** Samples for BareMetalMachines GetByResourceGroup. */ +/** + * Samples for BareMetalMachines GetByResourceGroup. + */ public final class BareMetalMachinesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Get.json */ /** * Sample code: Get bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); + manager.bareMetalMachines() + .getByResourceGroupWithResponse("resourceGroupName", "bareMetalMachineName", + com.azure.core.util.Context.NONE); } } ``` @@ -719,18 +747,22 @@ public final class BareMetalMachinesGetByResourceGroupSamples { ### BareMetalMachines_List ```java -/** Samples for BareMetalMachines List. */ +/** + * Samples for BareMetalMachines List. + */ public final class BareMetalMachinesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_ListBySubscription.json */ /** * Sample code: List bare metal machines for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listBareMetalMachinesForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listBareMetalMachinesForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.bareMetalMachines().list(com.azure.core.util.Context.NONE); } } @@ -739,18 +771,22 @@ public final class BareMetalMachinesListSamples { ### BareMetalMachines_ListByResourceGroup ```java -/** Samples for BareMetalMachines ListByResourceGroup. */ +/** + * Samples for BareMetalMachines ListByResourceGroup. + */ public final class BareMetalMachinesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_ListByResourceGroup.json */ /** * Sample code: List bare metal machines for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listBareMetalMachinesForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listBareMetalMachinesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.bareMetalMachines().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -762,22 +798,23 @@ public final class BareMetalMachinesListByResourceGroupSamples { import com.azure.resourcemanager.networkcloud.models.BareMetalMachinePowerOffParameters; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineSkipShutdown; -/** Samples for BareMetalMachines PowerOff. */ +/** + * Samples for BareMetalMachines PowerOff. + */ public final class BareMetalMachinesPowerOffSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_PowerOff.json */ /** * Sample code: Power off bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void powerOffBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .powerOff( - "resourceGroupName", - "bareMetalMachineName", + manager.bareMetalMachines() + .powerOff("resourceGroupName", "bareMetalMachineName", new BareMetalMachinePowerOffParameters().withSkipShutdown(BareMetalMachineSkipShutdown.TRUE), com.azure.core.util.Context.NONE); } @@ -787,19 +824,22 @@ public final class BareMetalMachinesPowerOffSamples { ### BareMetalMachines_Reimage ```java -/** Samples for BareMetalMachines Reimage. */ +/** + * Samples for BareMetalMachines Reimage. + */ public final class BareMetalMachinesReimageSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Reimage.json */ /** * Sample code: Reimage bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void reimageBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .reimage("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } @@ -811,22 +851,23 @@ public final class BareMetalMachinesReimageSamples { import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReplaceParameters; -/** Samples for BareMetalMachines Replace. */ +/** + * Samples for BareMetalMachines Replace. + */ public final class BareMetalMachinesReplaceSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Replace.json */ /** * Sample code: Replace bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void replaceBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .replace( - "resourceGroupName", - "bareMetalMachineName", + manager.bareMetalMachines() + .replace("resourceGroupName", "bareMetalMachineName", new BareMetalMachineReplaceParameters() .withBmcCredentials( new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("bmcuser")) @@ -842,19 +883,22 @@ public final class BareMetalMachinesReplaceSamples { ### BareMetalMachines_Restart ```java -/** Samples for BareMetalMachines Restart. */ +/** + * Samples for BareMetalMachines Restart. + */ public final class BareMetalMachinesRestartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Restart.json */ /** * Sample code: Restart bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void restartBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .restart("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } @@ -866,25 +910,25 @@ public final class BareMetalMachinesRestartSamples { import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunCommandParameters; import java.util.Arrays; -/** Samples for BareMetalMachines RunCommand. */ +/** + * Samples for BareMetalMachines RunCommand. + */ public final class BareMetalMachinesRunCommandSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_RunCommand.json */ /** * Sample code: Run command on bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void runCommandOnBareMetalMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .runCommand( - "resourceGroupName", - "bareMetalMachineName", - new BareMetalMachineRunCommandParameters() - .withArguments(Arrays.asList("--argument1", "argument2")) + public static void + runCommandOnBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachines() + .runCommand("resourceGroupName", "bareMetalMachineName", + new BareMetalMachineRunCommandParameters().withArguments(Arrays.asList("--argument1", "argument2")) .withLimitTimeSeconds(60L) .withScript("cHdkCg=="), com.azure.core.util.Context.NONE); @@ -899,30 +943,27 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCommandSpec import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunDataExtractsParameters; import java.util.Arrays; -/** Samples for BareMetalMachines RunDataExtracts. */ +/** + * Samples for BareMetalMachines RunDataExtracts. + */ public final class BareMetalMachinesRunDataExtractsSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_RunDataExtracts.json */ /** * Sample code: Run data extraction on bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void runDataExtractionOnBareMetalMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .runDataExtracts( - "resourceGroupName", - "bareMetalMachineName", - new BareMetalMachineRunDataExtractsParameters() - .withCommands( - Arrays - .asList( - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("SysInfo", "TTYLog")) - .withCommand("hardware-support-data-collection"))) + public static void + runDataExtractionOnBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachines() + .runDataExtracts("resourceGroupName", "bareMetalMachineName", + new BareMetalMachineRunDataExtractsParameters().withCommands(Arrays + .asList(new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("SysInfo", "TTYLog")) + .withCommand("hardware-support-data-collection"))) .withLimitTimeSeconds(60L), com.azure.core.util.Context.NONE); } @@ -936,33 +977,29 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCommandSpec import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunReadCommandsParameters; import java.util.Arrays; -/** Samples for BareMetalMachines RunReadCommands. */ +/** + * Samples for BareMetalMachines RunReadCommands. + */ public final class BareMetalMachinesRunReadCommandsSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_RunReadCommands.json */ /** * Sample code: Run and retrieve output from read only commands on bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .runReadCommands( - "resourceGroupName", - "bareMetalMachineName", - new BareMetalMachineRunReadCommandsParameters() - .withCommands( - Arrays - .asList( - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("pods", "-A")) - .withCommand("kubectl get"), - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("192.168.0.99", "-c", "3")) - .withCommand("ping"))) + manager.bareMetalMachines() + .runReadCommands("resourceGroupName", "bareMetalMachineName", + new BareMetalMachineRunReadCommandsParameters().withCommands(Arrays.asList( + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("pods", "-A")) + .withCommand("kubectl get"), + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("192.168.0.99", "-c", "3")) + .withCommand("ping"))) .withLimitTimeSeconds(60L), com.azure.core.util.Context.NONE); } @@ -972,19 +1009,22 @@ public final class BareMetalMachinesRunReadCommandsSamples { ### BareMetalMachines_Start ```java -/** Samples for BareMetalMachines Start. */ +/** + * Samples for BareMetalMachines Start. + */ public final class BareMetalMachinesStartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Start.json */ /** * Sample code: Start bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void startBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .start("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } @@ -993,19 +1033,22 @@ public final class BareMetalMachinesStartSamples { ### BareMetalMachines_Uncordon ```java -/** Samples for BareMetalMachines Uncordon. */ +/** + * Samples for BareMetalMachines Uncordon. + */ public final class BareMetalMachinesUncordonSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Uncordon.json */ /** * Sample code: Uncordon bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void uncordonBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .uncordon("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } @@ -1018,25 +1061,26 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachine; import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachines Update. */ +/** + * Samples for BareMetalMachines Update. + */ public final class BareMetalMachinesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Patch.json */ /** * Sample code: Patch bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - BareMetalMachine resource = - manager - .bareMetalMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + BareMetalMachine resource = manager.bareMetalMachines() + .getByResourceGroupWithResponse("resourceGroupName", "bareMetalMachineName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withMachineDetails("machinedetails") .apply(); @@ -1068,42 +1112,41 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for BmcKeySets CreateOrUpdate. */ +/** + * Samples for BmcKeySets CreateOrUpdate. + */ public final class BmcKeySetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Create.json */ /** * Sample code: Create or update baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bmcKeySets() + manager.bmcKeySets() .define("bmcKeySetName") .withRegion("location") .withExistingCluster("resourceGroupName", "clusterName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAzureGroupId("f110271b-XXXX-4163-9b99-214d91660f0e") .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) .withPrivilegeLevel(BmcKeySetPrivilegeLevel.ADMINISTRATOR) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .create(); } @@ -1125,20 +1168,23 @@ public final class BmcKeySetsCreateOrUpdateSamples { ### BmcKeySets_Delete ```java -/** Samples for BmcKeySets Delete. */ +/** + * Samples for BmcKeySets Delete. + */ public final class BmcKeySetsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Delete.json */ /** * Sample code: Delete baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bmcKeySets() + manager.bmcKeySets() .delete("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE); } } @@ -1147,20 +1193,23 @@ public final class BmcKeySetsDeleteSamples { ### BmcKeySets_Get ```java -/** Samples for BmcKeySets Get. */ +/** + * Samples for BmcKeySets Get. + */ public final class BmcKeySetsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Get.json */ /** * Sample code: Get baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bmcKeySets() + manager.bmcKeySets() .getWithResponse("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE); } } @@ -1169,14 +1218,18 @@ public final class BmcKeySetsGetSamples { ### BmcKeySets_ListByCluster ```java -/** Samples for BmcKeySets ListByCluster. */ +/** + * Samples for BmcKeySets ListByCluster. + */ public final class BmcKeySetsListByClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_ListByCluster.json */ /** * Sample code: List baseboard management controller key sets of the cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listBaseboardManagementControllerKeySetsOfTheCluster( @@ -1197,38 +1250,37 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for BmcKeySets Update. */ +/** + * Samples for BmcKeySets Update. + */ public final class BmcKeySetsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Patch.json */ /** * Sample code: Patch baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - BmcKeySet resource = - manager - .bmcKeySets() - .getWithResponse("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + BmcKeySet resource = manager.bmcKeySets() + .getWithResponse("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .apply(); } @@ -1257,40 +1309,33 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for CloudServicesNetworks CreateOrUpdate. */ +/** + * Samples for CloudServicesNetworks CreateOrUpdate. + */ public final class CloudServicesNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Create.json */ /** * Sample code: Create or update cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateCloudServicesNetwork( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .cloudServicesNetworks() + public static void + createOrUpdateCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.cloudServicesNetworks() .define("cloudServicesNetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withAdditionalEgressEndpoints( - Arrays - .asList( - new EgressEndpoint() - .withCategory("azure-resource-management") - .withEndpoints( - Arrays - .asList( - new EndpointDependency() - .withDomainName("https://storageaccountex.blob.core.windows.net") - .withPort(443L))))) + .withAdditionalEgressEndpoints(Arrays.asList(new EgressEndpoint().withCategory("azure-resource-management") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("storageaccountex.blob.core.windows.net").withPort(443L))))) .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE) .create(); } @@ -1312,19 +1357,22 @@ public final class CloudServicesNetworksCreateOrUpdateSamples { ### CloudServicesNetworks_Delete ```java -/** Samples for CloudServicesNetworks Delete. */ +/** + * Samples for CloudServicesNetworks Delete. + */ public final class CloudServicesNetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Delete.json */ /** * Sample code: Delete cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .cloudServicesNetworks() + manager.cloudServicesNetworks() .delete("resourceGroupName", "cloudServicesNetworkName", com.azure.core.util.Context.NONE); } } @@ -1333,21 +1381,24 @@ public final class CloudServicesNetworksDeleteSamples { ### CloudServicesNetworks_GetByResourceGroup ```java -/** Samples for CloudServicesNetworks GetByResourceGroup. */ +/** + * Samples for CloudServicesNetworks GetByResourceGroup. + */ public final class CloudServicesNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Get.json */ /** * Sample code: Get cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .cloudServicesNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "cloudServicesNetworkName", com.azure.core.util.Context.NONE); + manager.cloudServicesNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "cloudServicesNetworkName", + com.azure.core.util.Context.NONE); } } ``` @@ -1355,18 +1406,22 @@ public final class CloudServicesNetworksGetByResourceGroupSamples { ### CloudServicesNetworks_List ```java -/** Samples for CloudServicesNetworks List. */ +/** + * Samples for CloudServicesNetworks List. + */ public final class CloudServicesNetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_ListBySubscription.json */ /** * Sample code: List cloud services networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listCloudServicesNetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listCloudServicesNetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.cloudServicesNetworks().list(com.azure.core.util.Context.NONE); } } @@ -1375,18 +1430,22 @@ public final class CloudServicesNetworksListSamples { ### CloudServicesNetworks_ListByResourceGroup ```java -/** Samples for CloudServicesNetworks ListByResourceGroup. */ +/** + * Samples for CloudServicesNetworks ListByResourceGroup. + */ public final class CloudServicesNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_ListByResourceGroup.json */ /** * Sample code: List cloud services networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listCloudServicesNetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listCloudServicesNetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.cloudServicesNetworks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -1403,37 +1462,30 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for CloudServicesNetworks Update. */ +/** + * Samples for CloudServicesNetworks Update. + */ public final class CloudServicesNetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Patch.json */ /** * Sample code: Patch cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - CloudServicesNetwork resource = - manager - .cloudServicesNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "cloudServicesNetworkName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + CloudServicesNetwork resource = manager.cloudServicesNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "cloudServicesNetworkName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withAdditionalEgressEndpoints( - Arrays - .asList( - new EgressEndpoint() - .withCategory("azure-resource-management") - .withEndpoints( - Arrays - .asList( - new EndpointDependency() - .withDomainName("https://storageaccountex.blob.core.windows.net") - .withPort(443L))))) + .withAdditionalEgressEndpoints(Arrays.asList(new EgressEndpoint().withCategory("azure-resource-management") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("storageaccountex.blob.core.windows.net").withPort(443L))))) .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE) .apply(); } @@ -1456,29 +1508,66 @@ public final class CloudServicesNetworksUpdateSamples { ```java import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.util.HashMap; import java.util.Map; -/** Samples for ClusterManagers CreateOrUpdate. */ +/** + * Samples for ClusterManagers CreateOrUpdate. + */ public final class ClusterManagersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Create.json */ /** * Sample code: Create or update cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateClusterManager( + public static void + createOrUpdateClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusterManagers() + .define("clusterManagerName") + .withRegion("location") + .withExistingResourceGroup("resourceGroupName") + .withFabricControllerId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName") + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) + .withAnalyticsWorkspaceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") + .withManagedResourceGroupConfiguration( + new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) + .create(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Create_Uami.json + */ + /** + * Sample code: Create or update cluster manager with user assigned identity. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void createOrUpdateClusterManagerWithUserAssignedIdentity( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusterManagers() + manager.clusterManagers() .define("clusterManagerName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") .withFabricControllerId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + new UserAssignedIdentity()))) .withAnalyticsWorkspaceId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") .withManagedResourceGroupConfiguration( @@ -1503,14 +1592,18 @@ public final class ClusterManagersCreateOrUpdateSamples { ### ClusterManagers_Delete ```java -/** Samples for ClusterManagers Delete. */ +/** + * Samples for ClusterManagers Delete. + */ public final class ClusterManagersDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Delete.json */ /** * Sample code: Delete cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -1522,21 +1615,24 @@ public final class ClusterManagersDeleteSamples { ### ClusterManagers_GetByResourceGroup ```java -/** Samples for ClusterManagers GetByResourceGroup. */ +/** + * Samples for ClusterManagers GetByResourceGroup. + */ public final class ClusterManagersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Get.json */ /** * Sample code: Get cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusterManagers() - .getByResourceGroupWithResponse( - "resourceGroupName", "clusterManagerName", com.azure.core.util.Context.NONE); + manager.clusterManagers() + .getByResourceGroupWithResponse("resourceGroupName", "clusterManagerName", + com.azure.core.util.Context.NONE); } } ``` @@ -1544,18 +1640,22 @@ public final class ClusterManagersGetByResourceGroupSamples { ### ClusterManagers_List ```java -/** Samples for ClusterManagers List. */ +/** + * Samples for ClusterManagers List. + */ public final class ClusterManagersListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_ListBySubscription.json */ /** * Sample code: List cluster managers for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listClusterManagersForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listClusterManagersForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.clusterManagers().list(com.azure.core.util.Context.NONE); } } @@ -1564,18 +1664,22 @@ public final class ClusterManagersListSamples { ### ClusterManagers_ListByResourceGroup ```java -/** Samples for ClusterManagers ListByResourceGroup. */ +/** + * Samples for ClusterManagers ListByResourceGroup. + */ public final class ClusterManagersListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_ListByResourceGroup.json */ /** * Sample code: List cluster managers for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listClusterManagersForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listClusterManagersForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.clusterManagers().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -1585,27 +1689,39 @@ public final class ClusterManagersListByResourceGroupSamples { ```java import com.azure.resourcemanager.networkcloud.models.ClusterManager; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.util.HashMap; import java.util.Map; -/** Samples for ClusterManagers Update. */ +/** + * Samples for ClusterManagers Update. + */ public final class ClusterManagersUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Patch.json */ /** * Sample code: Patch cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - ClusterManager resource = - manager - .clusterManagers() - .getByResourceGroupWithResponse( - "resourceGroupName", "clusterManagerName", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); + ClusterManager resource = manager.clusterManagers() + .getByResourceGroupWithResponse("resourceGroupName", "clusterManagerName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + null, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + new UserAssignedIdentity()))) + .apply(); } // Use "Map.of" if available @@ -1622,17 +1738,60 @@ public final class ClusterManagersUpdateSamples { } ``` +### Clusters_ContinueUpdateVersion + +```java +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionMachineGroupTargetingMode; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; + +/** + * Samples for Clusters ContinueUpdateVersion. + */ +public final class ClustersContinueUpdateVersionSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ContinueUpdateVersion.json + */ + /** + * Sample code: Continue update cluster version. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + continueUpdateClusterVersion(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusters() + .continueUpdateVersion("resourceGroupName", "clusterName", + new ClusterContinueUpdateVersionParameters() + .withMachineGroupTargetingMode(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK), + com.azure.core.util.Context.NONE); + } +} +``` + ### Clusters_CreateOrUpdate ```java import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; import com.azure.resourcemanager.networkcloud.models.ClusterType; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; +import com.azure.resourcemanager.networkcloud.models.IdentitySelector; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; @@ -1640,138 +1799,127 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for Clusters CreateOrUpdate. */ +/** + * Samples for Clusters CreateOrUpdate. + */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Create.json */ /** * Sample code: Create or update cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() + manager.clusters() .define("clusterName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") - .withType("CustomLocation")) - .withAggregatorOrSingleRackDefinition( - new RackDefinition() - .withBareMetalMachineConfigurationData( - Arrays - .asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") - .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) - .withNetworkRackId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") - .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") - .withRackSerialNumber("AA1234") - .withRackSkuId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData( - Arrays - .asList( - new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName")))) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") + .withType("CustomLocation")) + .withAggregatorOrSingleRackDefinition(new RackDefinition() + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData().withBmcCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) + .withNetworkRackId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") + .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") + .withRackSerialNumber("AA1234") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withRackSlot(1L) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName")))) .withClusterType(ClusterType.SINGLE_RACK) .withClusterVersion("1.0.0") .withNetworkFabricId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + new UserAssignedIdentity()))) .withAnalyticsWorkspaceId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") .withClusterLocation("Foo Street, 3rd Floor, row 9") .withClusterServicePrincipal( - new ServicePrincipalInformation() - .withApplicationId("12345678-1234-1234-1234-123456789012") + new ServicePrincipalInformation().withApplicationId("12345678-1234-1234-1234-123456789012") .withPassword("fakeTokenPlaceholder") .withPrincipalId("00000008-0004-0004-0004-000000000012") .withTenantId("80000000-4000-4000-4000-120000000000")) + .withCommandOutputSettings(new CommandOutputSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")) + .withContainerUrl("https://myaccount.blob.core.windows.net/mycontainer?restype=container")) .withComputeDeploymentThreshold( - new ValidationThreshold() - .withGrouping(ValidationThresholdGrouping.PER_CLUSTER) + new ValidationThreshold().withGrouping(ValidationThresholdGrouping.PER_CLUSTER) .withType(ValidationThresholdType.PERCENT_SUCCESS) .withValue(90L)) - .withComputeRackDefinitions( - Arrays - .asList( - new RackDefinition() - .withBareMetalMachineConfigurationData( - Arrays - .asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") - .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) - .withNetworkRackId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") - .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") - .withRackSerialNumber("AA1234") - .withRackSkuId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData( - Arrays - .asList( - new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName"))))) + .withComputeRackDefinitions(Arrays.asList(new RackDefinition() + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData().withBmcCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) + .withNetworkRackId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") + .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") + .withRackSerialNumber("AA1234") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withRackSlot(1L) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName"))))) .withManagedResourceGroupConfiguration( new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) + .withRuntimeProtectionConfiguration( + new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND)) + .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") + .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .withUpdateStrategy(new ClusterUpdateStrategy().withMaxUnavailable(4L) + .withStrategyType(ClusterUpdateStrategyType.RACK) + .withThresholdType(ValidationThresholdType.COUNT_SUCCESS) + .withThresholdValue(4L) + .withWaitTimeMinutes(10L)) .create(); } @@ -1792,14 +1940,18 @@ public final class ClustersCreateOrUpdateSamples { ### Clusters_Delete ```java -/** Samples for Clusters Delete. */ +/** + * Samples for Clusters Delete. + */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Delete.json */ /** * Sample code: Delete cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -1814,38 +1966,40 @@ public final class ClustersDeleteSamples { import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; import java.util.Arrays; -/** Samples for Clusters Deploy. */ +/** + * Samples for Clusters Deploy. + */ public final class ClustersDeploySamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Deploy.json */ /** * Sample code: Deploy cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deployCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() - .deploy( - "resourceGroupName", "clusterName", new ClusterDeployParameters(), com.azure.core.util.Context.NONE); + manager.clusters() + .deploy("resourceGroupName", "clusterName", new ClusterDeployParameters(), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Deploy_SkipValidation.json */ /** * Sample code: Deploy cluster skipping validation. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deployClusterSkippingValidation( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() - .deploy( - "resourceGroupName", - "clusterName", + public static void + deployClusterSkippingValidation(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusters() + .deploy("resourceGroupName", "clusterName", new ClusterDeployParameters().withSkipValidationsForMachines(Arrays.asList("bmmName1")), com.azure.core.util.Context.NONE); } @@ -1855,19 +2009,22 @@ public final class ClustersDeploySamples { ### Clusters_GetByResourceGroup ```java -/** Samples for Clusters GetByResourceGroup. */ +/** + * Samples for Clusters GetByResourceGroup. + */ public final class ClustersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Get.json */ /** * Sample code: Get cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() + manager.clusters() .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE); } } @@ -1876,14 +2033,18 @@ public final class ClustersGetByResourceGroupSamples { ### Clusters_List ```java -/** Samples for Clusters List. */ +/** + * Samples for Clusters List. + */ public final class ClustersListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ListBySubscription.json */ /** * Sample code: List clusters for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listClustersForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -1895,31 +2056,77 @@ public final class ClustersListSamples { ### Clusters_ListByResourceGroup ```java -/** Samples for Clusters ListByResourceGroup. */ +/** + * Samples for Clusters ListByResourceGroup. + */ public final class ClustersListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ListByResourceGroup.json */ /** * Sample code: List clusters for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listClustersForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listClustersForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.clusters().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } ``` +### Clusters_ScanRuntime + +```java +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParametersScanActivity; + +/** + * Samples for Clusters ScanRuntime. + */ +public final class ClustersScanRuntimeSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ScanRuntime.json + */ + /** + * Sample code: Execute a runtime protection scan on the cluster. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + executeARuntimeProtectionScanOnTheCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusters() + .scanRuntime("resourceGroupName", "clusterName", + new ClusterScanRuntimeParameters().withScanActivity(ClusterScanRuntimeParametersScanActivity.SCAN), + com.azure.core.util.Context.NONE); + } +} +``` + ### Clusters_Update ```java import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; import com.azure.resourcemanager.networkcloud.models.Cluster; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; +import com.azure.resourcemanager.networkcloud.models.IdentitySelector; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; @@ -1927,99 +2134,186 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for Clusters Update. */ +/** + * Samples for Clusters Update. + */ public final class ClustersUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_UpdateStrategy.json + */ + /** + * Sample code: Patch update strategy. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchUpdateStrategy(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withUpdateStrategy(new ClusterUpdateStrategy().withMaxUnavailable(4L) + .withStrategyType(ClusterUpdateStrategyType.RACK) + .withThresholdType(ValidationThresholdType.COUNT_SUCCESS) + .withThresholdValue(4L) + .withWaitTimeMinutes(10L)) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_Location.json */ /** * Sample code: Patch cluster location. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchClusterLocation(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Cluster resource = - manager - .clusters() - .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withClusterLocation("Foo Street, 3rd Floor, row 9") .apply(); } /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_AggregatorOrSingleRackDefinition.json */ /** * Sample code: Patch cluster AggregatorOrSingleRackDefinition. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchClusterAggregatorOrSingleRackDefinition( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Cluster resource = - manager - .clusters() - .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withAggregatorOrSingleRackDefinition( new RackDefinition() - .withBareMetalMachineConfigurationData( - Arrays - .asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") - .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData() + .withBmcCredentials( + new AdministrativeCredentials() + .withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) .withNetworkRackId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") .withRackSerialNumber("newSerialNumber") .withRackSkuId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData( - Arrays - .asList( - new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName")))) + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withRackSlot(1L) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName")))) .withComputeDeploymentThreshold( - new ValidationThreshold() - .withGrouping(ValidationThresholdGrouping.PER_CLUSTER) + new ValidationThreshold().withGrouping(ValidationThresholdGrouping.PER_CLUSTER) .withType(ValidationThresholdType.PERCENT_SUCCESS) .withValue(90L)) .apply(); } + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_CommandOutput.json + */ + /** + * Sample code: Patch cluster command output. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchClusterCommandOutput(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + null, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + new UserAssignedIdentity()))) + .withCommandOutputSettings(new CommandOutputSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2")) + .withContainerUrl("https://myaccount.blob.core.windows.net/mycontainer?restype=container")) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_RuntimeProtectionConfiguration.json + */ + /** + * Sample code: Patch runtime protection configuration. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + patchRuntimeProtectionConfiguration(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withRuntimeProtectionConfiguration( + new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND)) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_SecretArchive.json + */ + /** + * Sample code: Patch secret archive. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchSecretArchive(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") + .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .apply(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { @@ -2039,24 +2333,24 @@ public final class ClustersUpdateSamples { ```java import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; -/** Samples for Clusters UpdateVersion. */ +/** + * Samples for Clusters UpdateVersion. + */ public final class ClustersUpdateVersionSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_UpdateVersion.json */ /** * Sample code: Update cluster version. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void updateClusterVersion(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() - .updateVersion( - "resourceGroupName", - "clusterName", - new ClusterUpdateVersionParameters().withTargetClusterVersion("2.0"), - com.azure.core.util.Context.NONE); + manager.clusters() + .updateVersion("resourceGroupName", "clusterName", + new ClusterUpdateVersionParameters().withTargetClusterVersion("2.0"), com.azure.core.util.Context.NONE); } } ``` @@ -2071,28 +2365,29 @@ import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; -/** Samples for Consoles CreateOrUpdate. */ +/** + * Samples for Consoles CreateOrUpdate. + */ public final class ConsolesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Create.json */ /** * Sample code: Create or update virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateVirtualMachineConsole( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + public static void + createOrUpdateVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.consoles() .define("default") .withRegion("location") .withExistingVirtualMachine("resourceGroupName", "virtualMachineName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") + .withType("CustomLocation")) .withEnabled(ConsoleEnabled.TRUE) .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) @@ -2117,19 +2412,22 @@ public final class ConsolesCreateOrUpdateSamples { ### Consoles_Delete ```java -/** Samples for Consoles Delete. */ +/** + * Samples for Consoles Delete. + */ public final class ConsolesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Delete.json */ /** * Sample code: Delete virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + manager.consoles() .delete("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE); } } @@ -2138,19 +2436,22 @@ public final class ConsolesDeleteSamples { ### Consoles_Get ```java -/** Samples for Consoles Get. */ +/** + * Samples for Consoles Get. + */ public final class ConsolesGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Get.json */ /** * Sample code: Get virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + manager.consoles() .getWithResponse("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE); } } @@ -2159,20 +2460,23 @@ public final class ConsolesGetSamples { ### Consoles_ListByVirtualMachine ```java -/** Samples for Consoles ListByVirtualMachine. */ +/** + * Samples for Consoles ListByVirtualMachine. + */ public final class ConsolesListByVirtualMachineSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_ListByVirtualMachine.json */ /** * Sample code: List consoles of the virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listConsolesOfTheVirtualMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + public static void + listConsolesOfTheVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.consoles() .listByVirtualMachine("resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE); } } @@ -2188,24 +2492,25 @@ import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; -/** Samples for Consoles Update. */ +/** + * Samples for Consoles Update. + */ public final class ConsolesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Patch.json */ /** * Sample code: Patch virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Console resource = - manager - .consoles() - .getWithResponse("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Console resource = manager.consoles() + .getWithResponse("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withEnabled(ConsoleEnabled.TRUE) .withExpiration(OffsetDateTime.parse("2022-06-01T01:27:03.008Z")) @@ -2227,6 +2532,179 @@ public final class ConsolesUpdateSamples { } ``` +### KubernetesClusterFeatures_CreateOrUpdate + +```java +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for KubernetesClusterFeatures CreateOrUpdate. + */ +public final class KubernetesClusterFeaturesCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Create.json + */ + /** + * Sample code: Create or update Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + createOrUpdateKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .define("featureName") + .withRegion("location") + .withExistingKubernetesCluster("resourceGroupName", "kubernetesClusterName") + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withOptions( + Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("featureOptionValue"))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + +### KubernetesClusterFeatures_Delete + +```java +/** + * Samples for KubernetesClusterFeatures Delete. + */ +public final class KubernetesClusterFeaturesDeleteSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Delete.json + */ + /** + * Sample code: Delete Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + deleteKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .delete("resourceGroupName", "kubernetesClusterName", "featureName", com.azure.core.util.Context.NONE); + } +} +``` + +### KubernetesClusterFeatures_Get + +```java +/** + * Samples for KubernetesClusterFeatures Get. + */ +public final class KubernetesClusterFeaturesGetSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Get.json + */ + /** + * Sample code: Get Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void getKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "featureName", + com.azure.core.util.Context.NONE); + } +} +``` + +### KubernetesClusterFeatures_ListByKubernetesCluster + +```java +/** + * Samples for KubernetesClusterFeatures ListByKubernetesCluster. + */ +public final class KubernetesClusterFeaturesListByKubernetesClusterSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_ListByKubernetesCluster.json + */ + /** + * Sample code: List features for the Kubernetes cluster. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + listFeaturesForTheKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .listByKubernetesCluster("resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); + } +} +``` + +### KubernetesClusterFeatures_Update + +```java +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeature; +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for KubernetesClusterFeatures Update. + */ +public final class KubernetesClusterFeaturesUpdateSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Patch.json + */ + /** + * Sample code: Patch Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + patchKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + KubernetesClusterFeature resource = manager.kubernetesClusterFeatures() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "featureName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withOptions( + Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("featureOptionValue"))) + .apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} +``` + ### KubernetesClusters_CreateOrUpdate ```java @@ -2250,6 +2728,7 @@ import com.azure.resourcemanager.networkcloud.models.IpAddressPool; import com.azure.resourcemanager.networkcloud.models.KubernetesLabel; import com.azure.resourcemanager.networkcloud.models.KubernetesPluginType; import com.azure.resourcemanager.networkcloud.models.L2NetworkAttachmentConfiguration; +import com.azure.resourcemanager.networkcloud.models.L2ServiceLoadBalancerConfiguration; import com.azure.resourcemanager.networkcloud.models.L3NetworkAttachmentConfiguration; import com.azure.resourcemanager.networkcloud.models.L3NetworkConfigurationIpamEnabled; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; @@ -2261,155 +2740,190 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for KubernetesClusters CreateOrUpdate. */ +/** + * Samples for KubernetesClusters CreateOrUpdate. + */ public final class KubernetesClustersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Create.json */ /** * Sample code: Create or update Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateKubernetesCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() + public static void + createOrUpdateKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusters() .define("kubernetesClusterName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) - .withControlPlaneNodeConfiguration( - new ControlPlaneNodeConfiguration() - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") - .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) - .withAvailabilityZones(Arrays.asList("1", "2", "3")) - .withCount(3L) - .withVmSkuName("NC_G4_v1")) - .withInitialAgentPoolConfigurations( - Arrays - .asList( - new InitialAgentPoolConfiguration() - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") - .withSshPublicKeys( - Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) - .withAgentOptions( - new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) - .withAttachedNetworkConfiguration( - new AttachedNetworkConfiguration() - .withL2Networks( - Arrays - .asList( - new L2NetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") - .withPluginType(KubernetesPluginType.DPDK))) - .withL3Networks( - Arrays - .asList( - new L3NetworkAttachmentConfiguration() - .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withPluginType(KubernetesPluginType.SRIOV))) - .withTrunkedNetworks( - Arrays - .asList( - new TrunkedNetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") - .withPluginType(KubernetesPluginType.MACVLAN)))) - .withAvailabilityZones(Arrays.asList("1", "2", "3")) - .withCount(3L) - .withLabels( - Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) - .withMode(AgentPoolMode.SYSTEM) - .withName("SystemPool-1") - .withTaints( - Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) - .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) - .withVmSkuName("NC_M16_v1"))) - .withKubernetesVersion("1.24.12-1") - .withNetworkConfiguration( - new NetworkConfiguration() - .withAttachedNetworkConfiguration( - new AttachedNetworkConfiguration() - .withL2Networks( - Arrays - .asList( - new L2NetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") - .withPluginType(KubernetesPluginType.DPDK))) - .withL3Networks( - Arrays - .asList( - new L3NetworkAttachmentConfiguration() - .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withPluginType(KubernetesPluginType.SRIOV))) - .withTrunkedNetworks( - Arrays - .asList( - new TrunkedNetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") - .withPluginType(KubernetesPluginType.MACVLAN)))) - .withBgpServiceLoadBalancerConfiguration( - new BgpServiceLoadBalancerConfiguration() - .withBgpAdvertisements( - Arrays - .asList( - new BgpAdvertisement() - .withAdvertiseToFabric(AdvertiseToFabric.TRUE) - .withCommunities(Arrays.asList("64512:100")) - .withIpAddressPools(Arrays.asList("pool1")) - .withPeers(Arrays.asList("peer1")))) - .withBgpPeers( - Arrays - .asList( - new ServiceLoadBalancerBgpPeer() - .withBfdEnabled(BfdEnabled.FALSE) - .withBgpMultiHop(BgpMultiHop.FALSE) - .withHoldTime("P300s") - .withKeepAliveTime("P300s") - .withMyAsn(64512L) - .withName("peer1") - .withPeerAddress("203.0.113.254") - .withPeerAsn(64497L) - .withPeerPort(179L))) - .withFabricPeeringEnabled(FabricPeeringEnabled.TRUE) - .withIpAddressPools( - Arrays - .asList( - new IpAddressPool() - .withAddresses(Arrays.asList("198.51.102.0/24")) - .withAutoAssign(BfdEnabled.TRUE) - .withName("pool1") - .withOnlyUseHostIps(BfdEnabled.TRUE)))) - .withCloudServicesNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") - .withCniNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withDnsServiceIp("198.51.101.2") - .withPodCidrs(Arrays.asList("198.51.100.0/24")) - .withServiceCidrs(Arrays.asList("198.51.101.0/24"))) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withControlPlaneNodeConfiguration(new ControlPlaneNodeConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withVmSkuName("NC_XXXX")) + .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAgentOptions(new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withMode(AgentPoolMode.SYSTEM) + .withName("SystemPool-1") + .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) + .withVmSkuName("NC_XXXX"))) + .withKubernetesVersion("1.XX.Y") + .withNetworkConfiguration(new NetworkConfiguration() + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withBgpServiceLoadBalancerConfiguration(new BgpServiceLoadBalancerConfiguration() + .withBgpAdvertisements( + Arrays.asList(new BgpAdvertisement().withAdvertiseToFabric(AdvertiseToFabric.TRUE) + .withCommunities(Arrays.asList("64512:100")) + .withIpAddressPools(Arrays.asList("pool1")) + .withPeers(Arrays.asList("peer1")))) + .withBgpPeers(Arrays.asList(new ServiceLoadBalancerBgpPeer().withBfdEnabled(BfdEnabled.FALSE) + .withBgpMultiHop(BgpMultiHop.FALSE) + .withHoldTime("P300s") + .withKeepAliveTime("P300s") + .withMyAsn(64512L) + .withName("peer1") + .withPeerAddress("203.0.113.254") + .withPeerAsn(64497L) + .withPeerPort(179L))) + .withFabricPeeringEnabled(FabricPeeringEnabled.TRUE) + .withIpAddressPools( + Arrays.asList(new IpAddressPool().withAddresses(Arrays.asList("198.51.102.0/24")) + .withAutoAssign(BfdEnabled.TRUE) + .withName("pool1") + .withOnlyUseHostIps(BfdEnabled.TRUE)))) + .withCloudServicesNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") + .withCniNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withDnsServiceIp("198.51.101.2") + .withPodCidrs(Arrays.asList("198.51.100.0/24")) + .withServiceCidrs(Arrays.asList("198.51.101.0/24"))) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withAadConfiguration( new AadConfiguration().withAdminGroupObjectIds(Arrays.asList("ffffffff-ffff-ffff-ffff-ffffffffffff"))) - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withManagedResourceGroupConfiguration( + new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) + .create(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_L2LoadBalancer_Create.json + */ + /** + * Sample code: Create or update Kubernetes cluster with a layer 2 load balancer. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void createOrUpdateKubernetesClusterWithALayer2LoadBalancer( + com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusters() + .define("kubernetesClusterName") + .withRegion("location") + .withExistingResourceGroup("resourceGroupName") + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withControlPlaneNodeConfiguration(new ControlPlaneNodeConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withVmSkuName("NC_XXXX")) + .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAgentOptions(new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withMode(AgentPoolMode.SYSTEM) + .withName("SystemPool-1") + .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) + .withVmSkuName("NC_XXXX"))) + .withKubernetesVersion("1.XX.Y") + .withNetworkConfiguration(new NetworkConfiguration() + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withCloudServicesNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") + .withCniNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withDnsServiceIp("198.51.101.2") + .withL2ServiceLoadBalancerConfiguration(new L2ServiceLoadBalancerConfiguration().withIpAddressPools( + Arrays.asList(new IpAddressPool().withAddresses(Arrays.asList("198.51.102.2-198.51.102.254")) + .withAutoAssign(BfdEnabled.TRUE) + .withName("pool1")))) + .withPodCidrs(Arrays.asList("198.51.100.0/24")) + .withServiceCidrs(Arrays.asList("198.51.101.0/24"))) + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withAadConfiguration( + new AadConfiguration().withAdminGroupObjectIds(Arrays.asList("ffffffff-ffff-ffff-ffff-ffffffffffff"))) + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withManagedResourceGroupConfiguration( new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) .create(); @@ -2432,19 +2946,22 @@ public final class KubernetesClustersCreateOrUpdateSamples { ### KubernetesClusters_Delete ```java -/** Samples for KubernetesClusters Delete. */ +/** + * Samples for KubernetesClusters Delete. + */ public final class KubernetesClustersDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Delete.json */ /** * Sample code: Delete Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() + manager.kubernetesClusters() .delete("resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); } } @@ -2453,21 +2970,24 @@ public final class KubernetesClustersDeleteSamples { ### KubernetesClusters_GetByResourceGroup ```java -/** Samples for KubernetesClusters GetByResourceGroup. */ +/** + * Samples for KubernetesClusters GetByResourceGroup. + */ public final class KubernetesClustersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Get.json */ /** * Sample code: Get Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() - .getByResourceGroupWithResponse( - "resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); + manager.kubernetesClusters() + .getByResourceGroupWithResponse("resourceGroupName", "kubernetesClusterName", + com.azure.core.util.Context.NONE); } } ``` @@ -2475,18 +2995,22 @@ public final class KubernetesClustersGetByResourceGroupSamples { ### KubernetesClusters_List ```java -/** Samples for KubernetesClusters List. */ +/** + * Samples for KubernetesClusters List. + */ public final class KubernetesClustersListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_ListBySubscription.json */ /** * Sample code: List Kubernetes clusters for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listKubernetesClustersForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listKubernetesClustersForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.kubernetesClusters().list(com.azure.core.util.Context.NONE); } } @@ -2495,18 +3019,22 @@ public final class KubernetesClustersListSamples { ### KubernetesClusters_ListByResourceGroup ```java -/** Samples for KubernetesClusters ListByResourceGroup. */ +/** + * Samples for KubernetesClusters ListByResourceGroup. + */ public final class KubernetesClustersListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_ListByResourceGroup.json */ /** * Sample code: List Kubernetes clusters for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listKubernetesClustersForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listKubernetesClustersForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.kubernetesClusters().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -2517,23 +3045,24 @@ public final class KubernetesClustersListByResourceGroupSamples { ```java import com.azure.resourcemanager.networkcloud.models.KubernetesClusterRestartNodeParameters; -/** Samples for KubernetesClusters RestartNode. */ +/** + * Samples for KubernetesClusters RestartNode. + */ public final class KubernetesClustersRestartNodeSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_RestartNode.json */ /** * Sample code: Restart a Kubernetes cluster node. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void restartAKubernetesClusterNode( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() - .restartNode( - "resourceGroupName", - "kubernetesClusterName", + public static void + restartAKubernetesClusterNode(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusters() + .restartNode("resourceGroupName", "kubernetesClusterName", new KubernetesClusterRestartNodeParameters().withNodeName("nodeName"), com.azure.core.util.Context.NONE); } @@ -2543,33 +3072,42 @@ public final class KubernetesClustersRestartNodeSamples { ### KubernetesClusters_Update ```java +import com.azure.resourcemanager.networkcloud.models.AdministratorConfigurationPatch; import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodePatchConfiguration; import com.azure.resourcemanager.networkcloud.models.KubernetesCluster; +import com.azure.resourcemanager.networkcloud.models.SshPublicKey; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for KubernetesClusters Update. */ +/** + * Samples for KubernetesClusters Update. + */ public final class KubernetesClustersUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Patch.json */ /** * Sample code: Patch Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - KubernetesCluster resource = - manager - .kubernetesClusters() - .getByResourceGroupWithResponse( - "resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + KubernetesCluster resource = manager.kubernetesClusters() + .getByResourceGroupWithResponse("resourceGroupName", "kubernetesClusterName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withControlPlaneNodeConfiguration(new ControlPlaneNodePatchConfiguration().withCount(3L)) - .withKubernetesVersion("1.24.12") + .withAdministratorConfiguration(new AdministratorConfigurationPatch() + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withControlPlaneNodeConfiguration(new ControlPlaneNodePatchConfiguration() + .withAdministratorConfiguration(new AdministratorConfigurationPatch() + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withCount(3L)) + .withKubernetesVersion("1.XX.Y") .apply(); } @@ -2595,27 +3133,28 @@ import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import java.util.HashMap; import java.util.Map; -/** Samples for L2Networks CreateOrUpdate. */ +/** + * Samples for L2Networks CreateOrUpdate. + */ public final class L2NetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Create.json */ /** * Sample code: Create or update L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l2Networks() + manager.l2Networks() .define("l2NetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withL2IsolationDomainId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) @@ -2641,14 +3180,18 @@ public final class L2NetworksCreateOrUpdateSamples { ### L2Networks_Delete ```java -/** Samples for L2Networks Delete. */ +/** + * Samples for L2Networks Delete. + */ public final class L2NetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Delete.json */ /** * Sample code: Delete L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -2660,19 +3203,22 @@ public final class L2NetworksDeleteSamples { ### L2Networks_GetByResourceGroup ```java -/** Samples for L2Networks GetByResourceGroup. */ +/** + * Samples for L2Networks GetByResourceGroup. + */ public final class L2NetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Get.json */ /** * Sample code: Get L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l2Networks() + manager.l2Networks() .getByResourceGroupWithResponse("resourceGroupName", "l2NetworkName", com.azure.core.util.Context.NONE); } } @@ -2681,18 +3227,22 @@ public final class L2NetworksGetByResourceGroupSamples { ### L2Networks_List ```java -/** Samples for L2Networks List. */ +/** + * Samples for L2Networks List. + */ public final class L2NetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_ListBySubscription.json */ /** * Sample code: List L2 networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL2NetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL2NetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l2Networks().list(com.azure.core.util.Context.NONE); } } @@ -2701,18 +3251,22 @@ public final class L2NetworksListSamples { ### L2Networks_ListByResourceGroup ```java -/** Samples for L2Networks ListByResourceGroup. */ +/** + * Samples for L2Networks ListByResourceGroup. + */ public final class L2NetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_ListByResourceGroup.json */ /** * Sample code: List L2 networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL2NetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL2NetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l2Networks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -2725,22 +3279,24 @@ import com.azure.resourcemanager.networkcloud.models.L2Network; import java.util.HashMap; import java.util.Map; -/** Samples for L2Networks Update. */ +/** + * Samples for L2Networks Update. + */ public final class L2NetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Patch.json */ /** * Sample code: Patch L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - L2Network resource = - manager - .l2Networks() - .getByResourceGroupWithResponse("resourceGroupName", "l2NetworkName", com.azure.core.util.Context.NONE) - .getValue(); + L2Network resource = manager.l2Networks() + .getByResourceGroupWithResponse("resourceGroupName", "l2NetworkName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } @@ -2766,27 +3322,28 @@ import com.azure.resourcemanager.networkcloud.models.IpAllocationType; import java.util.HashMap; import java.util.Map; -/** Samples for L3Networks CreateOrUpdate. */ +/** + * Samples for L3Networks CreateOrUpdate. + */ public final class L3NetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Create.json */ /** * Sample code: Create or update L3 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateL3Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l3Networks() + manager.l3Networks() .define("l3NetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withL3IsolationDomainId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName") .withVlan(12L) @@ -2815,14 +3372,18 @@ public final class L3NetworksCreateOrUpdateSamples { ### L3Networks_Delete ```java -/** Samples for L3Networks Delete. */ +/** + * Samples for L3Networks Delete. + */ public final class L3NetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Delete.json */ /** * Sample code: Delete L3 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteL3Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -2834,19 +3395,22 @@ public final class L3NetworksDeleteSamples { ### L3Networks_GetByResourceGroup ```java -/** Samples for L3Networks GetByResourceGroup. */ +/** + * Samples for L3Networks GetByResourceGroup. + */ public final class L3NetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Get.json */ /** * Sample code: Get L3network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getL3network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l3Networks() + manager.l3Networks() .getByResourceGroupWithResponse("resourceGroupName", "l3NetworkName", com.azure.core.util.Context.NONE); } } @@ -2855,18 +3419,22 @@ public final class L3NetworksGetByResourceGroupSamples { ### L3Networks_List ```java -/** Samples for L3Networks List. */ +/** + * Samples for L3Networks List. + */ public final class L3NetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_ListBySubscription.json */ /** * Sample code: List L3 networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL3NetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL3NetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l3Networks().list(com.azure.core.util.Context.NONE); } } @@ -2875,18 +3443,22 @@ public final class L3NetworksListSamples { ### L3Networks_ListByResourceGroup ```java -/** Samples for L3Networks ListByResourceGroup. */ +/** + * Samples for L3Networks ListByResourceGroup. + */ public final class L3NetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_ListByResourceGroup.json */ /** * Sample code: List L3 networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL3NetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL3NetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l3Networks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -2899,22 +3471,24 @@ import com.azure.resourcemanager.networkcloud.models.L3Network; import java.util.HashMap; import java.util.Map; -/** Samples for L3Networks Update. */ +/** + * Samples for L3Networks Update. + */ public final class L3NetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Patch.json */ /** * Sample code: Patch L3 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchL3Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - L3Network resource = - manager - .l3Networks() - .getByResourceGroupWithResponse("resourceGroupName", "l3NetworkName", com.azure.core.util.Context.NONE) - .getValue(); + L3Network resource = manager.l3Networks() + .getByResourceGroupWithResponse("resourceGroupName", "l3NetworkName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } @@ -2940,28 +3514,29 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for MetricsConfigurations CreateOrUpdate. */ +/** + * Samples for MetricsConfigurations CreateOrUpdate. + */ public final class MetricsConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Create.json */ /** * Sample code: Create or update metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateMetricsConfigurationOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + manager.metricsConfigurations() .define("default") .withRegion("location") .withExistingCluster("resourceGroupName", "clusterName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withCollectionInterval(15L) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withEnabledMetrics(Arrays.asList("metric1", "metric2")) @@ -2985,20 +3560,23 @@ public final class MetricsConfigurationsCreateOrUpdateSamples { ### MetricsConfigurations_Delete ```java -/** Samples for MetricsConfigurations Delete. */ +/** + * Samples for MetricsConfigurations Delete. + */ public final class MetricsConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Delete.json */ /** * Sample code: Delete metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deleteMetricsConfigurationOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + public static void + deleteMetricsConfigurationOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.metricsConfigurations() .delete("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE); } } @@ -3007,20 +3585,23 @@ public final class MetricsConfigurationsDeleteSamples { ### MetricsConfigurations_Get ```java -/** Samples for MetricsConfigurations Get. */ +/** + * Samples for MetricsConfigurations Get. + */ public final class MetricsConfigurationsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Get.json */ /** * Sample code: Get metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void getMetricsConfigurationOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + public static void + getMetricsConfigurationOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.metricsConfigurations() .getWithResponse("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE); } } @@ -3029,20 +3610,23 @@ public final class MetricsConfigurationsGetSamples { ### MetricsConfigurations_ListByCluster ```java -/** Samples for MetricsConfigurations ListByCluster. */ +/** + * Samples for MetricsConfigurations ListByCluster. + */ public final class MetricsConfigurationsListByClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_ListByCluster.json */ /** * Sample code: List metrics configurations of the cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listMetricsConfigurationsOfTheCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + public static void + listMetricsConfigurationsOfTheCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.metricsConfigurations() .listByCluster("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE); } } @@ -3056,25 +3640,26 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for MetricsConfigurations Update. */ +/** + * Samples for MetricsConfigurations Update. + */ public final class MetricsConfigurationsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Patch.json */ /** * Sample code: Patch metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void patchMetricsConfigurationOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - ClusterMetricsConfiguration resource = - manager - .metricsConfigurations() - .getWithResponse("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + patchMetricsConfigurationOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + ClusterMetricsConfiguration resource = manager.metricsConfigurations() + .getWithResponse("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withCollectionInterval(15L) .withEnabledMetrics(Arrays.asList("metric1", "metric2")) @@ -3098,18 +3683,22 @@ public final class MetricsConfigurationsUpdateSamples { ### Operations_List ```java -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Operations_List.json */ /** * Sample code: List resource provider operations. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listResourceProviderOperations( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listResourceProviderOperations(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } } @@ -3118,14 +3707,18 @@ public final class OperationsListSamples { ### RackSkus_Get ```java -/** Samples for RackSkus Get. */ +/** + * Samples for RackSkus Get. + */ public final class RackSkusGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * RackSkus_Get.json */ /** * Sample code: Get rack SKU resource. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getRackSKUResource(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3137,14 +3730,18 @@ public final class RackSkusGetSamples { ### RackSkus_List ```java -/** Samples for RackSkus List. */ +/** + * Samples for RackSkus List. + */ public final class RackSkusListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * RackSkus_ListBySubscription.json */ /** * Sample code: List rack SKUs for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listRackSKUsForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3160,31 +3757,33 @@ import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import java.util.HashMap; import java.util.Map; -/** Samples for Racks CreateOrUpdate. */ +/** + * Samples for Racks CreateOrUpdate. + */ public final class RacksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_Create.json */ /** * Sample code: Create or update rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .racks() + manager.racks() .define("rackName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAvailabilityZone("1") .withRackLocation("Rack 28") .withRackSerialNumber("RACK_SERIAL_NUMBER") - .withRackSkuId("RACK-TYPE-1") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .create(); } @@ -3206,14 +3805,18 @@ public final class RacksCreateOrUpdateSamples { ### Racks_Delete ```java -/** Samples for Racks Delete. */ +/** + * Samples for Racks Delete. + */ public final class RacksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_Delete.json */ /** * Sample code: Delete rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3225,19 +3828,22 @@ public final class RacksDeleteSamples { ### Racks_GetByResourceGroup ```java -/** Samples for Racks GetByResourceGroup. */ +/** + * Samples for Racks GetByResourceGroup. + */ public final class RacksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get. + * json */ /** * Sample code: Get rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .racks() + manager.racks() .getByResourceGroupWithResponse("resourceGroupName", "rackName", com.azure.core.util.Context.NONE); } } @@ -3246,14 +3852,18 @@ public final class RacksGetByResourceGroupSamples { ### Racks_List ```java -/** Samples for Racks List. */ +/** + * Samples for Racks List. + */ public final class RacksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_ListBySubscription.json */ /** * Sample code: List racks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listRacksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3265,14 +3875,18 @@ public final class RacksListSamples { ### Racks_ListByResourceGroup ```java -/** Samples for Racks ListByResourceGroup. */ +/** + * Samples for Racks ListByResourceGroup. + */ public final class RacksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_ListByResourceGroup.json */ /** * Sample code: List racks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listRacksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3288,24 +3902,25 @@ import com.azure.resourcemanager.networkcloud.models.Rack; import java.util.HashMap; import java.util.Map; -/** Samples for Racks Update. */ +/** + * Samples for Racks Update. + */ public final class RacksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_Patch.json */ /** * Sample code: Patch rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Rack resource = - manager - .racks() - .getByResourceGroupWithResponse("resourceGroupName", "rackName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Rack resource = manager.racks() + .getByResourceGroupWithResponse("resourceGroupName", "rackName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withRackLocation("Rack 2B") .withRackSerialNumber("RACK_SERIAL_NUMBER") @@ -3334,28 +3949,29 @@ import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import java.util.HashMap; import java.util.Map; -/** Samples for StorageAppliances CreateOrUpdate. */ +/** + * Samples for StorageAppliances CreateOrUpdate. + */ public final class StorageAppliancesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Create.json */ /** * Sample code: Create or update storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateStorageAppliance( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() + public static void + createOrUpdateStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.storageAppliances() .define("storageApplianceName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAdministratorCredentials( new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("adminUser")) .withRackId( @@ -3384,19 +4000,22 @@ public final class StorageAppliancesCreateOrUpdateSamples { ### StorageAppliances_Delete ```java -/** Samples for StorageAppliances Delete. */ +/** + * Samples for StorageAppliances Delete. + */ public final class StorageAppliancesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Delete.json */ /** * Sample code: Delete storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() + manager.storageAppliances() .delete("resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE); } } @@ -3405,22 +4024,25 @@ public final class StorageAppliancesDeleteSamples { ### StorageAppliances_DisableRemoteVendorManagement ```java -/** Samples for StorageAppliances DisableRemoteVendorManagement. */ +/** + * Samples for StorageAppliances DisableRemoteVendorManagement. + */ public final class StorageAppliancesDisableRemoteVendorManagementSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_DisableRemoteVendorManagement.json */ /** * Sample code: Turn off remote vendor management for storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void turnOffRemoteVendorManagementForStorageAppliance( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() - .disableRemoteVendorManagement( - "resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE); + manager.storageAppliances() + .disableRemoteVendorManagement("resourceGroupName", "storageApplianceName", + com.azure.core.util.Context.NONE); } } ``` @@ -3431,23 +4053,24 @@ public final class StorageAppliancesDisableRemoteVendorManagementSamples { import com.azure.resourcemanager.networkcloud.models.StorageApplianceEnableRemoteVendorManagementParameters; import java.util.Arrays; -/** Samples for StorageAppliances EnableRemoteVendorManagement. */ +/** + * Samples for StorageAppliances EnableRemoteVendorManagement. + */ public final class StorageAppliancesEnableRemoteVendorManagementSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_EnableRemoteVendorManagement.json */ /** * Sample code: Turn on remote vendor management for storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void turnOnRemoteVendorManagementForStorageAppliance( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() - .enableRemoteVendorManagement( - "resourceGroupName", - "storageApplianceName", + manager.storageAppliances() + .enableRemoteVendorManagement("resourceGroupName", "storageApplianceName", new StorageApplianceEnableRemoteVendorManagementParameters() .withSupportEndpoints(Arrays.asList("10.0.0.0/24")), com.azure.core.util.Context.NONE); @@ -3458,21 +4081,24 @@ public final class StorageAppliancesEnableRemoteVendorManagementSamples { ### StorageAppliances_GetByResourceGroup ```java -/** Samples for StorageAppliances GetByResourceGroup. */ +/** + * Samples for StorageAppliances GetByResourceGroup. + */ public final class StorageAppliancesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Get.json */ /** * Sample code: Get storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() - .getByResourceGroupWithResponse( - "resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE); + manager.storageAppliances() + .getByResourceGroupWithResponse("resourceGroupName", "storageApplianceName", + com.azure.core.util.Context.NONE); } } ``` @@ -3480,18 +4106,22 @@ public final class StorageAppliancesGetByResourceGroupSamples { ### StorageAppliances_List ```java -/** Samples for StorageAppliances List. */ +/** + * Samples for StorageAppliances List. + */ public final class StorageAppliancesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_ListBySubscription.json */ /** * Sample code: List storage appliances for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listStorageAppliancesForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listStorageAppliancesForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.storageAppliances().list(com.azure.core.util.Context.NONE); } } @@ -3500,18 +4130,22 @@ public final class StorageAppliancesListSamples { ### StorageAppliances_ListByResourceGroup ```java -/** Samples for StorageAppliances ListByResourceGroup. */ +/** + * Samples for StorageAppliances ListByResourceGroup. + */ public final class StorageAppliancesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_ListByResourceGroup.json */ /** * Sample code: List storage appliances for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listStorageAppliancesForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listStorageAppliancesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.storageAppliances().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -3524,25 +4158,26 @@ import com.azure.resourcemanager.networkcloud.models.StorageAppliance; import java.util.HashMap; import java.util.Map; -/** Samples for StorageAppliances Update. */ +/** + * Samples for StorageAppliances Update. + */ public final class StorageAppliancesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Patch.json */ /** * Sample code: Patch storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - StorageAppliance resource = - manager - .storageAppliances() - .getByResourceGroupWithResponse( - "resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + StorageAppliance resource = manager.storageAppliances() + .getByResourceGroupWithResponse("resourceGroupName", "storageApplianceName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withSerialNumber("BM1219XXX") .apply(); @@ -3570,33 +4205,32 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for TrunkedNetworks CreateOrUpdate. */ +/** + * Samples for TrunkedNetworks CreateOrUpdate. + */ public final class TrunkedNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Create.json */ /** * Sample code: Create or update trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateTrunkedNetwork( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .trunkedNetworks() + public static void + createOrUpdateTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.trunkedNetworks() .define("trunkedNetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) - .withIsolationDomainIds( - Arrays - .asList( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withIsolationDomainIds(Arrays.asList( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName")) .withVlans(Arrays.asList(12L, 14L)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withInterfaceName("eth0") @@ -3620,14 +4254,18 @@ public final class TrunkedNetworksCreateOrUpdateSamples { ### TrunkedNetworks_Delete ```java -/** Samples for TrunkedNetworks Delete. */ +/** + * Samples for TrunkedNetworks Delete. + */ public final class TrunkedNetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Delete.json */ /** * Sample code: Delete trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3639,21 +4277,24 @@ public final class TrunkedNetworksDeleteSamples { ### TrunkedNetworks_GetByResourceGroup ```java -/** Samples for TrunkedNetworks GetByResourceGroup. */ +/** + * Samples for TrunkedNetworks GetByResourceGroup. + */ public final class TrunkedNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Get.json */ /** * Sample code: Get Trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .trunkedNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "trunkedNetworkName", com.azure.core.util.Context.NONE); + manager.trunkedNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "trunkedNetworkName", + com.azure.core.util.Context.NONE); } } ``` @@ -3661,18 +4302,22 @@ public final class TrunkedNetworksGetByResourceGroupSamples { ### TrunkedNetworks_List ```java -/** Samples for TrunkedNetworks List. */ +/** + * Samples for TrunkedNetworks List. + */ public final class TrunkedNetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_ListBySubscription.json */ /** * Sample code: List trunked networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listTrunkedNetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listTrunkedNetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.trunkedNetworks().list(com.azure.core.util.Context.NONE); } } @@ -3681,18 +4326,22 @@ public final class TrunkedNetworksListSamples { ### TrunkedNetworks_ListByResourceGroup ```java -/** Samples for TrunkedNetworks ListByResourceGroup. */ +/** + * Samples for TrunkedNetworks ListByResourceGroup. + */ public final class TrunkedNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_ListByResourceGroup.json */ /** * Sample code: List Trunked networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listTrunkedNetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listTrunkedNetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.trunkedNetworks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -3705,23 +4354,24 @@ import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; import java.util.HashMap; import java.util.Map; -/** Samples for TrunkedNetworks Update. */ +/** + * Samples for TrunkedNetworks Update. + */ public final class TrunkedNetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Patch.json */ /** * Sample code: Patch trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - TrunkedNetwork resource = - manager - .trunkedNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "trunkedNetworkName", com.azure.core.util.Context.NONE) - .getValue(); + TrunkedNetwork resource = manager.trunkedNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "trunkedNetworkName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } @@ -3762,79 +4412,64 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for VirtualMachines CreateOrUpdate. */ +/** + * Samples for VirtualMachines CreateOrUpdate. + */ public final class VirtualMachinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Create.json */ /** * Sample code: Create or update virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateVirtualMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .virtualMachines() + public static void + createOrUpdateVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.virtualMachines() .define("virtualMachineName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAdminUsername("username") - .withCloudServicesNetworkAttachment( - new NetworkAttachment() - .withAttachedNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") - .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC)) + .withCloudServicesNetworkAttachment(new NetworkAttachment().withAttachedNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") + .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC)) .withCpuCores(2L) .withMemorySizeGB(8L) - .withStorageProfile( - new StorageProfile() - .withOsDisk( - new OsDisk() - .withCreateOption(OsDiskCreateOption.EPHEMERAL) - .withDeleteOption(OsDiskDeleteOption.DELETE) - .withDiskSizeGB(120L)) - .withVolumeAttachments( - Arrays - .asList( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName"))) + .withStorageProfile(new StorageProfile() + .withOsDisk(new OsDisk().withCreateOption(OsDiskCreateOption.EPHEMERAL) + .withDeleteOption(OsDiskDeleteOption.DELETE) + .withDiskSizeGB(120L)) + .withVolumeAttachments(Arrays.asList( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName"))) .withVmImage("myacr.azurecr.io/foobar:latest") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withBootMethod(VirtualMachineBootMethod.UEFI) - .withNetworkAttachments( - Arrays - .asList( - new NetworkAttachment() - .withAttachedNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withDefaultGateway(DefaultGateway.TRUE) - .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC) - .withIpv4Address("198.51.100.1") - .withIpv6Address("2001:0db8:0000:0000:0000:0000:0000:0000") - .withNetworkAttachmentName("netAttachName01"))) + .withNetworkAttachments(Arrays.asList(new NetworkAttachment().withAttachedNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withDefaultGateway(DefaultGateway.TRUE) + .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC) + .withIpv4Address("198.51.100.1") + .withIpv6Address("2001:0db8:0000:0000:0000:0000:0000:0000") + .withNetworkAttachmentName("netAttachName01"))) .withNetworkData("bmV0d29ya0RhdGVTYW1wbGU=") - .withPlacementHints( - Arrays - .asList( - new VirtualMachinePlacementHint() - .withHintType(VirtualMachinePlacementHintType.AFFINITY) - .withResourceId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName") - .withSchedulingExecution(VirtualMachineSchedulingExecution.HARD) - .withScope(VirtualMachinePlacementHintPodAffinityScope.fromString("")))) + .withPlacementHints(Arrays.asList(new VirtualMachinePlacementHint() + .withHintType(VirtualMachinePlacementHintType.AFFINITY) + .withResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName") + .withSchedulingExecution(VirtualMachineSchedulingExecution.HARD) + .withScope(VirtualMachinePlacementHintPodAffinityScope.fromString("")))) .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder"))) .withUserData("dXNlckRhdGVTYW1wbGU=") .withVmDeviceModel(VirtualMachineDeviceModelType.T2) - .withVmImageRepositoryCredentials( - new ImageRepositoryCredentials() - .withPassword("fakeTokenPlaceholder") - .withRegistryUrl("myacr.azurecr.io") - .withUsername("myuser")) + .withVmImageRepositoryCredentials(new ImageRepositoryCredentials().withPassword("fakeTokenPlaceholder") + .withRegistryUrl("myacr.azurecr.io") + .withUsername("myuser")) .create(); } @@ -3855,14 +4490,18 @@ public final class VirtualMachinesCreateOrUpdateSamples { ### VirtualMachines_Delete ```java -/** Samples for VirtualMachines Delete. */ +/** + * Samples for VirtualMachines Delete. + */ public final class VirtualMachinesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Delete.json */ /** * Sample code: Delete virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3874,21 +4513,24 @@ public final class VirtualMachinesDeleteSamples { ### VirtualMachines_GetByResourceGroup ```java -/** Samples for VirtualMachines GetByResourceGroup. */ +/** + * Samples for VirtualMachines GetByResourceGroup. + */ public final class VirtualMachinesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Get.json */ /** * Sample code: Get virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .virtualMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE); + manager.virtualMachines() + .getByResourceGroupWithResponse("resourceGroupName", "virtualMachineName", + com.azure.core.util.Context.NONE); } } ``` @@ -3896,18 +4538,22 @@ public final class VirtualMachinesGetByResourceGroupSamples { ### VirtualMachines_List ```java -/** Samples for VirtualMachines List. */ +/** + * Samples for VirtualMachines List. + */ public final class VirtualMachinesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_ListBySubscription.json */ /** * Sample code: List virtual machines for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listVirtualMachinesForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listVirtualMachinesForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.virtualMachines().list(com.azure.core.util.Context.NONE); } } @@ -3916,18 +4562,22 @@ public final class VirtualMachinesListSamples { ### VirtualMachines_ListByResourceGroup ```java -/** Samples for VirtualMachines ListByResourceGroup. */ +/** + * Samples for VirtualMachines ListByResourceGroup. + */ public final class VirtualMachinesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_ListByResourceGroup.json */ /** * Sample code: List virtual machines for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listVirtualMachinesForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listVirtualMachinesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.virtualMachines().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } @@ -3939,22 +4589,23 @@ public final class VirtualMachinesListByResourceGroupSamples { import com.azure.resourcemanager.networkcloud.models.SkipShutdown; import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerOffParameters; -/** Samples for VirtualMachines PowerOff. */ +/** + * Samples for VirtualMachines PowerOff. + */ public final class VirtualMachinesPowerOffSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_PowerOff.json */ /** * Sample code: Power off virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void powerOffVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .virtualMachines() - .powerOff( - "resourceGroupName", - "virtualMachineName", + manager.virtualMachines() + .powerOff("resourceGroupName", "virtualMachineName", new VirtualMachinePowerOffParameters().withSkipShutdown(SkipShutdown.TRUE), com.azure.core.util.Context.NONE); } @@ -3964,14 +4615,18 @@ public final class VirtualMachinesPowerOffSamples { ### VirtualMachines_Reimage ```java -/** Samples for VirtualMachines Reimage. */ +/** + * Samples for VirtualMachines Reimage. + */ public final class VirtualMachinesReimageSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Reimage.json */ /** * Sample code: Reimage virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void reimageVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -3983,14 +4638,18 @@ public final class VirtualMachinesReimageSamples { ### VirtualMachines_Restart ```java -/** Samples for VirtualMachines Restart. */ +/** + * Samples for VirtualMachines Restart. + */ public final class VirtualMachinesRestartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Restart.json */ /** * Sample code: Restart virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void restartVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -4002,14 +4661,18 @@ public final class VirtualMachinesRestartSamples { ### VirtualMachines_Start ```java -/** Samples for VirtualMachines Start. */ +/** + * Samples for VirtualMachines Start. + */ public final class VirtualMachinesStartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Start.json */ /** * Sample code: Start virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void startVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -4026,31 +4689,29 @@ import com.azure.resourcemanager.networkcloud.models.VirtualMachine; import java.util.HashMap; import java.util.Map; -/** Samples for VirtualMachines Update. */ +/** + * Samples for VirtualMachines Update. + */ public final class VirtualMachinesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Patch.json */ /** * Sample code: Patch virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - VirtualMachine resource = - manager - .virtualMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + VirtualMachine resource = manager.virtualMachines() + .getByResourceGroupWithResponse("resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withVmImageRepositoryCredentials( - new ImageRepositoryCredentials() - .withPassword("fakeTokenPlaceholder") - .withRegistryUrl("myacr.azurecr.io") - .withUsername("myuser")) + .withVmImageRepositoryCredentials(new ImageRepositoryCredentials().withPassword("fakeTokenPlaceholder") + .withRegistryUrl("myacr.azurecr.io") + .withUsername("myuser")) .apply(); } @@ -4075,27 +4736,28 @@ import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import java.util.HashMap; import java.util.Map; -/** Samples for Volumes CreateOrUpdate. */ +/** + * Samples for Volumes CreateOrUpdate. + */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Create.json */ /** * Sample code: Create or update volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .volumes() + manager.volumes() .define("volumeName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withSizeMiB(10000L) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .create(); @@ -4118,14 +4780,18 @@ public final class VolumesCreateOrUpdateSamples { ### Volumes_Delete ```java -/** Samples for Volumes Delete. */ +/** + * Samples for Volumes Delete. + */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Delete.json */ /** * Sample code: Delete volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -4137,19 +4803,22 @@ public final class VolumesDeleteSamples { ### Volumes_GetByResourceGroup ```java -/** Samples for Volumes GetByResourceGroup. */ +/** + * Samples for Volumes GetByResourceGroup. + */ public final class VolumesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Get.json */ /** * Sample code: Get volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .volumes() + manager.volumes() .getByResourceGroupWithResponse("resourceGroupName", "volumeName", com.azure.core.util.Context.NONE); } } @@ -4158,14 +4827,18 @@ public final class VolumesGetByResourceGroupSamples { ### Volumes_List ```java -/** Samples for Volumes List. */ +/** + * Samples for Volumes List. + */ public final class VolumesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_ListBySubscription.json */ /** * Sample code: List volume for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listVolumeForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -4177,14 +4850,18 @@ public final class VolumesListSamples { ### Volumes_ListByResourceGroup ```java -/** Samples for Volumes ListByResourceGroup. */ +/** + * Samples for Volumes ListByResourceGroup. + */ public final class VolumesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_ListByResourceGroup.json */ /** * Sample code: List volumes for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listVolumesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { @@ -4200,22 +4877,24 @@ import com.azure.resourcemanager.networkcloud.models.Volume; import java.util.HashMap; import java.util.Map; -/** Samples for Volumes Update. */ +/** + * Samples for Volumes Update. + */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Patch.json */ /** * Sample code: Patch volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Volume resource = - manager - .volumes() - .getByResourceGroupWithResponse("resourceGroupName", "volumeName", com.azure.core.util.Context.NONE) - .getValue(); + Volume resource = manager.volumes() + .getByResourceGroupWithResponse("resourceGroupName", "volumeName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml index 4a87240223321..17a3179b0156c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for NetworkCloud Management - This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the on-premises clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. Package tag package-2023-07-01. + This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview. https://github.com/Azure/azure-sdk-for-java @@ -45,6 +45,8 @@ UTF-8 0 0 + true + false @@ -75,8 +77,6 @@ 4.11.0 test - - net.bytebuddy byte-buddy diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java index 377afb07e3ae2..3693f811cf422 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/NetworkCloudManager.java @@ -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; @@ -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; @@ -32,6 +32,7 @@ import com.azure.resourcemanager.networkcloud.implementation.ClusterManagersImpl; import com.azure.resourcemanager.networkcloud.implementation.ClustersImpl; import com.azure.resourcemanager.networkcloud.implementation.ConsolesImpl; +import com.azure.resourcemanager.networkcloud.implementation.KubernetesClusterFeaturesImpl; import com.azure.resourcemanager.networkcloud.implementation.KubernetesClustersImpl; import com.azure.resourcemanager.networkcloud.implementation.L2NetworksImpl; import com.azure.resourcemanager.networkcloud.implementation.L3NetworksImpl; @@ -52,6 +53,7 @@ import com.azure.resourcemanager.networkcloud.models.ClusterManagers; import com.azure.resourcemanager.networkcloud.models.Clusters; import com.azure.resourcemanager.networkcloud.models.Consoles; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatures; import com.azure.resourcemanager.networkcloud.models.KubernetesClusters; import com.azure.resourcemanager.networkcloud.models.L2Networks; import com.azure.resourcemanager.networkcloud.models.L3Networks; @@ -71,8 +73,9 @@ import java.util.stream.Collectors; /** - * Entry point to NetworkCloudManager. The Network Cloud APIs provide management of the on-premises clusters and their - * resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. + * Entry point to NetworkCloudManager. + * The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, + * hardware resources, and workload infrastructure resources. */ public final class NetworkCloudManager { private Operations operations; @@ -111,6 +114,8 @@ public final class NetworkCloudManager { private AgentPools agentPools; + private KubernetesClusterFeatures kubernetesClusterFeatures; + private Consoles consoles; private final NetworkCloud clientObject; @@ -127,7 +132,7 @@ private NetworkCloudManager(HttpPipeline httpPipeline, AzureProfile profile, Dur /** * Creates an instance of NetworkCloud service API entry point. - * + * * @param credential the credential to use. * @param profile the Azure profile for client. * @return the NetworkCloud service API instance. @@ -140,7 +145,7 @@ public static NetworkCloudManager authenticate(TokenCredential credential, Azure /** * Creates an instance of NetworkCloud service API entry point. - * + * * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. * @param profile the Azure profile for client. * @return the NetworkCloud service API instance. @@ -153,14 +158,16 @@ public static NetworkCloudManager authenticate(HttpPipeline httpPipeline, AzureP /** * Gets a Configurable instance that can be used to create NetworkCloudManager with optional configuration. - * + * * @return the Configurable instance allowing configurations. */ public static Configurable configure() { return new NetworkCloudManager.Configurable(); } - /** The Configurable allowing configurations to be set. */ + /** + * The Configurable allowing configurations to be set. + */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); @@ -232,8 +239,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { /** * Sets the retry options for the HTTP pipeline retry policy. - * - *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + *

+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. * * @param retryOptions the retry options for the HTTP pipeline retry policy. * @return the configurable object itself. @@ -275,7 +282,7 @@ public NetworkCloudManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.networkcloud") .append("/") - .append("1.0.0"); + .append("1.1.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -308,7 +315,7 @@ public NetworkCloudManager authenticate(TokenCredential credential, AzureProfile 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())); @@ -323,7 +330,7 @@ public NetworkCloudManager authenticate(TokenCredential credential, AzureProfile /** * Gets the resource collection API of Operations. - * + * * @return Resource collection API of Operations. */ public Operations operations() { @@ -335,7 +342,7 @@ public Operations operations() { /** * Gets the resource collection API of BareMetalMachines. It manages BareMetalMachine. - * + * * @return Resource collection API of BareMetalMachines. */ public BareMetalMachines bareMetalMachines() { @@ -347,7 +354,7 @@ public BareMetalMachines bareMetalMachines() { /** * Gets the resource collection API of CloudServicesNetworks. It manages CloudServicesNetwork. - * + * * @return Resource collection API of CloudServicesNetworks. */ public CloudServicesNetworks cloudServicesNetworks() { @@ -359,7 +366,7 @@ public CloudServicesNetworks cloudServicesNetworks() { /** * Gets the resource collection API of ClusterManagers. It manages ClusterManager. - * + * * @return Resource collection API of ClusterManagers. */ public ClusterManagers clusterManagers() { @@ -371,7 +378,7 @@ public ClusterManagers clusterManagers() { /** * Gets the resource collection API of Clusters. It manages Cluster. - * + * * @return Resource collection API of Clusters. */ public Clusters clusters() { @@ -383,7 +390,7 @@ public Clusters clusters() { /** * Gets the resource collection API of KubernetesClusters. It manages KubernetesCluster. - * + * * @return Resource collection API of KubernetesClusters. */ public KubernetesClusters kubernetesClusters() { @@ -395,7 +402,7 @@ public KubernetesClusters kubernetesClusters() { /** * Gets the resource collection API of L2Networks. It manages L2Network. - * + * * @return Resource collection API of L2Networks. */ public L2Networks l2Networks() { @@ -407,7 +414,7 @@ public L2Networks l2Networks() { /** * Gets the resource collection API of L3Networks. It manages L3Network. - * + * * @return Resource collection API of L3Networks. */ public L3Networks l3Networks() { @@ -419,7 +426,7 @@ public L3Networks l3Networks() { /** * Gets the resource collection API of RackSkus. - * + * * @return Resource collection API of RackSkus. */ public RackSkus rackSkus() { @@ -431,7 +438,7 @@ public RackSkus rackSkus() { /** * Gets the resource collection API of Racks. It manages Rack. - * + * * @return Resource collection API of Racks. */ public Racks racks() { @@ -443,7 +450,7 @@ public Racks racks() { /** * Gets the resource collection API of StorageAppliances. It manages StorageAppliance. - * + * * @return Resource collection API of StorageAppliances. */ public StorageAppliances storageAppliances() { @@ -455,7 +462,7 @@ public StorageAppliances storageAppliances() { /** * Gets the resource collection API of TrunkedNetworks. It manages TrunkedNetwork. - * + * * @return Resource collection API of TrunkedNetworks. */ public TrunkedNetworks trunkedNetworks() { @@ -467,7 +474,7 @@ public TrunkedNetworks trunkedNetworks() { /** * Gets the resource collection API of VirtualMachines. It manages VirtualMachine. - * + * * @return Resource collection API of VirtualMachines. */ public VirtualMachines virtualMachines() { @@ -479,7 +486,7 @@ public VirtualMachines virtualMachines() { /** * Gets the resource collection API of Volumes. It manages Volume. - * + * * @return Resource collection API of Volumes. */ public Volumes volumes() { @@ -491,7 +498,7 @@ public Volumes volumes() { /** * Gets the resource collection API of BareMetalMachineKeySets. It manages BareMetalMachineKeySet. - * + * * @return Resource collection API of BareMetalMachineKeySets. */ public BareMetalMachineKeySets bareMetalMachineKeySets() { @@ -504,7 +511,7 @@ public BareMetalMachineKeySets bareMetalMachineKeySets() { /** * Gets the resource collection API of BmcKeySets. It manages BmcKeySet. - * + * * @return Resource collection API of BmcKeySets. */ public BmcKeySets bmcKeySets() { @@ -516,7 +523,7 @@ public BmcKeySets bmcKeySets() { /** * Gets the resource collection API of MetricsConfigurations. It manages ClusterMetricsConfiguration. - * + * * @return Resource collection API of MetricsConfigurations. */ public MetricsConfigurations metricsConfigurations() { @@ -528,7 +535,7 @@ public MetricsConfigurations metricsConfigurations() { /** * Gets the resource collection API of AgentPools. It manages AgentPool. - * + * * @return Resource collection API of AgentPools. */ public AgentPools agentPools() { @@ -538,9 +545,22 @@ public AgentPools agentPools() { return agentPools; } + /** + * Gets the resource collection API of KubernetesClusterFeatures. It manages KubernetesClusterFeature. + * + * @return Resource collection API of KubernetesClusterFeatures. + */ + public KubernetesClusterFeatures kubernetesClusterFeatures() { + if (this.kubernetesClusterFeatures == null) { + this.kubernetesClusterFeatures + = new KubernetesClusterFeaturesImpl(clientObject.getKubernetesClusterFeatures(), this); + } + return kubernetesClusterFeatures; + } + /** * Gets the resource collection API of Consoles. It manages Console. - * + * * @return Resource collection API of Consoles. */ public Consoles consoles() { @@ -553,7 +573,7 @@ public Consoles consoles() { /** * Gets wrapped service client NetworkCloud providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. - * + * * @return Wrapped service client NetworkCloud. */ public NetworkCloud serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java index f8d7c2c2ee8ab..dfa22108db573 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/AgentPoolsClient.java @@ -12,39 +12,42 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.AgentPoolPatchParameters; -/** An instance of this class provides access to all the operations defined in AgentPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in AgentPoolsClient. + */ public interface AgentPoolsClient { /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of agent pools for the provided Kubernetes cluster as paginated response with {@link - * PagedIterable}. + * @return a list of agent pools for the provided Kubernetes cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName); /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of agent pools for the provided Kubernetes cluster as paginated response with {@link - * PagedIterable}. + * @return a list of agent pools for the provided Kubernetes cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName, @@ -52,9 +55,9 @@ PagedIterable listByKubernetesCluster(String resourceGroupName, /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -70,9 +73,9 @@ Response getWithResponse(String resourceGroupName, String kubern /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -86,9 +89,9 @@ Response getWithResponse(String resourceGroupName, String kubern /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -104,9 +107,9 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -123,9 +126,9 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -141,9 +144,9 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String kubernetesCluster /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -160,26 +163,26 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String kubernetesCluster /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName, - String agentPoolName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String kubernetesClusterName, String agentPoolName); /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -187,32 +190,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName, - String agentPoolName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String kubernetesClusterName, String agentPoolName, Context context); /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName); + OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName); /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -220,16 +224,18 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, + Context context); /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -244,10 +250,10 @@ SyncPoller, AgentPoolInner> beginUpdate(String resour /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -265,10 +271,10 @@ SyncPoller, AgentPoolInner> beginUpdate(String resour /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -282,10 +288,10 @@ SyncPoller, AgentPoolInner> beginUpdate(String resour /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java index c9bd38e654375..a3cb36390fbf2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachineKeySetsClient.java @@ -12,39 +12,42 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineKeySetInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetPatchParameters; -/** An instance of this class provides access to all the operations defined in BareMetalMachineKeySetsClient. */ +/** + * An instance of this class provides access to all the operations defined in BareMetalMachineKeySetsClient. + */ public interface BareMetalMachineKeySetsClient { /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName); /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName, @@ -52,9 +55,9 @@ PagedIterable listByCluster(String resourceGroupNam /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -70,9 +73,9 @@ Response getWithResponse(String resourceGroupName, /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -86,9 +89,9 @@ Response getWithResponse(String resourceGroupName, /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -105,9 +108,9 @@ SyncPoller, BareMetalMachineKeySetInner> /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -125,9 +128,9 @@ SyncPoller, BareMetalMachineKeySetInner> /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -143,9 +146,9 @@ BareMetalMachineKeySetInner createOrUpdate(String resourceGroupName, String clus /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -163,26 +166,26 @@ BareMetalMachineKeySetInner createOrUpdate(String resourceGroupName, String clus /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String bareMetalMachineKeySetName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName, String bareMetalMachineKeySetName); /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -190,32 +193,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String bareMetalMachineKeySetName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName, String bareMetalMachineKeySetName, Context context); /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName); + OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName); /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -223,16 +227,18 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, + Context context); /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -247,10 +253,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -268,10 +274,10 @@ SyncPoller, BareMetalMachineKeySetInner> /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -285,10 +291,10 @@ SyncPoller, BareMetalMachineKeySetInner> /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java index 4838ac61716e4..a080f1775dffc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BareMetalMachinesClient.java @@ -21,72 +21,74 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunDataExtractsParameters; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunReadCommandsParameters; -/** An instance of this class provides access to all the operations defined in BareMetalMachinesClient. */ +/** + * An instance of this class provides access to all the operations defined in BareMetalMachinesClient. + */ public interface BareMetalMachinesClient { /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -101,9 +103,9 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -116,10 +118,10 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -134,10 +136,10 @@ SyncPoller, BareMetalMachineInner> beginCreate /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -153,10 +155,10 @@ SyncPoller, BareMetalMachineInner> beginCreate /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -171,10 +173,10 @@ BareMetalMachineInner createOrUpdate(String resourceGroupName, String bareMetalM /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -190,75 +192,78 @@ BareMetalMachineInner createOrUpdate(String resourceGroupName, String bareMetalM /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String bareMetalMachineName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String bareMetalMachineName); /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String bareMetalMachineName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String bareMetalMachineName, Context context); /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String bareMetalMachineName); + OperationStatusResultInner delete(String resourceGroupName, String bareMetalMachineName); /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String bareMetalMachineName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String bareMetalMachineName, Context context); /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,10 +277,10 @@ SyncPoller, BareMetalMachineInner> beginUpdate /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -291,10 +296,10 @@ SyncPoller, BareMetalMachineInner> beginUpdate /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -307,10 +312,10 @@ SyncPoller, BareMetalMachineInner> beginUpdate /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -326,9 +331,9 @@ BareMetalMachineInner update(String resourceGroupName, String bareMetalMachineNa /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -342,9 +347,9 @@ SyncPoller, OperationStatusResultInner> b /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -361,9 +366,9 @@ SyncPoller, OperationStatusResultInner> b /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -376,9 +381,9 @@ SyncPoller, OperationStatusResultInner> b /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -394,9 +399,9 @@ OperationStatusResultInner cordon(String resourceGroupName, String bareMetalMach /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -410,9 +415,9 @@ OperationStatusResultInner cordon(String resourceGroupName, String bareMetalMach /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -429,9 +434,9 @@ SyncPoller, OperationStatusResultInner> b /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -444,9 +449,9 @@ SyncPoller, OperationStatusResultInner> b /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -462,9 +467,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -478,9 +483,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -495,9 +500,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -510,9 +515,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -526,9 +531,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -542,9 +547,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String bareMetalMa /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -561,9 +566,9 @@ SyncPoller, OperationStatusResultInner> b /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -576,9 +581,9 @@ SyncPoller, OperationStatusResultInner> b /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -594,9 +599,9 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -610,9 +615,9 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -627,9 +632,9 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -642,9 +647,9 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -658,10 +663,10 @@ OperationStatusResultInner replace(String resourceGroupName, String bareMetalMac /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -677,10 +682,10 @@ SyncPoller, OperationStatusResultInner> b /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -697,10 +702,10 @@ SyncPoller, OperationStatusResultInner> b /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -715,10 +720,10 @@ OperationStatusResultInner runCommand(String resourceGroupName, String bareMetal /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -734,11 +739,10 @@ OperationStatusResultInner runCommand(String resourceGroupName, String bareMetal /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -754,11 +758,10 @@ SyncPoller, OperationStatusResultInner> b /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -775,11 +778,10 @@ SyncPoller, OperationStatusResultInner> b /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -794,11 +796,10 @@ OperationStatusResultInner runDataExtracts(String resourceGroupName, String bare /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -814,11 +815,11 @@ OperationStatusResultInner runDataExtracts(String resourceGroupName, String bare /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -834,11 +835,11 @@ SyncPoller, OperationStatusResultInner> b /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -855,11 +856,11 @@ SyncPoller, OperationStatusResultInner> b /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -874,11 +875,11 @@ OperationStatusResultInner runReadCommands(String resourceGroupName, String bare /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -894,9 +895,9 @@ OperationStatusResultInner runReadCommands(String resourceGroupName, String bare /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -910,9 +911,9 @@ SyncPoller, OperationStatusResultInner> b /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -927,9 +928,9 @@ SyncPoller, OperationStatusResultInner> b /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -942,9 +943,9 @@ SyncPoller, OperationStatusResultInner> b /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -958,9 +959,9 @@ SyncPoller, OperationStatusResultInner> b /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -974,9 +975,9 @@ SyncPoller, OperationStatusResultInner> b /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -991,9 +992,9 @@ SyncPoller, OperationStatusResultInner> b /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1006,9 +1007,9 @@ SyncPoller, OperationStatusResultInner> b /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java index d7c1ab1820718..d9577dcaef5c4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/BmcKeySetsClient.java @@ -12,31 +12,34 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.BmcKeySetInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.BmcKeySetPatchParameters; -/** An instance of this class provides access to all the operations defined in BmcKeySetsClient. */ +/** + * An instance of this class provides access to all the operations defined in BmcKeySetsClient. + */ public interface BmcKeySetsClient { /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName); /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -44,16 +47,16 @@ public interface BmcKeySetsClient { * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -69,9 +72,9 @@ Response getWithResponse(String resourceGroupName, String cluste /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -85,9 +88,9 @@ Response getWithResponse(String resourceGroupName, String cluste /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -103,9 +106,9 @@ SyncPoller, BmcKeySetInner> beginCreateOrUpdate(Strin /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -122,9 +125,9 @@ SyncPoller, BmcKeySetInner> beginCreateOrUpdate(Strin /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -140,9 +143,9 @@ BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterName, Stri /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -159,25 +162,26 @@ BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterName, Stri /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String bmcKeySetName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName, String bmcKeySetName); /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -185,32 +189,33 @@ BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String bmcKeySetName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName, String bmcKeySetName, Context context); /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String bmcKeySetName); + OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bmcKeySetName); /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -218,16 +223,18 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String bmcKeySetName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bmcKeySetName, + Context context); /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -242,10 +249,10 @@ SyncPoller, BmcKeySetInner> beginUpdate(String resour /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -262,10 +269,10 @@ SyncPoller, BmcKeySetInner> beginUpdate(String resour /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -279,10 +286,10 @@ SyncPoller, BmcKeySetInner> beginUpdate(String resour /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java index 55897bdf99f69..fb74bd678c832 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/CloudServicesNetworksClient.java @@ -12,74 +12,77 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkPatchParameters; -/** An instance of this class provides access to all the operations defined in CloudServicesNetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in CloudServicesNetworksClient. + */ public interface CloudServicesNetworksClient { /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. @@ -94,9 +97,9 @@ Response getByResourceGroupWithResponse(String resour /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -109,9 +112,9 @@ Response getByResourceGroupWithResponse(String resour /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -119,7 +122,7 @@ Response getByResourceGroupWithResponse(String resour * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CloudServicesNetworkInner> beginCreateOrUpdate( @@ -128,9 +131,9 @@ SyncPoller, CloudServicesNetworkInner> beg /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -139,7 +142,7 @@ SyncPoller, CloudServicesNetworkInner> beg * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CloudServicesNetworkInner> beginCreateOrUpdate( @@ -148,9 +151,9 @@ SyncPoller, CloudServicesNetworkInner> beg /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -158,7 +161,7 @@ SyncPoller, CloudServicesNetworkInner> beg * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudServicesNetworkName, @@ -166,9 +169,9 @@ CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudS /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -177,7 +180,7 @@ CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudS * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudServicesNetworkName, @@ -185,78 +188,81 @@ CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudS /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String cloudServicesNetworkName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String cloudServicesNetworkName); /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String cloudServicesNetworkName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String cloudServicesNetworkName, Context context); /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String cloudServicesNetworkName); + OperationStatusResultInner delete(String resourceGroupName, String cloudServicesNetworkName); /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String cloudServicesNetworkName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String cloudServicesNetworkName, Context context); /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CloudServicesNetworkInner> beginUpdate(String resourceGroupName, @@ -264,10 +270,10 @@ SyncPoller, CloudServicesNetworkInner> beg /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -276,7 +282,7 @@ SyncPoller, CloudServicesNetworkInner> beg * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, CloudServicesNetworkInner> beginUpdate(String resourceGroupName, @@ -285,27 +291,27 @@ SyncPoller, CloudServicesNetworkInner> beg /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName); /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -314,7 +320,7 @@ SyncPoller, CloudServicesNetworkInner> beg * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java index 0455ae4cd4cd0..03283b6cc497d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClusterManagersClient.java @@ -12,15 +12,18 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ClusterManagerPatchParameters; -/** An instance of this class provides access to all the operations defined in ClusterManagersClient. */ +/** + * An instance of this class provides access to all the operations defined in ClusterManagersClient. + */ public interface ClusterManagersClient { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedIterable}. @@ -30,9 +33,9 @@ public interface ClusterManagersClient { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -44,40 +47,40 @@ public interface ClusterManagersClient { /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cluster managers in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cluster managers in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cluster managers in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cluster managers in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. @@ -92,9 +95,9 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -107,9 +110,9 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -117,7 +120,7 @@ Response getByResourceGroupWithResponse(String resourceGrou * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterManager represents a control-plane to manage one or more - * on-premises clusters. + * on-premises clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterManagerInner> beginCreateOrUpdate(String resourceGroupName, @@ -125,9 +128,9 @@ SyncPoller, ClusterManagerInner> beginCreateOrUp /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -136,7 +139,7 @@ SyncPoller, ClusterManagerInner> beginCreateOrUp * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterManager represents a control-plane to manage one or more - * on-premises clusters. + * on-premises clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterManagerInner> beginCreateOrUpdate(String resourceGroupName, @@ -144,9 +147,9 @@ SyncPoller, ClusterManagerInner> beginCreateOrUp /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -161,9 +164,9 @@ ClusterManagerInner createOrUpdate(String resourceGroupName, String clusterManag /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -179,71 +182,74 @@ ClusterManagerInner createOrUpdate(String resourceGroupName, String clusterManag /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterManagerName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterManagerName); /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterManagerName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterManagerName, Context context); /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterManagerName); + OperationStatusResultInner delete(String resourceGroupName, String clusterManagerName); /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterManagerName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String clusterManagerName, Context context); /** * Patch the cluster manager. - * - *

Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. - * Properties and tag updates can be done independently. - * + * + * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties + * and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerUpdateParameters The request body. @@ -251,8 +257,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with {@link - * Response}. + * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse(String resourceGroupName, String clusterManagerName, @@ -260,10 +266,10 @@ Response updateWithResponse(String resourceGroupName, Strin /** * Patch the cluster manager. - * - *

Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. - * Properties and tag updates can be done independently. - * + * + * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties + * and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java index cc2519449a205..8eafb0f8c921e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ClustersClient.java @@ -13,17 +13,21 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterInner; import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; import com.azure.resourcemanager.networkcloud.models.ClusterPatchParameters; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; -/** An instance of this class provides access to all the operations defined in ClustersClient. */ +/** + * An instance of this class provides access to all the operations defined in ClustersClient. + */ public interface ClustersClient { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided subscription as paginated response with {@link PagedIterable}. @@ -33,9 +37,9 @@ public interface ClustersClient { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -47,9 +51,9 @@ public interface ClustersClient { /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -61,9 +65,9 @@ public interface ClustersClient { /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -76,9 +80,9 @@ public interface ClustersClient { /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -93,9 +97,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName, /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -108,9 +112,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName, /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -125,9 +129,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -143,9 +147,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -159,9 +163,9 @@ SyncPoller, ClusterInner> beginCreateOrUpdate(String re /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -177,70 +181,74 @@ ClusterInner createOrUpdate(String resourceGroupName, String clusterName, Cluste /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName); /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName, Context context); /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName); + OperationStatusResultInner delete(String resourceGroupName, String clusterName); /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String clusterName, Context context); /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -253,10 +261,10 @@ ClusterInner createOrUpdate(String resourceGroupName, String clusterName, Cluste /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -272,10 +280,10 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -288,10 +296,10 @@ SyncPoller, ClusterInner> beginUpdate(String resourceGr /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -306,10 +314,86 @@ ClusterInner update(String resourceGroupName, String clusterName, ClusterPatchPa Context context); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationStatusResultInner> beginContinueUpdateVersion( + String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters); + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationStatusResultInner> beginContinueUpdateVersion( + String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context); + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters); + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context); + + /** + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -322,10 +406,10 @@ SyncPoller, OperationStatusResultInner> b String clusterName); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -340,10 +424,10 @@ SyncPoller, OperationStatusResultInner> b String clusterName, ClusterDeployParameters clusterDeployParameters, Context context); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -355,10 +439,10 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner deploy(String resourceGroupName, String clusterName); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -372,11 +456,83 @@ SyncPoller, OperationStatusResultInner> b OperationStatusResultInner deploy(String resourceGroupName, String clusterName, ClusterDeployParameters clusterDeployParameters, Context context); + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationStatusResultInner> + beginScanRuntime(String resourceGroupName, String clusterName); + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationStatusResultInner> beginScanRuntime( + String resourceGroupName, String clusterName, ClusterScanRuntimeParameters clusterScanRuntimeParameters, + Context context); + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner scanRuntime(String resourceGroupName, String clusterName); + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner scanRuntime(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters, Context context); + /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -391,9 +547,9 @@ SyncPoller, OperationStatusResultInner> b /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -410,9 +566,9 @@ SyncPoller, OperationStatusResultInner> b /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -427,9 +583,9 @@ OperationStatusResultInner updateVersion(String resourceGroupName, String cluste /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ConsolesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ConsolesClient.java index fd005f1727b11..a3008ede4aa5b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ConsolesClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/ConsolesClient.java @@ -12,15 +12,18 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.ConsoleInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ConsolePatchParameters; -/** An instance of this class provides access to all the operations defined in ConsolesClient. */ +/** + * An instance of this class provides access to all the operations defined in ConsolesClient. + */ public interface ConsolesClient { /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -33,9 +36,9 @@ public interface ConsolesClient { /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -50,9 +53,9 @@ PagedIterable listByVirtualMachine(String resourceGroupName, Strin /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -68,9 +71,9 @@ Response getWithResponse(String resourceGroupName, String virtualM /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -84,9 +87,9 @@ Response getWithResponse(String resourceGroupName, String virtualM /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -95,7 +98,7 @@ Response getWithResponse(String resourceGroupName, String virtualM * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ConsoleInner> beginCreateOrUpdate(String resourceGroupName, @@ -103,9 +106,9 @@ SyncPoller, ConsoleInner> beginCreateOrUpdate(String re /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -115,7 +118,7 @@ SyncPoller, ConsoleInner> beginCreateOrUpdate(String re * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ConsoleInner> beginCreateOrUpdate(String resourceGroupName, @@ -123,9 +126,9 @@ SyncPoller, ConsoleInner> beginCreateOrUpdate(String re /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -141,9 +144,9 @@ ConsoleInner createOrUpdate(String resourceGroupName, String virtualMachineName, /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -160,26 +163,26 @@ ConsoleInner createOrUpdate(String resourceGroupName, String virtualMachineName, /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName, - String consoleName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String virtualMachineName, String consoleName); /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -187,32 +190,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName, - String consoleName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String virtualMachineName, String consoleName, Context context); /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualMachineName, String consoleName); + OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName, String consoleName); /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -220,16 +224,18 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualMachineName, String consoleName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName, String consoleName, + Context context); /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -237,7 +243,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ConsoleInner> beginUpdate(String resourceGroupName, String virtualMachineName, @@ -245,10 +251,10 @@ SyncPoller, ConsoleInner> beginUpdate(String resourceGr /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -258,7 +264,7 @@ SyncPoller, ConsoleInner> beginUpdate(String resourceGr * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ConsoleInner> beginUpdate(String resourceGroupName, String virtualMachineName, @@ -266,10 +272,10 @@ SyncPoller, ConsoleInner> beginUpdate(String resourceGr /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -283,10 +289,10 @@ SyncPoller, ConsoleInner> beginUpdate(String resourceGr /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClusterFeaturesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClusterFeaturesClient.java new file mode 100644 index 0000000000000..83c6d83d665ea --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClusterFeaturesClient.java @@ -0,0 +1,309 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeatureInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeaturePatchParameters; + +/** + * An instance of this class provides access to all the operations defined in KubernetesClusterFeaturesClient. + */ +public interface KubernetesClusterFeaturesClient { + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName); + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName, Context context); + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String kubernetesClusterName, + String featureName, Context context); + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubernetesClusterFeatureInner get(String resourceGroupName, String kubernetesClusterName, String featureName); + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, KubernetesClusterFeatureInner> beginCreateOrUpdate( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters); + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, KubernetesClusterFeatureInner> beginCreateOrUpdate( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, Context context); + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubernetesClusterFeatureInner createOrUpdate(String resourceGroupName, String kubernetesClusterName, + String featureName, KubernetesClusterFeatureInner kubernetesClusterFeatureParameters); + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubernetesClusterFeatureInner createOrUpdate(String resourceGroupName, String kubernetesClusterName, + String featureName, KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, Context context); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String kubernetesClusterName, String featureName); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String kubernetesClusterName, String featureName, Context context); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, String featureName); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, String featureName, + Context context); + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, KubernetesClusterFeatureInner> + beginUpdate(String resourceGroupName, String kubernetesClusterName, String featureName); + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, KubernetesClusterFeatureInner> beginUpdate( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, Context context); + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubernetesClusterFeatureInner update(String resourceGroupName, String kubernetesClusterName, String featureName); + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + KubernetesClusterFeatureInner update(String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, Context context); +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClustersClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClustersClient.java index 566d4289b54d4..85f6005bfd512 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClustersClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/KubernetesClustersClient.java @@ -16,72 +16,74 @@ import com.azure.resourcemanager.networkcloud.models.KubernetesClusterPatchParameters; import com.azure.resourcemanager.networkcloud.models.KubernetesClusterRestartNodeParameters; -/** An instance of this class provides access to all the operations defined in KubernetesClustersClient. */ +/** + * An instance of this class provides access to all the operations defined in KubernetesClustersClient. + */ public interface KubernetesClustersClient { /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. @@ -96,9 +98,9 @@ Response getByResourceGroupWithResponse(String resourceG /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,9 +113,9 @@ Response getByResourceGroupWithResponse(String resourceG /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -121,7 +123,7 @@ Response getByResourceGroupWithResponse(String resourceG * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KubernetesClusterInner> beginCreateOrUpdate(String resourceGroupName, @@ -129,9 +131,9 @@ SyncPoller, KubernetesClusterInner> beginCrea /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -140,7 +142,7 @@ SyncPoller, KubernetesClusterInner> beginCrea * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KubernetesClusterInner> beginCreateOrUpdate(String resourceGroupName, @@ -148,9 +150,9 @@ SyncPoller, KubernetesClusterInner> beginCrea /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -165,9 +167,9 @@ KubernetesClusterInner createOrUpdate(String resourceGroupName, String kubernete /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -183,78 +185,81 @@ KubernetesClusterInner createOrUpdate(String resourceGroupName, String kubernete /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String kubernetesClusterName); /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String kubernetesClusterName, Context context); /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String kubernetesClusterName); + OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName); /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String kubernetesClusterName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, Context context); /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KubernetesClusterInner> beginUpdate(String resourceGroupName, @@ -262,10 +267,10 @@ SyncPoller, KubernetesClusterInner> beginUpda /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -274,7 +279,7 @@ SyncPoller, KubernetesClusterInner> beginUpda * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, KubernetesClusterInner> beginUpdate(String resourceGroupName, @@ -283,10 +288,10 @@ SyncPoller, KubernetesClusterInner> beginUpda /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -299,10 +304,10 @@ SyncPoller, KubernetesClusterInner> beginUpda /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -318,9 +323,9 @@ KubernetesClusterInner update(String resourceGroupName, String kubernetesCluster /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -336,9 +341,9 @@ SyncPoller, OperationStatusResultInner> b /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -355,9 +360,9 @@ SyncPoller, OperationStatusResultInner> b /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -372,9 +377,9 @@ OperationStatusResultInner restartNode(String resourceGroupName, String kubernet /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L2NetworksClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L2NetworksClient.java index 84c6b54314189..920089ab1d9a9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L2NetworksClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L2NetworksClient.java @@ -12,74 +12,77 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.L2NetworkPatchParameters; -/** An instance of this class provides access to all the operations defined in L2NetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in L2NetworksClient. + */ public interface L2NetworksClient { /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. @@ -94,9 +97,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -109,9 +112,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -119,7 +122,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l2Network represents a network that utilizes a single isolation - * domain set up for layer-2 resources. + * domain set up for layer-2 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, L2NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -127,9 +130,9 @@ SyncPoller, L2NetworkInner> beginCreateOrUpdate(Strin /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -138,7 +141,7 @@ SyncPoller, L2NetworkInner> beginCreateOrUpdate(Strin * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l2Network represents a network that utilizes a single isolation - * domain set up for layer-2 resources. + * domain set up for layer-2 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, L2NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -146,9 +149,9 @@ SyncPoller, L2NetworkInner> beginCreateOrUpdate(Strin /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -162,9 +165,9 @@ SyncPoller, L2NetworkInner> beginCreateOrUpdate(Strin /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -180,69 +183,73 @@ L2NetworkInner createOrUpdate(String resourceGroupName, String l2NetworkName, L2 /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String l2NetworkName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String l2NetworkName); /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String l2NetworkName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String l2NetworkName, Context context); /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String l2NetworkName); + OperationStatusResultInner delete(String resourceGroupName, String l2NetworkName); /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String l2NetworkName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String l2NetworkName, Context context); /** * Patch the layer 2 (L2) network. - * - *

Update tags associated with the provided layer 2 (L2) network. - * + * + * Update tags associated with the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkUpdateParameters The request body. @@ -251,7 +258,7 @@ L2NetworkInner createOrUpdate(String resourceGroupName, String l2NetworkName, L2 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources along - * with {@link Response}. + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse(String resourceGroupName, String l2NetworkName, @@ -259,9 +266,9 @@ Response updateWithResponse(String resourceGroupName, String l2N /** * Patch the layer 2 (L2) network. - * - *

Update tags associated with the provided layer 2 (L2) network. - * + * + * Update tags associated with the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L3NetworksClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L3NetworksClient.java index 2a84e0f22b86d..19634a6839ccf 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L3NetworksClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/L3NetworksClient.java @@ -12,74 +12,77 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.L3NetworkPatchParameters; -/** An instance of this class provides access to all the operations defined in L3NetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in L3NetworksClient. + */ public interface L3NetworksClient { /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. @@ -94,9 +97,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -109,9 +112,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -119,7 +122,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l3Network represents a network that utilizes a single isolation - * domain set up for layer-3 resources. + * domain set up for layer-3 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, L3NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -127,9 +130,9 @@ SyncPoller, L3NetworkInner> beginCreateOrUpdate(Strin /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -138,7 +141,7 @@ SyncPoller, L3NetworkInner> beginCreateOrUpdate(Strin * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l3Network represents a network that utilizes a single isolation - * domain set up for layer-3 resources. + * domain set up for layer-3 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, L3NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -146,9 +149,9 @@ SyncPoller, L3NetworkInner> beginCreateOrUpdate(Strin /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -162,9 +165,9 @@ SyncPoller, L3NetworkInner> beginCreateOrUpdate(Strin /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -180,69 +183,73 @@ L3NetworkInner createOrUpdate(String resourceGroupName, String l3NetworkName, L3 /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String l3NetworkName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String l3NetworkName); /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String l3NetworkName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String l3NetworkName, Context context); /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String l3NetworkName); + OperationStatusResultInner delete(String resourceGroupName, String l3NetworkName); /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String l3NetworkName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String l3NetworkName, Context context); /** * Patch the layer 3 (L3) network. - * - *

Update tags associated with the provided layer 3 (L3) network. - * + * + * Update tags associated with the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkUpdateParameters The request body. @@ -251,7 +258,7 @@ L3NetworkInner createOrUpdate(String resourceGroupName, String l3NetworkName, L3 * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources along - * with {@link Response}. + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse(String resourceGroupName, String l3NetworkName, @@ -259,9 +266,9 @@ Response updateWithResponse(String resourceGroupName, String l3N /** * Patch the layer 3 (L3) network. - * - *

Update tags associated with the provided layer 3 (L3) network. - * + * + * Update tags associated with the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/MetricsConfigurationsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/MetricsConfigurationsClient.java index 57c80d091d84c..60b209cace280 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/MetricsConfigurationsClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/MetricsConfigurationsClient.java @@ -12,39 +12,42 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationPatchParameters; -/** An instance of this class provides access to all the operations defined in MetricsConfigurationsClient. */ +/** + * An instance of this class provides access to all the operations defined in MetricsConfigurationsClient. + */ public interface MetricsConfigurationsClient { /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of metrics configurations for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of metrics configurations for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName); /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of metrics configurations for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of metrics configurations for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByCluster(String resourceGroupName, String clusterName, @@ -52,9 +55,9 @@ PagedIterable listByCluster(String resourceGro /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -70,9 +73,9 @@ Response getWithResponse(String resourceGroupN /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -86,9 +89,9 @@ Response getWithResponse(String resourceGroupN /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -97,7 +100,7 @@ Response getWithResponse(String resourceGroupN * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterMetricsConfigurationInner> beginCreateOrUpdate( @@ -106,9 +109,9 @@ SyncPoller, ClusterMetricsConfigura /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -118,7 +121,7 @@ SyncPoller, ClusterMetricsConfigura * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterMetricsConfigurationInner> beginCreateOrUpdate( @@ -127,9 +130,9 @@ SyncPoller, ClusterMetricsConfigura /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -145,9 +148,9 @@ ClusterMetricsConfigurationInner createOrUpdate(String resourceGroupName, String /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -165,26 +168,26 @@ ClusterMetricsConfigurationInner createOrUpdate(String resourceGroupName, String /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String metricsConfigurationName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName, String metricsConfigurationName); /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -192,32 +195,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String metricsConfigurationName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String clusterName, String metricsConfigurationName, Context context); /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String metricsConfigurationName); + OperationStatusResultInner delete(String resourceGroupName, String clusterName, String metricsConfigurationName); /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -225,16 +229,18 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String metricsConfigurationName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String clusterName, String metricsConfigurationName, + Context context); /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -242,7 +248,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterMetricsConfigurationInner> @@ -250,10 +256,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -263,7 +269,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterMetricsConfigurationInner> beginUpdate( @@ -272,10 +278,10 @@ SyncPoller, ClusterMetricsConfigura /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -290,10 +296,10 @@ ClusterMetricsConfigurationInner update(String resourceGroupName, String cluster /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/NetworkCloud.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/NetworkCloud.java index 0a203d81dc1c6..2a5073c41590e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/NetworkCloud.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/NetworkCloud.java @@ -7,172 +7,181 @@ import com.azure.core.http.HttpPipeline; import java.time.Duration; -/** The interface for NetworkCloud class. */ +/** + * The interface for NetworkCloud class. + */ public interface NetworkCloud { /** * Gets The ID of the target subscription. The value must be an UUID. - * + * * @return the subscriptionId value. */ String getSubscriptionId(); /** * Gets server parameter. - * + * * @return the endpoint value. */ String getEndpoint(); /** * Gets Api Version. - * + * * @return the apiVersion value. */ String getApiVersion(); /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ HttpPipeline getHttpPipeline(); /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ Duration getDefaultPollInterval(); /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ OperationsClient getOperations(); /** * Gets the BareMetalMachinesClient object to access its operations. - * + * * @return the BareMetalMachinesClient object. */ BareMetalMachinesClient getBareMetalMachines(); /** * Gets the CloudServicesNetworksClient object to access its operations. - * + * * @return the CloudServicesNetworksClient object. */ CloudServicesNetworksClient getCloudServicesNetworks(); /** * Gets the ClusterManagersClient object to access its operations. - * + * * @return the ClusterManagersClient object. */ ClusterManagersClient getClusterManagers(); /** * Gets the ClustersClient object to access its operations. - * + * * @return the ClustersClient object. */ ClustersClient getClusters(); /** * Gets the KubernetesClustersClient object to access its operations. - * + * * @return the KubernetesClustersClient object. */ KubernetesClustersClient getKubernetesClusters(); /** * Gets the L2NetworksClient object to access its operations. - * + * * @return the L2NetworksClient object. */ L2NetworksClient getL2Networks(); /** * Gets the L3NetworksClient object to access its operations. - * + * * @return the L3NetworksClient object. */ L3NetworksClient getL3Networks(); /** * Gets the RackSkusClient object to access its operations. - * + * * @return the RackSkusClient object. */ RackSkusClient getRackSkus(); /** * Gets the RacksClient object to access its operations. - * + * * @return the RacksClient object. */ RacksClient getRacks(); /** * Gets the StorageAppliancesClient object to access its operations. - * + * * @return the StorageAppliancesClient object. */ StorageAppliancesClient getStorageAppliances(); /** * Gets the TrunkedNetworksClient object to access its operations. - * + * * @return the TrunkedNetworksClient object. */ TrunkedNetworksClient getTrunkedNetworks(); /** * Gets the VirtualMachinesClient object to access its operations. - * + * * @return the VirtualMachinesClient object. */ VirtualMachinesClient getVirtualMachines(); /** * Gets the VolumesClient object to access its operations. - * + * * @return the VolumesClient object. */ VolumesClient getVolumes(); /** * Gets the BareMetalMachineKeySetsClient object to access its operations. - * + * * @return the BareMetalMachineKeySetsClient object. */ BareMetalMachineKeySetsClient getBareMetalMachineKeySets(); /** * Gets the BmcKeySetsClient object to access its operations. - * + * * @return the BmcKeySetsClient object. */ BmcKeySetsClient getBmcKeySets(); /** * Gets the MetricsConfigurationsClient object to access its operations. - * + * * @return the MetricsConfigurationsClient object. */ MetricsConfigurationsClient getMetricsConfigurations(); /** * Gets the AgentPoolsClient object to access its operations. - * + * * @return the AgentPoolsClient object. */ AgentPoolsClient getAgentPools(); + /** + * Gets the KubernetesClusterFeaturesClient object to access its operations. + * + * @return the KubernetesClusterFeaturesClient object. + */ + KubernetesClusterFeaturesClient getKubernetesClusterFeatures(); + /** * Gets the ConsolesClient object to access its operations. - * + * * @return the ConsolesClient object. */ ConsolesClient getConsoles(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/OperationsClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/OperationsClient.java index c0d84ee978e6e..aaa79c8b407d2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/OperationsClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/OperationsClient.java @@ -10,14 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.networkcloud.fluent.models.OperationInner; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public interface OperationsClient { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of all available resource provider operations as paginated response with {@link PagedIterable}. @@ -27,10 +28,9 @@ public interface OperationsClient { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RackSkusClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RackSkusClient.java index 47603b44e7a56..1ffb54240ddfd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RackSkusClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RackSkusClient.java @@ -11,13 +11,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.networkcloud.fluent.models.RackSkuInner; -/** An instance of this class provides access to all the operations defined in RackSkusClient. */ +/** + * An instance of this class provides access to all the operations defined in RackSkusClient. + */ public interface RackSkusClient { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of rack SKUs in the provided subscription as paginated response with {@link PagedIterable}. @@ -27,9 +29,9 @@ public interface RackSkusClient { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -41,9 +43,9 @@ public interface RackSkusClient { /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -56,9 +58,9 @@ public interface RackSkusClient { /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RacksClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RacksClient.java index c53b0ef984339..3f56ded3bf7e2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RacksClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/RacksClient.java @@ -11,16 +11,19 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.RackInner; import com.azure.resourcemanager.networkcloud.models.RackPatchParameters; -/** An instance of this class provides access to all the operations defined in RacksClient. */ +/** + * An instance of this class provides access to all the operations defined in RacksClient. + */ public interface RacksClient { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided subscription as paginated response with {@link PagedIterable}. @@ -30,9 +33,9 @@ public interface RacksClient { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -44,9 +47,9 @@ public interface RacksClient { /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,9 +61,9 @@ public interface RacksClient { /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -73,9 +76,9 @@ public interface RacksClient { /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. @@ -89,9 +92,9 @@ public interface RacksClient { /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -104,10 +107,10 @@ public interface RacksClient { /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -115,7 +118,7 @@ public interface RacksClient { * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RackInner> beginCreateOrUpdate(String resourceGroupName, String rackName, @@ -123,10 +126,10 @@ SyncPoller, RackInner> beginCreateOrUpdate(String resource /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -135,7 +138,7 @@ SyncPoller, RackInner> beginCreateOrUpdate(String resource * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RackInner> beginCreateOrUpdate(String resourceGroupName, String rackName, @@ -143,10 +146,10 @@ SyncPoller, RackInner> beginCreateOrUpdate(String resource /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -160,10 +163,10 @@ SyncPoller, RackInner> beginCreateOrUpdate(String resource /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -178,91 +181,95 @@ SyncPoller, RackInner> beginCreateOrUpdate(String resource /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String rackName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String rackName); /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String rackName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String rackName, Context context); /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String rackName); + OperationStatusResultInner delete(String resourceGroupName, String rackName); /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String rackName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String rackName, Context context); /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RackInner> beginUpdate(String resourceGroupName, String rackName); /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -271,7 +278,7 @@ SyncPoller, RackInner> beginCreateOrUpdate(String resource * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, RackInner> beginUpdate(String resourceGroupName, String rackName, @@ -279,10 +286,10 @@ SyncPoller, RackInner> beginUpdate(String resourceGroupNam /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -295,10 +302,10 @@ SyncPoller, RackInner> beginUpdate(String resourceGroupNam /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/StorageAppliancesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/StorageAppliancesClient.java index fd701b5d11476..ee6742c3a43fc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/StorageAppliancesClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/StorageAppliancesClient.java @@ -16,72 +16,74 @@ import com.azure.resourcemanager.networkcloud.models.StorageApplianceEnableRemoteVendorManagementParameters; import com.azure.resourcemanager.networkcloud.models.StorageAppliancePatchParameters; -/** An instance of this class provides access to all the operations defined in StorageAppliancesClient. */ +/** + * An instance of this class provides access to all the operations defined in StorageAppliancesClient. + */ public interface StorageAppliancesClient { /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -96,9 +98,9 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,10 +113,10 @@ Response getByResourceGroupWithResponse(String resourceGr /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -122,7 +124,7 @@ Response getByResourceGroupWithResponse(String resourceGr * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StorageApplianceInner> beginCreateOrUpdate(String resourceGroupName, @@ -130,10 +132,10 @@ SyncPoller, StorageApplianceInner> beginCreate /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -142,7 +144,7 @@ SyncPoller, StorageApplianceInner> beginCreate * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StorageApplianceInner> beginCreateOrUpdate(String resourceGroupName, @@ -150,10 +152,10 @@ SyncPoller, StorageApplianceInner> beginCreate /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -168,10 +170,10 @@ StorageApplianceInner createOrUpdate(String resourceGroupName, String storageApp /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -187,82 +189,85 @@ StorageApplianceInner createOrUpdate(String resourceGroupName, String storageApp /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String storageApplianceName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String storageApplianceName); /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String storageApplianceName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String storageApplianceName, Context context); /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String storageApplianceName); + OperationStatusResultInner delete(String resourceGroupName, String storageApplianceName); /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String storageApplianceName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String storageApplianceName, Context context); /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StorageApplianceInner> beginUpdate(String resourceGroupName, @@ -270,10 +275,10 @@ SyncPoller, StorageApplianceInner> beginUpdate /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -282,7 +287,7 @@ SyncPoller, StorageApplianceInner> beginUpdate * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StorageApplianceInner> beginUpdate(String resourceGroupName, @@ -290,10 +295,10 @@ SyncPoller, StorageApplianceInner> beginUpdate /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,10 +311,10 @@ SyncPoller, StorageApplianceInner> beginUpdate /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -325,9 +330,9 @@ StorageApplianceInner update(String resourceGroupName, String storageApplianceNa /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -341,9 +346,9 @@ StorageApplianceInner update(String resourceGroupName, String storageApplianceNa /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -358,9 +363,9 @@ StorageApplianceInner update(String resourceGroupName, String storageApplianceNa /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -373,9 +378,9 @@ StorageApplianceInner update(String resourceGroupName, String storageApplianceNa /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -390,9 +395,9 @@ OperationStatusResultInner disableRemoteVendorManagement(String resourceGroupNam /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -406,9 +411,9 @@ OperationStatusResultInner disableRemoteVendorManagement(String resourceGroupNam /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -426,9 +431,9 @@ SyncPoller, OperationStatusResultInner> b /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -441,9 +446,9 @@ SyncPoller, OperationStatusResultInner> b /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/TrunkedNetworksClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/TrunkedNetworksClient.java index 6a4e777240e11..5b58ac1c0422f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/TrunkedNetworksClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/TrunkedNetworksClient.java @@ -11,16 +11,19 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkInner; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkPatchParameters; -/** An instance of this class provides access to all the operations defined in TrunkedNetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in TrunkedNetworksClient. + */ public interface TrunkedNetworksClient { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided subscription as paginated response with {@link PagedIterable}. @@ -30,9 +33,9 @@ public interface TrunkedNetworksClient { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -44,40 +47,40 @@ public interface TrunkedNetworksClient { /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trunked networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of trunked networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trunked networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of trunked networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. @@ -92,9 +95,9 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -107,9 +110,9 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -117,7 +120,7 @@ Response getByResourceGroupWithResponse(String resourceGrou * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of trunkedNetwork represents a network that utilizes multiple - * isolation domains and specified VLANs to create a trunked network. + * isolation domains and specified VLANs to create a trunked network. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, TrunkedNetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -125,9 +128,9 @@ SyncPoller, TrunkedNetworkInner> beginCreateOrUp /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -136,7 +139,7 @@ SyncPoller, TrunkedNetworkInner> beginCreateOrUp * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of trunkedNetwork represents a network that utilizes multiple - * isolation domains and specified VLANs to create a trunked network. + * isolation domains and specified VLANs to create a trunked network. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, TrunkedNetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -144,9 +147,9 @@ SyncPoller, TrunkedNetworkInner> beginCreateOrUp /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -154,7 +157,7 @@ SyncPoller, TrunkedNetworkInner> beginCreateOrUp * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network. + * create a trunked network. */ @ServiceMethod(returns = ReturnType.SINGLE) TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunkedNetworkName, @@ -162,9 +165,9 @@ TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunkedNetwo /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -173,7 +176,7 @@ TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunkedNetwo * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network. + * create a trunked network. */ @ServiceMethod(returns = ReturnType.SINGLE) TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunkedNetworkName, @@ -181,70 +184,73 @@ TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunkedNetwo /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String trunkedNetworkName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String trunkedNetworkName); /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String trunkedNetworkName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String trunkedNetworkName, Context context); /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String trunkedNetworkName); + OperationStatusResultInner delete(String resourceGroupName, String trunkedNetworkName); /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String trunkedNetworkName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String trunkedNetworkName, Context context); /** * Patch the trunked network. - * - *

Update tags associated with the provided trunked network. - * + * + * Update tags associated with the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkUpdateParameters The request body. @@ -253,7 +259,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network along with {@link Response}. + * create a trunked network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse(String resourceGroupName, String trunkedNetworkName, @@ -261,16 +267,16 @@ Response updateWithResponse(String resourceGroupName, Strin /** * Patch the trunked network. - * - *

Update tags associated with the provided trunked network. - * + * + * Update tags associated with the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network. + * create a trunked network. */ @ServiceMethod(returns = ReturnType.SINGLE) TrunkedNetworkInner update(String resourceGroupName, String trunkedNetworkName); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VirtualMachinesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VirtualMachinesClient.java index 0e6999abbf834..b784c2b7317dd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VirtualMachinesClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VirtualMachinesClient.java @@ -16,13 +16,15 @@ import com.azure.resourcemanager.networkcloud.models.VirtualMachinePatchParameters; import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerOffParameters; -/** An instance of this class provides access to all the operations defined in VirtualMachinesClient. */ +/** + * An instance of this class provides access to all the operations defined in VirtualMachinesClient. + */ public interface VirtualMachinesClient { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided subscription as paginated response with {@link PagedIterable}. @@ -32,9 +34,9 @@ public interface VirtualMachinesClient { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -46,40 +48,40 @@ public interface VirtualMachinesClient { /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of virtual machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of virtual machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of virtual machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of virtual machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -94,9 +96,9 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -109,9 +111,9 @@ Response getByResourceGroupWithResponse(String resourceGrou /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -119,7 +121,7 @@ Response getByResourceGroupWithResponse(String resourceGrou * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, @@ -127,9 +129,9 @@ SyncPoller, VirtualMachineInner> beginCreateOrUp /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -138,7 +140,7 @@ SyncPoller, VirtualMachineInner> beginCreateOrUp * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, @@ -146,9 +148,9 @@ SyncPoller, VirtualMachineInner> beginCreateOrUp /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -163,9 +165,9 @@ VirtualMachineInner createOrUpdate(String resourceGroupName, String virtualMachi /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -181,78 +183,81 @@ VirtualMachineInner createOrUpdate(String resourceGroupName, String virtualMachi /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String virtualMachineName); /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName, - Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String virtualMachineName, Context context); /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualMachineName); + OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName); /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String virtualMachineName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName, Context context); /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualMachineInner> beginUpdate(String resourceGroupName, @@ -260,10 +265,10 @@ SyncPoller, VirtualMachineInner> beginUpdate(Str /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -272,7 +277,7 @@ SyncPoller, VirtualMachineInner> beginUpdate(Str * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VirtualMachineInner> beginUpdate(String resourceGroupName, @@ -280,10 +285,10 @@ SyncPoller, VirtualMachineInner> beginUpdate(Str /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -296,10 +301,10 @@ SyncPoller, VirtualMachineInner> beginUpdate(Str /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -315,9 +320,9 @@ VirtualMachineInner update(String resourceGroupName, String virtualMachineName, /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -331,9 +336,9 @@ VirtualMachineInner update(String resourceGroupName, String virtualMachineName, /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -350,9 +355,9 @@ SyncPoller, OperationStatusResultInner> b /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -365,9 +370,9 @@ SyncPoller, OperationStatusResultInner> b /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -383,9 +388,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -399,9 +404,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -416,9 +421,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -431,9 +436,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -447,9 +452,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -463,9 +468,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -480,9 +485,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -495,9 +500,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -511,9 +516,9 @@ OperationStatusResultInner powerOff(String resourceGroupName, String virtualMach /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -527,9 +532,9 @@ SyncPoller, OperationStatusResultInner> b /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -544,9 +549,9 @@ SyncPoller, OperationStatusResultInner> b /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -559,9 +564,9 @@ SyncPoller, OperationStatusResultInner> b /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VolumesClient.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VolumesClient.java index 48580f6a96eb5..ea8357dbfe86e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VolumesClient.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/VolumesClient.java @@ -11,16 +11,19 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.VolumeInner; import com.azure.resourcemanager.networkcloud.models.VolumePatchParameters; -/** An instance of this class provides access to all the operations defined in VolumesClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumesClient. + */ public interface VolumesClient { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided subscription as paginated response with {@link PagedIterable}. @@ -30,9 +33,9 @@ public interface VolumesClient { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -44,9 +47,9 @@ public interface VolumesClient { /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -58,9 +61,9 @@ public interface VolumesClient { /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -73,9 +76,9 @@ public interface VolumesClient { /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. @@ -89,9 +92,9 @@ public interface VolumesClient { /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -104,9 +107,9 @@ public interface VolumesClient { /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -114,7 +117,7 @@ public interface VolumesClient { * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of volume represents storage made available for use by resources - * running on the cluster. + * running on the cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, String volumeName, @@ -122,9 +125,9 @@ SyncPoller, VolumeInner> beginCreateOrUpdate(String reso /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -133,7 +136,7 @@ SyncPoller, VolumeInner> beginCreateOrUpdate(String reso * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of volume represents storage made available for use by resources - * running on the cluster. + * running on the cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, String volumeName, @@ -141,9 +144,9 @@ SyncPoller, VolumeInner> beginCreateOrUpdate(String reso /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -157,9 +160,9 @@ SyncPoller, VolumeInner> beginCreateOrUpdate(String reso /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -175,69 +178,73 @@ VolumeInner createOrUpdate(String resourceGroupName, String volumeName, VolumeIn /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String volumeName); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String volumeName); /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String volumeName, Context context); + SyncPoller, OperationStatusResultInner> beginDelete(String resourceGroupName, + String volumeName, Context context); /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String volumeName); + OperationStatusResultInner delete(String resourceGroupName, String volumeName); /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String volumeName, Context context); + OperationStatusResultInner delete(String resourceGroupName, String volumeName, Context context); /** * Patch the volume. - * - *

Update tags associated with the provided volume. - * + * + * Update tags associated with the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeUpdateParameters The request body. @@ -245,8 +252,8 @@ VolumeInner createOrUpdate(String resourceGroupName, String volumeName, VolumeIn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume represents storage made available for use by resources running on the cluster along with {@link - * Response}. + * @return volume represents storage made available for use by resources running on the cluster along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response updateWithResponse(String resourceGroupName, String volumeName, @@ -254,9 +261,9 @@ Response updateWithResponse(String resourceGroupName, String volume /** * Patch the volume. - * - *

Update tags associated with the provided volume. - * + * + * Update tags associated with the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolInner.java index 3ff074a29efed..d52b2c12dd46f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolInner.java @@ -8,6 +8,9 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AdministratorConfiguration; import com.azure.resourcemanager.networkcloud.models.AgentOptions; import com.azure.resourcemanager.networkcloud.models.AgentPoolDetailedStatus; @@ -17,45 +20,54 @@ import com.azure.resourcemanager.networkcloud.models.AttachedNetworkConfiguration; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.KubernetesLabel; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** AgentPool represents the agent pool of Kubernetes cluster. */ +/** + * AgentPool represents the agent pool of Kubernetes cluster. + */ @Fluent public final class AgentPoolInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation") private ExtendedLocation extendedLocation; /* - * AgentPoolProperties represents the properties of the Kubernetes cluster agent pool. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private AgentPoolProperties innerProperties = new AgentPoolProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of AgentPoolInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of AgentPoolInner class. + */ public AgentPoolInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -63,11 +75,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the AgentPoolInner object itself. */ @@ -77,11 +86,8 @@ public AgentPoolInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: AgentPoolProperties represents the properties of the Kubernetes cluster agent - * pool. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private AgentPoolProperties innerProperties() { @@ -90,21 +96,55 @@ private AgentPoolProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public AgentPoolInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public AgentPoolInner withTags(Map tags) { super.withTags(tags); @@ -112,11 +152,9 @@ public AgentPoolInner withTags(Map tags) { } /** - * Get the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool. - * + * Get the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent + * pool. + * * @return the administratorConfiguration value. */ public AdministratorConfiguration administratorConfiguration() { @@ -124,11 +162,9 @@ public AdministratorConfiguration administratorConfiguration() { } /** - * Set the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool. - * + * Set the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent + * pool. + * * @param administratorConfiguration the administratorConfiguration value to set. * @return the AgentPoolInner object itself. */ @@ -141,11 +177,8 @@ public AgentPoolInner withAdministratorConfiguration(AdministratorConfiguration } /** - * Get the agentOptions property: AgentOptions are configurations that will be applied to each agent in an agent - * pool. - * - *

The configurations that will be applied to each agent in this agent pool. - * + * Get the agentOptions property: The configurations that will be applied to each agent in this agent pool. + * * @return the agentOptions value. */ public AgentOptions agentOptions() { @@ -153,11 +186,8 @@ public AgentOptions agentOptions() { } /** - * Set the agentOptions property: AgentOptions are configurations that will be applied to each agent in an agent - * pool. - * - *

The configurations that will be applied to each agent in this agent pool. - * + * Set the agentOptions property: The configurations that will be applied to each agent in this agent pool. + * * @param agentOptions the agentOptions value to set. * @return the AgentPoolInner object itself. */ @@ -170,12 +200,9 @@ public AgentPoolInner withAgentOptions(AgentOptions agentOptions) { } /** - * Get the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on this - * Kubernetes cluster. - * + * Get the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for + * use by the workloads that run on this Kubernetes cluster. + * * @return the attachedNetworkConfiguration value. */ public AttachedNetworkConfiguration attachedNetworkConfiguration() { @@ -183,12 +210,9 @@ public AttachedNetworkConfiguration attachedNetworkConfiguration() { } /** - * Set the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on this - * Kubernetes cluster. - * + * Set the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for + * use by the workloads that run on this Kubernetes cluster. + * * @param attachedNetworkConfiguration the attachedNetworkConfiguration value to set. * @return the AgentPoolInner object itself. */ @@ -203,7 +227,7 @@ public AgentPoolInner withAttachedNetworkConfiguration(AttachedNetworkConfigurat /** * Get the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -213,7 +237,7 @@ public List availabilityZones() { /** * Set the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. - * + * * @param availabilityZones the availabilityZones value to set. * @return the AgentPoolInner object itself. */ @@ -227,7 +251,7 @@ public AgentPoolInner withAvailabilityZones(List availabilityZones) { /** * Get the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ public long count() { @@ -236,7 +260,7 @@ public long count() { /** * Set the count property: The number of virtual machines that use this configuration. - * + * * @param count the count value to set. * @return the AgentPoolInner object itself. */ @@ -250,7 +274,7 @@ public AgentPoolInner withCount(long count) { /** * Get the detailedStatus property: The current status of the agent pool. - * + * * @return the detailedStatus value. */ public AgentPoolDetailedStatus detailedStatus() { @@ -259,7 +283,7 @@ public AgentPoolDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -268,7 +292,7 @@ public String detailedStatusMessage() { /** * Get the kubernetesVersion property: The Kubernetes version running in this agent pool. - * + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -277,7 +301,7 @@ public String kubernetesVersion() { /** * Get the labels property: The labels applied to the nodes in this agent pool. - * + * * @return the labels value. */ public List labels() { @@ -286,7 +310,7 @@ public List labels() { /** * Set the labels property: The labels applied to the nodes in this agent pool. - * + * * @param labels the labels value to set. * @return the AgentPoolInner object itself. */ @@ -302,7 +326,7 @@ public AgentPoolInner withLabels(List labels) { * Get the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. * System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to * user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. - * + * * @return the mode value. */ public AgentPoolMode mode() { @@ -313,7 +337,7 @@ public AgentPoolMode mode() { * Set the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. * System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to * user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. - * + * * @param mode the mode value to set. * @return the AgentPoolInner object itself. */ @@ -327,7 +351,7 @@ public AgentPoolInner withMode(AgentPoolMode mode) { /** * Get the provisioningState property: The provisioning state of the agent pool. - * + * * @return the provisioningState value. */ public AgentPoolProvisioningState provisioningState() { @@ -336,7 +360,7 @@ public AgentPoolProvisioningState provisioningState() { /** * Get the taints property: The taints applied to the nodes in this agent pool. - * + * * @return the taints value. */ public List taints() { @@ -345,7 +369,7 @@ public List taints() { /** * Set the taints property: The taints applied to the nodes in this agent pool. - * + * * @param taints the taints value to set. * @return the AgentPoolInner object itself. */ @@ -358,10 +382,8 @@ public AgentPoolInner withTaints(List taints) { } /** - * Get the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Get the upgradeSettings property: The configuration of the agent pool. + * * @return the upgradeSettings value. */ public AgentPoolUpgradeSettings upgradeSettings() { @@ -369,10 +391,8 @@ public AgentPoolUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Set the upgradeSettings property: The configuration of the agent pool. + * * @param upgradeSettings the upgradeSettings value to set. * @return the AgentPoolInner object itself. */ @@ -386,7 +406,7 @@ public AgentPoolInner withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettin /** * Get the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs. - * + * * @return the vmSkuName value. */ public String vmSkuName() { @@ -395,7 +415,7 @@ public String vmSkuName() { /** * Set the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs. - * + * * @param vmSkuName the vmSkuName value to set. * @return the AgentPoolInner object itself. */ @@ -409,7 +429,7 @@ public AgentPoolInner withVmSkuName(String vmSkuName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -417,12 +437,67 @@ public void validate() { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model AgentPoolInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model AgentPoolInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(AgentPoolInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AgentPoolInner. + */ + public static AgentPoolInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolInner deserializedAgentPoolInner = new AgentPoolInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedAgentPoolInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedAgentPoolInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedAgentPoolInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedAgentPoolInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedAgentPoolInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedAgentPoolInner.innerProperties = AgentPoolProperties.fromJson(reader); + } else if ("extendedLocation".equals(fieldName)) { + deserializedAgentPoolInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedAgentPoolInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolPatchProperties.java index 5a533e373cd4e..1c29e12dbf7f7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolPatchProperties.java @@ -5,33 +5,66 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.resourcemanager.networkcloud.models.NodePoolAdministratorConfigurationPatch; +import java.io.IOException; -/** AgentPoolPatchProperties represents the properties of an agent pool that can be modified. */ +/** + * AgentPoolPatchProperties represents the properties of an agent pool that can be modified. + */ @Fluent -public final class AgentPoolPatchProperties { +public final class AgentPoolPatchProperties implements JsonSerializable { + /* + * The configuration of administrator credentials for the control plane nodes. + */ + private NodePoolAdministratorConfigurationPatch administratorConfiguration; + /* * The number of virtual machines that use this configuration. */ - @JsonProperty(value = "count") private Long count; /* - * AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * * The configuration of the agent pool. */ - @JsonProperty(value = "upgradeSettings") private AgentPoolUpgradeSettings upgradeSettings; - /** Creates an instance of AgentPoolPatchProperties class. */ + /** + * Creates an instance of AgentPoolPatchProperties class. + */ public AgentPoolPatchProperties() { } + /** + * Get the administratorConfiguration property: The configuration of administrator credentials for the control plane + * nodes. + * + * @return the administratorConfiguration value. + */ + public NodePoolAdministratorConfigurationPatch administratorConfiguration() { + return this.administratorConfiguration; + } + + /** + * Set the administratorConfiguration property: The configuration of administrator credentials for the control plane + * nodes. + * + * @param administratorConfiguration the administratorConfiguration value to set. + * @return the AgentPoolPatchProperties object itself. + */ + public AgentPoolPatchProperties + withAdministratorConfiguration(NodePoolAdministratorConfigurationPatch administratorConfiguration) { + this.administratorConfiguration = administratorConfiguration; + return this; + } + /** * Get the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ public Long count() { @@ -40,7 +73,7 @@ public Long count() { /** * Set the count property: The number of virtual machines that use this configuration. - * + * * @param count the count value to set. * @return the AgentPoolPatchProperties object itself. */ @@ -50,10 +83,8 @@ public AgentPoolPatchProperties withCount(Long count) { } /** - * Get the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Get the upgradeSettings property: The configuration of the agent pool. + * * @return the upgradeSettings value. */ public AgentPoolUpgradeSettings upgradeSettings() { @@ -61,10 +92,8 @@ public AgentPoolUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Set the upgradeSettings property: The configuration of the agent pool. + * * @param upgradeSettings the upgradeSettings value to set. * @return the AgentPoolPatchProperties object itself. */ @@ -75,12 +104,58 @@ public AgentPoolPatchProperties withUpgradeSettings(AgentPoolUpgradeSettings upg /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (administratorConfiguration() != null) { + administratorConfiguration().validate(); + } if (upgradeSettings() != null) { upgradeSettings().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("administratorConfiguration", this.administratorConfiguration); + jsonWriter.writeNumberField("count", this.count); + jsonWriter.writeJsonField("upgradeSettings", this.upgradeSettings); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolPatchProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AgentPoolPatchProperties. + */ + public static AgentPoolPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolPatchProperties deserializedAgentPoolPatchProperties = new AgentPoolPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("administratorConfiguration".equals(fieldName)) { + deserializedAgentPoolPatchProperties.administratorConfiguration + = NodePoolAdministratorConfigurationPatch.fromJson(reader); + } else if ("count".equals(fieldName)) { + deserializedAgentPoolPatchProperties.count = reader.getNullable(JsonReader::getLong); + } else if ("upgradeSettings".equals(fieldName)) { + deserializedAgentPoolPatchProperties.upgradeSettings = AgentPoolUpgradeSettings.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolPatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolProperties.java index 07ec221020067..036f2e2c71586 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/AgentPoolProperties.java @@ -6,6 +6,10 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AdministratorConfiguration; import com.azure.resourcemanager.networkcloud.models.AgentOptions; import com.azure.resourcemanager.networkcloud.models.AgentPoolDetailedStatus; @@ -14,73 +18,59 @@ import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings; import com.azure.resourcemanager.networkcloud.models.AttachedNetworkConfiguration; import com.azure.resourcemanager.networkcloud.models.KubernetesLabel; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** AgentPoolProperties represents the properties of the Kubernetes cluster agent pool. */ +/** + * AgentPoolProperties represents the properties of the Kubernetes cluster agent pool. + */ @Fluent -public final class AgentPoolProperties { +public final class AgentPoolProperties implements JsonSerializable { /* - * AdministratorConfiguration represents the administrative credentials that will be applied to the control plane - * and agent pool nodes in Kubernetes clusters. - * * The administrator credentials to be used for the nodes in this agent pool. */ - @JsonProperty(value = "administratorConfiguration") private AdministratorConfiguration administratorConfiguration; /* - * AgentOptions are configurations that will be applied to each agent in an agent pool. - * * The configurations that will be applied to each agent in this agent pool. */ - @JsonProperty(value = "agentOptions") private AgentOptions agentOptions; /* - * AttachedNetworkConfiguration represents the set of workload networks to attach to a resource. - * * The configuration of networks being attached to the agent pool for use by the workloads that run on this * Kubernetes cluster. */ - @JsonProperty(value = "attachedNetworkConfiguration") private AttachedNetworkConfiguration attachedNetworkConfiguration; /* * The list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent * pool. If not specified, all availability zones will be used. */ - @JsonProperty(value = "availabilityZones") private List availabilityZones; /* * The number of virtual machines that use this configuration. */ - @JsonProperty(value = "count", required = true) private long count; /* * The current status of the agent pool. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private AgentPoolDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The Kubernetes version running in this agent pool. */ - @JsonProperty(value = "kubernetesVersion", access = JsonProperty.Access.WRITE_ONLY) private String kubernetesVersion; /* * The labels applied to the nodes in this agent pool. */ - @JsonProperty(value = "labels") private List labels; /* @@ -88,45 +78,38 @@ public final class AgentPoolProperties { * features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. * Every Kubernetes cluster must contain at least one system node pool with at least one node. */ - @JsonProperty(value = "mode", required = true) private AgentPoolMode mode; /* * The provisioning state of the agent pool. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private AgentPoolProvisioningState provisioningState; /* * The taints applied to the nodes in this agent pool. */ - @JsonProperty(value = "taints") private List taints; /* - * AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * * The configuration of the agent pool. */ - @JsonProperty(value = "upgradeSettings") private AgentPoolUpgradeSettings upgradeSettings; /* * The name of the VM SKU that determines the size of resources allocated for node VMs. */ - @JsonProperty(value = "vmSkuName", required = true) private String vmSkuName; - /** Creates an instance of AgentPoolProperties class. */ + /** + * Creates an instance of AgentPoolProperties class. + */ public AgentPoolProperties() { } /** - * Get the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool. - * + * Get the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent + * pool. + * * @return the administratorConfiguration value. */ public AdministratorConfiguration administratorConfiguration() { @@ -134,11 +117,9 @@ public AdministratorConfiguration administratorConfiguration() { } /** - * Set the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool. - * + * Set the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent + * pool. + * * @param administratorConfiguration the administratorConfiguration value to set. * @return the AgentPoolProperties object itself. */ @@ -148,11 +129,8 @@ public AgentPoolProperties withAdministratorConfiguration(AdministratorConfigura } /** - * Get the agentOptions property: AgentOptions are configurations that will be applied to each agent in an agent - * pool. - * - *

The configurations that will be applied to each agent in this agent pool. - * + * Get the agentOptions property: The configurations that will be applied to each agent in this agent pool. + * * @return the agentOptions value. */ public AgentOptions agentOptions() { @@ -160,11 +138,8 @@ public AgentOptions agentOptions() { } /** - * Set the agentOptions property: AgentOptions are configurations that will be applied to each agent in an agent - * pool. - * - *

The configurations that will be applied to each agent in this agent pool. - * + * Set the agentOptions property: The configurations that will be applied to each agent in this agent pool. + * * @param agentOptions the agentOptions value to set. * @return the AgentPoolProperties object itself. */ @@ -174,12 +149,9 @@ public AgentPoolProperties withAgentOptions(AgentOptions agentOptions) { } /** - * Get the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on this - * Kubernetes cluster. - * + * Get the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for + * use by the workloads that run on this Kubernetes cluster. + * * @return the attachedNetworkConfiguration value. */ public AttachedNetworkConfiguration attachedNetworkConfiguration() { @@ -187,12 +159,9 @@ public AttachedNetworkConfiguration attachedNetworkConfiguration() { } /** - * Set the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on this - * Kubernetes cluster. - * + * Set the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for + * use by the workloads that run on this Kubernetes cluster. + * * @param attachedNetworkConfiguration the attachedNetworkConfiguration value to set. * @return the AgentPoolProperties object itself. */ @@ -205,7 +174,7 @@ public AttachedNetworkConfiguration attachedNetworkConfiguration() { /** * Get the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -215,7 +184,7 @@ public List availabilityZones() { /** * Set the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. - * + * * @param availabilityZones the availabilityZones value to set. * @return the AgentPoolProperties object itself. */ @@ -226,7 +195,7 @@ public AgentPoolProperties withAvailabilityZones(List availabilityZones) /** * Get the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ public long count() { @@ -235,7 +204,7 @@ public long count() { /** * Set the count property: The number of virtual machines that use this configuration. - * + * * @param count the count value to set. * @return the AgentPoolProperties object itself. */ @@ -246,7 +215,7 @@ public AgentPoolProperties withCount(long count) { /** * Get the detailedStatus property: The current status of the agent pool. - * + * * @return the detailedStatus value. */ public AgentPoolDetailedStatus detailedStatus() { @@ -255,7 +224,7 @@ public AgentPoolDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -264,7 +233,7 @@ public String detailedStatusMessage() { /** * Get the kubernetesVersion property: The Kubernetes version running in this agent pool. - * + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -273,7 +242,7 @@ public String kubernetesVersion() { /** * Get the labels property: The labels applied to the nodes in this agent pool. - * + * * @return the labels value. */ public List labels() { @@ -282,7 +251,7 @@ public List labels() { /** * Set the labels property: The labels applied to the nodes in this agent pool. - * + * * @param labels the labels value to set. * @return the AgentPoolProperties object itself. */ @@ -295,7 +264,7 @@ public AgentPoolProperties withLabels(List labels) { * Get the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. * System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to * user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. - * + * * @return the mode value. */ public AgentPoolMode mode() { @@ -306,7 +275,7 @@ public AgentPoolMode mode() { * Set the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. * System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to * user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. - * + * * @param mode the mode value to set. * @return the AgentPoolProperties object itself. */ @@ -317,7 +286,7 @@ public AgentPoolProperties withMode(AgentPoolMode mode) { /** * Get the provisioningState property: The provisioning state of the agent pool. - * + * * @return the provisioningState value. */ public AgentPoolProvisioningState provisioningState() { @@ -326,7 +295,7 @@ public AgentPoolProvisioningState provisioningState() { /** * Get the taints property: The taints applied to the nodes in this agent pool. - * + * * @return the taints value. */ public List taints() { @@ -335,7 +304,7 @@ public List taints() { /** * Set the taints property: The taints applied to the nodes in this agent pool. - * + * * @param taints the taints value to set. * @return the AgentPoolProperties object itself. */ @@ -345,10 +314,8 @@ public AgentPoolProperties withTaints(List taints) { } /** - * Get the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Get the upgradeSettings property: The configuration of the agent pool. + * * @return the upgradeSettings value. */ public AgentPoolUpgradeSettings upgradeSettings() { @@ -356,10 +323,8 @@ public AgentPoolUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Set the upgradeSettings property: The configuration of the agent pool. + * * @param upgradeSettings the upgradeSettings value to set. * @return the AgentPoolProperties object itself. */ @@ -370,7 +335,7 @@ public AgentPoolProperties withUpgradeSettings(AgentPoolUpgradeSettings upgradeS /** * Get the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs. - * + * * @return the vmSkuName value. */ public String vmSkuName() { @@ -379,7 +344,7 @@ public String vmSkuName() { /** * Set the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs. - * + * * @param vmSkuName the vmSkuName value to set. * @return the AgentPoolProperties object itself. */ @@ -390,7 +355,7 @@ public AgentPoolProperties withVmSkuName(String vmSkuName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -407,8 +372,8 @@ public void validate() { labels().forEach(e -> e.validate()); } if (mode() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property mode in model AgentPoolProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property mode in model AgentPoolProperties")); } if (taints() != null) { taints().forEach(e -> e.validate()); @@ -417,10 +382,90 @@ public void validate() { upgradeSettings().validate(); } if (vmSkuName() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property vmSkuName in model AgentPoolProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property vmSkuName in model AgentPoolProperties")); } } private static final ClientLogger LOGGER = new ClientLogger(AgentPoolProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("count", this.count); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeStringField("vmSkuName", this.vmSkuName); + jsonWriter.writeJsonField("administratorConfiguration", this.administratorConfiguration); + jsonWriter.writeJsonField("agentOptions", this.agentOptions); + jsonWriter.writeJsonField("attachedNetworkConfiguration", this.attachedNetworkConfiguration); + jsonWriter.writeArrayField("availabilityZones", this.availabilityZones, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("labels", this.labels, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("taints", this.taints, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("upgradeSettings", this.upgradeSettings); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AgentPoolProperties. + */ + public static AgentPoolProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolProperties deserializedAgentPoolProperties = new AgentPoolProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("count".equals(fieldName)) { + deserializedAgentPoolProperties.count = reader.getLong(); + } else if ("mode".equals(fieldName)) { + deserializedAgentPoolProperties.mode = AgentPoolMode.fromString(reader.getString()); + } else if ("vmSkuName".equals(fieldName)) { + deserializedAgentPoolProperties.vmSkuName = reader.getString(); + } else if ("administratorConfiguration".equals(fieldName)) { + deserializedAgentPoolProperties.administratorConfiguration + = AdministratorConfiguration.fromJson(reader); + } else if ("agentOptions".equals(fieldName)) { + deserializedAgentPoolProperties.agentOptions = AgentOptions.fromJson(reader); + } else if ("attachedNetworkConfiguration".equals(fieldName)) { + deserializedAgentPoolProperties.attachedNetworkConfiguration + = AttachedNetworkConfiguration.fromJson(reader); + } else if ("availabilityZones".equals(fieldName)) { + List availabilityZones = reader.readArray(reader1 -> reader1.getString()); + deserializedAgentPoolProperties.availabilityZones = availabilityZones; + } else if ("detailedStatus".equals(fieldName)) { + deserializedAgentPoolProperties.detailedStatus + = AgentPoolDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedAgentPoolProperties.detailedStatusMessage = reader.getString(); + } else if ("kubernetesVersion".equals(fieldName)) { + deserializedAgentPoolProperties.kubernetesVersion = reader.getString(); + } else if ("labels".equals(fieldName)) { + List labels = reader.readArray(reader1 -> KubernetesLabel.fromJson(reader1)); + deserializedAgentPoolProperties.labels = labels; + } else if ("provisioningState".equals(fieldName)) { + deserializedAgentPoolProperties.provisioningState + = AgentPoolProvisioningState.fromString(reader.getString()); + } else if ("taints".equals(fieldName)) { + List taints = reader.readArray(reader1 -> KubernetesLabel.fromJson(reader1)); + deserializedAgentPoolProperties.taints = taints; + } else if ("upgradeSettings".equals(fieldName)) { + deserializedAgentPoolProperties.upgradeSettings = AgentPoolUpgradeSettings.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineInner.java index 66a056455a6b6..1758f5e8c4f7a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineInner.java @@ -8,6 +8,9 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCordonStatus; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineDetailedStatus; @@ -17,45 +20,56 @@ import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.HardwareInventory; import com.azure.resourcemanager.networkcloud.models.HardwareValidationStatus; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionStatus; +import com.azure.resourcemanager.networkcloud.models.SecretRotationStatus; +import java.io.IOException; import java.util.List; import java.util.Map; -/** BareMetalMachine represents the physical machine in the rack. */ +/** + * BareMetalMachine represents the physical machine in the rack. + */ @Fluent public final class BareMetalMachineInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * BareMetalMachineProperties represents the properties of a bare metal machine. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private BareMetalMachineProperties innerProperties = new BareMetalMachineProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of BareMetalMachineInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of BareMetalMachineInner class. + */ public BareMetalMachineInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -63,11 +77,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the BareMetalMachineInner object itself. */ @@ -77,10 +88,8 @@ public BareMetalMachineInner withExtendedLocation(ExtendedLocation extendedLocat } /** - * Get the innerProperties property: BareMetalMachineProperties represents the properties of a bare metal machine. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private BareMetalMachineProperties innerProperties() { @@ -89,21 +98,55 @@ private BareMetalMachineProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public BareMetalMachineInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BareMetalMachineInner withTags(Map tags) { super.withTags(tags); @@ -113,7 +156,7 @@ public BareMetalMachineInner withTags(Map tags) { /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -123,7 +166,7 @@ public List associatedResourceIds() { /** * Get the bmcConnectionString property: The connection string for the baseboard management controller including IP * address and protocol. - * + * * @return the bmcConnectionString value. */ public String bmcConnectionString() { @@ -133,7 +176,7 @@ public String bmcConnectionString() { /** * Set the bmcConnectionString property: The connection string for the baseboard management controller including IP * address and protocol. - * + * * @param bmcConnectionString the bmcConnectionString value to set. * @return the BareMetalMachineInner object itself. */ @@ -146,11 +189,9 @@ public BareMetalMachineInner withBmcConnectionString(String bmcConnectionString) } /** - * Get the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Get the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @return the bmcCredentials value. */ public AdministrativeCredentials bmcCredentials() { @@ -158,11 +199,9 @@ public AdministrativeCredentials bmcCredentials() { } /** - * Set the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Set the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @param bmcCredentials the bmcCredentials value to set. * @return the BareMetalMachineInner object itself. */ @@ -176,7 +215,7 @@ public BareMetalMachineInner withBmcCredentials(AdministrativeCredentials bmcCre /** * Get the bmcMacAddress property: The MAC address of the BMC device. - * + * * @return the bmcMacAddress value. */ public String bmcMacAddress() { @@ -185,7 +224,7 @@ public String bmcMacAddress() { /** * Set the bmcMacAddress property: The MAC address of the BMC device. - * + * * @param bmcMacAddress the bmcMacAddress value to set. * @return the BareMetalMachineInner object itself. */ @@ -199,7 +238,7 @@ public BareMetalMachineInner withBmcMacAddress(String bmcMacAddress) { /** * Get the bootMacAddress property: The MAC address of a NIC connected to the PXE network. - * + * * @return the bootMacAddress value. */ public String bootMacAddress() { @@ -208,7 +247,7 @@ public String bootMacAddress() { /** * Set the bootMacAddress property: The MAC address of a NIC connected to the PXE network. - * + * * @param bootMacAddress the bootMacAddress value to set. * @return the BareMetalMachineInner object itself. */ @@ -222,7 +261,7 @@ public BareMetalMachineInner withBootMacAddress(String bootMacAddress) { /** * Get the clusterId property: The resource ID of the cluster this bare metal machine is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -231,7 +270,7 @@ public String clusterId() { /** * Get the cordonStatus property: The cordon status of the bare metal machine. - * + * * @return the cordonStatus value. */ public BareMetalMachineCordonStatus cordonStatus() { @@ -240,7 +279,7 @@ public BareMetalMachineCordonStatus cordonStatus() { /** * Get the detailedStatus property: The more detailed status of the bare metal machine. - * + * * @return the detailedStatus value. */ public BareMetalMachineDetailedStatus detailedStatus() { @@ -249,7 +288,7 @@ public BareMetalMachineDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -257,13 +296,9 @@ public String detailedStatusMessage() { } /** - * Get the hardwareInventory property: HardwareInventory represents the hardware configuration of this machine as - * exposed to the customer, including information acquired from the model/sku information and from the ironic - * inspector. - * - *

The hardware inventory, including information acquired from the model/sku information and from the ironic - * inspector. - * + * Get the hardwareInventory property: The hardware inventory, including information acquired from the model/sku + * information and from the ironic inspector. + * * @return the hardwareInventory value. */ public HardwareInventory hardwareInventory() { @@ -271,11 +306,9 @@ public HardwareInventory hardwareInventory() { } /** - * Get the hardwareValidationStatus property: HardwareValidationStatus represents the latest hardware validation - * details performed for this bare metal machine. - * - *

The details of the latest hardware validation performed for this bare metal machine. - * + * Get the hardwareValidationStatus property: The details of the latest hardware validation performed for this bare + * metal machine. + * * @return the hardwareValidationStatus value. */ public HardwareValidationStatus hardwareValidationStatus() { @@ -285,7 +318,7 @@ public HardwareValidationStatus hardwareValidationStatus() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -295,7 +328,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the kubernetesNodeName property: The name of this machine represented by the host object in the Cluster's * Kubernetes control plane. - * + * * @return the kubernetesNodeName value. */ public String kubernetesNodeName() { @@ -304,16 +337,41 @@ public String kubernetesNodeName() { /** * Get the kubernetesVersion property: The version of Kubernetes running on this machine. - * + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { return this.innerProperties() == null ? null : this.innerProperties().kubernetesVersion(); } + /** + * Get the machineClusterVersion property: The cluster version that has been applied to this machine during + * deployment or a version update. + * + * @return the machineClusterVersion value. + */ + public String machineClusterVersion() { + return this.innerProperties() == null ? null : this.innerProperties().machineClusterVersion(); + } + + /** + * Set the machineClusterVersion property: The cluster version that has been applied to this machine during + * deployment or a version update. + * + * @param machineClusterVersion the machineClusterVersion value to set. + * @return the BareMetalMachineInner object itself. + */ + public BareMetalMachineInner withMachineClusterVersion(String machineClusterVersion) { + if (this.innerProperties() == null) { + this.innerProperties = new BareMetalMachineProperties(); + } + this.innerProperties().withMachineClusterVersion(machineClusterVersion); + return this; + } + /** * Get the machineDetails property: The custom details provided by the customer. - * + * * @return the machineDetails value. */ public String machineDetails() { @@ -322,7 +380,7 @@ public String machineDetails() { /** * Set the machineDetails property: The custom details provided by the customer. - * + * * @param machineDetails the machineDetails value to set. * @return the BareMetalMachineInner object itself. */ @@ -336,7 +394,7 @@ public BareMetalMachineInner withMachineDetails(String machineDetails) { /** * Get the machineName property: The OS-level hostname assigned to this machine. - * + * * @return the machineName value. */ public String machineName() { @@ -345,7 +403,7 @@ public String machineName() { /** * Set the machineName property: The OS-level hostname assigned to this machine. - * + * * @param machineName the machineName value to set. * @return the BareMetalMachineInner object itself. */ @@ -357,9 +415,18 @@ public BareMetalMachineInner withMachineName(String machineName) { return this; } + /** + * Get the machineRoles property: The list of roles that are assigned to the cluster node running on this machine. + * + * @return the machineRoles value. + */ + public List machineRoles() { + return this.innerProperties() == null ? null : this.innerProperties().machineRoles(); + } + /** * Get the machineSkuId property: The unique internal identifier of the bare metal machine SKU. - * + * * @return the machineSkuId value. */ public String machineSkuId() { @@ -368,7 +435,7 @@ public String machineSkuId() { /** * Set the machineSkuId property: The unique internal identifier of the bare metal machine SKU. - * + * * @param machineSkuId the machineSkuId value to set. * @return the BareMetalMachineInner object itself. */ @@ -383,7 +450,7 @@ public BareMetalMachineInner withMachineSkuId(String machineSkuId) { /** * Get the oamIpv4Address property: The IPv4 address that is assigned to the bare metal machine during the cluster * deployment. - * + * * @return the oamIpv4Address value. */ public String oamIpv4Address() { @@ -393,7 +460,7 @@ public String oamIpv4Address() { /** * Get the oamIpv6Address property: The IPv6 address that is assigned to the bare metal machine during the cluster * deployment. - * + * * @return the oamIpv6Address value. */ public String oamIpv6Address() { @@ -402,7 +469,7 @@ public String oamIpv6Address() { /** * Get the osImage property: The image that is currently provisioned to the OS disk. - * + * * @return the osImage value. */ public String osImage() { @@ -411,7 +478,7 @@ public String osImage() { /** * Get the powerState property: The power state derived from the baseboard management controller. - * + * * @return the powerState value. */ public BareMetalMachinePowerState powerState() { @@ -420,7 +487,7 @@ public BareMetalMachinePowerState powerState() { /** * Get the provisioningState property: The provisioning state of the bare metal machine. - * + * * @return the provisioningState value. */ public BareMetalMachineProvisioningState provisioningState() { @@ -429,7 +496,7 @@ public BareMetalMachineProvisioningState provisioningState() { /** * Get the rackId property: The resource ID of the rack where this bare metal machine resides. - * + * * @return the rackId value. */ public String rackId() { @@ -438,7 +505,7 @@ public String rackId() { /** * Set the rackId property: The resource ID of the rack where this bare metal machine resides. - * + * * @param rackId the rackId value to set. * @return the BareMetalMachineInner object itself. */ @@ -453,7 +520,7 @@ public BareMetalMachineInner withRackId(String rackId) { /** * Get the rackSlot property: The rack slot in which this bare metal machine is located, ordered from the bottom up * i.e. the lowest slot is 1. - * + * * @return the rackSlot value. */ public long rackSlot() { @@ -463,7 +530,7 @@ public long rackSlot() { /** * Set the rackSlot property: The rack slot in which this bare metal machine is located, ordered from the bottom up * i.e. the lowest slot is 1. - * + * * @param rackSlot the rackSlot value to set. * @return the BareMetalMachineInner object itself. */ @@ -477,16 +544,34 @@ public BareMetalMachineInner withRackSlot(long rackSlot) { /** * Get the readyState property: The indicator of whether the bare metal machine is ready to receive workloads. - * + * * @return the readyState value. */ public BareMetalMachineReadyState readyState() { return this.innerProperties() == null ? null : this.innerProperties().readyState(); } + /** + * Get the runtimeProtectionStatus property: The runtime protection status of the bare metal machine. + * + * @return the runtimeProtectionStatus value. + */ + public RuntimeProtectionStatus runtimeProtectionStatus() { + return this.innerProperties() == null ? null : this.innerProperties().runtimeProtectionStatus(); + } + + /** + * Get the secretRotationStatus property: The list of statuses that represent secret rotation activity. + * + * @return the secretRotationStatus value. + */ + public List secretRotationStatus() { + return this.innerProperties() == null ? null : this.innerProperties().secretRotationStatus(); + } + /** * Get the serialNumber property: The serial number of the bare metal machine. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -495,7 +580,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number of the bare metal machine. - * + * * @param serialNumber the serialNumber value to set. * @return the BareMetalMachineInner object itself. */ @@ -509,7 +594,7 @@ public BareMetalMachineInner withSerialNumber(String serialNumber) { /** * Get the serviceTag property: The discovered value of the machine's service tag. - * + * * @return the serviceTag value. */ public String serviceTag() { @@ -519,7 +604,7 @@ public String serviceTag() { /** * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * the resource IDs for the VirtualMachines that are hosted on this bare metal machine. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -528,23 +613,80 @@ public List virtualMachinesAssociatedIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model BareMetalMachineInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model BareMetalMachineInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model BareMetalMachineInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model BareMetalMachineInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineInner. + */ + public static BareMetalMachineInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineInner deserializedBareMetalMachineInner = new BareMetalMachineInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedBareMetalMachineInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedBareMetalMachineInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedBareMetalMachineInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedBareMetalMachineInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedBareMetalMachineInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedBareMetalMachineInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedBareMetalMachineInner.innerProperties = BareMetalMachineProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedBareMetalMachineInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetInner.java index cab40c7ac75e8..0c12480277a78 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetInner.java @@ -8,52 +8,64 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetDetailedStatus; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetPrivilegeLevel; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetProvisioningState; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.KeySetUser; import com.azure.resourcemanager.networkcloud.models.KeySetUserStatus; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; -/** BareMetalMachineKeySet represents the bare metal machine key set. */ +/** + * BareMetalMachineKeySet represents the bare metal machine key set. + */ @Fluent public final class BareMetalMachineKeySetInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * BareMetalMachineKeySetProperties represents the properties of bare metal machine key set. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private BareMetalMachineKeySetProperties innerProperties = new BareMetalMachineKeySetProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of BareMetalMachineKeySetInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of BareMetalMachineKeySetInner class. + */ public BareMetalMachineKeySetInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -61,11 +73,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the BareMetalMachineKeySetInner object itself. */ @@ -75,11 +84,8 @@ public BareMetalMachineKeySetInner withExtendedLocation(ExtendedLocation extende } /** - * Get the innerProperties property: BareMetalMachineKeySetProperties represents the properties of bare metal - * machine key set. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private BareMetalMachineKeySetProperties innerProperties() { @@ -88,21 +94,55 @@ private BareMetalMachineKeySetProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public BareMetalMachineKeySetInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BareMetalMachineKeySetInner withTags(Map tags) { super.withTags(tags); @@ -112,7 +152,7 @@ public BareMetalMachineKeySetInner withTags(Map tags) { /** * Get the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @return the azureGroupId value. */ public String azureGroupId() { @@ -122,7 +162,7 @@ public String azureGroupId() { /** * Set the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @param azureGroupId the azureGroupId value to set. * @return the BareMetalMachineKeySetInner object itself. */ @@ -136,7 +176,7 @@ public BareMetalMachineKeySetInner withAzureGroupId(String azureGroupId) { /** * Get the detailedStatus property: The more detailed status of the key set. - * + * * @return the detailedStatus value. */ public BareMetalMachineKeySetDetailedStatus detailedStatus() { @@ -145,7 +185,7 @@ public BareMetalMachineKeySetDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -155,7 +195,7 @@ public String detailedStatusMessage() { /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -165,7 +205,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @param expiration the expiration value to set. * @return the BareMetalMachineKeySetInner object itself. */ @@ -180,7 +220,7 @@ public BareMetalMachineKeySetInner withExpiration(OffsetDateTime expiration) { /** * Get the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @return the jumpHostsAllowed value. */ public List jumpHostsAllowed() { @@ -190,7 +230,7 @@ public List jumpHostsAllowed() { /** * Set the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @param jumpHostsAllowed the jumpHostsAllowed value to set. * @return the BareMetalMachineKeySetInner object itself. */ @@ -204,7 +244,7 @@ public BareMetalMachineKeySetInner withJumpHostsAllowed(List jumpHostsAl /** * Get the lastValidation property: The last time this key set was validated. - * + * * @return the lastValidation value. */ public OffsetDateTime lastValidation() { @@ -214,7 +254,7 @@ public OffsetDateTime lastValidation() { /** * Get the osGroupName property: The name of the group that users will be assigned to on the operating system of the * machines. - * + * * @return the osGroupName value. */ public String osGroupName() { @@ -224,7 +264,7 @@ public String osGroupName() { /** * Set the osGroupName property: The name of the group that users will be assigned to on the operating system of the * machines. - * + * * @param osGroupName the osGroupName value to set. * @return the BareMetalMachineKeySetInner object itself. */ @@ -238,7 +278,7 @@ public BareMetalMachineKeySetInner withOsGroupName(String osGroupName) { /** * Get the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @return the privilegeLevel value. */ public BareMetalMachineKeySetPrivilegeLevel privilegeLevel() { @@ -247,7 +287,7 @@ public BareMetalMachineKeySetPrivilegeLevel privilegeLevel() { /** * Set the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @param privilegeLevel the privilegeLevel value to set. * @return the BareMetalMachineKeySetInner object itself. */ @@ -261,7 +301,7 @@ public BareMetalMachineKeySetInner withPrivilegeLevel(BareMetalMachineKeySetPriv /** * Get the provisioningState property: The provisioning state of the bare metal machine key set. - * + * * @return the provisioningState value. */ public BareMetalMachineKeySetProvisioningState provisioningState() { @@ -270,7 +310,7 @@ public BareMetalMachineKeySetProvisioningState provisioningState() { /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -279,7 +319,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BareMetalMachineKeySetInner object itself. */ @@ -293,7 +333,7 @@ public BareMetalMachineKeySetInner withUserList(List userList) { /** * Get the userListStatus property: The status evaluation of each user. - * + * * @return the userListStatus value. */ public List userListStatus() { @@ -302,23 +342,81 @@ public List userListStatus() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model BareMetalMachineKeySetInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model BareMetalMachineKeySetInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model BareMetalMachineKeySetInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model BareMetalMachineKeySetInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineKeySetInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineKeySetInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineKeySetInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineKeySetInner. + */ + public static BareMetalMachineKeySetInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineKeySetInner deserializedBareMetalMachineKeySetInner = new BareMetalMachineKeySetInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedBareMetalMachineKeySetInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedBareMetalMachineKeySetInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedBareMetalMachineKeySetInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedBareMetalMachineKeySetInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedBareMetalMachineKeySetInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedBareMetalMachineKeySetInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedBareMetalMachineKeySetInner.innerProperties + = BareMetalMachineKeySetProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedBareMetalMachineKeySetInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineKeySetInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetPatchProperties.java index 5ea33013088d6..5b397c6c40cd6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetPatchProperties.java @@ -5,43 +5,49 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.KeySetUser; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; /** * BareMetalMachineKeySetPatchProperties represents the properties of bare metal machine key set that can be patched. */ @Fluent -public final class BareMetalMachineKeySetPatchProperties { +public final class BareMetalMachineKeySetPatchProperties + implements JsonSerializable { /* * The date and time after which the users in this key set will be removed from the bare metal machines. */ - @JsonProperty(value = "expiration") private OffsetDateTime expiration; /* * The list of IP addresses of jump hosts with management network access from which a login will be allowed for the * users. */ - @JsonProperty(value = "jumpHostsAllowed") private List jumpHostsAllowed; /* * The unique list of permitted users. */ - @JsonProperty(value = "userList") private List userList; - /** Creates an instance of BareMetalMachineKeySetPatchProperties class. */ + /** + * Creates an instance of BareMetalMachineKeySetPatchProperties class. + */ public BareMetalMachineKeySetPatchProperties() { } /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -51,7 +57,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @param expiration the expiration value to set. * @return the BareMetalMachineKeySetPatchProperties object itself. */ @@ -63,7 +69,7 @@ public BareMetalMachineKeySetPatchProperties withExpiration(OffsetDateTime expir /** * Get the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @return the jumpHostsAllowed value. */ public List jumpHostsAllowed() { @@ -73,7 +79,7 @@ public List jumpHostsAllowed() { /** * Set the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @param jumpHostsAllowed the jumpHostsAllowed value to set. * @return the BareMetalMachineKeySetPatchProperties object itself. */ @@ -84,7 +90,7 @@ public BareMetalMachineKeySetPatchProperties withJumpHostsAllowed(List j /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -93,7 +99,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BareMetalMachineKeySetPatchProperties object itself. */ @@ -104,7 +110,7 @@ public BareMetalMachineKeySetPatchProperties withUserList(List userL /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -112,4 +118,52 @@ public void validate() { userList().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("expiration", + this.expiration == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expiration)); + jsonWriter.writeArrayField("jumpHostsAllowed", this.jumpHostsAllowed, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("userList", this.userList, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineKeySetPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineKeySetPatchProperties if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachineKeySetPatchProperties. + */ + public static BareMetalMachineKeySetPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineKeySetPatchProperties deserializedBareMetalMachineKeySetPatchProperties + = new BareMetalMachineKeySetPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("expiration".equals(fieldName)) { + deserializedBareMetalMachineKeySetPatchProperties.expiration = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("jumpHostsAllowed".equals(fieldName)) { + List jumpHostsAllowed = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineKeySetPatchProperties.jumpHostsAllowed = jumpHostsAllowed; + } else if ("userList".equals(fieldName)) { + List userList = reader.readArray(reader1 -> KeySetUser.fromJson(reader1)); + deserializedBareMetalMachineKeySetPatchProperties.userList = userList; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineKeySetPatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetProperties.java index dd6e97c22f3fe..31eea1c2037de 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineKeySetProperties.java @@ -5,95 +5,94 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetDetailedStatus; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetPrivilegeLevel; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetProvisioningState; import com.azure.resourcemanager.networkcloud.models.KeySetUser; import com.azure.resourcemanager.networkcloud.models.KeySetUserStatus; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; -/** BareMetalMachineKeySetProperties represents the properties of bare metal machine key set. */ +/** + * BareMetalMachineKeySetProperties represents the properties of bare metal machine key set. + */ @Fluent -public final class BareMetalMachineKeySetProperties { +public final class BareMetalMachineKeySetProperties implements JsonSerializable { /* * The object ID of Azure Active Directory group that all users in the list must be in for access to be granted. * Users that are not in the group will not have access. */ - @JsonProperty(value = "azureGroupId", required = true) private String azureGroupId; /* * The more detailed status of the key set. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineKeySetDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The date and time after which the users in this key set will be removed from the bare metal machines. */ - @JsonProperty(value = "expiration", required = true) private OffsetDateTime expiration; /* * The list of IP addresses of jump hosts with management network access from which a login will be allowed for the * users. */ - @JsonProperty(value = "jumpHostsAllowed", required = true) private List jumpHostsAllowed; /* * The last time this key set was validated. */ - @JsonProperty(value = "lastValidation", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastValidation; /* * The name of the group that users will be assigned to on the operating system of the machines. */ - @JsonProperty(value = "osGroupName") private String osGroupName; /* * The access level allowed for the users in this key set. */ - @JsonProperty(value = "privilegeLevel", required = true) private BareMetalMachineKeySetPrivilegeLevel privilegeLevel; /* * The provisioning state of the bare metal machine key set. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineKeySetProvisioningState provisioningState; /* * The unique list of permitted users. */ - @JsonProperty(value = "userList", required = true) private List userList; /* * The status evaluation of each user. */ - @JsonProperty(value = "userListStatus", access = JsonProperty.Access.WRITE_ONLY) private List userListStatus; - /** Creates an instance of BareMetalMachineKeySetProperties class. */ + /** + * Creates an instance of BareMetalMachineKeySetProperties class. + */ public BareMetalMachineKeySetProperties() { } /** * Get the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @return the azureGroupId value. */ public String azureGroupId() { @@ -103,7 +102,7 @@ public String azureGroupId() { /** * Set the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @param azureGroupId the azureGroupId value to set. * @return the BareMetalMachineKeySetProperties object itself. */ @@ -114,7 +113,7 @@ public BareMetalMachineKeySetProperties withAzureGroupId(String azureGroupId) { /** * Get the detailedStatus property: The more detailed status of the key set. - * + * * @return the detailedStatus value. */ public BareMetalMachineKeySetDetailedStatus detailedStatus() { @@ -123,7 +122,7 @@ public BareMetalMachineKeySetDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -133,7 +132,7 @@ public String detailedStatusMessage() { /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -143,7 +142,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @param expiration the expiration value to set. * @return the BareMetalMachineKeySetProperties object itself. */ @@ -155,7 +154,7 @@ public BareMetalMachineKeySetProperties withExpiration(OffsetDateTime expiration /** * Get the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @return the jumpHostsAllowed value. */ public List jumpHostsAllowed() { @@ -165,7 +164,7 @@ public List jumpHostsAllowed() { /** * Set the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @param jumpHostsAllowed the jumpHostsAllowed value to set. * @return the BareMetalMachineKeySetProperties object itself. */ @@ -176,7 +175,7 @@ public BareMetalMachineKeySetProperties withJumpHostsAllowed(List jumpHo /** * Get the lastValidation property: The last time this key set was validated. - * + * * @return the lastValidation value. */ public OffsetDateTime lastValidation() { @@ -186,7 +185,7 @@ public OffsetDateTime lastValidation() { /** * Get the osGroupName property: The name of the group that users will be assigned to on the operating system of the * machines. - * + * * @return the osGroupName value. */ public String osGroupName() { @@ -196,7 +195,7 @@ public String osGroupName() { /** * Set the osGroupName property: The name of the group that users will be assigned to on the operating system of the * machines. - * + * * @param osGroupName the osGroupName value to set. * @return the BareMetalMachineKeySetProperties object itself. */ @@ -207,7 +206,7 @@ public BareMetalMachineKeySetProperties withOsGroupName(String osGroupName) { /** * Get the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @return the privilegeLevel value. */ public BareMetalMachineKeySetPrivilegeLevel privilegeLevel() { @@ -216,7 +215,7 @@ public BareMetalMachineKeySetPrivilegeLevel privilegeLevel() { /** * Set the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @param privilegeLevel the privilegeLevel value to set. * @return the BareMetalMachineKeySetProperties object itself. */ @@ -227,7 +226,7 @@ public BareMetalMachineKeySetProperties withPrivilegeLevel(BareMetalMachineKeySe /** * Get the provisioningState property: The provisioning state of the bare metal machine key set. - * + * * @return the provisioningState value. */ public BareMetalMachineKeySetProvisioningState provisioningState() { @@ -236,7 +235,7 @@ public BareMetalMachineKeySetProvisioningState provisioningState() { /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -245,7 +244,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BareMetalMachineKeySetProperties object itself. */ @@ -256,7 +255,7 @@ public BareMetalMachineKeySetProperties withUserList(List userList) /** * Get the userListStatus property: The status evaluation of each user. - * + * * @return the userListStatus value. */ public List userListStatus() { @@ -265,29 +264,34 @@ public List userListStatus() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (azureGroupId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property azureGroupId in model BareMetalMachineKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property azureGroupId in model BareMetalMachineKeySetProperties")); } if (expiration() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property expiration in model BareMetalMachineKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property expiration in model BareMetalMachineKeySetProperties")); } if (jumpHostsAllowed() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property jumpHostsAllowed in model BareMetalMachineKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property jumpHostsAllowed in model BareMetalMachineKeySetProperties")); } if (privilegeLevel() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property privilegeLevel in model BareMetalMachineKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property privilegeLevel in model BareMetalMachineKeySetProperties")); } if (userList() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property userList in model BareMetalMachineKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property userList in model BareMetalMachineKeySetProperties")); } else { userList().forEach(e -> e.validate()); } @@ -297,4 +301,79 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineKeySetProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("azureGroupId", this.azureGroupId); + jsonWriter.writeStringField("expiration", + this.expiration == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expiration)); + jsonWriter.writeArrayField("jumpHostsAllowed", this.jumpHostsAllowed, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("privilegeLevel", + this.privilegeLevel == null ? null : this.privilegeLevel.toString()); + jsonWriter.writeArrayField("userList", this.userList, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("osGroupName", this.osGroupName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineKeySetProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineKeySetProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineKeySetProperties. + */ + public static BareMetalMachineKeySetProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineKeySetProperties deserializedBareMetalMachineKeySetProperties + = new BareMetalMachineKeySetProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("azureGroupId".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.azureGroupId = reader.getString(); + } else if ("expiration".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.expiration = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("jumpHostsAllowed".equals(fieldName)) { + List jumpHostsAllowed = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineKeySetProperties.jumpHostsAllowed = jumpHostsAllowed; + } else if ("privilegeLevel".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.privilegeLevel + = BareMetalMachineKeySetPrivilegeLevel.fromString(reader.getString()); + } else if ("userList".equals(fieldName)) { + List userList = reader.readArray(reader1 -> KeySetUser.fromJson(reader1)); + deserializedBareMetalMachineKeySetProperties.userList = userList; + } else if ("detailedStatus".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.detailedStatus + = BareMetalMachineKeySetDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.detailedStatusMessage = reader.getString(); + } else if ("lastValidation".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.lastValidation = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("osGroupName".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.osGroupName = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedBareMetalMachineKeySetProperties.provisioningState + = BareMetalMachineKeySetProvisioningState.fromString(reader.getString()); + } else if ("userListStatus".equals(fieldName)) { + List userListStatus + = reader.readArray(reader1 -> KeySetUserStatus.fromJson(reader1)); + deserializedBareMetalMachineKeySetProperties.userListStatus = userListStatus; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineKeySetProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachinePatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachinePatchProperties.java index 1ebe3c31ee63a..a6ec9b8920d9c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachinePatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachinePatchProperties.java @@ -5,26 +5,33 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** BareMetalMachinePatchProperties represents the properties of the bare metal machine that can be patched. */ +/** + * BareMetalMachinePatchProperties represents the properties of the bare metal machine that can be patched. + */ @Fluent -public final class BareMetalMachinePatchProperties { +public final class BareMetalMachinePatchProperties implements JsonSerializable { /* * The details provided by the customer during the creation of rack manifests * that allows for custom data to be associated with this machine. */ - @JsonProperty(value = "machineDetails") private String machineDetails; - /** Creates an instance of BareMetalMachinePatchProperties class. */ + /** + * Creates an instance of BareMetalMachinePatchProperties class. + */ public BareMetalMachinePatchProperties() { } /** - * Get the machineDetails property: The details provided by the customer during the creation of rack manifests that - * allows for custom data to be associated with this machine. - * + * Get the machineDetails property: The details provided by the customer during the creation of rack manifests + * that allows for custom data to be associated with this machine. + * * @return the machineDetails value. */ public String machineDetails() { @@ -32,9 +39,9 @@ public String machineDetails() { } /** - * Set the machineDetails property: The details provided by the customer during the creation of rack manifests that - * allows for custom data to be associated with this machine. - * + * Set the machineDetails property: The details provided by the customer during the creation of rack manifests + * that allows for custom data to be associated with this machine. + * * @param machineDetails the machineDetails value to set. * @return the BareMetalMachinePatchProperties object itself. */ @@ -45,9 +52,46 @@ public BareMetalMachinePatchProperties withMachineDetails(String machineDetails) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("machineDetails", this.machineDetails); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachinePatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachinePatchProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachinePatchProperties. + */ + public static BareMetalMachinePatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachinePatchProperties deserializedBareMetalMachinePatchProperties + = new BareMetalMachinePatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("machineDetails".equals(fieldName)) { + deserializedBareMetalMachinePatchProperties.machineDetails = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachinePatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineProperties.java index a92b736762136..38ec2116d8af2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BareMetalMachineProperties.java @@ -6,6 +6,10 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCordonStatus; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineDetailedStatus; @@ -14,200 +18,189 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReadyState; import com.azure.resourcemanager.networkcloud.models.HardwareInventory; import com.azure.resourcemanager.networkcloud.models.HardwareValidationStatus; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionStatus; +import com.azure.resourcemanager.networkcloud.models.SecretRotationStatus; +import java.io.IOException; import java.util.List; -/** BareMetalMachineProperties represents the properties of a bare metal machine. */ +/** + * BareMetalMachineProperties represents the properties of a bare metal machine. + */ @Fluent -public final class BareMetalMachineProperties { +public final class BareMetalMachineProperties implements JsonSerializable { /* * The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. */ - @JsonProperty(value = "associatedResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List associatedResourceIds; /* * The connection string for the baseboard management controller including IP address and protocol. */ - @JsonProperty(value = "bmcConnectionString", required = true) private String bmcConnectionString; /* - * AdministrativeCredentials represents the admin credentials for the device requiring password-based - * authentication. - * * The credentials of the baseboard management controller on this bare metal machine. */ - @JsonProperty(value = "bmcCredentials", required = true) private AdministrativeCredentials bmcCredentials; /* * The MAC address of the BMC device. */ - @JsonProperty(value = "bmcMacAddress", required = true) private String bmcMacAddress; /* * The MAC address of a NIC connected to the PXE network. */ - @JsonProperty(value = "bootMacAddress", required = true) private String bootMacAddress; /* * The resource ID of the cluster this bare metal machine is associated with. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The cordon status of the bare metal machine. */ - @JsonProperty(value = "cordonStatus", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineCordonStatus cordonStatus; /* * The more detailed status of the bare metal machine. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* - * HardwareInventory represents the hardware configuration of this machine as exposed to the customer, including - * information acquired from the model/sku information and from the ironic inspector. - * * The hardware inventory, including information acquired from the model/sku information and from the ironic * inspector. */ - @JsonProperty(value = "hardwareInventory", access = JsonProperty.Access.WRITE_ONLY) private HardwareInventory hardwareInventory; /* - * HardwareValidationStatus represents the latest hardware validation details performed for this bare metal - * machine. - * * The details of the latest hardware validation performed for this bare metal machine. */ - @JsonProperty(value = "hardwareValidationStatus", access = JsonProperty.Access.WRITE_ONLY) private HardwareValidationStatus hardwareValidationStatus; /* - * Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters - * that have nodes hosted on this bare metal machine. + * Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the HybridAksClusters that + * have nodes hosted on this bare metal machine. */ - @JsonProperty(value = "hybridAksClustersAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List hybridAksClustersAssociatedIds; /* * The name of this machine represented by the host object in the Cluster's Kubernetes control plane. */ - @JsonProperty(value = "kubernetesNodeName", access = JsonProperty.Access.WRITE_ONLY) private String kubernetesNodeName; /* * The version of Kubernetes running on this machine. */ - @JsonProperty(value = "kubernetesVersion", access = JsonProperty.Access.WRITE_ONLY) private String kubernetesVersion; + /* + * The cluster version that has been applied to this machine during deployment or a version update. + */ + private String machineClusterVersion; + /* * The custom details provided by the customer. */ - @JsonProperty(value = "machineDetails", required = true) private String machineDetails; /* * The OS-level hostname assigned to this machine. */ - @JsonProperty(value = "machineName", required = true) private String machineName; + /* + * The list of roles that are assigned to the cluster node running on this machine. + */ + private List machineRoles; + /* * The unique internal identifier of the bare metal machine SKU. */ - @JsonProperty(value = "machineSkuId", required = true) private String machineSkuId; /* * The IPv4 address that is assigned to the bare metal machine during the cluster deployment. */ - @JsonProperty(value = "oamIpv4Address", access = JsonProperty.Access.WRITE_ONLY) private String oamIpv4Address; /* * The IPv6 address that is assigned to the bare metal machine during the cluster deployment. */ - @JsonProperty(value = "oamIpv6Address", access = JsonProperty.Access.WRITE_ONLY) private String oamIpv6Address; /* * The image that is currently provisioned to the OS disk. */ - @JsonProperty(value = "osImage", access = JsonProperty.Access.WRITE_ONLY) private String osImage; /* * The power state derived from the baseboard management controller. */ - @JsonProperty(value = "powerState", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachinePowerState powerState; /* * The provisioning state of the bare metal machine. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineProvisioningState provisioningState; /* * The resource ID of the rack where this bare metal machine resides. */ - @JsonProperty(value = "rackId", required = true) private String rackId; /* * The rack slot in which this bare metal machine is located, ordered from the bottom up i.e. the lowest slot is 1. */ - @JsonProperty(value = "rackSlot", required = true) private long rackSlot; /* * The indicator of whether the bare metal machine is ready to receive workloads. */ - @JsonProperty(value = "readyState", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineReadyState readyState; + /* + * The runtime protection status of the bare metal machine. + */ + private RuntimeProtectionStatus runtimeProtectionStatus; + + /* + * The list of statuses that represent secret rotation activity. + */ + private List secretRotationStatus; + /* * The serial number of the bare metal machine. */ - @JsonProperty(value = "serialNumber", required = true) private String serialNumber; /* * The discovered value of the machine's service tag. */ - @JsonProperty(value = "serviceTag", access = JsonProperty.Access.WRITE_ONLY) private String serviceTag; /* * Field Deprecated. These fields will be empty/omitted. The list of the resource IDs for the VirtualMachines that * are hosted on this bare metal machine. */ - @JsonProperty(value = "virtualMachinesAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List virtualMachinesAssociatedIds; - /** Creates an instance of BareMetalMachineProperties class. */ + /** + * Creates an instance of BareMetalMachineProperties class. + */ public BareMetalMachineProperties() { } /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -217,7 +210,7 @@ public List associatedResourceIds() { /** * Get the bmcConnectionString property: The connection string for the baseboard management controller including IP * address and protocol. - * + * * @return the bmcConnectionString value. */ public String bmcConnectionString() { @@ -227,7 +220,7 @@ public String bmcConnectionString() { /** * Set the bmcConnectionString property: The connection string for the baseboard management controller including IP * address and protocol. - * + * * @param bmcConnectionString the bmcConnectionString value to set. * @return the BareMetalMachineProperties object itself. */ @@ -237,11 +230,9 @@ public BareMetalMachineProperties withBmcConnectionString(String bmcConnectionSt } /** - * Get the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Get the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @return the bmcCredentials value. */ public AdministrativeCredentials bmcCredentials() { @@ -249,11 +240,9 @@ public AdministrativeCredentials bmcCredentials() { } /** - * Set the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Set the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @param bmcCredentials the bmcCredentials value to set. * @return the BareMetalMachineProperties object itself. */ @@ -264,7 +253,7 @@ public BareMetalMachineProperties withBmcCredentials(AdministrativeCredentials b /** * Get the bmcMacAddress property: The MAC address of the BMC device. - * + * * @return the bmcMacAddress value. */ public String bmcMacAddress() { @@ -273,7 +262,7 @@ public String bmcMacAddress() { /** * Set the bmcMacAddress property: The MAC address of the BMC device. - * + * * @param bmcMacAddress the bmcMacAddress value to set. * @return the BareMetalMachineProperties object itself. */ @@ -284,7 +273,7 @@ public BareMetalMachineProperties withBmcMacAddress(String bmcMacAddress) { /** * Get the bootMacAddress property: The MAC address of a NIC connected to the PXE network. - * + * * @return the bootMacAddress value. */ public String bootMacAddress() { @@ -293,7 +282,7 @@ public String bootMacAddress() { /** * Set the bootMacAddress property: The MAC address of a NIC connected to the PXE network. - * + * * @param bootMacAddress the bootMacAddress value to set. * @return the BareMetalMachineProperties object itself. */ @@ -304,7 +293,7 @@ public BareMetalMachineProperties withBootMacAddress(String bootMacAddress) { /** * Get the clusterId property: The resource ID of the cluster this bare metal machine is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -313,7 +302,7 @@ public String clusterId() { /** * Get the cordonStatus property: The cordon status of the bare metal machine. - * + * * @return the cordonStatus value. */ public BareMetalMachineCordonStatus cordonStatus() { @@ -322,7 +311,7 @@ public BareMetalMachineCordonStatus cordonStatus() { /** * Get the detailedStatus property: The more detailed status of the bare metal machine. - * + * * @return the detailedStatus value. */ public BareMetalMachineDetailedStatus detailedStatus() { @@ -331,7 +320,7 @@ public BareMetalMachineDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -339,13 +328,9 @@ public String detailedStatusMessage() { } /** - * Get the hardwareInventory property: HardwareInventory represents the hardware configuration of this machine as - * exposed to the customer, including information acquired from the model/sku information and from the ironic - * inspector. - * - *

The hardware inventory, including information acquired from the model/sku information and from the ironic - * inspector. - * + * Get the hardwareInventory property: The hardware inventory, including information acquired from the model/sku + * information and from the ironic inspector. + * * @return the hardwareInventory value. */ public HardwareInventory hardwareInventory() { @@ -353,11 +338,9 @@ public HardwareInventory hardwareInventory() { } /** - * Get the hardwareValidationStatus property: HardwareValidationStatus represents the latest hardware validation - * details performed for this bare metal machine. - * - *

The details of the latest hardware validation performed for this bare metal machine. - * + * Get the hardwareValidationStatus property: The details of the latest hardware validation performed for this bare + * metal machine. + * * @return the hardwareValidationStatus value. */ public HardwareValidationStatus hardwareValidationStatus() { @@ -367,7 +350,7 @@ public HardwareValidationStatus hardwareValidationStatus() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -377,7 +360,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the kubernetesNodeName property: The name of this machine represented by the host object in the Cluster's * Kubernetes control plane. - * + * * @return the kubernetesNodeName value. */ public String kubernetesNodeName() { @@ -386,16 +369,38 @@ public String kubernetesNodeName() { /** * Get the kubernetesVersion property: The version of Kubernetes running on this machine. - * + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { return this.kubernetesVersion; } + /** + * Get the machineClusterVersion property: The cluster version that has been applied to this machine during + * deployment or a version update. + * + * @return the machineClusterVersion value. + */ + public String machineClusterVersion() { + return this.machineClusterVersion; + } + + /** + * Set the machineClusterVersion property: The cluster version that has been applied to this machine during + * deployment or a version update. + * + * @param machineClusterVersion the machineClusterVersion value to set. + * @return the BareMetalMachineProperties object itself. + */ + public BareMetalMachineProperties withMachineClusterVersion(String machineClusterVersion) { + this.machineClusterVersion = machineClusterVersion; + return this; + } + /** * Get the machineDetails property: The custom details provided by the customer. - * + * * @return the machineDetails value. */ public String machineDetails() { @@ -404,7 +409,7 @@ public String machineDetails() { /** * Set the machineDetails property: The custom details provided by the customer. - * + * * @param machineDetails the machineDetails value to set. * @return the BareMetalMachineProperties object itself. */ @@ -415,7 +420,7 @@ public BareMetalMachineProperties withMachineDetails(String machineDetails) { /** * Get the machineName property: The OS-level hostname assigned to this machine. - * + * * @return the machineName value. */ public String machineName() { @@ -424,7 +429,7 @@ public String machineName() { /** * Set the machineName property: The OS-level hostname assigned to this machine. - * + * * @param machineName the machineName value to set. * @return the BareMetalMachineProperties object itself. */ @@ -433,9 +438,18 @@ public BareMetalMachineProperties withMachineName(String machineName) { return this; } + /** + * Get the machineRoles property: The list of roles that are assigned to the cluster node running on this machine. + * + * @return the machineRoles value. + */ + public List machineRoles() { + return this.machineRoles; + } + /** * Get the machineSkuId property: The unique internal identifier of the bare metal machine SKU. - * + * * @return the machineSkuId value. */ public String machineSkuId() { @@ -444,7 +458,7 @@ public String machineSkuId() { /** * Set the machineSkuId property: The unique internal identifier of the bare metal machine SKU. - * + * * @param machineSkuId the machineSkuId value to set. * @return the BareMetalMachineProperties object itself. */ @@ -456,7 +470,7 @@ public BareMetalMachineProperties withMachineSkuId(String machineSkuId) { /** * Get the oamIpv4Address property: The IPv4 address that is assigned to the bare metal machine during the cluster * deployment. - * + * * @return the oamIpv4Address value. */ public String oamIpv4Address() { @@ -466,7 +480,7 @@ public String oamIpv4Address() { /** * Get the oamIpv6Address property: The IPv6 address that is assigned to the bare metal machine during the cluster * deployment. - * + * * @return the oamIpv6Address value. */ public String oamIpv6Address() { @@ -475,7 +489,7 @@ public String oamIpv6Address() { /** * Get the osImage property: The image that is currently provisioned to the OS disk. - * + * * @return the osImage value. */ public String osImage() { @@ -484,7 +498,7 @@ public String osImage() { /** * Get the powerState property: The power state derived from the baseboard management controller. - * + * * @return the powerState value. */ public BareMetalMachinePowerState powerState() { @@ -493,7 +507,7 @@ public BareMetalMachinePowerState powerState() { /** * Get the provisioningState property: The provisioning state of the bare metal machine. - * + * * @return the provisioningState value. */ public BareMetalMachineProvisioningState provisioningState() { @@ -502,7 +516,7 @@ public BareMetalMachineProvisioningState provisioningState() { /** * Get the rackId property: The resource ID of the rack where this bare metal machine resides. - * + * * @return the rackId value. */ public String rackId() { @@ -511,7 +525,7 @@ public String rackId() { /** * Set the rackId property: The resource ID of the rack where this bare metal machine resides. - * + * * @param rackId the rackId value to set. * @return the BareMetalMachineProperties object itself. */ @@ -523,7 +537,7 @@ public BareMetalMachineProperties withRackId(String rackId) { /** * Get the rackSlot property: The rack slot in which this bare metal machine is located, ordered from the bottom up * i.e. the lowest slot is 1. - * + * * @return the rackSlot value. */ public long rackSlot() { @@ -533,7 +547,7 @@ public long rackSlot() { /** * Set the rackSlot property: The rack slot in which this bare metal machine is located, ordered from the bottom up * i.e. the lowest slot is 1. - * + * * @param rackSlot the rackSlot value to set. * @return the BareMetalMachineProperties object itself. */ @@ -544,16 +558,34 @@ public BareMetalMachineProperties withRackSlot(long rackSlot) { /** * Get the readyState property: The indicator of whether the bare metal machine is ready to receive workloads. - * + * * @return the readyState value. */ public BareMetalMachineReadyState readyState() { return this.readyState; } + /** + * Get the runtimeProtectionStatus property: The runtime protection status of the bare metal machine. + * + * @return the runtimeProtectionStatus value. + */ + public RuntimeProtectionStatus runtimeProtectionStatus() { + return this.runtimeProtectionStatus; + } + + /** + * Get the secretRotationStatus property: The list of statuses that represent secret rotation activity. + * + * @return the secretRotationStatus value. + */ + public List secretRotationStatus() { + return this.secretRotationStatus; + } + /** * Get the serialNumber property: The serial number of the bare metal machine. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -562,7 +594,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number of the bare metal machine. - * + * * @param serialNumber the serialNumber value to set. * @return the BareMetalMachineProperties object itself. */ @@ -573,7 +605,7 @@ public BareMetalMachineProperties withSerialNumber(String serialNumber) { /** * Get the serviceTag property: The discovered value of the machine's service tag. - * + * * @return the serviceTag value. */ public String serviceTag() { @@ -583,7 +615,7 @@ public String serviceTag() { /** * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * the resource IDs for the VirtualMachines that are hosted on this bare metal machine. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -592,27 +624,31 @@ public List virtualMachinesAssociatedIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (bmcConnectionString() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property bmcConnectionString in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property bmcConnectionString in model BareMetalMachineProperties")); } if (bmcCredentials() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property bmcCredentials in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property bmcCredentials in model BareMetalMachineProperties")); } else { bmcCredentials().validate(); } if (bmcMacAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property bmcMacAddress in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property bmcMacAddress in model BareMetalMachineProperties")); } if (bootMacAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property bootMacAddress in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property bootMacAddress in model BareMetalMachineProperties")); } if (hardwareInventory() != null) { hardwareInventory().validate(); @@ -621,26 +657,160 @@ public void validate() { hardwareValidationStatus().validate(); } if (machineDetails() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property machineDetails in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property machineDetails in model BareMetalMachineProperties")); } if (machineName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property machineName in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property machineName in model BareMetalMachineProperties")); } if (machineSkuId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property machineSkuId in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property machineSkuId in model BareMetalMachineProperties")); } if (rackId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property rackId in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property rackId in model BareMetalMachineProperties")); + } + if (runtimeProtectionStatus() != null) { + runtimeProtectionStatus().validate(); + } + if (secretRotationStatus() != null) { + secretRotationStatus().forEach(e -> e.validate()); } if (serialNumber() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property serialNumber in model BareMetalMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property serialNumber in model BareMetalMachineProperties")); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("bmcConnectionString", this.bmcConnectionString); + jsonWriter.writeJsonField("bmcCredentials", this.bmcCredentials); + jsonWriter.writeStringField("bmcMacAddress", this.bmcMacAddress); + jsonWriter.writeStringField("bootMacAddress", this.bootMacAddress); + jsonWriter.writeStringField("machineDetails", this.machineDetails); + jsonWriter.writeStringField("machineName", this.machineName); + jsonWriter.writeStringField("machineSkuId", this.machineSkuId); + jsonWriter.writeStringField("rackId", this.rackId); + jsonWriter.writeLongField("rackSlot", this.rackSlot); + jsonWriter.writeStringField("serialNumber", this.serialNumber); + jsonWriter.writeStringField("machineClusterVersion", this.machineClusterVersion); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineProperties. + */ + public static BareMetalMachineProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineProperties deserializedBareMetalMachineProperties = new BareMetalMachineProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("bmcConnectionString".equals(fieldName)) { + deserializedBareMetalMachineProperties.bmcConnectionString = reader.getString(); + } else if ("bmcCredentials".equals(fieldName)) { + deserializedBareMetalMachineProperties.bmcCredentials = AdministrativeCredentials.fromJson(reader); + } else if ("bmcMacAddress".equals(fieldName)) { + deserializedBareMetalMachineProperties.bmcMacAddress = reader.getString(); + } else if ("bootMacAddress".equals(fieldName)) { + deserializedBareMetalMachineProperties.bootMacAddress = reader.getString(); + } else if ("machineDetails".equals(fieldName)) { + deserializedBareMetalMachineProperties.machineDetails = reader.getString(); + } else if ("machineName".equals(fieldName)) { + deserializedBareMetalMachineProperties.machineName = reader.getString(); + } else if ("machineSkuId".equals(fieldName)) { + deserializedBareMetalMachineProperties.machineSkuId = reader.getString(); + } else if ("rackId".equals(fieldName)) { + deserializedBareMetalMachineProperties.rackId = reader.getString(); + } else if ("rackSlot".equals(fieldName)) { + deserializedBareMetalMachineProperties.rackSlot = reader.getLong(); + } else if ("serialNumber".equals(fieldName)) { + deserializedBareMetalMachineProperties.serialNumber = reader.getString(); + } else if ("associatedResourceIds".equals(fieldName)) { + List associatedResourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineProperties.associatedResourceIds = associatedResourceIds; + } else if ("clusterId".equals(fieldName)) { + deserializedBareMetalMachineProperties.clusterId = reader.getString(); + } else if ("cordonStatus".equals(fieldName)) { + deserializedBareMetalMachineProperties.cordonStatus + = BareMetalMachineCordonStatus.fromString(reader.getString()); + } else if ("detailedStatus".equals(fieldName)) { + deserializedBareMetalMachineProperties.detailedStatus + = BareMetalMachineDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedBareMetalMachineProperties.detailedStatusMessage = reader.getString(); + } else if ("hardwareInventory".equals(fieldName)) { + deserializedBareMetalMachineProperties.hardwareInventory = HardwareInventory.fromJson(reader); + } else if ("hardwareValidationStatus".equals(fieldName)) { + deserializedBareMetalMachineProperties.hardwareValidationStatus + = HardwareValidationStatus.fromJson(reader); + } else if ("hybridAksClustersAssociatedIds".equals(fieldName)) { + List hybridAksClustersAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineProperties.hybridAksClustersAssociatedIds + = hybridAksClustersAssociatedIds; + } else if ("kubernetesNodeName".equals(fieldName)) { + deserializedBareMetalMachineProperties.kubernetesNodeName = reader.getString(); + } else if ("kubernetesVersion".equals(fieldName)) { + deserializedBareMetalMachineProperties.kubernetesVersion = reader.getString(); + } else if ("machineClusterVersion".equals(fieldName)) { + deserializedBareMetalMachineProperties.machineClusterVersion = reader.getString(); + } else if ("machineRoles".equals(fieldName)) { + List machineRoles = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineProperties.machineRoles = machineRoles; + } else if ("oamIpv4Address".equals(fieldName)) { + deserializedBareMetalMachineProperties.oamIpv4Address = reader.getString(); + } else if ("oamIpv6Address".equals(fieldName)) { + deserializedBareMetalMachineProperties.oamIpv6Address = reader.getString(); + } else if ("osImage".equals(fieldName)) { + deserializedBareMetalMachineProperties.osImage = reader.getString(); + } else if ("powerState".equals(fieldName)) { + deserializedBareMetalMachineProperties.powerState + = BareMetalMachinePowerState.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedBareMetalMachineProperties.provisioningState + = BareMetalMachineProvisioningState.fromString(reader.getString()); + } else if ("readyState".equals(fieldName)) { + deserializedBareMetalMachineProperties.readyState + = BareMetalMachineReadyState.fromString(reader.getString()); + } else if ("runtimeProtectionStatus".equals(fieldName)) { + deserializedBareMetalMachineProperties.runtimeProtectionStatus + = RuntimeProtectionStatus.fromJson(reader); + } else if ("secretRotationStatus".equals(fieldName)) { + List secretRotationStatus + = reader.readArray(reader1 -> SecretRotationStatus.fromJson(reader1)); + deserializedBareMetalMachineProperties.secretRotationStatus = secretRotationStatus; + } else if ("serviceTag".equals(fieldName)) { + deserializedBareMetalMachineProperties.serviceTag = reader.getString(); + } else if ("virtualMachinesAssociatedIds".equals(fieldName)) { + List virtualMachinesAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineProperties.virtualMachinesAssociatedIds = virtualMachinesAssociatedIds; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetInner.java index 134ba1f346236..acd46dbb92562 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetInner.java @@ -8,52 +8,64 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.BmcKeySetDetailedStatus; import com.azure.resourcemanager.networkcloud.models.BmcKeySetPrivilegeLevel; import com.azure.resourcemanager.networkcloud.models.BmcKeySetProvisioningState; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.KeySetUser; import com.azure.resourcemanager.networkcloud.models.KeySetUserStatus; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; -/** BmcKeySet represents the baseboard management controller key set. */ +/** + * BmcKeySet represents the baseboard management controller key set. + */ @Fluent public final class BmcKeySetInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * BmcKeySetProperties represents the properties of baseboard management controller key set. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private BmcKeySetProperties innerProperties = new BmcKeySetProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of BmcKeySetInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of BmcKeySetInner class. + */ public BmcKeySetInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -61,11 +73,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the BmcKeySetInner object itself. */ @@ -75,11 +84,8 @@ public BmcKeySetInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: BmcKeySetProperties represents the properties of baseboard management - * controller key set. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private BmcKeySetProperties innerProperties() { @@ -88,21 +94,55 @@ private BmcKeySetProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public BmcKeySetInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BmcKeySetInner withTags(Map tags) { super.withTags(tags); @@ -112,7 +152,7 @@ public BmcKeySetInner withTags(Map tags) { /** * Get the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @return the azureGroupId value. */ public String azureGroupId() { @@ -122,7 +162,7 @@ public String azureGroupId() { /** * Set the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @param azureGroupId the azureGroupId value to set. * @return the BmcKeySetInner object itself. */ @@ -136,7 +176,7 @@ public BmcKeySetInner withAzureGroupId(String azureGroupId) { /** * Get the detailedStatus property: The more detailed status of the key set. - * + * * @return the detailedStatus value. */ public BmcKeySetDetailedStatus detailedStatus() { @@ -145,7 +185,7 @@ public BmcKeySetDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -155,7 +195,7 @@ public String detailedStatusMessage() { /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -165,7 +205,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @param expiration the expiration value to set. * @return the BmcKeySetInner object itself. */ @@ -179,7 +219,7 @@ public BmcKeySetInner withExpiration(OffsetDateTime expiration) { /** * Get the lastValidation property: The last time this key set was validated. - * + * * @return the lastValidation value. */ public OffsetDateTime lastValidation() { @@ -188,7 +228,7 @@ public OffsetDateTime lastValidation() { /** * Get the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @return the privilegeLevel value. */ public BmcKeySetPrivilegeLevel privilegeLevel() { @@ -197,7 +237,7 @@ public BmcKeySetPrivilegeLevel privilegeLevel() { /** * Set the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @param privilegeLevel the privilegeLevel value to set. * @return the BmcKeySetInner object itself. */ @@ -211,7 +251,7 @@ public BmcKeySetInner withPrivilegeLevel(BmcKeySetPrivilegeLevel privilegeLevel) /** * Get the provisioningState property: The provisioning state of the baseboard management controller key set. - * + * * @return the provisioningState value. */ public BmcKeySetProvisioningState provisioningState() { @@ -220,7 +260,7 @@ public BmcKeySetProvisioningState provisioningState() { /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -229,7 +269,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BmcKeySetInner object itself. */ @@ -243,7 +283,7 @@ public BmcKeySetInner withUserList(List userList) { /** * Get the userListStatus property: The status evaluation of each user. - * + * * @return the userListStatus value. */ public List userListStatus() { @@ -252,23 +292,79 @@ public List userListStatus() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property extendedLocation in model BmcKeySetInner")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property extendedLocation in model BmcKeySetInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model BmcKeySetInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model BmcKeySetInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(BmcKeySetInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BmcKeySetInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BmcKeySetInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BmcKeySetInner. + */ + public static BmcKeySetInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BmcKeySetInner deserializedBmcKeySetInner = new BmcKeySetInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedBmcKeySetInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedBmcKeySetInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedBmcKeySetInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedBmcKeySetInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedBmcKeySetInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedBmcKeySetInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedBmcKeySetInner.innerProperties = BmcKeySetProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedBmcKeySetInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBmcKeySetInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetPatchProperties.java index 0c7a3c4758c5b..69b7afc6c711a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetPatchProperties.java @@ -5,35 +5,43 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.KeySetUser; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; -/** BmcKeySetPatchProperties represents the properties of baseboard management controller key set that are patchable. */ +/** + * BmcKeySetPatchProperties represents the properties of baseboard management controller key set that are patchable. + */ @Fluent -public final class BmcKeySetPatchProperties { +public final class BmcKeySetPatchProperties implements JsonSerializable { /* * The date and time after which the users in this key set will be removed from the baseboard management * controllers. */ - @JsonProperty(value = "expiration") private OffsetDateTime expiration; /* * The unique list of permitted users. */ - @JsonProperty(value = "userList") private List userList; - /** Creates an instance of BmcKeySetPatchProperties class. */ + /** + * Creates an instance of BmcKeySetPatchProperties class. + */ public BmcKeySetPatchProperties() { } /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -43,7 +51,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @param expiration the expiration value to set. * @return the BmcKeySetPatchProperties object itself. */ @@ -54,7 +62,7 @@ public BmcKeySetPatchProperties withExpiration(OffsetDateTime expiration) { /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -63,7 +71,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BmcKeySetPatchProperties object itself. */ @@ -74,7 +82,7 @@ public BmcKeySetPatchProperties withUserList(List userList) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -82,4 +90,46 @@ public void validate() { userList().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("expiration", + this.expiration == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expiration)); + jsonWriter.writeArrayField("userList", this.userList, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BmcKeySetPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BmcKeySetPatchProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BmcKeySetPatchProperties. + */ + public static BmcKeySetPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BmcKeySetPatchProperties deserializedBmcKeySetPatchProperties = new BmcKeySetPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("expiration".equals(fieldName)) { + deserializedBmcKeySetPatchProperties.expiration = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("userList".equals(fieldName)) { + List userList = reader.readArray(reader1 -> KeySetUser.fromJson(reader1)); + deserializedBmcKeySetPatchProperties.userList = userList; + } else { + reader.skipChildren(); + } + } + + return deserializedBmcKeySetPatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetProperties.java index 6dc71ce7195b5..3229d85589af9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/BmcKeySetProperties.java @@ -5,83 +5,84 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.BmcKeySetDetailedStatus; import com.azure.resourcemanager.networkcloud.models.BmcKeySetPrivilegeLevel; import com.azure.resourcemanager.networkcloud.models.BmcKeySetProvisioningState; import com.azure.resourcemanager.networkcloud.models.KeySetUser; import com.azure.resourcemanager.networkcloud.models.KeySetUserStatus; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.List; -/** BmcKeySetProperties represents the properties of baseboard management controller key set. */ +/** + * BmcKeySetProperties represents the properties of baseboard management controller key set. + */ @Fluent -public final class BmcKeySetProperties { +public final class BmcKeySetProperties implements JsonSerializable { /* * The object ID of Azure Active Directory group that all users in the list must be in for access to be granted. * Users that are not in the group will not have access. */ - @JsonProperty(value = "azureGroupId", required = true) private String azureGroupId; /* * The more detailed status of the key set. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private BmcKeySetDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The date and time after which the users in this key set will be removed from the baseboard management * controllers. */ - @JsonProperty(value = "expiration", required = true) private OffsetDateTime expiration; /* * The last time this key set was validated. */ - @JsonProperty(value = "lastValidation", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastValidation; /* * The access level allowed for the users in this key set. */ - @JsonProperty(value = "privilegeLevel", required = true) private BmcKeySetPrivilegeLevel privilegeLevel; /* * The provisioning state of the baseboard management controller key set. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private BmcKeySetProvisioningState provisioningState; /* * The unique list of permitted users. */ - @JsonProperty(value = "userList", required = true) private List userList; /* * The status evaluation of each user. */ - @JsonProperty(value = "userListStatus", access = JsonProperty.Access.WRITE_ONLY) private List userListStatus; - /** Creates an instance of BmcKeySetProperties class. */ + /** + * Creates an instance of BmcKeySetProperties class. + */ public BmcKeySetProperties() { } /** * Get the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @return the azureGroupId value. */ public String azureGroupId() { @@ -91,7 +92,7 @@ public String azureGroupId() { /** * Set the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @param azureGroupId the azureGroupId value to set. * @return the BmcKeySetProperties object itself. */ @@ -102,7 +103,7 @@ public BmcKeySetProperties withAzureGroupId(String azureGroupId) { /** * Get the detailedStatus property: The more detailed status of the key set. - * + * * @return the detailedStatus value. */ public BmcKeySetDetailedStatus detailedStatus() { @@ -111,7 +112,7 @@ public BmcKeySetDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -121,7 +122,7 @@ public String detailedStatusMessage() { /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -131,7 +132,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @param expiration the expiration value to set. * @return the BmcKeySetProperties object itself. */ @@ -142,7 +143,7 @@ public BmcKeySetProperties withExpiration(OffsetDateTime expiration) { /** * Get the lastValidation property: The last time this key set was validated. - * + * * @return the lastValidation value. */ public OffsetDateTime lastValidation() { @@ -151,7 +152,7 @@ public OffsetDateTime lastValidation() { /** * Get the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @return the privilegeLevel value. */ public BmcKeySetPrivilegeLevel privilegeLevel() { @@ -160,7 +161,7 @@ public BmcKeySetPrivilegeLevel privilegeLevel() { /** * Set the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @param privilegeLevel the privilegeLevel value to set. * @return the BmcKeySetProperties object itself. */ @@ -171,7 +172,7 @@ public BmcKeySetProperties withPrivilegeLevel(BmcKeySetPrivilegeLevel privilegeL /** * Get the provisioningState property: The provisioning state of the baseboard management controller key set. - * + * * @return the provisioningState value. */ public BmcKeySetProvisioningState provisioningState() { @@ -180,7 +181,7 @@ public BmcKeySetProvisioningState provisioningState() { /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -189,7 +190,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BmcKeySetProperties object itself. */ @@ -200,7 +201,7 @@ public BmcKeySetProperties withUserList(List userList) { /** * Get the userListStatus property: The status evaluation of each user. - * + * * @return the userListStatus value. */ public List userListStatus() { @@ -209,25 +210,27 @@ public List userListStatus() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (azureGroupId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property azureGroupId in model BmcKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property azureGroupId in model BmcKeySetProperties")); } if (expiration() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property expiration in model BmcKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property expiration in model BmcKeySetProperties")); } if (privilegeLevel() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property privilegeLevel in model BmcKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property privilegeLevel in model BmcKeySetProperties")); } if (userList() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property userList in model BmcKeySetProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property userList in model BmcKeySetProperties")); } else { userList().forEach(e -> e.validate()); } @@ -237,4 +240,70 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(BmcKeySetProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("azureGroupId", this.azureGroupId); + jsonWriter.writeStringField("expiration", + this.expiration == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expiration)); + jsonWriter.writeStringField("privilegeLevel", + this.privilegeLevel == null ? null : this.privilegeLevel.toString()); + jsonWriter.writeArrayField("userList", this.userList, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BmcKeySetProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BmcKeySetProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BmcKeySetProperties. + */ + public static BmcKeySetProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BmcKeySetProperties deserializedBmcKeySetProperties = new BmcKeySetProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("azureGroupId".equals(fieldName)) { + deserializedBmcKeySetProperties.azureGroupId = reader.getString(); + } else if ("expiration".equals(fieldName)) { + deserializedBmcKeySetProperties.expiration = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("privilegeLevel".equals(fieldName)) { + deserializedBmcKeySetProperties.privilegeLevel + = BmcKeySetPrivilegeLevel.fromString(reader.getString()); + } else if ("userList".equals(fieldName)) { + List userList = reader.readArray(reader1 -> KeySetUser.fromJson(reader1)); + deserializedBmcKeySetProperties.userList = userList; + } else if ("detailedStatus".equals(fieldName)) { + deserializedBmcKeySetProperties.detailedStatus + = BmcKeySetDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedBmcKeySetProperties.detailedStatusMessage = reader.getString(); + } else if ("lastValidation".equals(fieldName)) { + deserializedBmcKeySetProperties.lastValidation = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("provisioningState".equals(fieldName)) { + deserializedBmcKeySetProperties.provisioningState + = BmcKeySetProvisioningState.fromString(reader.getString()); + } else if ("userListStatus".equals(fieldName)) { + List userListStatus + = reader.readArray(reader1 -> KeySetUserStatus.fromJson(reader1)); + deserializedBmcKeySetProperties.userListStatus = userListStatus; + } else { + reader.skipChildren(); + } + } + + return deserializedBmcKeySetProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkInner.java index 7801ec40772f7..54f1c3da87160 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkInner.java @@ -8,58 +8,68 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkProvisioningState; import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; /** * CloudServicesNetwork represents additional egress information that will be used by associated virtual machines or * hybrid AKS clusters. - * - *

Upon creation, the additional services that are provided by the platform will be allocated and represented in the - * status of this resource. All resources associated with this cloud services network will be part of the same layer 2 - * (L2) isolation domain. At least one service network must be created but may be reused across many virtual machines - * and/or Hybrid AKS clusters. + * + * Upon creation, the additional services that are provided by the platform will be allocated and + * represented in the status of this resource. All resources associated with this cloud services network will be part + * of the same layer 2 (L2) isolation domain. At least one service network must be created but may be reused across many + * virtual machines and/or Hybrid AKS clusters. */ @Fluent public final class CloudServicesNetworkInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * CloudServicesNetworkProperties represents properties of the cloud services network. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private CloudServicesNetworkProperties innerProperties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of CloudServicesNetworkInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of CloudServicesNetworkInner class. + */ public CloudServicesNetworkInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -67,11 +77,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the CloudServicesNetworkInner object itself. */ @@ -81,11 +88,8 @@ public CloudServicesNetworkInner withExtendedLocation(ExtendedLocation extendedL } /** - * Get the innerProperties property: CloudServicesNetworkProperties represents properties of the cloud services - * network. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private CloudServicesNetworkProperties innerProperties() { @@ -94,21 +98,55 @@ private CloudServicesNetworkProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public CloudServicesNetworkInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public CloudServicesNetworkInner withTags(Map tags) { super.withTags(tags); @@ -118,7 +156,7 @@ public CloudServicesNetworkInner withTags(Map tags) { /** * Get the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @return the additionalEgressEndpoints value. */ public List additionalEgressEndpoints() { @@ -128,7 +166,7 @@ public List additionalEgressEndpoints() { /** * Set the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @param additionalEgressEndpoints the additionalEgressEndpoints value to set. * @return the CloudServicesNetworkInner object itself. */ @@ -143,7 +181,7 @@ public CloudServicesNetworkInner withAdditionalEgressEndpoints(List associatedResourceIds() { @@ -153,7 +191,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this cloud services network is * associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -162,7 +200,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the cloud services network. - * + * * @return the detailedStatus value. */ public CloudServicesNetworkDetailedStatus detailedStatus() { @@ -171,7 +209,7 @@ public CloudServicesNetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -181,7 +219,7 @@ public String detailedStatusMessage() { /** * Get the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @return the enableDefaultEgressEndpoints value. */ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpoints() { @@ -191,7 +229,7 @@ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpo /** * Set the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @param enableDefaultEgressEndpoints the enableDefaultEgressEndpoints value to set. * @return the CloudServicesNetworkInner object itself. */ @@ -207,7 +245,7 @@ public CloudServicesNetworkInner withEnableDefaultEgressEndpoints( /** * Get the enabledEgressEndpoints property: The full list of additional and default egress endpoints that are * currently enabled. - * + * * @return the enabledEgressEndpoints value. */ public List enabledEgressEndpoints() { @@ -217,7 +255,7 @@ public List enabledEgressEndpoints() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this cloud services network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -227,7 +265,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the interfaceName property: The name of the interface that will be present in the virtual machine to * represent this network. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -236,7 +274,7 @@ public String interfaceName() { /** * Get the provisioningState property: The provisioning state of the cloud services network. - * + * * @return the provisioningState value. */ public CloudServicesNetworkProvisioningState provisioningState() { @@ -247,7 +285,7 @@ public CloudServicesNetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud * services network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -256,13 +294,14 @@ public List virtualMachinesAssociatedIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model CloudServicesNetworkInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model CloudServicesNetworkInner")); } else { extendedLocation().validate(); } @@ -272,4 +311,60 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(CloudServicesNetworkInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudServicesNetworkInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudServicesNetworkInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CloudServicesNetworkInner. + */ + public static CloudServicesNetworkInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudServicesNetworkInner deserializedCloudServicesNetworkInner = new CloudServicesNetworkInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedCloudServicesNetworkInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedCloudServicesNetworkInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCloudServicesNetworkInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedCloudServicesNetworkInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedCloudServicesNetworkInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedCloudServicesNetworkInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedCloudServicesNetworkInner.innerProperties + = CloudServicesNetworkProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedCloudServicesNetworkInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCloudServicesNetworkInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkPatchProperties.java index 6479d06fa02ae..4ed60c01604f4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkPatchProperties.java @@ -5,9 +5,13 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** @@ -15,27 +19,28 @@ * a patch request. */ @Fluent -public final class CloudServicesNetworkPatchProperties { +public final class CloudServicesNetworkPatchProperties + implements JsonSerializable { /* * The list of egress endpoints. This allows for connection from a Hybrid AKS cluster to the specified endpoint. */ - @JsonProperty(value = "additionalEgressEndpoints") private List additionalEgressEndpoints; /* * The indicator of whether the platform default endpoints are allowed for the egress traffic. */ - @JsonProperty(value = "enableDefaultEgressEndpoints") private CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpoints; - /** Creates an instance of CloudServicesNetworkPatchProperties class. */ + /** + * Creates an instance of CloudServicesNetworkPatchProperties class. + */ public CloudServicesNetworkPatchProperties() { } /** * Get the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @return the additionalEgressEndpoints value. */ public List additionalEgressEndpoints() { @@ -45,7 +50,7 @@ public List additionalEgressEndpoints() { /** * Set the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @param additionalEgressEndpoints the additionalEgressEndpoints value to set. * @return the CloudServicesNetworkPatchProperties object itself. */ @@ -58,7 +63,7 @@ public List additionalEgressEndpoints() { /** * Get the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @return the enableDefaultEgressEndpoints value. */ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpoints() { @@ -68,7 +73,7 @@ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpo /** * Set the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @param enableDefaultEgressEndpoints the enableDefaultEgressEndpoints value to set. * @return the CloudServicesNetworkPatchProperties object itself. */ @@ -80,7 +85,7 @@ public CloudServicesNetworkPatchProperties withEnableDefaultEgressEndpoints( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -88,4 +93,50 @@ public void validate() { additionalEgressEndpoints().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("additionalEgressEndpoints", this.additionalEgressEndpoints, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("enableDefaultEgressEndpoints", + this.enableDefaultEgressEndpoints == null ? null : this.enableDefaultEgressEndpoints.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudServicesNetworkPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudServicesNetworkPatchProperties if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CloudServicesNetworkPatchProperties. + */ + public static CloudServicesNetworkPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudServicesNetworkPatchProperties deserializedCloudServicesNetworkPatchProperties + = new CloudServicesNetworkPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("additionalEgressEndpoints".equals(fieldName)) { + List additionalEgressEndpoints + = reader.readArray(reader1 -> EgressEndpoint.fromJson(reader1)); + deserializedCloudServicesNetworkPatchProperties.additionalEgressEndpoints + = additionalEgressEndpoints; + } else if ("enableDefaultEgressEndpoints".equals(fieldName)) { + deserializedCloudServicesNetworkPatchProperties.enableDefaultEgressEndpoints + = CloudServicesNetworkEnableDefaultEgressEndpoints.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCloudServicesNetworkPatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkProperties.java index 993cccc4846b1..b48d0bdaa2f22 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/CloudServicesNetworkProperties.java @@ -5,92 +5,89 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkProvisioningState; import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** CloudServicesNetworkProperties represents properties of the cloud services network. */ +/** + * CloudServicesNetworkProperties represents properties of the cloud services network. + */ @Fluent -public final class CloudServicesNetworkProperties { +public final class CloudServicesNetworkProperties implements JsonSerializable { /* * The list of egress endpoints. This allows for connection from a Hybrid AKS cluster to the specified endpoint. */ - @JsonProperty(value = "additionalEgressEndpoints") private List additionalEgressEndpoints; /* * The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. */ - @JsonProperty(value = "associatedResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List associatedResourceIds; /* * The resource ID of the Network Cloud cluster this cloud services network is associated with. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The more detailed status of the cloud services network. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private CloudServicesNetworkDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The indicator of whether the platform default endpoints are allowed for the egress traffic. */ - @JsonProperty(value = "enableDefaultEgressEndpoints") private CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpoints; /* * The full list of additional and default egress endpoints that are currently enabled. */ - @JsonProperty(value = "enabledEgressEndpoints", access = JsonProperty.Access.WRITE_ONLY) private List enabledEgressEndpoints; /* * Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are * associated with this cloud services network. */ - @JsonProperty(value = "hybridAksClustersAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List hybridAksClustersAssociatedIds; /* * The name of the interface that will be present in the virtual machine to represent this network. */ - @JsonProperty(value = "interfaceName", access = JsonProperty.Access.WRITE_ONLY) private String interfaceName; /* * The provisioning state of the cloud services network. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private CloudServicesNetworkProvisioningState provisioningState; /* * Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any * Hybrid AKS virtual machines, that are currently using this cloud services network. */ - @JsonProperty(value = "virtualMachinesAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List virtualMachinesAssociatedIds; - /** Creates an instance of CloudServicesNetworkProperties class. */ + /** + * Creates an instance of CloudServicesNetworkProperties class. + */ public CloudServicesNetworkProperties() { } /** * Get the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @return the additionalEgressEndpoints value. */ public List additionalEgressEndpoints() { @@ -100,7 +97,7 @@ public List additionalEgressEndpoints() { /** * Set the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @param additionalEgressEndpoints the additionalEgressEndpoints value to set. * @return the CloudServicesNetworkProperties object itself. */ @@ -113,7 +110,7 @@ public List additionalEgressEndpoints() { /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -123,7 +120,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this cloud services network is * associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -132,7 +129,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the cloud services network. - * + * * @return the detailedStatus value. */ public CloudServicesNetworkDetailedStatus detailedStatus() { @@ -141,7 +138,7 @@ public CloudServicesNetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -151,7 +148,7 @@ public String detailedStatusMessage() { /** * Get the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @return the enableDefaultEgressEndpoints value. */ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpoints() { @@ -161,7 +158,7 @@ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpo /** * Set the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @param enableDefaultEgressEndpoints the enableDefaultEgressEndpoints value to set. * @return the CloudServicesNetworkProperties object itself. */ @@ -174,7 +171,7 @@ public CloudServicesNetworkProperties withEnableDefaultEgressEndpoints( /** * Get the enabledEgressEndpoints property: The full list of additional and default egress endpoints that are * currently enabled. - * + * * @return the enabledEgressEndpoints value. */ public List enabledEgressEndpoints() { @@ -184,7 +181,7 @@ public List enabledEgressEndpoints() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this cloud services network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -194,7 +191,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the interfaceName property: The name of the interface that will be present in the virtual machine to * represent this network. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -203,7 +200,7 @@ public String interfaceName() { /** * Get the provisioningState property: The provisioning state of the cloud services network. - * + * * @return the provisioningState value. */ public CloudServicesNetworkProvisioningState provisioningState() { @@ -214,7 +211,7 @@ public CloudServicesNetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud * services network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -223,7 +220,7 @@ public List virtualMachinesAssociatedIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -234,4 +231,76 @@ public void validate() { enabledEgressEndpoints().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("additionalEgressEndpoints", this.additionalEgressEndpoints, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("enableDefaultEgressEndpoints", + this.enableDefaultEgressEndpoints == null ? null : this.enableDefaultEgressEndpoints.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudServicesNetworkProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudServicesNetworkProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CloudServicesNetworkProperties. + */ + public static CloudServicesNetworkProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudServicesNetworkProperties deserializedCloudServicesNetworkProperties + = new CloudServicesNetworkProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("additionalEgressEndpoints".equals(fieldName)) { + List additionalEgressEndpoints + = reader.readArray(reader1 -> EgressEndpoint.fromJson(reader1)); + deserializedCloudServicesNetworkProperties.additionalEgressEndpoints = additionalEgressEndpoints; + } else if ("associatedResourceIds".equals(fieldName)) { + List associatedResourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedCloudServicesNetworkProperties.associatedResourceIds = associatedResourceIds; + } else if ("clusterId".equals(fieldName)) { + deserializedCloudServicesNetworkProperties.clusterId = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedCloudServicesNetworkProperties.detailedStatus + = CloudServicesNetworkDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedCloudServicesNetworkProperties.detailedStatusMessage = reader.getString(); + } else if ("enableDefaultEgressEndpoints".equals(fieldName)) { + deserializedCloudServicesNetworkProperties.enableDefaultEgressEndpoints + = CloudServicesNetworkEnableDefaultEgressEndpoints.fromString(reader.getString()); + } else if ("enabledEgressEndpoints".equals(fieldName)) { + List enabledEgressEndpoints + = reader.readArray(reader1 -> EgressEndpoint.fromJson(reader1)); + deserializedCloudServicesNetworkProperties.enabledEgressEndpoints = enabledEgressEndpoints; + } else if ("hybridAksClustersAssociatedIds".equals(fieldName)) { + List hybridAksClustersAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedCloudServicesNetworkProperties.hybridAksClustersAssociatedIds + = hybridAksClustersAssociatedIds; + } else if ("interfaceName".equals(fieldName)) { + deserializedCloudServicesNetworkProperties.interfaceName = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedCloudServicesNetworkProperties.provisioningState + = CloudServicesNetworkProvisioningState.fromString(reader.getString()); + } else if ("virtualMachinesAssociatedIds".equals(fieldName)) { + List virtualMachinesAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedCloudServicesNetworkProperties.virtualMachinesAssociatedIds + = virtualMachinesAssociatedIds; + } else { + reader.skipChildren(); + } + } + + return deserializedCloudServicesNetworkProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java index 2faa57cc21f30..2a8783fe99468 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterInner.java @@ -8,57 +8,79 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion; import com.azure.resourcemanager.networkcloud.models.ClusterCapacity; import com.azure.resourcemanager.networkcloud.models.ClusterConnectionStatus; import com.azure.resourcemanager.networkcloud.models.ClusterDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ClusterManagerConnectionStatus; import com.azure.resourcemanager.networkcloud.models.ClusterProvisioningState; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; import com.azure.resourcemanager.networkcloud.models.ClusterType; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** Cluster represents the on-premises Network Cloud cluster. */ +/** + * Cluster represents the on-premises Network Cloud cluster. + */ @Fluent public final class ClusterInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster manager associated with the cluster. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * ClusterProperties represents the properties of a cluster. - * + * The identity for the resource. + */ + private ManagedServiceIdentity identity; + + /* * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private ClusterProperties innerProperties = new ClusterProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of ClusterInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ClusterInner class. + */ public ClusterInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster manager associated with the cluster. - * + * Get the extendedLocation property: The extended location of the cluster manager associated with the cluster. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -66,11 +88,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster manager associated with the cluster. - * + * Set the extendedLocation property: The extended location of the cluster manager associated with the cluster. + * * @param extendedLocation the extendedLocation value to set. * @return the ClusterInner object itself. */ @@ -80,10 +99,28 @@ public ClusterInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: ClusterProperties represents the properties of a cluster. - * - *

The list of the resource properties. - * + * Get the identity property: The identity for the resource. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity for the resource. + * + * @param identity the identity value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private ClusterProperties innerProperties() { @@ -92,21 +129,55 @@ private ClusterProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public ClusterInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ClusterInner withTags(Map tags) { super.withTags(tags); @@ -114,11 +185,9 @@ public ClusterInner withTags(Map tags) { } /** - * Get the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Get the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @return the aggregatorOrSingleRackDefinition value. */ public RackDefinition aggregatorOrSingleRackDefinition() { @@ -126,11 +195,9 @@ public RackDefinition aggregatorOrSingleRackDefinition() { } /** - * Set the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Set the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @param aggregatorOrSingleRackDefinition the aggregatorOrSingleRackDefinition value to set. * @return the ClusterInner object itself. */ @@ -145,7 +212,7 @@ public ClusterInner withAggregatorOrSingleRackDefinition(RackDefinition aggregat /** * Get the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for * storing relevant logs. - * + * * @return the analyticsWorkspaceId value. */ public String analyticsWorkspaceId() { @@ -155,7 +222,7 @@ public String analyticsWorkspaceId() { /** * Set the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for * storing relevant logs. - * + * * @param analyticsWorkspaceId the analyticsWorkspaceId value to set. * @return the ClusterInner object itself. */ @@ -170,7 +237,7 @@ public ClusterInner withAnalyticsWorkspaceId(String analyticsWorkspaceId) { /** * Get the availableUpgradeVersions property: The list of cluster runtime version upgrades available for this * cluster. - * + * * @return the availableUpgradeVersions value. */ public List availableUpgradeVersions() { @@ -178,10 +245,8 @@ public List availableUpgradeVersions() { } /** - * Get the clusterCapacity property: ClusterCapacity represents various details regarding compute capacity. - * - *

The capacity supported by this cluster. - * + * Get the clusterCapacity property: The capacity supported by this cluster. + * * @return the clusterCapacity value. */ public ClusterCapacity clusterCapacity() { @@ -191,7 +256,7 @@ public ClusterCapacity clusterCapacity() { /** * Get the clusterConnectionStatus property: The latest heartbeat status between the cluster manager and the * cluster. - * + * * @return the clusterConnectionStatus value. */ public ClusterConnectionStatus clusterConnectionStatus() { @@ -199,12 +264,10 @@ public ClusterConnectionStatus clusterConnectionStatus() { } /** - * Get the clusterExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location (custom location) that represents the cluster's control plane location. This extended - * location is used to route the requests of child objects of the cluster that are handled by the platform operator. - * + * Get the clusterExtendedLocation property: The extended location (custom location) that represents the cluster's + * control plane location. This extended location is used to route the requests of child objects of the cluster that + * are handled by the platform operator. + * * @return the clusterExtendedLocation value. */ public ExtendedLocation clusterExtendedLocation() { @@ -214,7 +277,7 @@ public ExtendedLocation clusterExtendedLocation() { /** * Get the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @return the clusterLocation value. */ public String clusterLocation() { @@ -224,7 +287,7 @@ public String clusterLocation() { /** * Set the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @param clusterLocation the clusterLocation value to set. * @return the ClusterInner object itself. */ @@ -239,7 +302,7 @@ public ClusterInner withClusterLocation(String clusterLocation) { /** * Get the clusterManagerConnectionStatus property: The latest connectivity status between cluster manager and the * cluster. - * + * * @return the clusterManagerConnectionStatus value. */ public ClusterManagerConnectionStatus clusterManagerConnectionStatus() { @@ -249,7 +312,7 @@ public ClusterManagerConnectionStatus clusterManagerConnectionStatus() { /** * Get the clusterManagerId property: The resource ID of the cluster manager that manages this cluster. This is set * by the Cluster Manager when the cluster is created. - * + * * @return the clusterManagerId value. */ public String clusterManagerId() { @@ -257,11 +320,9 @@ public String clusterManagerId() { } /** - * Get the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Get the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @return the clusterServicePrincipal value. */ public ServicePrincipalInformation clusterServicePrincipal() { @@ -269,11 +330,9 @@ public ServicePrincipalInformation clusterServicePrincipal() { } /** - * Set the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Set the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @param clusterServicePrincipal the clusterServicePrincipal value to set. * @return the ClusterInner object itself. */ @@ -287,7 +346,7 @@ public ClusterInner withClusterServicePrincipal(ServicePrincipalInformation clus /** * Get the clusterType property: The type of rack configuration for the cluster. - * + * * @return the clusterType value. */ public ClusterType clusterType() { @@ -296,7 +355,7 @@ public ClusterType clusterType() { /** * Set the clusterType property: The type of rack configuration for the cluster. - * + * * @param clusterType the clusterType value to set. * @return the ClusterInner object itself. */ @@ -310,7 +369,7 @@ public ClusterInner withClusterType(ClusterType clusterType) { /** * Get the clusterVersion property: The current runtime version of the cluster. - * + * * @return the clusterVersion value. */ public String clusterVersion() { @@ -319,7 +378,7 @@ public String clusterVersion() { /** * Set the clusterVersion property: The current runtime version of the cluster. - * + * * @param clusterVersion the clusterVersion value to set. * @return the ClusterInner object itself. */ @@ -332,12 +391,34 @@ public ClusterInner withClusterVersion(String clusterVersion) { } /** - * Get the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Get the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @return the commandOutputSettings value. + */ + public CommandOutputSettings commandOutputSettings() { + return this.innerProperties() == null ? null : this.innerProperties().commandOutputSettings(); + } + + /** + * Set the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @param commandOutputSettings the commandOutputSettings value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withCommandOutputSettings(CommandOutputSettings commandOutputSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withCommandOutputSettings(commandOutputSettings); + return this; + } + + /** + * Get the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @return the computeDeploymentThreshold value. */ public ValidationThreshold computeDeploymentThreshold() { @@ -345,12 +426,9 @@ public ValidationThreshold computeDeploymentThreshold() { } /** - * Set the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Set the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @param computeDeploymentThreshold the computeDeploymentThreshold value to set. * @return the ClusterInner object itself. */ @@ -365,7 +443,7 @@ public ClusterInner withComputeDeploymentThreshold(ValidationThreshold computeDe /** * Get the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @return the computeRackDefinitions value. */ public List computeRackDefinitions() { @@ -375,7 +453,7 @@ public List computeRackDefinitions() { /** * Set the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @param computeRackDefinitions the computeRackDefinitions value to set. * @return the ClusterInner object itself. */ @@ -389,7 +467,7 @@ public ClusterInner withComputeRackDefinitions(List computeRackD /** * Get the detailedStatus property: The current detailed status of the cluster. - * + * * @return the detailedStatus value. */ public ClusterDetailedStatus detailedStatus() { @@ -398,7 +476,7 @@ public ClusterDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -406,13 +484,10 @@ public String detailedStatusMessage() { } /** - * Get the hybridAksExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

Field Deprecated. This field will not be populated in an upcoming version. The extended location (custom - * location) that represents the Hybrid AKS control plane location. This extended location is used when creating - * provisioned clusters (Hybrid AKS clusters). - * + * Get the hybridAksExtendedLocation property: Field Deprecated. This field will not be populated in an upcoming + * version. The extended location (custom location) that represents the Hybrid AKS control plane location. This + * extended location is used when creating provisioned clusters (Hybrid AKS clusters). + * * @return the hybridAksExtendedLocation value. */ public ExtendedLocation hybridAksExtendedLocation() { @@ -420,11 +495,9 @@ public ExtendedLocation hybridAksExtendedLocation() { } /** - * Get the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Get the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { @@ -432,11 +505,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Set the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Set the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @param managedResourceGroupConfiguration the managedResourceGroupConfiguration value to set. * @return the ClusterInner object itself. */ @@ -451,7 +522,7 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { /** * Get the manualActionCount property: The count of Manual Action Taken (MAT) events that have not been validated. - * + * * @return the manualActionCount value. */ public Long manualActionCount() { @@ -460,7 +531,7 @@ public Long manualActionCount() { /** * Get the networkFabricId property: The resource ID of the Network Fabric associated with the cluster. - * + * * @return the networkFabricId value. */ public String networkFabricId() { @@ -469,7 +540,7 @@ public String networkFabricId() { /** * Set the networkFabricId property: The resource ID of the Network Fabric associated with the cluster. - * + * * @param networkFabricId the networkFabricId value to set. * @return the ClusterInner object itself. */ @@ -483,25 +554,97 @@ public ClusterInner withNetworkFabricId(String networkFabricId) { /** * Get the provisioningState property: The provisioning state of the cluster. - * + * * @return the provisioningState value. */ public ClusterProvisioningState provisioningState() { return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); } + /** + * Get the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @return the runtimeProtectionConfiguration value. + */ + public RuntimeProtectionConfiguration runtimeProtectionConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().runtimeProtectionConfiguration(); + } + + /** + * Set the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @param runtimeProtectionConfiguration the runtimeProtectionConfiguration value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner + withRuntimeProtectionConfiguration(RuntimeProtectionConfiguration runtimeProtectionConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withRuntimeProtectionConfiguration(runtimeProtectionConfiguration); + return this; + } + + /** + * Get the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @return the secretArchive value. + */ + public ClusterSecretArchive secretArchive() { + return this.innerProperties() == null ? null : this.innerProperties().secretArchive(); + } + + /** + * Set the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @param secretArchive the secretArchive value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withSecretArchive(ClusterSecretArchive secretArchive) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withSecretArchive(secretArchive); + return this; + } + /** * Get the supportExpiryDate property: The support end date of the runtime version of the cluster. - * + * * @return the supportExpiryDate value. */ public String supportExpiryDate() { return this.innerProperties() == null ? null : this.innerProperties().supportExpiryDate(); } + /** + * Get the updateStrategy property: The strategy for updating the cluster. + * + * @return the updateStrategy value. + */ + public ClusterUpdateStrategy updateStrategy() { + return this.innerProperties() == null ? null : this.innerProperties().updateStrategy(); + } + + /** + * Set the updateStrategy property: The strategy for updating the cluster. + * + * @param updateStrategy the updateStrategy value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterProperties(); + } + this.innerProperties().withUpdateStrategy(updateStrategy); + return this; + } + /** * Get the workloadResourceIds property: The list of workload resource IDs that are hosted within this cluster. - * + * * @return the workloadResourceIds value. */ public List workloadResourceIds() { @@ -510,23 +653,84 @@ public List workloadResourceIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property extendedLocation in model ClusterInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property extendedLocation in model ClusterInner")); } else { extendedLocation().validate(); } + if (identity() != null) { + identity().validate(); + } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model ClusterInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model ClusterInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(ClusterInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("identity", this.identity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterInner. + */ + public static ClusterInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterInner deserializedClusterInner = new ClusterInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedClusterInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedClusterInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedClusterInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedClusterInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedClusterInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedClusterInner.innerProperties = ClusterProperties.fromJson(reader); + } else if ("identity".equals(fieldName)) { + deserializedClusterInner.identity = ManagedServiceIdentity.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedClusterInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerInner.java index 834ac41d0913d..5367fbf37ed8e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerInner.java @@ -8,41 +8,83 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ClusterAvailableVersion; import com.azure.resourcemanager.networkcloud.models.ClusterManagerDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ClusterManagerProvisioningState; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import java.io.IOException; import java.util.List; import java.util.Map; -/** ClusterManager represents a control-plane to manage one or more on-premises clusters. */ +/** + * ClusterManager represents a control-plane to manage one or more on-premises clusters. + */ @Fluent public final class ClusterManagerInner extends Resource { /* - * ClusterManagerProperties represents the properties of a cluster manager. - * + * The identity of the cluster manager. + */ + private ManagedServiceIdentity identity; + + /* * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private ClusterManagerProperties innerProperties = new ClusterManagerProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of ClusterManagerInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ClusterManagerInner class. + */ public ClusterManagerInner() { } /** - * Get the innerProperties property: ClusterManagerProperties represents the properties of a cluster manager. - * - *

The list of the resource properties. - * + * Get the identity property: The identity of the cluster manager. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity of the cluster manager. + * + * @param identity the identity value to set. + * @return the ClusterManagerInner object itself. + */ + public ClusterManagerInner withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private ClusterManagerProperties innerProperties() { @@ -51,21 +93,55 @@ private ClusterManagerProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public ClusterManagerInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ClusterManagerInner withTags(Map tags) { super.withTags(tags); @@ -75,7 +151,7 @@ public ClusterManagerInner withTags(Map tags) { /** * Get the analyticsWorkspaceId property: The resource ID of the Log Analytics workspace that is used for the logs * collection. - * + * * @return the analyticsWorkspaceId value. */ public String analyticsWorkspaceId() { @@ -85,7 +161,7 @@ public String analyticsWorkspaceId() { /** * Set the analyticsWorkspaceId property: The resource ID of the Log Analytics workspace that is used for the logs * collection. - * + * * @param analyticsWorkspaceId the analyticsWorkspaceId value to set. * @return the ClusterManagerInner object itself. */ @@ -101,7 +177,7 @@ public ClusterManagerInner withAnalyticsWorkspaceId(String analyticsWorkspaceId) * Get the availabilityZones property: Field deprecated, this value will no longer influence the cluster manager * allocation process and will be removed in a future version. The Azure availability zones within the region that * will be used to support the cluster manager resource. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -112,7 +188,7 @@ public List availabilityZones() { * Set the availabilityZones property: Field deprecated, this value will no longer influence the cluster manager * allocation process and will be removed in a future version. The Azure availability zones within the region that * will be used to support the cluster manager resource. - * + * * @param availabilityZones the availabilityZones value to set. * @return the ClusterManagerInner object itself. */ @@ -127,7 +203,7 @@ public ClusterManagerInner withAvailabilityZones(List availabilityZones) /** * Get the clusterVersions property: The list of the cluster versions the manager supports. It is used as input in * clusterVersion property of a cluster resource. - * + * * @return the clusterVersions value. */ public List clusterVersions() { @@ -137,7 +213,7 @@ public List clusterVersions() { /** * Get the detailedStatus property: The detailed status that provides additional information about the cluster * manager. - * + * * @return the detailedStatus value. */ public ClusterManagerDetailedStatus detailedStatus() { @@ -146,7 +222,7 @@ public ClusterManagerDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -156,7 +232,7 @@ public String detailedStatusMessage() { /** * Get the fabricControllerId property: The resource ID of the fabric controller that has one to one mapping with * the cluster manager. - * + * * @return the fabricControllerId value. */ public String fabricControllerId() { @@ -166,7 +242,7 @@ public String fabricControllerId() { /** * Set the fabricControllerId property: The resource ID of the fabric controller that has one to one mapping with * the cluster manager. - * + * * @param fabricControllerId the fabricControllerId value to set. * @return the ClusterManagerInner object itself. */ @@ -179,11 +255,9 @@ public ClusterManagerInner withFabricControllerId(String fabricControllerId) { } /** - * Get the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Get the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { @@ -191,11 +265,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Set the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Set the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @param managedResourceGroupConfiguration the managedResourceGroupConfiguration value to set. * @return the ClusterManagerInner object itself. */ @@ -209,12 +281,10 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Get the managerExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location (custom location) that represents the cluster manager's control plane location. This - * extended location is used when creating cluster and rack manifest resources. - * + * Get the managerExtendedLocation property: The extended location (custom location) that represents the cluster + * manager's control plane location. This extended location is used when creating cluster and rack manifest + * resources. + * * @return the managerExtendedLocation value. */ public ExtendedLocation managerExtendedLocation() { @@ -223,7 +293,7 @@ public ExtendedLocation managerExtendedLocation() { /** * Get the provisioningState property: The provisioning state of the cluster manager. - * + * * @return the provisioningState value. */ public ClusterManagerProvisioningState provisioningState() { @@ -234,7 +304,7 @@ public ClusterManagerProvisioningState provisioningState() { * Get the vmSize property: Field deprecated, this value will no longer influence the cluster manager allocation * process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the * cluster manager resource. - * + * * @return the vmSize value. */ public String vmSize() { @@ -245,7 +315,7 @@ public String vmSize() { * Set the vmSize property: Field deprecated, this value will no longer influence the cluster manager allocation * process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the * cluster manager resource. - * + * * @param vmSize the vmSize value to set. * @return the ClusterManagerInner object itself. */ @@ -259,17 +329,76 @@ public ClusterManagerInner withVmSize(String vmSize) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (identity() != null) { + identity().validate(); + } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model ClusterManagerInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model ClusterManagerInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(ClusterManagerInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeJsonField("identity", this.identity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterManagerInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterManagerInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterManagerInner. + */ + public static ClusterManagerInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterManagerInner deserializedClusterManagerInner = new ClusterManagerInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedClusterManagerInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedClusterManagerInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedClusterManagerInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedClusterManagerInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterManagerInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedClusterManagerInner.innerProperties = ClusterManagerProperties.fromJson(reader); + } else if ("identity".equals(fieldName)) { + deserializedClusterManagerInner.identity = ManagedServiceIdentity.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedClusterManagerInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterManagerInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerProperties.java index 7fa165e81eebd..0313cbbdf6037 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterManagerProperties.java @@ -6,21 +6,26 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ClusterAvailableVersion; import com.azure.resourcemanager.networkcloud.models.ClusterManagerDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ClusterManagerProvisioningState; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ClusterManagerProperties represents the properties of a cluster manager. */ +/** + * ClusterManagerProperties represents the properties of a cluster manager. + */ @Fluent -public final class ClusterManagerProperties { +public final class ClusterManagerProperties implements JsonSerializable { /* * The resource ID of the Log Analytics workspace that is used for the logs collection. */ - @JsonProperty(value = "analyticsWorkspaceId") private String analyticsWorkspaceId; /* @@ -28,72 +33,61 @@ public final class ClusterManagerProperties { * in a future version. The Azure availability zones within the region that will be used to support the cluster * manager resource. */ - @JsonProperty(value = "availabilityZones") private List availabilityZones; /* * The list of the cluster versions the manager supports. It is used as input in clusterVersion property of a * cluster resource. */ - @JsonProperty(value = "clusterVersions", access = JsonProperty.Access.WRITE_ONLY) private List clusterVersions; /* * The detailed status that provides additional information about the cluster manager. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private ClusterManagerDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The resource ID of the fabric controller that has one to one mapping with the cluster manager. */ - @JsonProperty(value = "fabricControllerId", required = true) private String fabricControllerId; /* - * ManagedResourceGroupConfiguration represents the configuration of the resource group managed by Azure. - * * The configuration of the managed resource group associated with the resource. */ - @JsonProperty(value = "managedResourceGroupConfiguration") private ManagedResourceGroupConfiguration managedResourceGroupConfiguration; /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location (custom location) that represents the cluster manager's control plane location. This * extended location is used when creating cluster and rack manifest resources. */ - @JsonProperty(value = "managerExtendedLocation", access = JsonProperty.Access.WRITE_ONLY) private ExtendedLocation managerExtendedLocation; /* * The provisioning state of the cluster manager. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ClusterManagerProvisioningState provisioningState; /* * Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed * in a future version. The size of the Azure virtual machines to use for hosting the cluster manager resource. */ - @JsonProperty(value = "vmSize") private String vmSize; - /** Creates an instance of ClusterManagerProperties class. */ + /** + * Creates an instance of ClusterManagerProperties class. + */ public ClusterManagerProperties() { } /** * Get the analyticsWorkspaceId property: The resource ID of the Log Analytics workspace that is used for the logs * collection. - * + * * @return the analyticsWorkspaceId value. */ public String analyticsWorkspaceId() { @@ -103,7 +97,7 @@ public String analyticsWorkspaceId() { /** * Set the analyticsWorkspaceId property: The resource ID of the Log Analytics workspace that is used for the logs * collection. - * + * * @param analyticsWorkspaceId the analyticsWorkspaceId value to set. * @return the ClusterManagerProperties object itself. */ @@ -116,7 +110,7 @@ public ClusterManagerProperties withAnalyticsWorkspaceId(String analyticsWorkspa * Get the availabilityZones property: Field deprecated, this value will no longer influence the cluster manager * allocation process and will be removed in a future version. The Azure availability zones within the region that * will be used to support the cluster manager resource. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -127,7 +121,7 @@ public List availabilityZones() { * Set the availabilityZones property: Field deprecated, this value will no longer influence the cluster manager * allocation process and will be removed in a future version. The Azure availability zones within the region that * will be used to support the cluster manager resource. - * + * * @param availabilityZones the availabilityZones value to set. * @return the ClusterManagerProperties object itself. */ @@ -139,7 +133,7 @@ public ClusterManagerProperties withAvailabilityZones(List availabilityZ /** * Get the clusterVersions property: The list of the cluster versions the manager supports. It is used as input in * clusterVersion property of a cluster resource. - * + * * @return the clusterVersions value. */ public List clusterVersions() { @@ -149,7 +143,7 @@ public List clusterVersions() { /** * Get the detailedStatus property: The detailed status that provides additional information about the cluster * manager. - * + * * @return the detailedStatus value. */ public ClusterManagerDetailedStatus detailedStatus() { @@ -158,7 +152,7 @@ public ClusterManagerDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -168,7 +162,7 @@ public String detailedStatusMessage() { /** * Get the fabricControllerId property: The resource ID of the fabric controller that has one to one mapping with * the cluster manager. - * + * * @return the fabricControllerId value. */ public String fabricControllerId() { @@ -178,7 +172,7 @@ public String fabricControllerId() { /** * Set the fabricControllerId property: The resource ID of the fabric controller that has one to one mapping with * the cluster manager. - * + * * @param fabricControllerId the fabricControllerId value to set. * @return the ClusterManagerProperties object itself. */ @@ -188,11 +182,9 @@ public ClusterManagerProperties withFabricControllerId(String fabricControllerId } /** - * Get the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Get the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { @@ -200,11 +192,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Set the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Set the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @param managedResourceGroupConfiguration the managedResourceGroupConfiguration value to set. * @return the ClusterManagerProperties object itself. */ @@ -215,12 +205,10 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Get the managerExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location (custom location) that represents the cluster manager's control plane location. This - * extended location is used when creating cluster and rack manifest resources. - * + * Get the managerExtendedLocation property: The extended location (custom location) that represents the cluster + * manager's control plane location. This extended location is used when creating cluster and rack manifest + * resources. + * * @return the managerExtendedLocation value. */ public ExtendedLocation managerExtendedLocation() { @@ -229,7 +217,7 @@ public ExtendedLocation managerExtendedLocation() { /** * Get the provisioningState property: The provisioning state of the cluster manager. - * + * * @return the provisioningState value. */ public ClusterManagerProvisioningState provisioningState() { @@ -240,7 +228,7 @@ public ClusterManagerProvisioningState provisioningState() { * Get the vmSize property: Field deprecated, this value will no longer influence the cluster manager allocation * process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the * cluster manager resource. - * + * * @return the vmSize value. */ public String vmSize() { @@ -251,7 +239,7 @@ public String vmSize() { * Set the vmSize property: Field deprecated, this value will no longer influence the cluster manager allocation * process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the * cluster manager resource. - * + * * @param vmSize the vmSize value to set. * @return the ClusterManagerProperties object itself. */ @@ -262,7 +250,7 @@ public ClusterManagerProperties withVmSize(String vmSize) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -270,8 +258,9 @@ public void validate() { clusterVersions().forEach(e -> e.validate()); } if (fabricControllerId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property fabricControllerId in model ClusterManagerProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property fabricControllerId in model ClusterManagerProperties")); } if (managedResourceGroupConfiguration() != null) { managedResourceGroupConfiguration().validate(); @@ -282,4 +271,70 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(ClusterManagerProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("fabricControllerId", this.fabricControllerId); + jsonWriter.writeStringField("analyticsWorkspaceId", this.analyticsWorkspaceId); + jsonWriter.writeArrayField("availabilityZones", this.availabilityZones, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("managedResourceGroupConfiguration", this.managedResourceGroupConfiguration); + jsonWriter.writeStringField("vmSize", this.vmSize); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterManagerProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterManagerProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterManagerProperties. + */ + public static ClusterManagerProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterManagerProperties deserializedClusterManagerProperties = new ClusterManagerProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("fabricControllerId".equals(fieldName)) { + deserializedClusterManagerProperties.fabricControllerId = reader.getString(); + } else if ("analyticsWorkspaceId".equals(fieldName)) { + deserializedClusterManagerProperties.analyticsWorkspaceId = reader.getString(); + } else if ("availabilityZones".equals(fieldName)) { + List availabilityZones = reader.readArray(reader1 -> reader1.getString()); + deserializedClusterManagerProperties.availabilityZones = availabilityZones; + } else if ("clusterVersions".equals(fieldName)) { + List clusterVersions + = reader.readArray(reader1 -> ClusterAvailableVersion.fromJson(reader1)); + deserializedClusterManagerProperties.clusterVersions = clusterVersions; + } else if ("detailedStatus".equals(fieldName)) { + deserializedClusterManagerProperties.detailedStatus + = ClusterManagerDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedClusterManagerProperties.detailedStatusMessage = reader.getString(); + } else if ("managedResourceGroupConfiguration".equals(fieldName)) { + deserializedClusterManagerProperties.managedResourceGroupConfiguration + = ManagedResourceGroupConfiguration.fromJson(reader); + } else if ("managerExtendedLocation".equals(fieldName)) { + deserializedClusterManagerProperties.managerExtendedLocation = ExtendedLocation.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedClusterManagerProperties.provisioningState + = ClusterManagerProvisioningState.fromString(reader.getString()); + } else if ("vmSize".equals(fieldName)) { + deserializedClusterManagerProperties.vmSize = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterManagerProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationInner.java index 3f6702e7c8d2d..a718b36814813 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationInner.java @@ -8,48 +8,60 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationProvisioningState; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** ClusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster. */ +/** + * ClusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster. + */ @Fluent public final class ClusterMetricsConfigurationInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * ClusterMetricsConfigurationProperties represents the properties of metrics configuration for the cluster. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private ClusterMetricsConfigurationProperties innerProperties = new ClusterMetricsConfigurationProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of ClusterMetricsConfigurationInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ClusterMetricsConfigurationInner class. + */ public ClusterMetricsConfigurationInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -57,11 +69,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the ClusterMetricsConfigurationInner object itself. */ @@ -71,11 +80,8 @@ public ClusterMetricsConfigurationInner withExtendedLocation(ExtendedLocation ex } /** - * Get the innerProperties property: ClusterMetricsConfigurationProperties represents the properties of metrics - * configuration for the cluster. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private ClusterMetricsConfigurationProperties innerProperties() { @@ -84,21 +90,55 @@ private ClusterMetricsConfigurationProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public ClusterMetricsConfigurationInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ClusterMetricsConfigurationInner withTags(Map tags) { super.withTags(tags); @@ -107,7 +147,7 @@ public ClusterMetricsConfigurationInner withTags(Map tags) { /** * Get the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @return the collectionInterval value. */ public long collectionInterval() { @@ -116,7 +156,7 @@ public long collectionInterval() { /** * Set the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @param collectionInterval the collectionInterval value to set. * @return the ClusterMetricsConfigurationInner object itself. */ @@ -130,7 +170,7 @@ public ClusterMetricsConfigurationInner withCollectionInterval(long collectionIn /** * Get the detailedStatus property: The more detailed status of the metrics configuration. - * + * * @return the detailedStatus value. */ public ClusterMetricsConfigurationDetailedStatus detailedStatus() { @@ -139,7 +179,7 @@ public ClusterMetricsConfigurationDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -149,7 +189,7 @@ public String detailedStatusMessage() { /** * Get the disabledMetrics property: The list of metrics that are available for the cluster but disabled at the * moment. - * + * * @return the disabledMetrics value. */ public List disabledMetrics() { @@ -159,7 +199,7 @@ public List disabledMetrics() { /** * Get the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @return the enabledMetrics value. */ public List enabledMetrics() { @@ -169,7 +209,7 @@ public List enabledMetrics() { /** * Set the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @param enabledMetrics the enabledMetrics value to set. * @return the ClusterMetricsConfigurationInner object itself. */ @@ -183,7 +223,7 @@ public ClusterMetricsConfigurationInner withEnabledMetrics(List enabledM /** * Get the provisioningState property: The provisioning state of the metrics configuration. - * + * * @return the provisioningState value. */ public ClusterMetricsConfigurationProvisioningState provisioningState() { @@ -192,23 +232,82 @@ public ClusterMetricsConfigurationProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model ClusterMetricsConfigurationInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model ClusterMetricsConfigurationInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model ClusterMetricsConfigurationInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model ClusterMetricsConfigurationInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(ClusterMetricsConfigurationInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterMetricsConfigurationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterMetricsConfigurationInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterMetricsConfigurationInner. + */ + public static ClusterMetricsConfigurationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterMetricsConfigurationInner deserializedClusterMetricsConfigurationInner + = new ClusterMetricsConfigurationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedClusterMetricsConfigurationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedClusterMetricsConfigurationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedClusterMetricsConfigurationInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedClusterMetricsConfigurationInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterMetricsConfigurationInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedClusterMetricsConfigurationInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedClusterMetricsConfigurationInner.innerProperties + = ClusterMetricsConfigurationProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedClusterMetricsConfigurationInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterMetricsConfigurationInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationPatchProperties.java index 1c976e2ae0bc1..c689e834a672a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationPatchProperties.java @@ -5,7 +5,11 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -13,26 +17,27 @@ * patching. */ @Fluent -public final class ClusterMetricsConfigurationPatchProperties { +public final class ClusterMetricsConfigurationPatchProperties + implements JsonSerializable { /* * The interval in minutes by which metrics will be collected. */ - @JsonProperty(value = "collectionInterval") private Long collectionInterval; /* * The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics. */ - @JsonProperty(value = "enabledMetrics") private List enabledMetrics; - /** Creates an instance of ClusterMetricsConfigurationPatchProperties class. */ + /** + * Creates an instance of ClusterMetricsConfigurationPatchProperties class. + */ public ClusterMetricsConfigurationPatchProperties() { } /** * Get the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @return the collectionInterval value. */ public Long collectionInterval() { @@ -41,7 +46,7 @@ public Long collectionInterval() { /** * Set the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @param collectionInterval the collectionInterval value to set. * @return the ClusterMetricsConfigurationPatchProperties object itself. */ @@ -53,7 +58,7 @@ public ClusterMetricsConfigurationPatchProperties withCollectionInterval(Long co /** * Get the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @return the enabledMetrics value. */ public List enabledMetrics() { @@ -63,7 +68,7 @@ public List enabledMetrics() { /** * Set the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @param enabledMetrics the enabledMetrics value to set. * @return the ClusterMetricsConfigurationPatchProperties object itself. */ @@ -74,9 +79,52 @@ public ClusterMetricsConfigurationPatchProperties withEnabledMetrics(List writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterMetricsConfigurationPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterMetricsConfigurationPatchProperties if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterMetricsConfigurationPatchProperties. + */ + public static ClusterMetricsConfigurationPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterMetricsConfigurationPatchProperties deserializedClusterMetricsConfigurationPatchProperties + = new ClusterMetricsConfigurationPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("collectionInterval".equals(fieldName)) { + deserializedClusterMetricsConfigurationPatchProperties.collectionInterval + = reader.getNullable(JsonReader::getLong); + } else if ("enabledMetrics".equals(fieldName)) { + List enabledMetrics = reader.readArray(reader1 -> reader1.getString()); + deserializedClusterMetricsConfigurationPatchProperties.enabledMetrics = enabledMetrics; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterMetricsConfigurationPatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationProperties.java index f818eb325dce0..5715b9ad2c151 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterMetricsConfigurationProperties.java @@ -5,57 +5,60 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ClusterMetricsConfigurationProperties represents the properties of metrics configuration for the cluster. */ +/** + * ClusterMetricsConfigurationProperties represents the properties of metrics configuration for the cluster. + */ @Fluent -public final class ClusterMetricsConfigurationProperties { +public final class ClusterMetricsConfigurationProperties + implements JsonSerializable { /* * The interval in minutes by which metrics will be collected. */ - @JsonProperty(value = "collectionInterval", required = true) private long collectionInterval; /* * The more detailed status of the metrics configuration. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private ClusterMetricsConfigurationDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The list of metrics that are available for the cluster but disabled at the moment. */ - @JsonProperty(value = "disabledMetrics", access = JsonProperty.Access.WRITE_ONLY) private List disabledMetrics; /* * The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics. */ - @JsonProperty(value = "enabledMetrics") private List enabledMetrics; /* * The provisioning state of the metrics configuration. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ClusterMetricsConfigurationProvisioningState provisioningState; - /** Creates an instance of ClusterMetricsConfigurationProperties class. */ + /** + * Creates an instance of ClusterMetricsConfigurationProperties class. + */ public ClusterMetricsConfigurationProperties() { } /** * Get the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @return the collectionInterval value. */ public long collectionInterval() { @@ -64,7 +67,7 @@ public long collectionInterval() { /** * Set the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @param collectionInterval the collectionInterval value to set. * @return the ClusterMetricsConfigurationProperties object itself. */ @@ -75,7 +78,7 @@ public ClusterMetricsConfigurationProperties withCollectionInterval(long collect /** * Get the detailedStatus property: The more detailed status of the metrics configuration. - * + * * @return the detailedStatus value. */ public ClusterMetricsConfigurationDetailedStatus detailedStatus() { @@ -84,7 +87,7 @@ public ClusterMetricsConfigurationDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -94,7 +97,7 @@ public String detailedStatusMessage() { /** * Get the disabledMetrics property: The list of metrics that are available for the cluster but disabled at the * moment. - * + * * @return the disabledMetrics value. */ public List disabledMetrics() { @@ -104,7 +107,7 @@ public List disabledMetrics() { /** * Get the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @return the enabledMetrics value. */ public List enabledMetrics() { @@ -114,7 +117,7 @@ public List enabledMetrics() { /** * Set the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @param enabledMetrics the enabledMetrics value to set. * @return the ClusterMetricsConfigurationProperties object itself. */ @@ -125,7 +128,7 @@ public ClusterMetricsConfigurationProperties withEnabledMetrics(List ena /** * Get the provisioningState property: The provisioning state of the metrics configuration. - * + * * @return the provisioningState value. */ public ClusterMetricsConfigurationProvisioningState provisioningState() { @@ -134,9 +137,63 @@ public ClusterMetricsConfigurationProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("collectionInterval", this.collectionInterval); + jsonWriter.writeArrayField("enabledMetrics", this.enabledMetrics, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterMetricsConfigurationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterMetricsConfigurationProperties if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterMetricsConfigurationProperties. + */ + public static ClusterMetricsConfigurationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterMetricsConfigurationProperties deserializedClusterMetricsConfigurationProperties + = new ClusterMetricsConfigurationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("collectionInterval".equals(fieldName)) { + deserializedClusterMetricsConfigurationProperties.collectionInterval = reader.getLong(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedClusterMetricsConfigurationProperties.detailedStatus + = ClusterMetricsConfigurationDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedClusterMetricsConfigurationProperties.detailedStatusMessage = reader.getString(); + } else if ("disabledMetrics".equals(fieldName)) { + List disabledMetrics = reader.readArray(reader1 -> reader1.getString()); + deserializedClusterMetricsConfigurationProperties.disabledMetrics = disabledMetrics; + } else if ("enabledMetrics".equals(fieldName)) { + List enabledMetrics = reader.readArray(reader1 -> reader1.getString()); + deserializedClusterMetricsConfigurationProperties.enabledMetrics = enabledMetrics; + } else if ("provisioningState".equals(fieldName)) { + deserializedClusterMetricsConfigurationProperties.provisioningState + = ClusterMetricsConfigurationProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterMetricsConfigurationProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java index e66da7904ef87..1137581d05072 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterPatchProperties.java @@ -5,65 +5,84 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ClusterPatchProperties represents the properties of the cluster for patching. */ +/** + * ClusterPatchProperties represents the properties of the cluster for patching. + */ @Fluent -public final class ClusterPatchProperties { +public final class ClusterPatchProperties implements JsonSerializable { /* - * RackDefinition represents details regarding the rack. - * * The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator * rack in a multi-rack cluster. */ - @JsonProperty(value = "aggregatorOrSingleRackDefinition") private RackDefinition aggregatorOrSingleRackDefinition; /* * The customer-provided location information to identify where the cluster resides. */ - @JsonProperty(value = "clusterLocation") private String clusterLocation; /* - * ServicePrincipalInformation represents the details of the service principal to be used by the cluster during Arc - * Appliance installation. - * * The service principal to be used by the cluster during Arc Appliance installation. */ - @JsonProperty(value = "clusterServicePrincipal") private ServicePrincipalInformation clusterServicePrincipal; /* - * ValidationThreshold indicates allowed machine and node hardware and deployment failures. - * + * The settings for commands run in this cluster, such as bare metal machine run read only commands and data + * extracts. + */ + private CommandOutputSettings commandOutputSettings; + + /* * The validation threshold indicating the allowable failures of compute machines during environment validation and * deployment. */ - @JsonProperty(value = "computeDeploymentThreshold") private ValidationThreshold computeDeploymentThreshold; /* * The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. */ - @JsonProperty(value = "computeRackDefinitions") private List computeRackDefinitions; - /** Creates an instance of ClusterPatchProperties class. */ + /* + * The settings for cluster runtime protection. + */ + private RuntimeProtectionConfiguration runtimeProtectionConfiguration; + + /* + * The configuration for use of a key vault to store secrets for later retrieval by the operator. + */ + private ClusterSecretArchive secretArchive; + + /* + * The strategy for updating the cluster. + */ + private ClusterUpdateStrategy updateStrategy; + + /** + * Creates an instance of ClusterPatchProperties class. + */ public ClusterPatchProperties() { } /** - * Get the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Get the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @return the aggregatorOrSingleRackDefinition value. */ public RackDefinition aggregatorOrSingleRackDefinition() { @@ -71,11 +90,9 @@ public RackDefinition aggregatorOrSingleRackDefinition() { } /** - * Set the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Set the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @param aggregatorOrSingleRackDefinition the aggregatorOrSingleRackDefinition value to set. * @return the ClusterPatchProperties object itself. */ @@ -88,7 +105,7 @@ public RackDefinition aggregatorOrSingleRackDefinition() { /** * Get the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @return the clusterLocation value. */ public String clusterLocation() { @@ -98,7 +115,7 @@ public String clusterLocation() { /** * Set the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @param clusterLocation the clusterLocation value to set. * @return the ClusterPatchProperties object itself. */ @@ -108,11 +125,9 @@ public ClusterPatchProperties withClusterLocation(String clusterLocation) { } /** - * Get the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Get the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @return the clusterServicePrincipal value. */ public ServicePrincipalInformation clusterServicePrincipal() { @@ -120,11 +135,9 @@ public ServicePrincipalInformation clusterServicePrincipal() { } /** - * Set the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Set the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @param clusterServicePrincipal the clusterServicePrincipal value to set. * @return the ClusterPatchProperties object itself. */ @@ -134,12 +147,31 @@ public ClusterPatchProperties withClusterServicePrincipal(ServicePrincipalInform } /** - * Get the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Get the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @return the commandOutputSettings value. + */ + public CommandOutputSettings commandOutputSettings() { + return this.commandOutputSettings; + } + + /** + * Set the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @param commandOutputSettings the commandOutputSettings value to set. + * @return the ClusterPatchProperties object itself. + */ + public ClusterPatchProperties withCommandOutputSettings(CommandOutputSettings commandOutputSettings) { + this.commandOutputSettings = commandOutputSettings; + return this; + } + + /** + * Get the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @return the computeDeploymentThreshold value. */ public ValidationThreshold computeDeploymentThreshold() { @@ -147,12 +179,9 @@ public ValidationThreshold computeDeploymentThreshold() { } /** - * Set the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Set the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @param computeDeploymentThreshold the computeDeploymentThreshold value to set. * @return the ClusterPatchProperties object itself. */ @@ -164,7 +193,7 @@ public ClusterPatchProperties withComputeDeploymentThreshold(ValidationThreshold /** * Get the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @return the computeRackDefinitions value. */ public List computeRackDefinitions() { @@ -174,7 +203,7 @@ public List computeRackDefinitions() { /** * Set the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @param computeRackDefinitions the computeRackDefinitions value to set. * @return the ClusterPatchProperties object itself. */ @@ -183,9 +212,72 @@ public ClusterPatchProperties withComputeRackDefinitions(List co return this; } + /** + * Get the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @return the runtimeProtectionConfiguration value. + */ + public RuntimeProtectionConfiguration runtimeProtectionConfiguration() { + return this.runtimeProtectionConfiguration; + } + + /** + * Set the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @param runtimeProtectionConfiguration the runtimeProtectionConfiguration value to set. + * @return the ClusterPatchProperties object itself. + */ + public ClusterPatchProperties + withRuntimeProtectionConfiguration(RuntimeProtectionConfiguration runtimeProtectionConfiguration) { + this.runtimeProtectionConfiguration = runtimeProtectionConfiguration; + return this; + } + + /** + * Get the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @return the secretArchive value. + */ + public ClusterSecretArchive secretArchive() { + return this.secretArchive; + } + + /** + * Set the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @param secretArchive the secretArchive value to set. + * @return the ClusterPatchProperties object itself. + */ + public ClusterPatchProperties withSecretArchive(ClusterSecretArchive secretArchive) { + this.secretArchive = secretArchive; + return this; + } + + /** + * Get the updateStrategy property: The strategy for updating the cluster. + * + * @return the updateStrategy value. + */ + public ClusterUpdateStrategy updateStrategy() { + return this.updateStrategy; + } + + /** + * Set the updateStrategy property: The strategy for updating the cluster. + * + * @param updateStrategy the updateStrategy value to set. + * @return the ClusterPatchProperties object itself. + */ + public ClusterPatchProperties withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; + return this; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -195,11 +287,90 @@ public void validate() { if (clusterServicePrincipal() != null) { clusterServicePrincipal().validate(); } + if (commandOutputSettings() != null) { + commandOutputSettings().validate(); + } if (computeDeploymentThreshold() != null) { computeDeploymentThreshold().validate(); } if (computeRackDefinitions() != null) { computeRackDefinitions().forEach(e -> e.validate()); } + if (runtimeProtectionConfiguration() != null) { + runtimeProtectionConfiguration().validate(); + } + if (secretArchive() != null) { + secretArchive().validate(); + } + if (updateStrategy() != null) { + updateStrategy().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("aggregatorOrSingleRackDefinition", this.aggregatorOrSingleRackDefinition); + jsonWriter.writeStringField("clusterLocation", this.clusterLocation); + jsonWriter.writeJsonField("clusterServicePrincipal", this.clusterServicePrincipal); + jsonWriter.writeJsonField("commandOutputSettings", this.commandOutputSettings); + jsonWriter.writeJsonField("computeDeploymentThreshold", this.computeDeploymentThreshold); + jsonWriter.writeArrayField("computeRackDefinitions", this.computeRackDefinitions, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("runtimeProtectionConfiguration", this.runtimeProtectionConfiguration); + jsonWriter.writeJsonField("secretArchive", this.secretArchive); + jsonWriter.writeJsonField("updateStrategy", this.updateStrategy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterPatchProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterPatchProperties. + */ + public static ClusterPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterPatchProperties deserializedClusterPatchProperties = new ClusterPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("aggregatorOrSingleRackDefinition".equals(fieldName)) { + deserializedClusterPatchProperties.aggregatorOrSingleRackDefinition + = RackDefinition.fromJson(reader); + } else if ("clusterLocation".equals(fieldName)) { + deserializedClusterPatchProperties.clusterLocation = reader.getString(); + } else if ("clusterServicePrincipal".equals(fieldName)) { + deserializedClusterPatchProperties.clusterServicePrincipal + = ServicePrincipalInformation.fromJson(reader); + } else if ("commandOutputSettings".equals(fieldName)) { + deserializedClusterPatchProperties.commandOutputSettings = CommandOutputSettings.fromJson(reader); + } else if ("computeDeploymentThreshold".equals(fieldName)) { + deserializedClusterPatchProperties.computeDeploymentThreshold + = ValidationThreshold.fromJson(reader); + } else if ("computeRackDefinitions".equals(fieldName)) { + List computeRackDefinitions + = reader.readArray(reader1 -> RackDefinition.fromJson(reader1)); + deserializedClusterPatchProperties.computeRackDefinitions = computeRackDefinitions; + } else if ("runtimeProtectionConfiguration".equals(fieldName)) { + deserializedClusterPatchProperties.runtimeProtectionConfiguration + = RuntimeProtectionConfiguration.fromJson(reader); + } else if ("secretArchive".equals(fieldName)) { + deserializedClusterPatchProperties.secretArchive = ClusterSecretArchive.fromJson(reader); + } else if ("updateStrategy".equals(fieldName)) { + deserializedClusterPatchProperties.updateStrategy = ClusterUpdateStrategy.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterPatchProperties; + }); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java index 819c15cf8cd26..c3402ea13f408 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ClusterProperties.java @@ -6,195 +6,187 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion; import com.azure.resourcemanager.networkcloud.models.ClusterCapacity; import com.azure.resourcemanager.networkcloud.models.ClusterConnectionStatus; import com.azure.resourcemanager.networkcloud.models.ClusterDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ClusterManagerConnectionStatus; import com.azure.resourcemanager.networkcloud.models.ClusterProvisioningState; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; import com.azure.resourcemanager.networkcloud.models.ClusterType; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ClusterProperties represents the properties of a cluster. */ +/** + * ClusterProperties represents the properties of a cluster. + */ @Fluent -public final class ClusterProperties { +public final class ClusterProperties implements JsonSerializable { /* - * RackDefinition represents details regarding the rack. - * * The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator * rack in a multi-rack cluster. */ - @JsonProperty(value = "aggregatorOrSingleRackDefinition", required = true) private RackDefinition aggregatorOrSingleRackDefinition; /* * The resource ID of the Log Analytics Workspace that will be used for storing relevant logs. */ - @JsonProperty(value = "analyticsWorkspaceId") private String analyticsWorkspaceId; /* * The list of cluster runtime version upgrades available for this cluster. */ - @JsonProperty(value = "availableUpgradeVersions", access = JsonProperty.Access.WRITE_ONLY) private List availableUpgradeVersions; /* - * ClusterCapacity represents various details regarding compute capacity. - * * The capacity supported by this cluster. */ - @JsonProperty(value = "clusterCapacity", access = JsonProperty.Access.WRITE_ONLY) private ClusterCapacity clusterCapacity; /* * The latest heartbeat status between the cluster manager and the cluster. */ - @JsonProperty(value = "clusterConnectionStatus", access = JsonProperty.Access.WRITE_ONLY) private ClusterConnectionStatus clusterConnectionStatus; /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location (custom location) that represents the cluster's control plane location. This extended - * location is used to route the requests of child objects of the cluster that are handled by the platform - * operator. + * location is used to route the requests of child objects of the cluster that are handled by the platform operator. */ - @JsonProperty(value = "clusterExtendedLocation", access = JsonProperty.Access.WRITE_ONLY) private ExtendedLocation clusterExtendedLocation; /* * The customer-provided location information to identify where the cluster resides. */ - @JsonProperty(value = "clusterLocation") private String clusterLocation; /* * The latest connectivity status between cluster manager and the cluster. */ - @JsonProperty(value = "clusterManagerConnectionStatus", access = JsonProperty.Access.WRITE_ONLY) private ClusterManagerConnectionStatus clusterManagerConnectionStatus; /* * The resource ID of the cluster manager that manages this cluster. This is set by the Cluster Manager when the * cluster is created. */ - @JsonProperty(value = "clusterManagerId", access = JsonProperty.Access.WRITE_ONLY) private String clusterManagerId; /* - * ServicePrincipalInformation represents the details of the service principal to be used by the cluster during Arc - * Appliance installation. - * * The service principal to be used by the cluster during Arc Appliance installation. */ - @JsonProperty(value = "clusterServicePrincipal") private ServicePrincipalInformation clusterServicePrincipal; /* * The type of rack configuration for the cluster. */ - @JsonProperty(value = "clusterType", required = true) private ClusterType clusterType; /* * The current runtime version of the cluster. */ - @JsonProperty(value = "clusterVersion", required = true) private String clusterVersion; /* - * ValidationThreshold indicates allowed machine and node hardware and deployment failures. - * + * The settings for commands run in this cluster, such as bare metal machine run read only commands and data + * extracts. + */ + private CommandOutputSettings commandOutputSettings; + + /* * The validation threshold indicating the allowable failures of compute machines during environment validation and * deployment. */ - @JsonProperty(value = "computeDeploymentThreshold") private ValidationThreshold computeDeploymentThreshold; /* * The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. */ - @JsonProperty(value = "computeRackDefinitions") private List computeRackDefinitions; /* * The current detailed status of the cluster. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private ClusterDetailedStatus detailedStatus; /* * The descriptive message about the detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * Field Deprecated. This field will not be populated in an upcoming version. The extended location (custom * location) that represents the Hybrid AKS control plane location. This extended location is used when creating * provisioned clusters (Hybrid AKS clusters). */ - @JsonProperty(value = "hybridAksExtendedLocation", access = JsonProperty.Access.WRITE_ONLY) private ExtendedLocation hybridAksExtendedLocation; /* - * ManagedResourceGroupConfiguration represents the configuration of the resource group managed by Azure. - * * The configuration of the managed resource group associated with the resource. */ - @JsonProperty(value = "managedResourceGroupConfiguration") private ManagedResourceGroupConfiguration managedResourceGroupConfiguration; /* * The count of Manual Action Taken (MAT) events that have not been validated. */ - @JsonProperty(value = "manualActionCount", access = JsonProperty.Access.WRITE_ONLY) private Long manualActionCount; /* * The resource ID of the Network Fabric associated with the cluster. */ - @JsonProperty(value = "networkFabricId", required = true) private String networkFabricId; /* * The provisioning state of the cluster. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ClusterProvisioningState provisioningState; + /* + * The settings for cluster runtime protection. + */ + private RuntimeProtectionConfiguration runtimeProtectionConfiguration; + + /* + * The configuration for use of a key vault to store secrets for later retrieval by the operator. + */ + private ClusterSecretArchive secretArchive; + /* * The support end date of the runtime version of the cluster. */ - @JsonProperty(value = "supportExpiryDate", access = JsonProperty.Access.WRITE_ONLY) private String supportExpiryDate; + /* + * The strategy for updating the cluster. + */ + private ClusterUpdateStrategy updateStrategy; + /* * The list of workload resource IDs that are hosted within this cluster. */ - @JsonProperty(value = "workloadResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List workloadResourceIds; - /** Creates an instance of ClusterProperties class. */ + /** + * Creates an instance of ClusterProperties class. + */ public ClusterProperties() { } /** - * Get the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Get the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @return the aggregatorOrSingleRackDefinition value. */ public RackDefinition aggregatorOrSingleRackDefinition() { @@ -202,11 +194,9 @@ public RackDefinition aggregatorOrSingleRackDefinition() { } /** - * Set the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Set the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @param aggregatorOrSingleRackDefinition the aggregatorOrSingleRackDefinition value to set. * @return the ClusterProperties object itself. */ @@ -218,7 +208,7 @@ public ClusterProperties withAggregatorOrSingleRackDefinition(RackDefinition agg /** * Get the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for * storing relevant logs. - * + * * @return the analyticsWorkspaceId value. */ public String analyticsWorkspaceId() { @@ -228,7 +218,7 @@ public String analyticsWorkspaceId() { /** * Set the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for * storing relevant logs. - * + * * @param analyticsWorkspaceId the analyticsWorkspaceId value to set. * @return the ClusterProperties object itself. */ @@ -240,7 +230,7 @@ public ClusterProperties withAnalyticsWorkspaceId(String analyticsWorkspaceId) { /** * Get the availableUpgradeVersions property: The list of cluster runtime version upgrades available for this * cluster. - * + * * @return the availableUpgradeVersions value. */ public List availableUpgradeVersions() { @@ -248,10 +238,8 @@ public List availableUpgradeVersions() { } /** - * Get the clusterCapacity property: ClusterCapacity represents various details regarding compute capacity. - * - *

The capacity supported by this cluster. - * + * Get the clusterCapacity property: The capacity supported by this cluster. + * * @return the clusterCapacity value. */ public ClusterCapacity clusterCapacity() { @@ -261,7 +249,7 @@ public ClusterCapacity clusterCapacity() { /** * Get the clusterConnectionStatus property: The latest heartbeat status between the cluster manager and the * cluster. - * + * * @return the clusterConnectionStatus value. */ public ClusterConnectionStatus clusterConnectionStatus() { @@ -269,12 +257,10 @@ public ClusterConnectionStatus clusterConnectionStatus() { } /** - * Get the clusterExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location (custom location) that represents the cluster's control plane location. This extended - * location is used to route the requests of child objects of the cluster that are handled by the platform operator. - * + * Get the clusterExtendedLocation property: The extended location (custom location) that represents the cluster's + * control plane location. This extended location is used to route the requests of child objects of the cluster that + * are handled by the platform operator. + * * @return the clusterExtendedLocation value. */ public ExtendedLocation clusterExtendedLocation() { @@ -284,7 +270,7 @@ public ExtendedLocation clusterExtendedLocation() { /** * Get the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @return the clusterLocation value. */ public String clusterLocation() { @@ -294,7 +280,7 @@ public String clusterLocation() { /** * Set the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @param clusterLocation the clusterLocation value to set. * @return the ClusterProperties object itself. */ @@ -306,7 +292,7 @@ public ClusterProperties withClusterLocation(String clusterLocation) { /** * Get the clusterManagerConnectionStatus property: The latest connectivity status between cluster manager and the * cluster. - * + * * @return the clusterManagerConnectionStatus value. */ public ClusterManagerConnectionStatus clusterManagerConnectionStatus() { @@ -316,7 +302,7 @@ public ClusterManagerConnectionStatus clusterManagerConnectionStatus() { /** * Get the clusterManagerId property: The resource ID of the cluster manager that manages this cluster. This is set * by the Cluster Manager when the cluster is created. - * + * * @return the clusterManagerId value. */ public String clusterManagerId() { @@ -324,11 +310,9 @@ public String clusterManagerId() { } /** - * Get the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Get the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @return the clusterServicePrincipal value. */ public ServicePrincipalInformation clusterServicePrincipal() { @@ -336,11 +320,9 @@ public ServicePrincipalInformation clusterServicePrincipal() { } /** - * Set the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Set the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @param clusterServicePrincipal the clusterServicePrincipal value to set. * @return the ClusterProperties object itself. */ @@ -351,7 +333,7 @@ public ClusterProperties withClusterServicePrincipal(ServicePrincipalInformation /** * Get the clusterType property: The type of rack configuration for the cluster. - * + * * @return the clusterType value. */ public ClusterType clusterType() { @@ -360,7 +342,7 @@ public ClusterType clusterType() { /** * Set the clusterType property: The type of rack configuration for the cluster. - * + * * @param clusterType the clusterType value to set. * @return the ClusterProperties object itself. */ @@ -371,7 +353,7 @@ public ClusterProperties withClusterType(ClusterType clusterType) { /** * Get the clusterVersion property: The current runtime version of the cluster. - * + * * @return the clusterVersion value. */ public String clusterVersion() { @@ -380,7 +362,7 @@ public String clusterVersion() { /** * Set the clusterVersion property: The current runtime version of the cluster. - * + * * @param clusterVersion the clusterVersion value to set. * @return the ClusterProperties object itself. */ @@ -390,12 +372,31 @@ public ClusterProperties withClusterVersion(String clusterVersion) { } /** - * Get the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Get the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @return the commandOutputSettings value. + */ + public CommandOutputSettings commandOutputSettings() { + return this.commandOutputSettings; + } + + /** + * Set the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @param commandOutputSettings the commandOutputSettings value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withCommandOutputSettings(CommandOutputSettings commandOutputSettings) { + this.commandOutputSettings = commandOutputSettings; + return this; + } + + /** + * Get the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @return the computeDeploymentThreshold value. */ public ValidationThreshold computeDeploymentThreshold() { @@ -403,12 +404,9 @@ public ValidationThreshold computeDeploymentThreshold() { } /** - * Set the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Set the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @param computeDeploymentThreshold the computeDeploymentThreshold value to set. * @return the ClusterProperties object itself. */ @@ -420,7 +418,7 @@ public ClusterProperties withComputeDeploymentThreshold(ValidationThreshold comp /** * Get the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @return the computeRackDefinitions value. */ public List computeRackDefinitions() { @@ -430,7 +428,7 @@ public List computeRackDefinitions() { /** * Set the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @param computeRackDefinitions the computeRackDefinitions value to set. * @return the ClusterProperties object itself. */ @@ -441,7 +439,7 @@ public ClusterProperties withComputeRackDefinitions(List compute /** * Get the detailedStatus property: The current detailed status of the cluster. - * + * * @return the detailedStatus value. */ public ClusterDetailedStatus detailedStatus() { @@ -450,7 +448,7 @@ public ClusterDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -458,13 +456,10 @@ public String detailedStatusMessage() { } /** - * Get the hybridAksExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

Field Deprecated. This field will not be populated in an upcoming version. The extended location (custom - * location) that represents the Hybrid AKS control plane location. This extended location is used when creating - * provisioned clusters (Hybrid AKS clusters). - * + * Get the hybridAksExtendedLocation property: Field Deprecated. This field will not be populated in an upcoming + * version. The extended location (custom location) that represents the Hybrid AKS control plane location. This + * extended location is used when creating provisioned clusters (Hybrid AKS clusters). + * * @return the hybridAksExtendedLocation value. */ public ExtendedLocation hybridAksExtendedLocation() { @@ -472,11 +467,9 @@ public ExtendedLocation hybridAksExtendedLocation() { } /** - * Get the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Get the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { @@ -484,11 +477,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Set the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Set the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @param managedResourceGroupConfiguration the managedResourceGroupConfiguration value to set. * @return the ClusterProperties object itself. */ @@ -500,7 +491,7 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { /** * Get the manualActionCount property: The count of Manual Action Taken (MAT) events that have not been validated. - * + * * @return the manualActionCount value. */ public Long manualActionCount() { @@ -509,7 +500,7 @@ public Long manualActionCount() { /** * Get the networkFabricId property: The resource ID of the Network Fabric associated with the cluster. - * + * * @return the networkFabricId value. */ public String networkFabricId() { @@ -518,7 +509,7 @@ public String networkFabricId() { /** * Set the networkFabricId property: The resource ID of the Network Fabric associated with the cluster. - * + * * @param networkFabricId the networkFabricId value to set. * @return the ClusterProperties object itself. */ @@ -529,25 +520,88 @@ public ClusterProperties withNetworkFabricId(String networkFabricId) { /** * Get the provisioningState property: The provisioning state of the cluster. - * + * * @return the provisioningState value. */ public ClusterProvisioningState provisioningState() { return this.provisioningState; } + /** + * Get the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @return the runtimeProtectionConfiguration value. + */ + public RuntimeProtectionConfiguration runtimeProtectionConfiguration() { + return this.runtimeProtectionConfiguration; + } + + /** + * Set the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @param runtimeProtectionConfiguration the runtimeProtectionConfiguration value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties + withRuntimeProtectionConfiguration(RuntimeProtectionConfiguration runtimeProtectionConfiguration) { + this.runtimeProtectionConfiguration = runtimeProtectionConfiguration; + return this; + } + + /** + * Get the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @return the secretArchive value. + */ + public ClusterSecretArchive secretArchive() { + return this.secretArchive; + } + + /** + * Set the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @param secretArchive the secretArchive value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withSecretArchive(ClusterSecretArchive secretArchive) { + this.secretArchive = secretArchive; + return this; + } + /** * Get the supportExpiryDate property: The support end date of the runtime version of the cluster. - * + * * @return the supportExpiryDate value. */ public String supportExpiryDate() { return this.supportExpiryDate; } + /** + * Get the updateStrategy property: The strategy for updating the cluster. + * + * @return the updateStrategy value. + */ + public ClusterUpdateStrategy updateStrategy() { + return this.updateStrategy; + } + + /** + * Set the updateStrategy property: The strategy for updating the cluster. + * + * @param updateStrategy the updateStrategy value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; + return this; + } + /** * Get the workloadResourceIds property: The list of workload resource IDs that are hosted within this cluster. - * + * * @return the workloadResourceIds value. */ public List workloadResourceIds() { @@ -556,13 +610,14 @@ public List workloadResourceIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (aggregatorOrSingleRackDefinition() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property aggregatorOrSingleRackDefinition in model ClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property aggregatorOrSingleRackDefinition in model ClusterProperties")); } else { aggregatorOrSingleRackDefinition().validate(); } @@ -579,12 +634,16 @@ public void validate() { clusterServicePrincipal().validate(); } if (clusterType() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property clusterType in model ClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property clusterType in model ClusterProperties")); } if (clusterVersion() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property clusterVersion in model ClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property clusterVersion in model ClusterProperties")); + } + if (commandOutputSettings() != null) { + commandOutputSettings().validate(); } if (computeDeploymentThreshold() != null) { computeDeploymentThreshold().validate(); @@ -599,10 +658,134 @@ public void validate() { managedResourceGroupConfiguration().validate(); } if (networkFabricId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property networkFabricId in model ClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkFabricId in model ClusterProperties")); + } + if (runtimeProtectionConfiguration() != null) { + runtimeProtectionConfiguration().validate(); + } + if (secretArchive() != null) { + secretArchive().validate(); + } + if (updateStrategy() != null) { + updateStrategy().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(ClusterProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("aggregatorOrSingleRackDefinition", this.aggregatorOrSingleRackDefinition); + jsonWriter.writeStringField("clusterType", this.clusterType == null ? null : this.clusterType.toString()); + jsonWriter.writeStringField("clusterVersion", this.clusterVersion); + jsonWriter.writeStringField("networkFabricId", this.networkFabricId); + jsonWriter.writeStringField("analyticsWorkspaceId", this.analyticsWorkspaceId); + jsonWriter.writeStringField("clusterLocation", this.clusterLocation); + jsonWriter.writeJsonField("clusterServicePrincipal", this.clusterServicePrincipal); + jsonWriter.writeJsonField("commandOutputSettings", this.commandOutputSettings); + jsonWriter.writeJsonField("computeDeploymentThreshold", this.computeDeploymentThreshold); + jsonWriter.writeArrayField("computeRackDefinitions", this.computeRackDefinitions, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("managedResourceGroupConfiguration", this.managedResourceGroupConfiguration); + jsonWriter.writeJsonField("runtimeProtectionConfiguration", this.runtimeProtectionConfiguration); + jsonWriter.writeJsonField("secretArchive", this.secretArchive); + jsonWriter.writeJsonField("updateStrategy", this.updateStrategy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterProperties. + */ + public static ClusterProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterProperties deserializedClusterProperties = new ClusterProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("aggregatorOrSingleRackDefinition".equals(fieldName)) { + deserializedClusterProperties.aggregatorOrSingleRackDefinition = RackDefinition.fromJson(reader); + } else if ("clusterType".equals(fieldName)) { + deserializedClusterProperties.clusterType = ClusterType.fromString(reader.getString()); + } else if ("clusterVersion".equals(fieldName)) { + deserializedClusterProperties.clusterVersion = reader.getString(); + } else if ("networkFabricId".equals(fieldName)) { + deserializedClusterProperties.networkFabricId = reader.getString(); + } else if ("analyticsWorkspaceId".equals(fieldName)) { + deserializedClusterProperties.analyticsWorkspaceId = reader.getString(); + } else if ("availableUpgradeVersions".equals(fieldName)) { + List availableUpgradeVersions + = reader.readArray(reader1 -> ClusterAvailableUpgradeVersion.fromJson(reader1)); + deserializedClusterProperties.availableUpgradeVersions = availableUpgradeVersions; + } else if ("clusterCapacity".equals(fieldName)) { + deserializedClusterProperties.clusterCapacity = ClusterCapacity.fromJson(reader); + } else if ("clusterConnectionStatus".equals(fieldName)) { + deserializedClusterProperties.clusterConnectionStatus + = ClusterConnectionStatus.fromString(reader.getString()); + } else if ("clusterExtendedLocation".equals(fieldName)) { + deserializedClusterProperties.clusterExtendedLocation = ExtendedLocation.fromJson(reader); + } else if ("clusterLocation".equals(fieldName)) { + deserializedClusterProperties.clusterLocation = reader.getString(); + } else if ("clusterManagerConnectionStatus".equals(fieldName)) { + deserializedClusterProperties.clusterManagerConnectionStatus + = ClusterManagerConnectionStatus.fromString(reader.getString()); + } else if ("clusterManagerId".equals(fieldName)) { + deserializedClusterProperties.clusterManagerId = reader.getString(); + } else if ("clusterServicePrincipal".equals(fieldName)) { + deserializedClusterProperties.clusterServicePrincipal + = ServicePrincipalInformation.fromJson(reader); + } else if ("commandOutputSettings".equals(fieldName)) { + deserializedClusterProperties.commandOutputSettings = CommandOutputSettings.fromJson(reader); + } else if ("computeDeploymentThreshold".equals(fieldName)) { + deserializedClusterProperties.computeDeploymentThreshold = ValidationThreshold.fromJson(reader); + } else if ("computeRackDefinitions".equals(fieldName)) { + List computeRackDefinitions + = reader.readArray(reader1 -> RackDefinition.fromJson(reader1)); + deserializedClusterProperties.computeRackDefinitions = computeRackDefinitions; + } else if ("detailedStatus".equals(fieldName)) { + deserializedClusterProperties.detailedStatus = ClusterDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedClusterProperties.detailedStatusMessage = reader.getString(); + } else if ("hybridAksExtendedLocation".equals(fieldName)) { + deserializedClusterProperties.hybridAksExtendedLocation = ExtendedLocation.fromJson(reader); + } else if ("managedResourceGroupConfiguration".equals(fieldName)) { + deserializedClusterProperties.managedResourceGroupConfiguration + = ManagedResourceGroupConfiguration.fromJson(reader); + } else if ("manualActionCount".equals(fieldName)) { + deserializedClusterProperties.manualActionCount = reader.getNullable(JsonReader::getLong); + } else if ("provisioningState".equals(fieldName)) { + deserializedClusterProperties.provisioningState + = ClusterProvisioningState.fromString(reader.getString()); + } else if ("runtimeProtectionConfiguration".equals(fieldName)) { + deserializedClusterProperties.runtimeProtectionConfiguration + = RuntimeProtectionConfiguration.fromJson(reader); + } else if ("secretArchive".equals(fieldName)) { + deserializedClusterProperties.secretArchive = ClusterSecretArchive.fromJson(reader); + } else if ("supportExpiryDate".equals(fieldName)) { + deserializedClusterProperties.supportExpiryDate = reader.getString(); + } else if ("updateStrategy".equals(fieldName)) { + deserializedClusterProperties.updateStrategy = ClusterUpdateStrategy.fromJson(reader); + } else if ("workloadResourceIds".equals(fieldName)) { + List workloadResourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedClusterProperties.workloadResourceIds = workloadResourceIds; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleInner.java index 6b709c572c620..c6875e5002ba7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleInner.java @@ -8,50 +8,63 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ConsoleDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ConsoleEnabled; import com.azure.resourcemanager.networkcloud.models.ConsoleProvisioningState; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.SshPublicKey; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.Map; -/** Console represents the console of an on-premises Network Cloud virtual machine. */ +/** + * Console represents the console of an on-premises Network Cloud virtual machine. + */ @Fluent public final class ConsoleInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster manager associated with the cluster this virtual machine is created on. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * ConsoleProperties represents the properties of the virtual machine console. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private ConsoleProperties innerProperties = new ConsoleProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of ConsoleInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ConsoleInner class. + */ public ConsoleInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster manager associated with the cluster this virtual machine is created on. - * + * Get the extendedLocation property: The extended location of the cluster manager associated with the cluster this + * virtual machine is created on. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -59,11 +72,9 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster manager associated with the cluster this virtual machine is created on. - * + * Set the extendedLocation property: The extended location of the cluster manager associated with the cluster this + * virtual machine is created on. + * * @param extendedLocation the extendedLocation value to set. * @return the ConsoleInner object itself. */ @@ -73,10 +84,8 @@ public ConsoleInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: ConsoleProperties represents the properties of the virtual machine console. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private ConsoleProperties innerProperties() { @@ -85,21 +94,55 @@ private ConsoleProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public ConsoleInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ConsoleInner withTags(Map tags) { super.withTags(tags); @@ -108,7 +151,7 @@ public ConsoleInner withTags(Map tags) { /** * Get the detailedStatus property: The more detailed status of the console. - * + * * @return the detailedStatus value. */ public ConsoleDetailedStatus detailedStatus() { @@ -117,7 +160,7 @@ public ConsoleDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -126,7 +169,7 @@ public String detailedStatusMessage() { /** * Get the enabled property: The indicator of whether the console access is enabled. - * + * * @return the enabled value. */ public ConsoleEnabled enabled() { @@ -135,7 +178,7 @@ public ConsoleEnabled enabled() { /** * Set the enabled property: The indicator of whether the console access is enabled. - * + * * @param enabled the enabled value to set. * @return the ConsoleInner object itself. */ @@ -149,7 +192,7 @@ public ConsoleInner withEnabled(ConsoleEnabled enabled) { /** * Get the expiration property: The date and time after which the key will be disallowed access. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -158,7 +201,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the key will be disallowed access. - * + * * @param expiration the expiration value to set. * @return the ConsoleInner object itself. */ @@ -173,7 +216,7 @@ public ConsoleInner withExpiration(OffsetDateTime expiration) { /** * Get the privateLinkServiceId property: The resource ID of the private link service that is used to provide * virtual machine console access. - * + * * @return the privateLinkServiceId value. */ public String privateLinkServiceId() { @@ -182,7 +225,7 @@ public String privateLinkServiceId() { /** * Get the provisioningState property: The provisioning state of the virtual machine console. - * + * * @return the provisioningState value. */ public ConsoleProvisioningState provisioningState() { @@ -190,12 +233,9 @@ public ConsoleProvisioningState provisioningState() { } /** - * Get the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Get the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @return the sshPublicKey value. */ public SshPublicKey sshPublicKey() { @@ -203,12 +243,9 @@ public SshPublicKey sshPublicKey() { } /** - * Set the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Set the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @param sshPublicKey the sshPublicKey value to set. * @return the ConsoleInner object itself. */ @@ -223,7 +260,7 @@ public ConsoleInner withSshPublicKey(SshPublicKey sshPublicKey) { /** * Get the virtualMachineAccessId property: The unique identifier for the virtual machine that is used to access the * console. - * + * * @return the virtualMachineAccessId value. */ public String virtualMachineAccessId() { @@ -232,23 +269,78 @@ public String virtualMachineAccessId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property extendedLocation in model ConsoleInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property extendedLocation in model ConsoleInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model ConsoleInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model ConsoleInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(ConsoleInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConsoleInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConsoleInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConsoleInner. + */ + public static ConsoleInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConsoleInner deserializedConsoleInner = new ConsoleInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedConsoleInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedConsoleInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedConsoleInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedConsoleInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedConsoleInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedConsoleInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedConsoleInner.innerProperties = ConsoleProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedConsoleInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConsoleInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsolePatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsolePatchProperties.java index 36ee13844b0d6..da31a3bc4915c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsolePatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsolePatchProperties.java @@ -5,43 +5,47 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ConsoleEnabled; import com.azure.resourcemanager.networkcloud.models.SshPublicKey; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; -/** ConsolePatchProperties represents the properties of the virtual machine console that can be patched. */ +/** + * ConsolePatchProperties represents the properties of the virtual machine console that can be patched. + */ @Fluent -public final class ConsolePatchProperties { +public final class ConsolePatchProperties implements JsonSerializable { /* - * The credentials used to login to the image repository that has access to the specified image. + * The indicator of whether the console access is enabled. */ - @JsonProperty(value = "enabled") private ConsoleEnabled enabled; /* * The date and time after which the key will be disallowed access. */ - @JsonProperty(value = "expiration") private OffsetDateTime expiration; /* - * SshPublicKey represents the public key used to authenticate with a resource through SSH. - * * The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH * private key for logging in. */ - @JsonProperty(value = "sshPublicKey") private SshPublicKey sshPublicKey; - /** Creates an instance of ConsolePatchProperties class. */ + /** + * Creates an instance of ConsolePatchProperties class. + */ public ConsolePatchProperties() { } /** - * Get the enabled property: The credentials used to login to the image repository that has access to the specified - * image. - * + * Get the enabled property: The indicator of whether the console access is enabled. + * * @return the enabled value. */ public ConsoleEnabled enabled() { @@ -49,9 +53,8 @@ public ConsoleEnabled enabled() { } /** - * Set the enabled property: The credentials used to login to the image repository that has access to the specified - * image. - * + * Set the enabled property: The indicator of whether the console access is enabled. + * * @param enabled the enabled value to set. * @return the ConsolePatchProperties object itself. */ @@ -62,7 +65,7 @@ public ConsolePatchProperties withEnabled(ConsoleEnabled enabled) { /** * Get the expiration property: The date and time after which the key will be disallowed access. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -71,7 +74,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the key will be disallowed access. - * + * * @param expiration the expiration value to set. * @return the ConsolePatchProperties object itself. */ @@ -81,12 +84,9 @@ public ConsolePatchProperties withExpiration(OffsetDateTime expiration) { } /** - * Get the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Get the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @return the sshPublicKey value. */ public SshPublicKey sshPublicKey() { @@ -94,12 +94,9 @@ public SshPublicKey sshPublicKey() { } /** - * Set the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Set the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @param sshPublicKey the sshPublicKey value to set. * @return the ConsolePatchProperties object itself. */ @@ -110,7 +107,7 @@ public ConsolePatchProperties withSshPublicKey(SshPublicKey sshPublicKey) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -118,4 +115,48 @@ public void validate() { sshPublicKey().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("enabled", this.enabled == null ? null : this.enabled.toString()); + jsonWriter.writeStringField("expiration", + this.expiration == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expiration)); + jsonWriter.writeJsonField("sshPublicKey", this.sshPublicKey); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConsolePatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConsolePatchProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConsolePatchProperties. + */ + public static ConsolePatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConsolePatchProperties deserializedConsolePatchProperties = new ConsolePatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedConsolePatchProperties.enabled = ConsoleEnabled.fromString(reader.getString()); + } else if ("expiration".equals(fieldName)) { + deserializedConsolePatchProperties.expiration = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("sshPublicKey".equals(fieldName)) { + deserializedConsolePatchProperties.sshPublicKey = SshPublicKey.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedConsolePatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleProperties.java index c3cba45b787f3..f6618fed450e1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/ConsoleProperties.java @@ -5,75 +5,75 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ConsoleDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ConsoleEnabled; import com.azure.resourcemanager.networkcloud.models.ConsoleProvisioningState; import com.azure.resourcemanager.networkcloud.models.SshPublicKey; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; -/** ConsoleProperties represents the properties of the virtual machine console. */ +/** + * ConsoleProperties represents the properties of the virtual machine console. + */ @Fluent -public final class ConsoleProperties { +public final class ConsoleProperties implements JsonSerializable { /* * The more detailed status of the console. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private ConsoleDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The indicator of whether the console access is enabled. */ - @JsonProperty(value = "enabled", required = true) private ConsoleEnabled enabled; /* * The date and time after which the key will be disallowed access. */ - @JsonProperty(value = "expiration") private OffsetDateTime expiration; /* * The resource ID of the private link service that is used to provide virtual machine console access. */ - @JsonProperty(value = "privateLinkServiceId", access = JsonProperty.Access.WRITE_ONLY) private String privateLinkServiceId; /* * The provisioning state of the virtual machine console. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ConsoleProvisioningState provisioningState; /* - * SshPublicKey represents the public key used to authenticate with a resource through SSH. - * * The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH * private key for logging in. */ - @JsonProperty(value = "sshPublicKey", required = true) private SshPublicKey sshPublicKey; /* * The unique identifier for the virtual machine that is used to access the console. */ - @JsonProperty(value = "virtualMachineAccessId", access = JsonProperty.Access.WRITE_ONLY) private String virtualMachineAccessId; - /** Creates an instance of ConsoleProperties class. */ + /** + * Creates an instance of ConsoleProperties class. + */ public ConsoleProperties() { } /** * Get the detailedStatus property: The more detailed status of the console. - * + * * @return the detailedStatus value. */ public ConsoleDetailedStatus detailedStatus() { @@ -82,7 +82,7 @@ public ConsoleDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -91,7 +91,7 @@ public String detailedStatusMessage() { /** * Get the enabled property: The indicator of whether the console access is enabled. - * + * * @return the enabled value. */ public ConsoleEnabled enabled() { @@ -100,7 +100,7 @@ public ConsoleEnabled enabled() { /** * Set the enabled property: The indicator of whether the console access is enabled. - * + * * @param enabled the enabled value to set. * @return the ConsoleProperties object itself. */ @@ -111,7 +111,7 @@ public ConsoleProperties withEnabled(ConsoleEnabled enabled) { /** * Get the expiration property: The date and time after which the key will be disallowed access. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -120,7 +120,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the key will be disallowed access. - * + * * @param expiration the expiration value to set. * @return the ConsoleProperties object itself. */ @@ -132,7 +132,7 @@ public ConsoleProperties withExpiration(OffsetDateTime expiration) { /** * Get the privateLinkServiceId property: The resource ID of the private link service that is used to provide * virtual machine console access. - * + * * @return the privateLinkServiceId value. */ public String privateLinkServiceId() { @@ -141,7 +141,7 @@ public String privateLinkServiceId() { /** * Get the provisioningState property: The provisioning state of the virtual machine console. - * + * * @return the provisioningState value. */ public ConsoleProvisioningState provisioningState() { @@ -149,12 +149,9 @@ public ConsoleProvisioningState provisioningState() { } /** - * Get the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Get the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @return the sshPublicKey value. */ public SshPublicKey sshPublicKey() { @@ -162,12 +159,9 @@ public SshPublicKey sshPublicKey() { } /** - * Set the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Set the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @param sshPublicKey the sshPublicKey value to set. * @return the ConsoleProperties object itself. */ @@ -179,7 +173,7 @@ public ConsoleProperties withSshPublicKey(SshPublicKey sshPublicKey) { /** * Get the virtualMachineAccessId property: The unique identifier for the virtual machine that is used to access the * console. - * + * * @return the virtualMachineAccessId value. */ public String virtualMachineAccessId() { @@ -188,21 +182,77 @@ public String virtualMachineAccessId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (enabled() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property enabled in model ConsoleProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property enabled in model ConsoleProperties")); } if (sshPublicKey() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property sshPublicKey in model ConsoleProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property sshPublicKey in model ConsoleProperties")); } else { sshPublicKey().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(ConsoleProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("enabled", this.enabled == null ? null : this.enabled.toString()); + jsonWriter.writeJsonField("sshPublicKey", this.sshPublicKey); + jsonWriter.writeStringField("expiration", + this.expiration == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expiration)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConsoleProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConsoleProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ConsoleProperties. + */ + public static ConsoleProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConsoleProperties deserializedConsoleProperties = new ConsoleProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedConsoleProperties.enabled = ConsoleEnabled.fromString(reader.getString()); + } else if ("sshPublicKey".equals(fieldName)) { + deserializedConsoleProperties.sshPublicKey = SshPublicKey.fromJson(reader); + } else if ("detailedStatus".equals(fieldName)) { + deserializedConsoleProperties.detailedStatus = ConsoleDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedConsoleProperties.detailedStatusMessage = reader.getString(); + } else if ("expiration".equals(fieldName)) { + deserializedConsoleProperties.expiration = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("privateLinkServiceId".equals(fieldName)) { + deserializedConsoleProperties.privateLinkServiceId = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedConsoleProperties.provisioningState + = ConsoleProvisioningState.fromString(reader.getString()); + } else if ("virtualMachineAccessId".equals(fieldName)) { + deserializedConsoleProperties.virtualMachineAccessId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedConsoleProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureInner.java new file mode 100644 index 0000000000000..bc748c623f4c5 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureInner.java @@ -0,0 +1,266 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureAvailabilityLifecycle; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureDetailedStatus; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureProvisioningState; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureRequired; +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * KubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ +@Fluent +public final class KubernetesClusterFeatureInner extends Resource { + /* + * The list of the resource properties. + */ + private KubernetesClusterFeatureProperties innerProperties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of KubernetesClusterFeatureInner class. + */ + public KubernetesClusterFeatureInner() { + } + + /** + * Get the innerProperties property: The list of the resource properties. + * + * @return the innerProperties value. + */ + private KubernetesClusterFeatureProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public KubernetesClusterFeatureInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public KubernetesClusterFeatureInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Get the availabilityLifecycle property: The lifecycle indicator of the feature. + * + * @return the availabilityLifecycle value. + */ + public KubernetesClusterFeatureAvailabilityLifecycle availabilityLifecycle() { + return this.innerProperties() == null ? null : this.innerProperties().availabilityLifecycle(); + } + + /** + * Get the detailedStatus property: The detailed status of the feature. + * + * @return the detailedStatus value. + */ + public KubernetesClusterFeatureDetailedStatus detailedStatus() { + return this.innerProperties() == null ? null : this.innerProperties().detailedStatus(); + } + + /** + * Get the detailedStatusMessage property: The descriptive message for the detailed status of the feature. + * + * @return the detailedStatusMessage value. + */ + public String detailedStatusMessage() { + return this.innerProperties() == null ? null : this.innerProperties().detailedStatusMessage(); + } + + /** + * Get the options property: The configured options for the feature. + * + * @return the options value. + */ + public List options() { + return this.innerProperties() == null ? null : this.innerProperties().options(); + } + + /** + * Set the options property: The configured options for the feature. + * + * @param options the options value to set. + * @return the KubernetesClusterFeatureInner object itself. + */ + public KubernetesClusterFeatureInner withOptions(List options) { + if (this.innerProperties() == null) { + this.innerProperties = new KubernetesClusterFeatureProperties(); + } + this.innerProperties().withOptions(options); + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the Kubernetes cluster feature. + * + * @return the provisioningState value. + */ + public KubernetesClusterFeatureProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Get the required property: The indicator of if the feature is required or optional. Optional features may be + * deleted by the user, while required features are managed with the kubernetes cluster lifecycle. + * + * @return the required value. + */ + public KubernetesClusterFeatureRequired required() { + return this.innerProperties() == null ? null : this.innerProperties().required(); + } + + /** + * Get the version property: The version of the feature. + * + * @return the version value. + */ + public String version() { + return this.innerProperties() == null ? null : this.innerProperties().version(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterFeatureInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterFeatureInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KubernetesClusterFeatureInner. + */ + public static KubernetesClusterFeatureInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterFeatureInner deserializedKubernetesClusterFeatureInner + = new KubernetesClusterFeatureInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedKubernetesClusterFeatureInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedKubernetesClusterFeatureInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedKubernetesClusterFeatureInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedKubernetesClusterFeatureInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedKubernetesClusterFeatureInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedKubernetesClusterFeatureInner.innerProperties + = KubernetesClusterFeatureProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedKubernetesClusterFeatureInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterFeatureInner; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeaturePatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeaturePatchProperties.java new file mode 100644 index 0000000000000..d17ed34423d85 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeaturePatchProperties.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.io.IOException; +import java.util.List; + +/** + * KubernetesClusterFeaturePatchProperties represents the Kubernetes cluster feature properties for patching. + */ +@Fluent +public final class KubernetesClusterFeaturePatchProperties + implements JsonSerializable { + /* + * The configured options for the feature. + */ + private List options; + + /** + * Creates an instance of KubernetesClusterFeaturePatchProperties class. + */ + public KubernetesClusterFeaturePatchProperties() { + } + + /** + * Get the options property: The configured options for the feature. + * + * @return the options value. + */ + public List options() { + return this.options; + } + + /** + * Set the options property: The configured options for the feature. + * + * @param options the options value to set. + * @return the KubernetesClusterFeaturePatchProperties object itself. + */ + public KubernetesClusterFeaturePatchProperties withOptions(List options) { + this.options = options; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (options() != null) { + options().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("options", this.options, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterFeaturePatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterFeaturePatchProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterFeaturePatchProperties. + */ + public static KubernetesClusterFeaturePatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterFeaturePatchProperties deserializedKubernetesClusterFeaturePatchProperties + = new KubernetesClusterFeaturePatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("options".equals(fieldName)) { + List options + = reader.readArray(reader1 -> StringKeyValuePair.fromJson(reader1)); + deserializedKubernetesClusterFeaturePatchProperties.options = options; + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterFeaturePatchProperties; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureProperties.java new file mode 100644 index 0000000000000..961eff3acc596 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterFeatureProperties.java @@ -0,0 +1,207 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureAvailabilityLifecycle; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureDetailedStatus; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureProvisioningState; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureRequired; +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.io.IOException; +import java.util.List; + +/** + * KubernetesClusterFeatureProperties represents the properties of a Kubernetes cluster feature. + */ +@Fluent +public final class KubernetesClusterFeatureProperties implements JsonSerializable { + /* + * The lifecycle indicator of the feature. + */ + private KubernetesClusterFeatureAvailabilityLifecycle availabilityLifecycle; + + /* + * The detailed status of the feature. + */ + private KubernetesClusterFeatureDetailedStatus detailedStatus; + + /* + * The descriptive message for the detailed status of the feature. + */ + private String detailedStatusMessage; + + /* + * The configured options for the feature. + */ + private List options; + + /* + * The provisioning state of the Kubernetes cluster feature. + */ + private KubernetesClusterFeatureProvisioningState provisioningState; + + /* + * The indicator of if the feature is required or optional. Optional features may be deleted by the user, while + * required features are managed with the kubernetes cluster lifecycle. + */ + private KubernetesClusterFeatureRequired required; + + /* + * The version of the feature. + */ + private String version; + + /** + * Creates an instance of KubernetesClusterFeatureProperties class. + */ + public KubernetesClusterFeatureProperties() { + } + + /** + * Get the availabilityLifecycle property: The lifecycle indicator of the feature. + * + * @return the availabilityLifecycle value. + */ + public KubernetesClusterFeatureAvailabilityLifecycle availabilityLifecycle() { + return this.availabilityLifecycle; + } + + /** + * Get the detailedStatus property: The detailed status of the feature. + * + * @return the detailedStatus value. + */ + public KubernetesClusterFeatureDetailedStatus detailedStatus() { + return this.detailedStatus; + } + + /** + * Get the detailedStatusMessage property: The descriptive message for the detailed status of the feature. + * + * @return the detailedStatusMessage value. + */ + public String detailedStatusMessage() { + return this.detailedStatusMessage; + } + + /** + * Get the options property: The configured options for the feature. + * + * @return the options value. + */ + public List options() { + return this.options; + } + + /** + * Set the options property: The configured options for the feature. + * + * @param options the options value to set. + * @return the KubernetesClusterFeatureProperties object itself. + */ + public KubernetesClusterFeatureProperties withOptions(List options) { + this.options = options; + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the Kubernetes cluster feature. + * + * @return the provisioningState value. + */ + public KubernetesClusterFeatureProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the required property: The indicator of if the feature is required or optional. Optional features may be + * deleted by the user, while required features are managed with the kubernetes cluster lifecycle. + * + * @return the required value. + */ + public KubernetesClusterFeatureRequired required() { + return this.required; + } + + /** + * Get the version property: The version of the feature. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (options() != null) { + options().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("options", this.options, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterFeatureProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterFeatureProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterFeatureProperties. + */ + public static KubernetesClusterFeatureProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterFeatureProperties deserializedKubernetesClusterFeatureProperties + = new KubernetesClusterFeatureProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("availabilityLifecycle".equals(fieldName)) { + deserializedKubernetesClusterFeatureProperties.availabilityLifecycle + = KubernetesClusterFeatureAvailabilityLifecycle.fromString(reader.getString()); + } else if ("detailedStatus".equals(fieldName)) { + deserializedKubernetesClusterFeatureProperties.detailedStatus + = KubernetesClusterFeatureDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedKubernetesClusterFeatureProperties.detailedStatusMessage = reader.getString(); + } else if ("options".equals(fieldName)) { + List options + = reader.readArray(reader1 -> StringKeyValuePair.fromJson(reader1)); + deserializedKubernetesClusterFeatureProperties.options = options; + } else if ("provisioningState".equals(fieldName)) { + deserializedKubernetesClusterFeatureProperties.provisioningState + = KubernetesClusterFeatureProvisioningState.fromString(reader.getString()); + } else if ("required".equals(fieldName)) { + deserializedKubernetesClusterFeatureProperties.required + = KubernetesClusterFeatureRequired.fromString(reader.getString()); + } else if ("version".equals(fieldName)) { + deserializedKubernetesClusterFeatureProperties.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterFeatureProperties; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterInner.java index 37b7dffebd00e..c2d6fdd5799f7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterInner.java @@ -8,6 +8,9 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AadConfiguration; import com.azure.resourcemanager.networkcloud.models.AdministratorConfiguration; import com.azure.resourcemanager.networkcloud.models.AvailableUpgrade; @@ -20,45 +23,54 @@ import com.azure.resourcemanager.networkcloud.models.KubernetesClusterProvisioningState; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; import com.azure.resourcemanager.networkcloud.models.NetworkConfiguration; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** KubernetesCluster represents the Kubernetes cluster hosted on Network Cloud. */ +/** + * KubernetesCluster represents the Kubernetes cluster hosted on Network Cloud. + */ @Fluent public final class KubernetesClusterInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * KubernetesClusterProperties represents the properties of Kubernetes cluster resource. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private KubernetesClusterProperties innerProperties = new KubernetesClusterProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of KubernetesClusterInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of KubernetesClusterInner class. + */ public KubernetesClusterInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -66,11 +78,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the KubernetesClusterInner object itself. */ @@ -80,11 +89,8 @@ public KubernetesClusterInner withExtendedLocation(ExtendedLocation extendedLoca } /** - * Get the innerProperties property: KubernetesClusterProperties represents the properties of Kubernetes cluster - * resource. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private KubernetesClusterProperties innerProperties() { @@ -93,21 +99,55 @@ private KubernetesClusterProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public KubernetesClusterInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public KubernetesClusterInner withTags(Map tags) { super.withTags(tags); @@ -115,10 +155,8 @@ public KubernetesClusterInner withTags(Map tags) { } /** - * Get the aadConfiguration property: AadConfiguration represents the Azure Active Directory Integration properties. - * - *

The Azure Active Directory Integration properties. - * + * Get the aadConfiguration property: The Azure Active Directory Integration properties. + * * @return the aadConfiguration value. */ public AadConfiguration aadConfiguration() { @@ -126,10 +164,8 @@ public AadConfiguration aadConfiguration() { } /** - * Set the aadConfiguration property: AadConfiguration represents the Azure Active Directory Integration properties. - * - *

The Azure Active Directory Integration properties. - * + * Set the aadConfiguration property: The Azure Active Directory Integration properties. + * * @param aadConfiguration the aadConfiguration value to set. * @return the KubernetesClusterInner object itself. */ @@ -142,12 +178,9 @@ public KubernetesClusterInner withAadConfiguration(AadConfiguration aadConfigura } /** - * Get the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrative credentials that will be applied to the control plane and agent pool nodes that do not - * specify their own values. - * + * Get the administratorConfiguration property: The administrative credentials that will be applied to the control + * plane and agent pool nodes that do not specify their own values. + * * @return the administratorConfiguration value. */ public AdministratorConfiguration administratorConfiguration() { @@ -155,12 +188,9 @@ public AdministratorConfiguration administratorConfiguration() { } /** - * Set the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrative credentials that will be applied to the control plane and agent pool nodes that do not - * specify their own values. - * + * Set the administratorConfiguration property: The administrative credentials that will be applied to the control + * plane and agent pool nodes that do not specify their own values. + * * @param administratorConfiguration the administratorConfiguration value to set. * @return the KubernetesClusterInner object itself. */ @@ -176,7 +206,7 @@ public AdministratorConfiguration administratorConfiguration() { /** * Get the attachedNetworkIds property: The full list of network resource IDs that are attached to this cluster, * including those attached only to specific agent pools. - * + * * @return the attachedNetworkIds value. */ public List attachedNetworkIds() { @@ -185,7 +215,7 @@ public List attachedNetworkIds() { /** * Get the availableUpgrades property: The list of versions that this Kubernetes cluster can be upgraded to. - * + * * @return the availableUpgrades value. */ public List availableUpgrades() { @@ -194,7 +224,7 @@ public List availableUpgrades() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster. - * + * * @return the clusterId value. */ public String clusterId() { @@ -204,7 +234,7 @@ public String clusterId() { /** * Get the connectedClusterId property: The resource ID of the connected cluster set up when this Kubernetes cluster * is created. - * + * * @return the connectedClusterId value. */ public String connectedClusterId() { @@ -213,7 +243,7 @@ public String connectedClusterId() { /** * Get the controlPlaneKubernetesVersion property: The current running version of Kubernetes on the control plane. - * + * * @return the controlPlaneKubernetesVersion value. */ public String controlPlaneKubernetesVersion() { @@ -221,11 +251,9 @@ public String controlPlaneKubernetesVersion() { } /** - * Get the controlPlaneNodeConfiguration property: ControlPlaneNodeConfiguration represents the selection of virtual - * machines and size of the control plane for a Kubernetes cluster. - * - *

The defining characteristics of the control plane for this Kubernetes Cluster. - * + * Get the controlPlaneNodeConfiguration property: The defining characteristics of the control plane for this + * Kubernetes Cluster. + * * @return the controlPlaneNodeConfiguration value. */ public ControlPlaneNodeConfiguration controlPlaneNodeConfiguration() { @@ -233,11 +261,9 @@ public ControlPlaneNodeConfiguration controlPlaneNodeConfiguration() { } /** - * Set the controlPlaneNodeConfiguration property: ControlPlaneNodeConfiguration represents the selection of virtual - * machines and size of the control plane for a Kubernetes cluster. - * - *

The defining characteristics of the control plane for this Kubernetes Cluster. - * + * Set the controlPlaneNodeConfiguration property: The defining characteristics of the control plane for this + * Kubernetes Cluster. + * * @param controlPlaneNodeConfiguration the controlPlaneNodeConfiguration value to set. * @return the KubernetesClusterInner object itself. */ @@ -252,7 +278,7 @@ public ControlPlaneNodeConfiguration controlPlaneNodeConfiguration() { /** * Get the detailedStatus property: The current status of the Kubernetes cluster. - * + * * @return the detailedStatus value. */ public KubernetesClusterDetailedStatus detailedStatus() { @@ -261,7 +287,7 @@ public KubernetesClusterDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -270,7 +296,7 @@ public String detailedStatusMessage() { /** * Get the featureStatuses property: The current feature settings. - * + * * @return the featureStatuses value. */ public List featureStatuses() { @@ -282,7 +308,7 @@ public List featureStatuses() { * for running critical system services and workloads. This data in this field is only used during creation, and the * field will be empty following the creation of the Kubernetes Cluster. After creation, the management of agent * pools is done using the agentPools sub-resource. - * + * * @return the initialAgentPoolConfigurations value. */ public List initialAgentPoolConfigurations() { @@ -294,7 +320,7 @@ public List initialAgentPoolConfigurations() { * for running critical system services and workloads. This data in this field is only used during creation, and the * field will be empty following the creation of the Kubernetes Cluster. After creation, the management of agent * pools is done using the agentPools sub-resource. - * + * * @param initialAgentPoolConfigurations the initialAgentPoolConfigurations value to set. * @return the KubernetesClusterInner object itself. */ @@ -308,9 +334,8 @@ public List initialAgentPoolConfigurations() { } /** - * Get the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Get the kubernetesVersion property: The Kubernetes version for this cluster. + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -318,9 +343,8 @@ public String kubernetesVersion() { } /** - * Set the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Set the kubernetesVersion property: The Kubernetes version for this cluster. + * * @param kubernetesVersion the kubernetesVersion value to set. * @return the KubernetesClusterInner object itself. */ @@ -333,11 +357,9 @@ public KubernetesClusterInner withKubernetesVersion(String kubernetesVersion) { } /** - * Get the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Get the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { @@ -345,11 +367,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Set the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Set the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @param managedResourceGroupConfiguration the managedResourceGroupConfiguration value to set. * @return the KubernetesClusterInner object itself. */ @@ -363,12 +383,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Get the networkConfiguration property: NetworkConfiguration specifies the Kubernetes cluster network related - * configuration. - * - *

The configuration of the Kubernetes cluster networking, including the attachment of networks that span the - * cluster. - * + * Get the networkConfiguration property: The configuration of the Kubernetes cluster networking, including the + * attachment of networks that span the cluster. + * * @return the networkConfiguration value. */ public NetworkConfiguration networkConfiguration() { @@ -376,12 +393,9 @@ public NetworkConfiguration networkConfiguration() { } /** - * Set the networkConfiguration property: NetworkConfiguration specifies the Kubernetes cluster network related - * configuration. - * - *

The configuration of the Kubernetes cluster networking, including the attachment of networks that span the - * cluster. - * + * Set the networkConfiguration property: The configuration of the Kubernetes cluster networking, including the + * attachment of networks that span the cluster. + * * @param networkConfiguration the networkConfiguration value to set. * @return the KubernetesClusterInner object itself. */ @@ -395,7 +409,7 @@ public KubernetesClusterInner withNetworkConfiguration(NetworkConfiguration netw /** * Get the nodes property: The details of the nodes in this cluster. - * + * * @return the nodes value. */ public List nodes() { @@ -404,7 +418,7 @@ public List nodes() { /** * Get the provisioningState property: The provisioning state of the Kubernetes cluster resource. - * + * * @return the provisioningState value. */ public KubernetesClusterProvisioningState provisioningState() { @@ -413,23 +427,80 @@ public KubernetesClusterProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model KubernetesClusterInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model KubernetesClusterInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model KubernetesClusterInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model KubernetesClusterInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(KubernetesClusterInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KubernetesClusterInner. + */ + public static KubernetesClusterInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterInner deserializedKubernetesClusterInner = new KubernetesClusterInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedKubernetesClusterInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedKubernetesClusterInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedKubernetesClusterInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedKubernetesClusterInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedKubernetesClusterInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedKubernetesClusterInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedKubernetesClusterInner.innerProperties = KubernetesClusterProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedKubernetesClusterInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterPatchProperties.java index 43ea79c173f2b..4113588ce3942 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterPatchProperties.java @@ -5,38 +5,65 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.models.AdministratorConfigurationPatch; import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodePatchConfiguration; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** KubernetesClusterPatchProperties represents the properties of the Kubernetes cluster that can be patched. */ +/** + * KubernetesClusterPatchProperties represents the properties of the Kubernetes cluster that can be patched. + */ @Fluent -public final class KubernetesClusterPatchProperties { +public final class KubernetesClusterPatchProperties implements JsonSerializable { + /* + * The configuration of the default administrator credentials. + */ + private AdministratorConfigurationPatch administratorConfiguration; + /* - * ControlPlaneNodePatchConfiguration represents the properties of the control plane that can be patched for this - * Kubernetes cluster. - * * The defining characteristics of the control plane that can be patched for this Kubernetes cluster. */ - @JsonProperty(value = "controlPlaneNodeConfiguration") private ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration; /* - * The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used - * will be resolved into this field after creation or update. + * The Kubernetes version for this cluster. */ - @JsonProperty(value = "kubernetesVersion") private String kubernetesVersion; - /** Creates an instance of KubernetesClusterPatchProperties class. */ + /** + * Creates an instance of KubernetesClusterPatchProperties class. + */ public KubernetesClusterPatchProperties() { } /** - * Get the controlPlaneNodeConfiguration property: ControlPlaneNodePatchConfiguration represents the properties of - * the control plane that can be patched for this Kubernetes cluster. - * - *

The defining characteristics of the control plane that can be patched for this Kubernetes cluster. - * + * Get the administratorConfiguration property: The configuration of the default administrator credentials. + * + * @return the administratorConfiguration value. + */ + public AdministratorConfigurationPatch administratorConfiguration() { + return this.administratorConfiguration; + } + + /** + * Set the administratorConfiguration property: The configuration of the default administrator credentials. + * + * @param administratorConfiguration the administratorConfiguration value to set. + * @return the KubernetesClusterPatchProperties object itself. + */ + public KubernetesClusterPatchProperties + withAdministratorConfiguration(AdministratorConfigurationPatch administratorConfiguration) { + this.administratorConfiguration = administratorConfiguration; + return this; + } + + /** + * Get the controlPlaneNodeConfiguration property: The defining characteristics of the control plane that can be + * patched for this Kubernetes cluster. + * * @return the controlPlaneNodeConfiguration value. */ public ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration() { @@ -44,11 +71,9 @@ public ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration() { } /** - * Set the controlPlaneNodeConfiguration property: ControlPlaneNodePatchConfiguration represents the properties of - * the control plane that can be patched for this Kubernetes cluster. - * - *

The defining characteristics of the control plane that can be patched for this Kubernetes cluster. - * + * Set the controlPlaneNodeConfiguration property: The defining characteristics of the control plane that can be + * patched for this Kubernetes cluster. + * * @param controlPlaneNodeConfiguration the controlPlaneNodeConfiguration value to set. * @return the KubernetesClusterPatchProperties object itself. */ @@ -59,9 +84,8 @@ public ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration() { } /** - * Get the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Get the kubernetesVersion property: The Kubernetes version for this cluster. + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -69,9 +93,8 @@ public String kubernetesVersion() { } /** - * Set the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Set the kubernetesVersion property: The Kubernetes version for this cluster. + * * @param kubernetesVersion the kubernetesVersion value to set. * @return the KubernetesClusterPatchProperties object itself. */ @@ -82,12 +105,60 @@ public KubernetesClusterPatchProperties withKubernetesVersion(String kubernetesV /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (administratorConfiguration() != null) { + administratorConfiguration().validate(); + } if (controlPlaneNodeConfiguration() != null) { controlPlaneNodeConfiguration().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("administratorConfiguration", this.administratorConfiguration); + jsonWriter.writeJsonField("controlPlaneNodeConfiguration", this.controlPlaneNodeConfiguration); + jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterPatchProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterPatchProperties. + */ + public static KubernetesClusterPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterPatchProperties deserializedKubernetesClusterPatchProperties + = new KubernetesClusterPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("administratorConfiguration".equals(fieldName)) { + deserializedKubernetesClusterPatchProperties.administratorConfiguration + = AdministratorConfigurationPatch.fromJson(reader); + } else if ("controlPlaneNodeConfiguration".equals(fieldName)) { + deserializedKubernetesClusterPatchProperties.controlPlaneNodeConfiguration + = ControlPlaneNodePatchConfiguration.fromJson(reader); + } else if ("kubernetesVersion".equals(fieldName)) { + deserializedKubernetesClusterPatchProperties.kubernetesVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterPatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterProperties.java index f755827b31a8e..b361ef1cdb086 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/KubernetesClusterProperties.java @@ -6,6 +6,10 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AadConfiguration; import com.azure.resourcemanager.networkcloud.models.AdministratorConfiguration; import com.azure.resourcemanager.networkcloud.models.AvailableUpgrade; @@ -17,142 +21,113 @@ import com.azure.resourcemanager.networkcloud.models.KubernetesClusterProvisioningState; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; import com.azure.resourcemanager.networkcloud.models.NetworkConfiguration; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** KubernetesClusterProperties represents the properties of Kubernetes cluster resource. */ +/** + * KubernetesClusterProperties represents the properties of Kubernetes cluster resource. + */ @Fluent -public final class KubernetesClusterProperties { +public final class KubernetesClusterProperties implements JsonSerializable { /* - * AadConfiguration represents the Azure Active Directory Integration properties. - * * The Azure Active Directory Integration properties. */ - @JsonProperty(value = "aadConfiguration") private AadConfiguration aadConfiguration; /* - * AdministratorConfiguration represents the administrative credentials that will be applied to the control plane - * and agent pool nodes in Kubernetes clusters. - * - * The administrative credentials that will be applied to the control plane and agent pool nodes that do not - * specify their own values. + * The administrative credentials that will be applied to the control plane and agent pool nodes that do not specify + * their own values. */ - @JsonProperty(value = "administratorConfiguration") private AdministratorConfiguration administratorConfiguration; /* * The full list of network resource IDs that are attached to this cluster, including those attached only to * specific agent pools. */ - @JsonProperty(value = "attachedNetworkIds", access = JsonProperty.Access.WRITE_ONLY) private List attachedNetworkIds; /* * The list of versions that this Kubernetes cluster can be upgraded to. */ - @JsonProperty(value = "availableUpgrades", access = JsonProperty.Access.WRITE_ONLY) private List availableUpgrades; /* * The resource ID of the Network Cloud cluster. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The resource ID of the connected cluster set up when this Kubernetes cluster is created. */ - @JsonProperty(value = "connectedClusterId", access = JsonProperty.Access.WRITE_ONLY) private String connectedClusterId; /* * The current running version of Kubernetes on the control plane. */ - @JsonProperty(value = "controlPlaneKubernetesVersion", access = JsonProperty.Access.WRITE_ONLY) private String controlPlaneKubernetesVersion; /* - * ControlPlaneNodeConfiguration represents the selection of virtual machines and size of the control plane for a - * Kubernetes cluster. - * * The defining characteristics of the control plane for this Kubernetes Cluster. */ - @JsonProperty(value = "controlPlaneNodeConfiguration", required = true) private ControlPlaneNodeConfiguration controlPlaneNodeConfiguration; /* * The current status of the Kubernetes cluster. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private KubernetesClusterDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The current feature settings. */ - @JsonProperty(value = "featureStatuses", access = JsonProperty.Access.WRITE_ONLY) private List featureStatuses; /* - * The agent pools that are created with this Kubernetes cluster for running critical system services and - * workloads. This data in this field is only used during creation, and the field will be empty following the - * creation of the Kubernetes Cluster. After creation, the management of agent pools is done using the agentPools - * sub-resource. + * The agent pools that are created with this Kubernetes cluster for running critical system services and workloads. + * This data in this field is only used during creation, and the field will be empty following the creation of the + * Kubernetes Cluster. After creation, the management of agent pools is done using the agentPools sub-resource. */ - @JsonProperty(value = "initialAgentPoolConfigurations", required = true) private List initialAgentPoolConfigurations; /* - * The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used - * will be resolved into this field after creation or update. + * The Kubernetes version for this cluster. */ - @JsonProperty(value = "kubernetesVersion", required = true) private String kubernetesVersion; /* - * ManagedResourceGroupConfiguration represents the configuration of the resource group managed by Azure. - * * The configuration of the managed resource group associated with the resource. */ - @JsonProperty(value = "managedResourceGroupConfiguration") private ManagedResourceGroupConfiguration managedResourceGroupConfiguration; /* - * NetworkConfiguration specifies the Kubernetes cluster network related configuration. - * * The configuration of the Kubernetes cluster networking, including the attachment of networks that span the * cluster. */ - @JsonProperty(value = "networkConfiguration", required = true) private NetworkConfiguration networkConfiguration; /* * The details of the nodes in this cluster. */ - @JsonProperty(value = "nodes", access = JsonProperty.Access.WRITE_ONLY) private List nodes; /* * The provisioning state of the Kubernetes cluster resource. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private KubernetesClusterProvisioningState provisioningState; - /** Creates an instance of KubernetesClusterProperties class. */ + /** + * Creates an instance of KubernetesClusterProperties class. + */ public KubernetesClusterProperties() { } /** - * Get the aadConfiguration property: AadConfiguration represents the Azure Active Directory Integration properties. - * - *

The Azure Active Directory Integration properties. - * + * Get the aadConfiguration property: The Azure Active Directory Integration properties. + * * @return the aadConfiguration value. */ public AadConfiguration aadConfiguration() { @@ -160,10 +135,8 @@ public AadConfiguration aadConfiguration() { } /** - * Set the aadConfiguration property: AadConfiguration represents the Azure Active Directory Integration properties. - * - *

The Azure Active Directory Integration properties. - * + * Set the aadConfiguration property: The Azure Active Directory Integration properties. + * * @param aadConfiguration the aadConfiguration value to set. * @return the KubernetesClusterProperties object itself. */ @@ -173,12 +146,9 @@ public KubernetesClusterProperties withAadConfiguration(AadConfiguration aadConf } /** - * Get the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrative credentials that will be applied to the control plane and agent pool nodes that do not - * specify their own values. - * + * Get the administratorConfiguration property: The administrative credentials that will be applied to the control + * plane and agent pool nodes that do not specify their own values. + * * @return the administratorConfiguration value. */ public AdministratorConfiguration administratorConfiguration() { @@ -186,12 +156,9 @@ public AdministratorConfiguration administratorConfiguration() { } /** - * Set the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrative credentials that will be applied to the control plane and agent pool nodes that do not - * specify their own values. - * + * Set the administratorConfiguration property: The administrative credentials that will be applied to the control + * plane and agent pool nodes that do not specify their own values. + * * @param administratorConfiguration the administratorConfiguration value to set. * @return the KubernetesClusterProperties object itself. */ @@ -204,7 +171,7 @@ public AdministratorConfiguration administratorConfiguration() { /** * Get the attachedNetworkIds property: The full list of network resource IDs that are attached to this cluster, * including those attached only to specific agent pools. - * + * * @return the attachedNetworkIds value. */ public List attachedNetworkIds() { @@ -213,7 +180,7 @@ public List attachedNetworkIds() { /** * Get the availableUpgrades property: The list of versions that this Kubernetes cluster can be upgraded to. - * + * * @return the availableUpgrades value. */ public List availableUpgrades() { @@ -222,7 +189,7 @@ public List availableUpgrades() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster. - * + * * @return the clusterId value. */ public String clusterId() { @@ -232,7 +199,7 @@ public String clusterId() { /** * Get the connectedClusterId property: The resource ID of the connected cluster set up when this Kubernetes cluster * is created. - * + * * @return the connectedClusterId value. */ public String connectedClusterId() { @@ -241,7 +208,7 @@ public String connectedClusterId() { /** * Get the controlPlaneKubernetesVersion property: The current running version of Kubernetes on the control plane. - * + * * @return the controlPlaneKubernetesVersion value. */ public String controlPlaneKubernetesVersion() { @@ -249,11 +216,9 @@ public String controlPlaneKubernetesVersion() { } /** - * Get the controlPlaneNodeConfiguration property: ControlPlaneNodeConfiguration represents the selection of virtual - * machines and size of the control plane for a Kubernetes cluster. - * - *

The defining characteristics of the control plane for this Kubernetes Cluster. - * + * Get the controlPlaneNodeConfiguration property: The defining characteristics of the control plane for this + * Kubernetes Cluster. + * * @return the controlPlaneNodeConfiguration value. */ public ControlPlaneNodeConfiguration controlPlaneNodeConfiguration() { @@ -261,11 +226,9 @@ public ControlPlaneNodeConfiguration controlPlaneNodeConfiguration() { } /** - * Set the controlPlaneNodeConfiguration property: ControlPlaneNodeConfiguration represents the selection of virtual - * machines and size of the control plane for a Kubernetes cluster. - * - *

The defining characteristics of the control plane for this Kubernetes Cluster. - * + * Set the controlPlaneNodeConfiguration property: The defining characteristics of the control plane for this + * Kubernetes Cluster. + * * @param controlPlaneNodeConfiguration the controlPlaneNodeConfiguration value to set. * @return the KubernetesClusterProperties object itself. */ @@ -277,7 +240,7 @@ public ControlPlaneNodeConfiguration controlPlaneNodeConfiguration() { /** * Get the detailedStatus property: The current status of the Kubernetes cluster. - * + * * @return the detailedStatus value. */ public KubernetesClusterDetailedStatus detailedStatus() { @@ -286,7 +249,7 @@ public KubernetesClusterDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -295,7 +258,7 @@ public String detailedStatusMessage() { /** * Get the featureStatuses property: The current feature settings. - * + * * @return the featureStatuses value. */ public List featureStatuses() { @@ -307,7 +270,7 @@ public List featureStatuses() { * for running critical system services and workloads. This data in this field is only used during creation, and the * field will be empty following the creation of the Kubernetes Cluster. After creation, the management of agent * pools is done using the agentPools sub-resource. - * + * * @return the initialAgentPoolConfigurations value. */ public List initialAgentPoolConfigurations() { @@ -319,7 +282,7 @@ public List initialAgentPoolConfigurations() { * for running critical system services and workloads. This data in this field is only used during creation, and the * field will be empty following the creation of the Kubernetes Cluster. After creation, the management of agent * pools is done using the agentPools sub-resource. - * + * * @param initialAgentPoolConfigurations the initialAgentPoolConfigurations value to set. * @return the KubernetesClusterProperties object itself. */ @@ -330,9 +293,8 @@ public List initialAgentPoolConfigurations() { } /** - * Get the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Get the kubernetesVersion property: The Kubernetes version for this cluster. + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -340,9 +302,8 @@ public String kubernetesVersion() { } /** - * Set the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Set the kubernetesVersion property: The Kubernetes version for this cluster. + * * @param kubernetesVersion the kubernetesVersion value to set. * @return the KubernetesClusterProperties object itself. */ @@ -352,11 +313,9 @@ public KubernetesClusterProperties withKubernetesVersion(String kubernetesVersio } /** - * Get the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Get the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { @@ -364,11 +323,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Set the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Set the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @param managedResourceGroupConfiguration the managedResourceGroupConfiguration value to set. * @return the KubernetesClusterProperties object itself. */ @@ -379,12 +336,9 @@ public ManagedResourceGroupConfiguration managedResourceGroupConfiguration() { } /** - * Get the networkConfiguration property: NetworkConfiguration specifies the Kubernetes cluster network related - * configuration. - * - *

The configuration of the Kubernetes cluster networking, including the attachment of networks that span the - * cluster. - * + * Get the networkConfiguration property: The configuration of the Kubernetes cluster networking, including the + * attachment of networks that span the cluster. + * * @return the networkConfiguration value. */ public NetworkConfiguration networkConfiguration() { @@ -392,12 +346,9 @@ public NetworkConfiguration networkConfiguration() { } /** - * Set the networkConfiguration property: NetworkConfiguration specifies the Kubernetes cluster network related - * configuration. - * - *

The configuration of the Kubernetes cluster networking, including the attachment of networks that span the - * cluster. - * + * Set the networkConfiguration property: The configuration of the Kubernetes cluster networking, including the + * attachment of networks that span the cluster. + * * @param networkConfiguration the networkConfiguration value to set. * @return the KubernetesClusterProperties object itself. */ @@ -408,7 +359,7 @@ public KubernetesClusterProperties withNetworkConfiguration(NetworkConfiguration /** * Get the nodes property: The details of the nodes in this cluster. - * + * * @return the nodes value. */ public List nodes() { @@ -417,7 +368,7 @@ public List nodes() { /** * Get the provisioningState property: The provisioning state of the Kubernetes cluster resource. - * + * * @return the provisioningState value. */ public KubernetesClusterProvisioningState provisioningState() { @@ -426,7 +377,7 @@ public KubernetesClusterProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -440,8 +391,9 @@ public void validate() { availableUpgrades().forEach(e -> e.validate()); } if (controlPlaneNodeConfiguration() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property controlPlaneNodeConfiguration in model" + " KubernetesClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property controlPlaneNodeConfiguration in model KubernetesClusterProperties")); } else { controlPlaneNodeConfiguration().validate(); } @@ -449,21 +401,24 @@ public void validate() { featureStatuses().forEach(e -> e.validate()); } if (initialAgentPoolConfigurations() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property initialAgentPoolConfigurations in model" + " KubernetesClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property initialAgentPoolConfigurations in model KubernetesClusterProperties")); } else { initialAgentPoolConfigurations().forEach(e -> e.validate()); } if (kubernetesVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property kubernetesVersion in model KubernetesClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property kubernetesVersion in model KubernetesClusterProperties")); } if (managedResourceGroupConfiguration() != null) { managedResourceGroupConfiguration().validate(); } if (networkConfiguration() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property networkConfiguration in model KubernetesClusterProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkConfiguration in model KubernetesClusterProperties")); } else { networkConfiguration().validate(); } @@ -473,4 +428,95 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(KubernetesClusterProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("controlPlaneNodeConfiguration", this.controlPlaneNodeConfiguration); + jsonWriter.writeArrayField("initialAgentPoolConfigurations", this.initialAgentPoolConfigurations, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); + jsonWriter.writeJsonField("networkConfiguration", this.networkConfiguration); + jsonWriter.writeJsonField("aadConfiguration", this.aadConfiguration); + jsonWriter.writeJsonField("administratorConfiguration", this.administratorConfiguration); + jsonWriter.writeJsonField("managedResourceGroupConfiguration", this.managedResourceGroupConfiguration); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KubernetesClusterProperties. + */ + public static KubernetesClusterProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterProperties deserializedKubernetesClusterProperties = new KubernetesClusterProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("controlPlaneNodeConfiguration".equals(fieldName)) { + deserializedKubernetesClusterProperties.controlPlaneNodeConfiguration + = ControlPlaneNodeConfiguration.fromJson(reader); + } else if ("initialAgentPoolConfigurations".equals(fieldName)) { + List initialAgentPoolConfigurations + = reader.readArray(reader1 -> InitialAgentPoolConfiguration.fromJson(reader1)); + deserializedKubernetesClusterProperties.initialAgentPoolConfigurations + = initialAgentPoolConfigurations; + } else if ("kubernetesVersion".equals(fieldName)) { + deserializedKubernetesClusterProperties.kubernetesVersion = reader.getString(); + } else if ("networkConfiguration".equals(fieldName)) { + deserializedKubernetesClusterProperties.networkConfiguration + = NetworkConfiguration.fromJson(reader); + } else if ("aadConfiguration".equals(fieldName)) { + deserializedKubernetesClusterProperties.aadConfiguration = AadConfiguration.fromJson(reader); + } else if ("administratorConfiguration".equals(fieldName)) { + deserializedKubernetesClusterProperties.administratorConfiguration + = AdministratorConfiguration.fromJson(reader); + } else if ("attachedNetworkIds".equals(fieldName)) { + List attachedNetworkIds = reader.readArray(reader1 -> reader1.getString()); + deserializedKubernetesClusterProperties.attachedNetworkIds = attachedNetworkIds; + } else if ("availableUpgrades".equals(fieldName)) { + List availableUpgrades + = reader.readArray(reader1 -> AvailableUpgrade.fromJson(reader1)); + deserializedKubernetesClusterProperties.availableUpgrades = availableUpgrades; + } else if ("clusterId".equals(fieldName)) { + deserializedKubernetesClusterProperties.clusterId = reader.getString(); + } else if ("connectedClusterId".equals(fieldName)) { + deserializedKubernetesClusterProperties.connectedClusterId = reader.getString(); + } else if ("controlPlaneKubernetesVersion".equals(fieldName)) { + deserializedKubernetesClusterProperties.controlPlaneKubernetesVersion = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedKubernetesClusterProperties.detailedStatus + = KubernetesClusterDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedKubernetesClusterProperties.detailedStatusMessage = reader.getString(); + } else if ("featureStatuses".equals(fieldName)) { + List featureStatuses = reader.readArray(reader1 -> FeatureStatus.fromJson(reader1)); + deserializedKubernetesClusterProperties.featureStatuses = featureStatuses; + } else if ("managedResourceGroupConfiguration".equals(fieldName)) { + deserializedKubernetesClusterProperties.managedResourceGroupConfiguration + = ManagedResourceGroupConfiguration.fromJson(reader); + } else if ("nodes".equals(fieldName)) { + List nodes + = reader.readArray(reader1 -> KubernetesClusterNode.fromJson(reader1)); + deserializedKubernetesClusterProperties.nodes = nodes; + } else if ("provisioningState".equals(fieldName)) { + deserializedKubernetesClusterProperties.provisioningState + = KubernetesClusterProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkInner.java index 2418c0a19e661..c69ca70fc028e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkInner.java @@ -8,49 +8,61 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.L2NetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.L2NetworkProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** L2Network represents a network that utilizes a single isolation domain set up for layer-2 resources. */ +/** + * L2Network represents a network that utilizes a single isolation domain set up for layer-2 resources. + */ @Fluent public final class L2NetworkInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * L2NetworkProperties represents properties of the L2 network. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private L2NetworkProperties innerProperties = new L2NetworkProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of L2NetworkInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of L2NetworkInner class. + */ public L2NetworkInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -58,11 +70,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the L2NetworkInner object itself. */ @@ -72,10 +81,8 @@ public L2NetworkInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: L2NetworkProperties represents properties of the L2 network. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private L2NetworkProperties innerProperties() { @@ -84,21 +91,55 @@ private L2NetworkProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public L2NetworkInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public L2NetworkInner withTags(Map tags) { super.withTags(tags); @@ -108,7 +149,7 @@ public L2NetworkInner withTags(Map tags) { /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -117,7 +158,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this L2 network is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -126,7 +167,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the L2 network. - * + * * @return the detailedStatus value. */ public L2NetworkDetailedStatus detailedStatus() { @@ -135,7 +176,7 @@ public L2NetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -145,7 +186,7 @@ public String detailedStatusMessage() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource ID(s) that are associated with this L2 network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -155,7 +196,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ public HybridAksPluginType hybridAksPluginType() { @@ -165,7 +206,7 @@ public HybridAksPluginType hybridAksPluginType() { /** * Set the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @param hybridAksPluginType the hybridAksPluginType value to set. * @return the L2NetworkInner object itself. */ @@ -180,7 +221,7 @@ public L2NetworkInner withHybridAksPluginType(HybridAksPluginType hybridAksPlugi /** * Get the interfaceName property: The default interface name for this L2 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -190,7 +231,7 @@ public String interfaceName() { /** * Set the interfaceName property: The default interface name for this L2 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @param interfaceName the interfaceName value to set. * @return the L2NetworkInner object itself. */ @@ -204,7 +245,7 @@ public L2NetworkInner withInterfaceName(String interfaceName) { /** * Get the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain. - * + * * @return the l2IsolationDomainId value. */ public String l2IsolationDomainId() { @@ -213,7 +254,7 @@ public String l2IsolationDomainId() { /** * Set the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain. - * + * * @param l2IsolationDomainId the l2IsolationDomainId value to set. * @return the L2NetworkInner object itself. */ @@ -227,7 +268,7 @@ public L2NetworkInner withL2IsolationDomainId(String l2IsolationDomainId) { /** * Get the provisioningState property: The provisioning state of the L2 network. - * + * * @return the provisioningState value. */ public L2NetworkProvisioningState provisioningState() { @@ -238,7 +279,7 @@ public L2NetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource ID(s), excluding any Hybrid AKS virtual machines, that are currently using this L2 * network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -247,23 +288,79 @@ public List virtualMachinesAssociatedIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property extendedLocation in model L2NetworkInner")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property extendedLocation in model L2NetworkInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model L2NetworkInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model L2NetworkInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(L2NetworkInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L2NetworkInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L2NetworkInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the L2NetworkInner. + */ + public static L2NetworkInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L2NetworkInner deserializedL2NetworkInner = new L2NetworkInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedL2NetworkInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedL2NetworkInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedL2NetworkInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedL2NetworkInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedL2NetworkInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedL2NetworkInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedL2NetworkInner.innerProperties = L2NetworkProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedL2NetworkInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedL2NetworkInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkProperties.java index 1577a4a7d2c3f..51c841ca72556 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L2NetworkProperties.java @@ -6,87 +6,85 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.L2NetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.L2NetworkProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** L2NetworkProperties represents properties of the L2 network. */ +/** + * L2NetworkProperties represents properties of the L2 network. + */ @Fluent -public final class L2NetworkProperties { +public final class L2NetworkProperties implements JsonSerializable { /* * The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. */ - @JsonProperty(value = "associatedResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List associatedResourceIds; /* * The resource ID of the Network Cloud cluster this L2 network is associated with. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The more detailed status of the L2 network. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private L2NetworkDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource ID(s) that are * associated with this L2 network. */ - @JsonProperty(value = "hybridAksClustersAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List hybridAksClustersAssociatedIds; /* * Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. * The network plugin type for Hybrid AKS. */ - @JsonProperty(value = "hybridAksPluginType") private HybridAksPluginType hybridAksPluginType; /* * The default interface name for this L2 network in the virtual machine. This name can be overridden by the name * supplied in the network attachment configuration of that virtual machine. */ - @JsonProperty(value = "interfaceName") private String interfaceName; /* * The resource ID of the Network Fabric l2IsolationDomain. */ - @JsonProperty(value = "l2IsolationDomainId", required = true) private String l2IsolationDomainId; /* * The provisioning state of the L2 network. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private L2NetworkProvisioningState provisioningState; /* * Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource ID(s), excluding any * Hybrid AKS virtual machines, that are currently using this L2 network. */ - @JsonProperty(value = "virtualMachinesAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List virtualMachinesAssociatedIds; - /** Creates an instance of L2NetworkProperties class. */ + /** + * Creates an instance of L2NetworkProperties class. + */ public L2NetworkProperties() { } /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -95,7 +93,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this L2 network is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -104,7 +102,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the L2 network. - * + * * @return the detailedStatus value. */ public L2NetworkDetailedStatus detailedStatus() { @@ -113,7 +111,7 @@ public L2NetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -123,7 +121,7 @@ public String detailedStatusMessage() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource ID(s) that are associated with this L2 network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -133,7 +131,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ public HybridAksPluginType hybridAksPluginType() { @@ -143,7 +141,7 @@ public HybridAksPluginType hybridAksPluginType() { /** * Set the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @param hybridAksPluginType the hybridAksPluginType value to set. * @return the L2NetworkProperties object itself. */ @@ -155,7 +153,7 @@ public L2NetworkProperties withHybridAksPluginType(HybridAksPluginType hybridAks /** * Get the interfaceName property: The default interface name for this L2 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -165,7 +163,7 @@ public String interfaceName() { /** * Set the interfaceName property: The default interface name for this L2 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @param interfaceName the interfaceName value to set. * @return the L2NetworkProperties object itself. */ @@ -176,7 +174,7 @@ public L2NetworkProperties withInterfaceName(String interfaceName) { /** * Get the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain. - * + * * @return the l2IsolationDomainId value. */ public String l2IsolationDomainId() { @@ -185,7 +183,7 @@ public String l2IsolationDomainId() { /** * Set the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain. - * + * * @param l2IsolationDomainId the l2IsolationDomainId value to set. * @return the L2NetworkProperties object itself. */ @@ -196,7 +194,7 @@ public L2NetworkProperties withL2IsolationDomainId(String l2IsolationDomainId) { /** * Get the provisioningState property: The provisioning state of the L2 network. - * + * * @return the provisioningState value. */ public L2NetworkProvisioningState provisioningState() { @@ -207,7 +205,7 @@ public L2NetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource ID(s), excluding any Hybrid AKS virtual machines, that are currently using this L2 * network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -216,15 +214,80 @@ public List virtualMachinesAssociatedIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (l2IsolationDomainId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property l2IsolationDomainId in model L2NetworkProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property l2IsolationDomainId in model L2NetworkProperties")); } } private static final ClientLogger LOGGER = new ClientLogger(L2NetworkProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("l2IsolationDomainId", this.l2IsolationDomainId); + jsonWriter.writeStringField("hybridAksPluginType", + this.hybridAksPluginType == null ? null : this.hybridAksPluginType.toString()); + jsonWriter.writeStringField("interfaceName", this.interfaceName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L2NetworkProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L2NetworkProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the L2NetworkProperties. + */ + public static L2NetworkProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L2NetworkProperties deserializedL2NetworkProperties = new L2NetworkProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("l2IsolationDomainId".equals(fieldName)) { + deserializedL2NetworkProperties.l2IsolationDomainId = reader.getString(); + } else if ("associatedResourceIds".equals(fieldName)) { + List associatedResourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedL2NetworkProperties.associatedResourceIds = associatedResourceIds; + } else if ("clusterId".equals(fieldName)) { + deserializedL2NetworkProperties.clusterId = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedL2NetworkProperties.detailedStatus + = L2NetworkDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedL2NetworkProperties.detailedStatusMessage = reader.getString(); + } else if ("hybridAksClustersAssociatedIds".equals(fieldName)) { + List hybridAksClustersAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedL2NetworkProperties.hybridAksClustersAssociatedIds = hybridAksClustersAssociatedIds; + } else if ("hybridAksPluginType".equals(fieldName)) { + deserializedL2NetworkProperties.hybridAksPluginType + = HybridAksPluginType.fromString(reader.getString()); + } else if ("interfaceName".equals(fieldName)) { + deserializedL2NetworkProperties.interfaceName = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedL2NetworkProperties.provisioningState + = L2NetworkProvisioningState.fromString(reader.getString()); + } else if ("virtualMachinesAssociatedIds".equals(fieldName)) { + List virtualMachinesAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedL2NetworkProperties.virtualMachinesAssociatedIds = virtualMachinesAssociatedIds; + } else { + reader.skipChildren(); + } + } + + return deserializedL2NetworkProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkInner.java index 2b07fe114c541..64483dd58fe85 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkInner.java @@ -8,51 +8,63 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.IpAllocationType; import com.azure.resourcemanager.networkcloud.models.L3NetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.L3NetworkProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** L3Network represents a network that utilizes a single isolation domain set up for layer-3 resources. */ +/** + * L3Network represents a network that utilizes a single isolation domain set up for layer-3 resources. + */ @Fluent public final class L3NetworkInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * L3NetworkProperties represents properties of the L3 network. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private L3NetworkProperties innerProperties = new L3NetworkProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of L3NetworkInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of L3NetworkInner class. + */ public L3NetworkInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -60,11 +72,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the L3NetworkInner object itself. */ @@ -74,10 +83,8 @@ public L3NetworkInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: L3NetworkProperties represents properties of the L3 network. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private L3NetworkProperties innerProperties() { @@ -86,21 +93,55 @@ private L3NetworkProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public L3NetworkInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public L3NetworkInner withTags(Map tags) { super.withTags(tags); @@ -110,7 +151,7 @@ public L3NetworkInner withTags(Map tags) { /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -119,7 +160,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this L3 network is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -128,7 +169,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the L3 network. - * + * * @return the detailedStatus value. */ public L3NetworkDetailedStatus detailedStatus() { @@ -137,7 +178,7 @@ public L3NetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -147,7 +188,7 @@ public String detailedStatusMessage() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this L3 network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -158,7 +199,7 @@ public List hybridAksClustersAssociatedIds() { * Get the hybridAksIpamEnabled property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the network * attachment definition injected into the Hybrid AKS Cluster. - * + * * @return the hybridAksIpamEnabled value. */ public HybridAksIpamEnabled hybridAksIpamEnabled() { @@ -169,7 +210,7 @@ public HybridAksIpamEnabled hybridAksIpamEnabled() { * Set the hybridAksIpamEnabled property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the network * attachment definition injected into the Hybrid AKS Cluster. - * + * * @param hybridAksIpamEnabled the hybridAksIpamEnabled value to set. * @return the L3NetworkInner object itself. */ @@ -184,7 +225,7 @@ public L3NetworkInner withHybridAksIpamEnabled(HybridAksIpamEnabled hybridAksIpa /** * Get the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ public HybridAksPluginType hybridAksPluginType() { @@ -194,7 +235,7 @@ public HybridAksPluginType hybridAksPluginType() { /** * Set the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @param hybridAksPluginType the hybridAksPluginType value to set. * @return the L3NetworkInner object itself. */ @@ -209,7 +250,7 @@ public L3NetworkInner withHybridAksPluginType(HybridAksPluginType hybridAksPlugi /** * Get the interfaceName property: The default interface name for this L3 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -219,7 +260,7 @@ public String interfaceName() { /** * Set the interfaceName property: The default interface name for this L3 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @param interfaceName the interfaceName value to set. * @return the L3NetworkInner object itself. */ @@ -233,7 +274,7 @@ public L3NetworkInner withInterfaceName(String interfaceName) { /** * Get the ipAllocationType property: The type of the IP address allocation, defaulted to "DualStack". - * + * * @return the ipAllocationType value. */ public IpAllocationType ipAllocationType() { @@ -242,7 +283,7 @@ public IpAllocationType ipAllocationType() { /** * Set the ipAllocationType property: The type of the IP address allocation, defaulted to "DualStack". - * + * * @param ipAllocationType the ipAllocationType value to set. * @return the L3NetworkInner object itself. */ @@ -256,8 +297,9 @@ public L3NetworkInner withIpAllocationType(IpAllocationType ipAllocationType) { /** * Get the ipv4ConnectedPrefix property: The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV4 or DualStack. - * + * allocation type + * is IPV4 or DualStack. + * * @return the ipv4ConnectedPrefix value. */ public String ipv4ConnectedPrefix() { @@ -266,8 +308,9 @@ public String ipv4ConnectedPrefix() { /** * Set the ipv4ConnectedPrefix property: The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV4 or DualStack. - * + * allocation type + * is IPV4 or DualStack. + * * @param ipv4ConnectedPrefix the ipv4ConnectedPrefix value to set. * @return the L3NetworkInner object itself. */ @@ -281,8 +324,9 @@ public L3NetworkInner withIpv4ConnectedPrefix(String ipv4ConnectedPrefix) { /** * Get the ipv6ConnectedPrefix property: The IPV6 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV6 or DualStack. - * + * allocation type + * is IPV6 or DualStack. + * * @return the ipv6ConnectedPrefix value. */ public String ipv6ConnectedPrefix() { @@ -291,8 +335,9 @@ public String ipv6ConnectedPrefix() { /** * Set the ipv6ConnectedPrefix property: The IPV6 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV6 or DualStack. - * + * allocation type + * is IPV6 or DualStack. + * * @param ipv6ConnectedPrefix the ipv6ConnectedPrefix value to set. * @return the L3NetworkInner object itself. */ @@ -306,7 +351,7 @@ public L3NetworkInner withIpv6ConnectedPrefix(String ipv6ConnectedPrefix) { /** * Get the l3IsolationDomainId property: The resource ID of the Network Fabric l3IsolationDomain. - * + * * @return the l3IsolationDomainId value. */ public String l3IsolationDomainId() { @@ -315,7 +360,7 @@ public String l3IsolationDomainId() { /** * Set the l3IsolationDomainId property: The resource ID of the Network Fabric l3IsolationDomain. - * + * * @param l3IsolationDomainId the l3IsolationDomainId value to set. * @return the L3NetworkInner object itself. */ @@ -329,7 +374,7 @@ public L3NetworkInner withL3IsolationDomainId(String l3IsolationDomainId) { /** * Get the provisioningState property: The provisioning state of the L3 network. - * + * * @return the provisioningState value. */ public L3NetworkProvisioningState provisioningState() { @@ -340,7 +385,7 @@ public L3NetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this L3 * network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -349,7 +394,7 @@ public List virtualMachinesAssociatedIds() { /** * Get the vlan property: The VLAN from the l3IsolationDomain that is used for this network. - * + * * @return the vlan value. */ public long vlan() { @@ -358,7 +403,7 @@ public long vlan() { /** * Set the vlan property: The VLAN from the l3IsolationDomain that is used for this network. - * + * * @param vlan the vlan value to set. * @return the L3NetworkInner object itself. */ @@ -372,23 +417,79 @@ public L3NetworkInner withVlan(long vlan) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property extendedLocation in model L3NetworkInner")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property extendedLocation in model L3NetworkInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model L3NetworkInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model L3NetworkInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(L3NetworkInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L3NetworkInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L3NetworkInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the L3NetworkInner. + */ + public static L3NetworkInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L3NetworkInner deserializedL3NetworkInner = new L3NetworkInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedL3NetworkInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedL3NetworkInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedL3NetworkInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedL3NetworkInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedL3NetworkInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedL3NetworkInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedL3NetworkInner.innerProperties = L3NetworkProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedL3NetworkInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedL3NetworkInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkProperties.java index 11c93d1238f06..775f4d2784383 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/L3NetworkProperties.java @@ -6,123 +6,116 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.IpAllocationType; import com.azure.resourcemanager.networkcloud.models.L3NetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.L3NetworkProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** L3NetworkProperties represents properties of the L3 network. */ +/** + * L3NetworkProperties represents properties of the L3 network. + */ @Fluent -public final class L3NetworkProperties { +public final class L3NetworkProperties implements JsonSerializable { /* * The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. */ - @JsonProperty(value = "associatedResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List associatedResourceIds; /* * The resource ID of the Network Cloud cluster this L3 network is associated with. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The more detailed status of the L3 network. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private L3NetworkDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are * associated with this L3 network. */ - @JsonProperty(value = "hybridAksClustersAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List hybridAksClustersAssociatedIds; /* * Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. - * The indicator of whether or not to disable IPAM allocation on the network attachment definition injected into - * the Hybrid AKS Cluster. + * The indicator of whether or not to disable IPAM allocation on the network attachment definition injected into the + * Hybrid AKS Cluster. */ - @JsonProperty(value = "hybridAksIpamEnabled") private HybridAksIpamEnabled hybridAksIpamEnabled; /* * Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. * The network plugin type for Hybrid AKS. */ - @JsonProperty(value = "hybridAksPluginType") private HybridAksPluginType hybridAksPluginType; /* * The default interface name for this L3 network in the virtual machine. This name can be overridden by the name * supplied in the network attachment configuration of that virtual machine. */ - @JsonProperty(value = "interfaceName") private String interfaceName; /* * The type of the IP address allocation, defaulted to "DualStack". */ - @JsonProperty(value = "ipAllocationType") private IpAllocationType ipAllocationType; /* * The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP allocation type * is IPV4 or DualStack. */ - @JsonProperty(value = "ipv4ConnectedPrefix") private String ipv4ConnectedPrefix; /* * The IPV6 prefix (CIDR) assigned to this L3 network. Required when the IP allocation type * is IPV6 or DualStack. */ - @JsonProperty(value = "ipv6ConnectedPrefix") private String ipv6ConnectedPrefix; /* * The resource ID of the Network Fabric l3IsolationDomain. */ - @JsonProperty(value = "l3IsolationDomainId", required = true) private String l3IsolationDomainId; /* * The provisioning state of the L3 network. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private L3NetworkProvisioningState provisioningState; /* * Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any * Hybrid AKS virtual machines, that are currently using this L3 network. */ - @JsonProperty(value = "virtualMachinesAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List virtualMachinesAssociatedIds; /* * The VLAN from the l3IsolationDomain that is used for this network. */ - @JsonProperty(value = "vlan", required = true) private long vlan; - /** Creates an instance of L3NetworkProperties class. */ + /** + * Creates an instance of L3NetworkProperties class. + */ public L3NetworkProperties() { } /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -131,7 +124,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this L3 network is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -140,7 +133,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the L3 network. - * + * * @return the detailedStatus value. */ public L3NetworkDetailedStatus detailedStatus() { @@ -149,7 +142,7 @@ public L3NetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -159,7 +152,7 @@ public String detailedStatusMessage() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this L3 network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -170,7 +163,7 @@ public List hybridAksClustersAssociatedIds() { * Get the hybridAksIpamEnabled property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the network * attachment definition injected into the Hybrid AKS Cluster. - * + * * @return the hybridAksIpamEnabled value. */ public HybridAksIpamEnabled hybridAksIpamEnabled() { @@ -181,7 +174,7 @@ public HybridAksIpamEnabled hybridAksIpamEnabled() { * Set the hybridAksIpamEnabled property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the network * attachment definition injected into the Hybrid AKS Cluster. - * + * * @param hybridAksIpamEnabled the hybridAksIpamEnabled value to set. * @return the L3NetworkProperties object itself. */ @@ -193,7 +186,7 @@ public L3NetworkProperties withHybridAksIpamEnabled(HybridAksIpamEnabled hybridA /** * Get the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ public HybridAksPluginType hybridAksPluginType() { @@ -203,7 +196,7 @@ public HybridAksPluginType hybridAksPluginType() { /** * Set the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @param hybridAksPluginType the hybridAksPluginType value to set. * @return the L3NetworkProperties object itself. */ @@ -215,7 +208,7 @@ public L3NetworkProperties withHybridAksPluginType(HybridAksPluginType hybridAks /** * Get the interfaceName property: The default interface name for this L3 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -225,7 +218,7 @@ public String interfaceName() { /** * Set the interfaceName property: The default interface name for this L3 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @param interfaceName the interfaceName value to set. * @return the L3NetworkProperties object itself. */ @@ -236,7 +229,7 @@ public L3NetworkProperties withInterfaceName(String interfaceName) { /** * Get the ipAllocationType property: The type of the IP address allocation, defaulted to "DualStack". - * + * * @return the ipAllocationType value. */ public IpAllocationType ipAllocationType() { @@ -245,7 +238,7 @@ public IpAllocationType ipAllocationType() { /** * Set the ipAllocationType property: The type of the IP address allocation, defaulted to "DualStack". - * + * * @param ipAllocationType the ipAllocationType value to set. * @return the L3NetworkProperties object itself. */ @@ -256,8 +249,9 @@ public L3NetworkProperties withIpAllocationType(IpAllocationType ipAllocationTyp /** * Get the ipv4ConnectedPrefix property: The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV4 or DualStack. - * + * allocation type + * is IPV4 or DualStack. + * * @return the ipv4ConnectedPrefix value. */ public String ipv4ConnectedPrefix() { @@ -266,8 +260,9 @@ public String ipv4ConnectedPrefix() { /** * Set the ipv4ConnectedPrefix property: The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV4 or DualStack. - * + * allocation type + * is IPV4 or DualStack. + * * @param ipv4ConnectedPrefix the ipv4ConnectedPrefix value to set. * @return the L3NetworkProperties object itself. */ @@ -278,8 +273,9 @@ public L3NetworkProperties withIpv4ConnectedPrefix(String ipv4ConnectedPrefix) { /** * Get the ipv6ConnectedPrefix property: The IPV6 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV6 or DualStack. - * + * allocation type + * is IPV6 or DualStack. + * * @return the ipv6ConnectedPrefix value. */ public String ipv6ConnectedPrefix() { @@ -288,8 +284,9 @@ public String ipv6ConnectedPrefix() { /** * Set the ipv6ConnectedPrefix property: The IPV6 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV6 or DualStack. - * + * allocation type + * is IPV6 or DualStack. + * * @param ipv6ConnectedPrefix the ipv6ConnectedPrefix value to set. * @return the L3NetworkProperties object itself. */ @@ -300,7 +297,7 @@ public L3NetworkProperties withIpv6ConnectedPrefix(String ipv6ConnectedPrefix) { /** * Get the l3IsolationDomainId property: The resource ID of the Network Fabric l3IsolationDomain. - * + * * @return the l3IsolationDomainId value. */ public String l3IsolationDomainId() { @@ -309,7 +306,7 @@ public String l3IsolationDomainId() { /** * Set the l3IsolationDomainId property: The resource ID of the Network Fabric l3IsolationDomain. - * + * * @param l3IsolationDomainId the l3IsolationDomainId value to set. * @return the L3NetworkProperties object itself. */ @@ -320,7 +317,7 @@ public L3NetworkProperties withL3IsolationDomainId(String l3IsolationDomainId) { /** * Get the provisioningState property: The provisioning state of the L3 network. - * + * * @return the provisioningState value. */ public L3NetworkProvisioningState provisioningState() { @@ -331,7 +328,7 @@ public L3NetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this L3 * network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -340,7 +337,7 @@ public List virtualMachinesAssociatedIds() { /** * Get the vlan property: The VLAN from the l3IsolationDomain that is used for this network. - * + * * @return the vlan value. */ public long vlan() { @@ -349,7 +346,7 @@ public long vlan() { /** * Set the vlan property: The VLAN from the l3IsolationDomain that is used for this network. - * + * * @param vlan the vlan value to set. * @return the L3NetworkProperties object itself. */ @@ -360,15 +357,98 @@ public L3NetworkProperties withVlan(long vlan) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (l3IsolationDomainId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property l3IsolationDomainId in model L3NetworkProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property l3IsolationDomainId in model L3NetworkProperties")); } } private static final ClientLogger LOGGER = new ClientLogger(L3NetworkProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("l3IsolationDomainId", this.l3IsolationDomainId); + jsonWriter.writeLongField("vlan", this.vlan); + jsonWriter.writeStringField("hybridAksIpamEnabled", + this.hybridAksIpamEnabled == null ? null : this.hybridAksIpamEnabled.toString()); + jsonWriter.writeStringField("hybridAksPluginType", + this.hybridAksPluginType == null ? null : this.hybridAksPluginType.toString()); + jsonWriter.writeStringField("interfaceName", this.interfaceName); + jsonWriter.writeStringField("ipAllocationType", + this.ipAllocationType == null ? null : this.ipAllocationType.toString()); + jsonWriter.writeStringField("ipv4ConnectedPrefix", this.ipv4ConnectedPrefix); + jsonWriter.writeStringField("ipv6ConnectedPrefix", this.ipv6ConnectedPrefix); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L3NetworkProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L3NetworkProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the L3NetworkProperties. + */ + public static L3NetworkProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L3NetworkProperties deserializedL3NetworkProperties = new L3NetworkProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("l3IsolationDomainId".equals(fieldName)) { + deserializedL3NetworkProperties.l3IsolationDomainId = reader.getString(); + } else if ("vlan".equals(fieldName)) { + deserializedL3NetworkProperties.vlan = reader.getLong(); + } else if ("associatedResourceIds".equals(fieldName)) { + List associatedResourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedL3NetworkProperties.associatedResourceIds = associatedResourceIds; + } else if ("clusterId".equals(fieldName)) { + deserializedL3NetworkProperties.clusterId = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedL3NetworkProperties.detailedStatus + = L3NetworkDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedL3NetworkProperties.detailedStatusMessage = reader.getString(); + } else if ("hybridAksClustersAssociatedIds".equals(fieldName)) { + List hybridAksClustersAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedL3NetworkProperties.hybridAksClustersAssociatedIds = hybridAksClustersAssociatedIds; + } else if ("hybridAksIpamEnabled".equals(fieldName)) { + deserializedL3NetworkProperties.hybridAksIpamEnabled + = HybridAksIpamEnabled.fromString(reader.getString()); + } else if ("hybridAksPluginType".equals(fieldName)) { + deserializedL3NetworkProperties.hybridAksPluginType + = HybridAksPluginType.fromString(reader.getString()); + } else if ("interfaceName".equals(fieldName)) { + deserializedL3NetworkProperties.interfaceName = reader.getString(); + } else if ("ipAllocationType".equals(fieldName)) { + deserializedL3NetworkProperties.ipAllocationType = IpAllocationType.fromString(reader.getString()); + } else if ("ipv4ConnectedPrefix".equals(fieldName)) { + deserializedL3NetworkProperties.ipv4ConnectedPrefix = reader.getString(); + } else if ("ipv6ConnectedPrefix".equals(fieldName)) { + deserializedL3NetworkProperties.ipv6ConnectedPrefix = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedL3NetworkProperties.provisioningState + = L3NetworkProvisioningState.fromString(reader.getString()); + } else if ("virtualMachinesAssociatedIds".equals(fieldName)) { + List virtualMachinesAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedL3NetworkProperties.virtualMachinesAssociatedIds = virtualMachinesAssociatedIds; + } else { + reader.skipChildren(); + } + } + + return deserializedL3NetworkProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/MachineSkuProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/MachineSkuProperties.java index 247a6080220f1..1437155f0d722 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/MachineSkuProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/MachineSkuProperties.java @@ -5,88 +5,85 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.BootstrapProtocol; import com.azure.resourcemanager.networkcloud.models.MachineDisk; import com.azure.resourcemanager.networkcloud.models.NetworkInterface; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** MachineSkuProperties represents the properties of the machine SKU. */ +/** + * MachineSkuProperties represents the properties of the machine SKU. + */ @Immutable -public final class MachineSkuProperties { +public final class MachineSkuProperties implements JsonSerializable { /* * The type of bootstrap protocol used. */ - @JsonProperty(value = "bootstrapProtocol", access = JsonProperty.Access.WRITE_ONLY) private BootstrapProtocol bootstrapProtocol; /* * The count of CPU cores for this machine. */ - @JsonProperty(value = "cpuCores", access = JsonProperty.Access.WRITE_ONLY) private Long cpuCores; /* * The count of CPU sockets for this machine. */ - @JsonProperty(value = "cpuSockets", access = JsonProperty.Access.WRITE_ONLY) private Long cpuSockets; /* * The list of disks. */ - @JsonProperty(value = "disks", access = JsonProperty.Access.WRITE_ONLY) private List disks; /* * The generation of the architecture. */ - @JsonProperty(value = "generation", access = JsonProperty.Access.WRITE_ONLY) private String generation; /* * The hardware version of the machine. */ - @JsonProperty(value = "hardwareVersion", access = JsonProperty.Access.WRITE_ONLY) private String hardwareVersion; /* - * The maximum amount of memory in GB. + * The maximum amount of memory. Measured in gibibytes. */ - @JsonProperty(value = "memoryCapacityGB", access = JsonProperty.Access.WRITE_ONLY) private Long memoryCapacityGB; /* * The model of the machine. */ - @JsonProperty(value = "model", access = JsonProperty.Access.WRITE_ONLY) private String model; /* * The list of network interfaces. */ - @JsonProperty(value = "networkInterfaces", access = JsonProperty.Access.WRITE_ONLY) private List networkInterfaces; /* * The count of SMT and physical core threads for this machine. */ - @JsonProperty(value = "totalThreads", access = JsonProperty.Access.WRITE_ONLY) private Long totalThreads; /* * The make of the machine. */ - @JsonProperty(value = "vendor", access = JsonProperty.Access.WRITE_ONLY) private String vendor; - /** Creates an instance of MachineSkuProperties class. */ + /** + * Creates an instance of MachineSkuProperties class. + */ public MachineSkuProperties() { } /** * Get the bootstrapProtocol property: The type of bootstrap protocol used. - * + * * @return the bootstrapProtocol value. */ public BootstrapProtocol bootstrapProtocol() { @@ -95,7 +92,7 @@ public BootstrapProtocol bootstrapProtocol() { /** * Get the cpuCores property: The count of CPU cores for this machine. - * + * * @return the cpuCores value. */ public Long cpuCores() { @@ -104,7 +101,7 @@ public Long cpuCores() { /** * Get the cpuSockets property: The count of CPU sockets for this machine. - * + * * @return the cpuSockets value. */ public Long cpuSockets() { @@ -113,7 +110,7 @@ public Long cpuSockets() { /** * Get the disks property: The list of disks. - * + * * @return the disks value. */ public List disks() { @@ -122,7 +119,7 @@ public List disks() { /** * Get the generation property: The generation of the architecture. - * + * * @return the generation value. */ public String generation() { @@ -131,7 +128,7 @@ public String generation() { /** * Get the hardwareVersion property: The hardware version of the machine. - * + * * @return the hardwareVersion value. */ public String hardwareVersion() { @@ -139,8 +136,8 @@ public String hardwareVersion() { } /** - * Get the memoryCapacityGB property: The maximum amount of memory in GB. - * + * Get the memoryCapacityGB property: The maximum amount of memory. Measured in gibibytes. + * * @return the memoryCapacityGB value. */ public Long memoryCapacityGB() { @@ -149,7 +146,7 @@ public Long memoryCapacityGB() { /** * Get the model property: The model of the machine. - * + * * @return the model value. */ public String model() { @@ -158,7 +155,7 @@ public String model() { /** * Get the networkInterfaces property: The list of network interfaces. - * + * * @return the networkInterfaces value. */ public List networkInterfaces() { @@ -167,7 +164,7 @@ public List networkInterfaces() { /** * Get the totalThreads property: The count of SMT and physical core threads for this machine. - * + * * @return the totalThreads value. */ public Long totalThreads() { @@ -176,7 +173,7 @@ public Long totalThreads() { /** * Get the vendor property: The make of the machine. - * + * * @return the vendor value. */ public String vendor() { @@ -185,7 +182,7 @@ public String vendor() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -196,4 +193,63 @@ public void validate() { networkInterfaces().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineSkuProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineSkuProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the MachineSkuProperties. + */ + public static MachineSkuProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineSkuProperties deserializedMachineSkuProperties = new MachineSkuProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("bootstrapProtocol".equals(fieldName)) { + deserializedMachineSkuProperties.bootstrapProtocol + = BootstrapProtocol.fromString(reader.getString()); + } else if ("cpuCores".equals(fieldName)) { + deserializedMachineSkuProperties.cpuCores = reader.getNullable(JsonReader::getLong); + } else if ("cpuSockets".equals(fieldName)) { + deserializedMachineSkuProperties.cpuSockets = reader.getNullable(JsonReader::getLong); + } else if ("disks".equals(fieldName)) { + List disks = reader.readArray(reader1 -> MachineDisk.fromJson(reader1)); + deserializedMachineSkuProperties.disks = disks; + } else if ("generation".equals(fieldName)) { + deserializedMachineSkuProperties.generation = reader.getString(); + } else if ("hardwareVersion".equals(fieldName)) { + deserializedMachineSkuProperties.hardwareVersion = reader.getString(); + } else if ("memoryCapacityGB".equals(fieldName)) { + deserializedMachineSkuProperties.memoryCapacityGB = reader.getNullable(JsonReader::getLong); + } else if ("model".equals(fieldName)) { + deserializedMachineSkuProperties.model = reader.getString(); + } else if ("networkInterfaces".equals(fieldName)) { + List networkInterfaces + = reader.readArray(reader1 -> NetworkInterface.fromJson(reader1)); + deserializedMachineSkuProperties.networkInterfaces = networkInterfaces; + } else if ("totalThreads".equals(fieldName)) { + deserializedMachineSkuProperties.totalThreads = reader.getNullable(JsonReader::getLong); + } else if ("vendor".equals(fieldName)) { + deserializedMachineSkuProperties.vendor = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineSkuProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationInner.java index ab86f70e73e57..a9ce199734abc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationInner.java @@ -5,59 +5,60 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ActionType; import com.azure.resourcemanager.networkcloud.models.OperationDisplay; import com.azure.resourcemanager.networkcloud.models.Origin; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; /** * REST API Operation - * - *

Details of a REST API operation, returned from the Resource Provider Operations API. + * + * Details of a REST API operation, returned from the Resource Provider Operations API. */ @Fluent -public final class OperationInner { +public final class OperationInner implements JsonSerializable { /* * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for * ARM/control-plane operations. */ - @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY) private Boolean isDataAction; /* * Localized display information for this particular operation. */ - @JsonProperty(value = "display") private OperationDisplay display; /* * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default * value is "user,system" */ - @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY) private Origin origin; /* * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ - @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY) private ActionType actionType; - /** Creates an instance of OperationInner class. */ + /** + * Creates an instance of OperationInner class. + */ public OperationInner() { } /** * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". - * + * * @return the name value. */ public String name() { @@ -67,7 +68,7 @@ public String name() { /** * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane * operations and "false" for ARM/control-plane operations. - * + * * @return the isDataAction value. */ public Boolean isDataAction() { @@ -76,7 +77,7 @@ public Boolean isDataAction() { /** * Get the display property: Localized display information for this particular operation. - * + * * @return the display value. */ public OperationDisplay display() { @@ -85,7 +86,7 @@ public OperationDisplay display() { /** * Set the display property: Localized display information for this particular operation. - * + * * @param display the display value to set. * @return the OperationInner object itself. */ @@ -97,7 +98,7 @@ public OperationInner withDisplay(OperationDisplay display) { /** * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and * audit logs UX. Default value is "user,system". - * + * * @return the origin value. */ public Origin origin() { @@ -107,7 +108,7 @@ public Origin origin() { /** * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal * only APIs. - * + * * @return the actionType value. */ public ActionType actionType() { @@ -116,7 +117,7 @@ public ActionType actionType() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -124,4 +125,48 @@ public void validate() { display().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("display", this.display); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationInner. + */ + public static OperationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationInner deserializedOperationInner = new OperationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedOperationInner.name = reader.getString(); + } else if ("isDataAction".equals(fieldName)) { + deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean); + } else if ("display".equals(fieldName)) { + deserializedOperationInner.display = OperationDisplay.fromJson(reader); + } else if ("origin".equals(fieldName)) { + deserializedOperationInner.origin = Origin.fromString(reader.getString()); + } else if ("actionType".equals(fieldName)) { + deserializedOperationInner.actionType = ActionType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultInner.java index 9398e2d1b0d08..0873f0fd03dad 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultInner.java @@ -6,105 +6,107 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.exception.ManagementError; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; -/** The current status of an async operation. */ +/** + * The current status of an async operation. + */ @Fluent -public final class OperationStatusResultInner { +public final class OperationStatusResultInner implements JsonSerializable { /* - * Fully qualified ID for the async operation. + * The end time of the operation. */ - @JsonProperty(value = "id") - private String id; + private OffsetDateTime endTime; /* - * Fully qualified ID of the resource against which the original async operation was started. + * If present, details of the operation error. */ - @JsonProperty(value = "resourceId", access = JsonProperty.Access.WRITE_ONLY) - private String resourceId; + private ManagementError error; + + /* + * Fully qualified ID for the async operation. + */ + private String id; /* * Name of the async operation. */ - @JsonProperty(value = "name") private String name; /* - * Operation status. + * The operations list. */ - @JsonProperty(value = "status", required = true) - private String status; + private List operations; /* * Percent of the operation that is complete. */ - @JsonProperty(value = "percentComplete") private Float percentComplete; /* - * The start time of the operation. + * The additional properties of the operation status result. */ - @JsonProperty(value = "startTime") - private OffsetDateTime startTime; + private OperationStatusResultProperties innerProperties; /* - * The end time of the operation. + * Fully qualified ID of the resource against which the original async operation was started. */ - @JsonProperty(value = "endTime") - private OffsetDateTime endTime; + private String resourceId; /* - * The operations list. + * The start time of the operation. */ - @JsonProperty(value = "operations") - private List operations; + private OffsetDateTime startTime; /* - * If present, details of the operation error. + * Operation status. */ - @JsonProperty(value = "error") - private ManagementError error; + private String status; - /** Creates an instance of OperationStatusResultInner class. */ + /** + * Creates an instance of OperationStatusResultInner class. + */ public OperationStatusResultInner() { } /** - * Get the id property: Fully qualified ID for the async operation. - * - * @return the id value. + * Get the endTime property: The end time of the operation. + * + * @return the endTime value. */ - public String id() { - return this.id; + public OffsetDateTime endTime() { + return this.endTime; } /** - * Set the id property: Fully qualified ID for the async operation. - * - * @param id the id value to set. - * @return the OperationStatusResultInner object itself. + * Get the error property: If present, details of the operation error. + * + * @return the error value. */ - public OperationStatusResultInner withId(String id) { - this.id = id; - return this; + public ManagementError error() { + return this.error; } /** - * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was - * started. - * - * @return the resourceId value. + * Get the id property: Fully qualified ID for the async operation. + * + * @return the id value. */ - public String resourceId() { - return this.resourceId; + public String id() { + return this.id; } /** * Get the name property: Name of the async operation. - * + * * @return the name value. */ public String name() { @@ -112,39 +114,17 @@ public String name() { } /** - * Set the name property: Name of the async operation. - * - * @param name the name value to set. - * @return the OperationStatusResultInner object itself. - */ - public OperationStatusResultInner withName(String name) { - this.name = name; - return this; - } - - /** - * Get the status property: Operation status. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Set the status property: Operation status. - * - * @param status the status value to set. - * @return the OperationStatusResultInner object itself. + * Get the operations property: The operations list. + * + * @return the operations value. */ - public OperationStatusResultInner withStatus(String status) { - this.status = status; - return this; + public List operations() { + return this.operations; } /** * Get the percentComplete property: Percent of the operation that is complete. - * + * * @return the percentComplete value. */ public Float percentComplete() { @@ -152,110 +132,170 @@ public Float percentComplete() { } /** - * Set the percentComplete property: Percent of the operation that is complete. - * - * @param percentComplete the percentComplete value to set. - * @return the OperationStatusResultInner object itself. + * Get the innerProperties property: The additional properties of the operation status result. + * + * @return the innerProperties value. */ - public OperationStatusResultInner withPercentComplete(Float percentComplete) { - this.percentComplete = percentComplete; - return this; + private OperationStatusResultProperties innerProperties() { + return this.innerProperties; } /** - * Get the startTime property: The start time of the operation. - * - * @return the startTime value. + * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was + * started. + * + * @return the resourceId value. */ - public OffsetDateTime startTime() { - return this.startTime; + public String resourceId() { + return this.resourceId; } /** - * Set the startTime property: The start time of the operation. - * - * @param startTime the startTime value to set. - * @return the OperationStatusResultInner object itself. + * Get the startTime property: The start time of the operation. + * + * @return the startTime value. */ - public OperationStatusResultInner withStartTime(OffsetDateTime startTime) { - this.startTime = startTime; - return this; + public OffsetDateTime startTime() { + return this.startTime; } /** - * Get the endTime property: The end time of the operation. - * - * @return the endTime value. + * Get the status property: Operation status. + * + * @return the status value. */ - public OffsetDateTime endTime() { - return this.endTime; + public String status() { + return this.status; } /** - * Set the endTime property: The end time of the operation. - * - * @param endTime the endTime value to set. + * Set the status property: Operation status. + * + * @param status the status value to set. * @return the OperationStatusResultInner object itself. */ - public OperationStatusResultInner withEndTime(OffsetDateTime endTime) { - this.endTime = endTime; + public OperationStatusResultInner withStatus(String status) { + this.status = status; return this; } /** - * Get the operations property: The operations list. - * - * @return the operations value. + * Get the exitCode property: For actions that run commands or scripts, the exit code of the script execution. + * + * @return the exitCode value. */ - public List operations() { - return this.operations; + public String exitCode() { + return this.innerProperties() == null ? null : this.innerProperties().exitCode(); } /** - * Set the operations property: The operations list. - * - * @param operations the operations value to set. - * @return the OperationStatusResultInner object itself. + * Get the outputHead property: For actions that run commands or scripts, the leading bytes of the output of the + * script execution. + * + * @return the outputHead value. */ - public OperationStatusResultInner withOperations(List operations) { - this.operations = operations; - return this; + public String outputHead() { + return this.innerProperties() == null ? null : this.innerProperties().outputHead(); } /** - * Get the error property: If present, details of the operation error. - * - * @return the error value. + * Get the resultRef property: For actions that run commands or scripts, a reference to the location of the result. + * + * @return the resultRef value. */ - public ManagementError error() { - return this.error; + public String resultRef() { + return this.innerProperties() == null ? null : this.innerProperties().resultRef(); } /** - * Set the error property: If present, details of the operation error. - * - * @param error the error value to set. - * @return the OperationStatusResultInner object itself. + * Get the resultUrl property: For actions that run commands or scripts, the URL where the full output of the script + * output can be retrieved. + * + * @return the resultUrl value. */ - public OperationStatusResultInner withError(ManagementError error) { - this.error = error; - return this; + public String resultUrl() { + return this.innerProperties() == null ? null : this.innerProperties().resultUrl(); } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (status() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property status in model OperationStatusResultInner")); - } if (operations() != null) { operations().forEach(e -> e.validate()); } + if (innerProperties() != null) { + innerProperties().validate(); + } + if (status() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property status in model OperationStatusResultInner")); + } } private static final ClientLogger LOGGER = new ClientLogger(OperationStatusResultInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("status", this.status); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationStatusResultInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationStatusResultInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the OperationStatusResultInner. + */ + public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationStatusResultInner deserializedOperationStatusResultInner = new OperationStatusResultInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("status".equals(fieldName)) { + deserializedOperationStatusResultInner.status = reader.getString(); + } else if ("endTime".equals(fieldName)) { + deserializedOperationStatusResultInner.endTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("error".equals(fieldName)) { + deserializedOperationStatusResultInner.error = ManagementError.fromJson(reader); + } else if ("id".equals(fieldName)) { + deserializedOperationStatusResultInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedOperationStatusResultInner.name = reader.getString(); + } else if ("operations".equals(fieldName)) { + List operations + = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1)); + deserializedOperationStatusResultInner.operations = operations; + } else if ("percentComplete".equals(fieldName)) { + deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getFloat); + } else if ("properties".equals(fieldName)) { + deserializedOperationStatusResultInner.innerProperties + = OperationStatusResultProperties.fromJson(reader); + } else if ("resourceId".equals(fieldName)) { + deserializedOperationStatusResultInner.resourceId = reader.getString(); + } else if ("startTime".equals(fieldName)) { + deserializedOperationStatusResultInner.startTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationStatusResultInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultProperties.java new file mode 100644 index 0000000000000..d470274c29348 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/OperationStatusResultProperties.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * OperationStatusResultProperties represents additional properties of the operation status result. + */ +@Immutable +public final class OperationStatusResultProperties implements JsonSerializable { + /* + * For actions that run commands or scripts, the exit code of the script execution. + */ + private String exitCode; + + /* + * For actions that run commands or scripts, the leading bytes of the output of the script execution. + */ + private String outputHead; + + /* + * For actions that run commands or scripts, a reference to the location of the result. + */ + private String resultRef; + + /* + * For actions that run commands or scripts, the URL where the full output of the script output can be retrieved. + */ + private String resultUrl; + + /** + * Creates an instance of OperationStatusResultProperties class. + */ + public OperationStatusResultProperties() { + } + + /** + * Get the exitCode property: For actions that run commands or scripts, the exit code of the script execution. + * + * @return the exitCode value. + */ + public String exitCode() { + return this.exitCode; + } + + /** + * Get the outputHead property: For actions that run commands or scripts, the leading bytes of the output of the + * script execution. + * + * @return the outputHead value. + */ + public String outputHead() { + return this.outputHead; + } + + /** + * Get the resultRef property: For actions that run commands or scripts, a reference to the location of the result. + * + * @return the resultRef value. + */ + public String resultRef() { + return this.resultRef; + } + + /** + * Get the resultUrl property: For actions that run commands or scripts, the URL where the full output of the script + * output can be retrieved. + * + * @return the resultUrl value. + */ + public String resultUrl() { + return this.resultUrl; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationStatusResultProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationStatusResultProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationStatusResultProperties. + */ + public static OperationStatusResultProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationStatusResultProperties deserializedOperationStatusResultProperties + = new OperationStatusResultProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("exitCode".equals(fieldName)) { + deserializedOperationStatusResultProperties.exitCode = reader.getString(); + } else if ("outputHead".equals(fieldName)) { + deserializedOperationStatusResultProperties.outputHead = reader.getString(); + } else if ("resultRef".equals(fieldName)) { + deserializedOperationStatusResultProperties.resultRef = reader.getString(); + } else if ("resultUrl".equals(fieldName)) { + deserializedOperationStatusResultProperties.resultUrl = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationStatusResultProperties; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackInner.java index 2affb576db036..8c6f240ff2fc4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackInner.java @@ -8,47 +8,59 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.RackDetailedStatus; import com.azure.resourcemanager.networkcloud.models.RackProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** Rack represents the hardware of the rack and is dependent upon the cluster for lifecycle. */ +/** + * Rack represents the hardware of the rack and is dependent upon the cluster for lifecycle. + */ @Fluent public final class RackInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * RackProperties represents the properties of the rack. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private RackProperties innerProperties = new RackProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of RackInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of RackInner class. + */ public RackInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -56,11 +68,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the RackInner object itself. */ @@ -70,10 +79,8 @@ public RackInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: RackProperties represents the properties of the rack. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private RackProperties innerProperties() { @@ -82,21 +89,55 @@ private RackProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public RackInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public RackInner withTags(Map tags) { super.withTags(tags); @@ -106,7 +147,7 @@ public RackInner withTags(Map tags) { /** * Get the availabilityZone property: The value that will be used for machines in this rack to represent the * availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. - * + * * @return the availabilityZone value. */ public String availabilityZone() { @@ -116,7 +157,7 @@ public String availabilityZone() { /** * Set the availabilityZone property: The value that will be used for machines in this rack to represent the * availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. - * + * * @param availabilityZone the availabilityZone value to set. * @return the RackInner object itself. */ @@ -131,7 +172,7 @@ public RackInner withAvailabilityZone(String availabilityZone) { /** * Get the clusterId property: The resource ID of the cluster the rack is created for. This value is set when the * rack is created by the cluster. - * + * * @return the clusterId value. */ public String clusterId() { @@ -140,7 +181,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the rack. - * + * * @return the detailedStatus value. */ public RackDetailedStatus detailedStatus() { @@ -149,7 +190,7 @@ public RackDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -158,7 +199,7 @@ public String detailedStatusMessage() { /** * Get the provisioningState property: The provisioning state of the rack resource. - * + * * @return the provisioningState value. */ public RackProvisioningState provisioningState() { @@ -168,7 +209,7 @@ public RackProvisioningState provisioningState() { /** * Get the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @return the rackLocation value. */ public String rackLocation() { @@ -178,7 +219,7 @@ public String rackLocation() { /** * Set the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @param rackLocation the rackLocation value to set. * @return the RackInner object itself. */ @@ -193,7 +234,7 @@ public RackInner withRackLocation(String rackLocation) { /** * Get the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate * unique alphanumeric value other than a serial number may be provided if desired. - * + * * @return the rackSerialNumber value. */ public String rackSerialNumber() { @@ -203,7 +244,7 @@ public String rackSerialNumber() { /** * Set the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate * unique alphanumeric value other than a serial number may be provided if desired. - * + * * @param rackSerialNumber the rackSerialNumber value to set. * @return the RackInner object itself. */ @@ -217,7 +258,7 @@ public RackInner withRackSerialNumber(String rackSerialNumber) { /** * Get the rackSkuId property: The SKU for the rack. - * + * * @return the rackSkuId value. */ public String rackSkuId() { @@ -226,7 +267,7 @@ public String rackSkuId() { /** * Set the rackSkuId property: The SKU for the rack. - * + * * @param rackSkuId the rackSkuId value to set. * @return the RackInner object itself. */ @@ -240,23 +281,78 @@ public RackInner withRackSkuId(String rackSkuId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property extendedLocation in model RackInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property extendedLocation in model RackInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model RackInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model RackInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(RackInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackInner if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RackInner. + */ + public static RackInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackInner deserializedRackInner = new RackInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRackInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedRackInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedRackInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedRackInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedRackInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedRackInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedRackInner.innerProperties = RackProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedRackInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRackInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackProperties.java index a1ed5e17fdecf..996a7fa494dee 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackProperties.java @@ -6,72 +6,72 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.RackDetailedStatus; import com.azure.resourcemanager.networkcloud.models.RackProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** RackProperties represents the properties of the rack. */ +/** + * RackProperties represents the properties of the rack. + */ @Fluent -public final class RackProperties { +public final class RackProperties implements JsonSerializable { /* * The value that will be used for machines in this rack to represent the availability zones that can be referenced * by Hybrid AKS Clusters for node arrangement. */ - @JsonProperty(value = "availabilityZone", required = true) private String availabilityZone; /* * The resource ID of the cluster the rack is created for. This value is set when the rack is created by the * cluster. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The more detailed status of the rack. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private RackDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The provisioning state of the rack resource. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private RackProvisioningState provisioningState; /* * The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”) */ - @JsonProperty(value = "rackLocation", required = true) private String rackLocation; /* * The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other * than a serial number may be provided if desired. */ - @JsonProperty(value = "rackSerialNumber", required = true) private String rackSerialNumber; /* * The SKU for the rack. */ - @JsonProperty(value = "rackSkuId", required = true) private String rackSkuId; - /** Creates an instance of RackProperties class. */ + /** + * Creates an instance of RackProperties class. + */ public RackProperties() { } /** * Get the availabilityZone property: The value that will be used for machines in this rack to represent the * availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. - * + * * @return the availabilityZone value. */ public String availabilityZone() { @@ -81,7 +81,7 @@ public String availabilityZone() { /** * Set the availabilityZone property: The value that will be used for machines in this rack to represent the * availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. - * + * * @param availabilityZone the availabilityZone value to set. * @return the RackProperties object itself. */ @@ -93,7 +93,7 @@ public RackProperties withAvailabilityZone(String availabilityZone) { /** * Get the clusterId property: The resource ID of the cluster the rack is created for. This value is set when the * rack is created by the cluster. - * + * * @return the clusterId value. */ public String clusterId() { @@ -102,7 +102,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the rack. - * + * * @return the detailedStatus value. */ public RackDetailedStatus detailedStatus() { @@ -111,7 +111,7 @@ public RackDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -120,7 +120,7 @@ public String detailedStatusMessage() { /** * Get the provisioningState property: The provisioning state of the rack resource. - * + * * @return the provisioningState value. */ public RackProvisioningState provisioningState() { @@ -130,7 +130,7 @@ public RackProvisioningState provisioningState() { /** * Get the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @return the rackLocation value. */ public String rackLocation() { @@ -140,7 +140,7 @@ public String rackLocation() { /** * Set the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @param rackLocation the rackLocation value to set. * @return the RackProperties object itself. */ @@ -152,7 +152,7 @@ public RackProperties withRackLocation(String rackLocation) { /** * Get the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate * unique alphanumeric value other than a serial number may be provided if desired. - * + * * @return the rackSerialNumber value. */ public String rackSerialNumber() { @@ -162,7 +162,7 @@ public String rackSerialNumber() { /** * Set the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate * unique alphanumeric value other than a serial number may be provided if desired. - * + * * @param rackSerialNumber the rackSerialNumber value to set. * @return the RackProperties object itself. */ @@ -173,7 +173,7 @@ public RackProperties withRackSerialNumber(String rackSerialNumber) { /** * Get the rackSkuId property: The SKU for the rack. - * + * * @return the rackSkuId value. */ public String rackSkuId() { @@ -182,7 +182,7 @@ public String rackSkuId() { /** * Set the rackSkuId property: The SKU for the rack. - * + * * @param rackSkuId the rackSkuId value to set. * @return the RackProperties object itself. */ @@ -193,27 +193,83 @@ public RackProperties withRackSkuId(String rackSkuId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (availabilityZone() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property availabilityZone in model RackProperties")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property availabilityZone in model RackProperties")); } if (rackLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property rackLocation in model RackProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property rackLocation in model RackProperties")); } if (rackSerialNumber() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property rackSerialNumber in model RackProperties")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property rackSerialNumber in model RackProperties")); } if (rackSkuId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property rackSkuId in model RackProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property rackSkuId in model RackProperties")); } } private static final ClientLogger LOGGER = new ClientLogger(RackProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("availabilityZone", this.availabilityZone); + jsonWriter.writeStringField("rackLocation", this.rackLocation); + jsonWriter.writeStringField("rackSerialNumber", this.rackSerialNumber); + jsonWriter.writeStringField("rackSkuId", this.rackSkuId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RackProperties. + */ + public static RackProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackProperties deserializedRackProperties = new RackProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("availabilityZone".equals(fieldName)) { + deserializedRackProperties.availabilityZone = reader.getString(); + } else if ("rackLocation".equals(fieldName)) { + deserializedRackProperties.rackLocation = reader.getString(); + } else if ("rackSerialNumber".equals(fieldName)) { + deserializedRackProperties.rackSerialNumber = reader.getString(); + } else if ("rackSkuId".equals(fieldName)) { + deserializedRackProperties.rackSkuId = reader.getString(); + } else if ("clusterId".equals(fieldName)) { + deserializedRackProperties.clusterId = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedRackProperties.detailedStatus = RackDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedRackProperties.detailedStatusMessage = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedRackProperties.provisioningState = RackProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedRackProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuInner.java index dce45b8b3e5fc..a2cdec31022a2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuInner.java @@ -8,41 +8,55 @@ import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.MachineSkuSlot; import com.azure.resourcemanager.networkcloud.models.RackSkuProvisioningState; import com.azure.resourcemanager.networkcloud.models.RackSkuType; import com.azure.resourcemanager.networkcloud.models.StorageApplianceSkuSlot; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** RackSku represents the SKU information of the rack. */ +/** + * RackSku represents the SKU information of the rack. + */ @Immutable public final class RackSkuInner extends ProxyResource { /* - * RackSkuProperties represents the properties of compute-related hardware for a rack. This supports both - * aggregator and compute racks. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private RackSkuProperties innerProperties = new RackSkuProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of RackSkuInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of RackSkuInner class. + */ public RackSkuInner() { } /** - * Get the innerProperties property: RackSkuProperties represents the properties of compute-related hardware for a - * rack. This supports both aggregator and compute racks. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private RackSkuProperties innerProperties() { @@ -51,17 +65,47 @@ private RackSkuProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + /** * Get the computeMachines property: The list of machine SKUs and associated rack slot for the compute-dedicated * machines in this rack model. - * + * * @return the computeMachines value. */ public List computeMachines() { @@ -71,7 +115,7 @@ public List computeMachines() { /** * Get the controllerMachines property: The list of machine SKUs and associated rack slot for the control-plane * dedicated machines in this rack model. - * + * * @return the controllerMachines value. */ public List controllerMachines() { @@ -80,7 +124,7 @@ public List controllerMachines() { /** * Get the description property: The free-form text describing the rack. - * + * * @return the description value. */ public String description() { @@ -90,7 +134,7 @@ public String description() { /** * Get the maxClusterSlots property: The maximum number of compute racks supported by an aggregator rack. 0 if this * is a compute rack or a rack for a single rack cluster(rackType="Single"). - * + * * @return the maxClusterSlots value. */ public Long maxClusterSlots() { @@ -99,7 +143,7 @@ public Long maxClusterSlots() { /** * Get the provisioningState property: The provisioning state of the rack SKU resource. - * + * * @return the provisioningState value. */ public RackSkuProvisioningState provisioningState() { @@ -108,7 +152,7 @@ public RackSkuProvisioningState provisioningState() { /** * Get the rackType property: The type of the rack. - * + * * @return the rackType value. */ public RackSkuType rackType() { @@ -118,7 +162,7 @@ public RackSkuType rackType() { /** * Get the storageAppliances property: The list of appliance SKUs and associated rack slot for the storage * appliance(s) in this rack model. - * + * * @return the storageAppliances value. */ public List storageAppliances() { @@ -127,7 +171,7 @@ public List storageAppliances() { /** * Get the supportedRackSkuIds property: The list of supported SKUs if the rack is an aggregator. - * + * * @return the supportedRackSkuIds value. */ public List supportedRackSkuIds() { @@ -136,17 +180,62 @@ public List supportedRackSkuIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model RackSkuInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model RackSkuInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(RackSkuInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackSkuInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackSkuInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RackSkuInner. + */ + public static RackSkuInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackSkuInner deserializedRackSkuInner = new RackSkuInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRackSkuInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedRackSkuInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedRackSkuInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedRackSkuInner.innerProperties = RackSkuProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedRackSkuInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRackSkuInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuProperties.java index 8b8b61e44f38e..63c6a332bf817 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RackSkuProperties.java @@ -5,11 +5,15 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.MachineSkuSlot; import com.azure.resourcemanager.networkcloud.models.RackSkuProvisioningState; import com.azure.resourcemanager.networkcloud.models.RackSkuType; import com.azure.resourcemanager.networkcloud.models.StorageApplianceSkuSlot; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** @@ -17,64 +21,58 @@ * compute racks. */ @Immutable -public final class RackSkuProperties { +public final class RackSkuProperties implements JsonSerializable { /* * The list of machine SKUs and associated rack slot for the compute-dedicated machines in this rack model. */ - @JsonProperty(value = "computeMachines", access = JsonProperty.Access.WRITE_ONLY) private List computeMachines; /* * The list of machine SKUs and associated rack slot for the control-plane dedicated machines in this rack model. */ - @JsonProperty(value = "controllerMachines", access = JsonProperty.Access.WRITE_ONLY) private List controllerMachines; /* * The free-form text describing the rack. */ - @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; /* * The maximum number of compute racks supported by an aggregator rack. 0 if this is a compute rack or a rack for a * single rack cluster(rackType="Single"). */ - @JsonProperty(value = "maxClusterSlots", access = JsonProperty.Access.WRITE_ONLY) private Long maxClusterSlots; /* * The provisioning state of the rack SKU resource. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private RackSkuProvisioningState provisioningState; /* * The type of the rack. */ - @JsonProperty(value = "rackType", access = JsonProperty.Access.WRITE_ONLY) private RackSkuType rackType; /* * The list of appliance SKUs and associated rack slot for the storage appliance(s) in this rack model. */ - @JsonProperty(value = "storageAppliances", access = JsonProperty.Access.WRITE_ONLY) private List storageAppliances; /* * The list of supported SKUs if the rack is an aggregator. */ - @JsonProperty(value = "supportedRackSkuIds", access = JsonProperty.Access.WRITE_ONLY) private List supportedRackSkuIds; - /** Creates an instance of RackSkuProperties class. */ + /** + * Creates an instance of RackSkuProperties class. + */ public RackSkuProperties() { } /** * Get the computeMachines property: The list of machine SKUs and associated rack slot for the compute-dedicated * machines in this rack model. - * + * * @return the computeMachines value. */ public List computeMachines() { @@ -84,7 +82,7 @@ public List computeMachines() { /** * Get the controllerMachines property: The list of machine SKUs and associated rack slot for the control-plane * dedicated machines in this rack model. - * + * * @return the controllerMachines value. */ public List controllerMachines() { @@ -93,7 +91,7 @@ public List controllerMachines() { /** * Get the description property: The free-form text describing the rack. - * + * * @return the description value. */ public String description() { @@ -103,7 +101,7 @@ public String description() { /** * Get the maxClusterSlots property: The maximum number of compute racks supported by an aggregator rack. 0 if this * is a compute rack or a rack for a single rack cluster(rackType="Single"). - * + * * @return the maxClusterSlots value. */ public Long maxClusterSlots() { @@ -112,7 +110,7 @@ public Long maxClusterSlots() { /** * Get the provisioningState property: The provisioning state of the rack SKU resource. - * + * * @return the provisioningState value. */ public RackSkuProvisioningState provisioningState() { @@ -121,7 +119,7 @@ public RackSkuProvisioningState provisioningState() { /** * Get the rackType property: The type of the rack. - * + * * @return the rackType value. */ public RackSkuType rackType() { @@ -131,7 +129,7 @@ public RackSkuType rackType() { /** * Get the storageAppliances property: The list of appliance SKUs and associated rack slot for the storage * appliance(s) in this rack model. - * + * * @return the storageAppliances value. */ public List storageAppliances() { @@ -140,7 +138,7 @@ public List storageAppliances() { /** * Get the supportedRackSkuIds property: The list of supported SKUs if the rack is an aggregator. - * + * * @return the supportedRackSkuIds value. */ public List supportedRackSkuIds() { @@ -149,7 +147,7 @@ public List supportedRackSkuIds() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -163,4 +161,61 @@ public void validate() { storageAppliances().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackSkuProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackSkuProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RackSkuProperties. + */ + public static RackSkuProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackSkuProperties deserializedRackSkuProperties = new RackSkuProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("computeMachines".equals(fieldName)) { + List computeMachines + = reader.readArray(reader1 -> MachineSkuSlot.fromJson(reader1)); + deserializedRackSkuProperties.computeMachines = computeMachines; + } else if ("controllerMachines".equals(fieldName)) { + List controllerMachines + = reader.readArray(reader1 -> MachineSkuSlot.fromJson(reader1)); + deserializedRackSkuProperties.controllerMachines = controllerMachines; + } else if ("description".equals(fieldName)) { + deserializedRackSkuProperties.description = reader.getString(); + } else if ("maxClusterSlots".equals(fieldName)) { + deserializedRackSkuProperties.maxClusterSlots = reader.getNullable(JsonReader::getLong); + } else if ("provisioningState".equals(fieldName)) { + deserializedRackSkuProperties.provisioningState + = RackSkuProvisioningState.fromString(reader.getString()); + } else if ("rackType".equals(fieldName)) { + deserializedRackSkuProperties.rackType = RackSkuType.fromString(reader.getString()); + } else if ("storageAppliances".equals(fieldName)) { + List storageAppliances + = reader.readArray(reader1 -> StorageApplianceSkuSlot.fromJson(reader1)); + deserializedRackSkuProperties.storageAppliances = storageAppliances; + } else if ("supportedRackSkuIds".equals(fieldName)) { + List supportedRackSkuIds = reader.readArray(reader1 -> reader1.getString()); + deserializedRackSkuProperties.supportedRackSkuIds = supportedRackSkuIds; + } else { + reader.skipChildren(); + } + } + + return deserializedRackSkuProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RacksPatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RacksPatchProperties.java index 33830146494d3..a23623f1a0016 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RacksPatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/RacksPatchProperties.java @@ -5,31 +5,37 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** RacksPatchProperties represents the properties of the rack during patching. */ +/** + * RacksPatchProperties represents the properties of the rack during patching. + */ @Fluent -public final class RacksPatchProperties { +public final class RacksPatchProperties implements JsonSerializable { /* * The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”) */ - @JsonProperty(value = "rackLocation") private String rackLocation; /* * The globally unique identifier for the rack. */ - @JsonProperty(value = "rackSerialNumber") private String rackSerialNumber; - /** Creates an instance of RacksPatchProperties class. */ + /** + * Creates an instance of RacksPatchProperties class. + */ public RacksPatchProperties() { } /** * Get the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @return the rackLocation value. */ public String rackLocation() { @@ -39,7 +45,7 @@ public String rackLocation() { /** * Set the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @param rackLocation the rackLocation value to set. * @return the RacksPatchProperties object itself. */ @@ -50,7 +56,7 @@ public RacksPatchProperties withRackLocation(String rackLocation) { /** * Get the rackSerialNumber property: The globally unique identifier for the rack. - * + * * @return the rackSerialNumber value. */ public String rackSerialNumber() { @@ -59,7 +65,7 @@ public String rackSerialNumber() { /** * Set the rackSerialNumber property: The globally unique identifier for the rack. - * + * * @param rackSerialNumber the rackSerialNumber value to set. * @return the RacksPatchProperties object itself. */ @@ -70,9 +76,48 @@ public RacksPatchProperties withRackSerialNumber(String rackSerialNumber) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("rackLocation", this.rackLocation); + jsonWriter.writeStringField("rackSerialNumber", this.rackSerialNumber); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RacksPatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RacksPatchProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the RacksPatchProperties. + */ + public static RacksPatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RacksPatchProperties deserializedRacksPatchProperties = new RacksPatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("rackLocation".equals(fieldName)) { + deserializedRacksPatchProperties.rackLocation = reader.getString(); + } else if ("rackSerialNumber".equals(fieldName)) { + deserializedRacksPatchProperties.rackSerialNumber = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedRacksPatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java index 612b1ea18951c..6aa4224847f06 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceInner.java @@ -8,50 +8,64 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.RemoteVendorManagementFeature; import com.azure.resourcemanager.networkcloud.models.RemoteVendorManagementStatus; +import com.azure.resourcemanager.networkcloud.models.SecretRotationStatus; import com.azure.resourcemanager.networkcloud.models.StorageApplianceDetailedStatus; import com.azure.resourcemanager.networkcloud.models.StorageApplianceProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; +import java.util.List; import java.util.Map; -/** StorageAppliance represents on-premises Network Cloud storage appliance. */ +/** + * StorageAppliance represents on-premises Network Cloud storage appliance. + */ @Fluent public final class StorageApplianceInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * StorageApplianceProperties represents the properties of the storage appliance. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private StorageApplianceProperties innerProperties = new StorageApplianceProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of StorageApplianceInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of StorageApplianceInner class. + */ public StorageApplianceInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -59,11 +73,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the StorageApplianceInner object itself. */ @@ -73,10 +84,8 @@ public StorageApplianceInner withExtendedLocation(ExtendedLocation extendedLocat } /** - * Get the innerProperties property: StorageApplianceProperties represents the properties of the storage appliance. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private StorageApplianceProperties innerProperties() { @@ -85,21 +94,55 @@ private StorageApplianceProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public StorageApplianceInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public StorageApplianceInner withTags(Map tags) { super.withTags(tags); @@ -107,11 +150,9 @@ public StorageApplianceInner withTags(Map tags) { } /** - * Get the administratorCredentials property: AdministrativeCredentials represents the admin credentials for the - * device requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance. - * + * Get the administratorCredentials property: The credentials of the administrative interface on this storage + * appliance. + * * @return the administratorCredentials value. */ public AdministrativeCredentials administratorCredentials() { @@ -119,11 +160,9 @@ public AdministrativeCredentials administratorCredentials() { } /** - * Set the administratorCredentials property: AdministrativeCredentials represents the admin credentials for the - * device requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance. - * + * Set the administratorCredentials property: The credentials of the administrative interface on this storage + * appliance. + * * @param administratorCredentials the administratorCredentials value to set. * @return the StorageApplianceInner object itself. */ @@ -137,7 +176,7 @@ public StorageApplianceInner withAdministratorCredentials(AdministrativeCredenti /** * Get the capacity property: The total capacity of the storage appliance. - * + * * @return the capacity value. */ public Long capacity() { @@ -146,7 +185,7 @@ public Long capacity() { /** * Get the capacityUsed property: The amount of storage consumed. - * + * * @return the capacityUsed value. */ public Long capacityUsed() { @@ -155,7 +194,7 @@ public Long capacityUsed() { /** * Get the clusterId property: The resource ID of the cluster this storage appliance is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -164,7 +203,7 @@ public String clusterId() { /** * Get the detailedStatus property: The detailed status of the storage appliance. - * + * * @return the detailedStatus value. */ public StorageApplianceDetailedStatus detailedStatus() { @@ -173,7 +212,7 @@ public StorageApplianceDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -182,16 +221,34 @@ public String detailedStatusMessage() { /** * Get the managementIpv4Address property: The endpoint for the management interface of the storage appliance. - * + * * @return the managementIpv4Address value. */ public String managementIpv4Address() { return this.innerProperties() == null ? null : this.innerProperties().managementIpv4Address(); } + /** + * Get the manufacturer property: The manufacturer of the storage appliance. + * + * @return the manufacturer value. + */ + public String manufacturer() { + return this.innerProperties() == null ? null : this.innerProperties().manufacturer(); + } + + /** + * Get the model property: The model of the storage appliance. + * + * @return the model value. + */ + public String model() { + return this.innerProperties() == null ? null : this.innerProperties().model(); + } + /** * Get the provisioningState property: The provisioning state of the storage appliance. - * + * * @return the provisioningState value. */ public StorageApplianceProvisioningState provisioningState() { @@ -200,7 +257,7 @@ public StorageApplianceProvisioningState provisioningState() { /** * Get the rackId property: The resource ID of the rack where this storage appliance resides. - * + * * @return the rackId value. */ public String rackId() { @@ -209,7 +266,7 @@ public String rackId() { /** * Set the rackId property: The resource ID of the rack where this storage appliance resides. - * + * * @param rackId the rackId value to set. * @return the StorageApplianceInner object itself. */ @@ -223,7 +280,7 @@ public StorageApplianceInner withRackId(String rackId) { /** * Get the rackSlot property: The slot the storage appliance is in the rack based on the BOM configuration. - * + * * @return the rackSlot value. */ public long rackSlot() { @@ -232,7 +289,7 @@ public long rackSlot() { /** * Set the rackSlot property: The slot the storage appliance is in the rack based on the BOM configuration. - * + * * @param rackSlot the rackSlot value to set. * @return the StorageApplianceInner object itself. */ @@ -247,7 +304,7 @@ public StorageApplianceInner withRackSlot(long rackSlot) { /** * Get the remoteVendorManagementFeature property: The indicator of whether the storage appliance supports remote * vendor management. - * + * * @return the remoteVendorManagementFeature value. */ public RemoteVendorManagementFeature remoteVendorManagementFeature() { @@ -257,16 +314,25 @@ public RemoteVendorManagementFeature remoteVendorManagementFeature() { /** * Get the remoteVendorManagementStatus property: The indicator of whether the remote vendor management feature is * enabled or disabled, or unsupported if it is an unsupported feature. - * + * * @return the remoteVendorManagementStatus value. */ public RemoteVendorManagementStatus remoteVendorManagementStatus() { return this.innerProperties() == null ? null : this.innerProperties().remoteVendorManagementStatus(); } + /** + * Get the secretRotationStatus property: The list of statuses that represent secret rotation activity. + * + * @return the secretRotationStatus value. + */ + public List secretRotationStatus() { + return this.innerProperties() == null ? null : this.innerProperties().secretRotationStatus(); + } + /** * Get the serialNumber property: The serial number for the storage appliance. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -275,7 +341,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number for the storage appliance. - * + * * @param serialNumber the serialNumber value to set. * @return the StorageApplianceInner object itself. */ @@ -289,7 +355,7 @@ public StorageApplianceInner withSerialNumber(String serialNumber) { /** * Get the storageApplianceSkuId property: The SKU for the storage appliance. - * + * * @return the storageApplianceSkuId value. */ public String storageApplianceSkuId() { @@ -298,7 +364,7 @@ public String storageApplianceSkuId() { /** * Set the storageApplianceSkuId property: The SKU for the storage appliance. - * + * * @param storageApplianceSkuId the storageApplianceSkuId value to set. * @return the StorageApplianceInner object itself. */ @@ -310,25 +376,91 @@ public StorageApplianceInner withStorageApplianceSkuId(String storageApplianceSk return this; } + /** + * Get the version property: The version of the storage appliance. + * + * @return the version value. + */ + public String version() { + return this.innerProperties() == null ? null : this.innerProperties().version(); + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model StorageApplianceInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model StorageApplianceInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model StorageApplianceInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model StorageApplianceInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(StorageApplianceInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageApplianceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageApplianceInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the StorageApplianceInner. + */ + public static StorageApplianceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageApplianceInner deserializedStorageApplianceInner = new StorageApplianceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedStorageApplianceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedStorageApplianceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedStorageApplianceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedStorageApplianceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedStorageApplianceInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedStorageApplianceInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedStorageApplianceInner.innerProperties = StorageApplianceProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedStorageApplianceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageApplianceInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageAppliancePatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageAppliancePatchProperties.java index 27056f1b73482..e06efccf17bee 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageAppliancePatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageAppliancePatchProperties.java @@ -5,24 +5,31 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** StorageAppliancePatchProperties represents the properties of the storage appliance that can be patched. */ +/** + * StorageAppliancePatchProperties represents the properties of the storage appliance that can be patched. + */ @Fluent -public final class StorageAppliancePatchProperties { +public final class StorageAppliancePatchProperties implements JsonSerializable { /* * The serial number for the storage appliance. */ - @JsonProperty(value = "serialNumber") private String serialNumber; - /** Creates an instance of StorageAppliancePatchProperties class. */ + /** + * Creates an instance of StorageAppliancePatchProperties class. + */ public StorageAppliancePatchProperties() { } /** * Get the serialNumber property: The serial number for the storage appliance. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -31,7 +38,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number for the storage appliance. - * + * * @param serialNumber the serialNumber value to set. * @return the StorageAppliancePatchProperties object itself. */ @@ -42,9 +49,46 @@ public StorageAppliancePatchProperties withSerialNumber(String serialNumber) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("serialNumber", this.serialNumber); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageAppliancePatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageAppliancePatchProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the StorageAppliancePatchProperties. + */ + public static StorageAppliancePatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageAppliancePatchProperties deserializedStorageAppliancePatchProperties + = new StorageAppliancePatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("serialNumber".equals(fieldName)) { + deserializedStorageAppliancePatchProperties.serialNumber = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageAppliancePatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java index 8e4c6989a83b5..bae2a7ae14b29 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceProperties.java @@ -6,114 +6,125 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.RemoteVendorManagementFeature; import com.azure.resourcemanager.networkcloud.models.RemoteVendorManagementStatus; +import com.azure.resourcemanager.networkcloud.models.SecretRotationStatus; import com.azure.resourcemanager.networkcloud.models.StorageApplianceDetailedStatus; import com.azure.resourcemanager.networkcloud.models.StorageApplianceProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; +import java.util.List; -/** StorageApplianceProperties represents the properties of the storage appliance. */ +/** + * StorageApplianceProperties represents the properties of the storage appliance. + */ @Fluent -public final class StorageApplianceProperties { +public final class StorageApplianceProperties implements JsonSerializable { /* - * AdministrativeCredentials represents the admin credentials for the device requiring password-based - * authentication. - * * The credentials of the administrative interface on this storage appliance. */ - @JsonProperty(value = "administratorCredentials", required = true) private AdministrativeCredentials administratorCredentials; /* * The total capacity of the storage appliance. */ - @JsonProperty(value = "capacity", access = JsonProperty.Access.WRITE_ONLY) private Long capacity; /* * The amount of storage consumed. */ - @JsonProperty(value = "capacityUsed", access = JsonProperty.Access.WRITE_ONLY) private Long capacityUsed; /* * The resource ID of the cluster this storage appliance is associated with. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The detailed status of the storage appliance. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private StorageApplianceDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The endpoint for the management interface of the storage appliance. */ - @JsonProperty(value = "managementIpv4Address", access = JsonProperty.Access.WRITE_ONLY) private String managementIpv4Address; + /* + * The manufacturer of the storage appliance. + */ + private String manufacturer; + + /* + * The model of the storage appliance. + */ + private String model; + /* * The provisioning state of the storage appliance. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private StorageApplianceProvisioningState provisioningState; /* * The resource ID of the rack where this storage appliance resides. */ - @JsonProperty(value = "rackId", required = true) private String rackId; /* * The slot the storage appliance is in the rack based on the BOM configuration. */ - @JsonProperty(value = "rackSlot", required = true) private long rackSlot; /* * The indicator of whether the storage appliance supports remote vendor management. */ - @JsonProperty(value = "remoteVendorManagementFeature", access = JsonProperty.Access.WRITE_ONLY) private RemoteVendorManagementFeature remoteVendorManagementFeature; /* * The indicator of whether the remote vendor management feature is enabled or disabled, or unsupported if it is an * unsupported feature. */ - @JsonProperty(value = "remoteVendorManagementStatus", access = JsonProperty.Access.WRITE_ONLY) private RemoteVendorManagementStatus remoteVendorManagementStatus; + /* + * The list of statuses that represent secret rotation activity. + */ + private List secretRotationStatus; + /* * The serial number for the storage appliance. */ - @JsonProperty(value = "serialNumber", required = true) private String serialNumber; /* * The SKU for the storage appliance. */ - @JsonProperty(value = "storageApplianceSkuId", required = true) private String storageApplianceSkuId; - /** Creates an instance of StorageApplianceProperties class. */ + /* + * The version of the storage appliance. + */ + private String version; + + /** + * Creates an instance of StorageApplianceProperties class. + */ public StorageApplianceProperties() { } /** - * Get the administratorCredentials property: AdministrativeCredentials represents the admin credentials for the - * device requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance. - * + * Get the administratorCredentials property: The credentials of the administrative interface on this storage + * appliance. + * * @return the administratorCredentials value. */ public AdministrativeCredentials administratorCredentials() { @@ -121,11 +132,9 @@ public AdministrativeCredentials administratorCredentials() { } /** - * Set the administratorCredentials property: AdministrativeCredentials represents the admin credentials for the - * device requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance. - * + * Set the administratorCredentials property: The credentials of the administrative interface on this storage + * appliance. + * * @param administratorCredentials the administratorCredentials value to set. * @return the StorageApplianceProperties object itself. */ @@ -136,7 +145,7 @@ public StorageApplianceProperties withAdministratorCredentials(AdministrativeCre /** * Get the capacity property: The total capacity of the storage appliance. - * + * * @return the capacity value. */ public Long capacity() { @@ -145,7 +154,7 @@ public Long capacity() { /** * Get the capacityUsed property: The amount of storage consumed. - * + * * @return the capacityUsed value. */ public Long capacityUsed() { @@ -154,7 +163,7 @@ public Long capacityUsed() { /** * Get the clusterId property: The resource ID of the cluster this storage appliance is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -163,7 +172,7 @@ public String clusterId() { /** * Get the detailedStatus property: The detailed status of the storage appliance. - * + * * @return the detailedStatus value. */ public StorageApplianceDetailedStatus detailedStatus() { @@ -172,7 +181,7 @@ public StorageApplianceDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -181,16 +190,34 @@ public String detailedStatusMessage() { /** * Get the managementIpv4Address property: The endpoint for the management interface of the storage appliance. - * + * * @return the managementIpv4Address value. */ public String managementIpv4Address() { return this.managementIpv4Address; } + /** + * Get the manufacturer property: The manufacturer of the storage appliance. + * + * @return the manufacturer value. + */ + public String manufacturer() { + return this.manufacturer; + } + + /** + * Get the model property: The model of the storage appliance. + * + * @return the model value. + */ + public String model() { + return this.model; + } + /** * Get the provisioningState property: The provisioning state of the storage appliance. - * + * * @return the provisioningState value. */ public StorageApplianceProvisioningState provisioningState() { @@ -199,7 +226,7 @@ public StorageApplianceProvisioningState provisioningState() { /** * Get the rackId property: The resource ID of the rack where this storage appliance resides. - * + * * @return the rackId value. */ public String rackId() { @@ -208,7 +235,7 @@ public String rackId() { /** * Set the rackId property: The resource ID of the rack where this storage appliance resides. - * + * * @param rackId the rackId value to set. * @return the StorageApplianceProperties object itself. */ @@ -219,7 +246,7 @@ public StorageApplianceProperties withRackId(String rackId) { /** * Get the rackSlot property: The slot the storage appliance is in the rack based on the BOM configuration. - * + * * @return the rackSlot value. */ public long rackSlot() { @@ -228,7 +255,7 @@ public long rackSlot() { /** * Set the rackSlot property: The slot the storage appliance is in the rack based on the BOM configuration. - * + * * @param rackSlot the rackSlot value to set. * @return the StorageApplianceProperties object itself. */ @@ -240,7 +267,7 @@ public StorageApplianceProperties withRackSlot(long rackSlot) { /** * Get the remoteVendorManagementFeature property: The indicator of whether the storage appliance supports remote * vendor management. - * + * * @return the remoteVendorManagementFeature value. */ public RemoteVendorManagementFeature remoteVendorManagementFeature() { @@ -250,16 +277,25 @@ public RemoteVendorManagementFeature remoteVendorManagementFeature() { /** * Get the remoteVendorManagementStatus property: The indicator of whether the remote vendor management feature is * enabled or disabled, or unsupported if it is an unsupported feature. - * + * * @return the remoteVendorManagementStatus value. */ public RemoteVendorManagementStatus remoteVendorManagementStatus() { return this.remoteVendorManagementStatus; } + /** + * Get the secretRotationStatus property: The list of statuses that represent secret rotation activity. + * + * @return the secretRotationStatus value. + */ + public List secretRotationStatus() { + return this.secretRotationStatus; + } + /** * Get the serialNumber property: The serial number for the storage appliance. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -268,7 +304,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number for the storage appliance. - * + * * @param serialNumber the serialNumber value to set. * @return the StorageApplianceProperties object itself. */ @@ -279,7 +315,7 @@ public StorageApplianceProperties withSerialNumber(String serialNumber) { /** * Get the storageApplianceSkuId property: The SKU for the storage appliance. - * + * * @return the storageApplianceSkuId value. */ public String storageApplianceSkuId() { @@ -288,7 +324,7 @@ public String storageApplianceSkuId() { /** * Set the storageApplianceSkuId property: The SKU for the storage appliance. - * + * * @param storageApplianceSkuId the storageApplianceSkuId value to set. * @return the StorageApplianceProperties object itself. */ @@ -297,31 +333,129 @@ public StorageApplianceProperties withStorageApplianceSkuId(String storageApplia return this; } + /** + * Get the version property: The version of the storage appliance. + * + * @return the version value. + */ + public String version() { + return this.version; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (administratorCredentials() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property administratorCredentials in model StorageApplianceProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property administratorCredentials in model StorageApplianceProperties")); } else { administratorCredentials().validate(); } if (rackId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property rackId in model StorageApplianceProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property rackId in model StorageApplianceProperties")); + } + if (secretRotationStatus() != null) { + secretRotationStatus().forEach(e -> e.validate()); } if (serialNumber() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property serialNumber in model StorageApplianceProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property serialNumber in model StorageApplianceProperties")); } if (storageApplianceSkuId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property storageApplianceSkuId in model StorageApplianceProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property storageApplianceSkuId in model StorageApplianceProperties")); } } private static final ClientLogger LOGGER = new ClientLogger(StorageApplianceProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("administratorCredentials", this.administratorCredentials); + jsonWriter.writeStringField("rackId", this.rackId); + jsonWriter.writeLongField("rackSlot", this.rackSlot); + jsonWriter.writeStringField("serialNumber", this.serialNumber); + jsonWriter.writeStringField("storageApplianceSkuId", this.storageApplianceSkuId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageApplianceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageApplianceProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the StorageApplianceProperties. + */ + public static StorageApplianceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageApplianceProperties deserializedStorageApplianceProperties = new StorageApplianceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("administratorCredentials".equals(fieldName)) { + deserializedStorageApplianceProperties.administratorCredentials + = AdministrativeCredentials.fromJson(reader); + } else if ("rackId".equals(fieldName)) { + deserializedStorageApplianceProperties.rackId = reader.getString(); + } else if ("rackSlot".equals(fieldName)) { + deserializedStorageApplianceProperties.rackSlot = reader.getLong(); + } else if ("serialNumber".equals(fieldName)) { + deserializedStorageApplianceProperties.serialNumber = reader.getString(); + } else if ("storageApplianceSkuId".equals(fieldName)) { + deserializedStorageApplianceProperties.storageApplianceSkuId = reader.getString(); + } else if ("capacity".equals(fieldName)) { + deserializedStorageApplianceProperties.capacity = reader.getNullable(JsonReader::getLong); + } else if ("capacityUsed".equals(fieldName)) { + deserializedStorageApplianceProperties.capacityUsed = reader.getNullable(JsonReader::getLong); + } else if ("clusterId".equals(fieldName)) { + deserializedStorageApplianceProperties.clusterId = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedStorageApplianceProperties.detailedStatus + = StorageApplianceDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedStorageApplianceProperties.detailedStatusMessage = reader.getString(); + } else if ("managementIpv4Address".equals(fieldName)) { + deserializedStorageApplianceProperties.managementIpv4Address = reader.getString(); + } else if ("manufacturer".equals(fieldName)) { + deserializedStorageApplianceProperties.manufacturer = reader.getString(); + } else if ("model".equals(fieldName)) { + deserializedStorageApplianceProperties.model = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedStorageApplianceProperties.provisioningState + = StorageApplianceProvisioningState.fromString(reader.getString()); + } else if ("remoteVendorManagementFeature".equals(fieldName)) { + deserializedStorageApplianceProperties.remoteVendorManagementFeature + = RemoteVendorManagementFeature.fromString(reader.getString()); + } else if ("remoteVendorManagementStatus".equals(fieldName)) { + deserializedStorageApplianceProperties.remoteVendorManagementStatus + = RemoteVendorManagementStatus.fromString(reader.getString()); + } else if ("secretRotationStatus".equals(fieldName)) { + List secretRotationStatus + = reader.readArray(reader1 -> SecretRotationStatus.fromJson(reader1)); + deserializedStorageApplianceProperties.secretRotationStatus = secretRotationStatus; + } else if ("version".equals(fieldName)) { + deserializedStorageApplianceProperties.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageApplianceProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceSkuProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceSkuProperties.java index cbaefbff094cd..bf1c5610d7f03 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceSkuProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/StorageApplianceSkuProperties.java @@ -5,30 +5,36 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** StorageApplianceSkuProperties represents the properties of the storage appliance SKU. */ +/** + * StorageApplianceSkuProperties represents the properties of the storage appliance SKU. + */ @Immutable -public final class StorageApplianceSkuProperties { +public final class StorageApplianceSkuProperties implements JsonSerializable { /* - * The maximum capacity of the storage appliance. + * The maximum capacity of the storage appliance. Measured in gibibytes. */ - @JsonProperty(value = "capacityGB", access = JsonProperty.Access.WRITE_ONLY) private Long capacityGB; /* * The model of the storage appliance. */ - @JsonProperty(value = "model", access = JsonProperty.Access.WRITE_ONLY) private String model; - /** Creates an instance of StorageApplianceSkuProperties class. */ + /** + * Creates an instance of StorageApplianceSkuProperties class. + */ public StorageApplianceSkuProperties() { } /** - * Get the capacityGB property: The maximum capacity of the storage appliance. - * + * Get the capacityGB property: The maximum capacity of the storage appliance. Measured in gibibytes. + * * @return the capacityGB value. */ public Long capacityGB() { @@ -37,7 +43,7 @@ public Long capacityGB() { /** * Get the model property: The model of the storage appliance. - * + * * @return the model value. */ public String model() { @@ -46,9 +52,47 @@ public String model() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageApplianceSkuProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageApplianceSkuProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the StorageApplianceSkuProperties. + */ + public static StorageApplianceSkuProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageApplianceSkuProperties deserializedStorageApplianceSkuProperties + = new StorageApplianceSkuProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("capacityGB".equals(fieldName)) { + deserializedStorageApplianceSkuProperties.capacityGB = reader.getNullable(JsonReader::getLong); + } else if ("model".equals(fieldName)) { + deserializedStorageApplianceSkuProperties.model = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageApplianceSkuProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkInner.java index cbf36af356770..0225409e96acb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkInner.java @@ -8,11 +8,14 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; @@ -23,37 +26,44 @@ @Fluent public final class TrunkedNetworkInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * TrunkedNetworkProperties represents properties of the trunked network. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private TrunkedNetworkProperties innerProperties = new TrunkedNetworkProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of TrunkedNetworkInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of TrunkedNetworkInner class. + */ public TrunkedNetworkInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -61,11 +71,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the TrunkedNetworkInner object itself. */ @@ -75,10 +82,8 @@ public TrunkedNetworkInner withExtendedLocation(ExtendedLocation extendedLocatio } /** - * Get the innerProperties property: TrunkedNetworkProperties represents properties of the trunked network. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private TrunkedNetworkProperties innerProperties() { @@ -87,21 +92,55 @@ private TrunkedNetworkProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public TrunkedNetworkInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public TrunkedNetworkInner withTags(Map tags) { super.withTags(tags); @@ -111,7 +150,7 @@ public TrunkedNetworkInner withTags(Map tags) { /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -120,7 +159,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this trunked network is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -129,7 +168,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the trunked network. - * + * * @return the detailedStatus value. */ public TrunkedNetworkDetailedStatus detailedStatus() { @@ -138,7 +177,7 @@ public TrunkedNetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -148,7 +187,7 @@ public String detailedStatusMessage() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this trunked network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -158,7 +197,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ public HybridAksPluginType hybridAksPluginType() { @@ -168,7 +207,7 @@ public HybridAksPluginType hybridAksPluginType() { /** * Set the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @param hybridAksPluginType the hybridAksPluginType value to set. * @return the TrunkedNetworkInner object itself. */ @@ -183,7 +222,7 @@ public TrunkedNetworkInner withHybridAksPluginType(HybridAksPluginType hybridAks /** * Get the interfaceName property: The default interface name for this trunked network in the virtual machine. This * name can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -193,7 +232,7 @@ public String interfaceName() { /** * Set the interfaceName property: The default interface name for this trunked network in the virtual machine. This * name can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @param interfaceName the interfaceName value to set. * @return the TrunkedNetworkInner object itself. */ @@ -208,7 +247,7 @@ public TrunkedNetworkInner withInterfaceName(String interfaceName) { /** * Get the isolationDomainIds property: The list of resource IDs representing the Network Fabric isolation domains. * It can be any combination of l2IsolationDomain and l3IsolationDomain resources. - * + * * @return the isolationDomainIds value. */ public List isolationDomainIds() { @@ -218,7 +257,7 @@ public List isolationDomainIds() { /** * Set the isolationDomainIds property: The list of resource IDs representing the Network Fabric isolation domains. * It can be any combination of l2IsolationDomain and l3IsolationDomain resources. - * + * * @param isolationDomainIds the isolationDomainIds value to set. * @return the TrunkedNetworkInner object itself. */ @@ -232,7 +271,7 @@ public TrunkedNetworkInner withIsolationDomainIds(List isolationDomainId /** * Get the provisioningState property: The provisioning state of the trunked network. - * + * * @return the provisioningState value. */ public TrunkedNetworkProvisioningState provisioningState() { @@ -243,7 +282,7 @@ public TrunkedNetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this trunked * network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -252,7 +291,7 @@ public List virtualMachinesAssociatedIds() { /** * Get the vlans property: The list of vlans that are selected from the isolation domains for trunking. - * + * * @return the vlans value. */ public List vlans() { @@ -261,7 +300,7 @@ public List vlans() { /** * Set the vlans property: The list of vlans that are selected from the isolation domains for trunking. - * + * * @param vlans the vlans value to set. * @return the TrunkedNetworkInner object itself. */ @@ -275,23 +314,80 @@ public TrunkedNetworkInner withVlans(List vlans) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model TrunkedNetworkInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model TrunkedNetworkInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model TrunkedNetworkInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model TrunkedNetworkInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(TrunkedNetworkInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TrunkedNetworkInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TrunkedNetworkInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TrunkedNetworkInner. + */ + public static TrunkedNetworkInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TrunkedNetworkInner deserializedTrunkedNetworkInner = new TrunkedNetworkInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedTrunkedNetworkInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedTrunkedNetworkInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedTrunkedNetworkInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedTrunkedNetworkInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedTrunkedNetworkInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedTrunkedNetworkInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedTrunkedNetworkInner.innerProperties = TrunkedNetworkProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedTrunkedNetworkInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedTrunkedNetworkInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkProperties.java index d2bb349712bbe..78ea6eb1fc043 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/TrunkedNetworkProperties.java @@ -6,94 +6,91 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkDetailedStatus; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** TrunkedNetworkProperties represents properties of the trunked network. */ +/** + * TrunkedNetworkProperties represents properties of the trunked network. + */ @Fluent -public final class TrunkedNetworkProperties { +public final class TrunkedNetworkProperties implements JsonSerializable { /* * The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. */ - @JsonProperty(value = "associatedResourceIds", access = JsonProperty.Access.WRITE_ONLY) private List associatedResourceIds; /* * The resource ID of the Network Cloud cluster this trunked network is associated with. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The more detailed status of the trunked network. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private TrunkedNetworkDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are * associated with this trunked network. */ - @JsonProperty(value = "hybridAksClustersAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List hybridAksClustersAssociatedIds; /* * Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. * The network plugin type for Hybrid AKS. */ - @JsonProperty(value = "hybridAksPluginType") private HybridAksPluginType hybridAksPluginType; /* * The default interface name for this trunked network in the virtual machine. This name can be overridden by the * name supplied in the network attachment configuration of that virtual machine. */ - @JsonProperty(value = "interfaceName") private String interfaceName; /* * The list of resource IDs representing the Network Fabric isolation domains. It can be any combination of * l2IsolationDomain and l3IsolationDomain resources. */ - @JsonProperty(value = "isolationDomainIds", required = true) private List isolationDomainIds; /* * The provisioning state of the trunked network. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private TrunkedNetworkProvisioningState provisioningState; /* * Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any * Hybrid AKS virtual machines, that are currently using this trunked network. */ - @JsonProperty(value = "virtualMachinesAssociatedIds", access = JsonProperty.Access.WRITE_ONLY) private List virtualMachinesAssociatedIds; /* * The list of vlans that are selected from the isolation domains for trunking. */ - @JsonProperty(value = "vlans", required = true) private List vlans; - /** Creates an instance of TrunkedNetworkProperties class. */ + /** + * Creates an instance of TrunkedNetworkProperties class. + */ public TrunkedNetworkProperties() { } /** * Get the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ public List associatedResourceIds() { @@ -102,7 +99,7 @@ public List associatedResourceIds() { /** * Get the clusterId property: The resource ID of the Network Cloud cluster this trunked network is associated with. - * + * * @return the clusterId value. */ public String clusterId() { @@ -111,7 +108,7 @@ public String clusterId() { /** * Get the detailedStatus property: The more detailed status of the trunked network. - * + * * @return the detailedStatus value. */ public TrunkedNetworkDetailedStatus detailedStatus() { @@ -120,7 +117,7 @@ public TrunkedNetworkDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -130,7 +127,7 @@ public String detailedStatusMessage() { /** * Get the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this trunked network. - * + * * @return the hybridAksClustersAssociatedIds value. */ public List hybridAksClustersAssociatedIds() { @@ -140,7 +137,7 @@ public List hybridAksClustersAssociatedIds() { /** * Get the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ public HybridAksPluginType hybridAksPluginType() { @@ -150,7 +147,7 @@ public HybridAksPluginType hybridAksPluginType() { /** * Set the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @param hybridAksPluginType the hybridAksPluginType value to set. * @return the TrunkedNetworkProperties object itself. */ @@ -162,7 +159,7 @@ public TrunkedNetworkProperties withHybridAksPluginType(HybridAksPluginType hybr /** * Get the interfaceName property: The default interface name for this trunked network in the virtual machine. This * name can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ public String interfaceName() { @@ -172,7 +169,7 @@ public String interfaceName() { /** * Set the interfaceName property: The default interface name for this trunked network in the virtual machine. This * name can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @param interfaceName the interfaceName value to set. * @return the TrunkedNetworkProperties object itself. */ @@ -184,7 +181,7 @@ public TrunkedNetworkProperties withInterfaceName(String interfaceName) { /** * Get the isolationDomainIds property: The list of resource IDs representing the Network Fabric isolation domains. * It can be any combination of l2IsolationDomain and l3IsolationDomain resources. - * + * * @return the isolationDomainIds value. */ public List isolationDomainIds() { @@ -194,7 +191,7 @@ public List isolationDomainIds() { /** * Set the isolationDomainIds property: The list of resource IDs representing the Network Fabric isolation domains. * It can be any combination of l2IsolationDomain and l3IsolationDomain resources. - * + * * @param isolationDomainIds the isolationDomainIds value to set. * @return the TrunkedNetworkProperties object itself. */ @@ -205,7 +202,7 @@ public TrunkedNetworkProperties withIsolationDomainIds(List isolationDom /** * Get the provisioningState property: The provisioning state of the trunked network. - * + * * @return the provisioningState value. */ public TrunkedNetworkProvisioningState provisioningState() { @@ -216,7 +213,7 @@ public TrunkedNetworkProvisioningState provisioningState() { * Get the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this trunked * network. - * + * * @return the virtualMachinesAssociatedIds value. */ public List virtualMachinesAssociatedIds() { @@ -225,7 +222,7 @@ public List virtualMachinesAssociatedIds() { /** * Get the vlans property: The list of vlans that are selected from the isolation domains for trunking. - * + * * @return the vlans value. */ public List vlans() { @@ -234,7 +231,7 @@ public List vlans() { /** * Set the vlans property: The list of vlans that are selected from the isolation domains for trunking. - * + * * @param vlans the vlans value to set. * @return the TrunkedNetworkProperties object itself. */ @@ -245,19 +242,91 @@ public TrunkedNetworkProperties withVlans(List vlans) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (isolationDomainIds() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property isolationDomainIds in model TrunkedNetworkProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property isolationDomainIds in model TrunkedNetworkProperties")); } if (vlans() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property vlans in model TrunkedNetworkProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property vlans in model TrunkedNetworkProperties")); } } private static final ClientLogger LOGGER = new ClientLogger(TrunkedNetworkProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("isolationDomainIds", this.isolationDomainIds, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("vlans", this.vlans, (writer, element) -> writer.writeLong(element)); + jsonWriter.writeStringField("hybridAksPluginType", + this.hybridAksPluginType == null ? null : this.hybridAksPluginType.toString()); + jsonWriter.writeStringField("interfaceName", this.interfaceName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TrunkedNetworkProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TrunkedNetworkProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TrunkedNetworkProperties. + */ + public static TrunkedNetworkProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TrunkedNetworkProperties deserializedTrunkedNetworkProperties = new TrunkedNetworkProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("isolationDomainIds".equals(fieldName)) { + List isolationDomainIds = reader.readArray(reader1 -> reader1.getString()); + deserializedTrunkedNetworkProperties.isolationDomainIds = isolationDomainIds; + } else if ("vlans".equals(fieldName)) { + List vlans = reader.readArray(reader1 -> reader1.getLong()); + deserializedTrunkedNetworkProperties.vlans = vlans; + } else if ("associatedResourceIds".equals(fieldName)) { + List associatedResourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedTrunkedNetworkProperties.associatedResourceIds = associatedResourceIds; + } else if ("clusterId".equals(fieldName)) { + deserializedTrunkedNetworkProperties.clusterId = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedTrunkedNetworkProperties.detailedStatus + = TrunkedNetworkDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedTrunkedNetworkProperties.detailedStatusMessage = reader.getString(); + } else if ("hybridAksClustersAssociatedIds".equals(fieldName)) { + List hybridAksClustersAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedTrunkedNetworkProperties.hybridAksClustersAssociatedIds + = hybridAksClustersAssociatedIds; + } else if ("hybridAksPluginType".equals(fieldName)) { + deserializedTrunkedNetworkProperties.hybridAksPluginType + = HybridAksPluginType.fromString(reader.getString()); + } else if ("interfaceName".equals(fieldName)) { + deserializedTrunkedNetworkProperties.interfaceName = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedTrunkedNetworkProperties.provisioningState + = TrunkedNetworkProvisioningState.fromString(reader.getString()); + } else if ("virtualMachinesAssociatedIds".equals(fieldName)) { + List virtualMachinesAssociatedIds = reader.readArray(reader1 -> reader1.getString()); + deserializedTrunkedNetworkProperties.virtualMachinesAssociatedIds = virtualMachinesAssociatedIds; + } else { + reader.skipChildren(); + } + } + + return deserializedTrunkedNetworkProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineInner.java index 0d927f2f26517..bcfadc212015e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineInner.java @@ -8,6 +8,9 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.ImageRepositoryCredentials; import com.azure.resourcemanager.networkcloud.models.NetworkAttachment; @@ -21,45 +24,54 @@ import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerState; import com.azure.resourcemanager.networkcloud.models.VirtualMachineProvisioningState; import com.azure.resourcemanager.networkcloud.models.VirtualMachineVirtioInterfaceType; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** VirtualMachine represents the on-premises Network Cloud virtual machine. */ +/** + * VirtualMachine represents the on-premises Network Cloud virtual machine. + */ @Fluent public final class VirtualMachineInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * VirtualMachineProperties represents the properties of the virtual machine. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private VirtualMachineProperties innerProperties = new VirtualMachineProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of VirtualMachineInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of VirtualMachineInner class. + */ public VirtualMachineInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -67,11 +79,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the VirtualMachineInner object itself. */ @@ -81,10 +90,8 @@ public VirtualMachineInner withExtendedLocation(ExtendedLocation extendedLocatio } /** - * Get the innerProperties property: VirtualMachineProperties represents the properties of the virtual machine. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private VirtualMachineProperties innerProperties() { @@ -93,21 +100,55 @@ private VirtualMachineProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public VirtualMachineInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VirtualMachineInner withTags(Map tags) { super.withTags(tags); @@ -117,7 +158,7 @@ public VirtualMachineInner withTags(Map tags) { /** * Get the adminUsername property: The name of the administrator to which the ssh public keys will be added into the * authorized keys. - * + * * @return the adminUsername value. */ public String adminUsername() { @@ -127,7 +168,7 @@ public String adminUsername() { /** * Set the adminUsername property: The name of the administrator to which the ssh public keys will be added into the * authorized keys. - * + * * @param adminUsername the adminUsername value to set. * @return the VirtualMachineInner object itself. */ @@ -141,7 +182,7 @@ public VirtualMachineInner withAdminUsername(String adminUsername) { /** * Get the availabilityZone property: The cluster availability zone containing this virtual machine. - * + * * @return the availabilityZone value. */ public String availabilityZone() { @@ -149,8 +190,8 @@ public String availabilityZone() { } /** - * Get the bareMetalMachineId property: The resource ID of the bare metal machine the virtual machine has landed to. - * + * Get the bareMetalMachineId property: The resource ID of the bare metal machine that hosts the virtual machine. + * * @return the bareMetalMachineId value. */ public String bareMetalMachineId() { @@ -159,7 +200,7 @@ public String bareMetalMachineId() { /** * Get the bootMethod property: Selects the boot method for the virtual machine. - * + * * @return the bootMethod value. */ public VirtualMachineBootMethod bootMethod() { @@ -168,7 +209,7 @@ public VirtualMachineBootMethod bootMethod() { /** * Set the bootMethod property: Selects the boot method for the virtual machine. - * + * * @param bootMethod the bootMethod value to set. * @return the VirtualMachineInner object itself. */ @@ -181,10 +222,9 @@ public VirtualMachineInner withBootMethod(VirtualMachineBootMethod bootMethod) { } /** - * Get the cloudServicesNetworkAttachment property: NetworkAttachment represents the single network attachment. - * - *

The cloud service network that provides platform-level services for the virtual machine. - * + * Get the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services + * for the virtual machine. + * * @return the cloudServicesNetworkAttachment value. */ public NetworkAttachment cloudServicesNetworkAttachment() { @@ -192,10 +232,9 @@ public NetworkAttachment cloudServicesNetworkAttachment() { } /** - * Set the cloudServicesNetworkAttachment property: NetworkAttachment represents the single network attachment. - * - *

The cloud service network that provides platform-level services for the virtual machine. - * + * Set the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services + * for the virtual machine. + * * @param cloudServicesNetworkAttachment the cloudServicesNetworkAttachment value to set. * @return the VirtualMachineInner object itself. */ @@ -209,7 +248,7 @@ public VirtualMachineInner withCloudServicesNetworkAttachment(NetworkAttachment /** * Get the clusterId property: The resource ID of the cluster the virtual machine is created for. - * + * * @return the clusterId value. */ public String clusterId() { @@ -218,7 +257,7 @@ public String clusterId() { /** * Get the cpuCores property: The number of CPU cores in the virtual machine. - * + * * @return the cpuCores value. */ public long cpuCores() { @@ -227,7 +266,7 @@ public long cpuCores() { /** * Set the cpuCores property: The number of CPU cores in the virtual machine. - * + * * @param cpuCores the cpuCores value to set. * @return the VirtualMachineInner object itself. */ @@ -241,7 +280,7 @@ public VirtualMachineInner withCpuCores(long cpuCores) { /** * Get the detailedStatus property: The more detailed status of the virtual machine. - * + * * @return the detailedStatus value. */ public VirtualMachineDetailedStatus detailedStatus() { @@ -250,7 +289,7 @@ public VirtualMachineDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -260,7 +299,7 @@ public String detailedStatusMessage() { /** * Get the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator of * whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. - * + * * @return the isolateEmulatorThread value. */ public VirtualMachineIsolateEmulatorThread isolateEmulatorThread() { @@ -270,7 +309,7 @@ public VirtualMachineIsolateEmulatorThread isolateEmulatorThread() { /** * Set the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator of * whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. - * + * * @param isolateEmulatorThread the isolateEmulatorThread value to set. * @return the VirtualMachineInner object itself. */ @@ -283,8 +322,8 @@ public VirtualMachineInner withIsolateEmulatorThread(VirtualMachineIsolateEmulat } /** - * Get the memorySizeGB property: The memory size of the virtual machine in GB. - * + * Get the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes. + * * @return the memorySizeGB value. */ public long memorySizeGB() { @@ -292,8 +331,8 @@ public long memorySizeGB() { } /** - * Set the memorySizeGB property: The memory size of the virtual machine in GB. - * + * Set the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes. + * * @param memorySizeGB the memorySizeGB value to set. * @return the VirtualMachineInner object itself. */ @@ -307,7 +346,7 @@ public VirtualMachineInner withMemorySizeGB(long memorySizeGB) { /** * Get the networkAttachments property: The list of network attachments to the virtual machine. - * + * * @return the networkAttachments value. */ public List networkAttachments() { @@ -316,7 +355,7 @@ public List networkAttachments() { /** * Set the networkAttachments property: The list of network attachments to the virtual machine. - * + * * @param networkAttachments the networkAttachments value to set. * @return the VirtualMachineInner object itself. */ @@ -330,7 +369,7 @@ public VirtualMachineInner withNetworkAttachments(List networ /** * Get the networkData property: The Base64 encoded cloud-init network data. - * + * * @return the networkData value. */ public String networkData() { @@ -339,7 +378,7 @@ public String networkData() { /** * Set the networkData property: The Base64 encoded cloud-init network data. - * + * * @param networkData the networkData value to set. * @return the VirtualMachineInner object itself. */ @@ -353,7 +392,7 @@ public VirtualMachineInner withNetworkData(String networkData) { /** * Get the placementHints property: The scheduling hints for the virtual machine. - * + * * @return the placementHints value. */ public List placementHints() { @@ -362,7 +401,7 @@ public List placementHints() { /** * Set the placementHints property: The scheduling hints for the virtual machine. - * + * * @param placementHints the placementHints value to set. * @return the VirtualMachineInner object itself. */ @@ -376,7 +415,7 @@ public VirtualMachineInner withPlacementHints(List /** * Get the powerState property: The power state of the virtual machine. - * + * * @return the powerState value. */ public VirtualMachinePowerState powerState() { @@ -385,7 +424,7 @@ public VirtualMachinePowerState powerState() { /** * Get the provisioningState property: The provisioning state of the virtual machine. - * + * * @return the provisioningState value. */ public VirtualMachineProvisioningState provisioningState() { @@ -395,7 +434,7 @@ public VirtualMachineProvisioningState provisioningState() { /** * Get the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual machine using * the cloud-init ssh_authorized_keys mechanism for the adminUsername. - * + * * @return the sshPublicKeys value. */ public List sshPublicKeys() { @@ -405,7 +444,7 @@ public List sshPublicKeys() { /** * Set the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual machine using * the cloud-init ssh_authorized_keys mechanism for the adminUsername. - * + * * @param sshPublicKeys the sshPublicKeys value to set. * @return the VirtualMachineInner object itself. */ @@ -418,10 +457,9 @@ public VirtualMachineInner withSshPublicKeys(List sshPublicKeys) { } /** - * Get the storageProfile property: StorageProfile represents information about a disk. - * - *

The storage profile that specifies size and other parameters about the disks related to the virtual machine. - * + * Get the storageProfile property: The storage profile that specifies size and other parameters about the disks + * related to the virtual machine. + * * @return the storageProfile value. */ public StorageProfile storageProfile() { @@ -429,10 +467,9 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile property: StorageProfile represents information about a disk. - * - *

The storage profile that specifies size and other parameters about the disks related to the virtual machine. - * + * Set the storageProfile property: The storage profile that specifies size and other parameters about the disks + * related to the virtual machine. + * * @param storageProfile the storageProfile value to set. * @return the VirtualMachineInner object itself. */ @@ -446,7 +483,7 @@ public VirtualMachineInner withStorageProfile(StorageProfile storageProfile) { /** * Get the userData property: The Base64 encoded cloud-init user data. - * + * * @return the userData value. */ public String userData() { @@ -455,7 +492,7 @@ public String userData() { /** * Set the userData property: The Base64 encoded cloud-init user data. - * + * * @param userData the userData value to set. * @return the VirtualMachineInner object itself. */ @@ -470,7 +507,7 @@ public VirtualMachineInner withUserData(String userData) { /** * Get the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio * interface. - * + * * @return the virtioInterface value. */ public VirtualMachineVirtioInterfaceType virtioInterface() { @@ -480,7 +517,7 @@ public VirtualMachineVirtioInterfaceType virtioInterface() { /** * Set the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio * interface. - * + * * @param virtioInterface the virtioInterface value to set. * @return the VirtualMachineInner object itself. */ @@ -494,7 +531,7 @@ public VirtualMachineInner withVirtioInterface(VirtualMachineVirtioInterfaceType /** * Get the vmDeviceModel property: The type of the device model to use. - * + * * @return the vmDeviceModel value. */ public VirtualMachineDeviceModelType vmDeviceModel() { @@ -503,7 +540,7 @@ public VirtualMachineDeviceModelType vmDeviceModel() { /** * Set the vmDeviceModel property: The type of the device model to use. - * + * * @param vmDeviceModel the vmDeviceModel value to set. * @return the VirtualMachineInner object itself. */ @@ -518,7 +555,7 @@ public VirtualMachineInner withVmDeviceModel(VirtualMachineDeviceModelType vmDev /** * Get the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full * url and tag notation used to pull the image. - * + * * @return the vmImage value. */ public String vmImage() { @@ -528,7 +565,7 @@ public String vmImage() { /** * Set the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full * url and tag notation used to pull the image. - * + * * @param vmImage the vmImage value to set. * @return the VirtualMachineInner object itself. */ @@ -541,11 +578,9 @@ public VirtualMachineInner withVmImage(String vmImage) { } /** - * Get the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Get the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @return the vmImageRepositoryCredentials value. */ public ImageRepositoryCredentials vmImageRepositoryCredentials() { @@ -553,11 +588,9 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { } /** - * Set the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Set the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @param vmImageRepositoryCredentials the vmImageRepositoryCredentials value to set. * @return the VirtualMachineInner object itself. */ @@ -572,7 +605,7 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { /** * Get the volumes property: The resource IDs of volumes that are attached to the virtual machine. - * + * * @return the volumes value. */ public List volumes() { @@ -581,23 +614,80 @@ public List volumes() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property extendedLocation in model VirtualMachineInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property extendedLocation in model VirtualMachineInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model VirtualMachineInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model VirtualMachineInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(VirtualMachineInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachineInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachineInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the VirtualMachineInner. + */ + public static VirtualMachineInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachineInner deserializedVirtualMachineInner = new VirtualMachineInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedVirtualMachineInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedVirtualMachineInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedVirtualMachineInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedVirtualMachineInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedVirtualMachineInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedVirtualMachineInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedVirtualMachineInner.innerProperties = VirtualMachineProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedVirtualMachineInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachineInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachinePatchProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachinePatchProperties.java index a739ee5cffde6..ad532bba522a3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachinePatchProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachinePatchProperties.java @@ -5,30 +5,33 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ImageRepositoryCredentials; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** VirtualMachinePatchProperties represents the properties of the virtual machine that can be patched. */ +/** + * VirtualMachinePatchProperties represents the properties of the virtual machine that can be patched. + */ @Fluent -public final class VirtualMachinePatchProperties { +public final class VirtualMachinePatchProperties implements JsonSerializable { /* - * ImageRepositoryCredentials represents the credentials used to login to the image repository. - * * The credentials used to login to the image repository that has access to the specified image. */ - @JsonProperty(value = "vmImageRepositoryCredentials") private ImageRepositoryCredentials vmImageRepositoryCredentials; - /** Creates an instance of VirtualMachinePatchProperties class. */ + /** + * Creates an instance of VirtualMachinePatchProperties class. + */ public VirtualMachinePatchProperties() { } /** - * Get the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Get the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @return the vmImageRepositoryCredentials value. */ public ImageRepositoryCredentials vmImageRepositoryCredentials() { @@ -36,11 +39,9 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { } /** - * Set the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Set the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @param vmImageRepositoryCredentials the vmImageRepositoryCredentials value to set. * @return the VirtualMachinePatchProperties object itself. */ @@ -52,7 +53,7 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -60,4 +61,42 @@ public void validate() { vmImageRepositoryCredentials().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("vmImageRepositoryCredentials", this.vmImageRepositoryCredentials); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachinePatchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachinePatchProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the VirtualMachinePatchProperties. + */ + public static VirtualMachinePatchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachinePatchProperties deserializedVirtualMachinePatchProperties + = new VirtualMachinePatchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("vmImageRepositoryCredentials".equals(fieldName)) { + deserializedVirtualMachinePatchProperties.vmImageRepositoryCredentials + = ImageRepositoryCredentials.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachinePatchProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineProperties.java index 53ceb05966bab..0887f5f9404a4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VirtualMachineProperties.java @@ -6,6 +6,10 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ImageRepositoryCredentials; import com.azure.resourcemanager.networkcloud.models.NetworkAttachment; import com.azure.resourcemanager.networkcloud.models.SshPublicKey; @@ -18,173 +22,147 @@ import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerState; import com.azure.resourcemanager.networkcloud.models.VirtualMachineProvisioningState; import com.azure.resourcemanager.networkcloud.models.VirtualMachineVirtioInterfaceType; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** VirtualMachineProperties represents the properties of the virtual machine. */ +/** + * VirtualMachineProperties represents the properties of the virtual machine. + */ @Fluent -public final class VirtualMachineProperties { +public final class VirtualMachineProperties implements JsonSerializable { /* * The name of the administrator to which the ssh public keys will be added into the authorized keys. */ - @JsonProperty(value = "adminUsername", required = true) private String adminUsername; /* * The cluster availability zone containing this virtual machine. */ - @JsonProperty(value = "availabilityZone", access = JsonProperty.Access.WRITE_ONLY) private String availabilityZone; /* - * The resource ID of the bare metal machine the virtual machine has landed to. + * The resource ID of the bare metal machine that hosts the virtual machine. */ - @JsonProperty(value = "bareMetalMachineId", access = JsonProperty.Access.WRITE_ONLY) private String bareMetalMachineId; /* * Selects the boot method for the virtual machine. */ - @JsonProperty(value = "bootMethod") private VirtualMachineBootMethod bootMethod; /* - * NetworkAttachment represents the single network attachment. - * * The cloud service network that provides platform-level services for the virtual machine. */ - @JsonProperty(value = "cloudServicesNetworkAttachment", required = true) private NetworkAttachment cloudServicesNetworkAttachment; /* * The resource ID of the cluster the virtual machine is created for. */ - @JsonProperty(value = "clusterId", access = JsonProperty.Access.WRITE_ONLY) private String clusterId; /* * The number of CPU cores in the virtual machine. */ - @JsonProperty(value = "cpuCores", required = true) private long cpuCores; /* * The more detailed status of the virtual machine. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private VirtualMachineDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores * is isolated to run the emulator thread for this virtual machine. */ - @JsonProperty(value = "isolateEmulatorThread") private VirtualMachineIsolateEmulatorThread isolateEmulatorThread; /* - * The memory size of the virtual machine in GB. + * The memory size of the virtual machine. Allocations are measured in gibibytes. */ - @JsonProperty(value = "memorySizeGB", required = true) private long memorySizeGB; /* * The list of network attachments to the virtual machine. */ - @JsonProperty(value = "networkAttachments") private List networkAttachments; /* * The Base64 encoded cloud-init network data. */ - @JsonProperty(value = "networkData") private String networkData; /* * The scheduling hints for the virtual machine. */ - @JsonProperty(value = "placementHints") private List placementHints; /* * The power state of the virtual machine. */ - @JsonProperty(value = "powerState", access = JsonProperty.Access.WRITE_ONLY) private VirtualMachinePowerState powerState; /* * The provisioning state of the virtual machine. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private VirtualMachineProvisioningState provisioningState; /* * The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init * ssh_authorized_keys mechanism for the adminUsername. */ - @JsonProperty(value = "sshPublicKeys") private List sshPublicKeys; /* - * StorageProfile represents information about a disk. - * * The storage profile that specifies size and other parameters about the disks related to the virtual machine. */ - @JsonProperty(value = "storageProfile", required = true) private StorageProfile storageProfile; /* * The Base64 encoded cloud-init user data. */ - @JsonProperty(value = "userData") private String userData; /* * Field Deprecated, use virtualizationModel instead. The type of the virtio interface. */ - @JsonProperty(value = "virtioInterface") private VirtualMachineVirtioInterfaceType virtioInterface; /* * The type of the device model to use. */ - @JsonProperty(value = "vmDeviceModel") private VirtualMachineDeviceModelType vmDeviceModel; /* * The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used * to pull the image. */ - @JsonProperty(value = "vmImage", required = true) private String vmImage; /* - * ImageRepositoryCredentials represents the credentials used to login to the image repository. - * * The credentials used to login to the image repository that has access to the specified image. */ - @JsonProperty(value = "vmImageRepositoryCredentials") private ImageRepositoryCredentials vmImageRepositoryCredentials; /* * The resource IDs of volumes that are attached to the virtual machine. */ - @JsonProperty(value = "volumes", access = JsonProperty.Access.WRITE_ONLY) private List volumes; - /** Creates an instance of VirtualMachineProperties class. */ + /** + * Creates an instance of VirtualMachineProperties class. + */ public VirtualMachineProperties() { } /** * Get the adminUsername property: The name of the administrator to which the ssh public keys will be added into the * authorized keys. - * + * * @return the adminUsername value. */ public String adminUsername() { @@ -194,7 +172,7 @@ public String adminUsername() { /** * Set the adminUsername property: The name of the administrator to which the ssh public keys will be added into the * authorized keys. - * + * * @param adminUsername the adminUsername value to set. * @return the VirtualMachineProperties object itself. */ @@ -205,7 +183,7 @@ public VirtualMachineProperties withAdminUsername(String adminUsername) { /** * Get the availabilityZone property: The cluster availability zone containing this virtual machine. - * + * * @return the availabilityZone value. */ public String availabilityZone() { @@ -213,8 +191,8 @@ public String availabilityZone() { } /** - * Get the bareMetalMachineId property: The resource ID of the bare metal machine the virtual machine has landed to. - * + * Get the bareMetalMachineId property: The resource ID of the bare metal machine that hosts the virtual machine. + * * @return the bareMetalMachineId value. */ public String bareMetalMachineId() { @@ -223,7 +201,7 @@ public String bareMetalMachineId() { /** * Get the bootMethod property: Selects the boot method for the virtual machine. - * + * * @return the bootMethod value. */ public VirtualMachineBootMethod bootMethod() { @@ -232,7 +210,7 @@ public VirtualMachineBootMethod bootMethod() { /** * Set the bootMethod property: Selects the boot method for the virtual machine. - * + * * @param bootMethod the bootMethod value to set. * @return the VirtualMachineProperties object itself. */ @@ -242,10 +220,9 @@ public VirtualMachineProperties withBootMethod(VirtualMachineBootMethod bootMeth } /** - * Get the cloudServicesNetworkAttachment property: NetworkAttachment represents the single network attachment. - * - *

The cloud service network that provides platform-level services for the virtual machine. - * + * Get the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services + * for the virtual machine. + * * @return the cloudServicesNetworkAttachment value. */ public NetworkAttachment cloudServicesNetworkAttachment() { @@ -253,10 +230,9 @@ public NetworkAttachment cloudServicesNetworkAttachment() { } /** - * Set the cloudServicesNetworkAttachment property: NetworkAttachment represents the single network attachment. - * - *

The cloud service network that provides platform-level services for the virtual machine. - * + * Set the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services + * for the virtual machine. + * * @param cloudServicesNetworkAttachment the cloudServicesNetworkAttachment value to set. * @return the VirtualMachineProperties object itself. */ @@ -268,7 +244,7 @@ public NetworkAttachment cloudServicesNetworkAttachment() { /** * Get the clusterId property: The resource ID of the cluster the virtual machine is created for. - * + * * @return the clusterId value. */ public String clusterId() { @@ -277,7 +253,7 @@ public String clusterId() { /** * Get the cpuCores property: The number of CPU cores in the virtual machine. - * + * * @return the cpuCores value. */ public long cpuCores() { @@ -286,7 +262,7 @@ public long cpuCores() { /** * Set the cpuCores property: The number of CPU cores in the virtual machine. - * + * * @param cpuCores the cpuCores value to set. * @return the VirtualMachineProperties object itself. */ @@ -297,7 +273,7 @@ public VirtualMachineProperties withCpuCores(long cpuCores) { /** * Get the detailedStatus property: The more detailed status of the virtual machine. - * + * * @return the detailedStatus value. */ public VirtualMachineDetailedStatus detailedStatus() { @@ -306,7 +282,7 @@ public VirtualMachineDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -316,7 +292,7 @@ public String detailedStatusMessage() { /** * Get the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator of * whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. - * + * * @return the isolateEmulatorThread value. */ public VirtualMachineIsolateEmulatorThread isolateEmulatorThread() { @@ -326,7 +302,7 @@ public VirtualMachineIsolateEmulatorThread isolateEmulatorThread() { /** * Set the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator of * whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. - * + * * @param isolateEmulatorThread the isolateEmulatorThread value to set. * @return the VirtualMachineProperties object itself. */ @@ -337,8 +313,8 @@ public VirtualMachineIsolateEmulatorThread isolateEmulatorThread() { } /** - * Get the memorySizeGB property: The memory size of the virtual machine in GB. - * + * Get the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes. + * * @return the memorySizeGB value. */ public long memorySizeGB() { @@ -346,8 +322,8 @@ public long memorySizeGB() { } /** - * Set the memorySizeGB property: The memory size of the virtual machine in GB. - * + * Set the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes. + * * @param memorySizeGB the memorySizeGB value to set. * @return the VirtualMachineProperties object itself. */ @@ -358,7 +334,7 @@ public VirtualMachineProperties withMemorySizeGB(long memorySizeGB) { /** * Get the networkAttachments property: The list of network attachments to the virtual machine. - * + * * @return the networkAttachments value. */ public List networkAttachments() { @@ -367,7 +343,7 @@ public List networkAttachments() { /** * Set the networkAttachments property: The list of network attachments to the virtual machine. - * + * * @param networkAttachments the networkAttachments value to set. * @return the VirtualMachineProperties object itself. */ @@ -378,7 +354,7 @@ public VirtualMachineProperties withNetworkAttachments(List n /** * Get the networkData property: The Base64 encoded cloud-init network data. - * + * * @return the networkData value. */ public String networkData() { @@ -387,7 +363,7 @@ public String networkData() { /** * Set the networkData property: The Base64 encoded cloud-init network data. - * + * * @param networkData the networkData value to set. * @return the VirtualMachineProperties object itself. */ @@ -398,7 +374,7 @@ public VirtualMachineProperties withNetworkData(String networkData) { /** * Get the placementHints property: The scheduling hints for the virtual machine. - * + * * @return the placementHints value. */ public List placementHints() { @@ -407,7 +383,7 @@ public List placementHints() { /** * Set the placementHints property: The scheduling hints for the virtual machine. - * + * * @param placementHints the placementHints value to set. * @return the VirtualMachineProperties object itself. */ @@ -418,7 +394,7 @@ public VirtualMachineProperties withPlacementHints(List sshPublicKeys() { @@ -447,7 +423,7 @@ public List sshPublicKeys() { /** * Set the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual machine using * the cloud-init ssh_authorized_keys mechanism for the adminUsername. - * + * * @param sshPublicKeys the sshPublicKeys value to set. * @return the VirtualMachineProperties object itself. */ @@ -457,10 +433,9 @@ public VirtualMachineProperties withSshPublicKeys(List sshPublicKe } /** - * Get the storageProfile property: StorageProfile represents information about a disk. - * - *

The storage profile that specifies size and other parameters about the disks related to the virtual machine. - * + * Get the storageProfile property: The storage profile that specifies size and other parameters about the disks + * related to the virtual machine. + * * @return the storageProfile value. */ public StorageProfile storageProfile() { @@ -468,10 +443,9 @@ public StorageProfile storageProfile() { } /** - * Set the storageProfile property: StorageProfile represents information about a disk. - * - *

The storage profile that specifies size and other parameters about the disks related to the virtual machine. - * + * Set the storageProfile property: The storage profile that specifies size and other parameters about the disks + * related to the virtual machine. + * * @param storageProfile the storageProfile value to set. * @return the VirtualMachineProperties object itself. */ @@ -482,7 +456,7 @@ public VirtualMachineProperties withStorageProfile(StorageProfile storageProfile /** * Get the userData property: The Base64 encoded cloud-init user data. - * + * * @return the userData value. */ public String userData() { @@ -491,7 +465,7 @@ public String userData() { /** * Set the userData property: The Base64 encoded cloud-init user data. - * + * * @param userData the userData value to set. * @return the VirtualMachineProperties object itself. */ @@ -503,7 +477,7 @@ public VirtualMachineProperties withUserData(String userData) { /** * Get the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio * interface. - * + * * @return the virtioInterface value. */ public VirtualMachineVirtioInterfaceType virtioInterface() { @@ -513,7 +487,7 @@ public VirtualMachineVirtioInterfaceType virtioInterface() { /** * Set the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio * interface. - * + * * @param virtioInterface the virtioInterface value to set. * @return the VirtualMachineProperties object itself. */ @@ -524,7 +498,7 @@ public VirtualMachineProperties withVirtioInterface(VirtualMachineVirtioInterfac /** * Get the vmDeviceModel property: The type of the device model to use. - * + * * @return the vmDeviceModel value. */ public VirtualMachineDeviceModelType vmDeviceModel() { @@ -533,7 +507,7 @@ public VirtualMachineDeviceModelType vmDeviceModel() { /** * Set the vmDeviceModel property: The type of the device model to use. - * + * * @param vmDeviceModel the vmDeviceModel value to set. * @return the VirtualMachineProperties object itself. */ @@ -545,7 +519,7 @@ public VirtualMachineProperties withVmDeviceModel(VirtualMachineDeviceModelType /** * Get the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full * url and tag notation used to pull the image. - * + * * @return the vmImage value. */ public String vmImage() { @@ -555,7 +529,7 @@ public String vmImage() { /** * Set the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full * url and tag notation used to pull the image. - * + * * @param vmImage the vmImage value to set. * @return the VirtualMachineProperties object itself. */ @@ -565,11 +539,9 @@ public VirtualMachineProperties withVmImage(String vmImage) { } /** - * Get the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Get the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @return the vmImageRepositoryCredentials value. */ public ImageRepositoryCredentials vmImageRepositoryCredentials() { @@ -577,11 +549,9 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { } /** - * Set the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Set the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @param vmImageRepositoryCredentials the vmImageRepositoryCredentials value to set. * @return the VirtualMachineProperties object itself. */ @@ -593,7 +563,7 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { /** * Get the volumes property: The resource IDs of volumes that are attached to the virtual machine. - * + * * @return the volumes value. */ public List volumes() { @@ -602,17 +572,19 @@ public List volumes() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (adminUsername() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property adminUsername in model VirtualMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property adminUsername in model VirtualMachineProperties")); } if (cloudServicesNetworkAttachment() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property cloudServicesNetworkAttachment in model VirtualMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property cloudServicesNetworkAttachment in model VirtualMachineProperties")); } else { cloudServicesNetworkAttachment().validate(); } @@ -626,14 +598,16 @@ public void validate() { sshPublicKeys().forEach(e -> e.validate()); } if (storageProfile() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property storageProfile in model VirtualMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property storageProfile in model VirtualMachineProperties")); } else { storageProfile().validate(); } if (vmImage() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property vmImage in model VirtualMachineProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property vmImage in model VirtualMachineProperties")); } if (vmImageRepositoryCredentials() != null) { vmImageRepositoryCredentials().validate(); @@ -641,4 +615,121 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(VirtualMachineProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("adminUsername", this.adminUsername); + jsonWriter.writeJsonField("cloudServicesNetworkAttachment", this.cloudServicesNetworkAttachment); + jsonWriter.writeLongField("cpuCores", this.cpuCores); + jsonWriter.writeLongField("memorySizeGB", this.memorySizeGB); + jsonWriter.writeJsonField("storageProfile", this.storageProfile); + jsonWriter.writeStringField("vmImage", this.vmImage); + jsonWriter.writeStringField("bootMethod", this.bootMethod == null ? null : this.bootMethod.toString()); + jsonWriter.writeStringField("isolateEmulatorThread", + this.isolateEmulatorThread == null ? null : this.isolateEmulatorThread.toString()); + jsonWriter.writeArrayField("networkAttachments", this.networkAttachments, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("networkData", this.networkData); + jsonWriter.writeArrayField("placementHints", this.placementHints, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("sshPublicKeys", this.sshPublicKeys, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("userData", this.userData); + jsonWriter.writeStringField("virtioInterface", + this.virtioInterface == null ? null : this.virtioInterface.toString()); + jsonWriter.writeStringField("vmDeviceModel", this.vmDeviceModel == null ? null : this.vmDeviceModel.toString()); + jsonWriter.writeJsonField("vmImageRepositoryCredentials", this.vmImageRepositoryCredentials); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachineProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachineProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the VirtualMachineProperties. + */ + public static VirtualMachineProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachineProperties deserializedVirtualMachineProperties = new VirtualMachineProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("adminUsername".equals(fieldName)) { + deserializedVirtualMachineProperties.adminUsername = reader.getString(); + } else if ("cloudServicesNetworkAttachment".equals(fieldName)) { + deserializedVirtualMachineProperties.cloudServicesNetworkAttachment + = NetworkAttachment.fromJson(reader); + } else if ("cpuCores".equals(fieldName)) { + deserializedVirtualMachineProperties.cpuCores = reader.getLong(); + } else if ("memorySizeGB".equals(fieldName)) { + deserializedVirtualMachineProperties.memorySizeGB = reader.getLong(); + } else if ("storageProfile".equals(fieldName)) { + deserializedVirtualMachineProperties.storageProfile = StorageProfile.fromJson(reader); + } else if ("vmImage".equals(fieldName)) { + deserializedVirtualMachineProperties.vmImage = reader.getString(); + } else if ("availabilityZone".equals(fieldName)) { + deserializedVirtualMachineProperties.availabilityZone = reader.getString(); + } else if ("bareMetalMachineId".equals(fieldName)) { + deserializedVirtualMachineProperties.bareMetalMachineId = reader.getString(); + } else if ("bootMethod".equals(fieldName)) { + deserializedVirtualMachineProperties.bootMethod + = VirtualMachineBootMethod.fromString(reader.getString()); + } else if ("clusterId".equals(fieldName)) { + deserializedVirtualMachineProperties.clusterId = reader.getString(); + } else if ("detailedStatus".equals(fieldName)) { + deserializedVirtualMachineProperties.detailedStatus + = VirtualMachineDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedVirtualMachineProperties.detailedStatusMessage = reader.getString(); + } else if ("isolateEmulatorThread".equals(fieldName)) { + deserializedVirtualMachineProperties.isolateEmulatorThread + = VirtualMachineIsolateEmulatorThread.fromString(reader.getString()); + } else if ("networkAttachments".equals(fieldName)) { + List networkAttachments + = reader.readArray(reader1 -> NetworkAttachment.fromJson(reader1)); + deserializedVirtualMachineProperties.networkAttachments = networkAttachments; + } else if ("networkData".equals(fieldName)) { + deserializedVirtualMachineProperties.networkData = reader.getString(); + } else if ("placementHints".equals(fieldName)) { + List placementHints + = reader.readArray(reader1 -> VirtualMachinePlacementHint.fromJson(reader1)); + deserializedVirtualMachineProperties.placementHints = placementHints; + } else if ("powerState".equals(fieldName)) { + deserializedVirtualMachineProperties.powerState + = VirtualMachinePowerState.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedVirtualMachineProperties.provisioningState + = VirtualMachineProvisioningState.fromString(reader.getString()); + } else if ("sshPublicKeys".equals(fieldName)) { + List sshPublicKeys = reader.readArray(reader1 -> SshPublicKey.fromJson(reader1)); + deserializedVirtualMachineProperties.sshPublicKeys = sshPublicKeys; + } else if ("userData".equals(fieldName)) { + deserializedVirtualMachineProperties.userData = reader.getString(); + } else if ("virtioInterface".equals(fieldName)) { + deserializedVirtualMachineProperties.virtioInterface + = VirtualMachineVirtioInterfaceType.fromString(reader.getString()); + } else if ("vmDeviceModel".equals(fieldName)) { + deserializedVirtualMachineProperties.vmDeviceModel + = VirtualMachineDeviceModelType.fromString(reader.getString()); + } else if ("vmImageRepositoryCredentials".equals(fieldName)) { + deserializedVirtualMachineProperties.vmImageRepositoryCredentials + = ImageRepositoryCredentials.fromJson(reader); + } else if ("volumes".equals(fieldName)) { + List volumes = reader.readArray(reader1 -> reader1.getString()); + deserializedVirtualMachineProperties.volumes = volumes; + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachineProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeInner.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeInner.java index 3f814c7b50fc1..302537bcb849b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeInner.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeInner.java @@ -8,48 +8,60 @@ import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.VolumeDetailedStatus; import com.azure.resourcemanager.networkcloud.models.VolumeProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** Volume represents storage made available for use by resources running on the cluster. */ +/** + * Volume represents storage made available for use by resources running on the cluster. + */ @Fluent public final class VolumeInner extends Resource { /* - * ExtendedLocation represents the Azure custom location where the resource will be created. - * * The extended location of the cluster associated with the resource. */ - @JsonProperty(value = "extendedLocation", required = true) private ExtendedLocation extendedLocation; /* - * VolumeProperties represents properties of the volume resource. - * * The list of the resource properties. */ - @JsonProperty(value = "properties", required = true) private VolumeProperties innerProperties = new VolumeProperties(); /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of VolumeInner class. */ + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of VolumeInner class. + */ public VolumeInner() { } /** - * Get the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Get the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -57,11 +69,8 @@ public ExtendedLocation extendedLocation() { } /** - * Set the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Set the extendedLocation property: The extended location of the cluster associated with the resource. + * * @param extendedLocation the extendedLocation value to set. * @return the VolumeInner object itself. */ @@ -71,10 +80,8 @@ public VolumeInner withExtendedLocation(ExtendedLocation extendedLocation) { } /** - * Get the innerProperties property: VolumeProperties represents properties of the volume resource. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private VolumeProperties innerProperties() { @@ -83,21 +90,55 @@ private VolumeProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ @Override public VolumeInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public VolumeInner withTags(Map tags) { super.withTags(tags); @@ -107,7 +148,7 @@ public VolumeInner withTags(Map tags) { /** * Get the attachedTo property: The list of resource IDs that attach the volume. It may include virtual machines and * Hybrid AKS clusters. - * + * * @return the attachedTo value. */ public List attachedTo() { @@ -116,7 +157,7 @@ public List attachedTo() { /** * Get the detailedStatus property: The more detailed status of the volume. - * + * * @return the detailedStatus value. */ public VolumeDetailedStatus detailedStatus() { @@ -125,7 +166,7 @@ public VolumeDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -134,7 +175,7 @@ public String detailedStatusMessage() { /** * Get the provisioningState property: The provisioning state of the volume. - * + * * @return the provisioningState value. */ public VolumeProvisioningState provisioningState() { @@ -143,7 +184,7 @@ public VolumeProvisioningState provisioningState() { /** * Get the serialNumber property: The unique identifier of the volume. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -152,7 +193,7 @@ public String serialNumber() { /** * Get the sizeMiB property: The size of the allocation for this volume in Mebibytes. - * + * * @return the sizeMiB value. */ public long sizeMiB() { @@ -161,7 +202,7 @@ public long sizeMiB() { /** * Set the sizeMiB property: The size of the allocation for this volume in Mebibytes. - * + * * @param sizeMiB the sizeMiB value to set. * @return the VolumeInner object itself. */ @@ -175,23 +216,78 @@ public VolumeInner withSizeMiB(long sizeMiB) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (extendedLocation() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property extendedLocation in model VolumeInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property extendedLocation in model VolumeInner")); } else { extendedLocation().validate(); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model VolumeInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property innerProperties in model VolumeInner")); } else { innerProperties().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(VolumeInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("extendedLocation", this.extendedLocation); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VolumeInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VolumeInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the VolumeInner. + */ + public static VolumeInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VolumeInner deserializedVolumeInner = new VolumeInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedVolumeInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedVolumeInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedVolumeInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedVolumeInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedVolumeInner.withTags(tags); + } else if ("extendedLocation".equals(fieldName)) { + deserializedVolumeInner.extendedLocation = ExtendedLocation.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedVolumeInner.innerProperties = VolumeProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedVolumeInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedVolumeInner; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeProperties.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeProperties.java index ecce0afe0170c..0c15c5cadb98e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeProperties.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/VolumeProperties.java @@ -5,58 +5,60 @@ package com.azure.resourcemanager.networkcloud.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.models.VolumeDetailedStatus; import com.azure.resourcemanager.networkcloud.models.VolumeProvisioningState; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** VolumeProperties represents properties of the volume resource. */ +/** + * VolumeProperties represents properties of the volume resource. + */ @Fluent -public final class VolumeProperties { +public final class VolumeProperties implements JsonSerializable { /* * The list of resource IDs that attach the volume. It may include virtual machines and Hybrid AKS clusters. */ - @JsonProperty(value = "attachedTo", access = JsonProperty.Access.WRITE_ONLY) private List attachedTo; /* * The more detailed status of the volume. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private VolumeDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The provisioning state of the volume. */ - @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private VolumeProvisioningState provisioningState; /* * The unique identifier of the volume. */ - @JsonProperty(value = "serialNumber", access = JsonProperty.Access.WRITE_ONLY) private String serialNumber; /* * The size of the allocation for this volume in Mebibytes. */ - @JsonProperty(value = "sizeMiB", required = true) private long sizeMiB; - /** Creates an instance of VolumeProperties class. */ + /** + * Creates an instance of VolumeProperties class. + */ public VolumeProperties() { } /** * Get the attachedTo property: The list of resource IDs that attach the volume. It may include virtual machines and * Hybrid AKS clusters. - * + * * @return the attachedTo value. */ public List attachedTo() { @@ -65,7 +67,7 @@ public List attachedTo() { /** * Get the detailedStatus property: The more detailed status of the volume. - * + * * @return the detailedStatus value. */ public VolumeDetailedStatus detailedStatus() { @@ -74,7 +76,7 @@ public VolumeDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -83,7 +85,7 @@ public String detailedStatusMessage() { /** * Get the provisioningState property: The provisioning state of the volume. - * + * * @return the provisioningState value. */ public VolumeProvisioningState provisioningState() { @@ -92,7 +94,7 @@ public VolumeProvisioningState provisioningState() { /** * Get the serialNumber property: The unique identifier of the volume. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -101,7 +103,7 @@ public String serialNumber() { /** * Get the sizeMiB property: The size of the allocation for this volume in Mebibytes. - * + * * @return the sizeMiB value. */ public long sizeMiB() { @@ -110,7 +112,7 @@ public long sizeMiB() { /** * Set the sizeMiB property: The size of the allocation for this volume in Mebibytes. - * + * * @param sizeMiB the sizeMiB value to set. * @return the VolumeProperties object itself. */ @@ -121,9 +123,58 @@ public VolumeProperties withSizeMiB(long sizeMiB) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("sizeMiB", this.sizeMiB); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VolumeProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VolumeProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the VolumeProperties. + */ + public static VolumeProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VolumeProperties deserializedVolumeProperties = new VolumeProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sizeMiB".equals(fieldName)) { + deserializedVolumeProperties.sizeMiB = reader.getLong(); + } else if ("attachedTo".equals(fieldName)) { + List attachedTo = reader.readArray(reader1 -> reader1.getString()); + deserializedVolumeProperties.attachedTo = attachedTo; + } else if ("detailedStatus".equals(fieldName)) { + deserializedVolumeProperties.detailedStatus = VolumeDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedVolumeProperties.detailedStatusMessage = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedVolumeProperties.provisioningState + = VolumeProvisioningState.fromString(reader.getString()); + } else if ("serialNumber".equals(fieldName)) { + deserializedVolumeProperties.serialNumber = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedVolumeProperties; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/package-info.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/package-info.java index 0a30acf3f8ac1..15e1bcf886fec 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/package-info.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/models/package-info.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the inner data models for NetworkCloud. The Network Cloud APIs provide management of the - * on-premises clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and - * more. + * Package containing the inner data models for NetworkCloud. + * The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, + * hardware resources, and workload infrastructure resources. */ package com.azure.resourcemanager.networkcloud.fluent.models; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/package-info.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/package-info.java index f30dbf227aee0..977a52d96d742 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/package-info.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/fluent/package-info.java @@ -3,7 +3,8 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the service clients for NetworkCloud. The Network Cloud APIs provide management of the on-premises - * clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. + * Package containing the service clients for NetworkCloud. + * The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, + * hardware resources, and workload infrastructure resources. */ package com.azure.resourcemanager.networkcloud.fluent; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolImpl.java index 99b2165c68c69..3205925b6dac0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolImpl.java @@ -19,6 +19,7 @@ import com.azure.resourcemanager.networkcloud.models.AttachedNetworkConfiguration; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.KubernetesLabel; +import com.azure.resourcemanager.networkcloud.models.NodePoolAdministratorConfigurationPatch; import java.util.Collections; import java.util.List; import java.util.Map; @@ -210,9 +211,9 @@ public AgentPool apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.kubernetesClusterName = Utils.getValueFromIdByName(innerObject.id(), "kubernetesClusters"); - this.agentPoolName = Utils.getValueFromIdByName(innerObject.id(), "agentPools"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kubernetesClusters"); + this.agentPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "agentPools"); } public AgentPool refresh() { @@ -311,6 +312,12 @@ public AgentPoolImpl withUpgradeSettings(AgentPoolUpgradeSettings upgradeSetting } } + public AgentPoolImpl + withAdministratorConfiguration(NodePoolAdministratorConfigurationPatch administratorConfiguration) { + this.updateAgentPoolUpdateParameters.withAdministratorConfiguration(administratorConfiguration); + return this; + } + public AgentPoolImpl withCount(Long count) { this.updateAgentPoolUpdateParameters.withCount(count); return this; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsClientImpl.java index bcbbd57bb2ca0..0e792438d52a7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.AgentPoolsClient; import com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.AgentPoolList; import com.azure.resourcemanager.networkcloud.models.AgentPoolPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in AgentPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in AgentPoolsClient. + */ public final class AgentPoolsClientImpl implements AgentPoolsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final AgentPoolsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of AgentPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ AgentPoolsClientImpl(NetworkCloudImpl client) { @@ -131,16 +138,16 @@ Mono> listByKubernetesClusterNext( /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of agent pools for the provided Kubernetes cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByKubernetesClusterSinglePageAsync(String resourceGroupName, @@ -173,9 +180,9 @@ private Mono> listByKubernetesClusterSinglePageAsy /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. @@ -183,7 +190,7 @@ private Mono> listByKubernetesClusterSinglePageAsy * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of agent pools for the provided Kubernetes cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByKubernetesClusterSinglePageAsync(String resourceGroupName, @@ -215,9 +222,9 @@ private Mono> listByKubernetesClusterSinglePageAsy /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -234,9 +241,9 @@ private PagedFlux listByKubernetesClusterAsync(String resourceGr /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. @@ -255,16 +262,16 @@ private PagedFlux listByKubernetesClusterAsync(String resourceGr /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of agent pools for the provided Kubernetes cluster as paginated response with {@link - * PagedIterable}. + * @return a list of agent pools for the provided Kubernetes cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByKubernetesCluster(String resourceGroupName, @@ -274,17 +281,17 @@ public PagedIterable listByKubernetesCluster(String resourceGrou /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of agent pools for the provided Kubernetes cluster as paginated response with {@link - * PagedIterable}. + * @return a list of agent pools for the provided Kubernetes cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName, @@ -294,9 +301,9 @@ public PagedIterable listByKubernetesCluster(String resourceGrou /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -304,7 +311,7 @@ public PagedIterable listByKubernetesCluster(String resourceGrou * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided Kubernetes cluster agent pool along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String kubernetesClusterName, @@ -336,9 +343,9 @@ private Mono> getWithResponseAsync(String resourceGroup /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -347,7 +354,7 @@ private Mono> getWithResponseAsync(String resourceGroup * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided Kubernetes cluster agent pool along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String kubernetesClusterName, @@ -379,9 +386,9 @@ private Mono> getWithResponseAsync(String resourceGroup /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -399,9 +406,9 @@ private Mono getAsync(String resourceGroupName, String kubernete /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -419,9 +426,9 @@ public Response getWithResponse(String resourceGroupName, String /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -437,9 +444,9 @@ public AgentPoolInner get(String resourceGroupName, String kubernetesClusterName /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -448,7 +455,7 @@ public AgentPoolInner get(String resourceGroupName, String kubernetesClusterName * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return agentPool represents the agent pool of Kubernetes cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -488,9 +495,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -500,7 +507,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return agentPool represents the agent pool of Kubernetes cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -539,9 +546,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -562,9 +569,9 @@ private PollerFlux, AgentPoolInner> beginCreateOrUpda /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -587,9 +594,9 @@ private PollerFlux, AgentPoolInner> beginCreateOrUpda /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -609,9 +616,9 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -633,9 +640,9 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -655,9 +662,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -677,9 +684,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -698,9 +705,9 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String kubernetes /** * Create or update the Kubernetes cluster agent pool. - * - *

Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster agent pool or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -720,16 +727,17 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String kubernetes /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -761,9 +769,9 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -771,7 +779,8 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -803,31 +812,32 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String kubernetesClusterName, - String agentPoolName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String kubernetesClusterName, String agentPoolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, kubernetesClusterName, agentPoolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -835,42 +845,42 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String kubernetesClusterName, - String agentPoolName, Context context) { + private PollerFlux, OperationStatusResultInner> beginDeleteAsync( + String resourceGroupName, String kubernetesClusterName, String agentPoolName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, kubernetesClusterName, agentPoolName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName, - String agentPoolName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String kubernetesClusterName, String agentPoolName) { return this.beginDeleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName).getSyncPoller(); } /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -878,38 +888,39 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName, - String agentPoolName, Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, Context context) { return this.beginDeleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName, context).getSyncPoller(); } /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, String agentPoolName) { + private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, + String agentPoolName) { return beginDeleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -917,37 +928,39 @@ private Mono deleteAsync(String resourceGroupName, String kubernetesCluste * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, String agentPoolName, - Context context) { + private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, + String agentPoolName, Context context) { return beginDeleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName) { - deleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, + String agentPoolName) { + return deleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName).block(); } /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -955,18 +968,20 @@ public void delete(String resourceGroupName, String kubernetesClusterName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, Context context) { - deleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, + String agentPoolName, Context context) { + return deleteAsync(resourceGroupName, kubernetesClusterName, agentPoolName, context).block(); } /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -975,7 +990,7 @@ public void delete(String resourceGroupName, String kubernetesClusterName, Strin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return agentPool represents the agent pool of Kubernetes cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1012,10 +1027,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1025,7 +1040,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return agentPool represents the agent pool of Kubernetes cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1061,10 +1076,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1085,10 +1100,10 @@ private PollerFlux, AgentPoolInner> beginUpdateAsync( /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1109,10 +1124,10 @@ private PollerFlux, AgentPoolInner> beginUpdateAsync( /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1136,10 +1151,10 @@ private PollerFlux, AgentPoolInner> beginUpdateAsync( /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1158,10 +1173,10 @@ public SyncPoller, AgentPoolInner> beginUpdate(String /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1184,10 +1199,10 @@ public SyncPoller, AgentPoolInner> beginUpdate(String /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1207,10 +1222,10 @@ private Mono updateAsync(String resourceGroupName, String kubern /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1230,10 +1245,10 @@ private Mono updateAsync(String resourceGroupName, String kubern /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1253,10 +1268,10 @@ private Mono updateAsync(String resourceGroupName, String kubern /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1273,10 +1288,10 @@ public AgentPoolInner update(String resourceGroupName, String kubernetesClusterN /** * Patch the Kubernetes cluster agent pool. - * - *

Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the + * + * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the * Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -1296,14 +1311,13 @@ public AgentPoolInner update(String resourceGroupName, String kubernetesClusterN /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return agentPoolList represents a list of Kubernetes cluster agent pools along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByKubernetesClusterNextSinglePageAsync(String nextLink) { @@ -1325,15 +1339,14 @@ private Mono> listByKubernetesClusterNextSinglePag /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return agentPoolList represents a list of Kubernetes cluster agent pools along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByKubernetesClusterNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsImpl.java index df2cbd5798df2..71a33dd2dab10 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/AgentPoolsImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.AgentPoolsClient; import com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.AgentPool; import com.azure.resourcemanager.networkcloud.models.AgentPools; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class AgentPoolsImpl implements AgentPools { private static final ClientLogger LOGGER = new ClientLogger(AgentPoolsImpl.class); @@ -30,14 +32,14 @@ public AgentPoolsImpl(AgentPoolsClient innerClient, public PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName) { PagedIterable inner = this.serviceClient().listByKubernetesCluster(resourceGroupName, kubernetesClusterName); - return Utils.mapPage(inner, inner1 -> new AgentPoolImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AgentPoolImpl(inner1, this.manager())); } public PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName, Context context) { PagedIterable inner = this.serviceClient().listByKubernetesCluster(resourceGroupName, kubernetesClusterName, context); - return Utils.mapPage(inner, inner1 -> new AgentPoolImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AgentPoolImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String kubernetesClusterName, @@ -61,26 +63,39 @@ public AgentPool get(String resourceGroupName, String kubernetesClusterName, Str } } - public void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName) { - this.serviceClient().delete(resourceGroupName, kubernetesClusterName, agentPoolName); + public OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, kubernetesClusterName, agentPoolName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, Context context) { - this.serviceClient().delete(resourceGroupName, kubernetesClusterName, agentPoolName, context); + public OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, + Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, kubernetesClusterName, agentPoolName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public AgentPool 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); } - String agentPoolName = Utils.getValueFromIdByName(id, "agentPools"); + String agentPoolName = ResourceManagerUtils.getValueFromIdByName(id, "agentPools"); if (agentPoolName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agentPools'.", id))); @@ -89,17 +104,17 @@ public AgentPool getById(String id) { } public Response 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); } - String agentPoolName = Utils.getValueFromIdByName(id, "agentPools"); + String agentPoolName = ResourceManagerUtils.getValueFromIdByName(id, "agentPools"); if (agentPoolName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agentPools'.", id))); @@ -107,42 +122,42 @@ public Response getByIdWithResponse(String id, Context context) { return this.getWithResponse(resourceGroupName, kubernetesClusterName, agentPoolName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); } - String agentPoolName = Utils.getValueFromIdByName(id, "agentPools"); + String agentPoolName = ResourceManagerUtils.getValueFromIdByName(id, "agentPools"); if (agentPoolName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agentPools'.", id))); } - this.delete(resourceGroupName, kubernetesClusterName, agentPoolName, Context.NONE); + return this.delete(resourceGroupName, kubernetesClusterName, agentPoolName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); } - String agentPoolName = Utils.getValueFromIdByName(id, "agentPools"); + String agentPoolName = ResourceManagerUtils.getValueFromIdByName(id, "agentPools"); if (agentPoolName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'agentPools'.", id))); } - this.delete(resourceGroupName, kubernetesClusterName, agentPoolName, context); + return this.delete(resourceGroupName, kubernetesClusterName, agentPoolName, context); } private AgentPoolsClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineImpl.java index 3d030e25e5ece..6ff15adcc82a1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineImpl.java @@ -26,6 +26,8 @@ import com.azure.resourcemanager.networkcloud.models.HardwareInventory; import com.azure.resourcemanager.networkcloud.models.HardwareValidationStatus; import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionStatus; +import com.azure.resourcemanager.networkcloud.models.SecretRotationStatus; import java.util.Collections; import java.util.List; import java.util.Map; @@ -135,6 +137,10 @@ public String kubernetesVersion() { return this.innerModel().kubernetesVersion(); } + public String machineClusterVersion() { + return this.innerModel().machineClusterVersion(); + } + public String machineDetails() { return this.innerModel().machineDetails(); } @@ -143,6 +149,15 @@ public String machineName() { return this.innerModel().machineName(); } + public List machineRoles() { + List inner = this.innerModel().machineRoles(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public String machineSkuId() { return this.innerModel().machineSkuId(); } @@ -179,6 +194,19 @@ public BareMetalMachineReadyState readyState() { return this.innerModel().readyState(); } + public RuntimeProtectionStatus runtimeProtectionStatus() { + return this.innerModel().runtimeProtectionStatus(); + } + + public List secretRotationStatus() { + List inner = this.innerModel().secretRotationStatus(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public String serialNumber() { return this.innerModel().serialNumber(); } @@ -270,8 +298,8 @@ public BareMetalMachine apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.bareMetalMachineName = Utils.getValueFromIdByName(innerObject.id(), "bareMetalMachines"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.bareMetalMachineName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "bareMetalMachines"); } public BareMetalMachine refresh() { @@ -469,6 +497,11 @@ public BareMetalMachineImpl withTags(Map tags) { } } + public BareMetalMachineImpl withMachineClusterVersion(String machineClusterVersion) { + this.innerModel().withMachineClusterVersion(machineClusterVersion); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetImpl.java index f00b808ae4ecd..ca8ace2241a58 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetImpl.java @@ -199,9 +199,10 @@ public BareMetalMachineKeySet apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters"); - this.bareMetalMachineKeySetName = Utils.getValueFromIdByName(innerObject.id(), "bareMetalMachineKeySets"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); + this.bareMetalMachineKeySetName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "bareMetalMachineKeySets"); } public BareMetalMachineKeySet refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsClientImpl.java index 7a9056c4574c7..361b48f8192c9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.BareMetalMachineKeySetsClient; import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineKeySetInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetList; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySetPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in BareMetalMachineKeySetsClient. */ +/** + * An instance of this class provides access to all the operations defined in BareMetalMachineKeySetsClient. + */ public final class BareMetalMachineKeySetsClientImpl implements BareMetalMachineKeySetsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final BareMetalMachineKeySetsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of BareMetalMachineKeySetsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ BareMetalMachineKeySetsClientImpl(NetworkCloudImpl client) { @@ -128,16 +135,16 @@ Mono> listByClusterNext( /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of bare metal machine key sets for the provided cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync(String resourceGroupName, @@ -168,9 +175,9 @@ private Mono> listByClusterSinglePage /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -178,7 +185,7 @@ private Mono> listByClusterSinglePage * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of bare metal machine key sets for the provided cluster along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync(String resourceGroupName, @@ -209,16 +216,16 @@ private Mono> listByClusterSinglePage /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedFlux}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName) { @@ -228,17 +235,17 @@ private PagedFlux listByClusterAsync(String resourc /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedFlux}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName, @@ -249,16 +256,16 @@ private PagedFlux listByClusterAsync(String resourc /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName) { @@ -267,17 +274,17 @@ public PagedIterable listByCluster(String resourceG /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName, @@ -287,9 +294,9 @@ public PagedIterable listByCluster(String resourceG /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -297,7 +304,7 @@ public PagedIterable listByCluster(String resourceG * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bare metal machine key set of the provided cluster along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -331,9 +338,9 @@ private Mono> getWithResponseAsync(String /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -342,7 +349,7 @@ private Mono> getWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bare metal machine key set of the provided cluster along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -374,9 +381,9 @@ private Mono> getWithResponseAsync(String /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -394,9 +401,9 @@ private Mono getAsync(String resourceGroupName, Str /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -414,9 +421,9 @@ public Response getWithResponse(String resourceGrou /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -433,9 +440,9 @@ public BareMetalMachineKeySetInner get(String resourceGroupName, String clusterN /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -444,7 +451,7 @@ public BareMetalMachineKeySetInner get(String resourceGroupName, String clusterN * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineKeySet represents the bare metal machine key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -485,9 +492,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -497,7 +504,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineKeySet represents the bare metal machine key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -537,9 +544,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -562,9 +569,9 @@ private PollerFlux, BareMetalMachineKeyS /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -589,9 +596,9 @@ private PollerFlux, BareMetalMachineKeyS /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -613,9 +620,9 @@ public SyncPoller, BareMetalMachineKeySe /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -638,9 +645,9 @@ public SyncPoller, BareMetalMachineKeySe /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -648,8 +655,8 @@ public SyncPoller, BareMetalMachineKeySe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of {@link - * Mono}. + * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, @@ -660,9 +667,9 @@ private Mono createOrUpdateAsync(String resourceGro /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -671,8 +678,8 @@ private Mono createOrUpdateAsync(String resourceGro * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of {@link - * Mono}. + * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, @@ -684,9 +691,9 @@ private Mono createOrUpdateAsync(String resourceGro /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -705,9 +712,9 @@ public BareMetalMachineKeySetInner createOrUpdate(String resourceGroupName, Stri /** * Create or update the bare metal machine key set of the cluster. - * - *

Create a new bare metal machine key set or update the existing one for the provided cluster. - * + * + * Create a new bare metal machine key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -728,16 +735,17 @@ public BareMetalMachineKeySetInner createOrUpdate(String resourceGroupName, Stri /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, @@ -771,9 +779,9 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -781,7 +789,8 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, @@ -813,31 +822,32 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String bareMetalMachineKeySetName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -845,42 +855,42 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String bareMetalMachineKeySetName, Context context) { + private PollerFlux, OperationStatusResultInner> beginDeleteAsync( + String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String bareMetalMachineKeySetName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName) { return this.beginDeleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName).getSyncPoller(); } /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -888,39 +898,40 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String bareMetalMachineKeySetName, Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, Context context) { return this.beginDeleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName, context) .getSyncPoller(); } /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName) { + private Mono deleteAsync(String resourceGroupName, String clusterName, + String bareMetalMachineKeySetName) { return beginDeleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -928,37 +939,39 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, - Context context) { + private Mono deleteAsync(String resourceGroupName, String clusterName, + String bareMetalMachineKeySetName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName) { - deleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName, + String bareMetalMachineKeySetName) { + return deleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName).block(); } /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -966,19 +979,20 @@ public void delete(String resourceGroupName, String clusterName, String bareMeta * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, - Context context) { - deleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName, + String bareMetalMachineKeySetName, Context context) { + return deleteAsync(resourceGroupName, clusterName, bareMetalMachineKeySetName, context).block(); } /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -987,7 +1001,7 @@ public void delete(String resourceGroupName, String clusterName, String bareMeta * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineKeySet represents the bare metal machine key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -1025,10 +1039,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1038,7 +1052,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineKeySet represents the bare metal machine key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -1075,10 +1089,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1101,10 +1115,10 @@ private PollerFlux, BareMetalMachineKeyS /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1126,10 +1140,10 @@ private PollerFlux, BareMetalMachineKeyS /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1154,10 +1168,10 @@ private PollerFlux, BareMetalMachineKeyS /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1178,10 +1192,10 @@ private PollerFlux, BareMetalMachineKeyS /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1204,10 +1218,10 @@ public SyncPoller, BareMetalMachineKeySe /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1215,8 +1229,8 @@ public SyncPoller, BareMetalMachineKeySe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of {@link - * Mono}. + * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, @@ -1228,18 +1242,18 @@ private Mono updateAsync(String resourceGroupName, /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of {@link - * Mono}. + * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, @@ -1251,10 +1265,10 @@ private Mono updateAsync(String resourceGroupName, /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1263,8 +1277,8 @@ private Mono updateAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of {@link - * Mono}. + * @return bareMetalMachineKeySet represents the bare metal machine key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, @@ -1276,10 +1290,10 @@ private Mono updateAsync(String resourceGroupName, /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1298,10 +1312,10 @@ public BareMetalMachineKeySetInner update(String resourceGroupName, String clust /** * Patch bare metal machine key set of the cluster. - * - *

Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with - * it. Properties and tag updates can be done independently. - * + * + * Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. + * Properties and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -1322,14 +1336,13 @@ public BareMetalMachineKeySetInner update(String resourceGroupName, String clust /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bareMetalMachineKeySetList represents a list of bare metal machine key sets along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return bareMetalMachineKeySetList represents a list of bare metal machine key sets along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterNextSinglePageAsync(String nextLink) { @@ -1350,15 +1363,14 @@ private Mono> listByClusterNextSingle /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bareMetalMachineKeySetList represents a list of bare metal machine key sets along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return bareMetalMachineKeySetList represents a list of bare metal machine key sets along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsImpl.java index ff438a4e86327..be90edbc54070 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachineKeySetsImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.BareMetalMachineKeySetsClient; import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineKeySetInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySet; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineKeySets; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineKeySetsImpl.class); @@ -30,14 +32,14 @@ public BareMetalMachineKeySetsImpl(BareMetalMachineKeySetsClient innerClient, public PagedIterable listByCluster(String resourceGroupName, String clusterName) { PagedIterable inner = this.serviceClient().listByCluster(resourceGroupName, clusterName); - return Utils.mapPage(inner, inner1 -> new BareMetalMachineKeySetImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BareMetalMachineKeySetImpl(inner1, this.manager())); } public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) { PagedIterable inner = this.serviceClient().listByCluster(resourceGroupName, clusterName, context); - return Utils.mapPage(inner, inner1 -> new BareMetalMachineKeySetImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BareMetalMachineKeySetImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String clusterName, @@ -62,27 +64,40 @@ public BareMetalMachineKeySet get(String resourceGroupName, String clusterName, } } - public void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName) { - this.serviceClient().delete(resourceGroupName, clusterName, bareMetalMachineKeySetName); + public OperationStatusResult delete(String resourceGroupName, String clusterName, + String bareMetalMachineKeySetName) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, clusterName, bareMetalMachineKeySetName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, + public OperationStatusResult delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, bareMetalMachineKeySetName, context); + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, clusterName, bareMetalMachineKeySetName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public BareMetalMachineKeySet 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 bareMetalMachineKeySetName = Utils.getValueFromIdByName(id, "bareMetalMachineKeySets"); + String bareMetalMachineKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachineKeySets"); if (bareMetalMachineKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachineKeySets'.", id))); @@ -92,17 +107,17 @@ public BareMetalMachineKeySet getById(String id) { } public Response 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 bareMetalMachineKeySetName = Utils.getValueFromIdByName(id, "bareMetalMachineKeySets"); + String bareMetalMachineKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachineKeySets"); if (bareMetalMachineKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachineKeySets'.", id))); @@ -110,42 +125,42 @@ public Response getByIdWithResponse(String id, Context c return this.getWithResponse(resourceGroupName, clusterName, bareMetalMachineKeySetName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 bareMetalMachineKeySetName = Utils.getValueFromIdByName(id, "bareMetalMachineKeySets"); + String bareMetalMachineKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachineKeySets"); if (bareMetalMachineKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachineKeySets'.", id))); } - this.delete(resourceGroupName, clusterName, bareMetalMachineKeySetName, Context.NONE); + return this.delete(resourceGroupName, clusterName, bareMetalMachineKeySetName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 bareMetalMachineKeySetName = Utils.getValueFromIdByName(id, "bareMetalMachineKeySets"); + String bareMetalMachineKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachineKeySets"); if (bareMetalMachineKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException(String .format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachineKeySets'.", id))); } - this.delete(resourceGroupName, clusterName, bareMetalMachineKeySetName, context); + return this.delete(resourceGroupName, clusterName, bareMetalMachineKeySetName, context); } private BareMetalMachineKeySetsClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesClientImpl.java index 9f7d41442a77f..51979b476f6f9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesClientImpl.java @@ -48,17 +48,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in BareMetalMachinesClient. */ +/** + * An instance of this class provides access to all the operations defined in BareMetalMachinesClient. + */ public final class BareMetalMachinesClientImpl implements BareMetalMachinesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final BareMetalMachinesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of BareMetalMachinesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ BareMetalMachinesClientImpl(NetworkCloudImpl client) { @@ -135,7 +141,7 @@ Mono>> update(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/cordon") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> cordon(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -146,7 +152,7 @@ Mono>> cordon(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/powerOff") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> powerOff(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -157,7 +163,7 @@ Mono>> powerOff(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/reimage") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> reimage(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -167,7 +173,7 @@ Mono>> reimage(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/replace") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> replace(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -178,7 +184,7 @@ Mono>> replace(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/restart") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> restart(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -188,7 +194,7 @@ Mono>> restart(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runCommand") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> runCommand(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -199,7 +205,7 @@ Mono>> runCommand(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runDataExtracts") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> runDataExtracts(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -210,7 +216,7 @@ Mono>> runDataExtracts(@HostParam("$host") String endp @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runReadCommands") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> runReadCommands(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -221,7 +227,7 @@ Mono>> runReadCommands(@HostParam("$host") String endp @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/start") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> start(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -231,7 +237,7 @@ Mono>> start(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/uncordon") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> uncordon(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -258,13 +264,13 @@ Mono> listByResourceGroupNext( /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of bare metal machines in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -287,15 +293,15 @@ private Mono> listSinglePageAsync() { /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of bare metal machines in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -318,9 +324,9 @@ private Mono> listSinglePageAsync(Context c /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of bare metal machines in the provided subscription as paginated response with {@link PagedFlux}. @@ -333,9 +339,9 @@ private PagedFlux listAsync() { /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -350,13 +356,13 @@ private PagedFlux listAsync(Context context) { /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -365,15 +371,15 @@ public PagedIterable list() { /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -382,15 +388,15 @@ public PagedIterable list(Context context) { /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of bare metal machines in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -417,16 +423,16 @@ private Mono> listByResourceGroupSinglePage /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of bare metal machines in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -454,15 +460,15 @@ private Mono> listByResourceGroupSinglePage /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -472,16 +478,16 @@ private PagedFlux listByResourceGroupAsync(String resourc /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -491,15 +497,15 @@ private PagedFlux listByResourceGroupAsync(String resourc /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -508,16 +514,16 @@ public PagedIterable listByResourceGroup(String resourceG /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -526,16 +532,16 @@ public PagedIterable listByResourceGroup(String resourceG /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided bare metal machine along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -565,9 +571,9 @@ private Mono> getByResourceGroupWithResponseAsyn /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -575,7 +581,7 @@ private Mono> getByResourceGroupWithResponseAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided bare metal machine along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -604,9 +610,9 @@ private Mono> getByResourceGroupWithResponseAsyn /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -622,9 +628,9 @@ private Mono getByResourceGroupAsync(String resourceGroup /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -641,9 +647,9 @@ public Response getByResourceGroupWithResponse(String res /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -658,10 +664,10 @@ public BareMetalMachineInner getByResourceGroup(String resourceGroupName, String /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -669,7 +675,7 @@ public BareMetalMachineInner getByResourceGroup(String resourceGroupName, String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachine represents the physical machine in the rack along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -706,10 +712,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -718,7 +724,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachine represents the physical machine in the rack along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -754,10 +760,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -778,10 +784,10 @@ private PollerFlux, BareMetalMachineInner> beg /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -804,10 +810,10 @@ private PollerFlux, BareMetalMachineInner> beg /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -825,10 +831,10 @@ public SyncPoller, BareMetalMachineInner> begi /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -849,10 +855,10 @@ public SyncPoller, BareMetalMachineInner> begi /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -870,10 +876,10 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -893,10 +899,10 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -913,10 +919,10 @@ public BareMetalMachineInner createOrUpdate(String resourceGroupName, String bar /** * Create or update the bare metal machine. - * - *

Create a new bare metal machine or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new bare metal machine or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineParameters The request body. @@ -935,16 +941,17 @@ public BareMetalMachineInner createOrUpdate(String resourceGroupName, String bar /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -974,17 +981,18 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -1013,166 +1021,172 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bareMetalMachineName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String bareMetalMachineName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, bareMetalMachineName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String bareMetalMachineName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String bareMetalMachineName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, bareMetalMachineName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String bareMetalMachineName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String bareMetalMachineName) { return this.beginDeleteAsync(resourceGroupName, bareMetalMachineName).getSyncPoller(); } /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String bareMetalMachineName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String bareMetalMachineName, Context context) { return this.beginDeleteAsync(resourceGroupName, bareMetalMachineName, context).getSyncPoller(); } /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String bareMetalMachineName) { + private Mono deleteAsync(String resourceGroupName, String bareMetalMachineName) { return beginDeleteAsync(resourceGroupName, bareMetalMachineName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String bareMetalMachineName, Context context) { + private Mono deleteAsync(String resourceGroupName, String bareMetalMachineName, + Context context) { return beginDeleteAsync(resourceGroupName, bareMetalMachineName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String bareMetalMachineName) { - deleteAsync(resourceGroupName, bareMetalMachineName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String bareMetalMachineName) { + return deleteAsync(resourceGroupName, bareMetalMachineName).block(); } /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String bareMetalMachineName, Context context) { - deleteAsync(resourceGroupName, bareMetalMachineName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String bareMetalMachineName, Context context) { + return deleteAsync(resourceGroupName, bareMetalMachineName, context).block(); } /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1180,7 +1194,7 @@ public void delete(String resourceGroupName, String bareMetalMachineName, Contex * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachine represents the physical machine in the rack along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1214,10 +1228,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1226,7 +1240,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachine represents the physical machine in the rack along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1259,10 +1273,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1284,10 +1298,10 @@ private PollerFlux, BareMetalMachineInner> beg /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1308,10 +1322,10 @@ private PollerFlux, BareMetalMachineInner> beg /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1334,10 +1348,10 @@ private PollerFlux, BareMetalMachineInner> beg /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1355,10 +1369,10 @@ public SyncPoller, BareMetalMachineInner> begi /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1378,10 +1392,10 @@ public SyncPoller, BareMetalMachineInner> begi /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1399,10 +1413,10 @@ private Mono updateAsync(String resourceGroupName, String /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1419,10 +1433,10 @@ private Mono updateAsync(String resourceGroupName, String /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1442,10 +1456,10 @@ private Mono updateAsync(String resourceGroupName, String /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1461,10 +1475,10 @@ public BareMetalMachineInner update(String resourceGroupName, String bareMetalMa /** * Patch the bare metal machine. - * - *

Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. + * + * Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineUpdateParameters The request body. @@ -1482,17 +1496,17 @@ public BareMetalMachineInner update(String resourceGroupName, String bareMetalMa /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> cordonWithResponseAsync(String resourceGroupName, @@ -1526,9 +1540,9 @@ private Mono>> cordonWithResponseAsync(String resource /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -1536,8 +1550,8 @@ private Mono>> cordonWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> cordonWithResponseAsync(String resourceGroupName, @@ -1570,9 +1584,9 @@ private Mono>> cordonWithResponseAsync(String resource /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -1594,9 +1608,9 @@ private PollerFlux, OperationStatusResult /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1617,9 +1631,9 @@ private PollerFlux, OperationStatusResult /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -1642,9 +1656,9 @@ private PollerFlux, OperationStatusResult /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1662,9 +1676,9 @@ private PollerFlux, OperationStatusResult /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -1684,9 +1698,9 @@ public SyncPoller, OperationStatusResultI /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -1704,9 +1718,9 @@ private Mono cordonAsync(String resourceGroupName, S /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1723,9 +1737,9 @@ private Mono cordonAsync(String resourceGroupName, S /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -1745,9 +1759,9 @@ private Mono cordonAsync(String resourceGroupName, S /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1763,9 +1777,9 @@ public OperationStatusResultInner cordon(String resourceGroupName, String bareMe /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -1783,17 +1797,17 @@ public OperationStatusResultInner cordon(String resourceGroupName, String bareMe /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> powerOffWithResponseAsync(String resourceGroupName, @@ -1827,9 +1841,9 @@ private Mono>> powerOffWithResponseAsync(String resour /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -1837,8 +1851,8 @@ private Mono>> powerOffWithResponseAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> powerOffWithResponseAsync(String resourceGroupName, @@ -1871,9 +1885,9 @@ private Mono>> powerOffWithResponseAsync(String resour /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -1895,9 +1909,9 @@ private PollerFlux, OperationStatusResult /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1918,9 +1932,9 @@ private PollerFlux, OperationStatusResult /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -1943,9 +1957,9 @@ private PollerFlux, OperationStatusResult /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1963,9 +1977,9 @@ private PollerFlux, OperationStatusResult /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -1986,9 +2000,9 @@ public SyncPoller, OperationStatusResultI /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -2006,9 +2020,9 @@ private Mono powerOffAsync(String resourceGroupName, /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2025,9 +2039,9 @@ private Mono powerOffAsync(String resourceGroupName, /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -2047,9 +2061,9 @@ private Mono powerOffAsync(String resourceGroupName, /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2065,9 +2079,9 @@ public OperationStatusResultInner powerOff(String resourceGroupName, String bare /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -2086,16 +2100,16 @@ public OperationStatusResultInner powerOff(String resourceGroupName, String bare /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> reimageWithResponseAsync(String resourceGroupName, @@ -2125,17 +2139,17 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> reimageWithResponseAsync(String resourceGroupName, @@ -2164,9 +2178,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2185,9 +2199,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2208,9 +2222,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2226,9 +2240,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2245,9 +2259,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2263,9 +2277,9 @@ private Mono reimageAsync(String resourceGroupName, /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2283,9 +2297,9 @@ private Mono reimageAsync(String resourceGroupName, /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2300,9 +2314,9 @@ public OperationStatusResultInner reimage(String resourceGroupName, String bareM /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2318,17 +2332,17 @@ public OperationStatusResultInner reimage(String resourceGroupName, String bareM /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> replaceWithResponseAsync(String resourceGroupName, @@ -2362,9 +2376,9 @@ private Mono>> replaceWithResponseAsync(String resourc /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -2372,8 +2386,8 @@ private Mono>> replaceWithResponseAsync(String resourc * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> replaceWithResponseAsync(String resourceGroupName, @@ -2406,9 +2420,9 @@ private Mono>> replaceWithResponseAsync(String resourc /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -2430,9 +2444,9 @@ private PollerFlux, OperationStatusResult /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2453,9 +2467,9 @@ private PollerFlux, OperationStatusResult /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -2478,9 +2492,9 @@ private PollerFlux, OperationStatusResult /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2498,9 +2512,9 @@ private PollerFlux, OperationStatusResult /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -2521,9 +2535,9 @@ public SyncPoller, OperationStatusResultI /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -2541,9 +2555,9 @@ private Mono replaceAsync(String resourceGroupName, /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2560,9 +2574,9 @@ private Mono replaceAsync(String resourceGroupName, /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -2582,9 +2596,9 @@ private Mono replaceAsync(String resourceGroupName, /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2600,9 +2614,9 @@ public OperationStatusResultInner replace(String resourceGroupName, String bareM /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -2621,16 +2635,16 @@ public OperationStatusResultInner replace(String resourceGroupName, String bareM /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartWithResponseAsync(String resourceGroupName, @@ -2660,17 +2674,17 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartWithResponseAsync(String resourceGroupName, @@ -2699,9 +2713,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2720,9 +2734,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2743,9 +2757,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2761,9 +2775,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2780,9 +2794,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2798,9 +2812,9 @@ private Mono restartAsync(String resourceGroupName, /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2818,9 +2832,9 @@ private Mono restartAsync(String resourceGroupName, /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2835,9 +2849,9 @@ public OperationStatusResultInner restart(String resourceGroupName, String bareM /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -2853,18 +2867,18 @@ public OperationStatusResultInner restart(String resourceGroupName, String bareM /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> runCommandWithResponseAsync(String resourceGroupName, @@ -2901,10 +2915,10 @@ private Mono>> runCommandWithResponseAsync(String reso /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -2912,8 +2926,8 @@ private Mono>> runCommandWithResponseAsync(String reso * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> runCommandWithResponseAsync(String resourceGroupName, @@ -2950,10 +2964,10 @@ private Mono>> runCommandWithResponseAsync(String reso /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -2975,10 +2989,10 @@ private PollerFlux, OperationStatusResult /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -3001,10 +3015,10 @@ private PollerFlux, OperationStatusResult /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -3023,10 +3037,10 @@ public SyncPoller, OperationStatusResultI /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -3048,10 +3062,10 @@ public SyncPoller, OperationStatusResultI /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -3070,10 +3084,10 @@ private Mono runCommandAsync(String resourceGroupNam /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -3092,10 +3106,10 @@ private Mono runCommandAsync(String resourceGroupNam /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -3112,10 +3126,10 @@ public OperationStatusResultInner runCommand(String resourceGroupName, String ba /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -3134,19 +3148,18 @@ public OperationStatusResultInner runCommand(String resourceGroupName, String ba /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> runDataExtractsWithResponseAsync(String resourceGroupName, @@ -3184,11 +3197,10 @@ private Mono>> runDataExtractsWithResponseAsync(String /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3196,8 +3208,8 @@ private Mono>> runDataExtractsWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> runDataExtractsWithResponseAsync(String resourceGroupName, @@ -3234,11 +3246,10 @@ private Mono>> runDataExtractsWithResponseAsync(String /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3260,11 +3271,10 @@ private PollerFlux, OperationStatusResult /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3287,11 +3297,10 @@ private PollerFlux, OperationStatusResult /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3312,11 +3321,10 @@ public SyncPoller, OperationStatusResultI /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3338,11 +3346,10 @@ public SyncPoller, OperationStatusResultI /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3360,11 +3367,10 @@ private Mono runDataExtractsAsync(String resourceGro /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3383,11 +3389,10 @@ private Mono runDataExtractsAsync(String resourceGro /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3405,11 +3410,10 @@ public OperationStatusResultInner runDataExtracts(String resourceGroupName, Stri /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -3428,19 +3432,19 @@ public OperationStatusResultInner runDataExtracts(String resourceGroupName, Stri /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> runReadCommandsWithResponseAsync(String resourceGroupName, @@ -3478,11 +3482,11 @@ private Mono>> runReadCommandsWithResponseAsync(String /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3490,8 +3494,8 @@ private Mono>> runReadCommandsWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> runReadCommandsWithResponseAsync(String resourceGroupName, @@ -3528,11 +3532,11 @@ private Mono>> runReadCommandsWithResponseAsync(String /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3554,11 +3558,11 @@ private PollerFlux, OperationStatusResult /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3581,11 +3585,11 @@ private PollerFlux, OperationStatusResult /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3606,11 +3610,11 @@ public SyncPoller, OperationStatusResultI /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3632,11 +3636,11 @@ public SyncPoller, OperationStatusResultI /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3654,11 +3658,11 @@ private Mono runReadCommandsAsync(String resourceGro /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3677,11 +3681,11 @@ private Mono runReadCommandsAsync(String resourceGro /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3699,11 +3703,11 @@ public OperationStatusResultInner runReadCommands(String resourceGroupName, Stri /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -3722,16 +3726,16 @@ public OperationStatusResultInner runReadCommands(String resourceGroupName, Stri /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> startWithResponseAsync(String resourceGroupName, @@ -3761,17 +3765,17 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> startWithResponseAsync(String resourceGroupName, @@ -3800,9 +3804,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3821,9 +3825,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -3844,9 +3848,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3862,9 +3866,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -3881,9 +3885,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3899,9 +3903,9 @@ private Mono startAsync(String resourceGroupName, St /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -3919,9 +3923,9 @@ private Mono startAsync(String resourceGroupName, St /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3936,9 +3940,9 @@ public OperationStatusResultInner start(String resourceGroupName, String bareMet /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -3954,16 +3958,16 @@ public OperationStatusResultInner start(String resourceGroupName, String bareMet /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> uncordonWithResponseAsync(String resourceGroupName, @@ -3993,17 +3997,17 @@ private Mono>> uncordonWithResponseAsync(String resour /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> uncordonWithResponseAsync(String resourceGroupName, @@ -4032,9 +4036,9 @@ private Mono>> uncordonWithResponseAsync(String resour /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4053,9 +4057,9 @@ private Mono>> uncordonWithResponseAsync(String resour /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -4076,9 +4080,9 @@ private Mono>> uncordonWithResponseAsync(String resour /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4094,9 +4098,9 @@ private Mono>> uncordonWithResponseAsync(String resour /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -4113,9 +4117,9 @@ private Mono>> uncordonWithResponseAsync(String resour /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4131,9 +4135,9 @@ private Mono uncordonAsync(String resourceGroupName, /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -4151,9 +4155,9 @@ private Mono uncordonAsync(String resourceGroupName, /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -4168,9 +4172,9 @@ public OperationStatusResultInner uncordon(String resourceGroupName, String bare /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -4186,14 +4190,13 @@ public OperationStatusResultInner uncordon(String resourceGroupName, String bare /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineList represents a list of bare metal machines along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -4215,15 +4218,14 @@ private Mono> listBySubscriptionNextSingleP /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineList represents a list of bare metal machines along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -4244,14 +4246,13 @@ private Mono> listBySubscriptionNextSingleP /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineList represents a list of bare metal machines along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -4273,15 +4274,14 @@ private Mono> listByResourceGroupNextSingle /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bareMetalMachineList represents a list of bare metal machines along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesImpl.java index 04d967a32c406..660d92cc050b0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BareMetalMachinesImpl.java @@ -37,23 +37,23 @@ public BareMetalMachinesImpl(BareMetalMachinesClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BareMetalMachineImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, @@ -77,12 +77,23 @@ public BareMetalMachine getByResourceGroup(String resourceGroupName, String bare } } - public void deleteByResourceGroup(String resourceGroupName, String bareMetalMachineName) { - this.serviceClient().delete(resourceGroupName, bareMetalMachineName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String bareMetalMachineName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, bareMetalMachineName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String bareMetalMachineName, Context context) { - this.serviceClient().delete(resourceGroupName, bareMetalMachineName, context); + public OperationStatusResult delete(String resourceGroupName, String bareMetalMachineName, Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, bareMetalMachineName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public OperationStatusResult cordon(String resourceGroupName, String bareMetalMachineName) { @@ -289,12 +300,12 @@ public OperationStatusResult uncordon(String resourceGroupName, String bareMetal } public BareMetalMachine 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 bareMetalMachineName = Utils.getValueFromIdByName(id, "bareMetalMachines"); + String bareMetalMachineName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachines"); if (bareMetalMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachines'.", id))); @@ -303,12 +314,12 @@ public BareMetalMachine getById(String id) { } public Response 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 bareMetalMachineName = Utils.getValueFromIdByName(id, "bareMetalMachines"); + String bareMetalMachineName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachines"); if (bareMetalMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachines'.", id))); @@ -316,32 +327,32 @@ public Response getByIdWithResponse(String id, Context context return this.getByResourceGroupWithResponse(resourceGroupName, bareMetalMachineName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 bareMetalMachineName = Utils.getValueFromIdByName(id, "bareMetalMachines"); + String bareMetalMachineName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachines"); if (bareMetalMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachines'.", id))); } - this.delete(resourceGroupName, bareMetalMachineName, Context.NONE); + return this.delete(resourceGroupName, bareMetalMachineName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 bareMetalMachineName = Utils.getValueFromIdByName(id, "bareMetalMachines"); + String bareMetalMachineName = ResourceManagerUtils.getValueFromIdByName(id, "bareMetalMachines"); if (bareMetalMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bareMetalMachines'.", id))); } - this.delete(resourceGroupName, bareMetalMachineName, context); + return this.delete(resourceGroupName, bareMetalMachineName, context); } private BareMetalMachinesClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetImpl.java index 6e6fe97cd8140..cd616c7e8419c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetImpl.java @@ -182,9 +182,9 @@ public BmcKeySet apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters"); - this.bmcKeySetName = Utils.getValueFromIdByName(innerObject.id(), "bmcKeySets"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); + this.bmcKeySetName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "bmcKeySets"); } public BmcKeySet refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsClientImpl.java index e3cdd04ff2158..62be00ab48763 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.BmcKeySetsClient; import com.azure.resourcemanager.networkcloud.fluent.models.BmcKeySetInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.BmcKeySetList; import com.azure.resourcemanager.networkcloud.models.BmcKeySetPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in BmcKeySetsClient. */ +/** + * An instance of this class provides access to all the operations defined in BmcKeySetsClient. + */ public final class BmcKeySetsClientImpl implements BmcKeySetsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final BmcKeySetsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of BmcKeySetsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ BmcKeySetsClientImpl(NetworkCloudImpl client) { @@ -125,16 +132,16 @@ Mono> listByClusterNext(@PathParam(value = "nextLink", e /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of baseboard management controller key sets for the provided cluster along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return a list of baseboard management controller key sets for the provided cluster along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync(String resourceGroupName, @@ -165,17 +172,17 @@ private Mono> listByClusterSinglePageAsync(String /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of baseboard management controller key sets for the provided cluster along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return a list of baseboard management controller key sets for the provided cluster along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync(String resourceGroupName, @@ -206,16 +213,16 @@ private Mono> listByClusterSinglePageAsync(String /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName) { @@ -225,9 +232,9 @@ private PagedFlux listByClusterAsync(String resourceGroupName, S /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -235,7 +242,7 @@ private PagedFlux listByClusterAsync(String resourceGroupName, S * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByClusterAsync(String resourceGroupName, String clusterName, @@ -246,16 +253,16 @@ private PagedFlux listByClusterAsync(String resourceGroupName, S /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName) { @@ -264,9 +271,9 @@ public PagedIterable listByCluster(String resourceGroupName, Str /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -274,7 +281,7 @@ public PagedIterable listByCluster(String resourceGroupName, Str * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) { @@ -283,9 +290,9 @@ public PagedIterable listByCluster(String resourceGroupName, Str /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -293,7 +300,7 @@ public PagedIterable listByCluster(String resourceGroupName, Str * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return baseboard management controller key set of the provided cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String clusterName, @@ -325,9 +332,9 @@ private Mono> getWithResponseAsync(String resourceGroup /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -336,7 +343,7 @@ private Mono> getWithResponseAsync(String resourceGroup * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return baseboard management controller key set of the provided cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String clusterName, @@ -367,9 +374,9 @@ private Mono> getWithResponseAsync(String resourceGroup /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -386,9 +393,9 @@ private Mono getAsync(String resourceGroupName, String clusterNa /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -406,9 +413,9 @@ public Response getWithResponse(String resourceGroupName, String /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -424,9 +431,9 @@ public BmcKeySetInner get(String resourceGroupName, String clusterName, String b /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -435,7 +442,7 @@ public BmcKeySetInner get(String resourceGroupName, String clusterName, String b * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bmcKeySet represents the baseboard management controller key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -474,9 +481,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -486,7 +493,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bmcKeySet represents the baseboard management controller key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -524,9 +531,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -547,9 +554,9 @@ private PollerFlux, BmcKeySetInner> beginCreateOrUpda /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -572,9 +579,9 @@ private PollerFlux, BmcKeySetInner> beginCreateOrUpda /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -593,9 +600,9 @@ public SyncPoller, BmcKeySetInner> beginCreateOrUpdat /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -616,9 +623,9 @@ public SyncPoller, BmcKeySetInner> beginCreateOrUpdat /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -626,8 +633,8 @@ public SyncPoller, BmcKeySetInner> beginCreateOrUpdat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bmcKeySet represents the baseboard management controller key set on successful completion of {@link - * Mono}. + * @return bmcKeySet represents the baseboard management controller key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, String bmcKeySetName, @@ -638,9 +645,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -649,8 +656,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bmcKeySet represents the baseboard management controller key set on successful completion of {@link - * Mono}. + * @return bmcKeySet represents the baseboard management controller key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, String bmcKeySetName, @@ -662,9 +669,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -682,9 +689,9 @@ public BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterNam /** * Create or update the baseboard management controller key set of the cluster. - * - *

Create a new baseboard management controller key set or update the existing one for the provided cluster. - * + * + * Create a new baseboard management controller key set or update the existing one for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -703,16 +710,17 @@ public BmcKeySetInner createOrUpdate(String resourceGroupName, String clusterNam /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, @@ -744,9 +752,9 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -754,7 +762,8 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, @@ -785,30 +794,31 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String bmcKeySetName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterName, String bmcKeySetName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, bmcKeySetName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -816,42 +826,42 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String bmcKeySetName, Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterName, String bmcKeySetName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, bmcKeySetName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String bmcKeySetName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName, String bmcKeySetName) { return this.beginDeleteAsync(resourceGroupName, clusterName, bmcKeySetName).getSyncPoller(); } /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -859,38 +869,39 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String bmcKeySetName, Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName, String bmcKeySetName, Context context) { return this.beginDeleteAsync(resourceGroupName, clusterName, bmcKeySetName, context).getSyncPoller(); } /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String bmcKeySetName) { + private Mono deleteAsync(String resourceGroupName, String clusterName, + String bmcKeySetName) { return beginDeleteAsync(resourceGroupName, clusterName, bmcKeySetName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -898,37 +909,38 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String bmcKeySetName, - Context context) { + private Mono deleteAsync(String resourceGroupName, String clusterName, + String bmcKeySetName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, bmcKeySetName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String bmcKeySetName) { - deleteAsync(resourceGroupName, clusterName, bmcKeySetName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bmcKeySetName) { + return deleteAsync(resourceGroupName, clusterName, bmcKeySetName).block(); } /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -936,18 +948,20 @@ public void delete(String resourceGroupName, String clusterName, String bmcKeySe * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String bmcKeySetName, Context context) { - deleteAsync(resourceGroupName, clusterName, bmcKeySetName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName, String bmcKeySetName, + Context context) { + return deleteAsync(resourceGroupName, clusterName, bmcKeySetName, context).block(); } /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -956,7 +970,7 @@ public void delete(String resourceGroupName, String clusterName, String bmcKeySe * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bmcKeySet represents the baseboard management controller key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -992,10 +1006,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1005,7 +1019,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return bmcKeySet represents the baseboard management controller key set along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -1039,10 +1053,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1063,10 +1077,10 @@ private PollerFlux, BmcKeySetInner> beginUpdateAsync( /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1087,10 +1101,10 @@ private PollerFlux, BmcKeySetInner> beginUpdateAsync( /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1113,10 +1127,10 @@ private PollerFlux, BmcKeySetInner> beginUpdateAsync( /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1135,10 +1149,10 @@ public SyncPoller, BmcKeySetInner> beginUpdate(String /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1158,10 +1172,10 @@ public SyncPoller, BmcKeySetInner> beginUpdate(String /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1169,8 +1183,8 @@ public SyncPoller, BmcKeySetInner> beginUpdate(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bmcKeySet represents the baseboard management controller key set on successful completion of {@link - * Mono}. + * @return bmcKeySet represents the baseboard management controller key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, String bmcKeySetName, @@ -1181,18 +1195,18 @@ private Mono updateAsync(String resourceGroupName, String cluste /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bmcKeySet represents the baseboard management controller key set on successful completion of {@link - * Mono}. + * @return bmcKeySet represents the baseboard management controller key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, String bmcKeySetName) { @@ -1203,10 +1217,10 @@ private Mono updateAsync(String resourceGroupName, String cluste /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1215,8 +1229,8 @@ private Mono updateAsync(String resourceGroupName, String cluste * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bmcKeySet represents the baseboard management controller key set on successful completion of {@link - * Mono}. + * @return bmcKeySet represents the baseboard management controller key set on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, String bmcKeySetName, @@ -1228,10 +1242,10 @@ private Mono updateAsync(String resourceGroupName, String cluste /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1248,10 +1262,10 @@ public BmcKeySetInner update(String resourceGroupName, String clusterName, Strin /** * Patch baseboard management controller key set of the cluster. - * - *

Patch properties of baseboard management controller key set for the provided cluster, or update the tags + * + * Patch properties of baseboard management controller key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -1270,14 +1284,13 @@ public BmcKeySetInner update(String resourceGroupName, String clusterName, Strin /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bmcKeySetList represents a list of baseboard management controller key sets along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return bmcKeySetList represents a list of baseboard management controller key sets along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterNextSinglePageAsync(String nextLink) { @@ -1298,15 +1311,14 @@ private Mono> listByClusterNextSinglePageAsync(Str /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return bmcKeySetList represents a list of baseboard management controller key sets along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return bmcKeySetList represents a list of baseboard management controller key sets along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsImpl.java index 7ced97b385398..33c09361b3ade 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/BmcKeySetsImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.BmcKeySetsClient; import com.azure.resourcemanager.networkcloud.fluent.models.BmcKeySetInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.BmcKeySet; import com.azure.resourcemanager.networkcloud.models.BmcKeySets; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class BmcKeySetsImpl implements BmcKeySets { private static final ClientLogger LOGGER = new ClientLogger(BmcKeySetsImpl.class); @@ -29,13 +31,13 @@ public BmcKeySetsImpl(BmcKeySetsClient innerClient, public PagedIterable listByCluster(String resourceGroupName, String clusterName) { PagedIterable inner = this.serviceClient().listByCluster(resourceGroupName, clusterName); - return Utils.mapPage(inner, inner1 -> new BmcKeySetImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BmcKeySetImpl(inner1, this.manager())); } public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) { PagedIterable inner = this.serviceClient().listByCluster(resourceGroupName, clusterName, context); - return Utils.mapPage(inner, inner1 -> new BmcKeySetImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BmcKeySetImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String clusterName, String bmcKeySetName, @@ -59,26 +61,38 @@ public BmcKeySet get(String resourceGroupName, String clusterName, String bmcKey } } - public void delete(String resourceGroupName, String clusterName, String bmcKeySetName) { - this.serviceClient().delete(resourceGroupName, clusterName, bmcKeySetName); + public OperationStatusResult delete(String resourceGroupName, String clusterName, String bmcKeySetName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, clusterName, bmcKeySetName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String clusterName, String bmcKeySetName, Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, bmcKeySetName, context); + public OperationStatusResult delete(String resourceGroupName, String clusterName, String bmcKeySetName, + Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, clusterName, bmcKeySetName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public BmcKeySet 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 bmcKeySetName = Utils.getValueFromIdByName(id, "bmcKeySets"); + String bmcKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bmcKeySets"); if (bmcKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bmcKeySets'.", id))); @@ -87,17 +101,17 @@ public BmcKeySet getById(String id) { } public Response 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 bmcKeySetName = Utils.getValueFromIdByName(id, "bmcKeySets"); + String bmcKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bmcKeySets"); if (bmcKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bmcKeySets'.", id))); @@ -105,42 +119,42 @@ public Response getByIdWithResponse(String id, Context context) { return this.getWithResponse(resourceGroupName, clusterName, bmcKeySetName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 bmcKeySetName = Utils.getValueFromIdByName(id, "bmcKeySets"); + String bmcKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bmcKeySets"); if (bmcKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bmcKeySets'.", id))); } - this.delete(resourceGroupName, clusterName, bmcKeySetName, Context.NONE); + return this.delete(resourceGroupName, clusterName, bmcKeySetName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 bmcKeySetName = Utils.getValueFromIdByName(id, "bmcKeySets"); + String bmcKeySetName = ResourceManagerUtils.getValueFromIdByName(id, "bmcKeySets"); if (bmcKeySetName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'bmcKeySets'.", id))); } - this.delete(resourceGroupName, clusterName, bmcKeySetName, context); + return this.delete(resourceGroupName, clusterName, bmcKeySetName, context); } private BmcKeySetsClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworkImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworkImpl.java index 7d1b67af6ec45..f0188075f57cb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworkImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworkImpl.java @@ -202,8 +202,9 @@ public CloudServicesNetwork apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.cloudServicesNetworkName = Utils.getValueFromIdByName(innerObject.id(), "cloudServicesNetworks"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.cloudServicesNetworkName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "cloudServicesNetworks"); } public CloudServicesNetwork refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksClientImpl.java index 9646d5b0546aa..55de49954f6eb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.CloudServicesNetworksClient; import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkList; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in CloudServicesNetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in CloudServicesNetworksClient. + */ public final class CloudServicesNetworksClientImpl implements CloudServicesNetworksClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final CloudServicesNetworksService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of CloudServicesNetworksClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ CloudServicesNetworksClientImpl(NetworkCloudImpl client) { @@ -144,13 +151,13 @@ Mono> listByResourceGroupNext( /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cloud services networks in the provided subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -173,15 +180,15 @@ private Mono> listSinglePageAsync() { /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cloud services networks in the provided subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -204,13 +211,13 @@ private Mono> listSinglePageAsync(Conte /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedFlux}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -220,15 +227,15 @@ private PagedFlux listAsync() { /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedFlux}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -238,13 +245,13 @@ private PagedFlux listAsync(Context context) { /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -253,15 +260,15 @@ public PagedIterable list() { /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -270,15 +277,15 @@ public PagedIterable list(Context context) { /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cloud services networks in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> @@ -306,16 +313,16 @@ public PagedIterable list(Context context) { /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cloud services networks in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -343,15 +350,15 @@ private Mono> listByResourceGroupSingle /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -361,16 +368,16 @@ private PagedFlux listByResourceGroupAsync(String res /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -380,15 +387,15 @@ private PagedFlux listByResourceGroupAsync(String res /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -397,16 +404,16 @@ public PagedIterable listByResourceGroup(String resou /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -415,16 +422,16 @@ public PagedIterable listByResourceGroup(String resou /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided cloud services network along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -454,9 +461,9 @@ private Mono> getByResourceGroupWithResponse /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. @@ -464,7 +471,7 @@ private Mono> getByResourceGroupWithResponse * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided cloud services network along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -493,9 +500,9 @@ private Mono> getByResourceGroupWithResponse /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -512,9 +519,9 @@ private Mono getByResourceGroupAsync(String resourceG /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. @@ -531,9 +538,9 @@ public Response getByResourceGroupWithResponse(String /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -548,9 +555,9 @@ public CloudServicesNetworkInner getByResourceGroup(String resourceGroupName, St /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -558,7 +565,7 @@ public CloudServicesNetworkInner getByResourceGroup(String resourceGroupName, St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. + * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -595,9 +602,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -606,7 +613,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. + * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -642,9 +649,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -652,7 +659,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CloudServicesNetworkInner> beginCreateOrUpdateAsync( @@ -667,9 +674,9 @@ private PollerFlux, CloudServicesNetworkIn /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -678,7 +685,7 @@ private PollerFlux, CloudServicesNetworkIn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CloudServicesNetworkInner> beginCreateOrUpdateAsync( @@ -693,9 +700,9 @@ private PollerFlux, CloudServicesNetworkIn /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -703,7 +710,7 @@ private PollerFlux, CloudServicesNetworkIn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CloudServicesNetworkInner> beginCreateOrUpdate( @@ -716,9 +723,9 @@ public SyncPoller, CloudServicesNetworkInn /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -727,7 +734,7 @@ public SyncPoller, CloudServicesNetworkInn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CloudServicesNetworkInner> beginCreateOrUpdate( @@ -741,9 +748,9 @@ public SyncPoller, CloudServicesNetworkInn /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -751,7 +758,7 @@ public SyncPoller, CloudServicesNetworkInn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters on successful completion of {@link Mono}. + * machines or hybrid AKS clusters on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, @@ -763,9 +770,9 @@ private Mono createOrUpdateAsync(String resourceGroup /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -774,7 +781,7 @@ private Mono createOrUpdateAsync(String resourceGroup * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters on successful completion of {@link Mono}. + * machines or hybrid AKS clusters on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, @@ -785,9 +792,9 @@ private Mono createOrUpdateAsync(String resourceGroup /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -795,7 +802,7 @@ private Mono createOrUpdateAsync(String resourceGroup * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) public CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudServicesNetworkName, @@ -805,9 +812,9 @@ public CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String /** * Create or update the cloud services network. - * - *

Create a new cloud services network or update the properties of the existing cloud services network. - * + * + * Create a new cloud services network or update the properties of the existing cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkParameters The request body. @@ -816,7 +823,7 @@ public CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) public CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String cloudServicesNetworkName, @@ -827,15 +834,16 @@ public CloudServicesNetworkInner createOrUpdate(String resourceGroupName, String /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -865,16 +873,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -903,159 +912,165 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String cloudServicesNetworkName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String cloudServicesNetworkName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, cloudServicesNetworkName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String cloudServicesNetworkName, Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String cloudServicesNetworkName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, cloudServicesNetworkName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String cloudServicesNetworkName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String cloudServicesNetworkName) { return this.beginDeleteAsync(resourceGroupName, cloudServicesNetworkName).getSyncPoller(); } /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String cloudServicesNetworkName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String cloudServicesNetworkName, Context context) { return this.beginDeleteAsync(resourceGroupName, cloudServicesNetworkName, context).getSyncPoller(); } /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String cloudServicesNetworkName) { + private Mono deleteAsync(String resourceGroupName, String cloudServicesNetworkName) { return beginDeleteAsync(resourceGroupName, cloudServicesNetworkName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String cloudServicesNetworkName, Context context) { + private Mono deleteAsync(String resourceGroupName, String cloudServicesNetworkName, + Context context) { return beginDeleteAsync(resourceGroupName, cloudServicesNetworkName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String cloudServicesNetworkName) { - deleteAsync(resourceGroupName, cloudServicesNetworkName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String cloudServicesNetworkName) { + return deleteAsync(resourceGroupName, cloudServicesNetworkName).block(); } /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String cloudServicesNetworkName, Context context) { - deleteAsync(resourceGroupName, cloudServicesNetworkName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String cloudServicesNetworkName, + Context context) { + return deleteAsync(resourceGroupName, cloudServicesNetworkName, context).block(); } /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1063,7 +1078,7 @@ public void delete(String resourceGroupName, String cloudServicesNetworkName, Co * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. + * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1097,10 +1112,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1109,7 +1124,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. + * machines or hybrid AKS clusters along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1142,10 +1157,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1153,7 +1168,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CloudServicesNetworkInner> beginUpdateAsync( @@ -1168,17 +1183,17 @@ private PollerFlux, CloudServicesNetworkIn /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CloudServicesNetworkInner> @@ -1193,10 +1208,10 @@ private PollerFlux, CloudServicesNetworkIn /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1205,7 +1220,7 @@ private PollerFlux, CloudServicesNetworkIn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, CloudServicesNetworkInner> beginUpdateAsync( @@ -1220,17 +1235,17 @@ private PollerFlux, CloudServicesNetworkIn /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CloudServicesNetworkInner> @@ -1242,10 +1257,10 @@ private PollerFlux, CloudServicesNetworkIn /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1254,7 +1269,7 @@ private PollerFlux, CloudServicesNetworkIn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of cloudServicesNetwork represents additional egress information that - * will be used by associated virtual machines or hybrid AKS clusters. + * will be used by associated virtual machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, CloudServicesNetworkInner> beginUpdate( @@ -1268,10 +1283,10 @@ public SyncPoller, CloudServicesNetworkInn /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1279,7 +1294,7 @@ public SyncPoller, CloudServicesNetworkInn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters on successful completion of {@link Mono}. + * machines or hybrid AKS clusters on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String cloudServicesNetworkName, @@ -1291,17 +1306,17 @@ private Mono updateAsync(String resourceGroupName, St /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters on successful completion of {@link Mono}. + * machines or hybrid AKS clusters on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String cloudServicesNetworkName) { @@ -1313,10 +1328,10 @@ private Mono updateAsync(String resourceGroupName, St /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1325,7 +1340,7 @@ private Mono updateAsync(String resourceGroupName, St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters on successful completion of {@link Mono}. + * machines or hybrid AKS clusters on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String cloudServicesNetworkName, @@ -1336,17 +1351,17 @@ private Mono updateAsync(String resourceGroupName, St /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) public CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName) { @@ -1356,10 +1371,10 @@ public CloudServicesNetworkInner update(String resourceGroupName, String cloudSe /** * Patch the cloud services network. - * - *

Update properties of the provided cloud services network, or update the tags associated with it. Properties - * and tag updates can be done independently. - * + * + * Update properties of the provided cloud services network, or update the tags associated with it. Properties and + * tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param cloudServicesNetworkUpdateParameters The request body. @@ -1368,7 +1383,7 @@ public CloudServicesNetworkInner update(String resourceGroupName, String cloudSe * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetwork represents additional egress information that will be used by associated virtual - * machines or hybrid AKS clusters. + * machines or hybrid AKS clusters. */ @ServiceMethod(returns = ReturnType.SINGLE) public CloudServicesNetworkInner update(String resourceGroupName, String cloudServicesNetworkName, @@ -1379,14 +1394,13 @@ public CloudServicesNetworkInner update(String resourceGroupName, String cloudSe /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetworkList represents a list of cloud services networks along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1408,15 +1422,14 @@ private Mono> listBySubscriptionNextSin /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetworkList represents a list of cloud services networks along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -1437,14 +1450,13 @@ private Mono> listBySubscriptionNextSin /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetworkList represents a list of cloud services networks along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1466,15 +1478,14 @@ private Mono> listByResourceGroupNextSi /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cloudServicesNetworkList represents a list of cloud services networks along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksImpl.java index a1d94155d6c35..8e680aa3fb920 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/CloudServicesNetworksImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.CloudServicesNetworksClient; import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworks; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class CloudServicesNetworksImpl implements CloudServicesNetworks { private static final ClientLogger LOGGER = new ClientLogger(CloudServicesNetworksImpl.class); @@ -29,23 +31,23 @@ public CloudServicesNetworksImpl(CloudServicesNetworksClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CloudServicesNetworkImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, @@ -70,21 +72,32 @@ public CloudServicesNetwork getByResourceGroup(String resourceGroupName, String } } - public void deleteByResourceGroup(String resourceGroupName, String cloudServicesNetworkName) { - this.serviceClient().delete(resourceGroupName, cloudServicesNetworkName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String cloudServicesNetworkName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, cloudServicesNetworkName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String cloudServicesNetworkName, Context context) { - this.serviceClient().delete(resourceGroupName, cloudServicesNetworkName, context); + public OperationStatusResult delete(String resourceGroupName, String cloudServicesNetworkName, Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, cloudServicesNetworkName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public CloudServicesNetwork 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 cloudServicesNetworkName = Utils.getValueFromIdByName(id, "cloudServicesNetworks"); + String cloudServicesNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "cloudServicesNetworks"); if (cloudServicesNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'cloudServicesNetworks'.", id))); @@ -94,12 +107,12 @@ public CloudServicesNetwork getById(String id) { } public Response 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 cloudServicesNetworkName = Utils.getValueFromIdByName(id, "cloudServicesNetworks"); + String cloudServicesNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "cloudServicesNetworks"); if (cloudServicesNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'cloudServicesNetworks'.", id))); @@ -107,32 +120,32 @@ public Response getByIdWithResponse(String id, Context con return this.getByResourceGroupWithResponse(resourceGroupName, cloudServicesNetworkName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 cloudServicesNetworkName = Utils.getValueFromIdByName(id, "cloudServicesNetworks"); + String cloudServicesNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "cloudServicesNetworks"); if (cloudServicesNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'cloudServicesNetworks'.", id))); } - this.delete(resourceGroupName, cloudServicesNetworkName, Context.NONE); + return this.delete(resourceGroupName, cloudServicesNetworkName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 cloudServicesNetworkName = Utils.getValueFromIdByName(id, "cloudServicesNetworks"); + String cloudServicesNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "cloudServicesNetworks"); if (cloudServicesNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'cloudServicesNetworks'.", id))); } - this.delete(resourceGroupName, cloudServicesNetworkName, context); + return this.delete(resourceGroupName, cloudServicesNetworkName, context); } private CloudServicesNetworksClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java index 8e7314722832e..b9a5208b28b64 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterImpl.java @@ -12,17 +12,24 @@ import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion; import com.azure.resourcemanager.networkcloud.models.ClusterCapacity; import com.azure.resourcemanager.networkcloud.models.ClusterConnectionStatus; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; import com.azure.resourcemanager.networkcloud.models.ClusterDetailedStatus; import com.azure.resourcemanager.networkcloud.models.ClusterManagerConnectionStatus; import com.azure.resourcemanager.networkcloud.models.ClusterPatchParameters; import com.azure.resourcemanager.networkcloud.models.ClusterProvisioningState; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; import com.azure.resourcemanager.networkcloud.models.ClusterType; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import java.util.Collections; @@ -63,6 +70,10 @@ public ExtendedLocation extendedLocation() { return this.innerModel().extendedLocation(); } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public SystemData systemData() { return this.innerModel().systemData(); } @@ -120,6 +131,10 @@ public String clusterVersion() { return this.innerModel().clusterVersion(); } + public CommandOutputSettings commandOutputSettings() { + return this.innerModel().commandOutputSettings(); + } + public ValidationThreshold computeDeploymentThreshold() { return this.innerModel().computeDeploymentThreshold(); } @@ -161,10 +176,22 @@ public ClusterProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public RuntimeProtectionConfiguration runtimeProtectionConfiguration() { + return this.innerModel().runtimeProtectionConfiguration(); + } + + public ClusterSecretArchive secretArchive() { + return this.innerModel().secretArchive(); + } + public String supportExpiryDate() { return this.innerModel().supportExpiryDate(); } + public ClusterUpdateStrategy updateStrategy() { + return this.innerModel().updateStrategy(); + } + public List workloadResourceIds() { List inner = this.innerModel().workloadResourceIds(); if (inner != null) { @@ -247,8 +274,8 @@ public Cluster apply(Context context) { ClusterImpl(ClusterInner innerObject, com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); } public Cluster refresh() { @@ -267,6 +294,18 @@ public Cluster refresh(Context context) { return this; } + public OperationStatusResult + continueUpdateVersion(ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters) { + return serviceManager.clusters() + .continueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters); + } + + public OperationStatusResult continueUpdateVersion( + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context) { + return serviceManager.clusters() + .continueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, context); + } + public OperationStatusResult deploy() { return serviceManager.clusters().deploy(resourceGroupName, clusterName); } @@ -275,6 +314,16 @@ public OperationStatusResult deploy(ClusterDeployParameters clusterDeployParamet return serviceManager.clusters().deploy(resourceGroupName, clusterName, clusterDeployParameters, context); } + public OperationStatusResult scanRuntime() { + return serviceManager.clusters().scanRuntime(resourceGroupName, clusterName); + } + + public OperationStatusResult scanRuntime(ClusterScanRuntimeParameters clusterScanRuntimeParameters, + Context context) { + return serviceManager.clusters() + .scanRuntime(resourceGroupName, clusterName, clusterScanRuntimeParameters, context); + } + public OperationStatusResult updateVersion(ClusterUpdateVersionParameters clusterUpdateVersionParameters) { return serviceManager.clusters().updateVersion(resourceGroupName, clusterName, clusterUpdateVersionParameters); } @@ -335,6 +384,16 @@ public ClusterImpl withTags(Map tags) { } } + public ClusterImpl withIdentity(ManagedServiceIdentity identity) { + if (isInCreateMode()) { + this.innerModel().withIdentity(identity); + return this; + } else { + this.updateClusterUpdateParameters.withIdentity(identity); + return this; + } + } + public ClusterImpl withAnalyticsWorkspaceId(String analyticsWorkspaceId) { this.innerModel().withAnalyticsWorkspaceId(analyticsWorkspaceId); return this; @@ -360,6 +419,16 @@ public ClusterImpl withClusterServicePrincipal(ServicePrincipalInformation clust } } + public ClusterImpl withCommandOutputSettings(CommandOutputSettings commandOutputSettings) { + if (isInCreateMode()) { + this.innerModel().withCommandOutputSettings(commandOutputSettings); + return this; + } else { + this.updateClusterUpdateParameters.withCommandOutputSettings(commandOutputSettings); + return this; + } + } + public ClusterImpl withComputeDeploymentThreshold(ValidationThreshold computeDeploymentThreshold) { if (isInCreateMode()) { this.innerModel().withComputeDeploymentThreshold(computeDeploymentThreshold); @@ -386,6 +455,37 @@ public ClusterImpl withComputeRackDefinitions(List computeRackDe return this; } + public ClusterImpl + withRuntimeProtectionConfiguration(RuntimeProtectionConfiguration runtimeProtectionConfiguration) { + if (isInCreateMode()) { + this.innerModel().withRuntimeProtectionConfiguration(runtimeProtectionConfiguration); + return this; + } else { + this.updateClusterUpdateParameters.withRuntimeProtectionConfiguration(runtimeProtectionConfiguration); + return this; + } + } + + public ClusterImpl withSecretArchive(ClusterSecretArchive secretArchive) { + if (isInCreateMode()) { + this.innerModel().withSecretArchive(secretArchive); + return this; + } else { + this.updateClusterUpdateParameters.withSecretArchive(secretArchive); + return this; + } + } + + public ClusterImpl withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { + if (isInCreateMode()) { + this.innerModel().withUpdateStrategy(updateStrategy); + return this; + } else { + this.updateClusterUpdateParameters.withUpdateStrategy(updateStrategy); + return this; + } + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagerImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagerImpl.java index 788bc29a33a76..35e8c93348e4b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagerImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagerImpl.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.networkcloud.models.ClusterManagerProvisioningState; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; import java.util.Collections; import java.util.List; import java.util.Map; @@ -49,6 +50,10 @@ public Map tags() { } } + public ManagedServiceIdentity identity() { + return this.innerModel().identity(); + } + public SystemData systemData() { return this.innerModel().systemData(); } @@ -180,8 +185,8 @@ public ClusterManager apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterManagerName = Utils.getValueFromIdByName(innerObject.id(), "clusterManagers"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterManagerName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusterManagers"); } public ClusterManager refresh() { @@ -225,6 +230,16 @@ public ClusterManagerImpl withTags(Map tags) { } } + public ClusterManagerImpl withIdentity(ManagedServiceIdentity identity) { + if (isInCreateMode()) { + this.innerModel().withIdentity(identity); + return this; + } else { + this.updateClusterManagerUpdateParameters.withIdentity(identity); + return this; + } + } + public ClusterManagerImpl withAnalyticsWorkspaceId(String analyticsWorkspaceId) { this.innerModel().withAnalyticsWorkspaceId(analyticsWorkspaceId); return this; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersClientImpl.java index 18491ffea4fbe..11d22c1f7db08 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.ClusterManagersClient; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ClusterManagerList; import com.azure.resourcemanager.networkcloud.models.ClusterManagerPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in ClusterManagersClient. */ +/** + * An instance of this class provides access to all the operations defined in ClusterManagersClient. + */ public final class ClusterManagersClientImpl implements ClusterManagersClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final ClusterManagersService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of ClusterManagersClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ClusterManagersClientImpl(NetworkCloudImpl client) { @@ -144,13 +151,13 @@ Mono> listByResourceGroupNext( /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -173,15 +180,15 @@ private Mono> listSinglePageAsync() { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -204,9 +211,9 @@ private Mono> listSinglePageAsync(Context con /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedFlux}. @@ -219,9 +226,9 @@ private PagedFlux listAsync() { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -236,9 +243,9 @@ private PagedFlux listAsync(Context context) { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedIterable}. @@ -250,9 +257,9 @@ public PagedIterable list() { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -266,15 +273,15 @@ public PagedIterable list(Context context) { /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -301,16 +308,16 @@ private Mono> listByResourceGroupSinglePageAs /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -338,9 +345,9 @@ private Mono> listByResourceGroupSinglePageAs /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -355,9 +362,9 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -373,15 +380,15 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cluster managers in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cluster managers in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -390,16 +397,16 @@ public PagedIterable listByResourceGroup(String resourceGro /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cluster managers in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cluster managers in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -408,16 +415,16 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of the provided cluster manager along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -447,9 +454,9 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. @@ -457,7 +464,7 @@ private Mono> getByResourceGroupWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the properties of the provided cluster manager along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -486,9 +493,9 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,9 +511,9 @@ private Mono getByResourceGroupAsync(String resourceGroupNa /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. @@ -523,9 +530,9 @@ public Response getByResourceGroupWithResponse(String resou /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -540,17 +547,17 @@ public ClusterManagerInner getByResourceGroup(String resourceGroupName, String c /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with {@link - * Response} on successful completion of {@link Mono}. + * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -587,9 +594,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -597,8 +604,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with {@link - * Response} on successful completion of {@link Mono}. + * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -634,9 +641,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -644,7 +651,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of clusterManager represents a control-plane to manage one or more - * on-premises clusters. + * on-premises clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterManagerInner> beginCreateOrUpdateAsync( @@ -657,9 +664,9 @@ private PollerFlux, ClusterManagerInner> beginCr /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -668,7 +675,7 @@ private PollerFlux, ClusterManagerInner> beginCr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of clusterManager represents a control-plane to manage one or more - * on-premises clusters. + * on-premises clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterManagerInner> beginCreateOrUpdateAsync( @@ -683,9 +690,9 @@ private PollerFlux, ClusterManagerInner> beginCr /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -693,7 +700,7 @@ private PollerFlux, ClusterManagerInner> beginCr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterManager represents a control-plane to manage one or more - * on-premises clusters. + * on-premises clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterManagerInner> beginCreateOrUpdate( @@ -704,9 +711,9 @@ public SyncPoller, ClusterManagerInner> beginCre /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -715,7 +722,7 @@ public SyncPoller, ClusterManagerInner> beginCre * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterManager represents a control-plane to manage one or more - * on-premises clusters. + * on-premises clusters. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterManagerInner> beginCreateOrUpdate( @@ -727,9 +734,9 @@ public SyncPoller, ClusterManagerInner> beginCre /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -737,7 +744,7 @@ public SyncPoller, ClusterManagerInner> beginCre * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterManager represents a control-plane to manage one or more on-premises clusters on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterManagerName, @@ -748,9 +755,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -759,7 +766,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterManager represents a control-plane to manage one or more on-premises clusters on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterManagerName, @@ -770,9 +777,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -789,9 +796,9 @@ public ClusterManagerInner createOrUpdate(String resourceGroupName, String clust /** * Create or update the cluster manager. - * - *

Create a new cluster manager or update properties of the cluster manager if it exists. - * + * + * Create a new cluster manager or update properties of the cluster manager if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerParameters The request body. @@ -809,15 +816,16 @@ public ClusterManagerInner createOrUpdate(String resourceGroupName, String clust /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -847,16 +855,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -885,165 +894,171 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterManagerName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterManagerName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterManagerName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterManagerName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterManagerName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterManagerName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterManagerName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterManagerName) { return this.beginDeleteAsync(resourceGroupName, clusterManagerName).getSyncPoller(); } /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterManagerName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterManagerName, Context context) { return this.beginDeleteAsync(resourceGroupName, clusterManagerName, context).getSyncPoller(); } /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterManagerName) { + private Mono deleteAsync(String resourceGroupName, String clusterManagerName) { return beginDeleteAsync(resourceGroupName, clusterManagerName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterManagerName, Context context) { + private Mono deleteAsync(String resourceGroupName, String clusterManagerName, + Context context) { return beginDeleteAsync(resourceGroupName, clusterManagerName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterManagerName) { - deleteAsync(resourceGroupName, clusterManagerName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterManagerName) { + return deleteAsync(resourceGroupName, clusterManagerName).block(); } /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterManagerName, Context context) { - deleteAsync(resourceGroupName, clusterManagerName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterManagerName, Context context) { + return deleteAsync(resourceGroupName, clusterManagerName, context).block(); } /** * Patch the cluster manager. - * - *

Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. - * Properties and tag updates can be done independently. - * + * + * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties + * and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerUpdateParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with {@link - * Response} on successful completion of {@link Mono}. + * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, @@ -1077,10 +1092,10 @@ private Mono> updateWithResponseAsync(String resou /** * Patch the cluster manager. - * - *

Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. - * Properties and tag updates can be done independently. - * + * + * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties + * and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerUpdateParameters The request body. @@ -1088,8 +1103,8 @@ private Mono> updateWithResponseAsync(String resou * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with {@link - * Response} on successful completion of {@link Mono}. + * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, @@ -1121,17 +1136,17 @@ private Mono> updateWithResponseAsync(String resou /** * Patch the cluster manager. - * - *

Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. - * Properties and tag updates can be done independently. - * + * + * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties + * and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterManager represents a control-plane to manage one or more on-premises clusters on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterManagerName) { @@ -1142,10 +1157,10 @@ private Mono updateAsync(String resourceGroupName, String c /** * Patch the cluster manager. - * - *

Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. - * Properties and tag updates can be done independently. - * + * + * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties + * and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param clusterManagerUpdateParameters The request body. @@ -1153,8 +1168,8 @@ private Mono updateAsync(String resourceGroupName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with {@link - * Response}. + * @return clusterManager represents a control-plane to manage one or more on-premises clusters along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String clusterManagerName, @@ -1165,10 +1180,10 @@ public Response updateWithResponse(String resourceGroupName /** * Patch the cluster manager. - * - *

Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. - * Properties and tag updates can be done independently. - * + * + * Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties + * and tag updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1185,14 +1200,13 @@ public ClusterManagerInner update(String resourceGroupName, String clusterManage /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterManagerList represents a list of cluster manager objects along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1214,15 +1228,14 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterManagerList represents a list of cluster manager objects along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -1243,14 +1256,13 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterManagerList represents a list of cluster manager objects along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1272,15 +1284,14 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterManagerList represents a list of cluster manager objects along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersImpl.java index 3ab946c3755e8..7a74c19939907 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterManagersImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.ClusterManagersClient; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ClusterManager; import com.azure.resourcemanager.networkcloud.models.ClusterManagers; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class ClusterManagersImpl implements ClusterManagers { private static final ClientLogger LOGGER = new ClientLogger(ClusterManagersImpl.class); @@ -29,22 +31,22 @@ public ClusterManagersImpl(ClusterManagersClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterManagerImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterManagerName, @@ -68,21 +70,31 @@ public ClusterManager getByResourceGroup(String resourceGroupName, String cluste } } - public void deleteByResourceGroup(String resourceGroupName, String clusterManagerName) { - this.serviceClient().delete(resourceGroupName, clusterManagerName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String clusterManagerName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, clusterManagerName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String clusterManagerName, Context context) { - this.serviceClient().delete(resourceGroupName, clusterManagerName, context); + public OperationStatusResult delete(String resourceGroupName, String clusterManagerName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, clusterManagerName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public ClusterManager 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 clusterManagerName = Utils.getValueFromIdByName(id, "clusterManagers"); + String clusterManagerName = ResourceManagerUtils.getValueFromIdByName(id, "clusterManagers"); if (clusterManagerName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusterManagers'.", id))); @@ -91,12 +103,12 @@ public ClusterManager getById(String id) { } public Response 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 clusterManagerName = Utils.getValueFromIdByName(id, "clusterManagers"); + String clusterManagerName = ResourceManagerUtils.getValueFromIdByName(id, "clusterManagers"); if (clusterManagerName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusterManagers'.", id))); @@ -104,32 +116,32 @@ public Response getByIdWithResponse(String id, Context context) return this.getByResourceGroupWithResponse(resourceGroupName, clusterManagerName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 clusterManagerName = Utils.getValueFromIdByName(id, "clusterManagers"); + String clusterManagerName = ResourceManagerUtils.getValueFromIdByName(id, "clusterManagers"); if (clusterManagerName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusterManagers'.", id))); } - this.delete(resourceGroupName, clusterManagerName, Context.NONE); + return this.delete(resourceGroupName, clusterManagerName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 clusterManagerName = Utils.getValueFromIdByName(id, "clusterManagers"); + String clusterManagerName = ResourceManagerUtils.getValueFromIdByName(id, "clusterManagers"); if (clusterManagerName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusterManagers'.", id))); } - this.delete(resourceGroupName, clusterManagerName, context); + return this.delete(resourceGroupName, clusterManagerName, context); } private ClusterManagersClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterMetricsConfigurationImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterMetricsConfigurationImpl.java index e44ea0e8a61a8..2461ccc434193 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterMetricsConfigurationImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClusterMetricsConfigurationImpl.java @@ -170,9 +170,10 @@ public ClusterMetricsConfiguration apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = Utils.getValueFromIdByName(innerObject.id(), "clusters"); - this.metricsConfigurationName = Utils.getValueFromIdByName(innerObject.id(), "metricsConfigurations"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); + this.metricsConfigurationName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "metricsConfigurations"); } public ClusterMetricsConfiguration refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersClientImpl.java index b33962993966d..a7a9e278218de 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersClientImpl.java @@ -36,25 +36,33 @@ import com.azure.resourcemanager.networkcloud.fluent.ClustersClient; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterInner; import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; import com.azure.resourcemanager.networkcloud.models.ClusterList; import com.azure.resourcemanager.networkcloud.models.ClusterPatchParameters; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in ClustersClient. */ +/** + * An instance of this class provides access to all the operations defined in ClustersClient. + */ public final class ClustersClientImpl implements ClustersClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final ClustersService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of ClustersClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ClustersClientImpl(NetworkCloudImpl client) { @@ -124,9 +132,19 @@ Mono>> update(@HostParam("$host") String endpoint, @BodyParam("application/json") ClusterPatchParameters clusterUpdateParameters, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/continueUpdateVersion") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> continueUpdateVersion(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @BodyParam("application/json") ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/deploy") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> deploy(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -134,9 +152,19 @@ Mono>> deploy(@HostParam("$host") String endpoint, @BodyParam("application/json") ClusterDeployParameters clusterDeployParameters, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/scanRuntime") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> scanRuntime(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @BodyParam("application/json") ClusterScanRuntimeParameters clusterScanRuntimeParameters, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/updateVersion") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> updateVersion(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -163,13 +191,13 @@ Mono> listByResourceGroupNext( /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided subscription along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -192,15 +220,15 @@ private Mono> listSinglePageAsync() { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided subscription along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -223,9 +251,9 @@ private Mono> listSinglePageAsync(Context context) { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided subscription as paginated response with {@link PagedFlux}. @@ -238,9 +266,9 @@ private PagedFlux listAsync() { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -255,9 +283,9 @@ private PagedFlux listAsync(Context context) { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided subscription as paginated response with {@link PagedIterable}. @@ -269,9 +297,9 @@ public PagedIterable list() { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -285,15 +313,15 @@ public PagedIterable list(Context context) { /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -320,16 +348,16 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -357,9 +385,9 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -374,9 +402,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -392,9 +420,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -408,9 +436,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName) /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -425,9 +453,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName, /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -462,9 +490,9 @@ private Mono> getByResourceGroupWithResponseAsync(String /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -499,9 +527,9 @@ private Mono> getByResourceGroupWithResponseAsync(String /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -517,9 +545,9 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -536,9 +564,9 @@ public Response getByResourceGroupWithResponse(String resourceGrou /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -553,9 +581,9 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -563,7 +591,7 @@ public ClusterInner getByResourceGroup(String resourceGroupName, String clusterN * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cluster represents the on-premises Network Cloud cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -598,9 +626,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -609,7 +637,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cluster represents the on-premises Network Cloud cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -643,9 +671,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -665,9 +693,9 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -689,9 +717,9 @@ private PollerFlux, ClusterInner> beginCreateOrUpdateAs /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -708,9 +736,9 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate(St /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -729,9 +757,9 @@ public SyncPoller, ClusterInner> beginCreateOrUpdate(St /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -749,9 +777,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -770,9 +798,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -788,9 +816,9 @@ public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, /** * Create or update the cluster. - * - *

Create a new cluster or update the properties of the cluster if it exists. - * + * + * Create a new cluster or update the properties of the cluster if it exists. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterParameters The request body. @@ -808,15 +836,16 @@ public ClusterInner createOrUpdate(String resourceGroupName, String clusterName, /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName) { @@ -844,16 +873,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, @@ -881,156 +911,162 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName) { return this.beginDeleteAsync(resourceGroupName, clusterName).getSyncPoller(); } /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName, Context context) { return this.beginDeleteAsync(resourceGroupName, clusterName, context).getSyncPoller(); } /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName) { + private Mono deleteAsync(String resourceGroupName, String clusterName) { return beginDeleteAsync(resourceGroupName, clusterName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, Context context) { + private Mono deleteAsync(String resourceGroupName, String clusterName, + Context context) { return beginDeleteAsync(resourceGroupName, clusterName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName) { - deleteAsync(resourceGroupName, clusterName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName) { + return deleteAsync(resourceGroupName, clusterName).block(); } /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, Context context) { - deleteAsync(resourceGroupName, clusterName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName, Context context) { + return deleteAsync(resourceGroupName, clusterName, context).block(); } /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1038,7 +1074,7 @@ public void delete(String resourceGroupName, String clusterName, Context context * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cluster represents the on-premises Network Cloud cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -1069,10 +1105,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1081,7 +1117,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return cluster represents the on-premises Network Cloud cluster along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -1112,10 +1148,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1135,10 +1171,10 @@ private PollerFlux, ClusterInner> beginUpdateAsync(Stri /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1158,10 +1194,10 @@ private PollerFlux, ClusterInner> beginUpdateAsync(Stri /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1183,10 +1219,10 @@ private PollerFlux, ClusterInner> beginUpdateAsync(Stri /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1203,10 +1239,10 @@ public SyncPoller, ClusterInner> beginUpdate(String res /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1224,10 +1260,10 @@ public SyncPoller, ClusterInner> beginUpdate(String res /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1245,10 +1281,10 @@ private Mono updateAsync(String resourceGroupName, String clusterN /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1265,10 +1301,10 @@ private Mono updateAsync(String resourceGroupName, String clusterN /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1287,10 +1323,10 @@ private Mono updateAsync(String resourceGroupName, String clusterN /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1306,10 +1342,10 @@ public ClusterInner update(String resourceGroupName, String clusterName) { /** * Patch the cluster. - * - *

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and - * tag updates can be done independently. - * + * + * Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag + * updates can be done independently. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateParameters The request body. @@ -1326,18 +1362,299 @@ public ClusterInner update(String resourceGroupName, String clusterName, } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> continueUpdateVersionWithResponseAsync(String resourceGroupName, + String clusterName, ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (clusterContinueUpdateVersionParameters == null) { + return Mono.error(new IllegalArgumentException( + "Parameter clusterContinueUpdateVersionParameters is required and cannot be null.")); + } else { + clusterContinueUpdateVersionParameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.continueUpdateVersion(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, + clusterContinueUpdateVersionParameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> continueUpdateVersionWithResponseAsync(String resourceGroupName, + String clusterName, ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (clusterContinueUpdateVersionParameters == null) { + return Mono.error(new IllegalArgumentException( + "Parameter clusterContinueUpdateVersionParameters is required and cannot be null.")); + } else { + clusterContinueUpdateVersionParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.continueUpdateVersion(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, + accept, context); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> + beginContinueUpdateVersionAsync(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters) { + Mono>> mono = continueUpdateVersionWithResponseAsync(resourceGroupName, clusterName, + clusterContinueUpdateVersionParameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, + this.client.getContext()); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> + beginContinueUpdateVersionAsync(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = continueUpdateVersionWithResponseAsync(resourceGroupName, clusterName, + clusterContinueUpdateVersionParameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationStatusResultInner> beginContinueUpdateVersion( + String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters) { + return this + .beginContinueUpdateVersionAsync(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters) + .getSyncPoller(); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationStatusResultInner> beginContinueUpdateVersion( + String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context) { + return this + .beginContinueUpdateVersionAsync(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, + context) + .getSyncPoller(); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono continueUpdateVersionAsync(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters) { + return beginContinueUpdateVersionAsync(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono continueUpdateVersionAsync(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context) { + return beginContinueUpdateVersionAsync(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, + context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters) { + return continueUpdateVersionAsync(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters) + .block(); + } + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context) { + return continueUpdateVersionAsync(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, + context).block(); + } + + /** + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deployWithResponseAsync(String resourceGroupName, String clusterName, @@ -1367,10 +1684,10 @@ private Mono>> deployWithResponseAsync(String resource } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -1378,8 +1695,8 @@ private Mono>> deployWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deployWithResponseAsync(String resourceGroupName, String clusterName, @@ -1409,10 +1726,10 @@ private Mono>> deployWithResponseAsync(String resource } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -1432,10 +1749,10 @@ private PollerFlux, OperationStatusResult } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1455,10 +1772,10 @@ private PollerFlux, OperationStatusResult } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -1480,10 +1797,10 @@ private PollerFlux, OperationStatusResult } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1499,10 +1816,10 @@ private PollerFlux, OperationStatusResult } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -1520,10 +1837,10 @@ public SyncPoller, OperationStatusResultI } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -1540,10 +1857,10 @@ private Mono deployAsync(String resourceGroupName, S } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1559,10 +1876,10 @@ private Mono deployAsync(String resourceGroupName, S } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -1580,10 +1897,10 @@ private Mono deployAsync(String resourceGroupName, S } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1598,10 +1915,10 @@ public OperationStatusResultInner deploy(String resourceGroupName, String cluste } /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -1617,19 +1934,327 @@ public OperationStatusResultInner deploy(String resourceGroupName, String cluste return deployAsync(resourceGroupName, clusterName, clusterDeployParameters, context).block(); } + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> scanRuntimeWithResponseAsync(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (clusterScanRuntimeParameters != null) { + clusterScanRuntimeParameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.scanRuntime(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, clusterScanRuntimeParameters, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> scanRuntimeWithResponseAsync(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (clusterName == null) { + return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); + } + if (clusterScanRuntimeParameters != null) { + clusterScanRuntimeParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.scanRuntime(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, clusterScanRuntimeParameters, accept, + context); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> beginScanRuntimeAsync( + String resourceGroupName, String clusterName, ClusterScanRuntimeParameters clusterScanRuntimeParameters) { + Mono>> mono + = scanRuntimeWithResponseAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, + this.client.getContext()); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> + beginScanRuntimeAsync(String resourceGroupName, String clusterName) { + final ClusterScanRuntimeParameters clusterScanRuntimeParameters = null; + Mono>> mono + = scanRuntimeWithResponseAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, + this.client.getContext()); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> beginScanRuntimeAsync( + String resourceGroupName, String clusterName, ClusterScanRuntimeParameters clusterScanRuntimeParameters, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = scanRuntimeWithResponseAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationStatusResultInner> + beginScanRuntime(String resourceGroupName, String clusterName) { + final ClusterScanRuntimeParameters clusterScanRuntimeParameters = null; + return this.beginScanRuntimeAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters).getSyncPoller(); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationStatusResultInner> beginScanRuntime( + String resourceGroupName, String clusterName, ClusterScanRuntimeParameters clusterScanRuntimeParameters, + Context context) { + return this.beginScanRuntimeAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters, context) + .getSyncPoller(); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono scanRuntimeAsync(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters) { + return beginScanRuntimeAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono scanRuntimeAsync(String resourceGroupName, String clusterName) { + final ClusterScanRuntimeParameters clusterScanRuntimeParameters = null; + return beginScanRuntimeAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono scanRuntimeAsync(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters, Context context) { + return beginScanRuntimeAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner scanRuntime(String resourceGroupName, String clusterName) { + final ClusterScanRuntimeParameters clusterScanRuntimeParameters = null; + return scanRuntimeAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters).block(); + } + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner scanRuntime(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters, Context context) { + return scanRuntimeAsync(resourceGroupName, clusterName, clusterScanRuntimeParameters, context).block(); + } + /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateVersionWithResponseAsync(String resourceGroupName, @@ -1665,9 +2290,9 @@ private Mono>> updateVersionWithResponseAsync(String r /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1675,8 +2300,8 @@ private Mono>> updateVersionWithResponseAsync(String r * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateVersionWithResponseAsync(String resourceGroupName, @@ -1711,9 +2336,9 @@ private Mono>> updateVersionWithResponseAsync(String r /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1734,9 +2359,9 @@ private PollerFlux, OperationStatusResult /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1759,9 +2384,9 @@ private PollerFlux, OperationStatusResult /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1779,9 +2404,9 @@ public SyncPoller, OperationStatusResultI /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1801,9 +2426,9 @@ public SyncPoller, OperationStatusResultI /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1821,9 +2446,9 @@ private Mono updateVersionAsync(String resourceGroup /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1842,9 +2467,9 @@ private Mono updateVersionAsync(String resourceGroup /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1861,9 +2486,9 @@ public OperationStatusResultInner updateVersion(String resourceGroupName, String /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -1881,14 +2506,13 @@ public OperationStatusResultInner updateVersion(String resourceGroupName, String /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterList represents a list of clusters along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1910,15 +2534,14 @@ private Mono> listBySubscriptionNextSinglePageAsync( /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterList represents a list of clusters along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { @@ -1938,14 +2561,13 @@ private Mono> listBySubscriptionNextSinglePageAsync( /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterList represents a list of clusters along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1967,15 +2589,14 @@ private Mono> listByResourceGroupNextSinglePageAsync /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterList represents a list of clusters along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersImpl.java index 720d8c14690d9..919a95fca561e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ClustersImpl.java @@ -13,7 +13,9 @@ import com.azure.resourcemanager.networkcloud.fluent.models.ClusterInner; import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.Cluster; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; import com.azure.resourcemanager.networkcloud.models.Clusters; import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; @@ -33,22 +35,22 @@ public ClustersImpl(ClustersClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, @@ -72,12 +74,44 @@ public Cluster getByResourceGroup(String resourceGroupName, String clusterName) } } - public void deleteByResourceGroup(String resourceGroupName, String clusterName) { - this.serviceClient().delete(resourceGroupName, clusterName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String clusterName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, clusterName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String clusterName, Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, context); + public OperationStatusResult delete(String resourceGroupName, String clusterName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, clusterName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public OperationStatusResult continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters) { + OperationStatusResultInner inner = this.serviceClient() + .continueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public OperationStatusResult continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context) { + OperationStatusResultInner inner = this.serviceClient() + .continueUpdateVersion(resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public OperationStatusResult deploy(String resourceGroupName, String clusterName) { @@ -100,6 +134,26 @@ public OperationStatusResult deploy(String resourceGroupName, String clusterName } } + public OperationStatusResult scanRuntime(String resourceGroupName, String clusterName) { + OperationStatusResultInner inner = this.serviceClient().scanRuntime(resourceGroupName, clusterName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public OperationStatusResult scanRuntime(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters, Context context) { + OperationStatusResultInner inner + = this.serviceClient().scanRuntime(resourceGroupName, clusterName, clusterScanRuntimeParameters, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } + } + public OperationStatusResult updateVersion(String resourceGroupName, String clusterName, ClusterUpdateVersionParameters clusterUpdateVersionParameters) { OperationStatusResultInner inner @@ -123,12 +177,12 @@ public OperationStatusResult updateVersion(String resourceGroupName, String clus } public Cluster 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))); @@ -137,12 +191,12 @@ public Cluster getById(String id) { } public Response 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))); @@ -150,32 +204,32 @@ public Response getByIdWithResponse(String id, Context context) { return this.getByResourceGroupWithResponse(resourceGroupName, clusterName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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))); } - this.delete(resourceGroupName, clusterName, Context.NONE); + return this.delete(resourceGroupName, clusterName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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))); } - this.delete(resourceGroupName, clusterName, context); + return this.delete(resourceGroupName, clusterName, context); } private ClustersClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsoleImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsoleImpl.java index fc040256507d3..b986f9ddddd4a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsoleImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsoleImpl.java @@ -165,9 +165,9 @@ public Console apply(Context context) { ConsoleImpl(ConsoleInner innerObject, com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.virtualMachineName = Utils.getValueFromIdByName(innerObject.id(), "virtualMachines"); - this.consoleName = Utils.getValueFromIdByName(innerObject.id(), "consoles"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.virtualMachineName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "virtualMachines"); + this.consoleName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "consoles"); } public Console refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesClientImpl.java index 5d377ecb12651..d21acb66d1e10 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.ConsolesClient; import com.azure.resourcemanager.networkcloud.fluent.models.ConsoleInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ConsoleList; import com.azure.resourcemanager.networkcloud.models.ConsolePatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in ConsolesClient. */ +/** + * An instance of this class provides access to all the operations defined in ConsolesClient. + */ public final class ConsolesClientImpl implements ConsolesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final ConsolesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of ConsolesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ConsolesClientImpl(NetworkCloudImpl client) { @@ -128,16 +135,16 @@ Mono> listByVirtualMachineNext( /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of consoles for the provided virtual machine along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByVirtualMachineSinglePageAsync(String resourceGroupName, @@ -169,9 +176,9 @@ private Mono> listByVirtualMachineSinglePageAsync(St /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -179,7 +186,7 @@ private Mono> listByVirtualMachineSinglePageAsync(St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of consoles for the provided virtual machine along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByVirtualMachineSinglePageAsync(String resourceGroupName, @@ -211,9 +218,9 @@ private Mono> listByVirtualMachineSinglePageAsync(St /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -229,9 +236,9 @@ private PagedFlux listByVirtualMachineAsync(String resourceGroupNa /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -250,9 +257,9 @@ private PagedFlux listByVirtualMachineAsync(String resourceGroupNa /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -267,9 +274,9 @@ public PagedIterable listByVirtualMachine(String resourceGroupName /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -286,9 +293,9 @@ public PagedIterable listByVirtualMachine(String resourceGroupName /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -296,7 +303,7 @@ public PagedIterable listByVirtualMachine(String resourceGroupName * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided virtual machine console along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String virtualMachineName, @@ -329,9 +336,9 @@ private Mono> getWithResponseAsync(String resourceGroupNa /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -340,7 +347,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided virtual machine console along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, String virtualMachineName, @@ -372,9 +379,9 @@ private Mono> getWithResponseAsync(String resourceGroupNa /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -391,9 +398,9 @@ private Mono getAsync(String resourceGroupName, String virtualMach /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -411,9 +418,9 @@ public Response getWithResponse(String resourceGroupName, String v /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -429,9 +436,9 @@ public ConsoleInner get(String resourceGroupName, String virtualMachineName, Str /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -439,8 +446,8 @@ public ConsoleInner get(String resourceGroupName, String virtualMachineName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return console represents the console of an on-premises Network Cloud virtual machine along with {@link - * Response} on successful completion of {@link Mono}. + * @return console represents the console of an on-premises Network Cloud virtual machine along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -480,9 +487,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -491,8 +498,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return console represents the console of an on-premises Network Cloud virtual machine along with {@link - * Response} on successful completion of {@link Mono}. + * @return console represents the console of an on-premises Network Cloud virtual machine along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -531,9 +538,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -542,7 +549,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ConsoleInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -555,9 +562,9 @@ private PollerFlux, ConsoleInner> beginCreateOrUpdateAs /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -567,7 +574,7 @@ private PollerFlux, ConsoleInner> beginCreateOrUpdateAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ConsoleInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -581,9 +588,9 @@ private PollerFlux, ConsoleInner> beginCreateOrUpdateAs /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -592,7 +599,7 @@ private PollerFlux, ConsoleInner> beginCreateOrUpdateAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ConsoleInner> beginCreateOrUpdate(String resourceGroupName, @@ -603,9 +610,9 @@ public SyncPoller, ConsoleInner> beginCreateOrUpdate(St /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -615,7 +622,7 @@ public SyncPoller, ConsoleInner> beginCreateOrUpdate(St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ConsoleInner> beginCreateOrUpdate(String resourceGroupName, @@ -627,9 +634,9 @@ public SyncPoller, ConsoleInner> beginCreateOrUpdate(St /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -638,7 +645,7 @@ public SyncPoller, ConsoleInner> beginCreateOrUpdate(St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return console represents the console of an on-premises Network Cloud virtual machine on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String virtualMachineName, @@ -649,9 +656,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -661,7 +668,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return console represents the console of an on-premises Network Cloud virtual machine on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String virtualMachineName, @@ -673,9 +680,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -693,9 +700,9 @@ public ConsoleInner createOrUpdate(String resourceGroupName, String virtualMachi /** * Create or update the virtual machine console. - * - *

Create a new virtual machine console or update the properties of the existing virtual machine console. - * + * + * Create a new virtual machine console or update the properties of the existing virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -715,16 +722,17 @@ public ConsoleInner createOrUpdate(String resourceGroupName, String virtualMachi /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -757,9 +765,9 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -767,7 +775,8 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -799,31 +808,32 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualMachineName, - String consoleName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String virtualMachineName, String consoleName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualMachineName, consoleName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -831,42 +841,42 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualMachineName, - String consoleName, Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String virtualMachineName, String consoleName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualMachineName, consoleName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName, - String consoleName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String virtualMachineName, String consoleName) { return this.beginDeleteAsync(resourceGroupName, virtualMachineName, consoleName).getSyncPoller(); } /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -874,38 +884,39 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName, - String consoleName, Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String virtualMachineName, String consoleName, Context context) { return this.beginDeleteAsync(resourceGroupName, virtualMachineName, consoleName, context).getSyncPoller(); } /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualMachineName, String consoleName) { + private Mono deleteAsync(String resourceGroupName, String virtualMachineName, + String consoleName) { return beginDeleteAsync(resourceGroupName, virtualMachineName, consoleName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -913,37 +924,38 @@ private Mono deleteAsync(String resourceGroupName, String virtualMachineNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualMachineName, String consoleName, - Context context) { + private Mono deleteAsync(String resourceGroupName, String virtualMachineName, + String consoleName, Context context) { return beginDeleteAsync(resourceGroupName, virtualMachineName, consoleName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualMachineName, String consoleName) { - deleteAsync(resourceGroupName, virtualMachineName, consoleName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName, String consoleName) { + return deleteAsync(resourceGroupName, virtualMachineName, consoleName).block(); } /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -951,18 +963,20 @@ public void delete(String resourceGroupName, String virtualMachineName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualMachineName, String consoleName, Context context) { - deleteAsync(resourceGroupName, virtualMachineName, consoleName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName, String consoleName, + Context context) { + return deleteAsync(resourceGroupName, virtualMachineName, consoleName, context).block(); } /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -970,8 +984,8 @@ public void delete(String resourceGroupName, String virtualMachineName, String c * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return console represents the console of an on-premises Network Cloud virtual machine along with {@link - * Response} on successful completion of {@link Mono}. + * @return console represents the console of an on-premises Network Cloud virtual machine along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1008,10 +1022,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1020,8 +1034,8 @@ private Mono>> updateWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return console represents the console of an on-premises Network Cloud virtual machine along with {@link - * Response} on successful completion of {@link Mono}. + * @return console represents the console of an on-premises Network Cloud virtual machine along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1057,10 +1071,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1069,7 +1083,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ConsoleInner> beginUpdateAsync(String resourceGroupName, @@ -1082,10 +1096,10 @@ private PollerFlux, ConsoleInner> beginUpdateAsync(Stri /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1093,7 +1107,7 @@ private PollerFlux, ConsoleInner> beginUpdateAsync(Stri * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ConsoleInner> beginUpdateAsync(String resourceGroupName, @@ -1107,10 +1121,10 @@ private PollerFlux, ConsoleInner> beginUpdateAsync(Stri /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1120,7 +1134,7 @@ private PollerFlux, ConsoleInner> beginUpdateAsync(Stri * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ConsoleInner> beginUpdateAsync(String resourceGroupName, @@ -1135,10 +1149,10 @@ private PollerFlux, ConsoleInner> beginUpdateAsync(Stri /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1146,7 +1160,7 @@ private PollerFlux, ConsoleInner> beginUpdateAsync(Stri * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ConsoleInner> beginUpdate(String resourceGroupName, @@ -1158,10 +1172,10 @@ public SyncPoller, ConsoleInner> beginUpdate(String res /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1171,7 +1185,7 @@ public SyncPoller, ConsoleInner> beginUpdate(String res * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of console represents the console of an on-premises Network Cloud - * virtual machine. + * virtual machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ConsoleInner> beginUpdate(String resourceGroupName, @@ -1184,10 +1198,10 @@ public SyncPoller, ConsoleInner> beginUpdate(String res /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1196,7 +1210,7 @@ public SyncPoller, ConsoleInner> beginUpdate(String res * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return console represents the console of an on-premises Network Cloud virtual machine on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String virtualMachineName, String consoleName, @@ -1207,10 +1221,10 @@ private Mono updateAsync(String resourceGroupName, String virtualM /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1218,7 +1232,7 @@ private Mono updateAsync(String resourceGroupName, String virtualM * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return console represents the console of an on-premises Network Cloud virtual machine on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String virtualMachineName, String consoleName) { @@ -1229,10 +1243,10 @@ private Mono updateAsync(String resourceGroupName, String virtualM /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1242,7 +1256,7 @@ private Mono updateAsync(String resourceGroupName, String virtualM * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return console represents the console of an on-premises Network Cloud virtual machine on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String virtualMachineName, String consoleName, @@ -1254,10 +1268,10 @@ private Mono updateAsync(String resourceGroupName, String virtualM /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1274,10 +1288,10 @@ public ConsoleInner update(String resourceGroupName, String virtualMachineName, /** * Patch the virtual machine console. - * - *

Patch the properties of the provided virtual machine console, or update the tags associated with the virtual + * + * Patch the properties of the provided virtual machine console, or update the tags associated with the virtual * machine console. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -1297,14 +1311,13 @@ public ConsoleInner update(String resourceGroupName, String virtualMachineName, /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return consoleList represents a list of virtual machine consoles along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByVirtualMachineNextSinglePageAsync(String nextLink) { @@ -1326,15 +1339,14 @@ private Mono> listByVirtualMachineNextSinglePageAsyn /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return consoleList represents a list of virtual machine consoles along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByVirtualMachineNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesImpl.java index 7eac396a168d5..11f844f578346 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ConsolesImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.ConsolesClient; import com.azure.resourcemanager.networkcloud.fluent.models.ConsoleInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.Console; import com.azure.resourcemanager.networkcloud.models.Consoles; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class ConsolesImpl implements Consoles { private static final ClientLogger LOGGER = new ClientLogger(ConsolesImpl.class); @@ -30,14 +32,14 @@ public ConsolesImpl(ConsolesClient innerClient, public PagedIterable listByVirtualMachine(String resourceGroupName, String virtualMachineName) { PagedIterable inner = this.serviceClient().listByVirtualMachine(resourceGroupName, virtualMachineName); - return Utils.mapPage(inner, inner1 -> new ConsoleImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConsoleImpl(inner1, this.manager())); } public PagedIterable listByVirtualMachine(String resourceGroupName, String virtualMachineName, Context context) { PagedIterable inner = this.serviceClient().listByVirtualMachine(resourceGroupName, virtualMachineName, context); - return Utils.mapPage(inner, inner1 -> new ConsoleImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ConsoleImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String virtualMachineName, String consoleName, @@ -61,26 +63,39 @@ public Console get(String resourceGroupName, String virtualMachineName, String c } } - public void delete(String resourceGroupName, String virtualMachineName, String consoleName) { - this.serviceClient().delete(resourceGroupName, virtualMachineName, consoleName); + public OperationStatusResult delete(String resourceGroupName, String virtualMachineName, String consoleName) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, virtualMachineName, consoleName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String virtualMachineName, String consoleName, Context context) { - this.serviceClient().delete(resourceGroupName, virtualMachineName, consoleName, context); + public OperationStatusResult delete(String resourceGroupName, String virtualMachineName, String consoleName, + Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, virtualMachineName, consoleName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public Console 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); } - String consoleName = Utils.getValueFromIdByName(id, "consoles"); + String consoleName = ResourceManagerUtils.getValueFromIdByName(id, "consoles"); if (consoleName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'consoles'.", id))); @@ -89,17 +104,17 @@ public Console getById(String id) { } public Response 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); } - String consoleName = Utils.getValueFromIdByName(id, "consoles"); + String consoleName = ResourceManagerUtils.getValueFromIdByName(id, "consoles"); if (consoleName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'consoles'.", id))); @@ -107,42 +122,42 @@ public Response getByIdWithResponse(String id, Context context) { return this.getWithResponse(resourceGroupName, virtualMachineName, consoleName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); } - String consoleName = Utils.getValueFromIdByName(id, "consoles"); + String consoleName = ResourceManagerUtils.getValueFromIdByName(id, "consoles"); if (consoleName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'consoles'.", id))); } - this.delete(resourceGroupName, virtualMachineName, consoleName, Context.NONE); + return this.delete(resourceGroupName, virtualMachineName, consoleName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); } - String consoleName = Utils.getValueFromIdByName(id, "consoles"); + String consoleName = ResourceManagerUtils.getValueFromIdByName(id, "consoles"); if (consoleName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'consoles'.", id))); } - this.delete(resourceGroupName, virtualMachineName, consoleName, context); + return this.delete(resourceGroupName, virtualMachineName, consoleName, context); } private ConsolesClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeatureImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeatureImpl.java new file mode 100644 index 0000000000000..58b658cf7b547 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeatureImpl.java @@ -0,0 +1,225 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeatureInner; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeature; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureAvailabilityLifecycle; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureDetailedStatus; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeaturePatchParameters; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureProvisioningState; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureRequired; +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public final class KubernetesClusterFeatureImpl + implements KubernetesClusterFeature, KubernetesClusterFeature.Definition, KubernetesClusterFeature.Update { + private KubernetesClusterFeatureInner innerObject; + + private final com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public KubernetesClusterFeatureAvailabilityLifecycle availabilityLifecycle() { + return this.innerModel().availabilityLifecycle(); + } + + public KubernetesClusterFeatureDetailedStatus detailedStatus() { + return this.innerModel().detailedStatus(); + } + + public String detailedStatusMessage() { + return this.innerModel().detailedStatusMessage(); + } + + public List options() { + List inner = this.innerModel().options(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public KubernetesClusterFeatureProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public KubernetesClusterFeatureRequired required() { + return this.innerModel().required(); + } + + public String version() { + return this.innerModel().version(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public KubernetesClusterFeatureInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.networkcloud.NetworkCloudManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String kubernetesClusterName; + + private String featureName; + + private KubernetesClusterFeaturePatchParameters updateKubernetesClusterFeatureUpdateParameters; + + public KubernetesClusterFeatureImpl withExistingKubernetesCluster(String resourceGroupName, + String kubernetesClusterName) { + this.resourceGroupName = resourceGroupName; + this.kubernetesClusterName = kubernetesClusterName; + return this; + } + + public KubernetesClusterFeature create() { + this.innerObject = serviceManager.serviceClient() + .getKubernetesClusterFeatures() + .createOrUpdate(resourceGroupName, kubernetesClusterName, featureName, this.innerModel(), Context.NONE); + return this; + } + + public KubernetesClusterFeature create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getKubernetesClusterFeatures() + .createOrUpdate(resourceGroupName, kubernetesClusterName, featureName, this.innerModel(), context); + return this; + } + + KubernetesClusterFeatureImpl(String name, + com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { + this.innerObject = new KubernetesClusterFeatureInner(); + this.serviceManager = serviceManager; + this.featureName = name; + } + + public KubernetesClusterFeatureImpl update() { + this.updateKubernetesClusterFeatureUpdateParameters = new KubernetesClusterFeaturePatchParameters(); + return this; + } + + public KubernetesClusterFeature apply() { + this.innerObject = serviceManager.serviceClient() + .getKubernetesClusterFeatures() + .update(resourceGroupName, kubernetesClusterName, featureName, + updateKubernetesClusterFeatureUpdateParameters, Context.NONE); + return this; + } + + public KubernetesClusterFeature apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getKubernetesClusterFeatures() + .update(resourceGroupName, kubernetesClusterName, featureName, + updateKubernetesClusterFeatureUpdateParameters, context); + return this; + } + + KubernetesClusterFeatureImpl(KubernetesClusterFeatureInner innerObject, + com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kubernetesClusters"); + this.featureName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "features"); + } + + public KubernetesClusterFeature refresh() { + this.innerObject = serviceManager.serviceClient() + .getKubernetesClusterFeatures() + .getWithResponse(resourceGroupName, kubernetesClusterName, featureName, Context.NONE) + .getValue(); + return this; + } + + public KubernetesClusterFeature refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getKubernetesClusterFeatures() + .getWithResponse(resourceGroupName, kubernetesClusterName, featureName, context) + .getValue(); + return this; + } + + public KubernetesClusterFeatureImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public KubernetesClusterFeatureImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public KubernetesClusterFeatureImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateKubernetesClusterFeatureUpdateParameters.withTags(tags); + return this; + } + } + + public KubernetesClusterFeatureImpl withOptions(List options) { + if (isInCreateMode()) { + this.innerModel().withOptions(options); + return this; + } else { + this.updateKubernetesClusterFeatureUpdateParameters.withOptions(options); + return this; + } + } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesClientImpl.java new file mode 100644 index 0000000000000..ab818e878eda2 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesClientImpl.java @@ -0,0 +1,1389 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.networkcloud.fluent.KubernetesClusterFeaturesClient; +import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeatureInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatureList; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeaturePatchParameters; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in KubernetesClusterFeaturesClient. + */ +public final class KubernetesClusterFeaturesClientImpl implements KubernetesClusterFeaturesClient { + /** + * The proxy service used to perform REST calls. + */ + private final KubernetesClusterFeaturesService service; + + /** + * The service client containing this operation class. + */ + private final NetworkCloudImpl client; + + /** + * Initializes an instance of KubernetesClusterFeaturesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + KubernetesClusterFeaturesClientImpl(NetworkCloudImpl client) { + this.service = RestProxy.create(KubernetesClusterFeaturesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetworkCloudKubernetesClusterFeatures to be used by the proxy service + * to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetworkCloudKubernet") + public interface KubernetesClusterFeaturesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByKubernetesCluster(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kubernetesClusterName") String kubernetesClusterName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kubernetesClusterName") String kubernetesClusterName, + @PathParam("featureName") String featureName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kubernetesClusterName") String kubernetesClusterName, + @PathParam("featureName") String featureName, + @BodyParam("application/json") KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kubernetesClusterName") String kubernetesClusterName, + @PathParam("featureName") String featureName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kubernetesClusterName") String kubernetesClusterName, + @PathParam("featureName") String featureName, + @BodyParam("application/json") KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByKubernetesClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByKubernetesClusterSinglePageAsync(String resourceGroupName, String kubernetesClusterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByKubernetesCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, kubernetesClusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByKubernetesClusterSinglePageAsync( + String resourceGroupName, String kubernetesClusterName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByKubernetesCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, kubernetesClusterName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByKubernetesClusterAsync(String resourceGroupName, + String kubernetesClusterName) { + return new PagedFlux<>(() -> listByKubernetesClusterSinglePageAsync(resourceGroupName, kubernetesClusterName), + nextLink -> listByKubernetesClusterNextSinglePageAsync(nextLink)); + } + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByKubernetesClusterAsync(String resourceGroupName, + String kubernetesClusterName, Context context) { + return new PagedFlux<>( + () -> listByKubernetesClusterSinglePageAsync(resourceGroupName, kubernetesClusterName, context), + nextLink -> listByKubernetesClusterNextSinglePageAsync(nextLink, context)); + } + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName) { + return new PagedIterable<>(listByKubernetesClusterAsync(resourceGroupName, kubernetesClusterName)); + } + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName, Context context) { + return new PagedIterable<>(listByKubernetesClusterAsync(resourceGroupName, kubernetesClusterName, context)); + } + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, kubernetesClusterName, featureName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, kubernetesClusterName, featureName, accept, context); + } + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String kubernetesClusterName, + String featureName) { + return getWithResponseAsync(resourceGroupName, kubernetesClusterName, featureName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String kubernetesClusterName, String featureName, Context context) { + return getWithResponseAsync(resourceGroupName, kubernetesClusterName, featureName, context).block(); + } + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubernetesClusterFeatureInner get(String resourceGroupName, String kubernetesClusterName, + String featureName) { + return getWithResponse(resourceGroupName, kubernetesClusterName, featureName, Context.NONE).getValue(); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + if (kubernetesClusterFeatureParameters == null) { + return Mono.error(new IllegalArgumentException( + "Parameter kubernetesClusterFeatureParameters is required and cannot be null.")); + } else { + kubernetesClusterFeatureParameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + if (kubernetesClusterFeatureParameters == null) { + return Mono.error(new IllegalArgumentException( + "Parameter kubernetesClusterFeatureParameters is required and cannot be null.")); + } else { + kubernetesClusterFeatureParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters, accept, context); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, KubernetesClusterFeatureInner> + beginCreateOrUpdateAsync(String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, + kubernetesClusterName, featureName, kubernetesClusterFeatureParameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), KubernetesClusterFeatureInner.class, KubernetesClusterFeatureInner.class, + this.client.getContext()); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, KubernetesClusterFeatureInner> + beginCreateOrUpdateAsync(String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, + kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), KubernetesClusterFeatureInner.class, KubernetesClusterFeatureInner.class, + context); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, KubernetesClusterFeatureInner> beginCreateOrUpdate( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters) + .getSyncPoller(); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, KubernetesClusterFeatureInner> beginCreateOrUpdate( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters, context) + .getSyncPoller(); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters) { + return beginCreateOrUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, + KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubernetesClusterFeatureInner createOrUpdate(String resourceGroupName, String kubernetesClusterName, + String featureName, KubernetesClusterFeatureInner kubernetesClusterFeatureParameters) { + return createOrUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters).block(); + } + + /** + * Create or update the Kubernetes cluster feature. + * + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubernetesClusterFeatureInner createOrUpdate(String resourceGroupName, String kubernetesClusterName, + String featureName, KubernetesClusterFeatureInner kubernetesClusterFeatureParameters, Context context) { + return createOrUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureParameters, context).block(); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, kubernetesClusterName, featureName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, kubernetesClusterName, featureName, accept, context); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String kubernetesClusterName, String featureName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, kubernetesClusterName, featureName); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, + this.client.getContext()); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String kubernetesClusterName, String featureName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, kubernetesClusterName, featureName, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String kubernetesClusterName, String featureName) { + return this.beginDeleteAsync(resourceGroupName, kubernetesClusterName, featureName).getSyncPoller(); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String kubernetesClusterName, String featureName, Context context) { + return this.beginDeleteAsync(resourceGroupName, kubernetesClusterName, featureName, context).getSyncPoller(); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, + String featureName) { + return beginDeleteAsync(resourceGroupName, kubernetesClusterName, featureName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, + String featureName, Context context) { + return beginDeleteAsync(resourceGroupName, kubernetesClusterName, featureName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, + String featureName) { + return deleteAsync(resourceGroupName, kubernetesClusterName, featureName).block(); + } + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, String featureName, + Context context) { + return deleteAsync(resourceGroupName, kubernetesClusterName, featureName, context).block(); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, + KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + if (kubernetesClusterFeatureUpdateParameters != null) { + kubernetesClusterFeatureUpdateParameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, + String kubernetesClusterName, String featureName, + KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (kubernetesClusterName == null) { + return Mono + .error(new IllegalArgumentException("Parameter kubernetesClusterName is required and cannot be null.")); + } + if (featureName == null) { + return Mono.error(new IllegalArgumentException("Parameter featureName is required and cannot be null.")); + } + if (kubernetesClusterFeatureUpdateParameters != null) { + kubernetesClusterFeatureUpdateParameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureUpdateParameters, accept, + context); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, KubernetesClusterFeatureInner> beginUpdateAsync( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, kubernetesClusterName, + featureName, kubernetesClusterFeatureUpdateParameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), KubernetesClusterFeatureInner.class, KubernetesClusterFeatureInner.class, + this.client.getContext()); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, KubernetesClusterFeatureInner> + beginUpdateAsync(String resourceGroupName, String kubernetesClusterName, String featureName) { + final KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters = null; + Mono>> mono = updateWithResponseAsync(resourceGroupName, kubernetesClusterName, + featureName, kubernetesClusterFeatureUpdateParameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), KubernetesClusterFeatureInner.class, KubernetesClusterFeatureInner.class, + this.client.getContext()); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, KubernetesClusterFeatureInner> beginUpdateAsync( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, kubernetesClusterName, + featureName, kubernetesClusterFeatureUpdateParameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), KubernetesClusterFeatureInner.class, KubernetesClusterFeatureInner.class, + context); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, KubernetesClusterFeatureInner> + beginUpdate(String resourceGroupName, String kubernetesClusterName, String featureName) { + final KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters = null; + return this + .beginUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters) + .getSyncPoller(); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of kubernetesClusterFeature represents the feature of a Kubernetes + * cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, KubernetesClusterFeatureInner> beginUpdate( + String resourceGroupName, String kubernetesClusterName, String featureName, + KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, Context context) { + return this + .beginUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters, context) + .getSyncPoller(); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String kubernetesClusterName, + String featureName, KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters) { + return beginUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String kubernetesClusterName, + String featureName) { + final KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters = null; + return beginUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String kubernetesClusterName, + String featureName, KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, + Context context) { + return beginUpdateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubernetesClusterFeatureInner update(String resourceGroupName, String kubernetesClusterName, + String featureName) { + final KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters = null; + return updateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters).block(); + } + + /** + * Patch the Kubernetes cluster feature. + * + * Patch properties of the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureUpdateParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeature represents the feature of a Kubernetes cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public KubernetesClusterFeatureInner update(String resourceGroupName, String kubernetesClusterName, + String featureName, KubernetesClusterFeaturePatchParameters kubernetesClusterFeatureUpdateParameters, + Context context) { + return updateAsync(resourceGroupName, kubernetesClusterName, featureName, + kubernetesClusterFeatureUpdateParameters, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeatureList represents the list of Kubernetes cluster feature resources along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByKubernetesClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByKubernetesClusterNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return kubernetesClusterFeatureList represents the list of Kubernetes cluster feature resources along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByKubernetesClusterNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByKubernetesClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesImpl.java new file mode 100644 index 0000000000000..0e50e74ebcbc9 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterFeaturesImpl.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.networkcloud.fluent.KubernetesClusterFeaturesClient; +import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeatureInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeature; +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatures; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; + +public final class KubernetesClusterFeaturesImpl implements KubernetesClusterFeatures { + private static final ClientLogger LOGGER = new ClientLogger(KubernetesClusterFeaturesImpl.class); + + private final KubernetesClusterFeaturesClient innerClient; + + private final com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager; + + public KubernetesClusterFeaturesImpl(KubernetesClusterFeaturesClient innerClient, + com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName) { + PagedIterable inner + = this.serviceClient().listByKubernetesCluster(resourceGroupName, kubernetesClusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KubernetesClusterFeatureImpl(inner1, this.manager())); + } + + public PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName, Context context) { + PagedIterable inner + = this.serviceClient().listByKubernetesCluster(resourceGroupName, kubernetesClusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KubernetesClusterFeatureImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String kubernetesClusterName, + String featureName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, kubernetesClusterName, featureName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new KubernetesClusterFeatureImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public KubernetesClusterFeature get(String resourceGroupName, String kubernetesClusterName, String featureName) { + KubernetesClusterFeatureInner inner + = this.serviceClient().get(resourceGroupName, kubernetesClusterName, featureName); + if (inner != null) { + return new KubernetesClusterFeatureImpl(inner, this.manager()); + } else { + return null; + } + } + + public OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String featureName) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, kubernetesClusterName, featureName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String featureName, + Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, kubernetesClusterName, featureName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public KubernetesClusterFeature getById(String id) { + 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 kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); + if (kubernetesClusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); + } + String featureName = ResourceManagerUtils.getValueFromIdByName(id, "features"); + if (featureName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'features'.", id))); + } + return this.getWithResponse(resourceGroupName, kubernetesClusterName, featureName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); + if (kubernetesClusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); + } + String featureName = ResourceManagerUtils.getValueFromIdByName(id, "features"); + if (featureName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'features'.", id))); + } + return this.getWithResponse(resourceGroupName, kubernetesClusterName, featureName, context); + } + + public OperationStatusResult deleteById(String id) { + 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 kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); + if (kubernetesClusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); + } + String featureName = ResourceManagerUtils.getValueFromIdByName(id, "features"); + if (featureName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'features'.", id))); + } + return this.delete(resourceGroupName, kubernetesClusterName, featureName, Context.NONE); + } + + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); + if (kubernetesClusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); + } + String featureName = ResourceManagerUtils.getValueFromIdByName(id, "features"); + if (featureName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'features'.", id))); + } + return this.delete(resourceGroupName, kubernetesClusterName, featureName, context); + } + + private KubernetesClusterFeaturesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.networkcloud.NetworkCloudManager manager() { + return this.serviceManager; + } + + public KubernetesClusterFeatureImpl define(String name) { + return new KubernetesClusterFeatureImpl(name, this.manager()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterImpl.java index 1c1f1998d07cb..41923e25ea9cb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClusterImpl.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterInner; import com.azure.resourcemanager.networkcloud.models.AadConfiguration; import com.azure.resourcemanager.networkcloud.models.AdministratorConfiguration; +import com.azure.resourcemanager.networkcloud.models.AdministratorConfigurationPatch; import com.azure.resourcemanager.networkcloud.models.AvailableUpgrade; import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodeConfiguration; import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodePatchConfiguration; @@ -235,8 +236,8 @@ public KubernetesCluster apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.kubernetesClusterName = Utils.getValueFromIdByName(innerObject.id(), "kubernetesClusters"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kubernetesClusters"); } public KubernetesCluster refresh() { @@ -335,6 +336,12 @@ public KubernetesClusterImpl withAdministratorConfiguration(AdministratorConfigu return this; } + public KubernetesClusterImpl + withAdministratorConfiguration(AdministratorConfigurationPatch administratorConfiguration) { + this.updateKubernetesClusterUpdateParameters.withAdministratorConfiguration(administratorConfiguration); + return this; + } + public KubernetesClusterImpl withControlPlaneNodeConfiguration(ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration) { this.updateKubernetesClusterUpdateParameters.withControlPlaneNodeConfiguration(controlPlaneNodeConfiguration); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersClientImpl.java index aef4f65826adb..119d4f8979bfb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersClientImpl.java @@ -43,17 +43,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KubernetesClustersClient. */ +/** + * An instance of this class provides access to all the operations defined in KubernetesClustersClient. + */ public final class KubernetesClustersClientImpl implements KubernetesClustersClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KubernetesClustersService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of KubernetesClustersClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KubernetesClustersClientImpl(NetworkCloudImpl client) { @@ -130,7 +136,7 @@ Mono>> update(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/restartNode") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> restartNode(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -158,13 +164,13 @@ Mono> listByResourceGroupNext( /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Kubernetes clusters in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -187,15 +193,15 @@ private Mono> listSinglePageAsync() { /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Kubernetes clusters in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -218,9 +224,9 @@ private Mono> listSinglePageAsync(Context /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Kubernetes clusters in the provided subscription as paginated response with {@link PagedFlux}. @@ -233,9 +239,9 @@ private PagedFlux listAsync() { /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -250,13 +256,13 @@ private PagedFlux listAsync(Context context) { /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -265,15 +271,15 @@ public PagedIterable list() { /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -282,15 +288,15 @@ public PagedIterable list(Context context) { /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Kubernetes clusters in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -317,16 +323,16 @@ private Mono> listByResourceGroupSinglePag /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Kubernetes clusters in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -354,15 +360,15 @@ private Mono> listByResourceGroupSinglePag /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -372,16 +378,16 @@ private PagedFlux listByResourceGroupAsync(String resour /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -391,15 +397,15 @@ private PagedFlux listByResourceGroupAsync(String resour /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -408,16 +414,16 @@ public PagedIterable listByResourceGroup(String resource /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -426,16 +432,16 @@ public PagedIterable listByResourceGroup(String resource /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided the Kubernetes cluster along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -465,9 +471,9 @@ private Mono> getByResourceGroupWithResponseAsy /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. @@ -475,7 +481,7 @@ private Mono> getByResourceGroupWithResponseAsy * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided the Kubernetes cluster along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -504,9 +510,9 @@ private Mono> getByResourceGroupWithResponseAsy /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -523,9 +529,9 @@ private Mono getByResourceGroupAsync(String resourceGrou /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. @@ -542,9 +548,9 @@ public Response getByResourceGroupWithResponse(String re /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -559,9 +565,9 @@ public KubernetesClusterInner getByResourceGroup(String resourceGroupName, Strin /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -569,7 +575,7 @@ public KubernetesClusterInner getByResourceGroup(String resourceGroupName, Strin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud along with {@link Response} - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -606,9 +612,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -617,7 +623,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud along with {@link Response} - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -653,9 +659,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -663,7 +669,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KubernetesClusterInner> beginCreateOrUpdateAsync( @@ -677,9 +683,9 @@ private PollerFlux, KubernetesClusterInner> b /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -688,7 +694,7 @@ private PollerFlux, KubernetesClusterInner> b * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KubernetesClusterInner> beginCreateOrUpdateAsync( @@ -703,9 +709,9 @@ private PollerFlux, KubernetesClusterInner> b /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -713,7 +719,7 @@ private PollerFlux, KubernetesClusterInner> b * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KubernetesClusterInner> beginCreateOrUpdate( @@ -724,9 +730,9 @@ public SyncPoller, KubernetesClusterInner> be /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -735,7 +741,7 @@ public SyncPoller, KubernetesClusterInner> be * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KubernetesClusterInner> beginCreateOrUpdate( @@ -748,9 +754,9 @@ public SyncPoller, KubernetesClusterInner> be /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -758,7 +764,7 @@ public SyncPoller, KubernetesClusterInner> be * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String kubernetesClusterName, @@ -769,9 +775,9 @@ private Mono createOrUpdateAsync(String resourceGroupNam /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -780,7 +786,7 @@ private Mono createOrUpdateAsync(String resourceGroupNam * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String kubernetesClusterName, @@ -792,9 +798,9 @@ private Mono createOrUpdateAsync(String resourceGroupNam /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -811,9 +817,9 @@ public KubernetesClusterInner createOrUpdate(String resourceGroupName, String ku /** * Create or update the Kubernetes cluster. - * - *

Create a new Kubernetes cluster or update the properties of the existing one. - * + * + * Create a new Kubernetes cluster or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterParameters The request body. @@ -832,15 +838,16 @@ public KubernetesClusterInner createOrUpdate(String resourceGroupName, String ku /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -870,16 +877,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -908,159 +916,164 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, - String kubernetesClusterName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String kubernetesClusterName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, kubernetesClusterName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String kubernetesClusterName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String kubernetesClusterName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, kubernetesClusterName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String kubernetesClusterName) { return this.beginDeleteAsync(resourceGroupName, kubernetesClusterName).getSyncPoller(); } /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String kubernetesClusterName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String kubernetesClusterName, Context context) { return this.beginDeleteAsync(resourceGroupName, kubernetesClusterName, context).getSyncPoller(); } /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName) { + private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName) { return beginDeleteAsync(resourceGroupName, kubernetesClusterName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, Context context) { + private Mono deleteAsync(String resourceGroupName, String kubernetesClusterName, + Context context) { return beginDeleteAsync(resourceGroupName, kubernetesClusterName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String kubernetesClusterName) { - deleteAsync(resourceGroupName, kubernetesClusterName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName) { + return deleteAsync(resourceGroupName, kubernetesClusterName).block(); } /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String kubernetesClusterName, Context context) { - deleteAsync(resourceGroupName, kubernetesClusterName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String kubernetesClusterName, Context context) { + return deleteAsync(resourceGroupName, kubernetesClusterName, context).block(); } /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1068,7 +1081,7 @@ public void delete(String resourceGroupName, String kubernetesClusterName, Conte * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud along with {@link Response} - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1102,10 +1115,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1114,7 +1127,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud along with {@link Response} - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1147,10 +1160,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1158,7 +1171,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KubernetesClusterInner> beginUpdateAsync( @@ -1173,17 +1186,17 @@ private PollerFlux, KubernetesClusterInner> b /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KubernetesClusterInner> @@ -1198,10 +1211,10 @@ private PollerFlux, KubernetesClusterInner> b /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1210,7 +1223,7 @@ private PollerFlux, KubernetesClusterInner> b * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, KubernetesClusterInner> beginUpdateAsync( @@ -1225,17 +1238,17 @@ private PollerFlux, KubernetesClusterInner> b /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KubernetesClusterInner> beginUpdate(String resourceGroupName, @@ -1247,10 +1260,10 @@ public SyncPoller, KubernetesClusterInner> be /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1259,7 +1272,7 @@ public SyncPoller, KubernetesClusterInner> be * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of kubernetesCluster represents the Kubernetes cluster hosted on - * Network Cloud. + * Network Cloud. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, KubernetesClusterInner> beginUpdate(String resourceGroupName, @@ -1272,10 +1285,10 @@ public SyncPoller, KubernetesClusterInner> be /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1283,7 +1296,7 @@ public SyncPoller, KubernetesClusterInner> be * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String kubernetesClusterName, @@ -1294,17 +1307,17 @@ private Mono updateAsync(String resourceGroupName, Strin /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String kubernetesClusterName) { @@ -1315,10 +1328,10 @@ private Mono updateAsync(String resourceGroupName, Strin /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1327,7 +1340,7 @@ private Mono updateAsync(String resourceGroupName, Strin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesCluster represents the Kubernetes cluster hosted on Network Cloud on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String kubernetesClusterName, @@ -1339,10 +1352,10 @@ private Mono updateAsync(String resourceGroupName, Strin /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1358,10 +1371,10 @@ public KubernetesClusterInner update(String resourceGroupName, String kubernetes /** * Patch the Kubernetes cluster. - * - *

Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes + * + * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes * cluster. Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterUpdateParameters The request body. @@ -1380,17 +1393,17 @@ public KubernetesClusterInner update(String resourceGroupName, String kubernetes /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartNodeWithResponseAsync(String resourceGroupName, @@ -1427,9 +1440,9 @@ private Mono>> restartNodeWithResponseAsync(String res /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1437,8 +1450,8 @@ private Mono>> restartNodeWithResponseAsync(String res * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartNodeWithResponseAsync(String resourceGroupName, @@ -1475,9 +1488,9 @@ private Mono>> restartNodeWithResponseAsync(String res /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1499,9 +1512,9 @@ private PollerFlux, OperationStatusResult /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1524,9 +1537,9 @@ private PollerFlux, OperationStatusResult /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1546,9 +1559,9 @@ public SyncPoller, OperationStatusResultI /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1570,9 +1583,9 @@ public SyncPoller, OperationStatusResultI /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1591,9 +1604,9 @@ private Mono restartNodeAsync(String resourceGroupNa /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1612,9 +1625,9 @@ private Mono restartNodeAsync(String resourceGroupNa /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1632,9 +1645,9 @@ public OperationStatusResultInner restartNode(String resourceGroupName, String k /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -1653,14 +1666,13 @@ public OperationStatusResultInner restartNode(String resourceGroupName, String k /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesClusterList represents a list of Kubernetes clusters along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1682,15 +1694,14 @@ private Mono> listBySubscriptionNextSingle /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesClusterList represents a list of Kubernetes clusters along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -1711,14 +1722,13 @@ private Mono> listBySubscriptionNextSingle /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesClusterList represents a list of Kubernetes clusters along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1740,15 +1750,14 @@ private Mono> listByResourceGroupNextSingl /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return kubernetesClusterList represents a list of Kubernetes clusters along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersImpl.java index d4e1bcd67216f..8b3d54ded4e70 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/KubernetesClustersImpl.java @@ -32,23 +32,23 @@ public KubernetesClustersImpl(KubernetesClustersClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KubernetesClusterImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, @@ -73,12 +73,23 @@ public KubernetesCluster getByResourceGroup(String resourceGroupName, String kub } } - public void deleteByResourceGroup(String resourceGroupName, String kubernetesClusterName) { - this.serviceClient().delete(resourceGroupName, kubernetesClusterName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String kubernetesClusterName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, kubernetesClusterName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String kubernetesClusterName, Context context) { - this.serviceClient().delete(resourceGroupName, kubernetesClusterName, context); + public OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, kubernetesClusterName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public OperationStatusResult restartNode(String resourceGroupName, String kubernetesClusterName, @@ -104,12 +115,12 @@ public OperationStatusResult restartNode(String resourceGroupName, String kubern } public KubernetesCluster 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); @@ -118,12 +129,12 @@ public KubernetesCluster getById(String id) { } public Response 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); @@ -131,32 +142,32 @@ public Response getByIdWithResponse(String id, Context contex return this.getByResourceGroupWithResponse(resourceGroupName, kubernetesClusterName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); } - this.delete(resourceGroupName, kubernetesClusterName, Context.NONE); + return this.delete(resourceGroupName, kubernetesClusterName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 kubernetesClusterName = Utils.getValueFromIdByName(id, "kubernetesClusters"); + String kubernetesClusterName = ResourceManagerUtils.getValueFromIdByName(id, "kubernetesClusters"); if (kubernetesClusterName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'kubernetesClusters'.", id))); } - this.delete(resourceGroupName, kubernetesClusterName, context); + return this.delete(resourceGroupName, kubernetesClusterName, context); } private KubernetesClustersClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworkImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworkImpl.java index b91d06a4dea6e..506f30d6fdbc4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworkImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworkImpl.java @@ -187,8 +187,8 @@ public L2Network apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.l2NetworkName = Utils.getValueFromIdByName(innerObject.id(), "l2Networks"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.l2NetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "l2Networks"); } public L2Network refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksClientImpl.java index eb1d860c14b0c..2d6138be56251 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.L2NetworksClient; import com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.L2NetworkList; import com.azure.resourcemanager.networkcloud.models.L2NetworkPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in L2NetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in L2NetworksClient. + */ public final class L2NetworksClientImpl implements L2NetworksClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final L2NetworksService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of L2NetworksClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ L2NetworksClientImpl(NetworkCloudImpl client) { @@ -140,13 +147,13 @@ Mono> listByResourceGroupNext( /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 2 (L2) networks in the provided subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -169,15 +176,15 @@ private Mono> listSinglePageAsync() { /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 2 (L2) networks in the provided subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -200,13 +207,13 @@ private Mono> listSinglePageAsync(Context context) /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedFlux}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -216,15 +223,15 @@ private PagedFlux listAsync() { /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedFlux}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -234,13 +241,13 @@ private PagedFlux listAsync(Context context) { /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -249,15 +256,15 @@ public PagedIterable list() { /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -266,15 +273,15 @@ public PagedIterable list(Context context) { /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 2 (L2) networks in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -301,16 +308,16 @@ private Mono> listByResourceGroupSinglePageAsync(S /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 2 (L2) networks in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -338,15 +345,15 @@ private Mono> listByResourceGroupSinglePageAsync(S /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -356,16 +363,16 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -375,15 +382,15 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -392,16 +399,16 @@ public PagedIterable listByResourceGroup(String resourceGroupNam /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -410,16 +417,16 @@ public PagedIterable listByResourceGroup(String resourceGroupNam /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided layer 2 (L2) network along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -448,9 +455,9 @@ private Mono> getByResourceGroupWithResponseAsync(Strin /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. @@ -458,7 +465,7 @@ private Mono> getByResourceGroupWithResponseAsync(Strin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided layer 2 (L2) network along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -486,9 +493,9 @@ private Mono> getByResourceGroupWithResponseAsync(Strin /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,9 +511,9 @@ private Mono getByResourceGroupAsync(String resourceGroupName, S /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. @@ -523,9 +530,9 @@ public Response getByResourceGroupWithResponse(String resourceGr /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -540,9 +547,9 @@ public L2NetworkInner getByResourceGroup(String resourceGroupName, String l2Netw /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -550,7 +557,7 @@ public L2NetworkInner getByResourceGroup(String resourceGroupName, String l2Netw * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -586,9 +593,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -597,7 +604,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -631,9 +638,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -641,7 +648,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of l2Network represents a network that utilizes a single isolation - * domain set up for layer-2 resources. + * domain set up for layer-2 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, L2NetworkInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -654,9 +661,9 @@ private PollerFlux, L2NetworkInner> beginCreateOrUpda /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -665,7 +672,7 @@ private PollerFlux, L2NetworkInner> beginCreateOrUpda * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of l2Network represents a network that utilizes a single isolation - * domain set up for layer-2 resources. + * domain set up for layer-2 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, L2NetworkInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -679,9 +686,9 @@ private PollerFlux, L2NetworkInner> beginCreateOrUpda /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -689,7 +696,7 @@ private PollerFlux, L2NetworkInner> beginCreateOrUpda * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l2Network represents a network that utilizes a single isolation - * domain set up for layer-2 resources. + * domain set up for layer-2 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, L2NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -699,9 +706,9 @@ public SyncPoller, L2NetworkInner> beginCreateOrUpdat /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -710,7 +717,7 @@ public SyncPoller, L2NetworkInner> beginCreateOrUpdat * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l2Network represents a network that utilizes a single isolation - * domain set up for layer-2 resources. + * domain set up for layer-2 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, L2NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -721,9 +728,9 @@ public SyncPoller, L2NetworkInner> beginCreateOrUpdat /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -731,7 +738,7 @@ public SyncPoller, L2NetworkInner> beginCreateOrUpdat * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String l2NetworkName, @@ -742,9 +749,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -753,7 +760,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String l2NetworkName, @@ -764,9 +771,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -783,9 +790,9 @@ public L2NetworkInner createOrUpdate(String resourceGroupName, String l2NetworkN /** * Create or update the layer 2 (L2) network. - * - *

Create a new layer 2 (L2) network or update the properties of the existing network. - * + * + * Create a new layer 2 (L2) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkParameters The request body. @@ -803,15 +810,16 @@ public L2NetworkInner createOrUpdate(String resourceGroupName, String l2NetworkN /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String l2NetworkName) { @@ -839,16 +847,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String l2NetworkName, @@ -876,155 +885,161 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String l2NetworkName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String l2NetworkName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, l2NetworkName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String l2NetworkName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String l2NetworkName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, l2NetworkName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String l2NetworkName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String l2NetworkName) { return this.beginDeleteAsync(resourceGroupName, l2NetworkName).getSyncPoller(); } /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String l2NetworkName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String l2NetworkName, Context context) { return this.beginDeleteAsync(resourceGroupName, l2NetworkName, context).getSyncPoller(); } /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String l2NetworkName) { + private Mono deleteAsync(String resourceGroupName, String l2NetworkName) { return beginDeleteAsync(resourceGroupName, l2NetworkName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String l2NetworkName, Context context) { + private Mono deleteAsync(String resourceGroupName, String l2NetworkName, + Context context) { return beginDeleteAsync(resourceGroupName, l2NetworkName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String l2NetworkName) { - deleteAsync(resourceGroupName, l2NetworkName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String l2NetworkName) { + return deleteAsync(resourceGroupName, l2NetworkName).block(); } /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String l2NetworkName, Context context) { - deleteAsync(resourceGroupName, l2NetworkName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String l2NetworkName, Context context) { + return deleteAsync(resourceGroupName, l2NetworkName, context).block(); } /** * Patch the layer 2 (L2) network. - * - *

Update tags associated with the provided layer 2 (L2) network. - * + * + * Update tags associated with the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkUpdateParameters The request body. @@ -1032,7 +1047,7 @@ public void delete(String resourceGroupName, String l2NetworkName, Context conte * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String l2NetworkName, @@ -1065,9 +1080,9 @@ private Mono> updateWithResponseAsync(String resourceGr /** * Patch the layer 2 (L2) network. - * - *

Update tags associated with the provided layer 2 (L2) network. - * + * + * Update tags associated with the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkUpdateParameters The request body. @@ -1076,7 +1091,7 @@ private Mono> updateWithResponseAsync(String resourceGr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String l2NetworkName, @@ -1107,16 +1122,16 @@ private Mono> updateWithResponseAsync(String resourceGr /** * Patch the layer 2 (L2) network. - * - *

Update tags associated with the provided layer 2 (L2) network. - * + * + * Update tags associated with the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String l2NetworkName) { @@ -1127,9 +1142,9 @@ private Mono updateAsync(String resourceGroupName, String l2Netw /** * Patch the layer 2 (L2) network. - * - *

Update tags associated with the provided layer 2 (L2) network. - * + * + * Update tags associated with the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param l2NetworkUpdateParameters The request body. @@ -1138,7 +1153,7 @@ private Mono updateAsync(String resourceGroupName, String l2Netw * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2Network represents a network that utilizes a single isolation domain set up for layer-2 resources along - * with {@link Response}. + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String l2NetworkName, @@ -1148,9 +1163,9 @@ public Response updateWithResponse(String resourceGroupName, Str /** * Patch the layer 2 (L2) network. - * - *

Update tags associated with the provided layer 2 (L2) network. - * + * + * Update tags associated with the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1166,14 +1181,13 @@ public L2NetworkInner update(String resourceGroupName, String l2NetworkName) { /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2NetworkList represents a list of L2 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1195,15 +1209,14 @@ private Mono> listBySubscriptionNextSinglePageAsyn /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2NetworkList represents a list of L2 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -1224,14 +1237,13 @@ private Mono> listBySubscriptionNextSinglePageAsyn /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2NetworkList represents a list of L2 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1253,15 +1265,14 @@ private Mono> listByResourceGroupNextSinglePageAsy /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l2NetworkList represents a list of L2 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksImpl.java index 645e8a7e44eb8..80779e9664585 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L2NetworksImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.L2NetworksClient; import com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.L2Network; import com.azure.resourcemanager.networkcloud.models.L2Networks; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class L2NetworksImpl implements L2Networks { private static final ClientLogger LOGGER = new ClientLogger(L2NetworksImpl.class); @@ -29,22 +31,22 @@ public L2NetworksImpl(L2NetworksClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L2NetworkImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String l2NetworkName, @@ -68,21 +70,31 @@ public L2Network getByResourceGroup(String resourceGroupName, String l2NetworkNa } } - public void deleteByResourceGroup(String resourceGroupName, String l2NetworkName) { - this.serviceClient().delete(resourceGroupName, l2NetworkName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String l2NetworkName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, l2NetworkName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String l2NetworkName, Context context) { - this.serviceClient().delete(resourceGroupName, l2NetworkName, context); + public OperationStatusResult delete(String resourceGroupName, String l2NetworkName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, l2NetworkName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public L2Network 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 l2NetworkName = Utils.getValueFromIdByName(id, "l2Networks"); + String l2NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l2Networks"); if (l2NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l2Networks'.", id))); @@ -91,12 +103,12 @@ public L2Network getById(String id) { } public Response 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 l2NetworkName = Utils.getValueFromIdByName(id, "l2Networks"); + String l2NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l2Networks"); if (l2NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l2Networks'.", id))); @@ -104,32 +116,32 @@ public Response getByIdWithResponse(String id, Context context) { return this.getByResourceGroupWithResponse(resourceGroupName, l2NetworkName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 l2NetworkName = Utils.getValueFromIdByName(id, "l2Networks"); + String l2NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l2Networks"); if (l2NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l2Networks'.", id))); } - this.delete(resourceGroupName, l2NetworkName, Context.NONE); + return this.delete(resourceGroupName, l2NetworkName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 l2NetworkName = Utils.getValueFromIdByName(id, "l2Networks"); + String l2NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l2Networks"); if (l2NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l2Networks'.", id))); } - this.delete(resourceGroupName, l2NetworkName, context); + return this.delete(resourceGroupName, l2NetworkName, context); } private L2NetworksClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworkImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworkImpl.java index d7ed7f1aaee8f..fc51b01946496 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworkImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworkImpl.java @@ -209,8 +209,8 @@ public L3Network apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.l3NetworkName = Utils.getValueFromIdByName(innerObject.id(), "l3Networks"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.l3NetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "l3Networks"); } public L3Network refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksClientImpl.java index ca0c3b525babc..eca2dbaa27ad6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.L3NetworksClient; import com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.L3NetworkList; import com.azure.resourcemanager.networkcloud.models.L3NetworkPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in L3NetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in L3NetworksClient. + */ public final class L3NetworksClientImpl implements L3NetworksClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final L3NetworksService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of L3NetworksClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ L3NetworksClientImpl(NetworkCloudImpl client) { @@ -140,13 +147,13 @@ Mono> listByResourceGroupNext( /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 3 (L3) networks in the provided subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -169,15 +176,15 @@ private Mono> listSinglePageAsync() { /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 3 (L3) networks in the provided subscription along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -200,13 +207,13 @@ private Mono> listSinglePageAsync(Context context) /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedFlux}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -216,15 +223,15 @@ private PagedFlux listAsync() { /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedFlux}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -234,13 +241,13 @@ private PagedFlux listAsync(Context context) { /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -249,15 +256,15 @@ public PagedIterable list() { /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -266,15 +273,15 @@ public PagedIterable list(Context context) { /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 3 (L3) networks in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -301,16 +308,16 @@ private Mono> listByResourceGroupSinglePageAsync(S /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of layer 3 (L3) networks in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -338,15 +345,15 @@ private Mono> listByResourceGroupSinglePageAsync(S /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -356,16 +363,16 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedFlux}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -375,15 +382,15 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -392,16 +399,16 @@ public PagedIterable listByResourceGroup(String resourceGroupNam /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -410,16 +417,16 @@ public PagedIterable listByResourceGroup(String resourceGroupNam /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided layer 3 (L3) network along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -448,9 +455,9 @@ private Mono> getByResourceGroupWithResponseAsync(Strin /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. @@ -458,7 +465,7 @@ private Mono> getByResourceGroupWithResponseAsync(Strin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided layer 3 (L3) network along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -486,9 +493,9 @@ private Mono> getByResourceGroupWithResponseAsync(Strin /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,9 +511,9 @@ private Mono getByResourceGroupAsync(String resourceGroupName, S /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. @@ -523,9 +530,9 @@ public Response getByResourceGroupWithResponse(String resourceGr /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -540,9 +547,9 @@ public L3NetworkInner getByResourceGroup(String resourceGroupName, String l3Netw /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -550,7 +557,7 @@ public L3NetworkInner getByResourceGroup(String resourceGroupName, String l3Netw * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -586,9 +593,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -597,7 +604,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -631,9 +638,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -641,7 +648,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of l3Network represents a network that utilizes a single isolation - * domain set up for layer-3 resources. + * domain set up for layer-3 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, L3NetworkInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -654,9 +661,9 @@ private PollerFlux, L3NetworkInner> beginCreateOrUpda /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -665,7 +672,7 @@ private PollerFlux, L3NetworkInner> beginCreateOrUpda * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of l3Network represents a network that utilizes a single isolation - * domain set up for layer-3 resources. + * domain set up for layer-3 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, L3NetworkInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -679,9 +686,9 @@ private PollerFlux, L3NetworkInner> beginCreateOrUpda /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -689,7 +696,7 @@ private PollerFlux, L3NetworkInner> beginCreateOrUpda * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l3Network represents a network that utilizes a single isolation - * domain set up for layer-3 resources. + * domain set up for layer-3 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, L3NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -699,9 +706,9 @@ public SyncPoller, L3NetworkInner> beginCreateOrUpdat /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -710,7 +717,7 @@ public SyncPoller, L3NetworkInner> beginCreateOrUpdat * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of l3Network represents a network that utilizes a single isolation - * domain set up for layer-3 resources. + * domain set up for layer-3 resources. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, L3NetworkInner> beginCreateOrUpdate(String resourceGroupName, @@ -721,9 +728,9 @@ public SyncPoller, L3NetworkInner> beginCreateOrUpdat /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -731,7 +738,7 @@ public SyncPoller, L3NetworkInner> beginCreateOrUpdat * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String l3NetworkName, @@ -742,9 +749,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -753,7 +760,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String l3NetworkName, @@ -764,9 +771,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -783,9 +790,9 @@ public L3NetworkInner createOrUpdate(String resourceGroupName, String l3NetworkN /** * Create or update the layer 3 (L3) network. - * - *

Create a new layer 3 (L3) network or update the properties of the existing network. - * + * + * Create a new layer 3 (L3) network or update the properties of the existing network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkParameters The request body. @@ -803,15 +810,16 @@ public L3NetworkInner createOrUpdate(String resourceGroupName, String l3NetworkN /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String l3NetworkName) { @@ -839,16 +847,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String l3NetworkName, @@ -876,155 +885,161 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String l3NetworkName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String l3NetworkName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, l3NetworkName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String l3NetworkName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String l3NetworkName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, l3NetworkName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String l3NetworkName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String l3NetworkName) { return this.beginDeleteAsync(resourceGroupName, l3NetworkName).getSyncPoller(); } /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String l3NetworkName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String l3NetworkName, Context context) { return this.beginDeleteAsync(resourceGroupName, l3NetworkName, context).getSyncPoller(); } /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String l3NetworkName) { + private Mono deleteAsync(String resourceGroupName, String l3NetworkName) { return beginDeleteAsync(resourceGroupName, l3NetworkName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String l3NetworkName, Context context) { + private Mono deleteAsync(String resourceGroupName, String l3NetworkName, + Context context) { return beginDeleteAsync(resourceGroupName, l3NetworkName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String l3NetworkName) { - deleteAsync(resourceGroupName, l3NetworkName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String l3NetworkName) { + return deleteAsync(resourceGroupName, l3NetworkName).block(); } /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String l3NetworkName, Context context) { - deleteAsync(resourceGroupName, l3NetworkName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String l3NetworkName, Context context) { + return deleteAsync(resourceGroupName, l3NetworkName, context).block(); } /** * Patch the layer 3 (L3) network. - * - *

Update tags associated with the provided layer 3 (L3) network. - * + * + * Update tags associated with the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkUpdateParameters The request body. @@ -1032,7 +1047,7 @@ public void delete(String resourceGroupName, String l3NetworkName, Context conte * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String l3NetworkName, @@ -1065,9 +1080,9 @@ private Mono> updateWithResponseAsync(String resourceGr /** * Patch the layer 3 (L3) network. - * - *

Update tags associated with the provided layer 3 (L3) network. - * + * + * Update tags associated with the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkUpdateParameters The request body. @@ -1076,7 +1091,7 @@ private Mono> updateWithResponseAsync(String resourceGr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources along - * with {@link Response} on successful completion of {@link Mono}. + * with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String l3NetworkName, @@ -1107,16 +1122,16 @@ private Mono> updateWithResponseAsync(String resourceGr /** * Patch the layer 3 (L3) network. - * - *

Update tags associated with the provided layer 3 (L3) network. - * + * + * Update tags associated with the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String l3NetworkName) { @@ -1127,9 +1142,9 @@ private Mono updateAsync(String resourceGroupName, String l3Netw /** * Patch the layer 3 (L3) network. - * - *

Update tags associated with the provided layer 3 (L3) network. - * + * + * Update tags associated with the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param l3NetworkUpdateParameters The request body. @@ -1138,7 +1153,7 @@ private Mono updateAsync(String resourceGroupName, String l3Netw * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3Network represents a network that utilizes a single isolation domain set up for layer-3 resources along - * with {@link Response}. + * with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String l3NetworkName, @@ -1148,9 +1163,9 @@ public Response updateWithResponse(String resourceGroupName, Str /** * Patch the layer 3 (L3) network. - * - *

Update tags associated with the provided layer 3 (L3) network. - * + * + * Update tags associated with the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1166,14 +1181,13 @@ public L3NetworkInner update(String resourceGroupName, String l3NetworkName) { /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3NetworkList represents a list of L3 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1195,15 +1209,14 @@ private Mono> listBySubscriptionNextSinglePageAsyn /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3NetworkList represents a list of L3 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -1224,14 +1237,13 @@ private Mono> listBySubscriptionNextSinglePageAsyn /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3NetworkList represents a list of L3 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1253,15 +1265,14 @@ private Mono> listByResourceGroupNextSinglePageAsy /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return l3NetworkList represents a list of L3 networks along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksImpl.java index 02f347a2d7ccd..fba96d7d4de08 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/L3NetworksImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.L3NetworksClient; import com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.L3Network; import com.azure.resourcemanager.networkcloud.models.L3Networks; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class L3NetworksImpl implements L3Networks { private static final ClientLogger LOGGER = new ClientLogger(L3NetworksImpl.class); @@ -29,22 +31,22 @@ public L3NetworksImpl(L3NetworksClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new L3NetworkImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String l3NetworkName, @@ -68,21 +70,31 @@ public L3Network getByResourceGroup(String resourceGroupName, String l3NetworkNa } } - public void deleteByResourceGroup(String resourceGroupName, String l3NetworkName) { - this.serviceClient().delete(resourceGroupName, l3NetworkName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String l3NetworkName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, l3NetworkName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String l3NetworkName, Context context) { - this.serviceClient().delete(resourceGroupName, l3NetworkName, context); + public OperationStatusResult delete(String resourceGroupName, String l3NetworkName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, l3NetworkName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public L3Network 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 l3NetworkName = Utils.getValueFromIdByName(id, "l3Networks"); + String l3NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l3Networks"); if (l3NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l3Networks'.", id))); @@ -91,12 +103,12 @@ public L3Network getById(String id) { } public Response 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 l3NetworkName = Utils.getValueFromIdByName(id, "l3Networks"); + String l3NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l3Networks"); if (l3NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l3Networks'.", id))); @@ -104,32 +116,32 @@ public Response getByIdWithResponse(String id, Context context) { return this.getByResourceGroupWithResponse(resourceGroupName, l3NetworkName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 l3NetworkName = Utils.getValueFromIdByName(id, "l3Networks"); + String l3NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l3Networks"); if (l3NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l3Networks'.", id))); } - this.delete(resourceGroupName, l3NetworkName, Context.NONE); + return this.delete(resourceGroupName, l3NetworkName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 l3NetworkName = Utils.getValueFromIdByName(id, "l3Networks"); + String l3NetworkName = ResourceManagerUtils.getValueFromIdByName(id, "l3Networks"); if (l3NetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'l3Networks'.", id))); } - this.delete(resourceGroupName, l3NetworkName, context); + return this.delete(resourceGroupName, l3NetworkName, context); } private L3NetworksClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsClientImpl.java index 7e2484f9e1f1a..f63353000cd3e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsClientImpl.java @@ -34,23 +34,30 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.MetricsConfigurationsClient; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationList; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfigurationPatchParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in MetricsConfigurationsClient. */ +/** + * An instance of this class provides access to all the operations defined in MetricsConfigurationsClient. + */ public final class MetricsConfigurationsClientImpl implements MetricsConfigurationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final MetricsConfigurationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of MetricsConfigurationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ MetricsConfigurationsClientImpl(NetworkCloudImpl client) { @@ -128,16 +135,16 @@ Mono> listByClusterNext( /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of metrics configurations for the provided cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync(String resourceGroupName, @@ -168,9 +175,9 @@ private Mono> listByClusterSingl /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -178,7 +185,7 @@ private Mono> listByClusterSingl * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of metrics configurations for the provided cluster along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterSinglePageAsync(String resourceGroupName, @@ -209,9 +216,9 @@ private Mono> listByClusterSingl /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -228,9 +235,9 @@ private PagedFlux listByClusterAsync(String re /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -248,16 +255,16 @@ private PagedFlux listByClusterAsync(String re /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of metrics configurations for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of metrics configurations for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName) { @@ -266,17 +273,17 @@ public PagedIterable listByCluster(String reso /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of metrics configurations for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of metrics configurations for the provided cluster as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByCluster(String resourceGroupName, String clusterName, @@ -286,9 +293,9 @@ public PagedIterable listByCluster(String reso /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -296,7 +303,7 @@ public PagedIterable listByCluster(String reso * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metrics configuration of the provided cluster along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -328,9 +335,9 @@ private Mono> getWithResponseAsync(St /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -339,7 +346,7 @@ private Mono> getWithResponseAsync(St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metrics configuration of the provided cluster along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String resourceGroupName, @@ -371,9 +378,9 @@ private Mono> getWithResponseAsync(St /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -391,9 +398,9 @@ private Mono getAsync(String resourceGroupName /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -411,9 +418,9 @@ public Response getWithResponse(String resourc /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -430,9 +437,9 @@ public ClusterMetricsConfigurationInner get(String resourceGroupName, String clu /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -441,7 +448,7 @@ public ClusterMetricsConfigurationInner get(String resourceGroupName, String clu * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * along with {@link Response} on successful completion of {@link Mono}. + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -482,9 +489,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -494,7 +501,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * along with {@link Response} on successful completion of {@link Mono}. + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -534,9 +541,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -545,7 +552,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterMetricsConfigurationInner> @@ -560,9 +567,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -572,7 +579,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterMetricsConfigurationInner> @@ -588,9 +595,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -599,7 +606,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterMetricsConfigurationInner> @@ -613,9 +620,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -625,7 +632,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterMetricsConfigurationInner> @@ -639,9 +646,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -650,7 +657,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, @@ -661,9 +668,9 @@ private Mono createOrUpdateAsync(String resour /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -673,7 +680,7 @@ private Mono createOrUpdateAsync(String resour * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String clusterName, @@ -685,9 +692,9 @@ private Mono createOrUpdateAsync(String resour /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -706,9 +713,9 @@ public ClusterMetricsConfigurationInner createOrUpdate(String resourceGroupName, /** * Create or update metrics configuration of the cluster. - * - *

Create new or update the existing metrics configuration of the provided cluster. - * + * + * Create new or update the existing metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -729,16 +736,17 @@ public ClusterMetricsConfigurationInner createOrUpdate(String resourceGroupName, /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, @@ -770,9 +778,9 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -780,7 +788,8 @@ private Mono>> deleteWithResponseAsync(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, @@ -812,31 +821,32 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String metricsConfigurationName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String clusterName, String metricsConfigurationName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, metricsConfigurationName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -844,42 +854,42 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String metricsConfigurationName, Context context) { + private PollerFlux, OperationStatusResultInner> beginDeleteAsync( + String resourceGroupName, String clusterName, String metricsConfigurationName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, metricsConfigurationName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String metricsConfigurationName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName, String metricsConfigurationName) { return this.beginDeleteAsync(resourceGroupName, clusterName, metricsConfigurationName).getSyncPoller(); } /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -887,38 +897,39 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, - String metricsConfigurationName, Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String clusterName, String metricsConfigurationName, Context context) { return this.beginDeleteAsync(resourceGroupName, clusterName, metricsConfigurationName, context).getSyncPoller(); } /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String metricsConfigurationName) { + private Mono deleteAsync(String resourceGroupName, String clusterName, + String metricsConfigurationName) { return beginDeleteAsync(resourceGroupName, clusterName, metricsConfigurationName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -926,37 +937,39 @@ private Mono deleteAsync(String resourceGroupName, String clusterName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String clusterName, String metricsConfigurationName, - Context context) { + private Mono deleteAsync(String resourceGroupName, String clusterName, + String metricsConfigurationName, Context context) { return beginDeleteAsync(resourceGroupName, clusterName, metricsConfigurationName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String metricsConfigurationName) { - deleteAsync(resourceGroupName, clusterName, metricsConfigurationName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName, + String metricsConfigurationName) { + return deleteAsync(resourceGroupName, clusterName, metricsConfigurationName).block(); } /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -964,18 +977,20 @@ public void delete(String resourceGroupName, String clusterName, String metricsC * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String metricsConfigurationName, Context context) { - deleteAsync(resourceGroupName, clusterName, metricsConfigurationName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String clusterName, + String metricsConfigurationName, Context context) { + return deleteAsync(resourceGroupName, clusterName, metricsConfigurationName, context).block(); } /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -984,7 +999,7 @@ public void delete(String resourceGroupName, String clusterName, String metricsC * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * along with {@link Response} on successful completion of {@link Mono}. + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -1022,10 +1037,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1035,7 +1050,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * along with {@link Response} on successful completion of {@link Mono}. + * along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, @@ -1072,10 +1087,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1084,7 +1099,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterMetricsConfigurationInner> beginUpdateAsync( @@ -1099,10 +1114,10 @@ private PollerFlux, ClusterMetricsC /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1110,7 +1125,7 @@ private PollerFlux, ClusterMetricsC * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterMetricsConfigurationInner> @@ -1125,10 +1140,10 @@ private PollerFlux, ClusterMetricsC /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1138,7 +1153,7 @@ private PollerFlux, ClusterMetricsC * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterMetricsConfigurationInner> beginUpdateAsync( @@ -1154,10 +1169,10 @@ private PollerFlux, ClusterMetricsC /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1165,7 +1180,7 @@ private PollerFlux, ClusterMetricsC * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterMetricsConfigurationInner> @@ -1179,10 +1194,10 @@ private PollerFlux, ClusterMetricsC /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1192,7 +1207,7 @@ private PollerFlux, ClusterMetricsC * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of clusterMetricsConfiguration represents the metrics configuration of - * an on-premises Network Cloud cluster. + * an on-premises Network Cloud cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterMetricsConfigurationInner> beginUpdate( @@ -1206,10 +1221,10 @@ public SyncPoller, ClusterMetricsCo /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1218,7 +1233,7 @@ public SyncPoller, ClusterMetricsCo * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, @@ -1230,10 +1245,10 @@ private Mono updateAsync(String resourceGroupN /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1241,7 +1256,7 @@ private Mono updateAsync(String resourceGroupN * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, @@ -1253,10 +1268,10 @@ private Mono updateAsync(String resourceGroupN /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1266,7 +1281,7 @@ private Mono updateAsync(String resourceGroupN * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfiguration represents the metrics configuration of an on-premises Network Cloud cluster - * on successful completion of {@link Mono}. + * on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String clusterName, @@ -1278,10 +1293,10 @@ private Mono updateAsync(String resourceGroupN /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1300,10 +1315,10 @@ public ClusterMetricsConfigurationInner update(String resourceGroupName, String /** * Patch metrics configuration of the cluster. - * - *

Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. + * + * Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -1324,14 +1339,13 @@ public ClusterMetricsConfigurationInner update(String resourceGroupName, String /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfigurationList represents a list of metrics configuration of the cluster along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterNextSinglePageAsync(String nextLink) { @@ -1352,15 +1366,14 @@ private Mono> listByClusterNextS /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return clusterMetricsConfigurationList represents a list of metrics configuration of the cluster along with - * {@link PagedResponse} on successful completion of {@link Mono}. + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByClusterNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsImpl.java index 36612039e27bf..899776eb25ed2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/MetricsConfigurationsImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.MetricsConfigurationsClient; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationInner; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfiguration; import com.azure.resourcemanager.networkcloud.models.MetricsConfigurations; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; public final class MetricsConfigurationsImpl implements MetricsConfigurations { private static final ClientLogger LOGGER = new ClientLogger(MetricsConfigurationsImpl.class); @@ -30,14 +32,16 @@ public MetricsConfigurationsImpl(MetricsConfigurationsClient innerClient, public PagedIterable listByCluster(String resourceGroupName, String clusterName) { PagedIterable inner = this.serviceClient().listByCluster(resourceGroupName, clusterName); - return Utils.mapPage(inner, inner1 -> new ClusterMetricsConfigurationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ClusterMetricsConfigurationImpl(inner1, this.manager())); } public PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context) { PagedIterable inner = this.serviceClient().listByCluster(resourceGroupName, clusterName, context); - return Utils.mapPage(inner, inner1 -> new ClusterMetricsConfigurationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ClusterMetricsConfigurationImpl(inner1, this.manager())); } public Response getWithResponse(String resourceGroupName, String clusterName, @@ -63,26 +67,39 @@ public ClusterMetricsConfiguration get(String resourceGroupName, String clusterN } } - public void delete(String resourceGroupName, String clusterName, String metricsConfigurationName) { - this.serviceClient().delete(resourceGroupName, clusterName, metricsConfigurationName); + public OperationStatusResult delete(String resourceGroupName, String clusterName, String metricsConfigurationName) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, clusterName, metricsConfigurationName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String clusterName, String metricsConfigurationName, Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, metricsConfigurationName, context); + public OperationStatusResult delete(String resourceGroupName, String clusterName, String metricsConfigurationName, + Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, clusterName, metricsConfigurationName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public ClusterMetricsConfiguration 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 metricsConfigurationName = Utils.getValueFromIdByName(id, "metricsConfigurations"); + String metricsConfigurationName = ResourceManagerUtils.getValueFromIdByName(id, "metricsConfigurations"); if (metricsConfigurationName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'metricsConfigurations'.", id))); @@ -91,17 +108,17 @@ public ClusterMetricsConfiguration getById(String id) { } public Response 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 metricsConfigurationName = Utils.getValueFromIdByName(id, "metricsConfigurations"); + String metricsConfigurationName = ResourceManagerUtils.getValueFromIdByName(id, "metricsConfigurations"); if (metricsConfigurationName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'metricsConfigurations'.", id))); @@ -109,42 +126,42 @@ public Response getByIdWithResponse(String id, Cont return this.getWithResponse(resourceGroupName, clusterName, metricsConfigurationName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 metricsConfigurationName = Utils.getValueFromIdByName(id, "metricsConfigurations"); + String metricsConfigurationName = ResourceManagerUtils.getValueFromIdByName(id, "metricsConfigurations"); if (metricsConfigurationName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'metricsConfigurations'.", id))); } - this.delete(resourceGroupName, clusterName, metricsConfigurationName, Context.NONE); + return this.delete(resourceGroupName, clusterName, metricsConfigurationName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 metricsConfigurationName = Utils.getValueFromIdByName(id, "metricsConfigurations"); + String metricsConfigurationName = ResourceManagerUtils.getValueFromIdByName(id, "metricsConfigurations"); if (metricsConfigurationName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'metricsConfigurations'.", id))); } - this.delete(resourceGroupName, clusterName, metricsConfigurationName, context); + return this.delete(resourceGroupName, clusterName, metricsConfigurationName, context); } private MetricsConfigurationsClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudBuilder.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudBuilder.java index b7b0597569bee..f63b25a03e448 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudBuilder.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudBuilder.java @@ -14,7 +14,9 @@ import com.azure.core.util.serializer.SerializerAdapter; import java.time.Duration; -/** A builder for creating a new instance of the NetworkCloudImpl type. */ +/** + * A builder for creating a new instance of the NetworkCloudImpl type. + */ @ServiceClientBuilder(serviceClients = { NetworkCloudImpl.class }) public final class NetworkCloudBuilder { /* @@ -24,7 +26,7 @@ public final class NetworkCloudBuilder { /** * Sets The ID of the target subscription. The value must be an UUID. - * + * * @param subscriptionId the subscriptionId value. * @return the NetworkCloudBuilder. */ @@ -40,7 +42,7 @@ public NetworkCloudBuilder subscriptionId(String subscriptionId) { /** * Sets server parameter. - * + * * @param endpoint the endpoint value. * @return the NetworkCloudBuilder. */ @@ -56,7 +58,7 @@ public NetworkCloudBuilder endpoint(String endpoint) { /** * Sets The environment to connect to. - * + * * @param environment the environment value. * @return the NetworkCloudBuilder. */ @@ -72,7 +74,7 @@ public NetworkCloudBuilder environment(AzureEnvironment environment) { /** * Sets The HTTP pipeline to send requests through. - * + * * @param pipeline the pipeline value. * @return the NetworkCloudBuilder. */ @@ -88,7 +90,7 @@ public NetworkCloudBuilder pipeline(HttpPipeline pipeline) { /** * Sets The default poll interval for long-running operation. - * + * * @param defaultPollInterval the defaultPollInterval value. * @return the NetworkCloudBuilder. */ @@ -104,7 +106,7 @@ public NetworkCloudBuilder defaultPollInterval(Duration defaultPollInterval) { /** * Sets The serializer to serialize an object into a string. - * + * * @param serializerAdapter the serializerAdapter value. * @return the NetworkCloudBuilder. */ @@ -115,7 +117,7 @@ public NetworkCloudBuilder serializerAdapter(SerializerAdapter serializerAdapter /** * Builds an instance of NetworkCloudImpl with the provided parameters. - * + * * @return an instance of NetworkCloudImpl. */ public NetworkCloudImpl buildClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java index d3773b89ed982..a84712d0664c5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/NetworkCloudImpl.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.networkcloud.implementation; import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpResponse; @@ -30,6 +31,7 @@ import com.azure.resourcemanager.networkcloud.fluent.ClusterManagersClient; import com.azure.resourcemanager.networkcloud.fluent.ClustersClient; import com.azure.resourcemanager.networkcloud.fluent.ConsolesClient; +import com.azure.resourcemanager.networkcloud.fluent.KubernetesClusterFeaturesClient; import com.azure.resourcemanager.networkcloud.fluent.KubernetesClustersClient; import com.azure.resourcemanager.networkcloud.fluent.L2NetworksClient; import com.azure.resourcemanager.networkcloud.fluent.L3NetworksClient; @@ -51,303 +53,369 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** Initializes a new instance of the NetworkCloudImpl type. */ +/** + * Initializes a new instance of the NetworkCloudImpl type. + */ @ServiceClient(builder = NetworkCloudBuilder.class) public final class NetworkCloudImpl implements NetworkCloud { - /** The ID of the target subscription. The value must be an UUID. */ + /** + * The ID of the target subscription. The value must be an UUID. + */ private final String subscriptionId; /** * Gets The ID of the target subscription. The value must be an UUID. - * + * * @return the subscriptionId value. */ public String getSubscriptionId() { return this.subscriptionId; } - /** server parameter. */ + /** + * server parameter. + */ private final String endpoint; /** * Gets server parameter. - * + * * @return the endpoint value. */ public String getEndpoint() { return this.endpoint; } - /** Api Version. */ + /** + * Api Version. + */ private final String apiVersion; /** * Gets Api Version. - * + * * @return the apiVersion value. */ public String getApiVersion() { return this.apiVersion; } - /** The HTTP pipeline to send requests through. */ + /** + * The HTTP pipeline to send requests through. + */ private final HttpPipeline httpPipeline; /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { return this.httpPipeline; } - /** The serializer to serialize an object into a string. */ + /** + * The serializer to serialize an object into a string. + */ private final SerializerAdapter serializerAdapter; /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } - /** The default poll interval for long-running operation. */ + /** + * The default poll interval for long-running operation. + */ private final Duration defaultPollInterval; /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } - /** The OperationsClient object to access its operations. */ + /** + * The OperationsClient object to access its operations. + */ private final OperationsClient operations; /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ public OperationsClient getOperations() { return this.operations; } - /** The BareMetalMachinesClient object to access its operations. */ + /** + * The BareMetalMachinesClient object to access its operations. + */ private final BareMetalMachinesClient bareMetalMachines; /** * Gets the BareMetalMachinesClient object to access its operations. - * + * * @return the BareMetalMachinesClient object. */ public BareMetalMachinesClient getBareMetalMachines() { return this.bareMetalMachines; } - /** The CloudServicesNetworksClient object to access its operations. */ + /** + * The CloudServicesNetworksClient object to access its operations. + */ private final CloudServicesNetworksClient cloudServicesNetworks; /** * Gets the CloudServicesNetworksClient object to access its operations. - * + * * @return the CloudServicesNetworksClient object. */ public CloudServicesNetworksClient getCloudServicesNetworks() { return this.cloudServicesNetworks; } - /** The ClusterManagersClient object to access its operations. */ + /** + * The ClusterManagersClient object to access its operations. + */ private final ClusterManagersClient clusterManagers; /** * Gets the ClusterManagersClient object to access its operations. - * + * * @return the ClusterManagersClient object. */ public ClusterManagersClient getClusterManagers() { return this.clusterManagers; } - /** The ClustersClient object to access its operations. */ + /** + * The ClustersClient object to access its operations. + */ private final ClustersClient clusters; /** * Gets the ClustersClient object to access its operations. - * + * * @return the ClustersClient object. */ public ClustersClient getClusters() { return this.clusters; } - /** The KubernetesClustersClient object to access its operations. */ + /** + * The KubernetesClustersClient object to access its operations. + */ private final KubernetesClustersClient kubernetesClusters; /** * Gets the KubernetesClustersClient object to access its operations. - * + * * @return the KubernetesClustersClient object. */ public KubernetesClustersClient getKubernetesClusters() { return this.kubernetesClusters; } - /** The L2NetworksClient object to access its operations. */ + /** + * The L2NetworksClient object to access its operations. + */ private final L2NetworksClient l2Networks; /** * Gets the L2NetworksClient object to access its operations. - * + * * @return the L2NetworksClient object. */ public L2NetworksClient getL2Networks() { return this.l2Networks; } - /** The L3NetworksClient object to access its operations. */ + /** + * The L3NetworksClient object to access its operations. + */ private final L3NetworksClient l3Networks; /** * Gets the L3NetworksClient object to access its operations. - * + * * @return the L3NetworksClient object. */ public L3NetworksClient getL3Networks() { return this.l3Networks; } - /** The RackSkusClient object to access its operations. */ + /** + * The RackSkusClient object to access its operations. + */ private final RackSkusClient rackSkus; /** * Gets the RackSkusClient object to access its operations. - * + * * @return the RackSkusClient object. */ public RackSkusClient getRackSkus() { return this.rackSkus; } - /** The RacksClient object to access its operations. */ + /** + * The RacksClient object to access its operations. + */ private final RacksClient racks; /** * Gets the RacksClient object to access its operations. - * + * * @return the RacksClient object. */ public RacksClient getRacks() { return this.racks; } - /** The StorageAppliancesClient object to access its operations. */ + /** + * The StorageAppliancesClient object to access its operations. + */ private final StorageAppliancesClient storageAppliances; /** * Gets the StorageAppliancesClient object to access its operations. - * + * * @return the StorageAppliancesClient object. */ public StorageAppliancesClient getStorageAppliances() { return this.storageAppliances; } - /** The TrunkedNetworksClient object to access its operations. */ + /** + * The TrunkedNetworksClient object to access its operations. + */ private final TrunkedNetworksClient trunkedNetworks; /** * Gets the TrunkedNetworksClient object to access its operations. - * + * * @return the TrunkedNetworksClient object. */ public TrunkedNetworksClient getTrunkedNetworks() { return this.trunkedNetworks; } - /** The VirtualMachinesClient object to access its operations. */ + /** + * The VirtualMachinesClient object to access its operations. + */ private final VirtualMachinesClient virtualMachines; /** * Gets the VirtualMachinesClient object to access its operations. - * + * * @return the VirtualMachinesClient object. */ public VirtualMachinesClient getVirtualMachines() { return this.virtualMachines; } - /** The VolumesClient object to access its operations. */ + /** + * The VolumesClient object to access its operations. + */ private final VolumesClient volumes; /** * Gets the VolumesClient object to access its operations. - * + * * @return the VolumesClient object. */ public VolumesClient getVolumes() { return this.volumes; } - /** The BareMetalMachineKeySetsClient object to access its operations. */ + /** + * The BareMetalMachineKeySetsClient object to access its operations. + */ private final BareMetalMachineKeySetsClient bareMetalMachineKeySets; /** * Gets the BareMetalMachineKeySetsClient object to access its operations. - * + * * @return the BareMetalMachineKeySetsClient object. */ public BareMetalMachineKeySetsClient getBareMetalMachineKeySets() { return this.bareMetalMachineKeySets; } - /** The BmcKeySetsClient object to access its operations. */ + /** + * The BmcKeySetsClient object to access its operations. + */ private final BmcKeySetsClient bmcKeySets; /** * Gets the BmcKeySetsClient object to access its operations. - * + * * @return the BmcKeySetsClient object. */ public BmcKeySetsClient getBmcKeySets() { return this.bmcKeySets; } - /** The MetricsConfigurationsClient object to access its operations. */ + /** + * The MetricsConfigurationsClient object to access its operations. + */ private final MetricsConfigurationsClient metricsConfigurations; /** * Gets the MetricsConfigurationsClient object to access its operations. - * + * * @return the MetricsConfigurationsClient object. */ public MetricsConfigurationsClient getMetricsConfigurations() { return this.metricsConfigurations; } - /** The AgentPoolsClient object to access its operations. */ + /** + * The AgentPoolsClient object to access its operations. + */ private final AgentPoolsClient agentPools; /** * Gets the AgentPoolsClient object to access its operations. - * + * * @return the AgentPoolsClient object. */ public AgentPoolsClient getAgentPools() { return this.agentPools; } - /** The ConsolesClient object to access its operations. */ + /** + * The KubernetesClusterFeaturesClient object to access its operations. + */ + private final KubernetesClusterFeaturesClient kubernetesClusterFeatures; + + /** + * Gets the KubernetesClusterFeaturesClient object to access its operations. + * + * @return the KubernetesClusterFeaturesClient object. + */ + public KubernetesClusterFeaturesClient getKubernetesClusterFeatures() { + return this.kubernetesClusterFeatures; + } + + /** + * The ConsolesClient object to access its operations. + */ private final ConsolesClient consoles; /** * Gets the ConsolesClient object to access its operations. - * + * * @return the ConsolesClient object. */ public ConsolesClient getConsoles() { @@ -356,7 +424,7 @@ public ConsolesClient getConsoles() { /** * Initializes an instance of NetworkCloud client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. @@ -371,7 +439,7 @@ public ConsolesClient getConsoles() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-07-01"; + this.apiVersion = "2024-06-01-preview"; this.operations = new OperationsClientImpl(this); this.bareMetalMachines = new BareMetalMachinesClientImpl(this); this.cloudServicesNetworks = new CloudServicesNetworksClientImpl(this); @@ -390,12 +458,13 @@ public ConsolesClient getConsoles() { this.bmcKeySets = new BmcKeySetsClientImpl(this); this.metricsConfigurations = new MetricsConfigurationsClientImpl(this); this.agentPools = new AgentPoolsClientImpl(this); + this.kubernetesClusterFeatures = new KubernetesClusterFeaturesClientImpl(this); this.consoles = new ConsolesClientImpl(this); } /** * Gets default client context. - * + * * @return the default client context. */ public Context getContext() { @@ -404,7 +473,7 @@ public Context getContext() { /** * Merges default client context with provided context. - * + * * @param context the context to be merged with default client context. * @return the merged context. */ @@ -414,7 +483,7 @@ public Context mergeContext(Context context) { /** * Gets long running operation result. - * + * * @param activationResponse the response of activation operation. * @param httpPipeline the http pipeline. * @param pollResultType type of poll result. @@ -432,7 +501,7 @@ public PollerFlux, U> getLroResult(Mono type of poll result. * @param type of final result. @@ -495,7 +564,7 @@ public int getStatusCode() { } public String getHeaderValue(String s) { - return httpHeaders.getValue(s); + return httpHeaders.getValue(HttpHeaderName.fromString(s)); } public HttpHeaders getHeaders() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationStatusResultImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationStatusResultImpl.java index fd4b8c79b9c8d..d04aee7078896 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationStatusResultImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationStatusResultImpl.java @@ -23,47 +23,63 @@ public final class OperationStatusResultImpl implements OperationStatusResult { this.serviceManager = serviceManager; } - public String id() { - return this.innerModel().id(); + public OffsetDateTime endTime() { + return this.innerModel().endTime(); } - public String resourceId() { - return this.innerModel().resourceId(); + public ManagementError error() { + return this.innerModel().error(); + } + + public String id() { + return this.innerModel().id(); } public String name() { return this.innerModel().name(); } - public String status() { - return this.innerModel().status(); + public List operations() { + List inner = this.innerModel().operations(); + if (inner != null) { + return Collections.unmodifiableList(inner.stream() + .map(inner1 -> new OperationStatusResultImpl(inner1, this.manager())) + .collect(Collectors.toList())); + } else { + return Collections.emptyList(); + } } public Float percentComplete() { return this.innerModel().percentComplete(); } + public String resourceId() { + return this.innerModel().resourceId(); + } + public OffsetDateTime startTime() { return this.innerModel().startTime(); } - public OffsetDateTime endTime() { - return this.innerModel().endTime(); + public String status() { + return this.innerModel().status(); } - public List operations() { - List inner = this.innerModel().operations(); - if (inner != null) { - return Collections.unmodifiableList(inner.stream() - .map(inner1 -> new OperationStatusResultImpl(inner1, this.manager())) - .collect(Collectors.toList())); - } else { - return Collections.emptyList(); - } + public String exitCode() { + return this.innerModel().exitCode(); } - public ManagementError error() { - return this.innerModel().error(); + public String outputHead() { + return this.innerModel().outputHead(); + } + + public String resultRef() { + return this.innerModel().resultRef(); + } + + public String resultUrl() { + return this.innerModel().resultUrl(); } public OperationStatusResultInner innerModel() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsClientImpl.java index c07d81436ec42..e72e4bd1cf2c3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsClientImpl.java @@ -30,17 +30,23 @@ import com.azure.resourcemanager.networkcloud.models.OperationListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public final class OperationsClientImpl implements OperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final OperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of OperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ OperationsClientImpl(NetworkCloudImpl client) { @@ -73,14 +79,13 @@ Mono> listNext(@PathParam(value = "nextLink", enco /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of all available resource provider operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -99,16 +104,15 @@ private Mono> listSinglePageAsync() { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of all available resource provider operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -125,10 +129,9 @@ private Mono> listSinglePageAsync(Context context) /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of all available resource provider operations as paginated response with {@link PagedFlux}. @@ -140,10 +143,9 @@ private PagedFlux listAsync() { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -158,10 +160,9 @@ private PagedFlux listAsync(Context context) { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of all available resource provider operations as paginated response with {@link PagedIterable}. @@ -173,10 +174,9 @@ public PagedIterable list() { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -190,14 +190,13 @@ public PagedIterable list(Context context) { /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -217,15 +216,14 @@ private Mono> listNextSinglePageAsync(String nextL /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsImpl.java index 7a038524f3371..6f7ea399bdd20 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/OperationsImpl.java @@ -27,12 +27,12 @@ public OperationsImpl(OperationsClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); } private OperationsClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackImpl.java index 561155983c02d..f12e05c649d7a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackImpl.java @@ -159,8 +159,8 @@ public Rack apply(Context context) { RackImpl(RackInner innerObject, com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.rackName = Utils.getValueFromIdByName(innerObject.id(), "racks"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.rackName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "racks"); } public Rack refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusClientImpl.java index 96904e2f6ef38..bfccd4712f904 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusClientImpl.java @@ -30,17 +30,23 @@ import com.azure.resourcemanager.networkcloud.models.RackSkuList; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in RackSkusClient. */ +/** + * An instance of this class provides access to all the operations defined in RackSkusClient. + */ public final class RackSkusClientImpl implements RackSkusClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final RackSkusService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of RackSkusClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ RackSkusClientImpl(NetworkCloudImpl client) { @@ -82,13 +88,13 @@ Mono> listBySubscriptionNext( /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of rack SKUs in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -111,15 +117,15 @@ private Mono> listSinglePageAsync() { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of rack SKUs in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -142,9 +148,9 @@ private Mono> listSinglePageAsync(Context context) { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of rack SKUs in the provided subscription as paginated response with {@link PagedFlux}. @@ -157,9 +163,9 @@ private PagedFlux listAsync() { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -174,9 +180,9 @@ private PagedFlux listAsync(Context context) { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of rack SKUs in the provided subscription as paginated response with {@link PagedIterable}. @@ -188,9 +194,9 @@ public PagedIterable list() { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -204,15 +210,15 @@ public PagedIterable list(Context context) { /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the provided rack SKU along with {@link Response} on successful completion of {@link - * Mono}. + * @return the properties of the provided rack SKU along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String rackSkuName) { @@ -236,16 +242,16 @@ private Mono> getWithResponseAsync(String rackSkuName) { /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the provided rack SKU along with {@link Response} on successful completion of {@link - * Mono}. + * @return the properties of the provided rack SKU along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync(String rackSkuName, Context context) { @@ -268,9 +274,9 @@ private Mono> getWithResponseAsync(String rackSkuName, Co /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -284,9 +290,9 @@ private Mono getAsync(String rackSkuName) { /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -301,9 +307,9 @@ public Response getWithResponse(String rackSkuName, Context contex /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -317,14 +323,13 @@ public RackSkuInner get(String rackSkuName) { /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rackSkuList represents a list of rack SKUs along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -346,15 +351,14 @@ private Mono> listBySubscriptionNextSinglePageAsync( /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rackSkuList represents a list of rack SKUs along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusImpl.java index 5beea52d91baf..41228cae5bb08 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RackSkusImpl.java @@ -29,12 +29,12 @@ public RackSkusImpl(RackSkusClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new RackSkuImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RackSkuImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new RackSkuImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RackSkuImpl(inner1, this.manager())); } public Response getWithResponse(String rackSkuName, Context context) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksClientImpl.java index ec8cbfb8d44a7..6c32fce0a23ac 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksClientImpl.java @@ -33,6 +33,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.RacksClient; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.RackInner; import com.azure.resourcemanager.networkcloud.models.RackList; import com.azure.resourcemanager.networkcloud.models.RackPatchParameters; @@ -40,17 +41,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in RacksClient. */ +/** + * An instance of this class provides access to all the operations defined in RacksClient. + */ public final class RacksClientImpl implements RacksClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final RacksService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of RacksClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ RacksClientImpl(NetworkCloudImpl client) { @@ -136,13 +143,13 @@ Mono> listByResourceGroupNext(@PathParam(value = "nextLink", /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -165,15 +172,15 @@ private Mono> listSinglePageAsync() { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided subscription along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -196,9 +203,9 @@ private Mono> listSinglePageAsync(Context context) { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided subscription as paginated response with {@link PagedFlux}. @@ -211,9 +218,9 @@ private PagedFlux listAsync() { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -228,9 +235,9 @@ private PagedFlux listAsync(Context context) { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided subscription as paginated response with {@link PagedIterable}. @@ -242,9 +249,9 @@ public PagedIterable list() { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -258,15 +265,15 @@ public PagedIterable list(Context context) { /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided resource group along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -293,16 +300,16 @@ private Mono> listByResourceGroupSinglePageAsync(String /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided resource group along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -330,9 +337,9 @@ private Mono> listByResourceGroupSinglePageAsync(String /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -347,9 +354,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName) /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -365,9 +372,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName, /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -381,9 +388,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName) { /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -398,9 +405,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName, Co /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -434,9 +441,9 @@ private Mono> getByResourceGroupWithResponseAsync(String res /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. @@ -471,9 +478,9 @@ private Mono> getByResourceGroupWithResponseAsync(String res /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -489,9 +496,9 @@ private Mono getByResourceGroupAsync(String resourceGroupName, String /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. @@ -508,9 +515,9 @@ public Response getByResourceGroupWithResponse(String resourceGroupNa /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -525,10 +532,10 @@ public RackInner getByResourceGroup(String resourceGroupName, String rackName) { /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -536,7 +543,7 @@ public RackInner getByResourceGroup(String resourceGroupName, String rackName) { * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle along with - * {@link Response} on successful completion of {@link Mono}. + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String rackName, @@ -570,10 +577,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -582,7 +589,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle along with - * {@link Response} on successful completion of {@link Mono}. + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String rackName, @@ -615,10 +622,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -626,7 +633,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RackInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -639,10 +646,10 @@ private PollerFlux, RackInner> beginCreateOrUpdateAsync(St /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -651,7 +658,7 @@ private PollerFlux, RackInner> beginCreateOrUpdateAsync(St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RackInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -665,10 +672,10 @@ private PollerFlux, RackInner> beginCreateOrUpdateAsync(St /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -676,7 +683,7 @@ private PollerFlux, RackInner> beginCreateOrUpdateAsync(St * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RackInner> beginCreateOrUpdate(String resourceGroupName, String rackName, @@ -686,10 +693,10 @@ public SyncPoller, RackInner> beginCreateOrUpdate(String r /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -698,7 +705,7 @@ public SyncPoller, RackInner> beginCreateOrUpdate(String r * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RackInner> beginCreateOrUpdate(String resourceGroupName, String rackName, @@ -708,10 +715,10 @@ public SyncPoller, RackInner> beginCreateOrUpdate(String r /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -719,7 +726,7 @@ public SyncPoller, RackInner> beginCreateOrUpdate(String r * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String rackName, RackInner rackParameters) { @@ -729,10 +736,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, String rac /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -741,7 +748,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String rac * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String rackName, RackInner rackParameters, @@ -752,10 +759,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, String rac /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -771,10 +778,10 @@ public RackInner createOrUpdate(String resourceGroupName, String rackName, RackI /** * Create or update the rack. - * - *

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected - * as the life cycle of this resource is managed by the system. - * + * + * Create a new rack or update properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackParameters The request body. @@ -792,16 +799,17 @@ public RackInner createOrUpdate(String resourceGroupName, String rackName, RackI /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String rackName) { @@ -829,17 +837,18 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String rackName, @@ -867,163 +876,169 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String rackName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String rackName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, rackName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String rackName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String rackName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, rackName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String rackName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String rackName) { return this.beginDeleteAsync(resourceGroupName, rackName).getSyncPoller(); } /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String rackName, Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String rackName, Context context) { return this.beginDeleteAsync(resourceGroupName, rackName, context).getSyncPoller(); } /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String rackName) { + private Mono deleteAsync(String resourceGroupName, String rackName) { return beginDeleteAsync(resourceGroupName, rackName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String rackName, Context context) { + private Mono deleteAsync(String resourceGroupName, String rackName, Context context) { return beginDeleteAsync(resourceGroupName, rackName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String rackName) { - deleteAsync(resourceGroupName, rackName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String rackName) { + return deleteAsync(resourceGroupName, rackName).block(); } /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String rackName, Context context) { - deleteAsync(resourceGroupName, rackName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String rackName, Context context) { + return deleteAsync(resourceGroupName, rackName, context).block(); } /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1031,7 +1046,7 @@ public void delete(String resourceGroupName, String rackName, Context context) { * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle along with - * {@link Response} on successful completion of {@link Mono}. + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String rackName, @@ -1063,10 +1078,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1075,7 +1090,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle along with - * {@link Response} on successful completion of {@link Mono}. + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, String rackName, @@ -1106,10 +1121,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1117,7 +1132,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RackInner> beginUpdateAsync(String resourceGroupName, String rackName, @@ -1130,17 +1145,17 @@ private PollerFlux, RackInner> beginUpdateAsync(String res /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RackInner> beginUpdateAsync(String resourceGroupName, String rackName) { @@ -1153,10 +1168,10 @@ private PollerFlux, RackInner> beginUpdateAsync(String res /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1165,7 +1180,7 @@ private PollerFlux, RackInner> beginUpdateAsync(String res * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, RackInner> beginUpdateAsync(String resourceGroupName, String rackName, @@ -1179,17 +1194,17 @@ private PollerFlux, RackInner> beginUpdateAsync(String res /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RackInner> beginUpdate(String resourceGroupName, String rackName) { @@ -1199,10 +1214,10 @@ public SyncPoller, RackInner> beginUpdate(String resourceG /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1211,7 +1226,7 @@ public SyncPoller, RackInner> beginUpdate(String resourceG * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of rack represents the hardware of the rack and is dependent upon the - * cluster for lifecycle. + * cluster for lifecycle. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RackInner> beginUpdate(String resourceGroupName, String rackName, @@ -1221,10 +1236,10 @@ public SyncPoller, RackInner> beginUpdate(String resourceG /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1232,7 +1247,7 @@ public SyncPoller, RackInner> beginUpdate(String resourceG * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String rackName, @@ -1243,17 +1258,17 @@ private Mono updateAsync(String resourceGroupName, String rackName, /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String rackName) { @@ -1264,10 +1279,10 @@ private Mono updateAsync(String resourceGroupName, String rackName) { /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1276,7 +1291,7 @@ private Mono updateAsync(String resourceGroupName, String rackName) { * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return rack represents the hardware of the rack and is dependent upon the cluster for lifecycle on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String rackName, @@ -1287,10 +1302,10 @@ private Mono updateAsync(String resourceGroupName, String rackName, /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1306,10 +1321,10 @@ public RackInner update(String resourceGroupName, String rackName) { /** * Patch the rack. - * - *

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates + * + * Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates * can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param rackUpdateParameters The request body. @@ -1327,14 +1342,13 @@ public RackInner update(String resourceGroupName, String rackName, RackPatchPara /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1356,15 +1370,14 @@ private Mono> listBySubscriptionNextSinglePageAsync(Str /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { @@ -1384,14 +1397,13 @@ private Mono> listBySubscriptionNextSinglePageAsync(Str /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1413,15 +1425,14 @@ private Mono> listByResourceGroupNextSinglePageAsync(St /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return rackList represents a list of racks along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksImpl.java index 0bbcd87710b94..555d5f503b6e3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/RacksImpl.java @@ -10,7 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.RacksClient; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.RackInner; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; import com.azure.resourcemanager.networkcloud.models.Rack; import com.azure.resourcemanager.networkcloud.models.Racks; @@ -29,22 +31,22 @@ public RacksImpl(RacksClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RackImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String rackName, Context context) { @@ -67,21 +69,31 @@ public Rack getByResourceGroup(String resourceGroupName, String rackName) { } } - public void deleteByResourceGroup(String resourceGroupName, String rackName) { - this.serviceClient().delete(resourceGroupName, rackName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String rackName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, rackName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String rackName, Context context) { - this.serviceClient().delete(resourceGroupName, rackName, context); + public OperationStatusResult delete(String resourceGroupName, String rackName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, rackName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public Rack 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 rackName = Utils.getValueFromIdByName(id, "racks"); + String rackName = ResourceManagerUtils.getValueFromIdByName(id, "racks"); if (rackName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'racks'.", id))); @@ -90,12 +102,12 @@ public Rack getById(String id) { } public Response 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 rackName = Utils.getValueFromIdByName(id, "racks"); + String rackName = ResourceManagerUtils.getValueFromIdByName(id, "racks"); if (rackName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'racks'.", id))); @@ -103,32 +115,32 @@ public Response getByIdWithResponse(String id, Context context) { return this.getByResourceGroupWithResponse(resourceGroupName, rackName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 rackName = Utils.getValueFromIdByName(id, "racks"); + String rackName = ResourceManagerUtils.getValueFromIdByName(id, "racks"); if (rackName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'racks'.", id))); } - this.delete(resourceGroupName, rackName, Context.NONE); + return this.delete(resourceGroupName, rackName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 rackName = Utils.getValueFromIdByName(id, "racks"); + String rackName = ResourceManagerUtils.getValueFromIdByName(id, "racks"); if (rackName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'racks'.", id))); } - this.delete(resourceGroupName, rackName, context); + return this.delete(resourceGroupName, rackName, context); } private RacksClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/Utils.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ResourceManagerUtils.java similarity index 88% rename from sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/Utils.java rename to sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ResourceManagerUtils.java index 834cea43b1f8f..de59d4b50b4e4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/Utils.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/ResourceManagerUtils.java @@ -19,7 +19,10 @@ import java.util.stream.Stream; import reactor.core.publisher.Flux; -final class Utils { +final class ResourceManagerUtils { + private ResourceManagerUtils() { + } + static String getValueFromIdByName(String id, String name) { if (id == null) { return null; @@ -60,7 +63,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri segments.add(idSegment); idItrReverted.forEachRemaining(segments::add); Collections.reverse(segments); - if (segments.size() > 0 && segments.get(0).isEmpty()) { + if (!segments.isEmpty() && segments.get(0).isEmpty()) { segments.remove(0); } return String.join("/", segments); @@ -74,7 +77,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri } static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { - return new PagedIterableImpl(pageIterable, mapper); + return new PagedIterableImpl<>(pageIterable, mapper); } private static final class PagedIterableImpl extends PagedIterable { @@ -124,30 +127,27 @@ public Stream> streamByPage(String continuationToken, int prefe @Override public Iterator iterator() { - return new IteratorImpl(pagedIterable.iterator(), mapper); + return new IteratorImpl<>(pagedIterable.iterator(), mapper); } @Override public Iterable> iterableByPage() { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken) { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(continuationToken), - pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper); } @Override public Iterable> iterableByPage(int preferredPageSize) { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(preferredPageSize), - pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); } } @@ -189,7 +189,7 @@ private IterableImpl(Iterable iterable, Function mapper) { @Override public Iterator iterator() { - return new IteratorImpl(iterable.iterator(), mapper); + return new IteratorImpl<>(iterable.iterator(), mapper); } } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageApplianceImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageApplianceImpl.java index 15c6a06386b87..a01056db1e70c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageApplianceImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageApplianceImpl.java @@ -13,12 +13,14 @@ import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; import com.azure.resourcemanager.networkcloud.models.RemoteVendorManagementFeature; import com.azure.resourcemanager.networkcloud.models.RemoteVendorManagementStatus; +import com.azure.resourcemanager.networkcloud.models.SecretRotationStatus; import com.azure.resourcemanager.networkcloud.models.StorageAppliance; import com.azure.resourcemanager.networkcloud.models.StorageApplianceDetailedStatus; import com.azure.resourcemanager.networkcloud.models.StorageApplianceEnableRemoteVendorManagementParameters; import com.azure.resourcemanager.networkcloud.models.StorageAppliancePatchParameters; import com.azure.resourcemanager.networkcloud.models.StorageApplianceProvisioningState; import java.util.Collections; +import java.util.List; import java.util.Map; public final class StorageApplianceImpl @@ -88,6 +90,14 @@ public String managementIpv4Address() { return this.innerModel().managementIpv4Address(); } + public String manufacturer() { + return this.innerModel().manufacturer(); + } + + public String model() { + return this.innerModel().model(); + } + public StorageApplianceProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -108,6 +118,15 @@ public RemoteVendorManagementStatus remoteVendorManagementStatus() { return this.innerModel().remoteVendorManagementStatus(); } + public List secretRotationStatus() { + List inner = this.innerModel().secretRotationStatus(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public String serialNumber() { return this.innerModel().serialNumber(); } @@ -116,6 +135,10 @@ public String storageApplianceSkuId() { return this.innerModel().storageApplianceSkuId(); } + public String version() { + return this.innerModel().version(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -190,8 +213,8 @@ public StorageAppliance apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.storageApplianceName = Utils.getValueFromIdByName(innerObject.id(), "storageAppliances"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.storageApplianceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "storageAppliances"); } public StorageAppliance refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesClientImpl.java index 9941210d7392b..74d2661e1fcb1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesClientImpl.java @@ -43,17 +43,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in StorageAppliancesClient. */ +/** + * An instance of this class provides access to all the operations defined in StorageAppliancesClient. + */ public final class StorageAppliancesClientImpl implements StorageAppliancesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final StorageAppliancesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of StorageAppliancesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ StorageAppliancesClientImpl(NetworkCloudImpl client) { @@ -130,7 +136,7 @@ Mono>> update(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/disableRemoteVendorManagement") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> disableRemoteVendorManagement(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -140,7 +146,7 @@ Mono>> disableRemoteVendorManagement(@HostParam("$host @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/enableRemoteVendorManagement") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> enableRemoteVendorManagement(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -168,13 +174,13 @@ Mono> listByResourceGroupNext( /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of storage appliances in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -197,15 +203,15 @@ private Mono> listSinglePageAsync() { /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of storage appliances in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -228,9 +234,9 @@ private Mono> listSinglePageAsync(Context c /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of storage appliances in the provided subscription as paginated response with {@link PagedFlux}. @@ -243,9 +249,9 @@ private PagedFlux listAsync() { /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -260,13 +266,13 @@ private PagedFlux listAsync(Context context) { /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -275,15 +281,15 @@ public PagedIterable list() { /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided subscription as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -292,15 +298,15 @@ public PagedIterable list(Context context) { /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of storage appliances in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -327,16 +333,16 @@ private Mono> listByResourceGroupSinglePage /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of storage appliances in the provided resource group along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -364,9 +370,9 @@ private Mono> listByResourceGroupSinglePage /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -381,9 +387,9 @@ private PagedFlux listByResourceGroupAsync(String resourc /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -399,15 +405,15 @@ private PagedFlux listByResourceGroupAsync(String resourc /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -416,16 +422,16 @@ public PagedIterable listByResourceGroup(String resourceG /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -434,16 +440,16 @@ public PagedIterable listByResourceGroup(String resourceG /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided storage appliance along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -473,9 +479,9 @@ private Mono> getByResourceGroupWithResponseAsyn /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -483,7 +489,7 @@ private Mono> getByResourceGroupWithResponseAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of the provided storage appliance along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -512,9 +518,9 @@ private Mono> getByResourceGroupWithResponseAsyn /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -530,9 +536,9 @@ private Mono getByResourceGroupAsync(String resourceGroup /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -549,9 +555,9 @@ public Response getByResourceGroupWithResponse(String res /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -566,10 +572,10 @@ public StorageApplianceInner getByResourceGroup(String resourceGroupName, String /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -577,7 +583,7 @@ public StorageApplianceInner getByResourceGroup(String resourceGroupName, String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -614,10 +620,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -626,7 +632,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -662,10 +668,10 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -673,7 +679,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, StorageApplianceInner> beginCreateOrUpdateAsync( @@ -687,10 +693,10 @@ private PollerFlux, StorageApplianceInner> beg /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -699,7 +705,7 @@ private PollerFlux, StorageApplianceInner> beg * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, StorageApplianceInner> beginCreateOrUpdateAsync( @@ -714,10 +720,10 @@ private PollerFlux, StorageApplianceInner> beg /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -725,7 +731,7 @@ private PollerFlux, StorageApplianceInner> beg * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StorageApplianceInner> beginCreateOrUpdate( @@ -736,10 +742,10 @@ public SyncPoller, StorageApplianceInner> begi /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -748,7 +754,7 @@ public SyncPoller, StorageApplianceInner> begi * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StorageApplianceInner> beginCreateOrUpdate( @@ -761,10 +767,10 @@ public SyncPoller, StorageApplianceInner> begi /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -772,7 +778,7 @@ public SyncPoller, StorageApplianceInner> begi * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String storageApplianceName, @@ -783,10 +789,10 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -795,7 +801,7 @@ private Mono createOrUpdateAsync(String resourceGroupName * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String storageApplianceName, @@ -807,10 +813,10 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -827,10 +833,10 @@ public StorageApplianceInner createOrUpdate(String resourceGroupName, String sto /** * Create or update the storage appliance. - * - *

Create a new storage appliance or update the properties of the existing one. All customer initiated requests - * will be rejected as the life cycle of this resource is managed by the system. - * + * + * Create a new storage appliance or update the properties of the existing one. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceParameters The request body. @@ -849,16 +855,17 @@ public StorageApplianceInner createOrUpdate(String resourceGroupName, String sto /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -888,17 +895,18 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -927,166 +935,172 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String storageApplianceName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String storageApplianceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, storageApplianceName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String storageApplianceName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String storageApplianceName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, storageApplianceName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String storageApplianceName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String storageApplianceName) { return this.beginDeleteAsync(resourceGroupName, storageApplianceName).getSyncPoller(); } /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String storageApplianceName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String storageApplianceName, Context context) { return this.beginDeleteAsync(resourceGroupName, storageApplianceName, context).getSyncPoller(); } /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String storageApplianceName) { + private Mono deleteAsync(String resourceGroupName, String storageApplianceName) { return beginDeleteAsync(resourceGroupName, storageApplianceName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String storageApplianceName, Context context) { + private Mono deleteAsync(String resourceGroupName, String storageApplianceName, + Context context) { return beginDeleteAsync(resourceGroupName, storageApplianceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String storageApplianceName) { - deleteAsync(resourceGroupName, storageApplianceName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String storageApplianceName) { + return deleteAsync(resourceGroupName, storageApplianceName).block(); } /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String storageApplianceName, Context context) { - deleteAsync(resourceGroupName, storageApplianceName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String storageApplianceName, Context context) { + return deleteAsync(resourceGroupName, storageApplianceName, context).block(); } /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1094,7 +1108,7 @@ public void delete(String resourceGroupName, String storageApplianceName, Contex * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1128,10 +1142,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1140,7 +1154,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1173,10 +1187,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1184,7 +1198,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, StorageApplianceInner> beginUpdateAsync( @@ -1199,17 +1213,17 @@ private PollerFlux, StorageApplianceInner> beg /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, StorageApplianceInner> @@ -1224,10 +1238,10 @@ private PollerFlux, StorageApplianceInner> beg /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1236,7 +1250,7 @@ private PollerFlux, StorageApplianceInner> beg * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, StorageApplianceInner> beginUpdateAsync( @@ -1251,17 +1265,17 @@ private PollerFlux, StorageApplianceInner> beg /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StorageApplianceInner> beginUpdate(String resourceGroupName, @@ -1273,10 +1287,10 @@ public SyncPoller, StorageApplianceInner> begi /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1285,7 +1299,7 @@ public SyncPoller, StorageApplianceInner> begi * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of storageAppliance represents on-premises Network Cloud storage - * appliance. + * appliance. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StorageApplianceInner> beginUpdate(String resourceGroupName, @@ -1297,10 +1311,10 @@ public SyncPoller, StorageApplianceInner> begi /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1308,7 +1322,7 @@ public SyncPoller, StorageApplianceInner> begi * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String storageApplianceName, @@ -1319,17 +1333,17 @@ private Mono updateAsync(String resourceGroupName, String /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String storageApplianceName) { @@ -1340,10 +1354,10 @@ private Mono updateAsync(String resourceGroupName, String /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1352,7 +1366,7 @@ private Mono updateAsync(String resourceGroupName, String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageAppliance represents on-premises Network Cloud storage appliance on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String storageApplianceName, @@ -1364,10 +1378,10 @@ private Mono updateAsync(String resourceGroupName, String /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1383,10 +1397,10 @@ public StorageApplianceInner update(String resourceGroupName, String storageAppl /** * Patch the storage appliance. - * - *

Update properties of the provided storage appliance, or update tags associated with the storage appliance + * + * Update properties of the provided storage appliance, or update tags associated with the storage appliance * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceUpdateParameters The request body. @@ -1404,16 +1418,16 @@ public StorageApplianceInner update(String resourceGroupName, String storageAppl /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> disableRemoteVendorManagementWithResponseAsync(String resourceGroupName, @@ -1444,17 +1458,17 @@ private Mono>> disableRemoteVendorManagementWithRespon /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> disableRemoteVendorManagementWithResponseAsync(String resourceGroupName, @@ -1483,9 +1497,9 @@ private Mono>> disableRemoteVendorManagementWithRespon /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1505,9 +1519,9 @@ private Mono>> disableRemoteVendorManagementWithRespon /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -1529,9 +1543,9 @@ private Mono>> disableRemoteVendorManagementWithRespon /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1547,9 +1561,9 @@ private Mono>> disableRemoteVendorManagementWithRespon /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -1567,9 +1581,9 @@ private Mono>> disableRemoteVendorManagementWithRespon /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1586,9 +1600,9 @@ private Mono disableRemoteVendorManagementAsync(Stri /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -1606,9 +1620,9 @@ private Mono disableRemoteVendorManagementAsync(Stri /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1624,9 +1638,9 @@ public OperationStatusResultInner disableRemoteVendorManagement(String resourceG /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -1643,17 +1657,17 @@ public OperationStatusResultInner disableRemoteVendorManagement(String resourceG /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> enableRemoteVendorManagementWithResponseAsync(String resourceGroupName, @@ -1688,9 +1702,9 @@ private Mono>> enableRemoteVendorManagementWithRespons /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -1698,8 +1712,8 @@ private Mono>> enableRemoteVendorManagementWithRespons * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> enableRemoteVendorManagementWithResponseAsync(String resourceGroupName, @@ -1734,9 +1748,9 @@ private Mono>> enableRemoteVendorManagementWithRespons /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -1758,9 +1772,9 @@ private Mono>> enableRemoteVendorManagementWithRespons /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1782,9 +1796,9 @@ private Mono>> enableRemoteVendorManagementWithRespons /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -1808,9 +1822,9 @@ private Mono>> enableRemoteVendorManagementWithRespons /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1831,9 +1845,9 @@ private Mono>> enableRemoteVendorManagementWithRespons /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -1856,9 +1870,9 @@ private Mono>> enableRemoteVendorManagementWithRespons /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -1878,9 +1892,9 @@ private Mono enableRemoteVendorManagementAsync(Strin /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1900,9 +1914,9 @@ private Mono enableRemoteVendorManagementAsync(Strin /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -1924,9 +1938,9 @@ private Mono enableRemoteVendorManagementAsync(Strin /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1945,9 +1959,9 @@ public OperationStatusResultInner enableRemoteVendorManagement(String resourceGr /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -1968,14 +1982,13 @@ public OperationStatusResultInner enableRemoteVendorManagement(String resourceGr /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageApplianceList represents a list of storage appliances along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1997,15 +2010,14 @@ private Mono> listBySubscriptionNextSingleP /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageApplianceList represents a list of storage appliances along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -2026,14 +2038,13 @@ private Mono> listBySubscriptionNextSingleP /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageApplianceList represents a list of storage appliances along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2055,15 +2066,14 @@ private Mono> listByResourceGroupNextSingle /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return storageApplianceList represents a list of storage appliances along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesImpl.java index db22a32ce78b6..f4f184c58eb08 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/StorageAppliancesImpl.java @@ -32,23 +32,23 @@ public StorageAppliancesImpl(StorageAppliancesClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new StorageApplianceImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, @@ -72,12 +72,23 @@ public StorageAppliance getByResourceGroup(String resourceGroupName, String stor } } - public void deleteByResourceGroup(String resourceGroupName, String storageApplianceName) { - this.serviceClient().delete(resourceGroupName, storageApplianceName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String storageApplianceName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, storageApplianceName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String storageApplianceName, Context context) { - this.serviceClient().delete(resourceGroupName, storageApplianceName, context); + public OperationStatusResult delete(String resourceGroupName, String storageApplianceName, Context context) { + OperationStatusResultInner inner + = this.serviceClient().delete(resourceGroupName, storageApplianceName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public OperationStatusResult disableRemoteVendorManagement(String resourceGroupName, String storageApplianceName) { @@ -125,12 +136,12 @@ public OperationStatusResult enableRemoteVendorManagement(String resourceGroupNa } public StorageAppliance 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 storageApplianceName = Utils.getValueFromIdByName(id, "storageAppliances"); + String storageApplianceName = ResourceManagerUtils.getValueFromIdByName(id, "storageAppliances"); if (storageApplianceName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storageAppliances'.", id))); @@ -139,12 +150,12 @@ public StorageAppliance getById(String id) { } public Response 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 storageApplianceName = Utils.getValueFromIdByName(id, "storageAppliances"); + String storageApplianceName = ResourceManagerUtils.getValueFromIdByName(id, "storageAppliances"); if (storageApplianceName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storageAppliances'.", id))); @@ -152,32 +163,32 @@ public Response getByIdWithResponse(String id, Context context return this.getByResourceGroupWithResponse(resourceGroupName, storageApplianceName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 storageApplianceName = Utils.getValueFromIdByName(id, "storageAppliances"); + String storageApplianceName = ResourceManagerUtils.getValueFromIdByName(id, "storageAppliances"); if (storageApplianceName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storageAppliances'.", id))); } - this.delete(resourceGroupName, storageApplianceName, Context.NONE); + return this.delete(resourceGroupName, storageApplianceName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 storageApplianceName = Utils.getValueFromIdByName(id, "storageAppliances"); + String storageApplianceName = ResourceManagerUtils.getValueFromIdByName(id, "storageAppliances"); if (storageApplianceName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'storageAppliances'.", id))); } - this.delete(resourceGroupName, storageApplianceName, context); + return this.delete(resourceGroupName, storageApplianceName, context); } private StorageAppliancesClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworkImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworkImpl.java index 3b93fd5ab1209..41b93661c4f30 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworkImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworkImpl.java @@ -202,8 +202,8 @@ public TrunkedNetwork apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.trunkedNetworkName = Utils.getValueFromIdByName(innerObject.id(), "trunkedNetworks"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.trunkedNetworkName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "trunkedNetworks"); } public TrunkedNetwork refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksClientImpl.java index 8ae7b613f7198..8b1015a89420a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksClientImpl.java @@ -33,6 +33,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.TrunkedNetworksClient; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkInner; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkList; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworkPatchParameters; @@ -40,17 +41,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in TrunkedNetworksClient. */ +/** + * An instance of this class provides access to all the operations defined in TrunkedNetworksClient. + */ public final class TrunkedNetworksClientImpl implements TrunkedNetworksClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final TrunkedNetworksService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of TrunkedNetworksClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ TrunkedNetworksClientImpl(NetworkCloudImpl client) { @@ -144,13 +151,13 @@ Mono> listByResourceGroupNext( /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -173,15 +180,15 @@ private Mono> listSinglePageAsync() { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -204,9 +211,9 @@ private Mono> listSinglePageAsync(Context con /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided subscription as paginated response with {@link PagedFlux}. @@ -219,9 +226,9 @@ private PagedFlux listAsync() { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -236,9 +243,9 @@ private PagedFlux listAsync(Context context) { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided subscription as paginated response with {@link PagedIterable}. @@ -250,9 +257,9 @@ public PagedIterable list() { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -266,15 +273,15 @@ public PagedIterable list(Context context) { /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -301,16 +308,16 @@ private Mono> listByResourceGroupSinglePageAs /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -338,9 +345,9 @@ private Mono> listByResourceGroupSinglePageAs /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -355,9 +362,9 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -373,15 +380,15 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trunked networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of trunked networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -390,16 +397,16 @@ public PagedIterable listByResourceGroup(String resourceGro /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trunked networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of trunked networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -408,16 +415,16 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of the provided trunked network along with {@link Response} on successful completion of {@link - * Mono}. + * @return properties of the provided trunked network along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -447,17 +454,17 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of the provided trunked network along with {@link Response} on successful completion of {@link - * Mono}. + * @return properties of the provided trunked network along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -486,9 +493,9 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -504,9 +511,9 @@ private Mono getByResourceGroupAsync(String resourceGroupNa /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. @@ -523,9 +530,9 @@ public Response getByResourceGroupWithResponse(String resou /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -540,9 +547,9 @@ public TrunkedNetworkInner getByResourceGroup(String resourceGroupName, String t /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -550,7 +557,7 @@ public TrunkedNetworkInner getByResourceGroup(String resourceGroupName, String t * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network along with {@link Response} on successful completion of {@link Mono}. + * create a trunked network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -587,9 +594,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -598,7 +605,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network along with {@link Response} on successful completion of {@link Mono}. + * create a trunked network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -634,9 +641,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -644,7 +651,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of trunkedNetwork represents a network that utilizes multiple - * isolation domains and specified VLANs to create a trunked network. + * isolation domains and specified VLANs to create a trunked network. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TrunkedNetworkInner> beginCreateOrUpdateAsync( @@ -657,9 +664,9 @@ private PollerFlux, TrunkedNetworkInner> beginCr /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -668,7 +675,7 @@ private PollerFlux, TrunkedNetworkInner> beginCr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of trunkedNetwork represents a network that utilizes multiple - * isolation domains and specified VLANs to create a trunked network. + * isolation domains and specified VLANs to create a trunked network. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, TrunkedNetworkInner> beginCreateOrUpdateAsync( @@ -683,9 +690,9 @@ private PollerFlux, TrunkedNetworkInner> beginCr /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -693,7 +700,7 @@ private PollerFlux, TrunkedNetworkInner> beginCr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of trunkedNetwork represents a network that utilizes multiple - * isolation domains and specified VLANs to create a trunked network. + * isolation domains and specified VLANs to create a trunked network. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TrunkedNetworkInner> beginCreateOrUpdate( @@ -704,9 +711,9 @@ public SyncPoller, TrunkedNetworkInner> beginCre /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -715,7 +722,7 @@ public SyncPoller, TrunkedNetworkInner> beginCre * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of trunkedNetwork represents a network that utilizes multiple - * isolation domains and specified VLANs to create a trunked network. + * isolation domains and specified VLANs to create a trunked network. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TrunkedNetworkInner> beginCreateOrUpdate( @@ -727,9 +734,9 @@ public SyncPoller, TrunkedNetworkInner> beginCre /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -737,7 +744,7 @@ public SyncPoller, TrunkedNetworkInner> beginCre * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network on successful completion of {@link Mono}. + * create a trunked network on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String trunkedNetworkName, @@ -748,9 +755,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -759,7 +766,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network on successful completion of {@link Mono}. + * create a trunked network on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String trunkedNetworkName, @@ -770,9 +777,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -780,7 +787,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network. + * create a trunked network. */ @ServiceMethod(returns = ReturnType.SINGLE) public TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunkedNetworkName, @@ -790,9 +797,9 @@ public TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunk /** * Create or update the trunked network. - * - *

Create a new trunked network or update the properties of the existing trunked network. - * + * + * Create a new trunked network or update the properties of the existing trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkParameters The request body. @@ -801,7 +808,7 @@ public TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunk * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network. + * create a trunked network. */ @ServiceMethod(returns = ReturnType.SINGLE) public TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunkedNetworkName, @@ -811,15 +818,16 @@ public TrunkedNetworkInner createOrUpdate(String resourceGroupName, String trunk /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -849,16 +857,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -887,156 +896,162 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String trunkedNetworkName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String trunkedNetworkName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, trunkedNetworkName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String trunkedNetworkName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String trunkedNetworkName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, trunkedNetworkName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String trunkedNetworkName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String trunkedNetworkName) { return this.beginDeleteAsync(resourceGroupName, trunkedNetworkName).getSyncPoller(); } /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String trunkedNetworkName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String trunkedNetworkName, Context context) { return this.beginDeleteAsync(resourceGroupName, trunkedNetworkName, context).getSyncPoller(); } /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String trunkedNetworkName) { + private Mono deleteAsync(String resourceGroupName, String trunkedNetworkName) { return beginDeleteAsync(resourceGroupName, trunkedNetworkName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String trunkedNetworkName, Context context) { + private Mono deleteAsync(String resourceGroupName, String trunkedNetworkName, + Context context) { return beginDeleteAsync(resourceGroupName, trunkedNetworkName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String trunkedNetworkName) { - deleteAsync(resourceGroupName, trunkedNetworkName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String trunkedNetworkName) { + return deleteAsync(resourceGroupName, trunkedNetworkName).block(); } /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String trunkedNetworkName, Context context) { - deleteAsync(resourceGroupName, trunkedNetworkName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String trunkedNetworkName, Context context) { + return deleteAsync(resourceGroupName, trunkedNetworkName, context).block(); } /** * Patch the trunked network. - * - *

Update tags associated with the provided trunked network. - * + * + * Update tags associated with the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkUpdateParameters The request body. @@ -1044,7 +1059,7 @@ public void delete(String resourceGroupName, String trunkedNetworkName, Context * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network along with {@link Response} on successful completion of {@link Mono}. + * create a trunked network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, @@ -1078,9 +1093,9 @@ private Mono> updateWithResponseAsync(String resou /** * Patch the trunked network. - * - *

Update tags associated with the provided trunked network. - * + * + * Update tags associated with the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkUpdateParameters The request body. @@ -1089,7 +1104,7 @@ private Mono> updateWithResponseAsync(String resou * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network along with {@link Response} on successful completion of {@link Mono}. + * create a trunked network along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, @@ -1121,16 +1136,16 @@ private Mono> updateWithResponseAsync(String resou /** * Patch the trunked network. - * - *

Update tags associated with the provided trunked network. - * + * + * Update tags associated with the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network on successful completion of {@link Mono}. + * create a trunked network on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String trunkedNetworkName) { @@ -1141,9 +1156,9 @@ private Mono updateAsync(String resourceGroupName, String t /** * Patch the trunked network. - * - *

Update tags associated with the provided trunked network. - * + * + * Update tags associated with the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param trunkedNetworkUpdateParameters The request body. @@ -1152,7 +1167,7 @@ private Mono updateAsync(String resourceGroupName, String t * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network along with {@link Response}. + * create a trunked network along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String trunkedNetworkName, @@ -1163,16 +1178,16 @@ public Response updateWithResponse(String resourceGroupName /** * Patch the trunked network. - * - *

Update tags associated with the provided trunked network. - * + * + * Update tags associated with the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to - * create a trunked network. + * create a trunked network. */ @ServiceMethod(returns = ReturnType.SINGLE) public TrunkedNetworkInner update(String resourceGroupName, String trunkedNetworkName) { @@ -1183,14 +1198,13 @@ public TrunkedNetworkInner update(String resourceGroupName, String trunkedNetwor /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetworkList represents a list of trunked networks along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1212,15 +1226,14 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetworkList represents a list of trunked networks along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -1241,14 +1254,13 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetworkList represents a list of trunked networks along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1270,15 +1282,14 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return trunkedNetworkList represents a list of trunked networks along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksImpl.java index a6b9021efc3c9..f602a54317769 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/TrunkedNetworksImpl.java @@ -10,7 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.TrunkedNetworksClient; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkInner; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; import com.azure.resourcemanager.networkcloud.models.TrunkedNetworks; @@ -29,22 +31,22 @@ public TrunkedNetworksImpl(TrunkedNetworksClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TrunkedNetworkImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String trunkedNetworkName, @@ -68,21 +70,31 @@ public TrunkedNetwork getByResourceGroup(String resourceGroupName, String trunke } } - public void deleteByResourceGroup(String resourceGroupName, String trunkedNetworkName) { - this.serviceClient().delete(resourceGroupName, trunkedNetworkName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String trunkedNetworkName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, trunkedNetworkName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String trunkedNetworkName, Context context) { - this.serviceClient().delete(resourceGroupName, trunkedNetworkName, context); + public OperationStatusResult delete(String resourceGroupName, String trunkedNetworkName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, trunkedNetworkName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public TrunkedNetwork 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 trunkedNetworkName = Utils.getValueFromIdByName(id, "trunkedNetworks"); + String trunkedNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "trunkedNetworks"); if (trunkedNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'trunkedNetworks'.", id))); @@ -91,12 +103,12 @@ public TrunkedNetwork getById(String id) { } public Response 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 trunkedNetworkName = Utils.getValueFromIdByName(id, "trunkedNetworks"); + String trunkedNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "trunkedNetworks"); if (trunkedNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'trunkedNetworks'.", id))); @@ -104,32 +116,32 @@ public Response getByIdWithResponse(String id, Context context) return this.getByResourceGroupWithResponse(resourceGroupName, trunkedNetworkName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 trunkedNetworkName = Utils.getValueFromIdByName(id, "trunkedNetworks"); + String trunkedNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "trunkedNetworks"); if (trunkedNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'trunkedNetworks'.", id))); } - this.delete(resourceGroupName, trunkedNetworkName, Context.NONE); + return this.delete(resourceGroupName, trunkedNetworkName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 trunkedNetworkName = Utils.getValueFromIdByName(id, "trunkedNetworks"); + String trunkedNetworkName = ResourceManagerUtils.getValueFromIdByName(id, "trunkedNetworks"); if (trunkedNetworkName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'trunkedNetworks'.", id))); } - this.delete(resourceGroupName, trunkedNetworkName, context); + return this.delete(resourceGroupName, trunkedNetworkName, context); } private TrunkedNetworksClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java index 657b1e83ca6a7..f291fc2b02181 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachineImpl.java @@ -257,8 +257,8 @@ public VirtualMachine apply(Context context) { com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.virtualMachineName = Utils.getValueFromIdByName(innerObject.id(), "virtualMachines"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.virtualMachineName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "virtualMachines"); } public VirtualMachine refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesClientImpl.java index 54ab369588062..24fd9b355db84 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesClientImpl.java @@ -43,17 +43,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in VirtualMachinesClient. */ +/** + * An instance of this class provides access to all the operations defined in VirtualMachinesClient. + */ public final class VirtualMachinesClientImpl implements VirtualMachinesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final VirtualMachinesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of VirtualMachinesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ VirtualMachinesClientImpl(NetworkCloudImpl client) { @@ -130,7 +136,7 @@ Mono>> update(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/powerOff") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> powerOff(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -141,7 +147,7 @@ Mono>> powerOff(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/reimage") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> reimage(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -151,7 +157,7 @@ Mono>> reimage(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/restart") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> restart(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -161,7 +167,7 @@ Mono>> restart(@HostParam("$host") String endpoint, @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/start") - @ExpectedResponses({ 200, 202, 204 }) + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> start(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -188,13 +194,13 @@ Mono> listByResourceGroupNext( /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -217,15 +223,15 @@ private Mono> listSinglePageAsync() { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided subscription along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -248,9 +254,9 @@ private Mono> listSinglePageAsync(Context con /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided subscription as paginated response with {@link PagedFlux}. @@ -263,9 +269,9 @@ private PagedFlux listAsync() { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -280,9 +286,9 @@ private PagedFlux listAsync(Context context) { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided subscription as paginated response with {@link PagedIterable}. @@ -294,9 +300,9 @@ public PagedIterable list() { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -310,15 +316,15 @@ public PagedIterable list(Context context) { /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -345,16 +351,16 @@ private Mono> listByResourceGroupSinglePageAs /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -382,9 +388,9 @@ private Mono> listByResourceGroupSinglePageAs /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -399,9 +405,9 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -417,15 +423,15 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of virtual machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of virtual machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName) { @@ -434,16 +440,16 @@ public PagedIterable listByResourceGroup(String resourceGro /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of virtual machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of virtual machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { @@ -452,16 +458,16 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of the provided virtual machine along with {@link Response} on successful completion of {@link - * Mono}. + * @return properties of the provided virtual machine along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -491,17 +497,17 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of the provided virtual machine along with {@link Response} on successful completion of {@link - * Mono}. + * @return properties of the provided virtual machine along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, @@ -530,9 +536,9 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -548,9 +554,9 @@ private Mono getByResourceGroupAsync(String resourceGroupNa /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -567,9 +573,9 @@ public Response getByResourceGroupWithResponse(String resou /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -584,9 +590,9 @@ public VirtualMachineInner getByResourceGroup(String resourceGroupName, String v /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -594,7 +600,7 @@ public VirtualMachineInner getByResourceGroup(String resourceGroupName, String v * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -631,9 +637,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -642,7 +648,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -678,9 +684,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -688,7 +694,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VirtualMachineInner> beginCreateOrUpdateAsync( @@ -701,9 +707,9 @@ private PollerFlux, VirtualMachineInner> beginCr /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -712,7 +718,7 @@ private PollerFlux, VirtualMachineInner> beginCr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VirtualMachineInner> beginCreateOrUpdateAsync( @@ -727,9 +733,9 @@ private PollerFlux, VirtualMachineInner> beginCr /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -737,7 +743,7 @@ private PollerFlux, VirtualMachineInner> beginCr * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualMachineInner> beginCreateOrUpdate( @@ -748,9 +754,9 @@ public SyncPoller, VirtualMachineInner> beginCre /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -759,7 +765,7 @@ public SyncPoller, VirtualMachineInner> beginCre * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualMachineInner> beginCreateOrUpdate( @@ -771,9 +777,9 @@ public SyncPoller, VirtualMachineInner> beginCre /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -781,7 +787,7 @@ public SyncPoller, VirtualMachineInner> beginCre * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String virtualMachineName, @@ -792,9 +798,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -803,7 +809,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String virtualMachineName, @@ -814,9 +820,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -833,9 +839,9 @@ public VirtualMachineInner createOrUpdate(String resourceGroupName, String virtu /** * Create or update the virtual machine. - * - *

Create a new virtual machine or update the properties of the existing virtual machine. - * + * + * Create a new virtual machine or update the properties of the existing virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineParameters The request body. @@ -853,15 +859,16 @@ public VirtualMachineInner createOrUpdate(String resourceGroupName, String virtu /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -891,16 +898,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, @@ -929,157 +937,163 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualMachineName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String virtualMachineName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualMachineName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String virtualMachineName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String virtualMachineName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, virtualMachineName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String virtualMachineName) { return this.beginDeleteAsync(resourceGroupName, virtualMachineName).getSyncPoller(); } /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String virtualMachineName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String virtualMachineName, Context context) { return this.beginDeleteAsync(resourceGroupName, virtualMachineName, context).getSyncPoller(); } /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualMachineName) { + private Mono deleteAsync(String resourceGroupName, String virtualMachineName) { return beginDeleteAsync(resourceGroupName, virtualMachineName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String virtualMachineName, Context context) { + private Mono deleteAsync(String resourceGroupName, String virtualMachineName, + Context context) { return beginDeleteAsync(resourceGroupName, virtualMachineName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualMachineName) { - deleteAsync(resourceGroupName, virtualMachineName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName) { + return deleteAsync(resourceGroupName, virtualMachineName).block(); } /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String virtualMachineName, Context context) { - deleteAsync(resourceGroupName, virtualMachineName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String virtualMachineName, Context context) { + return deleteAsync(resourceGroupName, virtualMachineName, context).block(); } /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1087,7 +1101,7 @@ public void delete(String resourceGroupName, String virtualMachineName, Context * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1121,10 +1135,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1133,7 +1147,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateWithResponseAsync(String resourceGroupName, @@ -1165,10 +1179,10 @@ private Mono>> updateWithResponseAsync(String resource /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1176,7 +1190,7 @@ private Mono>> updateWithResponseAsync(String resource * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VirtualMachineInner> beginUpdateAsync(String resourceGroupName, @@ -1189,17 +1203,17 @@ private PollerFlux, VirtualMachineInner> beginUp /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VirtualMachineInner> beginUpdateAsync(String resourceGroupName, @@ -1213,10 +1227,10 @@ private PollerFlux, VirtualMachineInner> beginUp /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1225,7 +1239,7 @@ private PollerFlux, VirtualMachineInner> beginUp * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VirtualMachineInner> beginUpdateAsync(String resourceGroupName, @@ -1239,17 +1253,17 @@ private PollerFlux, VirtualMachineInner> beginUp /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualMachineInner> beginUpdate(String resourceGroupName, @@ -1261,10 +1275,10 @@ public SyncPoller, VirtualMachineInner> beginUpd /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1273,7 +1287,7 @@ public SyncPoller, VirtualMachineInner> beginUpd * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of virtualMachine represents the on-premises Network Cloud virtual - * machine. + * machine. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VirtualMachineInner> beginUpdate(String resourceGroupName, @@ -1284,10 +1298,10 @@ public SyncPoller, VirtualMachineInner> beginUpd /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1295,7 +1309,7 @@ public SyncPoller, VirtualMachineInner> beginUpd * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String virtualMachineName, @@ -1306,17 +1320,17 @@ private Mono updateAsync(String resourceGroupName, String v /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String virtualMachineName) { @@ -1327,10 +1341,10 @@ private Mono updateAsync(String resourceGroupName, String v /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1339,7 +1353,7 @@ private Mono updateAsync(String resourceGroupName, String v * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachine represents the on-premises Network Cloud virtual machine on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String virtualMachineName, @@ -1350,10 +1364,10 @@ private Mono updateAsync(String resourceGroupName, String v /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1369,10 +1383,10 @@ public VirtualMachineInner update(String resourceGroupName, String virtualMachin /** * Patch the virtual machine. - * - *

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. + * + * Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. * Properties and tag updates can be done independently. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachineUpdateParameters The request body. @@ -1390,17 +1404,17 @@ public VirtualMachineInner update(String resourceGroupName, String virtualMachin /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> powerOffWithResponseAsync(String resourceGroupName, @@ -1434,9 +1448,9 @@ private Mono>> powerOffWithResponseAsync(String resour /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -1444,8 +1458,8 @@ private Mono>> powerOffWithResponseAsync(String resour * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> powerOffWithResponseAsync(String resourceGroupName, @@ -1477,9 +1491,9 @@ private Mono>> powerOffWithResponseAsync(String resour /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -1501,9 +1515,9 @@ private PollerFlux, OperationStatusResult /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1524,9 +1538,9 @@ private PollerFlux, OperationStatusResult /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -1549,9 +1563,9 @@ private PollerFlux, OperationStatusResult /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1569,9 +1583,9 @@ private PollerFlux, OperationStatusResult /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -1591,9 +1605,9 @@ public SyncPoller, OperationStatusResultI /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -1611,9 +1625,9 @@ private Mono powerOffAsync(String resourceGroupName, /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1630,9 +1644,9 @@ private Mono powerOffAsync(String resourceGroupName, /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -1652,9 +1666,9 @@ private Mono powerOffAsync(String resourceGroupName, /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1670,9 +1684,9 @@ public OperationStatusResultInner powerOff(String resourceGroupName, String virt /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -1690,16 +1704,16 @@ public OperationStatusResultInner powerOff(String resourceGroupName, String virt /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> reimageWithResponseAsync(String resourceGroupName, @@ -1729,17 +1743,17 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> reimageWithResponseAsync(String resourceGroupName, @@ -1768,9 +1782,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1789,9 +1803,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -1812,9 +1826,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1830,9 +1844,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -1849,9 +1863,9 @@ private Mono>> reimageWithResponseAsync(String resourc /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1867,9 +1881,9 @@ private Mono reimageAsync(String resourceGroupName, /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -1887,9 +1901,9 @@ private Mono reimageAsync(String resourceGroupName, /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1904,9 +1918,9 @@ public OperationStatusResultInner reimage(String resourceGroupName, String virtu /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -1922,16 +1936,16 @@ public OperationStatusResultInner reimage(String resourceGroupName, String virtu /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartWithResponseAsync(String resourceGroupName, @@ -1961,17 +1975,17 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> restartWithResponseAsync(String resourceGroupName, @@ -2000,9 +2014,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2021,9 +2035,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2044,9 +2058,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2062,9 +2076,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2081,9 +2095,9 @@ private Mono>> restartWithResponseAsync(String resourc /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2099,9 +2113,9 @@ private Mono restartAsync(String resourceGroupName, /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2119,9 +2133,9 @@ private Mono restartAsync(String resourceGroupName, /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2136,9 +2150,9 @@ public OperationStatusResultInner restart(String resourceGroupName, String virtu /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2154,16 +2168,16 @@ public OperationStatusResultInner restart(String resourceGroupName, String virtu /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> startWithResponseAsync(String resourceGroupName, @@ -2193,17 +2207,17 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the current status of an async operation along with {@link Response} on successful completion of {@link - * Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> startWithResponseAsync(String resourceGroupName, String virtualMachineName, @@ -2232,9 +2246,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2253,9 +2267,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2275,9 +2289,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2293,9 +2307,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2312,9 +2326,9 @@ private Mono>> startWithResponseAsync(String resourceG /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2330,9 +2344,9 @@ private Mono startAsync(String resourceGroupName, St /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2350,9 +2364,9 @@ private Mono startAsync(String resourceGroupName, St /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2367,9 +2381,9 @@ public OperationStatusResultInner start(String resourceGroupName, String virtual /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -2385,14 +2399,13 @@ public OperationStatusResultInner start(String resourceGroupName, String virtual /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachineList represents a list of virtual machines along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -2414,15 +2427,14 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachineList represents a list of virtual machines along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, @@ -2443,14 +2455,13 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachineList represents a list of virtual machines along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -2472,15 +2483,14 @@ private Mono> listByResourceGroupNextSinglePa /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return virtualMachineList represents a list of virtual machines along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesImpl.java index 34c79f7b67b85..87d3e0ee15b6e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VirtualMachinesImpl.java @@ -32,22 +32,22 @@ public VirtualMachinesImpl(VirtualMachinesClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineName, @@ -71,12 +71,22 @@ public VirtualMachine getByResourceGroup(String resourceGroupName, String virtua } } - public void deleteByResourceGroup(String resourceGroupName, String virtualMachineName) { - this.serviceClient().delete(resourceGroupName, virtualMachineName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String virtualMachineName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, virtualMachineName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String virtualMachineName, Context context) { - this.serviceClient().delete(resourceGroupName, virtualMachineName, context); + public OperationStatusResult delete(String resourceGroupName, String virtualMachineName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, virtualMachineName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public OperationStatusResult powerOff(String resourceGroupName, String virtualMachineName) { @@ -154,12 +164,12 @@ public OperationStatusResult start(String resourceGroupName, String virtualMachi } public VirtualMachine 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); @@ -168,12 +178,12 @@ public VirtualMachine getById(String id) { } public Response 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); @@ -181,32 +191,32 @@ public Response getByIdWithResponse(String id, Context context) return this.getByResourceGroupWithResponse(resourceGroupName, virtualMachineName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); } - this.delete(resourceGroupName, virtualMachineName, Context.NONE); + return this.delete(resourceGroupName, virtualMachineName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 virtualMachineName = Utils.getValueFromIdByName(id, "virtualMachines"); + String virtualMachineName = ResourceManagerUtils.getValueFromIdByName(id, "virtualMachines"); if (virtualMachineName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'virtualMachines'.", id))); } - this.delete(resourceGroupName, virtualMachineName, context); + return this.delete(resourceGroupName, virtualMachineName, context); } private VirtualMachinesClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumeImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumeImpl.java index d638e517a0462..06bbd02e87189 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumeImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumeImpl.java @@ -159,8 +159,8 @@ public Volume apply(Context context) { VolumeImpl(VolumeInner innerObject, com.azure.resourcemanager.networkcloud.NetworkCloudManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.volumeName = Utils.getValueFromIdByName(innerObject.id(), "volumes"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.volumeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "volumes"); } public Volume refresh() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesClientImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesClientImpl.java index 6e5f6b752cba7..14f498b919570 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesClientImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesClientImpl.java @@ -33,6 +33,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.networkcloud.fluent.VolumesClient; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.VolumeInner; import com.azure.resourcemanager.networkcloud.models.VolumeList; import com.azure.resourcemanager.networkcloud.models.VolumePatchParameters; @@ -40,17 +41,23 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in VolumesClient. */ +/** + * An instance of this class provides access to all the operations defined in VolumesClient. + */ public final class VolumesClientImpl implements VolumesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final VolumesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final NetworkCloudImpl client; /** * Initializes an instance of VolumesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ VolumesClientImpl(NetworkCloudImpl client) { @@ -139,13 +146,13 @@ Mono> listByResourceGroupNext( /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided subscription along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -168,15 +175,15 @@ private Mono> listSinglePageAsync() { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided subscription along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -199,9 +206,9 @@ private Mono> listSinglePageAsync(Context context) { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided subscription as paginated response with {@link PagedFlux}. @@ -214,9 +221,9 @@ private PagedFlux listAsync() { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -231,9 +238,9 @@ private PagedFlux listAsync(Context context) { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided subscription as paginated response with {@link PagedIterable}. @@ -245,9 +252,9 @@ public PagedIterable list() { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -261,15 +268,15 @@ public PagedIterable list(Context context) { /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { @@ -296,16 +303,16 @@ private Mono> listByResourceGroupSinglePageAsync(Stri /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided resource group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, @@ -333,9 +340,9 @@ private Mono> listByResourceGroupSinglePageAsync(Stri /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -350,9 +357,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -368,9 +375,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -384,9 +391,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName) /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -401,9 +408,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName, /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -438,9 +445,9 @@ private Mono> getByResourceGroupWithResponseAsync(String r /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. @@ -475,9 +482,9 @@ private Mono> getByResourceGroupWithResponseAsync(String r /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -493,9 +500,9 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Stri /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. @@ -512,9 +519,9 @@ public Response getByResourceGroupWithResponse(String resourceGroup /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -529,17 +536,17 @@ public VolumeInner getByResourceGroup(String resourceGroupName, String volumeNam /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume represents storage made available for use by resources running on the cluster along with {@link - * Response} on successful completion of {@link Mono}. + * @return volume represents storage made available for use by resources running on the cluster along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -574,9 +581,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -584,8 +591,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume represents storage made available for use by resources running on the cluster along with {@link - * Response} on successful completion of {@link Mono}. + * @return volume represents storage made available for use by resources running on the cluster along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, @@ -619,9 +626,9 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -629,7 +636,7 @@ private Mono>> createOrUpdateWithResponseAsync(String * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of volume represents storage made available for use by resources - * running on the cluster. + * running on the cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -642,9 +649,9 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -653,7 +660,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of volume represents storage made available for use by resources - * running on the cluster. + * running on the cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, VolumeInner> beginCreateOrUpdateAsync(String resourceGroupName, @@ -667,9 +674,9 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -677,7 +684,7 @@ private PollerFlux, VolumeInner> beginCreateOrUpdateAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of volume represents storage made available for use by resources - * running on the cluster. + * running on the cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, @@ -687,9 +694,9 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate(Stri /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -698,7 +705,7 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate(Stri * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of volume represents storage made available for use by resources - * running on the cluster. + * running on the cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, VolumeInner> beginCreateOrUpdate(String resourceGroupName, @@ -708,9 +715,9 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate(Stri /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -718,7 +725,7 @@ public SyncPoller, VolumeInner> beginCreateOrUpdate(Stri * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume represents storage made available for use by resources running on the cluster on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String volumeName, @@ -729,9 +736,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String v /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -740,7 +747,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, String v * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume represents storage made available for use by resources running on the cluster on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String volumeName, @@ -751,9 +758,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String v /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -769,9 +776,9 @@ public VolumeInner createOrUpdate(String resourceGroupName, String volumeName, V /** * Create or update the volume. - * - *

Create a new volume or update the properties of the existing one. - * + * + * Create a new volume or update the properties of the existing one. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeParameters The request body. @@ -789,15 +796,16 @@ public VolumeInner createOrUpdate(String resourceGroupName, String volumeName, V /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String volumeName) { @@ -825,16 +833,17 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. + * @return the current status of an async operation along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String volumeName, @@ -862,163 +871,168 @@ private Mono>> deleteWithResponseAsync(String resource /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String volumeName) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String volumeName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, volumeName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, this.client.getContext()); } /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. + * @return the {@link PollerFlux} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String volumeName, - Context context) { + private PollerFlux, OperationStatusResultInner> + beginDeleteAsync(String resourceGroupName, String volumeName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, volumeName, context); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationStatusResultInner.class, OperationStatusResultInner.class, context); } /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String volumeName) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String volumeName) { return this.beginDeleteAsync(resourceGroupName, volumeName).getSyncPoller(); } /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. + * @return the {@link SyncPoller} for polling of the current status of an async operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String volumeName, - Context context) { + public SyncPoller, OperationStatusResultInner> + beginDelete(String resourceGroupName, String volumeName, Context context) { return this.beginDeleteAsync(resourceGroupName, volumeName, context).getSyncPoller(); } /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String volumeName) { + private Mono deleteAsync(String resourceGroupName, String volumeName) { return beginDeleteAsync(resourceGroupName, volumeName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the current status of an async operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String volumeName, Context context) { + private Mono deleteAsync(String resourceGroupName, String volumeName, Context context) { return beginDeleteAsync(resourceGroupName, volumeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String volumeName) { - deleteAsync(resourceGroupName, volumeName).block(); + public OperationStatusResultInner delete(String resourceGroupName, String volumeName) { + return deleteAsync(resourceGroupName, volumeName).block(); } /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String volumeName, Context context) { - deleteAsync(resourceGroupName, volumeName, context).block(); + public OperationStatusResultInner delete(String resourceGroupName, String volumeName, Context context) { + return deleteAsync(resourceGroupName, volumeName, context).block(); } /** * Patch the volume. - * - *

Update tags associated with the provided volume. - * + * + * Update tags associated with the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeUpdateParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume represents storage made available for use by resources running on the cluster along with {@link - * Response} on successful completion of {@link Mono}. + * @return volume represents storage made available for use by resources running on the cluster along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String volumeName, @@ -1049,9 +1063,9 @@ private Mono> updateWithResponseAsync(String resourceGroup /** * Patch the volume. - * - *

Update tags associated with the provided volume. - * + * + * Update tags associated with the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeUpdateParameters The request body. @@ -1059,8 +1073,8 @@ private Mono> updateWithResponseAsync(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume represents storage made available for use by resources running on the cluster along with {@link - * Response} on successful completion of {@link Mono}. + * @return volume represents storage made available for use by resources running on the cluster along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateWithResponseAsync(String resourceGroupName, String volumeName, @@ -1091,16 +1105,16 @@ private Mono> updateWithResponseAsync(String resourceGroup /** * Patch the volume. - * - *

Update tags associated with the provided volume. - * + * + * Update tags associated with the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volume represents storage made available for use by resources running on the cluster on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateAsync(String resourceGroupName, String volumeName) { @@ -1111,9 +1125,9 @@ private Mono updateAsync(String resourceGroupName, String volumeNam /** * Patch the volume. - * - *

Update tags associated with the provided volume. - * + * + * Update tags associated with the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param volumeUpdateParameters The request body. @@ -1121,8 +1135,8 @@ private Mono updateAsync(String resourceGroupName, String volumeNam * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return volume represents storage made available for use by resources running on the cluster along with {@link - * Response}. + * @return volume represents storage made available for use by resources running on the cluster along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response updateWithResponse(String resourceGroupName, String volumeName, @@ -1132,9 +1146,9 @@ public Response updateWithResponse(String resourceGroupName, String /** * Patch the volume. - * - *

Update tags associated with the provided volume. - * + * + * Update tags associated with the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1150,14 +1164,13 @@ public VolumeInner update(String resourceGroupName, String volumeName) { /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volumeList represents a list of volumes along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { @@ -1179,15 +1192,14 @@ private Mono> listBySubscriptionNextSinglePageAsync(S /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volumeList represents a list of volumes along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, Context context) { @@ -1207,14 +1219,13 @@ private Mono> listBySubscriptionNextSinglePageAsync(S /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volumeList represents a list of volumes along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { @@ -1236,15 +1247,14 @@ private Mono> listByResourceGroupNextSinglePageAsync( /** * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * @param nextLink The URL to get the next list of items. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return volumeList represents a list of volumes along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesImpl.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesImpl.java index 1654d201b0214..20a536094cc9c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesImpl.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/VolumesImpl.java @@ -10,7 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.networkcloud.fluent.VolumesClient; +import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; import com.azure.resourcemanager.networkcloud.fluent.models.VolumeInner; +import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; import com.azure.resourcemanager.networkcloud.models.Volume; import com.azure.resourcemanager.networkcloud.models.Volumes; @@ -29,22 +31,22 @@ public VolumesImpl(VolumesClient innerClient, public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new VolumeImpl(inner1, this.manager())); } public Response getByResourceGroupWithResponse(String resourceGroupName, String volumeName, @@ -68,21 +70,31 @@ public Volume getByResourceGroup(String resourceGroupName, String volumeName) { } } - public void deleteByResourceGroup(String resourceGroupName, String volumeName) { - this.serviceClient().delete(resourceGroupName, volumeName); + public OperationStatusResult deleteByResourceGroup(String resourceGroupName, String volumeName) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, volumeName); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } - public void delete(String resourceGroupName, String volumeName, Context context) { - this.serviceClient().delete(resourceGroupName, volumeName, context); + public OperationStatusResult delete(String resourceGroupName, String volumeName, Context context) { + OperationStatusResultInner inner = this.serviceClient().delete(resourceGroupName, volumeName, context); + if (inner != null) { + return new OperationStatusResultImpl(inner, this.manager()); + } else { + return null; + } } public Volume 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 volumeName = Utils.getValueFromIdByName(id, "volumes"); + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); @@ -91,12 +103,12 @@ public Volume getById(String id) { } public Response 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 volumeName = Utils.getValueFromIdByName(id, "volumes"); + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); @@ -104,32 +116,32 @@ public Response getByIdWithResponse(String id, Context context) { return this.getByResourceGroupWithResponse(resourceGroupName, volumeName, context); } - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteById(String id) { + 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 volumeName = Utils.getValueFromIdByName(id, "volumes"); + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } - this.delete(resourceGroupName, volumeName, Context.NONE); + return this.delete(resourceGroupName, volumeName, Context.NONE); } - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + public OperationStatusResult deleteByIdWithResponse(String id, Context context) { + 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 volumeName = Utils.getValueFromIdByName(id, "volumes"); + String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "volumes"); if (volumeName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'volumes'.", id))); } - this.delete(resourceGroupName, volumeName, context); + return this.delete(resourceGroupName, volumeName, context); } private VolumesClient serviceClient() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/package-info.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/package-info.java index 59b7f3fc4c13f..473bde0bfed19 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/package-info.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/implementation/package-info.java @@ -3,7 +3,8 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the implementations for NetworkCloud. The Network Cloud APIs provide management of the on-premises - * clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. + * Package containing the implementations for NetworkCloud. + * The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, + * hardware resources, and workload infrastructure resources. */ package com.azure.resourcemanager.networkcloud.implementation; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AadConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AadConfiguration.java index 3144e0a846945..3ed7ccc3adf44 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AadConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AadConfiguration.java @@ -6,27 +6,34 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** AadConfiguration represents the Azure Active Directory Integration properties. */ +/** + * AadConfiguration represents the Azure Active Directory Integration properties. + */ @Fluent -public final class AadConfiguration { +public final class AadConfiguration implements JsonSerializable { /* * The list of Azure Active Directory group object IDs that will have an administrative role on the Kubernetes * cluster. */ - @JsonProperty(value = "adminGroupObjectIds", required = true) private List adminGroupObjectIds; - /** Creates an instance of AadConfiguration class. */ + /** + * Creates an instance of AadConfiguration class. + */ public AadConfiguration() { } /** * Get the adminGroupObjectIds property: The list of Azure Active Directory group object IDs that will have an * administrative role on the Kubernetes cluster. - * + * * @return the adminGroupObjectIds value. */ public List adminGroupObjectIds() { @@ -36,7 +43,7 @@ public List adminGroupObjectIds() { /** * Set the adminGroupObjectIds property: The list of Azure Active Directory group object IDs that will have an * administrative role on the Kubernetes cluster. - * + * * @param adminGroupObjectIds the adminGroupObjectIds value to set. * @return the AadConfiguration object itself. */ @@ -47,15 +54,55 @@ public AadConfiguration withAdminGroupObjectIds(List adminGroupObjectIds /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (adminGroupObjectIds() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property adminGroupObjectIds in model AadConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property adminGroupObjectIds in model AadConfiguration")); } } private static final ClientLogger LOGGER = new ClientLogger(AadConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("adminGroupObjectIds", this.adminGroupObjectIds, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AadConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AadConfiguration if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AadConfiguration. + */ + public static AadConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AadConfiguration deserializedAadConfiguration = new AadConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("adminGroupObjectIds".equals(fieldName)) { + List adminGroupObjectIds = reader.readArray(reader1 -> reader1.getString()); + deserializedAadConfiguration.adminGroupObjectIds = adminGroupObjectIds; + } else { + reader.skipChildren(); + } + } + + return deserializedAadConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ActionType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ActionType.java index 13c937d5902ba..29d42ef3dad3a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ActionType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ActionType.java @@ -5,17 +5,20 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ +/** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + */ public final class ActionType extends ExpandableStringEnum { - /** Static value Internal for ActionType. */ + /** + * Static value Internal for ActionType. + */ public static final ActionType INTERNAL = fromString("Internal"); /** * Creates a new instance of ActionType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,18 +27,17 @@ public ActionType() { /** * Creates or finds a ActionType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ActionType. */ - @JsonCreator public static ActionType fromString(String name) { return fromString(name, ActionType.class); } /** * Gets known ActionType values. - * + * * @return known ActionType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministrativeCredentials.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministrativeCredentials.java index 39eff25eb498e..2bc9d801c0197 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministrativeCredentials.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministrativeCredentials.java @@ -6,32 +6,36 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * AdministrativeCredentials represents the admin credentials for the device requiring password-based authentication. */ @Fluent -public final class AdministrativeCredentials { +public final class AdministrativeCredentials implements JsonSerializable { /* * The password of the administrator of the device used during initialization. */ - @JsonProperty(value = "password") private String password; /* * The username of the administrator of the device used during initialization. */ - @JsonProperty(value = "username", required = true) private String username; - /** Creates an instance of AdministrativeCredentials class. */ + /** + * Creates an instance of AdministrativeCredentials class. + */ public AdministrativeCredentials() { } /** * Get the password property: The password of the administrator of the device used during initialization. - * + * * @return the password value. */ public String password() { @@ -40,7 +44,7 @@ public String password() { /** * Set the password property: The password of the administrator of the device used during initialization. - * + * * @param password the password value to set. * @return the AdministrativeCredentials object itself. */ @@ -51,7 +55,7 @@ public AdministrativeCredentials withPassword(String password) { /** * Get the username property: The username of the administrator of the device used during initialization. - * + * * @return the username value. */ public String username() { @@ -60,7 +64,7 @@ public String username() { /** * Set the username property: The username of the administrator of the device used during initialization. - * + * * @param username the username value to set. * @return the AdministrativeCredentials object itself. */ @@ -71,19 +75,61 @@ public AdministrativeCredentials withUsername(String username) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (password() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property password in model AdministrativeCredentials")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property password in model AdministrativeCredentials")); } if (username() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property username in model AdministrativeCredentials")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property username in model AdministrativeCredentials")); } } private static final ClientLogger LOGGER = new ClientLogger(AdministrativeCredentials.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("password", this.password); + jsonWriter.writeStringField("username", this.username); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdministrativeCredentials from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdministrativeCredentials if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AdministrativeCredentials. + */ + public static AdministrativeCredentials fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdministrativeCredentials deserializedAdministrativeCredentials = new AdministrativeCredentials(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("password".equals(fieldName)) { + deserializedAdministrativeCredentials.password = reader.getString(); + } else if ("username".equals(fieldName)) { + deserializedAdministrativeCredentials.username = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAdministrativeCredentials; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfiguration.java index ea84c6a170526..cac48d15c23a2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfiguration.java @@ -5,7 +5,11 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -13,29 +17,29 @@ * agent pool nodes in Kubernetes clusters. */ @Fluent -public final class AdministratorConfiguration { +public final class AdministratorConfiguration implements JsonSerializable { /* * The user name for the administrator that will be applied to the operating systems that run Kubernetes nodes. If * not supplied, a user name will be chosen by the service. */ - @JsonProperty(value = "adminUsername") private String adminUsername; /* * The SSH configuration for the operating systems that run the nodes in the Kubernetes cluster. In some cases, * specification of public keys may be required to produce a working environment. */ - @JsonProperty(value = "sshPublicKeys") private List sshPublicKeys; - /** Creates an instance of AdministratorConfiguration class. */ + /** + * Creates an instance of AdministratorConfiguration class. + */ public AdministratorConfiguration() { } /** * Get the adminUsername property: The user name for the administrator that will be applied to the operating systems * that run Kubernetes nodes. If not supplied, a user name will be chosen by the service. - * + * * @return the adminUsername value. */ public String adminUsername() { @@ -45,7 +49,7 @@ public String adminUsername() { /** * Set the adminUsername property: The user name for the administrator that will be applied to the operating systems * that run Kubernetes nodes. If not supplied, a user name will be chosen by the service. - * + * * @param adminUsername the adminUsername value to set. * @return the AdministratorConfiguration object itself. */ @@ -57,7 +61,7 @@ public AdministratorConfiguration withAdminUsername(String adminUsername) { /** * Get the sshPublicKeys property: The SSH configuration for the operating systems that run the nodes in the * Kubernetes cluster. In some cases, specification of public keys may be required to produce a working environment. - * + * * @return the sshPublicKeys value. */ public List sshPublicKeys() { @@ -67,7 +71,7 @@ public List sshPublicKeys() { /** * Set the sshPublicKeys property: The SSH configuration for the operating systems that run the nodes in the * Kubernetes cluster. In some cases, specification of public keys may be required to produce a working environment. - * + * * @param sshPublicKeys the sshPublicKeys value to set. * @return the AdministratorConfiguration object itself. */ @@ -78,7 +82,7 @@ public AdministratorConfiguration withSshPublicKeys(List sshPublic /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -86,4 +90,44 @@ public void validate() { sshPublicKeys().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("adminUsername", this.adminUsername); + jsonWriter.writeArrayField("sshPublicKeys", this.sshPublicKeys, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdministratorConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdministratorConfiguration if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdministratorConfiguration. + */ + public static AdministratorConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdministratorConfiguration deserializedAdministratorConfiguration = new AdministratorConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("adminUsername".equals(fieldName)) { + deserializedAdministratorConfiguration.adminUsername = reader.getString(); + } else if ("sshPublicKeys".equals(fieldName)) { + List sshPublicKeys = reader.readArray(reader1 -> SshPublicKey.fromJson(reader1)); + deserializedAdministratorConfiguration.sshPublicKeys = sshPublicKeys; + } else { + reader.skipChildren(); + } + } + + return deserializedAdministratorConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfigurationPatch.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfigurationPatch.java new file mode 100644 index 0000000000000..6194969fb69c5 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdministratorConfigurationPatch.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * AdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. + */ +@Fluent +public final class AdministratorConfigurationPatch implements JsonSerializable { + /* + * SshPublicKey represents the public key used to authenticate with a resource through SSH. + */ + private List sshPublicKeys; + + /** + * Creates an instance of AdministratorConfigurationPatch class. + */ + public AdministratorConfigurationPatch() { + } + + /** + * Get the sshPublicKeys property: SshPublicKey represents the public key used to authenticate with a resource + * through SSH. + * + * @return the sshPublicKeys value. + */ + public List sshPublicKeys() { + return this.sshPublicKeys; + } + + /** + * Set the sshPublicKeys property: SshPublicKey represents the public key used to authenticate with a resource + * through SSH. + * + * @param sshPublicKeys the sshPublicKeys value to set. + * @return the AdministratorConfigurationPatch object itself. + */ + public AdministratorConfigurationPatch withSshPublicKeys(List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sshPublicKeys() != null) { + sshPublicKeys().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("sshPublicKeys", this.sshPublicKeys, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdministratorConfigurationPatch from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdministratorConfigurationPatch if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdministratorConfigurationPatch. + */ + public static AdministratorConfigurationPatch fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdministratorConfigurationPatch deserializedAdministratorConfigurationPatch + = new AdministratorConfigurationPatch(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sshPublicKeys".equals(fieldName)) { + List sshPublicKeys = reader.readArray(reader1 -> SshPublicKey.fromJson(reader1)); + deserializedAdministratorConfigurationPatch.sshPublicKeys = sshPublicKeys; + } else { + reader.skipChildren(); + } + } + + return deserializedAdministratorConfigurationPatch; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdvertiseToFabric.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdvertiseToFabric.java index ef8bc8f9b2327..666a18ad793ce 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdvertiseToFabric.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AdvertiseToFabric.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -13,15 +12,19 @@ * This field is ignored if fabricPeeringEnabled is set to False. */ public final class AdvertiseToFabric extends ExpandableStringEnum { - /** Static value True for AdvertiseToFabric. */ + /** + * Static value True for AdvertiseToFabric. + */ public static final AdvertiseToFabric TRUE = fromString("True"); - /** Static value False for AdvertiseToFabric. */ + /** + * Static value False for AdvertiseToFabric. + */ public static final AdvertiseToFabric FALSE = fromString("False"); /** * Creates a new instance of AdvertiseToFabric value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +33,17 @@ public AdvertiseToFabric() { /** * Creates or finds a AdvertiseToFabric from its string representation. - * + * * @param name a name to look for. * @return the corresponding AdvertiseToFabric. */ - @JsonCreator public static AdvertiseToFabric fromString(String name) { return fromString(name, AdvertiseToFabric.class); } /** * Gets known AdvertiseToFabric values. - * + * * @return known AdvertiseToFabric values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentOptions.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentOptions.java index cb4ebea98db44..ccdb72834bac3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentOptions.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentOptions.java @@ -5,30 +5,36 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** AgentOptions are configurations that will be applied to each agent in an agent pool. */ +/** + * AgentOptions are configurations that will be applied to each agent in an agent pool. + */ @Fluent -public final class AgentOptions { +public final class AgentOptions implements JsonSerializable { /* * The number of hugepages to allocate. */ - @JsonProperty(value = "hugepagesCount", required = true) private long hugepagesCount; /* * The size of the hugepages to allocate. */ - @JsonProperty(value = "hugepagesSize") private HugepagesSize hugepagesSize; - /** Creates an instance of AgentOptions class. */ + /** + * Creates an instance of AgentOptions class. + */ public AgentOptions() { } /** * Get the hugepagesCount property: The number of hugepages to allocate. - * + * * @return the hugepagesCount value. */ public long hugepagesCount() { @@ -37,7 +43,7 @@ public long hugepagesCount() { /** * Set the hugepagesCount property: The number of hugepages to allocate. - * + * * @param hugepagesCount the hugepagesCount value to set. * @return the AgentOptions object itself. */ @@ -48,7 +54,7 @@ public AgentOptions withHugepagesCount(long hugepagesCount) { /** * Get the hugepagesSize property: The size of the hugepages to allocate. - * + * * @return the hugepagesSize value. */ public HugepagesSize hugepagesSize() { @@ -57,7 +63,7 @@ public HugepagesSize hugepagesSize() { /** * Set the hugepagesSize property: The size of the hugepages to allocate. - * + * * @param hugepagesSize the hugepagesSize value to set. * @return the AgentOptions object itself. */ @@ -68,9 +74,49 @@ public AgentOptions withHugepagesSize(HugepagesSize hugepagesSize) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("hugepagesCount", this.hugepagesCount); + jsonWriter.writeStringField("hugepagesSize", this.hugepagesSize == null ? null : this.hugepagesSize.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentOptions if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AgentOptions. + */ + public static AgentOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentOptions deserializedAgentOptions = new AgentOptions(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("hugepagesCount".equals(fieldName)) { + deserializedAgentOptions.hugepagesCount = reader.getLong(); + } else if ("hugepagesSize".equals(fieldName)) { + deserializedAgentOptions.hugepagesSize = HugepagesSize.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentOptions; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPool.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPool.java index 499ab227b0506..5d3240b71947c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPool.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPool.java @@ -11,87 +11,78 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of AgentPool. */ +/** + * An immutable client-side representation of AgentPool. + */ public interface AgentPool { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** - * Gets the administratorConfiguration property: AdministratorConfiguration represents the administrative - * credentials that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool. - * + * Gets the administratorConfiguration property: The administrator credentials to be used for the nodes in this + * agent pool. + * * @return the administratorConfiguration value. */ AdministratorConfiguration administratorConfiguration(); /** - * Gets the agentOptions property: AgentOptions are configurations that will be applied to each agent in an agent - * pool. - * - *

The configurations that will be applied to each agent in this agent pool. - * + * Gets the agentOptions property: The configurations that will be applied to each agent in this agent pool. + * * @return the agentOptions value. */ AgentOptions agentOptions(); /** - * Gets the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on this - * Kubernetes cluster. - * + * Gets the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool + * for use by the workloads that run on this Kubernetes cluster. + * * @return the attachedNetworkConfiguration value. */ AttachedNetworkConfiguration attachedNetworkConfiguration(); @@ -99,42 +90,42 @@ public interface AgentPool { /** * Gets the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. - * + * * @return the availabilityZones value. */ List availabilityZones(); /** * Gets the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ long count(); /** * Gets the detailedStatus property: The current status of the agent pool. - * + * * @return the detailedStatus value. */ AgentPoolDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** * Gets the kubernetesVersion property: The Kubernetes version running in this agent pool. - * + * * @return the kubernetesVersion value. */ String kubernetesVersion(); /** * Gets the labels property: The labels applied to the nodes in this agent pool. - * + * * @return the labels value. */ List labels(); @@ -143,86 +134,92 @@ public interface AgentPool { * Gets the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. * System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to * user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. - * + * * @return the mode value. */ AgentPoolMode mode(); /** * Gets the provisioningState property: The provisioning state of the agent pool. - * + * * @return the provisioningState value. */ AgentPoolProvisioningState provisioningState(); /** * Gets the taints property: The taints applied to the nodes in this agent pool. - * + * * @return the taints value. */ List taints(); /** - * Gets the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Gets the upgradeSettings property: The configuration of the agent pool. + * * @return the upgradeSettings value. */ AgentPoolUpgradeSettings upgradeSettings(); /** * Gets the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs. - * + * * @return the vmSkuName value. */ String vmSkuName(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolInner object. - * + * * @return the inner object. */ AgentPoolInner innerModel(); - /** The entirety of the AgentPool definition. */ + /** + * The entirety of the AgentPool definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithParentResource, DefinitionStages.WithCount, DefinitionStages.WithMode, DefinitionStages.WithVmSkuName, DefinitionStages.WithCreate { } - /** The AgentPool definition stages. */ + /** + * The AgentPool definition stages. + */ interface DefinitionStages { - /** The first stage of the AgentPool definition. */ + /** + * The first stage of the AgentPool definition. + */ interface Blank extends WithLocation { } - /** The stage of the AgentPool definition allowing to specify location. */ + /** + * The stage of the AgentPool definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -230,18 +227,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the AgentPool definition allowing to specify parent resource. */ + /** + * The stage of the AgentPool definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, kubernetesClusterName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @return the next definition stage. @@ -249,40 +248,46 @@ interface WithParentResource { WithCount withExistingKubernetesCluster(String resourceGroupName, String kubernetesClusterName); } - /** The stage of the AgentPool definition allowing to specify count. */ + /** + * The stage of the AgentPool definition allowing to specify count. + */ interface WithCount { /** * Specifies the count property: The number of virtual machines that use this configuration.. - * + * * @param count The number of virtual machines that use this configuration. * @return the next definition stage. */ WithMode withCount(long count); } - /** The stage of the AgentPool definition allowing to specify mode. */ + /** + * The stage of the AgentPool definition allowing to specify mode. + */ interface WithMode { /** * Specifies the mode property: The selection of how this agent pool is utilized, either as a system pool or * a user pool. System pools run the features and critical services for the Kubernetes Cluster, while user * pools are dedicated to user workloads. Every Kubernetes cluster must contain at least one system node * pool with at least one node.. - * + * * @param mode The selection of how this agent pool is utilized, either as a system pool or a user pool. - * System pools run the features and critical services for the Kubernetes Cluster, while user pools are - * dedicated to user workloads. Every Kubernetes cluster must contain at least one system node pool with - * at least one node. + * System pools run the features and critical services for the Kubernetes Cluster, while user pools are + * dedicated to user workloads. Every Kubernetes cluster must contain at least one system node pool with at + * least one node. * @return the next definition stage. */ WithVmSkuName withMode(AgentPoolMode mode); } - /** The stage of the AgentPool definition allowing to specify vmSkuName. */ + /** + * The stage of the AgentPool definition allowing to specify vmSkuName. + */ interface WithVmSkuName { /** * Specifies the vmSkuName property: The name of the VM SKU that determines the size of resources allocated * for node VMs.. - * + * * @param vmSkuName The name of the VM SKU that determines the size of resources allocated for node VMs. * @return the next definition stage. */ @@ -299,143 +304,141 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithExt DefinitionStages.WithLabels, DefinitionStages.WithTaints, DefinitionStages.WithUpgradeSettings { /** * Executes the create request. - * + * * @return the created resource. */ AgentPool create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ AgentPool create(Context context); } - /** The stage of the AgentPool definition allowing to specify tags. */ + /** + * The stage of the AgentPool definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the AgentPool definition allowing to specify extendedLocation. */ + /** + * The stage of the AgentPool definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithCreate withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the AgentPool definition allowing to specify administratorConfiguration. */ + /** + * The stage of the AgentPool definition allowing to specify administratorConfiguration. + */ interface WithAdministratorConfiguration { /** - * Specifies the administratorConfiguration property: AdministratorConfiguration represents the - * administrative credentials that will be applied to the control plane and agent pool nodes in Kubernetes - * clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool.. - * - * @param administratorConfiguration AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - *

The administrator credentials to be used for the nodes in this agent pool. + * Specifies the administratorConfiguration property: The administrator credentials to be used for the nodes + * in this agent pool.. + * + * @param administratorConfiguration The administrator credentials to be used for the nodes in this agent + * pool. * @return the next definition stage. */ WithCreate withAdministratorConfiguration(AdministratorConfiguration administratorConfiguration); } - /** The stage of the AgentPool definition allowing to specify agentOptions. */ + /** + * The stage of the AgentPool definition allowing to specify agentOptions. + */ interface WithAgentOptions { /** - * Specifies the agentOptions property: AgentOptions are configurations that will be applied to each agent - * in an agent pool. - * - *

The configurations that will be applied to each agent in this agent pool.. - * - * @param agentOptions AgentOptions are configurations that will be applied to each agent in an agent pool. - *

The configurations that will be applied to each agent in this agent pool. + * Specifies the agentOptions property: The configurations that will be applied to each agent in this agent + * pool.. + * + * @param agentOptions The configurations that will be applied to each agent in this agent pool. * @return the next definition stage. */ WithCreate withAgentOptions(AgentOptions agentOptions); } - /** The stage of the AgentPool definition allowing to specify attachedNetworkConfiguration. */ + /** + * The stage of the AgentPool definition allowing to specify attachedNetworkConfiguration. + */ interface WithAttachedNetworkConfiguration { /** - * Specifies the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of - * workload networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on - * this Kubernetes cluster.. - * - * @param attachedNetworkConfiguration AttachedNetworkConfiguration represents the set of workload networks - * to attach to a resource. - *

The configuration of networks being attached to the agent pool for use by the workloads that run - * on this Kubernetes cluster. + * Specifies the attachedNetworkConfiguration property: The configuration of networks being attached to the + * agent pool for use by the workloads that run on this Kubernetes cluster.. + * + * @param attachedNetworkConfiguration The configuration of networks being attached to the agent pool for + * use by the workloads that run on this Kubernetes cluster. * @return the next definition stage. */ WithCreate withAttachedNetworkConfiguration(AttachedNetworkConfiguration attachedNetworkConfiguration); } - /** The stage of the AgentPool definition allowing to specify availabilityZones. */ + /** + * The stage of the AgentPool definition allowing to specify availabilityZones. + */ interface WithAvailabilityZones { /** * Specifies the availabilityZones property: The list of availability zones of the Network Cloud cluster * used for the provisioning of nodes in this agent pool. If not specified, all availability zones will be * used.. - * + * * @param availabilityZones The list of availability zones of the Network Cloud cluster used for the - * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. + * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. * @return the next definition stage. */ WithCreate withAvailabilityZones(List availabilityZones); } - /** The stage of the AgentPool definition allowing to specify labels. */ + /** + * The stage of the AgentPool definition allowing to specify labels. + */ interface WithLabels { /** * Specifies the labels property: The labels applied to the nodes in this agent pool.. - * + * * @param labels The labels applied to the nodes in this agent pool. * @return the next definition stage. */ WithCreate withLabels(List labels); } - /** The stage of the AgentPool definition allowing to specify taints. */ + /** + * The stage of the AgentPool definition allowing to specify taints. + */ interface WithTaints { /** * Specifies the taints property: The taints applied to the nodes in this agent pool.. - * + * * @param taints The taints applied to the nodes in this agent pool. * @return the next definition stage. */ WithCreate withTaints(List taints); } - /** The stage of the AgentPool definition allowing to specify upgradeSettings. */ + /** + * The stage of the AgentPool definition allowing to specify upgradeSettings. + */ interface WithUpgradeSettings { /** - * Specifies the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an - * agent pool. - * - *

The configuration of the agent pool.. - * - * @param upgradeSettings AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - *

The configuration of the agent pool. + * Specifies the upgradeSettings property: The configuration of the agent pool.. + * + * @param upgradeSettings The configuration of the agent pool. * @return the next definition stage. */ WithCreate withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings); @@ -444,63 +447,85 @@ interface WithUpgradeSettings { /** * Begins update for the AgentPool resource. - * + * * @return the stage of resource update. */ AgentPool.Update update(); - /** The template for AgentPool update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithCount, UpdateStages.WithUpgradeSettings { + /** + * The template for AgentPool update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithAdministratorConfiguration, UpdateStages.WithCount, + UpdateStages.WithUpgradeSettings { /** * Executes the update request. - * + * * @return the updated resource. */ AgentPool apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ AgentPool apply(Context context); } - /** The AgentPool update stages. */ + /** + * The AgentPool update stages. + */ interface UpdateStages { - /** The stage of the AgentPool update allowing to specify tags. */ + /** + * The stage of the AgentPool update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the AgentPool update allowing to specify count. */ + /** + * The stage of the AgentPool update allowing to specify administratorConfiguration. + */ + interface WithAdministratorConfiguration { + /** + * Specifies the administratorConfiguration property: The configuration of administrator credentials for the + * control plane nodes.. + * + * @param administratorConfiguration The configuration of administrator credentials for the control plane + * nodes. + * @return the next definition stage. + */ + Update withAdministratorConfiguration(NodePoolAdministratorConfigurationPatch administratorConfiguration); + } + + /** + * The stage of the AgentPool update allowing to specify count. + */ interface WithCount { /** * Specifies the count property: The number of virtual machines that use this configuration.. - * + * * @param count The number of virtual machines that use this configuration. * @return the next definition stage. */ Update withCount(Long count); } - /** The stage of the AgentPool update allowing to specify upgradeSettings. */ + /** + * The stage of the AgentPool update allowing to specify upgradeSettings. + */ interface WithUpgradeSettings { /** - * Specifies the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an - * agent pool. - * - *

The configuration of the agent pool.. - * - * @param upgradeSettings AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - *

The configuration of the agent pool. + * Specifies the upgradeSettings property: The configuration of the agent pool.. + * + * @param upgradeSettings The configuration of the agent pool. * @return the next definition stage. */ Update withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings); @@ -509,14 +534,14 @@ interface WithUpgradeSettings { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ AgentPool refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolDetailedStatus.java index c73fd0feeee31..9fe2df6cac5cf 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The current status of the agent pool. */ +/** + * The current status of the agent pool. + */ public final class AgentPoolDetailedStatus extends ExpandableStringEnum { - /** Static value Available for AgentPoolDetailedStatus. */ + /** + * Static value Available for AgentPoolDetailedStatus. + */ public static final AgentPoolDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Error for AgentPoolDetailedStatus. */ + /** + * Static value Error for AgentPoolDetailedStatus. + */ public static final AgentPoolDetailedStatus ERROR = fromString("Error"); - /** Static value Provisioning for AgentPoolDetailedStatus. */ + /** + * Static value Provisioning for AgentPoolDetailedStatus. + */ public static final AgentPoolDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of AgentPoolDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public AgentPoolDetailedStatus() { /** * Creates or finds a AgentPoolDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding AgentPoolDetailedStatus. */ - @JsonCreator public static AgentPoolDetailedStatus fromString(String name) { return fromString(name, AgentPoolDetailedStatus.class); } /** * Gets known AgentPoolDetailedStatus values. - * + * * @return known AgentPoolDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolList.java index cb52083f7235f..dff3eb64bb277 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** AgentPoolList represents a list of Kubernetes cluster agent pools. */ +/** + * AgentPoolList represents a list of Kubernetes cluster agent pools. + */ @Fluent -public final class AgentPoolList { +public final class AgentPoolList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of agent pools. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of AgentPoolList class. */ + /** + * Creates an instance of AgentPoolList class. + */ public AgentPoolList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the AgentPoolList object itself. */ @@ -50,7 +56,7 @@ public AgentPoolList withNextLink(String nextLink) { /** * Get the value property: The list of agent pools. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of agent pools. - * + * * @param value the value value to set. * @return the AgentPoolList object itself. */ @@ -70,7 +76,7 @@ public AgentPoolList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the AgentPoolList. + */ + public static AgentPoolList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolList deserializedAgentPoolList = new AgentPoolList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedAgentPoolList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> AgentPoolInner.fromJson(reader1)); + deserializedAgentPoolList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolMode.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolMode.java index 7be484dd6a151..47fb80793b21d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolMode.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolMode.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -14,18 +13,24 @@ * Kubernetes cluster must contain at least one system node pool with at least one node. */ public final class AgentPoolMode extends ExpandableStringEnum { - /** Static value System for AgentPoolMode. */ + /** + * Static value System for AgentPoolMode. + */ public static final AgentPoolMode SYSTEM = fromString("System"); - /** Static value User for AgentPoolMode. */ + /** + * Static value User for AgentPoolMode. + */ public static final AgentPoolMode USER = fromString("User"); - /** Static value NotApplicable for AgentPoolMode. */ + /** + * Static value NotApplicable for AgentPoolMode. + */ public static final AgentPoolMode NOT_APPLICABLE = fromString("NotApplicable"); /** * Creates a new instance of AgentPoolMode value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -34,18 +39,17 @@ public AgentPoolMode() { /** * Creates or finds a AgentPoolMode from its string representation. - * + * * @param name a name to look for. * @return the corresponding AgentPoolMode. */ - @JsonCreator public static AgentPoolMode fromString(String name) { return fromString(name, AgentPoolMode.class); } /** * Gets known AgentPoolMode values. - * + * * @return known AgentPoolMode values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolPatchParameters.java index 80ad969198f93..93682c120aa01 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolPatchParameters.java @@ -5,39 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** AgentPoolPatchParameters represents the body of the request to patch the Kubernetes cluster agent pool. */ +/** + * AgentPoolPatchParameters represents the body of the request to patch the Kubernetes cluster agent pool. + */ @Fluent -public final class AgentPoolPatchParameters { +public final class AgentPoolPatchParameters implements JsonSerializable { /* - * AgentPoolPatchProperties represents the properties of an agent pool that can be modified. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private AgentPoolPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of AgentPoolPatchParameters class. */ + /** + * Creates an instance of AgentPoolPatchParameters class. + */ public AgentPoolPatchParameters() { } /** - * Get the innerProperties property: AgentPoolPatchProperties represents the properties of an agent pool that can be - * modified. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private AgentPoolPatchProperties innerProperties() { @@ -46,7 +45,7 @@ private AgentPoolPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -55,7 +54,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the AgentPoolPatchParameters object itself. */ @@ -64,9 +63,35 @@ public AgentPoolPatchParameters withTags(Map tags) { return this; } + /** + * Get the administratorConfiguration property: The configuration of administrator credentials for the control plane + * nodes. + * + * @return the administratorConfiguration value. + */ + public NodePoolAdministratorConfigurationPatch administratorConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().administratorConfiguration(); + } + + /** + * Set the administratorConfiguration property: The configuration of administrator credentials for the control plane + * nodes. + * + * @param administratorConfiguration the administratorConfiguration value to set. + * @return the AgentPoolPatchParameters object itself. + */ + public AgentPoolPatchParameters + withAdministratorConfiguration(NodePoolAdministratorConfigurationPatch administratorConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new AgentPoolPatchProperties(); + } + this.innerProperties().withAdministratorConfiguration(administratorConfiguration); + return this; + } + /** * Get the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ public Long count() { @@ -75,7 +100,7 @@ public Long count() { /** * Set the count property: The number of virtual machines that use this configuration. - * + * * @param count the count value to set. * @return the AgentPoolPatchParameters object itself. */ @@ -88,10 +113,8 @@ public AgentPoolPatchParameters withCount(Long count) { } /** - * Get the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Get the upgradeSettings property: The configuration of the agent pool. + * * @return the upgradeSettings value. */ public AgentPoolUpgradeSettings upgradeSettings() { @@ -99,10 +122,8 @@ public AgentPoolUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Set the upgradeSettings property: The configuration of the agent pool. + * * @param upgradeSettings the upgradeSettings value to set. * @return the AgentPoolPatchParameters object itself. */ @@ -116,7 +137,7 @@ public AgentPoolPatchParameters withUpgradeSettings(AgentPoolUpgradeSettings upg /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -124,4 +145,44 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolPatchParameters if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AgentPoolPatchParameters. + */ + public static AgentPoolPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolPatchParameters deserializedAgentPoolPatchParameters = new AgentPoolPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedAgentPoolPatchParameters.innerProperties = AgentPoolPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedAgentPoolPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolProvisioningState.java index 6d39053d61e6e..025d7f4cea76e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolProvisioningState.java @@ -5,35 +5,50 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the agent pool. */ +/** + * The provisioning state of the agent pool. + */ public final class AgentPoolProvisioningState extends ExpandableStringEnum { - /** Static value Accepted for AgentPoolProvisioningState. */ + /** + * Static value Accepted for AgentPoolProvisioningState. + */ public static final AgentPoolProvisioningState ACCEPTED = fromString("Accepted"); - /** Static value Canceled for AgentPoolProvisioningState. */ + /** + * Static value Canceled for AgentPoolProvisioningState. + */ public static final AgentPoolProvisioningState CANCELED = fromString("Canceled"); - /** Static value Deleting for AgentPoolProvisioningState. */ + /** + * Static value Deleting for AgentPoolProvisioningState. + */ public static final AgentPoolProvisioningState DELETING = fromString("Deleting"); - /** Static value Failed for AgentPoolProvisioningState. */ + /** + * Static value Failed for AgentPoolProvisioningState. + */ public static final AgentPoolProvisioningState FAILED = fromString("Failed"); - /** Static value InProgress for AgentPoolProvisioningState. */ + /** + * Static value InProgress for AgentPoolProvisioningState. + */ public static final AgentPoolProvisioningState IN_PROGRESS = fromString("InProgress"); - /** Static value Succeeded for AgentPoolProvisioningState. */ + /** + * Static value Succeeded for AgentPoolProvisioningState. + */ public static final AgentPoolProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Updating for AgentPoolProvisioningState. */ + /** + * Static value Updating for AgentPoolProvisioningState. + */ public static final AgentPoolProvisioningState UPDATING = fromString("Updating"); /** * Creates a new instance of AgentPoolProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -42,18 +57,17 @@ public AgentPoolProvisioningState() { /** * Creates or finds a AgentPoolProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding AgentPoolProvisioningState. */ - @JsonCreator public static AgentPoolProvisioningState fromString(String name) { return fromString(name, AgentPoolProvisioningState.class); } /** * Gets known AgentPoolProvisioningState values. - * + * * @return known AgentPoolProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolUpgradeSettings.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolUpgradeSettings.java index 9cd70642ab3b9..aa6d8de3eec3c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolUpgradeSettings.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPoolUpgradeSettings.java @@ -5,30 +5,74 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. */ +/** + * AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. + */ @Fluent -public final class AgentPoolUpgradeSettings { +public final class AgentPoolUpgradeSettings implements JsonSerializable { + /* + * The maximum time in seconds that is allowed for a node drain to complete before proceeding with the upgrade of + * the agent pool. If not specified during creation, a value of 1800 seconds is used. + */ + private Long drainTimeout; + /* * The maximum number or percentage of nodes that are surged during upgrade. This can either be set to an integer * (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent - * pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the - * default is 1. + * pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified during + * creation, a value of 1 is used. One of MaxSurge and MaxUnavailable must be greater than 0. */ - @JsonProperty(value = "maxSurge") private String maxSurge; - /** Creates an instance of AgentPoolUpgradeSettings class. */ + /* + * The maximum number or percentage of nodes that can be unavailable during upgrade. This can either be set to an + * integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total + * agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified + * during creation, a value of 0 is used. One of MaxSurge and MaxUnavailable must be greater than 0. + */ + private String maxUnavailable; + + /** + * Creates an instance of AgentPoolUpgradeSettings class. + */ public AgentPoolUpgradeSettings() { } + /** + * Get the drainTimeout property: The maximum time in seconds that is allowed for a node drain to complete before + * proceeding with the upgrade of the agent pool. If not specified during creation, a value of 1800 seconds is used. + * + * @return the drainTimeout value. + */ + public Long drainTimeout() { + return this.drainTimeout; + } + + /** + * Set the drainTimeout property: The maximum time in seconds that is allowed for a node drain to complete before + * proceeding with the upgrade of the agent pool. If not specified during creation, a value of 1800 seconds is used. + * + * @param drainTimeout the drainTimeout value to set. + * @return the AgentPoolUpgradeSettings object itself. + */ + public AgentPoolUpgradeSettings withDrainTimeout(Long drainTimeout) { + this.drainTimeout = drainTimeout; + return this; + } + /** * Get the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade. This can * either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the * percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded - * up. If not specified, the default is 1. - * + * up. If not specified during creation, a value of 1 is used. One of MaxSurge and MaxUnavailable must be greater + * than 0. + * * @return the maxSurge value. */ public String maxSurge() { @@ -39,8 +83,9 @@ public String maxSurge() { * Set the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade. This can * either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the * percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded - * up. If not specified, the default is 1. - * + * up. If not specified during creation, a value of 1 is used. One of MaxSurge and MaxUnavailable must be greater + * than 0. + * * @param maxSurge the maxSurge value to set. * @return the AgentPoolUpgradeSettings object itself. */ @@ -49,11 +94,81 @@ public AgentPoolUpgradeSettings withMaxSurge(String maxSurge) { return this; } + /** + * Get the maxUnavailable property: The maximum number or percentage of nodes that can be unavailable during + * upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is + * specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, + * fractional nodes are rounded up. If not specified during creation, a value of 0 is used. One of MaxSurge and + * MaxUnavailable must be greater than 0. + * + * @return the maxUnavailable value. + */ + public String maxUnavailable() { + return this.maxUnavailable; + } + + /** + * Set the maxUnavailable property: The maximum number or percentage of nodes that can be unavailable during + * upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is + * specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, + * fractional nodes are rounded up. If not specified during creation, a value of 0 is used. One of MaxSurge and + * MaxUnavailable must be greater than 0. + * + * @param maxUnavailable the maxUnavailable value to set. + * @return the AgentPoolUpgradeSettings object itself. + */ + public AgentPoolUpgradeSettings withMaxUnavailable(String maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return this; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("drainTimeout", this.drainTimeout); + jsonWriter.writeStringField("maxSurge", this.maxSurge); + jsonWriter.writeStringField("maxUnavailable", this.maxUnavailable); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolUpgradeSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolUpgradeSettings if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AgentPoolUpgradeSettings. + */ + public static AgentPoolUpgradeSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolUpgradeSettings deserializedAgentPoolUpgradeSettings = new AgentPoolUpgradeSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("drainTimeout".equals(fieldName)) { + deserializedAgentPoolUpgradeSettings.drainTimeout = reader.getNullable(JsonReader::getLong); + } else if ("maxSurge".equals(fieldName)) { + deserializedAgentPoolUpgradeSettings.maxSurge = reader.getString(); + } else if ("maxUnavailable".equals(fieldName)) { + deserializedAgentPoolUpgradeSettings.maxUnavailable = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolUpgradeSettings; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPools.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPools.java index 4ff1b119ea879..d67b94c91536f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPools.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AgentPools.java @@ -8,45 +8,47 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of AgentPools. */ +/** + * Resource collection API of AgentPools. + */ public interface AgentPools { /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of agent pools for the provided Kubernetes cluster as paginated response with {@link - * PagedIterable}. + * @return a list of agent pools for the provided Kubernetes cluster as paginated response with + * {@link PagedIterable}. */ PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName); /** * List agent pools of the Kubernetes cluster. - * - *

Get a list of agent pools for the provided Kubernetes cluster. - * + * + * Get a list of agent pools for the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of agent pools for the provided Kubernetes cluster as paginated response with {@link - * PagedIterable}. + * @return a list of agent pools for the provided Kubernetes cluster as paginated response with + * {@link PagedIterable}. */ PagedIterable listByKubernetesCluster(String resourceGroupName, String kubernetesClusterName, Context context); /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -61,9 +63,9 @@ Response getWithResponse(String resourceGroupName, String kubernetesC /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -76,23 +78,24 @@ Response getWithResponse(String resourceGroupName, String kubernetesC /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName); + OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName); /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param agentPoolName The name of the Kubernetes cluster agent pool. @@ -100,14 +103,16 @@ Response getWithResponse(String resourceGroupName, String kubernetesC * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, Context context); + OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String agentPoolName, + Context context); /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -118,9 +123,9 @@ Response getWithResponse(String resourceGroupName, String kubernetesC /** * Retrieve the Kubernetes cluster agent pool. - * - *

Get properties of the provided Kubernetes cluster agent pool. - * + * + * Get properties of the provided Kubernetes cluster agent pool. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,32 +137,34 @@ Response getWithResponse(String resourceGroupName, String kubernetesC /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the Kubernetes cluster agent pool. - * - *

Delete the provided Kubernetes cluster agent pool. - * + * + * Delete the provided Kubernetes cluster agent pool. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new AgentPool resource. - * + * * @param name resource name. * @return the first stage of the new AgentPool definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AttachedNetworkConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AttachedNetworkConfiguration.java index 60eb8d51aa487..5f261713b79ef 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AttachedNetworkConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AttachedNetworkConfiguration.java @@ -5,37 +5,42 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** AttachedNetworkConfiguration represents the set of workload networks to attach to a resource. */ +/** + * AttachedNetworkConfiguration represents the set of workload networks to attach to a resource. + */ @Fluent -public final class AttachedNetworkConfiguration { +public final class AttachedNetworkConfiguration implements JsonSerializable { /* * The list of Layer 2 Networks and related configuration for attachment. */ - @JsonProperty(value = "l2Networks") private List l2Networks; /* * The list of Layer 3 Networks and related configuration for attachment. */ - @JsonProperty(value = "l3Networks") private List l3Networks; /* * The list of Trunked Networks and related configuration for attachment. */ - @JsonProperty(value = "trunkedNetworks") private List trunkedNetworks; - /** Creates an instance of AttachedNetworkConfiguration class. */ + /** + * Creates an instance of AttachedNetworkConfiguration class. + */ public AttachedNetworkConfiguration() { } /** * Get the l2Networks property: The list of Layer 2 Networks and related configuration for attachment. - * + * * @return the l2Networks value. */ public List l2Networks() { @@ -44,7 +49,7 @@ public List l2Networks() { /** * Set the l2Networks property: The list of Layer 2 Networks and related configuration for attachment. - * + * * @param l2Networks the l2Networks value to set. * @return the AttachedNetworkConfiguration object itself. */ @@ -55,7 +60,7 @@ public AttachedNetworkConfiguration withL2Networks(List l3Networks() { @@ -64,7 +69,7 @@ public List l3Networks() { /** * Set the l3Networks property: The list of Layer 3 Networks and related configuration for attachment. - * + * * @param l3Networks the l3Networks value to set. * @return the AttachedNetworkConfiguration object itself. */ @@ -75,7 +80,7 @@ public AttachedNetworkConfiguration withL3Networks(List trunkedNetworks() { @@ -84,7 +89,7 @@ public List trunkedNetworks() { /** * Set the trunkedNetworks property: The list of Trunked Networks and related configuration for attachment. - * + * * @param trunkedNetworks the trunkedNetworks value to set. * @return the AttachedNetworkConfiguration object itself. */ @@ -96,7 +101,7 @@ public List trunkedNetworks() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -110,4 +115,53 @@ public void validate() { trunkedNetworks().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("l2Networks", this.l2Networks, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("l3Networks", this.l3Networks, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("trunkedNetworks", this.trunkedNetworks, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AttachedNetworkConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AttachedNetworkConfiguration if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AttachedNetworkConfiguration. + */ + public static AttachedNetworkConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AttachedNetworkConfiguration deserializedAttachedNetworkConfiguration = new AttachedNetworkConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("l2Networks".equals(fieldName)) { + List l2Networks + = reader.readArray(reader1 -> L2NetworkAttachmentConfiguration.fromJson(reader1)); + deserializedAttachedNetworkConfiguration.l2Networks = l2Networks; + } else if ("l3Networks".equals(fieldName)) { + List l3Networks + = reader.readArray(reader1 -> L3NetworkAttachmentConfiguration.fromJson(reader1)); + deserializedAttachedNetworkConfiguration.l3Networks = l3Networks; + } else if ("trunkedNetworks".equals(fieldName)) { + List trunkedNetworks + = reader.readArray(reader1 -> TrunkedNetworkAttachmentConfiguration.fromJson(reader1)); + deserializedAttachedNetworkConfiguration.trunkedNetworks = trunkedNetworks; + } else { + reader.skipChildren(); + } + } + + return deserializedAttachedNetworkConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailabilityLifecycle.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailabilityLifecycle.java index cf33c00295e51..85432d4e59855 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailabilityLifecycle.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailabilityLifecycle.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The version lifecycle indicator. */ +/** + * The version lifecycle indicator. + */ public final class AvailabilityLifecycle extends ExpandableStringEnum { - /** Static value Preview for AvailabilityLifecycle. */ + /** + * Static value Preview for AvailabilityLifecycle. + */ public static final AvailabilityLifecycle PREVIEW = fromString("Preview"); - /** Static value GenerallyAvailable for AvailabilityLifecycle. */ + /** + * Static value GenerallyAvailable for AvailabilityLifecycle. + */ public static final AvailabilityLifecycle GENERALLY_AVAILABLE = fromString("GenerallyAvailable"); /** * Creates a new instance of AvailabilityLifecycle value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public AvailabilityLifecycle() { /** * Creates or finds a AvailabilityLifecycle from its string representation. - * + * * @param name a name to look for. * @return the corresponding AvailabilityLifecycle. */ - @JsonCreator public static AvailabilityLifecycle fromString(String name) { return fromString(name, AvailabilityLifecycle.class); } /** * Gets known AvailabilityLifecycle values. - * + * * @return known AvailabilityLifecycle values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailableUpgrade.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailableUpgrade.java index 6473783059559..03ba1e29378c9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailableUpgrade.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/AvailableUpgrade.java @@ -5,30 +5,36 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** AvailableUpgrade represents an upgrade available for a Kubernetes cluster. */ +/** + * AvailableUpgrade represents an upgrade available for a Kubernetes cluster. + */ @Immutable -public final class AvailableUpgrade { +public final class AvailableUpgrade implements JsonSerializable { /* * The version lifecycle indicator. */ - @JsonProperty(value = "availabilityLifecycle", access = JsonProperty.Access.WRITE_ONLY) private AvailabilityLifecycle availabilityLifecycle; /* * The version available for upgrading. */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) private String version; - /** Creates an instance of AvailableUpgrade class. */ + /** + * Creates an instance of AvailableUpgrade class. + */ public AvailableUpgrade() { } /** * Get the availabilityLifecycle property: The version lifecycle indicator. - * + * * @return the availabilityLifecycle value. */ public AvailabilityLifecycle availabilityLifecycle() { @@ -37,7 +43,7 @@ public AvailabilityLifecycle availabilityLifecycle() { /** * Get the version property: The version available for upgrading. - * + * * @return the version value. */ public String version() { @@ -46,9 +52,47 @@ public String version() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AvailableUpgrade from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AvailableUpgrade if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the AvailableUpgrade. + */ + public static AvailableUpgrade fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AvailableUpgrade deserializedAvailableUpgrade = new AvailableUpgrade(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("availabilityLifecycle".equals(fieldName)) { + deserializedAvailableUpgrade.availabilityLifecycle + = AvailabilityLifecycle.fromString(reader.getString()); + } else if ("version".equals(fieldName)) { + deserializedAvailableUpgrade.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAvailableUpgrade; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachine.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachine.java index 458c70aa7903e..4bc4d1cb6e8af 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachine.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachine.java @@ -11,56 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of BareMetalMachine. */ +/** + * An immutable client-side representation of BareMetalMachine. + */ public interface BareMetalMachine { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -68,7 +67,7 @@ public interface BareMetalMachine { /** * Gets the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ List associatedResourceIds(); @@ -76,81 +75,73 @@ public interface BareMetalMachine { /** * Gets the bmcConnectionString property: The connection string for the baseboard management controller including IP * address and protocol. - * + * * @return the bmcConnectionString value. */ String bmcConnectionString(); /** - * Gets the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Gets the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @return the bmcCredentials value. */ AdministrativeCredentials bmcCredentials(); /** * Gets the bmcMacAddress property: The MAC address of the BMC device. - * + * * @return the bmcMacAddress value. */ String bmcMacAddress(); /** * Gets the bootMacAddress property: The MAC address of a NIC connected to the PXE network. - * + * * @return the bootMacAddress value. */ String bootMacAddress(); /** * Gets the clusterId property: The resource ID of the cluster this bare metal machine is associated with. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the cordonStatus property: The cordon status of the bare metal machine. - * + * * @return the cordonStatus value. */ BareMetalMachineCordonStatus cordonStatus(); /** * Gets the detailedStatus property: The more detailed status of the bare metal machine. - * + * * @return the detailedStatus value. */ BareMetalMachineDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** - * Gets the hardwareInventory property: HardwareInventory represents the hardware configuration of this machine as - * exposed to the customer, including information acquired from the model/sku information and from the ironic - * inspector. - * - *

The hardware inventory, including information acquired from the model/sku information and from the ironic - * inspector. - * + * Gets the hardwareInventory property: The hardware inventory, including information acquired from the model/sku + * information and from the ironic inspector. + * * @return the hardwareInventory value. */ HardwareInventory hardwareInventory(); /** - * Gets the hardwareValidationStatus property: HardwareValidationStatus represents the latest hardware validation - * details performed for this bare metal machine. - * - *

The details of the latest hardware validation performed for this bare metal machine. - * + * Gets the hardwareValidationStatus property: The details of the latest hardware validation performed for this bare + * metal machine. + * * @return the hardwareValidationStatus value. */ HardwareValidationStatus hardwareValidationStatus(); @@ -158,7 +149,7 @@ public interface BareMetalMachine { /** * Gets the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of the resource IDs for the HybridAksClusters that have nodes hosted on this bare metal machine. - * + * * @return the hybridAksClustersAssociatedIds value. */ List hybridAksClustersAssociatedIds(); @@ -166,35 +157,50 @@ public interface BareMetalMachine { /** * Gets the kubernetesNodeName property: The name of this machine represented by the host object in the Cluster's * Kubernetes control plane. - * + * * @return the kubernetesNodeName value. */ String kubernetesNodeName(); /** * Gets the kubernetesVersion property: The version of Kubernetes running on this machine. - * + * * @return the kubernetesVersion value. */ String kubernetesVersion(); + /** + * Gets the machineClusterVersion property: The cluster version that has been applied to this machine during + * deployment or a version update. + * + * @return the machineClusterVersion value. + */ + String machineClusterVersion(); + /** * Gets the machineDetails property: The custom details provided by the customer. - * + * * @return the machineDetails value. */ String machineDetails(); /** * Gets the machineName property: The OS-level hostname assigned to this machine. - * + * * @return the machineName value. */ String machineName(); + /** + * Gets the machineRoles property: The list of roles that are assigned to the cluster node running on this machine. + * + * @return the machineRoles value. + */ + List machineRoles(); + /** * Gets the machineSkuId property: The unique internal identifier of the bare metal machine SKU. - * + * * @return the machineSkuId value. */ String machineSkuId(); @@ -202,7 +208,7 @@ public interface BareMetalMachine { /** * Gets the oamIpv4Address property: The IPv4 address that is assigned to the bare metal machine during the cluster * deployment. - * + * * @return the oamIpv4Address value. */ String oamIpv4Address(); @@ -210,35 +216,35 @@ public interface BareMetalMachine { /** * Gets the oamIpv6Address property: The IPv6 address that is assigned to the bare metal machine during the cluster * deployment. - * + * * @return the oamIpv6Address value. */ String oamIpv6Address(); /** * Gets the osImage property: The image that is currently provisioned to the OS disk. - * + * * @return the osImage value. */ String osImage(); /** * Gets the powerState property: The power state derived from the baseboard management controller. - * + * * @return the powerState value. */ BareMetalMachinePowerState powerState(); /** * Gets the provisioningState property: The provisioning state of the bare metal machine. - * + * * @return the provisioningState value. */ BareMetalMachineProvisioningState provisioningState(); /** * Gets the rackId property: The resource ID of the rack where this bare metal machine resides. - * + * * @return the rackId value. */ String rackId(); @@ -246,28 +252,42 @@ public interface BareMetalMachine { /** * Gets the rackSlot property: The rack slot in which this bare metal machine is located, ordered from the bottom up * i.e. the lowest slot is 1. - * + * * @return the rackSlot value. */ long rackSlot(); /** * Gets the readyState property: The indicator of whether the bare metal machine is ready to receive workloads. - * + * * @return the readyState value. */ BareMetalMachineReadyState readyState(); + /** + * Gets the runtimeProtectionStatus property: The runtime protection status of the bare metal machine. + * + * @return the runtimeProtectionStatus value. + */ + RuntimeProtectionStatus runtimeProtectionStatus(); + + /** + * Gets the secretRotationStatus property: The list of statuses that represent secret rotation activity. + * + * @return the secretRotationStatus value. + */ + List secretRotationStatus(); + /** * Gets the serialNumber property: The serial number of the bare metal machine. - * + * * @return the serialNumber value. */ String serialNumber(); /** * Gets the serviceTag property: The discovered value of the machine's service tag. - * + * * @return the serviceTag value. */ String serviceTag(); @@ -275,40 +295,42 @@ public interface BareMetalMachine { /** * Gets the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * the resource IDs for the VirtualMachines that are hosted on this bare metal machine. - * + * * @return the virtualMachinesAssociatedIds value. */ List virtualMachinesAssociatedIds(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineInner object. - * + * * @return the inner object. */ BareMetalMachineInner innerModel(); - /** The entirety of the BareMetalMachine definition. */ + /** + * The entirety of the BareMetalMachine definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithBmcConnectionString, DefinitionStages.WithBmcCredentials, @@ -317,17 +339,23 @@ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocati DefinitionStages.WithRackSlot, DefinitionStages.WithSerialNumber, DefinitionStages.WithCreate { } - /** The BareMetalMachine definition stages. */ + /** + * The BareMetalMachine definition stages. + */ interface DefinitionStages { - /** The first stage of the BareMetalMachine definition. */ + /** + * The first stage of the BareMetalMachine definition. + */ interface Blank extends WithLocation { } - /** The stage of the BareMetalMachine definition allowing to specify location. */ + /** + * The stage of the BareMetalMachine definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -335,153 +363,169 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the BareMetalMachine definition allowing to specify parent resource. */ + /** + * The stage of the BareMetalMachine definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the BareMetalMachine definition allowing to specify extendedLocation. */ + /** + * The stage of the BareMetalMachine definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithBmcConnectionString withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the BareMetalMachine definition allowing to specify bmcConnectionString. */ + /** + * The stage of the BareMetalMachine definition allowing to specify bmcConnectionString. + */ interface WithBmcConnectionString { /** * Specifies the bmcConnectionString property: The connection string for the baseboard management controller * including IP address and protocol.. - * + * * @param bmcConnectionString The connection string for the baseboard management controller including IP - * address and protocol. + * address and protocol. * @return the next definition stage. */ WithBmcCredentials withBmcConnectionString(String bmcConnectionString); } - /** The stage of the BareMetalMachine definition allowing to specify bmcCredentials. */ + /** + * The stage of the BareMetalMachine definition allowing to specify bmcCredentials. + */ interface WithBmcCredentials { /** - * Specifies the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the - * device requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine.. - * - * @param bmcCredentials AdministrativeCredentials represents the admin credentials for the device requiring - * password-based authentication. - *

The credentials of the baseboard management controller on this bare metal machine. + * Specifies the bmcCredentials property: The credentials of the baseboard management controller on this + * bare metal machine.. + * + * @param bmcCredentials The credentials of the baseboard management controller on this bare metal machine. * @return the next definition stage. */ WithBmcMacAddress withBmcCredentials(AdministrativeCredentials bmcCredentials); } - /** The stage of the BareMetalMachine definition allowing to specify bmcMacAddress. */ + /** + * The stage of the BareMetalMachine definition allowing to specify bmcMacAddress. + */ interface WithBmcMacAddress { /** * Specifies the bmcMacAddress property: The MAC address of the BMC device.. - * + * * @param bmcMacAddress The MAC address of the BMC device. * @return the next definition stage. */ WithBootMacAddress withBmcMacAddress(String bmcMacAddress); } - /** The stage of the BareMetalMachine definition allowing to specify bootMacAddress. */ + /** + * The stage of the BareMetalMachine definition allowing to specify bootMacAddress. + */ interface WithBootMacAddress { /** * Specifies the bootMacAddress property: The MAC address of a NIC connected to the PXE network.. - * + * * @param bootMacAddress The MAC address of a NIC connected to the PXE network. * @return the next definition stage. */ WithMachineDetails withBootMacAddress(String bootMacAddress); } - /** The stage of the BareMetalMachine definition allowing to specify machineDetails. */ + /** + * The stage of the BareMetalMachine definition allowing to specify machineDetails. + */ interface WithMachineDetails { /** * Specifies the machineDetails property: The custom details provided by the customer.. - * + * * @param machineDetails The custom details provided by the customer. * @return the next definition stage. */ WithMachineName withMachineDetails(String machineDetails); } - /** The stage of the BareMetalMachine definition allowing to specify machineName. */ + /** + * The stage of the BareMetalMachine definition allowing to specify machineName. + */ interface WithMachineName { /** * Specifies the machineName property: The OS-level hostname assigned to this machine.. - * + * * @param machineName The OS-level hostname assigned to this machine. * @return the next definition stage. */ WithMachineSkuId withMachineName(String machineName); } - /** The stage of the BareMetalMachine definition allowing to specify machineSkuId. */ + /** + * The stage of the BareMetalMachine definition allowing to specify machineSkuId. + */ interface WithMachineSkuId { /** * Specifies the machineSkuId property: The unique internal identifier of the bare metal machine SKU.. - * + * * @param machineSkuId The unique internal identifier of the bare metal machine SKU. * @return the next definition stage. */ WithRackId withMachineSkuId(String machineSkuId); } - /** The stage of the BareMetalMachine definition allowing to specify rackId. */ + /** + * The stage of the BareMetalMachine definition allowing to specify rackId. + */ interface WithRackId { /** * Specifies the rackId property: The resource ID of the rack where this bare metal machine resides.. - * + * * @param rackId The resource ID of the rack where this bare metal machine resides. * @return the next definition stage. */ WithRackSlot withRackId(String rackId); } - /** The stage of the BareMetalMachine definition allowing to specify rackSlot. */ + /** + * The stage of the BareMetalMachine definition allowing to specify rackSlot. + */ interface WithRackSlot { /** * Specifies the rackSlot property: The rack slot in which this bare metal machine is located, ordered from * the bottom up i.e. the lowest slot is 1.. - * + * * @param rackSlot The rack slot in which this bare metal machine is located, ordered from the bottom up - * i.e. the lowest slot is 1. + * i.e. the lowest slot is 1. * @return the next definition stage. */ WithSerialNumber withRackSlot(long rackSlot); } - /** The stage of the BareMetalMachine definition allowing to specify serialNumber. */ + /** + * The stage of the BareMetalMachine definition allowing to specify serialNumber. + */ interface WithSerialNumber { /** * Specifies the serialNumber property: The serial number of the bare metal machine.. - * + * * @param serialNumber The serial number of the bare metal machine. * @return the next definition stage. */ @@ -492,81 +536,107 @@ interface WithSerialNumber { * The stage of the BareMetalMachine definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithMachineClusterVersion { /** * Executes the create request. - * + * * @return the created resource. */ BareMetalMachine create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ BareMetalMachine create(Context context); } - /** The stage of the BareMetalMachine definition allowing to specify tags. */ + /** + * The stage of the BareMetalMachine definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } + + /** + * The stage of the BareMetalMachine definition allowing to specify machineClusterVersion. + */ + interface WithMachineClusterVersion { + /** + * Specifies the machineClusterVersion property: The cluster version that has been applied to this machine + * during deployment or a version update.. + * + * @param machineClusterVersion The cluster version that has been applied to this machine during deployment + * or a version update. + * @return the next definition stage. + */ + WithCreate withMachineClusterVersion(String machineClusterVersion); + } } /** * Begins update for the BareMetalMachine resource. - * + * * @return the stage of resource update. */ BareMetalMachine.Update update(); - /** The template for BareMetalMachine update. */ + /** + * The template for BareMetalMachine update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithMachineDetails { /** * Executes the update request. - * + * * @return the updated resource. */ BareMetalMachine apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ BareMetalMachine apply(Context context); } - /** The BareMetalMachine update stages. */ + /** + * The BareMetalMachine update stages. + */ interface UpdateStages { - /** The stage of the BareMetalMachine update allowing to specify tags. */ + /** + * The stage of the BareMetalMachine update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the BareMetalMachine update allowing to specify machineDetails. */ + /** + * The stage of the BareMetalMachine update allowing to specify machineDetails. + */ interface WithMachineDetails { /** * Specifies the machineDetails property: The details provided by the customer during the creation of rack - * manifests that allows for custom data to be associated with this machine.. - * - * @param machineDetails The details provided by the customer during the creation of rack manifests that - * allows for custom data to be associated with this machine. + * manifests + * that allows for custom data to be associated with this machine.. + * + * @param machineDetails The details provided by the customer during the creation of rack manifests + * that allows for custom data to be associated with this machine. * @return the next definition stage. */ Update withMachineDetails(String machineDetails); @@ -575,14 +645,14 @@ interface WithMachineDetails { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ BareMetalMachine refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -590,9 +660,9 @@ interface WithMachineDetails { /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -601,9 +671,9 @@ interface WithMachineDetails { /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param bareMetalMachineCordonParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -615,9 +685,9 @@ interface WithMachineDetails { /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -626,9 +696,9 @@ interface WithMachineDetails { /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param bareMetalMachinePowerOffParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -641,9 +711,9 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -652,9 +722,9 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -665,9 +735,9 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -676,9 +746,9 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param bareMetalMachineReplaceParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -690,9 +760,9 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -701,9 +771,9 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -714,10 +784,10 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param bareMetalMachineRunCommandParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -728,10 +798,10 @@ OperationStatusResult powerOff(BareMetalMachinePowerOffParameters bareMetalMachi /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param bareMetalMachineRunCommandParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -744,11 +814,10 @@ OperationStatusResult runCommand(BareMetalMachineRunCommandParameters bareMetalM /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param bareMetalMachineRunDataExtractsParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -760,11 +829,10 @@ OperationStatusResult runCommand(BareMetalMachineRunCommandParameters bareMetalM /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param bareMetalMachineRunDataExtractsParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -777,11 +845,11 @@ OperationStatusResult runDataExtracts( /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param bareMetalMachineRunReadCommandsParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -793,11 +861,11 @@ OperationStatusResult runDataExtracts( /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param bareMetalMachineRunReadCommandsParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -810,9 +878,9 @@ OperationStatusResult runReadCommands( /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -821,9 +889,9 @@ OperationStatusResult runReadCommands( /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -834,9 +902,9 @@ OperationStatusResult runReadCommands( /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -845,9 +913,9 @@ OperationStatusResult runReadCommands( /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCommandSpecification.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCommandSpecification.java index 2bd059c107bb4..75789825cb722 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCommandSpecification.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCommandSpecification.java @@ -6,7 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,27 +18,28 @@ * machine. */ @Fluent -public final class BareMetalMachineCommandSpecification { +public final class BareMetalMachineCommandSpecification + implements JsonSerializable { /* * The list of string arguments that will be passed to the script in order as separate arguments. */ - @JsonProperty(value = "arguments") private List arguments; /* * The command to execute against the bare metal machine. */ - @JsonProperty(value = "command", required = true) private String command; - /** Creates an instance of BareMetalMachineCommandSpecification class. */ + /** + * Creates an instance of BareMetalMachineCommandSpecification class. + */ public BareMetalMachineCommandSpecification() { } /** * Get the arguments property: The list of string arguments that will be passed to the script in order as separate * arguments. - * + * * @return the arguments value. */ public List arguments() { @@ -44,7 +49,7 @@ public List arguments() { /** * Set the arguments property: The list of string arguments that will be passed to the script in order as separate * arguments. - * + * * @param arguments the arguments value to set. * @return the BareMetalMachineCommandSpecification object itself. */ @@ -55,7 +60,7 @@ public BareMetalMachineCommandSpecification withArguments(List arguments /** * Get the command property: The command to execute against the bare metal machine. - * + * * @return the command value. */ public String command() { @@ -64,7 +69,7 @@ public String command() { /** * Set the command property: The command to execute against the bare metal machine. - * + * * @param command the command value to set. * @return the BareMetalMachineCommandSpecification object itself. */ @@ -75,15 +80,58 @@ public BareMetalMachineCommandSpecification withCommand(String command) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (command() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property command in model BareMetalMachineCommandSpecification")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property command in model BareMetalMachineCommandSpecification")); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineCommandSpecification.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("command", this.command); + jsonWriter.writeArrayField("arguments", this.arguments, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineCommandSpecification from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineCommandSpecification if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineCommandSpecification. + */ + public static BareMetalMachineCommandSpecification fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineCommandSpecification deserializedBareMetalMachineCommandSpecification + = new BareMetalMachineCommandSpecification(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("command".equals(fieldName)) { + deserializedBareMetalMachineCommandSpecification.command = reader.getString(); + } else if ("arguments".equals(fieldName)) { + List arguments = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineCommandSpecification.arguments = arguments; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineCommandSpecification; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java index c84df29a009fb..c8430730e8d8d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineConfigurationData.java @@ -6,71 +6,68 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** BareMetalMachineConfigurationData represents configuration for the bare metal machine. */ +/** + * BareMetalMachineConfigurationData represents configuration for the bare metal machine. + */ @Fluent -public final class BareMetalMachineConfigurationData { +public final class BareMetalMachineConfigurationData implements JsonSerializable { /* * The connection string for the baseboard management controller including IP address and protocol. */ - @JsonProperty(value = "bmcConnectionString", access = JsonProperty.Access.WRITE_ONLY) private String bmcConnectionString; /* - * AdministrativeCredentials represents the admin credentials for the device requiring password-based - * authentication. - * * The credentials of the baseboard management controller on this bare metal machine. */ - @JsonProperty(value = "bmcCredentials", required = true) private AdministrativeCredentials bmcCredentials; /* * The MAC address of the BMC for this machine. */ - @JsonProperty(value = "bmcMacAddress", required = true) private String bmcMacAddress; /* * The MAC address associated with the PXE NIC card. */ - @JsonProperty(value = "bootMacAddress", required = true) private String bootMacAddress; /* * The free-form additional information about the machine, e.g. an asset tag. */ - @JsonProperty(value = "machineDetails") private String machineDetails; /* * The user-provided name for the bare metal machine created from this specification. * If not provided, the machine name will be generated programmatically. */ - @JsonProperty(value = "machineName") private String machineName; /* * The slot the physical machine is in the rack based on the BOM configuration. */ - @JsonProperty(value = "rackSlot", required = true) private long rackSlot; /* * The serial number of the machine. Hardware suppliers may use an alternate value. For example, service tag. */ - @JsonProperty(value = "serialNumber", required = true) private String serialNumber; - /** Creates an instance of BareMetalMachineConfigurationData class. */ + /** + * Creates an instance of BareMetalMachineConfigurationData class. + */ public BareMetalMachineConfigurationData() { } /** * Get the bmcConnectionString property: The connection string for the baseboard management controller including IP * address and protocol. - * + * * @return the bmcConnectionString value. */ public String bmcConnectionString() { @@ -78,11 +75,9 @@ public String bmcConnectionString() { } /** - * Get the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Get the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @return the bmcCredentials value. */ public AdministrativeCredentials bmcCredentials() { @@ -90,11 +85,9 @@ public AdministrativeCredentials bmcCredentials() { } /** - * Set the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Set the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @param bmcCredentials the bmcCredentials value to set. * @return the BareMetalMachineConfigurationData object itself. */ @@ -105,7 +98,7 @@ public BareMetalMachineConfigurationData withBmcCredentials(AdministrativeCreden /** * Get the bmcMacAddress property: The MAC address of the BMC for this machine. - * + * * @return the bmcMacAddress value. */ public String bmcMacAddress() { @@ -114,7 +107,7 @@ public String bmcMacAddress() { /** * Set the bmcMacAddress property: The MAC address of the BMC for this machine. - * + * * @param bmcMacAddress the bmcMacAddress value to set. * @return the BareMetalMachineConfigurationData object itself. */ @@ -125,7 +118,7 @@ public BareMetalMachineConfigurationData withBmcMacAddress(String bmcMacAddress) /** * Get the bootMacAddress property: The MAC address associated with the PXE NIC card. - * + * * @return the bootMacAddress value. */ public String bootMacAddress() { @@ -134,7 +127,7 @@ public String bootMacAddress() { /** * Set the bootMacAddress property: The MAC address associated with the PXE NIC card. - * + * * @param bootMacAddress the bootMacAddress value to set. * @return the BareMetalMachineConfigurationData object itself. */ @@ -145,7 +138,7 @@ public BareMetalMachineConfigurationData withBootMacAddress(String bootMacAddres /** * Get the machineDetails property: The free-form additional information about the machine, e.g. an asset tag. - * + * * @return the machineDetails value. */ public String machineDetails() { @@ -154,7 +147,7 @@ public String machineDetails() { /** * Set the machineDetails property: The free-form additional information about the machine, e.g. an asset tag. - * + * * @param machineDetails the machineDetails value to set. * @return the BareMetalMachineConfigurationData object itself. */ @@ -166,7 +159,7 @@ public BareMetalMachineConfigurationData withMachineDetails(String machineDetail /** * Get the machineName property: The user-provided name for the bare metal machine created from this specification. * If not provided, the machine name will be generated programmatically. - * + * * @return the machineName value. */ public String machineName() { @@ -176,7 +169,7 @@ public String machineName() { /** * Set the machineName property: The user-provided name for the bare metal machine created from this specification. * If not provided, the machine name will be generated programmatically. - * + * * @param machineName the machineName value to set. * @return the BareMetalMachineConfigurationData object itself. */ @@ -187,7 +180,7 @@ public BareMetalMachineConfigurationData withMachineName(String machineName) { /** * Get the rackSlot property: The slot the physical machine is in the rack based on the BOM configuration. - * + * * @return the rackSlot value. */ public long rackSlot() { @@ -196,7 +189,7 @@ public long rackSlot() { /** * Set the rackSlot property: The slot the physical machine is in the rack based on the BOM configuration. - * + * * @param rackSlot the rackSlot value to set. * @return the BareMetalMachineConfigurationData object itself. */ @@ -208,7 +201,7 @@ public BareMetalMachineConfigurationData withRackSlot(long rackSlot) { /** * Get the serialNumber property: The serial number of the machine. Hardware suppliers may use an alternate value. * For example, service tag. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -218,7 +211,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number of the machine. Hardware suppliers may use an alternate value. * For example, service tag. - * + * * @param serialNumber the serialNumber value to set. * @return the BareMetalMachineConfigurationData object itself. */ @@ -229,29 +222,92 @@ public BareMetalMachineConfigurationData withSerialNumber(String serialNumber) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (bmcCredentials() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property bmcCredentials in model BareMetalMachineConfigurationData")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property bmcCredentials in model BareMetalMachineConfigurationData")); } else { bmcCredentials().validate(); } if (bmcMacAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property bmcMacAddress in model BareMetalMachineConfigurationData")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property bmcMacAddress in model BareMetalMachineConfigurationData")); } if (bootMacAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property bootMacAddress in model BareMetalMachineConfigurationData")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property bootMacAddress in model BareMetalMachineConfigurationData")); } if (serialNumber() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property serialNumber in model BareMetalMachineConfigurationData")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property serialNumber in model BareMetalMachineConfigurationData")); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineConfigurationData.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("bmcCredentials", this.bmcCredentials); + jsonWriter.writeStringField("bmcMacAddress", this.bmcMacAddress); + jsonWriter.writeStringField("bootMacAddress", this.bootMacAddress); + jsonWriter.writeLongField("rackSlot", this.rackSlot); + jsonWriter.writeStringField("serialNumber", this.serialNumber); + jsonWriter.writeStringField("machineDetails", this.machineDetails); + jsonWriter.writeStringField("machineName", this.machineName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineConfigurationData from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineConfigurationData if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineConfigurationData. + */ + public static BareMetalMachineConfigurationData fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineConfigurationData deserializedBareMetalMachineConfigurationData + = new BareMetalMachineConfigurationData(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("bmcCredentials".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.bmcCredentials + = AdministrativeCredentials.fromJson(reader); + } else if ("bmcMacAddress".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.bmcMacAddress = reader.getString(); + } else if ("bootMacAddress".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.bootMacAddress = reader.getString(); + } else if ("rackSlot".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.rackSlot = reader.getLong(); + } else if ("serialNumber".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.serialNumber = reader.getString(); + } else if ("bmcConnectionString".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.bmcConnectionString = reader.getString(); + } else if ("machineDetails".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.machineDetails = reader.getString(); + } else if ("machineName".equals(fieldName)) { + deserializedBareMetalMachineConfigurationData.machineName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineConfigurationData; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonParameters.java index 02249eaf0d89c..163bd98f5c6f9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonParameters.java @@ -5,28 +5,33 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * BareMetalMachineCordonParameters represents the body of the request to evacuate workloads from node on a bare metal * machine. */ @Fluent -public final class BareMetalMachineCordonParameters { +public final class BareMetalMachineCordonParameters implements JsonSerializable { /* * The indicator of whether to evacuate the node workload when the bare metal machine is cordoned. */ - @JsonProperty(value = "evacuate") private BareMetalMachineEvacuate evacuate; - /** Creates an instance of BareMetalMachineCordonParameters class. */ + /** + * Creates an instance of BareMetalMachineCordonParameters class. + */ public BareMetalMachineCordonParameters() { } /** * Get the evacuate property: The indicator of whether to evacuate the node workload when the bare metal machine is * cordoned. - * + * * @return the evacuate value. */ public BareMetalMachineEvacuate evacuate() { @@ -36,7 +41,7 @@ public BareMetalMachineEvacuate evacuate() { /** * Set the evacuate property: The indicator of whether to evacuate the node workload when the bare metal machine is * cordoned. - * + * * @param evacuate the evacuate value to set. * @return the BareMetalMachineCordonParameters object itself. */ @@ -47,9 +52,47 @@ public BareMetalMachineCordonParameters withEvacuate(BareMetalMachineEvacuate ev /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("evacuate", this.evacuate == null ? null : this.evacuate.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineCordonParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineCordonParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachineCordonParameters. + */ + public static BareMetalMachineCordonParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineCordonParameters deserializedBareMetalMachineCordonParameters + = new BareMetalMachineCordonParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("evacuate".equals(fieldName)) { + deserializedBareMetalMachineCordonParameters.evacuate + = BareMetalMachineEvacuate.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineCordonParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonStatus.java index ba47f83edf6c1..4a77fbe91c386 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineCordonStatus.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The cordon status of the bare metal machine. */ +/** + * The cordon status of the bare metal machine. + */ public final class BareMetalMachineCordonStatus extends ExpandableStringEnum { - /** Static value Cordoned for BareMetalMachineCordonStatus. */ + /** + * Static value Cordoned for BareMetalMachineCordonStatus. + */ public static final BareMetalMachineCordonStatus CORDONED = fromString("Cordoned"); - /** Static value Uncordoned for BareMetalMachineCordonStatus. */ + /** + * Static value Uncordoned for BareMetalMachineCordonStatus. + */ public static final BareMetalMachineCordonStatus UNCORDONED = fromString("Uncordoned"); /** * Creates a new instance of BareMetalMachineCordonStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BareMetalMachineCordonStatus() { /** * Creates or finds a BareMetalMachineCordonStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineCordonStatus. */ - @JsonCreator public static BareMetalMachineCordonStatus fromString(String name) { return fromString(name, BareMetalMachineCordonStatus.class); } /** * Gets known BareMetalMachineCordonStatus values. - * + * * @return known BareMetalMachineCordonStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineDetailedStatus.java index 7946539c2a4ca..890d042dab5be 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineDetailedStatus.java @@ -5,32 +5,45 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the bare metal machine. */ +/** + * The more detailed status of the bare metal machine. + */ public final class BareMetalMachineDetailedStatus extends ExpandableStringEnum { - /** Static value Preparing for BareMetalMachineDetailedStatus. */ + /** + * Static value Preparing for BareMetalMachineDetailedStatus. + */ public static final BareMetalMachineDetailedStatus PREPARING = fromString("Preparing"); - /** Static value Error for BareMetalMachineDetailedStatus. */ + /** + * Static value Error for BareMetalMachineDetailedStatus. + */ public static final BareMetalMachineDetailedStatus ERROR = fromString("Error"); - /** Static value Available for BareMetalMachineDetailedStatus. */ + /** + * Static value Available for BareMetalMachineDetailedStatus. + */ public static final BareMetalMachineDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for BareMetalMachineDetailedStatus. */ + /** + * Static value Provisioning for BareMetalMachineDetailedStatus. + */ public static final BareMetalMachineDetailedStatus PROVISIONING = fromString("Provisioning"); - /** Static value Provisioned for BareMetalMachineDetailedStatus. */ + /** + * Static value Provisioned for BareMetalMachineDetailedStatus. + */ public static final BareMetalMachineDetailedStatus PROVISIONED = fromString("Provisioned"); - /** Static value Deprovisioning for BareMetalMachineDetailedStatus. */ + /** + * Static value Deprovisioning for BareMetalMachineDetailedStatus. + */ public static final BareMetalMachineDetailedStatus DEPROVISIONING = fromString("Deprovisioning"); /** * Creates a new instance of BareMetalMachineDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -39,18 +52,17 @@ public BareMetalMachineDetailedStatus() { /** * Creates or finds a BareMetalMachineDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineDetailedStatus. */ - @JsonCreator public static BareMetalMachineDetailedStatus fromString(String name) { return fromString(name, BareMetalMachineDetailedStatus.class); } /** * Gets known BareMetalMachineDetailedStatus values. - * + * * @return known BareMetalMachineDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineEvacuate.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineEvacuate.java index a147cbddce18b..fa3b1f4cd16a0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineEvacuate.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineEvacuate.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether to evacuate the node workload when the bare metal machine is cordoned. */ +/** + * The indicator of whether to evacuate the node workload when the bare metal machine is cordoned. + */ public final class BareMetalMachineEvacuate extends ExpandableStringEnum { - /** Static value True for BareMetalMachineEvacuate. */ + /** + * Static value True for BareMetalMachineEvacuate. + */ public static final BareMetalMachineEvacuate TRUE = fromString("True"); - /** Static value False for BareMetalMachineEvacuate. */ + /** + * Static value False for BareMetalMachineEvacuate. + */ public static final BareMetalMachineEvacuate FALSE = fromString("False"); /** * Creates a new instance of BareMetalMachineEvacuate value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BareMetalMachineEvacuate() { /** * Creates or finds a BareMetalMachineEvacuate from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineEvacuate. */ - @JsonCreator public static BareMetalMachineEvacuate fromString(String name) { return fromString(name, BareMetalMachineEvacuate.class); } /** * Gets known BareMetalMachineEvacuate values. - * + * * @return known BareMetalMachineEvacuate values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineHardwareValidationResult.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineHardwareValidationResult.java index 793edda4d041f..09226d4d752f2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineHardwareValidationResult.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineHardwareValidationResult.java @@ -5,21 +5,26 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The outcome of the hardware validation. */ +/** + * The outcome of the hardware validation. + */ public final class BareMetalMachineHardwareValidationResult extends ExpandableStringEnum { - /** Static value Pass for BareMetalMachineHardwareValidationResult. */ + /** + * Static value Pass for BareMetalMachineHardwareValidationResult. + */ public static final BareMetalMachineHardwareValidationResult PASS = fromString("Pass"); - /** Static value Fail for BareMetalMachineHardwareValidationResult. */ + /** + * Static value Fail for BareMetalMachineHardwareValidationResult. + */ public static final BareMetalMachineHardwareValidationResult FAIL = fromString("Fail"); /** * Creates a new instance of BareMetalMachineHardwareValidationResult value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -28,18 +33,17 @@ public BareMetalMachineHardwareValidationResult() { /** * Creates or finds a BareMetalMachineHardwareValidationResult from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineHardwareValidationResult. */ - @JsonCreator public static BareMetalMachineHardwareValidationResult fromString(String name) { return fromString(name, BareMetalMachineHardwareValidationResult.class); } /** * Gets known BareMetalMachineHardwareValidationResult values. - * + * * @return known BareMetalMachineHardwareValidationResult values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySet.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySet.java index 9172e5323bfd2..b44a976c5cdce 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySet.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySet.java @@ -12,56 +12,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of BareMetalMachineKeySet. */ +/** + * An immutable client-side representation of BareMetalMachineKeySet. + */ public interface BareMetalMachineKeySet { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -69,21 +68,21 @@ public interface BareMetalMachineKeySet { /** * Gets the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @return the azureGroupId value. */ String azureGroupId(); /** * Gets the detailedStatus property: The more detailed status of the key set. - * + * * @return the detailedStatus value. */ BareMetalMachineKeySetDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -91,7 +90,7 @@ public interface BareMetalMachineKeySet { /** * Gets the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @return the expiration value. */ OffsetDateTime expiration(); @@ -99,14 +98,14 @@ public interface BareMetalMachineKeySet { /** * Gets the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @return the jumpHostsAllowed value. */ List jumpHostsAllowed(); /** * Gets the lastValidation property: The last time this key set was validated. - * + * * @return the lastValidation value. */ OffsetDateTime lastValidation(); @@ -114,85 +113,93 @@ public interface BareMetalMachineKeySet { /** * Gets the osGroupName property: The name of the group that users will be assigned to on the operating system of * the machines. - * + * * @return the osGroupName value. */ String osGroupName(); /** * Gets the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @return the privilegeLevel value. */ BareMetalMachineKeySetPrivilegeLevel privilegeLevel(); /** * Gets the provisioningState property: The provisioning state of the bare metal machine key set. - * + * * @return the provisioningState value. */ BareMetalMachineKeySetProvisioningState provisioningState(); /** * Gets the userList property: The unique list of permitted users. - * + * * @return the userList value. */ List userList(); /** * Gets the userListStatus property: The status evaluation of each user. - * + * * @return the userListStatus value. */ List userListStatus(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineKeySetInner object. - * + * * @return the inner object. */ BareMetalMachineKeySetInner innerModel(); - /** The entirety of the BareMetalMachineKeySet definition. */ + /** + * The entirety of the BareMetalMachineKeySet definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithParentResource, DefinitionStages.WithExtendedLocation, DefinitionStages.WithAzureGroupId, DefinitionStages.WithExpiration, DefinitionStages.WithJumpHostsAllowed, DefinitionStages.WithPrivilegeLevel, DefinitionStages.WithUserList, DefinitionStages.WithCreate { } - /** The BareMetalMachineKeySet definition stages. */ + /** + * The BareMetalMachineKeySet definition stages. + */ interface DefinitionStages { - /** The first stage of the BareMetalMachineKeySet definition. */ + /** + * The first stage of the BareMetalMachineKeySet definition. + */ interface Blank extends WithLocation { } - /** The stage of the BareMetalMachineKeySet definition allowing to specify location. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -200,18 +207,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify parent resource. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, clusterName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @return the next definition stage. @@ -219,77 +228,85 @@ interface WithParentResource { WithExtendedLocation withExistingCluster(String resourceGroupName, String clusterName); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify extendedLocation. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithAzureGroupId withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify azureGroupId. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify azureGroupId. + */ interface WithAzureGroupId { /** * Specifies the azureGroupId property: The object ID of Azure Active Directory group that all users in the * list must be in for access to be granted. Users that are not in the group will not have access.. - * + * * @param azureGroupId The object ID of Azure Active Directory group that all users in the list must be in - * for access to be granted. Users that are not in the group will not have access. + * for access to be granted. Users that are not in the group will not have access. * @return the next definition stage. */ WithExpiration withAzureGroupId(String azureGroupId); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify expiration. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify expiration. + */ interface WithExpiration { /** * Specifies the expiration property: The date and time after which the users in this key set will be * removed from the bare metal machines.. - * + * * @param expiration The date and time after which the users in this key set will be removed from the bare - * metal machines. + * metal machines. * @return the next definition stage. */ WithJumpHostsAllowed withExpiration(OffsetDateTime expiration); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify jumpHostsAllowed. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify jumpHostsAllowed. + */ interface WithJumpHostsAllowed { /** * Specifies the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network * access from which a login will be allowed for the users.. - * + * * @param jumpHostsAllowed The list of IP addresses of jump hosts with management network access from which - * a login will be allowed for the users. + * a login will be allowed for the users. * @return the next definition stage. */ WithPrivilegeLevel withJumpHostsAllowed(List jumpHostsAllowed); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify privilegeLevel. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify privilegeLevel. + */ interface WithPrivilegeLevel { /** * Specifies the privilegeLevel property: The access level allowed for the users in this key set.. - * + * * @param privilegeLevel The access level allowed for the users in this key set. * @return the next definition stage. */ WithUserList withPrivilegeLevel(BareMetalMachineKeySetPrivilegeLevel privilegeLevel); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify userList. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify userList. + */ interface WithUserList { /** * Specifies the userList property: The unique list of permitted users.. - * + * * @param userList The unique list of permitted users. * @return the next definition stage. */ @@ -303,39 +320,43 @@ interface WithUserList { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithOsGroupName { /** * Executes the create request. - * + * * @return the created resource. */ BareMetalMachineKeySet create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ BareMetalMachineKeySet create(Context context); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify tags. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the BareMetalMachineKeySet definition allowing to specify osGroupName. */ + /** + * The stage of the BareMetalMachineKeySet definition allowing to specify osGroupName. + */ interface WithOsGroupName { /** * Specifies the osGroupName property: The name of the group that users will be assigned to on the operating * system of the machines.. - * + * * @param osGroupName The name of the group that users will be assigned to on the operating system of the - * machines. + * machines. * @return the next definition stage. */ WithCreate withOsGroupName(String osGroupName); @@ -344,74 +365,86 @@ interface WithOsGroupName { /** * Begins update for the BareMetalMachineKeySet resource. - * + * * @return the stage of resource update. */ BareMetalMachineKeySet.Update update(); - /** The template for BareMetalMachineKeySet update. */ + /** + * The template for BareMetalMachineKeySet update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithExpiration, UpdateStages.WithJumpHostsAllowed, UpdateStages.WithUserList { /** * Executes the update request. - * + * * @return the updated resource. */ BareMetalMachineKeySet apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ BareMetalMachineKeySet apply(Context context); } - /** The BareMetalMachineKeySet update stages. */ + /** + * The BareMetalMachineKeySet update stages. + */ interface UpdateStages { - /** The stage of the BareMetalMachineKeySet update allowing to specify tags. */ + /** + * The stage of the BareMetalMachineKeySet update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the BareMetalMachineKeySet update allowing to specify expiration. */ + /** + * The stage of the BareMetalMachineKeySet update allowing to specify expiration. + */ interface WithExpiration { /** * Specifies the expiration property: The date and time after which the users in this key set will be * removed from the bare metal machines.. - * + * * @param expiration The date and time after which the users in this key set will be removed from the bare - * metal machines. + * metal machines. * @return the next definition stage. */ Update withExpiration(OffsetDateTime expiration); } - /** The stage of the BareMetalMachineKeySet update allowing to specify jumpHostsAllowed. */ + /** + * The stage of the BareMetalMachineKeySet update allowing to specify jumpHostsAllowed. + */ interface WithJumpHostsAllowed { /** * Specifies the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network * access from which a login will be allowed for the users.. - * + * * @param jumpHostsAllowed The list of IP addresses of jump hosts with management network access from which - * a login will be allowed for the users. + * a login will be allowed for the users. * @return the next definition stage. */ Update withJumpHostsAllowed(List jumpHostsAllowed); } - /** The stage of the BareMetalMachineKeySet update allowing to specify userList. */ + /** + * The stage of the BareMetalMachineKeySet update allowing to specify userList. + */ interface WithUserList { /** * Specifies the userList property: The unique list of permitted users.. - * + * * @param userList The unique list of permitted users. * @return the next definition stage. */ @@ -421,14 +454,14 @@ interface WithUserList { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ BareMetalMachineKeySet refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetDetailedStatus.java index ceb46be6531ab..5c816c0483b5c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetDetailedStatus.java @@ -5,27 +5,36 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the key set. */ +/** + * The more detailed status of the key set. + */ public final class BareMetalMachineKeySetDetailedStatus extends ExpandableStringEnum { - /** Static value AllActive for BareMetalMachineKeySetDetailedStatus. */ + /** + * Static value AllActive for BareMetalMachineKeySetDetailedStatus. + */ public static final BareMetalMachineKeySetDetailedStatus ALL_ACTIVE = fromString("AllActive"); - /** Static value SomeInvalid for BareMetalMachineKeySetDetailedStatus. */ + /** + * Static value SomeInvalid for BareMetalMachineKeySetDetailedStatus. + */ public static final BareMetalMachineKeySetDetailedStatus SOME_INVALID = fromString("SomeInvalid"); - /** Static value AllInvalid for BareMetalMachineKeySetDetailedStatus. */ + /** + * Static value AllInvalid for BareMetalMachineKeySetDetailedStatus. + */ public static final BareMetalMachineKeySetDetailedStatus ALL_INVALID = fromString("AllInvalid"); - /** Static value Validating for BareMetalMachineKeySetDetailedStatus. */ + /** + * Static value Validating for BareMetalMachineKeySetDetailedStatus. + */ public static final BareMetalMachineKeySetDetailedStatus VALIDATING = fromString("Validating"); /** * Creates a new instance of BareMetalMachineKeySetDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -34,18 +43,17 @@ public BareMetalMachineKeySetDetailedStatus() { /** * Creates or finds a BareMetalMachineKeySetDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineKeySetDetailedStatus. */ - @JsonCreator public static BareMetalMachineKeySetDetailedStatus fromString(String name) { return fromString(name, BareMetalMachineKeySetDetailedStatus.class); } /** * Gets known BareMetalMachineKeySetDetailedStatus values. - * + * * @return known BareMetalMachineKeySetDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetList.java index d497b6d53cea3..315661377b05d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineKeySetInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** BareMetalMachineKeySetList represents a list of bare metal machine key sets. */ +/** + * BareMetalMachineKeySetList represents a list of bare metal machine key sets. + */ @Fluent -public final class BareMetalMachineKeySetList { +public final class BareMetalMachineKeySetList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of bare metal machine key sets. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of BareMetalMachineKeySetList class. */ + /** + * Creates an instance of BareMetalMachineKeySetList class. + */ public BareMetalMachineKeySetList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the BareMetalMachineKeySetList object itself. */ @@ -50,7 +56,7 @@ public BareMetalMachineKeySetList withNextLink(String nextLink) { /** * Get the value property: The list of bare metal machine key sets. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of bare metal machine key sets. - * + * * @param value the value value to set. * @return the BareMetalMachineKeySetList object itself. */ @@ -70,7 +76,7 @@ public BareMetalMachineKeySetList withValue(List va /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineKeySetList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineKeySetList if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachineKeySetList. + */ + public static BareMetalMachineKeySetList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineKeySetList deserializedBareMetalMachineKeySetList = new BareMetalMachineKeySetList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedBareMetalMachineKeySetList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> BareMetalMachineKeySetInner.fromJson(reader1)); + deserializedBareMetalMachineKeySetList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineKeySetList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPatchParameters.java index d23bed6d155da..3101203dcc4ea 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPatchParameters.java @@ -5,42 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineKeySetPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; -/** BareMetalMachineKeySetPatchParameters represents the body of the request to patch the bare metal machine key set. */ +/** + * BareMetalMachineKeySetPatchParameters represents the body of the request to patch the bare metal machine key set. + */ @Fluent -public final class BareMetalMachineKeySetPatchParameters { +public final class BareMetalMachineKeySetPatchParameters + implements JsonSerializable { /* - * BareMetalMachineKeySetPatchProperties represents the properties of bare metal machine key set that can be - * patched. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private BareMetalMachineKeySetPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of BareMetalMachineKeySetPatchParameters class. */ + /** + * Creates an instance of BareMetalMachineKeySetPatchParameters class. + */ public BareMetalMachineKeySetPatchParameters() { } /** - * Get the innerProperties property: BareMetalMachineKeySetPatchProperties represents the properties of bare metal - * machine key set that can be patched. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private BareMetalMachineKeySetPatchProperties innerProperties() { @@ -49,7 +48,7 @@ private BareMetalMachineKeySetPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -58,7 +57,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the BareMetalMachineKeySetPatchParameters object itself. */ @@ -70,7 +69,7 @@ public BareMetalMachineKeySetPatchParameters withTags(Map tags) /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -80,7 +79,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * bare metal machines. - * + * * @param expiration the expiration value to set. * @return the BareMetalMachineKeySetPatchParameters object itself. */ @@ -95,7 +94,7 @@ public BareMetalMachineKeySetPatchParameters withExpiration(OffsetDateTime expir /** * Get the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @return the jumpHostsAllowed value. */ public List jumpHostsAllowed() { @@ -105,7 +104,7 @@ public List jumpHostsAllowed() { /** * Set the jumpHostsAllowed property: The list of IP addresses of jump hosts with management network access from * which a login will be allowed for the users. - * + * * @param jumpHostsAllowed the jumpHostsAllowed value to set. * @return the BareMetalMachineKeySetPatchParameters object itself. */ @@ -119,7 +118,7 @@ public BareMetalMachineKeySetPatchParameters withJumpHostsAllowed(List j /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -128,7 +127,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BareMetalMachineKeySetPatchParameters object itself. */ @@ -142,7 +141,7 @@ public BareMetalMachineKeySetPatchParameters withUserList(List userL /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -150,4 +149,46 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineKeySetPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineKeySetPatchParameters if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachineKeySetPatchParameters. + */ + public static BareMetalMachineKeySetPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineKeySetPatchParameters deserializedBareMetalMachineKeySetPatchParameters + = new BareMetalMachineKeySetPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedBareMetalMachineKeySetPatchParameters.innerProperties + = BareMetalMachineKeySetPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedBareMetalMachineKeySetPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineKeySetPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPrivilegeLevel.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPrivilegeLevel.java index e749bc11e931c..4616ab3f3286f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPrivilegeLevel.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetPrivilegeLevel.java @@ -5,21 +5,26 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The access level allowed for the users in this key set. */ +/** + * The access level allowed for the users in this key set. + */ public final class BareMetalMachineKeySetPrivilegeLevel extends ExpandableStringEnum { - /** Static value Standard for BareMetalMachineKeySetPrivilegeLevel. */ + /** + * Static value Standard for BareMetalMachineKeySetPrivilegeLevel. + */ public static final BareMetalMachineKeySetPrivilegeLevel STANDARD = fromString("Standard"); - /** Static value Superuser for BareMetalMachineKeySetPrivilegeLevel. */ + /** + * Static value Superuser for BareMetalMachineKeySetPrivilegeLevel. + */ public static final BareMetalMachineKeySetPrivilegeLevel SUPERUSER = fromString("Superuser"); /** * Creates a new instance of BareMetalMachineKeySetPrivilegeLevel value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -28,18 +33,17 @@ public BareMetalMachineKeySetPrivilegeLevel() { /** * Creates or finds a BareMetalMachineKeySetPrivilegeLevel from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineKeySetPrivilegeLevel. */ - @JsonCreator public static BareMetalMachineKeySetPrivilegeLevel fromString(String name) { return fromString(name, BareMetalMachineKeySetPrivilegeLevel.class); } /** * Gets known BareMetalMachineKeySetPrivilegeLevel values. - * + * * @return known BareMetalMachineKeySetPrivilegeLevel values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetProvisioningState.java index 217b2bc5b7bd4..ad325c06daa56 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetProvisioningState.java @@ -5,30 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the bare metal machine key set. */ +/** + * The provisioning state of the bare metal machine key set. + */ public final class BareMetalMachineKeySetProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for BareMetalMachineKeySetProvisioningState. */ + /** + * Static value Succeeded for BareMetalMachineKeySetProvisioningState. + */ public static final BareMetalMachineKeySetProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for BareMetalMachineKeySetProvisioningState. */ + /** + * Static value Failed for BareMetalMachineKeySetProvisioningState. + */ public static final BareMetalMachineKeySetProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for BareMetalMachineKeySetProvisioningState. */ + /** + * Static value Canceled for BareMetalMachineKeySetProvisioningState. + */ public static final BareMetalMachineKeySetProvisioningState CANCELED = fromString("Canceled"); - /** Static value Accepted for BareMetalMachineKeySetProvisioningState. */ + /** + * Static value Accepted for BareMetalMachineKeySetProvisioningState. + */ public static final BareMetalMachineKeySetProvisioningState ACCEPTED = fromString("Accepted"); - /** Static value Provisioning for BareMetalMachineKeySetProvisioningState. */ + /** + * Static value Provisioning for BareMetalMachineKeySetProvisioningState. + */ public static final BareMetalMachineKeySetProvisioningState PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of BareMetalMachineKeySetProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,18 +48,17 @@ public BareMetalMachineKeySetProvisioningState() { /** * Creates or finds a BareMetalMachineKeySetProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineKeySetProvisioningState. */ - @JsonCreator public static BareMetalMachineKeySetProvisioningState fromString(String name) { return fromString(name, BareMetalMachineKeySetProvisioningState.class); } /** * Gets known BareMetalMachineKeySetProvisioningState values. - * + * * @return known BareMetalMachineKeySetProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetUserSetupStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetUserSetupStatus.java index 618b3f1819528..6143cfb163f10 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetUserSetupStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySetUserSetupStatus.java @@ -5,21 +5,26 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether the user is currently deployed for access. */ +/** + * The indicator of whether the user is currently deployed for access. + */ public final class BareMetalMachineKeySetUserSetupStatus extends ExpandableStringEnum { - /** Static value Active for BareMetalMachineKeySetUserSetupStatus. */ + /** + * Static value Active for BareMetalMachineKeySetUserSetupStatus. + */ public static final BareMetalMachineKeySetUserSetupStatus ACTIVE = fromString("Active"); - /** Static value Invalid for BareMetalMachineKeySetUserSetupStatus. */ + /** + * Static value Invalid for BareMetalMachineKeySetUserSetupStatus. + */ public static final BareMetalMachineKeySetUserSetupStatus INVALID = fromString("Invalid"); /** * Creates a new instance of BareMetalMachineKeySetUserSetupStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -28,18 +33,17 @@ public BareMetalMachineKeySetUserSetupStatus() { /** * Creates or finds a BareMetalMachineKeySetUserSetupStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineKeySetUserSetupStatus. */ - @JsonCreator public static BareMetalMachineKeySetUserSetupStatus fromString(String name) { return fromString(name, BareMetalMachineKeySetUserSetupStatus.class); } /** * Gets known BareMetalMachineKeySetUserSetupStatus values. - * + * * @return known BareMetalMachineKeySetUserSetupStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySets.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySets.java index 90a691449e6dc..cbf98f298af27 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySets.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineKeySets.java @@ -8,44 +8,46 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of BareMetalMachineKeySets. */ +/** + * Resource collection API of BareMetalMachineKeySets. + */ public interface BareMetalMachineKeySets { /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName); /** * List bare metal machine key sets of the cluster. - * - *

Get a list of bare metal machine key sets for the provided cluster. - * + * + * Get a list of bare metal machine key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machine key sets for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machine key sets for the provided cluster as paginated response with + * {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -60,9 +62,9 @@ Response getWithResponse(String resourceGroupName, Strin /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -75,23 +77,24 @@ Response getWithResponse(String resourceGroupName, Strin /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName); + OperationStatusResult delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName); /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bareMetalMachineKeySetName The name of the bare metal machine key set. @@ -99,14 +102,16 @@ Response getWithResponse(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, Context context); + OperationStatusResult delete(String resourceGroupName, String clusterName, String bareMetalMachineKeySetName, + Context context); /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -117,9 +122,9 @@ Response getWithResponse(String resourceGroupName, Strin /** * Retrieve the bare metal machine key set of the cluster. - * - *

Get bare metal machine key set of the provided cluster. - * + * + * Get bare metal machine key set of the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,32 +136,34 @@ Response getWithResponse(String resourceGroupName, Strin /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the bare metal machine key set of the cluster. - * - *

Delete the bare metal machine key set of the provided cluster. - * + * + * Delete the bare metal machine key set of the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new BareMetalMachineKeySet resource. - * + * * @param name resource name. * @return the first stage of the new BareMetalMachineKeySet definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineList.java index b9b0db1d91dec..4938d6a6296ac 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachineInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** BareMetalMachineList represents a list of bare metal machines. */ +/** + * BareMetalMachineList represents a list of bare metal machines. + */ @Fluent -public final class BareMetalMachineList { +public final class BareMetalMachineList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of bare metal machines. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of BareMetalMachineList class. */ + /** + * Creates an instance of BareMetalMachineList class. + */ public BareMetalMachineList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the BareMetalMachineList object itself. */ @@ -50,7 +56,7 @@ public BareMetalMachineList withNextLink(String nextLink) { /** * Get the value property: The list of bare metal machines. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of bare metal machines. - * + * * @param value the value value to set. * @return the BareMetalMachineList object itself. */ @@ -70,7 +76,7 @@ public BareMetalMachineList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineList if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachineList. + */ + public static BareMetalMachineList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineList deserializedBareMetalMachineList = new BareMetalMachineList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedBareMetalMachineList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> BareMetalMachineInner.fromJson(reader1)); + deserializedBareMetalMachineList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePatchParameters.java index e0a85d08f8b6f..03d2a07335897 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePatchParameters.java @@ -5,39 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.BareMetalMachinePatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** BareMetalMachinePatchParameters represents the body of the request to patch bare metal machine properties. */ +/** + * BareMetalMachinePatchParameters represents the body of the request to patch bare metal machine properties. + */ @Fluent -public final class BareMetalMachinePatchParameters { +public final class BareMetalMachinePatchParameters implements JsonSerializable { /* - * BareMetalMachinePatchProperties represents the properties of the bare metal machine that can be patched. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private BareMetalMachinePatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of BareMetalMachinePatchParameters class. */ + /** + * Creates an instance of BareMetalMachinePatchParameters class. + */ public BareMetalMachinePatchParameters() { } /** - * Get the innerProperties property: BareMetalMachinePatchProperties represents the properties of the bare metal - * machine that can be patched. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private BareMetalMachinePatchProperties innerProperties() { @@ -46,7 +45,7 @@ private BareMetalMachinePatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -55,7 +54,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the BareMetalMachinePatchParameters object itself. */ @@ -65,9 +64,9 @@ public BareMetalMachinePatchParameters withTags(Map tags) { } /** - * Get the machineDetails property: The details provided by the customer during the creation of rack manifests that - * allows for custom data to be associated with this machine. - * + * Get the machineDetails property: The details provided by the customer during the creation of rack manifests + * that allows for custom data to be associated with this machine. + * * @return the machineDetails value. */ public String machineDetails() { @@ -75,9 +74,9 @@ public String machineDetails() { } /** - * Set the machineDetails property: The details provided by the customer during the creation of rack manifests that - * allows for custom data to be associated with this machine. - * + * Set the machineDetails property: The details provided by the customer during the creation of rack manifests + * that allows for custom data to be associated with this machine. + * * @param machineDetails the machineDetails value to set. * @return the BareMetalMachinePatchParameters object itself. */ @@ -91,7 +90,7 @@ public BareMetalMachinePatchParameters withMachineDetails(String machineDetails) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -99,4 +98,46 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachinePatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachinePatchParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachinePatchParameters. + */ + public static BareMetalMachinePatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachinePatchParameters deserializedBareMetalMachinePatchParameters + = new BareMetalMachinePatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedBareMetalMachinePatchParameters.innerProperties + = BareMetalMachinePatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedBareMetalMachinePatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachinePatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerOffParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerOffParameters.java index da8123c312517..29afa40b99848 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerOffParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerOffParameters.java @@ -5,25 +5,32 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** BareMetalMachinePowerOffParameters represents the body of the request to power off bare metal machine. */ +/** + * BareMetalMachinePowerOffParameters represents the body of the request to power off bare metal machine. + */ @Fluent -public final class BareMetalMachinePowerOffParameters { +public final class BareMetalMachinePowerOffParameters implements JsonSerializable { /* * The indicator of whether to skip the graceful OS shutdown and power off the bare metal machine immediately. */ - @JsonProperty(value = "skipShutdown") private BareMetalMachineSkipShutdown skipShutdown; - /** Creates an instance of BareMetalMachinePowerOffParameters class. */ + /** + * Creates an instance of BareMetalMachinePowerOffParameters class. + */ public BareMetalMachinePowerOffParameters() { } /** * Get the skipShutdown property: The indicator of whether to skip the graceful OS shutdown and power off the bare * metal machine immediately. - * + * * @return the skipShutdown value. */ public BareMetalMachineSkipShutdown skipShutdown() { @@ -33,7 +40,7 @@ public BareMetalMachineSkipShutdown skipShutdown() { /** * Set the skipShutdown property: The indicator of whether to skip the graceful OS shutdown and power off the bare * metal machine immediately. - * + * * @param skipShutdown the skipShutdown value to set. * @return the BareMetalMachinePowerOffParameters object itself. */ @@ -44,9 +51,47 @@ public BareMetalMachinePowerOffParameters withSkipShutdown(BareMetalMachineSkipS /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("skipShutdown", this.skipShutdown == null ? null : this.skipShutdown.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachinePowerOffParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachinePowerOffParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachinePowerOffParameters. + */ + public static BareMetalMachinePowerOffParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachinePowerOffParameters deserializedBareMetalMachinePowerOffParameters + = new BareMetalMachinePowerOffParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("skipShutdown".equals(fieldName)) { + deserializedBareMetalMachinePowerOffParameters.skipShutdown + = BareMetalMachineSkipShutdown.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachinePowerOffParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerState.java index eaeecffed4e17..9e7d4f3abfc0e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachinePowerState.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The power state derived from the baseboard management controller. */ +/** + * The power state derived from the baseboard management controller. + */ public final class BareMetalMachinePowerState extends ExpandableStringEnum { - /** Static value On for BareMetalMachinePowerState. */ + /** + * Static value On for BareMetalMachinePowerState. + */ public static final BareMetalMachinePowerState ON = fromString("On"); - /** Static value Off for BareMetalMachinePowerState. */ + /** + * Static value Off for BareMetalMachinePowerState. + */ public static final BareMetalMachinePowerState OFF = fromString("Off"); /** * Creates a new instance of BareMetalMachinePowerState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BareMetalMachinePowerState() { /** * Creates or finds a BareMetalMachinePowerState from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachinePowerState. */ - @JsonCreator public static BareMetalMachinePowerState fromString(String name) { return fromString(name, BareMetalMachinePowerState.class); } /** * Gets known BareMetalMachinePowerState values. - * + * * @return known BareMetalMachinePowerState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineProvisioningState.java index ccbd521e81451..55a16c1bbceb8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the bare metal machine. */ +/** + * The provisioning state of the bare metal machine. + */ public final class BareMetalMachineProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for BareMetalMachineProvisioningState. */ + /** + * Static value Succeeded for BareMetalMachineProvisioningState. + */ public static final BareMetalMachineProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for BareMetalMachineProvisioningState. */ + /** + * Static value Failed for BareMetalMachineProvisioningState. + */ public static final BareMetalMachineProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for BareMetalMachineProvisioningState. */ + /** + * Static value Canceled for BareMetalMachineProvisioningState. + */ public static final BareMetalMachineProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for BareMetalMachineProvisioningState. */ + /** + * Static value Provisioning for BareMetalMachineProvisioningState. + */ public static final BareMetalMachineProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for BareMetalMachineProvisioningState. */ + /** + * Static value Accepted for BareMetalMachineProvisioningState. + */ public static final BareMetalMachineProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of BareMetalMachineProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public BareMetalMachineProvisioningState() { /** * Creates or finds a BareMetalMachineProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineProvisioningState. */ - @JsonCreator public static BareMetalMachineProvisioningState fromString(String name) { return fromString(name, BareMetalMachineProvisioningState.class); } /** * Gets known BareMetalMachineProvisioningState values. - * + * * @return known BareMetalMachineProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReadyState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReadyState.java index 4916dbf762367..1acbfe881d370 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReadyState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReadyState.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether the bare metal machine is ready to receive workloads. */ +/** + * The indicator of whether the bare metal machine is ready to receive workloads. + */ public final class BareMetalMachineReadyState extends ExpandableStringEnum { - /** Static value True for BareMetalMachineReadyState. */ + /** + * Static value True for BareMetalMachineReadyState. + */ public static final BareMetalMachineReadyState TRUE = fromString("True"); - /** Static value False for BareMetalMachineReadyState. */ + /** + * Static value False for BareMetalMachineReadyState. + */ public static final BareMetalMachineReadyState FALSE = fromString("False"); /** * Creates a new instance of BareMetalMachineReadyState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BareMetalMachineReadyState() { /** * Creates or finds a BareMetalMachineReadyState from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineReadyState. */ - @JsonCreator public static BareMetalMachineReadyState fromString(String name) { return fromString(name, BareMetalMachineReadyState.class); } /** * Gets known BareMetalMachineReadyState values. - * + * * @return known BareMetalMachineReadyState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java index a64f4cdbca9dd..9c59b9ddb11ec 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineReplaceParameters.java @@ -5,57 +5,53 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * BareMetalMachineReplaceParameters represents the body of the request to physically swap a bare metal machine for * another. */ @Fluent -public final class BareMetalMachineReplaceParameters { +public final class BareMetalMachineReplaceParameters implements JsonSerializable { /* - * AdministrativeCredentials represents the admin credentials for the device requiring password-based - * authentication. - * * The credentials of the baseboard management controller on this bare metal machine. */ - @JsonProperty(value = "bmcCredentials") private AdministrativeCredentials bmcCredentials; /* * The MAC address of the BMC device. */ - @JsonProperty(value = "bmcMacAddress") private String bmcMacAddress; /* * The MAC address of a NIC connected to the PXE network. */ - @JsonProperty(value = "bootMacAddress") private String bootMacAddress; /* * The OS-level hostname assigned to this machine. */ - @JsonProperty(value = "machineName") private String machineName; /* * The serial number of the bare metal machine. */ - @JsonProperty(value = "serialNumber") private String serialNumber; - /** Creates an instance of BareMetalMachineReplaceParameters class. */ + /** + * Creates an instance of BareMetalMachineReplaceParameters class. + */ public BareMetalMachineReplaceParameters() { } /** - * Get the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Get the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @return the bmcCredentials value. */ public AdministrativeCredentials bmcCredentials() { @@ -63,11 +59,9 @@ public AdministrativeCredentials bmcCredentials() { } /** - * Set the bmcCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the baseboard management controller on this bare metal machine. - * + * Set the bmcCredentials property: The credentials of the baseboard management controller on this bare metal + * machine. + * * @param bmcCredentials the bmcCredentials value to set. * @return the BareMetalMachineReplaceParameters object itself. */ @@ -78,7 +72,7 @@ public BareMetalMachineReplaceParameters withBmcCredentials(AdministrativeCreden /** * Get the bmcMacAddress property: The MAC address of the BMC device. - * + * * @return the bmcMacAddress value. */ public String bmcMacAddress() { @@ -87,7 +81,7 @@ public String bmcMacAddress() { /** * Set the bmcMacAddress property: The MAC address of the BMC device. - * + * * @param bmcMacAddress the bmcMacAddress value to set. * @return the BareMetalMachineReplaceParameters object itself. */ @@ -98,7 +92,7 @@ public BareMetalMachineReplaceParameters withBmcMacAddress(String bmcMacAddress) /** * Get the bootMacAddress property: The MAC address of a NIC connected to the PXE network. - * + * * @return the bootMacAddress value. */ public String bootMacAddress() { @@ -107,7 +101,7 @@ public String bootMacAddress() { /** * Set the bootMacAddress property: The MAC address of a NIC connected to the PXE network. - * + * * @param bootMacAddress the bootMacAddress value to set. * @return the BareMetalMachineReplaceParameters object itself. */ @@ -118,7 +112,7 @@ public BareMetalMachineReplaceParameters withBootMacAddress(String bootMacAddres /** * Get the machineName property: The OS-level hostname assigned to this machine. - * + * * @return the machineName value. */ public String machineName() { @@ -127,7 +121,7 @@ public String machineName() { /** * Set the machineName property: The OS-level hostname assigned to this machine. - * + * * @param machineName the machineName value to set. * @return the BareMetalMachineReplaceParameters object itself. */ @@ -138,7 +132,7 @@ public BareMetalMachineReplaceParameters withMachineName(String machineName) { /** * Get the serialNumber property: The serial number of the bare metal machine. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -147,7 +141,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number of the bare metal machine. - * + * * @param serialNumber the serialNumber value to set. * @return the BareMetalMachineReplaceParameters object itself. */ @@ -158,7 +152,7 @@ public BareMetalMachineReplaceParameters withSerialNumber(String serialNumber) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -166,4 +160,54 @@ public void validate() { bmcCredentials().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("bmcCredentials", this.bmcCredentials); + jsonWriter.writeStringField("bmcMacAddress", this.bmcMacAddress); + jsonWriter.writeStringField("bootMacAddress", this.bootMacAddress); + jsonWriter.writeStringField("machineName", this.machineName); + jsonWriter.writeStringField("serialNumber", this.serialNumber); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineReplaceParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineReplaceParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BareMetalMachineReplaceParameters. + */ + public static BareMetalMachineReplaceParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineReplaceParameters deserializedBareMetalMachineReplaceParameters + = new BareMetalMachineReplaceParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("bmcCredentials".equals(fieldName)) { + deserializedBareMetalMachineReplaceParameters.bmcCredentials + = AdministrativeCredentials.fromJson(reader); + } else if ("bmcMacAddress".equals(fieldName)) { + deserializedBareMetalMachineReplaceParameters.bmcMacAddress = reader.getString(); + } else if ("bootMacAddress".equals(fieldName)) { + deserializedBareMetalMachineReplaceParameters.bootMacAddress = reader.getString(); + } else if ("machineName".equals(fieldName)) { + deserializedBareMetalMachineReplaceParameters.machineName = reader.getString(); + } else if ("serialNumber".equals(fieldName)) { + deserializedBareMetalMachineReplaceParameters.serialNumber = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineReplaceParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunCommandParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunCommandParameters.java index e15a07f2a930e..a88976c2f4721 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunCommandParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunCommandParameters.java @@ -6,7 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,11 +18,11 @@ * machine. */ @Fluent -public final class BareMetalMachineRunCommandParameters { +public final class BareMetalMachineRunCommandParameters + implements JsonSerializable { /* * The list of string arguments that will be passed to the script in order as separate arguments. */ - @JsonProperty(value = "arguments") private List arguments; /* @@ -26,23 +30,23 @@ public final class BareMetalMachineRunCommandParameters { * If the execution time exceeds the maximum, the script will be stopped, any output produced until then will be * captured, and the exit code matching a timeout will be returned (252). */ - @JsonProperty(value = "limitTimeSeconds", required = true) private long limitTimeSeconds; /* * The base64 encoded script to execute on the bare metal machine. */ - @JsonProperty(value = "script", required = true) private String script; - /** Creates an instance of BareMetalMachineRunCommandParameters class. */ + /** + * Creates an instance of BareMetalMachineRunCommandParameters class. + */ public BareMetalMachineRunCommandParameters() { } /** * Get the arguments property: The list of string arguments that will be passed to the script in order as separate * arguments. - * + * * @return the arguments value. */ public List arguments() { @@ -52,7 +56,7 @@ public List arguments() { /** * Set the arguments property: The list of string arguments that will be passed to the script in order as separate * arguments. - * + * * @param arguments the arguments value to set. * @return the BareMetalMachineRunCommandParameters object itself. */ @@ -62,10 +66,10 @@ public BareMetalMachineRunCommandParameters withArguments(List arguments } /** - * Get the limitTimeSeconds property: The maximum time the script is allowed to run. If the execution time exceeds - * the maximum, the script will be stopped, any output produced until then will be captured, and the exit code - * matching a timeout will be returned (252). - * + * Get the limitTimeSeconds property: The maximum time the script is allowed to run. + * If the execution time exceeds the maximum, the script will be stopped, any output produced until then will be + * captured, and the exit code matching a timeout will be returned (252). + * * @return the limitTimeSeconds value. */ public long limitTimeSeconds() { @@ -73,10 +77,10 @@ public long limitTimeSeconds() { } /** - * Set the limitTimeSeconds property: The maximum time the script is allowed to run. If the execution time exceeds - * the maximum, the script will be stopped, any output produced until then will be captured, and the exit code - * matching a timeout will be returned (252). - * + * Set the limitTimeSeconds property: The maximum time the script is allowed to run. + * If the execution time exceeds the maximum, the script will be stopped, any output produced until then will be + * captured, and the exit code matching a timeout will be returned (252). + * * @param limitTimeSeconds the limitTimeSeconds value to set. * @return the BareMetalMachineRunCommandParameters object itself. */ @@ -87,7 +91,7 @@ public BareMetalMachineRunCommandParameters withLimitTimeSeconds(long limitTimeS /** * Get the script property: The base64 encoded script to execute on the bare metal machine. - * + * * @return the script value. */ public String script() { @@ -96,7 +100,7 @@ public String script() { /** * Set the script property: The base64 encoded script to execute on the bare metal machine. - * + * * @param script the script value to set. * @return the BareMetalMachineRunCommandParameters object itself. */ @@ -107,15 +111,61 @@ public BareMetalMachineRunCommandParameters withScript(String script) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (script() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property script in model BareMetalMachineRunCommandParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property script in model BareMetalMachineRunCommandParameters")); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineRunCommandParameters.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("limitTimeSeconds", this.limitTimeSeconds); + jsonWriter.writeStringField("script", this.script); + jsonWriter.writeArrayField("arguments", this.arguments, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineRunCommandParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineRunCommandParameters if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineRunCommandParameters. + */ + public static BareMetalMachineRunCommandParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineRunCommandParameters deserializedBareMetalMachineRunCommandParameters + = new BareMetalMachineRunCommandParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("limitTimeSeconds".equals(fieldName)) { + deserializedBareMetalMachineRunCommandParameters.limitTimeSeconds = reader.getLong(); + } else if ("script".equals(fieldName)) { + deserializedBareMetalMachineRunCommandParameters.script = reader.getString(); + } else if ("arguments".equals(fieldName)) { + List arguments = reader.readArray(reader1 -> reader1.getString()); + deserializedBareMetalMachineRunCommandParameters.arguments = arguments; + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineRunCommandParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunDataExtractsParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunDataExtractsParameters.java index 11b520bc979a1..f50305d2b6555 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunDataExtractsParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunDataExtractsParameters.java @@ -6,7 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,11 +18,11 @@ * commands to run on the bare metal machine. */ @Fluent -public final class BareMetalMachineRunDataExtractsParameters { +public final class BareMetalMachineRunDataExtractsParameters + implements JsonSerializable { /* * The list of curated data extraction commands to be executed directly against the target machine. */ - @JsonProperty(value = "commands", required = true) private List commands; /* @@ -26,17 +30,18 @@ public final class BareMetalMachineRunDataExtractsParameters { * If the execution time exceeds the maximum, the script will be stopped, any output produced until then will be * captured, and the exit code matching a timeout will be returned (252). */ - @JsonProperty(value = "limitTimeSeconds", required = true) private long limitTimeSeconds; - /** Creates an instance of BareMetalMachineRunDataExtractsParameters class. */ + /** + * Creates an instance of BareMetalMachineRunDataExtractsParameters class. + */ public BareMetalMachineRunDataExtractsParameters() { } /** * Get the commands property: The list of curated data extraction commands to be executed directly against the * target machine. - * + * * @return the commands value. */ public List commands() { @@ -46,7 +51,7 @@ public List commands() { /** * Set the commands property: The list of curated data extraction commands to be executed directly against the * target machine. - * + * * @param commands the commands value to set. * @return the BareMetalMachineRunDataExtractsParameters object itself. */ @@ -56,10 +61,10 @@ public BareMetalMachineRunDataExtractsParameters withCommands(List e.validate()); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineRunDataExtractsParameters.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("commands", this.commands, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeLongField("limitTimeSeconds", this.limitTimeSeconds); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineRunDataExtractsParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineRunDataExtractsParameters if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineRunDataExtractsParameters. + */ + public static BareMetalMachineRunDataExtractsParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineRunDataExtractsParameters deserializedBareMetalMachineRunDataExtractsParameters + = new BareMetalMachineRunDataExtractsParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("commands".equals(fieldName)) { + List commands + = reader.readArray(reader1 -> BareMetalMachineCommandSpecification.fromJson(reader1)); + deserializedBareMetalMachineRunDataExtractsParameters.commands = commands; + } else if ("limitTimeSeconds".equals(fieldName)) { + deserializedBareMetalMachineRunDataExtractsParameters.limitTimeSeconds = reader.getLong(); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineRunDataExtractsParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunReadCommandsParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunReadCommandsParameters.java index 99988704155b9..48aaaf30fb1f0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunReadCommandsParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineRunReadCommandsParameters.java @@ -6,7 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,11 +18,11 @@ * on the bare metal machine. */ @Fluent -public final class BareMetalMachineRunReadCommandsParameters { +public final class BareMetalMachineRunReadCommandsParameters + implements JsonSerializable { /* * The list of read-only commands to be executed directly against the target machine. */ - @JsonProperty(value = "commands", required = true) private List commands; /* @@ -26,16 +30,17 @@ public final class BareMetalMachineRunReadCommandsParameters { * If the execution time exceeds the maximum, the script will be stopped, any output produced until then will be * captured, and the exit code matching a timeout will be returned (252). */ - @JsonProperty(value = "limitTimeSeconds", required = true) private long limitTimeSeconds; - /** Creates an instance of BareMetalMachineRunReadCommandsParameters class. */ + /** + * Creates an instance of BareMetalMachineRunReadCommandsParameters class. + */ public BareMetalMachineRunReadCommandsParameters() { } /** * Get the commands property: The list of read-only commands to be executed directly against the target machine. - * + * * @return the commands value. */ public List commands() { @@ -44,7 +49,7 @@ public List commands() { /** * Set the commands property: The list of read-only commands to be executed directly against the target machine. - * + * * @param commands the commands value to set. * @return the BareMetalMachineRunReadCommandsParameters object itself. */ @@ -54,10 +59,10 @@ public BareMetalMachineRunReadCommandsParameters withCommands(List e.validate()); } } private static final ClientLogger LOGGER = new ClientLogger(BareMetalMachineRunReadCommandsParameters.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("commands", this.commands, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeLongField("limitTimeSeconds", this.limitTimeSeconds); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BareMetalMachineRunReadCommandsParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BareMetalMachineRunReadCommandsParameters if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BareMetalMachineRunReadCommandsParameters. + */ + public static BareMetalMachineRunReadCommandsParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BareMetalMachineRunReadCommandsParameters deserializedBareMetalMachineRunReadCommandsParameters + = new BareMetalMachineRunReadCommandsParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("commands".equals(fieldName)) { + List commands + = reader.readArray(reader1 -> BareMetalMachineCommandSpecification.fromJson(reader1)); + deserializedBareMetalMachineRunReadCommandsParameters.commands = commands; + } else if ("limitTimeSeconds".equals(fieldName)) { + deserializedBareMetalMachineRunReadCommandsParameters.limitTimeSeconds = reader.getLong(); + } else { + reader.skipChildren(); + } + } + + return deserializedBareMetalMachineRunReadCommandsParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineSkipShutdown.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineSkipShutdown.java index fd04e88a89592..8d5a04052b8eb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineSkipShutdown.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachineSkipShutdown.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether to skip the graceful OS shutdown and power off the bare metal machine immediately. */ +/** + * The indicator of whether to skip the graceful OS shutdown and power off the bare metal machine immediately. + */ public final class BareMetalMachineSkipShutdown extends ExpandableStringEnum { - /** Static value True for BareMetalMachineSkipShutdown. */ + /** + * Static value True for BareMetalMachineSkipShutdown. + */ public static final BareMetalMachineSkipShutdown TRUE = fromString("True"); - /** Static value False for BareMetalMachineSkipShutdown. */ + /** + * Static value False for BareMetalMachineSkipShutdown. + */ public static final BareMetalMachineSkipShutdown FALSE = fromString("False"); /** * Creates a new instance of BareMetalMachineSkipShutdown value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BareMetalMachineSkipShutdown() { /** * Creates or finds a BareMetalMachineSkipShutdown from its string representation. - * + * * @param name a name to look for. * @return the corresponding BareMetalMachineSkipShutdown. */ - @JsonCreator public static BareMetalMachineSkipShutdown fromString(String name) { return fromString(name, BareMetalMachineSkipShutdown.class); } /** * Gets known BareMetalMachineSkipShutdown values. - * + * * @return known BareMetalMachineSkipShutdown values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachines.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachines.java index 428dabf48d6a0..7fb39f5878abc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachines.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BareMetalMachines.java @@ -8,68 +8,70 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of BareMetalMachines. */ +/** + * Resource collection API of BareMetalMachines. + */ public interface BareMetalMachines { /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** * List bare metal machines in the subscription. - * - *

Get a list of bare metal machines in the provided subscription. - * + * + * Get a list of bare metal machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List bare metal machines in the resource group. - * - *

Get a list of bare metal machines in the provided resource group. - * + * + * Get a list of bare metal machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of bare metal machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of bare metal machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -83,9 +85,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -97,38 +99,40 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String bareMetalMachineName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String bareMetalMachineName); /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String bareMetalMachineName, Context context); + OperationStatusResult delete(String resourceGroupName, String bareMetalMachineName, Context context); /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,9 +144,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Cordon the bare metal machine. - * - *

Cordon the provided bare metal machine's Kubernetes node. - * + * + * Cordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineCordonParameters The request body. @@ -157,9 +161,9 @@ OperationStatusResult cordon(String resourceGroupName, String bareMetalMachineNa /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -171,9 +175,9 @@ OperationStatusResult cordon(String resourceGroupName, String bareMetalMachineNa /** * Power off the bare metal machine. - * - *

Power off the provided bare metal machine. - * + * + * Power off the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachinePowerOffParameters The request body. @@ -188,9 +192,9 @@ OperationStatusResult powerOff(String resourceGroupName, String bareMetalMachine /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -202,9 +206,9 @@ OperationStatusResult powerOff(String resourceGroupName, String bareMetalMachine /** * Reimage the bare metal machine. - * - *

Reimage the provided bare metal machine. - * + * + * Reimage the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -217,9 +221,9 @@ OperationStatusResult powerOff(String resourceGroupName, String bareMetalMachine /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -231,9 +235,9 @@ OperationStatusResult powerOff(String resourceGroupName, String bareMetalMachine /** * Replace (service) the bare metal machine. - * - *

Replace the provided bare metal machine. - * + * + * Replace the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineReplaceParameters The request body. @@ -248,9 +252,9 @@ OperationStatusResult replace(String resourceGroupName, String bareMetalMachineN /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -262,9 +266,9 @@ OperationStatusResult replace(String resourceGroupName, String bareMetalMachineN /** * Restart the bare metal machine. - * - *

Restart the provided bare metal machine. - * + * + * Restart the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -277,10 +281,10 @@ OperationStatusResult replace(String resourceGroupName, String bareMetalMachineN /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -294,10 +298,10 @@ OperationStatusResult runCommand(String resourceGroupName, String bareMetalMachi /** * Run the command on the bare metal machine. - * - *

Run the command or the script on the provided bare metal machine. The URL to storage account with the command + * + * Run the command or the script on the provided bare metal machine. The URL to storage account with the command * execution results and the command exit code can be retrieved from the operation status API once available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunCommandParameters The request body. @@ -312,11 +316,10 @@ OperationStatusResult runCommand(String resourceGroupName, String bareMetalMachi /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -330,11 +333,10 @@ OperationStatusResult runDataExtracts(String resourceGroupName, String bareMetal /** * Run data extraction for a bare metal machine. - * - *

Run one or more data extractions on the provided bare metal machine. The URL to storage account with the - * command execution results and the command exit code can be retrieved from the operation status API once - * available. - * + * + * Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command + * execution results and the command exit code can be retrieved from the operation status API once available. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunDataExtractsParameters The request body. @@ -349,11 +351,11 @@ OperationStatusResult runDataExtracts(String resourceGroupName, String bareMetal /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -367,11 +369,11 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Run read-only commands against a bare metal machine. - * - *

Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the + * + * Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the * command execution results and the command exit code can be retrieved from the operation status API once * available. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param bareMetalMachineRunReadCommandsParameters The request body. @@ -386,9 +388,9 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -400,9 +402,9 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Start the bare metal machine. - * - *

Start the provided bare metal machine. - * + * + * Start the provided bare metal machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -415,9 +417,9 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -429,9 +431,9 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Uncordon the bare metal machine. - * - *

Uncordon the provided bare metal machine's Kubernetes node. - * + * + * Uncordon the provided bare metal machine's Kubernetes node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param bareMetalMachineName The name of the bare metal machine. * @param context The context to associate with this operation. @@ -444,9 +446,9 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -457,9 +459,9 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Retrieve the bare metal machine. - * - *

Get properties of the provided bare metal machine. - * + * + * Get properties of the provided bare metal machine. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -471,34 +473,36 @@ OperationStatusResult runReadCommands(String resourceGroupName, String bareMetal /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the bare metal machine. - * - *

Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided bare metal machine. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new BareMetalMachine resource. - * + * * @param name resource name. * @return the first stage of the new BareMetalMachine definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BfdEnabled.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BfdEnabled.java index b99976b1c62e5..6b2f662f1bbf9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BfdEnabled.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BfdEnabled.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator to determine if automatic allocation from the pool should occur. */ +/** + * The indicator to determine if automatic allocation from the pool should occur. + */ public final class BfdEnabled extends ExpandableStringEnum { - /** Static value True for BfdEnabled. */ + /** + * Static value True for BfdEnabled. + */ public static final BfdEnabled TRUE = fromString("True"); - /** Static value False for BfdEnabled. */ + /** + * Static value False for BfdEnabled. + */ public static final BfdEnabled FALSE = fromString("False"); /** * Creates a new instance of BfdEnabled value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BfdEnabled() { /** * Creates or finds a BfdEnabled from its string representation. - * + * * @param name a name to look for. * @return the corresponding BfdEnabled. */ - @JsonCreator public static BfdEnabled fromString(String name) { return fromString(name, BfdEnabled.class); } /** * Gets known BfdEnabled values. - * + * * @return known BfdEnabled values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpAdvertisement.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpAdvertisement.java index 6e5ada16f60a5..492bc5d8e004a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpAdvertisement.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpAdvertisement.java @@ -6,47 +6,51 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** BgpAdvertisement represents the association of IP address pools to the communities and peers. */ +/** + * BgpAdvertisement represents the association of IP address pools to the communities and peers. + */ @Fluent -public final class BgpAdvertisement { +public final class BgpAdvertisement implements JsonSerializable { /* * The indicator of if this advertisement is also made to the network fabric associated with the Network Cloud * Cluster. This field is ignored if fabricPeeringEnabled is set to False. */ - @JsonProperty(value = "advertiseToFabric") private AdvertiseToFabric advertiseToFabric; /* * The names of the BGP communities to be associated with the announcement, utilizing a BGP community string in * 1234:1234 format. */ - @JsonProperty(value = "communities") private List communities; /* * The names of the IP address pools associated with this announcement. */ - @JsonProperty(value = "ipAddressPools", required = true) private List ipAddressPools; /* - * The names of the BGP peers to limit this advertisement to. If no values are specified, all BGP peers will - * receive this advertisement. + * The names of the BGP peers to limit this advertisement to. If no values are specified, all BGP peers will receive + * this advertisement. */ - @JsonProperty(value = "peers") private List peers; - /** Creates an instance of BgpAdvertisement class. */ + /** + * Creates an instance of BgpAdvertisement class. + */ public BgpAdvertisement() { } /** * Get the advertiseToFabric property: The indicator of if this advertisement is also made to the network fabric * associated with the Network Cloud Cluster. This field is ignored if fabricPeeringEnabled is set to False. - * + * * @return the advertiseToFabric value. */ public AdvertiseToFabric advertiseToFabric() { @@ -56,7 +60,7 @@ public AdvertiseToFabric advertiseToFabric() { /** * Set the advertiseToFabric property: The indicator of if this advertisement is also made to the network fabric * associated with the Network Cloud Cluster. This field is ignored if fabricPeeringEnabled is set to False. - * + * * @param advertiseToFabric the advertiseToFabric value to set. * @return the BgpAdvertisement object itself. */ @@ -68,7 +72,7 @@ public BgpAdvertisement withAdvertiseToFabric(AdvertiseToFabric advertiseToFabri /** * Get the communities property: The names of the BGP communities to be associated with the announcement, utilizing * a BGP community string in 1234:1234 format. - * + * * @return the communities value. */ public List communities() { @@ -78,7 +82,7 @@ public List communities() { /** * Set the communities property: The names of the BGP communities to be associated with the announcement, utilizing * a BGP community string in 1234:1234 format. - * + * * @param communities the communities value to set. * @return the BgpAdvertisement object itself. */ @@ -89,7 +93,7 @@ public BgpAdvertisement withCommunities(List communities) { /** * Get the ipAddressPools property: The names of the IP address pools associated with this announcement. - * + * * @return the ipAddressPools value. */ public List ipAddressPools() { @@ -98,7 +102,7 @@ public List ipAddressPools() { /** * Set the ipAddressPools property: The names of the IP address pools associated with this announcement. - * + * * @param ipAddressPools the ipAddressPools value to set. * @return the BgpAdvertisement object itself. */ @@ -110,7 +114,7 @@ public BgpAdvertisement withIpAddressPools(List ipAddressPools) { /** * Get the peers property: The names of the BGP peers to limit this advertisement to. If no values are specified, * all BGP peers will receive this advertisement. - * + * * @return the peers value. */ public List peers() { @@ -120,7 +124,7 @@ public List peers() { /** * Set the peers property: The names of the BGP peers to limit this advertisement to. If no values are specified, * all BGP peers will receive this advertisement. - * + * * @param peers the peers value to set. * @return the BgpAdvertisement object itself. */ @@ -131,15 +135,67 @@ public BgpAdvertisement withPeers(List peers) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (ipAddressPools() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ipAddressPools in model BgpAdvertisement")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property ipAddressPools in model BgpAdvertisement")); } } private static final ClientLogger LOGGER = new ClientLogger(BgpAdvertisement.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("ipAddressPools", this.ipAddressPools, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("advertiseToFabric", + this.advertiseToFabric == null ? null : this.advertiseToFabric.toString()); + jsonWriter.writeArrayField("communities", this.communities, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("peers", this.peers, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BgpAdvertisement from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BgpAdvertisement if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the BgpAdvertisement. + */ + public static BgpAdvertisement fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BgpAdvertisement deserializedBgpAdvertisement = new BgpAdvertisement(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("ipAddressPools".equals(fieldName)) { + List ipAddressPools = reader.readArray(reader1 -> reader1.getString()); + deserializedBgpAdvertisement.ipAddressPools = ipAddressPools; + } else if ("advertiseToFabric".equals(fieldName)) { + deserializedBgpAdvertisement.advertiseToFabric = AdvertiseToFabric.fromString(reader.getString()); + } else if ("communities".equals(fieldName)) { + List communities = reader.readArray(reader1 -> reader1.getString()); + deserializedBgpAdvertisement.communities = communities; + } else if ("peers".equals(fieldName)) { + List peers = reader.readArray(reader1 -> reader1.getString()); + deserializedBgpAdvertisement.peers = peers; + } else { + reader.skipChildren(); + } + } + + return deserializedBgpAdvertisement; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpMultiHop.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpMultiHop.java index 77253ce61a8b5..0340daa0dca00 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpMultiHop.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpMultiHop.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator to enable multi-hop peering support. */ +/** + * The indicator to enable multi-hop peering support. + */ public final class BgpMultiHop extends ExpandableStringEnum { - /** Static value True for BgpMultiHop. */ + /** + * Static value True for BgpMultiHop. + */ public static final BgpMultiHop TRUE = fromString("True"); - /** Static value False for BgpMultiHop. */ + /** + * Static value False for BgpMultiHop. + */ public static final BgpMultiHop FALSE = fromString("False"); /** * Creates a new instance of BgpMultiHop value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BgpMultiHop() { /** * Creates or finds a BgpMultiHop from its string representation. - * + * * @param name a name to look for. * @return the corresponding BgpMultiHop. */ - @JsonCreator public static BgpMultiHop fromString(String name) { return fromString(name, BgpMultiHop.class); } /** * Gets known BgpMultiHop values. - * + * * @return known BgpMultiHop values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpServiceLoadBalancerConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpServiceLoadBalancerConfiguration.java index 07e6198a74e10..7802c71ec8c31 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpServiceLoadBalancerConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BgpServiceLoadBalancerConfiguration.java @@ -5,45 +5,50 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** BgpServiceLoadBalancerConfiguration represents the configuration of a BGP service load balancer. */ +/** + * BgpServiceLoadBalancerConfiguration represents the configuration of a BGP service load balancer. + */ @Fluent -public final class BgpServiceLoadBalancerConfiguration { +public final class BgpServiceLoadBalancerConfiguration + implements JsonSerializable { /* * The association of IP address pools to the communities and peers, allowing for announcement of IPs. */ - @JsonProperty(value = "bgpAdvertisements") private List bgpAdvertisements; /* * The list of additional BgpPeer entities that the Kubernetes cluster will peer with. All peering must be * explicitly defined. */ - @JsonProperty(value = "bgpPeers") private List bgpPeers; /* * The indicator to specify if the load balancer peers with the network fabric. */ - @JsonProperty(value = "fabricPeeringEnabled") private FabricPeeringEnabled fabricPeeringEnabled; /* - * The list of pools of IP addresses that can be allocated to Load Balancer services. + * The list of pools of IP addresses that can be allocated to load balancer services. */ - @JsonProperty(value = "ipAddressPools") private List ipAddressPools; - /** Creates an instance of BgpServiceLoadBalancerConfiguration class. */ + /** + * Creates an instance of BgpServiceLoadBalancerConfiguration class. + */ public BgpServiceLoadBalancerConfiguration() { } /** * Get the bgpAdvertisements property: The association of IP address pools to the communities and peers, allowing * for announcement of IPs. - * + * * @return the bgpAdvertisements value. */ public List bgpAdvertisements() { @@ -53,7 +58,7 @@ public List bgpAdvertisements() { /** * Set the bgpAdvertisements property: The association of IP address pools to the communities and peers, allowing * for announcement of IPs. - * + * * @param bgpAdvertisements the bgpAdvertisements value to set. * @return the BgpServiceLoadBalancerConfiguration object itself. */ @@ -65,7 +70,7 @@ public BgpServiceLoadBalancerConfiguration withBgpAdvertisements(List bgpPeers() { @@ -75,7 +80,7 @@ public List bgpPeers() { /** * Set the bgpPeers property: The list of additional BgpPeer entities that the Kubernetes cluster will peer with. * All peering must be explicitly defined. - * + * * @param bgpPeers the bgpPeers value to set. * @return the BgpServiceLoadBalancerConfiguration object itself. */ @@ -87,7 +92,7 @@ public BgpServiceLoadBalancerConfiguration withBgpPeers(List ipAddressPools() { @@ -117,9 +122,9 @@ public List ipAddressPools() { } /** - * Set the ipAddressPools property: The list of pools of IP addresses that can be allocated to Load Balancer + * Set the ipAddressPools property: The list of pools of IP addresses that can be allocated to load balancer * services. - * + * * @param ipAddressPools the ipAddressPools value to set. * @return the BgpServiceLoadBalancerConfiguration object itself. */ @@ -130,7 +135,7 @@ public BgpServiceLoadBalancerConfiguration withIpAddressPools(List e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("bgpAdvertisements", this.bgpAdvertisements, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("bgpPeers", this.bgpPeers, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("fabricPeeringEnabled", + this.fabricPeeringEnabled == null ? null : this.fabricPeeringEnabled.toString()); + jsonWriter.writeArrayField("ipAddressPools", this.ipAddressPools, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BgpServiceLoadBalancerConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BgpServiceLoadBalancerConfiguration if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BgpServiceLoadBalancerConfiguration. + */ + public static BgpServiceLoadBalancerConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BgpServiceLoadBalancerConfiguration deserializedBgpServiceLoadBalancerConfiguration + = new BgpServiceLoadBalancerConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("bgpAdvertisements".equals(fieldName)) { + List bgpAdvertisements + = reader.readArray(reader1 -> BgpAdvertisement.fromJson(reader1)); + deserializedBgpServiceLoadBalancerConfiguration.bgpAdvertisements = bgpAdvertisements; + } else if ("bgpPeers".equals(fieldName)) { + List bgpPeers + = reader.readArray(reader1 -> ServiceLoadBalancerBgpPeer.fromJson(reader1)); + deserializedBgpServiceLoadBalancerConfiguration.bgpPeers = bgpPeers; + } else if ("fabricPeeringEnabled".equals(fieldName)) { + deserializedBgpServiceLoadBalancerConfiguration.fabricPeeringEnabled + = FabricPeeringEnabled.fromString(reader.getString()); + } else if ("ipAddressPools".equals(fieldName)) { + List ipAddressPools = reader.readArray(reader1 -> IpAddressPool.fromJson(reader1)); + deserializedBgpServiceLoadBalancerConfiguration.ipAddressPools = ipAddressPools; + } else { + reader.skipChildren(); + } + } + + return deserializedBgpServiceLoadBalancerConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySet.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySet.java index ee664cf192328..7c6261548aa44 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySet.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySet.java @@ -12,56 +12,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of BmcKeySet. */ +/** + * An immutable client-side representation of BmcKeySet. + */ public interface BmcKeySet { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -69,21 +68,21 @@ public interface BmcKeySet { /** * Gets the azureGroupId property: The object ID of Azure Active Directory group that all users in the list must be * in for access to be granted. Users that are not in the group will not have access. - * + * * @return the azureGroupId value. */ String azureGroupId(); /** * Gets the detailedStatus property: The more detailed status of the key set. - * + * * @return the detailedStatus value. */ BmcKeySetDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -91,92 +90,100 @@ public interface BmcKeySet { /** * Gets the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @return the expiration value. */ OffsetDateTime expiration(); /** * Gets the lastValidation property: The last time this key set was validated. - * + * * @return the lastValidation value. */ OffsetDateTime lastValidation(); /** * Gets the privilegeLevel property: The access level allowed for the users in this key set. - * + * * @return the privilegeLevel value. */ BmcKeySetPrivilegeLevel privilegeLevel(); /** * Gets the provisioningState property: The provisioning state of the baseboard management controller key set. - * + * * @return the provisioningState value. */ BmcKeySetProvisioningState provisioningState(); /** * Gets the userList property: The unique list of permitted users. - * + * * @return the userList value. */ List userList(); /** * Gets the userListStatus property: The status evaluation of each user. - * + * * @return the userListStatus value. */ List userListStatus(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.BmcKeySetInner object. - * + * * @return the inner object. */ BmcKeySetInner innerModel(); - /** The entirety of the BmcKeySet definition. */ + /** + * The entirety of the BmcKeySet definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithParentResource, DefinitionStages.WithExtendedLocation, DefinitionStages.WithAzureGroupId, DefinitionStages.WithExpiration, DefinitionStages.WithPrivilegeLevel, DefinitionStages.WithUserList, DefinitionStages.WithCreate { } - /** The BmcKeySet definition stages. */ + /** + * The BmcKeySet definition stages. + */ interface DefinitionStages { - /** The first stage of the BmcKeySet definition. */ + /** + * The first stage of the BmcKeySet definition. + */ interface Blank extends WithLocation { } - /** The stage of the BmcKeySet definition allowing to specify location. */ + /** + * The stage of the BmcKeySet definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -184,18 +191,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the BmcKeySet definition allowing to specify parent resource. */ + /** + * The stage of the BmcKeySet definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, clusterName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @return the next definition stage. @@ -203,64 +212,70 @@ interface WithParentResource { WithExtendedLocation withExistingCluster(String resourceGroupName, String clusterName); } - /** The stage of the BmcKeySet definition allowing to specify extendedLocation. */ + /** + * The stage of the BmcKeySet definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithAzureGroupId withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the BmcKeySet definition allowing to specify azureGroupId. */ + /** + * The stage of the BmcKeySet definition allowing to specify azureGroupId. + */ interface WithAzureGroupId { /** * Specifies the azureGroupId property: The object ID of Azure Active Directory group that all users in the * list must be in for access to be granted. Users that are not in the group will not have access.. - * + * * @param azureGroupId The object ID of Azure Active Directory group that all users in the list must be in - * for access to be granted. Users that are not in the group will not have access. + * for access to be granted. Users that are not in the group will not have access. * @return the next definition stage. */ WithExpiration withAzureGroupId(String azureGroupId); } - /** The stage of the BmcKeySet definition allowing to specify expiration. */ + /** + * The stage of the BmcKeySet definition allowing to specify expiration. + */ interface WithExpiration { /** * Specifies the expiration property: The date and time after which the users in this key set will be * removed from the baseboard management controllers.. - * + * * @param expiration The date and time after which the users in this key set will be removed from the - * baseboard management controllers. + * baseboard management controllers. * @return the next definition stage. */ WithPrivilegeLevel withExpiration(OffsetDateTime expiration); } - /** The stage of the BmcKeySet definition allowing to specify privilegeLevel. */ + /** + * The stage of the BmcKeySet definition allowing to specify privilegeLevel. + */ interface WithPrivilegeLevel { /** * Specifies the privilegeLevel property: The access level allowed for the users in this key set.. - * + * * @param privilegeLevel The access level allowed for the users in this key set. * @return the next definition stage. */ WithUserList withPrivilegeLevel(BmcKeySetPrivilegeLevel privilegeLevel); } - /** The stage of the BmcKeySet definition allowing to specify userList. */ + /** + * The stage of the BmcKeySet definition allowing to specify userList. + */ interface WithUserList { /** * Specifies the userList property: The unique list of permitted users.. - * + * * @param userList The unique list of permitted users. * @return the next definition stage. */ @@ -274,25 +289,27 @@ interface WithUserList { interface WithCreate extends DefinitionStages.WithTags { /** * Executes the create request. - * + * * @return the created resource. */ BmcKeySet create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ BmcKeySet create(Context context); } - /** The stage of the BmcKeySet definition allowing to specify tags. */ + /** + * The stage of the BmcKeySet definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ @@ -302,60 +319,70 @@ interface WithTags { /** * Begins update for the BmcKeySet resource. - * + * * @return the stage of resource update. */ BmcKeySet.Update update(); - /** The template for BmcKeySet update. */ + /** + * The template for BmcKeySet update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithExpiration, UpdateStages.WithUserList { /** * Executes the update request. - * + * * @return the updated resource. */ BmcKeySet apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ BmcKeySet apply(Context context); } - /** The BmcKeySet update stages. */ + /** + * The BmcKeySet update stages. + */ interface UpdateStages { - /** The stage of the BmcKeySet update allowing to specify tags. */ + /** + * The stage of the BmcKeySet update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the BmcKeySet update allowing to specify expiration. */ + /** + * The stage of the BmcKeySet update allowing to specify expiration. + */ interface WithExpiration { /** * Specifies the expiration property: The date and time after which the users in this key set will be * removed from the baseboard management controllers.. - * + * * @param expiration The date and time after which the users in this key set will be removed from the - * baseboard management controllers. + * baseboard management controllers. * @return the next definition stage. */ Update withExpiration(OffsetDateTime expiration); } - /** The stage of the BmcKeySet update allowing to specify userList. */ + /** + * The stage of the BmcKeySet update allowing to specify userList. + */ interface WithUserList { /** * Specifies the userList property: The unique list of permitted users.. - * + * * @param userList The unique list of permitted users. * @return the next definition stage. */ @@ -365,14 +392,14 @@ interface WithUserList { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ BmcKeySet refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetDetailedStatus.java index 662f01e29b724..6456e3b1415ef 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetDetailedStatus.java @@ -5,26 +5,35 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the key set. */ +/** + * The more detailed status of the key set. + */ public final class BmcKeySetDetailedStatus extends ExpandableStringEnum { - /** Static value AllActive for BmcKeySetDetailedStatus. */ + /** + * Static value AllActive for BmcKeySetDetailedStatus. + */ public static final BmcKeySetDetailedStatus ALL_ACTIVE = fromString("AllActive"); - /** Static value SomeInvalid for BmcKeySetDetailedStatus. */ + /** + * Static value SomeInvalid for BmcKeySetDetailedStatus. + */ public static final BmcKeySetDetailedStatus SOME_INVALID = fromString("SomeInvalid"); - /** Static value AllInvalid for BmcKeySetDetailedStatus. */ + /** + * Static value AllInvalid for BmcKeySetDetailedStatus. + */ public static final BmcKeySetDetailedStatus ALL_INVALID = fromString("AllInvalid"); - /** Static value Validating for BmcKeySetDetailedStatus. */ + /** + * Static value Validating for BmcKeySetDetailedStatus. + */ public static final BmcKeySetDetailedStatus VALIDATING = fromString("Validating"); /** * Creates a new instance of BmcKeySetDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,18 +42,17 @@ public BmcKeySetDetailedStatus() { /** * Creates or finds a BmcKeySetDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding BmcKeySetDetailedStatus. */ - @JsonCreator public static BmcKeySetDetailedStatus fromString(String name) { return fromString(name, BmcKeySetDetailedStatus.class); } /** * Gets known BmcKeySetDetailedStatus values. - * + * * @return known BmcKeySetDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetList.java index dbbc7b7a783bd..8ce172cec6377 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.BmcKeySetInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** BmcKeySetList represents a list of baseboard management controller key sets. */ +/** + * BmcKeySetList represents a list of baseboard management controller key sets. + */ @Fluent -public final class BmcKeySetList { +public final class BmcKeySetList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of baseboard management controller key sets. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of BmcKeySetList class. */ + /** + * Creates an instance of BmcKeySetList class. + */ public BmcKeySetList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the BmcKeySetList object itself. */ @@ -50,7 +56,7 @@ public BmcKeySetList withNextLink(String nextLink) { /** * Get the value property: The list of baseboard management controller key sets. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of baseboard management controller key sets. - * + * * @param value the value value to set. * @return the BmcKeySetList object itself. */ @@ -70,7 +76,7 @@ public BmcKeySetList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BmcKeySetList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BmcKeySetList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the BmcKeySetList. + */ + public static BmcKeySetList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BmcKeySetList deserializedBmcKeySetList = new BmcKeySetList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedBmcKeySetList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> BmcKeySetInner.fromJson(reader1)); + deserializedBmcKeySetList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedBmcKeySetList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPatchParameters.java index 7c561e00261fc..1362f1cd6f90d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPatchParameters.java @@ -5,42 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.BmcKeySetPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; -/** BmcKeySetPatchParameters represents the body of the request to patch the baseboard management controller key set. */ +/** + * BmcKeySetPatchParameters represents the body of the request to patch the baseboard management controller key set. + */ @Fluent -public final class BmcKeySetPatchParameters { +public final class BmcKeySetPatchParameters implements JsonSerializable { /* - * BmcKeySetPatchProperties represents the properties of baseboard management controller key set that are - * patchable. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private BmcKeySetPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of BmcKeySetPatchParameters class. */ + /** + * Creates an instance of BmcKeySetPatchParameters class. + */ public BmcKeySetPatchParameters() { } /** - * Get the innerProperties property: BmcKeySetPatchProperties represents the properties of baseboard management - * controller key set that are patchable. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private BmcKeySetPatchProperties innerProperties() { @@ -49,7 +47,7 @@ private BmcKeySetPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -58,7 +56,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the BmcKeySetPatchParameters object itself. */ @@ -70,7 +68,7 @@ public BmcKeySetPatchParameters withTags(Map tags) { /** * Get the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -80,7 +78,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the users in this key set will be removed from the * baseboard management controllers. - * + * * @param expiration the expiration value to set. * @return the BmcKeySetPatchParameters object itself. */ @@ -94,7 +92,7 @@ public BmcKeySetPatchParameters withExpiration(OffsetDateTime expiration) { /** * Get the userList property: The unique list of permitted users. - * + * * @return the userList value. */ public List userList() { @@ -103,7 +101,7 @@ public List userList() { /** * Set the userList property: The unique list of permitted users. - * + * * @param userList the userList value to set. * @return the BmcKeySetPatchParameters object itself. */ @@ -117,7 +115,7 @@ public BmcKeySetPatchParameters withUserList(List userList) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -125,4 +123,44 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BmcKeySetPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BmcKeySetPatchParameters if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BmcKeySetPatchParameters. + */ + public static BmcKeySetPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BmcKeySetPatchParameters deserializedBmcKeySetPatchParameters = new BmcKeySetPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedBmcKeySetPatchParameters.innerProperties = BmcKeySetPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedBmcKeySetPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedBmcKeySetPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPrivilegeLevel.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPrivilegeLevel.java index 9efb3142b1489..aff7bb047c5d6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPrivilegeLevel.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetPrivilegeLevel.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The access level allowed for the users in this key set. */ +/** + * The access level allowed for the users in this key set. + */ public final class BmcKeySetPrivilegeLevel extends ExpandableStringEnum { - /** Static value ReadOnly for BmcKeySetPrivilegeLevel. */ + /** + * Static value ReadOnly for BmcKeySetPrivilegeLevel. + */ public static final BmcKeySetPrivilegeLevel READ_ONLY = fromString("ReadOnly"); - /** Static value Administrator for BmcKeySetPrivilegeLevel. */ + /** + * Static value Administrator for BmcKeySetPrivilegeLevel. + */ public static final BmcKeySetPrivilegeLevel ADMINISTRATOR = fromString("Administrator"); /** * Creates a new instance of BmcKeySetPrivilegeLevel value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public BmcKeySetPrivilegeLevel() { /** * Creates or finds a BmcKeySetPrivilegeLevel from its string representation. - * + * * @param name a name to look for. * @return the corresponding BmcKeySetPrivilegeLevel. */ - @JsonCreator public static BmcKeySetPrivilegeLevel fromString(String name) { return fromString(name, BmcKeySetPrivilegeLevel.class); } /** * Gets known BmcKeySetPrivilegeLevel values. - * + * * @return known BmcKeySetPrivilegeLevel values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetProvisioningState.java index 0078c11cd9b22..7802a79b761dd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySetProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the baseboard management controller key set. */ +/** + * The provisioning state of the baseboard management controller key set. + */ public final class BmcKeySetProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for BmcKeySetProvisioningState. */ + /** + * Static value Succeeded for BmcKeySetProvisioningState. + */ public static final BmcKeySetProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for BmcKeySetProvisioningState. */ + /** + * Static value Failed for BmcKeySetProvisioningState. + */ public static final BmcKeySetProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for BmcKeySetProvisioningState. */ + /** + * Static value Canceled for BmcKeySetProvisioningState. + */ public static final BmcKeySetProvisioningState CANCELED = fromString("Canceled"); - /** Static value Accepted for BmcKeySetProvisioningState. */ + /** + * Static value Accepted for BmcKeySetProvisioningState. + */ public static final BmcKeySetProvisioningState ACCEPTED = fromString("Accepted"); - /** Static value Provisioning for BmcKeySetProvisioningState. */ + /** + * Static value Provisioning for BmcKeySetProvisioningState. + */ public static final BmcKeySetProvisioningState PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of BmcKeySetProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public BmcKeySetProvisioningState() { /** * Creates or finds a BmcKeySetProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding BmcKeySetProvisioningState. */ - @JsonCreator public static BmcKeySetProvisioningState fromString(String name) { return fromString(name, BmcKeySetProvisioningState.class); } /** * Gets known BmcKeySetProvisioningState values. - * + * * @return known BmcKeySetProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySets.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySets.java index 67931afe990f0..53205ddcf9b38 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySets.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BmcKeySets.java @@ -8,28 +8,30 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of BmcKeySets. */ +/** + * Resource collection API of BmcKeySets. + */ public interface BmcKeySets { /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName); /** * List baseboard management controller key sets of the cluster. - * - *

Get a list of baseboard management controller key sets for the provided cluster. - * + * + * Get a list of baseboard management controller key sets for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -37,15 +39,15 @@ public interface BmcKeySets { * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of baseboard management controller key sets for the provided cluster as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -60,9 +62,9 @@ Response getWithResponse(String resourceGroupName, String clusterName /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -75,23 +77,24 @@ Response getWithResponse(String resourceGroupName, String clusterName /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterName, String bmcKeySetName); + OperationStatusResult delete(String resourceGroupName, String clusterName, String bmcKeySetName); /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param bmcKeySetName The name of the baseboard management controller key set. @@ -99,14 +102,15 @@ Response getWithResponse(String resourceGroupName, String clusterName * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterName, String bmcKeySetName, Context context); + OperationStatusResult delete(String resourceGroupName, String clusterName, String bmcKeySetName, Context context); /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -117,9 +121,9 @@ Response getWithResponse(String resourceGroupName, String clusterName /** * Retrieve the baseboard management controller key set of the cluster. - * - *

Get baseboard management controller key set of the provided cluster. - * + * + * Get baseboard management controller key set of the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,32 +135,34 @@ Response getWithResponse(String resourceGroupName, String clusterName /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the baseboard management controller key set of the cluster. - * - *

Delete the baseboard management controller key set of the provided cluster. - * + * + * Delete the baseboard management controller key set of the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new BmcKeySet resource. - * + * * @param name resource name. * @return the first stage of the new BmcKeySet definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BootstrapProtocol.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BootstrapProtocol.java index 09f083d3f9af2..67d72c15e3080 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BootstrapProtocol.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/BootstrapProtocol.java @@ -5,17 +5,20 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of bootstrap protocol used. */ +/** + * The type of bootstrap protocol used. + */ public final class BootstrapProtocol extends ExpandableStringEnum { - /** Static value PXE for BootstrapProtocol. */ + /** + * Static value PXE for BootstrapProtocol. + */ public static final BootstrapProtocol PXE = fromString("PXE"); /** * Creates a new instance of BootstrapProtocol value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,18 +27,17 @@ public BootstrapProtocol() { /** * Creates or finds a BootstrapProtocol from its string representation. - * + * * @param name a name to look for. * @return the corresponding BootstrapProtocol. */ - @JsonCreator public static BootstrapProtocol fromString(String name) { return fromString(name, BootstrapProtocol.class); } /** * Gets known BootstrapProtocol values. - * + * * @return known BootstrapProtocol values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetwork.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetwork.java index 8c4f83a6eac3d..f9be3b93abe49 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetwork.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetwork.java @@ -11,56 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of CloudServicesNetwork. */ +/** + * An immutable client-side representation of CloudServicesNetwork. + */ public interface CloudServicesNetwork { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -68,7 +67,7 @@ public interface CloudServicesNetwork { /** * Gets the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @return the additionalEgressEndpoints value. */ List additionalEgressEndpoints(); @@ -76,7 +75,7 @@ public interface CloudServicesNetwork { /** * Gets the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ List associatedResourceIds(); @@ -84,21 +83,21 @@ public interface CloudServicesNetwork { /** * Gets the clusterId property: The resource ID of the Network Cloud cluster this cloud services network is * associated with. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the detailedStatus property: The more detailed status of the cloud services network. - * + * * @return the detailedStatus value. */ CloudServicesNetworkDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -106,7 +105,7 @@ public interface CloudServicesNetwork { /** * Gets the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @return the enableDefaultEgressEndpoints value. */ CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpoints(); @@ -114,7 +113,7 @@ public interface CloudServicesNetwork { /** * Gets the enabledEgressEndpoints property: The full list of additional and default egress endpoints that are * currently enabled. - * + * * @return the enabledEgressEndpoints value. */ List enabledEgressEndpoints(); @@ -122,7 +121,7 @@ public interface CloudServicesNetwork { /** * Gets the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this cloud services network. - * + * * @return the hybridAksClustersAssociatedIds value. */ List hybridAksClustersAssociatedIds(); @@ -130,14 +129,14 @@ public interface CloudServicesNetwork { /** * Gets the interfaceName property: The name of the interface that will be present in the virtual machine to * represent this network. - * + * * @return the interfaceName value. */ String interfaceName(); /** * Gets the provisioningState property: The provisioning state of the cloud services network. - * + * * @return the provisioningState value. */ CloudServicesNetworkProvisioningState provisioningState(); @@ -146,55 +145,63 @@ public interface CloudServicesNetwork { * Gets the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud * services network. - * + * * @return the virtualMachinesAssociatedIds value. */ List virtualMachinesAssociatedIds(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner object. - * + * * @return the inner object. */ CloudServicesNetworkInner innerModel(); - /** The entirety of the CloudServicesNetwork definition. */ + /** + * The entirety of the CloudServicesNetwork definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithCreate { } - /** The CloudServicesNetwork definition stages. */ + /** + * The CloudServicesNetwork definition stages. + */ interface DefinitionStages { - /** The first stage of the CloudServicesNetwork definition. */ + /** + * The first stage of the CloudServicesNetwork definition. + */ interface Blank extends WithLocation { } - /** The stage of the CloudServicesNetwork definition allowing to specify location. */ + /** + * The stage of the CloudServicesNetwork definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -202,35 +209,35 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the CloudServicesNetwork definition allowing to specify parent resource. */ + /** + * The stage of the CloudServicesNetwork definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the CloudServicesNetwork definition allowing to specify extendedLocation. */ + /** + * The stage of the CloudServicesNetwork definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithCreate withExtendedLocation(ExtendedLocation extendedLocation); @@ -244,52 +251,58 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithAdd DefinitionStages.WithEnableDefaultEgressEndpoints { /** * Executes the create request. - * + * * @return the created resource. */ CloudServicesNetwork create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ CloudServicesNetwork create(Context context); } - /** The stage of the CloudServicesNetwork definition allowing to specify tags. */ + /** + * The stage of the CloudServicesNetwork definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the CloudServicesNetwork definition allowing to specify additionalEgressEndpoints. */ + /** + * The stage of the CloudServicesNetwork definition allowing to specify additionalEgressEndpoints. + */ interface WithAdditionalEgressEndpoints { /** * Specifies the additionalEgressEndpoints property: The list of egress endpoints. This allows for * connection from a Hybrid AKS cluster to the specified endpoint.. - * + * * @param additionalEgressEndpoints The list of egress endpoints. This allows for connection from a Hybrid - * AKS cluster to the specified endpoint. + * AKS cluster to the specified endpoint. * @return the next definition stage. */ WithCreate withAdditionalEgressEndpoints(List additionalEgressEndpoints); } - /** The stage of the CloudServicesNetwork definition allowing to specify enableDefaultEgressEndpoints. */ + /** + * The stage of the CloudServicesNetwork definition allowing to specify enableDefaultEgressEndpoints. + */ interface WithEnableDefaultEgressEndpoints { /** * Specifies the enableDefaultEgressEndpoints property: The indicator of whether the platform default * endpoints are allowed for the egress traffic.. - * + * * @param enableDefaultEgressEndpoints The indicator of whether the platform default endpoints are allowed - * for the egress traffic. + * for the egress traffic. * @return the next definition stage. */ WithCreate withEnableDefaultEgressEndpoints( @@ -299,64 +312,74 @@ WithCreate withEnableDefaultEgressEndpoints( /** * Begins update for the CloudServicesNetwork resource. - * + * * @return the stage of resource update. */ CloudServicesNetwork.Update update(); - /** The template for CloudServicesNetwork update. */ + /** + * The template for CloudServicesNetwork update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithAdditionalEgressEndpoints, UpdateStages.WithEnableDefaultEgressEndpoints { /** * Executes the update request. - * + * * @return the updated resource. */ CloudServicesNetwork apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ CloudServicesNetwork apply(Context context); } - /** The CloudServicesNetwork update stages. */ + /** + * The CloudServicesNetwork update stages. + */ interface UpdateStages { - /** The stage of the CloudServicesNetwork update allowing to specify tags. */ + /** + * The stage of the CloudServicesNetwork update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the CloudServicesNetwork update allowing to specify additionalEgressEndpoints. */ + /** + * The stage of the CloudServicesNetwork update allowing to specify additionalEgressEndpoints. + */ interface WithAdditionalEgressEndpoints { /** * Specifies the additionalEgressEndpoints property: The list of egress endpoints. This allows for * connection from a Hybrid AKS cluster to the specified endpoint.. - * + * * @param additionalEgressEndpoints The list of egress endpoints. This allows for connection from a Hybrid - * AKS cluster to the specified endpoint. + * AKS cluster to the specified endpoint. * @return the next definition stage. */ Update withAdditionalEgressEndpoints(List additionalEgressEndpoints); } - /** The stage of the CloudServicesNetwork update allowing to specify enableDefaultEgressEndpoints. */ + /** + * The stage of the CloudServicesNetwork update allowing to specify enableDefaultEgressEndpoints. + */ interface WithEnableDefaultEgressEndpoints { /** * Specifies the enableDefaultEgressEndpoints property: The indicator of whether the platform default * endpoints are allowed for the egress traffic.. - * + * * @param enableDefaultEgressEndpoints The indicator of whether the platform default endpoints are allowed - * for the egress traffic. + * for the egress traffic. * @return the next definition stage. */ Update withEnableDefaultEgressEndpoints( @@ -366,14 +389,14 @@ Update withEnableDefaultEgressEndpoints( /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ CloudServicesNetwork refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkDetailedStatus.java index a7c51a968e0c1..62d068d1fe048 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the cloud services network. */ +/** + * The more detailed status of the cloud services network. + */ public final class CloudServicesNetworkDetailedStatus extends ExpandableStringEnum { - /** Static value Error for CloudServicesNetworkDetailedStatus. */ + /** + * Static value Error for CloudServicesNetworkDetailedStatus. + */ public static final CloudServicesNetworkDetailedStatus ERROR = fromString("Error"); - /** Static value Available for CloudServicesNetworkDetailedStatus. */ + /** + * Static value Available for CloudServicesNetworkDetailedStatus. + */ public static final CloudServicesNetworkDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for CloudServicesNetworkDetailedStatus. */ + /** + * Static value Provisioning for CloudServicesNetworkDetailedStatus. + */ public static final CloudServicesNetworkDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of CloudServicesNetworkDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public CloudServicesNetworkDetailedStatus() { /** * Creates or finds a CloudServicesNetworkDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding CloudServicesNetworkDetailedStatus. */ - @JsonCreator public static CloudServicesNetworkDetailedStatus fromString(String name) { return fromString(name, CloudServicesNetworkDetailedStatus.class); } /** * Gets known CloudServicesNetworkDetailedStatus values. - * + * * @return known CloudServicesNetworkDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkEnableDefaultEgressEndpoints.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkEnableDefaultEgressEndpoints.java index fb22fd0447587..cb90db45111d6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkEnableDefaultEgressEndpoints.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkEnableDefaultEgressEndpoints.java @@ -5,21 +5,26 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether the platform default endpoints are allowed for the egress traffic. */ +/** + * The indicator of whether the platform default endpoints are allowed for the egress traffic. + */ public final class CloudServicesNetworkEnableDefaultEgressEndpoints extends ExpandableStringEnum { - /** Static value True for CloudServicesNetworkEnableDefaultEgressEndpoints. */ + /** + * Static value True for CloudServicesNetworkEnableDefaultEgressEndpoints. + */ public static final CloudServicesNetworkEnableDefaultEgressEndpoints TRUE = fromString("True"); - /** Static value False for CloudServicesNetworkEnableDefaultEgressEndpoints. */ + /** + * Static value False for CloudServicesNetworkEnableDefaultEgressEndpoints. + */ public static final CloudServicesNetworkEnableDefaultEgressEndpoints FALSE = fromString("False"); /** * Creates a new instance of CloudServicesNetworkEnableDefaultEgressEndpoints value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -28,18 +33,17 @@ public CloudServicesNetworkEnableDefaultEgressEndpoints() { /** * Creates or finds a CloudServicesNetworkEnableDefaultEgressEndpoints from its string representation. - * + * * @param name a name to look for. * @return the corresponding CloudServicesNetworkEnableDefaultEgressEndpoints. */ - @JsonCreator public static CloudServicesNetworkEnableDefaultEgressEndpoints fromString(String name) { return fromString(name, CloudServicesNetworkEnableDefaultEgressEndpoints.class); } /** * Gets known CloudServicesNetworkEnableDefaultEgressEndpoints values. - * + * * @return known CloudServicesNetworkEnableDefaultEgressEndpoints values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkList.java index 1b5c64b4f4e17..e43ac2627bded 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** CloudServicesNetworkList represents a list of cloud services networks. */ +/** + * CloudServicesNetworkList represents a list of cloud services networks. + */ @Fluent -public final class CloudServicesNetworkList { +public final class CloudServicesNetworkList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of cloud services networks. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of CloudServicesNetworkList class. */ + /** + * Creates an instance of CloudServicesNetworkList class. + */ public CloudServicesNetworkList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the CloudServicesNetworkList object itself. */ @@ -50,7 +56,7 @@ public CloudServicesNetworkList withNextLink(String nextLink) { /** * Get the value property: The list of cloud services networks. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of cloud services networks. - * + * * @param value the value value to set. * @return the CloudServicesNetworkList object itself. */ @@ -70,7 +76,7 @@ public CloudServicesNetworkList withValue(List value) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudServicesNetworkList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudServicesNetworkList if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CloudServicesNetworkList. + */ + public static CloudServicesNetworkList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudServicesNetworkList deserializedCloudServicesNetworkList = new CloudServicesNetworkList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedCloudServicesNetworkList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> CloudServicesNetworkInner.fromJson(reader1)); + deserializedCloudServicesNetworkList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedCloudServicesNetworkList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkPatchParameters.java index b91ac9995cebc..44efc3f993e2b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkPatchParameters.java @@ -5,41 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.CloudServicesNetworkPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** CloudServicesNetworkPatchParameters represents the body of the request to patch the cloud services network. */ +/** + * CloudServicesNetworkPatchParameters represents the body of the request to patch the cloud services network. + */ @Fluent -public final class CloudServicesNetworkPatchParameters { +public final class CloudServicesNetworkPatchParameters + implements JsonSerializable { /* - * CloudServicesNetworkPatchProperties represents the properties of the cloud services network that can be updated - * using a patch request. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private CloudServicesNetworkPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of CloudServicesNetworkPatchParameters class. */ + /** + * Creates an instance of CloudServicesNetworkPatchParameters class. + */ public CloudServicesNetworkPatchParameters() { } /** - * Get the innerProperties property: CloudServicesNetworkPatchProperties represents the properties of the cloud - * services network that can be updated using a patch request. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private CloudServicesNetworkPatchProperties innerProperties() { @@ -48,7 +47,7 @@ private CloudServicesNetworkPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -57,7 +56,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the CloudServicesNetworkPatchParameters object itself. */ @@ -69,7 +68,7 @@ public CloudServicesNetworkPatchParameters withTags(Map tags) { /** * Get the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @return the additionalEgressEndpoints value. */ public List additionalEgressEndpoints() { @@ -79,7 +78,7 @@ public List additionalEgressEndpoints() { /** * Set the additionalEgressEndpoints property: The list of egress endpoints. This allows for connection from a * Hybrid AKS cluster to the specified endpoint. - * + * * @param additionalEgressEndpoints the additionalEgressEndpoints value to set. * @return the CloudServicesNetworkPatchParameters object itself. */ @@ -95,7 +94,7 @@ public List additionalEgressEndpoints() { /** * Get the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @return the enableDefaultEgressEndpoints value. */ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpoints() { @@ -105,7 +104,7 @@ public CloudServicesNetworkEnableDefaultEgressEndpoints enableDefaultEgressEndpo /** * Set the enableDefaultEgressEndpoints property: The indicator of whether the platform default endpoints are * allowed for the egress traffic. - * + * * @param enableDefaultEgressEndpoints the enableDefaultEgressEndpoints value to set. * @return the CloudServicesNetworkPatchParameters object itself. */ @@ -120,7 +119,7 @@ public CloudServicesNetworkPatchParameters withEnableDefaultEgressEndpoints( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -128,4 +127,46 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudServicesNetworkPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudServicesNetworkPatchParameters if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CloudServicesNetworkPatchParameters. + */ + public static CloudServicesNetworkPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudServicesNetworkPatchParameters deserializedCloudServicesNetworkPatchParameters + = new CloudServicesNetworkPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedCloudServicesNetworkPatchParameters.innerProperties + = CloudServicesNetworkPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedCloudServicesNetworkPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedCloudServicesNetworkPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkProvisioningState.java index b5b601d60d337..30ac919efd194 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworkProvisioningState.java @@ -5,30 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the cloud services network. */ +/** + * The provisioning state of the cloud services network. + */ public final class CloudServicesNetworkProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for CloudServicesNetworkProvisioningState. */ + /** + * Static value Succeeded for CloudServicesNetworkProvisioningState. + */ public static final CloudServicesNetworkProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for CloudServicesNetworkProvisioningState. */ + /** + * Static value Failed for CloudServicesNetworkProvisioningState. + */ public static final CloudServicesNetworkProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for CloudServicesNetworkProvisioningState. */ + /** + * Static value Canceled for CloudServicesNetworkProvisioningState. + */ public static final CloudServicesNetworkProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for CloudServicesNetworkProvisioningState. */ + /** + * Static value Provisioning for CloudServicesNetworkProvisioningState. + */ public static final CloudServicesNetworkProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for CloudServicesNetworkProvisioningState. */ + /** + * Static value Accepted for CloudServicesNetworkProvisioningState. + */ public static final CloudServicesNetworkProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of CloudServicesNetworkProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,18 +48,17 @@ public CloudServicesNetworkProvisioningState() { /** * Creates or finds a CloudServicesNetworkProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding CloudServicesNetworkProvisioningState. */ - @JsonCreator public static CloudServicesNetworkProvisioningState fromString(String name) { return fromString(name, CloudServicesNetworkProvisioningState.class); } /** * Gets known CloudServicesNetworkProvisioningState values. - * + * * @return known CloudServicesNetworkProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworks.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworks.java index 1faf539e197ac..a528e835c6b3c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworks.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CloudServicesNetworks.java @@ -8,68 +8,70 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of CloudServicesNetworks. */ +/** + * Resource collection API of CloudServicesNetworks. + */ public interface CloudServicesNetworks { /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** * List cloud services networks in the subscription. - * - *

Get a list of cloud services networks in the provided subscription. - * + * + * Get a list of cloud services networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List cloud services networks in the resource group. - * - *

Get a list of cloud services networks in the provided resource group. - * + * + * Get a list of cloud services networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cloud services networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cloud services networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. @@ -83,9 +85,9 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -97,36 +99,38 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String cloudServicesNetworkName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String cloudServicesNetworkName); /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudServicesNetworkName The name of the cloud services network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String cloudServicesNetworkName, Context context); + OperationStatusResult delete(String resourceGroupName, String cloudServicesNetworkName, Context context); /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -137,9 +141,9 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Retrieve the cloud services network. - * - *

Get properties of the provided cloud services network. - * + * + * Get properties of the provided cloud services network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,32 +155,34 @@ Response getByResourceGroupWithResponse(String resourceGro /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the cloud services network. - * - *

Delete the provided cloud services network. - * + * + * Delete the provided cloud services network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new CloudServicesNetwork resource. - * + * * @param name resource name. * @return the first stage of the new CloudServicesNetwork definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java index c89ae6d439df1..c824d09a4bb29 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Cluster.java @@ -11,66 +11,70 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of Cluster. */ +/** + * An immutable client-side representation of Cluster. + */ public interface Cluster { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster manager associated with the cluster. - * + * Gets the extendedLocation property: The extended location of the cluster manager associated with the cluster. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); + /** + * Gets the identity property: The identity for the resource. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** - * Gets the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Gets the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @return the aggregatorOrSingleRackDefinition value. */ RackDefinition aggregatorOrSingleRackDefinition(); @@ -78,7 +82,7 @@ public interface Cluster { /** * Gets the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for * storing relevant logs. - * + * * @return the analyticsWorkspaceId value. */ String analyticsWorkspaceId(); @@ -86,16 +90,14 @@ public interface Cluster { /** * Gets the availableUpgradeVersions property: The list of cluster runtime version upgrades available for this * cluster. - * + * * @return the availableUpgradeVersions value. */ List availableUpgradeVersions(); /** - * Gets the clusterCapacity property: ClusterCapacity represents various details regarding compute capacity. - * - *

The capacity supported by this cluster. - * + * Gets the clusterCapacity property: The capacity supported by this cluster. + * * @return the clusterCapacity value. */ ClusterCapacity clusterCapacity(); @@ -103,18 +105,16 @@ public interface Cluster { /** * Gets the clusterConnectionStatus property: The latest heartbeat status between the cluster manager and the * cluster. - * + * * @return the clusterConnectionStatus value. */ ClusterConnectionStatus clusterConnectionStatus(); /** - * Gets the clusterExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location (custom location) that represents the cluster's control plane location. This extended - * location is used to route the requests of child objects of the cluster that are handled by the platform operator. - * + * Gets the clusterExtendedLocation property: The extended location (custom location) that represents the cluster's + * control plane location. This extended location is used to route the requests of child objects of the cluster that + * are handled by the platform operator. + * * @return the clusterExtendedLocation value. */ ExtendedLocation clusterExtendedLocation(); @@ -122,7 +122,7 @@ public interface Cluster { /** * Gets the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @return the clusterLocation value. */ String clusterLocation(); @@ -130,7 +130,7 @@ public interface Cluster { /** * Gets the clusterManagerConnectionStatus property: The latest connectivity status between cluster manager and the * cluster. - * + * * @return the clusterManagerConnectionStatus value. */ ClusterManagerConnectionStatus clusterManagerConnectionStatus(); @@ -138,42 +138,45 @@ public interface Cluster { /** * Gets the clusterManagerId property: The resource ID of the cluster manager that manages this cluster. This is set * by the Cluster Manager when the cluster is created. - * + * * @return the clusterManagerId value. */ String clusterManagerId(); /** - * Gets the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Gets the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @return the clusterServicePrincipal value. */ ServicePrincipalInformation clusterServicePrincipal(); /** * Gets the clusterType property: The type of rack configuration for the cluster. - * + * * @return the clusterType value. */ ClusterType clusterType(); /** * Gets the clusterVersion property: The current runtime version of the cluster. - * + * * @return the clusterVersion value. */ String clusterVersion(); /** - * Gets the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Gets the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal + * machine run read only commands and data extracts. + * + * @return the commandOutputSettings value. + */ + CommandOutputSettings commandOutputSettings(); + + /** + * Gets the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @return the computeDeploymentThreshold value. */ ValidationThreshold computeDeploymentThreshold(); @@ -181,128 +184,153 @@ public interface Cluster { /** * Gets the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @return the computeRackDefinitions value. */ List computeRackDefinitions(); /** * Gets the detailedStatus property: The current detailed status of the cluster. - * + * * @return the detailedStatus value. */ ClusterDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** - * Gets the hybridAksExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

Field Deprecated. This field will not be populated in an upcoming version. The extended location (custom - * location) that represents the Hybrid AKS control plane location. This extended location is used when creating - * provisioned clusters (Hybrid AKS clusters). - * + * Gets the hybridAksExtendedLocation property: Field Deprecated. This field will not be populated in an upcoming + * version. The extended location (custom location) that represents the Hybrid AKS control plane location. This + * extended location is used when creating provisioned clusters (Hybrid AKS clusters). + * * @return the hybridAksExtendedLocation value. */ ExtendedLocation hybridAksExtendedLocation(); /** - * Gets the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Gets the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ ManagedResourceGroupConfiguration managedResourceGroupConfiguration(); /** * Gets the manualActionCount property: The count of Manual Action Taken (MAT) events that have not been validated. - * + * * @return the manualActionCount value. */ Long manualActionCount(); /** * Gets the networkFabricId property: The resource ID of the Network Fabric associated with the cluster. - * + * * @return the networkFabricId value. */ String networkFabricId(); /** * Gets the provisioningState property: The provisioning state of the cluster. - * + * * @return the provisioningState value. */ ClusterProvisioningState provisioningState(); + /** + * Gets the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @return the runtimeProtectionConfiguration value. + */ + RuntimeProtectionConfiguration runtimeProtectionConfiguration(); + + /** + * Gets the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @return the secretArchive value. + */ + ClusterSecretArchive secretArchive(); + /** * Gets the supportExpiryDate property: The support end date of the runtime version of the cluster. - * + * * @return the supportExpiryDate value. */ String supportExpiryDate(); + /** + * Gets the updateStrategy property: The strategy for updating the cluster. + * + * @return the updateStrategy value. + */ + ClusterUpdateStrategy updateStrategy(); + /** * Gets the workloadResourceIds property: The list of workload resource IDs that are hosted within this cluster. - * + * * @return the workloadResourceIds value. */ List workloadResourceIds(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.ClusterInner object. - * + * * @return the inner object. */ ClusterInner innerModel(); - /** The entirety of the Cluster definition. */ + /** + * The entirety of the Cluster definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithAggregatorOrSingleRackDefinition, DefinitionStages.WithClusterType, DefinitionStages.WithClusterVersion, DefinitionStages.WithNetworkFabricId, DefinitionStages.WithCreate { } - /** The Cluster definition stages. */ + /** + * The Cluster definition stages. + */ interface DefinitionStages { - /** The first stage of the Cluster definition. */ + /** + * The first stage of the Cluster definition. + */ interface Blank extends WithLocation { } - /** The stage of the Cluster definition allowing to specify location. */ + /** + * The stage of the Cluster definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -310,85 +338,89 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the Cluster definition allowing to specify parent resource. */ + /** + * The stage of the Cluster definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the Cluster definition allowing to specify extendedLocation. */ + /** + * The stage of the Cluster definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster manager associated with the cluster.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster manager associated with the cluster. + * Specifies the extendedLocation property: The extended location of the cluster manager associated with the + * cluster.. + * + * @param extendedLocation The extended location of the cluster manager associated with the cluster. * @return the next definition stage. */ WithAggregatorOrSingleRackDefinition withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the Cluster definition allowing to specify aggregatorOrSingleRackDefinition. */ + /** + * The stage of the Cluster definition allowing to specify aggregatorOrSingleRackDefinition. + */ interface WithAggregatorOrSingleRackDefinition { /** - * Specifies the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the - * rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an - * aggregator rack in a multi-rack cluster.. - * - * @param aggregatorOrSingleRackDefinition RackDefinition represents details regarding the rack. - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an - * aggregator rack in a multi-rack cluster. + * Specifies the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect + * only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster.. + * + * @param aggregatorOrSingleRackDefinition The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. * @return the next definition stage. */ WithClusterType withAggregatorOrSingleRackDefinition(RackDefinition aggregatorOrSingleRackDefinition); } - /** The stage of the Cluster definition allowing to specify clusterType. */ + /** + * The stage of the Cluster definition allowing to specify clusterType. + */ interface WithClusterType { /** * Specifies the clusterType property: The type of rack configuration for the cluster.. - * + * * @param clusterType The type of rack configuration for the cluster. * @return the next definition stage. */ WithClusterVersion withClusterType(ClusterType clusterType); } - /** The stage of the Cluster definition allowing to specify clusterVersion. */ + /** + * The stage of the Cluster definition allowing to specify clusterVersion. + */ interface WithClusterVersion { /** * Specifies the clusterVersion property: The current runtime version of the cluster.. - * + * * @param clusterVersion The current runtime version of the cluster. * @return the next definition stage. */ WithNetworkFabricId withClusterVersion(String clusterVersion); } - /** The stage of the Cluster definition allowing to specify networkFabricId. */ + /** + * The stage of the Cluster definition allowing to specify networkFabricId. + */ interface WithNetworkFabricId { /** * Specifies the networkFabricId property: The resource ID of the Network Fabric associated with the * cluster.. - * + * * @param networkFabricId The resource ID of the Network Fabric associated with the cluster. * @return the next definition stage. */ @@ -399,264 +431,448 @@ interface WithNetworkFabricId { * The stage of the Cluster definition which contains all the minimum required properties for the resource to be * created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithAnalyticsWorkspaceId, - DefinitionStages.WithClusterLocation, DefinitionStages.WithClusterServicePrincipal, + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, + DefinitionStages.WithAnalyticsWorkspaceId, DefinitionStages.WithClusterLocation, + DefinitionStages.WithClusterServicePrincipal, DefinitionStages.WithCommandOutputSettings, DefinitionStages.WithComputeDeploymentThreshold, DefinitionStages.WithComputeRackDefinitions, - DefinitionStages.WithManagedResourceGroupConfiguration { + DefinitionStages.WithManagedResourceGroupConfiguration, DefinitionStages.WithRuntimeProtectionConfiguration, + DefinitionStages.WithSecretArchive, DefinitionStages.WithUpdateStrategy { /** * Executes the create request. - * + * * @return the created resource. */ Cluster create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Cluster create(Context context); } - /** The stage of the Cluster definition allowing to specify tags. */ + /** + * The stage of the Cluster definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the Cluster definition allowing to specify analyticsWorkspaceId. */ + /** + * The stage of the Cluster definition allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: The identity for the resource.. + * + * @param identity The identity for the resource. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } + + /** + * The stage of the Cluster definition allowing to specify analyticsWorkspaceId. + */ interface WithAnalyticsWorkspaceId { /** * Specifies the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be * used for storing relevant logs.. - * + * * @param analyticsWorkspaceId The resource ID of the Log Analytics Workspace that will be used for storing - * relevant logs. + * relevant logs. * @return the next definition stage. */ WithCreate withAnalyticsWorkspaceId(String analyticsWorkspaceId); } - /** The stage of the Cluster definition allowing to specify clusterLocation. */ + /** + * The stage of the Cluster definition allowing to specify clusterLocation. + */ interface WithClusterLocation { /** * Specifies the clusterLocation property: The customer-provided location information to identify where the * cluster resides.. - * + * * @param clusterLocation The customer-provided location information to identify where the cluster resides. * @return the next definition stage. */ WithCreate withClusterLocation(String clusterLocation); } - /** The stage of the Cluster definition allowing to specify clusterServicePrincipal. */ + /** + * The stage of the Cluster definition allowing to specify clusterServicePrincipal. + */ interface WithClusterServicePrincipal { /** - * Specifies the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the - * service principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation.. - * - * @param clusterServicePrincipal ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - *

The service principal to be used by the cluster during Arc Appliance installation. + * Specifies the clusterServicePrincipal property: The service principal to be used by the cluster during + * Arc Appliance installation.. + * + * @param clusterServicePrincipal The service principal to be used by the cluster during Arc Appliance + * installation. * @return the next definition stage. */ WithCreate withClusterServicePrincipal(ServicePrincipalInformation clusterServicePrincipal); } - /** The stage of the Cluster definition allowing to specify computeDeploymentThreshold. */ + /** + * The stage of the Cluster definition allowing to specify commandOutputSettings. + */ + interface WithCommandOutputSettings { + /** + * Specifies the commandOutputSettings property: The settings for commands run in this cluster, such as bare + * metal machine run read only commands and data extracts.. + * + * @param commandOutputSettings The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * @return the next definition stage. + */ + WithCreate withCommandOutputSettings(CommandOutputSettings commandOutputSettings); + } + + /** + * The stage of the Cluster definition allowing to specify computeDeploymentThreshold. + */ interface WithComputeDeploymentThreshold { /** - * Specifies the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node - * hardware and deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment - * validation and deployment.. - * - * @param computeDeploymentThreshold ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - *

The validation threshold indicating the allowable failures of compute machines during environment - * validation and deployment. + * Specifies the computeDeploymentThreshold property: The validation threshold indicating the allowable + * failures of compute machines during environment validation and deployment.. + * + * @param computeDeploymentThreshold The validation threshold indicating the allowable failures of compute + * machines during environment validation and deployment. * @return the next definition stage. */ WithCreate withComputeDeploymentThreshold(ValidationThreshold computeDeploymentThreshold); } - /** The stage of the Cluster definition allowing to specify computeRackDefinitions. */ + /** + * The stage of the Cluster definition allowing to specify computeRackDefinitions. + */ interface WithComputeRackDefinitions { /** * Specifies the computeRackDefinitions property: The list of rack definitions for the compute racks in a - * multi-rack cluster, or an empty list in a single-rack cluster.. - * - * @param computeRackDefinitions The list of rack definitions for the compute racks in a multi-rack cluster, - * or an empty list in a single-rack cluster. + * multi-rack + * cluster, or an empty list in a single-rack cluster.. + * + * @param computeRackDefinitions The list of rack definitions for the compute racks in a multi-rack + * cluster, or an empty list in a single-rack cluster. * @return the next definition stage. */ WithCreate withComputeRackDefinitions(List computeRackDefinitions); } - /** The stage of the Cluster definition allowing to specify managedResourceGroupConfiguration. */ + /** + * The stage of the Cluster definition allowing to specify managedResourceGroupConfiguration. + */ interface WithManagedResourceGroupConfiguration { /** - * Specifies the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents - * the configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource.. - * - * @param managedResourceGroupConfiguration ManagedResourceGroupConfiguration represents the configuration - * of the resource group managed by Azure. - *

The configuration of the managed resource group associated with the resource. + * Specifies the managedResourceGroupConfiguration property: The configuration of the managed resource group + * associated with the resource.. + * + * @param managedResourceGroupConfiguration The configuration of the managed resource group associated with + * the resource. * @return the next definition stage. */ WithCreate withManagedResourceGroupConfiguration( ManagedResourceGroupConfiguration managedResourceGroupConfiguration); } + + /** + * The stage of the Cluster definition allowing to specify runtimeProtectionConfiguration. + */ + interface WithRuntimeProtectionConfiguration { + /** + * Specifies the runtimeProtectionConfiguration property: The settings for cluster runtime protection.. + * + * @param runtimeProtectionConfiguration The settings for cluster runtime protection. + * @return the next definition stage. + */ + WithCreate + withRuntimeProtectionConfiguration(RuntimeProtectionConfiguration runtimeProtectionConfiguration); + } + + /** + * The stage of the Cluster definition allowing to specify secretArchive. + */ + interface WithSecretArchive { + /** + * Specifies the secretArchive property: The configuration for use of a key vault to store secrets for later + * retrieval by the operator.. + * + * @param secretArchive The configuration for use of a key vault to store secrets for later retrieval by the + * operator. + * @return the next definition stage. + */ + WithCreate withSecretArchive(ClusterSecretArchive secretArchive); + } + + /** + * The stage of the Cluster definition allowing to specify updateStrategy. + */ + interface WithUpdateStrategy { + /** + * Specifies the updateStrategy property: The strategy for updating the cluster.. + * + * @param updateStrategy The strategy for updating the cluster. + * @return the next definition stage. + */ + WithCreate withUpdateStrategy(ClusterUpdateStrategy updateStrategy); + } } /** * Begins update for the Cluster resource. - * + * * @return the stage of resource update. */ Cluster.Update update(); - /** The template for Cluster update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithAggregatorOrSingleRackDefinition, + /** + * The template for Cluster update. + */ + interface Update + extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithAggregatorOrSingleRackDefinition, UpdateStages.WithClusterLocation, UpdateStages.WithClusterServicePrincipal, - UpdateStages.WithComputeDeploymentThreshold, UpdateStages.WithComputeRackDefinitions { + UpdateStages.WithCommandOutputSettings, UpdateStages.WithComputeDeploymentThreshold, + UpdateStages.WithComputeRackDefinitions, UpdateStages.WithRuntimeProtectionConfiguration, + UpdateStages.WithSecretArchive, UpdateStages.WithUpdateStrategy { /** * Executes the update request. - * + * * @return the updated resource. */ Cluster apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Cluster apply(Context context); } - /** The Cluster update stages. */ + /** + * The Cluster update stages. + */ interface UpdateStages { - /** The stage of the Cluster update allowing to specify tags. */ + /** + * The stage of the Cluster update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the Cluster update allowing to specify aggregatorOrSingleRackDefinition. */ + /** + * The stage of the Cluster update allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: The identity for the resource.. + * + * @param identity The identity for the resource. + * @return the next definition stage. + */ + Update withIdentity(ManagedServiceIdentity identity); + } + + /** + * The stage of the Cluster update allowing to specify aggregatorOrSingleRackDefinition. + */ interface WithAggregatorOrSingleRackDefinition { /** - * Specifies the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the - * rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an - * aggregator rack in a multi-rack cluster.. - * - * @param aggregatorOrSingleRackDefinition RackDefinition represents details regarding the rack. - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an - * aggregator rack in a multi-rack cluster. + * Specifies the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect + * only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster.. + * + * @param aggregatorOrSingleRackDefinition The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. * @return the next definition stage. */ Update withAggregatorOrSingleRackDefinition(RackDefinition aggregatorOrSingleRackDefinition); } - /** The stage of the Cluster update allowing to specify clusterLocation. */ + /** + * The stage of the Cluster update allowing to specify clusterLocation. + */ interface WithClusterLocation { /** * Specifies the clusterLocation property: The customer-provided location information to identify where the * cluster resides.. - * + * * @param clusterLocation The customer-provided location information to identify where the cluster resides. * @return the next definition stage. */ Update withClusterLocation(String clusterLocation); } - /** The stage of the Cluster update allowing to specify clusterServicePrincipal. */ + /** + * The stage of the Cluster update allowing to specify clusterServicePrincipal. + */ interface WithClusterServicePrincipal { /** - * Specifies the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the - * service principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation.. - * - * @param clusterServicePrincipal ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - *

The service principal to be used by the cluster during Arc Appliance installation. + * Specifies the clusterServicePrincipal property: The service principal to be used by the cluster during + * Arc Appliance installation.. + * + * @param clusterServicePrincipal The service principal to be used by the cluster during Arc Appliance + * installation. * @return the next definition stage. */ Update withClusterServicePrincipal(ServicePrincipalInformation clusterServicePrincipal); } - /** The stage of the Cluster update allowing to specify computeDeploymentThreshold. */ + /** + * The stage of the Cluster update allowing to specify commandOutputSettings. + */ + interface WithCommandOutputSettings { + /** + * Specifies the commandOutputSettings property: The settings for commands run in this cluster, such as bare + * metal machine run read only commands and data extracts.. + * + * @param commandOutputSettings The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * @return the next definition stage. + */ + Update withCommandOutputSettings(CommandOutputSettings commandOutputSettings); + } + + /** + * The stage of the Cluster update allowing to specify computeDeploymentThreshold. + */ interface WithComputeDeploymentThreshold { /** - * Specifies the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node - * hardware and deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment - * validation and deployment.. - * - * @param computeDeploymentThreshold ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - *

The validation threshold indicating the allowable failures of compute machines during environment - * validation and deployment. + * Specifies the computeDeploymentThreshold property: The validation threshold indicating the allowable + * failures of compute machines during environment validation and deployment.. + * + * @param computeDeploymentThreshold The validation threshold indicating the allowable failures of compute + * machines during environment validation and deployment. * @return the next definition stage. */ Update withComputeDeploymentThreshold(ValidationThreshold computeDeploymentThreshold); } - /** The stage of the Cluster update allowing to specify computeRackDefinitions. */ + /** + * The stage of the Cluster update allowing to specify computeRackDefinitions. + */ interface WithComputeRackDefinitions { /** * Specifies the computeRackDefinitions property: The list of rack definitions for the compute racks in a - * multi-rack cluster, or an empty list in a single-rack cluster.. - * - * @param computeRackDefinitions The list of rack definitions for the compute racks in a multi-rack cluster, - * or an empty list in a single-rack cluster. + * multi-rack + * cluster, or an empty list in a single-rack cluster.. + * + * @param computeRackDefinitions The list of rack definitions for the compute racks in a multi-rack + * cluster, or an empty list in a single-rack cluster. * @return the next definition stage. */ Update withComputeRackDefinitions(List computeRackDefinitions); } + + /** + * The stage of the Cluster update allowing to specify runtimeProtectionConfiguration. + */ + interface WithRuntimeProtectionConfiguration { + /** + * Specifies the runtimeProtectionConfiguration property: The settings for cluster runtime protection.. + * + * @param runtimeProtectionConfiguration The settings for cluster runtime protection. + * @return the next definition stage. + */ + Update withRuntimeProtectionConfiguration(RuntimeProtectionConfiguration runtimeProtectionConfiguration); + } + + /** + * The stage of the Cluster update allowing to specify secretArchive. + */ + interface WithSecretArchive { + /** + * Specifies the secretArchive property: The configuration for use of a key vault to store secrets for later + * retrieval by the operator.. + * + * @param secretArchive The configuration for use of a key vault to store secrets for later retrieval by the + * operator. + * @return the next definition stage. + */ + Update withSecretArchive(ClusterSecretArchive secretArchive); + } + + /** + * The stage of the Cluster update allowing to specify updateStrategy. + */ + interface WithUpdateStrategy { + /** + * Specifies the updateStrategy property: The strategy for updating the cluster.. + * + * @param updateStrategy The strategy for updating the cluster. + * @return the next definition stage. + */ + Update withUpdateStrategy(ClusterUpdateStrategy updateStrategy); + } } /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Cluster refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ Cluster refresh(Context context); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult + continueUpdateVersion(ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters); + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult continueUpdateVersion( + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context); + + /** + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -664,10 +880,10 @@ interface WithComputeRackDefinitions { OperationStatusResult deploy(); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param clusterDeployParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -677,11 +893,38 @@ interface WithComputeRackDefinitions { */ OperationStatusResult deploy(ClusterDeployParameters clusterDeployParameters, Context context); + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult scanRuntime(); + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult scanRuntime(ClusterScanRuntimeParameters clusterScanRuntimeParameters, Context context); + /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param clusterUpdateVersionParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -692,9 +935,9 @@ interface WithComputeRackDefinitions { /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param clusterUpdateVersionParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableUpgradeVersion.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableUpgradeVersion.java index ef45a2b49f29f..3fa3393b9a81a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableUpgradeVersion.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableUpgradeVersion.java @@ -5,54 +5,56 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** ClusterAvailableUpgradeVersion represents the various cluster upgrade parameters. */ +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * ClusterAvailableUpgradeVersion represents the various cluster upgrade parameters. + */ @Immutable -public final class ClusterAvailableUpgradeVersion { +public final class ClusterAvailableUpgradeVersion implements JsonSerializable { /* * The indicator of whether the control plane will be impacted during the upgrade. */ - @JsonProperty(value = "controlImpact", access = JsonProperty.Access.WRITE_ONLY) private ControlImpact controlImpact; /* * The expected duration needed for this upgrade. */ - @JsonProperty(value = "expectedDuration", access = JsonProperty.Access.WRITE_ONLY) private String expectedDuration; /* * The impact description including the specific details and release notes. */ - @JsonProperty(value = "impactDescription", access = JsonProperty.Access.WRITE_ONLY) private String impactDescription; /* * The last date the version of the platform is supported. */ - @JsonProperty(value = "supportExpiryDate", access = JsonProperty.Access.WRITE_ONLY) private String supportExpiryDate; /* * The target version this cluster will be upgraded to. */ - @JsonProperty(value = "targetClusterVersion", access = JsonProperty.Access.WRITE_ONLY) private String targetClusterVersion; /* * The indicator of whether the workload will be impacted during the upgrade. */ - @JsonProperty(value = "workloadImpact", access = JsonProperty.Access.WRITE_ONLY) private WorkloadImpact workloadImpact; - /** Creates an instance of ClusterAvailableUpgradeVersion class. */ + /** + * Creates an instance of ClusterAvailableUpgradeVersion class. + */ public ClusterAvailableUpgradeVersion() { } /** * Get the controlImpact property: The indicator of whether the control plane will be impacted during the upgrade. - * + * * @return the controlImpact value. */ public ControlImpact controlImpact() { @@ -61,7 +63,7 @@ public ControlImpact controlImpact() { /** * Get the expectedDuration property: The expected duration needed for this upgrade. - * + * * @return the expectedDuration value. */ public String expectedDuration() { @@ -70,7 +72,7 @@ public String expectedDuration() { /** * Get the impactDescription property: The impact description including the specific details and release notes. - * + * * @return the impactDescription value. */ public String impactDescription() { @@ -79,7 +81,7 @@ public String impactDescription() { /** * Get the supportExpiryDate property: The last date the version of the platform is supported. - * + * * @return the supportExpiryDate value. */ public String supportExpiryDate() { @@ -88,7 +90,7 @@ public String supportExpiryDate() { /** * Get the targetClusterVersion property: The target version this cluster will be upgraded to. - * + * * @return the targetClusterVersion value. */ public String targetClusterVersion() { @@ -97,7 +99,7 @@ public String targetClusterVersion() { /** * Get the workloadImpact property: The indicator of whether the workload will be impacted during the upgrade. - * + * * @return the workloadImpact value. */ public WorkloadImpact workloadImpact() { @@ -106,9 +108,57 @@ public WorkloadImpact workloadImpact() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterAvailableUpgradeVersion from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterAvailableUpgradeVersion if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterAvailableUpgradeVersion. + */ + public static ClusterAvailableUpgradeVersion fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterAvailableUpgradeVersion deserializedClusterAvailableUpgradeVersion + = new ClusterAvailableUpgradeVersion(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("controlImpact".equals(fieldName)) { + deserializedClusterAvailableUpgradeVersion.controlImpact + = ControlImpact.fromString(reader.getString()); + } else if ("expectedDuration".equals(fieldName)) { + deserializedClusterAvailableUpgradeVersion.expectedDuration = reader.getString(); + } else if ("impactDescription".equals(fieldName)) { + deserializedClusterAvailableUpgradeVersion.impactDescription = reader.getString(); + } else if ("supportExpiryDate".equals(fieldName)) { + deserializedClusterAvailableUpgradeVersion.supportExpiryDate = reader.getString(); + } else if ("targetClusterVersion".equals(fieldName)) { + deserializedClusterAvailableUpgradeVersion.targetClusterVersion = reader.getString(); + } else if ("workloadImpact".equals(fieldName)) { + deserializedClusterAvailableUpgradeVersion.workloadImpact + = WorkloadImpact.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterAvailableUpgradeVersion; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableVersion.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableVersion.java index 24ecfc585a7d5..16784f01a26fb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableVersion.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterAvailableVersion.java @@ -5,32 +5,36 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * ClusterAvailableVersion represents the cluster version that the cluster manager can be asked to create and manage. */ @Immutable -public final class ClusterAvailableVersion { +public final class ClusterAvailableVersion implements JsonSerializable { /* * The last date the version of the platform is supported. */ - @JsonProperty(value = "supportExpiryDate", access = JsonProperty.Access.WRITE_ONLY) private String supportExpiryDate; /* * The version of the cluster to be deployed. */ - @JsonProperty(value = "targetClusterVersion", access = JsonProperty.Access.WRITE_ONLY) private String targetClusterVersion; - /** Creates an instance of ClusterAvailableVersion class. */ + /** + * Creates an instance of ClusterAvailableVersion class. + */ public ClusterAvailableVersion() { } /** * Get the supportExpiryDate property: The last date the version of the platform is supported. - * + * * @return the supportExpiryDate value. */ public String supportExpiryDate() { @@ -39,7 +43,7 @@ public String supportExpiryDate() { /** * Get the targetClusterVersion property: The version of the cluster to be deployed. - * + * * @return the targetClusterVersion value. */ public String targetClusterVersion() { @@ -48,9 +52,46 @@ public String targetClusterVersion() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterAvailableVersion from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterAvailableVersion if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterAvailableVersion. + */ + public static ClusterAvailableVersion fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterAvailableVersion deserializedClusterAvailableVersion = new ClusterAvailableVersion(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("supportExpiryDate".equals(fieldName)) { + deserializedClusterAvailableVersion.supportExpiryDate = reader.getString(); + } else if ("targetClusterVersion".equals(fieldName)) { + deserializedClusterAvailableVersion.targetClusterVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterAvailableVersion; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterCapacity.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterCapacity.java index 9b5c709ead36a..734449c4ad7da 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterCapacity.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterCapacity.java @@ -5,67 +5,67 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** ClusterCapacity represents various details regarding compute capacity. */ +/** + * ClusterCapacity represents various details regarding compute capacity. + */ @Fluent -public final class ClusterCapacity { +public final class ClusterCapacity implements JsonSerializable { /* - * The remaining appliance-based storage in GB available for workload use. + * The remaining appliance-based storage in GB available for workload use. Measured in gibibytes. */ - @JsonProperty(value = "availableApplianceStorageGB") private Long availableApplianceStorageGB; /* * The remaining number of cores that are available in this cluster for workload use. */ - @JsonProperty(value = "availableCoreCount") private Long availableCoreCount; /* - * The remaining machine or host-based storage in GB available for workload use. + * The remaining machine or host-based storage in GB available for workload use. Measured in gibibytes. */ - @JsonProperty(value = "availableHostStorageGB") private Long availableHostStorageGB; /* - * The remaining memory in GB that are available in this cluster for workload use. + * The remaining memory in GB that are available in this cluster for workload use. Measured in gibibytes. */ - @JsonProperty(value = "availableMemoryGB") private Long availableMemoryGB; /* - * The total appliance-based storage in GB supported by this cluster for workload use. + * The total appliance-based storage in GB supported by this cluster for workload use. Measured in gibibytes. */ - @JsonProperty(value = "totalApplianceStorageGB") private Long totalApplianceStorageGB; /* * The total number of cores that are supported by this cluster for workload use. */ - @JsonProperty(value = "totalCoreCount") private Long totalCoreCount; /* - * The total machine or host-based storage in GB supported by this cluster for workload use. + * The total machine or host-based storage in GB supported by this cluster for workload use. Measured in gibibytes. */ - @JsonProperty(value = "totalHostStorageGB") private Long totalHostStorageGB; /* - * The total memory supported by this cluster for workload use. + * The total memory supported by this cluster for workload use. Measured in gibibytes. */ - @JsonProperty(value = "totalMemoryGB") private Long totalMemoryGB; - /** Creates an instance of ClusterCapacity class. */ + /** + * Creates an instance of ClusterCapacity class. + */ public ClusterCapacity() { } /** * Get the availableApplianceStorageGB property: The remaining appliance-based storage in GB available for workload - * use. - * + * use. Measured in gibibytes. + * * @return the availableApplianceStorageGB value. */ public Long availableApplianceStorageGB() { @@ -74,8 +74,8 @@ public Long availableApplianceStorageGB() { /** * Set the availableApplianceStorageGB property: The remaining appliance-based storage in GB available for workload - * use. - * + * use. Measured in gibibytes. + * * @param availableApplianceStorageGB the availableApplianceStorageGB value to set. * @return the ClusterCapacity object itself. */ @@ -87,7 +87,7 @@ public ClusterCapacity withAvailableApplianceStorageGB(Long availableApplianceSt /** * Get the availableCoreCount property: The remaining number of cores that are available in this cluster for * workload use. - * + * * @return the availableCoreCount value. */ public Long availableCoreCount() { @@ -97,7 +97,7 @@ public Long availableCoreCount() { /** * Set the availableCoreCount property: The remaining number of cores that are available in this cluster for * workload use. - * + * * @param availableCoreCount the availableCoreCount value to set. * @return the ClusterCapacity object itself. */ @@ -108,8 +108,8 @@ public ClusterCapacity withAvailableCoreCount(Long availableCoreCount) { /** * Get the availableHostStorageGB property: The remaining machine or host-based storage in GB available for workload - * use. - * + * use. Measured in gibibytes. + * * @return the availableHostStorageGB value. */ public Long availableHostStorageGB() { @@ -118,8 +118,8 @@ public Long availableHostStorageGB() { /** * Set the availableHostStorageGB property: The remaining machine or host-based storage in GB available for workload - * use. - * + * use. Measured in gibibytes. + * * @param availableHostStorageGB the availableHostStorageGB value to set. * @return the ClusterCapacity object itself. */ @@ -130,8 +130,8 @@ public ClusterCapacity withAvailableHostStorageGB(Long availableHostStorageGB) { /** * Get the availableMemoryGB property: The remaining memory in GB that are available in this cluster for workload - * use. - * + * use. Measured in gibibytes. + * * @return the availableMemoryGB value. */ public Long availableMemoryGB() { @@ -140,8 +140,8 @@ public Long availableMemoryGB() { /** * Set the availableMemoryGB property: The remaining memory in GB that are available in this cluster for workload - * use. - * + * use. Measured in gibibytes. + * * @param availableMemoryGB the availableMemoryGB value to set. * @return the ClusterCapacity object itself. */ @@ -152,8 +152,8 @@ public ClusterCapacity withAvailableMemoryGB(Long availableMemoryGB) { /** * Get the totalApplianceStorageGB property: The total appliance-based storage in GB supported by this cluster for - * workload use. - * + * workload use. Measured in gibibytes. + * * @return the totalApplianceStorageGB value. */ public Long totalApplianceStorageGB() { @@ -162,8 +162,8 @@ public Long totalApplianceStorageGB() { /** * Set the totalApplianceStorageGB property: The total appliance-based storage in GB supported by this cluster for - * workload use. - * + * workload use. Measured in gibibytes. + * * @param totalApplianceStorageGB the totalApplianceStorageGB value to set. * @return the ClusterCapacity object itself. */ @@ -174,7 +174,7 @@ public ClusterCapacity withTotalApplianceStorageGB(Long totalApplianceStorageGB) /** * Get the totalCoreCount property: The total number of cores that are supported by this cluster for workload use. - * + * * @return the totalCoreCount value. */ public Long totalCoreCount() { @@ -183,7 +183,7 @@ public Long totalCoreCount() { /** * Set the totalCoreCount property: The total number of cores that are supported by this cluster for workload use. - * + * * @param totalCoreCount the totalCoreCount value to set. * @return the ClusterCapacity object itself. */ @@ -194,8 +194,8 @@ public ClusterCapacity withTotalCoreCount(Long totalCoreCount) { /** * Get the totalHostStorageGB property: The total machine or host-based storage in GB supported by this cluster for - * workload use. - * + * workload use. Measured in gibibytes. + * * @return the totalHostStorageGB value. */ public Long totalHostStorageGB() { @@ -204,8 +204,8 @@ public Long totalHostStorageGB() { /** * Set the totalHostStorageGB property: The total machine or host-based storage in GB supported by this cluster for - * workload use. - * + * workload use. Measured in gibibytes. + * * @param totalHostStorageGB the totalHostStorageGB value to set. * @return the ClusterCapacity object itself. */ @@ -215,8 +215,9 @@ public ClusterCapacity withTotalHostStorageGB(Long totalHostStorageGB) { } /** - * Get the totalMemoryGB property: The total memory supported by this cluster for workload use. - * + * Get the totalMemoryGB property: The total memory supported by this cluster for workload use. Measured in + * gibibytes. + * * @return the totalMemoryGB value. */ public Long totalMemoryGB() { @@ -224,8 +225,9 @@ public Long totalMemoryGB() { } /** - * Set the totalMemoryGB property: The total memory supported by this cluster for workload use. - * + * Set the totalMemoryGB property: The total memory supported by this cluster for workload use. Measured in + * gibibytes. + * * @param totalMemoryGB the totalMemoryGB value to set. * @return the ClusterCapacity object itself. */ @@ -236,9 +238,66 @@ public ClusterCapacity withTotalMemoryGB(Long totalMemoryGB) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("availableApplianceStorageGB", this.availableApplianceStorageGB); + jsonWriter.writeNumberField("availableCoreCount", this.availableCoreCount); + jsonWriter.writeNumberField("availableHostStorageGB", this.availableHostStorageGB); + jsonWriter.writeNumberField("availableMemoryGB", this.availableMemoryGB); + jsonWriter.writeNumberField("totalApplianceStorageGB", this.totalApplianceStorageGB); + jsonWriter.writeNumberField("totalCoreCount", this.totalCoreCount); + jsonWriter.writeNumberField("totalHostStorageGB", this.totalHostStorageGB); + jsonWriter.writeNumberField("totalMemoryGB", this.totalMemoryGB); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterCapacity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterCapacity if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterCapacity. + */ + public static ClusterCapacity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterCapacity deserializedClusterCapacity = new ClusterCapacity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("availableApplianceStorageGB".equals(fieldName)) { + deserializedClusterCapacity.availableApplianceStorageGB = reader.getNullable(JsonReader::getLong); + } else if ("availableCoreCount".equals(fieldName)) { + deserializedClusterCapacity.availableCoreCount = reader.getNullable(JsonReader::getLong); + } else if ("availableHostStorageGB".equals(fieldName)) { + deserializedClusterCapacity.availableHostStorageGB = reader.getNullable(JsonReader::getLong); + } else if ("availableMemoryGB".equals(fieldName)) { + deserializedClusterCapacity.availableMemoryGB = reader.getNullable(JsonReader::getLong); + } else if ("totalApplianceStorageGB".equals(fieldName)) { + deserializedClusterCapacity.totalApplianceStorageGB = reader.getNullable(JsonReader::getLong); + } else if ("totalCoreCount".equals(fieldName)) { + deserializedClusterCapacity.totalCoreCount = reader.getNullable(JsonReader::getLong); + } else if ("totalHostStorageGB".equals(fieldName)) { + deserializedClusterCapacity.totalHostStorageGB = reader.getNullable(JsonReader::getLong); + } else if ("totalMemoryGB".equals(fieldName)) { + deserializedClusterCapacity.totalMemoryGB = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterCapacity; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterConnectionStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterConnectionStatus.java index ef5ca2ebecfed..b4ce918016260 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterConnectionStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterConnectionStatus.java @@ -5,23 +5,35 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The latest heartbeat status between the cluster manager and the cluster. */ +/** + * The latest heartbeat status between the cluster manager and the cluster. + */ public final class ClusterConnectionStatus extends ExpandableStringEnum { - /** Static value Connected for ClusterConnectionStatus. */ + /** + * Static value Connected for ClusterConnectionStatus. + */ public static final ClusterConnectionStatus CONNECTED = fromString("Connected"); - /** Static value Timeout for ClusterConnectionStatus. */ + /** + * Static value Disconnected for ClusterConnectionStatus. + */ + public static final ClusterConnectionStatus DISCONNECTED = fromString("Disconnected"); + + /** + * Static value Timeout for ClusterConnectionStatus. + */ public static final ClusterConnectionStatus TIMEOUT = fromString("Timeout"); - /** Static value Undefined for ClusterConnectionStatus. */ + /** + * Static value Undefined for ClusterConnectionStatus. + */ public static final ClusterConnectionStatus UNDEFINED = fromString("Undefined"); /** * Creates a new instance of ClusterConnectionStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +42,17 @@ public ClusterConnectionStatus() { /** * Creates or finds a ClusterConnectionStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterConnectionStatus. */ - @JsonCreator public static ClusterConnectionStatus fromString(String name) { return fromString(name, ClusterConnectionStatus.class); } /** * Gets known ClusterConnectionStatus values. - * + * * @return known ClusterConnectionStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionMachineGroupTargetingMode.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionMachineGroupTargetingMode.java new file mode 100644 index 0000000000000..b4cd2efb1f764 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionMachineGroupTargetingMode.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The mode by which the cluster will target the next grouping of servers to continue the update. + */ +public final class ClusterContinueUpdateVersionMachineGroupTargetingMode + extends ExpandableStringEnum { + /** + * Static value AlphaByRack for ClusterContinueUpdateVersionMachineGroupTargetingMode. + */ + public static final ClusterContinueUpdateVersionMachineGroupTargetingMode ALPHA_BY_RACK = fromString("AlphaByRack"); + + /** + * Creates a new instance of ClusterContinueUpdateVersionMachineGroupTargetingMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterContinueUpdateVersionMachineGroupTargetingMode() { + } + + /** + * Creates or finds a ClusterContinueUpdateVersionMachineGroupTargetingMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterContinueUpdateVersionMachineGroupTargetingMode. + */ + public static ClusterContinueUpdateVersionMachineGroupTargetingMode fromString(String name) { + return fromString(name, ClusterContinueUpdateVersionMachineGroupTargetingMode.class); + } + + /** + * Gets known ClusterContinueUpdateVersionMachineGroupTargetingMode values. + * + * @return known ClusterContinueUpdateVersionMachineGroupTargetingMode values. + */ + public static Collection values() { + return values(ClusterContinueUpdateVersionMachineGroupTargetingMode.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionParameters.java new file mode 100644 index 0000000000000..146f51948e158 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterContinueUpdateVersionParameters.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * ClusterContinueUpdateVersionParameters represents the body of the request to continue the update of a cluster + * version. + */ +@Fluent +public final class ClusterContinueUpdateVersionParameters + implements JsonSerializable { + /* + * The mode by which the cluster will target the next grouping of servers to continue the update. + */ + private ClusterContinueUpdateVersionMachineGroupTargetingMode machineGroupTargetingMode; + + /** + * Creates an instance of ClusterContinueUpdateVersionParameters class. + */ + public ClusterContinueUpdateVersionParameters() { + } + + /** + * Get the machineGroupTargetingMode property: The mode by which the cluster will target the next grouping of + * servers to continue the update. + * + * @return the machineGroupTargetingMode value. + */ + public ClusterContinueUpdateVersionMachineGroupTargetingMode machineGroupTargetingMode() { + return this.machineGroupTargetingMode; + } + + /** + * Set the machineGroupTargetingMode property: The mode by which the cluster will target the next grouping of + * servers to continue the update. + * + * @param machineGroupTargetingMode the machineGroupTargetingMode value to set. + * @return the ClusterContinueUpdateVersionParameters object itself. + */ + public ClusterContinueUpdateVersionParameters + withMachineGroupTargetingMode(ClusterContinueUpdateVersionMachineGroupTargetingMode machineGroupTargetingMode) { + this.machineGroupTargetingMode = machineGroupTargetingMode; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("machineGroupTargetingMode", + this.machineGroupTargetingMode == null ? null : this.machineGroupTargetingMode.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterContinueUpdateVersionParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterContinueUpdateVersionParameters if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterContinueUpdateVersionParameters. + */ + public static ClusterContinueUpdateVersionParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterContinueUpdateVersionParameters deserializedClusterContinueUpdateVersionParameters + = new ClusterContinueUpdateVersionParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("machineGroupTargetingMode".equals(fieldName)) { + deserializedClusterContinueUpdateVersionParameters.machineGroupTargetingMode + = ClusterContinueUpdateVersionMachineGroupTargetingMode.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterContinueUpdateVersionParameters; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDeployParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDeployParameters.java index 9d81e763644eb..6de1851575dd4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDeployParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDeployParameters.java @@ -5,26 +5,33 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** ClusterDeployParameters represents the body of the request to deploy cluster. */ +/** + * ClusterDeployParameters represents the body of the request to deploy cluster. + */ @Fluent -public final class ClusterDeployParameters { +public final class ClusterDeployParameters implements JsonSerializable { /* * The names of bare metal machines in the cluster that should be skipped during environment validation. */ - @JsonProperty(value = "skipValidationsForMachines") private List skipValidationsForMachines; - /** Creates an instance of ClusterDeployParameters class. */ + /** + * Creates an instance of ClusterDeployParameters class. + */ public ClusterDeployParameters() { } /** * Get the skipValidationsForMachines property: The names of bare metal machines in the cluster that should be * skipped during environment validation. - * + * * @return the skipValidationsForMachines value. */ public List skipValidationsForMachines() { @@ -34,7 +41,7 @@ public List skipValidationsForMachines() { /** * Set the skipValidationsForMachines property: The names of bare metal machines in the cluster that should be * skipped during environment validation. - * + * * @param skipValidationsForMachines the skipValidationsForMachines value to set. * @return the ClusterDeployParameters object itself. */ @@ -45,9 +52,47 @@ public ClusterDeployParameters withSkipValidationsForMachines(List skipV /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("skipValidationsForMachines", this.skipValidationsForMachines, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterDeployParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterDeployParameters if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterDeployParameters. + */ + public static ClusterDeployParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterDeployParameters deserializedClusterDeployParameters = new ClusterDeployParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("skipValidationsForMachines".equals(fieldName)) { + List skipValidationsForMachines = reader.readArray(reader1 -> reader1.getString()); + deserializedClusterDeployParameters.skipValidationsForMachines = skipValidationsForMachines; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterDeployParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDetailedStatus.java index 784dbdd6ce9c4..7328a86d237e1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterDetailedStatus.java @@ -5,38 +5,60 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The current detailed status of the cluster. */ +/** + * The current detailed status of the cluster. + */ public final class ClusterDetailedStatus extends ExpandableStringEnum { - /** Static value PendingDeployment for ClusterDetailedStatus. */ + /** + * Static value PendingDeployment for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus PENDING_DEPLOYMENT = fromString("PendingDeployment"); - /** Static value Deploying for ClusterDetailedStatus. */ + /** + * Static value Deploying for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus DEPLOYING = fromString("Deploying"); - /** Static value Running for ClusterDetailedStatus. */ + /** + * Static value Running for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus RUNNING = fromString("Running"); - /** Static value Updating for ClusterDetailedStatus. */ + /** + * Static value Updating for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus UPDATING = fromString("Updating"); - /** Static value Degraded for ClusterDetailedStatus. */ + /** + * Static value UpdatePaused for ClusterDetailedStatus. + */ + public static final ClusterDetailedStatus UPDATE_PAUSED = fromString("UpdatePaused"); + + /** + * Static value Degraded for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus DEGRADED = fromString("Degraded"); - /** Static value Deleting for ClusterDetailedStatus. */ + /** + * Static value Deleting for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus DELETING = fromString("Deleting"); - /** Static value Disconnected for ClusterDetailedStatus. */ + /** + * Static value Disconnected for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus DISCONNECTED = fromString("Disconnected"); - /** Static value Failed for ClusterDetailedStatus. */ + /** + * Static value Failed for ClusterDetailedStatus. + */ public static final ClusterDetailedStatus FAILED = fromString("Failed"); /** * Creates a new instance of ClusterDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -45,18 +67,17 @@ public ClusterDetailedStatus() { /** * Creates or finds a ClusterDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterDetailedStatus. */ - @JsonCreator public static ClusterDetailedStatus fromString(String name) { return fromString(name, ClusterDetailedStatus.class); } /** * Gets known ClusterDetailedStatus values. - * + * * @return known ClusterDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterList.java index 422d39b351df4..ef7d63f5b1884 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ClusterList represents a list of clusters. */ +/** + * ClusterList represents a list of clusters. + */ @Fluent -public final class ClusterList { +public final class ClusterList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of clusters. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of ClusterList class. */ + /** + * Creates an instance of ClusterList class. + */ public ClusterList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the ClusterList object itself. */ @@ -50,7 +56,7 @@ public ClusterList withNextLink(String nextLink) { /** * Get the value property: The list of clusters. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of clusters. - * + * * @param value the value value to set. * @return the ClusterList object itself. */ @@ -70,7 +76,7 @@ public ClusterList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterList. + */ + public static ClusterList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterList deserializedClusterList = new ClusterList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedClusterList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ClusterInner.fromJson(reader1)); + deserializedClusterList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManager.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManager.java index 82e00f7cae673..445595c9c0b15 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManager.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManager.java @@ -11,46 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of ClusterManager. */ +/** + * An immutable client-side representation of ClusterManager. + */ public interface ClusterManager { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); + /** + * Gets the identity property: The identity of the cluster manager. + * + * @return the identity value. + */ + ManagedServiceIdentity identity(); + /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -58,7 +67,7 @@ public interface ClusterManager { /** * Gets the analyticsWorkspaceId property: The resource ID of the Log Analytics workspace that is used for the logs * collection. - * + * * @return the analyticsWorkspaceId value. */ String analyticsWorkspaceId(); @@ -67,7 +76,7 @@ public interface ClusterManager { * Gets the availabilityZones property: Field deprecated, this value will no longer influence the cluster manager * allocation process and will be removed in a future version. The Azure availability zones within the region that * will be used to support the cluster manager resource. - * + * * @return the availabilityZones value. */ List availabilityZones(); @@ -75,7 +84,7 @@ public interface ClusterManager { /** * Gets the clusterVersions property: The list of the cluster versions the manager supports. It is used as input in * clusterVersion property of a cluster resource. - * + * * @return the clusterVersions value. */ List clusterVersions(); @@ -83,14 +92,14 @@ public interface ClusterManager { /** * Gets the detailedStatus property: The detailed status that provides additional information about the cluster * manager. - * + * * @return the detailedStatus value. */ ClusterManagerDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -98,35 +107,31 @@ public interface ClusterManager { /** * Gets the fabricControllerId property: The resource ID of the fabric controller that has one to one mapping with * the cluster manager. - * + * * @return the fabricControllerId value. */ String fabricControllerId(); /** - * Gets the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Gets the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ ManagedResourceGroupConfiguration managedResourceGroupConfiguration(); /** - * Gets the managerExtendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location (custom location) that represents the cluster manager's control plane location. This - * extended location is used when creating cluster and rack manifest resources. - * + * Gets the managerExtendedLocation property: The extended location (custom location) that represents the cluster + * manager's control plane location. This extended location is used when creating cluster and rack manifest + * resources. + * * @return the managerExtendedLocation value. */ ExtendedLocation managerExtendedLocation(); /** * Gets the provisioningState property: The provisioning state of the cluster manager. - * + * * @return the provisioningState value. */ ClusterManagerProvisioningState provisioningState(); @@ -135,55 +140,63 @@ public interface ClusterManager { * Gets the vmSize property: Field deprecated, this value will no longer influence the cluster manager allocation * process and will be removed in a future version. The size of the Azure virtual machines to use for hosting the * cluster manager resource. - * + * * @return the vmSize value. */ String vmSize(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner object. - * + * * @return the inner object. */ ClusterManagerInner innerModel(); - /** The entirety of the ClusterManager definition. */ + /** + * The entirety of the ClusterManager definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithFabricControllerId, DefinitionStages.WithCreate { } - /** The ClusterManager definition stages. */ + /** + * The ClusterManager definition stages. + */ interface DefinitionStages { - /** The first stage of the ClusterManager definition. */ + /** + * The first stage of the ClusterManager definition. + */ interface Blank extends WithLocation { } - /** The stage of the ClusterManager definition allowing to specify location. */ + /** + * The stage of the ClusterManager definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -191,32 +204,36 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the ClusterManager definition allowing to specify parent resource. */ + /** + * The stage of the ClusterManager definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithFabricControllerId withExistingResourceGroup(String resourceGroupName); } - /** The stage of the ClusterManager definition allowing to specify fabricControllerId. */ + /** + * The stage of the ClusterManager definition allowing to specify fabricControllerId. + */ interface WithFabricControllerId { /** * Specifies the fabricControllerId property: The resource ID of the fabric controller that has one to one * mapping with the cluster manager.. - * + * * @param fabricControllerId The resource ID of the fabric controller that has one to one mapping with the - * cluster manager. + * cluster manager. * @return the next definition stage. */ WithCreate withFabricControllerId(String fabricControllerId); @@ -226,91 +243,111 @@ interface WithFabricControllerId { * The stage of the ClusterManager definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithAnalyticsWorkspaceId, - DefinitionStages.WithAvailabilityZones, DefinitionStages.WithManagedResourceGroupConfiguration, - DefinitionStages.WithVmSize { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, + DefinitionStages.WithAnalyticsWorkspaceId, DefinitionStages.WithAvailabilityZones, + DefinitionStages.WithManagedResourceGroupConfiguration, DefinitionStages.WithVmSize { /** * Executes the create request. - * + * * @return the created resource. */ ClusterManager create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ClusterManager create(Context context); } - /** The stage of the ClusterManager definition allowing to specify tags. */ + /** + * The stage of the ClusterManager definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the ClusterManager definition allowing to specify analyticsWorkspaceId. */ + /** + * The stage of the ClusterManager definition allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: The identity of the cluster manager.. + * + * @param identity The identity of the cluster manager. + * @return the next definition stage. + */ + WithCreate withIdentity(ManagedServiceIdentity identity); + } + + /** + * The stage of the ClusterManager definition allowing to specify analyticsWorkspaceId. + */ interface WithAnalyticsWorkspaceId { /** * Specifies the analyticsWorkspaceId property: The resource ID of the Log Analytics workspace that is used * for the logs collection.. - * + * * @param analyticsWorkspaceId The resource ID of the Log Analytics workspace that is used for the logs - * collection. + * collection. * @return the next definition stage. */ WithCreate withAnalyticsWorkspaceId(String analyticsWorkspaceId); } - /** The stage of the ClusterManager definition allowing to specify availabilityZones. */ + /** + * The stage of the ClusterManager definition allowing to specify availabilityZones. + */ interface WithAvailabilityZones { /** * Specifies the availabilityZones property: Field deprecated, this value will no longer influence the * cluster manager allocation process and will be removed in a future version. The Azure availability zones * within the region that will be used to support the cluster manager resource.. - * + * * @param availabilityZones Field deprecated, this value will no longer influence the cluster manager - * allocation process and will be removed in a future version. The Azure availability zones within the - * region that will be used to support the cluster manager resource. + * allocation process and will be removed in a future version. The Azure availability zones within the + * region that will be used to support the cluster manager resource. * @return the next definition stage. */ WithCreate withAvailabilityZones(List availabilityZones); } - /** The stage of the ClusterManager definition allowing to specify managedResourceGroupConfiguration. */ + /** + * The stage of the ClusterManager definition allowing to specify managedResourceGroupConfiguration. + */ interface WithManagedResourceGroupConfiguration { /** - * Specifies the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents - * the configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource.. - * - * @param managedResourceGroupConfiguration ManagedResourceGroupConfiguration represents the configuration - * of the resource group managed by Azure. - *

The configuration of the managed resource group associated with the resource. + * Specifies the managedResourceGroupConfiguration property: The configuration of the managed resource group + * associated with the resource.. + * + * @param managedResourceGroupConfiguration The configuration of the managed resource group associated with + * the resource. * @return the next definition stage. */ WithCreate withManagedResourceGroupConfiguration( ManagedResourceGroupConfiguration managedResourceGroupConfiguration); } - /** The stage of the ClusterManager definition allowing to specify vmSize. */ + /** + * The stage of the ClusterManager definition allowing to specify vmSize. + */ interface WithVmSize { /** * Specifies the vmSize property: Field deprecated, this value will no longer influence the cluster manager * allocation process and will be removed in a future version. The size of the Azure virtual machines to use * for hosting the cluster manager resource.. - * + * * @param vmSize Field deprecated, this value will no longer influence the cluster manager allocation - * process and will be removed in a future version. The size of the Azure virtual machines to use for - * hosting the cluster manager resource. + * process and will be removed in a future version. The size of the Azure virtual machines to use for + * hosting the cluster manager resource. * @return the next definition stage. */ WithCreate withVmSize(String vmSize); @@ -319,53 +356,72 @@ interface WithVmSize { /** * Begins update for the ClusterManager resource. - * + * * @return the stage of resource update. */ ClusterManager.Update update(); - /** The template for ClusterManager update. */ - interface Update extends UpdateStages.WithTags { + /** + * The template for ClusterManager update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity { /** * Executes the update request. - * + * * @return the updated resource. */ ClusterManager apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ClusterManager apply(Context context); } - /** The ClusterManager update stages. */ + /** + * The ClusterManager update stages. + */ interface UpdateStages { - /** The stage of the ClusterManager update allowing to specify tags. */ + /** + * The stage of the ClusterManager update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } + + /** + * The stage of the ClusterManager update allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: The identity for the resource.. + * + * @param identity The identity for the resource. + * @return the next definition stage. + */ + Update withIdentity(ManagedServiceIdentity identity); + } } /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ClusterManager refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerConnectionStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerConnectionStatus.java index ca0ae8686e85a..aa9492cdf5de8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerConnectionStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerConnectionStatus.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The latest connectivity status between cluster manager and the cluster. */ +/** + * The latest connectivity status between cluster manager and the cluster. + */ public final class ClusterManagerConnectionStatus extends ExpandableStringEnum { - /** Static value Connected for ClusterManagerConnectionStatus. */ + /** + * Static value Connected for ClusterManagerConnectionStatus. + */ public static final ClusterManagerConnectionStatus CONNECTED = fromString("Connected"); - /** Static value Unreachable for ClusterManagerConnectionStatus. */ + /** + * Static value Unreachable for ClusterManagerConnectionStatus. + */ public static final ClusterManagerConnectionStatus UNREACHABLE = fromString("Unreachable"); /** * Creates a new instance of ClusterManagerConnectionStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ClusterManagerConnectionStatus() { /** * Creates or finds a ClusterManagerConnectionStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterManagerConnectionStatus. */ - @JsonCreator public static ClusterManagerConnectionStatus fromString(String name) { return fromString(name, ClusterManagerConnectionStatus.class); } /** * Gets known ClusterManagerConnectionStatus values. - * + * * @return known ClusterManagerConnectionStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerDetailedStatus.java index da7035976e3b0..31868c474ac72 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerDetailedStatus.java @@ -5,32 +5,45 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The detailed status that provides additional information about the cluster manager. */ +/** + * The detailed status that provides additional information about the cluster manager. + */ public final class ClusterManagerDetailedStatus extends ExpandableStringEnum { - /** Static value Error for ClusterManagerDetailedStatus. */ + /** + * Static value Error for ClusterManagerDetailedStatus. + */ public static final ClusterManagerDetailedStatus ERROR = fromString("Error"); - /** Static value Available for ClusterManagerDetailedStatus. */ + /** + * Static value Available for ClusterManagerDetailedStatus. + */ public static final ClusterManagerDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for ClusterManagerDetailedStatus. */ + /** + * Static value Provisioning for ClusterManagerDetailedStatus. + */ public static final ClusterManagerDetailedStatus PROVISIONING = fromString("Provisioning"); - /** Static value ProvisioningFailed for ClusterManagerDetailedStatus. */ + /** + * Static value ProvisioningFailed for ClusterManagerDetailedStatus. + */ public static final ClusterManagerDetailedStatus PROVISIONING_FAILED = fromString("ProvisioningFailed"); - /** Static value Updating for ClusterManagerDetailedStatus. */ + /** + * Static value Updating for ClusterManagerDetailedStatus. + */ public static final ClusterManagerDetailedStatus UPDATING = fromString("Updating"); - /** Static value UpdateFailed for ClusterManagerDetailedStatus. */ + /** + * Static value UpdateFailed for ClusterManagerDetailedStatus. + */ public static final ClusterManagerDetailedStatus UPDATE_FAILED = fromString("UpdateFailed"); /** * Creates a new instance of ClusterManagerDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -39,18 +52,17 @@ public ClusterManagerDetailedStatus() { /** * Creates or finds a ClusterManagerDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterManagerDetailedStatus. */ - @JsonCreator public static ClusterManagerDetailedStatus fromString(String name) { return fromString(name, ClusterManagerDetailedStatus.class); } /** * Gets known ClusterManagerDetailedStatus values. - * + * * @return known ClusterManagerDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerList.java index 43391369cc548..0e5c75dd77e99 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ClusterManagerList represents a list of cluster manager objects. */ +/** + * ClusterManagerList represents a list of cluster manager objects. + */ @Fluent -public final class ClusterManagerList { +public final class ClusterManagerList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of cluster managers. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of ClusterManagerList class. */ + /** + * Creates an instance of ClusterManagerList class. + */ public ClusterManagerList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the ClusterManagerList object itself. */ @@ -50,7 +56,7 @@ public ClusterManagerList withNextLink(String nextLink) { /** * Get the value property: The list of cluster managers. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of cluster managers. - * + * * @param value the value value to set. * @return the ClusterManagerList object itself. */ @@ -70,7 +76,7 @@ public ClusterManagerList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterManagerList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterManagerList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterManagerList. + */ + public static ClusterManagerList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterManagerList deserializedClusterManagerList = new ClusterManagerList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedClusterManagerList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ClusterManagerInner.fromJson(reader1)); + deserializedClusterManagerList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterManagerList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerPatchParameters.java index 301e4afb633df..08e10bcf757bc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerPatchParameters.java @@ -5,27 +5,57 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.Map; -/** ClusterManagerPatchParameters represents the body of the request to patch the cluster properties. */ +/** + * ClusterManagerPatchParameters represents the body of the request to patch the cluster properties. + */ @Fluent -public final class ClusterManagerPatchParameters { +public final class ClusterManagerPatchParameters implements JsonSerializable { + /* + * The identity for the resource. + */ + private ManagedServiceIdentity identity; + /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of ClusterManagerPatchParameters class. */ + /** + * Creates an instance of ClusterManagerPatchParameters class. + */ public ClusterManagerPatchParameters() { } + /** + * Get the identity property: The identity for the resource. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity for the resource. + * + * @param identity the identity value to set. + * @return the ClusterManagerPatchParameters object itself. + */ + public ClusterManagerPatchParameters withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -34,7 +64,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the ClusterManagerPatchParameters object itself. */ @@ -45,9 +75,53 @@ public ClusterManagerPatchParameters withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (identity() != null) { + identity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("identity", this.identity); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterManagerPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterManagerPatchParameters if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterManagerPatchParameters. + */ + public static ClusterManagerPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterManagerPatchParameters deserializedClusterManagerPatchParameters + = new ClusterManagerPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("identity".equals(fieldName)) { + deserializedClusterManagerPatchParameters.identity = ManagedServiceIdentity.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterManagerPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterManagerPatchParameters; + }); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerProvisioningState.java index dcc182b593c67..cc2eb1f88796a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagerProvisioningState.java @@ -5,32 +5,45 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the cluster manager. */ +/** + * The provisioning state of the cluster manager. + */ public final class ClusterManagerProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for ClusterManagerProvisioningState. */ + /** + * Static value Succeeded for ClusterManagerProvisioningState. + */ public static final ClusterManagerProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ClusterManagerProvisioningState. */ + /** + * Static value Failed for ClusterManagerProvisioningState. + */ public static final ClusterManagerProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for ClusterManagerProvisioningState. */ + /** + * Static value Canceled for ClusterManagerProvisioningState. + */ public static final ClusterManagerProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for ClusterManagerProvisioningState. */ + /** + * Static value Provisioning for ClusterManagerProvisioningState. + */ public static final ClusterManagerProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for ClusterManagerProvisioningState. */ + /** + * Static value Accepted for ClusterManagerProvisioningState. + */ public static final ClusterManagerProvisioningState ACCEPTED = fromString("Accepted"); - /** Static value Updating for ClusterManagerProvisioningState. */ + /** + * Static value Updating for ClusterManagerProvisioningState. + */ public static final ClusterManagerProvisioningState UPDATING = fromString("Updating"); /** * Creates a new instance of ClusterManagerProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -39,18 +52,17 @@ public ClusterManagerProvisioningState() { /** * Creates or finds a ClusterManagerProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterManagerProvisioningState. */ - @JsonCreator public static ClusterManagerProvisioningState fromString(String name) { return fromString(name, ClusterManagerProvisioningState.class); } /** * Gets known ClusterManagerProvisioningState values. - * + * * @return known ClusterManagerProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagers.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagers.java index 4a62bb7e565b4..780a3d41e0ade 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagers.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterManagers.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of ClusterManagers. */ +/** + * Resource collection API of ClusterManagers. + */ public interface ClusterManagers { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of cluster managers in the provided subscription as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface ClusterManagers { /** * List cluster managers in the subscription. - * - *

Get a list of cluster managers in the provided subscription. - * + * + * Get a list of cluster managers in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,38 +38,38 @@ public interface ClusterManagers { /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cluster managers in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cluster managers in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List cluster managers in the resource group. - * - *

Get a list of cluster managers in the provided resource group. - * + * + * Get a list of cluster managers in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of cluster managers in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of cluster managers in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. @@ -81,9 +83,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -95,36 +97,38 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String clusterManagerName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String clusterManagerName); /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterManagerName The name of the cluster manager. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterManagerName, Context context); + OperationStatusResult delete(String resourceGroupName, String clusterManagerName, Context context); /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -135,9 +139,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Retrieve the cluster manager. - * - *

Get the properties of the provided cluster manager. - * + * + * Get the properties of the provided cluster manager. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,32 +153,34 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the cluster manager. - * - *

Delete the provided cluster manager. - * + * + * Delete the provided cluster manager. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new ClusterManager resource. - * + * * @param name resource name. * @return the first stage of the new ClusterManager definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfiguration.java index 4c271bdf0c57d..575c8fd242623 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfiguration.java @@ -11,77 +11,76 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of ClusterMetricsConfiguration. */ +/** + * An immutable client-side representation of ClusterMetricsConfiguration. + */ public interface ClusterMetricsConfiguration { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @return the collectionInterval value. */ long collectionInterval(); /** * Gets the detailedStatus property: The more detailed status of the metrics configuration. - * + * * @return the detailedStatus value. */ ClusterMetricsConfigurationDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -89,7 +88,7 @@ public interface ClusterMetricsConfiguration { /** * Gets the disabledMetrics property: The list of metrics that are available for the cluster but disabled at the * moment. - * + * * @return the disabledMetrics value. */ List disabledMetrics(); @@ -97,63 +96,71 @@ public interface ClusterMetricsConfiguration { /** * Gets the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @return the enabledMetrics value. */ List enabledMetrics(); /** * Gets the provisioningState property: The provisioning state of the metrics configuration. - * + * * @return the provisioningState value. */ ClusterMetricsConfigurationProvisioningState provisioningState(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationInner object. - * + * * @return the inner object. */ ClusterMetricsConfigurationInner innerModel(); - /** The entirety of the ClusterMetricsConfiguration definition. */ + /** + * The entirety of the ClusterMetricsConfiguration definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithParentResource, DefinitionStages.WithExtendedLocation, DefinitionStages.WithCollectionInterval, DefinitionStages.WithCreate { } - /** The ClusterMetricsConfiguration definition stages. */ + /** + * The ClusterMetricsConfiguration definition stages. + */ interface DefinitionStages { - /** The first stage of the ClusterMetricsConfiguration definition. */ + /** + * The first stage of the ClusterMetricsConfiguration definition. + */ interface Blank extends WithLocation { } - /** The stage of the ClusterMetricsConfiguration definition allowing to specify location. */ + /** + * The stage of the ClusterMetricsConfiguration definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -161,18 +168,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the ClusterMetricsConfiguration definition allowing to specify parent resource. */ + /** + * The stage of the ClusterMetricsConfiguration definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, clusterName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @return the next definition stage. @@ -180,27 +189,27 @@ interface WithParentResource { WithExtendedLocation withExistingCluster(String resourceGroupName, String clusterName); } - /** The stage of the ClusterMetricsConfiguration definition allowing to specify extendedLocation. */ + /** + * The stage of the ClusterMetricsConfiguration definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithCollectionInterval withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the ClusterMetricsConfiguration definition allowing to specify collectionInterval. */ + /** + * The stage of the ClusterMetricsConfiguration definition allowing to specify collectionInterval. + */ interface WithCollectionInterval { /** * Specifies the collectionInterval property: The interval in minutes by which metrics will be collected.. - * + * * @param collectionInterval The interval in minutes by which metrics will be collected. * @return the next definition stage. */ @@ -214,39 +223,43 @@ interface WithCollectionInterval { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithEnabledMetrics { /** * Executes the create request. - * + * * @return the created resource. */ ClusterMetricsConfiguration create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ClusterMetricsConfiguration create(Context context); } - /** The stage of the ClusterMetricsConfiguration definition allowing to specify tags. */ + /** + * The stage of the ClusterMetricsConfiguration definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the ClusterMetricsConfiguration definition allowing to specify enabledMetrics. */ + /** + * The stage of the ClusterMetricsConfiguration definition allowing to specify enabledMetrics. + */ interface WithEnabledMetrics { /** * Specifies the enabledMetrics property: The list of metric names that have been chosen to be enabled in * addition to the core set of enabled metrics.. - * + * * @param enabledMetrics The list of metric names that have been chosen to be enabled in addition to the - * core set of enabled metrics. + * core set of enabled metrics. * @return the next definition stage. */ WithCreate withEnabledMetrics(List enabledMetrics); @@ -255,62 +268,72 @@ interface WithEnabledMetrics { /** * Begins update for the ClusterMetricsConfiguration resource. - * + * * @return the stage of resource update. */ ClusterMetricsConfiguration.Update update(); - /** The template for ClusterMetricsConfiguration update. */ + /** + * The template for ClusterMetricsConfiguration update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithCollectionInterval, UpdateStages.WithEnabledMetrics { /** * Executes the update request. - * + * * @return the updated resource. */ ClusterMetricsConfiguration apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ClusterMetricsConfiguration apply(Context context); } - /** The ClusterMetricsConfiguration update stages. */ + /** + * The ClusterMetricsConfiguration update stages. + */ interface UpdateStages { - /** The stage of the ClusterMetricsConfiguration update allowing to specify tags. */ + /** + * The stage of the ClusterMetricsConfiguration update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the ClusterMetricsConfiguration update allowing to specify collectionInterval. */ + /** + * The stage of the ClusterMetricsConfiguration update allowing to specify collectionInterval. + */ interface WithCollectionInterval { /** * Specifies the collectionInterval property: The interval in minutes by which metrics will be collected.. - * + * * @param collectionInterval The interval in minutes by which metrics will be collected. * @return the next definition stage. */ Update withCollectionInterval(Long collectionInterval); } - /** The stage of the ClusterMetricsConfiguration update allowing to specify enabledMetrics. */ + /** + * The stage of the ClusterMetricsConfiguration update allowing to specify enabledMetrics. + */ interface WithEnabledMetrics { /** * Specifies the enabledMetrics property: The list of metric names that have been chosen to be enabled in * addition to the core set of enabled metrics.. - * + * * @param enabledMetrics The list of metric names that have been chosen to be enabled in addition to the - * core set of enabled metrics. + * core set of enabled metrics. * @return the next definition stage. */ Update withEnabledMetrics(List enabledMetrics); @@ -319,14 +342,14 @@ interface WithEnabledMetrics { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ClusterMetricsConfiguration refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationDetailedStatus.java index 609ffdacec597..75133b69083f8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationDetailedStatus.java @@ -5,24 +5,31 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the metrics configuration. */ +/** + * The more detailed status of the metrics configuration. + */ public final class ClusterMetricsConfigurationDetailedStatus extends ExpandableStringEnum { - /** Static value Processing for ClusterMetricsConfigurationDetailedStatus. */ + /** + * Static value Processing for ClusterMetricsConfigurationDetailedStatus. + */ public static final ClusterMetricsConfigurationDetailedStatus PROCESSING = fromString("Processing"); - /** Static value Applied for ClusterMetricsConfigurationDetailedStatus. */ + /** + * Static value Applied for ClusterMetricsConfigurationDetailedStatus. + */ public static final ClusterMetricsConfigurationDetailedStatus APPLIED = fromString("Applied"); - /** Static value Error for ClusterMetricsConfigurationDetailedStatus. */ + /** + * Static value Error for ClusterMetricsConfigurationDetailedStatus. + */ public static final ClusterMetricsConfigurationDetailedStatus ERROR = fromString("Error"); /** * Creates a new instance of ClusterMetricsConfigurationDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -31,18 +38,17 @@ public ClusterMetricsConfigurationDetailedStatus() { /** * Creates or finds a ClusterMetricsConfigurationDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterMetricsConfigurationDetailedStatus. */ - @JsonCreator public static ClusterMetricsConfigurationDetailedStatus fromString(String name) { return fromString(name, ClusterMetricsConfigurationDetailedStatus.class); } /** * Gets known ClusterMetricsConfigurationDetailedStatus values. - * + * * @return known ClusterMetricsConfigurationDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationList.java index b10e0e279bb35..8acce8d852fec 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ClusterMetricsConfigurationList represents a list of metrics configuration of the cluster. */ +/** + * ClusterMetricsConfigurationList represents a list of metrics configuration of the cluster. + */ @Fluent -public final class ClusterMetricsConfigurationList { +public final class ClusterMetricsConfigurationList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of metrics configurations. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of ClusterMetricsConfigurationList class. */ + /** + * Creates an instance of ClusterMetricsConfigurationList class. + */ public ClusterMetricsConfigurationList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the ClusterMetricsConfigurationList object itself. */ @@ -50,7 +56,7 @@ public ClusterMetricsConfigurationList withNextLink(String nextLink) { /** * Get the value property: The list of metrics configurations. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of metrics configurations. - * + * * @param value the value value to set. * @return the ClusterMetricsConfigurationList object itself. */ @@ -70,7 +76,7 @@ public ClusterMetricsConfigurationList withValue(List e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterMetricsConfigurationList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterMetricsConfigurationList if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterMetricsConfigurationList. + */ + public static ClusterMetricsConfigurationList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterMetricsConfigurationList deserializedClusterMetricsConfigurationList + = new ClusterMetricsConfigurationList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedClusterMetricsConfigurationList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ClusterMetricsConfigurationInner.fromJson(reader1)); + deserializedClusterMetricsConfigurationList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterMetricsConfigurationList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationPatchParameters.java index 97f8a29fb74a2..8469955a32820 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationPatchParameters.java @@ -5,9 +5,12 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterMetricsConfigurationPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; @@ -16,33 +19,27 @@ * cluster. */ @Fluent -public final class ClusterMetricsConfigurationPatchParameters { +public final class ClusterMetricsConfigurationPatchParameters + implements JsonSerializable { /* - * ClusterMetricsConfigurationPatchProperties represents the properties of metrics configuration for the cluster - * for patching. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private ClusterMetricsConfigurationPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of ClusterMetricsConfigurationPatchParameters class. */ + /** + * Creates an instance of ClusterMetricsConfigurationPatchParameters class. + */ public ClusterMetricsConfigurationPatchParameters() { } /** - * Get the innerProperties property: ClusterMetricsConfigurationPatchProperties represents the properties of metrics - * configuration for the cluster for patching. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private ClusterMetricsConfigurationPatchProperties innerProperties() { @@ -51,7 +48,7 @@ private ClusterMetricsConfigurationPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -60,7 +57,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the ClusterMetricsConfigurationPatchParameters object itself. */ @@ -71,7 +68,7 @@ public ClusterMetricsConfigurationPatchParameters withTags(Map t /** * Get the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @return the collectionInterval value. */ public Long collectionInterval() { @@ -80,7 +77,7 @@ public Long collectionInterval() { /** * Set the collectionInterval property: The interval in minutes by which metrics will be collected. - * + * * @param collectionInterval the collectionInterval value to set. * @return the ClusterMetricsConfigurationPatchParameters object itself. */ @@ -95,7 +92,7 @@ public ClusterMetricsConfigurationPatchParameters withCollectionInterval(Long co /** * Get the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @return the enabledMetrics value. */ public List enabledMetrics() { @@ -105,7 +102,7 @@ public List enabledMetrics() { /** * Set the enabledMetrics property: The list of metric names that have been chosen to be enabled in addition to the * core set of enabled metrics. - * + * * @param enabledMetrics the enabledMetrics value to set. * @return the ClusterMetricsConfigurationPatchParameters object itself. */ @@ -119,7 +116,7 @@ public ClusterMetricsConfigurationPatchParameters withEnabledMetrics(List writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterMetricsConfigurationPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterMetricsConfigurationPatchParameters if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterMetricsConfigurationPatchParameters. + */ + public static ClusterMetricsConfigurationPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterMetricsConfigurationPatchParameters deserializedClusterMetricsConfigurationPatchParameters + = new ClusterMetricsConfigurationPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedClusterMetricsConfigurationPatchParameters.innerProperties + = ClusterMetricsConfigurationPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterMetricsConfigurationPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterMetricsConfigurationPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationProvisioningState.java index a4b39e12edabc..5b5d82bf0f57d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterMetricsConfigurationProvisioningState.java @@ -5,30 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the metrics configuration. */ +/** + * The provisioning state of the metrics configuration. + */ public final class ClusterMetricsConfigurationProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for ClusterMetricsConfigurationProvisioningState. */ + /** + * Static value Succeeded for ClusterMetricsConfigurationProvisioningState. + */ public static final ClusterMetricsConfigurationProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ClusterMetricsConfigurationProvisioningState. */ + /** + * Static value Failed for ClusterMetricsConfigurationProvisioningState. + */ public static final ClusterMetricsConfigurationProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for ClusterMetricsConfigurationProvisioningState. */ + /** + * Static value Canceled for ClusterMetricsConfigurationProvisioningState. + */ public static final ClusterMetricsConfigurationProvisioningState CANCELED = fromString("Canceled"); - /** Static value Accepted for ClusterMetricsConfigurationProvisioningState. */ + /** + * Static value Accepted for ClusterMetricsConfigurationProvisioningState. + */ public static final ClusterMetricsConfigurationProvisioningState ACCEPTED = fromString("Accepted"); - /** Static value Provisioning for ClusterMetricsConfigurationProvisioningState. */ + /** + * Static value Provisioning for ClusterMetricsConfigurationProvisioningState. + */ public static final ClusterMetricsConfigurationProvisioningState PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of ClusterMetricsConfigurationProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,18 +48,17 @@ public ClusterMetricsConfigurationProvisioningState() { /** * Creates or finds a ClusterMetricsConfigurationProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterMetricsConfigurationProvisioningState. */ - @JsonCreator public static ClusterMetricsConfigurationProvisioningState fromString(String name) { return fromString(name, ClusterMetricsConfigurationProvisioningState.class); } /** * Gets known ClusterMetricsConfigurationProvisioningState values. - * + * * @return known ClusterMetricsConfigurationProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java index f07f0521e657c..8a36c145506bb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterPatchParameters.java @@ -5,39 +5,64 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; import java.util.Map; -/** ClusterPatchParameters represents the body of the request to patch the cluster properties. */ +/** + * ClusterPatchParameters represents the body of the request to patch the cluster properties. + */ @Fluent -public final class ClusterPatchParameters { +public final class ClusterPatchParameters implements JsonSerializable { + /* + * The identity for the resource. + */ + private ManagedServiceIdentity identity; + /* - * ClusterPatchProperties represents the properties of the cluster for patching. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private ClusterPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of ClusterPatchParameters class. */ + /** + * Creates an instance of ClusterPatchParameters class. + */ public ClusterPatchParameters() { } /** - * Get the innerProperties property: ClusterPatchProperties represents the properties of the cluster for patching. - * - *

The list of the resource properties. - * + * Get the identity property: The identity for the resource. + * + * @return the identity value. + */ + public ManagedServiceIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity for the resource. + * + * @param identity the identity value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withIdentity(ManagedServiceIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private ClusterPatchProperties innerProperties() { @@ -46,7 +71,7 @@ private ClusterPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -55,7 +80,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the ClusterPatchParameters object itself. */ @@ -65,11 +90,9 @@ public ClusterPatchParameters withTags(Map tags) { } /** - * Get the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Get the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @return the aggregatorOrSingleRackDefinition value. */ public RackDefinition aggregatorOrSingleRackDefinition() { @@ -77,11 +100,9 @@ public RackDefinition aggregatorOrSingleRackDefinition() { } /** - * Set the aggregatorOrSingleRackDefinition property: RackDefinition represents details regarding the rack. - * - *

The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator - * rack in a multi-rack cluster. - * + * Set the aggregatorOrSingleRackDefinition property: The rack definition that is intended to reflect only a single + * rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. + * * @param aggregatorOrSingleRackDefinition the aggregatorOrSingleRackDefinition value to set. * @return the ClusterPatchParameters object itself. */ @@ -97,7 +118,7 @@ public RackDefinition aggregatorOrSingleRackDefinition() { /** * Get the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @return the clusterLocation value. */ public String clusterLocation() { @@ -107,7 +128,7 @@ public String clusterLocation() { /** * Set the clusterLocation property: The customer-provided location information to identify where the cluster * resides. - * + * * @param clusterLocation the clusterLocation value to set. * @return the ClusterPatchParameters object itself. */ @@ -120,11 +141,9 @@ public ClusterPatchParameters withClusterLocation(String clusterLocation) { } /** - * Get the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Get the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @return the clusterServicePrincipal value. */ public ServicePrincipalInformation clusterServicePrincipal() { @@ -132,11 +151,9 @@ public ServicePrincipalInformation clusterServicePrincipal() { } /** - * Set the clusterServicePrincipal property: ServicePrincipalInformation represents the details of the service - * principal to be used by the cluster during Arc Appliance installation. - * - *

The service principal to be used by the cluster during Arc Appliance installation. - * + * Set the clusterServicePrincipal property: The service principal to be used by the cluster during Arc Appliance + * installation. + * * @param clusterServicePrincipal the clusterServicePrincipal value to set. * @return the ClusterPatchParameters object itself. */ @@ -149,12 +166,34 @@ public ClusterPatchParameters withClusterServicePrincipal(ServicePrincipalInform } /** - * Get the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Get the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @return the commandOutputSettings value. + */ + public CommandOutputSettings commandOutputSettings() { + return this.innerProperties() == null ? null : this.innerProperties().commandOutputSettings(); + } + + /** + * Set the commandOutputSettings property: The settings for commands run in this cluster, such as bare metal machine + * run read only commands and data extracts. + * + * @param commandOutputSettings the commandOutputSettings value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withCommandOutputSettings(CommandOutputSettings commandOutputSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterPatchProperties(); + } + this.innerProperties().withCommandOutputSettings(commandOutputSettings); + return this; + } + + /** + * Get the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @return the computeDeploymentThreshold value. */ public ValidationThreshold computeDeploymentThreshold() { @@ -162,12 +201,9 @@ public ValidationThreshold computeDeploymentThreshold() { } /** - * Set the computeDeploymentThreshold property: ValidationThreshold indicates allowed machine and node hardware and - * deployment failures. - * - *

The validation threshold indicating the allowable failures of compute machines during environment validation - * and deployment. - * + * Set the computeDeploymentThreshold property: The validation threshold indicating the allowable failures of + * compute machines during environment validation and deployment. + * * @param computeDeploymentThreshold the computeDeploymentThreshold value to set. * @return the ClusterPatchParameters object itself. */ @@ -182,7 +218,7 @@ public ClusterPatchParameters withComputeDeploymentThreshold(ValidationThreshold /** * Get the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @return the computeRackDefinitions value. */ public List computeRackDefinitions() { @@ -192,7 +228,7 @@ public List computeRackDefinitions() { /** * Set the computeRackDefinitions property: The list of rack definitions for the compute racks in a multi-rack * cluster, or an empty list in a single-rack cluster. - * + * * @param computeRackDefinitions the computeRackDefinitions value to set. * @return the ClusterPatchParameters object itself. */ @@ -204,14 +240,132 @@ public ClusterPatchParameters withComputeRackDefinitions(List co return this; } + /** + * Get the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @return the runtimeProtectionConfiguration value. + */ + public RuntimeProtectionConfiguration runtimeProtectionConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().runtimeProtectionConfiguration(); + } + + /** + * Set the runtimeProtectionConfiguration property: The settings for cluster runtime protection. + * + * @param runtimeProtectionConfiguration the runtimeProtectionConfiguration value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters + withRuntimeProtectionConfiguration(RuntimeProtectionConfiguration runtimeProtectionConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterPatchProperties(); + } + this.innerProperties().withRuntimeProtectionConfiguration(runtimeProtectionConfiguration); + return this; + } + + /** + * Get the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @return the secretArchive value. + */ + public ClusterSecretArchive secretArchive() { + return this.innerProperties() == null ? null : this.innerProperties().secretArchive(); + } + + /** + * Set the secretArchive property: The configuration for use of a key vault to store secrets for later retrieval by + * the operator. + * + * @param secretArchive the secretArchive value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withSecretArchive(ClusterSecretArchive secretArchive) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterPatchProperties(); + } + this.innerProperties().withSecretArchive(secretArchive); + return this; + } + + /** + * Get the updateStrategy property: The strategy for updating the cluster. + * + * @return the updateStrategy value. + */ + public ClusterUpdateStrategy updateStrategy() { + return this.innerProperties() == null ? null : this.innerProperties().updateStrategy(); + } + + /** + * Set the updateStrategy property: The strategy for updating the cluster. + * + * @param updateStrategy the updateStrategy value to set. + * @return the ClusterPatchParameters object itself. + */ + public ClusterPatchParameters withUpdateStrategy(ClusterUpdateStrategy updateStrategy) { + if (this.innerProperties() == null) { + this.innerProperties = new ClusterPatchProperties(); + } + this.innerProperties().withUpdateStrategy(updateStrategy); + return this; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (identity() != null) { + identity().validate(); + } if (innerProperties() != null) { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("identity", this.identity); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterPatchParameters if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterPatchParameters. + */ + public static ClusterPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterPatchParameters deserializedClusterPatchParameters = new ClusterPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("identity".equals(fieldName)) { + deserializedClusterPatchParameters.identity = ManagedServiceIdentity.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedClusterPatchParameters.innerProperties = ClusterPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedClusterPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterProvisioningState.java index fbe1d66629daf..d552cf4b2f39b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterProvisioningState.java @@ -5,32 +5,45 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the cluster. */ +/** + * The provisioning state of the cluster. + */ public final class ClusterProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for ClusterProvisioningState. */ + /** + * Static value Succeeded for ClusterProvisioningState. + */ public static final ClusterProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ClusterProvisioningState. */ + /** + * Static value Failed for ClusterProvisioningState. + */ public static final ClusterProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for ClusterProvisioningState. */ + /** + * Static value Canceled for ClusterProvisioningState. + */ public static final ClusterProvisioningState CANCELED = fromString("Canceled"); - /** Static value Accepted for ClusterProvisioningState. */ + /** + * Static value Accepted for ClusterProvisioningState. + */ public static final ClusterProvisioningState ACCEPTED = fromString("Accepted"); - /** Static value Validating for ClusterProvisioningState. */ + /** + * Static value Validating for ClusterProvisioningState. + */ public static final ClusterProvisioningState VALIDATING = fromString("Validating"); - /** Static value Updating for ClusterProvisioningState. */ + /** + * Static value Updating for ClusterProvisioningState. + */ public static final ClusterProvisioningState UPDATING = fromString("Updating"); /** * Creates a new instance of ClusterProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -39,18 +52,17 @@ public ClusterProvisioningState() { /** * Creates or finds a ClusterProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterProvisioningState. */ - @JsonCreator public static ClusterProvisioningState fromString(String name) { return fromString(name, ClusterProvisioningState.class); } /** * Gets known ClusterProvisioningState values. - * + * * @return known ClusterProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParameters.java new file mode 100644 index 0000000000000..799799be2affd --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParameters.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * ClusterScanRuntimeParameters defines the parameters for the cluster scan runtime operation. + */ +@Fluent +public final class ClusterScanRuntimeParameters implements JsonSerializable { + /* + * The choice of if the scan operation should run the scan. + */ + private ClusterScanRuntimeParametersScanActivity scanActivity; + + /** + * Creates an instance of ClusterScanRuntimeParameters class. + */ + public ClusterScanRuntimeParameters() { + } + + /** + * Get the scanActivity property: The choice of if the scan operation should run the scan. + * + * @return the scanActivity value. + */ + public ClusterScanRuntimeParametersScanActivity scanActivity() { + return this.scanActivity; + } + + /** + * Set the scanActivity property: The choice of if the scan operation should run the scan. + * + * @param scanActivity the scanActivity value to set. + * @return the ClusterScanRuntimeParameters object itself. + */ + public ClusterScanRuntimeParameters withScanActivity(ClusterScanRuntimeParametersScanActivity scanActivity) { + this.scanActivity = scanActivity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("scanActivity", this.scanActivity == null ? null : this.scanActivity.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterScanRuntimeParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterScanRuntimeParameters if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ClusterScanRuntimeParameters. + */ + public static ClusterScanRuntimeParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterScanRuntimeParameters deserializedClusterScanRuntimeParameters = new ClusterScanRuntimeParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("scanActivity".equals(fieldName)) { + deserializedClusterScanRuntimeParameters.scanActivity + = ClusterScanRuntimeParametersScanActivity.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterScanRuntimeParameters; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParametersScanActivity.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParametersScanActivity.java new file mode 100644 index 0000000000000..0d210fab3ad51 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterScanRuntimeParametersScanActivity.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The choice of if the scan operation should run the scan. + */ +public final class ClusterScanRuntimeParametersScanActivity + extends ExpandableStringEnum { + /** + * Static value Scan for ClusterScanRuntimeParametersScanActivity. + */ + public static final ClusterScanRuntimeParametersScanActivity SCAN = fromString("Scan"); + + /** + * Static value Skip for ClusterScanRuntimeParametersScanActivity. + */ + public static final ClusterScanRuntimeParametersScanActivity SKIP = fromString("Skip"); + + /** + * Creates a new instance of ClusterScanRuntimeParametersScanActivity value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterScanRuntimeParametersScanActivity() { + } + + /** + * Creates or finds a ClusterScanRuntimeParametersScanActivity from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterScanRuntimeParametersScanActivity. + */ + public static ClusterScanRuntimeParametersScanActivity fromString(String name) { + return fromString(name, ClusterScanRuntimeParametersScanActivity.class); + } + + /** + * Gets known ClusterScanRuntimeParametersScanActivity values. + * + * @return known ClusterScanRuntimeParametersScanActivity values. + */ + public static Collection values() { + return values(ClusterScanRuntimeParametersScanActivity.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchive.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchive.java new file mode 100644 index 0000000000000..4b4948e257779 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchive.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * ClusterSecretArchive configures the key vault to archive the secrets of the cluster for later retrieval. + */ +@Fluent +public final class ClusterSecretArchive implements JsonSerializable { + /* + * The resource ID of the key vault to archive the secrets of the cluster. + */ + private String keyVaultId; + + /* + * The indicator if the specified key vault should be used to archive the secrets of the cluster. + */ + private ClusterSecretArchiveEnabled useKeyVault; + + /** + * Creates an instance of ClusterSecretArchive class. + */ + public ClusterSecretArchive() { + } + + /** + * Get the keyVaultId property: The resource ID of the key vault to archive the secrets of the cluster. + * + * @return the keyVaultId value. + */ + public String keyVaultId() { + return this.keyVaultId; + } + + /** + * Set the keyVaultId property: The resource ID of the key vault to archive the secrets of the cluster. + * + * @param keyVaultId the keyVaultId value to set. + * @return the ClusterSecretArchive object itself. + */ + public ClusterSecretArchive withKeyVaultId(String keyVaultId) { + this.keyVaultId = keyVaultId; + return this; + } + + /** + * Get the useKeyVault property: The indicator if the specified key vault should be used to archive the secrets of + * the cluster. + * + * @return the useKeyVault value. + */ + public ClusterSecretArchiveEnabled useKeyVault() { + return this.useKeyVault; + } + + /** + * Set the useKeyVault property: The indicator if the specified key vault should be used to archive the secrets of + * the cluster. + * + * @param useKeyVault the useKeyVault value to set. + * @return the ClusterSecretArchive object itself. + */ + public ClusterSecretArchive withUseKeyVault(ClusterSecretArchiveEnabled useKeyVault) { + this.useKeyVault = useKeyVault; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (keyVaultId() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property keyVaultId in model ClusterSecretArchive")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterSecretArchive.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("keyVaultId", this.keyVaultId); + jsonWriter.writeStringField("useKeyVault", this.useKeyVault == null ? null : this.useKeyVault.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterSecretArchive from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterSecretArchive if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterSecretArchive. + */ + public static ClusterSecretArchive fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterSecretArchive deserializedClusterSecretArchive = new ClusterSecretArchive(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyVaultId".equals(fieldName)) { + deserializedClusterSecretArchive.keyVaultId = reader.getString(); + } else if ("useKeyVault".equals(fieldName)) { + deserializedClusterSecretArchive.useKeyVault + = ClusterSecretArchiveEnabled.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterSecretArchive; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchiveEnabled.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchiveEnabled.java new file mode 100644 index 0000000000000..88ba06fa0d76a --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterSecretArchiveEnabled.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The indicator if the specified key vault should be used to archive the secrets of the cluster. + */ +public final class ClusterSecretArchiveEnabled extends ExpandableStringEnum { + /** + * Static value True for ClusterSecretArchiveEnabled. + */ + public static final ClusterSecretArchiveEnabled TRUE = fromString("True"); + + /** + * Static value False for ClusterSecretArchiveEnabled. + */ + public static final ClusterSecretArchiveEnabled FALSE = fromString("False"); + + /** + * Creates a new instance of ClusterSecretArchiveEnabled value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterSecretArchiveEnabled() { + } + + /** + * Creates or finds a ClusterSecretArchiveEnabled from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterSecretArchiveEnabled. + */ + public static ClusterSecretArchiveEnabled fromString(String name) { + return fromString(name, ClusterSecretArchiveEnabled.class); + } + + /** + * Gets known ClusterSecretArchiveEnabled values. + * + * @return known ClusterSecretArchiveEnabled values. + */ + public static Collection values() { + return values(ClusterSecretArchiveEnabled.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterType.java index 00746e9e80a7c..cf31299db5846 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterType.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of rack configuration for the cluster. */ +/** + * The type of rack configuration for the cluster. + */ public final class ClusterType extends ExpandableStringEnum { - /** Static value SingleRack for ClusterType. */ + /** + * Static value SingleRack for ClusterType. + */ public static final ClusterType SINGLE_RACK = fromString("SingleRack"); - /** Static value MultiRack for ClusterType. */ + /** + * Static value MultiRack for ClusterType. + */ public static final ClusterType MULTI_RACK = fromString("MultiRack"); /** * Creates a new instance of ClusterType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ClusterType() { /** * Creates or finds a ClusterType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterType. */ - @JsonCreator public static ClusterType fromString(String name) { return fromString(name, ClusterType.class); } /** * Gets known ClusterType values. - * + * * @return known ClusterType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategy.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategy.java new file mode 100644 index 0000000000000..d1a6f1ac4f338 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategy.java @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * ClusterUpdateStrategy represents the strategy for updating the cluster. + */ +@Fluent +public final class ClusterUpdateStrategy implements JsonSerializable { + /* + * The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack. + * Limited by the maximum number of machines in the increment. Defaults to the whole increment size. + */ + private Long maxUnavailable; + + /* + * The mode of operation for runtime protection. + */ + private ClusterUpdateStrategyType strategyType; + + /* + * Selection of how the threshold should be evaluated. + */ + private ValidationThresholdType thresholdType; + + /* + * The numeric threshold value. + */ + private long thresholdValue; + + /* + * The time to wait between the increments of update defined by the strategy. + */ + private Long waitTimeMinutes; + + /** + * Creates an instance of ClusterUpdateStrategy class. + */ + public ClusterUpdateStrategy() { + } + + /** + * Get the maxUnavailable property: The maximum number of worker nodes that can be offline within the increment of + * update, e.g., rack-by-rack. + * Limited by the maximum number of machines in the increment. Defaults to the whole increment size. + * + * @return the maxUnavailable value. + */ + public Long maxUnavailable() { + return this.maxUnavailable; + } + + /** + * Set the maxUnavailable property: The maximum number of worker nodes that can be offline within the increment of + * update, e.g., rack-by-rack. + * Limited by the maximum number of machines in the increment. Defaults to the whole increment size. + * + * @param maxUnavailable the maxUnavailable value to set. + * @return the ClusterUpdateStrategy object itself. + */ + public ClusterUpdateStrategy withMaxUnavailable(Long maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return this; + } + + /** + * Get the strategyType property: The mode of operation for runtime protection. + * + * @return the strategyType value. + */ + public ClusterUpdateStrategyType strategyType() { + return this.strategyType; + } + + /** + * Set the strategyType property: The mode of operation for runtime protection. + * + * @param strategyType the strategyType value to set. + * @return the ClusterUpdateStrategy object itself. + */ + public ClusterUpdateStrategy withStrategyType(ClusterUpdateStrategyType strategyType) { + this.strategyType = strategyType; + return this; + } + + /** + * Get the thresholdType property: Selection of how the threshold should be evaluated. + * + * @return the thresholdType value. + */ + public ValidationThresholdType thresholdType() { + return this.thresholdType; + } + + /** + * Set the thresholdType property: Selection of how the threshold should be evaluated. + * + * @param thresholdType the thresholdType value to set. + * @return the ClusterUpdateStrategy object itself. + */ + public ClusterUpdateStrategy withThresholdType(ValidationThresholdType thresholdType) { + this.thresholdType = thresholdType; + return this; + } + + /** + * Get the thresholdValue property: The numeric threshold value. + * + * @return the thresholdValue value. + */ + public long thresholdValue() { + return this.thresholdValue; + } + + /** + * Set the thresholdValue property: The numeric threshold value. + * + * @param thresholdValue the thresholdValue value to set. + * @return the ClusterUpdateStrategy object itself. + */ + public ClusterUpdateStrategy withThresholdValue(long thresholdValue) { + this.thresholdValue = thresholdValue; + return this; + } + + /** + * Get the waitTimeMinutes property: The time to wait between the increments of update defined by the strategy. + * + * @return the waitTimeMinutes value. + */ + public Long waitTimeMinutes() { + return this.waitTimeMinutes; + } + + /** + * Set the waitTimeMinutes property: The time to wait between the increments of update defined by the strategy. + * + * @param waitTimeMinutes the waitTimeMinutes value to set. + * @return the ClusterUpdateStrategy object itself. + */ + public ClusterUpdateStrategy withWaitTimeMinutes(Long waitTimeMinutes) { + this.waitTimeMinutes = waitTimeMinutes; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (strategyType() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property strategyType in model ClusterUpdateStrategy")); + } + if (thresholdType() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property thresholdType in model ClusterUpdateStrategy")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ClusterUpdateStrategy.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("strategyType", this.strategyType == null ? null : this.strategyType.toString()); + jsonWriter.writeStringField("thresholdType", this.thresholdType == null ? null : this.thresholdType.toString()); + jsonWriter.writeLongField("thresholdValue", this.thresholdValue); + jsonWriter.writeNumberField("maxUnavailable", this.maxUnavailable); + jsonWriter.writeNumberField("waitTimeMinutes", this.waitTimeMinutes); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterUpdateStrategy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterUpdateStrategy if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterUpdateStrategy. + */ + public static ClusterUpdateStrategy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterUpdateStrategy deserializedClusterUpdateStrategy = new ClusterUpdateStrategy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("strategyType".equals(fieldName)) { + deserializedClusterUpdateStrategy.strategyType + = ClusterUpdateStrategyType.fromString(reader.getString()); + } else if ("thresholdType".equals(fieldName)) { + deserializedClusterUpdateStrategy.thresholdType + = ValidationThresholdType.fromString(reader.getString()); + } else if ("thresholdValue".equals(fieldName)) { + deserializedClusterUpdateStrategy.thresholdValue = reader.getLong(); + } else if ("maxUnavailable".equals(fieldName)) { + deserializedClusterUpdateStrategy.maxUnavailable = reader.getNullable(JsonReader::getLong); + } else if ("waitTimeMinutes".equals(fieldName)) { + deserializedClusterUpdateStrategy.waitTimeMinutes = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterUpdateStrategy; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategyType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategyType.java new file mode 100644 index 0000000000000..5f10cbd5d831e --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateStrategyType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The mode of operation for runtime protection. + */ +public final class ClusterUpdateStrategyType extends ExpandableStringEnum { + /** + * Static value Rack for ClusterUpdateStrategyType. + */ + public static final ClusterUpdateStrategyType RACK = fromString("Rack"); + + /** + * Static value PauseAfterRack for ClusterUpdateStrategyType. + */ + public static final ClusterUpdateStrategyType PAUSE_AFTER_RACK = fromString("PauseAfterRack"); + + /** + * Creates a new instance of ClusterUpdateStrategyType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterUpdateStrategyType() { + } + + /** + * Creates or finds a ClusterUpdateStrategyType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterUpdateStrategyType. + */ + public static ClusterUpdateStrategyType fromString(String name) { + return fromString(name, ClusterUpdateStrategyType.class); + } + + /** + * Gets known ClusterUpdateStrategyType values. + * + * @return known ClusterUpdateStrategyType values. + */ + public static Collection values() { + return values(ClusterUpdateStrategyType.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateVersionParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateVersionParameters.java index 0bf31c3a92720..dc53521a67cf6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateVersionParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ClusterUpdateVersionParameters.java @@ -6,24 +6,31 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** ClusterUpdateVersionParameters represents the body of the request to update cluster version. */ +/** + * ClusterUpdateVersionParameters represents the body of the request to update cluster version. + */ @Fluent -public final class ClusterUpdateVersionParameters { +public final class ClusterUpdateVersionParameters implements JsonSerializable { /* * The version to be applied to the cluster during update. */ - @JsonProperty(value = "targetClusterVersion", required = true) private String targetClusterVersion; - /** Creates an instance of ClusterUpdateVersionParameters class. */ + /** + * Creates an instance of ClusterUpdateVersionParameters class. + */ public ClusterUpdateVersionParameters() { } /** * Get the targetClusterVersion property: The version to be applied to the cluster during update. - * + * * @return the targetClusterVersion value. */ public String targetClusterVersion() { @@ -32,7 +39,7 @@ public String targetClusterVersion() { /** * Set the targetClusterVersion property: The version to be applied to the cluster during update. - * + * * @param targetClusterVersion the targetClusterVersion value to set. * @return the ClusterUpdateVersionParameters object itself. */ @@ -43,15 +50,54 @@ public ClusterUpdateVersionParameters withTargetClusterVersion(String targetClus /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (targetClusterVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetClusterVersion in model ClusterUpdateVersionParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetClusterVersion in model ClusterUpdateVersionParameters")); } } private static final ClientLogger LOGGER = new ClientLogger(ClusterUpdateVersionParameters.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetClusterVersion", this.targetClusterVersion); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterUpdateVersionParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterUpdateVersionParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ClusterUpdateVersionParameters. + */ + public static ClusterUpdateVersionParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterUpdateVersionParameters deserializedClusterUpdateVersionParameters + = new ClusterUpdateVersionParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetClusterVersion".equals(fieldName)) { + deserializedClusterUpdateVersionParameters.targetClusterVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterUpdateVersionParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Clusters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Clusters.java index 21d5753158f39..1866e77a955de 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Clusters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Clusters.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Clusters. */ +/** + * Resource collection API of Clusters. + */ public interface Clusters { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of clusters in the provided subscription as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface Clusters { /** * List clusters in the subscription. - * - *

Get a list of clusters in the provided subscription. - * + * + * Get a list of clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,9 +38,9 @@ public interface Clusters { /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -49,9 +51,9 @@ public interface Clusters { /** * List clusters in the resource group. - * - *

Get a list of clusters in the provided resource group. - * + * + * Get a list of clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -63,9 +65,9 @@ public interface Clusters { /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. @@ -78,9 +80,9 @@ public interface Clusters { /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -92,36 +94,73 @@ public interface Clusters { /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String clusterName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String clusterName); /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult delete(String resourceGroupName, String clusterName, Context context); + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters); + + /** + * Continue a paused update to the cluster version. + * + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused after + * completing a segment of the update. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterName, Context context); + OperationStatusResult continueUpdateVersion(String resourceGroupName, String clusterName, + ClusterContinueUpdateVersionParameters clusterContinueUpdateVersionParameters, Context context); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,10 +171,10 @@ public interface Clusters { OperationStatusResult deploy(String resourceGroupName, String clusterName); /** - * Deploy the cluster to the rack. - * - *

Deploy the cluster to the provided rack. - * + * Deploy the cluster. + * + * Deploy the cluster using the rack configuration provided during creation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterDeployParameters The request body. @@ -148,11 +187,44 @@ public interface Clusters { OperationStatusResult deploy(String resourceGroupName, String clusterName, ClusterDeployParameters clusterDeployParameters, Context context); + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult scanRuntime(String resourceGroupName, String clusterName); + + /** + * Execute a runtime protection scan on the cluster. + * + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with + * the cluster configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterScanRuntimeParameters The request body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult scanRuntime(String resourceGroupName, String clusterName, + ClusterScanRuntimeParameters clusterScanRuntimeParameters, Context context); + /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -166,9 +238,9 @@ OperationStatusResult updateVersion(String resourceGroupName, String clusterName /** * Update the cluster version. - * - *

Update the version of the provided cluster to one of the available supported versions. - * + * + * Update the version of the provided cluster to one of the available supported versions. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param clusterUpdateVersionParameters The request body. @@ -183,9 +255,9 @@ OperationStatusResult updateVersion(String resourceGroupName, String clusterName /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -196,9 +268,9 @@ OperationStatusResult updateVersion(String resourceGroupName, String clusterName /** * Retrieve the cluster. - * - *

Get properties of the provided cluster. - * + * + * Get properties of the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -210,32 +282,34 @@ OperationStatusResult updateVersion(String resourceGroupName, String clusterName /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the cluster. - * - *

Delete the provided cluster. - * + * + * Delete the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new Cluster resource. - * + * * @param name resource name. * @return the first stage of the new Cluster definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CommandOutputSettings.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CommandOutputSettings.java new file mode 100644 index 0000000000000..a72a4918bea38 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/CommandOutputSettings.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * CommandOutputSettings represents the settings for commands run within the cluster such as bare metal machine run + * read-only commands. + */ +@Fluent +public final class CommandOutputSettings implements JsonSerializable { + /* + * The selection of the managed identity to use with this storage account container. The identity type must be + * either system assigned or user assigned. + */ + private IdentitySelector associatedIdentity; + + /* + * The URL of the storage account container that is to be used by the specified identities. + */ + private String containerUrl; + + /** + * Creates an instance of CommandOutputSettings class. + */ + public CommandOutputSettings() { + } + + /** + * Get the associatedIdentity property: The selection of the managed identity to use with this storage account + * container. The identity type must be either system assigned or user assigned. + * + * @return the associatedIdentity value. + */ + public IdentitySelector associatedIdentity() { + return this.associatedIdentity; + } + + /** + * Set the associatedIdentity property: The selection of the managed identity to use with this storage account + * container. The identity type must be either system assigned or user assigned. + * + * @param associatedIdentity the associatedIdentity value to set. + * @return the CommandOutputSettings object itself. + */ + public CommandOutputSettings withAssociatedIdentity(IdentitySelector associatedIdentity) { + this.associatedIdentity = associatedIdentity; + return this; + } + + /** + * Get the containerUrl property: The URL of the storage account container that is to be used by the specified + * identities. + * + * @return the containerUrl value. + */ + public String containerUrl() { + return this.containerUrl; + } + + /** + * Set the containerUrl property: The URL of the storage account container that is to be used by the specified + * identities. + * + * @param containerUrl the containerUrl value to set. + * @return the CommandOutputSettings object itself. + */ + public CommandOutputSettings withContainerUrl(String containerUrl) { + this.containerUrl = containerUrl; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (associatedIdentity() != null) { + associatedIdentity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("associatedIdentity", this.associatedIdentity); + jsonWriter.writeStringField("containerUrl", this.containerUrl); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CommandOutputSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CommandOutputSettings if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the CommandOutputSettings. + */ + public static CommandOutputSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CommandOutputSettings deserializedCommandOutputSettings = new CommandOutputSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("associatedIdentity".equals(fieldName)) { + deserializedCommandOutputSettings.associatedIdentity = IdentitySelector.fromJson(reader); + } else if ("containerUrl".equals(fieldName)) { + deserializedCommandOutputSettings.containerUrl = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCommandOutputSettings; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Console.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Console.java index b77be5730642a..bc5186862fc08 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Console.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Console.java @@ -11,84 +11,84 @@ import java.time.OffsetDateTime; import java.util.Map; -/** An immutable client-side representation of Console. */ +/** + * An immutable client-side representation of Console. + */ public interface Console { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster manager associated with the cluster this virtual machine is created on. - * + * Gets the extendedLocation property: The extended location of the cluster manager associated with the cluster this + * virtual machine is created on. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the detailedStatus property: The more detailed status of the console. - * + * * @return the detailedStatus value. */ ConsoleDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** * Gets the enabled property: The indicator of whether the console access is enabled. - * + * * @return the enabled value. */ ConsoleEnabled enabled(); /** * Gets the expiration property: The date and time after which the key will be disallowed access. - * + * * @return the expiration value. */ OffsetDateTime expiration(); @@ -96,25 +96,22 @@ public interface Console { /** * Gets the privateLinkServiceId property: The resource ID of the private link service that is used to provide * virtual machine console access. - * + * * @return the privateLinkServiceId value. */ String privateLinkServiceId(); /** * Gets the provisioningState property: The provisioning state of the virtual machine console. - * + * * @return the provisioningState value. */ ConsoleProvisioningState provisioningState(); /** - * Gets the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Gets the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @return the sshPublicKey value. */ SshPublicKey sshPublicKey(); @@ -122,56 +119,64 @@ public interface Console { /** * Gets the virtualMachineAccessId property: The unique identifier for the virtual machine that is used to access * the console. - * + * * @return the virtualMachineAccessId value. */ String virtualMachineAccessId(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.ConsoleInner object. - * + * * @return the inner object. */ ConsoleInner innerModel(); - /** The entirety of the Console definition. */ + /** + * The entirety of the Console definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithParentResource, DefinitionStages.WithExtendedLocation, DefinitionStages.WithEnabled, DefinitionStages.WithSshPublicKey, DefinitionStages.WithCreate { } - /** The Console definition stages. */ + /** + * The Console definition stages. + */ interface DefinitionStages { - /** The first stage of the Console definition. */ + /** + * The first stage of the Console definition. + */ interface Blank extends WithLocation { } - /** The stage of the Console definition allowing to specify location. */ + /** + * The stage of the Console definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -179,18 +184,20 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the Console definition allowing to specify parent resource. */ + /** + * The stage of the Console definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, virtualMachineName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @return the next definition stage. @@ -198,48 +205,44 @@ interface WithParentResource { WithExtendedLocation withExistingVirtualMachine(String resourceGroupName, String virtualMachineName); } - /** The stage of the Console definition allowing to specify extendedLocation. */ + /** + * The stage of the Console definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster manager associated with the cluster this virtual machine is - * created on.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster manager associated with the cluster this virtual machine is - * created on. + * Specifies the extendedLocation property: The extended location of the cluster manager associated with the + * cluster this virtual machine is created on.. + * + * @param extendedLocation The extended location of the cluster manager associated with the cluster this + * virtual machine is created on. * @return the next definition stage. */ WithEnabled withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the Console definition allowing to specify enabled. */ + /** + * The stage of the Console definition allowing to specify enabled. + */ interface WithEnabled { /** * Specifies the enabled property: The indicator of whether the console access is enabled.. - * + * * @param enabled The indicator of whether the console access is enabled. * @return the next definition stage. */ WithSshPublicKey withEnabled(ConsoleEnabled enabled); } - /** The stage of the Console definition allowing to specify sshPublicKey. */ + /** + * The stage of the Console definition allowing to specify sshPublicKey. + */ interface WithSshPublicKey { /** - * Specifies the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a - * resource through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the - * corresponding SSH private key for logging in.. - * - * @param sshPublicKey SshPublicKey represents the public key used to authenticate with a resource through - * SSH. - *

The SSH public key that will be provisioned for user access. The user is expected to have the - * corresponding SSH private key for logging in. + * Specifies the sshPublicKey property: The SSH public key that will be provisioned for user access. The + * user is expected to have the corresponding SSH private key for logging in.. + * + * @param sshPublicKey The SSH public key that will be provisioned for user access. The user is expected to + * have the corresponding SSH private key for logging in. * @return the next definition stage. */ WithCreate withSshPublicKey(SshPublicKey sshPublicKey); @@ -252,36 +255,40 @@ interface WithSshPublicKey { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithExpiration { /** * Executes the create request. - * + * * @return the created resource. */ Console create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Console create(Context context); } - /** The stage of the Console definition allowing to specify tags. */ + /** + * The stage of the Console definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the Console definition allowing to specify expiration. */ + /** + * The stage of the Console definition allowing to specify expiration. + */ interface WithExpiration { /** * Specifies the expiration property: The date and time after which the key will be disallowed access.. - * + * * @param expiration The date and time after which the key will be disallowed access. * @return the next definition stage. */ @@ -291,80 +298,85 @@ interface WithExpiration { /** * Begins update for the Console resource. - * + * * @return the stage of resource update. */ Console.Update update(); - /** The template for Console update. */ + /** + * The template for Console update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithEnabled, UpdateStages.WithExpiration, UpdateStages.WithSshPublicKey { /** * Executes the update request. - * + * * @return the updated resource. */ Console apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Console apply(Context context); } - /** The Console update stages. */ + /** + * The Console update stages. + */ interface UpdateStages { - /** The stage of the Console update allowing to specify tags. */ + /** + * The stage of the Console update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the Console update allowing to specify enabled. */ + /** + * The stage of the Console update allowing to specify enabled. + */ interface WithEnabled { /** - * Specifies the enabled property: The credentials used to login to the image repository that has access to - * the specified image.. - * - * @param enabled The credentials used to login to the image repository that has access to the specified - * image. + * Specifies the enabled property: The indicator of whether the console access is enabled.. + * + * @param enabled The indicator of whether the console access is enabled. * @return the next definition stage. */ Update withEnabled(ConsoleEnabled enabled); } - /** The stage of the Console update allowing to specify expiration. */ + /** + * The stage of the Console update allowing to specify expiration. + */ interface WithExpiration { /** * Specifies the expiration property: The date and time after which the key will be disallowed access.. - * + * * @param expiration The date and time after which the key will be disallowed access. * @return the next definition stage. */ Update withExpiration(OffsetDateTime expiration); } - /** The stage of the Console update allowing to specify sshPublicKey. */ + /** + * The stage of the Console update allowing to specify sshPublicKey. + */ interface WithSshPublicKey { /** - * Specifies the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a - * resource through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the - * corresponding SSH private key for logging in.. - * - * @param sshPublicKey SshPublicKey represents the public key used to authenticate with a resource through - * SSH. - *

The SSH public key that will be provisioned for user access. The user is expected to have the - * corresponding SSH private key for logging in. + * Specifies the sshPublicKey property: The SSH public key that will be provisioned for user access. The + * user is expected to have the corresponding SSH private key for logging in.. + * + * @param sshPublicKey The SSH public key that will be provisioned for user access. The user is expected to + * have the corresponding SSH private key for logging in. * @return the next definition stage. */ Update withSshPublicKey(SshPublicKey sshPublicKey); @@ -373,14 +385,14 @@ interface WithSshPublicKey { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Console refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleDetailedStatus.java index d1d7904fb1e47..eadcc4cf10631 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleDetailedStatus.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the console. */ +/** + * The more detailed status of the console. + */ public final class ConsoleDetailedStatus extends ExpandableStringEnum { - /** Static value Ready for ConsoleDetailedStatus. */ + /** + * Static value Ready for ConsoleDetailedStatus. + */ public static final ConsoleDetailedStatus READY = fromString("Ready"); - /** Static value Error for ConsoleDetailedStatus. */ + /** + * Static value Error for ConsoleDetailedStatus. + */ public static final ConsoleDetailedStatus ERROR = fromString("Error"); /** * Creates a new instance of ConsoleDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ConsoleDetailedStatus() { /** * Creates or finds a ConsoleDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ConsoleDetailedStatus. */ - @JsonCreator public static ConsoleDetailedStatus fromString(String name) { return fromString(name, ConsoleDetailedStatus.class); } /** * Gets known ConsoleDetailedStatus values. - * + * * @return known ConsoleDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleEnabled.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleEnabled.java index 8809bc4724f6a..f21a8259c1b42 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleEnabled.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleEnabled.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The credentials used to login to the image repository that has access to the specified image. */ +/** + * The indicator of whether the console access is enabled. + */ public final class ConsoleEnabled extends ExpandableStringEnum { - /** Static value True for ConsoleEnabled. */ + /** + * Static value True for ConsoleEnabled. + */ public static final ConsoleEnabled TRUE = fromString("True"); - /** Static value False for ConsoleEnabled. */ + /** + * Static value False for ConsoleEnabled. + */ public static final ConsoleEnabled FALSE = fromString("False"); /** * Creates a new instance of ConsoleEnabled value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ConsoleEnabled() { /** * Creates or finds a ConsoleEnabled from its string representation. - * + * * @param name a name to look for. * @return the corresponding ConsoleEnabled. */ - @JsonCreator public static ConsoleEnabled fromString(String name) { return fromString(name, ConsoleEnabled.class); } /** * Gets known ConsoleEnabled values. - * + * * @return known ConsoleEnabled values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleList.java index 0682b983fdf0c..b7a06f3a466fe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.ConsoleInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** ConsoleList represents a list of virtual machine consoles. */ +/** + * ConsoleList represents a list of virtual machine consoles. + */ @Fluent -public final class ConsoleList { +public final class ConsoleList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of virtual machine consoles. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of ConsoleList class. */ + /** + * Creates an instance of ConsoleList class. + */ public ConsoleList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the ConsoleList object itself. */ @@ -50,7 +56,7 @@ public ConsoleList withNextLink(String nextLink) { /** * Get the value property: The list of virtual machine consoles. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of virtual machine consoles. - * + * * @param value the value value to set. * @return the ConsoleList object itself. */ @@ -70,7 +76,7 @@ public ConsoleList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConsoleList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConsoleList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ConsoleList. + */ + public static ConsoleList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConsoleList deserializedConsoleList = new ConsoleList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedConsoleList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ConsoleInner.fromJson(reader1)); + deserializedConsoleList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedConsoleList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsolePatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsolePatchParameters.java index f288ca9eb9983..5578771f877a5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsolePatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsolePatchParameters.java @@ -5,40 +5,39 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.ConsolePatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.time.OffsetDateTime; import java.util.Map; -/** ConsolePatchParameters represents the body of the request to patch the virtual machine console. */ +/** + * ConsolePatchParameters represents the body of the request to patch the virtual machine console. + */ @Fluent -public final class ConsolePatchParameters { +public final class ConsolePatchParameters implements JsonSerializable { /* - * ConsolePatchProperties represents the properties of the virtual machine console that can be patched. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private ConsolePatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of ConsolePatchParameters class. */ + /** + * Creates an instance of ConsolePatchParameters class. + */ public ConsolePatchParameters() { } /** - * Get the innerProperties property: ConsolePatchProperties represents the properties of the virtual machine console - * that can be patched. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private ConsolePatchProperties innerProperties() { @@ -47,7 +46,7 @@ private ConsolePatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -56,7 +55,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the ConsolePatchParameters object itself. */ @@ -66,9 +65,8 @@ public ConsolePatchParameters withTags(Map tags) { } /** - * Get the enabled property: The credentials used to login to the image repository that has access to the specified - * image. - * + * Get the enabled property: The indicator of whether the console access is enabled. + * * @return the enabled value. */ public ConsoleEnabled enabled() { @@ -76,9 +74,8 @@ public ConsoleEnabled enabled() { } /** - * Set the enabled property: The credentials used to login to the image repository that has access to the specified - * image. - * + * Set the enabled property: The indicator of whether the console access is enabled. + * * @param enabled the enabled value to set. * @return the ConsolePatchParameters object itself. */ @@ -92,7 +89,7 @@ public ConsolePatchParameters withEnabled(ConsoleEnabled enabled) { /** * Get the expiration property: The date and time after which the key will be disallowed access. - * + * * @return the expiration value. */ public OffsetDateTime expiration() { @@ -101,7 +98,7 @@ public OffsetDateTime expiration() { /** * Set the expiration property: The date and time after which the key will be disallowed access. - * + * * @param expiration the expiration value to set. * @return the ConsolePatchParameters object itself. */ @@ -114,12 +111,9 @@ public ConsolePatchParameters withExpiration(OffsetDateTime expiration) { } /** - * Get the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Get the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @return the sshPublicKey value. */ public SshPublicKey sshPublicKey() { @@ -127,12 +121,9 @@ public SshPublicKey sshPublicKey() { } /** - * Set the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Set the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @param sshPublicKey the sshPublicKey value to set. * @return the ConsolePatchParameters object itself. */ @@ -146,7 +137,7 @@ public ConsolePatchParameters withSshPublicKey(SshPublicKey sshPublicKey) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -154,4 +145,44 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConsolePatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConsolePatchParameters if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ConsolePatchParameters. + */ + public static ConsolePatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConsolePatchParameters deserializedConsolePatchParameters = new ConsolePatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedConsolePatchParameters.innerProperties = ConsolePatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedConsolePatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedConsolePatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleProvisioningState.java index 1c2ea1004c4fd..480d83c0673e9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ConsoleProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the virtual machine console. */ +/** + * The provisioning state of the virtual machine console. + */ public final class ConsoleProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for ConsoleProvisioningState. */ + /** + * Static value Succeeded for ConsoleProvisioningState. + */ public static final ConsoleProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ConsoleProvisioningState. */ + /** + * Static value Failed for ConsoleProvisioningState. + */ public static final ConsoleProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for ConsoleProvisioningState. */ + /** + * Static value Canceled for ConsoleProvisioningState. + */ public static final ConsoleProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for ConsoleProvisioningState. */ + /** + * Static value Provisioning for ConsoleProvisioningState. + */ public static final ConsoleProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for ConsoleProvisioningState. */ + /** + * Static value Accepted for ConsoleProvisioningState. + */ public static final ConsoleProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of ConsoleProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public ConsoleProvisioningState() { /** * Creates or finds a ConsoleProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ConsoleProvisioningState. */ - @JsonCreator public static ConsoleProvisioningState fromString(String name) { return fromString(name, ConsoleProvisioningState.class); } /** * Gets known ConsoleProvisioningState values. - * + * * @return known ConsoleProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Consoles.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Consoles.java index 54f904134bf1e..2480d59239f30 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Consoles.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Consoles.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Consoles. */ +/** + * Resource collection API of Consoles. + */ public interface Consoles { /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,9 +28,9 @@ public interface Consoles { /** * List consoles of the virtual machine. - * - *

Get a list of consoles for the provided virtual machine. - * + * + * Get a list of consoles for the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -41,9 +43,9 @@ public interface Consoles { /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -58,9 +60,9 @@ Response getWithResponse(String resourceGroupName, String virtualMachin /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -73,23 +75,24 @@ Response getWithResponse(String resourceGroupName, String virtualMachin /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String virtualMachineName, String consoleName); + OperationStatusResult delete(String resourceGroupName, String virtualMachineName, String consoleName); /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param consoleName The name of the virtual machine console. @@ -97,14 +100,16 @@ Response getWithResponse(String resourceGroupName, String virtualMachin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String virtualMachineName, String consoleName, Context context); + OperationStatusResult delete(String resourceGroupName, String virtualMachineName, String consoleName, + Context context); /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -115,9 +120,9 @@ Response getWithResponse(String resourceGroupName, String virtualMachin /** * Retrieve the virtual machine console. - * - *

Get properties of the provided virtual machine console. - * + * + * Get properties of the provided virtual machine console. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,32 +134,34 @@ Response getWithResponse(String resourceGroupName, String virtualMachin /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the virtual machine console. - * - *

Delete the provided virtual machine console. - * + * + * Delete the provided virtual machine console. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new Console resource. - * + * * @param name resource name. * @return the first stage of the new Console definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlImpact.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlImpact.java index 0b3153141a72c..ba27e4f3bb645 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlImpact.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlImpact.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether the control plane will be impacted during the upgrade. */ +/** + * The indicator of whether the control plane will be impacted during the upgrade. + */ public final class ControlImpact extends ExpandableStringEnum { - /** Static value True for ControlImpact. */ + /** + * Static value True for ControlImpact. + */ public static final ControlImpact TRUE = fromString("True"); - /** Static value False for ControlImpact. */ + /** + * Static value False for ControlImpact. + */ public static final ControlImpact FALSE = fromString("False"); /** * Creates a new instance of ControlImpact value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ControlImpact() { /** * Creates or finds a ControlImpact from its string representation. - * + * * @param name a name to look for. * @return the corresponding ControlImpact. */ - @JsonCreator public static ControlImpact fromString(String name) { return fromString(name, ControlImpact.class); } /** * Gets known ControlImpact values. - * + * * @return known ControlImpact values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodeConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodeConfiguration.java index 6168ccafe569f..3f48f1353d69d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodeConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodeConfiguration.java @@ -6,7 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,45 +18,38 @@ * Kubernetes cluster. */ @Fluent -public final class ControlPlaneNodeConfiguration { +public final class ControlPlaneNodeConfiguration implements JsonSerializable { /* - * AdministratorConfiguration represents the administrative credentials that will be applied to the control plane - * and agent pool nodes in Kubernetes clusters. - * * The administrator credentials to be used for the nodes in the control plane. */ - @JsonProperty(value = "administratorConfiguration") private AdministratorConfiguration administratorConfiguration; /* * The list of availability zones of the Network Cloud cluster to be used for the provisioning of nodes in the * control plane. If not specified, all availability zones will be used. */ - @JsonProperty(value = "availabilityZones") private List availabilityZones; /* * The number of virtual machines that use this configuration. */ - @JsonProperty(value = "count", required = true) private long count; /* * The name of the VM SKU supplied during creation. */ - @JsonProperty(value = "vmSkuName", required = true) private String vmSkuName; - /** Creates an instance of ControlPlaneNodeConfiguration class. */ + /** + * Creates an instance of ControlPlaneNodeConfiguration class. + */ public ControlPlaneNodeConfiguration() { } /** - * Get the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in the control plane. - * + * Get the administratorConfiguration property: The administrator credentials to be used for the nodes in the + * control plane. + * * @return the administratorConfiguration value. */ public AdministratorConfiguration administratorConfiguration() { @@ -60,11 +57,9 @@ public AdministratorConfiguration administratorConfiguration() { } /** - * Set the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in the control plane. - * + * Set the administratorConfiguration property: The administrator credentials to be used for the nodes in the + * control plane. + * * @param administratorConfiguration the administratorConfiguration value to set. * @return the ControlPlaneNodeConfiguration object itself. */ @@ -77,7 +72,7 @@ public AdministratorConfiguration administratorConfiguration() { /** * Get the availabilityZones property: The list of availability zones of the Network Cloud cluster to be used for * the provisioning of nodes in the control plane. If not specified, all availability zones will be used. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -87,7 +82,7 @@ public List availabilityZones() { /** * Set the availabilityZones property: The list of availability zones of the Network Cloud cluster to be used for * the provisioning of nodes in the control plane. If not specified, all availability zones will be used. - * + * * @param availabilityZones the availabilityZones value to set. * @return the ControlPlaneNodeConfiguration object itself. */ @@ -98,7 +93,7 @@ public ControlPlaneNodeConfiguration withAvailabilityZones(List availabi /** * Get the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ public long count() { @@ -107,7 +102,7 @@ public long count() { /** * Set the count property: The number of virtual machines that use this configuration. - * + * * @param count the count value to set. * @return the ControlPlaneNodeConfiguration object itself. */ @@ -118,7 +113,7 @@ public ControlPlaneNodeConfiguration withCount(long count) { /** * Get the vmSkuName property: The name of the VM SKU supplied during creation. - * + * * @return the vmSkuName value. */ public String vmSkuName() { @@ -127,7 +122,7 @@ public String vmSkuName() { /** * Set the vmSkuName property: The name of the VM SKU supplied during creation. - * + * * @param vmSkuName the vmSkuName value to set. * @return the ControlPlaneNodeConfiguration object itself. */ @@ -138,7 +133,7 @@ public ControlPlaneNodeConfiguration withVmSkuName(String vmSkuName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -146,10 +141,61 @@ public void validate() { administratorConfiguration().validate(); } if (vmSkuName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property vmSkuName in model ControlPlaneNodeConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property vmSkuName in model ControlPlaneNodeConfiguration")); } } private static final ClientLogger LOGGER = new ClientLogger(ControlPlaneNodeConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("count", this.count); + jsonWriter.writeStringField("vmSkuName", this.vmSkuName); + jsonWriter.writeJsonField("administratorConfiguration", this.administratorConfiguration); + jsonWriter.writeArrayField("availabilityZones", this.availabilityZones, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ControlPlaneNodeConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ControlPlaneNodeConfiguration if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ControlPlaneNodeConfiguration. + */ + public static ControlPlaneNodeConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ControlPlaneNodeConfiguration deserializedControlPlaneNodeConfiguration + = new ControlPlaneNodeConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("count".equals(fieldName)) { + deserializedControlPlaneNodeConfiguration.count = reader.getLong(); + } else if ("vmSkuName".equals(fieldName)) { + deserializedControlPlaneNodeConfiguration.vmSkuName = reader.getString(); + } else if ("administratorConfiguration".equals(fieldName)) { + deserializedControlPlaneNodeConfiguration.administratorConfiguration + = AdministratorConfiguration.fromJson(reader); + } else if ("availabilityZones".equals(fieldName)) { + List availabilityZones = reader.readArray(reader1 -> reader1.getString()); + deserializedControlPlaneNodeConfiguration.availabilityZones = availabilityZones; + } else { + reader.skipChildren(); + } + } + + return deserializedControlPlaneNodeConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodePatchConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodePatchConfiguration.java index 3202315ee21d7..98ba2ee8ea0ef 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodePatchConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ControlPlaneNodePatchConfiguration.java @@ -5,27 +5,60 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * ControlPlaneNodePatchConfiguration represents the properties of the control plane that can be patched for this * Kubernetes cluster. */ @Fluent -public final class ControlPlaneNodePatchConfiguration { +public final class ControlPlaneNodePatchConfiguration implements JsonSerializable { + /* + * The configuration of administrator credentials for the control plane nodes. + */ + private AdministratorConfigurationPatch administratorConfiguration; + /* * The number of virtual machines that use this configuration. */ - @JsonProperty(value = "count") private Long count; - /** Creates an instance of ControlPlaneNodePatchConfiguration class. */ + /** + * Creates an instance of ControlPlaneNodePatchConfiguration class. + */ public ControlPlaneNodePatchConfiguration() { } + /** + * Get the administratorConfiguration property: The configuration of administrator credentials for the control plane + * nodes. + * + * @return the administratorConfiguration value. + */ + public AdministratorConfigurationPatch administratorConfiguration() { + return this.administratorConfiguration; + } + + /** + * Set the administratorConfiguration property: The configuration of administrator credentials for the control plane + * nodes. + * + * @param administratorConfiguration the administratorConfiguration value to set. + * @return the ControlPlaneNodePatchConfiguration object itself. + */ + public ControlPlaneNodePatchConfiguration + withAdministratorConfiguration(AdministratorConfigurationPatch administratorConfiguration) { + this.administratorConfiguration = administratorConfiguration; + return this; + } + /** * Get the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ public Long count() { @@ -34,7 +67,7 @@ public Long count() { /** * Set the count property: The number of virtual machines that use this configuration. - * + * * @param count the count value to set. * @return the ControlPlaneNodePatchConfiguration object itself. */ @@ -45,9 +78,53 @@ public ControlPlaneNodePatchConfiguration withCount(Long count) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (administratorConfiguration() != null) { + administratorConfiguration().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("administratorConfiguration", this.administratorConfiguration); + jsonWriter.writeNumberField("count", this.count); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ControlPlaneNodePatchConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ControlPlaneNodePatchConfiguration if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ControlPlaneNodePatchConfiguration. + */ + public static ControlPlaneNodePatchConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ControlPlaneNodePatchConfiguration deserializedControlPlaneNodePatchConfiguration + = new ControlPlaneNodePatchConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("administratorConfiguration".equals(fieldName)) { + deserializedControlPlaneNodePatchConfiguration.administratorConfiguration + = AdministratorConfigurationPatch.fromJson(reader); + } else if ("count".equals(fieldName)) { + deserializedControlPlaneNodePatchConfiguration.count = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedControlPlaneNodePatchConfiguration; + }); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DefaultGateway.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DefaultGateway.java index 965f9dea4ef52..fa8f92efb45bc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DefaultGateway.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DefaultGateway.java @@ -5,23 +5,27 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** - * The indicator of whether this is the default gateway. Only one of the attached networks (including the - * CloudServicesNetwork attachment) for a single machine may be specified as True. + * The indicator of whether this is the default gateway. + * Only one of the attached networks (including the CloudServicesNetwork attachment) for a single machine may be + * specified as True. */ public final class DefaultGateway extends ExpandableStringEnum { - /** Static value True for DefaultGateway. */ + /** + * Static value True for DefaultGateway. + */ public static final DefaultGateway TRUE = fromString("True"); - /** Static value False for DefaultGateway. */ + /** + * Static value False for DefaultGateway. + */ public static final DefaultGateway FALSE = fromString("False"); /** * Creates a new instance of DefaultGateway value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +34,17 @@ public DefaultGateway() { /** * Creates or finds a DefaultGateway from its string representation. - * + * * @param name a name to look for. * @return the corresponding DefaultGateway. */ - @JsonCreator public static DefaultGateway fromString(String name) { return fromString(name, DefaultGateway.class); } /** * Gets known DefaultGateway values. - * + * * @return known DefaultGateway values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DeviceConnectionType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DeviceConnectionType.java index db9d27f815484..ae0206d20e7f3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DeviceConnectionType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DeviceConnectionType.java @@ -5,17 +5,20 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The connection type of the device. */ +/** + * The connection type of the device. + */ public final class DeviceConnectionType extends ExpandableStringEnum { - /** Static value PCI for DeviceConnectionType. */ + /** + * Static value PCI for DeviceConnectionType. + */ public static final DeviceConnectionType PCI = fromString("PCI"); /** * Creates a new instance of DeviceConnectionType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,18 +27,17 @@ public DeviceConnectionType() { /** * Creates or finds a DeviceConnectionType from its string representation. - * + * * @param name a name to look for. * @return the corresponding DeviceConnectionType. */ - @JsonCreator public static DeviceConnectionType fromString(String name) { return fromString(name, DeviceConnectionType.class); } /** * Gets known DeviceConnectionType values. - * + * * @return known DeviceConnectionType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DiskType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DiskType.java index bc873fb4204e5..17fcd08d0e827 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DiskType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/DiskType.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The disk type of rack SKU resource. */ +/** + * The disk type of rack SKU resource. + */ public final class DiskType extends ExpandableStringEnum { - /** Static value HDD for DiskType. */ + /** + * Static value HDD for DiskType. + */ public static final DiskType HDD = fromString("HDD"); - /** Static value SSD for DiskType. */ + /** + * Static value SSD for DiskType. + */ public static final DiskType SSD = fromString("SSD"); /** * Creates a new instance of DiskType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public DiskType() { /** * Creates or finds a DiskType from its string representation. - * + * * @param name a name to look for. * @return the corresponding DiskType. */ - @JsonCreator public static DiskType fromString(String name) { return fromString(name, DiskType.class); } /** * Gets known DiskType values. - * + * * @return known DiskType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EgressEndpoint.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EgressEndpoint.java index 1e57da2d51409..45183c258c48f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EgressEndpoint.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EgressEndpoint.java @@ -6,7 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,22 +18,22 @@ * purpose. */ @Fluent -public final class EgressEndpoint { +public final class EgressEndpoint implements JsonSerializable { /* * The descriptive category name of endpoints accessible by the AKS agent node. For example, * azure-resource-management, API server, etc. The platform egress endpoints provided by default will use the * category 'default'. */ - @JsonProperty(value = "category", required = true) private String category; /* * The list of endpoint dependencies. */ - @JsonProperty(value = "endpoints", required = true) private List endpoints; - /** Creates an instance of EgressEndpoint class. */ + /** + * Creates an instance of EgressEndpoint class. + */ public EgressEndpoint() { } @@ -37,7 +41,7 @@ public EgressEndpoint() { * Get the category property: The descriptive category name of endpoints accessible by the AKS agent node. For * example, azure-resource-management, API server, etc. The platform egress endpoints provided by default will use * the category 'default'. - * + * * @return the category value. */ public String category() { @@ -48,7 +52,7 @@ public String category() { * Set the category property: The descriptive category name of endpoints accessible by the AKS agent node. For * example, azure-resource-management, API server, etc. The platform egress endpoints provided by default will use * the category 'default'. - * + * * @param category the category value to set. * @return the EgressEndpoint object itself. */ @@ -59,7 +63,7 @@ public EgressEndpoint withCategory(String category) { /** * Get the endpoints property: The list of endpoint dependencies. - * + * * @return the endpoints value. */ public List endpoints() { @@ -68,7 +72,7 @@ public List endpoints() { /** * Set the endpoints property: The list of endpoint dependencies. - * + * * @param endpoints the endpoints value to set. * @return the EgressEndpoint object itself. */ @@ -79,21 +83,63 @@ public EgressEndpoint withEndpoints(List endpoints) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (category() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property category in model EgressEndpoint")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property category in model EgressEndpoint")); } if (endpoints() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property endpoints in model EgressEndpoint")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property endpoints in model EgressEndpoint")); } else { endpoints().forEach(e -> e.validate()); } } private static final ClientLogger LOGGER = new ClientLogger(EgressEndpoint.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("category", this.category); + jsonWriter.writeArrayField("endpoints", this.endpoints, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EgressEndpoint from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EgressEndpoint if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EgressEndpoint. + */ + public static EgressEndpoint fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EgressEndpoint deserializedEgressEndpoint = new EgressEndpoint(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("category".equals(fieldName)) { + deserializedEgressEndpoint.category = reader.getString(); + } else if ("endpoints".equals(fieldName)) { + List endpoints + = reader.readArray(reader1 -> EndpointDependency.fromJson(reader1)); + deserializedEgressEndpoint.endpoints = endpoints; + } else { + reader.skipChildren(); + } + } + + return deserializedEgressEndpoint; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EndpointDependency.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EndpointDependency.java index 42b1661dd0b7a..857117e6bc9be 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EndpointDependency.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/EndpointDependency.java @@ -6,30 +6,36 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** EndpointDependency represents the definition of an endpoint, including the domain and details. */ +/** + * EndpointDependency represents the definition of an endpoint, including the domain and details. + */ @Fluent -public final class EndpointDependency { +public final class EndpointDependency implements JsonSerializable { /* * The domain name of the dependency. */ - @JsonProperty(value = "domainName", required = true) private String domainName; /* * The port of this endpoint. */ - @JsonProperty(value = "port") private Long port; - /** Creates an instance of EndpointDependency class. */ + /** + * Creates an instance of EndpointDependency class. + */ public EndpointDependency() { } /** * Get the domainName property: The domain name of the dependency. - * + * * @return the domainName value. */ public String domainName() { @@ -38,7 +44,7 @@ public String domainName() { /** * Set the domainName property: The domain name of the dependency. - * + * * @param domainName the domainName value to set. * @return the EndpointDependency object itself. */ @@ -49,7 +55,7 @@ public EndpointDependency withDomainName(String domainName) { /** * Get the port property: The port of this endpoint. - * + * * @return the port value. */ public Long port() { @@ -58,7 +64,7 @@ public Long port() { /** * Set the port property: The port of this endpoint. - * + * * @param port the port value to set. * @return the EndpointDependency object itself. */ @@ -69,15 +75,55 @@ public EndpointDependency withPort(Long port) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (domainName() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property domainName in model EndpointDependency")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property domainName in model EndpointDependency")); } } private static final ClientLogger LOGGER = new ClientLogger(EndpointDependency.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("domainName", this.domainName); + jsonWriter.writeNumberField("port", this.port); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EndpointDependency from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EndpointDependency if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EndpointDependency. + */ + public static EndpointDependency fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EndpointDependency deserializedEndpointDependency = new EndpointDependency(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("domainName".equals(fieldName)) { + deserializedEndpointDependency.domainName = reader.getString(); + } else if ("port".equals(fieldName)) { + deserializedEndpointDependency.port = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedEndpointDependency; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ExtendedLocation.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ExtendedLocation.java index 70157b75a4b2c..78af3d07d9893 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ExtendedLocation.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ExtendedLocation.java @@ -6,30 +6,36 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** ExtendedLocation represents the Azure custom location where the resource will be created. */ +/** + * ExtendedLocation represents the Azure custom location where the resource will be created. + */ @Fluent -public final class ExtendedLocation { +public final class ExtendedLocation implements JsonSerializable { /* * The resource ID of the extended location on which the resource will be created. */ - @JsonProperty(value = "name", required = true) private String name; /* * The extended location type, for example, CustomLocation. */ - @JsonProperty(value = "type", required = true) private String type; - /** Creates an instance of ExtendedLocation class. */ + /** + * Creates an instance of ExtendedLocation class. + */ public ExtendedLocation() { } /** * Get the name property: The resource ID of the extended location on which the resource will be created. - * + * * @return the name value. */ public String name() { @@ -38,7 +44,7 @@ public String name() { /** * Set the name property: The resource ID of the extended location on which the resource will be created. - * + * * @param name the name value to set. * @return the ExtendedLocation object itself. */ @@ -49,7 +55,7 @@ public ExtendedLocation withName(String name) { /** * Get the type property: The extended location type, for example, CustomLocation. - * + * * @return the type value. */ public String type() { @@ -58,7 +64,7 @@ public String type() { /** * Set the type property: The extended location type, for example, CustomLocation. - * + * * @param type the type value to set. * @return the ExtendedLocation object itself. */ @@ -69,19 +75,59 @@ public ExtendedLocation withType(String type) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model ExtendedLocation")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model ExtendedLocation")); } if (type() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property type in model ExtendedLocation")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property type in model ExtendedLocation")); } } private static final ClientLogger LOGGER = new ClientLogger(ExtendedLocation.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("type", this.type); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ExtendedLocation from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ExtendedLocation if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ExtendedLocation. + */ + public static ExtendedLocation fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ExtendedLocation deserializedExtendedLocation = new ExtendedLocation(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedExtendedLocation.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedExtendedLocation.type = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedExtendedLocation; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FabricPeeringEnabled.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FabricPeeringEnabled.java index 47044b3302a64..d00c4c366a990 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FabricPeeringEnabled.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FabricPeeringEnabled.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator to specify if the load balancer peers with the network fabric. */ +/** + * The indicator to specify if the load balancer peers with the network fabric. + */ public final class FabricPeeringEnabled extends ExpandableStringEnum { - /** Static value True for FabricPeeringEnabled. */ + /** + * Static value True for FabricPeeringEnabled. + */ public static final FabricPeeringEnabled TRUE = fromString("True"); - /** Static value False for FabricPeeringEnabled. */ + /** + * Static value False for FabricPeeringEnabled. + */ public static final FabricPeeringEnabled FALSE = fromString("False"); /** * Creates a new instance of FabricPeeringEnabled value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public FabricPeeringEnabled() { /** * Creates or finds a FabricPeeringEnabled from its string representation. - * + * * @param name a name to look for. * @return the corresponding FabricPeeringEnabled. */ - @JsonCreator public static FabricPeeringEnabled fromString(String name) { return fromString(name, FabricPeeringEnabled.class); } /** * Gets known FabricPeeringEnabled values. - * + * * @return known FabricPeeringEnabled values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureDetailedStatus.java index 5f5b57f0b6cdb..892f3d50f3e94 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The status representing the state of this feature. */ +/** + * The status representing the state of this feature. + */ public final class FeatureDetailedStatus extends ExpandableStringEnum { - /** Static value Running for FeatureDetailedStatus. */ + /** + * Static value Running for FeatureDetailedStatus. + */ public static final FeatureDetailedStatus RUNNING = fromString("Running"); - /** Static value Failed for FeatureDetailedStatus. */ + /** + * Static value Failed for FeatureDetailedStatus. + */ public static final FeatureDetailedStatus FAILED = fromString("Failed"); - /** Static value Unknown for FeatureDetailedStatus. */ + /** + * Static value Unknown for FeatureDetailedStatus. + */ public static final FeatureDetailedStatus UNKNOWN = fromString("Unknown"); /** * Creates a new instance of FeatureDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public FeatureDetailedStatus() { /** * Creates or finds a FeatureDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding FeatureDetailedStatus. */ - @JsonCreator public static FeatureDetailedStatus fromString(String name) { return fromString(name, FeatureDetailedStatus.class); } /** * Gets known FeatureDetailedStatus values. - * + * * @return known FeatureDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureStatus.java index ad779d4ee5e59..85cd700a60dc1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/FeatureStatus.java @@ -5,42 +5,46 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** FeatureStatus contains information regarding a Kubernetes cluster feature. */ +/** + * FeatureStatus contains information regarding a Kubernetes cluster feature. + */ @Immutable -public final class FeatureStatus { +public final class FeatureStatus implements JsonSerializable { /* * The status representing the state of this feature. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private FeatureDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* * The name of the feature. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The version of the feature. */ - @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY) private String version; - /** Creates an instance of FeatureStatus class. */ + /** + * Creates an instance of FeatureStatus class. + */ public FeatureStatus() { } /** * Get the detailedStatus property: The status representing the state of this feature. - * + * * @return the detailedStatus value. */ public FeatureDetailedStatus detailedStatus() { @@ -49,7 +53,7 @@ public FeatureDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -58,7 +62,7 @@ public String detailedStatusMessage() { /** * Get the name property: The name of the feature. - * + * * @return the name value. */ public String name() { @@ -67,7 +71,7 @@ public String name() { /** * Get the version property: The version of the feature. - * + * * @return the version value. */ public String version() { @@ -76,9 +80,50 @@ public String version() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FeatureStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FeatureStatus if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the FeatureStatus. + */ + public static FeatureStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FeatureStatus deserializedFeatureStatus = new FeatureStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("detailedStatus".equals(fieldName)) { + deserializedFeatureStatus.detailedStatus = FeatureDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedFeatureStatus.detailedStatusMessage = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedFeatureStatus.name = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedFeatureStatus.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedFeatureStatus; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventory.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventory.java index 67d790cdd15a1..e91867f4dbfbe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventory.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventory.java @@ -5,7 +5,11 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -13,35 +17,34 @@ * information acquired from the model/sku information and from the ironic inspector. */ @Immutable -public final class HardwareInventory { +public final class HardwareInventory implements JsonSerializable { /* * Freeform data extracted from the environment about this machine. This information varies depending on the * specific hardware and configuration. */ - @JsonProperty(value = "additionalHostInformation", access = JsonProperty.Access.WRITE_ONLY) private String additionalHostInformation; /* * The list of network interfaces and associated details for the bare metal machine. */ - @JsonProperty(value = "interfaces", access = JsonProperty.Access.WRITE_ONLY) private List interfaces; /* * Field Deprecated. Will be removed in an upcoming version. The list of network interface cards and associated * details for the bare metal machine. */ - @JsonProperty(value = "nics", access = JsonProperty.Access.WRITE_ONLY) private List nics; - /** Creates an instance of HardwareInventory class. */ + /** + * Creates an instance of HardwareInventory class. + */ public HardwareInventory() { } /** * Get the additionalHostInformation property: Freeform data extracted from the environment about this machine. This * information varies depending on the specific hardware and configuration. - * + * * @return the additionalHostInformation value. */ public String additionalHostInformation() { @@ -50,7 +53,7 @@ public String additionalHostInformation() { /** * Get the interfaces property: The list of network interfaces and associated details for the bare metal machine. - * + * * @return the interfaces value. */ public List interfaces() { @@ -60,7 +63,7 @@ public List interfaces() { /** * Get the nics property: Field Deprecated. Will be removed in an upcoming version. The list of network interface * cards and associated details for the bare metal machine. - * + * * @return the nics value. */ public List nics() { @@ -69,7 +72,7 @@ public List nics() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -80,4 +83,46 @@ public void validate() { nics().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HardwareInventory from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HardwareInventory if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the HardwareInventory. + */ + public static HardwareInventory fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HardwareInventory deserializedHardwareInventory = new HardwareInventory(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("additionalHostInformation".equals(fieldName)) { + deserializedHardwareInventory.additionalHostInformation = reader.getString(); + } else if ("interfaces".equals(fieldName)) { + List interfaces + = reader.readArray(reader1 -> HardwareInventoryNetworkInterface.fromJson(reader1)); + deserializedHardwareInventory.interfaces = interfaces; + } else if ("nics".equals(fieldName)) { + List nics = reader.readArray(reader1 -> Nic.fromJson(reader1)); + deserializedHardwareInventory.nics = nics; + } else { + reader.skipChildren(); + } + } + + return deserializedHardwareInventory; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventoryNetworkInterface.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventoryNetworkInterface.java index 9a8a222bb5113..684fe29ef1368 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventoryNetworkInterface.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareInventoryNetworkInterface.java @@ -5,43 +5,47 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** HardwareInventoryNetworkInterface represents the network interface details as part of a hardware inventory. */ +/** + * HardwareInventoryNetworkInterface represents the network interface details as part of a hardware inventory. + */ @Immutable -public final class HardwareInventoryNetworkInterface { +public final class HardwareInventoryNetworkInterface implements JsonSerializable { /* * The current status of the link. */ - @JsonProperty(value = "linkStatus", access = JsonProperty.Access.WRITE_ONLY) private String linkStatus; /* * The MAC address associated with this interface. */ - @JsonProperty(value = "macAddress", access = JsonProperty.Access.WRITE_ONLY) private String macAddress; /* * The name of the interface. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The resource ID of the network interface for the port on the switch that this machine's interface is connected * to. */ - @JsonProperty(value = "networkInterfaceId", access = JsonProperty.Access.WRITE_ONLY) private String networkInterfaceId; - /** Creates an instance of HardwareInventoryNetworkInterface class. */ + /** + * Creates an instance of HardwareInventoryNetworkInterface class. + */ public HardwareInventoryNetworkInterface() { } /** * Get the linkStatus property: The current status of the link. - * + * * @return the linkStatus value. */ public String linkStatus() { @@ -50,7 +54,7 @@ public String linkStatus() { /** * Get the macAddress property: The MAC address associated with this interface. - * + * * @return the macAddress value. */ public String macAddress() { @@ -59,7 +63,7 @@ public String macAddress() { /** * Get the name property: The name of the interface. - * + * * @return the name value. */ public String name() { @@ -69,7 +73,7 @@ public String name() { /** * Get the networkInterfaceId property: The resource ID of the network interface for the port on the switch that * this machine's interface is connected to. - * + * * @return the networkInterfaceId value. */ public String networkInterfaceId() { @@ -78,9 +82,51 @@ public String networkInterfaceId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HardwareInventoryNetworkInterface from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HardwareInventoryNetworkInterface if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the HardwareInventoryNetworkInterface. + */ + public static HardwareInventoryNetworkInterface fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HardwareInventoryNetworkInterface deserializedHardwareInventoryNetworkInterface + = new HardwareInventoryNetworkInterface(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("linkStatus".equals(fieldName)) { + deserializedHardwareInventoryNetworkInterface.linkStatus = reader.getString(); + } else if ("macAddress".equals(fieldName)) { + deserializedHardwareInventoryNetworkInterface.macAddress = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedHardwareInventoryNetworkInterface.name = reader.getString(); + } else if ("networkInterfaceId".equals(fieldName)) { + deserializedHardwareInventoryNetworkInterface.networkInterfaceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHardwareInventoryNetworkInterface; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareValidationStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareValidationStatus.java index 1a2670e7727cb..97f4b5b611f00 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareValidationStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HardwareValidationStatus.java @@ -5,31 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.time.OffsetDateTime; -/** HardwareValidationStatus represents the latest hardware validation details performed for this bare metal machine. */ +/** + * HardwareValidationStatus represents the latest hardware validation details performed for this bare metal machine. + */ @Immutable -public final class HardwareValidationStatus { +public final class HardwareValidationStatus implements JsonSerializable { /* * The timestamp of the hardware validation execution. */ - @JsonProperty(value = "lastValidationTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastValidationTime; /* * The outcome of the hardware validation. */ - @JsonProperty(value = "result", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineHardwareValidationResult result; - /** Creates an instance of HardwareValidationStatus class. */ + /** + * Creates an instance of HardwareValidationStatus class. + */ public HardwareValidationStatus() { } /** * Get the lastValidationTime property: The timestamp of the hardware validation execution. - * + * * @return the lastValidationTime value. */ public OffsetDateTime lastValidationTime() { @@ -38,7 +45,7 @@ public OffsetDateTime lastValidationTime() { /** * Get the result property: The outcome of the hardware validation. - * + * * @return the result value. */ public BareMetalMachineHardwareValidationResult result() { @@ -47,9 +54,48 @@ public BareMetalMachineHardwareValidationResult result() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HardwareValidationStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HardwareValidationStatus if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the HardwareValidationStatus. + */ + public static HardwareValidationStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HardwareValidationStatus deserializedHardwareValidationStatus = new HardwareValidationStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("lastValidationTime".equals(fieldName)) { + deserializedHardwareValidationStatus.lastValidationTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("result".equals(fieldName)) { + deserializedHardwareValidationStatus.result + = BareMetalMachineHardwareValidationResult.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedHardwareValidationStatus; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HugepagesSize.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HugepagesSize.java index 6555c5af30d2e..e604f900f53c4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HugepagesSize.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HugepagesSize.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The size of the hugepages to allocate. */ +/** + * The size of the hugepages to allocate. + */ public final class HugepagesSize extends ExpandableStringEnum { - /** Static value 2M for HugepagesSize. */ + /** + * Static value 2M for HugepagesSize. + */ public static final HugepagesSize TWOM = fromString("2M"); - /** Static value 1G for HugepagesSize. */ + /** + * Static value 1G for HugepagesSize. + */ public static final HugepagesSize ONEG = fromString("1G"); /** * Creates a new instance of HugepagesSize value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public HugepagesSize() { /** * Creates or finds a HugepagesSize from its string representation. - * + * * @param name a name to look for. * @return the corresponding HugepagesSize. */ - @JsonCreator public static HugepagesSize fromString(String name) { return fromString(name, HugepagesSize.class); } /** * Gets known HugepagesSize values. - * + * * @return known HugepagesSize values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksIpamEnabled.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksIpamEnabled.java index 7634a579d3479..5abaa42078a96 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksIpamEnabled.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksIpamEnabled.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -14,15 +13,19 @@ * AKS Cluster. */ public final class HybridAksIpamEnabled extends ExpandableStringEnum { - /** Static value True for HybridAksIpamEnabled. */ + /** + * Static value True for HybridAksIpamEnabled. + */ public static final HybridAksIpamEnabled TRUE = fromString("True"); - /** Static value False for HybridAksIpamEnabled. */ + /** + * Static value False for HybridAksIpamEnabled. + */ public static final HybridAksIpamEnabled FALSE = fromString("False"); /** * Creates a new instance of HybridAksIpamEnabled value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -31,18 +34,17 @@ public HybridAksIpamEnabled() { /** * Creates or finds a HybridAksIpamEnabled from its string representation. - * + * * @param name a name to look for. * @return the corresponding HybridAksIpamEnabled. */ - @JsonCreator public static HybridAksIpamEnabled fromString(String name) { return fromString(name, HybridAksIpamEnabled.class); } /** * Gets known HybridAksIpamEnabled values. - * + * * @return known HybridAksIpamEnabled values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksPluginType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksPluginType.java index b2ce6f775932f..66ea2feb9d5c9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksPluginType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/HybridAksPluginType.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -13,18 +12,24 @@ * network plugin type for Hybrid AKS. */ public final class HybridAksPluginType extends ExpandableStringEnum { - /** Static value DPDK for HybridAksPluginType. */ + /** + * Static value DPDK for HybridAksPluginType. + */ public static final HybridAksPluginType DPDK = fromString("DPDK"); - /** Static value SRIOV for HybridAksPluginType. */ + /** + * Static value SRIOV for HybridAksPluginType. + */ public static final HybridAksPluginType SRIOV = fromString("SRIOV"); - /** Static value OSDevice for HybridAksPluginType. */ + /** + * Static value OSDevice for HybridAksPluginType. + */ public static final HybridAksPluginType OSDEVICE = fromString("OSDevice"); /** * Creates a new instance of HybridAksPluginType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,18 +38,17 @@ public HybridAksPluginType() { /** * Creates or finds a HybridAksPluginType from its string representation. - * + * * @param name a name to look for. * @return the corresponding HybridAksPluginType. */ - @JsonCreator public static HybridAksPluginType fromString(String name) { return fromString(name, HybridAksPluginType.class); } /** * Gets known HybridAksPluginType values. - * + * * @return known HybridAksPluginType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IdentitySelector.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IdentitySelector.java new file mode 100644 index 0000000000000..c13bb1d4f4c48 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IdentitySelector.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * IdentitySelector represents the selection of a managed identity for use. + */ +@Fluent +public final class IdentitySelector implements JsonSerializable { + /* + * The type of managed identity that is being selected. + */ + private ManagedServiceIdentitySelectorType identityType; + + /* + * The user assigned managed identity resource ID to use. Mutually exclusive with a system assigned identity type. + */ + private String userAssignedIdentityResourceId; + + /** + * Creates an instance of IdentitySelector class. + */ + public IdentitySelector() { + } + + /** + * Get the identityType property: The type of managed identity that is being selected. + * + * @return the identityType value. + */ + public ManagedServiceIdentitySelectorType identityType() { + return this.identityType; + } + + /** + * Set the identityType property: The type of managed identity that is being selected. + * + * @param identityType the identityType value to set. + * @return the IdentitySelector object itself. + */ + public IdentitySelector withIdentityType(ManagedServiceIdentitySelectorType identityType) { + this.identityType = identityType; + return this; + } + + /** + * Get the userAssignedIdentityResourceId property: The user assigned managed identity resource ID to use. Mutually + * exclusive with a system assigned identity type. + * + * @return the userAssignedIdentityResourceId value. + */ + public String userAssignedIdentityResourceId() { + return this.userAssignedIdentityResourceId; + } + + /** + * Set the userAssignedIdentityResourceId property: The user assigned managed identity resource ID to use. Mutually + * exclusive with a system assigned identity type. + * + * @param userAssignedIdentityResourceId the userAssignedIdentityResourceId value to set. + * @return the IdentitySelector object itself. + */ + public IdentitySelector withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId) { + this.userAssignedIdentityResourceId = userAssignedIdentityResourceId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("identityType", this.identityType == null ? null : this.identityType.toString()); + jsonWriter.writeStringField("userAssignedIdentityResourceId", this.userAssignedIdentityResourceId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IdentitySelector from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IdentitySelector if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the IdentitySelector. + */ + public static IdentitySelector fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IdentitySelector deserializedIdentitySelector = new IdentitySelector(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("identityType".equals(fieldName)) { + deserializedIdentitySelector.identityType + = ManagedServiceIdentitySelectorType.fromString(reader.getString()); + } else if ("userAssignedIdentityResourceId".equals(fieldName)) { + deserializedIdentitySelector.userAssignedIdentityResourceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedIdentitySelector; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ImageRepositoryCredentials.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ImageRepositoryCredentials.java index e26374235693f..7e0c5b4e171b0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ImageRepositoryCredentials.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ImageRepositoryCredentials.java @@ -6,36 +6,41 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** ImageRepositoryCredentials represents the credentials used to login to the image repository. */ +/** + * ImageRepositoryCredentials represents the credentials used to login to the image repository. + */ @Fluent -public final class ImageRepositoryCredentials { +public final class ImageRepositoryCredentials implements JsonSerializable { /* * The password or token used to access an image in the target repository. */ - @JsonProperty(value = "password") private String password; /* * The URL of the authentication server used to validate the repository credentials. */ - @JsonProperty(value = "registryUrl", required = true) private String registryUrl; /* * The username used to access an image in the target repository. */ - @JsonProperty(value = "username", required = true) private String username; - /** Creates an instance of ImageRepositoryCredentials class. */ + /** + * Creates an instance of ImageRepositoryCredentials class. + */ public ImageRepositoryCredentials() { } /** * Get the password property: The password or token used to access an image in the target repository. - * + * * @return the password value. */ public String password() { @@ -44,7 +49,7 @@ public String password() { /** * Set the password property: The password or token used to access an image in the target repository. - * + * * @param password the password value to set. * @return the ImageRepositoryCredentials object itself. */ @@ -55,7 +60,7 @@ public ImageRepositoryCredentials withPassword(String password) { /** * Get the registryUrl property: The URL of the authentication server used to validate the repository credentials. - * + * * @return the registryUrl value. */ public String registryUrl() { @@ -64,7 +69,7 @@ public String registryUrl() { /** * Set the registryUrl property: The URL of the authentication server used to validate the repository credentials. - * + * * @param registryUrl the registryUrl value to set. * @return the ImageRepositoryCredentials object itself. */ @@ -75,7 +80,7 @@ public ImageRepositoryCredentials withRegistryUrl(String registryUrl) { /** * Get the username property: The username used to access an image in the target repository. - * + * * @return the username value. */ public String username() { @@ -84,7 +89,7 @@ public String username() { /** * Set the username property: The username used to access an image in the target repository. - * + * * @param username the username value to set. * @return the ImageRepositoryCredentials object itself. */ @@ -95,23 +100,69 @@ public ImageRepositoryCredentials withUsername(String username) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (password() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property password in model ImageRepositoryCredentials")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property password in model ImageRepositoryCredentials")); } if (registryUrl() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property registryUrl in model ImageRepositoryCredentials")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property registryUrl in model ImageRepositoryCredentials")); } if (username() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property username in model ImageRepositoryCredentials")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property username in model ImageRepositoryCredentials")); } } private static final ClientLogger LOGGER = new ClientLogger(ImageRepositoryCredentials.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("password", this.password); + jsonWriter.writeStringField("registryUrl", this.registryUrl); + jsonWriter.writeStringField("username", this.username); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ImageRepositoryCredentials from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ImageRepositoryCredentials if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ImageRepositoryCredentials. + */ + public static ImageRepositoryCredentials fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ImageRepositoryCredentials deserializedImageRepositoryCredentials = new ImageRepositoryCredentials(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("password".equals(fieldName)) { + deserializedImageRepositoryCredentials.password = reader.getString(); + } else if ("registryUrl".equals(fieldName)) { + deserializedImageRepositoryCredentials.registryUrl = reader.getString(); + } else if ("username".equals(fieldName)) { + deserializedImageRepositoryCredentials.username = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedImageRepositoryCredentials; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/InitialAgentPoolConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/InitialAgentPoolConfiguration.java index c4300510ca508..da3b1f9878ccc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/InitialAgentPoolConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/InitialAgentPoolConfiguration.java @@ -6,7 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -14,50 +18,37 @@ * with a Kubernetes cluster. */ @Fluent -public final class InitialAgentPoolConfiguration { +public final class InitialAgentPoolConfiguration implements JsonSerializable { /* - * AdministratorConfiguration represents the administrative credentials that will be applied to the control plane - * and agent pool nodes in Kubernetes clusters. - * * The administrator credentials to be used for the nodes in this agent pool. */ - @JsonProperty(value = "administratorConfiguration") private AdministratorConfiguration administratorConfiguration; /* - * AgentOptions are configurations that will be applied to each agent in an agent pool. - * * The configurations that will be applied to each agent in this agent pool. */ - @JsonProperty(value = "agentOptions") private AgentOptions agentOptions; /* - * AttachedNetworkConfiguration represents the set of workload networks to attach to a resource. - * * The configuration of networks being attached to the agent pool for use by the workloads that run on this * Kubernetes cluster. */ - @JsonProperty(value = "attachedNetworkConfiguration") private AttachedNetworkConfiguration attachedNetworkConfiguration; /* * The list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent * pool. If not specified, all availability zones will be used. */ - @JsonProperty(value = "availabilityZones") private List availabilityZones; /* * The number of virtual machines that use this configuration. */ - @JsonProperty(value = "count", required = true) private long count; /* * The labels applied to the nodes in this agent pool. */ - @JsonProperty(value = "labels") private List labels; /* @@ -65,45 +56,38 @@ public final class InitialAgentPoolConfiguration { * features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. * Every Kubernetes cluster must contain at least one system node pool with at least one node. */ - @JsonProperty(value = "mode", required = true) private AgentPoolMode mode; /* * The name that will be used for the agent pool resource representing this agent pool. */ - @JsonProperty(value = "name", required = true) private String name; /* * The taints applied to the nodes in this agent pool. */ - @JsonProperty(value = "taints") private List taints; /* - * AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * * The configuration of the agent pool. */ - @JsonProperty(value = "upgradeSettings") private AgentPoolUpgradeSettings upgradeSettings; /* * The name of the VM SKU that determines the size of resources allocated for node VMs. */ - @JsonProperty(value = "vmSkuName", required = true) private String vmSkuName; - /** Creates an instance of InitialAgentPoolConfiguration class. */ + /** + * Creates an instance of InitialAgentPoolConfiguration class. + */ public InitialAgentPoolConfiguration() { } /** - * Get the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool. - * + * Get the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent + * pool. + * * @return the administratorConfiguration value. */ public AdministratorConfiguration administratorConfiguration() { @@ -111,11 +95,9 @@ public AdministratorConfiguration administratorConfiguration() { } /** - * Set the administratorConfiguration property: AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrator credentials to be used for the nodes in this agent pool. - * + * Set the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent + * pool. + * * @param administratorConfiguration the administratorConfiguration value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -126,11 +108,8 @@ public AdministratorConfiguration administratorConfiguration() { } /** - * Get the agentOptions property: AgentOptions are configurations that will be applied to each agent in an agent - * pool. - * - *

The configurations that will be applied to each agent in this agent pool. - * + * Get the agentOptions property: The configurations that will be applied to each agent in this agent pool. + * * @return the agentOptions value. */ public AgentOptions agentOptions() { @@ -138,11 +117,8 @@ public AgentOptions agentOptions() { } /** - * Set the agentOptions property: AgentOptions are configurations that will be applied to each agent in an agent - * pool. - * - *

The configurations that will be applied to each agent in this agent pool. - * + * Set the agentOptions property: The configurations that will be applied to each agent in this agent pool. + * * @param agentOptions the agentOptions value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -152,12 +128,9 @@ public InitialAgentPoolConfiguration withAgentOptions(AgentOptions agentOptions) } /** - * Get the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on this - * Kubernetes cluster. - * + * Get the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for + * use by the workloads that run on this Kubernetes cluster. + * * @return the attachedNetworkConfiguration value. */ public AttachedNetworkConfiguration attachedNetworkConfiguration() { @@ -165,12 +138,9 @@ public AttachedNetworkConfiguration attachedNetworkConfiguration() { } /** - * Set the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the agent pool for use by the workloads that run on this - * Kubernetes cluster. - * + * Set the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for + * use by the workloads that run on this Kubernetes cluster. + * * @param attachedNetworkConfiguration the attachedNetworkConfiguration value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -183,7 +153,7 @@ public AttachedNetworkConfiguration attachedNetworkConfiguration() { /** * Get the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. - * + * * @return the availabilityZones value. */ public List availabilityZones() { @@ -193,7 +163,7 @@ public List availabilityZones() { /** * Set the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the * provisioning of nodes in this agent pool. If not specified, all availability zones will be used. - * + * * @param availabilityZones the availabilityZones value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -204,7 +174,7 @@ public InitialAgentPoolConfiguration withAvailabilityZones(List availabi /** * Get the count property: The number of virtual machines that use this configuration. - * + * * @return the count value. */ public long count() { @@ -213,7 +183,7 @@ public long count() { /** * Set the count property: The number of virtual machines that use this configuration. - * + * * @param count the count value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -224,7 +194,7 @@ public InitialAgentPoolConfiguration withCount(long count) { /** * Get the labels property: The labels applied to the nodes in this agent pool. - * + * * @return the labels value. */ public List labels() { @@ -233,7 +203,7 @@ public List labels() { /** * Set the labels property: The labels applied to the nodes in this agent pool. - * + * * @param labels the labels value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -246,7 +216,7 @@ public InitialAgentPoolConfiguration withLabels(List labels) { * Get the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. * System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to * user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. - * + * * @return the mode value. */ public AgentPoolMode mode() { @@ -257,7 +227,7 @@ public AgentPoolMode mode() { * Set the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. * System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to * user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. - * + * * @param mode the mode value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -268,7 +238,7 @@ public InitialAgentPoolConfiguration withMode(AgentPoolMode mode) { /** * Get the name property: The name that will be used for the agent pool resource representing this agent pool. - * + * * @return the name value. */ public String name() { @@ -277,7 +247,7 @@ public String name() { /** * Set the name property: The name that will be used for the agent pool resource representing this agent pool. - * + * * @param name the name value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -288,7 +258,7 @@ public InitialAgentPoolConfiguration withName(String name) { /** * Get the taints property: The taints applied to the nodes in this agent pool. - * + * * @return the taints value. */ public List taints() { @@ -297,7 +267,7 @@ public List taints() { /** * Set the taints property: The taints applied to the nodes in this agent pool. - * + * * @param taints the taints value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -307,10 +277,8 @@ public InitialAgentPoolConfiguration withTaints(List taints) { } /** - * Get the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Get the upgradeSettings property: The configuration of the agent pool. + * * @return the upgradeSettings value. */ public AgentPoolUpgradeSettings upgradeSettings() { @@ -318,10 +286,8 @@ public AgentPoolUpgradeSettings upgradeSettings() { } /** - * Set the upgradeSettings property: AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. - * - *

The configuration of the agent pool. - * + * Set the upgradeSettings property: The configuration of the agent pool. + * * @param upgradeSettings the upgradeSettings value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -332,7 +298,7 @@ public InitialAgentPoolConfiguration withUpgradeSettings(AgentPoolUpgradeSetting /** * Get the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs. - * + * * @return the vmSkuName value. */ public String vmSkuName() { @@ -341,7 +307,7 @@ public String vmSkuName() { /** * Set the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs. - * + * * @param vmSkuName the vmSkuName value to set. * @return the InitialAgentPoolConfiguration object itself. */ @@ -352,7 +318,7 @@ public InitialAgentPoolConfiguration withVmSkuName(String vmSkuName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -369,12 +335,14 @@ public void validate() { labels().forEach(e -> e.validate()); } if (mode() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property mode in model InitialAgentPoolConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property mode in model InitialAgentPoolConfiguration")); } if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model InitialAgentPoolConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model InitialAgentPoolConfiguration")); } if (taints() != null) { taints().forEach(e -> e.validate()); @@ -383,10 +351,86 @@ public void validate() { upgradeSettings().validate(); } if (vmSkuName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property vmSkuName in model InitialAgentPoolConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property vmSkuName in model InitialAgentPoolConfiguration")); } } private static final ClientLogger LOGGER = new ClientLogger(InitialAgentPoolConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("count", this.count); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("vmSkuName", this.vmSkuName); + jsonWriter.writeJsonField("administratorConfiguration", this.administratorConfiguration); + jsonWriter.writeJsonField("agentOptions", this.agentOptions); + jsonWriter.writeJsonField("attachedNetworkConfiguration", this.attachedNetworkConfiguration); + jsonWriter.writeArrayField("availabilityZones", this.availabilityZones, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("labels", this.labels, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("taints", this.taints, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("upgradeSettings", this.upgradeSettings); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InitialAgentPoolConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InitialAgentPoolConfiguration if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the InitialAgentPoolConfiguration. + */ + public static InitialAgentPoolConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InitialAgentPoolConfiguration deserializedInitialAgentPoolConfiguration + = new InitialAgentPoolConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("count".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.count = reader.getLong(); + } else if ("mode".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.mode = AgentPoolMode.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.name = reader.getString(); + } else if ("vmSkuName".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.vmSkuName = reader.getString(); + } else if ("administratorConfiguration".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.administratorConfiguration + = AdministratorConfiguration.fromJson(reader); + } else if ("agentOptions".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.agentOptions = AgentOptions.fromJson(reader); + } else if ("attachedNetworkConfiguration".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.attachedNetworkConfiguration + = AttachedNetworkConfiguration.fromJson(reader); + } else if ("availabilityZones".equals(fieldName)) { + List availabilityZones = reader.readArray(reader1 -> reader1.getString()); + deserializedInitialAgentPoolConfiguration.availabilityZones = availabilityZones; + } else if ("labels".equals(fieldName)) { + List labels = reader.readArray(reader1 -> KubernetesLabel.fromJson(reader1)); + deserializedInitialAgentPoolConfiguration.labels = labels; + } else if ("taints".equals(fieldName)) { + List taints = reader.readArray(reader1 -> KubernetesLabel.fromJson(reader1)); + deserializedInitialAgentPoolConfiguration.taints = taints; + } else if ("upgradeSettings".equals(fieldName)) { + deserializedInitialAgentPoolConfiguration.upgradeSettings + = AgentPoolUpgradeSettings.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedInitialAgentPoolConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAddressPool.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAddressPool.java index bc75a5f867fde..93b5dff147c7f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAddressPool.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAddressPool.java @@ -6,46 +6,52 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** IpAddressPool represents a pool of IP addresses that can be allocated to a service. */ +/** + * IpAddressPool represents a pool of IP addresses that can be allocated to a service. + */ @Fluent -public final class IpAddressPool { +public final class IpAddressPool implements JsonSerializable { /* * The list of IP address ranges. Each range can be a either a subnet in CIDR format or an explicit start-end range - * of IP addresses. + * of IP addresses. For a BGP service load balancer configuration, only CIDR format is supported and excludes /32 + * (IPv4) and /128 (IPv6) prefixes. */ - @JsonProperty(value = "addresses", required = true) private List addresses; /* * The indicator to determine if automatic allocation from the pool should occur. */ - @JsonProperty(value = "autoAssign") private BfdEnabled autoAssign; /* * The name used to identify this IP address pool for association with a BGP advertisement. */ - @JsonProperty(value = "name", required = true) private String name; /* - * The indicator to prevent the use of IP addresses ending with .0 and .255 for this pool. Enabling this option - * will only use IP addresses between .1 and .254 inclusive. + * The indicator to prevent the use of IP addresses ending with .0 and .255 for this pool. Enabling this option will + * only use IP addresses between .1 and .254 inclusive. */ - @JsonProperty(value = "onlyUseHostIps") private BfdEnabled onlyUseHostIps; - /** Creates an instance of IpAddressPool class. */ + /** + * Creates an instance of IpAddressPool class. + */ public IpAddressPool() { } /** * Get the addresses property: The list of IP address ranges. Each range can be a either a subnet in CIDR format or - * an explicit start-end range of IP addresses. - * + * an explicit start-end range of IP addresses. For a BGP service load balancer configuration, only CIDR format is + * supported and excludes /32 (IPv4) and /128 (IPv6) prefixes. + * * @return the addresses value. */ public List addresses() { @@ -54,8 +60,9 @@ public List addresses() { /** * Set the addresses property: The list of IP address ranges. Each range can be a either a subnet in CIDR format or - * an explicit start-end range of IP addresses. - * + * an explicit start-end range of IP addresses. For a BGP service load balancer configuration, only CIDR format is + * supported and excludes /32 (IPv4) and /128 (IPv6) prefixes. + * * @param addresses the addresses value to set. * @return the IpAddressPool object itself. */ @@ -66,7 +73,7 @@ public IpAddressPool withAddresses(List addresses) { /** * Get the autoAssign property: The indicator to determine if automatic allocation from the pool should occur. - * + * * @return the autoAssign value. */ public BfdEnabled autoAssign() { @@ -75,7 +82,7 @@ public BfdEnabled autoAssign() { /** * Set the autoAssign property: The indicator to determine if automatic allocation from the pool should occur. - * + * * @param autoAssign the autoAssign value to set. * @return the IpAddressPool object itself. */ @@ -86,7 +93,7 @@ public IpAddressPool withAutoAssign(BfdEnabled autoAssign) { /** * Get the name property: The name used to identify this IP address pool for association with a BGP advertisement. - * + * * @return the name value. */ public String name() { @@ -95,7 +102,7 @@ public String name() { /** * Set the name property: The name used to identify this IP address pool for association with a BGP advertisement. - * + * * @param name the name value to set. * @return the IpAddressPool object itself. */ @@ -107,7 +114,7 @@ public IpAddressPool withName(String name) { /** * Get the onlyUseHostIps property: The indicator to prevent the use of IP addresses ending with .0 and .255 for * this pool. Enabling this option will only use IP addresses between .1 and .254 inclusive. - * + * * @return the onlyUseHostIps value. */ public BfdEnabled onlyUseHostIps() { @@ -117,7 +124,7 @@ public BfdEnabled onlyUseHostIps() { /** * Set the onlyUseHostIps property: The indicator to prevent the use of IP addresses ending with .0 and .255 for * this pool. Enabling this option will only use IP addresses between .1 and .254 inclusive. - * + * * @param onlyUseHostIps the onlyUseHostIps value to set. * @return the IpAddressPool object itself. */ @@ -128,19 +135,67 @@ public IpAddressPool withOnlyUseHostIps(BfdEnabled onlyUseHostIps) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (addresses() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property addresses in model IpAddressPool")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property addresses in model IpAddressPool")); } if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model IpAddressPool")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model IpAddressPool")); } } private static final ClientLogger LOGGER = new ClientLogger(IpAddressPool.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("addresses", this.addresses, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("autoAssign", this.autoAssign == null ? null : this.autoAssign.toString()); + jsonWriter.writeStringField("onlyUseHostIps", + this.onlyUseHostIps == null ? null : this.onlyUseHostIps.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IpAddressPool from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IpAddressPool if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the IpAddressPool. + */ + public static IpAddressPool fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IpAddressPool deserializedIpAddressPool = new IpAddressPool(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("addresses".equals(fieldName)) { + List addresses = reader.readArray(reader1 -> reader1.getString()); + deserializedIpAddressPool.addresses = addresses; + } else if ("name".equals(fieldName)) { + deserializedIpAddressPool.name = reader.getString(); + } else if ("autoAssign".equals(fieldName)) { + deserializedIpAddressPool.autoAssign = BfdEnabled.fromString(reader.getString()); + } else if ("onlyUseHostIps".equals(fieldName)) { + deserializedIpAddressPool.onlyUseHostIps = BfdEnabled.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedIpAddressPool; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAllocationType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAllocationType.java index 5a8e2f2280ffa..d3f4ede6d789b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAllocationType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/IpAllocationType.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of the IP address allocation, defaulted to "DualStack". */ +/** + * The type of the IP address allocation, defaulted to "DualStack". + */ public final class IpAllocationType extends ExpandableStringEnum { - /** Static value IPV4 for IpAllocationType. */ + /** + * Static value IPV4 for IpAllocationType. + */ public static final IpAllocationType IPV4 = fromString("IPV4"); - /** Static value IPV6 for IpAllocationType. */ + /** + * Static value IPV6 for IpAllocationType. + */ public static final IpAllocationType IPV6 = fromString("IPV6"); - /** Static value DualStack for IpAllocationType. */ + /** + * Static value DualStack for IpAllocationType. + */ public static final IpAllocationType DUAL_STACK = fromString("DualStack"); /** * Creates a new instance of IpAllocationType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public IpAllocationType() { /** * Creates or finds a IpAllocationType from its string representation. - * + * * @param name a name to look for. * @return the corresponding IpAllocationType. */ - @JsonCreator public static IpAllocationType fromString(String name) { return fromString(name, IpAllocationType.class); } /** * Gets known IpAllocationType values. - * + * * @return known IpAllocationType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUser.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUser.java index c31532176a4aa..5e0dfdf092bfc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUser.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUser.java @@ -6,39 +6,47 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** KeySetUser represents the properties of the user in the key set. */ +/** + * KeySetUser represents the properties of the user in the key set. + */ @Fluent -public final class KeySetUser { +public final class KeySetUser implements JsonSerializable { /* * The user name that will be used for access. */ - @JsonProperty(value = "azureUserName", required = true) private String azureUsername; /* * The free-form description for this user. */ - @JsonProperty(value = "description") private String description; /* - * SshPublicKey represents the public key used to authenticate with a resource through SSH. - * * The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH * private key for logging in. */ - @JsonProperty(value = "sshPublicKey", required = true) private SshPublicKey sshPublicKey; - /** Creates an instance of KeySetUser class. */ + /* + * The user principal name (email format) used to validate this user's group membership. + */ + private String userPrincipalName; + + /** + * Creates an instance of KeySetUser class. + */ public KeySetUser() { } /** * Get the azureUsername property: The user name that will be used for access. - * + * * @return the azureUsername value. */ public String azureUsername() { @@ -47,7 +55,7 @@ public String azureUsername() { /** * Set the azureUsername property: The user name that will be used for access. - * + * * @param azureUsername the azureUsername value to set. * @return the KeySetUser object itself. */ @@ -58,7 +66,7 @@ public KeySetUser withAzureUsername(String azureUsername) { /** * Get the description property: The free-form description for this user. - * + * * @return the description value. */ public String description() { @@ -67,7 +75,7 @@ public String description() { /** * Set the description property: The free-form description for this user. - * + * * @param description the description value to set. * @return the KeySetUser object itself. */ @@ -77,12 +85,9 @@ public KeySetUser withDescription(String description) { } /** - * Get the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Get the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @return the sshPublicKey value. */ public SshPublicKey sshPublicKey() { @@ -90,12 +95,9 @@ public SshPublicKey sshPublicKey() { } /** - * Set the sshPublicKey property: SshPublicKey represents the public key used to authenticate with a resource - * through SSH. - * - *

The SSH public key that will be provisioned for user access. The user is expected to have the corresponding - * SSH private key for logging in. - * + * Set the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected + * to have the corresponding SSH private key for logging in. + * * @param sshPublicKey the sshPublicKey value to set. * @return the KeySetUser object itself. */ @@ -104,23 +106,91 @@ public KeySetUser withSshPublicKey(SshPublicKey sshPublicKey) { return this; } + /** + * Get the userPrincipalName property: The user principal name (email format) used to validate this user's group + * membership. + * + * @return the userPrincipalName value. + */ + public String userPrincipalName() { + return this.userPrincipalName; + } + + /** + * Set the userPrincipalName property: The user principal name (email format) used to validate this user's group + * membership. + * + * @param userPrincipalName the userPrincipalName value to set. + * @return the KeySetUser object itself. + */ + public KeySetUser withUserPrincipalName(String userPrincipalName) { + this.userPrincipalName = userPrincipalName; + return this; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (azureUsername() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property azureUsername in model KeySetUser")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property azureUsername in model KeySetUser")); } if (sshPublicKey() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property sshPublicKey in model KeySetUser")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property sshPublicKey in model KeySetUser")); } else { sshPublicKey().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(KeySetUser.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("azureUserName", this.azureUsername); + jsonWriter.writeJsonField("sshPublicKey", this.sshPublicKey); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeStringField("userPrincipalName", this.userPrincipalName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KeySetUser from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KeySetUser if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KeySetUser. + */ + public static KeySetUser fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KeySetUser deserializedKeySetUser = new KeySetUser(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("azureUserName".equals(fieldName)) { + deserializedKeySetUser.azureUsername = reader.getString(); + } else if ("sshPublicKey".equals(fieldName)) { + deserializedKeySetUser.sshPublicKey = SshPublicKey.fromJson(reader); + } else if ("description".equals(fieldName)) { + deserializedKeySetUser.description = reader.getString(); + } else if ("userPrincipalName".equals(fieldName)) { + deserializedKeySetUser.userPrincipalName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKeySetUser; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUserStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUserStatus.java index 912afa3ce470c..1e3aede8d3c80 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUserStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KeySetUserStatus.java @@ -5,36 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** KeySetUserStatus represents the status of the key set user. */ +/** + * KeySetUserStatus represents the status of the key set user. + */ @Immutable -public final class KeySetUserStatus { +public final class KeySetUserStatus implements JsonSerializable { /* * The user name that will be used for access. */ - @JsonProperty(value = "azureUserName", access = JsonProperty.Access.WRITE_ONLY) private String azureUsername; /* * The indicator of whether the user is currently deployed for access. */ - @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private BareMetalMachineKeySetUserSetupStatus status; /* * The additional information describing the current status of this user, if any available. */ - @JsonProperty(value = "statusMessage", access = JsonProperty.Access.WRITE_ONLY) private String statusMessage; - /** Creates an instance of KeySetUserStatus class. */ + /** + * Creates an instance of KeySetUserStatus class. + */ public KeySetUserStatus() { } /** * Get the azureUsername property: The user name that will be used for access. - * + * * @return the azureUsername value. */ public String azureUsername() { @@ -43,7 +48,7 @@ public String azureUsername() { /** * Get the status property: The indicator of whether the user is currently deployed for access. - * + * * @return the status value. */ public BareMetalMachineKeySetUserSetupStatus status() { @@ -53,7 +58,7 @@ public BareMetalMachineKeySetUserSetupStatus status() { /** * Get the statusMessage property: The additional information describing the current status of this user, if any * available. - * + * * @return the statusMessage value. */ public String statusMessage() { @@ -62,9 +67,49 @@ public String statusMessage() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KeySetUserStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KeySetUserStatus if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the KeySetUserStatus. + */ + public static KeySetUserStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KeySetUserStatus deserializedKeySetUserStatus = new KeySetUserStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("azureUserName".equals(fieldName)) { + deserializedKeySetUserStatus.azureUsername = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedKeySetUserStatus.status + = BareMetalMachineKeySetUserSetupStatus.fromString(reader.getString()); + } else if ("statusMessage".equals(fieldName)) { + deserializedKeySetUserStatus.statusMessage = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKeySetUserStatus; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesCluster.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesCluster.java index 88bfd6f831309..4543051015f36 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesCluster.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesCluster.java @@ -11,77 +11,70 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of KubernetesCluster. */ +/** + * An immutable client-side representation of KubernetesCluster. + */ public interface KubernetesCluster { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** - * Gets the aadConfiguration property: AadConfiguration represents the Azure Active Directory Integration - * properties. - * - *

The Azure Active Directory Integration properties. - * + * Gets the aadConfiguration property: The Azure Active Directory Integration properties. + * * @return the aadConfiguration value. */ AadConfiguration aadConfiguration(); /** - * Gets the administratorConfiguration property: AdministratorConfiguration represents the administrative - * credentials that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - * - *

The administrative credentials that will be applied to the control plane and agent pool nodes that do not - * specify their own values. - * + * Gets the administratorConfiguration property: The administrative credentials that will be applied to the control + * plane and agent pool nodes that do not specify their own values. + * * @return the administratorConfiguration value. */ AdministratorConfiguration administratorConfiguration(); @@ -89,21 +82,21 @@ public interface KubernetesCluster { /** * Gets the attachedNetworkIds property: The full list of network resource IDs that are attached to this cluster, * including those attached only to specific agent pools. - * + * * @return the attachedNetworkIds value. */ List attachedNetworkIds(); /** * Gets the availableUpgrades property: The list of versions that this Kubernetes cluster can be upgraded to. - * + * * @return the availableUpgrades value. */ List availableUpgrades(); /** * Gets the clusterId property: The resource ID of the Network Cloud cluster. - * + * * @return the clusterId value. */ String clusterId(); @@ -111,45 +104,43 @@ public interface KubernetesCluster { /** * Gets the connectedClusterId property: The resource ID of the connected cluster set up when this Kubernetes * cluster is created. - * + * * @return the connectedClusterId value. */ String connectedClusterId(); /** * Gets the controlPlaneKubernetesVersion property: The current running version of Kubernetes on the control plane. - * + * * @return the controlPlaneKubernetesVersion value. */ String controlPlaneKubernetesVersion(); /** - * Gets the controlPlaneNodeConfiguration property: ControlPlaneNodeConfiguration represents the selection of - * virtual machines and size of the control plane for a Kubernetes cluster. - * - *

The defining characteristics of the control plane for this Kubernetes Cluster. - * + * Gets the controlPlaneNodeConfiguration property: The defining characteristics of the control plane for this + * Kubernetes Cluster. + * * @return the controlPlaneNodeConfiguration value. */ ControlPlaneNodeConfiguration controlPlaneNodeConfiguration(); /** * Gets the detailedStatus property: The current status of the Kubernetes cluster. - * + * * @return the detailedStatus value. */ KubernetesClusterDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** * Gets the featureStatuses property: The current feature settings. - * + * * @return the featureStatuses value. */ List featureStatuses(); @@ -159,100 +150,102 @@ public interface KubernetesCluster { * for running critical system services and workloads. This data in this field is only used during creation, and the * field will be empty following the creation of the Kubernetes Cluster. After creation, the management of agent * pools is done using the agentPools sub-resource. - * + * * @return the initialAgentPoolConfigurations value. */ List initialAgentPoolConfigurations(); /** - * Gets the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Gets the kubernetesVersion property: The Kubernetes version for this cluster. + * * @return the kubernetesVersion value. */ String kubernetesVersion(); /** - * Gets the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents the - * configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource. - * + * Gets the managedResourceGroupConfiguration property: The configuration of the managed resource group associated + * with the resource. + * * @return the managedResourceGroupConfiguration value. */ ManagedResourceGroupConfiguration managedResourceGroupConfiguration(); /** - * Gets the networkConfiguration property: NetworkConfiguration specifies the Kubernetes cluster network related - * configuration. - * - *

The configuration of the Kubernetes cluster networking, including the attachment of networks that span the - * cluster. - * + * Gets the networkConfiguration property: The configuration of the Kubernetes cluster networking, including the + * attachment of networks that span the cluster. + * * @return the networkConfiguration value. */ NetworkConfiguration networkConfiguration(); /** * Gets the nodes property: The details of the nodes in this cluster. - * + * * @return the nodes value. */ List nodes(); /** * Gets the provisioningState property: The provisioning state of the Kubernetes cluster resource. - * + * * @return the provisioningState value. */ KubernetesClusterProvisioningState provisioningState(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterInner object. - * + * * @return the inner object. */ KubernetesClusterInner innerModel(); - /** The entirety of the KubernetesCluster definition. */ + /** + * The entirety of the KubernetesCluster definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithControlPlaneNodeConfiguration, DefinitionStages.WithInitialAgentPoolConfigurations, DefinitionStages.WithKubernetesVersion, DefinitionStages.WithNetworkConfiguration, DefinitionStages.WithCreate { } - /** The KubernetesCluster definition stages. */ + /** + * The KubernetesCluster definition stages. + */ interface DefinitionStages { - /** The first stage of the KubernetesCluster definition. */ + /** + * The first stage of the KubernetesCluster definition. + */ interface Blank extends WithLocation { } - /** The stage of the KubernetesCluster definition allowing to specify location. */ + /** + * The stage of the KubernetesCluster definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -260,102 +253,99 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the KubernetesCluster definition allowing to specify parent resource. */ + /** + * The stage of the KubernetesCluster definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the KubernetesCluster definition allowing to specify extendedLocation. */ + /** + * The stage of the KubernetesCluster definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithControlPlaneNodeConfiguration withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the KubernetesCluster definition allowing to specify controlPlaneNodeConfiguration. */ + /** + * The stage of the KubernetesCluster definition allowing to specify controlPlaneNodeConfiguration. + */ interface WithControlPlaneNodeConfiguration { /** - * Specifies the controlPlaneNodeConfiguration property: ControlPlaneNodeConfiguration represents the - * selection of virtual machines and size of the control plane for a Kubernetes cluster. - * - *

The defining characteristics of the control plane for this Kubernetes Cluster.. - * - * @param controlPlaneNodeConfiguration ControlPlaneNodeConfiguration represents the selection of virtual - * machines and size of the control plane for a Kubernetes cluster. - *

The defining characteristics of the control plane for this Kubernetes Cluster. + * Specifies the controlPlaneNodeConfiguration property: The defining characteristics of the control plane + * for this Kubernetes Cluster.. + * + * @param controlPlaneNodeConfiguration The defining characteristics of the control plane for this + * Kubernetes Cluster. * @return the next definition stage. */ WithInitialAgentPoolConfigurations withControlPlaneNodeConfiguration(ControlPlaneNodeConfiguration controlPlaneNodeConfiguration); } - /** The stage of the KubernetesCluster definition allowing to specify initialAgentPoolConfigurations. */ + /** + * The stage of the KubernetesCluster definition allowing to specify initialAgentPoolConfigurations. + */ interface WithInitialAgentPoolConfigurations { /** * Specifies the initialAgentPoolConfigurations property: The agent pools that are created with this * Kubernetes cluster for running critical system services and workloads. This data in this field is only * used during creation, and the field will be empty following the creation of the Kubernetes Cluster. After * creation, the management of agent pools is done using the agentPools sub-resource.. - * + * * @param initialAgentPoolConfigurations The agent pools that are created with this Kubernetes cluster for - * running critical system services and workloads. This data in this field is only used during creation, - * and the field will be empty following the creation of the Kubernetes Cluster. After creation, the - * management of agent pools is done using the agentPools sub-resource. + * running critical system services and workloads. This data in this field is only used during creation, and + * the field will be empty following the creation of the Kubernetes Cluster. After creation, the management + * of agent pools is done using the agentPools sub-resource. * @return the next definition stage. */ WithKubernetesVersion withInitialAgentPoolConfigurations(List initialAgentPoolConfigurations); } - /** The stage of the KubernetesCluster definition allowing to specify kubernetesVersion. */ + /** + * The stage of the KubernetesCluster definition allowing to specify kubernetesVersion. + */ interface WithKubernetesVersion { /** - * Specifies the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, - * and n.n.n-n format. The interpreted version used will be resolved into this field after creation or - * update.. - * - * @param kubernetesVersion The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. - * The interpreted version used will be resolved into this field after creation or update. + * Specifies the kubernetesVersion property: The Kubernetes version for this cluster.. + * + * @param kubernetesVersion The Kubernetes version for this cluster. * @return the next definition stage. */ WithNetworkConfiguration withKubernetesVersion(String kubernetesVersion); } - /** The stage of the KubernetesCluster definition allowing to specify networkConfiguration. */ + /** + * The stage of the KubernetesCluster definition allowing to specify networkConfiguration. + */ interface WithNetworkConfiguration { /** - * Specifies the networkConfiguration property: NetworkConfiguration specifies the Kubernetes cluster - * network related configuration. - * - *

The configuration of the Kubernetes cluster networking, including the attachment of networks that span - * the cluster.. - * - * @param networkConfiguration NetworkConfiguration specifies the Kubernetes cluster network related - * configuration. - *

The configuration of the Kubernetes cluster networking, including the attachment of networks that - * span the cluster. + * Specifies the networkConfiguration property: The configuration of the Kubernetes cluster networking, + * including the attachment of networks that span the cluster.. + * + * @param networkConfiguration The configuration of the Kubernetes cluster networking, including the + * attachment of networks that span the cluster. * @return the next definition stage. */ WithCreate withNetworkConfiguration(NetworkConfiguration networkConfiguration); @@ -369,76 +359,71 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithAad DefinitionStages.WithAdministratorConfiguration, DefinitionStages.WithManagedResourceGroupConfiguration { /** * Executes the create request. - * + * * @return the created resource. */ KubernetesCluster create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ KubernetesCluster create(Context context); } - /** The stage of the KubernetesCluster definition allowing to specify tags. */ + /** + * The stage of the KubernetesCluster definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the KubernetesCluster definition allowing to specify aadConfiguration. */ + /** + * The stage of the KubernetesCluster definition allowing to specify aadConfiguration. + */ interface WithAadConfiguration { /** - * Specifies the aadConfiguration property: AadConfiguration represents the Azure Active Directory - * Integration properties. - * - *

The Azure Active Directory Integration properties.. - * - * @param aadConfiguration AadConfiguration represents the Azure Active Directory Integration properties. - *

The Azure Active Directory Integration properties. + * Specifies the aadConfiguration property: The Azure Active Directory Integration properties.. + * + * @param aadConfiguration The Azure Active Directory Integration properties. * @return the next definition stage. */ WithCreate withAadConfiguration(AadConfiguration aadConfiguration); } - /** The stage of the KubernetesCluster definition allowing to specify administratorConfiguration. */ + /** + * The stage of the KubernetesCluster definition allowing to specify administratorConfiguration. + */ interface WithAdministratorConfiguration { /** - * Specifies the administratorConfiguration property: AdministratorConfiguration represents the - * administrative credentials that will be applied to the control plane and agent pool nodes in Kubernetes - * clusters. - * - *

The administrative credentials that will be applied to the control plane and agent pool nodes that do - * not specify their own values.. - * - * @param administratorConfiguration AdministratorConfiguration represents the administrative credentials - * that will be applied to the control plane and agent pool nodes in Kubernetes clusters. - *

The administrative credentials that will be applied to the control plane and agent pool nodes that - * do not specify their own values. + * Specifies the administratorConfiguration property: The administrative credentials that will be applied to + * the control plane and agent pool nodes that do not specify their own values.. + * + * @param administratorConfiguration The administrative credentials that will be applied to the control + * plane and agent pool nodes that do not specify their own values. * @return the next definition stage. */ WithCreate withAdministratorConfiguration(AdministratorConfiguration administratorConfiguration); } - /** The stage of the KubernetesCluster definition allowing to specify managedResourceGroupConfiguration. */ + /** + * The stage of the KubernetesCluster definition allowing to specify managedResourceGroupConfiguration. + */ interface WithManagedResourceGroupConfiguration { /** - * Specifies the managedResourceGroupConfiguration property: ManagedResourceGroupConfiguration represents - * the configuration of the resource group managed by Azure. - * - *

The configuration of the managed resource group associated with the resource.. - * - * @param managedResourceGroupConfiguration ManagedResourceGroupConfiguration represents the configuration - * of the resource group managed by Azure. - *

The configuration of the managed resource group associated with the resource. + * Specifies the managedResourceGroupConfiguration property: The configuration of the managed resource group + * associated with the resource.. + * + * @param managedResourceGroupConfiguration The configuration of the managed resource group associated with + * the resource. * @return the next definition stage. */ WithCreate withManagedResourceGroupConfiguration( @@ -448,68 +433,86 @@ WithCreate withManagedResourceGroupConfiguration( /** * Begins update for the KubernetesCluster resource. - * + * * @return the stage of resource update. */ KubernetesCluster.Update update(); - /** The template for KubernetesCluster update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithControlPlaneNodeConfiguration, - UpdateStages.WithKubernetesVersion { + /** + * The template for KubernetesCluster update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithAdministratorConfiguration, + UpdateStages.WithControlPlaneNodeConfiguration, UpdateStages.WithKubernetesVersion { /** * Executes the update request. - * + * * @return the updated resource. */ KubernetesCluster apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ KubernetesCluster apply(Context context); } - /** The KubernetesCluster update stages. */ + /** + * The KubernetesCluster update stages. + */ interface UpdateStages { - /** The stage of the KubernetesCluster update allowing to specify tags. */ + /** + * The stage of the KubernetesCluster update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the KubernetesCluster update allowing to specify controlPlaneNodeConfiguration. */ + /** + * The stage of the KubernetesCluster update allowing to specify administratorConfiguration. + */ + interface WithAdministratorConfiguration { + /** + * Specifies the administratorConfiguration property: The configuration of the default administrator + * credentials.. + * + * @param administratorConfiguration The configuration of the default administrator credentials. + * @return the next definition stage. + */ + Update withAdministratorConfiguration(AdministratorConfigurationPatch administratorConfiguration); + } + + /** + * The stage of the KubernetesCluster update allowing to specify controlPlaneNodeConfiguration. + */ interface WithControlPlaneNodeConfiguration { /** - * Specifies the controlPlaneNodeConfiguration property: ControlPlaneNodePatchConfiguration represents the - * properties of the control plane that can be patched for this Kubernetes cluster. - * - *

The defining characteristics of the control plane that can be patched for this Kubernetes cluster.. - * - * @param controlPlaneNodeConfiguration ControlPlaneNodePatchConfiguration represents the properties of the - * control plane that can be patched for this Kubernetes cluster. - *

The defining characteristics of the control plane that can be patched for this Kubernetes cluster. + * Specifies the controlPlaneNodeConfiguration property: The defining characteristics of the control plane + * that can be patched for this Kubernetes cluster.. + * + * @param controlPlaneNodeConfiguration The defining characteristics of the control plane that can be + * patched for this Kubernetes cluster. * @return the next definition stage. */ Update withControlPlaneNodeConfiguration(ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration); } - /** The stage of the KubernetesCluster update allowing to specify kubernetesVersion. */ + /** + * The stage of the KubernetesCluster update allowing to specify kubernetesVersion. + */ interface WithKubernetesVersion { /** - * Specifies the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, - * and n.n.n-n format. The interpreted version used will be resolved into this field after creation or - * update.. - * - * @param kubernetesVersion The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. - * The interpreted version used will be resolved into this field after creation or update. + * Specifies the kubernetesVersion property: The Kubernetes version for this cluster.. + * + * @param kubernetesVersion The Kubernetes version for this cluster. * @return the next definition stage. */ Update withKubernetesVersion(String kubernetesVersion); @@ -518,14 +521,14 @@ interface WithKubernetesVersion { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ KubernetesCluster refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -533,9 +536,9 @@ interface WithKubernetesVersion { /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param kubernetesClusterRestartNodeParameters The request body. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -546,9 +549,9 @@ interface WithKubernetesVersion { /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param kubernetesClusterRestartNodeParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterDetailedStatus.java index 819f152d07f58..3314cb63dde9a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The current status of the Kubernetes cluster. */ +/** + * The current status of the Kubernetes cluster. + */ public final class KubernetesClusterDetailedStatus extends ExpandableStringEnum { - /** Static value Available for KubernetesClusterDetailedStatus. */ + /** + * Static value Available for KubernetesClusterDetailedStatus. + */ public static final KubernetesClusterDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Error for KubernetesClusterDetailedStatus. */ + /** + * Static value Error for KubernetesClusterDetailedStatus. + */ public static final KubernetesClusterDetailedStatus ERROR = fromString("Error"); - /** Static value Provisioning for KubernetesClusterDetailedStatus. */ + /** + * Static value Provisioning for KubernetesClusterDetailedStatus. + */ public static final KubernetesClusterDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of KubernetesClusterDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public KubernetesClusterDetailedStatus() { /** * Creates or finds a KubernetesClusterDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding KubernetesClusterDetailedStatus. */ - @JsonCreator public static KubernetesClusterDetailedStatus fromString(String name) { return fromString(name, KubernetesClusterDetailedStatus.class); } /** * Gets known KubernetesClusterDetailedStatus values. - * + * * @return known KubernetesClusterDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeature.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeature.java new file mode 100644 index 0000000000000..48d00994385f4 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeature.java @@ -0,0 +1,310 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeatureInner; +import java.util.List; +import java.util.Map; + +/** + * An immutable client-side representation of KubernetesClusterFeature. + */ +public interface KubernetesClusterFeature { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the availabilityLifecycle property: The lifecycle indicator of the feature. + * + * @return the availabilityLifecycle value. + */ + KubernetesClusterFeatureAvailabilityLifecycle availabilityLifecycle(); + + /** + * Gets the detailedStatus property: The detailed status of the feature. + * + * @return the detailedStatus value. + */ + KubernetesClusterFeatureDetailedStatus detailedStatus(); + + /** + * Gets the detailedStatusMessage property: The descriptive message for the detailed status of the feature. + * + * @return the detailedStatusMessage value. + */ + String detailedStatusMessage(); + + /** + * Gets the options property: The configured options for the feature. + * + * @return the options value. + */ + List options(); + + /** + * Gets the provisioningState property: The provisioning state of the Kubernetes cluster feature. + * + * @return the provisioningState value. + */ + KubernetesClusterFeatureProvisioningState provisioningState(); + + /** + * Gets the required property: The indicator of if the feature is required or optional. Optional features may be + * deleted by the user, while required features are managed with the kubernetes cluster lifecycle. + * + * @return the required value. + */ + KubernetesClusterFeatureRequired required(); + + /** + * Gets the version property: The version of the feature. + * + * @return the version value. + */ + String version(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeatureInner object. + * + * @return the inner object. + */ + KubernetesClusterFeatureInner innerModel(); + + /** + * The entirety of the KubernetesClusterFeature definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The KubernetesClusterFeature definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the KubernetesClusterFeature definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the KubernetesClusterFeature definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(String location); + } + + /** + * The stage of the KubernetesClusterFeature definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, kubernetesClusterName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @return the next definition stage. + */ + WithCreate withExistingKubernetesCluster(String resourceGroupName, String kubernetesClusterName); + } + + /** + * The stage of the KubernetesClusterFeature definition which contains all the minimum required properties for + * the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithOptions { + /** + * Executes the create request. + * + * @return the created resource. + */ + KubernetesClusterFeature create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + KubernetesClusterFeature create(Context context); + } + + /** + * The stage of the KubernetesClusterFeature definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the KubernetesClusterFeature definition allowing to specify options. + */ + interface WithOptions { + /** + * Specifies the options property: The configured options for the feature.. + * + * @param options The configured options for the feature. + * @return the next definition stage. + */ + WithCreate withOptions(List options); + } + } + + /** + * Begins update for the KubernetesClusterFeature resource. + * + * @return the stage of resource update. + */ + KubernetesClusterFeature.Update update(); + + /** + * The template for KubernetesClusterFeature update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithOptions { + /** + * Executes the update request. + * + * @return the updated resource. + */ + KubernetesClusterFeature apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + KubernetesClusterFeature apply(Context context); + } + + /** + * The KubernetesClusterFeature update stages. + */ + interface UpdateStages { + /** + * The stage of the KubernetesClusterFeature update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: The Azure resource tags that will replace the existing ones.. + * + * @param tags The Azure resource tags that will replace the existing ones. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the KubernetesClusterFeature update allowing to specify options. + */ + interface WithOptions { + /** + * Specifies the options property: The configured options for the feature.. + * + * @param options The configured options for the feature. + * @return the next definition stage. + */ + Update withOptions(List options); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + KubernetesClusterFeature refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + KubernetesClusterFeature refresh(Context context); +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureAvailabilityLifecycle.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureAvailabilityLifecycle.java new file mode 100644 index 0000000000000..3af42a5ff0d15 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureAvailabilityLifecycle.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The lifecycle indicator of the feature. + */ +public final class KubernetesClusterFeatureAvailabilityLifecycle + extends ExpandableStringEnum { + /** + * Static value Preview for KubernetesClusterFeatureAvailabilityLifecycle. + */ + public static final KubernetesClusterFeatureAvailabilityLifecycle PREVIEW = fromString("Preview"); + + /** + * Static value GenerallyAvailable for KubernetesClusterFeatureAvailabilityLifecycle. + */ + public static final KubernetesClusterFeatureAvailabilityLifecycle GENERALLY_AVAILABLE + = fromString("GenerallyAvailable"); + + /** + * Creates a new instance of KubernetesClusterFeatureAvailabilityLifecycle value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KubernetesClusterFeatureAvailabilityLifecycle() { + } + + /** + * Creates or finds a KubernetesClusterFeatureAvailabilityLifecycle from its string representation. + * + * @param name a name to look for. + * @return the corresponding KubernetesClusterFeatureAvailabilityLifecycle. + */ + public static KubernetesClusterFeatureAvailabilityLifecycle fromString(String name) { + return fromString(name, KubernetesClusterFeatureAvailabilityLifecycle.class); + } + + /** + * Gets known KubernetesClusterFeatureAvailabilityLifecycle values. + * + * @return known KubernetesClusterFeatureAvailabilityLifecycle values. + */ + public static Collection values() { + return values(KubernetesClusterFeatureAvailabilityLifecycle.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureDetailedStatus.java new file mode 100644 index 0000000000000..5a3127576a6bb --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureDetailedStatus.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The detailed status of the feature. + */ +public final class KubernetesClusterFeatureDetailedStatus + extends ExpandableStringEnum { + /** + * Static value Error for KubernetesClusterFeatureDetailedStatus. + */ + public static final KubernetesClusterFeatureDetailedStatus ERROR = fromString("Error"); + + /** + * Static value Provisioning for KubernetesClusterFeatureDetailedStatus. + */ + public static final KubernetesClusterFeatureDetailedStatus PROVISIONING = fromString("Provisioning"); + + /** + * Static value Installed for KubernetesClusterFeatureDetailedStatus. + */ + public static final KubernetesClusterFeatureDetailedStatus INSTALLED = fromString("Installed"); + + /** + * Creates a new instance of KubernetesClusterFeatureDetailedStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KubernetesClusterFeatureDetailedStatus() { + } + + /** + * Creates or finds a KubernetesClusterFeatureDetailedStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding KubernetesClusterFeatureDetailedStatus. + */ + public static KubernetesClusterFeatureDetailedStatus fromString(String name) { + return fromString(name, KubernetesClusterFeatureDetailedStatus.class); + } + + /** + * Gets known KubernetesClusterFeatureDetailedStatus values. + * + * @return known KubernetesClusterFeatureDetailedStatus values. + */ + public static Collection values() { + return values(KubernetesClusterFeatureDetailedStatus.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureList.java new file mode 100644 index 0000000000000..51e02a5a3aa58 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureList.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeatureInner; +import java.io.IOException; +import java.util.List; + +/** + * KubernetesClusterFeatureList represents the list of Kubernetes cluster feature resources. + */ +@Fluent +public final class KubernetesClusterFeatureList implements JsonSerializable { + /* + * The link used to get the next page of operations. + */ + private String nextLink; + + /* + * The list of Kubernetes cluster features. + */ + private List value; + + /** + * Creates an instance of KubernetesClusterFeatureList class. + */ + public KubernetesClusterFeatureList() { + } + + /** + * Get the nextLink property: The link used to get the next page of operations. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of operations. + * + * @param nextLink the nextLink value to set. + * @return the KubernetesClusterFeatureList object itself. + */ + public KubernetesClusterFeatureList withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of Kubernetes cluster features. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of Kubernetes cluster features. + * + * @param value the value value to set. + * @return the KubernetesClusterFeatureList object itself. + */ + public KubernetesClusterFeatureList withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterFeatureList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterFeatureList if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterFeatureList. + */ + public static KubernetesClusterFeatureList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterFeatureList deserializedKubernetesClusterFeatureList = new KubernetesClusterFeatureList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedKubernetesClusterFeatureList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> KubernetesClusterFeatureInner.fromJson(reader1)); + deserializedKubernetesClusterFeatureList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterFeatureList; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeaturePatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeaturePatchParameters.java new file mode 100644 index 0000000000000..a65a7312ce4a4 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeaturePatchParameters.java @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterFeaturePatchProperties; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * KubernetesClusterFeaturePatchParameters represents the body of the request to patch the Kubernetes cluster feature. + */ +@Fluent +public final class KubernetesClusterFeaturePatchParameters + implements JsonSerializable { + /* + * The list of the resource properties. + */ + private KubernetesClusterFeaturePatchProperties innerProperties; + + /* + * The Azure resource tags that will replace the existing ones. + */ + private Map tags; + + /** + * Creates an instance of KubernetesClusterFeaturePatchParameters class. + */ + public KubernetesClusterFeaturePatchParameters() { + } + + /** + * Get the innerProperties property: The list of the resource properties. + * + * @return the innerProperties value. + */ + private KubernetesClusterFeaturePatchProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the tags property: The Azure resource tags that will replace the existing ones. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: The Azure resource tags that will replace the existing ones. + * + * @param tags the tags value to set. + * @return the KubernetesClusterFeaturePatchParameters object itself. + */ + public KubernetesClusterFeaturePatchParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the options property: The configured options for the feature. + * + * @return the options value. + */ + public List options() { + return this.innerProperties() == null ? null : this.innerProperties().options(); + } + + /** + * Set the options property: The configured options for the feature. + * + * @param options the options value to set. + * @return the KubernetesClusterFeaturePatchParameters object itself. + */ + public KubernetesClusterFeaturePatchParameters withOptions(List options) { + if (this.innerProperties() == null) { + this.innerProperties = new KubernetesClusterFeaturePatchProperties(); + } + this.innerProperties().withOptions(options); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterFeaturePatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterFeaturePatchParameters if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterFeaturePatchParameters. + */ + public static KubernetesClusterFeaturePatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterFeaturePatchParameters deserializedKubernetesClusterFeaturePatchParameters + = new KubernetesClusterFeaturePatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedKubernetesClusterFeaturePatchParameters.innerProperties + = KubernetesClusterFeaturePatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedKubernetesClusterFeaturePatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterFeaturePatchParameters; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureProvisioningState.java new file mode 100644 index 0000000000000..58b14e5f91e7a --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureProvisioningState.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The provisioning state of the Kubernetes cluster feature. + */ +public final class KubernetesClusterFeatureProvisioningState + extends ExpandableStringEnum { + /** + * Static value Accepted for KubernetesClusterFeatureProvisioningState. + */ + public static final KubernetesClusterFeatureProvisioningState ACCEPTED = fromString("Accepted"); + + /** + * Static value Canceled for KubernetesClusterFeatureProvisioningState. + */ + public static final KubernetesClusterFeatureProvisioningState CANCELED = fromString("Canceled"); + + /** + * Static value Deleting for KubernetesClusterFeatureProvisioningState. + */ + public static final KubernetesClusterFeatureProvisioningState DELETING = fromString("Deleting"); + + /** + * Static value Failed for KubernetesClusterFeatureProvisioningState. + */ + public static final KubernetesClusterFeatureProvisioningState FAILED = fromString("Failed"); + + /** + * Static value Succeeded for KubernetesClusterFeatureProvisioningState. + */ + public static final KubernetesClusterFeatureProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Static value Updating for KubernetesClusterFeatureProvisioningState. + */ + public static final KubernetesClusterFeatureProvisioningState UPDATING = fromString("Updating"); + + /** + * Creates a new instance of KubernetesClusterFeatureProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KubernetesClusterFeatureProvisioningState() { + } + + /** + * Creates or finds a KubernetesClusterFeatureProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding KubernetesClusterFeatureProvisioningState. + */ + public static KubernetesClusterFeatureProvisioningState fromString(String name) { + return fromString(name, KubernetesClusterFeatureProvisioningState.class); + } + + /** + * Gets known KubernetesClusterFeatureProvisioningState values. + * + * @return known KubernetesClusterFeatureProvisioningState values. + */ + public static Collection values() { + return values(KubernetesClusterFeatureProvisioningState.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureRequired.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureRequired.java new file mode 100644 index 0000000000000..52af99c5d56d6 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatureRequired.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The indicator of if the feature is required or optional. Optional features may be deleted by the user, while required + * features are managed with the kubernetes cluster lifecycle. + */ +public final class KubernetesClusterFeatureRequired extends ExpandableStringEnum { + /** + * Static value True for KubernetesClusterFeatureRequired. + */ + public static final KubernetesClusterFeatureRequired TRUE = fromString("True"); + + /** + * Static value False for KubernetesClusterFeatureRequired. + */ + public static final KubernetesClusterFeatureRequired FALSE = fromString("False"); + + /** + * Creates a new instance of KubernetesClusterFeatureRequired value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KubernetesClusterFeatureRequired() { + } + + /** + * Creates or finds a KubernetesClusterFeatureRequired from its string representation. + * + * @param name a name to look for. + * @return the corresponding KubernetesClusterFeatureRequired. + */ + public static KubernetesClusterFeatureRequired fromString(String name) { + return fromString(name, KubernetesClusterFeatureRequired.class); + } + + /** + * Gets known KubernetesClusterFeatureRequired values. + * + * @return known KubernetesClusterFeatureRequired values. + */ + public static Collection values() { + return values(KubernetesClusterFeatureRequired.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatures.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatures.java new file mode 100644 index 0000000000000..f0c210a2a7b42 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterFeatures.java @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of KubernetesClusterFeatures. + */ +public interface KubernetesClusterFeatures { + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedIterable}. + */ + PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName); + + /** + * List features for the Kubernetes cluster. + * + * Get a list of features for the provided Kubernetes cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of features for the provided Kubernetes cluster as paginated response with {@link PagedIterable}. + */ + PagedIterable listByKubernetesCluster(String resourceGroupName, + String kubernetesClusterName, Context context); + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String kubernetesClusterName, + String featureName, Context context); + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature. + */ + KubernetesClusterFeature get(String resourceGroupName, String kubernetesClusterName, String featureName); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String featureName); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, String featureName, + Context context); + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature along with {@link Response}. + */ + KubernetesClusterFeature getById(String id); + + /** + * Retrieve the Kubernetes cluster feature. + * + * Get properties of the provided the Kubernetes cluster feature. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return properties of the provided the Kubernetes cluster feature along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult deleteById(String id); + + /** + * Delete the Kubernetes cluster feature. + * + * Delete the provided Kubernetes cluster feature. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. + */ + OperationStatusResult deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new KubernetesClusterFeature resource. + * + * @param name resource name. + * @return the first stage of the new KubernetesClusterFeature definition. + */ + KubernetesClusterFeature.DefinitionStages.Blank define(String name); +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterList.java index fa736f7428ded..3430adb0fbe2b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** KubernetesClusterList represents a list of Kubernetes clusters. */ +/** + * KubernetesClusterList represents a list of Kubernetes clusters. + */ @Fluent -public final class KubernetesClusterList { +public final class KubernetesClusterList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of additional details related to Kubernetes clusters. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of KubernetesClusterList class. */ + /** + * Creates an instance of KubernetesClusterList class. + */ public KubernetesClusterList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the KubernetesClusterList object itself. */ @@ -50,7 +56,7 @@ public KubernetesClusterList withNextLink(String nextLink) { /** * Get the value property: The list of additional details related to Kubernetes clusters. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of additional details related to Kubernetes clusters. - * + * * @param value the value value to set. * @return the KubernetesClusterList object itself. */ @@ -70,7 +76,7 @@ public KubernetesClusterList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterList if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterList. + */ + public static KubernetesClusterList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterList deserializedKubernetesClusterList = new KubernetesClusterList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedKubernetesClusterList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> KubernetesClusterInner.fromJson(reader1)); + deserializedKubernetesClusterList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNode.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNode.java index 9a57f626d65c6..e3c5ab4ae9e85 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNode.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNode.java @@ -5,129 +5,120 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** KubernetesClusterNode represents the details of a node in a Kubernetes cluster. */ +/** + * KubernetesClusterNode represents the details of a node in a Kubernetes cluster. + */ @Immutable -public final class KubernetesClusterNode { +public final class KubernetesClusterNode implements JsonSerializable { /* * The resource ID of the agent pool that this node belongs to. This value is not represented on control plane * nodes. */ - @JsonProperty(value = "agentPoolId", access = JsonProperty.Access.WRITE_ONLY) private String agentPoolId; /* * The availability zone this node is running within. */ - @JsonProperty(value = "availabilityZone", access = JsonProperty.Access.WRITE_ONLY) private String availabilityZone; /* * The resource ID of the bare metal machine that hosts this node. */ - @JsonProperty(value = "bareMetalMachineId", access = JsonProperty.Access.WRITE_ONLY) private String bareMetalMachineId; /* * The number of CPU cores configured for this node, derived from the VM SKU specified. */ - @JsonProperty(value = "cpuCores", access = JsonProperty.Access.WRITE_ONLY) private Long cpuCores; /* * The detailed state of this node. */ - @JsonProperty(value = "detailedStatus", access = JsonProperty.Access.WRITE_ONLY) private KubernetesClusterNodeDetailedStatus detailedStatus; /* * The descriptive message about the current detailed status. */ - @JsonProperty(value = "detailedStatusMessage", access = JsonProperty.Access.WRITE_ONLY) private String detailedStatusMessage; /* - * The size of the disk configured for this node. + * The size of the disk configured for this node. Allocations are measured in gibibytes. */ - @JsonProperty(value = "diskSizeGB", access = JsonProperty.Access.WRITE_ONLY) private Long diskSizeGB; /* * The machine image used to deploy this node. */ - @JsonProperty(value = "image", access = JsonProperty.Access.WRITE_ONLY) private String image; /* * The currently running version of Kubernetes and bundled features running on this node. */ - @JsonProperty(value = "kubernetesVersion", access = JsonProperty.Access.WRITE_ONLY) private String kubernetesVersion; /* * The list of labels on this node that have been assigned to the agent pool containing this node. */ - @JsonProperty(value = "labels", access = JsonProperty.Access.WRITE_ONLY) private List labels; /* - * The amount of memory configured for this node, derived from the vm SKU specified. + * The amount of memory configured for this node, derived from the vm SKU specified. Allocations are measured in + * gibibytes. */ - @JsonProperty(value = "memorySizeGB", access = JsonProperty.Access.WRITE_ONLY) private Long memorySizeGB; /* * The mode of the agent pool containing this node. Not applicable for control plane nodes. */ - @JsonProperty(value = "mode", access = JsonProperty.Access.WRITE_ONLY) private AgentPoolMode mode; /* * The name of this node, as realized in the Kubernetes cluster. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* * The NetworkAttachments made to this node. */ - @JsonProperty(value = "networkAttachments", access = JsonProperty.Access.WRITE_ONLY) private List networkAttachments; /* * The power state of this node. */ - @JsonProperty(value = "powerState", access = JsonProperty.Access.WRITE_ONLY) private KubernetesNodePowerState powerState; /* * The role of this node in the cluster. */ - @JsonProperty(value = "role", access = JsonProperty.Access.WRITE_ONLY) private KubernetesNodeRole role; /* * The list of taints that have been assigned to the agent pool containing this node. */ - @JsonProperty(value = "taints", access = JsonProperty.Access.WRITE_ONLY) private List taints; /* * The VM SKU name that was used to create this cluster node. */ - @JsonProperty(value = "vmSkuName", access = JsonProperty.Access.WRITE_ONLY) private String vmSkuName; - /** Creates an instance of KubernetesClusterNode class. */ + /** + * Creates an instance of KubernetesClusterNode class. + */ public KubernetesClusterNode() { } /** * Get the agentPoolId property: The resource ID of the agent pool that this node belongs to. This value is not * represented on control plane nodes. - * + * * @return the agentPoolId value. */ public String agentPoolId() { @@ -136,7 +127,7 @@ public String agentPoolId() { /** * Get the availabilityZone property: The availability zone this node is running within. - * + * * @return the availabilityZone value. */ public String availabilityZone() { @@ -145,7 +136,7 @@ public String availabilityZone() { /** * Get the bareMetalMachineId property: The resource ID of the bare metal machine that hosts this node. - * + * * @return the bareMetalMachineId value. */ public String bareMetalMachineId() { @@ -154,7 +145,7 @@ public String bareMetalMachineId() { /** * Get the cpuCores property: The number of CPU cores configured for this node, derived from the VM SKU specified. - * + * * @return the cpuCores value. */ public Long cpuCores() { @@ -163,7 +154,7 @@ public Long cpuCores() { /** * Get the detailedStatus property: The detailed state of this node. - * + * * @return the detailedStatus value. */ public KubernetesClusterNodeDetailedStatus detailedStatus() { @@ -172,7 +163,7 @@ public KubernetesClusterNodeDetailedStatus detailedStatus() { /** * Get the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ public String detailedStatusMessage() { @@ -180,8 +171,9 @@ public String detailedStatusMessage() { } /** - * Get the diskSizeGB property: The size of the disk configured for this node. - * + * Get the diskSizeGB property: The size of the disk configured for this node. Allocations are measured in + * gibibytes. + * * @return the diskSizeGB value. */ public Long diskSizeGB() { @@ -190,7 +182,7 @@ public Long diskSizeGB() { /** * Get the image property: The machine image used to deploy this node. - * + * * @return the image value. */ public String image() { @@ -200,7 +192,7 @@ public String image() { /** * Get the kubernetesVersion property: The currently running version of Kubernetes and bundled features running on * this node. - * + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -210,7 +202,7 @@ public String kubernetesVersion() { /** * Get the labels property: The list of labels on this node that have been assigned to the agent pool containing * this node. - * + * * @return the labels value. */ public List labels() { @@ -219,7 +211,8 @@ public List labels() { /** * Get the memorySizeGB property: The amount of memory configured for this node, derived from the vm SKU specified. - * + * Allocations are measured in gibibytes. + * * @return the memorySizeGB value. */ public Long memorySizeGB() { @@ -228,7 +221,7 @@ public Long memorySizeGB() { /** * Get the mode property: The mode of the agent pool containing this node. Not applicable for control plane nodes. - * + * * @return the mode value. */ public AgentPoolMode mode() { @@ -237,7 +230,7 @@ public AgentPoolMode mode() { /** * Get the name property: The name of this node, as realized in the Kubernetes cluster. - * + * * @return the name value. */ public String name() { @@ -246,7 +239,7 @@ public String name() { /** * Get the networkAttachments property: The NetworkAttachments made to this node. - * + * * @return the networkAttachments value. */ public List networkAttachments() { @@ -255,7 +248,7 @@ public List networkAttachments() { /** * Get the powerState property: The power state of this node. - * + * * @return the powerState value. */ public KubernetesNodePowerState powerState() { @@ -264,7 +257,7 @@ public KubernetesNodePowerState powerState() { /** * Get the role property: The role of this node in the cluster. - * + * * @return the role value. */ public KubernetesNodeRole role() { @@ -273,7 +266,7 @@ public KubernetesNodeRole role() { /** * Get the taints property: The list of taints that have been assigned to the agent pool containing this node. - * + * * @return the taints value. */ public List taints() { @@ -282,7 +275,7 @@ public List taints() { /** * Get the vmSkuName property: The VM SKU name that was used to create this cluster node. - * + * * @return the vmSkuName value. */ public String vmSkuName() { @@ -291,7 +284,7 @@ public String vmSkuName() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -305,4 +298,79 @@ public void validate() { taints().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterNode from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterNode if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterNode. + */ + public static KubernetesClusterNode fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterNode deserializedKubernetesClusterNode = new KubernetesClusterNode(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agentPoolId".equals(fieldName)) { + deserializedKubernetesClusterNode.agentPoolId = reader.getString(); + } else if ("availabilityZone".equals(fieldName)) { + deserializedKubernetesClusterNode.availabilityZone = reader.getString(); + } else if ("bareMetalMachineId".equals(fieldName)) { + deserializedKubernetesClusterNode.bareMetalMachineId = reader.getString(); + } else if ("cpuCores".equals(fieldName)) { + deserializedKubernetesClusterNode.cpuCores = reader.getNullable(JsonReader::getLong); + } else if ("detailedStatus".equals(fieldName)) { + deserializedKubernetesClusterNode.detailedStatus + = KubernetesClusterNodeDetailedStatus.fromString(reader.getString()); + } else if ("detailedStatusMessage".equals(fieldName)) { + deserializedKubernetesClusterNode.detailedStatusMessage = reader.getString(); + } else if ("diskSizeGB".equals(fieldName)) { + deserializedKubernetesClusterNode.diskSizeGB = reader.getNullable(JsonReader::getLong); + } else if ("image".equals(fieldName)) { + deserializedKubernetesClusterNode.image = reader.getString(); + } else if ("kubernetesVersion".equals(fieldName)) { + deserializedKubernetesClusterNode.kubernetesVersion = reader.getString(); + } else if ("labels".equals(fieldName)) { + List labels = reader.readArray(reader1 -> KubernetesLabel.fromJson(reader1)); + deserializedKubernetesClusterNode.labels = labels; + } else if ("memorySizeGB".equals(fieldName)) { + deserializedKubernetesClusterNode.memorySizeGB = reader.getNullable(JsonReader::getLong); + } else if ("mode".equals(fieldName)) { + deserializedKubernetesClusterNode.mode = AgentPoolMode.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedKubernetesClusterNode.name = reader.getString(); + } else if ("networkAttachments".equals(fieldName)) { + List networkAttachments + = reader.readArray(reader1 -> NetworkAttachment.fromJson(reader1)); + deserializedKubernetesClusterNode.networkAttachments = networkAttachments; + } else if ("powerState".equals(fieldName)) { + deserializedKubernetesClusterNode.powerState + = KubernetesNodePowerState.fromString(reader.getString()); + } else if ("role".equals(fieldName)) { + deserializedKubernetesClusterNode.role = KubernetesNodeRole.fromString(reader.getString()); + } else if ("taints".equals(fieldName)) { + List taints = reader.readArray(reader1 -> KubernetesLabel.fromJson(reader1)); + deserializedKubernetesClusterNode.taints = taints; + } else if ("vmSkuName".equals(fieldName)) { + deserializedKubernetesClusterNode.vmSkuName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterNode; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNodeDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNodeDetailedStatus.java index 8b14df0c4dc38..bfbd979ae038a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNodeDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterNodeDetailedStatus.java @@ -5,39 +5,56 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The detailed state of this node. */ +/** + * The detailed state of this node. + */ public final class KubernetesClusterNodeDetailedStatus extends ExpandableStringEnum { - /** Static value Available for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Available for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Error for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Error for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus ERROR = fromString("Error"); - /** Static value Provisioning for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Provisioning for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus PROVISIONING = fromString("Provisioning"); - /** Static value Running for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Running for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus RUNNING = fromString("Running"); - /** Static value Scheduling for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Scheduling for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus SCHEDULING = fromString("Scheduling"); - /** Static value Stopped for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Stopped for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus STOPPED = fromString("Stopped"); - /** Static value Terminating for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Terminating for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus TERMINATING = fromString("Terminating"); - /** Static value Unknown for KubernetesClusterNodeDetailedStatus. */ + /** + * Static value Unknown for KubernetesClusterNodeDetailedStatus. + */ public static final KubernetesClusterNodeDetailedStatus UNKNOWN = fromString("Unknown"); /** * Creates a new instance of KubernetesClusterNodeDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -46,18 +63,17 @@ public KubernetesClusterNodeDetailedStatus() { /** * Creates or finds a KubernetesClusterNodeDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding KubernetesClusterNodeDetailedStatus. */ - @JsonCreator public static KubernetesClusterNodeDetailedStatus fromString(String name) { return fromString(name, KubernetesClusterNodeDetailedStatus.class); } /** * Gets known KubernetesClusterNodeDetailedStatus values. - * + * * @return known KubernetesClusterNodeDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterPatchParameters.java index 9f92e32042e34..d94697c9ce249 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterPatchParameters.java @@ -5,39 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** KubernetesClusterPatchParameters represents the body of the request to patch the Hybrid AKS cluster. */ +/** + * KubernetesClusterPatchParameters represents the body of the request to patch the Hybrid AKS cluster. + */ @Fluent -public final class KubernetesClusterPatchParameters { +public final class KubernetesClusterPatchParameters implements JsonSerializable { /* - * KubernetesClusterPatchProperties represents the properties of the Kubernetes cluster that can be patched. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private KubernetesClusterPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of KubernetesClusterPatchParameters class. */ + /** + * Creates an instance of KubernetesClusterPatchParameters class. + */ public KubernetesClusterPatchParameters() { } /** - * Get the innerProperties property: KubernetesClusterPatchProperties represents the properties of the Kubernetes - * cluster that can be patched. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private KubernetesClusterPatchProperties innerProperties() { @@ -46,7 +45,7 @@ private KubernetesClusterPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -55,7 +54,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the KubernetesClusterPatchParameters object itself. */ @@ -65,11 +64,33 @@ public KubernetesClusterPatchParameters withTags(Map tags) { } /** - * Get the controlPlaneNodeConfiguration property: ControlPlaneNodePatchConfiguration represents the properties of - * the control plane that can be patched for this Kubernetes cluster. - * - *

The defining characteristics of the control plane that can be patched for this Kubernetes cluster. - * + * Get the administratorConfiguration property: The configuration of the default administrator credentials. + * + * @return the administratorConfiguration value. + */ + public AdministratorConfigurationPatch administratorConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().administratorConfiguration(); + } + + /** + * Set the administratorConfiguration property: The configuration of the default administrator credentials. + * + * @param administratorConfiguration the administratorConfiguration value to set. + * @return the KubernetesClusterPatchParameters object itself. + */ + public KubernetesClusterPatchParameters + withAdministratorConfiguration(AdministratorConfigurationPatch administratorConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new KubernetesClusterPatchProperties(); + } + this.innerProperties().withAdministratorConfiguration(administratorConfiguration); + return this; + } + + /** + * Get the controlPlaneNodeConfiguration property: The defining characteristics of the control plane that can be + * patched for this Kubernetes cluster. + * * @return the controlPlaneNodeConfiguration value. */ public ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration() { @@ -77,11 +98,9 @@ public ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration() { } /** - * Set the controlPlaneNodeConfiguration property: ControlPlaneNodePatchConfiguration represents the properties of - * the control plane that can be patched for this Kubernetes cluster. - * - *

The defining characteristics of the control plane that can be patched for this Kubernetes cluster. - * + * Set the controlPlaneNodeConfiguration property: The defining characteristics of the control plane that can be + * patched for this Kubernetes cluster. + * * @param controlPlaneNodeConfiguration the controlPlaneNodeConfiguration value to set. * @return the KubernetesClusterPatchParameters object itself. */ @@ -95,9 +114,8 @@ public ControlPlaneNodePatchConfiguration controlPlaneNodeConfiguration() { } /** - * Get the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Get the kubernetesVersion property: The Kubernetes version for this cluster. + * * @return the kubernetesVersion value. */ public String kubernetesVersion() { @@ -105,9 +123,8 @@ public String kubernetesVersion() { } /** - * Set the kubernetesVersion property: The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n - * format. The interpreted version used will be resolved into this field after creation or update. - * + * Set the kubernetesVersion property: The Kubernetes version for this cluster. + * * @param kubernetesVersion the kubernetesVersion value to set. * @return the KubernetesClusterPatchParameters object itself. */ @@ -121,7 +138,7 @@ public KubernetesClusterPatchParameters withKubernetesVersion(String kubernetesV /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -129,4 +146,46 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterPatchParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the KubernetesClusterPatchParameters. + */ + public static KubernetesClusterPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterPatchParameters deserializedKubernetesClusterPatchParameters + = new KubernetesClusterPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedKubernetesClusterPatchParameters.innerProperties + = KubernetesClusterPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedKubernetesClusterPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterProvisioningState.java index 14764c729c809..8171eda59820e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterProvisioningState.java @@ -5,38 +5,55 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the Kubernetes cluster resource. */ +/** + * The provisioning state of the Kubernetes cluster resource. + */ public final class KubernetesClusterProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for KubernetesClusterProvisioningState. */ + /** + * Static value Succeeded for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for KubernetesClusterProvisioningState. */ + /** + * Static value Failed for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for KubernetesClusterProvisioningState. */ + /** + * Static value Canceled for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState CANCELED = fromString("Canceled"); - /** Static value Accepted for KubernetesClusterProvisioningState. */ + /** + * Static value Accepted for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState ACCEPTED = fromString("Accepted"); - /** Static value InProgress for KubernetesClusterProvisioningState. */ + /** + * Static value InProgress for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState IN_PROGRESS = fromString("InProgress"); - /** Static value Created for KubernetesClusterProvisioningState. */ + /** + * Static value Created for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState CREATED = fromString("Created"); - /** Static value Updating for KubernetesClusterProvisioningState. */ + /** + * Static value Updating for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState UPDATING = fromString("Updating"); - /** Static value Deleting for KubernetesClusterProvisioningState. */ + /** + * Static value Deleting for KubernetesClusterProvisioningState. + */ public static final KubernetesClusterProvisioningState DELETING = fromString("Deleting"); /** * Creates a new instance of KubernetesClusterProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -45,18 +62,17 @@ public KubernetesClusterProvisioningState() { /** * Creates or finds a KubernetesClusterProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding KubernetesClusterProvisioningState. */ - @JsonCreator public static KubernetesClusterProvisioningState fromString(String name) { return fromString(name, KubernetesClusterProvisioningState.class); } /** * Gets known KubernetesClusterProvisioningState values. - * + * * @return known KubernetesClusterProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterRestartNodeParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterRestartNodeParameters.java index 989323a9b7f69..8eecd4d1de83f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterRestartNodeParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusterRestartNodeParameters.java @@ -6,27 +6,33 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * KubernetesClusterRestartNodeParameters represents the body of the request to restart the node of a Kubernetes * cluster. */ @Fluent -public final class KubernetesClusterRestartNodeParameters { +public final class KubernetesClusterRestartNodeParameters + implements JsonSerializable { /* * The name of the node to restart. */ - @JsonProperty(value = "nodeName", required = true) private String nodeName; - /** Creates an instance of KubernetesClusterRestartNodeParameters class. */ + /** + * Creates an instance of KubernetesClusterRestartNodeParameters class. + */ public KubernetesClusterRestartNodeParameters() { } /** * Get the nodeName property: The name of the node to restart. - * + * * @return the nodeName value. */ public String nodeName() { @@ -35,7 +41,7 @@ public String nodeName() { /** * Set the nodeName property: The name of the node to restart. - * + * * @param nodeName the nodeName value to set. * @return the KubernetesClusterRestartNodeParameters object itself. */ @@ -46,15 +52,54 @@ public KubernetesClusterRestartNodeParameters withNodeName(String nodeName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (nodeName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property nodeName in model KubernetesClusterRestartNodeParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property nodeName in model KubernetesClusterRestartNodeParameters")); } } private static final ClientLogger LOGGER = new ClientLogger(KubernetesClusterRestartNodeParameters.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nodeName", this.nodeName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesClusterRestartNodeParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesClusterRestartNodeParameters if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KubernetesClusterRestartNodeParameters. + */ + public static KubernetesClusterRestartNodeParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesClusterRestartNodeParameters deserializedKubernetesClusterRestartNodeParameters + = new KubernetesClusterRestartNodeParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nodeName".equals(fieldName)) { + deserializedKubernetesClusterRestartNodeParameters.nodeName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesClusterRestartNodeParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusters.java index c612c0ec72242..8f80c0439d053 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesClusters.java @@ -8,68 +8,70 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of KubernetesClusters. */ +/** + * Resource collection API of KubernetesClusters. + */ public interface KubernetesClusters { /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** * List Kubernetes clusters in the subscription. - * - *

Get a list of Kubernetes clusters in the provided subscription. - * + * + * Get a list of Kubernetes clusters in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List Kubernetes clusters in the resource group. - * - *

Get a list of Kubernetes clusters in the provided resource group. - * + * + * Get a list of Kubernetes clusters in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Kubernetes clusters in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of Kubernetes clusters in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. @@ -83,9 +85,9 @@ Response getByResourceGroupWithResponse(String resourceGroupN /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -97,36 +99,38 @@ Response getByResourceGroupWithResponse(String resourceGroupN /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String kubernetesClusterName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String kubernetesClusterName); /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String kubernetesClusterName, Context context); + OperationStatusResult delete(String resourceGroupName, String kubernetesClusterName, Context context); /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -140,9 +144,9 @@ OperationStatusResult restartNode(String resourceGroupName, String kubernetesClu /** * Restart a targeted node. - * - *

Restart a targeted node of a Kubernetes cluster. - * + * + * Restart a targeted node of a Kubernetes cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kubernetesClusterName The name of the Kubernetes cluster. * @param kubernetesClusterRestartNodeParameters The request body. @@ -157,9 +161,9 @@ OperationStatusResult restartNode(String resourceGroupName, String kubernetesClu /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -170,9 +174,9 @@ OperationStatusResult restartNode(String resourceGroupName, String kubernetesClu /** * Retrieve the Kubernetes cluster. - * - *

Get properties of the provided the Kubernetes cluster. - * + * + * Get properties of the provided the Kubernetes cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -184,32 +188,34 @@ OperationStatusResult restartNode(String resourceGroupName, String kubernetesClu /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the Kubernetes cluster. - * - *

Delete the provided Kubernetes cluster. - * + * + * Delete the provided Kubernetes cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new KubernetesCluster resource. - * + * * @param name resource name. * @return the first stage of the new KubernetesCluster definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesLabel.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesLabel.java index 5736730fb2296..a0d565da321ab 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesLabel.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesLabel.java @@ -6,30 +6,36 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** KubernetesLabel represents a single entry for a Kubernetes label or taint such as those used on a node or pod. */ +/** + * KubernetesLabel represents a single entry for a Kubernetes label or taint such as those used on a node or pod. + */ @Fluent -public final class KubernetesLabel { +public final class KubernetesLabel implements JsonSerializable { /* * The name of the label or taint. */ - @JsonProperty(value = "key", required = true) private String key; /* * The value of the label or taint. */ - @JsonProperty(value = "value", required = true) private String value; - /** Creates an instance of KubernetesLabel class. */ + /** + * Creates an instance of KubernetesLabel class. + */ public KubernetesLabel() { } /** * Get the key property: The name of the label or taint. - * + * * @return the key value. */ public String key() { @@ -38,7 +44,7 @@ public String key() { /** * Set the key property: The name of the label or taint. - * + * * @param key the key value to set. * @return the KubernetesLabel object itself. */ @@ -49,7 +55,7 @@ public KubernetesLabel withKey(String key) { /** * Get the value property: The value of the label or taint. - * + * * @return the value value. */ public String value() { @@ -58,7 +64,7 @@ public String value() { /** * Set the value property: The value of the label or taint. - * + * * @param value the value value to set. * @return the KubernetesLabel object itself. */ @@ -69,19 +75,59 @@ public KubernetesLabel withValue(String value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (key() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property key in model KubernetesLabel")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property key in model KubernetesLabel")); } if (value() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property value in model KubernetesLabel")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model KubernetesLabel")); } } private static final ClientLogger LOGGER = new ClientLogger(KubernetesLabel.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesLabel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesLabel if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the KubernetesLabel. + */ + public static KubernetesLabel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesLabel deserializedKubernetesLabel = new KubernetesLabel(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedKubernetesLabel.key = reader.getString(); + } else if ("value".equals(fieldName)) { + deserializedKubernetesLabel.value = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesLabel; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodePowerState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodePowerState.java index 8c8b50beddcd8..710086ce4e5fc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodePowerState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodePowerState.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The power state of this node. */ +/** + * The power state of this node. + */ public final class KubernetesNodePowerState extends ExpandableStringEnum { - /** Static value On for KubernetesNodePowerState. */ + /** + * Static value On for KubernetesNodePowerState. + */ public static final KubernetesNodePowerState ON = fromString("On"); - /** Static value Off for KubernetesNodePowerState. */ + /** + * Static value Off for KubernetesNodePowerState. + */ public static final KubernetesNodePowerState OFF = fromString("Off"); - /** Static value Unknown for KubernetesNodePowerState. */ + /** + * Static value Unknown for KubernetesNodePowerState. + */ public static final KubernetesNodePowerState UNKNOWN = fromString("Unknown"); /** * Creates a new instance of KubernetesNodePowerState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public KubernetesNodePowerState() { /** * Creates or finds a KubernetesNodePowerState from its string representation. - * + * * @param name a name to look for. * @return the corresponding KubernetesNodePowerState. */ - @JsonCreator public static KubernetesNodePowerState fromString(String name) { return fromString(name, KubernetesNodePowerState.class); } /** * Gets known KubernetesNodePowerState values. - * + * * @return known KubernetesNodePowerState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodeRole.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodeRole.java index 158c675d155fc..5ad2d9e5ba693 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodeRole.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesNodeRole.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The role of this node in the cluster. */ +/** + * The role of this node in the cluster. + */ public final class KubernetesNodeRole extends ExpandableStringEnum { - /** Static value ControlPlane for KubernetesNodeRole. */ + /** + * Static value ControlPlane for KubernetesNodeRole. + */ public static final KubernetesNodeRole CONTROL_PLANE = fromString("ControlPlane"); - /** Static value Worker for KubernetesNodeRole. */ + /** + * Static value Worker for KubernetesNodeRole. + */ public static final KubernetesNodeRole WORKER = fromString("Worker"); /** * Creates a new instance of KubernetesNodeRole value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public KubernetesNodeRole() { /** * Creates or finds a KubernetesNodeRole from its string representation. - * + * * @param name a name to look for. * @return the corresponding KubernetesNodeRole. */ - @JsonCreator public static KubernetesNodeRole fromString(String name) { return fromString(name, KubernetesNodeRole.class); } /** * Gets known KubernetesNodeRole values. - * + * * @return known KubernetesNodeRole values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesPluginType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesPluginType.java index 3fc078a3053cd..38aeb893d5b8a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesPluginType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/KubernetesPluginType.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of how this network will be utilized by the Kubernetes cluster. */ +/** + * The indicator of how this network will be utilized by the Kubernetes cluster. + */ public final class KubernetesPluginType extends ExpandableStringEnum { - /** Static value DPDK for KubernetesPluginType. */ + /** + * Static value DPDK for KubernetesPluginType. + */ public static final KubernetesPluginType DPDK = fromString("DPDK"); - /** Static value SRIOV for KubernetesPluginType. */ + /** + * Static value SRIOV for KubernetesPluginType. + */ public static final KubernetesPluginType SRIOV = fromString("SRIOV"); - /** Static value OSDevice for KubernetesPluginType. */ + /** + * Static value OSDevice for KubernetesPluginType. + */ public static final KubernetesPluginType OSDEVICE = fromString("OSDevice"); - /** Static value MACVLAN for KubernetesPluginType. */ + /** + * Static value MACVLAN for KubernetesPluginType. + */ public static final KubernetesPluginType MACVLAN = fromString("MACVLAN"); - /** Static value IPVLAN for KubernetesPluginType. */ + /** + * Static value IPVLAN for KubernetesPluginType. + */ public static final KubernetesPluginType IPVLAN = fromString("IPVLAN"); /** * Creates a new instance of KubernetesPluginType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public KubernetesPluginType() { /** * Creates or finds a KubernetesPluginType from its string representation. - * + * * @param name a name to look for. * @return the corresponding KubernetesPluginType. */ - @JsonCreator public static KubernetesPluginType fromString(String name) { return fromString(name, KubernetesPluginType.class); } /** * Gets known KubernetesPluginType values. - * + * * @return known KubernetesPluginType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Network.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Network.java index d62098e7a0df3..fb3c9e0678f38 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Network.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Network.java @@ -11,56 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of L2Network. */ +/** + * An immutable client-side representation of L2Network. + */ public interface L2Network { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -68,28 +67,28 @@ public interface L2Network { /** * Gets the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ List associatedResourceIds(); /** * Gets the clusterId property: The resource ID of the Network Cloud cluster this L2 network is associated with. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the detailedStatus property: The more detailed status of the L2 network. - * + * * @return the detailedStatus value. */ L2NetworkDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -97,7 +96,7 @@ public interface L2Network { /** * Gets the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource ID(s) that are associated with this L2 network. - * + * * @return the hybridAksClustersAssociatedIds value. */ List hybridAksClustersAssociatedIds(); @@ -105,7 +104,7 @@ public interface L2Network { /** * Gets the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ HybridAksPluginType hybridAksPluginType(); @@ -113,21 +112,21 @@ public interface L2Network { /** * Gets the interfaceName property: The default interface name for this L2 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ String interfaceName(); /** * Gets the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain. - * + * * @return the l2IsolationDomainId value. */ String l2IsolationDomainId(); /** * Gets the provisioningState property: The provisioning state of the L2 network. - * + * * @return the provisioningState value. */ L2NetworkProvisioningState provisioningState(); @@ -136,56 +135,64 @@ public interface L2Network { * Gets the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource ID(s), excluding any Hybrid AKS virtual machines, that are currently using this L2 * network. - * + * * @return the virtualMachinesAssociatedIds value. */ List virtualMachinesAssociatedIds(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkInner object. - * + * * @return the inner object. */ L2NetworkInner innerModel(); - /** The entirety of the L2Network definition. */ + /** + * The entirety of the L2Network definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithL2IsolationDomainId, DefinitionStages.WithCreate { } - /** The L2Network definition stages. */ + /** + * The L2Network definition stages. + */ interface DefinitionStages { - /** The first stage of the L2Network definition. */ + /** + * The first stage of the L2Network definition. + */ interface Blank extends WithLocation { } - /** The stage of the L2Network definition allowing to specify location. */ + /** + * The stage of the L2Network definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -193,45 +200,47 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the L2Network definition allowing to specify parent resource. */ + /** + * The stage of the L2Network definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the L2Network definition allowing to specify extendedLocation. */ + /** + * The stage of the L2Network definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithL2IsolationDomainId withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the L2Network definition allowing to specify l2IsolationDomainId. */ + /** + * The stage of the L2Network definition allowing to specify l2IsolationDomainId. + */ interface WithL2IsolationDomainId { /** * Specifies the l2IsolationDomainId property: The resource ID of the Network Fabric l2IsolationDomain.. - * + * * @param l2IsolationDomainId The resource ID of the Network Fabric l2IsolationDomain. * @return the next definition stage. */ @@ -246,53 +255,59 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithHyb DefinitionStages.WithInterfaceName { /** * Executes the create request. - * + * * @return the created resource. */ L2Network create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ L2Network create(Context context); } - /** The stage of the L2Network definition allowing to specify tags. */ + /** + * The stage of the L2Network definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the L2Network definition allowing to specify hybridAksPluginType. */ + /** + * The stage of the L2Network definition allowing to specify hybridAksPluginType. + */ interface WithHybridAksPluginType { /** * Specifies the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it * will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS.. - * + * * @param hybridAksPluginType Field Deprecated. The field was previously optional, now it will have no - * defined behavior and will be ignored. The network plugin type for Hybrid AKS. + * defined behavior and will be ignored. The network plugin type for Hybrid AKS. * @return the next definition stage. */ WithCreate withHybridAksPluginType(HybridAksPluginType hybridAksPluginType); } - /** The stage of the L2Network definition allowing to specify interfaceName. */ + /** + * The stage of the L2Network definition allowing to specify interfaceName. + */ interface WithInterfaceName { /** * Specifies the interfaceName property: The default interface name for this L2 network in the virtual * machine. This name can be overridden by the name supplied in the network attachment configuration of that * virtual machine.. - * + * * @param interfaceName The default interface name for this L2 network in the virtual machine. This name can - * be overridden by the name supplied in the network attachment configuration of that virtual machine. + * be overridden by the name supplied in the network attachment configuration of that virtual machine. * @return the next definition stage. */ WithCreate withInterfaceName(String interfaceName); @@ -301,36 +316,42 @@ interface WithInterfaceName { /** * Begins update for the L2Network resource. - * + * * @return the stage of resource update. */ L2Network.Update update(); - /** The template for L2Network update. */ + /** + * The template for L2Network update. + */ interface Update extends UpdateStages.WithTags { /** * Executes the update request. - * + * * @return the updated resource. */ L2Network apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ L2Network apply(Context context); } - /** The L2Network update stages. */ + /** + * The L2Network update stages. + */ interface UpdateStages { - /** The stage of the L2Network update allowing to specify tags. */ + /** + * The stage of the L2Network update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ @@ -340,14 +361,14 @@ interface WithTags { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ L2Network refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkAttachmentConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkAttachmentConfiguration.java index fd386214c28fd..810db7d21be77 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkAttachmentConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkAttachmentConfiguration.java @@ -6,30 +6,36 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** L2NetworkAttachmentConfiguration represents the configuration of the attachment of a Layer 2 network. */ +/** + * L2NetworkAttachmentConfiguration represents the configuration of the attachment of a Layer 2 network. + */ @Fluent -public final class L2NetworkAttachmentConfiguration { +public final class L2NetworkAttachmentConfiguration implements JsonSerializable { /* * The resource ID of the network that is being configured for attachment. */ - @JsonProperty(value = "networkId", required = true) private String networkId; /* * The indicator of how this network will be utilized by the Kubernetes cluster. */ - @JsonProperty(value = "pluginType") private KubernetesPluginType pluginType; - /** Creates an instance of L2NetworkAttachmentConfiguration class. */ + /** + * Creates an instance of L2NetworkAttachmentConfiguration class. + */ public L2NetworkAttachmentConfiguration() { } /** * Get the networkId property: The resource ID of the network that is being configured for attachment. - * + * * @return the networkId value. */ public String networkId() { @@ -38,7 +44,7 @@ public String networkId() { /** * Set the networkId property: The resource ID of the network that is being configured for attachment. - * + * * @param networkId the networkId value to set. * @return the L2NetworkAttachmentConfiguration object itself. */ @@ -49,7 +55,7 @@ public L2NetworkAttachmentConfiguration withNetworkId(String networkId) { /** * Get the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster. - * + * * @return the pluginType value. */ public KubernetesPluginType pluginType() { @@ -58,7 +64,7 @@ public KubernetesPluginType pluginType() { /** * Set the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster. - * + * * @param pluginType the pluginType value to set. * @return the L2NetworkAttachmentConfiguration object itself. */ @@ -69,15 +75,58 @@ public L2NetworkAttachmentConfiguration withPluginType(KubernetesPluginType plug /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (networkId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property networkId in model L2NetworkAttachmentConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkId in model L2NetworkAttachmentConfiguration")); } } private static final ClientLogger LOGGER = new ClientLogger(L2NetworkAttachmentConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("networkId", this.networkId); + jsonWriter.writeStringField("pluginType", this.pluginType == null ? null : this.pluginType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L2NetworkAttachmentConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L2NetworkAttachmentConfiguration if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the L2NetworkAttachmentConfiguration. + */ + public static L2NetworkAttachmentConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L2NetworkAttachmentConfiguration deserializedL2NetworkAttachmentConfiguration + = new L2NetworkAttachmentConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("networkId".equals(fieldName)) { + deserializedL2NetworkAttachmentConfiguration.networkId = reader.getString(); + } else if ("pluginType".equals(fieldName)) { + deserializedL2NetworkAttachmentConfiguration.pluginType + = KubernetesPluginType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedL2NetworkAttachmentConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkDetailedStatus.java index 9880b8715d17a..f675aa6488091 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the L2 network. */ +/** + * The more detailed status of the L2 network. + */ public final class L2NetworkDetailedStatus extends ExpandableStringEnum { - /** Static value Error for L2NetworkDetailedStatus. */ + /** + * Static value Error for L2NetworkDetailedStatus. + */ public static final L2NetworkDetailedStatus ERROR = fromString("Error"); - /** Static value Available for L2NetworkDetailedStatus. */ + /** + * Static value Available for L2NetworkDetailedStatus. + */ public static final L2NetworkDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for L2NetworkDetailedStatus. */ + /** + * Static value Provisioning for L2NetworkDetailedStatus. + */ public static final L2NetworkDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of L2NetworkDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public L2NetworkDetailedStatus() { /** * Creates or finds a L2NetworkDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding L2NetworkDetailedStatus. */ - @JsonCreator public static L2NetworkDetailedStatus fromString(String name) { return fromString(name, L2NetworkDetailedStatus.class); } /** * Gets known L2NetworkDetailedStatus values. - * + * * @return known L2NetworkDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkList.java index f0e880f2c68e6..795b974199c81 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.L2NetworkInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** L2NetworkList represents a list of L2 networks. */ +/** + * L2NetworkList represents a list of L2 networks. + */ @Fluent -public final class L2NetworkList { +public final class L2NetworkList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of L2 networks. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of L2NetworkList class. */ + /** + * Creates an instance of L2NetworkList class. + */ public L2NetworkList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the L2NetworkList object itself. */ @@ -50,7 +56,7 @@ public L2NetworkList withNextLink(String nextLink) { /** * Get the value property: The list of L2 networks. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of L2 networks. - * + * * @param value the value value to set. * @return the L2NetworkList object itself. */ @@ -70,7 +76,7 @@ public L2NetworkList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L2NetworkList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L2NetworkList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the L2NetworkList. + */ + public static L2NetworkList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L2NetworkList deserializedL2NetworkList = new L2NetworkList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedL2NetworkList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> L2NetworkInner.fromJson(reader1)); + deserializedL2NetworkList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedL2NetworkList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkPatchParameters.java index 72534a605d056..6acea6f27bb53 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkPatchParameters.java @@ -5,27 +5,32 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.Map; -/** L2NetworkPatchParameters represents the body of the request to patch the L2 network. */ +/** + * L2NetworkPatchParameters represents the body of the request to patch the L2 network. + */ @Fluent -public final class L2NetworkPatchParameters { +public final class L2NetworkPatchParameters implements JsonSerializable { /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of L2NetworkPatchParameters class. */ + /** + * Creates an instance of L2NetworkPatchParameters class. + */ public L2NetworkPatchParameters() { } /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -34,7 +39,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the L2NetworkPatchParameters object itself. */ @@ -45,9 +50,46 @@ public L2NetworkPatchParameters withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L2NetworkPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L2NetworkPatchParameters if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the L2NetworkPatchParameters. + */ + public static L2NetworkPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L2NetworkPatchParameters deserializedL2NetworkPatchParameters = new L2NetworkPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedL2NetworkPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedL2NetworkPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkProvisioningState.java index c98da59a23c88..32bc25a571f38 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2NetworkProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the L2 network. */ +/** + * The provisioning state of the L2 network. + */ public final class L2NetworkProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for L2NetworkProvisioningState. */ + /** + * Static value Succeeded for L2NetworkProvisioningState. + */ public static final L2NetworkProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for L2NetworkProvisioningState. */ + /** + * Static value Failed for L2NetworkProvisioningState. + */ public static final L2NetworkProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for L2NetworkProvisioningState. */ + /** + * Static value Canceled for L2NetworkProvisioningState. + */ public static final L2NetworkProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for L2NetworkProvisioningState. */ + /** + * Static value Provisioning for L2NetworkProvisioningState. + */ public static final L2NetworkProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for L2NetworkProvisioningState. */ + /** + * Static value Accepted for L2NetworkProvisioningState. + */ public static final L2NetworkProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of L2NetworkProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public L2NetworkProvisioningState() { /** * Creates or finds a L2NetworkProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding L2NetworkProvisioningState. */ - @JsonCreator public static L2NetworkProvisioningState fromString(String name) { return fromString(name, L2NetworkProvisioningState.class); } /** * Gets known L2NetworkProvisioningState values. - * + * * @return known L2NetworkProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Networks.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Networks.java index 6b288dbc3244a..1422bcf03cd0e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Networks.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2Networks.java @@ -8,68 +8,70 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of L2Networks. */ +/** + * Resource collection API of L2Networks. + */ public interface L2Networks { /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** * List layer 2 (L2) networks in the subscription. - * - *

Get a list of layer 2 (L2) networks in the provided subscription. - * + * + * Get a list of layer 2 (L2) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List layer 2 (L2) networks in the resource group. - * - *

Get a list of layer 2 (L2) networks in the provided resource group. - * + * + * Get a list of layer 2 (L2) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 2 (L2) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. @@ -82,9 +84,9 @@ public interface L2Networks { /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -96,36 +98,38 @@ public interface L2Networks { /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String l2NetworkName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String l2NetworkName); /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l2NetworkName The name of the L2 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String l2NetworkName, Context context); + OperationStatusResult delete(String resourceGroupName, String l2NetworkName, Context context); /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -136,9 +140,9 @@ public interface L2Networks { /** * Retrieve the layer 2 (L2) network. - * - *

Get properties of the provided layer 2 (L2) network. - * + * + * Get properties of the provided layer 2 (L2) network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,32 +154,34 @@ public interface L2Networks { /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the layer 2 (L2) network. - * - *

Delete the provided layer 2 (L2) network. - * + * + * Delete the provided layer 2 (L2) network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new L2Network resource. - * + * * @param name resource name. * @return the first stage of the new L2Network definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2ServiceLoadBalancerConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2ServiceLoadBalancerConfiguration.java new file mode 100644 index 0000000000000..4bc8ca7402605 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L2ServiceLoadBalancerConfiguration.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * L2ServiceLoadBalancerConfiguration represents the configuration of a layer 2 service load balancer. + */ +@Fluent +public final class L2ServiceLoadBalancerConfiguration implements JsonSerializable { + /* + * The list of pools of IP addresses that can be allocated to load balancer services. + */ + private List ipAddressPools; + + /** + * Creates an instance of L2ServiceLoadBalancerConfiguration class. + */ + public L2ServiceLoadBalancerConfiguration() { + } + + /** + * Get the ipAddressPools property: The list of pools of IP addresses that can be allocated to load balancer + * services. + * + * @return the ipAddressPools value. + */ + public List ipAddressPools() { + return this.ipAddressPools; + } + + /** + * Set the ipAddressPools property: The list of pools of IP addresses that can be allocated to load balancer + * services. + * + * @param ipAddressPools the ipAddressPools value to set. + * @return the L2ServiceLoadBalancerConfiguration object itself. + */ + public L2ServiceLoadBalancerConfiguration withIpAddressPools(List ipAddressPools) { + this.ipAddressPools = ipAddressPools; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (ipAddressPools() != null) { + ipAddressPools().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("ipAddressPools", this.ipAddressPools, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L2ServiceLoadBalancerConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L2ServiceLoadBalancerConfiguration if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the L2ServiceLoadBalancerConfiguration. + */ + public static L2ServiceLoadBalancerConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L2ServiceLoadBalancerConfiguration deserializedL2ServiceLoadBalancerConfiguration + = new L2ServiceLoadBalancerConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("ipAddressPools".equals(fieldName)) { + List ipAddressPools = reader.readArray(reader1 -> IpAddressPool.fromJson(reader1)); + deserializedL2ServiceLoadBalancerConfiguration.ipAddressPools = ipAddressPools; + } else { + reader.skipChildren(); + } + } + + return deserializedL2ServiceLoadBalancerConfiguration; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Network.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Network.java index 00e0e62dbaf5d..bcbe9bbba151d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Network.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Network.java @@ -11,56 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of L3Network. */ +/** + * An immutable client-side representation of L3Network. + */ public interface L3Network { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -68,28 +67,28 @@ public interface L3Network { /** * Gets the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ List associatedResourceIds(); /** * Gets the clusterId property: The resource ID of the Network Cloud cluster this L3 network is associated with. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the detailedStatus property: The more detailed status of the L3 network. - * + * * @return the detailedStatus value. */ L3NetworkDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -97,7 +96,7 @@ public interface L3Network { /** * Gets the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this L3 network. - * + * * @return the hybridAksClustersAssociatedIds value. */ List hybridAksClustersAssociatedIds(); @@ -106,7 +105,7 @@ public interface L3Network { * Gets the hybridAksIpamEnabled property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the network * attachment definition injected into the Hybrid AKS Cluster. - * + * * @return the hybridAksIpamEnabled value. */ HybridAksIpamEnabled hybridAksIpamEnabled(); @@ -114,7 +113,7 @@ public interface L3Network { /** * Gets the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ HybridAksPluginType hybridAksPluginType(); @@ -122,44 +121,46 @@ public interface L3Network { /** * Gets the interfaceName property: The default interface name for this L3 network in the virtual machine. This name * can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ String interfaceName(); /** * Gets the ipAllocationType property: The type of the IP address allocation, defaulted to "DualStack". - * + * * @return the ipAllocationType value. */ IpAllocationType ipAllocationType(); /** * Gets the ipv4ConnectedPrefix property: The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV4 or DualStack. - * + * allocation type + * is IPV4 or DualStack. + * * @return the ipv4ConnectedPrefix value. */ String ipv4ConnectedPrefix(); /** * Gets the ipv6ConnectedPrefix property: The IPV6 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV6 or DualStack. - * + * allocation type + * is IPV6 or DualStack. + * * @return the ipv6ConnectedPrefix value. */ String ipv6ConnectedPrefix(); /** * Gets the l3IsolationDomainId property: The resource ID of the Network Fabric l3IsolationDomain. - * + * * @return the l3IsolationDomainId value. */ String l3IsolationDomainId(); /** * Gets the provisioningState property: The provisioning state of the L3 network. - * + * * @return the provisioningState value. */ L3NetworkProvisioningState provisioningState(); @@ -168,63 +169,71 @@ public interface L3Network { * Gets the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this L3 * network. - * + * * @return the virtualMachinesAssociatedIds value. */ List virtualMachinesAssociatedIds(); /** * Gets the vlan property: The VLAN from the l3IsolationDomain that is used for this network. - * + * * @return the vlan value. */ long vlan(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkInner object. - * + * * @return the inner object. */ L3NetworkInner innerModel(); - /** The entirety of the L3Network definition. */ + /** + * The entirety of the L3Network definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithL3IsolationDomainId, DefinitionStages.WithVlan, DefinitionStages.WithCreate { } - /** The L3Network definition stages. */ + /** + * The L3Network definition stages. + */ interface DefinitionStages { - /** The first stage of the L3Network definition. */ + /** + * The first stage of the L3Network definition. + */ interface Blank extends WithLocation { } - /** The stage of the L3Network definition allowing to specify location. */ + /** + * The stage of the L3Network definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -232,56 +241,60 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the L3Network definition allowing to specify parent resource. */ + /** + * The stage of the L3Network definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the L3Network definition allowing to specify extendedLocation. */ + /** + * The stage of the L3Network definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithL3IsolationDomainId withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the L3Network definition allowing to specify l3IsolationDomainId. */ + /** + * The stage of the L3Network definition allowing to specify l3IsolationDomainId. + */ interface WithL3IsolationDomainId { /** * Specifies the l3IsolationDomainId property: The resource ID of the Network Fabric l3IsolationDomain.. - * + * * @param l3IsolationDomainId The resource ID of the Network Fabric l3IsolationDomain. * @return the next definition stage. */ WithVlan withL3IsolationDomainId(String l3IsolationDomainId); } - /** The stage of the L3Network definition allowing to specify vlan. */ + /** + * The stage of the L3Network definition allowing to specify vlan. + */ interface WithVlan { /** * Specifies the vlan property: The VLAN from the l3IsolationDomain that is used for this network.. - * + * * @param vlan The VLAN from the l3IsolationDomain that is used for this network. * @return the next definition stage. */ @@ -298,106 +311,124 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithHyb DefinitionStages.WithIpv6ConnectedPrefix { /** * Executes the create request. - * + * * @return the created resource. */ L3Network create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ L3Network create(Context context); } - /** The stage of the L3Network definition allowing to specify tags. */ + /** + * The stage of the L3Network definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the L3Network definition allowing to specify hybridAksIpamEnabled. */ + /** + * The stage of the L3Network definition allowing to specify hybridAksIpamEnabled. + */ interface WithHybridAksIpamEnabled { /** * Specifies the hybridAksIpamEnabled property: Field Deprecated. The field was previously optional, now it * will have no defined behavior and will be ignored. The indicator of whether or not to disable IPAM * allocation on the network attachment definition injected into the Hybrid AKS Cluster.. - * + * * @param hybridAksIpamEnabled Field Deprecated. The field was previously optional, now it will have no - * defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on - * the network attachment definition injected into the Hybrid AKS Cluster. + * defined behavior and will be ignored. The indicator of whether or not to disable IPAM allocation on the + * network attachment definition injected into the Hybrid AKS Cluster. * @return the next definition stage. */ WithCreate withHybridAksIpamEnabled(HybridAksIpamEnabled hybridAksIpamEnabled); } - /** The stage of the L3Network definition allowing to specify hybridAksPluginType. */ + /** + * The stage of the L3Network definition allowing to specify hybridAksPluginType. + */ interface WithHybridAksPluginType { /** * Specifies the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it * will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS.. - * + * * @param hybridAksPluginType Field Deprecated. The field was previously optional, now it will have no - * defined behavior and will be ignored. The network plugin type for Hybrid AKS. + * defined behavior and will be ignored. The network plugin type for Hybrid AKS. * @return the next definition stage. */ WithCreate withHybridAksPluginType(HybridAksPluginType hybridAksPluginType); } - /** The stage of the L3Network definition allowing to specify interfaceName. */ + /** + * The stage of the L3Network definition allowing to specify interfaceName. + */ interface WithInterfaceName { /** * Specifies the interfaceName property: The default interface name for this L3 network in the virtual * machine. This name can be overridden by the name supplied in the network attachment configuration of that * virtual machine.. - * + * * @param interfaceName The default interface name for this L3 network in the virtual machine. This name can - * be overridden by the name supplied in the network attachment configuration of that virtual machine. + * be overridden by the name supplied in the network attachment configuration of that virtual machine. * @return the next definition stage. */ WithCreate withInterfaceName(String interfaceName); } - /** The stage of the L3Network definition allowing to specify ipAllocationType. */ + /** + * The stage of the L3Network definition allowing to specify ipAllocationType. + */ interface WithIpAllocationType { /** * Specifies the ipAllocationType property: The type of the IP address allocation, defaulted to * "DualStack".. - * + * * @param ipAllocationType The type of the IP address allocation, defaulted to "DualStack". * @return the next definition stage. */ WithCreate withIpAllocationType(IpAllocationType ipAllocationType); } - /** The stage of the L3Network definition allowing to specify ipv4ConnectedPrefix. */ + /** + * The stage of the L3Network definition allowing to specify ipv4ConnectedPrefix. + */ interface WithIpv4ConnectedPrefix { /** * Specifies the ipv4ConnectedPrefix property: The IPV4 prefix (CIDR) assigned to this L3 network. Required - * when the IP allocation type is IPV4 or DualStack.. - * + * when the IP allocation type + * is IPV4 or DualStack.. + * * @param ipv4ConnectedPrefix The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV4 or DualStack. + * allocation type + * is IPV4 or DualStack. * @return the next definition stage. */ WithCreate withIpv4ConnectedPrefix(String ipv4ConnectedPrefix); } - /** The stage of the L3Network definition allowing to specify ipv6ConnectedPrefix. */ + /** + * The stage of the L3Network definition allowing to specify ipv6ConnectedPrefix. + */ interface WithIpv6ConnectedPrefix { /** * Specifies the ipv6ConnectedPrefix property: The IPV6 prefix (CIDR) assigned to this L3 network. Required - * when the IP allocation type is IPV6 or DualStack.. - * + * when the IP allocation type + * is IPV6 or DualStack.. + * * @param ipv6ConnectedPrefix The IPV6 prefix (CIDR) assigned to this L3 network. Required when the IP - * allocation type is IPV6 or DualStack. + * allocation type + * is IPV6 or DualStack. * @return the next definition stage. */ WithCreate withIpv6ConnectedPrefix(String ipv6ConnectedPrefix); @@ -406,36 +437,42 @@ interface WithIpv6ConnectedPrefix { /** * Begins update for the L3Network resource. - * + * * @return the stage of resource update. */ L3Network.Update update(); - /** The template for L3Network update. */ + /** + * The template for L3Network update. + */ interface Update extends UpdateStages.WithTags { /** * Executes the update request. - * + * * @return the updated resource. */ L3Network apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ L3Network apply(Context context); } - /** The L3Network update stages. */ + /** + * The L3Network update stages. + */ interface UpdateStages { - /** The stage of the L3Network update allowing to specify tags. */ + /** + * The stage of the L3Network update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ @@ -445,14 +482,14 @@ interface WithTags { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ L3Network refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkAttachmentConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkAttachmentConfiguration.java index c3a749f70839f..c2c19212cd5e2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkAttachmentConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkAttachmentConfiguration.java @@ -6,38 +6,43 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** L3NetworkAttachmentConfiguration represents the configuration of the attachment of a Layer 3 network. */ +/** + * L3NetworkAttachmentConfiguration represents the configuration of the attachment of a Layer 3 network. + */ @Fluent -public final class L3NetworkAttachmentConfiguration { +public final class L3NetworkAttachmentConfiguration implements JsonSerializable { /* * The indication of whether this network will or will not perform IP address management and allocate IP addresses * when attached. */ - @JsonProperty(value = "ipamEnabled") private L3NetworkConfigurationIpamEnabled ipamEnabled; /* * The resource ID of the network that is being configured for attachment. */ - @JsonProperty(value = "networkId", required = true) private String networkId; /* * The indicator of how this network will be utilized by the Kubernetes cluster. */ - @JsonProperty(value = "pluginType") private KubernetesPluginType pluginType; - /** Creates an instance of L3NetworkAttachmentConfiguration class. */ + /** + * Creates an instance of L3NetworkAttachmentConfiguration class. + */ public L3NetworkAttachmentConfiguration() { } /** * Get the ipamEnabled property: The indication of whether this network will or will not perform IP address * management and allocate IP addresses when attached. - * + * * @return the ipamEnabled value. */ public L3NetworkConfigurationIpamEnabled ipamEnabled() { @@ -47,7 +52,7 @@ public L3NetworkConfigurationIpamEnabled ipamEnabled() { /** * Set the ipamEnabled property: The indication of whether this network will or will not perform IP address * management and allocate IP addresses when attached. - * + * * @param ipamEnabled the ipamEnabled value to set. * @return the L3NetworkAttachmentConfiguration object itself. */ @@ -58,7 +63,7 @@ public L3NetworkAttachmentConfiguration withIpamEnabled(L3NetworkConfigurationIp /** * Get the networkId property: The resource ID of the network that is being configured for attachment. - * + * * @return the networkId value. */ public String networkId() { @@ -67,7 +72,7 @@ public String networkId() { /** * Set the networkId property: The resource ID of the network that is being configured for attachment. - * + * * @param networkId the networkId value to set. * @return the L3NetworkAttachmentConfiguration object itself. */ @@ -78,7 +83,7 @@ public L3NetworkAttachmentConfiguration withNetworkId(String networkId) { /** * Get the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster. - * + * * @return the pluginType value. */ public KubernetesPluginType pluginType() { @@ -87,7 +92,7 @@ public KubernetesPluginType pluginType() { /** * Set the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster. - * + * * @param pluginType the pluginType value to set. * @return the L3NetworkAttachmentConfiguration object itself. */ @@ -98,15 +103,62 @@ public L3NetworkAttachmentConfiguration withPluginType(KubernetesPluginType plug /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (networkId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property networkId in model L3NetworkAttachmentConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkId in model L3NetworkAttachmentConfiguration")); } } private static final ClientLogger LOGGER = new ClientLogger(L3NetworkAttachmentConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("networkId", this.networkId); + jsonWriter.writeStringField("ipamEnabled", this.ipamEnabled == null ? null : this.ipamEnabled.toString()); + jsonWriter.writeStringField("pluginType", this.pluginType == null ? null : this.pluginType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L3NetworkAttachmentConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L3NetworkAttachmentConfiguration if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the L3NetworkAttachmentConfiguration. + */ + public static L3NetworkAttachmentConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L3NetworkAttachmentConfiguration deserializedL3NetworkAttachmentConfiguration + = new L3NetworkAttachmentConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("networkId".equals(fieldName)) { + deserializedL3NetworkAttachmentConfiguration.networkId = reader.getString(); + } else if ("ipamEnabled".equals(fieldName)) { + deserializedL3NetworkAttachmentConfiguration.ipamEnabled + = L3NetworkConfigurationIpamEnabled.fromString(reader.getString()); + } else if ("pluginType".equals(fieldName)) { + deserializedL3NetworkAttachmentConfiguration.pluginType + = KubernetesPluginType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedL3NetworkAttachmentConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkConfigurationIpamEnabled.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkConfigurationIpamEnabled.java index fca5d548a5349..46b6f8689fb1f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkConfigurationIpamEnabled.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkConfigurationIpamEnabled.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -13,15 +12,19 @@ * attached. */ public final class L3NetworkConfigurationIpamEnabled extends ExpandableStringEnum { - /** Static value True for L3NetworkConfigurationIpamEnabled. */ + /** + * Static value True for L3NetworkConfigurationIpamEnabled. + */ public static final L3NetworkConfigurationIpamEnabled TRUE = fromString("True"); - /** Static value False for L3NetworkConfigurationIpamEnabled. */ + /** + * Static value False for L3NetworkConfigurationIpamEnabled. + */ public static final L3NetworkConfigurationIpamEnabled FALSE = fromString("False"); /** * Creates a new instance of L3NetworkConfigurationIpamEnabled value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +33,17 @@ public L3NetworkConfigurationIpamEnabled() { /** * Creates or finds a L3NetworkConfigurationIpamEnabled from its string representation. - * + * * @param name a name to look for. * @return the corresponding L3NetworkConfigurationIpamEnabled. */ - @JsonCreator public static L3NetworkConfigurationIpamEnabled fromString(String name) { return fromString(name, L3NetworkConfigurationIpamEnabled.class); } /** * Gets known L3NetworkConfigurationIpamEnabled values. - * + * * @return known L3NetworkConfigurationIpamEnabled values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkDetailedStatus.java index 820cf9b025ded..2983333335cba 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the L3 network. */ +/** + * The more detailed status of the L3 network. + */ public final class L3NetworkDetailedStatus extends ExpandableStringEnum { - /** Static value Error for L3NetworkDetailedStatus. */ + /** + * Static value Error for L3NetworkDetailedStatus. + */ public static final L3NetworkDetailedStatus ERROR = fromString("Error"); - /** Static value Available for L3NetworkDetailedStatus. */ + /** + * Static value Available for L3NetworkDetailedStatus. + */ public static final L3NetworkDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for L3NetworkDetailedStatus. */ + /** + * Static value Provisioning for L3NetworkDetailedStatus. + */ public static final L3NetworkDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of L3NetworkDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public L3NetworkDetailedStatus() { /** * Creates or finds a L3NetworkDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding L3NetworkDetailedStatus. */ - @JsonCreator public static L3NetworkDetailedStatus fromString(String name) { return fromString(name, L3NetworkDetailedStatus.class); } /** * Gets known L3NetworkDetailedStatus values. - * + * * @return known L3NetworkDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkList.java index 58b433c99e2f8..775b8b265cc3d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.L3NetworkInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** L3NetworkList represents a list of L3 networks. */ +/** + * L3NetworkList represents a list of L3 networks. + */ @Fluent -public final class L3NetworkList { +public final class L3NetworkList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of L3 networks. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of L3NetworkList class. */ + /** + * Creates an instance of L3NetworkList class. + */ public L3NetworkList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the L3NetworkList object itself. */ @@ -50,7 +56,7 @@ public L3NetworkList withNextLink(String nextLink) { /** * Get the value property: The list of L3 networks. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of L3 networks. - * + * * @param value the value value to set. * @return the L3NetworkList object itself. */ @@ -70,7 +76,7 @@ public L3NetworkList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L3NetworkList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L3NetworkList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the L3NetworkList. + */ + public static L3NetworkList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L3NetworkList deserializedL3NetworkList = new L3NetworkList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedL3NetworkList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> L3NetworkInner.fromJson(reader1)); + deserializedL3NetworkList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedL3NetworkList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkPatchParameters.java index a64aec64d4f52..ad935cfff488a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkPatchParameters.java @@ -5,27 +5,32 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.Map; -/** L3NetworkPatchParameters represents the body of the request to patch the cloud services network. */ +/** + * L3NetworkPatchParameters represents the body of the request to patch the cloud services network. + */ @Fluent -public final class L3NetworkPatchParameters { +public final class L3NetworkPatchParameters implements JsonSerializable { /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of L3NetworkPatchParameters class. */ + /** + * Creates an instance of L3NetworkPatchParameters class. + */ public L3NetworkPatchParameters() { } /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -34,7 +39,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the L3NetworkPatchParameters object itself. */ @@ -45,9 +50,46 @@ public L3NetworkPatchParameters withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of L3NetworkPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of L3NetworkPatchParameters if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the L3NetworkPatchParameters. + */ + public static L3NetworkPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + L3NetworkPatchParameters deserializedL3NetworkPatchParameters = new L3NetworkPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedL3NetworkPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedL3NetworkPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkProvisioningState.java index 3a5eab6857f70..a2a9f1a005d29 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3NetworkProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the L3 network. */ +/** + * The provisioning state of the L3 network. + */ public final class L3NetworkProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for L3NetworkProvisioningState. */ + /** + * Static value Succeeded for L3NetworkProvisioningState. + */ public static final L3NetworkProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for L3NetworkProvisioningState. */ + /** + * Static value Failed for L3NetworkProvisioningState. + */ public static final L3NetworkProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for L3NetworkProvisioningState. */ + /** + * Static value Canceled for L3NetworkProvisioningState. + */ public static final L3NetworkProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for L3NetworkProvisioningState. */ + /** + * Static value Provisioning for L3NetworkProvisioningState. + */ public static final L3NetworkProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for L3NetworkProvisioningState. */ + /** + * Static value Accepted for L3NetworkProvisioningState. + */ public static final L3NetworkProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of L3NetworkProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public L3NetworkProvisioningState() { /** * Creates or finds a L3NetworkProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding L3NetworkProvisioningState. */ - @JsonCreator public static L3NetworkProvisioningState fromString(String name) { return fromString(name, L3NetworkProvisioningState.class); } /** * Gets known L3NetworkProvisioningState values. - * + * * @return known L3NetworkProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Networks.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Networks.java index 0b16ab745ad36..ecce21a1c73bc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Networks.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/L3Networks.java @@ -8,68 +8,70 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of L3Networks. */ +/** + * Resource collection API of L3Networks. + */ public interface L3Networks { /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** * List layer 3 (L3) networks in the subscription. - * - *

Get a list of layer 3 (L3) networks in the provided subscription. - * + * + * Get a list of layer 3 (L3) networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List layer 3 (L3) networks in the resource group. - * - *

Get a list of layer 3 (L3) networks in the provided resource group. - * + * + * Get a list of layer 3 (L3) networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of layer 3 (L3) networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. @@ -82,9 +84,9 @@ public interface L3Networks { /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -96,36 +98,38 @@ public interface L3Networks { /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String l3NetworkName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String l3NetworkName); /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param l3NetworkName The name of the L3 network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String l3NetworkName, Context context); + OperationStatusResult delete(String resourceGroupName, String l3NetworkName, Context context); /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -136,9 +140,9 @@ public interface L3Networks { /** * Retrieve the layer 3 (L3) network. - * - *

Get properties of the provided layer 3 (L3) network. - * + * + * Get properties of the provided layer 3 (L3) network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,32 +154,34 @@ public interface L3Networks { /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the layer 3 (L3) network. - * - *

Delete the provided layer 3 (L3) network. - * + * + * Delete the provided layer 3 (L3) network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new L3Network resource. - * + * * @param name resource name. * @return the first stage of the new L3Network definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/LldpNeighbor.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/LldpNeighbor.java index c30a4a8ad01f9..fa92343353069 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/LldpNeighbor.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/LldpNeighbor.java @@ -5,45 +5,47 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * Type Deprecated. Will be removed in an upcoming version. LldpNeighbor represents the details about the device * connected to the NIC. */ @Immutable -public final class LldpNeighbor { +public final class LldpNeighbor implements JsonSerializable { /* * The descriptive information about the port on the connected device. */ - @JsonProperty(value = "portDescription", access = JsonProperty.Access.WRITE_ONLY) private String portDescription; /* * The system-assigned name of the port on the connected device. */ - @JsonProperty(value = "portName", access = JsonProperty.Access.WRITE_ONLY) private String portName; /* * The descriptive information about the connected device. */ - @JsonProperty(value = "systemDescription", access = JsonProperty.Access.WRITE_ONLY) private String systemDescription; /* * The system-assigned name of the connected device. */ - @JsonProperty(value = "systemName", access = JsonProperty.Access.WRITE_ONLY) private String systemName; - /** Creates an instance of LldpNeighbor class. */ + /** + * Creates an instance of LldpNeighbor class. + */ public LldpNeighbor() { } /** * Get the portDescription property: The descriptive information about the port on the connected device. - * + * * @return the portDescription value. */ public String portDescription() { @@ -52,7 +54,7 @@ public String portDescription() { /** * Get the portName property: The system-assigned name of the port on the connected device. - * + * * @return the portName value. */ public String portName() { @@ -61,7 +63,7 @@ public String portName() { /** * Get the systemDescription property: The descriptive information about the connected device. - * + * * @return the systemDescription value. */ public String systemDescription() { @@ -70,7 +72,7 @@ public String systemDescription() { /** * Get the systemName property: The system-assigned name of the connected device. - * + * * @return the systemName value. */ public String systemName() { @@ -79,9 +81,50 @@ public String systemName() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LldpNeighbor from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LldpNeighbor if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the LldpNeighbor. + */ + public static LldpNeighbor fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LldpNeighbor deserializedLldpNeighbor = new LldpNeighbor(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("portDescription".equals(fieldName)) { + deserializedLldpNeighbor.portDescription = reader.getString(); + } else if ("portName".equals(fieldName)) { + deserializedLldpNeighbor.portName = reader.getString(); + } else if ("systemDescription".equals(fieldName)) { + deserializedLldpNeighbor.systemDescription = reader.getString(); + } else if ("systemName".equals(fieldName)) { + deserializedLldpNeighbor.systemName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedLldpNeighbor; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineDisk.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineDisk.java index 57bb0b0de1ebf..a4a2cfac81c4a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineDisk.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineDisk.java @@ -5,36 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Disk represents the properties of the disk. */ +/** + * Disk represents the properties of the disk. + */ @Immutable -public final class MachineDisk { +public final class MachineDisk implements JsonSerializable { /* - * The maximum amount of storage in GB. + * The maximum amount of storage. Measured in gibibytes. */ - @JsonProperty(value = "capacityGB", access = JsonProperty.Access.WRITE_ONLY) private Long capacityGB; /* * The connection type of the rack SKU resource. */ - @JsonProperty(value = "connection", access = JsonProperty.Access.WRITE_ONLY) private MachineSkuDiskConnectionType connection; /* * The disk type of rack SKU resource. */ - @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private DiskType type; - /** Creates an instance of MachineDisk class. */ + /** + * Creates an instance of MachineDisk class. + */ public MachineDisk() { } /** - * Get the capacityGB property: The maximum amount of storage in GB. - * + * Get the capacityGB property: The maximum amount of storage. Measured in gibibytes. + * * @return the capacityGB value. */ public Long capacityGB() { @@ -43,7 +48,7 @@ public Long capacityGB() { /** * Get the connection property: The connection type of the rack SKU resource. - * + * * @return the connection value. */ public MachineSkuDiskConnectionType connection() { @@ -52,7 +57,7 @@ public MachineSkuDiskConnectionType connection() { /** * Get the type property: The disk type of rack SKU resource. - * + * * @return the type value. */ public DiskType type() { @@ -61,9 +66,48 @@ public DiskType type() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineDisk from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineDisk if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the MachineDisk. + */ + public static MachineDisk fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineDisk deserializedMachineDisk = new MachineDisk(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("capacityGB".equals(fieldName)) { + deserializedMachineDisk.capacityGB = reader.getNullable(JsonReader::getLong); + } else if ("connection".equals(fieldName)) { + deserializedMachineDisk.connection = MachineSkuDiskConnectionType.fromString(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedMachineDisk.type = DiskType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineDisk; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuDiskConnectionType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuDiskConnectionType.java index 184b66ee0ccac..3b99b4548c360 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuDiskConnectionType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuDiskConnectionType.java @@ -5,26 +5,35 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The connection type of the rack SKU resource. */ +/** + * The connection type of the rack SKU resource. + */ public final class MachineSkuDiskConnectionType extends ExpandableStringEnum { - /** Static value PCIE for MachineSkuDiskConnectionType. */ + /** + * Static value PCIE for MachineSkuDiskConnectionType. + */ public static final MachineSkuDiskConnectionType PCIE = fromString("PCIE"); - /** Static value SATA for MachineSkuDiskConnectionType. */ + /** + * Static value SATA for MachineSkuDiskConnectionType. + */ public static final MachineSkuDiskConnectionType SATA = fromString("SATA"); - /** Static value RAID for MachineSkuDiskConnectionType. */ + /** + * Static value RAID for MachineSkuDiskConnectionType. + */ public static final MachineSkuDiskConnectionType RAID = fromString("RAID"); - /** Static value SAS for MachineSkuDiskConnectionType. */ + /** + * Static value SAS for MachineSkuDiskConnectionType. + */ public static final MachineSkuDiskConnectionType SAS = fromString("SAS"); /** * Creates a new instance of MachineSkuDiskConnectionType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,18 +42,17 @@ public MachineSkuDiskConnectionType() { /** * Creates or finds a MachineSkuDiskConnectionType from its string representation. - * + * * @param name a name to look for. * @return the corresponding MachineSkuDiskConnectionType. */ - @JsonCreator public static MachineSkuDiskConnectionType fromString(String name) { return fromString(name, MachineSkuDiskConnectionType.class); } /** * Gets known MachineSkuDiskConnectionType values. - * + * * @return known MachineSkuDiskConnectionType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuSlot.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuSlot.java index b6bba5a0558bf..0fa357d6c36e0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuSlot.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MachineSkuSlot.java @@ -5,36 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.MachineSkuProperties; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** MachineSkuSlot represents a single SKU and rack slot associated with the machine. */ +/** + * MachineSkuSlot represents a single SKU and rack slot associated with the machine. + */ @Immutable -public final class MachineSkuSlot { +public final class MachineSkuSlot implements JsonSerializable { /* - * MachineSkuProperties represents the properties of the machine SKU. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private MachineSkuProperties innerProperties; /* * The position in the rack for the machine. */ - @JsonProperty(value = "rackSlot", access = JsonProperty.Access.WRITE_ONLY) private Long rackSlot; - /** Creates an instance of MachineSkuSlot class. */ + /** + * Creates an instance of MachineSkuSlot class. + */ public MachineSkuSlot() { } /** - * Get the innerProperties property: MachineSkuProperties represents the properties of the machine SKU. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private MachineSkuProperties innerProperties() { @@ -43,7 +45,7 @@ private MachineSkuProperties innerProperties() { /** * Get the rackSlot property: The position in the rack for the machine. - * + * * @return the rackSlot value. */ public Long rackSlot() { @@ -52,7 +54,7 @@ public Long rackSlot() { /** * Get the bootstrapProtocol property: The type of bootstrap protocol used. - * + * * @return the bootstrapProtocol value. */ public BootstrapProtocol bootstrapProtocol() { @@ -61,7 +63,7 @@ public BootstrapProtocol bootstrapProtocol() { /** * Get the cpuCores property: The count of CPU cores for this machine. - * + * * @return the cpuCores value. */ public Long cpuCores() { @@ -70,7 +72,7 @@ public Long cpuCores() { /** * Get the cpuSockets property: The count of CPU sockets for this machine. - * + * * @return the cpuSockets value. */ public Long cpuSockets() { @@ -79,7 +81,7 @@ public Long cpuSockets() { /** * Get the disks property: The list of disks. - * + * * @return the disks value. */ public List disks() { @@ -88,7 +90,7 @@ public List disks() { /** * Get the generation property: The generation of the architecture. - * + * * @return the generation value. */ public String generation() { @@ -97,7 +99,7 @@ public String generation() { /** * Get the hardwareVersion property: The hardware version of the machine. - * + * * @return the hardwareVersion value. */ public String hardwareVersion() { @@ -105,8 +107,8 @@ public String hardwareVersion() { } /** - * Get the memoryCapacityGB property: The maximum amount of memory in GB. - * + * Get the memoryCapacityGB property: The maximum amount of memory. Measured in gibibytes. + * * @return the memoryCapacityGB value. */ public Long memoryCapacityGB() { @@ -115,7 +117,7 @@ public Long memoryCapacityGB() { /** * Get the model property: The model of the machine. - * + * * @return the model value. */ public String model() { @@ -124,7 +126,7 @@ public String model() { /** * Get the networkInterfaces property: The list of network interfaces. - * + * * @return the networkInterfaces value. */ public List networkInterfaces() { @@ -133,7 +135,7 @@ public List networkInterfaces() { /** * Get the totalThreads property: The count of SMT and physical core threads for this machine. - * + * * @return the totalThreads value. */ public Long totalThreads() { @@ -142,7 +144,7 @@ public Long totalThreads() { /** * Get the vendor property: The make of the machine. - * + * * @return the vendor value. */ public String vendor() { @@ -151,7 +153,7 @@ public String vendor() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -159,4 +161,42 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineSkuSlot from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineSkuSlot if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the MachineSkuSlot. + */ + public static MachineSkuSlot fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineSkuSlot deserializedMachineSkuSlot = new MachineSkuSlot(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedMachineSkuSlot.innerProperties = MachineSkuProperties.fromJson(reader); + } else if ("rackSlot".equals(fieldName)) { + deserializedMachineSkuSlot.rackSlot = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineSkuSlot; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedResourceGroupConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedResourceGroupConfiguration.java index 96992c0873719..daff2b545a696 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedResourceGroupConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedResourceGroupConfiguration.java @@ -5,31 +5,37 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** ManagedResourceGroupConfiguration represents the configuration of the resource group managed by Azure. */ +/** + * ManagedResourceGroupConfiguration represents the configuration of the resource group managed by Azure. + */ @Fluent -public final class ManagedResourceGroupConfiguration { +public final class ManagedResourceGroupConfiguration implements JsonSerializable { /* * The location of the managed resource group. If not specified, the location of the parent resource is chosen. */ - @JsonProperty(value = "location") private String location; /* * The name for the managed resource group. If not specified, the unique name is automatically generated. */ - @JsonProperty(value = "name") private String name; - /** Creates an instance of ManagedResourceGroupConfiguration class. */ + /** + * Creates an instance of ManagedResourceGroupConfiguration class. + */ public ManagedResourceGroupConfiguration() { } /** * Get the location property: The location of the managed resource group. If not specified, the location of the * parent resource is chosen. - * + * * @return the location value. */ public String location() { @@ -39,7 +45,7 @@ public String location() { /** * Set the location property: The location of the managed resource group. If not specified, the location of the * parent resource is chosen. - * + * * @param location the location value to set. * @return the ManagedResourceGroupConfiguration object itself. */ @@ -51,7 +57,7 @@ public ManagedResourceGroupConfiguration withLocation(String location) { /** * Get the name property: The name for the managed resource group. If not specified, the unique name is * automatically generated. - * + * * @return the name value. */ public String name() { @@ -61,7 +67,7 @@ public String name() { /** * Set the name property: The name for the managed resource group. If not specified, the unique name is * automatically generated. - * + * * @param name the name value to set. * @return the ManagedResourceGroupConfiguration object itself. */ @@ -72,9 +78,49 @@ public ManagedResourceGroupConfiguration withName(String name) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeStringField("name", this.name); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedResourceGroupConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedResourceGroupConfiguration if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ManagedResourceGroupConfiguration. + */ + public static ManagedResourceGroupConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedResourceGroupConfiguration deserializedManagedResourceGroupConfiguration + = new ManagedResourceGroupConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("location".equals(fieldName)) { + deserializedManagedResourceGroupConfiguration.location = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedManagedResourceGroupConfiguration.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedResourceGroupConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentity.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentity.java new file mode 100644 index 0000000000000..fd486044d5175 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentity.java @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; +import java.util.UUID; + +/** + * Managed service identity (system assigned and/or user assigned identities). + */ +@Fluent +public final class ManagedServiceIdentity implements JsonSerializable { + /* + * The service principal ID of the system assigned identity. This property will only be provided for a system + * assigned identity. + */ + private UUID principalId; + + /* + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned + * identity. + */ + private UUID tenantId; + + /* + * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + */ + private ManagedServiceIdentityType type; + + /* + * The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will + * be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/ + * userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. + */ + private Map userAssignedIdentities; + + /** + * Creates an instance of ManagedServiceIdentity class. + */ + public ManagedServiceIdentity() { + } + + /** + * Get the principalId property: The service principal ID of the system assigned identity. This property will only + * be provided for a system assigned identity. + * + * @return the principalId value. + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for + * a system assigned identity. + * + * @return the tenantId value. + */ + public UUID tenantId() { + return this.tenantId; + } + + /** + * Get the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are + * allowed). + * + * @return the type value. + */ + public ManagedServiceIdentityType type() { + return this.type; + } + + /** + * Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are + * allowed). + * + * @param type the type value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { + this.type = type; + return this; + } + + /** + * Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The + * userAssignedIdentities dictionary keys will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * The dictionary values can be empty objects ({}) in requests. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The + * userAssignedIdentities dictionary keys will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + * The dictionary values can be empty objects ({}) in requests. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the ManagedServiceIdentity object itself. + */ + public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (type() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property type in model ManagedServiceIdentity")); + } + if (userAssignedIdentities() != null) { + userAssignedIdentities().values().forEach(e -> { + if (e != null) { + e.validate(); + } + }); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedServiceIdentity.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedServiceIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedServiceIdentity if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ManagedServiceIdentity. + */ + public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedServiceIdentity deserializedManagedServiceIdentity = new ManagedServiceIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString()); + } else if ("principalId".equals(fieldName)) { + deserializedManagedServiceIdentity.principalId + = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + } else if ("tenantId".equals(fieldName)) { + deserializedManagedServiceIdentity.tenantId + = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + } else if ("userAssignedIdentities".equals(fieldName)) { + Map userAssignedIdentities + = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1)); + deserializedManagedServiceIdentity.userAssignedIdentities = userAssignedIdentities; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedServiceIdentity; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentitySelectorType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentitySelectorType.java new file mode 100644 index 0000000000000..19bdd386552d6 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentitySelectorType.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of managed identity that is being selected. + */ +public final class ManagedServiceIdentitySelectorType extends ExpandableStringEnum { + /** + * Static value SystemAssignedIdentity for ManagedServiceIdentitySelectorType. + */ + public static final ManagedServiceIdentitySelectorType SYSTEM_ASSIGNED_IDENTITY + = fromString("SystemAssignedIdentity"); + + /** + * Static value UserAssignedIdentity for ManagedServiceIdentitySelectorType. + */ + public static final ManagedServiceIdentitySelectorType USER_ASSIGNED_IDENTITY = fromString("UserAssignedIdentity"); + + /** + * Creates a new instance of ManagedServiceIdentitySelectorType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ManagedServiceIdentitySelectorType() { + } + + /** + * Creates or finds a ManagedServiceIdentitySelectorType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ManagedServiceIdentitySelectorType. + */ + public static ManagedServiceIdentitySelectorType fromString(String name) { + return fromString(name, ManagedServiceIdentitySelectorType.class); + } + + /** + * Gets known ManagedServiceIdentitySelectorType values. + * + * @return known ManagedServiceIdentitySelectorType values. + */ + public static Collection values() { + return values(ManagedServiceIdentitySelectorType.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentityType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentityType.java new file mode 100644 index 0000000000000..0af751383fb49 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ManagedServiceIdentityType.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + */ +public final class ManagedServiceIdentityType extends ExpandableStringEnum { + /** + * Static value None for ManagedServiceIdentityType. + */ + public static final ManagedServiceIdentityType NONE = fromString("None"); + + /** + * Static value SystemAssigned for ManagedServiceIdentityType. + */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); + + /** + * Static value UserAssigned for ManagedServiceIdentityType. + */ + public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** + * Static value SystemAssigned,UserAssigned for ManagedServiceIdentityType. + */ + public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED + = fromString("SystemAssigned,UserAssigned"); + + /** + * Creates a new instance of ManagedServiceIdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ManagedServiceIdentityType() { + } + + /** + * Creates or finds a ManagedServiceIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ManagedServiceIdentityType. + */ + public static ManagedServiceIdentityType fromString(String name) { + return fromString(name, ManagedServiceIdentityType.class); + } + + /** + * Gets known ManagedServiceIdentityType values. + * + * @return known ManagedServiceIdentityType values. + */ + public static Collection values() { + return values(ManagedServiceIdentityType.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MetricsConfigurations.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MetricsConfigurations.java index 18b5746467d97..5310097e95072 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MetricsConfigurations.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/MetricsConfigurations.java @@ -8,45 +8,47 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of MetricsConfigurations. */ +/** + * Resource collection API of MetricsConfigurations. + */ public interface MetricsConfigurations { /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of metrics configurations for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of metrics configurations for the provided cluster as paginated response with + * {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName); /** * List metrics configurations of the cluster. - * - *

Get a list of metrics configurations for the provided cluster. - * + * + * Get a list of metrics configurations for the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of metrics configurations for the provided cluster as paginated response with {@link - * PagedIterable}. + * @return a list of metrics configurations for the provided cluster as paginated response with + * {@link PagedIterable}. */ PagedIterable listByCluster(String resourceGroupName, String clusterName, Context context); /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -61,9 +63,9 @@ Response getWithResponse(String resourceGroupName, /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -76,23 +78,24 @@ Response getWithResponse(String resourceGroupName, /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterName, String metricsConfigurationName); + OperationStatusResult delete(String resourceGroupName, String clusterName, String metricsConfigurationName); /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param metricsConfigurationName The name of the metrics configuration for the cluster. @@ -100,14 +103,16 @@ Response getWithResponse(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String clusterName, String metricsConfigurationName, Context context); + OperationStatusResult delete(String resourceGroupName, String clusterName, String metricsConfigurationName, + Context context); /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -118,9 +123,9 @@ Response getWithResponse(String resourceGroupName, /** * Retrieve the metrics configuration of the cluster. - * - *

Get metrics configuration of the provided cluster. - * + * + * Get metrics configuration of the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,32 +137,34 @@ Response getWithResponse(String resourceGroupName, /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the metrics configuration of the cluster. - * - *

Delete the metrics configuration of the provided cluster. - * + * + * Delete the metrics configuration of the provided cluster. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new ClusterMetricsConfiguration resource. - * + * * @param name resource name. * @return the first stage of the new ClusterMetricsConfiguration definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkAttachment.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkAttachment.java index b127733374edf..8184d2325dd06 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkAttachment.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkAttachment.java @@ -6,16 +6,21 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** NetworkAttachment represents the single network attachment. */ +/** + * NetworkAttachment represents the single network attachment. + */ @Fluent -public final class NetworkAttachment { +public final class NetworkAttachment implements JsonSerializable { /* * The resource ID of the associated network attached to the virtual machine. * It can be one of cloudServicesNetwork, l3Network, l2Network or trunkedNetwork resources. */ - @JsonProperty(value = "attachedNetworkId", required = true) private String attachedNetworkId; /* @@ -23,7 +28,6 @@ public final class NetworkAttachment { * Only one of the attached networks (including the CloudServicesNetwork attachment) for a single machine may be * specified as True. */ - @JsonProperty(value = "defaultGateway") private DefaultGateway defaultGateway; /* @@ -31,14 +35,13 @@ public final class NetworkAttachment { * Dynamic and Static are only valid for l3Network which may also specify Disabled. * Otherwise, Disabled is the only permitted value. */ - @JsonProperty(value = "ipAllocationMethod", required = true) private VirtualMachineIpAllocationMethod ipAllocationMethod; /* * The IPv4 address of the virtual machine. - * + * * This field is used only if the attached network has IPAllocationType of IPV4 or DualStack. - * + * * If IPAllocationMethod is: * Static - this field must contain a user specified IPv4 address from within the subnet specified in the attached * network. @@ -46,27 +49,24 @@ public final class NetworkAttachment { * attached network. * Disabled - this field will be empty. */ - @JsonProperty(value = "ipv4Address") private String ipv4Address; /* * The IPv6 address of the virtual machine. - * + * * This field is used only if the attached network has IPAllocationType of IPV6 or DualStack. - * + * * If IPAllocationMethod is: * Static - this field must contain an IPv6 address range from within the range specified in the attached network. * Dynamic - this field is read-only, but will be populated with an range from within the subnet specified in the * attached network. * Disabled - this field will be empty. */ - @JsonProperty(value = "ipv6Address") private String ipv6Address; /* * The MAC address of the interface for the virtual machine that corresponds to this network attachment. */ - @JsonProperty(value = "macAddress", access = JsonProperty.Access.WRITE_ONLY) private String macAddress; /* @@ -76,17 +76,18 @@ public final class NetworkAttachment { * If the user doesn’t specify this value, the default interface name of the network resource will be used. * For a CloudServicesNetwork resource, this name will be ignored. */ - @JsonProperty(value = "networkAttachmentName") private String networkAttachmentName; - /** Creates an instance of NetworkAttachment class. */ + /** + * Creates an instance of NetworkAttachment class. + */ public NetworkAttachment() { } /** - * Get the attachedNetworkId property: The resource ID of the associated network attached to the virtual machine. It - * can be one of cloudServicesNetwork, l3Network, l2Network or trunkedNetwork resources. - * + * Get the attachedNetworkId property: The resource ID of the associated network attached to the virtual machine. + * It can be one of cloudServicesNetwork, l3Network, l2Network or trunkedNetwork resources. + * * @return the attachedNetworkId value. */ public String attachedNetworkId() { @@ -94,9 +95,9 @@ public String attachedNetworkId() { } /** - * Set the attachedNetworkId property: The resource ID of the associated network attached to the virtual machine. It - * can be one of cloudServicesNetwork, l3Network, l2Network or trunkedNetwork resources. - * + * Set the attachedNetworkId property: The resource ID of the associated network attached to the virtual machine. + * It can be one of cloudServicesNetwork, l3Network, l2Network or trunkedNetwork resources. + * * @param attachedNetworkId the attachedNetworkId value to set. * @return the NetworkAttachment object itself. */ @@ -106,9 +107,10 @@ public NetworkAttachment withAttachedNetworkId(String attachedNetworkId) { } /** - * Get the defaultGateway property: The indicator of whether this is the default gateway. Only one of the attached - * networks (including the CloudServicesNetwork attachment) for a single machine may be specified as True. - * + * Get the defaultGateway property: The indicator of whether this is the default gateway. + * Only one of the attached networks (including the CloudServicesNetwork attachment) for a single machine may be + * specified as True. + * * @return the defaultGateway value. */ public DefaultGateway defaultGateway() { @@ -116,9 +118,10 @@ public DefaultGateway defaultGateway() { } /** - * Set the defaultGateway property: The indicator of whether this is the default gateway. Only one of the attached - * networks (including the CloudServicesNetwork attachment) for a single machine may be specified as True. - * + * Set the defaultGateway property: The indicator of whether this is the default gateway. + * Only one of the attached networks (including the CloudServicesNetwork attachment) for a single machine may be + * specified as True. + * * @param defaultGateway the defaultGateway value to set. * @return the NetworkAttachment object itself. */ @@ -128,9 +131,10 @@ public NetworkAttachment withDefaultGateway(DefaultGateway defaultGateway) { } /** - * Get the ipAllocationMethod property: The IP allocation mechanism for the virtual machine. Dynamic and Static are - * only valid for l3Network which may also specify Disabled. Otherwise, Disabled is the only permitted value. - * + * Get the ipAllocationMethod property: The IP allocation mechanism for the virtual machine. + * Dynamic and Static are only valid for l3Network which may also specify Disabled. + * Otherwise, Disabled is the only permitted value. + * * @return the ipAllocationMethod value. */ public VirtualMachineIpAllocationMethod ipAllocationMethod() { @@ -138,9 +142,10 @@ public VirtualMachineIpAllocationMethod ipAllocationMethod() { } /** - * Set the ipAllocationMethod property: The IP allocation mechanism for the virtual machine. Dynamic and Static are - * only valid for l3Network which may also specify Disabled. Otherwise, Disabled is the only permitted value. - * + * Set the ipAllocationMethod property: The IP allocation mechanism for the virtual machine. + * Dynamic and Static are only valid for l3Network which may also specify Disabled. + * Otherwise, Disabled is the only permitted value. + * * @param ipAllocationMethod the ipAllocationMethod value to set. * @return the NetworkAttachment object itself. */ @@ -151,13 +156,16 @@ public NetworkAttachment withIpAllocationMethod(VirtualMachineIpAllocationMethod /** * Get the ipv4Address property: The IPv4 address of the virtual machine. - * - *

This field is used only if the attached network has IPAllocationType of IPV4 or DualStack. - * - *

If IPAllocationMethod is: Static - this field must contain a user specified IPv4 address from within the - * subnet specified in the attached network. Dynamic - this field is read-only, but will be populated with an - * address from within the subnet specified in the attached network. Disabled - this field will be empty. - * + * + * This field is used only if the attached network has IPAllocationType of IPV4 or DualStack. + * + * If IPAllocationMethod is: + * Static - this field must contain a user specified IPv4 address from within the subnet specified in the attached + * network. + * Dynamic - this field is read-only, but will be populated with an address from within the subnet specified in the + * attached network. + * Disabled - this field will be empty. + * * @return the ipv4Address value. */ public String ipv4Address() { @@ -166,13 +174,16 @@ public String ipv4Address() { /** * Set the ipv4Address property: The IPv4 address of the virtual machine. - * - *

This field is used only if the attached network has IPAllocationType of IPV4 or DualStack. - * - *

If IPAllocationMethod is: Static - this field must contain a user specified IPv4 address from within the - * subnet specified in the attached network. Dynamic - this field is read-only, but will be populated with an - * address from within the subnet specified in the attached network. Disabled - this field will be empty. - * + * + * This field is used only if the attached network has IPAllocationType of IPV4 or DualStack. + * + * If IPAllocationMethod is: + * Static - this field must contain a user specified IPv4 address from within the subnet specified in the attached + * network. + * Dynamic - this field is read-only, but will be populated with an address from within the subnet specified in the + * attached network. + * Disabled - this field will be empty. + * * @param ipv4Address the ipv4Address value to set. * @return the NetworkAttachment object itself. */ @@ -183,13 +194,15 @@ public NetworkAttachment withIpv4Address(String ipv4Address) { /** * Get the ipv6Address property: The IPv6 address of the virtual machine. - * - *

This field is used only if the attached network has IPAllocationType of IPV6 or DualStack. - * - *

If IPAllocationMethod is: Static - this field must contain an IPv6 address range from within the range - * specified in the attached network. Dynamic - this field is read-only, but will be populated with an range from - * within the subnet specified in the attached network. Disabled - this field will be empty. - * + * + * This field is used only if the attached network has IPAllocationType of IPV6 or DualStack. + * + * If IPAllocationMethod is: + * Static - this field must contain an IPv6 address range from within the range specified in the attached network. + * Dynamic - this field is read-only, but will be populated with an range from within the subnet specified in the + * attached network. + * Disabled - this field will be empty. + * * @return the ipv6Address value. */ public String ipv6Address() { @@ -198,13 +211,15 @@ public String ipv6Address() { /** * Set the ipv6Address property: The IPv6 address of the virtual machine. - * - *

This field is used only if the attached network has IPAllocationType of IPV6 or DualStack. - * - *

If IPAllocationMethod is: Static - this field must contain an IPv6 address range from within the range - * specified in the attached network. Dynamic - this field is read-only, but will be populated with an range from - * within the subnet specified in the attached network. Disabled - this field will be empty. - * + * + * This field is used only if the attached network has IPAllocationType of IPV6 or DualStack. + * + * If IPAllocationMethod is: + * Static - this field must contain an IPv6 address range from within the range specified in the attached network. + * Dynamic - this field is read-only, but will be populated with an range from within the subnet specified in the + * attached network. + * Disabled - this field will be empty. + * * @param ipv6Address the ipv6Address value to set. * @return the NetworkAttachment object itself. */ @@ -216,7 +231,7 @@ public NetworkAttachment withIpv6Address(String ipv6Address) { /** * Get the macAddress property: The MAC address of the interface for the virtual machine that corresponds to this * network attachment. - * + * * @return the macAddress value. */ public String macAddress() { @@ -224,11 +239,12 @@ public String macAddress() { } /** - * Get the networkAttachmentName property: The associated network's interface name. If specified, the network - * attachment name has a maximum length of 15 characters and must be unique to this virtual machine. If the user - * doesn’t specify this value, the default interface name of the network resource will be used. For a - * CloudServicesNetwork resource, this name will be ignored. - * + * Get the networkAttachmentName property: The associated network's interface name. + * If specified, the network attachment name has a maximum length of 15 characters and must be unique to this + * virtual machine. + * If the user doesn’t specify this value, the default interface name of the network resource will be used. + * For a CloudServicesNetwork resource, this name will be ignored. + * * @return the networkAttachmentName value. */ public String networkAttachmentName() { @@ -236,11 +252,12 @@ public String networkAttachmentName() { } /** - * Set the networkAttachmentName property: The associated network's interface name. If specified, the network - * attachment name has a maximum length of 15 characters and must be unique to this virtual machine. If the user - * doesn’t specify this value, the default interface name of the network resource will be used. For a - * CloudServicesNetwork resource, this name will be ignored. - * + * Set the networkAttachmentName property: The associated network's interface name. + * If specified, the network attachment name has a maximum length of 15 characters and must be unique to this + * virtual machine. + * If the user doesn’t specify this value, the default interface name of the network resource will be used. + * For a CloudServicesNetwork resource, this name will be ignored. + * * @param networkAttachmentName the networkAttachmentName value to set. * @return the NetworkAttachment object itself. */ @@ -251,19 +268,78 @@ public NetworkAttachment withNetworkAttachmentName(String networkAttachmentName) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (attachedNetworkId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property attachedNetworkId in model NetworkAttachment")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property attachedNetworkId in model NetworkAttachment")); } if (ipAllocationMethod() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ipAllocationMethod in model NetworkAttachment")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ipAllocationMethod in model NetworkAttachment")); } } private static final ClientLogger LOGGER = new ClientLogger(NetworkAttachment.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("attachedNetworkId", this.attachedNetworkId); + jsonWriter.writeStringField("ipAllocationMethod", + this.ipAllocationMethod == null ? null : this.ipAllocationMethod.toString()); + jsonWriter.writeStringField("defaultGateway", + this.defaultGateway == null ? null : this.defaultGateway.toString()); + jsonWriter.writeStringField("ipv4Address", this.ipv4Address); + jsonWriter.writeStringField("ipv6Address", this.ipv6Address); + jsonWriter.writeStringField("networkAttachmentName", this.networkAttachmentName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkAttachment from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkAttachment if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the NetworkAttachment. + */ + public static NetworkAttachment fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkAttachment deserializedNetworkAttachment = new NetworkAttachment(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("attachedNetworkId".equals(fieldName)) { + deserializedNetworkAttachment.attachedNetworkId = reader.getString(); + } else if ("ipAllocationMethod".equals(fieldName)) { + deserializedNetworkAttachment.ipAllocationMethod + = VirtualMachineIpAllocationMethod.fromString(reader.getString()); + } else if ("defaultGateway".equals(fieldName)) { + deserializedNetworkAttachment.defaultGateway = DefaultGateway.fromString(reader.getString()); + } else if ("ipv4Address".equals(fieldName)) { + deserializedNetworkAttachment.ipv4Address = reader.getString(); + } else if ("ipv6Address".equals(fieldName)) { + deserializedNetworkAttachment.ipv6Address = reader.getString(); + } else if ("macAddress".equals(fieldName)) { + deserializedNetworkAttachment.macAddress = reader.getString(); + } else if ("networkAttachmentName".equals(fieldName)) { + deserializedNetworkAttachment.networkAttachmentName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkAttachment; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkConfiguration.java index bf795ceef4071..d13e0443f66fd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkConfiguration.java @@ -6,73 +6,74 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** NetworkConfiguration specifies the Kubernetes cluster network related configuration. */ +/** + * NetworkConfiguration specifies the Kubernetes cluster network related configuration. + */ @Fluent -public final class NetworkConfiguration { +public final class NetworkConfiguration implements JsonSerializable { /* - * AttachedNetworkConfiguration represents the set of workload networks to attach to a resource. - * * The configuration of networks being attached to the cluster for use by the workloads that run on this Kubernetes * cluster. */ - @JsonProperty(value = "attachedNetworkConfiguration") private AttachedNetworkConfiguration attachedNetworkConfiguration; /* - * BgpServiceLoadBalancerConfiguration represents the configuration of a BGP service load balancer. - * - * The configuration of the BGP service load balancer for this Kubernetes cluster. + * The configuration of the BGP service load balancer for this Kubernetes cluster. A maximum of one service load + * balancer may be specified, either Layer 2 or BGP. */ - @JsonProperty(value = "bgpServiceLoadBalancerConfiguration") private BgpServiceLoadBalancerConfiguration bgpServiceLoadBalancerConfiguration; /* * The resource ID of the associated Cloud Services network. */ - @JsonProperty(value = "cloudServicesNetworkId", required = true) private String cloudServicesNetworkId; /* * The resource ID of the Layer 3 network that is used for creation of the Container Networking Interface network. */ - @JsonProperty(value = "cniNetworkId", required = true) private String cniNetworkId; /* * The IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range * specified in service CIDR. */ - @JsonProperty(value = "dnsServiceIp") private String dnsServiceIp; + /* + * The configuration of the Layer 2 service load balancer for this Kubernetes cluster. A maximum of one service load + * balancer may be specified, either Layer 2 or BGP. + */ + private L2ServiceLoadBalancerConfiguration l2ServiceLoadBalancerConfiguration; + /* * The CIDR notation IP ranges from which to assign pod IPs. One IPv4 CIDR is expected for single-stack networking. * Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */ - @JsonProperty(value = "podCidrs") private List podCidrs; /* * The CIDR notation IP ranges from which to assign service IPs. One IPv4 CIDR is expected for single-stack * networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */ - @JsonProperty(value = "serviceCidrs") private List serviceCidrs; - /** Creates an instance of NetworkConfiguration class. */ + /** + * Creates an instance of NetworkConfiguration class. + */ public NetworkConfiguration() { } /** - * Get the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the cluster for use by the workloads that run on this - * Kubernetes cluster. - * + * Get the attachedNetworkConfiguration property: The configuration of networks being attached to the cluster for + * use by the workloads that run on this Kubernetes cluster. + * * @return the attachedNetworkConfiguration value. */ public AttachedNetworkConfiguration attachedNetworkConfiguration() { @@ -80,12 +81,9 @@ public AttachedNetworkConfiguration attachedNetworkConfiguration() { } /** - * Set the attachedNetworkConfiguration property: AttachedNetworkConfiguration represents the set of workload - * networks to attach to a resource. - * - *

The configuration of networks being attached to the cluster for use by the workloads that run on this - * Kubernetes cluster. - * + * Set the attachedNetworkConfiguration property: The configuration of networks being attached to the cluster for + * use by the workloads that run on this Kubernetes cluster. + * * @param attachedNetworkConfiguration the attachedNetworkConfiguration value to set. * @return the NetworkConfiguration object itself. */ @@ -96,11 +94,9 @@ public AttachedNetworkConfiguration attachedNetworkConfiguration() { } /** - * Get the bgpServiceLoadBalancerConfiguration property: BgpServiceLoadBalancerConfiguration represents the - * configuration of a BGP service load balancer. - * - *

The configuration of the BGP service load balancer for this Kubernetes cluster. - * + * Get the bgpServiceLoadBalancerConfiguration property: The configuration of the BGP service load balancer for this + * Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. + * * @return the bgpServiceLoadBalancerConfiguration value. */ public BgpServiceLoadBalancerConfiguration bgpServiceLoadBalancerConfiguration() { @@ -108,11 +104,9 @@ public BgpServiceLoadBalancerConfiguration bgpServiceLoadBalancerConfiguration() } /** - * Set the bgpServiceLoadBalancerConfiguration property: BgpServiceLoadBalancerConfiguration represents the - * configuration of a BGP service load balancer. - * - *

The configuration of the BGP service load balancer for this Kubernetes cluster. - * + * Set the bgpServiceLoadBalancerConfiguration property: The configuration of the BGP service load balancer for this + * Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. + * * @param bgpServiceLoadBalancerConfiguration the bgpServiceLoadBalancerConfiguration value to set. * @return the NetworkConfiguration object itself. */ @@ -124,7 +118,7 @@ public NetworkConfiguration withBgpServiceLoadBalancerConfiguration( /** * Get the cloudServicesNetworkId property: The resource ID of the associated Cloud Services network. - * + * * @return the cloudServicesNetworkId value. */ public String cloudServicesNetworkId() { @@ -133,7 +127,7 @@ public String cloudServicesNetworkId() { /** * Set the cloudServicesNetworkId property: The resource ID of the associated Cloud Services network. - * + * * @param cloudServicesNetworkId the cloudServicesNetworkId value to set. * @return the NetworkConfiguration object itself. */ @@ -145,7 +139,7 @@ public NetworkConfiguration withCloudServicesNetworkId(String cloudServicesNetwo /** * Get the cniNetworkId property: The resource ID of the Layer 3 network that is used for creation of the Container * Networking Interface network. - * + * * @return the cniNetworkId value. */ public String cniNetworkId() { @@ -155,7 +149,7 @@ public String cniNetworkId() { /** * Set the cniNetworkId property: The resource ID of the Layer 3 network that is used for creation of the Container * Networking Interface network. - * + * * @param cniNetworkId the cniNetworkId value to set. * @return the NetworkConfiguration object itself. */ @@ -167,7 +161,7 @@ public NetworkConfiguration withCniNetworkId(String cniNetworkId) { /** * Get the dnsServiceIp property: The IP address assigned to the Kubernetes DNS service. It must be within the * Kubernetes service address range specified in service CIDR. - * + * * @return the dnsServiceIp value. */ public String dnsServiceIp() { @@ -177,7 +171,7 @@ public String dnsServiceIp() { /** * Set the dnsServiceIp property: The IP address assigned to the Kubernetes DNS service. It must be within the * Kubernetes service address range specified in service CIDR. - * + * * @param dnsServiceIp the dnsServiceIp value to set. * @return the NetworkConfiguration object itself. */ @@ -186,11 +180,34 @@ public NetworkConfiguration withDnsServiceIp(String dnsServiceIp) { return this; } + /** + * Get the l2ServiceLoadBalancerConfiguration property: The configuration of the Layer 2 service load balancer for + * this Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. + * + * @return the l2ServiceLoadBalancerConfiguration value. + */ + public L2ServiceLoadBalancerConfiguration l2ServiceLoadBalancerConfiguration() { + return this.l2ServiceLoadBalancerConfiguration; + } + + /** + * Set the l2ServiceLoadBalancerConfiguration property: The configuration of the Layer 2 service load balancer for + * this Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. + * + * @param l2ServiceLoadBalancerConfiguration the l2ServiceLoadBalancerConfiguration value to set. + * @return the NetworkConfiguration object itself. + */ + public NetworkConfiguration + withL2ServiceLoadBalancerConfiguration(L2ServiceLoadBalancerConfiguration l2ServiceLoadBalancerConfiguration) { + this.l2ServiceLoadBalancerConfiguration = l2ServiceLoadBalancerConfiguration; + return this; + } + /** * Get the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs. One IPv4 CIDR is expected * for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack * networking. - * + * * @return the podCidrs value. */ public List podCidrs() { @@ -201,7 +218,7 @@ public List podCidrs() { * Set the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs. One IPv4 CIDR is expected * for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack * networking. - * + * * @param podCidrs the podCidrs value to set. * @return the NetworkConfiguration object itself. */ @@ -214,7 +231,7 @@ public NetworkConfiguration withPodCidrs(List podCidrs) { * Get the serviceCidrs property: The CIDR notation IP ranges from which to assign service IPs. One IPv4 CIDR is * expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack * networking. - * + * * @return the serviceCidrs value. */ public List serviceCidrs() { @@ -225,7 +242,7 @@ public List serviceCidrs() { * Set the serviceCidrs property: The CIDR notation IP ranges from which to assign service IPs. One IPv4 CIDR is * expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack * networking. - * + * * @param serviceCidrs the serviceCidrs value to set. * @return the NetworkConfiguration object itself. */ @@ -236,7 +253,7 @@ public NetworkConfiguration withServiceCidrs(List serviceCidrs) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -247,14 +264,82 @@ public void validate() { bgpServiceLoadBalancerConfiguration().validate(); } if (cloudServicesNetworkId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property cloudServicesNetworkId in model NetworkConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property cloudServicesNetworkId in model NetworkConfiguration")); } if (cniNetworkId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property cniNetworkId in model NetworkConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property cniNetworkId in model NetworkConfiguration")); + } + if (l2ServiceLoadBalancerConfiguration() != null) { + l2ServiceLoadBalancerConfiguration().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(NetworkConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("cloudServicesNetworkId", this.cloudServicesNetworkId); + jsonWriter.writeStringField("cniNetworkId", this.cniNetworkId); + jsonWriter.writeJsonField("attachedNetworkConfiguration", this.attachedNetworkConfiguration); + jsonWriter.writeJsonField("bgpServiceLoadBalancerConfiguration", this.bgpServiceLoadBalancerConfiguration); + jsonWriter.writeStringField("dnsServiceIp", this.dnsServiceIp); + jsonWriter.writeJsonField("l2ServiceLoadBalancerConfiguration", this.l2ServiceLoadBalancerConfiguration); + jsonWriter.writeArrayField("podCidrs", this.podCidrs, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("serviceCidrs", this.serviceCidrs, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkConfiguration if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the NetworkConfiguration. + */ + public static NetworkConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkConfiguration deserializedNetworkConfiguration = new NetworkConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cloudServicesNetworkId".equals(fieldName)) { + deserializedNetworkConfiguration.cloudServicesNetworkId = reader.getString(); + } else if ("cniNetworkId".equals(fieldName)) { + deserializedNetworkConfiguration.cniNetworkId = reader.getString(); + } else if ("attachedNetworkConfiguration".equals(fieldName)) { + deserializedNetworkConfiguration.attachedNetworkConfiguration + = AttachedNetworkConfiguration.fromJson(reader); + } else if ("bgpServiceLoadBalancerConfiguration".equals(fieldName)) { + deserializedNetworkConfiguration.bgpServiceLoadBalancerConfiguration + = BgpServiceLoadBalancerConfiguration.fromJson(reader); + } else if ("dnsServiceIp".equals(fieldName)) { + deserializedNetworkConfiguration.dnsServiceIp = reader.getString(); + } else if ("l2ServiceLoadBalancerConfiguration".equals(fieldName)) { + deserializedNetworkConfiguration.l2ServiceLoadBalancerConfiguration + = L2ServiceLoadBalancerConfiguration.fromJson(reader); + } else if ("podCidrs".equals(fieldName)) { + List podCidrs = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkConfiguration.podCidrs = podCidrs; + } else if ("serviceCidrs".equals(fieldName)) { + List serviceCidrs = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkConfiguration.serviceCidrs = serviceCidrs; + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkInterface.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkInterface.java index fd75e0077f2ff..228606234d535 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkInterface.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NetworkInterface.java @@ -5,60 +5,61 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** NetworkInterface represents properties of the network interface. */ +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * NetworkInterface represents properties of the network interface. + */ @Immutable -public final class NetworkInterface { +public final class NetworkInterface implements JsonSerializable { /* * The partial address of Peripheral Component Interconnect (PCI). */ - @JsonProperty(value = "address", access = JsonProperty.Access.WRITE_ONLY) private String address; /* * The connection type of the device. */ - @JsonProperty(value = "deviceConnectionType", access = JsonProperty.Access.WRITE_ONLY) private DeviceConnectionType deviceConnectionType; /* * The model name of the device. */ - @JsonProperty(value = "model", access = JsonProperty.Access.WRITE_ONLY) private String model; /* * The physical slot for this device. */ - @JsonProperty(value = "physicalSlot", access = JsonProperty.Access.WRITE_ONLY) private Long physicalSlot; /* * The number of ports on the device. */ - @JsonProperty(value = "portCount", access = JsonProperty.Access.WRITE_ONLY) private Long portCount; /* - * The maximum amount of data in GB that the line card transmits through a port at any given second. + * The maximum amount of data in gigabits that the line card transmits through a port at any given second. */ - @JsonProperty(value = "portSpeed", access = JsonProperty.Access.WRITE_ONLY) private Long portSpeed; /* * The vendor name of the device. */ - @JsonProperty(value = "vendor", access = JsonProperty.Access.WRITE_ONLY) private String vendor; - /** Creates an instance of NetworkInterface class. */ + /** + * Creates an instance of NetworkInterface class. + */ public NetworkInterface() { } /** * Get the address property: The partial address of Peripheral Component Interconnect (PCI). - * + * * @return the address value. */ public String address() { @@ -67,7 +68,7 @@ public String address() { /** * Get the deviceConnectionType property: The connection type of the device. - * + * * @return the deviceConnectionType value. */ public DeviceConnectionType deviceConnectionType() { @@ -76,7 +77,7 @@ public DeviceConnectionType deviceConnectionType() { /** * Get the model property: The model name of the device. - * + * * @return the model value. */ public String model() { @@ -85,7 +86,7 @@ public String model() { /** * Get the physicalSlot property: The physical slot for this device. - * + * * @return the physicalSlot value. */ public Long physicalSlot() { @@ -94,7 +95,7 @@ public Long physicalSlot() { /** * Get the portCount property: The number of ports on the device. - * + * * @return the portCount value. */ public Long portCount() { @@ -102,9 +103,9 @@ public Long portCount() { } /** - * Get the portSpeed property: The maximum amount of data in GB that the line card transmits through a port at any - * given second. - * + * Get the portSpeed property: The maximum amount of data in gigabits that the line card transmits through a port at + * any given second. + * * @return the portSpeed value. */ public Long portSpeed() { @@ -113,7 +114,7 @@ public Long portSpeed() { /** * Get the vendor property: The vendor name of the device. - * + * * @return the vendor value. */ public String vendor() { @@ -122,9 +123,57 @@ public String vendor() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkInterface from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkInterface if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkInterface. + */ + public static NetworkInterface fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkInterface deserializedNetworkInterface = new NetworkInterface(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("address".equals(fieldName)) { + deserializedNetworkInterface.address = reader.getString(); + } else if ("deviceConnectionType".equals(fieldName)) { + deserializedNetworkInterface.deviceConnectionType + = DeviceConnectionType.fromString(reader.getString()); + } else if ("model".equals(fieldName)) { + deserializedNetworkInterface.model = reader.getString(); + } else if ("physicalSlot".equals(fieldName)) { + deserializedNetworkInterface.physicalSlot = reader.getNullable(JsonReader::getLong); + } else if ("portCount".equals(fieldName)) { + deserializedNetworkInterface.portCount = reader.getNullable(JsonReader::getLong); + } else if ("portSpeed".equals(fieldName)) { + deserializedNetworkInterface.portSpeed = reader.getNullable(JsonReader::getLong); + } else if ("vendor".equals(fieldName)) { + deserializedNetworkInterface.vendor = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkInterface; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Nic.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Nic.java index e1ffb72901fed..c774de37610a9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Nic.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Nic.java @@ -5,42 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Type Deprecated. Will be removed in an upcoming version. Nic represents the network interface card details. */ +/** + * Type Deprecated. Will be removed in an upcoming version. Nic represents the network interface card details. + */ @Immutable -public final class Nic { +public final class Nic implements JsonSerializable { /* - * Type Deprecated. Will be removed in an upcoming version. LldpNeighbor represents the details about the device - * connected to the NIC. - * * The information about the device connected to this NIC. */ - @JsonProperty(value = "lldpNeighbor", access = JsonProperty.Access.WRITE_ONLY) private LldpNeighbor lldpNeighbor; /* * The MAC address associated with this NIC. */ - @JsonProperty(value = "macAddress", access = JsonProperty.Access.WRITE_ONLY) private String macAddress; /* * The name of the NIC/interface. */ - @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; - /** Creates an instance of Nic class. */ + /** + * Creates an instance of Nic class. + */ public Nic() { } /** - * Get the lldpNeighbor property: Type Deprecated. Will be removed in an upcoming version. LldpNeighbor represents - * the details about the device connected to the NIC. - * - *

The information about the device connected to this NIC. - * + * Get the lldpNeighbor property: The information about the device connected to this NIC. + * * @return the lldpNeighbor value. */ public LldpNeighbor lldpNeighbor() { @@ -49,7 +48,7 @@ public LldpNeighbor lldpNeighbor() { /** * Get the macAddress property: The MAC address associated with this NIC. - * + * * @return the macAddress value. */ public String macAddress() { @@ -58,7 +57,7 @@ public String macAddress() { /** * Get the name property: The name of the NIC/interface. - * + * * @return the name value. */ public String name() { @@ -67,7 +66,7 @@ public String name() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -75,4 +74,43 @@ public void validate() { lldpNeighbor().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Nic from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Nic if the JsonReader was pointing to an instance of it, or null if it was pointing to + * JSON null. + * @throws IOException If an error occurs while reading the Nic. + */ + public static Nic fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Nic deserializedNic = new Nic(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("lldpNeighbor".equals(fieldName)) { + deserializedNic.lldpNeighbor = LldpNeighbor.fromJson(reader); + } else if ("macAddress".equals(fieldName)) { + deserializedNic.macAddress = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedNic.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNic; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NodePoolAdministratorConfigurationPatch.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NodePoolAdministratorConfigurationPatch.java new file mode 100644 index 0000000000000..2f1d5d223058a --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/NodePoolAdministratorConfigurationPatch.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * NodePoolAdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. + */ +@Fluent +public final class NodePoolAdministratorConfigurationPatch + implements JsonSerializable { + /* + * SshPublicKey represents the public key used to authenticate with a resource through SSH. + */ + private List sshPublicKeys; + + /** + * Creates an instance of NodePoolAdministratorConfigurationPatch class. + */ + public NodePoolAdministratorConfigurationPatch() { + } + + /** + * Get the sshPublicKeys property: SshPublicKey represents the public key used to authenticate with a resource + * through SSH. + * + * @return the sshPublicKeys value. + */ + public List sshPublicKeys() { + return this.sshPublicKeys; + } + + /** + * Set the sshPublicKeys property: SshPublicKey represents the public key used to authenticate with a resource + * through SSH. + * + * @param sshPublicKeys the sshPublicKeys value to set. + * @return the NodePoolAdministratorConfigurationPatch object itself. + */ + public NodePoolAdministratorConfigurationPatch withSshPublicKeys(List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sshPublicKeys() != null) { + sshPublicKeys().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("sshPublicKeys", this.sshPublicKeys, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodePoolAdministratorConfigurationPatch from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodePoolAdministratorConfigurationPatch if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NodePoolAdministratorConfigurationPatch. + */ + public static NodePoolAdministratorConfigurationPatch fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodePoolAdministratorConfigurationPatch deserializedNodePoolAdministratorConfigurationPatch + = new NodePoolAdministratorConfigurationPatch(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sshPublicKeys".equals(fieldName)) { + List sshPublicKeys = reader.readArray(reader1 -> SshPublicKey.fromJson(reader1)); + deserializedNodePoolAdministratorConfigurationPatch.sshPublicKeys = sshPublicKeys; + } else { + reader.skipChildren(); + } + } + + return deserializedNodePoolAdministratorConfigurationPatch; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operation.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operation.java index a8094260521c4..ea71ec7e377e2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operation.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operation.java @@ -6,12 +6,14 @@ import com.azure.resourcemanager.networkcloud.fluent.models.OperationInner; -/** An immutable client-side representation of Operation. */ +/** + * An immutable client-side representation of Operation. + */ public interface Operation { /** * Gets the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". - * + * * @return the name value. */ String name(); @@ -19,14 +21,14 @@ public interface Operation { /** * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane * operations and "false" for ARM/control-plane operations. - * + * * @return the isDataAction value. */ Boolean isDataAction(); /** * Gets the display property: Localized display information for this particular operation. - * + * * @return the display value. */ OperationDisplay display(); @@ -34,7 +36,7 @@ public interface Operation { /** * Gets the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and * audit logs UX. Default value is "user,system". - * + * * @return the origin value. */ Origin origin(); @@ -42,14 +44,14 @@ public interface Operation { /** * Gets the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal * only APIs. - * + * * @return the actionType value. */ ActionType actionType(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.OperationInner object. - * + * * @return the inner object. */ OperationInner innerModel(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationDisplay.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationDisplay.java index 570f1e40a76d1..c7493a7208d17 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationDisplay.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationDisplay.java @@ -5,46 +5,50 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** Localized display information for this particular operation. */ +/** + * Localized display information for this particular operation. + */ @Immutable -public final class OperationDisplay { +public final class OperationDisplay implements JsonSerializable { /* - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft - * Compute". + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or + * "Microsoft Compute". */ - @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) private String provider; /* - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job - * Schedule Collections". + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or + * "Job Schedule Collections". */ - @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) private String resource; /* - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual - * Machine", "Restart Virtual Machine". + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. + * "Create or Update Virtual Machine", "Restart Virtual Machine". */ - @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) private String operation; /* * The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; - /** Creates an instance of OperationDisplay class. */ + /** + * Creates an instance of OperationDisplay class. + */ public OperationDisplay() { } /** * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring * Insights" or "Microsoft Compute". - * + * * @return the provider value. */ public String provider() { @@ -54,7 +58,7 @@ public String provider() { /** * Get the resource property: The localized friendly name of the resource type related to this operation. E.g. * "Virtual Machines" or "Job Schedule Collections". - * + * * @return the resource value. */ public String resource() { @@ -64,7 +68,7 @@ public String resource() { /** * Get the operation property: The concise, localized friendly name for the operation; suitable for dropdowns. E.g. * "Create or Update Virtual Machine", "Restart Virtual Machine". - * + * * @return the operation value. */ public String operation() { @@ -74,7 +78,7 @@ public String operation() { /** * Get the description property: The short, localized friendly description of the operation; suitable for tool tips * and detailed views. - * + * * @return the description value. */ public String description() { @@ -83,9 +87,50 @@ public String description() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationDisplay from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationDisplay if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationDisplay. + */ + public static OperationDisplay fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationDisplay deserializedOperationDisplay = new OperationDisplay(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provider".equals(fieldName)) { + deserializedOperationDisplay.provider = reader.getString(); + } else if ("resource".equals(fieldName)) { + deserializedOperationDisplay.resource = reader.getString(); + } else if ("operation".equals(fieldName)) { + deserializedOperationDisplay.operation = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedOperationDisplay.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationDisplay; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationListResult.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationListResult.java index ec41868b62e51..c076af51730bd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationListResult.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationListResult.java @@ -5,8 +5,12 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.OperationInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; /** @@ -14,26 +18,26 @@ * results. */ @Immutable -public final class OperationListResult { +public final class OperationListResult implements JsonSerializable { /* * List of operations supported by the resource provider */ - @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private List value; /* * URL to get the next set of operation list results (if there are any). */ - @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of OperationListResult class. */ + /** + * Creates an instance of OperationListResult class. + */ public OperationListResult() { } /** * Get the value property: List of operations supported by the resource provider. - * + * * @return the value value. */ public List value() { @@ -42,7 +46,7 @@ public List value() { /** * Get the nextLink property: URL to get the next set of operation list results (if there are any). - * + * * @return the nextLink value. */ public String nextLink() { @@ -51,7 +55,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -59,4 +63,42 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OperationListResult. + */ + public static OperationListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationListResult deserializedOperationListResult = new OperationListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> OperationInner.fromJson(reader1)); + deserializedOperationListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedOperationListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationListResult; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationStatusResult.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationStatusResult.java index 0fe35dce0e50b..a472942dbff35 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationStatusResult.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OperationStatusResult.java @@ -9,75 +9,107 @@ import java.time.OffsetDateTime; import java.util.List; -/** An immutable client-side representation of OperationStatusResult. */ +/** + * An immutable client-side representation of OperationStatusResult. + */ public interface OperationStatusResult { /** - * Gets the id property: Fully qualified ID for the async operation. - * - * @return the id value. + * Gets the endTime property: The end time of the operation. + * + * @return the endTime value. */ - String id(); + OffsetDateTime endTime(); /** - * Gets the resourceId property: Fully qualified ID of the resource against which the original async operation was - * started. - * - * @return the resourceId value. + * Gets the error property: If present, details of the operation error. + * + * @return the error value. */ - String resourceId(); + ManagementError error(); + + /** + * Gets the id property: Fully qualified ID for the async operation. + * + * @return the id value. + */ + String id(); /** * Gets the name property: Name of the async operation. - * + * * @return the name value. */ String name(); /** - * Gets the status property: Operation status. - * - * @return the status value. + * Gets the operations property: The operations list. + * + * @return the operations value. */ - String status(); + List operations(); /** * Gets the percentComplete property: Percent of the operation that is complete. - * + * * @return the percentComplete value. */ Float percentComplete(); + /** + * Gets the resourceId property: Fully qualified ID of the resource against which the original async operation was + * started. + * + * @return the resourceId value. + */ + String resourceId(); + /** * Gets the startTime property: The start time of the operation. - * + * * @return the startTime value. */ OffsetDateTime startTime(); /** - * Gets the endTime property: The end time of the operation. - * - * @return the endTime value. + * Gets the status property: Operation status. + * + * @return the status value. */ - OffsetDateTime endTime(); + String status(); /** - * Gets the operations property: The operations list. - * - * @return the operations value. + * Gets the exitCode property: For actions that run commands or scripts, the exit code of the script execution. + * + * @return the exitCode value. */ - List operations(); + String exitCode(); /** - * Gets the error property: If present, details of the operation error. - * - * @return the error value. + * Gets the outputHead property: For actions that run commands or scripts, the leading bytes of the output of the + * script execution. + * + * @return the outputHead value. */ - ManagementError error(); + String outputHead(); + + /** + * Gets the resultRef property: For actions that run commands or scripts, a reference to the location of the result. + * + * @return the resultRef value. + */ + String resultRef(); + + /** + * Gets the resultUrl property: For actions that run commands or scripts, the URL where the full output of the + * script output can be retrieved. + * + * @return the resultUrl value. + */ + String resultUrl(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner object. - * + * * @return the inner object. */ OperationStatusResultInner innerModel(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operations.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operations.java index 236d3e6af3151..74ee3123f93ae 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operations.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Operations.java @@ -7,14 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of Operations. */ +/** + * Resource collection API of Operations. + */ public interface Operations { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of all available resource provider operations as paginated response with {@link PagedIterable}. @@ -23,10 +24,9 @@ public interface Operations { /** * List resource provider operations. - * - *

Get a list of all available resource provider operations. It contains a URL link to get the next set of - * results. - * + * + * Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Origin.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Origin.java index 454b563ddda38..42e86dd4d3f72 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Origin.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Origin.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -13,18 +12,24 @@ * is "user,system". */ public final class Origin extends ExpandableStringEnum { - /** Static value user for Origin. */ + /** + * Static value user for Origin. + */ public static final Origin USER = fromString("user"); - /** Static value system for Origin. */ + /** + * Static value system for Origin. + */ public static final Origin SYSTEM = fromString("system"); - /** Static value user,system for Origin. */ + /** + * Static value user,system for Origin. + */ public static final Origin USER_SYSTEM = fromString("user,system"); /** * Creates a new instance of Origin value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,18 +38,17 @@ public Origin() { /** * Creates or finds a Origin from its string representation. - * + * * @param name a name to look for. * @return the corresponding Origin. */ - @JsonCreator public static Origin fromString(String name) { return fromString(name, Origin.class); } /** * Gets known Origin values. - * + * * @return known Origin values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDisk.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDisk.java index a7131360ea556..fa2060db1e560 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDisk.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDisk.java @@ -5,36 +5,41 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** OsDisk represents configuration of the boot disk. */ +/** + * OsDisk represents configuration of the boot disk. + */ @Fluent -public final class OsDisk { +public final class OsDisk implements JsonSerializable { /* * The strategy for creating the OS disk. */ - @JsonProperty(value = "createOption") private OsDiskCreateOption createOption; /* * The strategy for deleting the OS disk. */ - @JsonProperty(value = "deleteOption") private OsDiskDeleteOption deleteOption; /* - * The size of the disk in gigabytes. Required if the createOption is Ephemeral. + * The size of the disk. Required if the createOption is Ephemeral. Allocations are measured in gibibytes. */ - @JsonProperty(value = "diskSizeGB", required = true) private long diskSizeGB; - /** Creates an instance of OsDisk class. */ + /** + * Creates an instance of OsDisk class. + */ public OsDisk() { } /** * Get the createOption property: The strategy for creating the OS disk. - * + * * @return the createOption value. */ public OsDiskCreateOption createOption() { @@ -43,7 +48,7 @@ public OsDiskCreateOption createOption() { /** * Set the createOption property: The strategy for creating the OS disk. - * + * * @param createOption the createOption value to set. * @return the OsDisk object itself. */ @@ -54,7 +59,7 @@ public OsDisk withCreateOption(OsDiskCreateOption createOption) { /** * Get the deleteOption property: The strategy for deleting the OS disk. - * + * * @return the deleteOption value. */ public OsDiskDeleteOption deleteOption() { @@ -63,7 +68,7 @@ public OsDiskDeleteOption deleteOption() { /** * Set the deleteOption property: The strategy for deleting the OS disk. - * + * * @param deleteOption the deleteOption value to set. * @return the OsDisk object itself. */ @@ -73,8 +78,9 @@ public OsDisk withDeleteOption(OsDiskDeleteOption deleteOption) { } /** - * Get the diskSizeGB property: The size of the disk in gigabytes. Required if the createOption is Ephemeral. - * + * Get the diskSizeGB property: The size of the disk. Required if the createOption is Ephemeral. Allocations are + * measured in gibibytes. + * * @return the diskSizeGB value. */ public long diskSizeGB() { @@ -82,8 +88,9 @@ public long diskSizeGB() { } /** - * Set the diskSizeGB property: The size of the disk in gigabytes. Required if the createOption is Ephemeral. - * + * Set the diskSizeGB property: The size of the disk. Required if the createOption is Ephemeral. Allocations are + * measured in gibibytes. + * * @param diskSizeGB the diskSizeGB value to set. * @return the OsDisk object itself. */ @@ -94,9 +101,52 @@ public OsDisk withDiskSizeGB(long diskSizeGB) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeLongField("diskSizeGB", this.diskSizeGB); + jsonWriter.writeStringField("createOption", this.createOption == null ? null : this.createOption.toString()); + jsonWriter.writeStringField("deleteOption", this.deleteOption == null ? null : this.deleteOption.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OsDisk from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OsDisk if the JsonReader was pointing to an instance of it, or null if it was pointing to + * JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the OsDisk. + */ + public static OsDisk fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OsDisk deserializedOsDisk = new OsDisk(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("diskSizeGB".equals(fieldName)) { + deserializedOsDisk.diskSizeGB = reader.getLong(); + } else if ("createOption".equals(fieldName)) { + deserializedOsDisk.createOption = OsDiskCreateOption.fromString(reader.getString()); + } else if ("deleteOption".equals(fieldName)) { + deserializedOsDisk.deleteOption = OsDiskDeleteOption.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedOsDisk; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java index 9791c86b5c1cf..639de323edc25 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskCreateOption.java @@ -5,17 +5,20 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The strategy for creating the OS disk. */ +/** + * The strategy for creating the OS disk. + */ public final class OsDiskCreateOption extends ExpandableStringEnum { - /** Static value Ephemeral for OsDiskCreateOption. */ + /** + * Static value Ephemeral for OsDiskCreateOption. + */ public static final OsDiskCreateOption EPHEMERAL = fromString("Ephemeral"); /** * Creates a new instance of OsDiskCreateOption value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,18 +27,17 @@ public OsDiskCreateOption() { /** * Creates or finds a OsDiskCreateOption from its string representation. - * + * * @param name a name to look for. * @return the corresponding OsDiskCreateOption. */ - @JsonCreator public static OsDiskCreateOption fromString(String name) { return fromString(name, OsDiskCreateOption.class); } /** * Gets known OsDiskCreateOption values. - * + * * @return known OsDiskCreateOption values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskDeleteOption.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskDeleteOption.java index d6930fcd00236..abb8fcca80f28 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskDeleteOption.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/OsDiskDeleteOption.java @@ -5,17 +5,20 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The strategy for deleting the OS disk. */ +/** + * The strategy for deleting the OS disk. + */ public final class OsDiskDeleteOption extends ExpandableStringEnum { - /** Static value Delete for OsDiskDeleteOption. */ + /** + * Static value Delete for OsDiskDeleteOption. + */ public static final OsDiskDeleteOption DELETE = fromString("Delete"); /** * Creates a new instance of OsDiskDeleteOption value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,18 +27,17 @@ public OsDiskDeleteOption() { /** * Creates or finds a OsDiskDeleteOption from its string representation. - * + * * @param name a name to look for. * @return the corresponding OsDiskDeleteOption. */ - @JsonCreator public static OsDiskDeleteOption fromString(String name) { return fromString(name, OsDiskDeleteOption.class); } /** * Gets known OsDiskDeleteOption values. - * + * * @return known OsDiskDeleteOption values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Rack.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Rack.java index 1435cf8c7f237..a94a9bf07e0a6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Rack.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Rack.java @@ -10,56 +10,55 @@ import com.azure.resourcemanager.networkcloud.fluent.models.RackInner; import java.util.Map; -/** An immutable client-side representation of Rack. */ +/** + * An immutable client-side representation of Rack. + */ public interface Rack { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -67,7 +66,7 @@ public interface Rack { /** * Gets the availabilityZone property: The value that will be used for machines in this rack to represent the * availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. - * + * * @return the availabilityZone value. */ String availabilityZone(); @@ -75,28 +74,28 @@ public interface Rack { /** * Gets the clusterId property: The resource ID of the cluster the rack is created for. This value is set when the * rack is created by the cluster. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the detailedStatus property: The more detailed status of the rack. - * + * * @return the detailedStatus value. */ RackDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** * Gets the provisioningState property: The provisioning state of the rack resource. - * + * * @return the provisioningState value. */ RackProvisioningState provisioningState(); @@ -104,7 +103,7 @@ public interface Rack { /** * Gets the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @return the rackLocation value. */ String rackLocation(); @@ -112,64 +111,72 @@ public interface Rack { /** * Gets the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate * unique alphanumeric value other than a serial number may be provided if desired. - * + * * @return the rackSerialNumber value. */ String rackSerialNumber(); /** * Gets the rackSkuId property: The SKU for the rack. - * + * * @return the rackSkuId value. */ String rackSkuId(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.RackInner object. - * + * * @return the inner object. */ RackInner innerModel(); - /** The entirety of the Rack definition. */ + /** + * The entirety of the Rack definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithAvailabilityZone, DefinitionStages.WithRackLocation, DefinitionStages.WithRackSerialNumber, DefinitionStages.WithRackSkuId, DefinitionStages.WithCreate { } - /** The Rack definition stages. */ + /** + * The Rack definition stages. + */ interface DefinitionStages { - /** The first stage of the Rack definition. */ + /** + * The first stage of the Rack definition. + */ interface Blank extends WithLocation { } - /** The stage of the Rack definition allowing to specify location. */ + /** + * The stage of the Rack definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -177,84 +184,92 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the Rack definition allowing to specify parent resource. */ + /** + * The stage of the Rack definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the Rack definition allowing to specify extendedLocation. */ + /** + * The stage of the Rack definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithAvailabilityZone withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the Rack definition allowing to specify availabilityZone. */ + /** + * The stage of the Rack definition allowing to specify availabilityZone. + */ interface WithAvailabilityZone { /** * Specifies the availabilityZone property: The value that will be used for machines in this rack to * represent the availability zones that can be referenced by Hybrid AKS Clusters for node arrangement.. - * + * * @param availabilityZone The value that will be used for machines in this rack to represent the - * availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. + * availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. * @return the next definition stage. */ WithRackLocation withAvailabilityZone(String availabilityZone); } - /** The stage of the Rack definition allowing to specify rackLocation. */ + /** + * The stage of the Rack definition allowing to specify rackLocation. + */ interface WithRackLocation { /** * Specifies the rackLocation property: The free-form description of the rack location. (e.g. “DTN * Datacenter, Floor 3, Isle 9, Rack 2B”). - * + * * @param rackLocation The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle - * 9, Rack 2B”). + * 9, Rack 2B”). * @return the next definition stage. */ WithRackSerialNumber withRackLocation(String rackLocation); } - /** The stage of the Rack definition allowing to specify rackSerialNumber. */ + /** + * The stage of the Rack definition allowing to specify rackSerialNumber. + */ interface WithRackSerialNumber { /** * Specifies the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. * An alternate unique alphanumeric value other than a serial number may be provided if desired.. - * + * * @param rackSerialNumber The unique identifier for the rack within Network Cloud cluster. An alternate - * unique alphanumeric value other than a serial number may be provided if desired. + * unique alphanumeric value other than a serial number may be provided if desired. * @return the next definition stage. */ WithRackSkuId withRackSerialNumber(String rackSerialNumber); } - /** The stage of the Rack definition allowing to specify rackSkuId. */ + /** + * The stage of the Rack definition allowing to specify rackSkuId. + */ interface WithRackSkuId { /** * Specifies the rackSkuId property: The SKU for the rack.. - * + * * @param rackSkuId The SKU for the rack. * @return the next definition stage. */ @@ -268,25 +283,27 @@ interface WithRackSkuId { interface WithCreate extends DefinitionStages.WithTags { /** * Executes the create request. - * + * * @return the created resource. */ Rack create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Rack create(Context context); } - /** The stage of the Rack definition allowing to specify tags. */ + /** + * The stage of the Rack definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ @@ -296,60 +313,70 @@ interface WithTags { /** * Begins update for the Rack resource. - * + * * @return the stage of resource update. */ Rack.Update update(); - /** The template for Rack update. */ + /** + * The template for Rack update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithRackLocation, UpdateStages.WithRackSerialNumber { /** * Executes the update request. - * + * * @return the updated resource. */ Rack apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Rack apply(Context context); } - /** The Rack update stages. */ + /** + * The Rack update stages. + */ interface UpdateStages { - /** The stage of the Rack update allowing to specify tags. */ + /** + * The stage of the Rack update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the Rack update allowing to specify rackLocation. */ + /** + * The stage of the Rack update allowing to specify rackLocation. + */ interface WithRackLocation { /** * Specifies the rackLocation property: The free-form description of the rack location. (e.g. “DTN * Datacenter, Floor 3, Isle 9, Rack 2B”). - * + * * @param rackLocation The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle - * 9, Rack 2B”). + * 9, Rack 2B”). * @return the next definition stage. */ Update withRackLocation(String rackLocation); } - /** The stage of the Rack update allowing to specify rackSerialNumber. */ + /** + * The stage of the Rack update allowing to specify rackSerialNumber. + */ interface WithRackSerialNumber { /** * Specifies the rackSerialNumber property: The globally unique identifier for the rack.. - * + * * @param rackSerialNumber The globally unique identifier for the rack. * @return the next definition stage. */ @@ -359,14 +386,14 @@ interface WithRackSerialNumber { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Rack refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDefinition.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDefinition.java index 0dd522b9515df..2fbdeb929c82e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDefinition.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDefinition.java @@ -6,63 +6,64 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** RackDefinition represents details regarding the rack. */ +/** + * RackDefinition represents details regarding the rack. + */ @Fluent -public final class RackDefinition { +public final class RackDefinition implements JsonSerializable { /* * The zone name used for this rack when created. Availability zones are used for workload placement. */ - @JsonProperty(value = "availabilityZone") private String availabilityZone; /* * The unordered list of bare metal machine configuration. */ - @JsonProperty(value = "bareMetalMachineConfigurationData") private List bareMetalMachineConfigurationData; /* * The resource ID of the network rack that matches this rack definition. */ - @JsonProperty(value = "networkRackId", required = true) private String networkRackId; /* * The free-form description of the rack's location. */ - @JsonProperty(value = "rackLocation") private String rackLocation; /* * The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other * than a serial number may be provided if desired. */ - @JsonProperty(value = "rackSerialNumber", required = true) private String rackSerialNumber; /* * The resource ID of the sku for the rack being added. */ - @JsonProperty(value = "rackSkuId", required = true) private String rackSkuId; /* * The list of storage appliance configuration data for this rack. */ - @JsonProperty(value = "storageApplianceConfigurationData") private List storageApplianceConfigurationData; - /** Creates an instance of RackDefinition class. */ + /** + * Creates an instance of RackDefinition class. + */ public RackDefinition() { } /** * Get the availabilityZone property: The zone name used for this rack when created. Availability zones are used for * workload placement. - * + * * @return the availabilityZone value. */ public String availabilityZone() { @@ -72,7 +73,7 @@ public String availabilityZone() { /** * Set the availabilityZone property: The zone name used for this rack when created. Availability zones are used for * workload placement. - * + * * @param availabilityZone the availabilityZone value to set. * @return the RackDefinition object itself. */ @@ -83,7 +84,7 @@ public RackDefinition withAvailabilityZone(String availabilityZone) { /** * Get the bareMetalMachineConfigurationData property: The unordered list of bare metal machine configuration. - * + * * @return the bareMetalMachineConfigurationData value. */ public List bareMetalMachineConfigurationData() { @@ -92,7 +93,7 @@ public List bareMetalMachineConfigurationData /** * Set the bareMetalMachineConfigurationData property: The unordered list of bare metal machine configuration. - * + * * @param bareMetalMachineConfigurationData the bareMetalMachineConfigurationData value to set. * @return the RackDefinition object itself. */ @@ -104,7 +105,7 @@ public RackDefinition withBareMetalMachineConfigurationData( /** * Get the networkRackId property: The resource ID of the network rack that matches this rack definition. - * + * * @return the networkRackId value. */ public String networkRackId() { @@ -113,7 +114,7 @@ public String networkRackId() { /** * Set the networkRackId property: The resource ID of the network rack that matches this rack definition. - * + * * @param networkRackId the networkRackId value to set. * @return the RackDefinition object itself. */ @@ -124,7 +125,7 @@ public RackDefinition withNetworkRackId(String networkRackId) { /** * Get the rackLocation property: The free-form description of the rack's location. - * + * * @return the rackLocation value. */ public String rackLocation() { @@ -133,7 +134,7 @@ public String rackLocation() { /** * Set the rackLocation property: The free-form description of the rack's location. - * + * * @param rackLocation the rackLocation value to set. * @return the RackDefinition object itself. */ @@ -145,7 +146,7 @@ public RackDefinition withRackLocation(String rackLocation) { /** * Get the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate * unique alphanumeric value other than a serial number may be provided if desired. - * + * * @return the rackSerialNumber value. */ public String rackSerialNumber() { @@ -155,7 +156,7 @@ public String rackSerialNumber() { /** * Set the rackSerialNumber property: The unique identifier for the rack within Network Cloud cluster. An alternate * unique alphanumeric value other than a serial number may be provided if desired. - * + * * @param rackSerialNumber the rackSerialNumber value to set. * @return the RackDefinition object itself. */ @@ -166,7 +167,7 @@ public RackDefinition withRackSerialNumber(String rackSerialNumber) { /** * Get the rackSkuId property: The resource ID of the sku for the rack being added. - * + * * @return the rackSkuId value. */ public String rackSkuId() { @@ -175,7 +176,7 @@ public String rackSkuId() { /** * Set the rackSkuId property: The resource ID of the sku for the rack being added. - * + * * @param rackSkuId the rackSkuId value to set. * @return the RackDefinition object itself. */ @@ -187,7 +188,7 @@ public RackDefinition withRackSkuId(String rackSkuId) { /** * Get the storageApplianceConfigurationData property: The list of storage appliance configuration data for this * rack. - * + * * @return the storageApplianceConfigurationData value. */ public List storageApplianceConfigurationData() { @@ -197,7 +198,7 @@ public List storageApplianceConfigurationData /** * Set the storageApplianceConfigurationData property: The list of storage appliance configuration data for this * rack. - * + * * @param storageApplianceConfigurationData the storageApplianceConfigurationData value to set. * @return the RackDefinition object itself. */ @@ -209,7 +210,7 @@ public RackDefinition withStorageApplianceConfigurationData( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -217,16 +218,17 @@ public void validate() { bareMetalMachineConfigurationData().forEach(e -> e.validate()); } if (networkRackId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property networkRackId in model RackDefinition")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property networkRackId in model RackDefinition")); } if (rackSerialNumber() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property rackSerialNumber in model RackDefinition")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property rackSerialNumber in model RackDefinition")); } if (rackSkuId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property rackSkuId in model RackDefinition")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property rackSkuId in model RackDefinition")); } if (storageApplianceConfigurationData() != null) { storageApplianceConfigurationData().forEach(e -> e.validate()); @@ -234,4 +236,65 @@ public void validate() { } private static final ClientLogger LOGGER = new ClientLogger(RackDefinition.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("networkRackId", this.networkRackId); + jsonWriter.writeStringField("rackSerialNumber", this.rackSerialNumber); + jsonWriter.writeStringField("rackSkuId", this.rackSkuId); + jsonWriter.writeStringField("availabilityZone", this.availabilityZone); + jsonWriter.writeArrayField("bareMetalMachineConfigurationData", this.bareMetalMachineConfigurationData, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("rackLocation", this.rackLocation); + jsonWriter.writeArrayField("storageApplianceConfigurationData", this.storageApplianceConfigurationData, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackDefinition from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackDefinition if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RackDefinition. + */ + public static RackDefinition fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackDefinition deserializedRackDefinition = new RackDefinition(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("networkRackId".equals(fieldName)) { + deserializedRackDefinition.networkRackId = reader.getString(); + } else if ("rackSerialNumber".equals(fieldName)) { + deserializedRackDefinition.rackSerialNumber = reader.getString(); + } else if ("rackSkuId".equals(fieldName)) { + deserializedRackDefinition.rackSkuId = reader.getString(); + } else if ("availabilityZone".equals(fieldName)) { + deserializedRackDefinition.availabilityZone = reader.getString(); + } else if ("bareMetalMachineConfigurationData".equals(fieldName)) { + List bareMetalMachineConfigurationData + = reader.readArray(reader1 -> BareMetalMachineConfigurationData.fromJson(reader1)); + deserializedRackDefinition.bareMetalMachineConfigurationData = bareMetalMachineConfigurationData; + } else if ("rackLocation".equals(fieldName)) { + deserializedRackDefinition.rackLocation = reader.getString(); + } else if ("storageApplianceConfigurationData".equals(fieldName)) { + List storageApplianceConfigurationData + = reader.readArray(reader1 -> StorageApplianceConfigurationData.fromJson(reader1)); + deserializedRackDefinition.storageApplianceConfigurationData = storageApplianceConfigurationData; + } else { + reader.skipChildren(); + } + } + + return deserializedRackDefinition; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDetailedStatus.java index 17299e967c053..cb53809ba1cb8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the rack. */ +/** + * The more detailed status of the rack. + */ public final class RackDetailedStatus extends ExpandableStringEnum { - /** Static value Error for RackDetailedStatus. */ + /** + * Static value Error for RackDetailedStatus. + */ public static final RackDetailedStatus ERROR = fromString("Error"); - /** Static value Available for RackDetailedStatus. */ + /** + * Static value Available for RackDetailedStatus. + */ public static final RackDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for RackDetailedStatus. */ + /** + * Static value Provisioning for RackDetailedStatus. + */ public static final RackDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of RackDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public RackDetailedStatus() { /** * Creates or finds a RackDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding RackDetailedStatus. */ - @JsonCreator public static RackDetailedStatus fromString(String name) { return fromString(name, RackDetailedStatus.class); } /** * Gets known RackDetailedStatus values. - * + * * @return known RackDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackList.java index 689372ecad3fd..766d6a20a3259 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.RackInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** RackList represents a list of racks. */ +/** + * RackList represents a list of racks. + */ @Fluent -public final class RackList { +public final class RackList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of racks. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of RackList class. */ + /** + * Creates an instance of RackList class. + */ public RackList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the RackList object itself. */ @@ -50,7 +56,7 @@ public RackList withNextLink(String nextLink) { /** * Get the value property: The list of racks. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of racks. - * + * * @param value the value value to set. * @return the RackList object itself. */ @@ -70,7 +76,7 @@ public RackList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackList if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the RackList. + */ + public static RackList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackList deserializedRackList = new RackList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedRackList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> RackInner.fromJson(reader1)); + deserializedRackList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedRackList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackPatchParameters.java index 9084fdf222566..4c76488bd4b26 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackPatchParameters.java @@ -5,38 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.RacksPatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** RackPatchParameters represents the body of the request to patch the rack properties. */ +/** + * RackPatchParameters represents the body of the request to patch the rack properties. + */ @Fluent -public final class RackPatchParameters { +public final class RackPatchParameters implements JsonSerializable { /* - * RacksPatchProperties represents the properties of the rack during patching. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private RacksPatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of RackPatchParameters class. */ + /** + * Creates an instance of RackPatchParameters class. + */ public RackPatchParameters() { } /** - * Get the innerProperties property: RacksPatchProperties represents the properties of the rack during patching. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private RacksPatchProperties innerProperties() { @@ -45,7 +45,7 @@ private RacksPatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -54,7 +54,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the RackPatchParameters object itself. */ @@ -66,7 +66,7 @@ public RackPatchParameters withTags(Map tags) { /** * Get the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @return the rackLocation value. */ public String rackLocation() { @@ -76,7 +76,7 @@ public String rackLocation() { /** * Set the rackLocation property: The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, * Isle 9, Rack 2B”). - * + * * @param rackLocation the rackLocation value to set. * @return the RackPatchParameters object itself. */ @@ -90,7 +90,7 @@ public RackPatchParameters withRackLocation(String rackLocation) { /** * Get the rackSerialNumber property: The globally unique identifier for the rack. - * + * * @return the rackSerialNumber value. */ public String rackSerialNumber() { @@ -99,7 +99,7 @@ public String rackSerialNumber() { /** * Set the rackSerialNumber property: The globally unique identifier for the rack. - * + * * @param rackSerialNumber the rackSerialNumber value to set. * @return the RackPatchParameters object itself. */ @@ -113,7 +113,7 @@ public RackPatchParameters withRackSerialNumber(String rackSerialNumber) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -121,4 +121,44 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackPatchParameters if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RackPatchParameters. + */ + public static RackPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackPatchParameters deserializedRackPatchParameters = new RackPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedRackPatchParameters.innerProperties = RacksPatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedRackPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedRackPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackProvisioningState.java index a85bda5be5441..79eca3e7266b5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the rack resource. */ +/** + * The provisioning state of the rack resource. + */ public final class RackProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for RackProvisioningState. */ + /** + * Static value Succeeded for RackProvisioningState. + */ public static final RackProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for RackProvisioningState. */ + /** + * Static value Failed for RackProvisioningState. + */ public static final RackProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for RackProvisioningState. */ + /** + * Static value Canceled for RackProvisioningState. + */ public static final RackProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for RackProvisioningState. */ + /** + * Static value Provisioning for RackProvisioningState. + */ public static final RackProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for RackProvisioningState. */ + /** + * Static value Accepted for RackProvisioningState. + */ public static final RackProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of RackProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public RackProvisioningState() { /** * Creates or finds a RackProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding RackProvisioningState. */ - @JsonCreator public static RackProvisioningState fromString(String name) { return fromString(name, RackProvisioningState.class); } /** * Gets known RackProvisioningState values. - * + * * @return known RackProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSku.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSku.java index c9854e67f111c..2416b2766e062 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSku.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSku.java @@ -8,32 +8,34 @@ import com.azure.resourcemanager.networkcloud.fluent.models.RackSkuInner; import java.util.List; -/** An immutable client-side representation of RackSku. */ +/** + * An immutable client-side representation of RackSku. + */ public interface RackSku { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -41,7 +43,7 @@ public interface RackSku { /** * Gets the computeMachines property: The list of machine SKUs and associated rack slot for the compute-dedicated * machines in this rack model. - * + * * @return the computeMachines value. */ List computeMachines(); @@ -49,14 +51,14 @@ public interface RackSku { /** * Gets the controllerMachines property: The list of machine SKUs and associated rack slot for the control-plane * dedicated machines in this rack model. - * + * * @return the controllerMachines value. */ List controllerMachines(); /** * Gets the description property: The free-form text describing the rack. - * + * * @return the description value. */ String description(); @@ -64,21 +66,21 @@ public interface RackSku { /** * Gets the maxClusterSlots property: The maximum number of compute racks supported by an aggregator rack. 0 if this * is a compute rack or a rack for a single rack cluster(rackType="Single"). - * + * * @return the maxClusterSlots value. */ Long maxClusterSlots(); /** * Gets the provisioningState property: The provisioning state of the rack SKU resource. - * + * * @return the provisioningState value. */ RackSkuProvisioningState provisioningState(); /** * Gets the rackType property: The type of the rack. - * + * * @return the rackType value. */ RackSkuType rackType(); @@ -86,21 +88,21 @@ public interface RackSku { /** * Gets the storageAppliances property: The list of appliance SKUs and associated rack slot for the storage * appliance(s) in this rack model. - * + * * @return the storageAppliances value. */ List storageAppliances(); /** * Gets the supportedRackSkuIds property: The list of supported SKUs if the rack is an aggregator. - * + * * @return the supportedRackSkuIds value. */ List supportedRackSkuIds(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.RackSkuInner object. - * + * * @return the inner object. */ RackSkuInner innerModel(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuList.java index b7a96c5881c3a..aa8647ecb48ec 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.RackSkuInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** RackSkuList represents a list of rack SKUs. */ +/** + * RackSkuList represents a list of rack SKUs. + */ @Fluent -public final class RackSkuList { +public final class RackSkuList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of Rack SKUs. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of RackSkuList class. */ + /** + * Creates an instance of RackSkuList class. + */ public RackSkuList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the RackSkuList object itself. */ @@ -50,7 +56,7 @@ public RackSkuList withNextLink(String nextLink) { /** * Get the value property: The list of Rack SKUs. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of Rack SKUs. - * + * * @param value the value value to set. * @return the RackSkuList object itself. */ @@ -70,7 +76,7 @@ public RackSkuList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RackSkuList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RackSkuList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RackSkuList. + */ + public static RackSkuList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RackSkuList deserializedRackSkuList = new RackSkuList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedRackSkuList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> RackSkuInner.fromJson(reader1)); + deserializedRackSkuList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedRackSkuList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuProvisioningState.java index 8dd77b3f9b4f6..4ccffee8fda36 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuProvisioningState.java @@ -5,17 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the rack SKU resource. */ +/** + * The provisioning state of the rack SKU resource. + */ public final class RackSkuProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for RackSkuProvisioningState. */ + /** + * Static value Canceled for RackSkuProvisioningState. + */ + public static final RackSkuProvisioningState CANCELED = fromString("Canceled"); + + /** + * Static value Failed for RackSkuProvisioningState. + */ + public static final RackSkuProvisioningState FAILED = fromString("Failed"); + + /** + * Static value Succeeded for RackSkuProvisioningState. + */ public static final RackSkuProvisioningState SUCCEEDED = fromString("Succeeded"); /** * Creates a new instance of RackSkuProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,18 +37,17 @@ public RackSkuProvisioningState() { /** * Creates or finds a RackSkuProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding RackSkuProvisioningState. */ - @JsonCreator public static RackSkuProvisioningState fromString(String name) { return fromString(name, RackSkuProvisioningState.class); } /** * Gets known RackSkuProvisioningState values. - * + * * @return known RackSkuProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuType.java index c836943874900..8704a88d2135c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkuType.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of the rack. */ +/** + * The type of the rack. + */ public final class RackSkuType extends ExpandableStringEnum { - /** Static value Aggregator for RackSkuType. */ + /** + * Static value Aggregator for RackSkuType. + */ public static final RackSkuType AGGREGATOR = fromString("Aggregator"); - /** Static value Compute for RackSkuType. */ + /** + * Static value Compute for RackSkuType. + */ public static final RackSkuType COMPUTE = fromString("Compute"); - /** Static value Single for RackSkuType. */ + /** + * Static value Single for RackSkuType. + */ public static final RackSkuType SINGLE = fromString("Single"); /** * Creates a new instance of RackSkuType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public RackSkuType() { /** * Creates or finds a RackSkuType from its string representation. - * + * * @param name a name to look for. * @return the corresponding RackSkuType. */ - @JsonCreator public static RackSkuType fromString(String name) { return fromString(name, RackSkuType.class); } /** * Gets known RackSkuType values. - * + * * @return known RackSkuType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkus.java index 5f2471ad4b25a..4b71b3d587f65 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RackSkus.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of RackSkus. */ +/** + * Resource collection API of RackSkus. + */ public interface RackSkus { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of rack SKUs in the provided subscription as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface RackSkus { /** * List rack SKUs in the subscription. - * - *

Get a list of rack SKUs in the provided subscription. - * + * + * Get a list of rack SKUs in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,9 +38,9 @@ public interface RackSkus { /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -50,9 +52,9 @@ public interface RackSkus { /** * Retrieve the rack SKU. - * - *

Get the properties of the provided rack SKU. - * + * + * Get the properties of the provided rack SKU. + * * @param rackSkuName The name of the rack SKU. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Racks.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Racks.java index 6154c42700e45..eec2e786a13f6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Racks.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Racks.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Racks. */ +/** + * Resource collection API of Racks. + */ public interface Racks { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of racks in the provided subscription as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface Racks { /** * List racks in the subscription. - * - *

Get a list of racks in the provided subscription. - * + * + * Get a list of racks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,9 +38,9 @@ public interface Racks { /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -49,9 +51,9 @@ public interface Racks { /** * List racks in the resource group. - * - *

Get a list of racks in the provided resource group. - * + * + * Get a list of racks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -63,9 +65,9 @@ public interface Racks { /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. @@ -78,9 +80,9 @@ public interface Racks { /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -92,38 +94,40 @@ public interface Racks { /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String rackName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String rackName); /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param rackName The name of the rack. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String rackName, Context context); + OperationStatusResult delete(String resourceGroupName, String rackName, Context context); /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -134,9 +138,9 @@ public interface Racks { /** * Retrieve the rack. - * - *

Get properties of the provided rack. - * + * + * Get properties of the provided rack. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -148,34 +152,36 @@ public interface Racks { /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the rack. - * - *

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource - * is managed by the system. - * + * + * Delete the provided rack. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new Rack resource. - * + * * @param name resource name. * @return the first stage of the new Rack definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementFeature.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementFeature.java index ac40894cb5cf6..7b1adf8170273 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementFeature.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementFeature.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether the storage appliance supports remote vendor management. */ +/** + * The indicator of whether the storage appliance supports remote vendor management. + */ public final class RemoteVendorManagementFeature extends ExpandableStringEnum { - /** Static value Supported for RemoteVendorManagementFeature. */ + /** + * Static value Supported for RemoteVendorManagementFeature. + */ public static final RemoteVendorManagementFeature SUPPORTED = fromString("Supported"); - /** Static value Unsupported for RemoteVendorManagementFeature. */ + /** + * Static value Unsupported for RemoteVendorManagementFeature. + */ public static final RemoteVendorManagementFeature UNSUPPORTED = fromString("Unsupported"); /** * Creates a new instance of RemoteVendorManagementFeature value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public RemoteVendorManagementFeature() { /** * Creates or finds a RemoteVendorManagementFeature from its string representation. - * + * * @param name a name to look for. * @return the corresponding RemoteVendorManagementFeature. */ - @JsonCreator public static RemoteVendorManagementFeature fromString(String name) { return fromString(name, RemoteVendorManagementFeature.class); } /** * Gets known RemoteVendorManagementFeature values. - * + * * @return known RemoteVendorManagementFeature values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementStatus.java index 0e9f92e02a1d1..b51aeee40853e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RemoteVendorManagementStatus.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -13,18 +12,24 @@ * unsupported feature. */ public final class RemoteVendorManagementStatus extends ExpandableStringEnum { - /** Static value Enabled for RemoteVendorManagementStatus. */ + /** + * Static value Enabled for RemoteVendorManagementStatus. + */ public static final RemoteVendorManagementStatus ENABLED = fromString("Enabled"); - /** Static value Disabled for RemoteVendorManagementStatus. */ + /** + * Static value Disabled for RemoteVendorManagementStatus. + */ public static final RemoteVendorManagementStatus DISABLED = fromString("Disabled"); - /** Static value Unsupported for RemoteVendorManagementStatus. */ + /** + * Static value Unsupported for RemoteVendorManagementStatus. + */ public static final RemoteVendorManagementStatus UNSUPPORTED = fromString("Unsupported"); /** * Creates a new instance of RemoteVendorManagementStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,18 +38,17 @@ public RemoteVendorManagementStatus() { /** * Creates or finds a RemoteVendorManagementStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding RemoteVendorManagementStatus. */ - @JsonCreator public static RemoteVendorManagementStatus fromString(String name) { return fromString(name, RemoteVendorManagementStatus.class); } /** * Gets known RemoteVendorManagementStatus values. - * + * * @return known RemoteVendorManagementStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionConfiguration.java new file mode 100644 index 0000000000000..3eb20762df59b --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionConfiguration.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * RuntimeProtectionConfiguration represents the runtime protection configuration for the cluster. + */ +@Fluent +public final class RuntimeProtectionConfiguration implements JsonSerializable { + /* + * The mode of operation for runtime protection. + */ + private RuntimeProtectionEnforcementLevel enforcementLevel; + + /** + * Creates an instance of RuntimeProtectionConfiguration class. + */ + public RuntimeProtectionConfiguration() { + } + + /** + * Get the enforcementLevel property: The mode of operation for runtime protection. + * + * @return the enforcementLevel value. + */ + public RuntimeProtectionEnforcementLevel enforcementLevel() { + return this.enforcementLevel; + } + + /** + * Set the enforcementLevel property: The mode of operation for runtime protection. + * + * @param enforcementLevel the enforcementLevel value to set. + * @return the RuntimeProtectionConfiguration object itself. + */ + public RuntimeProtectionConfiguration withEnforcementLevel(RuntimeProtectionEnforcementLevel enforcementLevel) { + this.enforcementLevel = enforcementLevel; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("enforcementLevel", + this.enforcementLevel == null ? null : this.enforcementLevel.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RuntimeProtectionConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RuntimeProtectionConfiguration if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the RuntimeProtectionConfiguration. + */ + public static RuntimeProtectionConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RuntimeProtectionConfiguration deserializedRuntimeProtectionConfiguration + = new RuntimeProtectionConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enforcementLevel".equals(fieldName)) { + deserializedRuntimeProtectionConfiguration.enforcementLevel + = RuntimeProtectionEnforcementLevel.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedRuntimeProtectionConfiguration; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionEnforcementLevel.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionEnforcementLevel.java new file mode 100644 index 0000000000000..de9255168bc47 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionEnforcementLevel.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The mode of operation for runtime protection. + */ +public final class RuntimeProtectionEnforcementLevel extends ExpandableStringEnum { + /** + * Static value Audit for RuntimeProtectionEnforcementLevel. + */ + public static final RuntimeProtectionEnforcementLevel AUDIT = fromString("Audit"); + + /** + * Static value Disabled for RuntimeProtectionEnforcementLevel. + */ + public static final RuntimeProtectionEnforcementLevel DISABLED = fromString("Disabled"); + + /** + * Static value OnDemand for RuntimeProtectionEnforcementLevel. + */ + public static final RuntimeProtectionEnforcementLevel ON_DEMAND = fromString("OnDemand"); + + /** + * Static value Passive for RuntimeProtectionEnforcementLevel. + */ + public static final RuntimeProtectionEnforcementLevel PASSIVE = fromString("Passive"); + + /** + * Static value RealTime for RuntimeProtectionEnforcementLevel. + */ + public static final RuntimeProtectionEnforcementLevel REAL_TIME = fromString("RealTime"); + + /** + * Creates a new instance of RuntimeProtectionEnforcementLevel value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RuntimeProtectionEnforcementLevel() { + } + + /** + * Creates or finds a RuntimeProtectionEnforcementLevel from its string representation. + * + * @param name a name to look for. + * @return the corresponding RuntimeProtectionEnforcementLevel. + */ + public static RuntimeProtectionEnforcementLevel fromString(String name) { + return fromString(name, RuntimeProtectionEnforcementLevel.class); + } + + /** + * Gets known RuntimeProtectionEnforcementLevel values. + * + * @return known RuntimeProtectionEnforcementLevel values. + */ + public static Collection values() { + return values(RuntimeProtectionEnforcementLevel.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionStatus.java new file mode 100644 index 0000000000000..4f16058558496 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/RuntimeProtectionStatus.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * RuntimeProtectionStatus represents the runtime protection status of the bare metal machine. + */ +@Immutable +public final class RuntimeProtectionStatus implements JsonSerializable { + /* + * The timestamp when the malware definitions were last updated. + */ + private OffsetDateTime definitionsLastUpdated; + + /* + * The version of the malware definitions. + */ + private String definitionsVersion; + + /* + * The timestamp of the most recently completed scan, or empty if there has never been a scan. + */ + private OffsetDateTime scanCompletedTime; + + /* + * The timestamp of the most recently scheduled scan, or empty if no scan has been scheduled. + */ + private OffsetDateTime scanScheduledTime; + + /* + * The timestamp of the most recently started scan, or empty if there has never been a scan. + */ + private OffsetDateTime scanStartedTime; + + /** + * Creates an instance of RuntimeProtectionStatus class. + */ + public RuntimeProtectionStatus() { + } + + /** + * Get the definitionsLastUpdated property: The timestamp when the malware definitions were last updated. + * + * @return the definitionsLastUpdated value. + */ + public OffsetDateTime definitionsLastUpdated() { + return this.definitionsLastUpdated; + } + + /** + * Get the definitionsVersion property: The version of the malware definitions. + * + * @return the definitionsVersion value. + */ + public String definitionsVersion() { + return this.definitionsVersion; + } + + /** + * Get the scanCompletedTime property: The timestamp of the most recently completed scan, or empty if there has + * never been a scan. + * + * @return the scanCompletedTime value. + */ + public OffsetDateTime scanCompletedTime() { + return this.scanCompletedTime; + } + + /** + * Get the scanScheduledTime property: The timestamp of the most recently scheduled scan, or empty if no scan has + * been scheduled. + * + * @return the scanScheduledTime value. + */ + public OffsetDateTime scanScheduledTime() { + return this.scanScheduledTime; + } + + /** + * Get the scanStartedTime property: The timestamp of the most recently started scan, or empty if there has never + * been a scan. + * + * @return the scanStartedTime value. + */ + public OffsetDateTime scanStartedTime() { + return this.scanStartedTime; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RuntimeProtectionStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RuntimeProtectionStatus if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the RuntimeProtectionStatus. + */ + public static RuntimeProtectionStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RuntimeProtectionStatus deserializedRuntimeProtectionStatus = new RuntimeProtectionStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("definitionsLastUpdated".equals(fieldName)) { + deserializedRuntimeProtectionStatus.definitionsLastUpdated = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("definitionsVersion".equals(fieldName)) { + deserializedRuntimeProtectionStatus.definitionsVersion = reader.getString(); + } else if ("scanCompletedTime".equals(fieldName)) { + deserializedRuntimeProtectionStatus.scanCompletedTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("scanScheduledTime".equals(fieldName)) { + deserializedRuntimeProtectionStatus.scanScheduledTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("scanStartedTime".equals(fieldName)) { + deserializedRuntimeProtectionStatus.scanStartedTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedRuntimeProtectionStatus; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretArchiveReference.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretArchiveReference.java new file mode 100644 index 0000000000000..c4edf0c2f9df7 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretArchiveReference.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * SecretArchiveReference represents the reference to a secret in a key vault. + */ +@Immutable +public final class SecretArchiveReference implements JsonSerializable { + /* + * The resource ID of the key vault containing the secret. + */ + private String keyVaultId; + + /* + * The name of the secret in the key vault. + */ + private String secretName; + + /* + * The version of the secret in the key vault. + */ + private String secretVersion; + + /** + * Creates an instance of SecretArchiveReference class. + */ + public SecretArchiveReference() { + } + + /** + * Get the keyVaultId property: The resource ID of the key vault containing the secret. + * + * @return the keyVaultId value. + */ + public String keyVaultId() { + return this.keyVaultId; + } + + /** + * Get the secretName property: The name of the secret in the key vault. + * + * @return the secretName value. + */ + public String secretName() { + return this.secretName; + } + + /** + * Get the secretVersion property: The version of the secret in the key vault. + * + * @return the secretVersion value. + */ + public String secretVersion() { + return this.secretVersion; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SecretArchiveReference from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SecretArchiveReference if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the SecretArchiveReference. + */ + public static SecretArchiveReference fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SecretArchiveReference deserializedSecretArchiveReference = new SecretArchiveReference(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyVaultId".equals(fieldName)) { + deserializedSecretArchiveReference.keyVaultId = reader.getString(); + } else if ("secretName".equals(fieldName)) { + deserializedSecretArchiveReference.secretName = reader.getString(); + } else if ("secretVersion".equals(fieldName)) { + deserializedSecretArchiveReference.secretVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSecretArchiveReference; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretRotationStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretRotationStatus.java new file mode 100644 index 0000000000000..eccbfd6fb9bd5 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SecretRotationStatus.java @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * SecretRotationStatus represents the status of a secret rotation. + */ +@Immutable +public final class SecretRotationStatus implements JsonSerializable { + /* + * The maximum number of days the secret may be used before it must be changed. + */ + private Long expirePeriodDays; + + /* + * The date and time when the secret was last changed. + */ + private OffsetDateTime lastRotationTime; + + /* + * The number of days a secret exists before rotations will be attempted. + */ + private Long rotationPeriodDays; + + /* + * The reference to the secret in a key vault. + */ + private SecretArchiveReference secretArchiveReference; + + /* + * The type name used to identify the purpose of the secret. + */ + private String secretType; + + /** + * Creates an instance of SecretRotationStatus class. + */ + public SecretRotationStatus() { + } + + /** + * Get the expirePeriodDays property: The maximum number of days the secret may be used before it must be changed. + * + * @return the expirePeriodDays value. + */ + public Long expirePeriodDays() { + return this.expirePeriodDays; + } + + /** + * Get the lastRotationTime property: The date and time when the secret was last changed. + * + * @return the lastRotationTime value. + */ + public OffsetDateTime lastRotationTime() { + return this.lastRotationTime; + } + + /** + * Get the rotationPeriodDays property: The number of days a secret exists before rotations will be attempted. + * + * @return the rotationPeriodDays value. + */ + public Long rotationPeriodDays() { + return this.rotationPeriodDays; + } + + /** + * Get the secretArchiveReference property: The reference to the secret in a key vault. + * + * @return the secretArchiveReference value. + */ + public SecretArchiveReference secretArchiveReference() { + return this.secretArchiveReference; + } + + /** + * Get the secretType property: The type name used to identify the purpose of the secret. + * + * @return the secretType value. + */ + public String secretType() { + return this.secretType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (secretArchiveReference() != null) { + secretArchiveReference().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SecretRotationStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SecretRotationStatus if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the SecretRotationStatus. + */ + public static SecretRotationStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SecretRotationStatus deserializedSecretRotationStatus = new SecretRotationStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("expirePeriodDays".equals(fieldName)) { + deserializedSecretRotationStatus.expirePeriodDays = reader.getNullable(JsonReader::getLong); + } else if ("lastRotationTime".equals(fieldName)) { + deserializedSecretRotationStatus.lastRotationTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("rotationPeriodDays".equals(fieldName)) { + deserializedSecretRotationStatus.rotationPeriodDays = reader.getNullable(JsonReader::getLong); + } else if ("secretArchiveReference".equals(fieldName)) { + deserializedSecretRotationStatus.secretArchiveReference = SecretArchiveReference.fromJson(reader); + } else if ("secretType".equals(fieldName)) { + deserializedSecretRotationStatus.secretType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSecretRotationStatus; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServiceLoadBalancerBgpPeer.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServiceLoadBalancerBgpPeer.java index caa352dc647f9..002b0e51d290e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServiceLoadBalancerBgpPeer.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServiceLoadBalancerBgpPeer.java @@ -6,80 +6,78 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * ServiceLoadBalancerBgpPeer represents the configuration of the BGP service load balancer for the Kubernetes cluster. */ @Fluent -public final class ServiceLoadBalancerBgpPeer { +public final class ServiceLoadBalancerBgpPeer implements JsonSerializable { /* * The indicator of BFD enablement for this BgpPeer. */ - @JsonProperty(value = "bfdEnabled") private BfdEnabled bfdEnabled; /* * The indicator to enable multi-hop peering support. */ - @JsonProperty(value = "bgpMultiHop") private BgpMultiHop bgpMultiHop; /* + * Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. * The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H. */ - @JsonProperty(value = "holdTime") private String holdTime; /* + * Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. * The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H. */ - @JsonProperty(value = "keepAliveTime") private String keepAliveTime; /* * The autonomous system number used for the local end of the BGP session. */ - @JsonProperty(value = "myAsn") private Long myAsn; /* * The name used to identify this BGP peer for association with a BGP advertisement. */ - @JsonProperty(value = "name", required = true) private String name; /* * The authentication password for routers enforcing TCP MD5 authenticated sessions. */ - @JsonProperty(value = "password") private String password; /* * The IPv4 or IPv6 address used to connect this BGP session. */ - @JsonProperty(value = "peerAddress", required = true) private String peerAddress; /* * The autonomous system number expected from the remote end of the BGP session. */ - @JsonProperty(value = "peerAsn", required = true) private long peerAsn; /* * The port used to connect this BGP session. */ - @JsonProperty(value = "peerPort") private Long peerPort; - /** Creates an instance of ServiceLoadBalancerBgpPeer class. */ + /** + * Creates an instance of ServiceLoadBalancerBgpPeer class. + */ public ServiceLoadBalancerBgpPeer() { } /** * Get the bfdEnabled property: The indicator of BFD enablement for this BgpPeer. - * + * * @return the bfdEnabled value. */ public BfdEnabled bfdEnabled() { @@ -88,7 +86,7 @@ public BfdEnabled bfdEnabled() { /** * Set the bfdEnabled property: The indicator of BFD enablement for this BgpPeer. - * + * * @param bfdEnabled the bfdEnabled value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -99,7 +97,7 @@ public ServiceLoadBalancerBgpPeer withBfdEnabled(BfdEnabled bfdEnabled) { /** * Get the bgpMultiHop property: The indicator to enable multi-hop peering support. - * + * * @return the bgpMultiHop value. */ public BgpMultiHop bgpMultiHop() { @@ -108,7 +106,7 @@ public BgpMultiHop bgpMultiHop() { /** * Set the bgpMultiHop property: The indicator to enable multi-hop peering support. - * + * * @param bgpMultiHop the bgpMultiHop value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -118,9 +116,10 @@ public ServiceLoadBalancerBgpPeer withBgpMultiHop(BgpMultiHop bgpMultiHop) { } /** - * Get the holdTime property: The requested BGP hold time value. This field uses ISO 8601 duration format, for + * Get the holdTime property: Field Deprecated. The field was previously optional, now it will have no defined + * behavior and will be ignored. The requested BGP hold time value. This field uses ISO 8601 duration format, for * example P1H. - * + * * @return the holdTime value. */ public String holdTime() { @@ -128,9 +127,10 @@ public String holdTime() { } /** - * Set the holdTime property: The requested BGP hold time value. This field uses ISO 8601 duration format, for + * Set the holdTime property: Field Deprecated. The field was previously optional, now it will have no defined + * behavior and will be ignored. The requested BGP hold time value. This field uses ISO 8601 duration format, for * example P1H. - * + * * @param holdTime the holdTime value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -140,9 +140,10 @@ public ServiceLoadBalancerBgpPeer withHoldTime(String holdTime) { } /** - * Get the keepAliveTime property: The requested BGP keepalive time value. This field uses ISO 8601 duration format, + * Get the keepAliveTime property: Field Deprecated. The field was previously optional, now it will have no defined + * behavior and will be ignored. The requested BGP keepalive time value. This field uses ISO 8601 duration format, * for example P1H. - * + * * @return the keepAliveTime value. */ public String keepAliveTime() { @@ -150,9 +151,10 @@ public String keepAliveTime() { } /** - * Set the keepAliveTime property: The requested BGP keepalive time value. This field uses ISO 8601 duration format, + * Set the keepAliveTime property: Field Deprecated. The field was previously optional, now it will have no defined + * behavior and will be ignored. The requested BGP keepalive time value. This field uses ISO 8601 duration format, * for example P1H. - * + * * @param keepAliveTime the keepAliveTime value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -163,7 +165,7 @@ public ServiceLoadBalancerBgpPeer withKeepAliveTime(String keepAliveTime) { /** * Get the myAsn property: The autonomous system number used for the local end of the BGP session. - * + * * @return the myAsn value. */ public Long myAsn() { @@ -172,7 +174,7 @@ public Long myAsn() { /** * Set the myAsn property: The autonomous system number used for the local end of the BGP session. - * + * * @param myAsn the myAsn value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -183,7 +185,7 @@ public ServiceLoadBalancerBgpPeer withMyAsn(Long myAsn) { /** * Get the name property: The name used to identify this BGP peer for association with a BGP advertisement. - * + * * @return the name value. */ public String name() { @@ -192,7 +194,7 @@ public String name() { /** * Set the name property: The name used to identify this BGP peer for association with a BGP advertisement. - * + * * @param name the name value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -203,7 +205,7 @@ public ServiceLoadBalancerBgpPeer withName(String name) { /** * Get the password property: The authentication password for routers enforcing TCP MD5 authenticated sessions. - * + * * @return the password value. */ public String password() { @@ -212,7 +214,7 @@ public String password() { /** * Set the password property: The authentication password for routers enforcing TCP MD5 authenticated sessions. - * + * * @param password the password value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -223,7 +225,7 @@ public ServiceLoadBalancerBgpPeer withPassword(String password) { /** * Get the peerAddress property: The IPv4 or IPv6 address used to connect this BGP session. - * + * * @return the peerAddress value. */ public String peerAddress() { @@ -232,7 +234,7 @@ public String peerAddress() { /** * Set the peerAddress property: The IPv4 or IPv6 address used to connect this BGP session. - * + * * @param peerAddress the peerAddress value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -243,7 +245,7 @@ public ServiceLoadBalancerBgpPeer withPeerAddress(String peerAddress) { /** * Get the peerAsn property: The autonomous system number expected from the remote end of the BGP session. - * + * * @return the peerAsn value. */ public long peerAsn() { @@ -252,7 +254,7 @@ public long peerAsn() { /** * Set the peerAsn property: The autonomous system number expected from the remote end of the BGP session. - * + * * @param peerAsn the peerAsn value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -263,7 +265,7 @@ public ServiceLoadBalancerBgpPeer withPeerAsn(long peerAsn) { /** * Get the peerPort property: The port used to connect this BGP session. - * + * * @return the peerPort value. */ public Long peerPort() { @@ -272,7 +274,7 @@ public Long peerPort() { /** * Set the peerPort property: The port used to connect this BGP session. - * + * * @param peerPort the peerPort value to set. * @return the ServiceLoadBalancerBgpPeer object itself. */ @@ -283,19 +285,85 @@ public ServiceLoadBalancerBgpPeer withPeerPort(Long peerPort) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model ServiceLoadBalancerBgpPeer")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property name in model ServiceLoadBalancerBgpPeer")); } if (peerAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property peerAddress in model ServiceLoadBalancerBgpPeer")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property peerAddress in model ServiceLoadBalancerBgpPeer")); } } private static final ClientLogger LOGGER = new ClientLogger(ServiceLoadBalancerBgpPeer.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("peerAddress", this.peerAddress); + jsonWriter.writeLongField("peerAsn", this.peerAsn); + jsonWriter.writeStringField("bfdEnabled", this.bfdEnabled == null ? null : this.bfdEnabled.toString()); + jsonWriter.writeStringField("bgpMultiHop", this.bgpMultiHop == null ? null : this.bgpMultiHop.toString()); + jsonWriter.writeStringField("holdTime", this.holdTime); + jsonWriter.writeStringField("keepAliveTime", this.keepAliveTime); + jsonWriter.writeNumberField("myAsn", this.myAsn); + jsonWriter.writeStringField("password", this.password); + jsonWriter.writeNumberField("peerPort", this.peerPort); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServiceLoadBalancerBgpPeer from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServiceLoadBalancerBgpPeer if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ServiceLoadBalancerBgpPeer. + */ + public static ServiceLoadBalancerBgpPeer fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServiceLoadBalancerBgpPeer deserializedServiceLoadBalancerBgpPeer = new ServiceLoadBalancerBgpPeer(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.name = reader.getString(); + } else if ("peerAddress".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.peerAddress = reader.getString(); + } else if ("peerAsn".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.peerAsn = reader.getLong(); + } else if ("bfdEnabled".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.bfdEnabled = BfdEnabled.fromString(reader.getString()); + } else if ("bgpMultiHop".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.bgpMultiHop = BgpMultiHop.fromString(reader.getString()); + } else if ("holdTime".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.holdTime = reader.getString(); + } else if ("keepAliveTime".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.keepAliveTime = reader.getString(); + } else if ("myAsn".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.myAsn = reader.getNullable(JsonReader::getLong); + } else if ("password".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.password = reader.getString(); + } else if ("peerPort".equals(fieldName)) { + deserializedServiceLoadBalancerBgpPeer.peerPort = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedServiceLoadBalancerBgpPeer; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServicePrincipalInformation.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServicePrincipalInformation.java index 66e2fb7f2b986..0dcd6fc87a47a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServicePrincipalInformation.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ServicePrincipalInformation.java @@ -6,45 +6,47 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** * ServicePrincipalInformation represents the details of the service principal to be used by the cluster during Arc * Appliance installation. */ @Fluent -public final class ServicePrincipalInformation { +public final class ServicePrincipalInformation implements JsonSerializable { /* * The application ID, also known as client ID, of the service principal. */ - @JsonProperty(value = "applicationId", required = true) private String applicationId; /* * The password of the service principal. */ - @JsonProperty(value = "password") private String password; /* * The principal ID, also known as the object ID, of the service principal. */ - @JsonProperty(value = "principalId", required = true) private String principalId; /* * The tenant ID, also known as the directory ID, of the tenant in which the service principal is created. */ - @JsonProperty(value = "tenantId", required = true) private String tenantId; - /** Creates an instance of ServicePrincipalInformation class. */ + /** + * Creates an instance of ServicePrincipalInformation class. + */ public ServicePrincipalInformation() { } /** * Get the applicationId property: The application ID, also known as client ID, of the service principal. - * + * * @return the applicationId value. */ public String applicationId() { @@ -53,7 +55,7 @@ public String applicationId() { /** * Set the applicationId property: The application ID, also known as client ID, of the service principal. - * + * * @param applicationId the applicationId value to set. * @return the ServicePrincipalInformation object itself. */ @@ -64,7 +66,7 @@ public ServicePrincipalInformation withApplicationId(String applicationId) { /** * Get the password property: The password of the service principal. - * + * * @return the password value. */ public String password() { @@ -73,7 +75,7 @@ public String password() { /** * Set the password property: The password of the service principal. - * + * * @param password the password value to set. * @return the ServicePrincipalInformation object itself. */ @@ -84,7 +86,7 @@ public ServicePrincipalInformation withPassword(String password) { /** * Get the principalId property: The principal ID, also known as the object ID, of the service principal. - * + * * @return the principalId value. */ public String principalId() { @@ -93,7 +95,7 @@ public String principalId() { /** * Set the principalId property: The principal ID, also known as the object ID, of the service principal. - * + * * @param principalId the principalId value to set. * @return the ServicePrincipalInformation object itself. */ @@ -105,7 +107,7 @@ public ServicePrincipalInformation withPrincipalId(String principalId) { /** * Get the tenantId property: The tenant ID, also known as the directory ID, of the tenant in which the service * principal is created. - * + * * @return the tenantId value. */ public String tenantId() { @@ -115,7 +117,7 @@ public String tenantId() { /** * Set the tenantId property: The tenant ID, also known as the directory ID, of the tenant in which the service * principal is created. - * + * * @param tenantId the tenantId value to set. * @return the ServicePrincipalInformation object itself. */ @@ -126,27 +128,77 @@ public ServicePrincipalInformation withTenantId(String tenantId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (applicationId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property applicationId in model ServicePrincipalInformation")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property applicationId in model ServicePrincipalInformation")); } if (password() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property password in model ServicePrincipalInformation")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property password in model ServicePrincipalInformation")); } if (principalId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property principalId in model ServicePrincipalInformation")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property principalId in model ServicePrincipalInformation")); } if (tenantId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property tenantId in model ServicePrincipalInformation")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property tenantId in model ServicePrincipalInformation")); } } private static final ClientLogger LOGGER = new ClientLogger(ServicePrincipalInformation.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("applicationId", this.applicationId); + jsonWriter.writeStringField("password", this.password); + jsonWriter.writeStringField("principalId", this.principalId); + jsonWriter.writeStringField("tenantId", this.tenantId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServicePrincipalInformation from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServicePrincipalInformation if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ServicePrincipalInformation. + */ + public static ServicePrincipalInformation fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServicePrincipalInformation deserializedServicePrincipalInformation = new ServicePrincipalInformation(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("applicationId".equals(fieldName)) { + deserializedServicePrincipalInformation.applicationId = reader.getString(); + } else if ("password".equals(fieldName)) { + deserializedServicePrincipalInformation.password = reader.getString(); + } else if ("principalId".equals(fieldName)) { + deserializedServicePrincipalInformation.principalId = reader.getString(); + } else if ("tenantId".equals(fieldName)) { + deserializedServicePrincipalInformation.tenantId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedServicePrincipalInformation; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SkipShutdown.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SkipShutdown.java index 7613464ea9ce3..961df4fc1d0be 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SkipShutdown.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SkipShutdown.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether to skip the graceful OS shutdown and power off the virtual machine immediately. */ +/** + * The indicator of whether to skip the graceful OS shutdown and power off the virtual machine immediately. + */ public final class SkipShutdown extends ExpandableStringEnum { - /** Static value True for SkipShutdown. */ + /** + * Static value True for SkipShutdown. + */ public static final SkipShutdown TRUE = fromString("True"); - /** Static value False for SkipShutdown. */ + /** + * Static value False for SkipShutdown. + */ public static final SkipShutdown FALSE = fromString("False"); /** * Creates a new instance of SkipShutdown value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public SkipShutdown() { /** * Creates or finds a SkipShutdown from its string representation. - * + * * @param name a name to look for. * @return the corresponding SkipShutdown. */ - @JsonCreator public static SkipShutdown fromString(String name) { return fromString(name, SkipShutdown.class); } /** * Gets known SkipShutdown values. - * + * * @return known SkipShutdown values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SshPublicKey.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SshPublicKey.java index 1d2614c5329e2..76471e05b5fd4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SshPublicKey.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/SshPublicKey.java @@ -6,24 +6,31 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** SshPublicKey represents the public key used to authenticate with a resource through SSH. */ +/** + * SshPublicKey represents the public key used to authenticate with a resource through SSH. + */ @Fluent -public final class SshPublicKey { +public final class SshPublicKey implements JsonSerializable { /* * The SSH public key data. */ - @JsonProperty(value = "keyData", required = true) private String keyData; - /** Creates an instance of SshPublicKey class. */ + /** + * Creates an instance of SshPublicKey class. + */ public SshPublicKey() { } /** * Get the keyData property: The SSH public key data. - * + * * @return the keyData value. */ public String keyData() { @@ -32,7 +39,7 @@ public String keyData() { /** * Set the keyData property: The SSH public key data. - * + * * @param keyData the keyData value to set. * @return the SshPublicKey object itself. */ @@ -43,15 +50,52 @@ public SshPublicKey withKeyData(String keyData) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (keyData() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property keyData in model SshPublicKey")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property keyData in model SshPublicKey")); } } private static final ClientLogger LOGGER = new ClientLogger(SshPublicKey.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("keyData", this.keyData); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SshPublicKey from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SshPublicKey if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SshPublicKey. + */ + public static SshPublicKey fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SshPublicKey deserializedSshPublicKey = new SshPublicKey(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyData".equals(fieldName)) { + deserializedSshPublicKey.keyData = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSshPublicKey; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java index 0ee6251332e63..9eb6a39d46e5a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliance.java @@ -8,131 +8,143 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.networkcloud.fluent.models.StorageApplianceInner; +import java.util.List; import java.util.Map; -/** An immutable client-side representation of StorageAppliance. */ +/** + * An immutable client-side representation of StorageAppliance. + */ public interface StorageAppliance { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** - * Gets the administratorCredentials property: AdministrativeCredentials represents the admin credentials for the - * device requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance. - * + * Gets the administratorCredentials property: The credentials of the administrative interface on this storage + * appliance. + * * @return the administratorCredentials value. */ AdministrativeCredentials administratorCredentials(); /** * Gets the capacity property: The total capacity of the storage appliance. - * + * * @return the capacity value. */ Long capacity(); /** * Gets the capacityUsed property: The amount of storage consumed. - * + * * @return the capacityUsed value. */ Long capacityUsed(); /** * Gets the clusterId property: The resource ID of the cluster this storage appliance is associated with. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the detailedStatus property: The detailed status of the storage appliance. - * + * * @return the detailedStatus value. */ StorageApplianceDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** * Gets the managementIpv4Address property: The endpoint for the management interface of the storage appliance. - * + * * @return the managementIpv4Address value. */ String managementIpv4Address(); + /** + * Gets the manufacturer property: The manufacturer of the storage appliance. + * + * @return the manufacturer value. + */ + String manufacturer(); + + /** + * Gets the model property: The model of the storage appliance. + * + * @return the model value. + */ + String model(); + /** * Gets the provisioningState property: The provisioning state of the storage appliance. - * + * * @return the provisioningState value. */ StorageApplianceProvisioningState provisioningState(); /** * Gets the rackId property: The resource ID of the rack where this storage appliance resides. - * + * * @return the rackId value. */ String rackId(); /** * Gets the rackSlot property: The slot the storage appliance is in the rack based on the BOM configuration. - * + * * @return the rackSlot value. */ long rackSlot(); @@ -140,7 +152,7 @@ public interface StorageAppliance { /** * Gets the remoteVendorManagementFeature property: The indicator of whether the storage appliance supports remote * vendor management. - * + * * @return the remoteVendorManagementFeature value. */ RemoteVendorManagementFeature remoteVendorManagementFeature(); @@ -148,71 +160,93 @@ public interface StorageAppliance { /** * Gets the remoteVendorManagementStatus property: The indicator of whether the remote vendor management feature is * enabled or disabled, or unsupported if it is an unsupported feature. - * + * * @return the remoteVendorManagementStatus value. */ RemoteVendorManagementStatus remoteVendorManagementStatus(); + /** + * Gets the secretRotationStatus property: The list of statuses that represent secret rotation activity. + * + * @return the secretRotationStatus value. + */ + List secretRotationStatus(); + /** * Gets the serialNumber property: The serial number for the storage appliance. - * + * * @return the serialNumber value. */ String serialNumber(); /** * Gets the storageApplianceSkuId property: The SKU for the storage appliance. - * + * * @return the storageApplianceSkuId value. */ String storageApplianceSkuId(); + /** + * Gets the version property: The version of the storage appliance. + * + * @return the version value. + */ + String version(); + /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.StorageApplianceInner object. - * + * * @return the inner object. */ StorageApplianceInner innerModel(); - /** The entirety of the StorageAppliance definition. */ + /** + * The entirety of the StorageAppliance definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithAdministratorCredentials, DefinitionStages.WithRackId, DefinitionStages.WithRackSlot, DefinitionStages.WithSerialNumber, DefinitionStages.WithStorageApplianceSkuId, DefinitionStages.WithCreate { } - /** The StorageAppliance definition stages. */ + /** + * The StorageAppliance definition stages. + */ interface DefinitionStages { - /** The first stage of the StorageAppliance definition. */ + /** + * The first stage of the StorageAppliance definition. + */ interface Blank extends WithLocation { } - /** The stage of the StorageAppliance definition allowing to specify location. */ + /** + * The stage of the StorageAppliance definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -220,95 +254,102 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the StorageAppliance definition allowing to specify parent resource. */ + /** + * The stage of the StorageAppliance definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the StorageAppliance definition allowing to specify extendedLocation. */ + /** + * The stage of the StorageAppliance definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithAdministratorCredentials withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the StorageAppliance definition allowing to specify administratorCredentials. */ + /** + * The stage of the StorageAppliance definition allowing to specify administratorCredentials. + */ interface WithAdministratorCredentials { /** - * Specifies the administratorCredentials property: AdministrativeCredentials represents the admin - * credentials for the device requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance.. - * - * @param administratorCredentials AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - *

The credentials of the administrative interface on this storage appliance. + * Specifies the administratorCredentials property: The credentials of the administrative interface on this + * storage appliance.. + * + * @param administratorCredentials The credentials of the administrative interface on this storage + * appliance. * @return the next definition stage. */ WithRackId withAdministratorCredentials(AdministrativeCredentials administratorCredentials); } - /** The stage of the StorageAppliance definition allowing to specify rackId. */ + /** + * The stage of the StorageAppliance definition allowing to specify rackId. + */ interface WithRackId { /** * Specifies the rackId property: The resource ID of the rack where this storage appliance resides.. - * + * * @param rackId The resource ID of the rack where this storage appliance resides. * @return the next definition stage. */ WithRackSlot withRackId(String rackId); } - /** The stage of the StorageAppliance definition allowing to specify rackSlot. */ + /** + * The stage of the StorageAppliance definition allowing to specify rackSlot. + */ interface WithRackSlot { /** * Specifies the rackSlot property: The slot the storage appliance is in the rack based on the BOM * configuration.. - * + * * @param rackSlot The slot the storage appliance is in the rack based on the BOM configuration. * @return the next definition stage. */ WithSerialNumber withRackSlot(long rackSlot); } - /** The stage of the StorageAppliance definition allowing to specify serialNumber. */ + /** + * The stage of the StorageAppliance definition allowing to specify serialNumber. + */ interface WithSerialNumber { /** * Specifies the serialNumber property: The serial number for the storage appliance.. - * + * * @param serialNumber The serial number for the storage appliance. * @return the next definition stage. */ WithStorageApplianceSkuId withSerialNumber(String serialNumber); } - /** The stage of the StorageAppliance definition allowing to specify storageApplianceSkuId. */ + /** + * The stage of the StorageAppliance definition allowing to specify storageApplianceSkuId. + */ interface WithStorageApplianceSkuId { /** * Specifies the storageApplianceSkuId property: The SKU for the storage appliance.. - * + * * @param storageApplianceSkuId The SKU for the storage appliance. * @return the next definition stage. */ @@ -322,25 +363,27 @@ interface WithStorageApplianceSkuId { interface WithCreate extends DefinitionStages.WithTags { /** * Executes the create request. - * + * * @return the created resource. */ StorageAppliance create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ StorageAppliance create(Context context); } - /** The stage of the StorageAppliance definition allowing to specify tags. */ + /** + * The stage of the StorageAppliance definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ @@ -350,47 +393,55 @@ interface WithTags { /** * Begins update for the StorageAppliance resource. - * + * * @return the stage of resource update. */ StorageAppliance.Update update(); - /** The template for StorageAppliance update. */ + /** + * The template for StorageAppliance update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithSerialNumber { /** * Executes the update request. - * + * * @return the updated resource. */ StorageAppliance apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ StorageAppliance apply(Context context); } - /** The StorageAppliance update stages. */ + /** + * The StorageAppliance update stages. + */ interface UpdateStages { - /** The stage of the StorageAppliance update allowing to specify tags. */ + /** + * The stage of the StorageAppliance update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the StorageAppliance update allowing to specify serialNumber. */ + /** + * The stage of the StorageAppliance update allowing to specify serialNumber. + */ interface WithSerialNumber { /** * Specifies the serialNumber property: The serial number for the storage appliance.. - * + * * @param serialNumber The serial number for the storage appliance. * @return the next definition stage. */ @@ -400,14 +451,14 @@ interface WithSerialNumber { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ StorageAppliance refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -415,9 +466,9 @@ interface WithSerialNumber { /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -426,9 +477,9 @@ interface WithSerialNumber { /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -439,9 +490,9 @@ interface WithSerialNumber { /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -450,9 +501,9 @@ interface WithSerialNumber { /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param storageApplianceEnableRemoteVendorManagementParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java index bc0325539866c..6569cafe080a7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceConfigurationData.java @@ -6,48 +6,46 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** StorageApplianceConfigurationData represents configuration for the storage application. */ +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * StorageApplianceConfigurationData represents configuration for the storage application. + */ @Fluent -public final class StorageApplianceConfigurationData { +public final class StorageApplianceConfigurationData implements JsonSerializable { /* - * AdministrativeCredentials represents the admin credentials for the device requiring password-based - * authentication. - * * The credentials of the administrative interface on this storage appliance. */ - @JsonProperty(value = "adminCredentials", required = true) private AdministrativeCredentials adminCredentials; /* * The slot that storage appliance is in the rack based on the BOM configuration. */ - @JsonProperty(value = "rackSlot", required = true) private long rackSlot; /* * The serial number of the appliance. */ - @JsonProperty(value = "serialNumber", required = true) private String serialNumber; /* * The user-provided name for the storage appliance that will be created from this specification. */ - @JsonProperty(value = "storageApplianceName") private String storageApplianceName; - /** Creates an instance of StorageApplianceConfigurationData class. */ + /** + * Creates an instance of StorageApplianceConfigurationData class. + */ public StorageApplianceConfigurationData() { } /** - * Get the adminCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance. - * + * Get the adminCredentials property: The credentials of the administrative interface on this storage appliance. + * * @return the adminCredentials value. */ public AdministrativeCredentials adminCredentials() { @@ -55,11 +53,8 @@ public AdministrativeCredentials adminCredentials() { } /** - * Set the adminCredentials property: AdministrativeCredentials represents the admin credentials for the device - * requiring password-based authentication. - * - *

The credentials of the administrative interface on this storage appliance. - * + * Set the adminCredentials property: The credentials of the administrative interface on this storage appliance. + * * @param adminCredentials the adminCredentials value to set. * @return the StorageApplianceConfigurationData object itself. */ @@ -70,7 +65,7 @@ public StorageApplianceConfigurationData withAdminCredentials(AdministrativeCred /** * Get the rackSlot property: The slot that storage appliance is in the rack based on the BOM configuration. - * + * * @return the rackSlot value. */ public long rackSlot() { @@ -79,7 +74,7 @@ public long rackSlot() { /** * Set the rackSlot property: The slot that storage appliance is in the rack based on the BOM configuration. - * + * * @param rackSlot the rackSlot value to set. * @return the StorageApplianceConfigurationData object itself. */ @@ -90,7 +85,7 @@ public StorageApplianceConfigurationData withRackSlot(long rackSlot) { /** * Get the serialNumber property: The serial number of the appliance. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -99,7 +94,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number of the appliance. - * + * * @param serialNumber the serialNumber value to set. * @return the StorageApplianceConfigurationData object itself. */ @@ -111,7 +106,7 @@ public StorageApplianceConfigurationData withSerialNumber(String serialNumber) { /** * Get the storageApplianceName property: The user-provided name for the storage appliance that will be created from * this specification. - * + * * @return the storageApplianceName value. */ public String storageApplianceName() { @@ -121,7 +116,7 @@ public String storageApplianceName() { /** * Set the storageApplianceName property: The user-provided name for the storage appliance that will be created from * this specification. - * + * * @param storageApplianceName the storageApplianceName value to set. * @return the StorageApplianceConfigurationData object itself. */ @@ -132,21 +127,71 @@ public StorageApplianceConfigurationData withStorageApplianceName(String storage /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (adminCredentials() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property adminCredentials in model StorageApplianceConfigurationData")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property adminCredentials in model StorageApplianceConfigurationData")); } else { adminCredentials().validate(); } if (serialNumber() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property serialNumber in model StorageApplianceConfigurationData")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property serialNumber in model StorageApplianceConfigurationData")); } } private static final ClientLogger LOGGER = new ClientLogger(StorageApplianceConfigurationData.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("adminCredentials", this.adminCredentials); + jsonWriter.writeLongField("rackSlot", this.rackSlot); + jsonWriter.writeStringField("serialNumber", this.serialNumber); + jsonWriter.writeStringField("storageApplianceName", this.storageApplianceName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageApplianceConfigurationData from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageApplianceConfigurationData if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the StorageApplianceConfigurationData. + */ + public static StorageApplianceConfigurationData fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageApplianceConfigurationData deserializedStorageApplianceConfigurationData + = new StorageApplianceConfigurationData(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("adminCredentials".equals(fieldName)) { + deserializedStorageApplianceConfigurationData.adminCredentials + = AdministrativeCredentials.fromJson(reader); + } else if ("rackSlot".equals(fieldName)) { + deserializedStorageApplianceConfigurationData.rackSlot = reader.getLong(); + } else if ("serialNumber".equals(fieldName)) { + deserializedStorageApplianceConfigurationData.serialNumber = reader.getString(); + } else if ("storageApplianceName".equals(fieldName)) { + deserializedStorageApplianceConfigurationData.storageApplianceName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageApplianceConfigurationData; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java index 77c5a6fb010f4..7b4997a1d102b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The detailed status of the storage appliance. */ +/** + * The detailed status of the storage appliance. + */ public final class StorageApplianceDetailedStatus extends ExpandableStringEnum { - /** Static value Error for StorageApplianceDetailedStatus. */ + /** + * Static value Error for StorageApplianceDetailedStatus. + */ public static final StorageApplianceDetailedStatus ERROR = fromString("Error"); - /** Static value Available for StorageApplianceDetailedStatus. */ + /** + * Static value Available for StorageApplianceDetailedStatus. + */ public static final StorageApplianceDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for StorageApplianceDetailedStatus. */ + /** + * Static value Provisioning for StorageApplianceDetailedStatus. + */ public static final StorageApplianceDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of StorageApplianceDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public StorageApplianceDetailedStatus() { /** * Creates or finds a StorageApplianceDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding StorageApplianceDetailedStatus. */ - @JsonCreator public static StorageApplianceDetailedStatus fromString(String name) { return fromString(name, StorageApplianceDetailedStatus.class); } /** * Gets known StorageApplianceDetailedStatus values. - * + * * @return known StorageApplianceDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceEnableRemoteVendorManagementParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceEnableRemoteVendorManagementParameters.java index e5b867d66a7bd..8ed0ea3352e6d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceEnableRemoteVendorManagementParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceEnableRemoteVendorManagementParameters.java @@ -5,7 +5,11 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; /** @@ -13,16 +17,18 @@ * management of a storage appliance. */ @Fluent -public final class StorageApplianceEnableRemoteVendorManagementParameters { +public final class StorageApplianceEnableRemoteVendorManagementParameters + implements JsonSerializable { /* * Field Deprecated. This field is not used and will be rejected if provided. The list of IPv4 subnets (in CIDR - * format), IPv6 subnets (in CIDR format), or hostnames that the storage appliance needs accessible in order to - * turn on the remote vendor management. + * format), IPv6 subnets (in CIDR format), or hostnames that the storage appliance needs accessible in order to turn + * on the remote vendor management. */ - @JsonProperty(value = "supportEndpoints") private List supportEndpoints; - /** Creates an instance of StorageApplianceEnableRemoteVendorManagementParameters class. */ + /** + * Creates an instance of StorageApplianceEnableRemoteVendorManagementParameters class. + */ public StorageApplianceEnableRemoteVendorManagementParameters() { } @@ -30,7 +36,7 @@ public StorageApplianceEnableRemoteVendorManagementParameters() { * Get the supportEndpoints property: Field Deprecated. This field is not used and will be rejected if provided. The * list of IPv4 subnets (in CIDR format), IPv6 subnets (in CIDR format), or hostnames that the storage appliance * needs accessible in order to turn on the remote vendor management. - * + * * @return the supportEndpoints value. */ public List supportEndpoints() { @@ -41,7 +47,7 @@ public List supportEndpoints() { * Set the supportEndpoints property: Field Deprecated. This field is not used and will be rejected if provided. The * list of IPv4 subnets (in CIDR format), IPv6 subnets (in CIDR format), or hostnames that the storage appliance * needs accessible in order to turn on the remote vendor management. - * + * * @param supportEndpoints the supportEndpoints value to set. * @return the StorageApplianceEnableRemoteVendorManagementParameters object itself. */ @@ -52,9 +58,50 @@ public StorageApplianceEnableRemoteVendorManagementParameters withSupportEndpoin /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("supportEndpoints", this.supportEndpoints, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageApplianceEnableRemoteVendorManagementParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageApplianceEnableRemoteVendorManagementParameters if the JsonReader was pointing to + * an instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the StorageApplianceEnableRemoteVendorManagementParameters. + */ + public static StorageApplianceEnableRemoteVendorManagementParameters fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + StorageApplianceEnableRemoteVendorManagementParameters deserializedStorageApplianceEnableRemoteVendorManagementParameters + = new StorageApplianceEnableRemoteVendorManagementParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("supportEndpoints".equals(fieldName)) { + List supportEndpoints = reader.readArray(reader1 -> reader1.getString()); + deserializedStorageApplianceEnableRemoteVendorManagementParameters.supportEndpoints + = supportEndpoints; + } else { + reader.skipChildren(); + } + } + + return deserializedStorageApplianceEnableRemoteVendorManagementParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceList.java index 458a8b626def5..62197756a04e1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.StorageApplianceInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** StorageApplianceList represents a list of storage appliances. */ +/** + * StorageApplianceList represents a list of storage appliances. + */ @Fluent -public final class StorageApplianceList { +public final class StorageApplianceList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of storage appliances. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of StorageApplianceList class. */ + /** + * Creates an instance of StorageApplianceList class. + */ public StorageApplianceList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the StorageApplianceList object itself. */ @@ -50,7 +56,7 @@ public StorageApplianceList withNextLink(String nextLink) { /** * Get the value property: The list of storage appliances. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of storage appliances. - * + * * @param value the value value to set. * @return the StorageApplianceList object itself. */ @@ -70,7 +76,7 @@ public StorageApplianceList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageApplianceList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageApplianceList if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the StorageApplianceList. + */ + public static StorageApplianceList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageApplianceList deserializedStorageApplianceList = new StorageApplianceList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedStorageApplianceList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> StorageApplianceInner.fromJson(reader1)); + deserializedStorageApplianceList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedStorageApplianceList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliancePatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliancePatchParameters.java index 5f766ced025ad..a50fac8138f78 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliancePatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliancePatchParameters.java @@ -5,39 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.StorageAppliancePatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** StorageAppliancePatchParameters represents the body of the request to patch storage appliance properties. */ +/** + * StorageAppliancePatchParameters represents the body of the request to patch storage appliance properties. + */ @Fluent -public final class StorageAppliancePatchParameters { +public final class StorageAppliancePatchParameters implements JsonSerializable { /* - * StorageAppliancePatchProperties represents the properties of the storage appliance that can be patched. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private StorageAppliancePatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of StorageAppliancePatchParameters class. */ + /** + * Creates an instance of StorageAppliancePatchParameters class. + */ public StorageAppliancePatchParameters() { } /** - * Get the innerProperties property: StorageAppliancePatchProperties represents the properties of the storage - * appliance that can be patched. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private StorageAppliancePatchProperties innerProperties() { @@ -46,7 +45,7 @@ private StorageAppliancePatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -55,7 +54,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the StorageAppliancePatchParameters object itself. */ @@ -66,7 +65,7 @@ public StorageAppliancePatchParameters withTags(Map tags) { /** * Get the serialNumber property: The serial number for the storage appliance. - * + * * @return the serialNumber value. */ public String serialNumber() { @@ -75,7 +74,7 @@ public String serialNumber() { /** * Set the serialNumber property: The serial number for the storage appliance. - * + * * @param serialNumber the serialNumber value to set. * @return the StorageAppliancePatchParameters object itself. */ @@ -89,7 +88,7 @@ public StorageAppliancePatchParameters withSerialNumber(String serialNumber) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -97,4 +96,46 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageAppliancePatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageAppliancePatchParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the StorageAppliancePatchParameters. + */ + public static StorageAppliancePatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageAppliancePatchParameters deserializedStorageAppliancePatchParameters + = new StorageAppliancePatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedStorageAppliancePatchParameters.innerProperties + = StorageAppliancePatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedStorageAppliancePatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedStorageAppliancePatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceProvisioningState.java index 184664b16cac3..4c71dd11ac5ba 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the storage appliance. */ +/** + * The provisioning state of the storage appliance. + */ public final class StorageApplianceProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for StorageApplianceProvisioningState. */ + /** + * Static value Succeeded for StorageApplianceProvisioningState. + */ public static final StorageApplianceProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for StorageApplianceProvisioningState. */ + /** + * Static value Failed for StorageApplianceProvisioningState. + */ public static final StorageApplianceProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for StorageApplianceProvisioningState. */ + /** + * Static value Canceled for StorageApplianceProvisioningState. + */ public static final StorageApplianceProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for StorageApplianceProvisioningState. */ + /** + * Static value Provisioning for StorageApplianceProvisioningState. + */ public static final StorageApplianceProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for StorageApplianceProvisioningState. */ + /** + * Static value Accepted for StorageApplianceProvisioningState. + */ public static final StorageApplianceProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of StorageApplianceProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public StorageApplianceProvisioningState() { /** * Creates or finds a StorageApplianceProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding StorageApplianceProvisioningState. */ - @JsonCreator public static StorageApplianceProvisioningState fromString(String name) { return fromString(name, StorageApplianceProvisioningState.class); } /** * Gets known StorageApplianceProvisioningState values. - * + * * @return known StorageApplianceProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceSkuSlot.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceSkuSlot.java index 723c89c1552df..bc81fd9508214 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceSkuSlot.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageApplianceSkuSlot.java @@ -5,36 +5,37 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.StorageApplianceSkuProperties; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; -/** StorageApplianceSkuSlot represents the single SKU and rack slot associated with the storage appliance. */ +/** + * StorageApplianceSkuSlot represents the single SKU and rack slot associated with the storage appliance. + */ @Immutable -public final class StorageApplianceSkuSlot { +public final class StorageApplianceSkuSlot implements JsonSerializable { /* - * StorageApplianceSkuProperties represents the properties of the storage appliance SKU. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private StorageApplianceSkuProperties innerProperties; /* * The position in the rack for the storage appliance. */ - @JsonProperty(value = "rackSlot", access = JsonProperty.Access.WRITE_ONLY) private Long rackSlot; - /** Creates an instance of StorageApplianceSkuSlot class. */ + /** + * Creates an instance of StorageApplianceSkuSlot class. + */ public StorageApplianceSkuSlot() { } /** - * Get the innerProperties property: StorageApplianceSkuProperties represents the properties of the storage - * appliance SKU. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private StorageApplianceSkuProperties innerProperties() { @@ -43,7 +44,7 @@ private StorageApplianceSkuProperties innerProperties() { /** * Get the rackSlot property: The position in the rack for the storage appliance. - * + * * @return the rackSlot value. */ public Long rackSlot() { @@ -51,8 +52,8 @@ public Long rackSlot() { } /** - * Get the capacityGB property: The maximum capacity of the storage appliance. - * + * Get the capacityGB property: The maximum capacity of the storage appliance. Measured in gibibytes. + * * @return the capacityGB value. */ public Long capacityGB() { @@ -61,7 +62,7 @@ public Long capacityGB() { /** * Get the model property: The model of the storage appliance. - * + * * @return the model value. */ public String model() { @@ -70,7 +71,7 @@ public String model() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +79,43 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageApplianceSkuSlot from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageApplianceSkuSlot if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the StorageApplianceSkuSlot. + */ + public static StorageApplianceSkuSlot fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageApplianceSkuSlot deserializedStorageApplianceSkuSlot = new StorageApplianceSkuSlot(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedStorageApplianceSkuSlot.innerProperties + = StorageApplianceSkuProperties.fromJson(reader); + } else if ("rackSlot".equals(fieldName)) { + deserializedStorageApplianceSkuSlot.rackSlot = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageApplianceSkuSlot; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliances.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliances.java index 9075e1695bcfe..a0fb212972783 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliances.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageAppliances.java @@ -8,68 +8,70 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of StorageAppliances. */ +/** + * Resource collection API of StorageAppliances. + */ public interface StorageAppliances { /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(); /** * List storage appliances in the subscription. - * - *

Get a list of storage appliances in the provided subscription. - * + * + * Get a list of storage appliances in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided subscription as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided subscription as paginated response with + * {@link PagedIterable}. */ PagedIterable list(Context context); /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List storage appliances in the resource group. - * - *

Get a list of storage appliances in the provided resource group. - * + * + * Get a list of storage appliances in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of storage appliances in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of storage appliances in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -83,9 +85,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -97,38 +99,40 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String storageApplianceName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String storageApplianceName); /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String storageApplianceName, Context context); + OperationStatusResult delete(String resourceGroupName, String storageApplianceName, Context context); /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,9 +144,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa /** * Turn off remote vendor management for a storage appliance, if supported. - * - *

Disable remote vendor management of the provided storage appliance. - * + * + * Disable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param context The context to associate with this operation. @@ -156,9 +160,9 @@ OperationStatusResult disableRemoteVendorManagement(String resourceGroupName, St /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -170,9 +174,9 @@ OperationStatusResult disableRemoteVendorManagement(String resourceGroupName, St /** * Turn on remote vendor management for a storage appliance, if supported. - * - *

Enable remote vendor management of the provided storage appliance. - * + * + * Enable remote vendor management of the provided storage appliance. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param storageApplianceName The name of the storage appliance. * @param storageApplianceEnableRemoteVendorManagementParameters The request body. @@ -188,9 +192,9 @@ OperationStatusResult enableRemoteVendorManagement(String resourceGroupName, Str /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -201,9 +205,9 @@ OperationStatusResult enableRemoteVendorManagement(String resourceGroupName, Str /** * Retrieve the storage appliance. - * - *

Get properties of the provided storage appliance. - * + * + * Get properties of the provided storage appliance. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -215,34 +219,36 @@ OperationStatusResult enableRemoteVendorManagement(String resourceGroupName, Str /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the storage appliance. - * - *

Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of - * this resource is managed by the system. - * + * + * Delete the provided storage appliance. + * All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new StorageAppliance resource. - * + * * @param name resource name. * @return the first stage of the new StorageAppliance definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageProfile.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageProfile.java index fba2b6d375ad4..a7bcf914a4584 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageProfile.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StorageProfile.java @@ -6,35 +6,37 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.List; -/** StorageProfile represents information about a disk. */ +/** + * StorageProfile represents information about a disk. + */ @Fluent -public final class StorageProfile { +public final class StorageProfile implements JsonSerializable { /* - * OsDisk represents configuration of the boot disk. - * * The disk to use with this virtual machine. */ - @JsonProperty(value = "osDisk", required = true) private OsDisk osDisk; /* * The resource IDs of volumes that are requested to be attached to the virtual machine. */ - @JsonProperty(value = "volumeAttachments") private List volumeAttachments; - /** Creates an instance of StorageProfile class. */ + /** + * Creates an instance of StorageProfile class. + */ public StorageProfile() { } /** - * Get the osDisk property: OsDisk represents configuration of the boot disk. - * - *

The disk to use with this virtual machine. - * + * Get the osDisk property: The disk to use with this virtual machine. + * * @return the osDisk value. */ public OsDisk osDisk() { @@ -42,10 +44,8 @@ public OsDisk osDisk() { } /** - * Set the osDisk property: OsDisk represents configuration of the boot disk. - * - *

The disk to use with this virtual machine. - * + * Set the osDisk property: The disk to use with this virtual machine. + * * @param osDisk the osDisk value to set. * @return the StorageProfile object itself. */ @@ -57,7 +57,7 @@ public StorageProfile withOsDisk(OsDisk osDisk) { /** * Get the volumeAttachments property: The resource IDs of volumes that are requested to be attached to the virtual * machine. - * + * * @return the volumeAttachments value. */ public List volumeAttachments() { @@ -67,7 +67,7 @@ public List volumeAttachments() { /** * Set the volumeAttachments property: The resource IDs of volumes that are requested to be attached to the virtual * machine. - * + * * @param volumeAttachments the volumeAttachments value to set. * @return the StorageProfile object itself. */ @@ -78,17 +78,59 @@ public StorageProfile withVolumeAttachments(List volumeAttachments) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (osDisk() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property osDisk in model StorageProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property osDisk in model StorageProfile")); } else { osDisk().validate(); } } private static final ClientLogger LOGGER = new ClientLogger(StorageProfile.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("osDisk", this.osDisk); + jsonWriter.writeArrayField("volumeAttachments", this.volumeAttachments, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageProfile if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the StorageProfile. + */ + public static StorageProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageProfile deserializedStorageProfile = new StorageProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("osDisk".equals(fieldName)) { + deserializedStorageProfile.osDisk = OsDisk.fromJson(reader); + } else if ("volumeAttachments".equals(fieldName)) { + List volumeAttachments = reader.readArray(reader1 -> reader1.getString()); + deserializedStorageProfile.volumeAttachments = volumeAttachments; + } else { + reader.skipChildren(); + } + } + + return deserializedStorageProfile; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StringKeyValuePair.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StringKeyValuePair.java new file mode 100644 index 0000000000000..ff0b5c91a938a --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/StringKeyValuePair.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * StringKeyValuePair represents a single entry in a mapping of keys to values. + */ +@Fluent +public final class StringKeyValuePair implements JsonSerializable { + /* + * The key to the mapped value. + */ + private String key; + + /* + * The value of the mapping key. + */ + private String value; + + /** + * Creates an instance of StringKeyValuePair class. + */ + public StringKeyValuePair() { + } + + /** + * Get the key property: The key to the mapped value. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: The key to the mapped value. + * + * @param key the key value to set. + * @return the StringKeyValuePair object itself. + */ + public StringKeyValuePair withKey(String key) { + this.key = key; + return this; + } + + /** + * Get the value property: The value of the mapping key. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Set the value property: The value of the mapping key. + * + * @param value the value value to set. + * @return the StringKeyValuePair object itself. + */ + public StringKeyValuePair withValue(String value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (key() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property key in model StringKeyValuePair")); + } + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model StringKeyValuePair")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(StringKeyValuePair.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StringKeyValuePair from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StringKeyValuePair if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the StringKeyValuePair. + */ + public static StringKeyValuePair fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StringKeyValuePair deserializedStringKeyValuePair = new StringKeyValuePair(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedStringKeyValuePair.key = reader.getString(); + } else if ("value".equals(fieldName)) { + deserializedStringKeyValuePair.value = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStringKeyValuePair; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetwork.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetwork.java index d700f518b5a21..6c87f707fe617 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetwork.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetwork.java @@ -11,56 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of TrunkedNetwork. */ +/** + * An immutable client-side representation of TrunkedNetwork. + */ public interface TrunkedNetwork { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -68,7 +67,7 @@ public interface TrunkedNetwork { /** * Gets the associatedResourceIds property: The list of resource IDs for the other Microsoft.NetworkCloud resources * that have attached this network. - * + * * @return the associatedResourceIds value. */ List associatedResourceIds(); @@ -76,21 +75,21 @@ public interface TrunkedNetwork { /** * Gets the clusterId property: The resource ID of the Network Cloud cluster this trunked network is associated * with. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the detailedStatus property: The more detailed status of the trunked network. - * + * * @return the detailedStatus value. */ TrunkedNetworkDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -98,7 +97,7 @@ public interface TrunkedNetwork { /** * Gets the hybridAksClustersAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list * of Hybrid AKS cluster resource IDs that are associated with this trunked network. - * + * * @return the hybridAksClustersAssociatedIds value. */ List hybridAksClustersAssociatedIds(); @@ -106,7 +105,7 @@ public interface TrunkedNetwork { /** * Gets the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it will have no * defined behavior and will be ignored. The network plugin type for Hybrid AKS. - * + * * @return the hybridAksPluginType value. */ HybridAksPluginType hybridAksPluginType(); @@ -114,7 +113,7 @@ public interface TrunkedNetwork { /** * Gets the interfaceName property: The default interface name for this trunked network in the virtual machine. This * name can be overridden by the name supplied in the network attachment configuration of that virtual machine. - * + * * @return the interfaceName value. */ String interfaceName(); @@ -122,14 +121,14 @@ public interface TrunkedNetwork { /** * Gets the isolationDomainIds property: The list of resource IDs representing the Network Fabric isolation domains. * It can be any combination of l2IsolationDomain and l3IsolationDomain resources. - * + * * @return the isolationDomainIds value. */ List isolationDomainIds(); /** * Gets the provisioningState property: The provisioning state of the trunked network. - * + * * @return the provisioningState value. */ TrunkedNetworkProvisioningState provisioningState(); @@ -138,63 +137,71 @@ public interface TrunkedNetwork { * Gets the virtualMachinesAssociatedIds property: Field Deprecated. These fields will be empty/omitted. The list of * virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this trunked * network. - * + * * @return the virtualMachinesAssociatedIds value. */ List virtualMachinesAssociatedIds(); /** * Gets the vlans property: The list of vlans that are selected from the isolation domains for trunking. - * + * * @return the vlans value. */ List vlans(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkInner object. - * + * * @return the inner object. */ TrunkedNetworkInner innerModel(); - /** The entirety of the TrunkedNetwork definition. */ + /** + * The entirety of the TrunkedNetwork definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithIsolationDomainIds, DefinitionStages.WithVlans, DefinitionStages.WithCreate { } - /** The TrunkedNetwork definition stages. */ + /** + * The TrunkedNetwork definition stages. + */ interface DefinitionStages { - /** The first stage of the TrunkedNetwork definition. */ + /** + * The first stage of the TrunkedNetwork definition. + */ interface Blank extends WithLocation { } - /** The stage of the TrunkedNetwork definition allowing to specify location. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -202,59 +209,63 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the TrunkedNetwork definition allowing to specify parent resource. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the TrunkedNetwork definition allowing to specify extendedLocation. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithIsolationDomainIds withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the TrunkedNetwork definition allowing to specify isolationDomainIds. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify isolationDomainIds. + */ interface WithIsolationDomainIds { /** * Specifies the isolationDomainIds property: The list of resource IDs representing the Network Fabric * isolation domains. It can be any combination of l2IsolationDomain and l3IsolationDomain resources.. - * + * * @param isolationDomainIds The list of resource IDs representing the Network Fabric isolation domains. It - * can be any combination of l2IsolationDomain and l3IsolationDomain resources. + * can be any combination of l2IsolationDomain and l3IsolationDomain resources. * @return the next definition stage. */ WithVlans withIsolationDomainIds(List isolationDomainIds); } - /** The stage of the TrunkedNetwork definition allowing to specify vlans. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify vlans. + */ interface WithVlans { /** * Specifies the vlans property: The list of vlans that are selected from the isolation domains for * trunking.. - * + * * @param vlans The list of vlans that are selected from the isolation domains for trunking. * @return the next definition stage. */ @@ -269,54 +280,60 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithHyb DefinitionStages.WithInterfaceName { /** * Executes the create request. - * + * * @return the created resource. */ TrunkedNetwork create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ TrunkedNetwork create(Context context); } - /** The stage of the TrunkedNetwork definition allowing to specify tags. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the TrunkedNetwork definition allowing to specify hybridAksPluginType. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify hybridAksPluginType. + */ interface WithHybridAksPluginType { /** * Specifies the hybridAksPluginType property: Field Deprecated. The field was previously optional, now it * will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS.. - * + * * @param hybridAksPluginType Field Deprecated. The field was previously optional, now it will have no - * defined behavior and will be ignored. The network plugin type for Hybrid AKS. + * defined behavior and will be ignored. The network plugin type for Hybrid AKS. * @return the next definition stage. */ WithCreate withHybridAksPluginType(HybridAksPluginType hybridAksPluginType); } - /** The stage of the TrunkedNetwork definition allowing to specify interfaceName. */ + /** + * The stage of the TrunkedNetwork definition allowing to specify interfaceName. + */ interface WithInterfaceName { /** * Specifies the interfaceName property: The default interface name for this trunked network in the virtual * machine. This name can be overridden by the name supplied in the network attachment configuration of that * virtual machine.. - * + * * @param interfaceName The default interface name for this trunked network in the virtual machine. This - * name can be overridden by the name supplied in the network attachment configuration of that virtual - * machine. + * name can be overridden by the name supplied in the network attachment configuration of that virtual + * machine. * @return the next definition stage. */ WithCreate withInterfaceName(String interfaceName); @@ -325,36 +342,42 @@ interface WithInterfaceName { /** * Begins update for the TrunkedNetwork resource. - * + * * @return the stage of resource update. */ TrunkedNetwork.Update update(); - /** The template for TrunkedNetwork update. */ + /** + * The template for TrunkedNetwork update. + */ interface Update extends UpdateStages.WithTags { /** * Executes the update request. - * + * * @return the updated resource. */ TrunkedNetwork apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ TrunkedNetwork apply(Context context); } - /** The TrunkedNetwork update stages. */ + /** + * The TrunkedNetwork update stages. + */ interface UpdateStages { - /** The stage of the TrunkedNetwork update allowing to specify tags. */ + /** + * The stage of the TrunkedNetwork update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ @@ -364,14 +387,14 @@ interface WithTags { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ TrunkedNetwork refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkAttachmentConfiguration.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkAttachmentConfiguration.java index 6d519ce41e5a6..ea903a6134a53 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkAttachmentConfiguration.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkAttachmentConfiguration.java @@ -6,30 +6,37 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** TrunkedNetworkAttachmentConfiguration represents the configuration of the attachment of a trunked network. */ +/** + * TrunkedNetworkAttachmentConfiguration represents the configuration of the attachment of a trunked network. + */ @Fluent -public final class TrunkedNetworkAttachmentConfiguration { +public final class TrunkedNetworkAttachmentConfiguration + implements JsonSerializable { /* * The resource ID of the network that is being configured for attachment. */ - @JsonProperty(value = "networkId", required = true) private String networkId; /* * The indicator of how this network will be utilized by the Kubernetes cluster. */ - @JsonProperty(value = "pluginType") private KubernetesPluginType pluginType; - /** Creates an instance of TrunkedNetworkAttachmentConfiguration class. */ + /** + * Creates an instance of TrunkedNetworkAttachmentConfiguration class. + */ public TrunkedNetworkAttachmentConfiguration() { } /** * Get the networkId property: The resource ID of the network that is being configured for attachment. - * + * * @return the networkId value. */ public String networkId() { @@ -38,7 +45,7 @@ public String networkId() { /** * Set the networkId property: The resource ID of the network that is being configured for attachment. - * + * * @param networkId the networkId value to set. * @return the TrunkedNetworkAttachmentConfiguration object itself. */ @@ -49,7 +56,7 @@ public TrunkedNetworkAttachmentConfiguration withNetworkId(String networkId) { /** * Get the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster. - * + * * @return the pluginType value. */ public KubernetesPluginType pluginType() { @@ -58,7 +65,7 @@ public KubernetesPluginType pluginType() { /** * Set the pluginType property: The indicator of how this network will be utilized by the Kubernetes cluster. - * + * * @param pluginType the pluginType value to set. * @return the TrunkedNetworkAttachmentConfiguration object itself. */ @@ -69,15 +76,58 @@ public TrunkedNetworkAttachmentConfiguration withPluginType(KubernetesPluginType /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (networkId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property networkId in model TrunkedNetworkAttachmentConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkId in model TrunkedNetworkAttachmentConfiguration")); } } private static final ClientLogger LOGGER = new ClientLogger(TrunkedNetworkAttachmentConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("networkId", this.networkId); + jsonWriter.writeStringField("pluginType", this.pluginType == null ? null : this.pluginType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TrunkedNetworkAttachmentConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TrunkedNetworkAttachmentConfiguration if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the TrunkedNetworkAttachmentConfiguration. + */ + public static TrunkedNetworkAttachmentConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TrunkedNetworkAttachmentConfiguration deserializedTrunkedNetworkAttachmentConfiguration + = new TrunkedNetworkAttachmentConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("networkId".equals(fieldName)) { + deserializedTrunkedNetworkAttachmentConfiguration.networkId = reader.getString(); + } else if ("pluginType".equals(fieldName)) { + deserializedTrunkedNetworkAttachmentConfiguration.pluginType + = KubernetesPluginType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedTrunkedNetworkAttachmentConfiguration; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkDetailedStatus.java index a090bdc911879..85a3117b98851 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the trunked network. */ +/** + * The more detailed status of the trunked network. + */ public final class TrunkedNetworkDetailedStatus extends ExpandableStringEnum { - /** Static value Error for TrunkedNetworkDetailedStatus. */ + /** + * Static value Error for TrunkedNetworkDetailedStatus. + */ public static final TrunkedNetworkDetailedStatus ERROR = fromString("Error"); - /** Static value Available for TrunkedNetworkDetailedStatus. */ + /** + * Static value Available for TrunkedNetworkDetailedStatus. + */ public static final TrunkedNetworkDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Provisioning for TrunkedNetworkDetailedStatus. */ + /** + * Static value Provisioning for TrunkedNetworkDetailedStatus. + */ public static final TrunkedNetworkDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of TrunkedNetworkDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public TrunkedNetworkDetailedStatus() { /** * Creates or finds a TrunkedNetworkDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding TrunkedNetworkDetailedStatus. */ - @JsonCreator public static TrunkedNetworkDetailedStatus fromString(String name) { return fromString(name, TrunkedNetworkDetailedStatus.class); } /** * Gets known TrunkedNetworkDetailedStatus values. - * + * * @return known TrunkedNetworkDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkList.java index 4f184604726a2..adfca50fff8b0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.TrunkedNetworkInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** TrunkedNetworkList represents a list of trunked networks. */ +/** + * TrunkedNetworkList represents a list of trunked networks. + */ @Fluent -public final class TrunkedNetworkList { +public final class TrunkedNetworkList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of trunked networks. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of TrunkedNetworkList class. */ + /** + * Creates an instance of TrunkedNetworkList class. + */ public TrunkedNetworkList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the TrunkedNetworkList object itself. */ @@ -50,7 +56,7 @@ public TrunkedNetworkList withNextLink(String nextLink) { /** * Get the value property: The list of trunked networks. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of trunked networks. - * + * * @param value the value value to set. * @return the TrunkedNetworkList object itself. */ @@ -70,7 +76,7 @@ public TrunkedNetworkList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TrunkedNetworkList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TrunkedNetworkList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the TrunkedNetworkList. + */ + public static TrunkedNetworkList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TrunkedNetworkList deserializedTrunkedNetworkList = new TrunkedNetworkList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedTrunkedNetworkList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> TrunkedNetworkInner.fromJson(reader1)); + deserializedTrunkedNetworkList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedTrunkedNetworkList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkPatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkPatchParameters.java index 708afa433d568..474a305dd7901 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkPatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkPatchParameters.java @@ -5,27 +5,32 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.Map; -/** TrunkedNetworkPatchParameters represents the body of the request to patch the Trunked network. */ +/** + * TrunkedNetworkPatchParameters represents the body of the request to patch the Trunked network. + */ @Fluent -public final class TrunkedNetworkPatchParameters { +public final class TrunkedNetworkPatchParameters implements JsonSerializable { /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of TrunkedNetworkPatchParameters class. */ + /** + * Creates an instance of TrunkedNetworkPatchParameters class. + */ public TrunkedNetworkPatchParameters() { } /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -34,7 +39,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the TrunkedNetworkPatchParameters object itself. */ @@ -45,9 +50,47 @@ public TrunkedNetworkPatchParameters withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of TrunkedNetworkPatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of TrunkedNetworkPatchParameters if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the TrunkedNetworkPatchParameters. + */ + public static TrunkedNetworkPatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + TrunkedNetworkPatchParameters deserializedTrunkedNetworkPatchParameters + = new TrunkedNetworkPatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedTrunkedNetworkPatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedTrunkedNetworkPatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkProvisioningState.java index d24fe21e6c093..4fa946ee377f4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworkProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the trunked network. */ +/** + * The provisioning state of the trunked network. + */ public final class TrunkedNetworkProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for TrunkedNetworkProvisioningState. */ + /** + * Static value Succeeded for TrunkedNetworkProvisioningState. + */ public static final TrunkedNetworkProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for TrunkedNetworkProvisioningState. */ + /** + * Static value Failed for TrunkedNetworkProvisioningState. + */ public static final TrunkedNetworkProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for TrunkedNetworkProvisioningState. */ + /** + * Static value Canceled for TrunkedNetworkProvisioningState. + */ public static final TrunkedNetworkProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for TrunkedNetworkProvisioningState. */ + /** + * Static value Provisioning for TrunkedNetworkProvisioningState. + */ public static final TrunkedNetworkProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for TrunkedNetworkProvisioningState. */ + /** + * Static value Accepted for TrunkedNetworkProvisioningState. + */ public static final TrunkedNetworkProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of TrunkedNetworkProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public TrunkedNetworkProvisioningState() { /** * Creates or finds a TrunkedNetworkProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding TrunkedNetworkProvisioningState. */ - @JsonCreator public static TrunkedNetworkProvisioningState fromString(String name) { return fromString(name, TrunkedNetworkProvisioningState.class); } /** * Gets known TrunkedNetworkProvisioningState values. - * + * * @return known TrunkedNetworkProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworks.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworks.java index ef1ddb6265734..28615f5591830 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworks.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/TrunkedNetworks.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of TrunkedNetworks. */ +/** + * Resource collection API of TrunkedNetworks. + */ public interface TrunkedNetworks { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of trunked networks in the provided subscription as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface TrunkedNetworks { /** * List trunked networks in the subscription. - * - *

Get a list of trunked networks in the provided subscription. - * + * + * Get a list of trunked networks in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,38 +38,38 @@ public interface TrunkedNetworks { /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trunked networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of trunked networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List trunked networks in the resource group. - * - *

Get a list of trunked networks in the provided resource group. - * + * + * Get a list of trunked networks in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of trunked networks in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of trunked networks in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. @@ -81,9 +83,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -95,36 +97,38 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String trunkedNetworkName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String trunkedNetworkName); /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param trunkedNetworkName The name of the trunked network. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String trunkedNetworkName, Context context); + OperationStatusResult delete(String resourceGroupName, String trunkedNetworkName, Context context); /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -135,9 +139,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Retrieve the trunked network. - * - *

Get properties of the provided trunked network. - * + * + * Get properties of the provided trunked network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,32 +153,34 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the trunked network. - * - *

Delete the provided trunked network. - * + * + * Delete the provided trunked network. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new TrunkedNetwork resource. - * + * * @param name resource name. * @return the first stage of the new TrunkedNetwork definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/UserAssignedIdentity.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/UserAssignedIdentity.java new file mode 100644 index 0000000000000..e93c47ce1edc0 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/UserAssignedIdentity.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.UUID; + +/** + * User assigned identity properties. + */ +@Immutable +public final class UserAssignedIdentity implements JsonSerializable { + /* + * The principal ID of the assigned identity. + */ + private UUID principalId; + + /* + * The client ID of the assigned identity. + */ + private UUID clientId; + + /** + * Creates an instance of UserAssignedIdentity class. + */ + public UserAssignedIdentity() { + } + + /** + * Get the principalId property: The principal ID of the assigned identity. + * + * @return the principalId value. + */ + public UUID principalId() { + return this.principalId; + } + + /** + * Get the clientId property: The client ID of the assigned identity. + * + * @return the clientId value. + */ + public UUID clientId() { + return this.clientId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UserAssignedIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UserAssignedIdentity if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the UserAssignedIdentity. + */ + public static UserAssignedIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UserAssignedIdentity deserializedUserAssignedIdentity = new UserAssignedIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("principalId".equals(fieldName)) { + deserializedUserAssignedIdentity.principalId + = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + } else if ("clientId".equals(fieldName)) { + deserializedUserAssignedIdentity.clientId + = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedUserAssignedIdentity; + }); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThreshold.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThreshold.java index 3e88f2c5615ee..c2b15defb5627 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThreshold.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThreshold.java @@ -6,36 +6,41 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** ValidationThreshold indicates allowed machine and node hardware and deployment failures. */ +/** + * ValidationThreshold indicates allowed machine and node hardware and deployment failures. + */ @Fluent -public final class ValidationThreshold { +public final class ValidationThreshold implements JsonSerializable { /* * Selection of how the type evaluation is applied to the cluster calculation. */ - @JsonProperty(value = "grouping", required = true) private ValidationThresholdGrouping grouping; /* * Selection of how the threshold should be evaluated. */ - @JsonProperty(value = "type", required = true) private ValidationThresholdType type; /* * The numeric threshold value. */ - @JsonProperty(value = "value", required = true) private long value; - /** Creates an instance of ValidationThreshold class. */ + /** + * Creates an instance of ValidationThreshold class. + */ public ValidationThreshold() { } /** * Get the grouping property: Selection of how the type evaluation is applied to the cluster calculation. - * + * * @return the grouping value. */ public ValidationThresholdGrouping grouping() { @@ -44,7 +49,7 @@ public ValidationThresholdGrouping grouping() { /** * Set the grouping property: Selection of how the type evaluation is applied to the cluster calculation. - * + * * @param grouping the grouping value to set. * @return the ValidationThreshold object itself. */ @@ -55,7 +60,7 @@ public ValidationThreshold withGrouping(ValidationThresholdGrouping grouping) { /** * Get the type property: Selection of how the threshold should be evaluated. - * + * * @return the type value. */ public ValidationThresholdType type() { @@ -64,7 +69,7 @@ public ValidationThresholdType type() { /** * Set the type property: Selection of how the threshold should be evaluated. - * + * * @param type the type value to set. * @return the ValidationThreshold object itself. */ @@ -75,7 +80,7 @@ public ValidationThreshold withType(ValidationThresholdType type) { /** * Get the value property: The numeric threshold value. - * + * * @return the value value. */ public long value() { @@ -84,7 +89,7 @@ public long value() { /** * Set the value property: The numeric threshold value. - * + * * @param value the value value to set. * @return the ValidationThreshold object itself. */ @@ -95,19 +100,63 @@ public ValidationThreshold withValue(long value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (grouping() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property grouping in model ValidationThreshold")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property grouping in model ValidationThreshold")); } if (type() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property type in model ValidationThreshold")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property type in model ValidationThreshold")); } } private static final ClientLogger LOGGER = new ClientLogger(ValidationThreshold.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("grouping", this.grouping == null ? null : this.grouping.toString()); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeLongField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ValidationThreshold from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ValidationThreshold if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ValidationThreshold. + */ + public static ValidationThreshold fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ValidationThreshold deserializedValidationThreshold = new ValidationThreshold(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("grouping".equals(fieldName)) { + deserializedValidationThreshold.grouping + = ValidationThresholdGrouping.fromString(reader.getString()); + } else if ("type".equals(fieldName)) { + deserializedValidationThreshold.type = ValidationThresholdType.fromString(reader.getString()); + } else if ("value".equals(fieldName)) { + deserializedValidationThreshold.value = reader.getLong(); + } else { + reader.skipChildren(); + } + } + + return deserializedValidationThreshold; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdGrouping.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdGrouping.java index 4c09228d2e8d3..9a1d9412f112f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdGrouping.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdGrouping.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Selection of how the type evaluation is applied to the cluster calculation. */ +/** + * Selection of how the type evaluation is applied to the cluster calculation. + */ public final class ValidationThresholdGrouping extends ExpandableStringEnum { - /** Static value PerCluster for ValidationThresholdGrouping. */ + /** + * Static value PerCluster for ValidationThresholdGrouping. + */ public static final ValidationThresholdGrouping PER_CLUSTER = fromString("PerCluster"); - /** Static value PerRack for ValidationThresholdGrouping. */ + /** + * Static value PerRack for ValidationThresholdGrouping. + */ public static final ValidationThresholdGrouping PER_RACK = fromString("PerRack"); /** * Creates a new instance of ValidationThresholdGrouping value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ValidationThresholdGrouping() { /** * Creates or finds a ValidationThresholdGrouping from its string representation. - * + * * @param name a name to look for. * @return the corresponding ValidationThresholdGrouping. */ - @JsonCreator public static ValidationThresholdGrouping fromString(String name) { return fromString(name, ValidationThresholdGrouping.class); } /** * Gets known ValidationThresholdGrouping values. - * + * * @return known ValidationThresholdGrouping values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdType.java index 59b5a9e9c7566..be1c070383b35 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/ValidationThresholdType.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Selection of how the threshold should be evaluated. */ +/** + * Selection of how the threshold should be evaluated. + */ public final class ValidationThresholdType extends ExpandableStringEnum { - /** Static value CountSuccess for ValidationThresholdType. */ + /** + * Static value CountSuccess for ValidationThresholdType. + */ public static final ValidationThresholdType COUNT_SUCCESS = fromString("CountSuccess"); - /** Static value PercentSuccess for ValidationThresholdType. */ + /** + * Static value PercentSuccess for ValidationThresholdType. + */ public static final ValidationThresholdType PERCENT_SUCCESS = fromString("PercentSuccess"); /** * Creates a new instance of ValidationThresholdType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public ValidationThresholdType() { /** * Creates or finds a ValidationThresholdType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ValidationThresholdType. */ - @JsonCreator public static ValidationThresholdType fromString(String name) { return fromString(name, ValidationThresholdType.class); } /** * Gets known ValidationThresholdType values. - * + * * @return known ValidationThresholdType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java index 62d95327d8218..783550e739cf2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachine.java @@ -11,56 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of VirtualMachine. */ +/** + * An immutable client-side representation of VirtualMachine. + */ public interface VirtualMachine { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -68,66 +67,64 @@ public interface VirtualMachine { /** * Gets the adminUsername property: The name of the administrator to which the ssh public keys will be added into * the authorized keys. - * + * * @return the adminUsername value. */ String adminUsername(); /** * Gets the availabilityZone property: The cluster availability zone containing this virtual machine. - * + * * @return the availabilityZone value. */ String availabilityZone(); /** - * Gets the bareMetalMachineId property: The resource ID of the bare metal machine the virtual machine has landed - * to. - * + * Gets the bareMetalMachineId property: The resource ID of the bare metal machine that hosts the virtual machine. + * * @return the bareMetalMachineId value. */ String bareMetalMachineId(); /** * Gets the bootMethod property: Selects the boot method for the virtual machine. - * + * * @return the bootMethod value. */ VirtualMachineBootMethod bootMethod(); /** - * Gets the cloudServicesNetworkAttachment property: NetworkAttachment represents the single network attachment. - * - *

The cloud service network that provides platform-level services for the virtual machine. - * + * Gets the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services + * for the virtual machine. + * * @return the cloudServicesNetworkAttachment value. */ NetworkAttachment cloudServicesNetworkAttachment(); /** * Gets the clusterId property: The resource ID of the cluster the virtual machine is created for. - * + * * @return the clusterId value. */ String clusterId(); /** * Gets the cpuCores property: The number of CPU cores in the virtual machine. - * + * * @return the cpuCores value. */ long cpuCores(); /** * Gets the detailedStatus property: The more detailed status of the virtual machine. - * + * * @return the detailedStatus value. */ VirtualMachineDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); @@ -135,49 +132,49 @@ public interface VirtualMachine { /** * Gets the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator * of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. - * + * * @return the isolateEmulatorThread value. */ VirtualMachineIsolateEmulatorThread isolateEmulatorThread(); /** - * Gets the memorySizeGB property: The memory size of the virtual machine in GB. - * + * Gets the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes. + * * @return the memorySizeGB value. */ long memorySizeGB(); /** * Gets the networkAttachments property: The list of network attachments to the virtual machine. - * + * * @return the networkAttachments value. */ List networkAttachments(); /** * Gets the networkData property: The Base64 encoded cloud-init network data. - * + * * @return the networkData value. */ String networkData(); /** * Gets the placementHints property: The scheduling hints for the virtual machine. - * + * * @return the placementHints value. */ List placementHints(); /** * Gets the powerState property: The power state of the virtual machine. - * + * * @return the powerState value. */ VirtualMachinePowerState powerState(); /** * Gets the provisioningState property: The provisioning state of the virtual machine. - * + * * @return the provisioningState value. */ VirtualMachineProvisioningState provisioningState(); @@ -185,23 +182,22 @@ public interface VirtualMachine { /** * Gets the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual machine using * the cloud-init ssh_authorized_keys mechanism for the adminUsername. - * + * * @return the sshPublicKeys value. */ List sshPublicKeys(); /** - * Gets the storageProfile property: StorageProfile represents information about a disk. - * - *

The storage profile that specifies size and other parameters about the disks related to the virtual machine. - * + * Gets the storageProfile property: The storage profile that specifies size and other parameters about the disks + * related to the virtual machine. + * * @return the storageProfile value. */ StorageProfile storageProfile(); /** * Gets the userData property: The Base64 encoded cloud-init user data. - * + * * @return the userData value. */ String userData(); @@ -209,14 +205,14 @@ public interface VirtualMachine { /** * Gets the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio * interface. - * + * * @return the virtioInterface value. */ VirtualMachineVirtioInterfaceType virtioInterface(); /** * Gets the vmDeviceModel property: The type of the device model to use. - * + * * @return the vmDeviceModel value. */ VirtualMachineDeviceModelType vmDeviceModel(); @@ -224,57 +220,57 @@ public interface VirtualMachine { /** * Gets the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full * url and tag notation used to pull the image. - * + * * @return the vmImage value. */ String vmImage(); /** - * Gets the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Gets the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @return the vmImageRepositoryCredentials value. */ ImageRepositoryCredentials vmImageRepositoryCredentials(); /** * Gets the volumes property: The resource IDs of volumes that are attached to the virtual machine. - * + * * @return the volumes value. */ List volumes(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.VirtualMachineInner object. - * + * * @return the inner object. */ VirtualMachineInner innerModel(); - /** The entirety of the VirtualMachine definition. */ + /** + * The entirety of the VirtualMachine definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithAdminUsername, DefinitionStages.WithCloudServicesNetworkAttachment, DefinitionStages.WithCpuCores, @@ -282,17 +278,23 @@ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocati DefinitionStages.WithCreate { } - /** The VirtualMachine definition stages. */ + /** + * The VirtualMachine definition stages. + */ interface DefinitionStages { - /** The first stage of the VirtualMachine definition. */ + /** + * The first stage of the VirtualMachine definition. + */ interface Blank extends WithLocation { } - /** The stage of the VirtualMachine definition allowing to specify location. */ + /** + * The stage of the VirtualMachine definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -300,114 +302,122 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the VirtualMachine definition allowing to specify parent resource. */ + /** + * The stage of the VirtualMachine definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the VirtualMachine definition allowing to specify extendedLocation. */ + /** + * The stage of the VirtualMachine definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithAdminUsername withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the VirtualMachine definition allowing to specify adminUsername. */ + /** + * The stage of the VirtualMachine definition allowing to specify adminUsername. + */ interface WithAdminUsername { /** * Specifies the adminUsername property: The name of the administrator to which the ssh public keys will be * added into the authorized keys.. - * + * * @param adminUsername The name of the administrator to which the ssh public keys will be added into the - * authorized keys. + * authorized keys. * @return the next definition stage. */ WithCloudServicesNetworkAttachment withAdminUsername(String adminUsername); } - /** The stage of the VirtualMachine definition allowing to specify cloudServicesNetworkAttachment. */ + /** + * The stage of the VirtualMachine definition allowing to specify cloudServicesNetworkAttachment. + */ interface WithCloudServicesNetworkAttachment { /** - * Specifies the cloudServicesNetworkAttachment property: NetworkAttachment represents the single network - * attachment. - * - *

The cloud service network that provides platform-level services for the virtual machine.. - * - * @param cloudServicesNetworkAttachment NetworkAttachment represents the single network attachment. - *

The cloud service network that provides platform-level services for the virtual machine. + * Specifies the cloudServicesNetworkAttachment property: The cloud service network that provides + * platform-level services for the virtual machine.. + * + * @param cloudServicesNetworkAttachment The cloud service network that provides platform-level services for + * the virtual machine. * @return the next definition stage. */ WithCpuCores withCloudServicesNetworkAttachment(NetworkAttachment cloudServicesNetworkAttachment); } - /** The stage of the VirtualMachine definition allowing to specify cpuCores. */ + /** + * The stage of the VirtualMachine definition allowing to specify cpuCores. + */ interface WithCpuCores { /** * Specifies the cpuCores property: The number of CPU cores in the virtual machine.. - * + * * @param cpuCores The number of CPU cores in the virtual machine. * @return the next definition stage. */ WithMemorySizeGB withCpuCores(long cpuCores); } - /** The stage of the VirtualMachine definition allowing to specify memorySizeGB. */ + /** + * The stage of the VirtualMachine definition allowing to specify memorySizeGB. + */ interface WithMemorySizeGB { /** - * Specifies the memorySizeGB property: The memory size of the virtual machine in GB.. - * - * @param memorySizeGB The memory size of the virtual machine in GB. + * Specifies the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in + * gibibytes.. + * + * @param memorySizeGB The memory size of the virtual machine. Allocations are measured in gibibytes. * @return the next definition stage. */ WithStorageProfile withMemorySizeGB(long memorySizeGB); } - /** The stage of the VirtualMachine definition allowing to specify storageProfile. */ + /** + * The stage of the VirtualMachine definition allowing to specify storageProfile. + */ interface WithStorageProfile { /** - * Specifies the storageProfile property: StorageProfile represents information about a disk. - * - *

The storage profile that specifies size and other parameters about the disks related to the virtual - * machine.. - * - * @param storageProfile StorageProfile represents information about a disk. - *

The storage profile that specifies size and other parameters about the disks related to the - * virtual machine. + * Specifies the storageProfile property: The storage profile that specifies size and other parameters about + * the disks related to the virtual machine.. + * + * @param storageProfile The storage profile that specifies size and other parameters about the disks + * related to the virtual machine. * @return the next definition stage. */ WithVmImage withStorageProfile(StorageProfile storageProfile); } - /** The stage of the VirtualMachine definition allowing to specify vmImage. */ + /** + * The stage of the VirtualMachine definition allowing to specify vmImage. + */ interface WithVmImage { /** * Specifies the vmImage property: The virtual machine image that is currently provisioned to the OS disk, * using the full url and tag notation used to pull the image.. - * + * * @param vmImage The virtual machine image that is currently provisioned to the OS disk, using the full url - * and tag notation used to pull the image. + * and tag notation used to pull the image. * @return the next definition stage. */ WithCreate withVmImage(String vmImage); @@ -424,149 +434,167 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithBoo DefinitionStages.WithVmImageRepositoryCredentials { /** * Executes the create request. - * + * * @return the created resource. */ VirtualMachine create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ VirtualMachine create(Context context); } - /** The stage of the VirtualMachine definition allowing to specify tags. */ + /** + * The stage of the VirtualMachine definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the VirtualMachine definition allowing to specify bootMethod. */ + /** + * The stage of the VirtualMachine definition allowing to specify bootMethod. + */ interface WithBootMethod { /** * Specifies the bootMethod property: Selects the boot method for the virtual machine.. - * + * * @param bootMethod Selects the boot method for the virtual machine. * @return the next definition stage. */ WithCreate withBootMethod(VirtualMachineBootMethod bootMethod); } - /** The stage of the VirtualMachine definition allowing to specify isolateEmulatorThread. */ + /** + * The stage of the VirtualMachine definition allowing to specify isolateEmulatorThread. + */ interface WithIsolateEmulatorThread { /** * Specifies the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. * The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this * virtual machine.. - * + * * @param isolateEmulatorThread Field Deprecated, the value will be ignored if provided. The indicator of - * whether one of the specified CPU cores is isolated to run the emulator thread for this virtual - * machine. + * whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. * @return the next definition stage. */ WithCreate withIsolateEmulatorThread(VirtualMachineIsolateEmulatorThread isolateEmulatorThread); } - /** The stage of the VirtualMachine definition allowing to specify networkAttachments. */ + /** + * The stage of the VirtualMachine definition allowing to specify networkAttachments. + */ interface WithNetworkAttachments { /** * Specifies the networkAttachments property: The list of network attachments to the virtual machine.. - * + * * @param networkAttachments The list of network attachments to the virtual machine. * @return the next definition stage. */ WithCreate withNetworkAttachments(List networkAttachments); } - /** The stage of the VirtualMachine definition allowing to specify networkData. */ + /** + * The stage of the VirtualMachine definition allowing to specify networkData. + */ interface WithNetworkData { /** * Specifies the networkData property: The Base64 encoded cloud-init network data.. - * + * * @param networkData The Base64 encoded cloud-init network data. * @return the next definition stage. */ WithCreate withNetworkData(String networkData); } - /** The stage of the VirtualMachine definition allowing to specify placementHints. */ + /** + * The stage of the VirtualMachine definition allowing to specify placementHints. + */ interface WithPlacementHints { /** * Specifies the placementHints property: The scheduling hints for the virtual machine.. - * + * * @param placementHints The scheduling hints for the virtual machine. * @return the next definition stage. */ WithCreate withPlacementHints(List placementHints); } - /** The stage of the VirtualMachine definition allowing to specify sshPublicKeys. */ + /** + * The stage of the VirtualMachine definition allowing to specify sshPublicKeys. + */ interface WithSshPublicKeys { /** * Specifies the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual * machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername.. - * + * * @param sshPublicKeys The list of ssh public keys. Each key will be added to the virtual machine using the - * cloud-init ssh_authorized_keys mechanism for the adminUsername. + * cloud-init ssh_authorized_keys mechanism for the adminUsername. * @return the next definition stage. */ WithCreate withSshPublicKeys(List sshPublicKeys); } - /** The stage of the VirtualMachine definition allowing to specify userData. */ + /** + * The stage of the VirtualMachine definition allowing to specify userData. + */ interface WithUserData { /** * Specifies the userData property: The Base64 encoded cloud-init user data.. - * + * * @param userData The Base64 encoded cloud-init user data. * @return the next definition stage. */ WithCreate withUserData(String userData); } - /** The stage of the VirtualMachine definition allowing to specify virtioInterface. */ + /** + * The stage of the VirtualMachine definition allowing to specify virtioInterface. + */ interface WithVirtioInterface { /** * Specifies the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of * the virtio interface.. - * + * * @param virtioInterface Field Deprecated, use virtualizationModel instead. The type of the virtio - * interface. + * interface. * @return the next definition stage. */ WithCreate withVirtioInterface(VirtualMachineVirtioInterfaceType virtioInterface); } - /** The stage of the VirtualMachine definition allowing to specify vmDeviceModel. */ + /** + * The stage of the VirtualMachine definition allowing to specify vmDeviceModel. + */ interface WithVmDeviceModel { /** * Specifies the vmDeviceModel property: The type of the device model to use.. - * + * * @param vmDeviceModel The type of the device model to use. * @return the next definition stage. */ WithCreate withVmDeviceModel(VirtualMachineDeviceModelType vmDeviceModel); } - /** The stage of the VirtualMachine definition allowing to specify vmImageRepositoryCredentials. */ + /** + * The stage of the VirtualMachine definition allowing to specify vmImageRepositoryCredentials. + */ interface WithVmImageRepositoryCredentials { /** - * Specifies the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the - * credentials used to login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image.. - * - * @param vmImageRepositoryCredentials ImageRepositoryCredentials represents the credentials used to login - * to the image repository. - *

The credentials used to login to the image repository that has access to the specified image. + * Specifies the vmImageRepositoryCredentials property: The credentials used to login to the image + * repository that has access to the specified image.. + * + * @param vmImageRepositoryCredentials The credentials used to login to the image repository that has access + * to the specified image. * @return the next definition stage. */ WithCreate withVmImageRepositoryCredentials(ImageRepositoryCredentials vmImageRepositoryCredentials); @@ -575,53 +603,58 @@ interface WithVmImageRepositoryCredentials { /** * Begins update for the VirtualMachine resource. - * + * * @return the stage of resource update. */ VirtualMachine.Update update(); - /** The template for VirtualMachine update. */ + /** + * The template for VirtualMachine update. + */ interface Update extends UpdateStages.WithTags, UpdateStages.WithVmImageRepositoryCredentials { /** * Executes the update request. - * + * * @return the updated resource. */ VirtualMachine apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ VirtualMachine apply(Context context); } - /** The VirtualMachine update stages. */ + /** + * The VirtualMachine update stages. + */ interface UpdateStages { - /** The stage of the VirtualMachine update allowing to specify tags. */ + /** + * The stage of the VirtualMachine update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the VirtualMachine update allowing to specify vmImageRepositoryCredentials. */ + /** + * The stage of the VirtualMachine update allowing to specify vmImageRepositoryCredentials. + */ interface WithVmImageRepositoryCredentials { /** - * Specifies the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the - * credentials used to login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image.. - * - * @param vmImageRepositoryCredentials ImageRepositoryCredentials represents the credentials used to login - * to the image repository. - *

The credentials used to login to the image repository that has access to the specified image. + * Specifies the vmImageRepositoryCredentials property: The credentials used to login to the image + * repository that has access to the specified image.. + * + * @param vmImageRepositoryCredentials The credentials used to login to the image repository that has access + * to the specified image. * @return the next definition stage. */ Update withVmImageRepositoryCredentials(ImageRepositoryCredentials vmImageRepositoryCredentials); @@ -630,14 +663,14 @@ interface WithVmImageRepositoryCredentials { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ VirtualMachine refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -645,9 +678,9 @@ interface WithVmImageRepositoryCredentials { /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -656,9 +689,9 @@ interface WithVmImageRepositoryCredentials { /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param virtualMachinePowerOffParameters The request body. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -670,9 +703,9 @@ interface WithVmImageRepositoryCredentials { /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -681,9 +714,9 @@ interface WithVmImageRepositoryCredentials { /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -694,9 +727,9 @@ interface WithVmImageRepositoryCredentials { /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -705,9 +738,9 @@ interface WithVmImageRepositoryCredentials { /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -718,9 +751,9 @@ interface WithVmImageRepositoryCredentials { /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the current status of an async operation. @@ -729,9 +762,9 @@ interface WithVmImageRepositoryCredentials { /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineBootMethod.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineBootMethod.java index 384a79fa1098f..d1d12eaee076c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineBootMethod.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineBootMethod.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Selects the boot method for the virtual machine. */ +/** + * Selects the boot method for the virtual machine. + */ public final class VirtualMachineBootMethod extends ExpandableStringEnum { - /** Static value UEFI for VirtualMachineBootMethod. */ + /** + * Static value UEFI for VirtualMachineBootMethod. + */ public static final VirtualMachineBootMethod UEFI = fromString("UEFI"); - /** Static value BIOS for VirtualMachineBootMethod. */ + /** + * Static value BIOS for VirtualMachineBootMethod. + */ public static final VirtualMachineBootMethod BIOS = fromString("BIOS"); /** * Creates a new instance of VirtualMachineBootMethod value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public VirtualMachineBootMethod() { /** * Creates or finds a VirtualMachineBootMethod from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineBootMethod. */ - @JsonCreator public static VirtualMachineBootMethod fromString(String name) { return fromString(name, VirtualMachineBootMethod.class); } /** * Gets known VirtualMachineBootMethod values. - * + * * @return known VirtualMachineBootMethod values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDetailedStatus.java index 2205add6ef38e..8da7471a173b4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDetailedStatus.java @@ -5,38 +5,55 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the virtual machine. */ +/** + * The more detailed status of the virtual machine. + */ public final class VirtualMachineDetailedStatus extends ExpandableStringEnum { - /** Static value Available for VirtualMachineDetailedStatus. */ + /** + * Static value Available for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus AVAILABLE = fromString("Available"); - /** Static value Error for VirtualMachineDetailedStatus. */ + /** + * Static value Error for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus ERROR = fromString("Error"); - /** Static value Provisioning for VirtualMachineDetailedStatus. */ + /** + * Static value Provisioning for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus PROVISIONING = fromString("Provisioning"); - /** Static value Running for VirtualMachineDetailedStatus. */ + /** + * Static value Running for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus RUNNING = fromString("Running"); - /** Static value Scheduling for VirtualMachineDetailedStatus. */ + /** + * Static value Scheduling for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus SCHEDULING = fromString("Scheduling"); - /** Static value Stopped for VirtualMachineDetailedStatus. */ + /** + * Static value Stopped for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus STOPPED = fromString("Stopped"); - /** Static value Terminating for VirtualMachineDetailedStatus. */ + /** + * Static value Terminating for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus TERMINATING = fromString("Terminating"); - /** Static value Unknown for VirtualMachineDetailedStatus. */ + /** + * Static value Unknown for VirtualMachineDetailedStatus. + */ public static final VirtualMachineDetailedStatus UNKNOWN = fromString("Unknown"); /** * Creates a new instance of VirtualMachineDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -45,18 +62,17 @@ public VirtualMachineDetailedStatus() { /** * Creates or finds a VirtualMachineDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineDetailedStatus. */ - @JsonCreator public static VirtualMachineDetailedStatus fromString(String name) { return fromString(name, VirtualMachineDetailedStatus.class); } /** * Gets known VirtualMachineDetailedStatus values. - * + * * @return known VirtualMachineDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java index 34d50057b2ec8..7bf2b6cf82123 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineDeviceModelType.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of the device model to use. */ +/** + * The type of the device model to use. + */ public final class VirtualMachineDeviceModelType extends ExpandableStringEnum { - /** Static value T1 for VirtualMachineDeviceModelType. */ + /** + * Static value T1 for VirtualMachineDeviceModelType. + */ public static final VirtualMachineDeviceModelType T1 = fromString("T1"); - /** Static value T2 for VirtualMachineDeviceModelType. */ + /** + * Static value T2 for VirtualMachineDeviceModelType. + */ public static final VirtualMachineDeviceModelType T2 = fromString("T2"); /** * Creates a new instance of VirtualMachineDeviceModelType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public VirtualMachineDeviceModelType() { /** * Creates or finds a VirtualMachineDeviceModelType from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineDeviceModelType. */ - @JsonCreator public static VirtualMachineDeviceModelType fromString(String name) { return fromString(name, VirtualMachineDeviceModelType.class); } /** * Gets known VirtualMachineDeviceModelType values. - * + * * @return known VirtualMachineDeviceModelType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIpAllocationMethod.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIpAllocationMethod.java index 88a9a107883fc..1248dcd332856 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIpAllocationMethod.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIpAllocationMethod.java @@ -5,26 +5,32 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** - * The IP allocation mechanism for the virtual machine. Dynamic and Static are only valid for l3Network which may also - * specify Disabled. Otherwise, Disabled is the only permitted value. + * The IP allocation mechanism for the virtual machine. + * Dynamic and Static are only valid for l3Network which may also specify Disabled. + * Otherwise, Disabled is the only permitted value. */ public final class VirtualMachineIpAllocationMethod extends ExpandableStringEnum { - /** Static value Dynamic for VirtualMachineIpAllocationMethod. */ + /** + * Static value Dynamic for VirtualMachineIpAllocationMethod. + */ public static final VirtualMachineIpAllocationMethod DYNAMIC = fromString("Dynamic"); - /** Static value Static for VirtualMachineIpAllocationMethod. */ + /** + * Static value Static for VirtualMachineIpAllocationMethod. + */ public static final VirtualMachineIpAllocationMethod STATIC = fromString("Static"); - /** Static value Disabled for VirtualMachineIpAllocationMethod. */ + /** + * Static value Disabled for VirtualMachineIpAllocationMethod. + */ public static final VirtualMachineIpAllocationMethod DISABLED = fromString("Disabled"); /** * Creates a new instance of VirtualMachineIpAllocationMethod value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,18 +39,17 @@ public VirtualMachineIpAllocationMethod() { /** * Creates or finds a VirtualMachineIpAllocationMethod from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineIpAllocationMethod. */ - @JsonCreator public static VirtualMachineIpAllocationMethod fromString(String name) { return fromString(name, VirtualMachineIpAllocationMethod.class); } /** * Gets known VirtualMachineIpAllocationMethod values. - * + * * @return known VirtualMachineIpAllocationMethod values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIsolateEmulatorThread.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIsolateEmulatorThread.java index d82a983dfc494..1c9183dbc1c28 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIsolateEmulatorThread.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineIsolateEmulatorThread.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -14,15 +13,19 @@ */ public final class VirtualMachineIsolateEmulatorThread extends ExpandableStringEnum { - /** Static value True for VirtualMachineIsolateEmulatorThread. */ + /** + * Static value True for VirtualMachineIsolateEmulatorThread. + */ public static final VirtualMachineIsolateEmulatorThread TRUE = fromString("True"); - /** Static value False for VirtualMachineIsolateEmulatorThread. */ + /** + * Static value False for VirtualMachineIsolateEmulatorThread. + */ public static final VirtualMachineIsolateEmulatorThread FALSE = fromString("False"); /** * Creates a new instance of VirtualMachineIsolateEmulatorThread value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -31,18 +34,17 @@ public VirtualMachineIsolateEmulatorThread() { /** * Creates or finds a VirtualMachineIsolateEmulatorThread from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineIsolateEmulatorThread. */ - @JsonCreator public static VirtualMachineIsolateEmulatorThread fromString(String name) { return fromString(name, VirtualMachineIsolateEmulatorThread.class); } /** * Gets known VirtualMachineIsolateEmulatorThread values. - * + * * @return known VirtualMachineIsolateEmulatorThread values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineList.java index 60a185ed8316d..54c6819880a70 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.VirtualMachineInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** VirtualMachineList represents a list of virtual machines. */ +/** + * VirtualMachineList represents a list of virtual machines. + */ @Fluent -public final class VirtualMachineList { +public final class VirtualMachineList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of virtual machines. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of VirtualMachineList class. */ + /** + * Creates an instance of VirtualMachineList class. + */ public VirtualMachineList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the VirtualMachineList object itself. */ @@ -50,7 +56,7 @@ public VirtualMachineList withNextLink(String nextLink) { /** * Get the value property: The list of virtual machines. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of virtual machines. - * + * * @param value the value value to set. * @return the VirtualMachineList object itself. */ @@ -70,7 +76,7 @@ public VirtualMachineList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,45 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachineList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachineList if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the VirtualMachineList. + */ + public static VirtualMachineList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachineList deserializedVirtualMachineList = new VirtualMachineList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedVirtualMachineList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> VirtualMachineInner.fromJson(reader1)); + deserializedVirtualMachineList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachineList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePatchParameters.java index ce4a06df6e283..4abf52bcfbe9d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePatchParameters.java @@ -5,39 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.VirtualMachinePatchProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.Map; -/** VirtualMachinePatchParameters represents the body of the request to patch the virtual machine. */ +/** + * VirtualMachinePatchParameters represents the body of the request to patch the virtual machine. + */ @Fluent -public final class VirtualMachinePatchParameters { +public final class VirtualMachinePatchParameters implements JsonSerializable { /* - * VirtualMachinePatchProperties represents the properties of the virtual machine that can be patched. - * * The list of the resource properties. */ - @JsonProperty(value = "properties") private VirtualMachinePatchProperties innerProperties; /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of VirtualMachinePatchParameters class. */ + /** + * Creates an instance of VirtualMachinePatchParameters class. + */ public VirtualMachinePatchParameters() { } /** - * Get the innerProperties property: VirtualMachinePatchProperties represents the properties of the virtual machine - * that can be patched. - * - *

The list of the resource properties. - * + * Get the innerProperties property: The list of the resource properties. + * * @return the innerProperties value. */ private VirtualMachinePatchProperties innerProperties() { @@ -46,7 +45,7 @@ private VirtualMachinePatchProperties innerProperties() { /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -55,7 +54,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the VirtualMachinePatchParameters object itself. */ @@ -65,11 +64,9 @@ public VirtualMachinePatchParameters withTags(Map tags) { } /** - * Get the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Get the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @return the vmImageRepositoryCredentials value. */ public ImageRepositoryCredentials vmImageRepositoryCredentials() { @@ -77,11 +74,9 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { } /** - * Set the vmImageRepositoryCredentials property: ImageRepositoryCredentials represents the credentials used to - * login to the image repository. - * - *

The credentials used to login to the image repository that has access to the specified image. - * + * Set the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has + * access to the specified image. + * * @param vmImageRepositoryCredentials the vmImageRepositoryCredentials value to set. * @return the VirtualMachinePatchParameters object itself. */ @@ -96,7 +91,7 @@ public ImageRepositoryCredentials vmImageRepositoryCredentials() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -104,4 +99,46 @@ public void validate() { innerProperties().validate(); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachinePatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachinePatchParameters if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the VirtualMachinePatchParameters. + */ + public static VirtualMachinePatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachinePatchParameters deserializedVirtualMachinePatchParameters + = new VirtualMachinePatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedVirtualMachinePatchParameters.innerProperties + = VirtualMachinePatchProperties.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedVirtualMachinePatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachinePatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHint.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHint.java index 2df203bb80f92..24d3b92d0b52f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHint.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHint.java @@ -6,45 +6,49 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** VirtualMachinePlacementHint represents a single scheduling hint of the virtual machine. */ +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * VirtualMachinePlacementHint represents a single scheduling hint of the virtual machine. + */ @Fluent -public final class VirtualMachinePlacementHint { +public final class VirtualMachinePlacementHint implements JsonSerializable { /* * The specification of whether this hint supports affinity or anti-affinity with the referenced resources. */ - @JsonProperty(value = "hintType", required = true) private VirtualMachinePlacementHintType hintType; /* * The resource ID of the target object that the placement hints will be checked against, e.g., the bare metal node * to host the virtual machine. */ - @JsonProperty(value = "resourceId", required = true) private String resourceId; /* * The indicator of whether the hint is a hard or soft requirement during scheduling. */ - @JsonProperty(value = "schedulingExecution", required = true) private VirtualMachineSchedulingExecution schedulingExecution; /* * The scope for the virtual machine affinity or anti-affinity placement hint. It should always be "Machine" in the * case of node affinity. */ - @JsonProperty(value = "scope", required = true) private VirtualMachinePlacementHintPodAffinityScope scope; - /** Creates an instance of VirtualMachinePlacementHint class. */ + /** + * Creates an instance of VirtualMachinePlacementHint class. + */ public VirtualMachinePlacementHint() { } /** * Get the hintType property: The specification of whether this hint supports affinity or anti-affinity with the * referenced resources. - * + * * @return the hintType value. */ public VirtualMachinePlacementHintType hintType() { @@ -54,7 +58,7 @@ public VirtualMachinePlacementHintType hintType() { /** * Set the hintType property: The specification of whether this hint supports affinity or anti-affinity with the * referenced resources. - * + * * @param hintType the hintType value to set. * @return the VirtualMachinePlacementHint object itself. */ @@ -66,7 +70,7 @@ public VirtualMachinePlacementHint withHintType(VirtualMachinePlacementHintType /** * Get the resourceId property: The resource ID of the target object that the placement hints will be checked * against, e.g., the bare metal node to host the virtual machine. - * + * * @return the resourceId value. */ public String resourceId() { @@ -76,7 +80,7 @@ public String resourceId() { /** * Set the resourceId property: The resource ID of the target object that the placement hints will be checked * against, e.g., the bare metal node to host the virtual machine. - * + * * @param resourceId the resourceId value to set. * @return the VirtualMachinePlacementHint object itself. */ @@ -88,7 +92,7 @@ public VirtualMachinePlacementHint withResourceId(String resourceId) { /** * Get the schedulingExecution property: The indicator of whether the hint is a hard or soft requirement during * scheduling. - * + * * @return the schedulingExecution value. */ public VirtualMachineSchedulingExecution schedulingExecution() { @@ -98,7 +102,7 @@ public VirtualMachineSchedulingExecution schedulingExecution() { /** * Set the schedulingExecution property: The indicator of whether the hint is a hard or soft requirement during * scheduling. - * + * * @param schedulingExecution the schedulingExecution value to set. * @return the VirtualMachinePlacementHint object itself. */ @@ -110,7 +114,7 @@ public VirtualMachinePlacementHint withSchedulingExecution(VirtualMachineSchedul /** * Get the scope property: The scope for the virtual machine affinity or anti-affinity placement hint. It should * always be "Machine" in the case of node affinity. - * + * * @return the scope value. */ public VirtualMachinePlacementHintPodAffinityScope scope() { @@ -120,7 +124,7 @@ public VirtualMachinePlacementHintPodAffinityScope scope() { /** * Set the scope property: The scope for the virtual machine affinity or anti-affinity placement hint. It should * always be "Machine" in the case of node affinity. - * + * * @param scope the scope value to set. * @return the VirtualMachinePlacementHint object itself. */ @@ -131,27 +135,81 @@ public VirtualMachinePlacementHint withScope(VirtualMachinePlacementHintPodAffin /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (hintType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property hintType in model VirtualMachinePlacementHint")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property hintType in model VirtualMachinePlacementHint")); } if (resourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property resourceId in model VirtualMachinePlacementHint")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property resourceId in model VirtualMachinePlacementHint")); } if (schedulingExecution() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property schedulingExecution in model VirtualMachinePlacementHint")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property schedulingExecution in model VirtualMachinePlacementHint")); } if (scope() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property scope in model VirtualMachinePlacementHint")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property scope in model VirtualMachinePlacementHint")); } } private static final ClientLogger LOGGER = new ClientLogger(VirtualMachinePlacementHint.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("hintType", this.hintType == null ? null : this.hintType.toString()); + jsonWriter.writeStringField("resourceId", this.resourceId); + jsonWriter.writeStringField("schedulingExecution", + this.schedulingExecution == null ? null : this.schedulingExecution.toString()); + jsonWriter.writeStringField("scope", this.scope == null ? null : this.scope.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachinePlacementHint from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachinePlacementHint if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the VirtualMachinePlacementHint. + */ + public static VirtualMachinePlacementHint fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachinePlacementHint deserializedVirtualMachinePlacementHint = new VirtualMachinePlacementHint(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("hintType".equals(fieldName)) { + deserializedVirtualMachinePlacementHint.hintType + = VirtualMachinePlacementHintType.fromString(reader.getString()); + } else if ("resourceId".equals(fieldName)) { + deserializedVirtualMachinePlacementHint.resourceId = reader.getString(); + } else if ("schedulingExecution".equals(fieldName)) { + deserializedVirtualMachinePlacementHint.schedulingExecution + = VirtualMachineSchedulingExecution.fromString(reader.getString()); + } else if ("scope".equals(fieldName)) { + deserializedVirtualMachinePlacementHint.scope + = VirtualMachinePlacementHintPodAffinityScope.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachinePlacementHint; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintPodAffinityScope.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintPodAffinityScope.java index 23b690ba41699..a3fc3ba804bcb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintPodAffinityScope.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintPodAffinityScope.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; /** @@ -14,15 +13,19 @@ */ public final class VirtualMachinePlacementHintPodAffinityScope extends ExpandableStringEnum { - /** Static value Rack for VirtualMachinePlacementHintPodAffinityScope. */ + /** + * Static value Rack for VirtualMachinePlacementHintPodAffinityScope. + */ public static final VirtualMachinePlacementHintPodAffinityScope RACK = fromString("Rack"); - /** Static value Machine for VirtualMachinePlacementHintPodAffinityScope. */ + /** + * Static value Machine for VirtualMachinePlacementHintPodAffinityScope. + */ public static final VirtualMachinePlacementHintPodAffinityScope MACHINE = fromString("Machine"); /** * Creates a new instance of VirtualMachinePlacementHintPodAffinityScope value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -31,18 +34,17 @@ public VirtualMachinePlacementHintPodAffinityScope() { /** * Creates or finds a VirtualMachinePlacementHintPodAffinityScope from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachinePlacementHintPodAffinityScope. */ - @JsonCreator public static VirtualMachinePlacementHintPodAffinityScope fromString(String name) { return fromString(name, VirtualMachinePlacementHintPodAffinityScope.class); } /** * Gets known VirtualMachinePlacementHintPodAffinityScope values. - * + * * @return known VirtualMachinePlacementHintPodAffinityScope values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintType.java index 76c05662e1b9d..6c50a1ed9f547 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePlacementHintType.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The specification of whether this hint supports affinity or anti-affinity with the referenced resources. */ +/** + * The specification of whether this hint supports affinity or anti-affinity with the referenced resources. + */ public final class VirtualMachinePlacementHintType extends ExpandableStringEnum { - /** Static value Affinity for VirtualMachinePlacementHintType. */ + /** + * Static value Affinity for VirtualMachinePlacementHintType. + */ public static final VirtualMachinePlacementHintType AFFINITY = fromString("Affinity"); - /** Static value AntiAffinity for VirtualMachinePlacementHintType. */ + /** + * Static value AntiAffinity for VirtualMachinePlacementHintType. + */ public static final VirtualMachinePlacementHintType ANTI_AFFINITY = fromString("AntiAffinity"); /** * Creates a new instance of VirtualMachinePlacementHintType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public VirtualMachinePlacementHintType() { /** * Creates or finds a VirtualMachinePlacementHintType from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachinePlacementHintType. */ - @JsonCreator public static VirtualMachinePlacementHintType fromString(String name) { return fromString(name, VirtualMachinePlacementHintType.class); } /** * Gets known VirtualMachinePlacementHintType values. - * + * * @return known VirtualMachinePlacementHintType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerOffParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerOffParameters.java index 87a1f65ba7467..9eb2294898fca 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerOffParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerOffParameters.java @@ -5,25 +5,32 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; -/** VirtualMachinePowerOffParameters represents the body of the request to power off virtual machine. */ +/** + * VirtualMachinePowerOffParameters represents the body of the request to power off virtual machine. + */ @Fluent -public final class VirtualMachinePowerOffParameters { +public final class VirtualMachinePowerOffParameters implements JsonSerializable { /* * The indicator of whether to skip the graceful OS shutdown and power off the virtual machine immediately. */ - @JsonProperty(value = "skipShutdown") private SkipShutdown skipShutdown; - /** Creates an instance of VirtualMachinePowerOffParameters class. */ + /** + * Creates an instance of VirtualMachinePowerOffParameters class. + */ public VirtualMachinePowerOffParameters() { } /** * Get the skipShutdown property: The indicator of whether to skip the graceful OS shutdown and power off the * virtual machine immediately. - * + * * @return the skipShutdown value. */ public SkipShutdown skipShutdown() { @@ -33,7 +40,7 @@ public SkipShutdown skipShutdown() { /** * Set the skipShutdown property: The indicator of whether to skip the graceful OS shutdown and power off the * virtual machine immediately. - * + * * @param skipShutdown the skipShutdown value to set. * @return the VirtualMachinePowerOffParameters object itself. */ @@ -44,9 +51,47 @@ public VirtualMachinePowerOffParameters withSkipShutdown(SkipShutdown skipShutdo /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("skipShutdown", this.skipShutdown == null ? null : this.skipShutdown.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachinePowerOffParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachinePowerOffParameters if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the VirtualMachinePowerOffParameters. + */ + public static VirtualMachinePowerOffParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachinePowerOffParameters deserializedVirtualMachinePowerOffParameters + = new VirtualMachinePowerOffParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("skipShutdown".equals(fieldName)) { + deserializedVirtualMachinePowerOffParameters.skipShutdown + = SkipShutdown.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachinePowerOffParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerState.java index 997794d072aae..dc1d2572c5fda 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachinePowerState.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The power state of the virtual machine. */ +/** + * The power state of the virtual machine. + */ public final class VirtualMachinePowerState extends ExpandableStringEnum { - /** Static value On for VirtualMachinePowerState. */ + /** + * Static value On for VirtualMachinePowerState. + */ public static final VirtualMachinePowerState ON = fromString("On"); - /** Static value Off for VirtualMachinePowerState. */ + /** + * Static value Off for VirtualMachinePowerState. + */ public static final VirtualMachinePowerState OFF = fromString("Off"); - /** Static value Unknown for VirtualMachinePowerState. */ + /** + * Static value Unknown for VirtualMachinePowerState. + */ public static final VirtualMachinePowerState UNKNOWN = fromString("Unknown"); /** * Creates a new instance of VirtualMachinePowerState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public VirtualMachinePowerState() { /** * Creates or finds a VirtualMachinePowerState from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachinePowerState. */ - @JsonCreator public static VirtualMachinePowerState fromString(String name) { return fromString(name, VirtualMachinePowerState.class); } /** * Gets known VirtualMachinePowerState values. - * + * * @return known VirtualMachinePowerState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineProvisioningState.java index a9be8f4c227de..72dd841379448 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the virtual machine. */ +/** + * The provisioning state of the virtual machine. + */ public final class VirtualMachineProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for VirtualMachineProvisioningState. */ + /** + * Static value Succeeded for VirtualMachineProvisioningState. + */ public static final VirtualMachineProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for VirtualMachineProvisioningState. */ + /** + * Static value Failed for VirtualMachineProvisioningState. + */ public static final VirtualMachineProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for VirtualMachineProvisioningState. */ + /** + * Static value Canceled for VirtualMachineProvisioningState. + */ public static final VirtualMachineProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for VirtualMachineProvisioningState. */ + /** + * Static value Provisioning for VirtualMachineProvisioningState. + */ public static final VirtualMachineProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for VirtualMachineProvisioningState. */ + /** + * Static value Accepted for VirtualMachineProvisioningState. + */ public static final VirtualMachineProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of VirtualMachineProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public VirtualMachineProvisioningState() { /** * Creates or finds a VirtualMachineProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineProvisioningState. */ - @JsonCreator public static VirtualMachineProvisioningState fromString(String name) { return fromString(name, VirtualMachineProvisioningState.class); } /** * Gets known VirtualMachineProvisioningState values. - * + * * @return known VirtualMachineProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineSchedulingExecution.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineSchedulingExecution.java index 3ecb70822fed9..1c6350331dc5d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineSchedulingExecution.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineSchedulingExecution.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether the hint is a hard or soft requirement during scheduling. */ +/** + * The indicator of whether the hint is a hard or soft requirement during scheduling. + */ public final class VirtualMachineSchedulingExecution extends ExpandableStringEnum { - /** Static value Hard for VirtualMachineSchedulingExecution. */ + /** + * Static value Hard for VirtualMachineSchedulingExecution. + */ public static final VirtualMachineSchedulingExecution HARD = fromString("Hard"); - /** Static value Soft for VirtualMachineSchedulingExecution. */ + /** + * Static value Soft for VirtualMachineSchedulingExecution. + */ public static final VirtualMachineSchedulingExecution SOFT = fromString("Soft"); /** * Creates a new instance of VirtualMachineSchedulingExecution value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public VirtualMachineSchedulingExecution() { /** * Creates or finds a VirtualMachineSchedulingExecution from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineSchedulingExecution. */ - @JsonCreator public static VirtualMachineSchedulingExecution fromString(String name) { return fromString(name, VirtualMachineSchedulingExecution.class); } /** * Gets known VirtualMachineSchedulingExecution values. - * + * * @return known VirtualMachineSchedulingExecution values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineVirtioInterfaceType.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineVirtioInterfaceType.java index 3f92db712bb89..a3d158f0f09c5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineVirtioInterfaceType.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachineVirtioInterfaceType.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Field Deprecated, use virtualizationModel instead. The type of the virtio interface. */ +/** + * Field Deprecated, use virtualizationModel instead. The type of the virtio interface. + */ public final class VirtualMachineVirtioInterfaceType extends ExpandableStringEnum { - /** Static value Modern for VirtualMachineVirtioInterfaceType. */ + /** + * Static value Modern for VirtualMachineVirtioInterfaceType. + */ public static final VirtualMachineVirtioInterfaceType MODERN = fromString("Modern"); - /** Static value Transitional for VirtualMachineVirtioInterfaceType. */ + /** + * Static value Transitional for VirtualMachineVirtioInterfaceType. + */ public static final VirtualMachineVirtioInterfaceType TRANSITIONAL = fromString("Transitional"); /** * Creates a new instance of VirtualMachineVirtioInterfaceType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public VirtualMachineVirtioInterfaceType() { /** * Creates or finds a VirtualMachineVirtioInterfaceType from its string representation. - * + * * @param name a name to look for. * @return the corresponding VirtualMachineVirtioInterfaceType. */ - @JsonCreator public static VirtualMachineVirtioInterfaceType fromString(String name) { return fromString(name, VirtualMachineVirtioInterfaceType.class); } /** * Gets known VirtualMachineVirtioInterfaceType values. - * + * * @return known VirtualMachineVirtioInterfaceType values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachines.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachines.java index 12c69a647e84f..213c3a461b0d6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachines.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VirtualMachines.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of VirtualMachines. */ +/** + * Resource collection API of VirtualMachines. + */ public interface VirtualMachines { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of virtual machines in the provided subscription as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface VirtualMachines { /** * List virtual machines in the subscription. - * - *

Get a list of virtual machines in the provided subscription. - * + * + * Get a list of virtual machines in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,38 +38,38 @@ public interface VirtualMachines { /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of virtual machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of virtual machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName); /** * List virtual machines in the resource group. - * - *

Get a list of virtual machines in the provided resource group. - * + * + * Get a list of virtual machines in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of virtual machines in the provided resource group as paginated response with {@link - * PagedIterable}. + * @return a list of virtual machines in the provided resource group as paginated response with + * {@link PagedIterable}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -81,9 +83,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -95,36 +97,38 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String virtualMachineName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String virtualMachineName); /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String virtualMachineName, Context context); + OperationStatusResult delete(String resourceGroupName, String virtualMachineName, Context context); /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -136,9 +140,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName /** * Power off the virtual machine. - * - *

Power off the provided virtual machine. - * + * + * Power off the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param virtualMachinePowerOffParameters The request body. @@ -153,9 +157,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,9 +171,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Reimage the virtual machine. - * - *

Reimage the provided virtual machine. - * + * + * Reimage the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -182,9 +186,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -196,9 +200,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Restart the virtual machine. - * - *

Restart the provided virtual machine. - * + * + * Restart the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -211,9 +215,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,9 +229,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Start the virtual machine. - * - *

Start the provided virtual machine. - * + * + * Start the provided virtual machine. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param virtualMachineName The name of the virtual machine. * @param context The context to associate with this operation. @@ -240,9 +244,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -253,9 +257,9 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Retrieve the virtual machine. - * - *

Get properties of the provided virtual machine. - * + * + * Get properties of the provided virtual machine. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -267,32 +271,34 @@ OperationStatusResult powerOff(String resourceGroupName, String virtualMachineNa /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the virtual machine. - * - *

Delete the provided virtual machine. - * + * + * Delete the provided virtual machine. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new VirtualMachine resource. - * + * * @param name resource name. * @return the first stage of the new VirtualMachine definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volume.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volume.java index b35e4c31cef74..024f500f52e35 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volume.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volume.java @@ -11,56 +11,55 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of Volume. */ +/** + * An immutable client-side representation of Volume. + */ public interface Volume { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** - * Gets the extendedLocation property: ExtendedLocation represents the Azure custom location where the resource will - * be created. - * - *

The extended location of the cluster associated with the resource. - * + * Gets the extendedLocation property: The extended location of the cluster associated with the resource. + * * @return the extendedLocation value. */ ExtendedLocation extendedLocation(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -68,91 +67,99 @@ public interface Volume { /** * Gets the attachedTo property: The list of resource IDs that attach the volume. It may include virtual machines * and Hybrid AKS clusters. - * + * * @return the attachedTo value. */ List attachedTo(); /** * Gets the detailedStatus property: The more detailed status of the volume. - * + * * @return the detailedStatus value. */ VolumeDetailedStatus detailedStatus(); /** * Gets the detailedStatusMessage property: The descriptive message about the current detailed status. - * + * * @return the detailedStatusMessage value. */ String detailedStatusMessage(); /** * Gets the provisioningState property: The provisioning state of the volume. - * + * * @return the provisioningState value. */ VolumeProvisioningState provisioningState(); /** * Gets the serialNumber property: The unique identifier of the volume. - * + * * @return the serialNumber value. */ String serialNumber(); /** * Gets the sizeMiB property: The size of the allocation for this volume in Mebibytes. - * + * * @return the sizeMiB value. */ long sizeMiB(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.networkcloud.fluent.models.VolumeInner object. - * + * * @return the inner object. */ VolumeInner innerModel(); - /** The entirety of the Volume definition. */ + /** + * The entirety of the Volume definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithExtendedLocation, DefinitionStages.WithSizeMiB, DefinitionStages.WithCreate { } - /** The Volume definition stages. */ + /** + * The Volume definition stages. + */ interface DefinitionStages { - /** The first stage of the Volume definition. */ + /** + * The first stage of the Volume definition. + */ interface Blank extends WithLocation { } - /** The stage of the Volume definition allowing to specify location. */ + /** + * The stage of the Volume definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -160,45 +167,47 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the Volume definition allowing to specify parent resource. */ + /** + * The stage of the Volume definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithExtendedLocation withExistingResourceGroup(String resourceGroupName); } - /** The stage of the Volume definition allowing to specify extendedLocation. */ + /** + * The stage of the Volume definition allowing to specify extendedLocation. + */ interface WithExtendedLocation { /** - * Specifies the extendedLocation property: ExtendedLocation represents the Azure custom location where the - * resource will be created. - * - *

The extended location of the cluster associated with the resource.. - * - * @param extendedLocation ExtendedLocation represents the Azure custom location where the resource will be - * created. - *

The extended location of the cluster associated with the resource. + * Specifies the extendedLocation property: The extended location of the cluster associated with the + * resource.. + * + * @param extendedLocation The extended location of the cluster associated with the resource. * @return the next definition stage. */ WithSizeMiB withExtendedLocation(ExtendedLocation extendedLocation); } - /** The stage of the Volume definition allowing to specify sizeMiB. */ + /** + * The stage of the Volume definition allowing to specify sizeMiB. + */ interface WithSizeMiB { /** * Specifies the sizeMiB property: The size of the allocation for this volume in Mebibytes.. - * + * * @param sizeMiB The size of the allocation for this volume in Mebibytes. * @return the next definition stage. */ @@ -212,25 +221,27 @@ interface WithSizeMiB { interface WithCreate extends DefinitionStages.WithTags { /** * Executes the create request. - * + * * @return the created resource. */ Volume create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Volume create(Context context); } - /** The stage of the Volume definition allowing to specify tags. */ + /** + * The stage of the Volume definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ @@ -240,36 +251,42 @@ interface WithTags { /** * Begins update for the Volume resource. - * + * * @return the stage of resource update. */ Volume.Update update(); - /** The template for Volume update. */ + /** + * The template for Volume update. + */ interface Update extends UpdateStages.WithTags { /** * Executes the update request. - * + * * @return the updated resource. */ Volume apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Volume apply(Context context); } - /** The Volume update stages. */ + /** + * The Volume update stages. + */ interface UpdateStages { - /** The stage of the Volume update allowing to specify tags. */ + /** + * The stage of the Volume update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: The Azure resource tags that will replace the existing ones.. - * + * * @param tags The Azure resource tags that will replace the existing ones. * @return the next definition stage. */ @@ -279,14 +296,14 @@ interface WithTags { /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Volume refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeDetailedStatus.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeDetailedStatus.java index 857afd94c80b7..f1c1133e4b640 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeDetailedStatus.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeDetailedStatus.java @@ -5,23 +5,30 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The more detailed status of the volume. */ +/** + * The more detailed status of the volume. + */ public final class VolumeDetailedStatus extends ExpandableStringEnum { - /** Static value Error for VolumeDetailedStatus. */ + /** + * Static value Error for VolumeDetailedStatus. + */ public static final VolumeDetailedStatus ERROR = fromString("Error"); - /** Static value Active for VolumeDetailedStatus. */ + /** + * Static value Active for VolumeDetailedStatus. + */ public static final VolumeDetailedStatus ACTIVE = fromString("Active"); - /** Static value Provisioning for VolumeDetailedStatus. */ + /** + * Static value Provisioning for VolumeDetailedStatus. + */ public static final VolumeDetailedStatus PROVISIONING = fromString("Provisioning"); /** * Creates a new instance of VolumeDetailedStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,18 +37,17 @@ public VolumeDetailedStatus() { /** * Creates or finds a VolumeDetailedStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding VolumeDetailedStatus. */ - @JsonCreator public static VolumeDetailedStatus fromString(String name) { return fromString(name, VolumeDetailedStatus.class); } /** * Gets known VolumeDetailedStatus values. - * + * * @return known VolumeDetailedStatus values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeList.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeList.java index ff042a9fba5ff..155bafe94753d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeList.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeList.java @@ -5,32 +5,38 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; import com.azure.resourcemanager.networkcloud.fluent.models.VolumeInner; -import com.fasterxml.jackson.annotation.JsonProperty; +import java.io.IOException; import java.util.List; -/** VolumeList represents a list of volumes. */ +/** + * VolumeList represents a list of volumes. + */ @Fluent -public final class VolumeList { +public final class VolumeList implements JsonSerializable { /* * The link used to get the next page of operations. */ - @JsonProperty(value = "nextLink") private String nextLink; /* * The list of volumes. */ - @JsonProperty(value = "value") private List value; - /** Creates an instance of VolumeList class. */ + /** + * Creates an instance of VolumeList class. + */ public VolumeList() { } /** * Get the nextLink property: The link used to get the next page of operations. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: The link used to get the next page of operations. - * + * * @param nextLink the nextLink value to set. * @return the VolumeList object itself. */ @@ -50,7 +56,7 @@ public VolumeList withNextLink(String nextLink) { /** * Get the value property: The list of volumes. - * + * * @return the value value. */ public List value() { @@ -59,7 +65,7 @@ public List value() { /** * Set the value property: The list of volumes. - * + * * @param value the value value to set. * @return the VolumeList object itself. */ @@ -70,7 +76,7 @@ public VolumeList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -78,4 +84,44 @@ public void validate() { value().forEach(e -> e.validate()); } } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VolumeList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VolumeList if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the VolumeList. + */ + public static VolumeList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VolumeList deserializedVolumeList = new VolumeList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedVolumeList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> VolumeInner.fromJson(reader1)); + deserializedVolumeList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedVolumeList; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumePatchParameters.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumePatchParameters.java index 4e311be841ec4..a550960895e95 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumePatchParameters.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumePatchParameters.java @@ -5,27 +5,32 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; import java.util.Map; -/** VolumePatchParameters represents the body of the request to patch the volume resource. */ +/** + * VolumePatchParameters represents the body of the request to patch the volume resource. + */ @Fluent -public final class VolumePatchParameters { +public final class VolumePatchParameters implements JsonSerializable { /* * The Azure resource tags that will replace the existing ones. */ - @JsonProperty(value = "tags") - @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of VolumePatchParameters class. */ + /** + * Creates an instance of VolumePatchParameters class. + */ public VolumePatchParameters() { } /** * Get the tags property: The Azure resource tags that will replace the existing ones. - * + * * @return the tags value. */ public Map tags() { @@ -34,7 +39,7 @@ public Map tags() { /** * Set the tags property: The Azure resource tags that will replace the existing ones. - * + * * @param tags the tags value to set. * @return the VolumePatchParameters object itself. */ @@ -45,9 +50,46 @@ public VolumePatchParameters withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VolumePatchParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VolumePatchParameters if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the VolumePatchParameters. + */ + public static VolumePatchParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VolumePatchParameters deserializedVolumePatchParameters = new VolumePatchParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedVolumePatchParameters.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedVolumePatchParameters; + }); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeProvisioningState.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeProvisioningState.java index e462273d3593c..d1ffae684a3c7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeProvisioningState.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/VolumeProvisioningState.java @@ -5,29 +5,40 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioning state of the volume. */ +/** + * The provisioning state of the volume. + */ public final class VolumeProvisioningState extends ExpandableStringEnum { - /** Static value Succeeded for VolumeProvisioningState. */ + /** + * Static value Succeeded for VolumeProvisioningState. + */ public static final VolumeProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for VolumeProvisioningState. */ + /** + * Static value Failed for VolumeProvisioningState. + */ public static final VolumeProvisioningState FAILED = fromString("Failed"); - /** Static value Canceled for VolumeProvisioningState. */ + /** + * Static value Canceled for VolumeProvisioningState. + */ public static final VolumeProvisioningState CANCELED = fromString("Canceled"); - /** Static value Provisioning for VolumeProvisioningState. */ + /** + * Static value Provisioning for VolumeProvisioningState. + */ public static final VolumeProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Accepted for VolumeProvisioningState. */ + /** + * Static value Accepted for VolumeProvisioningState. + */ public static final VolumeProvisioningState ACCEPTED = fromString("Accepted"); /** * Creates a new instance of VolumeProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,18 +47,17 @@ public VolumeProvisioningState() { /** * Creates or finds a VolumeProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding VolumeProvisioningState. */ - @JsonCreator public static VolumeProvisioningState fromString(String name) { return fromString(name, VolumeProvisioningState.class); } /** * Gets known VolumeProvisioningState values. - * + * * @return known VolumeProvisioningState values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volumes.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volumes.java index 550280df37013..fc00754e5b061 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volumes.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/Volumes.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Volumes. */ +/** + * Resource collection API of Volumes. + */ public interface Volumes { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of volumes in the provided subscription as paginated response with {@link PagedIterable}. @@ -23,9 +25,9 @@ public interface Volumes { /** * List volumes in the subscription. - * - *

Get a list of volumes in the provided subscription. - * + * + * Get a list of volumes in the provided subscription. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -36,9 +38,9 @@ public interface Volumes { /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -49,9 +51,9 @@ public interface Volumes { /** * List volumes in the resource group. - * - *

Get a list of volumes in the provided resource group. - * + * + * Get a list of volumes in the provided resource group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -63,9 +65,9 @@ public interface Volumes { /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. @@ -78,9 +80,9 @@ public interface Volumes { /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -92,36 +94,38 @@ public interface Volumes { /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByResourceGroup(String resourceGroupName, String volumeName); + OperationStatusResult deleteByResourceGroup(String resourceGroupName, String volumeName); /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param volumeName The name of the volume. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void delete(String resourceGroupName, String volumeName, Context context); + OperationStatusResult delete(String resourceGroupName, String volumeName, Context context); /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -132,9 +136,9 @@ public interface Volumes { /** * Retrieve the volume. - * - *

Get properties of the provided volume. - * + * + * Get properties of the provided volume. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -146,32 +150,34 @@ public interface Volumes { /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteById(String id); + OperationStatusResult deleteById(String id); /** * Delete the volume. - * - *

Delete the provided volume. - * + * + * Delete the provided volume. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current status of an async operation. */ - void deleteByIdWithResponse(String id, Context context); + OperationStatusResult deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new Volume resource. - * + * * @param name resource name. * @return the first stage of the new Volume definition. */ diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/WorkloadImpact.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/WorkloadImpact.java index 807acb84eea68..a7543635a4ddf 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/WorkloadImpact.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/WorkloadImpact.java @@ -5,20 +5,25 @@ package com.azure.resourcemanager.networkcloud.models; import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The indicator of whether the workload will be impacted during the upgrade. */ +/** + * The indicator of whether the workload will be impacted during the upgrade. + */ public final class WorkloadImpact extends ExpandableStringEnum { - /** Static value True for WorkloadImpact. */ + /** + * Static value True for WorkloadImpact. + */ public static final WorkloadImpact TRUE = fromString("True"); - /** Static value False for WorkloadImpact. */ + /** + * Static value False for WorkloadImpact. + */ public static final WorkloadImpact FALSE = fromString("False"); /** * Creates a new instance of WorkloadImpact value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,18 +32,17 @@ public WorkloadImpact() { /** * Creates or finds a WorkloadImpact from its string representation. - * + * * @param name a name to look for. * @return the corresponding WorkloadImpact. */ - @JsonCreator public static WorkloadImpact fromString(String name) { return fromString(name, WorkloadImpact.class); } /** * Gets known WorkloadImpact values. - * + * * @return known WorkloadImpact values. */ public static Collection values() { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/package-info.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/package-info.java index cb4ca688c84db..0ec6bca3ff1ea 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/package-info.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/models/package-info.java @@ -3,7 +3,8 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the data models for NetworkCloud. The Network Cloud APIs provide management of the on-premises - * clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. + * Package containing the data models for NetworkCloud. + * The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, + * hardware resources, and workload infrastructure resources. */ package com.azure.resourcemanager.networkcloud.models; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/package-info.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/package-info.java index c21b9b57fcf6f..52ff4bc1001ab 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/package-info.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/com/azure/resourcemanager/networkcloud/package-info.java @@ -3,7 +3,8 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the classes for NetworkCloud. The Network Cloud APIs provide management of the on-premises - * clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. + * Package containing the classes for NetworkCloud. + * The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, + * hardware resources, and workload infrastructure resources. */ package com.azure.resourcemanager.networkcloud; diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/module-info.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/module-info.java index 0f6ce610ef5c9..93b0a86966554 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/module-info.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/java/module-info.java @@ -10,6 +10,6 @@ exports com.azure.resourcemanager.networkcloud.fluent.models; exports com.azure.resourcemanager.networkcloud.models; - opens com.azure.resourcemanager.networkcloud.fluent.models to com.azure.core, com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.networkcloud.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.networkcloud.fluent.models to com.azure.core; + opens com.azure.resourcemanager.networkcloud.models to com.azure.core; } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/proxy-config.json b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/proxy-config.json new file mode 100644 index 0000000000000..e10460627a1af --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/proxy-config.json @@ -0,0 +1 @@ +[["com.azure.resourcemanager.networkcloud.implementation.AgentPoolsClientImpl$AgentPoolsService"],["com.azure.resourcemanager.networkcloud.implementation.BareMetalMachineKeySetsClientImpl$BareMetalMachineKeySetsService"],["com.azure.resourcemanager.networkcloud.implementation.BareMetalMachinesClientImpl$BareMetalMachinesService"],["com.azure.resourcemanager.networkcloud.implementation.BmcKeySetsClientImpl$BmcKeySetsService"],["com.azure.resourcemanager.networkcloud.implementation.CloudServicesNetworksClientImpl$CloudServicesNetworksService"],["com.azure.resourcemanager.networkcloud.implementation.ClusterManagersClientImpl$ClusterManagersService"],["com.azure.resourcemanager.networkcloud.implementation.ClustersClientImpl$ClustersService"],["com.azure.resourcemanager.networkcloud.implementation.ConsolesClientImpl$ConsolesService"],["com.azure.resourcemanager.networkcloud.implementation.KubernetesClusterFeaturesClientImpl$KubernetesClusterFeaturesService"],["com.azure.resourcemanager.networkcloud.implementation.KubernetesClustersClientImpl$KubernetesClustersService"],["com.azure.resourcemanager.networkcloud.implementation.L2NetworksClientImpl$L2NetworksService"],["com.azure.resourcemanager.networkcloud.implementation.L3NetworksClientImpl$L3NetworksService"],["com.azure.resourcemanager.networkcloud.implementation.MetricsConfigurationsClientImpl$MetricsConfigurationsService"],["com.azure.resourcemanager.networkcloud.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.networkcloud.implementation.RackSkusClientImpl$RackSkusService"],["com.azure.resourcemanager.networkcloud.implementation.RacksClientImpl$RacksService"],["com.azure.resourcemanager.networkcloud.implementation.StorageAppliancesClientImpl$StorageAppliancesService"],["com.azure.resourcemanager.networkcloud.implementation.TrunkedNetworksClientImpl$TrunkedNetworksService"],["com.azure.resourcemanager.networkcloud.implementation.VirtualMachinesClientImpl$VirtualMachinesService"],["com.azure.resourcemanager.networkcloud.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/reflect-config.json b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/reflect-config.json new file mode 100644 index 0000000000000..0637a088a01e8 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-networkcloud/reflect-config.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java index 1d85c6c40823a..a85624b3d475f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsCreateOrUpdateSamples.java @@ -22,61 +22,48 @@ import java.util.HashMap; import java.util.Map; -/** Samples for AgentPools CreateOrUpdate. */ +/** + * Samples for AgentPools CreateOrUpdate. + */ public final class AgentPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Create.json */ /** * Sample code: Create or update Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() + public static void + createOrUpdateKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() .define("agentPoolName") .withRegion("location") .withExistingKubernetesCluster("resourceGroupName", "kubernetesClusterName") .withCount(3L) .withMode(AgentPoolMode.SYSTEM) - .withVmSkuName("NC_M16_v1") + .withVmSkuName("NC_XXXX") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") - .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withAgentOptions(new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) - .withAttachedNetworkConfiguration( - new AttachedNetworkConfiguration() - .withL2Networks( - Arrays - .asList( - new L2NetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") - .withPluginType(KubernetesPluginType.DPDK))) - .withL3Networks( - Arrays - .asList( - new L3NetworkAttachmentConfiguration() - .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withPluginType(KubernetesPluginType.SRIOV))) - .withTrunkedNetworks( - Arrays - .asList( - new TrunkedNetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") - .withPluginType(KubernetesPluginType.MACVLAN)))) + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) .withAvailabilityZones(Arrays.asList("1", "2", "3")) .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java index 0d9093b318831..8f1ff69168cd1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for AgentPools Delete. */ +/** + * Samples for AgentPools Delete. + */ public final class AgentPoolsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Delete.json */ /** * Sample code: Delete Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deleteKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() + public static void + deleteKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() .delete("resourceGroupName", "kubernetesClusterName", "agentPoolName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java index 2686e814c088e..a113ec47351cf 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsGetSamples.java @@ -4,21 +4,24 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for AgentPools Get. */ +/** + * Samples for AgentPools Get. + */ public final class AgentPoolsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Get.json */ /** * Sample code: Get Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void getKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() - .getWithResponse( - "resourceGroupName", "kubernetesClusterName", "agentPoolName", com.azure.core.util.Context.NONE); + public static void + getKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "agentPoolName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java index 77d485a54102d..c2554256efce4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsListByKubernetesClusterSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for AgentPools ListByKubernetesCluster. */ +/** + * Samples for AgentPools ListByKubernetesCluster. + */ public final class AgentPoolsListByKubernetesClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_ListByKubernetesCluster.json */ /** * Sample code: List agent pools of the Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listAgentPoolsOfTheKubernetesCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .agentPools() + public static void + listAgentPoolsOfTheKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.agentPools() .listByKubernetesCluster("resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java index 8e94757c0e929..b65d485bcab90 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsUpdateSamples.java @@ -6,32 +6,39 @@ import com.azure.resourcemanager.networkcloud.models.AgentPool; import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings; +import com.azure.resourcemanager.networkcloud.models.NodePoolAdministratorConfigurationPatch; +import com.azure.resourcemanager.networkcloud.models.SshPublicKey; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for AgentPools Update. */ +/** + * Samples for AgentPools Update. + */ public final class AgentPoolsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * AgentPools_Patch.json */ /** * Sample code: Patch Kubernetes cluster agent pool. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void patchKubernetesClusterAgentPool( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - AgentPool resource = - manager - .agentPools() - .getWithResponse( - "resourceGroupName", "kubernetesClusterName", "agentPoolName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + patchKubernetesClusterAgentPool(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + AgentPool resource = manager.agentPools() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "agentPoolName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withAdministratorConfiguration(new NodePoolAdministratorConfigurationPatch() + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withCount(3L) - .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) + .withUpgradeSettings( + new AgentPoolUpgradeSettings().withDrainTimeout(1800L).withMaxSurge("1").withMaxUnavailable("0")) .apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java index 22a538c78c444..68b9cc0376db5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsCreateOrUpdateSamples.java @@ -13,43 +13,42 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachineKeySets CreateOrUpdate. */ +/** + * Samples for BareMetalMachineKeySets CreateOrUpdate. + */ public final class BareMetalMachineKeySetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Create.json */ /** * Sample code: Create or update bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateBareMetalMachineKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() + manager.bareMetalMachineKeySets() .define("bareMetalMachineKeySetName") .withRegion("location") .withExistingCluster("resourceGroupName", "clusterName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAzureGroupId("f110271b-XXXX-4163-9b99-214d91660f0e") .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) .withJumpHostsAllowed(Arrays.asList("192.0.2.1", "192.0.2.5")) .withPrivilegeLevel(BareMetalMachineKeySetPrivilegeLevel.STANDARD) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withOsGroupName("standardAccessGroup") .create(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java index 262db267e5075..5a86ddec420b2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachineKeySets Delete. */ +/** + * Samples for BareMetalMachineKeySets Delete. + */ public final class BareMetalMachineKeySetsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Delete.json */ /** * Sample code: Delete bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deleteBareMetalMachineKeySetOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() + public static void + deleteBareMetalMachineKeySetOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachineKeySets() .delete("resourceGroupName", "clusterName", "bareMetalMachineKeySetName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java index 881df99a00d8e..1edf5a7e55fed 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsGetSamples.java @@ -4,21 +4,24 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachineKeySets Get. */ +/** + * Samples for BareMetalMachineKeySets Get. + */ public final class BareMetalMachineKeySetsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Get.json */ /** * Sample code: Get bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void getBareMetalMachineKeySetOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() - .getWithResponse( - "resourceGroupName", "clusterName", "bareMetalMachineKeySetName", com.azure.core.util.Context.NONE); + public static void + getBareMetalMachineKeySetOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachineKeySets() + .getWithResponse("resourceGroupName", "clusterName", "bareMetalMachineKeySetName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java index 89a278476e339..b6367c3254408 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsListByClusterSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachineKeySets ListByCluster. */ +/** + * Samples for BareMetalMachineKeySets ListByCluster. + */ public final class BareMetalMachineKeySetsListByClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_ListByCluster.json */ /** * Sample code: List bare metal machine key sets of the cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listBareMetalMachineKeySetsOfTheCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachineKeySets() + public static void + listBareMetalMachineKeySetsOfTheCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachineKeySets() .listByCluster("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java index 38d6cbbf51ae2..f8fa89e851cf8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsUpdateSamples.java @@ -12,40 +12,39 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachineKeySets Update. */ +/** + * Samples for BareMetalMachineKeySets Update. + */ public final class BareMetalMachineKeySetsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachineKeySets_Patch.json */ /** * Sample code: Patch bare metal machine key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void patchBareMetalMachineKeySetOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - BareMetalMachineKeySet resource = - manager - .bareMetalMachineKeySets() - .getWithResponse( - "resourceGroupName", "clusterName", "bareMetalMachineKeySetName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + patchBareMetalMachineKeySetOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + BareMetalMachineKeySet resource = manager.bareMetalMachineKeySets() + .getWithResponse("resourceGroupName", "clusterName", "bareMetalMachineKeySetName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) .withJumpHostsAllowed(Arrays.asList("192.0.2.1", "192.0.2.5")) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java index 62186e6016f84..a1fcc895a3ecd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonSamples.java @@ -7,22 +7,23 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCordonParameters; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineEvacuate; -/** Samples for BareMetalMachines Cordon. */ +/** + * Samples for BareMetalMachines Cordon. + */ public final class BareMetalMachinesCordonSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Cordon.json */ /** * Sample code: Cordon bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void cordonBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .cordon( - "resourceGroupName", - "bareMetalMachineName", + manager.bareMetalMachines() + .cordon("resourceGroupName", "bareMetalMachineName", new BareMetalMachineCordonParameters().withEvacuate(BareMetalMachineEvacuate.TRUE), com.azure.core.util.Context.NONE); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java index cd7d8078a4d27..edeeac9d0dbc1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCreateOrUpdateSamples.java @@ -9,28 +9,29 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachines CreateOrUpdate. */ +/** + * Samples for BareMetalMachines CreateOrUpdate. + */ public final class BareMetalMachinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Create.json */ /** * Sample code: Create or update bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateBareMetalMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + public static void + createOrUpdateBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachines() .define("bareMetalMachineName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withBmcConnectionString("bmcconnectionstring") .withBmcCredentials( new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("bmcuser")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java index 0f4429ee15991..c6fd3ac1f352c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines Delete. */ +/** + * Samples for BareMetalMachines Delete. + */ public final class BareMetalMachinesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Delete.json */ /** * Sample code: Delete bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .delete("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java index 7b88b8f450514..ff233106e80ab 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines GetByResourceGroup. */ +/** + * Samples for BareMetalMachines GetByResourceGroup. + */ public final class BareMetalMachinesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Get.json */ /** * Sample code: Get bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); + manager.bareMetalMachines() + .getByResourceGroupWithResponse("resourceGroupName", "bareMetalMachineName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java index 393438699787c..b97ab16628f90 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines ListByResourceGroup. */ +/** + * Samples for BareMetalMachines ListByResourceGroup. + */ public final class BareMetalMachinesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_ListByResourceGroup.json */ /** * Sample code: List bare metal machines for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listBareMetalMachinesForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listBareMetalMachinesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.bareMetalMachines().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java index 04f6c342bd268..7edf0fe075e1f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines List. */ +/** + * Samples for BareMetalMachines List. + */ public final class BareMetalMachinesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_ListBySubscription.json */ /** * Sample code: List bare metal machines for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listBareMetalMachinesForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listBareMetalMachinesForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.bareMetalMachines().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java index 0cbe72037ee86..e6bbc4bb09b83 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffSamples.java @@ -7,22 +7,23 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachinePowerOffParameters; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineSkipShutdown; -/** Samples for BareMetalMachines PowerOff. */ +/** + * Samples for BareMetalMachines PowerOff. + */ public final class BareMetalMachinesPowerOffSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_PowerOff.json */ /** * Sample code: Power off bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void powerOffBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .powerOff( - "resourceGroupName", - "bareMetalMachineName", + manager.bareMetalMachines() + .powerOff("resourceGroupName", "bareMetalMachineName", new BareMetalMachinePowerOffParameters().withSkipShutdown(BareMetalMachineSkipShutdown.TRUE), com.azure.core.util.Context.NONE); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java index e447b2dc0bff7..933089a5faaa8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines Reimage. */ +/** + * Samples for BareMetalMachines Reimage. + */ public final class BareMetalMachinesReimageSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Reimage.json */ /** * Sample code: Reimage bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void reimageBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .reimage("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java index 8377cce7d2623..ebc0593c507d0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReplaceSamples.java @@ -7,22 +7,23 @@ import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineReplaceParameters; -/** Samples for BareMetalMachines Replace. */ +/** + * Samples for BareMetalMachines Replace. + */ public final class BareMetalMachinesReplaceSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Replace.json */ /** * Sample code: Replace bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void replaceBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .replace( - "resourceGroupName", - "bareMetalMachineName", + manager.bareMetalMachines() + .replace("resourceGroupName", "bareMetalMachineName", new BareMetalMachineReplaceParameters() .withBmcCredentials( new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("bmcuser")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java index 97152def6310d..282ea2c7281a4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines Restart. */ +/** + * Samples for BareMetalMachines Restart. + */ public final class BareMetalMachinesRestartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Restart.json */ /** * Sample code: Restart bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void restartBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .restart("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java index 7c39a3f7b145b..d60b648afabbe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandSamples.java @@ -7,25 +7,25 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunCommandParameters; import java.util.Arrays; -/** Samples for BareMetalMachines RunCommand. */ +/** + * Samples for BareMetalMachines RunCommand. + */ public final class BareMetalMachinesRunCommandSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_RunCommand.json */ /** * Sample code: Run command on bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void runCommandOnBareMetalMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .runCommand( - "resourceGroupName", - "bareMetalMachineName", - new BareMetalMachineRunCommandParameters() - .withArguments(Arrays.asList("--argument1", "argument2")) + public static void + runCommandOnBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachines() + .runCommand("resourceGroupName", "bareMetalMachineName", + new BareMetalMachineRunCommandParameters().withArguments(Arrays.asList("--argument1", "argument2")) .withLimitTimeSeconds(60L) .withScript("cHdkCg=="), com.azure.core.util.Context.NONE); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java index dc0c9516837d4..61e7cfc239596 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsSamples.java @@ -8,30 +8,27 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunDataExtractsParameters; import java.util.Arrays; -/** Samples for BareMetalMachines RunDataExtracts. */ +/** + * Samples for BareMetalMachines RunDataExtracts. + */ public final class BareMetalMachinesRunDataExtractsSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_RunDataExtracts.json */ /** * Sample code: Run data extraction on bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void runDataExtractionOnBareMetalMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .runDataExtracts( - "resourceGroupName", - "bareMetalMachineName", - new BareMetalMachineRunDataExtractsParameters() - .withCommands( - Arrays - .asList( - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("SysInfo", "TTYLog")) - .withCommand("hardware-support-data-collection"))) + public static void + runDataExtractionOnBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.bareMetalMachines() + .runDataExtracts("resourceGroupName", "bareMetalMachineName", + new BareMetalMachineRunDataExtractsParameters().withCommands(Arrays + .asList(new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("SysInfo", "TTYLog")) + .withCommand("hardware-support-data-collection"))) .withLimitTimeSeconds(60L), com.azure.core.util.Context.NONE); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java index e6ae0cd53e6ba..74d7be2e4388c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsSamples.java @@ -8,33 +8,29 @@ import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunReadCommandsParameters; import java.util.Arrays; -/** Samples for BareMetalMachines RunReadCommands. */ +/** + * Samples for BareMetalMachines RunReadCommands. + */ public final class BareMetalMachinesRunReadCommandsSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_RunReadCommands.json */ /** * Sample code: Run and retrieve output from read only commands on bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() - .runReadCommands( - "resourceGroupName", - "bareMetalMachineName", - new BareMetalMachineRunReadCommandsParameters() - .withCommands( - Arrays - .asList( - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("pods", "-A")) - .withCommand("kubectl get"), - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("192.168.0.99", "-c", "3")) - .withCommand("ping"))) + manager.bareMetalMachines() + .runReadCommands("resourceGroupName", "bareMetalMachineName", + new BareMetalMachineRunReadCommandsParameters().withCommands(Arrays.asList( + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("pods", "-A")) + .withCommand("kubectl get"), + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("192.168.0.99", "-c", "3")) + .withCommand("ping"))) .withLimitTimeSeconds(60L), com.azure.core.util.Context.NONE); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java index 2aca2ec76dac5..66464eef3b22f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines Start. */ +/** + * Samples for BareMetalMachines Start. + */ public final class BareMetalMachinesStartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Start.json */ /** * Sample code: Start bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void startBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .start("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java index fa920647594ef..21b73acd60033 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BareMetalMachines Uncordon. */ +/** + * Samples for BareMetalMachines Uncordon. + */ public final class BareMetalMachinesUncordonSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Uncordon.json */ /** * Sample code: Uncordon bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void uncordonBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bareMetalMachines() + manager.bareMetalMachines() .uncordon("resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java index 85499dddf77a6..b65d304736357 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUpdateSamples.java @@ -8,25 +8,26 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BareMetalMachines Update. */ +/** + * Samples for BareMetalMachines Update. + */ public final class BareMetalMachinesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BareMetalMachines_Patch.json */ /** * Sample code: Patch bare metal machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchBareMetalMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - BareMetalMachine resource = - manager - .bareMetalMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "bareMetalMachineName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + BareMetalMachine resource = manager.bareMetalMachines() + .getByResourceGroupWithResponse("resourceGroupName", "bareMetalMachineName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withMachineDetails("machinedetails") .apply(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java index ebb467b3b296d..8a72e03493e81 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsCreateOrUpdateSamples.java @@ -13,42 +13,41 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BmcKeySets CreateOrUpdate. */ +/** + * Samples for BmcKeySets CreateOrUpdate. + */ public final class BmcKeySetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Create.json */ /** * Sample code: Create or update baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bmcKeySets() + manager.bmcKeySets() .define("bmcKeySetName") .withRegion("location") .withExistingCluster("resourceGroupName", "clusterName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAzureGroupId("f110271b-XXXX-4163-9b99-214d91660f0e") .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) .withPrivilegeLevel(BmcKeySetPrivilegeLevel.ADMINISTRATOR) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .create(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java index 3807391886264..dbc3b8a53c7fe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BmcKeySets Delete. */ +/** + * Samples for BmcKeySets Delete. + */ public final class BmcKeySetsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Delete.json */ /** * Sample code: Delete baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bmcKeySets() + manager.bmcKeySets() .delete("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java index e60dd0c054d11..45927aef22e45 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsGetSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BmcKeySets Get. */ +/** + * Samples for BmcKeySets Get. + */ public final class BmcKeySetsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Get.json */ /** * Sample code: Get baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .bmcKeySets() + manager.bmcKeySets() .getWithResponse("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java index d3986d164c176..d6bdf5004e7bd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsListByClusterSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for BmcKeySets ListByCluster. */ +/** + * Samples for BmcKeySets ListByCluster. + */ public final class BmcKeySetsListByClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_ListByCluster.json */ /** * Sample code: List baseboard management controller key sets of the cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listBaseboardManagementControllerKeySetsOfTheCluster( diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java index d869b4c489a5e..255eacf817b58 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsUpdateSamples.java @@ -12,38 +12,37 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BmcKeySets Update. */ +/** + * Samples for BmcKeySets Update. + */ public final class BmcKeySetsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * BmcKeySets_Patch.json */ /** * Sample code: Patch baseboard management controller key set of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchBaseboardManagementControllerKeySetOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - BmcKeySet resource = - manager - .bmcKeySets() - .getWithResponse("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + BmcKeySet resource = manager.bmcKeySets() + .getWithResponse("resourceGroupName", "clusterName", "bmcKeySetName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withExpiration(OffsetDateTime.parse("2022-12-31T23:59:59.008Z")) - .withUserList( - Arrays - .asList( - new KeySetUser() - .withAzureUsername("userABC") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")), - new KeySetUser() - .withAzureUsername("userXYZ") - .withDescription("Needs access for troubleshooting as a part of the support team") - .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withUserList(Arrays.asList( + new KeySetUser().withAzureUsername("userABC") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"), + new KeySetUser().withAzureUsername("userXYZ") + .withDescription("Needs access for troubleshooting as a part of the support team") + .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) + .withUserPrincipalName("userABC@contoso.com"))) .apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java index 0c9da197206ed..2ca2214447c58 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateSamples.java @@ -12,40 +12,33 @@ import java.util.HashMap; import java.util.Map; -/** Samples for CloudServicesNetworks CreateOrUpdate. */ +/** + * Samples for CloudServicesNetworks CreateOrUpdate. + */ public final class CloudServicesNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Create.json */ /** * Sample code: Create or update cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateCloudServicesNetwork( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .cloudServicesNetworks() + public static void + createOrUpdateCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.cloudServicesNetworks() .define("cloudServicesNetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withAdditionalEgressEndpoints( - Arrays - .asList( - new EgressEndpoint() - .withCategory("azure-resource-management") - .withEndpoints( - Arrays - .asList( - new EndpointDependency() - .withDomainName("https://storageaccountex.blob.core.windows.net") - .withPort(443L))))) + .withAdditionalEgressEndpoints(Arrays.asList(new EgressEndpoint().withCategory("azure-resource-management") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("storageaccountex.blob.core.windows.net").withPort(443L))))) .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE) .create(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java index 521d4b55c4bd9..669f93845a1f8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for CloudServicesNetworks Delete. */ +/** + * Samples for CloudServicesNetworks Delete. + */ public final class CloudServicesNetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Delete.json */ /** * Sample code: Delete cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .cloudServicesNetworks() + manager.cloudServicesNetworks() .delete("resourceGroupName", "cloudServicesNetworkName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java index ea0a417dcc819..787688c28d6a0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for CloudServicesNetworks GetByResourceGroup. */ +/** + * Samples for CloudServicesNetworks GetByResourceGroup. + */ public final class CloudServicesNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Get.json */ /** * Sample code: Get cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .cloudServicesNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "cloudServicesNetworkName", com.azure.core.util.Context.NONE); + manager.cloudServicesNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "cloudServicesNetworkName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java index 7cf873b953596..5c710067b7875 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for CloudServicesNetworks ListByResourceGroup. */ +/** + * Samples for CloudServicesNetworks ListByResourceGroup. + */ public final class CloudServicesNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_ListByResourceGroup.json */ /** * Sample code: List cloud services networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listCloudServicesNetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listCloudServicesNetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.cloudServicesNetworks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java index 83939b9384ce8..ef37977b1f353 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for CloudServicesNetworks List. */ +/** + * Samples for CloudServicesNetworks List. + */ public final class CloudServicesNetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_ListBySubscription.json */ /** * Sample code: List cloud services networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listCloudServicesNetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listCloudServicesNetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.cloudServicesNetworks().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java index 3151e7ec647a2..ef41b86173fe6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksUpdateSamples.java @@ -12,37 +12,30 @@ import java.util.HashMap; import java.util.Map; -/** Samples for CloudServicesNetworks Update. */ +/** + * Samples for CloudServicesNetworks Update. + */ public final class CloudServicesNetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * CloudServicesNetworks_Patch.json */ /** * Sample code: Patch cloud services network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchCloudServicesNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - CloudServicesNetwork resource = - manager - .cloudServicesNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "cloudServicesNetworkName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + CloudServicesNetwork resource = manager.cloudServicesNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "cloudServicesNetworkName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withAdditionalEgressEndpoints( - Arrays - .asList( - new EgressEndpoint() - .withCategory("azure-resource-management") - .withEndpoints( - Arrays - .asList( - new EndpointDependency() - .withDomainName("https://storageaccountex.blob.core.windows.net") - .withPort(443L))))) + .withAdditionalEgressEndpoints(Arrays.asList(new EgressEndpoint().withCategory("azure-resource-management") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("storageaccountex.blob.core.windows.net").withPort(443L))))) .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE) .apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java index 4c33f68f63368..8ad1bd3f19e79 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateSamples.java @@ -5,29 +5,66 @@ package com.azure.resourcemanager.networkcloud.generated; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.util.HashMap; import java.util.Map; -/** Samples for ClusterManagers CreateOrUpdate. */ +/** + * Samples for ClusterManagers CreateOrUpdate. + */ public final class ClusterManagersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Create.json */ /** * Sample code: Create or update cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateClusterManager( + public static void + createOrUpdateClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusterManagers() + .define("clusterManagerName") + .withRegion("location") + .withExistingResourceGroup("resourceGroupName") + .withFabricControllerId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName") + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)) + .withAnalyticsWorkspaceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") + .withManagedResourceGroupConfiguration( + new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) + .create(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Create_Uami.json + */ + /** + * Sample code: Create or update cluster manager with user assigned identity. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void createOrUpdateClusterManagerWithUserAssignedIdentity( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusterManagers() + manager.clusterManagers() .define("clusterManagerName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") .withFabricControllerId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + new UserAssignedIdentity()))) .withAnalyticsWorkspaceId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") .withManagedResourceGroupConfiguration( diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java index 08c69d5096bb6..6c5264c484ef2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for ClusterManagers Delete. */ +/** + * Samples for ClusterManagers Delete. + */ public final class ClusterManagersDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Delete.json */ /** * Sample code: Delete cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java index 87d9203cb16f2..f478983d86841 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for ClusterManagers GetByResourceGroup. */ +/** + * Samples for ClusterManagers GetByResourceGroup. + */ public final class ClusterManagersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Get.json */ /** * Sample code: Get cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusterManagers() - .getByResourceGroupWithResponse( - "resourceGroupName", "clusterManagerName", com.azure.core.util.Context.NONE); + manager.clusterManagers() + .getByResourceGroupWithResponse("resourceGroupName", "clusterManagerName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java index 2ed4f3ceecfb6..4874bfb52e495 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for ClusterManagers ListByResourceGroup. */ +/** + * Samples for ClusterManagers ListByResourceGroup. + */ public final class ClusterManagersListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_ListByResourceGroup.json */ /** * Sample code: List cluster managers for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listClusterManagersForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listClusterManagersForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.clusterManagers().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java index 730909ec7d8b6..4d2feeedfe451 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for ClusterManagers List. */ +/** + * Samples for ClusterManagers List. + */ public final class ClusterManagersListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_ListBySubscription.json */ /** * Sample code: List cluster managers for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listClusterManagersForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listClusterManagersForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.clusterManagers().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java index 5470292bf0908..bbea735ccf752 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersUpdateSamples.java @@ -5,27 +5,39 @@ package com.azure.resourcemanager.networkcloud.generated; import com.azure.resourcemanager.networkcloud.models.ClusterManager; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.util.HashMap; import java.util.Map; -/** Samples for ClusterManagers Update. */ +/** + * Samples for ClusterManagers Update. + */ public final class ClusterManagersUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterManagers_Patch.json */ /** * Sample code: Patch cluster manager. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchClusterManager(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - ClusterManager resource = - manager - .clusterManagers() - .getByResourceGroupWithResponse( - "resourceGroupName", "clusterManagerName", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); + ClusterManager resource = manager.clusterManagers() + .getByResourceGroupWithResponse("resourceGroupName", "clusterManagerName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + null, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + new UserAssignedIdentity()))) + .apply(); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java new file mode 100644 index 0000000000000..7d7288e1ba39b --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersContinueUpdateVersionSamples.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionMachineGroupTargetingMode; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; + +/** + * Samples for Clusters ContinueUpdateVersion. + */ +public final class ClustersContinueUpdateVersionSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ContinueUpdateVersion.json + */ + /** + * Sample code: Continue update cluster version. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + continueUpdateClusterVersion(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusters() + .continueUpdateVersion("resourceGroupName", "clusterName", + new ClusterContinueUpdateVersionParameters() + .withMachineGroupTargetingMode(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java index df11b2cbd3f0f..f48517d11fa60 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersCreateOrUpdateSamples.java @@ -6,12 +6,24 @@ import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; import com.azure.resourcemanager.networkcloud.models.ClusterType; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; +import com.azure.resourcemanager.networkcloud.models.IdentitySelector; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; @@ -19,138 +31,127 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Clusters CreateOrUpdate. */ +/** + * Samples for Clusters CreateOrUpdate. + */ public final class ClustersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Create.json */ /** * Sample code: Create or update cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() + manager.clusters() .define("clusterName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") - .withType("CustomLocation")) - .withAggregatorOrSingleRackDefinition( - new RackDefinition() - .withBareMetalMachineConfigurationData( - Arrays - .asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") - .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) - .withNetworkRackId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") - .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") - .withRackSerialNumber("AA1234") - .withRackSkuId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData( - Arrays - .asList( - new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName")))) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") + .withType("CustomLocation")) + .withAggregatorOrSingleRackDefinition(new RackDefinition() + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData().withBmcCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) + .withNetworkRackId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") + .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") + .withRackSerialNumber("AA1234") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withRackSlot(1L) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName")))) .withClusterType(ClusterType.SINGLE_RACK) .withClusterVersion("1.0.0") .withNetworkFabricId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + new UserAssignedIdentity()))) .withAnalyticsWorkspaceId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName") .withClusterLocation("Foo Street, 3rd Floor, row 9") .withClusterServicePrincipal( - new ServicePrincipalInformation() - .withApplicationId("12345678-1234-1234-1234-123456789012") + new ServicePrincipalInformation().withApplicationId("12345678-1234-1234-1234-123456789012") .withPassword("fakeTokenPlaceholder") .withPrincipalId("00000008-0004-0004-0004-000000000012") .withTenantId("80000000-4000-4000-4000-120000000000")) + .withCommandOutputSettings(new CommandOutputSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1")) + .withContainerUrl("https://myaccount.blob.core.windows.net/mycontainer?restype=container")) .withComputeDeploymentThreshold( - new ValidationThreshold() - .withGrouping(ValidationThresholdGrouping.PER_CLUSTER) + new ValidationThreshold().withGrouping(ValidationThresholdGrouping.PER_CLUSTER) .withType(ValidationThresholdType.PERCENT_SUCCESS) .withValue(90L)) - .withComputeRackDefinitions( - Arrays - .asList( - new RackDefinition() - .withBareMetalMachineConfigurationData( - Arrays - .asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") - .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) - .withNetworkRackId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") - .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") - .withRackSerialNumber("AA1234") - .withRackSkuId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData( - Arrays - .asList( - new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName"))))) + .withComputeRackDefinitions(Arrays.asList(new RackDefinition() + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData().withBmcCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) + .withNetworkRackId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") + .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") + .withRackSerialNumber("AA1234") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials( + new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("username")) + .withRackSlot(1L) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName"))))) .withManagedResourceGroupConfiguration( new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) + .withRuntimeProtectionConfiguration( + new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND)) + .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") + .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .withUpdateStrategy(new ClusterUpdateStrategy().withMaxUnavailable(4L) + .withStrategyType(ClusterUpdateStrategyType.RACK) + .withThresholdType(ValidationThresholdType.COUNT_SUCCESS) + .withThresholdValue(4L) + .withWaitTimeMinutes(10L)) .create(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java index 85ee29feb97bf..1dad5dce90940 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Clusters Delete. */ +/** + * Samples for Clusters Delete. + */ public final class ClustersDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Delete.json */ /** * Sample code: Delete cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java index 9c825b19ba1a0..6ba036921bb5c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeploySamples.java @@ -7,38 +7,40 @@ import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; import java.util.Arrays; -/** Samples for Clusters Deploy. */ +/** + * Samples for Clusters Deploy. + */ public final class ClustersDeploySamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Deploy.json */ /** * Sample code: Deploy cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deployCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() - .deploy( - "resourceGroupName", "clusterName", new ClusterDeployParameters(), com.azure.core.util.Context.NONE); + manager.clusters() + .deploy("resourceGroupName", "clusterName", new ClusterDeployParameters(), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Deploy_SkipValidation.json */ /** * Sample code: Deploy cluster skipping validation. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deployClusterSkippingValidation( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() - .deploy( - "resourceGroupName", - "clusterName", + public static void + deployClusterSkippingValidation(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusters() + .deploy("resourceGroupName", "clusterName", new ClusterDeployParameters().withSkipValidationsForMachines(Arrays.asList("bmmName1")), com.azure.core.util.Context.NONE); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java index 61c24559c2b0a..b1eaa5e8eb475 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersGetByResourceGroupSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Clusters GetByResourceGroup. */ +/** + * Samples for Clusters GetByResourceGroup. + */ public final class ClustersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Get.json */ /** * Sample code: Get cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() + manager.clusters() .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java index ad1772a28588b..aaeffd6f20575 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Clusters ListByResourceGroup. */ +/** + * Samples for Clusters ListByResourceGroup. + */ public final class ClustersListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ListByResourceGroup.json */ /** * Sample code: List clusters for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listClustersForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listClustersForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.clusters().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java index 6ee6609d1d9b8..3fb9f4db1a5d0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Clusters List. */ +/** + * Samples for Clusters List. + */ public final class ClustersListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ListBySubscription.json */ /** * Sample code: List clusters for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listClustersForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java new file mode 100644 index 0000000000000..c330c8c90a91c --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersScanRuntimeSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParametersScanActivity; + +/** + * Samples for Clusters ScanRuntime. + */ +public final class ClustersScanRuntimeSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_ScanRuntime.json + */ + /** + * Sample code: Execute a runtime protection scan on the cluster. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + executeARuntimeProtectionScanOnTheCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.clusters() + .scanRuntime("resourceGroupName", "clusterName", + new ClusterScanRuntimeParameters().withScanActivity(ClusterScanRuntimeParametersScanActivity.SCAN), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java index 904c2b4b3aff2..b2f9738584b79 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateSamples.java @@ -7,8 +7,20 @@ import com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials; import com.azure.resourcemanager.networkcloud.models.BareMetalMachineConfigurationData; import com.azure.resourcemanager.networkcloud.models.Cluster; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive; +import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchiveEnabled; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; +import com.azure.resourcemanager.networkcloud.models.IdentitySelector; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import com.azure.resourcemanager.networkcloud.models.RackDefinition; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; import com.azure.resourcemanager.networkcloud.models.StorageApplianceConfigurationData; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import com.azure.resourcemanager.networkcloud.models.ValidationThreshold; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdGrouping; import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; @@ -16,99 +28,186 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Clusters Update. */ +/** + * Samples for Clusters Update. + */ public final class ClustersUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_UpdateStrategy.json + */ + /** + * Sample code: Patch update strategy. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchUpdateStrategy(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withUpdateStrategy(new ClusterUpdateStrategy().withMaxUnavailable(4L) + .withStrategyType(ClusterUpdateStrategyType.RACK) + .withThresholdType(ValidationThresholdType.COUNT_SUCCESS) + .withThresholdValue(4L) + .withWaitTimeMinutes(10L)) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_Location.json */ /** * Sample code: Patch cluster location. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchClusterLocation(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Cluster resource = - manager - .clusters() - .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withClusterLocation("Foo Street, 3rd Floor, row 9") .apply(); } /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_AggregatorOrSingleRackDefinition.json */ /** * Sample code: Patch cluster AggregatorOrSingleRackDefinition. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchClusterAggregatorOrSingleRackDefinition( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Cluster resource = - manager - .clusters() - .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withAggregatorOrSingleRackDefinition( new RackDefinition() - .withBareMetalMachineConfigurationData( - Arrays - .asList( - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:FF") - .withBootMacAddress("00:BB:CC:DD:EE:FF") - .withMachineDetails("extraDetails") - .withMachineName("bmmName1") - .withRackSlot(1L) - .withSerialNumber("BM1219XXX"), - new BareMetalMachineConfigurationData() - .withBmcCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withBmcMacAddress("AA:BB:CC:DD:EE:00") - .withBootMacAddress("00:BB:CC:DD:EE:00") - .withMachineDetails("extraDetails") - .withMachineName("bmmName2") - .withRackSlot(2L) - .withSerialNumber("BM1219YYY"))) + .withBareMetalMachineConfigurationData(Arrays.asList( + new BareMetalMachineConfigurationData() + .withBmcCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:FF") + .withBootMacAddress("00:BB:CC:DD:EE:FF") + .withMachineDetails("extraDetails") + .withMachineName("bmmName1") + .withRackSlot(1L) + .withSerialNumber("BM1219XXX"), + new BareMetalMachineConfigurationData() + .withBmcCredentials( + new AdministrativeCredentials() + .withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withBmcMacAddress("AA:BB:CC:DD:EE:00") + .withBootMacAddress("00:BB:CC:DD:EE:00") + .withMachineDetails("extraDetails") + .withMachineName("bmmName2") + .withRackSlot(2L) + .withSerialNumber("BM1219YYY"))) .withNetworkRackId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName") .withRackLocation("Foo Datacenter, Floor 3, Aisle 9, Rack 2") .withRackSerialNumber("newSerialNumber") .withRackSkuId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") - .withStorageApplianceConfigurationData( - Arrays - .asList( - new StorageApplianceConfigurationData() - .withAdminCredentials( - new AdministrativeCredentials() - .withPassword("fakeTokenPlaceholder") - .withUsername("username")) - .withRackSlot(1L) - .withSerialNumber("BM1219XXX") - .withStorageApplianceName("vmName")))) + .withStorageApplianceConfigurationData(Arrays.asList(new StorageApplianceConfigurationData() + .withAdminCredentials(new AdministrativeCredentials().withPassword("fakeTokenPlaceholder") + .withUsername("username")) + .withRackSlot(1L) + .withSerialNumber("BM1219XXX") + .withStorageApplianceName("vmName")))) .withComputeDeploymentThreshold( - new ValidationThreshold() - .withGrouping(ValidationThresholdGrouping.PER_CLUSTER) + new ValidationThreshold().withGrouping(ValidationThresholdGrouping.PER_CLUSTER) .withType(ValidationThresholdType.PERCENT_SUCCESS) .withValue(90L)) .apply(); } + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_CommandOutput.json + */ + /** + * Sample code: Patch cluster command output. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchClusterCommandOutput(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + null, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + new UserAssignedIdentity()))) + .withCommandOutputSettings(new CommandOutputSettings().withAssociatedIdentity(new IdentitySelector() + .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2")) + .withContainerUrl("https://myaccount.blob.core.windows.net/mycontainer?restype=container")) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_RuntimeProtectionConfiguration.json + */ + /** + * Sample code: Patch runtime protection configuration. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + patchRuntimeProtectionConfiguration(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withRuntimeProtectionConfiguration( + new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.ON_DEMAND)) + .apply(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_Patch_SecretArchive.json + */ + /** + * Sample code: Patch secret archive. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void patchSecretArchive(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withSecretArchive(new ClusterSecretArchive().withKeyVaultId("fakeTokenPlaceholder") + .withUseKeyVault(ClusterSecretArchiveEnabled.TRUE)) + .apply(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java index 0938646d0114d..a7458b185b73f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionSamples.java @@ -6,23 +6,23 @@ import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; -/** Samples for Clusters UpdateVersion. */ +/** + * Samples for Clusters UpdateVersion. + */ public final class ClustersUpdateVersionSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Clusters_UpdateVersion.json */ /** * Sample code: Update cluster version. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void updateClusterVersion(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .clusters() - .updateVersion( - "resourceGroupName", - "clusterName", - new ClusterUpdateVersionParameters().withTargetClusterVersion("2.0"), - com.azure.core.util.Context.NONE); + manager.clusters() + .updateVersion("resourceGroupName", "clusterName", + new ClusterUpdateVersionParameters().withTargetClusterVersion("2.0"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java index 17f53f2276cd7..59a4a7a892af5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesCreateOrUpdateSamples.java @@ -11,28 +11,29 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Consoles CreateOrUpdate. */ +/** + * Samples for Consoles CreateOrUpdate. + */ public final class ConsolesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Create.json */ /** * Sample code: Create or update virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateVirtualMachineConsole( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + public static void + createOrUpdateVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.consoles() .define("default") .withRegion("location") .withExistingVirtualMachine("resourceGroupName", "virtualMachineName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName") + .withType("CustomLocation")) .withEnabled(ConsoleEnabled.TRUE) .withSshPublicKey(new SshPublicKey().withKeyData("fakeTokenPlaceholder")) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java index 045aa6ff63f69..293fd27334e35 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Consoles Delete. */ +/** + * Samples for Consoles Delete. + */ public final class ConsolesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Delete.json */ /** * Sample code: Delete virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + manager.consoles() .delete("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java index 132e5ecaf661c..ecc8924b4a1bc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesGetSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Consoles Get. */ +/** + * Samples for Consoles Get. + */ public final class ConsolesGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Get.json */ /** * Sample code: Get virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + manager.consoles() .getWithResponse("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java index cbd6a0a7fb890..bb379943671d2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesListByVirtualMachineSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Consoles ListByVirtualMachine. */ +/** + * Samples for Consoles ListByVirtualMachine. + */ public final class ConsolesListByVirtualMachineSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_ListByVirtualMachine.json */ /** * Sample code: List consoles of the virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listConsolesOfTheVirtualMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .consoles() + public static void + listConsolesOfTheVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.consoles() .listByVirtualMachine("resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java index 87c860cf5085d..b0236f90fc2a5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/ConsolesUpdateSamples.java @@ -11,24 +11,25 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Consoles Update. */ +/** + * Samples for Consoles Update. + */ public final class ConsolesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Consoles_Patch.json */ /** * Sample code: Patch virtual machine console. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchVirtualMachineConsole(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Console resource = - manager - .consoles() - .getWithResponse("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Console resource = manager.consoles() + .getWithResponse("resourceGroupName", "virtualMachineName", "default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withEnabled(ConsoleEnabled.TRUE) .withExpiration(OffsetDateTime.parse("2022-06-01T01:27:03.008Z")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..193c6eaf24857 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesCreateOrUpdateSamples.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for KubernetesClusterFeatures CreateOrUpdate. + */ +public final class KubernetesClusterFeaturesCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Create.json + */ + /** + * Sample code: Create or update Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + createOrUpdateKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .define("featureName") + .withRegion("location") + .withExistingKubernetesCluster("resourceGroupName", "kubernetesClusterName") + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withOptions( + Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("featureOptionValue"))) + .create(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java new file mode 100644 index 0000000000000..bee647bebc48a --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +/** + * Samples for KubernetesClusterFeatures Delete. + */ +public final class KubernetesClusterFeaturesDeleteSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Delete.json + */ + /** + * Sample code: Delete Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + deleteKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .delete("resourceGroupName", "kubernetesClusterName", "featureName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java new file mode 100644 index 0000000000000..3c4da68720bf4 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +/** + * Samples for KubernetesClusterFeatures Get. + */ +public final class KubernetesClusterFeaturesGetSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Get.json + */ + /** + * Sample code: Get Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void getKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "featureName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java new file mode 100644 index 0000000000000..d9c00d9617189 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesListByKubernetesClusterSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +/** + * Samples for KubernetesClusterFeatures ListByKubernetesCluster. + */ +public final class KubernetesClusterFeaturesListByKubernetesClusterSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_ListByKubernetesCluster.json + */ + /** + * Sample code: List features for the Kubernetes cluster. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + listFeaturesForTheKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusterFeatures() + .listByKubernetesCluster("resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java new file mode 100644 index 0000000000000..ff5169500d1cb --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterFeaturesUpdateSamples.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeature; +import com.azure.resourcemanager.networkcloud.models.StringKeyValuePair; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for KubernetesClusterFeatures Update. + */ +public final class KubernetesClusterFeaturesUpdateSamples { + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusterFeatures_Patch.json + */ + /** + * Sample code: Patch Kubernetes cluster feature. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void + patchKubernetesClusterFeature(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + KubernetesClusterFeature resource = manager.kubernetesClusterFeatures() + .getWithResponse("resourceGroupName", "kubernetesClusterName", "featureName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withOptions( + Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("featureOptionValue"))) + .apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java index 6b171277e011b..720fb01978256 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersCreateOrUpdateSamples.java @@ -24,6 +24,7 @@ import com.azure.resourcemanager.networkcloud.models.KubernetesLabel; import com.azure.resourcemanager.networkcloud.models.KubernetesPluginType; import com.azure.resourcemanager.networkcloud.models.L2NetworkAttachmentConfiguration; +import com.azure.resourcemanager.networkcloud.models.L2ServiceLoadBalancerConfiguration; import com.azure.resourcemanager.networkcloud.models.L3NetworkAttachmentConfiguration; import com.azure.resourcemanager.networkcloud.models.L3NetworkConfigurationIpamEnabled; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; @@ -35,155 +36,190 @@ import java.util.HashMap; import java.util.Map; -/** Samples for KubernetesClusters CreateOrUpdate. */ +/** + * Samples for KubernetesClusters CreateOrUpdate. + */ public final class KubernetesClustersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Create.json */ /** * Sample code: Create or update Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateKubernetesCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() + public static void + createOrUpdateKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusters() .define("kubernetesClusterName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) - .withControlPlaneNodeConfiguration( - new ControlPlaneNodeConfiguration() - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") - .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) - .withAvailabilityZones(Arrays.asList("1", "2", "3")) - .withCount(3L) - .withVmSkuName("NC_G4_v1")) - .withInitialAgentPoolConfigurations( - Arrays - .asList( - new InitialAgentPoolConfiguration() - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") - .withSshPublicKeys( - Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) - .withAgentOptions( - new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) - .withAttachedNetworkConfiguration( - new AttachedNetworkConfiguration() - .withL2Networks( - Arrays - .asList( - new L2NetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") - .withPluginType(KubernetesPluginType.DPDK))) - .withL3Networks( - Arrays - .asList( - new L3NetworkAttachmentConfiguration() - .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withPluginType(KubernetesPluginType.SRIOV))) - .withTrunkedNetworks( - Arrays - .asList( - new TrunkedNetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") - .withPluginType(KubernetesPluginType.MACVLAN)))) - .withAvailabilityZones(Arrays.asList("1", "2", "3")) - .withCount(3L) - .withLabels( - Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) - .withMode(AgentPoolMode.SYSTEM) - .withName("SystemPool-1") - .withTaints( - Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) - .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) - .withVmSkuName("NC_M16_v1"))) - .withKubernetesVersion("1.24.12-1") - .withNetworkConfiguration( - new NetworkConfiguration() - .withAttachedNetworkConfiguration( - new AttachedNetworkConfiguration() - .withL2Networks( - Arrays - .asList( - new L2NetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") - .withPluginType(KubernetesPluginType.DPDK))) - .withL3Networks( - Arrays - .asList( - new L3NetworkAttachmentConfiguration() - .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withPluginType(KubernetesPluginType.SRIOV))) - .withTrunkedNetworks( - Arrays - .asList( - new TrunkedNetworkAttachmentConfiguration() - .withNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") - .withPluginType(KubernetesPluginType.MACVLAN)))) - .withBgpServiceLoadBalancerConfiguration( - new BgpServiceLoadBalancerConfiguration() - .withBgpAdvertisements( - Arrays - .asList( - new BgpAdvertisement() - .withAdvertiseToFabric(AdvertiseToFabric.TRUE) - .withCommunities(Arrays.asList("64512:100")) - .withIpAddressPools(Arrays.asList("pool1")) - .withPeers(Arrays.asList("peer1")))) - .withBgpPeers( - Arrays - .asList( - new ServiceLoadBalancerBgpPeer() - .withBfdEnabled(BfdEnabled.FALSE) - .withBgpMultiHop(BgpMultiHop.FALSE) - .withHoldTime("P300s") - .withKeepAliveTime("P300s") - .withMyAsn(64512L) - .withName("peer1") - .withPeerAddress("203.0.113.254") - .withPeerAsn(64497L) - .withPeerPort(179L))) - .withFabricPeeringEnabled(FabricPeeringEnabled.TRUE) - .withIpAddressPools( - Arrays - .asList( - new IpAddressPool() - .withAddresses(Arrays.asList("198.51.102.0/24")) - .withAutoAssign(BfdEnabled.TRUE) - .withName("pool1") - .withOnlyUseHostIps(BfdEnabled.TRUE)))) - .withCloudServicesNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") - .withCniNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withDnsServiceIp("198.51.101.2") - .withPodCidrs(Arrays.asList("198.51.100.0/24")) - .withServiceCidrs(Arrays.asList("198.51.101.0/24"))) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withControlPlaneNodeConfiguration(new ControlPlaneNodeConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withVmSkuName("NC_XXXX")) + .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAgentOptions(new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withMode(AgentPoolMode.SYSTEM) + .withName("SystemPool-1") + .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) + .withVmSkuName("NC_XXXX"))) + .withKubernetesVersion("1.XX.Y") + .withNetworkConfiguration(new NetworkConfiguration() + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withBgpServiceLoadBalancerConfiguration(new BgpServiceLoadBalancerConfiguration() + .withBgpAdvertisements( + Arrays.asList(new BgpAdvertisement().withAdvertiseToFabric(AdvertiseToFabric.TRUE) + .withCommunities(Arrays.asList("64512:100")) + .withIpAddressPools(Arrays.asList("pool1")) + .withPeers(Arrays.asList("peer1")))) + .withBgpPeers(Arrays.asList(new ServiceLoadBalancerBgpPeer().withBfdEnabled(BfdEnabled.FALSE) + .withBgpMultiHop(BgpMultiHop.FALSE) + .withHoldTime("P300s") + .withKeepAliveTime("P300s") + .withMyAsn(64512L) + .withName("peer1") + .withPeerAddress("203.0.113.254") + .withPeerAsn(64497L) + .withPeerPort(179L))) + .withFabricPeeringEnabled(FabricPeeringEnabled.TRUE) + .withIpAddressPools( + Arrays.asList(new IpAddressPool().withAddresses(Arrays.asList("198.51.102.0/24")) + .withAutoAssign(BfdEnabled.TRUE) + .withName("pool1") + .withOnlyUseHostIps(BfdEnabled.TRUE)))) + .withCloudServicesNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") + .withCniNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withDnsServiceIp("198.51.101.2") + .withPodCidrs(Arrays.asList("198.51.100.0/24")) + .withServiceCidrs(Arrays.asList("198.51.101.0/24"))) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withAadConfiguration( new AadConfiguration().withAdminGroupObjectIds(Arrays.asList("ffffffff-ffff-ffff-ffff-ffffffffffff"))) - .withAdministratorConfiguration( - new AdministratorConfiguration() - .withAdminUsername("azure") + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withManagedResourceGroupConfiguration( + new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) + .create(); + } + + /* + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_L2LoadBalancer_Create.json + */ + /** + * Sample code: Create or update Kubernetes cluster with a layer 2 load balancer. + * + * @param manager Entry point to NetworkCloudManager. + */ + public static void createOrUpdateKubernetesClusterWithALayer2LoadBalancer( + com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusters() + .define("kubernetesClusterName") + .withRegion("location") + .withExistingResourceGroup("resourceGroupName") + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withControlPlaneNodeConfiguration(new ControlPlaneNodeConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withVmSkuName("NC_XXXX")) + .withInitialAgentPoolConfigurations(Arrays.asList(new InitialAgentPoolConfiguration() + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withAgentOptions(new AgentOptions().withHugepagesCount(96L).withHugepagesSize(HugepagesSize.ONEG)) + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withCount(3L) + .withLabels(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withMode(AgentPoolMode.SYSTEM) + .withName("SystemPool-1") + .withTaints(Arrays.asList(new KubernetesLabel().withKey("fakeTokenPlaceholder").withValue("true"))) + .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("1")) + .withVmSkuName("NC_XXXX"))) + .withKubernetesVersion("1.XX.Y") + .withNetworkConfiguration(new NetworkConfiguration() + .withAttachedNetworkConfiguration(new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName") + .withPluginType(KubernetesPluginType.DPDK))) + .withL3Networks(Arrays.asList(new L3NetworkAttachmentConfiguration() + .withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withPluginType(KubernetesPluginType.SRIOV))) + .withTrunkedNetworks(Arrays.asList(new TrunkedNetworkAttachmentConfiguration().withNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName") + .withPluginType(KubernetesPluginType.MACVLAN)))) + .withCloudServicesNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") + .withCniNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withDnsServiceIp("198.51.101.2") + .withL2ServiceLoadBalancerConfiguration(new L2ServiceLoadBalancerConfiguration().withIpAddressPools( + Arrays.asList(new IpAddressPool().withAddresses(Arrays.asList("198.51.102.2-198.51.102.254")) + .withAutoAssign(BfdEnabled.TRUE) + .withName("pool1")))) + .withPodCidrs(Arrays.asList("198.51.100.0/24")) + .withServiceCidrs(Arrays.asList("198.51.101.0/24"))) + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withAadConfiguration( + new AadConfiguration().withAdminGroupObjectIds(Arrays.asList("ffffffff-ffff-ffff-ffff-ffffffffffff"))) + .withAdministratorConfiguration(new AdministratorConfiguration().withAdminUsername("azure") + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) .withManagedResourceGroupConfiguration( new ManagedResourceGroupConfiguration().withLocation("East US").withName("my-managed-rg")) .create(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java index f47db7ee74506..2c77946d04b6e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for KubernetesClusters Delete. */ +/** + * Samples for KubernetesClusters Delete. + */ public final class KubernetesClustersDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Delete.json */ /** * Sample code: Delete Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() + manager.kubernetesClusters() .delete("resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java index c41ec7b6eeb98..59e2bc5178968 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for KubernetesClusters GetByResourceGroup. */ +/** + * Samples for KubernetesClusters GetByResourceGroup. + */ public final class KubernetesClustersGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Get.json */ /** * Sample code: Get Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() - .getByResourceGroupWithResponse( - "resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE); + manager.kubernetesClusters() + .getByResourceGroupWithResponse("resourceGroupName", "kubernetesClusterName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java index 0b09f1484f412..3b5fced0f5d92 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for KubernetesClusters ListByResourceGroup. */ +/** + * Samples for KubernetesClusters ListByResourceGroup. + */ public final class KubernetesClustersListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_ListByResourceGroup.json */ /** * Sample code: List Kubernetes clusters for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listKubernetesClustersForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listKubernetesClustersForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.kubernetesClusters().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java index 215dc16d202c2..b79ba2a10c730 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for KubernetesClusters List. */ +/** + * Samples for KubernetesClusters List. + */ public final class KubernetesClustersListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_ListBySubscription.json */ /** * Sample code: List Kubernetes clusters for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listKubernetesClustersForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listKubernetesClustersForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.kubernetesClusters().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java index 1a7d5729ab356..228ee4b523957 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeSamples.java @@ -6,23 +6,24 @@ import com.azure.resourcemanager.networkcloud.models.KubernetesClusterRestartNodeParameters; -/** Samples for KubernetesClusters RestartNode. */ +/** + * Samples for KubernetesClusters RestartNode. + */ public final class KubernetesClustersRestartNodeSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_RestartNode.json */ /** * Sample code: Restart a Kubernetes cluster node. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void restartAKubernetesClusterNode( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .kubernetesClusters() - .restartNode( - "resourceGroupName", - "kubernetesClusterName", + public static void + restartAKubernetesClusterNode(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.kubernetesClusters() + .restartNode("resourceGroupName", "kubernetesClusterName", new KubernetesClusterRestartNodeParameters().withNodeName("nodeName"), com.azure.core.util.Context.NONE); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java index 15a182f781112..cbbff2ab4e645 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersUpdateSamples.java @@ -4,33 +4,42 @@ package com.azure.resourcemanager.networkcloud.generated; +import com.azure.resourcemanager.networkcloud.models.AdministratorConfigurationPatch; import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodePatchConfiguration; import com.azure.resourcemanager.networkcloud.models.KubernetesCluster; +import com.azure.resourcemanager.networkcloud.models.SshPublicKey; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for KubernetesClusters Update. */ +/** + * Samples for KubernetesClusters Update. + */ public final class KubernetesClustersUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * KubernetesClusters_Patch.json */ /** * Sample code: Patch Kubernetes cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchKubernetesCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - KubernetesCluster resource = - manager - .kubernetesClusters() - .getByResourceGroupWithResponse( - "resourceGroupName", "kubernetesClusterName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + KubernetesCluster resource = manager.kubernetesClusters() + .getByResourceGroupWithResponse("resourceGroupName", "kubernetesClusterName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withControlPlaneNodeConfiguration(new ControlPlaneNodePatchConfiguration().withCount(3L)) - .withKubernetesVersion("1.24.12") + .withAdministratorConfiguration(new AdministratorConfigurationPatch() + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withControlPlaneNodeConfiguration(new ControlPlaneNodePatchConfiguration() + .withAdministratorConfiguration(new AdministratorConfigurationPatch() + .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder")))) + .withCount(3L)) + .withKubernetesVersion("1.XX.Y") .apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java index 9a1c37e150608..73904034051a8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateSamples.java @@ -9,27 +9,28 @@ import java.util.HashMap; import java.util.Map; -/** Samples for L2Networks CreateOrUpdate. */ +/** + * Samples for L2Networks CreateOrUpdate. + */ public final class L2NetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Create.json */ /** * Sample code: Create or update L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l2Networks() + manager.l2Networks() .define("l2NetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withL2IsolationDomainId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java index 97df7f0a4bf5e..16573f649bd94 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L2Networks Delete. */ +/** + * Samples for L2Networks Delete. + */ public final class L2NetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Delete.json */ /** * Sample code: Delete L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java index f3512e04089d0..2224dc3f679e0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L2Networks GetByResourceGroup. */ +/** + * Samples for L2Networks GetByResourceGroup. + */ public final class L2NetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Get.json */ /** * Sample code: Get L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l2Networks() + manager.l2Networks() .getByResourceGroupWithResponse("resourceGroupName", "l2NetworkName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java index 017a1b561fe12..b56af27dba6f2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L2Networks ListByResourceGroup. */ +/** + * Samples for L2Networks ListByResourceGroup. + */ public final class L2NetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_ListByResourceGroup.json */ /** * Sample code: List L2 networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL2NetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL2NetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l2Networks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java index ae4b1816f0325..d02f88c57eba6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L2Networks List. */ +/** + * Samples for L2Networks List. + */ public final class L2NetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_ListBySubscription.json */ /** * Sample code: List L2 networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL2NetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL2NetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l2Networks().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java index 8458439d5afe1..57b8da64b21d6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksUpdateSamples.java @@ -8,22 +8,24 @@ import java.util.HashMap; import java.util.Map; -/** Samples for L2Networks Update. */ +/** + * Samples for L2Networks Update. + */ public final class L2NetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L2Networks_Patch.json */ /** * Sample code: Patch L2 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchL2Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - L2Network resource = - manager - .l2Networks() - .getByResourceGroupWithResponse("resourceGroupName", "l2NetworkName", com.azure.core.util.Context.NONE) - .getValue(); + L2Network resource = manager.l2Networks() + .getByResourceGroupWithResponse("resourceGroupName", "l2NetworkName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java index 409a519193c96..b8f4f65b76ebd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateSamples.java @@ -9,27 +9,28 @@ import java.util.HashMap; import java.util.Map; -/** Samples for L3Networks CreateOrUpdate. */ +/** + * Samples for L3Networks CreateOrUpdate. + */ public final class L3NetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Create.json */ /** * Sample code: Create or update L3 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateL3Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l3Networks() + manager.l3Networks() .define("l3NetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withL3IsolationDomainId( "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName") .withVlan(12L) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java index 9535834a86087..e4aab59817a43 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L3Networks Delete. */ +/** + * Samples for L3Networks Delete. + */ public final class L3NetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Delete.json */ /** * Sample code: Delete L3 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteL3Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java index f7aeec13cd6cc..e61acb9f18a19 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L3Networks GetByResourceGroup. */ +/** + * Samples for L3Networks GetByResourceGroup. + */ public final class L3NetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Get.json */ /** * Sample code: Get L3network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getL3network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .l3Networks() + manager.l3Networks() .getByResourceGroupWithResponse("resourceGroupName", "l3NetworkName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java index 0b48f86ace69d..e9eaa95794f41 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L3Networks ListByResourceGroup. */ +/** + * Samples for L3Networks ListByResourceGroup. + */ public final class L3NetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_ListByResourceGroup.json */ /** * Sample code: List L3 networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL3NetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL3NetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l3Networks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java index 5691d390123f2..4f024a189fbce 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for L3Networks List. */ +/** + * Samples for L3Networks List. + */ public final class L3NetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_ListBySubscription.json */ /** * Sample code: List L3 networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listL3NetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listL3NetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.l3Networks().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java index 3005f618aec30..27628db4ae28d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksUpdateSamples.java @@ -8,22 +8,24 @@ import java.util.HashMap; import java.util.Map; -/** Samples for L3Networks Update. */ +/** + * Samples for L3Networks Update. + */ public final class L3NetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * L3Networks_Patch.json */ /** * Sample code: Patch L3 network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchL3Network(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - L3Network resource = - manager - .l3Networks() - .getByResourceGroupWithResponse("resourceGroupName", "l3NetworkName", com.azure.core.util.Context.NONE) - .getValue(); + L3Network resource = manager.l3Networks() + .getByResourceGroupWithResponse("resourceGroupName", "l3NetworkName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java index dc8bb78529763..67a1a4c1a64f7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateSamples.java @@ -9,28 +9,29 @@ import java.util.HashMap; import java.util.Map; -/** Samples for MetricsConfigurations CreateOrUpdate. */ +/** + * Samples for MetricsConfigurations CreateOrUpdate. + */ public final class MetricsConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Create.json */ /** * Sample code: Create or update metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateMetricsConfigurationOfCluster( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + manager.metricsConfigurations() .define("default") .withRegion("location") .withExistingCluster("resourceGroupName", "clusterName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withCollectionInterval(15L) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withEnabledMetrics(Arrays.asList("metric1", "metric2")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java index 5e0a86046b2a8..c0899ad042a5b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for MetricsConfigurations Delete. */ +/** + * Samples for MetricsConfigurations Delete. + */ public final class MetricsConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Delete.json */ /** * Sample code: Delete metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void deleteMetricsConfigurationOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + public static void + deleteMetricsConfigurationOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.metricsConfigurations() .delete("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java index 07550fd200530..21199c14e02b6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for MetricsConfigurations Get. */ +/** + * Samples for MetricsConfigurations Get. + */ public final class MetricsConfigurationsGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Get.json */ /** * Sample code: Get metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void getMetricsConfigurationOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + public static void + getMetricsConfigurationOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.metricsConfigurations() .getWithResponse("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java index 0493fef8a5b77..87395b1106713 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for MetricsConfigurations ListByCluster. */ +/** + * Samples for MetricsConfigurations ListByCluster. + */ public final class MetricsConfigurationsListByClusterSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_ListByCluster.json */ /** * Sample code: List metrics configurations of the cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listMetricsConfigurationsOfTheCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .metricsConfigurations() + public static void + listMetricsConfigurationsOfTheCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.metricsConfigurations() .listByCluster("resourceGroupName", "clusterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java index b7b06125b83b6..e78dc095f2267 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsUpdateSamples.java @@ -9,25 +9,26 @@ import java.util.HashMap; import java.util.Map; -/** Samples for MetricsConfigurations Update. */ +/** + * Samples for MetricsConfigurations Update. + */ public final class MetricsConfigurationsUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * ClusterMetricsConfigurations_Patch.json */ /** * Sample code: Patch metrics configuration of cluster. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void patchMetricsConfigurationOfCluster( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - ClusterMetricsConfiguration resource = - manager - .metricsConfigurations() - .getWithResponse("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + public static void + patchMetricsConfigurationOfCluster(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + ClusterMetricsConfiguration resource = manager.metricsConfigurations() + .getWithResponse("resourceGroupName", "clusterName", "default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withCollectionInterval(15L) .withEnabledMetrics(Arrays.asList("metric1", "metric2")) diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java index 625bc0b795e3b..eae38b4d6bba6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/OperationsListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Operations_List.json */ /** * Sample code: List resource provider operations. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listResourceProviderOperations( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listResourceProviderOperations(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java index b24fb8ce4046d..0916178b5e2c8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for RackSkus Get. */ +/** + * Samples for RackSkus Get. + */ public final class RackSkusGetSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * RackSkus_Get.json */ /** * Sample code: Get rack SKU resource. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getRackSKUResource(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java index 247bb8050faed..f9e02040cdba4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for RackSkus List. */ +/** + * Samples for RackSkus List. + */ public final class RackSkusListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * RackSkus_ListBySubscription.json */ /** * Sample code: List rack SKUs for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listRackSKUsForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java index 37a649ecf8221..fd2e334ed294d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateSamples.java @@ -8,31 +8,33 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Racks CreateOrUpdate. */ +/** + * Samples for Racks CreateOrUpdate. + */ public final class RacksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_Create.json */ /** * Sample code: Create or update rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .racks() + manager.racks() .define("rackName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAvailabilityZone("1") .withRackLocation("Rack 28") .withRackSerialNumber("RACK_SERIAL_NUMBER") - .withRackSkuId("RACK-TYPE-1") + .withRackSkuId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .create(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java index 60adb7422d776..96b0ad12399fe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Racks Delete. */ +/** + * Samples for Racks Delete. + */ public final class RacksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_Delete.json */ /** * Sample code: Delete rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java index d1dfd59875c3b..c097254f575ea 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Racks GetByResourceGroup. */ +/** + * Samples for Racks GetByResourceGroup. + */ public final class RacksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get. + * json */ /** * Sample code: Get rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .racks() + manager.racks() .getByResourceGroupWithResponse("resourceGroupName", "rackName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java index c4da2db731eff..f742f0c192aa0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Racks ListByResourceGroup. */ +/** + * Samples for Racks ListByResourceGroup. + */ public final class RacksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_ListByResourceGroup.json */ /** * Sample code: List racks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listRacksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java index 19eba23c15c88..795971b538715 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Racks List. */ +/** + * Samples for Racks List. + */ public final class RacksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_ListBySubscription.json */ /** * Sample code: List racks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listRacksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java index f845ca2d7a86d..2c001b2309b9a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/RacksUpdateSamples.java @@ -8,24 +8,25 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Racks Update. */ +/** + * Samples for Racks Update. + */ public final class RacksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Racks_Patch.json */ /** * Sample code: Patch rack. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchRack(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Rack resource = - manager - .racks() - .getByResourceGroupWithResponse("resourceGroupName", "rackName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + Rack resource = manager.racks() + .getByResourceGroupWithResponse("resourceGroupName", "rackName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withRackLocation("Rack 2B") .withRackSerialNumber("RACK_SERIAL_NUMBER") diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java index b80eaaacc0568..081fbf8b0f914 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesCreateOrUpdateSamples.java @@ -9,28 +9,29 @@ import java.util.HashMap; import java.util.Map; -/** Samples for StorageAppliances CreateOrUpdate. */ +/** + * Samples for StorageAppliances CreateOrUpdate. + */ public final class StorageAppliancesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Create.json */ /** * Sample code: Create or update storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateStorageAppliance( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() + public static void + createOrUpdateStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.storageAppliances() .define("storageApplianceName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAdministratorCredentials( new AdministrativeCredentials().withPassword("fakeTokenPlaceholder").withUsername("adminUser")) .withRackId( diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java index 4dec1140ad121..168a8db0ddc69 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for StorageAppliances Delete. */ +/** + * Samples for StorageAppliances Delete. + */ public final class StorageAppliancesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Delete.json */ /** * Sample code: Delete storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() + manager.storageAppliances() .delete("resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java index a3f3c3b9b118a..39bee69ce5c29 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementSamples.java @@ -4,21 +4,24 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for StorageAppliances DisableRemoteVendorManagement. */ +/** + * Samples for StorageAppliances DisableRemoteVendorManagement. + */ public final class StorageAppliancesDisableRemoteVendorManagementSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_DisableRemoteVendorManagement.json */ /** * Sample code: Turn off remote vendor management for storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void turnOffRemoteVendorManagementForStorageAppliance( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() - .disableRemoteVendorManagement( - "resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE); + manager.storageAppliances() + .disableRemoteVendorManagement("resourceGroupName", "storageApplianceName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java index 84c9000093e34..418415f742c5f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementSamples.java @@ -7,23 +7,24 @@ import com.azure.resourcemanager.networkcloud.models.StorageApplianceEnableRemoteVendorManagementParameters; import java.util.Arrays; -/** Samples for StorageAppliances EnableRemoteVendorManagement. */ +/** + * Samples for StorageAppliances EnableRemoteVendorManagement. + */ public final class StorageAppliancesEnableRemoteVendorManagementSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_EnableRemoteVendorManagement.json */ /** * Sample code: Turn on remote vendor management for storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void turnOnRemoteVendorManagementForStorageAppliance( com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() - .enableRemoteVendorManagement( - "resourceGroupName", - "storageApplianceName", + manager.storageAppliances() + .enableRemoteVendorManagement("resourceGroupName", "storageApplianceName", new StorageApplianceEnableRemoteVendorManagementParameters() .withSupportEndpoints(Arrays.asList("10.0.0.0/24")), com.azure.core.util.Context.NONE); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java index 46755b2ce7872..8c38f9ffd8614 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for StorageAppliances GetByResourceGroup. */ +/** + * Samples for StorageAppliances GetByResourceGroup. + */ public final class StorageAppliancesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Get.json */ /** * Sample code: Get storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .storageAppliances() - .getByResourceGroupWithResponse( - "resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE); + manager.storageAppliances() + .getByResourceGroupWithResponse("resourceGroupName", "storageApplianceName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java index fd1d44ba8c106..2401178370aad 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for StorageAppliances ListByResourceGroup. */ +/** + * Samples for StorageAppliances ListByResourceGroup. + */ public final class StorageAppliancesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_ListByResourceGroup.json */ /** * Sample code: List storage appliances for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listStorageAppliancesForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listStorageAppliancesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.storageAppliances().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java index c89c90ad78e59..0b9b8393bac27 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for StorageAppliances List. */ +/** + * Samples for StorageAppliances List. + */ public final class StorageAppliancesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_ListBySubscription.json */ /** * Sample code: List storage appliances for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listStorageAppliancesForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listStorageAppliancesForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.storageAppliances().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java index c3cafdabfe59d..95aa0ea89cdf7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesUpdateSamples.java @@ -8,25 +8,26 @@ import java.util.HashMap; import java.util.Map; -/** Samples for StorageAppliances Update. */ +/** + * Samples for StorageAppliances Update. + */ public final class StorageAppliancesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * StorageAppliances_Patch.json */ /** * Sample code: Patch storage appliance. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchStorageAppliance(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - StorageAppliance resource = - manager - .storageAppliances() - .getByResourceGroupWithResponse( - "resourceGroupName", "storageApplianceName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + StorageAppliance resource = manager.storageAppliances() + .getByResourceGroupWithResponse("resourceGroupName", "storageApplianceName", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withSerialNumber("BM1219XXX") .apply(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java index 719ac0082a134..4360a730e94ef 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateSamples.java @@ -9,33 +9,32 @@ import java.util.HashMap; import java.util.Map; -/** Samples for TrunkedNetworks CreateOrUpdate. */ +/** + * Samples for TrunkedNetworks CreateOrUpdate. + */ public final class TrunkedNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Create.json */ /** * Sample code: Create or update trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateTrunkedNetwork( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .trunkedNetworks() + public static void + createOrUpdateTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.trunkedNetworks() .define("trunkedNetworkName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) - .withIsolationDomainIds( - Arrays - .asList( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) + .withIsolationDomainIds(Arrays.asList( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName")) .withVlans(Arrays.asList(12L, 14L)) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withInterfaceName("eth0") diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java index af70af13e0299..69eb97a5f6287 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for TrunkedNetworks Delete. */ +/** + * Samples for TrunkedNetworks Delete. + */ public final class TrunkedNetworksDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Delete.json */ /** * Sample code: Delete trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java index 2d85d220c112a..e036c1c364071 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for TrunkedNetworks GetByResourceGroup. */ +/** + * Samples for TrunkedNetworks GetByResourceGroup. + */ public final class TrunkedNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Get.json */ /** * Sample code: Get Trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .trunkedNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "trunkedNetworkName", com.azure.core.util.Context.NONE); + manager.trunkedNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "trunkedNetworkName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java index 42d5a5b9d58a0..146e73ae89a5d 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for TrunkedNetworks ListByResourceGroup. */ +/** + * Samples for TrunkedNetworks ListByResourceGroup. + */ public final class TrunkedNetworksListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_ListByResourceGroup.json */ /** * Sample code: List Trunked networks for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listTrunkedNetworksForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listTrunkedNetworksForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.trunkedNetworks().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java index d33e5297a63c9..182087096e616 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for TrunkedNetworks List. */ +/** + * Samples for TrunkedNetworks List. + */ public final class TrunkedNetworksListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_ListBySubscription.json */ /** * Sample code: List trunked networks for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listTrunkedNetworksForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listTrunkedNetworksForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.trunkedNetworks().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java index 2e5e6fe295692..6e1385f6ace8a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksUpdateSamples.java @@ -8,23 +8,24 @@ import java.util.HashMap; import java.util.Map; -/** Samples for TrunkedNetworks Update. */ +/** + * Samples for TrunkedNetworks Update. + */ public final class TrunkedNetworksUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * TrunkedNetworks_Patch.json */ /** * Sample code: Patch trunked network. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchTrunkedNetwork(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - TrunkedNetwork resource = - manager - .trunkedNetworks() - .getByResourceGroupWithResponse( - "resourceGroupName", "trunkedNetworkName", com.azure.core.util.Context.NONE) - .getValue(); + TrunkedNetwork resource = manager.trunkedNetworks() + .getByResourceGroupWithResponse("resourceGroupName", "trunkedNetworkName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java index a0a607cefe8a3..cf54a362006ca 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesCreateOrUpdateSamples.java @@ -24,79 +24,64 @@ import java.util.HashMap; import java.util.Map; -/** Samples for VirtualMachines CreateOrUpdate. */ +/** + * Samples for VirtualMachines CreateOrUpdate. + */ public final class VirtualMachinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Create.json */ /** * Sample code: Create or update virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void createOrUpdateVirtualMachine( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .virtualMachines() + public static void + createOrUpdateVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + manager.virtualMachines() .define("virtualMachineName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withAdminUsername("username") - .withCloudServicesNetworkAttachment( - new NetworkAttachment() - .withAttachedNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") - .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC)) + .withCloudServicesNetworkAttachment(new NetworkAttachment().withAttachedNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName") + .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC)) .withCpuCores(2L) .withMemorySizeGB(8L) - .withStorageProfile( - new StorageProfile() - .withOsDisk( - new OsDisk() - .withCreateOption(OsDiskCreateOption.EPHEMERAL) - .withDeleteOption(OsDiskDeleteOption.DELETE) - .withDiskSizeGB(120L)) - .withVolumeAttachments( - Arrays - .asList( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName"))) + .withStorageProfile(new StorageProfile() + .withOsDisk(new OsDisk().withCreateOption(OsDiskCreateOption.EPHEMERAL) + .withDeleteOption(OsDiskDeleteOption.DELETE) + .withDiskSizeGB(120L)) + .withVolumeAttachments(Arrays.asList( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName"))) .withVmImage("myacr.azurecr.io/foobar:latest") .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .withBootMethod(VirtualMachineBootMethod.UEFI) - .withNetworkAttachments( - Arrays - .asList( - new NetworkAttachment() - .withAttachedNetworkId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") - .withDefaultGateway(DefaultGateway.TRUE) - .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC) - .withIpv4Address("198.51.100.1") - .withIpv6Address("2001:0db8:0000:0000:0000:0000:0000:0000") - .withNetworkAttachmentName("netAttachName01"))) + .withNetworkAttachments(Arrays.asList(new NetworkAttachment().withAttachedNetworkId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName") + .withDefaultGateway(DefaultGateway.TRUE) + .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DYNAMIC) + .withIpv4Address("198.51.100.1") + .withIpv6Address("2001:0db8:0000:0000:0000:0000:0000:0000") + .withNetworkAttachmentName("netAttachName01"))) .withNetworkData("bmV0d29ya0RhdGVTYW1wbGU=") - .withPlacementHints( - Arrays - .asList( - new VirtualMachinePlacementHint() - .withHintType(VirtualMachinePlacementHintType.AFFINITY) - .withResourceId( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName") - .withSchedulingExecution(VirtualMachineSchedulingExecution.HARD) - .withScope(VirtualMachinePlacementHintPodAffinityScope.fromString("")))) + .withPlacementHints(Arrays.asList(new VirtualMachinePlacementHint() + .withHintType(VirtualMachinePlacementHintType.AFFINITY) + .withResourceId( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName") + .withSchedulingExecution(VirtualMachineSchedulingExecution.HARD) + .withScope(VirtualMachinePlacementHintPodAffinityScope.fromString("")))) .withSshPublicKeys(Arrays.asList(new SshPublicKey().withKeyData("fakeTokenPlaceholder"))) .withUserData("dXNlckRhdGVTYW1wbGU=") .withVmDeviceModel(VirtualMachineDeviceModelType.T2) - .withVmImageRepositoryCredentials( - new ImageRepositoryCredentials() - .withPassword("fakeTokenPlaceholder") - .withRegistryUrl("myacr.azurecr.io") - .withUsername("myuser")) + .withVmImageRepositoryCredentials(new ImageRepositoryCredentials().withPassword("fakeTokenPlaceholder") + .withRegistryUrl("myacr.azurecr.io") + .withUsername("myuser")) .create(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java index f4ed4e8f15b22..0aae3c8b47e00 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for VirtualMachines Delete. */ +/** + * Samples for VirtualMachines Delete. + */ public final class VirtualMachinesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Delete.json */ /** * Sample code: Delete virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java index 610083c2587ba..159c8540c67c9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesGetByResourceGroupSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for VirtualMachines GetByResourceGroup. */ +/** + * Samples for VirtualMachines GetByResourceGroup. + */ public final class VirtualMachinesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Get.json */ /** * Sample code: Get virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .virtualMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE); + manager.virtualMachines() + .getByResourceGroupWithResponse("resourceGroupName", "virtualMachineName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java index 96d9a93e46e01..d187bc0863d6f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListByResourceGroupSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for VirtualMachines ListByResourceGroup. */ +/** + * Samples for VirtualMachines ListByResourceGroup. + */ public final class VirtualMachinesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_ListByResourceGroup.json */ /** * Sample code: List virtual machines for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listVirtualMachinesForResourceGroup( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listVirtualMachinesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.virtualMachines().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java index 8047a06b27698..73a16d3c89122 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesListSamples.java @@ -4,18 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for VirtualMachines List. */ +/** + * Samples for VirtualMachines List. + */ public final class VirtualMachinesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_ListBySubscription.json */ /** * Sample code: List virtual machines for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ - public static void listVirtualMachinesForSubscription( - com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { + public static void + listVirtualMachinesForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { manager.virtualMachines().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java index dc64fbc2d7224..bbcd17e091f64 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffSamples.java @@ -7,22 +7,23 @@ import com.azure.resourcemanager.networkcloud.models.SkipShutdown; import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerOffParameters; -/** Samples for VirtualMachines PowerOff. */ +/** + * Samples for VirtualMachines PowerOff. + */ public final class VirtualMachinesPowerOffSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_PowerOff.json */ /** * Sample code: Power off virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void powerOffVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .virtualMachines() - .powerOff( - "resourceGroupName", - "virtualMachineName", + manager.virtualMachines() + .powerOff("resourceGroupName", "virtualMachineName", new VirtualMachinePowerOffParameters().withSkipShutdown(SkipShutdown.TRUE), com.azure.core.util.Context.NONE); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java index 79564d739d63f..0a8b25bd617c1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for VirtualMachines Reimage. */ +/** + * Samples for VirtualMachines Reimage. + */ public final class VirtualMachinesReimageSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Reimage.json */ /** * Sample code: Reimage virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void reimageVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java index e4274724e8244..db6ac8bc160b4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for VirtualMachines Restart. */ +/** + * Samples for VirtualMachines Restart. + */ public final class VirtualMachinesRestartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Restart.json */ /** * Sample code: Restart virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void restartVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java index 0fecdcf434269..268776aeb17d5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for VirtualMachines Start. */ +/** + * Samples for VirtualMachines Start. + */ public final class VirtualMachinesStartSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Start.json */ /** * Sample code: Start virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void startVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java index 19a4a8a4ed68f..db65c5d5fff85 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesUpdateSamples.java @@ -9,31 +9,29 @@ import java.util.HashMap; import java.util.Map; -/** Samples for VirtualMachines Update. */ +/** + * Samples for VirtualMachines Update. + */ public final class VirtualMachinesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * VirtualMachines_Patch.json */ /** * Sample code: Patch virtual machine. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchVirtualMachine(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - VirtualMachine resource = - manager - .virtualMachines() - .getByResourceGroupWithResponse( - "resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + VirtualMachine resource = manager.virtualMachines() + .getByResourceGroupWithResponse("resourceGroupName", "virtualMachineName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) - .withVmImageRepositoryCredentials( - new ImageRepositoryCredentials() - .withPassword("fakeTokenPlaceholder") - .withRegistryUrl("myacr.azurecr.io") - .withUsername("myuser")) + .withVmImageRepositoryCredentials(new ImageRepositoryCredentials().withPassword("fakeTokenPlaceholder") + .withRegistryUrl("myacr.azurecr.io") + .withUsername("myuser")) .apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java index 052f80369d754..bddeb308cf9fd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateSamples.java @@ -8,27 +8,28 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Volumes CreateOrUpdate. */ +/** + * Samples for Volumes CreateOrUpdate. + */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Create.json */ /** * Sample code: Create or update volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void createOrUpdateVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .volumes() + manager.volumes() .define("volumeName") .withRegion("location") .withExistingResourceGroup("resourceGroupName") - .withExtendedLocation( - new ExtendedLocation() - .withName( - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") - .withType("CustomLocation")) + .withExtendedLocation(new ExtendedLocation().withName( + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") + .withType("CustomLocation")) .withSizeMiB(10000L) .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) .create(); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java index 4f877c229a1cd..842b4722af6ee 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Volumes Delete. */ +/** + * Samples for Volumes Delete. + */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Delete.json */ /** * Sample code: Delete volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void deleteVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java index 8fc8f14d9a82f..1df6dcc05d3b4 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Volumes GetByResourceGroup. */ +/** + * Samples for Volumes GetByResourceGroup. + */ public final class VolumesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Get.json */ /** * Sample code: Get volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void getVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - manager - .volumes() + manager.volumes() .getByResourceGroupWithResponse("resourceGroupName", "volumeName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java index b284058d69870..5b40a4e2557cb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Volumes ListByResourceGroup. */ +/** + * Samples for Volumes ListByResourceGroup. + */ public final class VolumesListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_ListByResourceGroup.json */ /** * Sample code: List volumes for resource group. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listVolumesForResourceGroup(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java index bd1ba332a9344..194694ba2f01b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.networkcloud.generated; -/** Samples for Volumes List. */ +/** + * Samples for Volumes List. + */ public final class VolumesListSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_ListBySubscription.json */ /** * Sample code: List volume for subscription. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void listVolumeForSubscription(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java index 65819f9771dc6..835670f35f31e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/samples/java/com/azure/resourcemanager/networkcloud/generated/VolumesUpdateSamples.java @@ -8,22 +8,24 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Volumes Update. */ +/** + * Samples for Volumes Update. + */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json + * x-ms-original-file: + * specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ + * Volumes_Patch.json */ /** * Sample code: Patch volume. - * + * * @param manager Entry point to NetworkCloudManager. */ public static void patchVolume(com.azure.resourcemanager.networkcloud.NetworkCloudManager manager) { - Volume resource = - manager - .volumes() - .getByResourceGroupWithResponse("resourceGroupName", "volumeName", com.azure.core.util.Context.NONE) - .getValue(); + Volume resource = manager.volumes() + .getByResourceGroupWithResponse("resourceGroupName", "volumeName", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")).apply(); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.java index 5d111e56c4e42..d032eb1f8fc20 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AadConfigurationTests.java @@ -12,16 +12,15 @@ public final class AadConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AadConfiguration model = BinaryData.fromString("{\"adminGroupObjectIds\":[\"ibtnmxiebwwaloay\",\"cgwrtzjuz\"]}") + AadConfiguration model = BinaryData.fromString("{\"adminGroupObjectIds\":[\"nayrhyrnxxmueedn\"]}") .toObject(AadConfiguration.class); - Assertions.assertEquals("ibtnmxiebwwaloay", model.adminGroupObjectIds().get(0)); + Assertions.assertEquals("nayrhyrnxxmueedn", model.adminGroupObjectIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AadConfiguration model - = new AadConfiguration().withAdminGroupObjectIds(Arrays.asList("ibtnmxiebwwaloay", "cgwrtzjuz")); + AadConfiguration model = new AadConfiguration().withAdminGroupObjectIds(Arrays.asList("nayrhyrnxxmueedn")); model = BinaryData.fromObject(model).toObject(AadConfiguration.class); - Assertions.assertEquals("ibtnmxiebwwaloay", model.adminGroupObjectIds().get(0)); + Assertions.assertEquals("nayrhyrnxxmueedn", model.adminGroupObjectIds().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.java index 57c80f2fbe609..67ee0cec14da6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentOptionsTests.java @@ -12,18 +12,18 @@ public final class AgentOptionsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AgentOptions model = BinaryData.fromString("{\"hugepagesCount\":4925727369956565818,\"hugepagesSize\":\"2M\"}") + AgentOptions model = BinaryData.fromString("{\"hugepagesCount\":7011411072062298960,\"hugepagesSize\":\"1G\"}") .toObject(AgentOptions.class); - Assertions.assertEquals(4925727369956565818L, model.hugepagesCount()); - Assertions.assertEquals(HugepagesSize.TWOM, model.hugepagesSize()); + Assertions.assertEquals(7011411072062298960L, model.hugepagesCount()); + Assertions.assertEquals(HugepagesSize.ONEG, model.hugepagesSize()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AgentOptions model - = new AgentOptions().withHugepagesCount(4925727369956565818L).withHugepagesSize(HugepagesSize.TWOM); + = new AgentOptions().withHugepagesCount(7011411072062298960L).withHugepagesSize(HugepagesSize.ONEG); model = BinaryData.fromObject(model).toObject(AgentOptions.class); - Assertions.assertEquals(4925727369956565818L, model.hugepagesCount()); - Assertions.assertEquals(HugepagesSize.TWOM, model.hugepagesSize()); + Assertions.assertEquals(7011411072062298960L, model.hugepagesCount()); + Assertions.assertEquals(HugepagesSize.ONEG, model.hugepagesSize()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchParametersTests.java deleted file mode 100644 index 434dd32ac1b67..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchParametersTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.AgentPoolPatchParameters; -import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AgentPoolPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AgentPoolPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"count\":1064127963046156604,\"upgradeSettings\":{\"maxSurge\":\"fsv\"}},\"tags\":{\"gahxkumasjcaa\":\"vbopfppdbwnu\",\"ehqepvufhbzehe\":\"fdmmcpug\"}}") - .toObject(AgentPoolPatchParameters.class); - Assertions.assertEquals("vbopfppdbwnu", model.tags().get("gahxkumasjcaa")); - Assertions.assertEquals(1064127963046156604L, model.count()); - Assertions.assertEquals("fsv", model.upgradeSettings().maxSurge()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AgentPoolPatchParameters model = new AgentPoolPatchParameters() - .withTags(mapOf("gahxkumasjcaa", "vbopfppdbwnu", "ehqepvufhbzehe", "fdmmcpug")) - .withCount(1064127963046156604L) - .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("fsv")); - model = BinaryData.fromObject(model).toObject(AgentPoolPatchParameters.class); - Assertions.assertEquals("vbopfppdbwnu", model.tags().get("gahxkumasjcaa")); - Assertions.assertEquals(1064127963046156604L, model.count()); - Assertions.assertEquals("fsv", model.upgradeSettings().maxSurge()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchPropertiesTests.java deleted file mode 100644 index 150f94af98da5..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolPatchPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.AgentPoolPatchProperties; -import com.azure.resourcemanager.networkcloud.models.AgentPoolUpgradeSettings; -import org.junit.jupiter.api.Assertions; - -public final class AgentPoolPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AgentPoolPatchProperties model = BinaryData - .fromString("{\"count\":6504667056723146925,\"upgradeSettings\":{\"maxSurge\":\"lbqnbldxeacl\"}}") - .toObject(AgentPoolPatchProperties.class); - Assertions.assertEquals(6504667056723146925L, model.count()); - Assertions.assertEquals("lbqnbldxeacl", model.upgradeSettings().maxSurge()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AgentPoolPatchProperties model = new AgentPoolPatchProperties().withCount(6504667056723146925L) - .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("lbqnbldxeacl")); - model = BinaryData.fromObject(model).toObject(AgentPoolPatchProperties.class); - Assertions.assertEquals(6504667056723146925L, model.count()); - Assertions.assertEquals("lbqnbldxeacl", model.upgradeSettings().maxSurge()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.java index 986eacdad416a..2512a41bcd6ea 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolUpgradeSettingsTests.java @@ -11,15 +11,23 @@ public final class AgentPoolUpgradeSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AgentPoolUpgradeSettings model - = BinaryData.fromString("{\"maxSurge\":\"gvpgy\"}").toObject(AgentPoolUpgradeSettings.class); - Assertions.assertEquals("gvpgy", model.maxSurge()); + AgentPoolUpgradeSettings model = BinaryData + .fromString( + "{\"drainTimeout\":6269428665110751573,\"maxSurge\":\"moadsuvarmy\",\"maxUnavailable\":\"mjsjqb\"}") + .toObject(AgentPoolUpgradeSettings.class); + Assertions.assertEquals(6269428665110751573L, model.drainTimeout()); + Assertions.assertEquals("moadsuvarmy", model.maxSurge()); + Assertions.assertEquals("mjsjqb", model.maxUnavailable()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AgentPoolUpgradeSettings model = new AgentPoolUpgradeSettings().withMaxSurge("gvpgy"); + AgentPoolUpgradeSettings model = new AgentPoolUpgradeSettings().withDrainTimeout(6269428665110751573L) + .withMaxSurge("moadsuvarmy") + .withMaxUnavailable("mjsjqb"); model = BinaryData.fromObject(model).toObject(AgentPoolUpgradeSettings.class); - Assertions.assertEquals("gvpgy", model.maxSurge()); + Assertions.assertEquals(6269428665110751573L, model.drainTimeout()); + Assertions.assertEquals("moadsuvarmy", model.maxSurge()); + Assertions.assertEquals("mjsjqb", model.maxUnavailable()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteMockTests.java deleted file mode 100644 index 0f25848857cc8..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AgentPoolsDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AgentPoolsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.agentPools().delete("fixoskk", "dfivsujybsr", "zzmrgtxdhmfpp", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java index e3411ec5165a6..eabaf251dd944 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AttachedNetworkConfigurationTests.java @@ -18,46 +18,38 @@ public final class AttachedNetworkConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AttachedNetworkConfiguration model = BinaryData.fromString( - "{\"l2Networks\":[{\"networkId\":\"i\",\"pluginType\":\"SRIOV\"},{\"networkId\":\"lpjzuaejxdu\",\"pluginType\":\"IPVLAN\"},{\"networkId\":\"kzbbtd\",\"pluginType\":\"IPVLAN\"},{\"networkId\":\"veekgpwozuhkfp\",\"pluginType\":\"DPDK\"}],\"l3Networks\":[{\"ipamEnabled\":\"True\",\"networkId\":\"xl\",\"pluginType\":\"IPVLAN\"}],\"trunkedNetworks\":[{\"networkId\":\"touwaboekqv\",\"pluginType\":\"MACVLAN\"},{\"networkId\":\"nsmvbxwyj\",\"pluginType\":\"MACVLAN\"},{\"networkId\":\"hhcaal\",\"pluginType\":\"SRIOV\"},{\"networkId\":\"xisxyawjoyaqcsl\",\"pluginType\":\"MACVLAN\"}]}") + "{\"l2Networks\":[{\"networkId\":\"lddxbjhwua\",\"pluginType\":\"OSDevice\"}],\"l3Networks\":[{\"ipamEnabled\":\"False\",\"networkId\":\"ph\",\"pluginType\":\"SRIOV\"}],\"trunkedNetworks\":[{\"networkId\":\"jrvxaglrv\",\"pluginType\":\"DPDK\"},{\"networkId\":\"wosytxitcskf\",\"pluginType\":\"MACVLAN\"}]}") .toObject(AttachedNetworkConfiguration.class); - Assertions.assertEquals("i", model.l2Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.SRIOV, model.l2Networks().get(0).pluginType()); - Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.TRUE, model.l3Networks().get(0).ipamEnabled()); - Assertions.assertEquals("xl", model.l3Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.l3Networks().get(0).pluginType()); - Assertions.assertEquals("touwaboekqv", model.trunkedNetworks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.MACVLAN, model.trunkedNetworks().get(0).pluginType()); + Assertions.assertEquals("lddxbjhwua", model.l2Networks().get(0).networkId()); + Assertions.assertEquals(KubernetesPluginType.OSDEVICE, model.l2Networks().get(0).pluginType()); + Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.FALSE, model.l3Networks().get(0).ipamEnabled()); + Assertions.assertEquals("ph", model.l3Networks().get(0).networkId()); + Assertions.assertEquals(KubernetesPluginType.SRIOV, model.l3Networks().get(0).pluginType()); + Assertions.assertEquals("jrvxaglrv", model.trunkedNetworks().get(0).networkId()); + Assertions.assertEquals(KubernetesPluginType.DPDK, model.trunkedNetworks().get(0).pluginType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AttachedNetworkConfiguration model = new AttachedNetworkConfiguration().withL2Networks(Arrays.asList( - new L2NetworkAttachmentConfiguration().withNetworkId("i").withPluginType(KubernetesPluginType.SRIOV), - new L2NetworkAttachmentConfiguration().withNetworkId("lpjzuaejxdu") - .withPluginType(KubernetesPluginType.IPVLAN), - new L2NetworkAttachmentConfiguration().withNetworkId("kzbbtd").withPluginType(KubernetesPluginType.IPVLAN), - new L2NetworkAttachmentConfiguration().withNetworkId("veekgpwozuhkfp") - .withPluginType(KubernetesPluginType.DPDK))) + AttachedNetworkConfiguration model = new AttachedNetworkConfiguration() + .withL2Networks(Arrays.asList(new L2NetworkAttachmentConfiguration().withNetworkId("lddxbjhwua") + .withPluginType(KubernetesPluginType.OSDEVICE))) .withL3Networks(Arrays - .asList(new L3NetworkAttachmentConfiguration().withIpamEnabled(L3NetworkConfigurationIpamEnabled.TRUE) - .withNetworkId("xl") - .withPluginType(KubernetesPluginType.IPVLAN))) + .asList(new L3NetworkAttachmentConfiguration().withIpamEnabled(L3NetworkConfigurationIpamEnabled.FALSE) + .withNetworkId("ph") + .withPluginType(KubernetesPluginType.SRIOV))) .withTrunkedNetworks(Arrays.asList( - new TrunkedNetworkAttachmentConfiguration().withNetworkId("touwaboekqv") - .withPluginType(KubernetesPluginType.MACVLAN), - new TrunkedNetworkAttachmentConfiguration().withNetworkId("nsmvbxwyj") - .withPluginType(KubernetesPluginType.MACVLAN), - new TrunkedNetworkAttachmentConfiguration().withNetworkId("hhcaal") - .withPluginType(KubernetesPluginType.SRIOV), - new TrunkedNetworkAttachmentConfiguration().withNetworkId("xisxyawjoyaqcsl") + new TrunkedNetworkAttachmentConfiguration().withNetworkId("jrvxaglrv") + .withPluginType(KubernetesPluginType.DPDK), + new TrunkedNetworkAttachmentConfiguration().withNetworkId("wosytxitcskf") .withPluginType(KubernetesPluginType.MACVLAN))); model = BinaryData.fromObject(model).toObject(AttachedNetworkConfiguration.class); - Assertions.assertEquals("i", model.l2Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.SRIOV, model.l2Networks().get(0).pluginType()); - Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.TRUE, model.l3Networks().get(0).ipamEnabled()); - Assertions.assertEquals("xl", model.l3Networks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.l3Networks().get(0).pluginType()); - Assertions.assertEquals("touwaboekqv", model.trunkedNetworks().get(0).networkId()); - Assertions.assertEquals(KubernetesPluginType.MACVLAN, model.trunkedNetworks().get(0).pluginType()); + Assertions.assertEquals("lddxbjhwua", model.l2Networks().get(0).networkId()); + Assertions.assertEquals(KubernetesPluginType.OSDEVICE, model.l2Networks().get(0).pluginType()); + Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.FALSE, model.l3Networks().get(0).ipamEnabled()); + Assertions.assertEquals("ph", model.l3Networks().get(0).networkId()); + Assertions.assertEquals(KubernetesPluginType.SRIOV, model.l3Networks().get(0).pluginType()); + Assertions.assertEquals("jrvxaglrv", model.trunkedNetworks().get(0).networkId()); + Assertions.assertEquals(KubernetesPluginType.DPDK, model.trunkedNetworks().get(0).pluginType()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.java index 9b6aaf3e34d68..ac5f7db54e14e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/AvailableUpgradeTests.java @@ -10,9 +10,9 @@ public final class AvailableUpgradeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AvailableUpgrade model - = BinaryData.fromString("{\"availabilityLifecycle\":\"GenerallyAvailable\",\"version\":\"iuhprwmdyvxqta\"}") - .toObject(AvailableUpgrade.class); + AvailableUpgrade model = BinaryData + .fromString("{\"availabilityLifecycle\":\"GenerallyAvailable\",\"version\":\"ohgwxrtfudxepxg\"}") + .toObject(AvailableUpgrade.class); } @org.junit.jupiter.api.Test diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.java index 2950809a2d29b..2e38309921c72 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineCommandSpecificationTests.java @@ -13,18 +13,18 @@ public final class BareMetalMachineCommandSpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BareMetalMachineCommandSpecification model - = BinaryData.fromString("{\"arguments\":[\"z\"],\"command\":\"umwmxqhnd\"}") + = BinaryData.fromString("{\"arguments\":[\"iixtmkzj\"],\"command\":\"kv\"}") .toObject(BareMetalMachineCommandSpecification.class); - Assertions.assertEquals("z", model.arguments().get(0)); - Assertions.assertEquals("umwmxqhnd", model.command()); + Assertions.assertEquals("iixtmkzj", model.arguments().get(0)); + Assertions.assertEquals("kv", model.command()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BareMetalMachineCommandSpecification model - = new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("z")).withCommand("umwmxqhnd"); + = new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("iixtmkzj")).withCommand("kv"); model = BinaryData.fromObject(model).toObject(BareMetalMachineCommandSpecification.class); - Assertions.assertEquals("z", model.arguments().get(0)); - Assertions.assertEquals("umwmxqhnd", model.command()); + Assertions.assertEquals("iixtmkzj", model.arguments().get(0)); + Assertions.assertEquals("kv", model.command()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteMockTests.java deleted file mode 100644 index 47f1c0452ac1a..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineKeySetsDeleteMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachineKeySetsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.bareMetalMachineKeySets() - .delete("wjezbfqployuekdc", "vuftrsvjmnsvu", "njktv", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.java index ba5a1bec7c883..f4bdfa316e4b0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchParametersTests.java @@ -14,21 +14,20 @@ public final class BareMetalMachinePatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BareMetalMachinePatchParameters model = BinaryData.fromString( - "{\"properties\":{\"machineDetails\":\"ieholewjwi\"},\"tags\":{\"wexjkmfxapjwogq\":\"wefqsfapaqtferr\",\"awbzasqb\":\"nobpudcdabtqwpw\",\"kyexaoguyaipi\":\"clj\",\"um\":\"sdaultxij\"}}") + "{\"properties\":{\"machineDetails\":\"cil\"},\"tags\":{\"t\":\"aykggnoxu\",\"cpfnznthjtwkja\":\"ksxwpnd\",\"tcqiosmg\":\"srxuzvoam\"}}") .toObject(BareMetalMachinePatchParameters.class); - Assertions.assertEquals("wefqsfapaqtferr", model.tags().get("wexjkmfxapjwogq")); - Assertions.assertEquals("ieholewjwi", model.machineDetails()); + Assertions.assertEquals("aykggnoxu", model.tags().get("t")); + Assertions.assertEquals("cil", model.machineDetails()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BareMetalMachinePatchParameters model = new BareMetalMachinePatchParameters() - .withTags(mapOf("wexjkmfxapjwogq", "wefqsfapaqtferr", "awbzasqb", "nobpudcdabtqwpw", "kyexaoguyaipi", "clj", - "um", "sdaultxij")) - .withMachineDetails("ieholewjwi"); + .withTags(mapOf("t", "aykggnoxu", "cpfnznthjtwkja", "ksxwpnd", "tcqiosmg", "srxuzvoam")) + .withMachineDetails("cil"); model = BinaryData.fromObject(model).toObject(BareMetalMachinePatchParameters.class); - Assertions.assertEquals("wefqsfapaqtferr", model.tags().get("wexjkmfxapjwogq")); - Assertions.assertEquals("ieholewjwi", model.machineDetails()); + Assertions.assertEquals("aykggnoxu", model.tags().get("t")); + Assertions.assertEquals("cil", model.machineDetails()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.java index 4b2a56cab33d3..2622f674e691f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinePatchPropertiesTests.java @@ -12,14 +12,14 @@ public final class BareMetalMachinePatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BareMetalMachinePatchProperties model - = BinaryData.fromString("{\"machineDetails\":\"waz\"}").toObject(BareMetalMachinePatchProperties.class); - Assertions.assertEquals("waz", model.machineDetails()); + = BinaryData.fromString("{\"machineDetails\":\"ahgx\"}").toObject(BareMetalMachinePatchProperties.class); + Assertions.assertEquals("ahgx", model.machineDetails()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BareMetalMachinePatchProperties model = new BareMetalMachinePatchProperties().withMachineDetails("waz"); + BareMetalMachinePatchProperties model = new BareMetalMachinePatchProperties().withMachineDetails("ahgx"); model = BinaryData.fromObject(model).toObject(BareMetalMachinePatchProperties.class); - Assertions.assertEquals("waz", model.machineDetails()); + Assertions.assertEquals("ahgx", model.machineDetails()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.java index e768133edfe35..72ec064448cc3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunCommandParametersTests.java @@ -13,22 +13,22 @@ public final class BareMetalMachineRunCommandParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BareMetalMachineRunCommandParameters model = BinaryData.fromString( - "{\"arguments\":[\"nghgshej\",\"tbxqmuluxlxq\",\"vnersbycucrw\",\"amikzebrqbsm\"],\"limitTimeSeconds\":4275672432001300092,\"script\":\"iqg\"}") + "{\"arguments\":[\"nbsoqeqalarv\",\"agunbtgfebw\",\"nbmhyree\"],\"limitTimeSeconds\":8991110670896119735,\"script\":\"qavbpdqmj\"}") .toObject(BareMetalMachineRunCommandParameters.class); - Assertions.assertEquals("nghgshej", model.arguments().get(0)); - Assertions.assertEquals(4275672432001300092L, model.limitTimeSeconds()); - Assertions.assertEquals("iqg", model.script()); + Assertions.assertEquals("nbsoqeqalarv", model.arguments().get(0)); + Assertions.assertEquals(8991110670896119735L, model.limitTimeSeconds()); + Assertions.assertEquals("qavbpdqmj", model.script()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BareMetalMachineRunCommandParameters model = new BareMetalMachineRunCommandParameters() - .withArguments(Arrays.asList("nghgshej", "tbxqmuluxlxq", "vnersbycucrw", "amikzebrqbsm")) - .withLimitTimeSeconds(4275672432001300092L) - .withScript("iqg"); + .withArguments(Arrays.asList("nbsoqeqalarv", "agunbtgfebw", "nbmhyree")) + .withLimitTimeSeconds(8991110670896119735L) + .withScript("qavbpdqmj"); model = BinaryData.fromObject(model).toObject(BareMetalMachineRunCommandParameters.class); - Assertions.assertEquals("nghgshej", model.arguments().get(0)); - Assertions.assertEquals(4275672432001300092L, model.limitTimeSeconds()); - Assertions.assertEquals("iqg", model.script()); + Assertions.assertEquals("nbsoqeqalarv", model.arguments().get(0)); + Assertions.assertEquals(8991110670896119735L, model.limitTimeSeconds()); + Assertions.assertEquals("qavbpdqmj", model.script()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.java index 228b7abd07eef..41d473b3b43c0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunDataExtractsParametersTests.java @@ -14,22 +14,30 @@ public final class BareMetalMachineRunDataExtractsParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BareMetalMachineRunDataExtractsParameters model = BinaryData.fromString( - "{\"commands\":[{\"arguments\":[\"kzruswh\",\"hczznvf\"],\"command\":\"ycjsx\"}],\"limitTimeSeconds\":653571144085928241}") + "{\"commands\":[{\"arguments\":[\"zg\",\"gouwtlmj\"],\"command\":\"yuojqtobaxk\"},{\"arguments\":[\"tu\",\"lbfjkwr\",\"snkq\"],\"command\":\"hsyrqunj\"},{\"arguments\":[\"enx\",\"ulkpakd\"],\"command\":\"ifmjnn\"},{\"arguments\":[\"qabpxuckpggqow\",\"yirdhlisngwflqq\",\"pizruwnpqxpxiw\"],\"command\":\"cng\"}],\"limitTimeSeconds\":4191063095737064569}") .toObject(BareMetalMachineRunDataExtractsParameters.class); - Assertions.assertEquals("kzruswh", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("ycjsx", model.commands().get(0).command()); - Assertions.assertEquals(653571144085928241L, model.limitTimeSeconds()); + Assertions.assertEquals("zg", model.commands().get(0).arguments().get(0)); + Assertions.assertEquals("yuojqtobaxk", model.commands().get(0).command()); + Assertions.assertEquals(4191063095737064569L, model.limitTimeSeconds()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BareMetalMachineRunDataExtractsParameters model = new BareMetalMachineRunDataExtractsParameters().withCommands( - Arrays.asList(new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("kzruswh", "hczznvf")) - .withCommand("ycjsx"))) - .withLimitTimeSeconds(653571144085928241L); + BareMetalMachineRunDataExtractsParameters model + = new BareMetalMachineRunDataExtractsParameters().withCommands(Arrays.asList( + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("zg", "gouwtlmj")) + .withCommand("yuojqtobaxk"), + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("tu", "lbfjkwr", "snkq")) + .withCommand("hsyrqunj"), + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("enx", "ulkpakd")) + .withCommand("ifmjnn"), + new BareMetalMachineCommandSpecification() + .withArguments(Arrays.asList("qabpxuckpggqow", "yirdhlisngwflqq", "pizruwnpqxpxiw")) + .withCommand("cng"))) + .withLimitTimeSeconds(4191063095737064569L); model = BinaryData.fromObject(model).toObject(BareMetalMachineRunDataExtractsParameters.class); - Assertions.assertEquals("kzruswh", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("ycjsx", model.commands().get(0).command()); - Assertions.assertEquals(653571144085928241L, model.limitTimeSeconds()); + Assertions.assertEquals("zg", model.commands().get(0).arguments().get(0)); + Assertions.assertEquals("yuojqtobaxk", model.commands().get(0).command()); + Assertions.assertEquals(4191063095737064569L, model.limitTimeSeconds()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.java index 73acf826291af..e16d559f78cbb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachineRunReadCommandsParametersTests.java @@ -14,29 +14,28 @@ public final class BareMetalMachineRunReadCommandsParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BareMetalMachineRunReadCommandsParameters model = BinaryData.fromString( - "{\"commands\":[{\"arguments\":[\"mldsehaohdj\",\"hflzokxco\"],\"command\":\"pelnjetag\"},{\"arguments\":[\"xo\"],\"command\":\"tft\"},{\"arguments\":[\"npbs\",\"vefloccsrmozihmi\",\"g\",\"wtxxpkyjcx\"],\"command\":\"jxgrytfmp\"},{\"arguments\":[\"ilrmcaykggnox\"],\"command\":\"ztrksxwpndf\"}],\"limitTimeSeconds\":4011710098447438719}") + "{\"commands\":[{\"arguments\":[\"gfgrwsdp\",\"ra\"],\"command\":\"zvzbglbyv\"},{\"arguments\":[\"ctbrxkjzwrgxffm\",\"hkwfbkgozxwop\",\"bydpizqaclnapxb\",\"yg\"],\"command\":\"ugjknf\"},{\"arguments\":[\"cttuxuu\",\"i\",\"flqo\",\"quvre\"],\"command\":\"mrnjh\"}],\"limitTimeSeconds\":4607580078285985289}") .toObject(BareMetalMachineRunReadCommandsParameters.class); - Assertions.assertEquals("mldsehaohdj", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("pelnjetag", model.commands().get(0).command()); - Assertions.assertEquals(4011710098447438719L, model.limitTimeSeconds()); + Assertions.assertEquals("gfgrwsdp", model.commands().get(0).arguments().get(0)); + Assertions.assertEquals("zvzbglbyv", model.commands().get(0).command()); + Assertions.assertEquals(4607580078285985289L, model.limitTimeSeconds()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BareMetalMachineRunReadCommandsParameters model = new BareMetalMachineRunReadCommandsParameters().withCommands(Arrays.asList( - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("mldsehaohdj", "hflzokxco")) - .withCommand("pelnjetag"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("xo")).withCommand("tft"), + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("gfgrwsdp", "ra")) + .withCommand("zvzbglbyv"), new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("npbs", "vefloccsrmozihmi", "g", "wtxxpkyjcx")) - .withCommand("jxgrytfmp"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("ilrmcaykggnox")) - .withCommand("ztrksxwpndf"))) - .withLimitTimeSeconds(4011710098447438719L); + .withArguments(Arrays.asList("ctbrxkjzwrgxffm", "hkwfbkgozxwop", "bydpizqaclnapxb", "yg")) + .withCommand("ugjknf"), + new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("cttuxuu", "i", "flqo", "quvre")) + .withCommand("mrnjh"))) + .withLimitTimeSeconds(4607580078285985289L); model = BinaryData.fromObject(model).toObject(BareMetalMachineRunReadCommandsParameters.class); - Assertions.assertEquals("mldsehaohdj", model.commands().get(0).arguments().get(0)); - Assertions.assertEquals("pelnjetag", model.commands().get(0).command()); - Assertions.assertEquals(4011710098447438719L, model.limitTimeSeconds()); + Assertions.assertEquals("gfgrwsdp", model.commands().get(0).arguments().get(0)); + Assertions.assertEquals("zvzbglbyv", model.commands().get(0).command()); + Assertions.assertEquals(4607580078285985289L, model.limitTimeSeconds()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonMockTests.java deleted file mode 100644 index a326189e80eac..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesCordonMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCordonParameters; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineEvacuate; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesCordonMockTests { - @Test - public void testCordon() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"hpwpgddeimawzovg\",\"resourceId\":\"um\",\"name\":\"kjcjcaztbwsnsqow\",\"status\":\"wcoml\",\"percentComplete\":86.88219,\"startTime\":\"2021-01-28T06:56:23Z\",\"endTime\":\"2020-12-24T11:01:09Z\",\"operations\":[{\"id\":\"wka\",\"resourceId\":\"ejyfdvlvhbwrnfx\",\"name\":\"ddpqt\",\"status\":\"ehnmnaoyankco\",\"percentComplete\":66.584496,\"startTime\":\"2021-11-11T14:26:20Z\",\"endTime\":\"2020-12-21T02:54:41Z\",\"operations\":[{\"id\":\"tmhdroznnhdr\",\"resourceId\":\"tgjcsgguxheml\",\"name\":\"waeeczgfb\",\"status\":\"kklelssxblycs\",\"percentComplete\":97.138306,\"startTime\":\"2021-09-07T10:55:25Z\",\"endTime\":\"2021-05-07T05:55:26Z\",\"operations\":[{\"status\":\"mdesqp\"},{\"status\":\"pvmjcdoewbid\"},{\"status\":\"vteo\"},{\"status\":\"xvgpiude\"}]}]},{\"id\":\"xzecpaxwkufykhvu\",\"resourceId\":\"epmrut\",\"name\":\"abaobnslujdjltym\",\"status\":\"mvguihywart\",\"percentComplete\":92.43603,\"startTime\":\"2021-12-07T20:59:05Z\",\"endTime\":\"2021-09-30T07:37:28Z\",\"operations\":[{\"id\":\"xdssjpemmucfxhi\",\"resourceId\":\"flrmymyi\",\"name\":\"qlhris\",\"status\":\"sl\",\"percentComplete\":62.140095,\"startTime\":\"2021-11-23T09:33:48Z\",\"endTime\":\"2021-02-14T14:33:49Z\",\"operations\":[{\"status\":\"gxuugqkctotio\"},{\"status\":\"l\"},{\"status\":\"teqdptj\"},{\"status\":\"wdtgukranblw\"}]},{\"id\":\"lkccuzgygqwa\",\"resourceId\":\"iul\",\"name\":\"niiprglvaw\",\"status\":\"wzdufypivlsbb\",\"percentComplete\":23.44007,\"startTime\":\"2021-03-15T11:33:56Z\",\"endTime\":\"2021-10-19T14:27:25Z\",\"operations\":[{\"status\":\"foxx\"},{\"status\":\"ubvphavpmhbrbqgv\"},{\"status\":\"ovpbbttefjoknssq\"},{\"status\":\"zqedikdfrdbi\"}]},{\"id\":\"jgeihfqlggwfi\",\"resourceId\":\"cxmjpbyephmg\",\"name\":\"ljvrcmyfqipgxhnp\",\"status\":\"myqwcab\",\"percentComplete\":7.8104677,\"startTime\":\"2021-05-17T14:24:30Z\",\"endTime\":\"2021-07-31T09:28:56Z\",\"operations\":[{\"status\":\"swlpaugmrmfj\"},{\"status\":\"rxwtoaukhfkvc\"}]},{\"id\":\"zmoaeds\",\"resourceId\":\"wuived\",\"name\":\"gyeewxeiq\",\"status\":\"psmgo\",\"percentComplete\":0.2232194,\"startTime\":\"2021-11-14T16:38:14Z\",\"endTime\":\"2021-08-09T00:37:15Z\",\"operations\":[{\"status\":\"rgmsplzga\"}]}]},{\"id\":\"hhvnewgnxkymp\",\"resourceId\":\"nxrjkixtwbtaoy\",\"name\":\"yghs\",\"status\":\"xcy\",\"percentComplete\":62.703003,\"startTime\":\"2021-02-25T18:08:40Z\",\"endTime\":\"2021-06-25T22:51:05Z\",\"operations\":[{\"id\":\"xycphdrwjjkh\",\"resourceId\":\"omacluzvxnqmhr\",\"name\":\"pd\",\"status\":\"wmkoisq\",\"percentComplete\":36.727757,\"startTime\":\"2021-10-05T03:23:13Z\",\"endTime\":\"2021-06-29T15:08:13Z\",\"operations\":[{\"status\":\"mcs\"},{\"status\":\"p\"},{\"status\":\"bkdq\"}]},{\"id\":\"zsylollgt\",\"resourceId\":\"zzydmxzjijpvua\",\"name\":\"kihcirlde\",\"status\":\"xrdcoxnbkkja\",\"percentComplete\":30.950945,\"startTime\":\"2021-06-29T10:28:45Z\",\"endTime\":\"2021-11-23T12:35:58Z\",\"operations\":[{\"status\":\"bpizxqltgr\"}]},{\"id\":\"ypxrx\",\"resourceId\":\"fihwu\",\"name\":\"ctafsrbxrblm\",\"status\":\"iowxi\",\"percentComplete\":3.0665696,\"startTime\":\"2021-11-04T17:34:13Z\",\"endTime\":\"2021-03-30T11:15:20Z\",\"operations\":[{\"status\":\"nepzwakls\"},{\"status\":\"sbq\"}]},{\"id\":\"gwwrxaomzis\",\"resourceId\":\"rrczezkhhltnj\",\"name\":\"hqo\",\"status\":\"wjqo\",\"percentComplete\":68.41727,\"startTime\":\"2021-07-31T20:48:08Z\",\"endTime\":\"2021-08-01T05:40:59Z\",\"operations\":[{\"status\":\"msplbyr\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.bareMetalMachines() - .cordon("jkxibda", "hrkmdyomkxfbvfbh", - new BareMetalMachineCordonParameters().withEvacuate(BareMetalMachineEvacuate.TRUE), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hpwpgddeimawzovg", response.id()); - Assertions.assertEquals("kjcjcaztbwsnsqow", response.name()); - Assertions.assertEquals("wcoml", response.status()); - Assertions.assertEquals(86.88219F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T06:56:23Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-24T11:01:09Z"), response.endTime()); - Assertions.assertEquals("wka", response.operations().get(0).id()); - Assertions.assertEquals("ddpqt", response.operations().get(0).name()); - Assertions.assertEquals("ehnmnaoyankco", response.operations().get(0).status()); - Assertions.assertEquals(66.584496F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-11T14:26:20Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-21T02:54:41Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("tmhdroznnhdr", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("waeeczgfb", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("kklelssxblycs", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(97.138306F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T10:55:25Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-07T05:55:26Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("mdesqp", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteMockTests.java deleted file mode 100644 index 0ee61d213e048..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.bareMetalMachines().delete("wjksghudgzhxo", "jggsvo", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffMockTests.java deleted file mode 100644 index 2cc91dd3cd248..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesPowerOffMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachinePowerOffParameters; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineSkipShutdown; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesPowerOffMockTests { - @Test - public void testPowerOff() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"wdpyq\",\"resourceId\":\"bxubmdna\",\"name\":\"bqwremjela\",\"status\":\"acigel\",\"percentComplete\":74.37067,\"startTime\":\"2021-11-26T05:52:39Z\",\"endTime\":\"2021-04-23T10:22:37Z\",\"operations\":[{\"id\":\"kjopwbeon\",\"resourceId\":\"kwzdqybxcea\",\"name\":\"cptsoqfyiase\",\"status\":\"chkrttzr\",\"percentComplete\":90.373055,\"startTime\":\"2021-04-10T05:16:30Z\",\"endTime\":\"2021-05-21T21:38:58Z\",\"operations\":[{\"id\":\"mvanbwzo\",\"resourceId\":\"nrxxbsojklin\",\"name\":\"dptysprqs\",\"status\":\"nzxojpslsvjgpli\",\"percentComplete\":81.04206,\"startTime\":\"2021-07-10T14:05:30Z\",\"endTime\":\"2021-12-08T21:04:16Z\",\"operations\":[{\"status\":\"vapcoh\"},{\"status\":\"oucqpqojx\"},{\"status\":\"x\"}]}]},{\"id\":\"cgdz\",\"resourceId\":\"nr\",\"name\":\"cawetzqddt\",\"status\":\"wflj\",\"percentComplete\":58.680862,\"startTime\":\"2021-04-10T13:20:50Z\",\"endTime\":\"2021-07-09T20:30:45Z\",\"operations\":[{\"id\":\"zwcjjncqtj\",\"resourceId\":\"izvg\",\"name\":\"atzuuv\",\"status\":\"xngre\",\"percentComplete\":31.940014,\"startTime\":\"2021-07-20T12:45:18Z\",\"endTime\":\"2021-01-16T19:45:25Z\",\"operations\":[{\"status\":\"lswva\"},{\"status\":\"qfutlxjo\"},{\"status\":\"zasunwqrjzfrgq\"}]},{\"id\":\"hcmbuocnjrohmbp\",\"resourceId\":\"yx\",\"name\":\"eblydyv\",\"status\":\"fkmroc\",\"percentComplete\":4.2229533,\"startTime\":\"2021-07-09T08:52:55Z\",\"endTime\":\"2021-08-13T16:19:10Z\",\"operations\":[{\"status\":\"dlfp\"},{\"status\":\"apucygvo\"},{\"status\":\"vyuns\"},{\"status\":\"xlghieegj\"}]}]},{\"id\":\"paseksgb\",\"resourceId\":\"antuygdhgaqipirp\",\"name\":\"rqofulopmjnlexwh\",\"status\":\"bjpi\",\"percentComplete\":3.5229385,\"startTime\":\"2021-04-03T07:18:13Z\",\"endTime\":\"2021-05-30T08:42:44Z\",\"operations\":[{\"id\":\"ctatoyintqpbrlcy\",\"resourceId\":\"uczkgofxyfsruc\",\"name\":\"rrp\",\"status\":\"jttbstv\",\"percentComplete\":84.53266,\"startTime\":\"2021-06-06T13:44:54Z\",\"endTime\":\"2021-08-03T20:23:39Z\",\"operations\":[{\"status\":\"fkoxmlghktuidvr\"},{\"status\":\"azlp\"}]},{\"id\":\"exymzvla\",\"resourceId\":\"pbh\",\"name\":\"vqs\",\"status\":\"ny\",\"percentComplete\":91.92979,\"startTime\":\"2021-04-23T19:57:01Z\",\"endTime\":\"2021-10-14T08:13:15Z\",\"operations\":[{\"status\":\"rpmey\"},{\"status\":\"vpkpatlb\"}]},{\"id\":\"zgs\",\"resourceId\":\"rfhfvo\",\"name\":\"knbnxwcdommpvfq\",\"status\":\"wzfgbrttuiaclkie\",\"percentComplete\":69.9188,\"startTime\":\"2021-04-18T23:10:57Z\",\"endTime\":\"2021-04-17T02:43:37Z\",\"operations\":[{\"status\":\"iqfyuttdi\"},{\"status\":\"gbpvnwswmtxkyct\"},{\"status\":\"wgzwxjlmecvog\"}]}]},{\"id\":\"vne\",\"resourceId\":\"aifghtmoqqt\",\"name\":\"fhzbkr\",\"status\":\"jjjavfqnvhnq\",\"percentComplete\":69.29112,\"startTime\":\"2021-01-06T07:59:03Z\",\"endTime\":\"2020-12-26T00:21:50Z\",\"operations\":[{\"id\":\"esypvidbztjh\",\"resourceId\":\"fbov\",\"name\":\"nkbw\",\"status\":\"tnjuhpsprkzyaupi\",\"percentComplete\":73.421104,\"startTime\":\"2021-01-29T16:38:57Z\",\"endTime\":\"2021-09-15T16:45:58Z\",\"operations\":[{\"status\":\"qroohtu\"}]},{\"id\":\"aonurjtumg\",\"resourceId\":\"hpv\",\"name\":\"mslclblyjxlt\",\"status\":\"sjuscvsfxigctmg\",\"percentComplete\":74.84599,\"startTime\":\"2021-08-09T09:46:25Z\",\"endTime\":\"2021-04-21T17:26:50Z\",\"operations\":[{\"status\":\"cydrtceukdqkk\"}]},{\"id\":\"ztgeqmgqzgwld\",\"resourceId\":\"chillcecf\",\"name\":\"uwaoaguhicqlli\",\"status\":\"stacsjvhrweftkwq\",\"percentComplete\":60.642326,\"startTime\":\"2021-05-08T02:12:14Z\",\"endTime\":\"2021-04-07T07:21:40Z\",\"operations\":[{\"status\":\"aepwamcxtcz\"}]},{\"id\":\"euknijduyyes\",\"resourceId\":\"djfbocyv\",\"name\":\"ulrtywikdmh\",\"status\":\"akuflgbhgauacdix\",\"percentComplete\":14.551282,\"startTime\":\"2021-07-21T10:11:29Z\",\"endTime\":\"2021-10-28T11:16:26Z\",\"operations\":[{\"status\":\"qg\"},{\"status\":\"kfnozoeoqbvj\"},{\"status\":\"vefgwbmqjchntas\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.bareMetalMachines() - .powerOff("thwmgnmbsc", "bxigdhxiidlo", - new BareMetalMachinePowerOffParameters().withSkipShutdown(BareMetalMachineSkipShutdown.FALSE), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wdpyq", response.id()); - Assertions.assertEquals("bqwremjela", response.name()); - Assertions.assertEquals("acigel", response.status()); - Assertions.assertEquals(74.37067F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T05:52:39Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-23T10:22:37Z"), response.endTime()); - Assertions.assertEquals("kjopwbeon", response.operations().get(0).id()); - Assertions.assertEquals("cptsoqfyiase", response.operations().get(0).name()); - Assertions.assertEquals("chkrttzr", response.operations().get(0).status()); - Assertions.assertEquals(90.373055F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-10T05:16:30Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-21T21:38:58Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("mvanbwzo", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("dptysprqs", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("nzxojpslsvjgpli", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(81.04206F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-10T14:05:30Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T21:04:16Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("vapcoh", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageMockTests.java deleted file mode 100644 index 560d776b34929..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesReimageMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesReimageMockTests { - @Test - public void testReimage() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"btsuahxs\",\"resourceId\":\"jcmmzrrscub\",\"name\":\"sd\",\"status\":\"npxqwodi\",\"percentComplete\":77.01541,\"startTime\":\"2021-03-03T11:14:29Z\",\"endTime\":\"2021-05-14T08:20:39Z\",\"operations\":[{\"id\":\"abwibvjogjo\",\"resourceId\":\"cyefoyzbamwine\",\"name\":\"vfkakpold\",\"status\":\"vevboclzh\",\"percentComplete\":71.18491,\"startTime\":\"2021-07-15T19:06:59Z\",\"endTime\":\"2021-07-02T09:21:32Z\",\"operations\":[{\"id\":\"txpnrupza\",\"resourceId\":\"rdixt\",\"name\":\"kidswys\",\"status\":\"br\",\"percentComplete\":69.84359,\"startTime\":\"2021-10-21T15:00:18Z\",\"endTime\":\"2021-10-06T17:50:49Z\",\"operations\":[{\"status\":\"utvlxhr\"},{\"status\":\"qhvmblcouqe\"},{\"status\":\"bhbcdszir\"}]}]},{\"id\":\"doypm\",\"resourceId\":\"t\",\"name\":\"rmkfqlwxldykals\",\"status\":\"g\",\"percentComplete\":96.73931,\"startTime\":\"2021-03-31T21:29:13Z\",\"endTime\":\"2021-12-05T06:04:35Z\",\"operations\":[{\"id\":\"jksibjg\",\"resourceId\":\"jxxahmrnad\",\"name\":\"qegxyivpin\",\"status\":\"mhwbjijkgqx\",\"percentComplete\":15.176058,\"startTime\":\"2021-04-20T14:35:11Z\",\"endTime\":\"2021-10-16T14:02:14Z\",\"operations\":[{\"status\":\"aujvaa\"}]}]},{\"id\":\"iycwkdta\",\"resourceId\":\"xw\",\"name\":\"ka\",\"status\":\"mrrqmbzmqkratb\",\"percentComplete\":66.8104,\"startTime\":\"2021-06-21T18:23:35Z\",\"endTime\":\"2021-08-05T15:01:16Z\",\"operations\":[{\"id\":\"rkfpks\",\"resourceId\":\"dgo\",\"name\":\"wijymr\",\"status\":\"bguzozky\",\"percentComplete\":40.12607,\"startTime\":\"2020-12-24T09:45:57Z\",\"endTime\":\"2021-06-15T03:53:03Z\",\"operations\":[{\"status\":\"qo\"},{\"status\":\"mffjkutycyarn\"}]},{\"id\":\"hguabzoghktdp\",\"resourceId\":\"z\",\"name\":\"oeocnhzqrott\",\"status\":\"zcfyjzptwrl\",\"percentComplete\":34.49209,\"startTime\":\"2021-03-15T17:03:59Z\",\"endTime\":\"2021-02-15T18:23:08Z\",\"operations\":[{\"status\":\"zpyglqdhmrj\"},{\"status\":\"ralcxpjbyypsj\"},{\"status\":\"qcjenkyhf\"}]},{\"id\":\"sqxfxjelgcmpz\",\"resourceId\":\"hhhqxuwyv\",\"name\":\"co\",\"status\":\"v\",\"percentComplete\":31.564491,\"startTime\":\"2021-08-20T22:21:36Z\",\"endTime\":\"2021-03-26T16:46:43Z\",\"operations\":[{\"status\":\"szlbscm\"},{\"status\":\"lzijiufehgmvflnw\"}]}]},{\"id\":\"xrerlniylylyf\",\"resourceId\":\"zutgqztwhghmupg\",\"name\":\"jtcdxabbujftaben\",\"status\":\"bklqpxz\",\"percentComplete\":65.13686,\"startTime\":\"2021-07-29T07:07:53Z\",\"endTime\":\"2021-04-20T13:02:49Z\",\"operations\":[{\"id\":\"lzafwxu\",\"resourceId\":\"nhgookrtalvnbw\",\"name\":\"bemeluclvd\",\"status\":\"jukyrdn\",\"percentComplete\":88.03156,\"startTime\":\"2021-10-09T14:31:55Z\",\"endTime\":\"2021-04-05T17:13:39Z\",\"operations\":[{\"status\":\"qfaqnvzoqg\"},{\"status\":\"ipemchgavscz\"}]},{\"id\":\"dtx\",\"resourceId\":\"lghwzhome\",\"name\":\"j\",\"status\":\"tl\",\"percentComplete\":35.869938,\"startTime\":\"2021-05-19T10:52:28Z\",\"endTime\":\"2021-07-26T14:32:02Z\",\"operations\":[{\"status\":\"ia\"},{\"status\":\"cz\"},{\"status\":\"vodrrslblxydkxr\"}]},{\"id\":\"bxiwkgfbqljn\",\"resourceId\":\"hychocokuleh\",\"name\":\"qlrqffaweyurk\",\"status\":\"hy\",\"percentComplete\":15.436524,\"startTime\":\"2021-08-23T02:12:11Z\",\"endTime\":\"2021-05-18T20:50:57Z\",\"operations\":[{\"status\":\"dbrxmrgc\"},{\"status\":\"bapxkiyfjjkb\"},{\"status\":\"jbuscg\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response - = manager.bareMetalMachines().reimage("xbulpzealbmqkyo", "wyvf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("btsuahxs", response.id()); - Assertions.assertEquals("sd", response.name()); - Assertions.assertEquals("npxqwodi", response.status()); - Assertions.assertEquals(77.01541F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-03T11:14:29Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-14T08:20:39Z"), response.endTime()); - Assertions.assertEquals("abwibvjogjo", response.operations().get(0).id()); - Assertions.assertEquals("vfkakpold", response.operations().get(0).name()); - Assertions.assertEquals("vevboclzh", response.operations().get(0).status()); - Assertions.assertEquals(71.18491F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-15T19:06:59Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-02T09:21:32Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("txpnrupza", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("kidswys", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("br", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(69.84359F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T15:00:18Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T17:50:49Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("utvlxhr", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartMockTests.java deleted file mode 100644 index 51175cbb675ff..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRestartMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesRestartMockTests { - @Test - public void testRestart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"wnapfdq\",\"resourceId\":\"wf\",\"name\":\"tnuwjtkschgc\",\"status\":\"qyhleseyq\",\"percentComplete\":38.67095,\"startTime\":\"2021-05-01T01:24:46Z\",\"endTime\":\"2021-03-23T12:51:27Z\",\"operations\":[{\"id\":\"v\",\"resourceId\":\"wiswskukjtasbvw\",\"name\":\"pkxkdtxfk\",\"status\":\"dlqvtwknvg\",\"percentComplete\":63.786263,\"startTime\":\"2021-03-22T07:20:24Z\",\"endTime\":\"2021-04-18T11:14:59Z\",\"operations\":[{\"id\":\"mqaqkueatgroes\",\"resourceId\":\"ygzc\",\"name\":\"fqxkfaoyteh\",\"status\":\"puvjmvqmtd\",\"percentComplete\":86.75552,\"startTime\":\"2021-11-05T05:11:54Z\",\"endTime\":\"2021-02-10T18:43:05Z\",\"operations\":[{\"status\":\"n\"}]},{\"id\":\"jdjusk\",\"resourceId\":\"req\",\"name\":\"kceysfaqegplw\",\"status\":\"ysh\",\"percentComplete\":3.9907634,\"startTime\":\"2021-10-08T22:13:16Z\",\"endTime\":\"2021-10-26T06:09:59Z\",\"operations\":[{\"status\":\"qusybwptd\"},{\"status\":\"carvvlfntymtpoi\"},{\"status\":\"enazerohzrsqals\"}]},{\"id\":\"nwqapfgsdpcvess\",\"resourceId\":\"hhkuuip\",\"name\":\"q\",\"status\":\"ctekval\",\"percentComplete\":54.789043,\"startTime\":\"2021-01-01T12:19:53Z\",\"endTime\":\"2021-08-04T07:59:56Z\",\"operations\":[{\"status\":\"vweht\"},{\"status\":\"emxhzzy\"},{\"status\":\"ev\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response - = manager.bareMetalMachines().restart("ltafhbzffo", "wmbjlzqsczpg", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wnapfdq", response.id()); - Assertions.assertEquals("tnuwjtkschgc", response.name()); - Assertions.assertEquals("qyhleseyq", response.status()); - Assertions.assertEquals(38.67095F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-01T01:24:46Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-23T12:51:27Z"), response.endTime()); - Assertions.assertEquals("v", response.operations().get(0).id()); - Assertions.assertEquals("pkxkdtxfk", response.operations().get(0).name()); - Assertions.assertEquals("dlqvtwknvg", response.operations().get(0).status()); - Assertions.assertEquals(63.786263F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-22T07:20:24Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-18T11:14:59Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("mqaqkueatgroes", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("fqxkfaoyteh", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("puvjmvqmtd", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(86.75552F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-05T05:11:54Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-10T18:43:05Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("n", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandMockTests.java deleted file mode 100644 index db48590a6e844..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunCommandMockTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunCommandParameters; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesRunCommandMockTests { - @Test - public void testRunCommand() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"lkcsmknhwtbbae\",\"resourceId\":\"rvvmqfloygb\",\"name\":\"wumgx\",\"status\":\"gdhpabgdexjddv\",\"percentComplete\":50.13225,\"startTime\":\"2021-10-15T10:21:04Z\",\"endTime\":\"2021-07-09T18:18:40Z\",\"operations\":[{\"id\":\"llcolsrsxapte\",\"resourceId\":\"excgjokjljnhvl\",\"name\":\"bekpeeksnbksdqhj\",\"status\":\"yklxe\",\"percentComplete\":13.086528,\"startTime\":\"2021-03-06T14:39:47Z\",\"endTime\":\"2021-11-12T17:23:36Z\",\"operations\":[{\"id\":\"oqmavnwqjwgo\",\"resourceId\":\"lejjjkxy\",\"name\":\"fdb\",\"status\":\"jbzten\",\"percentComplete\":48.449642,\"startTime\":\"2020-12-21T13:24:31Z\",\"endTime\":\"2021-10-20T20:55:34Z\",\"operations\":[{\"status\":\"kns\"},{\"status\":\"fwushcdpkupn\"}]}]},{\"id\":\"jfbp\",\"resourceId\":\"wxeoiojfizfavkj\",\"name\":\"fbcyaykmm\",\"status\":\"zs\",\"percentComplete\":94.81268,\"startTime\":\"2021-03-03T22:45:37Z\",\"endTime\":\"2021-03-01T10:08:57Z\",\"operations\":[{\"id\":\"wsrsxkrplbja\",\"resourceId\":\"jwwviy\",\"name\":\"ps\",\"status\":\"hbrnnhjx\",\"percentComplete\":13.075119,\"startTime\":\"2021-10-23T15:48:33Z\",\"endTime\":\"2021-04-28T17:16:52Z\",\"operations\":[{\"status\":\"wetp\"},{\"status\":\"zycyqiqyhg\"}]}]},{\"id\":\"zlex\",\"resourceId\":\"fledynojpziu\",\"name\":\"bzkkd\",\"status\":\"nhqs\",\"percentComplete\":32.192505,\"startTime\":\"2021-04-17T05:36:17Z\",\"endTime\":\"2021-11-12T21:16:46Z\",\"operations\":[{\"id\":\"bafvafhlbylcc\",\"resourceId\":\"vxrh\",\"name\":\"d\",\"status\":\"wrso\",\"percentComplete\":21.28094,\"startTime\":\"2021-08-15T11:31:01Z\",\"endTime\":\"2021-07-12T15:31:33Z\",\"operations\":[{\"status\":\"rrhvhfnracwnpq\"},{\"status\":\"g\"}]},{\"id\":\"jwouhda\",\"resourceId\":\"igrb\",\"name\":\"xsjybvitvqk\",\"status\":\"y\",\"percentComplete\":7.9839587,\"startTime\":\"2021-10-28T18:11:26Z\",\"endTime\":\"2021-07-21T21:37:11Z\",\"operations\":[{\"status\":\"uwdchozf\"}]},{\"id\":\"exlvxnoakiz\",\"resourceId\":\"aikn\",\"name\":\"lnuwiguy\",\"status\":\"lykwphvxz\",\"percentComplete\":66.61096,\"startTime\":\"2021-02-09T15:30:09Z\",\"endTime\":\"2021-08-08T23:29:51Z\",\"operations\":[{\"status\":\"lkexaonwivkcqh\"}]}]},{\"id\":\"knlccrmmkyup\",\"resourceId\":\"ubyqj\",\"name\":\"akfqfrkemyildud\",\"status\":\"jascowvfdjkpd\",\"percentComplete\":30.62821,\"startTime\":\"2021-02-03T18:42:47Z\",\"endTime\":\"2021-11-26T10:04:18Z\",\"operations\":[{\"id\":\"zvyfijdkzuqnwsi\",\"resourceId\":\"uqoly\",\"name\":\"luqw\",\"status\":\"ulsutrjbhxy\",\"percentComplete\":46.34994,\"startTime\":\"2021-07-20T12:13:18Z\",\"endTime\":\"2021-11-07T03:15:42Z\",\"operations\":[{\"status\":\"qugdrftbcvexreuq\"}]},{\"id\":\"tljvfwhreagkhyx\",\"resourceId\":\"qtvbczsu\",\"name\":\"dgglmepjpfs\",\"status\":\"ykgsangpszng\",\"percentComplete\":4.358429,\"startTime\":\"2021-06-06T23:22:02Z\",\"endTime\":\"2021-02-13T15:02:43Z\",\"operations\":[{\"status\":\"cj\"},{\"status\":\"jcngoadyed\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.bareMetalMachines() - .runCommand("vzrrryveimi", "sk", - new BareMetalMachineRunCommandParameters() - .withArguments(Arrays.asList("atvfuzkaftj", "vru", "wigsyeipqdsm")) - .withLimitTimeSeconds(3521751266515762395L) - .withScript("rqgdgkkil"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lkcsmknhwtbbae", response.id()); - Assertions.assertEquals("wumgx", response.name()); - Assertions.assertEquals("gdhpabgdexjddv", response.status()); - Assertions.assertEquals(50.13225F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-15T10:21:04Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-09T18:18:40Z"), response.endTime()); - Assertions.assertEquals("llcolsrsxapte", response.operations().get(0).id()); - Assertions.assertEquals("bekpeeksnbksdqhj", response.operations().get(0).name()); - Assertions.assertEquals("yklxe", response.operations().get(0).status()); - Assertions.assertEquals(13.086528F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T14:39:47Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-12T17:23:36Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("oqmavnwqjwgo", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("fdb", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("jbzten", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(48.449642F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-21T13:24:31Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T20:55:34Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("kns", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsMockTests.java deleted file mode 100644 index 0f3d439715151..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunDataExtractsMockTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCommandSpecification; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunDataExtractsParameters; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesRunDataExtractsMockTests { - @Test - public void testRunDataExtracts() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"tipwcxbyubhiqd\",\"resourceId\":\"urnpnuhzafccnuh\",\"name\":\"gbylbuig\",\"status\":\"xvatvcr\",\"percentComplete\":21.649128,\"startTime\":\"2021-03-26T19:13:55Z\",\"endTime\":\"2021-07-31T13:29:51Z\",\"operations\":[{\"id\":\"csyhzlwxaeaov\",\"resourceId\":\"exdnd\",\"name\":\"dwead\",\"status\":\"rzmwn\",\"percentComplete\":15.468043,\"startTime\":\"2021-06-07T19:00:04Z\",\"endTime\":\"2021-07-05T10:58:17Z\",\"operations\":[{\"id\":\"magoaqylkjz\",\"resourceId\":\"iua\",\"name\":\"cgm\",\"status\":\"itpfinzcpdl\",\"percentComplete\":31.125391,\"startTime\":\"2021-06-08T11:12:37Z\",\"endTime\":\"2021-10-17T10:54:47Z\",\"operations\":[{\"status\":\"drvcqguef\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.bareMetalMachines() - .runDataExtracts("jfoknubnoitpkp", "trgdgxvc", - new BareMetalMachineRunDataExtractsParameters().withCommands(Arrays.asList( - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("sw", "gyxpqit", "eialwvskb")) - .withCommand("hzacaqtyltco"), - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("jpds", "zakuejk", "vbiztjofqcv")) - .withCommand("vjufycsjmlbe"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("jiriuxeg")) - .withCommand("hortu"), - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("lpjfelqerpptcbgq", "zmnhiilialwc", "gckbb", "ccgzpraoxnyu")) - .withCommand("fa"))) - .withLimitTimeSeconds(9173171906821807545L), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("tipwcxbyubhiqd", response.id()); - Assertions.assertEquals("gbylbuig", response.name()); - Assertions.assertEquals("xvatvcr", response.status()); - Assertions.assertEquals(21.649128F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-26T19:13:55Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T13:29:51Z"), response.endTime()); - Assertions.assertEquals("csyhzlwxaeaov", response.operations().get(0).id()); - Assertions.assertEquals("dwead", response.operations().get(0).name()); - Assertions.assertEquals("rzmwn", response.operations().get(0).status()); - Assertions.assertEquals(15.468043F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T19:00:04Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-05T10:58:17Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("magoaqylkjz", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("cgm", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("itpfinzcpdl", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(31.125391F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-08T11:12:37Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T10:54:47Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("drvcqguef", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsMockTests.java deleted file mode 100644 index 6c5b18b1b3922..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesRunReadCommandsMockTests.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineCommandSpecification; -import com.azure.resourcemanager.networkcloud.models.BareMetalMachineRunReadCommandsParameters; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesRunReadCommandsMockTests { - @Test - public void testRunReadCommands() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"c\",\"resourceId\":\"iciijqpkzfbojx\",\"name\":\"cs\",\"status\":\"yqwixvcpwnkwywzw\",\"percentComplete\":51.106243,\"startTime\":\"2021-01-17T11:27:13Z\",\"endTime\":\"2021-08-19T21:16:08Z\",\"operations\":[{\"id\":\"iqtamtyvsknxrw\",\"resourceId\":\"wnv\",\"name\":\"cfhzagxnvhycv\",\"status\":\"imwrzregzgyufu\",\"percentComplete\":40.361755,\"startTime\":\"2021-12-09T04:49:49Z\",\"endTime\":\"2021-05-15T13:13:10Z\",\"operations\":[{\"id\":\"z\",\"resourceId\":\"hmeott\",\"name\":\"jyosxwwh\",\"status\":\"h\",\"percentComplete\":7.83897,\"startTime\":\"2021-07-16T09:37:33Z\",\"endTime\":\"2021-03-13T03:13:47Z\",\"operations\":[{\"status\":\"i\"},{\"status\":\"jpnwynudql\"},{\"status\":\"zsauzp\"}]},{\"id\":\"eehuxiqhzlray\",\"resourceId\":\"zxlskihmxr\",\"name\":\"sajrednwyysht\",\"status\":\"w\",\"percentComplete\":79.93362,\"startTime\":\"2021-08-02T10:16:43Z\",\"endTime\":\"2021-05-31T07:56:10Z\",\"operations\":[{\"status\":\"zyifrkgwltx\"},{\"status\":\"qipxgzdyimsf\"}]},{\"id\":\"rpravkjogeslab\",\"resourceId\":\"mjkwynq\",\"name\":\"ekqsykvwjtqpkev\",\"status\":\"yltjcrspxklu\",\"percentComplete\":17.77879,\"startTime\":\"2021-10-15T09:44:01Z\",\"endTime\":\"2021-07-11T17:20:02Z\",\"operations\":[{\"status\":\"n\"},{\"status\":\"oytzpose\"}]},{\"id\":\"gpxvkqmaupxvpi\",\"resourceId\":\"f\",\"name\":\"fyzyzeyuub\",\"status\":\"idszl\",\"percentComplete\":16.524166,\"startTime\":\"2021-11-28T20:47:36Z\",\"endTime\":\"2021-05-05T02:15:37Z\",\"operations\":[{\"status\":\"gvfltgvdihoynkr\"},{\"status\":\"wetwkdr\"},{\"status\":\"yrucpcunnuzdq\"},{\"status\":\"moenodnaien\"}]}]},{\"id\":\"knd\",\"resourceId\":\"lqkaadlknwf\",\"name\":\"nniyopetxi\",\"status\":\"cnrly\",\"percentComplete\":22.466213,\"startTime\":\"2021-09-12T03:23:28Z\",\"endTime\":\"2021-01-20T08:40:36Z\",\"operations\":[{\"id\":\"kwqpat\",\"resourceId\":\"qsdtcjbctvivuzq\",\"name\":\"tuowogtgitsqh\",\"status\":\"vbrzcdb\",\"percentComplete\":84.15396,\"startTime\":\"2021-09-20T19:14:03Z\",\"endTime\":\"2021-05-28T10:26:09Z\",\"operations\":[{\"status\":\"mxeatkdbmwnrdjy\"},{\"status\":\"bqbnaomhjrmkuh\"},{\"status\":\"axljal\"}]},{\"id\":\"cjmobcanc\",\"resourceId\":\"xxqcwgaxf\",\"name\":\"aknokzwjjzrl\",\"status\":\"ixldzyyfy\",\"percentComplete\":24.225784,\"startTime\":\"2021-05-16T13:00:48Z\",\"endTime\":\"2021-03-18T19:43:55Z\",\"operations\":[{\"status\":\"puj\"}]},{\"id\":\"qlkjuv\",\"resourceId\":\"bmslzoyov\",\"name\":\"dbpqvybefgvm\",\"status\":\"nokcv\",\"percentComplete\":79.84004,\"startTime\":\"2021-01-01T17:46:17Z\",\"endTime\":\"2020-12-21T13:08:22Z\",\"operations\":[{\"status\":\"cua\"},{\"status\":\"t\"},{\"status\":\"hunlpirykycnd\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.bareMetalMachines() - .runReadCommands("p", "eqdurelyujlfyoum", - new BareMetalMachineRunReadCommandsParameters() - .withCommands(Arrays.asList( - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("eclcdigptajbrzm")) - .withCommand("xucycijoclxi"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("jc", "z", "zjd")) - .withCommand("r"), - new BareMetalMachineCommandSpecification() - .withArguments(Arrays.asList("txjeaoqaqbzgy", "fwwvuatbwbqam", "e", "liys")) - .withCommand("pkcvmwf"), - new BareMetalMachineCommandSpecification().withArguments(Arrays.asList("xe")) - .withCommand("myw"))) - .withLimitTimeSeconds(8838975018818130961L), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("c", response.id()); - Assertions.assertEquals("cs", response.name()); - Assertions.assertEquals("yqwixvcpwnkwywzw", response.status()); - Assertions.assertEquals(51.106243F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-17T11:27:13Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T21:16:08Z"), response.endTime()); - Assertions.assertEquals("iqtamtyvsknxrw", response.operations().get(0).id()); - Assertions.assertEquals("cfhzagxnvhycv", response.operations().get(0).name()); - Assertions.assertEquals("imwrzregzgyufu", response.operations().get(0).status()); - Assertions.assertEquals(40.361755F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-09T04:49:49Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T13:13:10Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("z", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("jyosxwwh", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("h", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(7.83897F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-16T09:37:33Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-13T03:13:47Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("i", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartMockTests.java deleted file mode 100644 index f9584a775ff33..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesStartMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesStartMockTests { - @Test - public void testStart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"lnf\",\"resourceId\":\"y\",\"name\":\"vqdbpbhfck\",\"status\":\"vezcrcssbzhdd\",\"percentComplete\":47.65451,\"startTime\":\"2021-01-18T21:27:07Z\",\"endTime\":\"2021-11-16T04:37:45Z\",\"operations\":[{\"id\":\"alehpav\",\"resourceId\":\"ugiqjtiogqg\",\"name\":\"inic\",\"status\":\"teajohiyg\",\"percentComplete\":5.8400393,\"startTime\":\"2021-02-10T23:40:39Z\",\"endTime\":\"2021-03-08T08:00:31Z\",\"operations\":[{\"id\":\"ykm\",\"resourceId\":\"p\",\"name\":\"xqcsehch\",\"status\":\"hufmpq\",\"percentComplete\":1.5317738,\"startTime\":\"2021-06-18T05:18:44Z\",\"endTime\":\"2021-10-17T04:58:08Z\",\"operations\":[{\"status\":\"ulodsaeuzanhsfnh\"}]},{\"id\":\"wphpzfngqj\",\"resourceId\":\"idftujwjjufwbe\",\"name\":\"k\",\"status\":\"orhtss\",\"percentComplete\":74.679276,\"startTime\":\"2021-06-15T07:22:19Z\",\"endTime\":\"2021-08-02T13:56:45Z\",\"operations\":[{\"status\":\"zcvjytiqswbqerz\"},{\"status\":\"xiytxtdgukvl\"}]},{\"id\":\"tgdstyouambe\",\"resourceId\":\"esw\",\"name\":\"weg\",\"status\":\"mut\",\"percentComplete\":19.082249,\"startTime\":\"2021-10-05T19:49:24Z\",\"endTime\":\"2021-05-23T20:36:12Z\",\"operations\":[{\"status\":\"gijiitnspxlzd\"},{\"status\":\"sygrijwa\"},{\"status\":\"ufanray\"},{\"status\":\"fueqfrojs\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response - = manager.bareMetalMachines().start("vjreuykbbmnw", "gltbxoeeo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lnf", response.id()); - Assertions.assertEquals("vqdbpbhfck", response.name()); - Assertions.assertEquals("vezcrcssbzhdd", response.status()); - Assertions.assertEquals(47.65451F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T21:27:07Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-16T04:37:45Z"), response.endTime()); - Assertions.assertEquals("alehpav", response.operations().get(0).id()); - Assertions.assertEquals("inic", response.operations().get(0).name()); - Assertions.assertEquals("teajohiyg", response.operations().get(0).status()); - Assertions.assertEquals(5.8400393F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-10T23:40:39Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T08:00:31Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("ykm", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("xqcsehch", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("hufmpq", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(1.5317738F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-18T05:18:44Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T04:58:08Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("ulodsaeuzanhsfnh", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonMockTests.java deleted file mode 100644 index e023f06fe8b63..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BareMetalMachinesUncordonMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BareMetalMachinesUncordonMockTests { - @Test - public void testUncordon() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"afygzmxieqvds\",\"resourceId\":\"klixqcahyhxaly\",\"name\":\"awoijp\",\"status\":\"dtblxpk\",\"percentComplete\":5.4994345,\"startTime\":\"2021-03-11T11:00:19Z\",\"endTime\":\"2021-02-25T09:30:02Z\",\"operations\":[{\"id\":\"kincnremeh\",\"resourceId\":\"izhceumoqodkadp\",\"name\":\"ibngqladyw\",\"status\":\"xwhydtluvv\",\"percentComplete\":83.74028,\"startTime\":\"2021-06-14T02:58:28Z\",\"endTime\":\"2021-10-16T20:00:10Z\",\"operations\":[{\"id\":\"mlowuowhl\",\"resourceId\":\"nwyrmouv\",\"name\":\"gmokzkltrfowt\",\"status\":\"vrfmvlihcvjd\",\"percentComplete\":63.08274,\"startTime\":\"2021-07-16T20:14:45Z\",\"endTime\":\"2021-07-22T00:47:16Z\",\"operations\":[{\"status\":\"tuk\"},{\"status\":\"hdxlw\"}]},{\"id\":\"bfqz\",\"resourceId\":\"fnjyix\",\"name\":\"fratqxmbjroumzz\",\"status\":\"valqjrhuzgfxo\",\"percentComplete\":55.975597,\"startTime\":\"2021-03-25T12:43:55Z\",\"endTime\":\"2021-08-03T10:15:28Z\",\"operations\":[{\"status\":\"wpvtiotzbpdbol\"},{\"status\":\"gryfqiuasig\"}]},{\"id\":\"socnequygdjboq\",\"resourceId\":\"mtqjkqevadrmm\",\"name\":\"uawvcmjzk\",\"status\":\"iidisczskoswoqiq\",\"percentComplete\":24.43844,\"startTime\":\"2021-11-05T09:28:24Z\",\"endTime\":\"2021-03-12T04:19:04Z\",\"operations\":[{\"status\":\"rrcoi\"},{\"status\":\"sbamnppcc\"},{\"status\":\"kuztdsbezaxyfu\"},{\"status\":\"zxuizhyhnepkpe\"}]},{\"id\":\"rx\",\"resourceId\":\"ubxdukecpxdazvdh\",\"name\":\"mmkoszudb\",\"status\":\"nsntrpcaqki\",\"percentComplete\":10.727042,\"startTime\":\"2021-01-28T07:10:21Z\",\"endTime\":\"2021-07-02T06:02:13Z\",\"operations\":[{\"status\":\"lbnld\"}]}]},{\"id\":\"h\",\"resourceId\":\"zyqu\",\"name\":\"sqxutr\",\"status\":\"brruyuuatv\",\"percentComplete\":54.63494,\"startTime\":\"2021-08-31T05:43:57Z\",\"endTime\":\"2021-01-22T06:54:58Z\",\"operations\":[{\"id\":\"x\",\"resourceId\":\"nwtpcpahprz\",\"name\":\"xhmtfhocnxzc\",\"status\":\"jhngxnoq\",\"percentComplete\":81.584305,\"startTime\":\"2021-08-24T09:16:57Z\",\"endTime\":\"2021-08-17T14:16:34Z\",\"operations\":[{\"status\":\"vhdl\"},{\"status\":\"ydidwhepfwwtjf\"},{\"status\":\"o\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response - = manager.bareMetalMachines().uncordon("h", "dkygywezski", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("afygzmxieqvds", response.id()); - Assertions.assertEquals("awoijp", response.name()); - Assertions.assertEquals("dtblxpk", response.status()); - Assertions.assertEquals(5.4994345F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-11T11:00:19Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-25T09:30:02Z"), response.endTime()); - Assertions.assertEquals("kincnremeh", response.operations().get(0).id()); - Assertions.assertEquals("ibngqladyw", response.operations().get(0).name()); - Assertions.assertEquals("xwhydtluvv", response.operations().get(0).status()); - Assertions.assertEquals(83.74028F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-14T02:58:28Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-16T20:00:10Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("mlowuowhl", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("gmokzkltrfowt", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("vrfmvlihcvjd", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(63.08274F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-16T20:14:45Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T00:47:16Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("tuk", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java index 3b6b624cc7812..fb8322517b570 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BgpAdvertisementTests.java @@ -14,24 +14,24 @@ public final class BgpAdvertisementTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BgpAdvertisement model = BinaryData.fromString( - "{\"advertiseToFabric\":\"True\",\"communities\":[\"abnetshh\"],\"ipAddressPools\":[\"h\",\"d\",\"lvwiwubmwmbesl\"],\"peers\":[\"wwtppj\"]}") + "{\"advertiseToFabric\":\"True\",\"communities\":[\"riolxorjalt\",\"lmncw\"],\"ipAddressPools\":[\"bqwcsdbnwdcf\",\"ucqdpfuvglsb\",\"jcanvxbvtvudut\",\"cormr\"],\"peers\":[\"tvcof\",\"dflvkg\",\"u\",\"gdknnqv\"]}") .toObject(BgpAdvertisement.class); Assertions.assertEquals(AdvertiseToFabric.TRUE, model.advertiseToFabric()); - Assertions.assertEquals("abnetshh", model.communities().get(0)); - Assertions.assertEquals("h", model.ipAddressPools().get(0)); - Assertions.assertEquals("wwtppj", model.peers().get(0)); + Assertions.assertEquals("riolxorjalt", model.communities().get(0)); + Assertions.assertEquals("bqwcsdbnwdcf", model.ipAddressPools().get(0)); + Assertions.assertEquals("tvcof", model.peers().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BgpAdvertisement model = new BgpAdvertisement().withAdvertiseToFabric(AdvertiseToFabric.TRUE) - .withCommunities(Arrays.asList("abnetshh")) - .withIpAddressPools(Arrays.asList("h", "d", "lvwiwubmwmbesl")) - .withPeers(Arrays.asList("wwtppj")); + .withCommunities(Arrays.asList("riolxorjalt", "lmncw")) + .withIpAddressPools(Arrays.asList("bqwcsdbnwdcf", "ucqdpfuvglsb", "jcanvxbvtvudut", "cormr")) + .withPeers(Arrays.asList("tvcof", "dflvkg", "u", "gdknnqv")); model = BinaryData.fromObject(model).toObject(BgpAdvertisement.class); Assertions.assertEquals(AdvertiseToFabric.TRUE, model.advertiseToFabric()); - Assertions.assertEquals("abnetshh", model.communities().get(0)); - Assertions.assertEquals("h", model.ipAddressPools().get(0)); - Assertions.assertEquals("wwtppj", model.peers().get(0)); + Assertions.assertEquals("riolxorjalt", model.communities().get(0)); + Assertions.assertEquals("bqwcsdbnwdcf", model.ipAddressPools().get(0)); + Assertions.assertEquals("tvcof", model.peers().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteMockTests.java deleted file mode 100644 index b9af83e84b0e8..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/BmcKeySetsDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BmcKeySetsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.bmcKeySets().delete("ekiooanduewfhv", "x", "hxzubfjzabbw", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java index 2d187e756db6a..3e819d5f6b7c1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkInnerTests.java @@ -19,50 +19,59 @@ public final class CloudServicesNetworkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudServicesNetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"yc\",\"type\":\"sne\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"z\",\"endpoints\":[{\"domainName\":\"iachbo\",\"port\":7002170087466409923},{\"domainName\":\"nrosfqpte\",\"port\":6506464827830686255},{\"domainName\":\"vypyqrimzinpv\",\"port\":2981381234458568547},{\"domainName\":\"kirsoodqxhc\",\"port\":5435378937103352415}]},{\"category\":\"hjtckwhd\",\"endpoints\":[{\"domainName\":\"ifiyipjxsqwpgrj\",\"port\":7893656903308108535},{\"domainName\":\"rcjxvsnbyxqabn\",\"port\":3303160173676492784},{\"domainName\":\"cyshurzafbljjgp\",\"port\":1259856428819267216},{\"domainName\":\"c\",\"port\":3089454434341708656}]}],\"associatedResourceIds\":[\"vbqid\"],\"clusterId\":\"ajzyul\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"jkrlkhbzhfepg\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"zloc\",\"endpoints\":[{\"domainName\":\"c\",\"port\":7962236738241202360},{\"domainName\":\"rhhbcs\",\"port\":2260430368341825992}]},{\"category\":\"majtjaod\",\"endpoints\":[{\"domainName\":\"bnbdxkqpxokajion\",\"port\":1589043930460259001},{\"domainName\":\"xg\",\"port\":4171550668589423335},{\"domainName\":\"cp\",\"port\":8018866075965400544},{\"domainName\":\"aajrm\",\"port\":5608732709320879366}]},{\"category\":\"zrlovmclwhijcoej\",\"endpoints\":[{\"domainName\":\"bzaqsqsycbkbfk\",\"port\":6954441473774697621},{\"domainName\":\"kexxppof\",\"port\":8067111908299407616},{\"domainName\":\"c\",\"port\":1700907273913635795},{\"domainName\":\"ddtocjjxhvp\",\"port\":7583874860615513488}]}],\"hybridAksClustersAssociatedIds\":[\"dzxibqeojnxqbzvd\"],\"interfaceName\":\"t\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"cbtwnpzaoqvuh\",\"hcffcyddglmjthjq\",\"wpyeicxmqciwqvh\"]},\"location\":\"ixuigdtopbobj\",\"tags\":{\"w\":\"m\"},\"id\":\"a\",\"name\":\"a\",\"type\":\"hrzayvvtpgvdf\"}") + "{\"extendedLocation\":{\"name\":\"bin\",\"type\":\"eputtmrywnuzoqf\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"zrnkcqvyxlwh\",\"endpoints\":[{\"domainName\":\"sicohoqqnwvlry\",\"port\":1033785149258539896},{\"domainName\":\"heun\",\"port\":7996518599825489896},{\"domainName\":\"gyxzk\",\"port\":2239983988505664153}]},{\"category\":\"uko\",\"endpoints\":[{\"domainName\":\"yaxuconuqszfkb\",\"port\":3729389788227031079},{\"domainName\":\"wrmjmwvvjektc\",\"port\":7747887617171116604}]},{\"category\":\"hwlrsf\",\"endpoints\":[{\"domainName\":\"zpwv\",\"port\":7697228564428335839},{\"domainName\":\"gbiqylihkaet\",\"port\":1147871738774279486},{\"domainName\":\"fcivfsnkym\",\"port\":4551899341292561087},{\"domainName\":\"hjfbebrjcxe\",\"port\":4815130126943847717}]},{\"category\":\"utttxfvjrbirp\",\"endpoints\":[{\"domainName\":\"epcyvahfnlj\",\"port\":2409777355538454717},{\"domainName\":\"j\",\"port\":8484849300760600701},{\"domainName\":\"qgidokgjljyo\",\"port\":2789821608954910023}]}],\"associatedResourceIds\":[\"bgsncghkjeszzhb\",\"jhtxfvgxbfsmxne\",\"mpvecxgodebfqk\"],\"clusterId\":\"bmpukgriwflz\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"zpuzycisp\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"mgkbrpyydhibn\",\"endpoints\":[{\"domainName\":\"qkpikadrgvtqagnb\",\"port\":3675079843223974775},{\"domainName\":\"ijggmebfsiar\",\"port\":3371222467349281870},{\"domainName\":\"cvpnazzmhjrunmpx\",\"port\":3473682696656885235}]},{\"category\":\"hrbnlankxmyskpbh\",\"endpoints\":[{\"domainName\":\"btkcxywnytnrsyn\",\"port\":531733013424860873},{\"domainName\":\"ybyxc\",\"port\":3688624800948339893},{\"domainName\":\"haaxdbabphl\",\"port\":331591758229611872},{\"domainName\":\"fkts\",\"port\":8279092425079677109}]},{\"category\":\"cocmnyyaztt\",\"endpoints\":[{\"domainName\":\"wwrq\",\"port\":7876922791898544073},{\"domainName\":\"ckzywbiexzfeyue\",\"port\":2309761991490604961}]}],\"hybridAksClustersAssociatedIds\":[\"jwbhqwalmuz\"],\"interfaceName\":\"xaepdkzjancuxr\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"v\",\"bniwdj\",\"wz\",\"s\"]},\"location\":\"pgn\",\"tags\":{\"pzxbz\":\"x\"},\"id\":\"fzab\",\"name\":\"lcuhxwtctyqiklb\",\"type\":\"ovplw\"}") .toObject(CloudServicesNetworkInner.class); - Assertions.assertEquals("ixuigdtopbobj", model.location()); - Assertions.assertEquals("m", model.tags().get("w")); - Assertions.assertEquals("yc", model.extendedLocation().name()); - Assertions.assertEquals("sne", model.extendedLocation().type()); - Assertions.assertEquals("z", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("iachbo", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(7002170087466409923L, + Assertions.assertEquals("pgn", model.location()); + Assertions.assertEquals("x", model.tags().get("pzxbz")); + Assertions.assertEquals("bin", model.extendedLocation().name()); + Assertions.assertEquals("eputtmrywnuzoqf", model.extendedLocation().type()); + Assertions.assertEquals("zrnkcqvyxlwh", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("sicohoqqnwvlry", + model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(1033785149258539896L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, model.enableDefaultEgressEndpoints()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudServicesNetworkInner model - = new CloudServicesNetworkInner().withLocation("ixuigdtopbobj") - .withTags(mapOf("w", "m")) - .withExtendedLocation(new ExtendedLocation().withName("yc").withType("sne")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("z") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("iachbo").withPort(7002170087466409923L), - new EndpointDependency().withDomainName("nrosfqpte").withPort(6506464827830686255L), - new EndpointDependency().withDomainName("vypyqrimzinpv").withPort(2981381234458568547L), - new EndpointDependency().withDomainName("kirsoodqxhc").withPort(5435378937103352415L))), - new EgressEndpoint().withCategory("hjtckwhd") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("ifiyipjxsqwpgrj").withPort(7893656903308108535L), - new EndpointDependency().withDomainName("rcjxvsnbyxqabn").withPort(3303160173676492784L), - new EndpointDependency().withDomainName("cyshurzafbljjgp").withPort(1259856428819267216L), - new EndpointDependency().withDomainName("c").withPort(3089454434341708656L))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE); + CloudServicesNetworkInner model = new CloudServicesNetworkInner().withLocation("pgn") + .withTags(mapOf("pzxbz", "x")) + .withExtendedLocation(new ExtendedLocation().withName("bin").withType("eputtmrywnuzoqf")) + .withAdditionalEgressEndpoints(Arrays.asList( + new EgressEndpoint().withCategory("zrnkcqvyxlwh") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("sicohoqqnwvlry").withPort(1033785149258539896L), + new EndpointDependency().withDomainName("heun").withPort(7996518599825489896L), + new EndpointDependency().withDomainName("gyxzk").withPort(2239983988505664153L))), + new EgressEndpoint().withCategory("uko") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("yaxuconuqszfkb").withPort(3729389788227031079L), + new EndpointDependency().withDomainName("wrmjmwvvjektc").withPort(7747887617171116604L))), + new EgressEndpoint().withCategory("hwlrsf") + .withEndpoints( + Arrays.asList(new EndpointDependency().withDomainName("zpwv").withPort(7697228564428335839L), + new EndpointDependency().withDomainName("gbiqylihkaet").withPort(1147871738774279486L), + new EndpointDependency().withDomainName("fcivfsnkym").withPort(4551899341292561087L), + new EndpointDependency().withDomainName("hjfbebrjcxe").withPort(4815130126943847717L))), + new EgressEndpoint().withCategory("utttxfvjrbirp") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("epcyvahfnlj").withPort(2409777355538454717L), + new EndpointDependency().withDomainName("j").withPort(8484849300760600701L), + new EndpointDependency().withDomainName("qgidokgjljyo").withPort(2789821608954910023L))))) + .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE); model = BinaryData.fromObject(model).toObject(CloudServicesNetworkInner.class); - Assertions.assertEquals("ixuigdtopbobj", model.location()); - Assertions.assertEquals("m", model.tags().get("w")); - Assertions.assertEquals("yc", model.extendedLocation().name()); - Assertions.assertEquals("sne", model.extendedLocation().type()); - Assertions.assertEquals("z", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("iachbo", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(7002170087466409923L, + Assertions.assertEquals("pgn", model.location()); + Assertions.assertEquals("x", model.tags().get("pzxbz")); + Assertions.assertEquals("bin", model.extendedLocation().name()); + Assertions.assertEquals("eputtmrywnuzoqf", model.extendedLocation().type()); + Assertions.assertEquals("zrnkcqvyxlwh", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("sicohoqqnwvlry", + model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(1033785149258539896L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, model.enableDefaultEgressEndpoints()); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java index 58f375f7cc961..2950eccf1b5b1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkListTests.java @@ -20,39 +20,100 @@ public final class CloudServicesNetworkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudServicesNetworkList model = BinaryData.fromString( - "{\"nextLink\":\"yypnddhsgcbacphe\",\"value\":[{\"extendedLocation\":{\"name\":\"tynqgoul\",\"type\":\"ndlik\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"gfgibm\",\"endpoints\":[{\"domainName\":\"gakeqsr\"}]}],\"associatedResourceIds\":[\"zqqedq\",\"tbciqfouflmm\",\"kzsmodm\",\"lougpbkw\"],\"clusterId\":\"utduqktapspwgcu\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"mkdo\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"bmdg\",\"endpoints\":[{\"domainName\":\"jfddgmbmbe\"}]},{\"category\":\"ppbhtqqrolfp\",\"endpoints\":[{\"domainName\":\"s\"},{\"domainName\":\"lgbquxig\"},{\"domainName\":\"yjgzjaoyfhrtxiln\"}]},{\"category\":\"rkujy\",\"endpoints\":[{\"domainName\":\"l\"},{\"domainName\":\"juvf\"},{\"domainName\":\"awrlyx\"}]}],\"hybridAksClustersAssociatedIds\":[\"cpr\",\"nwbxgjvtbvpyssz\"],\"interfaceName\":\"rujqg\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"uqfprwzw\",\"nguitnwuizgazxu\"]},\"location\":\"zuckyfi\",\"tags\":{\"zwdzuh\":\"idf\",\"wxmnteiwao\":\"ymwisdkft\"},\"id\":\"vkmijcmmxdcuf\",\"name\":\"fsrpymzidnse\",\"type\":\"cxtbzsg\"}]}") + "{\"nextLink\":\"yb\",\"value\":[{\"extendedLocation\":{\"name\":\"e\",\"type\":\"qytbciq\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"lmmnkzsmodmglo\",\"endpoints\":[{\"domainName\":\"pbkwtmu\"},{\"domainName\":\"duqkt\"},{\"domainName\":\"pspwgcuertu\"}]},{\"category\":\"kdosvqw\",\"endpoints\":[{\"domainName\":\"mdgbbjfdd\"}]}],\"associatedResourceIds\":[\"mbe\",\"ppbhtqqrolfp\",\"psalgbqux\",\"gjyjgzjaoyfhrtxi\"],\"clusterId\":\"erkujys\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"uvfqawrlyxwj\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"nwbxgjvtbvpyssz\",\"endpoints\":[{\"domainName\":\"rujqg\"}]},{\"category\":\"hmuouqfprwzwbn\",\"endpoints\":[{\"domainName\":\"itnwuizgazxufi\"},{\"domainName\":\"uckyf\"}]},{\"category\":\"hr\",\"endpoints\":[{\"domainName\":\"dfvzwdzuhty\"}]},{\"category\":\"wisdkft\",\"endpoints\":[{\"domainName\":\"xmnteiwaop\"},{\"domainName\":\"km\"},{\"domainName\":\"jcmmxdcufufsrp\"}]}],\"hybridAksClustersAssociatedIds\":[\"idnsezcxtb\",\"sgfyccsnew\",\"dwzjeiach\",\"oosflnr\"],\"interfaceName\":\"fqpte\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"ypyqrimzinp\",\"swjdkirso\",\"dqxhcrmnohjtckwh\",\"soifiyipjxsqw\"]},\"location\":\"rjb\",\"tags\":{\"ocpcy\":\"rcjxvsnbyxqabn\",\"gpbtoqcjmklj\":\"hurzafblj\",\"qajzyulpkudjkr\":\"vbqid\"},\"id\":\"khbzhfepgzg\",\"name\":\"e\",\"type\":\"zloc\"},{\"extendedLocation\":{\"name\":\"scpai\",\"type\":\"rhhbcs\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"majtjaod\",\"endpoints\":[{\"domainName\":\"bnbdxkqpxokajion\"},{\"domainName\":\"imexgstxgcpodgma\"},{\"domainName\":\"jrmvdjwzrlo\"},{\"domainName\":\"mcl\"}]},{\"category\":\"hijco\",\"endpoints\":[{\"domainName\":\"ctbzaq\"},{\"domainName\":\"qsycbkbfkgu\"}]},{\"category\":\"dkexxppofm\",\"endpoints\":[{\"domainName\":\"x\"},{\"domainName\":\"fjpgddtocjjxhvp\"},{\"domainName\":\"o\"},{\"domainName\":\"exhd\"}]}],\"associatedResourceIds\":[\"bqe\"],\"clusterId\":\"nxqbzvddn\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"eic\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"zao\",\"endpoints\":[{\"domainName\":\"uhrhcffcyddgl\"},{\"domainName\":\"jthjqkwpyei\"},{\"domainName\":\"xmqci\"},{\"domainName\":\"q\"}]},{\"category\":\"hkh\",\"endpoints\":[{\"domainName\":\"uigdtopbobjog\"},{\"domainName\":\"m\"},{\"domainName\":\"w\"}]},{\"category\":\"a\",\"endpoints\":[{\"domainName\":\"uhrzayvvt\"}]}],\"hybridAksClustersAssociatedIds\":[\"dfgiot\",\"ftutqxlngxlefgu\"],\"interfaceName\":\"xkrxdqmi\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"rvqdra\",\"hjybigehoqfbo\"]},\"location\":\"kanyktzlcuiywg\",\"tags\":{\"gpphrcgyn\":\"gndrvynh\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\",\"pmivkwlzu\":\"c\",\"ebxetqgtzxdp\":\"ccfwnfnbacfion\"},\"id\":\"qbqqwxr\",\"name\":\"feallnwsu\",\"type\":\"isnjampmngnz\"},{\"extendedLocation\":{\"name\":\"c\",\"type\":\"aqw\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"cbonqvpk\",\"endpoints\":[{\"domainName\":\"rxnjeaseipheofl\"},{\"domainName\":\"keyyi\"},{\"domainName\":\"nj\"},{\"domainName\":\"dlwtgrhpdj\"}]},{\"category\":\"jumasx\",\"endpoints\":[{\"domainName\":\"jpqyegu\"}]},{\"category\":\"lhbxxhejjzzvdud\",\"endpoints\":[{\"domainName\":\"dslfhotwmcy\"},{\"domainName\":\"pwlbjnpg\"},{\"domainName\":\"cftadeh\"}]}],\"associatedResourceIds\":[\"tyfsoppusuesn\",\"wd\"],\"clusterId\":\"bavo\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"mohctb\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"xdn\",\"endpoints\":[{\"domainName\":\"vo\"},{\"domainName\":\"gujjugwdkcglh\"},{\"domainName\":\"lazjdyggdtjixhbk\"}]},{\"category\":\"ofqweykhmenevfye\",\"endpoints\":[{\"domainName\":\"whybcib\"},{\"domainName\":\"yvdcsitynnaa\"},{\"domainName\":\"dectehfiqsc\"}]},{\"category\":\"eypvhezrkg\",\"endpoints\":[{\"domainName\":\"c\"},{\"domainName\":\"refovgmkqsleyyvx\"},{\"domainName\":\"qjpkcattpngjcrc\"}]},{\"category\":\"zsqpjhvmdajvny\",\"endpoints\":[{\"domainName\":\"unqecanoae\"},{\"domainName\":\"pfhyhl\"},{\"domainName\":\"rpmopjmc\"}]}],\"hybridAksClustersAssociatedIds\":[\"u\"],\"interfaceName\":\"thfuiuaodsfcpkvx\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"zmyzydagf\",\"axbezyiuo\",\"ktwh\"]},\"location\":\"xw\",\"tags\":{\"mbsureximo\":\"q\",\"fksymddystki\":\"yocf\"},\"id\":\"uxh\",\"name\":\"yudxorrqnbp\",\"type\":\"czvyifq\"},{\"extendedLocation\":{\"name\":\"vkd\",\"type\":\"jsllrmv\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"atkpnp\",\"endpoints\":[{\"domainName\":\"exxbczwtr\"},{\"domainName\":\"wiqzbqjvsovmyo\"},{\"domainName\":\"acspkwl\"}]},{\"category\":\"zdobpxjmflbvvnch\",\"endpoints\":[{\"domainName\":\"cciw\"},{\"domainName\":\"zjuqkhrsaj\"},{\"domainName\":\"wkuofoskghsauu\"},{\"domainName\":\"mjmvxieduugidyjr\"}]},{\"category\":\"f\",\"endpoints\":[{\"domainName\":\"aos\"}]},{\"category\":\"e\",\"endpoints\":[{\"domainName\":\"sonpclhocohs\"},{\"domainName\":\"kevle\"},{\"domainName\":\"gz\"}]}],\"associatedResourceIds\":[\"hfmvfaxkffe\"],\"clusterId\":\"th\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"zy\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"zsbbzoggigrxwb\",\"endpoints\":[{\"domainName\":\"vjxxjnsp\"}]}],\"hybridAksClustersAssociatedIds\":[\"tko\",\"nkoukn\",\"udwtiukbl\"],\"interfaceName\":\"gkpocipazyxoe\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"npiucgygevqznty\",\"mrbpizcdrqj\",\"dpydn\"]},\"location\":\"hxdeoejz\",\"tags\":{\"hajdeyeamdpha\":\"ifsjttgzfbishcb\"},\"id\":\"alpbuxwgipwhon\",\"name\":\"wkgshwa\",\"type\":\"kix\"}]}") .toObject(CloudServicesNetworkList.class); - Assertions.assertEquals("yypnddhsgcbacphe", model.nextLink()); - Assertions.assertEquals("zuckyfi", model.value().get(0).location()); - Assertions.assertEquals("idf", model.value().get(0).tags().get("zwdzuh")); - Assertions.assertEquals("tynqgoul", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("ndlik", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("gfgibm", model.value().get(0).additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("gakeqsr", + Assertions.assertEquals("yb", model.nextLink()); + Assertions.assertEquals("rjb", model.value().get(0).location()); + Assertions.assertEquals("rcjxvsnbyxqabn", model.value().get(0).tags().get("ocpcy")); + Assertions.assertEquals("e", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("qytbciq", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("lmmnkzsmodmglo", model.value().get(0).additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("pbkwtmu", model.value().get(0).additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, model.value().get(0).enableDefaultEgressEndpoints()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudServicesNetworkList model = new CloudServicesNetworkList().withNextLink("yypnddhsgcbacphe") - .withValue(Arrays.asList(new CloudServicesNetworkInner().withLocation("zuckyfi") - .withTags(mapOf("zwdzuh", "idf", "wxmnteiwao", "ymwisdkft")) - .withExtendedLocation(new ExtendedLocation().withName("tynqgoul").withType("ndlik")) - .withAdditionalEgressEndpoints(Arrays.asList(new EgressEndpoint().withCategory("gfgibm") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("gakeqsr"))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE))); + CloudServicesNetworkList model = new CloudServicesNetworkList().withNextLink("yb") + .withValue(Arrays.asList( + new CloudServicesNetworkInner().withLocation("rjb") + .withTags(mapOf("ocpcy", "rcjxvsnbyxqabn", "gpbtoqcjmklj", "hurzafblj", "qajzyulpkudjkr", "vbqid")) + .withExtendedLocation(new ExtendedLocation().withName("e").withType("qytbciq")) + .withAdditionalEgressEndpoints(Arrays.asList( + new EgressEndpoint().withCategory("lmmnkzsmodmglo") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("pbkwtmu"), + new EndpointDependency().withDomainName("duqkt"), + new EndpointDependency().withDomainName("pspwgcuertu"))), + new EgressEndpoint().withCategory("kdosvqw") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("mdgbbjfdd"))))) + .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE), + new CloudServicesNetworkInner().withLocation("kanyktzlcuiywg") + .withTags(mapOf("gpphrcgyn", "gndrvynh", "fsxlzevgbmqjqa", "ocpecfvmmco", "pmivkwlzu", "c", + "ebxetqgtzxdp", "ccfwnfnbacfion")) + .withExtendedLocation(new ExtendedLocation().withName("scpai").withType("rhhbcs")) + .withAdditionalEgressEndpoints(Arrays.asList( + new EgressEndpoint().withCategory("majtjaod") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("bnbdxkqpxokajion"), + new EndpointDependency().withDomainName("imexgstxgcpodgma"), + new EndpointDependency().withDomainName("jrmvdjwzrlo"), + new EndpointDependency().withDomainName("mcl"))), + new EgressEndpoint().withCategory("hijco") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("ctbzaq"), + new EndpointDependency().withDomainName("qsycbkbfkgu"))), + new EgressEndpoint().withCategory("dkexxppofm") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("x"), + new EndpointDependency().withDomainName("fjpgddtocjjxhvp"), + new EndpointDependency().withDomainName("o"), + new EndpointDependency().withDomainName("exhd"))))) + .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE), + new CloudServicesNetworkInner().withLocation("xw") + .withTags(mapOf("mbsureximo", "q", "fksymddystki", "yocf")) + .withExtendedLocation(new ExtendedLocation().withName("c").withType("aqw")) + .withAdditionalEgressEndpoints(Arrays.asList( + new EgressEndpoint().withCategory("cbonqvpk") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("rxnjeaseipheofl"), + new EndpointDependency().withDomainName("keyyi"), + new EndpointDependency().withDomainName("nj"), + new EndpointDependency().withDomainName("dlwtgrhpdj"))), + new EgressEndpoint().withCategory("jumasx") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("jpqyegu"))), + new EgressEndpoint().withCategory("lhbxxhejjzzvdud") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("dslfhotwmcy"), + new EndpointDependency().withDomainName("pwlbjnpg"), + new EndpointDependency().withDomainName("cftadeh"))))) + .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE), + new CloudServicesNetworkInner().withLocation("hxdeoejz") + .withTags(mapOf("hajdeyeamdpha", "ifsjttgzfbishcb")) + .withExtendedLocation(new ExtendedLocation().withName("vkd").withType("jsllrmv")) + .withAdditionalEgressEndpoints(Arrays.asList( + new EgressEndpoint().withCategory("atkpnp") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("exxbczwtr"), + new EndpointDependency().withDomainName("wiqzbqjvsovmyo"), + new EndpointDependency().withDomainName("acspkwl"))), + new EgressEndpoint().withCategory("zdobpxjmflbvvnch") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("cciw"), + new EndpointDependency().withDomainName("zjuqkhrsaj"), + new EndpointDependency().withDomainName("wkuofoskghsauu"), + new EndpointDependency().withDomainName("mjmvxieduugidyjr"))), + new EgressEndpoint().withCategory("f") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("aos"))), + new EgressEndpoint().withCategory("e") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("sonpclhocohs"), + new EndpointDependency().withDomainName("kevle"), + new EndpointDependency().withDomainName("gz"))))) + .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE))); model = BinaryData.fromObject(model).toObject(CloudServicesNetworkList.class); - Assertions.assertEquals("yypnddhsgcbacphe", model.nextLink()); - Assertions.assertEquals("zuckyfi", model.value().get(0).location()); - Assertions.assertEquals("idf", model.value().get(0).tags().get("zwdzuh")); - Assertions.assertEquals("tynqgoul", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("ndlik", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("gfgibm", model.value().get(0).additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("gakeqsr", + Assertions.assertEquals("yb", model.nextLink()); + Assertions.assertEquals("rjb", model.value().get(0).location()); + Assertions.assertEquals("rcjxvsnbyxqabn", model.value().get(0).tags().get("ocpcy")); + Assertions.assertEquals("e", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("qytbciq", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("lmmnkzsmodmglo", model.value().get(0).additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("pbkwtmu", model.value().get(0).additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, model.value().get(0).enableDefaultEgressEndpoints()); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java index e855577b964c0..cdf5f4b4faed9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchParametersTests.java @@ -18,47 +18,47 @@ public final class CloudServicesNetworkPatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudServicesNetworkPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"thjtwk\",\"endpoints\":[{\"domainName\":\"osrxuzvoa\",\"port\":9197432395507081242},{\"domainName\":\"q\",\"port\":4018804098340453728}]},{\"category\":\"gbzahgxqdlyr\",\"endpoints\":[{\"domainName\":\"tlaprltzkatb\",\"port\":8174172127943547857},{\"domainName\":\"nnbsoqeqa\",\"port\":8492998195204098966},{\"domainName\":\"lagun\",\"port\":9211068840981575117},{\"domainName\":\"ebwlnbmhyreeudzq\",\"port\":1466138960999741534}]},{\"category\":\"dqmjxly\",\"endpoints\":[{\"domainName\":\"glgou\",\"port\":7389766894389519511}]},{\"category\":\"jjyuojqtobax\",\"endpoints\":[{\"domainName\":\"eytu\",\"port\":4612686172840970711}]}],\"enableDefaultEgressEndpoints\":\"True\"},\"tags\":{\"nkqbhsyrq\":\"u\",\"l\":\"njqhdenxa\"}}") + "{\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"czytqjtwhauunfpr\",\"endpoints\":[{\"domainName\":\"letlx\",\"port\":2409915169148121323},{\"domainName\":\"ddoui\",\"port\":8874077654693108380},{\"domainName\":\"waziy\",\"port\":3801503264233403815},{\"domainName\":\"qwzdvpiwhxq\",\"port\":4710676640752400099}]},{\"category\":\"maajquhuxylr\",\"endpoints\":[{\"domainName\":\"m\",\"port\":869139068386354509},{\"domainName\":\"bmzyospsps\",\"port\":5969049516566939665}]},{\"category\":\"kyjpmspbps\",\"endpoints\":[{\"domainName\":\"fppyogtieyujtvcz\",\"port\":1126499421836361150}]}],\"enableDefaultEgressEndpoints\":\"False\"},\"tags\":{\"glnkvxlxpagl\":\"unjdx\",\"hpzvuqdflvoniyp\":\"ivbgkcv\",\"idibgqjxgpn\":\"pubcpzgpxtivhjk\",\"kqmhhaowjr\":\"hgovfgp\"}}") .toObject(CloudServicesNetworkPatchParameters.class); - Assertions.assertEquals("u", model.tags().get("nkqbhsyrq")); - Assertions.assertEquals("thjtwk", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("osrxuzvoa", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(9197432395507081242L, + Assertions.assertEquals("unjdx", model.tags().get("glnkvxlxpagl")); + Assertions.assertEquals("czytqjtwhauunfpr", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("letlx", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(2409915169148121323L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, model.enableDefaultEgressEndpoints()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CloudServicesNetworkPatchParameters model - = new CloudServicesNetworkPatchParameters().withTags(mapOf("nkqbhsyrq", "u", "l", "njqhdenxa")) - .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("thjtwk") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("osrxuzvoa").withPort(9197432395507081242L), - new EndpointDependency().withDomainName("q").withPort(4018804098340453728L))), - new EgressEndpoint().withCategory("gbzahgxqdlyr") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("tlaprltzkatb").withPort(8174172127943547857L), - new EndpointDependency().withDomainName("nnbsoqeqa").withPort(8492998195204098966L), - new EndpointDependency().withDomainName("lagun").withPort(9211068840981575117L), - new EndpointDependency().withDomainName("ebwlnbmhyreeudzq") - .withPort(1466138960999741534L))), - new EgressEndpoint().withCategory("dqmjxly") - .withEndpoints(Arrays - .asList(new EndpointDependency().withDomainName("glgou").withPort(7389766894389519511L))), - new EgressEndpoint().withCategory("jjyuojqtobax") - .withEndpoints(Arrays - .asList(new EndpointDependency().withDomainName("eytu").withPort(4612686172840970711L))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE); + = new CloudServicesNetworkPatchParameters() + .withTags(mapOf("glnkvxlxpagl", "unjdx", "hpzvuqdflvoniyp", "ivbgkcv", "idibgqjxgpn", "pubcpzgpxtivhjk", + "kqmhhaowjr", "hgovfgp")) + .withAdditionalEgressEndpoints(Arrays + .asList( + new EgressEndpoint().withCategory("czytqjtwhauunfpr") + .withEndpoints(Arrays + .asList(new EndpointDependency().withDomainName("letlx").withPort(2409915169148121323L), + new EndpointDependency().withDomainName("ddoui").withPort(8874077654693108380L), + new EndpointDependency().withDomainName("waziy").withPort(3801503264233403815L), + new EndpointDependency().withDomainName("qwzdvpiwhxq") + .withPort(4710676640752400099L))), + new EgressEndpoint().withCategory("maajquhuxylr") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("m").withPort(869139068386354509L), + new EndpointDependency().withDomainName("bmzyospsps").withPort(5969049516566939665L))), + new EgressEndpoint().withCategory("kyjpmspbps") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("fppyogtieyujtvcz") + .withPort(1126499421836361150L))))) + .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE); model = BinaryData.fromObject(model).toObject(CloudServicesNetworkPatchParameters.class); - Assertions.assertEquals("u", model.tags().get("nkqbhsyrq")); - Assertions.assertEquals("thjtwk", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("osrxuzvoa", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(9197432395507081242L, + Assertions.assertEquals("unjdx", model.tags().get("glnkvxlxpagl")); + Assertions.assertEquals("czytqjtwhauunfpr", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("letlx", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(2409915169148121323L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, model.enableDefaultEgressEndpoints()); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java index e195d7baecbcb..edc24819d8d30 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPatchPropertiesTests.java @@ -16,11 +16,11 @@ public final class CloudServicesNetworkPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudServicesNetworkPatchProperties model = BinaryData.fromString( - "{\"additionalEgressEndpoints\":[{\"category\":\"kdk\",\"endpoints\":[{\"domainName\":\"mjnnawtq\",\"port\":608163940967620042},{\"domainName\":\"uckpggqoweyir\",\"port\":4448034441017849158},{\"domainName\":\"sn\",\"port\":1508031090383882102}]},{\"category\":\"qqmpizruwnpqx\",\"endpoints\":[{\"domainName\":\"iwfcngjsa\",\"port\":9178387738992301365}]},{\"category\":\"xtmkzjvkviir\",\"endpoints\":[{\"domainName\":\"fgrwsdpgratzvz\",\"port\":8361909165604899283},{\"domainName\":\"y\",\"port\":1669449067749788452}]},{\"category\":\"ctbrxkjzwrgxffm\",\"endpoints\":[{\"domainName\":\"kwfbkgo\",\"port\":1191343314384683416},{\"domainName\":\"pdbydpizqacln\",\"port\":7563298603289221495},{\"domainName\":\"iygnugjknfsmfctt\",\"port\":7023136561012386480},{\"domainName\":\"yilflqoiquvrehmr\",\"port\":9113082198378119154}]}],\"enableDefaultEgressEndpoints\":\"True\"}") + "{\"additionalEgressEndpoints\":[{\"category\":\"uporqzdfu\",\"endpoints\":[{\"domainName\":\"zvkfv\",\"port\":1214899172154978502},{\"domainName\":\"mx\",\"port\":4727714807604035752},{\"domainName\":\"okmvkhlggd\",\"port\":2004260246553251332},{\"domainName\":\"zqkzszuwi\",\"port\":4666972978332386288}]},{\"category\":\"xxhljfpgpic\",\"endpoints\":[{\"domainName\":\"nzhrgmqgjsxvpqcb\",\"port\":4991473010028453976},{\"domainName\":\"odth\",\"port\":4486642012912512601},{\"domainName\":\"vriibakclacjfr\",\"port\":6094624010388997656}]},{\"category\":\"sxauzlwvsgmwohqf\",\"endpoints\":[{\"domainName\":\"zvuxm\",\"port\":5429285928052285759}]},{\"category\":\"vthn\",\"endpoints\":[{\"domainName\":\"zt\",\"port\":2859990961700396101}]}],\"enableDefaultEgressEndpoints\":\"True\"}") .toObject(CloudServicesNetworkPatchProperties.class); - Assertions.assertEquals("kdk", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("mjnnawtq", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(608163940967620042L, + Assertions.assertEquals("uporqzdfu", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("zvkfv", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(1214899172154978502L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, model.enableDefaultEgressEndpoints()); @@ -30,42 +30,29 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { CloudServicesNetworkPatchProperties model = new CloudServicesNetworkPatchProperties() - .withAdditionalEgressEndpoints( - Arrays - .asList( - new EgressEndpoint().withCategory("kdk") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("mjnnawtq").withPort(608163940967620042L), - new EndpointDependency().withDomainName("uckpggqoweyir") - .withPort(4448034441017849158L), - new EndpointDependency().withDomainName("sn").withPort(1508031090383882102L))), - new EgressEndpoint() - .withCategory("qqmpizruwnpqx") - .withEndpoints( - Arrays.asList(new EndpointDependency().withDomainName("iwfcngjsa") - .withPort(9178387738992301365L))), - new EgressEndpoint() - .withCategory("xtmkzjvkviir") - .withEndpoints( - Arrays.asList( - new EndpointDependency() - .withDomainName("fgrwsdpgratzvz") - .withPort(8361909165604899283L), - new EndpointDependency().withDomainName("y").withPort(1669449067749788452L))), - new EgressEndpoint().withCategory("ctbrxkjzwrgxffm") - .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("kwfbkgo").withPort(1191343314384683416L), - new EndpointDependency().withDomainName("pdbydpizqacln") - .withPort(7563298603289221495L), - new EndpointDependency().withDomainName("iygnugjknfsmfctt") - .withPort(7023136561012386480L), - new EndpointDependency().withDomainName("yilflqoiquvrehmr") - .withPort(9113082198378119154L))))) + .withAdditionalEgressEndpoints(Arrays.asList( + new EgressEndpoint().withCategory("uporqzdfu") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("zvkfv").withPort(1214899172154978502L), + new EndpointDependency().withDomainName("mx").withPort(4727714807604035752L), + new EndpointDependency().withDomainName("okmvkhlggd").withPort(2004260246553251332L), + new EndpointDependency().withDomainName("zqkzszuwi").withPort(4666972978332386288L))), + new EgressEndpoint().withCategory("xxhljfpgpic") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("nzhrgmqgjsxvpqcb").withPort(4991473010028453976L), + new EndpointDependency().withDomainName("odth").withPort(4486642012912512601L), + new EndpointDependency().withDomainName("vriibakclacjfr").withPort(6094624010388997656L))), + new EgressEndpoint().withCategory("sxauzlwvsgmwohqf") + .withEndpoints(Arrays + .asList(new EndpointDependency().withDomainName("zvuxm").withPort(5429285928052285759L))), + new EgressEndpoint().withCategory("vthn") + .withEndpoints(Arrays + .asList(new EndpointDependency().withDomainName("zt").withPort(2859990961700396101L))))) .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE); model = BinaryData.fromObject(model).toObject(CloudServicesNetworkPatchProperties.class); - Assertions.assertEquals("kdk", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("mjnnawtq", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(608163940967620042L, + Assertions.assertEquals("uporqzdfu", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("zvkfv", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(1214899172154978502L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, model.enableDefaultEgressEndpoints()); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java index cfb777d120f8f..de0eca7a4257b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworkPropertiesTests.java @@ -16,12 +16,11 @@ public final class CloudServicesNetworkPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudServicesNetworkProperties model = BinaryData.fromString( - "{\"additionalEgressEndpoints\":[{\"category\":\"tkftutqxlngx\",\"endpoints\":[{\"domainName\":\"fgugnxkrxdqmid\",\"port\":6800420676916675082},{\"domainName\":\"rvqdra\",\"port\":6644182027847311754}]},{\"category\":\"big\",\"endpoints\":[{\"domainName\":\"oqfbowskanyk\",\"port\":6188020528255703511}]},{\"category\":\"u\",\"endpoints\":[{\"domainName\":\"wgqyw\",\"port\":5201815773094628590}]},{\"category\":\"vynhzgpphrcg\",\"endpoints\":[{\"domainName\":\"cocpecfvmmcoofsx\",\"port\":8420514960019212197}]}],\"associatedResourceIds\":[\"m\"],\"clusterId\":\"qabcypm\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"lzu\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"nfnbacfionlebxe\",\"endpoints\":[{\"domainName\":\"gtzxdpn\",\"port\":3640331879972668788}]},{\"category\":\"wxrjfeallnwsub\",\"endpoints\":[{\"domainName\":\"njampm\",\"port\":5865872842235747459},{\"domainName\":\"scxaq\",\"port\":5239803510507724565},{\"domainName\":\"hcbonqvpkvlr\",\"port\":4718352678376019294}]}],\"hybridAksClustersAssociatedIds\":[\"eipheoflokeyy\",\"enjbdlwtgrhp\"],\"interfaceName\":\"pj\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"azjpqyegualhbxxh\",\"jj\",\"zvdudgwdslfhotwm\"]}") + "{\"additionalEgressEndpoints\":[{\"category\":\"vgyuguos\",\"endpoints\":[{\"domainName\":\"kfssxqukkf\",\"port\":4186813659074842761},{\"domainName\":\"gsxnkjzkdeslpv\",\"port\":6216827827800062431},{\"domainName\":\"i\",\"port\":7595800404721280957},{\"domainName\":\"xpkd\",\"port\":4555004603900701815}]},{\"category\":\"iuebbaumny\",\"endpoints\":[{\"domainName\":\"ped\",\"port\":2245881351334058994},{\"domainName\":\"a\",\"port\":4279977584762450949},{\"domainName\":\"smtxpsieb\",\"port\":4922743900723589322},{\"domainName\":\"pesapskrdqmhjj\",\"port\":3744961131672427134}]},{\"category\":\"dwkyzxuu\",\"endpoints\":[{\"domainName\":\"ncwscwsvlxoto\",\"port\":8759230338879353208}]}],\"associatedResourceIds\":[\"qsx\",\"nmic\",\"kvceoveilovnotyf\"],\"clusterId\":\"cnjbkcnxdhbt\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"ywpnvjt\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"mclfplphoxuscr\",\"endpoints\":[{\"domainName\":\"bgyepsbj\",\"port\":1292231161047660234}]},{\"category\":\"ugxywpmueef\",\"endpoints\":[{\"domainName\":\"wfqkquj\",\"port\":4933297733628720564},{\"domainName\":\"yonobgl\",\"port\":2037860481850907584},{\"domainName\":\"xtccmg\",\"port\":4531156159452032810},{\"domainName\":\"ytlmoyrxvwfud\",\"port\":7047535531175801519}]},{\"category\":\"txhdzh\",\"endpoints\":[{\"domainName\":\"qj\",\"port\":1196903059215633177},{\"domainName\":\"frlh\",\"port\":6356911616351908297},{\"domainName\":\"kyv\",\"port\":1245497822937083948}]}],\"hybridAksClustersAssociatedIds\":[\"z\",\"p\",\"kafkuwbcrnwbm\"],\"interfaceName\":\"hseyvju\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"hspkdeemao\",\"mx\"]}") .toObject(CloudServicesNetworkProperties.class); - Assertions.assertEquals("tkftutqxlngx", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("fgugnxkrxdqmid", - model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(6800420676916675082L, + Assertions.assertEquals("vgyuguos", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("kfssxqukkf", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(4186813659074842761L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, model.enableDefaultEgressEndpoints()); @@ -33,26 +32,28 @@ public void testSerialize() throws Exception { = new CloudServicesNetworkProperties() .withAdditionalEgressEndpoints( Arrays.asList( - new EgressEndpoint().withCategory("tkftutqxlngx") + new EgressEndpoint().withCategory("vgyuguos") .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("fgugnxkrxdqmid") - .withPort(6800420676916675082L), - new EndpointDependency().withDomainName("rvqdra").withPort(6644182027847311754L))), - new EgressEndpoint().withCategory("big") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("oqfbowskanyk") - .withPort(6188020528255703511L))), - new EgressEndpoint().withCategory("u") + new EndpointDependency().withDomainName("kfssxqukkf").withPort(4186813659074842761L), + new EndpointDependency().withDomainName("gsxnkjzkdeslpv") + .withPort(6216827827800062431L), + new EndpointDependency().withDomainName("i").withPort(7595800404721280957L), + new EndpointDependency().withDomainName("xpkd").withPort(4555004603900701815L))), + new EgressEndpoint().withCategory("iuebbaumny") .withEndpoints(Arrays.asList( - new EndpointDependency().withDomainName("wgqyw").withPort(5201815773094628590L))), - new EgressEndpoint().withCategory("vynhzgpphrcg") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("cocpecfvmmcoofsx") - .withPort(8420514960019212197L))))) + new EndpointDependency().withDomainName("ped").withPort(2245881351334058994L), + new EndpointDependency().withDomainName("a").withPort(4279977584762450949L), + new EndpointDependency().withDomainName("smtxpsieb").withPort(4922743900723589322L), + new EndpointDependency().withDomainName("pesapskrdqmhjj") + .withPort(3744961131672427134L))), + new EgressEndpoint().withCategory("dwkyzxuu") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("ncwscwsvlxoto") + .withPort(8759230338879353208L))))) .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE); model = BinaryData.fromObject(model).toObject(CloudServicesNetworkProperties.class); - Assertions.assertEquals("tkftutqxlngx", model.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("fgugnxkrxdqmid", - model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(6800420676916675082L, + Assertions.assertEquals("vgyuguos", model.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("kfssxqukkf", model.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(4186813659074842761L, model.additionalEgressEndpoints().get(0).endpoints().get(0).port()); Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, model.enableDefaultEgressEndpoints()); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java index 2278ae1d4940d..2a56cc2185640 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksCreateOrUpdateMockTests.java @@ -6,18 +6,15 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; import com.azure.resourcemanager.networkcloud.models.EgressEndpoint; import com.azure.resourcemanager.networkcloud.models.EndpointDependency; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.Arrays; @@ -25,61 +22,50 @@ import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class CloudServicesNetworksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"mfjhpycvjqdvdwkq\",\"type\":\"ldrlefgnaavua\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"taoutnpdct\",\"endpoints\":[{\"domainName\":\"spfefyihduyeuyld\"},{\"domainName\":\"hmtybkcgsuthhll\"},{\"domainName\":\"mwynefxexlfciatx\"}]},{\"category\":\"jrr\",\"endpoints\":[{\"domainName\":\"mdskjhhxdlajfoxc\"},{\"domainName\":\"scv\"},{\"domainName\":\"lxlhuavkrm\"}]},{\"category\":\"kmyjmkxett\",\"endpoints\":[{\"domainName\":\"lojfkqidnqto\"},{\"domainName\":\"xjhqxcsqhtkb\"},{\"domainName\":\"nqlrng\"}]}],\"associatedResourceIds\":[\"biipsnawwlqkznx\",\"hllxricctkw\",\"uqqoaj\",\"eiyglesrwvaexhdc\"],\"clusterId\":\"ceqnkbrupobehd\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"acvumepj\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"zpphepif\",\"endpoints\":[{\"domainName\":\"leqirccjclykcgxv\"},{\"domainName\":\"pjlvczuoda\"}]},{\"category\":\"punettepdjxq\",\"endpoints\":[{\"domainName\":\"koynuiylpckae\"},{\"domainName\":\"sedveskwxegqphrg\"},{\"domainName\":\"nzhctmjtsgh\"}]},{\"category\":\"bcbcpz\",\"endpoints\":[{\"domainName\":\"pzeqacdldtz\"},{\"domainName\":\"pypefcpczshnuq\"}]}],\"hybridAksClustersAssociatedIds\":[\"izupfkhu\"],\"interfaceName\":\"uszxh\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"egw\",\"iukvzwydwt\",\"haokgkskjiv\"]},\"location\":\"shajqf\",\"tags\":{\"hwu\":\"eexpgeumi\",\"dbzsx\":\"trdexyionofnin\",\"bzbcyksiv\":\"wqqrsmpcbbprtuga\",\"rftsjcwjjxs\":\"fogdrtbfcm\"},\"id\":\"mb\",\"name\":\"wvif\",\"type\":\"xkecifhocj\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"ev\",\"type\":\"sxivzrrryvei\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"kdyzatvfuzk\",\"endpoints\":[{\"domainName\":\"tjvv\"},{\"domainName\":\"uxwigsyeipqdsm\"},{\"domainName\":\"tgrqgdgkkile\"},{\"domainName\":\"lkcsmknhwtbbae\"}]}],\"associatedResourceIds\":[\"vv\",\"qfloygbdgwum\",\"xdgd\"],\"clusterId\":\"abgdexj\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"saq\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"wllcolsr\",\"endpoints\":[{\"domainName\":\"apte\"},{\"domainName\":\"hexcgjokj\"},{\"domainName\":\"jnhvlqjbekpeeks\"},{\"domainName\":\"bksdqhjvyklxesl\"}]},{\"category\":\"hhus\",\"endpoints\":[{\"domainName\":\"poq\"}]},{\"category\":\"avnwqj\",\"endpoints\":[{\"domainName\":\"o\"}]},{\"category\":\"nlejjjkxybwf\",\"endpoints\":[{\"domainName\":\"kjbztensvkzykj\"},{\"domainName\":\"jknsxfwu\"}]}],\"hybridAksClustersAssociatedIds\":[\"dpkupnqrmgjf\"],\"interfaceName\":\"kuwxeoiojfizfavk\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"cyayk\",\"mfzsbf\",\"xrzxmdewsrsxkrp\"]},\"location\":\"jazejwwviyoyp\",\"tags\":{\"hqkb\":\"brnnhjxsqw\",\"zycyqiqyhg\":\"wetp\"},\"id\":\"se\",\"name\":\"zlex\",\"type\":\"sfledyn\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); CloudServicesNetwork response = manager.cloudServicesNetworks() - .define("kskmqozzkivyhjrl") - .withRegion("tnkjjwgcwnphb") - .withExistingResourceGroup("fajs") - .withExtendedLocation(new ExtendedLocation().withName("izjixlq").withType("hefkwabsolronqq")) - .withTags(mapOf("togmhmjpjscdfpd", "y", "vgwmseharxifvqnr", "wtyg", "nvwjhrsidqpxl", "tmbpjp")) + .define("mclujyxkyxlzgs") + .withRegion("ssmzhhkuui") + .withExistingResourceGroup("uusioycblev") + .withExtendedLocation(new ExtendedLocation().withName("gkzz").withType("taf")) + .withTags(mapOf("ctekval", "q")) .withAdditionalEgressEndpoints(Arrays.asList( - new EgressEndpoint().withCategory("lqxsjxtelex") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("uqbo"), - new EndpointDependency().withDomainName("oolzqocarkuzl"))), - new EgressEndpoint().withCategory("cnn") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("snxawqyt"))), - new EgressEndpoint().withCategory("lhdyzmyckzex") - .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("akckywym"))))) - .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE) + new EgressEndpoint().withCategory("fovwmbjlzqsczpg") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("wnapfdq"), + new EndpointDependency().withDomainName("owftptnuwjtks"))), + new EgressEndpoint().withCategory("h") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("gqy"), + new EndpointDependency().withDomainName("leseyqrhvyeldo"), + new EndpointDependency().withDomainName("jv"))), + new EgressEndpoint().withCategory("kwiswskukjtas") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("wispkxk"), + new EndpointDependency().withDomainName("txfkndlqvt"))), + new EgressEndpoint().withCategory("knvgmmbugtywat") + .withEndpoints(Arrays.asList(new EndpointDependency().withDomainName("aqkue"), + new EndpointDependency().withDomainName("tgroesh"))))) + .withEnableDefaultEgressEndpoints(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE) .create(); - Assertions.assertEquals("shajqf", response.location()); - Assertions.assertEquals("eexpgeumi", response.tags().get("hwu")); - Assertions.assertEquals("mfjhpycvjqdvdwkq", response.extendedLocation().name()); - Assertions.assertEquals("ldrlefgnaavua", response.extendedLocation().type()); - Assertions.assertEquals("taoutnpdct", response.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("spfefyihduyeuyld", - response.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals("jazejwwviyoyp", response.location()); + Assertions.assertEquals("brnnhjxsqw", response.tags().get("hqkb")); + Assertions.assertEquals("ev", response.extendedLocation().name()); + Assertions.assertEquals("sxivzrrryvei", response.extendedLocation().type()); + Assertions.assertEquals("kdyzatvfuzk", response.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("tjvv", response.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, response.enableDefaultEgressEndpoints()); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteMockTests.java deleted file mode 100644 index c71ff726ed3f3..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class CloudServicesNetworksDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.cloudServicesNetworks().delete("vucnulgmnh", "evdyz", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.java index 021dc30cd95fd..310a37905696e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksGetByResourceGroupWithResponseMockTests.java @@ -6,61 +6,43 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class CloudServicesNetworksGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"fynn\",\"type\":\"muii\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"fohyk\",\"endpoints\":[{\"domainName\":\"xbbcbrw\"},{\"domainName\":\"iutgnjizbeewoiy\"},{\"domainName\":\"rvzb\"},{\"domainName\":\"uyrsrziuctix\"}]}],\"associatedResourceIds\":[\"suif\"],\"clusterId\":\"vka\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"kisw\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"hsyparybjuf\",\"endpoints\":[{\"domainName\":\"bjczjnciuiyqvlda\"},{\"domainName\":\"wvppi\"},{\"domainName\":\"qqzlgcndhz\"}]}],\"hybridAksClustersAssociatedIds\":[\"fcfsrhkhgsnx\"],\"interfaceName\":\"wkpphefsb\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"xomeikjclwzacn\",\"wpfsuqtaaz\",\"qbxyxoyfpuqqi\"]},\"location\":\"zxlhdjzqdcadwv\",\"tags\":{\"ybmrzoepnxwd\":\"zjiihjr\",\"xaurs\":\"wnjkgvfn\"},\"id\":\"ftibtyibuyvpirfq\",\"name\":\"pnqn\",\"type\":\"owsbedenrexkxbh\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"w\",\"type\":\"vcacoyv\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"izus\",\"endpoints\":[{\"domainName\":\"zlbscmnlziji\"},{\"domainName\":\"fehgmv\"}]}],\"associatedResourceIds\":[\"wyvq\",\"xrerlniylylyf\"],\"clusterId\":\"zutgqztwhghmupg\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"cdxa\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"tabenbbk\",\"endpoints\":[{\"domainName\":\"pxzuca\"},{\"domainName\":\"e\"},{\"domainName\":\"dwwnl\"},{\"domainName\":\"a\"}]},{\"category\":\"wxudgn\",\"endpoints\":[{\"domainName\":\"ookrtalvnbw\"},{\"domainName\":\"pbeme\"},{\"domainName\":\"uclvdjj\"}]},{\"category\":\"kyrdnqodx\",\"endpoints\":[{\"domainName\":\"h\"},{\"domainName\":\"hqfaqnvz\"}]}],\"hybridAksClustersAssociatedIds\":[\"yipemchgavsczuej\",\"txptlghw\"],\"interfaceName\":\"omew\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"iuh\",\"awmo\",\"ia\",\"cz\"]},\"location\":\"odrrslblxyd\",\"tags\":{\"xiwkgfbql\":\"xvv\",\"c\":\"nqkhych\"},\"id\":\"kulehurqlrq\",\"name\":\"fawey\",\"type\":\"rkphyjdxr\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); CloudServicesNetwork response = manager.cloudServicesNetworks() - .getByResourceGroupWithResponse("bdmvrscmqerndbr", "yeofltfnnxrkad", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("qxfx", "elgcmpzqjhhhqx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zxlhdjzqdcadwv", response.location()); - Assertions.assertEquals("zjiihjr", response.tags().get("ybmrzoepnxwd")); - Assertions.assertEquals("fynn", response.extendedLocation().name()); - Assertions.assertEquals("muii", response.extendedLocation().type()); - Assertions.assertEquals("fohyk", response.additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("xbbcbrw", response.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, + Assertions.assertEquals("odrrslblxyd", response.location()); + Assertions.assertEquals("xvv", response.tags().get("xiwkgfbql")); + Assertions.assertEquals("w", response.extendedLocation().name()); + Assertions.assertEquals("vcacoyv", response.extendedLocation().type()); + Assertions.assertEquals("izus", response.additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("zlbscmnlziji", + response.additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, response.enableDefaultEgressEndpoints()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java index 2e23e53f0c3b6..84f2539fc3553 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListByResourceGroupMockTests.java @@ -6,63 +6,44 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class CloudServicesNetworksListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"wdfmmpzhzzwvywr\",\"type\":\"yngydgrpxncaki\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"djrkclamggl\",\"endpoints\":[{\"domainName\":\"mfejdoqeykglty\"}]},{\"category\":\"xhqf\",\"endpoints\":[{\"domainName\":\"ka\"},{\"domainName\":\"ejsxt\"}]},{\"category\":\"gflwfgziiucijj\",\"endpoints\":[{\"domainName\":\"atlijjjr\"},{\"domainName\":\"va\"},{\"domainName\":\"caszk\"},{\"domainName\":\"xk\"}]}],\"associatedResourceIds\":[\"xetyvku\",\"mignohikkg\",\"ogjwpindedvabbxb\",\"medeil\"],\"clusterId\":\"ywfcfxzi\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"hvwyp\",\"enableDefaultEgressEndpoints\":\"True\",\"enabledEgressEndpoints\":[{\"category\":\"slczwciidjsllf\",\"endpoints\":[{\"domainName\":\"vdmvxadqa\"},{\"domainName\":\"frgnawbabgfbktyj\"}]},{\"category\":\"fczlfsyqkfrbzgow\",\"endpoints\":[{\"domainName\":\"qmje\"},{\"domainName\":\"jcx\"},{\"domainName\":\"yqgxhlus\"}]},{\"category\":\"vxisimjcea\",\"endpoints\":[{\"domainName\":\"jqvlsumywz\"},{\"domainName\":\"shxgonoy\"}]}],\"hybridAksClustersAssociatedIds\":[\"ipubyznclkfk\",\"ebgvo\"],\"interfaceName\":\"m\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"jly\",\"gqa\"]},\"location\":\"igflqqbtnyjp\",\"tags\":{\"s\":\"dbfvabmv\"},\"id\":\"baevwjcnkottl\",\"name\":\"uhvajmailfemjjza\",\"type\":\"zwjiqullq\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"lz\",\"type\":\"zjknyuxg\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"pnrupzaamrdi\",\"endpoints\":[{\"domainName\":\"rekidswysk\"},{\"domainName\":\"ruffgllukk\"},{\"domainName\":\"tvlxhrpqh\"}]}],\"associatedResourceIds\":[\"lcouqehbhbcdszir\",\"randoypmb\",\"t\",\"ormkfqlwxldyk\"],\"clusterId\":\"sy\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"njpnnbmj\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"gsjjxxahmrna\",\"endpoints\":[{\"domainName\":\"yqegx\"},{\"domainName\":\"iv\"},{\"domainName\":\"inbmh\"}]},{\"category\":\"bjijkgqxnh\",\"endpoints\":[{\"domainName\":\"keznjaujvaa\"},{\"domainName\":\"nggiycwkdtaa\"}]},{\"category\":\"xw\",\"endpoints\":[{\"domainName\":\"ka\"},{\"domainName\":\"mrrqmbzmqkratb\"}]}],\"hybridAksClustersAssociatedIds\":[\"bjsidb\",\"rkfpks\",\"kd\"],\"interfaceName\":\"gewi\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"bguzozky\",\"wnf\"]},\"location\":\"hhhqosm\",\"tags\":{\"zoghktdpyczhc\":\"kutycyarnroohgua\",\"cfyjzp\":\"eocnhzqrottj\",\"qdhmrjzralcxpjby\":\"wrlohapqinfszpyg\"},\"id\":\"psjoqcjenk\",\"name\":\"hf\",\"type\":\"zv\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.cloudServicesNetworks().listByResourceGroup("tuicds", com.azure.core.util.Context.NONE); + = manager.cloudServicesNetworks().listByResourceGroup("akpoldtvevbo", com.azure.core.util.Context.NONE); - Assertions.assertEquals("igflqqbtnyjp", response.iterator().next().location()); - Assertions.assertEquals("dbfvabmv", response.iterator().next().tags().get("s")); - Assertions.assertEquals("wdfmmpzhzzwvywr", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("yngydgrpxncaki", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("djrkclamggl", + Assertions.assertEquals("hhhqosm", response.iterator().next().location()); + Assertions.assertEquals("kutycyarnroohgua", response.iterator().next().tags().get("zoghktdpyczhc")); + Assertions.assertEquals("lz", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("zjknyuxg", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("pnrupzaamrdi", response.iterator().next().additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("mfejdoqeykglty", + Assertions.assertEquals("rekidswysk", response.iterator().next().additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); - Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.TRUE, + Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, response.iterator().next().enableDefaultEgressEndpoints()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.java index fe1c1b50203e1..09667526eb9fe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CloudServicesNetworksListMockTests.java @@ -6,46 +6,27 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetwork; import com.azure.resourcemanager.networkcloud.models.CloudServicesNetworkEnableDefaultEgressEndpoints; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class CloudServicesNetworksListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"kk\",\"type\":\"ji\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"sik\",\"endpoints\":[{\"domainName\":\"bcufqbvntn\"}]}],\"associatedResourceIds\":[\"qsorh\"],\"clusterId\":\"kxgnlykmxcpwzvmd\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"dt\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"lboncqbazqicqc\",\"endpoints\":[{\"domainName\":\"gtvxbyj\"},{\"domainName\":\"nepubdpkxyqvgx\"},{\"domainName\":\"aodetv\"},{\"domainName\":\"hkxdxuwsaifmc\"}]},{\"category\":\"nosbz\",\"endpoints\":[{\"domainName\":\"hg\"},{\"domainName\":\"vkbcknjolgjyyxp\"},{\"domainName\":\"els\"}]}],\"hybridAksClustersAssociatedIds\":[\"qzevxoqeint\"],\"interfaceName\":\"aljglzobl\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"r\",\"ulhmzyq\",\"hdvafjrqpjiyrqjc\",\"gaxwmzwdfkbnrzo\"]},\"location\":\"dltb\",\"tags\":{\"xxsaetgz\":\"qjf\",\"uwjoedxnguca\":\"gvpyigdaqqilzdc\",\"gilfjqqacdmkxw\":\"fpaurw\"},\"id\":\"dcvjwc\",\"name\":\"z\",\"type\":\"akeciqchx\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"b\",\"type\":\"vnwsw\"},\"properties\":{\"additionalEgressEndpoints\":[{\"category\":\"yctww\",\"endpoints\":[{\"domainName\":\"wxjlmec\"},{\"domainName\":\"og\"}]}],\"associatedResourceIds\":[\"yvneeza\",\"fg\",\"tmoqqtlffhzb\",\"rkjjjavfqnvhnq\"],\"clusterId\":\"wdogiyetesyp\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ztjhqtfbovnynkbw\",\"enableDefaultEgressEndpoints\":\"False\",\"enabledEgressEndpoints\":[{\"category\":\"hpsprkzyaupiac\",\"endpoints\":[{\"domainName\":\"n\"},{\"domainName\":\"fbwqrooht\"}]},{\"category\":\"ovmaonurjtum\",\"endpoints\":[{\"domainName\":\"ihpvecmslclblyj\"},{\"domainName\":\"lt\"},{\"domainName\":\"sjuscvsfxigctmg\"}]},{\"category\":\"uupb\",\"endpoints\":[{\"domainName\":\"qccydrtceukdq\"},{\"domainName\":\"ky\"},{\"domainName\":\"hztgeqmgqzgwld\"}]},{\"category\":\"ychillcecfe\",\"endpoints\":[{\"domainName\":\"waoaguhi\"},{\"domainName\":\"qllizstac\"},{\"domainName\":\"jvhrweft\"},{\"domainName\":\"wqejpmvsse\"}]}],\"hybridAksClustersAssociatedIds\":[\"pwamcxtczhupeuk\",\"ijdu\",\"yespydjfbocyv\"],\"interfaceName\":\"ulrtywikdmh\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"lgbhgauacdi\",\"mxu\"]},\"location\":\"sryjqgdkfno\",\"tags\":{\"hntasfaymx\":\"oqbvjhvefgwbmqj\",\"qkyojwyvf\":\"ulpzealb\",\"jcmmzrrscub\":\"mbtsuahxsg\",\"jxcjrmmuabwib\":\"wsdrnpxqwodif\"},\"id\":\"jogjonmc\",\"name\":\"e\",\"type\":\"oyzbamwineofvf\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -54,12 +35,12 @@ public void testList() throws Exception { PagedIterable response = manager.cloudServicesNetworks().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("dltb", response.iterator().next().location()); - Assertions.assertEquals("qjf", response.iterator().next().tags().get("xxsaetgz")); - Assertions.assertEquals("kk", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("ji", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("sik", response.iterator().next().additionalEgressEndpoints().get(0).category()); - Assertions.assertEquals("bcufqbvntn", + Assertions.assertEquals("sryjqgdkfno", response.iterator().next().location()); + Assertions.assertEquals("oqbvjhvefgwbmqj", response.iterator().next().tags().get("hntasfaymx")); + Assertions.assertEquals("b", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("vnwsw", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("yctww", response.iterator().next().additionalEgressEndpoints().get(0).category()); + Assertions.assertEquals("wxjlmec", response.iterator().next().additionalEgressEndpoints().get(0).endpoints().get(0).domainName()); Assertions.assertEquals(CloudServicesNetworkEnableDefaultEgressEndpoints.FALSE, response.iterator().next().enableDefaultEgressEndpoints()); diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.java index fb7f3f0cf9adb..082ea214a9ae0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableUpgradeVersionTests.java @@ -11,7 +11,7 @@ public final class ClusterAvailableUpgradeVersionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterAvailableUpgradeVersion model = BinaryData.fromString( - "{\"controlImpact\":\"True\",\"expectedDuration\":\"adm\",\"impactDescription\":\"rcrgvx\",\"supportExpiryDate\":\"gomz\",\"targetClusterVersion\":\"misgwbnb\",\"workloadImpact\":\"False\"}") + "{\"controlImpact\":\"False\",\"expectedDuration\":\"qiiobyuqer\",\"impactDescription\":\"lp\",\"supportExpiryDate\":\"cciuqgbdbutau\",\"targetClusterVersion\":\"btkuwhh\",\"workloadImpact\":\"False\"}") .toObject(ClusterAvailableUpgradeVersion.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.java index 6603e6e5f4a23..2b2db3c632bf1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterAvailableVersionTests.java @@ -10,9 +10,9 @@ public final class ClusterAvailableVersionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClusterAvailableVersion model = BinaryData - .fromString("{\"supportExpiryDate\":\"kphywpnvjto\",\"targetClusterVersion\":\"ermclfplphoxuscr\"}") - .toObject(ClusterAvailableVersion.class); + ClusterAvailableVersion model + = BinaryData.fromString("{\"supportExpiryDate\":\"tbobz\",\"targetClusterVersion\":\"pcjwv\"}") + .toObject(ClusterAvailableVersion.class); } @org.junit.jupiter.api.Test diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java index 6856271bcb92c..422c986db41b5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterCapacityTests.java @@ -12,36 +12,36 @@ public final class ClusterCapacityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterCapacity model = BinaryData.fromString( - "{\"availableApplianceStorageGB\":4044935358945575768,\"availableCoreCount\":2385195845357196318,\"availableHostStorageGB\":301155517903615814,\"availableMemoryGB\":7620134053919879993,\"totalApplianceStorageGB\":2439882291490736803,\"totalCoreCount\":1682807835593925008,\"totalHostStorageGB\":142732787655569529,\"totalMemoryGB\":3428999521390307360}") + "{\"availableApplianceStorageGB\":2308997283285722741,\"availableCoreCount\":5565068943906276094,\"availableHostStorageGB\":1160187571716366266,\"availableMemoryGB\":6257621363214543247,\"totalApplianceStorageGB\":3311442512942014453,\"totalCoreCount\":735752608656011593,\"totalHostStorageGB\":8335274886610479577,\"totalMemoryGB\":8200965629156318432}") .toObject(ClusterCapacity.class); - Assertions.assertEquals(4044935358945575768L, model.availableApplianceStorageGB()); - Assertions.assertEquals(2385195845357196318L, model.availableCoreCount()); - Assertions.assertEquals(301155517903615814L, model.availableHostStorageGB()); - Assertions.assertEquals(7620134053919879993L, model.availableMemoryGB()); - Assertions.assertEquals(2439882291490736803L, model.totalApplianceStorageGB()); - Assertions.assertEquals(1682807835593925008L, model.totalCoreCount()); - Assertions.assertEquals(142732787655569529L, model.totalHostStorageGB()); - Assertions.assertEquals(3428999521390307360L, model.totalMemoryGB()); + Assertions.assertEquals(2308997283285722741L, model.availableApplianceStorageGB()); + Assertions.assertEquals(5565068943906276094L, model.availableCoreCount()); + Assertions.assertEquals(1160187571716366266L, model.availableHostStorageGB()); + Assertions.assertEquals(6257621363214543247L, model.availableMemoryGB()); + Assertions.assertEquals(3311442512942014453L, model.totalApplianceStorageGB()); + Assertions.assertEquals(735752608656011593L, model.totalCoreCount()); + Assertions.assertEquals(8335274886610479577L, model.totalHostStorageGB()); + Assertions.assertEquals(8200965629156318432L, model.totalMemoryGB()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterCapacity model = new ClusterCapacity().withAvailableApplianceStorageGB(4044935358945575768L) - .withAvailableCoreCount(2385195845357196318L) - .withAvailableHostStorageGB(301155517903615814L) - .withAvailableMemoryGB(7620134053919879993L) - .withTotalApplianceStorageGB(2439882291490736803L) - .withTotalCoreCount(1682807835593925008L) - .withTotalHostStorageGB(142732787655569529L) - .withTotalMemoryGB(3428999521390307360L); + ClusterCapacity model = new ClusterCapacity().withAvailableApplianceStorageGB(2308997283285722741L) + .withAvailableCoreCount(5565068943906276094L) + .withAvailableHostStorageGB(1160187571716366266L) + .withAvailableMemoryGB(6257621363214543247L) + .withTotalApplianceStorageGB(3311442512942014453L) + .withTotalCoreCount(735752608656011593L) + .withTotalHostStorageGB(8335274886610479577L) + .withTotalMemoryGB(8200965629156318432L); model = BinaryData.fromObject(model).toObject(ClusterCapacity.class); - Assertions.assertEquals(4044935358945575768L, model.availableApplianceStorageGB()); - Assertions.assertEquals(2385195845357196318L, model.availableCoreCount()); - Assertions.assertEquals(301155517903615814L, model.availableHostStorageGB()); - Assertions.assertEquals(7620134053919879993L, model.availableMemoryGB()); - Assertions.assertEquals(2439882291490736803L, model.totalApplianceStorageGB()); - Assertions.assertEquals(1682807835593925008L, model.totalCoreCount()); - Assertions.assertEquals(142732787655569529L, model.totalHostStorageGB()); - Assertions.assertEquals(3428999521390307360L, model.totalMemoryGB()); + Assertions.assertEquals(2308997283285722741L, model.availableApplianceStorageGB()); + Assertions.assertEquals(5565068943906276094L, model.availableCoreCount()); + Assertions.assertEquals(1160187571716366266L, model.availableHostStorageGB()); + Assertions.assertEquals(6257621363214543247L, model.availableMemoryGB()); + Assertions.assertEquals(3311442512942014453L, model.totalApplianceStorageGB()); + Assertions.assertEquals(735752608656011593L, model.totalCoreCount()); + Assertions.assertEquals(8335274886610479577L, model.totalHostStorageGB()); + Assertions.assertEquals(8200965629156318432L, model.totalMemoryGB()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.java new file mode 100644 index 0000000000000..e1037066f9e3c --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterContinueUpdateVersionParametersTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionMachineGroupTargetingMode; +import com.azure.resourcemanager.networkcloud.models.ClusterContinueUpdateVersionParameters; +import org.junit.jupiter.api.Assertions; + +public final class ClusterContinueUpdateVersionParametersTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterContinueUpdateVersionParameters model + = BinaryData.fromString("{\"machineGroupTargetingMode\":\"AlphaByRack\"}") + .toObject(ClusterContinueUpdateVersionParameters.class); + Assertions.assertEquals(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK, + model.machineGroupTargetingMode()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ClusterContinueUpdateVersionParameters model = new ClusterContinueUpdateVersionParameters() + .withMachineGroupTargetingMode(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK); + model = BinaryData.fromObject(model).toObject(ClusterContinueUpdateVersionParameters.class); + Assertions.assertEquals(ClusterContinueUpdateVersionMachineGroupTargetingMode.ALPHA_BY_RACK, + model.machineGroupTargetingMode()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.java index 37b958d214aa6..e91ebd0d1f1f0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterDeployParametersTests.java @@ -13,16 +13,16 @@ public final class ClusterDeployParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterDeployParameters model - = BinaryData.fromString("{\"skipValidationsForMachines\":[\"wpusxjbaqehg\",\"dohzjq\"]}") + = BinaryData.fromString("{\"skipValidationsForMachines\":[\"w\",\"ehtuevrhr\",\"jyoogwxh\"]}") .toObject(ClusterDeployParameters.class); - Assertions.assertEquals("wpusxjbaqehg", model.skipValidationsForMachines().get(0)); + Assertions.assertEquals("w", model.skipValidationsForMachines().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterDeployParameters model - = new ClusterDeployParameters().withSkipValidationsForMachines(Arrays.asList("wpusxjbaqehg", "dohzjq")); + = new ClusterDeployParameters().withSkipValidationsForMachines(Arrays.asList("w", "ehtuevrhr", "jyoogwxh")); model = BinaryData.fromObject(model).toObject(ClusterDeployParameters.class); - Assertions.assertEquals("wpusxjbaqehg", model.skipValidationsForMachines().get(0)); + Assertions.assertEquals("w", model.skipValidationsForMachines().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java index ef3edbaf5221f..7c974428c151c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerInnerTests.java @@ -7,6 +7,9 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -16,37 +19,42 @@ public final class ClusterManagerInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterManagerInner model = BinaryData.fromString( - "{\"properties\":{\"analyticsWorkspaceId\":\"bxzpuzycisp\",\"availabilityZones\":[\"ahmgkbrp\",\"y\",\"hibnuqqkpika\",\"rgvtqag\"],\"clusterVersions\":[{\"supportExpiryDate\":\"nhijggmebfsi\",\"targetClusterVersion\":\"butr\"},{\"supportExpiryDate\":\"pnazzm\",\"targetClusterVersion\":\"runmp\"}],\"detailedStatus\":\"UpdateFailed\",\"detailedStatusMessage\":\"bh\",\"fabricControllerId\":\"bnlankxmyskpb\",\"managedResourceGroupConfiguration\":{\"location\":\"btkcxywnytnrsyn\",\"name\":\"idybyxczf\"},\"managerExtendedLocation\":{\"name\":\"haaxdbabphl\",\"type\":\"rqlfktsthsucocmn\"},\"provisioningState\":\"Canceled\",\"vmSize\":\"t\"},\"location\":\"twwrqp\",\"tags\":{\"xibxujwbhqwalm\":\"ckzywbiexzfeyue\",\"ux\":\"zyoxaepdkzjan\",\"zt\":\"hdwbavxbniwdjs\"},\"id\":\"dbpgnxytxhp\",\"name\":\"xbzpfzab\",\"type\":\"lcuhxwtctyqiklb\"}") + "{\"identity\":{\"principalId\":\"6a219ae8-bf79-4c1d-ad7c-710d9c4e4572\",\"tenantId\":\"9394c260-5644-4f16-b350-200dccfdf47e\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ndslgnayqigynduh\":{\"principalId\":\"067013cc-6ca8-413b-a8e9-6669afb17f10\",\"clientId\":\"0e2d10a9-5d5a-431c-8327-890f1e2547cd\"},\"qlkth\":{\"principalId\":\"5c5d5f50-fa35-488d-bb1c-c262471d1d76\",\"clientId\":\"5ced5514-81e1-4ce7-8f48-ad7e3e4871d1\"},\"qolbgyc\":{\"principalId\":\"473245fd-e236-4482-9a2a-6c557d13d760\",\"clientId\":\"f42102df-3377-4e68-a42a-992ff3574173\"}}},\"properties\":{\"analyticsWorkspaceId\":\"iertgccymvaolp\",\"availabilityZones\":[\"qlfmmdnbb\",\"lzpswiydm\"],\"clusterVersions\":[{\"supportExpiryDate\":\"zdxss\",\"targetClusterVersion\":\"bzmnvdfznud\"}],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"xzb\",\"fabricControllerId\":\"cblylpstdbhhxsr\",\"managedResourceGroupConfiguration\":{\"location\":\"ucerscdntnevfi\",\"name\":\"mygtdssls\"},\"managerExtendedLocation\":{\"name\":\"mweriofzpy\",\"type\":\"semwabnet\"},\"provisioningState\":\"Failed\",\"vmSize\":\"zhedplvwiw\"},\"location\":\"mwmbes\",\"tags\":{\"wtppjflcxogaoko\":\"k\"},\"id\":\"z\",\"name\":\"nsikvmkqzeqqkdl\",\"type\":\"fzxmhhvhgureodkw\"}") .toObject(ClusterManagerInner.class); - Assertions.assertEquals("twwrqp", model.location()); - Assertions.assertEquals("ckzywbiexzfeyue", model.tags().get("xibxujwbhqwalm")); - Assertions.assertEquals("bxzpuzycisp", model.analyticsWorkspaceId()); - Assertions.assertEquals("ahmgkbrp", model.availabilityZones().get(0)); - Assertions.assertEquals("bnlankxmyskpb", model.fabricControllerId()); - Assertions.assertEquals("btkcxywnytnrsyn", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("idybyxczf", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("t", model.vmSize()); + Assertions.assertEquals("mwmbes", model.location()); + Assertions.assertEquals("k", model.tags().get("wtppjflcxogaoko")); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("iertgccymvaolp", model.analyticsWorkspaceId()); + Assertions.assertEquals("qlfmmdnbb", model.availabilityZones().get(0)); + Assertions.assertEquals("cblylpstdbhhxsr", model.fabricControllerId()); + Assertions.assertEquals("ucerscdntnevfi", model.managedResourceGroupConfiguration().location()); + Assertions.assertEquals("mygtdssls", model.managedResourceGroupConfiguration().name()); + Assertions.assertEquals("zhedplvwiw", model.vmSize()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterManagerInner model = new ClusterManagerInner().withLocation("twwrqp") - .withTags(mapOf("xibxujwbhqwalm", "ckzywbiexzfeyue", "ux", "zyoxaepdkzjan", "zt", "hdwbavxbniwdjs")) - .withAnalyticsWorkspaceId("bxzpuzycisp") - .withAvailabilityZones(Arrays.asList("ahmgkbrp", "y", "hibnuqqkpika", "rgvtqag")) - .withFabricControllerId("bnlankxmyskpb") + ClusterManagerInner model = new ClusterManagerInner().withLocation("mwmbes") + .withTags(mapOf("wtppjflcxogaoko", "k")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("ndslgnayqigynduh", new UserAssignedIdentity(), "qlkth", + new UserAssignedIdentity(), "qolbgyc", new UserAssignedIdentity()))) + .withAnalyticsWorkspaceId("iertgccymvaolp") + .withAvailabilityZones(Arrays.asList("qlfmmdnbb", "lzpswiydm")) + .withFabricControllerId("cblylpstdbhhxsr") .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("btkcxywnytnrsyn").withName("idybyxczf")) - .withVmSize("t"); + new ManagedResourceGroupConfiguration().withLocation("ucerscdntnevfi").withName("mygtdssls")) + .withVmSize("zhedplvwiw"); model = BinaryData.fromObject(model).toObject(ClusterManagerInner.class); - Assertions.assertEquals("twwrqp", model.location()); - Assertions.assertEquals("ckzywbiexzfeyue", model.tags().get("xibxujwbhqwalm")); - Assertions.assertEquals("bxzpuzycisp", model.analyticsWorkspaceId()); - Assertions.assertEquals("ahmgkbrp", model.availabilityZones().get(0)); - Assertions.assertEquals("bnlankxmyskpb", model.fabricControllerId()); - Assertions.assertEquals("btkcxywnytnrsyn", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("idybyxczf", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("t", model.vmSize()); + Assertions.assertEquals("mwmbes", model.location()); + Assertions.assertEquals("k", model.tags().get("wtppjflcxogaoko")); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("iertgccymvaolp", model.analyticsWorkspaceId()); + Assertions.assertEquals("qlfmmdnbb", model.availabilityZones().get(0)); + Assertions.assertEquals("cblylpstdbhhxsr", model.fabricControllerId()); + Assertions.assertEquals("ucerscdntnevfi", model.managedResourceGroupConfiguration().location()); + Assertions.assertEquals("mygtdssls", model.managedResourceGroupConfiguration().name()); + Assertions.assertEquals("zhedplvwiw", model.vmSize()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java index 2811838823f25..1f5bd05a1a60c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerListTests.java @@ -8,6 +8,9 @@ import com.azure.resourcemanager.networkcloud.fluent.models.ClusterManagerInner; import com.azure.resourcemanager.networkcloud.models.ClusterManagerList; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -17,66 +20,68 @@ public final class ClusterManagerListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterManagerList model = BinaryData.fromString( - "{\"nextLink\":\"ugw\",\"value\":[{\"properties\":{\"analyticsWorkspaceId\":\"lhslazjdyggdtj\",\"availabilityZones\":[\"b\",\"uofqwe\",\"kh\"],\"clusterVersions\":[{\"supportExpiryDate\":\"vfyexfw\",\"targetClusterVersion\":\"bcibvyvdcsitynn\"}],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ectehf\",\"fabricControllerId\":\"qsc\",\"managedResourceGroupConfiguration\":{\"location\":\"pvhez\",\"name\":\"gqhcjrefovg\"},\"managerExtendedLocation\":{\"name\":\"qsl\",\"type\":\"yyvxyqjpkcattpn\"},\"provisioningState\":\"Failed\",\"vmSize\":\"cczsq\"},\"location\":\"hvmdajvnysounq\",\"tags\":{\"pfhyhl\":\"noae\"},\"id\":\"rpmopjmc\",\"name\":\"atuokthfuiu\",\"type\":\"odsfcpkvxodpuozm\"},{\"properties\":{\"analyticsWorkspaceId\":\"ydagfuaxbe\",\"availabilityZones\":[\"uokktwhrdxwz\"],\"clusterVersions\":[{\"supportExpiryDate\":\"mbsureximo\",\"targetClusterVersion\":\"ocfs\"}],\"detailedStatus\":\"Updating\",\"detailedStatusMessage\":\"mddystkiiux\",\"fabricControllerId\":\"qyud\",\"managedResourceGroupConfiguration\":{\"location\":\"rq\",\"name\":\"poczvyifqrvkdvjs\"},\"managerExtendedLocation\":{\"name\":\"rm\",\"type\":\"vdfwatkpn\"},\"provisioningState\":\"Succeeded\",\"vmSize\":\"xxbczwtr\"},\"location\":\"iqzbq\",\"tags\":{\"okacspk\":\"ovm\",\"jmflbvvnch\":\"lhzdobp\",\"ajiwkuo\":\"kcciwwzjuqkhr\",\"sauuimj\":\"oskg\"},\"id\":\"vxieduugidyj\",\"name\":\"rfbyaosvexcso\",\"type\":\"pclhocohslk\"},{\"properties\":{\"analyticsWorkspaceId\":\"leggzfbu\",\"availabilityZones\":[\"vfaxkffeiith\",\"vmezy\",\"shxmzsbbzoggigrx\",\"burvjxxjnspy\"],\"clusterVersions\":[{\"supportExpiryDate\":\"oenkouknvudwti\",\"targetClusterVersion\":\"bldngkpoc\"}],\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"yxoegukgjnp\",\"fabricControllerId\":\"ucgygevqz\",\"managedResourceGroupConfiguration\":{\"location\":\"pmr\",\"name\":\"izcdrqjsd\"},\"managerExtendedLocation\":{\"name\":\"dnfyhxdeoejzicwi\",\"type\":\"sjttgzfbish\"},\"provisioningState\":\"Failed\",\"vmSize\":\"ajdeyeamdphaga\"},\"location\":\"buxwgip\",\"tags\":{\"nkixzbinj\":\"nowkgshw\",\"tmryw\":\"pu\"},\"id\":\"uzoqft\",\"name\":\"yqzrnkcqvyxlw\",\"type\":\"zlsico\"},{\"properties\":{\"analyticsWorkspaceId\":\"qqn\",\"availabilityZones\":[\"ryavwhheunmmqh\",\"yxzk\"],\"clusterVersions\":[{\"supportExpiryDate\":\"uko\",\"targetClusterVersion\":\"yaxuconuqszfkb\"},{\"supportExpiryDate\":\"pewr\",\"targetClusterVersion\":\"mwvvjektcxsenhw\"},{\"supportExpiryDate\":\"s\",\"targetClusterVersion\":\"rzpwvlqdqgbiq\"}],\"detailedStatus\":\"UpdateFailed\",\"detailedStatusMessage\":\"kaet\",\"fabricControllerId\":\"kt\",\"managedResourceGroupConfiguration\":{\"location\":\"ivfsnk\",\"name\":\"uctqhjfbe\"},\"managerExtendedLocation\":{\"name\":\"jcxerfuwu\",\"type\":\"ttxfvjr\"},\"provisioningState\":\"Accepted\",\"vmSize\":\"hxepcyvahfnlj\"},\"location\":\"qxj\",\"tags\":{\"gidokgjljyoxgvcl\":\"j\",\"jhtxfvgxbfsmxne\":\"bgsncghkjeszzhb\"},\"id\":\"mpvecxgodebfqk\",\"name\":\"rbmpukgri\",\"type\":\"flz\"}]}") + "{\"nextLink\":\"ali\",\"value\":[{\"identity\":{\"principalId\":\"49a09063-aa36-479d-9551-00187b1b7428\",\"tenantId\":\"758d0c53-3250-4f27-9968-90f643842156\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"shsfwxosowzxcu\":{\"principalId\":\"38774de8-4b88-4148-9feb-4b6b8b7b9229\",\"clientId\":\"d45b640d-e10c-4488-b5c4-15edd9d6958c\"},\"jooxdjebw\":{\"principalId\":\"548464c7-fe28-4dae-96e7-fa92bf6cfc2f\",\"clientId\":\"7e90a6ce-b44d-4a28-9ddc-cdc8c4489c0e\"},\"wwfvov\":{\"principalId\":\"fe58d95f-95d5-4696-b0ab-5726d560f651\",\"clientId\":\"b5675bdf-17af-47b4-b08b-8895f0381054\"}}},\"properties\":{\"analyticsWorkspaceId\":\"meue\",\"availabilityZones\":[\"yhz\",\"euojgjrwju\",\"iotwmcdytdxwit\",\"nrjawgqwg\"],\"clusterVersions\":[{\"supportExpiryDate\":\"skxfbk\",\"targetClusterVersion\":\"cg\"}],\"detailedStatus\":\"ProvisioningFailed\",\"detailedStatusMessage\":\"dnhjdauwhvylw\",\"fabricControllerId\":\"btdhxujznbm\",\"managedResourceGroupConfiguration\":{\"location\":\"uwprzql\",\"name\":\"ualupjmkh\"},\"managerExtendedLocation\":{\"name\":\"obbc\",\"type\":\"wsrtjriplrbpbe\"},\"provisioningState\":\"Updating\",\"vmSize\":\"fgb\"},\"location\":\"gw\",\"tags\":{\"ebwwaloayqc\":\"lvqhjkbegibtnmx\",\"uzgwyzmhtx\":\"wrtz\",\"wxqpsrknftguvri\":\"ngmtsavjcb\"},\"id\":\"hprwmdyv\",\"name\":\"qtayri\",\"type\":\"wroyqbexrmcq\"},{\"identity\":{\"principalId\":\"19dad387-8a89-4baf-a63f-080001245d99\",\"tenantId\":\"b5e2ee71-4ebb-4e56-95c1-359f53c88932\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"nmefqsgzvahapj\":{\"principalId\":\"6965eb73-482e-4d14-ae32-1d0518d079e5\",\"clientId\":\"d01d9d87-5bdb-4a6a-a324-c58d6969f07c\"}}},\"properties\":{\"analyticsWorkspaceId\":\"hpvgqz\",\"availabilityZones\":[\"vxdjzlmwlxkvugf\",\"zovawjvz\",\"nluthnnp\"],\"clusterVersions\":[{\"supportExpiryDate\":\"peilpjzuaejxdu\",\"targetClusterVersion\":\"skzbb\"},{\"supportExpiryDate\":\"zumveekgpwo\",\"targetClusterVersion\":\"hkfpbs\"},{\"supportExpiryDate\":\"ofd\",\"targetClusterVersion\":\"uusdttouwa\"},{\"supportExpiryDate\":\"ekqvkeln\",\"targetClusterVersion\":\"vbxwyjsflhh\"}],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"n\",\"fabricControllerId\":\"ixisxyawjoy\",\"managedResourceGroupConfiguration\":{\"location\":\"slyjpkiid\",\"name\":\"exznelixhnr\"},\"managerExtendedLocation\":{\"name\":\"folhbnxknal\",\"type\":\"ulppggdtpnapnyir\"},\"provisioningState\":\"Updating\",\"vmSize\":\"pigvpgylgqgitx\"},\"location\":\"djvcsl\",\"tags\":{\"rmgucnap\":\"wwncwzzhxgk\",\"oellwp\":\"t\"},\"id\":\"fdygpfqbuaceopz\",\"name\":\"qrhhu\",\"type\":\"opppcqeq\"},{\"identity\":{\"principalId\":\"5c4cab3e-f69e-4a03-aa69-262b1c3080cb\",\"tenantId\":\"d1adf45f-a687-4007-90d1-8ca7aa58b89e\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"ctobg\":{\"principalId\":\"6c643165-fa7b-4736-a580-5ced82c851a8\",\"clientId\":\"c49b4da3-628d-4dc8-88fb-13afa8f8eb7d\"},\"moizpos\":{\"principalId\":\"87f1646e-cc50-4f67-ad47-9eb4a0ce7860\",\"clientId\":\"085bb405-4662-46df-b524-7228ff57db76\"}}},\"properties\":{\"analyticsWorkspaceId\":\"grcfb\",\"availabilityZones\":[\"mfqjhhkxbp\",\"jy\",\"jhxxjyn\",\"u\"],\"clusterVersions\":[{\"supportExpiryDate\":\"r\",\"targetClusterVersion\":\"wbxqzvszjfau\"}],\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"xxivetv\",\"fabricControllerId\":\"cqaqtdoqmcbx\",\"managedResourceGroupConfiguration\":{\"location\":\"xyslqbh\",\"name\":\"xoblytkbl\"},\"managerExtendedLocation\":{\"name\":\"ewwwfbkrvrnsv\",\"type\":\"hqjohxcrsbfova\"},\"provisioningState\":\"Failed\",\"vmSize\":\"v\"},\"location\":\"hsqfsubcgjbirxbp\",\"tags\":{\"twss\":\"rfbjf\",\"tpvjzbexilzznfqq\":\"t\",\"taruoujmkcj\":\"vwpm\"},\"id\":\"wqytjrybnwjewgdr\",\"name\":\"ervnaenqpehi\",\"type\":\"doy\"}]}") .toObject(ClusterManagerList.class); - Assertions.assertEquals("ugw", model.nextLink()); - Assertions.assertEquals("hvmdajvnysounq", model.value().get(0).location()); - Assertions.assertEquals("noae", model.value().get(0).tags().get("pfhyhl")); - Assertions.assertEquals("lhslazjdyggdtj", model.value().get(0).analyticsWorkspaceId()); - Assertions.assertEquals("b", model.value().get(0).availabilityZones().get(0)); - Assertions.assertEquals("qsc", model.value().get(0).fabricControllerId()); - Assertions.assertEquals("pvhez", model.value().get(0).managedResourceGroupConfiguration().location()); - Assertions.assertEquals("gqhcjrefovg", model.value().get(0).managedResourceGroupConfiguration().name()); - Assertions.assertEquals("cczsq", model.value().get(0).vmSize()); + Assertions.assertEquals("ali", model.nextLink()); + Assertions.assertEquals("gw", model.value().get(0).location()); + Assertions.assertEquals("lvqhjkbegibtnmx", model.value().get(0).tags().get("ebwwaloayqc")); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); + Assertions.assertEquals("meue", model.value().get(0).analyticsWorkspaceId()); + Assertions.assertEquals("yhz", model.value().get(0).availabilityZones().get(0)); + Assertions.assertEquals("btdhxujznbm", model.value().get(0).fabricControllerId()); + Assertions.assertEquals("uwprzql", model.value().get(0).managedResourceGroupConfiguration().location()); + Assertions.assertEquals("ualupjmkh", model.value().get(0).managedResourceGroupConfiguration().name()); + Assertions.assertEquals("fgb", model.value().get(0).vmSize()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterManagerList model = new ClusterManagerList().withNextLink("ugw") + ClusterManagerList model = new ClusterManagerList().withNextLink("ali") .withValue(Arrays.asList( - new ClusterManagerInner().withLocation("hvmdajvnysounq") - .withTags(mapOf("pfhyhl", "noae")) - .withAnalyticsWorkspaceId("lhslazjdyggdtj") - .withAvailabilityZones(Arrays.asList("b", "uofqwe", "kh")) - .withFabricControllerId("qsc") - .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("pvhez").withName("gqhcjrefovg")) - .withVmSize("cczsq"), - new ClusterManagerInner().withLocation("iqzbq") + new ClusterManagerInner().withLocation("gw") .withTags( - mapOf("okacspk", "ovm", "jmflbvvnch", "lhzdobp", "ajiwkuo", "kcciwwzjuqkhr", "sauuimj", "oskg")) - .withAnalyticsWorkspaceId("ydagfuaxbe") - .withAvailabilityZones(Arrays.asList("uokktwhrdxwz")) - .withFabricControllerId("qyud") + mapOf("ebwwaloayqc", "lvqhjkbegibtnmx", "uzgwyzmhtx", "wrtz", "wxqpsrknftguvri", "ngmtsavjcb")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("shsfwxosowzxcu", new UserAssignedIdentity(), "jooxdjebw", + new UserAssignedIdentity(), "wwfvov", new UserAssignedIdentity()))) + .withAnalyticsWorkspaceId("meue") + .withAvailabilityZones(Arrays.asList("yhz", "euojgjrwju", "iotwmcdytdxwit", "nrjawgqwg")) + .withFabricControllerId("btdhxujznbm") .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("rq").withName("poczvyifqrvkdvjs")) - .withVmSize("xxbczwtr"), - new ClusterManagerInner().withLocation("buxwgip") - .withTags(mapOf("nkixzbinj", "nowkgshw", "tmryw", "pu")) - .withAnalyticsWorkspaceId("leggzfbu") - .withAvailabilityZones(Arrays.asList("vfaxkffeiith", "vmezy", "shxmzsbbzoggigrx", "burvjxxjnspy")) - .withFabricControllerId("ucgygevqz") + new ManagedResourceGroupConfiguration().withLocation("uwprzql").withName("ualupjmkh")) + .withVmSize("fgb"), + new ClusterManagerInner().withLocation("djvcsl") + .withTags(mapOf("rmgucnap", "wwncwzzhxgk", "oellwp", "t")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("nmefqsgzvahapj", new UserAssignedIdentity()))) + .withAnalyticsWorkspaceId("hpvgqz") + .withAvailabilityZones(Arrays.asList("vxdjzlmwlxkvugf", "zovawjvz", "nluthnnp")) + .withFabricControllerId("ixisxyawjoy") .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("pmr").withName("izcdrqjsd")) - .withVmSize("ajdeyeamdphaga"), - new ClusterManagerInner().withLocation("qxj") - .withTags(mapOf("gidokgjljyoxgvcl", "j", "jhtxfvgxbfsmxne", "bgsncghkjeszzhb")) - .withAnalyticsWorkspaceId("qqn") - .withAvailabilityZones(Arrays.asList("ryavwhheunmmqh", "yxzk")) - .withFabricControllerId("kt") + new ManagedResourceGroupConfiguration().withLocation("slyjpkiid").withName("exznelixhnr")) + .withVmSize("pigvpgylgqgitx"), + new ClusterManagerInner().withLocation("hsqfsubcgjbirxbp") + .withTags(mapOf("twss", "rfbjf", "tpvjzbexilzznfqq", "t", "taruoujmkcj", "vwpm")) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities( + mapOf("ctobg", new UserAssignedIdentity(), "moizpos", new UserAssignedIdentity()))) + .withAnalyticsWorkspaceId("grcfb") + .withAvailabilityZones(Arrays.asList("mfqjhhkxbp", "jy", "jhxxjyn", "u")) + .withFabricControllerId("cqaqtdoqmcbx") .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("ivfsnk").withName("uctqhjfbe")) - .withVmSize("hxepcyvahfnlj"))); + new ManagedResourceGroupConfiguration().withLocation("xyslqbh").withName("xoblytkbl")) + .withVmSize("v"))); model = BinaryData.fromObject(model).toObject(ClusterManagerList.class); - Assertions.assertEquals("ugw", model.nextLink()); - Assertions.assertEquals("hvmdajvnysounq", model.value().get(0).location()); - Assertions.assertEquals("noae", model.value().get(0).tags().get("pfhyhl")); - Assertions.assertEquals("lhslazjdyggdtj", model.value().get(0).analyticsWorkspaceId()); - Assertions.assertEquals("b", model.value().get(0).availabilityZones().get(0)); - Assertions.assertEquals("qsc", model.value().get(0).fabricControllerId()); - Assertions.assertEquals("pvhez", model.value().get(0).managedResourceGroupConfiguration().location()); - Assertions.assertEquals("gqhcjrefovg", model.value().get(0).managedResourceGroupConfiguration().name()); - Assertions.assertEquals("cczsq", model.value().get(0).vmSize()); + Assertions.assertEquals("ali", model.nextLink()); + Assertions.assertEquals("gw", model.value().get(0).location()); + Assertions.assertEquals("lvqhjkbegibtnmx", model.value().get(0).tags().get("ebwwaloayqc")); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, model.value().get(0).identity().type()); + Assertions.assertEquals("meue", model.value().get(0).analyticsWorkspaceId()); + Assertions.assertEquals("yhz", model.value().get(0).availabilityZones().get(0)); + Assertions.assertEquals("btdhxujznbm", model.value().get(0).fabricControllerId()); + Assertions.assertEquals("uwprzql", model.value().get(0).managedResourceGroupConfiguration().location()); + Assertions.assertEquals("ualupjmkh", model.value().get(0).managedResourceGroupConfiguration().name()); + Assertions.assertEquals("fgb", model.value().get(0).vmSize()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java index cf72081be4a27..8ce2e86f0da3a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPatchParametersTests.java @@ -6,6 +6,9 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.networkcloud.models.ClusterManagerPatchParameters; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; @@ -13,18 +16,23 @@ public final class ClusterManagerPatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClusterManagerPatchParameters model = BinaryData - .fromString("{\"tags\":{\"uunfprnjletlxsm\":\"tczytqjtwh\",\"nlqwzdvpiwhx\":\"pddouifamowaziyn\"}}") + ClusterManagerPatchParameters model = BinaryData.fromString( + "{\"identity\":{\"principalId\":\"7b4a5a81-f88a-4c6d-a5db-35a0641bdf90\",\"tenantId\":\"40f9ac5e-c21c-4158-831d-d3569e891df6\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"lu\":{\"principalId\":\"050ddab3-f26f-4462-bff3-aaf69d12a188\",\"clientId\":\"dbf82f40-a210-425c-a5aa-aa54a3e7a689\"},\"tangcfhnykzcu\":{\"principalId\":\"e1e3d571-6385-4a48-9ee6-c0c5df9cfce2\",\"clientId\":\"020f20f7-8027-4f55-8dac-929382302c9c\"},\"vxwlmzqwmvtxnj\":{\"principalId\":\"fa0aec32-dc1c-414f-a1fa-dbf7a8a7f8ce\",\"clientId\":\"59682341-4e23-4639-9f51-5b4830c091b6\"}}},\"tags\":{\"pdkvg\":\"cuqudtcvclxy\",\"ibuz\":\"abuiy\",\"xgjiuqh\":\"hdugneiknpg\"}}") .toObject(ClusterManagerPatchParameters.class); - Assertions.assertEquals("tczytqjtwh", model.tags().get("uunfprnjletlxsm")); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("cuqudtcvclxy", model.tags().get("pdkvg")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterManagerPatchParameters model = new ClusterManagerPatchParameters() - .withTags(mapOf("uunfprnjletlxsm", "tczytqjtwh", "nlqwzdvpiwhx", "pddouifamowaziyn")); + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities(mapOf("lu", new UserAssignedIdentity(), "tangcfhnykzcu", + new UserAssignedIdentity(), "vxwlmzqwmvtxnj", new UserAssignedIdentity()))) + .withTags(mapOf("pdkvg", "cuqudtcvclxy", "ibuz", "abuiy", "xgjiuqh", "hdugneiknpg")); model = BinaryData.fromObject(model).toObject(ClusterManagerPatchParameters.class); - Assertions.assertEquals("tczytqjtwh", model.tags().get("uunfprnjletlxsm")); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("cuqudtcvclxy", model.tags().get("pdkvg")); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.java index e3efe10b23407..31825bdf24467 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagerPropertiesTests.java @@ -14,30 +14,30 @@ public final class ClusterManagerPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterManagerProperties model = BinaryData.fromString( - "{\"analyticsWorkspaceId\":\"vplwzbhv\",\"availabilityZones\":[\"gu\"],\"clusterVersions\":[{\"supportExpiryDate\":\"kfssxqukkf\",\"targetClusterVersion\":\"gmgsxnkjzkde\"},{\"supportExpiryDate\":\"pvlopwiyighxpkd\",\"targetClusterVersion\":\"baiuebbaumny\"},{\"supportExpiryDate\":\"ped\",\"targetClusterVersion\":\"jn\"}],\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"hsmtxpsiebtfhvp\",\"fabricControllerId\":\"sapskr\",\"managedResourceGroupConfiguration\":{\"location\":\"hjjdhtldwkyzxuut\",\"name\":\"cwscwsvlx\"},\"managerExtendedLocation\":{\"name\":\"ogtwrupqsxvnmi\",\"type\":\"ykvceoveil\"},\"provisioningState\":\"Failed\",\"vmSize\":\"tyfjfcnjbkcnxdhb\"}") + "{\"analyticsWorkspaceId\":\"evseotgqrlltmuwl\",\"availabilityZones\":[\"zizxbmpgcj\",\"fuzmuvpbtt\",\"um\",\"rp\"],\"clusterVersions\":[{\"supportExpiryDate\":\"mnzb\",\"targetClusterVersion\":\"hjpglkf\"},{\"supportExpiryDate\":\"hdneuelfph\",\"targetClusterVersion\":\"yhtozfikdowwqu\"},{\"supportExpiryDate\":\"xzxcl\",\"targetClusterVersion\":\"thhqzonosggbh\"},{\"supportExpiryDate\":\"hfwdsjnkaljutiis\",\"targetClusterVersion\":\"cffgdkzzewk\"}],\"detailedStatus\":\"UpdateFailed\",\"detailedStatusMessage\":\"crailvpn\",\"fabricControllerId\":\"pfuflrw\",\"managedResourceGroupConfiguration\":{\"location\":\"dlxyjrxs\",\"name\":\"afcnih\"},\"managerExtendedLocation\":{\"name\":\"qapnedgfbcv\",\"type\":\"cvqvpkeqdcv\"},\"provisioningState\":\"Updating\",\"vmSize\":\"ood\"}") .toObject(ClusterManagerProperties.class); - Assertions.assertEquals("vplwzbhv", model.analyticsWorkspaceId()); - Assertions.assertEquals("gu", model.availabilityZones().get(0)); - Assertions.assertEquals("sapskr", model.fabricControllerId()); - Assertions.assertEquals("hjjdhtldwkyzxuut", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("cwscwsvlx", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("tyfjfcnjbkcnxdhb", model.vmSize()); + Assertions.assertEquals("evseotgqrlltmuwl", model.analyticsWorkspaceId()); + Assertions.assertEquals("zizxbmpgcj", model.availabilityZones().get(0)); + Assertions.assertEquals("pfuflrw", model.fabricControllerId()); + Assertions.assertEquals("dlxyjrxs", model.managedResourceGroupConfiguration().location()); + Assertions.assertEquals("afcnih", model.managedResourceGroupConfiguration().name()); + Assertions.assertEquals("ood", model.vmSize()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterManagerProperties model = new ClusterManagerProperties().withAnalyticsWorkspaceId("vplwzbhv") - .withAvailabilityZones(Arrays.asList("gu")) - .withFabricControllerId("sapskr") + ClusterManagerProperties model = new ClusterManagerProperties().withAnalyticsWorkspaceId("evseotgqrlltmuwl") + .withAvailabilityZones(Arrays.asList("zizxbmpgcj", "fuzmuvpbtt", "um", "rp")) + .withFabricControllerId("pfuflrw") .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("hjjdhtldwkyzxuut").withName("cwscwsvlx")) - .withVmSize("tyfjfcnjbkcnxdhb"); + new ManagedResourceGroupConfiguration().withLocation("dlxyjrxs").withName("afcnih")) + .withVmSize("ood"); model = BinaryData.fromObject(model).toObject(ClusterManagerProperties.class); - Assertions.assertEquals("vplwzbhv", model.analyticsWorkspaceId()); - Assertions.assertEquals("gu", model.availabilityZones().get(0)); - Assertions.assertEquals("sapskr", model.fabricControllerId()); - Assertions.assertEquals("hjjdhtldwkyzxuut", model.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("cwscwsvlx", model.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("tyfjfcnjbkcnxdhb", model.vmSize()); + Assertions.assertEquals("evseotgqrlltmuwl", model.analyticsWorkspaceId()); + Assertions.assertEquals("zizxbmpgcj", model.availabilityZones().get(0)); + Assertions.assertEquals("pfuflrw", model.fabricControllerId()); + Assertions.assertEquals("dlxyjrxs", model.managedResourceGroupConfiguration().location()); + Assertions.assertEquals("afcnih", model.managedResourceGroupConfiguration().name()); + Assertions.assertEquals("ood", model.vmSize()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java index 08d3863098077..7a8478fac1904 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersCreateOrUpdateMockTests.java @@ -6,15 +6,15 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ClusterManager; import com.azure.resourcemanager.networkcloud.models.ManagedResourceGroupConfiguration; -import java.nio.ByteBuffer; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.Arrays; @@ -22,58 +22,49 @@ import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ClusterManagersCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"properties\":{\"analyticsWorkspaceId\":\"ravaq\",\"availabilityZones\":[\"kbeba\",\"zlqbtxxwpfhn\",\"zudrtpzk\"],\"clusterVersions\":[{\"supportExpiryDate\":\"oywhczzqrhmngqbe\",\"targetClusterVersion\":\"gis\"},{\"supportExpiryDate\":\"wnykdidjchlrmpw\",\"targetClusterVersion\":\"ofldseacdhz\"},{\"supportExpiryDate\":\"kbrfgdrwji\",\"targetClusterVersion\":\"whfjsrwqrxe\"},{\"supportExpiryDate\":\"gcwvrrmdqntycna\",\"targetClusterVersion\":\"hvmaxgnuyeamcmhu\"}],\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"cehokw\",\"fabricControllerId\":\"pqtwloesqrggvrb\",\"managedResourceGroupConfiguration\":{\"location\":\"ukoila\",\"name\":\"duwjleipjlhwy\"},\"managerExtendedLocation\":{\"name\":\"zr\",\"type\":\"z\"},\"provisioningState\":\"Succeeded\",\"vmSize\":\"kkwhbgxvellvulnx\"},\"location\":\"nitmujdtvmclyymf\",\"tags\":{\"xfzuvrzmzqmzj\":\"jpddn\",\"pv\":\"rb\",\"pglaoh\":\"mdyfoebojtj\"},\"id\":\"qk\",\"name\":\"jtnqjil\",\"type\":\"ywkdcwmqsy\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"identity\":{\"principalId\":\"e268ac60-edd9-4fab-9292-3acd76011c78\",\"tenantId\":\"1615f97b-1321-4f0a-8b71-872bbb4fede2\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"dnaienhqhskndnel\":{\"principalId\":\"005c1ee7-f0ec-4faa-96f9-0377b7224ef7\",\"clientId\":\"16f1a90c-acd1-446d-9656-a59ed1137a47\"},\"adlknwfoanni\":{\"principalId\":\"32ae87aa-3137-47d4-80f0-66fe56d4933e\",\"clientId\":\"daa7a91a-dfd1-4ea6-9c9e-dea4fe198728\"}}},\"properties\":{\"analyticsWorkspaceId\":\"petxivcnrlyxnu\",\"availabilityZones\":[\"p\",\"blkwqpatvbqs\",\"tcjb\",\"tvivuzqym\"],\"clusterVersions\":[{\"supportExpiryDate\":\"o\",\"targetClusterVersion\":\"gitsqh\"}],\"detailedStatus\":\"ProvisioningFailed\",\"detailedStatusMessage\":\"zcdba\",\"fabricControllerId\":\"fzndscxmxeatkd\",\"managedResourceGroupConfiguration\":{\"location\":\"nrd\",\"name\":\"ibqbnaomhjrm\"},\"managerExtendedLocation\":{\"name\":\"hmaxljalfi\",\"type\":\"cjmobcanc\"},\"provisioningState\":\"Succeeded\",\"vmSize\":\"qcwgaxfgvaknokz\"},\"location\":\"jzrltixldzy\",\"tags\":{\"ixymmpujivyql\":\"tpq\",\"dbpqvybefgvm\":\"juvsmbmslzoyovw\",\"lubses\":\"nokcv\",\"pirykycndzfqiv\":\"vcuartrhun\"},\"id\":\"reuykbbmnwagl\",\"name\":\"bxoeeonql\",\"type\":\"fwmyymv\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); ClusterManager response = manager.clusterManagers() - .define("wwa") - .withRegion("dlh") - .withExistingResourceGroup("wmwwmjswen") - .withFabricControllerId("sjt") - .withTags(mapOf("nytjlk", "bdbfgrlp", "h", "smmpathubt")) - .withAnalyticsWorkspaceId("cleqioulndhzyo") - .withAvailabilityZones(Arrays.asList("ht", "llhsvidmyt")) + .define("mcqmiciijqp") + .withRegion("sfayorpravkjoges") + .withExistingResourceGroup("ywbo") + .withFabricControllerId("sauzpjlx") + .withTags(mapOf("kvwjtqpkevmy", "nsmjkwynqxaekqs", "gxannnoytzposewx", "tjcrspxklurccl", "dfaifyzyzeyuube", + "gpxvkqmaupxvpi", "l", "ds")) + .withIdentity( + new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities( + mapOf("cs", new UserAssignedIdentity(), "wixvcpwnkwywzw", new UserAssignedIdentity(), + "lickduoi", new UserAssignedIdentity(), "mt", new UserAssignedIdentity()))) + .withAnalyticsWorkspaceId("sknxrwzawnvsbcf") + .withAvailabilityZones(Arrays.asList("gxnvhyc", "dimwrzregzgyu", "utrwpweryekz", "dhme")) .withManagedResourceGroupConfiguration( - new ManagedResourceGroupConfiguration().withLocation("bninjgazlsvbzfc").withName("o")) - .withVmSize("lriyehqbe") + new ManagedResourceGroupConfiguration().withLocation("uxiqhzlraymezxl").withName("ihmxrfdsajredn")) + .withVmSize("ipxgzdy") .create(); - Assertions.assertEquals("nitmujdtvmclyymf", response.location()); - Assertions.assertEquals("jpddn", response.tags().get("xfzuvrzmzqmzj")); - Assertions.assertEquals("ravaq", response.analyticsWorkspaceId()); - Assertions.assertEquals("kbeba", response.availabilityZones().get(0)); - Assertions.assertEquals("pqtwloesqrggvrb", response.fabricControllerId()); - Assertions.assertEquals("ukoila", response.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("duwjleipjlhwy", response.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("kkwhbgxvellvulnx", response.vmSize()); + Assertions.assertEquals("jzrltixldzy", response.location()); + Assertions.assertEquals("tpq", response.tags().get("ixymmpujivyql")); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("petxivcnrlyxnu", response.analyticsWorkspaceId()); + Assertions.assertEquals("p", response.availabilityZones().get(0)); + Assertions.assertEquals("fzndscxmxeatkd", response.fabricControllerId()); + Assertions.assertEquals("nrd", response.managedResourceGroupConfiguration().location()); + Assertions.assertEquals("ibqbnaomhjrm", response.managedResourceGroupConfiguration().name()); + Assertions.assertEquals("qcwgaxfgvaknokz", response.vmSize()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteMockTests.java deleted file mode 100644 index 0c6616f8f28ca..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ClusterManagersDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.clusterManagers().delete("jhffbxrqrkij", "euqlsdxeqztv", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.java index d0e07eab2ec3a..430a89e442d97 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersGetByResourceGroupWithResponseMockTests.java @@ -6,60 +6,43 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ClusterManager; -import java.nio.ByteBuffer; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ClusterManagersGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"properties\":{\"analyticsWorkspaceId\":\"abhjx\",\"availabilityZones\":[\"weuipmpvksmi\",\"nsqxtltc\"],\"clusterVersions\":[{\"supportExpiryDate\":\"pqgfhyrfr\",\"targetClusterVersion\":\"kldgrcwfcmfc\"},{\"supportExpiryDate\":\"jajqmatxjt\",\"targetClusterVersion\":\"ln\"}],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"xgfb\",\"fabricControllerId\":\"mtlpqagyno\",\"managedResourceGroupConfiguration\":{\"location\":\"n\",\"name\":\"ali\"},\"managerExtendedLocation\":{\"name\":\"ryqxzxa\",\"type\":\"zi\"},\"provisioningState\":\"Canceled\",\"vmSize\":\"miymqruqguhfupet\"},\"location\":\"vvoqsbpkf\",\"tags\":{\"syaowuzowp\":\"fkg\",\"ztiochluti\":\"ohdkcprgukx\",\"izcbfzmcrunfhiuc\":\"mqrud\",\"u\":\"mfbcpaqktkrum\"},\"id\":\"dkyzbfvxov\",\"name\":\"kxiuxqggvqr\",\"type\":\"hyhlwcjsqg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"identity\":{\"principalId\":\"453b87f5-f3fe-4e4e-8723-1c80d857bbe7\",\"tenantId\":\"2ea81332-bd17-44c5-95b5-afd76520ffd2\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"qnzmnhiil\":{\"principalId\":\"6133586e-eb63-4217-b204-04a52b432c07\",\"clientId\":\"f65aef5d-bd78-43f3-b682-bb8f78469262\"},\"w\":{\"principalId\":\"858b76c1-c8c5-4eb2-a0c8-dc169dba1383\",\"clientId\":\"d80e91b8-cc09-4844-9681-6a1a8f47e937\"},\"ckbbcc\":{\"principalId\":\"c630ecaa-d778-402c-a023-7d29f1394d0d\",\"clientId\":\"993e74e3-e74b-47b8-912e-ea8c1741f39c\"}}},\"properties\":{\"analyticsWorkspaceId\":\"zpraoxn\",\"availabilityZones\":[\"fa\",\"sgftipwc\",\"byubhiqdxyurnpn\"],\"clusterVersions\":[{\"supportExpiryDate\":\"fccnuhiigb\",\"targetClusterVersion\":\"bui\"},{\"supportExpiryDate\":\"xvatvcr\",\"targetClusterVersion\":\"lbnb\"},{\"supportExpiryDate\":\"vhcs\",\"targetClusterVersion\":\"zlwxaeaovur\"}],\"detailedStatus\":\"ProvisioningFailed\",\"detailedStatusMessage\":\"d\",\"fabricControllerId\":\"bdweade\",\"managedResourceGroupConfiguration\":{\"location\":\"wntopag\",\"name\":\"mvmmagoaqylkjz\"},\"managerExtendedLocation\":{\"name\":\"iua\",\"type\":\"jcg\"},\"provisioningState\":\"Updating\",\"vmSize\":\"pfinzcpdltkrlg\"},\"location\":\"tbdrvcqgue\",\"tags\":{\"lyujlfyoump\":\"ompheqdur\",\"brzmqxucycijoclx\":\"kyeclcdigpta\",\"zjd\":\"utgjcyz\",\"jb\":\"r\"},\"id\":\"xjeaoqaqbzgyh\",\"name\":\"w\",\"type\":\"v\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); ClusterManager response = manager.clusterManagers() - .getByResourceGroupWithResponse("vym", "nudn", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("iuxegth", "rtudawlpjfel", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("vvoqsbpkf", response.location()); - Assertions.assertEquals("fkg", response.tags().get("syaowuzowp")); - Assertions.assertEquals("abhjx", response.analyticsWorkspaceId()); - Assertions.assertEquals("weuipmpvksmi", response.availabilityZones().get(0)); - Assertions.assertEquals("mtlpqagyno", response.fabricControllerId()); - Assertions.assertEquals("n", response.managedResourceGroupConfiguration().location()); - Assertions.assertEquals("ali", response.managedResourceGroupConfiguration().name()); - Assertions.assertEquals("miymqruqguhfupet", response.vmSize()); + Assertions.assertEquals("tbdrvcqgue", response.location()); + Assertions.assertEquals("ompheqdur", response.tags().get("lyujlfyoump")); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("zpraoxn", response.analyticsWorkspaceId()); + Assertions.assertEquals("fa", response.availabilityZones().get(0)); + Assertions.assertEquals("bdweade", response.fabricControllerId()); + Assertions.assertEquals("wntopag", response.managedResourceGroupConfiguration().location()); + Assertions.assertEquals("mvmmagoaqylkjz", response.managedResourceGroupConfiguration().name()); + Assertions.assertEquals("pfinzcpdltkrlg", response.vmSize()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.java index 6d22335ff0fc4..411f2a19279ee 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListByResourceGroupMockTests.java @@ -6,61 +6,43 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ClusterManager; -import java.nio.ByteBuffer; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ClusterManagersListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"properties\":{\"analyticsWorkspaceId\":\"qreblui\",\"availabilityZones\":[\"wxs\",\"gtdmbvx\",\"kraokq\"],\"clusterVersions\":[{\"supportExpiryDate\":\"btwa\",\"targetClusterVersion\":\"bavly\"}],\"detailedStatus\":\"ProvisioningFailed\",\"detailedStatusMessage\":\"knwfrkebsmhpdujd\",\"fabricControllerId\":\"gatolekscbctnan\",\"managedResourceGroupConfiguration\":{\"location\":\"wbzxpdcldpkawn\",\"name\":\"laimouxwk\"},\"managerExtendedLocation\":{\"name\":\"mud\",\"type\":\"fco\"},\"provisioningState\":\"Provisioning\",\"vmSize\":\"ziuswsw\"},\"location\":\"kbqsjhbtqqvyfscy\",\"tags\":{\"wvbhlimbyq\":\"bivqvogfuy\",\"ikcdrdaasax\":\"crood\",\"wiyjvzuko\":\"obsmf\",\"awn\":\"r\"},\"id\":\"zm\",\"name\":\"n\",\"type\":\"oywsxvjabjqqaxu\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"identity\":{\"principalId\":\"ee09de5e-0b08-4077-a972-e27caad4a133\",\"tenantId\":\"2aaba3bc-371e-4ade-8b3d-73b670498c78\",\"type\":\"None\",\"userAssignedIdentities\":{\"zuqnwsithuqo\":{\"principalId\":\"26a21559-c5cf-4ae8-a241-9e197a7bd553\",\"clientId\":\"5d113e77-1142-452e-ab6b-cac4377743af\"}}},\"properties\":{\"analyticsWorkspaceId\":\"ah\",\"availabilityZones\":[\"wqulsutrjbhxykf\",\"y\"],\"clusterVersions\":[{\"supportExpiryDate\":\"qqug\",\"targetClusterVersion\":\"ftbcvexreuquow\"},{\"supportExpiryDate\":\"jv\",\"targetClusterVersion\":\"hreagk\"},{\"supportExpiryDate\":\"xv\",\"targetClusterVersion\":\"tvbczsulm\"},{\"supportExpiryDate\":\"glmep\",\"targetClusterVersion\":\"fs\"}],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"sa\",\"fabricControllerId\":\"gpszngafpg\",\"managedResourceGroupConfiguration\":{\"location\":\"vecjujcn\",\"name\":\"adyedmzrgjfok\"},\"managerExtendedLocation\":{\"name\":\"bnoit\",\"type\":\"kpztrgd\"},\"provisioningState\":\"Provisioning\",\"vmSize\":\"oqraswugyxpqi\"},\"location\":\"eialwvskb\",\"tags\":{\"pdsxzakuejkm\":\"acaqtyltcoqcu\"},\"id\":\"bizt\",\"name\":\"ofqcvovjufycsjm\",\"type\":\"bemyeji\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.clusterManagers().listByResourceGroup("mqbmfuvqarwz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kbqsjhbtqqvyfscy", response.iterator().next().location()); - Assertions.assertEquals("bivqvogfuy", response.iterator().next().tags().get("wvbhlimbyq")); - Assertions.assertEquals("qreblui", response.iterator().next().analyticsWorkspaceId()); - Assertions.assertEquals("wxs", response.iterator().next().availabilityZones().get(0)); - Assertions.assertEquals("gatolekscbctnan", response.iterator().next().fabricControllerId()); - Assertions.assertEquals("wbzxpdcldpkawn", - response.iterator().next().managedResourceGroupConfiguration().location()); - Assertions.assertEquals("laimouxwk", response.iterator().next().managedResourceGroupConfiguration().name()); - Assertions.assertEquals("ziuswsw", response.iterator().next().vmSize()); + = manager.clusterManagers().listByResourceGroup("phlkksnm", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("eialwvskb", response.iterator().next().location()); + Assertions.assertEquals("acaqtyltcoqcu", response.iterator().next().tags().get("pdsxzakuejkm")); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.iterator().next().identity().type()); + Assertions.assertEquals("ah", response.iterator().next().analyticsWorkspaceId()); + Assertions.assertEquals("wqulsutrjbhxykf", response.iterator().next().availabilityZones().get(0)); + Assertions.assertEquals("gpszngafpg", response.iterator().next().fabricControllerId()); + Assertions.assertEquals("vecjujcn", response.iterator().next().managedResourceGroupConfiguration().location()); + Assertions.assertEquals("adyedmzrgjfok", response.iterator().next().managedResourceGroupConfiguration().name()); + Assertions.assertEquals("oqraswugyxpqi", response.iterator().next().vmSize()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.java index 993b8cb6c08a7..335f0706737b0 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterManagersListMockTests.java @@ -6,45 +6,27 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ClusterManager; -import java.nio.ByteBuffer; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class ClusterManagersListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"properties\":{\"analyticsWorkspaceId\":\"kl\",\"availabilityZones\":[\"rvtxvcmufunlc\",\"xxvir\"],\"clusterVersions\":[{\"supportExpiryDate\":\"gjgvr\",\"targetClusterVersion\":\"vpygglp\"},{\"supportExpiryDate\":\"rdcueljtiahx\",\"targetClusterVersion\":\"q\"},{\"supportExpiryDate\":\"arvsx\",\"targetClusterVersion\":\"bglcjkayspthzodu\"},{\"supportExpiryDate\":\"lmjtg\",\"targetClusterVersion\":\"ioskkfmkmfdjxyxg\"}],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"vjcteoedlrslsk\",\"fabricControllerId\":\"zpxvjnzdpvoc\",\"managedResourceGroupConfiguration\":{\"location\":\"pcnab\",\"name\":\"fsnggytexvzilm\"},\"managerExtendedLocation\":{\"name\":\"vzkwwwncknr\",\"type\":\"dajlskzpt\"},\"provisioningState\":\"Provisioning\",\"vmSize\":\"weucyrth\"},\"location\":\"lehmcgcjeinueho\",\"tags\":{\"zfivfokpysthhzag\":\"vfejvqnttmbqda\",\"rlhgenuze\":\"fwy\",\"zlsmmdqgmihzpim\":\"gvkvebaqszll\",\"gxsvtza\":\"qrhnxtminkl\"},\"id\":\"hzvqnsqktcmbjwz\",\"name\":\"oslpky\",\"type\":\"tglwkzpgajsqjc\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"identity\":{\"principalId\":\"a303995d-39d1-4709-ad26-984194e7e717\",\"tenantId\":\"9a26af15-17df-45aa-9ddb-8ce2e8dd266f\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"zkkdtnhqs\":{\"principalId\":\"d547ea19-a2f8-432f-afa3-18ff9d3c4885\",\"clientId\":\"6af7925a-d5da-4836-8263-138718258e04\"},\"jselpkpbafvafh\":{\"principalId\":\"90e4e34c-111a-4a66-8d72-a04d074a4f74\",\"clientId\":\"32daae6b-0565-4e8c-b1b5-d00dd47c6301\"}}},\"properties\":{\"analyticsWorkspaceId\":\"ylcc\",\"availabilityZones\":[\"xrhyzdfwrsofplt\"],\"clusterVersions\":[{\"supportExpiryDate\":\"irrhv\",\"targetClusterVersion\":\"nracw\"},{\"supportExpiryDate\":\"qigtuujwouhdaws\",\"targetClusterVersion\":\"rb\"}],\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"jybvit\",\"fabricControllerId\":\"qkj\",\"managedResourceGroupConfiguration\":{\"location\":\"nu\",\"name\":\"ggmuwdcho\"},\"managerExtendedLocation\":{\"name\":\"nkf\",\"type\":\"xlvxnoakiz\"},\"provisioningState\":\"Canceled\",\"vmSize\":\"knaqlnuwig\"},\"location\":\"xly\",\"tags\":{\"jtlkexaonwivkcqh\":\"hvxzcwxhmp\",\"rmmkyupiju\":\"xhxknlc\"},\"id\":\"yqjf\",\"name\":\"akfqfrkemyildud\",\"type\":\"jascowvfdjkpd\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -52,14 +34,15 @@ public void testList() throws Exception { PagedIterable response = manager.clusterManagers().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("lehmcgcjeinueho", response.iterator().next().location()); - Assertions.assertEquals("vfejvqnttmbqda", response.iterator().next().tags().get("zfivfokpysthhzag")); - Assertions.assertEquals("kl", response.iterator().next().analyticsWorkspaceId()); - Assertions.assertEquals("rvtxvcmufunlc", response.iterator().next().availabilityZones().get(0)); - Assertions.assertEquals("zpxvjnzdpvoc", response.iterator().next().fabricControllerId()); - Assertions.assertEquals("pcnab", response.iterator().next().managedResourceGroupConfiguration().location()); - Assertions.assertEquals("fsnggytexvzilm", - response.iterator().next().managedResourceGroupConfiguration().name()); - Assertions.assertEquals("weucyrth", response.iterator().next().vmSize()); + Assertions.assertEquals("xly", response.iterator().next().location()); + Assertions.assertEquals("hvxzcwxhmp", response.iterator().next().tags().get("jtlkexaonwivkcqh")); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, + response.iterator().next().identity().type()); + Assertions.assertEquals("ylcc", response.iterator().next().analyticsWorkspaceId()); + Assertions.assertEquals("xrhyzdfwrsofplt", response.iterator().next().availabilityZones().get(0)); + Assertions.assertEquals("qkj", response.iterator().next().fabricControllerId()); + Assertions.assertEquals("nu", response.iterator().next().managedResourceGroupConfiguration().location()); + Assertions.assertEquals("ggmuwdcho", response.iterator().next().managedResourceGroupConfiguration().name()); + Assertions.assertEquals("knaqlnuwig", response.iterator().next().vmSize()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.java index 4ae3230d9c71c..dfd818ec469ae 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationInnerTests.java @@ -16,30 +16,30 @@ public final class ClusterMetricsConfigurationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterMetricsConfigurationInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"fcsserxhtvsox\",\"type\":\"lwntsjgqrs\"},\"properties\":{\"collectionInterval\":994604483308032293,\"detailedStatus\":\"Processing\",\"detailedStatusMessage\":\"u\",\"disabledMetrics\":[\"chrszi\",\"oyuelyetn\",\"nb\"],\"enabledMetrics\":[\"ggagfln\",\"gm\",\"rwahzjmucftbyr\"],\"provisioningState\":\"Accepted\"},\"location\":\"hkpigqfusuckzmkw\",\"tags\":{\"hjnhgwydyynfsvk\":\"noxaxmqeqal\",\"ta\":\"gbv\",\"jcpeogkhnmg\":\"arfdlpukhpyrnei\"},\"id\":\"ro\",\"name\":\"xddbhfhpfpaz\",\"type\":\"zoyw\"}") + "{\"extendedLocation\":{\"name\":\"kxxpvbrd\",\"type\":\"jmzsyzfh\"},\"properties\":{\"collectionInterval\":4218059828246905287,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"cyychunsjlp\",\"disabledMetrics\":[\"wszhvvuicphvtrr\",\"hwrbfdpyflubh\",\"jgl\"],\"enabledMetrics\":[\"uyzlw\",\"hmem\",\"ooclutnp\",\"memczjkmmyk\"],\"provisioningState\":\"Succeeded\"},\"location\":\"sglhsr\",\"tags\":{\"nigrfihotjewl\":\"ejylmbkzu\",\"hqo\":\"xuzzjgnrefq\",\"diw\":\"oihiqak\",\"hcspo\":\"brkwpzdqt\"},\"id\":\"aqa\",\"name\":\"sipi\",\"type\":\"tgbebj\"}") .toObject(ClusterMetricsConfigurationInner.class); - Assertions.assertEquals("hkpigqfusuckzmkw", model.location()); - Assertions.assertEquals("noxaxmqeqal", model.tags().get("hjnhgwydyynfsvk")); - Assertions.assertEquals("fcsserxhtvsox", model.extendedLocation().name()); - Assertions.assertEquals("lwntsjgqrs", model.extendedLocation().type()); - Assertions.assertEquals(994604483308032293L, model.collectionInterval()); - Assertions.assertEquals("ggagfln", model.enabledMetrics().get(0)); + Assertions.assertEquals("sglhsr", model.location()); + Assertions.assertEquals("ejylmbkzu", model.tags().get("nigrfihotjewl")); + Assertions.assertEquals("kxxpvbrd", model.extendedLocation().name()); + Assertions.assertEquals("jmzsyzfh", model.extendedLocation().type()); + Assertions.assertEquals(4218059828246905287L, model.collectionInterval()); + Assertions.assertEquals("uyzlw", model.enabledMetrics().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterMetricsConfigurationInner model = new ClusterMetricsConfigurationInner().withLocation("hkpigqfusuckzmkw") - .withTags(mapOf("hjnhgwydyynfsvk", "noxaxmqeqal", "ta", "gbv", "jcpeogkhnmg", "arfdlpukhpyrnei")) - .withExtendedLocation(new ExtendedLocation().withName("fcsserxhtvsox").withType("lwntsjgqrs")) - .withCollectionInterval(994604483308032293L) - .withEnabledMetrics(Arrays.asList("ggagfln", "gm", "rwahzjmucftbyr")); + ClusterMetricsConfigurationInner model = new ClusterMetricsConfigurationInner().withLocation("sglhsr") + .withTags(mapOf("nigrfihotjewl", "ejylmbkzu", "hqo", "xuzzjgnrefq", "diw", "oihiqak", "hcspo", "brkwpzdqt")) + .withExtendedLocation(new ExtendedLocation().withName("kxxpvbrd").withType("jmzsyzfh")) + .withCollectionInterval(4218059828246905287L) + .withEnabledMetrics(Arrays.asList("uyzlw", "hmem", "ooclutnp", "memczjkmmyk")); model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationInner.class); - Assertions.assertEquals("hkpigqfusuckzmkw", model.location()); - Assertions.assertEquals("noxaxmqeqal", model.tags().get("hjnhgwydyynfsvk")); - Assertions.assertEquals("fcsserxhtvsox", model.extendedLocation().name()); - Assertions.assertEquals("lwntsjgqrs", model.extendedLocation().type()); - Assertions.assertEquals(994604483308032293L, model.collectionInterval()); - Assertions.assertEquals("ggagfln", model.enabledMetrics().get(0)); + Assertions.assertEquals("sglhsr", model.location()); + Assertions.assertEquals("ejylmbkzu", model.tags().get("nigrfihotjewl")); + Assertions.assertEquals("kxxpvbrd", model.extendedLocation().name()); + Assertions.assertEquals("jmzsyzfh", model.extendedLocation().type()); + Assertions.assertEquals(4218059828246905287L, model.collectionInterval()); + Assertions.assertEquals("uyzlw", model.enabledMetrics().get(0)); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java index a03c4e789dc48..e019deb14a304 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationListTests.java @@ -17,39 +17,45 @@ public final class ClusterMetricsConfigurationListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterMetricsConfigurationList model = BinaryData.fromString( - "{\"nextLink\":\"ucoig\",\"value\":[{\"extendedLocation\":{\"name\":\"ncnwfepbnwgf\",\"type\":\"xjg\"},\"properties\":{\"collectionInterval\":418211033576127424,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"dlfgtdysnaq\",\"disabledMetrics\":[\"qbctqha\",\"zjrwdkqze\",\"yjleziunjx\",\"fza\"],\"enabledMetrics\":[\"wcegyamlbn\",\"eqacjjvpilguooq\",\"agmdit\"],\"provisioningState\":\"Failed\"},\"location\":\"ookjbsahrtdtpde\",\"tags\":{\"vcjkgd\":\"cslmotoebnfxo\"},\"id\":\"razftxejwabmdujt\",\"name\":\"vcopex\",\"type\":\"m\"},{\"extendedLocation\":{\"name\":\"urbuhhlkyqltq\",\"type\":\"rogtuwkf\"},\"properties\":{\"collectionInterval\":3058507501034191823,\"detailedStatus\":\"Processing\",\"detailedStatusMessage\":\"ysidfvclgl\",\"disabledMetrics\":[\"uijtkbu\",\"qogsfikayian\",\"haru\"],\"enabledMetrics\":[\"iqxf\"],\"provisioningState\":\"Canceled\"},\"location\":\"ttvwkpqh\",\"tags\":{\"cdlguauc\":\"nuygbqeqqekewvnq\",\"jwnlax\":\"f\"},\"id\":\"un\",\"name\":\"qikczvvita\",\"type\":\"gx\"}]}") + "{\"nextLink\":\"duugwbsre\",\"value\":[{\"extendedLocation\":{\"name\":\"q\",\"type\":\"fuarenlvhht\"},\"properties\":{\"collectionInterval\":8022511139260982610,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"fvv\",\"disabledMetrics\":[\"edev\"],\"enabledMetrics\":[\"slcqxypokkh\"],\"provisioningState\":\"Succeeded\"},\"location\":\"cymczngn\",\"tags\":{\"wuninv\":\"x\",\"h\":\"db\"},\"id\":\"qdtvqecrqctmxx\",\"name\":\"tddmf\",\"type\":\"huytxzvtzn\"},{\"extendedLocation\":{\"name\":\"pxbannovvoxc\",\"type\":\"ytprwnwvroev\"},\"properties\":{\"collectionInterval\":3836787591700110270,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"rrrouuxvnsa\",\"disabledMetrics\":[\"rymo\",\"izrxklob\",\"xnazpmkml\",\"vevfxz\"],\"enabledMetrics\":[\"hbzxli\",\"hrdd\",\"tfgxqbawpcb\",\"nzqcy\"],\"provisioningState\":\"Failed\"},\"location\":\"qofyuicdhzbdy\",\"tags\":{\"lfmu\":\"gbdvibidmhmwff\",\"yoxoy\":\"apckccrrvw\",\"oshbragapyy\":\"ukphaimmoiroq\",\"opfppdbwnupgah\":\"mfsvbpav\"},\"id\":\"kuma\",\"name\":\"jcaacfdmmcpugm\",\"type\":\"hqepvufhbzehewh\"},{\"extendedLocation\":{\"name\":\"qhnlbqnbld\",\"type\":\"eaclgschorimk\"},\"properties\":{\"collectionInterval\":3947758974496733605,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"ucsofldpuviyf\",\"disabledMetrics\":[\"beolh\",\"hlvbmxu\",\"ibsxtkcud\"],\"enabledMetrics\":[\"farfs\"],\"provisioningState\":\"Provisioning\"},\"location\":\"kjxnqpvwgfstmhq\",\"tags\":{\"aoaf\":\"zmdk\",\"gc\":\"luqvoxmycjimryv\"},\"id\":\"wpbmzgwesydsxwef\",\"name\":\"hecbvopwndyq\",\"type\":\"eallklmtkhlo\"}]}") .toObject(ClusterMetricsConfigurationList.class); - Assertions.assertEquals("ucoig", model.nextLink()); - Assertions.assertEquals("ookjbsahrtdtpde", model.value().get(0).location()); - Assertions.assertEquals("cslmotoebnfxo", model.value().get(0).tags().get("vcjkgd")); - Assertions.assertEquals("ncnwfepbnwgf", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("xjg", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(418211033576127424L, model.value().get(0).collectionInterval()); - Assertions.assertEquals("wcegyamlbn", model.value().get(0).enabledMetrics().get(0)); + Assertions.assertEquals("duugwbsre", model.nextLink()); + Assertions.assertEquals("cymczngn", model.value().get(0).location()); + Assertions.assertEquals("x", model.value().get(0).tags().get("wuninv")); + Assertions.assertEquals("q", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("fuarenlvhht", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(8022511139260982610L, model.value().get(0).collectionInterval()); + Assertions.assertEquals("slcqxypokkh", model.value().get(0).enabledMetrics().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterMetricsConfigurationList model = new ClusterMetricsConfigurationList().withNextLink("ucoig") + ClusterMetricsConfigurationList model = new ClusterMetricsConfigurationList().withNextLink("duugwbsre") .withValue(Arrays.asList( - new ClusterMetricsConfigurationInner().withLocation("ookjbsahrtdtpde") - .withTags(mapOf("vcjkgd", "cslmotoebnfxo")) - .withExtendedLocation(new ExtendedLocation().withName("ncnwfepbnwgf").withType("xjg")) - .withCollectionInterval(418211033576127424L) - .withEnabledMetrics(Arrays.asList("wcegyamlbn", "eqacjjvpilguooq", "agmdit")), - new ClusterMetricsConfigurationInner().withLocation("ttvwkpqh") - .withTags(mapOf("cdlguauc", "nuygbqeqqekewvnq", "jwnlax", "f")) - .withExtendedLocation(new ExtendedLocation().withName("urbuhhlkyqltq").withType("rogtuwkf")) - .withCollectionInterval(3058507501034191823L) - .withEnabledMetrics(Arrays.asList("iqxf")))); + new ClusterMetricsConfigurationInner().withLocation("cymczngn") + .withTags(mapOf("wuninv", "x", "h", "db")) + .withExtendedLocation(new ExtendedLocation().withName("q").withType("fuarenlvhht")) + .withCollectionInterval(8022511139260982610L) + .withEnabledMetrics(Arrays.asList("slcqxypokkh")), + new ClusterMetricsConfigurationInner().withLocation("qofyuicdhzbdy") + .withTags(mapOf("lfmu", "gbdvibidmhmwff", "yoxoy", "apckccrrvw", "oshbragapyy", "ukphaimmoiroq", + "opfppdbwnupgah", "mfsvbpav")) + .withExtendedLocation(new ExtendedLocation().withName("pxbannovvoxc").withType("ytprwnwvroev")) + .withCollectionInterval(3836787591700110270L) + .withEnabledMetrics(Arrays.asList("hbzxli", "hrdd", "tfgxqbawpcb", "nzqcy")), + new ClusterMetricsConfigurationInner().withLocation("kjxnqpvwgfstmhq") + .withTags(mapOf("aoaf", "zmdk", "gc", "luqvoxmycjimryv")) + .withExtendedLocation(new ExtendedLocation().withName("qhnlbqnbld").withType("eaclgschorimk")) + .withCollectionInterval(3947758974496733605L) + .withEnabledMetrics(Arrays.asList("farfs")))); model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationList.class); - Assertions.assertEquals("ucoig", model.nextLink()); - Assertions.assertEquals("ookjbsahrtdtpde", model.value().get(0).location()); - Assertions.assertEquals("cslmotoebnfxo", model.value().get(0).tags().get("vcjkgd")); - Assertions.assertEquals("ncnwfepbnwgf", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("xjg", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(418211033576127424L, model.value().get(0).collectionInterval()); - Assertions.assertEquals("wcegyamlbn", model.value().get(0).enabledMetrics().get(0)); + Assertions.assertEquals("duugwbsre", model.nextLink()); + Assertions.assertEquals("cymczngn", model.value().get(0).location()); + Assertions.assertEquals("x", model.value().get(0).tags().get("wuninv")); + Assertions.assertEquals("q", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("fuarenlvhht", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(8022511139260982610L, model.value().get(0).collectionInterval()); + Assertions.assertEquals("slcqxypokkh", model.value().get(0).enabledMetrics().get(0)); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.java index deb5fa80e4bb9..83015e8755b22 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchParametersTests.java @@ -15,23 +15,23 @@ public final class ClusterMetricsConfigurationPatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterMetricsConfigurationPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"collectionInterval\":1068870497872313988,\"enabledMetrics\":[\"khminqcymc\",\"ngnbdxxew\",\"ninvudbchaqdt\",\"qecrqctmxx\"]},\"tags\":{\"vtzn\":\"dmflhuytx\"}}") + "{\"properties\":{\"collectionInterval\":4287701652301675834,\"enabledMetrics\":[\"uztlvtmva\"]},\"tags\":{\"oveofizrvjfnmj\":\"idqlvhu\"}}") .toObject(ClusterMetricsConfigurationPatchParameters.class); - Assertions.assertEquals("dmflhuytx", model.tags().get("vtzn")); - Assertions.assertEquals(1068870497872313988L, model.collectionInterval()); - Assertions.assertEquals("khminqcymc", model.enabledMetrics().get(0)); + Assertions.assertEquals("idqlvhu", model.tags().get("oveofizrvjfnmj")); + Assertions.assertEquals(4287701652301675834L, model.collectionInterval()); + Assertions.assertEquals("uztlvtmva", model.enabledMetrics().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterMetricsConfigurationPatchParameters model - = new ClusterMetricsConfigurationPatchParameters().withTags(mapOf("vtzn", "dmflhuytx")) - .withCollectionInterval(1068870497872313988L) - .withEnabledMetrics(Arrays.asList("khminqcymc", "ngnbdxxew", "ninvudbchaqdt", "qecrqctmxx")); + = new ClusterMetricsConfigurationPatchParameters().withTags(mapOf("oveofizrvjfnmj", "idqlvhu")) + .withCollectionInterval(4287701652301675834L) + .withEnabledMetrics(Arrays.asList("uztlvtmva")); model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationPatchParameters.class); - Assertions.assertEquals("dmflhuytx", model.tags().get("vtzn")); - Assertions.assertEquals(1068870497872313988L, model.collectionInterval()); - Assertions.assertEquals("khminqcymc", model.enabledMetrics().get(0)); + Assertions.assertEquals("idqlvhu", model.tags().get("oveofizrvjfnmj")); + Assertions.assertEquals(4287701652301675834L, model.collectionInterval()); + Assertions.assertEquals("uztlvtmva", model.enabledMetrics().get(0)); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java index 21e6389972f6b..f6cc1e2f6a6cf 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPatchPropertiesTests.java @@ -13,19 +13,19 @@ public final class ClusterMetricsConfigurationPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterMetricsConfigurationPatchProperties model - = BinaryData.fromString("{\"collectionInterval\":2719232038874536718,\"enabledMetrics\":[\"novv\",\"xc\"]}") + = BinaryData.fromString("{\"collectionInterval\":7248546755237746462,\"enabledMetrics\":[\"giblkujrllf\"]}") .toObject(ClusterMetricsConfigurationPatchProperties.class); - Assertions.assertEquals(2719232038874536718L, model.collectionInterval()); - Assertions.assertEquals("novv", model.enabledMetrics().get(0)); + Assertions.assertEquals(7248546755237746462L, model.collectionInterval()); + Assertions.assertEquals("giblkujrllf", model.enabledMetrics().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterMetricsConfigurationPatchProperties model - = new ClusterMetricsConfigurationPatchProperties().withCollectionInterval(2719232038874536718L) - .withEnabledMetrics(Arrays.asList("novv", "xc")); + = new ClusterMetricsConfigurationPatchProperties().withCollectionInterval(7248546755237746462L) + .withEnabledMetrics(Arrays.asList("giblkujrllf")); model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationPatchProperties.class); - Assertions.assertEquals(2719232038874536718L, model.collectionInterval()); - Assertions.assertEquals("novv", model.enabledMetrics().get(0)); + Assertions.assertEquals(7248546755237746462L, model.collectionInterval()); + Assertions.assertEquals("giblkujrllf", model.enabledMetrics().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java index cd1f02e9d1179..3247a173c3e5b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterMetricsConfigurationPropertiesTests.java @@ -13,19 +13,19 @@ public final class ClusterMetricsConfigurationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterMetricsConfigurationProperties model = BinaryData.fromString( - "{\"collectionInterval\":8246168361887444991,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"lontacnpq\",\"disabledMetrics\":[\"htuevrhrljy\",\"ogwxhnsduugwb\",\"reur\"],\"enabledMetrics\":[\"fuarenlvhht\",\"lnvnafvvkyfedev\",\"bo\"],\"provisioningState\":\"Provisioning\"}") + "{\"collectionInterval\":2386815230831470756,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ichdlpn\",\"disabledMetrics\":[\"b\",\"tnbatzvi\",\"sowsaael\",\"attcju\"],\"enabledMetrics\":[\"rvkmjcwmjvlgfggc\",\"kyylizr\"],\"provisioningState\":\"Provisioning\"}") .toObject(ClusterMetricsConfigurationProperties.class); - Assertions.assertEquals(8246168361887444991L, model.collectionInterval()); - Assertions.assertEquals("fuarenlvhht", model.enabledMetrics().get(0)); + Assertions.assertEquals(2386815230831470756L, model.collectionInterval()); + Assertions.assertEquals("rvkmjcwmjvlgfggc", model.enabledMetrics().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterMetricsConfigurationProperties model - = new ClusterMetricsConfigurationProperties().withCollectionInterval(8246168361887444991L) - .withEnabledMetrics(Arrays.asList("fuarenlvhht", "lnvnafvvkyfedev", "bo")); + = new ClusterMetricsConfigurationProperties().withCollectionInterval(2386815230831470756L) + .withEnabledMetrics(Arrays.asList("rvkmjcwmjvlgfggc", "kyylizr")); model = BinaryData.fromObject(model).toObject(ClusterMetricsConfigurationProperties.class); - Assertions.assertEquals(8246168361887444991L, model.collectionInterval()); - Assertions.assertEquals("fuarenlvhht", model.enabledMetrics().get(0)); + Assertions.assertEquals(2386815230831470756L, model.collectionInterval()); + Assertions.assertEquals("rvkmjcwmjvlgfggc", model.enabledMetrics().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.java new file mode 100644 index 0000000000000..66a897e97a826 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterScanRuntimeParametersTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParameters; +import com.azure.resourcemanager.networkcloud.models.ClusterScanRuntimeParametersScanActivity; +import org.junit.jupiter.api.Assertions; + +public final class ClusterScanRuntimeParametersTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterScanRuntimeParameters model + = BinaryData.fromString("{\"scanActivity\":\"Skip\"}").toObject(ClusterScanRuntimeParameters.class); + Assertions.assertEquals(ClusterScanRuntimeParametersScanActivity.SKIP, model.scanActivity()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ClusterScanRuntimeParameters model + = new ClusterScanRuntimeParameters().withScanActivity(ClusterScanRuntimeParametersScanActivity.SKIP); + model = BinaryData.fromObject(model).toObject(ClusterScanRuntimeParameters.class); + Assertions.assertEquals(ClusterScanRuntimeParametersScanActivity.SKIP, model.scanActivity()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java new file mode 100644 index 0000000000000..8414560d2c4cc --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateStrategyTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy; +import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategyType; +import com.azure.resourcemanager.networkcloud.models.ValidationThresholdType; +import org.junit.jupiter.api.Assertions; + +public final class ClusterUpdateStrategyTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterUpdateStrategy model = BinaryData.fromString( + "{\"maxUnavailable\":8183486072070109381,\"strategyType\":\"Rack\",\"thresholdType\":\"PercentSuccess\",\"thresholdValue\":1965197725763741075,\"waitTimeMinutes\":4275294117153207447}") + .toObject(ClusterUpdateStrategy.class); + Assertions.assertEquals(8183486072070109381L, model.maxUnavailable()); + Assertions.assertEquals(ClusterUpdateStrategyType.RACK, model.strategyType()); + Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.thresholdType()); + Assertions.assertEquals(1965197725763741075L, model.thresholdValue()); + Assertions.assertEquals(4275294117153207447L, model.waitTimeMinutes()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ClusterUpdateStrategy model = new ClusterUpdateStrategy().withMaxUnavailable(8183486072070109381L) + .withStrategyType(ClusterUpdateStrategyType.RACK) + .withThresholdType(ValidationThresholdType.PERCENT_SUCCESS) + .withThresholdValue(1965197725763741075L) + .withWaitTimeMinutes(4275294117153207447L); + model = BinaryData.fromObject(model).toObject(ClusterUpdateStrategy.class); + Assertions.assertEquals(8183486072070109381L, model.maxUnavailable()); + Assertions.assertEquals(ClusterUpdateStrategyType.RACK, model.strategyType()); + Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.thresholdType()); + Assertions.assertEquals(1965197725763741075L, model.thresholdValue()); + Assertions.assertEquals(4275294117153207447L, model.waitTimeMinutes()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.java index b20d1744ee5b7..94a47ae4685fe 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClusterUpdateVersionParametersTests.java @@ -11,16 +11,16 @@ public final class ClusterUpdateVersionParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ClusterUpdateVersionParameters model = BinaryData.fromString("{\"targetClusterVersion\":\"ytprwnwvroev\"}") + ClusterUpdateVersionParameters model = BinaryData.fromString("{\"targetClusterVersion\":\"idjpuuyju\"}") .toObject(ClusterUpdateVersionParameters.class); - Assertions.assertEquals("ytprwnwvroev", model.targetClusterVersion()); + Assertions.assertEquals("idjpuuyju", model.targetClusterVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ClusterUpdateVersionParameters model - = new ClusterUpdateVersionParameters().withTargetClusterVersion("ytprwnwvroev"); + = new ClusterUpdateVersionParameters().withTargetClusterVersion("idjpuuyju"); model = BinaryData.fromObject(model).toObject(ClusterUpdateVersionParameters.class); - Assertions.assertEquals("ytprwnwvroev", model.targetClusterVersion()); + Assertions.assertEquals("idjpuuyju", model.targetClusterVersion()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteMockTests.java deleted file mode 100644 index d84b2c5a3f4d5..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ClustersDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.clusters().delete("uyx", "bxqvmvuayt", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeployMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeployMockTests.java deleted file mode 100644 index dd2758d3f9a30..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersDeployMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterDeployParameters; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ClustersDeployMockTests { - @Test - public void testDeploy() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"hwzdanojisgglmv\",\"resourceId\":\"atuztjct\",\"name\":\"pvbkaehxsmzyg\",\"status\":\"fwakw\",\"percentComplete\":35.292667,\"startTime\":\"2021-10-24T14:28:17Z\",\"endTime\":\"2021-05-09T21:41:34Z\",\"operations\":[{\"id\":\"so\",\"resourceId\":\"juxlkbectvtfjm\",\"name\":\"dchmaiubavlz\",\"status\":\"pvgmfa\",\"percentComplete\":28.783613,\"startTime\":\"2021-03-01T09:22:06Z\",\"endTime\":\"2021-08-06T15:10:58Z\",\"operations\":[{\"id\":\"dgjqafkmkro\",\"resourceId\":\"rthqe\",\"name\":\"pqrtvaoznqni\",\"status\":\"iezeagm\",\"percentComplete\":6.5347433,\"startTime\":\"2021-06-06T13:22:55Z\",\"endTime\":\"2021-03-13T23:18Z\",\"operations\":[{\"status\":\"hfpjstlzmbls\"},{\"status\":\"jdeolctae\"},{\"status\":\"fsyrledjc\"}]},{\"id\":\"bvt\",\"resourceId\":\"gdxzvsgeafgfoseh\",\"name\":\"zsxezppkkwaae\",\"status\":\"k\",\"percentComplete\":66.895615,\"startTime\":\"2021-10-16T12:43:35Z\",\"endTime\":\"2021-12-09T00:38:09Z\",\"operations\":[{\"status\":\"oyrplixl\"},{\"status\":\"jmllpquevhamfow\"},{\"status\":\"w\"},{\"status\":\"tmk\"}]}]},{\"id\":\"kzwaqxofq\",\"resourceId\":\"chiqbplvfid\",\"name\":\"ztekxbyjgmsfep\",\"status\":\"yihpqadagrh\",\"percentComplete\":50.432777,\"startTime\":\"2021-03-27T17:09:38Z\",\"endTime\":\"2021-02-10T13:07:29Z\",\"operations\":[{\"id\":\"owxwyovcxjsgbip\",\"resourceId\":\"kdveksb\",\"name\":\"oduchvlscr\",\"status\":\"pibfdy\",\"percentComplete\":62.67252,\"startTime\":\"2021-05-01T03:19:26Z\",\"endTime\":\"2021-04-26T01:58:47Z\",\"operations\":[{\"status\":\"ekbhwlkaa\"},{\"status\":\"gkrehbf\"},{\"status\":\"n\"}]},{\"id\":\"ff\",\"resourceId\":\"fiimreoagsqt\",\"name\":\"dusr\",\"status\":\"xxfavsqwudohzilf\",\"percentComplete\":2.8192937,\"startTime\":\"2021-03-12T12:37:46Z\",\"endTime\":\"2021-10-25T06:45:33Z\",\"operations\":[{\"status\":\"s\"},{\"status\":\"eypofqpm\"},{\"status\":\"hyqgsdrmmttjx\"}]}]},{\"id\":\"erhsmvgohtw\",\"resourceId\":\"qilrixysfn\",\"name\":\"sqywwwmhkru\",\"status\":\"aedrympmlqoin\",\"percentComplete\":57.032158,\"startTime\":\"2021-06-28T12:08:40Z\",\"endTime\":\"2021-04-12T09:43:02Z\",\"operations\":[{\"id\":\"fjiiknjdiqf\",\"resourceId\":\"ejhpclbiedfsbwc\",\"name\":\"vbvzipbwxgo\",\"status\":\"oxzpr\",\"percentComplete\":37.58685,\"startTime\":\"2021-05-01T16:17:20Z\",\"endTime\":\"2021-07-15T01:25:19Z\",\"operations\":[{\"status\":\"dgzigjsugswhgs\"},{\"status\":\"odkwwnbafocto\"},{\"status\":\"zhaquvwsxb\"},{\"status\":\"nvkervq\"}]},{\"id\":\"adhrsxqvzvspa\",\"resourceId\":\"sr\",\"name\":\"ajglzrsubklr\",\"status\":\"hjnlt\",\"percentComplete\":84.322235,\"startTime\":\"2021-05-16T23:15:11Z\",\"endTime\":\"2021-09-16T18:33:55Z\",\"operations\":[{\"status\":\"ie\"}]}]},{\"id\":\"aruwdxvqzxoebw\",\"resourceId\":\"xbibanbaupw\",\"name\":\"vpaklozkxbz\",\"status\":\"pejplssa\",\"percentComplete\":22.423506,\"startTime\":\"2021-08-25T22:39:27Z\",\"endTime\":\"2021-07-31T16:17:28Z\",\"operations\":[{\"id\":\"unrswgkpjhboyik\",\"resourceId\":\"huhkslgwlok\",\"name\":\"eoijyzcqypzqzufg\",\"status\":\"yfejyvdwtf\",\"percentComplete\":13.5335865,\"startTime\":\"2021-10-01T23:24:47Z\",\"endTime\":\"2021-08-21T00:51Z\",\"operations\":[{\"status\":\"k\"},{\"status\":\"cf\"},{\"status\":\"ybmx\"},{\"status\":\"nxocuul\"}]},{\"id\":\"kpoy\",\"resourceId\":\"wwdjuxdbdl\",\"name\":\"gdyrcvuqbsgzl\",\"status\":\"qhbjnqogdxwbsfpy\",\"percentComplete\":58.86224,\"startTime\":\"2021-10-15T21:46:21Z\",\"endTime\":\"2021-03-03T16:51:07Z\",\"operations\":[{\"status\":\"ominxojjlu\"},{\"status\":\"xdhilz\"},{\"status\":\"dzzqjmu\"},{\"status\":\"za\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.clusters() - .deploy("adxkxeqbwpntghy", "sa", new ClusterDeployParameters().withSkipValidationsForMachines( - Arrays.asList("rnxsluvlzlad", "t", "kpbqhvfdqqjw")), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hwzdanojisgglmv", response.id()); - Assertions.assertEquals("pvbkaehxsmzyg", response.name()); - Assertions.assertEquals("fwakw", response.status()); - Assertions.assertEquals(35.292667F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-24T14:28:17Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-09T21:41:34Z"), response.endTime()); - Assertions.assertEquals("so", response.operations().get(0).id()); - Assertions.assertEquals("dchmaiubavlz", response.operations().get(0).name()); - Assertions.assertEquals("pvgmfa", response.operations().get(0).status()); - Assertions.assertEquals(28.783613F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-01T09:22:06Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-06T15:10:58Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("dgjqafkmkro", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("pqrtvaoznqni", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("iezeagm", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(6.5347433F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-06T13:22:55Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-13T23:18Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("hfpjstlzmbls", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionMockTests.java deleted file mode 100644 index a5a08166593e5..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ClustersUpdateVersionMockTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ClustersUpdateVersionMockTests { - @Test - public void testUpdateVersion() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"sn\",\"resourceId\":\"kpwolg\",\"name\":\"ubxbteogfgfiijr\",\"status\":\"kw\",\"percentComplete\":42.7373,\"startTime\":\"2021-01-10T10:54:04Z\",\"endTime\":\"2021-08-31T06:22:15Z\",\"operations\":[{\"id\":\"zfpxgnmqvzvluy\",\"resourceId\":\"aiossscyvaifp\",\"name\":\"acvfyeowps\",\"status\":\"x\",\"percentComplete\":53.485535,\"startTime\":\"2021-08-14T22:48:13Z\",\"endTime\":\"2021-09-25T20:23:40Z\",\"operations\":[{\"id\":\"v\",\"resourceId\":\"qfttehdpboujs\",\"name\":\"fvvdshxcdedsue\",\"status\":\"ygnxcgjtfrnqukt\",\"percentComplete\":94.54554,\"startTime\":\"2021-08-24T04:32:50Z\",\"endTime\":\"2021-01-18T17:13:09Z\",\"operations\":[{\"status\":\"s\"},{\"status\":\"ylt\"}]},{\"id\":\"tfmtbgwjdxwnazku\",\"resourceId\":\"drey\",\"name\":\"whsetwwjwzzqs\",\"status\":\"uzu\",\"percentComplete\":3.2954276,\"startTime\":\"2021-10-08T06:22:48Z\",\"endTime\":\"2021-11-09T13:06:10Z\",\"operations\":[{\"status\":\"qqzzdc\"}]},{\"id\":\"ystewfopa\",\"resourceId\":\"azgbsqgpe\",\"name\":\"c\",\"status\":\"utmdpvozg\",\"percentComplete\":20.778894,\"startTime\":\"2021-06-20T10:45:43Z\",\"endTime\":\"2021-10-05T16:50:55Z\",\"operations\":[{\"status\":\"lctzeyowmndcovd\"},{\"status\":\"zqauxzan\"}]}]},{\"id\":\"fruwkud\",\"resourceId\":\"cpft\",\"name\":\"dqyemebunaucm\",\"status\":\"irtneemmjau\",\"percentComplete\":19.34607,\"startTime\":\"2021-01-10T07:42:21Z\",\"endTime\":\"2021-09-29T04:30:33Z\",\"operations\":[{\"id\":\"itranizerwguda\",\"resourceId\":\"xubvf\",\"name\":\"gfcoc\",\"status\":\"fhpri\",\"percentComplete\":71.74806,\"startTime\":\"2021-10-26T02:43:40Z\",\"endTime\":\"2021-11-27T08:02:33Z\",\"operations\":[{\"status\":\"ud\"}]},{\"id\":\"lcdculregpq\",\"resourceId\":\"ojhvrz\",\"name\":\"vgysh\",\"status\":\"rdgrtwmewjzlp\",\"percentComplete\":10.935652,\"startTime\":\"2021-08-16T23:36:15Z\",\"endTime\":\"2021-08-23T04:29:55Z\",\"operations\":[{\"status\":\"cayer\"},{\"status\":\"rransyb\"},{\"status\":\"lpolwzrghsrle\"},{\"status\":\"nkfscjfn\"}]},{\"id\":\"vuagfqwtl\",\"resourceId\":\"gvmreuptrklzmi\",\"name\":\"jwolxfsvaghmpynw\",\"status\":\"slrcigtzj\",\"percentComplete\":30.121494,\"startTime\":\"2021-06-29T16:13:51Z\",\"endTime\":\"2021-03-10T01:51:25Z\",\"operations\":[{\"status\":\"nssovyxpav\"},{\"status\":\"dnievwffcvvy\"}]}]},{\"id\":\"puxgcbdsvalpnpt\",\"resourceId\":\"rkxgpazwugxyqvnj\",\"name\":\"felhldiuhzzgqlm\",\"status\":\"aewzgiudjp\",\"percentComplete\":70.10709,\"startTime\":\"2021-04-21T08:46:45Z\",\"endTime\":\"2021-07-17T16:07:33Z\",\"operations\":[{\"id\":\"hkrezsdsuxheqdgc\",\"resourceId\":\"xsp\",\"name\":\"ymmqgwokmikp\",\"status\":\"zfbmjxuv\",\"percentComplete\":53.539932,\"startTime\":\"2021-09-11T13:09:39Z\",\"endTime\":\"2021-05-30T11:35:27Z\",\"operations\":[{\"status\":\"dvwz\"},{\"status\":\"ehpphthdklmveta\"}]},{\"id\":\"kfqoixwgiksbb\",\"resourceId\":\"ooxr\",\"name\":\"gwphchgjtnht\",\"status\":\"kfac\",\"percentComplete\":18.23241,\"startTime\":\"2020-12-27T13:49:33Z\",\"endTime\":\"2021-08-10T14:00:59Z\",\"operations\":[{\"status\":\"eezbx\"},{\"status\":\"qx\"},{\"status\":\"nuvwcgasgomtmjzw\"}]},{\"id\":\"govsxpwwzt\",\"resourceId\":\"mkkhtgfredml\",\"name\":\"grllcc\",\"status\":\"aovjow\",\"percentComplete\":14.433879,\"startTime\":\"2021-01-21T20:12:23Z\",\"endTime\":\"2021-08-24T08:25:37Z\",\"operations\":[{\"status\":\"mlyotg\"}]}]},{\"id\":\"nsrqor\",\"resourceId\":\"enmvcebxeetq\",\"name\":\"xcxxqndcqjkedw\",\"status\":\"urcgojmrvvxwj\",\"percentComplete\":27.765995,\"startTime\":\"2021-08-17T05:51:47Z\",\"endTime\":\"2021-09-28T04:04:58Z\",\"operations\":[{\"id\":\"silc\",\"resourceId\":\"skx\",\"name\":\"ansbvriaqg\",\"status\":\"tojrulfucte\",\"percentComplete\":30.9254,\"startTime\":\"2021-12-07T06:33:03Z\",\"endTime\":\"2021-09-10T11:37:03Z\",\"operations\":[{\"status\":\"xlyubqjrostv\"},{\"status\":\"jeqmtzzbeqrzt\"},{\"status\":\"x\"},{\"status\":\"lxrdhabsrwrsn\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.clusters() - .updateVersion("ibqlotokhtvwtaz", "kcqwwxwjyofgwh", - new ClusterUpdateVersionParameters().withTargetClusterVersion("kbtlwljssm"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("sn", response.id()); - Assertions.assertEquals("ubxbteogfgfiijr", response.name()); - Assertions.assertEquals("kw", response.status()); - Assertions.assertEquals(42.7373F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T10:54:04Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-31T06:22:15Z"), response.endTime()); - Assertions.assertEquals("zfpxgnmqvzvluy", response.operations().get(0).id()); - Assertions.assertEquals("acvfyeowps", response.operations().get(0).name()); - Assertions.assertEquals("x", response.operations().get(0).status()); - Assertions.assertEquals(53.485535F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T22:48:13Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-25T20:23:40Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("v", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("fvvdshxcdedsue", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("ygnxcgjtfrnqukt", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(94.54554F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-24T04:32:50Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T17:13:09Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("s", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.java new file mode 100644 index 0000000000000..6d75673e9ca10 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/CommandOutputSettingsTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings; +import com.azure.resourcemanager.networkcloud.models.IdentitySelector; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; +import org.junit.jupiter.api.Assertions; + +public final class CommandOutputSettingsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CommandOutputSettings model = BinaryData.fromString( + "{\"associatedIdentity\":{\"identityType\":\"SystemAssignedIdentity\",\"userAssignedIdentityResourceId\":\"yrs\"},\"containerUrl\":\"sytgadgvraea\"}") + .toObject(CommandOutputSettings.class); + Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, + model.associatedIdentity().identityType()); + Assertions.assertEquals("yrs", model.associatedIdentity().userAssignedIdentityResourceId()); + Assertions.assertEquals("sytgadgvraea", model.containerUrl()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CommandOutputSettings model + = new CommandOutputSettings() + .withAssociatedIdentity( + new IdentitySelector().withIdentityType(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId("yrs")) + .withContainerUrl("sytgadgvraea"); + model = BinaryData.fromObject(model).toObject(CommandOutputSettings.class); + Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, + model.associatedIdentity().identityType()); + Assertions.assertEquals("yrs", model.associatedIdentity().userAssignedIdentityResourceId()); + Assertions.assertEquals("sytgadgvraea", model.containerUrl()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteMockTests.java deleted file mode 100644 index d27015ebe986d..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ConsolesDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class ConsolesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.consoles().delete("fvgyxzmxynofxl", "txoqxtdn", "ujsjirkrpskcj", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ControlPlaneNodePatchConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ControlPlaneNodePatchConfigurationTests.java deleted file mode 100644 index 84dcf37bb97e9..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ControlPlaneNodePatchConfigurationTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodePatchConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class ControlPlaneNodePatchConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ControlPlaneNodePatchConfiguration model = BinaryData.fromString("{\"count\":5157192368682854163}") - .toObject(ControlPlaneNodePatchConfiguration.class); - Assertions.assertEquals(5157192368682854163L, model.count()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ControlPlaneNodePatchConfiguration model - = new ControlPlaneNodePatchConfiguration().withCount(5157192368682854163L); - model = BinaryData.fromObject(model).toObject(ControlPlaneNodePatchConfiguration.class); - Assertions.assertEquals(5157192368682854163L, model.count()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java index 301f32ae4d880..c01d3e198f549 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EgressEndpointTests.java @@ -14,24 +14,24 @@ public final class EgressEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EgressEndpoint model = BinaryData.fromString( - "{\"category\":\"ynpwlbj\",\"endpoints\":[{\"domainName\":\"gacftadeh\",\"port\":7028050140215699790},{\"domainName\":\"yfsoppu\",\"port\":7161125881545295821},{\"domainName\":\"nzwdejba\",\"port\":8576241637170958939},{\"domainName\":\"zdmohctbqvu\",\"port\":2681919302417118526}]}") + "{\"category\":\"gkvtmelmqkrhah\",\"endpoints\":[{\"domainName\":\"juahaquhcdhmdual\",\"port\":495813413204095798},{\"domainName\":\"pvfadmwsrcr\",\"port\":5411587900664634399},{\"domainName\":\"vgomz\",\"port\":8511094552590420060}]}") .toObject(EgressEndpoint.class); - Assertions.assertEquals("ynpwlbj", model.category()); - Assertions.assertEquals("gacftadeh", model.endpoints().get(0).domainName()); - Assertions.assertEquals(7028050140215699790L, model.endpoints().get(0).port()); + Assertions.assertEquals("gkvtmelmqkrhah", model.category()); + Assertions.assertEquals("juahaquhcdhmdual", model.endpoints().get(0).domainName()); + Assertions.assertEquals(495813413204095798L, model.endpoints().get(0).port()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EgressEndpoint model = new EgressEndpoint().withCategory("ynpwlbj") - .withEndpoints( - Arrays.asList(new EndpointDependency().withDomainName("gacftadeh").withPort(7028050140215699790L), - new EndpointDependency().withDomainName("yfsoppu").withPort(7161125881545295821L), - new EndpointDependency().withDomainName("nzwdejba").withPort(8576241637170958939L), - new EndpointDependency().withDomainName("zdmohctbqvu").withPort(2681919302417118526L))); + EgressEndpoint model + = new EgressEndpoint().withCategory("gkvtmelmqkrhah") + .withEndpoints(Arrays.asList( + new EndpointDependency().withDomainName("juahaquhcdhmdual").withPort(495813413204095798L), + new EndpointDependency().withDomainName("pvfadmwsrcr").withPort(5411587900664634399L), + new EndpointDependency().withDomainName("vgomz").withPort(8511094552590420060L))); model = BinaryData.fromObject(model).toObject(EgressEndpoint.class); - Assertions.assertEquals("ynpwlbj", model.category()); - Assertions.assertEquals("gacftadeh", model.endpoints().get(0).domainName()); - Assertions.assertEquals(7028050140215699790L, model.endpoints().get(0).port()); + Assertions.assertEquals("gkvtmelmqkrhah", model.category()); + Assertions.assertEquals("juahaquhcdhmdual", model.endpoints().get(0).domainName()); + Assertions.assertEquals(495813413204095798L, model.endpoints().get(0).port()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.java index 7da76f643992b..ead9b9eb82880 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/EndpointDependencyTests.java @@ -11,17 +11,17 @@ public final class EndpointDependencyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EndpointDependency model = BinaryData.fromString("{\"domainName\":\"ndnvo\",\"port\":4292877192766299113}") + EndpointDependency model = BinaryData.fromString("{\"domainName\":\"sgwbnbbeld\",\"port\":547140611004295932}") .toObject(EndpointDependency.class); - Assertions.assertEquals("ndnvo", model.domainName()); - Assertions.assertEquals(4292877192766299113L, model.port()); + Assertions.assertEquals("sgwbnbbeld", model.domainName()); + Assertions.assertEquals(547140611004295932L, model.port()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EndpointDependency model = new EndpointDependency().withDomainName("ndnvo").withPort(4292877192766299113L); + EndpointDependency model = new EndpointDependency().withDomainName("sgwbnbbeld").withPort(547140611004295932L); model = BinaryData.fromObject(model).toObject(EndpointDependency.class); - Assertions.assertEquals("ndnvo", model.domainName()); - Assertions.assertEquals(4292877192766299113L, model.port()); + Assertions.assertEquals("sgwbnbbeld", model.domainName()); + Assertions.assertEquals(547140611004295932L, model.port()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.java index 3736afd8576e7..0c1f210e57118 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/FeatureStatusTests.java @@ -11,7 +11,7 @@ public final class FeatureStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FeatureStatus model = BinaryData.fromString( - "{\"detailedStatus\":\"Unknown\",\"detailedStatusMessage\":\"ibycno\",\"name\":\"knme\",\"version\":\"sgzvahapjyzhpv\"}") + "{\"detailedStatus\":\"Running\",\"detailedStatusMessage\":\"xgwim\",\"name\":\"jhfjxwm\",\"version\":\"kkfoqr\"}") .toObject(FeatureStatus.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java new file mode 100644 index 0000000000000..89641840c38b1 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IdentitySelectorTests.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.IdentitySelector; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentitySelectorType; +import org.junit.jupiter.api.Assertions; + +public final class IdentitySelectorTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + IdentitySelector model = BinaryData + .fromString("{\"identityType\":\"SystemAssignedIdentity\",\"userAssignedIdentityResourceId\":\"nzar\"}") + .toObject(IdentitySelector.class); + Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, model.identityType()); + Assertions.assertEquals("nzar", model.userAssignedIdentityResourceId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + IdentitySelector model + = new IdentitySelector().withIdentityType(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY) + .withUserAssignedIdentityResourceId("nzar"); + model = BinaryData.fromObject(model).toObject(IdentitySelector.class); + Assertions.assertEquals(ManagedServiceIdentitySelectorType.SYSTEM_ASSIGNED_IDENTITY, model.identityType()); + Assertions.assertEquals("nzar", model.userAssignedIdentityResourceId()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java index 7339d49341d42..eb523d8e63493 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/IpAddressPoolTests.java @@ -14,25 +14,24 @@ public final class IpAddressPoolTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IpAddressPool model = BinaryData.fromString( - "{\"addresses\":[\"odkwobd\",\"gxtibqdxbxw\",\"kbogqxndlkzgx\"],\"autoAssign\":\"True\",\"name\":\"iplbpodxunkbebxm\",\"onlyUseHostIps\":\"True\"}") + "{\"addresses\":[\"zlxwabmqoefkifr\"],\"autoAssign\":\"False\",\"name\":\"u\",\"onlyUseHostIps\":\"True\"}") .toObject(IpAddressPool.class); - Assertions.assertEquals("odkwobd", model.addresses().get(0)); - Assertions.assertEquals(BfdEnabled.TRUE, model.autoAssign()); - Assertions.assertEquals("iplbpodxunkbebxm", model.name()); + Assertions.assertEquals("zlxwabmqoefkifr", model.addresses().get(0)); + Assertions.assertEquals(BfdEnabled.FALSE, model.autoAssign()); + Assertions.assertEquals("u", model.name()); Assertions.assertEquals(BfdEnabled.TRUE, model.onlyUseHostIps()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IpAddressPool model - = new IpAddressPool().withAddresses(Arrays.asList("odkwobd", "gxtibqdxbxw", "kbogqxndlkzgx")) - .withAutoAssign(BfdEnabled.TRUE) - .withName("iplbpodxunkbebxm") - .withOnlyUseHostIps(BfdEnabled.TRUE); + IpAddressPool model = new IpAddressPool().withAddresses(Arrays.asList("zlxwabmqoefkifr")) + .withAutoAssign(BfdEnabled.FALSE) + .withName("u") + .withOnlyUseHostIps(BfdEnabled.TRUE); model = BinaryData.fromObject(model).toObject(IpAddressPool.class); - Assertions.assertEquals("odkwobd", model.addresses().get(0)); - Assertions.assertEquals(BfdEnabled.TRUE, model.autoAssign()); - Assertions.assertEquals("iplbpodxunkbebxm", model.name()); + Assertions.assertEquals("zlxwabmqoefkifr", model.addresses().get(0)); + Assertions.assertEquals(BfdEnabled.FALSE, model.autoAssign()); + Assertions.assertEquals("u", model.name()); Assertions.assertEquals(BfdEnabled.TRUE, model.onlyUseHostIps()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.java index 37f1b3ce4fe1c..3d831c46d3256 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KeySetUserStatusTests.java @@ -11,7 +11,7 @@ public final class KeySetUserStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { KeySetUserStatus model = BinaryData - .fromString("{\"azureUserName\":\"edmurrxxge\",\"status\":\"Invalid\",\"statusMessage\":\"vqylkmqpzoyhl\"}") + .fromString("{\"azureUserName\":\"lqbctqhamzjrw\",\"status\":\"Invalid\",\"statusMessage\":\"eqyj\"}") .toObject(KeySetUserStatus.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchParametersTests.java deleted file mode 100644 index 19595d8bc0ff4..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchParametersTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodePatchConfiguration; -import com.azure.resourcemanager.networkcloud.models.KubernetesClusterPatchParameters; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesClusterPatchParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesClusterPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"controlPlaneNodeConfiguration\":{\"count\":1324024361512589812},\"kubernetesVersion\":\"rrouuxvnsasbcry\"},\"tags\":{\"xnazpmkml\":\"izrxklob\"}}") - .toObject(KubernetesClusterPatchParameters.class); - Assertions.assertEquals("izrxklob", model.tags().get("xnazpmkml")); - Assertions.assertEquals(1324024361512589812L, model.controlPlaneNodeConfiguration().count()); - Assertions.assertEquals("rrouuxvnsasbcry", model.kubernetesVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesClusterPatchParameters model - = new KubernetesClusterPatchParameters().withTags(mapOf("xnazpmkml", "izrxklob")) - .withControlPlaneNodeConfiguration( - new ControlPlaneNodePatchConfiguration().withCount(1324024361512589812L)) - .withKubernetesVersion("rrouuxvnsasbcry"); - model = BinaryData.fromObject(model).toObject(KubernetesClusterPatchParameters.class); - Assertions.assertEquals("izrxklob", model.tags().get("xnazpmkml")); - Assertions.assertEquals(1324024361512589812L, model.controlPlaneNodeConfiguration().count()); - Assertions.assertEquals("rrouuxvnsasbcry", model.kubernetesVersion()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchPropertiesTests.java deleted file mode 100644 index 00770c91d332b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterPatchPropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.KubernetesClusterPatchProperties; -import com.azure.resourcemanager.networkcloud.models.ControlPlaneNodePatchConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesClusterPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesClusterPatchProperties model = BinaryData.fromString( - "{\"controlPlaneNodeConfiguration\":{\"count\":8867328731498350162},\"kubernetesVersion\":\"zopjhbzxliohr\"}") - .toObject(KubernetesClusterPatchProperties.class); - Assertions.assertEquals(8867328731498350162L, model.controlPlaneNodeConfiguration().count()); - Assertions.assertEquals("zopjhbzxliohr", model.kubernetesVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesClusterPatchProperties model = new KubernetesClusterPatchProperties() - .withControlPlaneNodeConfiguration(new ControlPlaneNodePatchConfiguration().withCount(8867328731498350162L)) - .withKubernetesVersion("zopjhbzxliohr"); - model = BinaryData.fromObject(model).toObject(KubernetesClusterPatchProperties.class); - Assertions.assertEquals(8867328731498350162L, model.controlPlaneNodeConfiguration().count()); - Assertions.assertEquals("zopjhbzxliohr", model.kubernetesVersion()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.java index 61f68afa69f5c..80901ed821a43 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClusterRestartNodeParametersTests.java @@ -11,16 +11,16 @@ public final class KubernetesClusterRestartNodeParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - KubernetesClusterRestartNodeParameters model - = BinaryData.fromString("{\"nodeName\":\"schori\"}").toObject(KubernetesClusterRestartNodeParameters.class); - Assertions.assertEquals("schori", model.nodeName()); + KubernetesClusterRestartNodeParameters model = BinaryData.fromString("{\"nodeName\":\"qjjyslurl\"}") + .toObject(KubernetesClusterRestartNodeParameters.class); + Assertions.assertEquals("qjjyslurl", model.nodeName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { KubernetesClusterRestartNodeParameters model - = new KubernetesClusterRestartNodeParameters().withNodeName("schori"); + = new KubernetesClusterRestartNodeParameters().withNodeName("qjjyslurl"); model = BinaryData.fromObject(model).toObject(KubernetesClusterRestartNodeParameters.class); - Assertions.assertEquals("schori", model.nodeName()); + Assertions.assertEquals("qjjyslurl", model.nodeName()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteMockTests.java deleted file mode 100644 index ade07609f44fe..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KubernetesClustersDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kubernetesClusters().delete("bjgmnzj", "t", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeMockTests.java deleted file mode 100644 index 76410bcc6cb8d..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/KubernetesClustersRestartNodeMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.KubernetesClusterRestartNodeParameters; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KubernetesClustersRestartNodeMockTests { - @Test - public void testRestartNode() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"hyibdrqrswh\",\"resourceId\":\"ubpyrow\",\"name\":\"oxztfwfqch\",\"status\":\"czevjnn\",\"percentComplete\":64.1754,\"startTime\":\"2021-04-04T10:49Z\",\"endTime\":\"2021-05-24T09:27:10Z\",\"operations\":[{\"id\":\"qpemh\",\"resourceId\":\"gkrepdqhqyhw\",\"name\":\"e\",\"status\":\"vx\",\"percentComplete\":80.07647,\"startTime\":\"2021-11-27T02:47:28Z\",\"endTime\":\"2021-04-02T23:25:20Z\",\"operations\":[{\"id\":\"inhgre\",\"resourceId\":\"twhlpuzjpce\",\"name\":\"nzangprbfaxy\",\"status\":\"zlbciphmse\",\"percentComplete\":97.917725,\"startTime\":\"2021-11-20T12:21:36Z\",\"endTime\":\"2021-01-10T19:01:41Z\",\"operations\":[{\"status\":\"xfvonfeeqg\"},{\"status\":\"krie\"}]},{\"id\":\"nixxo\",\"resourceId\":\"zk\",\"name\":\"wnwpiwxeii\",\"status\":\"rmpepkld\",\"percentComplete\":24.544788,\"startTime\":\"2021-07-13T06:09:31Z\",\"endTime\":\"2021-11-28T06:05:09Z\",\"operations\":[{\"status\":\"ws\"},{\"status\":\"gkjgya\"}]}]},{\"id\":\"sekwefc\",\"resourceId\":\"inwoqartwyxq\",\"name\":\"l\",\"status\":\"dvatdavuqm\",\"percentComplete\":60.21031,\"startTime\":\"2021-10-15T14:21:54Z\",\"endTime\":\"2021-02-05T13:45:47Z\",\"operations\":[{\"id\":\"quvjez\",\"resourceId\":\"umvpsimioyoigl\",\"name\":\"iqwnnraclibbfq\",\"status\":\"spkladydgnhau\",\"percentComplete\":45.845135,\"startTime\":\"2021-04-29T04:27:22Z\",\"endTime\":\"2021-08-06T01:44:23Z\",\"operations\":[{\"status\":\"mnmabeddqil\"}]},{\"id\":\"fpfqf\",\"resourceId\":\"vstclg\",\"name\":\"vwerfwxbsmtb\",\"status\":\"jj\",\"percentComplete\":18.261974,\"startTime\":\"2021-02-16T12:19:52Z\",\"endTime\":\"2020-12-28T15:51:37Z\",\"operations\":[{\"status\":\"vbtbrekqhsqhtf\"}]}]},{\"id\":\"byejuwyqwdqigm\",\"resourceId\":\"ginz\",\"name\":\"lujkhn\",\"status\":\"cmrnkfmkhcq\",\"percentComplete\":12.672424,\"startTime\":\"2021-01-04T06:58:03Z\",\"endTime\":\"2021-09-23T04:33:55Z\",\"operations\":[{\"id\":\"qe\",\"resourceId\":\"j\",\"name\":\"vragpokddx\",\"status\":\"jhhkv\",\"percentComplete\":93.62849,\"startTime\":\"2021-01-20T22:08:25Z\",\"endTime\":\"2021-02-07T21:47:53Z\",\"operations\":[{\"status\":\"ewkq\"}]},{\"id\":\"pgb\",\"resourceId\":\"ffbkkwvdxaexqo\",\"name\":\"yrlji\",\"status\":\"lzbnobrqlpbcjt\",\"percentComplete\":67.76566,\"startTime\":\"2021-10-06T10:17Z\",\"endTime\":\"2021-10-31T04:42:12Z\",\"operations\":[{\"status\":\"bxnhsqeaeo\"},{\"status\":\"qelwgdhuruzytza\"},{\"status\":\"ogatmoljiy\"},{\"status\":\"mpinmzvfkneerzzt\"}]}]},{\"id\":\"j\",\"resourceId\":\"ugdybnhrxlel\",\"name\":\"hkeizcp\",\"status\":\"htdm\",\"percentComplete\":3.949666,\"startTime\":\"2021-05-22T08:34:02Z\",\"endTime\":\"2021-01-25T14:21:57Z\",\"operations\":[{\"id\":\"ydbjzcqymlcf\",\"resourceId\":\"hmhsurlgwqkpm\",\"name\":\"pstauol\",\"status\":\"wiubmomsgvv\",\"percentComplete\":92.820564,\"startTime\":\"2021-01-31T12:32:47Z\",\"endTime\":\"2021-01-17T00:07:41Z\",\"operations\":[{\"status\":\"ewjjmajnkdflqio\"},{\"status\":\"swaeqkzfz\"},{\"status\":\"xjoshohtotryegpk\"},{\"status\":\"xrmexznlw\"}]},{\"id\":\"okxkhupzer\",\"resourceId\":\"g\",\"name\":\"l\",\"status\":\"drmyfcemftzg\",\"percentComplete\":14.742958,\"startTime\":\"2021-07-17T22:46:30Z\",\"endTime\":\"2021-08-17T18:53:21Z\",\"operations\":[{\"status\":\"kd\"},{\"status\":\"qnhttwdowrczfj\"},{\"status\":\"nnuxxrkkmhm\"}]},{\"id\":\"wempdcifrhju\",\"resourceId\":\"sulwzpflusn\",\"name\":\"mhh\",\"status\":\"zotfriyrgkoek\",\"percentComplete\":74.13537,\"startTime\":\"2021-11-24T18:08:55Z\",\"endTime\":\"2021-03-14T19:38:08Z\",\"operations\":[{\"status\":\"ghctxbxmolpcqyde\"},{\"status\":\"kvskiczdfrjei\"},{\"status\":\"ikgqaboohxbms\"}]},{\"id\":\"qsxrmdvewu\",\"resourceId\":\"aeohpjhgejkbvhh\",\"name\":\"urghoo\",\"status\":\"aexbkhxjxjo\",\"percentComplete\":19.243462,\"startTime\":\"2021-05-08T22:48:16Z\",\"endTime\":\"2021-09-17T12:36:39Z\",\"operations\":[{\"status\":\"nkobektmbozom\"},{\"status\":\"zamicb\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.kubernetesClusters() - .restartNode("mrxkhlobvv", "bhvhdiqay", - new KubernetesClusterRestartNodeParameters().withNodeName("luiyuosnuudte"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hyibdrqrswh", response.id()); - Assertions.assertEquals("oxztfwfqch", response.name()); - Assertions.assertEquals("czevjnn", response.status()); - Assertions.assertEquals(64.1754F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-04T10:49Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T09:27:10Z"), response.endTime()); - Assertions.assertEquals("qpemh", response.operations().get(0).id()); - Assertions.assertEquals("e", response.operations().get(0).name()); - Assertions.assertEquals("vx", response.operations().get(0).status()); - Assertions.assertEquals(80.07647F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-27T02:47:28Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-02T23:25:20Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("inhgre", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("nzangprbfaxy", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("zlbciphmse", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(97.917725F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-20T12:21:36Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T19:01:41Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("xfvonfeeqg", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.java index 8baa78e6c40f4..4d40a3fd89134 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkAttachmentConfigurationTests.java @@ -13,18 +13,18 @@ public final class L2NetworkAttachmentConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L2NetworkAttachmentConfiguration model - = BinaryData.fromString("{\"networkId\":\"kiidzyex\",\"pluginType\":\"DPDK\"}") + = BinaryData.fromString("{\"networkId\":\"qumiek\",\"pluginType\":\"MACVLAN\"}") .toObject(L2NetworkAttachmentConfiguration.class); - Assertions.assertEquals("kiidzyex", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.DPDK, model.pluginType()); + Assertions.assertEquals("qumiek", model.networkId()); + Assertions.assertEquals(KubernetesPluginType.MACVLAN, model.pluginType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L2NetworkAttachmentConfiguration model = new L2NetworkAttachmentConfiguration().withNetworkId("kiidzyex") - .withPluginType(KubernetesPluginType.DPDK); + L2NetworkAttachmentConfiguration model = new L2NetworkAttachmentConfiguration().withNetworkId("qumiek") + .withPluginType(KubernetesPluginType.MACVLAN); model = BinaryData.fromObject(model).toObject(L2NetworkAttachmentConfiguration.class); - Assertions.assertEquals("kiidzyex", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.DPDK, model.pluginType()); + Assertions.assertEquals("qumiek", model.networkId()); + Assertions.assertEquals(KubernetesPluginType.MACVLAN, model.pluginType()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.java index a208fe11422d3..d2bfe25001d97 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkInnerTests.java @@ -16,34 +16,33 @@ public final class L2NetworkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L2NetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"zikhl\",\"type\":\"fjhdg\"},\"properties\":{\"associatedResourceIds\":[\"ebdunyg\",\"eqidbqfatpx\",\"lr\"],\"clusterId\":\"yjmoadsu\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ywdmjsjqbjh\",\"hybridAksClustersAssociatedIds\":[\"xrwlyc\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"p\",\"l2IsolationDomainId\":\"xkgymareqnajxqu\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"cubeddgssofw\",\"mzqa\",\"krmnjijpxacqqud\"]},\"location\":\"byxbaaabjy\",\"tags\":{\"evfdnwnwm\":\"ffimrzrtuzqogsex\",\"i\":\"wzsyyceuzs\",\"thzvaytdwkqbrqu\":\"judpfrxt\",\"xiilivpdtiirqt\":\"paxh\"},\"id\":\"qoaxoruzfgs\",\"name\":\"uyfxrxxleptramxj\",\"type\":\"zwl\"}") + "{\"extendedLocation\":{\"name\":\"jnalghf\",\"type\":\"vtvsexsowueluq\"},\"properties\":{\"associatedResourceIds\":[\"hhxvrhmzkwpj\",\"wws\"],\"clusterId\":\"ghftqsxhqxujxuk\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"igrjguufzdm\",\"hybridAksClustersAssociatedIds\":[\"tfih\",\"hbotzingamvppho\",\"zqzudph\",\"amvdkfwynwcvtbv\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"mtnvyq\",\"l2IsolationDomainId\":\"atkzwpcnpw\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"sgvvsccyajguq\",\"hwyg\",\"lvdnkfx\"]},\"location\":\"emdwzrmuhapfc\",\"tags\":{\"vuoy\":\"sqxqvp\",\"elvezrypq\":\"gc\"},\"id\":\"mfe\",\"name\":\"kerqwkyh\",\"type\":\"ob\"}") .toObject(L2NetworkInner.class); - Assertions.assertEquals("byxbaaabjy", model.location()); - Assertions.assertEquals("ffimrzrtuzqogsex", model.tags().get("evfdnwnwm")); - Assertions.assertEquals("zikhl", model.extendedLocation().name()); - Assertions.assertEquals("fjhdg", model.extendedLocation().type()); + Assertions.assertEquals("emdwzrmuhapfc", model.location()); + Assertions.assertEquals("sqxqvp", model.tags().get("vuoy")); + Assertions.assertEquals("jnalghf", model.extendedLocation().name()); + Assertions.assertEquals("vtvsexsowueluq", model.extendedLocation().type()); Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("p", model.interfaceName()); - Assertions.assertEquals("xkgymareqnajxqu", model.l2IsolationDomainId()); + Assertions.assertEquals("mtnvyq", model.interfaceName()); + Assertions.assertEquals("atkzwpcnpw", model.l2IsolationDomainId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L2NetworkInner model = new L2NetworkInner().withLocation("byxbaaabjy") - .withTags(mapOf("evfdnwnwm", "ffimrzrtuzqogsex", "i", "wzsyyceuzs", "thzvaytdwkqbrqu", "judpfrxt", - "xiilivpdtiirqt", "paxh")) - .withExtendedLocation(new ExtendedLocation().withName("zikhl").withType("fjhdg")) + L2NetworkInner model = new L2NetworkInner().withLocation("emdwzrmuhapfc") + .withTags(mapOf("vuoy", "sqxqvp", "elvezrypq", "gc")) + .withExtendedLocation(new ExtendedLocation().withName("jnalghf").withType("vtvsexsowueluq")) .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("p") - .withL2IsolationDomainId("xkgymareqnajxqu"); + .withInterfaceName("mtnvyq") + .withL2IsolationDomainId("atkzwpcnpw"); model = BinaryData.fromObject(model).toObject(L2NetworkInner.class); - Assertions.assertEquals("byxbaaabjy", model.location()); - Assertions.assertEquals("ffimrzrtuzqogsex", model.tags().get("evfdnwnwm")); - Assertions.assertEquals("zikhl", model.extendedLocation().name()); - Assertions.assertEquals("fjhdg", model.extendedLocation().type()); + Assertions.assertEquals("emdwzrmuhapfc", model.location()); + Assertions.assertEquals("sqxqvp", model.tags().get("vuoy")); + Assertions.assertEquals("jnalghf", model.extendedLocation().name()); + Assertions.assertEquals("vtvsexsowueluq", model.extendedLocation().type()); Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("p", model.interfaceName()); - Assertions.assertEquals("xkgymareqnajxqu", model.l2IsolationDomainId()); + Assertions.assertEquals("mtnvyq", model.interfaceName()); + Assertions.assertEquals("atkzwpcnpw", model.l2IsolationDomainId()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java index bc0a34d8cd905..54768237dbc70 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkListTests.java @@ -18,55 +18,54 @@ public final class L2NetworkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L2NetworkList model = BinaryData.fromString( - "{\"nextLink\":\"xzxcl\",\"value\":[{\"extendedLocation\":{\"name\":\"hhqzonosgg\",\"type\":\"hcohfwdsjnk\"},\"properties\":{\"associatedResourceIds\":[\"utiiswacf\",\"gdkz\",\"ewkfvhqcrai\"],\"clusterId\":\"pnppfuf\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"mh\",\"hybridAksClustersAssociatedIds\":[\"yjrxsagafcnih\",\"wqapnedgfbcvk\",\"vq\",\"pkeqdcvdrhvoo\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"bobzdopcjwvnhd\",\"l2IsolationDomainId\":\"d\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"xrslpm\",\"twuoegrpkhjwni\",\"qsluicp\",\"ggkzzlvmbmpa\"]},\"location\":\"odfvuefywsbp\",\"tags\":{\"wiyzvqtmnubexkp\":\"wyhrfouyftaakc\",\"mquxvypo\":\"ksmond\"},\"id\":\"gkopkwhojvpajqgx\",\"name\":\"smocmbq\",\"type\":\"qvmkcxo\"},{\"extendedLocation\":{\"name\":\"apvhelxprgly\",\"type\":\"tddckcb\"},\"properties\":{\"associatedResourceIds\":[\"jrjxgciqibrhosx\",\"dqrhzoymib\",\"rq\",\"ibahwflus\"],\"clusterId\":\"tmhrkwofyyvoqacp\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"btgiwbwoenwas\",\"hybridAksClustersAssociatedIds\":[\"dtkcnqxwbpokulp\",\"ujw\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"pqiiobyuqe\",\"l2IsolationDomainId\":\"pqlpq\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"qgbdbuta\",\"vfbtkuwh\",\"mhykojoxafnndl\",\"ichkoymkcdyhb\"]},\"location\":\"kpw\",\"tags\":{\"ovvqfovljxywsu\":\"q\",\"aeneqnzarrwl\":\"syrsndsytgadgvra\",\"jfqka\":\"uu\"},\"id\":\"e\",\"name\":\"iipfpubj\",\"type\":\"bwwift\"},{\"extendedLocation\":{\"name\":\"hqkvpuvksgplsak\",\"type\":\"ynfs\"},\"properties\":{\"associatedResourceIds\":[\"jphuopxodlqi\",\"ntorzihleosjswsr\",\"slyzrpzbchckqq\"],\"clusterId\":\"ioxiysuiizyn\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"atrwyhqmibzyh\",\"hybridAksClustersAssociatedIds\":[\"smypyynpc\",\"pumnz\",\"mwzn\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"knso\",\"l2IsolationDomainId\":\"gj\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"tlwwrlk\",\"m\",\"ncvokotllxdyhg\"]},\"location\":\"ocogj\",\"tags\":{\"oocrkvcikhnv\":\"tbnnha\",\"gxk\":\"amqgxqquezikyw\"},\"id\":\"lla\",\"name\":\"melwuipiccjz\",\"type\":\"z\"},{\"extendedLocation\":{\"name\":\"v\",\"type\":\"vvcnayr\"},\"properties\":{\"associatedResourceIds\":[\"nxxmueedndrdv\",\"tkwqqtchealm\",\"mtdaa\"],\"clusterId\":\"dvwvgpio\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"rtfudxepxg\",\"hybridAksClustersAssociatedIds\":[\"gvr\",\"mnpkukghimdblxg\",\"imfnjhfjx\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"kkfoqr\",\"l2IsolationDomainId\":\"yfkzik\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"eaivxwczel\"]},\"location\":\"irels\",\"tags\":{\"ddxbjhwuaanoz\":\"enwabfatk\",\"jrvxaglrv\":\"osphyoul\"},\"id\":\"mjwosytx\",\"name\":\"tcs\",\"type\":\"fcktqumiekke\"}]}") + "{\"nextLink\":\"hewpusdsttwv\",\"value\":[{\"extendedLocation\":{\"name\":\"bbejdcngqqm\",\"type\":\"akufgmjz\"},\"properties\":{\"associatedResourceIds\":[\"dgrtwaenuuzkopbm\",\"nrfdw\"],\"clusterId\":\"uhhziuiefozbhdm\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"zqhof\",\"hybridAksClustersAssociatedIds\":[\"ae\",\"u\",\"ah\",\"icslfaoq\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"ylhalnswhcc\",\"l2IsolationDomainId\":\"ph\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"itqscywuggwoluhc\",\"bwemhairs\",\"rgzdwmsweyp\",\"w\"]},\"location\":\"ggicccnxqhue\",\"tags\":{\"ncsdtclusiyp\":\"ttlstvlzywemhz\"},\"id\":\"sfgytguslfead\",\"name\":\"ygqukyhejh\",\"type\":\"isxgfp\"},{\"extendedLocation\":{\"name\":\"lolp\",\"type\":\"vk\"},\"properties\":{\"associatedResourceIds\":[\"qvujzraehtwdwrf\",\"swibyr\",\"dl\",\"h\"],\"clusterId\":\"fwpracstwi\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"evxccedcp\",\"hybridAksClustersAssociatedIds\":[\"yodnwzxltj\",\"vnhltiugcx\",\"avvwxqi\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"nyowxwlmdjrkvfg\",\"l2IsolationDomainId\":\"vfvpdbodaciz\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"krribdeibqi\"]},\"location\":\"kghv\",\"tags\":{\"efajpj\":\"zwmk\",\"yhgbijtjivfx\":\"rwkq\",\"stawfsdjpvkv\":\"sjabibs\"},\"id\":\"bjxbkzbzk\",\"name\":\"vncjabudurgk\",\"type\":\"kmokz\"},{\"extendedLocation\":{\"name\":\"jjklff\",\"type\":\"mouwqlgzrfzeey\"},\"properties\":{\"associatedResourceIds\":[\"zi\",\"ayuhqlbjbsy\",\"bqwrvtldgm\"],\"clusterId\":\"gvmpipaslthaqfx\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"u\",\"hybridAksClustersAssociatedIds\":[\"dsrezpdrhneuyow\",\"kdw\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"ib\",\"l2IsolationDomainId\":\"rcgp\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"mejzanlfzxia\",\"rmbzo\"]},\"location\":\"kixrj\",\"tags\":{\"frl\":\"rgz\",\"jylwbtlhflsj\":\"zszrnwoiindfpw\"},\"id\":\"dhszfjv\",\"name\":\"bgofeljag\",\"type\":\"qmqhldvriii\"}]}") .toObject(L2NetworkList.class); - Assertions.assertEquals("xzxcl", model.nextLink()); - Assertions.assertEquals("odfvuefywsbp", model.value().get(0).location()); - Assertions.assertEquals("wyhrfouyftaakc", model.value().get(0).tags().get("wiyzvqtmnubexkp")); - Assertions.assertEquals("hhqzonosgg", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("hcohfwdsjnk", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("bobzdopcjwvnhd", model.value().get(0).interfaceName()); - Assertions.assertEquals("d", model.value().get(0).l2IsolationDomainId()); + Assertions.assertEquals("hewpusdsttwv", model.nextLink()); + Assertions.assertEquals("ggicccnxqhue", model.value().get(0).location()); + Assertions.assertEquals("ttlstvlzywemhz", model.value().get(0).tags().get("ncsdtclusiyp")); + Assertions.assertEquals("bbejdcngqqm", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("akufgmjz", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); + Assertions.assertEquals("ylhalnswhcc", model.value().get(0).interfaceName()); + Assertions.assertEquals("ph", model.value().get(0).l2IsolationDomainId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L2NetworkList model = new L2NetworkList().withNextLink("xzxcl") - .withValue(Arrays.asList( - new L2NetworkInner().withLocation("odfvuefywsbp") - .withTags(mapOf("wiyzvqtmnubexkp", "wyhrfouyftaakc", "mquxvypo", "ksmond")) - .withExtendedLocation(new ExtendedLocation().withName("hhqzonosgg").withType("hcohfwdsjnk")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("bobzdopcjwvnhd") - .withL2IsolationDomainId("d"), - new L2NetworkInner().withLocation("kpw") - .withTags(mapOf("ovvqfovljxywsu", "q", "aeneqnzarrwl", "syrsndsytgadgvra", "jfqka", "uu")) - .withExtendedLocation(new ExtendedLocation().withName("apvhelxprgly").withType("tddckcb")) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("pqiiobyuqe") - .withL2IsolationDomainId("pqlpq"), - new L2NetworkInner().withLocation("ocogj") - .withTags(mapOf("oocrkvcikhnv", "tbnnha", "gxk", "amqgxqquezikyw")) - .withExtendedLocation(new ExtendedLocation().withName("hqkvpuvksgplsak").withType("ynfs")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("knso") - .withL2IsolationDomainId("gj"), - new L2NetworkInner().withLocation("irels") - .withTags(mapOf("ddxbjhwuaanoz", "enwabfatk", "jrvxaglrv", "osphyoul")) - .withExtendedLocation(new ExtendedLocation().withName("v").withType("vvcnayr")) - .withHybridAksPluginType(HybridAksPluginType.SRIOV) - .withInterfaceName("kkfoqr") - .withL2IsolationDomainId("yfkzik"))); + L2NetworkList model + = new L2NetworkList().withNextLink("hewpusdsttwv") + .withValue( + Arrays + .asList( + new L2NetworkInner().withLocation("ggicccnxqhue") + .withTags(mapOf("ncsdtclusiyp", "ttlstvlzywemhz")) + .withExtendedLocation( + new ExtendedLocation().withName("bbejdcngqqm").withType("akufgmjz")) + .withHybridAksPluginType(HybridAksPluginType.SRIOV) + .withInterfaceName("ylhalnswhcc") + .withL2IsolationDomainId("ph"), + new L2NetworkInner().withLocation("kghv") + .withTags(mapOf("efajpj", "zwmk", "yhgbijtjivfx", "rwkq", "stawfsdjpvkv", "sjabibs")) + .withExtendedLocation(new ExtendedLocation().withName("lolp").withType("vk")) + .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) + .withInterfaceName("nyowxwlmdjrkvfg") + .withL2IsolationDomainId("vfvpdbodaciz"), + new L2NetworkInner().withLocation("kixrj") + .withTags(mapOf("frl", "rgz", "jylwbtlhflsj", "zszrnwoiindfpw")) + .withExtendedLocation( + new ExtendedLocation().withName("jjklff").withType("mouwqlgzrfzeey")) + .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) + .withInterfaceName("ib") + .withL2IsolationDomainId("rcgp"))); model = BinaryData.fromObject(model).toObject(L2NetworkList.class); - Assertions.assertEquals("xzxcl", model.nextLink()); - Assertions.assertEquals("odfvuefywsbp", model.value().get(0).location()); - Assertions.assertEquals("wyhrfouyftaakc", model.value().get(0).tags().get("wiyzvqtmnubexkp")); - Assertions.assertEquals("hhqzonosgg", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("hcohfwdsjnk", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("bobzdopcjwvnhd", model.value().get(0).interfaceName()); - Assertions.assertEquals("d", model.value().get(0).l2IsolationDomainId()); + Assertions.assertEquals("hewpusdsttwv", model.nextLink()); + Assertions.assertEquals("ggicccnxqhue", model.value().get(0).location()); + Assertions.assertEquals("ttlstvlzywemhz", model.value().get(0).tags().get("ncsdtclusiyp")); + Assertions.assertEquals("bbejdcngqqm", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("akufgmjz", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); + Assertions.assertEquals("ylhalnswhcc", model.value().get(0).interfaceName()); + Assertions.assertEquals("ph", model.value().get(0).l2IsolationDomainId()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java index 4540712aff2ef..1a3e3b23ee6fd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPatchParametersTests.java @@ -13,18 +13,19 @@ public final class L2NetworkPatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - L2NetworkPatchParameters model = BinaryData.fromString( - "{\"tags\":{\"ucsofldpuviyf\":\"srrm\",\"bsxtkcudfbsfarfs\":\"aabeolhbhlvbmxuq\",\"gf\":\"owlkjxnqpv\",\"d\":\"tmhqykiz\"}}") + L2NetworkPatchParameters model = BinaryData + .fromString( + "{\"tags\":{\"hmpqvw\":\"hkvpedwqsls\",\"qejo\":\"skondcbrwimu\",\"tljqobbpih\":\"ovyrrleaesinu\"}}") .toObject(L2NetworkPatchParameters.class); - Assertions.assertEquals("srrm", model.tags().get("ucsofldpuviyf")); + Assertions.assertEquals("hkvpedwqsls", model.tags().get("hmpqvw")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L2NetworkPatchParameters model = new L2NetworkPatchParameters().withTags(mapOf("ucsofldpuviyf", "srrm", - "bsxtkcudfbsfarfs", "aabeolhbhlvbmxuq", "gf", "owlkjxnqpv", "d", "tmhqykiz")); + L2NetworkPatchParameters model = new L2NetworkPatchParameters() + .withTags(mapOf("hmpqvw", "hkvpedwqsls", "qejo", "skondcbrwimu", "tljqobbpih", "ovyrrleaesinu")); model = BinaryData.fromObject(model).toObject(L2NetworkPatchParameters.class); - Assertions.assertEquals("srrm", model.tags().get("ucsofldpuviyf")); + Assertions.assertEquals("hkvpedwqsls", model.tags().get("hmpqvw")); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.java index 88be784f7ea8a..6a4219efd3003 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworkPropertiesTests.java @@ -13,21 +13,21 @@ public final class L2NetworkPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L2NetworkProperties model = BinaryData.fromString( - "{\"associatedResourceIds\":[\"xuqlcvydypat\",\"ooaojkniodkooebw\",\"ujhemmsbvdkcrodt\",\"infwjlfltkacjve\"],\"clusterId\":\"dlfoakggkfp\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"wpu\",\"hybridAksClustersAssociatedIds\":[\"blylsyxkqjnsj\",\"r\",\"tiagx\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"uem\",\"l2IsolationDomainId\":\"sbzkf\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"pnqi\"]}") + "{\"associatedResourceIds\":[\"xedk\",\"wep\"],\"clusterId\":\"pc\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"wccsnjvcdwxlpqek\",\"hybridAksClustersAssociatedIds\":[\"khtj\",\"y\",\"ngwfqatm\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"mdvy\",\"l2IsolationDomainId\":\"gikdgsz\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"rryuzhlhkjo\",\"rvqqaatj\",\"nrvgoupmfiibfgg\"]}") .toObject(L2NetworkProperties.class); Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.hybridAksPluginType()); - Assertions.assertEquals("uem", model.interfaceName()); - Assertions.assertEquals("sbzkf", model.l2IsolationDomainId()); + Assertions.assertEquals("mdvy", model.interfaceName()); + Assertions.assertEquals("gikdgsz", model.l2IsolationDomainId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { L2NetworkProperties model = new L2NetworkProperties().withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("uem") - .withL2IsolationDomainId("sbzkf"); + .withInterfaceName("mdvy") + .withL2IsolationDomainId("gikdgsz"); model = BinaryData.fromObject(model).toObject(L2NetworkProperties.class); Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.hybridAksPluginType()); - Assertions.assertEquals("uem", model.interfaceName()); - Assertions.assertEquals("sbzkf", model.l2IsolationDomainId()); + Assertions.assertEquals("mdvy", model.interfaceName()); + Assertions.assertEquals("gikdgsz", model.l2IsolationDomainId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.java index e4657293e47f6..60c25368c0f5f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksCreateOrUpdateMockTests.java @@ -6,71 +6,52 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.L2Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L2NetworksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"hoe\",\"type\":\"goiutgw\"},\"properties\":{\"associatedResourceIds\":[\"a\",\"p\",\"hazyntacihnco\"],\"clusterId\":\"ipnmliqmv\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ke\",\"hybridAksClustersAssociatedIds\":[\"rvgpomxpupdtsd\",\"jyies\",\"cwiqbuout\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"gleofjsbgbw\",\"l2IsolationDomainId\":\"zvdajfwnncf\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"gjj\",\"l\",\"iqlwixvtbou\",\"uxtndopgjttbasua\"]},\"location\":\"pdlndbeaqbkixvv\",\"tags\":{\"fjmsp\":\"npbbfqv\",\"jmphfkyezolgj\":\"gzfeuzj\",\"uydoccnx\":\"mi\",\"batecaat\":\"hanzbuiad\"},\"id\":\"dohzniucbdaombwi\",\"name\":\"njdllwktlepowavv\",\"type\":\"xu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"izjixlq\",\"type\":\"hefkwabsolronqq\"},\"properties\":{\"associatedResourceIds\":[\"nlqxsjxtele\"],\"clusterId\":\"vuqbozoo\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"carkuzlb\",\"hybridAksClustersAssociatedIds\":[\"dtsnxawqytllhdyz\",\"yckzex\",\"xak\",\"kywymxgaabj\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"ohfaog\",\"l2IsolationDomainId\":\"vkiwrsiwdyjqu\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"raueekcsueh\"]},\"location\":\"ddacbcbgydlqidy\",\"tags\":{\"tpbnfnqtxjtoma\":\"mptyrilkfbnrqqxv\",\"zygleexahvm\":\"swbnfddepldwqjns\",\"sjjzyvoaqajuveh\":\"whsbrcary\"},\"id\":\"ptdmkrrbhmpful\",\"name\":\"be\",\"type\":\"gybpmfb\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); L2Network response = manager.l2Networks() - .define("zgczfcmfpfbode") - .withRegion("vdgxly") - .withExistingResourceGroup("srtmdylperpiltt") - .withExtendedLocation(new ExtendedLocation().withName("resrgvtshuvft").withType("ai")) - .withL2IsolationDomainId("ukklvzrlr") - .withTags(mapOf("jovmozsaye", "itdshezsvkolru", "uykykipfsd", "razwzlpzbt", "bezacfpztga", "epfnoc")) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("elqxovppqi") + .define("khgsnxuwwkpphefs") + .withRegion("nrexkxbhxv") + .withExistingResourceGroup("r") + .withExtendedLocation(new ExtendedLocation().withName("zxlb").withType("xomeikjclwzacn")) + .withL2IsolationDomainId("ftibtyibuyvpirfq") + .withTags(mapOf("hjevd", "ulgm")) + .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) + .withInterfaceName("xaurs") .create(); - Assertions.assertEquals("pdlndbeaqbkixvv", response.location()); - Assertions.assertEquals("npbbfqv", response.tags().get("fjmsp")); - Assertions.assertEquals("hoe", response.extendedLocation().name()); - Assertions.assertEquals("goiutgw", response.extendedLocation().type()); + Assertions.assertEquals("ddacbcbgydlqidy", response.location()); + Assertions.assertEquals("mptyrilkfbnrqqxv", response.tags().get("tpbnfnqtxjtoma")); + Assertions.assertEquals("izjixlq", response.extendedLocation().name()); + Assertions.assertEquals("hefkwabsolronqq", response.extendedLocation().type()); Assertions.assertEquals(HybridAksPluginType.DPDK, response.hybridAksPluginType()); - Assertions.assertEquals("gleofjsbgbw", response.interfaceName()); - Assertions.assertEquals("zvdajfwnncf", response.l2IsolationDomainId()); + Assertions.assertEquals("ohfaog", response.interfaceName()); + Assertions.assertEquals("vkiwrsiwdyjqu", response.l2IsolationDomainId()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteMockTests.java deleted file mode 100644 index 4e177f35cf112..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class L2NetworksDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.l2Networks().delete("xlcskltez", "ugggzlfbgrdcgu", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java index 6eb512ed1fada..63d63a8f5479e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksGetByResourceGroupWithResponseMockTests.java @@ -6,60 +6,41 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.L2Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L2NetworksGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"gzzromv\",\"type\":\"g\"},\"properties\":{\"associatedResourceIds\":[\"mtmesrfsv\"],\"clusterId\":\"nkzpatqtdiswxsp\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"jazbbgspftesu\",\"hybridAksClustersAssociatedIds\":[\"vpvdylytcovqse\",\"srfjbdxzfxnx\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"uoswkjmdih\",\"l2IsolationDomainId\":\"cy\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"hbw\",\"jnufzrf\",\"m\"]},\"location\":\"gnnbzrtf\",\"tags\":{\"yj\":\"zuubjtvgjsxm\",\"wobtdphti\":\"vavdp\",\"w\":\"sffofwanmhksca\",\"ybjpozoks\":\"zcgwdfriw\"},\"id\":\"vgllixdgby\",\"name\":\"gwewqkjvxprwpxso\",\"type\":\"hu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"yqgxhlus\",\"type\":\"vxisimjcea\"},\"properties\":{\"associatedResourceIds\":[\"qvlsumywzas\",\"xgo\",\"oyjfqipu\"],\"clusterId\":\"znclkfkeebgv\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"tuoqujlyegqavni\",\"hybridAksClustersAssociatedIds\":[\"qqbtny\",\"pylx\",\"bf\",\"abmvmsxbaevwjc\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"tlwuhvaj\",\"l2IsolationDomainId\":\"ailfemjjzak\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"ullqxbdmvrscm\",\"erndbrnyeofltfnn\",\"rkadjfynnfmuiiir\",\"pfoh\"]},\"location\":\"fkx\",\"tags\":{\"ewoi\":\"brwjiutgnjizb\",\"juyrsrziuctixg\":\"mrvz\",\"uifr\":\"d\",\"pezkis\":\"vka\"},\"id\":\"qjm\",\"name\":\"g\",\"type\":\"syparybjufp\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); L2Network response = manager.l2Networks() - .getByResourceGroupWithResponse("zfkiceevsaaxwsp", "axikhfjqebglcxk", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("qmje", "jcx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gnnbzrtf", response.location()); - Assertions.assertEquals("zuubjtvgjsxm", response.tags().get("yj")); - Assertions.assertEquals("gzzromv", response.extendedLocation().name()); - Assertions.assertEquals("g", response.extendedLocation().type()); + Assertions.assertEquals("fkx", response.location()); + Assertions.assertEquals("brwjiutgnjizb", response.tags().get("ewoi")); + Assertions.assertEquals("yqgxhlus", response.extendedLocation().name()); + Assertions.assertEquals("vxisimjcea", response.extendedLocation().type()); Assertions.assertEquals(HybridAksPluginType.DPDK, response.hybridAksPluginType()); - Assertions.assertEquals("uoswkjmdih", response.interfaceName()); - Assertions.assertEquals("cy", response.l2IsolationDomainId()); + Assertions.assertEquals("tlwuhvaj", response.interfaceName()); + Assertions.assertEquals("ailfemjjzak", response.l2IsolationDomainId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java index 300f3e0a7bcbf..28fd4837116cf 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListByResourceGroupMockTests.java @@ -6,60 +6,41 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.L2Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L2NetworksListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"jw\",\"type\":\"w\"},\"properties\":{\"associatedResourceIds\":[\"ratjhdhzybspij\",\"frzgdkkagvwukhs\",\"s\"],\"clusterId\":\"orfmzhwilzz\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"mriprlk\",\"hybridAksClustersAssociatedIds\":[\"yttlrcxiv\",\"bkut\",\"umltwjflu\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"pvzlqywauyqnj\",\"l2IsolationDomainId\":\"khmocgjs\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"rhwv\"]},\"location\":\"qqgglj\",\"tags\":{\"rbctbhpjhxpcvrd\":\"sjrclrvtzq\",\"it\":\"y\"},\"id\":\"n\",\"name\":\"qady\",\"type\":\"zjahwriuomz\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"akeciqchx\",\"type\":\"tuicds\"},\"properties\":{\"associatedResourceIds\":[\"fmmp\",\"hzzwvywrgyngy\",\"grpxncakiqaondjr\"],\"clusterId\":\"lamgglvlmfejdo\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"gltygxhqfgq\",\"hybridAksClustersAssociatedIds\":[\"ejsxt\",\"gflwfgziiucijj\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"lijjjrtvam\",\"l2IsolationDomainId\":\"a\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"kvccxetyvkunmig\"]},\"location\":\"hi\",\"tags\":{\"jwpindedvabbxbh\":\"qo\",\"ywfcfxzi\":\"edeilb\",\"usuv\":\"zzihvwy\",\"yvdmvx\":\"slczwciidjsllf\"},\"id\":\"dqacfrgnawbabgf\",\"name\":\"ktyjmf\",\"type\":\"zlfsyqkfrbzgowo\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.l2Networks().listByResourceGroup("yv", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qqgglj", response.iterator().next().location()); - Assertions.assertEquals("sjrclrvtzq", response.iterator().next().tags().get("rbctbhpjhxpcvrd")); - Assertions.assertEquals("jw", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("w", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("pvzlqywauyqnj", response.iterator().next().interfaceName()); - Assertions.assertEquals("khmocgjs", response.iterator().next().l2IsolationDomainId()); + = manager.l2Networks().listByResourceGroup("wxdcvjwcyz", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("hi", response.iterator().next().location()); + Assertions.assertEquals("qo", response.iterator().next().tags().get("jwpindedvabbxbh")); + Assertions.assertEquals("akeciqchx", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("tuicds", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.DPDK, response.iterator().next().hybridAksPluginType()); + Assertions.assertEquals("lijjjrtvam", response.iterator().next().interfaceName()); + Assertions.assertEquals("a", response.iterator().next().l2IsolationDomainId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.java index f7e57496fd74c..2a30d37da7cdc 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2NetworksListMockTests.java @@ -6,46 +6,27 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.L2Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L2NetworksListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"efgvqcp\",\"type\":\"wjgquxweyslandkd\"},\"properties\":{\"associatedResourceIds\":[\"hunh\",\"hcgawn\",\"rnquoxso\"],\"clusterId\":\"reimseob\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"tcyilbvz\",\"hybridAksClustersAssociatedIds\":[\"cjzlquzexokjxebj\",\"b\",\"inzabwmvoglj\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"gi\",\"l2IsolationDomainId\":\"nwcehaqidoyzl\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"qoqpepiaeap\",\"sergdtpe\",\"nacyheqwb\",\"qq\"]},\"location\":\"jubkhjozfymcwmb\",\"tags\":{\"qiipsejb\":\"vqyvl\",\"ieswhddzydisn\":\"vsi\",\"i\":\"epywyjlnldpxottd\"},\"id\":\"ocqibz\",\"name\":\"ihweeb\",\"type\":\"ph\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"ksqd\",\"type\":\"iw\"},\"properties\":{\"associatedResourceIds\":[\"lboncqbazqicqc\",\"ygtvxbyjanepub\"],\"clusterId\":\"kxyqvgxiaodetv\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"dxuwsaifm\",\"hybridAksClustersAssociatedIds\":[\"osbz\",\"ehgcvkbcknjo\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"yxpvelszerqze\",\"l2IsolationDomainId\":\"xoqeintxwalj\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"lqwa\",\"frqulhmzyqbhd\",\"afjrqpjiyrqjcrg\",\"xwmzwdfkbnrz\"]},\"location\":\"pdltbq\",\"tags\":{\"dgvpyig\":\"jfgxxsaetg\"},\"id\":\"aqqilzdcduwjoed\",\"name\":\"ngucaifpaurww\",\"type\":\"ilfjqqacdmk\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -53,12 +34,12 @@ public void testList() throws Exception { PagedIterable response = manager.l2Networks().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("jubkhjozfymcwmb", response.iterator().next().location()); - Assertions.assertEquals("vqyvl", response.iterator().next().tags().get("qiipsejb")); - Assertions.assertEquals("efgvqcp", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("wjgquxweyslandkd", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("pdltbq", response.iterator().next().location()); + Assertions.assertEquals("jfgxxsaetg", response.iterator().next().tags().get("dgvpyig")); + Assertions.assertEquals("ksqd", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("iw", response.iterator().next().extendedLocation().type()); Assertions.assertEquals(HybridAksPluginType.DPDK, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("gi", response.iterator().next().interfaceName()); - Assertions.assertEquals("nwcehaqidoyzl", response.iterator().next().l2IsolationDomainId()); + Assertions.assertEquals("yxpvelszerqze", response.iterator().next().interfaceName()); + Assertions.assertEquals("xoqeintxwalj", response.iterator().next().l2IsolationDomainId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.java new file mode 100644 index 0000000000000..6a9f1f926fbe2 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L2ServiceLoadBalancerConfigurationTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.BfdEnabled; +import com.azure.resourcemanager.networkcloud.models.IpAddressPool; +import com.azure.resourcemanager.networkcloud.models.L2ServiceLoadBalancerConfiguration; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class L2ServiceLoadBalancerConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + L2ServiceLoadBalancerConfiguration model = BinaryData.fromString( + "{\"ipAddressPools\":[{\"addresses\":[\"gkfbtndoaong\",\"jcntuj\"],\"autoAssign\":\"True\",\"name\":\"jed\",\"onlyUseHostIps\":\"True\"},{\"addresses\":[\"ae\",\"kojvd\",\"pzfoqoui\"],\"autoAssign\":\"False\",\"name\":\"xarzgszufoxciq\",\"onlyUseHostIps\":\"False\"}]}") + .toObject(L2ServiceLoadBalancerConfiguration.class); + Assertions.assertEquals("gkfbtndoaong", model.ipAddressPools().get(0).addresses().get(0)); + Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).autoAssign()); + Assertions.assertEquals("jed", model.ipAddressPools().get(0).name()); + Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).onlyUseHostIps()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + L2ServiceLoadBalancerConfiguration model + = new L2ServiceLoadBalancerConfiguration().withIpAddressPools(Arrays.asList( + new IpAddressPool().withAddresses(Arrays.asList("gkfbtndoaong", "jcntuj")) + .withAutoAssign(BfdEnabled.TRUE) + .withName("jed") + .withOnlyUseHostIps(BfdEnabled.TRUE), + new IpAddressPool().withAddresses(Arrays.asList("ae", "kojvd", "pzfoqoui")) + .withAutoAssign(BfdEnabled.FALSE) + .withName("xarzgszufoxciq") + .withOnlyUseHostIps(BfdEnabled.FALSE))); + model = BinaryData.fromObject(model).toObject(L2ServiceLoadBalancerConfiguration.class); + Assertions.assertEquals("gkfbtndoaong", model.ipAddressPools().get(0).addresses().get(0)); + Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).autoAssign()); + Assertions.assertEquals("jed", model.ipAddressPools().get(0).name()); + Assertions.assertEquals(BfdEnabled.TRUE, model.ipAddressPools().get(0).onlyUseHostIps()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.java index 1ddd1186e86bf..e5a00eaf27ea7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkAttachmentConfigurationTests.java @@ -14,22 +14,22 @@ public final class L3NetworkAttachmentConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L3NetworkAttachmentConfiguration model - = BinaryData.fromString("{\"ipamEnabled\":\"True\",\"networkId\":\"xhnrztfolhb\",\"pluginType\":\"SRIOV\"}") + = BinaryData.fromString("{\"ipamEnabled\":\"True\",\"networkId\":\"khly\",\"pluginType\":\"IPVLAN\"}") .toObject(L3NetworkAttachmentConfiguration.class); Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.TRUE, model.ipamEnabled()); - Assertions.assertEquals("xhnrztfolhb", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.SRIOV, model.pluginType()); + Assertions.assertEquals("khly", model.networkId()); + Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { L3NetworkAttachmentConfiguration model = new L3NetworkAttachmentConfiguration().withIpamEnabled(L3NetworkConfigurationIpamEnabled.TRUE) - .withNetworkId("xhnrztfolhb") - .withPluginType(KubernetesPluginType.SRIOV); + .withNetworkId("khly") + .withPluginType(KubernetesPluginType.IPVLAN); model = BinaryData.fromObject(model).toObject(L3NetworkAttachmentConfiguration.class); Assertions.assertEquals(L3NetworkConfigurationIpamEnabled.TRUE, model.ipamEnabled()); - Assertions.assertEquals("xhnrztfolhb", model.networkId()); - Assertions.assertEquals(KubernetesPluginType.SRIOV, model.pluginType()); + Assertions.assertEquals("khly", model.networkId()); + Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java index be891caecf844..3b0d78148e799 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkInnerTests.java @@ -18,48 +18,48 @@ public final class L3NetworkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L3NetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"piyylhalnswhccsp\",\"type\":\"kaivwit\"},\"properties\":{\"associatedResourceIds\":[\"ywuggwoluhcz\",\"wem\",\"ai\"],\"clusterId\":\"brgz\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"weyp\",\"hybridAksClustersAssociatedIds\":[\"xggicccnxqhuexmk\",\"tlstvlzywem\",\"zrncsdt\",\"lusiy\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"tg\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"eadcygqukyhejhz\",\"ipv6ConnectedPrefix\":\"xgfpelolppv\",\"l3IsolationDomainId\":\"srp\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"raehtwdwrft\",\"wib\"],\"vlan\":4339974263260215047},\"location\":\"l\",\"tags\":{\"khevxccedc\":\"hfwpracstwit\",\"jc\":\"nmdyodnwzxl\",\"vvwxqi\":\"nhltiugcxn\",\"unyowxwl\":\"y\"},\"id\":\"djrkvfgbvfvpd\",\"name\":\"odacizs\",\"type\":\"q\"}") + "{\"extendedLocation\":{\"name\":\"ybycnunvj\",\"type\":\"rtkfawnopq\"},\"properties\":{\"associatedResourceIds\":[\"yzirtxdyuxzejn\",\"psew\",\"ioilqukrydxtq\"],\"clusterId\":\"eoxorggufhyao\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"hhavgrvkffovjz\",\"hybridAksClustersAssociatedIds\":[\"bibgjmfxumv\",\"cluyovwxnbkf\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"yhwzdgiruj\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"mvzzbtdcqvp\",\"ipv6ConnectedPrefix\":\"yujviylwdshfssn\",\"l3IsolationDomainId\":\"bgye\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"gaojf\",\"wncot\",\"rfh\"],\"vlan\":4929010454105023595},\"location\":\"ymoxoftpipiwyczu\",\"tags\":{\"pskasdvlmfwdg\":\"cpqjlihhyu\"},\"id\":\"x\",\"name\":\"lucvpam\",\"type\":\"sreuzvxurisjnh\"}") .toObject(L3NetworkInner.class); - Assertions.assertEquals("l", model.location()); - Assertions.assertEquals("hfwpracstwit", model.tags().get("khevxccedc")); - Assertions.assertEquals("piyylhalnswhccsp", model.extendedLocation().name()); - Assertions.assertEquals("kaivwit", model.extendedLocation().type()); + Assertions.assertEquals("ymoxoftpipiwyczu", model.location()); + Assertions.assertEquals("cpqjlihhyu", model.tags().get("pskasdvlmfwdg")); + Assertions.assertEquals("ybycnunvj", model.extendedLocation().name()); + Assertions.assertEquals("rtkfawnopq", model.extendedLocation().type()); Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("tg", model.interfaceName()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); + Assertions.assertEquals("yhwzdgiruj", model.interfaceName()); Assertions.assertEquals(IpAllocationType.IPV4, model.ipAllocationType()); - Assertions.assertEquals("eadcygqukyhejhz", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("xgfpelolppv", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("srp", model.l3IsolationDomainId()); - Assertions.assertEquals(4339974263260215047L, model.vlan()); + Assertions.assertEquals("mvzzbtdcqvp", model.ipv4ConnectedPrefix()); + Assertions.assertEquals("yujviylwdshfssn", model.ipv6ConnectedPrefix()); + Assertions.assertEquals("bgye", model.l3IsolationDomainId()); + Assertions.assertEquals(4929010454105023595L, model.vlan()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L3NetworkInner model = new L3NetworkInner().withLocation("l") - .withTags(mapOf("khevxccedc", "hfwpracstwit", "jc", "nmdyodnwzxl", "vvwxqi", "nhltiugcxn", "unyowxwl", "y")) - .withExtendedLocation(new ExtendedLocation().withName("piyylhalnswhccsp").withType("kaivwit")) + L3NetworkInner model = new L3NetworkInner().withLocation("ymoxoftpipiwyczu") + .withTags(mapOf("pskasdvlmfwdg", "cpqjlihhyu")) + .withExtendedLocation(new ExtendedLocation().withName("ybycnunvj").withType("rtkfawnopq")) .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("tg") + .withHybridAksPluginType(HybridAksPluginType.SRIOV) + .withInterfaceName("yhwzdgiruj") .withIpAllocationType(IpAllocationType.IPV4) - .withIpv4ConnectedPrefix("eadcygqukyhejhz") - .withIpv6ConnectedPrefix("xgfpelolppv") - .withL3IsolationDomainId("srp") - .withVlan(4339974263260215047L); + .withIpv4ConnectedPrefix("mvzzbtdcqvp") + .withIpv6ConnectedPrefix("yujviylwdshfssn") + .withL3IsolationDomainId("bgye") + .withVlan(4929010454105023595L); model = BinaryData.fromObject(model).toObject(L3NetworkInner.class); - Assertions.assertEquals("l", model.location()); - Assertions.assertEquals("hfwpracstwit", model.tags().get("khevxccedc")); - Assertions.assertEquals("piyylhalnswhccsp", model.extendedLocation().name()); - Assertions.assertEquals("kaivwit", model.extendedLocation().type()); + Assertions.assertEquals("ymoxoftpipiwyczu", model.location()); + Assertions.assertEquals("cpqjlihhyu", model.tags().get("pskasdvlmfwdg")); + Assertions.assertEquals("ybycnunvj", model.extendedLocation().name()); + Assertions.assertEquals("rtkfawnopq", model.extendedLocation().type()); Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("tg", model.interfaceName()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); + Assertions.assertEquals("yhwzdgiruj", model.interfaceName()); Assertions.assertEquals(IpAllocationType.IPV4, model.ipAllocationType()); - Assertions.assertEquals("eadcygqukyhejhz", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("xgfpelolppv", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("srp", model.l3IsolationDomainId()); - Assertions.assertEquals(4339974263260215047L, model.vlan()); + Assertions.assertEquals("mvzzbtdcqvp", model.ipv4ConnectedPrefix()); + Assertions.assertEquals("yujviylwdshfssn", model.ipv6ConnectedPrefix()); + Assertions.assertEquals("bgye", model.l3IsolationDomainId()); + Assertions.assertEquals(4929010454105023595L, model.vlan()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java index c765f1408ecbe..6aa79bdf69a95 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkListTests.java @@ -20,68 +20,74 @@ public final class L3NetworkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L3NetworkList model = BinaryData.fromString( - "{\"nextLink\":\"invkjjxdxrbuu\",\"value\":[{\"extendedLocation\":{\"name\":\"lewyhmlwpaz\",\"type\":\"zpof\"},\"properties\":{\"associatedResourceIds\":[\"kwyfzqwhxxbuyqax\"],\"clusterId\":\"eqz\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"iolxor\",\"hybridAksClustersAssociatedIds\":[\"tolmncwsobqw\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"dcfhucqdpf\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"sbjjc\",\"ipv6ConnectedPrefix\":\"vxb\",\"l3IsolationDomainId\":\"t\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"ncormrlxqtvcof\",\"dflvkg\",\"u\",\"gdknnqv\"],\"vlan\":378347416305968829},\"location\":\"qntorudsgsahmkyc\",\"tags\":{\"s\":\"uwjuetaeburuvdmo\",\"tpuqujmq\":\"zlxwabmqoefkifr\",\"jcntuj\":\"gkfbtndoaong\"},\"id\":\"tcje\",\"name\":\"ftwwaezkojvdc\",\"type\":\"zfoqouicybxar\"},{\"extendedLocation\":{\"name\":\"gszufoxciqopid\",\"type\":\"amcio\"},\"properties\":{\"associatedResourceIds\":[\"haz\",\"khnzbonlw\",\"toego\",\"dwbwhkszzcmrvexz\"],\"clusterId\":\"bt\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"ra\",\"hybridAksClustersAssociatedIds\":[\"koowtl\",\"nguxawqaldsy\",\"uximerqfobw\",\"znkbykutwpfhpagm\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"nfd\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"kgtdlmkkze\",\"ipv6ConnectedPrefix\":\"l\",\"l3IsolationDomainId\":\"ewpusdsttwvogvb\",\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"ngqqmoakuf\",\"m\",\"zr\",\"rdgrtw\"],\"vlan\":1523837111721006893},\"location\":\"uzkopbminrfd\",\"tags\":{\"mlmz\":\"uhhziuiefozbhdm\",\"ae\":\"hoftr\"},\"id\":\"u\",\"name\":\"ah\",\"type\":\"icslfaoq\"}]}") + "{\"nextLink\":\"ool\",\"value\":[{\"extendedLocation\":{\"name\":\"x\",\"type\":\"v\"},\"properties\":{\"associatedResourceIds\":[\"gllqwjy\"],\"clusterId\":\"jayvblmhv\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"bxvvyhg\",\"hybridAksClustersAssociatedIds\":[\"byrqufeg\",\"uvwzfbnh\",\"mctlpdngitv\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"xkw\",\"ipAllocationType\":\"DualStack\",\"ipv4ConnectedPrefix\":\"ejvegrhbpnaixex\",\"ipv6ConnectedPrefix\":\"b\",\"l3IsolationDomainId\":\"reaxhcexdr\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"qkghtpwijnhy\"],\"vlan\":1896207356770709532},\"location\":\"ycxzbfvoo\",\"tags\":{\"s\":\"vmtgjqppy\",\"sxkm\":\"ronzmyhgfip\"},\"id\":\"waekrrjreafxtsgu\",\"name\":\"hjglikk\",\"type\":\"wslolbqp\"},{\"extendedLocation\":{\"name\":\"uzlm\",\"type\":\"felfktg\"},\"properties\":{\"associatedResourceIds\":[\"rpw\"],\"clusterId\":\"eznoig\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"w\",\"hybridAksClustersAssociatedIds\":[\"pn\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"joqkagfhsxt\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"zxnfaaz\",\"ipv6ConnectedPrefix\":\"dtnkdmkq\",\"l3IsolationDomainId\":\"jlwuenvrkp\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"bre\",\"qaaysjkixqt\"],\"vlan\":8668201172705247496},\"location\":\"ezl\",\"tags\":{\"edltmmjihyeozp\":\"fiakpjpqqm\",\"qncygupkvi\":\"vwau\"},\"id\":\"mdscwxqupev\",\"name\":\"hfstotxhojujbyp\",\"type\":\"lmcuvhixb\"},{\"extendedLocation\":{\"name\":\"xyfwnylrcool\",\"type\":\"ttpkiwkkbnujrywv\"},\"properties\":{\"associatedResourceIds\":[\"bfpncurdo\",\"wiithtywub\",\"cbihwqk\"],\"clusterId\":\"dntwjchrdgo\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"mwctondzjluudfd\",\"hybridAksClustersAssociatedIds\":[\"gytsbwtovv\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"qfi\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"knpirgnepttwq\",\"ipv6ConnectedPrefix\":\"niffcdmqnroj\",\"l3IsolationDomainId\":\"pij\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"rddh\",\"ratiz\",\"ronasxift\"],\"vlan\":1507601090527968063},\"location\":\"zh\",\"tags\":{\"honnxkrlgnyhmos\":\"esgogc\",\"thrrgh\":\"xkk\",\"gf\":\"jbdhqxvc\"},\"id\":\"pdso\",\"name\":\"bshrnsvbuswd\",\"type\":\"z\"}]}") .toObject(L3NetworkList.class); - Assertions.assertEquals("invkjjxdxrbuu", model.nextLink()); - Assertions.assertEquals("qntorudsgsahmkyc", model.value().get(0).location()); - Assertions.assertEquals("uwjuetaeburuvdmo", model.value().get(0).tags().get("s")); - Assertions.assertEquals("lewyhmlwpaz", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("zpof", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, model.value().get(0).hybridAksIpamEnabled()); + Assertions.assertEquals("ool", model.nextLink()); + Assertions.assertEquals("ycxzbfvoo", model.value().get(0).location()); + Assertions.assertEquals("vmtgjqppy", model.value().get(0).tags().get("s")); + Assertions.assertEquals("x", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("v", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.value().get(0).hybridAksIpamEnabled()); Assertions.assertEquals(HybridAksPluginType.DPDK, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("dcfhucqdpf", model.value().get(0).interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, model.value().get(0).ipAllocationType()); - Assertions.assertEquals("sbjjc", model.value().get(0).ipv4ConnectedPrefix()); - Assertions.assertEquals("vxb", model.value().get(0).ipv6ConnectedPrefix()); - Assertions.assertEquals("t", model.value().get(0).l3IsolationDomainId()); - Assertions.assertEquals(378347416305968829L, model.value().get(0).vlan()); + Assertions.assertEquals("xkw", model.value().get(0).interfaceName()); + Assertions.assertEquals(IpAllocationType.DUAL_STACK, model.value().get(0).ipAllocationType()); + Assertions.assertEquals("ejvegrhbpnaixex", model.value().get(0).ipv4ConnectedPrefix()); + Assertions.assertEquals("b", model.value().get(0).ipv6ConnectedPrefix()); + Assertions.assertEquals("reaxhcexdr", model.value().get(0).l3IsolationDomainId()); + Assertions.assertEquals(1896207356770709532L, model.value().get(0).vlan()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L3NetworkList model - = new L3NetworkList().withNextLink("invkjjxdxrbuu") - .withValue( - Arrays - .asList( - new L3NetworkInner().withLocation("qntorudsgsahmkyc") - .withTags(mapOf("s", "uwjuetaeburuvdmo", "tpuqujmq", "zlxwabmqoefkifr", "jcntuj", - "gkfbtndoaong")) - .withExtendedLocation(new ExtendedLocation().withName("lewyhmlwpaz").withType("zpof")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.TRUE) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("dcfhucqdpf") - .withIpAllocationType(IpAllocationType.IPV6) - .withIpv4ConnectedPrefix("sbjjc") - .withIpv6ConnectedPrefix("vxb") - .withL3IsolationDomainId("t") - .withVlan(378347416305968829L), - new L3NetworkInner().withLocation("uzkopbminrfd") - .withTags(mapOf("mlmz", "uhhziuiefozbhdm", "ae", "hoftr")) - .withExtendedLocation( - new ExtendedLocation().withName("gszufoxciqopid").withType("amcio")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("nfd") - .withIpAllocationType(IpAllocationType.IPV6) - .withIpv4ConnectedPrefix("kgtdlmkkze") - .withIpv6ConnectedPrefix("l") - .withL3IsolationDomainId("ewpusdsttwvogvb") - .withVlan(1523837111721006893L))); + L3NetworkList model = new L3NetworkList().withNextLink("ool") + .withValue(Arrays.asList( + new L3NetworkInner().withLocation("ycxzbfvoo") + .withTags(mapOf("s", "vmtgjqppy", "sxkm", "ronzmyhgfip")) + .withExtendedLocation(new ExtendedLocation().withName("x").withType("v")) + .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) + .withHybridAksPluginType(HybridAksPluginType.DPDK) + .withInterfaceName("xkw") + .withIpAllocationType(IpAllocationType.DUAL_STACK) + .withIpv4ConnectedPrefix("ejvegrhbpnaixex") + .withIpv6ConnectedPrefix("b") + .withL3IsolationDomainId("reaxhcexdr") + .withVlan(1896207356770709532L), + new L3NetworkInner().withLocation("ezl") + .withTags(mapOf("edltmmjihyeozp", "fiakpjpqqm", "qncygupkvi", "vwau")) + .withExtendedLocation(new ExtendedLocation().withName("uzlm").withType("felfktg")) + .withHybridAksIpamEnabled(HybridAksIpamEnabled.TRUE) + .withHybridAksPluginType(HybridAksPluginType.SRIOV) + .withInterfaceName("joqkagfhsxt") + .withIpAllocationType(IpAllocationType.IPV4) + .withIpv4ConnectedPrefix("zxnfaaz") + .withIpv6ConnectedPrefix("dtnkdmkq") + .withL3IsolationDomainId("jlwuenvrkp") + .withVlan(8668201172705247496L), + new L3NetworkInner().withLocation("zh") + .withTags(mapOf("honnxkrlgnyhmos", "esgogc", "thrrgh", "xkk", "gf", "jbdhqxvc")) + .withExtendedLocation(new ExtendedLocation().withName("xyfwnylrcool").withType("ttpkiwkkbnujrywv")) + .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) + .withHybridAksPluginType(HybridAksPluginType.SRIOV) + .withInterfaceName("qfi") + .withIpAllocationType(IpAllocationType.IPV6) + .withIpv4ConnectedPrefix("knpirgnepttwq") + .withIpv6ConnectedPrefix("niffcdmqnroj") + .withL3IsolationDomainId("pij") + .withVlan(1507601090527968063L))); model = BinaryData.fromObject(model).toObject(L3NetworkList.class); - Assertions.assertEquals("invkjjxdxrbuu", model.nextLink()); - Assertions.assertEquals("qntorudsgsahmkyc", model.value().get(0).location()); - Assertions.assertEquals("uwjuetaeburuvdmo", model.value().get(0).tags().get("s")); - Assertions.assertEquals("lewyhmlwpaz", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("zpof", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksIpamEnabled.TRUE, model.value().get(0).hybridAksIpamEnabled()); + Assertions.assertEquals("ool", model.nextLink()); + Assertions.assertEquals("ycxzbfvoo", model.value().get(0).location()); + Assertions.assertEquals("vmtgjqppy", model.value().get(0).tags().get("s")); + Assertions.assertEquals("x", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("v", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.value().get(0).hybridAksIpamEnabled()); Assertions.assertEquals(HybridAksPluginType.DPDK, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("dcfhucqdpf", model.value().get(0).interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, model.value().get(0).ipAllocationType()); - Assertions.assertEquals("sbjjc", model.value().get(0).ipv4ConnectedPrefix()); - Assertions.assertEquals("vxb", model.value().get(0).ipv6ConnectedPrefix()); - Assertions.assertEquals("t", model.value().get(0).l3IsolationDomainId()); - Assertions.assertEquals(378347416305968829L, model.value().get(0).vlan()); + Assertions.assertEquals("xkw", model.value().get(0).interfaceName()); + Assertions.assertEquals(IpAllocationType.DUAL_STACK, model.value().get(0).ipAllocationType()); + Assertions.assertEquals("ejvegrhbpnaixex", model.value().get(0).ipv4ConnectedPrefix()); + Assertions.assertEquals("b", model.value().get(0).ipv6ConnectedPrefix()); + Assertions.assertEquals("reaxhcexdr", model.value().get(0).l3IsolationDomainId()); + Assertions.assertEquals(1896207356770709532L, model.value().get(0).vlan()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.java index f81d8ea656231..7a5833193a42b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPatchParametersTests.java @@ -13,17 +13,18 @@ public final class L3NetworkPatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - L3NetworkPatchParameters model = BinaryData.fromString("{\"tags\":{\"ycjimryvwgcwwpbm\":\"oafcluqvox\"}}") + L3NetworkPatchParameters model = BinaryData.fromString( + "{\"tags\":{\"bmpxdlvykfrexc\":\"ecybmrqbrj\",\"qwjksghudgz\":\"s\",\"ggsvoujkxibdaf\":\"xog\",\"xfbvfb\":\"rkmdyom\"}}") .toObject(L3NetworkPatchParameters.class); - Assertions.assertEquals("oafcluqvox", model.tags().get("ycjimryvwgcwwpbm")); + Assertions.assertEquals("ecybmrqbrj", model.tags().get("bmpxdlvykfrexc")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L3NetworkPatchParameters model - = new L3NetworkPatchParameters().withTags(mapOf("ycjimryvwgcwwpbm", "oafcluqvox")); + L3NetworkPatchParameters model = new L3NetworkPatchParameters().withTags( + mapOf("bmpxdlvykfrexc", "ecybmrqbrj", "qwjksghudgz", "s", "ggsvoujkxibdaf", "xog", "xfbvfb", "rkmdyom")); model = BinaryData.fromObject(model).toObject(L3NetworkPatchParameters.class); - Assertions.assertEquals("oafcluqvox", model.tags().get("ycjimryvwgcwwpbm")); + Assertions.assertEquals("ecybmrqbrj", model.tags().get("bmpxdlvykfrexc")); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.java index 7d2df014f60c3..5ac4b00f9fc13 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworkPropertiesTests.java @@ -15,36 +15,36 @@ public final class L3NetworkPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { L3NetworkProperties model = BinaryData.fromString( - "{\"associatedResourceIds\":[\"rribd\",\"ibqipqkg\",\"vxndz\"],\"clusterId\":\"krefajpjo\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"nyhgbijtji\",\"hybridAksClustersAssociatedIds\":[\"zs\",\"ab\"],\"hybridAksIpamEnabled\":\"False\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"awfsdjpvkvpbjxbk\",\"ipAllocationType\":\"DualStack\",\"ipv4ConnectedPrefix\":\"dvncjabudurgk\",\"ipv6ConnectedPrefix\":\"mokzhjjklf\",\"l3IsolationDomainId\":\"hmouwqlgzrfze\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"zi\",\"ayuhqlbjbsy\",\"bqwrvtldgm\"],\"vlan\":8878391256590645383}") + "{\"associatedResourceIds\":[\"xifqjzgxm\",\"hu\"],\"clusterId\":\"wp\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"trgjupauutpwoqh\",\"hybridAksClustersAssociatedIds\":[\"jqgwzp\",\"fqntcyp\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"imwkslircizj\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"fceacvlhvygd\",\"ipv6ConnectedPrefix\":\"t\",\"l3IsolationDomainId\":\"mrtwna\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"iw\",\"ojgcyzt\",\"fmznba\"],\"vlan\":8800744111431443801}") .toObject(L3NetworkProperties.class); - Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.hybridAksIpamEnabled()); + Assertions.assertEquals(HybridAksIpamEnabled.TRUE, model.hybridAksIpamEnabled()); Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("awfsdjpvkvpbjxbk", model.interfaceName()); - Assertions.assertEquals(IpAllocationType.DUAL_STACK, model.ipAllocationType()); - Assertions.assertEquals("dvncjabudurgk", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("mokzhjjklf", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("hmouwqlgzrfze", model.l3IsolationDomainId()); - Assertions.assertEquals(8878391256590645383L, model.vlan()); + Assertions.assertEquals("imwkslircizj", model.interfaceName()); + Assertions.assertEquals(IpAllocationType.IPV6, model.ipAllocationType()); + Assertions.assertEquals("fceacvlhvygd", model.ipv4ConnectedPrefix()); + Assertions.assertEquals("t", model.ipv6ConnectedPrefix()); + Assertions.assertEquals("mrtwna", model.l3IsolationDomainId()); + Assertions.assertEquals(8800744111431443801L, model.vlan()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - L3NetworkProperties model = new L3NetworkProperties().withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) + L3NetworkProperties model = new L3NetworkProperties().withHybridAksIpamEnabled(HybridAksIpamEnabled.TRUE) .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("awfsdjpvkvpbjxbk") - .withIpAllocationType(IpAllocationType.DUAL_STACK) - .withIpv4ConnectedPrefix("dvncjabudurgk") - .withIpv6ConnectedPrefix("mokzhjjklf") - .withL3IsolationDomainId("hmouwqlgzrfze") - .withVlan(8878391256590645383L); + .withInterfaceName("imwkslircizj") + .withIpAllocationType(IpAllocationType.IPV6) + .withIpv4ConnectedPrefix("fceacvlhvygd") + .withIpv6ConnectedPrefix("t") + .withL3IsolationDomainId("mrtwna") + .withVlan(8800744111431443801L); model = BinaryData.fromObject(model).toObject(L3NetworkProperties.class); - Assertions.assertEquals(HybridAksIpamEnabled.FALSE, model.hybridAksIpamEnabled()); + Assertions.assertEquals(HybridAksIpamEnabled.TRUE, model.hybridAksIpamEnabled()); Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("awfsdjpvkvpbjxbk", model.interfaceName()); - Assertions.assertEquals(IpAllocationType.DUAL_STACK, model.ipAllocationType()); - Assertions.assertEquals("dvncjabudurgk", model.ipv4ConnectedPrefix()); - Assertions.assertEquals("mokzhjjklf", model.ipv6ConnectedPrefix()); - Assertions.assertEquals("hmouwqlgzrfze", model.l3IsolationDomainId()); - Assertions.assertEquals(8878391256590645383L, model.vlan()); + Assertions.assertEquals("imwkslircizj", model.interfaceName()); + Assertions.assertEquals(IpAllocationType.IPV6, model.ipAllocationType()); + Assertions.assertEquals("fceacvlhvygd", model.ipv4ConnectedPrefix()); + Assertions.assertEquals("t", model.ipv6ConnectedPrefix()); + Assertions.assertEquals("mrtwna", model.l3IsolationDomainId()); + Assertions.assertEquals(8800744111431443801L, model.vlan()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java index e71eaa79cead5..9d431a2c1106b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksCreateOrUpdateMockTests.java @@ -6,83 +6,64 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.IpAllocationType; import com.azure.resourcemanager.networkcloud.models.L3Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L3NetworksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"cqoccq\",\"type\":\"qxwetjtd\"},\"properties\":{\"associatedResourceIds\":[\"tfdoadtx\"],\"clusterId\":\"ge\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"k\",\"hybridAksClustersAssociatedIds\":[\"gssz\",\"vctkbbx\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"ir\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"abvoyngsuxxcz\",\"ipv6ConnectedPrefix\":\"yqjoghdsa\",\"l3IsolationDomainId\":\"djanormo\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"rntu\"],\"vlan\":4317600423711221201},\"location\":\"lu\",\"tags\":{\"jue\":\"mhdeeljslkyozdsf\",\"jtv\":\"rhrhtsl\",\"xvgjbfi\":\"j\"},\"id\":\"bpnjodf\",\"name\":\"bj\",\"type\":\"qwm\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"odlikcdrdaasax\",\"type\":\"obsmf\"},\"properties\":{\"associatedResourceIds\":[\"yjvzukosr\",\"awn\"],\"clusterId\":\"mlnkoywsxv\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"qqax\",\"hybridAksClustersAssociatedIds\":[\"y\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"doabhj\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"weuipmpvksmi\",\"ipv6ConnectedPrefix\":\"sqxtltclkrdpq\",\"l3IsolationDomainId\":\"fhyrfrakk\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"wfcmfcnr\"],\"vlan\":6199502759615666213},\"location\":\"matxjti\",\"tags\":{\"fbbmtlp\":\"zqgxx\",\"rnzcalinc\":\"agynoi\",\"ymqruqguhfupet\":\"yqxzxaqzibmqim\",\"xsyaowuzowpuoh\":\"svvoqsbpkflanfk\"},\"id\":\"kc\",\"name\":\"rgukxrztio\",\"type\":\"hlutixmqrudjizc\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); L3Network response = manager.l3Networks() - .define("mdtff") - .withRegion("hscozawmvgxsmpk") - .withExistingResourceGroup("azrhxudd") - .withExtendedLocation(new ExtendedLocation().withName("sjmrkkhm").withType("dmdlgyqixokw")) - .withL3IsolationDomainId("uowyrnskbyhqu") - .withVlan(4661928250048503661L) - .withTags(mapOf("wxqouoxudnmc", "irfljf", "oqueqihkkyowltj", "aprhknqiijgencdg")) - .withHybridAksIpamEnabled(HybridAksIpamEnabled.FALSE) + .define("vfejvqnttmbqda") + .withRegion("ekscbctnanqimwbz") + .withExistingResourceGroup("oka") + .withExtendedLocation(new ExtendedLocation().withName("zfivfokpysthhzag").withType("fwy")) + .withL3IsolationDomainId("waokbavlytta") + .withVlan(7333016694568690931L) + .withTags(mapOf("nlaimouxwksqmudm", "cldpkawn", "qsj", "coibicziuswswjrk", "yrfwbivq", "btqqvyfs")) + .withHybridAksIpamEnabled(HybridAksIpamEnabled.TRUE) .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("t") - .withIpAllocationType(IpAllocationType.IPV4) - .withIpv4ConnectedPrefix("cyanrfvqtvkhgv") - .withIpv6ConnectedPrefix("gxkfnaoaqymhccto") + .withInterfaceName("mm") + .withIpAllocationType(IpAllocationType.IPV6) + .withIpv4ConnectedPrefix("fgtdmbvx") + .withIpv6ConnectedPrefix("raokqkbudb") .create(); - Assertions.assertEquals("lu", response.location()); - Assertions.assertEquals("mhdeeljslkyozdsf", response.tags().get("jue")); - Assertions.assertEquals("cqoccq", response.extendedLocation().name()); - Assertions.assertEquals("qxwetjtd", response.extendedLocation().type()); + Assertions.assertEquals("matxjti", response.location()); + Assertions.assertEquals("zqgxx", response.tags().get("fbbmtlp")); + Assertions.assertEquals("odlikcdrdaasax", response.extendedLocation().name()); + Assertions.assertEquals("obsmf", response.extendedLocation().type()); Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.hybridAksIpamEnabled()); Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.hybridAksPluginType()); - Assertions.assertEquals("ir", response.interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, response.ipAllocationType()); - Assertions.assertEquals("abvoyngsuxxcz", response.ipv4ConnectedPrefix()); - Assertions.assertEquals("yqjoghdsa", response.ipv6ConnectedPrefix()); - Assertions.assertEquals("djanormo", response.l3IsolationDomainId()); - Assertions.assertEquals(4317600423711221201L, response.vlan()); + Assertions.assertEquals("doabhj", response.interfaceName()); + Assertions.assertEquals(IpAllocationType.IPV4, response.ipAllocationType()); + Assertions.assertEquals("weuipmpvksmi", response.ipv4ConnectedPrefix()); + Assertions.assertEquals("sqxtltclkrdpq", response.ipv6ConnectedPrefix()); + Assertions.assertEquals("fhyrfrakk", response.l3IsolationDomainId()); + Assertions.assertEquals(6199502759615666213L, response.vlan()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteMockTests.java deleted file mode 100644 index cf23ef4c4a9fd..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class L3NetworksDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.l3Networks().delete("yjmqrf", "iocuselqkr", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.java index 153e47ae4738d..780c0fe6db66b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksGetByResourceGroupWithResponseMockTests.java @@ -6,67 +6,48 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.IpAllocationType; import com.azure.resourcemanager.networkcloud.models.L3Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L3NetworksGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"lvgecpwgoljtz\",\"type\":\"nm\"},\"properties\":{\"associatedResourceIds\":[\"obygoo\",\"xqapjxvazyjfucsa\",\"djnosdkvibf\",\"sgm\"],\"clusterId\":\"rnzpducdaak\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"tzboim\",\"hybridAksClustersAssociatedIds\":[\"qdowkppnwyytfv\",\"ct\",\"jikffffgkuhznw\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"kke\",\"ipAllocationType\":\"DualStack\",\"ipv4ConnectedPrefix\":\"igaw\",\"ipv6ConnectedPrefix\":\"zmxjqif\",\"l3IsolationDomainId\":\"ujjs\",\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"aahzbhuroolkol\",\"rhhmojusu\",\"gfjzcvaax\",\"ia\"],\"vlan\":721254946919185861},\"location\":\"xw\",\"tags\":{\"kczynuhhoqeqsh\":\"kdxkuk\",\"q\":\"vl\",\"nthbbnkgzukwd\":\"xyrqo\"},\"id\":\"nzkjthfceyjn\",\"name\":\"jmlfuyfjbp\",\"type\":\"iddhlrufzc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"wtthaokgksk\",\"type\":\"i\"},\"properties\":{\"associatedResourceIds\":[\"shajqf\",\"kpeexpgeumilh\",\"uitrdexyiono\"],\"clusterId\":\"inbd\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"cw\",\"hybridAksClustersAssociatedIds\":[\"smpcbbp\",\"tugav\",\"zbcyksiv\",\"fogdrtbfcm\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"cwjjxsgmbawvif\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"cifhocjxwkl\",\"ipv6ConnectedPrefix\":\"zrvtx\",\"l3IsolationDomainId\":\"cmufunlcpxxv\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"ngjgvrquvpyg\",\"lpmcrdc\",\"eljtiahxmfqryarv\",\"x\"],\"vlan\":2751363587305463813},\"location\":\"lcjkayspthzodub\",\"tags\":{\"kfmkmfdjxyxgbk\":\"jtgblios\",\"l\":\"qvjcteoe\",\"xv\":\"slskkz\",\"hpcnabxzfsn\":\"nzdpvoco\"},\"id\":\"gyte\",\"name\":\"vzilmhiv\",\"type\":\"kwwwnckn\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); L3Network response = manager.l3Networks() - .getByResourceGroupWithResponse("xo", "krvfsxxbydes", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("xhmt", "tvegwqiukvzwy", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xw", response.location()); - Assertions.assertEquals("kdxkuk", response.tags().get("kczynuhhoqeqsh")); - Assertions.assertEquals("lvgecpwgoljtz", response.extendedLocation().name()); - Assertions.assertEquals("nm", response.extendedLocation().type()); + Assertions.assertEquals("lcjkayspthzodub", response.location()); + Assertions.assertEquals("jtgblios", response.tags().get("kfmkmfdjxyxgbk")); + Assertions.assertEquals("wtthaokgksk", response.extendedLocation().name()); + Assertions.assertEquals("i", response.extendedLocation().type()); Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.hybridAksPluginType()); - Assertions.assertEquals("kke", response.interfaceName()); - Assertions.assertEquals(IpAllocationType.DUAL_STACK, response.ipAllocationType()); - Assertions.assertEquals("igaw", response.ipv4ConnectedPrefix()); - Assertions.assertEquals("zmxjqif", response.ipv6ConnectedPrefix()); - Assertions.assertEquals("ujjs", response.l3IsolationDomainId()); - Assertions.assertEquals(721254946919185861L, response.vlan()); + Assertions.assertEquals(HybridAksPluginType.DPDK, response.hybridAksPluginType()); + Assertions.assertEquals("cwjjxsgmbawvif", response.interfaceName()); + Assertions.assertEquals(IpAllocationType.IPV6, response.ipAllocationType()); + Assertions.assertEquals("cifhocjxwkl", response.ipv4ConnectedPrefix()); + Assertions.assertEquals("zrvtx", response.ipv6ConnectedPrefix()); + Assertions.assertEquals("cmufunlcpxxv", response.l3IsolationDomainId()); + Assertions.assertEquals(2751363587305463813L, response.vlan()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.java index 6443c050b13a5..00ddc7d4914ae 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListByResourceGroupMockTests.java @@ -6,67 +6,48 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.IpAllocationType; import com.azure.resourcemanager.networkcloud.models.L3Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L3NetworksListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"apeqiscrpil\",\"type\":\"ftr\"},\"properties\":{\"associatedResourceIds\":[\"jdaahuqimldahlfx\",\"muifmuadjnfsn\",\"skiioshjgczetybn\"],\"clusterId\":\"ztlcgc\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"fjvmy\",\"hybridAksClustersAssociatedIds\":[\"ebecuvlbefv\",\"cljkxpyl\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"wpsyxjij\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"vrbkerdkdkgaw\",\"ipv6ConnectedPrefix\":\"jxildfkcef\",\"l3IsolationDomainId\":\"ygzqpjoisfmn\",\"provisioningState\":\"Accepted\",\"virtualMachinesAssociatedIds\":[\"nxumentqo\",\"tw\",\"ymxymu\"],\"vlan\":2243722311789555333},\"location\":\"qtow\",\"tags\":{\"ajcywhjqw\":\"sycoybajasqub\",\"ymjzpwdlvwtiws\":\"chqohtfxcpupuk\"},\"id\":\"osaonhqnamppu\",\"name\":\"tassaekewna\",\"type\":\"eajbkajlcyizyddc\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"qxjhqxcsqhtkbtnq\",\"type\":\"rngl\"},\"properties\":{\"associatedResourceIds\":[\"iipsnawwlqkz\",\"xhhllxricct\",\"wmuqqoajxeiygle\",\"rwvaexhdc\"],\"clusterId\":\"ceqnkbrupobehd\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"acvumepj\",\"hybridAksClustersAssociatedIds\":[\"bn\",\"pphepifexl\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"jclykcg\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"jlvczu\",\"ipv6ConnectedPrefix\":\"ac\",\"l3IsolationDomainId\":\"u\",\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"pdjxqeskoynu\",\"ylpckaewsedv\",\"skwxe\"],\"vlan\":3769854061594278101},\"location\":\"rgfnz\",\"tags\":{\"bcbcpz\":\"mjtsgh\",\"ldtzmpypefcp\":\"rpzeqac\"},\"id\":\"zshnuqndaizup\",\"name\":\"kh\",\"type\":\"ytus\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.l3Networks().listByResourceGroup("xcbccwkqmt", com.azure.core.util.Context.NONE); + = manager.l3Networks().listByResourceGroup("slojfkqidnqt", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qtow", response.iterator().next().location()); - Assertions.assertEquals("sycoybajasqub", response.iterator().next().tags().get("ajcywhjqw")); - Assertions.assertEquals("apeqiscrpil", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("ftr", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("rgfnz", response.iterator().next().location()); + Assertions.assertEquals("mjtsgh", response.iterator().next().tags().get("bcbcpz")); + Assertions.assertEquals("qxjhqxcsqhtkbtnq", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("rngl", response.iterator().next().extendedLocation().type()); Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.iterator().next().hybridAksIpamEnabled()); Assertions.assertEquals(HybridAksPluginType.SRIOV, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("wpsyxjij", response.iterator().next().interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, response.iterator().next().ipAllocationType()); - Assertions.assertEquals("vrbkerdkdkgaw", response.iterator().next().ipv4ConnectedPrefix()); - Assertions.assertEquals("jxildfkcef", response.iterator().next().ipv6ConnectedPrefix()); - Assertions.assertEquals("ygzqpjoisfmn", response.iterator().next().l3IsolationDomainId()); - Assertions.assertEquals(2243722311789555333L, response.iterator().next().vlan()); + Assertions.assertEquals("jclykcg", response.iterator().next().interfaceName()); + Assertions.assertEquals(IpAllocationType.IPV4, response.iterator().next().ipAllocationType()); + Assertions.assertEquals("jlvczu", response.iterator().next().ipv4ConnectedPrefix()); + Assertions.assertEquals("ac", response.iterator().next().ipv6ConnectedPrefix()); + Assertions.assertEquals("u", response.iterator().next().l3IsolationDomainId()); + Assertions.assertEquals(3769854061594278101L, response.iterator().next().vlan()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java index 4dd4346447a54..e74273c2529de 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/L3NetworksListMockTests.java @@ -6,48 +6,29 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksIpamEnabled; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.IpAllocationType; import com.azure.resourcemanager.networkcloud.models.L3Network; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class L3NetworksListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"jgcq\",\"type\":\"ulynkgfcfd\"},\"properties\":{\"associatedResourceIds\":[\"si\",\"xxtclhuulri\",\"byokvjgbzsxe\",\"rsltt\"],\"clusterId\":\"hcdjwsuoardnagt\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"pbpgnrholhujbfwx\",\"hybridAksClustersAssociatedIds\":[\"kysolsyjprxs\",\"whdmcvhtbbz\",\"hfvhuwzbxpcqz\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"ecohm\",\"ipAllocationType\":\"IPV6\",\"ipv4ConnectedPrefix\":\"rrskapbxwieexuy\",\"ipv6ConnectedPrefix\":\"erltfokyk\",\"l3IsolationDomainId\":\"yimyccgrvk\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"nuif\",\"rsejegprkj\",\"uw\"],\"vlan\":5307933336729466171},\"location\":\"vvbtuqkxx\",\"tags\":{\"ekotjgxi\":\"gxql\",\"by\":\"qfkyfhiwvjaqu\"},\"id\":\"nvskpaj\",\"name\":\"mgeu\",\"type\":\"exmj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"ununm\",\"type\":\"zkrvfyi\"},\"properties\":{\"associatedResourceIds\":[\"schlzvfictnkj\",\"wgcwnp\",\"bkgfyrtogmhmjpjs\",\"dfpdqwtygevg\"],\"clusterId\":\"sehar\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"qnrxtmbpjptn\",\"hybridAksClustersAssociatedIds\":[\"hrsidq\",\"xlbtp\",\"kft\"],\"hybridAksIpamEnabled\":\"True\",\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"ykyutrymdwmfj\",\"ipAllocationType\":\"IPV4\",\"ipv4ConnectedPrefix\":\"vjqdvdwkq\",\"ipv6ConnectedPrefix\":\"drlefgnaavuag\",\"l3IsolationDomainId\":\"tetaoutnpdctuhs\",\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"i\"],\"vlan\":7575593636037986210},\"location\":\"euyldphmt\",\"tags\":{\"wynefx\":\"cgsuthhlln\",\"fciatxtjrr\":\"x\",\"ajfoxc\":\"kmdskjhhxd\"},\"id\":\"scv\",\"name\":\"lxlhuavkrm\",\"type\":\"kmyjmkxett\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -55,17 +36,17 @@ public void testList() throws Exception { PagedIterable response = manager.l3Networks().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("vvbtuqkxx", response.iterator().next().location()); - Assertions.assertEquals("gxql", response.iterator().next().tags().get("ekotjgxi")); - Assertions.assertEquals("jgcq", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("ulynkgfcfd", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("euyldphmt", response.iterator().next().location()); + Assertions.assertEquals("cgsuthhlln", response.iterator().next().tags().get("wynefx")); + Assertions.assertEquals("ununm", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("zkrvfyi", response.iterator().next().extendedLocation().type()); Assertions.assertEquals(HybridAksIpamEnabled.TRUE, response.iterator().next().hybridAksIpamEnabled()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("ecohm", response.iterator().next().interfaceName()); - Assertions.assertEquals(IpAllocationType.IPV6, response.iterator().next().ipAllocationType()); - Assertions.assertEquals("rrskapbxwieexuy", response.iterator().next().ipv4ConnectedPrefix()); - Assertions.assertEquals("erltfokyk", response.iterator().next().ipv6ConnectedPrefix()); - Assertions.assertEquals("yimyccgrvk", response.iterator().next().l3IsolationDomainId()); - Assertions.assertEquals(5307933336729466171L, response.iterator().next().vlan()); + Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.iterator().next().hybridAksPluginType()); + Assertions.assertEquals("ykyutrymdwmfj", response.iterator().next().interfaceName()); + Assertions.assertEquals(IpAllocationType.IPV4, response.iterator().next().ipAllocationType()); + Assertions.assertEquals("vjqdvdwkq", response.iterator().next().ipv4ConnectedPrefix()); + Assertions.assertEquals("drlefgnaavuag", response.iterator().next().ipv6ConnectedPrefix()); + Assertions.assertEquals("tetaoutnpdctuhs", response.iterator().next().l3IsolationDomainId()); + Assertions.assertEquals(7575593636037986210L, response.iterator().next().vlan()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.java index dffd4fa4fb8a5..356314ab47928 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineDiskTests.java @@ -11,7 +11,7 @@ public final class MachineDiskTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MachineDisk model - = BinaryData.fromString("{\"capacityGB\":7660460034004399095,\"connection\":\"SAS\",\"type\":\"HDD\"}") + = BinaryData.fromString("{\"capacityGB\":3874364038517940811,\"connection\":\"SATA\",\"type\":\"SSD\"}") .toObject(MachineDisk.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.java index e862c9d6069f1..65ab29167df85 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuPropertiesTests.java @@ -11,7 +11,7 @@ public final class MachineSkuPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MachineSkuProperties model = BinaryData.fromString( - "{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":5344178861543099367,\"cpuSockets\":539445643734318038,\"disks\":[{\"capacityGB\":5962561191870222416,\"connection\":\"PCIE\",\"type\":\"HDD\"}],\"generation\":\"te\",\"hardwareVersion\":\"bfhjxakvvjgsl\",\"memoryCapacityGB\":7061120771289849082,\"model\":\"mywwtkgkxnyed\",\"networkInterfaces\":[{\"address\":\"vudtjuewbcihx\",\"deviceConnectionType\":\"PCI\",\"model\":\"c\",\"physicalSlot\":8836529440782745734,\"portCount\":6013611534399993244,\"portSpeed\":8334210528088520370,\"vendor\":\"akkud\"},{\"address\":\"xgwjplmagstcyoh\",\"deviceConnectionType\":\"PCI\",\"model\":\"rkdbdgiogsjkmnwq\",\"physicalSlot\":6833853370140143589,\"portCount\":7156428016747730929,\"portSpeed\":8649178950235367695,\"vendor\":\"iacegfnmn\"},{\"address\":\"pmvmemfnczdwvv\",\"deviceConnectionType\":\"PCI\",\"model\":\"lllchpodb\",\"physicalSlot\":5385185048993104627,\"portCount\":6308319060236104883,\"portSpeed\":9209137872063887003,\"vendor\":\"uvsj\"}],\"totalThreads\":5391692794732202921,\"vendor\":\"ystuluqyp\"}") + "{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":8363769759075681134,\"cpuSockets\":3611469908670095920,\"disks\":[{\"capacityGB\":6054984412383572813,\"connection\":\"SATA\",\"type\":\"SSD\"},{\"capacityGB\":189738325553867740,\"connection\":\"RAID\",\"type\":\"HDD\"}],\"generation\":\"wgck\",\"hardwareVersion\":\"cxvdfffwafqrouda\",\"memoryCapacityGB\":5249211644397946556,\"model\":\"h\",\"networkInterfaces\":[{\"address\":\"bunzozudh\",\"deviceConnectionType\":\"PCI\",\"model\":\"moy\",\"physicalSlot\":5518974152844939947,\"portCount\":6989479455559512040,\"portSpeed\":4304469233132949889,\"vendor\":\"nbzydvfvfcj\"},{\"address\":\"eoisrvhmgor\",\"deviceConnectionType\":\"PCI\",\"model\":\"is\",\"physicalSlot\":485076229692339772,\"portCount\":1866063520897299166,\"portSpeed\":5855537162726309030,\"vendor\":\"a\"},{\"address\":\"xilcbtgnhnzey\",\"deviceConnectionType\":\"PCI\",\"model\":\"jfzqlqhycavodgg\",\"physicalSlot\":4279783517540718218,\"portCount\":195420941787005324,\"portSpeed\":5853456136608072876,\"vendor\":\"lrariaawiu\"}],\"totalThreads\":2737212263841825681,\"vendor\":\"qfby\"}") .toObject(MachineSkuProperties.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.java index 22cc6c8b712a0..00cd03a8ee9a3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MachineSkuSlotTests.java @@ -11,7 +11,7 @@ public final class MachineSkuSlotTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MachineSkuSlot model = BinaryData.fromString( - "{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1730397083607764400,\"cpuSockets\":1355589981905865952,\"disks\":[{\"capacityGB\":5917251343624011044,\"connection\":\"SAS\",\"type\":\"SSD\"},{\"capacityGB\":701253968154567119,\"connection\":\"SATA\",\"type\":\"HDD\"},{\"capacityGB\":2436750194722502720,\"connection\":\"SATA\",\"type\":\"SSD\"},{\"capacityGB\":719962312435402077,\"connection\":\"PCIE\",\"type\":\"SSD\"}],\"generation\":\"vcimpev\",\"hardwareVersion\":\"mblrrilbywd\",\"memoryCapacityGB\":7966238893835264976,\"model\":\"cwrwfs\",\"networkInterfaces\":[{\"address\":\"ynszquji\",\"deviceConnectionType\":\"PCI\",\"model\":\"qytibyowbblgyavu\",\"physicalSlot\":805790317647492283,\"portCount\":4755130771240532697,\"portSpeed\":7556520283137175372,\"vendor\":\"sks\"},{\"address\":\"iml\",\"deviceConnectionType\":\"PCI\",\"model\":\"xkcgxxlxsffgcvi\",\"physicalSlot\":7820266969815650707,\"portCount\":119708849241442138,\"portSpeed\":4065902188543936050,\"vendor\":\"upfgfbk\"},{\"address\":\"bdyhgkfminsgowz\",\"deviceConnectionType\":\"PCI\",\"model\":\"ttktlahbq\",\"physicalSlot\":2084936073486724926,\"portCount\":509106189483608352,\"portSpeed\":6973172084017938197,\"vendor\":\"tmmqtgqqqxhrn\"},{\"address\":\"xcpjuisavokqdzf\",\"deviceConnectionType\":\"PCI\",\"model\":\"vjlfrqtt\",\"physicalSlot\":915528800737751942,\"portCount\":1448856954480483873,\"portSpeed\":3281733425649589029,\"vendor\":\"iopid\"}],\"totalThreads\":4942011391135790969,\"vendor\":\"uvscxkdmligov\"},\"rackSlot\":6633389496653532566}") + "{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":674651506955755757,\"cpuSockets\":650828533296238528,\"disks\":[{\"capacityGB\":1029165319168997984,\"connection\":\"SATA\",\"type\":\"SSD\"}],\"generation\":\"csttijfybvpoekr\",\"hardwareVersion\":\"sgbdhuz\",\"memoryCapacityGB\":4425006145416997575,\"model\":\"gkynscliqh\",\"networkInterfaces\":[{\"address\":\"nk\",\"deviceConnectionType\":\"PCI\",\"model\":\"u\",\"physicalSlot\":4043359579426698154,\"portCount\":6694882023681039919,\"portSpeed\":1479306936525030102,\"vendor\":\"hihfrbbcevqagtlt\"}],\"totalThreads\":9015448282305825378,\"vendor\":\"qojpy\"},\"rackSlot\":3485711592453889453}") .toObject(MachineSkuSlot.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.java index 22b3e85f35c03..f388d35ecff1e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedResourceGroupConfigurationTests.java @@ -11,18 +11,19 @@ public final class ManagedResourceGroupConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ManagedResourceGroupConfiguration model = BinaryData.fromString("{\"location\":\"bgyepsbj\",\"name\":\"zq\"}") - .toObject(ManagedResourceGroupConfiguration.class); - Assertions.assertEquals("bgyepsbj", model.location()); - Assertions.assertEquals("zq", model.name()); + ManagedResourceGroupConfiguration model + = BinaryData.fromString("{\"location\":\"dldwmgxc\",\"name\":\"slpmutwuo\"}") + .toObject(ManagedResourceGroupConfiguration.class); + Assertions.assertEquals("dldwmgxc", model.location()); + Assertions.assertEquals("slpmutwuo", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedResourceGroupConfiguration model - = new ManagedResourceGroupConfiguration().withLocation("bgyepsbj").withName("zq"); + = new ManagedResourceGroupConfiguration().withLocation("dldwmgxc").withName("slpmutwuo"); model = BinaryData.fromObject(model).toObject(ManagedResourceGroupConfiguration.class); - Assertions.assertEquals("bgyepsbj", model.location()); - Assertions.assertEquals("zq", model.name()); + Assertions.assertEquals("dldwmgxc", model.location()); + Assertions.assertEquals("slpmutwuo", model.name()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.java new file mode 100644 index 0000000000000..e7ce0894a5db7 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ManagedServiceIdentityTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity; +import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentityType; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ManagedServiceIdentityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedServiceIdentity model = BinaryData.fromString( + "{\"principalId\":\"5f1efe55-ed9a-4338-b1c8-6eb7307e3a35\",\"tenantId\":\"45fb55fa-8c2f-4b63-8ab6-df515b9abada\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"bqdxbx\":{\"principalId\":\"9cb7ff49-3db9-4e2b-9168-faf70f8cb95c\",\"clientId\":\"75cd94db-42cd-49a9-93c1-88b3ffca57fc\"},\"bogqxndlkzgxhu\":{\"principalId\":\"5bbd7b15-f7df-4fff-87c4-366c8362fbeb\",\"clientId\":\"04212cfc-e886-45bd-9f3a-1c792d5641ec\"},\"lbpodxunk\":{\"principalId\":\"33edc721-8ec0-4e2c-896d-636280f0606c\",\"clientId\":\"a36c8268-efeb-489a-9a97-cd5d9467fadf\"},\"xmubyyntwlrbq\":{\"principalId\":\"0bc664ab-1c77-427a-aa00-cafde0c06823\",\"clientId\":\"c1018d5a-8dd3-4766-b268-f0bb1934ae96\"}}}") + .toObject(ManagedServiceIdentity.class); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) + .withUserAssignedIdentities( + mapOf("bqdxbx", new UserAssignedIdentity(), "bogqxndlkzgxhu", new UserAssignedIdentity(), "lbpodxunk", + new UserAssignedIdentity(), "xmubyyntwlrbq", new UserAssignedIdentity())); + model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.java index b6fd6ebdd4f8f..ffcba5e7a0d13 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsCreateOrUpdateMockTests.java @@ -6,15 +6,12 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfiguration; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.Arrays; @@ -22,53 +19,37 @@ import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class MetricsConfigurationsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"w\",\"type\":\"ch\"},\"properties\":{\"collectionInterval\":5033961721581707117,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"kshfy\",\"disabledMetrics\":[\"ibjepzwhj\"],\"enabledMetrics\":[\"dgbggcjxzh\",\"livwehsud\",\"mymbhdosmbng\",\"q\"],\"provisioningState\":\"Succeeded\"},\"location\":\"duvxd\",\"tags\":{\"mnrs\":\"xatm\",\"dmiplois\":\"nxoirxy\",\"ntwgkvyo\":\"kzsoxz\"},\"id\":\"psapzu\",\"name\":\"zwwy\",\"type\":\"bdjzghximkg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"q\",\"type\":\"btimpkjblor\"},\"properties\":{\"collectionInterval\":89470103286938544,\"detailedStatus\":\"Processing\",\"detailedStatusMessage\":\"uds\",\"disabledMetrics\":[\"uaawja\",\"xwjnfcz\"],\"enabledMetrics\":[\"iixyxvqbanosj\"],\"provisioningState\":\"Succeeded\"},\"location\":\"nbg\",\"tags\":{\"foeajogsy\":\"ddorgmynltwmpft\"},\"id\":\"wetamfddrvlk\",\"name\":\"zwbhnrecc\",\"type\":\"d\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); ClusterMetricsConfiguration response = manager.metricsConfigurations() - .define("gwn") - .withRegion("svkkjbjolpyokl") - .withExistingCluster("udayprldidwmtf", "bvtzldzchub") - .withExtendedLocation(new ExtendedLocation().withName("zuvigvl").withType("hfrbzakpjt")) - .withCollectionInterval(735504182529978592L) - .withTags(mapOf("hmlieoigowxxb", "znad", "qe", "tpsyi", "wanvmwdvgjqcrbko", "qwtqszzgyksik")) - .withEnabledMetrics(Arrays.asList("bgngcrusxhirc")) + .define("tvdxxhe") + .withRegion("mlnfyz") + .withExistingCluster("polzkgysdgzyy", "zoxlvoc") + .withExtendedLocation(new ExtendedLocation().withName("gmlilwzghjhjvmab").withType("zbwaybfmdafbgym")) + .withCollectionInterval(1745929206373036946L) + .withTags(mapOf("dbkp", "rbypi", "njhx", "jtaqhsmqazpdg")) + .withEnabledMetrics(Arrays.asList("sgnwdxzedpq", "rfbo")) .create(); - Assertions.assertEquals("duvxd", response.location()); - Assertions.assertEquals("xatm", response.tags().get("mnrs")); - Assertions.assertEquals("w", response.extendedLocation().name()); - Assertions.assertEquals("ch", response.extendedLocation().type()); - Assertions.assertEquals(5033961721581707117L, response.collectionInterval()); - Assertions.assertEquals("dgbggcjxzh", response.enabledMetrics().get(0)); + Assertions.assertEquals("nbg", response.location()); + Assertions.assertEquals("ddorgmynltwmpft", response.tags().get("foeajogsy")); + Assertions.assertEquals("q", response.extendedLocation().name()); + Assertions.assertEquals("btimpkjblor", response.extendedLocation().type()); + Assertions.assertEquals(89470103286938544L, response.collectionInterval()); + Assertions.assertEquals("iixyxvqbanosj", response.enabledMetrics().get(0)); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteMockTests.java deleted file mode 100644 index d999917423b88..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class MetricsConfigurationsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.metricsConfigurations().delete("rdw", "ejpec", "zvcmbpwd", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.java index 7a0902eeb0267..ed15b82dce01b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsGetWithResponseMockTests.java @@ -6,58 +6,39 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfiguration; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class MetricsConfigurationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"mjqmv\",\"type\":\"tgkiqlarh\"},\"properties\":{\"collectionInterval\":2364228009961683427,\"detailedStatus\":\"Processing\",\"detailedStatusMessage\":\"zekdzdzffzj\",\"disabledMetrics\":[\"smpc\",\"ggr\"],\"enabledMetrics\":[\"gfyatig\"],\"provisioningState\":\"Failed\"},\"location\":\"r\",\"tags\":{\"vmd\":\"nczgorywnvoj\",\"pyhssrlvkpkpkoc\":\"vdlhqvbkar\",\"ebxxopyic\":\"ac\",\"cpumdd\":\"vspeslhwyykgvr\"},\"id\":\"gajkrdyddtpfcud\",\"name\":\"afnbfbqve\",\"type\":\"qnxhgk\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"mlhxdfbklcii\",\"type\":\"hgjsysmvxo\"},\"properties\":{\"collectionInterval\":8084012969495195501,\"detailedStatus\":\"Applied\",\"detailedStatusMessage\":\"zsifcuvbdujgcwx\",\"disabledMetrics\":[\"bbwjtrdxrizagb\",\"giarksykpgdqxw\",\"b\"],\"enabledMetrics\":[\"iqrxhaclcdosq\",\"ptjq\",\"kifmmainw\",\"edxkpbqwuntob\"],\"provisioningState\":\"Succeeded\"},\"location\":\"zz\",\"tags\":{\"gjwdab\":\"gvydjufbnklblaxp\",\"ytlbtlqhopxouvm\":\"lfdxaglz\",\"fmy\":\"siflikyypzkgxf\"},\"id\":\"qsdb\",\"name\":\"oksz\",\"type\":\"nm\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); ClusterMetricsConfiguration response = manager.metricsConfigurations() - .getWithResponse("xwbpwyykdig", "zlrz", "dasdni", com.azure.core.util.Context.NONE) + .getWithResponse("fpjbqggwe", "iwdhdmncgbfzu", "cstu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("r", response.location()); - Assertions.assertEquals("nczgorywnvoj", response.tags().get("vmd")); - Assertions.assertEquals("mjqmv", response.extendedLocation().name()); - Assertions.assertEquals("tgkiqlarh", response.extendedLocation().type()); - Assertions.assertEquals(2364228009961683427L, response.collectionInterval()); - Assertions.assertEquals("gfyatig", response.enabledMetrics().get(0)); + Assertions.assertEquals("zz", response.location()); + Assertions.assertEquals("gvydjufbnklblaxp", response.tags().get("gjwdab")); + Assertions.assertEquals("mlhxdfbklcii", response.extendedLocation().name()); + Assertions.assertEquals("hgjsysmvxo", response.extendedLocation().type()); + Assertions.assertEquals(8084012969495195501L, response.collectionInterval()); + Assertions.assertEquals("iqrxhaclcdosq", response.enabledMetrics().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.java index 489b3533b9953..b0aab32ec57a8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/MetricsConfigurationsListByClusterMockTests.java @@ -6,58 +6,39 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ClusterMetricsConfiguration; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class MetricsConfigurationsListByClusterMockTests { @Test public void testListByCluster() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"qvcml\",\"type\":\"exbzbqufpnezsjza\"},\"properties\":{\"collectionInterval\":1012603329347113753,\"detailedStatus\":\"Processing\",\"detailedStatusMessage\":\"r\",\"disabledMetrics\":[\"gzmsimehtc\",\"uwdhtq\",\"hyhnimxtns\",\"gi\"],\"enabledMetrics\":[\"mwnwnghojovkey\"],\"provisioningState\":\"Accepted\"},\"location\":\"jixxfsfpcrtn\",\"tags\":{\"ijte\":\"efx\",\"cnw\":\"dveywetkrhlol\",\"tlrnrdet\":\"pfgsvbbvaqdljnp\",\"e\":\"wevxeh\"},\"id\":\"dxljzvdovbrble\",\"name\":\"lprdaqccddcbnygd\",\"type\":\"c\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"xej\",\"type\":\"wecy\"},\"properties\":{\"collectionInterval\":798943047394239126,\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"za\",\"disabledMetrics\":[\"inqbdnddbbozs\",\"vrmkjmyitrchwu\",\"lxeeiht\",\"mnoejhqlfmsib\"],\"enabledMetrics\":[\"rfgxkyd\",\"mypgfqvmty\"],\"provisioningState\":\"Canceled\"},\"location\":\"kxp\",\"tags\":{\"jlfxampqcrzgeuq\":\"ewp\",\"iatwfaujegqdtadr\":\"b\"},\"id\":\"kgd\",\"name\":\"hjkrukizyhgs\",\"type\":\"tnqsktx\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.metricsConfigurations().listByCluster("xwwvcmmpeg", "y", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("jixxfsfpcrtn", response.iterator().next().location()); - Assertions.assertEquals("efx", response.iterator().next().tags().get("ijte")); - Assertions.assertEquals("qvcml", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("exbzbqufpnezsjza", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(1012603329347113753L, response.iterator().next().collectionInterval()); - Assertions.assertEquals("mwnwnghojovkey", response.iterator().next().enabledMetrics().get(0)); + = manager.metricsConfigurations().listByCluster("odfcbjq", "wmtqsmoxsaz", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("kxp", response.iterator().next().location()); + Assertions.assertEquals("ewp", response.iterator().next().tags().get("jlfxampqcrzgeuq")); + Assertions.assertEquals("xej", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("wecy", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals(798943047394239126L, response.iterator().next().collectionInterval()); + Assertions.assertEquals("rfgxkyd", response.iterator().next().enabledMetrics().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.java index e85f56bfe17eb..817fb776142ff 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkAttachmentTests.java @@ -14,30 +14,30 @@ public final class NetworkAttachmentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkAttachment model = BinaryData.fromString( - "{\"attachedNetworkId\":\"hjpglkf\",\"defaultGateway\":\"False\",\"ipAllocationMethod\":\"Static\",\"ipv4Address\":\"euel\",\"ipv6Address\":\"hsd\",\"macAddress\":\"t\",\"networkAttachmentName\":\"fikdowwqu\"}") + "{\"attachedNetworkId\":\"aldsy\",\"defaultGateway\":\"False\",\"ipAllocationMethod\":\"Disabled\",\"ipv4Address\":\"erqf\",\"ipv6Address\":\"wyznkbyku\",\"macAddress\":\"pfhpagmhrskdsnfd\",\"networkAttachmentName\":\"oakgtdlmkkzev\"}") .toObject(NetworkAttachment.class); - Assertions.assertEquals("hjpglkf", model.attachedNetworkId()); + Assertions.assertEquals("aldsy", model.attachedNetworkId()); Assertions.assertEquals(DefaultGateway.FALSE, model.defaultGateway()); - Assertions.assertEquals(VirtualMachineIpAllocationMethod.STATIC, model.ipAllocationMethod()); - Assertions.assertEquals("euel", model.ipv4Address()); - Assertions.assertEquals("hsd", model.ipv6Address()); - Assertions.assertEquals("fikdowwqu", model.networkAttachmentName()); + Assertions.assertEquals(VirtualMachineIpAllocationMethod.DISABLED, model.ipAllocationMethod()); + Assertions.assertEquals("erqf", model.ipv4Address()); + Assertions.assertEquals("wyznkbyku", model.ipv6Address()); + Assertions.assertEquals("oakgtdlmkkzev", model.networkAttachmentName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NetworkAttachment model = new NetworkAttachment().withAttachedNetworkId("hjpglkf") + NetworkAttachment model = new NetworkAttachment().withAttachedNetworkId("aldsy") .withDefaultGateway(DefaultGateway.FALSE) - .withIpAllocationMethod(VirtualMachineIpAllocationMethod.STATIC) - .withIpv4Address("euel") - .withIpv6Address("hsd") - .withNetworkAttachmentName("fikdowwqu"); + .withIpAllocationMethod(VirtualMachineIpAllocationMethod.DISABLED) + .withIpv4Address("erqf") + .withIpv6Address("wyznkbyku") + .withNetworkAttachmentName("oakgtdlmkkzev"); model = BinaryData.fromObject(model).toObject(NetworkAttachment.class); - Assertions.assertEquals("hjpglkf", model.attachedNetworkId()); + Assertions.assertEquals("aldsy", model.attachedNetworkId()); Assertions.assertEquals(DefaultGateway.FALSE, model.defaultGateway()); - Assertions.assertEquals(VirtualMachineIpAllocationMethod.STATIC, model.ipAllocationMethod()); - Assertions.assertEquals("euel", model.ipv4Address()); - Assertions.assertEquals("hsd", model.ipv6Address()); - Assertions.assertEquals("fikdowwqu", model.networkAttachmentName()); + Assertions.assertEquals(VirtualMachineIpAllocationMethod.DISABLED, model.ipAllocationMethod()); + Assertions.assertEquals("erqf", model.ipv4Address()); + Assertions.assertEquals("wyznkbyku", model.ipv6Address()); + Assertions.assertEquals("oakgtdlmkkzev", model.networkAttachmentName()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.java index f24191190b53c..d8db3851c81b9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/NetworkInterfaceTests.java @@ -11,7 +11,7 @@ public final class NetworkInterfaceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkInterface model = BinaryData.fromString( - "{\"address\":\"qbmfpjbabwidf\",\"deviceConnectionType\":\"PCI\",\"model\":\"puunnoxyhkxgqd\",\"physicalSlot\":944157000221842248,\"portCount\":5806792787635363155,\"portSpeed\":5765762750940696001,\"vendor\":\"a\"}") + "{\"address\":\"cojocqwogfnzjvus\",\"deviceConnectionType\":\"PCI\",\"model\":\"mozuxylfsb\",\"physicalSlot\":1611950859305469556,\"portCount\":3915146544894242968,\"portSpeed\":1856181923182418144,\"vendor\":\"tgkbugrjqctojc\"}") .toObject(NetworkInterface.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationStatusResultInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationStatusResultInnerTests.java deleted file mode 100644 index 24d111d9395e8..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationStatusResultInnerTests.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationStatusResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationStatusResultInner model = BinaryData.fromString( - "{\"id\":\"mcjn\",\"resourceId\":\"qdqx\",\"name\":\"jw\",\"status\":\"nyfusfzsvtuikzh\",\"percentComplete\":97.57446,\"startTime\":\"2021-03-17T22:07:36Z\",\"endTime\":\"2021-03-11T22:00:52Z\",\"operations\":[{\"id\":\"rqryxynqn\",\"resourceId\":\"dpsovwxznptgo\",\"name\":\"ybbabpfhvfsl\",\"status\":\"vntjlrigjk\",\"percentComplete\":19.841623,\"startTime\":\"2021-08-21T05:50:17Z\",\"endTime\":\"2021-02-22T17:46:16Z\",\"operations\":[{\"id\":\"dsxwaab\",\"resourceId\":\"ifrygzn\",\"name\":\"axri\",\"status\":\"kzobgopxlhsln\",\"percentComplete\":73.85414,\"startTime\":\"2021-05-24T14:46:14Z\",\"endTime\":\"2021-01-25T13:08:28Z\",\"operations\":[{\"status\":\"llxecwc\"},{\"status\":\"ojphslhc\"}]}]},{\"id\":\"tifdwfmvi\",\"resourceId\":\"rqjb\",\"name\":\"zhraglkafh\",\"status\":\"n\",\"percentComplete\":41.36698,\"startTime\":\"2021-12-07T11:29:57Z\",\"endTime\":\"2021-06-22T12:59:46Z\",\"operations\":[{\"id\":\"vcpopmxe\",\"resourceId\":\"wcltyjede\",\"name\":\"mlfmkqs\",\"status\":\"azuawx\",\"percentComplete\":0.3758669,\"startTime\":\"2021-01-18T18:15:51Z\",\"endTime\":\"2021-05-20T10:02:10Z\",\"operations\":[{\"status\":\"bzxrvxcushsphai\"},{\"status\":\"mxyasflvgsgzw\"},{\"status\":\"wakoihkn\"},{\"status\":\"mjblmljhlny\"}]},{\"id\":\"tqyryuzcbmqqv\",\"resourceId\":\"vwf\",\"name\":\"ayxonsupeujl\",\"status\":\"qnhcvsqltnzoibg\",\"percentComplete\":21.69999,\"startTime\":\"2021-03-11T11:00:33Z\",\"endTime\":\"2021-08-07T07:11:11Z\",\"operations\":[{\"status\":\"nmpqoxwdofdb\"},{\"status\":\"iqxeiiqbimht\"},{\"status\":\"wwinhehf\"}]},{\"id\":\"fvwbcb\",\"resourceId\":\"mbnkb\",\"name\":\"qvxkd\",\"status\":\"vqihebwtswbzuwf\",\"percentComplete\":34.457104,\"startTime\":\"2021-04-25T12:17:15Z\",\"endTime\":\"2021-01-25T01:53:42Z\",\"operations\":[{\"status\":\"zvcjfelisdjubggb\"},{\"status\":\"igkxkbsazga\"}]},{\"id\":\"cyrcmjdmspo\",\"resourceId\":\"pv\",\"name\":\"rylniofrzg\",\"status\":\"zjedmstkvnlv\",\"percentComplete\":2.6657462,\"startTime\":\"2021-02-07T05:40:32Z\",\"endTime\":\"2021-08-21T17:03:38Z\",\"operations\":[{\"status\":\"twfans\"},{\"status\":\"v\"}]}]},{\"id\":\"mik\",\"resourceId\":\"tbzbkiwbuqnyophz\",\"name\":\"l\",\"status\":\"gcrpfbcun\",\"percentComplete\":69.6509,\"startTime\":\"2021-03-22T15:20:36Z\",\"endTime\":\"2021-06-16T02:10:41Z\",\"operations\":[{\"id\":\"yfwlwxjwet\",\"resourceId\":\"sihclafzvaylp\",\"name\":\"sqqw\",\"status\":\"tcmwqkchc\",\"percentComplete\":24.182432,\"startTime\":\"2021-03-27T13:01:29Z\",\"endTime\":\"2021-10-21T01:45:32Z\",\"operations\":[{\"status\":\"kjexfdeqvhp\"},{\"status\":\"ylkkshkbffmbm\"}]},{\"id\":\"rgywwp\",\"resourceId\":\"xs\",\"name\":\"tf\",\"status\":\"jgicgaao\",\"percentComplete\":54.031826,\"startTime\":\"2021-07-31T03:17:47Z\",\"endTime\":\"2021-04-02T22:27:46Z\",\"operations\":[{\"status\":\"ewemxs\"},{\"status\":\"vru\"},{\"status\":\"nz\"}]},{\"id\":\"ehkfkimrtixok\",\"resourceId\":\"qyinl\",\"name\":\"epqw\",\"status\":\"ixmonstshiyxg\",\"percentComplete\":35.385735,\"startTime\":\"2021-09-10T16:03:17Z\",\"endTime\":\"2021-07-06T17:30:57Z\",\"operations\":[{\"status\":\"cb\"}]}]}]}") - .toObject(OperationStatusResultInner.class); - Assertions.assertEquals("mcjn", model.id()); - Assertions.assertEquals("jw", model.name()); - Assertions.assertEquals("nyfusfzsvtuikzh", model.status()); - Assertions.assertEquals(97.57446F, model.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T22:07:36Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-11T22:00:52Z"), model.endTime()); - Assertions.assertEquals("rqryxynqn", model.operations().get(0).id()); - Assertions.assertEquals("ybbabpfhvfsl", model.operations().get(0).name()); - Assertions.assertEquals("vntjlrigjk", model.operations().get(0).status()); - Assertions.assertEquals(19.841623F, model.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-21T05:50:17Z"), model.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T17:46:16Z"), model.operations().get(0).endTime()); - Assertions.assertEquals("dsxwaab", model.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("axri", model.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("kzobgopxlhsln", model.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(73.85414F, model.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T14:46:14Z"), - model.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T13:08:28Z"), - model.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("llxecwc", model.operations().get(0).operations().get(0).operations().get(0).status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationStatusResultInner model = new OperationStatusResultInner().withId("mcjn") - .withName("jw") - .withStatus("nyfusfzsvtuikzh") - .withPercentComplete(97.57446F) - .withStartTime(OffsetDateTime.parse("2021-03-17T22:07:36Z")) - .withEndTime(OffsetDateTime.parse("2021-03-11T22:00:52Z")) - .withOperations(Arrays.asList( - new OperationStatusResultInner().withId("rqryxynqn") - .withName("ybbabpfhvfsl") - .withStatus("vntjlrigjk") - .withPercentComplete(19.841623F) - .withStartTime(OffsetDateTime.parse("2021-08-21T05:50:17Z")) - .withEndTime(OffsetDateTime.parse("2021-02-22T17:46:16Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withId("dsxwaab") - .withName("axri") - .withStatus("kzobgopxlhsln") - .withPercentComplete(73.85414F) - .withStartTime(OffsetDateTime.parse("2021-05-24T14:46:14Z")) - .withEndTime(OffsetDateTime.parse("2021-01-25T13:08:28Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withStatus("llxecwc"), - new OperationStatusResultInner().withStatus("ojphslhc"))))), - new OperationStatusResultInner().withId("tifdwfmvi") - .withName("zhraglkafh") - .withStatus("n") - .withPercentComplete(41.36698F) - .withStartTime(OffsetDateTime.parse("2021-12-07T11:29:57Z")) - .withEndTime(OffsetDateTime.parse("2021-06-22T12:59:46Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withId("vcpopmxe") - .withName("mlfmkqs") - .withStatus("azuawx") - .withPercentComplete(0.3758669F) - .withStartTime(OffsetDateTime.parse("2021-01-18T18:15:51Z")) - .withEndTime(OffsetDateTime.parse("2021-05-20T10:02:10Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withStatus("bzxrvxcushsphai"), - new OperationStatusResultInner().withStatus("mxyasflvgsgzw"), - new OperationStatusResultInner().withStatus("wakoihkn"), - new OperationStatusResultInner().withStatus("mjblmljhlny"))), - new OperationStatusResultInner().withId("tqyryuzcbmqqv") - .withName("ayxonsupeujl") - .withStatus("qnhcvsqltnzoibg") - .withPercentComplete(21.69999F) - .withStartTime(OffsetDateTime.parse("2021-03-11T11:00:33Z")) - .withEndTime(OffsetDateTime.parse("2021-08-07T07:11:11Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withStatus("nmpqoxwdofdb"), - new OperationStatusResultInner().withStatus("iqxeiiqbimht"), - new OperationStatusResultInner().withStatus("wwinhehf"))), - new OperationStatusResultInner().withId("fvwbcb") - .withName("qvxkd") - .withStatus("vqihebwtswbzuwf") - .withPercentComplete(34.457104F) - .withStartTime(OffsetDateTime.parse("2021-04-25T12:17:15Z")) - .withEndTime(OffsetDateTime.parse("2021-01-25T01:53:42Z")) - .withOperations( - Arrays.asList(new OperationStatusResultInner().withStatus("zvcjfelisdjubggb"), - new OperationStatusResultInner().withStatus("igkxkbsazga"))), - new OperationStatusResultInner().withId("cyrcmjdmspo") - .withName("rylniofrzg") - .withStatus("zjedmstkvnlv") - .withPercentComplete(2.6657462F) - .withStartTime(OffsetDateTime.parse("2021-02-07T05:40:32Z")) - .withEndTime(OffsetDateTime.parse("2021-08-21T17:03:38Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withStatus("twfans"), - new OperationStatusResultInner().withStatus("v"))))), - new OperationStatusResultInner().withId("mik") - .withName("l") - .withStatus("gcrpfbcun") - .withPercentComplete(69.6509F) - .withStartTime(OffsetDateTime.parse("2021-03-22T15:20:36Z")) - .withEndTime(OffsetDateTime.parse("2021-06-16T02:10:41Z")) - .withOperations(Arrays.asList( - new OperationStatusResultInner().withId("yfwlwxjwet") - .withName("sqqw") - .withStatus("tcmwqkchc") - .withPercentComplete(24.182432F) - .withStartTime(OffsetDateTime.parse("2021-03-27T13:01:29Z")) - .withEndTime(OffsetDateTime.parse("2021-10-21T01:45:32Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withStatus("kjexfdeqvhp"), - new OperationStatusResultInner().withStatus("ylkkshkbffmbm"))), - new OperationStatusResultInner().withId("rgywwp") - .withName("tf") - .withStatus("jgicgaao") - .withPercentComplete(54.031826F) - .withStartTime(OffsetDateTime.parse("2021-07-31T03:17:47Z")) - .withEndTime(OffsetDateTime.parse("2021-04-02T22:27:46Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withStatus("ewemxs"), - new OperationStatusResultInner().withStatus("vru"), - new OperationStatusResultInner().withStatus("nz"))), - new OperationStatusResultInner().withId("ehkfkimrtixok") - .withName("epqw") - .withStatus("ixmonstshiyxg") - .withPercentComplete(35.385735F) - .withStartTime(OffsetDateTime.parse("2021-09-10T16:03:17Z")) - .withEndTime(OffsetDateTime.parse("2021-07-06T17:30:57Z")) - .withOperations(Arrays.asList(new OperationStatusResultInner().withStatus("cb"))))))); - model = BinaryData.fromObject(model).toObject(OperationStatusResultInner.class); - Assertions.assertEquals("mcjn", model.id()); - Assertions.assertEquals("jw", model.name()); - Assertions.assertEquals("nyfusfzsvtuikzh", model.status()); - Assertions.assertEquals(97.57446F, model.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T22:07:36Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-11T22:00:52Z"), model.endTime()); - Assertions.assertEquals("rqryxynqn", model.operations().get(0).id()); - Assertions.assertEquals("ybbabpfhvfsl", model.operations().get(0).name()); - Assertions.assertEquals("vntjlrigjk", model.operations().get(0).status()); - Assertions.assertEquals(19.841623F, model.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-21T05:50:17Z"), model.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T17:46:16Z"), model.operations().get(0).endTime()); - Assertions.assertEquals("dsxwaab", model.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("axri", model.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("kzobgopxlhsln", model.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(73.85414F, model.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T14:46:14Z"), - model.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T13:08:28Z"), - model.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("llxecwc", model.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationsListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationsListMockTests.java index 8cbd6c69461c4..787e2404ca355 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationsListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OperationsListMockTests.java @@ -6,49 +6,31 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.Operation; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class OperationsListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"name\":\"mzlanru\",\"isDataAction\":false,\"display\":{\"provider\":\"phcnzqtpj\",\"resource\":\"qrhvthlaiwdcxsml\",\"operation\":\"hzdtxetlgydlh\",\"description\":\"lnnpx\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"name\":\"yqwcabvnuil\",\"isDataAction\":true,\"display\":{\"provider\":\"wlpaugmrmfjlrxwt\",\"resource\":\"ukhfkvc\",\"operation\":\"izmoaeds\",\"description\":\"wuived\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.java index 2ffbb084afa9c..afaaded1ffa90 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/OsDiskTests.java @@ -15,21 +15,21 @@ public final class OsDiskTests { public void testDeserialize() throws Exception { OsDisk model = BinaryData .fromString( - "{\"createOption\":\"Ephemeral\",\"deleteOption\":\"Delete\",\"diskSizeGB\":4536236454028205710}") + "{\"createOption\":\"Ephemeral\",\"deleteOption\":\"Delete\",\"diskSizeGB\":564508410758471876}") .toObject(OsDisk.class); Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.createOption()); Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.deleteOption()); - Assertions.assertEquals(4536236454028205710L, model.diskSizeGB()); + Assertions.assertEquals(564508410758471876L, model.diskSizeGB()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { OsDisk model = new OsDisk().withCreateOption(OsDiskCreateOption.EPHEMERAL) .withDeleteOption(OsDiskDeleteOption.DELETE) - .withDiskSizeGB(4536236454028205710L); + .withDiskSizeGB(564508410758471876L); model = BinaryData.fromObject(model).toObject(OsDisk.class); Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.createOption()); Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.deleteOption()); - Assertions.assertEquals(4536236454028205710L, model.diskSizeGB()); + Assertions.assertEquals(564508410758471876L, model.diskSizeGB()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java index 476dc32ab0ceb..3efb74b7cdd04 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackInnerTests.java @@ -15,36 +15,36 @@ public final class RackInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RackInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"fsbtkad\",\"type\":\"ysownbtgkbug\"},\"properties\":{\"availabilityZone\":\"jqctojcmisofie\",\"clusterId\":\"efojyqdhcupl\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"wkhihihlhzdsqt\",\"provisioningState\":\"Accepted\",\"rackLocation\":\"rgnowcjhfgm\",\"rackSerialNumber\":\"ecactx\",\"rackSkuId\":\"wotey\"},\"location\":\"cluqovekqvgqo\",\"tags\":{\"kfxcvhrfs\":\"fzmpjwyivq\",\"kvyklxubyjaffmm\":\"huagrttikteusqc\",\"qcuubgqibrta\":\"bl\"},\"id\":\"metttwgd\",\"name\":\"lqxihhrmooiz\",\"type\":\"seypxiutcxapz\"}") + "{\"extendedLocation\":{\"name\":\"fiwrxgkn\",\"type\":\"uvyinzqodfvpgs\"},\"properties\":{\"availabilityZone\":\"oxgsgbpfgzdjtx\",\"clusterId\":\"flbqvgaq\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"fcq\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"dvetnws\",\"rackSerialNumber\":\"tutnwlduycvuzhyr\",\"rackSkuId\":\"ewipm\"},\"location\":\"k\",\"tags\":{\"zhhzjhfjmhvvmu\":\"kuqgsjjxundxgket\",\"yihsasbhudypohyu\":\"gpmuneqsxvmhfbuz\"},\"id\":\"ms\",\"name\":\"ynsqyrpfoobr\",\"type\":\"ttymsjny\"}") .toObject(RackInner.class); - Assertions.assertEquals("cluqovekqvgqo", model.location()); - Assertions.assertEquals("fzmpjwyivq", model.tags().get("kfxcvhrfs")); - Assertions.assertEquals("fsbtkad", model.extendedLocation().name()); - Assertions.assertEquals("ysownbtgkbug", model.extendedLocation().type()); - Assertions.assertEquals("jqctojcmisofie", model.availabilityZone()); - Assertions.assertEquals("rgnowcjhfgm", model.rackLocation()); - Assertions.assertEquals("ecactx", model.rackSerialNumber()); - Assertions.assertEquals("wotey", model.rackSkuId()); + Assertions.assertEquals("k", model.location()); + Assertions.assertEquals("kuqgsjjxundxgket", model.tags().get("zhhzjhfjmhvvmu")); + Assertions.assertEquals("fiwrxgkn", model.extendedLocation().name()); + Assertions.assertEquals("uvyinzqodfvpgs", model.extendedLocation().type()); + Assertions.assertEquals("oxgsgbpfgzdjtx", model.availabilityZone()); + Assertions.assertEquals("dvetnws", model.rackLocation()); + Assertions.assertEquals("tutnwlduycvuzhyr", model.rackSerialNumber()); + Assertions.assertEquals("ewipm", model.rackSkuId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RackInner model = new RackInner().withLocation("cluqovekqvgqo") - .withTags(mapOf("kfxcvhrfs", "fzmpjwyivq", "kvyklxubyjaffmm", "huagrttikteusqc", "qcuubgqibrta", "bl")) - .withExtendedLocation(new ExtendedLocation().withName("fsbtkad").withType("ysownbtgkbug")) - .withAvailabilityZone("jqctojcmisofie") - .withRackLocation("rgnowcjhfgm") - .withRackSerialNumber("ecactx") - .withRackSkuId("wotey"); + RackInner model = new RackInner().withLocation("k") + .withTags(mapOf("zhhzjhfjmhvvmu", "kuqgsjjxundxgket", "yihsasbhudypohyu", "gpmuneqsxvmhfbuz")) + .withExtendedLocation(new ExtendedLocation().withName("fiwrxgkn").withType("uvyinzqodfvpgs")) + .withAvailabilityZone("oxgsgbpfgzdjtx") + .withRackLocation("dvetnws") + .withRackSerialNumber("tutnwlduycvuzhyr") + .withRackSkuId("ewipm"); model = BinaryData.fromObject(model).toObject(RackInner.class); - Assertions.assertEquals("cluqovekqvgqo", model.location()); - Assertions.assertEquals("fzmpjwyivq", model.tags().get("kfxcvhrfs")); - Assertions.assertEquals("fsbtkad", model.extendedLocation().name()); - Assertions.assertEquals("ysownbtgkbug", model.extendedLocation().type()); - Assertions.assertEquals("jqctojcmisofie", model.availabilityZone()); - Assertions.assertEquals("rgnowcjhfgm", model.rackLocation()); - Assertions.assertEquals("ecactx", model.rackSerialNumber()); - Assertions.assertEquals("wotey", model.rackSkuId()); + Assertions.assertEquals("k", model.location()); + Assertions.assertEquals("kuqgsjjxundxgket", model.tags().get("zhhzjhfjmhvvmu")); + Assertions.assertEquals("fiwrxgkn", model.extendedLocation().name()); + Assertions.assertEquals("uvyinzqodfvpgs", model.extendedLocation().type()); + Assertions.assertEquals("oxgsgbpfgzdjtx", model.availabilityZone()); + Assertions.assertEquals("dvetnws", model.rackLocation()); + Assertions.assertEquals("tutnwlduycvuzhyr", model.rackSerialNumber()); + Assertions.assertEquals("ewipm", model.rackSkuId()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java index 6ddd19b0e6d00..3d7f90475be47 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackListTests.java @@ -17,67 +17,54 @@ public final class RackListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RackList model = BinaryData.fromString( - "{\"nextLink\":\"onbzoggculapzwy\",\"value\":[{\"extendedLocation\":{\"name\":\"ogtqxepnylbf\",\"type\":\"ajlyjtlvofqzhv\"},\"properties\":{\"availabilityZone\":\"cib\",\"clusterId\":\"mowuxrk\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"w\",\"provisioningState\":\"Accepted\",\"rackLocation\":\"wiivwzjbhyzsx\",\"rackSerialNumber\":\"rkambt\",\"rackSkuId\":\"negvmnvuqe\"},\"location\":\"lds\",\"tags\":{\"kdmflvestmjlx\":\"tjb\",\"zapeewchpx\":\"ril\",\"levufuztcktyhj\":\"ktwkuziyc\"},\"id\":\"qedcgzulwm\",\"name\":\"rqzz\",\"type\":\"rjvpglydzgkrvqee\"},{\"extendedLocation\":{\"name\":\"toepryu\",\"type\":\"nwy\"},\"properties\":{\"availabilityZone\":\"pzdm\",\"clusterId\":\"zvfvaawz\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"lgzurig\",\"provisioningState\":\"Failed\",\"rackLocation\":\"cx\",\"rackSerialNumber\":\"dticokpvzml\",\"rackSkuId\":\"t\"},\"location\":\"dgxobfircl\",\"tags\":{\"fvjlboxqvkjlmx\":\"ciayzriykhya\",\"nraauzz\":\"omdynhdwdigum\"},\"id\":\"tj\",\"name\":\"zysdzh\",\"type\":\"zwwva\"},{\"extendedLocation\":{\"name\":\"qyuvvfonkp\",\"type\":\"hqyikvy\"},\"properties\":{\"availabilityZone\":\"auy\",\"clusterId\":\"luwmncst\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"y\",\"provisioningState\":\"Succeeded\",\"rackLocation\":\"o\",\"rackSerialNumber\":\"krsgsgb\",\"rackSkuId\":\"huzqgn\"},\"location\":\"gkynscliqh\",\"tags\":{\"ppnvdxz\":\"xnkomtkubo\"},\"id\":\"hihfrbbcevqagtlt\",\"name\":\"hlfkqojpy\",\"type\":\"vgtrdcnifmzzs\"},{\"extendedLocation\":{\"name\":\"ymbrnysuxmpraf\",\"type\":\"g\"},\"properties\":{\"availabilityZone\":\"khocxvdfffwaf\",\"clusterId\":\"oudaspavehhrvk\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"oz\",\"provisioningState\":\"Failed\",\"rackLocation\":\"cxgkmoyxcdyui\",\"rackSerialNumber\":\"hmfdnbzydvfvfcj\",\"rackSkuId\":\"aeoisrvh\"},\"location\":\"orffukiscv\",\"tags\":{\"l\":\"hwplefaxvx\",\"nzeyqxtjj\":\"btgn\",\"vodggxdbee\":\"zqlqhyc\",\"wiuagydwqf\":\"mieknlraria\"},\"id\":\"ylyrfgiagtco\",\"name\":\"ocqwogfnzjvus\",\"type\":\"zldmozuxy\"}]}") + "{\"nextLink\":\"hzdsqtzbsrgnow\",\"value\":[{\"extendedLocation\":{\"name\":\"fgmvecactxmwo\",\"type\":\"e\"},\"properties\":{\"availabilityZone\":\"owcluqo\",\"clusterId\":\"kqvgqouw\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"pjwyiv\",\"provisioningState\":\"Failed\",\"rackLocation\":\"f\",\"rackSerialNumber\":\"cvhrfsp\",\"rackSkuId\":\"uagrttikteusqc\"},\"location\":\"vyklxuby\",\"tags\":{\"bgq\":\"fmmfblcqcu\"},\"id\":\"brta\",\"name\":\"metttwgd\",\"type\":\"lqxihhrmooiz\"},{\"extendedLocation\":{\"name\":\"seypxiutcxapz\",\"type\":\"y\"},\"properties\":{\"availabilityZone\":\"petogebjox\",\"clusterId\":\"hvnh\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"q\",\"provisioningState\":\"Accepted\",\"rackLocation\":\"zjcjbtr\",\"rackSerialNumber\":\"aehvvibrxjjstoq\",\"rackSkuId\":\"eitpkxztmo\"},\"location\":\"klf\",\"tags\":{\"yhohujswtwkozzwc\":\"gfcwqmpimaqxzhem\",\"wpfaj\":\"lkb\"},\"id\":\"jwltlwtjjgu\",\"name\":\"talhsnvkcdmxzr\",\"type\":\"oaimlnw\"},{\"extendedLocation\":{\"name\":\"aaomylweazu\",\"type\":\"cse\"},\"properties\":{\"availabilityZone\":\"hwwn\",\"clusterId\":\"hlf\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ch\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"fb\",\"rackSerialNumber\":\"usnfepgfewet\",\"rackSkuId\":\"l\"},\"location\":\"gncxykxhdj\",\"tags\":{\"rxvxcjzh\":\"mmbcxfhbcp\",\"qscjavftjuh\":\"izxfpxt\"},\"id\":\"qaz\",\"name\":\"mtggu\",\"type\":\"pijrajcivmmghf\"}]}") .toObject(RackList.class); - Assertions.assertEquals("onbzoggculapzwy", model.nextLink()); - Assertions.assertEquals("lds", model.value().get(0).location()); - Assertions.assertEquals("tjb", model.value().get(0).tags().get("kdmflvestmjlx")); - Assertions.assertEquals("ogtqxepnylbf", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("ajlyjtlvofqzhv", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("cib", model.value().get(0).availabilityZone()); - Assertions.assertEquals("wiivwzjbhyzsx", model.value().get(0).rackLocation()); - Assertions.assertEquals("rkambt", model.value().get(0).rackSerialNumber()); - Assertions.assertEquals("negvmnvuqe", model.value().get(0).rackSkuId()); + Assertions.assertEquals("hzdsqtzbsrgnow", model.nextLink()); + Assertions.assertEquals("vyklxuby", model.value().get(0).location()); + Assertions.assertEquals("fmmfblcqcu", model.value().get(0).tags().get("bgq")); + Assertions.assertEquals("fgmvecactxmwo", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("e", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("owcluqo", model.value().get(0).availabilityZone()); + Assertions.assertEquals("f", model.value().get(0).rackLocation()); + Assertions.assertEquals("cvhrfsp", model.value().get(0).rackSerialNumber()); + Assertions.assertEquals("uagrttikteusqc", model.value().get(0).rackSkuId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RackList model - = new RackList().withNextLink("onbzoggculapzwy") - .withValue( - Arrays - .asList( - new RackInner().withLocation("lds") - .withTags( - mapOf("kdmflvestmjlx", "tjb", "zapeewchpx", "ril", "levufuztcktyhj", "ktwkuziyc")) - .withExtendedLocation( - new ExtendedLocation().withName("ogtqxepnylbf").withType("ajlyjtlvofqzhv")) - .withAvailabilityZone("cib") - .withRackLocation("wiivwzjbhyzsx") - .withRackSerialNumber("rkambt") - .withRackSkuId("negvmnvuqe"), - new RackInner().withLocation("dgxobfircl") - .withTags(mapOf("fvjlboxqvkjlmx", "ciayzriykhya", "nraauzz", "omdynhdwdigum")) - .withExtendedLocation(new ExtendedLocation().withName("toepryu").withType("nwy")) - .withAvailabilityZone("pzdm") - .withRackLocation("cx") - .withRackSerialNumber("dticokpvzml") - .withRackSkuId("t"), - new RackInner().withLocation("gkynscliqh") - .withTags(mapOf("ppnvdxz", "xnkomtkubo")) - .withExtendedLocation(new ExtendedLocation().withName("qyuvvfonkp").withType("hqyikvy")) - .withAvailabilityZone("auy") - .withRackLocation("o") - .withRackSerialNumber("krsgsgb") - .withRackSkuId("huzqgn"), - new RackInner().withLocation("orffukiscv") - .withTags(mapOf("l", "hwplefaxvx", "nzeyqxtjj", "btgn", "vodggxdbee", "zqlqhyc", - "wiuagydwqf", "mieknlraria")) - .withExtendedLocation(new ExtendedLocation().withName("ymbrnysuxmpraf").withType("g")) - .withAvailabilityZone("khocxvdfffwaf") - .withRackLocation("cxgkmoyxcdyui") - .withRackSerialNumber("hmfdnbzydvfvfcj") - .withRackSkuId("aeoisrvh"))); + RackList model = new RackList().withNextLink("hzdsqtzbsrgnow") + .withValue(Arrays.asList( + new RackInner().withLocation("vyklxuby") + .withTags(mapOf("bgq", "fmmfblcqcu")) + .withExtendedLocation(new ExtendedLocation().withName("fgmvecactxmwo").withType("e")) + .withAvailabilityZone("owcluqo") + .withRackLocation("f") + .withRackSerialNumber("cvhrfsp") + .withRackSkuId("uagrttikteusqc"), + new RackInner().withLocation("klf") + .withTags(mapOf("yhohujswtwkozzwc", "gfcwqmpimaqxzhem", "wpfaj", "lkb")) + .withExtendedLocation(new ExtendedLocation().withName("seypxiutcxapz").withType("y")) + .withAvailabilityZone("petogebjox") + .withRackLocation("zjcjbtr") + .withRackSerialNumber("aehvvibrxjjstoq") + .withRackSkuId("eitpkxztmo"), + new RackInner().withLocation("gncxykxhdj") + .withTags(mapOf("rxvxcjzh", "mmbcxfhbcp", "qscjavftjuh", "izxfpxt")) + .withExtendedLocation(new ExtendedLocation().withName("aaomylweazu").withType("cse")) + .withAvailabilityZone("hwwn") + .withRackLocation("fb") + .withRackSerialNumber("usnfepgfewet") + .withRackSkuId("l"))); model = BinaryData.fromObject(model).toObject(RackList.class); - Assertions.assertEquals("onbzoggculapzwy", model.nextLink()); - Assertions.assertEquals("lds", model.value().get(0).location()); - Assertions.assertEquals("tjb", model.value().get(0).tags().get("kdmflvestmjlx")); - Assertions.assertEquals("ogtqxepnylbf", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("ajlyjtlvofqzhv", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals("cib", model.value().get(0).availabilityZone()); - Assertions.assertEquals("wiivwzjbhyzsx", model.value().get(0).rackLocation()); - Assertions.assertEquals("rkambt", model.value().get(0).rackSerialNumber()); - Assertions.assertEquals("negvmnvuqe", model.value().get(0).rackSkuId()); + Assertions.assertEquals("hzdsqtzbsrgnow", model.nextLink()); + Assertions.assertEquals("vyklxuby", model.value().get(0).location()); + Assertions.assertEquals("fmmfblcqcu", model.value().get(0).tags().get("bgq")); + Assertions.assertEquals("fgmvecactxmwo", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("e", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals("owcluqo", model.value().get(0).availabilityZone()); + Assertions.assertEquals("f", model.value().get(0).rackLocation()); + Assertions.assertEquals("cvhrfsp", model.value().get(0).rackSerialNumber()); + Assertions.assertEquals("uagrttikteusqc", model.value().get(0).rackSkuId()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java index d77de3b588acd..45a9f4be80a02 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPatchParametersTests.java @@ -14,23 +14,23 @@ public final class RackPatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RackPatchParameters model = BinaryData.fromString( - "{\"properties\":{\"rackLocation\":\"esyds\",\"rackSerialNumber\":\"efoh\"},\"tags\":{\"mtkhlowkxxpvbr\":\"vopwndyqleallk\",\"lhikcyychunsj\":\"fjmzsyzfho\",\"hv\":\"pjrtws\"}}") + "{\"properties\":{\"rackLocation\":\"i\",\"rackSerialNumber\":\"pwpgddei\"},\"tags\":{\"jcazt\":\"zovgkkumuikj\",\"comlikytwvczc\":\"wsnsqowx\"}}") .toObject(RackPatchParameters.class); - Assertions.assertEquals("vopwndyqleallk", model.tags().get("mtkhlowkxxpvbr")); - Assertions.assertEquals("esyds", model.rackLocation()); - Assertions.assertEquals("efoh", model.rackSerialNumber()); + Assertions.assertEquals("zovgkkumuikj", model.tags().get("jcazt")); + Assertions.assertEquals("i", model.rackLocation()); + Assertions.assertEquals("pwpgddei", model.rackSerialNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RackPatchParameters model = new RackPatchParameters() - .withTags(mapOf("mtkhlowkxxpvbr", "vopwndyqleallk", "lhikcyychunsj", "fjmzsyzfho", "hv", "pjrtws")) - .withRackLocation("esyds") - .withRackSerialNumber("efoh"); + RackPatchParameters model + = new RackPatchParameters().withTags(mapOf("jcazt", "zovgkkumuikj", "comlikytwvczc", "wsnsqowx")) + .withRackLocation("i") + .withRackSerialNumber("pwpgddei"); model = BinaryData.fromObject(model).toObject(RackPatchParameters.class); - Assertions.assertEquals("vopwndyqleallk", model.tags().get("mtkhlowkxxpvbr")); - Assertions.assertEquals("esyds", model.rackLocation()); - Assertions.assertEquals("efoh", model.rackSerialNumber()); + Assertions.assertEquals("zovgkkumuikj", model.tags().get("jcazt")); + Assertions.assertEquals("i", model.rackLocation()); + Assertions.assertEquals("pwpgddei", model.rackSerialNumber()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.java index 7a9bc6b72b02a..6a3c9dc6f04d7 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackPropertiesTests.java @@ -12,24 +12,24 @@ public final class RackPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RackProperties model = BinaryData.fromString( - "{\"availabilityZone\":\"y\",\"clusterId\":\"etoge\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"slhvnhlab\",\"provisioningState\":\"Failed\",\"rackLocation\":\"kkzjcjbtrga\",\"rackSerialNumber\":\"hvv\",\"rackSkuId\":\"brxjjsto\"}") + "{\"availabilityZone\":\"qdnfwqzdz\",\"clusterId\":\"ilaxhn\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"yvi\",\"provisioningState\":\"Accepted\",\"rackLocation\":\"wivkxo\",\"rackSerialNumber\":\"zunbixx\",\"rackSkuId\":\"ti\"}") .toObject(RackProperties.class); - Assertions.assertEquals("y", model.availabilityZone()); - Assertions.assertEquals("kkzjcjbtrga", model.rackLocation()); - Assertions.assertEquals("hvv", model.rackSerialNumber()); - Assertions.assertEquals("brxjjsto", model.rackSkuId()); + Assertions.assertEquals("qdnfwqzdz", model.availabilityZone()); + Assertions.assertEquals("wivkxo", model.rackLocation()); + Assertions.assertEquals("zunbixx", model.rackSerialNumber()); + Assertions.assertEquals("ti", model.rackSkuId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RackProperties model = new RackProperties().withAvailabilityZone("y") - .withRackLocation("kkzjcjbtrga") - .withRackSerialNumber("hvv") - .withRackSkuId("brxjjsto"); + RackProperties model = new RackProperties().withAvailabilityZone("qdnfwqzdz") + .withRackLocation("wivkxo") + .withRackSerialNumber("zunbixx") + .withRackSkuId("ti"); model = BinaryData.fromObject(model).toObject(RackProperties.class); - Assertions.assertEquals("y", model.availabilityZone()); - Assertions.assertEquals("kkzjcjbtrga", model.rackLocation()); - Assertions.assertEquals("hvv", model.rackSerialNumber()); - Assertions.assertEquals("brxjjsto", model.rackSkuId()); + Assertions.assertEquals("qdnfwqzdz", model.availabilityZone()); + Assertions.assertEquals("wivkxo", model.rackLocation()); + Assertions.assertEquals("zunbixx", model.rackSerialNumber()); + Assertions.assertEquals("ti", model.rackSkuId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.java index e60051fcd539b..2e6ce1c966e8e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuInnerTests.java @@ -11,7 +11,7 @@ public final class RackSkuInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RackSkuInner model = BinaryData.fromString( - "{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":491327471174007244,\"cpuSockets\":8224509646361312989,\"disks\":[{},{}],\"generation\":\"qxqvpsvuoymgc\",\"hardwareVersion\":\"lvez\",\"memoryCapacityGB\":6907592721792123710,\"model\":\"mfe\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":1833052488439001173,\"vendor\":\"yhko\"},\"rackSlot\":2163259137534860371},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4472082990389410332,\"cpuSockets\":6326265417967005355,\"disks\":[{}],\"generation\":\"rfkbwccsnjvcdwxl\",\"hardwareVersion\":\"ekftnkhtj\",\"memoryCapacityGB\":362076039986657077,\"model\":\"wfqatmtd\",\"networkInterfaces\":[{}],\"totalThreads\":8519732811711473579,\"vendor\":\"gikdgsz\"},\"rackSlot\":4158814597266036765},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2468951178814203092,\"cpuSockets\":1808689546651848127,\"disks\":[{},{},{}],\"generation\":\"qrvqq\",\"hardwareVersion\":\"t\",\"memoryCapacityGB\":7064620302015218546,\"model\":\"goupmfiibfg\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":5365283778719311432,\"vendor\":\"rwxkvtkkgl\"},\"rackSlot\":7956286919576112532},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":5990043714623753281,\"cpuSockets\":2240044808904574446,\"disks\":[{},{}],\"generation\":\"k\",\"hardwareVersion\":\"hbxvvyhgsopbyrqu\",\"memoryCapacityGB\":754056912237486709,\"model\":\"vwz\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":7342748496486648146,\"vendor\":\"tlpdn\"},\"rackSlot\":4794040096268902871}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":3141470781454725182,\"cpuSockets\":1652787029694817901,\"disks\":[{},{}],\"generation\":\"jvegrhbpnaixexcc\",\"hardwareVersion\":\"reaxhcexdr\",\"memoryCapacityGB\":5677714812549279928,\"model\":\"qkghtpwijnhy\",\"networkInterfaces\":[{},{}],\"totalThreads\":753153192915766448,\"vendor\":\"z\"},\"rackSlot\":5977236228549031006},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":53764048985760155,\"cpuSockets\":6190922411407179441,\"disks\":[{},{},{},{}],\"generation\":\"y\",\"hardwareVersion\":\"tronzmyhgfi\",\"memoryCapacityGB\":3797997651495402097,\"model\":\"mcwaekrrjr\",\"networkInterfaces\":[{},{}],\"totalThreads\":8006171028976036711,\"vendor\":\"umh\"},\"rackSlot\":2620798390859941786},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4064120277354607981,\"cpuSockets\":6501585175246203591,\"disks\":[{},{}],\"generation\":\"uzlm\",\"hardwareVersion\":\"elfk\",\"memoryCapacityGB\":6676778811742741962,\"model\":\"rpw\",\"networkInterfaces\":[{},{}],\"totalThreads\":3779180060910913023,\"vendor\":\"gbrn\"},\"rackSlot\":2186486162242158404},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2791971078148352021,\"cpuSockets\":7475026912824042888,\"disks\":[{},{}],\"generation\":\"kagfhsxtt\",\"hardwareVersion\":\"gzxnfaazpxdtnk\",\"memoryCapacityGB\":4819915655623437065,\"model\":\"jlwuenvrkp\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":4613907741169030057,\"vendor\":\"ebqaaysjkixqtnq\"},\"rackSlot\":2784974934686338692}],\"description\":\"wfff\",\"maxClusterSlots\":3086933290402300840,\"provisioningState\":\"Succeeded\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":3499164667202206083,\"model\":\"mjihyeozphv\"},\"rackSlot\":7562585136473490528},{\"properties\":{\"capacityGB\":364088888984952408,\"model\":\"upkvipmdsc\"},\"rackSlot\":7093792094143055548}],\"supportedRackSkuIds\":[\"vzhfstotxhoj\",\"jbypel\"]},\"id\":\"uvhixbjxyfwn\",\"name\":\"lrcoolsttpki\",\"type\":\"kkbnu\"}") + "{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1580641323855513114,\"cpuSockets\":3554459404592540938,\"disks\":[{},{},{},{}],\"generation\":\"dqkdlwwqfbu\",\"hardwareVersion\":\"kxtrq\",\"memoryCapacityGB\":8916570711298227997,\"model\":\"mbtxhwgf\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":77859916992999912,\"vendor\":\"oezbrhubsk\"},\"rackSlot\":2353090484810813231},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1410009075037068900,\"cpuSockets\":9221028808795014470,\"disks\":[{},{},{},{}],\"generation\":\"leorfmluiqtqz\",\"hardwareVersion\":\"vyvnqqyb\",\"memoryCapacityGB\":4523449621729539400,\"model\":\"ayjkqa\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":4660884604586469413,\"vendor\":\"sjc\"},\"rackSlot\":9014783078965490836}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2309752602993772179,\"cpuSockets\":6158704597688718378,\"disks\":[{},{},{}],\"generation\":\"rbe\",\"hardwareVersion\":\"agohbuff\",\"memoryCapacityGB\":1676485595028012634,\"model\":\"mvvhmxtdrjfuta\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":5288556587713663943,\"vendor\":\"wzcjznmwcpmgua\"},\"rackSlot\":6174770568857951171},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":6719264529493509311,\"cpuSockets\":6614649944771130302,\"disks\":[{}],\"generation\":\"jjziuxxpsh\",\"hardwareVersion\":\"e\",\"memoryCapacityGB\":2979275467216366207,\"model\":\"slqubkwdl\",\"networkInterfaces\":[{}],\"totalThreads\":7442673812899592968,\"vendor\":\"ujbazpjuohminyfl\"},\"rackSlot\":3372671534162877362}],\"description\":\"duvwpklvxwmygd\",\"maxClusterSlots\":5636888396415086824,\"provisioningState\":\"Succeeded\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":3778167690103643206,\"model\":\"jcrxgibbdaxcon\"},\"rackSlot\":8794909142926460051}],\"supportedRackSkuIds\":[\"rsukokwbqplh\",\"vnuuepzl\",\"phwzsoldweyuqdu\"]},\"id\":\"mnnrwr\",\"name\":\"i\",\"type\":\"rk\"}") .toObject(RackSkuInner.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.java index d39a3d0fa19b5..a78ad624733d8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuListTests.java @@ -14,16 +14,16 @@ public final class RackSkuListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RackSkuList model = BinaryData.fromString( - "{\"nextLink\":\"mpipaslthaqfxs\",\"value\":[{\"properties\":{\"computeMachines\":[{\"properties\":{},\"rackSlot\":7650102264601836563},{\"properties\":{},\"rackSlot\":8587897237189545303},{\"properties\":{},\"rackSlot\":2068926764971195558},{\"properties\":{},\"rackSlot\":7630946703539097573}],\"controllerMachines\":[{\"properties\":{},\"rackSlot\":2743938617535852589}],\"description\":\"i\",\"maxClusterSlots\":1854957752746612483,\"provisioningState\":\"Succeeded\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{},\"rackSlot\":8959651156770054860}],\"supportedRackSkuIds\":[\"zanl\"]},\"id\":\"xi\",\"name\":\"vrmbzono\",\"type\":\"i\"},{\"properties\":{\"computeMachines\":[{\"properties\":{},\"rackSlot\":4820100600000743353}],\"controllerMachines\":[{\"properties\":{},\"rackSlot\":1112557223227183071},{\"properties\":{},\"rackSlot\":6176406145161217361}],\"description\":\"nwoiind\",\"maxClusterSlots\":1586932653363724705,\"provisioningState\":\"Succeeded\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{},\"rackSlot\":5073664426821636107},{\"properties\":{},\"rackSlot\":6454176992309402284},{\"properties\":{},\"rackSlot\":1730475892398036375},{\"properties\":{},\"rackSlot\":8025682187628267026}],\"supportedRackSkuIds\":[\"feljagrqm\"]},\"id\":\"ldvriiiojnalghfk\",\"name\":\"tvsexsowuel\",\"type\":\"qhhahhxvrhmzkwpj\"},{\"properties\":{\"computeMachines\":[{\"properties\":{},\"rackSlot\":8756648845252646804},{\"properties\":{},\"rackSlot\":2856222414032375851},{\"properties\":{},\"rackSlot\":5270793119915460778},{\"properties\":{},\"rackSlot\":794219754205284071}],\"controllerMachines\":[{\"properties\":{},\"rackSlot\":6939489719348300791},{\"properties\":{},\"rackSlot\":6401790851275828403},{\"properties\":{},\"rackSlot\":8851843932133625317}],\"description\":\"dmsyqtfihwhbo\",\"maxClusterSlots\":7308757901991635100,\"provisioningState\":\"Succeeded\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{},\"rackSlot\":3853655697248732253},{\"properties\":{},\"rackSlot\":6589777094256543656}],\"supportedRackSkuIds\":[\"qamvdkfwynwcvtbv\",\"ayhmtnvyqiatkz\"]},\"id\":\"cnpwzcjaesgvvscc\",\"name\":\"ajguqf\",\"type\":\"wygzlvdnkfxusem\"}]}") + "{\"nextLink\":\"chqnrnrpxehuwry\",\"value\":[{\"properties\":{\"computeMachines\":[{\"properties\":{},\"rackSlot\":5665330056607746255},{\"properties\":{},\"rackSlot\":2688572351682698683},{\"properties\":{},\"rackSlot\":1190594445033285188}],\"controllerMachines\":[{\"properties\":{},\"rackSlot\":7000960461087087639}],\"description\":\"cvdsrhnj\",\"maxClusterSlots\":4416106020884010184,\"provisioningState\":\"Canceled\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{},\"rackSlot\":6306081624028853584},{\"properties\":{},\"rackSlot\":4588468813568796443},{\"properties\":{},\"rackSlot\":1336842829926635678}],\"supportedRackSkuIds\":[\"duceamtmc\",\"u\"]},\"id\":\"ejwcwwqiok\",\"name\":\"ssxmojms\",\"type\":\"p\"},{\"properties\":{\"computeMachines\":[{\"properties\":{},\"rackSlot\":4154522920427564372},{\"properties\":{},\"rackSlot\":3304199408665245635},{\"properties\":{},\"rackSlot\":7914641295182789725},{\"properties\":{},\"rackSlot\":6420176499277047633}],\"controllerMachines\":[{\"properties\":{},\"rackSlot\":8137125616448530907},{\"properties\":{},\"rackSlot\":2443497935152545403}],\"description\":\"xmaehvbbxu\",\"maxClusterSlots\":1143259338746177654,\"provisioningState\":\"Failed\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{},\"rackSlot\":6787000307588779868}],\"supportedRackSkuIds\":[\"wrck\",\"yklyhpluodpvruud\"]},\"id\":\"zibt\",\"name\":\"ostgkts\",\"type\":\"vdxec\"}]}") .toObject(RackSkuList.class); - Assertions.assertEquals("mpipaslthaqfxs", model.nextLink()); + Assertions.assertEquals("chqnrnrpxehuwry", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RackSkuList model = new RackSkuList().withNextLink("mpipaslthaqfxs") - .withValue(Arrays.asList(new RackSkuInner(), new RackSkuInner(), new RackSkuInner())); + RackSkuList model = new RackSkuList().withNextLink("chqnrnrpxehuwry") + .withValue(Arrays.asList(new RackSkuInner(), new RackSkuInner())); model = BinaryData.fromObject(model).toObject(RackSkuList.class); - Assertions.assertEquals("mpipaslthaqfxs", model.nextLink()); + Assertions.assertEquals("chqnrnrpxehuwry", model.nextLink()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.java index c6eb8d1391e1e..00298b88c6252 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkuPropertiesTests.java @@ -11,7 +11,7 @@ public final class RackSkuPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RackSkuProperties model = BinaryData.fromString( - "{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":897928383714570190,\"cpuSockets\":4992192384689672126,\"disks\":[{\"capacityGB\":4886902105690813495,\"connection\":\"RAID\",\"type\":\"HDD\"},{\"capacityGB\":4844839820097841527,\"connection\":\"SATA\",\"type\":\"HDD\"}],\"generation\":\"cbihwqk\",\"hardwareVersion\":\"dntwjchrdgo\",\"memoryCapacityGB\":2630280004911914307,\"model\":\"wct\",\"networkInterfaces\":[{\"address\":\"jl\",\"deviceConnectionType\":\"PCI\",\"model\":\"dlwggytsbwtovv\",\"physicalSlot\":43627080801211364,\"portCount\":4164889178539078814,\"portSpeed\":1742595014873597372,\"vendor\":\"x\"},{\"address\":\"npirgnepttw\",\"deviceConnectionType\":\"PCI\",\"model\":\"iffcdmqnrojlpijn\",\"physicalSlot\":4906118574644662043,\"portCount\":2669373350654837958,\"portSpeed\":1073683971901315269,\"vendor\":\"tizzronasxif\"}],\"totalThreads\":1507601090527968063,\"vendor\":\"zh\"},\"rackSlot\":451663804662893565},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":418491034500887660,\"cpuSockets\":4204064275341043217,\"disks\":[{\"capacityGB\":944538746812596310,\"connection\":\"SAS\",\"type\":\"SSD\"}],\"generation\":\"ossxk\",\"hardwareVersion\":\"thrrgh\",\"memoryCapacityGB\":1163156563773473643,\"model\":\"qxvcxgfrpdsofb\",\"networkInterfaces\":[{\"address\":\"svbuswdvzyy\",\"deviceConnectionType\":\"PCI\",\"model\":\"unvjsrtkfawnopq\",\"physicalSlot\":2623062511310512908,\"portCount\":3559673454895327460,\"portSpeed\":1446220970457190394,\"vendor\":\"uxzejntpsew\"},{\"address\":\"oi\",\"deviceConnectionType\":\"PCI\",\"model\":\"rydxtqm\",\"physicalSlot\":1390056940934680717,\"portCount\":5252415972799158831,\"portSpeed\":2697230687378757276,\"vendor\":\"yaomtb\"},{\"address\":\"havgrvk\",\"deviceConnectionType\":\"PCI\",\"model\":\"jzhpjbibgjmfx\",\"physicalSlot\":7872237535456237102,\"portCount\":7695215716304590082,\"portSpeed\":6109993492117712320,\"vendor\":\"xnbkfezzxscyhwzd\"}],\"totalThreads\":7045288362398368122,\"vendor\":\"bzbomvzzbtdcqvpn\"},\"rackSlot\":3651008433855729700},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4558783476830824181,\"cpuSockets\":8037934387054503335,\"disks\":[{\"capacityGB\":9196123884907355895,\"connection\":\"PCIE\",\"type\":\"SSD\"},{\"capacityGB\":4011927311891556520,\"connection\":\"SATA\",\"type\":\"HDD\"},{\"capacityGB\":2537542936421805498,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":4348401221053690336,\"connection\":\"SAS\",\"type\":\"HDD\"}],\"generation\":\"tymoxoftp\",\"hardwareVersion\":\"iwyczuh\",\"memoryCapacityGB\":2066395080766074653,\"model\":\"jlihhyus\",\"networkInterfaces\":[{\"address\":\"sdvlmfwdgzxulucv\",\"deviceConnectionType\":\"PCI\",\"model\":\"sreuzvxurisjnh\",\"physicalSlot\":6393635018086407939,\"portCount\":1701469177378842614,\"portSpeed\":5638066454574719499,\"vendor\":\"mrhublwpc\"},{\"address\":\"utr\",\"deviceConnectionType\":\"PCI\",\"model\":\"auutpwoqhihe\",\"physicalSlot\":384607226319356964,\"portCount\":742897891377561430,\"portSpeed\":8353509845307889273,\"vendor\":\"cypsxjv\"}],\"totalThreads\":4546309057929935505,\"vendor\":\"kslircizjxvydfc\"},\"rackSlot\":5320885570510732876}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1591355210571298193,\"cpuSockets\":2478564510622036028,\"disks\":[{\"capacityGB\":7202506138934240523,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":2201377283568732164,\"connection\":\"SATA\",\"type\":\"SSD\"},{\"capacityGB\":7940390795274125017,\"connection\":\"RAID\",\"type\":\"SSD\"},{\"capacityGB\":2889902788902379770,\"connection\":\"RAID\",\"type\":\"HDD\"}],\"generation\":\"chqnrnrpxehuwry\",\"hardwareVersion\":\"gaifmvik\",\"memoryCapacityGB\":2809082588527497709,\"model\":\"khbejdznxc\",\"networkInterfaces\":[{\"address\":\"hnjivo\",\"deviceConnectionType\":\"PCI\",\"model\":\"ovqfzge\",\"physicalSlot\":4588468813568796443,\"portCount\":7570040776903453561,\"portSpeed\":7390049782510101354,\"vendor\":\"ucea\"},{\"address\":\"mczuo\",\"deviceConnectionType\":\"PCI\",\"model\":\"cwwqiokn\",\"physicalSlot\":2591843472121052867,\"portCount\":9165184616629712222,\"portSpeed\":6363406348902694054,\"vendor\":\"jpr\"}],\"totalThreads\":2543879941778862448,\"vendor\":\"zqljyxgtczh\"},\"rackSlot\":7400057251495207075},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":156216941630787820,\"cpuSockets\":3603938096040345117,\"disks\":[{\"capacityGB\":8705469140737643235,\"connection\":\"RAID\",\"type\":\"HDD\"},{\"capacityGB\":3755202150997171578,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":5395718649012161228,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":1452554072563405259,\"connection\":\"SAS\",\"type\":\"HDD\"}],\"generation\":\"yhpluodpvruudlgz\",\"hardwareVersion\":\"thost\",\"memoryCapacityGB\":5447753545805575214,\"model\":\"vdxec\",\"networkInterfaces\":[{\"address\":\"qbcvhzlhplod\",\"deviceConnectionType\":\"PCI\",\"model\":\"wwqfbumlkxtrqj\",\"physicalSlot\":7319826162281846697,\"portCount\":2316780080896501746,\"portSpeed\":8691764890760034239,\"vendor\":\"fwsrtawcoezbrhu\"},{\"address\":\"kh\",\"deviceConnectionType\":\"PCI\",\"model\":\"oookkqfq\",\"physicalSlot\":4114997006993721978,\"portCount\":746345832353203980,\"portSpeed\":2025762393106298017,\"vendor\":\"iqtqzfavyvnq\"}],\"totalThreads\":3285042382273237059,\"vendor\":\"yeua\"},\"rackSlot\":1986865163230395084},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2649456167246285274,\"cpuSockets\":350400367835684568,\"disks\":[{\"capacityGB\":3492006108944068979,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":4341512256186702204,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":1220945276828738413,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":1601037190025604112,\"connection\":\"PCIE\",\"type\":\"SSD\"}],\"generation\":\"f\",\"hardwareVersion\":\"mrqemvvhmx\",\"memoryCapacityGB\":5713148947008981411,\"model\":\"utacoe\",\"networkInterfaces\":[{\"address\":\"wzcjznmwcpmgua\",\"deviceConnectionType\":\"PCI\",\"model\":\"ufactk\",\"physicalSlot\":3432855337087507810,\"portCount\":5238754995577002157,\"portSpeed\":3236724470840488238,\"vendor\":\"xxpshneeku\"},{\"address\":\"gs\",\"deviceConnectionType\":\"PCI\",\"model\":\"kwdlenrdsutujba\",\"physicalSlot\":5977101318302182370,\"portCount\":7788471174563300155,\"portSpeed\":4711945730299884294,\"vendor\":\"lnorwmdu\"}],\"totalThreads\":6592682584026148798,\"vendor\":\"vxwmygd\"},\"rackSlot\":5636888396415086824}],\"description\":\"chisze\",\"maxClusterSlots\":2196732173372776914,\"provisioningState\":\"Succeeded\",\"rackType\":\"Compute\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":8416065526803881902,\"model\":\"confozauors\"},\"rackSlot\":8150670572969062689},{\"properties\":{\"capacityGB\":8658482827649183960,\"model\":\"hlvnuuepzlr\"},\"rackSlot\":7045549218691241885},{\"properties\":{\"capacityGB\":202758910356558886,\"model\":\"eyuqdunvmnnrwr\"},\"rackSlot\":3165158046012931137},{\"properties\":{\"capacityGB\":1294897435349030649,\"model\":\"wjhhgdnhxmsivf\"},\"rackSlot\":2582739038119922413}],\"supportedRackSkuIds\":[\"ggdufiqndieu\",\"ao\"]}") + "{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4458522526150344918,\"cpuSockets\":6322848214394065275,\"disks\":[{\"capacityGB\":2349971895731760213,\"connection\":\"PCIE\",\"type\":\"SSD\"}],\"generation\":\"ox\",\"hardwareVersion\":\"dufiq\",\"memoryCapacityGB\":7091381548429253436,\"model\":\"zaofjchvcyy\",\"networkInterfaces\":[{\"address\":\"dotcubiipuip\",\"deviceConnectionType\":\"PCI\",\"model\":\"nmacj\",\"physicalSlot\":2045062341145189898,\"portCount\":1517216245064921581,\"portSpeed\":7133413366116679058,\"vendor\":\"m\"}],\"totalThreads\":4510672218626509110,\"vendor\":\"mblrrilbywd\"},\"rackSlot\":7966238893835264976},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":7667244387685987692,\"cpuSockets\":2093232112026387768,\"disks\":[{\"capacityGB\":8491036925624729778,\"connection\":\"SATA\",\"type\":\"SSD\"}],\"generation\":\"zdvoqytibyowbb\",\"hardwareVersion\":\"yavutpthjoxois\",\"memoryCapacityGB\":3662268656068136217,\"model\":\"pi\",\"networkInterfaces\":[{\"address\":\"ljxkcgxxlx\",\"deviceConnectionType\":\"PCI\",\"model\":\"cvizqzdwlvw\",\"physicalSlot\":7995359679400580024,\"portCount\":4149594913386983887,\"portSpeed\":7840356601497751767,\"vendor\":\"ubdyhgk\"}],\"totalThreads\":1589948135137351109,\"vendor\":\"g\"},\"rackSlot\":5465402510748989819}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":6054514895875943598,\"cpuSockets\":2710800768496556807,\"disks\":[{\"capacityGB\":2084936073486724926,\"connection\":\"RAID\",\"type\":\"HDD\"},{\"capacityGB\":2418220883067284526,\"connection\":\"RAID\",\"type\":\"SSD\"},{\"capacityGB\":5954431271796698360,\"connection\":\"PCIE\",\"type\":\"HDD\"},{\"capacityGB\":463648669708471359,\"connection\":\"SAS\",\"type\":\"HDD\"}],\"generation\":\"uisavokq\",\"hardwareVersion\":\"fvazivjlfrqttba\",\"memoryCapacityGB\":8928541127382622137,\"model\":\"nwxyiop\",\"networkInterfaces\":[{\"address\":\"qfkuvscxkdmli\",\"deviceConnectionType\":\"PCI\",\"model\":\"brxk\",\"physicalSlot\":5344178861543099367,\"portCount\":539445643734318038,\"portSpeed\":777703187723077472,\"vendor\":\"bgo\"},{\"address\":\"bteoybf\",\"deviceConnectionType\":\"PCI\",\"model\":\"kvvjgslordilmyww\",\"physicalSlot\":2257431826333496773,\"portCount\":2506224870318199526,\"portSpeed\":3602711689175641143,\"vendor\":\"gyvudtjuewbc\"}],\"totalThreads\":8039712506260471031,\"vendor\":\"whcjyxcc\"},\"rackSlot\":4169856614299930706},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":790800476635117716,\"cpuSockets\":1219920941847170863,\"disks\":[{\"capacityGB\":1853682069039855587,\"connection\":\"PCIE\",\"type\":\"SSD\"},{\"capacityGB\":2687213839004826243,\"connection\":\"SAS\",\"type\":\"SSD\"}],\"generation\":\"kyrk\",\"hardwareVersion\":\"dg\",\"memoryCapacityGB\":2788413184397812768,\"model\":\"kmnwqjnobaiyhddv\",\"networkInterfaces\":[{\"address\":\"gfnmntfpmvmemfnc\",\"deviceConnectionType\":\"PCI\",\"model\":\"vbalxlllc\",\"physicalSlot\":4227859694996581960,\"portCount\":5164618573145789870,\"portSpeed\":2808701299898037313,\"vendor\":\"nhf\"},{\"address\":\"uvsj\",\"deviceConnectionType\":\"PCI\",\"model\":\"myst\",\"physicalSlot\":885610274962208064,\"portCount\":8029535700877069739,\"portSpeed\":7660460034004399095,\"vendor\":\"rchpqbmfpjbabwid\"},{\"address\":\"xsspuunnoxyhk\",\"deviceConnectionType\":\"PCI\",\"model\":\"drihpfhoqcaaewda\",\"physicalSlot\":5845013539879611462,\"portCount\":292325002250309298,\"portSpeed\":341419793256539323,\"vendor\":\"zb\"}],\"totalThreads\":8619272980248621233,\"vendor\":\"ivsiy\"},\"rackSlot\":5582812927114641945},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":6084294436773049191,\"cpuSockets\":3360815390541581755,\"disks\":[{\"capacityGB\":7561499091677686324,\"connection\":\"RAID\",\"type\":\"HDD\"},{\"capacityGB\":1071380814256215504,\"connection\":\"SAS\",\"type\":\"HDD\"}],\"generation\":\"qxepnylbfuaj\",\"hardwareVersion\":\"jtlvofqzhvfciby\",\"memoryCapacityGB\":3860000272436496584,\"model\":\"xrkjpvdw\",\"networkInterfaces\":[{\"address\":\"iivwzjbhyzsxjrka\",\"deviceConnectionType\":\"PCI\",\"model\":\"negvmnvuqe\",\"physicalSlot\":2749298665245055731,\"portCount\":1248601732189082431,\"portSpeed\":2614672104032561871,\"vendor\":\"kkdmfl\"},{\"address\":\"stmjlxrri\",\"deviceConnectionType\":\"PCI\",\"model\":\"peewchpxlkt\",\"physicalSlot\":6958921108876978916,\"portCount\":8522250892915577508,\"portSpeed\":5945101429864174422,\"vendor\":\"ufuztcktyhjtq\"},{\"address\":\"cgzulwmmrqzzr\",\"deviceConnectionType\":\"PCI\",\"model\":\"gl\",\"physicalSlot\":7516675391759114962,\"portCount\":7459676734569055259,\"portSpeed\":3562873593739937241,\"vendor\":\"toepryu\"},{\"address\":\"wytpzdmovz\",\"deviceConnectionType\":\"PCI\",\"model\":\"awzqadfl\",\"physicalSlot\":1367124749691079801,\"portCount\":4584433852798118541,\"portSpeed\":4544236688410248601,\"vendor\":\"ndtic\"}],\"totalThreads\":2952144912587821446,\"vendor\":\"mlqtmldgxob\"},\"rackSlot\":7072690516883017331}],\"description\":\"npkc\",\"maxClusterSlots\":8297039045609901437,\"provisioningState\":\"Succeeded\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":6511377951455717171,\"model\":\"lboxqvkjl\"},\"rackSlot\":2141969261254430963},{\"properties\":{\"capacityGB\":1283948358684815684,\"model\":\"dwdigumb\"},\"rackSlot\":5397574850963533069},{\"properties\":{\"capacityGB\":736045201414311047,\"model\":\"jazysdzhezwwvaiq\"},\"rackSlot\":1757411505006165051}],\"supportedRackSkuIds\":[\"nk\"]}") .toObject(RackSkuProperties.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.java index a4229cd64e66c..45f801b82384f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusGetWithResponseMockTests.java @@ -6,48 +6,30 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.RackSku; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class RackSkusGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":740525382887173409,\"cpuSockets\":5500340265923019624,\"disks\":[{}],\"generation\":\"bvcpxtzhi\",\"hardwareVersion\":\"qbtimpk\",\"memoryCapacityGB\":1044102882013391726,\"model\":\"nsihqhudsm\",\"networkInterfaces\":[{},{}],\"totalThreads\":4060730487232753668,\"vendor\":\"akx\"},\"rackSlot\":6306579526133194151},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2595914989199311759,\"cpuSockets\":8083612341819769387,\"disks\":[{},{}],\"generation\":\"ba\",\"hardwareVersion\":\"sjtgirnbgmgmddo\",\"memoryCapacityGB\":8665774540406405469,\"model\":\"ltwmpftmf\",\"networkInterfaces\":[{}],\"totalThreads\":1965043221912539556,\"vendor\":\"yxwe\"},\"rackSlot\":2455970206380865852},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":6507470422163849582,\"cpuSockets\":277162185175840671,\"disks\":[{},{}],\"generation\":\"recchdidrmu\",\"hardwareVersion\":\"ahmjedbiu\",\"memoryCapacityGB\":6239695269940490916,\"model\":\"wmjpjbweunxcqrr\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":5847341110356575377,\"vendor\":\"ppiybxv\"},\"rackSlot\":2199635918669239119}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4542334182366032884,\"cpuSockets\":6282274110728740658,\"disks\":[{},{}],\"generation\":\"kunhdimjuk\",\"hardwareVersion\":\"r\",\"memoryCapacityGB\":184726325025481896,\"model\":\"pucdocf\",\"networkInterfaces\":[{},{}],\"totalThreads\":2825605898464765817,\"vendor\":\"m\"},\"rackSlot\":8576357507637884293}],\"description\":\"lvzkl\",\"maxClusterSlots\":6499757878767405026,\"provisioningState\":\"Succeeded\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":4991304555138648039,\"model\":\"ishj\"},\"rackSlot\":8933790957352791226},{\"properties\":{\"capacityGB\":5289013246694502921,\"model\":\"kaoizjixw\"},\"rackSlot\":7700160116018729328},{\"properties\":{\"capacityGB\":7188469565987722721,\"model\":\"xwnujvqyn\"},\"rackSlot\":5295005918015200070},{\"properties\":{\"capacityGB\":8275230829067853990,\"model\":\"qohhihra\"},\"rackSlot\":7250011366444098060}],\"supportedRackSkuIds\":[\"wjc\"]},\"id\":\"brhlhpvzadb\",\"name\":\"enninafhxrzfrm\",\"type\":\"ztiucwviql\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2398401370038293392,\"cpuSockets\":773077908768619322,\"disks\":[{},{},{},{}],\"generation\":\"ythqkkwhbgxvel\",\"hardwareVersion\":\"ulnxdmnit\",\"memoryCapacityGB\":7153993027316867734,\"model\":\"vm\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":9170293239268750189,\"vendor\":\"hmjpdd\"},\"rackSlot\":4887935228971472703},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1391759677432765278,\"cpuSockets\":5859163145308729080,\"disks\":[{},{},{}],\"generation\":\"rb\",\"hardwareVersion\":\"vnmdyfoeboj\",\"memoryCapacityGB\":1712887140024927262,\"model\":\"laohoqkp\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":8975384716451531599,\"vendor\":\"aywkdcwmqsyril\"},\"rackSlot\":4916420758463812143},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2668410258268015115,\"cpuSockets\":9105198942584777690,\"disks\":[{},{}],\"generation\":\"pjvlywltmfwo\",\"hardwareVersion\":\"jw\",\"memoryCapacityGB\":8092831001739180785,\"model\":\"fnqzocr\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":5466782004694588483,\"vendor\":\"ntgxdncaqttie\"},\"rackSlot\":898720806881744509},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":5365319943747419602,\"cpuSockets\":2341521604116230972,\"disks\":[{},{}],\"generation\":\"rihl\",\"hardwareVersion\":\"gbehlqtxnr\",\"memoryCapacityGB\":3359334541259238748,\"model\":\"rndpgfjodhdaqotw\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":5671639836096350098,\"vendor\":\"sabvcip\"},\"rackSlot\":4295475425882126275}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":8029274061738843914,\"cpuSockets\":3066581275680046584,\"disks\":[{},{}],\"generation\":\"fycd\",\"hardwareVersion\":\"ititjnsxza\",\"memoryCapacityGB\":2412450494903973562,\"model\":\"hwjuyxxbxqvmvua\",\"networkInterfaces\":[{}],\"totalThreads\":2506282520754540951,\"vendor\":\"xeqbwp\"},\"rackSlot\":4830044105671850632},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":7718083308011624626,\"cpuSockets\":3610824562956585519,\"disks\":[{},{},{},{}],\"generation\":\"u\",\"hardwareVersion\":\"zladltxkpbq\",\"memoryCapacityGB\":3216403021820124598,\"model\":\"qjwkrhwz\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":8460229893949881794,\"vendor\":\"gglmvoka\"},\"rackSlot\":4846544570194172966},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":7834682716691474423,\"cpuSockets\":1959569751739607426,\"disks\":[{},{},{},{}],\"generation\":\"xsmzygdf\",\"hardwareVersion\":\"kwseivmakxhyso\",\"memoryCapacityGB\":6564199153915955059,\"model\":\"lkbectvtfjmskd\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":4242661988090883660,\"vendor\":\"avlzwpvgmfalkz\"},\"rackSlot\":3753007374917287428}],\"description\":\"kedgj\",\"maxClusterSlots\":8156948302704192486,\"provisioningState\":\"Succeeded\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":4159859572579531882,\"model\":\"twpqrtva\"},\"rackSlot\":6309926613546163791},{\"properties\":{\"capacityGB\":3750355652175573402,\"model\":\"zeagmceituuge\"},\"rackSlot\":766874447070999275}],\"supportedRackSkuIds\":[\"tlzm\",\"lsyj\"]},\"id\":\"olctae\",\"name\":\"fsyrledjc\",\"type\":\"stbvtqig\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - RackSku response = manager.rackSkus().getWithResponse("njhx", com.azure.core.util.Context.NONE).getValue(); + RackSku response = manager.rackSkus().getWithResponse("uwj", com.azure.core.util.Context.NONE).getValue(); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.java index 6fb30fc6568f1..6c183c274bcb5 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RackSkusListMockTests.java @@ -6,49 +6,31 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.RackSku; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class RackSkusListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":7899187593736500473,\"cpuSockets\":2472932704518208750,\"disks\":[{},{},{}],\"generation\":\"ecywn\",\"hardwareVersion\":\"szzacz\",\"memoryCapacityGB\":2399079207304654323,\"model\":\"dnddbbozsyv\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":5513829393654093204,\"vendor\":\"trchwudlxe\"},\"rackSlot\":2296064641407033062},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4249319475420552676,\"cpuSockets\":4410437447478767360,\"disks\":[{},{}],\"generation\":\"ibzoyrfgxky\",\"hardwareVersion\":\"mypgfqvmty\",\"memoryCapacityGB\":3061832475532554630,\"model\":\"xpejpewpy\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":2407253522183888885,\"vendor\":\"qcrzgeuqxbpia\"},\"rackSlot\":2776580464611090211},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2401268575523146604,\"cpuSockets\":3102834466922608032,\"disks\":[{},{},{},{}],\"generation\":\"gddhjkrukizyhgs\",\"hardwareVersion\":\"nqskt\",\"memoryCapacityGB\":461686753657515598,\"model\":\"bqggw\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":2878580061583556758,\"vendor\":\"mnc\"},\"rackSlot\":260347597317461467},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":8125245144598628019,\"cpuSockets\":3679522835781327513,\"disks\":[{},{},{},{}],\"generation\":\"fbklciichgjsysmv\",\"hardwareVersion\":\"dgwxfkzsifcu\",\"memoryCapacityGB\":18205778214259206,\"model\":\"gcwx\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":7239370948456879698,\"vendor\":\"trdxri\"},\"rackSlot\":4189443814754627529}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1996191111270755156,\"cpuSockets\":2775369867474330875,\"disks\":[{},{},{},{}],\"generation\":\"wabzr\",\"hardwareVersion\":\"qrxhaclcdos\",\"memoryCapacityGB\":3840669537187244582,\"model\":\"qgki\",\"networkInterfaces\":[{},{}],\"totalThreads\":6775598916225355752,\"vendor\":\"hedxkpbqwuntob\"},\"rackSlot\":1108879643563906326},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":612372614461236984,\"cpuSockets\":2506687737827198248,\"disks\":[{}],\"generation\":\"bnklblaxpe\",\"hardwareVersion\":\"wdabalfdxaglzfyt\",\"memoryCapacityGB\":4234894609392491702,\"model\":\"h\",\"networkInterfaces\":[{},{}],\"totalThreads\":5088240560390516905,\"vendor\":\"rsifliky\"},\"rackSlot\":2382272717340547027},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":2998066280737548786,\"cpuSockets\":6957594493659612287,\"disks\":[{}],\"generation\":\"pokszanmhwgpt\",\"hardwareVersion\":\"diuwki\",\"memoryCapacityGB\":3344881963530772349,\"model\":\"ztsdetjygow\",\"networkInterfaces\":[{}],\"totalThreads\":5250341077120317307,\"vendor\":\"zkgysdgzyybzoxlv\"},\"rackSlot\":2421052300425849743},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4071889681272542194,\"cpuSockets\":9050228883720331469,\"disks\":[{},{}],\"generation\":\"wzghjhjv\",\"hardwareVersion\":\"bzzbwayb\",\"memoryCapacityGB\":903770024533184602,\"model\":\"bgymqt\",\"networkInterfaces\":[{},{},{},{}],\"totalThreads\":7638793545242651201,\"vendor\":\"xrjnbsconxav\"},\"rackSlot\":1746170521265492922}],\"description\":\"chbj\",\"maxClusterSlots\":2271950388364112908,\"provisioningState\":\"Succeeded\",\"rackType\":\"Single\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":2436662198497647042,\"model\":\"l\"},\"rackSlot\":4126611531030666770}],\"supportedRackSkuIds\":[\"ipmlnfyzavf\"]},\"id\":\"ypi\",\"name\":\"dbkp\",\"type\":\"jtaqhsmqazpdg\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"properties\":{\"computeMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":4447584205030241350,\"cpuSockets\":8400553503584817648,\"disks\":[{},{}],\"generation\":\"fbcpaqktkrumzu\",\"hardwareVersion\":\"kyzbfvxovqkxiux\",\"memoryCapacityGB\":3898839867810665296,\"model\":\"r\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":5111061650661934202,\"vendor\":\"j\"},\"rackSlot\":3529609816658157113},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":252470490725581030,\"cpuSockets\":1020368857816332436,\"disks\":[{},{}],\"generation\":\"peuqlsdxeqztvxwm\",\"hardwareVersion\":\"mjswenawwamecle\",\"memoryCapacityGB\":7889615004017663344,\"model\":\"ndhzyoeojh\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":419638915472834751,\"vendor\":\"idmytzln\"},\"rackSlot\":3612129698740546682},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":5364304877177881109,\"cpuSockets\":1190636804378021682,\"disks\":[{},{},{},{}],\"generation\":\"qagywvtxig\",\"hardwareVersion\":\"rktpgaeu\",\"memoryCapacityGB\":7037523579524480136,\"model\":\"hpmwhqnucsk\",\"networkInterfaces\":[{},{}],\"totalThreads\":1929910213223359934,\"vendor\":\"tdlpbn\"},\"rackSlot\":5256685083551946475},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1725865742600423630,\"cpuSockets\":4463353598628976338,\"disks\":[{},{},{}],\"generation\":\"eedwjccik\",\"hardwareVersion\":\"syekrdrenxol\",\"memoryCapacityGB\":7163548671113747724,\"model\":\"qbeiv\",\"networkInterfaces\":[{},{},{}],\"totalThreads\":404736553810911578,\"vendor\":\"dbfgrlp\"},\"rackSlot\":4865507495234910412}],\"controllerMachines\":[{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1632345465424234568,\"cpuSockets\":3094184412082080082,\"disks\":[{},{},{}],\"generation\":\"ah\",\"hardwareVersion\":\"an\",\"memoryCapacityGB\":5051562653156994764,\"model\":\"bvgwzsff\",\"networkInterfaces\":[{},{}],\"totalThreads\":2240206997813754764,\"vendor\":\"ktjtgra\"},\"rackSlot\":8990018598728079093},{\"properties\":{\"bootstrapProtocol\":\"PXE\",\"cpuCores\":1888260015025911012,\"cpuSockets\":902044973101727713,\"disks\":[{},{}],\"generation\":\"txxwpfh\",\"hardwareVersion\":\"zudrtpzk\",\"memoryCapacityGB\":5509117550074125109,\"model\":\"ywhczzq\",\"networkInterfaces\":[{},{}],\"totalThreads\":9153821152021789996,\"vendor\":\"edygisrzwnykdi\"},\"rackSlot\":2347230216812317496}],\"description\":\"rmpwctofld\",\"maxClusterSlots\":1576220923773173717,\"provisioningState\":\"Canceled\",\"rackType\":\"Aggregator\",\"storageAppliances\":[{\"properties\":{\"capacityGB\":1294853518041934738,\"model\":\"rwjiyew\"},\"rackSlot\":1774410443251418310},{\"properties\":{\"capacityGB\":2375531653636204708,\"model\":\"etfgcwvrrmdqntyc\"},\"rackSlot\":3858359410262703624},{\"properties\":{\"capacityGB\":8823202937724335004,\"model\":\"gnuyeamcmhu\"},\"rackSlot\":457361942179826962}],\"supportedRackSkuIds\":[\"h\"]},\"id\":\"wcpqtwl\",\"name\":\"esq\",\"type\":\"ggvrbnyrukoilaci\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response = manager.rackSkus().list(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.java index 2b09842d1dfd4..aa688ad90a8d3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksCreateOrUpdateMockTests.java @@ -6,73 +6,53 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.Rack; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class RacksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"gsmgb\",\"type\":\"mt\"},\"properties\":{\"availabilityZone\":\"wrqbebjnfv\",\"clusterId\":\"labt\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"wznhtfgfic\",\"provisioningState\":\"Succeeded\",\"rackLocation\":\"hizpaczmuh\",\"rackSerialNumber\":\"cakznhokhoitwhrj\",\"rackSkuId\":\"dmmazdnc\"},\"location\":\"dbjp\",\"tags\":{\"fhbssdpjeyoqxded\":\"zqpxzbawkikcd\",\"shzz\":\"cfiwhagxsurejq\",\"ll\":\"g\",\"gl\":\"xiqqzjkoxdupna\"},\"id\":\"ouigdmfivjqte\",\"name\":\"dqqigdydkghpc\",\"type\":\"rwqirvtktyhhmvf\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"pwolgisubxb\",\"type\":\"eogfgfiijrykwl\"},\"properties\":{\"availabilityZone\":\"fksxqce\",\"clusterId\":\"fpxgnmqvz\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"q\",\"provisioningState\":\"Succeeded\",\"rackLocation\":\"ossscyva\",\"rackSerialNumber\":\"fppuacvfye\",\"rackSkuId\":\"w\"},\"location\":\"fxtjdhsoym\",\"tags\":{\"ehdpboujstkfvvds\":\"tyqft\"},\"id\":\"xcdedsu\",\"name\":\"nygnxcgjtfrnquk\",\"type\":\"rf\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); Rack response = manager.racks() - .define("ahfsgb") - .withRegion("tfshksnyzm") - .withExistingResourceGroup("qzusitoq") - .withExtendedLocation(new ExtendedLocation().withName("mlree").withType("rfwss")) - .withAvailabilityZone("vlcwlisolntfxxc") - .withRackLocation("bulnvgskjtoxjdz") - .withRackSerialNumber("sjznvhx") - .withRackSkuId("qmqipaydhfnzoc") - .withTags( - mapOf("iqdktwtkvih", "mwbwmbnlslce", "nguuzhwvla", "pfliwo", "mhjhaus", "p", "ekymffztsilscvqs", "b")) + .define("ptpqayamkn") + .withRegion("xdhilz") + .withExistingResourceGroup("yfejyvdwtf") + .withExtendedLocation(new ExtendedLocation().withName("fgybmxs").withType("xocuullojkpoyhgw")) + .withAvailabilityZone("djuxdbdljzgd") + .withRackLocation("jnqogdxwbsfpyx") + .withRackSerialNumber("tjlflecomi") + .withRackSkuId("xojjl") + .withTags(mapOf("ovribq", "zqjmueza", "qww", "otokhtvwtaznk")) .create(); - Assertions.assertEquals("dbjp", response.location()); - Assertions.assertEquals("zqpxzbawkikcd", response.tags().get("fhbssdpjeyoqxded")); - Assertions.assertEquals("gsmgb", response.extendedLocation().name()); - Assertions.assertEquals("mt", response.extendedLocation().type()); - Assertions.assertEquals("wrqbebjnfv", response.availabilityZone()); - Assertions.assertEquals("hizpaczmuh", response.rackLocation()); - Assertions.assertEquals("cakznhokhoitwhrj", response.rackSerialNumber()); - Assertions.assertEquals("dmmazdnc", response.rackSkuId()); + Assertions.assertEquals("fxtjdhsoym", response.location()); + Assertions.assertEquals("tyqft", response.tags().get("ehdpboujstkfvvds")); + Assertions.assertEquals("pwolgisubxb", response.extendedLocation().name()); + Assertions.assertEquals("eogfgfiijrykwl", response.extendedLocation().type()); + Assertions.assertEquals("fksxqce", response.availabilityZone()); + Assertions.assertEquals("ossscyva", response.rackLocation()); + Assertions.assertEquals("fppuacvfye", response.rackSerialNumber()); + Assertions.assertEquals("w", response.rackSkuId()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteMockTests.java deleted file mode 100644 index 78804dae9d9f7..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class RacksDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.racks().delete("mwt", "g", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java index 76d712484c4d1..8bf57aa58338f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksGetByResourceGroupWithResponseMockTests.java @@ -6,60 +6,41 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.Rack; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class RacksGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"mnnidmdia\",\"type\":\"pzxkzrntmkct\"},\"properties\":{\"availabilityZone\":\"huosgwqpsqaz\",\"clusterId\":\"qodvqgcnbhcbmj\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"bn\",\"provisioningState\":\"Accepted\",\"rackLocation\":\"tsxjmfmeftvhkmoo\",\"rackSerialNumber\":\"jrhskbwgmjgrul\",\"rackSkuId\":\"fogxhcxnw\"},\"location\":\"pfdzxcouzfwofw\",\"tags\":{\"ihezomucmq\":\"kzkdtzxsoednlwg\"},\"id\":\"isnionetbzdrdpue\",\"name\":\"xkgtlzlmtrlxcznn\",\"type\":\"zkbnbmxl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"npd\",\"type\":\"zigjsugswhgsaodk\"},\"properties\":{\"availabilityZone\":\"wnbaf\",\"clusterId\":\"to\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"quvwsxbgn\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"rvqchoadhrsxqvzv\",\"rackSerialNumber\":\"pabdsrg\",\"rackSkuId\":\"ajglzrsubklr\"},\"location\":\"jnltcetjdvqydi\",\"tags\":{\"ruwdxvqzxoebwgj\":\"kw\",\"wtzvpakloz\":\"bibanbau\"},\"id\":\"xbzrpejplssanb\",\"name\":\"ttkgsux\",\"type\":\"nrswgkpjhboyik\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); Rack response = manager.racks() - .getByResourceGroupWithResponse("fpcfjf", "zlgzawkgyepey", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("zp", "admskx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pfdzxcouzfwofw", response.location()); - Assertions.assertEquals("kzkdtzxsoednlwg", response.tags().get("ihezomucmq")); - Assertions.assertEquals("mnnidmdia", response.extendedLocation().name()); - Assertions.assertEquals("pzxkzrntmkct", response.extendedLocation().type()); - Assertions.assertEquals("huosgwqpsqaz", response.availabilityZone()); - Assertions.assertEquals("tsxjmfmeftvhkmoo", response.rackLocation()); - Assertions.assertEquals("jrhskbwgmjgrul", response.rackSerialNumber()); - Assertions.assertEquals("fogxhcxnw", response.rackSkuId()); + Assertions.assertEquals("jnltcetjdvqydi", response.location()); + Assertions.assertEquals("kw", response.tags().get("ruwdxvqzxoebwgj")); + Assertions.assertEquals("npd", response.extendedLocation().name()); + Assertions.assertEquals("zigjsugswhgsaodk", response.extendedLocation().type()); + Assertions.assertEquals("wnbaf", response.availabilityZone()); + Assertions.assertEquals("rvqchoadhrsxqvzv", response.rackLocation()); + Assertions.assertEquals("pabdsrg", response.rackSerialNumber()); + Assertions.assertEquals("ajglzrsubklr", response.rackSkuId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.java index 4e743c1774a23..92ee594ccd05e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListByResourceGroupMockTests.java @@ -6,59 +6,40 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.Rack; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class RacksListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"fbbcngkegxcypxbb\",\"type\":\"etwilyrzoxpd\"},\"properties\":{\"availabilityZone\":\"qlf\",\"clusterId\":\"lqownkiua\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ahwkxjjm\",\"provisioningState\":\"Failed\",\"rackLocation\":\"lmsoodtmve\",\"rackSerialNumber\":\"dhdyswcrptveaj\",\"rackSkuId\":\"zxvlgsrgkrfizrp\"},\"location\":\"lptyuqhr\",\"tags\":{\"npcfyk\":\"skykpfuofix\"},\"id\":\"pyycpawm\",\"name\":\"jp\",\"type\":\"dpwrp\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"dveksbuhoduch\",\"type\":\"lscrdpibfdyjduss\"},\"properties\":{\"availabilityZone\":\"yszekbhwlka\",\"clusterId\":\"gkrehbf\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"bffljfiimreoag\",\"provisioningState\":\"Failed\",\"rackLocation\":\"aadusrexxfa\",\"rackSerialNumber\":\"sqwudohzilfmnli\",\"rackSkuId\":\"psimsf\"},\"location\":\"pofqpmbhy\",\"tags\":{\"erhsmvgohtw\":\"drmmttjxoph\",\"wwmhkruwae\":\"mqilrixysfnimsqy\",\"in\":\"rympmlq\",\"njdiqfliejhpcl\":\"zduewihapfjii\"},\"id\":\"iedfsbwcei\",\"name\":\"bv\",\"type\":\"ipbwxgooo\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.racks().listByResourceGroup("oti", com.azure.core.util.Context.NONE); + PagedIterable response = manager.racks().listByResourceGroup("cu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lptyuqhr", response.iterator().next().location()); - Assertions.assertEquals("skykpfuofix", response.iterator().next().tags().get("npcfyk")); - Assertions.assertEquals("fbbcngkegxcypxbb", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("etwilyrzoxpd", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("qlf", response.iterator().next().availabilityZone()); - Assertions.assertEquals("lmsoodtmve", response.iterator().next().rackLocation()); - Assertions.assertEquals("dhdyswcrptveaj", response.iterator().next().rackSerialNumber()); - Assertions.assertEquals("zxvlgsrgkrfizrp", response.iterator().next().rackSkuId()); + Assertions.assertEquals("pofqpmbhy", response.iterator().next().location()); + Assertions.assertEquals("drmmttjxoph", response.iterator().next().tags().get("erhsmvgohtw")); + Assertions.assertEquals("dveksbuhoduch", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("lscrdpibfdyjduss", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("yszekbhwlka", response.iterator().next().availabilityZone()); + Assertions.assertEquals("aadusrexxfa", response.iterator().next().rackLocation()); + Assertions.assertEquals("sqwudohzilfmnli", response.iterator().next().rackSerialNumber()); + Assertions.assertEquals("psimsf", response.iterator().next().rackSkuId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.java index f4576447d67cf..dfbb9ce77e5d3 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksListMockTests.java @@ -6,45 +6,26 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.Rack; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class RacksListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"ukhk\",\"type\":\"cqx\"},\"properties\":{\"availabilityZone\":\"cbvzarmqcb\",\"clusterId\":\"kst\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"agovjy\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"xbrdvcehqwh\",\"rackSerialNumber\":\"txnmxgnmguz\",\"rackSkuId\":\"uwvorbalkjn\"},\"location\":\"bdhlltq\",\"tags\":{\"xiynecovagzk\":\"kqsy\",\"qiawzl\":\"eubanlxunpqcc\",\"izuxlrarwpewsaud\":\"klaslga\",\"sx\":\"ejtig\"},\"id\":\"pytn\",\"name\":\"qbalahovuuwxhme\",\"type\":\"jnhj\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"xzvsgeafgf\",\"type\":\"sehxlzsxezp\"},\"properties\":{\"availabilityZone\":\"kkwa\",\"clusterId\":\"skyfjlpzeqto\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"ixlajmllpquevham\",\"provisioningState\":\"Provisioning\",\"rackLocation\":\"gwb\",\"rackSerialNumber\":\"mkekxpkzwaqxo\",\"rackSkuId\":\"qovchiqbp\"},\"location\":\"fidusztekxbyjgm\",\"tags\":{\"rdi\":\"pxyihpqadagr\"},\"id\":\"x\",\"name\":\"wyjfowxwyovcxjs\",\"type\":\"bi\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -52,13 +33,13 @@ public void testList() throws Exception { PagedIterable response = manager.racks().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("bdhlltq", response.iterator().next().location()); - Assertions.assertEquals("kqsy", response.iterator().next().tags().get("xiynecovagzk")); - Assertions.assertEquals("ukhk", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("cqx", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals("cbvzarmqcb", response.iterator().next().availabilityZone()); - Assertions.assertEquals("xbrdvcehqwh", response.iterator().next().rackLocation()); - Assertions.assertEquals("txnmxgnmguz", response.iterator().next().rackSerialNumber()); - Assertions.assertEquals("uwvorbalkjn", response.iterator().next().rackSkuId()); + Assertions.assertEquals("fidusztekxbyjgm", response.iterator().next().location()); + Assertions.assertEquals("pxyihpqadagr", response.iterator().next().tags().get("rdi")); + Assertions.assertEquals("xzvsgeafgf", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("sehxlzsxezp", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals("kkwa", response.iterator().next().availabilityZone()); + Assertions.assertEquals("gwb", response.iterator().next().rackLocation()); + Assertions.assertEquals("mkekxpkzwaqxo", response.iterator().next().rackSerialNumber()); + Assertions.assertEquals("qovchiqbp", response.iterator().next().rackSkuId()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.java index 8a4191dc7989e..a6a420b1cf96e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RacksPatchPropertiesTests.java @@ -11,19 +11,17 @@ public final class RacksPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RacksPatchProperties model - = BinaryData.fromString("{\"rackLocation\":\"icphvtrrmhw\",\"rackSerialNumber\":\"fdpyflubh\"}") - .toObject(RacksPatchProperties.class); - Assertions.assertEquals("icphvtrrmhw", model.rackLocation()); - Assertions.assertEquals("fdpyflubh", model.rackSerialNumber()); + RacksPatchProperties model = BinaryData.fromString("{\"rackLocation\":\"k\",\"rackSerialNumber\":\"ve\"}") + .toObject(RacksPatchProperties.class); + Assertions.assertEquals("k", model.rackLocation()); + Assertions.assertEquals("ve", model.rackSerialNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RacksPatchProperties model - = new RacksPatchProperties().withRackLocation("icphvtrrmhw").withRackSerialNumber("fdpyflubh"); + RacksPatchProperties model = new RacksPatchProperties().withRackLocation("k").withRackSerialNumber("ve"); model = BinaryData.fromObject(model).toObject(RacksPatchProperties.class); - Assertions.assertEquals("icphvtrrmhw", model.rackLocation()); - Assertions.assertEquals("fdpyflubh", model.rackSerialNumber()); + Assertions.assertEquals("k", model.rackLocation()); + Assertions.assertEquals("ve", model.rackSerialNumber()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.java new file mode 100644 index 0000000000000..4190a00d1e141 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionConfigurationTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionEnforcementLevel; +import org.junit.jupiter.api.Assertions; + +public final class RuntimeProtectionConfigurationTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RuntimeProtectionConfiguration model = BinaryData.fromString("{\"enforcementLevel\":\"Disabled\"}") + .toObject(RuntimeProtectionConfiguration.class); + Assertions.assertEquals(RuntimeProtectionEnforcementLevel.DISABLED, model.enforcementLevel()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RuntimeProtectionConfiguration model + = new RuntimeProtectionConfiguration().withEnforcementLevel(RuntimeProtectionEnforcementLevel.DISABLED); + model = BinaryData.fromObject(model).toObject(RuntimeProtectionConfiguration.class); + Assertions.assertEquals(RuntimeProtectionEnforcementLevel.DISABLED, model.enforcementLevel()); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.java new file mode 100644 index 0000000000000..d06626b8d0523 --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/RuntimeProtectionStatusTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionStatus; + +public final class RuntimeProtectionStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RuntimeProtectionStatus model = BinaryData.fromString( + "{\"definitionsLastUpdated\":\"2021-11-03T18:10:18Z\",\"definitionsVersion\":\"pnddhsgcbacphejk\",\"scanCompletedTime\":\"2021-06-08T17:38:25Z\",\"scanScheduledTime\":\"2021-05-11T13:05:51Z\",\"scanStartedTime\":\"2021-02-05T05:14:14Z\"}") + .toObject(RuntimeProtectionStatus.class); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RuntimeProtectionStatus model = new RuntimeProtectionStatus(); + model = BinaryData.fromObject(model).toObject(RuntimeProtectionStatus.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.java index 0db4ce7658407..c45890060be53 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceEnableRemoteVendorManagementParametersTests.java @@ -13,16 +13,17 @@ public final class StorageApplianceEnableRemoteVendorManagementParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StorageApplianceEnableRemoteVendorManagementParameters model - = BinaryData.fromString("{\"supportEndpoints\":[\"fb\"]}") + = BinaryData.fromString("{\"supportEndpoints\":[\"sggux\",\"eml\",\"ywaeeczgf\"]}") .toObject(StorageApplianceEnableRemoteVendorManagementParameters.class); - Assertions.assertEquals("fb", model.supportEndpoints().get(0)); + Assertions.assertEquals("sggux", model.supportEndpoints().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { StorageApplianceEnableRemoteVendorManagementParameters model - = new StorageApplianceEnableRemoteVendorManagementParameters().withSupportEndpoints(Arrays.asList("fb")); + = new StorageApplianceEnableRemoteVendorManagementParameters() + .withSupportEndpoints(Arrays.asList("sggux", "eml", "ywaeeczgf")); model = BinaryData.fromObject(model).toObject(StorageApplianceEnableRemoteVendorManagementParameters.class); - Assertions.assertEquals("fb", model.supportEndpoints().get(0)); + Assertions.assertEquals("sggux", model.supportEndpoints().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.java index 9ab42e011fd02..9d1f5fbe27dc6 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchParametersTests.java @@ -13,21 +13,22 @@ public final class StorageAppliancePatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - StorageAppliancePatchParameters model = BinaryData.fromString( - "{\"properties\":{\"serialNumber\":\"lrocuyzlwh\"},\"tags\":{\"tnpqmemczjk\":\"mhoocl\",\"rryejylmbkzudnig\":\"mykyujxsglhs\",\"wlpxuzzjg\":\"fihotj\"}}") + StorageAppliancePatchParameters model = BinaryData + .fromString( + "{\"properties\":{\"serialNumber\":\"dvlvhbwrnfxtgdd\"},\"tags\":{\"kcoeqswank\":\"hehnmnaoya\"}}") .toObject(StorageAppliancePatchParameters.class); - Assertions.assertEquals("mhoocl", model.tags().get("tnpqmemczjk")); - Assertions.assertEquals("lrocuyzlwh", model.serialNumber()); + Assertions.assertEquals("hehnmnaoya", model.tags().get("kcoeqswank")); + Assertions.assertEquals("dvlvhbwrnfxtgdd", model.serialNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - StorageAppliancePatchParameters model = new StorageAppliancePatchParameters() - .withTags(mapOf("tnpqmemczjk", "mhoocl", "rryejylmbkzudnig", "mykyujxsglhs", "wlpxuzzjg", "fihotj")) - .withSerialNumber("lrocuyzlwh"); + StorageAppliancePatchParameters model + = new StorageAppliancePatchParameters().withTags(mapOf("kcoeqswank", "hehnmnaoya")) + .withSerialNumber("dvlvhbwrnfxtgdd"); model = BinaryData.fromObject(model).toObject(StorageAppliancePatchParameters.class); - Assertions.assertEquals("mhoocl", model.tags().get("tnpqmemczjk")); - Assertions.assertEquals("lrocuyzlwh", model.serialNumber()); + Assertions.assertEquals("hehnmnaoya", model.tags().get("kcoeqswank")); + Assertions.assertEquals("dvlvhbwrnfxtgdd", model.serialNumber()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.java index d577edd9d9b97..6dac1e95e6a7e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancePatchPropertiesTests.java @@ -11,16 +11,16 @@ public final class StorageAppliancePatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - StorageAppliancePatchProperties model = BinaryData.fromString("{\"serialNumber\":\"efqyhqotoihiqaky\"}") + StorageAppliancePatchProperties model = BinaryData.fromString("{\"serialNumber\":\"ytmhdroznnhdrlkt\"}") .toObject(StorageAppliancePatchProperties.class); - Assertions.assertEquals("efqyhqotoihiqaky", model.serialNumber()); + Assertions.assertEquals("ytmhdroznnhdrlkt", model.serialNumber()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { StorageAppliancePatchProperties model - = new StorageAppliancePatchProperties().withSerialNumber("efqyhqotoihiqaky"); + = new StorageAppliancePatchProperties().withSerialNumber("ytmhdroznnhdrlkt"); model = BinaryData.fromObject(model).toObject(StorageAppliancePatchProperties.class); - Assertions.assertEquals("efqyhqotoihiqaky", model.serialNumber()); + Assertions.assertEquals("ytmhdroznnhdrlkt", model.serialNumber()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.java index 7c51a73e2bb4e..a465a093e0091 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuPropertiesTests.java @@ -11,7 +11,7 @@ public final class StorageApplianceSkuPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StorageApplianceSkuProperties model - = BinaryData.fromString("{\"capacityGB\":6206470742211540343,\"model\":\"geivsiykzkdncj\"}") + = BinaryData.fromString("{\"capacityGB\":1211550739035183737,\"model\":\"cwkhihi\"}") .toObject(StorageApplianceSkuProperties.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.java index 83f4032a58d1f..33045b5e36d9f 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageApplianceSkuSlotTests.java @@ -11,7 +11,7 @@ public final class StorageApplianceSkuSlotTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StorageApplianceSkuSlot model = BinaryData.fromString( - "{\"properties\":{\"capacityGB\":2711375117878963664,\"model\":\"djvlpj\"},\"rackSlot\":4808904277032773928}") + "{\"properties\":{\"capacityGB\":2261435778916561512,\"model\":\"eypefojyqd\"},\"rackSlot\":941187367545225864}") .toObject(StorageApplianceSkuSlot.class); } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteMockTests.java deleted file mode 100644 index ce02ae3b5ec3e..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageAppliancesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.storageAppliances().delete("ysc", "ey", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementMockTests.java deleted file mode 100644 index 645b6208aeda5..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesDisableRemoteVendorManagementMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageAppliancesDisableRemoteVendorManagementMockTests { - @Test - public void testDisableRemoteVendorManagement() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"vmi\",\"resourceId\":\"beaeq\",\"name\":\"mhkdclacroczfm\",\"status\":\"ner\",\"percentComplete\":92.16802,\"startTime\":\"2021-10-24T05:01:58Z\",\"endTime\":\"2021-11-25T04:20:11Z\",\"operations\":[{\"id\":\"ezbzu\",\"resourceId\":\"dlevzskejcgw\",\"name\":\"gqkstyecupyu\",\"status\":\"jparda\",\"percentComplete\":63.3447,\"startTime\":\"2021-09-07T03:41:26Z\",\"endTime\":\"2021-11-22T19:52:24Z\",\"operations\":[{\"id\":\"dqwuzvcm\",\"resourceId\":\"kxizek\",\"name\":\"frjwucaon\",\"status\":\"vajbvbnkrdemdid\",\"percentComplete\":59.99933,\"startTime\":\"2021-06-16T22:26:17Z\",\"endTime\":\"2021-02-15T15:27:55Z\",\"operations\":[{\"status\":\"dydamisvpztdivy\"},{\"status\":\"pxkqejtpjfojiunr\"},{\"status\":\"shxuknsykdtoi\"}]},{\"id\":\"ncdrcoanvxuldx\",\"resourceId\":\"c\",\"name\":\"nlb\",\"status\":\"fxlupibaq\",\"percentComplete\":50.182266,\"startTime\":\"2021-01-26T00:12:57Z\",\"endTime\":\"2021-07-13T09:24:59Z\",\"operations\":[{\"status\":\"ghlww\"},{\"status\":\"ogvgfklqiyn\"}]}]},{\"id\":\"elsbfvd\",\"resourceId\":\"rk\",\"name\":\"sgt\",\"status\":\"ns\",\"percentComplete\":17.492521,\"startTime\":\"2021-08-11T16:04:23Z\",\"endTime\":\"2021-02-14T08:51:36Z\",\"operations\":[{\"id\":\"myndnox\",\"resourceId\":\"nrqa\",\"name\":\"tnndxolousdvr\",\"status\":\"ptqmawzjdrpiz\",\"percentComplete\":2.5345922,\"startTime\":\"2021-11-04T23:11:12Z\",\"endTime\":\"2021-08-29T08:53:42Z\",\"operations\":[{\"status\":\"btqgkujdsoox\"},{\"status\":\"qwoeurbtigapd\"},{\"status\":\"arikeejdpdfhtwmm\"}]},{\"id\":\"bri\",\"resourceId\":\"lwwtr\",\"name\":\"eqkvyhzokpoyu\",\"status\":\"h\",\"percentComplete\":58.077705,\"startTime\":\"2021-04-30T20:52:44Z\",\"endTime\":\"2020-12-26T02:06:50Z\",\"operations\":[{\"status\":\"hmpoe\"},{\"status\":\"nglpwsada\"},{\"status\":\"jsumxpezcoio\"},{\"status\":\"jrmfqzwqd\"}]},{\"id\":\"eedcnwmywx\",\"resourceId\":\"zkvemy\",\"name\":\"pczaqpqif\",\"status\":\"bmptrwtxzu\",\"percentComplete\":62.856464,\"startTime\":\"2021-07-31T07:19:02Z\",\"endTime\":\"2021-01-26T13:56:03Z\",\"operations\":[{\"status\":\"izexroqsqj\"}]}]},{\"id\":\"thsplwsttxsr\",\"resourceId\":\"fq\",\"name\":\"niceovxgzwh\",\"status\":\"xyrujmt\",\"percentComplete\":89.48731,\"startTime\":\"2021-06-11T17:18:42Z\",\"endTime\":\"2021-05-01T14:01Z\",\"operations\":[{\"id\":\"zix\",\"resourceId\":\"hfnkvycqqqds\",\"name\":\"pnq\",\"status\":\"wzxhrptyodlhkf\",\"percentComplete\":83.21142,\"startTime\":\"2021-11-27T23:25:35Z\",\"endTime\":\"2021-08-03T01:08:41Z\",\"operations\":[{\"status\":\"jopnouhbqezk\"}]},{\"id\":\"aluzyi\",\"resourceId\":\"cvcewb\",\"name\":\"hdgsjsatm\",\"status\":\"ncmazdf\",\"percentComplete\":32.84828,\"startTime\":\"2021-06-20T07:17:13Z\",\"endTime\":\"2021-10-28T00:47:24Z\",\"operations\":[{\"status\":\"jparnpvgrszrbwt\"},{\"status\":\"rcwgzwllxzlhhf\"}]},{\"id\":\"cfculzj\",\"resourceId\":\"hp\",\"name\":\"wvyldqpzf\",\"status\":\"xsoxi\",\"percentComplete\":12.493217,\"startTime\":\"2021-04-15T23:14:57Z\",\"endTime\":\"2021-06-21T12:55:01Z\",\"operations\":[{\"status\":\"ocqsxy\"},{\"status\":\"qqt\"}]},{\"id\":\"wdwisvn\",\"resourceId\":\"ylajam\",\"name\":\"jyh\",\"status\":\"tpzcr\",\"percentComplete\":14.158112,\"startTime\":\"2021-06-03T15:20:33Z\",\"endTime\":\"2021-07-06T10:55:20Z\",\"operations\":[{\"status\":\"anhkigglclwalh\"},{\"status\":\"ubhg\"}]}]},{\"id\":\"txdqcmy\",\"resourceId\":\"ajqzj\",\"name\":\"lecxbibiwks\",\"status\":\"egyxsbfpzvoik\",\"percentComplete\":29.30662,\"startTime\":\"2021-05-16T11:22:24Z\",\"endTime\":\"2021-05-05T07:36:45Z\",\"operations\":[{\"id\":\"shl\",\"resourceId\":\"pblalhhez\",\"name\":\"kissaidqzsaa\",\"status\":\"qdsgptotxj\",\"percentComplete\":12.192118,\"startTime\":\"2021-09-09T22:28:04Z\",\"endTime\":\"2021-06-09T19:51:50Z\",\"operations\":[{\"status\":\"tbfijz\"}]},{\"id\":\"o\",\"resourceId\":\"olbuauktwieope\",\"name\":\"lxqdwr\",\"status\":\"wyil\",\"percentComplete\":59.643085,\"startTime\":\"2021-11-28T03:24:57Z\",\"endTime\":\"2021-05-31T05:16:20Z\",\"operations\":[{\"status\":\"yauxr\"},{\"status\":\"ddobmcnltmwyt\"}]},{\"id\":\"sqycmmoxfablqg\",\"resourceId\":\"bmwhrialiwr\",\"name\":\"gnwplrrb\",\"status\":\"hctsbbibti\",\"percentComplete\":58.901154,\"startTime\":\"2021-08-07T10:14:04Z\",\"endTime\":\"2021-08-27T04:29:56Z\",\"operations\":[{\"status\":\"bfs\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.storageAppliances() - .disableRemoteVendorManagement("zjemexmnvkvm", "wrxlniwmcpmrrdlh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("vmi", response.id()); - Assertions.assertEquals("mhkdclacroczfm", response.name()); - Assertions.assertEquals("ner", response.status()); - Assertions.assertEquals(92.16802F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-24T05:01:58Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-25T04:20:11Z"), response.endTime()); - Assertions.assertEquals("ezbzu", response.operations().get(0).id()); - Assertions.assertEquals("gqkstyecupyu", response.operations().get(0).name()); - Assertions.assertEquals("jparda", response.operations().get(0).status()); - Assertions.assertEquals(63.3447F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T03:41:26Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-22T19:52:24Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("dqwuzvcm", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("frjwucaon", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("vajbvbnkrdemdid", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(59.99933F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-16T22:26:17Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-15T15:27:55Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("dydamisvpztdivy", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementMockTests.java deleted file mode 100644 index 9652418da209b..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageAppliancesEnableRemoteVendorManagementMockTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import com.azure.resourcemanager.networkcloud.models.StorageApplianceEnableRemoteVendorManagementParameters; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class StorageAppliancesEnableRemoteVendorManagementMockTests { - @Test - public void testEnableRemoteVendorManagement() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"cmvouujxdiikmoxr\",\"resourceId\":\"svavlrxikjmoy\",\"name\":\"unpip\",\"status\":\"wybsz\",\"percentComplete\":45.25683,\"startTime\":\"2021-07-17T11:00:27Z\",\"endTime\":\"2021-07-24T01:28:12Z\",\"operations\":[{\"id\":\"saebwfwhxorpwal\",\"resourceId\":\"wugexojfccyl\",\"name\":\"rh\",\"status\":\"hvazjpwexcdr\",\"percentComplete\":98.35904,\"startTime\":\"2020-12-25T07:30:14Z\",\"endTime\":\"2021-04-22T07:08:27Z\",\"operations\":[{\"id\":\"mn\",\"resourceId\":\"jgpjeuxs\",\"name\":\"lokfpmijpdvzv\",\"status\":\"bhwbdqufvcgnrgla\",\"percentComplete\":46.64172,\"startTime\":\"2021-02-16T19:16:30Z\",\"endTime\":\"2021-07-03T16:35:54Z\",\"operations\":[{\"status\":\"afebzxfkjq\"},{\"status\":\"tibhlennt\"}]},{\"id\":\"k\",\"resourceId\":\"abdu\",\"name\":\"zmlghny\",\"status\":\"v\",\"percentComplete\":29.506672,\"startTime\":\"2021-03-08T04:49:44Z\",\"endTime\":\"2021-10-08T06:38:04Z\",\"operations\":[{\"status\":\"dixqbo\"},{\"status\":\"xvhhyqq\"},{\"status\":\"gatxgrznmginmtsd\"}]},{\"id\":\"hwkibmgjymn\",\"resourceId\":\"cag\",\"name\":\"rwcqzo\",\"status\":\"fjnqjsvepf\",\"percentComplete\":28.686773,\"startTime\":\"2021-10-14T06:29:09Z\",\"endTime\":\"2021-08-28T18:55:34Z\",\"operations\":[{\"status\":\"ljekn\"},{\"status\":\"qnwjjq\"},{\"status\":\"owkdnjr\"},{\"status\":\"gkr\"}]},{\"id\":\"ehycpn\",\"resourceId\":\"awonoehrguqlhfw\",\"name\":\"bjzm\",\"status\":\"yrguyfazbk\",\"percentComplete\":54.576153,\"startTime\":\"2021-07-30T06:19:12Z\",\"endTime\":\"2021-01-11T00:43:15Z\",\"operations\":[{\"status\":\"mxkbcjwwdxomra\"},{\"status\":\"ppkeboozflyacag\"},{\"status\":\"eda\"},{\"status\":\"i\"}]}]},{\"id\":\"gdtwgabd\",\"resourceId\":\"kuz\",\"name\":\"jecooyvhtu\",\"status\":\"bpelniibncgagd\",\"percentComplete\":12.446653,\"startTime\":\"2021-10-11T20:24:34Z\",\"endTime\":\"2021-02-10T14:42:39Z\",\"operations\":[{\"id\":\"yfaofdf\",\"resourceId\":\"tncwmhjobzrfpr\",\"name\":\"dc\",\"status\":\"h\",\"percentComplete\":62.696774,\"startTime\":\"2021-02-13T09:54:56Z\",\"endTime\":\"2021-01-18T02:03:23Z\",\"operations\":[{\"status\":\"whgkgsoa\"},{\"status\":\"oorssatfy\"},{\"status\":\"ipufdmxuqbdq\"}]}]},{\"id\":\"tuxvzfqayopbt\",\"resourceId\":\"xhgvbhxmndztgsq\",\"name\":\"yqmarxneib\",\"status\":\"gbrhbjd\",\"percentComplete\":11.403805,\"startTime\":\"2021-12-08T10:08:51Z\",\"endTime\":\"2021-02-23T12:33:43Z\",\"operations\":[{\"id\":\"uwnnohmmzngoc\",\"resourceId\":\"juypwyiulaynosu\",\"name\":\"fhaxttpf\",\"status\":\"mwgsghq\",\"percentComplete\":76.55331,\"startTime\":\"2021-08-23T21:38:48Z\",\"endTime\":\"2021-07-11T09:50:13Z\",\"operations\":[{\"status\":\"qm\"},{\"status\":\"lfeothxuarigr\"},{\"status\":\"dlj\"}]},{\"id\":\"hvkr\",\"resourceId\":\"kuastaxklpr\",\"name\":\"l\",\"status\":\"gltoizwxvscksgf\",\"percentComplete\":68.861595,\"startTime\":\"2021-12-05T19:00:36Z\",\"endTime\":\"2021-10-07T14:16:16Z\",\"operations\":[{\"status\":\"fxcz\"},{\"status\":\"fcck\"}]},{\"id\":\"wletyveszrtlhpdh\",\"resourceId\":\"nctaczcn\",\"name\":\"mbbfnv\",\"status\":\"x\",\"percentComplete\":74.21378,\"startTime\":\"2021-12-03T14:45:06Z\",\"endTime\":\"2021-06-06T06:14:19Z\",\"operations\":[{\"status\":\"iklsmni\"},{\"status\":\"qlcoqksyiibhyx\"}]},{\"id\":\"bu\",\"resourceId\":\"vqdorbccqcd\",\"name\":\"hojvlirkn\",\"status\":\"c\",\"percentComplete\":28.408623,\"startTime\":\"2021-02-03T12:43:50Z\",\"endTime\":\"2021-10-15T07:18:41Z\",\"operations\":[{\"status\":\"gzlgpyaixihz\"},{\"status\":\"jjtsm\"},{\"status\":\"ydqfttkacy\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.storageAppliances() - .enableRemoteVendorManagement("bewfcuqfpyyxm", "rmtmvwi", - new StorageApplianceEnableRemoteVendorManagementParameters() - .withSupportEndpoints(Arrays.asList("eyyjshcybwfuppox")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("cmvouujxdiikmoxr", response.id()); - Assertions.assertEquals("unpip", response.name()); - Assertions.assertEquals("wybsz", response.status()); - Assertions.assertEquals(45.25683F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-17T11:00:27Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-24T01:28:12Z"), response.endTime()); - Assertions.assertEquals("saebwfwhxorpwal", response.operations().get(0).id()); - Assertions.assertEquals("rh", response.operations().get(0).name()); - Assertions.assertEquals("hvazjpwexcdr", response.operations().get(0).status()); - Assertions.assertEquals(98.35904F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T07:30:14Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-22T07:08:27Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("mn", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("lokfpmijpdvzv", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("bhwbdqufvcgnrgla", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(46.64172F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T19:16:30Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-03T16:35:54Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("afebzxfkjq", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java index 408ac391f0089..d51d44dcb1b23 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/StorageProfileTests.java @@ -16,12 +16,12 @@ public final class StorageProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { StorageProfile model = BinaryData.fromString( - "{\"osDisk\":{\"createOption\":\"Ephemeral\",\"deleteOption\":\"Delete\",\"diskSizeGB\":150677982471181492},\"volumeAttachments\":[\"lqhykprlpyz\",\"uciqdsme\",\"iitdfuxt\"]}") + "{\"osDisk\":{\"createOption\":\"Ephemeral\",\"deleteOption\":\"Delete\",\"diskSizeGB\":1492840844437190897},\"volumeAttachments\":[\"ptgoeiybbabp\",\"hv\",\"slkvntjl\"]}") .toObject(StorageProfile.class); Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.osDisk().createOption()); Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.osDisk().deleteOption()); - Assertions.assertEquals(150677982471181492L, model.osDisk().diskSizeGB()); - Assertions.assertEquals("lqhykprlpyz", model.volumeAttachments().get(0)); + Assertions.assertEquals(1492840844437190897L, model.osDisk().diskSizeGB()); + Assertions.assertEquals("ptgoeiybbabp", model.volumeAttachments().get(0)); } @org.junit.jupiter.api.Test @@ -29,12 +29,12 @@ public void testSerialize() throws Exception { StorageProfile model = new StorageProfile() .withOsDisk(new OsDisk().withCreateOption(OsDiskCreateOption.EPHEMERAL) .withDeleteOption(OsDiskDeleteOption.DELETE) - .withDiskSizeGB(150677982471181492L)) - .withVolumeAttachments(Arrays.asList("lqhykprlpyz", "uciqdsme", "iitdfuxt")); + .withDiskSizeGB(1492840844437190897L)) + .withVolumeAttachments(Arrays.asList("ptgoeiybbabp", "hv", "slkvntjl")); model = BinaryData.fromObject(model).toObject(StorageProfile.class); Assertions.assertEquals(OsDiskCreateOption.EPHEMERAL, model.osDisk().createOption()); Assertions.assertEquals(OsDiskDeleteOption.DELETE, model.osDisk().deleteOption()); - Assertions.assertEquals(150677982471181492L, model.osDisk().diskSizeGB()); - Assertions.assertEquals("lqhykprlpyz", model.volumeAttachments().get(0)); + Assertions.assertEquals(1492840844437190897L, model.osDisk().diskSizeGB()); + Assertions.assertEquals("ptgoeiybbabp", model.volumeAttachments().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java index 352f561e0791e..659bdc73c7979 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkAttachmentConfigurationTests.java @@ -13,19 +13,19 @@ public final class TrunkedNetworkAttachmentConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TrunkedNetworkAttachmentConfiguration model - = BinaryData.fromString("{\"networkId\":\"nalaulppg\",\"pluginType\":\"IPVLAN\"}") + = BinaryData.fromString("{\"networkId\":\"dgqggebdu\",\"pluginType\":\"IPVLAN\"}") .toObject(TrunkedNetworkAttachmentConfiguration.class); - Assertions.assertEquals("nalaulppg", model.networkId()); + Assertions.assertEquals("dgqggebdu", model.networkId()); Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TrunkedNetworkAttachmentConfiguration model - = new TrunkedNetworkAttachmentConfiguration().withNetworkId("nalaulppg") + = new TrunkedNetworkAttachmentConfiguration().withNetworkId("dgqggebdu") .withPluginType(KubernetesPluginType.IPVLAN); model = BinaryData.fromObject(model).toObject(TrunkedNetworkAttachmentConfiguration.class); - Assertions.assertEquals("nalaulppg", model.networkId()); + Assertions.assertEquals("dgqggebdu", model.networkId()); Assertions.assertEquals(KubernetesPluginType.IPVLAN, model.pluginType()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java index 1563f11e136f0..d291ca2a4cdc2 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkInnerTests.java @@ -17,36 +17,36 @@ public final class TrunkedNetworkInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TrunkedNetworkInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"ddyvvjskgfmo\",\"type\":\"wa\"},\"properties\":{\"associatedResourceIds\":[\"gat\",\"eaahhvjhhn\",\"kzyb\",\"jjidjk\"],\"clusterId\":\"xkyxvxevblbj\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"jlageu\",\"hybridAksClustersAssociatedIds\":[\"xuns\",\"jbnkpp\",\"ynenlsvxeizz\",\"wklnsrmffeyc\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"piymerteea\",\"isolationDomainIds\":[\"xqiekkkzddrtk\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"mxvavrefdee\",\"vecuijpx\"],\"vlans\":[921543828288140521]},\"location\":\"prtujwsawdd\",\"tags\":{\"itvtzeexavo\":\"abxvi\",\"dmdqb\":\"tfgle\",\"cbslhhx\":\"pypqtgsfj\"},\"id\":\"db\",\"name\":\"vodhtn\",\"type\":\"irudh\"}") + "{\"extendedLocation\":{\"name\":\"oajvgcxtxjcs\",\"type\":\"eafidltugsresm\"},\"properties\":{\"associatedResourceIds\":[\"jhoiftxfkfweg\",\"rhptilluc\",\"iqtgdqoh\",\"cwsldri\"],\"clusterId\":\"tpwb\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"libph\",\"hybridAksClustersAssociatedIds\":[\"mizak\",\"kan\",\"jpdn\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"joylh\",\"isolationDomainIds\":[\"muoyxprimr\",\"opteecj\",\"eislstvasylwx\",\"zaum\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"guufuzboyjathwtz\",\"lbaemwmdxmeb\"],\"vlans\":[34566941819509688,519489935498937566]},\"location\":\"hlxvea\",\"tags\":{\"qcttadijaeukmrsi\":\"xnmwmqtibxyijddt\",\"eqw\":\"ekpndzaapmudq\"},\"id\":\"gp\",\"name\":\"bu\",\"type\":\"qwyxebeybpm\"}") .toObject(TrunkedNetworkInner.class); - Assertions.assertEquals("prtujwsawdd", model.location()); - Assertions.assertEquals("abxvi", model.tags().get("itvtzeexavo")); - Assertions.assertEquals("ddyvvjskgfmo", model.extendedLocation().name()); - Assertions.assertEquals("wa", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.hybridAksPluginType()); - Assertions.assertEquals("piymerteea", model.interfaceName()); - Assertions.assertEquals("xqiekkkzddrtk", model.isolationDomainIds().get(0)); - Assertions.assertEquals(921543828288140521L, model.vlans().get(0)); + Assertions.assertEquals("hlxvea", model.location()); + Assertions.assertEquals("xnmwmqtibxyijddt", model.tags().get("qcttadijaeukmrsi")); + Assertions.assertEquals("oajvgcxtxjcs", model.extendedLocation().name()); + Assertions.assertEquals("eafidltugsresm", model.extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); + Assertions.assertEquals("joylh", model.interfaceName()); + Assertions.assertEquals("muoyxprimr", model.isolationDomainIds().get(0)); + Assertions.assertEquals(34566941819509688L, model.vlans().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TrunkedNetworkInner model = new TrunkedNetworkInner().withLocation("prtujwsawdd") - .withTags(mapOf("itvtzeexavo", "abxvi", "dmdqb", "tfgle", "cbslhhx", "pypqtgsfj")) - .withExtendedLocation(new ExtendedLocation().withName("ddyvvjskgfmo").withType("wa")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("piymerteea") - .withIsolationDomainIds(Arrays.asList("xqiekkkzddrtk")) - .withVlans(Arrays.asList(921543828288140521L)); + TrunkedNetworkInner model = new TrunkedNetworkInner().withLocation("hlxvea") + .withTags(mapOf("qcttadijaeukmrsi", "xnmwmqtibxyijddt", "eqw", "ekpndzaapmudq")) + .withExtendedLocation(new ExtendedLocation().withName("oajvgcxtxjcs").withType("eafidltugsresm")) + .withHybridAksPluginType(HybridAksPluginType.SRIOV) + .withInterfaceName("joylh") + .withIsolationDomainIds(Arrays.asList("muoyxprimr", "opteecj", "eislstvasylwx", "zaum")) + .withVlans(Arrays.asList(34566941819509688L, 519489935498937566L)); model = BinaryData.fromObject(model).toObject(TrunkedNetworkInner.class); - Assertions.assertEquals("prtujwsawdd", model.location()); - Assertions.assertEquals("abxvi", model.tags().get("itvtzeexavo")); - Assertions.assertEquals("ddyvvjskgfmo", model.extendedLocation().name()); - Assertions.assertEquals("wa", model.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.hybridAksPluginType()); - Assertions.assertEquals("piymerteea", model.interfaceName()); - Assertions.assertEquals("xqiekkkzddrtk", model.isolationDomainIds().get(0)); - Assertions.assertEquals(921543828288140521L, model.vlans().get(0)); + Assertions.assertEquals("hlxvea", model.location()); + Assertions.assertEquals("xnmwmqtibxyijddt", model.tags().get("qcttadijaeukmrsi")); + Assertions.assertEquals("oajvgcxtxjcs", model.extendedLocation().name()); + Assertions.assertEquals("eafidltugsresm", model.extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.hybridAksPluginType()); + Assertions.assertEquals("joylh", model.interfaceName()); + Assertions.assertEquals("muoyxprimr", model.isolationDomainIds().get(0)); + Assertions.assertEquals(34566941819509688L, model.vlans().get(0)); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java index 43d906b0f12e8..4a1a087babe47 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkListTests.java @@ -18,49 +18,50 @@ public final class TrunkedNetworkListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TrunkedNetworkList model = BinaryData.fromString( - "{\"nextLink\":\"aimlnwiaaom\",\"value\":[{\"extendedLocation\":{\"name\":\"eazulcs\",\"type\":\"thwwn\"},\"properties\":{\"associatedResourceIds\":[\"l\"],\"clusterId\":\"swpchwahfbousn\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"fewetwlyxgncx\",\"hybridAksClustersAssociatedIds\":[\"hdjhlimmbcx\",\"h\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"rxvxcjzh\",\"isolationDomainIds\":[\"zxfpxtgqsc\",\"avft\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"azkmtgguwp\"],\"vlans\":[767059263997452674,7517246226041881019]},\"location\":\"vmmghfcfiwrxgk\",\"tags\":{\"zqodfvpgshox\":\"vyi\",\"zflbqvg\":\"sgbpfgzdjtx\",\"sdtutnwlduyc\":\"qvlgafcqusrdvetn\",\"kuqgsjjxundxgket\":\"uzhyrmewipmvekdx\"},\"id\":\"zhhzjhfjmhvvmu\",\"name\":\"gpmuneqsxvmhfbuz\",\"type\":\"yihsasbhudypohyu\"},{\"extendedLocation\":{\"name\":\"ms\",\"type\":\"ynsqyrpfoobr\"},\"properties\":{\"associatedResourceIds\":[\"y\"],\"clusterId\":\"jnygq\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"qzdz\",\"hybridAksClustersAssociatedIds\":[\"la\",\"hnfhqlyvijouwi\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"yzunbixxrtikv\",\"isolationDomainIds\":[\"wpgclrcivt\",\"oxfrkenxpmyyefr\",\"mpdnqqskawa\"],\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"bnpqfrtqlkzme\",\"nitgvkxlz\"],\"vlans\":[3259590014708036910,6287019732891771770,642502013923819576,8171214397183496400]},\"location\":\"zxwhcansymoyqhlw\",\"tags\":{\"wasqvdaeyyg\":\"ivbkbxgomfaj\"},\"id\":\"xakjsqzhzb\",\"name\":\"zkgimsid\",\"type\":\"asi\"}]}") + "{\"nextLink\":\"qhlwigdivbkbxgo\",\"value\":[{\"extendedLocation\":{\"name\":\"juwasqvdaeyyguxa\",\"type\":\"jsqzhzbezk\"},\"properties\":{\"associatedResourceIds\":[\"sidxasicdd\",\"vvjskgfmocwahp\",\"gat\",\"eaahhvjhhn\"],\"clusterId\":\"zybbj\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"ksyxkyxvxevblbje\",\"hybridAksClustersAssociatedIds\":[\"jlageu\",\"ulxunsmjbnkpp\",\"ynenlsvxeizz\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"nsrmffeycx\",\"isolationDomainIds\":[\"tpiymerteea\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"ekkkzd\",\"rtkgdojbmxvavref\",\"eesvecu\",\"jpxtxsuwprtuj\"],\"vlans\":[1050877553799063641,5348158048255223643,8069918205295574931,706270715429567578]},\"location\":\"xvititvtz\",\"tags\":{\"ecdmdqbwpy\":\"avoxtfg\"},\"id\":\"q\",\"name\":\"gsfjac\",\"type\":\"slhhxudbxv\"},{\"extendedLocation\":{\"name\":\"d\",\"type\":\"tnsi\"},\"properties\":{\"associatedResourceIds\":[\"hzmme\",\"ckdlpag\",\"rcxfailcfxwmdb\"],\"clusterId\":\"dfgsftufqobrj\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"gcckknhxkizvytn\",\"hybridAksClustersAssociatedIds\":[\"uljraae\",\"anokqgu\",\"kjq\",\"vbroylaxxu\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"sdosfjbjsvgjr\",\"isolationDomainIds\":[\"r\",\"vyc\"],\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"xgccknfnw\",\"btmvpdvjdhttza\",\"fedxihchrphkm\",\"rjdqnsdfzp\"],\"vlans\":[2004934098005574571,560621963294403573,6433171258277978694]},\"location\":\"ghrjeuutl\",\"tags\":{\"zhokvbwnhh\":\"z\"},\"id\":\"qlgehg\",\"name\":\"pipifh\",\"type\":\"f\"}]}") .toObject(TrunkedNetworkList.class); - Assertions.assertEquals("aimlnwiaaom", model.nextLink()); - Assertions.assertEquals("vmmghfcfiwrxgk", model.value().get(0).location()); - Assertions.assertEquals("vyi", model.value().get(0).tags().get("zqodfvpgshox")); - Assertions.assertEquals("eazulcs", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("thwwn", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("rxvxcjzh", model.value().get(0).interfaceName()); - Assertions.assertEquals("zxfpxtgqsc", model.value().get(0).isolationDomainIds().get(0)); - Assertions.assertEquals(767059263997452674L, model.value().get(0).vlans().get(0)); + Assertions.assertEquals("qhlwigdivbkbxgo", model.nextLink()); + Assertions.assertEquals("xvititvtz", model.value().get(0).location()); + Assertions.assertEquals("avoxtfg", model.value().get(0).tags().get("ecdmdqbwpy")); + Assertions.assertEquals("juwasqvdaeyyguxa", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("jsqzhzbezk", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); + Assertions.assertEquals("nsrmffeycx", model.value().get(0).interfaceName()); + Assertions.assertEquals("tpiymerteea", model.value().get(0).isolationDomainIds().get(0)); + Assertions.assertEquals(1050877553799063641L, model.value().get(0).vlans().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TrunkedNetworkList model = new TrunkedNetworkList().withNextLink("aimlnwiaaom") - .withValue(Arrays.asList( - new TrunkedNetworkInner().withLocation("vmmghfcfiwrxgk") - .withTags(mapOf("zqodfvpgshox", "vyi", "zflbqvg", "sgbpfgzdjtx", "sdtutnwlduyc", "qvlgafcqusrdvetn", - "kuqgsjjxundxgket", "uzhyrmewipmvekdx")) - .withExtendedLocation(new ExtendedLocation().withName("eazulcs").withType("thwwn")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("rxvxcjzh") - .withIsolationDomainIds(Arrays.asList("zxfpxtgqsc", "avft")) - .withVlans(Arrays.asList(767059263997452674L, 7517246226041881019L)), - new TrunkedNetworkInner().withLocation("zxwhcansymoyqhlw") - .withTags(mapOf("wasqvdaeyyg", "ivbkbxgomfaj")) - .withExtendedLocation(new ExtendedLocation().withName("ms").withType("ynsqyrpfoobr")) - .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) - .withInterfaceName("yzunbixxrtikv") - .withIsolationDomainIds(Arrays.asList("wpgclrcivt", "oxfrkenxpmyyefr", "mpdnqqskawa")) - .withVlans(Arrays.asList(3259590014708036910L, 6287019732891771770L, 642502013923819576L, - 8171214397183496400L)))); + TrunkedNetworkList model + = new TrunkedNetworkList().withNextLink("qhlwigdivbkbxgo") + .withValue(Arrays.asList( + new TrunkedNetworkInner().withLocation("xvititvtz") + .withTags(mapOf("ecdmdqbwpy", "avoxtfg")) + .withExtendedLocation( + new ExtendedLocation().withName("juwasqvdaeyyguxa").withType("jsqzhzbezk")) + .withHybridAksPluginType(HybridAksPluginType.SRIOV) + .withInterfaceName("nsrmffeycx") + .withIsolationDomainIds(Arrays.asList("tpiymerteea")) + .withVlans(Arrays.asList(1050877553799063641L, 5348158048255223643L, 8069918205295574931L, + 706270715429567578L)), + new TrunkedNetworkInner().withLocation("ghrjeuutl") + .withTags(mapOf("zhokvbwnhh", "z")) + .withExtendedLocation(new ExtendedLocation().withName("d").withType("tnsi")) + .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) + .withInterfaceName("sdosfjbjsvgjr") + .withIsolationDomainIds(Arrays.asList("r", "vyc")) + .withVlans(Arrays.asList(2004934098005574571L, 560621963294403573L, 6433171258277978694L)))); model = BinaryData.fromObject(model).toObject(TrunkedNetworkList.class); - Assertions.assertEquals("aimlnwiaaom", model.nextLink()); - Assertions.assertEquals("vmmghfcfiwrxgk", model.value().get(0).location()); - Assertions.assertEquals("vyi", model.value().get(0).tags().get("zqodfvpgshox")); - Assertions.assertEquals("eazulcs", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("thwwn", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, model.value().get(0).hybridAksPluginType()); - Assertions.assertEquals("rxvxcjzh", model.value().get(0).interfaceName()); - Assertions.assertEquals("zxfpxtgqsc", model.value().get(0).isolationDomainIds().get(0)); - Assertions.assertEquals(767059263997452674L, model.value().get(0).vlans().get(0)); + Assertions.assertEquals("qhlwigdivbkbxgo", model.nextLink()); + Assertions.assertEquals("xvititvtz", model.value().get(0).location()); + Assertions.assertEquals("avoxtfg", model.value().get(0).tags().get("ecdmdqbwpy")); + Assertions.assertEquals("juwasqvdaeyyguxa", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("jsqzhzbezk", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, model.value().get(0).hybridAksPluginType()); + Assertions.assertEquals("nsrmffeycx", model.value().get(0).interfaceName()); + Assertions.assertEquals("tpiymerteea", model.value().get(0).isolationDomainIds().get(0)); + Assertions.assertEquals(1050877553799063641L, model.value().get(0).vlans().get(0)); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.java index a97f9060cd55f..5514b3ff61e8e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPatchParametersTests.java @@ -14,17 +14,17 @@ public final class TrunkedNetworkPatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TrunkedNetworkPatchParameters model = BinaryData.fromString( - "{\"tags\":{\"qaxsipietgbebjf\":\"pzdqtvhcspod\",\"pnfpubntnbat\":\"lbmoichd\",\"uhplrvkmjcwmjv\":\"viqsowsaaelcattc\"}}") + "{\"tags\":{\"ycsxzu\":\"klelssxb\",\"mdesqp\":\"ksrl\",\"vteo\":\"pvmjcdoewbid\",\"gfsxzec\":\"xvgpiude\"}}") .toObject(TrunkedNetworkPatchParameters.class); - Assertions.assertEquals("pzdqtvhcspod", model.tags().get("qaxsipietgbebjf")); + Assertions.assertEquals("klelssxb", model.tags().get("ycsxzu")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TrunkedNetworkPatchParameters model = new TrunkedNetworkPatchParameters().withTags( - mapOf("qaxsipietgbebjf", "pzdqtvhcspod", "pnfpubntnbat", "lbmoichd", "uhplrvkmjcwmjv", "viqsowsaaelcattc")); + TrunkedNetworkPatchParameters model = new TrunkedNetworkPatchParameters() + .withTags(mapOf("ycsxzu", "klelssxb", "mdesqp", "ksrl", "vteo", "pvmjcdoewbid", "gfsxzec", "xvgpiude")); model = BinaryData.fromObject(model).toObject(TrunkedNetworkPatchParameters.class); - Assertions.assertEquals("pzdqtvhcspod", model.tags().get("qaxsipietgbebjf")); + Assertions.assertEquals("klelssxb", model.tags().get("ycsxzu")); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java index 693a1e33956c2..77a68dc2ed20b 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworkPropertiesTests.java @@ -14,26 +14,25 @@ public final class TrunkedNetworkPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TrunkedNetworkProperties model = BinaryData.fromString( - "{\"associatedResourceIds\":[\"es\"],\"clusterId\":\"dlpagzrcxfail\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"m\",\"hybridAksClustersAssociatedIds\":[\"xdfgsftufqobr\",\"lnacgcc\",\"knh\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"v\",\"isolationDomainIds\":[\"nrzvuljraaer\",\"nok\",\"gukkjqnvbroy\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"lcdisd\",\"sfjbjsvg\",\"rwhryvycytd\"],\"vlans\":[87313434350967654,4919215833349894285,5408599149275050969,3545804393254840755]}") + "{\"associatedResourceIds\":[\"rtffyaqitmh\",\"eioqaqhvse\",\"fuqyrxpdlcgqlsi\"],\"clusterId\":\"jqfrddgamquh\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"sjuivfcdisyir\",\"hybridAksClustersAssociatedIds\":[\"hcz\",\"xrxzbujrtr\",\"qvwre\",\"khgn\"],\"hybridAksPluginType\":\"DPDK\",\"interfaceName\":\"nzlrpiqywncvjt\",\"isolationDomainIds\":[\"cof\"],\"provisioningState\":\"Failed\",\"virtualMachinesAssociatedIds\":[\"dhgbjkvre\",\"jeamurv\",\"mlovuanashcxl\"],\"vlans\":[8237777567310895411,2636756459622918306]}") .toObject(TrunkedNetworkProperties.class); Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("v", model.interfaceName()); - Assertions.assertEquals("nrzvuljraaer", model.isolationDomainIds().get(0)); - Assertions.assertEquals(87313434350967654L, model.vlans().get(0)); + Assertions.assertEquals("nzlrpiqywncvjt", model.interfaceName()); + Assertions.assertEquals("cof", model.isolationDomainIds().get(0)); + Assertions.assertEquals(8237777567310895411L, model.vlans().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TrunkedNetworkProperties model = new TrunkedNetworkProperties() - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("v") - .withIsolationDomainIds(Arrays.asList("nrzvuljraaer", "nok", "gukkjqnvbroy")) - .withVlans( - Arrays.asList(87313434350967654L, 4919215833349894285L, 5408599149275050969L, 3545804393254840755L)); + TrunkedNetworkProperties model + = new TrunkedNetworkProperties().withHybridAksPluginType(HybridAksPluginType.DPDK) + .withInterfaceName("nzlrpiqywncvjt") + .withIsolationDomainIds(Arrays.asList("cof")) + .withVlans(Arrays.asList(8237777567310895411L, 2636756459622918306L)); model = BinaryData.fromObject(model).toObject(TrunkedNetworkProperties.class); Assertions.assertEquals(HybridAksPluginType.DPDK, model.hybridAksPluginType()); - Assertions.assertEquals("v", model.interfaceName()); - Assertions.assertEquals("nrzvuljraaer", model.isolationDomainIds().get(0)); - Assertions.assertEquals(87313434350967654L, model.vlans().get(0)); + Assertions.assertEquals("nzlrpiqywncvjt", model.interfaceName()); + Assertions.assertEquals("cof", model.isolationDomainIds().get(0)); + Assertions.assertEquals(8237777567310895411L, model.vlans().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java index 87da5c808ee46..3e4efc2e53391 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksCreateOrUpdateMockTests.java @@ -6,16 +6,13 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.Arrays; @@ -23,57 +20,41 @@ import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class TrunkedNetworksCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"vlizedvb\",\"type\":\"abv\"},\"properties\":{\"associatedResourceIds\":[\"ge\",\"zyqxadyfhbmwkh\"],\"clusterId\":\"qttbspvkhgla\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"yzstujrzxrkns\",\"hybridAksClustersAssociatedIds\":[\"lduyehiiittugyuq\",\"rldaxurfqa\",\"csozjv\",\"dzciggb\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"o\",\"isolationDomainIds\":[\"alzyxwhoeamo\",\"obdoey\",\"fpnimtwuuhaueg\",\"kwmnfeub\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"kwfugiphrrkuu\"],\"vlans\":[3759154775204122401]},\"location\":\"rhzz\",\"tags\":{\"pwnibittozt\":\"ueoqusvwluj\"},\"id\":\"dqumqvfm\",\"name\":\"caddtgc\",\"type\":\"xegtvgwyur\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"nfee\",\"type\":\"gpkrie\"},\"properties\":{\"associatedResourceIds\":[\"nixxo\",\"wzkyf\",\"nwpiwxeiicrm\",\"e\"],\"clusterId\":\"ldmaxxijvskwsdgk\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"cwrase\",\"hybridAksClustersAssociatedIds\":[\"fcvoinwoqar\",\"wyxqiclad\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"avuqmcbymsfobjlq\",\"isolationDomainIds\":[\"jezcjumvps\",\"mioyo\",\"glkmiqwnnr\",\"clibbfqpsp\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"dgnhautw\",\"kexzgpmnmabeddqi\"],\"vlans\":[4313424007444767733]},\"location\":\"pfqfpc\",\"tags\":{\"rvwerfwxbsmtb\":\"clg\"},\"id\":\"jj\",\"name\":\"h\",\"type\":\"ci\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); TrunkedNetwork response = manager.trunkedNetworks() - .define("qtrotpvclp") - .withRegion("rmvgoqplehmumkz") - .withExistingResourceGroup("wj") - .withExtendedLocation(new ExtendedLocation().withName("fyrlmwkptskwxj").withType("vhxccbmkakmkoo")) - .withIsolationDomainIds(Arrays.asList("jow", "yeyzm", "dsqcmhnxl")) - .withVlans(Arrays.asList(7344737615857384709L, 3877439825280273474L, 6320930867686077386L)) - .withTags(mapOf("rwnhkgqggoxsst", "czd", "cwmhlymgnukxrk", "ivrakfrryn", "zaudgjtfbclakkuc", "mjpequlr")) - .withHybridAksPluginType(HybridAksPluginType.DPDK) - .withInterfaceName("ibfiplhxfnsm") + .define("exkydfb") + .withRegion("nctagfyvrtpqpem") + .withExistingResourceGroup("bowcpjqduqgi") + .withExtendedLocation(new ExtendedLocation().withName("lj").withType("vhuerkjddvrglieg")) + .withIsolationDomainIds(Arrays.asList("lobvv", "bhvhdiqay", "luiyuosnuudte")) + .withVlans(Arrays.asList(1842583766553813115L, 3706472874283772066L)) + .withTags(mapOf("wemvxqabckmze", "gkrepdqhqyhw", "greohtwhlpuzjp", "xin", "angp", "eezn")) + .withHybridAksPluginType(HybridAksPluginType.OSDEVICE) + .withInterfaceName("gmnzjotvmrx") .create(); - Assertions.assertEquals("rhzz", response.location()); - Assertions.assertEquals("ueoqusvwluj", response.tags().get("pwnibittozt")); - Assertions.assertEquals("vlizedvb", response.extendedLocation().name()); - Assertions.assertEquals("abv", response.extendedLocation().type()); + Assertions.assertEquals("pfqfpc", response.location()); + Assertions.assertEquals("clg", response.tags().get("rvwerfwxbsmtb")); + Assertions.assertEquals("nfee", response.extendedLocation().name()); + Assertions.assertEquals("gpkrie", response.extendedLocation().type()); Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.hybridAksPluginType()); - Assertions.assertEquals("o", response.interfaceName()); - Assertions.assertEquals("alzyxwhoeamo", response.isolationDomainIds().get(0)); - Assertions.assertEquals(3759154775204122401L, response.vlans().get(0)); + Assertions.assertEquals("avuqmcbymsfobjlq", response.interfaceName()); + Assertions.assertEquals("jezcjumvps", response.isolationDomainIds().get(0)); + Assertions.assertEquals(4313424007444767733L, response.vlans().get(0)); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteMockTests.java deleted file mode 100644 index 9baebbe87d9f1..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class TrunkedNetworksDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.trunkedNetworks().delete("eqsifjmclngygnhr", "ombcdtajdopggo", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java index cf0de8a328ee0..c236f943b4992 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksGetByResourceGroupWithResponseMockTests.java @@ -6,61 +6,42 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class TrunkedNetworksGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"uylztpziizevjyk\",\"type\":\"fvezefk\"},\"properties\":{\"associatedResourceIds\":[\"twql\"],\"clusterId\":\"jjzkcasfwzc\",\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ffjwajnr\",\"hybridAksClustersAssociatedIds\":[\"vaqkifmxawost\",\"zkn\",\"rkmjqncfvdscnhe\",\"vwfnqqwypvn\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"godtggrs\",\"isolationDomainIds\":[\"wjfkainjmuym\",\"ecvztsc\",\"gmusaictdscnkzzo\"],\"provisioningState\":\"Provisioning\",\"virtualMachinesAssociatedIds\":[\"clzeq\"],\"vlans\":[3676326296923776274,6951734822121621399,3402672547015760163,7210388224400521553]},\"location\":\"bnjrqvz\",\"tags\":{\"pam\":\"xozony\",\"yjxvc\":\"udpabcreuwzos\",\"gzygbaduveco\":\"asormrexzvdube\"},\"id\":\"sdqhzr\",\"name\":\"dbakr\",\"type\":\"imzfvpp\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"rulfuct\",\"type\":\"jrthcfjzhx\"},\"properties\":{\"associatedResourceIds\":[\"bqjr\",\"stvrjeqmt\"],\"clusterId\":\"beqrztrx\",\"detailedStatus\":\"Available\",\"detailedStatusMessage\":\"d\",\"hybridAksClustersAssociatedIds\":[\"srwrsnrhpqati\",\"kkvyanxk\",\"vcsemsvuvdj\",\"qxetqmmlivrjjx\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"chp\",\"isolationDomainIds\":[\"xlehzlxpgfquwzp\",\"iibelwcerw\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"xljtxbusqtbxxn\",\"uisdzhgbdgz\",\"agsecnadbuw\"],\"vlans\":[7056354407453453620]},\"location\":\"llmqiyne\",\"tags\":{\"kiiwvmtu\":\"lln\",\"vqpilrguncanldu\":\"xpymdjfuaxro\"},\"id\":\"zorxsb\",\"name\":\"x\",\"type\":\"qk\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); TrunkedNetwork response = manager.trunkedNetworks() - .getByResourceGroupWithResponse("tb", "aqjmkgxqwque", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("sbvr", "aqgvto", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bnjrqvz", response.location()); - Assertions.assertEquals("xozony", response.tags().get("pam")); - Assertions.assertEquals("uylztpziizevjyk", response.extendedLocation().name()); - Assertions.assertEquals("fvezefk", response.extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.SRIOV, response.hybridAksPluginType()); - Assertions.assertEquals("godtggrs", response.interfaceName()); - Assertions.assertEquals("wjfkainjmuym", response.isolationDomainIds().get(0)); - Assertions.assertEquals(3676326296923776274L, response.vlans().get(0)); + Assertions.assertEquals("llmqiyne", response.location()); + Assertions.assertEquals("lln", response.tags().get("kiiwvmtu")); + Assertions.assertEquals("rulfuct", response.extendedLocation().name()); + Assertions.assertEquals("jrthcfjzhx", response.extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.hybridAksPluginType()); + Assertions.assertEquals("chp", response.interfaceName()); + Assertions.assertEquals("xlehzlxpgfquwzp", response.isolationDomainIds().get(0)); + Assertions.assertEquals(7056354407453453620L, response.vlans().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java index ffb59bde2a813..24a3d9a56ca58 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListByResourceGroupMockTests.java @@ -6,61 +6,42 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class TrunkedNetworksListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"pffmnoii\",\"type\":\"sudyh\"},\"properties\":{\"associatedResourceIds\":[\"jtalxrdsjr\",\"oluqwgusxxhdo\",\"pjwyblvtbdmvs\"],\"clusterId\":\"idaelqpvekmkwjfb\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"ggdusxu\",\"hybridAksClustersAssociatedIds\":[\"ivuxcjkcoqwczs\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"izfwihvaangqt\",\"isolationDomainIds\":[\"jr\",\"dmfdvbbaexxjfwtg\",\"fkkauigvmua\",\"mczfedyuepsvplt\"],\"provisioningState\":\"Succeeded\",\"virtualMachinesAssociatedIds\":[\"vy\",\"eocfkumcfjxok\"],\"vlans\":[6427718059276347798]},\"location\":\"asvfnkwmy\",\"tags\":{\"txkrdtulcrcjdk\":\"ekrknfdrugjqyck\",\"mzoonsvobchkxfpw\":\"otcsu\"},\"id\":\"dyslbklglmnn\",\"name\":\"kwayqshwy\",\"type\":\"xrid\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"qhnmhk\",\"type\":\"ezsdsuxheq\"},\"properties\":{\"associatedResourceIds\":[\"ruxspinymmqgwok\",\"ikpazf\",\"mjxuvjipfdvhaxd\"],\"clusterId\":\"zaehpphthd\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"etatlakf\",\"hybridAksClustersAssociatedIds\":[\"xwgiks\",\"bvtooxrpogwp\",\"chgjtnhtukfacih\",\"bfntumeezbxvq\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"vwcga\",\"isolationDomainIds\":[\"omtmjzwxuqgov\",\"xpwwzt\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"htgfred\",\"ls\",\"grllcc\",\"aovjow\"],\"vlans\":[2662581133111301135,6125335634113559684]},\"location\":\"comlyotgkwsx\",\"tags\":{\"genmvceb\":\"qor\",\"dcqjkedwqurc\":\"eetqujxcxxq\"},\"id\":\"ojmrvvxwjongzse\",\"name\":\"qqrsil\",\"type\":\"chskxxka\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.trunkedNetworks().listByResourceGroup("lpbyxroiduyq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("asvfnkwmy", response.iterator().next().location()); - Assertions.assertEquals("ekrknfdrugjqyck", response.iterator().next().tags().get("txkrdtulcrcjdk")); - Assertions.assertEquals("pffmnoii", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("sudyh", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("izfwihvaangqt", response.iterator().next().interfaceName()); - Assertions.assertEquals("jr", response.iterator().next().isolationDomainIds().get(0)); - Assertions.assertEquals(6427718059276347798L, response.iterator().next().vlans().get(0)); + = manager.trunkedNetworks().listByResourceGroup("pqht", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("comlyotgkwsx", response.iterator().next().location()); + Assertions.assertEquals("qor", response.iterator().next().tags().get("genmvceb")); + Assertions.assertEquals("qhnmhk", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("ezsdsuxheq", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, response.iterator().next().hybridAksPluginType()); + Assertions.assertEquals("vwcga", response.iterator().next().interfaceName()); + Assertions.assertEquals("omtmjzwxuqgov", response.iterator().next().isolationDomainIds().get(0)); + Assertions.assertEquals(2662581133111301135L, response.iterator().next().vlans().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java index 563db430f8cd1..e3bc7c2f02e20 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/TrunkedNetworksListMockTests.java @@ -6,46 +6,27 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.HybridAksPluginType; import com.azure.resourcemanager.networkcloud.models.TrunkedNetwork; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class TrunkedNetworksListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"hzwxq\",\"type\":\"ejp\"},\"properties\":{\"associatedResourceIds\":[\"hvtozyagjjnxkb\",\"lh\",\"yxg\"],\"clusterId\":\"klvqzrwtrdgscn\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"nsgnwxlwmez\",\"hybridAksClustersAssociatedIds\":[\"xpthceopvkvt\",\"fve\",\"obpbokhmm\"],\"hybridAksPluginType\":\"OSDevice\",\"interfaceName\":\"arnggcjfwblqh\",\"isolationDomainIds\":[\"asmcolmugpyvaos\",\"kluwz\",\"eygzvtyevjhu\",\"nobguqisqsqkpdmi\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"mlviqcpszpmcvqdv\",\"dmvxyrxdhgvqojb\"],\"vlans\":[2010350344823941297,6106416782592877568,4720543683832895411]},\"location\":\"mbtple\",\"tags\":{\"dawsxmrsz\":\"oyidoxznvgvdtmuu\",\"erxrzutylcurza\":\"knimxlp\",\"qaeht\":\"mnb\"},\"id\":\"bjmbnvynfaooeac\",\"name\":\"edcgl\",\"type\":\"kakddidahzllrqm\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"tmojhvrztnvgyshq\",\"type\":\"dgrtwmew\"},\"properties\":{\"associatedResourceIds\":[\"py\"],\"clusterId\":\"fa\",\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"cayer\",\"hybridAksClustersAssociatedIds\":[\"ansyb\",\"lpolwzrghsrle\"],\"hybridAksPluginType\":\"SRIOV\",\"interfaceName\":\"scjfncjwvuagf\",\"isolationDomainIds\":[\"tltng\",\"m\",\"e\",\"ptrklzmija\"],\"provisioningState\":\"Canceled\",\"virtualMachinesAssociatedIds\":[\"fsvagh\"],\"vlans\":[7469250402982686005,1276863809676580780,548743314358762108,4282149181142160943]},\"location\":\"gtzjcv\",\"tags\":{\"yxpavidnie\":\"lapsnsso\",\"slpuxgcbdsva\":\"wffcvvye\",\"rkxgpazwugxyqvnj\":\"pnptw\"},\"id\":\"bfe\",\"name\":\"hldiuhzzgqlm\",\"type\":\"aewzgiudjp\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -53,13 +34,13 @@ public void testList() throws Exception { PagedIterable response = manager.trunkedNetworks().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("mbtple", response.iterator().next().location()); - Assertions.assertEquals("oyidoxznvgvdtmuu", response.iterator().next().tags().get("dawsxmrsz")); - Assertions.assertEquals("hzwxq", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("ejp", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(HybridAksPluginType.OSDEVICE, response.iterator().next().hybridAksPluginType()); - Assertions.assertEquals("arnggcjfwblqh", response.iterator().next().interfaceName()); - Assertions.assertEquals("asmcolmugpyvaos", response.iterator().next().isolationDomainIds().get(0)); - Assertions.assertEquals(2010350344823941297L, response.iterator().next().vlans().get(0)); + Assertions.assertEquals("gtzjcv", response.iterator().next().location()); + Assertions.assertEquals("lapsnsso", response.iterator().next().tags().get("yxpavidnie")); + Assertions.assertEquals("tmojhvrztnvgyshq", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("dgrtwmew", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals(HybridAksPluginType.SRIOV, response.iterator().next().hybridAksPluginType()); + Assertions.assertEquals("scjfncjwvuagf", response.iterator().next().interfaceName()); + Assertions.assertEquals("tltng", response.iterator().next().isolationDomainIds().get(0)); + Assertions.assertEquals(7469250402982686005L, response.iterator().next().vlans().get(0)); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.java new file mode 100644 index 0000000000000..a5d6a55dae58b --- /dev/null +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/UserAssignedIdentityTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.networkcloud.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.networkcloud.models.UserAssignedIdentity; + +public final class UserAssignedIdentityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + UserAssignedIdentity model = BinaryData.fromString( + "{\"principalId\":\"ef93c325-8cf8-4a49-9cd9-82efc5355b76\",\"clientId\":\"18c9709e-b2c4-40bb-9622-5071a7849b5c\"}") + .toObject(UserAssignedIdentity.class); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + UserAssignedIdentity model = new UserAssignedIdentity(); + model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); + } +} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.java index 3daf6a9db7c40..d3ac585a351c8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/ValidationThresholdTests.java @@ -14,21 +14,21 @@ public final class ValidationThresholdTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ValidationThreshold model = BinaryData - .fromString("{\"grouping\":\"PerRack\",\"type\":\"CountSuccess\",\"value\":1449809140711379739}") + .fromString("{\"grouping\":\"PerRack\",\"type\":\"PercentSuccess\",\"value\":1125965714665499028}") .toObject(ValidationThreshold.class); Assertions.assertEquals(ValidationThresholdGrouping.PER_RACK, model.grouping()); - Assertions.assertEquals(ValidationThresholdType.COUNT_SUCCESS, model.type()); - Assertions.assertEquals(1449809140711379739L, model.value()); + Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.type()); + Assertions.assertEquals(1125965714665499028L, model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ValidationThreshold model = new ValidationThreshold().withGrouping(ValidationThresholdGrouping.PER_RACK) - .withType(ValidationThresholdType.COUNT_SUCCESS) - .withValue(1449809140711379739L); + .withType(ValidationThresholdType.PERCENT_SUCCESS) + .withValue(1125965714665499028L); model = BinaryData.fromObject(model).toObject(ValidationThreshold.class); Assertions.assertEquals(ValidationThresholdGrouping.PER_RACK, model.grouping()); - Assertions.assertEquals(ValidationThresholdType.COUNT_SUCCESS, model.type()); - Assertions.assertEquals(1449809140711379739L, model.value()); + Assertions.assertEquals(ValidationThresholdType.PERCENT_SUCCESS, model.type()); + Assertions.assertEquals(1125965714665499028L, model.value()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.java index de56203914cc7..ca30bffebb574 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePlacementHintTests.java @@ -15,11 +15,11 @@ public final class VirtualMachinePlacementHintTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachinePlacementHint model = BinaryData.fromString( - "{\"hintType\":\"Affinity\",\"resourceId\":\"inmfgvxirp\",\"schedulingExecution\":\"Soft\",\"scope\":\"Machine\"}") + "{\"hintType\":\"Affinity\",\"resourceId\":\"rqryxynqn\",\"schedulingExecution\":\"Hard\",\"scope\":\"Machine\"}") .toObject(VirtualMachinePlacementHint.class); Assertions.assertEquals(VirtualMachinePlacementHintType.AFFINITY, model.hintType()); - Assertions.assertEquals("inmfgvxirp", model.resourceId()); - Assertions.assertEquals(VirtualMachineSchedulingExecution.SOFT, model.schedulingExecution()); + Assertions.assertEquals("rqryxynqn", model.resourceId()); + Assertions.assertEquals(VirtualMachineSchedulingExecution.HARD, model.schedulingExecution()); Assertions.assertEquals(VirtualMachinePlacementHintPodAffinityScope.MACHINE, model.scope()); } @@ -27,13 +27,13 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { VirtualMachinePlacementHint model = new VirtualMachinePlacementHint().withHintType(VirtualMachinePlacementHintType.AFFINITY) - .withResourceId("inmfgvxirp") - .withSchedulingExecution(VirtualMachineSchedulingExecution.SOFT) + .withResourceId("rqryxynqn") + .withSchedulingExecution(VirtualMachineSchedulingExecution.HARD) .withScope(VirtualMachinePlacementHintPodAffinityScope.MACHINE); model = BinaryData.fromObject(model).toObject(VirtualMachinePlacementHint.class); Assertions.assertEquals(VirtualMachinePlacementHintType.AFFINITY, model.hintType()); - Assertions.assertEquals("inmfgvxirp", model.resourceId()); - Assertions.assertEquals(VirtualMachineSchedulingExecution.SOFT, model.schedulingExecution()); + Assertions.assertEquals("rqryxynqn", model.resourceId()); + Assertions.assertEquals(VirtualMachineSchedulingExecution.HARD, model.schedulingExecution()); Assertions.assertEquals(VirtualMachinePlacementHintPodAffinityScope.MACHINE, model.scope()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.java index bcb17650dbc66..11f0982c2bea9 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinePowerOffParametersTests.java @@ -13,15 +13,15 @@ public final class VirtualMachinePowerOffParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualMachinePowerOffParameters model - = BinaryData.fromString("{\"skipShutdown\":\"True\"}").toObject(VirtualMachinePowerOffParameters.class); - Assertions.assertEquals(SkipShutdown.TRUE, model.skipShutdown()); + = BinaryData.fromString("{\"skipShutdown\":\"False\"}").toObject(VirtualMachinePowerOffParameters.class); + Assertions.assertEquals(SkipShutdown.FALSE, model.skipShutdown()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualMachinePowerOffParameters model - = new VirtualMachinePowerOffParameters().withSkipShutdown(SkipShutdown.TRUE); + = new VirtualMachinePowerOffParameters().withSkipShutdown(SkipShutdown.FALSE); model = BinaryData.fromObject(model).toObject(VirtualMachinePowerOffParameters.class); - Assertions.assertEquals(SkipShutdown.TRUE, model.skipShutdown()); + Assertions.assertEquals(SkipShutdown.FALSE, model.skipShutdown()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteMockTests.java deleted file mode 100644 index 8735743b69ecb..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VirtualMachinesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.virtualMachines().delete("sx", "fo", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffMockTests.java deleted file mode 100644 index a71270ec01fe0..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesPowerOffMockTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import com.azure.resourcemanager.networkcloud.models.SkipShutdown; -import com.azure.resourcemanager.networkcloud.models.VirtualMachinePowerOffParameters; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VirtualMachinesPowerOffMockTests { - @Test - public void testPowerOff() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"zfova\",\"resourceId\":\"rvaprtgelgwe\",\"name\":\"kfyaqandmymnq\",\"status\":\"qjumovs\",\"percentComplete\":99.1592,\"startTime\":\"2021-07-04T13:36:07Z\",\"endTime\":\"2021-07-05T03:23:03Z\",\"operations\":[{\"id\":\"mfmvsmc\",\"resourceId\":\"xfaxdtnq\",\"name\":\"bsat\",\"status\":\"oiauesugmocpcj\",\"percentComplete\":19.800335,\"startTime\":\"2021-09-12T18:19:26Z\",\"endTime\":\"2021-09-30T20:45:51Z\",\"operations\":[{\"id\":\"wfldsiuorinik\",\"resourceId\":\"dpk\",\"name\":\"iwm\",\"status\":\"tmqrxrzqv\",\"percentComplete\":79.912384,\"startTime\":\"2021-05-04T07:33:29Z\",\"endTime\":\"2020-12-22T20:01:34Z\",\"operations\":[{\"status\":\"tg\"},{\"status\":\"bxiqahragpxmibpl\"}]},{\"id\":\"o\",\"resourceId\":\"yefqmwovyztx\",\"name\":\"omfpb\",\"status\":\"ceeg\",\"percentComplete\":76.99202,\"startTime\":\"2021-03-19T02:35:38Z\",\"endTime\":\"2021-06-22T16:53:33Z\",\"operations\":[{\"status\":\"nji\"},{\"status\":\"l\"},{\"status\":\"kkreh\"}]},{\"id\":\"mjodu\",\"resourceId\":\"vulxfar\",\"name\":\"vjlgdez\",\"status\":\"jqwahoyi\",\"percentComplete\":24.621027,\"startTime\":\"2021-05-10T10:57:12Z\",\"endTime\":\"2021-03-12T00:08:49Z\",\"operations\":[{\"status\":\"wtc\"}]},{\"id\":\"dn\",\"resourceId\":\"vbooqbmdqrxy\",\"name\":\"ae\",\"status\":\"scflwtjdtlri\",\"percentComplete\":15.551186,\"startTime\":\"2021-01-15T17:14:16Z\",\"endTime\":\"2021-06-05T19:31:26Z\",\"operations\":[{\"status\":\"dtzcqi\"},{\"status\":\"sdudgcoz\"},{\"status\":\"omehx\"},{\"status\":\"antolamlbijuxkq\"}]}]},{\"id\":\"i\",\"resourceId\":\"wdtgckzdqiqdl\",\"name\":\"trkwxo\",\"status\":\"uwxsuykznhrfgsl\",\"percentComplete\":76.29438,\"startTime\":\"2021-03-17T10:19:29Z\",\"endTime\":\"2021-04-04T13:51:46Z\",\"operations\":[{\"id\":\"huioaeoc\",\"resourceId\":\"jtfeyvkbdgddkr\",\"name\":\"ccxbeuuqutkz\",\"status\":\"tjwwg\",\"percentComplete\":63.36705,\"startTime\":\"2021-05-01T01:18:11Z\",\"endTime\":\"2020-12-25T15:40:25Z\",\"operations\":[{\"status\":\"nondegjdyd\"}]},{\"id\":\"kkbjuckcatuq\",\"resourceId\":\"powcnxtpzdlys\",\"name\":\"dtoakatpryt\",\"status\":\"rhzbqfdpfaw\",\"percentComplete\":82.89093,\"startTime\":\"2021-06-23T18:35:29Z\",\"endTime\":\"2021-03-06T14:26:54Z\",\"operations\":[{\"status\":\"utzcttbqgdirda\"},{\"status\":\"m\"}]},{\"id\":\"gcfjfxtbwjjirmu\",\"resourceId\":\"gftt\",\"name\":\"ofgeoagf\",\"status\":\"oftnxodwxm\",\"percentComplete\":93.54171,\"startTime\":\"2021-06-01T19:09:40Z\",\"endTime\":\"2021-01-22T01:23:44Z\",\"operations\":[{\"status\":\"sevmdmzenlrstg\"},{\"status\":\"czljdnci\"}]}]},{\"id\":\"amyyznmrgcdogcv\",\"resourceId\":\"gytoxuwhtt\",\"name\":\"qsaqmebgszplu\",\"status\":\"dekpdzzmssg\",\"percentComplete\":98.44238,\"startTime\":\"2021-09-27T12:48:36Z\",\"endTime\":\"2020-12-25T21:06:22Z\",\"operations\":[{\"id\":\"bdqzsqunycwz\",\"resourceId\":\"vvw\",\"name\":\"mrkkyjtr\",\"status\":\"pwpwfkcauxuva\",\"percentComplete\":36.006676,\"startTime\":\"2021-01-12T22:16:55Z\",\"endTime\":\"2021-01-27T14:31:15Z\",\"operations\":[{\"status\":\"ckcl\"},{\"status\":\"txluevs\"},{\"status\":\"lzwilfngojf\"},{\"status\":\"qebuuxjxhfxfjwp\"}]},{\"id\":\"tpmbmxbmbrwgz\",\"resourceId\":\"ljbkhxsdplau\",\"name\":\"dmhweqjfyxydgto\",\"status\":\"vq\",\"percentComplete\":52.457535,\"startTime\":\"2021-09-14T09:59:06Z\",\"endTime\":\"2021-05-30T12:55:16Z\",\"operations\":[{\"status\":\"vxakglh\"},{\"status\":\"ses\"},{\"status\":\"fga\"},{\"status\":\"qiy\"}]}]},{\"id\":\"gdhyhgoq\",\"resourceId\":\"oyqyxyjrcbqpb\",\"name\":\"pglqjo\",\"status\":\"tdahneaoovtyjzti\",\"percentComplete\":70.834885,\"startTime\":\"2021-06-17T15:12:27Z\",\"endTime\":\"2021-10-22T05:39:36Z\",\"operations\":[{\"id\":\"fsr\",\"resourceId\":\"uklajvcfoc\",\"name\":\"apejovtkwx\",\"status\":\"hwhhnoyrzaaoe\",\"percentComplete\":26.431053,\"startTime\":\"2021-11-18T14:44:42Z\",\"endTime\":\"2021-08-16T00:53:56Z\",\"operations\":[{\"status\":\"eat\"},{\"status\":\"axxcrxoxdj\"}]},{\"id\":\"n\",\"resourceId\":\"yyi\",\"name\":\"kd\",\"status\":\"lrndwdbvxvza\",\"percentComplete\":25.453287,\"startTime\":\"2021-10-20T20:05:42Z\",\"endTime\":\"2021-01-09T13:50:06Z\",\"operations\":[{\"status\":\"nkfthmcxqqxmyz\"},{\"status\":\"laoanpohrvmz\"},{\"status\":\"qr\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response = manager.virtualMachines() - .powerOff("uworimmov", "wdehk", new VirtualMachinePowerOffParameters().withSkipShutdown(SkipShutdown.TRUE), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zfova", response.id()); - Assertions.assertEquals("kfyaqandmymnq", response.name()); - Assertions.assertEquals("qjumovs", response.status()); - Assertions.assertEquals(99.1592F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-04T13:36:07Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-05T03:23:03Z"), response.endTime()); - Assertions.assertEquals("mfmvsmc", response.operations().get(0).id()); - Assertions.assertEquals("bsat", response.operations().get(0).name()); - Assertions.assertEquals("oiauesugmocpcj", response.operations().get(0).status()); - Assertions.assertEquals(19.800335F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-12T18:19:26Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-30T20:45:51Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("wfldsiuorinik", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("iwm", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("tmqrxrzqv", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(79.912384F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T07:33:29Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-22T20:01:34Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("tg", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageMockTests.java deleted file mode 100644 index fd652aa22686d..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesReimageMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VirtualMachinesReimageMockTests { - @Test - public void testReimage() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"hjqjpv\",\"resourceId\":\"ihxjtgzgtai\",\"name\":\"b\",\"status\":\"groigbsfsgsa\",\"percentComplete\":4.055786,\"startTime\":\"2021-02-21T16:42:49Z\",\"endTime\":\"2021-10-07T09:17:53Z\",\"operations\":[{\"id\":\"qlxspmrj\",\"resourceId\":\"ryldsxeb\",\"name\":\"sxrznmg\",\"status\":\"daluy\",\"percentComplete\":21.716427,\"startTime\":\"2021-03-17T07:43:50Z\",\"endTime\":\"2021-10-19T14:14:31Z\",\"operations\":[{\"id\":\"uerbgpxebjl\",\"resourceId\":\"caytujraxdtpryj\",\"name\":\"tnsewou\",\"status\":\"ly\",\"percentComplete\":78.11937,\"startTime\":\"2021-09-28T10:44:47Z\",\"endTime\":\"2021-11-21T20:30:05Z\",\"operations\":[{\"status\":\"kepo\"},{\"status\":\"ehqqylm\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response - = manager.virtualMachines().reimage("ivznllas", "k", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hjqjpv", response.id()); - Assertions.assertEquals("b", response.name()); - Assertions.assertEquals("groigbsfsgsa", response.status()); - Assertions.assertEquals(4.055786F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-21T16:42:49Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-07T09:17:53Z"), response.endTime()); - Assertions.assertEquals("qlxspmrj", response.operations().get(0).id()); - Assertions.assertEquals("sxrznmg", response.operations().get(0).name()); - Assertions.assertEquals("daluy", response.operations().get(0).status()); - Assertions.assertEquals(21.716427F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T07:43:50Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-19T14:14:31Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("uerbgpxebjl", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("tnsewou", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("ly", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(78.11937F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-28T10:44:47Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T20:30:05Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("kepo", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartMockTests.java deleted file mode 100644 index 4f284d5bcec57..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesRestartMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VirtualMachinesRestartMockTests { - @Test - public void testRestart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"kxerxxx\",\"resourceId\":\"eehk\",\"name\":\"wgomvvhxow\",\"status\":\"c\",\"percentComplete\":15.02164,\"startTime\":\"2021-07-31T22:42:59Z\",\"endTime\":\"2021-01-03T20:16:37Z\",\"operations\":[{\"id\":\"wbmpspfeylqloc\",\"resourceId\":\"ujexayglxrk\",\"name\":\"nmzpas\",\"status\":\"avxjfiuofpiei\",\"percentComplete\":13.99284,\"startTime\":\"2021-11-20T07:29:01Z\",\"endTime\":\"2021-06-24T17:45:24Z\",\"operations\":[{\"id\":\"opac\",\"resourceId\":\"hydv\",\"name\":\"mfngpmillxgjsci\",\"status\":\"wgsoriobijeiydy\",\"percentComplete\":58.741135,\"startTime\":\"2021-06-30T16:18:41Z\",\"endTime\":\"2021-01-30T20:03:07Z\",\"operations\":[{\"status\":\"yrgwy\"},{\"status\":\"ri\"}]},{\"id\":\"weoftnorw\",\"resourceId\":\"gsioc\",\"name\":\"kmv\",\"status\":\"a\",\"percentComplete\":24.349243,\"startTime\":\"2021-04-14T08:01:15Z\",\"endTime\":\"2021-05-30T09:27:09Z\",\"operations\":[{\"status\":\"jnwosst\"}]},{\"id\":\"tvlxxzqfcwr\",\"resourceId\":\"omxeezwyhjmb\",\"name\":\"qegm\",\"status\":\"db\",\"percentComplete\":11.82003,\"startTime\":\"2021-11-16T03:21:26Z\",\"endTime\":\"2021-10-28T18:01:39Z\",\"operations\":[{\"status\":\"dkgd\"}]},{\"id\":\"z\",\"resourceId\":\"anzbjekwuyckyvn\",\"name\":\"smuffiwjb\",\"status\":\"tvbpzujqj\",\"percentComplete\":14.829654,\"startTime\":\"2021-01-15T10:39:13Z\",\"endTime\":\"2021-10-26T20:39:49Z\",\"operations\":[{\"status\":\"slhwuusieckty\"},{\"status\":\"h\"},{\"status\":\"uxidhhxomilddxj\"}]}]},{\"id\":\"xwjwilm\",\"resourceId\":\"sl\",\"name\":\"teptwujjzgxqgqwl\",\"status\":\"rhgtvhv\",\"percentComplete\":39.35091,\"startTime\":\"2021-07-30T10:08:24Z\",\"endTime\":\"2021-08-25T02:49:35Z\",\"operations\":[{\"id\":\"ozejo\",\"resourceId\":\"korvvm\",\"name\":\"cof\",\"status\":\"qhlbsnosnqliwkm\",\"percentComplete\":4.292619,\"startTime\":\"2021-02-02T13:01:19Z\",\"endTime\":\"2021-08-11T13:39:15Z\",\"operations\":[{\"status\":\"htgmknazgbj\"},{\"status\":\"hrp\"}]},{\"id\":\"sttcucrcmm\",\"resourceId\":\"xp\",\"name\":\"iwifhbk\",\"status\":\"ldtt\",\"percentComplete\":51.837635,\"startTime\":\"2021-10-19T06:31:48Z\",\"endTime\":\"2021-08-05T21:26:21Z\",\"operations\":[{\"status\":\"tgs\"}]}]},{\"id\":\"vllrhtpmglxk\",\"resourceId\":\"km\",\"name\":\"awr\",\"status\":\"kzawbunmpaklwzlw\",\"percentComplete\":78.60771,\"startTime\":\"2021-06-17T22:30:27Z\",\"endTime\":\"2021-02-04T22:42:16Z\",\"operations\":[{\"id\":\"kaszfjsxscbdu\",\"resourceId\":\"pg\",\"name\":\"qebmvrdjomlnwsb\",\"status\":\"vdlsflxkqesdfeds\",\"percentComplete\":56.19114,\"startTime\":\"2021-11-11T01:48:52Z\",\"endTime\":\"2021-04-11T01:16:12Z\",\"operations\":[{\"status\":\"mphymcqidkl\"},{\"status\":\"vdhqnufbxw\"},{\"status\":\"iibntojo\"},{\"status\":\"fnybydhuihaouw\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response - = manager.virtualMachines().restart("jwd", "dl", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kxerxxx", response.id()); - Assertions.assertEquals("wgomvvhxow", response.name()); - Assertions.assertEquals("c", response.status()); - Assertions.assertEquals(15.02164F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T22:42:59Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T20:16:37Z"), response.endTime()); - Assertions.assertEquals("wbmpspfeylqloc", response.operations().get(0).id()); - Assertions.assertEquals("nmzpas", response.operations().get(0).name()); - Assertions.assertEquals("avxjfiuofpiei", response.operations().get(0).status()); - Assertions.assertEquals(13.99284F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-20T07:29:01Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T17:45:24Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("opac", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("mfngpmillxgjsci", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("wgsoriobijeiydy", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(58.741135F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T16:18:41Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-30T20:03:07Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("yrgwy", response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartMockTests.java deleted file mode 100644 index 7fea577328648..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VirtualMachinesStartMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import com.azure.resourcemanager.networkcloud.models.OperationStatusResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VirtualMachinesStartMockTests { - @Test - public void testStart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr - = "{\"id\":\"gejcvjkjyczc\",\"resourceId\":\"age\",\"name\":\"jdyol\",\"status\":\"eqyxqfmzsiz\",\"percentComplete\":63.244267,\"startTime\":\"2021-06-25T15:18:38Z\",\"endTime\":\"2021-04-23T04:26:45Z\",\"operations\":[{\"id\":\"ymgqbgcx\",\"resourceId\":\"qxgzxler\",\"name\":\"merghski\",\"status\":\"hnp\",\"percentComplete\":57.21261,\"startTime\":\"2021-03-02T04:05:56Z\",\"endTime\":\"2021-02-15T10:23:10Z\",\"operations\":[{\"id\":\"l\",\"resourceId\":\"nvtsdydshkpafyal\",\"name\":\"ww\",\"status\":\"izzn\",\"percentComplete\":4.9079537,\"startTime\":\"2021-12-01T15:36:33Z\",\"endTime\":\"2021-04-07T13:51:15Z\",\"operations\":[{\"status\":\"fgufyjfdkqiy\"},{\"status\":\"ndjokgwesymzqh\"},{\"status\":\"qpfzlpejtznxlue\"},{\"status\":\"ujqbbgsimwejl\"}]},{\"id\":\"bpjzobdwbcpraswk\",\"resourceId\":\"ydtnaczkfwfatgaw\",\"name\":\"nskivdwgt\",\"status\":\"cumecsaaqg\",\"percentComplete\":35.443123,\"startTime\":\"2021-09-01T02:27:35Z\",\"endTime\":\"2021-08-02T21:58:18Z\",\"operations\":[{\"status\":\"bskowkr\"},{\"status\":\"hzhrbkhtm\"},{\"status\":\"owiuasfgq\"}]},{\"id\":\"yhfaimqvd\",\"resourceId\":\"ozkgyfpeoehg\",\"name\":\"qmskkixv\",\"status\":\"zjxplhpevasy\",\"percentComplete\":46.632397,\"startTime\":\"2021-10-23T18:44:15Z\",\"endTime\":\"2021-11-03T17:31:08Z\",\"operations\":[{\"status\":\"bqrvvbqv\"},{\"status\":\"nmpecqxgiqasifub\"},{\"status\":\"snstl\"},{\"status\":\"wqpjnxjkhtupsvy\"}]},{\"id\":\"euiyxfwkztsms\",\"resourceId\":\"evyllznfhkqyt\",\"name\":\"tadopgfzdg\",\"status\":\"fcycrsvlo\",\"percentComplete\":4.3409467,\"startTime\":\"2020-12-24T08:37:06Z\",\"endTime\":\"2021-08-07T20:15:24Z\",\"operations\":[{\"status\":\"uqw\"},{\"status\":\"ajquzxpixhyoi\"}]}]},{\"id\":\"bgsosc\",\"resourceId\":\"nezfvbennmfkbpj\",\"name\":\"tekwwnthropm\",\"status\":\"ud\",\"percentComplete\":37.443043,\"startTime\":\"2021-03-10T01:38:22Z\",\"endTime\":\"2021-05-17T15:02:17Z\",\"operations\":[{\"id\":\"jhf\",\"resourceId\":\"cqkoqyouerg\",\"name\":\"hpuzxkpye\",\"status\":\"hfdyldhgye\",\"percentComplete\":42.56546,\"startTime\":\"2021-02-18T09:07:49Z\",\"endTime\":\"2021-05-11T03:44:14Z\",\"operations\":[{\"status\":\"htdereun\"},{\"status\":\"kakzwhpjlwy\"},{\"status\":\"edznmxrfomckewv\"},{\"status\":\"yifop\"}]},{\"id\":\"jt\",\"resourceId\":\"yzoutxfptofh\",\"name\":\"uywezygvadg\",\"status\":\"aqwvkgjpytpmpvdn\",\"percentComplete\":0.2601564,\"startTime\":\"2021-10-27T11:51:17Z\",\"endTime\":\"2021-02-05T02:56:16Z\",\"operations\":[{\"status\":\"rtbnu\"},{\"status\":\"k\"},{\"status\":\"axzs\"}]}]},{\"id\":\"yjisskobq\",\"resourceId\":\"lflioewyhxessm\",\"name\":\"kdpsqeqfbd\",\"status\":\"mdsesbrujbjpp\",\"percentComplete\":18.978035,\"startTime\":\"2021-03-16T17:50:03Z\",\"endTime\":\"2021-01-23T11:21:01Z\",\"operations\":[{\"id\":\"th\",\"resourceId\":\"at\",\"name\":\"jrnm\",\"status\":\"nzqplgtkihonikzs\",\"percentComplete\":4.6403112,\"startTime\":\"2021-09-01T23:39:41Z\",\"endTime\":\"2021-01-01T07:39:09Z\",\"operations\":[{\"status\":\"fbpntogke\"}]},{\"id\":\"khbmcarmoyfxxk\",\"resourceId\":\"kuqdndxlykhkg\",\"name\":\"pvd\",\"status\":\"t\",\"percentComplete\":92.11887,\"startTime\":\"2021-03-18T15:35:52Z\",\"endTime\":\"2021-04-08T11:55:58Z\",\"operations\":[{\"status\":\"rnrnjrcufmbgacnr\"},{\"status\":\"fdtncmspsanma\"},{\"status\":\"eubkqiqmlf\"},{\"status\":\"hlq\"}]},{\"id\":\"kqj\",\"resourceId\":\"pt\",\"name\":\"ipuugkwdrqmr\",\"status\":\"ahuuonjkkxukg\",\"percentComplete\":30.199629,\"startTime\":\"2021-11-04T15:53:15Z\",\"endTime\":\"2021-02-23T21:43:03Z\",\"operations\":[{\"status\":\"gcjojlleui\"},{\"status\":\"pmtonvhgnhtm\"},{\"status\":\"plhbpjbapmummmkv\"}]}]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationStatusResult response - = manager.virtualMachines().start("aorhjkehwvumo", "qircamqprlob", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("gejcvjkjyczc", response.id()); - Assertions.assertEquals("jdyol", response.name()); - Assertions.assertEquals("eqyxqfmzsiz", response.status()); - Assertions.assertEquals(63.244267F, response.percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T15:18:38Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-23T04:26:45Z"), response.endTime()); - Assertions.assertEquals("ymgqbgcx", response.operations().get(0).id()); - Assertions.assertEquals("merghski", response.operations().get(0).name()); - Assertions.assertEquals("hnp", response.operations().get(0).status()); - Assertions.assertEquals(57.21261F, response.operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-02T04:05:56Z"), response.operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-15T10:23:10Z"), response.operations().get(0).endTime()); - Assertions.assertEquals("l", response.operations().get(0).operations().get(0).id()); - Assertions.assertEquals("ww", response.operations().get(0).operations().get(0).name()); - Assertions.assertEquals("izzn", response.operations().get(0).operations().get(0).status()); - Assertions.assertEquals(4.9079537F, response.operations().get(0).operations().get(0).percentComplete()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T15:36:33Z"), - response.operations().get(0).operations().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-07T13:51:15Z"), - response.operations().get(0).operations().get(0).endTime()); - Assertions.assertEquals("fgufyjfdkqiy", - response.operations().get(0).operations().get(0).operations().get(0).status()); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java index 4abdb82cc4117..8a96fc6d8d286 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeInnerTests.java @@ -15,27 +15,27 @@ public final class VolumeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeInner model = BinaryData.fromString( - "{\"extendedLocation\":{\"name\":\"qzinkfkbg\",\"type\":\"z\"},\"properties\":{\"attachedTo\":[\"xeqoc\",\"jmygvk\",\"qkjjeokbz\",\"fezrx\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"rtle\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"bkwvzg\",\"sizeMiB\":3286584437525688934},\"location\":\"fbzdixzmqpnoda\",\"tags\":{\"tmcg\":\"qhewj\"},\"id\":\"bostzel\",\"name\":\"dlat\",\"type\":\"tmzlbiojlv\"}") + "{\"extendedLocation\":{\"name\":\"zzjgehkfki\",\"type\":\"rtixokff\"},\"properties\":{\"attachedTo\":[\"nljqepqwhixmons\",\"shiy\",\"gvelfc\",\"du\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"rds\",\"provisioningState\":\"Canceled\",\"serialNumber\":\"o\",\"sizeMiB\":6517518115426729228},\"location\":\"stmninwjizcilng\",\"tags\":{\"jjtbxqmuluxlxqz\":\"h\",\"cucrwnamikze\":\"nersb\",\"fuhok\":\"rqbsmswziq\"},\"id\":\"ruswhv\",\"name\":\"czznvfbycjsxj\",\"type\":\"wix\"}") .toObject(VolumeInner.class); - Assertions.assertEquals("fbzdixzmqpnoda", model.location()); - Assertions.assertEquals("qhewj", model.tags().get("tmcg")); - Assertions.assertEquals("qzinkfkbg", model.extendedLocation().name()); - Assertions.assertEquals("z", model.extendedLocation().type()); - Assertions.assertEquals(3286584437525688934L, model.sizeMiB()); + Assertions.assertEquals("stmninwjizcilng", model.location()); + Assertions.assertEquals("h", model.tags().get("jjtbxqmuluxlxqz")); + Assertions.assertEquals("zzjgehkfki", model.extendedLocation().name()); + Assertions.assertEquals("rtixokff", model.extendedLocation().type()); + Assertions.assertEquals(6517518115426729228L, model.sizeMiB()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeInner model = new VolumeInner().withLocation("fbzdixzmqpnoda") - .withTags(mapOf("tmcg", "qhewj")) - .withExtendedLocation(new ExtendedLocation().withName("qzinkfkbg").withType("z")) - .withSizeMiB(3286584437525688934L); + VolumeInner model = new VolumeInner().withLocation("stmninwjizcilng") + .withTags(mapOf("jjtbxqmuluxlxqz", "h", "cucrwnamikze", "nersb", "fuhok", "rqbsmswziq")) + .withExtendedLocation(new ExtendedLocation().withName("zzjgehkfki").withType("rtixokff")) + .withSizeMiB(6517518115426729228L); model = BinaryData.fromObject(model).toObject(VolumeInner.class); - Assertions.assertEquals("fbzdixzmqpnoda", model.location()); - Assertions.assertEquals("qhewj", model.tags().get("tmcg")); - Assertions.assertEquals("qzinkfkbg", model.extendedLocation().name()); - Assertions.assertEquals("z", model.extendedLocation().type()); - Assertions.assertEquals(3286584437525688934L, model.sizeMiB()); + Assertions.assertEquals("stmninwjizcilng", model.location()); + Assertions.assertEquals("h", model.tags().get("jjtbxqmuluxlxqz")); + Assertions.assertEquals("zzjgehkfki", model.extendedLocation().name()); + Assertions.assertEquals("rtixokff", model.extendedLocation().type()); + Assertions.assertEquals(6517518115426729228L, model.sizeMiB()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java index 0b5abfaa69ab2..d3174ca37f2db 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumeListTests.java @@ -17,30 +17,48 @@ public final class VolumeListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeList model = BinaryData.fromString( - "{\"nextLink\":\"hcmavmqfo\",\"value\":[{\"extendedLocation\":{\"name\":\"rhc\",\"type\":\"yyprotwyp\"},\"properties\":{\"attachedTo\":[\"mbxhugcmjkav\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"bmftpmdt\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"tfvnz\",\"sizeMiB\":1221267442521821688},\"location\":\"otp\",\"tags\":{\"ihed\":\"vpbdbzqgq\",\"mkyi\":\"vqwt\",\"qcwdhoh\":\"cysihs\",\"sufco\":\"dtmcd\"},\"id\":\"dxbzlmcmuap\",\"name\":\"vhdbevwqqxey\",\"type\":\"ko\"}]}") + "{\"nextLink\":\"zid\",\"value\":[{\"extendedLocation\":{\"name\":\"aabzmif\",\"type\":\"ygznmmaxrizk\"},\"properties\":{\"attachedTo\":[\"gopxlhslnelxie\",\"xynl\",\"xecwcro\"],\"detailedStatus\":\"Active\",\"detailedStatusMessage\":\"lhc\",\"provisioningState\":\"Failed\",\"serialNumber\":\"tifdwfmvi\",\"sizeMiB\":2572871112622021825},\"location\":\"jbt\",\"tags\":{\"fhonqjujeickpzvc\":\"raglk\"},\"id\":\"opmx\",\"name\":\"lnwcltyjed\",\"type\":\"xxmlfmkqscazua\"},{\"extendedLocation\":{\"name\":\"xtzx\",\"type\":\"uamwabzxrvxc\"},\"properties\":{\"attachedTo\":[\"sphaivmxyasflvg\",\"gzwywak\",\"ihknsmjbl\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"lnymzotqy\",\"provisioningState\":\"Accepted\",\"serialNumber\":\"cbm\",\"sizeMiB\":2876121281979781425},\"location\":\"mv\",\"tags\":{\"nsup\":\"tayx\",\"oibgsxg\":\"ujlzqnhcvsqltn\",\"dbxiqx\":\"xfyqonmpqoxwdo\",\"htmwwinh\":\"iiqbi\"},\"id\":\"hfqpofv\",\"name\":\"bcblemb\",\"type\":\"kbwvqvxkdiv\"},{\"extendedLocation\":{\"name\":\"ihebwtsw\",\"type\":\"zuwfmdur\"},\"properties\":{\"attachedTo\":[\"gi\",\"vcjfelisdjubggb\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"xkbsazgakgac\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"jdmspofapvuhryln\",\"sizeMiB\":5973350387675876264},\"location\":\"zgb\",\"tags\":{\"nlvxbcuii\":\"dmstk\"},\"id\":\"nktwfansnvpdibmi\",\"name\":\"ostbzbkiwb\",\"type\":\"qnyophzfyls\"},{\"extendedLocation\":{\"name\":\"crpfbcunez\",\"type\":\"cez\"},\"properties\":{\"attachedTo\":[\"w\",\"fwlwxjwetnps\",\"hclafzvaylptrs\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"tcmwqkchc\",\"provisioningState\":\"Accepted\",\"serialNumber\":\"fewz\",\"sizeMiB\":2734356009177202328},\"location\":\"xfdeqvhpsyl\",\"tags\":{\"zjrgyww\":\"hkbffmbm\"},\"id\":\"gjxsnptfu\",\"name\":\"gicgaaoepttaq\",\"type\":\"tdewemxswvruu\"}]}") .toObject(VolumeList.class); - Assertions.assertEquals("hcmavmqfo", model.nextLink()); - Assertions.assertEquals("otp", model.value().get(0).location()); - Assertions.assertEquals("vpbdbzqgq", model.value().get(0).tags().get("ihed")); - Assertions.assertEquals("rhc", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("yyprotwyp", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(1221267442521821688L, model.value().get(0).sizeMiB()); + Assertions.assertEquals("zid", model.nextLink()); + Assertions.assertEquals("jbt", model.value().get(0).location()); + Assertions.assertEquals("raglk", model.value().get(0).tags().get("fhonqjujeickpzvc")); + Assertions.assertEquals("aabzmif", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("ygznmmaxrizk", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(2572871112622021825L, model.value().get(0).sizeMiB()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeList model = new VolumeList().withNextLink("hcmavmqfo") - .withValue(Arrays.asList(new VolumeInner().withLocation("otp") - .withTags(mapOf("ihed", "vpbdbzqgq", "mkyi", "vqwt", "qcwdhoh", "cysihs", "sufco", "dtmcd")) - .withExtendedLocation(new ExtendedLocation().withName("rhc").withType("yyprotwyp")) - .withSizeMiB(1221267442521821688L))); + VolumeList model + = new VolumeList().withNextLink("zid") + .withValue( + Arrays + .asList( + new VolumeInner().withLocation("jbt") + .withTags(mapOf("fhonqjujeickpzvc", "raglk")) + .withExtendedLocation( + new ExtendedLocation().withName("aabzmif").withType("ygznmmaxrizk")) + .withSizeMiB(2572871112622021825L), + new VolumeInner().withLocation("mv") + .withTags(mapOf("nsup", "tayx", "oibgsxg", "ujlzqnhcvsqltn", "dbxiqx", "xfyqonmpqoxwdo", + "htmwwinh", "iiqbi")) + .withExtendedLocation(new ExtendedLocation().withName("xtzx").withType("uamwabzxrvxc")) + .withSizeMiB(2876121281979781425L), + new VolumeInner().withLocation("zgb") + .withTags(mapOf("nlvxbcuii", "dmstk")) + .withExtendedLocation(new ExtendedLocation().withName("ihebwtsw").withType("zuwfmdur")) + .withSizeMiB(5973350387675876264L), + new VolumeInner().withLocation("xfdeqvhpsyl") + .withTags(mapOf("zjrgyww", "hkbffmbm")) + .withExtendedLocation(new ExtendedLocation().withName("crpfbcunez").withType("cez")) + .withSizeMiB(2734356009177202328L))); model = BinaryData.fromObject(model).toObject(VolumeList.class); - Assertions.assertEquals("hcmavmqfo", model.nextLink()); - Assertions.assertEquals("otp", model.value().get(0).location()); - Assertions.assertEquals("vpbdbzqgq", model.value().get(0).tags().get("ihed")); - Assertions.assertEquals("rhc", model.value().get(0).extendedLocation().name()); - Assertions.assertEquals("yyprotwyp", model.value().get(0).extendedLocation().type()); - Assertions.assertEquals(1221267442521821688L, model.value().get(0).sizeMiB()); + Assertions.assertEquals("zid", model.nextLink()); + Assertions.assertEquals("jbt", model.value().get(0).location()); + Assertions.assertEquals("raglk", model.value().get(0).tags().get("fhonqjujeickpzvc")); + Assertions.assertEquals("aabzmif", model.value().get(0).extendedLocation().name()); + Assertions.assertEquals("ygznmmaxrizk", model.value().get(0).extendedLocation().type()); + Assertions.assertEquals(2572871112622021825L, model.value().get(0).sizeMiB()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.java index 4ee0b536b594c..c0fc9af6ed9cb 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePatchParametersTests.java @@ -13,16 +13,18 @@ public final class VolumePatchParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VolumePatchParameters model - = BinaryData.fromString("{\"tags\":{\"ejchcsrlz\":\"vdulajv\"}}").toObject(VolumePatchParameters.class); - Assertions.assertEquals("vdulajv", model.tags().get("ejchcsrlz")); + VolumePatchParameters model = BinaryData.fromString( + "{\"tags\":{\"efjokn\":\"vpbbt\",\"biqmrjgei\":\"sqyzqedikdfr\",\"iwzcxmjpbyeph\":\"fqlggw\",\"ljvrcmyfqipgxhnp\":\"gt\"}}") + .toObject(VolumePatchParameters.class); + Assertions.assertEquals("vpbbt", model.tags().get("efjokn")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumePatchParameters model = new VolumePatchParameters().withTags(mapOf("ejchcsrlz", "vdulajv")); + VolumePatchParameters model = new VolumePatchParameters().withTags( + mapOf("efjokn", "vpbbt", "biqmrjgei", "sqyzqedikdfr", "iwzcxmjpbyeph", "fqlggw", "ljvrcmyfqipgxhnp", "gt")); model = BinaryData.fromObject(model).toObject(VolumePatchParameters.class); - Assertions.assertEquals("vdulajv", model.tags().get("ejchcsrlz")); + Assertions.assertEquals("vpbbt", model.tags().get("efjokn")); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.java index aa230dd185536..99200a5bb9e0c 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumePropertiesTests.java @@ -12,15 +12,15 @@ public final class VolumePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeProperties model = BinaryData.fromString( - "{\"attachedTo\":[\"bbpneqvcwwy\",\"urmochpprprs\",\"mo\",\"ayzejnhlbkpbz\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"ljhah\",\"provisioningState\":\"Failed\",\"serialNumber\":\"h\",\"sizeMiB\":2977319405795581090}") + "{\"attachedTo\":[\"mwmxqhndvnoamld\",\"ehaohdjhh\",\"lzok\"],\"detailedStatus\":\"Active\",\"detailedStatusMessage\":\"pelnjetag\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"oatftgzpnpbswvef\",\"sizeMiB\":4618412568298030001}") .toObject(VolumeProperties.class); - Assertions.assertEquals(2977319405795581090L, model.sizeMiB()); + Assertions.assertEquals(4618412568298030001L, model.sizeMiB()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VolumeProperties model = new VolumeProperties().withSizeMiB(2977319405795581090L); + VolumeProperties model = new VolumeProperties().withSizeMiB(4618412568298030001L); model = BinaryData.fromObject(model).toObject(VolumeProperties.class); - Assertions.assertEquals(2977319405795581090L, model.sizeMiB()); + Assertions.assertEquals(4618412568298030001L, model.sizeMiB()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java index 7d19d6524d867..3cf7c2fb9146a 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesCreateOrUpdateMockTests.java @@ -6,66 +6,47 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.ExtendedLocation; import com.azure.resourcemanager.networkcloud.models.Volume; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class VolumesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"kvbos\",\"type\":\"jfdizhrjqfya\"},\"properties\":{\"attachedTo\":[\"slyekcgn\",\"uarlcjiwgsxfaioc\",\"dgujjgnfgrzxbarc\",\"paefzqsy\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"njcytesmfucrtfod\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"uzmzivrtrfzh\",\"sizeMiB\":4810474092378413108},\"location\":\"hjud\",\"tags\":{\"xbqssgfenffdxbvw\":\"yrudmahswtvd\"},\"id\":\"qjchivd\",\"name\":\"ija\",\"type\":\"xndmuvar\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"ypdvrbkerdkdkga\",\"type\":\"qwjxi\"},\"properties\":{\"attachedTo\":[\"kc\",\"feygzqp\",\"oisfmnaybdjn\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"ntqontwhym\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"lwivqt\",\"sizeMiB\":7032795320572505561},\"location\":\"lsycoyb\",\"tags\":{\"qwmchqohtfxc\":\"squbfajcywh\"},\"id\":\"up\",\"name\":\"kiymjzpwd\",\"type\":\"vwtiwsmosa\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); Volume response = manager.volumes() - .define("zkgtzqn") - .withRegion("nrjdszdbu") - .withExistingResourceGroup("pkvegeatt") - .withExtendedLocation(new ExtendedLocation().withName("qsttewuvcysjeuf").withType("x")) - .withSizeMiB(2762545810950883647L) - .withTags(mapOf("fwjnoxuoxtfn", "iqppoqvgpnewuh", "gvsnv", "essfepgckncj", "mjymjnh", "tqdx")) + .define("h") + .withRegion("ftr") + .withExistingResourceGroup("eqfky") + .withExtendedLocation(new ExtendedLocation().withName("wvjaq").withType("pbyynvskpajbm")) + .withSizeMiB(2532382634180545589L) + .withTags(mapOf("muifmuadjnfsn", "jdaahuqimldahlfx", "gztlcgc", "skiioshjgczetybn", "hfjv", "j")) .create(); - Assertions.assertEquals("hjud", response.location()); - Assertions.assertEquals("yrudmahswtvd", response.tags().get("xbqssgfenffdxbvw")); - Assertions.assertEquals("kvbos", response.extendedLocation().name()); - Assertions.assertEquals("jfdizhrjqfya", response.extendedLocation().type()); - Assertions.assertEquals(4810474092378413108L, response.sizeMiB()); + Assertions.assertEquals("lsycoyb", response.location()); + Assertions.assertEquals("squbfajcywh", response.tags().get("qwmchqohtfxc")); + Assertions.assertEquals("ypdvrbkerdkdkga", response.extendedLocation().name()); + Assertions.assertEquals("qwjxi", response.extendedLocation().type()); + Assertions.assertEquals(7032795320572505561L, response.sizeMiB()); } // Use "Map.of" if available diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteMockTests.java deleted file mode 100644 index e17006b152077..0000000000000 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesDeleteMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.networkcloud.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.networkcloud.NetworkCloudManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class VolumesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - NetworkCloudManager manager = NetworkCloudManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.volumes().delete("rehkunsbfjhh", "w", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.java index a339aa0205922..bed3fb88815b1 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesGetByResourceGroupWithResponseMockTests.java @@ -6,57 +6,38 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.Volume; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class VolumesGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"extendedLocation\":{\"name\":\"j\",\"type\":\"zezbjes\"},\"properties\":{\"attachedTo\":[\"lurb\",\"fygpnyhgd\",\"uqs\"],\"detailedStatus\":\"Active\",\"detailedStatusMessage\":\"yvouprsytq\",\"provisioningState\":\"Failed\",\"serialNumber\":\"hmgw\",\"sizeMiB\":2793228844058127263},\"location\":\"rxpfdui\",\"tags\":{\"zluczdq\":\"gyqvpbfjpoqzuc\",\"zielbprnq\":\"urbormvh\",\"mnwsvh\":\"jywzcqyg\"},\"id\":\"ngqiw\",\"name\":\"ejto\",\"type\":\"drrp\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"extendedLocation\":{\"name\":\"tlepowavvqxua\",\"type\":\"g\"},\"properties\":{\"attachedTo\":[\"ulynkgfcfd\",\"uws\",\"kxx\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"uulriqbyokvj\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"x\",\"sizeMiB\":1914561130405499807},\"location\":\"lttfyhc\",\"tags\":{\"fpbpgnrholhujbfw\":\"suoardnagttp\",\"whdmcvhtbbz\":\"iplkysolsyjprxs\",\"ihotjecohmxv\":\"hfvhuwzbxpcqz\",\"xwieexuyade\":\"lrrskap\"},\"id\":\"ltfokyksyim\",\"name\":\"ccgrvkcxzznn\",\"type\":\"i\"}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); Volume response = manager.volumes() - .getByResourceGroupWithResponse("hqmomfeco", "kfrocgbmxl", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("ucbdaom", "wiinjdllw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rxpfdui", response.location()); - Assertions.assertEquals("gyqvpbfjpoqzuc", response.tags().get("zluczdq")); - Assertions.assertEquals("j", response.extendedLocation().name()); - Assertions.assertEquals("zezbjes", response.extendedLocation().type()); - Assertions.assertEquals(2793228844058127263L, response.sizeMiB()); + Assertions.assertEquals("lttfyhc", response.location()); + Assertions.assertEquals("suoardnagttp", response.tags().get("fpbpgnrholhujbfw")); + Assertions.assertEquals("tlepowavvqxua", response.extendedLocation().name()); + Assertions.assertEquals("g", response.extendedLocation().type()); + Assertions.assertEquals(1914561130405499807L, response.sizeMiB()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java index b527c0999f3a5..159d16ed302e8 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListByResourceGroupMockTests.java @@ -6,57 +6,37 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.Volume; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class VolumesListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"wevtjrieikmwla\",\"type\":\"klfnisyxgucbmt\"},\"properties\":{\"attachedTo\":[\"scnnst\",\"cyyuvtzrxzhclec\"],\"detailedStatus\":\"Active\",\"detailedStatusMessage\":\"qzcl\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"u\",\"sizeMiB\":2023919269516413149},\"location\":\"hzgyresgzsd\",\"tags\":{\"hychakvyrfbqvum\":\"byorjplb\",\"xfnzlpq\":\"xqjsiuepm\",\"xef\":\"pf\",\"rtux\":\"ulbl\"},\"id\":\"prhfcaeo\",\"name\":\"ifq\",\"type\":\"ywjflobh\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"bwwzvdajf\",\"type\":\"nncfmaciqgjjrlhi\"},\"properties\":{\"attachedTo\":[\"ixvt\",\"ougu\",\"tnd\",\"pg\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"asualapdlndbea\",\"provisioningState\":\"Accepted\",\"serialNumber\":\"xvvlwyn\",\"sizeMiB\":1187250674252870070},\"location\":\"qvzfj\",\"tags\":{\"mphfkyezolgjzm\":\"ugzfeuzjl\"},\"id\":\"cuydoccnxshanz\",\"name\":\"uiadhbatecaatsdo\",\"type\":\"zn\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.volumes().listByResourceGroup("kaeplrajubowu", com.azure.core.util.Context.NONE); + PagedIterable response = manager.volumes().listByResourceGroup("jsb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hzgyresgzsd", response.iterator().next().location()); - Assertions.assertEquals("byorjplb", response.iterator().next().tags().get("hychakvyrfbqvum")); - Assertions.assertEquals("wevtjrieikmwla", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("klfnisyxgucbmt", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(2023919269516413149L, response.iterator().next().sizeMiB()); + Assertions.assertEquals("qvzfj", response.iterator().next().location()); + Assertions.assertEquals("ugzfeuzjl", response.iterator().next().tags().get("mphfkyezolgjzm")); + Assertions.assertEquals("bwwzvdajf", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("nncfmaciqgjjrlhi", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals(1187250674252870070L, response.iterator().next().sizeMiB()); } } diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java index ca2a1f544c0e3..5bb61feb28696 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/src/test/java/com/azure/resourcemanager/networkcloud/generated/VolumesListMockTests.java @@ -6,45 +6,26 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.networkcloud.NetworkCloudManager; import com.azure.resourcemanager.networkcloud.models.Volume; -import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; public final class VolumesListMockTests { @Test public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - String responseStr - = "{\"value\":[{\"extendedLocation\":{\"name\":\"ggrunozfvualjt\",\"type\":\"oivsdwsngkrf\"},\"properties\":{\"attachedTo\":[\"cjvakmh\"],\"detailedStatus\":\"Error\",\"detailedStatusMessage\":\"a\",\"provisioningState\":\"Succeeded\",\"serialNumber\":\"i\",\"sizeMiB\":5907895514067975579},\"location\":\"x\",\"tags\":{\"pfzsclefyrl\":\"ynuqqkotauratnic\",\"ggnbbuypwovvvsfl\":\"tndqlmf\",\"xrlzhpziha\":\"evnoqayrehjuqwva\",\"fonfdbgm\":\"enqqzlxnqzu\"},\"id\":\"fwmjcwtewfhxwy\",\"name\":\"kbrehzlrynjp\",\"type\":\"ha\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito.when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito.when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito.when(httpClient.send(httpRequest.capture(), Mockito.any())).thenReturn(Mono.defer(() -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); + = "{\"value\":[{\"extendedLocation\":{\"name\":\"yvdgxlyzk\",\"type\":\"itdshezsvkolru\"},\"properties\":{\"attachedTo\":[\"vmozsayebrazwz\",\"pzbtzuyk\",\"kipfsdyepf\",\"ocmbezacf\"],\"detailedStatus\":\"Provisioning\",\"detailedStatusMessage\":\"azwyqejgaaokctgk\",\"provisioningState\":\"Provisioning\",\"serialNumber\":\"qzkcyzm\",\"sizeMiB\":1437328628753102819},\"location\":\"dyfcix\",\"tags\":{\"a\":\"cqvhoejgoiutgwrm\",\"hazyntacihnco\":\"p\",\"mliqmvlb\":\"mip\",\"eaqgrvgpomxpupd\":\"i\"},\"id\":\"sdfjyiesoc\",\"name\":\"iqbuou\",\"type\":\"mpyzgleo\"}]}"; + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); NetworkCloudManager manager = NetworkCloudManager.configure() .withHttpClient(httpClient) .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), @@ -52,10 +33,10 @@ public void testList() throws Exception { PagedIterable response = manager.volumes().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("x", response.iterator().next().location()); - Assertions.assertEquals("ynuqqkotauratnic", response.iterator().next().tags().get("pfzsclefyrl")); - Assertions.assertEquals("ggrunozfvualjt", response.iterator().next().extendedLocation().name()); - Assertions.assertEquals("oivsdwsngkrf", response.iterator().next().extendedLocation().type()); - Assertions.assertEquals(5907895514067975579L, response.iterator().next().sizeMiB()); + Assertions.assertEquals("dyfcix", response.iterator().next().location()); + Assertions.assertEquals("cqvhoejgoiutgwrm", response.iterator().next().tags().get("a")); + Assertions.assertEquals("yvdgxlyzk", response.iterator().next().extendedLocation().name()); + Assertions.assertEquals("itdshezsvkolru", response.iterator().next().extendedLocation().type()); + Assertions.assertEquals(1437328628753102819L, response.iterator().next().sizeMiB()); } } From 86c09e012896bc4dd77ed654f2cb4cd389e3c171 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 21 Nov 2024 00:54:35 -0800 Subject: [PATCH 26/44] Increment package versions for networkcloud releases (#43051) --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-networkcloud/CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-networkcloud/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index b35ee80e86d46..308d57e8bab86 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -438,7 +438,7 @@ com.azure.resourcemanager:azure-resourcemanager-paloaltonetworks-ngfw;1.1.0;1.2. com.azure.resourcemanager:azure-resourcemanager-newrelicobservability;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-qumulo;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-selfhelp;1.0.0;1.1.0-beta.6 -com.azure.resourcemanager:azure-resourcemanager-networkcloud;1.0.0;1.1.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-networkcloud;1.0.0;1.1.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-cosmosdbforpostgresql;1.0.0;1.1.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-managementgroups;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-managednetworkfabric;1.0.0;1.1.0-beta.1 diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md index 75a39684b94f4..640c9b375ab9e 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0-beta.1 (2024-11-21) - Azure Resource Manager NetworkCloud client library for Java. This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml index 17a3179b0156c..de82ab0b18cfd 100644 --- a/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml +++ b/sdk/networkcloud/azure-resourcemanager-networkcloud/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-networkcloud - 1.1.0-beta.1 + 1.1.0-beta.2 jar Microsoft Azure SDK for NetworkCloud Management From a27837caaebfc7bd0f5edb574ecb2972e7e40f61 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 21 Nov 2024 01:19:15 -0800 Subject: [PATCH 27/44] [Automation] Generate Fluent Lite from TypeSpec devopsinfrastructure (#43050) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 82 ++++++++++++++- .../README.md | 2 +- .../SAMPLE.md | 44 +++------ .../pom.xml | 17 ++-- .../DevOpsInfrastructureManager.java | 16 +-- ...DevOpsInfrastructureManagementClient.java} | 4 +- .../fluent/SubscriptionUsagesClient.java | 4 +- .../fluent/models/QuotaInner.java | 20 ++++ ...nfrastructureManagementClientBuilder.java} | 38 +++---- ...psInfrastructureManagementClientImpl.java} | 16 +-- .../ImageVersionsClientImpl.java | 8 +- .../implementation/OperationsClientImpl.java | 8 +- .../implementation/PoolsClientImpl.java | 8 +- .../implementation/QuotaImpl.java | 5 + .../ResourceDetailsClientImpl.java | 8 +- .../implementation/SkusClientImpl.java | 8 +- .../SubscriptionUsagesClientImpl.java | 20 ++-- .../devopsinfrastructure/models/Quota.java | 7 ++ .../models/QuotaName.java | 99 +++++++++++++++++++ .../models/SubscriptionUsages.java | 4 +- .../ImageVersionsListByImageSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- .../generated/PoolsCreateOrUpdateSamples.java | 2 +- .../generated/PoolsDeleteSamples.java | 2 +- .../PoolsGetByResourceGroupSamples.java | 2 +- .../PoolsListByResourceGroupSamples.java | 2 +- .../generated/PoolsListSamples.java | 2 +- .../generated/PoolsUpdateSamples.java | 2 +- .../ResourceDetailsListByPoolSamples.java | 2 +- .../generated/SkuListByLocationSamples.java | 2 +- .../SubscriptionUsagesUsagesSamples.java | 2 +- .../generated/ImageVersionInnerTests.java | 4 +- .../ImageVersionListResultTests.java | 6 +- .../ImageVersionPropertiesTests.java | 4 +- .../ImageVersionsListByImageMockTests.java | 6 +- .../generated/OperationsListMockTests.java | 2 +- .../generated/PagedQuotaTests.java | 12 +-- .../PoolsCreateOrUpdateMockTests.java | 28 +++--- ...tByResourceGroupWithResponseMockTests.java | 14 +-- .../PoolsListByResourceGroupMockTests.java | 19 ++-- .../generated/PoolsListMockTests.java | 15 ++- .../generated/QuotaInnerTests.java | 10 +- .../generated/QuotaNameTests.java | 19 ++++ .../ResourceDetailsListByPoolMockTests.java | 10 +- .../SubscriptionUsagesUsagesMockTests.java | 13 +-- .../tsp-location.yaml | 4 +- 47 files changed, 405 insertions(+), 203 deletions(-) rename sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/{DevOpsInfrastructureClient.java => DevOpsInfrastructureManagementClient.java} (94%) rename sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/{DevOpsInfrastructureClientBuilder.java => DevOpsInfrastructureManagementClientBuilder.java} (69%) rename sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/{DevOpsInfrastructureClientImpl.java => DevOpsInfrastructureManagementClientImpl.java} (95%) create mode 100644 sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/QuotaName.java create mode 100644 sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaNameTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 308d57e8bab86..e8876a3882000 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -462,7 +462,7 @@ com.azure.resourcemanager:azure-resourcemanager-storageactions;1.0.0-beta.1;1.0. com.azure.resourcemanager:azure-resourcemanager-deviceregistry;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-standbypool;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-edgezones;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0-beta.1;1.0.0 com.azure.resourcemanager:azure-resourcemanager-oracledatabase;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-mongocluster;1.0.0;1.1.0-beta.1 diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md index 40a84d54edc8b..e0849fe70044f 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md @@ -1,14 +1,88 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2024-11-21) -### Features Added +- Azure Resource Manager DevOps Infrastructure client library for Java. This package contains Microsoft Azure SDK for DevOps Infrastructure Management SDK. 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 +#### Serialization/Deserialization change + +- `Jackson` is removed from dependency and no longer supported. + +##### Migration Guide + +If you are using `Jackson`/`ObjectMapper` for manual serialization/deserialization, configure your `ObjectMapper` for backward compatibility: +```java +objectMapper.registerModule(com.azure.core.serializer.json.jackson.JacksonJsonProvider.getJsonSerializableDatabindModule()); +``` + +#### `implementation.models.QuotaListResult` was removed + +#### `implementation.models.PagedOperation` was removed + +#### `models.QuotaProperties` was removed + +#### `models.StatelessAgentProfile` was modified + +* `withResourcePredictions(java.lang.Object)` was removed + +#### `models.SubscriptionUsages` was modified + +* `listByLocation(java.lang.String)` was removed +* `listByLocation(java.lang.String,com.azure.core.util.Context)` was removed + +#### `models.Quota` was modified + +* `java.lang.String name()` -> `models.QuotaName name()` +* `systemData()` was removed +* `type()` was removed +* `properties()` was removed + +#### `models.AgentProfile` was modified + +* `java.lang.Object resourcePredictions()` -> `models.ResourcePredictions resourcePredictions()` +* `withResourcePredictions(java.lang.Object)` was removed + +#### `models.Stateful` was modified + +* `withResourcePredictions(java.lang.Object)` was removed + +#### `models.UserAssignedIdentity` was modified + +* `withClientId(java.lang.String)` was removed +* `withPrincipalId(java.lang.String)` was removed + +#### `DevOpsInfrastructureManager` was modified + +* `fluent.DevOpsInfrastructureClient serviceClient()` -> `fluent.DevOpsInfrastructureManagementClient serviceClient()` + +### Features Added + +* `implementation.models.PagedQuota` was added + +* `implementation.models.OperationListResult` was added + +* `models.ResourcePredictions` was added + +#### `models.StatelessAgentProfile` was modified + +* `withResourcePredictions(models.ResourcePredictions)` was added + +#### `models.SubscriptionUsages` was modified + +* `usages(java.lang.String)` was added +* `usages(java.lang.String,com.azure.core.util.Context)` was added + +#### `models.Quota` was modified + +* `limit()` was added +* `unit()` was added +* `currentValue()` was added + +#### `models.AgentProfile` was modified -### Other Changes +* `withResourcePredictions(models.ResourcePredictions)` was added ## 1.0.0-beta.1 (2024-05-23) diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md index 3577224d910bc..a0eb82092b22f 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-devopsinfrastructure - 1.0.0-beta.1 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md index ab93b2fb67f28..e637ad2e85196 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/SAMPLE.md @@ -37,9 +37,7 @@ */ public final class ImageVersionsListByImageSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * ImageVersions_ListByImage.json + * x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json */ /** * Sample code: ImageVersions_ListByImage. @@ -61,9 +59,7 @@ public final class ImageVersionsListByImageSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * ListOperations.json + * x-ms-original-file: 2024-10-19/ListOperations.json */ /** * Sample code: Operations_List. @@ -95,9 +91,7 @@ import java.util.Arrays; */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * CreateOrUpdatePool.json + * x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -133,9 +127,7 @@ public final class PoolsCreateOrUpdateSamples { */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * DeletePool.json + * x-ms-original-file: 2024-10-19/DeletePool.json */ /** * Sample code: Pools_Delete. @@ -156,9 +148,7 @@ public final class PoolsDeleteSamples { */ public final class PoolsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/GetPool. - * json + * x-ms-original-file: 2024-10-19/GetPool.json */ /** * Sample code: Pools_Get. @@ -179,9 +169,7 @@ public final class PoolsGetByResourceGroupSamples { */ public final class PoolsListSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * ListPoolsBySubscription.json + * x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json */ /** * Sample code: Pools_ListBySubscription. @@ -203,9 +191,7 @@ public final class PoolsListSamples { */ public final class PoolsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * ListPoolsBySubscriptionAndResourceGroup.json + * x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json */ /** * Sample code: Pools_ListByResourceGroup. @@ -229,9 +215,7 @@ import com.azure.resourcemanager.devopsinfrastructure.models.Pool; */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * UpdatePool.json + * x-ms-original-file: 2024-10-19/UpdatePool.json */ /** * Sample code: Pools_Update. @@ -254,9 +238,7 @@ public final class PoolsUpdateSamples { */ public final class ResourceDetailsListByPoolSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * ResourceDetails_ListByPool.json + * x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json */ /** * Sample code: ResourceDetails_ListByPool. @@ -278,9 +260,7 @@ public final class ResourceDetailsListByPoolSamples { */ public final class SkuListByLocationSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * Sku_ListByLocation.json + * x-ms-original-file: 2024-10-19/Sku_ListByLocation.json */ /** * Sample code: Sku_ListByLocation. @@ -302,9 +282,7 @@ public final class SkuListByLocationSamples { */ public final class SubscriptionUsagesUsagesSamples { /* - * x-ms-original-file: - * specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/examples/2024-04-04-preview/ - * SubscriptionUsages_Usages.json + * x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json */ /** * Sample code: SubscriptionUsages_Usages. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml index fa5e606097a83..a698876576239 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml @@ -1,7 +1,7 @@ 4.0.0 @@ -14,7 +14,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator. com.azure.resourcemanager azure-resourcemanager-devopsinfrastructure - 1.0.0-beta.2 + 1.0.0 jar Microsoft Azure SDK for DevOps Infrastructure Management @@ -46,13 +46,9 @@ Code generated by Microsoft (R) TypeSpec Code Generator. 0 0 true + false - - com.azure - azure-json - 1.3.0 - com.azure azure-core @@ -75,5 +71,10 @@ Code generated by Microsoft (R) TypeSpec Code Generator. 1.14.2 test + + com.azure + azure-json + 1.3.0 + diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/DevOpsInfrastructureManager.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/DevOpsInfrastructureManager.java index 06a4ba3674980..cbcbd91cb524e 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/DevOpsInfrastructureManager.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/DevOpsInfrastructureManager.java @@ -23,8 +23,8 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.devopsinfrastructure.fluent.DevOpsInfrastructureClient; -import com.azure.resourcemanager.devopsinfrastructure.implementation.DevOpsInfrastructureClientBuilder; +import com.azure.resourcemanager.devopsinfrastructure.fluent.DevOpsInfrastructureManagementClient; +import com.azure.resourcemanager.devopsinfrastructure.implementation.DevOpsInfrastructureManagementClientBuilder; import com.azure.resourcemanager.devopsinfrastructure.implementation.ImageVersionsImpl; import com.azure.resourcemanager.devopsinfrastructure.implementation.OperationsImpl; import com.azure.resourcemanager.devopsinfrastructure.implementation.PoolsImpl; @@ -60,12 +60,12 @@ public final class DevOpsInfrastructureManager { private ImageVersions imageVersions; - private final DevOpsInfrastructureClient clientObject; + private final DevOpsInfrastructureManagementClient clientObject; private DevOpsInfrastructureManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = new DevOpsInfrastructureClientBuilder().pipeline(httpPipeline) + this.clientObject = new DevOpsInfrastructureManagementClientBuilder().pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) .subscriptionId(profile.getSubscriptionId()) .defaultPollInterval(defaultPollInterval) @@ -343,12 +343,12 @@ public ImageVersions imageVersions() { } /** - * Gets wrapped service client DevOpsInfrastructureClient providing direct access to the underlying auto-generated - * API implementation, based on Azure REST API. + * Gets wrapped service client DevOpsInfrastructureManagementClient providing direct access to the underlying + * auto-generated API implementation, based on Azure REST API. * - * @return Wrapped service client DevOpsInfrastructureClient. + * @return Wrapped service client DevOpsInfrastructureManagementClient. */ - public DevOpsInfrastructureClient serviceClient() { + public DevOpsInfrastructureManagementClient serviceClient() { return this.clientObject; } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/DevOpsInfrastructureClient.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/DevOpsInfrastructureManagementClient.java similarity index 94% rename from sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/DevOpsInfrastructureClient.java rename to sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/DevOpsInfrastructureManagementClient.java index 057f48292c48e..7652a74539ad9 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/DevOpsInfrastructureClient.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/DevOpsInfrastructureManagementClient.java @@ -8,9 +8,9 @@ import java.time.Duration; /** - * The interface for DevOpsInfrastructureClient class. + * The interface for DevOpsInfrastructureManagementClient class. */ -public interface DevOpsInfrastructureClient { +public interface DevOpsInfrastructureManagementClient { /** * Gets Service host. * diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/SubscriptionUsagesClient.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/SubscriptionUsagesClient.java index 58cfc13f033b3..1523c9b6d9d1f 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/SubscriptionUsagesClient.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/SubscriptionUsagesClient.java @@ -17,7 +17,7 @@ public interface SubscriptionUsagesClient { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -29,7 +29,7 @@ public interface SubscriptionUsagesClient { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/models/QuotaInner.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/models/QuotaInner.java index 5b2b47b35918f..4720a9670d5b7 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/models/QuotaInner.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/fluent/models/QuotaInner.java @@ -10,6 +10,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.devopsinfrastructure.models.QuotaName; import java.io.IOException; /** @@ -17,6 +18,11 @@ */ @Immutable public final class QuotaInner implements JsonSerializable { + /* + * The name of the quota. + */ + private QuotaName name; + /* * Fully qualified ARM resource id */ @@ -43,6 +49,15 @@ public final class QuotaInner implements JsonSerializable { private QuotaInner() { } + /** + * Get the name property: The name of the quota. + * + * @return the name value. + */ + public QuotaName name() { + return this.name; + } + /** * Get the id property: Fully qualified ARM resource id. * @@ -85,6 +100,9 @@ public long limit() { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (name() != null) { + name().validate(); + } if (id() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property id in model QuotaInner")); @@ -134,6 +152,8 @@ public static QuotaInner fromJson(JsonReader jsonReader) throws IOException { deserializedQuotaInner.currentValue = reader.getLong(); } else if ("limit".equals(fieldName)) { deserializedQuotaInner.limit = reader.getLong(); + } else if ("name".equals(fieldName)) { + deserializedQuotaInner.name = QuotaName.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureClientBuilder.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientBuilder.java similarity index 69% rename from sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureClientBuilder.java rename to sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientBuilder.java index 5e9aa51e154fc..feadc2d20d9df 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureClientBuilder.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientBuilder.java @@ -15,10 +15,10 @@ import java.time.Duration; /** - * A builder for creating a new instance of the DevOpsInfrastructureClientImpl type. + * A builder for creating a new instance of the DevOpsInfrastructureManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = { DevOpsInfrastructureClientImpl.class }) -public final class DevOpsInfrastructureClientBuilder { +@ServiceClientBuilder(serviceClients = { DevOpsInfrastructureManagementClientImpl.class }) +public final class DevOpsInfrastructureManagementClientBuilder { /* * Service host */ @@ -28,9 +28,9 @@ public final class DevOpsInfrastructureClientBuilder { * Sets Service host. * * @param endpoint the endpoint value. - * @return the DevOpsInfrastructureClientBuilder. + * @return the DevOpsInfrastructureManagementClientBuilder. */ - public DevOpsInfrastructureClientBuilder endpoint(String endpoint) { + public DevOpsInfrastructureManagementClientBuilder endpoint(String endpoint) { this.endpoint = endpoint; return this; } @@ -44,9 +44,9 @@ public DevOpsInfrastructureClientBuilder endpoint(String endpoint) { * Sets The ID of the target subscription. The value must be an UUID. * * @param subscriptionId the subscriptionId value. - * @return the DevOpsInfrastructureClientBuilder. + * @return the DevOpsInfrastructureManagementClientBuilder. */ - public DevOpsInfrastructureClientBuilder subscriptionId(String subscriptionId) { + public DevOpsInfrastructureManagementClientBuilder subscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; } @@ -60,9 +60,9 @@ public DevOpsInfrastructureClientBuilder subscriptionId(String subscriptionId) { * Sets The environment to connect to. * * @param environment the environment value. - * @return the DevOpsInfrastructureClientBuilder. + * @return the DevOpsInfrastructureManagementClientBuilder. */ - public DevOpsInfrastructureClientBuilder environment(AzureEnvironment environment) { + public DevOpsInfrastructureManagementClientBuilder environment(AzureEnvironment environment) { this.environment = environment; return this; } @@ -76,9 +76,9 @@ public DevOpsInfrastructureClientBuilder environment(AzureEnvironment environmen * Sets The HTTP pipeline to send requests through. * * @param pipeline the pipeline value. - * @return the DevOpsInfrastructureClientBuilder. + * @return the DevOpsInfrastructureManagementClientBuilder. */ - public DevOpsInfrastructureClientBuilder pipeline(HttpPipeline pipeline) { + public DevOpsInfrastructureManagementClientBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; } @@ -92,9 +92,9 @@ public DevOpsInfrastructureClientBuilder pipeline(HttpPipeline pipeline) { * Sets The default poll interval for long-running operation. * * @param defaultPollInterval the defaultPollInterval value. - * @return the DevOpsInfrastructureClientBuilder. + * @return the DevOpsInfrastructureManagementClientBuilder. */ - public DevOpsInfrastructureClientBuilder defaultPollInterval(Duration defaultPollInterval) { + public DevOpsInfrastructureManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { this.defaultPollInterval = defaultPollInterval; return this; } @@ -108,19 +108,19 @@ public DevOpsInfrastructureClientBuilder defaultPollInterval(Duration defaultPol * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the DevOpsInfrastructureClientBuilder. + * @return the DevOpsInfrastructureManagementClientBuilder. */ - public DevOpsInfrastructureClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + public DevOpsInfrastructureManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; } /** - * Builds an instance of DevOpsInfrastructureClientImpl with the provided parameters. + * Builds an instance of DevOpsInfrastructureManagementClientImpl with the provided parameters. * - * @return an instance of DevOpsInfrastructureClientImpl. + * @return an instance of DevOpsInfrastructureManagementClientImpl. */ - public DevOpsInfrastructureClientImpl buildClient() { + public DevOpsInfrastructureManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; HttpPipeline localPipeline = (pipeline != null) @@ -131,7 +131,7 @@ public DevOpsInfrastructureClientImpl buildClient() { SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); - DevOpsInfrastructureClientImpl client = new DevOpsInfrastructureClientImpl(localPipeline, + DevOpsInfrastructureManagementClientImpl client = new DevOpsInfrastructureManagementClientImpl(localPipeline, localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId); return client; } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientImpl.java similarity index 95% rename from sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureClientImpl.java rename to sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientImpl.java index d8fbecf31b2b2..0593a08ca27fe 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureClientImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/DevOpsInfrastructureManagementClientImpl.java @@ -23,7 +23,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.devopsinfrastructure.fluent.DevOpsInfrastructureClient; +import com.azure.resourcemanager.devopsinfrastructure.fluent.DevOpsInfrastructureManagementClient; import com.azure.resourcemanager.devopsinfrastructure.fluent.ImageVersionsClient; import com.azure.resourcemanager.devopsinfrastructure.fluent.OperationsClient; import com.azure.resourcemanager.devopsinfrastructure.fluent.PoolsClient; @@ -40,10 +40,10 @@ import reactor.core.publisher.Mono; /** - * Initializes a new instance of the DevOpsInfrastructureClientImpl type. + * Initializes a new instance of the DevOpsInfrastructureManagementClientImpl type. */ -@ServiceClient(builder = DevOpsInfrastructureClientBuilder.class) -public final class DevOpsInfrastructureClientImpl implements DevOpsInfrastructureClient { +@ServiceClient(builder = DevOpsInfrastructureManagementClientBuilder.class) +public final class DevOpsInfrastructureManagementClientImpl implements DevOpsInfrastructureManagementClient { /** * Service host. */ @@ -213,7 +213,7 @@ public ImageVersionsClient getImageVersions() { } /** - * Initializes an instance of DevOpsInfrastructureClient client. + * Initializes an instance of DevOpsInfrastructureManagementClient client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. @@ -222,14 +222,14 @@ public ImageVersionsClient getImageVersions() { * @param endpoint Service host. * @param subscriptionId The ID of the target subscription. The value must be an UUID. */ - DevOpsInfrastructureClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + DevOpsInfrastructureManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2024-04-04-preview"; + this.apiVersion = "2024-10-19"; this.operations = new OperationsClientImpl(this); this.pools = new PoolsClientImpl(this); this.resourceDetails = new ResourceDetailsClientImpl(this); @@ -364,5 +364,5 @@ public Mono getBodyAsString(Charset charset) { } } - private static final ClientLogger LOGGER = new ClientLogger(DevOpsInfrastructureClientImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(DevOpsInfrastructureManagementClientImpl.class); } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ImageVersionsClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ImageVersionsClientImpl.java index 35f6a63776f63..6177db60de65d 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ImageVersionsClientImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ImageVersionsClientImpl.java @@ -42,22 +42,22 @@ public final class ImageVersionsClientImpl implements ImageVersionsClient { /** * The service client containing this operation class. */ - private final DevOpsInfrastructureClientImpl client; + private final DevOpsInfrastructureManagementClientImpl client; /** * Initializes an instance of ImageVersionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - ImageVersionsClientImpl(DevOpsInfrastructureClientImpl client) { + ImageVersionsClientImpl(DevOpsInfrastructureManagementClientImpl client) { this.service = RestProxy.create(ImageVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DevOpsInfrastructureClientImageVersions to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for DevOpsInfrastructureManagementClientImageVersions to be used by the + * proxy service to perform REST calls. */ @Host("{endpoint}") @ServiceInterface(name = "DevOpsInfrastructure") diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/OperationsClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/OperationsClientImpl.java index 3b19f6f6f8fd4..e9039895e7f4a 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/OperationsClientImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/OperationsClientImpl.java @@ -42,22 +42,22 @@ public final class OperationsClientImpl implements OperationsClient { /** * The service client containing this operation class. */ - private final DevOpsInfrastructureClientImpl client; + private final DevOpsInfrastructureManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OperationsClientImpl(DevOpsInfrastructureClientImpl client) { + OperationsClientImpl(DevOpsInfrastructureManagementClientImpl client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DevOpsInfrastructureClientOperations to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for DevOpsInfrastructureManagementClientOperations to be used by the + * proxy service to perform REST calls. */ @Host("{endpoint}") @ServiceInterface(name = "DevOpsInfrastructure") diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java index 8f9191786fd02..28615cbc3f7a7 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/PoolsClientImpl.java @@ -52,21 +52,21 @@ public final class PoolsClientImpl implements PoolsClient { /** * The service client containing this operation class. */ - private final DevOpsInfrastructureClientImpl client; + private final DevOpsInfrastructureManagementClientImpl client; /** * Initializes an instance of PoolsClientImpl. * * @param client the instance of the service client containing this operation class. */ - PoolsClientImpl(DevOpsInfrastructureClientImpl client) { + PoolsClientImpl(DevOpsInfrastructureManagementClientImpl client) { this.service = RestProxy.create(PoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DevOpsInfrastructureClientPools to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for DevOpsInfrastructureManagementClientPools to be used by the proxy + * service to perform REST calls. */ @Host("{endpoint}") @ServiceInterface(name = "DevOpsInfrastructure") diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/QuotaImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/QuotaImpl.java index b53590f2eb994..a1da19174efcf 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/QuotaImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/QuotaImpl.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.devopsinfrastructure.fluent.models.QuotaInner; import com.azure.resourcemanager.devopsinfrastructure.models.Quota; +import com.azure.resourcemanager.devopsinfrastructure.models.QuotaName; public final class QuotaImpl implements Quota { private QuotaInner innerObject; @@ -18,6 +19,10 @@ public final class QuotaImpl implements Quota { this.serviceManager = serviceManager; } + public QuotaName name() { + return this.innerModel().name(); + } + public String id() { return this.innerModel().id(); } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ResourceDetailsClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ResourceDetailsClientImpl.java index ff56bc4e0837b..5fb0577e04eb1 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ResourceDetailsClientImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/ResourceDetailsClientImpl.java @@ -42,22 +42,22 @@ public final class ResourceDetailsClientImpl implements ResourceDetailsClient { /** * The service client containing this operation class. */ - private final DevOpsInfrastructureClientImpl client; + private final DevOpsInfrastructureManagementClientImpl client; /** * Initializes an instance of ResourceDetailsClientImpl. * * @param client the instance of the service client containing this operation class. */ - ResourceDetailsClientImpl(DevOpsInfrastructureClientImpl client) { + ResourceDetailsClientImpl(DevOpsInfrastructureManagementClientImpl client) { this.service = RestProxy.create(ResourceDetailsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DevOpsInfrastructureClientResourceDetails to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for DevOpsInfrastructureManagementClientResourceDetails to be used by the + * proxy service to perform REST calls. */ @Host("{endpoint}") @ServiceInterface(name = "DevOpsInfrastructure") diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SkusClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SkusClientImpl.java index 754791fef0f7f..8f23ef99c02cc 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SkusClientImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SkusClientImpl.java @@ -42,21 +42,21 @@ public final class SkusClientImpl implements SkusClient { /** * The service client containing this operation class. */ - private final DevOpsInfrastructureClientImpl client; + private final DevOpsInfrastructureManagementClientImpl client; /** * Initializes an instance of SkusClientImpl. * * @param client the instance of the service client containing this operation class. */ - SkusClientImpl(DevOpsInfrastructureClientImpl client) { + SkusClientImpl(DevOpsInfrastructureManagementClientImpl client) { this.service = RestProxy.create(SkusService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DevOpsInfrastructureClientSkus to be used by the proxy service to - * perform REST calls. + * The interface defining all the services for DevOpsInfrastructureManagementClientSkus to be used by the proxy + * service to perform REST calls. */ @Host("{endpoint}") @ServiceInterface(name = "DevOpsInfrastructure") diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SubscriptionUsagesClientImpl.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SubscriptionUsagesClientImpl.java index 90405e1b37cdc..a1195a3c62810 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SubscriptionUsagesClientImpl.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/implementation/SubscriptionUsagesClientImpl.java @@ -42,22 +42,22 @@ public final class SubscriptionUsagesClientImpl implements SubscriptionUsagesCli /** * The service client containing this operation class. */ - private final DevOpsInfrastructureClientImpl client; + private final DevOpsInfrastructureManagementClientImpl client; /** * Initializes an instance of SubscriptionUsagesClientImpl. * * @param client the instance of the service client containing this operation class. */ - SubscriptionUsagesClientImpl(DevOpsInfrastructureClientImpl client) { + SubscriptionUsagesClientImpl(DevOpsInfrastructureManagementClientImpl client) { this.service = RestProxy.create(SubscriptionUsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for DevOpsInfrastructureClientSubscriptionUsages to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for DevOpsInfrastructureManagementClientSubscriptionUsages to be used by + * the proxy service to perform REST calls. */ @Host("{endpoint}") @ServiceInterface(name = "DevOpsInfrastructure") @@ -81,7 +81,7 @@ Mono> usagesNext(@PathParam(value = "nextLink", encoded = t /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -113,7 +113,7 @@ private Mono> usagesSinglePageAsync(String location) { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -146,7 +146,7 @@ private Mono> usagesSinglePageAsync(String location, C /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -160,7 +160,7 @@ private PagedFlux usagesAsync(String location) { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -176,7 +176,7 @@ private PagedFlux usagesAsync(String location, Context context) { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -190,7 +190,7 @@ public PagedIterable usages(String location) { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Quota.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Quota.java index a2dcb1de68e63..5c871e750e2ef 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Quota.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/Quota.java @@ -10,6 +10,13 @@ * An immutable client-side representation of Quota. */ public interface Quota { + /** + * Gets the name property: The name of the quota. + * + * @return the name value. + */ + QuotaName name(); + /** * Gets the id property: Fully qualified ARM resource id. * diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/QuotaName.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/QuotaName.java new file mode 100644 index 0000000000000..8179e841764a8 --- /dev/null +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/QuotaName.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.devopsinfrastructure.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The Quota Names. + */ +@Immutable +public final class QuotaName implements JsonSerializable { + /* + * The name of the resource. + */ + private String value; + + /* + * The localized name of the resource. + */ + private String localizedValue; + + /** + * Creates an instance of QuotaName class. + */ + private QuotaName() { + } + + /** + * Get the value property: The name of the resource. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Get the localizedValue property: The localized name of the resource. + * + * @return the localizedValue value. + */ + public String localizedValue() { + return this.localizedValue; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("value", this.value); + jsonWriter.writeStringField("localizedValue", this.localizedValue); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of QuotaName from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of QuotaName if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the QuotaName. + */ + public static QuotaName fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + QuotaName deserializedQuotaName = new QuotaName(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + deserializedQuotaName.value = reader.getString(); + } else if ("localizedValue".equals(fieldName)) { + deserializedQuotaName.localizedValue = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedQuotaName; + }); + } +} diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SubscriptionUsages.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SubscriptionUsages.java index 12ed39e16d6af..9eaeea2925b57 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SubscriptionUsages.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/main/java/com/azure/resourcemanager/devopsinfrastructure/models/SubscriptionUsages.java @@ -14,7 +14,7 @@ public interface SubscriptionUsages { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -25,7 +25,7 @@ public interface SubscriptionUsages { /** * List Quota resources by subscription ID. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java index 170ce5f97baf7..2854a44fca979 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageSamples.java @@ -9,7 +9,7 @@ */ public final class ImageVersionsListByImageSamples { /* - * x-ms-original-file: 2024-04-04-preview/ImageVersions_ListByImage.json + * x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json */ /** * Sample code: ImageVersions_ListByImage. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java index 82587082798d3..db5fa3bc05df9 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2024-04-04-preview/ListOperations.json + * x-ms-original-file: 2024-10-19/ListOperations.json */ /** * Sample code: Operations_List. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java index 277b55ce27c32..fa36f8d4d6fa9 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2024-04-04-preview/CreateOrUpdatePool.json + * x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json */ /** * Sample code: Pools_CreateOrUpdate. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java index bc8cdb7469280..610a2ab3ddd88 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: 2024-04-04-preview/DeletePool.json + * x-ms-original-file: 2024-10-19/DeletePool.json */ /** * Sample code: Pools_Delete. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java index f9905363435a5..79635126da237 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsGetByResourceGroupSamples { /* - * x-ms-original-file: 2024-04-04-preview/GetPool.json + * x-ms-original-file: 2024-10-19/GetPool.json */ /** * Sample code: Pools_Get. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java index 9768f9af3872e..a03dfa640d927 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsListByResourceGroupSamples { /* - * x-ms-original-file: 2024-04-04-preview/ListPoolsBySubscriptionAndResourceGroup.json + * x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json */ /** * Sample code: Pools_ListByResourceGroup. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java index 995dc3691024d..a188c0228f894 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsListSamples { /* - * x-ms-original-file: 2024-04-04-preview/ListPoolsBySubscription.json + * x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json */ /** * Sample code: Pools_ListBySubscription. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java index 3057edf444d49..76614d10c8f8b 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: 2024-04-04-preview/UpdatePool.json + * x-ms-original-file: 2024-10-19/UpdatePool.json */ /** * Sample code: Pools_Update. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java index 60bb303aabd4a..99fe6e0c16804 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceDetailsListByPoolSamples { /* - * x-ms-original-file: 2024-04-04-preview/ResourceDetails_ListByPool.json + * x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json */ /** * Sample code: ResourceDetails_ListByPool. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java index ec117d92e4ba3..b63fd3f4bf839 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SkuListByLocationSamples.java @@ -9,7 +9,7 @@ */ public final class SkuListByLocationSamples { /* - * x-ms-original-file: 2024-04-04-preview/Sku_ListByLocation.json + * x-ms-original-file: 2024-10-19/Sku_ListByLocation.json */ /** * Sample code: Sku_ListByLocation. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java index 10dc7129cc8f8..ea7b19a646491 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/samples/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesSamples.java @@ -9,7 +9,7 @@ */ public final class SubscriptionUsagesUsagesSamples { /* - * x-ms-original-file: 2024-04-04-preview/SubscriptionUsages_Usages.json + * x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json */ /** * Sample code: SubscriptionUsages_Usages. diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionInnerTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionInnerTests.java index 20a59e394372e..204fb634ec6ac 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionInnerTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionInnerTests.java @@ -12,8 +12,8 @@ public final class ImageVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ImageVersionInner model = BinaryData.fromString( - "{\"properties\":{\"version\":\"cbcuejrjxgciqi\"},\"id\":\"hos\",\"name\":\"sdqrhzoymibmrq\",\"type\":\"ibahwflus\"}") + "{\"properties\":{\"version\":\"sytgadgvraea\"},\"id\":\"e\",\"name\":\"nzar\",\"type\":\"wlquuijfqkace\"}") .toObject(ImageVersionInner.class); - Assertions.assertEquals("cbcuejrjxgciqi", model.properties().version()); + Assertions.assertEquals("sytgadgvraea", model.properties().version()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionListResultTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionListResultTests.java index 00d4a5eb389ec..467e480b9c05a 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionListResultTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionListResultTests.java @@ -12,9 +12,9 @@ public final class ImageVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ImageVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"version\":\"mond\"},\"id\":\"quxvypomgkop\",\"name\":\"whojvp\",\"type\":\"jqg\"},{\"properties\":{\"version\":\"smocmbq\"},\"id\":\"vmkcx\",\"name\":\"zapvhelx\",\"type\":\"rgly\"}],\"nextLink\":\"dd\"}") + "{\"value\":[{\"properties\":{\"version\":\"expbtg\"},\"id\":\"bwoenwashrt\",\"name\":\"tkcnqxwb\",\"type\":\"okulpiujwa\"},{\"properties\":{\"version\":\"ipqiiobyuqerpq\"},\"id\":\"qwcciuqg\",\"name\":\"dbutauvfbtkuwhh\",\"type\":\"hykojoxafnndlpic\"},{\"properties\":{\"version\":\"o\"},\"id\":\"kcdyhbpk\",\"name\":\"pwdreqnovvqf\",\"type\":\"vljxywsu\"}],\"nextLink\":\"yrs\"}") .toObject(ImageVersionListResult.class); - Assertions.assertEquals("mond", model.value().get(0).properties().version()); - Assertions.assertEquals("dd", model.nextLink()); + Assertions.assertEquals("expbtg", model.value().get(0).properties().version()); + Assertions.assertEquals("yrs", model.nextLink()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionPropertiesTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionPropertiesTests.java index a6403d902d1a2..05d7754afe44d 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionPropertiesTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionPropertiesTests.java @@ -12,7 +12,7 @@ public final class ImageVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ImageVersionProperties model - = BinaryData.fromString("{\"version\":\"dtmhrkwofyyvoqa\"}").toObject(ImageVersionProperties.class); - Assertions.assertEquals("dtmhrkwofyyvoqa", model.version()); + = BinaryData.fromString("{\"version\":\"iipfpubj\"}").toObject(ImageVersionProperties.class); + Assertions.assertEquals("iipfpubj", model.version()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java index 1fe1d3a671b44..65bf1bdbe1437 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ImageVersionsListByImageMockTests.java @@ -22,7 +22,7 @@ public final class ImageVersionsListByImageMockTests { @Test public void testListByImage() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"version\":\"nkbykutwpfhp\"},\"id\":\"m\",\"name\":\"r\",\"type\":\"kdsnfdsdoakgtdl\"}]}"; + = "{\"value\":[{\"properties\":{\"version\":\"cvnhltiugc\"},\"id\":\"avvwxqi\",\"name\":\"y\",\"type\":\"unyowxwl\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByImage() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.imageVersions().listByImage("erqf", "bw", com.azure.core.util.Context.NONE); + = manager.imageVersions().listByImage("c", "edcpnmdyodnwzxl", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nkbykutwpfhp", response.iterator().next().properties().version()); + Assertions.assertEquals("cvnhltiugc", response.iterator().next().properties().version()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java index 4b6dc29712961..6235d8fe5239b 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/OperationsListMockTests.java @@ -23,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"iexpbtgiwbwo\",\"isDataAction\":false,\"display\":{\"provider\":\"hrtdtk\",\"resource\":\"qxwbpokulpiu\",\"operation\":\"aasipqi\",\"description\":\"byuqerpqlp\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"wwiftohqkvpuv\",\"isDataAction\":true,\"display\":{\"provider\":\"saknynfsyn\",\"resource\":\"ph\",\"operation\":\"pxodlqiyntorzih\",\"description\":\"osjswsr\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PagedQuotaTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PagedQuotaTests.java index 9fe5a6eed19cf..24294121b435d 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PagedQuotaTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PagedQuotaTests.java @@ -12,12 +12,12 @@ public final class PagedQuotaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PagedQuota model = BinaryData.fromString( - "{\"value\":[{\"id\":\"gx\",\"unit\":\"xrslpm\",\"currentValue\":6715322214265854823,\"limit\":7040134278923407185},{\"id\":\"egrpkhj\",\"unit\":\"niyqslui\",\"currentValue\":1509856375818766415,\"limit\":4481689603688625357},{\"id\":\"kzzlvmbmpaxmodf\",\"unit\":\"uefywsbpfvmwy\",\"currentValue\":4618118068298322402,\"limit\":98342047801553484}],\"nextLink\":\"ft\"}") + "{\"value\":[{\"name\":{\"value\":\"cxrslpmutwuoe\",\"localizedValue\":\"pkhjwni\"},\"id\":\"qsluicp\",\"unit\":\"ggkzzlvmbmpa\",\"currentValue\":9089515784990551600,\"limit\":5163043580727063666},{\"name\":{\"value\":\"efyw\",\"localizedValue\":\"pfvmwyhrfou\"},\"id\":\"ft\",\"unit\":\"akcp\",\"currentValue\":1587260248401579893,\"limit\":4470731468497230822},{\"name\":{\"value\":\"mnubexkpzksmond\",\"localizedValue\":\"quxvypomgkop\"},\"id\":\"whojvp\",\"unit\":\"jqg\",\"currentValue\":8997316824402958697,\"limit\":2615560217287873521}],\"nextLink\":\"mbqfqvmk\"}") .toObject(PagedQuota.class); - Assertions.assertEquals("gx", model.value().get(0).id()); - Assertions.assertEquals("xrslpm", model.value().get(0).unit()); - Assertions.assertEquals(6715322214265854823L, model.value().get(0).currentValue()); - Assertions.assertEquals(7040134278923407185L, model.value().get(0).limit()); - Assertions.assertEquals("ft", model.nextLink()); + Assertions.assertEquals("qsluicp", model.value().get(0).id()); + Assertions.assertEquals("ggkzzlvmbmpa", model.value().get(0).unit()); + Assertions.assertEquals(9089515784990551600L, model.value().get(0).currentValue()); + Assertions.assertEquals(5163043580727063666L, model.value().get(0).limit()); + Assertions.assertEquals("mbqfqvmk", model.nextLink()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java index b2b0ab71a268b..4fe1bb9ef2442 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsCreateOrUpdateMockTests.java @@ -33,7 +33,7 @@ public final class PoolsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1068546777,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"eddgssofw\"},\"identity\":{\"principalId\":\"qal\",\"tenantId\":\"mnjijpxacqqudf\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"evfdnwnwm\":{\"principalId\":\"aaabjyvayff\",\"clientId\":\"rzrtuzqogsex\"},\"thzvaytdwkqbrqu\":{\"principalId\":\"zsyyceuzso\",\"clientId\":\"judpfrxt\"},\"oaxoruzfgsqu\":{\"principalId\":\"axhexiilivp\",\"clientId\":\"iirqtd\"}}},\"location\":\"xrxxlep\",\"tags\":{\"wxuqlcvydypatdoo\":\"mxjezwlw\",\"kooebwnu\":\"ojknio\",\"vdkcrodtj\":\"hemms\"},\"id\":\"nfwjlfltkacjvefk\",\"name\":\"lfoakg\",\"type\":\"kfpagao\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":665760554,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"anvx\"},\"identity\":{\"principalId\":\"vudutncor\",\"tenantId\":\"lxqtvcofudfl\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"sgsahmkycgr\":{\"principalId\":\"bgdknnqv\",\"clientId\":\"znqntoru\"}}},\"location\":\"wjue\",\"tags\":{\"ovsm\":\"buruvd\",\"wabm\":\"l\"},\"id\":\"oefki\",\"name\":\"rvtp\",\"type\":\"qujmqlgkf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -44,29 +44,29 @@ public void testCreateOrUpdate() throws Exception { Pool response = manager.pools() - .define("dxbjhwuaanozj") - .withRegion("varmywdmj") - .withExistingResourceGroup("abfatkl") - .withTags(mapOf("rw", "bjhhyx")) - .withProperties(new PoolProperties().withProvisioningState(ProvisioningState.DELETING) - .withMaximumConcurrency(1082355314) + .define("fw") + .withRegion("fz") + .withExistingResourceGroup("odtji") + .withTags(mapOf("xzfe", "xxbuyq")) + .withProperties(new PoolProperties().withProvisioningState(ProvisioningState.PROVISIONING) + .withMaximumConcurrency(1139569570) .withOrganizationProfile(new OrganizationProfile()) .withAgentProfile(new AgentProfile().withResourcePredictions(new ResourcePredictions()) .withResourcePredictionsProfile(new ResourcePredictionsProfile())) .withFabricProfile(new FabricProfile()) - .withDevCenterProjectResourceId("l")) + .withDevCenterProjectResourceId("cjvefkdlfo")) .withIdentity( new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities(mapOf("jhdgqggebdunyga", new UserAssignedIdentity(), "rxcyjmoad", + .withUserAssignedIdentities(mapOf("beyvpnqicvinvkjj", new UserAssignedIdentity(), "pofncck", new UserAssignedIdentity()))) .create(); - Assertions.assertEquals("xrxxlep", response.location()); - Assertions.assertEquals("mxjezwlw", response.tags().get("wxuqlcvydypatdoo")); + Assertions.assertEquals("wjue", response.location()); + Assertions.assertEquals("buruvd", response.tags().get("ovsm")); Assertions.assertEquals(ProvisioningState.SUCCEEDED, response.properties().provisioningState()); - Assertions.assertEquals(1068546777, response.properties().maximumConcurrency()); - Assertions.assertEquals("eddgssofw", response.properties().devCenterProjectResourceId()); - Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals(665760554, response.properties().maximumConcurrency()); + Assertions.assertEquals("anvx", response.properties().devCenterProjectResourceId()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); } // Use "Map.of" if available diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java index 92e62bcefdf87..cc1f3a7eb9d46 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsGetByResourceGroupWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class PoolsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1324529031,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"koymkcd\"},\"identity\":{\"principalId\":\"pkkpw\",\"tenantId\":\"eqnovvqfovl\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"q\":{\"principalId\":\"uwsyrsndsytgadg\",\"clientId\":\"aeaeneqnzarrw\"},\"wwiftohqkvpuv\":{\"principalId\":\"ijfqkacewiipfp\",\"clientId\":\"ji\"}}},\"location\":\"gplsaknynf\",\"tags\":{\"iyntorzihle\":\"ljphuopxodl\"},\"id\":\"sjswsrms\",\"name\":\"yzrpzbchckqqzq\",\"type\":\"ox\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"maximumConcurrency\":1896138936,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ked\"},\"identity\":{\"principalId\":\"rwyhqmibzyhwitsm\",\"tenantId\":\"yynpcdpumnzgmwz\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"lwwrl\":{\"principalId\":\"knso\",\"clientId\":\"jhxbld\"},\"y\":{\"principalId\":\"m\",\"clientId\":\"cvokotllxdyhg\"},\"amqgxqquezikyw\":{\"principalId\":\"ogjltdtbnnhad\",\"clientId\":\"crkvcikhnv\"},\"cjzkzivgvvcna\":{\"principalId\":\"xkalla\",\"clientId\":\"elwuipi\"}}},\"location\":\"hyrnxxmu\",\"tags\":{\"tchealmf\":\"ndrdvstkwq\",\"iohgwxrtfud\":\"tdaaygdvwvg\",\"mnpkukghimdblxg\":\"epxgyqagvr\",\"mszkkfo\":\"imfnjhfjx\"},\"id\":\"rey\",\"name\":\"kzikfjawneaivxwc\",\"type\":\"elpcirelsfeaenwa\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); Pool response = manager.pools() - .getByResourceGroupWithResponse("uqgbdbutauvfbt", "uwhhmhykojoxafn", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rpzbchckqqzqi", "xiy", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gplsaknynf", response.location()); - Assertions.assertEquals("ljphuopxodl", response.tags().get("iyntorzihle")); + Assertions.assertEquals("hyrnxxmu", response.location()); + Assertions.assertEquals("ndrdvstkwq", response.tags().get("tchealmf")); Assertions.assertEquals(ProvisioningState.SUCCEEDED, response.properties().provisioningState()); - Assertions.assertEquals(1324529031, response.properties().maximumConcurrency()); - Assertions.assertEquals("koymkcd", response.properties().devCenterProjectResourceId()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type()); + Assertions.assertEquals(1896138936, response.properties().maximumConcurrency()); + Assertions.assertEquals("ked", response.properties().devCenterProjectResourceId()); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java index 56e87e7f01b42..5f62f61adfda5 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListByResourceGroupMockTests.java @@ -24,7 +24,7 @@ public final class PoolsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"maximumConcurrency\":613432064,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ibzyhwitsmyp\"},\"identity\":{\"principalId\":\"pcdpumnz\",\"tenantId\":\"wznm\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"lkdmtncvokotllxd\":{\"principalId\":\"sorgj\",\"clientId\":\"bldtlww\"}}},\"location\":\"gsyocogj\",\"tags\":{\"oocrkvcikhnv\":\"tbnnha\",\"gxk\":\"amqgxqquezikyw\"},\"id\":\"lla\",\"name\":\"melwuipiccjz\",\"type\":\"z\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"maximumConcurrency\":1025445351,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"aanozjosphyoulpj\"},\"identity\":{\"principalId\":\"ag\",\"tenantId\":\"vimjwos\",\"type\":\"None\",\"userAssignedIdentities\":{\"fjhdg\":{\"principalId\":\"cskfcktqumiekk\",\"clientId\":\"zikhl\"}}},\"location\":\"gebdunygaeq\",\"tags\":{\"a\":\"qfatpxllrxcyjm\",\"arm\":\"su\",\"rw\":\"wdmjsjqbjhhyx\",\"duhpk\":\"yc\"},\"id\":\"kgymareqnajxqug\",\"name\":\"hky\",\"type\":\"ubeddg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,15 @@ public void testListByResourceGroup() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response - = manager.pools().listByResourceGroup("ysuiizynkedya", com.azure.core.util.Context.NONE); + PagedIterable response = manager.pools().listByResourceGroup("fatkld", com.azure.core.util.Context.NONE); - Assertions.assertEquals("gsyocogj", response.iterator().next().location()); - Assertions.assertEquals("tbnnha", response.iterator().next().tags().get("oocrkvcikhnv")); - Assertions.assertEquals(ProvisioningState.UPDATING, + Assertions.assertEquals("gebdunygaeq", response.iterator().next().location()); + Assertions.assertEquals("qfatpxllrxcyjm", response.iterator().next().tags().get("a")); + Assertions.assertEquals(ProvisioningState.CANCELED, response.iterator().next().properties().provisioningState()); - Assertions.assertEquals(613432064, response.iterator().next().properties().maximumConcurrency()); - Assertions.assertEquals("ibzyhwitsmyp", response.iterator().next().properties().devCenterProjectResourceId()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, - response.iterator().next().identity().type()); + Assertions.assertEquals(1025445351, response.iterator().next().properties().maximumConcurrency()); + Assertions.assertEquals("aanozjosphyoulpj", + response.iterator().next().properties().devCenterProjectResourceId()); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.iterator().next().identity().type()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java index e7c23e10a567e..576db30da4f11 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/PoolsListMockTests.java @@ -24,7 +24,7 @@ public final class PoolsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"maximumConcurrency\":422897894,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"ayrhyrnx\"},\"identity\":{\"principalId\":\"eedndrdvstkwqqtc\",\"tenantId\":\"alm\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"gyqagvrvmnpkuk\":{\"principalId\":\"aygdvwvgpioh\",\"clientId\":\"xrtfudxep\"}}},\"location\":\"i\",\"tags\":{\"xw\":\"lxgwimfnjhf\",\"fkzikfj\":\"szkkfoqre\"},\"id\":\"wneaiv\",\"name\":\"wczelpci\",\"type\":\"elsfeaen\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"maximumConcurrency\":583924547,\"organizationProfile\":{\"kind\":\"OrganizationProfile\"},\"agentProfile\":{\"kind\":\"AgentProfile\",\"resourcePredictions\":{},\"resourcePredictionsProfile\":{\"kind\":\"ResourcePredictionsProfile\"}},\"fabricProfile\":{\"kind\":\"FabricProfile\"},\"devCenterProjectResourceId\":\"zqalkrmnjijpx\"},\"identity\":{\"principalId\":\"qudf\",\"tenantId\":\"yxbaaabjyvayf\",\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"wmewzsyy\":{\"principalId\":\"rtuzqogs\",\"clientId\":\"nevfdnw\"},\"frxtrthzvaytdwk\":{\"principalId\":\"uzsoi\",\"clientId\":\"ud\"},\"q\":{\"principalId\":\"rqubpaxhexiil\",\"clientId\":\"pdtii\"}}},\"location\":\"qoaxoruzfgs\",\"tags\":{\"tramxjez\":\"fxrxxle\",\"tdooaoj\":\"lwnwxuqlcvydyp\"},\"id\":\"niodkooeb\",\"name\":\"nuj\",\"type\":\"emmsbvdkc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,13 +35,12 @@ public void testList() throws Exception { PagedIterable response = manager.pools().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("i", response.iterator().next().location()); - Assertions.assertEquals("lxgwimfnjhf", response.iterator().next().tags().get("xw")); - Assertions.assertEquals(ProvisioningState.UPDATING, + Assertions.assertEquals("qoaxoruzfgs", response.iterator().next().location()); + Assertions.assertEquals("fxrxxle", response.iterator().next().tags().get("tramxjez")); + Assertions.assertEquals(ProvisioningState.PROVISIONING, response.iterator().next().properties().provisioningState()); - Assertions.assertEquals(422897894, response.iterator().next().properties().maximumConcurrency()); - Assertions.assertEquals("ayrhyrnx", response.iterator().next().properties().devCenterProjectResourceId()); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, - response.iterator().next().identity().type()); + Assertions.assertEquals(583924547, response.iterator().next().properties().maximumConcurrency()); + Assertions.assertEquals("zqalkrmnjijpx", response.iterator().next().properties().devCenterProjectResourceId()); + Assertions.assertEquals(ManagedServiceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaInnerTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaInnerTests.java index 6edd50e13d152..4316cdcd08ebe 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaInnerTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaInnerTests.java @@ -12,11 +12,11 @@ public final class QuotaInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaInner model = BinaryData.fromString( - "{\"id\":\"akcp\",\"unit\":\"iyzvqtmnub\",\"currentValue\":2842241649665717222,\"limit\":3156166241397533778}") + "{\"name\":{\"value\":\"zapvhelx\",\"localizedValue\":\"glyatddckcbcuej\"},\"id\":\"jxgciqibrh\",\"unit\":\"sxsdqrhzoymibm\",\"currentValue\":4538636180382407268,\"limit\":33494153525685392}") .toObject(QuotaInner.class); - Assertions.assertEquals("akcp", model.id()); - Assertions.assertEquals("iyzvqtmnub", model.unit()); - Assertions.assertEquals(2842241649665717222L, model.currentValue()); - Assertions.assertEquals(3156166241397533778L, model.limit()); + Assertions.assertEquals("jxgciqibrh", model.id()); + Assertions.assertEquals("sxsdqrhzoymibm", model.unit()); + Assertions.assertEquals(4538636180382407268L, model.currentValue()); + Assertions.assertEquals(33494153525685392L, model.limit()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaNameTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaNameTests.java new file mode 100644 index 0000000000000..59834120c5397 --- /dev/null +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/QuotaNameTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.devopsinfrastructure.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.devopsinfrastructure.models.QuotaName; +import org.junit.jupiter.api.Assertions; + +public final class QuotaNameTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + QuotaName model = BinaryData.fromString("{\"value\":\"hwflu\",\"localizedValue\":\"dtmhrkwofyyvoqa\"}") + .toObject(QuotaName.class); + Assertions.assertEquals("hwflu", model.value()); + Assertions.assertEquals("dtmhrkwofyyvoqa", model.localizedValue()); + } +} diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java index acd07fc24d65b..83c20826aa7fd 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/ResourceDetailsListByPoolMockTests.java @@ -23,7 +23,7 @@ public final class ResourceDetailsListByPoolMockTests { @Test public void testListByPool() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"status\":\"Reimaging\",\"image\":\"e\",\"imageVersion\":\"psbzkfzbeyvpn\"},\"id\":\"cvinvkjjxdxrbuuk\",\"name\":\"clewyhm\",\"type\":\"wp\"}]}"; + = "{\"value\":[{\"properties\":{\"status\":\"NotReady\",\"image\":\"ezkojvdcp\",\"imageVersion\":\"foqouicybx\"},\"id\":\"zg\",\"name\":\"zuf\",\"type\":\"x\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testListByPool() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.resourceDetails().listByPool("pulpqblylsyxk", "jnsjervtiagxsd", com.azure.core.util.Context.NONE); + = manager.resourceDetails().listByPool("tndoaongbjc", "tujitcjedft", com.azure.core.util.Context.NONE); - Assertions.assertEquals(ResourceStatus.REIMAGING, response.iterator().next().properties().status()); - Assertions.assertEquals("e", response.iterator().next().properties().image()); - Assertions.assertEquals("psbzkfzbeyvpn", response.iterator().next().properties().imageVersion()); + Assertions.assertEquals(ResourceStatus.NOT_READY, response.iterator().next().properties().status()); + Assertions.assertEquals("ezkojvdcp", response.iterator().next().properties().image()); + Assertions.assertEquals("foqouicybx", response.iterator().next().properties().imageVersion()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java index 85cde611d6204..d76c1de895409 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/src/test/java/com/azure/resourcemanager/devopsinfrastructure/generated/SubscriptionUsagesUsagesMockTests.java @@ -22,7 +22,7 @@ public final class SubscriptionUsagesUsagesMockTests { @Test public void testUsages() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"aw\",\"unit\":\"aldsy\",\"currentValue\":2537026666959704329,\"limit\":4613349711608649524}]}"; + = "{\"value\":[{\"name\":{\"value\":\"pqvujzraehtwdwrf\",\"localizedValue\":\"wib\"},\"id\":\"rcdlbhshfwpr\",\"unit\":\"cstwity\",\"currentValue\":8379172457270737030,\"limit\":8273553934247347579}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,12 @@ public void testUsages() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - PagedIterable response = manager.subscriptionUsages().usages("tlmngu", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.subscriptionUsages().usages("xgfpelolppv", com.azure.core.util.Context.NONE); - Assertions.assertEquals("aw", response.iterator().next().id()); - Assertions.assertEquals("aldsy", response.iterator().next().unit()); - Assertions.assertEquals(2537026666959704329L, response.iterator().next().currentValue()); - Assertions.assertEquals(4613349711608649524L, response.iterator().next().limit()); + Assertions.assertEquals("rcdlbhshfwpr", response.iterator().next().id()); + Assertions.assertEquals("cstwity", response.iterator().next().unit()); + Assertions.assertEquals(8379172457270737030L, response.iterator().next().currentValue()); + Assertions.assertEquals(8273553934247347579L, response.iterator().next().limit()); } } diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml index b40533640e0c8..f9f0d1fcbfd25 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management -commit: 7ed015e3dd1b8b1b0e71c9b5e6b6c5ccb8968b3a +commit: 19c009c9da2e73ac60ad55c79989d88e447ecb7f repo: Azure/azure-rest-api-specs -additionalDirectories: null +additionalDirectories: From 91427d2c75debb85907abe971937aaeda28c50b6 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 21 Nov 2024 06:54:22 -0800 Subject: [PATCH 28/44] Increment package versions for devopsinfrastructure releases (#43053) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-devopsinfrastructure/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index e8876a3882000..dfe32a1a97df0 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -462,7 +462,7 @@ com.azure.resourcemanager:azure-resourcemanager-storageactions;1.0.0-beta.1;1.0. com.azure.resourcemanager:azure-resourcemanager-deviceregistry;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-standbypool;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-edgezones;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0-beta.1;1.0.0 +com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-oracledatabase;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-mongocluster;1.0.0;1.1.0-beta.1 diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md index e0849fe70044f..39caae00eafba 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2024-11-21) - Azure Resource Manager DevOps Infrastructure client library for Java. This package contains Microsoft Azure SDK for DevOps Infrastructure Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml index a698876576239..4027ce18f8d3e 100644 --- a/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml +++ b/sdk/devopsinfrastructure/azure-resourcemanager-devopsinfrastructure/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-devopsinfrastructure - 1.0.0 + 1.1.0-beta.1 jar Microsoft Azure SDK for DevOps Infrastructure Management From cdfb0b851cd0b5351f1344709b8b4c97ea7d7d21 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 21 Nov 2024 22:54:40 +0800 Subject: [PATCH 29/44] eng, bump azure-autorest-customization 1.0.0-beta.9 (#43047) --- eng/versioning/external_dependencies.txt | 2 +- sdk/parents/azure-code-customization-parent/pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/versioning/external_dependencies.txt b/eng/versioning/external_dependencies.txt index a46ba6b72af9d..8974fe530ae2c 100644 --- a/eng/versioning/external_dependencies.txt +++ b/eng/versioning/external_dependencies.txt @@ -9,7 +9,7 @@ # groupId:artifactId;dependency-version ch.qos.logback:logback-classic;1.3.14 com.azure:azure-servicebus-jms;2.0.0 -com.azure.tools:azure-autorest-customization;1.0.0-beta.8 +com.azure.tools:azure-autorest-customization;1.0.0-beta.9 com.fasterxml:aalto-xml;1.3.3 com.fasterxml.jackson.core:jackson-annotations;2.17.2 com.fasterxml.jackson.core:jackson-core;2.17.2 diff --git a/sdk/parents/azure-code-customization-parent/pom.xml b/sdk/parents/azure-code-customization-parent/pom.xml index 398c8df168627..67e4865b94d0e 100644 --- a/sdk/parents/azure-code-customization-parent/pom.xml +++ b/sdk/parents/azure-code-customization-parent/pom.xml @@ -54,7 +54,7 @@ com.azure.tools azure-autorest-customization - 1.0.0-beta.8 + 1.0.0-beta.9 @@ -68,7 +68,7 @@ - com.azure.tools:azure-autorest-customization:[1.0.0-beta.8] + com.azure.tools:azure-autorest-customization:[1.0.0-beta.9] From f0b4b9bb4de92c4db7aa517efa96cc6e37e4530f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 21 Nov 2024 06:55:21 -0800 Subject: [PATCH 30/44] Increment package versions for cosmos releases (#43041) --- common/smoke-tests/pom.xml | 2 +- eng/versioning/version_client.txt | 4 ++-- sdk/aot/azure-aot-graalvm-samples/pom.xml | 2 +- sdk/cosmos/azure-cosmos-benchmark/pom.xml | 4 ++-- sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml | 2 +- sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md | 10 ++++++++++ sdk/cosmos/azure-cosmos-encryption/pom.xml | 4 ++-- sdk/cosmos/azure-cosmos-kafka-connect/pom.xml | 2 +- sdk/cosmos/azure-cosmos-spark_3_2-12/pom.xml | 2 +- sdk/cosmos/azure-cosmos-test/pom.xml | 2 +- sdk/cosmos/azure-cosmos-tests/pom.xml | 2 +- sdk/cosmos/azure-cosmos/CHANGELOG.md | 10 ++++++++++ sdk/cosmos/azure-cosmos/pom.xml | 2 +- .../azure-resourcemanager-samples/pom.xml | 2 +- sdk/spring/azure-spring-data-cosmos/pom.xml | 2 +- .../spring-cloud-azure-actuator-autoconfigure/pom.xml | 2 +- sdk/spring/spring-cloud-azure-actuator/pom.xml | 2 +- sdk/spring/spring-cloud-azure-autoconfigure/pom.xml | 2 +- sdk/spring/spring-cloud-azure-service/pom.xml | 2 +- sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml | 2 +- 20 files changed, 41 insertions(+), 21 deletions(-) diff --git a/common/smoke-tests/pom.xml b/common/smoke-tests/pom.xml index d0636500550ca..f1892b9556db8 100644 --- a/common/smoke-tests/pom.xml +++ b/common/smoke-tests/pom.xml @@ -118,7 +118,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index dfe32a1a97df0..fab3032950550 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -102,11 +102,11 @@ com.azure:azure-core-test;1.27.0-beta.4;1.27.0-beta.5 com.azure:azure-core-tracing-opentelemetry;1.0.0-beta.52;1.0.0-beta.53 com.azure:azure-core-tracing-opentelemetry-samples;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-core-version-tests;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-cosmos;4.64.0;4.65.0 +com.azure:azure-cosmos;4.65.0;4.66.0-beta.1 com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure:azure-cosmos-dotnet-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3_2-12;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-cosmos-encryption;2.15.0;2.16.0 +com.azure:azure-cosmos-encryption;2.16.0;2.17.0-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.34.0;4.35.0-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;4.34.0;4.35.0-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12;4.34.0;4.35.0-beta.1 diff --git a/sdk/aot/azure-aot-graalvm-samples/pom.xml b/sdk/aot/azure-aot-graalvm-samples/pom.xml index efc437d157c26..6e1692005505a 100644 --- a/sdk/aot/azure-aot-graalvm-samples/pom.xml +++ b/sdk/aot/azure-aot-graalvm-samples/pom.xml @@ -97,7 +97,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 com.azure diff --git a/sdk/cosmos/azure-cosmos-benchmark/pom.xml b/sdk/cosmos/azure-cosmos-benchmark/pom.xml index 39405b927a539..2b2efef73ec9f 100644 --- a/sdk/cosmos/azure-cosmos-benchmark/pom.xml +++ b/sdk/cosmos/azure-cosmos-benchmark/pom.xml @@ -52,13 +52,13 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0 + 4.66.0-beta.1 com.azure azure-cosmos-encryption - 2.16.0 + 2.17.0-beta.1 diff --git a/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml b/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml index 4af22863e6953..88ccaab1740a9 100644 --- a/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml +++ b/sdk/cosmos/azure-cosmos-dotnet-benchmark/pom.xml @@ -51,7 +51,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0 + 4.66.0-beta.1 diff --git a/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md b/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md index c5f6c8f2b852a..b59bd121e38b0 100644 --- a/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos-encryption/CHANGELOG.md @@ -1,5 +1,15 @@ ## Release History +### 2.17.0-beta.1 (Unreleased) + +#### Features Added + +#### Breaking Changes + +#### Bugs Fixed + +#### Other Changes + ### 2.16.0 (2024-11-19) #### Other Changes diff --git a/sdk/cosmos/azure-cosmos-encryption/pom.xml b/sdk/cosmos/azure-cosmos-encryption/pom.xml index 55d2beb62d5e8..0384b831e20fe 100644 --- a/sdk/cosmos/azure-cosmos-encryption/pom.xml +++ b/sdk/cosmos/azure-cosmos-encryption/pom.xml @@ -13,7 +13,7 @@ Licensed under the MIT License. com.azure azure-cosmos-encryption - 2.16.0 + 2.17.0-beta.1 Encryption Plugin for Azure Cosmos DB SDK This Package contains Encryption Plugin for Microsoft Azure Cosmos SDK jar @@ -59,7 +59,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0 + 4.66.0-beta.1 diff --git a/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml b/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml index 901b9aadf9e70..fb02bdf00391e 100644 --- a/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml +++ b/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml @@ -86,7 +86,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0 + 4.66.0-beta.1 + 4.66.0-beta.1 org.scala-lang.modules diff --git a/sdk/cosmos/azure-cosmos-test/pom.xml b/sdk/cosmos/azure-cosmos-test/pom.xml index 1b5012beb9cf8..4d9d6130c10c7 100644 --- a/sdk/cosmos/azure-cosmos-test/pom.xml +++ b/sdk/cosmos/azure-cosmos-test/pom.xml @@ -59,7 +59,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0 + 4.66.0-beta.1 diff --git a/sdk/cosmos/azure-cosmos-tests/pom.xml b/sdk/cosmos/azure-cosmos-tests/pom.xml index 40e64ae38292e..e037ba9f9914e 100644 --- a/sdk/cosmos/azure-cosmos-tests/pom.xml +++ b/sdk/cosmos/azure-cosmos-tests/pom.xml @@ -100,7 +100,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0 + 4.66.0-beta.1 com.azure diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 5ba9edc2dacd5..2641c091c7a9d 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -1,5 +1,15 @@ ## Release History +### 4.66.0-beta.1 (Unreleased) + +#### Features Added + +#### Breaking Changes + +#### Bugs Fixed + +#### Other Changes + ### 4.65.0 (2024-11-19) #### Features Added diff --git a/sdk/cosmos/azure-cosmos/pom.xml b/sdk/cosmos/azure-cosmos/pom.xml index 7fbfdef204ca5..a5dfd411f0eec 100644 --- a/sdk/cosmos/azure-cosmos/pom.xml +++ b/sdk/cosmos/azure-cosmos/pom.xml @@ -13,7 +13,7 @@ Licensed under the MIT License. com.azure azure-cosmos - 4.65.0 + 4.66.0-beta.1 Microsoft Azure SDK for SQL API of Azure Cosmos DB Service This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API jar diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml b/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml index 7b25f7aae9e51..2e76a915254dc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml @@ -114,7 +114,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 com.azure diff --git a/sdk/spring/azure-spring-data-cosmos/pom.xml b/sdk/spring/azure-spring-data-cosmos/pom.xml index b9d63f0795398..2cee62efc273c 100644 --- a/sdk/spring/azure-spring-data-cosmos/pom.xml +++ b/sdk/spring/azure-spring-data-cosmos/pom.xml @@ -100,7 +100,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 com.fasterxml.jackson.module diff --git a/sdk/spring/spring-cloud-azure-actuator-autoconfigure/pom.xml b/sdk/spring/spring-cloud-azure-actuator-autoconfigure/pom.xml index 299749ca28b1e..3952519bf7190 100644 --- a/sdk/spring/spring-cloud-azure-actuator-autoconfigure/pom.xml +++ b/sdk/spring/spring-cloud-azure-actuator-autoconfigure/pom.xml @@ -78,7 +78,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 true diff --git a/sdk/spring/spring-cloud-azure-actuator/pom.xml b/sdk/spring/spring-cloud-azure-actuator/pom.xml index 7602c3597d423..6fa24fb6ea9b6 100644 --- a/sdk/spring/spring-cloud-azure-actuator/pom.xml +++ b/sdk/spring/spring-cloud-azure-actuator/pom.xml @@ -61,7 +61,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 true diff --git a/sdk/spring/spring-cloud-azure-autoconfigure/pom.xml b/sdk/spring/spring-cloud-azure-autoconfigure/pom.xml index d763ff699103d..65b733ed3ba2b 100644 --- a/sdk/spring/spring-cloud-azure-autoconfigure/pom.xml +++ b/sdk/spring/spring-cloud-azure-autoconfigure/pom.xml @@ -202,7 +202,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 true diff --git a/sdk/spring/spring-cloud-azure-service/pom.xml b/sdk/spring/spring-cloud-azure-service/pom.xml index 98f1ba5bff4cf..87e4bb8ddce8b 100644 --- a/sdk/spring/spring-cloud-azure-service/pom.xml +++ b/sdk/spring/spring-cloud-azure-service/pom.xml @@ -48,7 +48,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 true diff --git a/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml b/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml index 767d57fe3e23d..fd8f64a2a0e57 100644 --- a/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-cosmos/pom.xml @@ -94,7 +94,7 @@ com.azure azure-cosmos - 4.64.0 + 4.65.0 From 96690948a4c4c188c4d904f28001780457d9cde0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:48:50 -0800 Subject: [PATCH 31/44] Sync eng/common directory with azure-sdk-tools for PR 9392 (#43036) * Support override of powershell module feeds * snap * Add fallback repository support * Unregister repository after module install --------- Co-authored-by: Ben Broderick Phillips --- .../scripts/Helpers/PSModule-Helpers.ps1 | 144 +++++++++++------- 1 file changed, 91 insertions(+), 53 deletions(-) diff --git a/eng/common/scripts/Helpers/PSModule-Helpers.ps1 b/eng/common/scripts/Helpers/PSModule-Helpers.ps1 index bfca8a4154d8e..0c825cb70601a 100644 --- a/eng/common/scripts/Helpers/PSModule-Helpers.ps1 +++ b/eng/common/scripts/Helpers/PSModule-Helpers.ps1 @@ -1,4 +1,3 @@ -$DefaultPSRepositoryUrl = "https://www.powershellgallery.com/api/v2" $global:CurrentUserModulePath = "" function Update-PSModulePathForCI() @@ -47,6 +46,69 @@ function Update-PSModulePathForCI() } } +function Get-ModuleRepositories([string]$moduleName) { + $DefaultPSRepositoryUrl = "https://www.powershellgallery.com/api/v2" + # List of modules+versions we want to replace with internal feed sources for reliability, security, etc. + $packageFeedOverrides = @{ + 'powershell-yaml' = 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-tools/nuget/v2' + } + + $repoUrls = if ($packageFeedOverrides.Contains("${moduleName}")) { + @($packageFeedOverrides["${moduleName}"], $DefaultPSRepositoryUrl) + } else { + @($DefaultPSRepositoryUrl) + } + + return $repoUrls +} + +function moduleIsInstalled([string]$moduleName, [string]$version) { + $modules = (Get-Module -ListAvailable $moduleName) + if ($version -as [Version]) { + $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) + if ($modules.Count -gt 0) + { + Write-Host "Using module $($modules[0].Name) with version $($modules[0].Version)." + return $modules[0] + } + } + return $null +} + +function installModule([string]$moduleName, [string]$version, $repoUrl) { + $repo = (Get-PSRepository).Where({ $_.SourceLocation -eq $repoUrl }) + if ($repo.Count -eq 0) + { + Register-PSRepository -Name $repoUrl -SourceLocation $repoUrl -InstallationPolicy Trusted + $repo = (Get-PSRepository).Where({ $_.SourceLocation -eq $repoUrl }) + if ($repo.Count -eq 0) { + throw "Failed to register package repository $repoUrl." + } + } + + if ($repo.InstallationPolicy -ne "Trusted") { + Set-PSRepository -Name $repo.Name -InstallationPolicy "Trusted" + } + + Write-Host "Installing module $moduleName with min version $version from $repoUrl" + # Install under CurrentUser scope so that the end up under $CurrentUserModulePath for caching + Install-Module $moduleName -MinimumVersion $version -Repository $repo.Name -Scope CurrentUser -Force + # Ensure module installed + $modules = (Get-Module -ListAvailable $moduleName) + if ($version -as [Version]) { + $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) + } + if ($modules.Count -eq 0) { + throw "Failed to install module $moduleName with version $version" + } + + # Unregister repository as it can cause overlap issues with `dotnet tool install` + # commands using the same devops feed + Unregister-PSRepository -Name $repoUrl + + return $modules[0] +} + # Manual test at eng/common-tests/psmodule-helpers/Install-Module-Parallel.ps1 # If we want to use another default repository other then PSGallery we can update the default parameters function Install-ModuleIfNotInstalled() @@ -55,69 +117,45 @@ function Install-ModuleIfNotInstalled() param( [string]$moduleName, [string]$version, - [string]$repositoryUrl = $DefaultPSRepositoryUrl + [string]$repositoryUrl ) - # Check installed modules - $modules = (Get-Module -ListAvailable $moduleName) - if ($version -as [Version]) { - $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) - } + # Check installed modules before after acquiring lock to avoid a big queue + $module = moduleIsInstalled -moduleName $moduleName -version $version + if ($module) { return $module } - if ($modules.Count -eq 0) - { - # Use double-checked locking to avoid locking when module is already installed + try { $mutex = New-Object System.Threading.Mutex($false, "Install-ModuleIfNotInstalled") $null = $mutex.WaitOne() - try { - # Check installed modules again after acquiring lock - $modules = (Get-Module -ListAvailable $moduleName) - if ($version -as [Version]) { - $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) - } - - if ($modules.Count -eq 0) - { - $repositories = (Get-PSRepository).Where({ $_.SourceLocation -eq $repositoryUrl }) - if ($repositories.Count -eq 0) - { - Register-PSRepository -Name $repositoryUrl -SourceLocation $repositoryUrl -InstallationPolicy Trusted - $repositories = (Get-PSRepository).Where({ $_.SourceLocation -eq $repositoryUrl }) - if ($repositories.Count -eq 0) { - Write-Error "Failed to register package repository $repositoryUrl." - return - } - } - $repository = $repositories[0] - - if ($repository.InstallationPolicy -ne "Trusted") { - Set-PSRepository -Name $repository.Name -InstallationPolicy "Trusted" - } - - Write-Host "Installing module $moduleName with min version $version from $repositoryUrl" - # Install under CurrentUser scope so that the end up under $CurrentUserModulePath for caching - Install-Module $moduleName -MinimumVersion $version -Repository $repository.Name -Scope CurrentUser -Force - - # Ensure module installed - $modules = (Get-Module -ListAvailable $moduleName) - if ($version -as [Version]) { - $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) - } - - if ($modules.Count -eq 0) { - Write-Error "Failed to install module $moduleName with version $version" - return + # Check installed modules again after acquiring lock, in case it has been installed + $module = moduleIsInstalled -moduleName $moduleName -version $version + if ($module) { return $module } + + $repoUrls = Get-ModuleRepositories $moduleName + + foreach ($url in $repoUrls) { + try { + $module = installModule -moduleName $moduleName -version $version -repoUrl $url + } catch { + if ($url -ne $repoUrls[-1]) { + Write-Warning "Failed to install powershell module from '$url'. Retrying with fallback repository" + Write-Warning $_ + continue + } else { + Write-Warning "Failed to install powershell module from $url" + throw } } + break } - finally { - $mutex.ReleaseMutex() - } + + Write-Host "Using module '$($module.Name)' with version '$($module.Version)'." + } finally { + $mutex.ReleaseMutex() } - Write-Host "Using module $($modules[0].Name) with version $($modules[0].Version)." - return $modules[0] + return $module } if ($null -ne $env:SYSTEM_TEAMPROJECTID) { From 5e8a8e699dc2eddff28860a38a533bb2501f1ef0 Mon Sep 17 00:00:00 2001 From: Jair Myree Date: Thu, 21 Nov 2024 13:51:03 -0800 Subject: [PATCH 32/44] Fix Serialization of SearchDocumentsResults DebugInfo property (#43057) * PR Updates based on comments. Keeping the name debugInfo * Spelling fixes --- .../azure-search-documents/CHANGELOG.md | 6 +--- .../models/SearchDocumentsResult.java | 36 +++++++++---------- .../azure-search-documents/swagger/README.md | 10 ++++++ 3 files changed, 29 insertions(+), 23 deletions(-) diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index efd6163f1e796..e7489b7055985 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -2,13 +2,9 @@ ## 11.8.0-beta.4 (Unreleased) -### Features Added - -### Breaking Changes - ### Bugs Fixed -### Other Changes + - Fixed bug in the serialization of `SearchDocumentsResult` `debuginfo` property. ## 11.8.0-beta.3 (2024-11-20) diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/SearchDocumentsResult.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/SearchDocumentsResult.java index bcd182b4063aa..f40023daab8c5 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/SearchDocumentsResult.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/SearchDocumentsResult.java @@ -51,11 +51,6 @@ public final class SearchDocumentsResult implements JsonSerializable answers; - /* - * Debug information that applies to the search results as a whole. - */ - private DebugInfo debugInfo; - /* * Continuation JSON payload returned when the query can't return all the requested results in a single response. * You can use this JSON along with @odata.nextLink to formulate another POST Search request to get the next part of @@ -90,6 +85,11 @@ public final class SearchDocumentsResult implements JsonSerializable getAnswers() { return this.answers; } - /** - * Get the debugInfo property: Debug information that applies to the search results as a whole. - * - * @return the debugInfo value. - */ - public DebugInfo getDebugInfo() { - return this.debugInfo; - } - /** * Get the nextPageParameters property: Continuation JSON payload returned when the query can't return all the * requested results in a single response. You can use this JSON along with @odata.nextLink to formulate @@ -210,6 +201,15 @@ public SemanticQueryRewritesResultType getSemanticQueryRewritesResultType() { return this.semanticQueryRewritesResultType; } + /** + * Get the debugInfo property: Debug information that applies to the search results as a whole. + * + * @return the debugInfo value. + */ + public DebugInfo getDebugInfo() { + return this.debugInfo; + } + /** * {@inheritDoc} */ @@ -236,12 +236,12 @@ public static SearchDocumentsResult fromJson(JsonReader jsonReader) throws IOExc Double coverage = null; Map> facets = null; List answers = null; - DebugInfo debugInfo = null; SearchRequest nextPageParameters = null; String nextLink = null; SemanticErrorReason semanticPartialResponseReason = null; SemanticSearchResultsType semanticPartialResponseType = null; SemanticQueryRewritesResultType semanticQueryRewritesResultType = null; + DebugInfo debugInfo = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -257,8 +257,6 @@ public static SearchDocumentsResult fromJson(JsonReader jsonReader) throws IOExc facets = reader.readMap(reader1 -> reader1.readArray(reader2 -> FacetResult.fromJson(reader2))); } else if ("@search.answers".equals(fieldName)) { answers = reader.readArray(reader1 -> QueryAnswerResult.fromJson(reader1)); - } else if ("@search.debugInfo".equals(fieldName)) { - debugInfo = DebugInfo.fromJson(reader); } else if ("@search.nextPageParameters".equals(fieldName)) { nextPageParameters = SearchRequest.fromJson(reader); } else if ("@odata.nextLink".equals(fieldName)) { @@ -269,6 +267,8 @@ public static SearchDocumentsResult fromJson(JsonReader jsonReader) throws IOExc semanticPartialResponseType = SemanticSearchResultsType.fromString(reader.getString()); } else if ("@search.semanticQueryRewritesResultType".equals(fieldName)) { semanticQueryRewritesResultType = SemanticQueryRewritesResultType.fromString(reader.getString()); + } else if ("@search.debug".equals(fieldName)) { + debugInfo = DebugInfo.fromJson(reader); } else { reader.skipChildren(); } @@ -279,12 +279,12 @@ public static SearchDocumentsResult fromJson(JsonReader jsonReader) throws IOExc deserializedSearchDocumentsResult.coverage = coverage; deserializedSearchDocumentsResult.facets = facets; deserializedSearchDocumentsResult.answers = answers; - deserializedSearchDocumentsResult.debugInfo = debugInfo; deserializedSearchDocumentsResult.nextPageParameters = nextPageParameters; deserializedSearchDocumentsResult.nextLink = nextLink; deserializedSearchDocumentsResult.semanticPartialResponseReason = semanticPartialResponseReason; deserializedSearchDocumentsResult.semanticPartialResponseType = semanticPartialResponseType; deserializedSearchDocumentsResult.semanticQueryRewritesResultType = semanticQueryRewritesResultType; + deserializedSearchDocumentsResult.debugInfo = debugInfo; return deserializedSearchDocumentsResult; } diff --git a/sdk/search/azure-search-documents/swagger/README.md b/sdk/search/azure-search-documents/swagger/README.md index 6aade36c09a3a..88bfe4c626927 100644 --- a/sdk/search/azure-search-documents/swagger/README.md +++ b/sdk/search/azure-search-documents/swagger/README.md @@ -481,3 +481,13 @@ directive: delete $["@search.documentDebugInfo"].type; delete $["@search.documentDebugInfo"].items; ``` + +### `SearchDocumentsResult["@search.debugInfo"]` -> `SearchDocumentsResult["@search.debug"]` +``` yaml $(tag) == 'searchindex' +directive: + - from: swagger-document + where: $.definitions.SearchDocumentsResult.properties + transform: > + $["@search.debug"] = $["@search.debugInfo"]; + delete $["@search.debugInfo"]; +``` From 34fce5fbb0d55a79e14286bf960c24537b2cf8b8 Mon Sep 17 00:00:00 2001 From: Jair Myree Date: Thu, 21 Nov 2024 15:01:53 -0800 Subject: [PATCH 33/44] Prepare Nov 2024 Search Preview Release (patch) (#43058) --- sdk/search/azure-search-documents/CHANGELOG.md | 2 +- sdk/search/azure-search-documents/README.md | 2 +- sdk/search/azure-search-documents/src/samples/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index e7489b7055985..de20ce405dcab 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 11.8.0-beta.4 (Unreleased) +## 11.8.0-beta.4 (2024-11-21) ### Bugs Fixed diff --git a/sdk/search/azure-search-documents/README.md b/sdk/search/azure-search-documents/README.md index 7cf96f1bcb05f..6e7638c1b0d62 100644 --- a/sdk/search/azure-search-documents/README.md +++ b/sdk/search/azure-search-documents/README.md @@ -75,7 +75,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.8.0-beta.3 + 11.8.0-beta.4 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/search/azure-search-documents/src/samples/README.md b/sdk/search/azure-search-documents/src/samples/README.md index 622865d557eff..429adbf43108b 100644 --- a/sdk/search/azure-search-documents/src/samples/README.md +++ b/sdk/search/azure-search-documents/src/samples/README.md @@ -61,7 +61,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.8.0-beta.3 + 11.8.0-beta.4 ``` [//]: # ({x-version-update-end}) From 056d4e80f49efef0fce150ea87434a6299d02860 Mon Sep 17 00:00:00 2001 From: Moary Chen Date: Fri, 22 Nov 2024 14:24:23 +0800 Subject: [PATCH 34/44] Add JCA changelog (#43064) --- sdk/keyvault/azure-security-keyvault-jca/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/keyvault/azure-security-keyvault-jca/CHANGELOG.md b/sdk/keyvault/azure-security-keyvault-jca/CHANGELOG.md index 051550effedf0..3649e8226284f 100644 --- a/sdk/keyvault/azure-security-keyvault-jca/CHANGELOG.md +++ b/sdk/keyvault/azure-security-keyvault-jca/CHANGELOG.md @@ -9,6 +9,7 @@ ### Bugs Fixed - Fixed bug: Intermediate certificate not loaded. [#39715](https://github.com/Azure/azure-sdk-for-java/issues/39715). - Fixed bug: Failed to get cert name when key vault name include "certificates". [#42162](https://github.com/Azure/azure-sdk-for-java/issues/42162). +- Fixed bug: `JsonParseException` and `ServiceConfigurationError` exceptions when acquiring access token. [#42860](https://github.com/Azure/azure-sdk-for-java/pull/42860). ### Other Changes From f5b492c446170d2623c610e0186c950298dd65b9 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 21 Nov 2024 23:19:55 -0800 Subject: [PATCH 35/44] [Automation] Generate Fluent Lite from Swagger cognitiveservices#package-2024-10 (#43065) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 569 +++++++- .../README.md | 4 +- .../SAMPLE.md | 1197 ++++++++++++++-- .../pom.xml | 6 +- .../CognitiveServicesManager.java | 152 +- .../CognitiveServicesManagementClient.java | 63 + .../fluent/DefenderForAISettingsClient.java | 140 ++ .../fluent/DeploymentsClient.java | 100 ++ .../fluent/EncryptionScopesClient.java | 169 +++ .../LocationBasedModelCapacitiesClient.java | 51 + .../fluent/ModelCapacitiesClient.java | 49 + ...SecurityPerimeterConfigurationsClient.java | 141 ++ .../fluent/RaiBlocklistItemsClient.java | 250 ++++ .../fluent/RaiBlocklistsClient.java | 169 +++ .../fluent/RaiContentFiltersClient.java | 69 + .../fluent/RaiPoliciesClient.java | 168 +++ .../fluent/ResourceProvidersClient.java | 28 + .../fluent/UsagesClient.java | 6 +- .../fluent/models/AccountModelInner.java | 32 +- .../CalculateModelCapacityResultInner.java | 160 +++ ...CommitmentPlanAccountAssociationInner.java | 30 + .../models/DefenderForAISettingInner.java | 225 +++ .../DefenderForAISettingProperties.java | 96 ++ .../fluent/models/DeploymentInner.java | 30 + .../fluent/models/EncryptionScopeInner.java | 212 +++ ...ModelCapacityListResultValueItemInner.java | 179 +++ .../fluent/models/ModelInner.java | 46 +- ...rkSecurityPerimeterConfigurationInner.java | 152 ++ .../fluent/models/RaiBlocklistInner.java | 212 +++ .../fluent/models/RaiBlocklistItemInner.java | 212 +++ .../fluent/models/RaiContentFilterInner.java | 149 ++ .../fluent/models/RaiPolicyInner.java | 212 +++ .../fluent/models/SkuResourceInner.java | 157 +++ .../fluent/models/UsageInner.java | 267 ---- .../fluent/models/UsageListResultInner.java | 9 +- .../implementation/AccountModelImpl.java | 8 + .../CalculateModelCapacityResultImpl.java | 42 + ...CognitiveServicesManagementClientImpl.java | 146 +- .../CommitmentPlanAccountAssociationImpl.java | 16 + .../DefenderForAISettingImpl.java | 159 +++ .../DefenderForAISettingsClientImpl.java | 756 ++++++++++ .../DefenderForAISettingsImpl.java | 112 ++ .../implementation/DeploymentImpl.java | 42 +- .../implementation/DeploymentsClientImpl.java | 494 +++++++ .../implementation/DeploymentsImpl.java | 15 + .../implementation/EncryptionScopeImpl.java | 156 +++ .../EncryptionScopesClientImpl.java | 832 +++++++++++ .../implementation/EncryptionScopesImpl.java | 156 +++ ...ocationBasedModelCapacitiesClientImpl.java | 305 ++++ .../LocationBasedModelCapacitiesImpl.java | 51 + .../ModelCapacitiesClientImpl.java | 292 ++++ .../implementation/ModelCapacitiesImpl.java | 51 + .../ModelCapacityListResultValueItemImpl.java | 49 + .../implementation/ModelImpl.java | 4 + ...orkSecurityPerimeterConfigurationImpl.java | 45 + ...rityPerimeterConfigurationsClientImpl.java | 687 +++++++++ ...rkSecurityPerimeterConfigurationsImpl.java | 97 ++ .../implementation/RaiBlocklistImpl.java | 155 +++ .../implementation/RaiBlocklistItemImpl.java | 164 +++ .../RaiBlocklistItemsClientImpl.java | 1236 +++++++++++++++++ .../implementation/RaiBlocklistItemsImpl.java | 223 +++ .../RaiBlocklistsClientImpl.java | 827 +++++++++++ .../implementation/RaiBlocklistsImpl.java | 156 +++ .../implementation/RaiContentFilterImpl.java | 45 + .../RaiContentFiltersClientImpl.java | 376 +++++ .../implementation/RaiContentFiltersImpl.java | 66 + .../implementation/RaiPoliciesClientImpl.java | 816 +++++++++++ .../implementation/RaiPoliciesImpl.java | 156 +++ .../implementation/RaiPolicyImpl.java | 153 ++ .../ResourceProvidersClientImpl.java | 120 ++ .../implementation/ResourceProvidersImpl.java | 24 + .../implementation/SkuResourceImpl.java | 42 + .../implementation/UsageImpl.java | 59 - .../implementation/UsageListResultImpl.java | 7 +- .../implementation/UsagesClientImpl.java | 24 +- .../implementation/UsagesImpl.java | 7 +- .../models/AccountModel.java | 17 +- .../models/AccountProperties.java | 62 + .../models/BillingMeterInfo.java | 149 ++ .../models/ByPassSelection.java | 51 + .../CalculateModelCapacityParameter.java | 159 +++ .../models/CalculateModelCapacityResult.java | 41 + ...eModelCapacityResultEstimatedCapacity.java | 125 ++ .../models/CapacityConfig.java | 30 + .../models/CheckSkuAvailabilityParameter.java | 6 +- .../CommitmentPlanAccountAssociation.java | 38 +- .../models/ContentLevel.java | 56 + .../models/CustomBlocklistConfig.java | 117 ++ .../models/DefenderForAISetting.java | 230 +++ .../models/DefenderForAISettingResult.java | 128 ++ .../models/DefenderForAISettingState.java | 51 + .../models/DefenderForAISettings.java | 98 ++ .../cognitiveservices/models/Deployment.java | 46 +- .../models/DeploymentCapacitySettings.java | 121 ++ .../models/DeploymentModel.java | 60 +- .../models/DeploymentProperties.java | 112 +- .../models/DeploymentScaleSettings.java | 2 +- .../models/DeploymentSkuListResult.java | 115 ++ .../cognitiveservices/models/Deployments.java | 30 + .../cognitiveservices/models/Encryption.java | 2 +- .../models/EncryptionScope.java | 230 +++ .../models/EncryptionScopeListResult.java | 128 ++ .../models/EncryptionScopeProperties.java | 137 ++ .../EncryptionScopeProvisioningState.java | 76 + .../models/EncryptionScopeState.java | 51 + .../models/EncryptionScopes.java | 146 ++ .../models/LocationBasedModelCapacities.java | 46 + .../cognitiveservices/models/Model.java | 13 +- .../models/ModelCapacities.java | 43 + .../ModelCapacityCalculatorWorkload.java | 128 ++ ...apacityCalculatorWorkloadRequestParam.java | 125 ++ .../models/ModelCapacityListResult.java | 128 ++ .../ModelCapacityListResultValueItem.java | 55 + .../models/ModelLifecycleStatus.java | 19 +- .../cognitiveservices/models/ModelSku.java | 32 + .../models/ModelSkuCapacityProperties.java | 183 +++ .../models/NetworkRuleSet.java | 28 + .../models/NetworkSecurityPerimeter.java | 149 ++ .../NetworkSecurityPerimeterAccessRule.java | 126 ++ ...SecurityPerimeterAccessRuleProperties.java | 230 +++ ...AccessRulePropertiesSubscriptionsItem.java | 97 ++ ...NetworkSecurityPerimeterConfiguration.java | 48 + ...PerimeterConfigurationAssociationInfo.java | 124 ++ ...orkSecurityPerimeterConfigurationList.java | 130 ++ ...urityPerimeterConfigurationProperties.java | 217 +++ ...etworkSecurityPerimeterConfigurations.java | 98 ++ .../NetworkSecurityPerimeterProfileInfo.java | 217 +++ .../models/NspAccessRuleDirection.java | 51 + .../models/ProvisioningIssue.java | 124 ++ .../models/ProvisioningIssueProperties.java | 217 +++ .../models/RaiBlockListItemsResult.java | 128 ++ .../models/RaiBlockListResult.java | 127 ++ .../models/RaiBlocklist.java | 230 +++ .../models/RaiBlocklistConfig.java | 121 ++ .../models/RaiBlocklistItem.java | 231 +++ .../models/RaiBlocklistItemBulkRequest.java | 124 ++ .../models/RaiBlocklistItemProperties.java | 121 ++ .../models/RaiBlocklistItems.java | 217 +++ .../models/RaiBlocklistProperties.java | 93 ++ .../models/RaiBlocklists.java | 146 ++ .../models/RaiContentFilter.java | 47 + .../models/RaiContentFilterListResult.java | 128 ++ .../models/RaiContentFilterProperties.java | 151 ++ .../models/RaiContentFilters.java | 62 + .../models/RaiMonitorConfig.java | 121 ++ .../cognitiveservices/models/RaiPolicies.java | 146 ++ .../cognitiveservices/models/RaiPolicy.java | 230 +++ .../models/RaiPolicyContentFilter.java | 206 +++ .../models/RaiPolicyContentSource.java | 51 + .../models/RaiPolicyListResult.java | 127 ++ .../models/RaiPolicyMode.java | 62 + .../models/RaiPolicyProperties.java | 211 +++ .../models/RaiPolicyType.java | 51 + .../models/ResourceProviders.java | 24 + .../cognitiveservices/models/SkuResource.java | 40 + .../cognitiveservices/models/Usage.java | 236 +++- .../models/UserOwnedAmlWorkspace.java | 121 ++ .../proxy-config.json | 2 +- .../generated/AccountsCreateSamples.java | 4 +- .../generated/AccountsDeleteSamples.java | 2 +- .../AccountsGetByResourceGroupSamples.java | 2 +- .../AccountsListByResourceGroupSamples.java | 2 +- .../generated/AccountsListKeysSamples.java | 2 +- .../generated/AccountsListModelsSamples.java | 2 +- .../generated/AccountsListSamples.java | 2 +- .../generated/AccountsListSkusSamples.java | 2 +- .../generated/AccountsListUsagesSamples.java | 2 +- .../AccountsRegenerateKeySamples.java | 2 +- .../generated/AccountsUpdateSamples.java | 2 +- ...PlansCreateOrUpdateAssociationSamples.java | 2 +- ...mitmentPlansCreateOrUpdatePlanSamples.java | 2 +- .../CommitmentPlansCreateOrUpdateSamples.java | 2 +- ...mmitmentPlansDeleteAssociationSamples.java | 2 +- .../CommitmentPlansDeletePlanSamples.java | 2 +- .../CommitmentPlansDeleteSamples.java | 2 +- .../CommitmentPlansGetAssociationSamples.java | 2 +- ...mitmentPlansGetByResourceGroupSamples.java | 2 +- .../generated/CommitmentPlansGetSamples.java | 2 +- ...ommitmentPlansListAssociationsSamples.java | 2 +- ...itmentPlansListByResourceGroupSamples.java | 2 +- ...ntPlansListPlansBySubscriptionSamples.java | 2 +- .../generated/CommitmentPlansListSamples.java | 2 +- .../CommitmentPlansUpdatePlanSamples.java | 2 +- .../generated/CommitmentTiersListSamples.java | 2 +- ...derForAISettingsCreateOrUpdateSamples.java | 31 + .../DefenderForAISettingsGetSamples.java | 26 + .../DefenderForAISettingsListSamples.java | 25 + .../DefenderForAISettingsUpdateSamples.java | 31 + .../generated/DeletedAccountsGetSamples.java | 2 +- .../generated/DeletedAccountsListSamples.java | 2 +- .../DeletedAccountsPurgeSamples.java | 2 +- .../DeploymentsCreateOrUpdateSamples.java | 2 +- .../generated/DeploymentsDeleteSamples.java | 2 +- .../generated/DeploymentsGetSamples.java | 2 +- .../generated/DeploymentsListSamples.java | 2 +- .../generated/DeploymentsListSkusSamples.java | 26 + .../generated/DeploymentsUpdateSamples.java | 30 + ...EncryptionScopesCreateOrUpdateSamples.java | 40 + .../EncryptionScopesDeleteSamples.java | 26 + .../generated/EncryptionScopesGetSamples.java | 27 + .../EncryptionScopesListSamples.java | 25 + ...cationBasedModelCapacitiesListSamples.java | 25 + .../generated/ModelCapacitiesListSamples.java | 25 + .../generated/ModelsListSamples.java | 9 +- ...rityPerimeterConfigurationsGetSamples.java | 27 + ...ityPerimeterConfigurationsListSamples.java | 26 + ...rimeterConfigurationsReconcileSamples.java | 26 + .../generated/OperationsListSamples.java | 2 +- ...pointConnectionsCreateOrUpdateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- .../PrivateLinkResourcesListSamples.java | 2 +- .../RaiBlocklistItemsBatchAddSamples.java | 37 + .../RaiBlocklistItemsBatchDeleteSamples.java | 33 + ...aiBlocklistItemsCreateOrUpdateSamples.java | 31 + .../RaiBlocklistItemsDeleteSamples.java | 27 + .../RaiBlocklistItemsGetSamples.java | 27 + .../RaiBlocklistItemsListSamples.java | 26 + .../RaiBlocklistsCreateOrUpdateSamples.java | 30 + .../generated/RaiBlocklistsDeleteSamples.java | 26 + .../generated/RaiBlocklistsGetSamples.java | 25 + .../generated/RaiBlocklistsListSamples.java | 24 + .../RaiContentFiltersGetSamples.java | 25 + .../RaiContentFiltersListSamples.java | 25 + .../RaiPoliciesCreateOrUpdateSamples.java | 93 ++ .../generated/RaiPoliciesDeleteSamples.java | 25 + .../generated/RaiPoliciesGetSamples.java | 25 + .../generated/RaiPoliciesListSamples.java | 24 + ...ProviderCalculateModelCapacitySamples.java | 42 + ...roviderCheckDomainAvailabilitySamples.java | 2 +- ...ceProviderCheckSkuAvailabilitySamples.java | 2 +- .../generated/ResourceSkusListSamples.java | 2 +- .../generated/UsagesListSamples.java | 2 +- .../generated/AccountsDeleteMockTests.java | 2 +- ...AccountsListSkusWithResponseMockTests.java | 14 +- ...countsListUsagesWithResponseMockTests.java | 22 +- .../generated/BillingMeterInfoTests.java | 31 + ...lCapacityResultEstimatedCapacityTests.java | 29 + .../generated/CapacityConfigTests.java | 32 +- ...CheckDomainAvailabilityParameterTests.java | 23 +- .../CheckSkuAvailabilityParameterTests.java | 21 +- .../generated/CommitmentCostTests.java | 12 +- .../generated/CommitmentPeriodTests.java | 12 +- ...tmentPlanAccountAssociationInnerTests.java | 26 +- ...PlanAccountAssociationListResultTests.java | 8 +- ...PlanAccountAssociationPropertiesTests.java | 8 +- .../generated/CommitmentPlanInnerTests.java | 94 +- .../CommitmentPlanListResultTests.java | 8 +- .../CommitmentPlanPropertiesTests.java | 40 +- ...ansCreateOrUpdateAssociationMockTests.java | 26 +- ...tmentPlansCreateOrUpdatePlanMockTests.java | 66 +- ...nsCreateOrUpdateWithResponseMockTests.java | 59 +- ...itmentPlansDeleteAssociationMockTests.java | 2 +- .../CommitmentPlansDeleteMockTests.java | 3 +- .../CommitmentPlansDeletePlanMockTests.java | 2 +- ...nsGetAssociationWithResponseMockTests.java | 7 +- ...tByResourceGroupWithResponseMockTests.java | 34 +- ...mmitmentPlansGetWithResponseMockTests.java | 36 +- ...mitmentPlansListAssociationsMockTests.java | 7 +- ...mentPlansListByResourceGroupMockTests.java | 35 +- .../CommitmentPlansListMockTests.java | 35 +- ...PlansListPlansBySubscriptionMockTests.java | 35 +- .../generated/CommitmentQuotaTests.java | 12 +- .../generated/CommitmentTierInnerTests.java | 58 +- .../CommitmentTierListResultTests.java | 8 +- .../CommitmentTiersListMockTests.java | 24 +- .../generated/CustomBlocklistConfigTests.java | 33 + .../DefenderForAISettingInnerTests.java | 45 + .../DefenderForAISettingPropertiesTests.java | 27 + .../DefenderForAISettingResultTests.java | 56 + ...gsCreateOrUpdateWithResponseMockTests.java | 58 + ...ForAISettingsGetWithResponseMockTests.java | 41 + .../DefenderForAISettingsListMockTests.java | 41 + .../DeletedAccountsPurgeMockTests.java | 2 +- .../DeploymentCapacitySettingsTests.java | 29 + .../DeploymentScaleSettingsTests.java | 8 +- .../DeploymentSkuListResultTests.java | 26 + .../generated/DeploymentsDeleteMockTests.java | 2 +- .../DeploymentsListSkusMockTests.java | 50 + .../DomainAvailabilityInnerTests.java | 32 +- ...tionBasedModelCapacitiesListMockTests.java | 48 + .../ModelCapacitiesListMockTests.java | 48 + .../ModelCapacityListResultTests.java | 73 + .../generated/ModelDeprecationInfoTests.java | 12 +- .../generated/ModelListResultTests.java | 321 ++--- .../generated/NetworkRuleSetTests.java | 12 +- ...sRulePropertiesSubscriptionsItemTests.java | 28 + ...ityPerimeterAccessRulePropertiesTests.java | 55 + ...tworkSecurityPerimeterAccessRuleTests.java | 55 + ...eterConfigurationAssociationInfoTests.java | 30 + ...urityPerimeterConfigurationInnerTests.java | 145 ++ ...curityPerimeterConfigurationListTests.java | 95 ++ ...PerimeterConfigurationPropertiesTests.java | 164 +++ ...onfigurationsGetWithResponseMockTests.java | 55 + ...yPerimeterConfigurationsListMockTests.java | 70 + ...meterConfigurationsReconcileMockTests.java | 55 + ...workSecurityPerimeterProfileInfoTests.java | 138 ++ .../NetworkSecurityPerimeterTests.java | 32 + .../generated/OperationDisplayTests.java | 5 +- .../generated/OperationInnerTests.java | 2 +- .../generated/OperationListResultTests.java | 2 +- .../generated/OperationsListMockTests.java | 2 +- .../PatchResourceTagsAndSkuTests.java | 40 +- .../generated/PatchResourceTagsTests.java | 10 +- .../PrivateEndpointConnectionInnerTests.java | 34 +- ...ndpointConnectionListResultInnerTests.java | 53 +- ...intConnectionsCreateOrUpdateMockTests.java | 27 +- ...ateEndpointConnectionsDeleteMockTests.java | 3 +- ...ntConnectionsGetWithResponseMockTests.java | 15 +- ...tConnectionsListWithResponseMockTests.java | 14 +- ...ivateLinkResourceListResultInnerTests.java | 14 +- .../PrivateLinkResourcePropertiesTests.java | 10 +- .../generated/PrivateLinkResourceTests.java | 10 +- ...inkResourcesListWithResponseMockTests.java | 6 +- .../ProvisioningIssuePropertiesTests.java | 116 ++ .../generated/ProvisioningIssueTests.java | 82 ++ .../RaiBlockListItemsResultTests.java | 58 + .../generated/RaiBlockListResultTests.java | 53 + .../generated/RaiBlocklistConfigTests.java | 27 + .../generated/RaiBlocklistInnerTests.java | 44 + .../RaiBlocklistItemBulkRequestTests.java | 32 + .../generated/RaiBlocklistItemInnerTests.java | 47 + .../RaiBlocklistItemPropertiesTests.java | 27 + ...istItemsBatchAddWithResponseMockTests.java | 53 + ...ItemsBatchDeleteWithResponseMockTests.java | 35 + ...msCreateOrUpdateWithResponseMockTests.java | 59 + ...locklistItemsGetWithResponseMockTests.java | 41 + .../RaiBlocklistItemsListMockTests.java | 41 + .../RaiBlocklistPropertiesTests.java | 25 + ...tsCreateOrUpdateWithResponseMockTests.java | 58 + ...RaiBlocklistsGetWithResponseMockTests.java | 40 + .../generated/RaiBlocklistsListMockTests.java | 40 + .../generated/RaiContentFilterInnerTests.java | 35 + .../RaiContentFilterListResultTests.java | 49 + .../RaiContentFilterPropertiesTests.java | 33 + ...ontentFiltersGetWithResponseMockTests.java | 42 + .../RaiContentFiltersListMockTests.java | 42 + .../generated/RaiMonitorConfigTests.java | 29 + ...esCreateOrUpdateWithResponseMockTests.java | 94 ++ .../RaiPoliciesGetWithResponseMockTests.java | 54 + .../generated/RaiPoliciesListMockTests.java | 57 + .../RaiPolicyContentFilterTests.java | 40 + .../generated/RaiPolicyInnerTests.java | 94 ++ .../generated/RaiPolicyListResultTests.java | 106 ++ .../generated/RaiPolicyPropertiesTests.java | 69 + ...mainAvailabilityWithResponseMockTests.java | 20 +- ...kSkuAvailabilityWithResponseMockTests.java | 23 +- .../SkuAvailabilityListResultInnerTests.java | 54 +- .../generated/SkuAvailabilityTests.java | 32 +- .../generated/SkuResourceInnerTests.java | 60 + .../generated/UsageListResultInnerTests.java | 10 +- .../{UsageInnerTests.java => UsageTests.java} | 12 +- .../generated/UsagesListMockTests.java | 20 +- .../generated/UserOwnedAmlWorkspaceTests.java | 29 + 356 files changed, 28213 insertions(+), 1371 deletions(-) create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EncryptionScopeInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelCapacityListResultValueItemInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/NetworkSecurityPerimeterConfigurationInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistItemInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiContentFilterInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiPolicyInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuResourceInner.java delete mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CalculateModelCapacityResultImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopeImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacityListResultValueItemImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFilterImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPolicyImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuResourceImpl.java delete mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/BillingMeterInfo.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ByPassSelection.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityParameter.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResultEstimatedCapacity.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContentLevel.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomBlocklistConfig.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISetting.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingState.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettings.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentCapacitySettings.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSkuListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScope.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProvisioningState.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeState.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopes.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/LocationBasedModelCapacities.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacities.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkload.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkloadRequestParam.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResultValueItem.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSkuCapacityProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeter.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRule.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRuleProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfiguration.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationAssociationInfo.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationList.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurations.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterProfileInfo.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NspAccessRuleDirection.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssue.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssueProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListItemsResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklist.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistConfig.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItem.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemBulkRequest.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItems.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklists.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilter.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilters.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiMonitorConfig.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicies.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicy.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentFilter.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentSource.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyMode.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyType.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuResource.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedAmlWorkspace.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CalculateModelCapacityResultEstimatedCapacityTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiMonitorConfigTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java rename sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/{UsageInnerTests.java => UsageTests.java} (87%) create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserOwnedAmlWorkspaceTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index fab3032950550..35936b282c045 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -337,7 +337,7 @@ com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.2;1.0.0-beta com.azure.resourcemanager:azure-resourcemanager-billing;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-batchai;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-signalr;1.0.0-beta.9;1.0.0-beta.10 -com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.0.0;1.1.0-beta.3 +com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.0.0;1.1.0 com.azure.resourcemanager:azure-resourcemanager-customerinsights;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-databox;1.0.0-beta.4;1.0.0-beta.5 com.azure.resourcemanager:azure-resourcemanager-datamigration;1.0.0-beta.3;1.0.0-beta.4 diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md index 304e863e57659..bcb6ca82e9398 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md @@ -1,14 +1,575 @@ # Release History -## 1.1.0-beta.3 (Unreleased) +## 1.1.0 (2024-11-22) -### Features Added +- Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes +#### Serialization/Deserialization change + +- `Jackson` is removed from dependency and no longer supported. + +##### Migration Guide + +If you are using `Jackson`/`ObjectMapper` for manual serialization/deserialization, configure your `ObjectMapper` for backward compatibility: +```java +objectMapper.registerModule(com.azure.core.serializer.json.jackson.JacksonJsonProvider.getJsonSerializableDatabindModule()); +``` + +#### `models.Deployment$Update` was modified + +* `withProperties(models.DeploymentProperties)` was removed + +### Features Added + +* `models.BillingMeterInfo` was added + +* `models.EncryptionScopeListResult` was added + +* `models.EncryptionScopeProvisioningState` was added + +* `models.DeploymentModelVersionUpgradeOption` was added + +* `models.RaiBlocklist$DefinitionStages` was added + +* `models.ProvisioningIssueProperties` was added + +* `models.RaiPolicies` was added + +* `models.Usages` was added + +* `models.NetworkSecurityPerimeterConfigurationProperties` was added + +* `models.ModelCapacityListResult` was added + +* `models.RaiPolicy$Definition` was added + +* `models.DeploymentCapacitySettings` was added + +* `models.RaiContentFilter` was added + +* `models.AbusePenalty` was added + +* `models.NetworkSecurityPerimeterAccessRuleProperties` was added + +* `models.RaiBlocklist$Update` was added + +* `models.RaiPolicy$DefinitionStages` was added + +* `models.RaiBlocklistItems` was added + +* `models.ModelListResult` was added + +* `models.NetworkSecurityPerimeterAccessRule` was added + +* `models.CapacityConfig` was added + +* `models.RaiContentFilterProperties` was added + +* `models.RaiBlocklistItem$DefinitionStages` was added + +* `models.CalculateModelCapacityResult` was added + +* `models.DefenderForAISettingResult` was added + +* `models.ModelSkuCapacityProperties` was added + +* `models.RaiContentFilters` was added + +* `models.RaiBlocklistProperties` was added + +* `models.DefenderForAISetting$Update` was added + +* `models.RaiPolicy$Update` was added + +* `models.EncryptionScope$DefinitionStages` was added + +* `models.RaiBlocklistConfig` was added + +* `models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem` was added + +* `models.RaiContentFilterListResult` was added + +* `models.NetworkSecurityPerimeterConfigurations` was added + +* `models.ByPassSelection` was added + +* `models.ProvisioningIssue` was added + +* `models.EncryptionScopes` was added + +* `models.RaiBlocklist$Definition` was added + +* `models.ModelCapacityCalculatorWorkloadRequestParam` was added + +* `models.RaiPolicy` was added + +* `models.NetworkSecurityPerimeter` was added + +* `models.SkuResource` was added + +* `models.CalculateModelCapacityParameter` was added + +* `models.AbusePenaltyAction` was added + +* `models.ContentLevel` was added + +* `models.NspAccessRuleDirection` was added + +* `models.RaiPolicyContentFilter` was added + +* `models.RaiBlocklistItem$Definition` was added + +* `models.DefenderForAISetting$DefinitionStages` was added + +* `models.UserOwnedAmlWorkspace` was added + +* `models.NetworkSecurityPerimeterProfileInfo` was added + +* `models.ModelSku` was added + +* `models.Models` was added + +* `models.DefenderForAISettings` was added + +* `models.LocationBasedModelCapacities` was added + +* `models.RaiMonitorConfig` was added + +* `models.RaiPolicyContentSource` was added + +* `models.ModelCapacities` was added + +* `models.RaiBlocklistItemProperties` was added + +* `models.RaiBlockListItemsResult` was added + +* `models.CalculateModelCapacityResultEstimatedCapacity` was added + +* `models.RaiPolicy$UpdateStages` was added + +* `models.ModelCapacityCalculatorWorkload` was added + +* `models.RaiBlocklist$UpdateStages` was added + +* `models.RaiPolicyProperties` was added + +* `models.RaiBlocklistItem$UpdateStages` was added + +* `models.DefenderForAISetting$Definition` was added + +* `models.NetworkSecurityPerimeterConfigurationAssociationInfo` was added + +* `models.NetworkSecurityPerimeterConfiguration` was added + +* `models.EncryptionScopeProperties` was added + +* `models.RaiBlocklistItem$Update` was added + +* `models.RaiBlocklistItemBulkRequest` was added + +* `models.RaiPolicyMode` was added + +* `models.ModelCapacityListResultValueItem` was added + +* `models.DefenderForAISettingState` was added + +* `models.DefenderForAISetting` was added + +* `models.Model` was added + +* `models.RaiBlocklistItem` was added + +* `models.EncryptionScope` was added + +* `models.RaiBlocklist` was added + +* `models.DefenderForAISetting$UpdateStages` was added + +* `models.EncryptionScopeState` was added + +* `models.DeploymentSkuListResult` was added + +* `models.RaiBlocklists` was added + +* `models.EncryptionScope$UpdateStages` was added + +* `models.EncryptionScope$Update` was added + +* `models.RaiBlockListResult` was added + +* `models.NetworkSecurityPerimeterConfigurationList` was added + +* `models.EncryptionScope$Definition` was added + +* `models.RaiPolicyType` was added + +* `models.CustomBlocklistConfig` was added -### Bugs Fixed +* `models.RaiPolicyListResult` was added -### Other Changes +#### `models.ResourceProviders` was modified + +* `calculateModelCapacity(models.CalculateModelCapacityParameter)` was added +* `calculateModelCapacityWithResponse(models.CalculateModelCapacityParameter,com.azure.core.util.Context)` was added + +#### `models.RegenerateKeyParameters` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AzureEntityResource` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `name()` was added +* `type()` was added +* `id()` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OperationListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CommitmentPlanAccountAssociation$Definition` was modified + +* `withTags(java.util.Map)` was added + +#### `models.CommitmentPlanAccountAssociation$Update` was modified + +* `withTags(java.util.Map)` was added + +#### `models.Sku` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AccountModel` was modified + +* `publisher()` was added +* `source()` was added +* `skus()` was added +* `sourceAccount()` was added +* `isDefaultVersion()` was added + +#### `models.ResourceSkuRestrictions` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ApiProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.VirtualNetworkRule` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ThrottlingRule` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.OperationDisplay` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CommitmentCost` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CheckSkuAvailabilityParameter` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.PatchResourceTagsAndSku` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PrivateLinkResource` was modified + +* `id()` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `type()` was added +* `name()` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.SkuAvailability` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.SkuCapability` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.NetworkRuleSet` was modified + +* `bypass()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `withBypass(models.ByPassSelection)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.RequestMatchPattern` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CommitmentPlanListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AccountListResult` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Usage` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Encryption` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CommitmentQuota` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.AccountModelListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CommitmentTierListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.RegionSetting` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.Deployment$Update` was modified + +* `withSku(models.Sku)` was added +* `withTags(java.util.Map)` was added + +#### `models.Identity` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CommitmentPeriod` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PrivateEndpoint` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.UserOwnedStorage` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `CognitiveServicesManager` was modified + +* `usages()` was added +* `raiContentFilters()` was added +* `raiPolicies()` was added +* `networkSecurityPerimeterConfigurations()` was added +* `raiBlocklists()` was added +* `defenderForAISettings()` was added +* `locationBasedModelCapacities()` was added +* `models()` was added +* `encryptionScopes()` was added +* `modelCapacities()` was added +* `raiBlocklistItems()` was added + +#### `models.CheckDomainAvailabilityParameter` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.UsageListResult` was modified + +* `nextLink()` was added + +#### `models.CommitmentPlanAccountAssociationListResult` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.DeploymentModel` was modified + +* `withPublisher(java.lang.String)` was added +* `withSourceAccount(java.lang.String)` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `publisher()` was added +* `sourceAccount()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `source()` was added +* `withSource(java.lang.String)` was added + +#### `models.AccountProperties` was modified + +* `amlWorkspace()` was added +* `withRaiMonitorConfig(models.RaiMonitorConfig)` was added +* `abusePenalty()` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `raiMonitorConfig()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `withAmlWorkspace(models.UserOwnedAmlWorkspace)` was added + +#### `models.Deployment` was modified + +* `sku()` was added +* `tags()` was added + +#### `models.PrivateEndpointConnectionProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ResourceSkuRestrictionInfo` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CommitmentPlanAssociation` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.SkuChangeInfo` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.KeyVaultProperties` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.DeploymentProperties` was modified + +* `parentDeploymentName()` was added +* `versionUpgradeOption()` was added +* `withCapacitySettings(models.DeploymentCapacitySettings)` was added +* `dynamicThrottlingEnabled()` was added +* `toJson(com.azure.json.JsonWriter)` was added +* `withParentDeploymentName(java.lang.String)` was added +* `withVersionUpgradeOption(models.DeploymentModelVersionUpgradeOption)` was added +* `withCurrentCapacity(java.lang.Integer)` was added +* `currentCapacity()` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `rateLimits()` was added +* `capacitySettings()` was added + +#### `models.QuotaLimit` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.UserAssignedIdentity` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.Deployments` was modified + +* `listSkus(java.lang.String,java.lang.String,java.lang.String)` was added +* `listSkus(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.MetricName` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.ResourceSkuListResult` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.DeploymentScaleSettings` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.AccountSku` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.MultiRegionSettings` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PatchResourceTags` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.CallRateLimit` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CommitmentPlanProperties` was modified + +* `provisioningIssues()` was added +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.ModelDeprecationInfo` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.PrivateLinkServiceConnectionState` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.PrivateLinkResourceProperties` was modified + +* `fromJson(com.azure.json.JsonReader)` was added +* `toJson(com.azure.json.JsonWriter)` was added + +#### `models.CommitmentPlanAccountAssociation` was modified + +* `tags()` was added + +#### `models.Deployment$Definition` was modified + +* `withSku(models.Sku)` was added +* `withTags(java.util.Map)` was added + +#### `models.IpRule` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added + +#### `models.DeploymentListResult` was modified + +* `toJson(com.azure.json.JsonWriter)` was added +* `fromJson(com.azure.json.JsonReader)` was added ## 1.1.0-beta.2 (2024-10-31) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md index 9c5355cb6e130..e3b317072af10 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md @@ -2,7 +2,7 @@ Azure Resource Manager CognitiveServices client library for Java. -This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-cognitiveservices - 1.1.0-beta.2 + 1.1.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md index df95ca5a144eb..958848eec2131 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md @@ -36,6 +36,13 @@ - [List](#commitmenttiers_list) +## DefenderForAISettings + +- [CreateOrUpdate](#defenderforaisettings_createorupdate) +- [Get](#defenderforaisettings_get) +- [List](#defenderforaisettings_list) +- [Update](#defenderforaisettings_update) + ## DeletedAccounts - [Get](#deletedaccounts_get) @@ -48,11 +55,34 @@ - [Delete](#deployments_delete) - [Get](#deployments_get) - [List](#deployments_list) +- [ListSkus](#deployments_listskus) +- [Update](#deployments_update) + +## EncryptionScopes + +- [CreateOrUpdate](#encryptionscopes_createorupdate) +- [Delete](#encryptionscopes_delete) +- [Get](#encryptionscopes_get) +- [List](#encryptionscopes_list) + +## LocationBasedModelCapacities + +- [List](#locationbasedmodelcapacities_list) + +## ModelCapacities + +- [List](#modelcapacities_list) ## Models - [List](#models_list) +## NetworkSecurityPerimeterConfigurations + +- [Get](#networksecurityperimeterconfigurations_get) +- [List](#networksecurityperimeterconfigurations_list) +- [Reconcile](#networksecurityperimeterconfigurations_reconcile) + ## Operations - [List](#operations_list) @@ -68,8 +98,37 @@ - [List](#privatelinkresources_list) +## RaiBlocklistItems + +- [BatchAdd](#raiblocklistitems_batchadd) +- [BatchDelete](#raiblocklistitems_batchdelete) +- [CreateOrUpdate](#raiblocklistitems_createorupdate) +- [Delete](#raiblocklistitems_delete) +- [Get](#raiblocklistitems_get) +- [List](#raiblocklistitems_list) + +## RaiBlocklists + +- [CreateOrUpdate](#raiblocklists_createorupdate) +- [Delete](#raiblocklists_delete) +- [Get](#raiblocklists_get) +- [List](#raiblocklists_list) + +## RaiContentFilters + +- [Get](#raicontentfilters_get) +- [List](#raicontentfilters_list) + +## RaiPolicies + +- [CreateOrUpdate](#raipolicies_createorupdate) +- [Delete](#raipolicies_delete) +- [Get](#raipolicies_get) +- [List](#raipolicies_list) + ## ResourceProvider +- [CalculateModelCapacity](#resourceprovider_calculatemodelcapacity) - [CheckDomainAvailability](#resourceprovider_checkdomainavailability) - [CheckSkuAvailability](#resourceprovider_checkskuavailability) @@ -99,7 +158,7 @@ import java.util.Arrays; public final class AccountsCreateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateAccountMin.json */ /** @@ -121,7 +180,7 @@ public final class AccountsCreateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateAccount.json */ /** @@ -158,7 +217,7 @@ public final class AccountsCreateSamples { public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteAccount.json */ /** @@ -181,7 +240,7 @@ public final class AccountsDeleteSamples { public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetAccount.json */ /** @@ -205,7 +264,7 @@ public final class AccountsGetByResourceGroupSamples { public final class AccountsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListAccountsBySubscription.json */ /** @@ -229,7 +288,7 @@ public final class AccountsListSamples { public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListAccountsByResourceGroup.json */ /** @@ -253,7 +312,7 @@ public final class AccountsListByResourceGroupSamples { public final class AccountsListKeysSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListKeys. + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListKeys. * json */ /** @@ -276,7 +335,7 @@ public final class AccountsListKeysSamples { public final class AccountsListModelsSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListAccountModels.json */ /** @@ -299,7 +358,7 @@ public final class AccountsListModelsSamples { public final class AccountsListSkusSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListSkus. + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListSkus. * json */ /** @@ -322,7 +381,7 @@ public final class AccountsListSkusSamples { public final class AccountsListUsagesSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetUsages + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetUsages * .json */ /** @@ -349,7 +408,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameter public final class AccountsRegenerateKeySamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * RegenerateKey.json */ /** @@ -377,7 +436,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * UpdateAccount.json */ /** @@ -408,7 +467,7 @@ import com.azure.resourcemanager.cognitiveservices.models.HostingModel; public final class CommitmentPlansCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * PutCommitmentPlan.json */ /** @@ -438,7 +497,7 @@ public final class CommitmentPlansCreateOrUpdateSamples { public final class CommitmentPlansCreateOrUpdateAssociationSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateSharedCommitmentPlanAssociation.json */ /** @@ -471,7 +530,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; public final class CommitmentPlansCreateOrUpdatePlanSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateSharedCommitmentPlan.json */ /** @@ -505,7 +564,7 @@ public final class CommitmentPlansCreateOrUpdatePlanSamples { public final class CommitmentPlansDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteCommitmentPlan.json */ /** @@ -530,7 +589,7 @@ public final class CommitmentPlansDeleteSamples { public final class CommitmentPlansDeleteAssociationSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteSharedCommitmentPlanAssociation.json */ /** @@ -556,7 +615,7 @@ public final class CommitmentPlansDeleteAssociationSamples { public final class CommitmentPlansDeletePlanSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteSharedCommitmentPlan.json */ /** @@ -581,7 +640,7 @@ public final class CommitmentPlansDeletePlanSamples { public final class CommitmentPlansGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetCommitmentPlan.json */ /** @@ -606,7 +665,7 @@ public final class CommitmentPlansGetSamples { public final class CommitmentPlansGetAssociationSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetSharedCommitmentPlanAssociation.json */ /** @@ -631,7 +690,7 @@ public final class CommitmentPlansGetAssociationSamples { public final class CommitmentPlansGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetSharedCommitmentPlan.json */ /** @@ -656,7 +715,7 @@ public final class CommitmentPlansGetByResourceGroupSamples { public final class CommitmentPlansListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListCommitmentPlans.json */ /** @@ -680,7 +739,7 @@ public final class CommitmentPlansListSamples { public final class CommitmentPlansListAssociationsSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListSharedCommitmentPlanAssociations.json */ /** @@ -705,7 +764,7 @@ public final class CommitmentPlansListAssociationsSamples { public final class CommitmentPlansListByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListSharedCommitmentPlansByResourceGroup.json */ /** @@ -729,7 +788,7 @@ public final class CommitmentPlansListByResourceGroupSamples { public final class CommitmentPlansListPlansBySubscriptionSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListSharedCommitmentPlansBySubscription.json */ /** @@ -757,7 +816,7 @@ import java.util.Map; public final class CommitmentPlansUpdatePlanSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * UpdateSharedCommitmentPlan.json */ /** @@ -796,7 +855,7 @@ public final class CommitmentPlansUpdatePlanSamples { public final class CommitmentTiersListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListCommitmentTiers.json */ /** @@ -811,6 +870,115 @@ public final class CommitmentTiersListSamples { } ``` +### DefenderForAISettings_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; + +/** + * Samples for DefenderForAISettings CreateOrUpdate. + */ +public final class DefenderForAISettingsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutDefenderForAISetting.json + */ + /** + * Sample code: PutDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.defenderForAISettings() + .define("Default") + .withExistingAccount("resourceGroupName", "accountName") + .withState(DefenderForAISettingState.ENABLED) + .create(); + } +} +``` + +### DefenderForAISettings_Get + +```java +/** + * Samples for DefenderForAISettings Get. + */ +public final class DefenderForAISettingsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetDefenderForAISetting.json + */ + /** + * Sample code: GetDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.defenderForAISettings() + .getWithResponse("resourceGroupName", "accountName", "Default", com.azure.core.util.Context.NONE); + } +} +``` + +### DefenderForAISettings_List + +```java +/** + * Samples for DefenderForAISettings List. + */ +public final class DefenderForAISettingsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListDefenderForAISetting.json + */ + /** + * Sample code: ListDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.defenderForAISettings().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} +``` + +### DefenderForAISettings_Update + +```java +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISetting; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; + +/** + * Samples for DefenderForAISettings Update. + */ +public final class DefenderForAISettingsUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * UpdateDefenderForAISetting.json + */ + /** + * Sample code: UpdateDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + DefenderForAISetting resource = manager.defenderForAISettings() + .getWithResponse("resourceGroupName", "accountName", "Default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withState(DefenderForAISettingState.ENABLED).apply(); + } +} +``` + ### DeletedAccounts_Get ```java @@ -820,7 +988,7 @@ public final class CommitmentTiersListSamples { public final class DeletedAccountsGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetDeletedAccount.json */ /** @@ -844,7 +1012,7 @@ public final class DeletedAccountsGetSamples { public final class DeletedAccountsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListDeletedAccountsBySubscription.json */ /** @@ -868,7 +1036,7 @@ public final class DeletedAccountsListSamples { public final class DeletedAccountsPurgeSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * PurgeDeletedAccount.json */ /** @@ -895,7 +1063,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; public final class DeploymentsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * PutDeployment.json */ /** @@ -924,7 +1092,7 @@ public final class DeploymentsCreateOrUpdateSamples { public final class DeploymentsDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteDeployment.json */ /** @@ -948,7 +1116,7 @@ public final class DeploymentsDeleteSamples { public final class DeploymentsGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetDeployment.json */ /** @@ -972,7 +1140,7 @@ public final class DeploymentsGetSamples { public final class DeploymentsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListDeployments.json */ /** @@ -986,180 +1154,1001 @@ public final class DeploymentsListSamples { } ``` -### Models_List +### Deployments_ListSkus ```java /** - * Samples for Models List. + * Samples for Deployments ListSkus. */ -public final class ModelsListSamples { +public final class DeploymentsListSkusSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * ListModels.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListDeploymentSkus.json */ /** - * Sample code: ListModels. + * Sample code: ListDeploymentSkus. * * @param manager Entry point to CognitiveServicesManager. */ - public static void listModels(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.models().list("WestUS", com.azure.core.util.Context.NONE); + public static void + listDeploymentSkus(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.deployments() + .listSkus("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE); } } ``` -### Operations_List +### Deployments_Update ```java +import com.azure.resourcemanager.cognitiveservices.models.Deployment; +import com.azure.resourcemanager.cognitiveservices.models.Sku; + /** - * Samples for Operations List. + * Samples for Deployments Update. */ -public final class OperationsListSamples { +public final class DeploymentsUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * GetOperations.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * UpdateDeployment.json */ /** - * Sample code: Get Operations. + * Sample code: UpdateDeployment. * * @param manager Entry point to CognitiveServicesManager. */ - public static void getOperations(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.operations().list(com.azure.core.util.Context.NONE); + public static void updateDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + Deployment resource = manager.deployments() + .getWithResponse("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withSku(new Sku().withName("Standard").withCapacity(1)).apply(); } } ``` -### PrivateEndpointConnections_CreateOrUpdate +### EncryptionScopes_CreateOrUpdate ```java -import com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConnectionState; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeState; +import com.azure.resourcemanager.cognitiveservices.models.KeySource; +import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties; /** - * Samples for PrivateEndpointConnections CreateOrUpdate. + * Samples for EncryptionScopes CreateOrUpdate. */ -public final class PrivateEndpointConnectionsCreateOrUpdateSamples { +public final class EncryptionScopesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * PutPrivateEndpointConnection.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutEncryptionScope.json */ /** - * Sample code: PutPrivateEndpointConnection. + * Sample code: PutEncryptionScope. * * @param manager Entry point to CognitiveServicesManager. */ public static void - putPrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.privateEndpointConnections() - .define("{privateEndpointConnectionName}") - .withExistingAccount("res7687", "sto9699") - .withProperties(new PrivateEndpointConnectionProperties().withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("Auto-Approved"))) + putEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .define("encryptionScopeName") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new EncryptionScopeProperties() + .withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder") + .withKeyVersion("fakeTokenPlaceholder") + .withKeyVaultUri("fakeTokenPlaceholder") + .withIdentityClientId("00000000-0000-0000-0000-000000000000")) + .withKeySource(KeySource.MICROSOFT_KEY_VAULT) + .withState(EncryptionScopeState.ENABLED)) .create(); } } ``` -### PrivateEndpointConnections_Delete +### EncryptionScopes_Delete ```java /** - * Samples for PrivateEndpointConnections Delete. + * Samples for EncryptionScopes Delete. */ -public final class PrivateEndpointConnectionsDeleteSamples { +public final class EncryptionScopesDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * DeletePrivateEndpointConnection.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteEncryptionScope.json */ /** - * Sample code: DeletePrivateEndpointConnection. + * Sample code: DeleteEncryptionScope. * * @param manager Entry point to CognitiveServicesManager. */ public static void - deletePrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.privateEndpointConnections() - .delete("res6977", "sto2527", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE); + deleteEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .delete("resourceGroupName", "accountName", "encryptionScopeName", com.azure.core.util.Context.NONE); } } ``` -### PrivateEndpointConnections_Get +### EncryptionScopes_Get ```java /** - * Samples for PrivateEndpointConnections Get. + * Samples for EncryptionScopes Get. */ -public final class PrivateEndpointConnectionsGetSamples { +public final class EncryptionScopesGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * GetPrivateEndpointConnection.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetEncryptionScope.json */ /** - * Sample code: GetPrivateEndpointConnection. + * Sample code: GetEncryptionScope. * * @param manager Entry point to CognitiveServicesManager. */ public static void - getPrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.privateEndpointConnections() - .getWithResponse("res6977", "sto2527", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE); + getEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .getWithResponse("resourceGroupName", "accountName", "encryptionScopeName", + com.azure.core.util.Context.NONE); } } ``` -### PrivateEndpointConnections_List +### EncryptionScopes_List ```java /** - * Samples for PrivateEndpointConnections List. + * Samples for EncryptionScopes List. */ -public final class PrivateEndpointConnectionsListSamples { +public final class EncryptionScopesListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * ListPrivateEndpointConnections.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListEncryptionScopes.json */ /** - * Sample code: GetPrivateEndpointConnection. + * Sample code: ListEncryptionScopes. * * @param manager Entry point to CognitiveServicesManager. */ public static void - getPrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.privateEndpointConnections().listWithResponse("res6977", "sto2527", com.azure.core.util.Context.NONE); + listEncryptionScopes(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); } } ``` -### PrivateLinkResources_List +### LocationBasedModelCapacities_List ```java /** - * Samples for PrivateLinkResources List. + * Samples for LocationBasedModelCapacities List. */ -public final class PrivateLinkResourcesListSamples { +public final class LocationBasedModelCapacitiesListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * ListPrivateLinkResources.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListLocationBasedModelCapacities.json */ /** - * Sample code: ListPrivateLinkResources. + * Sample code: ListLocationBasedModelCapacities. * * @param manager Entry point to CognitiveServicesManager. */ public static void - listPrivateLinkResources(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.privateLinkResources().listWithResponse("res6977", "sto2527", com.azure.core.util.Context.NONE); + listLocationBasedModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); + } +} +``` + +### ModelCapacities_List + +```java +/** + * Samples for ModelCapacities List. + */ +public final class ModelCapacitiesListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListModelCapacities.json + */ + /** + * Sample code: ListModelCapacities. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.modelCapacities().list("OpenAI", "ada", "1", com.azure.core.util.Context.NONE); + } +} +``` + +### Models_List + +```java +/** + * Samples for Models List. + */ +public final class ModelsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListLocationModels.json + */ + /** + * Sample code: ListLocationModels. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listLocationModels(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.models().list("WestUS", com.azure.core.util.Context.NONE); + } +} +``` + +### NetworkSecurityPerimeterConfigurations_Get + +```java +/** + * Samples for NetworkSecurityPerimeterConfigurations Get. + */ +public final class NetworkSecurityPerimeterConfigurationsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetNetworkSecurityPerimeterConfigurations.json + */ + /** + * Sample code: GetNetworkSecurityPerimeterConfigurations. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getNetworkSecurityPerimeterConfigurations( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.networkSecurityPerimeterConfigurations() + .getWithResponse("resourceGroupName", "accountName", "NSPConfigurationName", + com.azure.core.util.Context.NONE); + } +} +``` + +### NetworkSecurityPerimeterConfigurations_List + +```java +/** + * Samples for NetworkSecurityPerimeterConfigurations List. + */ +public final class NetworkSecurityPerimeterConfigurationsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListNetworkSecurityPerimeterConfigurations.json + */ + /** + * Sample code: ListNetworkSecurityPerimeterConfigurations. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listNetworkSecurityPerimeterConfigurations( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.networkSecurityPerimeterConfigurations() + .list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} +``` + +### NetworkSecurityPerimeterConfigurations_Reconcile + +```java +/** + * Samples for NetworkSecurityPerimeterConfigurations Reconcile. + */ +public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ReconcileNetworkSecurityPerimeterConfigurations.json + */ + /** + * Sample code: ReconcileNetworkSecurityPerimeterConfigurations. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void reconcileNetworkSecurityPerimeterConfigurations( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.networkSecurityPerimeterConfigurations() + .reconcile("resourceGroupName", "accountName", "NSPConfigurationName", com.azure.core.util.Context.NONE); + } +} +``` + +### Operations_List + +```java +/** + * Samples for Operations List. + */ +public final class OperationsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetOperations.json + */ + /** + * Sample code: Get Operations. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getOperations(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateEndpointConnections_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProperties; +import com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointServiceConnectionStatus; +import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConnectionState; + +/** + * Samples for PrivateEndpointConnections CreateOrUpdate. + */ +public final class PrivateEndpointConnectionsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutPrivateEndpointConnection.json + */ + /** + * Sample code: PutPrivateEndpointConnection. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putPrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.privateEndpointConnections() + .define("{privateEndpointConnectionName}") + .withExistingAccount("res7687", "sto9699") + .withProperties(new PrivateEndpointConnectionProperties().withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) + .withDescription("Auto-Approved"))) + .create(); + } +} +``` + +### PrivateEndpointConnections_Delete + +```java +/** + * Samples for PrivateEndpointConnections Delete. + */ +public final class PrivateEndpointConnectionsDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeletePrivateEndpointConnection.json + */ + /** + * Sample code: DeletePrivateEndpointConnection. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deletePrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.privateEndpointConnections() + .delete("res6977", "sto2527", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateEndpointConnections_Get + +```java +/** + * Samples for PrivateEndpointConnections Get. + */ +public final class PrivateEndpointConnectionsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetPrivateEndpointConnection.json + */ + /** + * Sample code: GetPrivateEndpointConnection. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getPrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.privateEndpointConnections() + .getWithResponse("res6977", "sto2527", "{privateEndpointConnectionName}", com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateEndpointConnections_List + +```java +/** + * Samples for PrivateEndpointConnections List. + */ +public final class PrivateEndpointConnectionsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListPrivateEndpointConnections.json + */ + /** + * Sample code: GetPrivateEndpointConnection. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getPrivateEndpointConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.privateEndpointConnections().listWithResponse("res6977", "sto2527", com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateLinkResources_List + +```java +/** + * Samples for PrivateLinkResources List. + */ +public final class PrivateLinkResourcesListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListPrivateLinkResources.json + */ + /** + * Sample code: ListPrivateLinkResources. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listPrivateLinkResources(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.privateLinkResources().listWithResponse("res6977", "sto2527", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklistItems_BatchAdd + +```java +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.util.Arrays; + +/** + * Samples for RaiBlocklistItems BatchAdd. + */ +public final class RaiBlocklistItemsBatchAddSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * AddRaiBlocklistItems.json + */ + /** + * Sample code: AddRaiBlocklistItems. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + addRaiBlocklistItems(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .batchAddWithResponse("resourceGroupName", "accountName", "myblocklist", + Arrays.asList( + new RaiBlocklistItemBulkRequest().withName("myblocklistitem1") + .withProperties( + new RaiBlocklistItemProperties().withPattern("^[a-z0-9_-]{2,16}$").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("myblocklistitem2") + .withProperties(new RaiBlocklistItemProperties().withPattern("blockwords").withIsRegex(false))), + com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklistItems_BatchDelete + +```java +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** + * Samples for RaiBlocklistItems BatchDelete. + */ +public final class RaiBlocklistItemsBatchDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiBlocklistItems.json + */ + /** + * Sample code: DeleteRaiBlocklistItems. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteRaiBlocklistItems( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) throws IOException { + manager.raiBlocklistItems() + .batchDeleteWithResponse("resourceGroupName", "accountName", "raiBlocklistName", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("[\"myblocklistitem1\",\"myblocklistitem2\"]", Object.class, SerializerEncoding.JSON), + com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklistItems_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; + +/** + * Samples for RaiBlocklistItems CreateOrUpdate. + */ +public final class RaiBlocklistItemsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutRaiBlocklistItem.json + */ + /** + * Sample code: PutRaiBlocklistItem. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .define("raiBlocklistItemName") + .withExistingRaiBlocklist("resourceGroupName", "accountName", "raiBlocklistName") + .withProperties(new RaiBlocklistItemProperties().withPattern("Pattern To Block").withIsRegex(false)) + .create(); + } +} +``` + +### RaiBlocklistItems_Delete + +```java +/** + * Samples for RaiBlocklistItems Delete. + */ +public final class RaiBlocklistItemsDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiBlocklistItem.json + */ + /** + * Sample code: DeleteRaiBlocklistItem. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .delete("resourceGroupName", "accountName", "raiBlocklistName", "raiBlocklistItemName", + com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklistItems_Get + +```java +/** + * Samples for RaiBlocklistItems Get. + */ +public final class RaiBlocklistItemsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiBlocklistItem.json + */ + /** + * Sample code: GetRaiBlocklistItem. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .getWithResponse("resourceGroupName", "accountName", "raiBlocklistName", "raiBlocklistItemName", + com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklistItems_List + +```java +/** + * Samples for RaiBlocklistItems List. + */ +public final class RaiBlocklistItemsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListBlocklistItems.json + */ + /** + * Sample code: ListBlocklistItems. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listBlocklistItems(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .list("resourceGroupName", "accountName", "raiBlocklistName", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklists_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; + +/** + * Samples for RaiBlocklists CreateOrUpdate. + */ +public final class RaiBlocklistsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutRaiBlocklist.json + */ + /** + * Sample code: PutRaiBlocklist. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists() + .define("raiBlocklistName") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new RaiBlocklistProperties().withDescription("Basic blocklist description")) + .create(); + } +} +``` + +### RaiBlocklists_Delete + +```java +/** + * Samples for RaiBlocklists Delete. + */ +public final class RaiBlocklistsDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiBlocklist.json + */ + /** + * Sample code: DeleteRaiBlocklist. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists() + .delete("resourceGroupName", "accountName", "raiBlocklistName", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklists_Get + +```java +/** + * Samples for RaiBlocklists Get. + */ +public final class RaiBlocklistsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiBlocklist.json + */ + /** + * Sample code: GetRaiBlocklist. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists() + .getWithResponse("resourceGroupName", "accountName", "raiBlocklistName", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiBlocklists_List + +```java +/** + * Samples for RaiBlocklists List. + */ +public final class RaiBlocklistsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListBlocklists.json + */ + /** + * Sample code: ListBlocklists. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listBlocklists(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiContentFilters_Get + +```java +/** + * Samples for RaiContentFilters Get. + */ +public final class RaiContentFiltersGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiContentFilter.json + */ + /** + * Sample code: GetRaiContentFilters. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getRaiContentFilters(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiContentFilters().getWithResponse("WestUS", "IndirectAttack", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiContentFilters_List + +```java +/** + * Samples for RaiContentFilters List. + */ +public final class RaiContentFiltersListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListRaiContentFilters.json + */ + /** + * Sample code: ListRaiContentFilters. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listRaiContentFilters(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiContentFilters().list("WestUS", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiPolicies_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.util.Arrays; + +/** + * Samples for RaiPolicies CreateOrUpdate. + */ +public final class RaiPoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutRaiPolicy.json + */ + /** + * Sample code: PutRaiPolicy. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies() + .define("raiPolicyName") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) + .withBasePolicyName("Microsoft.Default") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("Hate") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Hate") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Sexual") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Sexual") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Selfharm") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Selfharm") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Violence") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Violence") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Jailbreak") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Protected Material Text") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Protected Material Code") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Profanity") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT)))) + .create(); + } +} +``` + +### RaiPolicies_Delete + +```java +/** + * Samples for RaiPolicies Delete. + */ +public final class RaiPoliciesDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiPolicy.json + */ + /** + * Sample code: DeleteRaiPolicy. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies() + .delete("resourceGroupName", "accountName", "raiPolicyName", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiPolicies_Get + +```java +/** + * Samples for RaiPolicies Get. + */ +public final class RaiPoliciesGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiPolicy.json + */ + /** + * Sample code: GetRaiPolicy. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies() + .getWithResponse("resourceGroupName", "accountName", "raiPolicyName", com.azure.core.util.Context.NONE); + } +} +``` + +### RaiPolicies_List + +```java +/** + * Samples for RaiPolicies List. + */ +public final class RaiPoliciesListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListRaiPolicies.json + */ + /** + * Sample code: ListRaiPolicies. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listRaiPolicies(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} +``` + +### ResourceProvider_CalculateModelCapacity + +```java +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkload; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkloadRequestParam; +import java.util.Arrays; + +/** + * Samples for ResourceProvider CalculateModelCapacity. + */ +public final class ResourceProviderCalculateModelCapacitySamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * CalculateModelCapacity.json + */ + /** + * Sample code: Calculate Model Capacity. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + calculateModelCapacity(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.resourceProviders() + .calculateModelCapacityWithResponse(new CalculateModelCapacityParameter() + .withModel(new DeploymentModel().withFormat("OpenAI").withName("gpt-4").withVersion("0613")) + .withSkuName("ProvisionedManaged") + .withWorkloads(Arrays.asList(new ModelCapacityCalculatorWorkload().withRequestPerMinute(10L) + .withRequestParameters(new ModelCapacityCalculatorWorkloadRequestParam().withAvgPromptTokens(30L) + .withAvgGeneratedTokens(50L)), + new ModelCapacityCalculatorWorkload().withRequestPerMinute(20L) + .withRequestParameters( + new ModelCapacityCalculatorWorkloadRequestParam().withAvgPromptTokens(60L) + .withAvgGeneratedTokens(20L)))), + com.azure.core.util.Context.NONE); } } ``` @@ -1175,7 +2164,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilit public final class ResourceProviderCheckDomainAvailabilitySamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CheckDomainAvailability.json */ /** @@ -1206,7 +2195,7 @@ import java.util.Arrays; public final class ResourceProviderCheckSkuAvailabilitySamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CheckSkuAvailability.json */ /** @@ -1235,7 +2224,7 @@ public final class ResourceProviderCheckSkuAvailabilitySamples { public final class ResourceSkusListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetSkus. + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetSkus. * json */ /** @@ -1258,7 +2247,7 @@ public final class ResourceSkusListSamples { public final class UsagesListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListUsages.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml index 93a92dc5849d3..6419e4766e16f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-cognitiveservices - 1.1.0-beta.3 + 1.1.0 jar Microsoft Azure SDK for CognitiveServices Management - This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package tag package-2023-05. + This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package tag package-2024-10. https://github.com/Azure/azure-sdk-for-java @@ -45,8 +45,8 @@ UTF-8 0 0 - true false + true diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java index 2ed6062dcd778..9f295cdbebe4b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java @@ -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; @@ -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; @@ -28,24 +28,42 @@ import com.azure.resourcemanager.cognitiveservices.implementation.CognitiveServicesManagementClientBuilder; import com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansImpl; import com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.DefenderForAISettingsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.EncryptionScopesImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.LocationBasedModelCapacitiesImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.ModelCapacitiesImpl; import com.azure.resourcemanager.cognitiveservices.implementation.ModelsImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.NetworkSecurityPerimeterConfigurationsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.OperationsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistItemsImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistsImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.RaiContentFiltersImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.RaiPoliciesImpl; import com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersImpl; import com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusImpl; import com.azure.resourcemanager.cognitiveservices.implementation.UsagesImpl; import com.azure.resourcemanager.cognitiveservices.models.Accounts; import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlans; import com.azure.resourcemanager.cognitiveservices.models.CommitmentTiers; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettings; import com.azure.resourcemanager.cognitiveservices.models.DeletedAccounts; import com.azure.resourcemanager.cognitiveservices.models.Deployments; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopes; +import com.azure.resourcemanager.cognitiveservices.models.LocationBasedModelCapacities; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacities; import com.azure.resourcemanager.cognitiveservices.models.Models; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurations; import com.azure.resourcemanager.cognitiveservices.models.Operations; import com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnections; import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResources; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItems; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklists; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilters; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicies; import com.azure.resourcemanager.cognitiveservices.models.ResourceProviders; import com.azure.resourcemanager.cognitiveservices.models.ResourceSkus; import com.azure.resourcemanager.cognitiveservices.models.Usages; @@ -77,6 +95,10 @@ public final class CognitiveServicesManager { private Models models; + private LocationBasedModelCapacities locationBasedModelCapacities; + + private ModelCapacities modelCapacities; + private PrivateEndpointConnections privateEndpointConnections; private PrivateLinkResources privateLinkResources; @@ -85,6 +107,20 @@ public final class CognitiveServicesManager { private CommitmentPlans commitmentPlans; + private EncryptionScopes encryptionScopes; + + private RaiPolicies raiPolicies; + + private RaiBlocklists raiBlocklists; + + private RaiBlocklistItems raiBlocklistItems; + + private RaiContentFilters raiContentFilters; + + private NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations; + + private DefenderForAISettings defenderForAISettings; + private final CognitiveServicesManagementClient clientObject; private CognitiveServicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -249,7 +285,7 @@ public CognitiveServicesManager authenticate(TokenCredential credential, AzurePr .append("-") .append("com.azure.resourcemanager.cognitiveservices") .append("/") - .append("1.1.0-beta.2"); + .append("1.1.0"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -282,7 +318,7 @@ public CognitiveServicesManager authenticate(TokenCredential credential, AzurePr 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())); @@ -391,6 +427,31 @@ public Models models() { return models; } + /** + * Gets the resource collection API of LocationBasedModelCapacities. + * + * @return Resource collection API of LocationBasedModelCapacities. + */ + public LocationBasedModelCapacities locationBasedModelCapacities() { + if (this.locationBasedModelCapacities == null) { + this.locationBasedModelCapacities + = new LocationBasedModelCapacitiesImpl(clientObject.getLocationBasedModelCapacities(), this); + } + return locationBasedModelCapacities; + } + + /** + * Gets the resource collection API of ModelCapacities. + * + * @return Resource collection API of ModelCapacities. + */ + public ModelCapacities modelCapacities() { + if (this.modelCapacities == null) { + this.modelCapacities = new ModelCapacitiesImpl(clientObject.getModelCapacities(), this); + } + return modelCapacities; + } + /** * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection. * @@ -440,6 +501,91 @@ public CommitmentPlans commitmentPlans() { return commitmentPlans; } + /** + * Gets the resource collection API of EncryptionScopes. It manages EncryptionScope. + * + * @return Resource collection API of EncryptionScopes. + */ + public EncryptionScopes encryptionScopes() { + if (this.encryptionScopes == null) { + this.encryptionScopes = new EncryptionScopesImpl(clientObject.getEncryptionScopes(), this); + } + return encryptionScopes; + } + + /** + * Gets the resource collection API of RaiPolicies. It manages RaiPolicy. + * + * @return Resource collection API of RaiPolicies. + */ + public RaiPolicies raiPolicies() { + if (this.raiPolicies == null) { + this.raiPolicies = new RaiPoliciesImpl(clientObject.getRaiPolicies(), this); + } + return raiPolicies; + } + + /** + * Gets the resource collection API of RaiBlocklists. It manages RaiBlocklist. + * + * @return Resource collection API of RaiBlocklists. + */ + public RaiBlocklists raiBlocklists() { + if (this.raiBlocklists == null) { + this.raiBlocklists = new RaiBlocklistsImpl(clientObject.getRaiBlocklists(), this); + } + return raiBlocklists; + } + + /** + * Gets the resource collection API of RaiBlocklistItems. It manages RaiBlocklistItem. + * + * @return Resource collection API of RaiBlocklistItems. + */ + public RaiBlocklistItems raiBlocklistItems() { + if (this.raiBlocklistItems == null) { + this.raiBlocklistItems = new RaiBlocklistItemsImpl(clientObject.getRaiBlocklistItems(), this); + } + return raiBlocklistItems; + } + + /** + * Gets the resource collection API of RaiContentFilters. + * + * @return Resource collection API of RaiContentFilters. + */ + public RaiContentFilters raiContentFilters() { + if (this.raiContentFilters == null) { + this.raiContentFilters = new RaiContentFiltersImpl(clientObject.getRaiContentFilters(), this); + } + return raiContentFilters; + } + + /** + * Gets the resource collection API of NetworkSecurityPerimeterConfigurations. + * + * @return Resource collection API of NetworkSecurityPerimeterConfigurations. + */ + public NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations() { + if (this.networkSecurityPerimeterConfigurations == null) { + this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl( + clientObject.getNetworkSecurityPerimeterConfigurations(), this); + } + return networkSecurityPerimeterConfigurations; + } + + /** + * Gets the resource collection API of DefenderForAISettings. It manages DefenderForAISetting. + * + * @return Resource collection API of DefenderForAISettings. + */ + public DefenderForAISettings defenderForAISettings() { + if (this.defenderForAISettings == null) { + this.defenderForAISettings = new DefenderForAISettingsImpl(clientObject.getDefenderForAISettings(), this); + } + return defenderForAISettings; + } + /** * Gets wrapped service client CognitiveServicesManagementClient providing direct access to the underlying * auto-generated API implementation, based on Azure REST API. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java index 03814a197f063..cd49bb4032cfe 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java @@ -102,6 +102,20 @@ public interface CognitiveServicesManagementClient { */ ModelsClient getModels(); + /** + * Gets the LocationBasedModelCapacitiesClient object to access its operations. + * + * @return the LocationBasedModelCapacitiesClient object. + */ + LocationBasedModelCapacitiesClient getLocationBasedModelCapacities(); + + /** + * Gets the ModelCapacitiesClient object to access its operations. + * + * @return the ModelCapacitiesClient object. + */ + ModelCapacitiesClient getModelCapacities(); + /** * Gets the PrivateEndpointConnectionsClient object to access its operations. * @@ -129,4 +143,53 @@ public interface CognitiveServicesManagementClient { * @return the CommitmentPlansClient object. */ CommitmentPlansClient getCommitmentPlans(); + + /** + * Gets the EncryptionScopesClient object to access its operations. + * + * @return the EncryptionScopesClient object. + */ + EncryptionScopesClient getEncryptionScopes(); + + /** + * Gets the RaiPoliciesClient object to access its operations. + * + * @return the RaiPoliciesClient object. + */ + RaiPoliciesClient getRaiPolicies(); + + /** + * Gets the RaiBlocklistsClient object to access its operations. + * + * @return the RaiBlocklistsClient object. + */ + RaiBlocklistsClient getRaiBlocklists(); + + /** + * Gets the RaiBlocklistItemsClient object to access its operations. + * + * @return the RaiBlocklistItemsClient object. + */ + RaiBlocklistItemsClient getRaiBlocklistItems(); + + /** + * Gets the RaiContentFiltersClient object to access its operations. + * + * @return the RaiContentFiltersClient object. + */ + RaiContentFiltersClient getRaiContentFilters(); + + /** + * Gets the NetworkSecurityPerimeterConfigurationsClient object to access its operations. + * + * @return the NetworkSecurityPerimeterConfigurationsClient object. + */ + NetworkSecurityPerimeterConfigurationsClient getNetworkSecurityPerimeterConfigurations(); + + /** + * Gets the DefenderForAISettingsClient object to access its operations. + * + * @return the DefenderForAISettingsClient object. + */ + DefenderForAISettingsClient getDefenderForAISettings(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java new file mode 100644 index 0000000000000..0dc188b3173e7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; + +/** + * An instance of this class provides access to all the operations defined in DefenderForAISettingsClient. + */ +public interface DefenderForAISettingsClient { + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, Context context); + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DefenderForAISettingInner get(String resourceGroupName, String accountName, String defenderForAISettingName); + + /** + * Creates or Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings, Context context); + + /** + * Creates or Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DefenderForAISettingInner createOrUpdate(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings); + + /** + * Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings, Context context); + + /** + * Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DefenderForAISettingInner update(String resourceGroupName, String accountName, String defenderForAISettingName, + DefenderForAISettingInner defenderForAISettings); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java index 75f0a6b193bae..69bf70d703b26 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java @@ -12,6 +12,8 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; +import com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku; /** * An instance of this class provides access to all the operations defined in DeploymentsClient. @@ -142,6 +144,72 @@ DeploymentInner createOrUpdate(String resourceGroupName, String accountName, Str DeploymentInner createOrUpdate(String resourceGroupName, String accountName, String deploymentName, DeploymentInner deployment, Context context); + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DeploymentInner> beginUpdate(String resourceGroupName, String accountName, + String deploymentName, PatchResourceTagsAndSku deployment); + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DeploymentInner> beginUpdate(String resourceGroupName, String accountName, + String deploymentName, PatchResourceTagsAndSku deployment, Context context); + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceTagsAndSku deployment); + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceTagsAndSku deployment, Context context); + /** * Deletes the specified deployment associated with the Cognitive Services account. * @@ -198,4 +266,36 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String accountName, String deploymentName, Context context); + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName); + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName, + Context context); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java new file mode 100644 index 0000000000000..2b324d36afafb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner; + +/** + * An instance of this class provides access to all the operations defined in EncryptionScopesClient. + */ +public interface EncryptionScopesClient { + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, + String encryptionScopeName, Context context); + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EncryptionScopeInner get(String resourceGroupName, String accountName, String encryptionScopeName); + + /** + * Update the state of specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param encryptionScope The encryptionScope properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services EncryptionScope along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String encryptionScopeName, EncryptionScopeInner encryptionScope, Context context); + + /** + * Update the state of specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param encryptionScope The encryptionScope properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services EncryptionScope. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EncryptionScopeInner createOrUpdate(String resourceGroupName, String accountName, String encryptionScopeName, + EncryptionScopeInner encryptionScope); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String encryptionScopeName); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String encryptionScopeName, Context context); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String encryptionScopeName); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String encryptionScopeName, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java new file mode 100644 index 0000000000000..e90257236132b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; + +/** + * An instance of this class provides access to all the operations defined in LocationBasedModelCapacitiesClient. + */ +public interface LocationBasedModelCapacitiesClient { + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, String modelFormat, String modelName, + String modelVersion); + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, String modelFormat, String modelName, + String modelVersion, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java new file mode 100644 index 0000000000000..a4617d1d16ec9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; + +/** + * An instance of this class provides access to all the operations defined in ModelCapacitiesClient. + */ +public interface ModelCapacitiesClient { + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String modelFormat, String modelName, + String modelVersion); + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String modelFormat, String modelName, String modelVersion, + Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java new file mode 100644 index 0000000000000..516cbee930bc9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; + +/** + * An instance of this class provides access to all the operations defined in + * NetworkSecurityPerimeterConfigurationsClient. + */ +public interface NetworkSecurityPerimeterConfigurationsClient { + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, + Context context); + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, + String nspConfigurationName, Context context); + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName, String accountName, + String nspConfigurationName); + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkSecurityPerimeterConfigurationInner> + beginReconcile(String resourceGroupName, String accountName, String nspConfigurationName); + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkSecurityPerimeterConfigurationInner> + beginReconcile(String resourceGroupName, String accountName, String nspConfigurationName, Context context); + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName, String accountName, + String nspConfigurationName); + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName, String accountName, + String nspConfigurationName, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java new file mode 100644 index 0000000000000..1840d5fdd0381 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java @@ -0,0 +1,250 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest; +import java.util.List; + +/** + * An instance of this class provides access to all the operations defined in RaiBlocklistItemsClient. + */ +public interface RaiBlocklistItemsClient { + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName); + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName, + Context context); + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context); + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiBlocklistItemInner get(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName); + + /** + * Update the state of specified blocklist item associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param raiBlocklistItem Properties describing the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist Item along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, RaiBlocklistItemInner raiBlocklistItem, Context context); + + /** + * Update the state of specified blocklist item associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param raiBlocklistItem Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist Item. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiBlocklistItemInner createOrUpdate(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName, RaiBlocklistItemInner raiBlocklistItem); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String raiBlocklistName, String raiBlocklistItemName); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String raiBlocklistName, String raiBlocklistItemName, + Context context); + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response batchAddWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, List raiBlocklistItems, Context context); + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiBlocklistInner batchAdd(String resourceGroupName, String accountName, String raiBlocklistName, + List raiBlocklistItems); + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response batchDeleteWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames, Context context); + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void batchDelete(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java new file mode 100644 index 0000000000000..bc601f7c2055e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; + +/** + * An instance of this class provides access to all the operations defined in RaiBlocklistsClient. + */ +public interface RaiBlocklistsClient { + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + Context context); + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiBlocklistInner get(String resourceGroupName, String accountName, String raiBlocklistName); + + /** + * Update the state of specified blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklist Properties describing the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, RaiBlocklistInner raiBlocklist, Context context); + + /** + * Update the state of specified blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklist Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiBlocklistInner createOrUpdate(String resourceGroupName, String accountName, String raiBlocklistName, + RaiBlocklistInner raiBlocklist); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName, Context context); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String raiBlocklistName); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String raiBlocklistName, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java new file mode 100644 index 0000000000000..80c045ee3e06f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; + +/** + * An instance of this class provides access to all the operations defined in RaiContentFiltersClient. + */ +public interface RaiContentFiltersClient { + /** + * List Content Filters types. + * + * @param location Resource location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); + + /** + * List Content Filters types. + * + * @param location Resource location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Context context); + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, String filterName, Context context); + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiContentFilterInner get(String location, String filterName); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java new file mode 100644 index 0000000000000..6da6c893195bf --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; + +/** + * An instance of this class provides access to all the operations defined in RaiPoliciesClient. + */ +public interface RaiPoliciesClient { + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, String raiPolicyName, + Context context); + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiPolicyInner get(String resourceGroupName, String accountName, String raiPolicyName); + + /** + * Update the state of specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param raiPolicy Properties describing the Content Filters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiPolicy along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String raiPolicyName, RaiPolicyInner raiPolicy, Context context); + + /** + * Update the state of specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param raiPolicy Properties describing the Content Filters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiPolicy. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RaiPolicyInner createOrUpdate(String resourceGroupName, String accountName, String raiPolicyName, + RaiPolicyInner raiPolicy); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String raiPolicyName); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String raiPolicyName, + Context context); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String raiPolicyName); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String raiPolicyName, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java index 836a2627d1b8e..63e85577aec3c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java @@ -8,8 +8,10 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.DomainAvailabilityInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuAvailabilityListResultInner; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter; import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter; import com.azure.resourcemanager.cognitiveservices.models.CheckSkuAvailabilityParameter; @@ -70,4 +72,30 @@ Response checkDomainAvailabilityWithResponse(CheckDomai */ @ServiceMethod(returns = ReturnType.SINGLE) DomainAvailabilityInner checkDomainAvailability(CheckDomainAvailabilityParameter parameters); + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response + calculateModelCapacityWithResponse(CalculateModelCapacityParameter parameters, Context context); + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CalculateModelCapacityResultInner calculateModelCapacity(CalculateModelCapacityParameter parameters); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java index df291ba045fc8..f048be7c8be9b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java @@ -8,7 +8,7 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; +import com.azure.resourcemanager.cognitiveservices.models.Usage; /** * An instance of this class provides access to all the operations defined in UsagesClient. @@ -24,7 +24,7 @@ public interface UsagesClient { * @return usages for the requested subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location); + PagedIterable list(String location); /** * Get usages for the requested subscription. @@ -39,5 +39,5 @@ public interface UsagesClient { * @return usages for the requested subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String location, String filter, Context context); + PagedIterable list(String location, String filter, Context context); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java index dd5a495ff83e2..8c56af4067c64 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java @@ -24,7 +24,7 @@ @Fluent public final class AccountModelInner extends DeploymentModel { /* - * Base Model Identifier. + * Properties of Cognitive Services account deployment model. */ private DeploymentModel baseModel; @@ -80,7 +80,7 @@ public AccountModelInner() { } /** - * Get the baseModel property: Base Model Identifier. + * Get the baseModel property: Properties of Cognitive Services account deployment model. * * @return the baseModel value. */ @@ -89,7 +89,7 @@ public DeploymentModel baseModel() { } /** - * Set the baseModel property: Base Model Identifier. + * Set the baseModel property: Properties of Cognitive Services account deployment model. * * @param baseModel the baseModel value to set. * @return the AccountModelInner object itself. @@ -258,6 +258,15 @@ public CallRateLimit callRateLimit() { return this.callRateLimit; } + /** + * {@inheritDoc} + */ + @Override + public AccountModelInner withPublisher(String publisher) { + super.withPublisher(publisher); + return this; + } + /** * {@inheritDoc} */ @@ -294,6 +303,15 @@ public AccountModelInner withSource(String source) { return this; } + /** + * {@inheritDoc} + */ + @Override + public AccountModelInner withSourceAccount(String sourceAccount) { + super.withSourceAccount(sourceAccount); + return this; + } + /** * Validates the instance. * @@ -321,10 +339,12 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("publisher", publisher()); jsonWriter.writeStringField("format", format()); jsonWriter.writeStringField("name", name()); jsonWriter.writeStringField("version", version()); jsonWriter.writeStringField("source", source()); + jsonWriter.writeStringField("sourceAccount", sourceAccount()); jsonWriter.writeJsonField("baseModel", this.baseModel); jsonWriter.writeBooleanField("isDefaultVersion", this.isDefaultVersion); jsonWriter.writeArrayField("skus", this.skus, (writer, element) -> writer.writeJson(element)); @@ -353,7 +373,9 @@ public static AccountModelInner fromJson(JsonReader jsonReader) throws IOExcepti String fieldName = reader.getFieldName(); reader.nextToken(); - if ("format".equals(fieldName)) { + if ("publisher".equals(fieldName)) { + deserializedAccountModelInner.withPublisher(reader.getString()); + } else if ("format".equals(fieldName)) { deserializedAccountModelInner.withFormat(reader.getString()); } else if ("name".equals(fieldName)) { deserializedAccountModelInner.withName(reader.getString()); @@ -361,6 +383,8 @@ public static AccountModelInner fromJson(JsonReader jsonReader) throws IOExcepti deserializedAccountModelInner.withVersion(reader.getString()); } else if ("source".equals(fieldName)) { deserializedAccountModelInner.withSource(reader.getString()); + } else if ("sourceAccount".equals(fieldName)) { + deserializedAccountModelInner.withSourceAccount(reader.getString()); } else if ("callRateLimit".equals(fieldName)) { deserializedAccountModelInner.callRateLimit = CallRateLimit.fromJson(reader); } else if ("baseModel".equals(fieldName)) { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java new file mode 100644 index 0000000000000..17bf7358025c6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; +import java.io.IOException; + +/** + * Calculate Model Capacity result. + */ +@Fluent +public final class CalculateModelCapacityResultInner implements JsonSerializable { + /* + * Properties of Cognitive Services account deployment model. + */ + private DeploymentModel model; + + /* + * The skuName property. + */ + private String skuName; + + /* + * Model Estimated Capacity. + */ + private CalculateModelCapacityResultEstimatedCapacity estimatedCapacity; + + /** + * Creates an instance of CalculateModelCapacityResultInner class. + */ + public CalculateModelCapacityResultInner() { + } + + /** + * Get the model property: Properties of Cognitive Services account deployment model. + * + * @return the model value. + */ + public DeploymentModel model() { + return this.model; + } + + /** + * Set the model property: Properties of Cognitive Services account deployment model. + * + * @param model the model value to set. + * @return the CalculateModelCapacityResultInner object itself. + */ + public CalculateModelCapacityResultInner withModel(DeploymentModel model) { + this.model = model; + return this; + } + + /** + * Get the skuName property: The skuName property. + * + * @return the skuName value. + */ + public String skuName() { + return this.skuName; + } + + /** + * Set the skuName property: The skuName property. + * + * @param skuName the skuName value to set. + * @return the CalculateModelCapacityResultInner object itself. + */ + public CalculateModelCapacityResultInner withSkuName(String skuName) { + this.skuName = skuName; + return this; + } + + /** + * Get the estimatedCapacity property: Model Estimated Capacity. + * + * @return the estimatedCapacity value. + */ + public CalculateModelCapacityResultEstimatedCapacity estimatedCapacity() { + return this.estimatedCapacity; + } + + /** + * Set the estimatedCapacity property: Model Estimated Capacity. + * + * @param estimatedCapacity the estimatedCapacity value to set. + * @return the CalculateModelCapacityResultInner object itself. + */ + public CalculateModelCapacityResultInner + withEstimatedCapacity(CalculateModelCapacityResultEstimatedCapacity estimatedCapacity) { + this.estimatedCapacity = estimatedCapacity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (model() != null) { + model().validate(); + } + if (estimatedCapacity() != null) { + estimatedCapacity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("model", this.model); + jsonWriter.writeStringField("skuName", this.skuName); + jsonWriter.writeJsonField("estimatedCapacity", this.estimatedCapacity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CalculateModelCapacityResultInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CalculateModelCapacityResultInner if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CalculateModelCapacityResultInner. + */ + public static CalculateModelCapacityResultInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CalculateModelCapacityResultInner deserializedCalculateModelCapacityResultInner + = new CalculateModelCapacityResultInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("model".equals(fieldName)) { + deserializedCalculateModelCapacityResultInner.model = DeploymentModel.fromJson(reader); + } else if ("skuName".equals(fieldName)) { + deserializedCalculateModelCapacityResultInner.skuName = reader.getString(); + } else if ("estimatedCapacity".equals(fieldName)) { + deserializedCalculateModelCapacityResultInner.estimatedCapacity + = CalculateModelCapacityResultEstimatedCapacity.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCalculateModelCapacityResultInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java index f546938611d31..97f1c947c8865 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java @@ -11,6 +11,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.Map; /** * The commitment plan association. @@ -27,6 +28,11 @@ public final class CommitmentPlanAccountAssociationInner extends ProxyResource { */ private String etag; + /* + * Resource tags. + */ + private Map tags; + /* * Properties of Cognitive Services account commitment plan association. */ @@ -71,6 +77,26 @@ public String etag() { return this.etag; } + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the CommitmentPlanAccountAssociationInner object itself. + */ + public CommitmentPlanAccountAssociationInner withTags(Map tags) { + this.tags = tags; + return this; + } + /** * Get the innerProperties property: Properties of Cognitive Services account commitment plan association. * @@ -150,6 +176,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.innerProperties); return jsonWriter.writeEndObject(); } @@ -181,6 +208,9 @@ public static CommitmentPlanAccountAssociationInner fromJson(JsonReader jsonRead deserializedCommitmentPlanAccountAssociationInner.systemData = SystemData.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedCommitmentPlanAccountAssociationInner.etag = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedCommitmentPlanAccountAssociationInner.tags = tags; } else if ("properties".equals(fieldName)) { deserializedCommitmentPlanAccountAssociationInner.innerProperties = CommitmentPlanAccountAssociationProperties.fromJson(reader); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingInner.java new file mode 100644 index 0000000000000..da0f49fa55dac --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingInner.java @@ -0,0 +1,225 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.io.IOException; +import java.util.Map; + +/** + * The Defender for AI resource. + */ +@Fluent +public final class DefenderForAISettingInner extends ProxyResource { + /* + * Metadata pertaining to creation and last modification of the resource. + */ + private SystemData systemData; + + /* + * Resource Etag. + */ + private String etag; + + /* + * Resource tags. + */ + private Map tags; + + /* + * The Defender for AI resource properties. + */ + private DefenderForAISettingProperties innerProperties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of DefenderForAISettingInner class. + */ + public DefenderForAISettingInner() { + } + + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the DefenderForAISettingInner object itself. + */ + public DefenderForAISettingInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the innerProperties property: The Defender for AI resource properties. + * + * @return the innerProperties value. + */ + private DefenderForAISettingProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Get the state property: Defender for AI state on the AI resource. + * + * @return the state value. + */ + public DefenderForAISettingState state() { + return this.innerProperties() == null ? null : this.innerProperties().state(); + } + + /** + * Set the state property: Defender for AI state on the AI resource. + * + * @param state the state value to set. + * @return the DefenderForAISettingInner object itself. + */ + public DefenderForAISettingInner withState(DefenderForAISettingState state) { + if (this.innerProperties() == null) { + this.innerProperties = new DefenderForAISettingProperties(); + } + this.innerProperties().withState(state); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DefenderForAISettingInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DefenderForAISettingInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DefenderForAISettingInner. + */ + public static DefenderForAISettingInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DefenderForAISettingInner deserializedDefenderForAISettingInner = new DefenderForAISettingInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedDefenderForAISettingInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedDefenderForAISettingInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedDefenderForAISettingInner.type = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedDefenderForAISettingInner.systemData = SystemData.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedDefenderForAISettingInner.etag = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedDefenderForAISettingInner.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedDefenderForAISettingInner.innerProperties + = DefenderForAISettingProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedDefenderForAISettingInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingProperties.java new file mode 100644 index 0000000000000..af5874f09d64a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingProperties.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.io.IOException; + +/** + * The Defender for AI resource properties. + */ +@Fluent +public final class DefenderForAISettingProperties implements JsonSerializable { + /* + * Defender for AI state on the AI resource. + */ + private DefenderForAISettingState state; + + /** + * Creates an instance of DefenderForAISettingProperties class. + */ + public DefenderForAISettingProperties() { + } + + /** + * Get the state property: Defender for AI state on the AI resource. + * + * @return the state value. + */ + public DefenderForAISettingState state() { + return this.state; + } + + /** + * Set the state property: Defender for AI state on the AI resource. + * + * @param state the state value to set. + * @return the DefenderForAISettingProperties object itself. + */ + public DefenderForAISettingProperties withState(DefenderForAISettingState state) { + this.state = state; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DefenderForAISettingProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DefenderForAISettingProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DefenderForAISettingProperties. + */ + public static DefenderForAISettingProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DefenderForAISettingProperties deserializedDefenderForAISettingProperties + = new DefenderForAISettingProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedDefenderForAISettingProperties.state + = DefenderForAISettingState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedDefenderForAISettingProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DeploymentInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DeploymentInner.java index 7cd8f3c93dcc4..f2e5963fee25f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DeploymentInner.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DeploymentInner.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DeploymentProperties; import com.azure.resourcemanager.cognitiveservices.models.Sku; import java.io.IOException; +import java.util.Map; /** * Cognitive Services account deployment. @@ -34,6 +35,11 @@ public final class DeploymentInner extends ProxyResource { */ private String etag; + /* + * Resource tags. + */ + private Map tags; + /* * Properties of Cognitive Services account deployment. */ @@ -98,6 +104,26 @@ public String etag() { return this.etag; } + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the DeploymentInner object itself. + */ + public DeploymentInner withTags(Map tags) { + this.tags = tags; + return this; + } + /** * Get the properties property: Properties of Cognitive Services account deployment. * @@ -169,6 +195,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("sku", this.sku); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("properties", this.properties); return jsonWriter.writeEndObject(); } @@ -201,6 +228,9 @@ public static DeploymentInner fromJson(JsonReader jsonReader) throws IOException deserializedDeploymentInner.systemData = SystemData.fromJson(reader); } else if ("etag".equals(fieldName)) { deserializedDeploymentInner.etag = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedDeploymentInner.tags = tags; } else if ("properties".equals(fieldName)) { deserializedDeploymentInner.properties = DeploymentProperties.fromJson(reader); } else { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EncryptionScopeInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EncryptionScopeInner.java new file mode 100644 index 0000000000000..47eca64cc623f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EncryptionScopeInner.java @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Cognitive Services EncryptionScope. + */ +@Fluent +public final class EncryptionScopeInner extends ProxyResource { + /* + * Metadata pertaining to creation and last modification of the resource. + */ + private SystemData systemData; + + /* + * Resource Etag. + */ + private String etag; + + /* + * Resource tags. + */ + private Map tags; + + /* + * Properties of Cognitive Services EncryptionScope. + */ + private EncryptionScopeProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of EncryptionScopeInner class. + */ + public EncryptionScopeInner() { + } + + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the EncryptionScopeInner object itself. + */ + public EncryptionScopeInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: Properties of Cognitive Services EncryptionScope. + * + * @return the properties value. + */ + public EncryptionScopeProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Cognitive Services EncryptionScope. + * + * @param properties the properties value to set. + * @return the EncryptionScopeInner object itself. + */ + public EncryptionScopeInner withProperties(EncryptionScopeProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EncryptionScopeInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EncryptionScopeInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the EncryptionScopeInner. + */ + public static EncryptionScopeInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EncryptionScopeInner deserializedEncryptionScopeInner = new EncryptionScopeInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedEncryptionScopeInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedEncryptionScopeInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedEncryptionScopeInner.type = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedEncryptionScopeInner.systemData = SystemData.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedEncryptionScopeInner.etag = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedEncryptionScopeInner.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedEncryptionScopeInner.properties = EncryptionScopeProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEncryptionScopeInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelCapacityListResultValueItemInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelCapacityListResultValueItemInner.java new file mode 100644 index 0000000000000..9918759f0247e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelCapacityListResultValueItemInner.java @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.ModelSkuCapacityProperties; +import java.io.IOException; + +/** + * The ModelCapacityListResultValueItem model. + */ +@Fluent +public final class ModelCapacityListResultValueItemInner extends ProxyResource { + /* + * The location of the Model Sku Capacity. + */ + private String location; + + /* + * Cognitive Services account ModelSkuCapacity. + */ + private ModelSkuCapacityProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ModelCapacityListResultValueItemInner class. + */ + public ModelCapacityListResultValueItemInner() { + } + + /** + * Get the location property: The location of the Model Sku Capacity. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: The location of the Model Sku Capacity. + * + * @param location the location value to set. + * @return the ModelCapacityListResultValueItemInner object itself. + */ + public ModelCapacityListResultValueItemInner withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the properties property: Cognitive Services account ModelSkuCapacity. + * + * @return the properties value. + */ + public ModelSkuCapacityProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Cognitive Services account ModelSkuCapacity. + * + * @param properties the properties value to set. + * @return the ModelCapacityListResultValueItemInner object itself. + */ + public ModelCapacityListResultValueItemInner withProperties(ModelSkuCapacityProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ModelCapacityListResultValueItemInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ModelCapacityListResultValueItemInner if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the ModelCapacityListResultValueItemInner. + */ + public static ModelCapacityListResultValueItemInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ModelCapacityListResultValueItemInner deserializedModelCapacityListResultValueItemInner + = new ModelCapacityListResultValueItemInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedModelCapacityListResultValueItemInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedModelCapacityListResultValueItemInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedModelCapacityListResultValueItemInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedModelCapacityListResultValueItemInner.location = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedModelCapacityListResultValueItemInner.properties + = ModelSkuCapacityProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedModelCapacityListResultValueItemInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelInner.java index baa4f11fe93ef..dd8e11cfbd26b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelInner.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelInner.java @@ -17,20 +17,25 @@ @Fluent public final class ModelInner implements JsonSerializable { /* - * Model Metadata. + * Cognitive Services account Model. */ private AccountModelInner model; /* - * The Kind of the Model. + * The kind (type) of cognitive service account. */ private String kind; /* - * The SKU of the Model. + * The name of SKU. */ private String skuName; + /* + * The description of the model. + */ + private String description; + /** * Creates an instance of ModelInner class. */ @@ -38,7 +43,7 @@ public ModelInner() { } /** - * Get the model property: Model Metadata. + * Get the model property: Cognitive Services account Model. * * @return the model value. */ @@ -47,7 +52,7 @@ public AccountModelInner model() { } /** - * Set the model property: Model Metadata. + * Set the model property: Cognitive Services account Model. * * @param model the model value to set. * @return the ModelInner object itself. @@ -58,7 +63,7 @@ public ModelInner withModel(AccountModelInner model) { } /** - * Get the kind property: The Kind of the Model. + * Get the kind property: The kind (type) of cognitive service account. * * @return the kind value. */ @@ -67,7 +72,7 @@ public String kind() { } /** - * Set the kind property: The Kind of the Model. + * Set the kind property: The kind (type) of cognitive service account. * * @param kind the kind value to set. * @return the ModelInner object itself. @@ -78,7 +83,7 @@ public ModelInner withKind(String kind) { } /** - * Get the skuName property: The SKU of the Model. + * Get the skuName property: The name of SKU. * * @return the skuName value. */ @@ -87,7 +92,7 @@ public String skuName() { } /** - * Set the skuName property: The SKU of the Model. + * Set the skuName property: The name of SKU. * * @param skuName the skuName value to set. * @return the ModelInner object itself. @@ -97,6 +102,26 @@ public ModelInner withSkuName(String skuName) { return this; } + /** + * Get the description property: The description of the model. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Set the description property: The description of the model. + * + * @param description the description value to set. + * @return the ModelInner object itself. + */ + public ModelInner withDescription(String description) { + this.description = description; + return this; + } + /** * Validates the instance. * @@ -117,6 +142,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("model", this.model); jsonWriter.writeStringField("kind", this.kind); jsonWriter.writeStringField("skuName", this.skuName); + jsonWriter.writeStringField("description", this.description); return jsonWriter.writeEndObject(); } @@ -141,6 +167,8 @@ public static ModelInner fromJson(JsonReader jsonReader) throws IOException { deserializedModelInner.kind = reader.getString(); } else if ("skuName".equals(fieldName)) { deserializedModelInner.skuName = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedModelInner.description = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/NetworkSecurityPerimeterConfigurationInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/NetworkSecurityPerimeterConfigurationInner.java new file mode 100644 index 0000000000000..4c83b7996998f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/NetworkSecurityPerimeterConfigurationInner.java @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties; +import java.io.IOException; + +/** + * NSP Configuration for an Cognitive Services account. + */ +@Fluent +public final class NetworkSecurityPerimeterConfigurationInner extends ProxyResource { + /* + * NSP Configuration properties. + */ + private NetworkSecurityPerimeterConfigurationProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of NetworkSecurityPerimeterConfigurationInner class. + */ + public NetworkSecurityPerimeterConfigurationInner() { + } + + /** + * Get the properties property: NSP Configuration properties. + * + * @return the properties value. + */ + public NetworkSecurityPerimeterConfigurationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: NSP Configuration properties. + * + * @param properties the properties value to set. + * @return the NetworkSecurityPerimeterConfigurationInner object itself. + */ + public NetworkSecurityPerimeterConfigurationInner + withProperties(NetworkSecurityPerimeterConfigurationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterConfigurationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterConfigurationInner if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterConfigurationInner. + */ + public static NetworkSecurityPerimeterConfigurationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterConfigurationInner deserializedNetworkSecurityPerimeterConfigurationInner + = new NetworkSecurityPerimeterConfigurationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationInner.properties + = NetworkSecurityPerimeterConfigurationProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterConfigurationInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistInner.java new file mode 100644 index 0000000000000..8006898292849 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistInner.java @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Cognitive Services RaiBlocklist. + */ +@Fluent +public final class RaiBlocklistInner extends ProxyResource { + /* + * Metadata pertaining to creation and last modification of the resource. + */ + private SystemData systemData; + + /* + * Resource Etag. + */ + private String etag; + + /* + * Resource tags. + */ + private Map tags; + + /* + * Properties of Cognitive Services RaiBlocklist. + */ + private RaiBlocklistProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of RaiBlocklistInner class. + */ + public RaiBlocklistInner() { + } + + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the RaiBlocklistInner object itself. + */ + public RaiBlocklistInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: Properties of Cognitive Services RaiBlocklist. + * + * @return the properties value. + */ + public RaiBlocklistProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Cognitive Services RaiBlocklist. + * + * @param properties the properties value to set. + * @return the RaiBlocklistInner object itself. + */ + public RaiBlocklistInner withProperties(RaiBlocklistProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlocklistInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlocklistInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RaiBlocklistInner. + */ + public static RaiBlocklistInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlocklistInner deserializedRaiBlocklistInner = new RaiBlocklistInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRaiBlocklistInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedRaiBlocklistInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedRaiBlocklistInner.type = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedRaiBlocklistInner.systemData = SystemData.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedRaiBlocklistInner.etag = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedRaiBlocklistInner.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedRaiBlocklistInner.properties = RaiBlocklistProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlocklistInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistItemInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistItemInner.java new file mode 100644 index 0000000000000..74f2c13f2641b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistItemInner.java @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Cognitive Services RaiBlocklist Item. + */ +@Fluent +public final class RaiBlocklistItemInner extends ProxyResource { + /* + * Metadata pertaining to creation and last modification of the resource. + */ + private SystemData systemData; + + /* + * Resource Etag. + */ + private String etag; + + /* + * Resource tags. + */ + private Map tags; + + /* + * Properties of Cognitive Services RaiBlocklist Item. + */ + private RaiBlocklistItemProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of RaiBlocklistItemInner class. + */ + public RaiBlocklistItemInner() { + } + + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the RaiBlocklistItemInner object itself. + */ + public RaiBlocklistItemInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: Properties of Cognitive Services RaiBlocklist Item. + * + * @return the properties value. + */ + public RaiBlocklistItemProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Cognitive Services RaiBlocklist Item. + * + * @param properties the properties value to set. + * @return the RaiBlocklistItemInner object itself. + */ + public RaiBlocklistItemInner withProperties(RaiBlocklistItemProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlocklistItemInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlocklistItemInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RaiBlocklistItemInner. + */ + public static RaiBlocklistItemInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlocklistItemInner deserializedRaiBlocklistItemInner = new RaiBlocklistItemInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRaiBlocklistItemInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedRaiBlocklistItemInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedRaiBlocklistItemInner.type = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedRaiBlocklistItemInner.systemData = SystemData.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedRaiBlocklistItemInner.etag = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedRaiBlocklistItemInner.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedRaiBlocklistItemInner.properties = RaiBlocklistItemProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlocklistItemInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiContentFilterInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiContentFilterInner.java new file mode 100644 index 0000000000000..bb55665d15474 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiContentFilterInner.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties; +import java.io.IOException; + +/** + * Azure OpenAI Content Filter. + */ +@Fluent +public final class RaiContentFilterInner extends ProxyResource { + /* + * Azure OpenAI Content Filter Properties. + */ + private RaiContentFilterProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of RaiContentFilterInner class. + */ + public RaiContentFilterInner() { + } + + /** + * Get the properties property: Azure OpenAI Content Filter Properties. + * + * @return the properties value. + */ + public RaiContentFilterProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Azure OpenAI Content Filter Properties. + * + * @param properties the properties value to set. + * @return the RaiContentFilterInner object itself. + */ + public RaiContentFilterInner withProperties(RaiContentFilterProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiContentFilterInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiContentFilterInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RaiContentFilterInner. + */ + public static RaiContentFilterInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiContentFilterInner deserializedRaiContentFilterInner = new RaiContentFilterInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRaiContentFilterInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedRaiContentFilterInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedRaiContentFilterInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedRaiContentFilterInner.properties = RaiContentFilterProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiContentFilterInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiPolicyInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiPolicyInner.java new file mode 100644 index 0000000000000..af00f49ae4fa3 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiPolicyInner.java @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Cognitive Services RaiPolicy. + */ +@Fluent +public final class RaiPolicyInner extends ProxyResource { + /* + * Metadata pertaining to creation and last modification of the resource. + */ + private SystemData systemData; + + /* + * Resource Etag. + */ + private String etag; + + /* + * Resource tags. + */ + private Map tags; + + /* + * Properties of Cognitive Services RaiPolicy. + */ + private RaiPolicyProperties properties; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of RaiPolicyInner class. + */ + public RaiPolicyInner() { + } + + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the RaiPolicyInner object itself. + */ + public RaiPolicyInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: Properties of Cognitive Services RaiPolicy. + * + * @return the properties value. + */ + public RaiPolicyProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Cognitive Services RaiPolicy. + * + * @param properties the properties value to set. + * @return the RaiPolicyInner object itself. + */ + public RaiPolicyInner withProperties(RaiPolicyProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiPolicyInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiPolicyInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the RaiPolicyInner. + */ + public static RaiPolicyInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiPolicyInner deserializedRaiPolicyInner = new RaiPolicyInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRaiPolicyInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedRaiPolicyInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedRaiPolicyInner.type = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedRaiPolicyInner.systemData = SystemData.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedRaiPolicyInner.etag = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedRaiPolicyInner.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedRaiPolicyInner.properties = RaiPolicyProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiPolicyInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuResourceInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuResourceInner.java new file mode 100644 index 0000000000000..b65df4a3b14a7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuResourceInner.java @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.CapacityConfig; +import com.azure.resourcemanager.cognitiveservices.models.Sku; +import java.io.IOException; + +/** + * Properties of Cognitive Services account resource sku resource properties. + */ +@Fluent +public final class SkuResourceInner implements JsonSerializable { + /* + * The resource type name. + */ + private String resourceType; + + /* + * The resource model definition representing SKU + */ + private Sku sku; + + /* + * The capacity configuration. + */ + private CapacityConfig capacity; + + /** + * Creates an instance of SkuResourceInner class. + */ + public SkuResourceInner() { + } + + /** + * Get the resourceType property: The resource type name. + * + * @return the resourceType value. + */ + public String resourceType() { + return this.resourceType; + } + + /** + * Set the resourceType property: The resource type name. + * + * @param resourceType the resourceType value to set. + * @return the SkuResourceInner object itself. + */ + public SkuResourceInner withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Get the sku property: The resource model definition representing SKU. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku property: The resource model definition representing SKU. + * + * @param sku the sku value to set. + * @return the SkuResourceInner object itself. + */ + public SkuResourceInner withSku(Sku sku) { + this.sku = sku; + return this; + } + + /** + * Get the capacity property: The capacity configuration. + * + * @return the capacity value. + */ + public CapacityConfig capacity() { + return this.capacity; + } + + /** + * Set the capacity property: The capacity configuration. + * + * @param capacity the capacity value to set. + * @return the SkuResourceInner object itself. + */ + public SkuResourceInner withCapacity(CapacityConfig capacity) { + this.capacity = capacity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sku() != null) { + sku().validate(); + } + if (capacity() != null) { + capacity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resourceType", this.resourceType); + jsonWriter.writeJsonField("sku", this.sku); + jsonWriter.writeJsonField("capacity", this.capacity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SkuResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SkuResourceInner if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the SkuResourceInner. + */ + public static SkuResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SkuResourceInner deserializedSkuResourceInner = new SkuResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceType".equals(fieldName)) { + deserializedSkuResourceInner.resourceType = reader.getString(); + } else if ("sku".equals(fieldName)) { + deserializedSkuResourceInner.sku = Sku.fromJson(reader); + } else if ("capacity".equals(fieldName)) { + deserializedSkuResourceInner.capacity = CapacityConfig.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSkuResourceInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageInner.java deleted file mode 100644 index 2c0b3b93f62b8..0000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageInner.java +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.cognitiveservices.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.cognitiveservices.models.MetricName; -import com.azure.resourcemanager.cognitiveservices.models.QuotaUsageStatus; -import com.azure.resourcemanager.cognitiveservices.models.UnitType; -import java.io.IOException; - -/** - * The usage data for a usage request. - */ -@Fluent -public final class UsageInner implements JsonSerializable { - /* - * The unit of the metric. - */ - private UnitType unit; - - /* - * The name information for the metric. - */ - private MetricName name; - - /* - * The quota period used to summarize the usage values. - */ - private String quotaPeriod; - - /* - * Maximum value for this metric. - */ - private Double limit; - - /* - * Current value for this metric. - */ - private Double currentValue; - - /* - * Next reset time for current quota. - */ - private String nextResetTime; - - /* - * Cognitive Services account quota usage status. - */ - private QuotaUsageStatus status; - - /** - * Creates an instance of UsageInner class. - */ - public UsageInner() { - } - - /** - * Get the unit property: The unit of the metric. - * - * @return the unit value. - */ - public UnitType unit() { - return this.unit; - } - - /** - * Set the unit property: The unit of the metric. - * - * @param unit the unit value to set. - * @return the UsageInner object itself. - */ - public UsageInner withUnit(UnitType unit) { - this.unit = unit; - return this; - } - - /** - * Get the name property: The name information for the metric. - * - * @return the name value. - */ - public MetricName name() { - return this.name; - } - - /** - * Set the name property: The name information for the metric. - * - * @param name the name value to set. - * @return the UsageInner object itself. - */ - public UsageInner withName(MetricName name) { - this.name = name; - return this; - } - - /** - * Get the quotaPeriod property: The quota period used to summarize the usage values. - * - * @return the quotaPeriod value. - */ - public String quotaPeriod() { - return this.quotaPeriod; - } - - /** - * Set the quotaPeriod property: The quota period used to summarize the usage values. - * - * @param quotaPeriod the quotaPeriod value to set. - * @return the UsageInner object itself. - */ - public UsageInner withQuotaPeriod(String quotaPeriod) { - this.quotaPeriod = quotaPeriod; - return this; - } - - /** - * Get the limit property: Maximum value for this metric. - * - * @return the limit value. - */ - public Double limit() { - return this.limit; - } - - /** - * Set the limit property: Maximum value for this metric. - * - * @param limit the limit value to set. - * @return the UsageInner object itself. - */ - public UsageInner withLimit(Double limit) { - this.limit = limit; - return this; - } - - /** - * Get the currentValue property: Current value for this metric. - * - * @return the currentValue value. - */ - public Double currentValue() { - return this.currentValue; - } - - /** - * Set the currentValue property: Current value for this metric. - * - * @param currentValue the currentValue value to set. - * @return the UsageInner object itself. - */ - public UsageInner withCurrentValue(Double currentValue) { - this.currentValue = currentValue; - return this; - } - - /** - * Get the nextResetTime property: Next reset time for current quota. - * - * @return the nextResetTime value. - */ - public String nextResetTime() { - return this.nextResetTime; - } - - /** - * Set the nextResetTime property: Next reset time for current quota. - * - * @param nextResetTime the nextResetTime value to set. - * @return the UsageInner object itself. - */ - public UsageInner withNextResetTime(String nextResetTime) { - this.nextResetTime = nextResetTime; - return this; - } - - /** - * Get the status property: Cognitive Services account quota usage status. - * - * @return the status value. - */ - public QuotaUsageStatus status() { - return this.status; - } - - /** - * Set the status property: Cognitive Services account quota usage status. - * - * @param status the status value to set. - * @return the UsageInner object itself. - */ - public UsageInner withStatus(QuotaUsageStatus status) { - this.status = status; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (name() != null) { - name().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("unit", this.unit == null ? null : this.unit.toString()); - jsonWriter.writeJsonField("name", this.name); - jsonWriter.writeStringField("quotaPeriod", this.quotaPeriod); - jsonWriter.writeNumberField("limit", this.limit); - jsonWriter.writeNumberField("currentValue", this.currentValue); - jsonWriter.writeStringField("nextResetTime", this.nextResetTime); - jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of UsageInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of UsageInner if the JsonReader was pointing to an instance of it, or null if it was pointing - * to JSON null. - * @throws IOException If an error occurs while reading the UsageInner. - */ - public static UsageInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - UsageInner deserializedUsageInner = new UsageInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("unit".equals(fieldName)) { - deserializedUsageInner.unit = UnitType.fromString(reader.getString()); - } else if ("name".equals(fieldName)) { - deserializedUsageInner.name = MetricName.fromJson(reader); - } else if ("quotaPeriod".equals(fieldName)) { - deserializedUsageInner.quotaPeriod = reader.getString(); - } else if ("limit".equals(fieldName)) { - deserializedUsageInner.limit = reader.getNullable(JsonReader::getDouble); - } else if ("currentValue".equals(fieldName)) { - deserializedUsageInner.currentValue = reader.getNullable(JsonReader::getDouble); - } else if ("nextResetTime".equals(fieldName)) { - deserializedUsageInner.nextResetTime = reader.getString(); - } else if ("status".equals(fieldName)) { - deserializedUsageInner.status = QuotaUsageStatus.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedUsageInner; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageListResultInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageListResultInner.java index 4341d9ea88880..c80dd85bdc1ee 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageListResultInner.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageListResultInner.java @@ -9,6 +9,7 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.Usage; import java.io.IOException; import java.util.List; @@ -25,7 +26,7 @@ public final class UsageListResultInner implements JsonSerializable value; + private List value; /** * Creates an instance of UsageListResultInner class. @@ -58,7 +59,7 @@ public UsageListResultInner withNextLink(String nextLink) { * * @return the value value. */ - public List value() { + public List value() { return this.value; } @@ -68,7 +69,7 @@ public List value() { * @param value the value value to set. * @return the UsageListResultInner object itself. */ - public UsageListResultInner withValue(List value) { + public UsageListResultInner withValue(List value) { this.value = value; return this; } @@ -113,7 +114,7 @@ public static UsageListResultInner fromJson(JsonReader jsonReader) throws IOExce if ("nextLink".equals(fieldName)) { deserializedUsageListResultInner.nextLink = reader.getString(); } else if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> UsageInner.fromJson(reader1)); + List value = reader.readArray(reader1 -> Usage.fromJson(reader1)); deserializedUsageListResultInner.value = value; } else { reader.skipChildren(); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountModelImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountModelImpl.java index fe40b2722f1c9..b5661bc245c06 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountModelImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountModelImpl.java @@ -27,6 +27,10 @@ public final class AccountModelImpl implements AccountModel { this.serviceManager = serviceManager; } + public String publisher() { + return this.innerModel().publisher(); + } + public String format() { return this.innerModel().format(); } @@ -43,6 +47,10 @@ public String source() { return this.innerModel().source(); } + public String sourceAccount() { + return this.innerModel().sourceAccount(); + } + public CallRateLimit callRateLimit() { return this.innerModel().callRateLimit(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CalculateModelCapacityResultImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CalculateModelCapacityResultImpl.java new file mode 100644 index 0000000000000..02d701cef8a23 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CalculateModelCapacityResultImpl.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResult; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; + +public final class CalculateModelCapacityResultImpl implements CalculateModelCapacityResult { + private CalculateModelCapacityResultInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + CalculateModelCapacityResultImpl(CalculateModelCapacityResultInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public DeploymentModel model() { + return this.innerModel().model(); + } + + public String skuName() { + return this.innerModel().skuName(); + } + + public CalculateModelCapacityResultEstimatedCapacity estimatedCapacity() { + return this.innerModel().estimatedCapacity(); + } + + public CalculateModelCapacityResultInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java index 2db33a5c95577..59cee0bd084c5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java @@ -27,12 +27,21 @@ import com.azure.resourcemanager.cognitiveservices.fluent.CognitiveServicesManagementClient; import com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient; import com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient; +import com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient; import com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient; import com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient; import com.azure.resourcemanager.cognitiveservices.fluent.ModelsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient; import com.azure.resourcemanager.cognitiveservices.fluent.OperationsClient; import com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient; import com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient; import com.azure.resourcemanager.cognitiveservices.fluent.ResourceSkusClient; import com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient; @@ -246,6 +255,34 @@ public ModelsClient getModels() { return this.models; } + /** + * The LocationBasedModelCapacitiesClient object to access its operations. + */ + private final LocationBasedModelCapacitiesClient locationBasedModelCapacities; + + /** + * Gets the LocationBasedModelCapacitiesClient object to access its operations. + * + * @return the LocationBasedModelCapacitiesClient object. + */ + public LocationBasedModelCapacitiesClient getLocationBasedModelCapacities() { + return this.locationBasedModelCapacities; + } + + /** + * The ModelCapacitiesClient object to access its operations. + */ + private final ModelCapacitiesClient modelCapacities; + + /** + * Gets the ModelCapacitiesClient object to access its operations. + * + * @return the ModelCapacitiesClient object. + */ + public ModelCapacitiesClient getModelCapacities() { + return this.modelCapacities; + } + /** * The PrivateEndpointConnectionsClient object to access its operations. */ @@ -302,6 +339,104 @@ public CommitmentPlansClient getCommitmentPlans() { return this.commitmentPlans; } + /** + * The EncryptionScopesClient object to access its operations. + */ + private final EncryptionScopesClient encryptionScopes; + + /** + * Gets the EncryptionScopesClient object to access its operations. + * + * @return the EncryptionScopesClient object. + */ + public EncryptionScopesClient getEncryptionScopes() { + return this.encryptionScopes; + } + + /** + * The RaiPoliciesClient object to access its operations. + */ + private final RaiPoliciesClient raiPolicies; + + /** + * Gets the RaiPoliciesClient object to access its operations. + * + * @return the RaiPoliciesClient object. + */ + public RaiPoliciesClient getRaiPolicies() { + return this.raiPolicies; + } + + /** + * The RaiBlocklistsClient object to access its operations. + */ + private final RaiBlocklistsClient raiBlocklists; + + /** + * Gets the RaiBlocklistsClient object to access its operations. + * + * @return the RaiBlocklistsClient object. + */ + public RaiBlocklistsClient getRaiBlocklists() { + return this.raiBlocklists; + } + + /** + * The RaiBlocklistItemsClient object to access its operations. + */ + private final RaiBlocklistItemsClient raiBlocklistItems; + + /** + * Gets the RaiBlocklistItemsClient object to access its operations. + * + * @return the RaiBlocklistItemsClient object. + */ + public RaiBlocklistItemsClient getRaiBlocklistItems() { + return this.raiBlocklistItems; + } + + /** + * The RaiContentFiltersClient object to access its operations. + */ + private final RaiContentFiltersClient raiContentFilters; + + /** + * Gets the RaiContentFiltersClient object to access its operations. + * + * @return the RaiContentFiltersClient object. + */ + public RaiContentFiltersClient getRaiContentFilters() { + return this.raiContentFilters; + } + + /** + * The NetworkSecurityPerimeterConfigurationsClient object to access its operations. + */ + private final NetworkSecurityPerimeterConfigurationsClient networkSecurityPerimeterConfigurations; + + /** + * Gets the NetworkSecurityPerimeterConfigurationsClient object to access its operations. + * + * @return the NetworkSecurityPerimeterConfigurationsClient object. + */ + public NetworkSecurityPerimeterConfigurationsClient getNetworkSecurityPerimeterConfigurations() { + return this.networkSecurityPerimeterConfigurations; + } + + /** + * The DefenderForAISettingsClient object to access its operations. + */ + private final DefenderForAISettingsClient defenderForAISettings; + + /** + * Gets the DefenderForAISettingsClient object to access its operations. + * + * @return the DefenderForAISettingsClient object. + */ + public DefenderForAISettingsClient getDefenderForAISettings() { + return this.defenderForAISettings; + } + /** * Initializes an instance of CognitiveServicesManagementClient client. * @@ -319,7 +454,7 @@ public CommitmentPlansClient getCommitmentPlans() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-05-01"; + this.apiVersion = "2024-10-01"; this.accounts = new AccountsClientImpl(this); this.deletedAccounts = new DeletedAccountsClientImpl(this); this.resourceSkus = new ResourceSkusClientImpl(this); @@ -328,10 +463,19 @@ public CommitmentPlansClient getCommitmentPlans() { this.resourceProviders = new ResourceProvidersClientImpl(this); this.commitmentTiers = new CommitmentTiersClientImpl(this); this.models = new ModelsClientImpl(this); + this.locationBasedModelCapacities = new LocationBasedModelCapacitiesClientImpl(this); + this.modelCapacities = new ModelCapacitiesClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); this.deployments = new DeploymentsClientImpl(this); this.commitmentPlans = new CommitmentPlansClientImpl(this); + this.encryptionScopes = new EncryptionScopesClientImpl(this); + this.raiPolicies = new RaiPoliciesClientImpl(this); + this.raiBlocklists = new RaiBlocklistsClientImpl(this); + this.raiBlocklistItems = new RaiBlocklistItemsClientImpl(this); + this.raiContentFilters = new RaiContentFiltersClientImpl(this); + this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsClientImpl(this); + this.defenderForAISettings = new DefenderForAISettingsClientImpl(this); } /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanAccountAssociationImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanAccountAssociationImpl.java index 800ed677f669f..daa73c3efed1e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanAccountAssociationImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanAccountAssociationImpl.java @@ -8,6 +8,8 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationInner; import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanAccountAssociation; +import java.util.Collections; +import java.util.Map; public final class CommitmentPlanAccountAssociationImpl implements CommitmentPlanAccountAssociation, CommitmentPlanAccountAssociation.Definition, CommitmentPlanAccountAssociation.Update { @@ -35,6 +37,15 @@ public String etag() { return this.innerModel().etag(); } + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + public String accountId() { return this.innerModel().accountId(); } @@ -134,6 +145,11 @@ public CommitmentPlanAccountAssociation refresh(Context context) { return this; } + public CommitmentPlanAccountAssociationImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + public CommitmentPlanAccountAssociationImpl withAccountId(String accountId) { this.innerModel().withAccountId(accountId); return this; diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingImpl.java new file mode 100644 index 0000000000000..e18af22aca9ba --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingImpl.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISetting; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.util.Collections; +import java.util.Map; + +public final class DefenderForAISettingImpl + implements DefenderForAISetting, DefenderForAISetting.Definition, DefenderForAISetting.Update { + private DefenderForAISettingInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public DefenderForAISettingState state() { + return this.innerModel().state(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public DefenderForAISettingInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String defenderForAISettingName; + + public DefenderForAISettingImpl withExistingAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public DefenderForAISetting create() { + this.innerObject = serviceManager.serviceClient() + .getDefenderForAISettings() + .createOrUpdateWithResponse(resourceGroupName, accountName, defenderForAISettingName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public DefenderForAISetting create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDefenderForAISettings() + .createOrUpdateWithResponse(resourceGroupName, accountName, defenderForAISettingName, this.innerModel(), + context) + .getValue(); + return this; + } + + DefenderForAISettingImpl(String name, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new DefenderForAISettingInner(); + this.serviceManager = serviceManager; + this.defenderForAISettingName = name; + } + + public DefenderForAISettingImpl update() { + return this; + } + + public DefenderForAISetting apply() { + this.innerObject = serviceManager.serviceClient() + .getDefenderForAISettings() + .updateWithResponse(resourceGroupName, accountName, defenderForAISettingName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public DefenderForAISetting apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDefenderForAISettings() + .updateWithResponse(resourceGroupName, accountName, defenderForAISettingName, this.innerModel(), context) + .getValue(); + return this; + } + + DefenderForAISettingImpl(DefenderForAISettingInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); + this.defenderForAISettingName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "defenderForAISettings"); + } + + public DefenderForAISetting refresh() { + this.innerObject = serviceManager.serviceClient() + .getDefenderForAISettings() + .getWithResponse(resourceGroupName, accountName, defenderForAISettingName, Context.NONE) + .getValue(); + return this; + } + + public DefenderForAISetting refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDefenderForAISettings() + .getWithResponse(resourceGroupName, accountName, defenderForAISettingName, context) + .getValue(); + return this; + } + + public DefenderForAISettingImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public DefenderForAISettingImpl withState(DefenderForAISettingState state) { + this.innerModel().withState(state); + return this; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsClientImpl.java new file mode 100644 index 0000000000000..3a824d0382559 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsClientImpl.java @@ -0,0 +1,756 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DefenderForAISettingsClient. + */ +public final class DefenderForAISettingsClientImpl implements DefenderForAISettingsClient { + /** + * The proxy service used to perform REST calls. + */ + private final DefenderForAISettingsService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of DefenderForAISettingsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DefenderForAISettingsClientImpl(CognitiveServicesManagementClientImpl client) { + this.service = RestProxy.create(DefenderForAISettingsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientDefenderForAISettings to be used by + * the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface DefenderForAISettingsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/defenderForAISettings") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/defenderForAISettings/{defenderForAISettingName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("defenderForAISettingName") String defenderForAISettingName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/defenderForAISettings/{defenderForAISettingName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("defenderForAISettingName") String defenderForAISettingName, + @BodyParam("application/json") DefenderForAISettingInner defenderForAISettings, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/defenderForAISettings/{defenderForAISettingName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> update(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("defenderForAISettingName") String defenderForAISettingName, + @BodyParam("application/json") DefenderForAISettingInner defenderForAISettings, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String accountName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName)); + } + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String defenderForAISettingName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (defenderForAISettingName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defenderForAISettingName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), defenderForAISettingName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String defenderForAISettingName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (defenderForAISettingName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defenderForAISettingName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), defenderForAISettingName, accept, context); + } + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, + String defenderForAISettingName) { + return getWithResponseAsync(resourceGroupName, accountName, defenderForAISettingName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, defenderForAISettingName, context).block(); + } + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DefenderForAISettingInner get(String resourceGroupName, String accountName, + String defenderForAISettingName) { + return getWithResponse(resourceGroupName, accountName, defenderForAISettingName, Context.NONE).getValue(); + } + + /** + * Creates or Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (defenderForAISettingName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defenderForAISettingName is required and cannot be null.")); + } + if (defenderForAISettings == null) { + return Mono + .error(new IllegalArgumentException("Parameter defenderForAISettings is required and cannot be null.")); + } else { + defenderForAISettings.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), defenderForAISettingName, + defenderForAISettings, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (defenderForAISettingName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defenderForAISettingName is required and cannot be null.")); + } + if (defenderForAISettings == null) { + return Mono + .error(new IllegalArgumentException("Parameter defenderForAISettings is required and cannot be null.")); + } else { + defenderForAISettings.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), defenderForAISettingName, + defenderForAISettings, accept, context); + } + + /** + * Creates or Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, defenderForAISettingName, + defenderForAISettings).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Creates or Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, defenderForAISettingName, + defenderForAISettings, context).block(); + } + + /** + * Creates or Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DefenderForAISettingInner createOrUpdate(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings) { + return createOrUpdateWithResponse(resourceGroupName, accountName, defenderForAISettingName, + defenderForAISettings, Context.NONE).getValue(); + } + + /** + * Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String accountName, String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (defenderForAISettingName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defenderForAISettingName is required and cannot be null.")); + } + if (defenderForAISettings == null) { + return Mono + .error(new IllegalArgumentException("Parameter defenderForAISettings is required and cannot be null.")); + } else { + defenderForAISettings.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), defenderForAISettingName, + defenderForAISettings, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateWithResponseAsync(String resourceGroupName, + String accountName, String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (defenderForAISettingName == null) { + return Mono.error( + new IllegalArgumentException("Parameter defenderForAISettingName is required and cannot be null.")); + } + if (defenderForAISettings == null) { + return Mono + .error(new IllegalArgumentException("Parameter defenderForAISettings is required and cannot be null.")); + } else { + defenderForAISettings.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), defenderForAISettingName, defenderForAISettings, accept, context); + } + + /** + * Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings) { + return updateWithResponseAsync(resourceGroupName, accountName, defenderForAISettingName, defenderForAISettings) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings, Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, defenderForAISettingName, defenderForAISettings, + context).block(); + } + + /** + * Updates the specified Defender for AI setting. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param defenderForAISettings Properties describing the Defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the Defender for AI resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DefenderForAISettingInner update(String resourceGroupName, String accountName, + String defenderForAISettingName, DefenderForAISettingInner defenderForAISettings) { + return updateWithResponse(resourceGroupName, accountName, defenderForAISettingName, defenderForAISettings, + Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsImpl.java new file mode 100644 index 0000000000000..004494a4b7c70 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsImpl.java @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISetting; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettings; + +public final class DefenderForAISettingsImpl implements DefenderForAISettings { + private static final ClientLogger LOGGER = new ClientLogger(DefenderForAISettingsImpl.class); + + private final DefenderForAISettingsClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public DefenderForAISettingsImpl(DefenderForAISettingsClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DefenderForAISettingImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DefenderForAISettingImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, defenderForAISettingName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new DefenderForAISettingImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public DefenderForAISetting get(String resourceGroupName, String accountName, String defenderForAISettingName) { + DefenderForAISettingInner inner + = this.serviceClient().get(resourceGroupName, accountName, defenderForAISettingName); + if (inner != null) { + return new DefenderForAISettingImpl(inner, this.manager()); + } else { + return null; + } + } + + public DefenderForAISetting getById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String defenderForAISettingName = ResourceManagerUtils.getValueFromIdByName(id, "defenderForAISettings"); + if (defenderForAISettingName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'defenderForAISettings'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, defenderForAISettingName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String defenderForAISettingName = ResourceManagerUtils.getValueFromIdByName(id, "defenderForAISettings"); + if (defenderForAISettingName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'defenderForAISettings'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, defenderForAISettingName, context); + } + + private DefenderForAISettingsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public DefenderForAISettingImpl define(String name) { + return new DefenderForAISettingImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentImpl.java index a3c32531e8af2..ed1a3d8cc16cb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentImpl.java @@ -9,7 +9,10 @@ import com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner; import com.azure.resourcemanager.cognitiveservices.models.Deployment; import com.azure.resourcemanager.cognitiveservices.models.DeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku; import com.azure.resourcemanager.cognitiveservices.models.Sku; +import java.util.Collections; +import java.util.Map; public final class DeploymentImpl implements Deployment, Deployment.Definition, Deployment.Update { private DeploymentInner innerObject; @@ -40,6 +43,15 @@ public String etag() { return this.innerModel().etag(); } + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + public DeploymentProperties properties() { return this.innerModel().properties(); } @@ -62,6 +74,8 @@ private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager man private String deploymentName; + private PatchResourceTagsAndSku updateDeployment; + public DeploymentImpl withExistingAccount(String resourceGroupName, String accountName) { this.resourceGroupName = resourceGroupName; this.accountName = accountName; @@ -89,20 +103,21 @@ public Deployment create(Context context) { } public DeploymentImpl update() { + this.updateDeployment = new PatchResourceTagsAndSku(); return this; } public Deployment apply() { this.innerObject = serviceManager.serviceClient() .getDeployments() - .createOrUpdate(resourceGroupName, accountName, deploymentName, this.innerModel(), Context.NONE); + .update(resourceGroupName, accountName, deploymentName, updateDeployment, Context.NONE); return this; } public Deployment apply(Context context) { this.innerObject = serviceManager.serviceClient() .getDeployments() - .createOrUpdate(resourceGroupName, accountName, deploymentName, this.innerModel(), context); + .update(resourceGroupName, accountName, deploymentName, updateDeployment, context); return this; } @@ -131,13 +146,32 @@ public Deployment refresh(Context context) { return this; } + public DeploymentImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateDeployment.withTags(tags); + return this; + } + } + public DeploymentImpl withSku(Sku sku) { - this.innerModel().withSku(sku); - return this; + if (isInCreateMode()) { + this.innerModel().withSku(sku); + return this; + } else { + this.updateDeployment.withSku(sku); + return this; + } } public DeploymentImpl withProperties(DeploymentProperties properties) { this.innerModel().withProperties(properties); return this; } + + private boolean isInCreateMode() { + return this.innerModel().id() == null; + } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsClientImpl.java index eaae3b3072c23..345bc9593f835 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsClientImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsClientImpl.java @@ -12,6 +12,7 @@ import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; @@ -33,7 +34,10 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient; import com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; import com.azure.resourcemanager.cognitiveservices.models.DeploymentListResult; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentSkuListResult; +import com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -99,6 +103,17 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo @BodyParam("application/json") DeploymentInner deployment, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("deploymentName") String deploymentName, + @BodyParam("application/json") PatchResourceTagsAndSku deployment, @HeaderParam("Accept") String accept, + Context context); + @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}") @ExpectedResponses({ 200, 202, 204 }) @@ -108,12 +123,29 @@ Mono>> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("deploymentName") String deploymentName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}/skus") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listSkus(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("deploymentName") String deploymentName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listSkusNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -644,6 +676,255 @@ public DeploymentInner createOrUpdate(String resourceGroupName, String accountNa return createOrUpdateAsync(resourceGroupName, accountName, deploymentName, deployment, context).block(); } + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String deploymentName, PatchResourceTagsAndSku deployment) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (deploymentName == null) { + return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null.")); + } + if (deployment == null) { + return Mono.error(new IllegalArgumentException("Parameter deployment is required and cannot be null.")); + } else { + deployment.validate(); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), deploymentName, deployment, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String deploymentName, PatchResourceTagsAndSku deployment, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (deploymentName == null) { + return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null.")); + } + if (deployment == null) { + return Mono.error(new IllegalArgumentException("Parameter deployment is required and cannot be null.")); + } else { + deployment.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), deploymentName, deployment, accept, context); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, DeploymentInner> beginUpdateAsync(String resourceGroupName, + String accountName, String deploymentName, PatchResourceTagsAndSku deployment) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, deploymentName, deployment); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DeploymentInner.class, DeploymentInner.class, this.client.getContext()); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, DeploymentInner> beginUpdateAsync(String resourceGroupName, + String accountName, String deploymentName, PatchResourceTagsAndSku deployment, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, deploymentName, deployment, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DeploymentInner.class, DeploymentInner.class, context); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DeploymentInner> beginUpdate(String resourceGroupName, + String accountName, String deploymentName, PatchResourceTagsAndSku deployment) { + return this.beginUpdateAsync(resourceGroupName, accountName, deploymentName, deployment).getSyncPoller(); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DeploymentInner> beginUpdate(String resourceGroupName, + String accountName, String deploymentName, PatchResourceTagsAndSku deployment, Context context) { + return this.beginUpdateAsync(resourceGroupName, accountName, deploymentName, deployment, context) + .getSyncPoller(); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String deploymentName, + PatchResourceTagsAndSku deployment) { + return beginUpdateAsync(resourceGroupName, accountName, deploymentName, deployment).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String deploymentName, + PatchResourceTagsAndSku deployment, Context context) { + return beginUpdateAsync(resourceGroupName, accountName, deploymentName, deployment, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceTagsAndSku deployment) { + return updateAsync(resourceGroupName, accountName, deploymentName, deployment).block(); + } + + /** + * Update specified deployments associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param deployment The deployment properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services account deployment. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceTagsAndSku deployment, Context context) { + return updateAsync(resourceGroupName, accountName, deploymentName, deployment, context).block(); + } + /** * Deletes the specified deployment associated with the Cognitive Services account. * @@ -865,6 +1146,165 @@ public void delete(String resourceGroupName, String accountName, String deployme deleteAsync(resourceGroupName, accountName, deploymentName, context).block(); } + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSkusSinglePageAsync(String resourceGroupName, String accountName, + String deploymentName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (deploymentName == null) { + return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listSkus(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), deploymentName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSkusSinglePageAsync(String resourceGroupName, String accountName, + String deploymentName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (deploymentName == null) { + return Mono.error(new IllegalArgumentException("Parameter deploymentName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listSkus(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), deploymentName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listSkusAsync(String resourceGroupName, String accountName, + String deploymentName) { + return new PagedFlux<>(() -> listSkusSinglePageAsync(resourceGroupName, accountName, deploymentName), + nextLink -> listSkusNextSinglePageAsync(nextLink)); + } + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listSkusAsync(String resourceGroupName, String accountName, + String deploymentName, Context context) { + return new PagedFlux<>(() -> listSkusSinglePageAsync(resourceGroupName, accountName, deploymentName, context), + nextLink -> listSkusNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSkus(String resourceGroupName, String accountName, + String deploymentName) { + return new PagedIterable<>(listSkusAsync(resourceGroupName, accountName, deploymentName)); + } + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName, + Context context) { + return new PagedIterable<>(listSkusAsync(resourceGroupName, accountName, deploymentName, context)); + } + /** * Get the next page of items. * @@ -917,4 +1357,58 @@ private Mono> listNextSinglePageAsync(String next .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSkusNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listSkusNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSkusNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listSkusNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsImpl.java index 98dc8fe63a3d2..833e31a44a505 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsImpl.java @@ -11,8 +11,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient; import com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; import com.azure.resourcemanager.cognitiveservices.models.Deployment; import com.azure.resourcemanager.cognitiveservices.models.Deployments; +import com.azure.resourcemanager.cognitiveservices.models.SkuResource; public final class DeploymentsImpl implements Deployments { private static final ClientLogger LOGGER = new ClientLogger(DeploymentsImpl.class); @@ -66,6 +68,19 @@ public void delete(String resourceGroupName, String accountName, String deployme this.serviceClient().delete(resourceGroupName, accountName, deploymentName, context); } + public PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName) { + PagedIterable inner + = this.serviceClient().listSkus(resourceGroupName, accountName, deploymentName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SkuResourceImpl(inner1, this.manager())); + } + + public PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName, + Context context) { + PagedIterable inner + = this.serviceClient().listSkus(resourceGroupName, accountName, deploymentName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SkuResourceImpl(inner1, this.manager())); + } + public Deployment getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopeImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopeImpl.java new file mode 100644 index 0000000000000..058db3d06b0c5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopeImpl.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScope; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties; +import java.util.Collections; +import java.util.Map; + +public final class EncryptionScopeImpl implements EncryptionScope, EncryptionScope.Definition, EncryptionScope.Update { + private EncryptionScopeInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public EncryptionScopeProperties properties() { + return this.innerModel().properties(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public EncryptionScopeInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String encryptionScopeName; + + public EncryptionScopeImpl withExistingAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public EncryptionScope create() { + this.innerObject = serviceManager.serviceClient() + .getEncryptionScopes() + .createOrUpdateWithResponse(resourceGroupName, accountName, encryptionScopeName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public EncryptionScope create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEncryptionScopes() + .createOrUpdateWithResponse(resourceGroupName, accountName, encryptionScopeName, this.innerModel(), context) + .getValue(); + return this; + } + + EncryptionScopeImpl(String name, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new EncryptionScopeInner(); + this.serviceManager = serviceManager; + this.encryptionScopeName = name; + } + + public EncryptionScopeImpl update() { + return this; + } + + public EncryptionScope apply() { + this.innerObject = serviceManager.serviceClient() + .getEncryptionScopes() + .createOrUpdateWithResponse(resourceGroupName, accountName, encryptionScopeName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public EncryptionScope apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEncryptionScopes() + .createOrUpdateWithResponse(resourceGroupName, accountName, encryptionScopeName, this.innerModel(), context) + .getValue(); + return this; + } + + EncryptionScopeImpl(EncryptionScopeInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); + this.encryptionScopeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "encryptionScopes"); + } + + public EncryptionScope refresh() { + this.innerObject = serviceManager.serviceClient() + .getEncryptionScopes() + .getWithResponse(resourceGroupName, accountName, encryptionScopeName, Context.NONE) + .getValue(); + return this; + } + + public EncryptionScope refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getEncryptionScopes() + .getWithResponse(resourceGroupName, accountName, encryptionScopeName, context) + .getValue(); + return this; + } + + public EncryptionScopeImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public EncryptionScopeImpl withProperties(EncryptionScopeProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesClientImpl.java new file mode 100644 index 0000000000000..41efdbc41cdac --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesClientImpl.java @@ -0,0 +1,832 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in EncryptionScopesClient. + */ +public final class EncryptionScopesClientImpl implements EncryptionScopesClient { + /** + * The proxy service used to perform REST calls. + */ + private final EncryptionScopesService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of EncryptionScopesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + EncryptionScopesClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(EncryptionScopesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientEncryptionScopes to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface EncryptionScopesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("encryptionScopeName") String encryptionScopeName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("encryptionScopeName") String encryptionScopeName, + @BodyParam("application/json") EncryptionScopeInner encryptionScope, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("encryptionScopeName") String encryptionScopeName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account along with {@link Response} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String encryptionScopeName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (encryptionScopeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScopeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), encryptionScopeName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account along with {@link Response} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String encryptionScopeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (encryptionScopeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScopeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), encryptionScopeName, accept, context); + } + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, + String encryptionScopeName) { + return getWithResponseAsync(resourceGroupName, accountName, encryptionScopeName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, + String encryptionScopeName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, context).block(); + } + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EncryptionScopeInner get(String resourceGroupName, String accountName, String encryptionScopeName) { + return getWithResponse(resourceGroupName, accountName, encryptionScopeName, Context.NONE).getValue(); + } + + /** + * Update the state of specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param encryptionScope The encryptionScope properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services EncryptionScope along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String encryptionScopeName, EncryptionScopeInner encryptionScope) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (encryptionScopeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScopeName is required and cannot be null.")); + } + if (encryptionScope == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScope is required and cannot be null.")); + } else { + encryptionScope.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), encryptionScopeName, encryptionScope, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update the state of specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param encryptionScope The encryptionScope properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services EncryptionScope along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String encryptionScopeName, EncryptionScopeInner encryptionScope, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (encryptionScopeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScopeName is required and cannot be null.")); + } + if (encryptionScope == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScope is required and cannot be null.")); + } else { + encryptionScope.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), encryptionScopeName, encryptionScope, accept, + context); + } + + /** + * Update the state of specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param encryptionScope The encryptionScope properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services EncryptionScope on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + String encryptionScopeName, EncryptionScopeInner encryptionScope) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Update the state of specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param encryptionScope The encryptionScope properties. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services EncryptionScope along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String encryptionScopeName, EncryptionScopeInner encryptionScope, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, encryptionScope, + context).block(); + } + + /** + * Update the state of specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param encryptionScope The encryptionScope properties. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services EncryptionScope. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EncryptionScopeInner createOrUpdate(String resourceGroupName, String accountName, String encryptionScopeName, + EncryptionScopeInner encryptionScope) { + return createOrUpdateWithResponse(resourceGroupName, accountName, encryptionScopeName, encryptionScope, + Context.NONE).getValue(); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String encryptionScopeName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (encryptionScopeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScopeName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), encryptionScopeName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String encryptionScopeName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (encryptionScopeName == null) { + return Mono + .error(new IllegalArgumentException("Parameter encryptionScopeName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), encryptionScopeName, accept, context); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String encryptionScopeName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, encryptionScopeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String encryptionScopeName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, encryptionScopeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String encryptionScopeName) { + return this.beginDeleteAsync(resourceGroupName, accountName, encryptionScopeName).getSyncPoller(); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String encryptionScopeName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, encryptionScopeName, context).getSyncPoller(); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String encryptionScopeName) { + return beginDeleteAsync(resourceGroupName, accountName, encryptionScopeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String encryptionScopeName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, encryptionScopeName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String encryptionScopeName) { + deleteAsync(resourceGroupName, accountName, encryptionScopeName).block(); + } + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String encryptionScopeName, Context context) { + deleteAsync(resourceGroupName, accountName, encryptionScopeName, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services EncryptionScopes along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services EncryptionScopes along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesImpl.java new file mode 100644 index 0000000000000..729f902487af8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesImpl.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScope; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopes; + +public final class EncryptionScopesImpl implements EncryptionScopes { + private static final ClientLogger LOGGER = new ClientLogger(EncryptionScopesImpl.class); + + private final EncryptionScopesClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public EncryptionScopesImpl(EncryptionScopesClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EncryptionScopeImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EncryptionScopeImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, + String encryptionScopeName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, encryptionScopeName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new EncryptionScopeImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public EncryptionScope get(String resourceGroupName, String accountName, String encryptionScopeName) { + EncryptionScopeInner inner = this.serviceClient().get(resourceGroupName, accountName, encryptionScopeName); + if (inner != null) { + return new EncryptionScopeImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String encryptionScopeName) { + this.serviceClient().delete(resourceGroupName, accountName, encryptionScopeName); + } + + public void delete(String resourceGroupName, String accountName, String encryptionScopeName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, encryptionScopeName, context); + } + + public EncryptionScope getById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String encryptionScopeName = ResourceManagerUtils.getValueFromIdByName(id, "encryptionScopes"); + if (encryptionScopeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'encryptionScopes'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, encryptionScopeName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String encryptionScopeName = ResourceManagerUtils.getValueFromIdByName(id, "encryptionScopes"); + if (encryptionScopeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'encryptionScopes'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, encryptionScopeName, context); + } + + public void deleteById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String encryptionScopeName = ResourceManagerUtils.getValueFromIdByName(id, "encryptionScopes"); + if (encryptionScopeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'encryptionScopes'.", id))); + } + this.delete(resourceGroupName, accountName, encryptionScopeName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String encryptionScopeName = ResourceManagerUtils.getValueFromIdByName(id, "encryptionScopes"); + if (encryptionScopeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'encryptionScopes'.", id))); + } + this.delete(resourceGroupName, accountName, encryptionScopeName, context); + } + + private EncryptionScopesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public EncryptionScopeImpl define(String name) { + return new EncryptionScopeImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesClientImpl.java new file mode 100644 index 0000000000000..b516eb443218b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesClientImpl.java @@ -0,0 +1,305 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in LocationBasedModelCapacitiesClient. + */ +public final class LocationBasedModelCapacitiesClientImpl implements LocationBasedModelCapacitiesClient { + /** + * The proxy service used to perform REST calls. + */ + private final LocationBasedModelCapacitiesService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of LocationBasedModelCapacitiesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + LocationBasedModelCapacitiesClientImpl(CognitiveServicesManagementClientImpl client) { + this.service = RestProxy.create(LocationBasedModelCapacitiesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientLocationBasedModelCapacities to be + * used by the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface LocationBasedModelCapacitiesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/modelCapacities") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @PathParam("location") String location, @QueryParam("modelFormat") String modelFormat, + @QueryParam("modelName") String modelName, @QueryParam("modelVersion") String modelVersion, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location, + String modelFormat, String modelName, String modelVersion) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (modelFormat == null) { + return Mono.error(new IllegalArgumentException("Parameter modelFormat is required and cannot be null.")); + } + if (modelName == null) { + return Mono.error(new IllegalArgumentException("Parameter modelName is required and cannot be null.")); + } + if (modelVersion == null) { + return Mono.error(new IllegalArgumentException("Parameter modelVersion is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + this.client.getApiVersion(), location, modelFormat, modelName, modelVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location, + String modelFormat, String modelName, String modelVersion, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (modelFormat == null) { + return Mono.error(new IllegalArgumentException("Parameter modelFormat is required and cannot be null.")); + } + if (modelName == null) { + return Mono.error(new IllegalArgumentException("Parameter modelName is required and cannot be null.")); + } + if (modelVersion == null) { + return Mono.error(new IllegalArgumentException("Parameter modelVersion is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), location, + modelFormat, modelName, modelVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location, String modelFormat, + String modelName, String modelVersion) { + return new PagedFlux<>(() -> listSinglePageAsync(location, modelFormat, modelName, modelVersion), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location, String modelFormat, + String modelName, String modelVersion, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(location, modelFormat, modelName, modelVersion, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, String modelFormat, + String modelName, String modelVersion) { + return new PagedIterable<>(listAsync(location, modelFormat, modelName, modelVersion)); + } + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, String modelFormat, + String modelName, String modelVersion, Context context) { + return new PagedIterable<>(listAsync(location, modelFormat, modelName, modelVersion, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.java new file mode 100644 index 0000000000000..5711184721e88 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; +import com.azure.resourcemanager.cognitiveservices.models.LocationBasedModelCapacities; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResultValueItem; + +public final class LocationBasedModelCapacitiesImpl implements LocationBasedModelCapacities { + private static final ClientLogger LOGGER = new ClientLogger(LocationBasedModelCapacitiesImpl.class); + + private final LocationBasedModelCapacitiesClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public LocationBasedModelCapacitiesImpl(LocationBasedModelCapacitiesClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String location, String modelFormat, String modelName, + String modelVersion) { + PagedIterable inner + = this.serviceClient().list(location, modelFormat, modelName, modelVersion); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ModelCapacityListResultValueItemImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, String modelFormat, String modelName, + String modelVersion, Context context) { + PagedIterable inner + = this.serviceClient().list(location, modelFormat, modelName, modelVersion, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ModelCapacityListResultValueItemImpl(inner1, this.manager())); + } + + private LocationBasedModelCapacitiesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesClientImpl.java new file mode 100644 index 0000000000000..754da2da1fb6f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesClientImpl.java @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ModelCapacitiesClient. + */ +public final class ModelCapacitiesClientImpl implements ModelCapacitiesClient { + /** + * The proxy service used to perform REST calls. + */ + private final ModelCapacitiesService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of ModelCapacitiesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ModelCapacitiesClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(ModelCapacitiesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientModelCapacities to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface ModelCapacitiesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/modelCapacities") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam("modelFormat") String modelFormat, @QueryParam("modelName") String modelName, + @QueryParam("modelVersion") String modelVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String modelFormat, + String modelName, String modelVersion) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (modelFormat == null) { + return Mono.error(new IllegalArgumentException("Parameter modelFormat is required and cannot be null.")); + } + if (modelName == null) { + return Mono.error(new IllegalArgumentException("Parameter modelName is required and cannot be null.")); + } + if (modelVersion == null) { + return Mono.error(new IllegalArgumentException("Parameter modelVersion is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + this.client.getApiVersion(), modelFormat, modelName, modelVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String modelFormat, + String modelName, String modelVersion, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (modelFormat == null) { + return Mono.error(new IllegalArgumentException("Parameter modelFormat is required and cannot be null.")); + } + if (modelName == null) { + return Mono.error(new IllegalArgumentException("Parameter modelName is required and cannot be null.")); + } + if (modelVersion == null) { + return Mono.error(new IllegalArgumentException("Parameter modelVersion is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), modelFormat, + modelName, modelVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String modelFormat, String modelName, + String modelVersion) { + return new PagedFlux<>(() -> listSinglePageAsync(modelFormat, modelName, modelVersion), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String modelFormat, String modelName, + String modelVersion, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(modelFormat, modelName, modelVersion, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String modelFormat, String modelName, + String modelVersion) { + return new PagedIterable<>(listAsync(modelFormat, modelName, modelVersion)); + } + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String modelFormat, String modelName, + String modelVersion, Context context) { + return new PagedIterable<>(listAsync(modelFormat, modelName, modelVersion, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesImpl.java new file mode 100644 index 0000000000000..3d84e77f8da52 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesImpl.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacities; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResultValueItem; + +public final class ModelCapacitiesImpl implements ModelCapacities { + private static final ClientLogger LOGGER = new ClientLogger(ModelCapacitiesImpl.class); + + private final ModelCapacitiesClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public ModelCapacitiesImpl(ModelCapacitiesClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String modelFormat, String modelName, + String modelVersion) { + PagedIterable inner + = this.serviceClient().list(modelFormat, modelName, modelVersion); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ModelCapacityListResultValueItemImpl(inner1, this.manager())); + } + + public PagedIterable list(String modelFormat, String modelName, + String modelVersion, Context context) { + PagedIterable inner + = this.serviceClient().list(modelFormat, modelName, modelVersion, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ModelCapacityListResultValueItemImpl(inner1, this.manager())); + } + + private ModelCapacitiesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacityListResultValueItemImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacityListResultValueItemImpl.java new file mode 100644 index 0000000000000..89731ae04ac4f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacityListResultValueItemImpl.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResultValueItem; +import com.azure.resourcemanager.cognitiveservices.models.ModelSkuCapacityProperties; + +public final class ModelCapacityListResultValueItemImpl implements ModelCapacityListResultValueItem { + private ModelCapacityListResultValueItemInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + ModelCapacityListResultValueItemImpl(ModelCapacityListResultValueItemInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public ModelSkuCapacityProperties properties() { + return this.innerModel().properties(); + } + + public ModelCapacityListResultValueItemInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelImpl.java index 5aba879eb7688..99191a38ca180 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelImpl.java @@ -37,6 +37,10 @@ public String skuName() { return this.innerModel().skuName(); } + public String description() { + return this.innerModel().description(); + } + public ModelInner innerModel() { return this.innerObject; } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationImpl.java new file mode 100644 index 0000000000000..e583776a2cc35 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationImpl.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfiguration; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties; + +public final class NetworkSecurityPerimeterConfigurationImpl implements NetworkSecurityPerimeterConfiguration { + private NetworkSecurityPerimeterConfigurationInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + NetworkSecurityPerimeterConfigurationImpl(NetworkSecurityPerimeterConfigurationInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public NetworkSecurityPerimeterConfigurationProperties properties() { + return this.innerModel().properties(); + } + + public NetworkSecurityPerimeterConfigurationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java new file mode 100644 index 0000000000000..5c0c3c3107e89 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java @@ -0,0 +1,687 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationList; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * NetworkSecurityPerimeterConfigurationsClient. + */ +public final class NetworkSecurityPerimeterConfigurationsClientImpl + implements NetworkSecurityPerimeterConfigurationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final NetworkSecurityPerimeterConfigurationsService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of NetworkSecurityPerimeterConfigurationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + NetworkSecurityPerimeterConfigurationsClientImpl(CognitiveServicesManagementClientImpl client) { + this.service = RestProxy.create(NetworkSecurityPerimeterConfigurationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * CognitiveServicesManagementClientNetworkSecurityPerimeterConfigurations to be used by the proxy service to + * perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface NetworkSecurityPerimeterConfigurationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/networkSecurityPerimeterConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/networkSecurityPerimeterConfigurations/{nspConfigurationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("nspConfigurationName") String nspConfigurationName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/networkSecurityPerimeterConfigurations/{nspConfigurationName}/reconcile") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> reconcile(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("nspConfigurationName") String nspConfigurationName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listSinglePageAsync(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .>map( + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listSinglePageAsync(String resourceGroupName, String accountName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, + String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, + String accountName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, + String accountName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName)); + } + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String accountName, String nspConfigurationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (nspConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter nspConfigurationName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), nspConfigurationName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String accountName, String nspConfigurationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (nspConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter nspConfigurationName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), nspConfigurationName, accept, context); + } + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, + String nspConfigurationName) { + return getWithResponseAsync(resourceGroupName, accountName, nspConfigurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String accountName, String nspConfigurationName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, nspConfigurationName, context).block(); + } + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName, String accountName, + String nspConfigurationName) { + return getWithResponse(resourceGroupName, accountName, nspConfigurationName, Context.NONE).getValue(); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> reconcileWithResponseAsync(String resourceGroupName, String accountName, + String nspConfigurationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (nspConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter nspConfigurationName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.reconcile(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), nspConfigurationName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> reconcileWithResponseAsync(String resourceGroupName, String accountName, + String nspConfigurationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (nspConfigurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter nspConfigurationName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.reconcile(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), nspConfigurationName, accept, context); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private + PollerFlux, NetworkSecurityPerimeterConfigurationInner> + beginReconcileAsync(String resourceGroupName, String accountName, String nspConfigurationName) { + Mono>> mono + = reconcileWithResponseAsync(resourceGroupName, accountName, nspConfigurationName); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), NetworkSecurityPerimeterConfigurationInner.class, + NetworkSecurityPerimeterConfigurationInner.class, this.client.getContext()); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private + PollerFlux, NetworkSecurityPerimeterConfigurationInner> + beginReconcileAsync(String resourceGroupName, String accountName, String nspConfigurationName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = reconcileWithResponseAsync(resourceGroupName, accountName, nspConfigurationName, context); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), NetworkSecurityPerimeterConfigurationInner.class, + NetworkSecurityPerimeterConfigurationInner.class, context); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, NetworkSecurityPerimeterConfigurationInner> + beginReconcile(String resourceGroupName, String accountName, String nspConfigurationName) { + return this.beginReconcileAsync(resourceGroupName, accountName, nspConfigurationName).getSyncPoller(); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, NetworkSecurityPerimeterConfigurationInner> + beginReconcile(String resourceGroupName, String accountName, String nspConfigurationName, Context context) { + return this.beginReconcileAsync(resourceGroupName, accountName, nspConfigurationName, context).getSyncPoller(); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono reconcileAsync(String resourceGroupName, + String accountName, String nspConfigurationName) { + return beginReconcileAsync(resourceGroupName, accountName, nspConfigurationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono reconcileAsync(String resourceGroupName, + String accountName, String nspConfigurationName, Context context) { + return beginReconcileAsync(resourceGroupName, accountName, nspConfigurationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName, String accountName, + String nspConfigurationName) { + return reconcileAsync(resourceGroupName, accountName, nspConfigurationName).block(); + } + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName, String accountName, + String nspConfigurationName, Context context) { + return reconcileAsync(resourceGroupName, accountName, nspConfigurationName, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an Cognitive Services account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map( + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an Cognitive Services account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsImpl.java new file mode 100644 index 0000000000000..da69ed25eb7f9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsImpl.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfiguration; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurations; + +public final class NetworkSecurityPerimeterConfigurationsImpl implements NetworkSecurityPerimeterConfigurations { + private static final ClientLogger LOGGER = new ClientLogger(NetworkSecurityPerimeterConfigurationsImpl.class); + + private final NetworkSecurityPerimeterConfigurationsClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public NetworkSecurityPerimeterConfigurationsImpl(NetworkSecurityPerimeterConfigurationsClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, + String nspConfigurationName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, nspConfigurationName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new NetworkSecurityPerimeterConfigurationImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public NetworkSecurityPerimeterConfiguration get(String resourceGroupName, String accountName, + String nspConfigurationName) { + NetworkSecurityPerimeterConfigurationInner inner + = this.serviceClient().get(resourceGroupName, accountName, nspConfigurationName); + if (inner != null) { + return new NetworkSecurityPerimeterConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + + public NetworkSecurityPerimeterConfiguration reconcile(String resourceGroupName, String accountName, + String nspConfigurationName) { + NetworkSecurityPerimeterConfigurationInner inner + = this.serviceClient().reconcile(resourceGroupName, accountName, nspConfigurationName); + if (inner != null) { + return new NetworkSecurityPerimeterConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + + public NetworkSecurityPerimeterConfiguration reconcile(String resourceGroupName, String accountName, + String nspConfigurationName, Context context) { + NetworkSecurityPerimeterConfigurationInner inner + = this.serviceClient().reconcile(resourceGroupName, accountName, nspConfigurationName, context); + if (inner != null) { + return new NetworkSecurityPerimeterConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + + private NetworkSecurityPerimeterConfigurationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistImpl.java new file mode 100644 index 0000000000000..be11d134b9171 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistImpl.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklist; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; +import java.util.Collections; +import java.util.Map; + +public final class RaiBlocklistImpl implements RaiBlocklist, RaiBlocklist.Definition, RaiBlocklist.Update { + private RaiBlocklistInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public RaiBlocklistProperties properties() { + return this.innerModel().properties(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public RaiBlocklistInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String raiBlocklistName; + + public RaiBlocklistImpl withExistingAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public RaiBlocklist create() { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklists() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public RaiBlocklist create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklists() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, this.innerModel(), context) + .getValue(); + return this; + } + + RaiBlocklistImpl(String name, com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new RaiBlocklistInner(); + this.serviceManager = serviceManager; + this.raiBlocklistName = name; + } + + public RaiBlocklistImpl update() { + return this; + } + + public RaiBlocklist apply() { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklists() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, this.innerModel(), + Context.NONE) + .getValue(); + return this; + } + + public RaiBlocklist apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklists() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, this.innerModel(), context) + .getValue(); + return this; + } + + RaiBlocklistImpl(RaiBlocklistInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); + this.raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "raiBlocklists"); + } + + public RaiBlocklist refresh() { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklists() + .getWithResponse(resourceGroupName, accountName, raiBlocklistName, Context.NONE) + .getValue(); + return this; + } + + public RaiBlocklist refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklists() + .getWithResponse(resourceGroupName, accountName, raiBlocklistName, context) + .getValue(); + return this; + } + + public RaiBlocklistImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public RaiBlocklistImpl withProperties(RaiBlocklistProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemImpl.java new file mode 100644 index 0000000000000..0420d165b6268 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemImpl.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItem; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.util.Collections; +import java.util.Map; + +public final class RaiBlocklistItemImpl + implements RaiBlocklistItem, RaiBlocklistItem.Definition, RaiBlocklistItem.Update { + private RaiBlocklistItemInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public RaiBlocklistItemProperties properties() { + return this.innerModel().properties(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public RaiBlocklistItemInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String raiBlocklistName; + + private String raiBlocklistItemName; + + public RaiBlocklistItemImpl withExistingRaiBlocklist(String resourceGroupName, String accountName, + String raiBlocklistName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.raiBlocklistName = raiBlocklistName; + return this; + } + + public RaiBlocklistItem create() { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklistItems() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, + this.innerModel(), Context.NONE) + .getValue(); + return this; + } + + public RaiBlocklistItem create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklistItems() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, + this.innerModel(), context) + .getValue(); + return this; + } + + RaiBlocklistItemImpl(String name, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new RaiBlocklistItemInner(); + this.serviceManager = serviceManager; + this.raiBlocklistItemName = name; + } + + public RaiBlocklistItemImpl update() { + return this; + } + + public RaiBlocklistItem apply() { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklistItems() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, + this.innerModel(), Context.NONE) + .getValue(); + return this; + } + + public RaiBlocklistItem apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklistItems() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, + this.innerModel(), context) + .getValue(); + return this; + } + + RaiBlocklistItemImpl(RaiBlocklistItemInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); + this.raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "raiBlocklists"); + this.raiBlocklistItemName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "raiBlocklistItems"); + } + + public RaiBlocklistItem refresh() { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklistItems() + .getWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, Context.NONE) + .getValue(); + return this; + } + + public RaiBlocklistItem refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiBlocklistItems() + .getWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context) + .getValue(); + return this; + } + + public RaiBlocklistItemImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public RaiBlocklistItemImpl withProperties(RaiBlocklistItemProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsClientImpl.java new file mode 100644 index 0000000000000..7e7269842682b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsClientImpl.java @@ -0,0 +1,1236 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlockListItemsResult; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest; +import java.nio.ByteBuffer; +import java.util.List; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in RaiBlocklistItemsClient. + */ +public final class RaiBlocklistItemsClientImpl implements RaiBlocklistItemsClient { + /** + * The proxy service used to perform REST calls. + */ + private final RaiBlocklistItemsService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of RaiBlocklistItemsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RaiBlocklistItemsClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(RaiBlocklistItemsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientRaiBlocklistItems to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface RaiBlocklistItemsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, + @PathParam("raiBlocklistItemName") String raiBlocklistItemName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, + @PathParam("raiBlocklistItemName") String raiBlocklistItemName, + @BodyParam("application/json") RaiBlocklistItemInner raiBlocklistItem, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, + @PathParam("raiBlocklistItemName") String raiBlocklistItemName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/addRaiBlocklistItems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> batchAdd(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, + @BodyParam("application/json") List raiBlocklistItems, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/deleteRaiBlocklistItems") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> batchDelete(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, + @BodyParam("application/json") Object raiBlocklistItemsNames, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String raiBlocklistName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiBlocklistName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, + String raiBlocklistName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, raiBlocklistName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, raiBlocklistName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, + String raiBlocklistName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, raiBlocklistName)); + } + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, raiBlocklistName, context)); + } + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItemName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemName, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItemName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemName, accept, context); + } + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName) { + return getWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context) + .block(); + } + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiBlocklistItemInner get(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName) { + return getWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, Context.NONE) + .getValue(); + } + + /** + * Update the state of specified blocklist item associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param raiBlocklistItem Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist Item along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String raiBlocklistName, String raiBlocklistItemName, + RaiBlocklistItemInner raiBlocklistItem) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItemName is required and cannot be null.")); + } + if (raiBlocklistItem == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItem is required and cannot be null.")); + } else { + raiBlocklistItem.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemName, + raiBlocklistItem, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update the state of specified blocklist item associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param raiBlocklistItem Properties describing the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist Item along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String raiBlocklistName, String raiBlocklistItemName, + RaiBlocklistItemInner raiBlocklistItem, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItemName is required and cannot be null.")); + } + if (raiBlocklistItem == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItem is required and cannot be null.")); + } else { + raiBlocklistItem.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemName, + raiBlocklistItem, accept, context); + } + + /** + * Update the state of specified blocklist item associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param raiBlocklistItem Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist Item on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, RaiBlocklistItemInner raiBlocklistItem) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, + raiBlocklistItem).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Update the state of specified blocklist item associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param raiBlocklistItem Properties describing the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist Item along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, RaiBlocklistItemInner raiBlocklistItem, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, + raiBlocklistItem, context).block(); + } + + /** + * Update the state of specified blocklist item associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param raiBlocklistItem Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist Item. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiBlocklistItemInner createOrUpdate(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName, RaiBlocklistItemInner raiBlocklistItem) { + return createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, + raiBlocklistItem, Context.NONE).getValue(); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItemName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemName, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItemName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemName, accept, context); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName) { + return this.beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName) + .getSyncPoller(); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context) + .getSyncPoller(); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName) { + return beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName) { + deleteAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName).block(); + } + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName, Context context) { + deleteAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context).block(); + } + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> batchAddWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, List raiBlocklistItems) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItems == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItems is required and cannot be null.")); + } else { + raiBlocklistItems.forEach(e -> e.validate()); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.batchAdd(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItems, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> batchAddWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, List raiBlocklistItems, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItems == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistItems is required and cannot be null.")); + } else { + raiBlocklistItems.forEach(e -> e.validate()); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.batchAdd(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItems, accept, context); + } + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono batchAddAsync(String resourceGroupName, String accountName, String raiBlocklistName, + List raiBlocklistItems) { + return batchAddWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response batchAddWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, List raiBlocklistItems, Context context) { + return batchAddWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems, context) + .block(); + } + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiBlocklistInner batchAdd(String resourceGroupName, String accountName, String raiBlocklistName, + List raiBlocklistItems) { + return batchAddWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems, Context.NONE) + .getValue(); + } + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> batchDeleteWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, Object raiBlocklistItemsNames) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemsNames == null) { + return Mono.error( + new IllegalArgumentException("Parameter raiBlocklistItemsNames is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.batchDelete(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemsNames, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> batchDeleteWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, Object raiBlocklistItemsNames, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklistItemsNames == null) { + return Mono.error( + new IllegalArgumentException("Parameter raiBlocklistItemsNames is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.batchDelete(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklistItemsNames, + accept, context); + } + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono batchDeleteAsync(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames) { + return batchDeleteWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames) + .flatMap(ignored -> Mono.empty()); + } + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response batchDeleteWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames, Context context) { + return batchDeleteWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames, + context).block(); + } + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void batchDelete(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames) { + batchDeleteWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames, Context.NONE); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services RAI Blocklist Items along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services RAI Blocklist Items along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsImpl.java new file mode 100644 index 0000000000000..b075323336c4e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsImpl.java @@ -0,0 +1,223 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklist; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItem; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItems; +import java.util.List; + +public final class RaiBlocklistItemsImpl implements RaiBlocklistItems { + private static final ClientLogger LOGGER = new ClientLogger(RaiBlocklistItemsImpl.class); + + private final RaiBlocklistItemsClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public RaiBlocklistItemsImpl(RaiBlocklistItemsClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, raiBlocklistName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiBlocklistItemImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, raiBlocklistName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiBlocklistItemImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, String raiBlocklistItemName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RaiBlocklistItemImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public RaiBlocklistItem get(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName) { + RaiBlocklistItemInner inner + = this.serviceClient().get(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName); + if (inner != null) { + return new RaiBlocklistItemImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName) { + this.serviceClient().delete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName); + } + + public void delete(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context); + } + + public Response batchAddWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, List raiBlocklistItems, Context context) { + Response inner = this.serviceClient() + .batchAddWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RaiBlocklistImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public RaiBlocklist batchAdd(String resourceGroupName, String accountName, String raiBlocklistName, + List raiBlocklistItems) { + RaiBlocklistInner inner + = this.serviceClient().batchAdd(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems); + if (inner != null) { + return new RaiBlocklistImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response batchDeleteWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames, Context context) { + return this.serviceClient() + .batchDeleteWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames, context); + } + + public void batchDelete(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames) { + this.serviceClient().batchDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames); + } + + public RaiBlocklistItem getById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + String raiBlocklistItemName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklistItems"); + if (raiBlocklistItemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklistItems'.", id))); + } + return this + .getWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + String raiBlocklistItemName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklistItems"); + if (raiBlocklistItemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklistItems'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context); + } + + public void deleteById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + String raiBlocklistItemName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklistItems"); + if (raiBlocklistItemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklistItems'.", id))); + } + this.delete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + String raiBlocklistItemName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklistItems"); + if (raiBlocklistItemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklistItems'.", id))); + } + this.delete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, context); + } + + private RaiBlocklistItemsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public RaiBlocklistItemImpl define(String name) { + return new RaiBlocklistItemImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsClientImpl.java new file mode 100644 index 0000000000000..f4bc747c5925a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsClientImpl.java @@ -0,0 +1,827 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlockListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in RaiBlocklistsClient. + */ +public final class RaiBlocklistsClientImpl implements RaiBlocklistsClient { + /** + * The proxy service used to perform REST calls. + */ + private final RaiBlocklistsService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of RaiBlocklistsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RaiBlocklistsClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(RaiBlocklistsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientRaiBlocklists to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface RaiBlocklistsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, + @BodyParam("application/json") RaiBlocklistInner raiBlocklist, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiBlocklistName") String raiBlocklistName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName)); + } + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiBlocklistName, accept, context); + } + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String raiBlocklistName) { + return getWithResponseAsync(resourceGroupName, accountName, raiBlocklistName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, context).block(); + } + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiBlocklistInner get(String resourceGroupName, String accountName, String raiBlocklistName) { + return getWithResponse(resourceGroupName, accountName, raiBlocklistName, Context.NONE).getValue(); + } + + /** + * Update the state of specified blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklist Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String raiBlocklistName, RaiBlocklistInner raiBlocklist) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklist == null) { + return Mono.error(new IllegalArgumentException("Parameter raiBlocklist is required and cannot be null.")); + } else { + raiBlocklist.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklist, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update the state of specified blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklist Properties describing the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String raiBlocklistName, RaiBlocklistInner raiBlocklist, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + if (raiBlocklist == null) { + return Mono.error(new IllegalArgumentException("Parameter raiBlocklist is required and cannot be null.")); + } else { + raiBlocklist.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, raiBlocklist, accept, + context); + } + + /** + * Update the state of specified blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklist Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + String raiBlocklistName, RaiBlocklistInner raiBlocklist) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklist) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Update the state of specified blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklist Properties describing the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String raiBlocklistName, RaiBlocklistInner raiBlocklist, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, raiBlocklist, context) + .block(); + } + + /** + * Update the state of specified blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklist Properties describing the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiBlocklistInner createOrUpdate(String resourceGroupName, String accountName, String raiBlocklistName, + RaiBlocklistInner raiBlocklist) { + return createOrUpdateWithResponse(resourceGroupName, accountName, raiBlocklistName, raiBlocklist, Context.NONE) + .getValue(); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiBlocklistName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiBlocklistName == null) { + return Mono + .error(new IllegalArgumentException("Parameter raiBlocklistName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiBlocklistName, accept, context); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String raiBlocklistName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, raiBlocklistName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, raiBlocklistName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName) { + return this.beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName).getSyncPoller(); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiBlocklistName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName, context).getSyncPoller(); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String raiBlocklistName) { + return beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String raiBlocklistName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, raiBlocklistName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String raiBlocklistName) { + deleteAsync(resourceGroupName, accountName, raiBlocklistName).block(); + } + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String raiBlocklistName, Context context) { + deleteAsync(resourceGroupName, accountName, raiBlocklistName, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services RAI Blocklists along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services RAI Blocklists along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsImpl.java new file mode 100644 index 0000000000000..e6f6a77bdc974 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsImpl.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklist; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklists; + +public final class RaiBlocklistsImpl implements RaiBlocklists { + private static final ClientLogger LOGGER = new ClientLogger(RaiBlocklistsImpl.class); + + private final RaiBlocklistsClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public RaiBlocklistsImpl(RaiBlocklistsClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiBlocklistImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiBlocklistImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, raiBlocklistName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RaiBlocklistImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public RaiBlocklist get(String resourceGroupName, String accountName, String raiBlocklistName) { + RaiBlocklistInner inner = this.serviceClient().get(resourceGroupName, accountName, raiBlocklistName); + if (inner != null) { + return new RaiBlocklistImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String raiBlocklistName) { + this.serviceClient().delete(resourceGroupName, accountName, raiBlocklistName); + } + + public void delete(String resourceGroupName, String accountName, String raiBlocklistName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, raiBlocklistName, context); + } + + public RaiBlocklist getById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, raiBlocklistName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, raiBlocklistName, context); + } + + public void deleteById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + this.delete(resourceGroupName, accountName, raiBlocklistName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiBlocklistName = ResourceManagerUtils.getValueFromIdByName(id, "raiBlocklists"); + if (raiBlocklistName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiBlocklists'.", id))); + } + this.delete(resourceGroupName, accountName, raiBlocklistName, context); + } + + private RaiBlocklistsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public RaiBlocklistImpl define(String name) { + return new RaiBlocklistImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFilterImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFilterImpl.java new file mode 100644 index 0000000000000..5699b03f474dd --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFilterImpl.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties; + +public final class RaiContentFilterImpl implements RaiContentFilter { + private RaiContentFilterInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + RaiContentFilterImpl(RaiContentFilterInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public RaiContentFilterProperties properties() { + return this.innerModel().properties(); + } + + public RaiContentFilterInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersClientImpl.java new file mode 100644 index 0000000000000..7e786c1f97e99 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersClientImpl.java @@ -0,0 +1,376 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in RaiContentFiltersClient. + */ +public final class RaiContentFiltersClientImpl implements RaiContentFiltersClient { + /** + * The proxy service used to perform REST calls. + */ + private final RaiContentFiltersService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of RaiContentFiltersClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RaiContentFiltersClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(RaiContentFiltersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientRaiContentFilters to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface RaiContentFiltersService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/raiContentFilters") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/raiContentFilters/{filterName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @PathParam("location") String location, @PathParam("filterName") String filterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * List Content Filters types. + * + * @param location Resource location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + this.client.getApiVersion(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List Content Filters types. + * + * @param location Resource location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), location, + accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * List Content Filters types. + * + * @param location Resource location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location) { + return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List Content Filters types. + * + * @param location Resource location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(location, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * List Content Filters types. + * + * @param location Resource location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + return new PagedIterable<>(listAsync(location)); + } + + /** + * List Content Filters types. + * + * @param location Resource location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Context context) { + return new PagedIterable<>(listAsync(location, context)); + } + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String location, String filterName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (filterName == null) { + return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + this.client.getApiVersion(), location, filterName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String location, String filterName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (filterName == null) { + return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), + location, filterName, accept, context); + } + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String location, String filterName) { + return getWithResponseAsync(location, filterName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String location, String filterName, Context context) { + return getWithResponseAsync(location, filterName, context).block(); + } + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiContentFilterInner get(String location, String filterName) { + return getWithResponse(location, filterName, Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters along with {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersImpl.java new file mode 100644 index 0000000000000..0241c56daf66b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersImpl.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilters; + +public final class RaiContentFiltersImpl implements RaiContentFilters { + private static final ClientLogger LOGGER = new ClientLogger(RaiContentFiltersImpl.class); + + private final RaiContentFiltersClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public RaiContentFiltersImpl(RaiContentFiltersClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiContentFilterImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiContentFilterImpl(inner1, this.manager())); + } + + public Response getWithResponse(String location, String filterName, Context context) { + Response inner = this.serviceClient().getWithResponse(location, filterName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RaiContentFilterImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public RaiContentFilter get(String location, String filterName) { + RaiContentFilterInner inner = this.serviceClient().get(location, filterName); + if (inner != null) { + return new RaiContentFilterImpl(inner, this.manager()); + } else { + return null; + } + } + + private RaiContentFiltersClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesClientImpl.java new file mode 100644 index 0000000000000..723d819fd5897 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesClientImpl.java @@ -0,0 +1,816 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in RaiPoliciesClient. + */ +public final class RaiPoliciesClientImpl implements RaiPoliciesClient { + /** + * The proxy service used to perform REST calls. + */ + private final RaiPoliciesService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of RaiPoliciesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RaiPoliciesClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(RaiPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientRaiPolicies to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "CognitiveServicesMan") + public interface RaiPoliciesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiPolicyName") String raiPolicyName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiPolicyName") String raiPolicyName, @BodyParam("application/json") RaiPolicyInner raiPolicy, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiPolicies/{raiPolicyName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("raiPolicyName") String raiPolicyName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName)); + } + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, accountName, context)); + } + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String raiPolicyName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiPolicyName == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicyName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiPolicyName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String raiPolicyName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiPolicyName == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicyName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiPolicyName, accept, context); + } + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String raiPolicyName) { + return getWithResponseAsync(resourceGroupName, accountName, raiPolicyName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, String raiPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, raiPolicyName, context).block(); + } + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiPolicyInner get(String resourceGroupName, String accountName, String raiPolicyName) { + return getWithResponse(resourceGroupName, accountName, raiPolicyName, Context.NONE).getValue(); + } + + /** + * Update the state of specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param raiPolicy Properties describing the Content Filters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiPolicy along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String accountName, + String raiPolicyName, RaiPolicyInner raiPolicy) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiPolicyName == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicyName is required and cannot be null.")); + } + if (raiPolicy == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicy is required and cannot be null.")); + } else { + raiPolicy.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiPolicyName, raiPolicy, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update the state of specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param raiPolicy Properties describing the Content Filters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiPolicy along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String accountName, + String raiPolicyName, RaiPolicyInner raiPolicy, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiPolicyName == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicyName is required and cannot be null.")); + } + if (raiPolicy == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicy is required and cannot be null.")); + } else { + raiPolicy.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiPolicyName, raiPolicy, accept, context); + } + + /** + * Update the state of specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param raiPolicy Properties describing the Content Filters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiPolicy on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String raiPolicyName, + RaiPolicyInner raiPolicy) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, raiPolicyName, raiPolicy) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Update the state of specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param raiPolicy Properties describing the Content Filters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiPolicy along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String raiPolicyName, RaiPolicyInner raiPolicy, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, raiPolicyName, raiPolicy, context) + .block(); + } + + /** + * Update the state of specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param raiPolicy Properties describing the Content Filters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiPolicy. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RaiPolicyInner createOrUpdate(String resourceGroupName, String accountName, String raiPolicyName, + RaiPolicyInner raiPolicy) { + return createOrUpdateWithResponse(resourceGroupName, accountName, raiPolicyName, raiPolicy, Context.NONE) + .getValue(); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String raiPolicyName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiPolicyName == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicyName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, accountName, + this.client.getApiVersion(), this.client.getSubscriptionId(), raiPolicyName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName, + String raiPolicyName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (raiPolicyName == null) { + return Mono.error(new IllegalArgumentException("Parameter raiPolicyName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), resourceGroupName, accountName, this.client.getApiVersion(), + this.client.getSubscriptionId(), raiPolicyName, accept, context); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String raiPolicyName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, raiPolicyName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName, + String raiPolicyName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, raiPolicyName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiPolicyName) { + return this.beginDeleteAsync(resourceGroupName, accountName, raiPolicyName).getSyncPoller(); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, + String raiPolicyName, Context context) { + return this.beginDeleteAsync(resourceGroupName, accountName, raiPolicyName, context).getSyncPoller(); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String raiPolicyName) { + return beginDeleteAsync(resourceGroupName, accountName, raiPolicyName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String raiPolicyName, + Context context) { + return beginDeleteAsync(resourceGroupName, accountName, raiPolicyName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String raiPolicyName) { + deleteAsync(resourceGroupName, accountName, raiPolicyName).block(); + } + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String raiPolicyName, Context context) { + deleteAsync(resourceGroupName, accountName, raiPolicyName, context).block(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services RaiPolicies along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services RaiPolicies along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesImpl.java new file mode 100644 index 0000000000000..d5a00e059528b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesImpl.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicies; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; + +public final class RaiPoliciesImpl implements RaiPolicies { + private static final ClientLogger LOGGER = new ClientLogger(RaiPoliciesImpl.class); + + private final RaiPoliciesClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public RaiPoliciesImpl(RaiPoliciesClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiPolicyImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RaiPolicyImpl(inner1, this.manager())); + } + + public Response getWithResponse(String resourceGroupName, String accountName, String raiPolicyName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, raiPolicyName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RaiPolicyImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public RaiPolicy get(String resourceGroupName, String accountName, String raiPolicyName) { + RaiPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, raiPolicyName); + if (inner != null) { + return new RaiPolicyImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String raiPolicyName) { + this.serviceClient().delete(resourceGroupName, accountName, raiPolicyName); + } + + public void delete(String resourceGroupName, String accountName, String raiPolicyName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, raiPolicyName, context); + } + + public RaiPolicy getById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "raiPolicies"); + if (raiPolicyName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiPolicies'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, raiPolicyName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "raiPolicies"); + if (raiPolicyName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiPolicies'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, raiPolicyName, context); + } + + public void deleteById(String id) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "raiPolicies"); + if (raiPolicyName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiPolicies'.", id))); + } + this.delete(resourceGroupName, accountName, raiPolicyName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + 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 accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String raiPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "raiPolicies"); + if (raiPolicyName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'raiPolicies'.", id))); + } + this.delete(resourceGroupName, accountName, raiPolicyName, context); + } + + private RaiPoliciesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public RaiPolicyImpl define(String name) { + return new RaiPolicyImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPolicyImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPolicyImpl.java new file mode 100644 index 0000000000000..206a8af4309a8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPolicyImpl.java @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.util.Collections; +import java.util.Map; + +public final class RaiPolicyImpl implements RaiPolicy, RaiPolicy.Definition, RaiPolicy.Update { + private RaiPolicyInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String etag() { + return this.innerModel().etag(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public RaiPolicyProperties properties() { + return this.innerModel().properties(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public RaiPolicyInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String raiPolicyName; + + public RaiPolicyImpl withExistingAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public RaiPolicy create() { + this.innerObject = serviceManager.serviceClient() + .getRaiPolicies() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiPolicyName, this.innerModel(), Context.NONE) + .getValue(); + return this; + } + + public RaiPolicy create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiPolicies() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiPolicyName, this.innerModel(), context) + .getValue(); + return this; + } + + RaiPolicyImpl(String name, com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new RaiPolicyInner(); + this.serviceManager = serviceManager; + this.raiPolicyName = name; + } + + public RaiPolicyImpl update() { + return this; + } + + public RaiPolicy apply() { + this.innerObject = serviceManager.serviceClient() + .getRaiPolicies() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiPolicyName, this.innerModel(), Context.NONE) + .getValue(); + return this; + } + + public RaiPolicy apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiPolicies() + .createOrUpdateWithResponse(resourceGroupName, accountName, raiPolicyName, this.innerModel(), context) + .getValue(); + return this; + } + + RaiPolicyImpl(RaiPolicyInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); + this.raiPolicyName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "raiPolicies"); + } + + public RaiPolicy refresh() { + this.innerObject = serviceManager.serviceClient() + .getRaiPolicies() + .getWithResponse(resourceGroupName, accountName, raiPolicyName, Context.NONE) + .getValue(); + return this; + } + + public RaiPolicy refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getRaiPolicies() + .getWithResponse(resourceGroupName, accountName, raiPolicyName, context) + .getValue(); + return this; + } + + public RaiPolicyImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public RaiPolicyImpl withProperties(RaiPolicyProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersClientImpl.java index 7c61825b66591..7d36a665570f4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersClientImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersClientImpl.java @@ -23,8 +23,10 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.DomainAvailabilityInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuAvailabilityListResultInner; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter; import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter; import com.azure.resourcemanager.cognitiveservices.models.CheckSkuAvailabilityParameter; import reactor.core.publisher.Mono; @@ -79,6 +81,15 @@ Mono> checkDomainAvailability(@HostParam("$hos @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") CheckDomainAvailabilityParameter parameters, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/calculateModelCapacity") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> calculateModelCapacity(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") CalculateModelCapacityParameter parameters, + @HeaderParam("Accept") String accept, Context context); } /** @@ -310,4 +321,113 @@ private Mono checkDomainAvailabilityAsync(CheckDomainAv public DomainAvailabilityInner checkDomainAvailability(CheckDomainAvailabilityParameter parameters) { return checkDomainAvailabilityWithResponse(parameters, Context.NONE).getValue(); } + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + calculateModelCapacityWithResponseAsync(CalculateModelCapacityParameter parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.calculateModelCapacity(this.client.getEndpoint(), + this.client.getSubscriptionId(), this.client.getApiVersion(), parameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + calculateModelCapacityWithResponseAsync(CalculateModelCapacityParameter parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.calculateModelCapacity(this.client.getEndpoint(), this.client.getSubscriptionId(), + this.client.getApiVersion(), parameters, accept, context); + } + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono + calculateModelCapacityAsync(CalculateModelCapacityParameter parameters) { + return calculateModelCapacityWithResponseAsync(parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response + calculateModelCapacityWithResponse(CalculateModelCapacityParameter parameters, Context context) { + return calculateModelCapacityWithResponseAsync(parameters, context).block(); + } + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CalculateModelCapacityResultInner calculateModelCapacity(CalculateModelCapacityParameter parameters) { + return calculateModelCapacityWithResponse(parameters, Context.NONE).getValue(); + } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersImpl.java index 55aa39d701bfb..ab6f664036d29 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersImpl.java @@ -9,8 +9,11 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.DomainAvailabilityInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuAvailabilityListResultInner; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResult; import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter; import com.azure.resourcemanager.cognitiveservices.models.CheckSkuAvailabilityParameter; import com.azure.resourcemanager.cognitiveservices.models.DomainAvailability; @@ -72,6 +75,27 @@ public DomainAvailability checkDomainAvailability(CheckDomainAvailabilityParamet } } + public Response + calculateModelCapacityWithResponse(CalculateModelCapacityParameter parameters, Context context) { + Response inner + = this.serviceClient().calculateModelCapacityWithResponse(parameters, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new CalculateModelCapacityResultImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public CalculateModelCapacityResult calculateModelCapacity(CalculateModelCapacityParameter parameters) { + CalculateModelCapacityResultInner inner = this.serviceClient().calculateModelCapacity(parameters); + if (inner != null) { + return new CalculateModelCapacityResultImpl(inner, this.manager()); + } else { + return null; + } + } + private ResourceProvidersClient serviceClient() { return this.innerClient; } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuResourceImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuResourceImpl.java new file mode 100644 index 0000000000000..8f1f0ea0e5f7a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuResourceImpl.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; +import com.azure.resourcemanager.cognitiveservices.models.CapacityConfig; +import com.azure.resourcemanager.cognitiveservices.models.Sku; +import com.azure.resourcemanager.cognitiveservices.models.SkuResource; + +public final class SkuResourceImpl implements SkuResource { + private SkuResourceInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + SkuResourceImpl(SkuResourceInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String resourceType() { + return this.innerModel().resourceType(); + } + + public Sku sku() { + return this.innerModel().sku(); + } + + public CapacityConfig capacity() { + return this.innerModel().capacity(); + } + + public SkuResourceInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageImpl.java deleted file mode 100644 index a96d6ade23050..0000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageImpl.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.cognitiveservices.implementation; - -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; -import com.azure.resourcemanager.cognitiveservices.models.MetricName; -import com.azure.resourcemanager.cognitiveservices.models.QuotaUsageStatus; -import com.azure.resourcemanager.cognitiveservices.models.UnitType; -import com.azure.resourcemanager.cognitiveservices.models.Usage; - -public final class UsageImpl implements Usage { - private UsageInner innerObject; - - private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; - - UsageImpl(UsageInner innerObject, - com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public UnitType unit() { - return this.innerModel().unit(); - } - - public MetricName name() { - return this.innerModel().name(); - } - - public String quotaPeriod() { - return this.innerModel().quotaPeriod(); - } - - public Double limit() { - return this.innerModel().limit(); - } - - public Double currentValue() { - return this.innerModel().currentValue(); - } - - public String nextResetTime() { - return this.innerModel().nextResetTime(); - } - - public QuotaUsageStatus status() { - return this.innerModel().status(); - } - - public UsageInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageListResultImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageListResultImpl.java index 5179c33e5ea08..1ffcbfaed4daa 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageListResultImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageListResultImpl.java @@ -4,13 +4,11 @@ package com.azure.resourcemanager.cognitiveservices.implementation; -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner; import com.azure.resourcemanager.cognitiveservices.models.Usage; import com.azure.resourcemanager.cognitiveservices.models.UsageListResult; import java.util.Collections; import java.util.List; -import java.util.stream.Collectors; public final class UsageListResultImpl implements UsageListResult { private UsageListResultInner innerObject; @@ -28,10 +26,9 @@ public String nextLink() { } public List value() { - List inner = this.innerModel().value(); + List inner = this.innerModel().value(); if (inner != null) { - return Collections.unmodifiableList( - inner.stream().map(inner1 -> new UsageImpl(inner1, this.manager())).collect(Collectors.toList())); + return Collections.unmodifiableList(inner); } else { return Collections.emptyList(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesClientImpl.java index e2a033dc83add..351dfb3c96277 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesClientImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesClientImpl.java @@ -26,8 +26,8 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient; -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner; +import com.azure.resourcemanager.cognitiveservices.models.Usage; import reactor.core.publisher.Mono; /** @@ -91,7 +91,7 @@ Mono> listNext(@PathParam(value = "nextLink", enc * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String location, String filter) { + private Mono> listSinglePageAsync(String location, String filter) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -107,7 +107,7 @@ private Mono> listSinglePageAsync(String location, Str return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), location, filter, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -126,7 +126,7 @@ private Mono> listSinglePageAsync(String location, Str * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String location, String filter, Context context) { + private Mono> listSinglePageAsync(String location, String filter, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -159,7 +159,7 @@ private Mono> listSinglePageAsync(String location, Str * @return usages for the requested subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String location, String filter) { + private PagedFlux listAsync(String location, String filter) { return new PagedFlux<>(() -> listSinglePageAsync(location, filter), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -174,7 +174,7 @@ private PagedFlux listAsync(String location, String filter) { * @return usages for the requested subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String location) { + private PagedFlux listAsync(String location) { final String filter = null; return new PagedFlux<>(() -> listSinglePageAsync(location, filter), nextLink -> listNextSinglePageAsync(nextLink)); @@ -193,7 +193,7 @@ private PagedFlux listAsync(String location) { * @return usages for the requested subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String location, String filter, Context context) { + private PagedFlux listAsync(String location, String filter, Context context) { return new PagedFlux<>(() -> listSinglePageAsync(location, filter, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } @@ -208,7 +208,7 @@ private PagedFlux listAsync(String location, String filter, Context * @return usages for the requested subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location) { + public PagedIterable list(String location) { final String filter = null; return new PagedIterable<>(listAsync(location, filter)); } @@ -226,7 +226,7 @@ public PagedIterable list(String location) { * @return usages for the requested subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String location, String filter, Context context) { + public PagedIterable list(String location, String filter, Context context) { return new PagedIterable<>(listAsync(location, filter, context)); } @@ -241,7 +241,7 @@ public PagedIterable list(String location, String filter, Context co * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } @@ -251,7 +251,7 @@ private Mono> listNextSinglePageAsync(String nextLink) } final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -268,7 +268,7 @@ private Mono> listNextSinglePageAsync(String nextLink) * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesImpl.java index c75e777cf2ee8..13adef61650c7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesImpl.java @@ -8,7 +8,6 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient; -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; import com.azure.resourcemanager.cognitiveservices.models.Usage; import com.azure.resourcemanager.cognitiveservices.models.Usages; @@ -26,13 +25,11 @@ public UsagesImpl(UsagesClient innerClient, } public PagedIterable list(String location) { - PagedIterable inner = this.serviceClient().list(location); - return ResourceManagerUtils.mapPage(inner, inner1 -> new UsageImpl(inner1, this.manager())); + return this.serviceClient().list(location); } public PagedIterable list(String location, String filter, Context context) { - PagedIterable inner = this.serviceClient().list(location, filter, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new UsageImpl(inner1, this.manager())); + return this.serviceClient().list(location, filter, context); } private UsagesClient serviceClient() { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountModel.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountModel.java index 088904cbdac21..a6ce5fb9bc13c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountModel.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountModel.java @@ -13,6 +13,13 @@ * An immutable client-side representation of AccountModel. */ public interface AccountModel { + /** + * Gets the publisher property: Deployment model publisher. + * + * @return the publisher value. + */ + String publisher(); + /** * Gets the format property: Deployment model format. * @@ -43,6 +50,14 @@ public interface AccountModel { */ String source(); + /** + * Gets the sourceAccount property: Optional. Source of the model, another Microsoft.CognitiveServices accounts ARM + * resource ID. + * + * @return the sourceAccount value. + */ + String sourceAccount(); + /** * Gets the callRateLimit property: The call rate limit Cognitive Services account. * @@ -51,7 +66,7 @@ public interface AccountModel { CallRateLimit callRateLimit(); /** - * Gets the baseModel property: Base Model Identifier. + * Gets the baseModel property: Properties of Cognitive Services account deployment model. * * @return the baseModel value. */ diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java index 9bf7ead7ffcbc..2690c258e6017 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java @@ -75,6 +75,11 @@ public final class AccountProperties implements JsonSerializable userOwnedStorage; + /* + * The user owned AML workspace properties. + */ + private UserOwnedAmlWorkspace amlWorkspace; + /* * The private endpoint connection associated with the Cognitive Services account. */ @@ -160,6 +165,11 @@ public final class AccountProperties implements JsonSerializable userOwnedSt return this; } + /** + * Get the amlWorkspace property: The user owned AML workspace properties. + * + * @return the amlWorkspace value. + */ + public UserOwnedAmlWorkspace amlWorkspace() { + return this.amlWorkspace; + } + + /** + * Set the amlWorkspace property: The user owned AML workspace properties. + * + * @param amlWorkspace the amlWorkspace value to set. + * @return the AccountProperties object itself. + */ + public AccountProperties withAmlWorkspace(UserOwnedAmlWorkspace amlWorkspace) { + this.amlWorkspace = amlWorkspace; + return this; + } + /** * Get the privateEndpointConnections property: The private endpoint connection associated with the Cognitive * Services account. @@ -564,6 +594,26 @@ public AbusePenalty abusePenalty() { return this.abusePenalty; } + /** + * Get the raiMonitorConfig property: Cognitive Services Rai Monitor Config. + * + * @return the raiMonitorConfig value. + */ + public RaiMonitorConfig raiMonitorConfig() { + return this.raiMonitorConfig; + } + + /** + * Set the raiMonitorConfig property: Cognitive Services Rai Monitor Config. + * + * @param raiMonitorConfig the raiMonitorConfig value to set. + * @return the AccountProperties object itself. + */ + public AccountProperties withRaiMonitorConfig(RaiMonitorConfig raiMonitorConfig) { + this.raiMonitorConfig = raiMonitorConfig; + return this; + } + /** * Validates the instance. * @@ -585,6 +635,9 @@ public void validate() { if (userOwnedStorage() != null) { userOwnedStorage().forEach(e -> e.validate()); } + if (amlWorkspace() != null) { + amlWorkspace().validate(); + } if (privateEndpointConnections() != null) { privateEndpointConnections().forEach(e -> e.validate()); } @@ -606,6 +659,9 @@ public void validate() { if (abusePenalty() != null) { abusePenalty().validate(); } + if (raiMonitorConfig() != null) { + raiMonitorConfig().validate(); + } } /** @@ -620,6 +676,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("encryption", this.encryption); jsonWriter.writeArrayField("userOwnedStorage", this.userOwnedStorage, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("amlWorkspace", this.amlWorkspace); jsonWriter.writeStringField("publicNetworkAccess", this.publicNetworkAccess == null ? null : this.publicNetworkAccess.toString()); jsonWriter.writeJsonField("apiProperties", this.apiProperties); @@ -630,6 +687,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("disableLocalAuth", this.disableLocalAuth); jsonWriter.writeBooleanField("restore", this.restore); jsonWriter.writeJsonField("locations", this.locations); + jsonWriter.writeJsonField("raiMonitorConfig", this.raiMonitorConfig); return jsonWriter.writeEndObject(); } @@ -673,6 +731,8 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti List userOwnedStorage = reader.readArray(reader1 -> UserOwnedStorage.fromJson(reader1)); deserializedAccountProperties.userOwnedStorage = userOwnedStorage; + } else if ("amlWorkspace".equals(fieldName)) { + deserializedAccountProperties.amlWorkspace = UserOwnedAmlWorkspace.fromJson(reader); } else if ("privateEndpointConnections".equals(fieldName)) { List privateEndpointConnections = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1)); @@ -715,6 +775,8 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedAccountProperties.commitmentPlanAssociations = commitmentPlanAssociations; } else if ("abusePenalty".equals(fieldName)) { deserializedAccountProperties.abusePenalty = AbusePenalty.fromJson(reader); + } else if ("raiMonitorConfig".equals(fieldName)) { + deserializedAccountProperties.raiMonitorConfig = RaiMonitorConfig.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/BillingMeterInfo.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/BillingMeterInfo.java new file mode 100644 index 0000000000000..f831835e18b57 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/BillingMeterInfo.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The BillingMeterInfo model. + */ +@Fluent +public final class BillingMeterInfo implements JsonSerializable { + /* + * The name property. + */ + private String name; + + /* + * The meterId property. + */ + private String meterId; + + /* + * The unit property. + */ + private String unit; + + /** + * Creates an instance of BillingMeterInfo class. + */ + public BillingMeterInfo() { + } + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the BillingMeterInfo object itself. + */ + public BillingMeterInfo withName(String name) { + this.name = name; + return this; + } + + /** + * Get the meterId property: The meterId property. + * + * @return the meterId value. + */ + public String meterId() { + return this.meterId; + } + + /** + * Set the meterId property: The meterId property. + * + * @param meterId the meterId value to set. + * @return the BillingMeterInfo object itself. + */ + public BillingMeterInfo withMeterId(String meterId) { + this.meterId = meterId; + return this; + } + + /** + * Get the unit property: The unit property. + * + * @return the unit value. + */ + public String unit() { + return this.unit; + } + + /** + * Set the unit property: The unit property. + * + * @param unit the unit value to set. + * @return the BillingMeterInfo object itself. + */ + public BillingMeterInfo withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("meterId", this.meterId); + jsonWriter.writeStringField("unit", this.unit); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BillingMeterInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BillingMeterInfo if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the BillingMeterInfo. + */ + public static BillingMeterInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BillingMeterInfo deserializedBillingMeterInfo = new BillingMeterInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedBillingMeterInfo.name = reader.getString(); + } else if ("meterId".equals(fieldName)) { + deserializedBillingMeterInfo.meterId = reader.getString(); + } else if ("unit".equals(fieldName)) { + deserializedBillingMeterInfo.unit = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBillingMeterInfo; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ByPassSelection.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ByPassSelection.java new file mode 100644 index 0000000000000..c3a57b207a9af --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ByPassSelection.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Setting for trusted services. + */ +public final class ByPassSelection extends ExpandableStringEnum { + /** + * Static value None for ByPassSelection. + */ + public static final ByPassSelection NONE = fromString("None"); + + /** + * Static value AzureServices for ByPassSelection. + */ + public static final ByPassSelection AZURE_SERVICES = fromString("AzureServices"); + + /** + * Creates a new instance of ByPassSelection value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ByPassSelection() { + } + + /** + * Creates or finds a ByPassSelection from its string representation. + * + * @param name a name to look for. + * @return the corresponding ByPassSelection. + */ + public static ByPassSelection fromString(String name) { + return fromString(name, ByPassSelection.class); + } + + /** + * Gets known ByPassSelection values. + * + * @return known ByPassSelection values. + */ + public static Collection values() { + return values(ByPassSelection.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityParameter.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityParameter.java new file mode 100644 index 0000000000000..6ca7e248e97d2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityParameter.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Calculate Model Capacity parameter. + */ +@Fluent +public final class CalculateModelCapacityParameter implements JsonSerializable { + /* + * Properties of Cognitive Services account deployment model. + */ + private DeploymentModel model; + + /* + * The name of SKU. + */ + private String skuName; + + /* + * List of Model Capacity Calculator Workload. + */ + private List workloads; + + /** + * Creates an instance of CalculateModelCapacityParameter class. + */ + public CalculateModelCapacityParameter() { + } + + /** + * Get the model property: Properties of Cognitive Services account deployment model. + * + * @return the model value. + */ + public DeploymentModel model() { + return this.model; + } + + /** + * Set the model property: Properties of Cognitive Services account deployment model. + * + * @param model the model value to set. + * @return the CalculateModelCapacityParameter object itself. + */ + public CalculateModelCapacityParameter withModel(DeploymentModel model) { + this.model = model; + return this; + } + + /** + * Get the skuName property: The name of SKU. + * + * @return the skuName value. + */ + public String skuName() { + return this.skuName; + } + + /** + * Set the skuName property: The name of SKU. + * + * @param skuName the skuName value to set. + * @return the CalculateModelCapacityParameter object itself. + */ + public CalculateModelCapacityParameter withSkuName(String skuName) { + this.skuName = skuName; + return this; + } + + /** + * Get the workloads property: List of Model Capacity Calculator Workload. + * + * @return the workloads value. + */ + public List workloads() { + return this.workloads; + } + + /** + * Set the workloads property: List of Model Capacity Calculator Workload. + * + * @param workloads the workloads value to set. + * @return the CalculateModelCapacityParameter object itself. + */ + public CalculateModelCapacityParameter withWorkloads(List workloads) { + this.workloads = workloads; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (model() != null) { + model().validate(); + } + if (workloads() != null) { + workloads().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("model", this.model); + jsonWriter.writeStringField("skuName", this.skuName); + jsonWriter.writeArrayField("workloads", this.workloads, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CalculateModelCapacityParameter from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CalculateModelCapacityParameter if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CalculateModelCapacityParameter. + */ + public static CalculateModelCapacityParameter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CalculateModelCapacityParameter deserializedCalculateModelCapacityParameter + = new CalculateModelCapacityParameter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("model".equals(fieldName)) { + deserializedCalculateModelCapacityParameter.model = DeploymentModel.fromJson(reader); + } else if ("skuName".equals(fieldName)) { + deserializedCalculateModelCapacityParameter.skuName = reader.getString(); + } else if ("workloads".equals(fieldName)) { + List workloads + = reader.readArray(reader1 -> ModelCapacityCalculatorWorkload.fromJson(reader1)); + deserializedCalculateModelCapacityParameter.workloads = workloads; + } else { + reader.skipChildren(); + } + } + + return deserializedCalculateModelCapacityParameter; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResult.java new file mode 100644 index 0000000000000..0da20eb1fd7eb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResult.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner; + +/** + * An immutable client-side representation of CalculateModelCapacityResult. + */ +public interface CalculateModelCapacityResult { + /** + * Gets the model property: Properties of Cognitive Services account deployment model. + * + * @return the model value. + */ + DeploymentModel model(); + + /** + * Gets the skuName property: The skuName property. + * + * @return the skuName value. + */ + String skuName(); + + /** + * Gets the estimatedCapacity property: Model Estimated Capacity. + * + * @return the estimatedCapacity value. + */ + CalculateModelCapacityResultEstimatedCapacity estimatedCapacity(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner + * object. + * + * @return the inner object. + */ + CalculateModelCapacityResultInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResultEstimatedCapacity.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResultEstimatedCapacity.java new file mode 100644 index 0000000000000..072d3c1392f52 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResultEstimatedCapacity.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Model Estimated Capacity. + */ +@Fluent +public final class CalculateModelCapacityResultEstimatedCapacity + implements JsonSerializable { + /* + * The value property. + */ + private Integer value; + + /* + * The deployableValue property. + */ + private Integer deployableValue; + + /** + * Creates an instance of CalculateModelCapacityResultEstimatedCapacity class. + */ + public CalculateModelCapacityResultEstimatedCapacity() { + } + + /** + * Get the value property: The value property. + * + * @return the value value. + */ + public Integer value() { + return this.value; + } + + /** + * Set the value property: The value property. + * + * @param value the value value to set. + * @return the CalculateModelCapacityResultEstimatedCapacity object itself. + */ + public CalculateModelCapacityResultEstimatedCapacity withValue(Integer value) { + this.value = value; + return this; + } + + /** + * Get the deployableValue property: The deployableValue property. + * + * @return the deployableValue value. + */ + public Integer deployableValue() { + return this.deployableValue; + } + + /** + * Set the deployableValue property: The deployableValue property. + * + * @param deployableValue the deployableValue value to set. + * @return the CalculateModelCapacityResultEstimatedCapacity object itself. + */ + public CalculateModelCapacityResultEstimatedCapacity withDeployableValue(Integer deployableValue) { + this.deployableValue = deployableValue; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("value", this.value); + jsonWriter.writeNumberField("deployableValue", this.deployableValue); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CalculateModelCapacityResultEstimatedCapacity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CalculateModelCapacityResultEstimatedCapacity if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CalculateModelCapacityResultEstimatedCapacity. + */ + public static CalculateModelCapacityResultEstimatedCapacity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CalculateModelCapacityResultEstimatedCapacity deserializedCalculateModelCapacityResultEstimatedCapacity + = new CalculateModelCapacityResultEstimatedCapacity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + deserializedCalculateModelCapacityResultEstimatedCapacity.value + = reader.getNullable(JsonReader::getInt); + } else if ("deployableValue".equals(fieldName)) { + deserializedCalculateModelCapacityResultEstimatedCapacity.deployableValue + = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedCalculateModelCapacityResultEstimatedCapacity; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapacityConfig.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapacityConfig.java index a6bc87771aa83..4a76be6e9cef9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapacityConfig.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapacityConfig.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The capacity configuration. @@ -36,6 +37,11 @@ public final class CapacityConfig implements JsonSerializable { */ private Integer defaultProperty; + /* + * The array of allowed values for capacity. + */ + private List allowedValues; + /** * Creates an instance of CapacityConfig class. */ @@ -122,6 +128,26 @@ public CapacityConfig withDefaultProperty(Integer defaultProperty) { return this; } + /** + * Get the allowedValues property: The array of allowed values for capacity. + * + * @return the allowedValues value. + */ + public List allowedValues() { + return this.allowedValues; + } + + /** + * Set the allowedValues property: The array of allowed values for capacity. + * + * @param allowedValues the allowedValues value to set. + * @return the CapacityConfig object itself. + */ + public CapacityConfig withAllowedValues(List allowedValues) { + this.allowedValues = allowedValues; + return this; + } + /** * Validates the instance. * @@ -140,6 +166,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("maximum", this.maximum); jsonWriter.writeNumberField("step", this.step); jsonWriter.writeNumberField("default", this.defaultProperty); + jsonWriter.writeArrayField("allowedValues", this.allowedValues, (writer, element) -> writer.writeInt(element)); return jsonWriter.writeEndObject(); } @@ -166,6 +193,9 @@ public static CapacityConfig fromJson(JsonReader jsonReader) throws IOException deserializedCapacityConfig.step = reader.getNullable(JsonReader::getInt); } else if ("default".equals(fieldName)) { deserializedCapacityConfig.defaultProperty = reader.getNullable(JsonReader::getInt); + } else if ("allowedValues".equals(fieldName)) { + List allowedValues = reader.readArray(reader1 -> reader1.getInt()); + deserializedCapacityConfig.allowedValues = allowedValues; } else { reader.skipChildren(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckSkuAvailabilityParameter.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckSkuAvailabilityParameter.java index 5a0e991769cac..84877f6044fe4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckSkuAvailabilityParameter.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckSkuAvailabilityParameter.java @@ -24,7 +24,7 @@ public final class CheckSkuAvailabilityParameter implements JsonSerializable skus; /* - * The Kind of the resource. + * The kind (type) of cognitive service account. */ private String kind; @@ -60,7 +60,7 @@ public CheckSkuAvailabilityParameter withSkus(List skus) { } /** - * Get the kind property: The Kind of the resource. + * Get the kind property: The kind (type) of cognitive service account. * * @return the kind value. */ @@ -69,7 +69,7 @@ public String kind() { } /** - * Set the kind property: The Kind of the resource. + * Set the kind property: The kind (type) of cognitive service account. * * @param kind the kind value to set. * @return the CheckSkuAvailabilityParameter object itself. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAccountAssociation.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAccountAssociation.java index 174656f5f4477..f73fa079cfd2c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAccountAssociation.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAccountAssociation.java @@ -7,6 +7,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationInner; +import java.util.Map; /** * An immutable client-side representation of CommitmentPlanAccountAssociation. @@ -47,6 +48,13 @@ public interface CommitmentPlanAccountAssociation { */ String etag(); + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + /** * Gets the accountId property: The Azure resource id of the account. * @@ -104,7 +112,7 @@ interface WithParentResource { * The stage of the CommitmentPlanAccountAssociation definition which contains all the minimum required * properties for the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithAccountId { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithAccountId { /** * Executes the create request. * @@ -121,6 +129,19 @@ interface WithCreate extends DefinitionStages.WithAccountId { CommitmentPlanAccountAssociation create(Context context); } + /** + * The stage of the CommitmentPlanAccountAssociation definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + /** * The stage of the CommitmentPlanAccountAssociation definition allowing to specify accountId. */ @@ -145,7 +166,7 @@ interface WithAccountId { /** * The template for CommitmentPlanAccountAssociation update. */ - interface Update extends UpdateStages.WithAccountId { + interface Update extends UpdateStages.WithTags, UpdateStages.WithAccountId { /** * Executes the update request. * @@ -166,6 +187,19 @@ interface Update extends UpdateStages.WithAccountId { * The CommitmentPlanAccountAssociation update stages. */ interface UpdateStages { + /** + * The stage of the CommitmentPlanAccountAssociation update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + /** * The stage of the CommitmentPlanAccountAssociation update allowing to specify accountId. */ diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContentLevel.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContentLevel.java new file mode 100644 index 0000000000000..79c45c7639f55 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContentLevel.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Level at which content is filtered. + */ +public final class ContentLevel extends ExpandableStringEnum { + /** + * Static value Low for ContentLevel. + */ + public static final ContentLevel LOW = fromString("Low"); + + /** + * Static value Medium for ContentLevel. + */ + public static final ContentLevel MEDIUM = fromString("Medium"); + + /** + * Static value High for ContentLevel. + */ + public static final ContentLevel HIGH = fromString("High"); + + /** + * Creates a new instance of ContentLevel value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContentLevel() { + } + + /** + * Creates or finds a ContentLevel from its string representation. + * + * @param name a name to look for. + * @return the corresponding ContentLevel. + */ + public static ContentLevel fromString(String name) { + return fromString(name, ContentLevel.class); + } + + /** + * Gets known ContentLevel values. + * + * @return known ContentLevel values. + */ + public static Collection values() { + return values(ContentLevel.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomBlocklistConfig.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomBlocklistConfig.java new file mode 100644 index 0000000000000..129709334279a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomBlocklistConfig.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Gets or sets the source to which filter applies. + */ +@Fluent +public final class CustomBlocklistConfig extends RaiBlocklistConfig { + /* + * Content source to apply the Content Filters. + */ + private RaiPolicyContentSource source; + + /** + * Creates an instance of CustomBlocklistConfig class. + */ + public CustomBlocklistConfig() { + } + + /** + * Get the source property: Content source to apply the Content Filters. + * + * @return the source value. + */ + public RaiPolicyContentSource source() { + return this.source; + } + + /** + * Set the source property: Content source to apply the Content Filters. + * + * @param source the source value to set. + * @return the CustomBlocklistConfig object itself. + */ + public CustomBlocklistConfig withSource(RaiPolicyContentSource source) { + this.source = source; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public CustomBlocklistConfig withBlocklistName(String blocklistName) { + super.withBlocklistName(blocklistName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public CustomBlocklistConfig withBlocking(Boolean blocking) { + super.withBlocking(blocking); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("blocklistName", blocklistName()); + jsonWriter.writeBooleanField("blocking", blocking()); + jsonWriter.writeStringField("source", this.source == null ? null : this.source.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CustomBlocklistConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CustomBlocklistConfig if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the CustomBlocklistConfig. + */ + public static CustomBlocklistConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CustomBlocklistConfig deserializedCustomBlocklistConfig = new CustomBlocklistConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("blocklistName".equals(fieldName)) { + deserializedCustomBlocklistConfig.withBlocklistName(reader.getString()); + } else if ("blocking".equals(fieldName)) { + deserializedCustomBlocklistConfig.withBlocking(reader.getNullable(JsonReader::getBoolean)); + } else if ("source".equals(fieldName)) { + deserializedCustomBlocklistConfig.source = RaiPolicyContentSource.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCustomBlocklistConfig; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISetting.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISetting.java new file mode 100644 index 0000000000000..659cc61280ac2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISetting.java @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; +import java.util.Map; + +/** + * An immutable client-side representation of DefenderForAISetting. + */ +public interface DefenderForAISetting { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the state property: Defender for AI state on the AI resource. + * + * @return the state value. + */ + DefenderForAISettingState state(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner object. + * + * @return the inner object. + */ + DefenderForAISettingInner innerModel(); + + /** + * The entirety of the DefenderForAISetting definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The DefenderForAISetting definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the DefenderForAISetting definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the DefenderForAISetting definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @return the next definition stage. + */ + WithCreate withExistingAccount(String resourceGroupName, String accountName); + } + + /** + * The stage of the DefenderForAISetting definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithState { + /** + * Executes the create request. + * + * @return the created resource. + */ + DefenderForAISetting create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + DefenderForAISetting create(Context context); + } + + /** + * The stage of the DefenderForAISetting definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the DefenderForAISetting definition allowing to specify state. + */ + interface WithState { + /** + * Specifies the state property: Defender for AI state on the AI resource.. + * + * @param state Defender for AI state on the AI resource. + * @return the next definition stage. + */ + WithCreate withState(DefenderForAISettingState state); + } + } + + /** + * Begins update for the DefenderForAISetting resource. + * + * @return the stage of resource update. + */ + DefenderForAISetting.Update update(); + + /** + * The template for DefenderForAISetting update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithState { + /** + * Executes the update request. + * + * @return the updated resource. + */ + DefenderForAISetting apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + DefenderForAISetting apply(Context context); + } + + /** + * The DefenderForAISetting update stages. + */ + interface UpdateStages { + /** + * The stage of the DefenderForAISetting update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the DefenderForAISetting update allowing to specify state. + */ + interface WithState { + /** + * Specifies the state property: Defender for AI state on the AI resource.. + * + * @param state Defender for AI state on the AI resource. + * @return the next definition stage. + */ + Update withState(DefenderForAISettingState state); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + DefenderForAISetting refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + DefenderForAISetting refresh(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingResult.java new file mode 100644 index 0000000000000..406a8ed13b3e5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingResult.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services Defender for AI Settings. + */ +@Fluent +public final class DefenderForAISettingResult implements JsonSerializable { + /* + * The link used to get the next page of Defender for AI Settings. + */ + private String nextLink; + + /* + * The list of Defender for AI Settings. + */ + private List value; + + /** + * Creates an instance of DefenderForAISettingResult class. + */ + public DefenderForAISettingResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of Defender for AI Settings. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of Defender for AI Settings. + * + * @param nextLink the nextLink value to set. + * @return the DefenderForAISettingResult object itself. + */ + public DefenderForAISettingResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of Defender for AI Settings. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of Defender for AI Settings. + * + * @param value the value value to set. + * @return the DefenderForAISettingResult object itself. + */ + public DefenderForAISettingResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DefenderForAISettingResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DefenderForAISettingResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DefenderForAISettingResult. + */ + public static DefenderForAISettingResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DefenderForAISettingResult deserializedDefenderForAISettingResult = new DefenderForAISettingResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedDefenderForAISettingResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> DefenderForAISettingInner.fromJson(reader1)); + deserializedDefenderForAISettingResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedDefenderForAISettingResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingState.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingState.java new file mode 100644 index 0000000000000..bacc79169dd96 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Defender for AI state on the AI resource. + */ +public final class DefenderForAISettingState extends ExpandableStringEnum { + /** + * Static value Disabled for DefenderForAISettingState. + */ + public static final DefenderForAISettingState DISABLED = fromString("Disabled"); + + /** + * Static value Enabled for DefenderForAISettingState. + */ + public static final DefenderForAISettingState ENABLED = fromString("Enabled"); + + /** + * Creates a new instance of DefenderForAISettingState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DefenderForAISettingState() { + } + + /** + * Creates or finds a DefenderForAISettingState from its string representation. + * + * @param name a name to look for. + * @return the corresponding DefenderForAISettingState. + */ + public static DefenderForAISettingState fromString(String name) { + return fromString(name, DefenderForAISettingState.class); + } + + /** + * Gets known DefenderForAISettingState values. + * + * @return known DefenderForAISettingState values. + */ + public static Collection values() { + return values(DefenderForAISettingState.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettings.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettings.java new file mode 100644 index 0000000000000..c6cbbe1692421 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettings.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of DefenderForAISettings. + */ +public interface DefenderForAISettings { + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Lists the Defender for AI settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, + String defenderForAISettingName, Context context); + + /** + * Gets the specified Defender for AI setting by name. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param defenderForAISettingName The name of the defender for AI setting. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name. + */ + DefenderForAISetting get(String resourceGroupName, String accountName, String defenderForAISettingName); + + /** + * Gets the specified Defender for AI setting by name. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name along with {@link Response}. + */ + DefenderForAISetting getById(String id); + + /** + * Gets the specified Defender for AI setting by name. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Defender for AI setting by name along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new DefenderForAISetting resource. + * + * @param name resource name. + * @return the first stage of the new DefenderForAISetting definition. + */ + DefenderForAISetting.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployment.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployment.java index 760922dc1a1b9..16a9cab5c3142 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployment.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployment.java @@ -7,6 +7,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner; +import java.util.Map; /** * An immutable client-side representation of Deployment. @@ -54,6 +55,13 @@ public interface Deployment { */ String etag(); + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + /** * Gets the properties property: Properties of Cognitive Services account deployment. * @@ -110,7 +118,8 @@ interface WithParentResource { * The stage of the Deployment definition which contains all the minimum required properties for the resource to * be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithSku, DefinitionStages.WithProperties { + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithSku, DefinitionStages.WithProperties { /** * Executes the create request. * @@ -127,6 +136,19 @@ interface WithCreate extends DefinitionStages.WithSku, DefinitionStages.WithProp Deployment create(Context context); } + /** + * The stage of the Deployment definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + /** * The stage of the Deployment definition allowing to specify sku. */ @@ -164,7 +186,7 @@ interface WithProperties { /** * The template for Deployment update. */ - interface Update extends UpdateStages.WithSku, UpdateStages.WithProperties { + interface Update extends UpdateStages.WithTags, UpdateStages.WithSku { /** * Executes the update request. * @@ -186,29 +208,29 @@ interface Update extends UpdateStages.WithSku, UpdateStages.WithProperties { */ interface UpdateStages { /** - * The stage of the Deployment update allowing to specify sku. + * The stage of the Deployment update allowing to specify tags. */ - interface WithSku { + interface WithTags { /** - * Specifies the sku property: The resource model definition representing SKU. + * Specifies the tags property: Resource tags.. * - * @param sku The resource model definition representing SKU. + * @param tags Resource tags. * @return the next definition stage. */ - Update withSku(Sku sku); + Update withTags(Map tags); } /** - * The stage of the Deployment update allowing to specify properties. + * The stage of the Deployment update allowing to specify sku. */ - interface WithProperties { + interface WithSku { /** - * Specifies the properties property: Properties of Cognitive Services account deployment.. + * Specifies the sku property: The resource model definition representing SKU. * - * @param properties Properties of Cognitive Services account deployment. + * @param sku The resource model definition representing SKU. * @return the next definition stage. */ - Update withProperties(DeploymentProperties properties); + Update withSku(Sku sku); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentCapacitySettings.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentCapacitySettings.java new file mode 100644 index 0000000000000..ab7a60896d7a5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentCapacitySettings.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Internal use only. + */ +@Fluent +public final class DeploymentCapacitySettings implements JsonSerializable { + /* + * The designated capacity. + */ + private Integer designatedCapacity; + + /* + * The priority of this capacity setting. + */ + private Integer priority; + + /** + * Creates an instance of DeploymentCapacitySettings class. + */ + public DeploymentCapacitySettings() { + } + + /** + * Get the designatedCapacity property: The designated capacity. + * + * @return the designatedCapacity value. + */ + public Integer designatedCapacity() { + return this.designatedCapacity; + } + + /** + * Set the designatedCapacity property: The designated capacity. + * + * @param designatedCapacity the designatedCapacity value to set. + * @return the DeploymentCapacitySettings object itself. + */ + public DeploymentCapacitySettings withDesignatedCapacity(Integer designatedCapacity) { + this.designatedCapacity = designatedCapacity; + return this; + } + + /** + * Get the priority property: The priority of this capacity setting. + * + * @return the priority value. + */ + public Integer priority() { + return this.priority; + } + + /** + * Set the priority property: The priority of this capacity setting. + * + * @param priority the priority value to set. + * @return the DeploymentCapacitySettings object itself. + */ + public DeploymentCapacitySettings withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("designatedCapacity", this.designatedCapacity); + jsonWriter.writeNumberField("priority", this.priority); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeploymentCapacitySettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeploymentCapacitySettings if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DeploymentCapacitySettings. + */ + public static DeploymentCapacitySettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeploymentCapacitySettings deserializedDeploymentCapacitySettings = new DeploymentCapacitySettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("designatedCapacity".equals(fieldName)) { + deserializedDeploymentCapacitySettings.designatedCapacity = reader.getNullable(JsonReader::getInt); + } else if ("priority".equals(fieldName)) { + deserializedDeploymentCapacitySettings.priority = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedDeploymentCapacitySettings; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModel.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModel.java index c4c2baf4d138f..12e2d9b925e63 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModel.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModel.java @@ -16,6 +16,11 @@ */ @Fluent public class DeploymentModel implements JsonSerializable { + /* + * Deployment model publisher. + */ + private String publisher; + /* * Deployment model format. */ @@ -38,6 +43,11 @@ public class DeploymentModel implements JsonSerializable { */ private String source; + /* + * Optional. Source of the model, another Microsoft.CognitiveServices accounts ARM resource ID. + */ + private String sourceAccount; + /* * The call rate limit Cognitive Services account. */ @@ -49,6 +59,26 @@ public class DeploymentModel implements JsonSerializable { public DeploymentModel() { } + /** + * Get the publisher property: Deployment model publisher. + * + * @return the publisher value. + */ + public String publisher() { + return this.publisher; + } + + /** + * Set the publisher property: Deployment model publisher. + * + * @param publisher the publisher value to set. + * @return the DeploymentModel object itself. + */ + public DeploymentModel withPublisher(String publisher) { + this.publisher = publisher; + return this; + } + /** * Get the format property: Deployment model format. * @@ -133,6 +163,28 @@ public DeploymentModel withSource(String source) { return this; } + /** + * Get the sourceAccount property: Optional. Source of the model, another Microsoft.CognitiveServices accounts ARM + * resource ID. + * + * @return the sourceAccount value. + */ + public String sourceAccount() { + return this.sourceAccount; + } + + /** + * Set the sourceAccount property: Optional. Source of the model, another Microsoft.CognitiveServices accounts ARM + * resource ID. + * + * @param sourceAccount the sourceAccount value to set. + * @return the DeploymentModel object itself. + */ + public DeploymentModel withSourceAccount(String sourceAccount) { + this.sourceAccount = sourceAccount; + return this; + } + /** * Get the callRateLimit property: The call rate limit Cognitive Services account. * @@ -170,10 +222,12 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("publisher", this.publisher); jsonWriter.writeStringField("format", this.format); jsonWriter.writeStringField("name", this.name); jsonWriter.writeStringField("version", this.version); jsonWriter.writeStringField("source", this.source); + jsonWriter.writeStringField("sourceAccount", this.sourceAccount); return jsonWriter.writeEndObject(); } @@ -192,7 +246,9 @@ public static DeploymentModel fromJson(JsonReader jsonReader) throws IOException String fieldName = reader.getFieldName(); reader.nextToken(); - if ("format".equals(fieldName)) { + if ("publisher".equals(fieldName)) { + deserializedDeploymentModel.publisher = reader.getString(); + } else if ("format".equals(fieldName)) { deserializedDeploymentModel.format = reader.getString(); } else if ("name".equals(fieldName)) { deserializedDeploymentModel.name = reader.getString(); @@ -200,6 +256,8 @@ public static DeploymentModel fromJson(JsonReader jsonReader) throws IOException deserializedDeploymentModel.version = reader.getString(); } else if ("source".equals(fieldName)) { deserializedDeploymentModel.source = reader.getString(); + } else if ("sourceAccount".equals(fieldName)) { + deserializedDeploymentModel.sourceAccount = reader.getString(); } else if ("callRateLimit".equals(fieldName)) { deserializedDeploymentModel.callRateLimit = CallRateLimit.fromJson(reader); } else { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java index 9719cb109b311..0bbe18cc49774 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java @@ -29,7 +29,7 @@ public final class DeploymentProperties implements JsonSerializable e.validate()); } + if (capacitySettings() != null) { + capacitySettings().validate(); + } } /** @@ -211,6 +305,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("raiPolicyName", this.raiPolicyName); jsonWriter.writeStringField("versionUpgradeOption", this.versionUpgradeOption == null ? null : this.versionUpgradeOption.toString()); + jsonWriter.writeNumberField("currentCapacity", this.currentCapacity); + jsonWriter.writeJsonField("capacitySettings", this.capacitySettings); + jsonWriter.writeStringField("parentDeploymentName", this.parentDeploymentName); return jsonWriter.writeEndObject(); } @@ -249,6 +346,15 @@ public static DeploymentProperties fromJson(JsonReader jsonReader) throws IOExce } else if ("versionUpgradeOption".equals(fieldName)) { deserializedDeploymentProperties.versionUpgradeOption = DeploymentModelVersionUpgradeOption.fromString(reader.getString()); + } else if ("dynamicThrottlingEnabled".equals(fieldName)) { + deserializedDeploymentProperties.dynamicThrottlingEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("currentCapacity".equals(fieldName)) { + deserializedDeploymentProperties.currentCapacity = reader.getNullable(JsonReader::getInt); + } else if ("capacitySettings".equals(fieldName)) { + deserializedDeploymentProperties.capacitySettings = DeploymentCapacitySettings.fromJson(reader); + } else if ("parentDeploymentName".equals(fieldName)) { + deserializedDeploymentProperties.parentDeploymentName = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleSettings.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleSettings.java index a147aa80f364a..d3abb37de7d80 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleSettings.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleSettings.java @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Properties of Cognitive Services account deployment model. + * Properties of Cognitive Services account deployment model. (Deprecated, please use Deployment.sku instead.). */ @Fluent public final class DeploymentScaleSettings implements JsonSerializable { diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSkuListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSkuListResult.java new file mode 100644 index 0000000000000..8650b5178135b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSkuListResult.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services accounts operation response. + */ +@Fluent +public final class DeploymentSkuListResult implements JsonSerializable { + /* + * The link used to get the next page of deployment skus. + */ + private String nextLink; + + /* + * Gets the list of Cognitive Services accounts deployment skus. + */ + private List value; + + /** + * Creates an instance of DeploymentSkuListResult class. + */ + public DeploymentSkuListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of deployment skus. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of deployment skus. + * + * @param nextLink the nextLink value to set. + * @return the DeploymentSkuListResult object itself. + */ + public DeploymentSkuListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: Gets the list of Cognitive Services accounts deployment skus. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeploymentSkuListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeploymentSkuListResult if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the DeploymentSkuListResult. + */ + public static DeploymentSkuListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeploymentSkuListResult deserializedDeploymentSkuListResult = new DeploymentSkuListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedDeploymentSkuListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> SkuResourceInner.fromJson(reader1)); + deserializedDeploymentSkuListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedDeploymentSkuListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployments.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployments.java index 9b432ae3c73ea..184e984957abc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployments.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployments.java @@ -92,6 +92,36 @@ Response getWithResponse(String resourceGroupName, String accountNam */ void delete(String resourceGroupName, String accountName, String deploymentName, Context context); + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName); + + /** + * Lists the specified deployments skus associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param deploymentName The name of the deployment associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName, + Context context); + /** * Gets the specified deployments associated with the Cognitive Services account. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Encryption.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Encryption.java index 9f05f65ff9290..21f57510ddff2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Encryption.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Encryption.java @@ -15,7 +15,7 @@ * Properties to configure Encryption. */ @Fluent -public final class Encryption implements JsonSerializable { +public class Encryption implements JsonSerializable { /* * Properties of KeyVault */ diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScope.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScope.java new file mode 100644 index 0000000000000..d5252f9a8ba45 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScope.java @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner; +import java.util.Map; + +/** + * An immutable client-side representation of EncryptionScope. + */ +public interface EncryptionScope { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Properties of Cognitive Services EncryptionScope. + * + * @return the properties value. + */ + EncryptionScopeProperties properties(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner object. + * + * @return the inner object. + */ + EncryptionScopeInner innerModel(); + + /** + * The entirety of the EncryptionScope definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The EncryptionScope definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the EncryptionScope definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the EncryptionScope definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @return the next definition stage. + */ + WithCreate withExistingAccount(String resourceGroupName, String accountName); + } + + /** + * The stage of the EncryptionScope definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + EncryptionScope create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + EncryptionScope create(Context context); + } + + /** + * The stage of the EncryptionScope definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the EncryptionScope definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services EncryptionScope.. + * + * @param properties Properties of Cognitive Services EncryptionScope. + * @return the next definition stage. + */ + WithCreate withProperties(EncryptionScopeProperties properties); + } + } + + /** + * Begins update for the EncryptionScope resource. + * + * @return the stage of resource update. + */ + EncryptionScope.Update update(); + + /** + * The template for EncryptionScope update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + EncryptionScope apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + EncryptionScope apply(Context context); + } + + /** + * The EncryptionScope update stages. + */ + interface UpdateStages { + /** + * The stage of the EncryptionScope update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the EncryptionScope update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services EncryptionScope.. + * + * @param properties Properties of Cognitive Services EncryptionScope. + * @return the next definition stage. + */ + Update withProperties(EncryptionScopeProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + EncryptionScope refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + EncryptionScope refresh(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeListResult.java new file mode 100644 index 0000000000000..8d386c49ff7ba --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeListResult.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services EncryptionScopes. + */ +@Fluent +public final class EncryptionScopeListResult implements JsonSerializable { + /* + * The link used to get the next page of EncryptionScope. + */ + private String nextLink; + + /* + * The list of EncryptionScope. + */ + private List value; + + /** + * Creates an instance of EncryptionScopeListResult class. + */ + public EncryptionScopeListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of EncryptionScope. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of EncryptionScope. + * + * @param nextLink the nextLink value to set. + * @return the EncryptionScopeListResult object itself. + */ + public EncryptionScopeListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of EncryptionScope. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of EncryptionScope. + * + * @param value the value value to set. + * @return the EncryptionScopeListResult object itself. + */ + public EncryptionScopeListResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EncryptionScopeListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EncryptionScopeListResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the EncryptionScopeListResult. + */ + public static EncryptionScopeListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EncryptionScopeListResult deserializedEncryptionScopeListResult = new EncryptionScopeListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedEncryptionScopeListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> EncryptionScopeInner.fromJson(reader1)); + deserializedEncryptionScopeListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedEncryptionScopeListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProperties.java new file mode 100644 index 0000000000000..cd51f56c2f661 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProperties.java @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties to EncryptionScope. + */ +@Fluent +public final class EncryptionScopeProperties extends Encryption { + /* + * Gets the status of the resource at the time the operation was called. + */ + private EncryptionScopeProvisioningState provisioningState; + + /* + * The encryptionScope state. + */ + private EncryptionScopeState state; + + /** + * Creates an instance of EncryptionScopeProperties class. + */ + public EncryptionScopeProperties() { + } + + /** + * Get the provisioningState property: Gets the status of the resource at the time the operation was called. + * + * @return the provisioningState value. + */ + public EncryptionScopeProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the state property: The encryptionScope state. + * + * @return the state value. + */ + public EncryptionScopeState state() { + return this.state; + } + + /** + * Set the state property: The encryptionScope state. + * + * @param state the state value to set. + * @return the EncryptionScopeProperties object itself. + */ + public EncryptionScopeProperties withState(EncryptionScopeState state) { + this.state = state; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public EncryptionScopeProperties withKeyVaultProperties(KeyVaultProperties keyVaultProperties) { + super.withKeyVaultProperties(keyVaultProperties); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public EncryptionScopeProperties withKeySource(KeySource keySource) { + super.withKeySource(keySource); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (keyVaultProperties() != null) { + keyVaultProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("keyVaultProperties", keyVaultProperties()); + jsonWriter.writeStringField("keySource", keySource() == null ? null : keySource().toString()); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EncryptionScopeProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EncryptionScopeProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the EncryptionScopeProperties. + */ + public static EncryptionScopeProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EncryptionScopeProperties deserializedEncryptionScopeProperties = new EncryptionScopeProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyVaultProperties".equals(fieldName)) { + deserializedEncryptionScopeProperties.withKeyVaultProperties(KeyVaultProperties.fromJson(reader)); + } else if ("keySource".equals(fieldName)) { + deserializedEncryptionScopeProperties.withKeySource(KeySource.fromString(reader.getString())); + } else if ("provisioningState".equals(fieldName)) { + deserializedEncryptionScopeProperties.provisioningState + = EncryptionScopeProvisioningState.fromString(reader.getString()); + } else if ("state".equals(fieldName)) { + deserializedEncryptionScopeProperties.state = EncryptionScopeState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedEncryptionScopeProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProvisioningState.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProvisioningState.java new file mode 100644 index 0000000000000..aa9d4ca1fefd8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProvisioningState.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Gets the status of the resource at the time the operation was called. + */ +public final class EncryptionScopeProvisioningState extends ExpandableStringEnum { + /** + * Static value Accepted for EncryptionScopeProvisioningState. + */ + public static final EncryptionScopeProvisioningState ACCEPTED = fromString("Accepted"); + + /** + * Static value Creating for EncryptionScopeProvisioningState. + */ + public static final EncryptionScopeProvisioningState CREATING = fromString("Creating"); + + /** + * Static value Deleting for EncryptionScopeProvisioningState. + */ + public static final EncryptionScopeProvisioningState DELETING = fromString("Deleting"); + + /** + * Static value Moving for EncryptionScopeProvisioningState. + */ + public static final EncryptionScopeProvisioningState MOVING = fromString("Moving"); + + /** + * Static value Failed for EncryptionScopeProvisioningState. + */ + public static final EncryptionScopeProvisioningState FAILED = fromString("Failed"); + + /** + * Static value Succeeded for EncryptionScopeProvisioningState. + */ + public static final EncryptionScopeProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Static value Canceled for EncryptionScopeProvisioningState. + */ + public static final EncryptionScopeProvisioningState CANCELED = fromString("Canceled"); + + /** + * Creates a new instance of EncryptionScopeProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EncryptionScopeProvisioningState() { + } + + /** + * Creates or finds a EncryptionScopeProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding EncryptionScopeProvisioningState. + */ + public static EncryptionScopeProvisioningState fromString(String name) { + return fromString(name, EncryptionScopeProvisioningState.class); + } + + /** + * Gets known EncryptionScopeProvisioningState values. + * + * @return known EncryptionScopeProvisioningState values. + */ + public static Collection values() { + return values(EncryptionScopeProvisioningState.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeState.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeState.java new file mode 100644 index 0000000000000..dd0e65cfcb7f4 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The encryptionScope state. + */ +public final class EncryptionScopeState extends ExpandableStringEnum { + /** + * Static value Disabled for EncryptionScopeState. + */ + public static final EncryptionScopeState DISABLED = fromString("Disabled"); + + /** + * Static value Enabled for EncryptionScopeState. + */ + public static final EncryptionScopeState ENABLED = fromString("Enabled"); + + /** + * Creates a new instance of EncryptionScopeState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EncryptionScopeState() { + } + + /** + * Creates or finds a EncryptionScopeState from its string representation. + * + * @param name a name to look for. + * @return the corresponding EncryptionScopeState. + */ + public static EncryptionScopeState fromString(String name) { + return fromString(name, EncryptionScopeState.class); + } + + /** + * Gets known EncryptionScopeState values. + * + * @return known EncryptionScopeState values. + */ + public static Collection values() { + return values(EncryptionScopeState.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopes.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopes.java new file mode 100644 index 0000000000000..16081ccc61597 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopes.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of EncryptionScopes. + */ +public interface EncryptionScopes { + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String encryptionScopeName, + Context context); + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account. + */ + EncryptionScope get(String resourceGroupName, String accountName, String encryptionScopeName); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String encryptionScopeName); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String encryptionScopeName, Context context); + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account along with {@link Response}. + */ + EncryptionScope getById(String id); + + /** + * Gets the specified EncryptionScope associated with the Cognitive Services account. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified EncryptionScope associated with the Cognitive Services account along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes the specified encryptionScope associated with the Cognitive Services account. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new EncryptionScope resource. + * + * @param name resource name. + * @return the first stage of the new EncryptionScope definition. + */ + EncryptionScope.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/LocationBasedModelCapacities.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/LocationBasedModelCapacities.java new file mode 100644 index 0000000000000..5d78821b56c30 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/LocationBasedModelCapacities.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; + +/** + * Resource collection API of LocationBasedModelCapacities. + */ +public interface LocationBasedModelCapacities { + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String location, String modelFormat, String modelName, + String modelVersion); + + /** + * List Location Based ModelCapacities. + * + * @param location Resource location. + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String location, String modelFormat, String modelName, + String modelVersion, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Model.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Model.java index f45bc34f79c32..bc5af45b2b680 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Model.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Model.java @@ -11,26 +11,33 @@ */ public interface Model { /** - * Gets the model property: Model Metadata. + * Gets the model property: Cognitive Services account Model. * * @return the model value. */ AccountModel model(); /** - * Gets the kind property: The Kind of the Model. + * Gets the kind property: The kind (type) of cognitive service account. * * @return the kind value. */ String kind(); /** - * Gets the skuName property: The SKU of the Model. + * Gets the skuName property: The name of SKU. * * @return the skuName value. */ String skuName(); + /** + * Gets the description property: The description of the model. + * + * @return the description value. + */ + String description(); + /** * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.ModelInner object. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacities.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacities.java new file mode 100644 index 0000000000000..c722bc23b6c9f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacities.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; + +/** + * Resource collection API of ModelCapacities. + */ +public interface ModelCapacities { + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String modelFormat, String modelName, String modelVersion); + + /** + * List ModelCapacities. + * + * @param modelFormat The format of the Model. + * @param modelName The name of the Model. + * @param modelVersion The version of the Model. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of cognitive services accounts operation response as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String modelFormat, String modelName, String modelVersion, + Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkload.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkload.java new file mode 100644 index 0000000000000..de461450a32c6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkload.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Model Capacity Calculator Workload. + */ +@Fluent +public final class ModelCapacityCalculatorWorkload implements JsonSerializable { + /* + * Request per minute. + */ + private Long requestPerMinute; + + /* + * Dictionary, Model Capacity Calculator Workload Parameters. + */ + private ModelCapacityCalculatorWorkloadRequestParam requestParameters; + + /** + * Creates an instance of ModelCapacityCalculatorWorkload class. + */ + public ModelCapacityCalculatorWorkload() { + } + + /** + * Get the requestPerMinute property: Request per minute. + * + * @return the requestPerMinute value. + */ + public Long requestPerMinute() { + return this.requestPerMinute; + } + + /** + * Set the requestPerMinute property: Request per minute. + * + * @param requestPerMinute the requestPerMinute value to set. + * @return the ModelCapacityCalculatorWorkload object itself. + */ + public ModelCapacityCalculatorWorkload withRequestPerMinute(Long requestPerMinute) { + this.requestPerMinute = requestPerMinute; + return this; + } + + /** + * Get the requestParameters property: Dictionary, Model Capacity Calculator Workload Parameters. + * + * @return the requestParameters value. + */ + public ModelCapacityCalculatorWorkloadRequestParam requestParameters() { + return this.requestParameters; + } + + /** + * Set the requestParameters property: Dictionary, Model Capacity Calculator Workload Parameters. + * + * @param requestParameters the requestParameters value to set. + * @return the ModelCapacityCalculatorWorkload object itself. + */ + public ModelCapacityCalculatorWorkload + withRequestParameters(ModelCapacityCalculatorWorkloadRequestParam requestParameters) { + this.requestParameters = requestParameters; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (requestParameters() != null) { + requestParameters().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("requestPerMinute", this.requestPerMinute); + jsonWriter.writeJsonField("requestParameters", this.requestParameters); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ModelCapacityCalculatorWorkload from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ModelCapacityCalculatorWorkload if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ModelCapacityCalculatorWorkload. + */ + public static ModelCapacityCalculatorWorkload fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ModelCapacityCalculatorWorkload deserializedModelCapacityCalculatorWorkload + = new ModelCapacityCalculatorWorkload(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("requestPerMinute".equals(fieldName)) { + deserializedModelCapacityCalculatorWorkload.requestPerMinute + = reader.getNullable(JsonReader::getLong); + } else if ("requestParameters".equals(fieldName)) { + deserializedModelCapacityCalculatorWorkload.requestParameters + = ModelCapacityCalculatorWorkloadRequestParam.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedModelCapacityCalculatorWorkload; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkloadRequestParam.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkloadRequestParam.java new file mode 100644 index 0000000000000..d3ddcaf69eb07 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkloadRequestParam.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Dictionary, Model Capacity Calculator Workload Parameters. + */ +@Fluent +public final class ModelCapacityCalculatorWorkloadRequestParam + implements JsonSerializable { + /* + * Average prompt tokens. + */ + private Long avgPromptTokens; + + /* + * Average generated tokens. + */ + private Long avgGeneratedTokens; + + /** + * Creates an instance of ModelCapacityCalculatorWorkloadRequestParam class. + */ + public ModelCapacityCalculatorWorkloadRequestParam() { + } + + /** + * Get the avgPromptTokens property: Average prompt tokens. + * + * @return the avgPromptTokens value. + */ + public Long avgPromptTokens() { + return this.avgPromptTokens; + } + + /** + * Set the avgPromptTokens property: Average prompt tokens. + * + * @param avgPromptTokens the avgPromptTokens value to set. + * @return the ModelCapacityCalculatorWorkloadRequestParam object itself. + */ + public ModelCapacityCalculatorWorkloadRequestParam withAvgPromptTokens(Long avgPromptTokens) { + this.avgPromptTokens = avgPromptTokens; + return this; + } + + /** + * Get the avgGeneratedTokens property: Average generated tokens. + * + * @return the avgGeneratedTokens value. + */ + public Long avgGeneratedTokens() { + return this.avgGeneratedTokens; + } + + /** + * Set the avgGeneratedTokens property: Average generated tokens. + * + * @param avgGeneratedTokens the avgGeneratedTokens value to set. + * @return the ModelCapacityCalculatorWorkloadRequestParam object itself. + */ + public ModelCapacityCalculatorWorkloadRequestParam withAvgGeneratedTokens(Long avgGeneratedTokens) { + this.avgGeneratedTokens = avgGeneratedTokens; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("avgPromptTokens", this.avgPromptTokens); + jsonWriter.writeNumberField("avgGeneratedTokens", this.avgGeneratedTokens); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ModelCapacityCalculatorWorkloadRequestParam from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ModelCapacityCalculatorWorkloadRequestParam if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ModelCapacityCalculatorWorkloadRequestParam. + */ + public static ModelCapacityCalculatorWorkloadRequestParam fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ModelCapacityCalculatorWorkloadRequestParam deserializedModelCapacityCalculatorWorkloadRequestParam + = new ModelCapacityCalculatorWorkloadRequestParam(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("avgPromptTokens".equals(fieldName)) { + deserializedModelCapacityCalculatorWorkloadRequestParam.avgPromptTokens + = reader.getNullable(JsonReader::getLong); + } else if ("avgGeneratedTokens".equals(fieldName)) { + deserializedModelCapacityCalculatorWorkloadRequestParam.avgGeneratedTokens + = reader.getNullable(JsonReader::getLong); + } else { + reader.skipChildren(); + } + } + + return deserializedModelCapacityCalculatorWorkloadRequestParam; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResult.java new file mode 100644 index 0000000000000..6bed875ee3396 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResult.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services accounts operation response. + */ +@Fluent +public final class ModelCapacityListResult implements JsonSerializable { + /* + * The link used to get the next page of ModelSkuCapacity. + */ + private String nextLink; + + /* + * Gets the list of Cognitive Services accounts ModelSkuCapacity. + */ + private List value; + + /** + * Creates an instance of ModelCapacityListResult class. + */ + public ModelCapacityListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of ModelSkuCapacity. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of ModelSkuCapacity. + * + * @param nextLink the nextLink value to set. + * @return the ModelCapacityListResult object itself. + */ + public ModelCapacityListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: Gets the list of Cognitive Services accounts ModelSkuCapacity. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Gets the list of Cognitive Services accounts ModelSkuCapacity. + * + * @param value the value value to set. + * @return the ModelCapacityListResult object itself. + */ + public ModelCapacityListResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ModelCapacityListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ModelCapacityListResult if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ModelCapacityListResult. + */ + public static ModelCapacityListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ModelCapacityListResult deserializedModelCapacityListResult = new ModelCapacityListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedModelCapacityListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ModelCapacityListResultValueItemInner.fromJson(reader1)); + deserializedModelCapacityListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedModelCapacityListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResultValueItem.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResultValueItem.java new file mode 100644 index 0000000000000..431514cdc3e55 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResultValueItem.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; + +/** + * An immutable client-side representation of ModelCapacityListResultValueItem. + */ +public interface ModelCapacityListResultValueItem { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The location of the Model Sku Capacity. + * + * @return the location value. + */ + String location(); + + /** + * Gets the properties property: Cognitive Services account ModelSkuCapacity. + * + * @return the properties value. + */ + ModelSkuCapacityProperties properties(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner + * object. + * + * @return the inner object. + */ + ModelCapacityListResultValueItemInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelLifecycleStatus.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelLifecycleStatus.java index 5b47c8a787c01..8b91dc1b389bb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelLifecycleStatus.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelLifecycleStatus.java @@ -12,15 +12,30 @@ */ public final class ModelLifecycleStatus extends ExpandableStringEnum { /** - * Static value GenerallyAvailable for ModelLifecycleStatus. + * Static value Stable for ModelLifecycleStatus. */ - public static final ModelLifecycleStatus GENERALLY_AVAILABLE = fromString("GenerallyAvailable"); + public static final ModelLifecycleStatus STABLE = fromString("Stable"); /** * Static value Preview for ModelLifecycleStatus. */ public static final ModelLifecycleStatus PREVIEW = fromString("Preview"); + /** + * Static value GenerallyAvailable for ModelLifecycleStatus. + */ + public static final ModelLifecycleStatus GENERALLY_AVAILABLE = fromString("GenerallyAvailable"); + + /** + * Static value Deprecating for ModelLifecycleStatus. + */ + public static final ModelLifecycleStatus DEPRECATING = fromString("Deprecating"); + + /** + * Static value Deprecated for ModelLifecycleStatus. + */ + public static final ModelLifecycleStatus DEPRECATED = fromString("Deprecated"); + /** * Creates a new instance of ModelLifecycleStatus value. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSku.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSku.java index cfbc572aef1df..f5543a11cdd69 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSku.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSku.java @@ -45,6 +45,11 @@ public final class ModelSku implements JsonSerializable { */ private List rateLimits; + /* + * The list of billing meter info. + */ + private List cost; + /** * Creates an instance of ModelSku class. */ @@ -151,6 +156,26 @@ public ModelSku withRateLimits(List rateLimits) { return this; } + /** + * Get the cost property: The list of billing meter info. + * + * @return the cost value. + */ + public List cost() { + return this.cost; + } + + /** + * Set the cost property: The list of billing meter info. + * + * @param cost the cost value to set. + * @return the ModelSku object itself. + */ + public ModelSku withCost(List cost) { + this.cost = cost; + return this; + } + /** * Validates the instance. * @@ -163,6 +188,9 @@ public void validate() { if (rateLimits() != null) { rateLimits().forEach(e -> e.validate()); } + if (cost() != null) { + cost().forEach(e -> e.validate()); + } } /** @@ -177,6 +205,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.deprecationDate == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.deprecationDate)); jsonWriter.writeJsonField("capacity", this.capacity); jsonWriter.writeArrayField("rateLimits", this.rateLimits, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("cost", this.cost, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -207,6 +236,9 @@ public static ModelSku fromJson(JsonReader jsonReader) throws IOException { } else if ("rateLimits".equals(fieldName)) { List rateLimits = reader.readArray(reader1 -> CallRateLimit.fromJson(reader1)); deserializedModelSku.rateLimits = rateLimits; + } else if ("cost".equals(fieldName)) { + List cost = reader.readArray(reader1 -> BillingMeterInfo.fromJson(reader1)); + deserializedModelSku.cost = cost; } else { reader.skipChildren(); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSkuCapacityProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSkuCapacityProperties.java new file mode 100644 index 0000000000000..da27c7a8c9a84 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSkuCapacityProperties.java @@ -0,0 +1,183 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Cognitive Services account ModelSkuCapacity. + */ +@Fluent +public final class ModelSkuCapacityProperties implements JsonSerializable { + /* + * Properties of Cognitive Services account deployment model. + */ + private DeploymentModel model; + + /* + * The skuName property. + */ + private String skuName; + + /* + * The available capacity for deployment with this model and sku. + */ + private Float availableCapacity; + + /* + * The available capacity for deployment with a fine-tune version of this model and sku. + */ + private Float availableFinetuneCapacity; + + /** + * Creates an instance of ModelSkuCapacityProperties class. + */ + public ModelSkuCapacityProperties() { + } + + /** + * Get the model property: Properties of Cognitive Services account deployment model. + * + * @return the model value. + */ + public DeploymentModel model() { + return this.model; + } + + /** + * Set the model property: Properties of Cognitive Services account deployment model. + * + * @param model the model value to set. + * @return the ModelSkuCapacityProperties object itself. + */ + public ModelSkuCapacityProperties withModel(DeploymentModel model) { + this.model = model; + return this; + } + + /** + * Get the skuName property: The skuName property. + * + * @return the skuName value. + */ + public String skuName() { + return this.skuName; + } + + /** + * Set the skuName property: The skuName property. + * + * @param skuName the skuName value to set. + * @return the ModelSkuCapacityProperties object itself. + */ + public ModelSkuCapacityProperties withSkuName(String skuName) { + this.skuName = skuName; + return this; + } + + /** + * Get the availableCapacity property: The available capacity for deployment with this model and sku. + * + * @return the availableCapacity value. + */ + public Float availableCapacity() { + return this.availableCapacity; + } + + /** + * Set the availableCapacity property: The available capacity for deployment with this model and sku. + * + * @param availableCapacity the availableCapacity value to set. + * @return the ModelSkuCapacityProperties object itself. + */ + public ModelSkuCapacityProperties withAvailableCapacity(Float availableCapacity) { + this.availableCapacity = availableCapacity; + return this; + } + + /** + * Get the availableFinetuneCapacity property: The available capacity for deployment with a fine-tune version of + * this model and sku. + * + * @return the availableFinetuneCapacity value. + */ + public Float availableFinetuneCapacity() { + return this.availableFinetuneCapacity; + } + + /** + * Set the availableFinetuneCapacity property: The available capacity for deployment with a fine-tune version of + * this model and sku. + * + * @param availableFinetuneCapacity the availableFinetuneCapacity value to set. + * @return the ModelSkuCapacityProperties object itself. + */ + public ModelSkuCapacityProperties withAvailableFinetuneCapacity(Float availableFinetuneCapacity) { + this.availableFinetuneCapacity = availableFinetuneCapacity; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (model() != null) { + model().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("model", this.model); + jsonWriter.writeStringField("skuName", this.skuName); + jsonWriter.writeNumberField("availableCapacity", this.availableCapacity); + jsonWriter.writeNumberField("availableFinetuneCapacity", this.availableFinetuneCapacity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ModelSkuCapacityProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ModelSkuCapacityProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ModelSkuCapacityProperties. + */ + public static ModelSkuCapacityProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ModelSkuCapacityProperties deserializedModelSkuCapacityProperties = new ModelSkuCapacityProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("model".equals(fieldName)) { + deserializedModelSkuCapacityProperties.model = DeploymentModel.fromJson(reader); + } else if ("skuName".equals(fieldName)) { + deserializedModelSkuCapacityProperties.skuName = reader.getString(); + } else if ("availableCapacity".equals(fieldName)) { + deserializedModelSkuCapacityProperties.availableCapacity = reader.getNullable(JsonReader::getFloat); + } else if ("availableFinetuneCapacity".equals(fieldName)) { + deserializedModelSkuCapacityProperties.availableFinetuneCapacity + = reader.getNullable(JsonReader::getFloat); + } else { + reader.skipChildren(); + } + } + + return deserializedModelSkuCapacityProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleSet.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleSet.java index 42068d0d6c9f2..732d51ffb935e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleSet.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleSet.java @@ -23,6 +23,11 @@ public final class NetworkRuleSet implements JsonSerializable { */ private NetworkRuleAction defaultAction; + /* + * Setting for trusted services. + */ + private ByPassSelection bypass; + /* * The list of IP address rules. */ @@ -61,6 +66,26 @@ public NetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction) { return this; } + /** + * Get the bypass property: Setting for trusted services. + * + * @return the bypass value. + */ + public ByPassSelection bypass() { + return this.bypass; + } + + /** + * Set the bypass property: Setting for trusted services. + * + * @param bypass the bypass value to set. + * @return the NetworkRuleSet object itself. + */ + public NetworkRuleSet withBypass(ByPassSelection bypass) { + this.bypass = bypass; + return this; + } + /** * Get the ipRules property: The list of IP address rules. * @@ -122,6 +147,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("defaultAction", this.defaultAction == null ? null : this.defaultAction.toString()); + jsonWriter.writeStringField("bypass", this.bypass == null ? null : this.bypass.toString()); jsonWriter.writeArrayField("ipRules", this.ipRules, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("virtualNetworkRules", this.virtualNetworkRules, (writer, element) -> writer.writeJson(element)); @@ -145,6 +171,8 @@ public static NetworkRuleSet fromJson(JsonReader jsonReader) throws IOException if ("defaultAction".equals(fieldName)) { deserializedNetworkRuleSet.defaultAction = NetworkRuleAction.fromString(reader.getString()); + } else if ("bypass".equals(fieldName)) { + deserializedNetworkRuleSet.bypass = ByPassSelection.fromString(reader.getString()); } else if ("ipRules".equals(fieldName)) { List ipRules = reader.readArray(reader1 -> IpRule.fromJson(reader1)); deserializedNetworkRuleSet.ipRules = ipRules; diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeter.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeter.java new file mode 100644 index 0000000000000..149d5276aac9c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeter.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Information about a linked Network Security Perimeter. + */ +@Fluent +public final class NetworkSecurityPerimeter implements JsonSerializable { + /* + * Fully qualified identifier of the resource + */ + private String id; + + /* + * Guid of the resource + */ + private String perimeterGuid; + + /* + * Location of the resource + */ + private String location; + + /** + * Creates an instance of NetworkSecurityPerimeter class. + */ + public NetworkSecurityPerimeter() { + } + + /** + * Get the id property: Fully qualified identifier of the resource. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Fully qualified identifier of the resource. + * + * @param id the id value to set. + * @return the NetworkSecurityPerimeter object itself. + */ + public NetworkSecurityPerimeter withId(String id) { + this.id = id; + return this; + } + + /** + * Get the perimeterGuid property: Guid of the resource. + * + * @return the perimeterGuid value. + */ + public String perimeterGuid() { + return this.perimeterGuid; + } + + /** + * Set the perimeterGuid property: Guid of the resource. + * + * @param perimeterGuid the perimeterGuid value to set. + * @return the NetworkSecurityPerimeter object itself. + */ + public NetworkSecurityPerimeter withPerimeterGuid(String perimeterGuid) { + this.perimeterGuid = perimeterGuid; + return this; + } + + /** + * Get the location property: Location of the resource. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: Location of the resource. + * + * @param location the location value to set. + * @return the NetworkSecurityPerimeter object itself. + */ + public NetworkSecurityPerimeter withLocation(String location) { + this.location = location; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("perimeterGuid", this.perimeterGuid); + jsonWriter.writeStringField("location", this.location); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeter from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeter if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeter. + */ + public static NetworkSecurityPerimeter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeter deserializedNetworkSecurityPerimeter = new NetworkSecurityPerimeter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedNetworkSecurityPerimeter.id = reader.getString(); + } else if ("perimeterGuid".equals(fieldName)) { + deserializedNetworkSecurityPerimeter.perimeterGuid = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedNetworkSecurityPerimeter.location = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeter; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRule.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRule.java new file mode 100644 index 0000000000000..43b8c33d5f42e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRule.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Network Security Perimeter Access Rule. + */ +@Fluent +public final class NetworkSecurityPerimeterAccessRule implements JsonSerializable { + /* + * Network Security Perimeter Access Rule Name + */ + private String name; + + /* + * Properties of Network Security Perimeter Access Rule + */ + private NetworkSecurityPerimeterAccessRuleProperties properties; + + /** + * Creates an instance of NetworkSecurityPerimeterAccessRule class. + */ + public NetworkSecurityPerimeterAccessRule() { + } + + /** + * Get the name property: Network Security Perimeter Access Rule Name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Network Security Perimeter Access Rule Name. + * + * @param name the name value to set. + * @return the NetworkSecurityPerimeterAccessRule object itself. + */ + public NetworkSecurityPerimeterAccessRule withName(String name) { + this.name = name; + return this; + } + + /** + * Get the properties property: Properties of Network Security Perimeter Access Rule. + * + * @return the properties value. + */ + public NetworkSecurityPerimeterAccessRuleProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Network Security Perimeter Access Rule. + * + * @param properties the properties value to set. + * @return the NetworkSecurityPerimeterAccessRule object itself. + */ + public NetworkSecurityPerimeterAccessRule withProperties(NetworkSecurityPerimeterAccessRuleProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterAccessRule from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterAccessRule if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterAccessRule. + */ + public static NetworkSecurityPerimeterAccessRule fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterAccessRule deserializedNetworkSecurityPerimeterAccessRule + = new NetworkSecurityPerimeterAccessRule(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedNetworkSecurityPerimeterAccessRule.name = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedNetworkSecurityPerimeterAccessRule.properties + = NetworkSecurityPerimeterAccessRuleProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterAccessRule; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRuleProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRuleProperties.java new file mode 100644 index 0000000000000..c35f17fb96109 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRuleProperties.java @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The Properties of Network Security Perimeter Rule. + */ +@Fluent +public final class NetworkSecurityPerimeterAccessRuleProperties + implements JsonSerializable { + /* + * Direction of Access Rule + */ + private NspAccessRuleDirection direction; + + /* + * Address prefixes for inbound rules + */ + private List addressPrefixes; + + /* + * Subscriptions for inbound rules + */ + private List subscriptions; + + /* + * NetworkSecurityPerimeters for inbound rules + */ + private List networkSecurityPerimeters; + + /* + * Fully qualified domain name for outbound rules + */ + private List fullyQualifiedDomainNames; + + /** + * Creates an instance of NetworkSecurityPerimeterAccessRuleProperties class. + */ + public NetworkSecurityPerimeterAccessRuleProperties() { + } + + /** + * Get the direction property: Direction of Access Rule. + * + * @return the direction value. + */ + public NspAccessRuleDirection direction() { + return this.direction; + } + + /** + * Set the direction property: Direction of Access Rule. + * + * @param direction the direction value to set. + * @return the NetworkSecurityPerimeterAccessRuleProperties object itself. + */ + public NetworkSecurityPerimeterAccessRuleProperties withDirection(NspAccessRuleDirection direction) { + this.direction = direction; + return this; + } + + /** + * Get the addressPrefixes property: Address prefixes for inbound rules. + * + * @return the addressPrefixes value. + */ + public List addressPrefixes() { + return this.addressPrefixes; + } + + /** + * Set the addressPrefixes property: Address prefixes for inbound rules. + * + * @param addressPrefixes the addressPrefixes value to set. + * @return the NetworkSecurityPerimeterAccessRuleProperties object itself. + */ + public NetworkSecurityPerimeterAccessRuleProperties withAddressPrefixes(List addressPrefixes) { + this.addressPrefixes = addressPrefixes; + return this; + } + + /** + * Get the subscriptions property: Subscriptions for inbound rules. + * + * @return the subscriptions value. + */ + public List subscriptions() { + return this.subscriptions; + } + + /** + * Set the subscriptions property: Subscriptions for inbound rules. + * + * @param subscriptions the subscriptions value to set. + * @return the NetworkSecurityPerimeterAccessRuleProperties object itself. + */ + public NetworkSecurityPerimeterAccessRuleProperties + withSubscriptions(List subscriptions) { + this.subscriptions = subscriptions; + return this; + } + + /** + * Get the networkSecurityPerimeters property: NetworkSecurityPerimeters for inbound rules. + * + * @return the networkSecurityPerimeters value. + */ + public List networkSecurityPerimeters() { + return this.networkSecurityPerimeters; + } + + /** + * Set the networkSecurityPerimeters property: NetworkSecurityPerimeters for inbound rules. + * + * @param networkSecurityPerimeters the networkSecurityPerimeters value to set. + * @return the NetworkSecurityPerimeterAccessRuleProperties object itself. + */ + public NetworkSecurityPerimeterAccessRuleProperties + withNetworkSecurityPerimeters(List networkSecurityPerimeters) { + this.networkSecurityPerimeters = networkSecurityPerimeters; + return this; + } + + /** + * Get the fullyQualifiedDomainNames property: Fully qualified domain name for outbound rules. + * + * @return the fullyQualifiedDomainNames value. + */ + public List fullyQualifiedDomainNames() { + return this.fullyQualifiedDomainNames; + } + + /** + * Set the fullyQualifiedDomainNames property: Fully qualified domain name for outbound rules. + * + * @param fullyQualifiedDomainNames the fullyQualifiedDomainNames value to set. + * @return the NetworkSecurityPerimeterAccessRuleProperties object itself. + */ + public NetworkSecurityPerimeterAccessRuleProperties + withFullyQualifiedDomainNames(List fullyQualifiedDomainNames) { + this.fullyQualifiedDomainNames = fullyQualifiedDomainNames; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (subscriptions() != null) { + subscriptions().forEach(e -> e.validate()); + } + if (networkSecurityPerimeters() != null) { + networkSecurityPerimeters().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("direction", this.direction == null ? null : this.direction.toString()); + jsonWriter.writeArrayField("addressPrefixes", this.addressPrefixes, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("subscriptions", this.subscriptions, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("networkSecurityPerimeters", this.networkSecurityPerimeters, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("fullyQualifiedDomainNames", this.fullyQualifiedDomainNames, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterAccessRuleProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterAccessRuleProperties if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterAccessRuleProperties. + */ + public static NetworkSecurityPerimeterAccessRuleProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterAccessRuleProperties deserializedNetworkSecurityPerimeterAccessRuleProperties + = new NetworkSecurityPerimeterAccessRuleProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("direction".equals(fieldName)) { + deserializedNetworkSecurityPerimeterAccessRuleProperties.direction + = NspAccessRuleDirection.fromString(reader.getString()); + } else if ("addressPrefixes".equals(fieldName)) { + List addressPrefixes = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkSecurityPerimeterAccessRuleProperties.addressPrefixes = addressPrefixes; + } else if ("subscriptions".equals(fieldName)) { + List subscriptions + = reader.readArray( + reader1 -> NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.fromJson(reader1)); + deserializedNetworkSecurityPerimeterAccessRuleProperties.subscriptions = subscriptions; + } else if ("networkSecurityPerimeters".equals(fieldName)) { + List networkSecurityPerimeters + = reader.readArray(reader1 -> NetworkSecurityPerimeter.fromJson(reader1)); + deserializedNetworkSecurityPerimeterAccessRuleProperties.networkSecurityPerimeters + = networkSecurityPerimeters; + } else if ("fullyQualifiedDomainNames".equals(fieldName)) { + List fullyQualifiedDomainNames = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkSecurityPerimeterAccessRuleProperties.fullyQualifiedDomainNames + = fullyQualifiedDomainNames; + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterAccessRuleProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.java new file mode 100644 index 0000000000000..f03395794eef6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Subscription for inbound rule. + */ +@Fluent +public final class NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem + implements JsonSerializable { + /* + * Fully qualified identifier of subscription + */ + private String id; + + /** + * Creates an instance of NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem class. + */ + public NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem() { + } + + /** + * Get the id property: Fully qualified identifier of subscription. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: Fully qualified identifier of subscription. + * + * @param id the id value to set. + * @return the NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem object itself. + */ + public NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem withId(String id) { + this.id = id; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem if the JsonReader was + * pointing to an instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the + * NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem. + */ + public static NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem deserializedNetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem + = new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedNetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.id = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfiguration.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfiguration.java new file mode 100644 index 0000000000000..05723f00d2742 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfiguration.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; + +/** + * An immutable client-side representation of NetworkSecurityPerimeterConfiguration. + */ +public interface NetworkSecurityPerimeterConfiguration { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: NSP Configuration properties. + * + * @return the properties value. + */ + NetworkSecurityPerimeterConfigurationProperties properties(); + + /** + * Gets the inner + * com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner object. + * + * @return the inner object. + */ + NetworkSecurityPerimeterConfigurationInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationAssociationInfo.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationAssociationInfo.java new file mode 100644 index 0000000000000..19a76de9e7828 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationAssociationInfo.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Network Security Perimeter Configuration Association Information. + */ +@Fluent +public final class NetworkSecurityPerimeterConfigurationAssociationInfo + implements JsonSerializable { + /* + * Name of the resource association + */ + private String name; + + /* + * Access Mode of the resource association + */ + private String accessMode; + + /** + * Creates an instance of NetworkSecurityPerimeterConfigurationAssociationInfo class. + */ + public NetworkSecurityPerimeterConfigurationAssociationInfo() { + } + + /** + * Get the name property: Name of the resource association. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the resource association. + * + * @param name the name value to set. + * @return the NetworkSecurityPerimeterConfigurationAssociationInfo object itself. + */ + public NetworkSecurityPerimeterConfigurationAssociationInfo withName(String name) { + this.name = name; + return this; + } + + /** + * Get the accessMode property: Access Mode of the resource association. + * + * @return the accessMode value. + */ + public String accessMode() { + return this.accessMode; + } + + /** + * Set the accessMode property: Access Mode of the resource association. + * + * @param accessMode the accessMode value to set. + * @return the NetworkSecurityPerimeterConfigurationAssociationInfo object itself. + */ + public NetworkSecurityPerimeterConfigurationAssociationInfo withAccessMode(String accessMode) { + this.accessMode = accessMode; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("accessMode", this.accessMode); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterConfigurationAssociationInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterConfigurationAssociationInfo if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterConfigurationAssociationInfo. + */ + public static NetworkSecurityPerimeterConfigurationAssociationInfo fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterConfigurationAssociationInfo deserializedNetworkSecurityPerimeterConfigurationAssociationInfo + = new NetworkSecurityPerimeterConfigurationAssociationInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationAssociationInfo.name = reader.getString(); + } else if ("accessMode".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationAssociationInfo.accessMode = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterConfigurationAssociationInfo; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationList.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationList.java new file mode 100644 index 0000000000000..6342681fdf5a2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationList.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; +import java.io.IOException; +import java.util.List; + +/** + * A list of NSP configurations for an Cognitive Services account. + */ +@Fluent +public final class NetworkSecurityPerimeterConfigurationList + implements JsonSerializable { + /* + * Array of NSP configurations List Result for an Cognitive Services account. + */ + private List value; + + /* + * Link to retrieve next page of results. + */ + private String nextLink; + + /** + * Creates an instance of NetworkSecurityPerimeterConfigurationList class. + */ + public NetworkSecurityPerimeterConfigurationList() { + } + + /** + * Get the value property: Array of NSP configurations List Result for an Cognitive Services account. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: Array of NSP configurations List Result for an Cognitive Services account. + * + * @param value the value value to set. + * @return the NetworkSecurityPerimeterConfigurationList object itself. + */ + public NetworkSecurityPerimeterConfigurationList withValue(List value) { + this.value = value; + return this; + } + + /** + * Get the nextLink property: Link to retrieve next page of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: Link to retrieve next page of results. + * + * @param nextLink the nextLink value to set. + * @return the NetworkSecurityPerimeterConfigurationList object itself. + */ + public NetworkSecurityPerimeterConfigurationList withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterConfigurationList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterConfigurationList if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterConfigurationList. + */ + public static NetworkSecurityPerimeterConfigurationList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterConfigurationList deserializedNetworkSecurityPerimeterConfigurationList + = new NetworkSecurityPerimeterConfigurationList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> NetworkSecurityPerimeterConfigurationInner.fromJson(reader1)); + deserializedNetworkSecurityPerimeterConfigurationList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationList.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterConfigurationList; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationProperties.java new file mode 100644 index 0000000000000..24b80b4bf89b5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationProperties.java @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The properties of an NSP Configuration. + */ +@Fluent +public final class NetworkSecurityPerimeterConfigurationProperties + implements JsonSerializable { + /* + * Provisioning state of NetworkSecurityPerimeter configuration + */ + private String provisioningState; + + /* + * List of Provisioning Issues + */ + private List provisioningIssues; + + /* + * Information about a linked Network Security Perimeter + */ + private NetworkSecurityPerimeter networkSecurityPerimeter; + + /* + * Network Security Perimeter Configuration Association Information + */ + private NetworkSecurityPerimeterConfigurationAssociationInfo resourceAssociation; + + /* + * Network Security Perimeter Profile Information + */ + private NetworkSecurityPerimeterProfileInfo profile; + + /** + * Creates an instance of NetworkSecurityPerimeterConfigurationProperties class. + */ + public NetworkSecurityPerimeterConfigurationProperties() { + } + + /** + * Get the provisioningState property: Provisioning state of NetworkSecurityPerimeter configuration. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the provisioningIssues property: List of Provisioning Issues. + * + * @return the provisioningIssues value. + */ + public List provisioningIssues() { + return this.provisioningIssues; + } + + /** + * Set the provisioningIssues property: List of Provisioning Issues. + * + * @param provisioningIssues the provisioningIssues value to set. + * @return the NetworkSecurityPerimeterConfigurationProperties object itself. + */ + public NetworkSecurityPerimeterConfigurationProperties + withProvisioningIssues(List provisioningIssues) { + this.provisioningIssues = provisioningIssues; + return this; + } + + /** + * Get the networkSecurityPerimeter property: Information about a linked Network Security Perimeter. + * + * @return the networkSecurityPerimeter value. + */ + public NetworkSecurityPerimeter networkSecurityPerimeter() { + return this.networkSecurityPerimeter; + } + + /** + * Set the networkSecurityPerimeter property: Information about a linked Network Security Perimeter. + * + * @param networkSecurityPerimeter the networkSecurityPerimeter value to set. + * @return the NetworkSecurityPerimeterConfigurationProperties object itself. + */ + public NetworkSecurityPerimeterConfigurationProperties + withNetworkSecurityPerimeter(NetworkSecurityPerimeter networkSecurityPerimeter) { + this.networkSecurityPerimeter = networkSecurityPerimeter; + return this; + } + + /** + * Get the resourceAssociation property: Network Security Perimeter Configuration Association Information. + * + * @return the resourceAssociation value. + */ + public NetworkSecurityPerimeterConfigurationAssociationInfo resourceAssociation() { + return this.resourceAssociation; + } + + /** + * Set the resourceAssociation property: Network Security Perimeter Configuration Association Information. + * + * @param resourceAssociation the resourceAssociation value to set. + * @return the NetworkSecurityPerimeterConfigurationProperties object itself. + */ + public NetworkSecurityPerimeterConfigurationProperties + withResourceAssociation(NetworkSecurityPerimeterConfigurationAssociationInfo resourceAssociation) { + this.resourceAssociation = resourceAssociation; + return this; + } + + /** + * Get the profile property: Network Security Perimeter Profile Information. + * + * @return the profile value. + */ + public NetworkSecurityPerimeterProfileInfo profile() { + return this.profile; + } + + /** + * Set the profile property: Network Security Perimeter Profile Information. + * + * @param profile the profile value to set. + * @return the NetworkSecurityPerimeterConfigurationProperties object itself. + */ + public NetworkSecurityPerimeterConfigurationProperties withProfile(NetworkSecurityPerimeterProfileInfo profile) { + this.profile = profile; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (provisioningIssues() != null) { + provisioningIssues().forEach(e -> e.validate()); + } + if (networkSecurityPerimeter() != null) { + networkSecurityPerimeter().validate(); + } + if (resourceAssociation() != null) { + resourceAssociation().validate(); + } + if (profile() != null) { + profile().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("provisioningIssues", this.provisioningIssues, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("networkSecurityPerimeter", this.networkSecurityPerimeter); + jsonWriter.writeJsonField("resourceAssociation", this.resourceAssociation); + jsonWriter.writeJsonField("profile", this.profile); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterConfigurationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterConfigurationProperties if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterConfigurationProperties. + */ + public static NetworkSecurityPerimeterConfigurationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterConfigurationProperties deserializedNetworkSecurityPerimeterConfigurationProperties + = new NetworkSecurityPerimeterConfigurationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationProperties.provisioningState = reader.getString(); + } else if ("provisioningIssues".equals(fieldName)) { + List provisioningIssues + = reader.readArray(reader1 -> ProvisioningIssue.fromJson(reader1)); + deserializedNetworkSecurityPerimeterConfigurationProperties.provisioningIssues = provisioningIssues; + } else if ("networkSecurityPerimeter".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationProperties.networkSecurityPerimeter + = NetworkSecurityPerimeter.fromJson(reader); + } else if ("resourceAssociation".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationProperties.resourceAssociation + = NetworkSecurityPerimeterConfigurationAssociationInfo.fromJson(reader); + } else if ("profile".equals(fieldName)) { + deserializedNetworkSecurityPerimeterConfigurationProperties.profile + = NetworkSecurityPerimeterProfileInfo.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterConfigurationProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurations.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurations.java new file mode 100644 index 0000000000000..0f80927e1b88e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurations.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of NetworkSecurityPerimeterConfigurations. + */ +public interface NetworkSecurityPerimeterConfigurations { + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets a list of NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, + Context context); + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, + String nspConfigurationName, Context context); + + /** + * Gets the specified NSP configurations for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified NSP configurations for an account. + */ + NetworkSecurityPerimeterConfiguration get(String resourceGroupName, String accountName, + String nspConfigurationName); + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account. + */ + NetworkSecurityPerimeterConfiguration reconcile(String resourceGroupName, String accountName, + String nspConfigurationName); + + /** + * Reconcile the NSP configuration for an account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param nspConfigurationName The name of the NSP Configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return nSP Configuration for an Cognitive Services account. + */ + NetworkSecurityPerimeterConfiguration reconcile(String resourceGroupName, String accountName, + String nspConfigurationName, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterProfileInfo.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterProfileInfo.java new file mode 100644 index 0000000000000..c38d47369ce0c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterProfileInfo.java @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Network Security Perimeter Profile Information. + */ +@Fluent +public final class NetworkSecurityPerimeterProfileInfo + implements JsonSerializable { + /* + * Name of the resource profile + */ + private String name; + + /* + * Access rules version of the resource profile + */ + private Long accessRulesVersion; + + /* + * The accessRules property. + */ + private List accessRules; + + /* + * Current diagnostic settings version + */ + private Long diagnosticSettingsVersion; + + /* + * List of enabled log categories + */ + private List enabledLogCategories; + + /** + * Creates an instance of NetworkSecurityPerimeterProfileInfo class. + */ + public NetworkSecurityPerimeterProfileInfo() { + } + + /** + * Get the name property: Name of the resource profile. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the resource profile. + * + * @param name the name value to set. + * @return the NetworkSecurityPerimeterProfileInfo object itself. + */ + public NetworkSecurityPerimeterProfileInfo withName(String name) { + this.name = name; + return this; + } + + /** + * Get the accessRulesVersion property: Access rules version of the resource profile. + * + * @return the accessRulesVersion value. + */ + public Long accessRulesVersion() { + return this.accessRulesVersion; + } + + /** + * Set the accessRulesVersion property: Access rules version of the resource profile. + * + * @param accessRulesVersion the accessRulesVersion value to set. + * @return the NetworkSecurityPerimeterProfileInfo object itself. + */ + public NetworkSecurityPerimeterProfileInfo withAccessRulesVersion(Long accessRulesVersion) { + this.accessRulesVersion = accessRulesVersion; + return this; + } + + /** + * Get the accessRules property: The accessRules property. + * + * @return the accessRules value. + */ + public List accessRules() { + return this.accessRules; + } + + /** + * Set the accessRules property: The accessRules property. + * + * @param accessRules the accessRules value to set. + * @return the NetworkSecurityPerimeterProfileInfo object itself. + */ + public NetworkSecurityPerimeterProfileInfo withAccessRules(List accessRules) { + this.accessRules = accessRules; + return this; + } + + /** + * Get the diagnosticSettingsVersion property: Current diagnostic settings version. + * + * @return the diagnosticSettingsVersion value. + */ + public Long diagnosticSettingsVersion() { + return this.diagnosticSettingsVersion; + } + + /** + * Set the diagnosticSettingsVersion property: Current diagnostic settings version. + * + * @param diagnosticSettingsVersion the diagnosticSettingsVersion value to set. + * @return the NetworkSecurityPerimeterProfileInfo object itself. + */ + public NetworkSecurityPerimeterProfileInfo withDiagnosticSettingsVersion(Long diagnosticSettingsVersion) { + this.diagnosticSettingsVersion = diagnosticSettingsVersion; + return this; + } + + /** + * Get the enabledLogCategories property: List of enabled log categories. + * + * @return the enabledLogCategories value. + */ + public List enabledLogCategories() { + return this.enabledLogCategories; + } + + /** + * Set the enabledLogCategories property: List of enabled log categories. + * + * @param enabledLogCategories the enabledLogCategories value to set. + * @return the NetworkSecurityPerimeterProfileInfo object itself. + */ + public NetworkSecurityPerimeterProfileInfo withEnabledLogCategories(List enabledLogCategories) { + this.enabledLogCategories = enabledLogCategories; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (accessRules() != null) { + accessRules().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeNumberField("accessRulesVersion", this.accessRulesVersion); + jsonWriter.writeArrayField("accessRules", this.accessRules, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeNumberField("diagnosticSettingsVersion", this.diagnosticSettingsVersion); + jsonWriter.writeArrayField("enabledLogCategories", this.enabledLogCategories, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkSecurityPerimeterProfileInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkSecurityPerimeterProfileInfo if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterProfileInfo. + */ + public static NetworkSecurityPerimeterProfileInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkSecurityPerimeterProfileInfo deserializedNetworkSecurityPerimeterProfileInfo + = new NetworkSecurityPerimeterProfileInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedNetworkSecurityPerimeterProfileInfo.name = reader.getString(); + } else if ("accessRulesVersion".equals(fieldName)) { + deserializedNetworkSecurityPerimeterProfileInfo.accessRulesVersion + = reader.getNullable(JsonReader::getLong); + } else if ("accessRules".equals(fieldName)) { + List accessRules + = reader.readArray(reader1 -> NetworkSecurityPerimeterAccessRule.fromJson(reader1)); + deserializedNetworkSecurityPerimeterProfileInfo.accessRules = accessRules; + } else if ("diagnosticSettingsVersion".equals(fieldName)) { + deserializedNetworkSecurityPerimeterProfileInfo.diagnosticSettingsVersion + = reader.getNullable(JsonReader::getLong); + } else if ("enabledLogCategories".equals(fieldName)) { + List enabledLogCategories = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkSecurityPerimeterProfileInfo.enabledLogCategories = enabledLogCategories; + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkSecurityPerimeterProfileInfo; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NspAccessRuleDirection.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NspAccessRuleDirection.java new file mode 100644 index 0000000000000..d466076864837 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/NspAccessRuleDirection.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Direction of Access Rule. + */ +public final class NspAccessRuleDirection extends ExpandableStringEnum { + /** + * Static value Inbound for NspAccessRuleDirection. + */ + public static final NspAccessRuleDirection INBOUND = fromString("Inbound"); + + /** + * Static value Outbound for NspAccessRuleDirection. + */ + public static final NspAccessRuleDirection OUTBOUND = fromString("Outbound"); + + /** + * Creates a new instance of NspAccessRuleDirection value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NspAccessRuleDirection() { + } + + /** + * Creates or finds a NspAccessRuleDirection from its string representation. + * + * @param name a name to look for. + * @return the corresponding NspAccessRuleDirection. + */ + public static NspAccessRuleDirection fromString(String name) { + return fromString(name, NspAccessRuleDirection.class); + } + + /** + * Gets known NspAccessRuleDirection values. + * + * @return known NspAccessRuleDirection values. + */ + public static Collection values() { + return values(NspAccessRuleDirection.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssue.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssue.java new file mode 100644 index 0000000000000..1ea7c25ebe261 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssue.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The ProvisioningIssue model. + */ +@Fluent +public final class ProvisioningIssue implements JsonSerializable { + /* + * Name of the NSP provisioning issue + */ + private String name; + + /* + * Properties of Provisioning Issue + */ + private ProvisioningIssueProperties properties; + + /** + * Creates an instance of ProvisioningIssue class. + */ + public ProvisioningIssue() { + } + + /** + * Get the name property: Name of the NSP provisioning issue. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the NSP provisioning issue. + * + * @param name the name value to set. + * @return the ProvisioningIssue object itself. + */ + public ProvisioningIssue withName(String name) { + this.name = name; + return this; + } + + /** + * Get the properties property: Properties of Provisioning Issue. + * + * @return the properties value. + */ + public ProvisioningIssueProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Provisioning Issue. + * + * @param properties the properties value to set. + * @return the ProvisioningIssue object itself. + */ + public ProvisioningIssue withProperties(ProvisioningIssueProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProvisioningIssue from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProvisioningIssue if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ProvisioningIssue. + */ + public static ProvisioningIssue fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProvisioningIssue deserializedProvisioningIssue = new ProvisioningIssue(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedProvisioningIssue.name = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedProvisioningIssue.properties = ProvisioningIssueProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedProvisioningIssue; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssueProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssueProperties.java new file mode 100644 index 0000000000000..c9820fa618a9f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssueProperties.java @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Properties of Provisioning Issue. + */ +@Fluent +public final class ProvisioningIssueProperties implements JsonSerializable { + /* + * Type of Issue + */ + private String issueType; + + /* + * Severity of the issue + */ + private String severity; + + /* + * Description of the issue + */ + private String description; + + /* + * IDs of resources that can be associated to the same perimeter to remediate the issue. + */ + private List suggestedResourceIds; + + /* + * Optional array, suggested access rules + */ + private List suggestedAccessRules; + + /** + * Creates an instance of ProvisioningIssueProperties class. + */ + public ProvisioningIssueProperties() { + } + + /** + * Get the issueType property: Type of Issue. + * + * @return the issueType value. + */ + public String issueType() { + return this.issueType; + } + + /** + * Set the issueType property: Type of Issue. + * + * @param issueType the issueType value to set. + * @return the ProvisioningIssueProperties object itself. + */ + public ProvisioningIssueProperties withIssueType(String issueType) { + this.issueType = issueType; + return this; + } + + /** + * Get the severity property: Severity of the issue. + * + * @return the severity value. + */ + public String severity() { + return this.severity; + } + + /** + * Set the severity property: Severity of the issue. + * + * @param severity the severity value to set. + * @return the ProvisioningIssueProperties object itself. + */ + public ProvisioningIssueProperties withSeverity(String severity) { + this.severity = severity; + return this; + } + + /** + * Get the description property: Description of the issue. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Set the description property: Description of the issue. + * + * @param description the description value to set. + * @return the ProvisioningIssueProperties object itself. + */ + public ProvisioningIssueProperties withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the suggestedResourceIds property: IDs of resources that can be associated to the same perimeter to remediate + * the issue. + * + * @return the suggestedResourceIds value. + */ + public List suggestedResourceIds() { + return this.suggestedResourceIds; + } + + /** + * Set the suggestedResourceIds property: IDs of resources that can be associated to the same perimeter to remediate + * the issue. + * + * @param suggestedResourceIds the suggestedResourceIds value to set. + * @return the ProvisioningIssueProperties object itself. + */ + public ProvisioningIssueProperties withSuggestedResourceIds(List suggestedResourceIds) { + this.suggestedResourceIds = suggestedResourceIds; + return this; + } + + /** + * Get the suggestedAccessRules property: Optional array, suggested access rules. + * + * @return the suggestedAccessRules value. + */ + public List suggestedAccessRules() { + return this.suggestedAccessRules; + } + + /** + * Set the suggestedAccessRules property: Optional array, suggested access rules. + * + * @param suggestedAccessRules the suggestedAccessRules value to set. + * @return the ProvisioningIssueProperties object itself. + */ + public ProvisioningIssueProperties + withSuggestedAccessRules(List suggestedAccessRules) { + this.suggestedAccessRules = suggestedAccessRules; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (suggestedAccessRules() != null) { + suggestedAccessRules().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("issueType", this.issueType); + jsonWriter.writeStringField("severity", this.severity); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeArrayField("suggestedResourceIds", this.suggestedResourceIds, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("suggestedAccessRules", this.suggestedAccessRules, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProvisioningIssueProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProvisioningIssueProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ProvisioningIssueProperties. + */ + public static ProvisioningIssueProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProvisioningIssueProperties deserializedProvisioningIssueProperties = new ProvisioningIssueProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("issueType".equals(fieldName)) { + deserializedProvisioningIssueProperties.issueType = reader.getString(); + } else if ("severity".equals(fieldName)) { + deserializedProvisioningIssueProperties.severity = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedProvisioningIssueProperties.description = reader.getString(); + } else if ("suggestedResourceIds".equals(fieldName)) { + List suggestedResourceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedProvisioningIssueProperties.suggestedResourceIds = suggestedResourceIds; + } else if ("suggestedAccessRules".equals(fieldName)) { + List suggestedAccessRules + = reader.readArray(reader1 -> NetworkSecurityPerimeterAccessRule.fromJson(reader1)); + deserializedProvisioningIssueProperties.suggestedAccessRules = suggestedAccessRules; + } else { + reader.skipChildren(); + } + } + + return deserializedProvisioningIssueProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListItemsResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListItemsResult.java new file mode 100644 index 0000000000000..b8895c15dfde6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListItemsResult.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services RAI Blocklist Items. + */ +@Fluent +public final class RaiBlockListItemsResult implements JsonSerializable { + /* + * The link used to get the next page of RaiBlocklistItems. + */ + private String nextLink; + + /* + * The list of RaiBlocklistItems. + */ + private List value; + + /** + * Creates an instance of RaiBlockListItemsResult class. + */ + public RaiBlockListItemsResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of RaiBlocklistItems. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of RaiBlocklistItems. + * + * @param nextLink the nextLink value to set. + * @return the RaiBlockListItemsResult object itself. + */ + public RaiBlockListItemsResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of RaiBlocklistItems. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of RaiBlocklistItems. + * + * @param value the value value to set. + * @return the RaiBlockListItemsResult object itself. + */ + public RaiBlockListItemsResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlockListItemsResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlockListItemsResult if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiBlockListItemsResult. + */ + public static RaiBlockListItemsResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlockListItemsResult deserializedRaiBlockListItemsResult = new RaiBlockListItemsResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedRaiBlockListItemsResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> RaiBlocklistItemInner.fromJson(reader1)); + deserializedRaiBlockListItemsResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlockListItemsResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListResult.java new file mode 100644 index 0000000000000..f41800fa5d42f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlockListResult.java @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services RAI Blocklists. + */ +@Fluent +public final class RaiBlockListResult implements JsonSerializable { + /* + * The link used to get the next page of RaiBlocklists. + */ + private String nextLink; + + /* + * The list of RaiBlocklist. + */ + private List value; + + /** + * Creates an instance of RaiBlockListResult class. + */ + public RaiBlockListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of RaiBlocklists. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of RaiBlocklists. + * + * @param nextLink the nextLink value to set. + * @return the RaiBlockListResult object itself. + */ + public RaiBlockListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of RaiBlocklist. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of RaiBlocklist. + * + * @param value the value value to set. + * @return the RaiBlockListResult object itself. + */ + public RaiBlockListResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlockListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlockListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiBlockListResult. + */ + public static RaiBlockListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlockListResult deserializedRaiBlockListResult = new RaiBlockListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedRaiBlockListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> RaiBlocklistInner.fromJson(reader1)); + deserializedRaiBlockListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlockListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklist.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklist.java new file mode 100644 index 0000000000000..4d890cf17eed5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklist.java @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import java.util.Map; + +/** + * An immutable client-side representation of RaiBlocklist. + */ +public interface RaiBlocklist { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Properties of Cognitive Services RaiBlocklist. + * + * @return the properties value. + */ + RaiBlocklistProperties properties(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner object. + * + * @return the inner object. + */ + RaiBlocklistInner innerModel(); + + /** + * The entirety of the RaiBlocklist definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The RaiBlocklist definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the RaiBlocklist definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the RaiBlocklist definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @return the next definition stage. + */ + WithCreate withExistingAccount(String resourceGroupName, String accountName); + } + + /** + * The stage of the RaiBlocklist definition which contains all the minimum required properties for the resource + * to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + RaiBlocklist create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + RaiBlocklist create(Context context); + } + + /** + * The stage of the RaiBlocklist definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the RaiBlocklist definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services RaiBlocklist.. + * + * @param properties Properties of Cognitive Services RaiBlocklist. + * @return the next definition stage. + */ + WithCreate withProperties(RaiBlocklistProperties properties); + } + } + + /** + * Begins update for the RaiBlocklist resource. + * + * @return the stage of resource update. + */ + RaiBlocklist.Update update(); + + /** + * The template for RaiBlocklist update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + RaiBlocklist apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + RaiBlocklist apply(Context context); + } + + /** + * The RaiBlocklist update stages. + */ + interface UpdateStages { + /** + * The stage of the RaiBlocklist update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the RaiBlocklist update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services RaiBlocklist.. + * + * @param properties Properties of Cognitive Services RaiBlocklist. + * @return the next definition stage. + */ + Update withProperties(RaiBlocklistProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + RaiBlocklist refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + RaiBlocklist refresh(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistConfig.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistConfig.java new file mode 100644 index 0000000000000..b192ec7570179 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistConfig.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Azure OpenAI blocklist config. + */ +@Fluent +public class RaiBlocklistConfig implements JsonSerializable { + /* + * Name of ContentFilter. + */ + private String blocklistName; + + /* + * If blocking would occur. + */ + private Boolean blocking; + + /** + * Creates an instance of RaiBlocklistConfig class. + */ + public RaiBlocklistConfig() { + } + + /** + * Get the blocklistName property: Name of ContentFilter. + * + * @return the blocklistName value. + */ + public String blocklistName() { + return this.blocklistName; + } + + /** + * Set the blocklistName property: Name of ContentFilter. + * + * @param blocklistName the blocklistName value to set. + * @return the RaiBlocklistConfig object itself. + */ + public RaiBlocklistConfig withBlocklistName(String blocklistName) { + this.blocklistName = blocklistName; + return this; + } + + /** + * Get the blocking property: If blocking would occur. + * + * @return the blocking value. + */ + public Boolean blocking() { + return this.blocking; + } + + /** + * Set the blocking property: If blocking would occur. + * + * @param blocking the blocking value to set. + * @return the RaiBlocklistConfig object itself. + */ + public RaiBlocklistConfig withBlocking(Boolean blocking) { + this.blocking = blocking; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("blocklistName", this.blocklistName); + jsonWriter.writeBooleanField("blocking", this.blocking); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlocklistConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlocklistConfig if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiBlocklistConfig. + */ + public static RaiBlocklistConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlocklistConfig deserializedRaiBlocklistConfig = new RaiBlocklistConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("blocklistName".equals(fieldName)) { + deserializedRaiBlocklistConfig.blocklistName = reader.getString(); + } else if ("blocking".equals(fieldName)) { + deserializedRaiBlocklistConfig.blocking = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlocklistConfig; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItem.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItem.java new file mode 100644 index 0000000000000..a79db6abc0ea2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItem.java @@ -0,0 +1,231 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import java.util.Map; + +/** + * An immutable client-side representation of RaiBlocklistItem. + */ +public interface RaiBlocklistItem { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Properties of Cognitive Services RaiBlocklist Item. + * + * @return the properties value. + */ + RaiBlocklistItemProperties properties(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner object. + * + * @return the inner object. + */ + RaiBlocklistItemInner innerModel(); + + /** + * The entirety of the RaiBlocklistItem definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The RaiBlocklistItem definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the RaiBlocklistItem definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the RaiBlocklistItem definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName, raiBlocklistName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @return the next definition stage. + */ + WithCreate withExistingRaiBlocklist(String resourceGroupName, String accountName, String raiBlocklistName); + } + + /** + * The stage of the RaiBlocklistItem definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + RaiBlocklistItem create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + RaiBlocklistItem create(Context context); + } + + /** + * The stage of the RaiBlocklistItem definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the RaiBlocklistItem definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services RaiBlocklist Item.. + * + * @param properties Properties of Cognitive Services RaiBlocklist Item. + * @return the next definition stage. + */ + WithCreate withProperties(RaiBlocklistItemProperties properties); + } + } + + /** + * Begins update for the RaiBlocklistItem resource. + * + * @return the stage of resource update. + */ + RaiBlocklistItem.Update update(); + + /** + * The template for RaiBlocklistItem update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + RaiBlocklistItem apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + RaiBlocklistItem apply(Context context); + } + + /** + * The RaiBlocklistItem update stages. + */ + interface UpdateStages { + /** + * The stage of the RaiBlocklistItem update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the RaiBlocklistItem update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services RaiBlocklist Item.. + * + * @param properties Properties of Cognitive Services RaiBlocklist Item. + * @return the next definition stage. + */ + Update withProperties(RaiBlocklistItemProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + RaiBlocklistItem refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + RaiBlocklistItem refresh(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemBulkRequest.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemBulkRequest.java new file mode 100644 index 0000000000000..233bc9dbcd852 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemBulkRequest.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The Cognitive Services RaiBlocklist Item request body. + */ +@Fluent +public final class RaiBlocklistItemBulkRequest implements JsonSerializable { + /* + * The name property. + */ + private String name; + + /* + * Properties of Cognitive Services RaiBlocklist Item. + */ + private RaiBlocklistItemProperties properties; + + /** + * Creates an instance of RaiBlocklistItemBulkRequest class. + */ + public RaiBlocklistItemBulkRequest() { + } + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the RaiBlocklistItemBulkRequest object itself. + */ + public RaiBlocklistItemBulkRequest withName(String name) { + this.name = name; + return this; + } + + /** + * Get the properties property: Properties of Cognitive Services RaiBlocklist Item. + * + * @return the properties value. + */ + public RaiBlocklistItemProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of Cognitive Services RaiBlocklist Item. + * + * @param properties the properties value to set. + * @return the RaiBlocklistItemBulkRequest object itself. + */ + public RaiBlocklistItemBulkRequest withProperties(RaiBlocklistItemProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlocklistItemBulkRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlocklistItemBulkRequest if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiBlocklistItemBulkRequest. + */ + public static RaiBlocklistItemBulkRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlocklistItemBulkRequest deserializedRaiBlocklistItemBulkRequest = new RaiBlocklistItemBulkRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedRaiBlocklistItemBulkRequest.name = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedRaiBlocklistItemBulkRequest.properties = RaiBlocklistItemProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlocklistItemBulkRequest; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemProperties.java new file mode 100644 index 0000000000000..b18510490c1a7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemProperties.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * RAI Custom Blocklist Item properties. + */ +@Fluent +public final class RaiBlocklistItemProperties implements JsonSerializable { + /* + * Pattern to match against. + */ + private String pattern; + + /* + * If the pattern is a regex pattern. + */ + private Boolean isRegex; + + /** + * Creates an instance of RaiBlocklistItemProperties class. + */ + public RaiBlocklistItemProperties() { + } + + /** + * Get the pattern property: Pattern to match against. + * + * @return the pattern value. + */ + public String pattern() { + return this.pattern; + } + + /** + * Set the pattern property: Pattern to match against. + * + * @param pattern the pattern value to set. + * @return the RaiBlocklistItemProperties object itself. + */ + public RaiBlocklistItemProperties withPattern(String pattern) { + this.pattern = pattern; + return this; + } + + /** + * Get the isRegex property: If the pattern is a regex pattern. + * + * @return the isRegex value. + */ + public Boolean isRegex() { + return this.isRegex; + } + + /** + * Set the isRegex property: If the pattern is a regex pattern. + * + * @param isRegex the isRegex value to set. + * @return the RaiBlocklistItemProperties object itself. + */ + public RaiBlocklistItemProperties withIsRegex(Boolean isRegex) { + this.isRegex = isRegex; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("pattern", this.pattern); + jsonWriter.writeBooleanField("isRegex", this.isRegex); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlocklistItemProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlocklistItemProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiBlocklistItemProperties. + */ + public static RaiBlocklistItemProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlocklistItemProperties deserializedRaiBlocklistItemProperties = new RaiBlocklistItemProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("pattern".equals(fieldName)) { + deserializedRaiBlocklistItemProperties.pattern = reader.getString(); + } else if ("isRegex".equals(fieldName)) { + deserializedRaiBlocklistItemProperties.isRegex = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlocklistItemProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItems.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItems.java new file mode 100644 index 0000000000000..d44da2ca75017 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItems.java @@ -0,0 +1,217 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import java.util.List; + +/** + * Resource collection API of RaiBlocklistItems. + */ +public interface RaiBlocklistItems { + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName); + + /** + * Gets the blocklist items associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the blocklist items associated with the custom blocklist as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName, + Context context); + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName, Context context); + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist. + */ + RaiBlocklistItem get(String resourceGroupName, String accountName, String raiBlocklistName, + String raiBlocklistItemName); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String raiBlocklistName, String raiBlocklistItemName); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String raiBlocklistName, String raiBlocklistItemName, + Context context); + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist along with {@link Response}. + */ + Response batchAddWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + List raiBlocklistItems, Context context); + + /** + * Batch operation to add blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItems Properties describing the custom blocklist items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cognitive Services RaiBlocklist. + */ + RaiBlocklist batchAdd(String resourceGroupName, String accountName, String raiBlocklistName, + List raiBlocklistItems); + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + Response batchDeleteWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames, Context context); + + /** + * Batch operation to delete blocklist items. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param raiBlocklistItemsNames List of RAI Blocklist Items Names. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void batchDelete(String resourceGroupName, String accountName, String raiBlocklistName, + Object raiBlocklistItemsNames); + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist along with {@link Response}. + */ + RaiBlocklistItem getById(String id); + + /** + * Gets the specified custom blocklist Item associated with the custom blocklist. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist Item associated with the custom blocklist along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes the specified blocklist Item associated with the custom blocklist. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new RaiBlocklistItem resource. + * + * @param name resource name. + * @return the first stage of the new RaiBlocklistItem definition. + */ + RaiBlocklistItem.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistProperties.java new file mode 100644 index 0000000000000..174552ccc9314 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistProperties.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * RAI Custom Blocklist properties. + */ +@Fluent +public final class RaiBlocklistProperties implements JsonSerializable { + /* + * Description of the block list. + */ + private String description; + + /** + * Creates an instance of RaiBlocklistProperties class. + */ + public RaiBlocklistProperties() { + } + + /** + * Get the description property: Description of the block list. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Set the description property: Description of the block list. + * + * @param description the description value to set. + * @return the RaiBlocklistProperties object itself. + */ + public RaiBlocklistProperties withDescription(String description) { + this.description = description; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiBlocklistProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiBlocklistProperties if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiBlocklistProperties. + */ + public static RaiBlocklistProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiBlocklistProperties deserializedRaiBlocklistProperties = new RaiBlocklistProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("description".equals(fieldName)) { + deserializedRaiBlocklistProperties.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiBlocklistProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklists.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklists.java new file mode 100644 index 0000000000000..a3d471f847139 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklists.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of RaiBlocklists. + */ +public interface RaiBlocklists { + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the custom blocklists associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the custom blocklists associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String raiBlocklistName, + Context context); + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account. + */ + RaiBlocklist get(String resourceGroupName, String accountName, String raiBlocklistName); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String raiBlocklistName); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String raiBlocklistName, Context context); + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account along with {@link Response}. + */ + RaiBlocklist getById(String id); + + /** + * Gets the specified custom blocklist associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified custom blocklist associated with the Azure OpenAI account along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes the specified custom blocklist associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new RaiBlocklist resource. + * + * @param name resource name. + * @return the first stage of the new RaiBlocklist definition. + */ + RaiBlocklist.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilter.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilter.java new file mode 100644 index 0000000000000..9315cbb0c9660 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilter.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; + +/** + * An immutable client-side representation of RaiContentFilter. + */ +public interface RaiContentFilter { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: Azure OpenAI Content Filter Properties. + * + * @return the properties value. + */ + RaiContentFilterProperties properties(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner object. + * + * @return the inner object. + */ + RaiContentFilterInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterListResult.java new file mode 100644 index 0000000000000..f9a2ceecb9c9d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterListResult.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of Content Filters. + */ +@Fluent +public final class RaiContentFilterListResult implements JsonSerializable { + /* + * The link used to get the next page of Content Filters. + */ + private String nextLink; + + /* + * The list of RaiContentFilter. + */ + private List value; + + /** + * Creates an instance of RaiContentFilterListResult class. + */ + public RaiContentFilterListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of Content Filters. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of Content Filters. + * + * @param nextLink the nextLink value to set. + * @return the RaiContentFilterListResult object itself. + */ + public RaiContentFilterListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of RaiContentFilter. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of RaiContentFilter. + * + * @param value the value value to set. + * @return the RaiContentFilterListResult object itself. + */ + public RaiContentFilterListResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiContentFilterListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiContentFilterListResult if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiContentFilterListResult. + */ + public static RaiContentFilterListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiContentFilterListResult deserializedRaiContentFilterListResult = new RaiContentFilterListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedRaiContentFilterListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> RaiContentFilterInner.fromJson(reader1)); + deserializedRaiContentFilterListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedRaiContentFilterListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterProperties.java new file mode 100644 index 0000000000000..3e749b80c128b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterProperties.java @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Azure OpenAI Content Filter Properties. + */ +@Fluent +public final class RaiContentFilterProperties implements JsonSerializable { + /* + * Name of Content Filter. + */ + private String name; + + /* + * If the Content Filter has multi severity levels(Low, Medium, or High). + */ + private Boolean isMultiLevelFilter; + + /* + * Content source to apply the Content Filters. + */ + private RaiPolicyContentSource source; + + /** + * Creates an instance of RaiContentFilterProperties class. + */ + public RaiContentFilterProperties() { + } + + /** + * Get the name property: Name of Content Filter. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of Content Filter. + * + * @param name the name value to set. + * @return the RaiContentFilterProperties object itself. + */ + public RaiContentFilterProperties withName(String name) { + this.name = name; + return this; + } + + /** + * Get the isMultiLevelFilter property: If the Content Filter has multi severity levels(Low, Medium, or High). + * + * @return the isMultiLevelFilter value. + */ + public Boolean isMultiLevelFilter() { + return this.isMultiLevelFilter; + } + + /** + * Set the isMultiLevelFilter property: If the Content Filter has multi severity levels(Low, Medium, or High). + * + * @param isMultiLevelFilter the isMultiLevelFilter value to set. + * @return the RaiContentFilterProperties object itself. + */ + public RaiContentFilterProperties withIsMultiLevelFilter(Boolean isMultiLevelFilter) { + this.isMultiLevelFilter = isMultiLevelFilter; + return this; + } + + /** + * Get the source property: Content source to apply the Content Filters. + * + * @return the source value. + */ + public RaiPolicyContentSource source() { + return this.source; + } + + /** + * Set the source property: Content source to apply the Content Filters. + * + * @param source the source value to set. + * @return the RaiContentFilterProperties object itself. + */ + public RaiContentFilterProperties withSource(RaiPolicyContentSource source) { + this.source = source; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeBooleanField("isMultiLevelFilter", this.isMultiLevelFilter); + jsonWriter.writeStringField("source", this.source == null ? null : this.source.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiContentFilterProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiContentFilterProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiContentFilterProperties. + */ + public static RaiContentFilterProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiContentFilterProperties deserializedRaiContentFilterProperties = new RaiContentFilterProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedRaiContentFilterProperties.name = reader.getString(); + } else if ("isMultiLevelFilter".equals(fieldName)) { + deserializedRaiContentFilterProperties.isMultiLevelFilter + = reader.getNullable(JsonReader::getBoolean); + } else if ("source".equals(fieldName)) { + deserializedRaiContentFilterProperties.source + = RaiPolicyContentSource.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiContentFilterProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilters.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilters.java new file mode 100644 index 0000000000000..5666256041e69 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilters.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of RaiContentFilters. + */ +public interface RaiContentFilters { + /** + * List Content Filters types. + * + * @param location Resource location. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location); + + /** + * List Content Filters types. + * + * @param location Resource location. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of Content Filters as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location, Context context); + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name along with {@link Response}. + */ + Response getWithResponse(String location, String filterName, Context context); + + /** + * Get Content Filters by Name. + * + * @param location Resource location. + * @param filterName The name of the RAI Content Filter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return content Filters by Name. + */ + RaiContentFilter get(String location, String filterName); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiMonitorConfig.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiMonitorConfig.java new file mode 100644 index 0000000000000..66dc32bd41619 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiMonitorConfig.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Cognitive Services Rai Monitor Config. + */ +@Fluent +public final class RaiMonitorConfig implements JsonSerializable { + /* + * The storage resource Id. + */ + private String adxStorageResourceId; + + /* + * The identity client Id to access the storage. + */ + private String identityClientId; + + /** + * Creates an instance of RaiMonitorConfig class. + */ + public RaiMonitorConfig() { + } + + /** + * Get the adxStorageResourceId property: The storage resource Id. + * + * @return the adxStorageResourceId value. + */ + public String adxStorageResourceId() { + return this.adxStorageResourceId; + } + + /** + * Set the adxStorageResourceId property: The storage resource Id. + * + * @param adxStorageResourceId the adxStorageResourceId value to set. + * @return the RaiMonitorConfig object itself. + */ + public RaiMonitorConfig withAdxStorageResourceId(String adxStorageResourceId) { + this.adxStorageResourceId = adxStorageResourceId; + return this; + } + + /** + * Get the identityClientId property: The identity client Id to access the storage. + * + * @return the identityClientId value. + */ + public String identityClientId() { + return this.identityClientId; + } + + /** + * Set the identityClientId property: The identity client Id to access the storage. + * + * @param identityClientId the identityClientId value to set. + * @return the RaiMonitorConfig object itself. + */ + public RaiMonitorConfig withIdentityClientId(String identityClientId) { + this.identityClientId = identityClientId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("adxStorageResourceId", this.adxStorageResourceId); + jsonWriter.writeStringField("identityClientId", this.identityClientId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiMonitorConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiMonitorConfig if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiMonitorConfig. + */ + public static RaiMonitorConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiMonitorConfig deserializedRaiMonitorConfig = new RaiMonitorConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("adxStorageResourceId".equals(fieldName)) { + deserializedRaiMonitorConfig.adxStorageResourceId = reader.getString(); + } else if ("identityClientId".equals(fieldName)) { + deserializedRaiMonitorConfig.identityClientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiMonitorConfig; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicies.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicies.java new file mode 100644 index 0000000000000..be9fd029218b4 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicies.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of RaiPolicies. + */ +public interface RaiPolicies { + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the content filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the content filters associated with the Azure OpenAI account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String raiPolicyName, + Context context); + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account. + */ + RaiPolicy get(String resourceGroupName, String accountName, String raiPolicyName); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String raiPolicyName); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String accountName, String raiPolicyName, Context context); + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account along with {@link Response}. + */ + RaiPolicy getById(String id); + + /** + * Gets the specified Content Filters associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the specified Content Filters associated with the Azure OpenAI account along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Deletes the specified Content Filters associated with the Azure OpenAI account. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new RaiPolicy resource. + * + * @param name resource name. + * @return the first stage of the new RaiPolicy definition. + */ + RaiPolicy.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicy.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicy.java new file mode 100644 index 0000000000000..f218fc446e083 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicy.java @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; +import java.util.Map; + +/** + * An immutable client-side representation of RaiPolicy. + */ +public interface RaiPolicy { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Properties of Cognitive Services RaiPolicy. + * + * @return the properties value. + */ + RaiPolicyProperties properties(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner object. + * + * @return the inner object. + */ + RaiPolicyInner innerModel(); + + /** + * The entirety of the RaiPolicy definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The RaiPolicy definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the RaiPolicy definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the RaiPolicy definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @return the next definition stage. + */ + WithCreate withExistingAccount(String resourceGroupName, String accountName); + } + + /** + * The stage of the RaiPolicy definition which contains all the minimum required properties for the resource to + * be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + RaiPolicy create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + RaiPolicy create(Context context); + } + + /** + * The stage of the RaiPolicy definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the RaiPolicy definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services RaiPolicy.. + * + * @param properties Properties of Cognitive Services RaiPolicy. + * @return the next definition stage. + */ + WithCreate withProperties(RaiPolicyProperties properties); + } + } + + /** + * Begins update for the RaiPolicy resource. + * + * @return the stage of resource update. + */ + RaiPolicy.Update update(); + + /** + * The template for RaiPolicy update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + RaiPolicy apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + RaiPolicy apply(Context context); + } + + /** + * The RaiPolicy update stages. + */ + interface UpdateStages { + /** + * The stage of the RaiPolicy update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the RaiPolicy update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of Cognitive Services RaiPolicy.. + * + * @param properties Properties of Cognitive Services RaiPolicy. + * @return the next definition stage. + */ + Update withProperties(RaiPolicyProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + RaiPolicy refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + RaiPolicy refresh(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentFilter.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentFilter.java new file mode 100644 index 0000000000000..e5c24b8ebda1d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentFilter.java @@ -0,0 +1,206 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Azure OpenAI Content Filter. + */ +@Fluent +public final class RaiPolicyContentFilter implements JsonSerializable { + /* + * Name of ContentFilter. + */ + private String name; + + /* + * If the ContentFilter is enabled. + */ + private Boolean enabled; + + /* + * Level at which content is filtered. + */ + private ContentLevel severityThreshold; + + /* + * If blocking would occur. + */ + private Boolean blocking; + + /* + * Content source to apply the Content Filters. + */ + private RaiPolicyContentSource source; + + /** + * Creates an instance of RaiPolicyContentFilter class. + */ + public RaiPolicyContentFilter() { + } + + /** + * Get the name property: Name of ContentFilter. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of ContentFilter. + * + * @param name the name value to set. + * @return the RaiPolicyContentFilter object itself. + */ + public RaiPolicyContentFilter withName(String name) { + this.name = name; + return this; + } + + /** + * Get the enabled property: If the ContentFilter is enabled. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: If the ContentFilter is enabled. + * + * @param enabled the enabled value to set. + * @return the RaiPolicyContentFilter object itself. + */ + public RaiPolicyContentFilter withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the severityThreshold property: Level at which content is filtered. + * + * @return the severityThreshold value. + */ + public ContentLevel severityThreshold() { + return this.severityThreshold; + } + + /** + * Set the severityThreshold property: Level at which content is filtered. + * + * @param severityThreshold the severityThreshold value to set. + * @return the RaiPolicyContentFilter object itself. + */ + public RaiPolicyContentFilter withSeverityThreshold(ContentLevel severityThreshold) { + this.severityThreshold = severityThreshold; + return this; + } + + /** + * Get the blocking property: If blocking would occur. + * + * @return the blocking value. + */ + public Boolean blocking() { + return this.blocking; + } + + /** + * Set the blocking property: If blocking would occur. + * + * @param blocking the blocking value to set. + * @return the RaiPolicyContentFilter object itself. + */ + public RaiPolicyContentFilter withBlocking(Boolean blocking) { + this.blocking = blocking; + return this; + } + + /** + * Get the source property: Content source to apply the Content Filters. + * + * @return the source value. + */ + public RaiPolicyContentSource source() { + return this.source; + } + + /** + * Set the source property: Content source to apply the Content Filters. + * + * @param source the source value to set. + * @return the RaiPolicyContentFilter object itself. + */ + public RaiPolicyContentFilter withSource(RaiPolicyContentSource source) { + this.source = source; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeStringField("severityThreshold", + this.severityThreshold == null ? null : this.severityThreshold.toString()); + jsonWriter.writeBooleanField("blocking", this.blocking); + jsonWriter.writeStringField("source", this.source == null ? null : this.source.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiPolicyContentFilter from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiPolicyContentFilter if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiPolicyContentFilter. + */ + public static RaiPolicyContentFilter fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiPolicyContentFilter deserializedRaiPolicyContentFilter = new RaiPolicyContentFilter(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedRaiPolicyContentFilter.name = reader.getString(); + } else if ("enabled".equals(fieldName)) { + deserializedRaiPolicyContentFilter.enabled = reader.getNullable(JsonReader::getBoolean); + } else if ("severityThreshold".equals(fieldName)) { + deserializedRaiPolicyContentFilter.severityThreshold = ContentLevel.fromString(reader.getString()); + } else if ("blocking".equals(fieldName)) { + deserializedRaiPolicyContentFilter.blocking = reader.getNullable(JsonReader::getBoolean); + } else if ("source".equals(fieldName)) { + deserializedRaiPolicyContentFilter.source = RaiPolicyContentSource.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedRaiPolicyContentFilter; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentSource.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentSource.java new file mode 100644 index 0000000000000..ea300524bfc60 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentSource.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Content source to apply the Content Filters. + */ +public final class RaiPolicyContentSource extends ExpandableStringEnum { + /** + * Static value Prompt for RaiPolicyContentSource. + */ + public static final RaiPolicyContentSource PROMPT = fromString("Prompt"); + + /** + * Static value Completion for RaiPolicyContentSource. + */ + public static final RaiPolicyContentSource COMPLETION = fromString("Completion"); + + /** + * Creates a new instance of RaiPolicyContentSource value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RaiPolicyContentSource() { + } + + /** + * Creates or finds a RaiPolicyContentSource from its string representation. + * + * @param name a name to look for. + * @return the corresponding RaiPolicyContentSource. + */ + public static RaiPolicyContentSource fromString(String name) { + return fromString(name, RaiPolicyContentSource.class); + } + + /** + * Gets known RaiPolicyContentSource values. + * + * @return known RaiPolicyContentSource values. + */ + public static Collection values() { + return values(RaiPolicyContentSource.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyListResult.java new file mode 100644 index 0000000000000..ca619ba3e9c67 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyListResult.java @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services RaiPolicies. + */ +@Fluent +public final class RaiPolicyListResult implements JsonSerializable { + /* + * The link used to get the next page of RaiPolicy. + */ + private String nextLink; + + /* + * The list of RaiPolicy. + */ + private List value; + + /** + * Creates an instance of RaiPolicyListResult class. + */ + public RaiPolicyListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of RaiPolicy. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The link used to get the next page of RaiPolicy. + * + * @param nextLink the nextLink value to set. + * @return the RaiPolicyListResult object itself. + */ + public RaiPolicyListResult withNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } + + /** + * Get the value property: The list of RaiPolicy. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Set the value property: The list of RaiPolicy. + * + * @param value the value value to set. + * @return the RaiPolicyListResult object itself. + */ + public RaiPolicyListResult withValue(List value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", this.nextLink); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiPolicyListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiPolicyListResult if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiPolicyListResult. + */ + public static RaiPolicyListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiPolicyListResult deserializedRaiPolicyListResult = new RaiPolicyListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedRaiPolicyListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> RaiPolicyInner.fromJson(reader1)); + deserializedRaiPolicyListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedRaiPolicyListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyMode.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyMode.java new file mode 100644 index 0000000000000..939269a4b17d6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyMode.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. + * Please use 'Asynchronous_filter' after 2024-10-01. It is the same as 'Deferred' in previous version. + */ +public final class RaiPolicyMode extends ExpandableStringEnum { + /** + * Static value Default for RaiPolicyMode. + */ + public static final RaiPolicyMode DEFAULT = fromString("Default"); + + /** + * Static value Deferred for RaiPolicyMode. + */ + public static final RaiPolicyMode DEFERRED = fromString("Deferred"); + + /** + * Static value Blocking for RaiPolicyMode. + */ + public static final RaiPolicyMode BLOCKING = fromString("Blocking"); + + /** + * Static value Asynchronous_filter for RaiPolicyMode. + */ + public static final RaiPolicyMode ASYNCHRONOUS_FILTER = fromString("Asynchronous_filter"); + + /** + * Creates a new instance of RaiPolicyMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RaiPolicyMode() { + } + + /** + * Creates or finds a RaiPolicyMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding RaiPolicyMode. + */ + public static RaiPolicyMode fromString(String name) { + return fromString(name, RaiPolicyMode.class); + } + + /** + * Gets known RaiPolicyMode values. + * + * @return known RaiPolicyMode values. + */ + public static Collection values() { + return values(RaiPolicyMode.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java new file mode 100644 index 0000000000000..07506b1a079e5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Azure OpenAI Content Filters properties. + */ +@Fluent +public final class RaiPolicyProperties implements JsonSerializable { + /* + * Content Filters policy type. + */ + private RaiPolicyType type; + + /* + * Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. + * Please use 'Asynchronous_filter' after 2024-10-01. It is the same as 'Deferred' in previous version. + */ + private RaiPolicyMode mode; + + /* + * Name of Rai policy. + */ + private String basePolicyName; + + /* + * The list of Content Filters. + */ + private List contentFilters; + + /* + * The list of custom Blocklist. + */ + private List customBlocklists; + + /** + * Creates an instance of RaiPolicyProperties class. + */ + public RaiPolicyProperties() { + } + + /** + * Get the type property: Content Filters policy type. + * + * @return the type value. + */ + public RaiPolicyType type() { + return this.type; + } + + /** + * Get the mode property: Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, + * Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2024-10-01. It is the same as 'Deferred' in + * previous version. + * + * @return the mode value. + */ + public RaiPolicyMode mode() { + return this.mode; + } + + /** + * Set the mode property: Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, + * Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2024-10-01. It is the same as 'Deferred' in + * previous version. + * + * @param mode the mode value to set. + * @return the RaiPolicyProperties object itself. + */ + public RaiPolicyProperties withMode(RaiPolicyMode mode) { + this.mode = mode; + return this; + } + + /** + * Get the basePolicyName property: Name of Rai policy. + * + * @return the basePolicyName value. + */ + public String basePolicyName() { + return this.basePolicyName; + } + + /** + * Set the basePolicyName property: Name of Rai policy. + * + * @param basePolicyName the basePolicyName value to set. + * @return the RaiPolicyProperties object itself. + */ + public RaiPolicyProperties withBasePolicyName(String basePolicyName) { + this.basePolicyName = basePolicyName; + return this; + } + + /** + * Get the contentFilters property: The list of Content Filters. + * + * @return the contentFilters value. + */ + public List contentFilters() { + return this.contentFilters; + } + + /** + * Set the contentFilters property: The list of Content Filters. + * + * @param contentFilters the contentFilters value to set. + * @return the RaiPolicyProperties object itself. + */ + public RaiPolicyProperties withContentFilters(List contentFilters) { + this.contentFilters = contentFilters; + return this; + } + + /** + * Get the customBlocklists property: The list of custom Blocklist. + * + * @return the customBlocklists value. + */ + public List customBlocklists() { + return this.customBlocklists; + } + + /** + * Set the customBlocklists property: The list of custom Blocklist. + * + * @param customBlocklists the customBlocklists value to set. + * @return the RaiPolicyProperties object itself. + */ + public RaiPolicyProperties withCustomBlocklists(List customBlocklists) { + this.customBlocklists = customBlocklists; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (contentFilters() != null) { + contentFilters().forEach(e -> e.validate()); + } + if (customBlocklists() != null) { + customBlocklists().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeStringField("basePolicyName", this.basePolicyName); + jsonWriter.writeArrayField("contentFilters", this.contentFilters, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("customBlocklists", this.customBlocklists, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RaiPolicyProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RaiPolicyProperties if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the RaiPolicyProperties. + */ + public static RaiPolicyProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RaiPolicyProperties deserializedRaiPolicyProperties = new RaiPolicyProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedRaiPolicyProperties.type = RaiPolicyType.fromString(reader.getString()); + } else if ("mode".equals(fieldName)) { + deserializedRaiPolicyProperties.mode = RaiPolicyMode.fromString(reader.getString()); + } else if ("basePolicyName".equals(fieldName)) { + deserializedRaiPolicyProperties.basePolicyName = reader.getString(); + } else if ("contentFilters".equals(fieldName)) { + List contentFilters + = reader.readArray(reader1 -> RaiPolicyContentFilter.fromJson(reader1)); + deserializedRaiPolicyProperties.contentFilters = contentFilters; + } else if ("customBlocklists".equals(fieldName)) { + List customBlocklists + = reader.readArray(reader1 -> CustomBlocklistConfig.fromJson(reader1)); + deserializedRaiPolicyProperties.customBlocklists = customBlocklists; + } else { + reader.skipChildren(); + } + } + + return deserializedRaiPolicyProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyType.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyType.java new file mode 100644 index 0000000000000..5411df36d3995 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Content Filters policy type. + */ +public final class RaiPolicyType extends ExpandableStringEnum { + /** + * Static value UserManaged for RaiPolicyType. + */ + public static final RaiPolicyType USER_MANAGED = fromString("UserManaged"); + + /** + * Static value SystemManaged for RaiPolicyType. + */ + public static final RaiPolicyType SYSTEM_MANAGED = fromString("SystemManaged"); + + /** + * Creates a new instance of RaiPolicyType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RaiPolicyType() { + } + + /** + * Creates or finds a RaiPolicyType from its string representation. + * + * @param name a name to look for. + * @return the corresponding RaiPolicyType. + */ + public static RaiPolicyType fromString(String name) { + return fromString(name, RaiPolicyType.class); + } + + /** + * Gets known RaiPolicyType values. + * + * @return known RaiPolicyType values. + */ + public static Collection values() { + return values(RaiPolicyType.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceProviders.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceProviders.java index 8defd8e0d5a68..4513afcf16d3d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceProviders.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceProviders.java @@ -60,4 +60,28 @@ Response checkDomainAvailabilityWithResponse(CheckDomainAvai * @return domain availability. */ DomainAvailability checkDomainAvailability(CheckDomainAvailabilityParameter parameters); + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result along with {@link Response}. + */ + Response + calculateModelCapacityWithResponse(CalculateModelCapacityParameter parameters, Context context); + + /** + * Model capacity calculator. + * + * @param parameters Check Domain Availability parameter. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return calculate Model Capacity result. + */ + CalculateModelCapacityResult calculateModelCapacity(CalculateModelCapacityParameter parameters); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuResource.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuResource.java new file mode 100644 index 0000000000000..a8f4f7dae1064 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuResource.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; + +/** + * An immutable client-side representation of SkuResource. + */ +public interface SkuResource { + /** + * Gets the resourceType property: The resource type name. + * + * @return the resourceType value. + */ + String resourceType(); + + /** + * Gets the sku property: The resource model definition representing SKU. + * + * @return the sku value. + */ + Sku sku(); + + /** + * Gets the capacity property: The capacity configuration. + * + * @return the capacity value. + */ + CapacityConfig capacity(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner object. + * + * @return the inner object. + */ + SkuResourceInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usage.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usage.java index 57e185213c1bd..165c86d9ec404 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usage.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usage.java @@ -4,65 +4,261 @@ package com.azure.resourcemanager.cognitiveservices.models; -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; /** - * An immutable client-side representation of Usage. + * The usage data for a usage request. */ -public interface Usage { +@Fluent +public final class Usage implements JsonSerializable { + /* + * The unit of the metric. + */ + private UnitType unit; + + /* + * The name information for the metric. + */ + private MetricName name; + + /* + * The quota period used to summarize the usage values. + */ + private String quotaPeriod; + + /* + * Maximum value for this metric. + */ + private Double limit; + + /* + * Current value for this metric. + */ + private Double currentValue; + + /* + * Next reset time for current quota. + */ + private String nextResetTime; + + /* + * Cognitive Services account quota usage status. + */ + private QuotaUsageStatus status; + /** - * Gets the unit property: The unit of the metric. + * Creates an instance of Usage class. + */ + public Usage() { + } + + /** + * Get the unit property: The unit of the metric. * * @return the unit value. */ - UnitType unit(); + public UnitType unit() { + return this.unit; + } + + /** + * Set the unit property: The unit of the metric. + * + * @param unit the unit value to set. + * @return the Usage object itself. + */ + public Usage withUnit(UnitType unit) { + this.unit = unit; + return this; + } /** - * Gets the name property: The name information for the metric. + * Get the name property: The name information for the metric. * * @return the name value. */ - MetricName name(); + public MetricName name() { + return this.name; + } /** - * Gets the quotaPeriod property: The quota period used to summarize the usage values. + * Set the name property: The name information for the metric. + * + * @param name the name value to set. + * @return the Usage object itself. + */ + public Usage withName(MetricName name) { + this.name = name; + return this; + } + + /** + * Get the quotaPeriod property: The quota period used to summarize the usage values. * * @return the quotaPeriod value. */ - String quotaPeriod(); + public String quotaPeriod() { + return this.quotaPeriod; + } + + /** + * Set the quotaPeriod property: The quota period used to summarize the usage values. + * + * @param quotaPeriod the quotaPeriod value to set. + * @return the Usage object itself. + */ + public Usage withQuotaPeriod(String quotaPeriod) { + this.quotaPeriod = quotaPeriod; + return this; + } /** - * Gets the limit property: Maximum value for this metric. + * Get the limit property: Maximum value for this metric. * * @return the limit value. */ - Double limit(); + public Double limit() { + return this.limit; + } /** - * Gets the currentValue property: Current value for this metric. + * Set the limit property: Maximum value for this metric. + * + * @param limit the limit value to set. + * @return the Usage object itself. + */ + public Usage withLimit(Double limit) { + this.limit = limit; + return this; + } + + /** + * Get the currentValue property: Current value for this metric. * * @return the currentValue value. */ - Double currentValue(); + public Double currentValue() { + return this.currentValue; + } + + /** + * Set the currentValue property: Current value for this metric. + * + * @param currentValue the currentValue value to set. + * @return the Usage object itself. + */ + public Usage withCurrentValue(Double currentValue) { + this.currentValue = currentValue; + return this; + } /** - * Gets the nextResetTime property: Next reset time for current quota. + * Get the nextResetTime property: Next reset time for current quota. * * @return the nextResetTime value. */ - String nextResetTime(); + public String nextResetTime() { + return this.nextResetTime; + } + + /** + * Set the nextResetTime property: Next reset time for current quota. + * + * @param nextResetTime the nextResetTime value to set. + * @return the Usage object itself. + */ + public Usage withNextResetTime(String nextResetTime) { + this.nextResetTime = nextResetTime; + return this; + } /** - * Gets the status property: Cognitive Services account quota usage status. + * Get the status property: Cognitive Services account quota usage status. * * @return the status value. */ - QuotaUsageStatus status(); + public QuotaUsageStatus status() { + return this.status; + } /** - * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner object. + * Set the status property: Cognitive Services account quota usage status. * - * @return the inner object. + * @param status the status value to set. + * @return the Usage object itself. */ - UsageInner innerModel(); + public Usage withStatus(QuotaUsageStatus status) { + this.status = status; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (name() != null) { + name().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("unit", this.unit == null ? null : this.unit.toString()); + jsonWriter.writeJsonField("name", this.name); + jsonWriter.writeStringField("quotaPeriod", this.quotaPeriod); + jsonWriter.writeNumberField("limit", this.limit); + jsonWriter.writeNumberField("currentValue", this.currentValue); + jsonWriter.writeStringField("nextResetTime", this.nextResetTime); + jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Usage from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Usage if the JsonReader was pointing to an instance of it, or null if it was pointing to + * JSON null. + * @throws IOException If an error occurs while reading the Usage. + */ + public static Usage fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Usage deserializedUsage = new Usage(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("unit".equals(fieldName)) { + deserializedUsage.unit = UnitType.fromString(reader.getString()); + } else if ("name".equals(fieldName)) { + deserializedUsage.name = MetricName.fromJson(reader); + } else if ("quotaPeriod".equals(fieldName)) { + deserializedUsage.quotaPeriod = reader.getString(); + } else if ("limit".equals(fieldName)) { + deserializedUsage.limit = reader.getNullable(JsonReader::getDouble); + } else if ("currentValue".equals(fieldName)) { + deserializedUsage.currentValue = reader.getNullable(JsonReader::getDouble); + } else if ("nextResetTime".equals(fieldName)) { + deserializedUsage.nextResetTime = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedUsage.status = QuotaUsageStatus.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedUsage; + }); + } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedAmlWorkspace.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedAmlWorkspace.java new file mode 100644 index 0000000000000..6f3f3a903bff2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedAmlWorkspace.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The user owned AML workspace for Cognitive Services account. + */ +@Fluent +public final class UserOwnedAmlWorkspace implements JsonSerializable { + /* + * Full resource id of a AML workspace resource. + */ + private String resourceId; + + /* + * Identity Client id of a AML workspace resource. + */ + private String identityClientId; + + /** + * Creates an instance of UserOwnedAmlWorkspace class. + */ + public UserOwnedAmlWorkspace() { + } + + /** + * Get the resourceId property: Full resource id of a AML workspace resource. + * + * @return the resourceId value. + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Set the resourceId property: Full resource id of a AML workspace resource. + * + * @param resourceId the resourceId value to set. + * @return the UserOwnedAmlWorkspace object itself. + */ + public UserOwnedAmlWorkspace withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get the identityClientId property: Identity Client id of a AML workspace resource. + * + * @return the identityClientId value. + */ + public String identityClientId() { + return this.identityClientId; + } + + /** + * Set the identityClientId property: Identity Client id of a AML workspace resource. + * + * @param identityClientId the identityClientId value to set. + * @return the UserOwnedAmlWorkspace object itself. + */ + public UserOwnedAmlWorkspace withIdentityClientId(String identityClientId) { + this.identityClientId = identityClientId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resourceId", this.resourceId); + jsonWriter.writeStringField("identityClientId", this.identityClientId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UserOwnedAmlWorkspace from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UserOwnedAmlWorkspace if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the UserOwnedAmlWorkspace. + */ + public static UserOwnedAmlWorkspace fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UserOwnedAmlWorkspace deserializedUserOwnedAmlWorkspace = new UserOwnedAmlWorkspace(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceId".equals(fieldName)) { + deserializedUserOwnedAmlWorkspace.resourceId = reader.getString(); + } else if ("identityClientId".equals(fieldName)) { + deserializedUserOwnedAmlWorkspace.identityClientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUserOwnedAmlWorkspace; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json index ba3e2bae34550..e8b3fa164a680 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.cognitiveservices.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansClientImpl$CommitmentPlansService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersClientImpl$CommitmentTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsClientImpl$DeletedAccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsClientImpl$DeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelsClientImpl$ModelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusClientImpl$ResourceSkusService"],["com.azure.resourcemanager.cognitiveservices.implementation.UsagesClientImpl$UsagesService"]] \ No newline at end of file +[["com.azure.resourcemanager.cognitiveservices.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansClientImpl$CommitmentPlansService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersClientImpl$CommitmentTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.DefenderForAISettingsClientImpl$DefenderForAISettingsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsClientImpl$DeletedAccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsClientImpl$DeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.EncryptionScopesClientImpl$EncryptionScopesService"],["com.azure.resourcemanager.cognitiveservices.implementation.LocationBasedModelCapacitiesClientImpl$LocationBasedModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelCapacitiesClientImpl$ModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelsClientImpl$ModelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.NetworkSecurityPerimeterConfigurationsClientImpl$NetworkSecurityPerimeterConfigurationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistItemsClientImpl$RaiBlocklistItemsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistsClientImpl$RaiBlocklistsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiContentFiltersClientImpl$RaiContentFiltersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiPoliciesClientImpl$RaiPoliciesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusClientImpl$ResourceSkusService"],["com.azure.resourcemanager.cognitiveservices.implementation.UsagesClientImpl$UsagesService"]] \ No newline at end of file diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java index 375fc95070dce..759b8e9c85ae7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java @@ -20,7 +20,7 @@ public final class AccountsCreateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateAccountMin.json */ /** @@ -42,7 +42,7 @@ public static void createAccountMin(com.azure.resourcemanager.cognitiveservices. /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateAccount.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java index d8aa4c1bb6f14..66f1112a1b571 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java @@ -10,7 +10,7 @@ public final class AccountsDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteAccount.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java index 26b88db58ffa2..ad93a6a6d1910 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AccountsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetAccount.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java index 3475141562ca8..c116d3bd7429a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class AccountsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListAccountsByResourceGroup.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java index 108628e41505c..50bc157e4b55d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java @@ -10,7 +10,7 @@ public final class AccountsListKeysSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListKeys. + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListKeys. * json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java index 0492f3e1717f3..b7f847b51987d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java @@ -10,7 +10,7 @@ public final class AccountsListModelsSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListAccountModels.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java index 0678f6c2bc6b5..0d8610446acce 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java @@ -10,7 +10,7 @@ public final class AccountsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListAccountsBySubscription.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java index 85ce396acf351..80c2b04ac717b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java @@ -10,7 +10,7 @@ public final class AccountsListSkusSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListSkus. + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListSkus. * json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java index c886b39a89cf3..bb4e96308f525 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java @@ -10,7 +10,7 @@ public final class AccountsListUsagesSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetUsages + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetUsages * .json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java index 6d8d6091e7171..743dbe15c62f0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java @@ -13,7 +13,7 @@ public final class AccountsRegenerateKeySamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * RegenerateKey.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java index 2ae90fd7b1bbb..4b95c12005df1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java @@ -13,7 +13,7 @@ public final class AccountsUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * UpdateAccount.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java index 3fcc3a9e96e91..f5515f9c5a2ad 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansCreateOrUpdateAssociationSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateSharedCommitmentPlanAssociation.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java index a95ae9a720422..7c42f68afba68 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java @@ -15,7 +15,7 @@ public final class CommitmentPlansCreateOrUpdatePlanSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CreateSharedCommitmentPlan.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java index ecc09cb7b8bfb..c6a2e81d890af 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class CommitmentPlansCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * PutCommitmentPlan.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java index 77f07efe60164..a6ba53502bac5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansDeleteAssociationSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteSharedCommitmentPlanAssociation.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java index 7ca352ed6fcc4..2ac18a6d26285 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansDeletePlanSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteSharedCommitmentPlan.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java index c3ea8a40f7d89..d043370bddbb8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteCommitmentPlan.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java index b97368c5c5524..dcd70eb4b0836 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansGetAssociationSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetSharedCommitmentPlanAssociation.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java index 91816ccef81bb..aeacf8a93c387 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetSharedCommitmentPlan.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java index 213d1c397d781..5c086ac7da2a2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetCommitmentPlan.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java index 5d28158ecd5fa..a538bad85eca3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansListAssociationsSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListSharedCommitmentPlanAssociations.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java index 340d1480a66aa..90c2b5055825b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansListByResourceGroupSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListSharedCommitmentPlansByResourceGroup.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java index 8a3058f497ccb..c02016bc5c027 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansListPlansBySubscriptionSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListSharedCommitmentPlansBySubscription.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java index 7fca1265a5fa9..e817cc4ad0b99 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java @@ -10,7 +10,7 @@ public final class CommitmentPlansListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListCommitmentPlans.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java index 1387ccc0ebe6a..107fc77ced559 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java @@ -14,7 +14,7 @@ public final class CommitmentPlansUpdatePlanSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * UpdateSharedCommitmentPlan.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java index cd7c1ba3c37da..a90ec916b4e77 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java @@ -10,7 +10,7 @@ public final class CommitmentTiersListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListCommitmentTiers.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..06d5f87c999f2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; + +/** + * Samples for DefenderForAISettings CreateOrUpdate. + */ +public final class DefenderForAISettingsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutDefenderForAISetting.json + */ + /** + * Sample code: PutDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.defenderForAISettings() + .define("Default") + .withExistingAccount("resourceGroupName", "accountName") + .withState(DefenderForAISettingState.ENABLED) + .create(); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java new file mode 100644 index 0000000000000..0f1c13d2585e7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for DefenderForAISettings Get. + */ +public final class DefenderForAISettingsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetDefenderForAISetting.json + */ + /** + * Sample code: GetDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.defenderForAISettings() + .getWithResponse("resourceGroupName", "accountName", "Default", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java new file mode 100644 index 0000000000000..1a133175b2efb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for DefenderForAISettings List. + */ +public final class DefenderForAISettingsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListDefenderForAISetting.json + */ + /** + * Sample code: ListDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.defenderForAISettings().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java new file mode 100644 index 0000000000000..a88e5e0824c5b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISetting; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; + +/** + * Samples for DefenderForAISettings Update. + */ +public final class DefenderForAISettingsUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * UpdateDefenderForAISetting.json + */ + /** + * Sample code: UpdateDefenderForAISetting. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateDefenderForAISetting(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + DefenderForAISetting resource = manager.defenderForAISettings() + .getWithResponse("resourceGroupName", "accountName", "Default", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withState(DefenderForAISettingState.ENABLED).apply(); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java index bfb455cadaed9..0802dfd8dc4fd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java @@ -10,7 +10,7 @@ public final class DeletedAccountsGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetDeletedAccount.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java index 5402fff000e52..cd2cd0a14cac7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java @@ -10,7 +10,7 @@ public final class DeletedAccountsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListDeletedAccountsBySubscription.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java index b57779808e4f0..70d8bdc13ddbf 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java @@ -10,7 +10,7 @@ public final class DeletedAccountsPurgeSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * PurgeDeletedAccount.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java index b122eb306177c..4486e66c22aee 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ public final class DeploymentsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * PutDeployment.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java index d4a4c23725307..f0e0e17e50575 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java @@ -10,7 +10,7 @@ public final class DeploymentsDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeleteDeployment.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java index 2e5095368ecee..552f432507f06 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java @@ -10,7 +10,7 @@ public final class DeploymentsGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetDeployment.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java index ac805068a4961..d447d5deae730 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java @@ -10,7 +10,7 @@ public final class DeploymentsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListDeployments.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java new file mode 100644 index 0000000000000..28142faf76fe4 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for Deployments ListSkus. + */ +public final class DeploymentsListSkusSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListDeploymentSkus.json + */ + /** + * Sample code: ListDeploymentSkus. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listDeploymentSkus(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.deployments() + .listSkus("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java new file mode 100644 index 0000000000000..a19d69a912a55 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.Deployment; +import com.azure.resourcemanager.cognitiveservices.models.Sku; + +/** + * Samples for Deployments Update. + */ +public final class DeploymentsUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * UpdateDeployment.json + */ + /** + * Sample code: UpdateDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void updateDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + Deployment resource = manager.deployments() + .getWithResponse("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withSku(new Sku().withName("Standard").withCapacity(1)).apply(); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..5c3b5da8a5de0 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties; +import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeState; +import com.azure.resourcemanager.cognitiveservices.models.KeySource; +import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties; + +/** + * Samples for EncryptionScopes CreateOrUpdate. + */ +public final class EncryptionScopesCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutEncryptionScope.json + */ + /** + * Sample code: PutEncryptionScope. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .define("encryptionScopeName") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new EncryptionScopeProperties() + .withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder") + .withKeyVersion("fakeTokenPlaceholder") + .withKeyVaultUri("fakeTokenPlaceholder") + .withIdentityClientId("00000000-0000-0000-0000-000000000000")) + .withKeySource(KeySource.MICROSOFT_KEY_VAULT) + .withState(EncryptionScopeState.ENABLED)) + .create(); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java new file mode 100644 index 0000000000000..eb4b7a3036599 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for EncryptionScopes Delete. + */ +public final class EncryptionScopesDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteEncryptionScope.json + */ + /** + * Sample code: DeleteEncryptionScope. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .delete("resourceGroupName", "accountName", "encryptionScopeName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java new file mode 100644 index 0000000000000..214a3c8b08f79 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for EncryptionScopes Get. + */ +public final class EncryptionScopesGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetEncryptionScope.json + */ + /** + * Sample code: GetEncryptionScope. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .getWithResponse("resourceGroupName", "accountName", "encryptionScopeName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java new file mode 100644 index 0000000000000..1e245ea7466bb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for EncryptionScopes List. + */ +public final class EncryptionScopesListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListEncryptionScopes.json + */ + /** + * Sample code: ListEncryptionScopes. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listEncryptionScopes(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java new file mode 100644 index 0000000000000..ef62aa20d79de --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for LocationBasedModelCapacities List. + */ +public final class LocationBasedModelCapacitiesListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListLocationBasedModelCapacities.json + */ + /** + * Sample code: ListLocationBasedModelCapacities. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listLocationBasedModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java new file mode 100644 index 0000000000000..27e6baef79877 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for ModelCapacities List. + */ +public final class ModelCapacitiesListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListModelCapacities.json + */ + /** + * Sample code: ListModelCapacities. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.modelCapacities().list("OpenAI", "ada", "1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java index 9e99b79c05b98..4faf3d74d40b4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java @@ -10,15 +10,16 @@ public final class ModelsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ - * ListModels.json + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListLocationModels.json */ /** - * Sample code: ListModels. + * Sample code: ListLocationModels. * * @param manager Entry point to CognitiveServicesManager. */ - public static void listModels(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + public static void + listLocationModels(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.models().list("WestUS", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java new file mode 100644 index 0000000000000..74de929727f20 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for NetworkSecurityPerimeterConfigurations Get. + */ +public final class NetworkSecurityPerimeterConfigurationsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetNetworkSecurityPerimeterConfigurations.json + */ + /** + * Sample code: GetNetworkSecurityPerimeterConfigurations. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getNetworkSecurityPerimeterConfigurations( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.networkSecurityPerimeterConfigurations() + .getWithResponse("resourceGroupName", "accountName", "NSPConfigurationName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java new file mode 100644 index 0000000000000..84d13031923c7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for NetworkSecurityPerimeterConfigurations List. + */ +public final class NetworkSecurityPerimeterConfigurationsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListNetworkSecurityPerimeterConfigurations.json + */ + /** + * Sample code: ListNetworkSecurityPerimeterConfigurations. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listNetworkSecurityPerimeterConfigurations( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.networkSecurityPerimeterConfigurations() + .list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java new file mode 100644 index 0000000000000..7767d08906bd3 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for NetworkSecurityPerimeterConfigurations Reconcile. + */ +public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ReconcileNetworkSecurityPerimeterConfigurations.json + */ + /** + * Sample code: ReconcileNetworkSecurityPerimeterConfigurations. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void reconcileNetworkSecurityPerimeterConfigurations( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.networkSecurityPerimeterConfigurations() + .reconcile("resourceGroupName", "accountName", "NSPConfigurationName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java index 9633bcb73ee48..b2a5dd3ed3963 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetOperations.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index e4cecdd13fb35..d4f618a356815 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * PutPrivateEndpointConnection.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java index 00f05d8ff49ff..00da774309f4e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * DeletePrivateEndpointConnection.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java index 463b91a292f0c..3597154ba6dda 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsGetSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * GetPrivateEndpointConnection.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java index 03dc6ee60b986..84fd649e9533b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListPrivateEndpointConnections.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java index ad27188080bfc..621e504b93d51 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java @@ -10,7 +10,7 @@ public final class PrivateLinkResourcesListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListPrivateLinkResources.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java new file mode 100644 index 0000000000000..001985230680e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.util.Arrays; + +/** + * Samples for RaiBlocklistItems BatchAdd. + */ +public final class RaiBlocklistItemsBatchAddSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * AddRaiBlocklistItems.json + */ + /** + * Sample code: AddRaiBlocklistItems. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + addRaiBlocklistItems(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .batchAddWithResponse("resourceGroupName", "accountName", "myblocklist", + Arrays.asList( + new RaiBlocklistItemBulkRequest().withName("myblocklistitem1") + .withProperties( + new RaiBlocklistItemProperties().withPattern("^[a-z0-9_-]{2,16}$").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("myblocklistitem2") + .withProperties(new RaiBlocklistItemProperties().withPattern("blockwords").withIsRegex(false))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java new file mode 100644 index 0000000000000..0aa52f8d8246a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.management.serializer.SerializerFactory; +import com.azure.core.util.serializer.SerializerEncoding; +import java.io.IOException; + +/** + * Samples for RaiBlocklistItems BatchDelete. + */ +public final class RaiBlocklistItemsBatchDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiBlocklistItems.json + */ + /** + * Sample code: DeleteRaiBlocklistItems. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteRaiBlocklistItems( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) throws IOException { + manager.raiBlocklistItems() + .batchDeleteWithResponse("resourceGroupName", "accountName", "raiBlocklistName", + SerializerFactory.createDefaultManagementSerializerAdapter() + .deserialize("[\"myblocklistitem1\",\"myblocklistitem2\"]", Object.class, SerializerEncoding.JSON), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..6a7d1c61b93a6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; + +/** + * Samples for RaiBlocklistItems CreateOrUpdate. + */ +public final class RaiBlocklistItemsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutRaiBlocklistItem.json + */ + /** + * Sample code: PutRaiBlocklistItem. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .define("raiBlocklistItemName") + .withExistingRaiBlocklist("resourceGroupName", "accountName", "raiBlocklistName") + .withProperties(new RaiBlocklistItemProperties().withPattern("Pattern To Block").withIsRegex(false)) + .create(); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java new file mode 100644 index 0000000000000..6732916346552 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiBlocklistItems Delete. + */ +public final class RaiBlocklistItemsDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiBlocklistItem.json + */ + /** + * Sample code: DeleteRaiBlocklistItem. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .delete("resourceGroupName", "accountName", "raiBlocklistName", "raiBlocklistItemName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java new file mode 100644 index 0000000000000..01ed662a62361 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiBlocklistItems Get. + */ +public final class RaiBlocklistItemsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiBlocklistItem.json + */ + /** + * Sample code: GetRaiBlocklistItem. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getRaiBlocklistItem(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .getWithResponse("resourceGroupName", "accountName", "raiBlocklistName", "raiBlocklistItemName", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java new file mode 100644 index 0000000000000..2e70812420ad8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiBlocklistItems List. + */ +public final class RaiBlocklistItemsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListBlocklistItems.json + */ + /** + * Sample code: ListBlocklistItems. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listBlocklistItems(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklistItems() + .list("resourceGroupName", "accountName", "raiBlocklistName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..464d21c4423c6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; + +/** + * Samples for RaiBlocklists CreateOrUpdate. + */ +public final class RaiBlocklistsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutRaiBlocklist.json + */ + /** + * Sample code: PutRaiBlocklist. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists() + .define("raiBlocklistName") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new RaiBlocklistProperties().withDescription("Basic blocklist description")) + .create(); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java new file mode 100644 index 0000000000000..c6d0e961f5a4a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiBlocklists Delete. + */ +public final class RaiBlocklistsDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiBlocklist.json + */ + /** + * Sample code: DeleteRaiBlocklist. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists() + .delete("resourceGroupName", "accountName", "raiBlocklistName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java new file mode 100644 index 0000000000000..6ea1eb7ca95fe --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiBlocklists Get. + */ +public final class RaiBlocklistsGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiBlocklist.json + */ + /** + * Sample code: GetRaiBlocklist. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getRaiBlocklist(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists() + .getWithResponse("resourceGroupName", "accountName", "raiBlocklistName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java new file mode 100644 index 0000000000000..23f8dd992b707 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiBlocklists List. + */ +public final class RaiBlocklistsListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListBlocklists.json + */ + /** + * Sample code: ListBlocklists. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listBlocklists(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiBlocklists().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java new file mode 100644 index 0000000000000..6c937b1099c93 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiContentFilters Get. + */ +public final class RaiContentFiltersGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiContentFilter.json + */ + /** + * Sample code: GetRaiContentFilters. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getRaiContentFilters(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiContentFilters().getWithResponse("WestUS", "IndirectAttack", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java new file mode 100644 index 0000000000000..48fb8ffbe90c6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiContentFilters List. + */ +public final class RaiContentFiltersListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListRaiContentFilters.json + */ + /** + * Sample code: ListRaiContentFilters. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listRaiContentFilters(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiContentFilters().list("WestUS", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..5c500f926b5ec --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.util.Arrays; + +/** + * Samples for RaiPolicies CreateOrUpdate. + */ +public final class RaiPoliciesCreateOrUpdateSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * PutRaiPolicy.json + */ + /** + * Sample code: PutRaiPolicy. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies() + .define("raiPolicyName") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) + .withBasePolicyName("Microsoft.Default") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("Hate") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Hate") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Sexual") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Sexual") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Selfharm") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Selfharm") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Violence") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Violence") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Jailbreak") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("Protected Material Text") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Protected Material Code") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("Profanity") + .withEnabled(true) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT)))) + .create(); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java new file mode 100644 index 0000000000000..a2d89161b53d7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiPolicies Delete. + */ +public final class RaiPoliciesDeleteSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * DeleteRaiPolicy.json + */ + /** + * Sample code: DeleteRaiPolicy. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies() + .delete("resourceGroupName", "accountName", "raiPolicyName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java new file mode 100644 index 0000000000000..841c29a91c0a8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiPolicies Get. + */ +public final class RaiPoliciesGetSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * GetRaiPolicy.json + */ + /** + * Sample code: GetRaiPolicy. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies() + .getWithResponse("resourceGroupName", "accountName", "raiPolicyName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java new file mode 100644 index 0000000000000..a41dbec1dc5bb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for RaiPolicies List. + */ +public final class RaiPoliciesListSamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * ListRaiPolicies.json + */ + /** + * Sample code: ListRaiPolicies. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listRaiPolicies(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.raiPolicies().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java new file mode 100644 index 0000000000000..511c87a7cb8c5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkload; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkloadRequestParam; +import java.util.Arrays; + +/** + * Samples for ResourceProvider CalculateModelCapacity. + */ +public final class ResourceProviderCalculateModelCapacitySamples { + /* + * x-ms-original-file: + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ + * CalculateModelCapacity.json + */ + /** + * Sample code: Calculate Model Capacity. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + calculateModelCapacity(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.resourceProviders() + .calculateModelCapacityWithResponse(new CalculateModelCapacityParameter() + .withModel(new DeploymentModel().withFormat("OpenAI").withName("gpt-4").withVersion("0613")) + .withSkuName("ProvisionedManaged") + .withWorkloads(Arrays.asList(new ModelCapacityCalculatorWorkload().withRequestPerMinute(10L) + .withRequestParameters(new ModelCapacityCalculatorWorkloadRequestParam().withAvgPromptTokens(30L) + .withAvgGeneratedTokens(50L)), + new ModelCapacityCalculatorWorkload().withRequestPerMinute(20L) + .withRequestParameters( + new ModelCapacityCalculatorWorkloadRequestParam().withAvgPromptTokens(60L) + .withAvgGeneratedTokens(20L)))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java index f3be02a016415..1b2844c408ca8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java @@ -12,7 +12,7 @@ public final class ResourceProviderCheckDomainAvailabilitySamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CheckDomainAvailability.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java index 31d756c380eab..d5e8808746aa4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java @@ -13,7 +13,7 @@ public final class ResourceProviderCheckSkuAvailabilitySamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * CheckSkuAvailability.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java index f89dd68cb06ad..7a441d798848f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java @@ -10,7 +10,7 @@ public final class ResourceSkusListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetSkus. + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetSkus. * json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java index 5328f9d7379c3..9f7bc0eace2c4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java @@ -10,7 +10,7 @@ public final class UsagesListSamples { /* * x-ms-original-file: - * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ + * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ * ListUsages.json */ /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java index ccfa65cdbf4ce..3ec05d022a492 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.accounts().delete("ratiz", "ronasxift", com.azure.core.util.Context.NONE); + manager.accounts().delete("lxqzvn", "rsbycucrwn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java index de26ee57956e9..8f36823b6aea5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class AccountsListSkusWithResponseMockTests { @Test public void testListSkusWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"resourceType\":\"fgslqubkwdl\",\"sku\":{\"name\":\"rds\",\"tier\":\"Free\",\"size\":\"bazpjuohmi\",\"family\":\"flnorwmduvwp\",\"capacity\":1862028450}},{\"resourceType\":\"w\",\"sku\":{\"name\":\"gdxpg\",\"tier\":\"Basic\",\"size\":\"isze\",\"family\":\"nb\",\"capacity\":1746749164}}]}"; + = "{\"value\":[{\"resourceType\":\"lgg\",\"sku\":{\"name\":\"bemzqkzszuwi\",\"tier\":\"Free\",\"size\":\"xxhljfpgpic\",\"family\":\"nzhrgmqgjsxvpqcb\",\"capacity\":1162167874}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testListSkusWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); AccountSkuListResult response = manager.accounts() - .listSkusWithResponse("uaadraufactkahzo", "ajjziuxxpshne", com.azure.core.util.Context.NONE) + .listSkusWithResponse("kfvxcnq", "xqpswok", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fgslqubkwdl", response.value().get(0).resourceType()); - Assertions.assertEquals("rds", response.value().get(0).sku().name()); + Assertions.assertEquals("lgg", response.value().get(0).resourceType()); + Assertions.assertEquals("bemzqkzszuwi", response.value().get(0).sku().name()); Assertions.assertEquals(SkuTier.FREE, response.value().get(0).sku().tier()); - Assertions.assertEquals("bazpjuohmi", response.value().get(0).sku().size()); - Assertions.assertEquals("flnorwmduvwp", response.value().get(0).sku().family()); - Assertions.assertEquals(1862028450, response.value().get(0).sku().capacity()); + Assertions.assertEquals("xxhljfpgpic", response.value().get(0).sku().size()); + Assertions.assertEquals("nzhrgmqgjsxvpqcb", response.value().get(0).sku().family()); + Assertions.assertEquals(1162167874, response.value().get(0).sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java index 7618de4f60471..f6dfa28d423a1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class AccountsListUsagesWithResponseMockTests { @Test public void testListUsagesWithResponse() throws Exception { String responseStr - = "{\"nextLink\":\"pzlrphw\",\"value\":[{\"unit\":\"Percent\",\"name\":{\"value\":\"yuqdu\",\"localizedValue\":\"mnnrwr\"},\"quotaPeriod\":\"ork\",\"limit\":33.80598367891427,\"currentValue\":65.86009286032747,\"nextResetTime\":\"gdnhxmsiv\",\"status\":\"Unknown\"},{\"unit\":\"Milliseconds\",\"name\":{\"value\":\"ggdufiqndieu\",\"localizedValue\":\"ofjchvcyyysf\"},\"quotaPeriod\":\"otcubi\",\"limit\":77.02580661377183,\"currentValue\":2.414000523273596,\"nextResetTime\":\"onmacjekniz\",\"status\":\"Included\"},{\"unit\":\"Seconds\",\"name\":{\"value\":\"pevf\",\"localizedValue\":\"b\"},\"quotaPeriod\":\"rilbywdx\",\"limit\":15.215514950847652,\"currentValue\":71.46991928606101,\"nextResetTime\":\"fscjfnynszquji\",\"status\":\"Blocked\"}]}"; + = "{\"nextLink\":\"wvsgmwohqfzizvu\",\"value\":[{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"thnwpzte\",\"localizedValue\":\"vmribiat\"},\"quotaPeriod\":\"plucfotangcfhnyk\",\"limit\":34.811432195394524,\"currentValue\":74.0119738169162,\"nextResetTime\":\"wlmzqwmvtxnjmxmc\",\"status\":\"Included\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testListUsagesWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); UsageListResult response = manager.accounts() - .listUsagesWithResponse("xgibbda", "confozauors", "kokwbqplhlvnu", com.azure.core.util.Context.NONE) + .listUsagesWithResponse("bodthsqqgvri", "bakclacjfrnxous", "au", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pzlrphw", response.nextLink()); - Assertions.assertEquals(UnitType.PERCENT, response.value().get(0).unit()); - Assertions.assertEquals("yuqdu", response.value().get(0).name().value()); - Assertions.assertEquals("mnnrwr", response.value().get(0).name().localizedValue()); - Assertions.assertEquals("ork", response.value().get(0).quotaPeriod()); - Assertions.assertEquals(33.80598367891427D, response.value().get(0).limit()); - Assertions.assertEquals(65.86009286032747D, response.value().get(0).currentValue()); - Assertions.assertEquals("gdnhxmsiv", response.value().get(0).nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.UNKNOWN, response.value().get(0).status()); + Assertions.assertEquals("wvsgmwohqfzizvu", response.nextLink()); + Assertions.assertEquals(UnitType.BYTES_PER_SECOND, response.value().get(0).unit()); + Assertions.assertEquals("thnwpzte", response.value().get(0).name().value()); + Assertions.assertEquals("vmribiat", response.value().get(0).name().localizedValue()); + Assertions.assertEquals("plucfotangcfhnyk", response.value().get(0).quotaPeriod()); + Assertions.assertEquals(34.811432195394524D, response.value().get(0).limit()); + Assertions.assertEquals(74.0119738169162D, response.value().get(0).currentValue()); + Assertions.assertEquals("wlmzqwmvtxnjmxmc", response.value().get(0).nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.INCLUDED, response.value().get(0).status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java new file mode 100644 index 0000000000000..9be6f8262825c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.BillingMeterInfo; +import org.junit.jupiter.api.Assertions; + +public final class BillingMeterInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BillingMeterInfo model + = BinaryData.fromString("{\"name\":\"skpbhenbtkcxywn\",\"meterId\":\"nrs\",\"unit\":\"lqidyby\"}") + .toObject(BillingMeterInfo.class); + Assertions.assertEquals("skpbhenbtkcxywn", model.name()); + Assertions.assertEquals("nrs", model.meterId()); + Assertions.assertEquals("lqidyby", model.unit()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + BillingMeterInfo model + = new BillingMeterInfo().withName("skpbhenbtkcxywn").withMeterId("nrs").withUnit("lqidyby"); + model = BinaryData.fromObject(model).toObject(BillingMeterInfo.class); + Assertions.assertEquals("skpbhenbtkcxywn", model.name()); + Assertions.assertEquals("nrs", model.meterId()); + Assertions.assertEquals("lqidyby", model.unit()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CalculateModelCapacityResultEstimatedCapacityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CalculateModelCapacityResultEstimatedCapacityTests.java new file mode 100644 index 0000000000000..33eb5ae9e8f82 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CalculateModelCapacityResultEstimatedCapacityTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity; +import org.junit.jupiter.api.Assertions; + +public final class CalculateModelCapacityResultEstimatedCapacityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CalculateModelCapacityResultEstimatedCapacity model + = BinaryData.fromString("{\"value\":1929078891,\"deployableValue\":766917495}") + .toObject(CalculateModelCapacityResultEstimatedCapacity.class); + Assertions.assertEquals(1929078891, model.value()); + Assertions.assertEquals(766917495, model.deployableValue()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CalculateModelCapacityResultEstimatedCapacity model + = new CalculateModelCapacityResultEstimatedCapacity().withValue(1929078891).withDeployableValue(766917495); + model = BinaryData.fromObject(model).toObject(CalculateModelCapacityResultEstimatedCapacity.class); + Assertions.assertEquals(1929078891, model.value()); + Assertions.assertEquals(766917495, model.deployableValue()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java index 9dc0b7953cb97..d06ee5a79d2f0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java @@ -6,30 +6,34 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cognitiveservices.models.CapacityConfig; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class CapacityConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CapacityConfig model = BinaryData - .fromString("{\"minimum\":2065726481,\"maximum\":528662531,\"step\":441208972,\"default\":792619615}") + CapacityConfig model = BinaryData.fromString( + "{\"minimum\":18555434,\"maximum\":480744947,\"step\":1333512274,\"default\":826548714,\"allowedValues\":[1771770705,307935551,1373205517,1850668583]}") .toObject(CapacityConfig.class); - Assertions.assertEquals(2065726481, model.minimum()); - Assertions.assertEquals(528662531, model.maximum()); - Assertions.assertEquals(441208972, model.step()); - Assertions.assertEquals(792619615, model.defaultProperty()); + Assertions.assertEquals(18555434, model.minimum()); + Assertions.assertEquals(480744947, model.maximum()); + Assertions.assertEquals(1333512274, model.step()); + Assertions.assertEquals(826548714, model.defaultProperty()); + Assertions.assertEquals(1771770705, model.allowedValues().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapacityConfig model = new CapacityConfig().withMinimum(2065726481) - .withMaximum(528662531) - .withStep(441208972) - .withDefaultProperty(792619615); + CapacityConfig model = new CapacityConfig().withMinimum(18555434) + .withMaximum(480744947) + .withStep(1333512274) + .withDefaultProperty(826548714) + .withAllowedValues(Arrays.asList(1771770705, 307935551, 1373205517, 1850668583)); model = BinaryData.fromObject(model).toObject(CapacityConfig.class); - Assertions.assertEquals(2065726481, model.minimum()); - Assertions.assertEquals(528662531, model.maximum()); - Assertions.assertEquals(441208972, model.step()); - Assertions.assertEquals(792619615, model.defaultProperty()); + Assertions.assertEquals(18555434, model.minimum()); + Assertions.assertEquals(480744947, model.maximum()); + Assertions.assertEquals(1333512274, model.step()); + Assertions.assertEquals(826548714, model.defaultProperty()); + Assertions.assertEquals(1771770705, model.allowedValues().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckDomainAvailabilityParameterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckDomainAvailabilityParameterTests.java index 6f79f1beff354..c5610c7bb4f08 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckDomainAvailabilityParameterTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckDomainAvailabilityParameterTests.java @@ -11,21 +11,22 @@ public final class CheckDomainAvailabilityParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckDomainAvailabilityParameter model - = BinaryData.fromString("{\"subdomainName\":\"kcvqvpke\",\"type\":\"dcvd\",\"kind\":\"vo\"}") - .toObject(CheckDomainAvailabilityParameter.class); - Assertions.assertEquals("kcvqvpke", model.subdomainName()); - Assertions.assertEquals("dcvd", model.type()); - Assertions.assertEquals("vo", model.kind()); + CheckDomainAvailabilityParameter model = BinaryData + .fromString("{\"subdomainName\":\"fpubjibwwi\",\"type\":\"tohqkvpuvksgp\",\"kind\":\"aknynfsynljphuop\"}") + .toObject(CheckDomainAvailabilityParameter.class); + Assertions.assertEquals("fpubjibwwi", model.subdomainName()); + Assertions.assertEquals("tohqkvpuvksgp", model.type()); + Assertions.assertEquals("aknynfsynljphuop", model.kind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckDomainAvailabilityParameter model - = new CheckDomainAvailabilityParameter().withSubdomainName("kcvqvpke").withType("dcvd").withKind("vo"); + CheckDomainAvailabilityParameter model = new CheckDomainAvailabilityParameter().withSubdomainName("fpubjibwwi") + .withType("tohqkvpuvksgp") + .withKind("aknynfsynljphuop"); model = BinaryData.fromObject(model).toObject(CheckDomainAvailabilityParameter.class); - Assertions.assertEquals("kcvqvpke", model.subdomainName()); - Assertions.assertEquals("dcvd", model.type()); - Assertions.assertEquals("vo", model.kind()); + Assertions.assertEquals("fpubjibwwi", model.subdomainName()); + Assertions.assertEquals("tohqkvpuvksgp", model.type()); + Assertions.assertEquals("aknynfsynljphuop", model.kind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckSkuAvailabilityParameterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckSkuAvailabilityParameterTests.java index 80bd87a529dd6..e17074ff336a6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckSkuAvailabilityParameterTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CheckSkuAvailabilityParameterTests.java @@ -13,22 +13,23 @@ public final class CheckSkuAvailabilityParameterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckSkuAvailabilityParameter model = BinaryData - .fromString("{\"skus\":[\"dkzjancuxrh\",\"wbavxbniwdj\",\"wz\"],\"kind\":\"s\",\"type\":\"bpg\"}") + .fromString( + "{\"skus\":[\"notyfjfcnjbkcn\",\"dhbt\",\"kphywpnvjto\"],\"kind\":\"nermcl\",\"type\":\"plpho\"}") .toObject(CheckSkuAvailabilityParameter.class); - Assertions.assertEquals("dkzjancuxrh", model.skus().get(0)); - Assertions.assertEquals("s", model.kind()); - Assertions.assertEquals("bpg", model.type()); + Assertions.assertEquals("notyfjfcnjbkcn", model.skus().get(0)); + Assertions.assertEquals("nermcl", model.kind()); + Assertions.assertEquals("plpho", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CheckSkuAvailabilityParameter model - = new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("dkzjancuxrh", "wbavxbniwdj", "wz")) - .withKind("s") - .withType("bpg"); + = new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("notyfjfcnjbkcn", "dhbt", "kphywpnvjto")) + .withKind("nermcl") + .withType("plpho"); model = BinaryData.fromObject(model).toObject(CheckSkuAvailabilityParameter.class); - Assertions.assertEquals("dkzjancuxrh", model.skus().get(0)); - Assertions.assertEquals("s", model.kind()); - Assertions.assertEquals("bpg", model.type()); + Assertions.assertEquals("notyfjfcnjbkcn", model.skus().get(0)); + Assertions.assertEquals("nermcl", model.kind()); + Assertions.assertEquals("plpho", model.type()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java index aa825f32082d0..e315b77ca1895 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java @@ -12,18 +12,18 @@ public final class CommitmentCostTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentCost model - = BinaryData.fromString("{\"commitmentMeterId\":\"pkdeemaofmxagkvt\",\"overageMeterId\":\"lmqkrhahvlj\"}") + = BinaryData.fromString("{\"commitmentMeterId\":\"zuaejxd\",\"overageMeterId\":\"tskzbbtdzumveek\"}") .toObject(CommitmentCost.class); - Assertions.assertEquals("pkdeemaofmxagkvt", model.commitmentMeterId()); - Assertions.assertEquals("lmqkrhahvlj", model.overageMeterId()); + Assertions.assertEquals("zuaejxd", model.commitmentMeterId()); + Assertions.assertEquals("tskzbbtdzumveek", model.overageMeterId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentCost model - = new CommitmentCost().withCommitmentMeterId("pkdeemaofmxagkvt").withOverageMeterId("lmqkrhahvlj"); + = new CommitmentCost().withCommitmentMeterId("zuaejxd").withOverageMeterId("tskzbbtdzumveek"); model = BinaryData.fromObject(model).toObject(CommitmentCost.class); - Assertions.assertEquals("pkdeemaofmxagkvt", model.commitmentMeterId()); - Assertions.assertEquals("lmqkrhahvlj", model.overageMeterId()); + Assertions.assertEquals("zuaejxd", model.commitmentMeterId()); + Assertions.assertEquals("tskzbbtdzumveek", model.overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java index 76163e83fba3c..d948a29ab9226 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java @@ -12,17 +12,17 @@ public final class CommitmentPeriodTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPeriod model = BinaryData.fromString( - "{\"tier\":\"gjqppy\",\"count\":768184156,\"quota\":{\"quantity\":2863905998828514603,\"unit\":\"yhgfipnsx\"},\"startDate\":\"cwaekrrjre\",\"endDate\":\"xt\"}") + "{\"tier\":\"eqphchqnrnr\",\"count\":2099945195,\"quota\":{\"quantity\":8201387664447869413,\"unit\":\"k\"},\"startDate\":\"aifmvikl\",\"endDate\":\"dvk\"}") .toObject(CommitmentPeriod.class); - Assertions.assertEquals("gjqppy", model.tier()); - Assertions.assertEquals(768184156, model.count()); + Assertions.assertEquals("eqphchqnrnr", model.tier()); + Assertions.assertEquals(2099945195, model.count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPeriod model = new CommitmentPeriod().withTier("gjqppy").withCount(768184156); + CommitmentPeriod model = new CommitmentPeriod().withTier("eqphchqnrnr").withCount(2099945195); model = BinaryData.fromObject(model).toObject(CommitmentPeriod.class); - Assertions.assertEquals("gjqppy", model.tier()); - Assertions.assertEquals(768184156, model.count()); + Assertions.assertEquals("eqphchqnrnr", model.tier()); + Assertions.assertEquals(2099945195, model.count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java index c133580195936..a634d3636aef7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java @@ -6,21 +6,39 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationInner; +import java.util.HashMap; +import java.util.Map; import org.junit.jupiter.api.Assertions; public final class CommitmentPlanAccountAssociationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanAccountAssociationInner model = BinaryData.fromString( - "{\"etag\":\"einqf\",\"properties\":{\"accountId\":\"x\"},\"id\":\"knpirgnepttwq\",\"name\":\"sniffc\",\"type\":\"mqnrojlpijnkr\"}") + "{\"etag\":\"gxdbeesmie\",\"tags\":{\"iaa\":\"ra\",\"agt\":\"iuagydwqfbylyrfg\",\"zjvusfzldmo\":\"ojocqwogf\"},\"properties\":{\"accountId\":\"ylfsbtk\"},\"id\":\"dp\",\"name\":\"s\",\"type\":\"wn\"}") .toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("x", model.accountId()); + Assertions.assertEquals("ra", model.tags().get("iaa")); + Assertions.assertEquals("ylfsbtk", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanAccountAssociationInner model = new CommitmentPlanAccountAssociationInner().withAccountId("x"); + CommitmentPlanAccountAssociationInner model = new CommitmentPlanAccountAssociationInner() + .withTags(mapOf("iaa", "ra", "agt", "iuagydwqfbylyrfg", "zjvusfzldmo", "ojocqwogf")) + .withAccountId("ylfsbtk"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("x", model.accountId()); + Assertions.assertEquals("ra", model.tags().get("iaa")); + Assertions.assertEquals("ylfsbtk", model.accountId()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java index 612930e3765e7..da0339a3b2ddc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java @@ -12,16 +12,16 @@ public final class CommitmentPlanAccountAssociationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanAccountAssociationListResult model = BinaryData.fromString( - "{\"nextLink\":\"lwfffi\",\"value\":[{\"etag\":\"qqmtedltmmji\",\"properties\":{\"accountId\":\"ozphvwauyqncygu\"},\"id\":\"kvi\",\"name\":\"mdscwxqupev\",\"type\":\"hfstotxhojujbyp\"},{\"etag\":\"c\",\"properties\":{\"accountId\":\"ixbjx\"},\"id\":\"fw\",\"name\":\"yl\",\"type\":\"coolsttpkiwkkb\"},{\"etag\":\"rywvtylbfpn\",\"properties\":{\"accountId\":\"doiwi\"},\"id\":\"thtywub\",\"name\":\"cbihwqk\",\"type\":\"fdntwjchrdgoih\"},{\"etag\":\"wct\",\"properties\":{\"accountId\":\"zj\"},\"id\":\"uu\",\"name\":\"fdlwg\",\"type\":\"ytsbwtovv\"}]}") + "{\"nextLink\":\"omtkub\",\"value\":[{\"etag\":\"vdxzxhihfrbbc\",\"tags\":{\"ykvgtrdcnifmz\":\"agtltdhlfkqoj\"},\"properties\":{\"accountId\":\"ymbrnysuxmpraf\"},\"id\":\"g\",\"name\":\"khocxvdfffwaf\",\"type\":\"roud\"},{\"etag\":\"avehhrvkbunzo\",\"tags\":{\"dyuib\":\"hcxgkmoyx\",\"zydvfvf\":\"mfdn\",\"vhmgorffukis\":\"jnaeois\"},\"properties\":{\"accountId\":\"mzhwplefaxvxi\"},\"id\":\"cbtgnhnz\",\"name\":\"yqxtjjfzql\",\"type\":\"hycav\"}]}") .toObject(CommitmentPlanAccountAssociationListResult.class); - Assertions.assertEquals("lwfffi", model.nextLink()); + Assertions.assertEquals("omtkub", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanAccountAssociationListResult model - = new CommitmentPlanAccountAssociationListResult().withNextLink("lwfffi"); + = new CommitmentPlanAccountAssociationListResult().withNextLink("omtkub"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationListResult.class); - Assertions.assertEquals("lwfffi", model.nextLink()); + Assertions.assertEquals("omtkub", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java index 7641e6bd647b9..c0e3bcc5117e1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java @@ -11,16 +11,16 @@ public final class CommitmentPlanAccountAssociationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CommitmentPlanAccountAssociationProperties model = BinaryData.fromString("{\"accountId\":\"rddh\"}") + CommitmentPlanAccountAssociationProperties model = BinaryData.fromString("{\"accountId\":\"gkbugrjqct\"}") .toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("rddh", model.accountId()); + Assertions.assertEquals("gkbugrjqct", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanAccountAssociationProperties model - = new CommitmentPlanAccountAssociationProperties().withAccountId("rddh"); + = new CommitmentPlanAccountAssociationProperties().withAccountId("gkbugrjqct"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("rddh", model.accountId()); + Assertions.assertEquals("gkbugrjqct", model.accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java index d9c1f7f8be0c5..7df7159a3c8b3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java @@ -19,59 +19,59 @@ public final class CommitmentPlanInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanInner model = BinaryData.fromString( - "{\"etag\":\"rjqc\",\"kind\":\"gzpfrla\",\"sku\":{\"name\":\"zrnw\",\"tier\":\"Basic\",\"size\":\"dfpwpjylwbtlhfls\",\"family\":\"dhszfjv\",\"capacity\":1304960075},\"tags\":{\"qmqhldvriii\":\"eljag\",\"vtvsexsowueluq\":\"jnalghf\",\"wws\":\"hahhxvrhmzkwpj\"},\"location\":\"ghftqsxhqxujxuk\",\"properties\":{\"provisioningState\":\"Creating\",\"commitmentPlanGuid\":\"grjguufzd\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"tfih\",\"current\":{\"tier\":\"otzi\",\"count\":1709728841,\"quota\":{\"quantity\":2353170453764663846,\"unit\":\"o\"},\"startDate\":\"qzudphq\",\"endDate\":\"vdkfwynwcvtbvk\"},\"autoRenew\":false,\"next\":{\"tier\":\"nvyq\",\"count\":686807657,\"quota\":{\"quantity\":1497619530378227200,\"unit\":\"npwzcjaes\"},\"startDate\":\"v\",\"endDate\":\"cyajguqf\"},\"last\":{\"tier\":\"gzlvdnkfxu\",\"count\":2087511541,\"quota\":{\"quantity\":4703323769472107335,\"unit\":\"uh\"},\"startDate\":\"fcqdpsq\",\"endDate\":\"vpsvuoymgcce\"},\"provisioningIssues\":[\"zrypqlmfeokerqw\",\"yhko\"]},\"id\":\"opgxedkowepb\",\"name\":\"pc\",\"type\":\"fkbw\"}") + "{\"etag\":\"ithtywu\",\"kind\":\"cbihwqk\",\"sku\":{\"name\":\"dntwjchrdgo\",\"tier\":\"Premium\",\"size\":\"mwctondzjluudfd\",\"family\":\"gg\",\"capacity\":407564287},\"tags\":{\"tgseinqfiufxqkn\":\"tov\",\"ttwqmsni\":\"irgne\",\"rxfrddhc\":\"fcdmqnrojlpijn\"},\"location\":\"tizzronasxif\",\"properties\":{\"provisioningState\":\"Creating\",\"commitmentPlanGuid\":\"zh\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"sgogczhonnxk\",\"current\":{\"tier\":\"nyhmossxkkgthr\",\"count\":486654365,\"quota\":{\"quantity\":1163156563773473643,\"unit\":\"qxvcxgfrpdsofb\"},\"startDate\":\"rnsvbuswd\",\"endDate\":\"yybyc\"},\"autoRenew\":true,\"next\":{\"tier\":\"srtkfa\",\"count\":1955812770,\"quota\":{\"quantity\":877559643182004257,\"unit\":\"yzirtxdyuxzejn\"},\"startDate\":\"sewgioilqukr\",\"endDate\":\"xtqmieoxor\"},\"last\":{\"tier\":\"f\",\"count\":1933548472,\"quota\":{\"quantity\":4267907797964395511,\"unit\":\"hhavgrvkffovjz\"},\"startDate\":\"jbibg\",\"endDate\":\"fxumv\"},\"provisioningIssues\":[\"uyovw\",\"nbkfezzxscy\",\"wzdgirujbzbo\",\"vzzbtdcq\"]},\"id\":\"pniyujviyl\",\"name\":\"dshf\",\"type\":\"snrbgyefrymsgao\"}") .toObject(CommitmentPlanInner.class); - Assertions.assertEquals("gzpfrla", model.kind()); - Assertions.assertEquals("zrnw", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("dfpwpjylwbtlhfls", model.sku().size()); - Assertions.assertEquals("dhszfjv", model.sku().family()); - Assertions.assertEquals(1304960075, model.sku().capacity()); - Assertions.assertEquals("eljag", model.tags().get("qmqhldvriii")); - Assertions.assertEquals("ghftqsxhqxujxuk", model.location()); - Assertions.assertEquals("grjguufzd", model.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, model.properties().hostingModel()); - Assertions.assertEquals("tfih", model.properties().planType()); - Assertions.assertEquals("otzi", model.properties().current().tier()); - Assertions.assertEquals(1709728841, model.properties().current().count()); - Assertions.assertEquals(false, model.properties().autoRenew()); - Assertions.assertEquals("nvyq", model.properties().next().tier()); - Assertions.assertEquals(686807657, model.properties().next().count()); + Assertions.assertEquals("cbihwqk", model.kind()); + Assertions.assertEquals("dntwjchrdgo", model.sku().name()); + Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); + Assertions.assertEquals("mwctondzjluudfd", model.sku().size()); + Assertions.assertEquals("gg", model.sku().family()); + Assertions.assertEquals(407564287, model.sku().capacity()); + Assertions.assertEquals("tov", model.tags().get("tgseinqfiufxqkn")); + Assertions.assertEquals("tizzronasxif", model.location()); + Assertions.assertEquals("zh", model.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.properties().hostingModel()); + Assertions.assertEquals("sgogczhonnxk", model.properties().planType()); + Assertions.assertEquals("nyhmossxkkgthr", model.properties().current().tier()); + Assertions.assertEquals(486654365, model.properties().current().count()); + Assertions.assertEquals(true, model.properties().autoRenew()); + Assertions.assertEquals("srtkfa", model.properties().next().tier()); + Assertions.assertEquals(1955812770, model.properties().next().count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanInner model = new CommitmentPlanInner().withKind("gzpfrla") - .withSku(new Sku().withName("zrnw") - .withTier(SkuTier.BASIC) - .withSize("dfpwpjylwbtlhfls") - .withFamily("dhszfjv") - .withCapacity(1304960075)) - .withTags(mapOf("qmqhldvriii", "eljag", "vtvsexsowueluq", "jnalghf", "wws", "hahhxvrhmzkwpj")) - .withLocation("ghftqsxhqxujxuk") - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("grjguufzd") - .withHostingModel(HostingModel.CONNECTED_CONTAINER) - .withPlanType("tfih") - .withCurrent(new CommitmentPeriod().withTier("otzi").withCount(1709728841)) - .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("nvyq").withCount(686807657))); + CommitmentPlanInner model = new CommitmentPlanInner().withKind("cbihwqk") + .withSku(new Sku().withName("dntwjchrdgo") + .withTier(SkuTier.PREMIUM) + .withSize("mwctondzjluudfd") + .withFamily("gg") + .withCapacity(407564287)) + .withTags(mapOf("tgseinqfiufxqkn", "tov", "ttwqmsni", "irgne", "rxfrddhc", "fcdmqnrojlpijn")) + .withLocation("tizzronasxif") + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("zh") + .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) + .withPlanType("sgogczhonnxk") + .withCurrent(new CommitmentPeriod().withTier("nyhmossxkkgthr").withCount(486654365)) + .withAutoRenew(true) + .withNext(new CommitmentPeriod().withTier("srtkfa").withCount(1955812770))); model = BinaryData.fromObject(model).toObject(CommitmentPlanInner.class); - Assertions.assertEquals("gzpfrla", model.kind()); - Assertions.assertEquals("zrnw", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("dfpwpjylwbtlhfls", model.sku().size()); - Assertions.assertEquals("dhszfjv", model.sku().family()); - Assertions.assertEquals(1304960075, model.sku().capacity()); - Assertions.assertEquals("eljag", model.tags().get("qmqhldvriii")); - Assertions.assertEquals("ghftqsxhqxujxuk", model.location()); - Assertions.assertEquals("grjguufzd", model.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, model.properties().hostingModel()); - Assertions.assertEquals("tfih", model.properties().planType()); - Assertions.assertEquals("otzi", model.properties().current().tier()); - Assertions.assertEquals(1709728841, model.properties().current().count()); - Assertions.assertEquals(false, model.properties().autoRenew()); - Assertions.assertEquals("nvyq", model.properties().next().tier()); - Assertions.assertEquals(686807657, model.properties().next().count()); + Assertions.assertEquals("cbihwqk", model.kind()); + Assertions.assertEquals("dntwjchrdgo", model.sku().name()); + Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); + Assertions.assertEquals("mwctondzjluudfd", model.sku().size()); + Assertions.assertEquals("gg", model.sku().family()); + Assertions.assertEquals(407564287, model.sku().capacity()); + Assertions.assertEquals("tov", model.tags().get("tgseinqfiufxqkn")); + Assertions.assertEquals("tizzronasxif", model.location()); + Assertions.assertEquals("zh", model.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.properties().hostingModel()); + Assertions.assertEquals("sgogczhonnxk", model.properties().planType()); + Assertions.assertEquals("nyhmossxkkgthr", model.properties().current().tier()); + Assertions.assertEquals(486654365, model.properties().current().count()); + Assertions.assertEquals(true, model.properties().autoRenew()); + Assertions.assertEquals("srtkfa", model.properties().next().tier()); + Assertions.assertEquals(1955812770, model.properties().next().count()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java index 8bcbfdba24816..c4c41aa169b2a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java @@ -12,15 +12,15 @@ public final class CommitmentPlanListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanListResult model = BinaryData.fromString( - "{\"nextLink\":\"wpu\",\"value\":[{\"etag\":\"ylsyxkqjnsje\",\"kind\":\"tiagx\",\"sku\":{\"name\":\"sz\",\"tier\":\"Basic\",\"size\":\"sbzkf\",\"family\":\"eyvpnqicvinvkj\",\"capacity\":611015935},\"tags\":{\"paztzpofncck\":\"buukzclewyhml\",\"qa\":\"yfzqwhxxbu\",\"lxorjaltolmncws\":\"zfeqztppri\",\"ucqdpfuvglsb\":\"bqwcsdbnwdcf\"},\"location\":\"ca\",\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"t\",\"hostingModel\":\"Web\",\"planType\":\"tncormrlxqtvco\",\"current\":{\"tier\":\"f\",\"count\":2052668715,\"quota\":{\"quantity\":1135305711029815277,\"unit\":\"dknnqvsazn\"},\"startDate\":\"tor\",\"endDate\":\"sgsahmkycgr\"},\"autoRenew\":false,\"next\":{\"tier\":\"etaebu\",\"count\":1406520561,\"quota\":{\"quantity\":4182504228113583516,\"unit\":\"mz\"},\"startDate\":\"wabm\",\"endDate\":\"efkifr\"},\"last\":{\"tier\":\"u\",\"count\":2034144205,\"quota\":{\"quantity\":5941269250406348563,\"unit\":\"fbtndoaong\"},\"startDate\":\"cn\",\"endDate\":\"jitcjedftwwaez\"},\"provisioningIssues\":[\"v\",\"c\",\"zfoqouicybxar\",\"gszufoxciqopid\"]},\"id\":\"amcio\",\"name\":\"hkh\",\"type\":\"zxkhnzbonlwnto\"},{\"etag\":\"kdwbwhkszz\",\"kind\":\"rvexztvb\",\"sku\":{\"name\":\"gsfraoyzkoow\",\"tier\":\"Premium\",\"size\":\"guxawqaldsyuuxi\",\"family\":\"rqf\",\"capacity\":62182202},\"tags\":{\"gmhrskdsnfdsdoak\":\"nkbykutwpfhp\",\"hewpusdsttwv\":\"tdlmkkzevd\",\"qmoa\":\"gvbbejdcng\",\"twaenuuzko\":\"ufgmjzrwrdg\"},\"location\":\"minrfdw\",\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"ziuiefozbhdm\",\"hostingModel\":\"Web\",\"planType\":\"zqhof\",\"current\":{\"tier\":\"ae\",\"count\":2084931512,\"quota\":{\"quantity\":8439074224104704166,\"unit\":\"slfaoqzpiyyl\"},\"startDate\":\"lnswhcc\",\"endDate\":\"hka\"},\"autoRenew\":true,\"next\":{\"tier\":\"qscywu\",\"count\":1839231877,\"quota\":{\"quantity\":305912490315793501,\"unit\":\"zbwemh\"},\"startDate\":\"rsbrgzdwm\",\"endDate\":\"eypqwdxggicccn\"},\"last\":{\"tier\":\"uexmkttlst\",\"count\":1961670618,\"quota\":{\"quantity\":3428280503569053112,\"unit\":\"zrncsdt\"},\"startDate\":\"u\",\"endDate\":\"ypbsfgytguslfead\"},\"provisioningIssues\":[\"qukyhejhzi\"]},\"id\":\"xgfpelolppv\",\"name\":\"srp\",\"type\":\"vu\"},{\"etag\":\"aehtwd\",\"kind\":\"ftswibyrcdlbhsh\",\"sku\":{\"name\":\"p\",\"tier\":\"Standard\",\"size\":\"twitykhev\",\"family\":\"cedcpnmdy\",\"capacity\":167865446},\"tags\":{\"cxnavv\":\"xltjcvnhltiu\",\"y\":\"xqi\"},\"location\":\"nyowxwlmdjrkvfg\",\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"dbodacizsjqlhkrr\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"ibqipqkg\",\"current\":{\"tier\":\"ndzwmkrefa\",\"count\":1083309662,\"quota\":{\"quantity\":7684407938021924628,\"unit\":\"nyhgbijtji\"},\"startDate\":\"xzsjabib\",\"endDate\":\"stawfsdjpvkv\"},\"autoRenew\":true,\"next\":{\"tier\":\"kzbzkdvncjabudu\",\"count\":2102044737,\"quota\":{\"quantity\":1242212517614745912,\"unit\":\"zhjjklffhmouwq\"},\"startDate\":\"zrfze\",\"endDate\":\"ebizikayuh\"},\"last\":{\"tier\":\"jbsybbqw\",\"count\":146564330,\"quota\":{\"quantity\":8237830073363773936,\"unit\":\"pgvmpipaslthaqfx\"},\"startDate\":\"mwutwbdsre\",\"endDate\":\"drhneuyow\"},\"provisioningIssues\":[\"wyt\"]},\"id\":\"sibircgpi\",\"name\":\"pzimejzanlfzxi\",\"type\":\"vrmbzono\"}]}") + "{\"nextLink\":\"sdjpvkvp\",\"value\":[{\"etag\":\"zbzkdvncjabudurg\",\"kind\":\"kmokz\",\"sku\":{\"name\":\"jk\",\"tier\":\"Enterprise\",\"size\":\"mouwqlgzrfzeey\",\"family\":\"izikayuhq\",\"capacity\":2014142159},\"tags\":{\"ldgmfpgvmpip\":\"ybbqwrv\",\"x\":\"slthaq\"},\"location\":\"mwutwbdsre\",\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"neuyow\",\"hostingModel\":\"Web\",\"planType\":\"ytisibir\",\"current\":{\"tier\":\"ikpzimejza\",\"count\":108512766,\"quota\":{\"quantity\":5666619485240381449,\"unit\":\"rmbzo\"},\"startDate\":\"kixrj\",\"endDate\":\"irgzp\"},\"autoRenew\":false,\"next\":{\"tier\":\"szrnwo\",\"count\":1723984044,\"quota\":{\"quantity\":2655439268574784215,\"unit\":\"jylwbtlhflsj\"},\"startDate\":\"hszfjvfb\",\"endDate\":\"feljagrqm\"},\"last\":{\"tier\":\"dvriiiojnal\",\"count\":524245347,\"quota\":{\"quantity\":3278506032102071495,\"unit\":\"ex\"},\"startDate\":\"wueluqhhahhxv\",\"endDate\":\"mzkwpjg\"},\"provisioningIssues\":[\"pughftqsxh\",\"xujxuknd\",\"digrjguufzdmsyqt\"]},\"id\":\"ihwhbotzingamvpp\",\"name\":\"o\",\"type\":\"zqzudph\"},{\"etag\":\"vdkfwynwcvtbvk\",\"kind\":\"hmtnvy\",\"sku\":{\"name\":\"atkzwpcnpw\",\"tier\":\"Basic\",\"size\":\"esgvvsccyaj\",\"family\":\"qfhwyg\",\"capacity\":376601626},\"tags\":{\"emdwzrmuhapfc\":\"kfxu\"},\"location\":\"psqxq\",\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"oymgccelvezr\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"mfe\",\"current\":{\"tier\":\"rqwky\",\"count\":359384916,\"quota\":{\"quantity\":2163259137534860371,\"unit\":\"edkowepbqpcrfk\"},\"startDate\":\"ccsnjvcdwxlpq\",\"endDate\":\"ftnkhtj\"},\"autoRenew\":false,\"next\":{\"tier\":\"wfqatmtd\",\"count\":866000446,\"quota\":{\"quantity\":5714337485006383517,\"unit\":\"ikdgszywkbir\"},\"startDate\":\"uzhlhkjoqrv\",\"endDate\":\"aatjinrvgoupmfi\"},\"last\":{\"tier\":\"ggjioolvr\",\"count\":1483667739,\"quota\":{\"quantity\":4652937384056066741,\"unit\":\"llqwjygvjayvblmh\"},\"startDate\":\"zuhbxvvyhgsopb\",\"endDate\":\"qufegxuvwzfbn\"},\"provisioningIssues\":[\"ctlpdngitvgb\",\"hrixkwmy\",\"jejveg\"]},\"id\":\"hbpnaixexccbd\",\"name\":\"eaxhcexdrrvqahqk\",\"type\":\"htpwij\"},{\"etag\":\"jsvfycxzbfvoowv\",\"kind\":\"mtg\",\"sku\":{\"name\":\"ppyostronzmyhgf\",\"tier\":\"Basic\",\"size\":\"xkmcwaekrrjre\",\"family\":\"xt\",\"capacity\":747215260},\"tags\":{\"pvuzlmv\":\"jglikkxwslolb\",\"gplcrpwjxeznoigb\":\"elfk\"},\"location\":\"jwmwkpnbs\",\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"oqkag\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"ttaugzxnfaazp\",\"current\":{\"tier\":\"n\",\"count\":1270256319,\"quota\":{\"quantity\":818520490272243455,\"unit\":\"wuenvr\"},\"startDate\":\"yo\",\"endDate\":\"ibreb\"},\"autoRenew\":true,\"next\":{\"tier\":\"j\",\"count\":1330578772,\"quota\":{\"quantity\":7129303737344697098,\"unit\":\"tezlwff\"},\"startDate\":\"akpjpqqmtedlt\",\"endDate\":\"jihy\"},\"last\":{\"tier\":\"phvwauyqncygu\",\"count\":2143760681,\"quota\":{\"quantity\":2524662615582469653,\"unit\":\"cwxqu\"},\"startDate\":\"vzhfstotxhoj\",\"endDate\":\"bypel\"},\"provisioningIssues\":[\"vhixbjxy\",\"w\",\"yl\"]},\"id\":\"coolsttpkiwkkb\",\"name\":\"ujrywvtyl\",\"type\":\"fpncurdo\"}]}") .toObject(CommitmentPlanListResult.class); - Assertions.assertEquals("wpu", model.nextLink()); + Assertions.assertEquals("sdjpvkvp", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanListResult model = new CommitmentPlanListResult().withNextLink("wpu"); + CommitmentPlanListResult model = new CommitmentPlanListResult().withNextLink("sdjpvkvp"); model = BinaryData.fromObject(model).toObject(CommitmentPlanListResult.class); - Assertions.assertEquals("wpu", model.nextLink()); + Assertions.assertEquals("sdjpvkvp", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java index e814964a5016b..fce50366504b4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java @@ -14,34 +14,34 @@ public final class CommitmentPlanPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"jvcdwxlpqekf\",\"hostingModel\":\"Web\",\"planType\":\"tjsyin\",\"current\":{\"tier\":\"qatmtdhtmdvy\",\"count\":932898449,\"quota\":{\"quantity\":6469861763062162700,\"unit\":\"ywkbirryuzhlhkjo\"},\"startDate\":\"vqqaatjinrvgo\",\"endDate\":\"mfiibfggj\"},\"autoRenew\":false,\"next\":{\"tier\":\"rwxkvtkkgl\",\"count\":1852467405,\"quota\":{\"quantity\":1820890215128443908,\"unit\":\"ayvblmhvkzuhbx\"},\"startDate\":\"yhgsopbyrqufe\",\"endDate\":\"uvwzfbnh\"},\"last\":{\"tier\":\"tlpdn\",\"count\":1116199441,\"quota\":{\"quantity\":6928961478611605886,\"unit\":\"rixkwmyijejve\"},\"startDate\":\"hbpnaixexccbd\",\"endDate\":\"ax\"},\"provisioningIssues\":[\"xdrrvqahqkghtp\",\"ijnhyjsvfycxzbf\",\"oowvrv\"]}") + "{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"nc\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"fhir\",\"current\":{\"tier\":\"moxoftpi\",\"count\":828485961,\"quota\":{\"quantity\":3781366448513204027,\"unit\":\"xacpqjli\"},\"startDate\":\"yuspskas\",\"endDate\":\"lmfwdgzx\"},\"autoRenew\":false,\"next\":{\"tier\":\"pamrsr\",\"count\":866301348,\"quota\":{\"quantity\":7194736434377402357,\"unit\":\"sjnhn\"},\"startDate\":\"xifqjzgxm\",\"endDate\":\"ublwpcesutrg\"},\"last\":{\"tier\":\"auutpwoqhihe\",\"count\":89548348,\"quota\":{\"quantity\":742897891377561430,\"unit\":\"qntcypsxjvfoimwk\"},\"startDate\":\"ircizjxvy\",\"endDate\":\"ceacvlhvygdy\"},\"provisioningIssues\":[\"mrtwna\",\"jslb\",\"wkojgcyztsfmzn\"]}") .toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("jvcdwxlpqekf", model.commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, model.hostingModel()); - Assertions.assertEquals("tjsyin", model.planType()); - Assertions.assertEquals("qatmtdhtmdvy", model.current().tier()); - Assertions.assertEquals(932898449, model.current().count()); + Assertions.assertEquals("nc", model.commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.hostingModel()); + Assertions.assertEquals("fhir", model.planType()); + Assertions.assertEquals("moxoftpi", model.current().tier()); + Assertions.assertEquals(828485961, model.current().count()); Assertions.assertEquals(false, model.autoRenew()); - Assertions.assertEquals("rwxkvtkkgl", model.next().tier()); - Assertions.assertEquals(1852467405, model.next().count()); + Assertions.assertEquals("pamrsr", model.next().tier()); + Assertions.assertEquals(866301348, model.next().count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("jvcdwxlpqekf") - .withHostingModel(HostingModel.WEB) - .withPlanType("tjsyin") - .withCurrent(new CommitmentPeriod().withTier("qatmtdhtmdvy").withCount(932898449)) + CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("nc") + .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) + .withPlanType("fhir") + .withCurrent(new CommitmentPeriod().withTier("moxoftpi").withCount(828485961)) .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("rwxkvtkkgl").withCount(1852467405)); + .withNext(new CommitmentPeriod().withTier("pamrsr").withCount(866301348)); model = BinaryData.fromObject(model).toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("jvcdwxlpqekf", model.commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, model.hostingModel()); - Assertions.assertEquals("tjsyin", model.planType()); - Assertions.assertEquals("qatmtdhtmdvy", model.current().tier()); - Assertions.assertEquals(932898449, model.current().count()); + Assertions.assertEquals("nc", model.commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.hostingModel()); + Assertions.assertEquals("fhir", model.planType()); + Assertions.assertEquals("moxoftpi", model.current().tier()); + Assertions.assertEquals(828485961, model.current().count()); Assertions.assertEquals(false, model.autoRenew()); - Assertions.assertEquals("rwxkvtkkgl", model.next().tier()); - Assertions.assertEquals(1852467405, model.next().count()); + Assertions.assertEquals("pamrsr", model.next().tier()); + Assertions.assertEquals(866301348, model.next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java index 65baad1ecfb4a..ce924999bcc24 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java @@ -13,6 +13,8 @@ import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanAccountAssociation; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; @@ -21,7 +23,7 @@ public final class CommitmentPlansCreateOrUpdateAssociationMockTests { @Test public void testCreateOrUpdateAssociation() throws Exception { String responseStr - = "{\"etag\":\"oihiqak\",\"properties\":{\"accountId\":\"wf\"},\"id\":\"rkwpzdqtvhcspod\",\"name\":\"qaxsipietgbebjf\",\"type\":\"lbmoichd\"}"; + = "{\"etag\":\"aafrqulhmzyqbhd\",\"tags\":{\"wmzwdfkbnrzorpdl\":\"jrqpjiyrqjcrga\",\"qjf\":\"bqc\",\"gvpyigdaqqilzdc\":\"xxsaetgz\"},\"properties\":{\"accountId\":\"joedx\"},\"id\":\"gucaif\",\"name\":\"aurwwgilfjq\",\"type\":\"a\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +33,25 @@ public void testCreateOrUpdateAssociation() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CommitmentPlanAccountAssociation response = manager.commitmentPlans() - .defineAssociation("jk") - .withExistingCommitmentPlan("memhooclutnpq", "emc") - .withAccountId("ylmbkzudni") + .defineAssociation("wlwxlboncqbazqic") + .withExistingCommitmentPlan("ykmxcpwzvm", "oksqdt") + .withTags(mapOf("i", "xyqvg", "tvo", "od", "s", "kxdxuwsaifmcwn", "y", "zlehgcvkbcknjolg")) + .withAccountId("velsz") .create(); - Assertions.assertEquals("wf", response.accountId()); + Assertions.assertEquals("jrqpjiyrqjcrga", response.tags().get("wmzwdfkbnrzorpdl")); + Assertions.assertEquals("joedx", response.accountId()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java index 3d2f43d72510b..d3e7179f991d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java @@ -28,7 +28,7 @@ public final class CommitmentPlansCreateOrUpdatePlanMockTests { @Test public void testCreateOrUpdatePlan() throws Exception { String responseStr - = "{\"etag\":\"vibidmhmwffpl\",\"kind\":\"u\",\"sku\":{\"name\":\"pckc\",\"tier\":\"Free\",\"size\":\"weyoxoy\",\"family\":\"k\",\"capacity\":420064622},\"tags\":{\"shbraga\":\"moiroqb\",\"vbopfppdbwnu\":\"yyrmfsvbp\",\"fdmmcpug\":\"gahxkumasjcaa\",\"hoqhnl\":\"ehqepvufhbzehe\"},\"location\":\"nbldxeaclgschori\",\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"rmoucsofl\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"iyfc\",\"current\":{\"tier\":\"eolhbhlvbmx\",\"count\":3919977,\"quota\":{\"quantity\":4601909388448494407,\"unit\":\"cudfbsfarfsiowl\"},\"startDate\":\"xnq\",\"endDate\":\"wgfstmhqykizm\"},\"autoRenew\":true,\"next\":{\"tier\":\"afclu\",\"count\":1013116019,\"quota\":{\"quantity\":8904305259908062937,\"unit\":\"im\"},\"startDate\":\"vwg\",\"endDate\":\"wpbmzgwesydsxwef\"},\"last\":{\"tier\":\"cbvopwndyqleallk\",\"count\":1225153333,\"quota\":{\"quantity\":571481130330646230,\"unit\":\"kxxpvbrd\"},\"startDate\":\"mzsyzfhotl\",\"endDate\":\"k\"},\"provisioningIssues\":[\"ch\",\"nsjlpjrtws\",\"hv\",\"uic\"]},\"id\":\"hvtrrmhwrbfdpyf\",\"name\":\"ubhvj\",\"type\":\"lrocuyzlwh\"}"; + = "{\"etag\":\"zyqu\",\"kind\":\"sqxutr\",\"sku\":{\"name\":\"rruyuu\",\"tier\":\"Basic\",\"size\":\"mbjwcolbmxlb\",\"family\":\"tpc\",\"capacity\":1170743993},\"tags\":{\"vxhmtfhocnxzcmj\":\"z\"},\"location\":\"gxnoqrxtdis\",\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"d\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"idwhepfw\",\"current\":{\"tier\":\"f\",\"count\":1851489333,\"quota\":{\"quantity\":4067085103583687450,\"unit\":\"wcdbckyoik\"},\"startDate\":\"xhn\",\"endDate\":\"knjz\"},\"autoRenew\":false,\"next\":{\"tier\":\"e\",\"count\":1365496443,\"quota\":{\"quantity\":7662967851751345556,\"unit\":\"rlbpgsnbagnc\"},\"startDate\":\"hg\",\"endDate\":\"uowakyw\"},\"last\":{\"tier\":\"jymxcgqt\",\"count\":886667485,\"quota\":{\"quantity\":2572709377842820950,\"unit\":\"ol\"},\"startDate\":\"mevtfycnlbvgjc\",\"endDate\":\"kk\"},\"provisioningIssues\":[\"iytssikizbc\"]},\"id\":\"fqb\",\"name\":\"ntnrgmqsorh\",\"type\":\"ekxgn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,40 +38,40 @@ public void testCreateOrUpdatePlan() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CommitmentPlan response = manager.commitmentPlans() - .definePlan("arfdlpukhpyrnei") - .withExistingResourceGroup("ta") - .withRegion("f") - .withTags(mapOf("duugwbsre", "uevrhrljyoogwxhn", "nlvhhtklnvnafvv", "rfqkfuar")) - .withKind("khnmgbrou") - .withSku(new Sku().withName("dbhfhp") - .withTier(SkuTier.BASIC) - .withSize("jzoywjxhp") - .withFamily("lontacnpq") - .withCapacity(68476839)) - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("bo") - .withHostingModel(HostingModel.PROVISIONED_WEB) - .withPlanType("xypokkhmi") - .withCurrent(new CommitmentPeriod().withTier("ymc").withCount(331015750)) - .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("mxxdtddmflh").withCount(334709748))) + .definePlan("jodqhykincn") + .withExistingResourceGroup("ijpodtblxpkkwj") + .withRegion("jbfqzdk") + .withTags(mapOf("ouvblgmo", "lowuowhlxlnwyr", "ih", "zkltrfowtdvrfmv", "hdxlw", "vjdrqcrjidhftuk")) + .withKind("odkadppyibngq") + .withSku(new Sku().withName("d") + .withTier(SkuTier.ENTERPRISE) + .withSize("whydt") + .withFamily("vvadswzs") + .withCapacity(1437535025)) + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("xhafratqx") + .withHostingModel(HostingModel.CONNECTED_CONTAINER) + .withPlanType("oum") + .withCurrent(new CommitmentPeriod().withTier("valqjrhuzgfxo").withCount(256650103)) + .withAutoRenew(true) + .withNext(new CommitmentPeriod().withTier("socnequygdjboq").withCount(1174525778))) .create(); - Assertions.assertEquals("u", response.kind()); - Assertions.assertEquals("pckc", response.sku().name()); - Assertions.assertEquals(SkuTier.FREE, response.sku().tier()); - Assertions.assertEquals("weyoxoy", response.sku().size()); - Assertions.assertEquals("k", response.sku().family()); - Assertions.assertEquals(420064622, response.sku().capacity()); - Assertions.assertEquals("moiroqb", response.tags().get("shbraga")); - Assertions.assertEquals("nbldxeaclgschori", response.location()); - Assertions.assertEquals("rmoucsofl", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("iyfc", response.properties().planType()); - Assertions.assertEquals("eolhbhlvbmx", response.properties().current().tier()); - Assertions.assertEquals(3919977, response.properties().current().count()); - Assertions.assertEquals(true, response.properties().autoRenew()); - Assertions.assertEquals("afclu", response.properties().next().tier()); - Assertions.assertEquals(1013116019, response.properties().next().count()); + Assertions.assertEquals("sqxutr", response.kind()); + Assertions.assertEquals("rruyuu", response.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); + Assertions.assertEquals("mbjwcolbmxlb", response.sku().size()); + Assertions.assertEquals("tpc", response.sku().family()); + Assertions.assertEquals(1170743993, response.sku().capacity()); + Assertions.assertEquals("z", response.tags().get("vxhmtfhocnxzcmj")); + Assertions.assertEquals("gxnoqrxtdis", response.location()); + Assertions.assertEquals("d", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.properties().hostingModel()); + Assertions.assertEquals("idwhepfw", response.properties().planType()); + Assertions.assertEquals("f", response.properties().current().tier()); + Assertions.assertEquals(1851489333, response.properties().current().count()); + Assertions.assertEquals(false, response.properties().autoRenew()); + Assertions.assertEquals("e", response.properties().next().tier()); + Assertions.assertEquals(1365496443, response.properties().next().count()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java index aa54c3767c33b..788a1054cb222 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java @@ -29,7 +29,7 @@ public final class CommitmentPlansCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"etag\":\"d\",\"kind\":\"fmjnnawtqa\",\"sku\":{\"name\":\"xuckpggqoweyir\",\"tier\":\"Basic\",\"size\":\"sn\",\"family\":\"fl\",\"capacity\":1354932365},\"tags\":{\"qxpxiwfcngjsaa\":\"zruwn\",\"kv\":\"iixtmkzj\",\"ra\":\"irhgfgrwsdp\",\"ctctbrxkjz\":\"zvzbglbyv\"},\"location\":\"gxffmshkwf\",\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"xwopdbydpizqa\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"pxbiygnugjknfs\",\"current\":{\"tier\":\"ttuxuuyilflqoiqu\",\"count\":1236082259,\"quota\":{\"quantity\":9110473532568054590,\"unit\":\"hvsujztc\"},\"startDate\":\"tqjtwhauu\",\"endDate\":\"prnjletlxsmr\"},\"autoRenew\":false,\"next\":{\"tier\":\"ifamowazi\",\"count\":1993625091,\"quota\":{\"quantity\":2469643417462156405,\"unit\":\"dvpiwh\"},\"startDate\":\"szdtmaajquh\",\"endDate\":\"ylr\"},\"last\":{\"tier\":\"ty\",\"count\":406894378,\"quota\":{\"quantity\":351680433091190997,\"unit\":\"ps\"},\"startDate\":\"hckfkyjpmspbps\",\"endDate\":\"fppyogtieyujtvcz\"},\"provisioningIssues\":[\"yxrxmunj\"]},\"id\":\"xvglnkvxlxp\",\"name\":\"glqivbgkcv\",\"type\":\"hpzvuqdflvoniyp\"}"; + = "{\"etag\":\"iknaqlnuwig\",\"kind\":\"xly\",\"sku\":{\"name\":\"phvxz\",\"tier\":\"Basic\",\"size\":\"mpe\",\"family\":\"lkexaonwivkcqh\",\"capacity\":1725747422},\"tags\":{\"kyupijubyqj\":\"nlccrm\",\"em\":\"kakfqfr\",\"udxjascowv\":\"il\"},\"location\":\"jkpdxphlkksnm\",\"properties\":{\"provisioningState\":\"Canceled\",\"commitmentPlanGuid\":\"ij\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"qnwsithuqolyah\",\"current\":{\"tier\":\"wqulsutrjbhxykf\",\"count\":897956797,\"quota\":{\"quantity\":4363100729700765974,\"unit\":\"ugdrftbc\"},\"startDate\":\"xreuquowtlj\",\"endDate\":\"whreagkhyxvrq\"},\"autoRenew\":true,\"next\":{\"tier\":\"sulmd\",\"count\":1680139409,\"quota\":{\"quantity\":1327937751806855474,\"unit\":\"fs\"},\"startDate\":\"kgsangpszng\",\"endDate\":\"p\"},\"last\":{\"tier\":\"kvec\",\"count\":467125688,\"quota\":{\"quantity\":1685834102590271868,\"unit\":\"dyedmzrgjfo\"},\"startDate\":\"ubn\",\"endDate\":\"tp\"},\"provisioningIssues\":[\"trgdgxvc\",\"qraswugyxpqitwei\",\"l\"]},\"id\":\"vskbuhzacaq\",\"name\":\"yltcoqcuj\",\"type\":\"dsxzakuejkmvb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,41 +39,40 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CommitmentPlan response = manager.commitmentPlans() - .createOrUpdateWithResponse("irdsvuwcob", "egstmninwjizci", "nghgshej", - new CommitmentPlanInner().withKind("lxqzvn") - .withSku(new Sku().withName("sbycucrwnamikz") - .withTier(SkuTier.FREE) - .withSize("bsmswziqgf") - .withFamily("okzrus") - .withCapacity(302343226)) - .withTags(mapOf("sxjwwixz", "zznvfbyc", "noamldsehaohdj", "umwmxqhnd", "pelnjetag", "hflzokxco", - "npbs", "tsxoatftgz")) - .withLocation("e") - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("srmozihmip") - .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) - .withPlanType("xxpkyjcxc") - .withCurrent(new CommitmentPeriod().withTier("rytfmpcycil").withCount(735394972)) + .createOrUpdateWithResponse("yklxe", "lkhhu", "tcpoqma", + new CommitmentPlanInner().withKind("kxybwfdbkj") + .withSku(new Sku().withName("tensvkzykj") + .withTier(SkuTier.STANDARD) + .withSize("sxfwushcdp") + .withFamily("pn") + .withCapacity(1578351643)) + .withTags(mapOf("eoiojfizfavkjzw", "fbpkuw")) + .withLocation("cyayk") + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("bfw") + .withHostingModel(HostingModel.CONNECTED_CONTAINER) + .withPlanType("mdew") + .withCurrent(new CommitmentPeriod().withTier("xkrplbjaz").withCount(1392015942)) .withAutoRenew(true) - .withNext(new CommitmentPeriod().withTier("xuzvoamktcqi").withCount(1870101856))), + .withNext(new CommitmentPeriod().withTier("ozycy").withCount(1170994153))), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fmjnnawtqa", response.kind()); - Assertions.assertEquals("xuckpggqoweyir", response.sku().name()); + Assertions.assertEquals("xly", response.kind()); + Assertions.assertEquals("phvxz", response.sku().name()); Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); - Assertions.assertEquals("sn", response.sku().size()); - Assertions.assertEquals("fl", response.sku().family()); - Assertions.assertEquals(1354932365, response.sku().capacity()); - Assertions.assertEquals("zruwn", response.tags().get("qxpxiwfcngjsaa")); - Assertions.assertEquals("gxffmshkwf", response.location()); - Assertions.assertEquals("xwopdbydpizqa", response.properties().commitmentPlanGuid()); + Assertions.assertEquals("mpe", response.sku().size()); + Assertions.assertEquals("lkexaonwivkcqh", response.sku().family()); + Assertions.assertEquals(1725747422, response.sku().capacity()); + Assertions.assertEquals("nlccrm", response.tags().get("kyupijubyqj")); + Assertions.assertEquals("jkpdxphlkksnm", response.location()); + Assertions.assertEquals("ij", response.properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("pxbiygnugjknfs", response.properties().planType()); - Assertions.assertEquals("ttuxuuyilflqoiqu", response.properties().current().tier()); - Assertions.assertEquals(1236082259, response.properties().current().count()); - Assertions.assertEquals(false, response.properties().autoRenew()); - Assertions.assertEquals("ifamowazi", response.properties().next().tier()); - Assertions.assertEquals(1993625091, response.properties().next().count()); + Assertions.assertEquals("qnwsithuqolyah", response.properties().planType()); + Assertions.assertEquals("wqulsutrjbhxykf", response.properties().current().tier()); + Assertions.assertEquals(897956797, response.properties().current().count()); + Assertions.assertEquals(true, response.properties().autoRenew()); + Assertions.assertEquals("sulmd", response.properties().next().tier()); + Assertions.assertEquals(1680139409, response.properties().next().count()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java index 0a1a29f21dd1d..bc5096335f7bb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java @@ -28,7 +28,7 @@ public void testDeleteAssociation() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); manager.commitmentPlans() - .deleteAssociation("axmqeqal", "hjnhgwydyynfsvk", "gbv", com.azure.core.util.Context.NONE); + .deleteAssociation("skieca", "ygzmxieqvdsmak", "ixqcahyhxalybxaw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java index e34ec43580930..7516a1ae3d213 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.commitmentPlans().delete("pubcpzgpxtivhjk", "idibgqjxgpn", "hgovfgp", com.azure.core.util.Context.NONE); + manager.commitmentPlans() + .delete("ztjofqcvovjufyc", "jmlbemyejiriux", "gthortudaw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java index d3ff5e7f43b0f..8740ccac36bf5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java @@ -27,7 +27,7 @@ public void testDeletePlan() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.commitmentPlans().deletePlan("kqmhhaowjr", "zvuporqzdfuydz", com.azure.core.util.Context.NONE); + manager.commitmentPlans().deletePlan("pjfe", "qerpptcbgqnzm", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java index bada0738de021..d7fbf1b4ce637 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class CommitmentPlansGetAssociationWithResponseMockTests { @Test public void testGetAssociationWithResponse() throws Exception { String responseStr - = "{\"etag\":\"gm\",\"properties\":{\"accountId\":\"ahzjmucftb\"},\"id\":\"r\",\"name\":\"lrohkpig\",\"type\":\"fusuckzmkwklsno\"}"; + = "{\"etag\":\"ruqnm\",\"tags\":{\"qswbqerzwx\":\"azcvjyt\",\"vlbpktgdstyou\":\"ytxtdgu\",\"egmmuteyxe\":\"mbewreswmo\",\"xlzdesygrijwa\":\"guqigijiitns\"},\"properties\":{\"accountId\":\"anra\"},\"id\":\"bfu\",\"name\":\"qfrojsydgrhyd\",\"type\":\"ygywe\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,10 @@ public void testGetAssociationWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CommitmentPlanAccountAssociation response = manager.commitmentPlans() - .getAssociationWithResponse("uuuybnchrsziz", "yuel", "etndnbfqyggagf", com.azure.core.util.Context.NONE) + .getAssociationWithResponse("hpzfngqj", "lidftujwjj", "fwbeqrkuorh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ahzjmucftb", response.accountId()); + Assertions.assertEquals("azcvjyt", response.tags().get("qswbqerzwx")); + Assertions.assertEquals("anra", response.accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java index c963251cc07b5..c6eadf8ae64f8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"etag\":\"hl\",\"kind\":\"dhbemzqkzszu\",\"sku\":{\"name\":\"wtglxx\",\"tier\":\"Premium\",\"size\":\"pg\",\"family\":\"crmnzhrgmqgjs\",\"capacity\":1587486803},\"tags\":{\"bakclacjfrnxous\":\"bfrmbodthsqqgvri\",\"lwvsgm\":\"au\"},\"location\":\"hqf\",\"properties\":{\"provisioningState\":\"Creating\",\"commitmentPlanGuid\":\"xmmkjs\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"wpztekovmribia\",\"current\":{\"tier\":\"plucfotangcfhnyk\",\"count\":1495139625,\"quota\":{\"quantity\":4429427229457258180,\"unit\":\"wlmzqwmvtxnjmxmc\"},\"startDate\":\"udtc\",\"endDate\":\"lxynpdkvgf\"},\"autoRenew\":false,\"next\":{\"tier\":\"jibuzphdug\",\"count\":1030584057,\"quota\":{\"quantity\":7849665071857923107,\"unit\":\"xgjiuqh\"},\"startDate\":\"tozipqwj\",\"endDate\":\"mur\"},\"last\":{\"tier\":\"g\",\"count\":783540465,\"quota\":{\"quantity\":5181301429444209355,\"unit\":\"lkm\"},\"startDate\":\"zoyhlfbcgwg\",\"endDate\":\"oxoebqi\"},\"provisioningIssues\":[\"pnwjfujq\",\"afcba\"]},\"id\":\"hpzpo\",\"name\":\"o\",\"type\":\"yjwpfilkmkkh\"}"; + = "{\"etag\":\"cccg\",\"kind\":\"raoxnyuff\",\"sku\":{\"name\":\"sgftipwc\",\"tier\":\"Standard\",\"size\":\"bh\",\"family\":\"dxyurnpnuhza\",\"capacity\":1652198165},\"tags\":{\"bui\":\"hiigby\",\"vcrk\":\"vxva\"},\"location\":\"b\",\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"h\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"zlwxaeaovur\",\"current\":{\"tier\":\"ndsbdw\",\"count\":187101645,\"quota\":{\"quantity\":2166976077432391171,\"unit\":\"ntopa\"},\"startDate\":\"tmvmmagoaqylkjz\",\"endDate\":\"iua\"},\"autoRenew\":false,\"next\":{\"tier\":\"xitp\",\"count\":232494385,\"quota\":{\"quantity\":8242856293645817754,\"unit\":\"tkrlgjmtbd\"},\"startDate\":\"cqguef\",\"endDate\":\"ompheqdur\"},\"last\":{\"tier\":\"ujlfyoumpcky\",\"count\":902015093,\"quota\":{\"quantity\":8255014735676328345,\"unit\":\"tajbrz\"},\"startDate\":\"xucycijoclxi\",\"endDate\":\"gjcyzyzjdnrq\"},\"provisioningIssues\":[\"xjeaoqaqbzgyh\",\"w\",\"v\",\"atbwbqam\"]},\"id\":\"e\",\"name\":\"liys\",\"type\":\"pkcvmwf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,24 +33,24 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CommitmentPlan response = manager.commitmentPlans() - .getByResourceGroupWithResponse("kfvxcnq", "xqpswok", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("h", "ilialwcjgc", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("dhbemzqkzszu", response.kind()); - Assertions.assertEquals("wtglxx", response.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals("pg", response.sku().size()); - Assertions.assertEquals("crmnzhrgmqgjs", response.sku().family()); - Assertions.assertEquals(1587486803, response.sku().capacity()); - Assertions.assertEquals("bfrmbodthsqqgvri", response.tags().get("bakclacjfrnxous")); - Assertions.assertEquals("hqf", response.location()); - Assertions.assertEquals("xmmkjs", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("wpztekovmribia", response.properties().planType()); - Assertions.assertEquals("plucfotangcfhnyk", response.properties().current().tier()); - Assertions.assertEquals(1495139625, response.properties().current().count()); + Assertions.assertEquals("raoxnyuff", response.kind()); + Assertions.assertEquals("sgftipwc", response.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); + Assertions.assertEquals("bh", response.sku().size()); + Assertions.assertEquals("dxyurnpnuhza", response.sku().family()); + Assertions.assertEquals(1652198165, response.sku().capacity()); + Assertions.assertEquals("hiigby", response.tags().get("bui")); + Assertions.assertEquals("b", response.location()); + Assertions.assertEquals("h", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.properties().hostingModel()); + Assertions.assertEquals("zlwxaeaovur", response.properties().planType()); + Assertions.assertEquals("ndsbdw", response.properties().current().tier()); + Assertions.assertEquals(187101645, response.properties().current().count()); Assertions.assertEquals(false, response.properties().autoRenew()); - Assertions.assertEquals("jibuzphdug", response.properties().next().tier()); - Assertions.assertEquals(1030584057, response.properties().next().count()); + Assertions.assertEquals("xitp", response.properties().next().tier()); + Assertions.assertEquals(232494385, response.properties().next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java index 2a0eda029f654..640dcb1051860 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"etag\":\"kbsazgak\",\"kind\":\"cyrcmjdmspo\",\"sku\":{\"name\":\"pv\",\"tier\":\"Basic\",\"size\":\"lniofrzgbzje\",\"family\":\"st\",\"capacity\":247999147},\"tags\":{\"f\":\"xbcuiiznkt\"},\"location\":\"snvpdibmi\",\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"z\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"buqny\",\"current\":{\"tier\":\"zfylsg\",\"count\":830255567,\"quota\":{\"quantity\":5122425723067527252,\"unit\":\"ezzcez\"},\"startDate\":\"fwyfwlwxjwet\",\"endDate\":\"sihclafzvaylp\"},\"autoRenew\":false,\"next\":{\"tier\":\"wztcmwqkchc\",\"count\":1038627609,\"quota\":{\"quantity\":1320247323252779129,\"unit\":\"jkjexf\"},\"startDate\":\"qvhpsylkkshkbff\",\"endDate\":\"mxzjrgywwpgjx\"},\"last\":{\"tier\":\"tf\",\"count\":1121317543,\"quota\":{\"quantity\":4561850948901774629,\"unit\":\"o\"},\"startDate\":\"ttaqutdew\",\"endDate\":\"xswvru\"},\"provisioningIssues\":[\"zjgehkfkim\",\"tixo\",\"ffqyinlj\"]},\"id\":\"epqw\",\"name\":\"ixmonstshiyxg\",\"type\":\"elfclducc\"}"; + = "{\"etag\":\"tehqpuvjmvq\",\"kind\":\"dwckygroe\",\"sku\":{\"name\":\"ndljdjuskbr\",\"tier\":\"Premium\",\"size\":\"n\",\"family\":\"eysfaqegplw\",\"capacity\":614396820},\"tags\":{\"ybwptda\":\"ddkvbxgkqu\"},\"location\":\"rvv\",\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"mt\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"enazerohzrsqals\",\"current\":{\"tier\":\"nwqapfgsdpcvess\",\"count\":1784953351,\"quota\":{\"quantity\":7757305945865204885,\"unit\":\"pldqqct\"},\"startDate\":\"valblhtjqv\",\"endDate\":\"vweht\"},\"autoRenew\":true,\"next\":{\"tier\":\"zzy\",\"count\":1487299849,\"quota\":{\"quantity\":9100193198940952535,\"unit\":\"zrrryv\"},\"startDate\":\"mipskdyzatv\",\"endDate\":\"zkaftjvvrux\"},\"last\":{\"tier\":\"syeipqd\",\"count\":2098179357,\"quota\":{\"quantity\":934467491416540675,\"unit\":\"dgkkile\"},\"startDate\":\"kcsmk\",\"endDate\":\"wtbbaedorvvmqf\"},\"provisioningIssues\":[\"gbdg\",\"umgxdgdhpab\",\"dexjddvjs\",\"qwotmmwllcol\"]},\"id\":\"rsxaptefh\",\"name\":\"xcgjokjljnhvlq\",\"type\":\"bekpeeksnbksdqhj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,24 +33,24 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); CommitmentPlan response = manager.commitmentPlans() - .getWithResponse("duragegizvc", "felisdjub", "gbqi", com.azure.core.util.Context.NONE) + .getWithResponse("qaqkuea", "groeshoyg", "cbyfqxkf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("cyrcmjdmspo", response.kind()); - Assertions.assertEquals("pv", response.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); - Assertions.assertEquals("lniofrzgbzje", response.sku().size()); - Assertions.assertEquals("st", response.sku().family()); - Assertions.assertEquals(247999147, response.sku().capacity()); - Assertions.assertEquals("xbcuiiznkt", response.tags().get("f")); - Assertions.assertEquals("snvpdibmi", response.location()); - Assertions.assertEquals("z", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("buqny", response.properties().planType()); - Assertions.assertEquals("zfylsg", response.properties().current().tier()); - Assertions.assertEquals(830255567, response.properties().current().count()); - Assertions.assertEquals(false, response.properties().autoRenew()); - Assertions.assertEquals("wztcmwqkchc", response.properties().next().tier()); - Assertions.assertEquals(1038627609, response.properties().next().count()); + Assertions.assertEquals("dwckygroe", response.kind()); + Assertions.assertEquals("ndljdjuskbr", response.sku().name()); + Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); + Assertions.assertEquals("n", response.sku().size()); + Assertions.assertEquals("eysfaqegplw", response.sku().family()); + Assertions.assertEquals(614396820, response.sku().capacity()); + Assertions.assertEquals("ddkvbxgkqu", response.tags().get("ybwptda")); + Assertions.assertEquals("rvv", response.location()); + Assertions.assertEquals("mt", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); + Assertions.assertEquals("enazerohzrsqals", response.properties().planType()); + Assertions.assertEquals("nwqapfgsdpcvess", response.properties().current().tier()); + Assertions.assertEquals(1784953351, response.properties().current().count()); + Assertions.assertEquals(true, response.properties().autoRenew()); + Assertions.assertEquals("zzy", response.properties().next().tier()); + Assertions.assertEquals(1487299849, response.properties().next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java index e785ac28b0b56..688113feed1ba 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java @@ -22,7 +22,7 @@ public final class CommitmentPlansListAssociationsMockTests { @Test public void testListAssociations() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"er\",\"properties\":{\"accountId\":\"vs\"},\"id\":\"xhlw\",\"name\":\"tsjgqrsx\",\"type\":\"p\"}]}"; + = "{\"value\":[{\"etag\":\"kdvezc\",\"tags\":{\"ub\":\"sbzhd\",\"ugiqjtiogqg\":\"nqfblhkalehpava\",\"eajohiyg\":\"minict\",\"kmktpvwxqcseh\":\"pnbonhpcz\"},\"properties\":{\"accountId\":\"hufmpq\"},\"id\":\"mqyjgy\",\"name\":\"zulo\",\"type\":\"saeuzanhsfnhsenw\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,9 @@ public void testListAssociations() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.commitmentPlans().listAssociations("punj", "ikczvvitacgxmf", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listAssociations("fwmyymv", "dbpb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vs", response.iterator().next().accountId()); + Assertions.assertEquals("sbzhd", response.iterator().next().tags().get("ub")); + Assertions.assertEquals("hufmpq", response.iterator().next().accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java index 555464668e2a3..459a8b4bc20c1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"dviauogp\",\"kind\":\"artvti\",\"sku\":{\"name\":\"yefchnm\",\"tier\":\"Standard\",\"size\":\"nxhkxjqi\",\"family\":\"rweooxffifhx\",\"capacity\":1065674647},\"tags\":{\"ma\":\"wmozqvbub\",\"taboidvmf\":\"hsycxhxzgaz\",\"herngb\":\"hppubowsepdfgkmt\"},\"location\":\"juahokqto\",\"properties\":{\"provisioningState\":\"Creating\",\"commitmentPlanGuid\":\"ofshfphwpnulaiyw\",\"hostingModel\":\"Web\",\"planType\":\"whslwkoj\",\"current\":{\"tier\":\"ndnpdwrpqafgfug\",\"count\":87564439,\"quota\":{\"quantity\":7318681116567971060,\"unit\":\"efy\"},\"startDate\":\"coc\",\"endDate\":\"jgtixr\"},\"autoRenew\":false,\"next\":{\"tier\":\"turmlmuow\",\"count\":1927248982,\"quota\":{\"quantity\":2372097816305611576,\"unit\":\"p\"},\"startDate\":\"nszonwpngaj\",\"endDate\":\"nixjawrtmjfjmy\"},\"last\":{\"tier\":\"lzhcoxovnekh\",\"count\":1961698443,\"quota\":{\"quantity\":1504714150527944683,\"unit\":\"dtjxtxrdcqt\"},\"startDate\":\"idttgepus\",\"endDate\":\"yjtcvuwk\"},\"provisioningIssues\":[\"zies\",\"uughtuqfecjxeyg\",\"uhxu\",\"cbuewmrswnjlxuz\"]},\"id\":\"hwpusxj\",\"name\":\"aqehg\",\"type\":\"dohzjq\"}]}"; + = "{\"value\":[{\"etag\":\"ywbo\",\"kind\":\"c\",\"sku\":{\"name\":\"iciijqpkzfbojx\",\"tier\":\"Premium\",\"size\":\"myqwixvcpwnkwywz\",\"family\":\"falickduoiqtamty\",\"capacity\":468149432},\"tags\":{\"cfhzagxnvhycv\":\"rwzawnvs\",\"rw\":\"imwrzregzgyufu\",\"hmeott\":\"weryekzk\"},\"location\":\"jyosxwwh\",\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"vpndp\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"pnwy\",\"current\":{\"tier\":\"qllzsauzpjlxeehu\",\"count\":1834453313,\"quota\":{\"quantity\":5516168452931555191,\"unit\":\"yme\"},\"startDate\":\"lskihmxrfdsajred\",\"endDate\":\"yyshtuwgmevua\"},\"autoRenew\":false,\"next\":{\"tier\":\"ifrkgwltxeqipx\",\"count\":1931684247,\"quota\":{\"quantity\":3749646104554834648,\"unit\":\"ayorprav\"},\"startDate\":\"oge\",\"endDate\":\"abnsmj\"},\"last\":{\"tier\":\"nqxaekqsyk\",\"count\":2046181872,\"quota\":{\"quantity\":9008251062718128315,\"unit\":\"vmyltjcrspx\"},\"startDate\":\"urcclfgxannn\",\"endDate\":\"t\"},\"provisioningIssues\":[\"sewxigpxvkqm\",\"upxvpifd\"]},\"id\":\"aifyzyzeyuubeids\",\"name\":\"l\",\"type\":\"ytoithgygvfl\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,23 +34,24 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.commitmentPlans().listByResourceGroup("l", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listByResourceGroup("uxx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("artvti", response.iterator().next().kind()); - Assertions.assertEquals("yefchnm", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.STANDARD, response.iterator().next().sku().tier()); - Assertions.assertEquals("nxhkxjqi", response.iterator().next().sku().size()); - Assertions.assertEquals("rweooxffifhx", response.iterator().next().sku().family()); - Assertions.assertEquals(1065674647, response.iterator().next().sku().capacity()); - Assertions.assertEquals("wmozqvbub", response.iterator().next().tags().get("ma")); - Assertions.assertEquals("juahokqto", response.iterator().next().location()); - Assertions.assertEquals("ofshfphwpnulaiyw", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("whslwkoj", response.iterator().next().properties().planType()); - Assertions.assertEquals("ndnpdwrpqafgfug", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(87564439, response.iterator().next().properties().current().count()); + Assertions.assertEquals("c", response.iterator().next().kind()); + Assertions.assertEquals("iciijqpkzfbojx", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.PREMIUM, response.iterator().next().sku().tier()); + Assertions.assertEquals("myqwixvcpwnkwywz", response.iterator().next().sku().size()); + Assertions.assertEquals("falickduoiqtamty", response.iterator().next().sku().family()); + Assertions.assertEquals(468149432, response.iterator().next().sku().capacity()); + Assertions.assertEquals("rwzawnvs", response.iterator().next().tags().get("cfhzagxnvhycv")); + Assertions.assertEquals("jyosxwwh", response.iterator().next().location()); + Assertions.assertEquals("vpndp", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, + response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("pnwy", response.iterator().next().properties().planType()); + Assertions.assertEquals("qllzsauzpjlxeehu", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(1834453313, response.iterator().next().properties().current().count()); Assertions.assertEquals(false, response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("turmlmuow", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1927248982, response.iterator().next().properties().next().count()); + Assertions.assertEquals("ifrkgwltxeqipx", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(1931684247, response.iterator().next().properties().next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java index 6faf4359e8c37..bb12e54641a0c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"fusfzsvtuikzhajq\",\"kind\":\"cfhmlrqryxyn\",\"sku\":{\"name\":\"zrdpsovwxznptgoe\",\"tier\":\"Enterprise\",\"size\":\"abpfhvfs\",\"family\":\"vntjlrigjk\",\"capacity\":852191257},\"tags\":{\"idsxwaabzmifry\":\"oov\",\"xlhslnel\":\"znmmaxrizkzobgo\",\"wcrojphslhcaw\":\"ieixynllxe\",\"i\":\"u\"},\"location\":\"wfmvigorqjbt\",\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"glka\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"qjujeickpzvcp\",\"current\":{\"tier\":\"xelnwc\",\"count\":1288508818,\"quota\":{\"quantity\":8114690620012618166,\"unit\":\"xm\"},\"startDate\":\"mkqscaz\",\"endDate\":\"wxtzxpuamwab\"},\"autoRenew\":false,\"next\":{\"tier\":\"cush\",\"count\":1307782506,\"quota\":{\"quantity\":463743290248651534,\"unit\":\"yasflvgsgzwy\"},\"startDate\":\"koih\",\"endDate\":\"smjblmljhlnym\"},\"last\":{\"tier\":\"qyryuzcbmqqvxm\",\"count\":622297852,\"quota\":{\"quantity\":3922863812545357312,\"unit\":\"onsupeujlz\"},\"startDate\":\"hcvsqltnzoi\",\"endDate\":\"sxgnx\"},\"provisioningIssues\":[\"onmpqoxwdof\",\"bxiqxeiiqbimht\",\"wwinhehf\"]},\"id\":\"pofvwb\",\"name\":\"blembnkbwvqvxkd\",\"type\":\"vqihebwtswbzuwf\"}]}"; + = "{\"value\":[{\"etag\":\"gqztwhghmupgx\",\"kind\":\"tcdxabbujftaben\",\"sku\":{\"name\":\"klqpx\",\"tier\":\"Enterprise\",\"size\":\"feddwwnlza\",\"family\":\"xud\",\"capacity\":1909698338},\"tags\":{\"gpbemeluclvdjju\":\"okrtalvnb\",\"ahhxhqfaqnvzoqg\":\"yrdnqod\",\"ejdtxptl\":\"ipemchgavscz\"},\"location\":\"wzhomewjjstl\",\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"wmoaiancznvodrrs\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"ydkxr\",\"current\":{\"tier\":\"bxiwkgfbqljn\",\"count\":1056190404,\"quota\":{\"quantity\":93268107041015915,\"unit\":\"okulehurqlrqf\"},\"startDate\":\"weyurkphyjd\",\"endDate\":\"av\"},\"autoRenew\":true,\"next\":{\"tier\":\"rxmrgchbapx\",\"count\":257643221,\"quota\":{\"quantity\":316638403801617867,\"unit\":\"ajb\"},\"startDate\":\"cgduusio\",\"endDate\":\"blevpmcluj\"},\"last\":{\"tier\":\"yxlzgs\",\"count\":733092764,\"quota\":{\"quantity\":2104792511194971954,\"unit\":\"fhbzffovwmbjlzq\"},\"startDate\":\"zpgvdwnapfd\",\"endDate\":\"owftptnuwjtks\"},\"provisioningIssues\":[\"cgqyhleseyq\",\"hvyeldotj\",\"dkwisw\",\"kukjtasb\"]},\"id\":\"wispkxk\",\"name\":\"txfkndlqvt\",\"type\":\"knvgmmbugtywat\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,23 +34,24 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.commitmentPlans().list("zqdqxt", "jw", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().list("v", "kxrerlniylylyfwx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("cfhmlrqryxyn", response.iterator().next().kind()); - Assertions.assertEquals("zrdpsovwxznptgoe", response.iterator().next().sku().name()); + Assertions.assertEquals("tcdxabbujftaben", response.iterator().next().kind()); + Assertions.assertEquals("klqpx", response.iterator().next().sku().name()); Assertions.assertEquals(SkuTier.ENTERPRISE, response.iterator().next().sku().tier()); - Assertions.assertEquals("abpfhvfs", response.iterator().next().sku().size()); - Assertions.assertEquals("vntjlrigjk", response.iterator().next().sku().family()); - Assertions.assertEquals(852191257, response.iterator().next().sku().capacity()); - Assertions.assertEquals("oov", response.iterator().next().tags().get("idsxwaabzmifry")); - Assertions.assertEquals("wfmvigorqjbt", response.iterator().next().location()); - Assertions.assertEquals("glka", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("qjujeickpzvcp", response.iterator().next().properties().planType()); - Assertions.assertEquals("xelnwc", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1288508818, response.iterator().next().properties().current().count()); - Assertions.assertEquals(false, response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("cush", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1307782506, response.iterator().next().properties().next().count()); + Assertions.assertEquals("feddwwnlza", response.iterator().next().sku().size()); + Assertions.assertEquals("xud", response.iterator().next().sku().family()); + Assertions.assertEquals(1909698338, response.iterator().next().sku().capacity()); + Assertions.assertEquals("okrtalvnb", response.iterator().next().tags().get("gpbemeluclvdjju")); + Assertions.assertEquals("wzhomewjjstl", response.iterator().next().location()); + Assertions.assertEquals("wmoaiancznvodrrs", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, + response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("ydkxr", response.iterator().next().properties().planType()); + Assertions.assertEquals("bxiwkgfbqljn", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(1056190404, response.iterator().next().properties().current().count()); + Assertions.assertEquals(true, response.iterator().next().properties().autoRenew()); + Assertions.assertEquals("rxmrgchbapx", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(257643221, response.iterator().next().properties().next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java index ad3625ad95f32..76b37b1e1bb12 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListPlansBySubscriptionMockTests { @Test public void testListPlansBySubscription() throws Exception { String responseStr - = "{\"value\":[{\"etag\":\"coi\",\"kind\":\"bxncnwfepbnw\",\"sku\":{\"name\":\"m\",\"tier\":\"Free\",\"size\":\"g\",\"family\":\"bgdlfgtdysna\",\"capacity\":551280900},\"tags\":{\"qzeqyjleziunjxdf\":\"bctqhamzjrwd\",\"qa\":\"antkwcegyamlbns\"},\"location\":\"jvpilguooqja\",\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"gueiookjbsahrtdt\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"qacsl\",\"current\":{\"tier\":\"oebn\",\"count\":49810118,\"quota\":{\"quantity\":6124276838560398789,\"unit\":\"gdirazf\"},\"startDate\":\"ejwabmdujtmvco\",\"endDate\":\"xcmjurbu\"},\"autoRenew\":true,\"next\":{\"tier\":\"ql\",\"count\":1523023612,\"quota\":{\"quantity\":7564209254458008048,\"unit\":\"wkffdjkt\"},\"startDate\":\"sidfv\",\"endDate\":\"g\"},\"last\":{\"tier\":\"fuijtkbus\",\"count\":1183676629,\"quota\":{\"quantity\":4776693156750089504,\"unit\":\"yi\"},\"startDate\":\"sharujtj\",\"endDate\":\"xfz\"},\"provisioningIssues\":[\"ttvwkpqh\"]},\"id\":\"penuy\",\"name\":\"bqeqqekewvnqvcd\",\"type\":\"guaucmfdjwnla\"}]}"; + = "{\"value\":[{\"etag\":\"dihoyn\",\"kind\":\"xwetwkdrcyrucpc\",\"sku\":{\"name\":\"nuzdqumo\",\"tier\":\"Basic\",\"size\":\"naie\",\"family\":\"qh\",\"capacity\":1421414952},\"tags\":{\"foanniyopetx\":\"elqkaadlkn\",\"nucaephblkwqpat\":\"vcnrly\",\"uzqymtuowog\":\"bqsdtcjbctvi\"},\"location\":\"it\",\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"b\",\"hostingModel\":\"Web\",\"planType\":\"banf\",\"current\":{\"tier\":\"scxmxeat\",\"count\":932659658,\"quota\":{\"quantity\":2580805120871115843,\"unit\":\"jyibqbna\"},\"startDate\":\"hjrmkuhmaxl\",\"endDate\":\"lfihcj\"},\"autoRenew\":false,\"next\":{\"tier\":\"nc\",\"count\":152401377,\"quota\":{\"quantity\":2348526307879631032,\"unit\":\"a\"},\"startDate\":\"gvaknokzwjjzrl\",\"endDate\":\"xldzyyfytpqsix\"},\"last\":{\"tier\":\"puj\",\"count\":1424381442,\"quota\":{\"quantity\":4999753329886050204,\"unit\":\"vsmb\"},\"startDate\":\"lzoy\",\"endDate\":\"wzdbpqvybefgv\"},\"provisioningIssues\":[\"okcvtlubses\",\"vcuartrhun\"]},\"id\":\"pirykycndzfqiv\",\"name\":\"reuykbbmnwagl\",\"type\":\"bxoeeonql\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,22 +36,21 @@ public void testListPlansBySubscription() throws Exception { PagedIterable response = manager.commitmentPlans().listPlansBySubscription(com.azure.core.util.Context.NONE); - Assertions.assertEquals("bxncnwfepbnw", response.iterator().next().kind()); - Assertions.assertEquals("m", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); - Assertions.assertEquals("g", response.iterator().next().sku().size()); - Assertions.assertEquals("bgdlfgtdysna", response.iterator().next().sku().family()); - Assertions.assertEquals(551280900, response.iterator().next().sku().capacity()); - Assertions.assertEquals("bctqhamzjrwd", response.iterator().next().tags().get("qzeqyjleziunjxdf")); - Assertions.assertEquals("jvpilguooqja", response.iterator().next().location()); - Assertions.assertEquals("gueiookjbsahrtdt", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, - response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("qacsl", response.iterator().next().properties().planType()); - Assertions.assertEquals("oebn", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(49810118, response.iterator().next().properties().current().count()); - Assertions.assertEquals(true, response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("ql", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1523023612, response.iterator().next().properties().next().count()); + Assertions.assertEquals("xwetwkdrcyrucpc", response.iterator().next().kind()); + Assertions.assertEquals("nuzdqumo", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); + Assertions.assertEquals("naie", response.iterator().next().sku().size()); + Assertions.assertEquals("qh", response.iterator().next().sku().family()); + Assertions.assertEquals(1421414952, response.iterator().next().sku().capacity()); + Assertions.assertEquals("elqkaadlkn", response.iterator().next().tags().get("foanniyopetx")); + Assertions.assertEquals("it", response.iterator().next().location()); + Assertions.assertEquals("b", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("banf", response.iterator().next().properties().planType()); + Assertions.assertEquals("scxmxeat", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(932659658, response.iterator().next().properties().current().count()); + Assertions.assertEquals(false, response.iterator().next().properties().autoRenew()); + Assertions.assertEquals("nc", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(152401377, response.iterator().next().properties().next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java index 0b8fc050f5d1e..049cc7bf4b3af 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java @@ -11,17 +11,17 @@ public final class CommitmentQuotaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CommitmentQuota model = BinaryData.fromString("{\"quantity\":6504833090063292182,\"unit\":\"mehhseyvjusrtsl\"}") + CommitmentQuota model = BinaryData.fromString("{\"quantity\":193130563963832642,\"unit\":\"nxipeil\"}") .toObject(CommitmentQuota.class); - Assertions.assertEquals(6504833090063292182L, model.quantity()); - Assertions.assertEquals("mehhseyvjusrtsl", model.unit()); + Assertions.assertEquals(193130563963832642L, model.quantity()); + Assertions.assertEquals("nxipeil", model.unit()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentQuota model = new CommitmentQuota().withQuantity(6504833090063292182L).withUnit("mehhseyvjusrtsl"); + CommitmentQuota model = new CommitmentQuota().withQuantity(193130563963832642L).withUnit("nxipeil"); model = BinaryData.fromObject(model).toObject(CommitmentQuota.class); - Assertions.assertEquals(6504833090063292182L, model.quantity()); - Assertions.assertEquals("mehhseyvjusrtsl", model.unit()); + Assertions.assertEquals(193130563963832642L, model.quantity()); + Assertions.assertEquals("nxipeil", model.unit()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java index b9e9cad25efaa..c6b9c3be1f98b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java @@ -15,40 +15,40 @@ public final class CommitmentTierInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentTierInner model = BinaryData.fromString( - "{\"kind\":\"suyonobglaocq\",\"skuName\":\"ccm\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"xy\",\"tier\":\"moyrxvwfudwpz\",\"maxCount\":1508312014,\"quota\":{\"quantity\":7345023164643375975,\"unit\":\"rqjbhckfrl\"},\"cost\":{\"commitmentMeterId\":\"sbkyvpycanuzbp\",\"overageMeterId\":\"afkuwb\"}}") + "{\"kind\":\"wmdyvxqtay\",\"skuName\":\"ww\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"bexrmcq\",\"tier\":\"ycnojvknmefqsg\",\"maxCount\":488274582,\"quota\":{\"quantity\":7076429131580364634,\"unit\":\"zhpvgqzcjrvxd\"},\"cost\":{\"commitmentMeterId\":\"mwlxk\",\"overageMeterId\":\"gfhzovawjvzunlut\"}}") .toObject(CommitmentTierInner.class); - Assertions.assertEquals("suyonobglaocq", model.kind()); - Assertions.assertEquals("ccm", model.skuName()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.hostingModel()); - Assertions.assertEquals("xy", model.planType()); - Assertions.assertEquals("moyrxvwfudwpz", model.tier()); - Assertions.assertEquals(1508312014, model.maxCount()); - Assertions.assertEquals(7345023164643375975L, model.quota().quantity()); - Assertions.assertEquals("rqjbhckfrl", model.quota().unit()); - Assertions.assertEquals("sbkyvpycanuzbp", model.cost().commitmentMeterId()); - Assertions.assertEquals("afkuwb", model.cost().overageMeterId()); + Assertions.assertEquals("wmdyvxqtay", model.kind()); + Assertions.assertEquals("ww", model.skuName()); + Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); + Assertions.assertEquals("bexrmcq", model.planType()); + Assertions.assertEquals("ycnojvknmefqsg", model.tier()); + Assertions.assertEquals(488274582, model.maxCount()); + Assertions.assertEquals(7076429131580364634L, model.quota().quantity()); + Assertions.assertEquals("zhpvgqzcjrvxd", model.quota().unit()); + Assertions.assertEquals("mwlxk", model.cost().commitmentMeterId()); + Assertions.assertEquals("gfhzovawjvzunlut", model.cost().overageMeterId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentTierInner model = new CommitmentTierInner().withKind("suyonobglaocq") - .withSkuName("ccm") - .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) - .withPlanType("xy") - .withTier("moyrxvwfudwpz") - .withMaxCount(1508312014) - .withQuota(new CommitmentQuota().withQuantity(7345023164643375975L).withUnit("rqjbhckfrl")) - .withCost(new CommitmentCost().withCommitmentMeterId("sbkyvpycanuzbp").withOverageMeterId("afkuwb")); + CommitmentTierInner model = new CommitmentTierInner().withKind("wmdyvxqtay") + .withSkuName("ww") + .withHostingModel(HostingModel.PROVISIONED_WEB) + .withPlanType("bexrmcq") + .withTier("ycnojvknmefqsg") + .withMaxCount(488274582) + .withQuota(new CommitmentQuota().withQuantity(7076429131580364634L).withUnit("zhpvgqzcjrvxd")) + .withCost(new CommitmentCost().withCommitmentMeterId("mwlxk").withOverageMeterId("gfhzovawjvzunlut")); model = BinaryData.fromObject(model).toObject(CommitmentTierInner.class); - Assertions.assertEquals("suyonobglaocq", model.kind()); - Assertions.assertEquals("ccm", model.skuName()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.hostingModel()); - Assertions.assertEquals("xy", model.planType()); - Assertions.assertEquals("moyrxvwfudwpz", model.tier()); - Assertions.assertEquals(1508312014, model.maxCount()); - Assertions.assertEquals(7345023164643375975L, model.quota().quantity()); - Assertions.assertEquals("rqjbhckfrl", model.quota().unit()); - Assertions.assertEquals("sbkyvpycanuzbp", model.cost().commitmentMeterId()); - Assertions.assertEquals("afkuwb", model.cost().overageMeterId()); + Assertions.assertEquals("wmdyvxqtay", model.kind()); + Assertions.assertEquals("ww", model.skuName()); + Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); + Assertions.assertEquals("bexrmcq", model.planType()); + Assertions.assertEquals("ycnojvknmefqsg", model.tier()); + Assertions.assertEquals(488274582, model.maxCount()); + Assertions.assertEquals(7076429131580364634L, model.quota().quantity()); + Assertions.assertEquals("zhpvgqzcjrvxd", model.quota().unit()); + Assertions.assertEquals("mwlxk", model.cost().commitmentMeterId()); + Assertions.assertEquals("gfhzovawjvzunlut", model.cost().overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java index da8c7f3922031..ea5a56b67bebe 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java @@ -12,15 +12,15 @@ public final class CommitmentTierListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentTierListResult model = BinaryData.fromString( - "{\"nextLink\":\"lo\",\"value\":[{\"kind\":\"yfjfcnjbkcn\",\"skuName\":\"hbttkphyw\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"t\",\"tier\":\"nermcl\",\"maxCount\":1227353846,\"quota\":{\"quantity\":8408659910270038809,\"unit\":\"scrpabgyepsbjt\"},\"cost\":{\"commitmentMeterId\":\"ugxywpmueef\",\"overageMeterId\":\"wfqkquj\"}}]}") + "{\"nextLink\":\"ugicjooxdjebw\",\"value\":[{\"kind\":\"wfvovbv\",\"skuName\":\"uecivyhz\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"jgjrwjueiotwm\",\"tier\":\"ytdxwit\",\"maxCount\":1070997174,\"quota\":{\"quantity\":8610191053119914796,\"unit\":\"wgxhn\"},\"cost\":{\"commitmentMeterId\":\"x\",\"overageMeterId\":\"kpycgklwndnhjd\"}},{\"kind\":\"whvylw\",\"skuName\":\"tdhxujznbmpowuwp\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"veual\",\"tier\":\"j\",\"maxCount\":1318602789,\"quota\":{\"quantity\":4407430111323762488,\"unit\":\"cswsrtjri\"},\"cost\":{\"commitmentMeterId\":\"bpbewtghfgb\",\"overageMeterId\":\"gw\"}},{\"kind\":\"vlvqhjkbegi\",\"skuName\":\"nmxiebwwaloayqc\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"zjuzgwyz\",\"tier\":\"txon\",\"maxCount\":351214213,\"quota\":{\"quantity\":5974631066556953199,\"unit\":\"bp\"},\"cost\":{\"commitmentMeterId\":\"p\",\"overageMeterId\":\"knftguvriuh\"}}]}") .toObject(CommitmentTierListResult.class); - Assertions.assertEquals("lo", model.nextLink()); + Assertions.assertEquals("ugicjooxdjebw", model.nextLink()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentTierListResult model = new CommitmentTierListResult().withNextLink("lo"); + CommitmentTierListResult model = new CommitmentTierListResult().withNextLink("ugicjooxdjebw"); model = BinaryData.fromObject(model).toObject(CommitmentTierListResult.class); - Assertions.assertEquals("lo", model.nextLink()); + Assertions.assertEquals("ugicjooxdjebw", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java index 2e2eca9495a69..44b43e1d0dafe 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentTiersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"kind\":\"azul\",\"skuName\":\"ethwwnpjhlfz\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"hwahfbousn\",\"tier\":\"pgfewetwlyx\",\"maxCount\":586405587,\"quota\":{\"quantity\":4952988533889495764,\"unit\":\"djhlimm\"},\"cost\":{\"commitmentMeterId\":\"f\",\"overageMeterId\":\"cporxvxcjz\"}}]}"; + = "{\"value\":[{\"kind\":\"jucejikzoeovvtz\",\"skuName\":\"et\",\"hostingModel\":\"Web\",\"planType\":\"tikyj\",\"tier\":\"k\",\"maxCount\":1015093902,\"quota\":{\"quantity\":3276001010985311867,\"unit\":\"zvhqjwtrhtgvg\"},\"cost\":{\"commitmentMeterId\":\"rrkolawjmjs\",\"overageMeterId\":\"rokcdxfzzzwyjaf\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.commitmentTiers().list("poaimlnwiaaomyl", com.azure.core.util.Context.NONE); + = manager.commitmentTiers().list("jpu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("azul", response.iterator().next().kind()); - Assertions.assertEquals("ethwwnpjhlfz", response.iterator().next().skuName()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.iterator().next().hostingModel()); - Assertions.assertEquals("hwahfbousn", response.iterator().next().planType()); - Assertions.assertEquals("pgfewetwlyx", response.iterator().next().tier()); - Assertions.assertEquals(586405587, response.iterator().next().maxCount()); - Assertions.assertEquals(4952988533889495764L, response.iterator().next().quota().quantity()); - Assertions.assertEquals("djhlimm", response.iterator().next().quota().unit()); - Assertions.assertEquals("f", response.iterator().next().cost().commitmentMeterId()); - Assertions.assertEquals("cporxvxcjz", response.iterator().next().cost().overageMeterId()); + Assertions.assertEquals("jucejikzoeovvtz", response.iterator().next().kind()); + Assertions.assertEquals("et", response.iterator().next().skuName()); + Assertions.assertEquals(HostingModel.WEB, response.iterator().next().hostingModel()); + Assertions.assertEquals("tikyj", response.iterator().next().planType()); + Assertions.assertEquals("k", response.iterator().next().tier()); + Assertions.assertEquals(1015093902, response.iterator().next().maxCount()); + Assertions.assertEquals(3276001010985311867L, response.iterator().next().quota().quantity()); + Assertions.assertEquals("zvhqjwtrhtgvg", response.iterator().next().quota().unit()); + Assertions.assertEquals("rrkolawjmjs", response.iterator().next().cost().commitmentMeterId()); + Assertions.assertEquals("rokcdxfzzzwyjaf", response.iterator().next().cost().overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java new file mode 100644 index 0000000000000..5ef41de5f9928 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import org.junit.jupiter.api.Assertions; + +public final class CustomBlocklistConfigTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CustomBlocklistConfig model + = BinaryData.fromString("{\"source\":\"Prompt\",\"blocklistName\":\"cje\",\"blocking\":false}") + .toObject(CustomBlocklistConfig.class); + Assertions.assertEquals("cje", model.blocklistName()); + Assertions.assertEquals(false, model.blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CustomBlocklistConfig model = new CustomBlocklistConfig().withBlocklistName("cje") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT); + model = BinaryData.fromObject(model).toObject(CustomBlocklistConfig.class); + Assertions.assertEquals("cje", model.blocklistName()); + Assertions.assertEquals(false, model.blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java new file mode 100644 index 0000000000000..9e179f3873530 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class DefenderForAISettingInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DefenderForAISettingInner model = BinaryData.fromString( + "{\"etag\":\"rtixokff\",\"tags\":{\"shiy\":\"nljqepqwhixmons\",\"du\":\"gvelfc\",\"rds\":\"cb\",\"b\":\"uwc\"},\"properties\":{\"state\":\"Enabled\"},\"id\":\"tmninw\",\"name\":\"izcil\",\"type\":\"ghgshejjtbxqmu\"}") + .toObject(DefenderForAISettingInner.class); + Assertions.assertEquals("nljqepqwhixmons", model.tags().get("shiy")); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DefenderForAISettingInner model = new DefenderForAISettingInner() + .withTags(mapOf("shiy", "nljqepqwhixmons", "du", "gvelfc", "rds", "cb", "b", "uwc")) + .withState(DefenderForAISettingState.ENABLED); + model = BinaryData.fromObject(model).toObject(DefenderForAISettingInner.class); + Assertions.assertEquals("nljqepqwhixmons", model.tags().get("shiy")); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java new file mode 100644 index 0000000000000..3d8c274cd4597 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingPropertiesTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingProperties; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import org.junit.jupiter.api.Assertions; + +public final class DefenderForAISettingPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DefenderForAISettingProperties model + = BinaryData.fromString("{\"state\":\"Disabled\"}").toObject(DefenderForAISettingProperties.class); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DefenderForAISettingProperties model + = new DefenderForAISettingProperties().withState(DefenderForAISettingState.DISABLED); + model = BinaryData.fromObject(model).toObject(DefenderForAISettingProperties.class); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java new file mode 100644 index 0000000000000..c47e425114528 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingResult; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class DefenderForAISettingResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DefenderForAISettingResult model = BinaryData.fromString( + "{\"nextLink\":\"ibmikostbzb\",\"value\":[{\"etag\":\"qnyophzfyls\",\"tags\":{\"lfwyfwlwxjwetn\":\"pfbcunezzcez\",\"rsqqwztcm\":\"sihclafzvaylp\",\"cxwaxfewz\":\"qkc\"},\"properties\":{\"state\":\"Enabled\"},\"id\":\"xfdeqvhpsyl\",\"name\":\"ksh\",\"type\":\"bffmbmxz\"},{\"etag\":\"ywwpgjxsnptfuj\",\"tags\":{\"pttaqutd\":\"gaao\"},\"properties\":{\"state\":\"Enabled\"},\"id\":\"xswvru\",\"name\":\"nz\",\"type\":\"jgehkf\"}]}") + .toObject(DefenderForAISettingResult.class); + Assertions.assertEquals("ibmikostbzb", model.nextLink()); + Assertions.assertEquals("pfbcunezzcez", model.value().get(0).tags().get("lfwyfwlwxjwetn")); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.value().get(0).state()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DefenderForAISettingResult model + = new DefenderForAISettingResult().withNextLink("ibmikostbzb") + .withValue( + Arrays.asList( + new DefenderForAISettingInner() + .withTags(mapOf("lfwyfwlwxjwetn", "pfbcunezzcez", "rsqqwztcm", "sihclafzvaylp", "cxwaxfewz", + "qkc")) + .withState(DefenderForAISettingState.ENABLED), + new DefenderForAISettingInner().withTags(mapOf("pttaqutd", "gaao")) + .withState(DefenderForAISettingState.ENABLED))); + model = BinaryData.fromObject(model).toObject(DefenderForAISettingResult.class); + Assertions.assertEquals("ibmikostbzb", model.nextLink()); + Assertions.assertEquals("pfbcunezzcez", model.value().get(0).tags().get("lfwyfwlwxjwetn")); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.value().get(0).state()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java new file mode 100644 index 0000000000000..b5c7a6bb2f409 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISetting; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DefenderForAISettingsCreateOrUpdateWithResponseMockTests { + @Test + public void testCreateOrUpdateWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"snxoc\",\"tags\":{\"j\":\"l\",\"g\":\"poy\",\"cvuq\":\"wdjuxdbdljzgdy\",\"nq\":\"sgzlrqhb\"},\"properties\":{\"state\":\"Enabled\"},\"id\":\"wbsfpyxxtjlfl\",\"name\":\"cominxojjluxx\",\"type\":\"hilzzdzzq\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + DefenderForAISetting response = manager.defenderForAISettings() + .define("lssan") + .withExistingAccount("xbibanbaupw", "zvpaklozkxbzrpej") + .withTags(mapOf("bhuhk", "yik", "okhu", "lgw", "jy", "o")) + .withState(DefenderForAISettingState.ENABLED) + .create(); + + Assertions.assertEquals("l", response.tags().get("j")); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, response.state()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..fda14b8d821e6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISetting; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DefenderForAISettingsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"mskxknp\",\"tags\":{\"odkwwnbafocto\":\"igjsugswhgs\",\"nvkervq\":\"zhaquvwsxb\",\"pabdsrg\":\"hoadhrsxqvzv\",\"hjnlt\":\"ajglzrsubklr\"},\"properties\":{\"state\":\"Disabled\"},\"id\":\"dvqydie\",\"name\":\"qkwaruwd\",\"type\":\"vqzxoebwg\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + DefenderForAISetting response = manager.defenderForAISettings() + .getWithResponse("bv", "ipbwxgooo", "zp", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("igjsugswhgs", response.tags().get("odkwwnbafocto")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, response.state()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java new file mode 100644 index 0000000000000..174c0e40cc67b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISetting; +import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DefenderForAISettingsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"etag\":\"sdrmmttjxophgerh\",\"tags\":{\"qilrixysfn\":\"gohtwz\",\"rympmlq\":\"msqywwwmhkruwae\"},\"properties\":{\"state\":\"Disabled\"},\"id\":\"zduewihapfjii\",\"name\":\"njdiqfliejhpcl\",\"type\":\"iedfsbwcei\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response + = manager.defenderForAISettings().list("kpsimsfeypofqp", "bh", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("gohtwz", response.iterator().next().tags().get("qilrixysfn")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, response.iterator().next().state()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java index fb41e885c469a..fcdcf877cc69b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java @@ -27,7 +27,7 @@ public void testPurge() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.deletedAccounts().purge("pkc", "ayzri", "khyawfvjlboxqv", com.azure.core.util.Context.NONE); + manager.deletedAccounts().purge("gtuwkff", "jk", "sysidfvclglxnf", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java new file mode 100644 index 0000000000000..00b72cae1bddf --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentCapacitySettings; +import org.junit.jupiter.api.Assertions; + +public final class DeploymentCapacitySettingsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DeploymentCapacitySettings model + = BinaryData.fromString("{\"designatedCapacity\":98596504,\"priority\":111258164}") + .toObject(DeploymentCapacitySettings.class); + Assertions.assertEquals(98596504, model.designatedCapacity()); + Assertions.assertEquals(111258164, model.priority()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DeploymentCapacitySettings model + = new DeploymentCapacitySettings().withDesignatedCapacity(98596504).withPriority(111258164); + model = BinaryData.fromObject(model).toObject(DeploymentCapacitySettings.class); + Assertions.assertEquals(98596504, model.designatedCapacity()); + Assertions.assertEquals(111258164, model.priority()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java index 893ab348acf77..31fb613751990 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java @@ -13,18 +13,18 @@ public final class DeploymentScaleSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentScaleSettings model - = BinaryData.fromString("{\"scaleType\":\"Manual\",\"capacity\":2102238742,\"activeCapacity\":488745932}") + = BinaryData.fromString("{\"scaleType\":\"Manual\",\"capacity\":840450646,\"activeCapacity\":1308163389}") .toObject(DeploymentScaleSettings.class); Assertions.assertEquals(DeploymentScaleType.MANUAL, model.scaleType()); - Assertions.assertEquals(2102238742, model.capacity()); + Assertions.assertEquals(840450646, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DeploymentScaleSettings model - = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.MANUAL).withCapacity(2102238742); + = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.MANUAL).withCapacity(840450646); model = BinaryData.fromObject(model).toObject(DeploymentScaleSettings.class); Assertions.assertEquals(DeploymentScaleType.MANUAL, model.scaleType()); - Assertions.assertEquals(2102238742, model.capacity()); + Assertions.assertEquals(840450646, model.capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java new file mode 100644 index 0000000000000..94a311b1a7f95 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentSkuListResult; +import org.junit.jupiter.api.Assertions; + +public final class DeploymentSkuListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DeploymentSkuListResult model = BinaryData.fromString( + "{\"nextLink\":\"hlt\",\"value\":[{\"resourceType\":\"xnavvwxq\",\"sku\":{\"name\":\"y\",\"tier\":\"Enterprise\",\"size\":\"owx\",\"family\":\"mdjrkvfgbvfvp\",\"capacity\":1723513014},\"capacity\":{\"minimum\":2095776205,\"maximum\":1592823352,\"step\":218756340,\"default\":1933405509,\"allowedValues\":[1143947813,218475539,1696606842]}}]}") + .toObject(DeploymentSkuListResult.class); + Assertions.assertEquals("hlt", model.nextLink()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DeploymentSkuListResult model = new DeploymentSkuListResult().withNextLink("hlt"); + model = BinaryData.fromObject(model).toObject(DeploymentSkuListResult.class); + Assertions.assertEquals("hlt", model.nextLink()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java index e356a22175bde..2ec9e27aba3df 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.deployments().delete("vkzqk", "jeokbzefezrxccz", "rtle", com.azure.core.util.Context.NONE); + manager.deployments().delete("ids", "yskbruff", "l", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java new file mode 100644 index 0000000000000..5c9f3613c403a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.SkuResource; +import com.azure.resourcemanager.cognitiveservices.models.SkuTier; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DeploymentsListSkusMockTests { + @Test + public void testListSkus() throws Exception { + String responseStr + = "{\"value\":[{\"resourceType\":\"randoypmb\",\"sku\":{\"name\":\"oormkfqlwxldyka\",\"tier\":\"Free\",\"size\":\"aolnjpnnbmjk\",\"family\":\"bjgsjjxxahmrn\",\"capacity\":177973727},\"capacity\":{\"minimum\":1916460685,\"maximum\":156378653,\"step\":319427729,\"default\":1974200246,\"allowedValues\":[739994606]}}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response + = manager.deployments().listSkus("ukkutvl", "hrpqhv", "blcouqehbhbcdszi", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("randoypmb", response.iterator().next().resourceType()); + Assertions.assertEquals("oormkfqlwxldyka", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); + Assertions.assertEquals("aolnjpnnbmjk", response.iterator().next().sku().size()); + Assertions.assertEquals("bjgsjjxxahmrn", response.iterator().next().sku().family()); + Assertions.assertEquals(177973727, response.iterator().next().sku().capacity()); + Assertions.assertEquals(1916460685, response.iterator().next().capacity().minimum()); + Assertions.assertEquals(156378653, response.iterator().next().capacity().maximum()); + Assertions.assertEquals(319427729, response.iterator().next().capacity().step()); + Assertions.assertEquals(1974200246, response.iterator().next().capacity().defaultProperty()); + Assertions.assertEquals(739994606, response.iterator().next().capacity().allowedValues().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DomainAvailabilityInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DomainAvailabilityInnerTests.java index b236edb9b3728..149db760ddc1a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DomainAvailabilityInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DomainAvailabilityInnerTests.java @@ -12,27 +12,27 @@ public final class DomainAvailabilityInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DomainAvailabilityInner model = BinaryData.fromString( - "{\"isSubdomainAvailable\":false,\"reason\":\"tbobz\",\"subdomainName\":\"pcjwv\",\"type\":\"dldwmgxc\",\"kind\":\"slpmutwuo\"}") + "{\"isSubdomainAvailable\":true,\"reason\":\"qiy\",\"subdomainName\":\"orzihle\",\"type\":\"jswsrmslyz\",\"kind\":\"zbchckqqzqioxiy\"}") .toObject(DomainAvailabilityInner.class); - Assertions.assertEquals(false, model.isSubdomainAvailable()); - Assertions.assertEquals("tbobz", model.reason()); - Assertions.assertEquals("pcjwv", model.subdomainName()); - Assertions.assertEquals("dldwmgxc", model.type()); - Assertions.assertEquals("slpmutwuo", model.kind()); + Assertions.assertEquals(true, model.isSubdomainAvailable()); + Assertions.assertEquals("qiy", model.reason()); + Assertions.assertEquals("orzihle", model.subdomainName()); + Assertions.assertEquals("jswsrmslyz", model.type()); + Assertions.assertEquals("zbchckqqzqioxiy", model.kind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DomainAvailabilityInner model = new DomainAvailabilityInner().withIsSubdomainAvailable(false) - .withReason("tbobz") - .withSubdomainName("pcjwv") - .withType("dldwmgxc") - .withKind("slpmutwuo"); + DomainAvailabilityInner model = new DomainAvailabilityInner().withIsSubdomainAvailable(true) + .withReason("qiy") + .withSubdomainName("orzihle") + .withType("jswsrmslyz") + .withKind("zbchckqqzqioxiy"); model = BinaryData.fromObject(model).toObject(DomainAvailabilityInner.class); - Assertions.assertEquals(false, model.isSubdomainAvailable()); - Assertions.assertEquals("tbobz", model.reason()); - Assertions.assertEquals("pcjwv", model.subdomainName()); - Assertions.assertEquals("dldwmgxc", model.type()); - Assertions.assertEquals("slpmutwuo", model.kind()); + Assertions.assertEquals(true, model.isSubdomainAvailable()); + Assertions.assertEquals("qiy", model.reason()); + Assertions.assertEquals("orzihle", model.subdomainName()); + Assertions.assertEquals("jswsrmslyz", model.type()); + Assertions.assertEquals("zbchckqqzqioxiy", model.kind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java new file mode 100644 index 0000000000000..96ad199003860 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResultValueItem; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class LocationBasedModelCapacitiesListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"location\":\"ycsxzu\",\"properties\":{\"model\":{\"publisher\":\"lsmdesqplpvmjc\",\"format\":\"ewbidyvteowxv\",\"name\":\"iudeu\",\"version\":\"sxze\",\"source\":\"axwk\",\"sourceAccount\":\"ykhv\",\"callRateLimit\":{\"count\":36.75517,\"renewalPeriod\":93.7912,\"rules\":[{},{},{}]}},\"skuName\":\"znabaobns\",\"availableCapacity\":77.23243,\"availableFinetuneCapacity\":76.454056},\"id\":\"ltymkmvguihywart\",\"name\":\"pphkixkykxds\",\"type\":\"j\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response = manager.locationBasedModelCapacities() + .list("hdroznnh", "rlktgjcsggu", "hemlwywaee", "zgfbukklelssx", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("ycsxzu", response.iterator().next().location()); + Assertions.assertEquals("lsmdesqplpvmjc", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("ewbidyvteowxv", response.iterator().next().properties().model().format()); + Assertions.assertEquals("iudeu", response.iterator().next().properties().model().name()); + Assertions.assertEquals("sxze", response.iterator().next().properties().model().version()); + Assertions.assertEquals("axwk", response.iterator().next().properties().model().source()); + Assertions.assertEquals("ykhv", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("znabaobns", response.iterator().next().properties().skuName()); + Assertions.assertEquals(77.23243F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(76.454056F, response.iterator().next().properties().availableFinetuneCapacity()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java new file mode 100644 index 0000000000000..3cecce225361a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResultValueItem; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ModelCapacitiesListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"location\":\"lmiiiovg\",\"properties\":{\"model\":{\"publisher\":\"uugqk\",\"format\":\"otiowlxteqd\",\"name\":\"jgwdtgukranbl\",\"version\":\"hqlkccuzgygqwaho\",\"source\":\"lwgniiprglvawu\",\"sourceAccount\":\"d\",\"callRateLimit\":{\"count\":57.923836,\"renewalPeriod\":98.87216,\"rules\":[{},{}]}},\"skuName\":\"bjpmcubk\",\"availableCapacity\":22.810863,\"availableFinetuneCapacity\":64.41416},\"id\":\"xkubvphavpmhbrbq\",\"name\":\"vgovpbbttefjokn\",\"type\":\"sqyzqedikdfr\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response + = manager.modelCapacities().list("emmucfxh", "kkflrmymyincqlhr", "s", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("lmiiiovg", response.iterator().next().location()); + Assertions.assertEquals("uugqk", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("otiowlxteqd", response.iterator().next().properties().model().format()); + Assertions.assertEquals("jgwdtgukranbl", response.iterator().next().properties().model().name()); + Assertions.assertEquals("hqlkccuzgygqwaho", response.iterator().next().properties().model().version()); + Assertions.assertEquals("lwgniiprglvawu", response.iterator().next().properties().model().source()); + Assertions.assertEquals("d", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("bjpmcubk", response.iterator().next().properties().skuName()); + Assertions.assertEquals(22.810863F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(64.41416F, response.iterator().next().properties().availableFinetuneCapacity()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java new file mode 100644 index 0000000000000..5dc7940f58a44 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.ModelCapacityListResult; +import com.azure.resourcemanager.cognitiveservices.models.ModelSkuCapacityProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ModelCapacityListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ModelCapacityListResult model = BinaryData.fromString( + "{\"nextLink\":\"cvdrhvoodsot\",\"value\":[{\"location\":\"dopcjwvnh\",\"properties\":{\"model\":{\"publisher\":\"mgxcxrslpm\",\"format\":\"wuoegrpk\",\"name\":\"wniyqsluicpd\",\"version\":\"kzzlvmbmpaxmodf\",\"source\":\"efyw\",\"sourceAccount\":\"pfvmwyhrfou\",\"callRateLimit\":{\"count\":20.784086,\"renewalPeriod\":32.10248,\"rules\":[{},{},{}]}},\"skuName\":\"iyzvqtmnub\",\"availableCapacity\":71.15051,\"availableFinetuneCapacity\":46.320225},\"id\":\"ksmond\",\"name\":\"mquxvypo\",\"type\":\"gkopkwhojvpajqgx\"},{\"location\":\"mocmbqfqvmk\",\"properties\":{\"model\":{\"publisher\":\"apvhelxprgly\",\"format\":\"dd\",\"name\":\"cbcuejrjxgciqi\",\"version\":\"hos\",\"source\":\"dqrhzoymib\",\"sourceAccount\":\"qyib\",\"callRateLimit\":{\"count\":48.058273,\"renewalPeriod\":70.92327,\"rules\":[{},{},{}]}},\"skuName\":\"tmhrkwofyyvoqacp\",\"availableCapacity\":57.89401,\"availableFinetuneCapacity\":79.0544},\"id\":\"tg\",\"name\":\"wbwo\",\"type\":\"nwashrtd\"}]}") + .toObject(ModelCapacityListResult.class); + Assertions.assertEquals("cvdrhvoodsot", model.nextLink()); + Assertions.assertEquals("dopcjwvnh", model.value().get(0).location()); + Assertions.assertEquals("mgxcxrslpm", model.value().get(0).properties().model().publisher()); + Assertions.assertEquals("wuoegrpk", model.value().get(0).properties().model().format()); + Assertions.assertEquals("wniyqsluicpd", model.value().get(0).properties().model().name()); + Assertions.assertEquals("kzzlvmbmpaxmodf", model.value().get(0).properties().model().version()); + Assertions.assertEquals("efyw", model.value().get(0).properties().model().source()); + Assertions.assertEquals("pfvmwyhrfou", model.value().get(0).properties().model().sourceAccount()); + Assertions.assertEquals("iyzvqtmnub", model.value().get(0).properties().skuName()); + Assertions.assertEquals(71.15051F, model.value().get(0).properties().availableCapacity()); + Assertions.assertEquals(46.320225F, model.value().get(0).properties().availableFinetuneCapacity()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ModelCapacityListResult model = new ModelCapacityListResult().withNextLink("cvdrhvoodsot") + .withValue(Arrays.asList( + new ModelCapacityListResultValueItemInner().withLocation("dopcjwvnh") + .withProperties(new ModelSkuCapacityProperties() + .withModel(new DeploymentModel().withPublisher("mgxcxrslpm") + .withFormat("wuoegrpk") + .withName("wniyqsluicpd") + .withVersion("kzzlvmbmpaxmodf") + .withSource("efyw") + .withSourceAccount("pfvmwyhrfou")) + .withSkuName("iyzvqtmnub") + .withAvailableCapacity(71.15051F) + .withAvailableFinetuneCapacity(46.320225F)), + new ModelCapacityListResultValueItemInner().withLocation("mocmbqfqvmk") + .withProperties(new ModelSkuCapacityProperties() + .withModel(new DeploymentModel().withPublisher("apvhelxprgly") + .withFormat("dd") + .withName("cbcuejrjxgciqi") + .withVersion("hos") + .withSource("dqrhzoymib") + .withSourceAccount("qyib")) + .withSkuName("tmhrkwofyyvoqacp") + .withAvailableCapacity(57.89401F) + .withAvailableFinetuneCapacity(79.0544F)))); + model = BinaryData.fromObject(model).toObject(ModelCapacityListResult.class); + Assertions.assertEquals("cvdrhvoodsot", model.nextLink()); + Assertions.assertEquals("dopcjwvnh", model.value().get(0).location()); + Assertions.assertEquals("mgxcxrslpm", model.value().get(0).properties().model().publisher()); + Assertions.assertEquals("wuoegrpk", model.value().get(0).properties().model().format()); + Assertions.assertEquals("wniyqsluicpd", model.value().get(0).properties().model().name()); + Assertions.assertEquals("kzzlvmbmpaxmodf", model.value().get(0).properties().model().version()); + Assertions.assertEquals("efyw", model.value().get(0).properties().model().source()); + Assertions.assertEquals("pfvmwyhrfou", model.value().get(0).properties().model().sourceAccount()); + Assertions.assertEquals("iyzvqtmnub", model.value().get(0).properties().skuName()); + Assertions.assertEquals(71.15051F, model.value().get(0).properties().availableCapacity()); + Assertions.assertEquals(46.320225F, model.value().get(0).properties().availableFinetuneCapacity()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java index a3522011c0a28..c25ec6cc58245 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java @@ -11,17 +11,17 @@ public final class ModelDeprecationInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ModelDeprecationInfo model = BinaryData.fromString("{\"fineTune\":\"yoxgvcltbgsnc\",\"inference\":\"kjeszz\"}") + ModelDeprecationInfo model = BinaryData.fromString("{\"fineTune\":\"zfcl\",\"inference\":\"axdbabph\"}") .toObject(ModelDeprecationInfo.class); - Assertions.assertEquals("yoxgvcltbgsnc", model.fineTune()); - Assertions.assertEquals("kjeszz", model.inference()); + Assertions.assertEquals("zfcl", model.fineTune()); + Assertions.assertEquals("axdbabph", model.inference()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ModelDeprecationInfo model = new ModelDeprecationInfo().withFineTune("yoxgvcltbgsnc").withInference("kjeszz"); + ModelDeprecationInfo model = new ModelDeprecationInfo().withFineTune("zfcl").withInference("axdbabph"); model = BinaryData.fromObject(model).toObject(ModelDeprecationInfo.class); - Assertions.assertEquals("yoxgvcltbgsnc", model.fineTune()); - Assertions.assertEquals("kjeszz", model.inference()); + Assertions.assertEquals("zfcl", model.fineTune()); + Assertions.assertEquals("axdbabph", model.inference()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java index fd68f37c76835..b4b7072600bf3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java @@ -7,6 +7,7 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.ModelInner; +import com.azure.resourcemanager.cognitiveservices.models.BillingMeterInfo; import com.azure.resourcemanager.cognitiveservices.models.CallRateLimit; import com.azure.resourcemanager.cognitiveservices.models.CapacityConfig; import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; @@ -24,219 +25,189 @@ public final class ModelListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelListResult model = BinaryData.fromString( - "{\"nextLink\":\"haquhcdh\",\"value\":[{\"model\":{\"baseModel\":{\"format\":\"exq\",\"name\":\"fadmws\",\"version\":\"r\",\"source\":\"xpvgo\",\"callRateLimit\":{\"count\":26.122677,\"renewalPeriod\":87.8571,\"rules\":[{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"e\",\"usageName\":\"awkz\",\"deprecationDate\":\"2021-01-06T08:15:40Z\",\"capacity\":{},\"rateLimits\":[{},{}]}],\"maxCapacity\":952194839,\"capabilities\":{\"owzxcu\":\"kauhashsfwxo\",\"jooxdjebw\":\"i\"},\"finetuneCapabilities\":{\"vmeueci\":\"wwfvov\",\"euojgjrwju\":\"yhz\",\"nrjawgqwg\":\"iotwmcdytdxwit\"},\"deprecation\":{\"fineTune\":\"isk\",\"inference\":\"bkpyc\"},\"lifecycleStatus\":\"GenerallyAvailable\",\"format\":\"dnhjdauwhvylw\",\"name\":\"tdhxujznbmpowuwp\",\"version\":\"qlveualupjmkh\",\"source\":\"obbc\",\"callRateLimit\":{\"count\":76.027596,\"renewalPeriod\":87.880394,\"rules\":[{},{},{},{}]}},\"kind\":\"lrbpbewtghfgbl\",\"skuName\":\"wxzvlvqhjkb\"},{\"model\":{\"baseModel\":{\"format\":\"t\",\"name\":\"xiebwwaloayqcg\",\"version\":\"tzjuzgwyzmhtxo\",\"source\":\"mtsavjcbpwxqp\",\"callRateLimit\":{\"count\":70.93744,\"renewalPeriod\":53.922188,\"rules\":[{},{},{}]}},\"isDefaultVersion\":false,\"skus\":[{\"name\":\"prwmdyvxqt\",\"usageName\":\"riwwroy\",\"deprecationDate\":\"2021-03-23T01:00:51Z\",\"capacity\":{},\"rateLimits\":[{},{},{}]},{\"name\":\"qibycnojvknm\",\"usageName\":\"qsgzvahapj\",\"deprecationDate\":\"2021-09-18T06:45:25Z\",\"capacity\":{},\"rateLimits\":[{},{}]},{\"name\":\"zcjrvxdjzlmwlx\",\"usageName\":\"ug\",\"deprecationDate\":\"2021-10-25T12:28:17Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}]}],\"maxCapacity\":1008490621,\"capabilities\":{\"luthn\":\"u\",\"jzuaejxdultskzbb\":\"prnxipeil\"},\"finetuneCapabilities\":{\"bsjyofdx\":\"umveekgpwozuhkf\",\"oekqvk\":\"uusdttouwa\",\"vbxwyjsflhh\":\"lns\"},\"deprecation\":{\"fineTune\":\"lnjixisxya\",\"inference\":\"oyaqcslyjpkiid\"},\"lifecycleStatus\":\"Preview\",\"format\":\"nelixhnrztfo\",\"name\":\"bnxknalaulppg\",\"version\":\"tpnapnyiropuhpig\",\"source\":\"gylgqgitxmedjvcs\",\"callRateLimit\":{\"count\":31.70938,\"renewalPeriod\":85.38784,\"rules\":[{},{},{}]}},\"kind\":\"zzhxgktrm\",\"skuName\":\"cnapkteoell\"},{\"model\":{\"baseModel\":{\"format\":\"d\",\"name\":\"pfqbuaceopzf\",\"version\":\"hhuao\",\"source\":\"pcqeqx\",\"callRateLimit\":{\"count\":56.53698,\"renewalPeriod\":25.949781,\"rules\":[{}]}},\"isDefaultVersion\":false,\"skus\":[{\"name\":\"bkdmo\",\"usageName\":\"postmgrcfbunrm\",\"deprecationDate\":\"2021-10-01T13:01:52Z\",\"capacity\":{},\"rateLimits\":[{},{}]},{\"name\":\"bpvjymjhx\",\"usageName\":\"yngudivk\",\"deprecationDate\":\"2021-05-11T10:46:47Z\",\"capacity\":{},\"rateLimits\":[{},{},{}]},{\"name\":\"zvszj\",\"usageName\":\"uvjfdxxive\",\"deprecationDate\":\"2021-08-28T01:45:57Z\",\"capacity\":{},\"rateLimits\":[{},{},{}]},{\"name\":\"tdo\",\"usageName\":\"cbxvwvxyslqbh\",\"deprecationDate\":\"2021-02-23T20:11:15Z\",\"capacity\":{},\"rateLimits\":[{}]}],\"maxCapacity\":527643920,\"capabilities\":{\"rn\":\"lmpewwwfbkr\",\"bfovasrruvwbhsq\":\"vshqjohxcr\"},\"finetuneCapabilities\":{\"bsrfbj\":\"bcgjbirxbp\",\"otftpvjzbexilz\":\"dtws\",\"qtaruoujmkcjhwq\":\"nfqqnvwp\"},\"deprecation\":{\"fineTune\":\"r\",\"inference\":\"n\"},\"lifecycleStatus\":\"Preview\",\"format\":\"drjervnaenqpehin\",\"name\":\"ygmi\",\"version\":\"hnzdndslgnayqi\",\"source\":\"nduhavhqlkthum\",\"callRateLimit\":{\"count\":16.519005,\"renewalPeriod\":30.626493,\"rules\":[{}]}},\"kind\":\"uie\",\"skuName\":\"gccymvaolpssl\"},{\"model\":{\"baseModel\":{\"format\":\"mdnbbglzpswiy\",\"name\":\"cwyhzdxssa\",\"version\":\"zmnvdfznudaod\",\"source\":\"zbn\",\"callRateLimit\":{\"count\":91.813644,\"renewalPeriod\":69.97067,\"rules\":[{},{},{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"srzdzucerscdn\",\"usageName\":\"evfiwjmygt\",\"deprecationDate\":\"2021-07-01T16:24:58Z\",\"capacity\":{},\"rateLimits\":[{},{}]},{\"name\":\"mweriofzpy\",\"usageName\":\"emwabnet\",\"deprecationDate\":\"2021-07-19T10:32:31Z\",\"capacity\":{},\"rateLimits\":[{}]},{\"name\":\"d\",\"usageName\":\"vwiwubmwmbesld\",\"deprecationDate\":\"2021-06-09T22:01:08Z\",\"capacity\":{},\"rateLimits\":[{}]},{\"name\":\"jflcxog\",\"usageName\":\"konzmnsik\",\"deprecationDate\":\"2021-06-06T06:31:54Z\",\"capacity\":{},\"rateLimits\":[{},{},{}]}],\"maxCapacity\":1625673068,\"capabilities\":{\"fzxmhhvhgureodkw\":\"l\",\"bqdxbx\":\"bdagxt\"},\"finetuneCapabilities\":{\"iplbpodxunkbebxm\":\"bogqxndlkzgxhu\",\"oievseotgqrlltm\":\"byyntwlrbqt\",\"jefuzmuvpbttdumo\":\"wlauwzizxbmpg\",\"xe\":\"p\"},\"deprecation\":{\"fineTune\":\"zbtbhj\",\"inference\":\"lkfg\"},\"lifecycleStatus\":\"GenerallyAvailable\",\"format\":\"uel\",\"name\":\"hsd\",\"version\":\"t\",\"source\":\"fikdowwqu\",\"callRateLimit\":{\"count\":11.344851,\"renewalPeriod\":30.719793,\"rules\":[{},{}]}},\"kind\":\"thhqzonosggbh\",\"skuName\":\"hfwdsjnkaljutiis\"}]}") + "{\"nextLink\":\"wozuhkf\",\"value\":[{\"model\":{\"baseModel\":{\"publisher\":\"f\",\"format\":\"luu\",\"name\":\"ttouwaboekqvkel\",\"version\":\"mvb\",\"source\":\"yjsflhhcaalnji\",\"sourceAccount\":\"sxyawjoyaqcs\",\"callRateLimit\":{\"count\":24.450993,\"renewalPeriod\":58.93525,\"rules\":[{},{},{}]}},\"isDefaultVersion\":false,\"skus\":[{\"name\":\"nelixhnrztfo\",\"usageName\":\"bnxknalaulppg\",\"deprecationDate\":\"2021-03-08T22:58:09Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{},{},{}]},{\"name\":\"iropuhpigvpgylg\",\"usageName\":\"itxmedjvcslynqww\",\"deprecationDate\":\"2021-09-17T17:00:46Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{},{},{},{}]},{\"name\":\"trmgucnapkte\",\"usageName\":\"llwptfdy\",\"deprecationDate\":\"2020-12-31T02:22:45Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{},{},{},{}]},{\"name\":\"op\",\"usageName\":\"qrhhu\",\"deprecationDate\":\"2021-05-07T00:48:34Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{}]}],\"maxCapacity\":108593741,\"capabilities\":{\"ahzxctobgbk\":\"z\",\"mgrcfbu\":\"moizpos\",\"mjh\":\"rmfqjhhkxbpvj\",\"tswb\":\"xjyngudivk\"},\"finetuneCapabilities\":{\"e\":\"vszjfauvjfdxxi\",\"mcbxvwvxysl\":\"vtcqaqtdo\"},\"deprecation\":{\"fineTune\":\"sfxobl\",\"inference\":\"k\"},\"lifecycleStatus\":\"GenerallyAvailable\",\"publisher\":\"wwwfbkr\",\"format\":\"nsvs\",\"name\":\"johxcrsb\",\"version\":\"vasrruvwb\",\"source\":\"qfsubcgjbirx\",\"sourceAccount\":\"ybsrfbjfdtwss\",\"callRateLimit\":{\"count\":98.93621,\"renewalPeriod\":17.965126,\"rules\":[{},{},{},{}]}},\"kind\":\"exilzznfqqnvwpmq\",\"skuName\":\"ruoujmk\",\"description\":\"hwqytj\"},{\"model\":{\"baseModel\":{\"publisher\":\"wj\",\"format\":\"gdrjervnaenqpe\",\"name\":\"ndoygmifthnzdnd\",\"version\":\"gnayqigynduh\",\"source\":\"hqlkthumaqo\",\"sourceAccount\":\"gycdu\",\"callRateLimit\":{\"count\":75.81883,\"renewalPeriod\":82.43766,\"rules\":[{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"psslqlfmm\",\"usageName\":\"bbglzpswiydmc\",\"deprecationDate\":\"2021-03-06T05:36:52Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{},{}]},{\"name\":\"dbzm\",\"usageName\":\"dfznudaodv\",\"deprecationDate\":\"2021-05-29T13:49:41Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{},{},{},{}]},{\"name\":\"pstdbhhxsrzd\",\"usageName\":\"cers\",\"deprecationDate\":\"2021-04-29T11:57:05Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{},{},{},{}]}],\"maxCapacity\":931979220,\"capabilities\":{\"weriofzpyqsem\":\"ygtdsslswt\",\"zhedplvwiw\":\"abnetshh\",\"tppjflcx\":\"bmwmbesldnkw\"},\"finetuneCapabilities\":{\"qqkdltfzxmhhvhgu\":\"okonzmnsikvmkqz\",\"xtibqdxbxwakbog\":\"eodkwobda\",\"iplbpodxunkbebxm\":\"xndlkzgxhu\"},\"deprecation\":{\"fineTune\":\"yntwlrbq\",\"inference\":\"oievseotgqrlltm\"},\"lifecycleStatus\":\"Deprecated\",\"publisher\":\"wzizxbmpgcjefuzm\",\"format\":\"pbttdum\",\"name\":\"p\",\"version\":\"ebmnzbtbhjpglk\",\"source\":\"ohdneuel\",\"sourceAccount\":\"hsd\",\"callRateLimit\":{\"count\":59.737354,\"renewalPeriod\":55.207397,\"rules\":[{}]}},\"kind\":\"owwquuvxz\",\"skuName\":\"lvithhqzonosgg\",\"description\":\"c\"}]}") .toObject(ModelListResult.class); - Assertions.assertEquals("haquhcdh", model.nextLink()); - Assertions.assertEquals("dnhjdauwhvylw", model.value().get(0).model().format()); - Assertions.assertEquals("tdhxujznbmpowuwp", model.value().get(0).model().name()); - Assertions.assertEquals("qlveualupjmkh", model.value().get(0).model().version()); - Assertions.assertEquals("obbc", model.value().get(0).model().source()); - Assertions.assertEquals("exq", model.value().get(0).model().baseModel().format()); - Assertions.assertEquals("fadmws", model.value().get(0).model().baseModel().name()); - Assertions.assertEquals("r", model.value().get(0).model().baseModel().version()); - Assertions.assertEquals("xpvgo", model.value().get(0).model().baseModel().source()); - Assertions.assertEquals(true, model.value().get(0).model().isDefaultVersion()); - Assertions.assertEquals("e", model.value().get(0).model().skus().get(0).name()); - Assertions.assertEquals("awkz", model.value().get(0).model().skus().get(0).usageName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-06T08:15:40Z"), + Assertions.assertEquals("wozuhkf", model.nextLink()); + Assertions.assertEquals("wwwfbkr", model.value().get(0).model().publisher()); + Assertions.assertEquals("nsvs", model.value().get(0).model().format()); + Assertions.assertEquals("johxcrsb", model.value().get(0).model().name()); + Assertions.assertEquals("vasrruvwb", model.value().get(0).model().version()); + Assertions.assertEquals("qfsubcgjbirx", model.value().get(0).model().source()); + Assertions.assertEquals("ybsrfbjfdtwss", model.value().get(0).model().sourceAccount()); + Assertions.assertEquals("f", model.value().get(0).model().baseModel().publisher()); + Assertions.assertEquals("luu", model.value().get(0).model().baseModel().format()); + Assertions.assertEquals("ttouwaboekqvkel", model.value().get(0).model().baseModel().name()); + Assertions.assertEquals("mvb", model.value().get(0).model().baseModel().version()); + Assertions.assertEquals("yjsflhhcaalnji", model.value().get(0).model().baseModel().source()); + Assertions.assertEquals("sxyawjoyaqcs", model.value().get(0).model().baseModel().sourceAccount()); + Assertions.assertEquals(false, model.value().get(0).model().isDefaultVersion()); + Assertions.assertEquals("nelixhnrztfo", model.value().get(0).model().skus().get(0).name()); + Assertions.assertEquals("bnxknalaulppg", model.value().get(0).model().skus().get(0).usageName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T22:58:09Z"), model.value().get(0).model().skus().get(0).deprecationDate()); - Assertions.assertEquals(952194839, model.value().get(0).model().maxCapacity()); - Assertions.assertEquals("kauhashsfwxo", model.value().get(0).model().capabilities().get("owzxcu")); - Assertions.assertEquals("wwfvov", model.value().get(0).model().finetuneCapabilities().get("vmeueci")); - Assertions.assertEquals("isk", model.value().get(0).model().deprecation().fineTune()); - Assertions.assertEquals("bkpyc", model.value().get(0).model().deprecation().inference()); + Assertions.assertEquals(108593741, model.value().get(0).model().maxCapacity()); + Assertions.assertEquals("z", model.value().get(0).model().capabilities().get("ahzxctobgbk")); + Assertions.assertEquals("vszjfauvjfdxxi", model.value().get(0).model().finetuneCapabilities().get("e")); + Assertions.assertEquals("sfxobl", model.value().get(0).model().deprecation().fineTune()); + Assertions.assertEquals("k", model.value().get(0).model().deprecation().inference()); Assertions.assertEquals(ModelLifecycleStatus.GENERALLY_AVAILABLE, model.value().get(0).model().lifecycleStatus()); - Assertions.assertEquals("lrbpbewtghfgbl", model.value().get(0).kind()); - Assertions.assertEquals("wxzvlvqhjkb", model.value().get(0).skuName()); + Assertions.assertEquals("exilzznfqqnvwpmq", model.value().get(0).kind()); + Assertions.assertEquals("ruoujmk", model.value().get(0).skuName()); + Assertions.assertEquals("hwqytj", model.value().get(0).description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ModelListResult model - = new ModelListResult().withNextLink("haquhcdh") + = new ModelListResult().withNextLink("wozuhkf") .withValue( Arrays .asList( new ModelInner() .withModel( - new AccountModelInner().withFormat("dnhjdauwhvylw") - .withName("tdhxujznbmpowuwp") - .withVersion("qlveualupjmkh") - .withSource("obbc") - .withBaseModel(new DeploymentModel().withFormat("exq") - .withName("fadmws") - .withVersion("r") - .withSource("xpvgo")) - .withIsDefaultVersion(true) - .withSkus(Arrays.asList(new ModelSku().withName("e") - .withUsageName("awkz") - .withDeprecationDate(OffsetDateTime.parse("2021-01-06T08:15:40Z")) - .withCapacity(new CapacityConfig()) - .withRateLimits(Arrays.asList(new CallRateLimit(), new CallRateLimit())))) - .withMaxCapacity(952194839) - .withCapabilities(mapOf("owzxcu", "kauhashsfwxo", "jooxdjebw", "i")) - .withFinetuneCapabilities(mapOf("vmeueci", "wwfvov", "euojgjrwju", "yhz", - "nrjawgqwg", "iotwmcdytdxwit")) - .withDeprecation( - new ModelDeprecationInfo().withFineTune("isk").withInference("bkpyc")) - .withLifecycleStatus(ModelLifecycleStatus.GENERALLY_AVAILABLE)) - .withKind("lrbpbewtghfgbl") - .withSkuName("wxzvlvqhjkb"), - new ModelInner() - .withModel( - new AccountModelInner().withFormat("nelixhnrztfo") - .withName("bnxknalaulppg") - .withVersion("tpnapnyiropuhpig") - .withSource("gylgqgitxmedjvcs") - .withBaseModel(new DeploymentModel().withFormat("t") - .withName("xiebwwaloayqcg") - .withVersion("tzjuzgwyzmhtxo") - .withSource("mtsavjcbpwxqp")) + new AccountModelInner().withPublisher("wwwfbkr") + .withFormat("nsvs") + .withName("johxcrsb") + .withVersion("vasrruvwb") + .withSource("qfsubcgjbirx") + .withSourceAccount("ybsrfbjfdtwss") + .withBaseModel(new DeploymentModel().withPublisher("f") + .withFormat("luu") + .withName("ttouwaboekqvkel") + .withVersion("mvb") + .withSource("yjsflhhcaalnji") + .withSourceAccount("sxyawjoyaqcs")) .withIsDefaultVersion(false) .withSkus(Arrays.asList( - new ModelSku().withName("prwmdyvxqt") - .withUsageName("riwwroy") - .withDeprecationDate(OffsetDateTime.parse("2021-03-23T01:00:51Z")) + new ModelSku().withName("nelixhnrztfo") + .withUsageName("bnxknalaulppg") + .withDeprecationDate(OffsetDateTime.parse("2021-03-08T22:58:09Z")) .withCapacity(new CapacityConfig()) .withRateLimits(Arrays.asList(new CallRateLimit(), new CallRateLimit(), - new CallRateLimit())), - new ModelSku().withName("qibycnojvknm") - .withUsageName("qsgzvahapj") - .withDeprecationDate(OffsetDateTime.parse("2021-09-18T06:45:25Z")) + new CallRateLimit(), new CallRateLimit())) + .withCost(Arrays.asList(new BillingMeterInfo(), new BillingMeterInfo(), + new BillingMeterInfo())), + new ModelSku().withName("iropuhpigvpgylg") + .withUsageName("itxmedjvcslynqww") + .withDeprecationDate(OffsetDateTime.parse("2021-09-17T17:00:46Z")) .withCapacity(new CapacityConfig()) - .withRateLimits( - Arrays.asList(new CallRateLimit(), new CallRateLimit())), - new ModelSku().withName("zcjrvxdjzlmwlx") - .withUsageName("ug") - .withDeprecationDate(OffsetDateTime.parse("2021-10-25T12:28:17Z")) + .withRateLimits(Arrays.asList(new CallRateLimit())) + .withCost(Arrays.asList(new BillingMeterInfo(), new BillingMeterInfo(), + new BillingMeterInfo(), new BillingMeterInfo())), + new ModelSku().withName("trmgucnapkte") + .withUsageName("llwptfdy") + .withDeprecationDate(OffsetDateTime.parse("2020-12-31T02:22:45Z")) .withCapacity(new CapacityConfig()) .withRateLimits(Arrays.asList(new CallRateLimit(), new CallRateLimit(), - new CallRateLimit(), new CallRateLimit())))) - .withMaxCapacity(1008490621) - .withCapabilities(mapOf("luthn", "u", "jzuaejxdultskzbb", "prnxipeil")) - .withFinetuneCapabilities(mapOf("bsjyofdx", "umveekgpwozuhkf", "oekqvk", - "uusdttouwa", "vbxwyjsflhh", "lns")) - .withDeprecation(new ModelDeprecationInfo().withFineTune("lnjixisxya") - .withInference("oyaqcslyjpkiid")) - .withLifecycleStatus(ModelLifecycleStatus.PREVIEW)) - .withKind("zzhxgktrm") - .withSkuName("cnapkteoell"), - new ModelInner() - .withModel(new AccountModelInner().withFormat("drjervnaenqpehin") - .withName("ygmi") - .withVersion("hnzdndslgnayqi") - .withSource("nduhavhqlkthum") - .withBaseModel(new DeploymentModel().withFormat("d") - .withName("pfqbuaceopzf") - .withVersion("hhuao") - .withSource("pcqeqx")) - .withIsDefaultVersion(false) - .withSkus(Arrays.asList( - new ModelSku().withName("bkdmo") - .withUsageName("postmgrcfbunrm") - .withDeprecationDate(OffsetDateTime.parse("2021-10-01T13:01:52Z")) - .withCapacity(new CapacityConfig()) - .withRateLimits(Arrays.asList(new CallRateLimit(), new CallRateLimit())), - new ModelSku().withName("bpvjymjhx") - .withUsageName("yngudivk") - .withDeprecationDate(OffsetDateTime.parse("2021-05-11T10:46:47Z")) - .withCapacity(new CapacityConfig()) - .withRateLimits(Arrays.asList(new CallRateLimit(), new CallRateLimit(), - new CallRateLimit())), - new ModelSku().withName("zvszj") - .withUsageName("uvjfdxxive") - .withDeprecationDate(OffsetDateTime.parse("2021-08-28T01:45:57Z")) - .withCapacity(new CapacityConfig()) - .withRateLimits(Arrays.asList(new CallRateLimit(), new CallRateLimit(), - new CallRateLimit())), - new ModelSku().withName("tdo") - .withUsageName("cbxvwvxyslqbh") - .withDeprecationDate(OffsetDateTime.parse("2021-02-23T20:11:15Z")) - .withCapacity(new CapacityConfig()) - .withRateLimits(Arrays.asList(new CallRateLimit())))) - .withMaxCapacity(527643920) - .withCapabilities(mapOf("rn", "lmpewwwfbkr", "bfovasrruvwbhsq", "vshqjohxcr")) - .withFinetuneCapabilities(mapOf("bsrfbj", "bcgjbirxbp", "otftpvjzbexilz", "dtws", - "qtaruoujmkcjhwq", "nfqqnvwp")) - .withDeprecation(new ModelDeprecationInfo().withFineTune("r").withInference("n")) - .withLifecycleStatus(ModelLifecycleStatus.PREVIEW)) - .withKind("uie") - .withSkuName("gccymvaolpssl"), + new CallRateLimit(), new CallRateLimit())) + .withCost(Arrays.asList(new BillingMeterInfo(), new BillingMeterInfo(), + new BillingMeterInfo(), new BillingMeterInfo())), + new ModelSku().withName("op") + .withUsageName("qrhhu") + .withDeprecationDate(OffsetDateTime.parse("2021-05-07T00:48:34Z")) + .withCapacity(new CapacityConfig()) + .withRateLimits(Arrays.asList(new CallRateLimit())) + .withCost(Arrays.asList(new BillingMeterInfo())))) + .withMaxCapacity(108593741) + .withCapabilities(mapOf("ahzxctobgbk", "z", "mgrcfbu", "moizpos", "mjh", + "rmfqjhhkxbpvj", "tswb", "xjyngudivk")) + .withFinetuneCapabilities( + mapOf("e", "vszjfauvjfdxxi", "mcbxvwvxysl", "vtcqaqtdo")) + .withDeprecation( + new ModelDeprecationInfo().withFineTune("sfxobl").withInference("k")) + .withLifecycleStatus(ModelLifecycleStatus.GENERALLY_AVAILABLE)) + .withKind("exilzznfqqnvwpmq") + .withSkuName("ruoujmk") + .withDescription("hwqytj"), new ModelInner() .withModel( - new AccountModelInner().withFormat("uel") - .withName("hsd") - .withVersion("t") - .withSource("fikdowwqu") - .withBaseModel(new DeploymentModel().withFormat("mdnbbglzpswiy") - .withName("cwyhzdxssa") - .withVersion("zmnvdfznudaod") - .withSource("zbn")) + new AccountModelInner().withPublisher("wzizxbmpgcjefuzm") + .withFormat("pbttdum") + .withName("p") + .withVersion("ebmnzbtbhjpglk") + .withSource("ohdneuel") + .withSourceAccount("hsd") + .withBaseModel(new DeploymentModel().withPublisher("wj") + .withFormat("gdrjervnaenqpe") + .withName("ndoygmifthnzdnd") + .withVersion("gnayqigynduh") + .withSource("hqlkthumaqo") + .withSourceAccount("gycdu")) .withIsDefaultVersion(true) .withSkus( Arrays .asList( - new ModelSku().withName("srzdzucerscdn") - .withUsageName("evfiwjmygt") - .withDeprecationDate( - OffsetDateTime.parse("2021-07-01T16:24:58Z")) - .withCapacity(new CapacityConfig()) - .withRateLimits( - Arrays.asList(new CallRateLimit(), new CallRateLimit())), - new ModelSku().withName("mweriofzpy") - .withUsageName("emwabnet") + new ModelSku().withName("psslqlfmm") + .withUsageName("bbglzpswiydmc") .withDeprecationDate( - OffsetDateTime.parse("2021-07-19T10:32:31Z")) + OffsetDateTime.parse("2021-03-06T05:36:52Z")) .withCapacity(new CapacityConfig()) - .withRateLimits(Arrays.asList(new CallRateLimit())), - new ModelSku().withName("d") - .withUsageName("vwiwubmwmbesld") + .withRateLimits(Arrays.asList(new CallRateLimit(), + new CallRateLimit(), new CallRateLimit())) + .withCost(Arrays.asList(new BillingMeterInfo(), + new BillingMeterInfo())), + new ModelSku().withName("dbzm") + .withUsageName("dfznudaodv") .withDeprecationDate( - OffsetDateTime.parse("2021-06-09T22:01:08Z")) + OffsetDateTime.parse("2021-05-29T13:49:41Z")) .withCapacity(new CapacityConfig()) - .withRateLimits(Arrays.asList(new CallRateLimit())), - new ModelSku().withName("jflcxog") - .withUsageName("konzmnsik") + .withRateLimits(Arrays.asList(new CallRateLimit(), + new CallRateLimit(), new CallRateLimit())) + .withCost( + Arrays.asList( + new BillingMeterInfo(), new BillingMeterInfo(), + new BillingMeterInfo(), new BillingMeterInfo())), + new ModelSku().withName("pstdbhhxsrzd") + .withUsageName("cers") .withDeprecationDate( - OffsetDateTime.parse("2021-06-06T06:31:54Z")) + OffsetDateTime.parse("2021-04-29T11:57:05Z")) .withCapacity(new CapacityConfig()) .withRateLimits(Arrays.asList(new CallRateLimit(), - new CallRateLimit(), new CallRateLimit())))) - .withMaxCapacity(1625673068) - .withCapabilities(mapOf("fzxmhhvhgureodkw", "l", "bqdxbx", "bdagxt")) - .withFinetuneCapabilities( - mapOf("iplbpodxunkbebxm", "bogqxndlkzgxhu", "oievseotgqrlltm", - "byyntwlrbqt", "jefuzmuvpbttdumo", "wlauwzizxbmpg", "xe", "p")) - .withDeprecation( - new ModelDeprecationInfo().withFineTune("zbtbhj").withInference("lkfg")) - .withLifecycleStatus(ModelLifecycleStatus.GENERALLY_AVAILABLE)) - .withKind("thhqzonosggbh") - .withSkuName("hfwdsjnkaljutiis"))); + new CallRateLimit(), new CallRateLimit())) + .withCost(Arrays.asList(new BillingMeterInfo(), + new BillingMeterInfo(), new BillingMeterInfo(), + new BillingMeterInfo())))) + .withMaxCapacity(931979220) + .withCapabilities(mapOf("weriofzpyqsem", "ygtdsslswt", "zhedplvwiw", "abnetshh", + "tppjflcx", "bmwmbesldnkw")) + .withFinetuneCapabilities(mapOf("qqkdltfzxmhhvhgu", "okonzmnsikvmkqz", + "xtibqdxbxwakbog", "eodkwobda", "iplbpodxunkbebxm", "xndlkzgxhu")) + .withDeprecation(new ModelDeprecationInfo().withFineTune("yntwlrbq") + .withInference("oievseotgqrlltm")) + .withLifecycleStatus(ModelLifecycleStatus.DEPRECATED)) + .withKind("owwquuvxz") + .withSkuName("lvithhqzonosgg") + .withDescription("c"))); model = BinaryData.fromObject(model).toObject(ModelListResult.class); - Assertions.assertEquals("haquhcdh", model.nextLink()); - Assertions.assertEquals("dnhjdauwhvylw", model.value().get(0).model().format()); - Assertions.assertEquals("tdhxujznbmpowuwp", model.value().get(0).model().name()); - Assertions.assertEquals("qlveualupjmkh", model.value().get(0).model().version()); - Assertions.assertEquals("obbc", model.value().get(0).model().source()); - Assertions.assertEquals("exq", model.value().get(0).model().baseModel().format()); - Assertions.assertEquals("fadmws", model.value().get(0).model().baseModel().name()); - Assertions.assertEquals("r", model.value().get(0).model().baseModel().version()); - Assertions.assertEquals("xpvgo", model.value().get(0).model().baseModel().source()); - Assertions.assertEquals(true, model.value().get(0).model().isDefaultVersion()); - Assertions.assertEquals("e", model.value().get(0).model().skus().get(0).name()); - Assertions.assertEquals("awkz", model.value().get(0).model().skus().get(0).usageName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-06T08:15:40Z"), + Assertions.assertEquals("wozuhkf", model.nextLink()); + Assertions.assertEquals("wwwfbkr", model.value().get(0).model().publisher()); + Assertions.assertEquals("nsvs", model.value().get(0).model().format()); + Assertions.assertEquals("johxcrsb", model.value().get(0).model().name()); + Assertions.assertEquals("vasrruvwb", model.value().get(0).model().version()); + Assertions.assertEquals("qfsubcgjbirx", model.value().get(0).model().source()); + Assertions.assertEquals("ybsrfbjfdtwss", model.value().get(0).model().sourceAccount()); + Assertions.assertEquals("f", model.value().get(0).model().baseModel().publisher()); + Assertions.assertEquals("luu", model.value().get(0).model().baseModel().format()); + Assertions.assertEquals("ttouwaboekqvkel", model.value().get(0).model().baseModel().name()); + Assertions.assertEquals("mvb", model.value().get(0).model().baseModel().version()); + Assertions.assertEquals("yjsflhhcaalnji", model.value().get(0).model().baseModel().source()); + Assertions.assertEquals("sxyawjoyaqcs", model.value().get(0).model().baseModel().sourceAccount()); + Assertions.assertEquals(false, model.value().get(0).model().isDefaultVersion()); + Assertions.assertEquals("nelixhnrztfo", model.value().get(0).model().skus().get(0).name()); + Assertions.assertEquals("bnxknalaulppg", model.value().get(0).model().skus().get(0).usageName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T22:58:09Z"), model.value().get(0).model().skus().get(0).deprecationDate()); - Assertions.assertEquals(952194839, model.value().get(0).model().maxCapacity()); - Assertions.assertEquals("kauhashsfwxo", model.value().get(0).model().capabilities().get("owzxcu")); - Assertions.assertEquals("wwfvov", model.value().get(0).model().finetuneCapabilities().get("vmeueci")); - Assertions.assertEquals("isk", model.value().get(0).model().deprecation().fineTune()); - Assertions.assertEquals("bkpyc", model.value().get(0).model().deprecation().inference()); + Assertions.assertEquals(108593741, model.value().get(0).model().maxCapacity()); + Assertions.assertEquals("z", model.value().get(0).model().capabilities().get("ahzxctobgbk")); + Assertions.assertEquals("vszjfauvjfdxxi", model.value().get(0).model().finetuneCapabilities().get("e")); + Assertions.assertEquals("sfxobl", model.value().get(0).model().deprecation().fineTune()); + Assertions.assertEquals("k", model.value().get(0).model().deprecation().inference()); Assertions.assertEquals(ModelLifecycleStatus.GENERALLY_AVAILABLE, model.value().get(0).model().lifecycleStatus()); - Assertions.assertEquals("lrbpbewtghfgbl", model.value().get(0).kind()); - Assertions.assertEquals("wxzvlvqhjkb", model.value().get(0).skuName()); + Assertions.assertEquals("exilzznfqqnvwpmq", model.value().get(0).kind()); + Assertions.assertEquals("ruoujmk", model.value().get(0).skuName()); + Assertions.assertEquals("hwqytj", model.value().get(0).description()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkRuleSetTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkRuleSetTests.java index 6c4b5bf8a8256..012085f47876d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkRuleSetTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkRuleSetTests.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.cognitiveservices.generated; import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ByPassSelection; import com.azure.resourcemanager.cognitiveservices.models.IpRule; import com.azure.resourcemanager.cognitiveservices.models.NetworkRuleAction; import com.azure.resourcemanager.cognitiveservices.models.NetworkRuleSet; @@ -16,10 +17,11 @@ public final class NetworkRuleSetTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkRuleSet model = BinaryData.fromString( - "{\"defaultAction\":\"Deny\",\"ipRules\":[{\"value\":\"lsuuvmkjozkrwfnd\"}],\"virtualNetworkRules\":[{\"id\":\"jpslwejd\",\"state\":\"wryoqpsoacc\",\"ignoreMissingVnetServiceEndpoint\":true},{\"id\":\"akl\",\"state\":\"ahbc\",\"ignoreMissingVnetServiceEndpoint\":true}]}") + "{\"defaultAction\":\"Deny\",\"bypass\":\"None\",\"ipRules\":[{\"value\":\"uuvmkjozkrwfnd\"}],\"virtualNetworkRules\":[{\"id\":\"jpslwejd\",\"state\":\"wryoqpsoacc\",\"ignoreMissingVnetServiceEndpoint\":true},{\"id\":\"akl\",\"state\":\"ahbc\",\"ignoreMissingVnetServiceEndpoint\":true}]}") .toObject(NetworkRuleSet.class); Assertions.assertEquals(NetworkRuleAction.DENY, model.defaultAction()); - Assertions.assertEquals("lsuuvmkjozkrwfnd", model.ipRules().get(0).value()); + Assertions.assertEquals(ByPassSelection.NONE, model.bypass()); + Assertions.assertEquals("uuvmkjozkrwfnd", model.ipRules().get(0).value()); Assertions.assertEquals("jpslwejd", model.virtualNetworkRules().get(0).id()); Assertions.assertEquals("wryoqpsoacc", model.virtualNetworkRules().get(0).state()); Assertions.assertEquals(true, model.virtualNetworkRules().get(0).ignoreMissingVnetServiceEndpoint()); @@ -28,7 +30,8 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { NetworkRuleSet model = new NetworkRuleSet().withDefaultAction(NetworkRuleAction.DENY) - .withIpRules(Arrays.asList(new IpRule().withValue("lsuuvmkjozkrwfnd"))) + .withBypass(ByPassSelection.NONE) + .withIpRules(Arrays.asList(new IpRule().withValue("uuvmkjozkrwfnd"))) .withVirtualNetworkRules(Arrays.asList( new VirtualNetworkRule().withId("jpslwejd") .withState("wryoqpsoacc") @@ -36,7 +39,8 @@ public void testSerialize() throws Exception { new VirtualNetworkRule().withId("akl").withState("ahbc").withIgnoreMissingVnetServiceEndpoint(true))); model = BinaryData.fromObject(model).toObject(NetworkRuleSet.class); Assertions.assertEquals(NetworkRuleAction.DENY, model.defaultAction()); - Assertions.assertEquals("lsuuvmkjozkrwfnd", model.ipRules().get(0).value()); + Assertions.assertEquals(ByPassSelection.NONE, model.bypass()); + Assertions.assertEquals("uuvmkjozkrwfnd", model.ipRules().get(0).value()); Assertions.assertEquals("jpslwejd", model.virtualNetworkRules().get(0).id()); Assertions.assertEquals("wryoqpsoacc", model.virtualNetworkRules().get(0).state()); Assertions.assertEquals(true, model.virtualNetworkRules().get(0).ignoreMissingVnetServiceEndpoint()); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java new file mode 100644 index 0000000000000..a4088bc6a97e8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem model + = BinaryData.fromString("{\"id\":\"bowxe\"}") + .toObject(NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.class); + Assertions.assertEquals("bowxe", model.id()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem model + = new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("bowxe"); + model = BinaryData.fromObject(model) + .toObject(NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.class); + Assertions.assertEquals("bowxe", model.id()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java new file mode 100644 index 0000000000000..a6592cbf4357a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterAccessRulePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterAccessRuleProperties model = BinaryData.fromString( + "{\"direction\":\"Outbound\",\"addressPrefixes\":[\"oudorhcgyyp\",\"otwypundmb\"],\"subscriptions\":[{\"id\":\"cmjkavlgorbmftpm\"},{\"id\":\"zfjltfvnzcyjto\"},{\"id\":\"vopvp\"},{\"id\":\"bzqgqqi\"}],\"networkSecurityPerimeters\":[{\"id\":\"vqwt\",\"perimeterGuid\":\"ky\",\"location\":\"cysihs\"},{\"id\":\"cw\",\"perimeterGuid\":\"ohsdtmcd\",\"location\":\"ufcohdxbz\"}],\"fullyQualifiedDomainNames\":[\"muapcvhdbevw\",\"qxeysko\",\"qzinkfkbg\"]}") + .toObject(NetworkSecurityPerimeterAccessRuleProperties.class); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.direction()); + Assertions.assertEquals("oudorhcgyyp", model.addressPrefixes().get(0)); + Assertions.assertEquals("cmjkavlgorbmftpm", model.subscriptions().get(0).id()); + Assertions.assertEquals("vqwt", model.networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("ky", model.networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("cysihs", model.networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("muapcvhdbevw", model.fullyQualifiedDomainNames().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterAccessRuleProperties model + = new NetworkSecurityPerimeterAccessRuleProperties().withDirection(NspAccessRuleDirection.OUTBOUND) + .withAddressPrefixes(Arrays.asList("oudorhcgyyp", "otwypundmb")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("cmjkavlgorbmftpm"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("zfjltfvnzcyjto"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("vopvp"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("bzqgqqi"))) + .withNetworkSecurityPerimeters(Arrays.asList( + new NetworkSecurityPerimeter().withId("vqwt").withPerimeterGuid("ky").withLocation("cysihs"), + new NetworkSecurityPerimeter().withId("cw") + .withPerimeterGuid("ohsdtmcd") + .withLocation("ufcohdxbz"))) + .withFullyQualifiedDomainNames(Arrays.asList("muapcvhdbevw", "qxeysko", "qzinkfkbg")); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterAccessRuleProperties.class); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.direction()); + Assertions.assertEquals("oudorhcgyyp", model.addressPrefixes().get(0)); + Assertions.assertEquals("cmjkavlgorbmftpm", model.subscriptions().get(0).id()); + Assertions.assertEquals("vqwt", model.networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("ky", model.networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("cysihs", model.networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("muapcvhdbevw", model.fullyQualifiedDomainNames().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java new file mode 100644 index 0000000000000..e48cef2a92440 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterAccessRuleTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterAccessRule model = BinaryData.fromString( + "{\"name\":\"qzbqqxlajrnwxa\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"kuyxoafg\",\"oqltfae\",\"linmfgv\"],\"subscriptions\":[{\"id\":\"gh\"}],\"networkSecurityPerimeters\":[{\"id\":\"oqeyhlqhykprl\",\"perimeterGuid\":\"znuciqdsm\",\"location\":\"iitdfuxt\"}],\"fullyQualifiedDomainNames\":[\"iibmi\",\"bnn\",\"stgnl\",\"hnmgixhcm\"]}}") + .toObject(NetworkSecurityPerimeterAccessRule.class); + Assertions.assertEquals("qzbqqxlajrnwxa", model.name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.properties().direction()); + Assertions.assertEquals("kuyxoafg", model.properties().addressPrefixes().get(0)); + Assertions.assertEquals("gh", model.properties().subscriptions().get(0).id()); + Assertions.assertEquals("oqeyhlqhykprl", model.properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("znuciqdsm", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("iitdfuxt", model.properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("iibmi", model.properties().fullyQualifiedDomainNames().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterAccessRule model + = new NetworkSecurityPerimeterAccessRule().withName("qzbqqxlajrnwxa") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("kuyxoafg", "oqltfae", "linmfgv")) + .withSubscriptions( + Arrays.asList(new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("gh"))) + .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter().withId("oqeyhlqhykprl") + .withPerimeterGuid("znuciqdsm") + .withLocation("iitdfuxt"))) + .withFullyQualifiedDomainNames(Arrays.asList("iibmi", "bnn", "stgnl", "hnmgixhcm"))); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterAccessRule.class); + Assertions.assertEquals("qzbqqxlajrnwxa", model.name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.properties().direction()); + Assertions.assertEquals("kuyxoafg", model.properties().addressPrefixes().get(0)); + Assertions.assertEquals("gh", model.properties().subscriptions().get(0).id()); + Assertions.assertEquals("oqeyhlqhykprl", model.properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("znuciqdsm", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("iitdfuxt", model.properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("iibmi", model.properties().fullyQualifiedDomainNames().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java new file mode 100644 index 0000000000000..b366d0d1edafb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationAssociationInfo; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterConfigurationAssociationInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterConfigurationAssociationInfo model + = BinaryData.fromString("{\"name\":\"ipqxbkwvzgnzv\",\"accessMode\":\"bzdixzmq\"}") + .toObject(NetworkSecurityPerimeterConfigurationAssociationInfo.class); + Assertions.assertEquals("ipqxbkwvzgnzv", model.name()); + Assertions.assertEquals("bzdixzmq", model.accessMode()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterConfigurationAssociationInfo model + = new NetworkSecurityPerimeterConfigurationAssociationInfo().withName("ipqxbkwvzgnzv") + .withAccessMode("bzdixzmq"); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterConfigurationAssociationInfo.class); + Assertions.assertEquals("ipqxbkwvzgnzv", model.name()); + Assertions.assertEquals("bzdixzmq", model.accessMode()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java new file mode 100644 index 0000000000000..4b934a5a1c47e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationAssociationInfo; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterProfileInfo; +import com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssue; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterConfigurationInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterConfigurationInner model = BinaryData.fromString( + "{\"properties\":{\"provisioningState\":\"omylwea\",\"provisioningIssues\":[{\"name\":\"sethwwn\",\"properties\":{\"issueType\":\"l\",\"severity\":\"swpchwahfbousn\",\"description\":\"pgfewetwlyx\",\"suggestedResourceIds\":[\"xykxhdj\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"mbcxfhbcp\",\"properties\":{\"issueType\":\"vxcjzhqizxfpxtgq\",\"severity\":\"javftjuhdqa\",\"description\":\"mtggu\",\"suggestedResourceIds\":[\"jrajcivm\"],\"suggestedAccessRules\":[{}]}},{\"name\":\"cf\",\"properties\":{\"issueType\":\"xgkn\",\"severity\":\"vyi\",\"description\":\"qodfvp\",\"suggestedResourceIds\":[\"oxgsgbpfgzdjtx\",\"zflbqvg\",\"qvlgafcqusrdvetn\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"tnwlduycv\",\"perimeterGuid\":\"hyrmewipmvekdx\",\"location\":\"uqgsj\"},\"resourceAssociation\":{\"name\":\"n\",\"accessMode\":\"gketwzhhzjhf\"},\"profile\":{\"name\":\"vvmu\",\"accessRulesVersion\":9183951659456928206,\"accessRules\":[{\"name\":\"qsxvmhf\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"hsasbhu\",\"ypoh\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"nsqyrpfoobrltt\",\"msjnygqdnfw\",\"zdzgtilaxhnfhqly\"]}},{\"name\":\"jouw\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"zunbixx\",\"ti\",\"vcpwpgclrc\",\"vtsoxf\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"yyefrpmpdnqqs\"]}}],\"diagnosticSettingsVersion\":9156957823967073009,\"enabledLogCategories\":[\"vmm\",\"npqfrtqlkzmeg\"]}},\"id\":\"itgvkx\",\"name\":\"zyqdrfegcealzx\",\"type\":\"hcans\"}") + .toObject(NetworkSecurityPerimeterConfigurationInner.class); + Assertions.assertEquals("sethwwn", model.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("l", model.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("swpchwahfbousn", + model.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("pgfewetwlyx", + model.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("xykxhdj", + model.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("tnwlduycv", model.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("hyrmewipmvekdx", model.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("uqgsj", model.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("n", model.properties().resourceAssociation().name()); + Assertions.assertEquals("gketwzhhzjhf", model.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("vvmu", model.properties().profile().name()); + Assertions.assertEquals(9183951659456928206L, model.properties().profile().accessRulesVersion()); + Assertions.assertEquals("qsxvmhf", model.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, + model.properties().profile().accessRules().get(0).properties().direction()); + Assertions.assertEquals("hsasbhu", + model.properties().profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("nsqyrpfoobrltt", + model.properties().profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(9156957823967073009L, model.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("vmm", model.properties().profile().enabledLogCategories().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterConfigurationInner model + = new NetworkSecurityPerimeterConfigurationInner() + .withProperties(new NetworkSecurityPerimeterConfigurationProperties() + .withProvisioningIssues(Arrays.asList( + new ProvisioningIssue() + .withName("sethwwn") + .withProperties(new ProvisioningIssueProperties().withIssueType("l") + .withSeverity("swpchwahfbousn") + .withDescription("pgfewetwlyx") + .withSuggestedResourceIds(Arrays.asList("xykxhdj")) + .withSuggestedAccessRules(Arrays.asList(new NetworkSecurityPerimeterAccessRule(), + new NetworkSecurityPerimeterAccessRule()))), + new ProvisioningIssue().withName("mbcxfhbcp") + .withProperties(new ProvisioningIssueProperties() + .withIssueType("vxcjzhqizxfpxtgq") + .withSeverity("javftjuhdqa") + .withDescription("mtggu") + .withSuggestedResourceIds(Arrays.asList("jrajcivm")) + .withSuggestedAccessRules(Arrays.asList(new NetworkSecurityPerimeterAccessRule()))), + new ProvisioningIssue().withName("cf") + .withProperties(new ProvisioningIssueProperties().withIssueType("xgkn") + .withSeverity("vyi") + .withDescription("qodfvp") + .withSuggestedResourceIds( + Arrays.asList("oxgsgbpfgzdjtx", "zflbqvg", "qvlgafcqusrdvetn")) + .withSuggestedAccessRules(Arrays.asList(new NetworkSecurityPerimeterAccessRule(), + new NetworkSecurityPerimeterAccessRule(), + new NetworkSecurityPerimeterAccessRule()))))) + .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("tnwlduycv") + .withPerimeterGuid("hyrmewipmvekdx") + .withLocation("uqgsj")) + .withResourceAssociation(new NetworkSecurityPerimeterConfigurationAssociationInfo().withName("n") + .withAccessMode("gketwzhhzjhf")) + .withProfile( + new NetworkSecurityPerimeterProfileInfo().withName("vvmu") + .withAccessRulesVersion(9183951659456928206L) + .withAccessRules(Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("qsxvmhf") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.OUTBOUND) + .withAddressPrefixes(Arrays.asList("hsasbhu", "ypoh")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem())) + .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) + .withFullyQualifiedDomainNames( + Arrays.asList("nsqyrpfoobrltt", "msjnygqdnfw", "zdzgtilaxhnfhqly"))), + new NetworkSecurityPerimeterAccessRule().withName("jouw") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.OUTBOUND) + .withAddressPrefixes(Arrays.asList("zunbixx", "ti", "vcpwpgclrc", "vtsoxf")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem())) + .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter())) + .withFullyQualifiedDomainNames(Arrays.asList("yyefrpmpdnqqs"))))) + .withDiagnosticSettingsVersion(9156957823967073009L) + .withEnabledLogCategories(Arrays.asList("vmm", "npqfrtqlkzmeg")))); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterConfigurationInner.class); + Assertions.assertEquals("sethwwn", model.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("l", model.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("swpchwahfbousn", + model.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("pgfewetwlyx", + model.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("xykxhdj", + model.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("tnwlduycv", model.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("hyrmewipmvekdx", model.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("uqgsj", model.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("n", model.properties().resourceAssociation().name()); + Assertions.assertEquals("gketwzhhzjhf", model.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("vvmu", model.properties().profile().name()); + Assertions.assertEquals(9183951659456928206L, model.properties().profile().accessRulesVersion()); + Assertions.assertEquals("qsxvmhf", model.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, + model.properties().profile().accessRules().get(0).properties().direction()); + Assertions.assertEquals("hsasbhu", + model.properties().profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("nsqyrpfoobrltt", + model.properties().profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(9156957823967073009L, model.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("vmm", model.properties().profile().enabledLogCategories().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java new file mode 100644 index 0000000000000..956487cd53f46 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationAssociationInfo; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationList; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterProfileInfo; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssue; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterConfigurationListTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterConfigurationList model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"provisioningState\":\"sofieypefojyqd\",\"provisioningIssues\":[{\"name\":\"lcplc\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"hihlhzdsqtzbs\",\"perimeterGuid\":\"nowc\",\"location\":\"fgmvecactxmwo\"},\"resourceAssociation\":{\"name\":\"owcluqo\",\"accessMode\":\"kqvgqouw\"},\"profile\":{\"name\":\"mpjw\",\"accessRulesVersion\":7600818262729980675,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":7788041719620322166,\"enabledLogCategories\":[\"rfsphuagrt\",\"ikteusqczkvyk\",\"xubyjaffmmfblcqc\",\"ubgq\"]}},\"id\":\"brta\",\"name\":\"metttwgd\",\"type\":\"lqxihhrmooiz\"},{\"properties\":{\"provisioningState\":\"ypxiutcxap\",\"provisioningIssues\":[{\"name\":\"petogebjox\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"nhl\",\"perimeterGuid\":\"rqnkkzjcjbtr\",\"location\":\"ehvvib\"},\"resourceAssociation\":{\"name\":\"jsto\",\"accessMode\":\"eitpkxztmo\"},\"profile\":{\"name\":\"lftidgfcwqmpim\",\"accessRulesVersion\":8470531276404867506,\"accessRules\":[{}],\"diagnosticSettingsVersion\":6375317048909912503,\"enabledLogCategories\":[\"hujswtwkozzwcul\"]}},\"id\":\"bawpfajnjwltlwt\",\"name\":\"j\",\"type\":\"uktalhsnvkcdmxz\"}],\"nextLink\":\"oaimlnw\"}") + .toObject(NetworkSecurityPerimeterConfigurationList.class); + Assertions.assertEquals("lcplc", model.value().get(0).properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("hihlhzdsqtzbs", model.value().get(0).properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("nowc", model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("fgmvecactxmwo", + model.value().get(0).properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("owcluqo", model.value().get(0).properties().resourceAssociation().name()); + Assertions.assertEquals("kqvgqouw", model.value().get(0).properties().resourceAssociation().accessMode()); + Assertions.assertEquals("mpjw", model.value().get(0).properties().profile().name()); + Assertions.assertEquals(7600818262729980675L, model.value().get(0).properties().profile().accessRulesVersion()); + Assertions.assertEquals(7788041719620322166L, + model.value().get(0).properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("rfsphuagrt", + model.value().get(0).properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("oaimlnw", model.nextLink()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterConfigurationList model + = new NetworkSecurityPerimeterConfigurationList().withValue(Arrays.asList( + new NetworkSecurityPerimeterConfigurationInner() + .withProperties(new NetworkSecurityPerimeterConfigurationProperties() + .withProvisioningIssues(Arrays.asList(new ProvisioningIssue().withName("lcplc") + .withProperties(new ProvisioningIssueProperties()))) + .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("hihlhzdsqtzbs") + .withPerimeterGuid("nowc") + .withLocation("fgmvecactxmwo")) + .withResourceAssociation( + new NetworkSecurityPerimeterConfigurationAssociationInfo().withName("owcluqo") + .withAccessMode("kqvgqouw")) + .withProfile(new NetworkSecurityPerimeterProfileInfo().withName("mpjw") + .withAccessRulesVersion(7600818262729980675L) + .withAccessRules(Arrays.asList(new NetworkSecurityPerimeterAccessRule(), + new NetworkSecurityPerimeterAccessRule(), new NetworkSecurityPerimeterAccessRule())) + .withDiagnosticSettingsVersion(7788041719620322166L) + .withEnabledLogCategories( + Arrays.asList("rfsphuagrt", "ikteusqczkvyk", "xubyjaffmmfblcqc", "ubgq")))), + new NetworkSecurityPerimeterConfigurationInner() + .withProperties(new NetworkSecurityPerimeterConfigurationProperties() + .withProvisioningIssues(Arrays.asList(new ProvisioningIssue().withName("petogebjox") + .withProperties(new ProvisioningIssueProperties()))) + .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("nhl") + .withPerimeterGuid("rqnkkzjcjbtr") + .withLocation("ehvvib")) + .withResourceAssociation( + new NetworkSecurityPerimeterConfigurationAssociationInfo().withName("jsto") + .withAccessMode("eitpkxztmo")) + .withProfile(new NetworkSecurityPerimeterProfileInfo().withName("lftidgfcwqmpim") + .withAccessRulesVersion(8470531276404867506L) + .withAccessRules(Arrays.asList(new NetworkSecurityPerimeterAccessRule())) + .withDiagnosticSettingsVersion(6375317048909912503L) + .withEnabledLogCategories(Arrays.asList("hujswtwkozzwcul")))))) + .withNextLink("oaimlnw"); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterConfigurationList.class); + Assertions.assertEquals("lcplc", model.value().get(0).properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("hihlhzdsqtzbs", model.value().get(0).properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("nowc", model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("fgmvecactxmwo", + model.value().get(0).properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("owcluqo", model.value().get(0).properties().resourceAssociation().name()); + Assertions.assertEquals("kqvgqouw", model.value().get(0).properties().resourceAssociation().accessMode()); + Assertions.assertEquals("mpjw", model.value().get(0).properties().profile().name()); + Assertions.assertEquals(7600818262729980675L, model.value().get(0).properties().profile().accessRulesVersion()); + Assertions.assertEquals(7788041719620322166L, + model.value().get(0).properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("rfsphuagrt", + model.value().get(0).properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("oaimlnw", model.nextLink()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java new file mode 100644 index 0000000000000..be2ad9dcd7419 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationAssociationInfo; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterProfileInfo; +import com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssue; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterConfigurationPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterConfigurationProperties model = BinaryData.fromString( + "{\"provisioningState\":\"oyqhlwig\",\"provisioningIssues\":[{\"name\":\"kbxgom\",\"properties\":{\"issueType\":\"uwasqvd\",\"severity\":\"y\",\"description\":\"uxakjsqzhzbezk\",\"suggestedResourceIds\":[\"sidxasicdd\",\"vvjskgfmocwahp\",\"gat\",\"eaahhvjhhn\"],\"suggestedAccessRules\":[{\"name\":\"bbjjidjksyxk\",\"properties\":{}},{\"name\":\"xevbl\",\"properties\":{}}]}},{\"name\":\"dnlj\",\"properties\":{\"issueType\":\"euaulxu\",\"severity\":\"mjbnk\",\"description\":\"xynenl\",\"suggestedResourceIds\":[\"eizzgwk\",\"nsrmffeycx\"],\"suggestedAccessRules\":[{\"name\":\"iymerteeammxqi\",\"properties\":{}},{\"name\":\"kzddrtkgdojbmxva\",\"properties\":{}},{\"name\":\"fdeesvecuijpxtx\",\"properties\":{}}]}},{\"name\":\"prtujwsawdd\",\"properties\":{\"issueType\":\"abxvi\",\"severity\":\"tvtzeexavoxtfg\",\"description\":\"cd\",\"suggestedResourceIds\":[\"bwpypqtgsfjacb\"],\"suggestedAccessRules\":[{\"name\":\"xudb\",\"properties\":{}},{\"name\":\"d\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"irudh\",\"perimeterGuid\":\"mes\",\"location\":\"dlpagzrcxfail\"},\"resourceAssociation\":{\"name\":\"wmdboxdfgsftuf\",\"accessMode\":\"brjlnacgcckknhxk\"},\"profile\":{\"name\":\"ytnrzvuljraae\",\"accessRulesVersion\":2313343690952034235,\"accessRules\":[{\"name\":\"ukkjqnvbroyla\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"isdos\",\"jbjsvgjrwh\",\"yvycytdclxgcckn\",\"nwm\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"jdhttzaefedxi\",\"ch\",\"phkmcrjdqnsdfz\",\"bg\"]}},{\"name\":\"kylkdghrj\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"xezw\",\"hokvbwnh\",\"tqlgehgppi\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"oajvgcxtxjcs\"]}},{\"name\":\"afidltugsres\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"oiftxfkfwegprh\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"biqtgdq\",\"hm\",\"wsldrizetpwbr\"]}}],\"diagnosticSettingsVersion\":6856794884105870110,\"enabledLogCategories\":[\"phbqz\",\"izakak\",\"nkjpdnjzha\",\"oylhjlmuoyxprimr\"]}}") + .toObject(NetworkSecurityPerimeterConfigurationProperties.class); + Assertions.assertEquals("kbxgom", model.provisioningIssues().get(0).name()); + Assertions.assertEquals("uwasqvd", model.provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("y", model.provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("uxakjsqzhzbezk", model.provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("sidxasicdd", + model.provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("bbjjidjksyxk", + model.provisioningIssues().get(0).properties().suggestedAccessRules().get(0).name()); + Assertions.assertEquals("irudh", model.networkSecurityPerimeter().id()); + Assertions.assertEquals("mes", model.networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("dlpagzrcxfail", model.networkSecurityPerimeter().location()); + Assertions.assertEquals("wmdboxdfgsftuf", model.resourceAssociation().name()); + Assertions.assertEquals("brjlnacgcckknhxk", model.resourceAssociation().accessMode()); + Assertions.assertEquals("ytnrzvuljraae", model.profile().name()); + Assertions.assertEquals(2313343690952034235L, model.profile().accessRulesVersion()); + Assertions.assertEquals("ukkjqnvbroyla", model.profile().accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + model.profile().accessRules().get(0).properties().direction()); + Assertions.assertEquals("isdos", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("jdhttzaefedxi", + model.profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(6856794884105870110L, model.profile().diagnosticSettingsVersion()); + Assertions.assertEquals("phbqz", model.profile().enabledLogCategories().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterConfigurationProperties model = new NetworkSecurityPerimeterConfigurationProperties() + .withProvisioningIssues(Arrays.asList( + new ProvisioningIssue().withName("kbxgom") + .withProperties(new ProvisioningIssueProperties().withIssueType("uwasqvd") + .withSeverity("y") + .withDescription("uxakjsqzhzbezk") + .withSuggestedResourceIds(Arrays.asList("sidxasicdd", "vvjskgfmocwahp", "gat", "eaahhvjhhn")) + .withSuggestedAccessRules(Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("bbjjidjksyxk") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties()), + new NetworkSecurityPerimeterAccessRule().withName("xevbl") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties())))), + new ProvisioningIssue().withName("dnlj") + .withProperties(new ProvisioningIssueProperties().withIssueType("euaulxu") + .withSeverity("mjbnk") + .withDescription("xynenl") + .withSuggestedResourceIds(Arrays.asList("eizzgwk", "nsrmffeycx")) + .withSuggestedAccessRules(Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("iymerteeammxqi") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties()), + new NetworkSecurityPerimeterAccessRule().withName("kzddrtkgdojbmxva") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties()), + new NetworkSecurityPerimeterAccessRule().withName("fdeesvecuijpxtx") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties())))), + new ProvisioningIssue().withName("prtujwsawdd") + .withProperties(new ProvisioningIssueProperties().withIssueType("abxvi") + .withSeverity("tvtzeexavoxtfg") + .withDescription("cd") + .withSuggestedResourceIds(Arrays.asList("bwpypqtgsfjacb")) + .withSuggestedAccessRules(Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("xudb") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties()), + new NetworkSecurityPerimeterAccessRule().withName("d") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties())))))) + .withNetworkSecurityPerimeter(new NetworkSecurityPerimeter().withId("irudh") + .withPerimeterGuid("mes") + .withLocation("dlpagzrcxfail")) + .withResourceAssociation( + new NetworkSecurityPerimeterConfigurationAssociationInfo() + .withName("wmdboxdfgsftuf") + .withAccessMode("brjlnacgcckknhxk")) + .withProfile( + new NetworkSecurityPerimeterProfileInfo().withName("ytnrzvuljraae") + .withAccessRulesVersion(2313343690952034235L) + .withAccessRules( + Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("ukkjqnvbroyla") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("isdos", "jbjsvgjrwh", "yvycytdclxgcckn", "nwm")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem())) + .withNetworkSecurityPerimeters( + Arrays.asList(new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) + .withFullyQualifiedDomainNames( + Arrays.asList("jdhttzaefedxi", "ch", "phkmcrjdqnsdfz", "bg"))), + new NetworkSecurityPerimeterAccessRule().withName("kylkdghrj") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("xezw", "hokvbwnh", "tqlgehgppi")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem())) + .withNetworkSecurityPerimeters( + Arrays.asList(new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) + .withFullyQualifiedDomainNames(Arrays.asList("oajvgcxtxjcs"))), + new NetworkSecurityPerimeterAccessRule().withName("afidltugsres") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.OUTBOUND) + .withAddressPrefixes(Arrays.asList("oiftxfkfwegprh")) + .withSubscriptions(Arrays + .asList(new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem())) + .withNetworkSecurityPerimeters( + Arrays.asList(new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) + .withFullyQualifiedDomainNames(Arrays.asList("biqtgdq", "hm", "wsldrizetpwbr"))))) + .withDiagnosticSettingsVersion(6856794884105870110L) + .withEnabledLogCategories(Arrays.asList("phbqz", "izakak", "nkjpdnjzha", "oylhjlmuoyxprimr"))); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterConfigurationProperties.class); + Assertions.assertEquals("kbxgom", model.provisioningIssues().get(0).name()); + Assertions.assertEquals("uwasqvd", model.provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("y", model.provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("uxakjsqzhzbezk", model.provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("sidxasicdd", + model.provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("bbjjidjksyxk", + model.provisioningIssues().get(0).properties().suggestedAccessRules().get(0).name()); + Assertions.assertEquals("irudh", model.networkSecurityPerimeter().id()); + Assertions.assertEquals("mes", model.networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("dlpagzrcxfail", model.networkSecurityPerimeter().location()); + Assertions.assertEquals("wmdboxdfgsftuf", model.resourceAssociation().name()); + Assertions.assertEquals("brjlnacgcckknhxk", model.resourceAssociation().accessMode()); + Assertions.assertEquals("ytnrzvuljraae", model.profile().name()); + Assertions.assertEquals(2313343690952034235L, model.profile().accessRulesVersion()); + Assertions.assertEquals("ukkjqnvbroyla", model.profile().accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + model.profile().accessRules().get(0).properties().direction()); + Assertions.assertEquals("isdos", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("jdhttzaefedxi", + model.profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(6856794884105870110L, model.profile().diagnosticSettingsVersion()); + Assertions.assertEquals("phbqz", model.profile().enabledLogCategories().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..481e7a8f94180 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfiguration; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"provisioningState\":\"vmaxgnuyea\",\"provisioningIssues\":[{\"name\":\"udf\",\"properties\":{\"issueType\":\"ehok\",\"severity\":\"pqtwloesqrggvrb\",\"description\":\"rukoi\",\"suggestedResourceIds\":[\"iduw\",\"leipjl\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"p\",\"properties\":{\"issueType\":\"z\",\"severity\":\"hqkkwhbgxvellvul\",\"description\":\"d\",\"suggestedResourceIds\":[\"tmujdtvmc\",\"yymffhmjp\",\"dnyxfzuvrz\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"zjqr\",\"properties\":{\"issueType\":\"vnmdyfoeboj\",\"severity\":\"pp\",\"description\":\"aohoqkpjtnq\",\"suggestedResourceIds\":[\"aywkdcwmqsyril\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"qaolfylnkkbjpjv\",\"properties\":{\"issueType\":\"ltm\",\"severity\":\"obbjwhlwy\",\"description\":\"nqzocrdzg\",\"suggestedResourceIds\":[\"untgxdn\",\"aqttiek\",\"i\",\"uvny\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"xgyrihlgmgbehlqt\",\"perimeterGuid\":\"rflknd\",\"location\":\"dpg\"},\"resourceAssociation\":{\"name\":\"dhdaqotwfhipx\",\"accessMode\":\"sabvcip\"},\"profile\":{\"name\":\"afcz\",\"accessRulesVersion\":2476059658162124344,\"accessRules\":[{\"name\":\"rvpe\",\"properties\":{}},{\"name\":\"dvei\",\"properties\":{}},{\"name\":\"jnsxzajlnsjhwjuy\",\"properties\":{}},{\"name\":\"xqvmvuay\",\"properties\":{}}],\"diagnosticSettingsVersion\":2506282520754540951,\"enabledLogCategories\":[\"eqbw\",\"ntghyksarcdr\"]}},\"id\":\"xsl\",\"name\":\"vlzladl\",\"type\":\"x\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() + .getWithResponse("wjiyewhfjsrwq", "xet", "gcwvrrmdqntycna", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("udf", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("ehok", response.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("pqtwloesqrggvrb", + response.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("rukoi", response.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("iduw", + response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("xgyrihlgmgbehlqt", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("rflknd", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("dpg", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("dhdaqotwfhipx", response.properties().resourceAssociation().name()); + Assertions.assertEquals("sabvcip", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("afcz", response.properties().profile().name()); + Assertions.assertEquals(2476059658162124344L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("rvpe", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(2506282520754540951L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("eqbw", response.properties().profile().enabledLogCategories().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java new file mode 100644 index 0000000000000..96d2d1e35ad87 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfiguration; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class NetworkSecurityPerimeterConfigurationsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"provisioningState\":\"iuxqggvqr\",\"provisioningIssues\":[{\"name\":\"lwcjsqggjhffb\",\"properties\":{\"issueType\":\"rkijpeuqlsdxeqz\",\"severity\":\"x\",\"description\":\"wwmjs\",\"suggestedResourceIds\":[\"awwamecleqiouln\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"oeojhto\",\"properties\":{\"issueType\":\"svidmytzlnglx\",\"severity\":\"ovyoanf\",\"description\":\"swqagywvtxigvjrk\",\"suggestedResourceIds\":[\"aeukyawohpm\",\"hqnucs\",\"lhsidsjtdl\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"njg\",\"properties\":{\"issueType\":\"sv\",\"severity\":\"fcpu\",\"description\":\"e\",\"suggestedResourceIds\":[\"cciklhs\",\"ekrdr\",\"nxolriyehqb\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"hydwbdbfgrlp\",\"perimeterGuid\":\"ytjlkesmmpath\",\"location\":\"ta\"},\"resourceAssociation\":{\"name\":\"an\",\"accessMode\":\"wllbv\"},\"profile\":{\"name\":\"sfftedousnktjtgr\",\"accessRulesVersion\":2376986574027159113,\"accessRules\":[{\"name\":\"kbeba\",\"properties\":{}},{\"name\":\"qbtxxwpf\",\"properties\":{}},{\"name\":\"zudrtpzk\",\"properties\":{}},{\"name\":\"boy\",\"properties\":{}}],\"diagnosticSettingsVersion\":5573114607045046591,\"enabledLogCategories\":[\"hmngqb\",\"dygisrzwnykd\",\"djchlr\"]}},\"id\":\"pwctofl\",\"name\":\"seac\",\"type\":\"hztxkbrfgd\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response = manager.networkSecurityPerimeterConfigurations() + .list("aqktkrumzu", "dkyzbfvxov", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("lwcjsqggjhffb", + response.iterator().next().properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("rkijpeuqlsdxeqz", + response.iterator().next().properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("x", + response.iterator().next().properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("wwmjs", + response.iterator().next().properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("awwamecleqiouln", + response.iterator() + .next() + .properties() + .provisioningIssues() + .get(0) + .properties() + .suggestedResourceIds() + .get(0)); + Assertions.assertEquals("hydwbdbfgrlp", + response.iterator().next().properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("ytjlkesmmpath", + response.iterator().next().properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("ta", response.iterator().next().properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("an", response.iterator().next().properties().resourceAssociation().name()); + Assertions.assertEquals("wllbv", response.iterator().next().properties().resourceAssociation().accessMode()); + Assertions.assertEquals("sfftedousnktjtgr", response.iterator().next().properties().profile().name()); + Assertions.assertEquals(2376986574027159113L, + response.iterator().next().properties().profile().accessRulesVersion()); + Assertions.assertEquals("kbeba", response.iterator().next().properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(5573114607045046591L, + response.iterator().next().properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("hmngqb", + response.iterator().next().properties().profile().enabledLogCategories().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java new file mode 100644 index 0000000000000..82d5241b2f25c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfiguration; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class NetworkSecurityPerimeterConfigurationsReconcileMockTests { + @Test + public void testReconcile() throws Exception { + String responseStr + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"dfwakwseivmak\",\"properties\":{\"issueType\":\"so\",\"severity\":\"juxlkbectvtfjm\",\"description\":\"dchmaiubavlz\",\"suggestedResourceIds\":[\"gmfalkzazmgoked\",\"jqafkmkro\",\"zrthqet\",\"pqrtvaoznqni\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"eagmceituug\",\"properties\":{\"issueType\":\"fpjstlzmb\",\"severity\":\"yjdeolctaebfs\",\"description\":\"ledjcustbvtqigd\",\"suggestedResourceIds\":[\"sgeafgfosehx\",\"zsxezppkkwaae\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"jlpzeqtoyrp\",\"properties\":{\"issueType\":\"lajmllp\",\"severity\":\"evhamfowg\",\"description\":\"tmk\",\"suggestedResourceIds\":[\"pkzwa\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"ovchiqbplvfid\",\"perimeterGuid\":\"ztekxbyjgmsfep\",\"location\":\"ihpq\"},\"resourceAssociation\":{\"name\":\"grhrdic\",\"accessMode\":\"wyjfowxwyovcxjs\"},\"profile\":{\"name\":\"pcukd\",\"accessRulesVersion\":6478476939633501020,\"accessRules\":[{\"name\":\"oduchvlscr\",\"properties\":{}},{\"name\":\"bfdyjduss\",\"properties\":{}},{\"name\":\"zekbhwlkaagg\",\"properties\":{}},{\"name\":\"hbfrnuybfflj\",\"properties\":{}}],\"diagnosticSettingsVersion\":3504021996381944964,\"enabledLogCategories\":[\"agsqta\"]}},\"id\":\"dusr\",\"name\":\"xxfavsqwudohzilf\",\"type\":\"nl\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() + .reconcile("pbqhvfdqqjwkr", "wzdanojisgglmvo", "atuztjct", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("dfwakwseivmak", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("so", response.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("juxlkbectvtfjm", + response.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("dchmaiubavlz", + response.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("gmfalkzazmgoked", + response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("ovchiqbplvfid", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("ztekxbyjgmsfep", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("ihpq", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("grhrdic", response.properties().resourceAssociation().name()); + Assertions.assertEquals("wyjfowxwyovcxjs", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("pcukd", response.properties().profile().name()); + Assertions.assertEquals(6478476939633501020L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("oduchvlscr", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(3504021996381944964L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("agsqta", response.properties().profile().enabledLogCategories().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java new file mode 100644 index 0000000000000..9751a115c25c9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterProfileInfo; +import com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterProfileInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeterProfileInfo model = BinaryData.fromString( + "{\"name\":\"odawopqhewjptmcg\",\"accessRulesVersion\":3816404991942855012,\"accessRules\":[{\"name\":\"lnd\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"zlbiojlvfhrbbpn\",\"qvcww\",\"yurmochpprprs\",\"mo\"],\"subscriptions\":[{\"id\":\"ejnhlbkpb\"},{\"id\":\"cpilj\"},{\"id\":\"hzvechndbnwieho\"}],\"networkSecurityPerimeters\":[{\"id\":\"wiuub\",\"perimeterGuid\":\"fqsfa\",\"location\":\"qtferrqwexjkmf\"},{\"id\":\"pjwogqqno\",\"perimeterGuid\":\"udcdabtqwpwyawb\",\"location\":\"sqbuc\"}],\"fullyQualifiedDomainNames\":[\"kyexaoguyaipi\",\"sdaultxij\",\"um\"]}},{\"name\":\"waz\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"jng\",\"qdqx\",\"bjwgnyfus\",\"zsvtuikzhajqgl\"],\"subscriptions\":[{\"id\":\"l\"}],\"networkSecurityPerimeters\":[{\"id\":\"xynqnz\",\"perimeterGuid\":\"p\",\"location\":\"vwxzn\"},{\"id\":\"goeiybbabpfhvfsl\",\"perimeterGuid\":\"ntjlr\",\"location\":\"jkskyr\"},{\"id\":\"ovzidsx\",\"perimeterGuid\":\"abzmifrygznmmaxr\",\"location\":\"kzobgopxlhsln\"}],\"fullyQualifiedDomainNames\":[\"ieixynllxe\",\"wcrojphslhcaw\",\"u\"]}},{\"name\":\"fdwfmvigorqj\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"aglkafhon\",\"juj\"],\"subscriptions\":[{\"id\":\"pzvcpopmxelnwc\"},{\"id\":\"yjede\"},{\"id\":\"mlfmkqs\"},{\"id\":\"zuawxtzxpuamwa\"}],\"networkSecurityPerimeters\":[{\"id\":\"vxcushsphaivmx\",\"perimeterGuid\":\"sflvgsgzwywakoih\",\"location\":\"smjblmljhlnym\"},{\"id\":\"tqyryuzcbmqqv\",\"perimeterGuid\":\"vwf\",\"location\":\"ayxonsupeujl\"},{\"id\":\"nh\",\"perimeterGuid\":\"sqltnzo\",\"location\":\"gsxgnxfyqon\"},{\"id\":\"qoxwd\",\"perimeterGuid\":\"dbxiqx\",\"location\":\"iqbi\"}],\"fullyQualifiedDomainNames\":[\"mwwinhehfqpofv\",\"bcblemb\"]}},{\"name\":\"bwvqvxkdi\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"wtswbzuwfmdur\"],\"subscriptions\":[{\"id\":\"izvcjfe\"},{\"id\":\"sdjubggbqigkxkbs\"}],\"networkSecurityPerimeters\":[{\"id\":\"kga\",\"perimeterGuid\":\"rcmjdmspofapvuh\",\"location\":\"lniofrzgbzje\"}],\"fullyQualifiedDomainNames\":[\"tkvnlvxbcuiiznkt\"]}}],\"diagnosticSettingsVersion\":6615229551245613232,\"enabledLogCategories\":[\"v\"]}") + .toObject(NetworkSecurityPerimeterProfileInfo.class); + Assertions.assertEquals("odawopqhewjptmcg", model.name()); + Assertions.assertEquals(3816404991942855012L, model.accessRulesVersion()); + Assertions.assertEquals("lnd", model.accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.accessRules().get(0).properties().direction()); + Assertions.assertEquals("zlbiojlvfhrbbpn", model.accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("ejnhlbkpb", model.accessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("wiuub", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("fqsfa", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("qtferrqwexjkmf", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("kyexaoguyaipi", + model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(6615229551245613232L, model.diagnosticSettingsVersion()); + Assertions.assertEquals("v", model.enabledLogCategories().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeterProfileInfo model + = new NetworkSecurityPerimeterProfileInfo().withName("odawopqhewjptmcg") + .withAccessRulesVersion(3816404991942855012L) + .withAccessRules(Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("lnd") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.OUTBOUND) + .withAddressPrefixes(Arrays.asList("zlbiojlvfhrbbpn", "qvcww", "yurmochpprprs", "mo")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("ejnhlbkpb"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("cpilj"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem() + .withId("hzvechndbnwieho"))) + .withNetworkSecurityPerimeters(Arrays.asList( + new NetworkSecurityPerimeter().withId("wiuub") + .withPerimeterGuid("fqsfa") + .withLocation("qtferrqwexjkmf"), + new NetworkSecurityPerimeter().withId("pjwogqqno") + .withPerimeterGuid("udcdabtqwpwyawb") + .withLocation("sqbuc"))) + .withFullyQualifiedDomainNames(Arrays.asList("kyexaoguyaipi", "sdaultxij", "um"))), + new NetworkSecurityPerimeterAccessRule().withName("waz") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("jng", "qdqx", "bjwgnyfus", "zsvtuikzhajqgl")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("l"))) + .withNetworkSecurityPerimeters(Arrays.asList( + new NetworkSecurityPerimeter().withId("xynqnz") + .withPerimeterGuid("p") + .withLocation("vwxzn"), + new NetworkSecurityPerimeter().withId("goeiybbabpfhvfsl") + .withPerimeterGuid("ntjlr") + .withLocation("jkskyr"), + new NetworkSecurityPerimeter().withId("ovzidsx") + .withPerimeterGuid("abzmifrygznmmaxr") + .withLocation("kzobgopxlhsln"))) + .withFullyQualifiedDomainNames(Arrays.asList("ieixynllxe", "wcrojphslhcaw", "u"))), + new NetworkSecurityPerimeterAccessRule().withName("fdwfmvigorqj") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.OUTBOUND) + .withAddressPrefixes(Arrays.asList("aglkafhon", "juj")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem() + .withId("pzvcpopmxelnwc"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("yjede"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("mlfmkqs"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem() + .withId("zuawxtzxpuamwa"))) + .withNetworkSecurityPerimeters(Arrays.asList( + new NetworkSecurityPerimeter().withId("vxcushsphaivmx") + .withPerimeterGuid("sflvgsgzwywakoih") + .withLocation("smjblmljhlnym"), + new NetworkSecurityPerimeter().withId("tqyryuzcbmqqv") + .withPerimeterGuid("vwf") + .withLocation("ayxonsupeujl"), + new NetworkSecurityPerimeter().withId("nh") + .withPerimeterGuid("sqltnzo") + .withLocation("gsxgnxfyqon"), + new NetworkSecurityPerimeter().withId("qoxwd") + .withPerimeterGuid("dbxiqx") + .withLocation("iqbi"))) + .withFullyQualifiedDomainNames(Arrays.asList("mwwinhehfqpofv", "bcblemb"))), + new NetworkSecurityPerimeterAccessRule().withName("bwvqvxkdi") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("wtswbzuwfmdur")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("izvcjfe"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem() + .withId("sdjubggbqigkxkbs"))) + .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter().withId("kga") + .withPerimeterGuid("rcmjdmspofapvuh") + .withLocation("lniofrzgbzje"))) + .withFullyQualifiedDomainNames(Arrays.asList("tkvnlvxbcuiiznkt"))))) + .withDiagnosticSettingsVersion(6615229551245613232L) + .withEnabledLogCategories(Arrays.asList("v")); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeterProfileInfo.class); + Assertions.assertEquals("odawopqhewjptmcg", model.name()); + Assertions.assertEquals(3816404991942855012L, model.accessRulesVersion()); + Assertions.assertEquals("lnd", model.accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.accessRules().get(0).properties().direction()); + Assertions.assertEquals("zlbiojlvfhrbbpn", model.accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("ejnhlbkpb", model.accessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("wiuub", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("fqsfa", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("qtferrqwexjkmf", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("kyexaoguyaipi", + model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(6615229551245613232L, model.diagnosticSettingsVersion()); + Assertions.assertEquals("v", model.enabledLogCategories().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java new file mode 100644 index 0000000000000..8d957267df80e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import org.junit.jupiter.api.Assertions; + +public final class NetworkSecurityPerimeterTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkSecurityPerimeter model + = BinaryData.fromString("{\"id\":\"clj\",\"perimeterGuid\":\"gvkzqkjjeokbze\",\"location\":\"zrxcczurt\"}") + .toObject(NetworkSecurityPerimeter.class); + Assertions.assertEquals("clj", model.id()); + Assertions.assertEquals("gvkzqkjjeokbze", model.perimeterGuid()); + Assertions.assertEquals("zrxcczurt", model.location()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkSecurityPerimeter model = new NetworkSecurityPerimeter().withId("clj") + .withPerimeterGuid("gvkzqkjjeokbze") + .withLocation("zrxcczurt"); + model = BinaryData.fromObject(model).toObject(NetworkSecurityPerimeter.class); + Assertions.assertEquals("clj", model.id()); + Assertions.assertEquals("gvkzqkjjeokbze", model.perimeterGuid()); + Assertions.assertEquals("zrxcczurt", model.location()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationDisplayTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationDisplayTests.java index d35e44ba574a6..3419e4830f0da 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationDisplayTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationDisplayTests.java @@ -10,8 +10,9 @@ public final class OperationDisplayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"zywbiex\",\"resource\":\"eyueaxibxujwb\",\"operation\":\"walm\",\"description\":\"yoxa\"}") + OperationDisplay model = BinaryData + .fromString( + "{\"provider\":\"otogtwrupqs\",\"resource\":\"nmic\",\"operation\":\"vce\",\"description\":\"eil\"}") .toObject(OperationDisplay.class); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationInnerTests.java index 56b2d10233f09..16a720ee88c96 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationInnerTests.java @@ -12,7 +12,7 @@ public final class OperationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationInner model = BinaryData.fromString( - "{\"name\":\"nbtkcxywnytnr\",\"isDataAction\":true,\"display\":{\"provider\":\"idybyxczf\",\"resource\":\"haaxdbabphl\",\"operation\":\"qlfktsths\",\"description\":\"ocmnyyazttbtwwrq\"},\"origin\":\"system\",\"actionType\":\"Internal\"}") + "{\"name\":\"nyqupedeojnabck\",\"isDataAction\":true,\"display\":{\"provider\":\"psiebtfhvpes\",\"resource\":\"skrdqmhjj\",\"operation\":\"tldwkyzxuutk\",\"description\":\"ws\"},\"origin\":\"user\",\"actionType\":\"Internal\"}") .toObject(OperationInner.class); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationListResultTests.java index 2736b31a3a909..6aa662197a36e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationListResultTests.java @@ -11,7 +11,7 @@ public final class OperationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"htxfvgxbfsmxnehm\",\"isDataAction\":false,\"display\":{\"provider\":\"godebfqkkrbmpu\",\"resource\":\"riwflzlfb\",\"operation\":\"puz\",\"description\":\"ispnqzahmgkbrp\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"nuqqkpikadrgvt\",\"isDataAction\":false,\"display\":{\"provider\":\"uynhijg\",\"resource\":\"ebf\",\"operation\":\"arbu\",\"description\":\"cvpnazzmhjrunmpx\"},\"origin\":\"user\",\"actionType\":\"Internal\"}],\"nextLink\":\"bnlankxmyskpb\"}") + "{\"value\":[{\"name\":\"lfktsths\",\"isDataAction\":true,\"display\":{\"provider\":\"nyyazttbtwwrqpue\",\"resource\":\"kzywbiex\",\"operation\":\"eyueaxibxujwb\",\"description\":\"walm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"epdkzja\",\"isDataAction\":false,\"display\":{\"provider\":\"hdwbavxbniwdjs\",\"resource\":\"tsdbpgn\",\"operation\":\"txhp\",\"description\":\"bzpfzab\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"wtctyqi\",\"isDataAction\":true,\"display\":{\"provider\":\"vplwzbhv\",\"resource\":\"u\",\"operation\":\"osvmk\",\"description\":\"sxqu\"},\"origin\":\"system\",\"actionType\":\"Internal\"},{\"name\":\"mg\",\"isDataAction\":true,\"display\":{\"provider\":\"zkd\",\"resource\":\"lpvlopw\",\"operation\":\"ighxpk\",\"description\":\"zb\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"a\"}") .toObject(OperationListResult.class); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java index e578548f0d433..dcb86ba90ece1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"zmpjwyiv\",\"isDataAction\":true,\"display\":{\"provider\":\"cvhrfsp\",\"resource\":\"agr\",\"operation\":\"ikteusqczkvyk\",\"description\":\"ubyjaffmmf\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"yukphaimmoiroq\",\"isDataAction\":false,\"display\":{\"provider\":\"ragapyyrmfsvbp\",\"resource\":\"bopfppdbwnup\",\"operation\":\"hxkumasjcaacfdmm\",\"description\":\"ugmehqepvufhbze\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java index 6cce2769c22fb..a8cd22ef8208d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java @@ -16,32 +16,32 @@ public final class PatchResourceTagsAndSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PatchResourceTagsAndSku model = BinaryData.fromString( - "{\"sku\":{\"name\":\"umh\",\"tier\":\"Premium\",\"size\":\"kkxwslol\",\"family\":\"pvuzlmv\",\"capacity\":1530472980},\"tags\":{\"crpw\":\"tgp\",\"brnjwmw\":\"xeznoi\"}}") + "{\"sku\":{\"name\":\"qhuexm\",\"tier\":\"Standard\",\"size\":\"stvlzywemhzrnc\",\"family\":\"tclusiypbsfgy\",\"capacity\":1825081348},\"tags\":{\"kyhejhzisxgf\":\"feadcygq\",\"raehtwdwrft\":\"elolppvksrpqvuj\",\"rcdlbhshfwpr\":\"wib\"}}") .toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("tgp", model.tags().get("crpw")); - Assertions.assertEquals("umh", model.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); - Assertions.assertEquals("kkxwslol", model.sku().size()); - Assertions.assertEquals("pvuzlmv", model.sku().family()); - Assertions.assertEquals(1530472980, model.sku().capacity()); + Assertions.assertEquals("feadcygq", model.tags().get("kyhejhzisxgf")); + Assertions.assertEquals("qhuexm", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("stvlzywemhzrnc", model.sku().size()); + Assertions.assertEquals("tclusiypbsfgy", model.sku().family()); + Assertions.assertEquals(1825081348, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PatchResourceTagsAndSku model - = new PatchResourceTagsAndSku().withTags(mapOf("crpw", "tgp", "brnjwmw", "xeznoi")) - .withSku(new Sku().withName("umh") - .withTier(SkuTier.PREMIUM) - .withSize("kkxwslol") - .withFamily("pvuzlmv") - .withCapacity(1530472980)); + PatchResourceTagsAndSku model = new PatchResourceTagsAndSku() + .withTags(mapOf("kyhejhzisxgf", "feadcygq", "raehtwdwrft", "elolppvksrpqvuj", "rcdlbhshfwpr", "wib")) + .withSku(new Sku().withName("qhuexm") + .withTier(SkuTier.STANDARD) + .withSize("stvlzywemhzrnc") + .withFamily("tclusiypbsfgy") + .withCapacity(1825081348)); model = BinaryData.fromObject(model).toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("tgp", model.tags().get("crpw")); - Assertions.assertEquals("umh", model.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); - Assertions.assertEquals("kkxwslol", model.sku().size()); - Assertions.assertEquals("pvuzlmv", model.sku().family()); - Assertions.assertEquals(1530472980, model.sku().capacity()); + Assertions.assertEquals("feadcygq", model.tags().get("kyhejhzisxgf")); + Assertions.assertEquals("qhuexm", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("stvlzywemhzrnc", model.sku().size()); + Assertions.assertEquals("tclusiypbsfgy", model.sku().family()); + Assertions.assertEquals(1825081348, model.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java index 8a0dfad507b81..4d6e649ed10b4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java @@ -13,18 +13,16 @@ public final class PatchResourceTagsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PatchResourceTags model = BinaryData.fromString( - "{\"tags\":{\"fhsxttaugz\":\"bsazejjoqka\",\"jlwuenvrkp\":\"nfaazpxdtnkdmkq\",\"ibreb\":\"ou\",\"kixqtnqtt\":\"aays\"}}") + PatchResourceTags model = BinaryData.fromString("{\"tags\":{\"c\":\"twitykhev\",\"jc\":\"edcpnmdyodnwzxl\"}}") .toObject(PatchResourceTags.class); - Assertions.assertEquals("bsazejjoqka", model.tags().get("fhsxttaugz")); + Assertions.assertEquals("twitykhev", model.tags().get("c")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PatchResourceTags model = new PatchResourceTags().withTags( - mapOf("fhsxttaugz", "bsazejjoqka", "jlwuenvrkp", "nfaazpxdtnkdmkq", "ibreb", "ou", "kixqtnqtt", "aays")); + PatchResourceTags model = new PatchResourceTags().withTags(mapOf("c", "twitykhev", "jc", "edcpnmdyodnwzxl")); model = BinaryData.fromObject(model).toObject(PatchResourceTags.class); - Assertions.assertEquals("bsazejjoqka", model.tags().get("fhsxttaugz")); + Assertions.assertEquals("twitykhev", model.tags().get("c")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionInnerTests.java index b1afde47d29e7..e3443708a01e9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionInnerTests.java @@ -17,15 +17,14 @@ public final class PrivateEndpointConnectionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionInner model = BinaryData.fromString( - "{\"properties\":{\"privateEndpoint\":{\"id\":\"ayhuy\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"odepoogin\",\"actionsRequired\":\"amiheognarxz\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"tusivyevcciqihn\"]},\"location\":\"gbwjzrnf\",\"etag\":\"xgispemvtzfkufu\",\"id\":\"ljofxqeofjaeqjh\",\"name\":\"jbasvmsmjqulngs\",\"type\":\"tnb\"}") + "{\"properties\":{\"privateEndpoint\":{\"id\":\"iheogna\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"theotusiv\",\"actionsRequired\":\"v\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"hn\",\"un\"]},\"location\":\"jzrnf\",\"etag\":\"xgispemvtzfkufu\",\"id\":\"ljofxqeofjaeqjh\",\"name\":\"jbasvmsmjqulngs\",\"type\":\"tnb\"}") .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("odepoogin", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("amiheognarxz", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("tusivyevcciqihn", model.properties().groupIds().get(0)); - Assertions.assertEquals("gbwjzrnf", model.location()); + Assertions.assertEquals("theotusiv", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("v", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("hn", model.properties().groupIds().get(0)); + Assertions.assertEquals("jzrnf", model.location()); } @org.junit.jupiter.api.Test @@ -34,18 +33,17 @@ public void testSerialize() throws Exception { = new PrivateEndpointConnectionInner() .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("odepoogin") - .withActionsRequired("amiheognarxz")) - .withGroupIds(Arrays.asList("tusivyevcciqihn"))) - .withLocation("gbwjzrnf"); + .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) + .withDescription("theotusiv") + .withActionsRequired("v")) + .withGroupIds(Arrays.asList("hn", "un"))) + .withLocation("jzrnf"); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("odepoogin", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("amiheognarxz", - model.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("tusivyevcciqihn", model.properties().groupIds().get(0)); - Assertions.assertEquals("gbwjzrnf", model.location()); + Assertions.assertEquals("theotusiv", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("v", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("hn", model.properties().groupIds().get(0)); + Assertions.assertEquals("jzrnf", model.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java index cae77e2ca9321..5a2d25db19b6e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java @@ -18,50 +18,37 @@ public final class PrivateEndpointConnectionListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionListResultInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"jw\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"sluicpdggkzz\",\"actionsRequired\":\"mbmpaxmodfvuefy\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"vmwy\",\"rfouyftaakcpw\"]},\"location\":\"vqtmnub\",\"etag\":\"kpzksmondjmq\",\"id\":\"xvy\",\"name\":\"omgkopkwho\",\"type\":\"v\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"gxysmocmbqfqvm\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"zapvhelx\",\"actionsRequired\":\"glyatddckcbcuej\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"iqi\",\"rhos\",\"sdqrhzoymibmrq\"]},\"location\":\"ahwfluszdtmhrk\",\"etag\":\"fyyvoq\",\"id\":\"cpi\",\"name\":\"xpbtgiwbwo\",\"type\":\"nwashrtd\"}]}") + "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"y\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"nxxmueedndrdv\",\"actionsRequired\":\"kwqqtchealmf\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"ygdvwv\",\"piohgwxrtfu\",\"xepxgyqagvrvmn\"]},\"location\":\"kghimdblxgwimfnj\",\"etag\":\"j\",\"id\":\"wmszkk\",\"name\":\"oqreyfkzikfjawn\",\"type\":\"a\"}]}") .toObject(PrivateEndpointConnectionListResultInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("sluicpdggkzz", + Assertions.assertEquals("nxxmueedndrdv", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mbmpaxmodfvuefy", + Assertions.assertEquals("kwqqtchealmf", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("vmwy", model.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("vqtmnub", model.value().get(0).location()); + Assertions.assertEquals("ygdvwv", model.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("kghimdblxgwimfnj", model.value().get(0).location()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateEndpointConnectionListResultInner model - = new PrivateEndpointConnectionListResultInner() - .withValue( - Arrays.asList( - new PrivateEndpointConnectionInner() - .withProperties( - new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("sluicpdggkzz") - .withActionsRequired("mbmpaxmodfvuefy")) - .withGroupIds(Arrays.asList("vmwy", "rfouyftaakcpw"))) - .withLocation("vqtmnub"), - new PrivateEndpointConnectionInner() - .withProperties( - new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("zapvhelx") - .withActionsRequired("glyatddckcbcuej")) - .withGroupIds(Arrays.asList("iqi", "rhos", "sdqrhzoymibmrq"))) - .withLocation("ahwfluszdtmhrk"))); + PrivateEndpointConnectionListResultInner model = new PrivateEndpointConnectionListResultInner() + .withValue(Arrays.asList(new PrivateEndpointConnectionInner() + .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) + .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() + .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) + .withDescription("nxxmueedndrdv") + .withActionsRequired("kwqqtchealmf")) + .withGroupIds(Arrays.asList("ygdvwv", "piohgwxrtfu", "xepxgyqagvrvmn"))) + .withLocation("kghimdblxgwimfnj"))); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionListResultInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("sluicpdggkzz", + Assertions.assertEquals("nxxmueedndrdv", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("mbmpaxmodfvuefy", + Assertions.assertEquals("kwqqtchealmf", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("vmwy", model.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("vqtmnub", model.value().get(0).location()); + Assertions.assertEquals("ygdvwv", model.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("kghimdblxgwimfnj", model.value().get(0).location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java index 7a33385d6b6d1..cb8c13353bd7a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"wmqtibx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"dt\",\"actionsRequired\":\"cttadi\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"mrsieekp\"]},\"location\":\"aapm\",\"etag\":\"qmeqwigpibudqwyx\",\"id\":\"beybpmzznrtffyaq\",\"name\":\"tmhheioqa\",\"type\":\"hvseufuqyrx\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"dlfp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"cygvoavyunssx\",\"actionsRequired\":\"hi\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"gvvpasek\",\"gbuxantuygdh\",\"aq\",\"pirpiwrqof\"]},\"location\":\"pmjnlexwhcb\",\"etag\":\"ibkeph\",\"id\":\"uuerctatoyi\",\"name\":\"tqpbrlcy\",\"type\":\"duczkgof\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,22 +37,23 @@ public void testCreateOrUpdate() throws Exception { PrivateEndpointConnection response = manager.privateEndpointConnections() - .define("tpwb") - .withExistingAccount("qtgdqohmcwsl", "riz") - .withRegion("ohguuf") + .define("z") + .withExistingAccount("jwfljhznamtua", "mzwcjjncqt") + .withRegion("r") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("izakak") - .withActionsRequired("kjpdnjzhajo")) - .withGroupIds(Arrays.asList("muoyxprimr", "opteecj", "eislstvasylwx", "zaum"))) + .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) + .withDescription("wggahttzlswvaj") + .withActionsRequired("utlxjoqzasunwqrj")) + .withGroupIds(Arrays.asList("haohcmbuo"))) .create(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("dt", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("cttadi", response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("mrsieekp", response.properties().groupIds().get(0)); - Assertions.assertEquals("aapm", response.location()); + Assertions.assertEquals("cygvoavyunssx", + response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("hi", response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("gvvpasek", response.properties().groupIds().get(0)); + Assertions.assertEquals("pmjnlexwhcb", response.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java index aafc647ce9e49..0980d09e44e95 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureEnvironment.AZURE)); - manager.privateEndpointConnections().delete("iftxfkf", "egprhptil", "ucb", com.azure.core.util.Context.NONE); + manager.privateEndpointConnections() + .delete("jxcx", "rzdcgdzbenribcaw", "tzqdd", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index ac30c788c224f..70a0e5fd26340 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"pdvjdhttzaefedx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"rphkmcrjdqnsdfz\",\"actionsRequired\":\"gtgkylkdghr\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"lwxezwzhokvbwnh\"]},\"location\":\"lgehg\",\"etag\":\"ipifhpfeoajvg\",\"id\":\"xtxj\",\"name\":\"sheafid\",\"type\":\"tugsresmkssjh\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"eakxcptsoqfyi\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"chkrttzr\",\"actionsRequired\":\"isgykiuemvanbwz\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"xxbsojklinhmd\"]},\"location\":\"sprqsgnzxojpslsv\",\"etag\":\"pli\",\"id\":\"fiqwoy\",\"name\":\"qvapcohhoucq\",\"type\":\"q\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("jbjsvgjrwh", "yvycytdclxgcckn", "nwm", com.azure.core.util.Context.NONE) + .getWithResponse("laqacigele", "hdbvqvwzkjop", "beonrlkwzdq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("rphkmcrjdqnsdfz", - response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("gtgkylkdghr", + Assertions.assertEquals("chkrttzr", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("isgykiuemvanbwz", response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("lwxezwzhokvbwnh", response.properties().groupIds().get(0)); - Assertions.assertEquals("lgehg", response.location()); + Assertions.assertEquals("xxbsojklinhmd", response.properties().groupIds().get(0)); + Assertions.assertEquals("sprqsgnzxojpslsv", response.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java index 488efd8b2f309..83ae78fb5f562 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"eg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"zxwhcansymoyqhlw\",\"actionsRequired\":\"divb\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"mf\",\"juwasqvdaeyyguxa\"]},\"location\":\"qzhzbezkgimsi\",\"etag\":\"asi\",\"id\":\"ddyvvjskgfmo\",\"name\":\"wa\",\"type\":\"pqg\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"a\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"jhhn\",\"actionsRequired\":\"zybbj\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"syxkyxvxevblb\",\"ednljl\",\"geuaulx\",\"nsmjbnkppxynen\"]},\"location\":\"xeizzg\",\"etag\":\"lnsrmffe\",\"id\":\"cxcktpi\",\"name\":\"merteeammxqiek\",\"type\":\"kzddrtkgdojbmxva\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"de\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"cuijpxt\",\"actionsRequired\":\"uwprtujwsawd\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"bxv\",\"titvtzeexavox\"]},\"location\":\"lecdmdqbw\",\"etag\":\"pqtgsfjac\",\"id\":\"slhhxudbxv\",\"name\":\"d\",\"type\":\"tnsi\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"z\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"ckdlpag\",\"actionsRequired\":\"cxfailcfxwmdboxd\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"ufqobrjlnac\",\"cc\",\"knh\",\"kizvytn\"]},\"location\":\"uljraae\",\"etag\":\"nok\",\"id\":\"gukkjqnvbroy\",\"name\":\"a\",\"type\":\"xulcdisdos\"}]}"; + = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"mjpb\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"mgtvlj\",\"actionsRequired\":\"cmyfqipgxhnpo\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"abvn\",\"ilee\"]},\"location\":\"wlpaugmrmfjlrxwt\",\"etag\":\"ukhfkvc\",\"id\":\"sizmoae\",\"name\":\"sx\",\"type\":\"wuived\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"eewxeiqbpsmg\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"amljdlrgmsplzgau\",\"actionsRequired\":\"shhvnewgnxky\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"xrjkixtwb\",\"aoypny\",\"hshxcylhkgmnsghp\",\"ycphdrwjjkhvyo\"]},\"location\":\"luzvxnq\",\"etag\":\"rpqpd\",\"id\":\"wmkoisq\",\"name\":\"ssffxuifmc\",\"type\":\"ypobkdqzr\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"lo\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"rc\",\"actionsRequired\":\"ydmxzj\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"aurkihcirlde\",\"xrdcoxnbkkja\",\"urnnqbnqbpiz\"]},\"location\":\"tgrdogypx\",\"etag\":\"vbfihwuhvctafsr\",\"id\":\"xrblmliowxihs\",\"name\":\"nxw\",\"type\":\"agnepzwaklsb\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"qagwwrxaomz\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"rrczezkhhltnj\",\"actionsRequired\":\"hqo\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"yueayfbpcmsp\",\"byrrueqth\",\"mg\",\"mbscbbx\"]},\"location\":\"hxiidlopedb\",\"etag\":\"pyqy\",\"id\":\"bxubmdna\",\"name\":\"cbq\",\"type\":\"remj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateEndpointConnectionListResult response = manager.privateEndpointConnections() - .listWithResponse("awaoqvmmbnpqfrt", "lkzmegnitgvkxl", com.azure.core.util.Context.NONE) + .listWithResponse("biqmrjgei", "fqlggw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("zxwhcansymoyqhlw", + Assertions.assertEquals("mgtvlj", response.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("divb", + Assertions.assertEquals("cmyfqipgxhnpo", response.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("mf", response.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("qzhzbezkgimsi", response.value().get(0).location()); + Assertions.assertEquals("abvn", response.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("wlpaugmrmfjlrxwt", response.value().get(0).location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java index 709878b955711..b627d855ffedd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java @@ -15,23 +15,21 @@ public final class PrivateLinkResourceListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceListResultInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"xwbpokulpiuj\",\"requiredMembers\":[\"sipqii\",\"byuqerpqlp\"],\"requiredZoneNames\":[\"ciuqgbdb\",\"t\",\"uvfbtkuwh\",\"mhykojoxafnndl\"],\"displayName\":\"chkoymkcdyh\"},\"id\":\"pkkpw\",\"name\":\"reqnovvqfov\",\"type\":\"jxywsuws\"},{\"properties\":{\"groupId\":\"ndsytgadg\",\"requiredMembers\":[\"ea\",\"neqn\",\"arrwlquu\",\"jfqka\"],\"requiredZoneNames\":[\"iipfpubj\",\"bwwift\"],\"displayName\":\"qkvpuvksgplsakn\"},\"id\":\"n\",\"name\":\"synljphuopxodl\",\"type\":\"iyntorzihle\"},{\"properties\":{\"groupId\":\"swsrms\",\"requiredMembers\":[\"rpzbchckqqzqi\",\"xiy\"],\"requiredZoneNames\":[\"i\",\"ynkedyatrwyhqmib\",\"yhwitsmypyynpcdp\",\"mnzgmwznmabi\"],\"displayName\":\"sorgj\"},\"id\":\"xbldtlwwrlkdmtn\",\"name\":\"vokotllxdyh\",\"type\":\"syocogjltdtbnnha\"},{\"properties\":{\"groupId\":\"crkvcikhnv\",\"requiredMembers\":[\"qgxqquezikyw\"],\"requiredZoneNames\":[\"kallatmel\",\"uipiccjzk\"],\"displayName\":\"v\"},\"id\":\"vvcnayr\",\"name\":\"yrnxxmueedn\",\"type\":\"rdvstkwqqtch\"}]}") + "{\"value\":[{\"properties\":{\"groupId\":\"zel\",\"requiredMembers\":[\"r\",\"lsfeaenwabfatkld\"],\"requiredZoneNames\":[\"jhwuaanozjos\",\"hyoulpjr\"],\"displayName\":\"ag\"},\"id\":\"rvimjwosytxitcsk\",\"name\":\"cktqumiekkezzi\",\"type\":\"hlyfjhdgqgg\"},{\"properties\":{\"groupId\":\"unygaeqid\",\"requiredMembers\":[\"atpxl\",\"rxcyjmoad\",\"uvarmywdmjsjq\",\"jhhyxxrwlycoduhp\"],\"requiredZoneNames\":[\"gymare\",\"n\",\"jxqugjhky\",\"ubeddg\"],\"displayName\":\"ofwq\"},\"id\":\"zqalkrmnjijpx\",\"name\":\"cqqudf\",\"type\":\"byxbaaabjy\"},{\"properties\":{\"groupId\":\"ffimrzrtuzqogsex\",\"requiredMembers\":[\"fdnw\",\"wmewzsyy\",\"euzsoi\",\"judpfrxt\"],\"requiredZoneNames\":[\"zvaytdwkqbr\"],\"displayName\":\"bpaxhexiilivpdt\"},\"id\":\"irqtdqoa\",\"name\":\"oruzfgsquyfxrxx\",\"type\":\"eptra\"}]}") .toObject(PrivateLinkResourceListResultInner.class); - Assertions.assertEquals("ciuqgbdb", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("jhwuaanozjos", model.value().get(0).properties().requiredZoneNames().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkResourceListResultInner model = new PrivateLinkResourceListResultInner().withValue(Arrays.asList( - new PrivateLinkResource().withProperties(new PrivateLinkResourceProperties() - .withRequiredZoneNames(Arrays.asList("ciuqgbdb", "t", "uvfbtkuwh", "mhykojoxafnndl"))), new PrivateLinkResource().withProperties( - new PrivateLinkResourceProperties().withRequiredZoneNames(Arrays.asList("iipfpubj", "bwwift"))), + new PrivateLinkResourceProperties().withRequiredZoneNames(Arrays.asList("jhwuaanozjos", "hyoulpjr"))), new PrivateLinkResource().withProperties(new PrivateLinkResourceProperties() - .withRequiredZoneNames(Arrays.asList("i", "ynkedyatrwyhqmib", "yhwitsmypyynpcdp", "mnzgmwznmabi"))), + .withRequiredZoneNames(Arrays.asList("gymare", "n", "jxqugjhky", "ubeddg"))), new PrivateLinkResource().withProperties( - new PrivateLinkResourceProperties().withRequiredZoneNames(Arrays.asList("kallatmel", "uipiccjzk"))))); + new PrivateLinkResourceProperties().withRequiredZoneNames(Arrays.asList("zvaytdwkqbr"))))); model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResultInner.class); - Assertions.assertEquals("ciuqgbdb", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("jhwuaanozjos", model.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java index 96623300df175..3e4ff50c734b4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java @@ -13,16 +13,16 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"sfeaenwabfat\",\"requiredMembers\":[\"dxbjhwuaanozj\",\"sphyoulpjrvxa\",\"l\",\"vimjwos\"],\"requiredZoneNames\":[\"itc\"],\"displayName\":\"fcktqumiekke\"}") + "{\"groupId\":\"xsdszuempsb\",\"requiredMembers\":[\"z\"],\"requiredZoneNames\":[\"v\",\"nqicvinvkjjxdxrb\",\"ukzclewyhmlwpaz\",\"zpof\"],\"displayName\":\"ckw\"}") .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("itc", model.requiredZoneNames().get(0)); + Assertions.assertEquals("v", model.requiredZoneNames().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateLinkResourceProperties model - = new PrivateLinkResourceProperties().withRequiredZoneNames(Arrays.asList("itc")); + PrivateLinkResourceProperties model = new PrivateLinkResourceProperties() + .withRequiredZoneNames(Arrays.asList("v", "nqicvinvkjjxdxrb", "ukzclewyhmlwpaz", "zpof")); model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("itc", model.requiredZoneNames().get(0)); + Assertions.assertEquals("v", model.requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java index 071e3b88e9261..9337ab311deeb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java @@ -14,16 +14,16 @@ public final class PrivateLinkResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResource model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"mfmtdaaygdvw\",\"requiredMembers\":[\"iohgwxrtfud\",\"epxgyqagvr\",\"mnpkukghimdblxg\"],\"requiredZoneNames\":[\"fnjhfjxwmszkkfo\",\"rey\"],\"displayName\":\"zi\"},\"id\":\"fjawneaivxwczel\",\"name\":\"c\",\"type\":\"r\"}") + "{\"properties\":{\"groupId\":\"ezw\",\"requiredMembers\":[\"wxuqlcvydypatdoo\",\"ojknio\",\"kooebwnu\"],\"requiredZoneNames\":[\"mmsbvdkcrodtjin\",\"wj\",\"fltkacjv\"],\"displayName\":\"kdlfoa\"},\"id\":\"ggkfpagaowpul\",\"name\":\"qblylsyxkqj\",\"type\":\"sjervti\"}") .toObject(PrivateLinkResource.class); - Assertions.assertEquals("fnjhfjxwmszkkfo", model.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("mmsbvdkcrodtjin", model.properties().requiredZoneNames().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateLinkResource model = new PrivateLinkResource().withProperties( - new PrivateLinkResourceProperties().withRequiredZoneNames(Arrays.asList("fnjhfjxwmszkkfo", "rey"))); + PrivateLinkResource model = new PrivateLinkResource().withProperties(new PrivateLinkResourceProperties() + .withRequiredZoneNames(Arrays.asList("mmsbvdkcrodtjin", "wj", "fltkacjv"))); model = BinaryData.fromObject(model).toObject(PrivateLinkResource.class); - Assertions.assertEquals("fnjhfjxwmszkkfo", model.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("mmsbvdkcrodtjin", model.properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java index 85a06ae078228..ebece20b0fa54 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkResourcesListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"disyirnxz\",\"requiredMembers\":[\"exrxzbujrtrhq\",\"wrevkhgnlnzon\",\"lrpiqywnc\"],\"requiredZoneNames\":[\"szcofizeht\",\"hgbjkvrelje\",\"murvzm\",\"ov\"],\"displayName\":\"nashcxlp\"},\"id\":\"jerbdkelvidizozs\",\"name\":\"bccxjmonfdgn\",\"type\":\"n\"},{\"properties\":{\"groupId\":\"uuwwltv\",\"requiredMembers\":[\"ctzenkeifzzhmkd\",\"svflyhbxcudch\",\"gsrboldforobw\"],\"requiredZoneNames\":[\"izbfhfovvacq\",\"btuodxeszabbel\"],\"displayName\":\"umuaslzkwrrwoycq\"},\"id\":\"cwyhahno\",\"name\":\"drkywuhps\",\"type\":\"fuurutlwexx\"},{\"properties\":{\"groupId\":\"lniexz\",\"requiredMembers\":[\"pgepqtybbwwpgda\",\"chzyvlixqnrk\"],\"requiredZoneNames\":[\"jibnxmysu\",\"swqrntvlwijp\",\"ttexoqqpwcyyufmh\",\"uncuw\"],\"displayName\":\"spkcdqzh\"},\"id\":\"ctddun\",\"name\":\"ndy\",\"type\":\"pchrqbn\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"eaqnrmvvfkoxm\",\"requiredMembers\":[\"ktuidvrm\",\"zlpdwwex\",\"mzvlazipbh\"],\"requiredZoneNames\":[\"qsg\"],\"displayName\":\"yuuzivens\"},\"id\":\"pmeyyvpkpatlbijp\",\"name\":\"gsksrfhf\",\"type\":\"olmk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PrivateLinkResourceListResult response = manager.privateLinkResources() - .listWithResponse("dlcgqlsismjqfr", "dgamquhiosrsj", com.azure.core.util.Context.NONE) + .listWithResponse("y", "srucvcrrpcjtt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("szcofizeht", response.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("qsg", response.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java new file mode 100644 index 0000000000000..c87bb7e89cce4 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ProvisioningIssuePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ProvisioningIssueProperties model = BinaryData.fromString( + "{\"issueType\":\"wncvjtszcofiz\",\"severity\":\"tdhgbjkvrelj\",\"description\":\"murvzm\",\"suggestedResourceIds\":[\"uanashcxlp\",\"jerbdkelvidizozs\",\"bccxjmonfdgn\"],\"suggestedAccessRules\":[{\"name\":\"puuw\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"jctzenkei\",\"zzhmkd\",\"svflyhbxcudch\"],\"subscriptions\":[{\"id\":\"boldforobwj\"},{\"id\":\"izbfhfovvacq\"},{\"id\":\"tuodxeszabbelaw\"}],\"networkSecurityPerimeters\":[{\"id\":\"slzkwrrwoycqu\",\"perimeterGuid\":\"yhahnomdrkyw\",\"location\":\"psvfuurutlwexxwl\"}],\"fullyQualifiedDomainNames\":[\"iexzsrzpge\",\"q\",\"yb\",\"wwpgdakchzyvlixq\"]}},{\"name\":\"kcxk\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ysux\"],\"subscriptions\":[{\"id\":\"ntvlwijpsttexo\"},{\"id\":\"pwcyyufmhr\"}],\"networkSecurityPerimeters\":[{\"id\":\"wmqs\",\"perimeterGuid\":\"cdqzhlctddu\",\"location\":\"ndy\"},{\"id\":\"chrqb\",\"perimeterGuid\":\"jrcg\",\"location\":\"ydcwboxjumv\"}],\"fullyQualifiedDomainNames\":[\"lihrraiouaubr\",\"tloqxfuojrn\"]}},{\"name\":\"flrzpas\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"mzdlyjdfqwmkyo\",\"ufdvruz\"],\"subscriptions\":[{\"id\":\"j\"},{\"id\":\"ctfnmdxotng\"},{\"id\":\"gugey\"}],\"networkSecurityPerimeters\":[{\"id\":\"rkyui\",\"perimeterGuid\":\"bsnmfpph\",\"location\":\"eevy\"},{\"id\":\"hsgz\",\"perimeterGuid\":\"zbgomfgbeg\",\"location\":\"gleohi\"}],\"fullyQualifiedDomainNames\":[\"nlu\",\"nkrrf\",\"eeebtijvacv\"]}}]}") + .toObject(ProvisioningIssueProperties.class); + Assertions.assertEquals("wncvjtszcofiz", model.issueType()); + Assertions.assertEquals("tdhgbjkvrelj", model.severity()); + Assertions.assertEquals("murvzm", model.description()); + Assertions.assertEquals("uanashcxlp", model.suggestedResourceIds().get(0)); + Assertions.assertEquals("puuw", model.suggestedAccessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + model.suggestedAccessRules().get(0).properties().direction()); + Assertions.assertEquals("jctzenkei", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("boldforobwj", + model.suggestedAccessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("slzkwrrwoycqu", + model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("yhahnomdrkyw", + model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("psvfuurutlwexxwl", + model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("iexzsrzpge", + model.suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ProvisioningIssueProperties model = new ProvisioningIssueProperties().withIssueType("wncvjtszcofiz") + .withSeverity("tdhgbjkvrelj") + .withDescription("murvzm") + .withSuggestedResourceIds(Arrays.asList("uanashcxlp", "jerbdkelvidizozs", "bccxjmonfdgn")) + .withSuggestedAccessRules(Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("puuw") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("jctzenkei", "zzhmkd", "svflyhbxcudch")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("boldforobwj"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("izbfhfovvacq"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem() + .withId("tuodxeszabbelaw"))) + .withNetworkSecurityPerimeters( + Arrays.asList(new NetworkSecurityPerimeter().withId("slzkwrrwoycqu") + .withPerimeterGuid("yhahnomdrkyw") + .withLocation("psvfuurutlwexxwl"))) + .withFullyQualifiedDomainNames(Arrays.asList("iexzsrzpge", "q", "yb", "wwpgdakchzyvlixq"))), + new NetworkSecurityPerimeterAccessRule().withName("kcxk") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("ysux")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem() + .withId("ntvlwijpsttexo"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("pwcyyufmhr"))) + .withNetworkSecurityPerimeters(Arrays.asList( + new NetworkSecurityPerimeter().withId("wmqs") + .withPerimeterGuid("cdqzhlctddu") + .withLocation("ndy"), + new NetworkSecurityPerimeter().withId("chrqb") + .withPerimeterGuid("jrcg") + .withLocation("ydcwboxjumv"))) + .withFullyQualifiedDomainNames(Arrays.asList("lihrraiouaubr", "tloqxfuojrn"))), + new NetworkSecurityPerimeterAccessRule().withName("flrzpas") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("mzdlyjdfqwmkyo", "ufdvruz")) + .withSubscriptions(Arrays.asList( + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("j"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("ctfnmdxotng"), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem().withId("gugey"))) + .withNetworkSecurityPerimeters(Arrays.asList( + new NetworkSecurityPerimeter().withId("rkyui") + .withPerimeterGuid("bsnmfpph") + .withLocation("eevy"), + new NetworkSecurityPerimeter().withId("hsgz") + .withPerimeterGuid("zbgomfgbeg") + .withLocation("gleohi"))) + .withFullyQualifiedDomainNames(Arrays.asList("nlu", "nkrrf", "eeebtijvacv"))))); + model = BinaryData.fromObject(model).toObject(ProvisioningIssueProperties.class); + Assertions.assertEquals("wncvjtszcofiz", model.issueType()); + Assertions.assertEquals("tdhgbjkvrelj", model.severity()); + Assertions.assertEquals("murvzm", model.description()); + Assertions.assertEquals("uanashcxlp", model.suggestedResourceIds().get(0)); + Assertions.assertEquals("puuw", model.suggestedAccessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + model.suggestedAccessRules().get(0).properties().direction()); + Assertions.assertEquals("jctzenkei", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("boldforobwj", + model.suggestedAccessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("slzkwrrwoycqu", + model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("yhahnomdrkyw", + model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("psvfuurutlwexxwl", + model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("iexzsrzpge", + model.suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java new file mode 100644 index 0000000000000..1506862d0da5d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties; +import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem; +import com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssue; +import com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ProvisioningIssueTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ProvisioningIssue model = BinaryData.fromString( + "{\"name\":\"pteecjme\",\"properties\":{\"issueType\":\"stvasylwxdzaumw\",\"severity\":\"ohguuf\",\"description\":\"boyjathwt\",\"suggestedResourceIds\":[\"b\",\"emwmdxmebwjs\",\"jpahlxvea\"],\"suggestedAccessRules\":[{\"name\":\"nmwmqtibx\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"vqcttadija\",\"ukm\",\"sieekpndzaapm\",\"dqmeqwigpibudq\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"bpmzzn\",\"tffyaqit\",\"hheioqaqhvseuf\",\"qyrxp\"]}},{\"name\":\"cgq\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"qfrddgam\",\"uhiosrsju\",\"vfcdisyirn\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"rxzbujr\",\"rhqvwrevkh\",\"nlnzonzlrpi\"]}}]}}") + .toObject(ProvisioningIssue.class); + Assertions.assertEquals("pteecjme", model.name()); + Assertions.assertEquals("stvasylwxdzaumw", model.properties().issueType()); + Assertions.assertEquals("ohguuf", model.properties().severity()); + Assertions.assertEquals("boyjathwt", model.properties().description()); + Assertions.assertEquals("b", model.properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("nmwmqtibx", model.properties().suggestedAccessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + model.properties().suggestedAccessRules().get(0).properties().direction()); + Assertions.assertEquals("vqcttadija", + model.properties().suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("bpmzzn", + model.properties().suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ProvisioningIssue model = new ProvisioningIssue().withName("pteecjme") + .withProperties(new ProvisioningIssueProperties().withIssueType("stvasylwxdzaumw") + .withSeverity("ohguuf") + .withDescription("boyjathwt") + .withSuggestedResourceIds(Arrays.asList("b", "emwmdxmebwjs", "jpahlxvea")) + .withSuggestedAccessRules(Arrays.asList( + new NetworkSecurityPerimeterAccessRule().withName("nmwmqtibx") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.INBOUND) + .withAddressPrefixes(Arrays.asList("vqcttadija", "ukm", "sieekpndzaapm", "dqmeqwigpibudq")) + .withSubscriptions( + Arrays.asList(new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem(), + new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem())) + .withNetworkSecurityPerimeters( + Arrays.asList(new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) + .withFullyQualifiedDomainNames( + Arrays.asList("bpmzzn", "tffyaqit", "hheioqaqhvseuf", "qyrxp"))), + new NetworkSecurityPerimeterAccessRule().withName("cgq") + .withProperties(new NetworkSecurityPerimeterAccessRuleProperties() + .withDirection(NspAccessRuleDirection.OUTBOUND) + .withAddressPrefixes(Arrays.asList("qfrddgam", "uhiosrsju", "vfcdisyirn")) + .withSubscriptions( + Arrays.asList(new NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem())) + .withNetworkSecurityPerimeters(Arrays.asList(new NetworkSecurityPerimeter(), + new NetworkSecurityPerimeter(), new NetworkSecurityPerimeter())) + .withFullyQualifiedDomainNames(Arrays.asList("rxzbujr", "rhqvwrevkh", "nlnzonzlrpi")))))); + model = BinaryData.fromObject(model).toObject(ProvisioningIssue.class); + Assertions.assertEquals("pteecjme", model.name()); + Assertions.assertEquals("stvasylwxdzaumw", model.properties().issueType()); + Assertions.assertEquals("ohguuf", model.properties().severity()); + Assertions.assertEquals("boyjathwt", model.properties().description()); + Assertions.assertEquals("b", model.properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("nmwmqtibx", model.properties().suggestedAccessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + model.properties().suggestedAccessRules().get(0).properties().direction()); + Assertions.assertEquals("vqcttadija", + model.properties().suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("bpmzzn", + model.properties().suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java new file mode 100644 index 0000000000000..ee4d405516a0f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlockListItemsResult; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlockListItemsResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlockListItemsResult model = BinaryData.fromString( + "{\"nextLink\":\"lmywwtkgkxnyed\",\"value\":[{\"etag\":\"udtjuewbc\",\"tags\":{\"bvpa\":\"uuwhcjyxcc\",\"px\":\"akkud\"},\"properties\":{\"pattern\":\"plmag\",\"isRegex\":true},\"id\":\"yohpfkyrkdbdgiog\",\"name\":\"jkmnwq\",\"type\":\"nobaiyhddviacegf\"},{\"etag\":\"tfpmvmemfnczdw\",\"tags\":{\"db\":\"alxlllchp\"},\"properties\":{\"pattern\":\"wrd\",\"isRegex\":true},\"id\":\"ukuv\",\"name\":\"jcswsmys\",\"type\":\"uluqypfc\"},{\"etag\":\"rchpqbmfpjbabwid\",\"tags\":{\"qddrihpfhoqcaae\":\"sspuunnoxyhkx\",\"djvlpj\":\"dao\",\"msgeivsiykzk\":\"xkzb\",\"xonbzoggculapz\":\"ncj\"},\"properties\":{\"pattern\":\"pgogtqxepny\",\"isRegex\":false},\"id\":\"uajlyj\",\"name\":\"lvofqzhvfcibyfmo\",\"type\":\"uxrkjp\"}]}") + .toObject(RaiBlockListItemsResult.class); + Assertions.assertEquals("lmywwtkgkxnyed", model.nextLink()); + Assertions.assertEquals("uuwhcjyxcc", model.value().get(0).tags().get("bvpa")); + Assertions.assertEquals("plmag", model.value().get(0).properties().pattern()); + Assertions.assertEquals(true, model.value().get(0).properties().isRegex()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlockListItemsResult model = new RaiBlockListItemsResult().withNextLink("lmywwtkgkxnyed") + .withValue(Arrays.asList( + new RaiBlocklistItemInner().withTags(mapOf("bvpa", "uuwhcjyxcc", "px", "akkud")) + .withProperties(new RaiBlocklistItemProperties().withPattern("plmag").withIsRegex(true)), + new RaiBlocklistItemInner().withTags(mapOf("db", "alxlllchp")) + .withProperties(new RaiBlocklistItemProperties().withPattern("wrd").withIsRegex(true)), + new RaiBlocklistItemInner() + .withTags(mapOf("qddrihpfhoqcaae", "sspuunnoxyhkx", "djvlpj", "dao", "msgeivsiykzk", "xkzb", + "xonbzoggculapz", "ncj")) + .withProperties(new RaiBlocklistItemProperties().withPattern("pgogtqxepny").withIsRegex(false)))); + model = BinaryData.fromObject(model).toObject(RaiBlockListItemsResult.class); + Assertions.assertEquals("lmywwtkgkxnyed", model.nextLink()); + Assertions.assertEquals("uuwhcjyxcc", model.value().get(0).tags().get("bvpa")); + Assertions.assertEquals("plmag", model.value().get(0).properties().pattern()); + Assertions.assertEquals(true, model.value().get(0).properties().isRegex()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java new file mode 100644 index 0000000000000..a5ba32d528e50 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlockListResult; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlockListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlockListResult model = BinaryData.fromString( + "{\"nextLink\":\"lrri\",\"value\":[{\"etag\":\"xsmiccwrwfscjf\",\"tags\":{\"tiby\":\"szqujizdvoq\",\"lgy\":\"wb\"},\"properties\":{\"description\":\"tp\"},\"id\":\"hjoxo\",\"name\":\"smsks\",\"type\":\"pi\"},{\"etag\":\"oljxkcgx\",\"tags\":{\"l\":\"sffgcvizqzd\",\"youpfgfbkj\":\"w\",\"ttsttktlahbqact\":\"bdyhgkfminsgowz\"},\"properties\":{\"description\":\"zukxitmmqtgqq\"},\"id\":\"x\",\"name\":\"rnxrxcpj\",\"type\":\"isavok\"}]}") + .toObject(RaiBlockListResult.class); + Assertions.assertEquals("lrri", model.nextLink()); + Assertions.assertEquals("szqujizdvoq", model.value().get(0).tags().get("tiby")); + Assertions.assertEquals("tp", model.value().get(0).properties().description()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlockListResult model = new RaiBlockListResult().withNextLink("lrri") + .withValue(Arrays.asList( + new RaiBlocklistInner().withTags(mapOf("tiby", "szqujizdvoq", "lgy", "wb")) + .withProperties(new RaiBlocklistProperties().withDescription("tp")), + new RaiBlocklistInner() + .withTags(mapOf("l", "sffgcvizqzd", "youpfgfbkj", "w", "ttsttktlahbqact", "bdyhgkfminsgowz")) + .withProperties(new RaiBlocklistProperties().withDescription("zukxitmmqtgqq")))); + model = BinaryData.fromObject(model).toObject(RaiBlockListResult.class); + Assertions.assertEquals("lrri", model.nextLink()); + Assertions.assertEquals("szqujizdvoq", model.value().get(0).tags().get("tiby")); + Assertions.assertEquals("tp", model.value().get(0).properties().description()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java new file mode 100644 index 0000000000000..acfa447d4e567 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistConfig; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlocklistConfigTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlocklistConfig model = BinaryData.fromString("{\"blocklistName\":\"shqvcimpev\",\"blocking\":true}") + .toObject(RaiBlocklistConfig.class); + Assertions.assertEquals("shqvcimpev", model.blocklistName()); + Assertions.assertEquals(true, model.blocking()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlocklistConfig model = new RaiBlocklistConfig().withBlocklistName("shqvcimpev").withBlocking(true); + model = BinaryData.fromObject(model).toObject(RaiBlocklistConfig.class); + Assertions.assertEquals("shqvcimpev", model.blocklistName()); + Assertions.assertEquals(true, model.blocking()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java new file mode 100644 index 0000000000000..e76bcbde6d8db --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlocklistInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlocklistInner model = BinaryData.fromString( + "{\"etag\":\"fvazivjlfrqttba\",\"tags\":{\"kqqfk\":\"atnwxyiopi\",\"dmligovibrxk\":\"vscx\"},\"properties\":{\"description\":\"oaz\"},\"id\":\"ruocbgo\",\"name\":\"rb\",\"type\":\"eoybfhjxakvvjgs\"}") + .toObject(RaiBlocklistInner.class); + Assertions.assertEquals("atnwxyiopi", model.tags().get("kqqfk")); + Assertions.assertEquals("oaz", model.properties().description()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlocklistInner model = new RaiBlocklistInner().withTags(mapOf("kqqfk", "atnwxyiopi", "dmligovibrxk", "vscx")) + .withProperties(new RaiBlocklistProperties().withDescription("oaz")); + model = BinaryData.fromObject(model).toObject(RaiBlocklistInner.class); + Assertions.assertEquals("atnwxyiopi", model.tags().get("kqqfk")); + Assertions.assertEquals("oaz", model.properties().description()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java new file mode 100644 index 0000000000000..12c236dbe42f8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlocklistItemBulkRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlocklistItemBulkRequest model + = BinaryData.fromString("{\"name\":\"dcgzul\",\"properties\":{\"pattern\":\"rqzz\",\"isRegex\":true}}") + .toObject(RaiBlocklistItemBulkRequest.class); + Assertions.assertEquals("dcgzul", model.name()); + Assertions.assertEquals("rqzz", model.properties().pattern()); + Assertions.assertEquals(true, model.properties().isRegex()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlocklistItemBulkRequest model = new RaiBlocklistItemBulkRequest().withName("dcgzul") + .withProperties(new RaiBlocklistItemProperties().withPattern("rqzz").withIsRegex(true)); + model = BinaryData.fromObject(model).toObject(RaiBlocklistItemBulkRequest.class); + Assertions.assertEquals("dcgzul", model.name()); + Assertions.assertEquals("rqzz", model.properties().pattern()); + Assertions.assertEquals(true, model.properties().isRegex()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java new file mode 100644 index 0000000000000..cdc0bc293bcf6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlocklistItemInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlocklistItemInner model = BinaryData.fromString( + "{\"etag\":\"xfzwi\",\"tags\":{\"yzsxjrkambtrne\":\"zjb\",\"eqvldspast\":\"vmnvu\"},\"properties\":{\"pattern\":\"kdmflvestmjlx\",\"isRegex\":true},\"id\":\"lozapeewchpxlk\",\"name\":\"wk\",\"type\":\"ziycslevufuztck\"}") + .toObject(RaiBlocklistItemInner.class); + Assertions.assertEquals("zjb", model.tags().get("yzsxjrkambtrne")); + Assertions.assertEquals("kdmflvestmjlx", model.properties().pattern()); + Assertions.assertEquals(true, model.properties().isRegex()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlocklistItemInner model + = new RaiBlocklistItemInner().withTags(mapOf("yzsxjrkambtrne", "zjb", "eqvldspast", "vmnvu")) + .withProperties(new RaiBlocklistItemProperties().withPattern("kdmflvestmjlx").withIsRegex(true)); + model = BinaryData.fromObject(model).toObject(RaiBlocklistItemInner.class); + Assertions.assertEquals("zjb", model.tags().get("yzsxjrkambtrne")); + Assertions.assertEquals("kdmflvestmjlx", model.properties().pattern()); + Assertions.assertEquals(true, model.properties().isRegex()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java new file mode 100644 index 0000000000000..a83eadcf592c6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlocklistItemPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlocklistItemProperties model + = BinaryData.fromString("{\"pattern\":\"h\",\"isRegex\":true}").toObject(RaiBlocklistItemProperties.class); + Assertions.assertEquals("h", model.pattern()); + Assertions.assertEquals(true, model.isRegex()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlocklistItemProperties model = new RaiBlocklistItemProperties().withPattern("h").withIsRegex(true); + model = BinaryData.fromObject(model).toObject(RaiBlocklistItemProperties.class); + Assertions.assertEquals("h", model.pattern()); + Assertions.assertEquals(true, model.isRegex()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java new file mode 100644 index 0000000000000..85126bbdf4a94 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklist; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistItemsBatchAddWithResponseMockTests { + @Test + public void testBatchAddWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"ogxsvtzarhz\",\"tags\":{\"oslpky\":\"sqktcmbjwz\",\"mqbmfuvqarwz\":\"tglwkzpgajsqjc\"},\"properties\":{\"description\":\"rebluimmbwxsf\"},\"id\":\"td\",\"name\":\"b\",\"type\":\"xekr\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiBlocklist response + = manager.raiBlocklistItems() + .batchAddWithResponse("kwwwnckn", "zdajlskzptjxu", "weucyrth", Arrays.asList( + new RaiBlocklistItemBulkRequest().withName("ehmcgcje") + .withProperties(new RaiBlocklistItemProperties().withPattern("ehokamvfej").withIsRegex(false)), + new RaiBlocklistItemBulkRequest().withName("tmbqdabzfivfok") + .withProperties(new RaiBlocklistItemProperties().withPattern("thhzagjfw").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("hgenuzejgvkveb") + .withProperties(new RaiBlocklistItemProperties().withPattern("zllrz").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("dqgmih") + .withProperties(new RaiBlocklistItemProperties().withPattern("mcqrhnxt").withIsRegex(true))), + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("sqktcmbjwz", response.tags().get("oslpky")); + Assertions.assertEquals("rebluimmbwxsf", response.properties().description()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java new file mode 100644 index 0000000000000..e003427d9457b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistItemsBatchDeleteWithResponseMockTests { + @Test + public void testBatchDeleteWithResponse() throws Exception { + String responseStr = "{}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 204, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + manager.raiBlocklistItems() + .batchDeleteWithResponse("okqkbudbtwao", "bavly", "taaknwfrkebsmhp", "dataujd", + com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java new file mode 100644 index 0000000000000..4a5fa996f1306 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItem; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistItemsCreateOrUpdateWithResponseMockTests { + @Test + public void testCreateOrUpdateWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"osrnawnvzmlnkoy\",\"tags\":{\"nudn\":\"vjabjqqaxuyvym\",\"pvksmit\":\"oabhjxwxqweuip\"},\"properties\":{\"pattern\":\"xtlt\",\"isRegex\":true},\"id\":\"rdpqgfhy\",\"name\":\"frakkldgrc\",\"type\":\"fcmfcn\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiBlocklistItem response = manager.raiBlocklistItems() + .define("mud") + .withExistingRaiBlocklist("gatolekscbctnan", "imwbzxpdcldpk", "wnsnlaimouxwks") + .withTags(mapOf("qqvyfscyrfw", "uswswjrkbqsjhb", "vogfuyzwvbh", "iv")) + .withProperties(new RaiBlocklistItemProperties().withPattern("byqecroo").withIsRegex(true)) + .create(); + + Assertions.assertEquals("vjabjqqaxuyvym", response.tags().get("nudn")); + Assertions.assertEquals("xtlt", response.properties().pattern()); + Assertions.assertEquals(true, response.properties().isRegex()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..670946b3c1b32 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItem; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistItemsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"crdcueljti\",\"tags\":{\"q\":\"m\",\"yspthzod\":\"yarvsxzqbglcjk\",\"jtgblios\":\"btl\",\"qvjcteoe\":\"kfmkmfdjxyxgbk\"},\"properties\":{\"pattern\":\"slskkz\",\"isRegex\":true},\"id\":\"jnzdpvocojhpcna\",\"name\":\"xzfsnggytexvzilm\",\"type\":\"iv\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiBlocklistItem response = manager.raiBlocklistItems() + .getWithResponse("yeyng", "g", "rquv", "ygg", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("m", response.tags().get("q")); + Assertions.assertEquals("slskkz", response.properties().pattern()); + Assertions.assertEquals(true, response.properties().isRegex()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java new file mode 100644 index 0000000000000..9a6b6a3fc560b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItem; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistItemsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"etag\":\"jqf\",\"tags\":{\"hwu\":\"eexpgeumi\",\"dbzsx\":\"trdexyionofnin\",\"bzbcyksiv\":\"wqqrsmpcbbprtuga\",\"rftsjcwjjxs\":\"fogdrtbfcm\"},\"properties\":{\"pattern\":\"awvifdxke\",\"isRegex\":false},\"id\":\"hocjxwkloozrv\",\"name\":\"xvcmufunlcp\",\"type\":\"xvi\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response + = manager.raiBlocklistItems().list("wtthaokgksk", "i", "bs", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("eexpgeumi", response.iterator().next().tags().get("hwu")); + Assertions.assertEquals("awvifdxke", response.iterator().next().properties().pattern()); + Assertions.assertEquals(false, response.iterator().next().properties().isRegex()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java new file mode 100644 index 0000000000000..1a6d24eefd44e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; +import org.junit.jupiter.api.Assertions; + +public final class RaiBlocklistPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiBlocklistProperties model + = BinaryData.fromString("{\"description\":\"r\"}").toObject(RaiBlocklistProperties.class); + Assertions.assertEquals("r", model.description()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiBlocklistProperties model = new RaiBlocklistProperties().withDescription("r"); + model = BinaryData.fromObject(model).toObject(RaiBlocklistProperties.class); + Assertions.assertEquals("r", model.description()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java new file mode 100644 index 0000000000000..014aa1d8aa94e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklist; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistsCreateOrUpdateWithResponseMockTests { + @Test + public void testCreateOrUpdateWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"hctmjtsgh\",\"tags\":{\"mpypefcpczshnuq\":\"bcpzarpzeqacdldt\"},\"properties\":{\"description\":\"izupfkhu\"},\"id\":\"tu\",\"name\":\"zx\",\"type\":\"mtvtvegwqiukvzwy\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiBlocklist response = manager.raiBlocklists() + .define("cvumepjpbi") + .withExistingAccount("rceqnkbrupob", "hdmljz") + .withTags(mapOf("czuod", "rccjclykcgxvrpjl")) + .withProperties(new RaiBlocklistProperties().withDescription("u")) + .create(); + + Assertions.assertEquals("bcpzarpzeqacdldt", response.tags().get("mpypefcpczshnuq")); + Assertions.assertEquals("izupfkhu", response.properties().description()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..ebffc7fb6bdc2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklist; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"krmukmyjmkxett\",\"tags\":{\"dnqtoqxjhqx\":\"ojfkq\",\"htkbtnq\":\"s\",\"mbiipsnawwlqk\":\"rngl\"},\"properties\":{\"description\":\"hhl\"},\"id\":\"xricctkwmuqq\",\"name\":\"ajxeiygle\",\"type\":\"rwvaexhdc\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiBlocklist response = manager.raiBlocklists() + .getWithResponse("txtjrrlkmds", "jhhxdlajf", "xcxscvslxlh", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("ojfkq", response.tags().get("dnqtoqxjhqx")); + Assertions.assertEquals("hhl", response.properties().description()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java new file mode 100644 index 0000000000000..77c7a55e5e66e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklist; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiBlocklistsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"etag\":\"mbpjptnvwjh\",\"tags\":{\"btpakftngatw\":\"dqpx\",\"pycvjqdvdwkqpldr\":\"ykyutrymdwmfj\",\"taoutnpdct\":\"efgnaavuagnt\",\"yeuyldph\":\"hspfefyihd\"},\"properties\":{\"description\":\"bkcgsuthhllnm\"},\"id\":\"y\",\"name\":\"efxexlf\",\"type\":\"i\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response + = manager.raiBlocklists().list("ev", "wmseharxifvqn", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("dqpx", response.iterator().next().tags().get("btpakftngatw")); + Assertions.assertEquals("bkcgsuthhllnm", response.iterator().next().properties().description()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java new file mode 100644 index 0000000000000..c90fac625c684 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import org.junit.jupiter.api.Assertions; + +public final class RaiContentFilterInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiContentFilterInner model = BinaryData.fromString( + "{\"properties\":{\"name\":\"yavluwmncstt\",\"isMultiLevelFilter\":false,\"source\":\"Completion\"},\"id\":\"vpo\",\"name\":\"krsgsgb\",\"type\":\"huzqgn\"}") + .toObject(RaiContentFilterInner.class); + Assertions.assertEquals("yavluwmncstt", model.properties().name()); + Assertions.assertEquals(false, model.properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.properties().source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiContentFilterInner model + = new RaiContentFilterInner().withProperties(new RaiContentFilterProperties().withName("yavluwmncstt") + .withIsMultiLevelFilter(false) + .withSource(RaiPolicyContentSource.COMPLETION)); + model = BinaryData.fromObject(model).toObject(RaiContentFilterInner.class); + Assertions.assertEquals("yavluwmncstt", model.properties().name()); + Assertions.assertEquals(false, model.properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.properties().source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java new file mode 100644 index 0000000000000..700a21ba429ea --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterListResult; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class RaiContentFilterListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiContentFilterListResult model = BinaryData.fromString( + "{\"nextLink\":\"pglydz\",\"value\":[{\"properties\":{\"name\":\"eevt\",\"isMultiLevelFilter\":false,\"source\":\"Completion\"},\"id\":\"utnwytpzdmovzvf\",\"name\":\"aawzqadfl\",\"type\":\"z\"},{\"properties\":{\"name\":\"glae\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"icokpv\",\"name\":\"mlqtmldgxob\",\"type\":\"irclnpk\"},{\"properties\":{\"name\":\"yzriykhy\",\"isMultiLevelFilter\":true,\"source\":\"Prompt\"},\"id\":\"lboxqvkjl\",\"name\":\"xhom\",\"type\":\"ynhdwdigum\"},{\"properties\":{\"name\":\"aauzzptjazysd\",\"isMultiLevelFilter\":false,\"source\":\"Completion\"},\"id\":\"wva\",\"name\":\"qyuvvfonkp\",\"type\":\"hqyikvy\"}]}") + .toObject(RaiContentFilterListResult.class); + Assertions.assertEquals("pglydz", model.nextLink()); + Assertions.assertEquals("eevt", model.value().get(0).properties().name()); + Assertions.assertEquals(false, model.value().get(0).properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.value().get(0).properties().source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiContentFilterListResult model = new RaiContentFilterListResult().withNextLink("pglydz") + .withValue(Arrays.asList( + new RaiContentFilterInner().withProperties(new RaiContentFilterProperties().withName("eevt") + .withIsMultiLevelFilter(false) + .withSource(RaiPolicyContentSource.COMPLETION)), + new RaiContentFilterInner().withProperties(new RaiContentFilterProperties().withName("glae") + .withIsMultiLevelFilter(false) + .withSource(RaiPolicyContentSource.PROMPT)), + new RaiContentFilterInner().withProperties(new RaiContentFilterProperties().withName("yzriykhy") + .withIsMultiLevelFilter(true) + .withSource(RaiPolicyContentSource.PROMPT)), + new RaiContentFilterInner().withProperties(new RaiContentFilterProperties().withName("aauzzptjazysd") + .withIsMultiLevelFilter(false) + .withSource(RaiPolicyContentSource.COMPLETION)))); + model = BinaryData.fromObject(model).toObject(RaiContentFilterListResult.class); + Assertions.assertEquals("pglydz", model.nextLink()); + Assertions.assertEquals("eevt", model.value().get(0).properties().name()); + Assertions.assertEquals(false, model.value().get(0).properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.value().get(0).properties().source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java new file mode 100644 index 0000000000000..8e371c58071f9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import org.junit.jupiter.api.Assertions; + +public final class RaiContentFilterPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiContentFilterProperties model + = BinaryData.fromString("{\"name\":\"gkynscliqh\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"}") + .toObject(RaiContentFilterProperties.class); + Assertions.assertEquals("gkynscliqh", model.name()); + Assertions.assertEquals(false, model.isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiContentFilterProperties model = new RaiContentFilterProperties().withName("gkynscliqh") + .withIsMultiLevelFilter(false) + .withSource(RaiPolicyContentSource.PROMPT); + model = BinaryData.fromObject(model).toObject(RaiContentFilterProperties.class); + Assertions.assertEquals("gkynscliqh", model.name()); + Assertions.assertEquals(false, model.isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java new file mode 100644 index 0000000000000..553eb9270291c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiContentFiltersGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"name\":\"zowpuohdkcprgukx\",\"isMultiLevelFilter\":true,\"source\":\"Prompt\"},\"id\":\"chlutixmqru\",\"name\":\"jizcbfzmcrunfhiu\",\"type\":\"nmfbc\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiContentFilter response = manager.raiContentFilters() + .getWithResponse("hfupetasvvoqsbpk", "lanfkgxsya", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("zowpuohdkcprgukx", response.properties().name()); + Assertions.assertEquals(true, response.properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java new file mode 100644 index 0000000000000..e56087dc03f1b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiContentFiltersListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"name\":\"nzqgxxgfbbmtlpq\",\"isMultiLevelFilter\":false,\"source\":\"Completion\"},\"id\":\"iprnzcalincry\",\"name\":\"xzxaqzibmqimiym\",\"type\":\"ruqg\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response + = manager.raiContentFilters().list("jajqmatxjt", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("nzqgxxgfbbmtlpq", response.iterator().next().properties().name()); + Assertions.assertEquals(false, response.iterator().next().properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, response.iterator().next().properties().source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiMonitorConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiMonitorConfigTests.java new file mode 100644 index 0000000000000..d83176ff85c63 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiMonitorConfigTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.RaiMonitorConfig; +import org.junit.jupiter.api.Assertions; + +public final class RaiMonitorConfigTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiMonitorConfig model + = BinaryData.fromString("{\"adxStorageResourceId\":\"xgjvtbv\",\"identityClientId\":\"sszdnru\"}") + .toObject(RaiMonitorConfig.class); + Assertions.assertEquals("xgjvtbv", model.adxStorageResourceId()); + Assertions.assertEquals("sszdnru", model.identityClientId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiMonitorConfig model + = new RaiMonitorConfig().withAdxStorageResourceId("xgjvtbv").withIdentityClientId("sszdnru"); + model = BinaryData.fromObject(model).toObject(RaiMonitorConfig.class); + Assertions.assertEquals("xgjvtbv", model.adxStorageResourceId()); + Assertions.assertEquals("sszdnru", model.identityClientId()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java new file mode 100644 index 0000000000000..3ab1b12d5781e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiPoliciesCreateOrUpdateWithResponseMockTests { + @Test + public void testCreateOrUpdateWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"gl\",\"tags\":{\"ryc\":\"ahvmywhsbrc\"},\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"aqaj\",\"contentFilters\":[{\"name\":\"zptdmkrrbh\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\"},{\"name\":\"ybpmf\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\"}],\"customBlocklists\":[{\"source\":\"Prompt\",\"blocklistName\":\"ifkdschlzvf\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"jwg\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"kgf\",\"blocking\":true}]},\"id\":\"ogmhmjpj\",\"name\":\"cdf\",\"type\":\"dqwty\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiPolicy response = manager.raiPolicies() + .define("ajsvk") + .withExistingAccount("rexkxbhxvucn", "lgmnhjevdyzn") + .withTags(mapOf("onqqlmgn", "qfhefkwabsol", "exhvuqbozoolz", "qxsjxte", "nx", "ocarkuzlbcnndt")) + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.DEFERRED) + .withBasePolicyName("hd") + .withContentFilters(Arrays.asList(new RaiPolicyContentFilter().withName("ckze") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("abjkdtfohfao") + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("rsiwdyjqur") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new CustomBlocklistConfig().withBlocklistName("ueekcsue") + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("cbcbgydlqidy") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT)))) + .create(); + + Assertions.assertEquals("ahvmywhsbrc", response.tags().get("ryc")); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.properties().mode()); + Assertions.assertEquals("aqaj", response.properties().basePolicyName()); + Assertions.assertEquals("zptdmkrrbh", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(false, response.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.MEDIUM, response.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(false, response.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + response.properties().contentFilters().get(0).source()); + Assertions.assertEquals("ifkdschlzvf", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(true, response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, + response.properties().customBlocklists().get(0).source()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java new file mode 100644 index 0000000000000..21d3d0d6fef21 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiPoliciesGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"etag\":\"srhkhgsnxuwwkpph\",\"tags\":{\"wzacnmw\":\"bzxlbzxomeikjc\",\"oyfpuq\":\"fsuqtaazyqbxy\"},\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"hdjzqdcadwvpsoz\",\"contentFilters\":[{\"name\":\"jriyb\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Completion\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"kgvfnmxaursqf\",\"blocking\":false}]},\"id\":\"tyibuyvpirfqjpnq\",\"name\":\"oowsbe\",\"type\":\"e\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + RaiPolicy response = manager.raiPolicies() + .getWithResponse("uiyqvldaswvppi", "qqzlgcndhz", "rr", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("bzxlbzxomeikjc", response.tags().get("wzacnmw")); + Assertions.assertEquals(RaiPolicyMode.DEFERRED, response.properties().mode()); + Assertions.assertEquals("hdjzqdcadwvpsoz", response.properties().basePolicyName()); + Assertions.assertEquals("jriyb", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(false, response.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.MEDIUM, response.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(true, response.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + response.properties().contentFilters().get(0).source()); + Assertions.assertEquals("kgvfnmxaursqf", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(false, response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + response.properties().customBlocklists().get(0).source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java new file mode 100644 index 0000000000000..0e83063f70644 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.AzureEnvironment; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RaiPoliciesListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"etag\":\"b\",\"tags\":{\"gv\":\"clkfkee\",\"l\":\"pemtuoqu\",\"nyjpylxdbfv\":\"egqavnigflqqb\"},\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"baevwjcnkottl\",\"contentFilters\":[{\"name\":\"ajmailfemjjza\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Prompt\"},{\"name\":\"xbdmvrscmqernd\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Prompt\"},{\"name\":\"nnxrkad\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Prompt\"},{\"name\":\"iripfohyk\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Completion\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"njizb\",\"blocking\":false},{\"source\":\"Prompt\",\"blocklistName\":\"mrvz\",\"blocking\":true},{\"source\":\"Completion\",\"blocklistName\":\"rziuctixgbdsuif\",\"blocking\":false},{\"source\":\"Completion\",\"blocklistName\":\"pezkis\",\"blocking\":false}]},\"id\":\"mdghsyparyb\",\"name\":\"ufptb\",\"type\":\"czjnc\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + CognitiveServicesManager manager = CognitiveServicesManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureEnvironment.AZURE)); + + PagedIterable response + = manager.raiPolicies().list("shxgonoy", "fq", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("clkfkee", response.iterator().next().tags().get("gv")); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.iterator().next().properties().mode()); + Assertions.assertEquals("baevwjcnkottl", response.iterator().next().properties().basePolicyName()); + Assertions.assertEquals("ajmailfemjjza", + response.iterator().next().properties().contentFilters().get(0).name()); + Assertions.assertEquals(true, response.iterator().next().properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.HIGH, + response.iterator().next().properties().contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(true, response.iterator().next().properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, + response.iterator().next().properties().contentFilters().get(0).source()); + Assertions.assertEquals("njizb", + response.iterator().next().properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(false, response.iterator().next().properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + response.iterator().next().properties().customBlocklists().get(0).source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java new file mode 100644 index 0000000000000..b23dd7060708b --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import org.junit.jupiter.api.Assertions; + +public final class RaiPolicyContentFilterTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiPolicyContentFilter model = BinaryData.fromString( + "{\"name\":\"yyysfgdotcubi\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\"}") + .toObject(RaiPolicyContentFilter.class); + Assertions.assertEquals("yyysfgdotcubi", model.name()); + Assertions.assertEquals(true, model.enabled()); + Assertions.assertEquals(ContentLevel.MEDIUM, model.severityThreshold()); + Assertions.assertEquals(false, model.blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiPolicyContentFilter model = new RaiPolicyContentFilter().withName("yyysfgdotcubi") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION); + model = BinaryData.fromObject(model).toObject(RaiPolicyContentFilter.class); + Assertions.assertEquals("yyysfgdotcubi", model.name()); + Assertions.assertEquals(true, model.enabled()); + Assertions.assertEquals(ContentLevel.MEDIUM, model.severityThreshold()); + Assertions.assertEquals(false, model.blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java new file mode 100644 index 0000000000000..51f39ca3f52f7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RaiPolicyInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiPolicyInner model = BinaryData.fromString( + "{\"etag\":\"wagohbuffk\",\"tags\":{\"tdrjfutacoebj\":\"emvvhm\"},\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"nmwcpmgu\",\"contentFilters\":[{\"name\":\"aufactkahzovajjz\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Completion\"},{\"name\":\"kulfg\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Prompt\"},{\"name\":\"nrdsutujbazpjuoh\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Prompt\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"wpklvxw\",\"blocking\":false},{\"source\":\"Prompt\",\"blocklistName\":\"gpqch\",\"blocking\":false}]},\"id\":\"epn\",\"name\":\"bjcrxgibbdaxco\",\"type\":\"fozauorsuk\"}") + .toObject(RaiPolicyInner.class); + Assertions.assertEquals("emvvhm", model.tags().get("tdrjfutacoebj")); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.properties().mode()); + Assertions.assertEquals("nmwcpmgu", model.properties().basePolicyName()); + Assertions.assertEquals("aufactkahzovajjz", model.properties().contentFilters().get(0).name()); + Assertions.assertEquals(true, model.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.HIGH, model.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(false, model.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals("wpklvxw", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(false, model.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + model.properties().customBlocklists().get(0).source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiPolicyInner model = new RaiPolicyInner().withTags(mapOf("tdrjfutacoebj", "emvvhm")) + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.BLOCKING) + .withBasePolicyName("nmwcpmgu") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("aufactkahzovajjz") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("kulfg") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("nrdsutujbazpjuoh") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("wpklvxw") + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("gpqch") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT)))); + model = BinaryData.fromObject(model).toObject(RaiPolicyInner.class); + Assertions.assertEquals("emvvhm", model.tags().get("tdrjfutacoebj")); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.properties().mode()); + Assertions.assertEquals("nmwcpmgu", model.properties().basePolicyName()); + Assertions.assertEquals("aufactkahzovajjz", model.properties().contentFilters().get(0).name()); + Assertions.assertEquals(true, model.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.HIGH, model.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(false, model.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals("wpklvxw", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(false, model.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + model.properties().customBlocklists().get(0).source()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java new file mode 100644 index 0000000000000..19c3028d60e07 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner; +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyListResult; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class RaiPolicyListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiPolicyListResult model = BinaryData.fromString( + "{\"nextLink\":\"gx\",\"value\":[{\"etag\":\"pyklyhpluodpvru\",\"tags\":{\"xeclzedqbcvhzlhp\":\"gzibthostgktstv\"},\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"wwqfbumlkxtrqj\",\"contentFilters\":[{\"name\":\"mbtxhwgf\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Completion\"},{\"name\":\"brhu\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Prompt\"},{\"name\":\"okkqfqjbvleo\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\"},{\"name\":\"fa\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Prompt\"}],\"customBlocklists\":[{\"source\":\"Prompt\",\"blocklistName\":\"yjkqabqgzslesjcb\",\"blocking\":true}]},\"id\":\"n\",\"name\":\"tiewdj\",\"type\":\"vbquwr\"}]}") + .toObject(RaiPolicyListResult.class); + Assertions.assertEquals("gx", model.nextLink()); + Assertions.assertEquals("gzibthostgktstv", model.value().get(0).tags().get("xeclzedqbcvhzlhp")); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.value().get(0).properties().mode()); + Assertions.assertEquals("wwqfbumlkxtrqj", model.value().get(0).properties().basePolicyName()); + Assertions.assertEquals("mbtxhwgf", model.value().get(0).properties().contentFilters().get(0).name()); + Assertions.assertEquals(true, model.value().get(0).properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.MEDIUM, + model.value().get(0).properties().contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(true, model.value().get(0).properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + model.value().get(0).properties().contentFilters().get(0).source()); + Assertions.assertEquals("yjkqabqgzslesjcb", + model.value().get(0).properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(true, model.value().get(0).properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, + model.value().get(0).properties().customBlocklists().get(0).source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiPolicyListResult model = new RaiPolicyListResult().withNextLink("gx") + .withValue(Arrays.asList(new RaiPolicyInner().withTags(mapOf("xeclzedqbcvhzlhp", "gzibthostgktstv")) + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) + .withBasePolicyName("wwqfbumlkxtrqj") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("mbtxhwgf") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("brhu") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("okkqfqjbvleo") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT), + new RaiPolicyContentFilter().withName("fa") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT))) + .withCustomBlocklists( + Arrays.asList(new CustomBlocklistConfig().withBlocklistName("yjkqabqgzslesjcb") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT)))))); + model = BinaryData.fromObject(model).toObject(RaiPolicyListResult.class); + Assertions.assertEquals("gx", model.nextLink()); + Assertions.assertEquals("gzibthostgktstv", model.value().get(0).tags().get("xeclzedqbcvhzlhp")); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.value().get(0).properties().mode()); + Assertions.assertEquals("wwqfbumlkxtrqj", model.value().get(0).properties().basePolicyName()); + Assertions.assertEquals("mbtxhwgf", model.value().get(0).properties().contentFilters().get(0).name()); + Assertions.assertEquals(true, model.value().get(0).properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.MEDIUM, + model.value().get(0).properties().contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(true, model.value().get(0).properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + model.value().get(0).properties().contentFilters().get(0).source()); + Assertions.assertEquals("yjkqabqgzslesjcb", + model.value().get(0).properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(true, model.value().get(0).properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, + model.value().get(0).properties().customBlocklists().get(0).source()); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java new file mode 100644 index 0000000000000..80df77e4a7cd0 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; +import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; +import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class RaiPolicyPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RaiPolicyProperties model = BinaryData.fromString( + "{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"lhlv\",\"contentFilters\":[{\"name\":\"pzlrphw\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Completion\"},{\"name\":\"dunvmnnrwrbiorkt\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\"}],\"customBlocklists\":[{\"source\":\"Prompt\",\"blocklistName\":\"ivfomiloxgg\",\"blocking\":false},{\"source\":\"Prompt\",\"blocklistName\":\"dieuzaofj\",\"blocking\":false}]}") + .toObject(RaiPolicyProperties.class); + Assertions.assertEquals(RaiPolicyMode.DEFERRED, model.mode()); + Assertions.assertEquals("lhlv", model.basePolicyName()); + Assertions.assertEquals("pzlrphw", model.contentFilters().get(0).name()); + Assertions.assertEquals(true, model.contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(true, model.contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.contentFilters().get(0).source()); + Assertions.assertEquals("ivfomiloxgg", model.customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(false, model.customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.customBlocklists().get(0).source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + RaiPolicyProperties model = new RaiPolicyProperties().withMode(RaiPolicyMode.DEFERRED) + .withBasePolicyName("lhlv") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("pzlrphw") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION), + new RaiPolicyContentFilter().withName("dunvmnnrwrbiorkt") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("ivfomiloxgg") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT), + new CustomBlocklistConfig().withBlocklistName("dieuzaofj") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT))); + model = BinaryData.fromObject(model).toObject(RaiPolicyProperties.class); + Assertions.assertEquals(RaiPolicyMode.DEFERRED, model.mode()); + Assertions.assertEquals("lhlv", model.basePolicyName()); + Assertions.assertEquals("pzlrphw", model.contentFilters().get(0).name()); + Assertions.assertEquals(true, model.contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); + Assertions.assertEquals(true, model.contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.contentFilters().get(0).source()); + Assertions.assertEquals("ivfomiloxgg", model.customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(false, model.customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.customBlocklists().get(0).source()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java index 8ce1c2d9d9d22..d210ef5a9b816 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ResourceProvidersCheckDomainAvailabilityWithResponseMockTests @Test public void testCheckDomainAvailabilityWithResponse() throws Exception { String responseStr - = "{\"isSubdomainAvailable\":false,\"reason\":\"swtwkozzwc\",\"subdomainName\":\"kb\",\"type\":\"pfajnjwltlwtjj\",\"kind\":\"ktalhsnvkcdmxz\"}"; + = "{\"isSubdomainAvailable\":true,\"reason\":\"xsi\",\"subdomainName\":\"etgbebjfulb\",\"type\":\"ichdlpn\",\"kind\":\"ubntnbatzviqsow\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,15 @@ public void testCheckDomainAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); DomainAvailability response = manager.resourceProviders() - .checkDomainAvailabilityWithResponse( - new CheckDomainAvailabilityParameter().withSubdomainName("toqbeitpkxztmoob") - .withType("lftidgfcwqmpim") - .withKind("xzhemjyh"), - com.azure.core.util.Context.NONE) + .checkDomainAvailabilityWithResponse(new CheckDomainAvailabilityParameter().withSubdomainName("refqy") + .withType("qotoihiqakydiwfb") + .withKind("wpzdqtvhcspo"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(false, response.isSubdomainAvailable()); - Assertions.assertEquals("swtwkozzwc", response.reason()); - Assertions.assertEquals("kb", response.subdomainName()); - Assertions.assertEquals("pfajnjwltlwtjj", response.type()); - Assertions.assertEquals("ktalhsnvkcdmxz", response.kind()); + Assertions.assertEquals(true, response.isSubdomainAvailable()); + Assertions.assertEquals("xsi", response.reason()); + Assertions.assertEquals("etgbebjfulb", response.subdomainName()); + Assertions.assertEquals("ichdlpn", response.type()); + Assertions.assertEquals("ubntnbatzviqsow", response.kind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java index 302458e3ab837..b5fbfedeadd10 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class ResourceProvidersCheckSkuAvailabilityWithResponseMockTests { @Test public void testCheckSkuAvailabilityWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"kind\":\"petogebjox\",\"type\":\"hvnh\",\"skuName\":\"brqnkkzjcjb\",\"skuAvailable\":true,\"reason\":\"ehvvib\",\"message\":\"jj\"}]}"; + = "{\"value\":[{\"kind\":\"tmhqykiz\",\"type\":\"ksaoafcluqvox\",\"skuName\":\"cjimryvwgcwwpbmz\",\"skuAvailable\":false,\"reason\":\"ydsx\",\"message\":\"fo\"},{\"kind\":\"cbvopwndyqleallk\",\"type\":\"tkhlowkxxpvbr\",\"skuName\":\"jmzsyzfh\",\"skuAvailable\":true,\"reason\":\"ikcyyc\",\"message\":\"nsjlpjrtws\"},{\"kind\":\"vv\",\"type\":\"c\",\"skuName\":\"vtrrmhwrbfdpyflu\",\"skuAvailable\":true,\"reason\":\"glrocuy\",\"message\":\"whhmemhooc\"},{\"kind\":\"tnpqmemczjk\",\"type\":\"ykyujxsg\",\"skuName\":\"srrryejylmbkzu\",\"skuAvailable\":true,\"reason\":\"rfih\",\"message\":\"jewlpxuzzjg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,19 @@ public void testCheckSkuAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); SkuAvailabilityListResult response = manager.resourceProviders() - .checkSkuAvailabilityWithResponse("u", - new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("gqibrtalmetttw")) - .withKind("dslqxihhrmooizqs") - .withType("ypxiutcxap"), + .checkSkuAvailabilityWithResponse("qhnlbqnbld", + new CheckSkuAvailabilityParameter() + .withSkus(Arrays.asList("aclgschorimk", "srrm", "ucsofldpuviyf", "aabeolhbhlvbmxuq")) + .withKind("bsxtkcudfbsfarfs") + .withType("owlkjxnqpv"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("petogebjox", response.value().get(0).kind()); - Assertions.assertEquals("hvnh", response.value().get(0).type()); - Assertions.assertEquals("brqnkkzjcjb", response.value().get(0).skuName()); - Assertions.assertEquals(true, response.value().get(0).skuAvailable()); - Assertions.assertEquals("ehvvib", response.value().get(0).reason()); - Assertions.assertEquals("jj", response.value().get(0).message()); + Assertions.assertEquals("tmhqykiz", response.value().get(0).kind()); + Assertions.assertEquals("ksaoafcluqvox", response.value().get(0).type()); + Assertions.assertEquals("cjimryvwgcwwpbmz", response.value().get(0).skuName()); + Assertions.assertEquals(false, response.value().get(0).skuAvailable()); + Assertions.assertEquals("ydsx", response.value().get(0).reason()); + Assertions.assertEquals("fo", response.value().get(0).message()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityListResultInnerTests.java index 2f0e6c95cacbf..d2394b60e74b1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityListResultInnerTests.java @@ -14,37 +14,49 @@ public final class SkuAvailabilityListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SkuAvailabilityListResultInner model = BinaryData.fromString( - "{\"value\":[{\"kind\":\"x\",\"type\":\"zxbzpfzabglc\",\"skuName\":\"xwtctyqiklbbovpl\",\"skuAvailable\":false,\"reason\":\"vgyuguos\",\"message\":\"kfssxqukkf\"},{\"kind\":\"gmgsxnkjzkde\",\"type\":\"pvlopwiyighxpkd\",\"skuName\":\"baiuebbaumny\",\"skuAvailable\":false,\"reason\":\"deoj\",\"message\":\"bckhsmtxpsi\"}]}") + "{\"value\":[{\"kind\":\"rpabg\",\"type\":\"psbjta\",\"skuName\":\"ugxywpmueef\",\"skuAvailable\":false,\"reason\":\"qkqujidsu\",\"message\":\"nobglaocq\"},{\"kind\":\"ccm\",\"type\":\"udxytlmoyrx\",\"skuName\":\"fudwpznt\",\"skuAvailable\":false,\"reason\":\"hl\",\"message\":\"jbhckfrlhr\"},{\"kind\":\"bkyvp\",\"type\":\"anuzbpzkafkuw\",\"skuName\":\"rnwb\",\"skuAvailable\":false,\"reason\":\"seyvj\",\"message\":\"rts\"},{\"kind\":\"spkdee\",\"type\":\"ofmxagkvtmelmqkr\",\"skuName\":\"hvljuahaquh\",\"skuAvailable\":false,\"reason\":\"duala\",\"message\":\"qpv\"}]}") .toObject(SkuAvailabilityListResultInner.class); - Assertions.assertEquals("x", model.value().get(0).kind()); - Assertions.assertEquals("zxbzpfzabglc", model.value().get(0).type()); - Assertions.assertEquals("xwtctyqiklbbovpl", model.value().get(0).skuName()); + Assertions.assertEquals("rpabg", model.value().get(0).kind()); + Assertions.assertEquals("psbjta", model.value().get(0).type()); + Assertions.assertEquals("ugxywpmueef", model.value().get(0).skuName()); Assertions.assertEquals(false, model.value().get(0).skuAvailable()); - Assertions.assertEquals("vgyuguos", model.value().get(0).reason()); - Assertions.assertEquals("kfssxqukkf", model.value().get(0).message()); + Assertions.assertEquals("qkqujidsu", model.value().get(0).reason()); + Assertions.assertEquals("nobglaocq", model.value().get(0).message()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SkuAvailabilityListResultInner model = new SkuAvailabilityListResultInner().withValue(Arrays.asList( - new SkuAvailability().withKind("x") - .withType("zxbzpfzabglc") - .withSkuName("xwtctyqiklbbovpl") + new SkuAvailability().withKind("rpabg") + .withType("psbjta") + .withSkuName("ugxywpmueef") .withSkuAvailable(false) - .withReason("vgyuguos") - .withMessage("kfssxqukkf"), - new SkuAvailability().withKind("gmgsxnkjzkde") - .withType("pvlopwiyighxpkd") - .withSkuName("baiuebbaumny") + .withReason("qkqujidsu") + .withMessage("nobglaocq"), + new SkuAvailability().withKind("ccm") + .withType("udxytlmoyrx") + .withSkuName("fudwpznt") .withSkuAvailable(false) - .withReason("deoj") - .withMessage("bckhsmtxpsi"))); + .withReason("hl") + .withMessage("jbhckfrlhr"), + new SkuAvailability().withKind("bkyvp") + .withType("anuzbpzkafkuw") + .withSkuName("rnwb") + .withSkuAvailable(false) + .withReason("seyvj") + .withMessage("rts"), + new SkuAvailability().withKind("spkdee") + .withType("ofmxagkvtmelmqkr") + .withSkuName("hvljuahaquh") + .withSkuAvailable(false) + .withReason("duala") + .withMessage("qpv"))); model = BinaryData.fromObject(model).toObject(SkuAvailabilityListResultInner.class); - Assertions.assertEquals("x", model.value().get(0).kind()); - Assertions.assertEquals("zxbzpfzabglc", model.value().get(0).type()); - Assertions.assertEquals("xwtctyqiklbbovpl", model.value().get(0).skuName()); + Assertions.assertEquals("rpabg", model.value().get(0).kind()); + Assertions.assertEquals("psbjta", model.value().get(0).type()); + Assertions.assertEquals("ugxywpmueef", model.value().get(0).skuName()); Assertions.assertEquals(false, model.value().get(0).skuAvailable()); - Assertions.assertEquals("vgyuguos", model.value().get(0).reason()); - Assertions.assertEquals("kfssxqukkf", model.value().get(0).message()); + Assertions.assertEquals("qkqujidsu", model.value().get(0).reason()); + Assertions.assertEquals("nobglaocq", model.value().get(0).message()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityTests.java index f4f7f55cf8420..10d2f0a952bc2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuAvailabilityTests.java @@ -12,30 +12,30 @@ public final class SkuAvailabilityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SkuAvailability model = BinaryData.fromString( - "{\"kind\":\"tfhvpesapskrdqmh\",\"type\":\"dhtldwkyz\",\"skuName\":\"utknc\",\"skuAvailable\":true,\"reason\":\"svlxotogtwrup\",\"message\":\"xvnmicykvceov\"}") + "{\"kind\":\"dmwsrcrgvxpvgomz\",\"type\":\"misgwbnb\",\"skuName\":\"ldawkzbaliourqha\",\"skuAvailable\":true,\"reason\":\"ashsfwxos\",\"message\":\"z\"}") .toObject(SkuAvailability.class); - Assertions.assertEquals("tfhvpesapskrdqmh", model.kind()); - Assertions.assertEquals("dhtldwkyz", model.type()); - Assertions.assertEquals("utknc", model.skuName()); + Assertions.assertEquals("dmwsrcrgvxpvgomz", model.kind()); + Assertions.assertEquals("misgwbnb", model.type()); + Assertions.assertEquals("ldawkzbaliourqha", model.skuName()); Assertions.assertEquals(true, model.skuAvailable()); - Assertions.assertEquals("svlxotogtwrup", model.reason()); - Assertions.assertEquals("xvnmicykvceov", model.message()); + Assertions.assertEquals("ashsfwxos", model.reason()); + Assertions.assertEquals("z", model.message()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SkuAvailability model = new SkuAvailability().withKind("tfhvpesapskrdqmh") - .withType("dhtldwkyz") - .withSkuName("utknc") + SkuAvailability model = new SkuAvailability().withKind("dmwsrcrgvxpvgomz") + .withType("misgwbnb") + .withSkuName("ldawkzbaliourqha") .withSkuAvailable(true) - .withReason("svlxotogtwrup") - .withMessage("xvnmicykvceov"); + .withReason("ashsfwxos") + .withMessage("z"); model = BinaryData.fromObject(model).toObject(SkuAvailability.class); - Assertions.assertEquals("tfhvpesapskrdqmh", model.kind()); - Assertions.assertEquals("dhtldwkyz", model.type()); - Assertions.assertEquals("utknc", model.skuName()); + Assertions.assertEquals("dmwsrcrgvxpvgomz", model.kind()); + Assertions.assertEquals("misgwbnb", model.type()); + Assertions.assertEquals("ldawkzbaliourqha", model.skuName()); Assertions.assertEquals(true, model.skuAvailable()); - Assertions.assertEquals("svlxotogtwrup", model.reason()); - Assertions.assertEquals("xvnmicykvceov", model.message()); + Assertions.assertEquals("ashsfwxos", model.reason()); + Assertions.assertEquals("z", model.message()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java new file mode 100644 index 0000000000000..0f942a16a4689 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner; +import com.azure.resourcemanager.cognitiveservices.models.CapacityConfig; +import com.azure.resourcemanager.cognitiveservices.models.Sku; +import com.azure.resourcemanager.cognitiveservices.models.SkuTier; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class SkuResourceInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SkuResourceInner model = BinaryData.fromString( + "{\"resourceType\":\"deibqip\",\"sku\":{\"name\":\"ghvxndzwmkrefa\",\"tier\":\"Free\",\"size\":\"rwkq\",\"family\":\"hgbijt\",\"capacity\":1921447285},\"capacity\":{\"minimum\":394204922,\"maximum\":1033603649,\"step\":1988757032,\"default\":1529871140,\"allowedValues\":[1037462008,838227429,1939074971,1059509232]}}") + .toObject(SkuResourceInner.class); + Assertions.assertEquals("deibqip", model.resourceType()); + Assertions.assertEquals("ghvxndzwmkrefa", model.sku().name()); + Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); + Assertions.assertEquals("rwkq", model.sku().size()); + Assertions.assertEquals("hgbijt", model.sku().family()); + Assertions.assertEquals(1921447285, model.sku().capacity()); + Assertions.assertEquals(394204922, model.capacity().minimum()); + Assertions.assertEquals(1033603649, model.capacity().maximum()); + Assertions.assertEquals(1988757032, model.capacity().step()); + Assertions.assertEquals(1529871140, model.capacity().defaultProperty()); + Assertions.assertEquals(1037462008, model.capacity().allowedValues().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SkuResourceInner model = new SkuResourceInner().withResourceType("deibqip") + .withSku(new Sku().withName("ghvxndzwmkrefa") + .withTier(SkuTier.FREE) + .withSize("rwkq") + .withFamily("hgbijt") + .withCapacity(1921447285)) + .withCapacity(new CapacityConfig().withMinimum(394204922) + .withMaximum(1033603649) + .withStep(1988757032) + .withDefaultProperty(1529871140) + .withAllowedValues(Arrays.asList(1037462008, 838227429, 1939074971, 1059509232))); + model = BinaryData.fromObject(model).toObject(SkuResourceInner.class); + Assertions.assertEquals("deibqip", model.resourceType()); + Assertions.assertEquals("ghvxndzwmkrefa", model.sku().name()); + Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); + Assertions.assertEquals("rwkq", model.sku().size()); + Assertions.assertEquals("hgbijt", model.sku().family()); + Assertions.assertEquals(1921447285, model.sku().capacity()); + Assertions.assertEquals(394204922, model.capacity().minimum()); + Assertions.assertEquals(1033603649, model.capacity().maximum()); + Assertions.assertEquals(1988757032, model.capacity().step()); + Assertions.assertEquals(1529871140, model.capacity().defaultProperty()); + Assertions.assertEquals(1037462008, model.capacity().allowedValues().get(0)); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java index 77cf1d7c678cb..5fcb1ddb07d89 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.cognitiveservices.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner; import com.azure.resourcemanager.cognitiveservices.models.MetricName; import com.azure.resourcemanager.cognitiveservices.models.QuotaUsageStatus; import com.azure.resourcemanager.cognitiveservices.models.UnitType; +import com.azure.resourcemanager.cognitiveservices.models.Usage; import java.util.Arrays; import org.junit.jupiter.api.Assertions; @@ -34,28 +34,28 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { UsageListResultInner model = new UsageListResultInner().withNextLink("mohctb") .withValue(Arrays.asList( - new UsageInner().withUnit(UnitType.BYTES_PER_SECOND) + new Usage().withUnit(UnitType.BYTES_PER_SECOND) .withName(new MetricName().withValue("ndnvo").withLocalizedValue("ujjugwdkcglh")) .withQuotaPeriod("azjdyggd") .withLimit(92.2174087854439D) .withCurrentValue(3.8497339257224095D) .withNextResetTime("ofqweykhmenevfye") .withStatus(QuotaUsageStatus.BLOCKED), - new UsageInner().withUnit(UnitType.BYTES) + new Usage().withUnit(UnitType.BYTES) .withName(new MetricName().withValue("i").withLocalizedValue("yvdcsitynnaa")) .withQuotaPeriod("ectehf") .withLimit(43.32844185113748D) .withCurrentValue(61.13135450146281D) .withNextResetTime("vhezrkgqhcj") .withStatus(QuotaUsageStatus.UNKNOWN), - new UsageInner().withUnit(UnitType.MILLISECONDS) + new Usage().withUnit(UnitType.MILLISECONDS) .withName(new MetricName().withValue("kqsleyyvxy").withLocalizedValue("pkc")) .withQuotaPeriod("tpngjcrcczsqpjh") .withLimit(15.683771184024254D) .withCurrentValue(5.670664395942426D) .withNextResetTime("sounqecanoaeu") .withStatus(QuotaUsageStatus.INCLUDED), - new UsageInner().withUnit(UnitType.BYTES_PER_SECOND) + new Usage().withUnit(UnitType.BYTES_PER_SECOND) .withName(new MetricName().withValue("rpmopjmc").withLocalizedValue("tuo")) .withQuotaPeriod("hfuiuaodsfc") .withLimit(36.548139076292394D) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageTests.java similarity index 87% rename from sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java rename to sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageTests.java index f245fdee9a112..25d852e170a5a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageTests.java @@ -5,18 +5,18 @@ package com.azure.resourcemanager.cognitiveservices.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner; import com.azure.resourcemanager.cognitiveservices.models.MetricName; import com.azure.resourcemanager.cognitiveservices.models.QuotaUsageStatus; import com.azure.resourcemanager.cognitiveservices.models.UnitType; +import com.azure.resourcemanager.cognitiveservices.models.Usage; import org.junit.jupiter.api.Assertions; -public final class UsageInnerTests { +public final class UsageTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UsageInner model = BinaryData.fromString( + Usage model = BinaryData.fromString( "{\"unit\":\"Seconds\",\"name\":{\"value\":\"uokktwhrdxwz\",\"localizedValue\":\"q\"},\"quotaPeriod\":\"bsureximo\",\"limit\":23.538238166454796,\"currentValue\":27.071751224209883,\"nextResetTime\":\"s\",\"status\":\"Unknown\"}") - .toObject(UsageInner.class); + .toObject(Usage.class); Assertions.assertEquals(UnitType.SECONDS, model.unit()); Assertions.assertEquals("uokktwhrdxwz", model.name().value()); Assertions.assertEquals("q", model.name().localizedValue()); @@ -29,14 +29,14 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UsageInner model = new UsageInner().withUnit(UnitType.SECONDS) + Usage model = new Usage().withUnit(UnitType.SECONDS) .withName(new MetricName().withValue("uokktwhrdxwz").withLocalizedValue("q")) .withQuotaPeriod("bsureximo") .withLimit(23.538238166454796D) .withCurrentValue(27.071751224209883D) .withNextResetTime("s") .withStatus(QuotaUsageStatus.UNKNOWN); - model = BinaryData.fromObject(model).toObject(UsageInner.class); + model = BinaryData.fromObject(model).toObject(Usage.class); Assertions.assertEquals(UnitType.SECONDS, model.unit()); Assertions.assertEquals("uokktwhrdxwz", model.name().value()); Assertions.assertEquals("q", model.name().localizedValue()); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java index 26089d4f36307..73fb31b008e9b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java @@ -24,7 +24,7 @@ public final class UsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"unit\":\"Bytes\",\"name\":{\"value\":\"hlhzdsqtzbsrgno\",\"localizedValue\":\"jhf\"},\"quotaPeriod\":\"vecactx\",\"limit\":41.168322378176114,\"currentValue\":22.497800609323814,\"nextResetTime\":\"cluqovekqvgqo\",\"status\":\"InOverage\"}]}"; + = "{\"value\":[{\"unit\":\"Milliseconds\",\"name\":{\"value\":\"awpcbbnzqcykn\",\"localizedValue\":\"qofyuicdhzbdy\"},\"quotaPeriod\":\"wgbdvibidmhmwffp\",\"limit\":33.43817000854751,\"currentValue\":59.58054394314235,\"nextResetTime\":\"kccrrvwey\",\"status\":\"Included\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,15 +34,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureEnvironment.AZURE)); PagedIterable response - = manager.usages().list("pe", "ojyqdhcuplcplcw", com.azure.core.util.Context.NONE); + = manager.usages().list("xzopjhbzxl", "ohrdddt", com.azure.core.util.Context.NONE); - Assertions.assertEquals(UnitType.BYTES, response.iterator().next().unit()); - Assertions.assertEquals("hlhzdsqtzbsrgno", response.iterator().next().name().value()); - Assertions.assertEquals("jhf", response.iterator().next().name().localizedValue()); - Assertions.assertEquals("vecactx", response.iterator().next().quotaPeriod()); - Assertions.assertEquals(41.168322378176114D, response.iterator().next().limit()); - Assertions.assertEquals(22.497800609323814D, response.iterator().next().currentValue()); - Assertions.assertEquals("cluqovekqvgqo", response.iterator().next().nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.IN_OVERAGE, response.iterator().next().status()); + Assertions.assertEquals(UnitType.MILLISECONDS, response.iterator().next().unit()); + Assertions.assertEquals("awpcbbnzqcykn", response.iterator().next().name().value()); + Assertions.assertEquals("qofyuicdhzbdy", response.iterator().next().name().localizedValue()); + Assertions.assertEquals("wgbdvibidmhmwffp", response.iterator().next().quotaPeriod()); + Assertions.assertEquals(33.43817000854751D, response.iterator().next().limit()); + Assertions.assertEquals(59.58054394314235D, response.iterator().next().currentValue()); + Assertions.assertEquals("kccrrvwey", response.iterator().next().nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.INCLUDED, response.iterator().next().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserOwnedAmlWorkspaceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserOwnedAmlWorkspaceTests.java new file mode 100644 index 0000000000000..0dd4bfdd2ba2c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserOwnedAmlWorkspaceTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.UserOwnedAmlWorkspace; +import org.junit.jupiter.api.Assertions; + +public final class UserOwnedAmlWorkspaceTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + UserOwnedAmlWorkspace model + = BinaryData.fromString("{\"resourceId\":\"nmayhuybb\",\"identityClientId\":\"odepoogin\"}") + .toObject(UserOwnedAmlWorkspace.class); + Assertions.assertEquals("nmayhuybb", model.resourceId()); + Assertions.assertEquals("odepoogin", model.identityClientId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + UserOwnedAmlWorkspace model + = new UserOwnedAmlWorkspace().withResourceId("nmayhuybb").withIdentityClientId("odepoogin"); + model = BinaryData.fromObject(model).toObject(UserOwnedAmlWorkspace.class); + Assertions.assertEquals("nmayhuybb", model.resourceId()); + Assertions.assertEquals("odepoogin", model.identityClientId()); + } +} From 6c1392edeb338653eb535989407289db9cf7bb8b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 22 Nov 2024 00:08:46 -0800 Subject: [PATCH 36/44] Increment package versions for cognitiveservices releases (#43068) --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-cognitiveservices/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 35936b282c045..05f4b19ed9364 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -337,7 +337,7 @@ com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.2;1.0.0-beta com.azure.resourcemanager:azure-resourcemanager-billing;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-batchai;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-signalr;1.0.0-beta.9;1.0.0-beta.10 -com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.0.0;1.1.0 +com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-customerinsights;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-databox;1.0.0-beta.4;1.0.0-beta.5 com.azure.resourcemanager:azure-resourcemanager-datamigration;1.0.0-beta.3;1.0.0-beta.4 diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md index bcb6ca82e9398..48eae2897d3ef 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0 (2024-11-22) - Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml index 6419e4766e16f..dd16a6f607ba0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-cognitiveservices - 1.1.0 + 1.2.0-beta.1 jar Microsoft Azure SDK for CognitiveServices Management From 3c2cf706693e554782faed989fd06fdfe4330f56 Mon Sep 17 00:00:00 2001 From: Moary Chen Date: Fri, 22 Nov 2024 16:15:02 +0800 Subject: [PATCH 37/44] Improve logic to avoid block call under non blocking thread (#43063) --- sdk/spring/CHANGELOG.md | 12 +++ .../core/handler/DefaultMessageHandler.java | 15 +++- .../eventhubs/core/EventHubsTemplate.java | 75 ++++++++----------- .../core/EventHubsTemplateTests.java | 33 +++++++- 4 files changed, 91 insertions(+), 44 deletions(-) diff --git a/sdk/spring/CHANGELOG.md b/sdk/spring/CHANGELOG.md index 473bc2733bcb9..71544aa814772 100644 --- a/sdk/spring/CHANGELOG.md +++ b/sdk/spring/CHANGELOG.md @@ -11,6 +11,18 @@ This section includes changes in `spring-cloud-azure-autoconfigure` module. #### Bugs Fixed - Fix error: Event Hubs connection string is still used when it's configured to empty string. [#42880](https://github.com/Azure/azure-sdk-for-java/issues/42880). +### Spring Integration Azure Core +This section includes changes in the `spring-integration-azure-core` module. + +#### Bugs Fixed +- Fix `DefaultMessageHandler.handleMessageInternal` error: When using a parallel Reactor Scheduler, blocking calls are prohibited. [#35215](https://github.com/Azure/azure-sdk-for-java/issues/35215). + +### Spring Integration Azure Event Hubs +This section includes changes in the `spring-integration-azure-eventhubs` module. + +#### Bugs Fixed +- Fix `EventHubsTemplate.doSend` error: When using a parallel Reactor Scheduler, blocking calls are prohibited. Thanks to [@AlanKrueger](https://github.com/AlanKrueger) for his contribution. [#40772](https://github.com/Azure/azure-sdk-for-java/pull/40772). + ## 5.18.0 (2024-11-05) - This release is compatible with Spring Boot 3.0.0-3.0.13, 3.1.0-3.1.12, 3.2.0-3.2.11, 3.3.0-3.3.5. (Note: 3.0.x (x>13), 3.1.y (y>12), 3.2.z (z>11) and 3.3.m (m>5) should be supported, but they aren't tested with this release.) - This release is compatible with Spring Cloud 2022.0.0-2022.0.5, 2023.0.0-2023.0.3. (Note: 2022.0.x (x>5) and 2023.0.y (y>3) should be supported, but they aren't tested with this release.) diff --git a/sdk/spring/spring-integration-azure-core/src/main/java/com/azure/spring/integration/core/handler/DefaultMessageHandler.java b/sdk/spring/spring-integration-azure-core/src/main/java/com/azure/spring/integration/core/handler/DefaultMessageHandler.java index 93b818e91b55d..a4717939ec532 100644 --- a/sdk/spring/spring-integration-azure-core/src/main/java/com/azure/spring/integration/core/handler/DefaultMessageHandler.java +++ b/sdk/spring/spring-integration-azure-core/src/main/java/com/azure/spring/integration/core/handler/DefaultMessageHandler.java @@ -25,6 +25,7 @@ import org.springframework.util.Assert; import org.springframework.util.concurrent.ListenableFutureCallback; import reactor.core.publisher.Mono; +import reactor.core.scheduler.Schedulers; import java.time.Duration; import java.time.temporal.ChronoUnit; @@ -87,7 +88,19 @@ protected void handleMessageInternal(Message message) { final Mono mono = this.sendOperation.sendAsync(dest, messageToSend); - if (this.sync) { + // When using StreamBridge.send with the non-blocking reactive chain and producer's sync being enabled, + // it results a IllegalStateException (block()/blockFirst()/blockLast() are blocking, which is not supported). + // Below steps are a reproducer for the IllegalStateException scenario: + // 1. Update configuration file: spring.cloud.azure.stream.eventhubs.bindings.supply-out-0.producer.sync=true + // 2. Use the following code to send a message: + // @PostMapping("/reproducer") + // public Mono> reproducer() { + // return Mono.defer(() -> Mono.just("reproducer")) + // .publishOn(Schedulers.parallel()) + // .doOnSuccess(message -> streamBridge.send("supply-out-0", message)) + // .map(ResponseEntity::ok); + // } + if (this.sync && !Schedulers.isInNonBlockingThread()) { waitingSendResponse(mono, message); } else { handleSendResponseAsync(mono, message); diff --git a/sdk/spring/spring-messaging-azure-eventhubs/src/main/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplate.java b/sdk/spring/spring-messaging-azure-eventhubs/src/main/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplate.java index 480d80952b140..79504cbca20ff 100644 --- a/sdk/spring/spring-messaging-azure-eventhubs/src/main/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplate.java +++ b/sdk/spring/spring-messaging-azure-eventhubs/src/main/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplate.java @@ -102,52 +102,43 @@ private Mono doSend(String destination, List events, PartitionS EventHubProducerAsyncClient producer = producerFactory.createProducer(destination); CreateBatchOptions options = buildCreateBatchOptions(partitionSupplier); - EventDataBatch eventDataBatch = null; - try { - eventDataBatch = producer.createBatch(options).block(); - } catch (Exception e) { - LOGGER.error("EventDataBatch create error.", e); - return Mono.error(e); - } - AtomicReference currentBatch = new AtomicReference<>(eventDataBatch); - - Flux.fromIterable(events).flatMap(event -> { - final EventDataBatch batch = currentBatch.get(); - try { - if (batch.tryAdd(event)) { + AtomicReference currentBatch = new AtomicReference<>(); + return producer.createBatch(options) + .doOnSuccess(eventDataBatch -> { + currentBatch.set(eventDataBatch); + }) + .then(Flux.fromIterable(events).flatMap(event -> { + final EventDataBatch batch = currentBatch.get(); + try { + if (batch.tryAdd(event)) { + return Mono.empty(); + } else { + LOGGER.warn("EventDataBatch is full in the collect process or the first event is " + + "too large to fit in an empty batch! Max size: {}", batch.getMaxSizeInBytes()); + } + } catch (AmqpException e) { + LOGGER.error("Event is larger than maximum allowed size.", e); return Mono.empty(); - } else { - LOGGER.warn("EventDataBatch is full in the collect process or the first event is " - + "too large to fit in an empty batch! Max size: {}", batch.getMaxSizeInBytes()); } - } catch (AmqpException e) { - LOGGER.error("Event is larger than maximum allowed size.", e); - return Mono.empty(); - } - - return Mono.when( - producer.send(batch), - producer.createBatch(options).map(newBatch -> { - currentBatch.set(newBatch); - // Add the event that did not fit in the previous batch. - try { - if (!newBatch.tryAdd(event)) { - LOGGER.error("Event was too large to fit in an empty batch. Max size:{} ", - newBatch.getMaxSizeInBytes()); - } - } catch (AmqpException e) { - LOGGER.error("Event was too large to fit in an empty batch. Max size:{}", - newBatch.getMaxSizeInBytes(), e); - } - return newBatch; - })); - }) - .then() - .block(); + return Mono.when( + producer.send(batch), + producer.createBatch(options).map(newBatch -> { + currentBatch.set(newBatch); + // Add the event that did not fit in the previous batch. + try { + if (!newBatch.tryAdd(event)) { + LOGGER.error("Event was too large to fit in an empty batch. Max size:{} ", + newBatch.getMaxSizeInBytes()); + } + } catch (AmqpException e) { + LOGGER.error("Event was too large to fit in an empty batch. Max size:{}", + newBatch.getMaxSizeInBytes(), e); + } - final EventDataBatch batch = currentBatch.getAndSet(null); - return producer.send(batch); + return newBatch; + })); + }).then(Mono.defer(() -> producer.send(currentBatch.getAndSet(null))))); } private CreateBatchOptions buildCreateBatchOptions(PartitionSupplier partitionSupplier) { diff --git a/sdk/spring/spring-messaging-azure-eventhubs/src/test/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplateTests.java b/sdk/spring/spring-messaging-azure-eventhubs/src/test/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplateTests.java index 0a6109aa71dbb..bd21baf8c5c31 100644 --- a/sdk/spring/spring-messaging-azure-eventhubs/src/test/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplateTests.java +++ b/sdk/spring/spring-messaging-azure-eventhubs/src/test/java/com/azure/spring/messaging/eventhubs/core/EventHubsTemplateTests.java @@ -15,7 +15,9 @@ import org.junit.jupiter.api.Test; import org.springframework.messaging.Message; import org.springframework.messaging.support.GenericMessage; +import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import reactor.core.scheduler.Schedulers; import reactor.test.StepVerifier; import java.util.ArrayList; @@ -67,7 +69,7 @@ void testSendAsyncForMessagesWithThreeBatch() { when(eventDataBatch.getCount()).thenReturn(2, 2, 1); List messagesList = new ArrayList<>(); for (int i = 0; i < 5; i++) { - messagesList.add("abcde"); + messagesList.add("test"); } List> messages = messagesList.stream().map((Function>) GenericMessage::new).collect(Collectors.toList()); @@ -78,6 +80,35 @@ void testSendAsyncForMessagesWithThreeBatch() { verify(this.mockProducerClient, times(3)).send(any(EventDataBatch.class)); } + /** + * test the three batches case in parallel + */ + @Test + void testSendAsyncForMessagesWithThreeBatchParallel() { + EventDataBatch eventDataBatch = mock(EventDataBatch.class); + + when(this.mockProducerClient.createBatch(any(CreateBatchOptions.class))) + .thenReturn(Mono.just(eventDataBatch)); + when(eventDataBatch.tryAdd(any(EventData.class))).thenReturn(true, true, false, true, true, + false, true); + when(eventDataBatch.getCount()).thenReturn(2, 2, 1); + List messagesList = new ArrayList<>(); + for (int i = 0; i < 5; i++) { + messagesList.add("test"); + } + List> messages = + messagesList.stream().map((Function>) GenericMessage::new).collect(Collectors.toList()); + + Mono mono = Flux.just(messages) + .parallel() + .runOn(Schedulers.parallel()) + .flatMap(msgs -> this.eventHubsTemplate.sendAsync(this.destination, messages, null)) + .then(); + StepVerifier.create(mono) + .verifyComplete(); + verify(this.mockProducerClient, times(3)).send(any(EventDataBatch.class)); + } + /** * test the normal one batch case */ From c1c6576c37b4f623e0c765d507a1f30444b0ee23 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 22 Nov 2024 00:55:16 -0800 Subject: [PATCH 38/44] [Automation] Generate SDK based on TypeSpec 0.26.0 (#43067) --- eng/emitter-package-lock.json | 18 +++++------ eng/emitter-package.json | 4 +-- .../text/TextTranslationAsyncClient.java | 32 +++++++++---------- .../text/TextTranslationClient.java | 32 +++++++++---------- 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index cee419feb6ab8..dde5890acdbdc 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,14 +5,14 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-java": "0.25.0" + "@azure-tools/typespec-java": "0.26.0" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.48.0", "@azure-tools/typespec-azure-core": "0.48.0", "@azure-tools/typespec-azure-resource-manager": "0.48.0", "@azure-tools/typespec-azure-rulesets": "0.48.0", - "@azure-tools/typespec-client-generator-core": "0.48.1", + "@azure-tools/typespec-client-generator-core": "0.48.2", "@typespec/compiler": "0.62.0", "@typespec/http": "0.62.0", "@typespec/openapi": "0.62.0", @@ -140,9 +140,9 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.48.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.1.tgz", - "integrity": "sha512-pYEZDExltNNLAaA12EwEag5VLESyPoKNQQ/6Olj4rJouA4cBjZDTW80VYgKuPQBt/uCtA0Yn6xxl0nH7TGOwWQ==", + "version": "0.48.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.2.tgz", + "integrity": "sha512-5hb+J703pgn6tA3NwPCn2zJ1kWn/YJUkmDC+wfXcWmikp9sEZRE1etMktR0MekJHNO3crDHAK3egsjttnds9nw==", "license": "MIT", "dependencies": { "change-case": "~5.4.4", @@ -161,9 +161,9 @@ } }, "node_modules/@azure-tools/typespec-java": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-java/-/typespec-java-0.25.0.tgz", - "integrity": "sha512-Gq+W3TjKO/Mqx2DlXwk41dQlh6LsB9M1MDXSNQUAW2ff+h3ZrlRE/cPKyd3PzNzHZQ4622T7xeqHGouKHKnHCg==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-java/-/typespec-java-0.26.0.tgz", + "integrity": "sha512-5+0b0ebOAoplcJ2UYR8PmihCuo2vkVMrQCC/pDUiUJ0LOrDiv4XVmKuYLIWPO2hBL/yLJR4kSbX/QbWvoGOdOA==", "license": "MIT", "dependencies": { "@autorest/codemodel": "~4.20.0", @@ -178,7 +178,7 @@ "@azure-tools/typespec-azure-core": ">=0.48.0 <1.0.0", "@azure-tools/typespec-azure-resource-manager": ">=0.48.0 <1.0.0", "@azure-tools/typespec-azure-rulesets": ">=0.48.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.48.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.48.2 <1.0.0", "@typespec/compiler": ">=0.62.0 <1.0.0", "@typespec/http": ">=0.62.0 <1.0.0", "@typespec/openapi": ">=0.62.0 <1.0.0", diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 42ec6935dcabe..4ae3e18d8e05d 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,14 +1,14 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-java": "0.25.0" + "@azure-tools/typespec-java": "0.26.0" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.48.0", "@azure-tools/typespec-azure-core": "0.48.0", "@azure-tools/typespec-azure-resource-manager": "0.48.0", "@azure-tools/typespec-azure-rulesets": "0.48.0", - "@azure-tools/typespec-client-generator-core": "0.48.1", + "@azure-tools/typespec-client-generator-core": "0.48.2", "@typespec/compiler": "0.62.0", "@typespec/http": "0.62.0", "@typespec/openapi": "0.62.0", diff --git a/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationAsyncClient.java b/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationAsyncClient.java index 9df093df0b982..d43270cc3354b 100644 --- a/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationAsyncClient.java +++ b/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationAsyncClient.java @@ -115,7 +115,7 @@ public final class TextTranslationAsyncClient { * * You can add these to a request with {@link RequestOptions#addHeader} *

Request Body Schema

- * + * *
      * {@code
      * [
@@ -125,9 +125,9 @@ public final class TextTranslationAsyncClient {
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -196,7 +196,7 @@ public Mono> translateWithResponse(List targetLangu
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -206,9 +206,9 @@ public Mono> translateWithResponse(List targetLangu
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -266,7 +266,7 @@ public Mono> transliterateWithResponse(String language, Str
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -276,9 +276,9 @@ public Mono> transliterateWithResponse(String language, Str
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -321,7 +321,7 @@ public Mono> findSentenceBoundariesWithResponse(BinaryData
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -331,9 +331,9 @@ public Mono> findSentenceBoundariesWithResponse(BinaryData
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -393,7 +393,7 @@ public Mono> lookupDictionaryEntriesWithResponse(String sou
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -404,9 +404,9 @@ public Mono> lookupDictionaryEntriesWithResponse(String sou
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -1087,7 +1087,7 @@ public Mono> lookupDictionaryExamples(String sourceL
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Response Body Schema

- * + * *
      * {@code
      * {
diff --git a/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationClient.java b/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationClient.java
index e65e849fa7241..14d6e95286344 100644
--- a/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationClient.java
+++ b/sdk/translation/azure-ai-translation-text/src/main/java/com/azure/ai/translation/text/TextTranslationClient.java
@@ -113,7 +113,7 @@ public final class TextTranslationClient {
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -123,9 +123,9 @@ public final class TextTranslationClient {
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -194,7 +194,7 @@ public Response translateWithResponse(List targetLanguages,
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -204,9 +204,9 @@ public Response translateWithResponse(List targetLanguages,
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -264,7 +264,7 @@ public Response transliterateWithResponse(String language, String so
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -274,9 +274,9 @@ public Response transliterateWithResponse(String language, String so
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -318,7 +318,7 @@ public Response findSentenceBoundariesWithResponse(BinaryData body,
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -328,9 +328,9 @@ public Response findSentenceBoundariesWithResponse(BinaryData body,
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -390,7 +390,7 @@ public Response lookupDictionaryEntriesWithResponse(String sourceLan
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Request Body Schema

- * + * *
      * {@code
      * [
@@ -401,9 +401,9 @@ public Response lookupDictionaryEntriesWithResponse(String sourceLan
      * ]
      * }
      * 
- * + * *

Response Body Schema

- * + * *
      * {@code
      * [
@@ -1067,7 +1067,7 @@ public List lookupDictionaryExamples(String sourceLanguag
      * 
      * You can add these to a request with {@link RequestOptions#addHeader}
      * 

Response Body Schema

- * + * *
      * {@code
      * {

From dfd670dbfae9d3e529ac73c5ae5e2fa50b678dac Mon Sep 17 00:00:00 2001
From: Jair Myree 
Date: Fri, 22 Nov 2024 09:29:43 -0800
Subject: [PATCH 39/44] Prepare Tables Nov 2024 Minor Release (#43059)

* Prepare Tables Nov 2024 Patch Release

* Prepare Tables Nov 2024 Minor Release
---
 eng/versioning/version_client.txt                 |  2 +-
 sdk/tables/azure-data-tables-perf/pom.xml         |  2 +-
 sdk/tables/azure-data-tables/CHANGELOG.md         | 15 +++++++++++----
 sdk/tables/azure-data-tables/README.md            |  2 +-
 .../azure-data-tables/checkstyle-suppressions.xml |  3 +++
 sdk/tables/azure-data-tables/pom.xml              |  2 +-
 sdk/tables/azure-data-tables/spotbugs-exclude.xml |  4 ++++
 7 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 05f4b19ed9364..ecbb9fb99bf9d 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -121,7 +121,7 @@ com.azure:azure-data-appconfiguration-perf;1.0.0-beta.1;1.0.0-beta.1
 com.azure:azure-data-schemaregistry;1.5.1;1.6.0-beta.1
 com.azure:azure-data-schemaregistry-apacheavro;1.1.22;1.2.0-beta.3
 com.azure:azure-data-schemaregistry-jsonschema;1.0.0;1.1.0-beta.1
-com.azure:azure-data-tables;12.4.6;12.5.0-beta.1
+com.azure:azure-data-tables;12.4.6;12.5.0
 com.azure:azure-data-tables-perf;1.0.0-beta.1;1.0.0-beta.1
 com.azure:azure-developer-devcenter;1.0.5;1.1.0-beta.1
 com.azure:azure-developer-loadtesting;1.0.18;1.1.0-beta.1
diff --git a/sdk/tables/azure-data-tables-perf/pom.xml b/sdk/tables/azure-data-tables-perf/pom.xml
index fc26d7f13130c..c3e40ef2994df 100644
--- a/sdk/tables/azure-data-tables-perf/pom.xml
+++ b/sdk/tables/azure-data-tables-perf/pom.xml
@@ -25,7 +25,7 @@
     
       com.azure
       azure-data-tables
-      12.5.0-beta.1 
+      12.5.0 
     
     
       com.azure
diff --git a/sdk/tables/azure-data-tables/CHANGELOG.md b/sdk/tables/azure-data-tables/CHANGELOG.md
index f0b694b8fc8b3..a3701ce0ef2da 100644
--- a/sdk/tables/azure-data-tables/CHANGELOG.md
+++ b/sdk/tables/azure-data-tables/CHANGELOG.md
@@ -1,15 +1,22 @@
 # Release History
 
-## 12.5.0-beta.1 (Unreleased)
+## 12.5.0 (2024-11-21)
 
 ### Features Added
 
-### Breaking Changes
-
-### Bugs Fixed
+- Added support for Microsoft Entra authentication when using the Tables SDK with Azure Cosmos endpoints.
 
 ### Other Changes
 
+- Removed handwritten translation layer between generated and custom types.
+- Add serialization support using `azure-xml`.
+
+#### Dependency Updates
+
+- Upgraded `azure-core` from `1.53.0` to version `1.54.1`.
+- Upgraded `azure-core-http-netty` from `1.15.5` to version `1.15.7`.
+
+
 ## 12.4.6 (2024-10-17)
 
 ### Bugs Fixed
diff --git a/sdk/tables/azure-data-tables/README.md b/sdk/tables/azure-data-tables/README.md
index 27262c1387bdd..6c741fd459d9c 100644
--- a/sdk/tables/azure-data-tables/README.md
+++ b/sdk/tables/azure-data-tables/README.md
@@ -46,7 +46,7 @@ add the direct dependency to your project as follows.
 
   com.azure
   azure-data-tables
-  12.4.6
+  12.5.0
 
 ```
 [//]: # ({x-version-update-end})
diff --git a/sdk/tables/azure-data-tables/checkstyle-suppressions.xml b/sdk/tables/azure-data-tables/checkstyle-suppressions.xml
index ce5089749ac5c..5aa0c525f88df 100644
--- a/sdk/tables/azure-data-tables/checkstyle-suppressions.xml
+++ b/sdk/tables/azure-data-tables/checkstyle-suppressions.xml
@@ -28,6 +28,9 @@
   
   
   
+  
+  
+  
   
   
   
diff --git a/sdk/tables/azure-data-tables/pom.xml b/sdk/tables/azure-data-tables/pom.xml
index f663d6135955c..4689e931730bb 100644
--- a/sdk/tables/azure-data-tables/pom.xml
+++ b/sdk/tables/azure-data-tables/pom.xml
@@ -14,7 +14,7 @@ Licensed under the MIT License.
 
   com.azure
   azure-data-tables
-  12.5.0-beta.1 
+  12.5.0 
   Microsoft Azure client library for Azure Tables
   This package contains the client library for Microsoft Azure Tables.
   https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/tables/azure-data-tables/spotbugs-exclude.xml b/sdk/tables/azure-data-tables/spotbugs-exclude.xml
index ddeb4a7739e9a..4d88169dd8fd6 100644
--- a/sdk/tables/azure-data-tables/spotbugs-exclude.xml
+++ b/sdk/tables/azure-data-tables/spotbugs-exclude.xml
@@ -10,6 +10,10 @@
     
     
   
+  
+    
+    
+  
   
     
     

From 8a6f70ad546ff0b4323bc7d1e65c217f277eff93 Mon Sep 17 00:00:00 2001
From: Liudmila Molkova 
Date: Fri, 22 Nov 2024 10:35:51 -0800
Subject: [PATCH 40/44] Event hubs: pass partition key when publishing with
 buffered client (#43039)

* Set partitionKey on events published with buffered producer client in addition to partition key
* Stop removing message annotations when publishing events, update changelog
* disable BlobCheckpointStoreTests on Java8 because of mockito issues
---
 .../blob/BlobCheckpointStoreTests.java        |  3 +
 .../azure-messaging-eventhubs/CHANGELOG.md    | 19 ++++++
 .../azure/messaging/eventhubs/EventData.java  | 46 ++++++-------
 .../messaging/eventhubs/EventDataBatch.java   |  8 +++
 .../EventHubBufferedProducerAsyncClient.java  |  3 +
 .../eventhubs/EventHubMessageSerializer.java  | 13 +---
 .../EventHubProducerAsyncClient.java          | 22 +-----
 ...redProducerAsyncClientIntegrationTest.java | 68 +++++++++++++++++++
 .../eventhubs/SystemPropertiesTest.java       |  8 ---
 9 files changed, 128 insertions(+), 62 deletions(-)

diff --git a/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/src/test/java/com/azure/messaging/eventhubs/checkpointstore/blob/BlobCheckpointStoreTests.java b/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/src/test/java/com/azure/messaging/eventhubs/checkpointstore/blob/BlobCheckpointStoreTests.java
index 49815f731af76..5d0c3cc69e55b 100644
--- a/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/src/test/java/com/azure/messaging/eventhubs/checkpointstore/blob/BlobCheckpointStoreTests.java
+++ b/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/src/test/java/com/azure/messaging/eventhubs/checkpointstore/blob/BlobCheckpointStoreTests.java
@@ -22,6 +22,8 @@
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledOnJre;
+import org.junit.jupiter.api.condition.JRE;
 import org.mockito.ArgumentMatchers;
 import org.mockito.Mock;
 import org.mockito.Mockito;
@@ -56,6 +58,7 @@
 /**
  * Unit tests for {@link BlobCheckpointStore}.
  */
+@DisabledOnJre(JRE.JAVA_8)
 public class BlobCheckpointStoreTests {
 
     @Mock
diff --git a/sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md b/sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md
index 909d9953c8d3f..c3ad4900e23fe 100644
--- a/sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md
+++ b/sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md
@@ -6,8 +6,27 @@
 
 ### Breaking Changes
 
+- Do not remove `x-opt-partition-key` message annotation when publishing events. 
+  If event is received from an Event Hub, it may contain `x-opt-partition-key` message annotation. If this event is 
+  published to another Event Hub, previous version of the Event Hubs SDK did not pass this annotation to the next Event Hub. 
+  Starting with this version:
+  - if the event is sent with `SendOptions` or `CreateBatchOptions` containing `null` partition key, the existing `x-opt-partition-key` 
+    message annotation will be used when publishing the event. **This is a new behavior.**
+  - if the event is sent with `SendOptions` or `CreateBatchOptions` containing non-null partition key, this partition key will be used.
+    This behavior did not change.
+  
+  If you relied on the previous behavior, make sure to clear the `x-opt-partition-key` message annotation before re-sending the event.
+  ([#43039](https://github.com/Azure/azure-sdk-for-java/pull/43039))
+
 ### Bugs Fixed
 
+- Set partition key in addition to partition id when publishing events with `EventHubsBufferedProducerClient`. 
+  ([#43039](https://github.com/Azure/azure-sdk-for-java/pull/43039))
+- Do not remove `x-opt-sequence-number`, `x-opt-offset`, `x-opt-enqueued-time`, `x-opt-publisher` message annotations 
+  when re-sending events received from another Event Hub. Message annotations should not be modified by the SDK and Event Hubs 
+  will overwrite these values when the event is published.
+  ([#43039](https://github.com/Azure/azure-sdk-for-java/pull/43039))
+
 ### Other Changes
 
 ## 5.19.1 (2024-10-27)
diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventData.java b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventData.java
index 569db29ad7897..7fe10fa3da2fa 100644
--- a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventData.java
+++ b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventData.java
@@ -3,6 +3,7 @@
 
 package com.azure.messaging.eventhubs;
 
+import com.azure.core.amqp.AmqpMessageConstant;
 import com.azure.core.amqp.models.AmqpAnnotatedMessage;
 import com.azure.core.amqp.models.AmqpMessageBody;
 import com.azure.core.amqp.models.AmqpMessageHeader;
@@ -18,16 +19,9 @@
 import java.time.Instant;
 import java.util.Arrays;
 import java.util.Collections;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Objects;
-import java.util.Set;
 
-import static com.azure.core.amqp.AmqpMessageConstant.ENQUEUED_TIME_UTC_ANNOTATION_NAME;
-import static com.azure.core.amqp.AmqpMessageConstant.OFFSET_ANNOTATION_NAME;
-import static com.azure.core.amqp.AmqpMessageConstant.PARTITION_KEY_ANNOTATION_NAME;
-import static com.azure.core.amqp.AmqpMessageConstant.PUBLISHER_ANNOTATION_NAME;
-import static com.azure.core.amqp.AmqpMessageConstant.SEQUENCE_NUMBER_ANNOTATION_NAME;
 import static java.nio.charset.StandardCharsets.UTF_8;
 
 /**
@@ -41,28 +35,12 @@
  * @see AMQP 1.0 specification
  */
 public class EventData extends MessageContent {
-    /*
-     * These are properties owned by the service and set when a message is received.
-     */
-    static final Set RESERVED_SYSTEM_PROPERTIES;
-
     private static final ClientLogger LOGGER = new ClientLogger(EventData.class);
     private final Map properties;
     private final SystemProperties systemProperties;
     private AmqpAnnotatedMessage annotatedMessage;
     private Context context;
 
-    static {
-        final Set properties = new HashSet<>();
-        properties.add(OFFSET_ANNOTATION_NAME.getValue());
-        properties.add(PARTITION_KEY_ANNOTATION_NAME.getValue());
-        properties.add(SEQUENCE_NUMBER_ANNOTATION_NAME.getValue());
-        properties.add(ENQUEUED_TIME_UTC_ANNOTATION_NAME.getValue());
-        properties.add(PUBLISHER_ANNOTATION_NAME.getValue());
-
-        RESERVED_SYSTEM_PROPERTIES = Collections.unmodifiableSet(properties);
-    }
-
     /**
      * Creates an event with an empty body.
      */
@@ -453,6 +431,28 @@ Context getContext() {
         return context;
     }
 
+    /**
+     * Sets partition key on the message annotations.
+     * @param partitionKey The partition key to set on the message.
+     * @return The updated {@link EventData}.
+     */
+    EventData setPartitionKeyAnnotation(String partitionKey) {
+        Map messageAnnotations = annotatedMessage.getMessageAnnotations();
+        messageAnnotations.put(AmqpMessageConstant.PARTITION_KEY_ANNOTATION_NAME.getValue(), partitionKey);
+
+        return this;
+    }
+
+    /**
+     * Gets the partition key from the message annotations.
+     *
+     * @return The partition key.
+     */
+    String getPartitionKeyAnnotation() {
+        return (String) annotatedMessage.getMessageAnnotations()
+            .get(AmqpMessageConstant.PARTITION_KEY_ANNOTATION_NAME.getValue());
+    }
+
     /**
      * Adds a new key value pair to the existing context on Event Data.
      *
diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventDataBatch.java b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventDataBatch.java
index 2cef508ce871c..127ff4d15bc07 100644
--- a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventDataBatch.java
+++ b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventDataBatch.java
@@ -88,6 +88,8 @@ public int getSizeInBytes() {
      * 

This method is not thread-safe; make sure to synchronize the method access when using multiple threads * to add events.

* + *

When batch was create with partition key, the event data will be updated with this partition key.

+ * * @param eventData The {@link EventData} to add to the batch. * @return {@code true} if the event could be added to the batch; {@code false} if the event was too large to fit in * the batch, to accommodate the event, the application should obtain a new {@link EventDataBatch} object and @@ -108,6 +110,12 @@ public boolean tryAdd(final EventData eventData) { } this.sizeInBytes += size; + + // updating event data only if we're going to add it to the batch + if (partitionKey != null) { + eventData.setPartitionKeyAnnotation(partitionKey); + } + this.events.add(eventData); return true; } diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClient.java b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClient.java index a82bb428a0a61..b774e9e7581bf 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClient.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClient.java @@ -351,6 +351,7 @@ public Mono enqueueEvent(EventData eventData, SendOptions options) { if (options.getPartitionKey() != null) { return partitionIdsMono.flatMap(ids -> { final String partitionId = partitionResolver.assignForPartitionKey(options.getPartitionKey(), ids); + final EventHubBufferedPartitionProducer producer = partitionProducers.get(partitionId); if (producer == null) { return monoError(logger, @@ -360,6 +361,7 @@ public Mono enqueueEvent(EventData eventData, SendOptions options) { partitionId, options.getPartitionKey()))); } + eventData.setPartitionKeyAnnotation(options.getPartitionKey()); return producer.enqueueEvent(eventData).thenReturn(getBufferedEventCount()); }); } else { @@ -368,6 +370,7 @@ public Mono enqueueEvent(EventData eventData, SendOptions options) { final EventHubBufferedPartitionProducer producer = partitionProducers.computeIfAbsent(partitionId, key -> createPartitionProducer(key)); + eventData.setPartitionKeyAnnotation(options.getPartitionKey()); return producer.enqueueEvent(eventData).thenReturn(getBufferedEventCount()); }); } diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubMessageSerializer.java b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubMessageSerializer.java index e094348d05f43..3597849782482 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubMessageSerializer.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubMessageSerializer.java @@ -125,18 +125,7 @@ public Message serialize(T object) { } final EventData eventData = (EventData) object; - final AmqpAnnotatedMessage amqpAnnotatedMessage = eventData.getRawAmqpMessage(); - final Message protonJ = MessageUtils.toProtonJMessage(amqpAnnotatedMessage); - - // Removing any system properties like ENQUEUED TIME, OFFSET, SEQUENCE NUMBER. - // These values are populated in the case that the user received the event and is - // resending the event. - if (protonJ.getMessageAnnotations() != null && protonJ.getMessageAnnotations().getValue() != null) { - EventData.RESERVED_SYSTEM_PROPERTIES - .forEach(key -> protonJ.getMessageAnnotations().getValue().remove(Symbol.valueOf(key))); - } - - return protonJ; + return MessageUtils.toProtonJMessage(eventData.getRawAmqpMessage()); } @SuppressWarnings("unchecked") diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubProducerAsyncClient.java b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubProducerAsyncClient.java index 42dbdef7aee73..17370532d93e5 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubProducerAsyncClient.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubProducerAsyncClient.java @@ -6,7 +6,6 @@ import com.azure.core.amqp.AmqpRetryOptions; import com.azure.core.amqp.exception.AmqpErrorCondition; import com.azure.core.amqp.exception.AmqpException; -import com.azure.core.amqp.implementation.AmqpConstants; import com.azure.core.amqp.implementation.AmqpSendLink; import com.azure.core.amqp.implementation.ErrorContextProvider; import com.azure.core.amqp.implementation.MessageSerializer; @@ -18,7 +17,6 @@ import com.azure.messaging.eventhubs.implementation.EventHubManagementNode; import com.azure.messaging.eventhubs.models.CreateBatchOptions; import com.azure.messaging.eventhubs.models.SendOptions; -import org.apache.qpid.proton.amqp.messaging.MessageAnnotations; import org.apache.qpid.proton.message.Message; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -27,7 +25,6 @@ import java.io.Closeable; import java.util.ArrayList; import java.util.Collections; -import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Objects; @@ -38,6 +35,7 @@ import java.util.function.Function; import java.util.function.Supplier; import java.util.stream.Collector; +import java.util.stream.Collectors; import static com.azure.core.amqp.implementation.RetryUtil.withRetry; import static com.azure.core.util.FluxUtil.monoError; @@ -582,22 +580,8 @@ public Mono send(EventDataBatch batch) { .log("Sending batch to be distributed round-robin in service."); } - final String partitionKey = batch.getPartitionKey(); - final List messages = new ArrayList<>(); - - for (int i = 0; i < batch.getEvents().size(); i++) { - final EventData event = batch.getEvents().get(i); - final Message message = messageSerializer.serialize(event); - - if (!CoreUtils.isNullOrEmpty(partitionKey)) { - final MessageAnnotations messageAnnotations = message.getMessageAnnotations() == null - ? new MessageAnnotations(new HashMap<>()) - : message.getMessageAnnotations(); - messageAnnotations.getValue().put(AmqpConstants.PARTITION_KEY, partitionKey); - message.setMessageAnnotations(messageAnnotations); - } - messages.add(message); - } + final List messages + = batch.getEvents().stream().map(messageSerializer::serialize).collect(Collectors.toList()); final Mono sendMessage = getSendLink(batch.getPartitionId()) .flatMap(link -> messages.size() == 1 ? link.send(messages.get(0)) : link.send(messages)); diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClientIntegrationTest.java b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClientIntegrationTest.java index 5ccd27635b63b..99adb074f8394 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClientIntegrationTest.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubBufferedProducerAsyncClientIntegrationTest.java @@ -5,6 +5,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.logging.LogLevel; +import com.azure.messaging.eventhubs.models.EventPosition; import com.azure.messaging.eventhubs.models.SendBatchSucceededContext; import com.azure.messaging.eventhubs.models.SendOptions; import org.junit.jupiter.api.Tag; @@ -26,13 +27,16 @@ import java.util.Locale; import java.util.Map; import java.util.Random; +import java.util.UUID; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicReference; import java.util.function.Function; import java.util.stream.Collectors; import java.util.stream.IntStream; +import static com.azure.core.amqp.AmqpMessageConstant.PARTITION_KEY_ANNOTATION_NAME; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -173,6 +177,10 @@ public void publishWithPartitionKeys() throws InterruptedException { final List> publishEventMono = IntStream.range(0, numberOfEvents).mapToObj(index -> { final String partitionKey = "partition-" + index; final EventData eventData = new EventData(partitionKey); + eventData.getRawAmqpMessage() + .getMessageAnnotations() + .put(PARTITION_KEY_ANNOTATION_NAME.getValue(), "old partition key - should not be used"); + final SendOptions sendOptions = new SendOptions().setPartitionKey(partitionKey); final int delay = randomInterval.nextInt(20); @@ -223,6 +231,66 @@ public void publishWithPartitionKeys() throws InterruptedException { assertPropertiesUpdated(partitionPropertiesMap, finalProperties); } + /** + * Checks that sending a message with partition key propagates partition key to receiver. + */ + @Test + public void publishAndReceiveWithPartitionKeys() throws InterruptedException { + // Arrange + final CountDownLatch eventCountdown = new CountDownLatch(1); + final int queueSize = 1; + + final EventHubClientBuilder builder = createBuilder(); + producer = new EventHubBufferedProducerClientBuilder() + .credential(builder.getFullyQualifiedNamespace(), builder.getEventHubName(), builder.getCredentials()) + .retryOptions(builder.getRetryOptions()) + .onSendBatchFailed(failed -> { + fail("Exception occurred while sending messages." + failed.getThrowable()); + }) + .onSendBatchSucceeded(succeeded -> { + }) + .maxEventBufferLengthPerPartition(queueSize) + .buildAsyncClient(); + + final EventHubConsumerAsyncClient receiver + = toClose(createBuilder().consumerGroup(EventHubClientBuilder.DEFAULT_CONSUMER_GROUP_NAME) + .buildAsyncConsumerClient()); + + final PartitionResolver resolver = new PartitionResolver(); + + final String partitionKey = "test-partition-key"; + final String messageId = UUID.randomUUID().toString(); + final EventData eventData = new EventData(partitionKey); + eventData.setMessageId(messageId); + eventData.getRawAmqpMessage() + .getMessageAnnotations() + .put(PARTITION_KEY_ANNOTATION_NAME.getValue(), "old partition key - should not be used"); + + final SendOptions sendOptions = new SendOptions().setPartitionKey(partitionKey); + final String expectedPartitionId = resolver.assignForPartitionKey(partitionKey, partitionIds); + + AtomicReference receivedEventData = new AtomicReference<>(); + toClose(receiver.receiveFromPartition(expectedPartitionId, EventPosition.earliest()).filter(pe -> { + if (messageId.equals(pe.getData().getMessageId())) { + receivedEventData.compareAndSet(null, pe.getData()); + eventCountdown.countDown(); + return true; + } + return false; + }).subscribe()); + + StepVerifier.create(producer.enqueueEvent(eventData, sendOptions)) + .expectNext(0) + .expectComplete() + .verify(TIMEOUT); + + assertTrue(eventCountdown.await(TIMEOUT.toMillis(), TimeUnit.MILLISECONDS)); + + final EventData received = receivedEventData.get(); + assertNotNull(received, "Did not receive the event."); + assertEquals(partitionKey, received.getPartitionKey()); + } + private Map getPartitionProperties() { final EventHubProperties properties1 = this.hubClient.getProperties(); final Map result = new HashMap<>(); diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/SystemPropertiesTest.java b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/SystemPropertiesTest.java index 8b4ed81fceb7e..fa627277eee5b 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/SystemPropertiesTest.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/SystemPropertiesTest.java @@ -24,7 +24,6 @@ import static com.azure.core.amqp.AmqpMessageConstant.SEQUENCE_NUMBER_ANNOTATION_NAME; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -90,7 +89,6 @@ public void beforeEach() { public void emptyMessage() { // Act final SystemProperties systemProperties = new SystemProperties(); - final String defaultValue = "defaultValue"; // Assert assertNull(systemProperties.getPartitionKey()); @@ -99,12 +97,6 @@ public void emptyMessage() { assertNull(systemProperties.getOffset()); assertTrue(systemProperties.isEmpty()); - - EventData.RESERVED_SYSTEM_PROPERTIES.forEach(name -> { - assertNull(systemProperties.get(name)); - assertEquals(defaultValue, systemProperties.getOrDefault(name, defaultValue)); - assertFalse(systemProperties.containsKey(name)); - }); } /** From afc791bad50ccb44ab88fce5dfe60c772bffd4ca Mon Sep 17 00:00:00 2001 From: Anu Thomas Chandy Date: Fri, 22 Nov 2024 11:22:20 -0800 Subject: [PATCH 41/44] Remove the use of deprecated reactor-core Processor* types in messaging tests. (#43032) --- .../ServiceBusReceiverAsyncClientTest.java | 14 ++++----- .../ServiceBusSessionManagerTest.java | 31 +++++++++---------- .../ServiceBusReactorReceiverTest.java | 19 ++++++------ .../ServiceBusReactorSessionTest.java | 15 +++++---- 4 files changed, 36 insertions(+), 43 deletions(-) diff --git a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClientTest.java b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClientTest.java index 79308faa4ae9b..8469c428b985e 100644 --- a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClientTest.java +++ b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClientTest.java @@ -68,9 +68,7 @@ import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import reactor.core.publisher.Flux; -import reactor.core.publisher.FluxSink; import reactor.core.publisher.Mono; -import reactor.core.publisher.ReplayProcessor; import reactor.core.publisher.Sinks; import reactor.core.scheduler.Schedulers; import reactor.test.StepVerifier; @@ -133,8 +131,8 @@ class ServiceBusReceiverAsyncClientTest { private static final ServiceBusTracer NOOP_TRACER = new ServiceBusTracer(null, NAMESPACE, ENTITY_PATH); private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(100); private final String messageTrackingUUID = UUID.randomUUID().toString(); - private final ReplayProcessor endpointProcessor = ReplayProcessor.cacheLast(); - private final FluxSink endpointSink = endpointProcessor.sink(FluxSink.OverflowStrategy.BUFFER); + private final Sinks.Many endpointStates + = Sinks.many().replay().latestOrDefault(AmqpEndpointState.UNINITIALIZED); private final Sinks.Many messagesSink = Sinks.many().multicast().onBackpressureBuffer(); private ServiceBusConnectionProcessor connectionProcessor; @@ -177,11 +175,11 @@ void setup(TestInfo testInfo) { // 5/23/2023: The above note is invalid as the ServiceBusReactorReceiver (i.e., type of amqpReceiveLink // variable) always publishes messages using boundedElastic (irrespective of v1 or v2). when(amqpReceiveLink.receive()).thenReturn(messagesSink.asFlux().publishOn(Schedulers.single())); - when(amqpReceiveLink.getEndpointStates()).thenReturn(endpointProcessor); + when(amqpReceiveLink.getEndpointStates()).thenReturn(endpointStates.asFlux()); when(amqpReceiveLink.addCredits(anyInt())).thenReturn(Mono.empty()); when(sessionReceiveLink.receive()).thenReturn(messagesSink.asFlux().publishOn(Schedulers.single())); - when(sessionReceiveLink.getEndpointStates()).thenReturn(endpointProcessor); + when(sessionReceiveLink.getEndpointStates()).thenReturn(endpointStates.asFlux()); when(sessionReceiveLink.addCredits(anyInt())).thenReturn(Mono.empty()); ConnectionOptions connectionOptions = new ConnectionOptions(NAMESPACE, tokenCredential, @@ -189,8 +187,8 @@ void setup(TestInfo testInfo) { AmqpTransportType.AMQP, new AmqpRetryOptions(), ProxyOptions.SYSTEM_DEFAULTS, Schedulers.boundedElastic(), CLIENT_OPTIONS, SslDomain.VerifyMode.VERIFY_PEER_NAME, "test-product", "test-version"); - when(connection.getEndpointStates()).thenReturn(endpointProcessor); - endpointSink.next(AmqpEndpointState.ACTIVE); + when(connection.getEndpointStates()).thenReturn(endpointStates.asFlux()); + endpointStates.emitNext(AmqpEndpointState.ACTIVE, Sinks.EmitFailureHandler.FAIL_FAST); when(connection.getManagementNode(ENTITY_PATH, ENTITY_TYPE)).thenReturn(Mono.just(managementNode)); diff --git a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusSessionManagerTest.java b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusSessionManagerTest.java index 139f9ef2d52ec..8347fe3520f7a 100644 --- a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusSessionManagerTest.java +++ b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusSessionManagerTest.java @@ -37,11 +37,9 @@ import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; -import reactor.core.publisher.EmitterProcessor; import reactor.core.publisher.Flux; -import reactor.core.publisher.FluxSink; import reactor.core.publisher.Mono; -import reactor.core.publisher.ReplayProcessor; +import reactor.core.publisher.Sinks; import reactor.core.scheduler.Schedulers; import reactor.test.StepVerifier; import reactor.test.publisher.TestPublisher; @@ -86,10 +84,9 @@ class ServiceBusSessionManagerTest { private static final String CLIENT_IDENTIFIER = "my-client-identifier"; private static final ServiceBusTracer NOOP_TRACER = new ServiceBusTracer(null, NAMESPACE, ENTITY_PATH); private static final ClientLogger LOGGER = new ClientLogger(ServiceBusReceiverAsyncClientTest.class); - private final ReplayProcessor endpointProcessor = ReplayProcessor.cacheLast(); - private final FluxSink endpointSink = endpointProcessor.sink(FluxSink.OverflowStrategy.BUFFER); - private final EmitterProcessor messageProcessor = EmitterProcessor.create(); - private final FluxSink messageSink = messageProcessor.sink(FluxSink.OverflowStrategy.BUFFER); + private final Sinks.Many endpointStates + = Sinks.many().replay().latestOrDefault(AmqpEndpointState.UNINITIALIZED); + private final Sinks.Many messages = Sinks.many().multicast().onBackpressureBuffer(); private ServiceBusConnectionProcessor connectionProcessor; private ConnectionCacheWrapper connectionCacheWrapper; @@ -117,11 +114,11 @@ void beforeEach(TestInfo testInfo) { // Forcing us to publish the messages we receive on the AMQP link on single. Similar to how it is done // in ReactorExecutor. - when(amqpReceiveLink.receive()).thenReturn(messageProcessor.publishOn(Schedulers.single())); + when(amqpReceiveLink.receive()).thenReturn(messages.asFlux().publishOn(Schedulers.single())); when(amqpReceiveLink.getHostname()).thenReturn(NAMESPACE); when(amqpReceiveLink.getEntityPath()).thenReturn(ENTITY_PATH); - when(amqpReceiveLink.getEndpointStates()).thenReturn(endpointProcessor); + when(amqpReceiveLink.getEndpointStates()).thenReturn(endpointStates.asFlux()); when(amqpReceiveLink.closeAsync()).thenReturn(Mono.empty()); ConnectionOptions connectionOptions = new ConnectionOptions(NAMESPACE, tokenCredential, @@ -130,8 +127,8 @@ AmqpTransportType.AMQP, new AmqpRetryOptions().setTryTimeout(TIMEOUT), ProxyOpti Schedulers.boundedElastic(), CLIENT_OPTIONS, SslDomain.VerifyMode.VERIFY_PEER_NAME, "test-product", "test-version"); - when(connection.getEndpointStates()).thenReturn(endpointProcessor); - endpointSink.next(AmqpEndpointState.ACTIVE); + when(connection.getEndpointStates()).thenReturn(endpointStates.asFlux()); + endpointStates.emitNext(AmqpEndpointState.ACTIVE, Sinks.EmitFailureHandler.FAIL_FAST); when(connection.getManagementNode(ENTITY_PATH, ENTITY_TYPE)).thenReturn(Mono.just(managementNode)); @@ -228,7 +225,7 @@ void singleUnnamedSession() { // Act & Assert StepVerifier.create(sessionManager.receive()).then(() -> { for (int i = 0; i < numberOfMessages; i++) { - messageSink.next(message); + messages.emitNext(message, Sinks.EmitFailureHandler.FAIL_FAST); } }) .assertNext(context -> assertMessageEquals(sessionId, receivedMessage, context)) @@ -282,7 +279,7 @@ void singleUnnamedSessionLockRenew() { })); StepVerifier.create(sessionManager.receive()).then(() -> { for (int i = 0; i < numberOfMessages; i++) { - messageSink.next(message); + messages.emitNext(message, Sinks.EmitFailureHandler.FAIL_FAST); } }) .assertNext(context -> assertMessageEquals(sessionId, receivedMessage, context)) @@ -342,7 +339,7 @@ void multipleSessions() { when(amqpReceiveLink2.receive()).thenReturn(messageFlux2); when(amqpReceiveLink2.getHostname()).thenReturn(NAMESPACE); when(amqpReceiveLink2.getEntityPath()).thenReturn(ENTITY_PATH); - when(amqpReceiveLink2.getEndpointStates()).thenReturn(endpointProcessor); + when(amqpReceiveLink2.getEndpointStates()).thenReturn(endpointStates.asFlux()); when(amqpReceiveLink2.getLinkName()).thenReturn(linkName2); when(amqpReceiveLink2.getSessionId()).thenReturn(Mono.just(sessionId2)); when(amqpReceiveLink2.getSessionLockedUntil()).thenReturn(Mono.fromCallable(onRenewal)); @@ -375,7 +372,7 @@ void multipleSessions() { // Act & Assert StepVerifier.create(sessionManager.receive().publishOn(Schedulers.parallel())).then(() -> { for (int i = 0; i < numberOfMessages; i++) { - messageSink.next(message); + messages.emitNext(message, Sinks.EmitFailureHandler.FAIL_FAST); } }).assertNext(context -> { LOGGER.log(LogLevel.VERBOSE, () -> "1"); @@ -441,7 +438,7 @@ void multipleReceiveUnnamedSession() { when(amqpReceiveLink2.receive()).thenReturn(messageFlux2); when(amqpReceiveLink2.getHostname()).thenReturn(NAMESPACE); when(amqpReceiveLink2.getEntityPath()).thenReturn(ENTITY_PATH); - when(amqpReceiveLink2.getEndpointStates()).thenReturn(endpointProcessor); + when(amqpReceiveLink2.getEndpointStates()).thenReturn(endpointStates.asFlux()); when(amqpReceiveLink2.getLinkName()).thenReturn(linkName2); when(amqpReceiveLink2.getSessionId()).thenReturn(Mono.just(sessionId2)); when(amqpReceiveLink2.getSessionLockedUntil()).thenReturn(Mono.fromCallable(onRenewal)); @@ -518,7 +515,7 @@ void singleUnnamedSessionCleanupAfterTimeout() { // Act & Assert StepVerifier.create(sessionManager.receive().publishOn(Schedulers.parallel())).then(() -> { - messageSink.next(message); + messages.emitNext(message, Sinks.EmitFailureHandler.FAIL_FAST); }).assertNext(context -> { assertMessageEquals(sessionId, receivedMessage, context); assertNotNull(sessionManager.getLinkName(sessionId)); diff --git a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorReceiverTest.java b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorReceiverTest.java index c85c4fc44baca..c6110a86bb7ac 100644 --- a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorReceiverTest.java +++ b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorReceiverTest.java @@ -26,9 +26,8 @@ import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.MockitoAnnotations; -import reactor.core.publisher.EmitterProcessor; import reactor.core.publisher.Flux; -import reactor.core.publisher.FluxSink; +import reactor.core.publisher.Sinks; import reactor.test.StepVerifier; import java.io.IOException; @@ -56,10 +55,10 @@ class ServiceBusReactorReceiverTest { private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60); private static final ClientLogger LOGGER = new ClientLogger(ServiceBusReactorReceiver.class); - private final EmitterProcessor endpointStates = EmitterProcessor.create(); - private final FluxSink endpointStatesSink = endpointStates.sink(); + private final Sinks.Many endpointStates + = Sinks.many().replay().latestOrDefault(EndpointState.UNINITIALIZED); - private final EmitterProcessor deliveryProcessor = EmitterProcessor.create(); + private final Sinks.Many deliveries = Sinks.many().multicast().onBackpressureBuffer(); @Mock private Receiver receiver; @@ -96,12 +95,12 @@ void setup(TestInfo testInfo) throws IOException { ReceiveLinkHandler receiveLinkHandler = new ReceiveLinkHandler(CONNECTION_ID, "", LINK_NAME, "", null) { @Override public Flux getDeliveredMessages() { - return deliveryProcessor; + return deliveries.asFlux(); } @Override public Flux getEndpointStates() { - return endpointStates; + return endpointStates.asFlux(); } }; @@ -137,7 +136,7 @@ void getsSessionId() { // Act & Assert StepVerifier.create(reactorReceiver.getSessionId()) - .then(() -> endpointStatesSink.next(EndpointState.ACTIVE)) + .then(() -> endpointStates.emitNext(EndpointState.ACTIVE, Sinks.EmitFailureHandler.FAIL_FAST)) .expectNext(actualSession) .expectComplete() .verify(DEFAULT_TIMEOUT); @@ -157,7 +156,7 @@ void sessionReceiverNoSessionId() { // Act & Assert StepVerifier.create(reactorReceiver.getSessionId()) - .then(() -> endpointStatesSink.next(EndpointState.ACTIVE)) + .then(() -> endpointStates.emitNext(EndpointState.ACTIVE, Sinks.EmitFailureHandler.FAIL_FAST)) .expectComplete() .verify(DEFAULT_TIMEOUT); } @@ -180,7 +179,7 @@ void getSessionLockedUntil() { // Act & Assert StepVerifier.create(reactorReceiver.getSessionLockedUntil()) - .then(() -> endpointStatesSink.next(EndpointState.ACTIVE)) + .then(() -> endpointStates.emitNext(EndpointState.ACTIVE, Sinks.EmitFailureHandler.FAIL_FAST)) .expectNext(lockedUntil) .expectComplete() .verify(DEFAULT_TIMEOUT); diff --git a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorSessionTest.java b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorSessionTest.java index e5731c1bc7a59..87baaca9b1c28 100644 --- a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorSessionTest.java +++ b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/implementation/ServiceBusReactorSessionTest.java @@ -43,9 +43,8 @@ import org.mockito.Mockito; import org.mockito.MockitoAnnotations; import reactor.core.publisher.Flux; -import reactor.core.publisher.FluxSink; import reactor.core.publisher.Mono; -import reactor.core.publisher.ReplayProcessor; +import reactor.core.publisher.Sinks; import reactor.test.StepVerifier; import java.io.IOException; @@ -135,10 +134,10 @@ void setup(TestInfo testInfo) { doNothing().when(reactor).update(selectable); when(reactor.selectable()).thenReturn(selectable); - final ReplayProcessor endpointStateReplayProcessor = ReplayProcessor.cacheLast(); - when(handler.getEndpointStates()).thenReturn(endpointStateReplayProcessor); - FluxSink sink1 = endpointStateReplayProcessor.sink(); - sink1.next(EndpointState.ACTIVE); + final Sinks.Many endpointStates + = Sinks.many().replay().latestOrDefault(EndpointState.UNINITIALIZED); + when(handler.getEndpointStates()).thenReturn(endpointStates.asFlux()); + endpointStates.emitNext(EndpointState.ACTIVE, Sinks.EmitFailureHandler.FAIL_FAST); when(handler.getSessionName()).thenReturn(SESSION_NAME); when(handler.getHostname()).thenReturn(HOSTNAME); when(handler.getConnectionId()).thenReturn(CONNECTION_ID); @@ -160,7 +159,7 @@ public Flux getLinkCredits() { @Override public Flux getEndpointStates() { - return endpointStateReplayProcessor; + return endpointStates.asFlux(); } }; sendEntityLinkHandler = new SendLinkHandler("", "", "", "", null) { @@ -176,7 +175,7 @@ public Flux getLinkCredits() { @Override public Flux getEndpointStates() { - return endpointStateReplayProcessor; + return endpointStates.asFlux(); } }; when(handlerProvider.createSendLinkHandler(CONNECTION_ID, HOSTNAME, VIA_ENTITY_PATH_SENDER_LINK_NAME, From 285493a5e8df46a6ea3d183cdff3d6651f01ad66 Mon Sep 17 00:00:00 2001 From: Jair Myree Date: Fri, 22 Nov 2024 12:03:27 -0800 Subject: [PATCH 42/44] Azure Search Documents 11.8.0-beta.4 with bug fix (#43061) * Fixing bugs with an additional beta release. * Fixing bugs with an additional beta release. * Fixing bugs with an additional beta release. * Fixing bugs with an additional beta release. * Fixing bugs with an additional beta release. --- sdk/search/azure-search-documents/CHANGELOG.md | 4 +++- .../documents/models/SemanticSearchResults.java | 12 ++++++++++++ .../search/documents/util/SearchPagedFlux.java | 15 +++++++++++++++ .../documents/util/SearchPagedIterable.java | 12 ++++++++++++ .../search/documents/SemanticSearchExample.java | 4 ++++ 5 files changed, 46 insertions(+), 1 deletion(-) diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index de20ce405dcab..483871ae5277e 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,10 +1,12 @@ # Release History -## 11.8.0-beta.4 (2024-11-21) +## 11.8.0-beta.4 (2024-11-22) ### Bugs Fixed - Fixed bug in the serialization of `SearchDocumentsResult` `debuginfo` property. + - Fixed missing properties bug in `SemanticSearchResults`. + - Added missing properties `debugInfo` and `semanticQueryRewritesResultType`. ## 11.8.0-beta.3 (2024-11-20) diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SemanticSearchResults.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SemanticSearchResults.java index 29e7f1070d142..8295e56aaff0a 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SemanticSearchResults.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SemanticSearchResults.java @@ -15,6 +15,7 @@ public final class SemanticSearchResults { private final List queryAnswers; private final SemanticErrorReason errorReason; private final SemanticSearchResultsType resultsType; + private final SemanticQueryRewritesResultType semanticQueryRewritesResultType; static { SemanticSearchResultsAccessHelper.setAccessor(SemanticSearchResults::new); @@ -24,6 +25,8 @@ private SemanticSearchResults(SearchPagedResponse pagedResponse) { this.queryAnswers = SearchPagedResponseAccessHelper.getQueryAnswers(pagedResponse); this.errorReason = SearchPagedResponseAccessHelper.getSemanticErrorReason(pagedResponse); this.resultsType = SearchPagedResponseAccessHelper.getSemanticSearchResultsType(pagedResponse); + this.semanticQueryRewritesResultType + = SearchPagedResponseAccessHelper.getSemanticQueryRewritesResultType(pagedResponse); } /** @@ -54,4 +57,13 @@ public SemanticErrorReason getErrorReason() { public SemanticSearchResultsType getResultsType() { return this.resultsType; } + + /** + * Type of query rewrite that was used for this request. + * + * @return The type of query rewrite that was used for this request. + */ + public SemanticQueryRewritesResultType getSemanticQueryRewritesResultType() { + return this.semanticQueryRewritesResultType; + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedFlux.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedFlux.java index 2f342c89ae349..d6e7964c1a3a7 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedFlux.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedFlux.java @@ -8,6 +8,7 @@ import com.azure.search.documents.implementation.models.SearchFirstPageResponseWrapper; import com.azure.search.documents.implementation.models.SearchRequest; import com.azure.search.documents.implementation.util.SemanticSearchResultsAccessHelper; +import com.azure.search.documents.models.DebugInfo; import com.azure.search.documents.models.FacetResult; import com.azure.search.documents.models.SearchResult; import com.azure.search.documents.models.SemanticSearchResults; @@ -112,4 +113,18 @@ public Mono getSemanticResults() { return metadataSupplier.get() .map(metadata -> SemanticSearchResultsAccessHelper.create(metadata.getFirstPageResponse())); } + + /** + * The debug information that can be used to further explore your search results. + * + * @return The debug information that can be used to further explore your search results. + */ + public Mono getDebugInfo() { + return metadataSupplier.get().flatMap(metaData -> { + if (metaData.getFirstPageResponse().getDebugInfo() == null) { + return Mono.empty(); + } + return Mono.just(metaData.getFirstPageResponse().getDebugInfo()); + }); + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedIterable.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedIterable.java index 876697b159e05..e94b97d603744 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedIterable.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/util/SearchPagedIterable.java @@ -9,6 +9,7 @@ import com.azure.search.documents.implementation.models.SearchFirstPageResponseWrapper; import com.azure.search.documents.implementation.models.SearchRequest; import com.azure.search.documents.implementation.util.SemanticSearchResultsAccessHelper; +import com.azure.search.documents.models.DebugInfo; import com.azure.search.documents.models.FacetResult; import com.azure.search.documents.models.SearchResult; import com.azure.search.documents.models.SemanticSearchResults; @@ -132,4 +133,15 @@ public SemanticSearchResults getSemanticResults() { ? SemanticSearchResultsAccessHelper.create(metadataSupplier.get().getFirstPageResponse()) : pagedFlux.getSemanticResults().block(); } + + /** + * The debug information that can be used to further explore your search results. + * + * @return The debug information that can be used to further explore your search results. + */ + public DebugInfo getDebugInfo() { + return metadataSupplier != null + ? metadataSupplier.get().getFirstPageResponse().getDebugInfo() + : pagedFlux.getDebugInfo().block(); + } } diff --git a/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/SemanticSearchExample.java b/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/SemanticSearchExample.java index 2f2a129384b1c..e28530b425fd8 100644 --- a/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/SemanticSearchExample.java +++ b/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/SemanticSearchExample.java @@ -138,6 +138,10 @@ public static void semanticSearch(SearchClient searchClient) { SemanticSearchResults semanticSearchResults = results.getSemanticResults(); + System.out.println("Semantic Query Rewrites Result Type: " + semanticSearchResults.getSemanticQueryRewritesResultType()); + + + System.out.println("Semantic Results Type: " + semanticSearchResults.getResultsType()); if (semanticSearchResults.getErrorReason() != null) { From c9052f2c25cc5c16711fbabddc6aa5f59b76b480 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:50:54 -0800 Subject: [PATCH 43/44] Increment package versions for tables releases (#43072) --- eng/versioning/version_client.txt | 2 +- sdk/tables/azure-data-tables-perf/pom.xml | 2 +- sdk/tables/azure-data-tables/CHANGELOG.md | 10 ++++++++++ sdk/tables/azure-data-tables/pom.xml | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index ecbb9fb99bf9d..58286b6e309cf 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -121,7 +121,7 @@ com.azure:azure-data-appconfiguration-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-data-schemaregistry;1.5.1;1.6.0-beta.1 com.azure:azure-data-schemaregistry-apacheavro;1.1.22;1.2.0-beta.3 com.azure:azure-data-schemaregistry-jsonschema;1.0.0;1.1.0-beta.1 -com.azure:azure-data-tables;12.4.6;12.5.0 +com.azure:azure-data-tables;12.5.0;12.6.0-beta.1 com.azure:azure-data-tables-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-developer-devcenter;1.0.5;1.1.0-beta.1 com.azure:azure-developer-loadtesting;1.0.18;1.1.0-beta.1 diff --git a/sdk/tables/azure-data-tables-perf/pom.xml b/sdk/tables/azure-data-tables-perf/pom.xml index c3e40ef2994df..04bb061128d68 100644 --- a/sdk/tables/azure-data-tables-perf/pom.xml +++ b/sdk/tables/azure-data-tables-perf/pom.xml @@ -25,7 +25,7 @@ com.azure azure-data-tables - 12.5.0 + 12.6.0-beta.1 com.azure diff --git a/sdk/tables/azure-data-tables/CHANGELOG.md b/sdk/tables/azure-data-tables/CHANGELOG.md index a3701ce0ef2da..1972da882ded6 100644 --- a/sdk/tables/azure-data-tables/CHANGELOG.md +++ b/sdk/tables/azure-data-tables/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.6.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.5.0 (2024-11-21) ### Features Added diff --git a/sdk/tables/azure-data-tables/pom.xml b/sdk/tables/azure-data-tables/pom.xml index 4689e931730bb..023f79bb42467 100644 --- a/sdk/tables/azure-data-tables/pom.xml +++ b/sdk/tables/azure-data-tables/pom.xml @@ -14,7 +14,7 @@ Licensed under the MIT License. com.azure azure-data-tables - 12.5.0 + 12.6.0-beta.1 Microsoft Azure client library for Azure Tables This package contains the client library for Microsoft Azure Tables. https://github.com/Azure/azure-sdk-for-java From e9953c173e4d6176d7b1853595a88726ab8033a2 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 22 Nov 2024 14:15:51 -0800 Subject: [PATCH 44/44] Increment package versions for search releases (#43074) --- eng/versioning/version_client.txt | 2 +- sdk/search/azure-search-documents/CHANGELOG.md | 10 ++++++++++ sdk/search/azure-search-documents/pom.xml | 2 +- sdk/search/azure-search-perf/pom.xml | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 58286b6e309cf..7022103ed3049 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -172,7 +172,7 @@ com.azure:azure-monitor-query;1.5.3;1.6.0-beta.1 com.azure:azure-monitor-query-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-perf-test-parent;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-quantum-jobs;1.0.0-beta.1;1.0.0-beta.2 -com.azure:azure-search-documents;11.7.3;11.8.0-beta.4 +com.azure:azure-search-documents;11.7.3;11.8.0-beta.5 com.azure:azure-search-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-security-attestation;1.1.29;1.2.0-beta.1 com.azure:azure-security-confidentialledger;1.0.25;1.1.0-beta.1 diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index 483871ae5277e..b28d76b5e98a7 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 11.8.0-beta.5 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 11.8.0-beta.4 (2024-11-22) ### Bugs Fixed diff --git a/sdk/search/azure-search-documents/pom.xml b/sdk/search/azure-search-documents/pom.xml index 5b009992824e0..546907f34da84 100644 --- a/sdk/search/azure-search-documents/pom.xml +++ b/sdk/search/azure-search-documents/pom.xml @@ -16,7 +16,7 @@ com.azure azure-search-documents - 11.8.0-beta.4 + 11.8.0-beta.5 jar diff --git a/sdk/search/azure-search-perf/pom.xml b/sdk/search/azure-search-perf/pom.xml index 50063d6d644d3..7b10bf3f4afe6 100644 --- a/sdk/search/azure-search-perf/pom.xml +++ b/sdk/search/azure-search-perf/pom.xml @@ -29,7 +29,7 @@ com.azure azure-search-documents - 11.8.0-beta.4 + 11.8.0-beta.5